redstone-clara-sdk
Version:
A SDK for C.L.A.R.A.
4 lines • 4.18 MB
Source Map (JSON)
{
"version": 3,
"sources": ["../node_modules/obliterator/iterator.js", "../node_modules/obliterator/support.js", "../node_modules/obliterator/foreach.js", "../node_modules/mnemonist/utils/typed-arrays.js", "../node_modules/mnemonist/utils/iterables.js", "../node_modules/mnemonist/lru-cache.js", "../node_modules/mnemonist/lru-map.js", "../node_modules/ms/index.js", "../node_modules/debug/src/common.js", "../node_modules/debug/src/browser.js", "../node_modules/debug/src/node.js", "../node_modules/debug/src/index.js", "../node_modules/@permaweb/protocol-tag-utils/dist/index.cjs", "../node_modules/warp-arbundles/src/signing/Signer.ts", "../node_modules/base64url/dist/pad-string.js", "../node_modules/base64url/dist/base64url.js", "../node_modules/base64url/index.js", "../node_modules/base64-js/index.js", "../src/common/lib/utils.ts", "../node_modules/warp-arbundles/src/deepHash.ts", "../node_modules/bn.js/lib/bn.js", "../node_modules/inherits/inherits_browser.js", "../node_modules/inherits/inherits.js", "../node_modules/safer-buffer/safer.js", "../node_modules/asn1.js/lib/asn1/base/reporter.js", "../node_modules/asn1.js/lib/asn1/base/buffer.js", "../node_modules/minimalistic-assert/index.js", "../node_modules/asn1.js/lib/asn1/base/node.js", "../node_modules/asn1.js/lib/asn1/constants/der.js", "../node_modules/asn1.js/lib/asn1/encoders/der.js", "../node_modules/asn1.js/lib/asn1/encoders/pem.js", "../node_modules/asn1.js/lib/asn1/encoders/index.js", "../node_modules/asn1.js/lib/asn1/decoders/der.js", "../node_modules/asn1.js/lib/asn1/decoders/pem.js", "../node_modules/asn1.js/lib/asn1/decoders/index.js", "../node_modules/asn1.js/lib/asn1/api.js", "../node_modules/asn1.js/lib/asn1/base/index.js", "../node_modules/asn1.js/lib/asn1/constants/index.js", "../node_modules/asn1.js/lib/asn1.js", "../src/common/lib/crypto/pem.ts", "../src/common/lib/crypto/node-driver.ts", "../node_modules/warp-arbundles/src/nodeUtils.ts", "../node_modules/warp-arbundles/src/constants.ts", "../node_modules/warp-arbundles/src/signing/chains/ArweaveSigner.ts", "../node_modules/warp-arbundles/src/signing/constants.ts", "../node_modules/warp-arbundles/src/signing/chains/index.ts", "../node_modules/warp-arbundles/src/signing/index.ts", "../node_modules/warp-arbundles/src/ar-data-base.ts", "../node_modules/warp-arbundles/src/ar-data-bundle.ts", "../node_modules/warp-arbundles/src/tags.ts", "../node_modules/warp-arbundles/src/utils.ts", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/timers.js", "../node_modules/@fastify/busboy/deps/streamsearch/sbmh.js", "../node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js", "../node_modules/@fastify/busboy/lib/utils/getLimit.js", "../node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js", "../node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js", "../node_modules/@fastify/busboy/lib/utils/decodeText.js", "../node_modules/@fastify/busboy/lib/utils/parseParams.js", "../node_modules/@fastify/busboy/lib/utils/basename.js", "../node_modules/@fastify/busboy/lib/types/multipart.js", "../node_modules/@fastify/busboy/lib/utils/Decoder.js", "../node_modules/@fastify/busboy/lib/types/urlencoded.js", "../node_modules/@fastify/busboy/lib/main.js", "../node_modules/undici/lib/fetch/constants.js", "../node_modules/undici/lib/fetch/global.js", "../node_modules/undici/lib/fetch/util.js", "../node_modules/undici/lib/fetch/symbols.js", "../node_modules/undici/lib/fetch/webidl.js", "../node_modules/undici/lib/fetch/dataURL.js", "../node_modules/undici/lib/fetch/file.js", "../node_modules/undici/lib/fetch/formdata.js", "../node_modules/undici/lib/fetch/body.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher.js", "../node_modules/undici/lib/dispatcher-base.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/src/llhttp/utils.ts", "../node_modules/undici/src/llhttp/constants.ts", "../node_modules/undici/lib/handler/RedirectHandler.js", "../node_modules/undici/lib/interceptor/redirectInterceptor.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/client.js", "../node_modules/undici/lib/node/fixed-queue.js", "../node_modules/undici/lib/pool-stats.js", "../node_modules/undici/lib/pool-base.js", "../node_modules/undici/lib/pool.js", "../node_modules/undici/lib/balanced-pool.js", "../node_modules/undici/lib/compat/dispatcher-weakref.js", "../node_modules/undici/lib/agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/proxy-agent.js", "../node_modules/undici/lib/handler/RetryHandler.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/DecoratorHandler.js", "../node_modules/undici/lib/fetch/headers.js", "../node_modules/undici/lib/fetch/response.js", "../node_modules/undici/lib/fetch/request.js", "../node_modules/undici/lib/fetch/index.js", "../node_modules/undici/lib/fileapi/symbols.js", "../node_modules/undici/lib/fileapi/progressevent.js", "../node_modules/undici/lib/fileapi/encoding.js", "../node_modules/undici/lib/fileapi/util.js", "../node_modules/undici/lib/fileapi/filereader.js", "../node_modules/undici/lib/cache/symbols.js", "../node_modules/undici/lib/cache/util.js", "../node_modules/undici/lib/cache/cache.js", "../node_modules/undici/lib/cache/cachestorage.js", "../node_modules/undici/lib/cookies/constants.js", "../node_modules/undici/lib/cookies/util.js", "../node_modules/undici/lib/cookies/parse.js", "../node_modules/undici/lib/cookies/index.js", "../node_modules/undici/lib/websocket/constants.js", "../node_modules/undici/lib/websocket/symbols.js", "../node_modules/undici/lib/websocket/events.js", "../node_modules/undici/lib/websocket/util.js", "../node_modules/undici/lib/websocket/connection.js", "../node_modules/undici/lib/websocket/frame.js", "../node_modules/undici/lib/websocket/receiver.js", "../node_modules/undici/lib/websocket/websocket.js", "../node_modules/undici/index.js", "../node_modules/warp-isomorphic/src/npm-node.js", "../node_modules/warp-arbundles/src/DataItem.ts", "../node_modules/warp-arbundles/src/ar-data-create.ts", "../node_modules/warp-arbundles/src/index.ts", "../node_modules/warp-arbundles/index.ts", "../node_modules/bignumber.js/bignumber.js", "../src/common/ar.ts", "../src/common/lib/api.ts", "../src/common/network.ts", "../src/common/lib/error.ts", "../src/common/lib/deepHash.ts", "../src/common/lib/merkle.ts", "../src/common/lib/transaction.ts", "../src/common/lib/transaction-uploader.ts", "../node_modules/arconnect/index.js", "../src/common/transactions.ts", "../src/common/wallets.ts", "../src/common/silo.ts", "../src/common/chunks.ts", "../src/common/blocks.ts", "../src/common/common.ts", "../src/node/index.ts", "../node_modules/exponential-backoff/src/options.ts", "../node_modules/exponential-backoff/src/jitter/full/full.jitter.ts", "../node_modules/exponential-backoff/src/jitter/no/no.jitter.ts", "../node_modules/exponential-backoff/src/jitter/jitter.factory.ts", "../node_modules/exponential-backoff/src/delay/delay.base.ts", "../node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts", "../node_modules/exponential-backoff/src/delay/always/always.delay.ts", "../node_modules/exponential-backoff/src/delay/delay.factory.ts", "../node_modules/exponential-backoff/src/backoff.ts", "../node_modules/abitype/src/version.ts", "../node_modules/abitype/src/errors.ts", "../node_modules/abitype/src/regex.ts", "../node_modules/abitype/src/human-readable/formatAbiParameter.ts", "../node_modules/abitype/src/human-readable/formatAbiParameters.ts", "../node_modules/abitype/src/human-readable/formatAbiItem.ts", "../node_modules/abitype/src/human-readable/runtime/signatures.ts", "../node_modules/abitype/src/human-readable/errors/abiItem.ts", "../node_modules/abitype/src/human-readable/errors/abiParameter.ts", "../node_modules/abitype/src/human-readable/errors/signature.ts", "../node_modules/abitype/src/human-readable/errors/struct.ts", "../node_modules/abitype/src/human-readable/errors/splitParameters.ts", "../node_modules/abitype/src/human-readable/runtime/cache.ts", "../node_modules/abitype/src/human-readable/runtime/utils.ts", "../node_modules/abitype/src/human-readable/runtime/structs.ts", "../node_modules/abitype/src/human-readable/parseAbi.ts", "../node_modules/abitype/src/human-readable/parseAbiItem.ts", "../node_modules/abitype/src/exports/index.ts", "../node_modules/viem/utils/abi/formatAbiItem.ts", "../node_modules/viem/utils/data/isHex.ts", "../node_modules/viem/utils/data/size.ts", "../node_modules/viem/errors/version.ts", "../node_modules/viem/errors/base.ts", "../node_modules/viem/errors/abi.ts", "../node_modules/viem/errors/data.ts", "../node_modules/viem/utils/data/pad.ts", "../node_modules/viem/errors/encoding.ts", "../node_modules/viem/utils/data/trim.ts", "../node_modules/viem/utils/encoding/fromHex.ts", "../node_modules/viem/utils/encoding/toHex.ts", "../node_modules/viem/utils/encoding/toBytes.ts", "../node_modules/@noble/hashes/src/_assert.ts", "../node_modules/@noble/hashes/src/_u64.ts", "../node_modules/@noble/hashes/src/cryptoNode.ts", "../node_modules/@noble/hashes/src/utils.ts", "../node_modules/@noble/hashes/src/sha3.ts", "../node_modules/viem/utils/hash/keccak256.ts", "../node_modules/viem/utils/hash/hashSignature.ts", "../node_modules/viem/utils/hash/normalizeSignature.ts", "../node_modules/viem/utils/hash/toSignature.ts", "../node_modules/viem/utils/hash/toSignatureHash.ts", "../node_modules/viem/utils/hash/toEventSelector.ts", "../node_modules/viem/errors/address.ts", "../node_modules/viem/utils/lru.ts", "../node_modules/viem/utils/address/getAddress.ts", "../node_modules/viem/utils/address/isAddress.ts", "../node_modules/viem/utils/data/concat.ts", "../node_modules/viem/utils/data/slice.ts", "../node_modules/viem/utils/regex.ts", "../node_modules/viem/utils/abi/encodeAbiParameters.ts", "../node_modules/viem/utils/hash/toFunctionSelector.ts", "../node_modules/viem/utils/abi/getAbiItem.ts", "../node_modules/viem/accounts/utils/parseAccount.ts", "../node_modules/viem/utils/abi/prepareEncodeFunctionData.ts", "../node_modules/viem/utils/abi/encodeFunctionData.ts", "../node_modules/viem/constants/solidity.ts", "../node_modules/viem/errors/cursor.ts", "../node_modules/viem/utils/cursor.ts", "../node_modules/viem/utils/encoding/fromBytes.ts", "../node_modules/viem/utils/abi/decodeAbiParameters.ts", "../node_modules/viem/utils/abi/decodeErrorResult.ts", "../node_modules/viem/utils/stringify.ts", "../node_modules/viem/utils/abi/formatAbiItemWithArgs.ts", "../node_modules/viem/constants/unit.ts", "../node_modules/viem/utils/unit/formatUnits.ts", "../node_modules/viem/utils/unit/formatEther.ts", "../node_modules/viem/utils/unit/formatGwei.ts", "../node_modules/viem/errors/stateOverride.ts", "../node_modules/viem/errors/transaction.ts", "../node_modules/viem/errors/utils.ts", "../node_modules/viem/errors/contract.ts", "../node_modules/viem/errors/request.ts", "../node_modules/viem/errors/rpc.ts", "../node_modules/@noble/hashes/src/_md.ts", "../node_modules/@noble/hashes/src/sha256.ts", "../node_modules/@noble/hashes/src/hmac.ts", "../node_modules/@noble/curves/src/abstract/utils.ts", "../node_modules/@noble/curves/src/abstract/modular.ts", "../node_modules/@noble/curves/src/abstract/curve.ts", "../node_modules/@noble/curves/src/abstract/weierstrass.ts", "../node_modules/@noble/curves/src/_shortw_utils.ts", "../node_modules/@noble/curves/src/abstract/hash-to-curve.ts", "../node_modules/@noble/curves/src/secp256k1.ts", "../node_modules/viem/errors/node.ts", "../node_modules/viem/utils/errors/getNodeError.ts", "../node_modules/viem/utils/formatters/extract.ts", "../node_modules/viem/utils/formatters/transactionRequest.ts", "../node_modules/viem/utils/stateOverride.ts", "../node_modules/viem/constants/number.ts", "../node_modules/viem/utils/transaction/assertRequest.ts", "../node_modules/viem/utils/address/isAddressEqual.ts", "../node_modules/viem/utils/abi/decodeFunctionResult.ts", "../node_modules/viem/constants/abis.ts", "../node_modules/viem/constants/contract.ts", "../node_modules/viem/constants/contracts.ts", "../node_modules/viem/errors/chain.ts", "../node_modules/viem/utils/abi/encodeDeployData.ts", "../node_modules/viem/utils/chain/getChainContractAddress.ts", "../node_modules/viem/utils/errors/getCallError.ts", "../node_modules/viem/utils/promise/withResolvers.ts", "../node_modules/viem/utils/promise/createBatchScheduler.ts", "../node_modules/viem/errors/ccip.ts", "../node_modules/viem/utils/ccip.ts", "../node_modules/viem/actions/public/call.ts", "../src/index.mjs", "../node_modules/ramda/es/F.js", "../node_modules/ramda/es/T.js", "../node_modules/ramda/es/__.js", "../node_modules/ramda/es/internal/_isPlaceholder.js", "../node_modules/ramda/es/internal/_curry1.js", "../node_modules/ramda/es/internal/_curry2.js", "../node_modules/ramda/es/internal/_concat.js", "../node_modules/ramda/es/internal/_arity.js", "../node_modules/ramda/es/internal/_curryN.js", "../node_modules/ramda/es/curryN.js", "../node_modules/ramda/es/internal/_curry3.js", "../node_modules/ramda/es/internal/_isArray.js", "../node_modules/ramda/es/internal/_isTransformer.js", "../node_modules/ramda/es/internal/_dispatchable.js", "../node_modules/ramda/es/internal/_reduced.js", "../node_modules/ramda/es/internal/_xfBase.js", "../node_modules/ramda/es/internal/_arrayFromIterator.js", "../node_modules/ramda/es/internal/_includesWith.js", "../node_modules/ramda/es/internal/_functionName.js", "../node_modules/ramda/es/internal/_has.js", "../node_modules/ramda/es/internal/_objectIs.js", "../node_modules/ramda/es/internal/_isArguments.js", "../node_modules/ramda/es/keys.js", "../node_modules/ramda/es/type.js", "../node_modules/ramda/es/internal/_equals.js", "../node_modules/ramda/es/equals.js", "../node_modules/ramda/es/internal/_indexOf.js", "../node_modules/ramda/es/internal/_includes.js", "../node_modules/ramda/es/internal/_map.js", "../node_modules/ramda/es/internal/_quote.js", "../node_modules/ramda/es/internal/_toISOString.js", "../node_modules/ramda/es/internal/_complement.js", "../node_modules/ramda/es/internal/_arrayReduce.js", "../node_modules/ramda/es/internal/_filter.js", "../node_modules/ramda/es/internal/_isObject.js", "../node_modules/ramda/es/internal/_xfilter.js", "../node_modules/ramda/es/filter.js", "../node_modules/ramda/es/reject.js", "../node_modules/ramda/es/internal/_toString.js", "../node_modules/ramda/es/toString.js", "../node_modules/ramda/es/max.js", "../node_modules/ramda/es/internal/_xmap.js", "../node_modules/ramda/es/map.js", "../node_modules/ramda/es/internal/_isInteger.js", "../node_modules/ramda/es/internal/_isString.js", "../node_modules/ramda/es/internal/_nth.js", "../node_modules/ramda/es/prop.js", "../node_modules/ramda/es/pluck.js", "../node_modules/ramda/es/internal/_isArrayLike.js", "../node_modules/ramda/es/internal/_createReduce.js", "../node_modules/ramda/es/internal/_xArrayReduce.js", "../node_modules/ramda/es/bind.js", "../node_modules/ramda/es/internal/_xReduce.js", "../node_modules/ramda/es/internal/_xwrap.js", "../node_modules/ramda/es/reduce.js", "../node_modules/ramda/es/always.js", "../node_modules/ramda/es/append.js", "../node_modules/ramda/es/curry.js", "../node_modules/ramda/es/internal/_assoc.js", "../node_modules/ramda/es/isNil.js", "../node_modules/ramda/es/assocPath.js", "../node_modules/ramda/es/assoc.js", "../node_modules/ramda/es/internal/_isFunction.js", "../node_modules/ramda/es/internal/_makeFlat.js", "../node_modules/ramda/es/internal/_forceReduced.js", "../node_modules/ramda/es/internal/_flatCat.js", "../node_modules/ramda/es/internal/_xchain.js", "../node_modules/ramda/es/chain.js", "../node_modules/ramda/es/internal/_pipe.js", "../node_modules/ramda/es/internal/_checkForMethod.js", "../node_modules/ramda/es/slice.js", "../node_modules/ramda/es/tail.js", "../node_modules/ramda/es/pipe.js", "../node_modules/ramda/es/internal/_identity.js", "../node_modules/ramda/es/identity.js", "../node_modules/ramda/es/concat.js", "../node_modules/ramda/es/cond.js", "../node_modules/ramda/es/converge.js", "../node_modules/ramda/es/defaultTo.js", "../node_modules/ramda/es/internal/_xfind.js", "../node_modules/ramda/es/find.js", "../node_modules/ramda/es/hasPath.js", "../node_modules/ramda/es/has.js", "../node_modules/ramda/es/ifElse.js", "../node_modules/ramda/es/includes.js", "../node_modules/ramda/es/invoker.js", "../node_modules/ramda/es/is.js", "../node_modules/ramda/es/isNotNil.js", "../node_modules/ramda/es/join.js", "../node_modules/ramda/es/juxt.js", "../node_modules/ramda/es/internal/_path.js", "../node_modules/ramda/es/path.js", "../node_modules/ramda/es/propEq.js", "../node_modules/ramda/es/propOr.js", "../node_modules/ramda/es/internal/_xtap.js", "../node_modules/ramda/es/tap.js", "../node_modules/lru-cache/src/index.ts", "../node_modules/zod/lib/index.mjs", "../node_modules/@permaweb/ao-scheduler-utils/dist/index.js", "../node_modules/@permaweb/aoconnect/dist/index.js", "../src/ao/ClaraMarketAO.mjs", "../src/ao/commons.mjs", "../src/ao/ClaraProfileAO.mjs", "../src/ao/gql.mjs", "../src/story/ClaraProfileStory.mjs", "../node_modules/viem/utils/getAction.ts", "../node_modules/viem/utils/abi/encodeEventTopics.ts", "../node_modules/viem/errors/log.ts", "../node_modules/viem/actions/public/createContractEventFilter.ts", "../node_modules/viem/utils/filters/createFilterRequestScope.ts", "../node_modules/viem/actions/public/estimateContractGas.ts", "../node_modules/viem/utils/errors/getContractError.ts", "../node_modules/viem/actions/public/estimateGas.ts", "../node_modules/viem/accounts/utils/publicKeyToAddress.ts", "../node_modules/viem/utils/signature/recoverPublicKey.ts", "../node_modules/viem/utils/signature/recoverAddress.ts", "../node_modules/viem/experimental/eip7702/utils/hashAuthorization.ts", "../node_modules/viem/utils/encoding/toRlp.ts", "../node_modules/viem/experimental/eip7702/utils/recoverAuthorizationAddress.ts", "../node_modules/viem/errors/estimateGas.ts", "../node_modules/viem/utils/errors/getEstimateGasError.ts", "../node_modules/viem/actions/wallet/prepareTransactionRequest.ts", "../node_modules/viem/errors/fee.ts", "../node_modules/viem/actions/public/estimateMaxPriorityFeePerGas.ts", "../node_modules/viem/errors/block.ts", "../node_modules/viem/actions/public/getBlock.ts", "../node_modules/viem/utils/formatters/transaction.ts", "../node_modules/viem/utils/formatters/block.ts", "../node_modules/viem/actions/public/getGasPrice.ts", "../node_modules/viem/actions/public/estimateFeesPerGas.ts", "../node_modules/viem/actions/public/getTransactionCount.ts", "../node_modules/viem/utils/blob/blobsToCommitments.ts", "../node_modules/viem/utils/blob/blobsToProofs.ts", "../node_modules/viem/utils/blob/commitmentToVersionedHash.ts", "../node_modules/viem/utils/hash/sha256.ts", "../node_modules/viem/utils/blob/commitmentsToVersionedHashes.ts", "../node_modules/viem/constants/blob.ts", "../node_modules/viem/constants/kzg.ts", "../node_modules/viem/errors/blob.ts", "../node_modules/viem/utils/blob/toBlobs.ts", "../node_modules/viem/utils/blob/toBlobSidecars.ts", "../node_modules/viem/utils/transaction/getTransactionType.ts", "../node_modules/viem/actions/public/getChainId.ts", "../node_modules/viem/actions/public/getBalance.ts", "../node_modules/viem/actions/public/getContractEvents.ts", "../node_modules/viem/utils/abi/parseEventLogs.ts", "../node_modules/viem/utils/abi/decodeEventLog.ts", "../node_modules/viem/actions/public/getLogs.ts", "../node_modules/viem/utils/formatters/log.ts", "../node_modules/viem/actions/public/readContract.ts", "../node_modules/viem/actions/public/simulateContract.ts", "../node_modules/viem/actions/public/watchContractEvent.ts", "../node_modules/viem/utils/observe.ts", "../node_modules/viem/utils/wait.ts", "../node_modules/viem/utils/poll.ts", "../node_modules/viem/utils/promise/withCache.ts", "../node_modules/viem/actions/public/getBlockNumber.ts", "../node_modules/viem/actions/public/getFilterChanges.ts", "../node_modules/viem/actions/public/uninstallFilter.ts", "../node_modules/viem/actions/wallet/writeContract.ts", "../node_modules/viem/errors/account.ts", "../node_modules/viem/actions/wallet/sendTransaction.ts", "../node_modules/viem/utils/chain/assertCurrentChain.ts", "../node_modules/viem/utils/errors/getTransactionError.ts", "../node_modules/viem/actions/wallet/sendRawTransaction.ts", "../node_modules/viem/errors/eip712.ts", "../node_modules/viem/actions/public/getEip712Domain.ts", "../node_modules/viem/actions/wallet/addChain.ts", "../node_modules/viem/clients/createClient.ts", "../node_modules/viem/utils/uid.ts", "../node_modules/viem/utils/buildRequest.ts", "../node_modules/viem/utils/promise/withDedupe.ts", "../node_modules/viem/utils/promise/withRetry.ts", "../node_modules/viem/clients/transports/createTransport.ts", "../node_modules/viem/clients/transports/custom.ts", "../node_modules/viem/clients/transports/http.ts", "../node_modules/viem/errors/transport.ts", "../node_modules/viem/utils/rpc/http.ts", "../node_modules/viem/utils/promise/withTimeout.ts", "../node_modules/viem/utils/rpc/id.ts", "../node_modules/viem/actions/ens/getEnsAddress.ts", "../node_modules/viem/utils/ens/errors.ts", "../node_modules/viem/utils/ens/namehash.ts", "../node_modules/viem/utils/ens/encodedLabelToLabelhash.ts", "../node_modules/viem/utils/ens/packetToBytes.ts", "../node_modules/viem/utils/ens/encodeLabelhash.ts", "../node_modules/viem/utils/ens/labelhash.ts", "../node_modules/viem/errors/ens.ts", "../node_modules/viem/utils/ens/avatar/utils.ts", "../node_modules/viem/utils/ens/avatar/parseAvatarRecord.ts", "../node_modules/viem/actions/ens/getEnsText.ts", "../node_modules/viem/actions/ens/getEnsAvatar.ts", "../node_modules/viem/actions/ens/getEnsName.ts", "../node_modules/viem/actions/ens/getEnsResolver.ts", "../node_modules/viem/clients/decorators/public.ts", "../node_modules/viem/actions/public/createAccessList.ts", "../node_modules/viem/actions/public/createBlockFilter.ts", "../node_modules/viem/actions/public/createEventFilter.ts", "../node_modules/viem/actions/public/createPendingTransactionFilter.ts", "../node_modules/viem/actions/public/getBlobBaseFee.ts", "../node_modules/viem/actions/public/getBlockTransactionCount.ts", "../node_modules/viem/actions/public/getCode.ts", "../node_modules/viem/actions/public/getFeeHistory.ts", "../node_modules/viem/utils/formatters/feeHistory.ts", "../node_modules/viem/actions/public/getFilterLogs.ts", "../node_modules/viem/actions/public/getProof.ts", "../node_modules/viem/utils/chain/defineChain.ts", "../node_modules/viem/utils/typedData.ts", "../node_modules/viem/errors/typedData.ts", "../node_modules/viem/utils/signature/hashTypedData.ts", "../node_modules/viem/utils/index.ts", "../node_modules/viem/utils/formatters/transactionReceipt.ts", "../node_modules/viem/utils/signature/hashMessage.ts", "../node_modules/viem/constants/strings.ts", "../node_modules/viem/utils/signature/toPrefixedMessage.ts", "../node_modules/viem/constants/bytes.ts", "../node_modules/viem/utils/signature/isErc6492Signature.ts", "../node_modules/viem/utils/signature/serializeErc6492Signature.ts", "../node_modules/viem/utils/transaction/assertTransaction.ts", "../node_modules/viem/utils/transaction/serializeTransaction.ts", "../node_modules/viem/experimental/eip7702/utils/serializeAuthorizationList.ts", "../node_modules/viem/utils/transaction/serializeAccessList.ts", "../node_modules/viem/utils/formatters/proof.ts", "../node_modules/viem/actions/public/getStorageAt.ts", "../node_modules/viem/actions/public/getTransaction.ts", "../node_modules/viem/actions/public/getTransactionConfirmations.ts", "../node_modules/viem/actions/public/getTransactionReceipt.ts", "../node_modules/viem/actions/public/multicall.ts", "../node_modules/ox/core/version.ts", "../node_modules/ox/core/internal/errors.ts", "../node_modules/ox/core/Errors.ts", "../node_modules/ox/core/Json.ts", "../node_modules/ox/core/internal/bytes.ts", "../node_modules/ox/core/internal/hex.ts", "../node_modules/ox/core/Bytes.ts", "../node_modules/ox/core/Hex.ts", "../node_modules/ox/core/Withdrawal.ts", "../node_modules/ox/core/BlockOverrides.ts", "../node_modules/viem/actions/public/simulateBlocks.ts", "../node_modules/ox/core/AbiItem.ts", "../node_modules/ox/core/Hash.ts", "../node_modules/ox/core/internal/lru.ts", "../node_modules/ox/core/Caches.ts", "../node_modules/ox/core/Address.ts", "../node_modules/ox/core/internal/abiItem.ts", "../node_modules/ox/core/Solidity.ts", "../node_modules/ox/core/internal/abiParameters.ts", "../node_modules/ox/core/AbiParameters.ts", "../node_modules/ox/core/AbiConstructor.ts", "../node_modules/ox/core/AbiFunction.ts", "../node_modules/viem/actions/public/simulateCalls.ts", "../node_modules/viem/constants/address.ts", "../node_modules/viem/actions/public/verifyHash.ts", "../node_modules/viem/utils/signature/serializeSignature.ts", "../node_modules/viem/actions/public/verifyMessage.ts", "../node_modules/viem/actions/public/verifyTypedData.ts", "../node_modules/viem/actions/public/waitForTransactionReceipt.ts", "../node_modules/viem/actions/public/watchBlockNumber.ts", "../node_modules/viem/actions/public/watchBlocks.ts", "../node_modules/viem/actions/public/watchEvent.ts", "../node_modules/viem/actions/public/watchPendingTransactions.ts", "../node_modules/viem/utils/siwe/parseSiweMessage.ts", "../node_modules/viem/utils/siwe/validateSiweMessage.ts", "../node_modules/viem/actions/siwe/verifySiweMessage.ts", "../node_modules/viem/clients/createPublicClient.ts", "../node_modules/viem/actions/wallet/deployContract.ts", "../node_modules/viem/actions/wallet/getAddresses.ts", "../node_modules/viem/actions/wallet/getPermissions.ts", "../node_modules/viem/actions/wallet/requestAddresses.ts", "../node_modules/viem/actions/wallet/requestPermissions.ts", "../node_modules/viem/actions/wallet/signMessage.ts", "../node_modules/viem/actions/wallet/signTransaction.ts", "../node_modules/viem/actions/wallet/signTypedData.ts", "../node_modules/viem/actions/wallet/switchChain.ts", "../node_modules/viem/actions/wallet/watchAsset.ts", "../node_modules/viem/clients/decorators/wallet.ts", "../node_modules/viem/clients/createWalletClient.ts", "../node_modules/viem/index.ts", "../src/story/marketAbi.mjs", "../src/story/utils.mjs", "../src/story/chains.mjs", "../src/story/wipAbi.mjs", "../src/story/ipAccountAbi.mjs", "../node_modules/viem/accounts/generatePrivateKey.ts", "../node_modules/viem/accounts/privateKeyToAccount.ts", "../node_modules/viem/accounts/toAccount.ts", "../node_modules/viem/accounts/utils/sign.ts", "../node_modules/viem/accounts/utils/signAuthorization.ts", "../node_modules/viem/accounts/utils/signMessage.ts", "../node_modules/viem/accounts/utils/signTransaction.ts", "../node_modules/viem/accounts/utils/signTypedData.ts", "../src/story/ClaraMarketStory.mjs"],
"sourcesContent": ["/**\n * Obliterator Iterator Class\n * ===========================\n *\n * Simple class representing the library's iterators.\n */\n\n/**\n * Iterator class.\n *\n * @constructor\n * @param {function} next - Next function.\n */\nfunction Iterator(next) {\n if (typeof next !== 'function')\n throw new Error('obliterator/iterator: expecting a function!');\n\n this.next = next;\n}\n\n/**\n * If symbols are supported, we add `next` to `Symbol.iterator`.\n */\nif (typeof Symbol !== 'undefined')\n Iterator.prototype[Symbol.iterator] = function () {\n return this;\n };\n\n/**\n * Returning an iterator of the given values.\n *\n * @param {any...} values - Values.\n * @return {Iterator}\n */\nIterator.of = function () {\n var args = arguments,\n l = args.length,\n i = 0;\n\n return new Iterator(function () {\n if (i >= l) return {done: true};\n\n return {done: false, value: args[i++]};\n });\n};\n\n/**\n * Returning an empty iterator.\n *\n * @return {Iterator}\n */\nIterator.empty = function () {\n var iterator = new Iterator(function () {\n return {done: true};\n });\n\n return iterator;\n};\n\n/**\n * Returning an iterator over the given indexed sequence.\n *\n * @param {string|Array} sequence - Target sequence.\n * @return {Iterator}\n */\nIterator.fromSequence = function (sequence) {\n var i = 0,\n l = sequence.length;\n\n return new Iterator(function () {\n if (i >= l) return {done: true};\n\n return {done: false, value: sequence[i++]};\n });\n};\n\n/**\n * Returning whether the given value is an iterator.\n *\n * @param {any} value - Value.\n * @return {boolean}\n */\nIterator.is = function (value) {\n if (value instanceof Iterator) return true;\n\n return (\n typeof value === 'object' &&\n value !== null &&\n typeof value.next === 'function'\n );\n};\n\n/**\n * Exporting.\n */\nmodule.exports = Iterator;\n", "exports.ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== 'undefined';\nexports.SYMBOL_SUPPORT = typeof Symbol !== 'undefined';\n", "/**\n * Obliterator ForEach Function\n * =============================\n *\n * Helper function used to easily iterate over mixed values.\n */\nvar support = require('./support.js');\n\nvar ARRAY_BUFFER_SUPPORT = support.ARRAY_BUFFER_SUPPORT;\nvar SYMBOL_SUPPORT = support.SYMBOL_SUPPORT;\n\n/**\n * Function able to iterate over almost any iterable JS value.\n *\n * @param {any} iterable - Iterable value.\n * @param {function} callback - Callback function.\n */\nmodule.exports = function forEach(iterable, callback) {\n var iterator, k, i, l, s;\n\n if (!iterable) throw new Error('obliterator/forEach: invalid iterable.');\n\n if (typeof callback !== 'function')\n throw new Error('obliterator/forEach: expecting a callback.');\n\n // The target is an array or a string or function arguments\n if (\n Array.isArray(iterable) ||\n (ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable)) ||\n typeof iterable === 'string' ||\n iterable.toString() === '[object Arguments]'\n ) {\n for (i = 0, l = iterable.length; i < l; i++) callback(iterable[i], i);\n return;\n }\n\n // The target has a #.forEach method\n if (typeof iterable.forEach === 'function') {\n iterable.forEach(callback);\n return;\n }\n\n // The target is iterable\n if (\n SYMBOL_SUPPORT &&\n Symbol.iterator in iterable &&\n typeof iterable.next !== 'function'\n ) {\n iterable = iterable[Symbol.iterator]();\n }\n\n // The target is an iterator\n if (typeof iterable.next === 'function') {\n iterator = iterable;\n i = 0;\n\n while (((s = iterator.next()), s.done !== true)) {\n callback(s.value, i);\n i++;\n }\n\n return;\n }\n\n // The target is a plain object\n for (k in iterable) {\n if (iterable.hasOwnProperty(k)) {\n callback(iterable[k], k);\n }\n }\n\n return;\n};\n", "/**\n * Mnemonist Typed Array Helpers\n * ==============================\n *\n * Miscellaneous helpers related to typed arrays.\n */\n\n/**\n * When using an unsigned integer array to store pointers, one might want to\n * choose the optimal word size in regards to the actual numbers of pointers\n * to store.\n *\n * This helpers does just that.\n *\n * @param {number} size - Expected size of the array to map.\n * @return {TypedArray}\n */\nvar MAX_8BIT_INTEGER = Math.pow(2, 8) - 1,\n MAX_16BIT_INTEGER = Math.pow(2, 16) - 1,\n MAX_32BIT_INTEGER = Math.pow(2, 32) - 1;\n\nvar MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1,\n MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1,\n MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1;\n\nexports.getPointerArray = function(size) {\n var maxIndex = size - 1;\n\n if (maxIndex <= MAX_8BIT_INTEGER)\n return Uint8Array;\n\n if (maxIndex <= MAX_16BIT_INTEGER)\n return Uint16Array;\n\n if (maxIndex <= MAX_32BIT_INTEGER)\n return Uint32Array;\n\n throw new Error('mnemonist: Pointer Array of size > 4294967295 is not supported.');\n};\n\nexports.getSignedPointerArray = function(size) {\n var maxIndex = size - 1;\n\n if (maxIndex <= MAX_SIGNED_8BIT_INTEGER)\n return Int8Array;\n\n if (maxIndex <= MAX_SIGNED_16BIT_INTEGER)\n return Int16Array;\n\n if (maxIndex <= MAX_SIGNED_32BIT_INTEGER)\n return Int32Array;\n\n return Float64Array;\n};\n\n/**\n * Function returning the minimal type able to represent the given number.\n *\n * @param {number} value - Value to test.\n * @return {TypedArrayClass}\n */\nexports.getNumberType = function(value) {\n\n // <= 32 bits itnteger?\n if (value === (value | 0)) {\n\n // Negative\n if (Math.sign(value) === -1) {\n if (value <= 127 && value >= -128)\n return Int8Array;\n\n if (value <= 32767 && value >= -32768)\n return Int16Array;\n\n return Int32Array;\n }\n else {\n\n if (value <= 255)\n return Uint8Array;\n\n if (value <= 65535)\n return Uint16Array;\n\n return Uint32Array;\n }\n }\n\n // 53 bits integer & floats\n // NOTE: it's kinda hard to tell whether we could use 32bits or not...\n return Float64Array;\n};\n\n/**\n * Function returning the minimal type able to represent the given array\n * of JavaScript numbers.\n *\n * @param {array} array - Array to represent.\n * @param {function} getter - Optional getter.\n * @return {TypedArrayClass}\n */\nvar TYPE_PRIORITY = {\n Uint8Array: 1,\n Int8Array: 2,\n Uint16Array: 3,\n Int16Array: 4,\n Uint32Array: 5,\n Int32Array: 6,\n Float32Array: 7,\n Float64Array: 8\n};\n\n// TODO: make this a one-shot for one value\nexports.getMinimalRepresentation = function(array, getter) {\n var maxType = null,\n maxPriority = 0,\n p,\n t,\n v,\n i,\n l;\n\n for (i = 0, l = array.length; i < l; i++) {\n v = getter ? getter(array[i]) : array[i];\n t = exports.getNumberType(v);\n p = TYPE_PRIORITY[t.name];\n\n if (p > maxPriority) {\n maxPriority = p;\n maxType = t;\n }\n }\n\n return maxType;\n};\n\n/**\n * Function returning whether the given value is a typed array.\n *\n * @param {any} value - Value to test.\n * @return {boolean}\n */\nexports.isTypedArray = function(value) {\n return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(value);\n};\n\n/**\n * Function used to concat byte arrays.\n *\n * @param {...ByteArray}\n * @return {ByteArray}\n */\nexports.concat = function() {\n var length = 0,\n i,\n o,\n l;\n\n for (i = 0, l = arguments.length; i < l; i++)\n length += arguments[i].length;\n\n var array = new (arguments[0].constructor)(length);\n\n for (i = 0, o = 0; i < l; i++) {\n array.set(arguments[i], o);\n o += arguments[i].length;\n }\n\n return array;\n};\n\n/**\n * Function used to initialize a byte array of indices.\n *\n * @param {number} length - Length of target.\n * @return {ByteArray}\n */\nexports.indices = function(length) {\n var PointerArray = exports.getPointerArray(length);\n\n var array = new PointerArray(length);\n\n for (var i = 0; i < length; i++)\n array[i] = i;\n\n return array;\n};\n", "/**\n * Mnemonist Iterable Function\n * ============================\n *\n * Harmonized iteration helpers over mixed iterable targets.\n */\nvar forEach = require('obliterator/foreach');\n\nvar typed = require('./typed-arrays.js');\n\n/**\n * Function used to determine whether the given object supports array-like\n * random access.\n *\n * @param {any} target - Target object.\n * @return {boolean}\n */\nfunction isArrayLike(target) {\n return Array.isArray(target) || typed.isTypedArray(target);\n}\n\n/**\n * Function used to guess the length of the structure over which we are going\n * to iterate.\n *\n * @param {any} target - Target object.\n * @return {number|undefined}\n */\nfunction guessLength(target) {\n if (typeof target.length === 'number')\n return target.length;\n\n if (typeof target.size === 'number')\n return target.size;\n\n return;\n}\n\n/**\n * Function used to convert an iterable to an array.\n *\n * @param {any} target - Iteration target.\n * @return {array}\n */\nfunction toArray(target) {\n var l = guessLength(target);\n\n var array = typeof l === 'number' ? new Array(l) : [];\n\n var i = 0;\n\n // TODO: we could optimize when given target is array like\n forEach(target, function(value) {\n array[i++] = value;\n });\n\n return array;\n}\n\n/**\n * Same as above but returns a supplementary indices array.\n *\n * @param {any} target - Iteration target.\n * @return {array}\n */\nfunction toArrayWithIndices(target) {\n var l = guessLength(target);\n\n var IndexArray = typeof l === 'number' ?\n typed.getPointerArray(l) :\n Array;\n\n var array = typeof l === 'number' ? new Array(l) : [];\n var indices = typeof l === 'number' ? new IndexArray(l) : [];\n\n var i = 0;\n\n // TODO: we could optimize when given target is array like\n forEach(target, function(value) {\n array[i] = value;\n indices[i] = i++;\n });\n\n return [array, indices];\n}\n\n/**\n * Exporting.\n */\nexports.isArrayLike = isArrayLike;\nexports.guessLength = guessLength;\nexports.toArray = toArray;\nexports.toArrayWithIndices = toArrayWithIndices;\n", "/**\n * Mnemonist LRUCache\n * ===================\n *\n * JavaScript implementation of the LRU Cache data structure. To save up\n * memory and allocations this implementation represents its underlying\n * doubly-linked list as static arrays and pointers. Thus, memory is allocated\n * only once at instantiation and JS objects are never created to serve as\n * pointers. This also means this implementation does not trigger too many\n * garbage collections.\n *\n * Note that to save up memory, a LRU Cache can be implemented using a singly\n * linked list by storing predecessors' pointers as hashmap values.\n * However, this means more hashmap lookups and would probably slow the whole\n * thing down. What's more, pointers are not the things taking most space in\n * memory.\n */\nvar Iterator = require('obliterator/iterator'),\n forEach = require('obliterator/foreach'),\n typed = require('./utils/typed-arrays.js'),\n iterables = require('./utils/iterables.js');\n\n/**\n * LRUCache.\n *\n * @constructor\n * @param {function} Keys - Array class for storing keys.\n * @param {function} Values - Array class for storing values.\n * @param {number} capacity - Desired capacity.\n */\nfunction LRUCache(Keys, Values, capacity) {\n if (arguments.length < 2) {\n capacity = Keys;\n Keys = null;\n Values = null;\n }\n\n this.capacity = capacity;\n\n if (typeof this.capacity !== 'number' || this.capacity <= 0)\n throw new Error('mnemonist/lru-cache: capacity should be positive number.');\n else if (!isFinite(this.capacity) || Math.floor(this.capacity) !== this.capacity)\n throw new Error('mnemonist/lru-cache: capacity should be a finite positive integer.');\n\n var PointerArray = typed.getPointerArray(capacity);\n\n this.forward = new PointerArray(capacity);\n this.backward = new PointerArray(capacity);\n this.K = typeof Keys === 'function' ? new Keys(capacity) : new Array(capacity);\n this.V = typeof Values === 'function' ? new Values(capacity) : new Array(capacity);\n\n // Properties\n this.size = 0;\n this.head = 0;\n this.tail = 0;\n this.items = {};\n}\n\n/**\n * Method used to clear the structure.\n *\n * @return {undefined}\n */\nLRUCache.prototype.clear = function() {\n this.size = 0;\n this.head = 0;\n this.tail = 0;\n this.items = {};\n};\n\n/**\n * Method used to splay a value on top.\n *\n * @param {number} pointer - Pointer of the value to splay on top.\n * @return {LRUCache}\n */\nLRUCache.prototype.splayOnTop = function(pointer) {\n var oldHead = this.head;\n\n if (this.head === pointer)\n return this;\n\n var previous = this.backward[pointer],\n next = this.forward[pointer];\n\n if (this.tail === pointer) {\n this.tail = previous;\n }\n else {\n this.backward[next] = previous;\n }\n\n this.forward[previous] = next;\n\n this.backward[oldHead] = pointer;\n this.head = pointer;\n this.forward[pointer] = oldHead;\n\n return this;\n};\n\n/**\n * Method used to set the value for the given key in the cache.\n *\n * @param {any} key - Key.\n * @param {any} value - Value.\n * @return {undefined}\n */\nLRUCache.prototype.set = function(key, value) {\n\n var pointer = this.items[key];\n\n // The key already exists, we just need to update the value and splay on top\n if (typeof pointer !== 'undefined') {\n this.splayOnTop(pointer);\n this.V[pointer] = value;\n\n return;\n }\n\n // The cache is not yet full\n if (this.size < this.capacity) {\n pointer = this.size++;\n }\n\n // Cache is full, we need to drop the last value\n else {\n pointer = this.tail;\n this.tail = this.backward[pointer];\n delete this.items[this.K[pointer]];\n }\n\n // Storing key & value\n this.items[key] = pointer;\n this.K[pointer] = key;\n this.V[pointer] = value;\n\n // Moving the item at the front of the list\n this.forward[pointer] = this.head;\n this.backward[this.head] = pointer;\n this.head = pointer;\n};\n\n/**\n * Method used to set the value for the given key in the cache\n *\n * @param {any} key - Key.\n * @param {any} value - Value.\n * @return {{evicted: boolean, key: any, value: any}} An object containing the\n * key and value of an item that was overwritten or evicted in the set\n * operation, as well as a boolean indicating whether it was evicted due to\n * limited capacity. Return value is null if nothing was evicted or overwritten\n * during the set operation.\n */\nLRUCache.prototype.setpop = function(key, value) {\n var oldValue = null;\n var oldKey = null;\n\n var pointer = this.items[key];\n\n // The key already exists, we just need to update the value and splay on top\n if (typeof pointer !== 'undefined') {\n this.splayOnTop(pointer);\n oldValue = this.V[pointer];\n this.V[pointer] = value;\n return {evicted: false, key: key, value: oldValue};\n }\n\n // The cache is not yet full\n if (this.size < this.capacity) {\n pointer = this.size++;\n }\n\n // Cache is full, we need to drop the last value\n else {\n pointer = this.tail;\n this.tail = this.backward[pointer];\n oldValue = this.V[pointer];\n oldKey = this.K[pointer];\n delete this.items[oldKey];\n }\n\n // Storing key & value\n this.items[key] = pointer;\n this.K[pointer] = key;\n this.V[pointer] = value;\n\n // Moving the item at the front of the list\n this.forward[pointer] = this.head;\n this.backward[this.head] = pointer;\n this.head = pointer;\n\n // Return object if eviction took place, otherwise return null\n if (oldKey) {\n return {evicted: true, key: oldKey, value: oldValue};\n }\n else {\n return null;\n }\n};\n\n/**\n * Method used to check whether the key exists in the cache.\n *\n * @param {any} key - Key.\n * @return {boolean}\n */\nLRUCache.prototype.has = function(key) {\n return key in this.items;\n};\n\n/**\n * Method used to get the value attached to the given key. Will move the\n * related key to the front of the underlying linked list.\n *\n * @param {any} key - Key.\n * @return {any}\n */\nLRUCache.prototype.get = function(key) {\n var pointer = this.items[key];\n\n if (typeof pointer === 'undefined')\n return;\n\n this.splayOnTop(pointer);\n\n return this.V[pointer];\n};\n\n/**\n * Method used to get the value attached to the given key. Does not modify\n * the ordering of the underlying linked list.\n *\n * @param {any} key - Key.\n * @return {any}\n */\nLRUCache.prototype.peek = function(key) {\n var pointer = this.items[key];\n\n if (typeof pointer === 'undefined')\n return;\n\n return this.V[pointer];\n};\n\n/**\n * Method used to iterate over the cache's entries using a callback.\n *\n * @param {function} callback - Function to call for each item.\n * @param {object} scope - Optional scope.\n * @return {undefined}\n */\nLRUCache.prototype.forEach = function(callback, scope) {\n scope = arguments.length > 1 ? scope : this;\n\n var i = 0,\n l = this.size;\n\n var pointer = this.head,\n keys = this.K,\n values = this.V,\n forward = this.forward;\n\n while (i < l) {\n\n callback.call(scope, values[pointer], keys[pointer], this);\n pointer = forward[pointer];\n\n i++;\n }\n};\n\n/**\n * Method used to create an iterator over the cache's keys from most\n * recently used to least recently used.\n *\n * @return {Iterator}\n */\nLRUCache.prototype.keys = function() {\n var i = 0,\n l = this.size;\n\n var pointer = this.head,\n keys = this.K,\n forward = this.forward;\n\n return new Iterator(function() {\n if (i >= l)\n return {done: true};\n\n var key = keys[pointer];\n\n i++;\n\n if (i < l)\n pointer = forward[pointer];\n\n return {\n done: false,\n value: key\n };\n });\n};\n\n/**\n * Method used to create an iterator over the cache's values from most\n * recently used to least recently used.\n *\n * @return {Iterator}\n */\nLRUCache.prototype.values = function() {\n var i = 0,\n l = this.size;\n\n var pointer = this.head,\n values = this.V,\n forward = this.forward;\n\n return new Iterator(function() {\n if (i >= l)\n return {done: true};\n\n var value = values[pointer];\n\n i++;\n\n if (i < l)\n pointer = forward[pointer];\n\n return {\n done: false,\n value: value\n };\n });\n};\n\n/**\n * Method used to create an iterator over the cache's entries from most\n * recently used to least recently used.\n *\n * @return {Iterator}\n */\nLRUCache.prototype.entries = function() {\n var i = 0,\n l = this.size;\n\n var pointer = this.head,\n keys = this.K,\n values = this.V,\n forward = this.forward;\n\n return new Iterator(function() {\n if (i >= l)\n return {done: true};\n\n var key = keys[pointer],\n value = values[pointer];\n\n i++;\n\n if (i < l)\n pointer = forward[pointer];\n\n return {\n done: false,\n value: [key, value]\n };\n });\n};\n\n/**\n * Attaching the #.entries method to Symbol.iterator if possible.\n */\nif (typeof Symbol !== 'undefined')\n LRUCache.prototype[Symbol.iterator] = LRUCache.prototype.entries;\n\n/**\n * Convenience known methods.\n */\nLRUCache.prototype.inspect = function() {\n var proxy = new Map();\n\n var iterator = this.entries(),\n step;\n\n while ((step = iterator.next(), !step.done))\n proxy.set(step.value[0], step.value[1]);\n\n // Trick so that node displays the name of the constructor\n Object.defineProperty(proxy, 'constructor', {\n value: LRUCache,\n enumerable: false\n });\n\n return proxy;\n};\n\nif (typeof Symbol !== 'undefined')\n LRUCache.prototype[Symbol.for('nodejs.util.inspect.custom')] = LRUCache.prototype.inspect;\n\n/**\n * Static @.from function taking an arbitrary iterable & converting it into\n * a structure.\n *\n * @param {Iterable} iterable - Target iterable.\n * @param {function} Keys - Array class for storing keys.\n * @param {function} Values - Array class for storing values.\n * @param {number} capacity - Cache's capacity.\n * @return {LRUCache}\n */\nLRUCache.from = function(iterable, Keys, Values, capacity) {\n if (arguments.length < 2) {\n capacity = iterables.guessLength(iterable);\n\n if (typeof capacity !== 'number')\n throw new Error('mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.');\n }\n else if (arguments.length === 2) {\n capacity = Keys;\n Keys = null;\n Values = null;\n }\n\n var cache = new LRUCache(Keys, Values, capacity);\n\n forEach(iterable, function(value, key) {\n cache.set(key, value);\n });\n\n return cache;\n};\n\n/**\n * Exporting.\n */\nmodule.exports = LRUCache;\n", "/**\n * Mnemonist LRUMap\n * =================\n *\n * Variant of the LRUCache class that leverages an ES6 Map instead of an object.\n * It might be faster for some use case but it is still hard to understand\n * when a Map can outperform an object in v8.\n */\nvar LRUCache = require('./lru-cache.js'),\n forEach = require('obliterator/foreach'),\n typed = require('./utils/typed-arrays.js'),\n iterables = require('./utils/iterables.js');\n\n/**\n * LRUMap.\n *\n * @constructor\n * @param {function} Keys - Array class for storing keys.\n * @param {function} Values - Array class for storing values.\n * @param {number} capacity - Desired capacity.\n */\nfunction LRUMap(Keys, Values, capacity) {\n if (arguments.length < 2) {\n capacity = Keys;\n Keys = null;\n Values = null;\n }\n\n this.capacity = capacity;\n\n if (typeof this.capacity !== 'number' || this.capacity <= 0)\n throw new Error('mnemonist/lru-map: capacity should be positive number.');\n else if (!is