mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
9.3 KiB
Plaintext
1 line
9.3 KiB
Plaintext
{"dependencies":[{"name":"./concat.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":20,"index":301},"end":{"line":7,"column":42,"index":323}}],"key":"dVxzDD5BGtqVOeJDtaytmf8Tfpc=","exportNames":["*"],"imports":1}},{"name":"./eq.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":16,"index":341},"end":{"line":8,"column":34,"index":359}}],"key":"icEBvmbpruSUISD0t45PLrJg47w=","exportNames":["*"],"imports":1}},{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":9,"column":19,"index":380},"end":{"line":9,"column":40,"index":401}}],"key":"Tcj3fJY+iCFcEHg4eIK/gqKeizo=","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.U8A_WRAP_POSTFIX = exports.U8A_WRAP_PREFIX = exports.U8A_WRAP_ETHEREUM = void 0;\n exports.u8aIsWrapped = u8aIsWrapped;\n exports.u8aUnwrapBytes = u8aUnwrapBytes;\n exports.u8aWrapBytes = u8aWrapBytes;\n const concat_js_1 = require(_dependencyMap[0], \"./concat.js\");\n const eq_js_1 = require(_dependencyMap[1], \"./eq.js\");\n const toU8a_js_1 = require(_dependencyMap[2], \"./toU8a.js\");\n /** @internal */\n exports.U8A_WRAP_ETHEREUM = (0, toU8a_js_1.u8aToU8a)('\\x19Ethereum Signed Message:\\n');\n /** @internal */\n exports.U8A_WRAP_PREFIX = (0, toU8a_js_1.u8aToU8a)('<Bytes>');\n /** @internal */\n exports.U8A_WRAP_POSTFIX = (0, toU8a_js_1.u8aToU8a)('</Bytes>');\n const WRAP_LEN = exports.U8A_WRAP_PREFIX.length + exports.U8A_WRAP_POSTFIX.length;\n /** @internal */\n function u8aIsWrapped(u8a, withEthereum) {\n return u8a.length >= WRAP_LEN && (0, eq_js_1.u8aEq)(u8a.subarray(0, exports.U8A_WRAP_PREFIX.length), exports.U8A_WRAP_PREFIX) && (0, eq_js_1.u8aEq)(u8a.slice(-exports.U8A_WRAP_POSTFIX.length), exports.U8A_WRAP_POSTFIX) || withEthereum && u8a.length >= exports.U8A_WRAP_ETHEREUM.length && (0, eq_js_1.u8aEq)(u8a.subarray(0, exports.U8A_WRAP_ETHEREUM.length), exports.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, toU8a_js_1.u8aToU8a)(bytes);\n // we don't want to unwrap Ethereum-style wraps\n return u8aIsWrapped(u8a, false) ? u8a.subarray(exports.U8A_WRAP_PREFIX.length, u8a.length - exports.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, toU8a_js_1.u8aToU8a)(bytes);\n return u8aIsWrapped(u8a, true) ? u8a : (0, concat_js_1.u8aConcatStrict)([exports.U8A_WRAP_PREFIX, u8a, exports.U8A_WRAP_POSTFIX]);\n }\n});","lineCount":45,"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,"U8A_WRAP_POSTFIX"],[7,26,3,24],[7,29,3,27,"exports"],[7,36,3,34],[7,37,3,35,"U8A_WRAP_PREFIX"],[7,52,3,50],[7,55,3,53,"exports"],[7,62,3,60],[7,63,3,61,"U8A_WRAP_ETHEREUM"],[7,80,3,78],[7,83,3,81],[7,88,3,86],[7,89,3,87],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"u8aIsWrapped"],[8,22,4,20],[8,25,4,23,"u8aIsWrapped"],[8,37,4,35],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"u8aUnwrapBytes"],[9,24,5,22],[9,27,5,25,"u8aUnwrapBytes"],[9,41,5,39],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"u8aWrapBytes"],[10,22,6,20],[10,25,6,23,"u8aWrapBytes"],[10,37,6,35],[11,2,7,0],[11,8,7,6,"concat_js_1"],[11,19,7,17],[11,22,7,20,"require"],[11,29,7,27],[11,30,7,27,"_dependencyMap"],[11,44,7,27],[11,62,7,41],[11,63,7,42],[12,2,8,0],[12,8,8,6,"eq_js_1"],[12,15,8,13],[12,18,8,16,"require"],[12,25,8,23],[12,26,8,23,"_dependencyMap"],[12,40,8,23],[12,54,8,33],[12,55,8,34],[13,2,9,0],[13,8,9,6,"toU8a_js_1"],[13,18,9,16],[13,21,9,19,"require"],[13,28,9,26],[13,29,9,26,"_dependencyMap"],[13,43,9,26],[13,60,9,39],[13,61,9,40],[14,2,10,0],[15,2,11,0,"exports"],[15,9,11,7],[15,10,11,8,"U8A_WRAP_ETHEREUM"],[15,27,11,25],[15,30,11,28],[15,31,11,29],[15,32,11,30],[15,34,11,32,"toU8a_js_1"],[15,44,11,42],[15,45,11,43,"u8aToU8a"],[15,53,11,51],[15,55,11,53],[15,87,11,85],[15,88,11,86],[16,2,12,0],[17,2,13,0,"exports"],[17,9,13,7],[17,10,13,8,"U8A_WRAP_PREFIX"],[17,25,13,23],[17,28,13,26],[17,29,13,27],[17,30,13,28],[17,32,13,30,"toU8a_js_1"],[17,42,13,40],[17,43,13,41,"u8aToU8a"],[17,51,13,49],[17,53,13,51],[17,62,13,60],[17,63,13,61],[18,2,14,0],[19,2,15,0,"exports"],[19,9,15,7],[19,10,15,8,"U8A_WRAP_POSTFIX"],[19,26,15,24],[19,29,15,27],[19,30,15,28],[19,31,15,29],[19,33,15,31,"toU8a_js_1"],[19,43,15,41],[19,44,15,42,"u8aToU8a"],[19,52,15,50],[19,54,15,52],[19,64,15,62],[19,65,15,63],[20,2,16,0],[20,8,16,6,"WRAP_LEN"],[20,16,16,14],[20,19,16,17,"exports"],[20,26,16,24],[20,27,16,25,"U8A_WRAP_PREFIX"],[20,42,16,40],[20,43,16,41,"length"],[20,49,16,47],[20,52,16,50,"exports"],[20,59,16,57],[20,60,16,58,"U8A_WRAP_POSTFIX"],[20,76,16,74],[20,77,16,75,"length"],[20,83,16,81],[21,2,17,0],[22,2,18,0],[22,11,18,9,"u8aIsWrapped"],[22,23,18,21,"u8aIsWrapped"],[22,24,18,22,"u8a"],[22,27,18,25],[22,29,18,27,"withEthereum"],[22,41,18,39],[22,43,18,41],[23,4,19,4],[23,11,19,13,"u8a"],[23,14,19,16],[23,15,19,17,"length"],[23,21,19,23],[23,25,19,27,"WRAP_LEN"],[23,33,19,35],[23,37,20,8],[23,38,20,9],[23,39,20,10],[23,41,20,12,"eq_js_1"],[23,48,20,19],[23,49,20,20,"u8aEq"],[23,54,20,25],[23,56,20,27,"u8a"],[23,59,20,30],[23,60,20,31,"subarray"],[23,68,20,39],[23,69,20,40],[23,70,20,41],[23,72,20,43,"exports"],[23,79,20,50],[23,80,20,51,"U8A_WRAP_PREFIX"],[23,95,20,66],[23,96,20,67,"length"],[23,102,20,73],[23,103,20,74],[23,105,20,76,"exports"],[23,112,20,83],[23,113,20,84,"U8A_WRAP_PREFIX"],[23,128,20,99],[23,129,20,100],[23,133,21,8],[23,134,21,9],[23,135,21,10],[23,137,21,12,"eq_js_1"],[23,144,21,19],[23,145,21,20,"u8aEq"],[23,150,21,25],[23,152,21,27,"u8a"],[23,155,21,30],[23,156,21,31,"slice"],[23,161,21,36],[23,162,21,37],[23,163,21,38,"exports"],[23,170,21,45],[23,171,21,46,"U8A_WRAP_POSTFIX"],[23,187,21,62],[23,188,21,63,"length"],[23,194,21,69],[23,195,21,70],[23,197,21,72,"exports"],[23,204,21,79],[23,205,21,80,"U8A_WRAP_POSTFIX"],[23,221,21,96],[23,222,21,97],[23,226,22,9,"withEthereum"],[23,238,22,21],[23,242,23,12,"u8a"],[23,245,23,15],[23,246,23,16,"length"],[23,252,23,22],[23,256,23,26,"exports"],[23,263,23,33],[23,264,23,34,"U8A_WRAP_ETHEREUM"],[23,281,23,51],[23,282,23,52,"length"],[23,288,23,58],[23,292,24,12],[23,293,24,13],[23,294,24,14],[23,296,24,16,"eq_js_1"],[23,303,24,23],[23,304,24,24,"u8aEq"],[23,309,24,29],[23,311,24,31,"u8a"],[23,314,24,34],[23,315,24,35,"subarray"],[23,323,24,43],[23,324,24,44],[23,325,24,45],[23,327,24,47,"exports"],[23,334,24,54],[23,335,24,55,"U8A_WRAP_ETHEREUM"],[23,352,24,72],[23,353,24,73,"length"],[23,359,24,79],[23,360,24,80],[23,362,24,82,"exports"],[23,369,24,89],[23,370,24,90,"U8A_WRAP_ETHEREUM"],[23,387,24,107],[23,388,24,109],[24,2,25,0],[25,2,26,0],[26,0,27,0],[27,0,28,0],[28,0,29,0],[29,2,30,0],[29,11,30,9,"u8aUnwrapBytes"],[29,25,30,23,"u8aUnwrapBytes"],[29,26,30,24,"bytes"],[29,31,30,29],[29,33,30,31],[30,4,31,4],[30,10,31,10,"u8a"],[30,13,31,13],[30,16,31,16],[30,17,31,17],[30,18,31,18],[30,20,31,20,"toU8a_js_1"],[30,30,31,30],[30,31,31,31,"u8aToU8a"],[30,39,31,39],[30,41,31,41,"bytes"],[30,46,31,46],[30,47,31,47],[31,4,32,4],[32,4,33,4],[32,11,33,11,"u8aIsWrapped"],[32,23,33,23],[32,24,33,24,"u8a"],[32,27,33,27],[32,29,33,29],[32,34,33,34],[32,35,33,35],[32,38,34,10,"u8a"],[32,41,34,13],[32,42,34,14,"subarray"],[32,50,34,22],[32,51,34,23,"exports"],[32,58,34,30],[32,59,34,31,"U8A_WRAP_PREFIX"],[32,74,34,46],[32,75,34,47,"length"],[32,81,34,53],[32,83,34,55,"u8a"],[32,86,34,58],[32,87,34,59,"length"],[32,93,34,65],[32,96,34,68,"exports"],[32,103,34,75],[32,104,34,76,"U8A_WRAP_POSTFIX"],[32,120,34,92],[32,121,34,93,"length"],[32,127,34,99],[32,128,34,100],[32,131,35,10,"u8a"],[32,134,35,13],[33,2,36,0],[34,2,37,0],[35,0,38,0],[36,0,39,0],[37,0,40,0],[38,0,41,0],[39,0,42,0],[40,0,43,0],[41,2,44,0],[41,11,44,9,"u8aWrapBytes"],[41,23,44,21,"u8aWrapBytes"],[41,24,44,22,"bytes"],[41,29,44,27],[41,31,44,29],[42,4,45,4],[42,10,45,10,"u8a"],[42,13,45,13],[42,16,45,16],[42,17,45,17],[42,18,45,18],[42,20,45,20,"toU8a_js_1"],[42,30,45,30],[42,31,45,31,"u8aToU8a"],[42,39,45,39],[42,41,45,41,"bytes"],[42,46,45,46],[42,47,45,47],[43,4,46,4],[43,11,46,11,"u8aIsWrapped"],[43,23,46,23],[43,24,46,24,"u8a"],[43,27,46,27],[43,29,46,29],[43,33,46,33],[43,34,46,34],[43,37,47,10,"u8a"],[43,40,47,13],[43,43,48,10],[43,44,48,11],[43,45,48,12],[43,47,48,14,"concat_js_1"],[43,58,48,25],[43,59,48,26,"u8aConcatStrict"],[43,74,48,41],[43,76,48,43],[43,77,48,44,"exports"],[43,84,48,51],[43,85,48,52,"U8A_WRAP_PREFIX"],[43,100,48,67],[43,102,48,69,"u8a"],[43,105,48,72],[43,107,48,74,"exports"],[43,114,48,81],[43,115,48,82,"U8A_WRAP_POSTFIX"],[43,131,48,98],[43,132,48,99],[43,133,48,100],[44,2,49,0],[45,0,49,1],[45,3]],"functionMap":{"names":["<global>","u8aIsWrapped","u8aUnwrapBytes","u8aWrapBytes"],"mappings":"AAA;ACiB;CDO;AEK;CFM;AGQ;CHK"},"hasCjsExports":true},"type":"js/module"}]} |