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F,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,kEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,sEAINR,IAAK,CACH9C,IAAK,EACLsD,OAAQ,CACN,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,iEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oGCrwBR,IAAIpC,EAAQ/e,EACR6E,EAAKxD,EAAQ,MACboyB,EAAYpyB,EAAQ,MACpBqyB,EAAWryB,EAAQ,MAEvB0d,EAAM5a,OAASsvB,EACf1U,EAAM3X,QAAUssB,EAAStsB,QACzB2X,EAAM4U,MAAQD,EAASC,MACvB5U,EAAMwU,MAAQG,EAASH,MACvBxU,EAAMyD,OAASkR,EAASlR,OA6BxBzD,EAAMK,OA1BN,SAAgB3Y,EAAKc,EAAGqO,GACtB,IAAI+K,EAAM,IAAIpd,MAAMgD,KAAKI,IAAIF,EAAIqE,YAAa8K,GAAQ,GACtD+K,EAAIiT,K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pack/universalModuleDefinition","webpack://BeeJs/./node_modules/@ethersphere/swarm-cid/dist/index.js","webpack://BeeJs/./node_modules/bn.js/lib/bn.js","webpack://BeeJs/./node_modules/brorand/index.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/curve/base.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/curve/edwards.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/curve/index.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/curve/mont.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/curve/short.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/curves.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/ec/index.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/ec/key.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/ec/signature.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/eddsa/index.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/eddsa/key.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/eddsa/signature.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js","webpack://BeeJs/./node_modules/elliptic/lib/elliptic/utils.js","webpack://BeeJs/./node_modules/hash.js/lib/hash.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/common.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/hmac.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/ripemd.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha/1.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha/224.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha/256.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha/384.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha/512.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/sha/common.js","webpack://BeeJs/./node_modules/hash.js/lib/hash/utils.js","webpack://BeeJs/./node_modules/hmac-drbg/lib/hmac-drbg.js","webpack://BeeJs/./node_modules/inherits/inherits_browser.js","webpack://BeeJs/./node_modules/isomorphic-ws/browser.js","webpack://BeeJs/./node_modules/js-sha3/src/sha3.js","webpack://BeeJs/./node_modules/ky/index.js","webpack://BeeJs/./node_modules/minimalistic-assert/index.js","webpack://BeeJs/./node_modules/minimalistic-crypto-utils/lib/utils.js","webpack://BeeJs/./node_modules/semver/classes/semver.js","webpack://BeeJs/./node_modules/semver/functions/major.js","webpack://BeeJs/./node_modules/semver/internal/constants.js","webpack://BeeJs/./node_modules/semver/internal/debug.js","webpack://BeeJs/./node_modules/semver/internal/identifiers.js","webpack://BeeJs/./node_modules/semver/internal/parse-options.js","webpack://BeeJs/./node_modules/semver/internal/re.js","webpack://BeeJs/./node_modules/tar-js/lib/header.js","webpack://BeeJs/./node_modules/tar-js/lib/tar.js","webpack://BeeJs/./node_modules/tar-js/lib/utils.js","webpack://BeeJs/./node_modules/web-streams-polyfill/dist/ponyfill.js","webpack://BeeJs/./src/bee-debug.ts","webpack://BeeJs/./src/bee.ts","webpack://BeeJs/./src/chunk/bmt.ts","webpack://BeeJs/./src/chunk/cac.ts","webpack://BeeJs/./src/chunk/serialize.ts","webpack://BeeJs/./src/chunk/signer.ts","webpack://BeeJs/./src/chunk/soc.ts","webpack://BeeJs/./src/chunk/span.ts","webpack://BeeJs/./src/feed/identifier.ts","webpack://BeeJs/./src/feed/index.ts","webpack://BeeJs/./src/feed/json.ts","webpack://BeeJs/./src/feed/retrievable.ts","webpack://BeeJs/./src/feed/topic.ts","webpack://BeeJs/./src/feed/type.ts","webpack://BeeJs/./src/index.ts","webpack://BeeJs/./src/modules/bytes.ts","webpack://BeeJs/./src/modules/bzz.ts","webpack://BeeJs/./src/modules/chunk.ts","webpack://BeeJs/./src/modules/debug/balance.ts","webpack://BeeJs/./src/modules/debug/chequebook.ts","webpack://BeeJs/./src/modules/debug/connectivity.ts","webpack://BeeJs/./src/modules/debug/settlements.ts","webpack://BeeJs/./src/modules/debug/stamps.ts","webpack://BeeJs/./src/modules/debug/states.ts","webpack://BeeJs/./src/modules/debug/status.ts","webpack://BeeJs/./src/modules/debug/tag.ts","webpack://BeeJs/./src/modules/debug/transactions.ts","webpack://BeeJs/./src/modules/feed.ts","webpack://BeeJs/./src/modules/pinning.ts","webpack://BeeJs/./src/modules/pss.ts","webpack://BeeJs/./src/modules/soc.ts","webpack://BeeJs/./src/modules/status.ts","webpack://BeeJs/./src/modules/stewardship.ts","webpack://BeeJs/./src/modules/tag.ts","webpack://BeeJs/./src/types/debug.ts","webpack://BeeJs/./src/types/index.ts","webpack://BeeJs/./src/utils/bytes.ts","webpack://BeeJs/./src/utils/collection.browser.ts","webpack://BeeJs/./src/utils/collection.ts","webpack://BeeJs/./src/utils/data.browser.ts","webpack://BeeJs/./src/utils/error.ts","webpack://BeeJs/./src/utils/eth.ts","webpack://BeeJs/./src/utils/expose.ts","webpack://BeeJs/./src/utils/file.ts","webpack://BeeJs/./src/utils/hash.ts","webpack://BeeJs/./src/utils/headers.ts","webpack://BeeJs/./src/utils/hex.ts","webpack://BeeJs/./src/utils/http.ts","webpack://BeeJs/./src/utils/merge.ts","webpack://BeeJs/./src/utils/pss.ts","webpack://BeeJs/./src/utils/reference.ts","webpack://BeeJs/./src/utils/sleep.ts","webpack://BeeJs/./src/utils/stamps.ts","webpack://BeeJs/./src/utils/stream.ts","webpack://BeeJs/./src/utils/tar.ts","webpack://BeeJs/./src/utils/type.ts","webpack://BeeJs/./src/utils/uint64.ts","webpack://BeeJs/./src/utils/url.ts","webpack://BeeJs/./node_modules/multiformats/esm/src/bytes.js","webpack://BeeJs/./node_modules/multiformats/esm/src/hashes/digest.js","webpack://BeeJs/./node_modules/multiformats/esm/vendor/base-x.js","webpack://BeeJs/./node_modules/multiformats/esm/src/bases/base.js","webpack://BeeJs/./node_modules/multiformats/esm/src/bases/base58.js","webpack://BeeJs/./node_modules/multiformats/esm/src/bases/base32.js","webpack://BeeJs/./node_modules/multiformats/esm/src/cid.js","webpack://BeeJs/./node_modules/multiformats/esm/src/hashes/hasher.js","webpack://BeeJs/./node_modules/multiformats/esm/vendor/varint.js","webpack://BeeJs/./node_modules/multiformats/esm/src/varint.js","webpack://BeeJs/webpack/bootstrap","webpack://BeeJs/webpack/runtime/amd options","webpack://BeeJs/webpack/runtime/define property getters","webpack://BeeJs/webpack/runtime/global","webpack://BeeJs/webpack/runtime/hasOwnProperty shorthand","webpack://BeeJs/webpack/runtime/make namespace object","webpack://BeeJs/webpack/runtime/node module decorator","webpack://BeeJs/webpack/startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"BeeJs\"] = factory();\n\telse\n\t\troot[\"BeeJs\"] = factory();\n})(this, () => {\nreturn ","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decodeCid = exports.decodeManifestCid = exports.decodeFeedCid = exports.encodeManifestReference = exports.encodeFeedReference = exports.encodeReference = exports.ReferenceType = exports.REFERENCE_HEX_LENGTH = exports.SWARM_FEED_CODEC = exports.SWARM_MANIFEST_CODEC = exports.SWARM_NS_CODEC = exports.KECCAK_256_CODEC = void 0;\nconst multiformats_1 = require(\"multiformats\");\nconst digest_1 = require(\"multiformats/hashes/digest\");\n// https://github.com/multiformats/multicodec/blob/master/table.csv\nexports.KECCAK_256_CODEC = 0x1b;\nexports.SWARM_NS_CODEC = 0xe4;\nexports.SWARM_MANIFEST_CODEC = 0xfa;\nexports.SWARM_FEED_CODEC = 0xfb;\nexports.REFERENCE_HEX_LENGTH = 64;\nvar ReferenceType;\n(function (ReferenceType) {\n ReferenceType[\"FEED\"] = \"feed\";\n ReferenceType[\"MANIFEST\"] = \"manifest\";\n})(ReferenceType = exports.ReferenceType || (exports.ReferenceType = {}));\n/**\n * Mapping for getting ReferenceType from given codec.\n */\nconst CODEC_TYPE_MAPPING = {\n [exports.SWARM_FEED_CODEC]: ReferenceType.FEED,\n [exports.SWARM_MANIFEST_CODEC]: ReferenceType.MANIFEST,\n};\n/**\n * Encode Swarm hex-encoded Reference into CID that has appropriate codec set based on `type` parameter.\n *\n * @param ref\n * @param type\n */\nfunction encodeReference(ref, type) {\n switch (type) {\n case ReferenceType.FEED:\n return _encodeReference(ref, exports.SWARM_FEED_CODEC);\n case ReferenceType.MANIFEST:\n return _encodeReference(ref, exports.SWARM_MANIFEST_CODEC);\n default:\n throw new Error('Unknown reference type.');\n }\n}\nexports.encodeReference = encodeReference;\n/**\n * Encode Swarm hex-encoded Reference into CID and sets Feed codec.\n * @param ref\n */\nfunction encodeFeedReference(ref) {\n return _encodeReference(ref, exports.SWARM_FEED_CODEC);\n}\nexports.encodeFeedReference = encodeFeedReference;\n/**\n * Encode Swarm hex-encoded Reference into CID and sets Manifest codec.\n * @param ref\n */\nfunction encodeManifestReference(ref) {\n return _encodeReference(ref, exports.SWARM_MANIFEST_CODEC);\n}\nexports.encodeManifestReference = encodeManifestReference;\n/**\n * Function to decode Feed CID (both from string or CID instance) into hex encoded Swarm reference.\n *\n * @param cid\n * @throws Error if the decoded codec did not matched Swarm Feed codec\n */\nfunction decodeFeedCid(cid) {\n const result = _decodeReference(cid);\n if (result.type !== ReferenceType.FEED) {\n throw new Error('CID did not have Swarm Feed codec!');\n }\n return result.reference;\n}\nexports.decodeFeedCid = decodeFeedCid;\n/**\n * Function to decode Manifest CID (both from string or CID instance) into hex encoded Swarm reference.\n *\n * @param cid\n * @throws Error if the decoded codec did not matched Swarm Manifest codec\n */\nfunction decodeManifestCid(cid) {\n const result = _decodeReference(cid);\n if (result.type !== ReferenceType.MANIFEST) {\n throw new Error('CID did not have Swarm Manifest codec!');\n }\n return result.reference;\n}\nexports.decodeManifestCid = decodeManifestCid;\n/**\n * Decode CID or base encoded CID string into DecodeResult interface.\n * Does not throw exception if the codec was not Swarm related. In that case `type` is undefined.\n *\n * @see DecodeResult\n * @param cid\n */\nfunction decodeCid(cid) {\n return _decodeReference(cid);\n}\nexports.decodeCid = decodeCid;\nfunction _decodeReference(cid) {\n if (typeof cid === 'string') {\n cid = multiformats_1.CID.parse(cid);\n }\n return {\n reference: bytesToHex(cid.multihash.digest),\n type: CODEC_TYPE_MAPPING[cid.code],\n };\n}\nfunction _encodeReference(ref, codec) {\n assertReference(ref);\n const hashBytes = hexToBytes(ref);\n return multiformats_1.CID.createV1(codec, (0, digest_1.create)(exports.KECCAK_256_CODEC, hashBytes));\n}\n/**\n * Converts a hex string to Uint8Array\n *\n * @param hex string input without 0x prefix!\n */\nfunction hexToBytes(hex) {\n assertHexString(hex);\n const bytes = new Uint8Array(hex.length / 2);\n for (let i = 0; i < bytes.length; i++) {\n const hexByte = hex.substr(i * 2, 2);\n bytes[i] = parseInt(hexByte, 16);\n }\n return bytes;\n}\n/**\n * Converts array of number or Uint8Array to HexString without prefix.\n *\n * @param bytes The input array\n * @param len The length of the non prefixed HexString\n */\nfunction bytesToHex(bytes, len) {\n const hexByte = (n) => n.toString(16).padStart(2, '0');\n const hex = Array.from(bytes, hexByte).join('');\n if (len && hex.length !== len) {\n throw new TypeError(`Resulting HexString does not have expected length ${len}: ${hex}`);\n }\n return hex;\n}\n/**\n * Type guard for HexStrings.\n * Requires no 0x prefix!\n *\n * @param s string input\n * @param len expected length of the HexString\n */\nfunction isHexString(s, len) {\n return typeof s === 'string' && /^[0-9a-f]+$/i.test(s) && (!len || s.length === len);\n}\n/**\n * Verifies if the provided input is a HexString.\n *\n * @param s string input\n * @param len expected length of the HexString\n * @param name optional name for the asserted value\n * @returns HexString or throws error\n */\nfunction assertHexString(s, len, name = 'value') {\n if (!isHexString(s, len)) {\n // Don't display length error if no length specified in order not to confuse user\n const lengthMsg = len ? ` of length ${len}` : '';\n throw new TypeError(`${name} not valid hex string${lengthMsg}: ${s}`);\n }\n}\nfunction assertReference(ref) {\n assertHexString(ref);\n if (ref.length !== exports.REFERENCE_HEX_LENGTH) {\n throw new TypeError(`Reference does not have expected length 64 characters. Encrypted references are not supported.`);\n }\n}\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '<BN-R: ' : '<BN: ') + this.toString(16) + '>';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","var r;\n\nmodule.exports = function rand(len) {\n if (!r)\n r = new Rand(null);\n\n return r.generate(len);\n};\n\nfunction Rand(rand) {\n this.rand = rand;\n}\nmodule.exports.Rand = Rand;\n\nRand.prototype.generate = function generate(len) {\n return this._rand(len);\n};\n\n// Emulate crypto API using randy\nRand.prototype._rand = function _rand(n) {\n if (this.rand.getBytes)\n return this.rand.getBytes(n);\n\n var res = new Uint8Array(n);\n for (var i = 0; i < res.length; i++)\n res[i] = this.rand.getByte();\n return res;\n};\n\nif (typeof self === 'object') {\n if (self.crypto && self.crypto.getRandomValues) {\n // Modern browsers\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.crypto.getRandomValues(arr);\n return arr;\n };\n } else if (self.msCrypto && self.msCrypto.getRandomValues) {\n // IE\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.msCrypto.getRandomValues(arr);\n return arr;\n };\n\n // Safari's WebWorkers do not have `crypto`\n } else if (typeof window === 'object') {\n // Old junk\n Rand.prototype._rand = function() {\n throw new Error('Not implemented yet');\n };\n }\n} else {\n // Node.js or Web worker with no crypto support\n try {\n var crypto = require('crypto');\n if (typeof crypto.randomBytes !== 'function')\n throw new Error('Not supported');\n\n Rand.prototype._rand = function _rand(n) {\n return crypto.randomBytes(n);\n };\n } catch (e) {\n }\n}\n","'use strict';\n\nvar elliptic = exports;\n\nelliptic.version = require('../package.json').version;\nelliptic.utils = require('./elliptic/utils');\nelliptic.rand = require('brorand');\nelliptic.curve = require('./elliptic/curve');\nelliptic.curves = require('./elliptic/curves');\n\n// Protocols\nelliptic.ec = require('./elliptic/ec');\nelliptic.eddsa = require('./elliptic/eddsa');\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar getNAF = utils.getNAF;\nvar getJSF = utils.getJSF;\nvar assert = utils.assert;\n\nfunction BaseCurve(type, conf) {\n this.type = type;\n this.p = new BN(conf.p, 16);\n\n // Use Montgomery, when there is no fast reduction for the prime\n this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);\n\n // Useful for many curves\n this.zero = new BN(0).toRed(this.red);\n this.one = new BN(1).toRed(this.red);\n this.two = new BN(2).toRed(this.red);\n\n // Curve configuration, optional\n this.n = conf.n && new BN(conf.n, 16);\n this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);\n\n // Temporary arrays\n this._wnafT1 = new Array(4);\n this._wnafT2 = new Array(4);\n this._wnafT3 = new Array(4);\n this._wnafT4 = new Array(4);\n\n this._bitLength = this.n ? this.n.bitLength() : 0;\n\n // Generalized Greg Maxwell's trick\n var adjustCount = this.n && this.p.div(this.n);\n if (!adjustCount || adjustCount.cmpn(100) > 0) {\n this.redN = null;\n } else {\n this._maxwellTrick = true;\n this.redN = this.n.toRed(this.red);\n }\n}\nmodule.exports = BaseCurve;\n\nBaseCurve.prototype.point = function point() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype.validate = function validate() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {\n assert(p.precomputed);\n var doubles = p._getDoubles();\n\n var naf = getNAF(k, 1, this._bitLength);\n var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);\n I /= 3;\n\n // Translate into more windowed form\n var repr = [];\n var j;\n var nafW;\n for (j = 0; j < naf.length; j += doubles.step) {\n nafW = 0;\n for (var l = j + doubles.step - 1; l >= j; l--)\n nafW = (nafW << 1) + naf[l];\n repr.push(nafW);\n }\n\n var a = this.jpoint(null, null, null);\n var b = this.jpoint(null, null, null);\n for (var i = I; i > 0; i--) {\n for (j = 0; j < repr.length; j++) {\n nafW = repr[j];\n if (nafW === i)\n b = b.mixedAdd(doubles.points[j]);\n else if (nafW === -i)\n b = b.mixedAdd(doubles.points[j].neg());\n }\n a = a.add(b);\n }\n return a.toP();\n};\n\nBaseCurve.prototype._wnafMul = function _wnafMul(p, k) {\n var w = 4;\n\n // Precompute window\n var nafPoints = p._getNAFPoints(w);\n w = nafPoints.wnd;\n var wnd = nafPoints.points;\n\n // Get NAF form\n var naf = getNAF(k, w, this._bitLength);\n\n // Add `this`*(N+1) for every w-NAF index\n var acc = this.jpoint(null, null, null);\n for (var i = naf.length - 1; i >= 0; i--) {\n // Count zeroes\n for (var l = 0; i >= 0 && naf[i] === 0; i--)\n l++;\n if (i >= 0)\n l++;\n acc = acc.dblp(l);\n\n if (i < 0)\n break;\n var z = naf[i];\n assert(z !== 0);\n if (p.type === 'affine') {\n // J +- P\n if (z > 0)\n acc = acc.mixedAdd(wnd[(z - 1) >> 1]);\n else\n acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());\n } else {\n // J +- J\n if (z > 0)\n acc = acc.add(wnd[(z - 1) >> 1]);\n else\n acc = acc.add(wnd[(-z - 1) >> 1].neg());\n }\n }\n return p.type === 'affine' ? acc.toP() : acc;\n};\n\nBaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,\n points,\n coeffs,\n len,\n jacobianResult) {\n var wndWidth = this._wnafT1;\n var wnd = this._wnafT2;\n var naf = this._wnafT3;\n\n // Fill all arrays\n var max = 0;\n var i;\n var j;\n var p;\n for (i = 0; i < len; i++) {\n p = points[i];\n var nafPoints = p._getNAFPoints(defW);\n wndWidth[i] = nafPoints.wnd;\n wnd[i] = nafPoints.points;\n }\n\n // Comb small window NAFs\n for (i = len - 1; i >= 1; i -= 2) {\n var a = i - 1;\n var b = i;\n if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {\n naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);\n naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);\n max = Math.max(naf[a].length, max);\n max = Math.max(naf[b].length, max);\n continue;\n }\n\n var comb = [\n points[a], /* 1 */\n null, /* 3 */\n null, /* 5 */\n points[b], /* 7 */\n ];\n\n // Try to avoid Projective points, if possible\n if (points[a].y.cmp(points[b].y) === 0) {\n comb[1] = points[a].add(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].add(points[b].neg());\n } else {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n }\n\n var index = [\n -3, /* -1 -1 */\n -1, /* -1 0 */\n -5, /* -1 1 */\n -7, /* 0 -1 */\n 0, /* 0 0 */\n 7, /* 0 1 */\n 5, /* 1 -1 */\n 1, /* 1 0 */\n 3, /* 1 1 */\n ];\n\n var jsf = getJSF(coeffs[a], coeffs[b]);\n max = Math.max(jsf[0].length, max);\n naf[a] = new Array(max);\n naf[b] = new Array(max);\n for (j = 0; j < max; j++) {\n var ja = jsf[0][j] | 0;\n var jb = jsf[1][j] | 0;\n\n naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];\n naf[b][j] = 0;\n wnd[a] = comb;\n }\n }\n\n var acc = this.jpoint(null, null, null);\n var tmp = this._wnafT4;\n for (i = max; i >= 0; i--) {\n var k = 0;\n\n while (i >= 0) {\n var zero = true;\n for (j = 0; j < len; j++) {\n tmp[j] = naf[j][i] | 0;\n if (tmp[j] !== 0)\n zero = false;\n }\n if (!zero)\n break;\n k++;\n i--;\n }\n if (i >= 0)\n k++;\n acc = acc.dblp(k);\n if (i < 0)\n break;\n\n for (j = 0; j < len; j++) {\n var z = tmp[j];\n p;\n if (z === 0)\n continue;\n else if (z > 0)\n p = wnd[j][(z - 1) >> 1];\n else if (z < 0)\n p = wnd[j][(-z - 1) >> 1].neg();\n\n if (p.type === 'affine')\n acc = acc.mixedAdd(p);\n else\n acc = acc.add(p);\n }\n }\n // Zeroify references\n for (i = 0; i < len; i++)\n wnd[i] = null;\n\n if (jacobianResult)\n return acc;\n else\n return acc.toP();\n};\n\nfunction BasePoint(curve, type) {\n this.curve = curve;\n this.type = type;\n this.precomputed = null;\n}\nBaseCurve.BasePoint = BasePoint;\n\nBasePoint.prototype.eq = function eq(/*other*/) {\n throw new Error('Not implemented');\n};\n\nBasePoint.prototype.validate = function validate() {\n return this.curve.validate(this);\n};\n\nBaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n bytes = utils.toArray(bytes, enc);\n\n var len = this.p.byteLength();\n\n // uncompressed, hybrid-odd, hybrid-even\n if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&\n bytes.length - 1 === 2 * len) {\n if (bytes[0] === 0x06)\n assert(bytes[bytes.length - 1] % 2 === 0);\n else if (bytes[0] === 0x07)\n assert(bytes[bytes.length - 1] % 2 === 1);\n\n var res = this.point(bytes.slice(1, 1 + len),\n bytes.slice(1 + len, 1 + 2 * len));\n\n return res;\n } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&\n bytes.length - 1 === len) {\n return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);\n }\n throw new Error('Unknown point format');\n};\n\nBasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {\n return this.encode(enc, true);\n};\n\nBasePoint.prototype._encode = function _encode(compact) {\n var len = this.curve.p.byteLength();\n var x = this.getX().toArray('be', len);\n\n if (compact)\n return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);\n\n return [ 0x04 ].concat(x, this.getY().toArray('be', len));\n};\n\nBasePoint.prototype.encode = function encode(enc, compact) {\n return utils.encode(this._encode(compact), enc);\n};\n\nBasePoint.prototype.precompute = function precompute(power) {\n if (this.precomputed)\n return this;\n\n var precomputed = {\n doubles: null,\n naf: null,\n beta: null,\n };\n precomputed.naf = this._getNAFPoints(8);\n precomputed.doubles = this._getDoubles(4, power);\n precomputed.beta = this._getBeta();\n this.precomputed = precomputed;\n\n return this;\n};\n\nBasePoint.prototype._hasDoubles = function _hasDoubles(k) {\n if (!this.precomputed)\n return false;\n\n var doubles = this.precomputed.doubles;\n if (!doubles)\n return false;\n\n return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);\n};\n\nBasePoint.prototype._getDoubles = function _getDoubles(step, power) {\n if (this.precomputed && this.precomputed.doubles)\n return this.precomputed.doubles;\n\n var doubles = [ this ];\n var acc = this;\n for (var i = 0; i < power; i += step) {\n for (var j = 0; j < step; j++)\n acc = acc.dbl();\n doubles.push(acc);\n }\n return {\n step: step,\n points: doubles,\n };\n};\n\nBasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {\n if (this.precomputed && this.precomputed.naf)\n return this.precomputed.naf;\n\n var res = [ this ];\n var max = (1 << wnd) - 1;\n var dbl = max === 1 ? null : this.dbl();\n for (var i = 1; i < max; i++)\n res[i] = res[i - 1].add(dbl);\n return {\n wnd: wnd,\n points: res,\n };\n};\n\nBasePoint.prototype._getBeta = function _getBeta() {\n return null;\n};\n\nBasePoint.prototype.dblp = function dblp(k) {\n var r = this;\n for (var i = 0; i < k; i++)\n r = r.dbl();\n return r;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction EdwardsCurve(conf) {\n // NOTE: Important as we are creating point in Base.call()\n this.twisted = (conf.a | 0) !== 1;\n this.mOneA = this.twisted && (conf.a | 0) === -1;\n this.extended = this.mOneA;\n\n Base.call(this, 'edwards', conf);\n\n this.a = new BN(conf.a, 16).umod(this.red.m);\n this.a = this.a.toRed(this.red);\n this.c = new BN(conf.c, 16).toRed(this.red);\n this.c2 = this.c.redSqr();\n this.d = new BN(conf.d, 16).toRed(this.red);\n this.dd = this.d.redAdd(this.d);\n\n assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);\n this.oneC = (conf.c | 0) === 1;\n}\ninherits(EdwardsCurve, Base);\nmodule.exports = EdwardsCurve;\n\nEdwardsCurve.prototype._mulA = function _mulA(num) {\n if (this.mOneA)\n return num.redNeg();\n else\n return this.a.redMul(num);\n};\n\nEdwardsCurve.prototype._mulC = function _mulC(num) {\n if (this.oneC)\n return num;\n else\n return this.c.redMul(num);\n};\n\n// Just for compatibility with Short curve\nEdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {\n return this.point(x, y, z, t);\n};\n\nEdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var x2 = x.redSqr();\n var rhs = this.c2.redSub(this.a.redMul(x2));\n var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));\n\n var y2 = rhs.redMul(lhs.redInvm());\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {\n y = new BN(y, 16);\n if (!y.red)\n y = y.toRed(this.red);\n\n // x^2 = (y^2 - c^2) / (c^2 d y^2 - a)\n var y2 = y.redSqr();\n var lhs = y2.redSub(this.c2);\n var rhs = y2.redMul(this.d).redMul(this.c2).redSub(this.a);\n var x2 = lhs.redMul(rhs.redInvm());\n\n if (x2.cmp(this.zero) === 0) {\n if (odd)\n throw new Error('invalid point');\n else\n return this.point(this.zero, y);\n }\n\n var x = x2.redSqrt();\n if (x.redSqr().redSub(x2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n if (x.fromRed().isOdd() !== odd)\n x = x.redNeg();\n\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.validate = function validate(point) {\n if (point.isInfinity())\n return true;\n\n // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)\n point.normalize();\n\n var x2 = point.x.redSqr();\n var y2 = point.y.redSqr();\n var lhs = x2.redMul(this.a).redAdd(y2);\n var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));\n\n return lhs.cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, y, z, t) {\n Base.BasePoint.call(this, curve, 'projective');\n if (x === null && y === null && z === null) {\n this.x = this.curve.zero;\n this.y = this.curve.one;\n this.z = this.curve.one;\n this.t = this.curve.zero;\n this.zOne = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = z ? new BN(z, 16) : this.curve.one;\n this.t = t && new BN(t, 16);\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n if (this.t && !this.t.red)\n this.t = this.t.toRed(this.curve.red);\n this.zOne = this.z === this.curve.one;\n\n // Use extended coordinates\n if (this.curve.extended && !this.t) {\n this.t = this.x.redMul(this.y);\n if (!this.zOne)\n this.t = this.t.redMul(this.z.redInvm());\n }\n }\n}\ninherits(Point, Base.BasePoint);\n\nEdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nEdwardsCurve.prototype.point = function point(x, y, z, t) {\n return new Point(this, x, y, z, t);\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1], obj[2]);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '<EC Point Infinity>';\n return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +\n ' y: ' + this.y.fromRed().toString(16, 2) +\n ' z: ' + this.z.fromRed().toString(16, 2) + '>';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.x.cmpn(0) === 0 &&\n (this.y.cmp(this.z) === 0 ||\n (this.zOne && this.y.cmp(this.curve.c) === 0));\n};\n\nPoint.prototype._extDbl = function _extDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #doubling-dbl-2008-hwcd\n // 4M + 4S\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = 2 * Z1^2\n var c = this.z.redSqr();\n c = c.redIAdd(c);\n // D = a * A\n var d = this.curve._mulA(a);\n // E = (X1 + Y1)^2 - A - B\n var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);\n // G = D + B\n var g = d.redAdd(b);\n // F = G - C\n var f = g.redSub(c);\n // H = D - B\n var h = d.redSub(b);\n // X3 = E * F\n var nx = e.redMul(f);\n // Y3 = G * H\n var ny = g.redMul(h);\n // T3 = E * H\n var nt = e.redMul(h);\n // Z3 = F * G\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projDbl = function _projDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #doubling-dbl-2008-bbjlp\n // #doubling-dbl-2007-bl\n // and others\n // Generally 3M + 4S or 2M + 4S\n\n // B = (X1 + Y1)^2\n var b = this.x.redAdd(this.y).redSqr();\n // C = X1^2\n var c = this.x.redSqr();\n // D = Y1^2\n var d = this.y.redSqr();\n\n var nx;\n var ny;\n var nz;\n var e;\n var h;\n var j;\n if (this.curve.twisted) {\n // E = a * C\n e = this.curve._mulA(c);\n // F = E + D\n var f = e.redAdd(d);\n if (this.zOne) {\n // X3 = (B - C - D) * (F - 2)\n nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));\n // Y3 = F * (E - D)\n ny = f.redMul(e.redSub(d));\n // Z3 = F^2 - 2 * F\n nz = f.redSqr().redSub(f).redSub(f);\n } else {\n // H = Z1^2\n h = this.z.redSqr();\n // J = F - 2 * H\n j = f.redSub(h).redISub(h);\n // X3 = (B-C-D)*J\n nx = b.redSub(c).redISub(d).redMul(j);\n // Y3 = F * (E - D)\n ny = f.redMul(e.redSub(d));\n // Z3 = F * J\n nz = f.redMul(j);\n }\n } else {\n // E = C + D\n e = c.redAdd(d);\n // H = (c * Z1)^2\n h = this.curve._mulC(this.z).redSqr();\n // J = E - 2 * H\n j = e.redSub(h).redSub(h);\n // X3 = c * (B - E) * J\n nx = this.curve._mulC(b.redISub(e)).redMul(j);\n // Y3 = c * E * (C - D)\n ny = this.curve._mulC(e).redMul(c.redISub(d));\n // Z3 = E * J\n nz = e.redMul(j);\n }\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n // Double in extended coordinates\n if (this.curve.extended)\n return this._extDbl();\n else\n return this._projDbl();\n};\n\nPoint.prototype._extAdd = function _extAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #addition-add-2008-hwcd-3\n // 8M\n\n // A = (Y1 - X1) * (Y2 - X2)\n var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x));\n // B = (Y1 + X1) * (Y2 + X2)\n var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));\n // C = T1 * k * T2\n var c = this.t.redMul(this.curve.dd).redMul(p.t);\n // D = Z1 * 2 * Z2\n var d = this.z.redMul(p.z.redAdd(p.z));\n // E = B - A\n var e = b.redSub(a);\n // F = D - C\n var f = d.redSub(c);\n // G = D + C\n var g = d.redAdd(c);\n // H = B + A\n var h = b.redAdd(a);\n // X3 = E * F\n var nx = e.redMul(f);\n // Y3 = G * H\n var ny = g.redMul(h);\n // T3 = E * H\n var nt = e.redMul(h);\n // Z3 = F * G\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projAdd = function _projAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #addition-add-2008-bbjlp\n // #addition-add-2007-bl\n // 10M + 1S\n\n // A = Z1 * Z2\n var a = this.z.redMul(p.z);\n // B = A^2\n var b = a.redSqr();\n // C = X1 * X2\n var c = this.x.redMul(p.x);\n // D = Y1 * Y2\n var d = this.y.redMul(p.y);\n // E = d * C * D\n var e = this.curve.d.redMul(c).redMul(d);\n // F = B - E\n var f = b.redSub(e);\n // G = B + E\n var g = b.redAdd(e);\n // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)\n var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);\n var nx = a.redMul(f).redMul(tmp);\n var ny;\n var nz;\n if (this.curve.twisted) {\n // Y3 = A * G * (D - a * C)\n ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));\n // Z3 = F * G\n nz = f.redMul(g);\n } else {\n // Y3 = A * G * (D - C)\n ny = a.redMul(g).redMul(d.redSub(c));\n // Z3 = c * F * G\n nz = this.curve._mulC(f).redMul(g);\n }\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.add = function add(p) {\n if (this.isInfinity())\n return p;\n if (p.isInfinity())\n return this;\n\n if (this.curve.extended)\n return this._extAdd(p);\n else\n return this._projAdd(p);\n};\n\nPoint.prototype.mul = function mul(k) {\n if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, false);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true);\n};\n\nPoint.prototype.normalize = function normalize() {\n if (this.zOne)\n return this;\n\n // Normalize coordinates\n var zi = this.z.redInvm();\n this.x = this.x.redMul(zi);\n this.y = this.y.redMul(zi);\n if (this.t)\n this.t = this.t.redMul(zi);\n this.z = this.curve.one;\n this.zOne = true;\n return this;\n};\n\nPoint.prototype.neg = function neg() {\n return this.curve.point(this.x.redNeg(),\n this.y,\n this.z,\n this.t && this.t.redNeg());\n};\n\nPoint.prototype.getX = function getX() {\n this.normalize();\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n this.normalize();\n return this.y.fromRed();\n};\n\nPoint.prototype.eq = function eq(other) {\n return this === other ||\n this.getX().cmp(other.getX()) === 0 &&\n this.getY().cmp(other.getY()) === 0;\n};\n\nPoint.prototype.eqXToP = function eqXToP(x) {\n var rx = x.toRed(this.curve.red).redMul(this.z);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(this.z);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\n// Compatibility with BaseCurve\nPoint.prototype.toP = Point.prototype.normalize;\nPoint.prototype.mixedAdd = Point.prototype.add;\n","'use strict';\n\nvar curve = exports;\n\ncurve.base = require('./base');\ncurve.short = require('./short');\ncurve.mont = require('./mont');\ncurve.edwards = require('./edwards');\n","'use strict';\n\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar utils = require('../utils');\n\nfunction MontCurve(conf) {\n Base.call(this, 'mont', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.i4 = new BN(4).toRed(this.red).redInvm();\n this.two = new BN(2).toRed(this.red);\n this.a24 = this.i4.redMul(this.a.redAdd(this.two));\n}\ninherits(MontCurve, Base);\nmodule.exports = MontCurve;\n\nMontCurve.prototype.validate = function validate(point) {\n var x = point.normalize().x;\n var x2 = x.redSqr();\n var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);\n var y = rhs.redSqrt();\n\n return y.redSqr().cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, z) {\n Base.BasePoint.call(this, curve, 'projective');\n if (x === null && z === null) {\n this.x = this.curve.one;\n this.z = this.curve.zero;\n } else {\n this.x = new BN(x, 16);\n this.z = new BN(z, 16);\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n }\n}\ninherits(Point, Base.BasePoint);\n\nMontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n return this.point(utils.toArray(bytes, enc), 1);\n};\n\nMontCurve.prototype.point = function point(x, z) {\n return new Point(this, x, z);\n};\n\nMontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nPoint.prototype.precompute = function precompute() {\n // No-op\n};\n\nPoint.prototype._encode = function _encode() {\n return this.getX().toArray('be', this.curve.p.byteLength());\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1] || curve.one);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '<EC Point Infinity>';\n return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +\n ' z: ' + this.z.fromRed().toString(16, 2) + '>';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n\nPoint.prototype.dbl = function dbl() {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3\n // 2M + 2S + 4A\n\n // A = X1 + Z1\n var a = this.x.redAdd(this.z);\n // AA = A^2\n var aa = a.redSqr();\n // B = X1 - Z1\n var b = this.x.redSub(this.z);\n // BB = B^2\n var bb = b.redSqr();\n // C = AA - BB\n var c = aa.redSub(bb);\n // X3 = AA * BB\n var nx = aa.redMul(bb);\n // Z3 = C * (BB + A24 * C)\n var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.add = function add() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.diffAdd = function diffAdd(p, diff) {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3\n // 4M + 2S + 6A\n\n // A = X2 + Z2\n var a = this.x.redAdd(this.z);\n // B = X2 - Z2\n var b = this.x.redSub(this.z);\n // C = X3 + Z3\n var c = p.x.redAdd(p.z);\n // D = X3 - Z3\n var d = p.x.redSub(p.z);\n // DA = D * A\n var da = d.redMul(a);\n // CB = C * B\n var cb = c.redMul(b);\n // X5 = Z1 * (DA + CB)^2\n var nx = diff.z.redMul(da.redAdd(cb).redSqr());\n // Z5 = X1 * (DA - CB)^2\n var nz = diff.x.redMul(da.redISub(cb).redSqr());\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.mul = function mul(k) {\n var t = k.clone();\n var a = this; // (N / 2) * Q + Q\n var b = this.curve.point(null, null); // (N / 2) * Q\n var c = this; // Q\n\n for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1))\n bits.push(t.andln(1));\n\n for (var i = bits.length - 1; i >= 0; i--) {\n if (bits[i] === 0) {\n // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q\n a = a.diffAdd(b, c);\n // N * Q = 2 * ((N / 2) * Q + Q))\n b = b.dbl();\n } else {\n // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)\n b = a.diffAdd(b, c);\n // N * Q + Q = 2 * ((N / 2) * Q + Q)\n a = a.dbl();\n }\n }\n return b;\n};\n\nPoint.prototype.mulAdd = function mulAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.jumlAdd = function jumlAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.eq = function eq(other) {\n return this.getX().cmp(other.getX()) === 0;\n};\n\nPoint.prototype.normalize = function normalize() {\n this.x = this.x.redMul(this.z.redInvm());\n this.z = this.curve.one;\n return this;\n};\n\nPoint.prototype.getX = function getX() {\n // Normalize coordinates\n this.normalize();\n\n return this.x.fromRed();\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction ShortCurve(conf) {\n Base.call(this, 'short', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.tinv = this.two.redInvm();\n\n this.zeroA = this.a.fromRed().cmpn(0) === 0;\n this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;\n\n // If the curve is endomorphic, precalculate beta and lambda\n this.endo = this._getEndomorphism(conf);\n this._endoWnafT1 = new Array(4);\n this._endoWnafT2 = new Array(4);\n}\ninherits(ShortCurve, Base);\nmodule.exports = ShortCurve;\n\nShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {\n // No efficient endomorphism\n if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)\n return;\n\n // Compute beta and lambda, that lambda * P = (beta * Px; Py)\n var beta;\n var lambda;\n if (conf.beta) {\n beta = new BN(conf.beta, 16).toRed(this.red);\n } else {\n var betas = this._getEndoRoots(this.p);\n // Choose the smallest beta\n beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];\n beta = beta.toRed(this.red);\n }\n if (conf.lambda) {\n lambda = new BN(conf.lambda, 16);\n } else {\n // Choose the lambda that is matching selected beta\n var lambdas = this._getEndoRoots(this.n);\n if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {\n lambda = lambdas[0];\n } else {\n lambda = lambdas[1];\n assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);\n }\n }\n\n // Get basis vectors, used for balanced length-two representation\n var basis;\n if (conf.basis) {\n basis = conf.basis.map(function(vec) {\n return {\n a: new BN(vec.a, 16),\n b: new BN(vec.b, 16),\n };\n });\n } else {\n basis = this._getEndoBasis(lambda);\n }\n\n return {\n beta: beta,\n lambda: lambda,\n basis: basis,\n };\n};\n\nShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {\n // Find roots of for x^2 + x + 1 in F\n // Root = (-1 +- Sqrt(-3)) / 2\n //\n var red = num === this.p ? this.red : BN.mont(num);\n var tinv = new BN(2).toRed(red).redInvm();\n var ntinv = tinv.redNeg();\n\n var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);\n\n var l1 = ntinv.redAdd(s).fromRed();\n var l2 = ntinv.redSub(s).fromRed();\n return [ l1, l2 ];\n};\n\nShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {\n // aprxSqrt >= sqrt(this.n)\n var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));\n\n // 3.74\n // Run EGCD, until r(L + 1) < aprxSqrt\n var u = lambda;\n var v = this.n.clone();\n var x1 = new BN(1);\n var y1 = new BN(0);\n var x2 = new BN(0);\n var y2 = new BN(1);\n\n // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)\n var a0;\n var b0;\n // First vector\n var a1;\n var b1;\n // Second vector\n var a2;\n var b2;\n\n var prevR;\n var i = 0;\n var r;\n var x;\n while (u.cmpn(0) !== 0) {\n var q = v.div(u);\n r = v.sub(q.mul(u));\n x = x2.sub(q.mul(x1));\n var y = y2.sub(q.mul(y1));\n\n if (!a1 && r.cmp(aprxSqrt) < 0) {\n a0 = prevR.neg();\n b0 = x1;\n a1 = r.neg();\n b1 = x;\n } else if (a1 && ++i === 2) {\n break;\n }\n prevR = r;\n\n v = u;\n u = r;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n }\n a2 = r.neg();\n b2 = x;\n\n var len1 = a1.sqr().add(b1.sqr());\n var len2 = a2.sqr().add(b2.sqr());\n if (len2.cmp(len1) >= 0) {\n a2 = a0;\n b2 = b0;\n }\n\n // Normalize signs\n if (a1.negative) {\n a1 = a1.neg();\n b1 = b1.neg();\n }\n if (a2.negative) {\n a2 = a2.neg();\n b2 = b2.neg();\n }\n\n return [\n { a: a1, b: b1 },\n { a: a2, b: b2 },\n ];\n};\n\nShortCurve.prototype._endoSplit = function _endoSplit(k) {\n var basis = this.endo.basis;\n var v1 = basis[0];\n var v2 = basis[1];\n\n var c1 = v2.b.mul(k).divRound(this.n);\n var c2 = v1.b.neg().mul(k).divRound(this.n);\n\n var p1 = c1.mul(v1.a);\n var p2 = c2.mul(v2.a);\n var q1 = c1.mul(v1.b);\n var q2 = c2.mul(v2.b);\n\n // Calculate answer\n var k1 = k.sub(p1).sub(p2);\n var k2 = q1.add(q2).neg();\n return { k1: k1, k2: k2 };\n};\n\nShortCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n // XXX Is there any way to tell if the number is odd without converting it\n // to non-red form?\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nShortCurve.prototype.validate = function validate(point) {\n if (point.inf)\n return true;\n\n var x = point.x;\n var y = point.y;\n\n var ax = this.a.redMul(x);\n var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);\n return y.redSqr().redISub(rhs).cmpn(0) === 0;\n};\n\nShortCurve.prototype._endoWnafMulAdd =\n function _endoWnafMulAdd(points, coeffs, jacobianResult) {\n var npoints = this._endoWnafT1;\n var ncoeffs = this._endoWnafT2;\n for (var i = 0; i < points.length; i++) {\n var split = this._endoSplit(coeffs[i]);\n var p = points[i];\n var beta = p._getBeta();\n\n if (split.k1.negative) {\n split.k1.ineg();\n p = p.neg(true);\n }\n if (split.k2.negative) {\n split.k2.ineg();\n beta = beta.neg(true);\n }\n\n npoints[i * 2] = p;\n npoints[i * 2 + 1] = beta;\n ncoeffs[i * 2] = split.k1;\n ncoeffs[i * 2 + 1] = split.k2;\n }\n var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);\n\n // Clean-up references to points and coefficients\n for (var j = 0; j < i * 2; j++) {\n npoints[j] = null;\n ncoeffs[j] = null;\n }\n return res;\n };\n\nfunction Point(curve, x, y, isRed) {\n Base.BasePoint.call(this, curve, 'affine');\n if (x === null && y === null) {\n this.x = null;\n this.y = null;\n this.inf = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n // Force redgomery representation when loading from JSON\n if (isRed) {\n this.x.forceRed(this.curve.red);\n this.y.forceRed(this.curve.red);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n this.inf = false;\n }\n}\ninherits(Point, Base.BasePoint);\n\nShortCurve.prototype.point = function point(x, y, isRed) {\n return new Point(this, x, y, isRed);\n};\n\nShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {\n return Point.fromJSON(this, obj, red);\n};\n\nPoint.prototype._getBeta = function _getBeta() {\n if (!this.curve.endo)\n return;\n\n var pre = this.precomputed;\n if (pre && pre.beta)\n return pre.beta;\n\n var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);\n if (pre) {\n var curve = this.curve;\n var endoMul = function(p) {\n return curve.point(p.x.redMul(curve.endo.beta), p.y);\n };\n pre.beta = beta;\n beta.precomputed = {\n beta: null,\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(endoMul),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(endoMul),\n },\n };\n }\n return beta;\n};\n\nPoint.prototype.toJSON = function toJSON() {\n if (!this.precomputed)\n return [ this.x, this.y ];\n\n return [ this.x, this.y, this.precomputed && {\n doubles: this.precomputed.doubles && {\n step: this.precomputed.doubles.step,\n points: this.precomputed.doubles.points.slice(1),\n },\n naf: this.precomputed.naf && {\n wnd: this.precomputed.naf.wnd,\n points: this.precomputed.naf.points.slice(1),\n },\n } ];\n};\n\nPoint.fromJSON = function fromJSON(curve, obj, red) {\n if (typeof obj === 'string')\n obj = JSON.parse(obj);\n var res = curve.point(obj[0], obj[1], red);\n if (!obj[2])\n return res;\n\n function obj2point(obj) {\n return curve.point(obj[0], obj[1], red);\n }\n\n var pre = obj[2];\n res.precomputed = {\n beta: null,\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: [ res ].concat(pre.doubles.points.map(obj2point)),\n },\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: [ res ].concat(pre.naf.points.map(obj2point)),\n },\n };\n return res;\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '<EC Point Infinity>';\n return '<EC Point x: ' + this.x.fromRed().toString(16, 2) +\n ' y: ' + this.y.fromRed().toString(16, 2) + '>';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n return this.inf;\n};\n\nPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.inf)\n return p;\n\n // P + O = P\n if (p.inf)\n return this;\n\n // P + P = 2P\n if (this.eq(p))\n return this.dbl();\n\n // P + (-P) = O\n if (this.neg().eq(p))\n return this.curve.point(null, null);\n\n // P + Q = O\n if (this.x.cmp(p.x) === 0)\n return this.curve.point(null, null);\n\n var c = this.y.redSub(p.y);\n if (c.cmpn(0) !== 0)\n c = c.redMul(this.x.redSub(p.x).redInvm());\n var nx = c.redSqr().redISub(this.x).redISub(p.x);\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.inf)\n return this;\n\n // 2P = O\n var ys1 = this.y.redAdd(this.y);\n if (ys1.cmpn(0) === 0)\n return this.curve.point(null, null);\n\n var a = this.curve.a;\n\n var x2 = this.x.redSqr();\n var dyinv = ys1.redInvm();\n var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);\n\n var nx = c.redSqr().redISub(this.x.redAdd(this.x));\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.getX = function getX() {\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n return this.y.fromRed();\n};\n\nPoint.prototype.mul = function mul(k) {\n k = new BN(k, 16);\n if (this.isInfinity())\n return this;\n else if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else if (this.curve.endo)\n return this.curve._endoWnafMulAdd([ this ], [ k ]);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs, true);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2, true);\n};\n\nPoint.prototype.eq = function eq(p) {\n return this === p ||\n this.inf === p.inf &&\n (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);\n};\n\nPoint.prototype.neg = function neg(_precompute) {\n if (this.inf)\n return this;\n\n var res = this.curve.point(this.x, this.y.redNeg());\n if (_precompute && this.precomputed) {\n var pre = this.precomputed;\n var negate = function(p) {\n return p.neg();\n };\n res.precomputed = {\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(negate),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(negate),\n },\n };\n }\n return res;\n};\n\nPoint.prototype.toJ = function toJ() {\n if (this.inf)\n return this.curve.jpoint(null, null, null);\n\n var res = this.curve.jpoint(this.x, this.y, this.curve.one);\n return res;\n};\n\nfunction JPoint(curve, x, y, z) {\n Base.BasePoint.call(this, curve, 'jacobian');\n if (x === null && y === null && z === null) {\n this.x = this.curve.one;\n this.y = this.curve.one;\n this.z = new BN(0);\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = new BN(z, 16);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n\n this.zOne = this.z === this.curve.one;\n}\ninherits(JPoint, Base.BasePoint);\n\nShortCurve.prototype.jpoint = function jpoint(x, y, z) {\n return new JPoint(this, x, y, z);\n};\n\nJPoint.prototype.toP = function toP() {\n if (this.isInfinity())\n return this.curve.point(null, null);\n\n var zinv = this.z.redInvm();\n var zinv2 = zinv.redSqr();\n var ax = this.x.redMul(zinv2);\n var ay = this.y.redMul(zinv2).redMul(zinv);\n\n return this.curve.point(ax, ay);\n};\n\nJPoint.prototype.neg = function neg() {\n return this.curve.jpoint(this.x, this.y.redNeg(), this.z);\n};\n\nJPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.isInfinity())\n return p;\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 12M + 4S + 7A\n var pz2 = p.z.redSqr();\n var z2 = this.z.redSqr();\n var u1 = this.x.redMul(pz2);\n var u2 = p.x.redMul(z2);\n var s1 = this.y.redMul(pz2.redMul(p.z));\n var s2 = p.y.redMul(z2.redMul(this.z));\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(p.z).redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mixedAdd = function mixedAdd(p) {\n // O + P = P\n if (this.isInfinity())\n return p.toJ();\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 8M + 3S + 7A\n var z2 = this.z.redSqr();\n var u1 = this.x;\n var u2 = p.x.redMul(z2);\n var s1 = this.y;\n var s2 = p.y.redMul(z2).redMul(this.z);\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.dblp = function dblp(pow) {\n if (pow === 0)\n return this;\n if (this.isInfinity())\n return this;\n if (!pow)\n return this.dbl();\n\n var i;\n if (this.curve.zeroA || this.curve.threeA) {\n var r = this;\n for (i = 0; i < pow; i++)\n r = r.dbl();\n return r;\n }\n\n // 1M + 2S + 1A + N * (4S + 5M + 8A)\n // N = 1 => 6M + 6S + 9A\n var a = this.curve.a;\n var tinv = this.curve.tinv;\n\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n // Reuse results\n var jyd = jy.redAdd(jy);\n for (i = 0; i < pow; i++) {\n var jx2 = jx.redSqr();\n var jyd2 = jyd.redSqr();\n var jyd4 = jyd2.redSqr();\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var t1 = jx.redMul(jyd2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n var dny = c.redMul(t2);\n dny = dny.redIAdd(dny).redISub(jyd4);\n var nz = jyd.redMul(jz);\n if (i + 1 < pow)\n jz4 = jz4.redMul(jyd4);\n\n jx = nx;\n jz = nz;\n jyd = dny;\n }\n\n return this.curve.jpoint(jx, jyd.redMul(tinv), jz);\n};\n\nJPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n if (this.curve.zeroA)\n return this._zeroDbl();\n else if (this.curve.threeA)\n return this._threeDbl();\n else\n return this._dbl();\n};\n\nJPoint.prototype._zeroDbl = function _zeroDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 14A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // T = M ^ 2 - 2*S\n var t = m.redSqr().redISub(s).redISub(s);\n\n // 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2*Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-dbl-2009-l\n // 2M + 5S + 13A\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = B^2\n var c = b.redSqr();\n // D = 2 * ((X1 + B)^2 - A - C)\n var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);\n d = d.redIAdd(d);\n // E = 3 * A\n var e = a.redAdd(a).redIAdd(a);\n // F = E^2\n var f = e.redSqr();\n\n // 8 * C\n var c8 = c.redIAdd(c);\n c8 = c8.redIAdd(c8);\n c8 = c8.redIAdd(c8);\n\n // X3 = F - 2 * D\n nx = f.redISub(d).redISub(d);\n // Y3 = E * (D - X3) - 8 * C\n ny = e.redMul(d.redISub(nx)).redISub(c8);\n // Z3 = 2 * Y1 * Z1\n nz = this.y.redMul(this.z);\n nz = nz.redIAdd(nz);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._threeDbl = function _threeDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 15A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a\n var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);\n // T = M^2 - 2 * S\n var t = m.redSqr().redISub(s).redISub(s);\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2 * Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b\n // 3M + 5S\n\n // delta = Z1^2\n var delta = this.z.redSqr();\n // gamma = Y1^2\n var gamma = this.y.redSqr();\n // beta = X1 * gamma\n var beta = this.x.redMul(gamma);\n // alpha = 3 * (X1 - delta) * (X1 + delta)\n var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));\n alpha = alpha.redAdd(alpha).redIAdd(alpha);\n // X3 = alpha^2 - 8 * beta\n var beta4 = beta.redIAdd(beta);\n beta4 = beta4.redIAdd(beta4);\n var beta8 = beta4.redAdd(beta4);\n nx = alpha.redSqr().redISub(beta8);\n // Z3 = (Y1 + Z1)^2 - gamma - delta\n nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);\n // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2\n var ggamma8 = gamma.redSqr();\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._dbl = function _dbl() {\n var a = this.curve.a;\n\n // 4M + 6S + 10A\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n var jx2 = jx.redSqr();\n var jy2 = jy.redSqr();\n\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var jxd4 = jx.redAdd(jx);\n jxd4 = jxd4.redIAdd(jxd4);\n var t1 = jxd4.redMul(jy2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n\n var jyd8 = jy2.redSqr();\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n var ny = c.redMul(t2).redISub(jyd8);\n var nz = jy.redAdd(jy).redMul(jz);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.trpl = function trpl() {\n if (!this.curve.zeroA)\n return this.dbl().add(this);\n\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl\n // 5M + 10S + ...\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // ZZ = Z1^2\n var zz = this.z.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // M = 3 * XX + a * ZZ2; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // MM = M^2\n var mm = m.redSqr();\n // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM\n var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n e = e.redIAdd(e);\n e = e.redAdd(e).redIAdd(e);\n e = e.redISub(mm);\n // EE = E^2\n var ee = e.redSqr();\n // T = 16*YYYY\n var t = yyyy.redIAdd(yyyy);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n // U = (M + E)^2 - MM - EE - T\n var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);\n // X3 = 4 * (X1 * EE - 4 * YY * U)\n var yyu4 = yy.redMul(u);\n yyu4 = yyu4.redIAdd(yyu4);\n yyu4 = yyu4.redIAdd(yyu4);\n var nx = this.x.redMul(ee).redISub(yyu4);\n nx = nx.redIAdd(nx);\n nx = nx.redIAdd(nx);\n // Y3 = 8 * Y1 * (U * (T - U) - E * EE)\n var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n // Z3 = (Z1 + E)^2 - ZZ - EE\n var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mul = function mul(k, kbase) {\n k = new BN(k, kbase);\n\n return this.curve._wnafMul(this, k);\n};\n\nJPoint.prototype.eq = function eq(p) {\n if (p.type === 'affine')\n return this.eq(p.toJ());\n\n if (this === p)\n return true;\n\n // x1 * z2^2 == x2 * z1^2\n var z2 = this.z.redSqr();\n var pz2 = p.z.redSqr();\n if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)\n return false;\n\n // y1 * z2^3 == y2 * z1^3\n var z3 = z2.redMul(this.z);\n var pz3 = pz2.redMul(p.z);\n return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;\n};\n\nJPoint.prototype.eqXToP = function eqXToP(x) {\n var zs = this.z.redSqr();\n var rx = x.toRed(this.curve.red).redMul(zs);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(zs);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\nJPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '<EC JPoint Infinity>';\n return '<EC JPoint x: ' + this.x.toString(16, 2) +\n ' y: ' + this.y.toString(16, 2) +\n ' z: ' + this.z.toString(16, 2) + '>';\n};\n\nJPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n","'use strict';\n\nvar curves = exports;\n\nvar hash = require('hash.js');\nvar curve = require('./curve');\nvar utils = require('./utils');\n\nvar assert = utils.assert;\n\nfunction PresetCurve(options) {\n if (options.type === 'short')\n this.curve = new curve.short(options);\n else if (options.type === 'edwards')\n this.curve = new curve.edwards(options);\n else\n this.curve = new curve.mont(options);\n this.g = this.curve.g;\n this.n = this.curve.n;\n this.hash = options.hash;\n\n assert(this.g.validate(), 'Invalid curve');\n assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');\n}\ncurves.PresetCurve = PresetCurve;\n\nfunction defineCurve(name, options) {\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n get: function() {\n var curve = new PresetCurve(options);\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n value: curve,\n });\n return curve;\n },\n });\n}\n\ndefineCurve('p192', {\n type: 'short',\n prime: 'p192',\n p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',\n b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',\n n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',\n hash: hash.sha256,\n gRed: false,\n g: [\n '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',\n '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',\n ],\n});\n\ndefineCurve('p224', {\n type: 'short',\n prime: 'p224',\n p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',\n b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',\n n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',\n hash: hash.sha256,\n gRed: false,\n g: [\n 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',\n 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',\n ],\n});\n\ndefineCurve('p256', {\n type: 'short',\n prime: null,\n p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',\n a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',\n b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',\n n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',\n hash: hash.sha256,\n gRed: false,\n g: [\n '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',\n '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',\n ],\n});\n\ndefineCurve('p384', {\n type: 'short',\n prime: null,\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 ffffffff',\n a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 fffffffc',\n b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +\n '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',\n n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +\n 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',\n hash: hash.sha384,\n gRed: false,\n g: [\n 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +\n '5502f25d bf55296c 3a545e38 72760ab7',\n '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +\n '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',\n ],\n});\n\ndefineCurve('p521', {\n type: 'short',\n prime: null,\n p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff',\n a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff fffffffc',\n b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +\n '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +\n '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',\n n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +\n 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',\n hash: hash.sha512,\n gRed: false,\n g: [\n '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +\n '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +\n 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',\n '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +\n '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +\n '3fad0761 353c7086 a272c240 88be9476 9fd16650',\n ],\n});\n\ndefineCurve('curve25519', {\n type: 'mont',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '76d06',\n b: '1',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '9',\n ],\n});\n\ndefineCurve('ed25519', {\n type: 'edwards',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '-1',\n c: '1',\n // -121665 * (121666^(-1)) (mod P)\n d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',\n\n // 4/5\n '6666666666666666666666666666666666666666666666666666666666666658',\n ],\n});\n\nvar pre;\ntry {\n pre = require('./precomputed/secp256k1');\n} catch (e) {\n pre = undefined;\n}\n\ndefineCurve('secp256k1', {\n type: 'short',\n prime: 'k256',\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',\n a: '0',\n b: '7',\n n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',\n h: '1',\n hash: hash.sha256,\n\n // Precomputed endomorphism\n beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',\n lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',\n basis: [\n {\n a: '3086d221a7d46bcde86c90e49284eb15',\n b: '-e4437ed6010e88286f547fa90abfe4c3',\n },\n {\n a: '114ca50f7a8e2f3f657c1108d9d44cfd8',\n b: '3086d221a7d46bcde86c90e49284eb15',\n },\n ],\n\n gRed: false,\n g: [\n '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',\n '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',\n pre,\n ],\n});\n","'use strict';\n\nvar BN = require('bn.js');\nvar HmacDRBG = require('hmac-drbg');\nvar utils = require('../utils');\nvar curves = require('../curves');\nvar rand = require('brorand');\nvar assert = utils.assert;\n\nvar KeyPair = require('./key');\nvar Signature = require('./signature');\n\nfunction EC(options) {\n if (!(this instanceof EC))\n return new EC(options);\n\n // Shortcut `elliptic.ec(curve-name)`\n if (typeof options === 'string') {\n assert(Object.prototype.hasOwnProperty.call(curves, options),\n 'Unknown curve ' + options);\n\n options = curves[options];\n }\n\n // Shortcut for `elliptic.ec(elliptic.curves.curveName)`\n if (options instanceof curves.PresetCurve)\n options = { curve: options };\n\n this.curve = options.curve.curve;\n this.n = this.curve.n;\n this.nh = this.n.ushrn(1);\n this.g = this.curve.g;\n\n // Point on curve\n this.g = options.curve.g;\n this.g.precompute(options.curve.n.bitLength() + 1);\n\n // Hash for function for DRBG\n this.hash = options.hash || options.curve.hash;\n}\nmodule.exports = EC;\n\nEC.prototype.keyPair = function keyPair(options) {\n return new KeyPair(this, options);\n};\n\nEC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {\n return KeyPair.fromPrivate(this, priv, enc);\n};\n\nEC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {\n return KeyPair.fromPublic(this, pub, enc);\n};\n\nEC.prototype.genKeyPair = function genKeyPair(options) {\n if (!options)\n options = {};\n\n // Instantiate Hmac_DRBG\n var drbg = new HmacDRBG({\n hash: this.hash,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n entropy: options.entropy || rand(this.hash.hmacStrength),\n entropyEnc: options.entropy && options.entropyEnc || 'utf8',\n nonce: this.n.toArray(),\n });\n\n var bytes = this.n.byteLength();\n var ns2 = this.n.sub(new BN(2));\n for (;;) {\n var priv = new BN(drbg.generate(bytes));\n if (priv.cmp(ns2) > 0)\n continue;\n\n priv.iaddn(1);\n return this.keyFromPrivate(priv);\n }\n};\n\nEC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {\n var delta = msg.byteLength() * 8 - this.n.bitLength();\n if (delta > 0)\n msg = msg.ushrn(delta);\n if (!truncOnly && msg.cmp(this.n) >= 0)\n return msg.sub(this.n);\n else\n return msg;\n};\n\nEC.prototype.sign = function sign(msg, key, enc, options) {\n if (typeof enc === 'object') {\n options = enc;\n enc = null;\n }\n if (!options)\n options = {};\n\n key = this.keyFromPrivate(key, enc);\n msg = this._truncateToN(new BN(msg, 16));\n\n // Zero-extend key to provide enough entropy\n var bytes = this.n.byteLength();\n var bkey = key.getPrivate().toArray('be', bytes);\n\n // Zero-extend nonce to have the same byte size as N\n var nonce = msg.toArray('be', bytes);\n\n // Instantiate Hmac_DRBG\n var drbg = new HmacDRBG({\n hash: this.hash,\n entropy: bkey,\n nonce: nonce,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n });\n\n // Number of bytes to generate\n var ns1 = this.n.sub(new BN(1));\n\n for (var iter = 0; ; iter++) {\n var k = options.k ?\n options.k(iter) :\n new BN(drbg.generate(this.n.byteLength()));\n k = this._truncateToN(k, true);\n if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)\n continue;\n\n var kp = this.g.mul(k);\n if (kp.isInfinity())\n continue;\n\n var kpX = kp.getX();\n var r = kpX.umod(this.n);\n if (r.cmpn(0) === 0)\n continue;\n\n var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));\n s = s.umod(this.n);\n if (s.cmpn(0) === 0)\n continue;\n\n var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |\n (kpX.cmp(r) !== 0 ? 2 : 0);\n\n // Use complement of `s`, if it is > `n / 2`\n if (options.canonical && s.cmp(this.nh) > 0) {\n s = this.n.sub(s);\n recoveryParam ^= 1;\n }\n\n return new Signature({ r: r, s: s, recoveryParam: recoveryParam });\n }\n};\n\nEC.prototype.verify = function verify(msg, signature, key, enc) {\n msg = this._truncateToN(new BN(msg, 16));\n key = this.keyFromPublic(key, enc);\n signature = new Signature(signature, 'hex');\n\n // Perform primitive values validation\n var r = signature.r;\n var s = signature.s;\n if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)\n return false;\n if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)\n return false;\n\n // Validate signature\n var sinv = s.invm(this.n);\n var u1 = sinv.mul(msg).umod(this.n);\n var u2 = sinv.mul(r).umod(this.n);\n var p;\n\n if (!this.curve._maxwellTrick) {\n p = this.g.mulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n return p.getX().umod(this.n).cmp(r) === 0;\n }\n\n // NOTE: Greg Maxwell's trick, inspired by:\n // https://git.io/vad3K\n\n p = this.g.jmulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n // Compare `p.x` of Jacobian point with `r`,\n // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the\n // inverse of `p.z^2`\n return p.eqXToP(r);\n};\n\nEC.prototype.recoverPubKey = function(msg, signature, j, enc) {\n assert((3 & j) === j, 'The recovery param is more than two bits');\n signature = new Signature(signature, enc);\n\n var n = this.n;\n var e = new BN(msg);\n var r = signature.r;\n var s = signature.s;\n\n // A set LSB signifies that the y-coordinate is odd\n var isYOdd = j & 1;\n var isSecondKey = j >> 1;\n if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)\n throw new Error('Unable to find sencond key candinate');\n\n // 1.1. Let x = r + jn.\n if (isSecondKey)\n r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);\n else\n r = this.curve.pointFromX(r, isYOdd);\n\n var rInv = signature.r.invm(n);\n var s1 = n.sub(e).mul(rInv).umod(n);\n var s2 = s.mul(rInv).umod(n);\n\n // 1.6.1 Compute Q = r^-1 (sR - eG)\n // Q = r^-1 (sR + -eG)\n return this.g.mulAdd(s1, r, s2);\n};\n\nEC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {\n signature = new Signature(signature, enc);\n if (signature.recoveryParam !== null)\n return signature.recoveryParam;\n\n for (var i = 0; i < 4; i++) {\n var Qprime;\n try {\n Qprime = this.recoverPubKey(e, signature, i);\n } catch (e) {\n continue;\n }\n\n if (Qprime.eq(Q))\n return i;\n }\n throw new Error('Unable to find valid recovery factor');\n};\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction KeyPair(ec, options) {\n this.ec = ec;\n this.priv = null;\n this.pub = null;\n\n // KeyPair(ec, { priv: ..., pub: ... })\n if (options.priv)\n this._importPrivate(options.priv, options.privEnc);\n if (options.pub)\n this._importPublic(options.pub, options.pubEnc);\n}\nmodule.exports = KeyPair;\n\nKeyPair.fromPublic = function fromPublic(ec, pub, enc) {\n if (pub instanceof KeyPair)\n return pub;\n\n return new KeyPair(ec, {\n pub: pub,\n pubEnc: enc,\n });\n};\n\nKeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {\n if (priv instanceof KeyPair)\n return priv;\n\n return new KeyPair(ec, {\n priv: priv,\n privEnc: enc,\n });\n};\n\nKeyPair.prototype.validate = function validate() {\n var pub = this.getPublic();\n\n if (pub.isInfinity())\n return { result: false, reason: 'Invalid public key' };\n if (!pub.validate())\n return { result: false, reason: 'Public key is not a point' };\n if (!pub.mul(this.ec.curve.n).isInfinity())\n return { result: false, reason: 'Public key * N != O' };\n\n return { result: true, reason: null };\n};\n\nKeyPair.prototype.getPublic = function getPublic(compact, enc) {\n // compact is optional argument\n if (typeof compact === 'string') {\n enc = compact;\n compact = null;\n }\n\n if (!this.pub)\n this.pub = this.ec.g.mul(this.priv);\n\n if (!enc)\n return this.pub;\n\n return this.pub.encode(enc, compact);\n};\n\nKeyPair.prototype.getPrivate = function getPrivate(enc) {\n if (enc === 'hex')\n return this.priv.toString(16, 2);\n else\n return this.priv;\n};\n\nKeyPair.prototype._importPrivate = function _importPrivate(key, enc) {\n this.priv = new BN(key, enc || 16);\n\n // Ensure that the priv won't be bigger than n, otherwise we may fail\n // in fixed multiplication method\n this.priv = this.priv.umod(this.ec.curve.n);\n};\n\nKeyPair.prototype._importPublic = function _importPublic(key, enc) {\n if (key.x || key.y) {\n // Montgomery points only have an `x` coordinate.\n // Weierstrass/Edwards points on the other hand have both `x` and\n // `y` coordinates.\n if (this.ec.curve.type === 'mont') {\n assert(key.x, 'Need x coordinate');\n } else if (this.ec.curve.type === 'short' ||\n this.ec.curve.type === 'edwards') {\n assert(key.x && key.y, 'Need both x and y coordinate');\n }\n this.pub = this.ec.curve.point(key.x, key.y);\n return;\n }\n this.pub = this.ec.curve.decodePoint(key, enc);\n};\n\n// ECDH\nKeyPair.prototype.derive = function derive(pub) {\n if(!pub.validate()) {\n assert(pub.validate(), 'public point not validated');\n }\n return pub.mul(this.priv).getX();\n};\n\n// ECDSA\nKeyPair.prototype.sign = function sign(msg, enc, options) {\n return this.ec.sign(msg, this, enc, options);\n};\n\nKeyPair.prototype.verify = function verify(msg, signature) {\n return this.ec.verify(msg, signature, this);\n};\n\nKeyPair.prototype.inspect = function inspect() {\n return '<Key priv: ' + (this.priv && this.priv.toString(16, 2)) +\n ' pub: ' + (this.pub && this.pub.inspect()) + ' >';\n};\n","'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction Signature(options, enc) {\n if (options instanceof Signature)\n return options;\n\n if (this._importDER(options, enc))\n return;\n\n assert(options.r && options.s, 'Signature without r or s');\n this.r = new BN(options.r, 16);\n this.s = new BN(options.s, 16);\n if (options.recoveryParam === undefined)\n this.recoveryParam = null;\n else\n this.recoveryParam = options.recoveryParam;\n}\nmodule.exports = Signature;\n\nfunction Position() {\n this.place = 0;\n}\n\nfunction getLength(buf, p) {\n var initial = buf[p.place++];\n if (!(initial & 0x80)) {\n return initial;\n }\n var octetLen = initial & 0xf;\n\n // Indefinite length or overflow\n if (octetLen === 0 || octetLen > 4) {\n return false;\n }\n\n var val = 0;\n for (var i = 0, off = p.place; i < octetLen; i++, off++) {\n val <<= 8;\n val |= buf[off];\n val >>>= 0;\n }\n\n // Leading zeroes\n if (val <= 0x7f) {\n return false;\n }\n\n p.place = off;\n return val;\n}\n\nfunction rmPadding(buf) {\n var i = 0;\n var len = buf.length - 1;\n while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\n i++;\n }\n if (i === 0) {\n return buf;\n }\n return buf.slice(i);\n}\n\nSignature.prototype._importDER = function _importDER(data, enc) {\n data = utils.toArray(data, enc);\n var p = new Position();\n if (data[p.place++] !== 0x30) {\n return false;\n }\n var len = getLength(data, p);\n if (len === false) {\n return false;\n }\n if ((len + p.place) !== data.length) {\n return false;\n }\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var rlen = getLength(data, p);\n if (rlen === false) {\n return false;\n }\n var r = data.slice(p.place, rlen + p.place);\n p.place += rlen;\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var slen = getLength(data, p);\n if (slen === false) {\n return false;\n }\n if (data.length !== slen + p.place) {\n return false;\n }\n var s = data.slice(p.place, slen + p.place);\n if (r[0] === 0) {\n if (r[1] & 0x80) {\n r = r.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n if (s[0] === 0) {\n if (s[1] & 0x80) {\n s = s.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n\n this.r = new BN(r);\n this.s = new BN(s);\n this.recoveryParam = null;\n\n return true;\n};\n\nfunction constructLength(arr, len) {\n if (len < 0x80) {\n arr.push(len);\n return;\n }\n var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\n arr.push(octets | 0x80);\n while (--octets) {\n arr.push((len >>> (octets << 3)) & 0xff);\n }\n arr.push(len);\n}\n\nSignature.prototype.toDER = function toDER(enc) {\n var r = this.r.toArray();\n var s = this.s.toArray();\n\n // Pad values\n if (r[0] & 0x80)\n r = [ 0 ].concat(r);\n // Pad values\n if (s[0] & 0x80)\n s = [ 0 ].concat(s);\n\n r = rmPadding(r);\n s = rmPadding(s);\n\n while (!s[0] && !(s[1] & 0x80)) {\n s = s.slice(1);\n }\n var arr = [ 0x02 ];\n constructLength(arr, r.length);\n arr = arr.concat(r);\n arr.push(0x02);\n constructLength(arr, s.length);\n var backHalf = arr.concat(s);\n var res = [ 0x30 ];\n constructLength(res, backHalf.length);\n res = res.concat(backHalf);\n return utils.encode(res, enc);\n};\n","'use strict';\n\nvar hash = require('hash.js');\nvar curves = require('../curves');\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar KeyPair = require('./key');\nvar Signature = require('./signature');\n\nfunction EDDSA(curve) {\n assert(curve === 'ed25519', 'only tested with ed25519 so far');\n\n if (!(this instanceof EDDSA))\n return new EDDSA(curve);\n\n curve = curves[curve].curve;\n this.curve = curve;\n this.g = curve.g;\n this.g.precompute(curve.n.bitLength() + 1);\n\n this.pointClass = curve.point().constructor;\n this.encodingLength = Math.ceil(curve.n.bitLength() / 8);\n this.hash = hash.sha512;\n}\n\nmodule.exports = EDDSA;\n\n/**\n* @param {Array|String} message - message bytes\n* @param {Array|String|KeyPair} secret - secret bytes or a keypair\n* @returns {Signature} - signature\n*/\nEDDSA.prototype.sign = function sign(message, secret) {\n message = parseBytes(message);\n var key = this.keyFromSecret(secret);\n var r = this.hashInt(key.messagePrefix(), message);\n var R = this.g.mul(r);\n var Rencoded = this.encodePoint(R);\n var s_ = this.hashInt(Rencoded, key.pubBytes(), message)\n .mul(key.priv());\n var S = r.add(s_).umod(this.curve.n);\n return this.makeSignature({ R: R, S: S, Rencoded: Rencoded });\n};\n\n/**\n* @param {Array} message - message bytes\n* @param {Array|String|Signature} sig - sig bytes\n* @param {Array|String|Point|KeyPair} pub - public key\n* @returns {Boolean} - true if public key matches sig of message\n*/\nEDDSA.prototype.verify = function verify(message, sig, pub) {\n message = parseBytes(message);\n sig = this.makeSignature(sig);\n var key = this.keyFromPublic(pub);\n var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);\n var SG = this.g.mul(sig.S());\n var RplusAh = sig.R().add(key.pub().mul(h));\n return RplusAh.eq(SG);\n};\n\nEDDSA.prototype.hashInt = function hashInt() {\n var hash = this.hash();\n for (var i = 0; i < arguments.length; i++)\n hash.update(arguments[i]);\n return utils.intFromLE(hash.digest()).umod(this.curve.n);\n};\n\nEDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {\n return KeyPair.fromPublic(this, pub);\n};\n\nEDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {\n return KeyPair.fromSecret(this, secret);\n};\n\nEDDSA.prototype.makeSignature = function makeSignature(sig) {\n if (sig instanceof Signature)\n return sig;\n return new Signature(this, sig);\n};\n\n/**\n* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2\n*\n* EDDSA defines methods for encoding and decoding points and integers. These are\n* helper convenience methods, that pass along to utility functions implied\n* parameters.\n*\n*/\nEDDSA.prototype.encodePoint = function encodePoint(point) {\n var enc = point.getY().toArray('le', this.encodingLength);\n enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;\n return enc;\n};\n\nEDDSA.prototype.decodePoint = function decodePoint(bytes) {\n bytes = utils.parseBytes(bytes);\n\n var lastIx = bytes.length - 1;\n var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);\n var xIsOdd = (bytes[lastIx] & 0x80) !== 0;\n\n var y = utils.intFromLE(normed);\n return this.curve.pointFromY(y, xIsOdd);\n};\n\nEDDSA.prototype.encodeInt = function encodeInt(num) {\n return num.toArray('le', this.encodingLength);\n};\n\nEDDSA.prototype.decodeInt = function decodeInt(bytes) {\n return utils.intFromLE(bytes);\n};\n\nEDDSA.prototype.isPoint = function isPoint(val) {\n return val instanceof this.pointClass;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar cachedProperty = utils.cachedProperty;\n\n/**\n* @param {EDDSA} eddsa - instance\n* @param {Object} params - public/private key parameters\n*\n* @param {Array<Byte>} [params.secret] - secret seed bytes\n* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)\n* @param {Array<Byte>} [params.pub] - public key point encoded as bytes\n*\n*/\nfunction KeyPair(eddsa, params) {\n this.eddsa = eddsa;\n this._secret = parseBytes(params.secret);\n if (eddsa.isPoint(params.pub))\n this._pub = params.pub;\n else\n this._pubBytes = parseBytes(params.pub);\n}\n\nKeyPair.fromPublic = function fromPublic(eddsa, pub) {\n if (pub instanceof KeyPair)\n return pub;\n return new KeyPair(eddsa, { pub: pub });\n};\n\nKeyPair.fromSecret = function fromSecret(eddsa, secret) {\n if (secret instanceof KeyPair)\n return secret;\n return new KeyPair(eddsa, { secret: secret });\n};\n\nKeyPair.prototype.secret = function secret() {\n return this._secret;\n};\n\ncachedProperty(KeyPair, 'pubBytes', function pubBytes() {\n return this.eddsa.encodePoint(this.pub());\n});\n\ncachedProperty(KeyPair, 'pub', function pub() {\n if (this._pubBytes)\n return this.eddsa.decodePoint(this._pubBytes);\n return this.eddsa.g.mul(this.priv());\n});\n\ncachedProperty(KeyPair, 'privBytes', function privBytes() {\n var eddsa = this.eddsa;\n var hash = this.hash();\n var lastIx = eddsa.encodingLength - 1;\n\n var a = hash.slice(0, eddsa.encodingLength);\n a[0] &= 248;\n a[lastIx] &= 127;\n a[lastIx] |= 64;\n\n return a;\n});\n\ncachedProperty(KeyPair, 'priv', function priv() {\n return this.eddsa.decodeInt(this.privBytes());\n});\n\ncachedProperty(KeyPair, 'hash', function hash() {\n return this.eddsa.hash().update(this.secret()).digest();\n});\n\ncachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {\n return this.hash().slice(this.eddsa.encodingLength);\n});\n\nKeyPair.prototype.sign = function sign(message) {\n assert(this._secret, 'KeyPair can only verify');\n return this.eddsa.sign(message, this);\n};\n\nKeyPair.prototype.verify = function verify(message, sig) {\n return this.eddsa.verify(message, sig, this);\n};\n\nKeyPair.prototype.getSecret = function getSecret(enc) {\n assert(this._secret, 'KeyPair is public only');\n return utils.encode(this.secret(), enc);\n};\n\nKeyPair.prototype.getPublic = function getPublic(enc) {\n return utils.encode(this.pubBytes(), enc);\n};\n\nmodule.exports = KeyPair;\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar cachedProperty = utils.cachedProperty;\nvar parseBytes = utils.parseBytes;\n\n/**\n* @param {EDDSA} eddsa - eddsa instance\n* @param {Array<Bytes>|Object} sig -\n* @param {Array<Bytes>|Point} [sig.R] - R point as Point or bytes\n* @param {Array<Bytes>|bn} [sig.S] - S scalar as bn or bytes\n* @param {Array<Bytes>} [sig.Rencoded] - R point encoded\n* @param {Array<Bytes>} [sig.Sencoded] - S scalar encoded\n*/\nfunction Signature(eddsa, sig) {\n this.eddsa = eddsa;\n\n if (typeof sig !== 'object')\n sig = parseBytes(sig);\n\n if (Array.isArray(sig)) {\n sig = {\n R: sig.slice(0, eddsa.encodingLength),\n S: sig.slice(eddsa.encodingLength),\n };\n }\n\n assert(sig.R && sig.S, 'Signature without R or S');\n\n if (eddsa.isPoint(sig.R))\n this._R = sig.R;\n if (sig.S instanceof BN)\n this._S = sig.S;\n\n this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;\n this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;\n}\n\ncachedProperty(Signature, 'S', function S() {\n return this.eddsa.decodeInt(this.Sencoded());\n});\n\ncachedProperty(Signature, 'R', function R() {\n return this.eddsa.decodePoint(this.Rencoded());\n});\n\ncachedProperty(Signature, 'Rencoded', function Rencoded() {\n return this.eddsa.encodePoint(this.R());\n});\n\ncachedProperty(Signature, 'Sencoded', function Sencoded() {\n return this.eddsa.encodeInt(this.S());\n});\n\nSignature.prototype.toBytes = function toBytes() {\n return this.Rencoded().concat(this.Sencoded());\n};\n\nSignature.prototype.toHex = function toHex() {\n return utils.encode(this.toBytes(), 'hex').toUpperCase();\n};\n\nmodule.exports = Signature;\n","module.exports = {\n doubles: {\n step: 4,\n points: [\n [\n 'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a',\n 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821',\n ],\n [\n '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508',\n '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf',\n ],\n [\n '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739',\n 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695',\n ],\n [\n '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640',\n '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9',\n ],\n [\n '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c',\n '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36',\n ],\n [\n '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda',\n '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f',\n ],\n [\n 'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa',\n '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999',\n ],\n [\n '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0',\n 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09',\n ],\n [\n 'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d',\n '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d',\n ],\n [\n 'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d',\n 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088',\n ],\n [\n 'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1',\n '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d',\n ],\n [\n '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0',\n '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8',\n ],\n [\n '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047',\n '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a',\n ],\n [\n '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862',\n '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453',\n ],\n [\n '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7',\n '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160',\n ],\n [\n '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd',\n '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0',\n ],\n [\n '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83',\n '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6',\n ],\n [\n '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a',\n '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589',\n ],\n [\n '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8',\n 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17',\n ],\n [\n 'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d',\n '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda',\n ],\n [\n 'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725',\n '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd',\n ],\n [\n '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754',\n '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2',\n ],\n [\n '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c',\n '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6',\n ],\n [\n 'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6',\n '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f',\n ],\n [\n '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39',\n 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01',\n ],\n [\n 'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891',\n '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3',\n ],\n [\n 'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b',\n 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f',\n ],\n [\n 'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03',\n '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7',\n ],\n [\n 'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d',\n 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78',\n ],\n [\n 'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070',\n '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1',\n ],\n [\n '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4',\n 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150',\n ],\n [\n '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da',\n '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82',\n ],\n [\n 'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11',\n '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc',\n ],\n [\n '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e',\n 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b',\n ],\n [\n 'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41',\n '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51',\n ],\n [\n 'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef',\n '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45',\n ],\n [\n 'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8',\n 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120',\n ],\n [\n '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d',\n '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84',\n ],\n [\n '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96',\n '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d',\n ],\n [\n '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd',\n 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d',\n ],\n [\n '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5',\n '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8',\n ],\n [\n 'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266',\n '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8',\n ],\n [\n '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71',\n '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac',\n ],\n [\n '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac',\n 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f',\n ],\n [\n '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751',\n '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962',\n ],\n [\n 'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e',\n '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907',\n ],\n [\n '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241',\n 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec',\n ],\n [\n 'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3',\n 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d',\n ],\n [\n 'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f',\n '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414',\n ],\n [\n '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19',\n 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd',\n ],\n [\n '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be',\n 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0',\n ],\n [\n 'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9',\n '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811',\n ],\n [\n 'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2',\n '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1',\n ],\n [\n 'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13',\n '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c',\n ],\n [\n '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c',\n 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73',\n ],\n [\n '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba',\n '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd',\n ],\n [\n 'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151',\n 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405',\n ],\n [\n '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073',\n 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589',\n ],\n [\n '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458',\n '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e',\n ],\n [\n '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b',\n '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27',\n ],\n [\n 'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366',\n 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1',\n ],\n [\n '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa',\n '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482',\n ],\n [\n '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0',\n '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945',\n ],\n [\n 'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787',\n '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573',\n ],\n [\n 'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e',\n 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82',\n ],\n ],\n },\n naf: {\n wnd: 7,\n points: [\n [\n 'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9',\n '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672',\n ],\n [\n '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4',\n 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6',\n ],\n [\n '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc',\n '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da',\n ],\n [\n 'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe',\n 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37',\n ],\n [\n '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb',\n 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b',\n ],\n [\n 'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8',\n 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81',\n ],\n [\n 'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e',\n '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58',\n ],\n [\n 'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34',\n '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77',\n ],\n [\n '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c',\n '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a',\n ],\n [\n '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5',\n '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c',\n ],\n [\n '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f',\n '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67',\n ],\n [\n '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714',\n '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402',\n ],\n [\n 'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729',\n 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55',\n ],\n [\n 'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db',\n '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482',\n ],\n [\n '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4',\n 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82',\n ],\n [\n '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5',\n 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396',\n ],\n [\n '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479',\n '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49',\n ],\n [\n '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d',\n '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf',\n ],\n [\n '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f',\n '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a',\n ],\n [\n '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb',\n 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7',\n ],\n [\n 'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9',\n 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933',\n ],\n [\n '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963',\n '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a',\n ],\n [\n '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74',\n '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6',\n ],\n [\n 'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530',\n 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37',\n ],\n [\n '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b',\n '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e',\n ],\n [\n 'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247',\n 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6',\n ],\n [\n 'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1',\n 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476',\n ],\n [\n '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120',\n '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40',\n ],\n [\n '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435',\n '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61',\n ],\n [\n '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18',\n '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683',\n ],\n [\n 'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8',\n '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5',\n ],\n [\n '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb',\n '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b',\n ],\n [\n 'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f',\n '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417',\n ],\n [\n '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143',\n 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868',\n ],\n [\n '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba',\n 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a',\n ],\n [\n 'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45',\n 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6',\n ],\n [\n '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a',\n '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996',\n ],\n [\n '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e',\n 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e',\n ],\n [\n 'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8',\n 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d',\n ],\n [\n '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c',\n '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2',\n ],\n [\n '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519',\n 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e',\n ],\n [\n '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab',\n '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437',\n ],\n [\n '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca',\n 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311',\n ],\n [\n 'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf',\n '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4',\n ],\n [\n '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610',\n '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575',\n ],\n [\n '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4',\n 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d',\n ],\n [\n '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c',\n 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d',\n ],\n [\n 'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940',\n 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629',\n ],\n [\n 'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980',\n 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06',\n ],\n [\n '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3',\n '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374',\n ],\n [\n '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf',\n '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee',\n ],\n [\n 'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63',\n '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1',\n ],\n [\n 'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448',\n 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b',\n ],\n [\n '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf',\n '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661',\n ],\n [\n '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5',\n '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6',\n ],\n [\n 'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6',\n '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e',\n ],\n [\n '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5',\n '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d',\n ],\n [\n 'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99',\n 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc',\n ],\n [\n '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51',\n 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4',\n ],\n [\n '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5',\n '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c',\n ],\n [\n 'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5',\n '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b',\n ],\n [\n 'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997',\n '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913',\n ],\n [\n '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881',\n '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154',\n ],\n [\n '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5',\n '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865',\n ],\n [\n '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66',\n 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc',\n ],\n [\n '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726',\n 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224',\n ],\n [\n '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede',\n '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e',\n ],\n [\n '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94',\n '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6',\n ],\n [\n '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31',\n '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511',\n ],\n [\n '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51',\n 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b',\n ],\n [\n 'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252',\n 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2',\n ],\n [\n '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5',\n 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c',\n ],\n [\n 'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b',\n '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3',\n ],\n [\n 'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4',\n '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d',\n ],\n [\n 'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f',\n '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700',\n ],\n [\n 'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889',\n '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4',\n ],\n [\n '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246',\n 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196',\n ],\n [\n '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984',\n '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4',\n ],\n [\n '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a',\n 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257',\n ],\n [\n 'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030',\n 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13',\n ],\n [\n 'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197',\n '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096',\n ],\n [\n 'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593',\n 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38',\n ],\n [\n 'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef',\n '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f',\n ],\n [\n '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38',\n '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448',\n ],\n [\n 'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a',\n '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a',\n ],\n [\n 'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111',\n '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4',\n ],\n [\n '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502',\n '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437',\n ],\n [\n '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea',\n 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7',\n ],\n [\n 'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26',\n '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d',\n ],\n [\n 'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986',\n '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a',\n ],\n [\n 'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e',\n '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54',\n ],\n [\n '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4',\n '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77',\n ],\n [\n 'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda',\n 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517',\n ],\n [\n '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859',\n 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10',\n ],\n [\n 'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f',\n 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125',\n ],\n [\n 'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c',\n '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e',\n ],\n [\n '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942',\n 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1',\n ],\n [\n 'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a',\n '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2',\n ],\n [\n 'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80',\n '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423',\n ],\n [\n 'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d',\n '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8',\n ],\n [\n '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1',\n 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758',\n ],\n [\n '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63',\n 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375',\n ],\n [\n 'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352',\n '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d',\n ],\n [\n '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193',\n 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec',\n ],\n [\n '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00',\n '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0',\n ],\n [\n '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58',\n 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c',\n ],\n [\n 'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7',\n 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4',\n ],\n [\n '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8',\n 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f',\n ],\n [\n '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e',\n '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649',\n ],\n [\n '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d',\n 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826',\n ],\n [\n '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b',\n '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5',\n ],\n [\n 'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f',\n 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87',\n ],\n [\n '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6',\n '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b',\n ],\n [\n 'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297',\n '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc',\n ],\n [\n '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a',\n '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c',\n ],\n [\n 'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c',\n 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f',\n ],\n [\n 'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52',\n '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a',\n ],\n [\n 'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb',\n 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46',\n ],\n [\n '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065',\n 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f',\n ],\n [\n '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917',\n '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03',\n ],\n [\n '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9',\n 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08',\n ],\n [\n '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3',\n '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8',\n ],\n [\n '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57',\n '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373',\n ],\n [\n '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66',\n 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3',\n ],\n [\n '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8',\n '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8',\n ],\n [\n '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721',\n '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1',\n ],\n [\n '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180',\n '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9',\n ],\n ],\n },\n};\n","'use strict';\n\nvar utils = exports;\nvar BN = require('bn.js');\nvar minAssert = require('minimalistic-assert');\nvar minUtils = require('minimalistic-crypto-utils');\n\nutils.assert = minAssert;\nutils.toArray = minUtils.toArray;\nutils.zero2 = minUtils.zero2;\nutils.toHex = minUtils.toHex;\nutils.encode = minUtils.encode;\n\n// Represent num in a w-NAF form\nfunction getNAF(num, w, bits) {\n var naf = new Array(Math.max(num.bitLength(), bits) + 1);\n naf.fill(0);\n\n var ws = 1 << (w + 1);\n var k = num.clone();\n\n for (var i = 0; i < naf.length; i++) {\n var z;\n var mod = k.andln(ws - 1);\n if (k.isOdd()) {\n if (mod > (ws >> 1) - 1)\n z = (ws >> 1) - mod;\n else\n z = mod;\n k.isubn(z);\n } else {\n z = 0;\n }\n\n naf[i] = z;\n k.iushrn(1);\n }\n\n return naf;\n}\nutils.getNAF = getNAF;\n\n// Represent k1, k2 in a Joint Sparse Form\nfunction getJSF(k1, k2) {\n var jsf = [\n [],\n [],\n ];\n\n k1 = k1.clone();\n k2 = k2.clone();\n var d1 = 0;\n var d2 = 0;\n var m8;\n while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {\n // First phase\n var m14 = (k1.andln(3) + d1) & 3;\n var m24 = (k2.andln(3) + d2) & 3;\n if (m14 === 3)\n m14 = -1;\n if (m24 === 3)\n m24 = -1;\n var u1;\n if ((m14 & 1) === 0) {\n u1 = 0;\n } else {\n m8 = (k1.andln(7) + d1) & 7;\n if ((m8 === 3 || m8 === 5) && m24 === 2)\n u1 = -m14;\n else\n u1 = m14;\n }\n jsf[0].push(u1);\n\n var u2;\n if ((m24 & 1) === 0) {\n u2 = 0;\n } else {\n m8 = (k2.andln(7) + d2) & 7;\n if ((m8 === 3 || m8 === 5) && m14 === 2)\n u2 = -m24;\n else\n u2 = m24;\n }\n jsf[1].push(u2);\n\n // Second phase\n if (2 * d1 === u1 + 1)\n d1 = 1 - d1;\n if (2 * d2 === u2 + 1)\n d2 = 1 - d2;\n k1.iushrn(1);\n k2.iushrn(1);\n }\n\n return jsf;\n}\nutils.getJSF = getJSF;\n\nfunction cachedProperty(obj, name, computer) {\n var key = '_' + name;\n obj.prototype[name] = function cachedProperty() {\n return this[key] !== undefined ? this[key] :\n this[key] = computer.call(this);\n };\n}\nutils.cachedProperty = cachedProperty;\n\nfunction parseBytes(bytes) {\n return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :\n bytes;\n}\nutils.parseBytes = parseBytes;\n\nfunction intFromLE(bytes) {\n return new BN(bytes, 'hex', 'le');\n}\nutils.intFromLE = intFromLE;\n\n","var hash = exports;\n\nhash.utils = require('./hash/utils');\nhash.common = require('./hash/common');\nhash.sha = require('./hash/sha');\nhash.ripemd = require('./hash/ripemd');\nhash.hmac = require('./hash/hmac');\n\n// Proxy hash functions to the main object\nhash.sha1 = hash.sha.sha1;\nhash.sha256 = hash.sha.sha256;\nhash.sha224 = hash.sha.sha224;\nhash.sha384 = hash.sha.sha384;\nhash.sha512 = hash.sha.sha512;\nhash.ripemd160 = hash.ripemd.ripemd160;\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction Hmac(hash, key, enc) {\n if (!(this instanceof Hmac))\n return new Hmac(hash, key, enc);\n this.Hash = hash;\n this.blockSize = hash.blockSize / 8;\n this.outSize = hash.outSize / 8;\n this.inner = null;\n this.outer = null;\n\n this._init(utils.toArray(key, enc));\n}\nmodule.exports = Hmac;\n\nHmac.prototype._init = function init(key) {\n // Shorten key, if needed\n if (key.length > this.blockSize)\n key = new this.Hash().update(key).digest();\n assert(key.length <= this.blockSize);\n\n // Add padding to key\n for (var i = key.length; i < this.blockSize; i++)\n key.push(0);\n\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x36;\n this.inner = new this.Hash().update(key);\n\n // 0x36 ^ 0x5c = 0x6a\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x6a;\n this.outer = new this.Hash().update(key);\n};\n\nHmac.prototype.update = function update(msg, enc) {\n this.inner.update(msg, enc);\n return this;\n};\n\nHmac.prototype.digest = function digest(enc) {\n this.outer.update(this.inner.digest());\n return this.outer.digest(enc);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar common = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_3 = utils.sum32_3;\nvar sum32_4 = utils.sum32_4;\nvar BlockHash = common.BlockHash;\n\nfunction RIPEMD160() {\n if (!(this instanceof RIPEMD160))\n return new RIPEMD160();\n\n BlockHash.call(this);\n\n this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ];\n this.endian = 'little';\n}\nutils.inherits(RIPEMD160, BlockHash);\nexports.ripemd160 = RIPEMD160;\n\nRIPEMD160.blockSize = 512;\nRIPEMD160.outSize = 160;\nRIPEMD160.hmacStrength = 192;\nRIPEMD160.padLength = 64;\n\nRIPEMD160.prototype._update = function update(msg, start) {\n var A = this.h[0];\n var B = this.h[1];\n var C = this.h[2];\n var D = this.h[3];\n var E = this.h[4];\n var Ah = A;\n var Bh = B;\n var Ch = C;\n var Dh = D;\n var Eh = E;\n for (var j = 0; j < 80; j++) {\n var T = sum32(\n rotl32(\n sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)),\n s[j]),\n E);\n A = E;\n E = D;\n D = rotl32(C, 10);\n C = B;\n B = T;\n T = sum32(\n rotl32(\n sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)),\n sh[j]),\n Eh);\n Ah = Eh;\n Eh = Dh;\n Dh = rotl32(Ch, 10);\n Ch = Bh;\n Bh = T;\n }\n T = sum32_3(this.h[1], C, Dh);\n this.h[1] = sum32_3(this.h[2], D, Eh);\n this.h[2] = sum32_3(this.h[3], E, Ah);\n this.h[3] = sum32_3(this.h[4], A, Bh);\n this.h[4] = sum32_3(this.h[0], B, Ch);\n this.h[0] = T;\n};\n\nRIPEMD160.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'little');\n else\n return utils.split32(this.h, 'little');\n};\n\nfunction f(j, x, y, z) {\n if (j <= 15)\n return x ^ y ^ z;\n else if (j <= 31)\n return (x & y) | ((~x) & z);\n else if (j <= 47)\n return (x | (~y)) ^ z;\n else if (j <= 63)\n return (x & z) | (y & (~z));\n else\n return x ^ (y | (~z));\n}\n\nfunction K(j) {\n if (j <= 15)\n return 0x00000000;\n else if (j <= 31)\n return 0x5a827999;\n else if (j <= 47)\n return 0x6ed9eba1;\n else if (j <= 63)\n return 0x8f1bbcdc;\n else\n return 0xa953fd4e;\n}\n\nfunction Kh(j) {\n if (j <= 15)\n return 0x50a28be6;\n else if (j <= 31)\n return 0x5c4dd124;\n else if (j <= 47)\n return 0x6d703ef3;\n else if (j <= 63)\n return 0x7a6d76e9;\n else\n return 0x00000000;\n}\n\nvar r = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13\n];\n\nvar rh = [\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11\n];\n\nvar s = [\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6\n];\n\nvar sh = [\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11\n];\n","'use strict';\n\nexports.sha1 = require('./sha/1');\nexports.sha224 = require('./sha/224');\nexports.sha256 = require('./sha/256');\nexports.sha384 = require('./sha/384');\nexports.sha512 = require('./sha/512');\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\n\nvar sha1_K = [\n 0x5A827999, 0x6ED9EBA1,\n 0x8F1BBCDC, 0xCA62C1D6\n];\n\nfunction SHA1() {\n if (!(this instanceof SHA1))\n return new SHA1();\n\n BlockHash.call(this);\n this.h = [\n 0x67452301, 0xefcdab89, 0x98badcfe,\n 0x10325476, 0xc3d2e1f0 ];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\n\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n\n for(; i < W.length; i++)\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar SHA256 = require('./256');\n\nfunction SHA224() {\n if (!(this instanceof SHA224))\n return new SHA224();\n\n SHA256.call(this);\n this.h = [\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\n 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ];\n}\nutils.inherits(SHA224, SHA256);\nmodule.exports = SHA224;\n\nSHA224.blockSize = 512;\nSHA224.outSize = 224;\nSHA224.hmacStrength = 192;\nSHA224.padLength = 64;\n\nSHA224.prototype._digest = function digest(enc) {\n // Just truncate output\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 7), 'big');\n else\n return utils.split32(this.h.slice(0, 7), 'big');\n};\n\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\nvar assert = require('minimalistic-assert');\n\nvar sum32 = utils.sum32;\nvar sum32_4 = utils.sum32_4;\nvar sum32_5 = utils.sum32_5;\nvar ch32 = shaCommon.ch32;\nvar maj32 = shaCommon.maj32;\nvar s0_256 = shaCommon.s0_256;\nvar s1_256 = shaCommon.s1_256;\nvar g0_256 = shaCommon.g0_256;\nvar g1_256 = shaCommon.g1_256;\n\nvar BlockHash = common.BlockHash;\n\nvar sha256_K = [\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,\n 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,\n 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,\n 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,\n 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,\n 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,\n 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n];\n\nfunction SHA256() {\n if (!(this instanceof SHA256))\n return new SHA256();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,\n 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n ];\n this.k = sha256_K;\n this.W = new Array(64);\n}\nutils.inherits(SHA256, BlockHash);\nmodule.exports = SHA256;\n\nSHA256.blockSize = 512;\nSHA256.outSize = 256;\nSHA256.hmacStrength = 192;\nSHA256.padLength = 64;\n\nSHA256.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i++)\n W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n var f = this.h[5];\n var g = this.h[6];\n var h = this.h[7];\n\n assert(this.k.length === W.length);\n for (i = 0; i < W.length; i++) {\n var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);\n var T2 = sum32(s0_256(a), maj32(a, b, c));\n h = g;\n g = f;\n f = e;\n e = sum32(d, T1);\n d = c;\n c = b;\n b = a;\n a = sum32(T1, T2);\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n this.h[5] = sum32(this.h[5], f);\n this.h[6] = sum32(this.h[6], g);\n this.h[7] = sum32(this.h[7], h);\n};\n\nSHA256.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nvar SHA512 = require('./512');\n\nfunction SHA384() {\n if (!(this instanceof SHA384))\n return new SHA384();\n\n SHA512.call(this);\n this.h = [\n 0xcbbb9d5d, 0xc1059ed8,\n 0x629a292a, 0x367cd507,\n 0x9159015a, 0x3070dd17,\n 0x152fecd8, 0xf70e5939,\n 0x67332667, 0xffc00b31,\n 0x8eb44a87, 0x68581511,\n 0xdb0c2e0d, 0x64f98fa7,\n 0x47b5481d, 0xbefa4fa4 ];\n}\nutils.inherits(SHA384, SHA512);\nmodule.exports = SHA384;\n\nSHA384.blockSize = 1024;\nSHA384.outSize = 384;\nSHA384.hmacStrength = 192;\nSHA384.padLength = 128;\n\nSHA384.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 12), 'big');\n else\n return utils.split32(this.h.slice(0, 12), 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar assert = require('minimalistic-assert');\n\nvar rotr64_hi = utils.rotr64_hi;\nvar rotr64_lo = utils.rotr64_lo;\nvar shr64_hi = utils.shr64_hi;\nvar shr64_lo = utils.shr64_lo;\nvar sum64 = utils.sum64;\nvar sum64_hi = utils.sum64_hi;\nvar sum64_lo = utils.sum64_lo;\nvar sum64_4_hi = utils.sum64_4_hi;\nvar sum64_4_lo = utils.sum64_4_lo;\nvar sum64_5_hi = utils.sum64_5_hi;\nvar sum64_5_lo = utils.sum64_5_lo;\n\nvar BlockHash = common.BlockHash;\n\nvar sha512_K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n];\n\nfunction SHA512() {\n if (!(this instanceof SHA512))\n return new SHA512();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xf3bcc908,\n 0xbb67ae85, 0x84caa73b,\n 0x3c6ef372, 0xfe94f82b,\n 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1,\n 0x9b05688c, 0x2b3e6c1f,\n 0x1f83d9ab, 0xfb41bd6b,\n 0x5be0cd19, 0x137e2179 ];\n this.k = sha512_K;\n this.W = new Array(160);\n}\nutils.inherits(SHA512, BlockHash);\nmodule.exports = SHA512;\n\nSHA512.blockSize = 1024;\nSHA512.outSize = 512;\nSHA512.hmacStrength = 192;\nSHA512.padLength = 128;\n\nSHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {\n var W = this.W;\n\n // 32 x 32bit words\n for (var i = 0; i < 32; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i += 2) {\n var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2\n var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);\n var c1_hi = W[i - 14]; // i - 7\n var c1_lo = W[i - 13];\n var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15\n var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);\n var c3_hi = W[i - 32]; // i - 16\n var c3_lo = W[i - 31];\n\n W[i] = sum64_4_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n W[i + 1] = sum64_4_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n }\n};\n\nSHA512.prototype._update = function _update(msg, start) {\n this._prepareBlock(msg, start);\n\n var W = this.W;\n\n var ah = this.h[0];\n var al = this.h[1];\n var bh = this.h[2];\n var bl = this.h[3];\n var ch = this.h[4];\n var cl = this.h[5];\n var dh = this.h[6];\n var dl = this.h[7];\n var eh = this.h[8];\n var el = this.h[9];\n var fh = this.h[10];\n var fl = this.h[11];\n var gh = this.h[12];\n var gl = this.h[13];\n var hh = this.h[14];\n var hl = this.h[15];\n\n assert(this.k.length === W.length);\n for (var i = 0; i < W.length; i += 2) {\n var c0_hi = hh;\n var c0_lo = hl;\n var c1_hi = s1_512_hi(eh, el);\n var c1_lo = s1_512_lo(eh, el);\n var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);\n var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);\n var c3_hi = this.k[i];\n var c3_lo = this.k[i + 1];\n var c4_hi = W[i];\n var c4_lo = W[i + 1];\n\n var T1_hi = sum64_5_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n var T1_lo = sum64_5_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n\n c0_hi = s0_512_hi(ah, al);\n c0_lo = s0_512_lo(ah, al);\n c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);\n c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);\n\n var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);\n var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);\n\n hh = gh;\n hl = gl;\n\n gh = fh;\n gl = fl;\n\n fh = eh;\n fl = el;\n\n eh = sum64_hi(dh, dl, T1_hi, T1_lo);\n el = sum64_lo(dl, dl, T1_hi, T1_lo);\n\n dh = ch;\n dl = cl;\n\n ch = bh;\n cl = bl;\n\n bh = ah;\n bl = al;\n\n ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);\n al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);\n }\n\n sum64(this.h, 0, ah, al);\n sum64(this.h, 2, bh, bl);\n sum64(this.h, 4, ch, cl);\n sum64(this.h, 6, dh, dl);\n sum64(this.h, 8, eh, el);\n sum64(this.h, 10, fh, fl);\n sum64(this.h, 12, gh, gl);\n sum64(this.h, 14, hh, hl);\n};\n\nSHA512.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n\nfunction ch64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ ((~xh) & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction ch64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ ((~xl) & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 28);\n var c1_hi = rotr64_hi(xl, xh, 2); // 34\n var c2_hi = rotr64_hi(xl, xh, 7); // 39\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 28);\n var c1_lo = rotr64_lo(xl, xh, 2); // 34\n var c2_lo = rotr64_lo(xl, xh, 7); // 39\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 14);\n var c1_hi = rotr64_hi(xh, xl, 18);\n var c2_hi = rotr64_hi(xl, xh, 9); // 41\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 14);\n var c1_lo = rotr64_lo(xh, xl, 18);\n var c2_lo = rotr64_lo(xl, xh, 9); // 41\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 1);\n var c1_hi = rotr64_hi(xh, xl, 8);\n var c2_hi = shr64_hi(xh, xl, 7);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 1);\n var c1_lo = rotr64_lo(xh, xl, 8);\n var c2_lo = shr64_lo(xh, xl, 7);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 19);\n var c1_hi = rotr64_hi(xl, xh, 29); // 61\n var c2_hi = shr64_hi(xh, xl, 6);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 19);\n var c1_lo = rotr64_lo(xl, xh, 29); // 61\n var c2_lo = shr64_lo(xh, xl, 6);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","'use strict';\n\nvar hash = require('hash.js');\nvar utils = require('minimalistic-crypto-utils');\nvar assert = require('minimalistic-assert');\n\nfunction HmacDRBG(options) {\n if (!(this instanceof HmacDRBG))\n return new HmacDRBG(options);\n this.hash = options.hash;\n this.predResist = !!options.predResist;\n\n this.outLen = this.hash.outSize;\n this.minEntropy = options.minEntropy || this.hash.hmacStrength;\n\n this._reseed = null;\n this.reseedInterval = null;\n this.K = null;\n this.V = null;\n\n var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');\n var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');\n var pers = utils.toArray(options.pers, options.persEnc || 'hex');\n assert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n this._init(entropy, nonce, pers);\n}\nmodule.exports = HmacDRBG;\n\nHmacDRBG.prototype._init = function init(entropy, nonce, pers) {\n var seed = entropy.concat(nonce).concat(pers);\n\n this.K = new Array(this.outLen / 8);\n this.V = new Array(this.outLen / 8);\n for (var i = 0; i < this.V.length; i++) {\n this.K[i] = 0x00;\n this.V[i] = 0x01;\n }\n\n this._update(seed);\n this._reseed = 1;\n this.reseedInterval = 0x1000000000000; // 2^48\n};\n\nHmacDRBG.prototype._hmac = function hmac() {\n return new hash.hmac(this.hash, this.K);\n};\n\nHmacDRBG.prototype._update = function update(seed) {\n var kmac = this._hmac()\n .update(this.V)\n .update([ 0x00 ]);\n if (seed)\n kmac = kmac.update(seed);\n this.K = kmac.digest();\n this.V = this._hmac().update(this.V).digest();\n if (!seed)\n return;\n\n this.K = this._hmac()\n .update(this.V)\n .update([ 0x01 ])\n .update(seed)\n .digest();\n this.V = this._hmac().update(this.V).digest();\n};\n\nHmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {\n // Optional entropy enc\n if (typeof entropyEnc !== 'string') {\n addEnc = add;\n add = entropyEnc;\n entropyEnc = null;\n }\n\n entropy = utils.toArray(entropy, entropyEnc);\n add = utils.toArray(add, addEnc);\n\n assert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n\n this._update(entropy.concat(add || []));\n this._reseed = 1;\n};\n\nHmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {\n if (this._reseed > this.reseedInterval)\n throw new Error('Reseed is required');\n\n // Optional encoding\n if (typeof enc !== 'string') {\n addEnc = add;\n add = enc;\n enc = null;\n }\n\n // Optional additional data\n if (add) {\n add = utils.toArray(add, addEnc || 'hex');\n this._update(add);\n }\n\n var temp = [];\n while (temp.length < len) {\n this.V = this._hmac().update(this.V).digest();\n temp = temp.concat(this.V);\n }\n\n var res = temp.slice(0, len);\n this._update(add);\n this._reseed++;\n return utils.encode(res, enc);\n};\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","// https://github.com/maxogden/websocket-stream/blob/48dc3ddf943e5ada668c31ccd94e9186f02fafbd/ws-fallback.js\n\nvar ws = null\n\nif (typeof WebSocket !== 'undefined') {\n ws = WebSocket\n} else if (typeof MozWebSocket !== 'undefined') {\n ws = MozWebSocket\n} else if (typeof global !== 'undefined') {\n ws = global.WebSocket || global.MozWebSocket\n} else if (typeof window !== 'undefined') {\n ws = window.WebSocket || window.MozWebSocket\n} else if (typeof self !== 'undefined') {\n ws = self.WebSocket || self.MozWebSocket\n}\n\nmodule.exports = ws\n","/**\n * [js-sha3]{@link https://github.com/emn178/js-sha3}\n *\n * @version 0.8.0\n * @author Chen, Yi-Cyuan [emn178@gmail.com]\n * @copyright Chen, Yi-Cyuan 2015-2018\n * @license MIT\n */\n/*jslint bitwise: true */\n(function () {\n 'use strict';\n\n var INPUT_ERROR = 'input is invalid type';\n var FINALIZE_ERROR = 'finalize already called';\n var WINDOW = typeof window === 'object';\n var root = WINDOW ? window : {};\n if (root.JS_SHA3_NO_WINDOW) {\n WINDOW = false;\n }\n var WEB_WORKER = !WINDOW && typeof self === 'object';\n var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;\n if (NODE_JS) {\n root = global;\n } else if (WEB_WORKER) {\n root = self;\n }\n var COMMON_JS = !root.JS_SHA3_NO_COMMON_JS && typeof module === 'object' && module.exports;\n var AMD = typeof define === 'function' && define.amd;\n var ARRAY_BUFFER = !root.JS_SHA3_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';\n var HEX_CHARS = '0123456789abcdef'.split('');\n var SHAKE_PADDING = [31, 7936, 2031616, 520093696];\n var CSHAKE_PADDING = [4, 1024, 262144, 67108864];\n var KECCAK_PADDING = [1, 256, 65536, 16777216];\n var PADDING = [6, 1536, 393216, 100663296];\n var SHIFT = [0, 8, 16, 24];\n var RC = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649,\n 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0,\n 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771,\n 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648,\n 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];\n var BITS = [224, 256, 384, 512];\n var SHAKE_BITS = [128, 256];\n var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array', 'digest'];\n var CSHAKE_BYTEPAD = {\n '128': 168,\n '256': 136\n };\n\n if (root.JS_SHA3_NO_NODE_JS || !Array.isArray) {\n Array.isArray = function (obj) {\n return Object.prototype.toString.call(obj) === '[object Array]';\n };\n }\n\n if (ARRAY_BUFFER && (root.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {\n ArrayBuffer.isView = function (obj) {\n return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;\n };\n }\n\n var createOutputMethod = function (bits, padding, outputType) {\n return function (message) {\n return new Keccak(bits, padding, bits).update(message)[outputType]();\n };\n };\n\n var createShakeOutputMethod = function (bits, padding, outputType) {\n return function (message, outputBits) {\n return new Keccak(bits, padding, outputBits).update(message)[outputType]();\n };\n };\n\n var createCshakeOutputMethod = function (bits, padding, outputType) {\n return function (message, outputBits, n, s) {\n return methods['cshake' + bits].update(message, outputBits, n, s)[outputType]();\n };\n };\n\n var createKmacOutputMethod = function (bits, padding, outputType) {\n return function (key, message, outputBits, s) {\n return methods['kmac' + bits].update(key, message, outputBits, s)[outputType]();\n };\n };\n\n var createOutputMethods = function (method, createMethod, bits, padding) {\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\n var type = OUTPUT_TYPES[i];\n method[type] = createMethod(bits, padding, type);\n }\n return method;\n };\n\n var createMethod = function (bits, padding) {\n var method = createOutputMethod(bits, padding, 'hex');\n method.create = function () {\n return new Keccak(bits, padding, bits);\n };\n method.update = function (message) {\n return method.create().update(message);\n };\n return createOutputMethods(method, createOutputMethod, bits, padding);\n };\n\n var createShakeMethod = function (bits, padding) {\n var method = createShakeOutputMethod(bits, padding, 'hex');\n method.create = function (outputBits) {\n return new Keccak(bits, padding, outputBits);\n };\n method.update = function (message, outputBits) {\n return method.create(outputBits).update(message);\n };\n return createOutputMethods(method, createShakeOutputMethod, bits, padding);\n };\n\n var createCshakeMethod = function (bits, padding) {\n var w = CSHAKE_BYTEPAD[bits];\n var method = createCshakeOutputMethod(bits, padding, 'hex');\n method.create = function (outputBits, n, s) {\n if (!n && !s) {\n return methods['shake' + bits].create(outputBits);\n } else {\n return new Keccak(bits, padding, outputBits).bytepad([n, s], w);\n }\n };\n method.update = function (message, outputBits, n, s) {\n return method.create(outputBits, n, s).update(message);\n };\n return createOutputMethods(method, createCshakeOutputMethod, bits, padding);\n };\n\n var createKmacMethod = function (bits, padding) {\n var w = CSHAKE_BYTEPAD[bits];\n var method = createKmacOutputMethod(bits, padding, 'hex');\n method.create = function (key, outputBits, s) {\n return new Kmac(bits, padding, outputBits).bytepad(['KMAC', s], w).bytepad([key], w);\n };\n method.update = function (key, message, outputBits, s) {\n return method.create(key, outputBits, s).update(message);\n };\n return createOutputMethods(method, createKmacOutputMethod, bits, padding);\n };\n\n var algorithms = [\n { name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod },\n { name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod },\n { name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod },\n { name: 'cshake', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createCshakeMethod },\n { name: 'kmac', padding: CSHAKE_PADDING, bits: SHAKE_BITS, createMethod: createKmacMethod }\n ];\n\n var methods = {}, methodNames = [];\n\n for (var i = 0; i < algorithms.length; ++i) {\n var algorithm = algorithms[i];\n var bits = algorithm.bits;\n for (var j = 0; j < bits.length; ++j) {\n var methodName = algorithm.name + '_' + bits[j];\n methodNames.push(methodName);\n methods[methodName] = algorithm.createMethod(bits[j], algorithm.padding);\n if (algorithm.name !== 'sha3') {\n var newMethodName = algorithm.name + bits[j];\n methodNames.push(newMethodName);\n methods[newMethodName] = methods[methodName];\n }\n }\n }\n\n function Keccak(bits, padding, outputBits) {\n this.blocks = [];\n this.s = [];\n this.padding = padding;\n this.outputBits = outputBits;\n this.reset = true;\n this.finalized = false;\n this.block = 0;\n this.start = 0;\n this.blockCount = (1600 - (bits << 1)) >> 5;\n this.byteCount = this.blockCount << 2;\n this.outputBlocks = outputBits >> 5;\n this.extraBytes = (outputBits & 31) >> 3;\n\n for (var i = 0; i < 50; ++i) {\n this.s[i] = 0;\n }\n }\n\n Keccak.prototype.update = function (message) {\n if (this.finalized) {\n throw new Error(FINALIZE_ERROR);\n }\n var notString, type = typeof message;\n if (type !== 'string') {\n if (type === 'object') {\n if (message === null) {\n throw new Error(INPUT_ERROR);\n } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {\n message = new Uint8Array(message);\n } else if (!Array.isArray(message)) {\n if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {\n throw new Error(INPUT_ERROR);\n }\n }\n } else {\n throw new Error(INPUT_ERROR);\n }\n notString = true;\n }\n var blocks = this.blocks, byteCount = this.byteCount, length = message.length,\n blockCount = this.blockCount, index = 0, s = this.s, i, code;\n\n while (index < length) {\n if (this.reset) {\n this.reset = false;\n blocks[0] = this.block;\n for (i = 1; i < blockCount + 1; ++i) {\n blocks[i] = 0;\n }\n }\n if (notString) {\n for (i = this.start; index < length && i < byteCount; ++index) {\n blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];\n }\n } else {\n for (i = this.start; index < length && i < byteCount; ++index) {\n code = message.charCodeAt(index);\n if (code < 0x80) {\n blocks[i >> 2] |= code << SHIFT[i++ & 3];\n } else if (code < 0x800) {\n blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\n } else if (code < 0xd800 || code >= 0xe000) {\n blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\n } else {\n code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));\n blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\n }\n }\n }\n this.lastByteIndex = i;\n if (i >= byteCount) {\n this.start = i - byteCount;\n this.block = blocks[blockCount];\n for (i = 0; i < blockCount; ++i) {\n s[i] ^= blocks[i];\n }\n f(s);\n this.reset = true;\n } else {\n this.start = i;\n }\n }\n return this;\n };\n\n Keccak.prototype.encode = function (x, right) {\n var o = x & 255, n = 1;\n var bytes = [o];\n x = x >> 8;\n o = x & 255;\n while (o > 0) {\n bytes.unshift(o);\n x = x >> 8;\n o = x & 255;\n ++n;\n }\n if (right) {\n bytes.push(n);\n } else {\n bytes.unshift(n);\n }\n this.update(bytes);\n return bytes.length;\n };\n\n Keccak.prototype.encodeString = function (str) {\n var notString, type = typeof str;\n if (type !== 'string') {\n if (type === 'object') {\n if (str === null) {\n throw new Error(INPUT_ERROR);\n } else if (ARRAY_BUFFER && str.constructor === ArrayBuffer) {\n str = new Uint8Array(str);\n } else if (!Array.isArray(str)) {\n if (!ARRAY_BUFFER || !ArrayBuffer.isView(str)) {\n throw new Error(INPUT_ERROR);\n }\n }\n } else {\n throw new Error(INPUT_ERROR);\n }\n notString = true;\n }\n var bytes = 0, length = str.length;\n if (notString) {\n bytes = length;\n } else {\n for (var i = 0; i < str.length; ++i) {\n var code = str.charCodeAt(i);\n if (code < 0x80) {\n bytes += 1;\n } else if (code < 0x800) {\n bytes += 2;\n } else if (code < 0xd800 || code >= 0xe000) {\n bytes += 3;\n } else {\n code = 0x10000 + (((code & 0x3ff) << 10) | (str.charCodeAt(++i) & 0x3ff));\n bytes += 4;\n }\n }\n }\n bytes += this.encode(bytes * 8);\n this.update(str);\n return bytes;\n };\n\n Keccak.prototype.bytepad = function (strs, w) {\n var bytes = this.encode(w);\n for (var i = 0; i < strs.length; ++i) {\n bytes += this.encodeString(strs[i]);\n }\n var paddingBytes = w - bytes % w;\n var zeros = [];\n zeros.length = paddingBytes;\n this.update(zeros);\n return this;\n };\n\n Keccak.prototype.finalize = function () {\n if (this.finalized) {\n return;\n }\n this.finalized = true;\n var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s;\n blocks[i >> 2] |= this.padding[i & 3];\n if (this.lastByteIndex === this.byteCount) {\n blocks[0] = blocks[blockCount];\n for (i = 1; i < blockCount + 1; ++i) {\n blocks[i] = 0;\n }\n }\n blocks[blockCount - 1] |= 0x80000000;\n for (i = 0; i < blockCount; ++i) {\n s[i] ^= blocks[i];\n }\n f(s);\n };\n\n Keccak.prototype.toString = Keccak.prototype.hex = function () {\n this.finalize();\n\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\n extraBytes = this.extraBytes, i = 0, j = 0;\n var hex = '', block;\n while (j < outputBlocks) {\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\n block = s[i];\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] +\n HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] +\n HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] +\n HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F];\n }\n if (j % blockCount === 0) {\n f(s);\n i = 0;\n }\n }\n if (extraBytes) {\n block = s[i];\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F];\n if (extraBytes > 1) {\n hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F];\n }\n if (extraBytes > 2) {\n hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F];\n }\n }\n return hex;\n };\n\n Keccak.prototype.arrayBuffer = function () {\n this.finalize();\n\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\n extraBytes = this.extraBytes, i = 0, j = 0;\n var bytes = this.outputBits >> 3;\n var buffer;\n if (extraBytes) {\n buffer = new ArrayBuffer((outputBlocks + 1) << 2);\n } else {\n buffer = new ArrayBuffer(bytes);\n }\n var array = new Uint32Array(buffer);\n while (j < outputBlocks) {\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\n array[j] = s[i];\n }\n if (j % blockCount === 0) {\n f(s);\n }\n }\n if (extraBytes) {\n array[i] = s[i];\n buffer = buffer.slice(0, bytes);\n }\n return buffer;\n };\n\n Keccak.prototype.buffer = Keccak.prototype.arrayBuffer;\n\n Keccak.prototype.digest = Keccak.prototype.array = function () {\n this.finalize();\n\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\n extraBytes = this.extraBytes, i = 0, j = 0;\n var array = [], offset, block;\n while (j < outputBlocks) {\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\n offset = j << 2;\n block = s[i];\n array[offset] = block & 0xFF;\n array[offset + 1] = (block >> 8) & 0xFF;\n array[offset + 2] = (block >> 16) & 0xFF;\n array[offset + 3] = (block >> 24) & 0xFF;\n }\n if (j % blockCount === 0) {\n f(s);\n }\n }\n if (extraBytes) {\n offset = j << 2;\n block = s[i];\n array[offset] = block & 0xFF;\n if (extraBytes > 1) {\n array[offset + 1] = (block >> 8) & 0xFF;\n }\n if (extraBytes > 2) {\n array[offset + 2] = (block >> 16) & 0xFF;\n }\n }\n return array;\n };\n\n function Kmac(bits, padding, outputBits) {\n Keccak.call(this, bits, padding, outputBits);\n }\n\n Kmac.prototype = new Keccak();\n\n Kmac.prototype.finalize = function () {\n this.encode(this.outputBits, true);\n return Keccak.prototype.finalize.call(this);\n };\n\n var f = function (s) {\n var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9,\n b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17,\n b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33,\n b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49;\n for (n = 0; n < 48; n += 2) {\n c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40];\n c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41];\n c2 = s[2] ^ s[12] ^ s[22] ^ s[32] ^ s[42];\n c3 = s[3] ^ s[13] ^ s[23] ^ s[33] ^ s[43];\n c4 = s[4] ^ s[14] ^ s[24] ^ s[34] ^ s[44];\n c5 = s[5] ^ s[15] ^ s[25] ^ s[35] ^ s[45];\n c6 = s[6] ^ s[16] ^ s[26] ^ s[36] ^ s[46];\n c7 = s[7] ^ s[17] ^ s[27] ^ s[37] ^ s[47];\n c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48];\n c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49];\n\n h = c8 ^ ((c2 << 1) | (c3 >>> 31));\n l = c9 ^ ((c3 << 1) | (c2 >>> 31));\n s[0] ^= h;\n s[1] ^= l;\n s[10] ^= h;\n s[11] ^= l;\n s[20] ^= h;\n s[21] ^= l;\n s[30] ^= h;\n s[31] ^= l;\n s[40] ^= h;\n s[41] ^= l;\n h = c0 ^ ((c4 << 1) | (c5 >>> 31));\n l = c1 ^ ((c5 << 1) | (c4 >>> 31));\n s[2] ^= h;\n s[3] ^= l;\n s[12] ^= h;\n s[13] ^= l;\n s[22] ^= h;\n s[23] ^= l;\n s[32] ^= h;\n s[33] ^= l;\n s[42] ^= h;\n s[43] ^= l;\n h = c2 ^ ((c6 << 1) | (c7 >>> 31));\n l = c3 ^ ((c7 << 1) | (c6 >>> 31));\n s[4] ^= h;\n s[5] ^= l;\n s[14] ^= h;\n s[15] ^= l;\n s[24] ^= h;\n s[25] ^= l;\n s[34] ^= h;\n s[35] ^= l;\n s[44] ^= h;\n s[45] ^= l;\n h = c4 ^ ((c8 << 1) | (c9 >>> 31));\n l = c5 ^ ((c9 << 1) | (c8 >>> 31));\n s[6] ^= h;\n s[7] ^= l;\n s[16] ^= h;\n s[17] ^= l;\n s[26] ^= h;\n s[27] ^= l;\n s[36] ^= h;\n s[37] ^= l;\n s[46] ^= h;\n s[47] ^= l;\n h = c6 ^ ((c0 << 1) | (c1 >>> 31));\n l = c7 ^ ((c1 << 1) | (c0 >>> 31));\n s[8] ^= h;\n s[9] ^= l;\n s[18] ^= h;\n s[19] ^= l;\n s[28] ^= h;\n s[29] ^= l;\n s[38] ^= h;\n s[39] ^= l;\n s[48] ^= h;\n s[49] ^= l;\n\n b0 = s[0];\n b1 = s[1];\n b32 = (s[11] << 4) | (s[10] >>> 28);\n b33 = (s[10] << 4) | (s[11] >>> 28);\n b14 = (s[20] << 3) | (s[21] >>> 29);\n b15 = (s[21] << 3) | (s[20] >>> 29);\n b46 = (s[31] << 9) | (s[30] >>> 23);\n b47 = (s[30] << 9) | (s[31] >>> 23);\n b28 = (s[40] << 18) | (s[41] >>> 14);\n b29 = (s[41] << 18) | (s[40] >>> 14);\n b20 = (s[2] << 1) | (s[3] >>> 31);\n b21 = (s[3] << 1) | (s[2] >>> 31);\n b2 = (s[13] << 12) | (s[12] >>> 20);\n b3 = (s[12] << 12) | (s[13] >>> 20);\n b34 = (s[22] << 10) | (s[23] >>> 22);\n b35 = (s[23] << 10) | (s[22] >>> 22);\n b16 = (s[33] << 13) | (s[32] >>> 19);\n b17 = (s[32] << 13) | (s[33] >>> 19);\n b48 = (s[42] << 2) | (s[43] >>> 30);\n b49 = (s[43] << 2) | (s[42] >>> 30);\n b40 = (s[5] << 30) | (s[4] >>> 2);\n b41 = (s[4] << 30) | (s[5] >>> 2);\n b22 = (s[14] << 6) | (s[15] >>> 26);\n b23 = (s[15] << 6) | (s[14] >>> 26);\n b4 = (s[25] << 11) | (s[24] >>> 21);\n b5 = (s[24] << 11) | (s[25] >>> 21);\n b36 = (s[34] << 15) | (s[35] >>> 17);\n b37 = (s[35] << 15) | (s[34] >>> 17);\n b18 = (s[45] << 29) | (s[44] >>> 3);\n b19 = (s[44] << 29) | (s[45] >>> 3);\n b10 = (s[6] << 28) | (s[7] >>> 4);\n b11 = (s[7] << 28) | (s[6] >>> 4);\n b42 = (s[17] << 23) | (s[16] >>> 9);\n b43 = (s[16] << 23) | (s[17] >>> 9);\n b24 = (s[26] << 25) | (s[27] >>> 7);\n b25 = (s[27] << 25) | (s[26] >>> 7);\n b6 = (s[36] << 21) | (s[37] >>> 11);\n b7 = (s[37] << 21) | (s[36] >>> 11);\n b38 = (s[47] << 24) | (s[46] >>> 8);\n b39 = (s[46] << 24) | (s[47] >>> 8);\n b30 = (s[8] << 27) | (s[9] >>> 5);\n b31 = (s[9] << 27) | (s[8] >>> 5);\n b12 = (s[18] << 20) | (s[19] >>> 12);\n b13 = (s[19] << 20) | (s[18] >>> 12);\n b44 = (s[29] << 7) | (s[28] >>> 25);\n b45 = (s[28] << 7) | (s[29] >>> 25);\n b26 = (s[38] << 8) | (s[39] >>> 24);\n b27 = (s[39] << 8) | (s[38] >>> 24);\n b8 = (s[48] << 14) | (s[49] >>> 18);\n b9 = (s[49] << 14) | (s[48] >>> 18);\n\n s[0] = b0 ^ (~b2 & b4);\n s[1] = b1 ^ (~b3 & b5);\n s[10] = b10 ^ (~b12 & b14);\n s[11] = b11 ^ (~b13 & b15);\n s[20] = b20 ^ (~b22 & b24);\n s[21] = b21 ^ (~b23 & b25);\n s[30] = b30 ^ (~b32 & b34);\n s[31] = b31 ^ (~b33 & b35);\n s[40] = b40 ^ (~b42 & b44);\n s[41] = b41 ^ (~b43 & b45);\n s[2] = b2 ^ (~b4 & b6);\n s[3] = b3 ^ (~b5 & b7);\n s[12] = b12 ^ (~b14 & b16);\n s[13] = b13 ^ (~b15 & b17);\n s[22] = b22 ^ (~b24 & b26);\n s[23] = b23 ^ (~b25 & b27);\n s[32] = b32 ^ (~b34 & b36);\n s[33] = b33 ^ (~b35 & b37);\n s[42] = b42 ^ (~b44 & b46);\n s[43] = b43 ^ (~b45 & b47);\n s[4] = b4 ^ (~b6 & b8);\n s[5] = b5 ^ (~b7 & b9);\n s[14] = b14 ^ (~b16 & b18);\n s[15] = b15 ^ (~b17 & b19);\n s[24] = b24 ^ (~b26 & b28);\n s[25] = b25 ^ (~b27 & b29);\n s[34] = b34 ^ (~b36 & b38);\n s[35] = b35 ^ (~b37 & b39);\n s[44] = b44 ^ (~b46 & b48);\n s[45] = b45 ^ (~b47 & b49);\n s[6] = b6 ^ (~b8 & b0);\n s[7] = b7 ^ (~b9 & b1);\n s[16] = b16 ^ (~b18 & b10);\n s[17] = b17 ^ (~b19 & b11);\n s[26] = b26 ^ (~b28 & b20);\n s[27] = b27 ^ (~b29 & b21);\n s[36] = b36 ^ (~b38 & b30);\n s[37] = b37 ^ (~b39 & b31);\n s[46] = b46 ^ (~b48 & b40);\n s[47] = b47 ^ (~b49 & b41);\n s[8] = b8 ^ (~b0 & b2);\n s[9] = b9 ^ (~b1 & b3);\n s[18] = b18 ^ (~b10 & b12);\n s[19] = b19 ^ (~b11 & b13);\n s[28] = b28 ^ (~b20 & b22);\n s[29] = b29 ^ (~b21 & b23);\n s[38] = b38 ^ (~b30 & b32);\n s[39] = b39 ^ (~b31 & b33);\n s[48] = b48 ^ (~b40 & b42);\n s[49] = b49 ^ (~b41 & b43);\n\n s[0] ^= RC[n];\n s[1] ^= RC[n + 1];\n }\n };\n\n if (COMMON_JS) {\n module.exports = methods;\n } else {\n for (i = 0; i < methodNames.length; ++i) {\n root[methodNames[i]] = methods[methodNames[i]];\n }\n if (AMD) {\n define(function () {\n return methods;\n });\n }\n }\n})();\n","/*! MIT License © Sindre Sorhus */\n\nconst globals = {};\n\nconst getGlobal = property => {\n\t/* istanbul ignore next */\n\tif (typeof self !== 'undefined' && self && property in self) {\n\t\treturn self;\n\t}\n\n\t/* istanbul ignore next */\n\tif (typeof window !== 'undefined' && window && property in window) {\n\t\treturn window;\n\t}\n\n\tif (typeof global !== 'undefined' && global && property in global) {\n\t\treturn global;\n\t}\n\n\t/* istanbul ignore next */\n\tif (typeof globalThis !== 'undefined' && globalThis) {\n\t\treturn globalThis;\n\t}\n};\n\nconst globalProperties = [\n\t'Headers',\n\t'Request',\n\t'Response',\n\t'ReadableStream',\n\t'fetch',\n\t'AbortController',\n\t'FormData'\n];\n\nfor (const property of globalProperties) {\n\tObject.defineProperty(globals, property, {\n\t\tget() {\n\t\t\tconst globalObject = getGlobal(property);\n\t\t\tconst value = globalObject && globalObject[property];\n\t\t\treturn typeof value === 'function' ? value.bind(globalObject) : value;\n\t\t}\n\t});\n}\n\nconst isObject = value => value !== null && typeof value === 'object';\nconst supportsAbortController = typeof globals.AbortController === 'function';\nconst supportsStreams = typeof globals.ReadableStream === 'function';\nconst supportsFormData = typeof globals.FormData === 'function';\n\nconst mergeHeaders = (source1, source2) => {\n\tconst result = new globals.Headers(source1 || {});\n\tconst isHeadersInstance = source2 instanceof globals.Headers;\n\tconst source = new globals.Headers(source2 || {});\n\n\tfor (const [key, value] of source) {\n\t\tif ((isHeadersInstance && value === 'undefined') || value === undefined) {\n\t\t\tresult.delete(key);\n\t\t} else {\n\t\t\tresult.set(key, value);\n\t\t}\n\t}\n\n\treturn result;\n};\n\nconst deepMerge = (...sources) => {\n\tlet returnValue = {};\n\tlet headers = {};\n\n\tfor (const source of sources) {\n\t\tif (Array.isArray(source)) {\n\t\t\tif (!(Array.isArray(returnValue))) {\n\t\t\t\treturnValue = [];\n\t\t\t}\n\n\t\t\treturnValue = [...returnValue, ...source];\n\t\t} else if (isObject(source)) {\n\t\t\tfor (let [key, value] of Object.entries(source)) {\n\t\t\t\tif (isObject(value) && (key in returnValue)) {\n\t\t\t\t\tvalue = deepMerge(returnValue[key], value);\n\t\t\t\t}\n\n\t\t\t\treturnValue = {...returnValue, [key]: value};\n\t\t\t}\n\n\t\t\tif (isObject(source.headers)) {\n\t\t\t\theaders = mergeHeaders(headers, source.headers);\n\t\t\t}\n\t\t}\n\n\t\treturnValue.headers = headers;\n\t}\n\n\treturn returnValue;\n};\n\nconst requestMethods = [\n\t'get',\n\t'post',\n\t'put',\n\t'patch',\n\t'head',\n\t'delete'\n];\n\nconst responseTypes = {\n\tjson: 'application/json',\n\ttext: 'text/*',\n\tformData: 'multipart/form-data',\n\tarrayBuffer: '*/*',\n\tblob: '*/*'\n};\n\nconst retryMethods = [\n\t'get',\n\t'put',\n\t'head',\n\t'delete',\n\t'options',\n\t'trace'\n];\n\nconst retryStatusCodes = [\n\t408,\n\t413,\n\t429,\n\t500,\n\t502,\n\t503,\n\t504\n];\n\nconst retryAfterStatusCodes = [\n\t413,\n\t429,\n\t503\n];\n\nconst stop = Symbol('stop');\n\nclass HTTPError extends Error {\n\tconstructor(response) {\n\t\t// Set the message to the status text, such as Unauthorized,\n\t\t// with some fallbacks. This message should never be undefined.\n\t\tsuper(\n\t\t\tresponse.statusText ||\n\t\t\tString(\n\t\t\t\t(response.status === 0 || response.status) ?\n\t\t\t\t\tresponse.status : 'Unknown response error'\n\t\t\t)\n\t\t);\n\t\tthis.name = 'HTTPError';\n\t\tthis.response = response;\n\t}\n}\n\nclass TimeoutError extends Error {\n\tconstructor(request) {\n\t\tsuper('Request timed out');\n\t\tthis.name = 'TimeoutError';\n\t\tthis.request = request;\n\t}\n}\n\nconst delay = ms => new Promise(resolve => setTimeout(resolve, ms));\n\n// `Promise.race()` workaround (#91)\nconst timeout = (request, abortController, options) =>\n\tnew Promise((resolve, reject) => {\n\t\tconst timeoutID = setTimeout(() => {\n\t\t\tif (abortController) {\n\t\t\t\tabortController.abort();\n\t\t\t}\n\n\t\t\treject(new TimeoutError(request));\n\t\t}, options.timeout);\n\n\t\t/* eslint-disable promise/prefer-await-to-then */\n\t\toptions.fetch(request)\n\t\t\t.then(resolve)\n\t\t\t.catch(reject)\n\t\t\t.then(() => {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t});\n\t\t/* eslint-enable promise/prefer-await-to-then */\n\t});\n\nconst normalizeRequestMethod = input => requestMethods.includes(input) ? input.toUpperCase() : input;\n\nconst defaultRetryOptions = {\n\tlimit: 2,\n\tmethods: retryMethods,\n\tstatusCodes: retryStatusCodes,\n\tafterStatusCodes: retryAfterStatusCodes\n};\n\nconst normalizeRetryOptions = (retry = {}) => {\n\tif (typeof retry === 'number') {\n\t\treturn {\n\t\t\t...defaultRetryOptions,\n\t\t\tlimit: retry\n\t\t};\n\t}\n\n\tif (retry.methods && !Array.isArray(retry.methods)) {\n\t\tthrow new Error('retry.methods must be an array');\n\t}\n\n\tif (retry.statusCodes && !Array.isArray(retry.statusCodes)) {\n\t\tthrow new Error('retry.statusCodes must be an array');\n\t}\n\n\treturn {\n\t\t...defaultRetryOptions,\n\t\t...retry,\n\t\tafterStatusCodes: retryAfterStatusCodes\n\t};\n};\n\n// The maximum value of a 32bit int (see issue #117)\nconst maxSafeTimeout = 2147483647;\n\nclass Ky {\n\tconstructor(input, options = {}) {\n\t\tthis._retryCount = 0;\n\t\tthis._input = input;\n\t\tthis._options = {\n\t\t\t// TODO: credentials can be removed when the spec change is implemented in all browsers. Context: https://www.chromestatus.com/feature/4539473312350208\n\t\t\tcredentials: this._input.credentials || 'same-origin',\n\t\t\t...options,\n\t\t\theaders: mergeHeaders(this._input.headers, options.headers),\n\t\t\thooks: deepMerge({\n\t\t\t\tbeforeRequest: [],\n\t\t\t\tbeforeRetry: [],\n\t\t\t\tafterResponse: []\n\t\t\t}, options.hooks),\n\t\t\tmethod: normalizeRequestMethod(options.method || this._input.method),\n\t\t\tprefixUrl: String(options.prefixUrl || ''),\n\t\t\tretry: normalizeRetryOptions(options.retry),\n\t\t\tthrowHttpErrors: options.throwHttpErrors !== false,\n\t\t\ttimeout: typeof options.timeout === 'undefined' ? 10000 : options.timeout,\n\t\t\tfetch: options.fetch || globals.fetch\n\t\t};\n\n\t\tif (typeof this._input !== 'string' && !(this._input instanceof URL || this._input instanceof globals.Request)) {\n\t\t\tthrow new TypeError('`input` must be a string, URL, or Request');\n\t\t}\n\n\t\tif (this._options.prefixUrl && typeof this._input === 'string') {\n\t\t\tif (this._input.startsWith('/')) {\n\t\t\t\tthrow new Error('`input` must not begin with a slash when using `prefixUrl`');\n\t\t\t}\n\n\t\t\tif (!this._options.prefixUrl.endsWith('/')) {\n\t\t\t\tthis._options.prefixUrl += '/';\n\t\t\t}\n\n\t\t\tthis._input = this._options.prefixUrl + this._input;\n\t\t}\n\n\t\tif (supportsAbortController) {\n\t\t\tthis.abortController = new globals.AbortController();\n\t\t\tif (this._options.signal) {\n\t\t\t\tthis._options.signal.addEventListener('abort', () => {\n\t\t\t\t\tthis.abortController.abort();\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis._options.signal = this.abortController.signal;\n\t\t}\n\n\t\tthis.request = new globals.Request(this._input, this._options);\n\n\t\tif (this._options.searchParams) {\n\t\t\tconst searchParams = '?' + new URLSearchParams(this._options.searchParams).toString();\n\t\t\tconst url = this.request.url.replace(/(?:\\?.*?)?(?=#|$)/, searchParams);\n\n\t\t\t// To provide correct form boundary, Content-Type header should be deleted each time when new Request instantiated from another one\n\t\t\tif (((supportsFormData && this._options.body instanceof globals.FormData) || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers['content-type'])) {\n\t\t\t\tthis.request.headers.delete('content-type');\n\t\t\t}\n\n\t\t\tthis.request = new globals.Request(new globals.Request(url, this.request), this._options);\n\t\t}\n\n\t\tif (this._options.json !== undefined) {\n\t\t\tthis._options.body = JSON.stringify(this._options.json);\n\t\t\tthis.request.headers.set('content-type', 'application/json');\n\t\t\tthis.request = new globals.Request(this.request, {body: this._options.body});\n\t\t}\n\n\t\tconst fn = async () => {\n\t\t\tif (this._options.timeout > maxSafeTimeout) {\n\t\t\t\tthrow new RangeError(`The \\`timeout\\` option cannot be greater than ${maxSafeTimeout}`);\n\t\t\t}\n\n\t\t\tawait delay(1);\n\t\t\tlet response = await this._fetch();\n\n\t\t\tfor (const hook of this._options.hooks.afterResponse) {\n\t\t\t\t// eslint-disable-next-line no-await-in-loop\n\t\t\t\tconst modifiedResponse = await hook(\n\t\t\t\t\tthis.request,\n\t\t\t\t\tthis._options,\n\t\t\t\t\tthis._decorateResponse(response.clone())\n\t\t\t\t);\n\n\t\t\t\tif (modifiedResponse instanceof globals.Response) {\n\t\t\t\t\tresponse = modifiedResponse;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._decorateResponse(response);\n\n\t\t\tif (!response.ok && this._options.throwHttpErrors) {\n\t\t\t\tthrow new HTTPError(response);\n\t\t\t}\n\n\t\t\t// If `onDownloadProgress` is passed, it uses the stream API internally\n\t\t\t/* istanbul ignore next */\n\t\t\tif (this._options.onDownloadProgress) {\n\t\t\t\tif (typeof this._options.onDownloadProgress !== 'function') {\n\t\t\t\t\tthrow new TypeError('The `onDownloadProgress` option must be a function');\n\t\t\t\t}\n\n\t\t\t\tif (!supportsStreams) {\n\t\t\t\t\tthrow new Error('Streams are not supported in your environment. `ReadableStream` is missing.');\n\t\t\t\t}\n\n\t\t\t\treturn this._stream(response.clone(), this._options.onDownloadProgress);\n\t\t\t}\n\n\t\t\treturn response;\n\t\t};\n\n\t\tconst isRetriableMethod = this._options.retry.methods.includes(this.request.method.toLowerCase());\n\t\tconst result = isRetriableMethod ? this._retry(fn) : fn();\n\n\t\tfor (const [type, mimeType] of Object.entries(responseTypes)) {\n\t\t\tresult[type] = async () => {\n\t\t\t\tthis.request.headers.set('accept', this.request.headers.get('accept') || mimeType);\n\n\t\t\t\tconst response = (await result).clone();\n\n\t\t\t\tif (type === 'json') {\n\t\t\t\t\tif (response.status === 204) {\n\t\t\t\t\t\treturn '';\n\t\t\t\t\t}\n\n\t\t\t\t\tif (options.parseJson) {\n\t\t\t\t\t\treturn options.parseJson(await response.text());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn response[type]();\n\t\t\t};\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t_calculateRetryDelay(error) {\n\t\tthis._retryCount++;\n\n\t\tif (this._retryCount < this._options.retry.limit && !(error instanceof TimeoutError)) {\n\t\t\tif (error instanceof HTTPError) {\n\t\t\t\tif (!this._options.retry.statusCodes.includes(error.response.status)) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\tconst retryAfter = error.response.headers.get('Retry-After');\n\t\t\t\tif (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {\n\t\t\t\t\tlet after = Number(retryAfter);\n\t\t\t\t\tif (Number.isNaN(after)) {\n\t\t\t\t\t\tafter = Date.parse(retryAfter) - Date.now();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tafter *= 1000;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (typeof this._options.retry.maxRetryAfter !== 'undefined' && after > this._options.retry.maxRetryAfter) {\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn after;\n\t\t\t\t}\n\n\t\t\t\tif (error.response.status === 413) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst BACKOFF_FACTOR = 0.3;\n\t\t\treturn BACKOFF_FACTOR * (2 ** (this._retryCount - 1)) * 1000;\n\t\t}\n\n\t\treturn 0;\n\t}\n\n\t_decorateResponse(response) {\n\t\tif (this._options.parseJson) {\n\t\t\tresponse.json = async () => {\n\t\t\t\treturn this._options.parseJson(await response.text());\n\t\t\t};\n\t\t}\n\n\t\treturn response;\n\t}\n\n\tasync _retry(fn) {\n\t\ttry {\n\t\t\treturn await fn();\n\t\t} catch (error) {\n\t\t\tconst ms = Math.min(this._calculateRetryDelay(error), maxSafeTimeout);\n\t\t\tif (ms !== 0 && this._retryCount > 0) {\n\t\t\t\tawait delay(ms);\n\n\t\t\t\tfor (const hook of this._options.hooks.beforeRetry) {\n\t\t\t\t\t// eslint-disable-next-line no-await-in-loop\n\t\t\t\t\tconst hookResult = await hook({\n\t\t\t\t\t\trequest: this.request,\n\t\t\t\t\t\toptions: this._options,\n\t\t\t\t\t\terror,\n\t\t\t\t\t\tretryCount: this._retryCount\n\t\t\t\t\t});\n\n\t\t\t\t\t// If `stop` is returned from the hook, the retry process is stopped\n\t\t\t\t\tif (hookResult === stop) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn this._retry(fn);\n\t\t\t}\n\n\t\t\tif (this._options.throwHttpErrors) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t}\n\t}\n\n\tasync _fetch() {\n\t\tfor (const hook of this._options.hooks.beforeRequest) {\n\t\t\t// eslint-disable-next-line no-await-in-loop\n\t\t\tconst result = await hook(this.request, this._options);\n\n\t\t\tif (result instanceof Request) {\n\t\t\t\tthis.request = result;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (result instanceof Response) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\n\t\tif (this._options.timeout === false) {\n\t\t\treturn this._options.fetch(this.request.clone());\n\t\t}\n\n\t\treturn timeout(this.request.clone(), this.abortController, this._options);\n\t}\n\n\t/* istanbul ignore next */\n\t_stream(response, onDownloadProgress) {\n\t\tconst totalBytes = Number(response.headers.get('content-length')) || 0;\n\t\tlet transferredBytes = 0;\n\n\t\treturn new globals.Response(\n\t\t\tnew globals.ReadableStream({\n\t\t\t\tstart(controller) {\n\t\t\t\t\tconst reader = response.body.getReader();\n\n\t\t\t\t\tif (onDownloadProgress) {\n\t\t\t\t\t\tonDownloadProgress({percent: 0, transferredBytes: 0, totalBytes}, new Uint8Array());\n\t\t\t\t\t}\n\n\t\t\t\t\tasync function read() {\n\t\t\t\t\t\tconst {done, value} = await reader.read();\n\t\t\t\t\t\tif (done) {\n\t\t\t\t\t\t\tcontroller.close();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (onDownloadProgress) {\n\t\t\t\t\t\t\ttransferredBytes += value.byteLength;\n\t\t\t\t\t\t\tconst percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;\n\t\t\t\t\t\t\tonDownloadProgress({percent, transferredBytes, totalBytes}, value);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcontroller.enqueue(value);\n\t\t\t\t\t\tread();\n\t\t\t\t\t}\n\n\t\t\t\t\tread();\n\t\t\t\t}\n\t\t\t})\n\t\t);\n\t}\n}\n\nconst validateAndMerge = (...sources) => {\n\tfor (const source of sources) {\n\t\tif ((!isObject(source) || Array.isArray(source)) && typeof source !== 'undefined') {\n\t\t\tthrow new TypeError('The `options` argument must be an object');\n\t\t}\n\t}\n\n\treturn deepMerge({}, ...sources);\n};\n\nconst createInstance = defaults => {\n\tconst ky = (input, options) => new Ky(input, validateAndMerge(defaults, options));\n\n\tfor (const method of requestMethods) {\n\t\tky[method] = (input, options) => new Ky(input, validateAndMerge(defaults, options, {method}));\n\t}\n\n\tky.HTTPError = HTTPError;\n\tky.TimeoutError = TimeoutError;\n\tky.create = newDefaults => createInstance(validateAndMerge(newDefaults));\n\tky.extend = newDefaults => createInstance(validateAndMerge(defaults, newDefaults));\n\tky.stop = stop;\n\n\treturn ky;\n};\n\nexport default createInstance();\n","module.exports = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n","'use strict';\n\nvar utils = exports;\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg !== 'string') {\n for (var i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n return res;\n }\n if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (var i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n } else {\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n var hi = c >> 8;\n var lo = c & 0xff;\n if (hi)\n res.push(hi, lo);\n else\n res.push(lo);\n }\n }\n return res;\n}\nutils.toArray = toArray;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nutils.zero2 = zero2;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nutils.toHex = toHex;\n\nutils.encode = function encode(arr, enc) {\n if (enc === 'hex')\n return toHex(arr);\n else\n return arr;\n};\n","const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier)\n this.inc('pre', identifier)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier)\n }\n this.inc('pre', identifier)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre':\n if (this.prerelease.length === 0) {\n this.prerelease = [0]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n this.prerelease.push(0)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n if (this.prerelease[0] === identifier) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = [identifier, 0]\n }\n } else {\n this.prerelease = [identifier, 0]\n }\n }\n break\n\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.format()\n this.raw = this.version\n return this\n }\n}\n\nmodule.exports = SemVer\n","const SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n /* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\nmodule.exports = {\n SEMVER_SPEC_VERSION,\n MAX_LENGTH,\n MAX_SAFE_INTEGER,\n MAX_SAFE_COMPONENT_LENGTH\n}\n","const debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers\n}\n","// parse out just the options we care about so we always get a consistent\n// obj with keys in a consistent order.\nconst opts = ['includePrerelease', 'loose', 'rtl']\nconst parseOptions = options =>\n !options ? {}\n : typeof options !== 'object' ? { loose: true }\n : opts.filter(k => options[k]).reduce((options, k) => {\n options[k] = true\n return options\n }, {})\nmodule.exports = parseOptions\n","const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst src = exports.src = []\nconst t = exports.t = {}\nlet R = 0\n\nconst createToken = (name, value, isGlobal) => {\n const index = R++\n debug(index, value)\n t[name] = index\n src[index] = value\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', '\\\\d*[a-zA-Z-][a-zA-Z0-9-]*')\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]\n}|${src[t.NONNUMERICIDENTIFIER]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCE', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\.0\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\.0\\.0-0\\\\s*$')\n","/*\n * tar-js\n * MIT (c) 2011 T. Jameson Little\n */\n\n(function () {\n\t\"use strict\";\n\t\n/*\nstruct posix_header { // byte offset\n\tchar name[100]; // 0\n\tchar mode[8]; // 100\n\tchar uid[8]; // 108\n\tchar gid[8]; // 116\n\tchar size[12]; // 124\n\tchar mtime[12]; // 136\n\tchar chksum[8]; // 148\n\tchar typeflag; // 156\n\tchar linkname[100]; // 157\n\tchar magic[6]; // 257\n\tchar version[2]; // 263\n\tchar uname[32]; // 265\n\tchar gname[32]; // 297\n\tchar devmajor[8]; // 329\n\tchar devminor[8]; // 337\n\tchar prefix[155]; // 345\n // 500\n};\n*/\n\n\tvar utils = require(\"./utils\"),\n\t\theaderFormat;\n\t\n\theaderFormat = [\n\t\t{\n\t\t\t'field': 'fileName',\n\t\t\t'length': 100\n\t\t},\n\t\t{\n\t\t\t'field': 'fileMode',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'uid',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'gid',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'fileSize',\n\t\t\t'length': 12\n\t\t},\n\t\t{\n\t\t\t'field': 'mtime',\n\t\t\t'length': 12\n\t\t},\n\t\t{\n\t\t\t'field': 'checksum',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'type',\n\t\t\t'length': 1\n\t\t},\n\t\t{\n\t\t\t'field': 'linkName',\n\t\t\t'length': 100\n\t\t},\n\t\t{\n\t\t\t'field': 'ustar',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'owner',\n\t\t\t'length': 32\n\t\t},\n\t\t{\n\t\t\t'field': 'group',\n\t\t\t'length': 32\n\t\t},\n\t\t{\n\t\t\t'field': 'majorNumber',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'minorNumber',\n\t\t\t'length': 8\n\t\t},\n\t\t{\n\t\t\t'field': 'filenamePrefix',\n\t\t\t'length': 155\n\t\t},\n\t\t{\n\t\t\t'field': 'padding',\n\t\t\t'length': 12\n\t\t}\n\t];\n\n\tfunction formatHeader(data, cb) {\n\t\tvar buffer = utils.clean(512),\n\t\t\toffset = 0;\n\n\t\theaderFormat.forEach(function (value) {\n\t\t\tvar str = data[value.field] || \"\",\n\t\t\t\ti, length;\n\n\t\t\tfor (i = 0, length = str.length; i < length; i += 1) {\n\t\t\t\tbuffer[offset] = str.charCodeAt(i);\n\t\t\t\toffset += 1;\n\t\t\t}\n\n\t\t\toffset += value.length - i; // space it out with nulls\n\t\t});\n\n\t\tif (typeof cb === 'function') {\n\t\t\treturn cb(buffer, offset);\n\t\t}\n\t\treturn buffer;\n\t}\n\t\n\tmodule.exports.structure = headerFormat;\n\tmodule.exports.format = formatHeader;\n}());\n","/*\n * tar-js\n * MIT (c) 2011 T. Jameson Little\n */\n\n(function () {\n\t\"use strict\";\n\n\tvar header = require(\"./header\"),\n\t\tutils = require(\"./utils\"),\n\t\trecordSize = 512,\n\t\tblockSize;\n\t\n\tfunction Tar(recordsPerBlock) {\n\t\tthis.written = 0;\n\t\tblockSize = (recordsPerBlock || 20) * recordSize;\n\t\tthis.out = utils.clean(blockSize);\n\t}\n\n\tTar.prototype.append = function (filepath, input, opts, callback) {\n\t\tvar data,\n\t\t\tchecksum,\n\t\t\tmode,\n\t\t\tmtime,\n\t\t\tuid,\n\t\t\tgid,\n\t\t\theaderArr;\n\n\t\tif (typeof input === 'string') {\n\t\t\tinput = utils.stringToUint8(input);\n\t\t} else if (input.constructor !== Uint8Array.prototype.constructor) {\n\t\t\tthrow 'Invalid input type. You gave me: ' + input.constructor.toString().match(/function\\s*([$A-Za-z_][0-9A-Za-z_]*)\\s*\\(/)[1];\n\t\t}\n\n\t\tif (typeof opts === 'function') {\n\t\t\tcallback = opts;\n\t\t\topts = {};\n\t\t}\n\n\t\topts = opts || {};\n\n\t\tmode = opts.mode || parseInt('777', 8) & 0xfff;\n\t\tmtime = opts.mtime || Math.floor(+new Date() / 1000);\n\t\tuid = opts.uid || 0;\n\t\tgid = opts.gid || 0;\n\n\t\tdata = {\n\t\t\tfileName: filepath,\n\t\t\tfileMode: utils.pad(mode, 7),\n\t\t\tuid: utils.pad(uid, 7),\n\t\t\tgid: utils.pad(gid, 7),\n\t\t\tfileSize: utils.pad(input.length, 11),\n\t\t\tmtime: utils.pad(mtime, 11),\n\t\t\tchecksum: ' ',\n\t\t\ttype: '0', // just a file\n\t\t\tustar: 'ustar ',\n\t\t\towner: opts.owner || '',\n\t\t\tgroup: opts.group || ''\n\t\t};\n\n\t\t// calculate the checksum\n\t\tchecksum = 0;\n\t\tObject.keys(data).forEach(function (key) {\n\t\t\tvar i, value = data[key], length;\n\n\t\t\tfor (i = 0, length = value.length; i < length; i += 1) {\n\t\t\t\tchecksum += value.charCodeAt(i);\n\t\t\t}\n\t\t});\n\n\t\tdata.checksum = utils.pad(checksum, 6) + \"\\u0000 \";\n\n\t\theaderArr = header.format(data);\n\n\t\tvar i, offset, length;\n\n\t\tthis.out.set(headerArr, this.written);\n\n\t\tthis.written += headerArr.length;\n\n\t\t// If there is not enough space in this.out, we need to expand it to\n\t\t// fit the new input.\n\t\tif (this.written + input.length > this.out.length) {\n\t\t\tthis.out = utils.extend(this.out, this.written, input.length, blockSize);\n\t\t}\n\n\t\tthis.out.set(input, this.written);\n\n\t\t// to the nearest multiple of recordSize\n\t\tthis.written += input.length + (recordSize - (input.length % recordSize || recordSize));\n\n\t\t// make sure there's at least 2 empty records worth of extra space\n\t\tif (this.out.length - this.written < recordSize * 2) {\n\t\t\tthis.out = utils.extend(this.out, this.written, recordSize * 2, blockSize);\n\t\t}\n\n\t\tif (typeof callback === 'function') {\n\t\t\tcallback(this.out);\n\t\t}\n\n\t\treturn this.out;\n\t};\n\n\tTar.prototype.clear = function () {\n\t\tthis.written = 0;\n\t\tthis.out = utils.clean(blockSize);\n\t};\n\n Tar.utils = utils;\n\n\tTar.stringToUint8 = utils.stringToUint8;\n\tTar.uint8ToBase64 = utils.uint8ToBase64;\n Tar.base64ToUint8 = utils.base64ToUint8;\n\t\n\tmodule.exports = Tar;\n}());\n","/*\n * tar-js\n * MIT (c) 2011 T. Jameson Little\n */\n\n(function () {\n\t\"use strict\";\n\n\tvar lookup = [\n\t\t\t'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',\n\t\t\t'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',\n\t\t\t'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',\n\t\t\t'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',\n\t\t\t'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',\n\t\t\t'o', 'p', 'q', 'r', 's', 't', 'u', 'v',\n\t\t\t'w', 'x', 'y', 'z', '0', '1', '2', '3',\n\t\t\t'4', '5', '6', '7', '8', '9', '+', '/'\n\t\t];\n\tfunction clean(length) {\n\t\tvar i, buffer = new Uint8Array(length);\n\t\tfor (i = 0; i < length; i += 1) {\n\t\t\tbuffer[i] = 0;\n\t\t}\n\t\treturn buffer;\n\t}\n\n\tfunction extend(orig, length, addLength, multipleOf) {\n\t\tvar newSize = length + addLength,\n\t\t\tbuffer = clean((parseInt(newSize / multipleOf) + 1) * multipleOf);\n\n\t\tbuffer.set(orig);\n\n\t\treturn buffer;\n\t}\n\n\tfunction pad(num, bytes, base) {\n\t\tnum = num.toString(base || 8);\n\t\treturn \"000000000000\".substr(num.length + 12 - bytes) + num;\n\t}\t\n\t\n\tfunction stringToUint8 (input, out, offset) {\n\t\tvar i, length;\n\n\t\tout = out || clean(input.length);\n\n\t\toffset = offset || 0;\n\t\tfor (i = 0, length = input.length; i < length; i += 1) {\n\t\t\tout[offset] = input.charCodeAt(i);\n\t\t\toffset += 1;\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction uint8ToBase64(uint8) {\n\t\tvar i,\n\t\t\textraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes\n\t\t\toutput = \"\",\n\t\t\ttemp, length;\n\n\t\tfunction tripletToBase64 (num) {\n\t\t\treturn lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F];\n\t\t};\n\n\t\t// go through the array every three bytes, we'll deal with trailing stuff later\n\t\tfor (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {\n\t\t\ttemp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]);\n\t\t\toutput += tripletToBase64(temp);\n\t\t}\n\n\t\t// this prevents an ERR_INVALID_URL in Chrome (Firefox okay)\n\t\tswitch (output.length % 4) {\n\t\t\tcase 1:\n\t\t\t\toutput += '=';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\toutput += '==';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn output;\n\t}\n\n\tfunction base64ToUint8(input) {\n\t\tvar base64 = input.match(/^([^=]+)/)[1],\n\t\t\textraBytes = input.match(/(=*)$/)[1].length,\n\t\t\ti = 0, length = base64.length, temp, offset = 0,\n\t\t\tret = clean(base64.length * .75 + extraBytes);\n\n\t\twhile (i < length) {\n\t\t\ttemp = 0;\n\n\t\t\ttemp |= lookup.indexOf(base64.charAt(i) || 'A') << 18;\n\t\t\ti += 1;\n\t\t\ttemp |= lookup.indexOf(base64.charAt(i) || 'A') << 12;\n\t\t\ti += 1;\n\t\t\ttemp |= lookup.indexOf(base64.charAt(i) || 'A') << 6;\n\t\t\ti += 1;\n\t\t\ttemp |= lookup.indexOf(base64.charAt(i) || 'A');\n\t\t\ti += 1;\n\n\t\t\tret[offset] = temp >> 16 & 0xFF;\n\t\t\toffset += 1;\n\t\t\tret[offset] = temp >> 8 & 0xFF;\n\t\t\toffset += 1;\n\t\t\tret[offset] = temp & 0xFF;\n\t\t\toffset += 1;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\tmodule.exports.clean = clean;\n\tmodule.exports.pad = pad;\n\tmodule.exports.extend = extend;\n\tmodule.exports.stringToUint8 = stringToUint8;\n\tmodule.exports.uint8ToBase64 = uint8ToBase64;\n\tmodule.exports.base64ToUint8 = base64ToUint8;\n}());\n","/**\n * @license\n * web-streams-polyfill v4.0.0-beta.1\n * Copyright 2021 Mattias Buelens, Diwank Singh Tomer and other contributors.\n * This code is released under the MIT license.\n * SPDX-License-Identifier: MIT\n */\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=\"undefined\"!=typeof globalThis?globalThis:e||self).WebStreamsPolyfill={})}(this,(function(e){\"use strict\";const t=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function r(){}function o(e){return\"object\"==typeof e&&null!==e||\"function\"==typeof e}const n=r,a=Promise,i=Promise.prototype.then,l=Promise.resolve.bind(a),s=Promise.reject.bind(a);function u(e){return new a(e)}function c(e){return l(e)}function d(e){return s(e)}function f(e,t,r){return i.call(e,t,r)}function b(e,t,r){f(f(e,t,r),void 0,n)}function _(e,t){b(e,t)}function h(e,t){b(e,void 0,t)}function m(e,t,r){return f(e,t,r)}function p(e){f(e,void 0,n)}let y=e=>{if(\"function\"==typeof queueMicrotask)y=queueMicrotask;else{const e=c(void 0);y=t=>f(e,t)}return y(e)};function g(e,t,r){if(\"function\"!=typeof e)throw new TypeError(\"Argument is not a function\");return Function.prototype.apply.call(e,t,r)}function S(e,t,r){try{return c(g(e,t,r))}catch(e){return d(e)}}class v{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let o=r+1;const n=e._elements,a=n[r];return 16384===o&&(t=e._next,o=0),--this._size,this._cursor=o,e!==t&&(this._front=t),n[r]=void 0,a}forEach(e){let t=this._cursor,r=this._front,o=r._elements;for(;!(t===o.length&&void 0===r._next||t===o.length&&(r=r._next,o=r._elements,t=0,0===o.length));)e(o[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}function w(e,t){e._ownerReadableStream=t,t._reader=e,\"readable\"===t._state?q(e):\"closed\"===t._state?function(e){q(e),W(e)}(e):P(e,t._storedError)}function R(e,t){return dr(e._ownerReadableStream,t)}function T(e){\"readable\"===e._ownerReadableStream._state?E(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")):function(e,t){P(e,t)}(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function C(e){return new TypeError(\"Cannot \"+e+\" a stream using a released reader\")}function q(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function P(e,t){q(e),E(e,t)}function E(e,t){void 0!==e._closedPromise_reject&&(p(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function W(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const O=t(\"[[AbortSteps]]\"),B=t(\"[[ErrorSteps]]\"),k=t(\"[[CancelSteps]]\"),j=t(\"[[PullSteps]]\"),A=Number.isFinite||function(e){return\"number\"==typeof e&&isFinite(e)},z=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function F(e,t){if(void 0!==e&&(\"object\"!=typeof(r=e)&&\"function\"!=typeof r))throw new TypeError(`${t} is not an object.`);var r}function I(e,t){if(\"function\"!=typeof e)throw new TypeError(`${t} is not a function.`)}function L(e,t){if(!function(e){return\"object\"==typeof e&&null!==e||\"function\"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function D(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function $(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function M(e){return Number(e)}function Q(e){return 0===e?0:e}function Y(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=Q(o),!A(o))throw new TypeError(`${t} is not a finite number`);if(o=function(e){return Q(z(e))}(o),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return A(o)&&0!==o?o:0}function x(e,t){if(!ur(e))throw new TypeError(`${t} is not a ReadableStream.`)}function N(e){return new ReadableStreamDefaultReader(e)}function H(e,t){e._reader._readRequests.push(t)}function V(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function U(e){return e._reader._readRequests.length}function G(e){const t=e._reader;return void 0!==t&&!!X(t)}class ReadableStreamDefaultReader{constructor(e){if(D(e,1,\"ReadableStreamDefaultReader\"),x(e,\"First parameter\"),cr(e))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");w(this,e),this._readRequests=new v}get closed(){return X(this)?this._closedPromise:d(K(\"closed\"))}cancel(e){return X(this)?void 0===this._ownerReadableStream?d(C(\"cancel\")):R(this,e):d(K(\"cancel\"))}read(){if(!X(this))return d(K(\"read\"));if(void 0===this._ownerReadableStream)return d(C(\"read from\"));let e,t;const r=u(((r,o)=>{e=r,t=o}));return J(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!X(this))throw K(\"releaseLock\");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError(\"Tried to release a reader lock when that reader has pending read() calls un-settled\");T(this)}}}function X(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_readRequests\")&&e instanceof ReadableStreamDefaultReader)}function J(e,t){const r=e._ownerReadableStream;r._disturbed=!0,\"closed\"===r._state?t._closeSteps():\"errored\"===r._state?t._errorSteps(r._storedError):r._readableStreamController[j](t)}function K(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}Object.defineProperties(ReadableStreamDefaultReader.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ReadableStreamDefaultReader.prototype,t.toStringTag,{value:\"ReadableStreamDefaultReader\",configurable:!0});class Z{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?m(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?m(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;if(void 0===e._ownerReadableStream)return d(C(\"iterate\"));let t,r;const o=u(((e,o)=>{t=e,r=o}));return J(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,y((()=>t({value:e,done:!1})))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,T(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,T(e),r(t)}}),o}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(void 0===t._ownerReadableStream)return d(C(\"finish iterating\"));if(!this._preventCancel){const r=R(t,e);return T(t),m(r,(()=>({value:e,done:!0})))}return T(t),c({value:e,done:!0})}}const ee={next(){return te(this)?this._asyncIteratorImpl.next():d(re(\"next\"))},return(e){return te(this)?this._asyncIteratorImpl.return(e):d(re(\"return\"))}};function te(e){if(!o(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,\"_asyncIteratorImpl\"))return!1;try{return e._asyncIteratorImpl instanceof Z}catch(e){return!1}}function re(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}\"symbol\"==typeof t.asyncIterator&&Object.defineProperty(ee,t.asyncIterator,{value(){return this},writable:!0,configurable:!0});const oe=Number.isNaN||function(e){return e!=e};function ne(e){return e.slice()}function ae(e,t,r,o,n){new Uint8Array(e).set(new Uint8Array(r,o,n),t)}function ie(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,n=new ArrayBuffer(o);return ae(n,0,e,t,o),n}function le(e){const t=ie(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function se(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ue(e,t,r){if(\"number\"!=typeof(o=r)||oe(o)||o<0||r===1/0)throw new RangeError(\"Size must be a finite, non-NaN, non-negative number.\");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function ce(e){e._queue=new v,e._queueTotalSize=0}class ReadableStreamBYOBRequest{constructor(){throw new TypeError(\"Illegal constructor\")}get view(){if(!fe(this))throw Ae(\"view\");return this._view}respond(e){if(!fe(this))throw Ae(\"respond\");if(D(e,1,\"respond\"),e=Y(e,\"First parameter\"),void 0===this._associatedReadableByteStreamController)throw new TypeError(\"This BYOB request has been invalidated\");this._view.buffer,Be(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!fe(this))throw Ae(\"respondWithNewView\");if(D(e,1,\"respondWithNewView\"),!ArrayBuffer.isView(e))throw new TypeError(\"You can only respond with array buffer views\");if(void 0===this._associatedReadableByteStreamController)throw new TypeError(\"This BYOB request has been invalidated\");e.buffer,ke(this._associatedReadableByteStreamController,e)}}Object.defineProperties(ReadableStreamBYOBRequest.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ReadableStreamBYOBRequest.prototype,t.toStringTag,{value:\"ReadableStreamBYOBRequest\",configurable:!0});class ReadableByteStreamController{constructor(){throw new TypeError(\"Illegal constructor\")}get byobRequest(){if(!de(this))throw ze(\"byobRequest\");return We(this)}get desiredSize(){if(!de(this))throw ze(\"desiredSize\");return Oe(this)}close(){if(!de(this))throw ze(\"close\");if(this._closeRequested)throw new TypeError(\"The stream has already been closed; do not close it again!\");const e=this._controlledReadableByteStream._state;if(\"readable\"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);qe(this)}enqueue(e){if(!de(this))throw ze(\"enqueue\");if(D(e,1,\"enqueue\"),!ArrayBuffer.isView(e))throw new TypeError(\"chunk must be an array buffer view\");if(0===e.byteLength)throw new TypeError(\"chunk must have non-zero byteLength\");if(0===e.buffer.byteLength)throw new TypeError(\"chunk's buffer must have non-zero byteLength\");if(this._closeRequested)throw new TypeError(\"stream is closed or draining\");const t=this._controlledReadableByteStream._state;if(\"readable\"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);Pe(this,e)}error(e){if(!de(this))throw ze(\"error\");Ee(this,e)}[k](e){_e(this),ce(this);const t=this._cancelAlgorithm(e);return Ce(this),t}[j](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0){const t=this._queue.shift();this._queueTotalSize-=t.byteLength,Se(this);const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(r)}const r=this._autoAllocateChunkSize;if(void 0!==r){let t;try{t=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const o={buffer:t,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:\"default\"};this._pendingPullIntos.push(o)}H(t,e),be(this)}}function de(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledReadableByteStream\")&&e instanceof ReadableByteStreamController)}function fe(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_associatedReadableByteStreamController\")&&e instanceof ReadableStreamBYOBRequest)}function be(e){if(!function(e){const t=e._controlledReadableByteStream;if(\"readable\"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(G(t)&&U(t)>0)return!0;if(De(t)&&Le(t)>0)return!0;if(Oe(e)>0)return!0;return!1}(e))return;if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0;b(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,be(e))}),(t=>{Ee(e,t)}))}function _e(e){ve(e),e._pendingPullIntos=new v}function he(e,t){let r=!1;\"closed\"===e._state&&(r=!0);const o=me(t);\"default\"===t.readerType?V(e,o,r):function(e,t,r){const o=e._reader._readIntoRequests.shift();r?o._closeSteps(t):o._chunkSteps(t)}(e,o,r)}function me(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function pe(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function ye(e,t){const r=t.elementSize,o=t.bytesFilled-t.bytesFilled%r,n=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+n,i=a-a%r;let l=n,s=!1;i>o&&(l=i-t.bytesFilled,s=!0);const u=e._queue;for(;l>0;){const r=u.peek(),o=Math.min(l,r.byteLength),n=t.byteOffset+t.bytesFilled;ae(t.buffer,n,r.buffer,r.byteOffset,o),r.byteLength===o?u.shift():(r.byteOffset+=o,r.byteLength-=o),e._queueTotalSize-=o,ge(e,o,t),l-=o}return s}function ge(e,t,r){r.bytesFilled+=t}function Se(e){0===e._queueTotalSize&&e._closeRequested?(Ce(e),fr(e._controlledReadableByteStream)):be(e)}function ve(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function we(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const t=e._pendingPullIntos.peek();ye(e,t)&&(Te(e),he(e._controlledReadableByteStream,t))}}function Re(e,t){const r=e._pendingPullIntos.peek();ve(e);\"closed\"===e._controlledReadableByteStream._state?function(e,t){const r=e._controlledReadableByteStream;if(De(r))for(;Le(r)>0;)he(r,Te(e))}(e):function(e,t,r){if(ge(0,t,r),r.bytesFilled<r.elementSize)return;Te(e);const o=r.bytesFilled%r.elementSize;if(o>0){const t=r.byteOffset+r.bytesFilled,n=ie(r.buffer,t-o,t);pe(e,n,0,n.byteLength)}r.bytesFilled-=o,he(e._controlledReadableByteStream,r),we(e)}(e,t,r),be(e)}function Te(e){return e._pendingPullIntos.shift()}function Ce(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function qe(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&\"readable\"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){if(e._pendingPullIntos.peek().bytesFilled>0){const t=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");throw Ee(e,t),t}}Ce(e),fr(t)}}function Pe(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||\"readable\"!==r._state)return;const o=t.buffer,n=t.byteOffset,a=t.byteLength,i=o;if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();t.buffer,0,t.buffer=t.buffer}if(ve(e),G(r))if(0===U(r))pe(e,i,n,a);else{V(r,new Uint8Array(i,n,a),!1)}else De(r)?(pe(e,i,n,a),we(e)):pe(e,i,n,a);be(e)}function Ee(e,t){const r=e._controlledReadableByteStream;\"readable\"===r._state&&(_e(e),ce(e),Ce(e),br(r,t))}function We(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),o=Object.create(ReadableStreamBYOBRequest.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(o,e,r),e._byobRequest=o}return e._byobRequest}function Oe(e){const t=e._controlledReadableByteStream._state;return\"errored\"===t?null:\"closed\"===t?0:e._strategyHWM-e._queueTotalSize}function Be(e,t){const r=e._pendingPullIntos.peek();if(\"closed\"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError(\"bytesWritten must be 0 when calling respond() on a closed stream\")}else{if(0===t)throw new TypeError(\"bytesWritten must be greater than 0 when calling respond() on a readable stream\");if(r.bytesFilled+t>r.byteLength)throw new RangeError(\"bytesWritten out of range\")}r.buffer=r.buffer,Re(e,t)}function ke(e,t){const r=e._pendingPullIntos.peek();if(\"closed\"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError(\"The view's length must be 0 when calling respondWithNewView() on a closed stream\")}else if(0===t.byteLength)throw new TypeError(\"The view's length must be greater than 0 when calling respondWithNewView() on a readable stream\");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError(\"The region specified by view does not match byobRequest\");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError(\"The buffer of view has different capacity than byobRequest\");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError(\"The region specified by view is larger than byobRequest\");r.buffer=t.buffer,Re(e,t.byteLength)}function je(e,t,r,o,n,a,i){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,ce(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=a,t._pullAlgorithm=o,t._cancelAlgorithm=n,t._autoAllocateChunkSize=i,t._pendingPullIntos=new v,e._readableStreamController=t;b(c(r()),(()=>{t._started=!0,be(t)}),(e=>{Ee(t,e)}))}function Ae(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function ze(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function Fe(e){return new ReadableStreamBYOBReader(e)}function Ie(e,t){e._reader._readIntoRequests.push(t)}function Le(e){return e._reader._readIntoRequests.length}function De(e){const t=e._reader;return void 0!==t&&!!$e(t)}Object.defineProperties(ReadableByteStreamController.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ReadableByteStreamController.prototype,t.toStringTag,{value:\"ReadableByteStreamController\",configurable:!0});class ReadableStreamBYOBReader{constructor(e){if(D(e,1,\"ReadableStreamBYOBReader\"),x(e,\"First parameter\"),cr(e))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");if(!de(e._readableStreamController))throw new TypeError(\"Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source\");w(this,e),this._readIntoRequests=new v}get closed(){return $e(this)?this._closedPromise:d(Qe(\"closed\"))}cancel(e){return $e(this)?void 0===this._ownerReadableStream?d(C(\"cancel\")):R(this,e):d(Qe(\"cancel\"))}read(e){if(!$e(this))return d(Qe(\"read\"));if(!ArrayBuffer.isView(e))return d(new TypeError(\"view must be an array buffer view\"));if(0===e.byteLength)return d(new TypeError(\"view must have non-zero byteLength\"));if(0===e.buffer.byteLength)return d(new TypeError(\"view's buffer must have non-zero byteLength\"));if(e.buffer,void 0===this._ownerReadableStream)return d(C(\"read from\"));let t,r;const o=u(((e,o)=>{t=e,r=o}));return Me(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>r(e)}),o}releaseLock(){if(!$e(this))throw Qe(\"releaseLock\");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError(\"Tried to release a reader lock when that reader has pending read() calls un-settled\");T(this)}}}function $e(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_readIntoRequests\")&&e instanceof ReadableStreamBYOBReader)}function Me(e,t,r){const o=e._ownerReadableStream;o._disturbed=!0,\"errored\"===o._state?r._errorSteps(o._storedError):function(e,t,r){const o=e._controlledReadableByteStream;let n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);const a=t.constructor,i=t.buffer,l={buffer:i,bufferByteLength:i.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,viewConstructor:a,readerType:\"byob\"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(l),void Ie(o,r);if(\"closed\"!==o._state){if(e._queueTotalSize>0){if(ye(e,l)){const t=me(l);return Se(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");return Ee(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(l),Ie(o,r),be(e)}else{const e=new a(l.buffer,l.byteOffset,0);r._closeSteps(e)}}(o._readableStreamController,t,r)}function Qe(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function Ye(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(oe(r)||r<0)throw new RangeError(\"Invalid highWaterMark\");return r}function xe(e){const{size:t}=e;return t||(()=>1)}function Ne(e,t){F(e,t);const r=null==e?void 0:e.highWaterMark,o=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:M(r),size:void 0===o?void 0:He(o,`${t} has member 'size' that`)}}function He(e,t){return I(e,t),t=>M(e(t))}function Ve(e,t,r){return I(e,r),r=>S(e,t,[r])}function Ue(e,t,r){return I(e,r),()=>S(e,t,[])}function Ge(e,t,r){return I(e,r),r=>g(e,t,[r])}function Xe(e,t,r){return I(e,r),(r,o)=>S(e,t,[r,o])}function Je(e,t){if(!tt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(ReadableStreamBYOBReader.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ReadableStreamBYOBReader.prototype,t.toStringTag,{value:\"ReadableStreamBYOBReader\",configurable:!0});const Ke=\"function\"==typeof AbortController;class WritableStream{constructor(e={},t={}){void 0===e?e=null:L(e,\"First parameter\");const r=Ne(t,\"Second parameter\"),o=function(e,t){F(e,t);const r=null==e?void 0:e.abort,o=null==e?void 0:e.close,n=null==e?void 0:e.start,a=null==e?void 0:e.type,i=null==e?void 0:e.write;return{abort:void 0===r?void 0:Ve(r,e,`${t} has member 'abort' that`),close:void 0===o?void 0:Ue(o,e,`${t} has member 'close' that`),start:void 0===n?void 0:Ge(n,e,`${t} has member 'start' that`),write:void 0===i?void 0:Xe(i,e,`${t} has member 'write' that`),type:a}}(e,\"First parameter\");et(this);if(void 0!==o.type)throw new RangeError(\"Invalid type is specified\");const n=xe(r);!function(e,t,r,o){const n=Object.create(WritableStreamDefaultController.prototype);let a=()=>{},i=()=>c(void 0),l=()=>c(void 0),s=()=>c(void 0);void 0!==t.start&&(a=()=>t.start(n));void 0!==t.write&&(i=e=>t.write(e,n));void 0!==t.close&&(l=()=>t.close());void 0!==t.abort&&(s=e=>t.abort(e));gt(e,n,a,i,l,s,r,o)}(this,o,Ye(r,1),n)}get locked(){if(!tt(this))throw qt(\"locked\");return rt(this)}abort(e){return tt(this)?rt(this)?d(new TypeError(\"Cannot abort a stream that already has a writer\")):ot(this,e):d(qt(\"abort\"))}close(){return tt(this)?rt(this)?d(new TypeError(\"Cannot close a stream that already has a writer\")):st(this)?d(new TypeError(\"Cannot close an already-closing stream\")):nt(this):d(qt(\"close\"))}getWriter(){if(!tt(this))throw qt(\"getWriter\");return Ze(this)}}function Ze(e){return new WritableStreamDefaultWriter(e)}function et(e){e._state=\"writable\",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new v,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function tt(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_writableStreamController\")&&e instanceof WritableStream)}function rt(e){return void 0!==e._writer}function ot(e,t){var r;if(\"closed\"===e._state||\"errored\"===e._state)return c(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort();const o=e._state;if(\"closed\"===o||\"errored\"===o)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;\"erroring\"===o&&(n=!0,t=void 0);const a=u(((r,o)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:o,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=a,n||it(e,t),a}function nt(e){const t=e._state;if(\"closed\"===t||\"errored\"===t)return d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=u(((t,r)=>{const o={_resolve:t,_reject:r};e._closeRequest=o})),o=e._writer;var n;return void 0!==o&&e._backpressure&&\"writable\"===t&&Lt(o),ue(n=e._writableStreamController,pt,0),wt(n),r}function at(e,t){\"writable\"!==e._state?lt(e):it(e,t)}function it(e,t){const r=e._writableStreamController;e._state=\"erroring\",e._storedError=t;const o=e._writer;void 0!==o&&_t(o,t),!function(e){if(void 0===e._inFlightWriteRequest&&void 0===e._inFlightCloseRequest)return!1;return!0}(e)&&r._started&&lt(e)}function lt(e){e._state=\"errored\",e._writableStreamController[B]();const t=e._storedError;if(e._writeRequests.forEach((e=>{e._reject(t)})),e._writeRequests=new v,void 0===e._pendingAbortRequest)return void ut(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void ut(e);b(e._writableStreamController[O](r._reason),(()=>{r._resolve(),ut(e)}),(t=>{r._reject(t),ut(e)}))}function st(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function ut(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&kt(t,e._storedError)}function ct(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){At(e)}(r):Lt(r)),e._backpressure=t}Object.defineProperties(WritableStream.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(WritableStream.prototype,t.toStringTag,{value:\"WritableStream\",configurable:!0});class WritableStreamDefaultWriter{constructor(e){if(D(e,1,\"WritableStreamDefaultWriter\"),Je(e,\"First parameter\"),rt(e))throw new TypeError(\"This stream has already been locked for exclusive writing by another writer\");this._ownerWritableStream=e,e._writer=this;const t=e._state;if(\"writable\"===t)!st(e)&&e._backpressure?At(this):Ft(this),Ot(this);else if(\"erroring\"===t)zt(this,e._storedError),Ot(this);else if(\"closed\"===t)Ft(this),Ot(r=this),jt(r);else{const t=e._storedError;zt(this,t),Bt(this,t)}var r}get closed(){return dt(this)?this._closedPromise:d(Et(\"closed\"))}get desiredSize(){if(!dt(this))throw Et(\"desiredSize\");if(void 0===this._ownerWritableStream)throw Wt(\"desiredSize\");return function(e){const t=e._ownerWritableStream,r=t._state;if(\"errored\"===r||\"erroring\"===r)return null;if(\"closed\"===r)return 0;return vt(t._writableStreamController)}(this)}get ready(){return dt(this)?this._readyPromise:d(Et(\"ready\"))}abort(e){return dt(this)?void 0===this._ownerWritableStream?d(Wt(\"abort\")):function(e,t){return ot(e._ownerWritableStream,t)}(this,e):d(Et(\"abort\"))}close(){if(!dt(this))return d(Et(\"close\"));const e=this._ownerWritableStream;return void 0===e?d(Wt(\"close\")):st(e)?d(new TypeError(\"Cannot close an already-closing stream\")):ft(this)}releaseLock(){if(!dt(this))throw Et(\"releaseLock\");void 0!==this._ownerWritableStream&&ht(this)}write(e){return dt(this)?void 0===this._ownerWritableStream?d(Wt(\"write to\")):mt(this,e):d(Et(\"write\"))}}function dt(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_ownerWritableStream\")&&e instanceof WritableStreamDefaultWriter)}function ft(e){return nt(e._ownerWritableStream)}function bt(e,t){\"pending\"===e._closedPromiseState?kt(e,t):function(e,t){Bt(e,t)}(e,t)}function _t(e,t){\"pending\"===e._readyPromiseState?It(e,t):function(e,t){zt(e,t)}(e,t)}function ht(e){const t=e._ownerWritableStream,r=new TypeError(\"Writer was released and can no longer be used to monitor the stream's closedness\");_t(e,r),bt(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function mt(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,n=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Rt(e,t),1}}(o,t);if(r!==e._ownerWritableStream)return d(Wt(\"write to\"));const a=r._state;if(\"errored\"===a)return d(r._storedError);if(st(r)||\"closed\"===a)return d(new TypeError(\"The stream is closing or closed and cannot be written to\"));if(\"erroring\"===a)return d(r._storedError);const i=function(e){return u(((t,r)=>{const o={_resolve:t,_reject:r};e._writeRequests.push(o)}))}(r);return function(e,t,r){try{ue(e,t,r)}catch(t){return void Rt(e,t)}const o=e._controlledWritableStream;if(!st(o)&&\"writable\"===o._state){ct(o,Tt(e))}wt(e)}(o,t,n),i}Object.defineProperties(WritableStreamDefaultWriter.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(WritableStreamDefaultWriter.prototype,t.toStringTag,{value:\"WritableStreamDefaultWriter\",configurable:!0});const pt={};class WritableStreamDefaultController{constructor(){throw new TypeError(\"Illegal constructor\")}get abortReason(){if(!yt(this))throw Pt(\"abortReason\");return this._abortReason}get signal(){if(!yt(this))throw Pt(\"signal\");if(void 0===this._abortController)throw new TypeError(\"WritableStreamDefaultController.prototype.signal is not supported\");return this._abortController.signal}error(e){if(!yt(this))throw Pt(\"error\");\"writable\"===this._controlledWritableStream._state&&Ct(this,e)}[O](e){const t=this._abortAlgorithm(e);return St(this),t}[B](){ce(this)}}function yt(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledWritableStream\")&&e instanceof WritableStreamDefaultController)}function gt(e,t,r,o,n,a,i,l){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ce(t),t._abortReason=void 0,t._abortController=function(){if(Ke)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=l,t._strategyHWM=i,t._writeAlgorithm=o,t._closeAlgorithm=n,t._abortAlgorithm=a;const s=Tt(t);ct(e,s);b(c(r()),(()=>{t._started=!0,wt(t)}),(r=>{t._started=!0,at(e,r)}))}function St(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function vt(e){return e._strategyHWM-e._queueTotalSize}function wt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if(\"erroring\"===t._state)return void lt(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===pt?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),se(e);const r=e._closeAlgorithm();St(e),b(r,(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,\"erroring\"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state=\"closed\";const t=e._writer;void 0!==t&&jt(t)}(t)}),(e=>{!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),at(e,t)}(t,e)}))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r);b(e._writeAlgorithm(t),(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(se(e),!st(r)&&\"writable\"===t){const t=Tt(e);ct(r,t)}wt(e)}),(t=>{\"writable\"===r._state&&St(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,at(e,t)}(r,t)}))}(e,r)}function Rt(e,t){\"writable\"===e._controlledWritableStream._state&&Ct(e,t)}function Tt(e){return vt(e)<=0}function Ct(e,t){const r=e._controlledWritableStream;St(e),it(r,t)}function qt(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Pt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Et(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Wt(e){return new TypeError(\"Cannot \"+e+\" a stream using a released writer\")}function Ot(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState=\"pending\"}))}function Bt(e,t){Ot(e),kt(e,t)}function kt(e,t){void 0!==e._closedPromise_reject&&(p(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState=\"rejected\")}function jt(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState=\"resolved\")}function At(e){e._readyPromise=u(((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState=\"pending\"}function zt(e,t){At(e),It(e,t)}function Ft(e){At(e),Lt(e)}function It(e,t){void 0!==e._readyPromise_reject&&(p(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState=\"rejected\")}function Lt(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState=\"fulfilled\")}Object.defineProperties(WritableStreamDefaultController.prototype,{error:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(WritableStreamDefaultController.prototype,t.toStringTag,{value:\"WritableStreamDefaultController\",configurable:!0});const Dt=\"undefined\"!=typeof DOMException?DOMException:void 0;const $t=function(e){if(\"function\"!=typeof e&&\"object\"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Dt)?Dt:function(){const e=function(e,t){this.message=e||\"\",this.name=t||\"Error\",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,\"constructor\",{value:e,writable:!0,configurable:!0}),e}();function Mt(e,t,o,n,a,i){const l=N(e),s=Ze(t);e._disturbed=!0;let m=!1,y=c(void 0);return u(((g,S)=>{let v;if(void 0!==i){if(v=()=>{const r=new $t(\"Aborted\",\"AbortError\"),o=[];n||o.push((()=>\"writable\"===t._state?ot(t,r):c(void 0))),a||o.push((()=>\"readable\"===e._state?dr(e,r):c(void 0))),E((()=>Promise.all(o.map((e=>e())))),!0,r)},i.aborted)return void v();i.addEventListener(\"abort\",v)}var w,R,C;if(P(e,l._closedPromise,(e=>{n?W(!0,e):E((()=>ot(t,e)),!0,e)})),P(t,s._closedPromise,(t=>{a?W(!0,t):E((()=>dr(e,t)),!0,t)})),w=e,R=l._closedPromise,C=()=>{o?W():E((()=>function(e){const t=e._ownerWritableStream,r=t._state;return st(t)||\"closed\"===r?c(void 0):\"errored\"===r?d(t._storedError):ft(e)}(s)))},\"closed\"===w._state?C():_(R,C),st(t)||\"closed\"===t._state){const t=new TypeError(\"the destination writable stream closed before all data could be piped to it\");a?W(!0,t):E((()=>dr(e,t)),!0,t)}function q(){const e=y;return f(y,(()=>e!==y?q():void 0))}function P(e,t,r){\"errored\"===e._state?r(e._storedError):h(t,r)}function E(e,r,o){function n(){b(e(),(()=>O(r,o)),(e=>O(!0,e)))}m||(m=!0,\"writable\"!==t._state||st(t)?n():_(q(),n))}function W(e,r){m||(m=!0,\"writable\"!==t._state||st(t)?O(e,r):_(q(),(()=>O(e,r))))}function O(e,t){ht(s),T(l),void 0!==i&&i.removeEventListener(\"abort\",v),e?S(t):g(void 0)}p(u(((e,t)=>{!function o(n){n?e():f(m?c(!0):f(s._readyPromise,(()=>u(((e,t)=>{J(l,{_chunkSteps:t=>{y=f(mt(s,t),void 0,r),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})))),o,t)}(!1)})))}))}class ReadableStreamDefaultController{constructor(){throw new TypeError(\"Illegal constructor\")}get desiredSize(){if(!Qt(this))throw Kt(\"desiredSize\");return Gt(this)}close(){if(!Qt(this))throw Kt(\"close\");if(!Xt(this))throw new TypeError(\"The stream is not in a state that permits close\");Ht(this)}enqueue(e){if(!Qt(this))throw Kt(\"enqueue\");if(!Xt(this))throw new TypeError(\"The stream is not in a state that permits enqueue\");return Vt(this,e)}error(e){if(!Qt(this))throw Kt(\"error\");Ut(this,e)}[k](e){ce(this);const t=this._cancelAlgorithm(e);return Nt(this),t}[j](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=se(this);this._closeRequested&&0===this._queue.length?(Nt(this),fr(t)):Yt(this),e._chunkSteps(r)}else H(t,e),Yt(this)}}function Qt(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledReadableStream\")&&e instanceof ReadableStreamDefaultController)}function Yt(e){if(!xt(e))return;if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0;b(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Yt(e))}),(t=>{Ut(e,t)}))}function xt(e){const t=e._controlledReadableStream;if(!Xt(e))return!1;if(!e._started)return!1;if(cr(t)&&U(t)>0)return!0;return Gt(e)>0}function Nt(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Ht(e){if(!Xt(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Nt(e),fr(t))}function Vt(e,t){if(!Xt(e))return;const r=e._controlledReadableStream;if(cr(r)&&U(r)>0)V(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw Ut(e,t),t}try{ue(e,t,r)}catch(t){throw Ut(e,t),t}}Yt(e)}function Ut(e,t){const r=e._controlledReadableStream;\"readable\"===r._state&&(ce(e),Nt(e),br(r,t))}function Gt(e){const t=e._controlledReadableStream._state;return\"errored\"===t?null:\"closed\"===t?0:e._strategyHWM-e._queueTotalSize}function Xt(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&\"readable\"===t}function Jt(e,t,r,o,n,a,i){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ce(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=i,t._strategyHWM=a,t._pullAlgorithm=o,t._cancelAlgorithm=n,e._readableStreamController=t;b(c(r()),(()=>{t._started=!0,Yt(t)}),(e=>{Ut(t,e)}))}function Kt(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function Zt(e,t){return de(e._readableStreamController)?function(e){let t,r,o,n,a,i=N(e),l=!1,s=!1,d=!1;const f=u((e=>{a=e}));function b(e){h(e._closedPromise,(t=>{e===i&&(Ee(o._readableStreamController,t),Ee(n._readableStreamController,t),s&&d||a(void 0))}))}function _(){$e(i)&&(T(i),i=N(e),b(i));J(i,{_chunkSteps:t=>{y((()=>{l=!1;const r=t;let i=t;if(!s&&!d)try{i=le(t)}catch(t){return Ee(o._readableStreamController,t),Ee(n._readableStreamController,t),void a(dr(e,t))}s||Pe(o._readableStreamController,r),d||Pe(n._readableStreamController,i)}))},_closeSteps:()=>{l=!1,s||qe(o._readableStreamController),d||qe(n._readableStreamController),o._readableStreamController._pendingPullIntos.length>0&&Be(o._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&Be(n._readableStreamController,0),s&&d||a(void 0)},_errorSteps:()=>{l=!1}})}function m(t,r){X(i)&&(T(i),i=Fe(e),b(i));const u=r?n:o,c=r?o:n;Me(i,t,{_chunkSteps:t=>{y((()=>{l=!1;const o=r?d:s;if(r?s:d)o||ke(u._readableStreamController,t);else{let r;try{r=le(t)}catch(t){return Ee(u._readableStreamController,t),Ee(c._readableStreamController,t),void a(dr(e,t))}o||ke(u._readableStreamController,t),Pe(c._readableStreamController,r)}}))},_closeSteps:e=>{l=!1;const t=r?d:s,o=r?s:d;t||qe(u._readableStreamController),o||qe(c._readableStreamController),void 0!==e&&(t||ke(u._readableStreamController,e),!o&&c._readableStreamController._pendingPullIntos.length>0&&Be(c._readableStreamController,0)),t&&o||a(void 0)},_errorSteps:()=>{l=!1}})}function p(){if(l)return c(void 0);l=!0;const e=We(o._readableStreamController);return null===e?_():m(e._view,!1),c(void 0)}function g(){if(l)return c(void 0);l=!0;const e=We(n._readableStreamController);return null===e?_():m(e._view,!0),c(void 0)}function S(o){if(s=!0,t=o,d){const o=ne([t,r]),n=dr(e,o);a(n)}return f}function v(o){if(d=!0,r=o,s){const o=ne([t,r]),n=dr(e,o);a(n)}return f}function w(){}return o=lr(w,p,S),n=lr(w,g,v),b(i),[o,n]}(e):function(e,t){const r=N(e);let o,n,a,i,l,s=!1,d=!1,f=!1;const b=u((e=>{l=e}));function _(){if(s)return c(void 0);s=!0;return J(r,{_chunkSteps:e=>{y((()=>{s=!1;const t=e,r=e;d||Vt(a._readableStreamController,t),f||Vt(i._readableStreamController,r)}))},_closeSteps:()=>{s=!1,d||Ht(a._readableStreamController),f||Ht(i._readableStreamController),d&&f||l(void 0)},_errorSteps:()=>{s=!1}}),c(void 0)}function m(t){if(d=!0,o=t,f){const t=ne([o,n]),r=dr(e,t);l(r)}return b}function p(t){if(f=!0,n=t,d){const t=ne([o,n]),r=dr(e,t);l(r)}return b}function g(){}return a=ir(g,_,m),i=ir(g,_,p),h(r._closedPromise,(e=>{Ut(a._readableStreamController,e),Ut(i._readableStreamController,e),d&&f||l(void 0)})),[a,i]}(e)}function er(e,t,r){return I(e,r),r=>S(e,t,[r])}function tr(e,t,r){return I(e,r),r=>S(e,t,[r])}function rr(e,t,r){return I(e,r),r=>g(e,t,[r])}function or(e,t){if(\"bytes\"!==(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function nr(e,t){if(\"byob\"!==(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function ar(e,t){F(e,t);const r=null==e?void 0:e.preventAbort,o=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,a=null==e?void 0:e.signal;return void 0!==a&&function(e,t){if(!function(e){if(\"object\"!=typeof e||null===e)return!1;try{return\"boolean\"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(a,`${t} has member 'signal' that`),{preventAbort:Boolean(r),preventCancel:Boolean(o),preventClose:Boolean(n),signal:a}}Object.defineProperties(ReadableStreamDefaultController.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ReadableStreamDefaultController.prototype,t.toStringTag,{value:\"ReadableStreamDefaultController\",configurable:!0});class ReadableStream{constructor(e={},t={}){void 0===e?e=null:L(e,\"First parameter\");const r=Ne(t,\"Second parameter\"),o=function(e,t){F(e,t);const r=e,o=null==r?void 0:r.autoAllocateChunkSize,n=null==r?void 0:r.cancel,a=null==r?void 0:r.pull,i=null==r?void 0:r.start,l=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===o?void 0:Y(o,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:er(n,r,`${t} has member 'cancel' that`),pull:void 0===a?void 0:tr(a,r,`${t} has member 'pull' that`),start:void 0===i?void 0:rr(i,r,`${t} has member 'start' that`),type:void 0===l?void 0:or(l,`${t} has member 'type' that`)}}(e,\"First parameter\");if(sr(this),\"bytes\"===o.type){if(void 0!==r.size)throw new RangeError(\"The strategy for a byte stream cannot have a size function\");!function(e,t,r){const o=Object.create(ReadableByteStreamController.prototype);let n=()=>{},a=()=>c(void 0),i=()=>c(void 0);void 0!==t.start&&(n=()=>t.start(o)),void 0!==t.pull&&(a=()=>t.pull(o)),void 0!==t.cancel&&(i=e=>t.cancel(e));const l=t.autoAllocateChunkSize;if(0===l)throw new TypeError(\"autoAllocateChunkSize must be greater than 0\");je(e,o,n,a,i,r,l)}(this,o,Ye(r,0))}else{const e=xe(r);!function(e,t,r,o){const n=Object.create(ReadableStreamDefaultController.prototype);let a=()=>{},i=()=>c(void 0),l=()=>c(void 0);void 0!==t.start&&(a=()=>t.start(n)),void 0!==t.pull&&(i=()=>t.pull(n)),void 0!==t.cancel&&(l=e=>t.cancel(e)),Jt(e,n,a,i,l,r,o)}(this,o,Ye(r,1),e)}}get locked(){if(!ur(this))throw _r(\"locked\");return cr(this)}cancel(e){return ur(this)?cr(this)?d(new TypeError(\"Cannot cancel a stream that already has a reader\")):dr(this,e):d(_r(\"cancel\"))}getReader(e){if(!ur(this))throw _r(\"getReader\");return void 0===function(e,t){F(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:nr(r,`${t} has member 'mode' that`)}}(e,\"First parameter\").mode?N(this):Fe(this)}pipeThrough(e,t={}){if(!ur(this))throw _r(\"pipeThrough\");D(e,1,\"pipeThrough\");const r=function(e,t){F(e,t);const r=null==e?void 0:e.readable;$(r,\"readable\",\"ReadableWritablePair\"),x(r,`${t} has member 'readable' that`);const o=null==e?void 0:e.writable;return $(o,\"writable\",\"ReadableWritablePair\"),Je(o,`${t} has member 'writable' that`),{readable:r,writable:o}}(e,\"First parameter\"),o=ar(t,\"Second parameter\");if(cr(this))throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream\");if(rt(r.writable))throw new TypeError(\"ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream\");return p(Mt(this,r.writable,o.preventClose,o.preventAbort,o.preventCancel,o.signal)),r.readable}pipeTo(e,t={}){if(!ur(this))return d(_r(\"pipeTo\"));if(void 0===e)return d(\"Parameter 1 is required in 'pipeTo'.\");if(!tt(e))return d(new TypeError(\"ReadableStream.prototype.pipeTo's first argument must be a WritableStream\"));let r;try{r=ar(t,\"Second parameter\")}catch(e){return d(e)}return cr(this)?d(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream\")):rt(e)?d(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream\")):Mt(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!ur(this))throw _r(\"tee\");return ne(Zt(this))}values(e){if(!ur(this))throw _r(\"values\");return function(e,t){const r=N(e),o=new Z(r,t),n=Object.create(ee);return n._asyncIteratorImpl=o,n}(this,function(e,t){F(e,t);const r=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(r)}}(e,\"First parameter\").preventCancel)}}function ir(e,t,r,o=1,n=(()=>1)){const a=Object.create(ReadableStream.prototype);sr(a);return Jt(a,Object.create(ReadableStreamDefaultController.prototype),e,t,r,o,n),a}function lr(e,t,r){const o=Object.create(ReadableStream.prototype);sr(o);return je(o,Object.create(ReadableByteStreamController.prototype),e,t,r,0,void 0),o}function sr(e){e._state=\"readable\",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function ur(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_readableStreamController\")&&e instanceof ReadableStream)}function cr(e){return void 0!==e._reader}function dr(e,t){if(e._disturbed=!0,\"closed\"===e._state)return c(void 0);if(\"errored\"===e._state)return d(e._storedError);fr(e);const o=e._reader;void 0!==o&&$e(o)&&(o._readIntoRequests.forEach((e=>{e._closeSteps(void 0)})),o._readIntoRequests=new v);return m(e._readableStreamController[k](t),r)}function fr(e){e._state=\"closed\";const t=e._reader;void 0!==t&&(W(t),X(t)&&(t._readRequests.forEach((e=>{e._closeSteps()})),t._readRequests=new v))}function br(e,t){e._state=\"errored\",e._storedError=t;const r=e._reader;void 0!==r&&(E(r,t),X(r)?(r._readRequests.forEach((e=>{e._errorSteps(t)})),r._readRequests=new v):(r._readIntoRequests.forEach((e=>{e._errorSteps(t)})),r._readIntoRequests=new v))}function _r(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function hr(e,t){F(e,t);const r=null==e?void 0:e.highWaterMark;return $(r,\"highWaterMark\",\"QueuingStrategyInit\"),{highWaterMark:M(r)}}Object.defineProperties(ReadableStream.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ReadableStream.prototype,t.toStringTag,{value:\"ReadableStream\",configurable:!0}),\"symbol\"==typeof t.asyncIterator&&Object.defineProperty(ReadableStream.prototype,t.asyncIterator,{value:ReadableStream.prototype.values,writable:!0,configurable:!0});const mr=e=>e.byteLength;Object.defineProperty(mr,\"name\",{value:\"size\",configurable:!0});class ByteLengthQueuingStrategy{constructor(e){D(e,1,\"ByteLengthQueuingStrategy\"),e=hr(e,\"First parameter\"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!yr(this))throw pr(\"highWaterMark\");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!yr(this))throw pr(\"size\");return mr}}function pr(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function yr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_byteLengthQueuingStrategyHighWaterMark\")&&e instanceof ByteLengthQueuingStrategy)}Object.defineProperties(ByteLengthQueuingStrategy.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(ByteLengthQueuingStrategy.prototype,t.toStringTag,{value:\"ByteLengthQueuingStrategy\",configurable:!0});const gr=()=>1;Object.defineProperty(gr,\"name\",{value:\"size\",configurable:!0});class CountQueuingStrategy{constructor(e){D(e,1,\"CountQueuingStrategy\"),e=hr(e,\"First parameter\"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!vr(this))throw Sr(\"highWaterMark\");return this._countQueuingStrategyHighWaterMark}get size(){if(!vr(this))throw Sr(\"size\");return gr}}function Sr(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function vr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_countQueuingStrategyHighWaterMark\")&&e instanceof CountQueuingStrategy)}function wr(e,t,r){return I(e,r),r=>S(e,t,[r])}function Rr(e,t,r){return I(e,r),r=>g(e,t,[r])}function Tr(e,t,r){return I(e,r),(r,o)=>S(e,t,[r,o])}Object.defineProperties(CountQueuingStrategy.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(CountQueuingStrategy.prototype,t.toStringTag,{value:\"CountQueuingStrategy\",configurable:!0});class TransformStream{constructor(e={},t={},r={}){void 0===e&&(e=null);const o=Ne(t,\"Second parameter\"),n=Ne(r,\"Third parameter\"),a=function(e,t){F(e,t);const r=null==e?void 0:e.flush,o=null==e?void 0:e.readableType,n=null==e?void 0:e.start,a=null==e?void 0:e.transform,i=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:wr(r,e,`${t} has member 'flush' that`),readableType:o,start:void 0===n?void 0:Rr(n,e,`${t} has member 'start' that`),transform:void 0===a?void 0:Tr(a,e,`${t} has member 'transform' that`),writableType:i}}(e,\"First parameter\");if(void 0!==a.readableType)throw new RangeError(\"Invalid readableType specified\");if(void 0!==a.writableType)throw new RangeError(\"Invalid writableType specified\");const i=Ye(n,0),l=xe(n),s=Ye(o,1),f=xe(o);let b;!function(e,t,r,o,n,a){function i(){return t}function l(t){return function(e,t){const r=e._transformStreamController;if(e._backpressure){return m(e._backpressureChangePromise,(()=>{const o=e._writable;if(\"erroring\"===o._state)throw o._storedError;return kr(r,t)}))}return kr(r,t)}(e,t)}function s(t){return function(e,t){return qr(e,t),c(void 0)}(e,t)}function u(){return function(e){const t=e._readable,r=e._transformStreamController,o=r._flushAlgorithm();return Or(r),m(o,(()=>{if(\"errored\"===t._state)throw t._storedError;Ht(t._readableStreamController)}),(r=>{throw qr(e,r),t._storedError}))}(e)}function d(){return function(e){return Er(e,!1),e._backpressureChangePromise}(e)}function f(t){return Pr(e,t),c(void 0)}e._writable=function(e,t,r,o,n=1,a=(()=>1)){const i=Object.create(WritableStream.prototype);return et(i),gt(i,Object.create(WritableStreamDefaultController.prototype),e,t,r,o,n,a),i}(i,l,u,s,r,o),e._readable=ir(i,d,f,n,a),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Er(e,!0),e._transformStreamController=void 0}(this,u((e=>{b=e})),s,f,i,l),function(e,t){const r=Object.create(TransformStreamDefaultController.prototype);let o=e=>{try{return Br(r,e),c(void 0)}catch(e){return d(e)}},n=()=>c(void 0);void 0!==t.transform&&(o=e=>t.transform(e,r));void 0!==t.flush&&(n=()=>t.flush(r));!function(e,t,r,o){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=o}(e,r,o,n)}(this,a),void 0!==a.start?b(a.start(this._transformStreamController)):b(void 0)}get readable(){if(!Cr(this))throw Ar(\"readable\");return this._readable}get writable(){if(!Cr(this))throw Ar(\"writable\");return this._writable}}function Cr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_transformStreamController\")&&e instanceof TransformStream)}function qr(e,t){Ut(e._readable._readableStreamController,t),Pr(e,t)}function Pr(e,t){Or(e._transformStreamController),Rt(e._writable._writableStreamController,t),e._backpressure&&Er(e,!1)}function Er(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u((t=>{e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(TransformStream.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(TransformStream.prototype,t.toStringTag,{value:\"TransformStream\",configurable:!0});class TransformStreamDefaultController{constructor(){throw new TypeError(\"Illegal constructor\")}get desiredSize(){if(!Wr(this))throw jr(\"desiredSize\");return Gt(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!Wr(this))throw jr(\"enqueue\");Br(this,e)}error(e){if(!Wr(this))throw jr(\"error\");var t;t=e,qr(this._controlledTransformStream,t)}terminate(){if(!Wr(this))throw jr(\"terminate\");!function(e){const t=e._controlledTransformStream;Ht(t._readable._readableStreamController);const r=new TypeError(\"TransformStream terminated\");Pr(t,r)}(this)}}function Wr(e){return!!o(e)&&(!!Object.prototype.hasOwnProperty.call(e,\"_controlledTransformStream\")&&e instanceof TransformStreamDefaultController)}function Or(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Br(e,t){const r=e._controlledTransformStream,o=r._readable._readableStreamController;if(!Xt(o))throw new TypeError(\"Readable side is not in a state that permits enqueue\");try{Vt(o,t)}catch(e){throw Pr(r,e),r._readable._storedError}(function(e){return!xt(e)})(o)!==r._backpressure&&Er(r,!0)}function kr(e,t){return m(e._transformAlgorithm(t),void 0,(t=>{throw qr(e._controlledTransformStream,t),t}))}function jr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function Ar(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(TransformStreamDefaultController.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),\"symbol\"==typeof t.toStringTag&&Object.defineProperty(TransformStreamDefaultController.prototype,t.toStringTag,{value:\"TransformStreamDefaultController\",configurable:!0}),e.ByteLengthQueuingStrategy=ByteLengthQueuingStrategy,e.CountQueuingStrategy=CountQueuingStrategy,e.ReadableByteStreamController=ReadableByteStreamController,e.ReadableStream=ReadableStream,e.ReadableStreamBYOBReader=ReadableStreamBYOBReader,e.ReadableStreamBYOBRequest=ReadableStreamBYOBRequest,e.ReadableStreamDefaultController=ReadableStreamDefaultController,e.ReadableStreamDefaultReader=ReadableStreamDefaultReader,e.TransformStream=TransformStream,e.TransformStreamDefaultController=TransformStreamDefaultController,e.WritableStream=WritableStream,e.WritableStreamDefaultController=WritableStreamDefaultController,e.WritableStreamDefaultWriter=WritableStreamDefaultWriter,Object.defineProperty(e,\"__esModule\",{value:!0})}));\n","import * as connectivity from './modules/debug/connectivity'\nimport * as balance from './modules/debug/balance'\nimport * as chequebook from './modules/debug/chequebook'\nimport * as settlements from './modules/debug/settlements'\nimport * as status from './modules/debug/status'\nimport * as transactions from './modules/debug/transactions'\nimport * as states from './modules/debug/states'\nimport type {\n Address,\n Peer,\n BalanceResponse,\n PeerBalance,\n ChequebookAddressResponse,\n ChequebookBalanceResponse,\n LastChequesResponse,\n LastChequesForPeerResponse,\n LastCashoutActionResponse,\n Settlements,\n AllSettlements,\n RemovePeerResponse,\n Topology,\n PingResponse,\n Health,\n NodeAddresses,\n ReserveState,\n ChainState,\n NumberString,\n ExtendedTag,\n PostageBatchBuckets,\n PostageBatch,\n Ky,\n TransactionInfo,\n TransactionHash,\n NodeInfo,\n BeeVersions,\n WalletBalance,\n} from './types'\nimport { BeeArgumentError, BeeError } from './utils/error'\nimport { assertBeeUrl, stripLastSlash } from './utils/url'\nimport {\n assertAddress,\n assertBatchId,\n assertCashoutOptions,\n assertNonNegativeInteger,\n assertPositiveInteger,\n assertPostageBatchOptions,\n assertRequestOptions,\n assertTransactionHash,\n isTag,\n} from './utils/type'\nimport {\n BatchId,\n BeeOptions,\n CashoutOptions,\n PostageBatchOptions,\n RequestOptions,\n STAMPS_DEPTH_MAX,\n STAMPS_DEPTH_MIN,\n Tag,\n} from './types'\nimport * as tag from './modules/debug/tag'\nimport * as stamps from './modules/debug/stamps'\nimport type { Options as KyOptions } from 'ky-universal'\nimport { makeDefaultKy, wrapRequestClosure, wrapResponseClosure } from './utils/http'\nimport { sleep } from './utils/sleep'\n\nexport class BeeDebug {\n /**\n * URL on which is the Debug API of Bee node exposed\n */\n public readonly url: string\n\n /**\n * Ky instance that defines connection to Bee node\n * @private\n */\n private readonly ky: Ky\n\n constructor(url: string, options?: BeeOptions) {\n assertBeeUrl(url)\n\n // Remove last slash if present, as our endpoint strings starts with `/...`\n // which could lead to double slash in URL to which Bee responds with\n // unnecessary redirects.\n this.url = stripLastSlash(url)\n\n const kyOptions: KyOptions = {\n prefixUrl: this.url,\n timeout: options?.timeout ?? false,\n retry: options?.retry,\n fetch: options?.fetch,\n hooks: {\n beforeRequest: [],\n afterResponse: [],\n },\n }\n\n if (options?.defaultHeaders) {\n kyOptions.headers = options.defaultHeaders\n }\n\n if (options?.onRequest) {\n kyOptions.hooks!.beforeRequest!.push(wrapRequestClosure(options.onRequest))\n }\n\n if (options?.onResponse) {\n kyOptions.hooks!.afterResponse!.push(wrapResponseClosure(options.onResponse))\n }\n\n this.ky = makeDefaultKy(kyOptions)\n }\n\n async getNodeAddresses(options?: RequestOptions): Promise<NodeAddresses> {\n assertRequestOptions(options)\n\n return connectivity.getNodeAddresses(this.getKy(options))\n }\n\n async getBlocklist(options?: RequestOptions): Promise<Peer[]> {\n assertRequestOptions(options)\n\n return connectivity.getBlocklist(this.getKy(options))\n }\n\n /**\n * Retrieve tag extended information from Bee node\n *\n * @param tagUid UID or tag object to be retrieved\n * @throws TypeError if tagUid is in not correct format\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @see [Bee API reference - `GET /tags/{uid}`](https://docs.ethswarm.org/debug-api/#tag/Tag)\n *\n */\n async retrieveExtendedTag(tagUid: number | Tag, options?: RequestOptions): Promise<ExtendedTag> {\n assertRequestOptions(options)\n\n if (isTag(tagUid)) {\n tagUid = tagUid.uid\n } else if (typeof tagUid === 'number') {\n assertNonNegativeInteger(tagUid, 'UID')\n } else {\n throw new TypeError('tagUid has to be either Tag or a number (UID)!')\n }\n\n return tag.retrieveExtendedTag(this.getKy(options), tagUid)\n }\n\n /**\n * Get list of peers for this node\n */\n async getPeers(options?: RequestOptions): Promise<Peer[]> {\n assertRequestOptions(options)\n\n return connectivity.getPeers(this.getKy(options))\n }\n\n async removePeer(peer: string | Address, options?: RequestOptions): Promise<RemovePeerResponse> {\n assertRequestOptions(options)\n assertAddress(peer)\n\n return connectivity.removePeer(this.getKy(options), peer)\n }\n\n async getTopology(options?: RequestOptions): Promise<Topology> {\n assertRequestOptions(options)\n\n return connectivity.getTopology(this.getKy(options))\n }\n\n async pingPeer(peer: string | Address, options?: RequestOptions): Promise<PingResponse> {\n assertRequestOptions(options)\n assertAddress(peer)\n\n return connectivity.pingPeer(this.getKy(options), peer)\n }\n\n /*\n * Balance endpoints\n */\n\n /**\n * Get the balances with all known peers including prepaid services\n */\n async getAllBalances(options?: RequestOptions): Promise<BalanceResponse> {\n assertRequestOptions(options)\n\n return balance.getAllBalances(this.getKy(options))\n }\n\n /**\n * Get the balances with a specific peer including prepaid services\n *\n * @param address Swarm address of peer\n */\n async getPeerBalance(address: Address | string, options?: RequestOptions): Promise<PeerBalance> {\n assertRequestOptions(options)\n assertAddress(address)\n\n return balance.getPeerBalance(this.getKy(options), address)\n }\n\n /**\n * Get the past due consumption balances with all known peers\n */\n async getPastDueConsumptionBalances(options?: RequestOptions): Promise<BalanceResponse> {\n assertRequestOptions(options)\n\n return balance.getPastDueConsumptionBalances(this.getKy(options))\n }\n\n /**\n * Get the past due consumption balance with a specific peer\n *\n * @param address Swarm address of peer\n */\n async getPastDueConsumptionPeerBalance(address: Address | string, options?: RequestOptions): Promise<PeerBalance> {\n assertRequestOptions(options)\n assertAddress(address)\n\n return balance.getPastDueConsumptionPeerBalance(this.getKy(options), address)\n }\n\n /*\n * Chequebook endpoints\n */\n\n /**\n * Get the address of the chequebook contract used.\n *\n * **Warning:** The address is returned with 0x prefix unlike all other calls.\n * https://github.com/ethersphere/bee/issues/1443\n */\n async getChequebookAddress(options?: RequestOptions): Promise<ChequebookAddressResponse> {\n assertRequestOptions(options)\n\n return chequebook.getChequebookAddress(this.getKy(options))\n }\n\n /**\n * Get the balance of the chequebook\n */\n async getChequebookBalance(options?: RequestOptions): Promise<ChequebookBalanceResponse> {\n assertRequestOptions(options)\n\n return chequebook.getChequebookBalance(this.getKy(options))\n }\n\n /**\n * Get last cheques for all peers\n */\n async getLastCheques(options?: RequestOptions): Promise<LastChequesResponse> {\n assertRequestOptions(options)\n\n return chequebook.getLastCheques(this.getKy(options))\n }\n\n /**\n * Get last cheques for the peer\n *\n * @param address Swarm address of peer\n */\n async getLastChequesForPeer(\n address: Address | string,\n options?: RequestOptions,\n ): Promise<LastChequesForPeerResponse> {\n assertRequestOptions(options)\n assertAddress(address)\n\n return chequebook.getLastChequesForPeer(this.getKy(options), address)\n }\n\n /**\n * Get last cashout action for the peer\n *\n * @param address Swarm address of peer\n */\n async getLastCashoutAction(address: Address | string, options?: RequestOptions): Promise<LastCashoutActionResponse> {\n assertRequestOptions(options)\n assertAddress(address)\n\n return chequebook.getLastCashoutAction(this.getKy(options), address)\n }\n\n /**\n * Cashout the last cheque for the peer\n *\n * @param address Swarm address of peer\n * @param options\n * @param options.gasPrice Gas price for the cashout transaction in WEI\n * @param options.gasLimit Gas limit for the cashout transaction in WEI\n */\n async cashoutLastCheque(address: string | Address, options?: CashoutOptions): Promise<string> {\n assertCashoutOptions(options)\n assertAddress(address)\n\n return chequebook.cashoutLastCheque(this.getKy(options), address, options)\n }\n\n /**\n * Deposit tokens from overlay address into chequebook\n *\n * @param amount Amount of tokens to deposit (must be positive integer)\n * @param gasPrice Gas Price in WEI for the transaction call\n * @return string Hash of the transaction\n */\n async depositTokens(\n amount: number | NumberString,\n gasPrice?: NumberString,\n options?: RequestOptions,\n ): Promise<string> {\n assertRequestOptions(options)\n assertNonNegativeInteger(amount)\n\n if (gasPrice) {\n assertNonNegativeInteger(gasPrice)\n }\n\n return chequebook.depositTokens(this.getKy(options), amount, gasPrice)\n }\n\n /**\n * Withdraw tokens from the chequebook to the overlay address\n *\n * @param amount Amount of tokens to withdraw (must be positive integer)\n * @param gasPrice Gas Price in WEI for the transaction call\n * @return string Hash of the transaction\n */\n async withdrawTokens(\n amount: number | NumberString,\n gasPrice?: NumberString,\n options?: RequestOptions,\n ): Promise<string> {\n assertRequestOptions(options)\n assertNonNegativeInteger(amount)\n\n if (gasPrice) {\n assertNonNegativeInteger(gasPrice)\n }\n\n return chequebook.withdrawTokens(this.getKy(options), amount, gasPrice)\n }\n\n /*\n * Settlements endpoint\n */\n\n /**\n * Get amount of sent and received from settlements with a peer\n *\n * @param address Swarm address of peer\n */\n async getSettlements(address: Address | string, options?: RequestOptions): Promise<Settlements> {\n assertRequestOptions(options)\n assertAddress(address)\n\n return settlements.getSettlements(this.getKy(options), address)\n }\n\n /**\n * Get settlements with all known peers and total amount sent or received\n */\n async getAllSettlements(options?: RequestOptions): Promise<AllSettlements> {\n assertRequestOptions(options)\n\n return settlements.getAllSettlements(this.getKy(options))\n }\n\n /**\n * Get health of node\n */\n async getHealth(options?: RequestOptions): Promise<Health> {\n assertRequestOptions(options)\n\n return status.getHealth(this.getKy(options))\n }\n\n /**\n * Get mode information of node\n */\n async getNodeInfo(options?: RequestOptions): Promise<NodeInfo> {\n assertRequestOptions(options)\n\n return status.getNodeInfo(this.getKy(options))\n }\n\n /**\n * Connnects to a node and checks if it is a supported Bee version by the bee-js\n *\n * @returns true if the Bee node version is supported\n * @deprecated Use `BeeDebug.isSupportedExactVersion()` instead\n */\n async isSupportedVersion(options?: RequestOptions): Promise<boolean> | never {\n assertRequestOptions(options)\n\n return status.isSupportedVersion(this.getKy(options))\n }\n\n /**\n * Connects to a node and checks if its version matches with the one that bee-js supports.\n *\n * Be aware that this is the most strict version check and most probably\n * you will want to use more relaxed API-versions based checks like\n * `BeeDebug.isSupportedApiVersion()`, `BeeDebug.isSupportedMainApiVersion()` or `BeeDebug.isSupportedDebugApiVersion()`\n * based on your use-case.\n *\n * @param options\n */\n async isSupportedExactVersion(options?: RequestOptions): Promise<boolean> | never {\n assertRequestOptions(options)\n\n return status.isSupportedExactVersion(this.getKy(options))\n }\n\n /**\n * Connects to a node and checks if its main's API version matches with the one that bee-js supports.\n *\n * This is useful if you are not using `BeeDebug` class (for anything else then this check)\n * and want to make sure about compatibility.\n *\n * @param options\n */\n async isSupportedMainApiVersion(options?: RequestOptions): Promise<boolean> | never {\n assertRequestOptions(options)\n\n return status.isSupportedMainApiVersion(this.getKy(options))\n }\n\n /**\n * Connects to a node and checks if its Debug API version matches with the one that bee-js supports.\n *\n * This is useful if you are not using `Bee` class in your application and want to make sure\n * about compatibility.\n *\n * @param options\n */\n async isSupportedDebugApiVersion(options?: RequestOptions): Promise<boolean> | never {\n assertRequestOptions(options)\n\n return status.isSupportedDebugApiVersion(this.getKy(options))\n }\n\n /**\n *\n * Connects to a node and checks if its Main and Debug API versions matches with the one that bee-js supports.\n *\n * This should be the main way how to check compatibility for your app and Bee node.\n *\n * @param options\n */\n async isSupportedApiVersion(options?: RequestOptions): Promise<boolean> | never {\n assertRequestOptions(options)\n\n return status.isSupportedDebugApiVersion(this.getKy(options))\n }\n\n /**\n * Returns object with all versions specified by the connected Bee node (properties prefixed with `bee*`)\n * and versions that bee-js supports (properties prefixed with `supported*`).\n *\n * @param options\n */\n async getVersions(options?: RequestOptions): Promise<BeeVersions> | never {\n assertRequestOptions(options)\n\n return status.getVersions(this.getKy(options))\n }\n\n /**\n * Get reserve state\n */\n async getReserveState(options?: RequestOptions): Promise<ReserveState> {\n assertRequestOptions(options)\n\n return states.getReserveState(this.getKy(options))\n }\n\n /**\n * Get chain state\n */\n async getChainState(options?: RequestOptions): Promise<ChainState> {\n assertRequestOptions(options)\n\n return states.getChainState(this.getKy(options))\n }\n\n /**\n * Get wallet balances for xDai and BZZ of the Bee node\n *\n * @param options\n */\n async getWalletBalance(options?: RequestOptions): Promise<WalletBalance> {\n assertRequestOptions(options)\n\n return states.getWalletBalance(this.getKy(options))\n }\n\n /**\n * Creates new postage batch from the funds that the node has available in its Ethereum account.\n *\n * For better understanding what each parameter means and what are the optimal values please see\n * [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive).\n *\n * **WARNING: THIS CREATES TRANSACTIONS THAT SPENDS MONEY**\n *\n * @param amount Amount that represents the value per chunk, has to be greater or equal zero.\n * @param depth Logarithm of the number of chunks that can be stamped with the batch.\n * @param options Options for creation of postage batch\n * @throws BeeArgumentError when negative amount or depth is specified\n * @throws TypeError if non-integer value is passed to amount or depth\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee Debug API reference - `POST /stamps`](https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps~1{amount}~1{depth}/post)\n */\n async createPostageBatch(amount: NumberString, depth: number, options?: PostageBatchOptions): Promise<BatchId> {\n assertPostageBatchOptions(options)\n assertPositiveInteger(amount)\n assertNonNegativeInteger(depth)\n\n if (depth < STAMPS_DEPTH_MIN) {\n throw new BeeArgumentError(`Depth has to be at least ${STAMPS_DEPTH_MIN}`, depth)\n }\n\n if (depth > STAMPS_DEPTH_MAX) {\n throw new BeeArgumentError(`Depth has to be at most ${STAMPS_DEPTH_MAX}`, depth)\n }\n\n const stamp = await stamps.createPostageBatch(this.getKy(options), amount, depth, options)\n\n if (options?.waitForUsable) {\n await this.waitForUsablePostageStamp(stamp, options?.waitForUsableTimeout)\n }\n\n return stamp\n }\n\n /**\n * Topup a fresh amount of BZZ to given Postage Batch.\n *\n * For better understanding what each parameter means and what are the optimal values please see\n * [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive).\n *\n * **WARNING: THIS CREATES TRANSACTIONS THAT SPENDS MONEY**\n *\n * @param postageBatchId Batch ID\n * @param amount Amount to be added to the batch\n * @param options Request options\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee Debug API reference - `PATCH /stamps/topup/${id}/${amount}`](https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps~1topup~1{id}~1{amount}/patch)\n */\n async topUpBatch(postageBatchId: BatchId | string, amount: NumberString, options?: RequestOptions): Promise<void> {\n assertRequestOptions(options)\n assertNonNegativeInteger(amount, 'Amount')\n assertBatchId(postageBatchId)\n\n await stamps.topUpBatch(this.getKy(options), postageBatchId, amount)\n }\n\n /**\n * Dilute given Postage Batch with new depth (that has to be bigger then the original depth), which allows\n * the Postage Batch to be used for more chunks.\n *\n * For better understanding what each parameter means and what are the optimal values please see\n * [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive).\n *\n * **WARNING: THIS CREATES TRANSACTIONS THAT SPENDS MONEY**\n *\n * @param postageBatchId Batch ID\n * @param depth Amount to be added to the batch\n * @param options Request options\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee Debug API reference - `PATCH /stamps/topup/${id}/${amount}`](https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps~1topup~1{id}~1{amount}/patch)\n */\n async diluteBatch(postageBatchId: BatchId | string, depth: number, options?: RequestOptions): Promise<void> {\n assertRequestOptions(options)\n assertNonNegativeInteger(depth, 'Depth')\n assertBatchId(postageBatchId)\n\n await stamps.diluteBatch(this.getKy(options), postageBatchId, depth)\n }\n\n /**\n * Return details for specific postage batch.\n *\n * @param postageBatchId Batch ID\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee Debug API reference - `GET /stamps/${id}`](https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps~1{id}/get)\n */\n async getPostageBatch(postageBatchId: BatchId | string, options?: RequestOptions): Promise<PostageBatch> {\n assertRequestOptions(options)\n assertBatchId(postageBatchId)\n\n return stamps.getPostageBatch(this.getKy(options), postageBatchId)\n }\n\n /**\n * Return detailed information related to buckets for specific postage batch.\n *\n * @param postageBatchId Batch ID\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee Debug API reference - `GET /stamps/${id}/buckets`](https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps~1{id}~1buckets/get)\n */\n async getPostageBatchBuckets(\n postageBatchId: BatchId | string,\n options?: RequestOptions,\n ): Promise<PostageBatchBuckets> {\n assertRequestOptions(options)\n assertBatchId(postageBatchId)\n\n return stamps.getPostageBatchBuckets(this.getKy(options), postageBatchId)\n }\n\n /**\n * Return all postage batches that has the node available.\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee Debug API reference - `GET /stamps`](https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps/get)\n */\n async getAllPostageBatch(options?: RequestOptions): Promise<PostageBatch[]> {\n assertRequestOptions(options)\n\n return stamps.getAllPostageBatches(this.getKy(options))\n }\n\n /**\n * Return lists of all current pending transactions that the Bee made\n */\n async getAllPendingTransactions(options?: RequestOptions): Promise<TransactionInfo[]> {\n assertRequestOptions(options)\n\n return transactions.getAllTransactions(this.getKy(options))\n }\n\n /**\n * Return transaction information for specific transaction\n * @param transactionHash\n */\n async getPendingTransaction(\n transactionHash: TransactionHash | string,\n options?: RequestOptions,\n ): Promise<TransactionInfo> {\n assertRequestOptions(options)\n assertTransactionHash(transactionHash)\n\n return transactions.getTransaction(this.getKy(options), transactionHash)\n }\n\n /**\n * Rebroadcast already created transaction.\n * This is mainly needed when your transaction fall off mempool from other reason is not incorporated into block.\n *\n * @param transactionHash\n */\n async rebroadcastPendingTransaction(\n transactionHash: TransactionHash | string,\n options?: RequestOptions,\n ): Promise<TransactionHash> {\n assertRequestOptions(options)\n assertTransactionHash(transactionHash)\n\n return transactions.rebroadcastTransaction(this.getKy(options), transactionHash)\n }\n\n /**\n * Cancel currently pending transaction\n * @param transactionHash\n * @param gasPrice\n */\n async cancelPendingTransaction(\n transactionHash: TransactionHash | string,\n gasPrice?: NumberString,\n options?: RequestOptions,\n ): Promise<TransactionHash> {\n assertRequestOptions(options)\n assertTransactionHash(transactionHash)\n\n if (gasPrice) {\n assertNonNegativeInteger(gasPrice)\n }\n\n return transactions.cancelTransaction(this.getKy(options), transactionHash, gasPrice)\n }\n\n private async waitForUsablePostageStamp(id: BatchId, timeout = 120_000): Promise<void> {\n const TIME_STEP = 1500\n for (let time = 0; time < timeout; time += TIME_STEP) {\n const stamp = await this.getPostageBatch(id)\n\n if (stamp.usable) {\n return\n }\n\n await sleep(TIME_STEP)\n }\n\n throw new BeeError('Timeout on waiting for postage stamp to become usable')\n }\n\n private getKy(options?: RequestOptions): Ky {\n if (!options) {\n return this.ky\n }\n\n return this.ky.extend(options)\n }\n}\n","import * as bzz from './modules/bzz'\nimport * as stewardship from './modules/stewardship'\nimport * as tag from './modules/tag'\nimport * as pinning from './modules/pinning'\nimport * as bytes from './modules/bytes'\nimport * as chunk from './modules/chunk'\nimport * as pss from './modules/pss'\nimport * as status from './modules/status'\n\nimport { BeeArgumentError, BeeError, BeeResponseError } from './utils/error'\nimport { prepareWebsocketData } from './utils/data'\nimport { fileArrayBuffer, isFile } from './utils/file'\nimport { Index, IndexBytes, makeFeedReader, makeFeedWriter } from './feed'\nimport { makeSigner } from './chunk/signer'\nimport { assertFeedType, DEFAULT_FEED_TYPE, FeedType } from './feed/type'\nimport { downloadSingleOwnerChunk, uploadSingleOwnerChunkData } from './chunk/soc'\nimport { makeTopic, makeTopicFromString } from './feed/topic'\nimport { createFeedManifest } from './modules/feed'\nimport { assertBeeUrl, stripLastSlash } from './utils/url'\nimport { EthAddress, makeEthAddress, makeHexEthAddress } from './utils/eth'\nimport { wrapBytesWithHelpers } from './utils/bytes'\nimport {\n addCidConversionFunction,\n assertAddressPrefix,\n assertAllTagsOptions,\n assertBatchId,\n assertCollectionUploadOptions,\n assertData,\n assertFileData,\n assertFileUploadOptions,\n assertPssMessageHandler,\n assertPublicKey,\n assertReference,\n assertReferenceOrEns,\n assertRequestOptions,\n assertUploadOptions,\n makeReferenceOrEns,\n makeTagUid,\n} from './utils/type'\nimport { getJsonData, setJsonData } from './feed/json'\nimport { assertCollection, makeCollectionFromFileList } from './utils/collection'\nimport { makeCollectionFromFS } from './utils/collection.node'\nimport type {\n AddressPrefix,\n AnyJson,\n BatchId,\n BeeOptions,\n CollectionUploadOptions,\n Data,\n FeedReader,\n FeedWriter,\n FileData,\n FileUploadOptions,\n JsonFeedOptions,\n Pin,\n PssMessageHandler,\n PssSubscription,\n PublicKey,\n Reference,\n Signer,\n SOCReader,\n SOCWriter,\n Tag,\n Topic,\n UploadOptions,\n UploadResultWithCid,\n} from './types'\nimport {\n AllTagsOptions,\n CHUNK_SIZE,\n Collection,\n Ky,\n Readable,\n ReferenceCidOrEns,\n ReferenceOrEns,\n RequestOptions,\n SPAN_SIZE,\n UploadResult,\n} from './types'\n\nimport type { Options as KyOptions } from 'ky-universal'\nimport { makeDefaultKy, wrapRequestClosure, wrapResponseClosure } from './utils/http'\nimport { isReadable } from './utils/stream'\nimport { areAllSequentialFeedsUpdateRetrievable } from './feed/retrievable'\nimport { ReferenceType } from '@ethersphere/swarm-cid'\n\n/**\n * The main component that abstracts operations available on the main Bee API.\n *\n * Not all methods are always available as it depends in what mode is Bee node launched in.\n * For example gateway mode and light node mode has only limited set of endpoints enabled.\n */\nexport class Bee {\n /**\n * URL on which is the main API of Bee node exposed\n */\n public readonly url: string\n\n /**\n * Default Signer object used for signing operations, mainly Feeds.\n */\n public readonly signer?: Signer\n\n /**\n * Ky instance that defines connection to Bee node\n * @private\n */\n private readonly ky: Ky\n\n /**\n * @param url URL on which is the main API of Bee node exposed\n * @param options\n */\n constructor(url: string, options?: BeeOptions) {\n assertBeeUrl(url)\n\n // Remove last slash if present, as our endpoint strings starts with `/...`\n // which could lead to double slash in URL to which Bee responds with\n // unnecessary redirects.\n this.url = stripLastSlash(url)\n\n if (options?.signer) {\n this.signer = makeSigner(options.signer)\n }\n\n const kyOptions: KyOptions = {\n prefixUrl: this.url,\n timeout: options?.timeout ?? false,\n retry: options?.retry,\n fetch: options?.fetch,\n hooks: {\n beforeRequest: [],\n afterResponse: [],\n },\n }\n\n if (options?.defaultHeaders) {\n kyOptions.headers = options.defaultHeaders\n }\n\n if (options?.onRequest) {\n kyOptions.hooks!.beforeRequest!.push(wrapRequestClosure(options.onRequest))\n }\n\n if (options?.onResponse) {\n kyOptions.hooks!.afterResponse!.push(wrapResponseClosure(options.onResponse))\n }\n\n this.ky = makeDefaultKy(kyOptions)\n }\n\n /**\n * Upload data to a Bee node\n *\n * @param postageBatchId Postage BatchId to be used to upload the data with\n * @param data Data to be uploaded\n * @param options Additional options like tag, encryption, pinning, content-type and request options\n *\n * @returns reference is a content hash of the data\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `POST /bytes`](https://docs.ethswarm.org/api/#tag/Bytes/paths/~1bytes/post)\n */\n async uploadData(\n postageBatchId: string | BatchId,\n data: string | Uint8Array,\n options?: UploadOptions,\n ): Promise<UploadResult> {\n assertBatchId(postageBatchId)\n assertData(data)\n\n if (options) assertUploadOptions(options)\n\n return bytes.upload(this.getKy(options), data, postageBatchId, options)\n }\n\n /**\n * Download data as a byte array\n *\n * @param reference Bee data reference in hex string (either 64 or 128 chars long) or ENS domain.\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `GET /bytes`](https://docs.ethswarm.org/api/#tag/Bytes/paths/~1bytes~1{reference}/get)\n */\n async downloadData(reference: ReferenceOrEns | string, options?: RequestOptions): Promise<Data> {\n assertRequestOptions(options)\n assertReferenceOrEns(reference)\n\n return bytes.download(this.getKy(options), reference)\n }\n\n /**\n * Download data as a Readable stream\n *\n * @param reference Bee data reference in hex string (either 64 or 128 chars long) or ENS domain.\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `GET /bytes`](https://docs.ethswarm.org/api/#tag/Bytes/paths/~1bytes~1{reference}/get)\n */\n async downloadReadableData(\n reference: ReferenceOrEns | string,\n options?: RequestOptions,\n ): Promise<ReadableStream<Uint8Array>> {\n assertRequestOptions(options)\n assertReferenceOrEns(reference)\n\n return bytes.downloadReadable(this.getKy(options), reference)\n }\n\n /**\n * Upload chunk to a Bee node\n *\n * @param postageBatchId Postage BatchId to be used to upload the chunk with\n * @param data Raw chunk to be uploaded\n * @param options Additional options like tag, encryption, pinning, content-type and request options\n *\n * @returns reference is a content hash of the data\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `POST /chunks`](https://docs.ethswarm.org/api/#tag/Chunk/paths/~1chunks/post)\n */\n async uploadChunk(postageBatchId: string | BatchId, data: Uint8Array, options?: UploadOptions): Promise<Reference> {\n assertBatchId(postageBatchId)\n\n if (!(data instanceof Uint8Array)) {\n throw new TypeError('Data has to be Uint8Array instance!')\n }\n\n if (data.length < SPAN_SIZE) {\n throw new BeeArgumentError(`Chunk has to have size of at least ${SPAN_SIZE}.`, data)\n }\n\n if (data.length > CHUNK_SIZE + SPAN_SIZE) {\n throw new BeeArgumentError(`Chunk has to have size of at most ${CHUNK_SIZE}.`, data)\n }\n\n if (options) assertUploadOptions(options)\n\n return chunk.upload(this.getKy(options), data, postageBatchId, options)\n }\n\n /**\n * Download chunk as a byte array\n *\n * @param reference Bee chunk reference in hex string (either 64 or 128 chars long) or ENS domain.\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `GET /chunks`](https://docs.ethswarm.org/api/#tag/Chunk/paths/~1chunks~1{reference}/get)\n */\n async downloadChunk(reference: ReferenceOrEns | string, options?: RequestOptions): Promise<Data> {\n assertRequestOptions(options)\n assertReferenceOrEns(reference)\n\n return chunk.download(this.getKy(options), reference)\n }\n\n /**\n * Upload single file to a Bee node.\n *\n * **To make sure that you won't loose critical data it is highly recommended to also\n * locally pin the data with `options.pin = true`**\n *\n * @param postageBatchId Postage BatchId to be used to upload the data with\n * @param data Data or file to be uploaded\n * @param name Optional name of the uploaded file\n * @param options Additional options like tag, encryption, pinning, content-type and request options\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/File/paths/~1bzz/post)\n * @returns reference is a content hash of the file\n */\n async uploadFile(\n postageBatchId: string | BatchId,\n data: string | Uint8Array | Readable | File,\n name?: string,\n options?: FileUploadOptions,\n ): Promise<UploadResultWithCid> {\n assertBatchId(postageBatchId)\n assertFileData(data)\n\n if (options) assertFileUploadOptions(options)\n\n if (name && typeof name !== 'string') {\n throw new TypeError('name has to be string or undefined!')\n }\n\n if (isFile(data)) {\n const fileData = await fileArrayBuffer(data)\n const fileName = name ?? data.name\n const contentType = data.type\n const fileOptions = { contentType, ...options }\n\n return addCidConversionFunction(\n await bzz.uploadFile(this.getKy(options), fileData, postageBatchId, fileName, fileOptions),\n ReferenceType.MANIFEST,\n )\n } else if (isReadable(data) && options?.tag && !options.size) {\n // TODO: Needed until https://github.com/ethersphere/bee/issues/2317 is resolved\n const result = await bzz.uploadFile(this.getKy(options), data, postageBatchId, name, options)\n await this.updateTag(options.tag, result.reference)\n\n return addCidConversionFunction(result, ReferenceType.MANIFEST)\n } else {\n return addCidConversionFunction(\n await bzz.uploadFile(this.getKy(options), data, postageBatchId, name, options),\n ReferenceType.MANIFEST,\n )\n }\n }\n\n /**\n * Download single file.\n *\n * @param reference Bee file reference in hex string (either 64 or 128 chars long), ENS domain or Swarm CID.\n * @param path If reference points to manifest, then this parameter defines path to the file\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n * @see Data\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `GET /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz~1{reference}~1{path}/get)\n */\n async downloadFile(\n reference: ReferenceCidOrEns | string,\n path = '',\n options?: RequestOptions,\n ): Promise<FileData<Data>> {\n assertRequestOptions(options)\n reference = makeReferenceOrEns(reference, ReferenceType.MANIFEST)\n\n return bzz.downloadFile(this.getKy(options), reference, path)\n }\n\n /**\n * Download single file as a readable stream\n *\n * @param reference Bee file reference in hex string (either 64 or 128 chars long), ENS domain or Swarm CID.\n * @param path If reference points to manifest / collections, then this parameter defines path to the file\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n *\n * @see [Bee docs - Upload and download](https://docs.ethswarm.org/docs/access-the-swarm/upload-and-download)\n * @see [Bee API reference - `GET /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz~1{reference}~1{path}/get)\n */\n async downloadReadableFile(\n reference: ReferenceCidOrEns | string,\n path = '',\n options?: RequestOptions,\n ): Promise<FileData<ReadableStream<Uint8Array>>> {\n assertRequestOptions(options)\n reference = makeReferenceOrEns(reference, ReferenceType.MANIFEST)\n\n return bzz.downloadFileReadable(this.getKy(options), reference, path)\n }\n\n /**\n * Upload collection of files to a Bee node\n *\n * Uses the FileList API from the browser.\n *\n * The returned `UploadResult.tag` might be undefined if called in CORS-enabled environment.\n * This will be fixed upon next Bee release. https://github.com/ethersphere/bee-js/issues/406\n *\n * @param postageBatchId Postage BatchId to be used to upload the data with\n * @param fileList list of files to be uploaded\n * @param options Additional options like tag, encryption, pinning and request options\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee docs - Upload directory](https://docs.ethswarm.org/docs/access-the-swarm/upload-a-directory/)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz/post)\n */\n async uploadFiles(\n postageBatchId: string | BatchId,\n fileList: FileList | File[],\n options?: CollectionUploadOptions,\n ): Promise<UploadResultWithCid> {\n assertBatchId(postageBatchId)\n\n if (options) assertCollectionUploadOptions(options)\n\n const data = await makeCollectionFromFileList(fileList)\n\n return addCidConversionFunction(\n await bzz.uploadCollection(this.getKy(options), data, postageBatchId, options),\n ReferenceType.MANIFEST,\n )\n }\n\n /**\n * Upload Collection that you can assembly yourself.\n *\n * The returned `UploadResult.tag` might be undefined if called in CORS-enabled environment.\n * This will be fixed upon next Bee release. https://github.com/ethersphere/bee-js/issues/406\n *\n * @param postageBatchId\n * @param collection\n * @param options Collections and request options\n */\n async uploadCollection(\n postageBatchId: string | BatchId,\n collection: Collection<Uint8Array | Readable>,\n options?: CollectionUploadOptions,\n ): Promise<UploadResultWithCid> {\n assertBatchId(postageBatchId)\n assertCollection(collection)\n\n if (options) assertCollectionUploadOptions(options)\n\n return addCidConversionFunction(\n await bzz.uploadCollection(this.ky, collection, postageBatchId, options),\n ReferenceType.MANIFEST,\n )\n }\n\n /**\n * Upload collection of files.\n *\n * Available only in Node.js as it uses the `fs` module.\n *\n * The returned `UploadResult.tag` might be undefined if called in CORS-enabled environment.\n * This will be fixed upon next Bee release. https://github.com/ethersphere/bee-js/issues/406\n *\n * @param postageBatchId Postage BatchId to be used to upload the data with\n * @param dir the path of the files to be uploaded\n * @param options Additional options like tag, encryption, pinning and request options\n *\n * @see [Bee docs - Keep your data alive / Postage stamps](https://docs.ethswarm.org/docs/access-the-swarm/keep-your-data-alive)\n * @see [Bee docs - Upload directory](https://docs.ethswarm.org/docs/access-the-swarm/upload-a-directory/)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz/post)\n */\n async uploadFilesFromDirectory(\n postageBatchId: string | BatchId,\n dir: string,\n options?: CollectionUploadOptions,\n ): Promise<UploadResultWithCid> {\n assertBatchId(postageBatchId)\n\n if (options) assertCollectionUploadOptions(options)\n const data = await makeCollectionFromFS(dir)\n\n return addCidConversionFunction(\n await bzz.uploadCollection(this.getKy(options), data, postageBatchId, options),\n ReferenceType.MANIFEST,\n )\n }\n\n /**\n * Create a new Tag which is meant for tracking progres of syncing data across network.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param options Options that affects the request behavior\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @see [Bee API reference - `POST /tags`](https://docs.ethswarm.org/api/#tag/Tag/paths/~1tags/post)\n */\n async createTag(options?: RequestOptions): Promise<Tag> {\n assertRequestOptions(options)\n\n return tag.createTag(this.getKy(options))\n }\n\n /**\n * Fetches all tags.\n *\n * The listing is limited by options.limit. So you have to iterate using options.offset to get all tags.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param options Options that affects the request behavior\n * @throws TypeError if limit or offset are not numbers or undefined\n * @throws BeeArgumentError if limit or offset have invalid options\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @see [Bee API reference - `GET /tags`](https://docs.ethswarm.org/api/#tag/Tag/paths/~1tags/get)\n */\n async getAllTags(options?: AllTagsOptions): Promise<Tag[]> {\n assertRequestOptions(options)\n assertAllTagsOptions(options)\n\n return tag.getAllTags(this.getKy(options), options?.offset, options?.limit)\n }\n\n /**\n * Retrieve tag information from Bee node\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param tagUid UID or tag object to be retrieved\n * @param options Options that affects the request behavior\n * @throws TypeError if tagUid is in not correct format\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @see [Bee API reference - `GET /tags/{uid}`](https://docs.ethswarm.org/api/#tag/Tag/paths/~1tags~1{uid}/get)\n *\n */\n async retrieveTag(tagUid: number | Tag, options?: RequestOptions): Promise<Tag> {\n assertRequestOptions(options)\n\n tagUid = makeTagUid(tagUid)\n\n return tag.retrieveTag(this.getKy(options), tagUid)\n }\n\n /**\n * Delete Tag\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param tagUid UID or tag object to be retrieved\n * @param options Options that affects the request behavior\n * @throws TypeError if tagUid is in not correct format\n * @throws BeeResponse error if something went wrong on the Bee node side while deleting the tag.\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @see [Bee API reference - `DELETE /tags/{uid}`](https://docs.ethswarm.org/api/#tag/Tag/paths/~1tags~1{uid}/delete)\n */\n async deleteTag(tagUid: number | Tag, options?: RequestOptions): Promise<void> {\n assertRequestOptions(options)\n\n tagUid = makeTagUid(tagUid)\n\n return tag.deleteTag(this.getKy(options), tagUid)\n }\n\n /**\n * Update tag's total chunks count.\n *\n * This is important if you are uploading individual chunks with a tag. Then upon finishing the final root chunk,\n * you can use this method to update the total chunks count for the tag.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param tagUid UID or tag object to be retrieved\n * @param reference The root reference that contains all the chunks to be counted\n * @param options Options that affects the request behavior\n * @throws TypeError if tagUid is in not correct format\n * @throws BeeResponse error if something went wrong on the Bee node side while deleting the tag.\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @see [Bee API reference - `PATCH /tags/{uid}`](https://docs.ethswarm.org/api/#tag/Tag/paths/~1tags~1{uid}/patch)\n */\n async updateTag(tagUid: number | Tag, reference: Reference | string, options?: RequestOptions): Promise<void> {\n assertReference(reference)\n assertRequestOptions(options)\n\n tagUid = makeTagUid(tagUid)\n\n return tag.updateTag(this.getKy(options), tagUid, reference)\n }\n\n /**\n * Pin local data with given reference\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param reference Data reference\n * @param options Options that affects the request behavior\n * @throws TypeError if reference is in not correct format\n *\n * @see [Bee docs - Pinning](https://docs.ethswarm.org/docs/access-the-swarm/pinning)\n */\n async pin(reference: Reference | string, options?: RequestOptions): Promise<void> {\n assertRequestOptions(options)\n assertReference(reference)\n\n return pinning.pin(this.getKy(options), reference)\n }\n\n /**\n * Unpin local data with given reference\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param reference Data reference\n * @param options Options that affects the request behavior\n * @throws TypeError if reference is in not correct format\n *\n * @see [Bee docs - Pinning](https://docs.ethswarm.org/docs/access-the-swarm/pinning)\n */\n async unpin(reference: Reference | string, options?: RequestOptions): Promise<void> {\n assertRequestOptions(options)\n assertReference(reference)\n\n return pinning.unpin(this.getKy(options), reference)\n }\n\n /**\n * Get list of all locally pinned references\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param options Options that affects the request behavior\n * @see [Bee docs - Pinning](https://docs.ethswarm.org/docs/access-the-swarm/pinning)\n */\n async getAllPins(options?: RequestOptions): Promise<Reference[]> {\n assertRequestOptions(options)\n\n return pinning.getAllPins(this.getKy(options))\n }\n\n /**\n * Get pinning status of chunk with given reference\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @param reference Bee data reference in hex string (either 64 or 128 chars long) or ENS domain.\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n *\n * @see [Bee docs - Pinning](https://docs.ethswarm.org/docs/access-the-swarm/pinning)\n */\n async getPin(reference: Reference | string, options?: RequestOptions): Promise<Pin> {\n assertRequestOptions(options)\n assertReference(reference)\n\n return pinning.getPin(this.getKy(options), reference)\n }\n\n /**\n * Instructs the Bee node to reupload a locally pinned data into the network.\n *\n * @param reference Bee data reference to be re-uploaded in hex string (either 64 or 128 chars long) or ENS domain.\n * @param options Options that affects the request behavior\n * @throws BeeArgumentError if the reference is not locally pinned\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n *\n * @see [Bee API reference - `PUT /stewardship`](https://docs.ethswarm.org/api/#tag/Stewardship/paths/~1stewardship~1{reference}/put)\n */\n async reuploadPinnedData(reference: ReferenceOrEns | string, options?: RequestOptions): Promise<void> {\n assertRequestOptions(options)\n assertReferenceOrEns(reference)\n\n await stewardship.reupload(this.getKy(options), reference)\n }\n\n /**\n * Checks if content specified by reference is retrievable from the network.\n *\n * @param reference Bee data reference to be checked in hex string (either 64 or 128 chars long) or ENS domain.\n * @param options Options that affects the request behavior\n * @throws TypeError if some of the input parameters is not expected type\n * @throws BeeArgumentError if there is passed ENS domain with invalid unicode characters\n *\n * @see [Bee API reference - `GET /stewardship`](https://docs.ethswarm.org/api/#tag/Stewardship/paths/~1stewardship~1{reference}/get)\n */\n async isReferenceRetrievable(reference: ReferenceOrEns | string, options?: RequestOptions): Promise<boolean> {\n assertRequestOptions(options)\n assertReferenceOrEns(reference)\n\n return stewardship.isRetrievable(this.getKy(options), reference)\n }\n\n /**\n * Functions that validates if feed is retrievable in the network.\n *\n * If no index is passed then it check for \"latest\" update, which is a weaker guarantee as nobody can be really\n * sure what is the \"latest\" update.\n *\n * If index is passed then it validates all previous sequence index chunks if they are available as they are required\n * to correctly resolve the feed upto the given index update.\n *\n * @param type\n * @param owner\n * @param topic\n * @param index\n * @param options\n */\n async isFeedRetrievable(\n type: FeedType,\n owner: EthAddress | Uint8Array | string,\n topic: Topic | Uint8Array | string,\n index?: Index | number | IndexBytes | string,\n options?: RequestOptions,\n ): Promise<boolean> {\n const canonicalOwner = makeEthAddress(owner)\n const canonicalTopic = makeTopic(topic)\n\n if (!index) {\n try {\n await this.makeFeedReader(type, canonicalTopic, canonicalOwner).download()\n\n return true\n } catch (e) {\n const err = e as BeeResponseError\n\n // Only if the error is \"not-found\" then we return false otherwise we re-throw the error\n if (err?.status === 404) {\n return false\n }\n\n throw e\n }\n }\n\n if (type !== 'sequence') {\n throw new BeeError('Only Sequence type of Feeds is supported at the moment')\n }\n\n return areAllSequentialFeedsUpdateRetrievable(this, canonicalOwner, canonicalTopic, index, options)\n }\n\n /**\n * Send data to recipient or target with Postal Service for Swarm.\n *\n * Because sending a PSS message is slow and CPU intensive,\n * it is not supposed to be used for general messaging but\n * most likely for setting up an encrypted communication\n * channel by sending an one-off message.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * **Warning! If the recipient Bee node is a light node, then he will never receive the message!**\n * This is because light nodes does not fully participate in the data exchange in Swarm network and hence the message won't arrive to them.\n *\n * @param postageBatchId Postage BatchId that will be assigned to sent message\n * @param topic Topic name\n * @param target Target message address prefix. Has a limit on length. Recommend to use `Utils.Pss.makeMaxTarget()` to get the most specific target that Bee node will accept.\n * @param data Message to be sent\n * @param recipient Recipient public key\n * @param options Options that affects the request behavior\n * @throws TypeError if `data`, `batchId`, `target` or `recipient` are in invalid format\n *\n * @see [Bee docs - PSS](https://docs.ethswarm.org/docs/dapps-on-swarm/pss)\n * @see [Bee API reference - `POST /pss`](https://docs.ethswarm.org/api/#tag/Postal-Service-for-Swarm/paths/~1pss~1send~1{topic}~1{targets}/post)\n */\n async pssSend(\n postageBatchId: string | BatchId,\n topic: string,\n target: AddressPrefix,\n data: string | Uint8Array,\n recipient?: string | PublicKey,\n options?: RequestOptions,\n ): Promise<void> {\n assertRequestOptions(options)\n assertData(data)\n assertBatchId(postageBatchId)\n assertAddressPrefix(target)\n\n if (typeof topic !== 'string') {\n throw new TypeError('topic has to be an string!')\n }\n\n if (recipient) {\n assertPublicKey(recipient)\n\n return pss.send(this.getKy(options), topic, target, data, postageBatchId, recipient)\n } else {\n return pss.send(this.getKy(options), topic, target, data, postageBatchId)\n }\n }\n\n /**\n * Subscribe to messages for given topic with Postal Service for Swarm\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * **Warning! If connected Bee node is a light node, then he will never receive any message!**\n * This is because light nodes does not fully participate in the data exchange in Swarm network and hence the message won't arrive to them.\n *\n * @param topic Topic name\n * @param handler Message handler interface\n *\n * @returns Subscription to a given topic\n *\n * @see [Bee docs - PSS](https://docs.ethswarm.org/docs/dapps-on-swarm/pss)\n * @see [Bee API reference - `GET /pss`](https://docs.ethswarm.org/api/#tag/Postal-Service-for-Swarm/paths/~1pss~1subscribe~1{topic}/get)\n */\n pssSubscribe(topic: string, handler: PssMessageHandler): PssSubscription {\n assertPssMessageHandler(handler)\n\n if (typeof topic !== 'string') {\n throw new TypeError('topic has to be an string!')\n }\n\n const ws = pss.subscribe(this.url, topic)\n\n let cancelled = false\n const cancel = () => {\n if (cancelled === false) {\n cancelled = true\n\n // although the WebSocket API offers a `close` function, it seems that\n // with the library that we are using (isomorphic-ws) it doesn't close\n // the websocket properly, whereas `terminate` does\n if (ws.terminate) ws.terminate()\n else ws.close() // standard Websocket in browser does not have terminate function\n }\n }\n\n const subscription = {\n topic,\n cancel,\n }\n\n ws.onmessage = async ev => {\n const data = await prepareWebsocketData(ev.data)\n\n // ignore empty messages\n if (data.length > 0) {\n handler.onMessage(wrapBytesWithHelpers(data), subscription)\n }\n }\n ws.onerror = ev => {\n // ignore errors after subscription was cancelled\n if (!cancelled) {\n handler.onError(new BeeError(ev.message), subscription)\n }\n }\n\n return subscription\n }\n\n /**\n * Receive message with Postal Service for Swarm\n *\n * Because sending a PSS message is slow and CPU intensive,\n * it is not supposed to be used for general messaging but\n * most likely for setting up an encrypted communication\n * channel by sending an one-off message.\n *\n * This is a helper function to wait for exactly one message to\n * arrive and then cancel the subscription. Additionally a\n * timeout can be provided for the message to arrive or else\n * an error will be thrown.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * **Warning! If connected Bee node is a light node, then he will never receive any message!**\n * This is because light nodes does not fully participate in the data exchange in Swarm network and hence the message won't arrive to them.\n *\n * @param topic Topic name\n * @param timeoutMsec Timeout in milliseconds\n *\n * @returns Message in byte array\n *\n * @see [Bee docs - PSS](https://docs.ethswarm.org/docs/dapps-on-swarm/pss)\n * @see [Bee API reference - `GET /pss`](https://docs.ethswarm.org/api/#tag/Postal-Service-for-Swarm/paths/~1pss~1subscribe~1{topic}/get)\n */\n async pssReceive(topic: string, timeoutMsec = 0): Promise<Data> {\n if (typeof topic !== 'string') {\n throw new TypeError('topic has to be an string!')\n }\n\n if (typeof timeoutMsec !== 'number') {\n throw new TypeError('timeoutMsc parameter has to be a number!')\n }\n\n return new Promise((resolve, reject) => {\n let timeout: number | undefined\n const subscription = this.pssSubscribe(topic, {\n onError: error => {\n clearTimeout(timeout)\n subscription.cancel()\n reject(error.message)\n },\n onMessage: message => {\n clearTimeout(timeout)\n subscription.cancel()\n resolve(message)\n },\n })\n\n if (timeoutMsec > 0) {\n // we need to cast the type because Typescript is getting confused with Node.js'\n // alternative type definitions\n timeout = setTimeout(() => {\n subscription.cancel()\n reject(new BeeError('pssReceive timeout'))\n }, timeoutMsec) as unknown as number\n }\n })\n }\n\n /**\n * Create feed manifest chunk and return the reference to it.\n *\n * Feed manifest chunk allows for a feed to be able to be resolved through `/bzz` endpoint.\n *\n * @param postageBatchId Postage BatchId to be used to create the Feed Manifest\n * @param type The type of the feed, can be 'epoch' or 'sequence'\n * @param topic Topic in hex or bytes\n * @param owner Owner's ethereum address in hex or bytes\n * @param options Options that affects the request behavior\n *\n * @see [Bee docs - Feeds](https://docs.ethswarm.org/docs/dapps-on-swarm/feeds)\n * @see [Bee API reference - `POST /feeds`](https://docs.ethswarm.org/api/#tag/Feed/paths/~1feeds~1{owner}~1{topic}/post)\n * TODO: Once breaking add support for Feed CID\n */\n async createFeedManifest(\n postageBatchId: string | BatchId,\n type: FeedType,\n topic: Topic | Uint8Array | string,\n owner: EthAddress | Uint8Array | string,\n options?: RequestOptions,\n ): Promise<Reference> {\n assertRequestOptions(options)\n assertFeedType(type)\n assertBatchId(postageBatchId)\n\n const canonicalTopic = makeTopic(topic)\n const canonicalOwner = makeHexEthAddress(owner)\n\n return createFeedManifest(this.getKy(options), canonicalOwner, canonicalTopic, postageBatchId, { type })\n }\n\n /**\n * Make a new feed reader for downloading feed updates.\n *\n * @param type The type of the feed, can be 'epoch' or 'sequence'\n * @param topic Topic in hex or bytes\n * @param owner Owner's ethereum address in hex or bytes\n * @param options Options that affects the request behavior\n *\n * @see [Bee docs - Feeds](https://docs.ethswarm.org/docs/dapps-on-swarm/feeds)\n */\n makeFeedReader(\n type: FeedType,\n topic: Topic | Uint8Array | string,\n owner: EthAddress | Uint8Array | string,\n options?: RequestOptions,\n ): FeedReader {\n assertRequestOptions(options)\n assertFeedType(type)\n\n const canonicalTopic = makeTopic(topic)\n const canonicalOwner = makeHexEthAddress(owner)\n\n return makeFeedReader(this.getKy(options), type, canonicalTopic, canonicalOwner)\n }\n\n /**\n * Make a new feed writer for updating feeds\n *\n * @param type The type of the feed, can be 'epoch' or 'sequence'\n * @param topic Topic in hex or bytes\n * @param signer The signer's private key or a Signer instance that can sign data\n * @param options Options that affects the request behavior\n *\n * @see [Bee docs - Feeds](https://docs.ethswarm.org/docs/dapps-on-swarm/feeds)\n */\n makeFeedWriter(\n type: FeedType,\n topic: Topic | Uint8Array | string,\n signer?: Signer | Uint8Array | string,\n options?: RequestOptions,\n ): FeedWriter {\n assertRequestOptions(options)\n assertFeedType(type)\n\n const canonicalTopic = makeTopic(topic)\n const canonicalSigner = this.resolveSigner(signer)\n\n return makeFeedWriter(this.getKy(options), type, canonicalTopic, canonicalSigner)\n }\n\n /**\n * High-level function that allows you to easily set JSON data to feed.\n * JSON-like data types are supported.\n *\n * The default Signer of Bee instance is used if `options.signer` is not specified.\n * If none of those two is set error is thrown.\n *\n * @param postageBatchId Postage BatchId to be used to upload the data with\n * @param topic Human readable string, that is internally hashed so there are no constrains there.\n * @param data JSON compatible data\n * @param options\n * @param options.signer Custom instance of Signer or string with private key.\n * @param options.type Type of Feed\n *\n * @throws BeeError if `options.signer` is not specified nor the default Signer on Bee's instance is specified.\n *\n * @see [Bee docs - Feeds](https://docs.ethswarm.org/docs/dapps-on-swarm/feeds)\n */\n async setJsonFeed<T extends AnyJson>(\n postageBatchId: string | BatchId,\n topic: string,\n data: T,\n options?: JsonFeedOptions,\n ): Promise<Reference> {\n assertRequestOptions(options, 'JsonFeedOptions')\n assertBatchId(postageBatchId)\n\n const hashedTopic = this.makeFeedTopic(topic)\n const feedType = options?.type ?? DEFAULT_FEED_TYPE\n const writer = this.makeFeedWriter(feedType, hashedTopic, options?.signer, options)\n\n return setJsonData(this, writer, postageBatchId, data, options)\n }\n\n /**\n * High-level function that allows you to easily get data from feed.\n * Returned data are parsed using JSON.parse().\n *\n * This method also supports specification of `signer` object passed to constructor. The order of evaluation is:\n * - `options.address`\n * - `options.signer`\n * - `this.signer`\n *\n * At least one of these has to be specified!\n *\n * @param topic Human readable string, that is internally hashed so there are no constrains there.\n * @param options\n * @param options.signer Custom instance of Signer or string with private key. This option is exclusive with `address` option.\n * @param options.address Ethereum address of owner of the feed that signed it. This option is exclusive with `signer` option.\n * @param options.type Type of Feed\n *\n * @see [Bee docs - Feeds](https://docs.ethswarm.org/docs/dapps-on-swarm/feeds)\n */\n async getJsonFeed<T extends AnyJson>(topic: string, options?: JsonFeedOptions): Promise<T> {\n assertRequestOptions(options, 'JsonFeedOptions')\n\n const hashedTopic = this.makeFeedTopic(topic)\n const feedType = options?.type ?? DEFAULT_FEED_TYPE\n\n if (options?.signer && options?.address) {\n throw new BeeError('Both options \"signer\" and \"address\" can not be specified at one time!')\n }\n\n let address: EthAddress\n\n if (options?.address) {\n address = makeEthAddress(options?.address)\n } else {\n try {\n address = this.resolveSigner(options?.signer).address\n } catch (e) {\n if (e instanceof BeeError) {\n throw new BeeError('Either address, signer or default signer has to be specified!')\n } else {\n throw e\n }\n }\n }\n\n const reader = this.makeFeedReader(feedType, hashedTopic, address, options)\n\n return getJsonData(this, reader)\n }\n\n /**\n * Make a new feed topic from a string\n *\n * Because the topic has to be 32 bytes long this function\n * hashes the input string to create a topic string of arbitrary length.\n *\n * @param topic The input string\n */\n makeFeedTopic(topic: string): Topic {\n return makeTopicFromString(topic)\n }\n\n /**\n * Returns an object for reading single owner chunks\n *\n * @param ownerAddress The ethereum address of the owner\n * @param options Options that affects the request behavior\n * @see [Bee docs - Chunk Types](https://docs.ethswarm.org/docs/dapps-on-swarm/chunk-types#single-owner-chunks)\n */\n makeSOCReader(ownerAddress: EthAddress | Uint8Array | string, options?: RequestOptions): SOCReader {\n assertRequestOptions(options)\n const canonicalOwner = makeEthAddress(ownerAddress)\n\n return {\n owner: makeHexEthAddress(canonicalOwner),\n download: downloadSingleOwnerChunk.bind(null, this.getKy(options), canonicalOwner),\n }\n }\n\n /**\n * Returns an object for reading and writing single owner chunks\n *\n * @param signer The signer's private key or a Signer instance that can sign data\n * @param options Options that affects the request behavior\n * @see [Bee docs - Chunk Types](https://docs.ethswarm.org/docs/dapps-on-swarm/chunk-types#single-owner-chunks)\n */\n makeSOCWriter(signer?: Signer | Uint8Array | string, options?: RequestOptions): SOCWriter {\n assertRequestOptions(options)\n const canonicalSigner = this.resolveSigner(signer)\n\n return {\n ...this.makeSOCReader(canonicalSigner.address, options),\n\n upload: uploadSingleOwnerChunkData.bind(null, this.getKy(options), canonicalSigner),\n }\n }\n\n /**\n * Ping the Bee node to see if there is a live Bee node on the given URL.\n *\n * @param options Options that affects the request behavior\n * @throws If connection was not successful throw error\n */\n async checkConnection(options?: RequestOptions): Promise<void> | never {\n assertRequestOptions(options, 'PostageBatchOptions')\n\n return status.checkConnection(this.getKy(options))\n }\n\n /**\n * Ping the Bee node to see if there is a live Bee node on the given URL.\n *\n * @param options Options that affects the request behavior\n * @returns true if successful, false on error\n */\n async isConnected(options?: RequestOptions): Promise<boolean> {\n assertRequestOptions(options, 'PostageBatchOptions')\n\n try {\n await status.checkConnection(this.getKy(options))\n } catch (e) {\n return false\n }\n\n return true\n }\n\n /**\n * @param signer\n * @private\n * @throws BeeError if either no Signer was passed or no default Signer was specified for the instance\n */\n private resolveSigner(signer?: Signer | Uint8Array | string): Signer {\n if (signer) {\n return makeSigner(signer)\n }\n\n if (this.signer) {\n return this.signer\n }\n\n throw new BeeError('You have to pass Signer as property to either the method call or constructor! Non found.')\n }\n\n private getKy(options?: RequestOptions): Ky {\n if (!options) {\n return this.ky\n }\n\n return this.ky.extend(options)\n }\n}\n","// For ESM compatibility\nimport pkg from 'js-sha3'\nconst { keccak256 } = pkg\nimport { BeeArgumentError } from '../utils/error'\nimport { Bytes } from '../utils/bytes'\nimport { keccak256Hash } from '../utils/hash'\n\nconst MAX_CHUNK_PAYLOAD_SIZE = 4096\nconst SEGMENT_SIZE = 32\nconst SEGMENT_PAIR_SIZE = 2 * SEGMENT_SIZE\nconst HASH_SIZE = 32\n\n/**\n * Calculate a Binary Merkle Tree hash for a chunk\n *\n * The BMT chunk address is the hash of the 8 byte span and the root\n * hash of a binary Merkle tree (BMT) built on the 32-byte segments\n * of the underlying data.\n *\n * If the chunk content is less than 4k, the hash is calculated as\n * if the chunk was padded with all zeros up to 4096 bytes.\n *\n * @param chunkContent Chunk data including span and payload as well\n *\n * @returns the keccak256 hash in a byte array\n */\nexport function bmtHash(chunkContent: Uint8Array): Bytes<32> {\n const span = chunkContent.slice(0, 8)\n const payload = chunkContent.slice(8)\n const rootHash = bmtRootHash(payload)\n const chunkHashInput = new Uint8Array([...span, ...rootHash])\n const chunkHash = keccak256Hash(chunkHashInput)\n\n return chunkHash\n}\n\nfunction bmtRootHash(payload: Uint8Array): Uint8Array {\n if (payload.length > MAX_CHUNK_PAYLOAD_SIZE) {\n throw new BeeArgumentError('invalid data length', payload)\n }\n\n // create an input buffer padded with zeros\n let input = new Uint8Array([...payload, ...new Uint8Array(MAX_CHUNK_PAYLOAD_SIZE - payload.length)])\n while (input.length !== HASH_SIZE) {\n const output = new Uint8Array(input.length / 2)\n\n // in each round we hash the segment pairs together\n for (let offset = 0; offset < input.length; offset += SEGMENT_PAIR_SIZE) {\n const hashNumbers = keccak256.array(input.slice(offset, offset + SEGMENT_PAIR_SIZE))\n output.set(hashNumbers, offset / 2)\n }\n\n input = output\n }\n\n return input\n}\n","import { BrandedType, PlainBytesReference } from '../types'\nimport { BeeError } from '../utils/error'\nimport { bmtHash } from './bmt'\nimport { assertFlexBytes, Bytes, bytesEqual, FlexBytes, flexBytesAtOffset } from '../utils/bytes'\nimport { serializeBytes } from './serialize'\nimport { makeSpan, SPAN_SIZE } from './span'\n\nexport const MIN_PAYLOAD_SIZE = 1\nexport const MAX_PAYLOAD_SIZE = 4096\n\nconst CAC_SPAN_OFFSET = 0\nconst CAC_PAYLOAD_OFFSET = CAC_SPAN_OFFSET + SPAN_SIZE\n\n/**\n * General chunk interface for Swarm\n *\n * It stores the serialized data and provides functions to access\n * the fields of a chunk.\n *\n * It also provides an address function to calculate the address of\n * the chunk that is required for the Chunk API.\n */\nexport interface Chunk {\n readonly data: Uint8Array\n span(): Bytes<8>\n payload(): FlexBytes<1, 4096>\n\n address(): PlainBytesReference\n}\n\ntype ValidChunkData = BrandedType<Uint8Array, 'ValidChunkData'>\n\n/**\n * Creates a content addressed chunk and verifies the payload size.\n *\n * @param payloadBytes the data to be stored in the chunk\n */\nexport function makeContentAddressedChunk(payloadBytes: Uint8Array): Chunk {\n const span = makeSpan(payloadBytes.length)\n assertFlexBytes(payloadBytes, MIN_PAYLOAD_SIZE, MAX_PAYLOAD_SIZE)\n const data = serializeBytes(span, payloadBytes) as ValidChunkData\n\n return {\n data,\n span: () => span,\n payload: () => flexBytesAtOffset(data, CAC_PAYLOAD_OFFSET, MIN_PAYLOAD_SIZE, MAX_PAYLOAD_SIZE),\n address: () => bmtHash(data),\n }\n}\n\n/**\n * Type guard for valid content addressed chunk data\n *\n * @param data The chunk data\n * @param chunkAddress The address of the chunk\n */\nexport function isValidChunkData(data: unknown, chunkAddress: PlainBytesReference): data is ValidChunkData {\n if (!(data instanceof Uint8Array)) return false\n\n const address = bmtHash(data)\n\n return bytesEqual(address, chunkAddress)\n}\n\n/**\n * Asserts if data are representing given address of its chunk.\n *\n * @param data The chunk data\n * @param chunkAddress The address of the chunk\n *\n * @returns a valid content addressed chunk or throws error\n */\nexport function assertValidChunkData(data: unknown, chunkAddress: PlainBytesReference): asserts data is ValidChunkData {\n if (!isValidChunkData(data, chunkAddress)) {\n throw new BeeError('Address of content address chunk does not match given data!')\n }\n}\n","/**\n * Helper function for serialize byte arrays\n *\n * @param arrays Any number of byte array arguments\n */\nexport function serializeBytes(...arrays: Uint8Array[]): Uint8Array {\n const length = arrays.reduce((prev, curr) => prev + curr.length, 0)\n const buffer = new Uint8Array(length)\n let offset = 0\n arrays.forEach(arr => {\n buffer.set(arr, offset)\n offset += arr.length\n })\n\n return buffer\n}\n","import { curve } from 'elliptic'\n\n// For ESM compatibility\nimport pkg from 'elliptic'\nconst { ec } = pkg\n\nimport { BeeError } from '../utils/error'\nimport { Bytes, isBytes, assertBytes, wrapBytesWithHelpers } from '../utils/bytes'\nimport { keccak256Hash } from '../utils/hash'\nimport { hexToBytes, makeHexString } from '../utils/hex'\nimport { EthAddress } from '../utils/eth'\nimport { Data, PrivateKeyBytes, Signature, SIGNATURE_BYTES_LENGTH, SIGNATURE_HEX_LENGTH, Signer } from '../types'\nimport { isStrictlyObject } from '../utils/type'\n\ntype EllipticPublicKey = curve.base.BasePoint\nconst UNCOMPRESSED_RECOVERY_ID = 27\n\nfunction hashWithEthereumPrefix(data: Uint8Array): Bytes<32> {\n const ethereumSignedMessagePrefix = `\\x19Ethereum Signed Message:\\n${data.length}`\n const prefixBytes = new TextEncoder().encode(ethereumSignedMessagePrefix)\n\n return keccak256Hash(prefixBytes, data)\n}\n\n/**\n * The default signer function that can be used for integrating with\n * other applications (e.g. wallets).\n *\n * @param data The data to be signed\n * @param privateKey The private key used for signing the data\n */\nexport function defaultSign(data: Uint8Array, privateKey: PrivateKeyBytes): Signature {\n const curve = new ec('secp256k1')\n const keyPair = curve.keyFromPrivate(privateKey)\n\n const hashedDigest = hashWithEthereumPrefix(data)\n const sigRaw = curve.sign(hashedDigest, keyPair, { canonical: true, pers: undefined })\n\n if (sigRaw.recoveryParam === null) {\n throw new BeeError('signDigest recovery param was null')\n }\n const signature = new Uint8Array([\n ...sigRaw.r.toArray('be', 32),\n ...sigRaw.s.toArray('be', 32),\n sigRaw.recoveryParam + UNCOMPRESSED_RECOVERY_ID,\n ])\n\n return signature as Signature\n}\n\nfunction publicKeyToAddress(pubKey: EllipticPublicKey): EthAddress {\n const pubBytes = pubKey.encode('array', false)\n\n return keccak256Hash(pubBytes.slice(1)).slice(12) as EthAddress\n}\n\n/**\n * Recovers the ethereum address from a given signature.\n *\n * Can be used for verifying a piece of data when the public key is\n * known.\n *\n * @param signature The signature\n * @param digest The digest of the data\n *\n * @returns the recovered address\n */\nexport function recoverAddress(signature: Signature, digest: Uint8Array): EthAddress {\n const curve = new ec('secp256k1')\n const sig = {\n r: signature.slice(0, 32),\n s: signature.slice(32, 64),\n }\n const recoveryParam = signature[64] - UNCOMPRESSED_RECOVERY_ID\n const hash = hashWithEthereumPrefix(digest)\n const recPubKey = curve.recoverPubKey(hash, sig, recoveryParam)\n\n return publicKeyToAddress(recPubKey)\n}\n\n/**\n * Creates a singer object that can be used when the private key is known.\n *\n * @param privateKey The private key\n */\nexport function makePrivateKeySigner(privateKey: PrivateKeyBytes): Signer {\n const curve = new ec('secp256k1')\n const keyPair = curve.keyFromPrivate(privateKey)\n const address = publicKeyToAddress(keyPair.getPublic())\n\n return {\n sign: (digest: Data) => defaultSign(digest, privateKey),\n address,\n }\n}\n\nexport function assertSigner(signer: unknown): asserts signer is Signer {\n if (!isStrictlyObject(signer)) {\n throw new TypeError('Signer must be an object!')\n }\n\n const typedSigner = signer as Signer\n\n if (!isBytes(typedSigner.address, 20)) {\n throw new TypeError(\"Signer's address must be Uint8Array with 20 bytes!\")\n }\n\n if (typeof typedSigner.sign !== 'function') {\n throw new TypeError('Signer sign property needs to be function!')\n }\n}\n\nexport function makeSigner(signer: Signer | Uint8Array | string | unknown): Signer {\n if (typeof signer === 'string') {\n const hexKey = makeHexString(signer, 64)\n const keyBytes = hexToBytes<32>(hexKey) // HexString is verified for 64 length => 32 is guaranteed\n\n return makePrivateKeySigner(keyBytes)\n } else if (signer instanceof Uint8Array) {\n assertBytes(signer, 32)\n\n return makePrivateKeySigner(signer)\n }\n\n assertSigner(signer)\n\n return signer\n}\n\nexport async function sign(signer: Signer, data: Uint8Array): Promise<Signature> {\n const result = await signer.sign(wrapBytesWithHelpers(data))\n\n if (typeof result === 'string') {\n const hexString = makeHexString(result, SIGNATURE_HEX_LENGTH)\n\n return hexToBytes<65>(hexString)\n }\n\n if (result instanceof Uint8Array) {\n assertBytes(result, SIGNATURE_BYTES_LENGTH)\n\n return result\n }\n\n throw new TypeError('Invalid output of sign function!')\n}\n","import { Bytes, bytesAtOffset, bytesEqual, flexBytesAtOffset } from '../utils/bytes'\nimport { bmtHash } from './bmt'\nimport { recoverAddress, sign } from './signer'\nimport { keccak256Hash } from '../utils/hash'\nimport { SPAN_SIZE } from './span'\nimport { serializeBytes } from './serialize'\nimport { BeeError } from '../utils/error'\nimport { Chunk, makeContentAddressedChunk, MAX_PAYLOAD_SIZE, MIN_PAYLOAD_SIZE, assertValidChunkData } from './cac'\nimport { UploadOptions, Signature, Signer, BatchId, Reference, Ky, PlainBytesReference } from '../types'\nimport { bytesToHex } from '../utils/hex'\nimport * as socAPI from '../modules/soc'\nimport * as chunkAPI from '../modules/chunk'\nimport { EthAddress } from '../utils/eth'\nimport { assertAddress } from '../utils/type'\n\nconst IDENTIFIER_SIZE = 32\nconst SIGNATURE_SIZE = 65\n\nconst SOC_IDENTIFIER_OFFSET = 0\nconst SOC_SIGNATURE_OFFSET = SOC_IDENTIFIER_OFFSET + IDENTIFIER_SIZE\nconst SOC_SPAN_OFFSET = SOC_SIGNATURE_OFFSET + SIGNATURE_SIZE\nconst SOC_PAYLOAD_OFFSET = SOC_SPAN_OFFSET + SPAN_SIZE\n\nexport type Identifier = Bytes<32>\n\n/**\n * With single owner chunks, a user can assign arbitrary data to an\n * address and attest chunk integrity with their digital signature.\n *\n * This interface extends the Chunk interface so it has the same\n * properties, but the address calculation is based on the identifier\n * and the owner of the chunk.\n */\nexport interface SingleOwnerChunk extends Chunk {\n identifier: () => Identifier\n signature: () => Signature\n owner: () => EthAddress\n}\n\nfunction recoverChunkOwner(data: Uint8Array): EthAddress {\n const cacData = data.slice(SOC_SPAN_OFFSET)\n const chunkAddress = bmtHash(cacData)\n const signature = bytesAtOffset(data, SOC_SIGNATURE_OFFSET, SIGNATURE_SIZE)\n const identifier = bytesAtOffset(data, SOC_IDENTIFIER_OFFSET, IDENTIFIER_SIZE)\n const digest = keccak256Hash(identifier, chunkAddress)\n const ownerAddress = recoverAddress(signature, digest)\n\n return ownerAddress\n}\n\n/**\n * Verifies if the data is a valid single owner chunk\n *\n * @param data The chunk data\n * @param address The address of the single owner chunk\n *\n * @returns a single owner chunk or throws error\n */\nexport function makeSingleOwnerChunkFromData(data: Uint8Array, address: PlainBytesReference): SingleOwnerChunk {\n const ownerAddress = recoverChunkOwner(data)\n const identifier = bytesAtOffset(data, SOC_IDENTIFIER_OFFSET, IDENTIFIER_SIZE)\n const socAddress = keccak256Hash(identifier, ownerAddress)\n\n if (!bytesEqual(address, socAddress)) {\n throw new BeeError('SOC Data does not match given address!')\n }\n\n const signature = () => bytesAtOffset(data, SOC_SIGNATURE_OFFSET, SIGNATURE_SIZE)\n const span = () => bytesAtOffset(data, SOC_SPAN_OFFSET, SPAN_SIZE)\n const payload = () => flexBytesAtOffset(data, SOC_PAYLOAD_OFFSET, MIN_PAYLOAD_SIZE, MAX_PAYLOAD_SIZE)\n\n return {\n data,\n identifier: () => identifier,\n signature,\n span,\n payload,\n address: () => socAddress,\n owner: () => ownerAddress,\n }\n}\n\nexport function makeSOCAddress(identifier: Identifier, address: EthAddress): PlainBytesReference {\n return keccak256Hash(identifier, address)\n}\n\n/**\n * Creates a single owner chunk object\n *\n * @param chunk A chunk object used for the span and payload\n * @param identifier The identifier of the chunk\n * @param signer The singer interface for signing the chunk\n */\nexport async function makeSingleOwnerChunk(\n chunk: Chunk,\n identifier: Identifier,\n signer: Signer,\n): Promise<SingleOwnerChunk> {\n const chunkAddress = chunk.address()\n assertValidChunkData(chunk.data, chunkAddress)\n\n const digest = keccak256Hash(identifier, chunkAddress)\n const signature = await sign(signer, digest)\n const data = serializeBytes(identifier, signature, chunk.span(), chunk.payload())\n const address = makeSOCAddress(identifier, signer.address)\n\n return {\n data,\n identifier: () => identifier,\n signature: () => signature,\n span: () => chunk.span(),\n payload: () => chunk.payload(),\n address: () => address,\n owner: () => signer.address,\n }\n}\n\n/**\n * Helper function to upload a chunk.\n *\n * It uses the Chunk API and calculates the address before uploading.\n *\n * @param ky Ky instance\n * @param chunk A chunk object\n * @param postageBatchId Postage BatchId that will be assigned to uploaded data\n * @param options Upload options\n */\nexport async function uploadSingleOwnerChunk(\n ky: Ky,\n chunk: SingleOwnerChunk,\n postageBatchId: BatchId,\n options?: UploadOptions,\n): Promise<Reference> {\n const owner = bytesToHex(chunk.owner())\n const identifier = bytesToHex(chunk.identifier())\n const signature = bytesToHex(chunk.signature())\n const data = serializeBytes(chunk.span(), chunk.payload())\n\n return socAPI.upload(ky, owner, identifier, signature, data, postageBatchId, options)\n}\n\n/**\n * Helper function to create and upload SOC.\n *\n * @param ky Ky instance\n * @param signer The singer interface for signing the chunk\n * @param postageBatchId\n * @param identifier The identifier of the chunk\n * @param data The chunk data\n * @param options\n */\nexport async function uploadSingleOwnerChunkData(\n ky: Ky,\n signer: Signer,\n postageBatchId: BatchId | string,\n identifier: Identifier,\n data: Uint8Array,\n options?: UploadOptions,\n): Promise<Reference> {\n assertAddress(postageBatchId)\n const cac = makeContentAddressedChunk(data)\n const soc = await makeSingleOwnerChunk(cac, identifier, signer)\n\n return uploadSingleOwnerChunk(ky, soc, postageBatchId, options)\n}\n\n/**\n * Helper function to download SOC.\n *\n * @param url The url of the Bee service\n * @param ownerAddress The singer interface for signing the chunk\n * @param identifier The identifier of the chunk\n */\nexport async function downloadSingleOwnerChunk(\n ky: Ky,\n ownerAddress: EthAddress,\n identifier: Identifier,\n): Promise<SingleOwnerChunk> {\n const address = makeSOCAddress(identifier, ownerAddress)\n const data = await chunkAPI.download(ky, bytesToHex(address))\n\n return makeSingleOwnerChunkFromData(data, address)\n}\n","import { BeeArgumentError } from '../utils/error'\nimport { Bytes } from '../utils/bytes'\n\nexport const SPAN_SIZE = 8\n\n// we limit the maximum span size in 32 bits to avoid BigInt compatibility issues\nconst MAX_SPAN_LENGTH = 2 ** 32 - 1\n\n/**\n * Create a span for storing the length of the chunk\n *\n * The length is encoded in 64-bit little endian.\n *\n * @param length The length of the span\n */\nexport function makeSpan(length: number): Bytes<8> {\n if (length <= 0) {\n throw new BeeArgumentError('invalid length for span', length)\n }\n\n if (length > MAX_SPAN_LENGTH) {\n throw new BeeArgumentError('invalid length (> MAX_SPAN_LENGTH)', length)\n }\n\n const span = new Uint8Array(SPAN_SIZE)\n const dataView = new DataView(span.buffer)\n const littleEndian = true\n const lengthLower32 = length & 0xffffffff\n\n dataView.setUint32(0, lengthLower32, littleEndian)\n\n return span as Bytes<8>\n}\n","import { FEED_INDEX_HEX_LENGTH, Topic } from '../types'\nimport { Identifier } from '../chunk/soc'\nimport { keccak256Hash } from '../utils/hash'\nimport { hexToBytes, makeHexString } from '../utils/hex'\nimport { writeUint64BigEndian } from '../utils/uint64'\nimport { Epoch, Index, IndexBytes } from './index'\n\nfunction isEpoch(epoch: unknown): epoch is Epoch {\n return typeof epoch === 'object' && epoch !== null && 'time' in epoch && 'level' in epoch\n}\n\nfunction hashFeedIdentifier(topic: Topic, index: IndexBytes): Identifier {\n return keccak256Hash(hexToBytes(topic), index)\n}\n\nfunction makeSequentialFeedIdentifier(topic: Topic, index: number): Identifier {\n const indexBytes = writeUint64BigEndian(index)\n\n return hashFeedIdentifier(topic, indexBytes)\n}\n\nfunction makeFeedIndexBytes(s: string): IndexBytes {\n const hex = makeHexString(s, FEED_INDEX_HEX_LENGTH)\n\n return hexToBytes(hex)\n}\n\nexport function makeFeedIdentifier(topic: Topic, index: Index): Identifier {\n if (typeof index === 'number') {\n return makeSequentialFeedIdentifier(topic, index)\n } else if (typeof index === 'string') {\n const indexBytes = makeFeedIndexBytes(index)\n\n return hashFeedIdentifier(topic, indexBytes)\n } else if (isEpoch(index)) {\n throw new TypeError('epoch is not yet implemented')\n }\n\n return hashFeedIdentifier(topic, index)\n}\n","import { keccak256Hash } from '../utils/hash'\nimport { serializeBytes } from '../chunk/serialize'\nimport { FeedUpdateOptions, fetchLatestFeedUpdate, FetchFeedUpdateResponse } from '../modules/feed'\nimport { makeSingleOwnerChunkFromData, uploadSingleOwnerChunkData } from '../chunk/soc'\nimport {\n Address,\n BatchId,\n BytesReference,\n FEED_INDEX_HEX_LENGTH,\n FeedReader,\n FeedWriter,\n Ky,\n PlainBytesReference,\n Reference,\n Signer,\n Topic,\n UploadOptions,\n} from '../types'\nimport { Bytes, bytesAtOffset, makeBytes } from '../utils/bytes'\nimport { BeeResponseError } from '../utils/error'\nimport { bytesToHex, hexToBytes, HexString, makeHexString } from '../utils/hex'\nimport { readUint64BigEndian, writeUint64BigEndian } from '../utils/uint64'\nimport * as chunkAPI from '../modules/chunk'\nimport { EthAddress, HexEthAddress, makeHexEthAddress } from '../utils/eth'\n\nimport type { FeedType } from './type'\nimport { assertAddress } from '../utils/type'\nimport { makeFeedIdentifier } from './identifier'\nimport { makeBytesReference } from '../utils/reference'\n\nconst TIMESTAMP_PAYLOAD_OFFSET = 0\nconst TIMESTAMP_PAYLOAD_SIZE = 8\nconst REFERENCE_PAYLOAD_OFFSET = TIMESTAMP_PAYLOAD_SIZE\n\nexport interface Epoch {\n time: number\n level: number\n}\n\n/**\n * Bytes of Feed's Index.\n * For Sequential Feeds this is numeric value in big-endian.\n */\nexport type IndexBytes = Bytes<8>\nexport type Index = number | Epoch | IndexBytes | string\n\nexport interface FeedUploadOptions extends UploadOptions, FeedUpdateOptions {}\n\nexport interface FeedUpdate {\n timestamp: number\n reference: BytesReference\n}\n\nexport async function findNextIndex(\n ky: Ky,\n owner: HexEthAddress,\n topic: Topic,\n options?: FeedUpdateOptions,\n): Promise<HexString<typeof FEED_INDEX_HEX_LENGTH>> {\n try {\n const feedUpdate = await fetchLatestFeedUpdate(ky, owner, topic, options)\n\n return makeHexString(feedUpdate.feedIndexNext, FEED_INDEX_HEX_LENGTH)\n } catch (e) {\n if (e instanceof BeeResponseError && e.status === 404) {\n return bytesToHex(makeBytes(8))\n }\n throw e\n }\n}\n\nexport async function updateFeed(\n ky: Ky,\n signer: Signer,\n topic: Topic,\n reference: BytesReference,\n postageBatchId: BatchId,\n options?: FeedUploadOptions,\n index: Index = 'latest',\n): Promise<Reference> {\n const ownerHex = makeHexEthAddress(signer.address)\n const nextIndex = index === 'latest' ? await findNextIndex(ky, ownerHex, topic, options) : index\n\n const identifier = makeFeedIdentifier(topic, nextIndex)\n const at = options?.at ?? Date.now() / 1000.0\n const timestamp = writeUint64BigEndian(at)\n const payloadBytes = serializeBytes(timestamp, reference)\n\n return uploadSingleOwnerChunkData(ky, signer, postageBatchId, identifier, payloadBytes, options)\n}\n\nexport function getFeedUpdateChunkReference(owner: EthAddress, topic: Topic, index: Index): PlainBytesReference {\n const identifier = makeFeedIdentifier(topic, index)\n\n return keccak256Hash(identifier, owner)\n}\n\nexport async function downloadFeedUpdate(ky: Ky, owner: EthAddress, topic: Topic, index: Index): Promise<FeedUpdate> {\n const address = getFeedUpdateChunkReference(owner, topic, index)\n const addressHex = bytesToHex(address)\n const data = await chunkAPI.download(ky, addressHex)\n const soc = makeSingleOwnerChunkFromData(data, address)\n const payload = soc.payload()\n const timestampBytes = bytesAtOffset(payload, TIMESTAMP_PAYLOAD_OFFSET, TIMESTAMP_PAYLOAD_SIZE)\n const timestamp = readUint64BigEndian(timestampBytes)\n const reference = makeBytesReference(payload, REFERENCE_PAYLOAD_OFFSET)\n\n return {\n timestamp,\n reference,\n }\n}\n\nexport function makeFeedReader(ky: Ky, type: FeedType, topic: Topic, owner: HexEthAddress): FeedReader {\n return {\n type,\n owner,\n topic,\n async download(options?: FeedUpdateOptions): Promise<FetchFeedUpdateResponse> {\n if (!options?.index) {\n return fetchLatestFeedUpdate(ky, owner, topic, { ...options, type })\n }\n\n const update = await downloadFeedUpdate(ky, hexToBytes(owner), topic, options.index)\n\n return {\n reference: bytesToHex(update.reference),\n feedIndex: options.index,\n feedIndexNext: '',\n }\n },\n }\n}\n\nexport function makeFeedWriter(ky: Ky, type: FeedType, topic: Topic, signer: Signer): FeedWriter {\n const upload = async (\n postageBatchId: string | Address,\n reference: BytesReference | Reference,\n options?: FeedUploadOptions,\n ) => {\n assertAddress(postageBatchId)\n const canonicalReference = makeBytesReference(reference)\n\n return updateFeed(ky, signer, topic, canonicalReference, postageBatchId, { ...options, type })\n }\n\n return {\n ...makeFeedReader(ky, type, topic, makeHexEthAddress(signer.address)),\n upload,\n }\n}\n","import { FeedWriter, FeedReader, AnyJson, BatchId, Reference, RequestOptions } from '../types'\nimport { Bee } from '../bee'\nimport { isError } from '../utils/type'\n\nfunction serializeJson(data: AnyJson): Uint8Array {\n try {\n const jsonString = JSON.stringify(data)\n\n return new TextEncoder().encode(jsonString)\n } catch (e) {\n if (isError(e)) {\n e.message = `JsonFeed: ${e.message}`\n }\n throw e\n }\n}\n\nexport async function getJsonData<T extends AnyJson>(bee: Bee, reader: FeedReader): Promise<T> {\n const feedUpdate = await reader.download()\n const retrievedData = await bee.downloadData(feedUpdate.reference)\n\n return retrievedData.json() as T\n}\n\nexport async function setJsonData(\n bee: Bee,\n writer: FeedWriter,\n postageBatchId: BatchId,\n data: AnyJson,\n options?: RequestOptions,\n): Promise<Reference> {\n const serializedData = serializeJson(data)\n const { reference } = await bee.uploadData(postageBatchId, serializedData, options)\n\n return writer.upload(postageBatchId, reference)\n}\n","import { Bee } from '../bee'\nimport { EthAddress } from '../utils/eth'\nimport { Reference, RequestOptions, Topic } from '../types'\nimport { getFeedUpdateChunkReference, Index } from './index'\nimport { readUint64BigEndian } from '../utils/uint64'\nimport { bytesToHex } from '../utils/hex'\nimport { BeeResponseError } from '../utils/error'\n\nfunction makeNumericIndex(index: Index): number {\n if (index instanceof Uint8Array) {\n return readUint64BigEndian(index)\n }\n\n if (typeof index === 'string') {\n return parseInt(index)\n }\n\n if (typeof index === 'number') {\n return index\n }\n\n throw new TypeError('Unknown type of index!')\n}\n\n/**\n * Function that checks if a chunk is retrievable by actually downloading it.\n * The /stewardship/{reference} endpoint does not support verification of chunks, but only manifest's references.\n *\n * @param bee\n * @param ref\n * @param options\n */\nasync function isChunkRetrievable(bee: Bee, ref: Reference, options?: RequestOptions): Promise<boolean> {\n try {\n await bee.downloadChunk(ref, options)\n\n return true\n } catch (e) {\n const err = e as BeeResponseError\n\n if (err.status === 404) {\n return false\n }\n\n throw e\n }\n}\n\n/**\n * Creates array of references for all sequence updates chunk up to the given index.\n *\n * @param owner\n * @param topic\n * @param index\n */\nfunction getAllSequenceUpdateReferences(owner: EthAddress, topic: Topic, index: Index): Reference[] {\n const numIndex = makeNumericIndex(index)\n const updateReferences: Reference[] = new Array(numIndex + 1)\n\n for (let i = 0; i <= numIndex; i++) {\n updateReferences[i] = bytesToHex(getFeedUpdateChunkReference(owner, topic, i))\n }\n\n return updateReferences\n}\n\nexport async function areAllSequentialFeedsUpdateRetrievable(\n bee: Bee,\n owner: EthAddress,\n topic: Topic,\n index: Index,\n options?: RequestOptions,\n): Promise<boolean> {\n const chunkRetrievablePromises = getAllSequenceUpdateReferences(owner, topic, index).map(async ref =>\n isChunkRetrievable(bee, ref, options),\n )\n\n return (await Promise.all(chunkRetrievablePromises)).every(result => result)\n}\n","import { keccak256Hash } from '../utils/hash'\nimport { assertBytes } from '../utils/bytes'\nimport { makeHexString, bytesToHex } from '../utils/hex'\nimport { Topic, TOPIC_BYTES_LENGTH, TOPIC_HEX_LENGTH } from '../types'\n\nexport function makeTopic(topic: Uint8Array | string): Topic {\n if (typeof topic === 'string') {\n return makeHexString(topic, TOPIC_HEX_LENGTH)\n } else if (topic instanceof Uint8Array) {\n assertBytes(topic, TOPIC_BYTES_LENGTH)\n\n return bytesToHex(topic, TOPIC_HEX_LENGTH)\n }\n throw new TypeError('invalid topic')\n}\n\nexport function makeTopicFromString(s: string): Topic {\n if (typeof s !== 'string') {\n throw new TypeError('topic has to be string!')\n }\n\n return bytesToHex(keccak256Hash(s), TOPIC_HEX_LENGTH)\n}\n","const feedTypes = ['sequence', 'epoch'] as const\nexport type FeedType = typeof feedTypes[number]\nexport const DEFAULT_FEED_TYPE: FeedType = 'sequence'\n\nexport function isFeedType(type: unknown): type is FeedType {\n return typeof type === 'string' && feedTypes.includes(type as FeedType)\n}\nexport function assertFeedType(type: unknown): asserts type is FeedType {\n if (!isFeedType(type)) {\n throw new TypeError('invalid feed type')\n }\n}\n","import { Bee } from './bee'\nimport { BeeDebug } from './bee-debug'\n\nexport * as Utils from './utils/expose'\nexport * from './types'\nexport * from './utils/error'\nexport { SUPPORTED_BEE_VERSION, SUPPORTED_BEE_VERSION_EXACT } from './modules/debug/status'\nexport { Bee, BeeDebug }\n\n// for requrie-like imports\ndeclare global {\n interface Window {\n // binded as 'BeeJs' via Webpack\n BeeJs: {\n Bee: typeof import('./bee').Bee\n BeeDebug: typeof import('./bee-debug').BeeDebug\n Utils: typeof import('./utils/expose')\n BeeError: typeof import('./utils/error').BeeError\n BeeRequestError: typeof import('./utils/error').BeeRequestError\n BeeResponseError: typeof import('./utils/error').BeeResponseError\n BeeArgumentError: typeof import('./utils/error').BeeArgumentError\n }\n }\n}\n","import type { BatchId, Data, Ky, Reference, ReferenceOrEns, UploadOptions } from '../types'\nimport { prepareData } from '../utils/data'\nimport { extractUploadHeaders } from '../utils/headers'\nimport { http } from '../utils/http'\nimport { wrapBytesWithHelpers } from '../utils/bytes'\nimport { UploadResult } from '../types'\nimport { makeTagUid } from '../utils/type'\n\nconst endpoint = 'bytes'\n\n/**\n * Upload data to a Bee node\n *\n * @param ky Ky instance\n * @param data Data to be uploaded\n * @param postageBatchId Postage BatchId that will be assigned to uploaded data\n * @param options Additional options like tag, encryption, pinning\n */\nexport async function upload(\n ky: Ky,\n data: string | Uint8Array,\n postageBatchId: BatchId,\n options?: UploadOptions,\n): Promise<UploadResult> {\n const response = await http<{ reference: Reference }>(ky, {\n path: endpoint,\n method: 'post',\n responseType: 'json',\n body: await prepareData(data),\n headers: {\n 'content-type': 'application/octet-stream',\n ...extractUploadHeaders(postageBatchId, options),\n },\n })\n\n return {\n reference: response.data.reference,\n tagUid: makeTagUid(response.headers.get('swarm-tag')),\n }\n}\n\n/**\n * Download data as a byte array\n *\n * @param ky\n * @param hash Bee content reference\n */\nexport async function download(ky: Ky, hash: ReferenceOrEns): Promise<Data> {\n const response = await http<ArrayBuffer>(ky, {\n responseType: 'arraybuffer',\n path: `${endpoint}/${hash}`,\n })\n\n return wrapBytesWithHelpers(new Uint8Array(response.data))\n}\n\n/**\n * Download data as a readable stream\n *\n * @param ky\n * @param hash Bee content reference\n */\nexport async function downloadReadable(ky: Ky, hash: ReferenceOrEns): Promise<ReadableStream<Uint8Array>> {\n const response = await http<ReadableStream<Uint8Array>>(ky, {\n responseType: 'stream',\n path: `${endpoint}/${hash}`,\n })\n\n return response.data\n}\n","import {\n BatchId,\n Collection,\n CollectionUploadOptions,\n Data,\n FileData,\n FileUploadOptions,\n Ky,\n Readable,\n Reference,\n ReferenceOrEns,\n UploadHeaders,\n UploadResult,\n} from '../types'\nimport { extractUploadHeaders, readFileHeaders } from '../utils/headers'\nimport { http } from '../utils/http'\nimport { prepareData } from '../utils/data'\nimport { makeTar } from '../utils/tar'\nimport { assertCollection } from '../utils/collection'\nimport { wrapBytesWithHelpers } from '../utils/bytes'\nimport { isReadable } from '../utils/stream'\nimport { makeTagUid } from '../utils/type'\n\nconst bzzEndpoint = 'bzz'\n\ninterface FileUploadHeaders extends UploadHeaders {\n 'content-length'?: string\n 'content-type'?: string\n}\n\nfunction extractFileUploadHeaders(postageBatchId: BatchId, options?: FileUploadOptions): FileUploadHeaders {\n const headers: FileUploadHeaders = extractUploadHeaders(postageBatchId, options)\n\n if (options?.size) headers['content-length'] = String(options.size)\n\n if (options?.contentType) headers['content-type'] = options.contentType\n\n return headers\n}\n\n/**\n * Upload single file\n *\n * @param ky\n * @param data Files data\n * @param postageBatchId Postage BatchId that will be assigned to uploaded data\n * @param name Name that will be attached to the uploaded file. Wraps the data into manifest with set index document.\n * @param options\n */\nexport async function uploadFile(\n ky: Ky,\n data: string | Uint8Array | Readable | ArrayBuffer,\n postageBatchId: BatchId,\n name?: string,\n options?: FileUploadOptions,\n): Promise<UploadResult> {\n if (isReadable(data) && !options?.contentType) {\n if (!options) options = {}\n\n options.contentType = 'application/octet-stream'\n }\n\n const response = await http<{ reference: Reference }>(ky, {\n method: 'post',\n path: bzzEndpoint,\n body: await prepareData(data),\n headers: {\n ...extractFileUploadHeaders(postageBatchId, options),\n },\n searchParams: { name },\n responseType: 'json',\n })\n\n return {\n reference: response.data.reference,\n tagUid: makeTagUid(response.headers.get('swarm-tag')),\n }\n}\n\n/**\n * Download single file as a buffer\n *\n * @param ky Ky instance for given Bee class instance\n * @param hash Bee file or collection hash\n * @param path If hash is collection then this defines path to a single file in the collection\n */\nexport async function downloadFile(ky: Ky, hash: ReferenceOrEns, path = ''): Promise<FileData<Data>> {\n const response = await http<ArrayBuffer>(ky, {\n method: 'GET',\n responseType: 'arraybuffer',\n path: `${bzzEndpoint}/${hash}/${path}`,\n })\n const file = {\n ...readFileHeaders(response.headers),\n data: wrapBytesWithHelpers(new Uint8Array(response.data)),\n }\n\n return file\n}\n\n/**\n * Download single file as a readable stream\n *\n * @param ky Ky instance for given Bee class instance\n * @param hash Bee file or collection hash\n * @param path If hash is collection then this defines path to a single file in the collection\n */\nexport async function downloadFileReadable(\n ky: Ky,\n hash: ReferenceOrEns,\n path = '',\n): Promise<FileData<ReadableStream<Uint8Array>>> {\n const response = await http<ReadableStream<Uint8Array>>(ky, {\n method: 'GET',\n responseType: 'stream',\n path: `${bzzEndpoint}/${hash}/${path}`,\n })\n const file = {\n ...readFileHeaders(response.headers),\n data: response.data,\n }\n\n return file\n}\n\n/*******************************************************************************************************************/\n\n// Collections\n\ninterface CollectionUploadHeaders extends UploadHeaders {\n 'swarm-index-document'?: string\n 'swarm-error-document'?: string\n}\n\nfunction extractCollectionUploadHeaders(\n postageBatchId: BatchId,\n options?: CollectionUploadOptions,\n): CollectionUploadHeaders {\n const headers: CollectionUploadHeaders = extractUploadHeaders(postageBatchId, options)\n\n if (options?.indexDocument) headers['swarm-index-document'] = options.indexDocument\n\n if (options?.errorDocument) headers['swarm-error-document'] = options.errorDocument\n\n return headers\n}\n\n/**\n * Upload collection\n * @param ky Ky instance for given Bee class instance\n * @param collection Collection of Uint8Array buffers to upload\n * @param postageBatchId Postage BatchId that will be assigned to uploaded data\n * @param options\n */\nexport async function uploadCollection(\n ky: Ky,\n collection: Collection<Uint8Array>,\n postageBatchId: BatchId,\n options?: CollectionUploadOptions,\n): Promise<UploadResult> {\n assertCollection(collection)\n const tarData = makeTar(collection)\n\n const response = await http<{ reference: Reference }>(ky, {\n method: 'post',\n path: bzzEndpoint,\n body: tarData,\n responseType: 'json',\n headers: {\n 'content-type': 'application/x-tar',\n 'swarm-collection': 'true',\n ...extractCollectionUploadHeaders(postageBatchId, options),\n },\n })\n\n return {\n reference: response.data.reference,\n tagUid: makeTagUid(response.headers.get('swarm-tag')),\n }\n}\n","import type { BatchId, Data, Ky, Reference, ReferenceOrEns, ReferenceResponse, UploadOptions } from '../types'\nimport { extractUploadHeaders } from '../utils/headers'\nimport { http } from '../utils/http'\nimport { wrapBytesWithHelpers } from '../utils/bytes'\n\nconst endpoint = 'chunks'\n\n/**\n * Upload chunk to a Bee node\n *\n * The chunk data consists of 8 byte span and up to 4096 bytes of payload data.\n * The span stores the length of the payload in uint64 little endian encoding.\n * Upload expects the chuck data to be set accordingly.\n *\n * @param ky Ky instance\n * @param data Chunk data to be uploaded\n * @param postageBatchId Postage BatchId that will be assigned to uploaded data\n * @param options Additional options like tag, encryption, pinning\n */\nexport async function upload(\n ky: Ky,\n data: Uint8Array,\n postageBatchId: BatchId,\n options?: UploadOptions,\n): Promise<Reference> {\n const response = await http<ReferenceResponse>(ky, {\n method: 'post',\n path: `${endpoint}`,\n body: data,\n headers: {\n 'content-type': 'application/octet-stream',\n ...extractUploadHeaders(postageBatchId, options),\n },\n responseType: 'json',\n })\n\n return response.data.reference\n}\n\n/**\n * Download chunk data as a byte array\n *\n * @param ky Ky instance for given Bee class instance\n * @param hash Bee content reference\n *\n */\nexport async function download(ky: Ky, hash: ReferenceOrEns): Promise<Data> {\n const response = await http<ArrayBuffer>(ky, {\n responseType: 'arraybuffer',\n path: `${endpoint}/${hash}`,\n })\n\n return wrapBytesWithHelpers(new Uint8Array(response.data))\n}\n","import { http } from '../../utils/http'\nimport type { PeerBalance, BalanceResponse, Ky } from '../../types'\n\nconst balancesEndpoint = 'balances'\nconst consumedEndpoint = 'consumed'\n\n/**\n * Get the balances with all known peers including prepaid services\n *\n * @param ky Ky debug instance\n */\nexport async function getAllBalances(ky: Ky): Promise<BalanceResponse> {\n const response = await http<BalanceResponse>(ky, {\n path: balancesEndpoint,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get the balances with a specific peer including prepaid services\n *\n * @param ky Ky debug instance\n * @param address Swarm address of peer\n */\nexport async function getPeerBalance(ky: Ky, address: string): Promise<PeerBalance> {\n const response = await http<PeerBalance>(ky, {\n path: `${balancesEndpoint}/${address}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get the past due consumption balances with all known peers\n *\n * @param ky Ky debug instance\n */\nexport async function getPastDueConsumptionBalances(ky: Ky): Promise<BalanceResponse> {\n const response = await http<BalanceResponse>(ky, {\n path: consumedEndpoint,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get the past due consumption balance with a specific peer\n *\n * @param ky Ky debug instance\n * @param address Swarm address of peer\n */\nexport async function getPastDueConsumptionPeerBalance(ky: Ky, address: string): Promise<PeerBalance> {\n const response = await http<PeerBalance>(ky, {\n path: `${consumedEndpoint}/${address}`,\n responseType: 'json',\n })\n\n return response.data\n}\n","import { http } from '../../utils/http'\nimport type {\n ChequebookAddressResponse,\n ChequebookBalanceResponse,\n LastCashoutActionResponse,\n TransactionResponse,\n LastChequesForPeerResponse,\n LastChequesResponse,\n NumberString,\n Ky,\n CashoutOptions,\n TransactionHash,\n} from '../../types'\n\nconst chequebookEndpoint = 'chequebook'\n\n/**\n * Get the address of the chequebook contract used\n *\n * @param ky Ky debug instance\n */\nexport async function getChequebookAddress(ky: Ky): Promise<ChequebookAddressResponse> {\n const response = await http<ChequebookAddressResponse>(ky, {\n path: chequebookEndpoint + '/address',\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get the balance of the chequebook\n *\n * @param ky Ky debug instance\n */\nexport async function getChequebookBalance(ky: Ky): Promise<ChequebookBalanceResponse> {\n const response = await http<ChequebookBalanceResponse>(ky, {\n path: chequebookEndpoint + '/balance',\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get last cashout action for the peer\n *\n * @param ky Ky debug instance\n * @param peer Swarm address of peer\n */\nexport async function getLastCashoutAction(ky: Ky, peer: string): Promise<LastCashoutActionResponse> {\n const response = await http<LastCashoutActionResponse>(ky, {\n path: chequebookEndpoint + `/cashout/${peer}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Cashout the last cheque for the peer\n *\n * @param ky Ky debug instance\n * @param peer Swarm address of peer\n * @param options\n */\nexport async function cashoutLastCheque(ky: Ky, peer: string, options?: CashoutOptions): Promise<TransactionHash> {\n const headers: Record<string, string> = {}\n\n if (options?.gasPrice) {\n headers['gas-price'] = options.gasPrice.toString()\n }\n\n if (options?.gasLimit) {\n headers['gas-limit'] = options.gasLimit.toString()\n }\n\n const response = await http<TransactionResponse>(ky, {\n method: 'post',\n path: chequebookEndpoint + `/cashout/${peer}`,\n responseType: 'json',\n headers,\n })\n\n return response.data.transactionHash\n}\n\n/**\n * Get last cheques for the peer\n *\n * @param ky Ky debug instance\n * @param peer Swarm address of peer\n */\nexport async function getLastChequesForPeer(ky: Ky, peer: string): Promise<LastChequesForPeerResponse> {\n const response = await http<LastChequesForPeerResponse>(ky, {\n path: chequebookEndpoint + `/cheque/${peer}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get last cheques for all peers\n *\n * @param ky Ky debug instance\n */\nexport async function getLastCheques(ky: Ky): Promise<LastChequesResponse> {\n const response = await http<LastChequesResponse>(ky, {\n path: chequebookEndpoint + '/cheque',\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Deposit tokens from overlay address into chequebook\n *\n * @param ky Ky debug instance\n * @param amount Amount of tokens to deposit\n * @param gasPrice Gas Price in WEI for the transaction call\n * @return string Hash of the transaction\n */\nexport async function depositTokens(\n ky: Ky,\n amount: number | NumberString,\n gasPrice?: NumberString,\n): Promise<TransactionHash> {\n const headers: Record<string, string> = {}\n\n if (gasPrice) {\n headers['gas-price'] = gasPrice.toString()\n }\n\n const response = await http<TransactionResponse>(ky, {\n method: 'post',\n path: chequebookEndpoint + '/deposit',\n responseType: 'json',\n searchParams: { amount: amount.toString(10) },\n headers,\n })\n\n return response.data.transactionHash\n}\n\n/**\n * Withdraw tokens from the chequebook to the overlay address\n *\n * @param ky Ky debug instance\n * @param amount Amount of tokens to withdraw\n * @param gasPrice Gas Price in WEI for the transaction call\n * @return string Hash of the transaction\n */\nexport async function withdrawTokens(\n ky: Ky,\n amount: number | NumberString,\n gasPrice?: NumberString,\n): Promise<TransactionHash> {\n const headers: Record<string, string> = {}\n\n if (gasPrice) {\n headers['gas-price'] = gasPrice.toString()\n }\n\n const response = await http<TransactionResponse>(ky, {\n method: 'post',\n path: chequebookEndpoint + '/withdraw',\n responseType: 'json',\n searchParams: { amount: amount.toString(10) },\n headers,\n })\n\n return response.data.transactionHash\n}\n","import { http } from '../../utils/http'\nimport type { Ky, NodeAddresses, Peer, PingResponse, RemovePeerResponse, Topology } from '../../types'\n\nexport async function getNodeAddresses(ky: Ky): Promise<NodeAddresses> {\n const response = await http<NodeAddresses>(ky, {\n path: 'addresses',\n responseType: 'json',\n })\n\n return response.data\n}\ninterface Peers {\n peers: Peer[]\n}\n\nexport async function getPeers(ky: Ky): Promise<Peer[]> {\n const response = await http<Peers>(ky, {\n path: 'peers',\n responseType: 'json',\n })\n\n return response.data.peers || []\n}\n\nexport async function getBlocklist(ky: Ky): Promise<Peer[]> {\n const response = await http<Peers>(ky, {\n path: 'blocklist',\n responseType: 'json',\n })\n\n return response.data.peers || []\n}\n\nexport async function removePeer(ky: Ky, peer: string): Promise<RemovePeerResponse> {\n const response = await http<RemovePeerResponse>(ky, {\n path: `peers/${peer}`,\n responseType: 'json',\n method: 'DELETE',\n })\n\n return response.data\n}\n\nexport async function getTopology(ky: Ky): Promise<Topology> {\n const response = await http<Topology>(ky, {\n path: `topology`,\n responseType: 'json',\n })\n\n return response.data\n}\n\nexport async function pingPeer(ky: Ky, peer: string): Promise<PingResponse> {\n const response = await http<PingResponse>(ky, {\n path: `pingpong/${peer}`,\n responseType: 'json',\n method: 'POST',\n })\n\n return response.data\n}\n","import { http } from '../../utils/http'\nimport type { Settlements, AllSettlements, Ky } from '../../types'\n\nconst settlementsEndpoint = 'settlements'\n\n/**\n * Get amount of sent and received from settlements with a peer\n *\n * @param ky Ky debug instance\n * @param peer Swarm address of peer\n */\nexport async function getSettlements(ky: Ky, peer: string): Promise<Settlements> {\n const response = await http<Settlements>(ky, {\n path: `${settlementsEndpoint}/${peer}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get settlements with all known peers and total amount sent or received\n *\n * @param ky Ky debug instance\n */\nexport async function getAllSettlements(ky: Ky): Promise<AllSettlements> {\n const response = await http<AllSettlements>(ky, {\n path: settlementsEndpoint,\n responseType: 'json',\n })\n\n return response.data\n}\n","import type { BatchId, PostageBatch, Ky, NumberString, PostageBatchBuckets, PostageBatchOptions } from '../../types'\nimport { http } from '../../utils/http'\n\nconst STAMPS_ENDPOINT = 'stamps'\n\ninterface GetAllStampsResponse {\n stamps: PostageBatch[]\n}\n\ninterface StampResponse {\n batchID: BatchId\n}\n\nexport async function getAllPostageBatches(ky: Ky): Promise<PostageBatch[]> {\n const response = await http<GetAllStampsResponse>(ky, {\n method: 'get',\n path: `${STAMPS_ENDPOINT}`,\n responseType: 'json',\n })\n\n return response.data.stamps || []\n}\n\nexport async function getPostageBatch(ky: Ky, postageBatchId: BatchId): Promise<PostageBatch> {\n const response = await http<PostageBatch>(ky, {\n method: 'get',\n path: `${STAMPS_ENDPOINT}/${postageBatchId}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\nexport async function getPostageBatchBuckets(ky: Ky, postageBatchId: BatchId): Promise<PostageBatchBuckets> {\n const response = await http<PostageBatchBuckets>(ky, {\n method: 'get',\n path: `${STAMPS_ENDPOINT}/${postageBatchId}/buckets`,\n responseType: 'json',\n })\n\n return response.data\n}\n\nexport async function createPostageBatch(\n ky: Ky,\n amount: NumberString,\n depth: number,\n options?: PostageBatchOptions,\n): Promise<BatchId> {\n const headers: Record<string, string> = {}\n\n if (options?.gasPrice) {\n headers['gas-price'] = options.gasPrice.toString()\n }\n\n if (options?.immutableFlag !== undefined) {\n headers.immutable = String(options.immutableFlag)\n }\n\n const response = await http<StampResponse>(ky, {\n method: 'post',\n path: `${STAMPS_ENDPOINT}/${amount}/${depth}`,\n responseType: 'json',\n searchParams: { label: options?.label },\n headers,\n })\n\n return response.data.batchID\n}\n\nexport async function topUpBatch(ky: Ky, id: string, amount: NumberString): Promise<BatchId> {\n const response = await http<StampResponse>(ky, {\n method: 'patch',\n path: `${STAMPS_ENDPOINT}/topup/${id}/${amount}`,\n responseType: 'json',\n })\n\n return response.data.batchID\n}\n\nexport async function diluteBatch(ky: Ky, id: string, depth: number): Promise<BatchId> {\n const response = await http<StampResponse>(ky, {\n method: 'patch',\n path: `${STAMPS_ENDPOINT}/dilute/${id}/${depth}`,\n responseType: 'json',\n })\n\n return response.data.batchID\n}\n","import { http } from '../../utils/http'\nimport { ChainState, Ky, ReserveState, WalletBalance } from '../../types'\n\nconst RESERVE_STATE_ENDPOINT = 'reservestate'\nconst WALLET_ENDPOINT = 'wallet'\nconst CHAIN_STATE_ENDPOINT = 'chainstate'\n\n/**\n * Get state of reserve\n *\n * @param ky Ky debug instance\n */\nexport async function getReserveState(ky: Ky): Promise<ReserveState> {\n const response = await http<ReserveState>(ky, {\n method: 'get',\n path: `${RESERVE_STATE_ENDPOINT}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get state of reserve\n *\n * @param ky Ky debug instance\n */\nexport async function getChainState(ky: Ky): Promise<ChainState> {\n const response = await http<ChainState>(ky, {\n method: 'get',\n path: `${CHAIN_STATE_ENDPOINT}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get wallet balances for xDai and BZZ of the node\n *\n * @param ky Ky debug instance\n */\nexport async function getWalletBalance(ky: Ky): Promise<WalletBalance> {\n const response = await http<WalletBalance>(ky, {\n method: 'get',\n path: `${WALLET_ENDPOINT}`,\n responseType: 'json',\n })\n\n return response.data\n}\n","import { http } from '../../utils/http'\nimport type { Health, NodeInfo } from '../../types/debug'\nimport { Ky } from '../../types'\nimport { BeeVersions } from '../../types/debug'\nimport getMajorSemver from 'semver/functions/major.js'\n\n// Following lines bellow are automatically updated with GitHub Action when Bee version is updated\n// so if you are changing anything about them change the `update_bee` action accordingly!\nexport const SUPPORTED_BEE_VERSION_EXACT = '1.6.0-6ceadd35'\nexport const SUPPORTED_API_VERSION = '3.0.1'\nexport const SUPPORTED_DEBUG_API_VERSION = '2.0.1'\n\nexport const SUPPORTED_BEE_VERSION = SUPPORTED_BEE_VERSION_EXACT.substring(0, SUPPORTED_BEE_VERSION_EXACT.indexOf('-'))\n\nconst NODE_INFO_URL = 'node'\nconst HEALTH_URL = 'health'\n\n/**\n * Get health of node\n *\n * @param ky Ky debug instance\n */\nexport async function getHealth(ky: Ky): Promise<Health> {\n const response = await http<Health>(ky, {\n method: 'get',\n path: HEALTH_URL,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get information about Bee node\n *\n * @param ky Ky debug instance\n */\nexport async function getNodeInfo(ky: Ky): Promise<NodeInfo> {\n const response = await http<NodeInfo>(ky, {\n method: 'get',\n path: NODE_INFO_URL,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Connects to a node and checks if it is a supported Bee version by the bee-js\n *\n * @param ky Ky debug instance\n *\n * @returns true if the Bee node version is supported\n * @deprecated Use `isSupportedExactVersion` instead\n */\nexport async function isSupportedVersion(ky: Ky): Promise<boolean> {\n return isSupportedExactVersion(ky)\n}\n\n/**\n * Connects to a node and checks if its version matches with the one that bee-js supports.\n *\n * Be aware that this is the most strict version check and most probably\n * you will want to use more relaxed API-versions based checks like\n * `isSupportedApiVersion`, `isSupportedMainApiVersion` or `isSupportedDebugApiVersion`\n * based on your use-case.\n *\n * @param ky\n */\nexport async function isSupportedExactVersion(ky: Ky): Promise<boolean> {\n const { version } = await getHealth(ky)\n\n return version === SUPPORTED_BEE_VERSION_EXACT\n}\n\n/**\n * Connects to a node and checks if its main's API version matches with the one that bee-js supports.\n *\n * This is useful if you are not using `BeeDebug` class (for anything else then this check)\n * and want to make sure about compatibility.\n *\n * @param ky\n */\nexport async function isSupportedMainApiVersion(ky: Ky): Promise<boolean> {\n const { apiVersion } = await getHealth(ky)\n\n return getMajorSemver(apiVersion) === getMajorSemver(SUPPORTED_API_VERSION)\n}\n\n/**\n * Connects to a node and checks if its Debug API version matches with the one that bee-js supports.\n *\n * This is useful if you are not using `Bee` class in your application and want to make sure\n * about compatibility.\n *\n * @param ky\n */\nexport async function isSupportedDebugApiVersion(ky: Ky): Promise<boolean> {\n const { debugApiVersion } = await getHealth(ky)\n\n return getMajorSemver(debugApiVersion) === getMajorSemver(SUPPORTED_DEBUG_API_VERSION)\n}\n\n/**\n * Connects to a node and checks if its Main and Debug API versions matches with the one that bee-js supports.\n *\n * This should be the main way how to check compatibility for your app and Bee node.\n *\n * @param ky\n */\nexport async function isSupportedApiVersion(ky: Ky): Promise<boolean> {\n const { apiVersion, debugApiVersion } = await getHealth(ky)\n\n return (\n getMajorSemver(apiVersion) === getMajorSemver(SUPPORTED_API_VERSION) &&\n getMajorSemver(debugApiVersion) === getMajorSemver(SUPPORTED_DEBUG_API_VERSION)\n )\n}\n\n/**\n * Returns object with all versions specified by the connected Bee node (properties prefixed with `bee*`)\n * and versions that bee-js supports (properties prefixed with `supported*`).\n *\n * @param ky\n */\nexport async function getVersions(ky: Ky): Promise<BeeVersions> {\n const { version, apiVersion, debugApiVersion } = await getHealth(ky)\n\n return {\n supportedBeeVersion: SUPPORTED_BEE_VERSION_EXACT,\n supportedBeeApiVersion: SUPPORTED_API_VERSION,\n supportedBeeDebugApiVersion: SUPPORTED_DEBUG_API_VERSION,\n beeVersion: version,\n beeApiVersion: apiVersion,\n beeDebugApiVersion: debugApiVersion,\n }\n}\n","import { ExtendedTag, Ky } from '../../types'\nimport { http } from '../../utils/http'\n\nconst endpoint = 'tags'\n\n/**\n * Retrieve tag with extended information from Bee node\n *\n * @param ky Ky debug instance\n * @param uid UID of tag to be retrieved\n */\nexport async function retrieveExtendedTag(ky: Ky, uid: number): Promise<ExtendedTag> {\n const response = await http<ExtendedTag>(ky, {\n path: `${endpoint}/${uid}`,\n responseType: 'json',\n })\n\n return response.data\n}\n","import { Ky, NumberString, TransactionHash, TransactionInfo } from '../../types'\nimport { http } from '../../utils/http'\n\nconst transactionsEndpoint = 'transactions'\n\ninterface PendingTransactionsResponse {\n pendingTransactions: TransactionInfo[]\n}\n\ninterface TransactionResponse {\n transactionHash: TransactionHash\n}\n\n/**\n * Get list of all pending transactions\n *\n * @param ky Debug Ky instance\n */\nexport async function getAllTransactions(ky: Ky): Promise<TransactionInfo[]> {\n const response = await http<PendingTransactionsResponse>(ky, {\n path: transactionsEndpoint,\n responseType: 'json',\n })\n\n return response.data.pendingTransactions\n}\n\n/**\n * Get information for specific pending transactions\n *\n * @param ky Debug Ky instance\n * @param transactionHash Hash of the transaction\n */\nexport async function getTransaction(ky: Ky, transactionHash: TransactionHash): Promise<TransactionInfo> {\n const response = await http<TransactionInfo>(ky, {\n path: `${transactionsEndpoint}/${transactionHash}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Rebroadcast existing transaction\n *\n * @param ky Debug Ky instance\n * @param transactionHash Hash of the transaction\n */\nexport async function rebroadcastTransaction(ky: Ky, transactionHash: TransactionHash): Promise<TransactionHash> {\n const response = await http<TransactionResponse>(ky, {\n method: 'post',\n path: `${transactionsEndpoint}/${transactionHash}`,\n responseType: 'json',\n })\n\n return response.data.transactionHash\n}\n\n/**\n * Cancel existing transaction\n *\n * @param ky Debug Ky instance\n * @param transactionHash Hash of the transaction\n * @param gasPrice Optional gas price\n */\nexport async function cancelTransaction(\n ky: Ky,\n transactionHash: TransactionHash,\n gasPrice?: NumberString,\n): Promise<TransactionHash> {\n const response = await http<TransactionResponse>(ky, {\n method: 'delete',\n headers: { 'gas-price': gasPrice },\n path: `${transactionsEndpoint}/${transactionHash}`,\n responseType: 'json',\n })\n\n return response.data.transactionHash\n}\n","import { BatchId, Ky, Reference, ReferenceResponse, Topic } from '../types'\nimport { filterHeaders, http } from '../utils/http'\nimport { FeedType } from '../feed/type'\nimport { HexEthAddress } from '../utils/eth'\nimport { extractUploadHeaders } from '../utils/headers'\nimport { BeeError } from '../utils/error'\n\nconst feedEndpoint = 'feeds'\n\nexport interface CreateFeedOptions {\n type?: FeedType\n}\n\nexport interface FeedUpdateOptions {\n /**\n * Specifies the start date as unix time stamp\n */\n at?: number\n\n /**\n * Can be 'epoch' or 'sequence' (default: 'sequence')\n */\n type?: FeedType\n\n /**\n * Fetch specific previous Feed's update (default fetches latest update)\n */\n index?: string\n}\n\ninterface FeedUpdateHeaders {\n /**\n * The current feed's index\n */\n feedIndex: string\n\n /**\n * The feed's index for next update.\n * Only set for the latest update. If update is fetched using previous index, then this is an empty string.\n */\n feedIndexNext: string\n}\nexport interface FetchFeedUpdateResponse extends ReferenceResponse, FeedUpdateHeaders {}\n\n/**\n * Create an initial feed root manifest\n *\n * @param ky Ky instance\n * @param owner Owner's ethereum address in hex\n * @param topic Topic in hex\n * @param postageBatchId Postage BatchId to be used to create the Feed Manifest\n * @param options Additional options, like type (default: 'sequence')\n */\nexport async function createFeedManifest(\n ky: Ky,\n owner: HexEthAddress,\n topic: Topic,\n postageBatchId: BatchId,\n options?: CreateFeedOptions,\n): Promise<Reference> {\n const response = await http<ReferenceResponse>(ky, {\n method: 'post',\n responseType: 'json',\n path: `${feedEndpoint}/${owner}/${topic}`,\n searchParams: filterHeaders(options),\n headers: extractUploadHeaders(postageBatchId),\n })\n\n return response.data.reference\n}\n\nfunction readFeedUpdateHeaders(headers: Headers): FeedUpdateHeaders {\n const feedIndex = headers.get('swarm-feed-index')\n const feedIndexNext = headers.get('swarm-feed-index-next')\n\n if (!feedIndex) {\n throw new BeeError('Response did not contain expected swarm-feed-index!')\n }\n\n if (!feedIndexNext) {\n throw new BeeError('Response did not contain expected swarm-feed-index-next!')\n }\n\n return {\n feedIndex,\n feedIndexNext,\n }\n}\n\n/**\n * Find and retrieve feed update\n *\n * The feed consists of updates. This endpoint looks up an\n * update that matches the provided parameters and returns\n * the reference it contains along with its index and the\n * index of the subsequent update.\n *\n * @param ky Ky instance\n * @param owner Owner's ethereum address in hex\n * @param topic Topic in hex\n * @param options Additional options, like index, at, type\n */\nexport async function fetchLatestFeedUpdate(\n ky: Ky,\n owner: HexEthAddress,\n topic: Topic,\n options?: FeedUpdateOptions,\n): Promise<FetchFeedUpdateResponse> {\n const response = await http<ReferenceResponse>(ky, {\n responseType: 'json',\n path: `${feedEndpoint}/${owner}/${topic}`,\n searchParams: filterHeaders(options),\n })\n\n return {\n ...response.data,\n ...readFeedUpdateHeaders(response.headers),\n }\n}\n","import type { BeeGenericResponse, Ky, Pin, Reference } from '../types'\nimport { http } from '../utils/http'\n\nconst PINNING_ENDPOINT = 'pins'\n\nexport interface GetAllPinResponse {\n references: Reference[] | null\n}\n\n/**\n * Pin data with given reference\n *\n * @param ky Ky instance for given Bee class instance\n * @param reference Bee data reference\n */\nexport async function pin(ky: Ky, reference: Reference): Promise<void> {\n await http<BeeGenericResponse>(ky, {\n method: 'post',\n responseType: 'json',\n path: `${PINNING_ENDPOINT}/${reference}`,\n })\n}\n\n/**\n * Unpin data with given reference\n *\n * @param ky Ky instance for given Bee class instance\n * @param reference Bee data reference\n */\nexport async function unpin(ky: Ky, reference: Reference): Promise<void> {\n await http<BeeGenericResponse>(ky, {\n method: 'delete',\n responseType: 'json',\n path: `${PINNING_ENDPOINT}/${reference}`,\n })\n}\n\n/**\n * Get pin status for specific address.\n *\n * @param ky Ky instance\n * @param reference\n * @throws Error if given address is not pinned\n */\nexport async function getPin(ky: Ky, reference: Reference): Promise<Pin> {\n const response = await http<Pin>(ky, {\n method: 'get',\n responseType: 'json',\n path: `${PINNING_ENDPOINT}/${reference}`,\n })\n\n return response.data\n}\n\n/**\n * Get list of all pins\n *\n * @param ky Ky instance\n */\nexport async function getAllPins(ky: Ky): Promise<Reference[]> {\n const response = await http<GetAllPinResponse>(ky, {\n method: 'get',\n responseType: 'json',\n path: `${PINNING_ENDPOINT}`,\n })\n\n const result = response.data.references\n\n if (result === null) {\n return []\n }\n\n return result\n}\n","import WebSocket from 'isomorphic-ws'\n\nimport type { BatchId, BeeGenericResponse, Ky, PublicKey } from '../types'\nimport { prepareData } from '../utils/data'\nimport { http } from '../utils/http'\nimport { extractUploadHeaders } from '../utils/headers'\n\nconst endpoint = 'pss'\n\n/**\n * Send to recipient or target with Postal Service for Swarm\n *\n * @param ky Ky instance for given Bee class instance\n * @param topic Topic name\n * @param target Target message address prefix\n * @param data\n * @param postageBatchId Postage BatchId that will be assigned to sent message\n * @param recipient Recipient public key\n *\n */\nexport async function send(\n ky: Ky,\n topic: string,\n target: string,\n data: string | Uint8Array,\n postageBatchId: BatchId,\n recipient?: PublicKey,\n): Promise<void> {\n await http<BeeGenericResponse>(ky, {\n method: 'post',\n path: `${endpoint}/send/${topic}/${target}`,\n body: await prepareData(data),\n responseType: 'json',\n searchParams: { recipient },\n headers: extractUploadHeaders(postageBatchId),\n })\n}\n\n/**\n * Subscribe for messages on the given topic\n *\n * @param url Bee node URL\n * @param topic Topic name\n */\nexport function subscribe(url: string, topic: string): WebSocket {\n const wsUrl = url.replace(/^http/i, 'ws')\n\n return new WebSocket(`${wsUrl}/${endpoint}/subscribe/${topic}`)\n}\n","import { BatchId, Ky, Reference, ReferenceResponse, UploadOptions } from '../types'\nimport { extractUploadHeaders } from '../utils/headers'\nimport { http } from '../utils/http'\n\nconst socEndpoint = 'soc'\n\n/**\n * Upload single owner chunk (SOC) to a Bee node\n *\n * @param ky Ky instance\n * @param owner Owner's ethereum address in hex\n * @param identifier Arbitrary identifier in hex\n * @param signature Signature in hex\n * @param data Content addressed chunk data to be uploaded\n * @param postageBatchId Postage BatchId that will be assigned to uploaded data\n * @param options Additional options like tag, encryption, pinning\n */\nexport async function upload(\n ky: Ky,\n owner: string,\n identifier: string,\n signature: string,\n data: Uint8Array,\n postageBatchId: BatchId,\n options?: UploadOptions,\n): Promise<Reference> {\n const response = await http<ReferenceResponse>(ky, {\n method: 'post',\n path: `${socEndpoint}/${owner}/${identifier}`,\n body: data,\n headers: {\n 'content-type': 'application/octet-stream',\n ...extractUploadHeaders(postageBatchId, options),\n },\n responseType: 'json',\n searchParams: { sig: signature },\n })\n\n return response.data.reference\n}\n","import { http } from '../utils/http'\nimport { Ky } from '../types'\n\n/**\n * Ping the base bee URL. If connection was not successful throw error\n *\n * @param ky Ky instance for given Bee class instance\n */\nexport async function checkConnection(ky: Ky): Promise<void> | never {\n await http<string>(ky, {\n path: '',\n })\n}\n","import type { Ky, ReferenceOrEns } from '../types'\nimport { http } from '../utils/http'\n\nconst stewardshipEndpoint = 'stewardship'\n\n/**\n * Reupload locally pinned data\n * @param ky Ky instance\n * @param reference\n * @param options\n * @throws BeeResponseError if not locally pinned or invalid data\n */\nexport async function reupload(ky: Ky, reference: ReferenceOrEns): Promise<void> {\n await http(ky, {\n method: 'put',\n path: `${stewardshipEndpoint}/${reference}`,\n })\n}\n\ninterface IsRetrievableResponse {\n isRetrievable: boolean\n}\n\nexport async function isRetrievable(ky: Ky, reference: ReferenceOrEns): Promise<boolean> {\n const response = await http<IsRetrievableResponse>(ky, {\n method: 'get',\n responseType: 'json',\n path: `${stewardshipEndpoint}/${reference}`,\n })\n\n return response.data.isRetrievable\n}\n","import { Ky, Reference, Tag } from '../types'\nimport { http } from '../utils/http'\n\nconst endpoint = 'tags'\n\ninterface GetAllTagsResponse {\n tags: Tag[]\n}\n\n/**\n * Create new tag on the Bee node\n *\n * @param url Bee tag URL\n */\nexport async function createTag(ky: Ky): Promise<Tag> {\n const response = await http<Tag>(ky, {\n method: 'post',\n path: endpoint,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Retrieve tag information from Bee node\n *\n * @param url Bee tag URL\n * @param uid UID of tag to be retrieved\n */\nexport async function retrieveTag(ky: Ky, uid: number): Promise<Tag> {\n const response = await http<Tag>(ky, {\n path: `${endpoint}/${uid}`,\n responseType: 'json',\n })\n\n return response.data\n}\n\n/**\n * Get limited listing of all tags.\n *\n * @param url\n * @param offset\n * @param limit\n */\nexport async function getAllTags(ky: Ky, offset?: number, limit?: number): Promise<Tag[]> {\n const response = await http<GetAllTagsResponse>(ky, {\n path: `${endpoint}`,\n searchParams: { offset, limit },\n responseType: 'json',\n })\n\n return response.data.tags\n}\n\n/**\n * Removes tag from the Bee node.\n * @param url\n * @param uid\n */\nexport async function deleteTag(ky: Ky, uid: number): Promise<void> {\n await http<void>(ky, {\n method: 'delete',\n path: `${endpoint}/${uid}`,\n })\n}\n\n/**\n * Updates tag\n * @param url\n * @param uid\n * @param reference\n */\nexport async function updateTag(ky: Ky, uid: number, reference: Reference): Promise<void> {\n await http<void>(ky, {\n method: 'patch',\n path: `${endpoint}/${uid}`,\n json: {\n reference,\n },\n })\n}\n","import { PublicKey, NumberString, Reference, TransactionHash, RequestOptions } from './index'\nimport { HexEthAddress } from '../utils/eth'\n\n/**\n * Object that contains information about progress of upload of data to network.\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n */\nexport interface ExtendedTag {\n /**\n * Number of all chunks that the data will be split into.\n */\n total: number\n\n /**\n * Number of chunks already processed by splitter for hashing\n */\n split: number\n\n /**\n * Number of chunks already seen\n */\n seen: number\n\n /**\n * Number of chunks already stored locally\n */\n stored: number\n\n /**\n * Number of chunks sent for push syncing\n */\n sent: number\n\n /**\n * Number of chunks synced with proof\n */\n synced: number\n\n /**\n * Unique identifier\n */\n uid: number\n\n /**\n * The associated swarm hash for this tag\n */\n address: Reference\n\n /**\n * When the upload process started\n */\n startedAt: string\n}\n\nexport interface Settlements {\n peer: string\n received: NumberString\n sent: NumberString\n}\n\nexport interface AllSettlements {\n totalReceived: NumberString\n totalSent: NumberString\n settlements: Settlements[]\n}\n\nexport interface NodeAddresses {\n overlay: string\n underlay: string[]\n ethereum: HexEthAddress\n publicKey: PublicKey\n pssPublicKey: PublicKey\n}\n\nexport interface Peer {\n address: string\n}\n\nexport interface ChequebookAddressResponse {\n chequebookAddress: string\n}\n\nexport interface ChequebookBalanceResponse {\n totalBalance: NumberString\n availableBalance: NumberString\n}\n\nexport interface CashoutOptions extends RequestOptions {\n /**\n * Gas price for the cashout transaction in WEI\n */\n gasPrice?: NumberString\n\n /**\n * Gas limit for the cashout transaction in WEI\n */\n gasLimit?: NumberString\n}\n\nexport interface CashoutResult {\n recipient: string\n lastPayout: NumberString\n bounced: boolean\n}\n\nexport interface LastCashoutActionResponse {\n peer: string\n uncashedAmount: NumberString\n transactionHash: string | null\n lastCashedCheque: Cheque | null\n result: CashoutResult | null\n}\n\nexport interface TransactionResponse {\n transactionHash: TransactionHash\n}\n\nexport interface Cheque {\n beneficiary: string\n chequebook: string\n payout: NumberString\n}\n\nexport interface LastChequesForPeerResponse {\n peer: string\n lastreceived: Cheque\n lastsent: Cheque\n}\n\nexport interface LastChequesResponse {\n lastcheques: LastChequesForPeerResponse[]\n}\n\nexport interface PeerBalance {\n peer: string\n balance: NumberString\n}\n\nexport interface BalanceResponse {\n balances: PeerBalance[]\n}\n\nexport interface Health {\n status: 'ok'\n version: string\n apiVersion: string\n debugApiVersion: string\n}\n\nexport interface BeeVersions {\n supportedBeeVersion: string\n supportedBeeApiVersion: string\n supportedBeeDebugApiVersion: string\n beeVersion: string\n beeApiVersion: string\n beeDebugApiVersion: string\n}\n\nexport enum BeeModes {\n FULL = 'full',\n LIGHT = 'light',\n ULTRA_LIGHT = 'ultra-light',\n DEV = 'dev',\n}\n\n/**\n * Information about Bee node and its configuration\n */\nexport interface NodeInfo {\n /**\n * Indicates whether the node is in a Gateway mode.\n * Gateway mode is a restricted mode where some features are not available.\n */\n gatewayMode: boolean\n\n /**\n * Indicates in what mode Bee is running.\n */\n beeMode: BeeModes\n\n /**\n * Indicates whether the Bee node has its own deployed chequebook.\n *\n * @see [Bee docs - Chequebook](https://docs.ethswarm.org/docs/introduction/terminology#cheques--chequebook)\n */\n chequebookEnabled: boolean\n\n /**\n * Indicates whether SWAP is enabled for the Bee node.\n *\n * @see [Bee docs - SWAP](https://docs.ethswarm.org/docs/introduction/terminology#swap)\n */\n swapEnabled: boolean\n}\n\n/**\n * Information about Bee node and its configuration\n * @deprecated Use NodeInfo instead\n */\nexport type NodesInfo = NodeInfo\n\nexport interface RemovePeerResponse {\n message: string\n code: 0\n}\n\nexport interface Bin {\n population: number\n connected: number\n disconnectedPeers: Peer[] | null\n connectedPeers: Peer[] | null\n}\n\nexport interface Topology {\n baseAddr: string\n population: number\n connected: number\n timestamp: string\n nnLowWatermark: number\n depth: number\n bins: {\n bin_0: Bin\n bin_1: Bin\n bin_2: Bin\n bin_3: Bin\n bin_4: Bin\n bin_5: Bin\n bin_6: Bin\n bin_7: Bin\n bin_8: Bin\n bin_9: Bin\n bin_10: Bin\n bin_11: Bin\n bin_12: Bin\n bin_13: Bin\n bin_14: Bin\n bin_15: Bin\n }\n}\n\nexport interface PingResponse {\n rtt: string\n}\n\nexport interface ReserveState {\n radius: number\n commitment: number\n storageRadius: number\n}\n\nexport interface ChainState {\n block: number\n totalAmount: NumberString\n currentPrice: NumberString\n}\n\nexport interface WalletBalance {\n /**\n * Balance of BZZ tokens\n */\n bzz: NumberString\n\n /**\n * Balance of xDai\n */\n xDai: NumberString\n\n /**\n * Chain network ID to which the Bee node is connected\n */\n chainID: number\n\n /**\n * Chequebook contract address\n */\n contractAddress: string\n}\n","import type { Identifier, SingleOwnerChunk } from '../chunk/soc'\nimport type { FeedUploadOptions } from '../feed'\nimport type { FeedType } from '../feed/type'\nimport type { FeedUpdateOptions, FetchFeedUpdateResponse } from '../modules/feed'\nimport type { Bytes } from '../utils/bytes'\nimport type { BeeError } from '../utils/error'\nimport type { EthAddress, HexEthAddress } from '../utils/eth'\nimport type { HexString } from '../utils/hex'\nimport type ky from 'ky-universal'\n\nimport type { Readable as NativeReadable } from 'stream'\nimport type { Readable as CompatibilityReadable } from 'readable-stream'\nimport type { ReadableStream as ReadableStreamPonyfill } from 'web-streams-polyfill'\nimport { Options as KyOptions } from './ky-options'\n\nexport * from './debug'\n\nexport type Ky = typeof ky\n\nexport interface Dictionary<T> {\n [Key: string]: T\n}\n\nexport const SPAN_SIZE = 8\nexport const SECTION_SIZE = 32\nexport const BRANCHES = 128\nexport const CHUNK_SIZE = SECTION_SIZE * BRANCHES\n\nexport const ADDRESS_HEX_LENGTH = 64\nexport const PSS_TARGET_HEX_LENGTH_MAX = 6\nexport const PUBKEY_HEX_LENGTH = 66\nexport const BATCH_ID_HEX_LENGTH = 64\nexport const REFERENCE_HEX_LENGTH = 64\nexport const ENCRYPTED_REFERENCE_HEX_LENGTH = 128\nexport const REFERENCE_BYTES_LENGTH = 32\nexport const ENCRYPTED_REFERENCE_BYTES_LENGTH = 64\n\n/**\n * Minimal depth that can be used for creation of postage batch\n */\nexport const STAMPS_DEPTH_MIN = 17\n\n/**\n * Maximal depth that can be used for creation of postage batch\n */\nexport const STAMPS_DEPTH_MAX = 255\n\nexport const TAGS_LIMIT_MIN = 1\nexport const TAGS_LIMIT_MAX = 1000\n\nexport const FEED_INDEX_HEX_LENGTH = 16\n\n/**\n * Generic reference that can be either non-encrypted reference which is a hex string of length 64 or encrypted\n * reference which is a hex string of length 128.\n *\n * Encrypted reference consists of two parts. The reference address itself (like non-encrypted reference) and decryption key.\n *\n * @see [Bee docs - Store with Encryption](https://docs.ethswarm.org/docs/access-the-swarm/store-with-encryption)\n */\nexport type Reference = HexString<typeof REFERENCE_HEX_LENGTH> | HexString<typeof ENCRYPTED_REFERENCE_HEX_LENGTH>\n\n/**\n * Type that represents either Swarm's reference in hex string or ESN domain (something.eth).\n */\nexport type ReferenceOrEns = Reference | string\n\n/**\n * Type that represents either Swarm's reference in hex string, ESN domain (something.eth) or CID using one of the Swarm's codecs.\n */\nexport type ReferenceCidOrEns = ReferenceOrEns | string\n\nexport type PlainBytesReference = Bytes<typeof REFERENCE_BYTES_LENGTH>\nexport type EncryptedBytesReference = Bytes<typeof ENCRYPTED_REFERENCE_BYTES_LENGTH>\nexport type BytesReference = PlainBytesReference | EncryptedBytesReference\n\nexport type PublicKey = HexString<typeof PUBKEY_HEX_LENGTH>\n\nexport type Address = HexString<typeof ADDRESS_HEX_LENGTH>\n\n/**\n * Type representing Readable stream that abstracts away implementation especially the difference between\n * browser and NodeJS versions as both are supported.\n */\nexport type Readable = NativeReadable | CompatibilityReadable | ReadableStream | ReadableStreamPonyfill\n\n/**\n * BatchId is result of keccak256 hash so 64 hex string without prefix.\n */\nexport type BatchId = HexString<typeof BATCH_ID_HEX_LENGTH>\n\n/**\n * AddressPrefix is an HexString of length equal or smaller then ADDRESS_HEX_LENGTH.\n * It represents PSS Address Prefix that is used to define address neighborhood that will receive the PSS message.\n */\nexport type AddressPrefix = HexString\n\n/**\n * Internal interface that represents configuration for creating a request with Ky\n */\nexport interface KyRequestOptions extends Omit<KyOptions, 'searchParams'> {\n path: string\n responseType?: 'json' | 'arraybuffer' | 'stream'\n\n /**\n * Overridden parameter that allows undefined as a value.\n */\n searchParams?: Record<string, string | number | boolean | undefined>\n}\n\nexport interface RequestOptions {\n /**\n * Timeout of requests in milliseconds\n */\n timeout?: number\n\n /**\n * Configure backoff mechanism for requests retries.\n * Specifies how many retries will be performed before failing a request.\n * Retries are performed for GET, PUT, HEAD, DELETE, OPTIONS and TRACE requests.\n * Default is 2.\n */\n retry?: number\n\n /**\n * User defined Fetch compatible function\n */\n fetch?: Fetch\n}\n\nexport interface BeeOptions extends RequestOptions {\n /**\n * Signer object or private key of the Signer in form of either hex string or Uint8Array that will be default signer for the instance.\n */\n signer?: Signer | Uint8Array | string\n\n /**\n * Object that contains default headers that will be present\n * in all outgoing bee-js requests for instance of Bee class.\n */\n defaultHeaders?: Record<string, string>\n\n /**\n * Function that registers listener callback for all outgoing HTTP requests that Bee instance makes.\n */\n onRequest?: HookCallback<BeeRequest>\n\n /**\n * Function that registers listener callback for all incoming HTTP responses that Bee instance made.\n */\n onResponse?: HookCallback<BeeResponse>\n}\n\nexport interface UploadResultWithCid extends UploadResult {\n cid: string\n}\n\n/**\n * Result of upload calls.\n */\nexport interface UploadResult {\n /**\n * Reference of the uploaded data\n */\n reference: Reference\n\n /**\n * Automatically created tag's UID.\n */\n tagUid: number\n}\n\nexport interface UploadOptions extends RequestOptions {\n /**\n * Will pin the data locally in the Bee node as well.\n *\n * Locally pinned data is possible to reupload to network if it disappear.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @see [Bee docs - Pinning](https://docs.ethswarm.org/docs/access-the-swarm/pinning)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz/post)\n */\n pin?: boolean\n\n /**\n * Will encrypt the uploaded data and return longer hash which also includes the decryption key.\n *\n * **Warning! Not allowed when node is in Gateway mode!**\n *\n * @see [Bee docs - Store with Encryption](https://docs.ethswarm.org/docs/access-the-swarm/store-with-encryption)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz/post)\n * @see Reference\n */\n encrypt?: boolean\n\n /**\n * Tags keep track of syncing the data with network. This option allows attach existing Tag UUID to the uploaded data.\n *\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/Collection/paths/~1bzz/post)\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n * @link Tag\n */\n tag?: number\n\n /**\n * Determines if the uploaded data should be sent to the network immediately (eq. deferred=false) or in a deferred fashion (eq. deferred=true).\n *\n * With deferred style client uploads all the data to Bee node first and only then Bee node starts push the data to network itself. The progress of this upload can be tracked with tags.\n * With non-deferred style client uploads the data to Bee which immediately starts pushing the data to network. The request is only finished once all the data was pushed through the Bee node to the network.\n *\n * In future there will be move to the non-deferred style and even the support for deferred upload will be removed from Bee itself.\n *\n * @default true\n */\n deferred?: boolean\n}\n\nexport interface FileUploadOptions extends UploadOptions {\n /**\n * Specifies Content-Length for the given data. It is required when uploading with Readable.\n *\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/File)\n */\n size?: number\n\n /**\n * Specifies given Content-Type so when loaded in browser the file is correctly represented.\n *\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/File)\n */\n contentType?: string\n}\n\nexport interface CollectionUploadOptions extends UploadOptions {\n /**\n * Default file to be returned when the root hash of collection is accessed.\n *\n * @see [Bee docs - Upload a directory](https://docs.ethswarm.org/docs/access-the-swarm/upload-a-directory)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/File)\n */\n indexDocument?: string\n\n /**\n * Configure custom error document to be returned when a specified path can not be found in collection.\n *\n * @see [Bee docs - Upload a directory](https://docs.ethswarm.org/docs/access-the-swarm/upload-a-directory)\n * @see [Bee API reference - `POST /bzz`](https://docs.ethswarm.org/api/#tag/File)\n */\n errorDocument?: string\n}\n\nexport interface UploadHeaders {\n 'swarm-pin'?: string\n 'swarm-encrypt'?: string\n 'swarm-tag'?: string\n 'swarm-postage-batch-id'?: string\n}\n\n/**\n * Object that contains infromation about progress of upload of data to network.\n *\n * @see [Bee docs - Syncing / Tags](https://docs.ethswarm.org/docs/access-the-swarm/syncing)\n */\nexport interface Tag {\n /**\n * Number of all chunks that the data will be split into.\n */\n total: number\n\n /**\n * Number of chunks that is locally stored in the Bee node.\n */\n processed: number\n\n /**\n * Number of chunks that arrived to their designated destination in the network\n */\n synced: number\n\n /**\n * Unique identifier\n */\n uid: number\n\n /**\n * When the upload process started\n */\n startedAt: string\n}\n\nexport interface AllTagsOptions extends RequestOptions {\n limit?: number\n offset?: number\n}\n\nexport interface FileHeaders {\n name?: string\n tagUid?: number\n contentType?: string\n}\n\nexport interface FileData<T> extends FileHeaders {\n data: T\n}\n\nexport interface Pin {\n reference: string\n}\n\n/**\n * Helper interface that adds utility functions\n * to work more conveniently with bytes in normal\n * user scenarios.\n *\n * Concretely: text(), hex(), json()\n */\nexport interface Data extends Uint8Array {\n /**\n * Converts the binary data using UTF-8 decoding into string.\n */\n text(): string\n\n /**\n * Converts the binary data into hex-string.\n */\n hex(): HexString\n\n /**\n * Converts the binary data into string which is then parsed into JSON.\n */\n json(): Record<string, unknown>\n}\n\n/**\n * Object represents a file and some of its metadata in [[Directory]] object.\n */\nexport interface CollectionEntry<T> {\n data: T\n\n /**\n *\n */\n path: string\n}\n\n/**\n * Represents Collections\n */\nexport type Collection<T> = Array<CollectionEntry<T>>\n\nexport interface PssSubscription {\n readonly topic: string\n cancel: () => void\n}\n\nexport interface PssMessageHandler {\n onMessage: (message: Data, subscription: PssSubscription) => void\n onError: (error: BeeError, subscription: PssSubscription) => void\n}\n\nexport interface BeeGenericResponse {\n message: string\n code: number\n}\n\nexport interface ReferenceResponse {\n reference: Reference\n}\n\nexport type HttpMethod = 'GET' | 'DELETE' | 'POST' | 'PATCH' | 'PUT'\n\nexport type HookCallback<V> = (value: V) => void | Promise<void>\n\nexport interface BeeRequest {\n url: string\n method: HttpMethod\n headers?: Record<string, string>\n params?: Record<string, unknown>\n}\n\nexport interface BeeResponse {\n headers: Record<string, string>\n status: number\n statusText?: string\n request: BeeRequest\n}\n\n/*********************************************************\n * Writers and Readers interfaces\n */\n\nexport const TOPIC_BYTES_LENGTH = 32\nexport const TOPIC_HEX_LENGTH = 64\n\n/**\n * Hex string of length 64 chars without prefix that specifies topics for feed.\n */\nexport type Topic = HexString<typeof TOPIC_HEX_LENGTH>\n\n/**\n * FeedReader is an interface for downloading feed updates\n */\nexport interface FeedReader {\n readonly type: FeedType\n readonly owner: HexEthAddress\n readonly topic: Topic\n /**\n * Download the latest feed update\n */\n download(options?: FeedUpdateOptions): Promise<FetchFeedUpdateResponse>\n}\n\nexport interface JsonFeedOptions extends RequestOptions {\n /**\n * Valid only for `get` action, where either this `address` or `signer` has\n * to be specified.\n */\n address?: EthAddress | Uint8Array | string\n\n /**\n * Custom Signer object or private key in either binary or hex form.\n * This required for `set` action, and optional for `get` although\n * if not specified for `get` then `address` option has to be specified.\n */\n signer?: Signer | Uint8Array | string\n type?: FeedType\n}\n\n/**\n * FeedWriter is an interface for updating feeds\n */\nexport interface FeedWriter extends FeedReader {\n /**\n * Upload a new feed update\n *\n * @param postageBatchId Postage BatchId to be used to upload the data with\n * @param reference The reference to be stored in the new update\n * @param options Additional options like `at`\n *\n * @returns Reference that points at Single Owner Chunk that contains the new update and pointer to the updated chunk reference.\n */\n upload(\n postageBatchId: string | BatchId,\n reference: BytesReference | Reference,\n options?: FeedUploadOptions,\n ): Promise<Reference>\n}\n\n/**\n * Interface for downloading single owner chunks\n */\nexport interface SOCReader {\n readonly owner: HexEthAddress\n /**\n * Downloads a single owner chunk\n *\n * @param identifier The identifier of the chunk\n */\n download: (identifier: Identifier) => Promise<SingleOwnerChunk>\n}\n\n/**\n * Interface for downloading and uploading single owner chunks\n */\nexport interface SOCWriter extends SOCReader {\n /**\n * Uploads a single owner chunk\n *\n * @param identifier The identifier of the chunk\n * @param data The chunk payload data\n * @param options Upload options\n */\n upload: (\n postageBatchId: string | BatchId,\n identifier: Identifier,\n data: Uint8Array,\n options?: UploadOptions,\n ) => Promise<Reference>\n}\n\n/**\n * Interface representing Postage stamp batch.\n */\nexport interface PostageBatch {\n batchID: BatchId\n utilization: number\n usable: boolean\n label: '' | string\n depth: number\n amount: string\n bucketDepth: number\n blockNumber: number\n immutableFlag: boolean\n /**\n * The time (in seconds) remaining until the batch expires; -1 signals that the batch never expires; 0 signals that the batch has already expired.\n */\n batchTTL: number\n\n exists: boolean\n}\n\n/**\n * @deprecated Use PostageBatch instead.\n */\nexport type DebugPostageBatch = PostageBatch\n\nexport interface BatchBucket {\n bucketID: number\n collisions: number\n}\n\nexport interface PostageBatchBuckets {\n depth: number\n bucketDepth: number\n bucketUpperBound: number\n buckets?: BatchBucket[]\n}\n\nexport type TransactionHash = BrandedString<'TransactionHash'>\n\nexport interface TransactionInfo {\n transactionHash: TransactionHash\n to: HexEthAddress\n nonce: number\n gasPrice: NumberString\n gasLimit: number\n data: string\n created: string\n description: string\n value: string\n}\n\n/**\n * Options for creation of postage batch\n */\nexport interface PostageBatchOptions extends RequestOptions {\n /**\n * Sets label for the postage batch\n */\n label?: string\n\n /**\n * Sets gas price in Wei for the transaction that creates the postage batch\n */\n gasPrice?: NumberString\n immutableFlag?: boolean\n\n /**\n * The returned Promise will await until the purchased Postage Batch is usable.\n * In other word, it has to have enough block confirmations that Bee pronounce it usable.\n * If turned on, this significantly prolong the creation of postage batch!\n * If you plan to use the stamp right away for some action with Bee (like uploading using this stamp) it is\n * highly recommended to use this option, otherwise you might get errors \"stamp not usable\" from Bee.\n *\n * In next breaking release this option will be turned on by default.\n * @default false\n */\n waitForUsable?: boolean\n\n /**\n * When waiting for the postage stamp to become usable, this specify the timeout for the waiting.\n * Default: 120s\n */\n waitForUsableTimeout?: number\n}\n\n/**\n * With this type a number should be represented in a string\n */\nexport type NumberString = FlavoredType<string, 'NumberString'>\n\n/*********************************************************\n * Ethereum compatible signing interfaces and definitions\n */\n\nexport const SIGNATURE_HEX_LENGTH = 130\nexport const SIGNATURE_BYTES_LENGTH = 65\n\nexport type Signature = Bytes<typeof SIGNATURE_BYTES_LENGTH>\nexport type PrivateKeyBytes = Bytes<32>\n\n/**\n * Signing function that takes digest in Uint8Array to be signed that has helpers to convert it\n * conveniently into other types like hex-string (non prefix).\n * Result of the signing can be returned either in Uint8Array or hex string form.\n *\n * @see Data\n */\ntype SyncSigner = (digest: Data) => Signature | HexString<typeof SIGNATURE_HEX_LENGTH> | string\ntype AsyncSigner = (digest: Data) => Promise<Signature | HexString<typeof SIGNATURE_HEX_LENGTH> | string>\n\n/**\n * Interface for implementing Ethereum compatible signing.\n *\n * In order to be compatible with Ethereum and its signing method `personal_sign`, the data\n * that are passed to sign() function should be prefixed with: `\\x19Ethereum Signed Message:\\n${data.length}`, hashed\n * and only then signed.\n * If you are wrapping another signer tool/library (like Metamask or some other Ethereum wallet), you might not have\n * to do this prefixing manually if you use the `personal_sign` method. Check documentation of the tool!\n * If you are writing your own storage for keys, then you have to prefix the data manually otherwise the Bee node\n * will reject the chunks signed by you!\n *\n * For example see the hashWithEthereumPrefix() function.\n *\n * @property sign The sign function that can be sync or async. This function takes non-prefixed data. See above.\n * @property address The ethereum address of the signer in bytes.\n * @see hashWithEthereumPrefix\n */\nexport type Signer = {\n sign: SyncSigner | AsyncSigner\n address: EthAddress\n}\n\n/**\n * These type are used to create new nominal types\n *\n * See https://spin.atomicobject.com/2018/01/15/typescript-flexible-nominal-typing/\n */\nexport type BrandedType<Type, Name> = Type & { __tag__: Name }\n\nexport type BrandedString<Name> = BrandedType<string, Name>\n\nexport type FlavoredType<Type, Name> = Type & { __tag__?: Name }\n\n// JSON typings\n// by @indiescripter at https://github.com/microsoft/TypeScript/issues/1897#issuecomment-338650717\nexport type AnyJson = boolean | number | string | null | JsonArray | JsonMap\ninterface JsonMap {\n [key: string]: AnyJson\n}\ntype JsonArray = Array<AnyJson>\n\ntype Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>\n","/**\n * Helper type for dealing with fixed size byte arrays.\n *\n * It changes the type of `length` property of `Uint8Array` to the\n * generic `Length` type parameter which is runtime compatible with\n * the original, because it extends from the `number` type.\n */\nimport { Data } from '../types'\nimport { bytesToHex } from './hex'\n\nexport interface Bytes<Length extends number> extends Uint8Array {\n readonly length: Length\n}\n\n/**\n * Helper type for dealing with flexible sized byte arrays.\n *\n * The actual min and and max values are not stored in runtime, they\n * are only there to differentiate the type from the Uint8Array at\n * compile time.\n * @see BrandedType\n */\nexport interface FlexBytes<Min extends number, Max extends number> extends Uint8Array {\n readonly __min__: Min\n readonly __max__: Max\n}\n\n/**\n * Type guard for `Bytes<T>` type\n *\n * @param b The byte array\n * @param length The length of the byte array\n */\nexport function isBytes<Length extends number>(b: unknown, length: Length): b is Bytes<Length> {\n return b instanceof Uint8Array && b.length === length\n}\n\n/**\n * Function that verifies if passed data are Bytes and if the array has \"length\" number of bytes under given offset.\n * @param data\n * @param offset\n * @param length\n */\nexport function hasBytesAtOffset(data: unknown, offset: number, length: number): boolean {\n if (!(data instanceof Uint8Array)) {\n throw new TypeError('Data has to an Uint8Array!')\n }\n\n const offsetBytes = data.slice(offset, offset + length)\n\n return isBytes(offsetBytes, length)\n}\n\n/**\n * Verifies if a byte array has a certain length\n *\n * @param b The byte array\n * @param length The specified length\n */\nexport function assertBytes<Length extends number>(b: unknown, length: Length): asserts b is Bytes<Length> {\n if (!isBytes(b, length)) {\n throw new TypeError(`Parameter is not valid Bytes of length: ${length} !== ${(b as Uint8Array).length}`)\n }\n}\n\n/**\n * Type guard for FlexBytes<Min,Max> type\n *\n * @param b The byte array\n * @param min Minimum size of the array\n * @param max Maximum size of the array\n */\nexport function isFlexBytes<Min extends number, Max extends number = Min>(\n b: unknown,\n min: Min,\n max: Max,\n): b is FlexBytes<Min, Max> {\n return b instanceof Uint8Array && b.length >= min && b.length <= max\n}\n\n/**\n * Verifies if a byte array has a certain length between min and max\n *\n * @param b The byte array\n * @param min Minimum size of the array\n * @param max Maximum size of the array\n */\nexport function assertFlexBytes<Min extends number, Max extends number = Min>(\n b: unknown,\n min: Min,\n max: Max,\n): asserts b is FlexBytes<Min, Max> {\n if (!isFlexBytes(b, min, max)) {\n throw new TypeError(\n `Parameter is not valid FlexBytes of min: ${min}, max: ${max}, length: ${(b as Uint8Array).length}`,\n )\n }\n}\n\n/**\n * Return `length` bytes starting from `offset`\n *\n * @param data The original data\n * @param offset The offset to start from\n * @param length The length of data to be returned\n */\nexport function bytesAtOffset<Length extends number>(data: Uint8Array, offset: number, length: Length): Bytes<Length> {\n const offsetBytes = data.slice(offset, offset + length) as Bytes<Length>\n\n // We are returning strongly typed Bytes so we have to verify that length is really what we claim\n assertBytes<Length>(offsetBytes, length)\n\n return offsetBytes\n}\n\n/**\n * Return flex bytes starting from `offset`\n *\n * @param data The original data\n * @param offset The offset to start from\n * @param _min The minimum size of the data\n * @param _max The maximum size of the data\n */\nexport function flexBytesAtOffset<Min extends number, Max extends number>(\n data: Uint8Array,\n offset: number,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _min: Min,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _max: Max,\n): FlexBytes<Min, Max> {\n return data.slice(offset) as FlexBytes<Min, Max>\n}\n\n/**\n * Returns true if two byte arrays are equal\n *\n * @param a Byte array to compare\n * @param b Byte array to compare\n */\nexport function bytesEqual(a: Uint8Array, b: Uint8Array): boolean {\n return a.length === b.length && a.every((value, index) => value === b[index])\n}\n\n/**\n * Returns a new byte array filled with zeroes with the specified length\n *\n * @param length The length of data to be returned\n */\nexport function makeBytes<Length extends number>(length: Length): Bytes<Length> {\n return new Uint8Array(length) as Bytes<Length>\n}\n\nexport function wrapBytesWithHelpers(data: Uint8Array): Data {\n return Object.assign(data, {\n text: () => new TextDecoder('utf-8').decode(data),\n json: () => JSON.parse(new TextDecoder('utf-8').decode(data)),\n hex: () => bytesToHex(data),\n })\n}\n","import { Collection } from '../types'\n\n/**\n * Creates array in the format of Collection with data loaded from directory on filesystem.\n * The function loads all the data into memory!\n *\n * @param dir path to the directory\n */\nexport async function makeCollectionFromFS(dir: string): Promise<Collection<Uint8Array>> {\n throw new Error('Creating Collection from File System is not supported in browsers!')\n}\n\n/**\n * Calculate folder size recursively\n *\n * @param dir the path to the folder to check\n * @returns size in bytes\n */\nexport async function getFolderSize(dir: string): Promise<number> {\n throw new Error('Creating Collection from File System is not supported in browsers!')\n}\n","import { Collection } from '../types'\nimport { BeeArgumentError } from './error'\nimport { fileArrayBuffer } from './file'\nimport { isUint8Array } from './type'\n\nexport function isCollection(data: unknown): data is Collection<Uint8Array> {\n if (!Array.isArray(data)) {\n return false\n }\n\n return data.every(entry => typeof entry === 'object' && entry.data && entry.path && isUint8Array(entry.data))\n}\n\nexport function assertCollection(data: unknown): asserts data is Collection<Uint8Array> {\n if (!isCollection(data)) {\n throw new BeeArgumentError('invalid collection', data)\n }\n}\n\nfunction makeFilePath(file: File) {\n if (file.webkitRelativePath && file.webkitRelativePath !== '') {\n return file.webkitRelativePath.replace(/.*?\\//i, '')\n }\n\n if (file.name) {\n return file.name\n }\n\n throw new TypeError('file is not valid File object')\n}\n\nexport async function makeCollectionFromFileList(fileList: FileList | File[]): Promise<Collection<Uint8Array>> {\n const collection: Collection<Uint8Array> = []\n\n for (let i = 0; i < fileList.length; i++) {\n const file = fileList[i]\n\n if (file) {\n collection.push({\n path: makeFilePath(file),\n data: new Uint8Array(await fileArrayBuffer(file)),\n })\n }\n }\n\n return collection\n}\n\n/**\n * Calculate cumulative size of files\n *\n * @param fileList list of files to check\n * @returns size in bytes\n */\nexport function getCollectionSize(fileList: FileList | File[]): number {\n let sum = 0\n\n for (let i = 0; i < fileList.length; i++) {\n const file = fileList[i]\n\n if (file) {\n sum += file.size\n }\n }\n\n return sum\n}\n","import { isNodeReadable, isReadableStream } from './stream'\nimport { Readable } from '../types'\n\n/**\n * Validates input and converts to Uint8Array\n *\n * @param data any string, ArrayBuffer or Uint8Array\n */\nexport async function prepareData(\n data: string | Blob | ArrayBuffer | Uint8Array | Readable,\n): Promise<Blob | ReadableStream<Uint8Array> | never> {\n if (typeof data === 'string') return new Blob([data], { type: 'text/plain' })\n\n if (data instanceof Uint8Array || data instanceof ArrayBuffer) {\n return new Blob([data], { type: 'application/octet-stream' })\n }\n\n if (data instanceof Blob) {\n return data\n }\n\n // Currently it is not possible to stream requests from browsers\n // there are already first experiments on this field (Chromium)\n // but till it is fully implemented across browsers-land we have to\n // buffer the data before sending the requests.\n if (isNodeReadable(data)) {\n return new Promise(resolve => {\n const buffers: Array<Uint8Array> = []\n data.on('data', d => {\n buffers.push(d)\n })\n data.on('end', () => {\n resolve(new Blob(buffers, { type: 'application/octet-stream' }))\n })\n })\n }\n\n if (isReadableStream(data)) {\n return new Promise(async resolve => {\n const reader = data.getReader()\n const buffers: Array<Uint8Array> = []\n\n let done, value\n do {\n ;({ done, value } = await reader.read())\n\n if (!done) {\n buffers.push(value)\n }\n } while (!done)\n\n resolve(new Blob(buffers, { type: 'application/octet-stream' }))\n })\n }\n\n throw new TypeError('unknown data type')\n}\n\nexport async function prepareWebsocketData(data: string | ArrayBuffer | Blob): Promise<Uint8Array> | never {\n if (typeof data === 'string') return new TextEncoder().encode(data)\n\n if (data instanceof ArrayBuffer) return new Uint8Array(data)\n\n if (data instanceof Blob) return new Uint8Array(await new Response(data as Blob).arrayBuffer())\n\n throw new TypeError('unknown websocket data type')\n}\n","import { KyRequestOptions } from '../types'\n\nexport class BeeError extends Error {\n public constructor(message: string) {\n super(message)\n }\n}\n\nexport class BeeArgumentError extends BeeError {\n public constructor(message: string, readonly value: unknown) {\n super(message)\n }\n}\n\nexport class BeeRequestError extends BeeError {\n /**\n * @param message\n * @param requestOptions KyOptions that were used to assemble the request. THIS MIGHT NOT BE COMPLETE! If custom Ky instance was used that has set defaults then these defaults are not visible in this object!\n */\n public constructor(message: string, readonly requestOptions: KyRequestOptions) {\n super(message)\n }\n}\n\nexport class BeeResponseError extends BeeError {\n /**\n * @param status HTTP status code number\n * @param response Response returned from the server\n * @param responseBody Response body as string which is returned from response.text() call\n * @param requestOptions KyOptions that were used to assemble the request. THIS MIGHT NOT BE COMPLETE! If custom Ky instance was used that has set defaults then these defaults are not visible in this object!\n * @param message\n */\n public constructor(\n readonly status: number,\n readonly response: Response,\n readonly responseBody: string,\n readonly requestOptions: KyRequestOptions,\n message: string,\n ) {\n super(message)\n }\n}\n\nexport class BeeNotAJsonError extends BeeError {\n public constructor() {\n super(`Received response is not valid JSON.`)\n }\n}\n","// For ESM compatibility\nimport pkg from 'js-sha3'\nconst { keccak256, sha3_256 } = pkg\n\nimport { BrandedString, Data, Signer } from '../types'\nimport { HexString, hexToBytes, intToHex, makeHexString, assertHexString } from './hex'\nimport { Bytes, assertBytes } from './bytes'\n\nexport type OverlayAddress = BrandedString<'OverlayAddress'>\nexport type EthAddress = Bytes<20>\nexport type HexEthAddress = HexString<40>\nconst ETH_ADDR_BYTES_LENGTH = 20\nconst ETH_ADDR_HEX_LENGTH = 40\n\nexport function makeEthAddress(address: EthAddress | Uint8Array | string | unknown): EthAddress {\n if (typeof address === 'string') {\n const hexAddr = makeHexString(address, ETH_ADDR_HEX_LENGTH)\n const ownerBytes = hexToBytes<typeof ETH_ADDR_BYTES_LENGTH>(hexAddr)\n assertBytes(ownerBytes, ETH_ADDR_BYTES_LENGTH)\n\n return ownerBytes\n } else if (address instanceof Uint8Array) {\n assertBytes(address, ETH_ADDR_BYTES_LENGTH)\n\n return address\n }\n throw new TypeError('Invalid EthAddress')\n}\n\nexport function makeHexEthAddress(address: EthAddress | Uint8Array | string | unknown): HexEthAddress {\n try {\n return makeHexString(address, ETH_ADDR_HEX_LENGTH)\n } catch (e) {\n if (e instanceof TypeError) {\n e.message = `Invalid HexEthAddress: ${e.message}`\n }\n\n throw e\n }\n}\n\n/**\n * Check if this is all caps or small caps eth address (=address without checksum)\n *\n * @param address Ethereum address as hex string\n */\nfunction isEthAddrCaseIns(address: string | HexString | HexEthAddress): address is HexEthAddress {\n // Check it's string, all small caps or all all caps hex and 40 chars long without the `0x` prefix\n return (\n typeof address === 'string' && (/^(0x|0X)?[0-9a-f]{40}$/.test(address) || /^(0x|0X)?[0-9A-F]{40}$/.test(address))\n )\n}\n\n/**\n * Check if this is checksummed ethereum address\n *\n * @param address Ethereum address as hex string\n */\nfunction isValidChecksummedEthAddress(address: string | HexString | HexEthAddress): address is HexEthAddress {\n try {\n // Check for valid case insensitive hex type string, 40 chars\n const addr = makeHexString(address, ETH_ADDR_HEX_LENGTH)\n\n // Check the checksum\n const addressHash = keccak256(addr.toLowerCase())\n for (let i = 0; i < 40; i += 1) {\n // the nth letter should be uppercase if the nth digit of casemap is 1\n if (\n (parseInt(addressHash[i], 16) > 7 && addr[i].toUpperCase() !== addr[i]) ||\n (parseInt(addressHash[i], 16) <= 7 && addr[i].toLowerCase() !== addr[i])\n ) {\n return false\n }\n }\n\n return true\n } catch (e) {\n if (e instanceof TypeError) {\n return false\n }\n\n throw e\n }\n}\n\n/**\n * Check if is valid ethereum address\n *\n * Pretty much typed version from web3js\n * https://github.com/ChainSafe/web3.js/blob/1.x/packages/web3-utils/src/utils.js\n *\n * @param address Ethereum address as hex string\n *\n * @return True if is valid eth address\n */\nexport function isHexEthAddress(address: string | HexString | HexEthAddress): address is HexEthAddress {\n return isEthAddrCaseIns(address) || isValidChecksummedEthAddress(address)\n}\n\n/**\n * Convert big-endian hex or number to little-endian.\n * Note: Before conversion it is automatically padded to even length hexstring\n *\n * @param bigEndian Big-endian hex string or number to convert\n * @param pad Length to which the string should be padded before conversion (defaul: 2)\n *\n * @return little-endian encoded hexstring\n */\nexport function toLittleEndian(bigEndian: number | string | HexString, pad = 2): HexString | never {\n if (!(Number.isInteger(pad) && pad >= 2 && pad % 2 === 0)) {\n throw new TypeError('minimal padding for conversion needs to be positive even integer')\n }\n\n let hexRep\n\n if (typeof bigEndian === 'string') hexRep = makeHexString(bigEndian as HexString)\n else if (typeof bigEndian === 'number') hexRep = intToHex(bigEndian)\n else throw new TypeError('incorrect input type')\n\n hexRep = hexRep.padStart(pad, '0')\n\n // Extend to an even length hexstring\n if (hexRep.length % 2 !== 0) hexRep = hexRep.padStart(hexRep.length + 1, '0')\n\n // Match all two pairs in the hexstring, reverse the pairs and join it again\n const littleEndian = hexRep.match(/../g)?.reverse().join('')\n\n if (littleEndian) return littleEndian as HexString\n\n throw new Error('failed to convert')\n}\n\n/**\n * Convert little-endian hex or number to big-endian\n * Note: Before conversion it is automatically padded to even length hexstring\n *\n * @param littleEndian Little-endian hex string or number to convert\n * @param pad Length to which the string should be padded before conversion (defaul: 2)\n *\n * @return big-endian encoded hexstring\n */\nexport function fromLittleEndian(littleEndian: number | string | HexString, pad = 2): HexString | never {\n // It's a reversible function\n return toLittleEndian(littleEndian, pad)\n}\n\nfunction assertEthAddress(ethAddress: string | HexString | HexEthAddress): asserts ethAddress is HexEthAddress {\n if (!isHexEthAddress(ethAddress)) throw new TypeError('invalid ETH address')\n}\n\nfunction assertSwarmNetworkId(networkId: number): asserts networkId is number {\n if (Number.isInteger(networkId && networkId > 0 && networkId < Number.MAX_SAFE_INTEGER)) {\n throw new TypeError('swarm network id must be positive integer')\n }\n}\n\n/**\n * Get swarm overlay address from public ethereum address and swarm network id\n *\n * @param ethAddress Public ethereum address\n * @param networkId Swarm network id\n *\n * @return Swarm overlay address\n */\nexport function ethToSwarmAddress(ethAddress: string | HexString | HexEthAddress, networkId = 1): OverlayAddress {\n assertEthAddress(ethAddress)\n assertSwarmNetworkId(networkId)\n\n const hex = `${makeHexString(ethAddress)}${toLittleEndian(networkId, 16)}`\n assertHexString(hex)\n\n const overlayAddress = sha3_256(hexToBytes(hex))\n\n return overlayAddress as OverlayAddress\n}\n\ninterface RequestArguments {\n method: string\n jsonrpc?: string\n params?: unknown[] | Record<string, unknown>\n}\n\nexport interface JsonRPC {\n request?(args: RequestArguments): Promise<unknown>\n sendAsync?(args: RequestArguments): Promise<unknown>\n}\n\n/**\n * Function that takes Ethereum EIP-1193 compatible provider and create an Signer instance that\n * uses `personal_sign` method to sign requested data.\n *\n * @param provider Injected web3 provider like window.ethereum or other compatible with EIP-1193\n * @param ethAddress Optional address of the account which the data should be signed with. If not specified `eth_requestAccounts` request is used to get the account address.\n */\nexport async function makeEthereumWalletSigner(\n provider: JsonRPC,\n ethAddress?: string | HexString | HexEthAddress,\n): Promise<Signer> {\n let executorFnc: (args: RequestArguments) => Promise<unknown>\n\n if (typeof provider !== 'object' || provider === null) {\n throw new TypeError('We need JsonRPC provider object!')\n }\n\n if (provider.request) {\n executorFnc = provider.request\n } else if (provider.sendAsync) {\n executorFnc = provider.sendAsync\n } else {\n throw new Error('Incompatible interface of given provider!')\n }\n\n if (!ethAddress) {\n ethAddress = ((await executorFnc({ method: 'eth_requestAccounts' })) as string[])[0]\n }\n\n const bytesEthAddress = makeEthAddress(ethAddress)\n const hexEthAddress = makeHexEthAddress(ethAddress)\n\n return {\n address: bytesEthAddress,\n sign: async (data: Data): Promise<string> => {\n const result = await executorFnc({\n jsonrpc: '2.0',\n method: 'personal_sign',\n params: ['0x' + data.hex(), '0x' + hexEthAddress],\n })\n\n return result as string\n },\n } as Signer\n}\n","export { getCollectionSize } from './collection'\nexport { getFolderSize } from './collection.node'\n\nexport {\n Bytes,\n FlexBytes,\n isBytes,\n assertBytes,\n isFlexBytes,\n assertFlexBytes,\n bytesAtOffset,\n flexBytesAtOffset,\n bytesEqual,\n} from './bytes'\n\nexport {\n HexString,\n PrefixedHexString,\n makeHexString,\n hexToBytes,\n bytesToHex,\n intToHex,\n isHexString,\n assertHexString,\n assertPrefixedHexString,\n} from './hex'\n\nexport {\n EthAddress,\n makeEthAddress,\n makeHexEthAddress,\n isHexEthAddress,\n ethToSwarmAddress,\n toLittleEndian,\n fromLittleEndian,\n makeEthereumWalletSigner,\n} from './eth'\n\nexport {\n readableWebToNode,\n readableNodeToWeb,\n isReadableStream,\n isNodeReadable,\n normalizeToReadableStream,\n isReadable,\n} from './stream'\n\nexport { keccak256Hash } from './hash'\nexport { makeMaxTarget } from './pss'\nexport { getStampUsage } from './stamps'\n","/**\n * Compatibility functions for working with File API objects\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/File\n */\n\nexport function isFile(file: unknown): file is File {\n // browser\n if (typeof File === 'function') {\n return file instanceof File\n }\n\n // node.js\n const f = file as File\n\n return (\n typeof f === 'object' &&\n typeof f.name === 'string' &&\n (typeof f.stream === 'function' || typeof f.arrayBuffer === 'function')\n )\n}\n\n/**\n * Compatibility helper for browsers where the `arrayBuffer function is\n * missing from `File` objects.\n *\n * @param file A File object\n */\nexport async function fileArrayBuffer(file: File): Promise<ArrayBuffer> {\n if (file.arrayBuffer) {\n return file.arrayBuffer()\n }\n\n // workaround for Safari where arrayBuffer is not supported on Files\n return new Promise(resolve => {\n const fr = new FileReader()\n fr.onload = () => resolve(fr.result as ArrayBuffer)\n fr.readAsArrayBuffer(file)\n })\n}\n","import { Message } from 'js-sha3'\nimport { Bytes } from './bytes'\n\n// For ESM compatibility\nimport pkg from 'js-sha3'\nconst { keccak256 } = pkg\n/**\n * Helper function for calculating the keccak256 hash with\n * correct types.\n *\n * @param messages Any number of messages (strings, byte arrays etc.)\n */\nexport function keccak256Hash(...messages: Message[]): Bytes<32> {\n const hasher = keccak256.create()\n\n messages.forEach(bytes => hasher.update(bytes))\n\n return Uint8Array.from(hasher.digest()) as Bytes<32>\n}\n","import { BatchId, FileHeaders, UploadOptions } from '../types'\nimport { BeeError } from './error'\n\n/**\n * Read the filename from the content-disposition header\n * See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition\n *\n * @param header the content-disposition header value\n *\n * @returns the filename\n */\nfunction readContentDispositionFilename(header: string | null): string {\n if (!header) {\n throw new BeeError('missing content-disposition header')\n }\n\n // Regex was found here\n // https://stackoverflow.com/questions/23054475/javascript-regex-for-extracting-filename-from-content-disposition-header\n const dispositionMatch = header.match(/filename\\*?=['\"]?(?:UTF-\\d['\"]*)?([^;\\r\\n\"']*)['\"]?;?/i)\n\n if (dispositionMatch && dispositionMatch.length > 0) {\n return dispositionMatch[1]\n }\n throw new BeeError('invalid content-disposition header')\n}\n\nfunction readTagUid(header: string | null): number | undefined {\n if (!header) {\n return undefined\n }\n\n return parseInt(header, 10)\n}\n\nexport function readFileHeaders(headers: Headers): FileHeaders {\n const name = readContentDispositionFilename(headers.get('content-disposition'))\n const tagUid = readTagUid(headers.get('swarm-tag-uid'))\n const contentType = headers.get('content-type') || undefined\n\n return {\n name,\n tagUid,\n contentType,\n }\n}\n\nexport function extractUploadHeaders(postageBatchId: BatchId, options?: UploadOptions): Record<string, string> {\n if (!postageBatchId) {\n throw new BeeError('Postage BatchID has to be specified!')\n }\n\n const headers: Record<string, string> = {\n 'swarm-postage-batch-id': postageBatchId,\n }\n\n if (options?.pin) headers['swarm-pin'] = String(options.pin)\n\n if (options?.encrypt) headers['swarm-encrypt'] = String(options.encrypt)\n\n if (options?.tag) headers['swarm-tag'] = String(options.tag)\n\n if (typeof options?.deferred === 'boolean') headers['swarm-deferred-upload'] = options.deferred.toString()\n\n return headers\n}\n","import { Bytes, makeBytes } from './bytes'\nimport { BrandedType, FlavoredType } from '../types'\n\n/**\n * Nominal type to represent hex strings WITHOUT '0x' prefix.\n * For example for 32 bytes hex representation you have to use 64 length.\n * TODO: Make Length mandatory: https://github.com/ethersphere/bee-js/issues/208\n */\nexport type HexString<Length extends number = number> = FlavoredType<\n string & {\n readonly length: Length\n },\n 'HexString'\n>\n\n/**\n * Type for HexString with prefix.\n * The main hex type used internally should be non-prefixed HexString\n * and therefore this type should be used as least as possible.\n * Because of that it does not contain the Length property as the variables\n * should be validated and converted to HexString ASAP.\n */\nexport type PrefixedHexString = BrandedType<string, 'PrefixedHexString'>\n\n/**\n * Creates unprefixed hex string from wide range of data.\n *\n * TODO: Make Length mandatory: https://github.com/ethersphere/bee-js/issues/208\n *\n * @param input\n * @param len of the resulting HexString WITHOUT prefix!\n */\nexport function makeHexString<L extends number>(input: string | number | Uint8Array | unknown, len?: L): HexString<L> {\n if (typeof input === 'number') {\n return intToHex<L>(input, len)\n }\n\n if (input instanceof Uint8Array) {\n return bytesToHex<L>(input, len)\n }\n\n if (typeof input === 'string') {\n if (isPrefixedHexString(input)) {\n const hex = input.slice(2) as HexString<L>\n\n if (len && hex.length !== len) {\n throw new TypeError(`Length mismatch for valid hex string. Expecting length ${len}: ${hex}`)\n }\n\n return hex\n } else {\n // We use assertHexString() as there might be more reasons why a string is not valid hex string\n // and usage of isHexString() would not give enough information to the user on what is going\n // wrong.\n assertHexString<L>(input, len)\n\n return input\n }\n }\n\n throw new TypeError('Not HexString compatible type!')\n}\n\n/**\n * Converts a hex string to Uint8Array\n *\n * @param hex string input without 0x prefix!\n */\nexport function hexToBytes<Length extends number, LengthHex extends number = number>(\n hex: HexString<LengthHex>,\n): Bytes<Length> {\n assertHexString(hex)\n\n const bytes = makeBytes(hex.length / 2)\n for (let i = 0; i < bytes.length; i++) {\n const hexByte = hex.substr(i * 2, 2)\n bytes[i] = parseInt(hexByte, 16)\n }\n\n return bytes as Bytes<Length>\n}\n\n/**\n * Converts array of number or Uint8Array to HexString without prefix.\n *\n * @param bytes The input array\n * @param len The length of the non prefixed HexString\n */\nexport function bytesToHex<Length extends number = number>(bytes: Uint8Array, len?: Length): HexString<Length> {\n const hexByte = (n: number) => n.toString(16).padStart(2, '0')\n const hex = Array.from(bytes, hexByte).join('') as HexString<Length>\n\n // TODO: Make Length mandatory: https://github.com/ethersphere/bee-js/issues/208\n if (len && hex.length !== len) {\n throw new TypeError(`Resulting HexString does not have expected length ${len}: ${hex}`)\n }\n\n return hex\n}\n\n/**\n * Converts integer number to hex string.\n *\n * Optionally provides '0x' prefix or padding\n *\n * @param int The positive integer to be converted\n * @param len The length of the non prefixed HexString\n */\nexport function intToHex<Length extends number = number>(int: number, len?: Length): HexString<Length> {\n if (!Number.isInteger(int)) throw new TypeError('the value provided is not integer')\n\n if (int > Number.MAX_SAFE_INTEGER) throw new TypeError('the value provided exceeds safe integer')\n\n if (int < 0) throw new TypeError('the value provided is a negative integer')\n const hex = int.toString(16) as HexString<Length>\n\n // TODO: Make Length mandatory: https://github.com/ethersphere/bee-js/issues/208\n if (len && hex.length !== len) {\n throw new TypeError(`Resulting HexString does not have expected length ${len}: ${hex}`)\n }\n\n return hex\n}\n\n/**\n * Type guard for HexStrings.\n * Requires no 0x prefix!\n *\n * TODO: Make Length mandatory: https://github.com/ethersphere/bee-js/issues/208\n *\n * @param s string input\n * @param len expected length of the HexString\n */\nexport function isHexString<Length extends number = number>(s: unknown, len?: number): s is HexString<Length> {\n return typeof s === 'string' && /^[0-9a-f]+$/i.test(s) && (!len || s.length === len)\n}\n\n/**\n * Type guard for PrefixedHexStrings.\n * Does enforce presence of 0x prefix!\n *\n * @param s string input\n */\nexport function isPrefixedHexString(s: unknown): s is PrefixedHexString {\n return typeof s === 'string' && /^0x[0-9a-f]+$/i.test(s)\n}\n\n/**\n * Verifies if the provided input is a HexString.\n *\n * TODO: Make Length mandatory: https://github.com/ethersphere/bee-js/issues/208\n *\n * @param s string input\n * @param len expected length of the HexString\n * @param name optional name for the asserted value\n * @returns HexString or throws error\n */\nexport function assertHexString<Length extends number = number>(\n s: unknown,\n len?: number,\n name = 'value',\n): asserts s is HexString<Length> {\n if (!isHexString(s, len)) {\n if (isPrefixedHexString(s)) {\n throw new TypeError(`${name} not valid non prefixed hex string (has 0x prefix): ${s}`)\n }\n\n // Don't display length error if no length specified in order not to confuse user\n const lengthMsg = len ? ` of length ${len}` : ''\n throw new TypeError(`${name} not valid hex string${lengthMsg}: ${s}`)\n }\n}\n\n/**\n * Verifies if the provided input is a PrefixedHexString.\n *\n * @param s string input\n * @param len expected length of the HexString\n * @param name optional name for the asserted value\n * @returns HexString or throws error\n */\nexport function assertPrefixedHexString(s: string, name = 'value'): asserts s is PrefixedHexString {\n if (!isPrefixedHexString(s)) {\n throw new TypeError(`${name} not valid prefixed hex string: ${s}`)\n }\n}\n","import { BeeError, BeeNotAJsonError, BeeRequestError, BeeResponseError } from './error'\nimport type { BeeRequest, BeeResponse, HookCallback, HttpMethod, Ky } from '../types'\nimport kyFactory, { HTTPError, Options as KyOptions } from 'ky-universal'\nimport { normalizeToReadableStream } from './stream'\nimport { deepMerge } from './merge'\nimport { isObject, isStrictlyObject } from './type'\nimport { KyRequestOptions } from '../types'\n\nconst DEFAULT_KY_CONFIG: KyOptions = {\n headers: {\n accept: 'application/json, text/plain, */*',\n 'user-agent': `bee-js`,\n },\n}\n\ninterface UndiciError {\n cause: Error\n}\n\ninterface KyResponse<T> extends Response {\n data: T\n}\n\nfunction isHttpError(e: unknown): e is HTTPError {\n return isObject(e) && typeof e.response !== 'undefined'\n}\n\nfunction isHttpRequestError(e: unknown): e is Error {\n return isObject(e) && typeof e.request !== 'undefined'\n}\n\nfunction headersToObject(header: Headers) {\n return [...header.entries()].reduce<Record<string, string>>((obj, [key, val]) => {\n obj[key] = val\n\n return obj\n }, {})\n}\n\nfunction wrapRequest(request: Request): BeeRequest {\n return {\n url: request.url,\n method: request.method.toUpperCase() as HttpMethod,\n headers: headersToObject(request.headers),\n }\n}\n\nexport function wrapRequestClosure(cb: HookCallback<BeeRequest>): (request: Request) => Promise<void> {\n return async (request: Request) => {\n await cb(wrapRequest(request))\n }\n}\n\nexport function wrapResponseClosure(\n cb: HookCallback<BeeResponse>,\n): (request: Request, options: unknown, response: Response) => Promise<void> {\n return async (request: Request, options: unknown, response: Response) => {\n await cb({\n headers: headersToObject(response.headers),\n status: response.status,\n statusText: response.statusText,\n request: wrapRequest(request),\n })\n }\n}\n\n/**\n * Filters out entries that has undefined value from headers object.\n * Modifies the original object!\n *\n * @param obj\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function filterHeaders(obj?: object): Record<string, string> | undefined {\n if (obj === undefined) {\n return undefined\n }\n\n isStrictlyObject(obj)\n\n const typedObj = obj as Record<string, string>\n\n for (const key in typedObj) {\n if (typedObj[key] === undefined) {\n delete typedObj[key]\n }\n }\n\n if (Object.keys(typedObj).length === 0) {\n return undefined\n }\n\n return typedObj\n}\n\n/**\n * Main utility function to make HTTP requests.\n * @param ky\n * @param config\n */\nexport async function http<T>(ky: Ky, config: KyRequestOptions): Promise<KyResponse<T>> {\n try {\n const { path, responseType, ...kyConfig } = config\n\n const response = (await ky(path, {\n ...kyConfig,\n searchParams: filterHeaders(kyConfig.searchParams),\n })) as KyResponse<T>\n\n switch (responseType) {\n case 'stream':\n if (!response.body) {\n throw new BeeError('Response was expected to get data but did not get any!')\n }\n\n response.data = normalizeToReadableStream(response.body) as unknown as T\n break\n case 'arraybuffer':\n response.data = (await response.arrayBuffer()) as unknown as T\n break\n case 'json':\n try {\n response.data = (await response.json()) as unknown as T\n } catch (e) {\n throw new BeeNotAJsonError()\n }\n break\n default:\n break // If responseType is not set, then no data are expected\n }\n\n return response\n } catch (e) {\n // Passthrough thrown errors\n if (e instanceof BeeNotAJsonError) {\n throw e\n }\n\n if (isHttpError(e)) {\n let message\n\n // We store the response body here as it can be read only once in Response's lifecycle so to make it exposed\n // to the user in the BeeResponseError, for further analysis.\n const body = await e.response.text()\n\n try {\n // The response can be Bee's JSON with structure `{code, message}` lets try to parse it\n message = JSON.parse(body).message\n } catch (e) {}\n\n if (message) {\n throw new BeeResponseError(e.response.status, e.response, body, config, `${e.response.statusText}: ${message}`)\n } else {\n throw new BeeResponseError(e.response.status, e.response, body, config, e.response.statusText)\n }\n } else if (isHttpRequestError(e)) {\n throw new BeeRequestError(e.message, config)\n } else {\n // Node 18 has native `fetch` implementation called Undici. Errors from this implementation have top level generic\n // message \"fetch failed\" with the more specific error placed into `cause` property. Instead of \"fetch failed\" we\n // expose the underlying problem.\n if ((e as UndiciError).cause) {\n throw new BeeError((e as UndiciError).cause.message)\n }\n\n throw new BeeError((e as Error).message)\n }\n }\n}\n\nexport function makeDefaultKy(kyConfig: KyOptions): Ky {\n return kyFactory.create(deepMerge(DEFAULT_KY_CONFIG, kyConfig))\n}\n","import { isObject } from './type'\n\n/**\n * Function that deep merges objects\n *\n * @copyright https://github.com/sindresorhus/ky/blob/b3c9e88fa49d50150dbb6e6b771b4af56cb40c98/source/utils/merge.ts\n * @licence MIT\n * @param sources\n */\nexport function deepMerge<T>(...sources: Array<Partial<T> | undefined>): T {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let returnValue: any = {}\n\n for (const source of sources) {\n if (Array.isArray(source)) {\n if (!Array.isArray(returnValue)) {\n returnValue = []\n }\n\n returnValue = [...returnValue, ...source]\n } else if (isObject(source)) {\n // eslint-disable-next-line prefer-const\n for (let [key, value] of Object.entries(source)) {\n if (isObject(value) && key in returnValue) {\n value = deepMerge(returnValue[key], value)\n }\n\n returnValue = { ...returnValue, [key]: value }\n }\n }\n }\n\n return returnValue\n}\n","import { AddressPrefix, PSS_TARGET_HEX_LENGTH_MAX } from '../types'\n\n/**\n * Utility function that for given strings/reference takes the most specific\n * target that Bee node will except.\n *\n * @param target is a non-prefixed hex string Bee address\n * @see [Bee docs - PSS](https://docs.ethswarm.org/docs/dapps-on-swarm/pss)\n */\nexport function makeMaxTarget(target: string): AddressPrefix {\n if (typeof target !== 'string') {\n throw new TypeError('target has to be an string!')\n }\n\n return target.slice(0, PSS_TARGET_HEX_LENGTH_MAX)\n}\n","import {\n BytesReference,\n ENCRYPTED_REFERENCE_BYTES_LENGTH,\n ENCRYPTED_REFERENCE_HEX_LENGTH,\n Reference,\n REFERENCE_BYTES_LENGTH,\n REFERENCE_HEX_LENGTH,\n} from '../types'\nimport { bytesAtOffset, hasBytesAtOffset } from './bytes'\nimport { hexToBytes, makeHexString } from './hex'\n\nexport function makeBytesReference(reference: Uint8Array | BytesReference | Reference, offset = 0): BytesReference {\n if (typeof reference === 'string') {\n if (offset) {\n throw new Error('Offset property can be set only for UintArray reference!')\n }\n\n try {\n // Non-encrypted chunk hex string reference\n const hexReference = makeHexString(reference, REFERENCE_HEX_LENGTH)\n\n return hexToBytes<typeof REFERENCE_BYTES_LENGTH>(hexReference)\n } catch (e) {\n if (!(e instanceof TypeError)) {\n throw e\n }\n\n // Encrypted chunk hex string reference\n const hexReference = makeHexString(reference, ENCRYPTED_REFERENCE_HEX_LENGTH)\n\n return hexToBytes<typeof ENCRYPTED_REFERENCE_BYTES_LENGTH>(hexReference)\n }\n } else if (reference instanceof Uint8Array) {\n if (hasBytesAtOffset(reference, offset, ENCRYPTED_REFERENCE_BYTES_LENGTH)) {\n return bytesAtOffset(reference, offset, ENCRYPTED_REFERENCE_BYTES_LENGTH)\n } else if (hasBytesAtOffset(reference, offset, REFERENCE_BYTES_LENGTH)) {\n return bytesAtOffset(reference, offset, REFERENCE_BYTES_LENGTH)\n }\n }\n throw new TypeError('invalid chunk reference')\n}\n","/**\n * Sleep for N miliseconds\n *\n * @param ms Number of miliseconds to sleep\n */\nexport async function sleep(ms: number): Promise<void> {\n return new Promise<void>(resolve => setTimeout(() => resolve(), ms))\n}\n","import { PostageBatch } from '../types'\n\n/**\n * Utility function that calculates usage of postage batch based on its utilization, depth and bucket depth.\n *\n * Be aware for small depths (17, 18) this does not provide that much information as the provided set of distinct values\n * is small.\n *\n * @param utilization\n * @param depth\n * @param bucketDepth\n */\nexport function getStampUsage({ utilization, depth, bucketDepth }: PostageBatch): number {\n return utilization / Math.pow(2, depth - bucketDepth)\n}\n","import { Readable as NodeReadableNative, ReadableOptions as NodeReadableOptions } from 'stream'\nimport { isStrictlyObject } from './type'\nimport { ReadableStream } from 'web-streams-polyfill'\n\nimport { Readable } from '../types'\n\nconst NodeReadable = NodeReadableNative || class {}\n\n/**\n * Validates if passed object is either browser's ReadableStream\n * or Node's Readable.\n *\n * @param entry\n */\nexport function isReadable(entry: unknown): entry is Readable {\n return isReadableStream(entry) || isNodeReadable(entry)\n}\n\nexport function isReadableStream(entry: unknown): entry is ReadableStream {\n if (!isStrictlyObject(entry)) {\n return false\n }\n\n const browserReadable = entry as ReadableStream\n\n if (\n typeof browserReadable.getReader === 'function' &&\n browserReadable.locked !== undefined &&\n typeof browserReadable.cancel === 'function' &&\n typeof browserReadable.pipeTo === 'function' &&\n typeof browserReadable.pipeThrough === 'function'\n ) {\n return true\n }\n\n return false\n}\n\nexport function isNodeReadable(entry: unknown): entry is NodeReadableNative {\n if (!isStrictlyObject(entry)) {\n return false\n }\n\n const nodeReadable = entry as NodeReadableNative\n\n if (typeof nodeReadable.pipe === 'function' && nodeReadable.readable && typeof nodeReadable._read === 'function') {\n return true\n }\n\n return false\n}\n\n/**\n * Function that converts Node's Readable into WHATWG ReadableStream\n *\n * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js\n * Because it uses forked web-streams-polyfill that are outdated.\n *\n * @author https://github.com/gwicke\n * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE\n * @param nodeStream\n */\nexport function readableNodeToWeb(nodeStream: NodeReadableNative): ReadableStream<Uint8Array> {\n return new ReadableStream({\n start(controller) {\n nodeStream.pause()\n nodeStream.on('data', chunk => {\n if (Buffer.isBuffer(chunk)) {\n controller.enqueue(new Uint8Array(chunk.buffer))\n } else {\n controller.enqueue(chunk)\n }\n nodeStream.pause()\n })\n nodeStream.on('end', () => controller.close())\n nodeStream.on('error', e => controller.error(e))\n },\n pull() {\n nodeStream.resume()\n },\n cancel() {\n nodeStream.pause()\n },\n })\n}\n\n/**\n * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js\n * Because it uses forked web-streams-polyfill that are outdated.\n *\n * @author https://github.com/gwicke\n * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE\n */\nclass NodeReadableWrapper extends NodeReadable {\n private _webStream: ReadableStream\n private _reader: ReadableStreamDefaultReader<any>\n private _reading: boolean\n constructor(webStream: ReadableStream, options?: NodeReadableOptions) {\n super(options)\n this._webStream = webStream\n this._reader = webStream.getReader()\n this._reading = false\n }\n\n _read() {\n if (this._reading) {\n return\n }\n this._reading = true\n const doRead = () => {\n this._reader.read().then(res => {\n if (res.done) {\n this.push(null)\n\n return\n }\n\n if (this.push(res.value)) {\n return doRead()\n } else {\n this._reading = false\n }\n })\n }\n doRead()\n }\n}\n\n/**\n * Function that converts WHATWG ReadableStream into Node's Readable\n *\n * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js\n * Because it uses forked web-streams-polyfill that is outdated.\n *\n * **Warning!**\n * If you want to use this function in browser you have to polyfill `stream` package with your bundler.\n *\n * @author https://github.com/gwicke\n * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE\n * @param webStream\n * @param options\n */\nexport function readableWebToNode(\n webStream: ReadableStream<unknown>,\n options?: NodeReadableOptions,\n): NodeReadableNative {\n if (!NodeReadableNative) {\n throw new Error(\n \"The Node's Readable is not available! If you are running this in browser you have to polyfill 'stream' package!\",\n )\n }\n\n return new NodeReadableWrapper(webStream, options) as unknown as NodeReadableNative\n}\n\nexport function normalizeToReadableStream(stream: Readable): ReadableStream {\n if (isNodeReadable(stream)) {\n return readableNodeToWeb(stream)\n } else if (isReadableStream(stream)) {\n return stream\n }\n\n throw new TypeError('Passed stream is not Node Readable nor ReadableStream!')\n}\n","import { Collection } from '../types'\nimport Tar from 'tar-js'\n\n// this is a workaround type so that we are able to pass in Uint8Arrays\n// as string to `tar.append`\ninterface StringLike {\n readonly length: number\n charCodeAt: (index: number) => number\n}\n\n// converts a string to utf8 Uint8Array and returns it as a string-like\n// object that `tar.append` accepts as path\nfunction fixUnicodePath(path: string): StringLike {\n const codes = new TextEncoder().encode(path)\n\n return {\n length: codes.length,\n charCodeAt: index => codes[index],\n }\n}\n\nexport function makeTar(data: Collection<Uint8Array>): Uint8Array {\n const tar = new Tar()\n for (const entry of data) {\n const path = fixUnicodePath(entry.path)\n tar.append(path, entry.data)\n }\n\n return tar.out\n}\n","import {\n Address,\n ADDRESS_HEX_LENGTH,\n AddressPrefix,\n AllTagsOptions,\n BATCH_ID_HEX_LENGTH,\n BatchId,\n CollectionUploadOptions,\n ENCRYPTED_REFERENCE_HEX_LENGTH,\n FileUploadOptions,\n NumberString,\n PssMessageHandler,\n PUBKEY_HEX_LENGTH,\n PublicKey,\n Readable,\n Reference,\n REFERENCE_HEX_LENGTH,\n Tag,\n TAGS_LIMIT_MAX,\n TAGS_LIMIT_MIN,\n PSS_TARGET_HEX_LENGTH_MAX,\n UploadOptions,\n TransactionHash,\n RequestOptions,\n PostageBatchOptions,\n CashoutOptions,\n ReferenceOrEns,\n UploadResult,\n UploadResultWithCid,\n} from '../types'\nimport { BeeArgumentError, BeeError } from './error'\nimport { isFile } from './file'\nimport { assertHexString, assertPrefixedHexString, isHexString } from './hex'\nimport { isReadable } from './stream'\nimport { decodeCid, encodeReference, ReferenceType } from '@ethersphere/swarm-cid'\n\nexport function isUint8Array(obj: unknown): obj is Uint8Array {\n return obj instanceof Uint8Array\n}\n\nexport function isInteger(value: unknown): value is number | NumberString {\n return (\n (typeof value === 'string' && /^-?(0|[1-9][0-9]*)$/g.test(value)) ||\n (typeof value === 'number' &&\n value > Number.MIN_SAFE_INTEGER &&\n value < Number.MAX_SAFE_INTEGER &&\n Number.isInteger(value))\n )\n}\n\nexport function isObject(value: unknown): value is Record<string, unknown> {\n return value !== null && typeof value === 'object'\n}\n\n/**\n * Generally it is discouraged to use `object` type, but in this case I think\n * it is best to do so as it is possible to easily convert from `object`to other\n * types, which will be usually the case after asserting that the object is\n * strictly object. With for example Record<string, unknown> you have to first\n * cast it to `unknown` which I think bit defeat the purpose.\n *\n * @param value\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isStrictlyObject(value: unknown): value is object {\n return isObject(value) && !Array.isArray(value)\n}\n\n/**\n * Asserts if object is Error\n *\n * @param e\n */\nexport function isError(e: unknown): e is Error {\n return e instanceof Error\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function assertStrictlyObject(value: unknown, name = 'value'): asserts value is object {\n if (!isStrictlyObject(value)) {\n throw new TypeError(`${name} has to be an object that is not null nor array!`)\n }\n}\n\nexport function assertBoolean(value: unknown, name = 'value'): asserts value is boolean {\n if (value !== true && value !== false) throw new TypeError(`${name} is not boolean`)\n}\n\nexport function assertInteger(value: unknown, name = 'value'): asserts value is number | NumberString {\n if (!isInteger(value)) throw new TypeError(`${name} is not integer`)\n}\n\nexport function assertNonNegativeInteger(value: unknown, name = 'Value'): asserts value is number | NumberString {\n assertInteger(value, name)\n\n if (Number(value) < 0) throw new BeeArgumentError(`${name} has to be bigger or equal to zero`, value)\n}\n\nexport function assertPositiveInteger(value: unknown, name = 'Value'): asserts value is number | NumberString {\n assertInteger(value, name)\n\n if (Number(value) <= 0) throw new BeeArgumentError(`${name} has to be bigger then zero`, value)\n}\n\nexport function assertReference(value: unknown): asserts value is Reference {\n try {\n assertHexString(value, REFERENCE_HEX_LENGTH)\n } catch (e) {\n assertHexString(value, ENCRYPTED_REFERENCE_HEX_LENGTH)\n }\n}\n\nexport function assertReferenceOrEns(value: unknown): asserts value is ReferenceOrEns {\n if (typeof value !== 'string') {\n throw new TypeError('ReferenceOrEns has to be a string!')\n }\n\n if (isHexString(value)) {\n assertReference(value)\n\n return\n }\n\n /**\n * a.asdf - VALID\n * test.eth - VALID\n * ADAM.ETH - VALID\n * ADAM UHLIR.ETH - INVALID\n * test.whatever.eth - VALID\n * -adg.ets - INVALID\n * adg-.ets - INVALID\n * as-a.com - VALID\n * ethswarm.org - VALID\n * http://asdf.asf - INVALID\n * řš+ýí.šě+ř.čě - VALID\n * tsg.asg?asg - INVALID\n * tsg.asg:1599 - INVALID\n * ethswarm.something- - INVALID\n * ethswarm.-something - INVALID\n * ethswarm.some-thing - VALID\n *\n * The idea of this regex is to match strings that are 1 to 63 characters long and do not start or end with dash character\n *\n * This part matches 2-63 character string that does not start or end with -\n * [^-.\\/?:\\s][^.\\/?:\\s]{0,61}[^-.\\/?:\\s] <regexp1>\n *\n * For 1 character long string we use the part after |\n * [^-.\\/?:\\s] <regexp2>\n *\n * This is terminated in a group with . character an repeated at least once\n * (<regexp1>|<regexp2>\\.)+\n *\n * This covers everything but top level domain which is 2 to 63 characters long so we can just use the <regexp2> again\n * ^(<regexp1>|<regexp2>\\.)+<regexp1>$\n */\n const DOMAIN_REGEX =\n /^(?:(?:[^-.\\/?:\\s][^.\\/?:\\s]{0,61}[^-.\\/?:\\s]|[^-.\\/?:\\s]{1,2})\\.)+[^-.\\/?:\\s][^.\\/?:\\s]{0,61}[^-.\\/?:\\s]$/\n\n // We are doing best-effort validation of domain here. The proper way would be to do validation using IDNA UTS64 standard\n // but that would give us high penalty to our dependencies as the library (idna-uts46-hx) that does this validation and translation\n // adds 160kB minified size which is significant. We expects that full validation will be done on Bee side.\n if (!DOMAIN_REGEX.test(value)) {\n throw new TypeError('ReferenceOrEns is not valid Reference, but also not valid ENS domain.')\n }\n}\n\n/**\n * Function that mainly converts Swarm CID into hex encoded Swarm Reference\n *\n * @param value\n * @param expectedCidType\n */\nexport function makeReferenceOrEns(value: unknown, expectedCidType: ReferenceType): ReferenceOrEns {\n if (typeof value !== 'string') {\n throw new TypeError('ReferenceCidOrEns has to be a string!')\n }\n\n try {\n const result = decodeCid(value)\n\n if (result.type !== expectedCidType) {\n throw new BeeError(\n `CID was expected to be of type ${expectedCidType}, but got instead ${result.type ?? 'non-Swarm CID'}`,\n )\n }\n\n return result.reference\n } catch (e) {\n if (e instanceof BeeError) throw e\n }\n\n assertReferenceOrEns(value)\n\n return value\n}\n\n/**\n * Function that adds getter which converts the reference into CID base32 encoded string.\n * @param result\n * @param cidType Type as described in the @ethersphere/swarm-cids-js -> ReferenceType\n */\nexport function addCidConversionFunction(result: UploadResult, cidType: ReferenceType): UploadResultWithCid {\n return {\n ...result,\n get cid() {\n return encodeReference(result.reference, cidType).toString()\n },\n }\n}\n\nexport function assertAddress(value: unknown): asserts value is Address {\n assertHexString(value, ADDRESS_HEX_LENGTH, 'Address')\n}\n\nexport function assertBatchId(value: unknown): asserts value is BatchId {\n assertHexString(value, BATCH_ID_HEX_LENGTH, 'BatchId')\n}\n\nexport function assertRequestOptions(value: unknown, name = 'RequestOptions'): asserts value is RequestOptions {\n if (value === undefined) {\n return\n }\n\n if (!isStrictlyObject(value)) {\n throw new TypeError(`${name} has to be an object!`)\n }\n\n const options = value as RequestOptions\n\n if (options.retry) {\n assertNonNegativeInteger(options.retry, `${name}.retry`)\n }\n\n if (options.timeout) {\n assertNonNegativeInteger(options.timeout, `${name}.timeout`)\n }\n\n if (options.fetch && typeof options.fetch !== 'function') {\n throw new TypeError(`${name}.fetch has to be a function or undefined!`)\n }\n}\n\nexport function assertUploadOptions(value: unknown, name = 'UploadOptions'): asserts value is UploadOptions {\n if (!isStrictlyObject(value)) {\n throw new TypeError(`${name} has to be an object!`)\n }\n\n assertRequestOptions(value, name)\n\n const options = value as UploadOptions\n\n if (options.pin && typeof options.pin !== 'boolean') {\n throw new TypeError(`options.pin property in ${name} has to be boolean or undefined!`)\n }\n\n if (options.encrypt && typeof options.encrypt !== 'boolean') {\n throw new TypeError(`options.encrypt property in ${name} has to be boolean or undefined!`)\n }\n\n if (options.tag) {\n if (typeof options.tag !== 'number') {\n throw new TypeError(`options.tag property in ${name} has to be number or undefined!`)\n }\n\n assertNonNegativeInteger(options.tag, 'options.tag')\n }\n}\n\nexport function assertFileUploadOptions(value: unknown): asserts value is FileUploadOptions {\n assertUploadOptions(value, 'FileUploadOptions')\n\n const options = value as FileUploadOptions\n\n if (options.size) {\n if (typeof options.size !== 'number') {\n throw new TypeError('tag property in FileUploadOptions has to be number or undefined!')\n }\n\n assertNonNegativeInteger(options.size, 'options.size')\n }\n\n if (options.contentType && typeof options.contentType !== 'string') {\n throw new TypeError('contentType property in FileUploadOptions has to be string or undefined!')\n }\n}\n\nexport function assertCollectionUploadOptions(value: unknown): asserts value is CollectionUploadOptions {\n assertUploadOptions(value, 'CollectionUploadOptions')\n\n const options = value as CollectionUploadOptions\n\n if (options.indexDocument && typeof options.indexDocument !== 'string') {\n throw new TypeError('indexDocument property in CollectionUploadOptions has to be string or undefined!')\n }\n\n if (options.errorDocument && typeof options.errorDocument !== 'string') {\n throw new TypeError('errorDocument property in CollectionUploadOptions has to be string or undefined!')\n }\n}\n\nexport function isTag(value: unknown): value is Tag {\n if (!isStrictlyObject(value)) {\n return false\n }\n\n const tag = value as Record<string, unknown>\n\n const numberProperties = ['total', 'processed', 'synced', 'uid']\n const correctNumberProperties = numberProperties.every(numberProperty => typeof tag[numberProperty] === 'number')\n\n if (!correctNumberProperties || !tag.startedAt || typeof tag.startedAt !== 'string') {\n return false\n }\n\n return true\n}\n\nexport function assertTag(value: unknown): asserts value is Tag {\n if (!isStrictlyObject(value)) {\n throw new TypeError('Tag is not an object!')\n }\n\n const tag = value as Record<string, unknown>\n\n const numberProperties = ['total', 'processed', 'synced', 'uid']\n for (const numberProperty of numberProperties) {\n if (!tag[numberProperty]) {\n throw new TypeError(`Tag's property '${numberProperty}' has to be specified!`)\n }\n\n if (typeof tag[numberProperty] !== 'number') {\n throw new TypeError(`Tag's property '${numberProperty}' has to be number!`)\n }\n }\n\n if (!tag.startedAt) {\n throw new TypeError(\"Tag's property 'startedAt' has to be specified!\")\n }\n\n if (typeof tag.startedAt !== 'string') {\n throw new TypeError(\"Tag's property 'startedAt' has to be string!\")\n }\n}\n\nexport function assertAddressPrefix(value: unknown): asserts value is AddressPrefix {\n assertHexString(value, undefined, 'AddressPrefix')\n\n if (value.length > PSS_TARGET_HEX_LENGTH_MAX) {\n throw new BeeArgumentError(\n `AddressPrefix must have length of ${PSS_TARGET_HEX_LENGTH_MAX} at most! Got string with ${value.length}`,\n value,\n )\n }\n}\n\nexport function assertPssMessageHandler(value: unknown): asserts value is PssMessageHandler {\n if (!isStrictlyObject(value)) {\n throw new TypeError('PssMessageHandler has to be object!')\n }\n\n const handler = value as unknown as PssMessageHandler\n\n if (typeof handler.onMessage !== 'function') {\n throw new TypeError('onMessage property of PssMessageHandler has to be function!')\n }\n\n if (typeof handler.onError !== 'function') {\n throw new TypeError('onError property of PssMessageHandler has to be function!')\n }\n}\n\nexport function assertPublicKey(value: unknown): asserts value is PublicKey {\n assertHexString(value, PUBKEY_HEX_LENGTH, 'PublicKey')\n}\n\nexport function assertPostageBatchOptions(value: unknown): asserts value is PostageBatchOptions {\n if (value === undefined) {\n return\n }\n\n assertStrictlyObject(value)\n\n const options = value as PostageBatchOptions\n assertRequestOptions(options, 'PostageBatchOptions')\n\n if (options?.gasPrice) {\n assertNonNegativeInteger(options.gasPrice)\n }\n\n if (options?.immutableFlag !== undefined) {\n assertBoolean(options.immutableFlag)\n }\n\n if (options?.waitForUsable !== undefined) {\n assertBoolean(options.waitForUsable)\n }\n\n if (options?.waitForUsableTimeout !== undefined) {\n assertNonNegativeInteger(options.waitForUsableTimeout, 'options.waitForUsableTimeout')\n }\n}\n\nexport function assertCashoutOptions(value: unknown): asserts value is CashoutOptions {\n if (value === undefined) {\n return\n }\n\n assertStrictlyObject(value)\n\n const options = value as CashoutOptions\n assertRequestOptions(options, 'PostageBatchOptions')\n\n if (options?.gasLimit) {\n assertNonNegativeInteger(options.gasLimit)\n }\n\n if (options?.gasPrice) {\n assertNonNegativeInteger(options.gasPrice)\n }\n}\n\n/**\n * Check whether the given parameter is valid data to upload\n * @param value\n * @throws TypeError if not valid\n */\nexport function assertData(value: unknown): asserts value is string | Uint8Array {\n if (typeof value !== 'string' && !(value instanceof Uint8Array)) {\n throw new TypeError('Data must be either string or Uint8Array!')\n }\n}\n\n/**\n * Check whether the given parameter is a correct file representation to file upload.\n * @param value\n * @throws TypeError if not valid\n */\nexport function assertFileData(value: unknown): asserts value is string | Uint8Array | Readable | File {\n if (typeof value !== 'string' && !(value instanceof Uint8Array) && !isFile(value) && !isReadable(value)) {\n throw new TypeError('Data must be either string, Readable, Uint8Array or File!')\n }\n}\n\n/**\n * Checks whether optional options for AllTags query are valid\n * @param options\n */\nexport function assertAllTagsOptions(entry: unknown): asserts entry is AllTagsOptions {\n if (entry !== undefined && !isStrictlyObject(entry)) {\n throw new TypeError('options has to be an object or undefined!')\n }\n\n assertRequestOptions(entry, 'AllTagsOptions')\n\n const options = entry as AllTagsOptions\n\n if (options?.limit !== undefined) {\n if (typeof options.limit !== 'number') {\n throw new TypeError('AllTagsOptions.limit has to be a number or undefined!')\n }\n\n if (options.limit < TAGS_LIMIT_MIN) {\n throw new BeeArgumentError(`AllTagsOptions.limit has to be at least ${TAGS_LIMIT_MIN}`, options.limit)\n }\n\n if (options.limit > TAGS_LIMIT_MAX) {\n throw new BeeArgumentError(`AllTagsOptions.limit has to be at most ${TAGS_LIMIT_MAX}`, options.limit)\n }\n }\n\n if (options?.offset !== undefined) {\n assertNonNegativeInteger(options.offset, 'AllTagsOptions.offset')\n }\n}\n\n/**\n * Utility functions that return Tag UID\n * @param tagUid\n */\nexport function makeTagUid(tagUid: number | Tag | string | null | undefined): number {\n if (tagUid === undefined || tagUid === null) {\n throw new TypeError('TagUid was expected but got undefined or null instead!')\n }\n\n if (isTag(tagUid)) {\n return tagUid.uid\n } else if (typeof tagUid === 'number') {\n assertNonNegativeInteger(tagUid, 'UID')\n\n return tagUid\n } else if (typeof tagUid === 'string') {\n const int = parseInt(tagUid)\n\n if (isNaN(int)) {\n throw new TypeError('Passed tagUid string is not valid integer!')\n }\n\n if (int < 0) {\n throw new TypeError(`TagUid was expected to be positive non-negative integer! Got ${int}`)\n }\n\n return int\n }\n\n throw new TypeError('tagUid has to be either Tag or a number (UID)!')\n}\n\nexport function assertTransactionHash(transactionHash: unknown): asserts transactionHash is TransactionHash {\n if (typeof transactionHash !== 'string') {\n throw new TypeError('TransactionHash has to be a string!')\n }\n\n assertPrefixedHexString(transactionHash, 'TransactionHash')\n\n // Hash is 64 long + '0x' prefix = 66\n if (transactionHash.length !== 66) {\n throw new TypeError('TransactionHash has to be prefixed hex string with total length 66 (prefix including)')\n }\n}\n","import { Bytes, makeBytes } from './bytes'\n\n// TODO handle bigger values than 32 bit\n// For now it's good enough because we only use these functions\n// sequential feed indexes.\nexport function writeUint64LittleEndian(value: number, bytes: Bytes<8> = makeBytes(8)): Bytes<8> {\n const dataView = new DataView(bytes.buffer)\n const valueLower32 = value & 0xffffffff\n const littleEndian = true\n\n dataView.setUint32(0, valueLower32, littleEndian)\n dataView.setUint32(4, 0, littleEndian)\n\n return bytes\n}\n\nexport function writeUint64BigEndian(value: number, bytes: Bytes<8> = makeBytes(8)): Bytes<8> {\n const dataView = new DataView(bytes.buffer)\n const valueLower32 = value & 0xffffffff\n\n dataView.setUint32(0, 0)\n dataView.setUint32(4, valueLower32)\n\n return bytes\n}\n\nexport function readUint64BigEndian(bytes: Bytes<8>): number {\n const dataView = new DataView(bytes.buffer)\n\n return dataView.getUint32(4)\n}\n","import { BeeArgumentError } from './error'\nimport { isObject } from './type'\n\ninterface NodeJsError {\n code: string\n}\n\nfunction isNodeJsError(e: unknown): e is NodeJsError {\n return isObject(e) && typeof e.code === 'string'\n}\n\n/**\n * Validates that passed string is valid URL of Bee.\n * We support only HTTP and HTTPS protocols.\n *\n * @param url\n */\nexport function isValidBeeUrl(url: unknown): url is URL {\n try {\n if (typeof url !== 'string') {\n return false\n }\n\n const urlObject = new URL(url)\n\n // There can be wide range of protocols passed.\n return urlObject.protocol === 'http:' || urlObject.protocol === 'https:'\n } catch (e) {\n // URL constructor throws TypeError if not valid URL\n // TODO: Drop the `.code` hack for NodeJS environment: https://github.com/ethersphere/bee-js/issues/204\n if (e instanceof TypeError || (isNodeJsError(e) && e.code === 'ERR_INVALID_URL')) {\n return false\n }\n\n throw e\n }\n}\n\n/**\n * Validates that passed string is valid URL of Bee, if not it throws BeeArgumentError.\n * We support only HTTP and HTTPS protocols.\n * @param url\n * @throws BeeArgumentError if non valid URL\n */\nexport function assertBeeUrl(url: unknown): asserts url is URL {\n if (!isValidBeeUrl(url)) {\n throw new BeeArgumentError('URL is not valid!', url)\n }\n}\n\n/**\n * Removes trailing slash out of the given string.\n * @param url\n */\nexport function stripLastSlash(url: string): string {\n if (url.endsWith('/')) {\n return url.slice(0, -1)\n }\n\n return url\n}\n","const empty = new Uint8Array(0);\nconst toHex = d => d.reduce((hex, byte) => hex + byte.toString(16).padStart(2, '0'), '');\nconst fromHex = hex => {\n const hexes = hex.match(/../g);\n return hexes ? new Uint8Array(hexes.map(b => parseInt(b, 16))) : empty;\n};\nconst equals = (aa, bb) => {\n if (aa === bb)\n return true;\n if (aa.byteLength !== bb.byteLength) {\n return false;\n }\n for (let ii = 0; ii < aa.byteLength; ii++) {\n if (aa[ii] !== bb[ii]) {\n return false;\n }\n }\n return true;\n};\nconst coerce = o => {\n if (o instanceof Uint8Array && o.constructor.name === 'Uint8Array')\n return o;\n if (o instanceof ArrayBuffer)\n return new Uint8Array(o);\n if (ArrayBuffer.isView(o)) {\n return new Uint8Array(o.buffer, o.byteOffset, o.byteLength);\n }\n throw new Error('Unknown type, must be binary type');\n};\nconst isBinary = o => o instanceof ArrayBuffer || ArrayBuffer.isView(o);\nconst fromString = str => new TextEncoder().encode(str);\nconst toString = b => new TextDecoder().decode(b);\nexport {\n equals,\n coerce,\n isBinary,\n fromHex,\n toHex,\n fromString,\n toString,\n empty\n};","import {\n coerce,\n equals as equalBytes\n} from '../bytes.js';\nimport * as varint from '../varint.js';\nexport const create = (code, digest) => {\n const size = digest.byteLength;\n const sizeOffset = varint.encodingLength(code);\n const digestOffset = sizeOffset + varint.encodingLength(size);\n const bytes = new Uint8Array(digestOffset + size);\n varint.encodeTo(code, bytes, 0);\n varint.encodeTo(size, bytes, sizeOffset);\n bytes.set(digest, digestOffset);\n return new Digest(code, size, digest, bytes);\n};\nexport const decode = multihash => {\n const bytes = coerce(multihash);\n const [code, sizeOffset] = varint.decode(bytes);\n const [size, digestOffset] = varint.decode(bytes.subarray(sizeOffset));\n const digest = bytes.subarray(sizeOffset + digestOffset);\n if (digest.byteLength !== size) {\n throw new Error('Incorrect length');\n }\n return new Digest(code, size, digest, bytes);\n};\nexport const equals = (a, b) => {\n if (a === b) {\n return true;\n } else {\n return a.code === b.code && a.size === b.size && equalBytes(a.bytes, b.bytes);\n }\n};\nexport class Digest {\n constructor(code, size, digest, bytes) {\n this.code = code;\n this.size = size;\n this.digest = digest;\n this.bytes = bytes;\n }\n}","function base(ALPHABET, name) {\n if (ALPHABET.length >= 255) {\n throw new TypeError('Alphabet too long');\n }\n var BASE_MAP = new Uint8Array(256);\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255;\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i);\n var xc = x.charCodeAt(0);\n if (BASE_MAP[xc] !== 255) {\n throw new TypeError(x + ' is ambiguous');\n }\n BASE_MAP[xc] = i;\n }\n var BASE = ALPHABET.length;\n var LEADER = ALPHABET.charAt(0);\n var FACTOR = Math.log(BASE) / Math.log(256);\n var iFACTOR = Math.log(256) / Math.log(BASE);\n function encode(source) {\n if (source instanceof Uint8Array);\n else if (ArrayBuffer.isView(source)) {\n source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);\n } else if (Array.isArray(source)) {\n source = Uint8Array.from(source);\n }\n if (!(source instanceof Uint8Array)) {\n throw new TypeError('Expected Uint8Array');\n }\n if (source.length === 0) {\n return '';\n }\n var zeroes = 0;\n var length = 0;\n var pbegin = 0;\n var pend = source.length;\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++;\n zeroes++;\n }\n var size = (pend - pbegin) * iFACTOR + 1 >>> 0;\n var b58 = new Uint8Array(size);\n while (pbegin !== pend) {\n var carry = source[pbegin];\n var i = 0;\n for (var it1 = size - 1; (carry !== 0 || i < length) && it1 !== -1; it1--, i++) {\n carry += 256 * b58[it1] >>> 0;\n b58[it1] = carry % BASE >>> 0;\n carry = carry / BASE >>> 0;\n }\n if (carry !== 0) {\n throw new Error('Non-zero carry');\n }\n length = i;\n pbegin++;\n }\n var it2 = size - length;\n while (it2 !== size && b58[it2] === 0) {\n it2++;\n }\n var str = LEADER.repeat(zeroes);\n for (; it2 < size; ++it2) {\n str += ALPHABET.charAt(b58[it2]);\n }\n return str;\n }\n function decodeUnsafe(source) {\n if (typeof source !== 'string') {\n throw new TypeError('Expected String');\n }\n if (source.length === 0) {\n return new Uint8Array();\n }\n var psz = 0;\n if (source[psz] === ' ') {\n return;\n }\n var zeroes = 0;\n var length = 0;\n while (source[psz] === LEADER) {\n zeroes++;\n psz++;\n }\n var size = (source.length - psz) * FACTOR + 1 >>> 0;\n var b256 = new Uint8Array(size);\n while (source[psz]) {\n var carry = BASE_MAP[source.charCodeAt(psz)];\n if (carry === 255) {\n return;\n }\n var i = 0;\n for (var it3 = size - 1; (carry !== 0 || i < length) && it3 !== -1; it3--, i++) {\n carry += BASE * b256[it3] >>> 0;\n b256[it3] = carry % 256 >>> 0;\n carry = carry / 256 >>> 0;\n }\n if (carry !== 0) {\n throw new Error('Non-zero carry');\n }\n length = i;\n psz++;\n }\n if (source[psz] === ' ') {\n return;\n }\n var it4 = size - length;\n while (it4 !== size && b256[it4] === 0) {\n it4++;\n }\n var vch = new Uint8Array(zeroes + (size - it4));\n var j = zeroes;\n while (it4 !== size) {\n vch[j++] = b256[it4++];\n }\n return vch;\n }\n function decode(string) {\n var buffer = decodeUnsafe(string);\n if (buffer) {\n return buffer;\n }\n throw new Error(`Non-${ name } character`);\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n };\n}\nvar src = base;\nvar _brrp__multiformats_scope_baseX = src;\nexport default _brrp__multiformats_scope_baseX;","import basex from '../../vendor/base-x.js';\nimport { coerce } from '../bytes.js';\nclass Encoder {\n constructor(name, prefix, baseEncode) {\n this.name = name;\n this.prefix = prefix;\n this.baseEncode = baseEncode;\n }\n encode(bytes) {\n if (bytes instanceof Uint8Array) {\n return `${ this.prefix }${ this.baseEncode(bytes) }`;\n } else {\n throw Error('Unknown type, must be binary type');\n }\n }\n}\nclass Decoder {\n constructor(name, prefix, baseDecode) {\n this.name = name;\n this.prefix = prefix;\n this.baseDecode = baseDecode;\n }\n decode(text) {\n if (typeof text === 'string') {\n switch (text[0]) {\n case this.prefix: {\n return this.baseDecode(text.slice(1));\n }\n default: {\n throw Error(`Unable to decode multibase string ${ JSON.stringify(text) }, ${ this.name } decoder only supports inputs prefixed with ${ this.prefix }`);\n }\n }\n } else {\n throw Error('Can only multibase decode strings');\n }\n }\n or(decoder) {\n return or(this, decoder);\n }\n}\nclass ComposedDecoder {\n constructor(decoders) {\n this.decoders = decoders;\n }\n or(decoder) {\n return or(this, decoder);\n }\n decode(input) {\n const prefix = input[0];\n const decoder = this.decoders[prefix];\n if (decoder) {\n return decoder.decode(input);\n } else {\n throw RangeError(`Unable to decode multibase string ${ JSON.stringify(input) }, only inputs prefixed with ${ Object.keys(this.decoders) } are supported`);\n }\n }\n}\nexport const or = (left, right) => new ComposedDecoder({\n ...left.decoders || { [left.prefix]: left },\n ...right.decoders || { [right.prefix]: right }\n});\nexport class Codec {\n constructor(name, prefix, baseEncode, baseDecode) {\n this.name = name;\n this.prefix = prefix;\n this.baseEncode = baseEncode;\n this.baseDecode = baseDecode;\n this.encoder = new Encoder(name, prefix, baseEncode);\n this.decoder = new Decoder(name, prefix, baseDecode);\n }\n encode(input) {\n return this.encoder.encode(input);\n }\n decode(input) {\n return this.decoder.decode(input);\n }\n}\nexport const from = ({name, prefix, encode, decode}) => new Codec(name, prefix, encode, decode);\nexport const baseX = ({prefix, name, alphabet}) => {\n const {encode, decode} = basex(alphabet, name);\n return from({\n prefix,\n name,\n encode,\n decode: text => coerce(decode(text))\n });\n};\nconst decode = (string, alphabet, bitsPerChar, name) => {\n const codes = {};\n for (let i = 0; i < alphabet.length; ++i) {\n codes[alphabet[i]] = i;\n }\n let end = string.length;\n while (string[end - 1] === '=') {\n --end;\n }\n const out = new Uint8Array(end * bitsPerChar / 8 | 0);\n let bits = 0;\n let buffer = 0;\n let written = 0;\n for (let i = 0; i < end; ++i) {\n const value = codes[string[i]];\n if (value === undefined) {\n throw new SyntaxError(`Non-${ name } character`);\n }\n buffer = buffer << bitsPerChar | value;\n bits += bitsPerChar;\n if (bits >= 8) {\n bits -= 8;\n out[written++] = 255 & buffer >> bits;\n }\n }\n if (bits >= bitsPerChar || 255 & buffer << 8 - bits) {\n throw new SyntaxError('Unexpected end of data');\n }\n return out;\n};\nconst encode = (data, alphabet, bitsPerChar) => {\n const pad = alphabet[alphabet.length - 1] === '=';\n const mask = (1 << bitsPerChar) - 1;\n let out = '';\n let bits = 0;\n let buffer = 0;\n for (let i = 0; i < data.length; ++i) {\n buffer = buffer << 8 | data[i];\n bits += 8;\n while (bits > bitsPerChar) {\n bits -= bitsPerChar;\n out += alphabet[mask & buffer >> bits];\n }\n }\n if (bits) {\n out += alphabet[mask & buffer << bitsPerChar - bits];\n }\n if (pad) {\n while (out.length * bitsPerChar & 7) {\n out += '=';\n }\n }\n return out;\n};\nexport const rfc4648 = ({name, prefix, bitsPerChar, alphabet}) => {\n return from({\n prefix,\n name,\n encode(input) {\n return encode(input, alphabet, bitsPerChar);\n },\n decode(input) {\n return decode(input, alphabet, bitsPerChar, name);\n }\n });\n};","import { baseX } from './base.js';\nexport const base58btc = baseX({\n name: 'base58btc',\n prefix: 'z',\n alphabet: '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n});\nexport const base58flickr = baseX({\n name: 'base58flickr',\n prefix: 'Z',\n alphabet: '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'\n});","import { rfc4648 } from './base.js';\nexport const base32 = rfc4648({\n prefix: 'b',\n name: 'base32',\n alphabet: 'abcdefghijklmnopqrstuvwxyz234567',\n bitsPerChar: 5\n});\nexport const base32upper = rfc4648({\n prefix: 'B',\n name: 'base32upper',\n alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567',\n bitsPerChar: 5\n});\nexport const base32pad = rfc4648({\n prefix: 'c',\n name: 'base32pad',\n alphabet: 'abcdefghijklmnopqrstuvwxyz234567=',\n bitsPerChar: 5\n});\nexport const base32padupper = rfc4648({\n prefix: 'C',\n name: 'base32padupper',\n alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=',\n bitsPerChar: 5\n});\nexport const base32hex = rfc4648({\n prefix: 'v',\n name: 'base32hex',\n alphabet: '0123456789abcdefghijklmnopqrstuv',\n bitsPerChar: 5\n});\nexport const base32hexupper = rfc4648({\n prefix: 'V',\n name: 'base32hexupper',\n alphabet: '0123456789ABCDEFGHIJKLMNOPQRSTUV',\n bitsPerChar: 5\n});\nexport const base32hexpad = rfc4648({\n prefix: 't',\n name: 'base32hexpad',\n alphabet: '0123456789abcdefghijklmnopqrstuv=',\n bitsPerChar: 5\n});\nexport const base32hexpadupper = rfc4648({\n prefix: 'T',\n name: 'base32hexpadupper',\n alphabet: '0123456789ABCDEFGHIJKLMNOPQRSTUV=',\n bitsPerChar: 5\n});\nexport const base32z = rfc4648({\n prefix: 'h',\n name: 'base32z',\n alphabet: 'ybndrfg8ejkmcpqxot1uwisza345h769',\n bitsPerChar: 5\n});","import * as varint from './varint.js';\nimport * as Digest from './hashes/digest.js';\nimport { base58btc } from './bases/base58.js';\nimport { base32 } from './bases/base32.js';\nimport { coerce } from './bytes.js';\nexport class CID {\n constructor(version, code, multihash, bytes) {\n this.code = code;\n this.version = version;\n this.multihash = multihash;\n this.bytes = bytes;\n this.byteOffset = bytes.byteOffset;\n this.byteLength = bytes.byteLength;\n this.asCID = this;\n this._baseCache = new Map();\n Object.defineProperties(this, {\n byteOffset: hidden,\n byteLength: hidden,\n code: readonly,\n version: readonly,\n multihash: readonly,\n bytes: readonly,\n _baseCache: hidden,\n asCID: hidden\n });\n }\n toV0() {\n switch (this.version) {\n case 0: {\n return this;\n }\n default: {\n const {code, multihash} = this;\n if (code !== DAG_PB_CODE) {\n throw new Error('Cannot convert a non dag-pb CID to CIDv0');\n }\n if (multihash.code !== SHA_256_CODE) {\n throw new Error('Cannot convert non sha2-256 multihash CID to CIDv0');\n }\n return CID.createV0(multihash);\n }\n }\n }\n toV1() {\n switch (this.version) {\n case 0: {\n const {code, digest} = this.multihash;\n const multihash = Digest.create(code, digest);\n return CID.createV1(this.code, multihash);\n }\n case 1: {\n return this;\n }\n default: {\n throw Error(`Can not convert CID version ${ this.version } to version 0. This is a bug please report`);\n }\n }\n }\n equals(other) {\n return other && this.code === other.code && this.version === other.version && Digest.equals(this.multihash, other.multihash);\n }\n toString(base) {\n const {bytes, version, _baseCache} = this;\n switch (version) {\n case 0:\n return toStringV0(bytes, _baseCache, base || base58btc.encoder);\n default:\n return toStringV1(bytes, _baseCache, base || base32.encoder);\n }\n }\n toJSON() {\n return {\n code: this.code,\n version: this.version,\n hash: this.multihash.bytes\n };\n }\n get [Symbol.toStringTag]() {\n return 'CID';\n }\n [Symbol.for('nodejs.util.inspect.custom')]() {\n return 'CID(' + this.toString() + ')';\n }\n static isCID(value) {\n deprecate(/^0\\.0/, IS_CID_DEPRECATION);\n return !!(value && (value[cidSymbol] || value.asCID === value));\n }\n get toBaseEncodedString() {\n throw new Error('Deprecated, use .toString()');\n }\n get codec() {\n throw new Error('\"codec\" property is deprecated, use integer \"code\" property instead');\n }\n get buffer() {\n throw new Error('Deprecated .buffer property, use .bytes to get Uint8Array instead');\n }\n get multibaseName() {\n throw new Error('\"multibaseName\" property is deprecated');\n }\n get prefix() {\n throw new Error('\"prefix\" property is deprecated');\n }\n static asCID(value) {\n if (value instanceof CID) {\n return value;\n } else if (value != null && value.asCID === value) {\n const {version, code, multihash, bytes} = value;\n return new CID(version, code, multihash, bytes || encodeCID(version, code, multihash.bytes));\n } else if (value != null && value[cidSymbol] === true) {\n const {version, multihash, code} = value;\n const digest = Digest.decode(multihash);\n return CID.create(version, code, digest);\n } else {\n return null;\n }\n }\n static create(version, code, digest) {\n if (typeof code !== 'number') {\n throw new Error('String codecs are no longer supported');\n }\n switch (version) {\n case 0: {\n if (code !== DAG_PB_CODE) {\n throw new Error(`Version 0 CID must use dag-pb (code: ${ DAG_PB_CODE }) block encoding`);\n } else {\n return new CID(version, code, digest, digest.bytes);\n }\n }\n case 1: {\n const bytes = encodeCID(version, code, digest.bytes);\n return new CID(version, code, digest, bytes);\n }\n default: {\n throw new Error('Invalid version');\n }\n }\n }\n static createV0(digest) {\n return CID.create(0, DAG_PB_CODE, digest);\n }\n static createV1(code, digest) {\n return CID.create(1, code, digest);\n }\n static decode(bytes) {\n const [cid, remainder] = CID.decodeFirst(bytes);\n if (remainder.length) {\n throw new Error('Incorrect length');\n }\n return cid;\n }\n static decodeFirst(bytes) {\n const specs = CID.inspectBytes(bytes);\n const prefixSize = specs.size - specs.multihashSize;\n const multihashBytes = coerce(bytes.subarray(prefixSize, prefixSize + specs.multihashSize));\n if (multihashBytes.byteLength !== specs.multihashSize) {\n throw new Error('Incorrect length');\n }\n const digestBytes = multihashBytes.subarray(specs.multihashSize - specs.digestSize);\n const digest = new Digest.Digest(specs.multihashCode, specs.digestSize, digestBytes, multihashBytes);\n const cid = specs.version === 0 ? CID.createV0(digest) : CID.createV1(specs.codec, digest);\n return [\n cid,\n bytes.subarray(specs.size)\n ];\n }\n static inspectBytes(initialBytes) {\n let offset = 0;\n const next = () => {\n const [i, length] = varint.decode(initialBytes.subarray(offset));\n offset += length;\n return i;\n };\n let version = next();\n let codec = DAG_PB_CODE;\n if (version === 18) {\n version = 0;\n offset = 0;\n } else if (version === 1) {\n codec = next();\n }\n if (version !== 0 && version !== 1) {\n throw new RangeError(`Invalid CID version ${ version }`);\n }\n const prefixSize = offset;\n const multihashCode = next();\n const digestSize = next();\n const size = offset + digestSize;\n const multihashSize = size - prefixSize;\n return {\n version,\n codec,\n multihashCode,\n digestSize,\n multihashSize,\n size\n };\n }\n static parse(source, base) {\n const [prefix, bytes] = parseCIDtoBytes(source, base);\n const cid = CID.decode(bytes);\n cid._baseCache.set(prefix, source);\n return cid;\n }\n}\nconst parseCIDtoBytes = (source, base) => {\n switch (source[0]) {\n case 'Q': {\n const decoder = base || base58btc;\n return [\n base58btc.prefix,\n decoder.decode(`${ base58btc.prefix }${ source }`)\n ];\n }\n case base58btc.prefix: {\n const decoder = base || base58btc;\n return [\n base58btc.prefix,\n decoder.decode(source)\n ];\n }\n case base32.prefix: {\n const decoder = base || base32;\n return [\n base32.prefix,\n decoder.decode(source)\n ];\n }\n default: {\n if (base == null) {\n throw Error('To parse non base32 or base58btc encoded CID multibase decoder must be provided');\n }\n return [\n source[0],\n base.decode(source)\n ];\n }\n }\n};\nconst toStringV0 = (bytes, cache, base) => {\n const {prefix} = base;\n if (prefix !== base58btc.prefix) {\n throw Error(`Cannot string encode V0 in ${ base.name } encoding`);\n }\n const cid = cache.get(prefix);\n if (cid == null) {\n const cid = base.encode(bytes).slice(1);\n cache.set(prefix, cid);\n return cid;\n } else {\n return cid;\n }\n};\nconst toStringV1 = (bytes, cache, base) => {\n const {prefix} = base;\n const cid = cache.get(prefix);\n if (cid == null) {\n const cid = base.encode(bytes);\n cache.set(prefix, cid);\n return cid;\n } else {\n return cid;\n }\n};\nconst DAG_PB_CODE = 112;\nconst SHA_256_CODE = 18;\nconst encodeCID = (version, code, multihash) => {\n const codeOffset = varint.encodingLength(version);\n const hashOffset = codeOffset + varint.encodingLength(code);\n const bytes = new Uint8Array(hashOffset + multihash.byteLength);\n varint.encodeTo(version, bytes, 0);\n varint.encodeTo(code, bytes, codeOffset);\n bytes.set(multihash, hashOffset);\n return bytes;\n};\nconst cidSymbol = Symbol.for('@ipld/js-cid/CID');\nconst readonly = {\n writable: false,\n configurable: false,\n enumerable: true\n};\nconst hidden = {\n writable: false,\n enumerable: false,\n configurable: false\n};\nconst version = '0.0.0-dev';\nconst deprecate = (range, message) => {\n if (range.test(version)) {\n console.warn(message);\n } else {\n throw new Error(message);\n }\n};\nconst IS_CID_DEPRECATION = `CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n`;","import * as Digest from './digest.js';\nexport const from = ({name, code, encode}) => new Hasher(name, code, encode);\nexport class Hasher {\n constructor(name, code, encode) {\n this.name = name;\n this.code = code;\n this.encode = encode;\n }\n digest(input) {\n if (input instanceof Uint8Array) {\n const result = this.encode(input);\n return result instanceof Uint8Array ? Digest.create(this.code, result) : result.then(digest => Digest.create(this.code, digest));\n } else {\n throw Error('Unknown type, must be binary type');\n }\n }\n}","var encode_1 = encode;\nvar MSB = 128, REST = 127, MSBALL = ~REST, INT = Math.pow(2, 31);\nfunction encode(num, out, offset) {\n out = out || [];\n offset = offset || 0;\n var oldOffset = offset;\n while (num >= INT) {\n out[offset++] = num & 255 | MSB;\n num /= 128;\n }\n while (num & MSBALL) {\n out[offset++] = num & 255 | MSB;\n num >>>= 7;\n }\n out[offset] = num | 0;\n encode.bytes = offset - oldOffset + 1;\n return out;\n}\nvar decode = read;\nvar MSB$1 = 128, REST$1 = 127;\nfunction read(buf, offset) {\n var res = 0, offset = offset || 0, shift = 0, counter = offset, b, l = buf.length;\n do {\n if (counter >= l) {\n read.bytes = 0;\n throw new RangeError('Could not decode varint');\n }\n b = buf[counter++];\n res += shift < 28 ? (b & REST$1) << shift : (b & REST$1) * Math.pow(2, shift);\n shift += 7;\n } while (b >= MSB$1);\n read.bytes = counter - offset;\n return res;\n}\nvar N1 = Math.pow(2, 7);\nvar N2 = Math.pow(2, 14);\nvar N3 = Math.pow(2, 21);\nvar N4 = Math.pow(2, 28);\nvar N5 = Math.pow(2, 35);\nvar N6 = Math.pow(2, 42);\nvar N7 = Math.pow(2, 49);\nvar N8 = Math.pow(2, 56);\nvar N9 = Math.pow(2, 63);\nvar length = function (value) {\n return value < N1 ? 1 : value < N2 ? 2 : value < N3 ? 3 : value < N4 ? 4 : value < N5 ? 5 : value < N6 ? 6 : value < N7 ? 7 : value < N8 ? 8 : value < N9 ? 9 : 10;\n};\nvar varint = {\n encode: encode_1,\n decode: decode,\n encodingLength: length\n};\nvar _brrp_varint = varint;\nexport default _brrp_varint;","import varint from '../vendor/varint.js';\nexport const decode = data => {\n const code = varint.decode(data);\n return [\n code,\n varint.decode.bytes\n ];\n};\nexport const encodeTo = (int, target, offset = 0) => {\n varint.encode(int, target, offset);\n return target;\n};\nexport const encodingLength = int => {\n return varint.encodingLength(int);\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.amdO = {};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(8809);\n"],"names":["root","factory","exports","module","define","amd","this","Object","defineProperty","value","decodeCid","decodeManifestCid","decodeFeedCid","encodeManifestReference","encodeFeedReference","encodeReference","ReferenceType","REFERENCE_HEX_LENGTH","SWARM_FEED_CODEC","SWARM_MANIFEST_CODEC","SWARM_NS_CODEC","KECCAK_256_CODEC","multiformats_1","require","digest_1","CODEC_TYPE_MAPPING","FEED","MANIFEST","_decodeReference","cid","CID","parse","reference","bytesToHex","multihash","digest","type","code","_encodeReference","ref","codec","assertHexString","length","TypeError","assertReference","hashBytes","hex","bytes","Uint8Array","i","hexByte","substr","parseInt","hexToBytes","createV1","create","len","Array","from","n","toString","padStart","join","s","name","test","isHexString","Error","result","assert","val","msg","inherits","ctor","superCtor","super_","TempCtor","prototype","constructor","BN","number","base","endian","isBN","negative","words","red","_init","Buffer","wordSize","window","e","parseHex4Bits","string","index","c","charCodeAt","parseHexByte","lowerBound","r","parseBase","str","start","end","mul","Math","min","num","isArray","max","left","right","cmp","_initNumber","_initArray","replace","_parseHex","_parseBase","toArray","ceil","j","w","off","strip","limbLen","limbPow","total","mod","word","imuln","_iaddn","pow","copy","dest","clone","_expand","size","_normSign","inspect","zeros","groupSizes","groupBases","smallMulTo","self","out","a","b","lo","carry","k","ncarry","rword","maxJ","padding","groupSize","groupBase","isZero","modn","idivn","toNumber","ret","toJSON","toBuffer","toArrayLike","ArrayType","byteLength","reqLength","littleEndian","res","q","andln","iushrn","clz32","_countBits","t","_zeroBits","bitLength","hi","zeroBits","toTwos","width","abs","inotn","iaddn","fromTwos","testn","notn","ineg","isNeg","neg","iuor","ior","or","uor","iuand","iand","and","uand","iuxor","ixor","xor","uxor","bytesNeeded","bitsLeft","setn","bit","wbit","iadd","isub","add","sub","comb10MulTo","mid","o","a0","al0","ah0","a1","al1","ah1","a2","al2","ah2","a3","al3","ah3","a4","al4","ah4","a5","al5","ah5","a6","al6","ah6","a7","al7","ah7","a8","al8","ah8","a9","al9","ah9","b0","bl0","bh0","b1","bl1","bh1","b2","bl2","bh2","b3","bl3","bh3","b4","bl4","bh4","b5","bl5","bh5","b6","bl6","bh6","b7","bl7","bh7","b8","bl8","bh8","b9","bl9","bh9","w0","imul","w1","w2","w3","w4","w5","w6","w7","w8","w9","w10","w11","w12","w13","w14","w15","w16","w17","w18","jumboMulTo","FFTM","mulp","x","y","mulTo","hncarry","bigMulTo","makeRBT","N","l","revBin","rb","permute","rbt","rws","iws","rtws","itws","transform","rtwdf","cos","PI","itwdf","sin","p","rtwdf_","itwdf_","re","ie","ro","io","rx","guessLen13b","m","odd","conjugate","normalize13b","ws","round","convert13b","stub","ph","_","rwst","iwst","nrws","nrwst","niwst","rmws","mulf","muln","sqr","isqr","toBitArray","iushln","bits","carryMask","newCarry","ishln","hint","extended","h","mask","maskedWords","ishrn","shln","ushln","shrn","ushrn","imaskn","maskn","isubn","addn","subn","iabs","_ishlnsubmul","shift","_wordDiv","mode","bhi","diff","qj","div","divmod","positive","divn","umod","divRound","dm","half","r2","acc","egcd","A","B","C","D","g","isEven","yp","xp","im","isOdd","jm","gcd","_invmp","x1","x2","delta","cmpn","invm","bincn","ucmp","gtn","gt","gten","gte","ltn","lt","lten","lte","eqn","eq","Red","toRed","ctx","convertTo","_forceRed","fromRed","convertFrom","forceRed","redAdd","redIAdd","redSub","redISub","redShl","shl","redMul","_verify2","redIMul","redSqr","_verify1","redISqr","redSqrt","sqrt","redInvm","redNeg","redPow","primes","k256","p224","p192","p25519","MPrime","tmp","_tmp","K256","call","P224","P192","P25519","prime","_prime","Mont","imod","rinv","minv","ireduce","rlen","split","imulK","undefined","_strip","input","output","outLen","prev","next","mod3","one","nOne","lpow","z","inv","wnd","current","currentLen","mont","u","Rand","rand","generate","_rand","getBytes","getByte","crypto","getRandomValues","arr","msCrypto","randomBytes","elliptic","version","utils","curve","curves","ec","eddsa","getNAF","getJSF","BaseCurve","conf","zero","two","pointFromJSON","gRed","_wnafT1","_wnafT2","_wnafT3","_wnafT4","_bitLength","adjustCount","redN","_maxwellTrick","BasePoint","precomputed","point","validate","_fixedNafMul","doubles","_getDoubles","naf","I","step","nafW","repr","push","jpoint","mixedAdd","points","toP","_wnafMul","nafPoints","_getNAFPoints","dblp","_wnafMulAdd","defW","coeffs","jacobianResult","wndWidth","comb","toJ","jsf","ja","jb","decodePoint","enc","slice","pointFromX","encodeCompressed","encode","_encode","compact","getX","getY","concat","precompute","power","beta","_getBeta","_hasDoubles","dbl","Base","EdwardsCurve","twisted","mOneA","c2","d","dd","oneC","Point","zOne","_mulA","_mulC","rhs","lhs","y2","pointFromY","isInfinity","normalize","obj","fromJSON","_extDbl","f","nx","ny","nt","nz","_projDbl","_extAdd","_projAdd","mulAdd","k1","k2","jmulAdd","zi","other","eqXToP","xc","short","edwards","MontCurve","i4","a24","aa","bb","diffAdd","da","cb","jumlAdd","ShortCurve","tinv","zeroA","threeA","endo","_getEndomorphism","_endoWnafT1","_endoWnafT2","isRed","inf","JPoint","lambda","betas","_getEndoRoots","lambdas","basis","map","vec","_getEndoBasis","ntinv","prevR","aprxSqrt","floor","v","y1","len1","_endoSplit","v1","v2","c1","p1","p2","q1","q2","ax","_endoWnafMulAdd","npoints","ncoeffs","pre","endoMul","JSON","obj2point","ys1","dyinv","_precompute","negate","zinv","zinv2","ay","pz2","z2","u1","u2","s1","s2","h2","h3","jx","jy","jz","jz4","jyd","jx2","jyd2","jyd4","t1","t2","dny","_zeroDbl","_threeDbl","_dbl","xx","yy","yyyy","yyyy8","c8","gamma","alpha","beta4","beta8","ggamma8","jy2","jxd4","jyd8","trpl","zz","mm","ee","yyu4","kbase","z3","pz3","zs","hash","PresetCurve","options","defineCurve","configurable","enumerable","get","sha256","sha384","sha512","HmacDRBG","KeyPair","Signature","EC","hasOwnProperty","nh","keyPair","keyFromPrivate","priv","fromPrivate","keyFromPublic","pub","fromPublic","genKeyPair","drbg","pers","persEnc","entropy","hmacStrength","entropyEnc","nonce","ns2","_truncateToN","truncOnly","sign","key","bkey","getPrivate","ns1","iter","kp","kpX","recoveryParam","canonical","verify","signature","sinv","getPublic","recoverPubKey","isYOdd","isSecondKey","rInv","getKeyRecoveryParam","Q","Qprime","_importPrivate","privEnc","_importPublic","pubEnc","reason","derive","_importDER","Position","place","getLength","buf","initial","octetLen","rmPadding","constructLength","octets","log","LN2","data","slen","toDER","backHalf","parseBytes","EDDSA","pointClass","encodingLength","message","secret","keyFromSecret","hashInt","messagePrefix","R","Rencoded","encodePoint","s_","pubBytes","S","makeSignature","sig","SG","arguments","update","intFromLE","fromSecret","lastIx","normed","xIsOdd","encodeInt","decodeInt","isPoint","cachedProperty","params","_secret","_pub","_pubBytes","privBytes","getSecret","_R","_S","_Rencoded","_Sencoded","Sencoded","toBytes","toHex","toUpperCase","minAssert","minUtils","zero2","fill","m8","d1","d2","m14","m24","computer","common","sha","ripemd","hmac","sha1","sha224","ripemd160","BlockHash","pending","pendingTotal","blockSize","outSize","padLength","_delta8","_delta32","join32","_update","_pad","_digest","Hmac","Hash","inner","outer","rotl32","sum32","sum32_3","sum32_4","RIPEMD160","K","Kh","E","Ah","Bh","Ch","Dh","Eh","T","rh","sh","toHex32","split32","shaCommon","sum32_5","ft_1","sha1_K","SHA1","W","SHA256","SHA224","ch32","maj32","s0_256","s1_256","g0_256","g1_256","sha256_K","T1","T2","SHA512","SHA384","rotr64_hi","rotr64_lo","shr64_hi","shr64_lo","sum64","sum64_hi","sum64_lo","sum64_4_hi","sum64_4_lo","sum64_5_hi","sum64_5_lo","sha512_K","ch64_hi","xh","xl","yh","yl","zh","ch64_lo","zl","maj64_hi","maj64_lo","s0_512_hi","s0_512_lo","s1_512_hi","s1_512_lo","g0_512_hi","g0_512_lo","g1_512_hi","g1_512_lo","_prepareBlock","c0_hi","c0_lo","c1_hi","c1_lo","c2_hi","c2_lo","c3_hi","c3_lo","ah","al","bh","bl","ch","cl","dh","dl","eh","el","fh","fl","gh","gl","hh","hl","c4_hi","c4_lo","T1_hi","T1_lo","T2_hi","T2_lo","rotr32","p32","isSurrogatePair","htonl","zero8","pos","predResist","minEntropy","_reseed","reseedInterval","V","nonceEnc","seed","_hmac","kmac","reseed","addEnc","temp","writable","WebSocket","MozWebSocket","global","INPUT_ERROR","WINDOW","JS_SHA3_NO_WINDOW","WEB_WORKER","JS_SHA3_NO_NODE_JS","process","versions","node","COMMON_JS","JS_SHA3_NO_COMMON_JS","AMD","ARRAY_BUFFER","JS_SHA3_NO_ARRAY_BUFFER","ArrayBuffer","HEX_CHARS","CSHAKE_PADDING","SHIFT","RC","BITS","SHAKE_BITS","OUTPUT_TYPES","CSHAKE_BYTEPAD","JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW","isView","buffer","createOutputMethod","outputType","Keccak","createShakeOutputMethod","outputBits","createCshakeOutputMethod","methods","createKmacOutputMethod","createOutputMethods","method","createMethod","algorithms","bytepad","Kmac","methodNames","algorithm","methodName","newMethodName","blocks","reset","finalized","block","blockCount","byteCount","outputBlocks","extraBytes","notString","lastByteIndex","unshift","encodeString","strs","paddingBytes","finalize","arrayBuffer","array","Uint32Array","offset","c0","c3","c4","c5","c6","c7","c9","b10","b11","b12","b13","b14","b15","b16","b17","b18","b19","b20","b21","b22","b23","b24","b25","b26","b27","b28","b29","b30","b31","b32","b33","b34","b35","b36","b37","b38","b39","b40","b41","b42","b43","b44","b45","b46","b47","b48","b49","globals","getGlobal","property","globalThis","globalProperties","globalObject","bind","isObject","supportsAbortController","AbortController","supportsStreams","ReadableStream","supportsFormData","FormData","mergeHeaders","source1","source2","Headers","isHeadersInstance","source","delete","set","deepMerge","sources","returnValue","headers","entries","requestMethods","responseTypes","json","text","formData","blob","retryAfterStatusCodes","stop","Symbol","HTTPError","response","super","statusText","String","status","TimeoutError","request","delay","ms","Promise","resolve","setTimeout","normalizeRequestMethod","includes","defaultRetryOptions","limit","statusCodes","afterStatusCodes","normalizeRetryOptions","retry","maxSafeTimeout","Ky","_retryCount","_input","_options","credentials","hooks","beforeRequest","beforeRetry","afterResponse","prefixUrl","throwHttpErrors","timeout","fetch","URL","Request","startsWith","endsWith","abortController","signal","addEventListener","abort","searchParams","URLSearchParams","url","body","stringify","fn","async","RangeError","_fetch","hook","modifiedResponse","_decorateResponse","Response","ok","onDownloadProgress","_stream","toLowerCase","_retry","mimeType","parseJson","_calculateRetryDelay","error","retryAfter","after","Number","isNaN","Date","now","maxRetryAfter","retryCount","reject","timeoutID","then","catch","clearTimeout","totalBytes","transferredBytes","controller","reader","getReader","percent","read","done","close","enqueue","validateAndMerge","createInstance","defaults","ky","newDefaults","extend","equal","debug","MAX_LENGTH","MAX_SAFE_INTEGER","parseOptions","compareIdentifiers","SemVer","loose","includePrerelease","trim","match","LOOSE","FULL","raw","major","minor","patch","prerelease","id","build","format","compare","compareMain","comparePre","compareBuild","inc","release","identifier","SEMVER_SPEC_VERSION","MAX_SAFE_COMPONENT_LENGTH","env","NODE_DEBUG","args","console","numeric","anum","bnum","rcompareIdentifiers","opts","filter","reduce","src","createToken","isGlobal","RegExp","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCE","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","headerFormat","structure","clean","forEach","field","header","recordSize","Tar","recordsPerBlock","written","append","filepath","callback","checksum","mtime","uid","gid","headerArr","stringToUint8","fileName","fileMode","pad","fileSize","ustar","owner","group","keys","clear","uint8ToBase64","base64ToUint8","lookup","orig","addLength","multipleOf","uint8","base64","indexOf","charAt","iterator","queueMicrotask","Function","apply","_cursor","_size","_front","_elements","_next","_back","peek","_ownerReadableStream","_reader","_state","P","_storedError","dr","_closedPromise","_closedPromise_resolve","_closedPromise_reject","O","isFinite","trunc","F","L","$","M","Y","ur","ReadableStreamDefaultReader","H","_readRequests","_closeSteps","_chunkSteps","U","G","X","cr","closed","cancel","J","_errorSteps","releaseLock","_disturbed","_readableStreamController","defineProperties","toStringTag","Z","_ongoingPromise","_isFinished","_preventCancel","_nextSteps","return","_returnSteps","te","_asyncIteratorImpl","asyncIterator","oe","ne","ae","le","byteOffset","se","_queue","_queueTotalSize","ue","ce","ReadableStreamBYOBRequest","view","fe","Ae","_view","respond","_associatedReadableByteStreamController","Be","respondWithNewView","ke","ReadableByteStreamController","byobRequest","de","ze","We","desiredSize","Oe","_closeRequested","_controlledReadableByteStream","qe","Pe","Ee","_e","_cancelAlgorithm","Ce","Se","_autoAllocateChunkSize","bufferByteLength","bytesFilled","elementSize","viewConstructor","readerType","_pendingPullIntos","be","_started","De","Le","_pulling","_pullAgain","_pullAlgorithm","ve","he","me","_readIntoRequests","pe","ye","ge","fr","_byobRequest","we","Te","Re","br","_strategyHWM","je","Fe","ReadableStreamBYOBReader","Ie","$e","Qe","Me","DataView","BYTES_PER_ELEMENT","Ye","highWaterMark","xe","Ne","He","Ve","Ue","Ge","Xe","Je","tt","Ke","WritableStream","write","et","WritableStreamDefaultController","locked","qt","rt","ot","st","getWriter","Ze","WritableStreamDefaultWriter","_writer","_writableStreamController","_writeRequests","_inFlightWriteRequest","_closeRequest","_inFlightCloseRequest","_pendingAbortRequest","_backpressure","_abortReason","_abortController","_promise","_resolve","_reject","_reason","_wasAlreadyErroring","it","Lt","pt","wt","at","_t","ut","kt","ct","At","_ownerWritableStream","Ft","Ot","zt","jt","Bt","dt","Et","Wt","vt","ready","_readyPromise","ft","ht","mt","bt","_closedPromiseState","_readyPromiseState","It","_strategySizeAlgorithm","Rt","_controlledWritableStream","Tt","abortReason","yt","Pt","Ct","_abortAlgorithm","St","_writeAlgorithm","_closeAlgorithm","_readyPromise_resolve","_readyPromise_reject","Dt","DOMException","$t","captureStackTrace","Mt","all","aborted","removeEventListener","ReadableStreamDefaultController","Qt","Kt","Gt","Xt","Ht","Vt","Ut","Nt","_controlledReadableStream","Yt","xt","Jt","Zt","lr","ir","er","tr","rr","nr","ar","preventAbort","preventCancel","preventClose","Boolean","autoAllocateChunkSize","pull","sr","_r","pipeThrough","readable","pipeTo","tee","values","hr","mr","ByteLengthQueuingStrategy","_byteLengthQueuingStrategyHighWaterMark","yr","pr","gr","CountQueuingStrategy","_countQueuingStrategyHighWaterMark","vr","Sr","wr","Rr","Tr","TransformStream","flush","readableType","writableType","_transformStreamController","_backpressureChangePromise","_writable","kr","qr","_readable","_flushAlgorithm","Or","Er","Pr","_backpressureChangePromise_resolve","TransformStreamDefaultController","Br","_controlledTransformStream","_transformAlgorithm","Cr","Ar","Wr","jr","terminate","assertBeeUrl","stripLastSlash","kyOptions","defaultHeaders","onRequest","wrapRequestClosure","onResponse","wrapResponseClosure","makeDefaultKy","assertRequestOptions","connectivity","getNodeAddresses","getKy","getBlocklist","tagUid","isTag","assertNonNegativeInteger","tag","retrieveExtendedTag","getPeers","peer","assertAddress","removePeer","getTopology","pingPeer","balance","getAllBalances","address","getPeerBalance","getPastDueConsumptionBalances","getPastDueConsumptionPeerBalance","chequebook","getChequebookAddress","getChequebookBalance","getLastCheques","getLastChequesForPeer","getLastCashoutAction","assertCashoutOptions","cashoutLastCheque","amount","gasPrice","depositTokens","withdrawTokens","settlements","getSettlements","getAllSettlements","getHealth","getNodeInfo","isSupportedVersion","isSupportedExactVersion","isSupportedMainApiVersion","isSupportedDebugApiVersion","getVersions","states","getReserveState","getChainState","getWalletBalance","depth","assertPostageBatchOptions","assertPositiveInteger","STAMPS_DEPTH_MIN","BeeArgumentError","STAMPS_DEPTH_MAX","stamp","stamps","createPostageBatch","waitForUsable","waitForUsablePostageStamp","waitForUsableTimeout","postageBatchId","assertBatchId","topUpBatch","diluteBatch","getPostageBatch","getPostageBatchBuckets","getAllPostageBatches","transactions","getAllTransactions","transactionHash","assertTransactionHash","getTransaction","rebroadcastTransaction","cancelTransaction","time","usable","sleep","BeeError","signer","makeSigner","assertData","assertUploadOptions","upload","assertReferenceOrEns","download","downloadReadable","SPAN_SIZE","CHUNK_SIZE","chunk","assertFileData","assertFileUploadOptions","isFile","fileData","fileArrayBuffer","fileOptions","contentType","addCidConversionFunction","bzz","uploadFile","isReadable","updateTag","path","makeReferenceOrEns","downloadFile","downloadFileReadable","fileList","assertCollectionUploadOptions","makeCollectionFromFileList","uploadCollection","collection","assertCollection","dir","makeCollectionFromFS","createTag","assertAllTagsOptions","getAllTags","makeTagUid","retrieveTag","deleteTag","pinning","pin","unpin","getAllPins","getPin","stewardship","reupload","isRetrievable","topic","canonicalOwner","makeEthAddress","canonicalTopic","makeTopic","makeFeedReader","err","areAllSequentialFeedsUpdateRetrievable","target","recipient","assertAddressPrefix","assertPublicKey","pss","send","pssSubscribe","handler","assertPssMessageHandler","subscribe","cancelled","subscription","onmessage","prepareWebsocketData","ev","onMessage","wrapBytesWithHelpers","onerror","onError","timeoutMsec","assertFeedType","makeHexEthAddress","createFeedManifest","makeFeedWriter","canonicalSigner","resolveSigner","hashedTopic","makeFeedTopic","feedType","DEFAULT_FEED_TYPE","writer","setJsonData","getJsonData","makeTopicFromString","makeSOCReader","ownerAddress","downloadSingleOwnerChunk","makeSOCWriter","uploadSingleOwnerChunkData","checkConnection","chunkContent","span","rootHash","payload","MAX_CHUNK_PAYLOAD_SIZE","hashNumbers","keccak256","bmtRootHash","chunkHashInput","keccak256Hash","pkg","chunkAddress","isValidChunkData","payloadBytes","makeSpan","assertFlexBytes","MAX_PAYLOAD_SIZE","serializeBytes","flexBytesAtOffset","CAC_PAYLOAD_OFFSET","bmtHash","bytesEqual","arrays","curr","hexKey","makeHexString","makePrivateKeySigner","assertBytes","assertSigner","hashWithEthereumPrefix","publicKeyToAddress","hexString","SIGNATURE_HEX_LENGTH","SIGNATURE_BYTES_LENGTH","ethereumSignedMessagePrefix","prefixBytes","TextEncoder","defaultSign","privateKey","hashedDigest","sigRaw","pubKey","isStrictlyObject","typedSigner","isBytes","makeSOCAddress","makeSingleOwnerChunkFromData","chunkAPI","cac","makeContentAddressedChunk","soc","makeSingleOwnerChunk","uploadSingleOwnerChunk","SOC_PAYLOAD_OFFSET","SOC_SIGNATURE_OFFSET","cacData","bytesAtOffset","SOC_IDENTIFIER_OFFSET","recoverAddress","recoverChunkOwner","socAddress","MIN_PAYLOAD_SIZE","assertValidChunkData","socAPI","dataView","lengthLower32","setUint32","indexBytes","writeUint64BigEndian","hashFeedIdentifier","makeSequentialFeedIdentifier","FEED_INDEX_HEX_LENGTH","makeFeedIndexBytes","epoch","canonicalReference","makeBytesReference","updateFeed","findNextIndex","feedUpdate","fetchLatestFeedUpdate","feedIndexNext","BeeResponseError","makeBytes","ownerHex","nextIndex","makeFeedIdentifier","timestamp","getFeedUpdateChunkReference","downloadFeedUpdate","addressHex","timestampBytes","readUint64BigEndian","feedIndex","bee","downloadData","serializedData","jsonString","isError","serializeJson","uploadData","chunkRetrievablePromises","numIndex","makeNumericIndex","updateReferences","getAllSequenceUpdateReferences","downloadChunk","isChunkRetrievable","every","TOPIC_HEX_LENGTH","TOPIC_BYTES_LENGTH","isFeedType","feedTypes","http","responseType","endpoint","prepareData","extractUploadHeaders","readFileHeaders","tarData","makeTar","bzzEndpoint","extractCollectionUploadHeaders","extractFileUploadHeaders","indexDocument","errorDocument","balancesEndpoint","consumedEndpoint","gasLimit","chequebookEndpoint","peers","settlementsEndpoint","immutableFlag","immutable","label","batchID","apiVersion","debugApiVersion","supportedBeeVersion","SUPPORTED_BEE_VERSION_EXACT","supportedBeeApiVersion","SUPPORTED_API_VERSION","supportedBeeDebugApiVersion","SUPPORTED_DEBUG_API_VERSION","beeVersion","beeApiVersion","beeDebugApiVersion","SUPPORTED_BEE_VERSION","substring","transactionsEndpoint","pendingTransactions","filterHeaders","readFeedUpdateHeaders","references","wsUrl","tags","BeeModes","SECTION_SIZE","isFlexBytes","offsetBytes","_min","_max","assign","TextDecoder","decode","isCollection","sum","file","makeFilePath","entry","isUint8Array","webkitRelativePath","Blob","isNodeReadable","buffers","on","isReadableStream","requestOptions","responseBody","ethAddress","networkId","isHexEthAddress","assertEthAddress","isInteger","assertSwarmNetworkId","toLittleEndian","sha3_256","provider","executorFnc","sendAsync","bytesEthAddress","hexEthAddress","jsonrpc","hexAddr","ownerBytes","isEthAddrCaseIns","addr","addressHash","isValidChecksummedEthAddress","bigEndian","hexRep","intToHex","reverse","FileReader","onload","readAsArrayBuffer","File","stream","messages","hasher","encrypt","deferred","dispositionMatch","readContentDispositionFilename","readTagUid","isPrefixedHexString","int","config","kyConfig","normalizeToReadableStream","BeeNotAJsonError","isHttpError","isHttpRequestError","BeeRequestError","cause","kyFactory","DEFAULT_KY_CONFIG","wrapRequest","headersToObject","accept","typedObj","PSS_TARGET_HEX_LENGTH_MAX","hexReference","ENCRYPTED_REFERENCE_HEX_LENGTH","hasBytesAtOffset","ENCRYPTED_REFERENCE_BYTES_LENGTH","REFERENCE_BYTES_LENGTH","utilization","bucketDepth","readableNodeToWeb","webStream","NodeReadableNative","NodeReadableWrapper","NodeReadable","browserReadable","nodeReadable","pipe","_read","nodeStream","pause","isBuffer","resume","_webStream","_reading","doRead","tar","fixUnicodePath","codes","cidType","ADDRESS_HEX_LENGTH","TAGS_LIMIT_MIN","TAGS_LIMIT_MAX","BATCH_ID_HEX_LENGTH","assertStrictlyObject","assertInteger","assertBoolean","PUBKEY_HEX_LENGTH","numberProperties","numberProperty","startedAt","assertPrefixedHexString","expectedCidType","MIN_SAFE_INTEGER","getUint32","valueLower32","isValidBeeUrl","urlObject","protocol","isNodeJsError","empty","byte","fromHex","hexes","equals","ii","coerce","isBinary","fromString","sizeOffset","varint","digestOffset","Digest","subarray","equalBytes","ALPHABET","BASE_MAP","BASE","LEADER","FACTOR","iFACTOR","decodeUnsafe","psz","zeroes","b256","it3","it4","vch","pbegin","pend","b58","it1","it2","repeat","Encoder","prefix","baseEncode","Decoder","baseDecode","decoder","ComposedDecoder","decoders","Codec","encoder","baseX","alphabet","basex","rfc4648","bitsPerChar","SyntaxError","base58btc","base32","asCID","_baseCache","Map","hidden","readonly","toV0","DAG_PB_CODE","SHA_256_CODE","createV0","toV1","toStringV0","toStringV1","for","deprecate","IS_CID_DEPRECATION","cidSymbol","toBaseEncodedString","multibaseName","encodeCID","remainder","decodeFirst","specs","inspectBytes","prefixSize","multihashSize","multihashBytes","digestBytes","digestSize","multihashCode","initialBytes","parseCIDtoBytes","cache","codeOffset","hashOffset","encodeTo","range","warn","Hasher","encode_1","oldOffset","INT","counter","N1","N2","N3","N4","N5","N6","N7","N8","N9","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","amdO","definition","prop","nmd","paths","children"],"sourceRoot":""}