mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
5.8 KiB
Plaintext
1 line
5.8 KiB
Plaintext
{"dependencies":[{"name":"@babel/runtime/helpers/asyncToGenerator","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"YisBBiy2Xm9DEVdFebZ2nbgAHBo=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _asyncToGenerator = require(_dependencyMap[0], \"@babel/runtime/helpers/asyncToGenerator\").default;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.createWasmFn = createWasmFn;\n /**\n * @name createWasmFn\n * @description\n * Create a WASM (or ASM.js) creator interface based on the supplied information.\n *\n * It will attempt to create a WASM interface first and if this fails or is not available in\n * the environment, will fallback to attempting to create an ASM.js interface.\n */\n function createWasmFn(root, wasmBytes, asmFn) {\n return /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (wbg) {\n var result = {\n error: null,\n type: 'none',\n wasm: null\n };\n try {\n if (!wasmBytes?.length) {\n throw new Error('No WebAssembly provided for initialization');\n } else if (typeof WebAssembly !== 'object' || typeof WebAssembly.instantiate !== 'function') {\n throw new Error('WebAssembly is not available in your environment');\n }\n var source = yield WebAssembly.instantiate(wasmBytes, {\n wbg\n });\n result.wasm = source.instance.exports;\n result.type = 'wasm';\n } catch (error) {\n // if we have a valid supplied asm.js, return that\n if (typeof asmFn === 'function') {\n result.wasm = asmFn(wbg);\n result.type = 'asm';\n } else {\n result.error = `FATAL: Unable to initialize @polkadot/wasm-${root}:: ${error.message}`;\n console.error(result.error);\n }\n }\n return result;\n });\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }();\n }\n});","lineCount":53,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13],[4,6,1,13,"_asyncToGenerator"],[4,23,1,13],[4,26,1,13,"require"],[4,33,1,13],[4,34,1,13,"_dependencyMap"],[4,48,1,13],[4,96,1,13,"default"],[4,103,1,13],[5,2,2,0,"Object"],[5,8,2,6],[5,9,2,7,"defineProperty"],[5,23,2,21],[5,24,2,22,"exports"],[5,31,2,29],[5,33,2,31],[5,45,2,43],[5,47,2,45],[6,4,2,47,"value"],[6,9,2,52],[6,11,2,54],[7,2,2,59],[7,3,2,60],[7,4,2,61],[8,2,3,0,"exports"],[8,9,3,7],[8,10,3,8,"createWasmFn"],[8,22,3,20],[8,25,3,23,"createWasmFn"],[8,37,3,35],[9,2,4,0],[10,0,5,0],[11,0,6,0],[12,0,7,0],[13,0,8,0],[14,0,9,0],[15,0,10,0],[16,0,11,0],[17,2,12,0],[17,11,12,9,"createWasmFn"],[17,23,12,21,"createWasmFn"],[17,24,12,22,"root"],[17,28,12,26],[17,30,12,28,"wasmBytes"],[17,39,12,37],[17,41,12,39,"asmFn"],[17,46,12,44],[17,48,12,46],[18,4,13,4],[19,6,13,4],[19,10,13,4,"_ref"],[19,14,13,4],[19,17,13,4,"_asyncToGenerator"],[19,34,13,4],[19,35,13,11],[19,46,13,18,"wbg"],[19,49,13,21],[19,51,13,26],[20,8,14,8],[20,12,14,14,"result"],[20,18,14,20],[20,21,14,23],[21,10,15,12,"error"],[21,15,15,17],[21,17,15,19],[21,21,15,23],[22,10,16,12,"type"],[22,14,16,16],[22,16,16,18],[22,22,16,24],[23,10,17,12,"wasm"],[23,14,17,16],[23,16,17,18],[24,8,18,8],[24,9,18,9],[25,8,19,8],[25,12,19,12],[26,10,20,12],[26,14,20,16],[26,15,20,17,"wasmBytes"],[26,24,20,26],[26,26,20,28,"length"],[26,32,20,34],[26,34,20,36],[27,12,21,16],[27,18,21,22],[27,22,21,26,"Error"],[27,27,21,31],[27,28,21,32],[27,72,21,76],[27,73,21,77],[28,10,22,12],[28,11,22,13],[28,17,23,17],[28,21,23,21],[28,28,23,28,"WebAssembly"],[28,39,23,39],[28,44,23,44],[28,52,23,52],[28,56,23,56],[28,63,23,63,"WebAssembly"],[28,74,23,74],[28,75,23,75,"instantiate"],[28,86,23,86],[28,91,23,91],[28,101,23,101],[28,103,23,103],[29,12,24,16],[29,18,24,22],[29,22,24,26,"Error"],[29,27,24,31],[29,28,24,32],[29,78,24,82],[29,79,24,83],[30,10,25,12],[31,10,26,12],[31,14,26,18,"source"],[31,20,26,24],[31,29,26,33,"WebAssembly"],[31,40,26,44],[31,41,26,45,"instantiate"],[31,52,26,56],[31,53,26,57,"wasmBytes"],[31,62,26,66],[31,64,26,68],[32,12,26,70,"wbg"],[33,10,26,74],[33,11,26,75],[33,12,26,76],[34,10,27,12,"result"],[34,16,27,18],[34,17,27,19,"wasm"],[34,21,27,23],[34,24,27,26,"source"],[34,30,27,32],[34,31,27,33,"instance"],[34,39,27,41],[34,40,27,42,"exports"],[34,47,27,49],[35,10,28,12,"result"],[35,16,28,18],[35,17,28,19,"type"],[35,21,28,23],[35,24,28,26],[35,30,28,32],[36,8,29,8],[36,9,29,9],[36,10,30,8],[36,17,30,15,"error"],[36,22,30,20],[36,24,30,22],[37,10,31,12],[38,10,32,12],[38,14,32,16],[38,21,32,23,"asmFn"],[38,26,32,28],[38,31,32,33],[38,41,32,43],[38,43,32,45],[39,12,33,16,"result"],[39,18,33,22],[39,19,33,23,"wasm"],[39,23,33,27],[39,26,33,30,"asmFn"],[39,31,33,35],[39,32,33,36,"wbg"],[39,35,33,39],[39,36,33,40],[40,12,34,16,"result"],[40,18,34,22],[40,19,34,23,"type"],[40,23,34,27],[40,26,34,30],[40,31,34,35],[41,10,35,12],[41,11,35,13],[41,17,36,17],[42,12,37,16,"result"],[42,18,37,22],[42,19,37,23,"error"],[42,24,37,28],[42,27,37,31],[42,73,37,77,"root"],[42,77,37,81],[42,83,37,87,"error"],[42,88,37,92],[42,89,37,93,"message"],[42,96,37,100],[42,98,37,102],[43,12,38,16,"console"],[43,19,38,23],[43,20,38,24,"error"],[43,25,38,29],[43,26,38,30,"result"],[43,32,38,36],[43,33,38,37,"error"],[43,38,38,42],[43,39,38,43],[44,10,39,12],[45,8,40,8],[46,8,41,8],[46,15,41,15,"result"],[46,21,41,21],[47,6,42,4],[47,7,42,5],[48,6,42,5],[48,23,42,5,"_x"],[48,25,42,5],[49,8,42,5],[49,15,42,5,"_ref"],[49,19,42,5],[49,20,42,5,"apply"],[49,25,42,5],[49,32,42,5,"arguments"],[49,41,42,5],[50,6,42,5],[51,4,42,5],[52,2,43,0],[53,0,43,1],[53,3]],"functionMap":{"names":["<global>","createWasmFn","<anonymous>"],"mappings":"AAA;ACW;WCC;KD6B;CDC"},"hasCjsExports":true},"type":"js/module"}]} |