mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 05:21:02 +00:00
1 line
8.9 KiB
Plaintext
1 line
8.9 KiB
Plaintext
{"dependencies":[{"name":"./concat.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"odorn1ButhcqU0mfPlS5pxFJMfw=","exportNames":["*"],"imports":1}},{"name":"./eq.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":32,"index":79}}],"key":"QWopSL5eiKdmjABDYGHDVUXqfuc=","exportNames":["*"],"imports":1}},{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":80},"end":{"line":3,"column":38,"index":118}}],"key":"3bOyH77e/8Wc8K55bqHxvmXdM0A=","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, \"U8A_WRAP_ETHEREUM\", {\n enumerable: true,\n get: function () {\n return U8A_WRAP_ETHEREUM;\n }\n });\n Object.defineProperty(exports, \"U8A_WRAP_PREFIX\", {\n enumerable: true,\n get: function () {\n return U8A_WRAP_PREFIX;\n }\n });\n Object.defineProperty(exports, \"U8A_WRAP_POSTFIX\", {\n enumerable: true,\n get: function () {\n return U8A_WRAP_POSTFIX;\n }\n });\n exports.u8aIsWrapped = u8aIsWrapped;\n exports.u8aUnwrapBytes = u8aUnwrapBytes;\n exports.u8aWrapBytes = u8aWrapBytes;\n var _concatJs = require(_dependencyMap[0], \"./concat.js\");\n var _eqJs = require(_dependencyMap[1], \"./eq.js\");\n var _toU8aJs = require(_dependencyMap[2], \"./toU8a.js\");\n /** @internal */\n const U8A_WRAP_ETHEREUM = /*#__PURE__*/(0, _toU8aJs.u8aToU8a)('\\x19Ethereum Signed Message:\\n');\n /** @internal */\n const U8A_WRAP_PREFIX = /*#__PURE__*/(0, _toU8aJs.u8aToU8a)('<Bytes>');\n /** @internal */\n const U8A_WRAP_POSTFIX = /*#__PURE__*/(0, _toU8aJs.u8aToU8a)('</Bytes>');\n const WRAP_LEN = U8A_WRAP_PREFIX.length + U8A_WRAP_POSTFIX.length;\n /** @internal */\n function u8aIsWrapped(u8a, withEthereum) {\n return u8a.length >= WRAP_LEN && (0, _eqJs.u8aEq)(u8a.subarray(0, U8A_WRAP_PREFIX.length), U8A_WRAP_PREFIX) && (0, _eqJs.u8aEq)(u8a.slice(-U8A_WRAP_POSTFIX.length), U8A_WRAP_POSTFIX) || withEthereum && u8a.length >= U8A_WRAP_ETHEREUM.length && (0, _eqJs.u8aEq)(u8a.subarray(0, U8A_WRAP_ETHEREUM.length), U8A_WRAP_ETHEREUM);\n }\n /**\n * @name u8aUnwrapBytes\n * @description Removes all <Bytes>...</Bytes> wrappers from the supplied value\n */\n function u8aUnwrapBytes(bytes) {\n const u8a = (0, _toU8aJs.u8aToU8a)(bytes);\n // we don't want to unwrap Ethereum-style wraps\n return u8aIsWrapped(u8a, false) ? u8a.subarray(U8A_WRAP_PREFIX.length, u8a.length - U8A_WRAP_POSTFIX.length) : u8a;\n }\n /**\n * @name u8aWrapBytes\n * @description\n * Adds a <Bytes>...</Bytes> wrapper to the supplied value, if\n * - We don't already have a Bytes wrapper\n * - The message is not an Ethereum-style message\n */\n function u8aWrapBytes(bytes) {\n const u8a = (0, _toU8aJs.u8aToU8a)(bytes);\n return u8aIsWrapped(u8a, true) ? u8a : (0, _concatJs.u8aConcatStrict)([U8A_WRAP_PREFIX, u8a, U8A_WRAP_POSTFIX]);\n }\n});","lineCount":62,"map":[[7,2,5,0,"Object"],[7,8,5,0],[7,9,5,0,"defineProperty"],[7,23,5,0],[7,24,5,0,"exports"],[7,31,5,0],[8,4,5,0,"enumerable"],[8,14,5,0],[9,4,5,0,"get"],[9,7,5,0],[9,18,5,0,"get"],[9,19,5,0],[10,6,5,0],[10,13,5,0,"U8A_WRAP_ETHEREUM"],[10,30,5,0],[11,4,5,0],[12,2,5,0],[13,2,7,0,"Object"],[13,8,7,0],[13,9,7,0,"defineProperty"],[13,23,7,0],[13,24,7,0,"exports"],[13,31,7,0],[14,4,7,0,"enumerable"],[14,14,7,0],[15,4,7,0,"get"],[15,7,7,0],[15,18,7,0,"get"],[15,19,7,0],[16,6,7,0],[16,13,7,0,"U8A_WRAP_PREFIX"],[16,28,7,0],[17,4,7,0],[18,2,7,0],[19,2,9,0,"Object"],[19,8,9,0],[19,9,9,0,"defineProperty"],[19,23,9,0],[19,24,9,0,"exports"],[19,31,9,0],[20,4,9,0,"enumerable"],[20,14,9,0],[21,4,9,0,"get"],[21,7,9,0],[21,18,9,0,"get"],[21,19,9,0],[22,6,9,0],[22,13,9,0,"U8A_WRAP_POSTFIX"],[22,29,9,0],[23,4,9,0],[24,2,9,0],[25,2,12,0,"exports"],[25,9,12,0],[25,10,12,0,"u8aIsWrapped"],[25,22,12,0],[25,25,12,0,"u8aIsWrapped"],[25,37,12,0],[26,2,24,0,"exports"],[26,9,24,0],[26,10,24,0,"u8aUnwrapBytes"],[26,24,24,0],[26,27,24,0,"u8aUnwrapBytes"],[26,41,24,0],[27,2,38,0,"exports"],[27,9,38,0],[27,10,38,0,"u8aWrapBytes"],[27,22,38,0],[27,25,38,0,"u8aWrapBytes"],[27,37,38,0],[28,2,1,0],[28,6,1,0,"_concatJs"],[28,15,1,0],[28,18,1,0,"require"],[28,25,1,0],[28,26,1,0,"_dependencyMap"],[28,40,1,0],[29,2,2,0],[29,6,2,0,"_eqJs"],[29,11,2,0],[29,14,2,0,"require"],[29,21,2,0],[29,22,2,0,"_dependencyMap"],[29,36,2,0],[30,2,3,0],[30,6,3,0,"_toU8aJs"],[30,14,3,0],[30,17,3,0,"require"],[30,24,3,0],[30,25,3,0,"_dependencyMap"],[30,39,3,0],[31,2,4,0],[32,2,5,7],[32,8,5,13,"U8A_WRAP_ETHEREUM"],[32,25,5,30],[32,28,5,33],[32,41,5,47],[32,45,5,47,"u8aToU8a"],[32,53,5,55],[32,54,5,55,"u8aToU8a"],[32,62,5,55],[32,64,5,56],[32,96,5,88],[32,97,5,89],[33,2,6,0],[34,2,7,7],[34,8,7,13,"U8A_WRAP_PREFIX"],[34,23,7,28],[34,26,7,31],[34,39,7,45],[34,43,7,45,"u8aToU8a"],[34,51,7,53],[34,52,7,53,"u8aToU8a"],[34,60,7,53],[34,62,7,54],[34,71,7,63],[34,72,7,64],[35,2,8,0],[36,2,9,7],[36,8,9,13,"U8A_WRAP_POSTFIX"],[36,24,9,29],[36,27,9,32],[36,40,9,46],[36,44,9,46,"u8aToU8a"],[36,52,9,54],[36,53,9,54,"u8aToU8a"],[36,61,9,54],[36,63,9,55],[36,73,9,65],[36,74,9,66],[37,2,10,0],[37,8,10,6,"WRAP_LEN"],[37,16,10,14],[37,19,10,17,"U8A_WRAP_PREFIX"],[37,34,10,32],[37,35,10,33,"length"],[37,41,10,39],[37,44,10,42,"U8A_WRAP_POSTFIX"],[37,60,10,58],[37,61,10,59,"length"],[37,67,10,65],[38,2,11,0],[39,2,12,7],[39,11,12,16,"u8aIsWrapped"],[39,23,12,28,"u8aIsWrapped"],[39,24,12,29,"u8a"],[39,27,12,32],[39,29,12,34,"withEthereum"],[39,41,12,46],[39,43,12,48],[40,4,13,4],[40,11,13,13,"u8a"],[40,14,13,16],[40,15,13,17,"length"],[40,21,13,23],[40,25,13,27,"WRAP_LEN"],[40,33,13,35],[40,37,14,8],[40,41,14,8,"u8aEq"],[40,46,14,13],[40,47,14,13,"u8aEq"],[40,52,14,13],[40,54,14,14,"u8a"],[40,57,14,17],[40,58,14,18,"subarray"],[40,66,14,26],[40,67,14,27],[40,68,14,28],[40,70,14,30,"U8A_WRAP_PREFIX"],[40,85,14,45],[40,86,14,46,"length"],[40,92,14,52],[40,93,14,53],[40,95,14,55,"U8A_WRAP_PREFIX"],[40,110,14,70],[40,111,14,71],[40,115,15,8],[40,119,15,8,"u8aEq"],[40,124,15,13],[40,125,15,13,"u8aEq"],[40,130,15,13],[40,132,15,14,"u8a"],[40,135,15,17],[40,136,15,18,"slice"],[40,141,15,23],[40,142,15,24],[40,143,15,25,"U8A_WRAP_POSTFIX"],[40,159,15,41],[40,160,15,42,"length"],[40,166,15,48],[40,167,15,49],[40,169,15,51,"U8A_WRAP_POSTFIX"],[40,185,15,67],[40,186,15,68],[40,190,16,9,"withEthereum"],[40,202,16,21],[40,206,17,12,"u8a"],[40,209,17,15],[40,210,17,16,"length"],[40,216,17,22],[40,220,17,26,"U8A_WRAP_ETHEREUM"],[40,237,17,43],[40,238,17,44,"length"],[40,244,17,50],[40,248,18,12],[40,252,18,12,"u8aEq"],[40,257,18,17],[40,258,18,17,"u8aEq"],[40,263,18,17],[40,265,18,18,"u8a"],[40,268,18,21],[40,269,18,22,"subarray"],[40,277,18,30],[40,278,18,31],[40,279,18,32],[40,281,18,34,"U8A_WRAP_ETHEREUM"],[40,298,18,51],[40,299,18,52,"length"],[40,305,18,58],[40,306,18,59],[40,308,18,61,"U8A_WRAP_ETHEREUM"],[40,325,18,78],[40,326,18,80],[41,2,19,0],[42,2,20,0],[43,0,21,0],[44,0,22,0],[45,0,23,0],[46,2,24,7],[46,11,24,16,"u8aUnwrapBytes"],[46,25,24,30,"u8aUnwrapBytes"],[46,26,24,31,"bytes"],[46,31,24,36],[46,33,24,38],[47,4,25,4],[47,10,25,10,"u8a"],[47,13,25,13],[47,16,25,16],[47,20,25,16,"u8aToU8a"],[47,28,25,24],[47,29,25,24,"u8aToU8a"],[47,37,25,24],[47,39,25,25,"bytes"],[47,44,25,30],[47,45,25,31],[48,4,26,4],[49,4,27,4],[49,11,27,11,"u8aIsWrapped"],[49,23,27,23],[49,24,27,24,"u8a"],[49,27,27,27],[49,29,27,29],[49,34,27,34],[49,35,27,35],[49,38,28,10,"u8a"],[49,41,28,13],[49,42,28,14,"subarray"],[49,50,28,22],[49,51,28,23,"U8A_WRAP_PREFIX"],[49,66,28,38],[49,67,28,39,"length"],[49,73,28,45],[49,75,28,47,"u8a"],[49,78,28,50],[49,79,28,51,"length"],[49,85,28,57],[49,88,28,60,"U8A_WRAP_POSTFIX"],[49,104,28,76],[49,105,28,77,"length"],[49,111,28,83],[49,112,28,84],[49,115,29,10,"u8a"],[49,118,29,13],[50,2,30,0],[51,2,31,0],[52,0,32,0],[53,0,33,0],[54,0,34,0],[55,0,35,0],[56,0,36,0],[57,0,37,0],[58,2,38,7],[58,11,38,16,"u8aWrapBytes"],[58,23,38,28,"u8aWrapBytes"],[58,24,38,29,"bytes"],[58,29,38,34],[58,31,38,36],[59,4,39,4],[59,10,39,10,"u8a"],[59,13,39,13],[59,16,39,16],[59,20,39,16,"u8aToU8a"],[59,28,39,24],[59,29,39,24,"u8aToU8a"],[59,37,39,24],[59,39,39,25,"bytes"],[59,44,39,30],[59,45,39,31],[60,4,40,4],[60,11,40,11,"u8aIsWrapped"],[60,23,40,23],[60,24,40,24,"u8a"],[60,27,40,27],[60,29,40,29],[60,33,40,33],[60,34,40,34],[60,37,41,10,"u8a"],[60,40,41,13],[60,43,42,10],[60,47,42,10,"u8aConcatStrict"],[60,56,42,25],[60,57,42,25,"u8aConcatStrict"],[60,72,42,25],[60,74,42,26],[60,75,42,27,"U8A_WRAP_PREFIX"],[60,90,42,42],[60,92,42,44,"u8a"],[60,95,42,47],[60,97,42,49,"U8A_WRAP_POSTFIX"],[60,113,42,65],[60,114,42,66],[60,115,42,67],[61,2,43,0],[62,0,43,1],[62,3]],"functionMap":{"names":["<global>","u8aIsWrapped","u8aUnwrapBytes","u8aWrapBytes"],"mappings":"AAA;OCW;CDO;OEK;CFM;OGQ;CHK"},"hasCjsExports":false},"type":"js/module"}]} |