mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 20:21:01 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":108,"index":108}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":109},"end":{"line":2,"column":39,"index":148}}],"key":"Q6Cn/2n+VmZe38UbZ4ft55xX/UY=","exportNames":["*"],"imports":1}},{"name":"../utils/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":149},"end":{"line":3,"column":54,"index":203}}],"key":"yx9DX+1vet++JoKlU5V/nikNahM=","exportNames":["*"],"imports":1}},{"name":"./Bytes.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":204},"end":{"line":4,"column":35,"index":239}}],"key":"SQlDTtc/PgFh6tfgCfZvTXr36qI=","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, \"WrapperKeepOpaque\", {\n enumerable: true,\n get: function () {\n return WrapperKeepOpaque;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _nativeRawJs = require(_dependencyMap[1], \"../native/Raw.js\");\n var _utilsIndexJs = require(_dependencyMap[2], \"../utils/index.js\");\n var _BytesJs = require(_dependencyMap[3], \"./Bytes.js\");\n function decodeRaw(registry, typeName, value) {\n const Type = (0, _utilsIndexJs.typeToConstructor)(registry, typeName);\n if ((0, _polkadotUtil.isU8a)(value) || (0, _polkadotUtil.isHex)(value)) {\n try {\n const [, u8a] = (0, _polkadotUtil.isHex)(value) ? [0, (0, _polkadotUtil.u8aToU8a)(value)] : value instanceof _nativeRawJs.Raw ? [0, value.subarray()] : (0, _polkadotUtil.compactStripLength)(value);\n return [Type, new Type(registry, u8a), value];\n } catch {\n return [Type, null, value];\n }\n }\n const instance = new Type(registry, value);\n return [Type, instance, (0, _polkadotUtil.compactAddLength)(instance.toU8a())];\n }\n class WrapperKeepOpaque extends _BytesJs.Bytes {\n #Type;\n #decoded;\n #opaqueName;\n constructor(registry, typeName, value, {\n opaqueName = 'WrapperKeepOpaque'\n } = {}) {\n const [Type, decoded, u8a] = decodeRaw(registry, typeName, value);\n super(registry, u8a);\n this.#Type = Type;\n this.#decoded = decoded;\n this.#opaqueName = opaqueName;\n }\n static with(Type) {\n return class extends WrapperKeepOpaque {\n constructor(registry, value) {\n super(registry, Type, value);\n }\n };\n }\n /**\n * @description Checks if the wrapper is decodable\n */\n get isDecoded() {\n return !!this.#decoded;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return this.#decoded ? {\n inner: [this.#decoded.inspect()],\n outer: [(0, _polkadotUtil.compactToU8a)(this.length)]\n } : {\n outer: [(0, _polkadotUtil.compactToU8a)(this.length), this.toU8a(true)]\n };\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.#decoded ? this.#decoded.toHuman(isExtended, disableAscii) : super.toHuman(isExtended, disableAscii);\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive(disableAscii) {\n return this.#decoded ? this.#decoded.toPrimitive(disableAscii) : super.toPrimitive(disableAscii);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `${this.#opaqueName}<${this.registry.getClassName(this.#Type) || (this.#decoded ? this.#decoded.toRawType() : new this.#Type(this.registry).toRawType())}>`;\n }\n /**\n * @description Converts the Object to to a string (either decoded or bytes)\n */\n toString() {\n return this.#decoded ? this.#decoded.toString() : super.toString();\n }\n /**\n * @description Returns the decoded that the WrapperKeepOpaque represents (if available), throws if non-decodable\n */\n unwrap() {\n if (!this.#decoded) {\n throw new Error(`${this.#opaqueName}: unwrapping an undecodable value`);\n }\n return this.#decoded;\n }\n }\n});","lineCount":101,"map":[[7,2,23,0,"Object"],[7,8,23,0],[7,9,23,0,"defineProperty"],[7,23,23,0],[7,24,23,0,"exports"],[7,31,23,0],[8,4,23,0,"enumerable"],[8,14,23,0],[9,4,23,0,"get"],[9,7,23,0],[9,18,23,0,"get"],[9,19,23,0],[10,6,23,0],[10,13,23,0,"WrapperKeepOpaque"],[10,30,23,0],[11,4,23,0],[12,2,23,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,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],[16,6,4,0,"_BytesJs"],[16,14,4,0],[16,17,4,0,"require"],[16,24,4,0],[16,25,4,0,"_dependencyMap"],[16,39,4,0],[17,2,5,0],[17,11,5,9,"decodeRaw"],[17,20,5,18,"decodeRaw"],[17,21,5,19,"registry"],[17,29,5,27],[17,31,5,29,"typeName"],[17,39,5,37],[17,41,5,39,"value"],[17,46,5,44],[17,48,5,46],[18,4,6,4],[18,10,6,10,"Type"],[18,14,6,14],[18,17,6,17],[18,21,6,17,"typeToConstructor"],[18,34,6,34],[18,35,6,34,"typeToConstructor"],[18,52,6,34],[18,54,6,35,"registry"],[18,62,6,43],[18,64,6,45,"typeName"],[18,72,6,53],[18,73,6,54],[19,4,7,4],[19,8,7,8],[19,12,7,8,"isU8a"],[19,25,7,13],[19,26,7,13,"isU8a"],[19,31,7,13],[19,33,7,14,"value"],[19,38,7,19],[19,39,7,20],[19,43,7,24],[19,47,7,24,"isHex"],[19,60,7,29],[19,61,7,29,"isHex"],[19,66,7,29],[19,68,7,30,"value"],[19,73,7,35],[19,74,7,36],[19,76,7,38],[20,6,8,8],[20,10,8,12],[21,8,9,12],[21,14,9,18],[21,17,9,21,"u8a"],[21,20,9,24],[21,21,9,25],[21,24,9,28],[21,28,9,28,"isHex"],[21,41,9,33],[21,42,9,33,"isHex"],[21,47,9,33],[21,49,9,34,"value"],[21,54,9,39],[21,55,9,40],[21,58,10,18],[21,59,10,19],[21,60,10,20],[21,62,10,22],[21,66,10,22,"u8aToU8a"],[21,79,10,30],[21,80,10,30,"u8aToU8a"],[21,88,10,30],[21,90,10,31,"value"],[21,95,10,36],[21,96,10,37],[21,97,10,38],[21,100,11,19,"value"],[21,105,11,24],[21,117,11,36,"Raw"],[21,129,11,39],[21,130,11,39,"Raw"],[21,133,11,39],[21,136,12,22],[21,137,12,23],[21,138,12,24],[21,140,12,26,"value"],[21,145,12,31],[21,146,12,32,"subarray"],[21,154,12,40],[21,155,12,41],[21,156,12,42],[21,157,12,43],[21,160,13,22],[21,164,13,22,"compactStripLength"],[21,177,13,40],[21,178,13,40,"compactStripLength"],[21,196,13,40],[21,198,13,41,"value"],[21,203,13,46],[21,204,13,47],[22,8,14,12],[22,15,14,19],[22,16,14,20,"Type"],[22,20,14,24],[22,22,14,26],[22,26,14,30,"Type"],[22,30,14,34],[22,31,14,35,"registry"],[22,39,14,43],[22,41,14,45,"u8a"],[22,44,14,48],[22,45,14,49],[22,47,14,51,"value"],[22,52,14,56],[22,53,14,57],[23,6,15,8],[23,7,15,9],[23,8,16,8],[23,14,16,14],[24,8,17,12],[24,15,17,19],[24,16,17,20,"Type"],[24,20,17,24],[24,22,17,26],[24,26,17,30],[24,28,17,32,"value"],[24,33,17,37],[24,34,17,38],[25,6,18,8],[26,4,19,4],[27,4,20,4],[27,10,20,10,"instance"],[27,18,20,18],[27,21,20,21],[27,25,20,25,"Type"],[27,29,20,29],[27,30,20,30,"registry"],[27,38,20,38],[27,40,20,40,"value"],[27,45,20,45],[27,46,20,46],[28,4,21,4],[28,11,21,11],[28,12,21,12,"Type"],[28,16,21,16],[28,18,21,18,"instance"],[28,26,21,26],[28,28,21,28],[28,32,21,28,"compactAddLength"],[28,45,21,44],[28,46,21,44,"compactAddLength"],[28,62,21,44],[28,64,21,45,"instance"],[28,72,21,53],[28,73,21,54,"toU8a"],[28,78,21,59],[28,79,21,60],[28,80,21,61],[28,81,21,62],[28,82,21,63],[29,2,22,0],[30,2,23,7],[30,8,23,13,"WrapperKeepOpaque"],[30,25,23,30],[30,34,23,39,"Bytes"],[30,42,23,44],[30,43,23,44,"Bytes"],[30,48,23,44],[30,49,23,45],[31,4,24,4],[31,5,24,5,"Type"],[31,9,24,9],[32,4,25,4],[32,5,25,5,"decoded"],[32,12,25,12],[33,4,26,4],[33,5,26,5,"opaqueName"],[33,15,26,15],[34,4,27,4,"constructor"],[34,15,27,15,"constructor"],[34,16,27,16,"registry"],[34,24,27,24],[34,26,27,26,"typeName"],[34,34,27,34],[34,36,27,36,"value"],[34,41,27,41],[34,43,27,43],[35,6,27,45,"opaqueName"],[35,16,27,55],[35,19,27,58],[36,4,27,78],[36,5,27,79],[36,8,27,82],[36,9,27,83],[36,10,27,84],[36,12,27,86],[37,6,28,8],[37,12,28,14],[37,13,28,15,"Type"],[37,17,28,19],[37,19,28,21,"decoded"],[37,26,28,28],[37,28,28,30,"u8a"],[37,31,28,33],[37,32,28,34],[37,35,28,37,"decodeRaw"],[37,44,28,46],[37,45,28,47,"registry"],[37,53,28,55],[37,55,28,57,"typeName"],[37,63,28,65],[37,65,28,67,"value"],[37,70,28,72],[37,71,28,73],[38,6,29,8],[38,11,29,13],[38,12,29,14,"registry"],[38,20,29,22],[38,22,29,24,"u8a"],[38,25,29,27],[38,26,29,28],[39,6,30,8],[39,10,30,12],[39,11,30,13],[39,12,30,14,"Type"],[39,16,30,18],[39,19,30,21,"Type"],[39,23,30,25],[40,6,31,8],[40,10,31,12],[40,11,31,13],[40,12,31,14,"decoded"],[40,19,31,21],[40,22,31,24,"decoded"],[40,29,31,31],[41,6,32,8],[41,10,32,12],[41,11,32,13],[41,12,32,14,"opaqueName"],[41,22,32,24],[41,25,32,27,"opaqueName"],[41,35,32,37],[42,4,33,4],[43,4,34,4],[43,11,34,11,"with"],[43,15,34,15,"with"],[43,16,34,16,"Type"],[43,20,34,20],[43,22,34,22],[44,6,35,8],[44,13,35,15],[44,27,35,29,"WrapperKeepOpaque"],[44,44,35,46],[44,45,35,47],[45,8,36,12,"constructor"],[45,19,36,23,"constructor"],[45,20,36,24,"registry"],[45,28,36,32],[45,30,36,34,"value"],[45,35,36,39],[45,37,36,41],[46,10,37,16],[46,15,37,21],[46,16,37,22,"registry"],[46,24,37,30],[46,26,37,32,"Type"],[46,30,37,36],[46,32,37,38,"value"],[46,37,37,43],[46,38,37,44],[47,8,38,12],[48,6,39,8],[48,7,39,9],[49,4,40,4],[50,4,41,4],[51,0,42,0],[52,0,43,0],[53,4,44,4],[53,8,44,8,"isDecoded"],[53,17,44,17,"isDecoded"],[53,18,44,17],[53,20,44,20],[54,6,45,8],[54,13,45,15],[54,14,45,16],[54,15,45,17],[54,19,45,21],[54,20,45,22],[54,21,45,23,"decoded"],[54,28,45,30],[55,4,46,4],[56,4,47,4],[57,0,48,0],[58,0,49,0],[59,4,50,4,"inspect"],[59,11,50,11,"inspect"],[59,12,50,11],[59,14,50,14],[60,6,51,8],[60,13,51,15],[60,17,51,19],[60,18,51,20],[60,19,51,21,"decoded"],[60,26,51,28],[60,29,52,14],[61,8,53,16,"inner"],[61,13,53,21],[61,15,53,23],[61,16,53,24],[61,20,53,28],[61,21,53,29],[61,22,53,30,"decoded"],[61,29,53,37],[61,30,53,38,"inspect"],[61,37,53,45],[61,38,53,46],[61,39,53,47],[61,40,53,48],[62,8,54,16,"outer"],[62,13,54,21],[62,15,54,23],[62,16,54,24],[62,20,54,24,"compactToU8a"],[62,33,54,36],[62,34,54,36,"compactToU8a"],[62,46,54,36],[62,48,54,37],[62,52,54,41],[62,53,54,42,"length"],[62,59,54,48],[62,60,54,49],[63,6,55,12],[63,7,55,13],[63,10,56,14],[64,8,57,16,"outer"],[64,13,57,21],[64,15,57,23],[64,16,57,24],[64,20,57,24,"compactToU8a"],[64,33,57,36],[64,34,57,36,"compactToU8a"],[64,46,57,36],[64,48,57,37],[64,52,57,41],[64,53,57,42,"length"],[64,59,57,48],[64,60,57,49],[64,62,57,51],[64,66,57,55],[64,67,57,56,"toU8a"],[64,72,57,61],[64,73,57,62],[64,77,57,66],[64,78,57,67],[65,6,58,12],[65,7,58,13],[66,4,59,4],[67,4,60,4],[68,0,61,0],[69,0,62,0],[70,4,63,4,"toHuman"],[70,11,63,11,"toHuman"],[70,12,63,12,"isExtended"],[70,22,63,22],[70,24,63,24,"disableAscii"],[70,36,63,36],[70,38,63,38],[71,6,64,8],[71,13,64,15],[71,17,64,19],[71,18,64,20],[71,19,64,21,"decoded"],[71,26,64,28],[71,29,65,14],[71,33,65,18],[71,34,65,19],[71,35,65,20,"decoded"],[71,42,65,27],[71,43,65,28,"toHuman"],[71,50,65,35],[71,51,65,36,"isExtended"],[71,61,65,46],[71,63,65,48,"disableAscii"],[71,75,65,60],[71,76,65,61],[71,79,66,14],[71,84,66,19],[71,85,66,20,"toHuman"],[71,92,66,27],[71,93,66,28,"isExtended"],[71,103,66,38],[71,105,66,40,"disableAscii"],[71,117,66,52],[71,118,66,53],[72,4,67,4],[73,4,68,4],[74,0,69,0],[75,0,70,0],[76,4,71,4,"toPrimitive"],[76,15,71,15,"toPrimitive"],[76,16,71,16,"disableAscii"],[76,28,71,28],[76,30,71,30],[77,6,72,8],[77,13,72,15],[77,17,72,19],[77,18,72,20],[77,19,72,21,"decoded"],[77,26,72,28],[77,29,73,14],[77,33,73,18],[77,34,73,19],[77,35,73,20,"decoded"],[77,42,73,27],[77,43,73,28,"toPrimitive"],[77,54,73,39],[77,55,73,40,"disableAscii"],[77,67,73,52],[77,68,73,53],[77,71,74,14],[77,76,74,19],[77,77,74,20,"toPrimitive"],[77,88,74,31],[77,89,74,32,"disableAscii"],[77,101,74,44],[77,102,74,45],[78,4,75,4],[79,4,76,4],[80,0,77,0],[81,0,78,0],[82,4,79,4,"toRawType"],[82,13,79,13,"toRawType"],[82,14,79,13],[82,16,79,16],[83,6,80,8],[83,13,80,15],[83,16,80,18],[83,20,80,22],[83,21,80,23],[83,22,80,24,"opaqueName"],[83,32,80,34],[83,36,80,38],[83,40,80,42],[83,41,80,43,"registry"],[83,49,80,51],[83,50,80,52,"getClassName"],[83,62,80,64],[83,63,80,65],[83,67,80,69],[83,68,80,70],[83,69,80,71,"Type"],[83,73,80,75],[83,74,80,76],[83,79,80,81],[83,83,80,85],[83,84,80,86],[83,85,80,87,"decoded"],[83,92,80,94],[83,95,80,97],[83,99,80,101],[83,100,80,102],[83,101,80,103,"decoded"],[83,108,80,110],[83,109,80,111,"toRawType"],[83,118,80,120],[83,119,80,121],[83,120,80,122],[83,123,80,125],[83,127,80,129],[83,131,80,133],[83,132,80,134],[83,133,80,135,"Type"],[83,137,80,139],[83,138,80,140],[83,142,80,144],[83,143,80,145,"registry"],[83,151,80,153],[83,152,80,154],[83,153,80,155,"toRawType"],[83,162,80,164],[83,163,80,165],[83,164,80,166],[83,165,80,167],[83,168,80,170],[84,4,81,4],[85,4,82,4],[86,0,83,0],[87,0,84,0],[88,4,85,4,"toString"],[88,12,85,12,"toString"],[88,13,85,12],[88,15,85,15],[89,6,86,8],[89,13,86,15],[89,17,86,19],[89,18,86,20],[89,19,86,21,"decoded"],[89,26,86,28],[89,29,87,14],[89,33,87,18],[89,34,87,19],[89,35,87,20,"decoded"],[89,42,87,27],[89,43,87,28,"toString"],[89,51,87,36],[89,52,87,37],[89,53,87,38],[89,56,88,14],[89,61,88,19],[89,62,88,20,"toString"],[89,70,88,28],[89,71,88,29],[89,72,88,30],[90,4,89,4],[91,4,90,4],[92,0,91,0],[93,0,92,0],[94,4,93,4,"unwrap"],[94,10,93,10,"unwrap"],[94,11,93,10],[94,13,93,13],[95,6,94,8],[95,10,94,12],[95,11,94,13],[95,15,94,17],[95,16,94,18],[95,17,94,19,"decoded"],[95,24,94,26],[95,26,94,28],[96,8,95,12],[96,14,95,18],[96,18,95,22,"Error"],[96,23,95,27],[96,24,95,28],[96,27,95,31],[96,31,95,35],[96,32,95,36],[96,33,95,37,"opaqueName"],[96,43,95,47],[96,78,95,82],[96,79,95,83],[97,6,96,8],[98,6,97,8],[98,13,97,15],[98,17,97,19],[98,18,97,20],[98,19,97,21,"decoded"],[98,26,97,28],[99,4,98,4],[100,2,99,0],[101,0,99,1],[101,3]],"functionMap":{"names":["<global>","decodeRaw","WrapperKeepOpaque","constructor","_with","<anonymous>","get__isDecoded","inspect","toHuman","toPrimitive","toRawType","toString","unwrap"],"mappings":"AAA;ACI;CDiB;OEC;ICI;KDM;IEC;eCC;YFC;aEE;SDC;KFC;III;KJE;IKI;KLS;IMI;KNI;IOI;KPI;IQI;KRE;ISI;KTI;IUI;KVK;CFC"},"hasCjsExports":false},"type":"js/module"}]} |