mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 22:41:02 +00:00
1 line
9.4 KiB
Plaintext
1 line
9.4 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":110,"index":110}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":111},"end":{"line":2,"column":39,"index":150}}],"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, \"Bytes\", {\n enumerable: true,\n get: function () {\n return Bytes;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _nativeRawJs = require(_dependencyMap[1], \"../native/Raw.js\");\n const MAX_LENGTH = 10 * 1024 * 1024;\n /** @internal */\n function decodeBytesU8a(value) {\n if (!value.length) {\n return [new Uint8Array(), 0];\n }\n // handle all other Uint8Array inputs, these do have a length prefix\n const [offset, length] = (0, _polkadotUtil.compactFromU8aLim)(value);\n const total = offset + length;\n if (length > MAX_LENGTH) {\n throw new Error(`Bytes length ${length.toString()} exceeds ${MAX_LENGTH}`);\n } else if (total > value.length) {\n throw new Error(`Bytes: required length less than remainder, expected at least ${total}, found ${value.length}`);\n }\n return [value.subarray(offset, total), total];\n }\n /**\n * @name Bytes\n * @description\n * A Bytes wrapper for Vec<u8>. The significant difference between this and a normal Uint8Array\n * is that this version allows for length-encoding. (i.e. it is a variable-item codec, the same\n * as what is found in [[Text]] and [[Vec]])\n */\n class Bytes extends _nativeRawJs.Raw {\n constructor(registry, value) {\n const [u8a, decodedLength] = (0, _polkadotUtil.isU8a)(value) && !(value instanceof _nativeRawJs.Raw) ? decodeBytesU8a(value) : Array.isArray(value) || (0, _polkadotUtil.isString)(value) ? [(0, _polkadotUtil.u8aToU8a)(value), 0] : [value, 0];\n super(registry, u8a, decodedLength);\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.length + (0, _polkadotUtil.compactToU8a)(this.length).length;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect(isBare) {\n const clength = (0, _polkadotUtil.compactToU8a)(this.length);\n return {\n outer: isBare ? [super.toU8a()] : this.length ? [clength, super.toU8a()] : [clength]\n };\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'Bytes';\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n * @param isBare true when the value has none of the type-specific prefixes (internal)\n */\n toU8a(isBare) {\n return isBare ? super.toU8a(isBare) : (0, _polkadotUtil.compactAddLength)(this);\n }\n }\n});","lineCount":72,"map":[[7,2,27,0,"Object"],[7,8,27,0],[7,9,27,0,"defineProperty"],[7,23,27,0],[7,24,27,0,"exports"],[7,31,27,0],[8,4,27,0,"enumerable"],[8,14,27,0],[9,4,27,0,"get"],[9,7,27,0],[9,18,27,0,"get"],[9,19,27,0],[10,6,27,0],[10,13,27,0,"Bytes"],[10,18,27,0],[11,4,27,0],[12,2,27,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],[15,8,3,6,"MAX_LENGTH"],[15,18,3,16],[15,21,3,19],[15,23,3,21],[15,26,3,24],[15,30,3,28],[15,33,3,31],[15,37,3,35],[16,2,4,0],[17,2,5,0],[17,11,5,9,"decodeBytesU8a"],[17,25,5,23,"decodeBytesU8a"],[17,26,5,24,"value"],[17,31,5,29],[17,33,5,31],[18,4,6,4],[18,8,6,8],[18,9,6,9,"value"],[18,14,6,14],[18,15,6,15,"length"],[18,21,6,21],[18,23,6,23],[19,6,7,8],[19,13,7,15],[19,14,7,16],[19,18,7,20,"Uint8Array"],[19,28,7,30],[19,29,7,31],[19,30,7,32],[19,32,7,34],[19,33,7,35],[19,34,7,36],[20,4,8,4],[21,4,9,4],[22,4,10,4],[22,10,10,10],[22,11,10,11,"offset"],[22,17,10,17],[22,19,10,19,"length"],[22,25,10,25],[22,26,10,26],[22,29,10,29],[22,33,10,29,"compactFromU8aLim"],[22,46,10,46],[22,47,10,46,"compactFromU8aLim"],[22,64,10,46],[22,66,10,47,"value"],[22,71,10,52],[22,72,10,53],[23,4,11,4],[23,10,11,10,"total"],[23,15,11,15],[23,18,11,18,"offset"],[23,24,11,24],[23,27,11,27,"length"],[23,33,11,33],[24,4,12,4],[24,8,12,8,"length"],[24,14,12,14],[24,17,12,17,"MAX_LENGTH"],[24,27,12,27],[24,29,12,29],[25,6,13,8],[25,12,13,14],[25,16,13,18,"Error"],[25,21,13,23],[25,22,13,24],[25,38,13,40,"length"],[25,44,13,46],[25,45,13,47,"toString"],[25,53,13,55],[25,54,13,56],[25,55,13,57],[25,67,13,69,"MAX_LENGTH"],[25,77,13,79],[25,79,13,81],[25,80,13,82],[26,4,14,4],[26,5,14,5],[26,11,15,9],[26,15,15,13,"total"],[26,20,15,18],[26,23,15,21,"value"],[26,28,15,26],[26,29,15,27,"length"],[26,35,15,33],[26,37,15,35],[27,6,16,8],[27,12,16,14],[27,16,16,18,"Error"],[27,21,16,23],[27,22,16,24],[27,87,16,89,"total"],[27,92,16,94],[27,103,16,105,"value"],[27,108,16,110],[27,109,16,111,"length"],[27,115,16,117],[27,117,16,119],[27,118,16,120],[28,4,17,4],[29,4,18,4],[29,11,18,11],[29,12,18,12,"value"],[29,17,18,17],[29,18,18,18,"subarray"],[29,26,18,26],[29,27,18,27,"offset"],[29,33,18,33],[29,35,18,35,"total"],[29,40,18,40],[29,41,18,41],[29,43,18,43,"total"],[29,48,18,48],[29,49,18,49],[30,2,19,0],[31,2,20,0],[32,0,21,0],[33,0,22,0],[34,0,23,0],[35,0,24,0],[36,0,25,0],[37,0,26,0],[38,2,27,7],[38,8,27,13,"Bytes"],[38,13,27,18],[38,22,27,27,"Raw"],[38,34,27,30],[38,35,27,30,"Raw"],[38,38,27,30],[38,39,27,31],[39,4,28,4,"constructor"],[39,15,28,15,"constructor"],[39,16,28,16,"registry"],[39,24,28,24],[39,26,28,26,"value"],[39,31,28,31],[39,33,28,33],[40,6,29,8],[40,12,29,14],[40,13,29,15,"u8a"],[40,16,29,18],[40,18,29,20,"decodedLength"],[40,31,29,33],[40,32,29,34],[40,35,29,37],[40,39,29,37,"isU8a"],[40,52,29,42],[40,53,29,42,"isU8a"],[40,58,29,42],[40,60,29,43,"value"],[40,65,29,48],[40,66,29,49],[40,70,29,53],[40,72,29,55,"value"],[40,77,29,60],[40,89,29,72,"Raw"],[40,101,29,75],[40,102,29,75,"Raw"],[40,105,29,75],[40,106,29,76],[40,109,30,14,"decodeBytesU8a"],[40,123,30,28],[40,124,30,29,"value"],[40,129,30,34],[40,130,30,35],[40,133,31,14,"Array"],[40,138,31,19],[40,139,31,20,"isArray"],[40,146,31,27],[40,147,31,28,"value"],[40,152,31,33],[40,153,31,34],[40,157,31,38],[40,161,31,38,"isString"],[40,174,31,46],[40,175,31,46,"isString"],[40,183,31,46],[40,185,31,47,"value"],[40,190,31,52],[40,191,31,53],[40,194,32,18],[40,195,32,19],[40,199,32,19,"u8aToU8a"],[40,212,32,27],[40,213,32,27,"u8aToU8a"],[40,221,32,27],[40,223,32,28,"value"],[40,228,32,33],[40,229,32,34],[40,231,32,36],[40,232,32,37],[40,233,32,38],[40,236,33,18],[40,237,33,19,"value"],[40,242,33,24],[40,244,33,26],[40,245,33,27],[40,246,33,28],[41,6,34,8],[41,11,34,13],[41,12,34,14,"registry"],[41,20,34,22],[41,22,34,24,"u8a"],[41,25,34,27],[41,27,34,29,"decodedLength"],[41,40,34,42],[41,41,34,43],[42,4,35,4],[43,4,36,4],[44,0,37,0],[45,0,38,0],[46,4,39,4],[46,8,39,8,"encodedLength"],[46,21,39,21,"encodedLength"],[46,22,39,21],[46,24,39,24],[47,6,40,8],[47,13,40,15],[47,17,40,19],[47,18,40,20,"length"],[47,24,40,26],[47,27,40,29],[47,31,40,29,"compactToU8a"],[47,44,40,41],[47,45,40,41,"compactToU8a"],[47,57,40,41],[47,59,40,42],[47,63,40,46],[47,64,40,47,"length"],[47,70,40,53],[47,71,40,54],[47,72,40,55,"length"],[47,78,40,61],[48,4,41,4],[49,4,42,4],[50,0,43,0],[51,0,44,0],[52,4,45,4,"inspect"],[52,11,45,11,"inspect"],[52,12,45,12,"isBare"],[52,18,45,18],[52,20,45,20],[53,6,46,8],[53,12,46,14,"clength"],[53,19,46,21],[53,22,46,24],[53,26,46,24,"compactToU8a"],[53,39,46,36],[53,40,46,36,"compactToU8a"],[53,52,46,36],[53,54,46,37],[53,58,46,41],[53,59,46,42,"length"],[53,65,46,48],[53,66,46,49],[54,6,47,8],[54,13,47,15],[55,8,48,12,"outer"],[55,13,48,17],[55,15,48,19,"isBare"],[55,21,48,25],[55,24,49,18],[55,25,49,19],[55,30,49,24],[55,31,49,25,"toU8a"],[55,36,49,30],[55,37,49,31],[55,38,49,32],[55,39,49,33],[55,42,50,18],[55,46,50,22],[55,47,50,23,"length"],[55,53,50,29],[55,56,51,22],[55,57,51,23,"clength"],[55,64,51,30],[55,66,51,32],[55,71,51,37],[55,72,51,38,"toU8a"],[55,77,51,43],[55,78,51,44],[55,79,51,45],[55,80,51,46],[55,83,52,22],[55,84,52,23,"clength"],[55,91,52,30],[56,6,53,8],[56,7,53,9],[57,4,54,4],[58,4,55,4],[59,0,56,0],[60,0,57,0],[61,4,58,4,"toRawType"],[61,13,58,13,"toRawType"],[61,14,58,13],[61,16,58,16],[62,6,59,8],[62,13,59,15],[62,20,59,22],[63,4,60,4],[64,4,61,4],[65,0,62,0],[66,0,63,0],[67,0,64,0],[68,4,65,4,"toU8a"],[68,9,65,9,"toU8a"],[68,10,65,10,"isBare"],[68,16,65,16],[68,18,65,18],[69,6,66,8],[69,13,66,15,"isBare"],[69,19,66,21],[69,22,67,14],[69,27,67,19],[69,28,67,20,"toU8a"],[69,33,67,25],[69,34,67,26,"isBare"],[69,40,67,32],[69,41,67,33],[69,44,68,14],[69,48,68,14,"compactAddLength"],[69,61,68,30],[69,62,68,30,"compactAddLength"],[69,78,68,30],[69,80,68,31],[69,84,68,35],[69,85,68,36],[70,4,69,4],[71,2,70,0],[72,0,70,1],[72,3]],"functionMap":{"names":["<global>","decodeBytesU8a","Bytes","constructor","get__encodedLength","inspect","toRawType","toU8a"],"mappings":"AAA;ACI;CDc;OEQ;ICC;KDO;IEI;KFE;IGI;KHS;III;KJE;IKK;KLI;CFC"},"hasCjsExports":false},"type":"js/module"}]} |