mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51: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":116,"index":116}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../abstract/Array.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":117},"end":{"line":2,"column":53,"index":170}}],"key":"+rrStDZXBVBeKkHtHTajAdhokwk=","exportNames":["*"],"imports":1}},{"name":"../utils/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":171},"end":{"line":3,"column":100,"index":271}}],"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, \"Tuple\", {\n enumerable: true,\n get: function () {\n return Tuple;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _abstractArrayJs = require(_dependencyMap[1], \"../abstract/Array.js\");\n var _utilsIndexJs = require(_dependencyMap[2], \"../utils/index.js\");\n /** @internal */\n function decodeTuple(registry, result, value, Classes) {\n if (Array.isArray(value)) {\n const Types = Classes[0];\n for (let i = 0, count = Types.length; i < count; i++) {\n try {\n const entry = value?.[i];\n result[i] = entry instanceof Types[i] ? entry : new Types[i](registry, entry);\n } catch (error) {\n throw new Error(`Tuple: failed on ${i}:: ${error.message}`);\n }\n }\n return [result, 0];\n } else if ((0, _polkadotUtil.isHex)(value)) {\n return (0, _utilsIndexJs.decodeU8a)(registry, result, (0, _polkadotUtil.u8aToU8a)(value), Classes);\n } else if (!value || !result.length) {\n const Types = Classes[0];\n for (let i = 0, count = Types.length; i < count; i++) {\n result[i] = new Types[i](registry);\n }\n return [result, 0];\n }\n throw new Error(`Expected array input to Tuple decoding, found ${typeof value}: ${(0, _polkadotUtil.stringify)(value)}`);\n }\n /**\n * @name Tuple\n * @description\n * A Tuple defines an anonymous fixed-length array, where each element has its\n * own type. It extends the base JS `Array` object.\n */\n class Tuple extends _abstractArrayJs.AbstractArray {\n #Types;\n constructor(registry, Types, value, {\n definition,\n setDefinition = _polkadotUtil.identity\n } = {}) {\n const Classes = definition || setDefinition(Array.isArray(Types) ? [(0, _utilsIndexJs.typesToConstructors)(registry, Types), []] : (0, _polkadotUtil.isFunction)(Types) || (0, _polkadotUtil.isString)(Types) ? [[(0, _utilsIndexJs.typeToConstructor)(registry, Types)], []] : (0, _utilsIndexJs.mapToTypeMap)(registry, Types));\n super(registry, Classes[0].length);\n this.initialU8aLength = ((0, _polkadotUtil.isU8a)(value) ? (0, _utilsIndexJs.decodeU8a)(registry, this, value, Classes) : decodeTuple(registry, this, value, Classes))[1];\n this.#Types = Classes;\n }\n static with(Types) {\n let definition;\n // eslint-disable-next-line no-return-assign\n const setDefinition = d => definition = d;\n return class extends Tuple {\n constructor(registry, value) {\n super(registry, Types, 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 let total = 0;\n for (let i = 0, count = this.length; i < count; i++) {\n total += this[i].encodedLength;\n }\n return total;\n }\n /**\n * @description The types definition of the tuple\n */\n get Types() {\n return this.#Types[1].length ? this.#Types[1] : this.#Types[0].map(T => new T(this.registry).toRawType());\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n inner: this.inspectInner()\n };\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n const types = this.#Types[0].map(T => this.registry.getClassName(T) || new T(this.registry).toRawType());\n return `(${types.join(',')})`;\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n // Overwrite the default toString representation of Array.\n return (0, _polkadotUtil.stringify)(this.toJSON());\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 (0, _polkadotUtil.u8aConcatStrict)(this.toU8aInner(isBare));\n }\n }\n});","lineCount":116,"map":[[7,2,39,0,"Object"],[7,8,39,0],[7,9,39,0,"defineProperty"],[7,23,39,0],[7,24,39,0,"exports"],[7,31,39,0],[8,4,39,0,"enumerable"],[8,14,39,0],[9,4,39,0,"get"],[9,7,39,0],[9,18,39,0,"get"],[9,19,39,0],[10,6,39,0],[10,13,39,0,"Tuple"],[10,18,39,0],[11,4,39,0],[12,2,39,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,"_abstractArrayJs"],[14,22,2,0],[14,25,2,0,"require"],[14,32,2,0],[14,33,2,0,"_dependencyMap"],[14,47,2,0],[15,2,3,0],[15,6,3,0,"_utilsIndexJs"],[15,19,3,0],[15,22,3,0,"require"],[15,29,3,0],[15,30,3,0,"_dependencyMap"],[15,44,3,0],[16,2,4,0],[17,2,5,0],[17,11,5,9,"decodeTuple"],[17,22,5,20,"decodeTuple"],[17,23,5,21,"registry"],[17,31,5,29],[17,33,5,31,"result"],[17,39,5,37],[17,41,5,39,"value"],[17,46,5,44],[17,48,5,46,"Classes"],[17,55,5,53],[17,57,5,55],[18,4,6,4],[18,8,6,8,"Array"],[18,13,6,13],[18,14,6,14,"isArray"],[18,21,6,21],[18,22,6,22,"value"],[18,27,6,27],[18,28,6,28],[18,30,6,30],[19,6,7,8],[19,12,7,14,"Types"],[19,17,7,19],[19,20,7,22,"Classes"],[19,27,7,29],[19,28,7,30],[19,29,7,31],[19,30,7,32],[20,6,8,8],[20,11,8,13],[20,15,8,17,"i"],[20,16,8,18],[20,19,8,21],[20,20,8,22],[20,22,8,24,"count"],[20,27,8,29],[20,30,8,32,"Types"],[20,35,8,37],[20,36,8,38,"length"],[20,42,8,44],[20,44,8,46,"i"],[20,45,8,47],[20,48,8,50,"count"],[20,53,8,55],[20,55,8,57,"i"],[20,56,8,58],[20,58,8,60],[20,60,8,62],[21,8,9,12],[21,12,9,16],[22,10,10,16],[22,16,10,22,"entry"],[22,21,10,27],[22,24,10,30,"value"],[22,29,10,35],[22,32,10,38,"i"],[22,33,10,39],[22,34,10,40],[23,10,11,16,"result"],[23,16,11,22],[23,17,11,23,"i"],[23,18,11,24],[23,19,11,25],[23,22,11,28,"entry"],[23,27,11,33],[23,39,11,45,"Types"],[23,44,11,50],[23,45,11,51,"i"],[23,46,11,52],[23,47,11,53],[23,50,12,22,"entry"],[23,55,12,27],[23,58,13,22],[23,62,13,26,"Types"],[23,67,13,31],[23,68,13,32,"i"],[23,69,13,33],[23,70,13,34],[23,71,13,35,"registry"],[23,79,13,43],[23,81,13,45,"entry"],[23,86,13,50],[23,87,13,51],[24,8,14,12],[24,9,14,13],[24,10,15,12],[24,17,15,19,"error"],[24,22,15,24],[24,24,15,26],[25,10,16,16],[25,16,16,22],[25,20,16,26,"Error"],[25,25,16,31],[25,26,16,32],[25,46,16,52,"i"],[25,47,16,53],[25,53,16,59,"error"],[25,58,16,64],[25,59,16,65,"message"],[25,66,16,72],[25,68,16,74],[25,69,16,75],[26,8,17,12],[27,6,18,8],[28,6,19,8],[28,13,19,15],[28,14,19,16,"result"],[28,20,19,22],[28,22,19,24],[28,23,19,25],[28,24,19,26],[29,4,20,4],[29,5,20,5],[29,11,21,9],[29,15,21,13],[29,19,21,13,"isHex"],[29,32,21,18],[29,33,21,18,"isHex"],[29,38,21,18],[29,40,21,19,"value"],[29,45,21,24],[29,46,21,25],[29,48,21,27],[30,6,22,8],[30,13,22,15],[30,17,22,15,"decodeU8a"],[30,30,22,24],[30,31,22,24,"decodeU8a"],[30,40,22,24],[30,42,22,25,"registry"],[30,50,22,33],[30,52,22,35,"result"],[30,58,22,41],[30,60,22,43],[30,64,22,43,"u8aToU8a"],[30,77,22,51],[30,78,22,51,"u8aToU8a"],[30,86,22,51],[30,88,22,52,"value"],[30,93,22,57],[30,94,22,58],[30,96,22,60,"Classes"],[30,103,22,67],[30,104,22,68],[31,4,23,4],[31,5,23,5],[31,11,24,9],[31,15,24,13],[31,16,24,14,"value"],[31,21,24,19],[31,25,24,23],[31,26,24,24,"result"],[31,32,24,30],[31,33,24,31,"length"],[31,39,24,37],[31,41,24,39],[32,6,25,8],[32,12,25,14,"Types"],[32,17,25,19],[32,20,25,22,"Classes"],[32,27,25,29],[32,28,25,30],[32,29,25,31],[32,30,25,32],[33,6,26,8],[33,11,26,13],[33,15,26,17,"i"],[33,16,26,18],[33,19,26,21],[33,20,26,22],[33,22,26,24,"count"],[33,27,26,29],[33,30,26,32,"Types"],[33,35,26,37],[33,36,26,38,"length"],[33,42,26,44],[33,44,26,46,"i"],[33,45,26,47],[33,48,26,50,"count"],[33,53,26,55],[33,55,26,57,"i"],[33,56,26,58],[33,58,26,60],[33,60,26,62],[34,8,27,12,"result"],[34,14,27,18],[34,15,27,19,"i"],[34,16,27,20],[34,17,27,21],[34,20,27,24],[34,24,27,28,"Types"],[34,29,27,33],[34,30,27,34,"i"],[34,31,27,35],[34,32,27,36],[34,33,27,37,"registry"],[34,41,27,45],[34,42,27,46],[35,6,28,8],[36,6,29,8],[36,13,29,15],[36,14,29,16,"result"],[36,20,29,22],[36,22,29,24],[36,23,29,25],[36,24,29,26],[37,4,30,4],[38,4,31,4],[38,10,31,10],[38,14,31,14,"Error"],[38,19,31,19],[38,20,31,20],[38,69,31,69],[38,76,31,76,"value"],[38,81,31,81],[38,86,31,86],[38,90,31,86,"stringify"],[38,103,31,95],[38,104,31,95,"stringify"],[38,113,31,95],[38,115,31,96,"value"],[38,120,31,101],[38,121,31,102],[38,123,31,104],[38,124,31,105],[39,2,32,0],[40,2,33,0],[41,0,34,0],[42,0,35,0],[43,0,36,0],[44,0,37,0],[45,0,38,0],[46,2,39,7],[46,8,39,13,"Tuple"],[46,13,39,18],[46,22,39,27,"AbstractArray"],[46,38,39,40],[46,39,39,40,"AbstractArray"],[46,52,39,40],[46,53,39,41],[47,4,40,4],[47,5,40,5,"Types"],[47,10,40,10],[48,4,41,4,"constructor"],[48,15,41,15,"constructor"],[48,16,41,16,"registry"],[48,24,41,24],[48,26,41,26,"Types"],[48,31,41,31],[48,33,41,33,"value"],[48,38,41,38],[48,40,41,40],[49,6,41,42,"definition"],[49,16,41,52],[50,6,41,54,"setDefinition"],[50,19,41,67],[50,22,41,70,"identity"],[50,35,41,78],[50,36,41,78,"identity"],[51,4,41,79],[51,5,41,80],[51,8,41,83],[51,9,41,84],[51,10,41,85],[51,12,41,87],[52,6,42,8],[52,12,42,14,"Classes"],[52,19,42,21],[52,22,42,24,"definition"],[52,32,42,34],[52,36,42,38,"setDefinition"],[52,49,42,51],[52,50,42,52,"Array"],[52,55,42,57],[52,56,42,58,"isArray"],[52,63,42,65],[52,64,42,66,"Types"],[52,69,42,71],[52,70,42,72],[52,73,43,14],[52,74,43,15],[52,78,43,15,"typesToConstructors"],[52,91,43,34],[52,92,43,34,"typesToConstructors"],[52,111,43,34],[52,113,43,35,"registry"],[52,121,43,43],[52,123,43,45,"Types"],[52,128,43,50],[52,129,43,51],[52,131,43,53],[52,133,43,55],[52,134,43,56],[52,137,44,14],[52,141,44,14,"isFunction"],[52,154,44,24],[52,155,44,24,"isFunction"],[52,165,44,24],[52,167,44,25,"Types"],[52,172,44,30],[52,173,44,31],[52,177,44,35],[52,181,44,35,"isString"],[52,194,44,43],[52,195,44,43,"isString"],[52,203,44,43],[52,205,44,44,"Types"],[52,210,44,49],[52,211,44,50],[52,214,45,18],[52,215,45,19],[52,216,45,20],[52,220,45,20,"typeToConstructor"],[52,233,45,37],[52,234,45,37,"typeToConstructor"],[52,251,45,37],[52,253,45,38,"registry"],[52,261,45,46],[52,263,45,48,"Types"],[52,268,45,53],[52,269,45,54],[52,270,45,55],[52,272,45,57],[52,274,45,59],[52,275,45,60],[52,278,46,18],[52,282,46,18,"mapToTypeMap"],[52,295,46,30],[52,296,46,30,"mapToTypeMap"],[52,308,46,30],[52,310,46,31,"registry"],[52,318,46,39],[52,320,46,41,"Types"],[52,325,46,46],[52,326,46,47],[52,327,46,48],[53,6,47,8],[53,11,47,13],[53,12,47,14,"registry"],[53,20,47,22],[53,22,47,24,"Classes"],[53,29,47,31],[53,30,47,32],[53,31,47,33],[53,32,47,34],[53,33,47,35,"length"],[53,39,47,41],[53,40,47,42],[54,6,48,8],[54,10,48,12],[54,11,48,13,"initialU8aLength"],[54,27,48,29],[54,30,48,32],[54,31,48,33],[54,35,48,33,"isU8a"],[54,48,48,38],[54,49,48,38,"isU8a"],[54,54,48,38],[54,56,48,39,"value"],[54,61,48,44],[54,62,48,45],[54,65,49,14],[54,69,49,14,"decodeU8a"],[54,82,49,23],[54,83,49,23,"decodeU8a"],[54,92,49,23],[54,94,49,24,"registry"],[54,102,49,32],[54,104,49,34],[54,108,49,38],[54,110,49,40,"value"],[54,115,49,45],[54,117,49,47,"Classes"],[54,124,49,54],[54,125,49,55],[54,128,50,14,"decodeTuple"],[54,139,50,25],[54,140,50,26,"registry"],[54,148,50,34],[54,150,50,36],[54,154,50,40],[54,156,50,42,"value"],[54,161,50,47],[54,163,50,49,"Classes"],[54,170,50,56],[54,171,50,57],[54,173,50,59],[54,174,50,60],[54,175,50,61],[55,6,51,8],[55,10,51,12],[55,11,51,13],[55,12,51,14,"Types"],[55,17,51,19],[55,20,51,22,"Classes"],[55,27,51,29],[56,4,52,4],[57,4,53,4],[57,11,53,11,"with"],[57,15,53,15,"with"],[57,16,53,16,"Types"],[57,21,53,21],[57,23,53,23],[58,6,54,8],[58,10,54,12,"definition"],[58,20,54,22],[59,6,55,8],[60,6,56,8],[60,12,56,14,"setDefinition"],[60,25,56,27],[60,28,56,31,"d"],[60,29,56,32],[60,33,56,37,"definition"],[60,43,56,47],[60,46,56,50,"d"],[60,47,56,51],[61,6,57,8],[61,13,57,15],[61,27,57,29,"Tuple"],[61,32,57,34],[61,33,57,35],[62,8,58,12,"constructor"],[62,19,58,23,"constructor"],[62,20,58,24,"registry"],[62,28,58,32],[62,30,58,34,"value"],[62,35,58,39],[62,37,58,41],[63,10,59,16],[63,15,59,21],[63,16,59,22,"registry"],[63,24,59,30],[63,26,59,32,"Types"],[63,31,59,37],[63,33,59,39,"value"],[63,38,59,44],[63,40,59,46],[64,12,59,48,"definition"],[64,22,59,58],[65,12,59,60,"setDefinition"],[66,10,59,74],[66,11,59,75],[66,12,59,76],[67,8,60,12],[68,6,61,8],[68,7,61,9],[69,4,62,4],[70,4,63,4],[71,0,64,0],[72,0,65,0],[73,4,66,4],[73,8,66,8,"encodedLength"],[73,21,66,21,"encodedLength"],[73,22,66,21],[73,24,66,24],[74,6,67,8],[74,10,67,12,"total"],[74,15,67,17],[74,18,67,20],[74,19,67,21],[75,6,68,8],[75,11,68,13],[75,15,68,17,"i"],[75,16,68,18],[75,19,68,21],[75,20,68,22],[75,22,68,24,"count"],[75,27,68,29],[75,30,68,32],[75,34,68,36],[75,35,68,37,"length"],[75,41,68,43],[75,43,68,45,"i"],[75,44,68,46],[75,47,68,49,"count"],[75,52,68,54],[75,54,68,56,"i"],[75,55,68,57],[75,57,68,59],[75,59,68,61],[76,8,69,12,"total"],[76,13,69,17],[76,17,69,21],[76,21,69,25],[76,22,69,26,"i"],[76,23,69,27],[76,24,69,28],[76,25,69,29,"encodedLength"],[76,38,69,42],[77,6,70,8],[78,6,71,8],[78,13,71,15,"total"],[78,18,71,20],[79,4,72,4],[80,4,73,4],[81,0,74,0],[82,0,75,0],[83,4,76,4],[83,8,76,8,"Types"],[83,13,76,13,"Types"],[83,14,76,13],[83,16,76,16],[84,6,77,8],[84,13,77,15],[84,17,77,19],[84,18,77,20],[84,19,77,21,"Types"],[84,24,77,26],[84,25,77,27],[84,26,77,28],[84,27,77,29],[84,28,77,30,"length"],[84,34,77,36],[84,37,78,14],[84,41,78,18],[84,42,78,19],[84,43,78,20,"Types"],[84,48,78,25],[84,49,78,26],[84,50,78,27],[84,51,78,28],[84,54,79,14],[84,58,79,18],[84,59,79,19],[84,60,79,20,"Types"],[84,65,79,25],[84,66,79,26],[84,67,79,27],[84,68,79,28],[84,69,79,29,"map"],[84,72,79,32],[84,73,79,34,"T"],[84,74,79,35],[84,78,79,40],[84,82,79,44,"T"],[84,83,79,45],[84,84,79,46],[84,88,79,50],[84,89,79,51,"registry"],[84,97,79,59],[84,98,79,60],[84,99,79,61,"toRawType"],[84,108,79,70],[84,109,79,71],[84,110,79,72],[84,111,79,73],[85,4,80,4],[86,4,81,4],[87,0,82,0],[88,0,83,0],[89,4,84,4,"inspect"],[89,11,84,11,"inspect"],[89,12,84,11],[89,14,84,14],[90,6,85,8],[90,13,85,15],[91,8,86,12,"inner"],[91,13,86,17],[91,15,86,19],[91,19,86,23],[91,20,86,24,"inspectInner"],[91,32,86,36],[91,33,86,37],[92,6,87,8],[92,7,87,9],[93,4,88,4],[94,4,89,4],[95,0,90,0],[96,0,91,0],[97,4,92,4,"toRawType"],[97,13,92,13,"toRawType"],[97,14,92,13],[97,16,92,16],[98,6,93,8],[98,12,93,14,"types"],[98,17,93,19],[98,20,93,22],[98,24,93,26],[98,25,93,27],[98,26,93,28,"Types"],[98,31,93,33],[98,32,93,34],[98,33,93,35],[98,34,93,36],[98,35,93,37,"map"],[98,38,93,40],[98,39,93,42,"T"],[98,40,93,43],[98,44,93,48],[98,48,93,52],[98,49,93,53,"registry"],[98,57,93,61],[98,58,93,62,"getClassName"],[98,70,93,74],[98,71,93,75,"T"],[98,72,93,76],[98,73,93,77],[98,77,93,81],[98,81,93,85,"T"],[98,82,93,86],[98,83,93,87],[98,87,93,91],[98,88,93,92,"registry"],[98,96,93,100],[98,97,93,101],[98,98,93,102,"toRawType"],[98,107,93,111],[98,108,93,112],[98,109,93,113],[98,110,93,114],[99,6,94,8],[99,13,94,15],[99,17,94,19,"types"],[99,22,94,24],[99,23,94,25,"join"],[99,27,94,29],[99,28,94,30],[99,31,94,33],[99,32,94,34],[99,35,94,37],[100,4,95,4],[101,4,96,4],[102,0,97,0],[103,0,98,0],[104,4,99,4,"toString"],[104,12,99,12,"toString"],[104,13,99,12],[104,15,99,15],[105,6,100,8],[106,6,101,8],[106,13,101,15],[106,17,101,15,"stringify"],[106,30,101,24],[106,31,101,24,"stringify"],[106,40,101,24],[106,42,101,25],[106,46,101,29],[106,47,101,30,"toJSON"],[106,53,101,36],[106,54,101,37],[106,55,101,38],[106,56,101,39],[107,4,102,4],[108,4,103,4],[109,0,104,0],[110,0,105,0],[111,0,106,0],[112,4,107,4,"toU8a"],[112,9,107,9,"toU8a"],[112,10,107,10,"isBare"],[112,16,107,16],[112,18,107,18],[113,6,108,8],[113,13,108,15],[113,17,108,15,"u8aConcatStrict"],[113,30,108,30],[113,31,108,30,"u8aConcatStrict"],[113,46,108,30],[113,48,108,31],[113,52,108,35],[113,53,108,36,"toU8aInner"],[113,63,108,46],[113,64,108,47,"isBare"],[113,70,108,53],[113,71,108,54],[113,72,108,55],[114,4,109,4],[115,2,110,0],[116,0,110,1],[116,3]],"functionMap":{"names":["<global>","decodeTuple","Tuple","constructor","_with","setDefinition","<anonymous>","get__encodedLength","get__Types","_.map$argument_0","inspect","toRawType","toString","toU8a"],"mappings":"AAA;ACI;CD2B;OEO;ICE;KDW;IEC;8BCG,qBD;eEC;YHC;aGE;SFC;KFC;IKI;KLM;IMI;iCCG,uCD;KNC;IQI;KRI;ISI;yCFC,wEE;KTE;IUI;KVG;IWK;KXE;CFC"},"hasCjsExports":false},"type":"js/module"}]} |