mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
17 KiB
Plaintext
1 line
17 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":98,"index":98}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../utils/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":99},"end":{"line":2,"column":54,"index":153}}],"key":"yx9DX+1vet++JoKlU5V/nikNahM=","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, \"Compact\", {\n enumerable: true,\n get: function () {\n return Compact;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _utilsIndexJs = require(_dependencyMap[1], \"../utils/index.js\");\n function decodeCompact(registry, Type, value) {\n if ((0, _polkadotUtil.isU8a)(value)) {\n const [decodedLength, bn] = (value[0] & 0b11) < 0b11 ? (0, _polkadotUtil.compactFromU8aLim)(value) : (0, _polkadotUtil.compactFromU8a)(value);\n return [new Type(registry, bn), decodedLength];\n } else if (value instanceof Compact) {\n const raw = value.unwrap();\n return raw instanceof Type ? [raw, 0] : [new Type(registry, raw), 0];\n } else if (value instanceof Type) {\n return [value, 0];\n }\n return [new Type(registry, value), 0];\n }\n /**\n * @name Compact\n * @description\n * A compact length-encoding codec wrapper. It performs the same function as Length, however\n * differs in that it uses a variable number of bytes to do the actual encoding. This is mostly\n * used by other types to add length-prefixed encoding, or in the case of wrapped types, taking\n * a number and making the compact representation thereof\n */\n class Compact {\n #Type;\n #raw;\n constructor(registry, Type, value = 0, {\n definition,\n setDefinition = _polkadotUtil.identity\n } = {}) {\n this.registry = registry;\n this.#Type = definition || setDefinition((0, _utilsIndexJs.typeToConstructor)(registry, Type));\n const [raw, decodedLength] = decodeCompact(registry, this.#Type, value);\n this.initialU8aLength = decodedLength;\n this.#raw = raw;\n }\n static with(Type) {\n let definition;\n // eslint-disable-next-line no-return-assign\n const setDefinition = d => definition = d;\n return class extends Compact {\n constructor(registry, value) {\n super(registry, Type, value, {\n definition,\n setDefinition\n });\n }\n };\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.toU8a().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 Checks if the value is an empty value\n */\n get isEmpty() {\n return this.#raw.isEmpty;\n }\n /**\n * @description Returns the number of bits in the value\n */\n bitLength() {\n return this.#raw.bitLength();\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n return this.#raw.eq(other instanceof Compact ? other.#raw : 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 BigInt representation of the number\n */\n toBigInt() {\n return this.#raw.toBigInt();\n }\n /**\n * @description Returns the BN representation of the number\n */\n toBn() {\n return this.#raw.toBn();\n }\n /**\n * @description Returns a hex string representation of the value. isLe returns a LE (number-only) representation\n */\n toHex(isLe) {\n return this.#raw.toHex(isLe);\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.#raw.toHuman(isExtended, disableAscii);\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n return this.#raw.toJSON();\n }\n /**\n * @description Returns the number representation for the value\n */\n toNumber() {\n return this.#raw.toNumber();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive(disableAscii) {\n return this.#raw.toPrimitive(disableAscii);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `Compact<${this.registry.getClassName(this.#Type) || this.#raw.toRawType()}>`;\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return this.#raw.toString();\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return (0, _polkadotUtil.compactToU8a)(this.#raw.toBn());\n }\n /**\n * @description Returns the embedded [[UInt]] or [[Moment]] value\n */\n unwrap() {\n return this.#raw;\n }\n }\n});","lineCount":166,"map":[[7,2,29,0,"Object"],[7,8,29,0],[7,9,29,0,"defineProperty"],[7,23,29,0],[7,24,29,0,"exports"],[7,31,29,0],[8,4,29,0,"enumerable"],[8,14,29,0],[9,4,29,0,"get"],[9,7,29,0],[9,18,29,0,"get"],[9,19,29,0],[10,6,29,0],[10,13,29,0,"Compact"],[10,20,29,0],[11,4,29,0],[12,2,29,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,"_utilsIndexJs"],[14,19,2,0],[14,22,2,0,"require"],[14,29,2,0],[14,30,2,0,"_dependencyMap"],[14,44,2,0],[15,2,3,0],[15,11,3,9,"decodeCompact"],[15,24,3,22,"decodeCompact"],[15,25,3,23,"registry"],[15,33,3,31],[15,35,3,33,"Type"],[15,39,3,37],[15,41,3,39,"value"],[15,46,3,44],[15,48,3,46],[16,4,4,4],[16,8,4,8],[16,12,4,8,"isU8a"],[16,25,4,13],[16,26,4,13,"isU8a"],[16,31,4,13],[16,33,4,14,"value"],[16,38,4,19],[16,39,4,20],[16,41,4,22],[17,6,5,8],[17,12,5,14],[17,13,5,15,"decodedLength"],[17,26,5,28],[17,28,5,30,"bn"],[17,30,5,32],[17,31,5,33],[17,34,5,36],[17,35,5,37,"value"],[17,40,5,42],[17,41,5,43],[17,42,5,44],[17,43,5,45],[17,46,5,48],[17,50,5,52],[17,54,5,56],[17,58,5,60],[17,61,6,14],[17,65,6,14,"compactFromU8aLim"],[17,78,6,31],[17,79,6,31,"compactFromU8aLim"],[17,96,6,31],[17,98,6,32,"value"],[17,103,6,37],[17,104,6,38],[17,107,7,14],[17,111,7,14,"compactFromU8a"],[17,124,7,28],[17,125,7,28,"compactFromU8a"],[17,139,7,28],[17,141,7,29,"value"],[17,146,7,34],[17,147,7,35],[18,6,8,8],[18,13,8,15],[18,14,8,16],[18,18,8,20,"Type"],[18,22,8,24],[18,23,8,25,"registry"],[18,31,8,33],[18,33,8,35,"bn"],[18,35,8,37],[18,36,8,38],[18,38,8,40,"decodedLength"],[18,51,8,53],[18,52,8,54],[19,4,9,4],[19,5,9,5],[19,11,10,9],[19,15,10,13,"value"],[19,20,10,18],[19,32,10,30,"Compact"],[19,39,10,37],[19,41,10,39],[20,6,11,8],[20,12,11,14,"raw"],[20,15,11,17],[20,18,11,20,"value"],[20,23,11,25],[20,24,11,26,"unwrap"],[20,30,11,32],[20,31,11,33],[20,32,11,34],[21,6,12,8],[21,13,12,15,"raw"],[21,16,12,18],[21,28,12,30,"Type"],[21,32,12,34],[21,35,13,14],[21,36,13,15,"raw"],[21,39,13,18],[21,41,13,20],[21,42,13,21],[21,43,13,22],[21,46,14,14],[21,47,14,15],[21,51,14,19,"Type"],[21,55,14,23],[21,56,14,24,"registry"],[21,64,14,32],[21,66,14,34,"raw"],[21,69,14,37],[21,70,14,38],[21,72,14,40],[21,73,14,41],[21,74,14,42],[22,4,15,4],[22,5,15,5],[22,11,16,9],[22,15,16,13,"value"],[22,20,16,18],[22,32,16,30,"Type"],[22,36,16,34],[22,38,16,36],[23,6,17,8],[23,13,17,15],[23,14,17,16,"value"],[23,19,17,21],[23,21,17,23],[23,22,17,24],[23,23,17,25],[24,4,18,4],[25,4,19,4],[25,11,19,11],[25,12,19,12],[25,16,19,16,"Type"],[25,20,19,20],[25,21,19,21,"registry"],[25,29,19,29],[25,31,19,31,"value"],[25,36,19,36],[25,37,19,37],[25,39,19,39],[25,40,19,40],[25,41,19,41],[26,2,20,0],[27,2,21,0],[28,0,22,0],[29,0,23,0],[30,0,24,0],[31,0,25,0],[32,0,26,0],[33,0,27,0],[34,0,28,0],[35,2,29,7],[35,8,29,13,"Compact"],[35,15,29,20],[35,16,29,21],[36,4,34,4],[36,5,34,5,"Type"],[36,9,34,9],[37,4,35,4],[37,5,35,5,"raw"],[37,8,35,8],[38,4,36,4,"constructor"],[38,15,36,15,"constructor"],[38,16,36,16,"registry"],[38,24,36,24],[38,26,36,26,"Type"],[38,30,36,30],[38,32,36,32,"value"],[38,37,36,37],[38,40,36,40],[38,41,36,41],[38,43,36,43],[39,6,36,45,"definition"],[39,16,36,55],[40,6,36,57,"setDefinition"],[40,19,36,70],[40,22,36,73,"identity"],[40,35,36,81],[40,36,36,81,"identity"],[41,4,36,82],[41,5,36,83],[41,8,36,86],[41,9,36,87],[41,10,36,88],[41,12,36,90],[42,6,37,8],[42,10,37,12],[42,11,37,13,"registry"],[42,19,37,21],[42,22,37,24,"registry"],[42,30,37,32],[43,6,38,8],[43,10,38,12],[43,11,38,13],[43,12,38,14,"Type"],[43,16,38,18],[43,19,38,21,"definition"],[43,29,38,31],[43,33,38,35,"setDefinition"],[43,46,38,48],[43,47,38,49],[43,51,38,49,"typeToConstructor"],[43,64,38,66],[43,65,38,66,"typeToConstructor"],[43,82,38,66],[43,84,38,67,"registry"],[43,92,38,75],[43,94,38,77,"Type"],[43,98,38,81],[43,99,38,82],[43,100,38,83],[44,6,39,8],[44,12,39,14],[44,13,39,15,"raw"],[44,16,39,18],[44,18,39,20,"decodedLength"],[44,31,39,33],[44,32,39,34],[44,35,39,37,"decodeCompact"],[44,48,39,50],[44,49,39,51,"registry"],[44,57,39,59],[44,59,39,61],[44,63,39,65],[44,64,39,66],[44,65,39,67,"Type"],[44,69,39,71],[44,71,39,73,"value"],[44,76,39,78],[44,77,39,79],[45,6,40,8],[45,10,40,12],[45,11,40,13,"initialU8aLength"],[45,27,40,29],[45,30,40,32,"decodedLength"],[45,43,40,45],[46,6,41,8],[46,10,41,12],[46,11,41,13],[46,12,41,14,"raw"],[46,15,41,17],[46,18,41,20,"raw"],[46,21,41,23],[47,4,42,4],[48,4,43,4],[48,11,43,11,"with"],[48,15,43,15,"with"],[48,16,43,16,"Type"],[48,20,43,20],[48,22,43,22],[49,6,44,8],[49,10,44,12,"definition"],[49,20,44,22],[50,6,45,8],[51,6,46,8],[51,12,46,14,"setDefinition"],[51,25,46,27],[51,28,46,31,"d"],[51,29,46,32],[51,33,46,38,"definition"],[51,43,46,48],[51,46,46,51,"d"],[51,47,46,53],[52,6,47,8],[52,13,47,15],[52,27,47,29,"Compact"],[52,34,47,36],[52,35,47,37],[53,8,48,12,"constructor"],[53,19,48,23,"constructor"],[53,20,48,24,"registry"],[53,28,48,32],[53,30,48,34,"value"],[53,35,48,39],[53,37,48,41],[54,10,49,16],[54,15,49,21],[54,16,49,22,"registry"],[54,24,49,30],[54,26,49,32,"Type"],[54,30,49,36],[54,32,49,38,"value"],[54,37,49,43],[54,39,49,45],[55,12,49,47,"definition"],[55,22,49,57],[56,12,49,59,"setDefinition"],[57,10,49,73],[57,11,49,74],[57,12,49,75],[58,8,50,12],[59,6,51,8],[59,7,51,9],[60,4,52,4],[61,4,53,4],[62,0,54,0],[63,0,55,0],[64,4,56,4],[64,8,56,8,"encodedLength"],[64,21,56,21,"encodedLength"],[64,22,56,21],[64,24,56,24],[65,6,57,8],[65,13,57,15],[65,17,57,19],[65,18,57,20,"toU8a"],[65,23,57,25],[65,24,57,26],[65,25,57,27],[65,26,57,28,"length"],[65,32,57,34],[66,4,58,4],[67,4,59,4],[68,0,60,0],[69,0,61,0],[70,4,62,4],[70,8,62,8,"hash"],[70,12,62,12,"hash"],[70,13,62,12],[70,15,62,15],[71,6,63,8],[71,13,63,15],[71,17,63,19],[71,18,63,20,"registry"],[71,26,63,28],[71,27,63,29,"hash"],[71,31,63,33],[71,32,63,34],[71,36,63,38],[71,37,63,39,"toU8a"],[71,42,63,44],[71,43,63,45],[71,44,63,46],[71,45,63,47],[72,4,64,4],[73,4,65,4],[74,0,66,0],[75,0,67,0],[76,4,68,4],[76,8,68,8,"isEmpty"],[76,15,68,15,"isEmpty"],[76,16,68,15],[76,18,68,18],[77,6,69,8],[77,13,69,15],[77,17,69,19],[77,18,69,20],[77,19,69,21,"raw"],[77,22,69,24],[77,23,69,25,"isEmpty"],[77,30,69,32],[78,4,70,4],[79,4,71,4],[80,0,72,0],[81,0,73,0],[82,4,74,4,"bitLength"],[82,13,74,13,"bitLength"],[82,14,74,13],[82,16,74,16],[83,6,75,8],[83,13,75,15],[83,17,75,19],[83,18,75,20],[83,19,75,21,"raw"],[83,22,75,24],[83,23,75,25,"bitLength"],[83,32,75,34],[83,33,75,35],[83,34,75,36],[84,4,76,4],[85,4,77,4],[86,0,78,0],[87,0,79,0],[88,4,80,4,"eq"],[88,6,80,6,"eq"],[88,7,80,7,"other"],[88,12,80,12],[88,14,80,14],[89,6,81,8],[89,13,81,15],[89,17,81,19],[89,18,81,20],[89,19,81,21,"raw"],[89,22,81,24],[89,23,81,25,"eq"],[89,25,81,27],[89,26,81,28,"other"],[89,31,81,33],[89,43,81,45,"Compact"],[89,50,81,52],[89,53,82,14,"other"],[89,58,82,19],[89,59,82,20],[89,60,82,21,"raw"],[89,63,82,24],[89,66,83,14,"other"],[89,71,83,19],[89,72,83,20],[90,4,84,4],[91,4,85,4],[92,0,86,0],[93,0,87,0],[94,4,88,4,"inspect"],[94,11,88,11,"inspect"],[94,12,88,11],[94,14,88,14],[95,6,89,8],[95,13,89,15],[96,8,90,12,"outer"],[96,13,90,17],[96,15,90,19],[96,16,90,20],[96,20,90,24],[96,21,90,25,"toU8a"],[96,26,90,30],[96,27,90,31],[96,28,90,32],[97,6,91,8],[97,7,91,9],[98,4,92,4],[99,4,93,4],[100,0,94,0],[101,0,95,0],[102,4,96,4,"toBigInt"],[102,12,96,12,"toBigInt"],[102,13,96,12],[102,15,96,15],[103,6,97,8],[103,13,97,15],[103,17,97,19],[103,18,97,20],[103,19,97,21,"raw"],[103,22,97,24],[103,23,97,25,"toBigInt"],[103,31,97,33],[103,32,97,34],[103,33,97,35],[104,4,98,4],[105,4,99,4],[106,0,100,0],[107,0,101,0],[108,4,102,4,"toBn"],[108,8,102,8,"toBn"],[108,9,102,8],[108,11,102,11],[109,6,103,8],[109,13,103,15],[109,17,103,19],[109,18,103,20],[109,19,103,21,"raw"],[109,22,103,24],[109,23,103,25,"toBn"],[109,27,103,29],[109,28,103,30],[109,29,103,31],[110,4,104,4],[111,4,105,4],[112,0,106,0],[113,0,107,0],[114,4,108,4,"toHex"],[114,9,108,9,"toHex"],[114,10,108,10,"isLe"],[114,14,108,14],[114,16,108,16],[115,6,109,8],[115,13,109,15],[115,17,109,19],[115,18,109,20],[115,19,109,21,"raw"],[115,22,109,24],[115,23,109,25,"toHex"],[115,28,109,30],[115,29,109,31,"isLe"],[115,33,109,35],[115,34,109,36],[116,4,110,4],[117,4,111,4],[118,0,112,0],[119,0,113,0],[120,4,114,4,"toHuman"],[120,11,114,11,"toHuman"],[120,12,114,12,"isExtended"],[120,22,114,22],[120,24,114,24,"disableAscii"],[120,36,114,36],[120,38,114,38],[121,6,115,8],[121,13,115,15],[121,17,115,19],[121,18,115,20],[121,19,115,21,"raw"],[121,22,115,24],[121,23,115,25,"toHuman"],[121,30,115,32],[121,31,115,33,"isExtended"],[121,41,115,43],[121,43,115,45,"disableAscii"],[121,55,115,57],[121,56,115,58],[122,4,116,4],[123,4,117,4],[124,0,118,0],[125,0,119,0],[126,4,120,4,"toJSON"],[126,10,120,10,"toJSON"],[126,11,120,10],[126,13,120,13],[127,6,121,8],[127,13,121,15],[127,17,121,19],[127,18,121,20],[127,19,121,21,"raw"],[127,22,121,24],[127,23,121,25,"toJSON"],[127,29,121,31],[127,30,121,32],[127,31,121,33],[128,4,122,4],[129,4,123,4],[130,0,124,0],[131,0,125,0],[132,4,126,4,"toNumber"],[132,12,126,12,"toNumber"],[132,13,126,12],[132,15,126,15],[133,6,127,8],[133,13,127,15],[133,17,127,19],[133,18,127,20],[133,19,127,21,"raw"],[133,22,127,24],[133,23,127,25,"toNumber"],[133,31,127,33],[133,32,127,34],[133,33,127,35],[134,4,128,4],[135,4,129,4],[136,0,130,0],[137,0,131,0],[138,4,132,4,"toPrimitive"],[138,15,132,15,"toPrimitive"],[138,16,132,16,"disableAscii"],[138,28,132,28],[138,30,132,30],[139,6,133,8],[139,13,133,15],[139,17,133,19],[139,18,133,20],[139,19,133,21,"raw"],[139,22,133,24],[139,23,133,25,"toPrimitive"],[139,34,133,36],[139,35,133,37,"disableAscii"],[139,47,133,49],[139,48,133,50],[140,4,134,4],[141,4,135,4],[142,0,136,0],[143,0,137,0],[144,4,138,4,"toRawType"],[144,13,138,13,"toRawType"],[144,14,138,13],[144,16,138,16],[145,6,139,8],[145,13,139,15],[145,24,139,26],[145,28,139,30],[145,29,139,31,"registry"],[145,37,139,39],[145,38,139,40,"getClassName"],[145,50,139,52],[145,51,139,53],[145,55,139,57],[145,56,139,58],[145,57,139,59,"Type"],[145,61,139,63],[145,62,139,64],[145,66,139,68],[145,70,139,72],[145,71,139,73],[145,72,139,74,"raw"],[145,75,139,77],[145,76,139,78,"toRawType"],[145,85,139,87],[145,86,139,88],[145,87,139,89],[145,90,139,92],[146,4,140,4],[147,4,141,4],[148,0,142,0],[149,0,143,0],[150,4,144,4,"toString"],[150,12,144,12,"toString"],[150,13,144,12],[150,15,144,15],[151,6,145,8],[151,13,145,15],[151,17,145,19],[151,18,145,20],[151,19,145,21,"raw"],[151,22,145,24],[151,23,145,25,"toString"],[151,31,145,33],[151,32,145,34],[151,33,145,35],[152,4,146,4],[153,4,147,4],[154,0,148,0],[155,0,149,0],[156,4,150,4,"toU8a"],[156,9,150,9,"toU8a"],[156,10,150,10,"_isBare"],[156,17,150,17],[156,19,150,19],[157,6,151,8],[157,13,151,15],[157,17,151,15,"compactToU8a"],[157,30,151,27],[157,31,151,27,"compactToU8a"],[157,43,151,27],[157,45,151,28],[157,49,151,32],[157,50,151,33],[157,51,151,34,"raw"],[157,54,151,37],[157,55,151,38,"toBn"],[157,59,151,42],[157,60,151,43],[157,61,151,44],[157,62,151,45],[158,4,152,4],[159,4,153,4],[160,0,154,0],[161,0,155,0],[162,4,156,4,"unwrap"],[162,10,156,10,"unwrap"],[162,11,156,10],[162,13,156,13],[163,6,157,8],[163,13,157,15],[163,17,157,19],[163,18,157,20],[163,19,157,21,"raw"],[163,22,157,24],[164,4,158,4],[165,2,159,0],[166,0,159,1],[166,3]],"functionMap":{"names":["<global>","decodeCompact","Compact","constructor","_with","setDefinition","<anonymous>","get__encodedLength","get__hash","get__isEmpty","bitLength","eq","inspect","toBigInt","toBn","toHex","toHuman","toJSON","toNumber","toPrimitive","toRawType","toString","toU8a","unwrap"],"mappings":"AAA;ACE;CDiB;OES;ICO;KDM;IEC;8BCG,uBD;eEC;YHC;aGE;SFC;KFC;IKI;KLE;IMI;KNE;IOI;KPE;IQI;KRE;ISI;KTI;IUI;KVI;IWI;KXE;IYI;KZE;IaI;KbE;IcI;KdE;IeI;KfE;IgBI;KhBE;IiBI;KjBE;IkBI;KlBE;ImBI;KnBE;IoBI;KpBE;IqBI;KrBE;CFC"},"hasCjsExports":false},"type":"js/module"}]} |