Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/7e/2cdf3455f1da16e88b86a9507c7a918d01253b787a6a8b59eff33919146ecd43674285
T
2025-10-24 02:46:57 +00:00

1 line
4.0 KiB
Plaintext

{"dependencies":[{"name":"../bn/bn.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":33,"index":33}}],"key":"pRz0ltMTvp81oHyR6ilywDAbGkE=","exportNames":["*"],"imports":1}},{"name":"./stripPrefix.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":34},"end":{"line":2,"column":50,"index":84}}],"key":"5z2nEFowA0/wBFZfE5+Cv/x1ONs=","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.hexToBn = hexToBn;\n var _bnBnJs = require(_dependencyMap[0], \"../bn/bn.js\");\n var _stripPrefixJs = require(_dependencyMap[1], \"./stripPrefix.js\");\n /**\n * @name hexToBn\n * @summary Creates a BN.js object from a hex string.\n * @description\n * `null` inputs returns a `BN(0)` result. Hex input values return the actual value converted to a BN. Anything that is not a hex string (including the `0x` prefix) throws an error.\n * @param _value The value to convert\n * @param _options Options to pass while converting\n * @param _options.isLe Convert using Little Endian\n * @param _options.isNegative Convert using two's complement\n * @example\n * <BR>\n *\n * ```javascript\n * import { hexToBn } from '@polkadot/util';\n *\n * hexToBn('0x123480001f'); // => BN(0x123480001f)\n * ```\n */\n function hexToBn(value, {\n isLe = false,\n isNegative = false\n } = {}) {\n if (!value || value === '0x') {\n return new _bnBnJs.BN(0);\n }\n const stripped = (0, _stripPrefixJs.hexStripPrefix)(value);\n const bn = new _bnBnJs.BN(stripped, 16, isLe ? 'le' : 'be');\n // fromTwos takes as parameter the number of bits, which is the hex length\n // multiplied by 4 (2 bytes being 8 bits)\n return isNegative ? bn.fromTwos(stripped.length * 4) : bn;\n }\n});","lineCount":41,"map":[[7,2,21,0,"exports"],[7,9,21,0],[7,10,21,0,"hexToBn"],[7,17,21,0],[7,20,21,0,"hexToBn"],[7,27,21,0],[8,2,1,0],[8,6,1,0,"_bnBnJs"],[8,13,1,0],[8,16,1,0,"require"],[8,23,1,0],[8,24,1,0,"_dependencyMap"],[8,38,1,0],[9,2,2,0],[9,6,2,0,"_stripPrefixJs"],[9,20,2,0],[9,23,2,0,"require"],[9,30,2,0],[9,31,2,0,"_dependencyMap"],[9,45,2,0],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,0,17,0],[25,0,18,0],[26,0,19,0],[27,0,20,0],[28,2,21,7],[28,11,21,16,"hexToBn"],[28,18,21,23,"hexToBn"],[28,19,21,24,"value"],[28,24,21,29],[28,26,21,31],[29,4,21,33,"isLe"],[29,8,21,37],[29,11,21,40],[29,16,21,45],[30,4,21,47,"isNegative"],[30,14,21,57],[30,17,21,60],[31,2,21,66],[31,3,21,67],[31,6,21,70],[31,7,21,71],[31,8,21,72],[31,10,21,74],[32,4,22,4],[32,8,22,8],[32,9,22,9,"value"],[32,14,22,14],[32,18,22,18,"value"],[32,23,22,23],[32,28,22,28],[32,32,22,32],[32,34,22,34],[33,6,23,8],[33,13,23,15],[33,17,23,19,"BN"],[33,24,23,21],[33,25,23,21,"BN"],[33,27,23,21],[33,28,23,22],[33,29,23,23],[33,30,23,24],[34,4,24,4],[35,4,25,4],[35,10,25,10,"stripped"],[35,18,25,18],[35,21,25,21],[35,25,25,21,"hexStripPrefix"],[35,39,25,35],[35,40,25,35,"hexStripPrefix"],[35,54,25,35],[35,56,25,36,"value"],[35,61,25,41],[35,62,25,42],[36,4,26,4],[36,10,26,10,"bn"],[36,12,26,12],[36,15,26,15],[36,19,26,19,"BN"],[36,26,26,21],[36,27,26,21,"BN"],[36,29,26,21],[36,30,26,22,"stripped"],[36,38,26,30],[36,40,26,32],[36,42,26,34],[36,44,26,36,"isLe"],[36,48,26,40],[36,51,26,43],[36,55,26,47],[36,58,26,50],[36,62,26,54],[36,63,26,55],[37,4,27,4],[38,4,28,4],[39,4,29,4],[39,11,29,11,"isNegative"],[39,21,29,21],[39,24,30,10,"bn"],[39,26,30,12],[39,27,30,13,"fromTwos"],[39,35,30,21],[39,36,30,22,"stripped"],[39,44,30,30],[39,45,30,31,"length"],[39,51,30,37],[39,54,30,40],[39,55,30,41],[39,56,30,42],[39,59,31,10,"bn"],[39,61,31,12],[40,2,32,0],[41,0,32,1],[41,3]],"functionMap":{"names":["<global>","hexToBn"],"mappings":"AAA;OCoB;CDW"},"hasCjsExports":false},"type":"js/module"}]}