mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/x-bigint","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":131},"end":{"line":4,"column":48,"index":160}}],"key":"vYT44QPz4/mwSlaWVHyJIDa5mP4=","exportNames":["*"],"imports":1}},{"name":"../bi/consts.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":20,"index":182},"end":{"line":5,"column":46,"index":208}}],"key":"mMigf4soDf/viKGESzI+i5ta/uo=","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.u8aToBigInt = u8aToBigInt;\n var x_bigint_1 = require(_dependencyMap[0], \"@polkadot/x-bigint\");\n var consts_js_1 = require(_dependencyMap[1], \"../bi/consts.js\");\n var U8_MAX = (0, x_bigint_1.BigInt)(256);\n var U16_MAX = (0, x_bigint_1.BigInt)(256 * 256);\n var U64_MAX = (0, x_bigint_1.BigInt)('0x10000000000000000');\n /**\n * @name u8aToBigInt\n * @summary Creates a BigInt from a Uint8Array object.\n */\n function u8aToBigInt(value) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$isLe = _ref.isLe,\n isLe = _ref$isLe === void 0 ? true : _ref$isLe,\n _ref$isNegative = _ref.isNegative,\n isNegative = _ref$isNegative === void 0 ? false : _ref$isNegative;\n // slice + reverse is expensive, however SCALE is LE by default so this is the path\n // we are most interested in (the BE is added for the sake of being comprehensive)\n if (!isLe) {\n value = value.slice().reverse();\n }\n var count = value.length;\n if (isNegative && count && value[count - 1] & 0x80) {\n switch (count) {\n case 0:\n return (0, x_bigint_1.BigInt)(0);\n case 1:\n return (0, x_bigint_1.BigInt)((value[0] ^ 0x0000_00ff) * -1 - 1);\n case 2:\n return (0, x_bigint_1.BigInt)((value[0] + (value[1] << 8) ^ 0x0000_ffff) * -1 - 1);\n case 4:\n return (0, x_bigint_1.BigInt)((value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00 ^ 0xffff_ffff) * -1 - 1);\n }\n var _dvI = new DataView(value.buffer, value.byteOffset);\n if (count === 8) {\n return _dvI.getBigInt64(0, true);\n }\n var result = (0, x_bigint_1.BigInt)(0);\n var mod = count % 2;\n for (var i = count - 2; i >= mod; i -= 2) {\n result = result * U16_MAX + (0, x_bigint_1.BigInt)(_dvI.getUint16(i, true) ^ 0xffff);\n }\n if (mod) {\n result = result * U8_MAX + (0, x_bigint_1.BigInt)(value[0] ^ 0xff);\n }\n return result * -consts_js_1._1n - consts_js_1._1n;\n }\n switch (count) {\n case 0:\n return (0, x_bigint_1.BigInt)(0);\n case 1:\n return (0, x_bigint_1.BigInt)(value[0]);\n case 2:\n return (0, x_bigint_1.BigInt)(value[0] + (value[1] << 8));\n case 4:\n return (0, x_bigint_1.BigInt)(value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00);\n }\n var dvI = new DataView(value.buffer, value.byteOffset);\n switch (count) {\n case 8:\n return dvI.getBigUint64(0, true);\n case 16:\n return dvI.getBigUint64(8, true) * U64_MAX + dvI.getBigUint64(0, true);\n default:\n {\n var _result = (0, x_bigint_1.BigInt)(0);\n var _mod = count % 2;\n for (var _i = count - 2; _i >= _mod; _i -= 2) {\n _result = _result * U16_MAX + (0, x_bigint_1.BigInt)(dvI.getUint16(_i, true));\n }\n if (_mod) {\n _result = _result * U8_MAX + (0, x_bigint_1.BigInt)(value[0]);\n }\n return _result;\n }\n }\n }\n});","lineCount":84,"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,"u8aToBigInt"],[7,21,3,19],[7,24,3,22,"u8aToBigInt"],[7,35,3,33],[8,2,4,0],[8,6,4,6,"x_bigint_1"],[8,16,4,16],[8,19,4,19,"require"],[8,26,4,26],[8,27,4,26,"_dependencyMap"],[8,41,4,26],[8,66,4,47],[8,67,4,48],[9,2,5,0],[9,6,5,6,"consts_js_1"],[9,17,5,17],[9,20,5,20,"require"],[9,27,5,27],[9,28,5,27,"_dependencyMap"],[9,42,5,27],[9,64,5,45],[9,65,5,46],[10,2,6,0],[10,6,6,6,"U8_MAX"],[10,12,6,12],[10,15,6,15],[10,16,6,16],[10,17,6,17],[10,19,6,19,"x_bigint_1"],[10,29,6,29],[10,30,6,30,"BigInt"],[10,36,6,36],[10,38,6,38],[10,41,6,41],[10,42,6,42],[11,2,7,0],[11,6,7,6,"U16_MAX"],[11,13,7,13],[11,16,7,16],[11,17,7,17],[11,18,7,18],[11,20,7,20,"x_bigint_1"],[11,30,7,30],[11,31,7,31,"BigInt"],[11,37,7,37],[11,39,7,39],[11,42,7,42],[11,45,7,45],[11,48,7,48],[11,49,7,49],[12,2,8,0],[12,6,8,6,"U64_MAX"],[12,13,8,13],[12,16,8,16],[12,17,8,17],[12,18,8,18],[12,20,8,20,"x_bigint_1"],[12,30,8,30],[12,31,8,31,"BigInt"],[12,37,8,37],[12,39,8,39],[12,60,8,60],[12,61,8,61],[13,2,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,2,13,0],[17,11,13,9,"u8aToBigInt"],[17,22,13,20,"u8aToBigInt"],[17,23,13,21,"value"],[17,28,13,26],[17,30,13,70],[18,4,13,70],[18,8,13,70,"_ref"],[18,12,13,70],[18,15,13,70,"arguments"],[18,24,13,70],[18,25,13,70,"length"],[18,31,13,70],[18,39,13,70,"arguments"],[18,48,13,70],[18,56,13,70,"undefined"],[18,65,13,70],[18,68,13,70,"arguments"],[18,77,13,70],[18,83,13,66],[18,84,13,67],[18,85,13,68],[19,6,13,68,"_ref$isLe"],[19,15,13,68],[19,18,13,68,"_ref"],[19,22,13,68],[19,23,13,30,"isLe"],[19,27,13,34],[20,6,13,30,"isLe"],[20,10,13,34],[20,13,13,34,"_ref$isLe"],[20,22,13,34],[20,36,13,37],[20,40,13,41],[20,43,13,41,"_ref$isLe"],[20,52,13,41],[21,6,13,41,"_ref$isNegative"],[21,21,13,41],[21,24,13,41,"_ref"],[21,28,13,41],[21,29,13,43,"isNegative"],[21,39,13,53],[22,6,13,43,"isNegative"],[22,16,13,53],[22,19,13,53,"_ref$isNegative"],[22,34,13,53],[22,48,13,56],[22,53,13,61],[22,56,13,61,"_ref$isNegative"],[22,71,13,61],[23,4,14,4],[24,4,15,4],[25,4,16,4],[25,8,16,8],[25,9,16,9,"isLe"],[25,13,16,13],[25,15,16,15],[26,6,17,8,"value"],[26,11,17,13],[26,14,17,16,"value"],[26,19,17,21],[26,20,17,22,"slice"],[26,25,17,27],[26,26,17,28],[26,27,17,29],[26,28,17,30,"reverse"],[26,35,17,37],[26,36,17,38],[26,37,17,39],[27,4,18,4],[28,4,19,4],[28,8,19,10,"count"],[28,13,19,15],[28,16,19,18,"value"],[28,21,19,23],[28,22,19,24,"length"],[28,28,19,30],[29,4,20,4],[29,8,20,8,"isNegative"],[29,18,20,18],[29,22,20,22,"count"],[29,27,20,27],[29,31,20,32,"value"],[29,36,20,37],[29,37,20,38,"count"],[29,42,20,43],[29,45,20,46],[29,46,20,47],[29,47,20,48],[29,50,20,51],[29,54,20,56],[29,56,20,58],[30,6,21,8],[30,14,21,16,"count"],[30,19,21,21],[31,8,22,12],[31,13,22,17],[31,14,22,18],[32,10,23,16],[32,17,23,23],[32,18,23,24],[32,19,23,25],[32,21,23,27,"x_bigint_1"],[32,31,23,37],[32,32,23,38,"BigInt"],[32,38,23,44],[32,40,23,46],[32,41,23,47],[32,42,23,48],[33,8,24,12],[33,13,24,17],[33,14,24,18],[34,10,25,16],[34,17,25,23],[34,18,25,24],[34,19,25,25],[34,21,25,27,"x_bigint_1"],[34,31,25,37],[34,32,25,38,"BigInt"],[34,38,25,44],[34,40,25,47],[34,41,25,48,"value"],[34,46,25,53],[34,47,25,54],[34,48,25,55],[34,49,25,56],[34,52,25,59],[34,63,25,70],[34,67,25,74],[34,68,25,75],[34,69,25,76],[34,72,25,80],[34,73,25,81],[34,74,25,82],[35,8,26,12],[35,13,26,17],[35,14,26,18],[36,10,27,16],[36,17,27,23],[36,18,27,24],[36,19,27,25],[36,21,27,27,"x_bigint_1"],[36,31,27,37],[36,32,27,38,"BigInt"],[36,38,27,44],[36,40,27,47],[36,41,27,49,"value"],[36,46,27,54],[36,47,27,55],[36,48,27,56],[36,49,27,57],[36,53,27,61,"value"],[36,58,27,66],[36,59,27,67],[36,60,27,68],[36,61,27,69],[36,65,27,73],[36,66,27,74],[36,67,27,75],[36,70,27,79],[36,81,27,90],[36,85,27,94],[36,86,27,95],[36,87,27,96],[36,90,27,100],[36,91,27,101],[36,92,27,102],[37,8,28,12],[37,13,28,17],[37,14,28,18],[38,10,29,16],[38,17,29,23],[38,18,29,24],[38,19,29,25],[38,21,29,27,"x_bigint_1"],[38,31,29,37],[38,32,29,38,"BigInt"],[38,38,29,44],[38,40,29,47],[38,41,29,49,"value"],[38,46,29,54],[38,47,29,55],[38,48,29,56],[38,49,29,57],[38,53,29,61,"value"],[38,58,29,66],[38,59,29,67],[38,60,29,68],[38,61,29,69],[38,65,29,73],[38,66,29,74],[38,67,29,75],[38,71,29,79,"value"],[38,76,29,84],[38,77,29,85],[38,78,29,86],[38,79,29,87],[38,83,29,91],[38,85,29,93],[38,86,29,94],[38,89,29,98,"value"],[38,94,29,103],[38,95,29,104],[38,96,29,105],[38,97,29,106],[38,100,29,109],[38,112,29,122],[38,115,29,126],[38,126,29,137],[38,130,29,141],[38,131,29,142],[38,132,29,143],[38,135,29,147],[38,136,29,148],[38,137,29,149],[39,6,30,8],[40,6,31,8],[40,10,31,14,"dvI"],[40,14,31,17],[40,17,31,20],[40,21,31,24,"DataView"],[40,29,31,32],[40,30,31,33,"value"],[40,35,31,38],[40,36,31,39,"buffer"],[40,42,31,45],[40,44,31,47,"value"],[40,49,31,52],[40,50,31,53,"byteOffset"],[40,60,31,63],[40,61,31,64],[41,6,32,8],[41,10,32,12,"count"],[41,15,32,17],[41,20,32,22],[41,21,32,23],[41,23,32,25],[42,8,33,12],[42,15,33,19,"dvI"],[42,19,33,22],[42,20,33,23,"getBigInt64"],[42,31,33,34],[42,32,33,35],[42,33,33,36],[42,35,33,38],[42,39,33,42],[42,40,33,43],[43,6,34,8],[44,6,35,8],[44,10,35,12,"result"],[44,16,35,18],[44,19,35,21],[44,20,35,22],[44,21,35,23],[44,23,35,25,"x_bigint_1"],[44,33,35,35],[44,34,35,36,"BigInt"],[44,40,35,42],[44,42,35,44],[44,43,35,45],[44,44,35,46],[45,6,36,8],[45,10,36,14,"mod"],[45,13,36,17],[45,16,36,20,"count"],[45,21,36,25],[45,24,36,28],[45,25,36,29],[46,6,37,8],[46,11,37,13],[46,15,37,17,"i"],[46,16,37,18],[46,19,37,21,"count"],[46,24,37,26],[46,27,37,29],[46,28,37,30],[46,30,37,32,"i"],[46,31,37,33],[46,35,37,37,"mod"],[46,38,37,40],[46,40,37,42,"i"],[46,41,37,43],[46,45,37,47],[46,46,37,48],[46,48,37,50],[47,8,38,12,"result"],[47,14,38,18],[47,17,38,22,"result"],[47,23,38,28],[47,26,38,31,"U16_MAX"],[47,33,38,38],[47,36,38,42],[47,37,38,43],[47,38,38,44],[47,40,38,46,"x_bigint_1"],[47,50,38,56],[47,51,38,57,"BigInt"],[47,57,38,63],[47,59,38,65,"dvI"],[47,63,38,68],[47,64,38,69,"getUint16"],[47,73,38,78],[47,74,38,79,"i"],[47,75,38,80],[47,77,38,82],[47,81,38,86],[47,82,38,87],[47,85,38,90],[47,91,38,96],[47,92,38,97],[48,6,39,8],[49,6,40,8],[49,10,40,12,"mod"],[49,13,40,15],[49,15,40,17],[50,8,41,12,"result"],[50,14,41,18],[50,17,41,22,"result"],[50,23,41,28],[50,26,41,31,"U8_MAX"],[50,32,41,37],[50,35,41,41],[50,36,41,42],[50,37,41,43],[50,39,41,45,"x_bigint_1"],[50,49,41,55],[50,50,41,56,"BigInt"],[50,56,41,62],[50,58,41,64,"value"],[50,63,41,69],[50,64,41,70],[50,65,41,71],[50,66,41,72],[50,69,41,75],[50,73,41,79],[50,74,41,80],[51,6,42,8],[52,6,43,8],[52,13,43,16,"result"],[52,19,43,22],[52,22,43,25],[52,23,43,26,"consts_js_1"],[52,34,43,37],[52,35,43,38,"_1n"],[52,38,43,41],[52,41,43,45,"consts_js_1"],[52,52,43,56],[52,53,43,57,"_1n"],[52,56,43,60],[53,4,44,4],[54,4,45,4],[54,12,45,12,"count"],[54,17,45,17],[55,6,46,8],[55,11,46,13],[55,12,46,14],[56,8,47,12],[56,15,47,19],[56,16,47,20],[56,17,47,21],[56,19,47,23,"x_bigint_1"],[56,29,47,33],[56,30,47,34,"BigInt"],[56,36,47,40],[56,38,47,42],[56,39,47,43],[56,40,47,44],[57,6,48,8],[57,11,48,13],[57,12,48,14],[58,8,49,12],[58,15,49,19],[58,16,49,20],[58,17,49,21],[58,19,49,23,"x_bigint_1"],[58,29,49,33],[58,30,49,34,"BigInt"],[58,36,49,40],[58,38,49,42,"value"],[58,43,49,47],[58,44,49,48],[58,45,49,49],[58,46,49,50],[58,47,49,51],[59,6,50,8],[59,11,50,13],[59,12,50,14],[60,8,51,12],[60,15,51,19],[60,16,51,20],[60,17,51,21],[60,19,51,23,"x_bigint_1"],[60,29,51,33],[60,30,51,34,"BigInt"],[60,36,51,40],[60,38,51,42,"value"],[60,43,51,47],[60,44,51,48],[60,45,51,49],[60,46,51,50],[60,50,51,54,"value"],[60,55,51,59],[60,56,51,60],[60,57,51,61],[60,58,51,62],[60,62,51,66],[60,63,51,67],[60,64,51,68],[60,65,51,69],[61,6,52,8],[61,11,52,13],[61,12,52,14],[62,8,53,12],[62,15,53,19],[62,16,53,20],[62,17,53,21],[62,19,53,23,"x_bigint_1"],[62,29,53,33],[62,30,53,34,"BigInt"],[62,36,53,40],[62,38,53,42,"value"],[62,43,53,47],[62,44,53,48],[62,45,53,49],[62,46,53,50],[62,50,53,54,"value"],[62,55,53,59],[62,56,53,60],[62,57,53,61],[62,58,53,62],[62,62,53,66],[62,63,53,67],[62,64,53,68],[62,68,53,72,"value"],[62,73,53,77],[62,74,53,78],[62,75,53,79],[62,76,53,80],[62,80,53,84],[62,82,53,86],[62,83,53,87],[62,86,53,91,"value"],[62,91,53,96],[62,92,53,97],[62,93,53,98],[62,94,53,99],[62,97,53,102],[62,109,53,115],[62,110,53,116],[63,4,54,4],[64,4,55,4],[64,8,55,10,"dvI"],[64,11,55,13],[64,14,55,16],[64,18,55,20,"DataView"],[64,26,55,28],[64,27,55,29,"value"],[64,32,55,34],[64,33,55,35,"buffer"],[64,39,55,41],[64,41,55,43,"value"],[64,46,55,48],[64,47,55,49,"byteOffset"],[64,57,55,59],[64,58,55,60],[65,4,56,4],[65,12,56,12,"count"],[65,17,56,17],[66,6,57,8],[66,11,57,13],[66,12,57,14],[67,8,58,12],[67,15,58,19,"dvI"],[67,18,58,22],[67,19,58,23,"getBigUint64"],[67,31,58,35],[67,32,58,36],[67,33,58,37],[67,35,58,39],[67,39,58,43],[67,40,58,44],[68,6,59,8],[68,11,59,13],[68,13,59,15],[69,8,60,12],[69,15,60,20,"dvI"],[69,18,60,23],[69,19,60,24,"getBigUint64"],[69,31,60,36],[69,32,60,37],[69,33,60,38],[69,35,60,40],[69,39,60,44],[69,40,60,45],[69,43,60,48,"U64_MAX"],[69,50,60,55],[69,53,60,59,"dvI"],[69,56,60,62],[69,57,60,63,"getBigUint64"],[69,69,60,75],[69,70,60,76],[69,71,60,77],[69,73,60,79],[69,77,60,83],[69,78,60,84],[70,6,61,8],[71,8,61,17],[72,10,62,12],[72,14,62,16,"result"],[72,21,62,22],[72,24,62,25],[72,25,62,26],[72,26,62,27],[72,28,62,29,"x_bigint_1"],[72,38,62,39],[72,39,62,40,"BigInt"],[72,45,62,46],[72,47,62,48],[72,48,62,49],[72,49,62,50],[73,10,63,12],[73,14,63,18,"mod"],[73,18,63,21],[73,21,63,24,"count"],[73,26,63,29],[73,29,63,32],[73,30,63,33],[74,10,64,12],[74,15,64,17],[74,19,64,21,"i"],[74,21,64,22],[74,24,64,25,"count"],[74,29,64,30],[74,32,64,33],[74,33,64,34],[74,35,64,36,"i"],[74,37,64,37],[74,41,64,41,"mod"],[74,45,64,44],[74,47,64,46,"i"],[74,49,64,47],[74,53,64,51],[74,54,64,52],[74,56,64,54],[75,12,65,16,"result"],[75,19,65,22],[75,22,65,26,"result"],[75,29,65,32],[75,32,65,35,"U16_MAX"],[75,39,65,42],[75,42,65,46],[75,43,65,47],[75,44,65,48],[75,46,65,50,"x_bigint_1"],[75,56,65,60],[75,57,65,61,"BigInt"],[75,63,65,67],[75,65,65,69,"dvI"],[75,68,65,72],[75,69,65,73,"getUint16"],[75,78,65,82],[75,79,65,83,"i"],[75,81,65,84],[75,83,65,86],[75,87,65,90],[75,88,65,91],[75,89,65,92],[76,10,66,12],[77,10,67,12],[77,14,67,16,"mod"],[77,18,67,19],[77,20,67,21],[78,12,68,16,"result"],[78,19,68,22],[78,22,68,26,"result"],[78,29,68,32],[78,32,68,35,"U8_MAX"],[78,38,68,41],[78,41,68,45],[78,42,68,46],[78,43,68,47],[78,45,68,49,"x_bigint_1"],[78,55,68,59],[78,56,68,60,"BigInt"],[78,62,68,66],[78,64,68,68,"value"],[78,69,68,73],[78,70,68,74],[78,71,68,75],[78,72,68,76],[78,73,68,77],[79,10,69,12],[80,10,70,12],[80,17,70,19,"result"],[80,24,70,25],[81,8,71,8],[82,4,72,4],[83,2,73,0],[84,0,73,1],[84,3]],"functionMap":{"names":["<global>","u8aToBigInt"],"mappings":"AAA;ACY;CD4D"},"hasCjsExports":true},"type":"js/module"}]} |