diff --git a/index-6b0b76493d2d76f4.js b/gpx-web-utils-bf09a17967dc63a6.js similarity index 98% rename from index-6b0b76493d2d76f4.js rename to gpx-web-utils-bf09a17967dc63a6.js index 4103946..4210f5f 100644 --- a/index-6b0b76493d2d76f4.js +++ b/gpx-web-utils-bf09a17967dc63a6.js @@ -9,15 +9,6 @@ function getObject(idx) { return heap[idx]; } let heap_next = heap.length; -function addHeapObject(obj) { - if (heap_next === heap.length) heap.push(heap.length + 1); - const idx = heap_next; - heap_next = heap[idx]; - - heap[idx] = obj; - return idx; -} - function dropObject(idx) { if (idx < 36) return; heap[idx] = heap_next; @@ -30,6 +21,15 @@ function takeObject(idx) { return ret; } +function addHeapObject(obj) { + if (heap_next === heap.length) heap.push(heap.length + 1); + const idx = heap_next; + heap_next = heap[idx]; + + heap[idx] = obj; + return idx; +} + let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); cachedTextDecoder.decode(); @@ -220,7 +220,7 @@ function addBorrowedObject(obj) { } function __wbg_adapter_28(arg0, arg1, arg2) { try { - wasm._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5f225af232d8f992(arg0, arg1, addBorrowedObject(arg2)); + wasm._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h207a40868e3ce597(arg0, arg1, addBorrowedObject(arg2)); } finally { heap[stack_pointer++] = undefined; } @@ -248,7 +248,7 @@ function makeClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_31(arg0, arg1, arg2) { - wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfbac8e4b7dca21d8(arg0, arg1, addHeapObject(arg2)); + wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2619a812962a2c7d(arg0, arg1, addHeapObject(arg2)); } let cachegetUint32Memory0 = null; @@ -319,25 +319,21 @@ async function init(input) { } const imports = {}; imports.wbg = {}; - imports.wbg.__wbindgen_object_clone_ref = function(arg0) { - var ret = getObject(arg0); - return addHeapObject(ret); - }; - imports.wbg.__wbg_instanceof_Window_adf3196bdc02b386 = function(arg0) { - var ret = getObject(arg0) instanceof Window; - return ret; - }; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; imports.wbg.__wbg_document_6cc8d0b87c0a99b9 = function(arg0) { var ret = getObject(arg0).document; return isLikeNone(ret) ? 0 : addHeapObject(ret); }; + imports.wbg.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); + }; imports.wbg.__wbg_createTextNode_b3c9e3cb02f83ab5 = function(arg0, arg1, arg2) { var ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2)); return addHeapObject(ret); }; + imports.wbg.__wbindgen_object_clone_ref = function(arg0) { + var ret = getObject(arg0); + return addHeapObject(ret); + }; imports.wbg.__wbg_removeEventListener_9ffcd175e0916270 = handleError(function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), arg4 !== 0); }); @@ -371,14 +367,6 @@ async function init(input) { imports.wbg.__wbg_setAttribute_727bdb9763037624 = handleError(function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); }); - imports.wbg.__wbg_new_26d01414f47d4ceb = handleError(function(arg0, arg1) { - var ret = new MouseEvent(getStringFromWasm0(arg0, arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_dispatchEvent_aca3da6ff77b010c = handleError(function(arg0, arg1) { - var ret = getObject(arg0).dispatchEvent(getObject(arg1)); - return ret; - }); imports.wbg.__wbg_alert_4ad63c9979edd105 = function(arg0, arg1) { alert(getStringFromWasm0(arg0, arg1)); }; @@ -447,6 +435,18 @@ async function init(input) { var ret = getObject(arg0).next; return addHeapObject(ret); }; + imports.wbg.__wbg_next_2966fa909601a075 = handleError(function(arg0) { + var ret = getObject(arg0).next(); + return addHeapObject(ret); + }); + imports.wbg.__wbg_done_037d0a173aef1834 = function(arg0) { + var ret = getObject(arg0).done; + return ret; + }; + imports.wbg.__wbg_value_e60bbfb7d52af62f = function(arg0) { + var ret = getObject(arg0).value; + return addHeapObject(ret); + }; imports.wbg.__wbindgen_memory = function() { var ret = wasm.memory; return addHeapObject(ret); @@ -494,21 +494,6 @@ async function init(input) { imports.wbg.__wbg_addEventListener_f0baf69c9c7425c9 = handleError(function(arg0, arg1, arg2, arg3, arg4) { getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4)); }); - imports.wbg.__wbg_setinnerHTML_4ff235db1a3cb4d8 = function(arg0, arg1, arg2) { - getObject(arg0).innerHTML = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_next_2966fa909601a075 = handleError(function(arg0) { - var ret = getObject(arg0).next(); - return addHeapObject(ret); - }); - imports.wbg.__wbg_done_037d0a173aef1834 = function(arg0) { - var ret = getObject(arg0).done; - return ret; - }; - imports.wbg.__wbg_value_e60bbfb7d52af62f = function(arg0) { - var ret = getObject(arg0).value; - return addHeapObject(ret); - }; imports.wbg.__wbg_error_25001b5a07976ffc = function(arg0) { var ret = getObject(arg0).error; return isLikeNone(ret) ? 0 : addHeapObject(ret); @@ -543,6 +528,9 @@ async function init(input) { var ret = getObject(arg0).result; return addHeapObject(ret); }); + imports.wbg.__wbg_setinnerHTML_4ff235db1a3cb4d8 = function(arg0, arg1, arg2) { + getObject(arg0).innerHTML = getStringFromWasm0(arg1, arg2); + }; imports.wbg.__wbg_self_07b2f89e82ceb76d = handleError(function() { var ret = self.self; return addHeapObject(ret); @@ -585,32 +573,24 @@ async function init(input) { imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm0(arg0, arg1)); }; - imports.wbg.__wbindgen_number_new = function(arg0) { - var ret = arg0; - return addHeapObject(ret); - }; - imports.wbg.__wbg_removeAttribute_a705c6de4bb158c4 = handleError(function(arg0, arg1, arg2) { - getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2)); - }); - imports.wbg.__wbg_appendChild_77215fd672b162c5 = handleError(function(arg0, arg1) { - var ret = getObject(arg0).appendChild(getObject(arg1)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_insertBefore_ea385f1d7ec76e50 = handleError(function(arg0, arg1, arg2) { - var ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2)); - return addHeapObject(ret); - }); - imports.wbg.__wbg_warn_2aa0e7178e1d35f6 = function(arg0, arg1) { - var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice(); - wasm.__wbindgen_free(arg0, arg1 * 4); - console.warn(...v0); - }; - imports.wbg.__wbg_setnodeValue_ec452cd3716fee72 = function(arg0, arg1, arg2) { - getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_is_333329c4a02916de = function(arg0, arg1) { - var ret = Object.is(getObject(arg0), getObject(arg1)); + imports.wbg.__wbg_dispatchEvent_aca3da6ff77b010c = handleError(function(arg0, arg1) { + var ret = getObject(arg0).dispatchEvent(getObject(arg1)); return ret; + }); + imports.wbg.__wbg_instanceof_Window_adf3196bdc02b386 = function(arg0) { + var ret = getObject(arg0) instanceof Window; + return ret; + }; + imports.wbg.__wbg_new_26d01414f47d4ceb = handleError(function(arg0, arg1) { + var ret = new MouseEvent(getStringFromWasm0(arg0, arg1)); + return addHeapObject(ret); + }); + imports.wbg.__wbg_value_91d41b8dbd0b2f0b = function(arg0, arg1) { + var ret = getObject(arg1).value; + var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + getInt32Memory0()[arg0 / 4 + 1] = len0; + getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; imports.wbg.__wbg_setchecked_1a89c058f5ac906a = function(arg0, arg1) { getObject(arg0).checked = arg1 !== 0; @@ -625,16 +605,6 @@ async function init(input) { getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; - imports.wbg.__wbg_setvalue_1012134a2989f3ee = function(arg0, arg1, arg2) { - getObject(arg0).value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_value_91d41b8dbd0b2f0b = function(arg0, arg1) { - var ret = getObject(arg1).value; - var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - getInt32Memory0()[arg0 / 4 + 1] = len0; - getInt32Memory0()[arg0 / 4 + 0] = ptr0; - }; imports.wbg.__wbg_namespaceURI_a4d52538ca0c6bae = function(arg0, arg1) { var ret = getObject(arg1).namespaceURI; var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -646,6 +616,32 @@ async function init(input) { var ret = getObject(arg0).createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return addHeapObject(ret); }); + imports.wbg.__wbg_warn_2aa0e7178e1d35f6 = function(arg0, arg1) { + var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice(); + wasm.__wbindgen_free(arg0, arg1 * 4); + console.warn(...v0); + }; + imports.wbg.__wbg_setvalue_1012134a2989f3ee = function(arg0, arg1, arg2) { + getObject(arg0).value = getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_setnodeValue_ec452cd3716fee72 = function(arg0, arg1, arg2) { + getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_is_333329c4a02916de = function(arg0, arg1) { + var ret = Object.is(getObject(arg0), getObject(arg1)); + return ret; + }; + imports.wbg.__wbg_removeAttribute_a705c6de4bb158c4 = handleError(function(arg0, arg1, arg2) { + getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2)); + }); + imports.wbg.__wbg_appendChild_77215fd672b162c5 = handleError(function(arg0, arg1) { + var ret = getObject(arg0).appendChild(getObject(arg1)); + return addHeapObject(ret); + }); + imports.wbg.__wbg_insertBefore_ea385f1d7ec76e50 = handleError(function(arg0, arg1, arg2) { + var ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2)); + return addHeapObject(ret); + }); imports.wbg.__wbg_instanceof_Element_fa1f2e86d1bc5f26 = function(arg0) { var ret = getObject(arg0) instanceof Element; return ret; @@ -668,12 +664,16 @@ async function init(input) { var ret = getObject(arg0).valueOf(); return ret; }; - imports.wbg.__wbindgen_closure_wrapper150 = function(arg0, arg1, arg2) { - var ret = makeMutClosure(arg0, arg1, 27, __wbg_adapter_28); + imports.wbg.__wbindgen_number_new = function(arg0) { + var ret = arg0; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper1547 = function(arg0, arg1, arg2) { - var ret = makeClosure(arg0, arg1, 27, __wbg_adapter_31); + imports.wbg.__wbindgen_closure_wrapper184 = function(arg0, arg1, arg2) { + var ret = makeMutClosure(arg0, arg1, 32, __wbg_adapter_28); + return addHeapObject(ret); + }; + imports.wbg.__wbindgen_closure_wrapper1625 = function(arg0, arg1, arg2) { + var ret = makeClosure(arg0, arg1, 32, __wbg_adapter_31); return addHeapObject(ret); }; diff --git a/gpx-web-utils-bf09a17967dc63a6_bg.wasm b/gpx-web-utils-bf09a17967dc63a6_bg.wasm new file mode 100644 index 0000000..5ab2e2f Binary files /dev/null and b/gpx-web-utils-bf09a17967dc63a6_bg.wasm differ diff --git a/index-6b0b76493d2d76f4_bg.wasm b/index-6b0b76493d2d76f4_bg.wasm deleted file mode 100644 index 050a1cc..0000000 Binary files a/index-6b0b76493d2d76f4_bg.wasm and /dev/null differ diff --git a/index.html b/index.html index 27ef7af..af5c7ae 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ } - - + +
-