mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
6.3 KiB
Plaintext
1 line
6.3 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":157},"end":{"line":5,"column":40,"index":182}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":206},"end":{"line":6,"column":54,"index":238}}],"key":"iIJx+ejRpeeDyPIizByl2fy6gpQ=","exportNames":["*"],"imports":1}},{"name":"../helpers.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":21,"index":261},"end":{"line":7,"column":45,"index":285}}],"key":"SE77CtsJgC8iI+dksCgETtr2kFg=","exportNames":["*"],"imports":1}},{"name":"./xxhash64.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":22,"index":309},"end":{"line":8,"column":46,"index":333}}],"key":"MZdkAj8AIDU8tt5g3SurFgm5T8c=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.xxhashAsHex = void 0;\n exports.xxhashAsU8a = xxhashAsU8a;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const wasm_crypto_1 = require(_dependencyMap[1], \"@polkadot/wasm-crypto\");\n const helpers_js_1 = require(_dependencyMap[2], \"../helpers.js\");\n const xxhash64_js_1 = require(_dependencyMap[3], \"./xxhash64.js\");\n /**\n * @name xxhashAsU8a\n * @summary Creates a xxhash64 u8a from the input.\n * @description\n * From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash64 and return the result as a `Uint8Array` with the specified `bitLength`.\n * @example\n * <BR>\n *\n * ```javascript\n * import { xxhashAsU8a } from '@polkadot/util-crypto';\n *\n * xxhashAsU8a('abc'); // => 0x44bc2cf5ad770999\n * ```\n */\n function xxhashAsU8a(data, bitLength = 64, onlyJs) {\n const rounds = Math.ceil(bitLength / 64);\n const u8a = (0, util_1.u8aToU8a)(data);\n if (!util_1.hasBigInt || !onlyJs && (0, wasm_crypto_1.isReady)()) {\n return (0, wasm_crypto_1.twox)(u8a, rounds);\n }\n const result = new Uint8Array(rounds * 8);\n for (let seed = 0; seed < rounds; seed++) {\n result.set((0, xxhash64_js_1.xxhash64)(u8a, seed).reverse(), seed * 8);\n }\n return result;\n }\n /**\n * @name xxhashAsHex\n * @description Creates a xxhash64 hex from the input.\n */\n exports.xxhashAsHex = (0, helpers_js_1.createAsHex)(xxhashAsU8a);\n});","lineCount":44,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"xxhashAsHex"],[7,21,3,19],[7,24,3,22],[7,29,3,27],[7,30,3,28],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"xxhashAsU8a"],[8,21,4,19],[8,24,4,22,"xxhashAsU8a"],[8,35,4,33],[9,2,5,0],[9,8,5,6,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0],[10,8,6,6,"wasm_crypto_1"],[10,21,6,19],[10,24,6,22,"require"],[10,31,6,29],[10,32,6,29,"_dependencyMap"],[10,46,6,29],[10,74,6,53],[10,75,6,54],[11,2,7,0],[11,8,7,6,"helpers_js_1"],[11,20,7,18],[11,23,7,21,"require"],[11,30,7,28],[11,31,7,28,"_dependencyMap"],[11,45,7,28],[11,65,7,44],[11,66,7,45],[12,2,8,0],[12,8,8,6,"xxhash64_js_1"],[12,21,8,19],[12,24,8,22,"require"],[12,31,8,29],[12,32,8,29,"_dependencyMap"],[12,46,8,29],[12,66,8,45],[12,67,8,46],[13,2,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,2,23,0],[27,11,23,9,"xxhashAsU8a"],[27,22,23,20,"xxhashAsU8a"],[27,23,23,21,"data"],[27,27,23,25],[27,29,23,27,"bitLength"],[27,38,23,36],[27,41,23,39],[27,43,23,41],[27,45,23,43,"onlyJs"],[27,51,23,49],[27,53,23,51],[28,4,24,4],[28,10,24,10,"rounds"],[28,16,24,16],[28,19,24,19,"Math"],[28,23,24,23],[28,24,24,24,"ceil"],[28,28,24,28],[28,29,24,29,"bitLength"],[28,38,24,38],[28,41,24,41],[28,43,24,43],[28,44,24,44],[29,4,25,4],[29,10,25,10,"u8a"],[29,13,25,13],[29,16,25,16],[29,17,25,17],[29,18,25,18],[29,20,25,20,"util_1"],[29,26,25,26],[29,27,25,27,"u8aToU8a"],[29,35,25,35],[29,37,25,37,"data"],[29,41,25,41],[29,42,25,42],[30,4,26,4],[30,8,26,8],[30,9,26,9,"util_1"],[30,15,26,15],[30,16,26,16,"hasBigInt"],[30,25,26,25],[30,29,26,30],[30,30,26,31,"onlyJs"],[30,36,26,37],[30,40,26,41],[30,41,26,42],[30,42,26,43],[30,44,26,45,"wasm_crypto_1"],[30,57,26,58],[30,58,26,59,"isReady"],[30,65,26,66],[30,67,26,68],[30,68,26,70],[30,70,26,72],[31,6,27,8],[31,13,27,15],[31,14,27,16],[31,15,27,17],[31,17,27,19,"wasm_crypto_1"],[31,30,27,32],[31,31,27,33,"twox"],[31,35,27,37],[31,37,27,39,"u8a"],[31,40,27,42],[31,42,27,44,"rounds"],[31,48,27,50],[31,49,27,51],[32,4,28,4],[33,4,29,4],[33,10,29,10,"result"],[33,16,29,16],[33,19,29,19],[33,23,29,23,"Uint8Array"],[33,33,29,33],[33,34,29,34,"rounds"],[33,40,29,40],[33,43,29,43],[33,44,29,44],[33,45,29,45],[34,4,30,4],[34,9,30,9],[34,13,30,13,"seed"],[34,17,30,17],[34,20,30,20],[34,21,30,21],[34,23,30,23,"seed"],[34,27,30,27],[34,30,30,30,"rounds"],[34,36,30,36],[34,38,30,38,"seed"],[34,42,30,42],[34,44,30,44],[34,46,30,46],[35,6,31,8,"result"],[35,12,31,14],[35,13,31,15,"set"],[35,16,31,18],[35,17,31,19],[35,18,31,20],[35,19,31,21],[35,21,31,23,"xxhash64_js_1"],[35,34,31,36],[35,35,31,37,"xxhash64"],[35,43,31,45],[35,45,31,47,"u8a"],[35,48,31,50],[35,50,31,52,"seed"],[35,54,31,56],[35,55,31,57],[35,56,31,58,"reverse"],[35,63,31,65],[35,64,31,66],[35,65,31,67],[35,67,31,69,"seed"],[35,71,31,73],[35,74,31,76],[35,75,31,77],[35,76,31,78],[36,4,32,4],[37,4,33,4],[37,11,33,11,"result"],[37,17,33,17],[38,2,34,0],[39,2,35,0],[40,0,36,0],[41,0,37,0],[42,0,38,0],[43,2,39,0,"exports"],[43,9,39,7],[43,10,39,8,"xxhashAsHex"],[43,21,39,19],[43,24,39,22],[43,25,39,23],[43,26,39,24],[43,28,39,26,"helpers_js_1"],[43,40,39,38],[43,41,39,39,"createAsHex"],[43,52,39,50],[43,54,39,52,"xxhashAsU8a"],[43,65,39,63],[43,66,39,64],[44,0,39,65],[44,3]],"functionMap":{"names":["<global>","xxhashAsU8a"],"mappings":"AAA;ACsB;CDW"},"hasCjsExports":true},"type":"js/module"}]} |