mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"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.u8aToNumber = u8aToNumber;\n /**\n * @name u8aToNumber\n * @summary Creates a number from a Uint8Array object.\n */\n function u8aToNumber(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 // When the value is a i{8, 16, 24, 32, 40, 40} values and the top-most bit\n // indicates a signed value, we use a two's complement conversion. If one of these\n // flags are not set, we just do a normal unsigned conversion (the same shortcut\n // applies in both the u8aTo{BigInt, Bn} conversions as well)\n if (isNegative && count && value[count - 1] & 0x80) {\n switch (count) {\n case 0:\n return 0;\n case 1:\n return (value[0] ^ 0x0000_00ff) * -1 - 1;\n case 2:\n return (value[0] + (value[1] << 8) ^ 0x0000_ffff) * -1 - 1;\n case 3:\n return (value[0] + (value[1] << 8) + (value[2] << 16) ^ 0x00ff_ffff) * -1 - 1;\n case 4:\n // for the 3rd byte, we don't << 24 - since JS converts all bitwise operators to\n // 32-bit, in the case where the top-most bit is set this yields a negative value\n return (value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00 ^ 0xffff_ffff) * -1 - 1;\n case 5:\n return ((value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00 ^ 0xffff_ffff) + (value[4] ^ 0xff) * 0x1_00_00_00_00) * -1 - 1;\n case 6:\n return ((value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00 ^ 0xffff_ffff) + (value[4] + (value[5] << 8) ^ 0x0000_ffff) * 0x1_00_00_00_00) * -1 - 1;\n default:\n throw new Error('Value more than 48-bits cannot be reliably converted');\n }\n }\n switch (count) {\n case 0:\n return 0;\n case 1:\n return value[0];\n case 2:\n return value[0] + (value[1] << 8);\n case 3:\n return value[0] + (value[1] << 8) + (value[2] << 16);\n case 4:\n // for the 3rd byte, we don't << 24 - since JS converts all bitwise operators to\n // 32-bit, in the case where the top-most bit is set this yields a negative value\n return value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00;\n case 5:\n return value[0] + (value[1] << 8) + (value[2] << 16) + (value[3] + (value[4] << 8)) * 0x1_00_00_00;\n case 6:\n return value[0] + (value[1] << 8) + (value[2] << 16) + (value[3] + (value[4] << 8) + (value[5] << 16)) * 0x1_00_00_00;\n default:\n throw new Error('Value more than 48-bits cannot be reliably converted');\n }\n }\n});","lineCount":71,"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,"u8aToNumber"],[7,21,3,19],[7,24,3,22,"u8aToNumber"],[7,35,3,33],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,2,8,0],[12,11,8,9,"u8aToNumber"],[12,22,8,20,"u8aToNumber"],[12,23,8,21,"value"],[12,28,8,26],[12,30,8,70],[13,4,8,70],[13,8,8,70,"_ref"],[13,12,8,70],[13,15,8,70,"arguments"],[13,24,8,70],[13,25,8,70,"length"],[13,31,8,70],[13,39,8,70,"arguments"],[13,48,8,70],[13,56,8,70,"undefined"],[13,65,8,70],[13,68,8,70,"arguments"],[13,77,8,70],[13,83,8,66],[13,84,8,67],[13,85,8,68],[14,6,8,68,"_ref$isLe"],[14,15,8,68],[14,18,8,68,"_ref"],[14,22,8,68],[14,23,8,30,"isLe"],[14,27,8,34],[15,6,8,30,"isLe"],[15,10,8,34],[15,13,8,34,"_ref$isLe"],[15,22,8,34],[15,36,8,37],[15,40,8,41],[15,43,8,41,"_ref$isLe"],[15,52,8,41],[16,6,8,41,"_ref$isNegative"],[16,21,8,41],[16,24,8,41,"_ref"],[16,28,8,41],[16,29,8,43,"isNegative"],[16,39,8,53],[17,6,8,43,"isNegative"],[17,16,8,53],[17,19,8,53,"_ref$isNegative"],[17,34,8,53],[17,48,8,56],[17,53,8,61],[17,56,8,61,"_ref$isNegative"],[17,71,8,61],[18,4,9,4],[19,4,10,4],[20,4,11,4],[20,8,11,8],[20,9,11,9,"isLe"],[20,13,11,13],[20,15,11,15],[21,6,12,8,"value"],[21,11,12,13],[21,14,12,16,"value"],[21,19,12,21],[21,20,12,22,"slice"],[21,25,12,27],[21,26,12,28],[21,27,12,29],[21,28,12,30,"reverse"],[21,35,12,37],[21,36,12,38],[21,37,12,39],[22,4,13,4],[23,4,14,4],[23,8,14,10,"count"],[23,13,14,15],[23,16,14,18,"value"],[23,21,14,23],[23,22,14,24,"length"],[23,28,14,30],[24,4,15,4],[25,4,16,4],[26,4,17,4],[27,4,18,4],[28,4,19,4],[28,8,19,8,"isNegative"],[28,18,19,18],[28,22,19,22,"count"],[28,27,19,27],[28,31,19,32,"value"],[28,36,19,37],[28,37,19,38,"count"],[28,42,19,43],[28,45,19,46],[28,46,19,47],[28,47,19,48],[28,50,19,51],[28,54,19,56],[28,56,19,58],[29,6,20,8],[29,14,20,16,"count"],[29,19,20,21],[30,8,21,12],[30,13,21,17],[30,14,21,18],[31,10,22,16],[31,17,22,23],[31,18,22,24],[32,8,23,12],[32,13,23,17],[32,14,23,18],[33,10,24,16],[33,17,24,25],[33,18,24,26,"value"],[33,23,24,31],[33,24,24,32],[33,25,24,33],[33,26,24,34],[33,29,24,37],[33,40,24,48],[33,44,24,52],[33,45,24,53],[33,46,24,54],[33,49,24,58],[33,50,24,59],[34,8,25,12],[34,13,25,17],[34,14,25,18],[35,10,26,16],[35,17,26,25],[35,18,26,27,"value"],[35,23,26,32],[35,24,26,33],[35,25,26,34],[35,26,26,35],[35,30,26,39,"value"],[35,35,26,44],[35,36,26,45],[35,37,26,46],[35,38,26,47],[35,42,26,51],[35,43,26,52],[35,44,26,53],[35,47,26,57],[35,58,26,68],[35,62,26,72],[35,63,26,73],[35,64,26,74],[35,67,26,78],[35,68,26,79],[36,8,27,12],[36,13,27,17],[36,14,27,18],[37,10,28,16],[37,17,28,25],[37,18,28,27,"value"],[37,23,28,32],[37,24,28,33],[37,25,28,34],[37,26,28,35],[37,30,28,39,"value"],[37,35,28,44],[37,36,28,45],[37,37,28,46],[37,38,28,47],[37,42,28,51],[37,43,28,52],[37,44,28,53],[37,48,28,57,"value"],[37,53,28,62],[37,54,28,63],[37,55,28,64],[37,56,28,65],[37,60,28,69],[37,62,28,71],[37,63,28,72],[37,66,28,76],[37,77,28,87],[37,81,28,91],[37,82,28,92],[37,83,28,93],[37,86,28,97],[37,87,28,98],[38,8,29,12],[38,13,29,17],[38,14,29,18],[39,10,30,16],[40,10,31,16],[41,10,32,16],[41,17,32,25],[41,18,32,27,"value"],[41,23,32,32],[41,24,32,33],[41,25,32,34],[41,26,32,35],[41,30,32,39,"value"],[41,35,32,44],[41,36,32,45],[41,37,32,46],[41,38,32,47],[41,42,32,51],[41,43,32,52],[41,44,32,53],[41,48,32,57,"value"],[41,53,32,62],[41,54,32,63],[41,55,32,64],[41,56,32,65],[41,60,32,69],[41,62,32,71],[41,63,32,72],[41,66,32,76,"value"],[41,71,32,81],[41,72,32,82],[41,73,32,83],[41,74,32,84],[41,77,32,87],[41,89,32,100],[41,92,32,104],[41,103,32,115],[41,107,32,119],[41,108,32,120],[41,109,32,121],[41,112,32,125],[41,113,32,126],[42,8,33,12],[42,13,33,17],[42,14,33,18],[43,10,34,16],[43,17,34,25],[43,18,34,26],[43,19,34,28,"value"],[43,24,34,33],[43,25,34,34],[43,26,34,35],[43,27,34,36],[43,31,34,40,"value"],[43,36,34,45],[43,37,34,46],[43,38,34,47],[43,39,34,48],[43,43,34,52],[43,44,34,53],[43,45,34,54],[43,49,34,58,"value"],[43,54,34,63],[43,55,34,64],[43,56,34,65],[43,57,34,66],[43,61,34,70],[43,63,34,72],[43,64,34,73],[43,67,34,77,"value"],[43,72,34,82],[43,73,34,83],[43,74,34,84],[43,75,34,85],[43,78,34,88],[43,90,34,101],[43,93,34,105],[43,104,34,116],[43,108,34,121],[43,109,34,122,"value"],[43,114,34,127],[43,115,34,128],[43,116,34,129],[43,117,34,130],[43,120,34,133],[43,124,34,137],[43,128,34,141],[43,143,34,157],[43,147,34,161],[43,148,34,162],[43,149,34,163],[43,152,34,167],[43,153,34,168],[44,8,35,12],[44,13,35,17],[44,14,35,18],[45,10,36,16],[45,17,36,25],[45,18,36,26],[45,19,36,28,"value"],[45,24,36,33],[45,25,36,34],[45,26,36,35],[45,27,36,36],[45,31,36,40,"value"],[45,36,36,45],[45,37,36,46],[45,38,36,47],[45,39,36,48],[45,43,36,52],[45,44,36,53],[45,45,36,54],[45,49,36,58,"value"],[45,54,36,63],[45,55,36,64],[45,56,36,65],[45,57,36,66],[45,61,36,70],[45,63,36,72],[45,64,36,73],[45,67,36,77,"value"],[45,72,36,82],[45,73,36,83],[45,74,36,84],[45,75,36,85],[45,78,36,88],[45,90,36,101],[45,93,36,105],[45,104,36,116],[45,108,36,121],[45,109,36,123,"value"],[45,114,36,128],[45,115,36,129],[45,116,36,130],[45,117,36,131],[45,121,36,135,"value"],[45,126,36,140],[45,127,36,141],[45,128,36,142],[45,129,36,143],[45,133,36,147],[45,134,36,148],[45,135,36,149],[45,138,36,153],[45,149,36,164],[45,153,36,168],[45,168,36,184],[45,172,36,188],[45,173,36,189],[45,174,36,190],[45,177,36,194],[45,178,36,195],[46,8,37,12],[47,10,38,16],[47,16,38,22],[47,20,38,26,"Error"],[47,25,38,31],[47,26,38,32],[47,80,38,86],[47,81,38,87],[48,6,39,8],[49,4,40,4],[50,4,41,4],[50,12,41,12,"count"],[50,17,41,17],[51,6,42,8],[51,11,42,13],[51,12,42,14],[52,8,43,12],[52,15,43,19],[52,16,43,20],[53,6,44,8],[53,11,44,13],[53,12,44,14],[54,8,45,12],[54,15,45,19,"value"],[54,20,45,24],[54,21,45,25],[54,22,45,26],[54,23,45,27],[55,6,46,8],[55,11,46,13],[55,12,46,14],[56,8,47,12],[56,15,47,19,"value"],[56,20,47,24],[56,21,47,25],[56,22,47,26],[56,23,47,27],[56,27,47,31,"value"],[56,32,47,36],[56,33,47,37],[56,34,47,38],[56,35,47,39],[56,39,47,43],[56,40,47,44],[56,41,47,45],[57,6,48,8],[57,11,48,13],[57,12,48,14],[58,8,49,12],[58,15,49,19,"value"],[58,20,49,24],[58,21,49,25],[58,22,49,26],[58,23,49,27],[58,27,49,31,"value"],[58,32,49,36],[58,33,49,37],[58,34,49,38],[58,35,49,39],[58,39,49,43],[58,40,49,44],[58,41,49,45],[58,45,49,49,"value"],[58,50,49,54],[58,51,49,55],[58,52,49,56],[58,53,49,57],[58,57,49,61],[58,59,49,63],[58,60,49,64],[59,6,50,8],[59,11,50,13],[59,12,50,14],[60,8,51,12],[61,8,52,12],[62,8,53,12],[62,15,53,19,"value"],[62,20,53,24],[62,21,53,25],[62,22,53,26],[62,23,53,27],[62,27,53,31,"value"],[62,32,53,36],[62,33,53,37],[62,34,53,38],[62,35,53,39],[62,39,53,43],[62,40,53,44],[62,41,53,45],[62,45,53,49,"value"],[62,50,53,54],[62,51,53,55],[62,52,53,56],[62,53,53,57],[62,57,53,61],[62,59,53,63],[62,60,53,64],[62,63,53,68,"value"],[62,68,53,73],[62,69,53,74],[62,70,53,75],[62,71,53,76],[62,74,53,79],[62,86,53,92],[63,6,54,8],[63,11,54,13],[63,12,54,14],[64,8,55,12],[64,15,55,19,"value"],[64,20,55,24],[64,21,55,25],[64,22,55,26],[64,23,55,27],[64,27,55,31,"value"],[64,32,55,36],[64,33,55,37],[64,34,55,38],[64,35,55,39],[64,39,55,43],[64,40,55,44],[64,41,55,45],[64,45,55,49,"value"],[64,50,55,54],[64,51,55,55],[64,52,55,56],[64,53,55,57],[64,57,55,61],[64,59,55,63],[64,60,55,64],[64,63,55,68],[64,64,55,69,"value"],[64,69,55,74],[64,70,55,75],[64,71,55,76],[64,72,55,77],[64,76,55,81,"value"],[64,81,55,86],[64,82,55,87],[64,83,55,88],[64,84,55,89],[64,88,55,93],[64,89,55,94],[64,90,55,95],[64,94,55,99],[64,106,55,112],[65,6,56,8],[65,11,56,13],[65,12,56,14],[66,8,57,12],[66,15,57,19,"value"],[66,20,57,24],[66,21,57,25],[66,22,57,26],[66,23,57,27],[66,27,57,31,"value"],[66,32,57,36],[66,33,57,37],[66,34,57,38],[66,35,57,39],[66,39,57,43],[66,40,57,44],[66,41,57,45],[66,45,57,49,"value"],[66,50,57,54],[66,51,57,55],[66,52,57,56],[66,53,57,57],[66,57,57,61],[66,59,57,63],[66,60,57,64],[66,63,57,68],[66,64,57,69,"value"],[66,69,57,74],[66,70,57,75],[66,71,57,76],[66,72,57,77],[66,76,57,81,"value"],[66,81,57,86],[66,82,57,87],[66,83,57,88],[66,84,57,89],[66,88,57,93],[66,89,57,94],[66,90,57,95],[66,94,57,99,"value"],[66,99,57,104],[66,100,57,105],[66,101,57,106],[66,102,57,107],[66,106,57,111],[66,108,57,113],[66,109,57,114],[66,113,57,118],[66,125,57,131],[67,6,58,8],[68,8,59,12],[68,14,59,18],[68,18,59,22,"Error"],[68,23,59,27],[68,24,59,28],[68,78,59,82],[68,79,59,83],[69,4,60,4],[70,2,61,0],[71,0,61,1],[71,3]],"functionMap":{"names":["<global>","u8aToNumber"],"mappings":"AAA;ACO;CDqD"},"hasCjsExports":true},"type":"js/module"}]} |