mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 05:21:02 +00:00
1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":114},"end":{"line":4,"column":40,"index":139}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","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.Raw = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n /**\n * @name Raw\n * @description\n * A basic wrapper around Uint8Array, with no frills and no fuss. It does differ\n * from other implementations where it will consume the full Uint8Array as passed to it.\n * As such it is meant to be subclassed where the wrapper takes care of the\n * actual lengths instead of used directly.\n * @noInheritDoc\n */\n class Raw extends Uint8Array {\n /**\n * @description This ensures that operators such as clice, filter, map, etc. return\n * new Array instances (without this we need to apply overrides)\n */\n static get [Symbol.species]() {\n return Uint8Array;\n }\n constructor(registry, value, initialU8aLength) {\n super((0, util_1.u8aToU8a)(value));\n this.registry = registry;\n this.initialU8aLength = initialU8aLength;\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.length;\n }\n /**\n * @description returns a hash of the contents\n */\n get hash() {\n return this.registry.hash(this.toU8a());\n }\n /**\n * @description Returns true if the wrapped value contains only ASCII printable characters\n */\n get isAscii() {\n return (0, util_1.isAscii)(this);\n }\n /**\n * @description Returns true if the type wraps an empty/default all-0 value\n */\n get isEmpty() {\n return !this.length || (0, util_1.isUndefined)(this.find(b => !!b));\n }\n /**\n * @description Returns true if the wrapped value contains only utf8 characters\n */\n get isUtf8() {\n return (0, util_1.isUtf8)(this);\n }\n /**\n * @description Returns the number of bits in the value\n */\n bitLength() {\n return this.length * 8;\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n if (other instanceof Uint8Array) {\n return this.length === other.length && !this.some((b, index) => b !== other[index]);\n }\n return this.eq((0, util_1.u8aToU8a)(other));\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n outer: [this.toU8a()]\n };\n }\n /**\n * @description Returns a hex string representation of the value\n */\n toHex() {\n return (0, util_1.u8aToHex)(this);\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman(_isExtended, disableAscii) {\n return this.toPrimitive(disableAscii);\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n return this.toHex();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive(disableAscii) {\n if (!disableAscii && this.isAscii) {\n const text = this.toUtf8();\n // ensure we didn't end up with multibyte codepoints\n if ((0, util_1.isAscii)(text)) {\n return text;\n }\n }\n return this.toJSON();\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'Raw';\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return this.toHex();\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return Uint8Array.from(this);\n }\n /**\n * @description Returns the wrapped data as a UTF-8 string\n */\n toUtf8() {\n if (!this.isUtf8) {\n throw new Error('The character sequence is not a valid Utf8 string');\n }\n return (0, util_1.u8aToString)(this);\n }\n }\n exports.Raw = Raw;\n});","lineCount":144,"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,"Raw"],[7,13,3,11],[7,16,3,14],[7,21,3,19],[7,22,3,20],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[10,0,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,2,14,0],[18,8,14,6,"Raw"],[18,11,14,9],[18,20,14,18,"Uint8Array"],[18,30,14,28],[18,31,14,29],[19,4,19,4],[20,0,20,0],[21,0,21,0],[22,0,22,0],[23,4,23,4],[23,16,23,16,"Symbol"],[23,22,23,22],[23,23,23,23,"species"],[23,30,23,30],[23,34,23,34],[24,6,24,8],[24,13,24,15,"Uint8Array"],[24,23,24,25],[25,4,25,4],[26,4,26,4,"constructor"],[26,15,26,15,"constructor"],[26,16,26,16,"registry"],[26,24,26,24],[26,26,26,26,"value"],[26,31,26,31],[26,33,26,33,"initialU8aLength"],[26,49,26,49],[26,51,26,51],[27,6,27,8],[27,11,27,13],[27,12,27,14],[27,13,27,15],[27,14,27,16],[27,16,27,18,"util_1"],[27,22,27,24],[27,23,27,25,"u8aToU8a"],[27,31,27,33],[27,33,27,35,"value"],[27,38,27,40],[27,39,27,41],[27,40,27,42],[28,6,28,8],[28,10,28,12],[28,11,28,13,"registry"],[28,19,28,21],[28,22,28,24,"registry"],[28,30,28,32],[29,6,29,8],[29,10,29,12],[29,11,29,13,"initialU8aLength"],[29,27,29,29],[29,30,29,32,"initialU8aLength"],[29,46,29,48],[30,4,30,4],[31,4,31,4],[32,0,32,0],[33,0,33,0],[34,4,34,4],[34,8,34,8,"encodedLength"],[34,21,34,21,"encodedLength"],[34,22,34,21],[34,24,34,24],[35,6,35,8],[35,13,35,15],[35,17,35,19],[35,18,35,20,"length"],[35,24,35,26],[36,4,36,4],[37,4,37,4],[38,0,38,0],[39,0,39,0],[40,4,40,4],[40,8,40,8,"hash"],[40,12,40,12,"hash"],[40,13,40,12],[40,15,40,15],[41,6,41,8],[41,13,41,15],[41,17,41,19],[41,18,41,20,"registry"],[41,26,41,28],[41,27,41,29,"hash"],[41,31,41,33],[41,32,41,34],[41,36,41,38],[41,37,41,39,"toU8a"],[41,42,41,44],[41,43,41,45],[41,44,41,46],[41,45,41,47],[42,4,42,4],[43,4,43,4],[44,0,44,0],[45,0,45,0],[46,4,46,4],[46,8,46,8,"isAscii"],[46,15,46,15,"isAscii"],[46,16,46,15],[46,18,46,18],[47,6,47,8],[47,13,47,15],[47,14,47,16],[47,15,47,17],[47,17,47,19,"util_1"],[47,23,47,25],[47,24,47,26,"isAscii"],[47,31,47,33],[47,33,47,35],[47,37,47,39],[47,38,47,40],[48,4,48,4],[49,4,49,4],[50,0,50,0],[51,0,51,0],[52,4,52,4],[52,8,52,8,"isEmpty"],[52,15,52,15,"isEmpty"],[52,16,52,15],[52,18,52,18],[53,6,53,8],[53,13,53,15],[53,14,53,16],[53,18,53,20],[53,19,53,21,"length"],[53,25,53,27],[53,29,53,31],[53,30,53,32],[53,31,53,33],[53,33,53,35,"util_1"],[53,39,53,41],[53,40,53,42,"isUndefined"],[53,51,53,53],[53,53,53,55],[53,57,53,59],[53,58,53,60,"find"],[53,62,53,64],[53,63,53,66,"b"],[53,64,53,67],[53,68,53,72],[53,69,53,73],[53,70,53,74,"b"],[53,71,53,75],[53,72,53,76],[53,73,53,77],[54,4,54,4],[55,4,55,4],[56,0,56,0],[57,0,57,0],[58,4,58,4],[58,8,58,8,"isUtf8"],[58,14,58,14,"isUtf8"],[58,15,58,14],[58,17,58,17],[59,6,59,8],[59,13,59,15],[59,14,59,16],[59,15,59,17],[59,17,59,19,"util_1"],[59,23,59,25],[59,24,59,26,"isUtf8"],[59,30,59,32],[59,32,59,34],[59,36,59,38],[59,37,59,39],[60,4,60,4],[61,4,61,4],[62,0,62,0],[63,0,63,0],[64,4,64,4,"bitLength"],[64,13,64,13,"bitLength"],[64,14,64,13],[64,16,64,16],[65,6,65,8],[65,13,65,15],[65,17,65,19],[65,18,65,20,"length"],[65,24,65,26],[65,27,65,29],[65,28,65,30],[66,4,66,4],[67,4,67,4],[68,0,68,0],[69,0,69,0],[70,4,70,4,"eq"],[70,6,70,6,"eq"],[70,7,70,7,"other"],[70,12,70,12],[70,14,70,14],[71,6,71,8],[71,10,71,12,"other"],[71,15,71,17],[71,27,71,29,"Uint8Array"],[71,37,71,39],[71,39,71,41],[72,8,72,12],[72,15,72,20],[72,19,72,24],[72,20,72,25,"length"],[72,26,72,31],[72,31,72,36,"other"],[72,36,72,41],[72,37,72,42,"length"],[72,43,72,48],[72,47,73,16],[72,48,73,17],[72,52,73,21],[72,53,73,22,"some"],[72,57,73,26],[72,58,73,27],[72,59,73,28,"b"],[72,60,73,29],[72,62,73,31,"index"],[72,67,73,36],[72,72,73,41,"b"],[72,73,73,42],[72,78,73,47,"other"],[72,83,73,52],[72,84,73,53,"index"],[72,89,73,58],[72,90,73,59],[72,91,73,60],[73,6,74,8],[74,6,75,8],[74,13,75,15],[74,17,75,19],[74,18,75,20,"eq"],[74,20,75,22],[74,21,75,23],[74,22,75,24],[74,23,75,25],[74,25,75,27,"util_1"],[74,31,75,33],[74,32,75,34,"u8aToU8a"],[74,40,75,42],[74,42,75,44,"other"],[74,47,75,49],[74,48,75,50],[74,49,75,51],[75,4,76,4],[76,4,77,4],[77,0,78,0],[78,0,79,0],[79,4,80,4,"inspect"],[79,11,80,11,"inspect"],[79,12,80,11],[79,14,80,14],[80,6,81,8],[80,13,81,15],[81,8,82,12,"outer"],[81,13,82,17],[81,15,82,19],[81,16,82,20],[81,20,82,24],[81,21,82,25,"toU8a"],[81,26,82,30],[81,27,82,31],[81,28,82,32],[82,6,83,8],[82,7,83,9],[83,4,84,4],[84,4,85,4],[85,0,86,0],[86,0,87,0],[87,4,88,4,"toHex"],[87,9,88,9,"toHex"],[87,10,88,9],[87,12,88,12],[88,6,89,8],[88,13,89,15],[88,14,89,16],[88,15,89,17],[88,17,89,19,"util_1"],[88,23,89,25],[88,24,89,26,"u8aToHex"],[88,32,89,34],[88,34,89,36],[88,38,89,40],[88,39,89,41],[89,4,90,4],[90,4,91,4],[91,0,92,0],[92,0,93,0],[93,4,94,4,"toHuman"],[93,11,94,11,"toHuman"],[93,12,94,12,"_isExtended"],[93,23,94,23],[93,25,94,25,"disableAscii"],[93,37,94,37],[93,39,94,39],[94,6,95,8],[94,13,95,15],[94,17,95,19],[94,18,95,20,"toPrimitive"],[94,29,95,31],[94,30,95,32,"disableAscii"],[94,42,95,44],[94,43,95,45],[95,4,96,4],[96,4,97,4],[97,0,98,0],[98,0,99,0],[99,4,100,4,"toJSON"],[99,10,100,10,"toJSON"],[99,11,100,10],[99,13,100,13],[100,6,101,8],[100,13,101,15],[100,17,101,19],[100,18,101,20,"toHex"],[100,23,101,25],[100,24,101,26],[100,25,101,27],[101,4,102,4],[102,4,103,4],[103,0,104,0],[104,0,105,0],[105,4,106,4,"toPrimitive"],[105,15,106,15,"toPrimitive"],[105,16,106,16,"disableAscii"],[105,28,106,28],[105,30,106,30],[106,6,107,8],[106,10,107,12],[106,11,107,13,"disableAscii"],[106,23,107,25],[106,27,107,29],[106,31,107,33],[106,32,107,34,"isAscii"],[106,39,107,41],[106,41,107,43],[107,8,108,12],[107,14,108,18,"text"],[107,18,108,22],[107,21,108,25],[107,25,108,29],[107,26,108,30,"toUtf8"],[107,32,108,36],[107,33,108,37],[107,34,108,38],[108,8,109,12],[109,8,110,12],[109,12,110,16],[109,13,110,17],[109,14,110,18],[109,16,110,20,"util_1"],[109,22,110,26],[109,23,110,27,"isAscii"],[109,30,110,34],[109,32,110,36,"text"],[109,36,110,40],[109,37,110,41],[109,39,110,43],[110,10,111,16],[110,17,111,23,"text"],[110,21,111,27],[111,8,112,12],[112,6,113,8],[113,6,114,8],[113,13,114,15],[113,17,114,19],[113,18,114,20,"toJSON"],[113,24,114,26],[113,25,114,27],[113,26,114,28],[114,4,115,4],[115,4,116,4],[116,0,117,0],[117,0,118,0],[118,4,119,4,"toRawType"],[118,13,119,13,"toRawType"],[118,14,119,13],[118,16,119,16],[119,6,120,8],[119,13,120,15],[119,18,120,20],[120,4,121,4],[121,4,122,4],[122,0,123,0],[123,0,124,0],[124,4,125,4,"toString"],[124,12,125,12,"toString"],[124,13,125,12],[124,15,125,15],[125,6,126,8],[125,13,126,15],[125,17,126,19],[125,18,126,20,"toHex"],[125,23,126,25],[125,24,126,26],[125,25,126,27],[126,4,127,4],[127,4,128,4],[128,0,129,0],[129,0,130,0],[130,4,131,4,"toU8a"],[130,9,131,9,"toU8a"],[130,10,131,10,"_isBare"],[130,17,131,17],[130,19,131,19],[131,6,132,8],[131,13,132,15,"Uint8Array"],[131,23,132,25],[131,24,132,26,"from"],[131,28,132,30],[131,29,132,31],[131,33,132,35],[131,34,132,36],[132,4,133,4],[133,4,134,4],[134,0,135,0],[135,0,136,0],[136,4,137,4,"toUtf8"],[136,10,137,10,"toUtf8"],[136,11,137,10],[136,13,137,13],[137,6,138,8],[137,10,138,12],[137,11,138,13],[137,15,138,17],[137,16,138,18,"isUtf8"],[137,22,138,24],[137,24,138,26],[138,8,139,12],[138,14,139,18],[138,18,139,22,"Error"],[138,23,139,27],[138,24,139,28],[138,75,139,79],[138,76,139,80],[139,6,140,8],[140,6,141,8],[140,13,141,15],[140,14,141,16],[140,15,141,17],[140,17,141,19,"util_1"],[140,23,141,25],[140,24,141,26,"u8aToString"],[140,35,141,37],[140,37,141,39],[140,41,141,43],[140,42,141,44],[141,4,142,4],[142,2,143,0],[143,2,144,0,"exports"],[143,9,144,7],[143,10,144,8,"Raw"],[143,13,144,11],[143,16,144,14,"Raw"],[143,19,144,17],[144,0,144,18],[144,3]],"functionMap":{"names":["<global>","Raw","get__@@species","constructor","get__encodedLength","get__hash","get__isAscii","get__isEmpty","find$argument_0","get__isUtf8","bitLength","eq","some$argument_0","inspect","toHex","toHuman","toJSON","toPrimitive","toRawType","toString","toU8a","toUtf8"],"mappings":"AAA;ACa;ICS;KDE;IEC;KFI;IGI;KHE;III;KJE;IKI;KLE;IMI;iECC,UD;KNC;IQI;KRE;ISI;KTE;IUI;2BCG,gCD;KVG;IYI;KZI;IaI;KbE;IcI;KdE;IeI;KfE;IgBI;KhBS;IiBI;KjBE;IkBI;KlBE;ImBI;KnBE;IoBI;KpBK;CDC"},"hasCjsExports":true},"type":"js/module"}]} |