mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
6.7 KiB
Plaintext
1 line
6.7 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":50},"end":{"line":2,"column":39,"index":89}}],"key":"Q6Cn/2n+VmZe38UbZ4ft55xX/UY=","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 Object.defineProperty(exports, \"U8aFixed\", {\n enumerable: true,\n get: function () {\n return U8aFixed;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _nativeRawJs = require(_dependencyMap[1], \"../native/Raw.js\");\n /** @internal */\n function decodeU8aFixed(value, bitLength) {\n const u8a = (0, _polkadotUtil.u8aToU8a)(value);\n const byteLength = bitLength / 8;\n if (!u8a.length) {\n return [new Uint8Array(byteLength), 0];\n }\n if ((0, _polkadotUtil.isU8a)(value) ? u8a.length < byteLength : u8a.length !== byteLength) {\n throw new Error(`Expected input with ${byteLength} bytes (${bitLength} bits), found ${u8a.length} bytes`);\n }\n return [u8a.subarray(0, byteLength), byteLength];\n }\n /**\n * @name U8aFixed\n * @description\n * A U8a that manages a a sequence of bytes up to the specified bitLength. Not meant\n * to be used directly, rather is should be subclassed with the specific lengths.\n */\n class U8aFixed extends _nativeRawJs.Raw {\n constructor(registry, value = new Uint8Array(), bitLength = 256) {\n const [u8a, decodedLength] = decodeU8aFixed(value, bitLength);\n super(registry, u8a, decodedLength);\n }\n static with(bitLength, typeName) {\n return class extends U8aFixed {\n constructor(registry, value) {\n super(registry, value, bitLength);\n }\n toRawType() {\n return typeName || super.toRawType();\n }\n };\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `[u8;${this.length}]`;\n }\n }\n});","lineCount":55,"map":[[7,2,21,0,"Object"],[7,8,21,0],[7,9,21,0,"defineProperty"],[7,23,21,0],[7,24,21,0,"exports"],[7,31,21,0],[8,4,21,0,"enumerable"],[8,14,21,0],[9,4,21,0,"get"],[9,7,21,0],[9,18,21,0,"get"],[9,19,21,0],[10,6,21,0],[10,13,21,0,"U8aFixed"],[10,21,21,0],[11,4,21,0],[12,2,21,0],[13,2,1,0],[13,6,1,0,"_polkadotUtil"],[13,19,1,0],[13,22,1,0,"require"],[13,29,1,0],[13,30,1,0,"_dependencyMap"],[13,44,1,0],[14,2,2,0],[14,6,2,0,"_nativeRawJs"],[14,18,2,0],[14,21,2,0,"require"],[14,28,2,0],[14,29,2,0,"_dependencyMap"],[14,43,2,0],[15,2,3,0],[16,2,4,0],[16,11,4,9,"decodeU8aFixed"],[16,25,4,23,"decodeU8aFixed"],[16,26,4,24,"value"],[16,31,4,29],[16,33,4,31,"bitLength"],[16,42,4,40],[16,44,4,42],[17,4,5,4],[17,10,5,10,"u8a"],[17,13,5,13],[17,16,5,16],[17,20,5,16,"u8aToU8a"],[17,33,5,24],[17,34,5,24,"u8aToU8a"],[17,42,5,24],[17,44,5,25,"value"],[17,49,5,30],[17,50,5,31],[18,4,6,4],[18,10,6,10,"byteLength"],[18,20,6,20],[18,23,6,23,"bitLength"],[18,32,6,32],[18,35,6,35],[18,36,6,36],[19,4,7,4],[19,8,7,8],[19,9,7,9,"u8a"],[19,12,7,12],[19,13,7,13,"length"],[19,19,7,19],[19,21,7,21],[20,6,8,8],[20,13,8,15],[20,14,8,16],[20,18,8,20,"Uint8Array"],[20,28,8,30],[20,29,8,31,"byteLength"],[20,39,8,41],[20,40,8,42],[20,42,8,44],[20,43,8,45],[20,44,8,46],[21,4,9,4],[22,4,10,4],[22,8,10,8],[22,12,10,8,"isU8a"],[22,25,10,13],[22,26,10,13,"isU8a"],[22,31,10,13],[22,33,10,14,"value"],[22,38,10,19],[22,39,10,20],[22,42,10,23,"u8a"],[22,45,10,26],[22,46,10,27,"length"],[22,52,10,33],[22,55,10,36,"byteLength"],[22,65,10,46],[22,68,10,49,"u8a"],[22,71,10,52],[22,72,10,53,"length"],[22,78,10,59],[22,83,10,64,"byteLength"],[22,93,10,74],[22,95,10,76],[23,6,11,8],[23,12,11,14],[23,16,11,18,"Error"],[23,21,11,23],[23,22,11,24],[23,45,11,47,"byteLength"],[23,55,11,57],[23,66,11,68,"bitLength"],[23,75,11,77],[23,92,11,94,"u8a"],[23,95,11,97],[23,96,11,98,"length"],[23,102,11,104],[23,110,11,112],[23,111,11,113],[24,4,12,4],[25,4,13,4],[25,11,13,11],[25,12,13,12,"u8a"],[25,15,13,15],[25,16,13,16,"subarray"],[25,24,13,24],[25,25,13,25],[25,26,13,26],[25,28,13,28,"byteLength"],[25,38,13,38],[25,39,13,39],[25,41,13,41,"byteLength"],[25,51,13,51],[25,52,13,52],[26,2,14,0],[27,2,15,0],[28,0,16,0],[29,0,17,0],[30,0,18,0],[31,0,19,0],[32,0,20,0],[33,2,21,7],[33,8,21,13,"U8aFixed"],[33,16,21,21],[33,25,21,30,"Raw"],[33,37,21,33],[33,38,21,33,"Raw"],[33,41,21,33],[33,42,21,34],[34,4,22,4,"constructor"],[34,15,22,15,"constructor"],[34,16,22,16,"registry"],[34,24,22,24],[34,26,22,26,"value"],[34,31,22,31],[34,34,22,34],[34,38,22,38,"Uint8Array"],[34,48,22,48],[34,49,22,49],[34,50,22,50],[34,52,22,52,"bitLength"],[34,61,22,61],[34,64,22,64],[34,67,22,67],[34,69,22,69],[35,6,23,8],[35,12,23,14],[35,13,23,15,"u8a"],[35,16,23,18],[35,18,23,20,"decodedLength"],[35,31,23,33],[35,32,23,34],[35,35,23,37,"decodeU8aFixed"],[35,49,23,51],[35,50,23,52,"value"],[35,55,23,57],[35,57,23,59,"bitLength"],[35,66,23,68],[35,67,23,69],[36,6,24,8],[36,11,24,13],[36,12,24,14,"registry"],[36,20,24,22],[36,22,24,24,"u8a"],[36,25,24,27],[36,27,24,29,"decodedLength"],[36,40,24,42],[36,41,24,43],[37,4,25,4],[38,4,26,4],[38,11,26,11,"with"],[38,15,26,15,"with"],[38,16,26,16,"bitLength"],[38,25,26,25],[38,27,26,27,"typeName"],[38,35,26,35],[38,37,26,37],[39,6,27,8],[39,13,27,15],[39,27,27,29,"U8aFixed"],[39,35,27,37],[39,36,27,38],[40,8,28,12,"constructor"],[40,19,28,23,"constructor"],[40,20,28,24,"registry"],[40,28,28,32],[40,30,28,34,"value"],[40,35,28,39],[40,37,28,41],[41,10,29,16],[41,15,29,21],[41,16,29,22,"registry"],[41,24,29,30],[41,26,29,32,"value"],[41,31,29,37],[41,33,29,39,"bitLength"],[41,42,29,48],[41,43,29,49],[42,8,30,12],[43,8,31,12,"toRawType"],[43,17,31,21,"toRawType"],[43,18,31,21],[43,20,31,24],[44,10,32,16],[44,17,32,23,"typeName"],[44,25,32,31],[44,29,32,35],[44,34,32,40],[44,35,32,41,"toRawType"],[44,44,32,50],[44,45,32,51],[44,46,32,52],[45,8,33,12],[46,6,34,8],[46,7,34,9],[47,4,35,4],[48,4,36,4],[49,0,37,0],[50,0,38,0],[51,4,39,4,"toRawType"],[51,13,39,13,"toRawType"],[51,14,39,13],[51,16,39,16],[52,6,40,8],[52,13,40,15],[52,20,40,22],[52,24,40,26],[52,25,40,27,"length"],[52,31,40,33],[52,34,40,36],[53,4,41,4],[54,2,42,0],[55,0,42,1],[55,3]],"functionMap":{"names":["<global>","decodeU8aFixed","U8aFixed","constructor","_with","<anonymous>","toRawType"],"mappings":"AAA;ACG;CDU;OEO;ICC;KDG;IEC;eCC;YFC;aEE;YCC;aDE;SDC;KFC;III;KJE;CFC"},"hasCjsExports":false},"type":"js/module"}]} |