mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +00:00
1 line
5.7 KiB
Plaintext
1 line
5.7 KiB
Plaintext
{"dependencies":[{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":170},"end":{"line":5,"column":40,"index":191}}],"key":"Tcj3fJY+iCFcEHg4eIK/gqKeizo=","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.u8aConcat = u8aConcat;\n exports.u8aConcatStrict = u8aConcatStrict;\n const toU8a_js_1 = require(_dependencyMap[0], \"./toU8a.js\");\n /**\n * @name u8aConcat\n * @summary Creates a concatenated Uint8Array from the inputs.\n * @description\n * Concatenates the input arrays into a single `UInt8Array`.\n * @example\n * <BR>\n *\n * ```javascript\n * import { { u8aConcat } from '@polkadot/util';\n *\n * u8aConcat(\n * new Uint8Array([1, 2, 3]),\n * new Uint8Array([4, 5, 6])\n * ); // [1, 2, 3, 4, 5, 6]\n * ```\n */\n function u8aConcat(...list) {\n const count = list.length;\n const u8as = new Array(count);\n let length = 0;\n for (let i = 0; i < count; i++) {\n u8as[i] = (0, toU8a_js_1.u8aToU8a)(list[i]);\n length += u8as[i].length;\n }\n return u8aConcatStrict(u8as, length);\n }\n /**\n * @name u8aConcatStrict\n * @description A strict version of [[u8aConcat]], accepting only Uint8Array inputs\n */\n function u8aConcatStrict(u8as, length = 0) {\n const count = u8as.length;\n let offset = 0;\n if (!length) {\n for (let i = 0; i < count; i++) {\n length += u8as[i].length;\n }\n }\n const result = new Uint8Array(length);\n for (let i = 0; i < count; i++) {\n result.set(u8as[i], offset);\n offset += u8as[i].length;\n }\n return result;\n }\n});","lineCount":56,"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,"u8aConcat"],[7,19,3,17],[7,22,3,20,"u8aConcat"],[7,31,3,29],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"u8aConcatStrict"],[8,25,4,23],[8,28,4,26,"u8aConcatStrict"],[8,43,4,41],[9,2,5,0],[9,8,5,6,"toU8a_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,60,5,39],[9,61,5,40],[10,2,6,0],[11,0,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,0,21,0],[26,0,22,0],[27,2,23,0],[27,11,23,9,"u8aConcat"],[27,20,23,18,"u8aConcat"],[27,21,23,19],[27,24,23,22,"list"],[27,28,23,26],[27,30,23,28],[28,4,24,4],[28,10,24,10,"count"],[28,15,24,15],[28,18,24,18,"list"],[28,22,24,22],[28,23,24,23,"length"],[28,29,24,29],[29,4,25,4],[29,10,25,10,"u8as"],[29,14,25,14],[29,17,25,17],[29,21,25,21,"Array"],[29,26,25,26],[29,27,25,27,"count"],[29,32,25,32],[29,33,25,33],[30,4,26,4],[30,8,26,8,"length"],[30,14,26,14],[30,17,26,17],[30,18,26,18],[31,4,27,4],[31,9,27,9],[31,13,27,13,"i"],[31,14,27,14],[31,17,27,17],[31,18,27,18],[31,20,27,20,"i"],[31,21,27,21],[31,24,27,24,"count"],[31,29,27,29],[31,31,27,31,"i"],[31,32,27,32],[31,34,27,34],[31,36,27,36],[32,6,28,8,"u8as"],[32,10,28,12],[32,11,28,13,"i"],[32,12,28,14],[32,13,28,15],[32,16,28,18],[32,17,28,19],[32,18,28,20],[32,20,28,22,"toU8a_js_1"],[32,30,28,32],[32,31,28,33,"u8aToU8a"],[32,39,28,41],[32,41,28,43,"list"],[32,45,28,47],[32,46,28,48,"i"],[32,47,28,49],[32,48,28,50],[32,49,28,51],[33,6,29,8,"length"],[33,12,29,14],[33,16,29,18,"u8as"],[33,20,29,22],[33,21,29,23,"i"],[33,22,29,24],[33,23,29,25],[33,24,29,26,"length"],[33,30,29,32],[34,4,30,4],[35,4,31,4],[35,11,31,11,"u8aConcatStrict"],[35,26,31,26],[35,27,31,27,"u8as"],[35,31,31,31],[35,33,31,33,"length"],[35,39,31,39],[35,40,31,40],[36,2,32,0],[37,2,33,0],[38,0,34,0],[39,0,35,0],[40,0,36,0],[41,2,37,0],[41,11,37,9,"u8aConcatStrict"],[41,26,37,24,"u8aConcatStrict"],[41,27,37,25,"u8as"],[41,31,37,29],[41,33,37,31,"length"],[41,39,37,37],[41,42,37,40],[41,43,37,41],[41,45,37,43],[42,4,38,4],[42,10,38,10,"count"],[42,15,38,15],[42,18,38,18,"u8as"],[42,22,38,22],[42,23,38,23,"length"],[42,29,38,29],[43,4,39,4],[43,8,39,8,"offset"],[43,14,39,14],[43,17,39,17],[43,18,39,18],[44,4,40,4],[44,8,40,8],[44,9,40,9,"length"],[44,15,40,15],[44,17,40,17],[45,6,41,8],[45,11,41,13],[45,15,41,17,"i"],[45,16,41,18],[45,19,41,21],[45,20,41,22],[45,22,41,24,"i"],[45,23,41,25],[45,26,41,28,"count"],[45,31,41,33],[45,33,41,35,"i"],[45,34,41,36],[45,36,41,38],[45,38,41,40],[46,8,42,12,"length"],[46,14,42,18],[46,18,42,22,"u8as"],[46,22,42,26],[46,23,42,27,"i"],[46,24,42,28],[46,25,42,29],[46,26,42,30,"length"],[46,32,42,36],[47,6,43,8],[48,4,44,4],[49,4,45,4],[49,10,45,10,"result"],[49,16,45,16],[49,19,45,19],[49,23,45,23,"Uint8Array"],[49,33,45,33],[49,34,45,34,"length"],[49,40,45,40],[49,41,45,41],[50,4,46,4],[50,9,46,9],[50,13,46,13,"i"],[50,14,46,14],[50,17,46,17],[50,18,46,18],[50,20,46,20,"i"],[50,21,46,21],[50,24,46,24,"count"],[50,29,46,29],[50,31,46,31,"i"],[50,32,46,32],[50,34,46,34],[50,36,46,36],[51,6,47,8,"result"],[51,12,47,14],[51,13,47,15,"set"],[51,16,47,18],[51,17,47,19,"u8as"],[51,21,47,23],[51,22,47,24,"i"],[51,23,47,25],[51,24,47,26],[51,26,47,28,"offset"],[51,32,47,34],[51,33,47,35],[52,6,48,8,"offset"],[52,12,48,14],[52,16,48,18,"u8as"],[52,20,48,22],[52,21,48,23,"i"],[52,22,48,24],[52,23,48,25],[52,24,48,26,"length"],[52,30,48,32],[53,4,49,4],[54,4,50,4],[54,11,50,11,"result"],[54,17,50,17],[55,2,51,0],[56,0,51,1],[56,3]],"functionMap":{"names":["<global>","u8aConcat","u8aConcatStrict"],"mappings":"AAA;ACsB;CDS;AEK;CFc"},"hasCjsExports":true},"type":"js/module"}]} |