mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
auto-commit for 49610908-ca1e-46b7-8671-ad75c85b7aa2
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
{"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"}]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[],"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.arrayFlatten = arrayFlatten;\n /**\n * @name arrayFlatten\n * @summary Merge T[][] into T[]\n * @description\n * Returns a new array with all arrays merged into one\n * @example\n * <BR>\n *\n * ```javascript\n * import { arrayFlatten } from '@polkadot/util';\n *\n * arrayFlatten([[1, 2], [3, 4], [5]]); // [1, 2, 3, 4, 5]\n * ```\n */\n function arrayFlatten(arrays) {\n const num = arrays.length;\n // shortcuts for the empty & single-entry case\n if (num === 0) {\n return [];\n } else if (num === 1) {\n return arrays[0];\n }\n // pre-allocate based on the combined size\n let size = 0;\n for (let i = 0; i < num; i++) {\n size += arrays[i].length;\n }\n const output = new Array(size);\n let i = -1;\n for (let j = 0; j < num; j++) {\n const a = arrays[j];\n // instead of pushing, we just set the entries\n for (let e = 0, count = a.length; e < count; e++) {\n output[++i] = a[e];\n }\n }\n return output;\n }\n});","lineCount":46,"map":[[7,2,15,0,"exports"],[7,9,15,0],[7,10,15,0,"arrayFlatten"],[7,22,15,0],[7,25,15,0,"arrayFlatten"],[7,37,15,0],[8,2,1,0],[9,0,2,0],[10,0,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,2,15,7],[22,11,15,16,"arrayFlatten"],[22,23,15,28,"arrayFlatten"],[22,24,15,29,"arrays"],[22,30,15,35],[22,32,15,37],[23,4,16,4],[23,10,16,10,"num"],[23,13,16,13],[23,16,16,16,"arrays"],[23,22,16,22],[23,23,16,23,"length"],[23,29,16,29],[24,4,17,4],[25,4,18,4],[25,8,18,8,"num"],[25,11,18,11],[25,16,18,16],[25,17,18,17],[25,19,18,19],[26,6,19,8],[26,13,19,15],[26,15,19,17],[27,4,20,4],[27,5,20,5],[27,11,21,9],[27,15,21,13,"num"],[27,18,21,16],[27,23,21,21],[27,24,21,22],[27,26,21,24],[28,6,22,8],[28,13,22,15,"arrays"],[28,19,22,21],[28,20,22,22],[28,21,22,23],[28,22,22,24],[29,4,23,4],[30,4,24,4],[31,4,25,4],[31,8,25,8,"size"],[31,12,25,12],[31,15,25,15],[31,16,25,16],[32,4,26,4],[32,9,26,9],[32,13,26,13,"i"],[32,14,26,14],[32,17,26,17],[32,18,26,18],[32,20,26,20,"i"],[32,21,26,21],[32,24,26,24,"num"],[32,27,26,27],[32,29,26,29,"i"],[32,30,26,30],[32,32,26,32],[32,34,26,34],[33,6,27,8,"size"],[33,10,27,12],[33,14,27,16,"arrays"],[33,20,27,22],[33,21,27,23,"i"],[33,22,27,24],[33,23,27,25],[33,24,27,26,"length"],[33,30,27,32],[34,4,28,4],[35,4,29,4],[35,10,29,10,"output"],[35,16,29,16],[35,19,29,19],[35,23,29,23,"Array"],[35,28,29,28],[35,29,29,29,"size"],[35,33,29,33],[35,34,29,34],[36,4,30,4],[36,8,30,8,"i"],[36,9,30,9],[36,12,30,12],[36,13,30,13],[36,14,30,14],[37,4,31,4],[37,9,31,9],[37,13,31,13,"j"],[37,14,31,14],[37,17,31,17],[37,18,31,18],[37,20,31,20,"j"],[37,21,31,21],[37,24,31,24,"num"],[37,27,31,27],[37,29,31,29,"j"],[37,30,31,30],[37,32,31,32],[37,34,31,34],[38,6,32,8],[38,12,32,14,"a"],[38,13,32,15],[38,16,32,18,"arrays"],[38,22,32,24],[38,23,32,25,"j"],[38,24,32,26],[38,25,32,27],[39,6,33,8],[40,6,34,8],[40,11,34,13],[40,15,34,17,"e"],[40,16,34,18],[40,19,34,21],[40,20,34,22],[40,22,34,24,"count"],[40,27,34,29],[40,30,34,32,"a"],[40,31,34,33],[40,32,34,34,"length"],[40,38,34,40],[40,40,34,42,"e"],[40,41,34,43],[40,44,34,46,"count"],[40,49,34,51],[40,51,34,53,"e"],[40,52,34,54],[40,54,34,56],[40,56,34,58],[41,8,35,12,"output"],[41,14,35,18],[41,15,35,19],[41,17,35,21,"i"],[41,18,35,22],[41,19,35,23],[41,22,35,26,"a"],[41,23,35,27],[41,24,35,28,"e"],[41,25,35,29],[41,26,35,30],[42,6,36,8],[43,4,37,4],[44,4,38,4],[44,11,38,11,"output"],[44,17,38,17],[45,2,39,0],[46,0,39,1],[46,3]],"functionMap":{"names":["<global>","arrayFlatten"],"mappings":"AAA;OCc;CDwB"},"hasCjsExports":false},"type":"js/module"}]}
|
||||
Reference in New Issue
Block a user