UNPKG

astexplorer.app

Version:

https://astexplorer.net with ES Modules support and Hot Reloading

1 lines 11.2 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{"./node_modules/astexplorer-syn/astexplorer_syn.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/astexplorer-syn/astexplorer_syn_bg.js");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseFile", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["l"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseDeriveInput", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["k"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_new_5380b8466da66d40", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["b"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_push_40f26083fc767430", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["d"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_set_3d18e71d6176c248", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["e"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_seti_21fa77d3a58d8d26", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["f"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbindgen_string_new", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["j"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_new_0268fd1eb5110063", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["a"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbindgen_number_new", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["h"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_new_79518f3b66b733d8", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["c"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbg_setlinenumber_24c85c42ab346287", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["g"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__wbindgen_rethrow", function() { return _astexplorer_syn_bg_js__WEBPACK_IMPORTED_MODULE_0__["i"]; });\n\n\n\n\n//# sourceURL=webpack:///./node_modules/astexplorer-syn/astexplorer_syn.js?')},"./node_modules/astexplorer-syn/astexplorer_syn_bg.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('/* WEBPACK VAR INJECTION */(function(module) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return parseFile; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return parseDeriveInput; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __wbg_new_5380b8466da66d40; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __wbg_push_40f26083fc767430; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __wbg_set_3d18e71d6176c248; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __wbg_seti_21fa77d3a58d8d26; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __wbindgen_string_new; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __wbg_new_0268fd1eb5110063; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __wbindgen_number_new; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __wbg_new_79518f3b66b733d8; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __wbg_setlinenumber_24c85c42ab346287; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __wbindgen_rethrow; });\n/* harmony import */ var _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/astexplorer-syn/astexplorer_syn_bg.wasm");\n\n\nconst lTextDecoder = typeof TextDecoder === \'undefined\' ? (0, module.require)(\'util\').TextDecoder : TextDecoder;\n\nlet cachedTextDecoder = new lTextDecoder(\'utf-8\', { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nlet cachegetUint8Memory0 = null;\nfunction getUint8Memory0() {\n if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* memory */ "c"].buffer) {\n cachegetUint8Memory0 = new Uint8Array(_astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* memory */ "c"].buffer);\n }\n return cachegetUint8Memory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));\n}\n\nconst heap = new Array(32).fill(undefined);\n\nheap.push(undefined, null, true, false);\n\nlet heap_next = heap.length;\n\nfunction addHeapObject(obj) {\n if (heap_next === heap.length) heap.push(heap.length + 1);\n const idx = heap_next;\n heap_next = heap[idx];\n\n heap[idx] = obj;\n return idx;\n}\n\nfunction getObject(idx) { return heap[idx]; }\n\nfunction dropObject(idx) {\n if (idx < 36) return;\n heap[idx] = heap_next;\n heap_next = idx;\n}\n\nfunction takeObject(idx) {\n const ret = getObject(idx);\n dropObject(idx);\n return ret;\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst lTextEncoder = typeof TextEncoder === \'undefined\' ? (0, module.require)(\'util\').TextEncoder : TextEncoder;\n\nlet cachedTextEncoder = new lTextEncoder(\'utf-8\');\n\nconst encodeString = (typeof cachedTextEncoder.encodeInto === \'function\'\n ? function (arg, view) {\n return cachedTextEncoder.encodeInto(arg, view);\n}\n : function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n});\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length);\n getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len);\n\n const mem = getUint8Memory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3);\n const view = getUint8Memory0().subarray(ptr + offset, ptr + len);\n const ret = encodeString(arg, view);\n\n offset += ret.written;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n/**\n* @param {string} rust\n* @returns {any}\n*/\nfunction parseFile(rust) {\n var ptr0 = passStringToWasm0(rust, _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* __wbindgen_malloc */ "a"], _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* __wbindgen_realloc */ "b"]);\n var len0 = WASM_VECTOR_LEN;\n var ret = _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* parseFile */ "e"](ptr0, len0);\n return takeObject(ret);\n}\n\n/**\n* @param {string} rust\n* @returns {any}\n*/\nfunction parseDeriveInput(rust) {\n var ptr0 = passStringToWasm0(rust, _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* __wbindgen_malloc */ "a"], _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* __wbindgen_realloc */ "b"]);\n var len0 = WASM_VECTOR_LEN;\n var ret = _astexplorer_syn_bg_wasm__WEBPACK_IMPORTED_MODULE_0__[/* parseDeriveInput */ "d"](ptr0, len0);\n return takeObject(ret);\n}\n\nconst __wbg_new_5380b8466da66d40 = function() {\n var ret = new Array();\n return addHeapObject(ret);\n};\n\nconst __wbg_push_40f26083fc767430 = function(arg0, arg1) {\n getObject(arg0).push(takeObject(arg1));\n};\n\nconst __wbg_set_3d18e71d6176c248 = function(arg0, arg1, arg2, arg3) {\n getObject(arg0)[getStringFromWasm0(arg1, arg2)] = takeObject(arg3);\n};\n\nconst __wbg_seti_21fa77d3a58d8d26 = function(arg0, arg1, arg2) {\n getObject(arg0)[arg1 >>> 0] = takeObject(arg2);\n};\n\nconst __wbindgen_string_new = function(arg0, arg1) {\n var ret = getStringFromWasm0(arg0, arg1);\n return addHeapObject(ret);\n};\n\nconst __wbg_new_0268fd1eb5110063 = function() {\n var ret = new Object();\n return addHeapObject(ret);\n};\n\nconst __wbindgen_number_new = function(arg0) {\n var ret = arg0;\n return addHeapObject(ret);\n};\n\nconst __wbg_new_79518f3b66b733d8 = function(arg0, arg1) {\n var ret = new SyntaxError(getStringFromWasm0(arg0, arg1));\n return addHeapObject(ret);\n};\n\nconst __wbg_setlinenumber_24c85c42ab346287 = function(arg0, arg1) {\n getObject(arg0).lineNumber = arg1 >>> 0;\n};\n\nconst __wbindgen_rethrow = function(arg0) {\n throw takeObject(arg0);\n};\n\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("./node_modules/webpack/buildin/harmony-module.js")(module)))\n\n//# sourceURL=webpack:///./node_modules/astexplorer-syn/astexplorer_syn_bg.js?')},"./node_modules/astexplorer-syn/astexplorer_syn_bg.wasm":function(module,exports,__webpack_require__){eval('"use strict";\n// Instantiate WebAssembly module\nvar wasmExports = __webpack_require__.w[module.i];\n\n// export exports from WebAssembly module\nmodule.exports = wasmExports;\n// exec imports from WebAssembly module (for esm order)\n/* harmony import */ var m0 = __webpack_require__("./node_modules/astexplorer-syn/astexplorer_syn_bg.js");\n\n\n// exec wasm module\nwasmExports["f"]()\n\n//# sourceURL=webpack:///./node_modules/astexplorer-syn/astexplorer_syn_bg.wasm?')},"./node_modules/webpack/buildin/harmony-module.js":function(module,exports){eval('module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, "loaded", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, "id", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, "exports", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n\n\n//# sourceURL=webpack:///(webpack)/buildin/harmony-module.js?')}}]);