Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/95/e2302d421022f1c42f5213ffeb20bd99df97f3e7138dba346cee63c6a479d09ae35684
T
2025-11-08 10:07:13 +00:00

1 line
15 KiB
Plaintext

{"dependencies":[{"name":"../bn/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":184},"end":{"line":5,"column":44,"index":209}}],"key":"tmS6tswHWXSDyQuWn3NFsLiUWgo=","exportNames":["*"],"imports":1}},{"name":"../u8a/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":230},"end":{"line":6,"column":45,"index":256}}],"key":"dEG4NOO3lS4XIYROdhTL9E2mvmQ=","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.compactFromU8a = compactFromU8a;\n exports.compactFromU8aLim = compactFromU8aLim;\n var index_js_1 = require(_dependencyMap[0], \"../bn/index.js\");\n var index_js_2 = require(_dependencyMap[1], \"../u8a/index.js\");\n /**\n * @name compactFromU8a\n * @description Retrives the offset and encoded length from a compact-prefixed value\n * @example\n * <BR>\n *\n * ```javascript\n * import { compactFromU8a } from '@polkadot/util';\n *\n * const [offset, length] = compactFromU8a(new Uint8Array([254, 255, 3, 0]));\n *\n * console.log('value offset=', offset, 'length=', length); // 4, 0xffff\n * ```\n */\n function compactFromU8a(input) {\n var u8a = (0, index_js_2.u8aToU8a)(input);\n // The u8a is manually converted here for 1, 2 & 4 lengths, it is 2x faster\n // than doing an additional call to u8aToBn (as with variable length)\n switch (u8a[0] & 3) {\n case 0:\n return [1, new index_js_1.BN(u8a[0] >>> 2)];\n case 1:\n return [2, new index_js_1.BN(u8a[0] + (u8a[1] << 8) >>> 2)];\n case 2:\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 [4, new index_js_1.BN(u8a[0] + (u8a[1] << 8) + (u8a[2] << 16) + u8a[3] * 0x1000000 >>> 2)];\n // 0b11\n default:\n {\n // add 5 to shifted (4 for base length, 1 for this byte)\n var offset = (u8a[0] >>> 2) + 5;\n // we unroll the loop\n switch (offset) {\n // there still could be 4 bytes data, similar to 0b10 above (with offsets)\n case 5:\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 [5, new index_js_1.BN(u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + u8a[4] * 0x1000000)];\n case 6:\n return [6, new index_js_1.BN(u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8)) * 0x1000000)];\n // 6 bytes data is the maximum, 48 bits (56 would overflow)\n case 7:\n return [7, new index_js_1.BN(u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8) + (u8a[6] << 16)) * 0x1000000)];\n // for anything else, use the non-unrolled version\n default:\n return [offset, (0, index_js_2.u8aToBn)(u8a.subarray(1, offset))];\n }\n }\n }\n }\n /**\n * @name compactFromU8aLim\n * @description A limited version of [[compactFromU8a]], accepting only Uint8Array inputs for values <= 48 bits\n */\n function compactFromU8aLim(u8a) {\n // The u8a is manually converted here for 1, 2 & 4 lengths, it is 2x faster\n // than doing an additional call to u8aToBn (as with variable length)\n switch (u8a[0] & 3) {\n case 0:\n return [1, u8a[0] >>> 2];\n case 1:\n return [2, u8a[0] + (u8a[1] << 8) >>> 2];\n case 2:\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 [4, u8a[0] + (u8a[1] << 8) + (u8a[2] << 16) + u8a[3] * 0x1000000 >>> 2];\n // 0b11\n default:\n {\n // add 5 to shifted (4 for base length, 1 for this byte)\n // we unroll the loop\n switch ((u8a[0] >>> 2) + 5) {\n // there still could be 4 bytes data, similar to 0b10 above (with offsets)\n case 5:\n return [5, u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + u8a[4] * 0x1000000];\n case 6:\n return [6, u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8)) * 0x1000000];\n // 6 bytes data is the maximum, 48 bits (56 would overflow)\n case 7:\n return [7, u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8) + (u8a[6] << 16)) * 0x1000000];\n // for anything else, we are above the actual MAX_SAFE_INTEGER - bail out\n default:\n throw new Error('Compact input is > Number.MAX_SAFE_INTEGER');\n }\n }\n }\n }\n});","lineCount":99,"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,"compactFromU8a"],[7,24,3,22],[7,27,3,25,"compactFromU8a"],[7,41,3,39],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"compactFromU8aLim"],[8,27,4,25],[8,30,4,28,"compactFromU8aLim"],[8,47,4,45],[9,2,5,0],[9,6,5,6,"index_js_1"],[9,16,5,16],[9,19,5,19,"require"],[9,26,5,26],[9,27,5,26,"_dependencyMap"],[9,41,5,26],[9,62,5,43],[9,63,5,44],[10,2,6,0],[10,6,6,6,"index_js_2"],[10,16,6,16],[10,19,6,19,"require"],[10,26,6,26],[10,27,6,26,"_dependencyMap"],[10,41,6,26],[10,63,6,44],[10,64,6,45],[11,2,7,0],[12,0,8,0],[13,0,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,2,21,0],[25,11,21,9,"compactFromU8a"],[25,25,21,23,"compactFromU8a"],[25,26,21,24,"input"],[25,31,21,29],[25,33,21,31],[26,4,22,4],[26,8,22,10,"u8a"],[26,11,22,13],[26,14,22,16],[26,15,22,17],[26,16,22,18],[26,18,22,20,"index_js_2"],[26,28,22,30],[26,29,22,31,"u8aToU8a"],[26,37,22,39],[26,39,22,41,"input"],[26,44,22,46],[26,45,22,47],[27,4,23,4],[28,4,24,4],[29,4,25,4],[29,12,25,12,"u8a"],[29,15,25,15],[29,16,25,16],[29,17,25,17],[29,18,25,18],[29,21,25,21],[29,22,25,25],[30,6,26,8],[30,11,26,13],[30,12,26,17],[31,8,27,12],[31,15,27,19],[31,16,27,20],[31,17,27,21],[31,19,27,23],[31,23,27,27,"index_js_1"],[31,33,27,37],[31,34,27,38,"BN"],[31,36,27,40],[31,37,27,41,"u8a"],[31,40,27,44],[31,41,27,45],[31,42,27,46],[31,43,27,47],[31,48,27,52],[31,49,27,53],[31,50,27,54],[31,51,27,55],[32,6,28,8],[32,11,28,13],[32,12,28,17],[33,8,29,12],[33,15,29,19],[33,16,29,20],[33,17,29,21],[33,19,29,23],[33,23,29,27,"index_js_1"],[33,33,29,37],[33,34,29,38,"BN"],[33,36,29,40],[33,37,29,42,"u8a"],[33,40,29,45],[33,41,29,46],[33,42,29,47],[33,43,29,48],[33,47,29,52,"u8a"],[33,50,29,55],[33,51,29,56],[33,52,29,57],[33,53,29,58],[33,57,29,62],[33,58,29,63],[33,59,29,64],[33,64,29,70],[33,65,29,71],[33,66,29,72],[33,67,29,73],[34,6,30,8],[34,11,30,13],[34,12,30,17],[35,8,31,12],[36,8,32,12],[37,8,33,12],[37,15,33,19],[37,16,33,20],[37,17,33,21],[37,19,33,23],[37,23,33,27,"index_js_1"],[37,33,33,37],[37,34,33,38,"BN"],[37,36,33,40],[37,37,33,42,"u8a"],[37,40,33,45],[37,41,33,46],[37,42,33,47],[37,43,33,48],[37,47,33,52,"u8a"],[37,50,33,55],[37,51,33,56],[37,52,33,57],[37,53,33,58],[37,57,33,62],[37,58,33,63],[37,59,33,64],[37,63,33,68,"u8a"],[37,66,33,71],[37,67,33,72],[37,68,33,73],[37,69,33,74],[37,73,33,78],[37,75,33,80],[37,76,33,81],[37,79,33,85,"u8a"],[37,82,33,88],[37,83,33,89],[37,84,33,90],[37,85,33,91],[37,88,33,94],[37,97,33,107],[37,102,33,113],[37,103,33,114],[37,104,33,115],[37,105,33,116],[38,6,34,8],[39,6,35,8],[40,8,35,17],[41,10,36,12],[42,10,37,12],[42,14,37,18,"offset"],[42,20,37,24],[42,23,37,27],[42,24,37,28,"u8a"],[42,27,37,31],[42,28,37,32],[42,29,37,33],[42,30,37,34],[42,35,37,39],[42,36,37,40],[42,40,37,44],[42,41,37,45],[43,10,38,12],[44,10,39,12],[44,18,39,20,"offset"],[44,24,39,26],[45,12,40,16],[46,12,41,16],[46,17,41,21],[46,18,41,22],[47,14,42,20],[48,14,43,20],[49,14,44,20],[49,21,44,27],[49,22,44,28],[49,23,44,29],[49,25,44,31],[49,29,44,35,"index_js_1"],[49,39,44,45],[49,40,44,46,"BN"],[49,42,44,48],[49,43,44,49,"u8a"],[49,46,44,52],[49,47,44,53],[49,48,44,54],[49,49,44,55],[49,53,44,59,"u8a"],[49,56,44,62],[49,57,44,63],[49,58,44,64],[49,59,44,65],[49,63,44,69],[49,64,44,70],[49,65,44,71],[49,69,44,75,"u8a"],[49,72,44,78],[49,73,44,79],[49,74,44,80],[49,75,44,81],[49,79,44,85],[49,81,44,87],[49,82,44,88],[49,85,44,92,"u8a"],[49,88,44,95],[49,89,44,96],[49,90,44,97],[49,91,44,98],[49,94,44,101],[49,103,44,114],[49,104,44,115],[49,105,44,116],[50,12,45,16],[50,17,45,21],[50,18,45,22],[51,14,46,20],[51,21,46,27],[51,22,46,28],[51,23,46,29],[51,25,46,31],[51,29,46,35,"index_js_1"],[51,39,46,45],[51,40,46,46,"BN"],[51,42,46,48],[51,43,46,49,"u8a"],[51,46,46,52],[51,47,46,53],[51,48,46,54],[51,49,46,55],[51,53,46,59,"u8a"],[51,56,46,62],[51,57,46,63],[51,58,46,64],[51,59,46,65],[51,63,46,69],[51,64,46,70],[51,65,46,71],[51,69,46,75,"u8a"],[51,72,46,78],[51,73,46,79],[51,74,46,80],[51,75,46,81],[51,79,46,85],[51,81,46,87],[51,82,46,88],[51,85,46,92],[51,86,46,93,"u8a"],[51,89,46,96],[51,90,46,97],[51,91,46,98],[51,92,46,99],[51,96,46,103,"u8a"],[51,99,46,106],[51,100,46,107],[51,101,46,108],[51,102,46,109],[51,106,46,113],[51,107,46,114],[51,108,46,115],[51,112,46,119],[51,121,46,132],[51,122,46,133],[51,123,46,134],[52,12,47,16],[53,12,48,16],[53,17,48,21],[53,18,48,22],[54,14,49,20],[54,21,49,27],[54,22,49,28],[54,23,49,29],[54,25,49,31],[54,29,49,35,"index_js_1"],[54,39,49,45],[54,40,49,46,"BN"],[54,42,49,48],[54,43,49,49,"u8a"],[54,46,49,52],[54,47,49,53],[54,48,49,54],[54,49,49,55],[54,53,49,59,"u8a"],[54,56,49,62],[54,57,49,63],[54,58,49,64],[54,59,49,65],[54,63,49,69],[54,64,49,70],[54,65,49,71],[54,69,49,75,"u8a"],[54,72,49,78],[54,73,49,79],[54,74,49,80],[54,75,49,81],[54,79,49,85],[54,81,49,87],[54,82,49,88],[54,85,49,92],[54,86,49,93,"u8a"],[54,89,49,96],[54,90,49,97],[54,91,49,98],[54,92,49,99],[54,96,49,103,"u8a"],[54,99,49,106],[54,100,49,107],[54,101,49,108],[54,102,49,109],[54,106,49,113],[54,107,49,114],[54,108,49,115],[54,112,49,119,"u8a"],[54,115,49,122],[54,116,49,123],[54,117,49,124],[54,118,49,125],[54,122,49,129],[54,124,49,131],[54,125,49,132],[54,129,49,136],[54,138,49,149],[54,139,49,150],[54,140,49,151],[55,12,50,16],[56,12,51,16],[57,14,52,20],[57,21,52,27],[57,22,52,28,"offset"],[57,28,52,34],[57,30,52,36],[57,31,52,37],[57,32,52,38],[57,34,52,40,"index_js_2"],[57,44,52,50],[57,45,52,51,"u8aToBn"],[57,52,52,58],[57,54,52,60,"u8a"],[57,57,52,63],[57,58,52,64,"subarray"],[57,66,52,72],[57,67,52,73],[57,68,52,74],[57,70,52,76,"offset"],[57,76,52,82],[57,77,52,83],[57,78,52,84],[57,79,52,85],[58,10,53,12],[59,8,54,8],[60,4,55,4],[61,2,56,0],[62,2,57,0],[63,0,58,0],[64,0,59,0],[65,0,60,0],[66,2,61,0],[66,11,61,9,"compactFromU8aLim"],[66,28,61,26,"compactFromU8aLim"],[66,29,61,27,"u8a"],[66,32,61,30],[66,34,61,32],[67,4,62,4],[68,4,63,4],[69,4,64,4],[69,12,64,12,"u8a"],[69,15,64,15],[69,16,64,16],[69,17,64,17],[69,18,64,18],[69,21,64,21],[69,22,64,25],[70,6,65,8],[70,11,65,13],[70,12,65,17],[71,8,66,12],[71,15,66,19],[71,16,66,20],[71,17,66,21],[71,19,66,23,"u8a"],[71,22,66,26],[71,23,66,27],[71,24,66,28],[71,25,66,29],[71,30,66,34],[71,31,66,35],[71,32,66,36],[72,6,67,8],[72,11,67,13],[72,12,67,17],[73,8,68,12],[73,15,68,19],[73,16,68,20],[73,17,68,21],[73,19,68,24,"u8a"],[73,22,68,27],[73,23,68,28],[73,24,68,29],[73,25,68,30],[73,29,68,34,"u8a"],[73,32,68,37],[73,33,68,38],[73,34,68,39],[73,35,68,40],[73,39,68,44],[73,40,68,45],[73,41,68,46],[73,46,68,52],[73,47,68,53],[73,48,68,54],[74,6,69,8],[74,11,69,13],[74,12,69,17],[75,8,70,12],[76,8,71,12],[77,8,72,12],[77,15,72,19],[77,16,72,20],[77,17,72,21],[77,19,72,24,"u8a"],[77,22,72,27],[77,23,72,28],[77,24,72,29],[77,25,72,30],[77,29,72,34,"u8a"],[77,32,72,37],[77,33,72,38],[77,34,72,39],[77,35,72,40],[77,39,72,44],[77,40,72,45],[77,41,72,46],[77,45,72,50,"u8a"],[77,48,72,53],[77,49,72,54],[77,50,72,55],[77,51,72,56],[77,55,72,60],[77,57,72,62],[77,58,72,63],[77,61,72,67,"u8a"],[77,64,72,70],[77,65,72,71],[77,66,72,72],[77,67,72,73],[77,70,72,76],[77,79,72,89],[77,84,72,95],[77,85,72,96],[77,86,72,97],[78,6,73,8],[79,6,74,8],[80,8,74,17],[81,10,75,12],[82,10,76,12],[83,10,77,12],[83,18,77,20],[83,19,77,21,"u8a"],[83,22,77,24],[83,23,77,25],[83,24,77,26],[83,25,77,27],[83,30,77,32],[83,31,77,33],[83,35,77,37],[83,36,77,38],[84,12,78,16],[85,12,79,16],[85,17,79,21],[85,18,79,22],[86,14,80,20],[86,21,80,27],[86,22,80,28],[86,23,80,29],[86,25,80,31,"u8a"],[86,28,80,34],[86,29,80,35],[86,30,80,36],[86,31,80,37],[86,35,80,41,"u8a"],[86,38,80,44],[86,39,80,45],[86,40,80,46],[86,41,80,47],[86,45,80,51],[86,46,80,52],[86,47,80,53],[86,51,80,57,"u8a"],[86,54,80,60],[86,55,80,61],[86,56,80,62],[86,57,80,63],[86,61,80,67],[86,63,80,69],[86,64,80,70],[86,67,80,74,"u8a"],[86,70,80,77],[86,71,80,78],[86,72,80,79],[86,73,80,80],[86,76,80,83],[86,85,80,96],[86,86,80,97],[87,12,81,16],[87,17,81,21],[87,18,81,22],[88,14,82,20],[88,21,82,27],[88,22,82,28],[88,23,82,29],[88,25,82,31,"u8a"],[88,28,82,34],[88,29,82,35],[88,30,82,36],[88,31,82,37],[88,35,82,41,"u8a"],[88,38,82,44],[88,39,82,45],[88,40,82,46],[88,41,82,47],[88,45,82,51],[88,46,82,52],[88,47,82,53],[88,51,82,57,"u8a"],[88,54,82,60],[88,55,82,61],[88,56,82,62],[88,57,82,63],[88,61,82,67],[88,63,82,69],[88,64,82,70],[88,67,82,74],[88,68,82,75,"u8a"],[88,71,82,78],[88,72,82,79],[88,73,82,80],[88,74,82,81],[88,78,82,85,"u8a"],[88,81,82,88],[88,82,82,89],[88,83,82,90],[88,84,82,91],[88,88,82,95],[88,89,82,96],[88,90,82,97],[88,94,82,101],[88,103,82,114],[88,104,82,115],[89,12,83,16],[90,12,84,16],[90,17,84,21],[90,18,84,22],[91,14,85,20],[91,21,85,27],[91,22,85,28],[91,23,85,29],[91,25,85,31,"u8a"],[91,28,85,34],[91,29,85,35],[91,30,85,36],[91,31,85,37],[91,35,85,41,"u8a"],[91,38,85,44],[91,39,85,45],[91,40,85,46],[91,41,85,47],[91,45,85,51],[91,46,85,52],[91,47,85,53],[91,51,85,57,"u8a"],[91,54,85,60],[91,55,85,61],[91,56,85,62],[91,57,85,63],[91,61,85,67],[91,63,85,69],[91,64,85,70],[91,67,85,74],[91,68,85,75,"u8a"],[91,71,85,78],[91,72,85,79],[91,73,85,80],[91,74,85,81],[91,78,85,85,"u8a"],[91,81,85,88],[91,82,85,89],[91,83,85,90],[91,84,85,91],[91,88,85,95],[91,89,85,96],[91,90,85,97],[91,94,85,101,"u8a"],[91,97,85,104],[91,98,85,105],[91,99,85,106],[91,100,85,107],[91,104,85,111],[91,106,85,113],[91,107,85,114],[91,111,85,118],[91,120,85,131],[91,121,85,132],[92,12,86,16],[93,12,87,16],[94,14,88,20],[94,20,88,26],[94,24,88,30,"Error"],[94,29,88,35],[94,30,88,36],[94,74,88,80],[94,75,88,81],[95,10,89,12],[96,8,90,8],[97,4,91,4],[98,2,92,0],[99,0,92,1],[99,3]],"functionMap":{"names":["<global>","compactFromU8a","compactFromU8aLim"],"mappings":"AAA;ACoB;CDmC;AEK;CF+B"},"hasCjsExports":true},"type":"js/module"}]}