diff --git a/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js b/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js new file mode 100644 index 0000000..d8d61da --- /dev/null +++ b/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkmgnify_sourmash_component=self.webpackChunkmgnify_sourmash_component||[]).push([[517],{517:(e,t,n)=>{n.r(t),n.d(t,{ComputeParameters:()=>r.ml,KmerMinHash:()=>r.e1,Signature:()=>r.to,__wbg_apply_6d0b9cd50eb480c3:()=>r.$b,__wbg_buffer_12d079cc21e14bdb:()=>r.Fm,__wbg_byteLength_58f7b4fab1919d44:()=>r.Yz,__wbg_length_c20a40f15020d68a:()=>r.qY,__wbg_name_f35eb93a73d94973:()=>r.io,__wbg_new_0737b8c81a08773b:()=>r.wx,__wbg_new_28c511d9baebfa89:()=>r.mC,__wbg_new_63b92bc8671ed464:()=>r.$Z,__wbg_newwithlength_66ae46612e7f0234:()=>r.dD,__wbg_readAsArrayBuffer_b476c29c497a135e:()=>r.PI,__wbg_set_a47bac70306a19a7:()=>r.Wv,__wbg_set_d4638f722068f043:()=>r.QU,__wbg_set_wasm:()=>r.lI,__wbg_size_9c7e57fbd4f0f4b5:()=>r.x5,__wbg_slice_0da9ca5b030b84a7:()=>r.bf,__wbindgen_debug_string:()=>r.rl,__wbindgen_memory:()=>r.Py,__wbindgen_number_new:()=>r.QR,__wbindgen_object_drop_ref:()=>r.bk,__wbindgen_throw:()=>r.Qn});var _=n(596),r=n(247);(0,r.lI)(_)},247:(e,t,n)=>{let _;function r(e){_=e}n.d(t,{$Z:()=>U,$b:()=>O,Fm:()=>P,PI:()=>S,Py:()=>H,QR:()=>q,QU:()=>D,Qn:()=>Z,Wv:()=>Y,Yz:()=>M,bf:()=>Q,bk:()=>R,dD:()=>T,e1:()=>A,io:()=>I,lI:()=>r,mC:()=>L,ml:()=>v,qY:()=>B,rl:()=>W,to:()=>F,wx:()=>E,x5:()=>C}),e=n.hmd(e);const i=new Array(128).fill(void 0);function o(e){return i[e]}i.push(void 0,null,!0,!1);let s=i.length;function a(e){const t=o(e);return function(e){e<132||(i[e]=s,s=e)}(e),t}function c(e){s===i.length&&i.push(i.length+1);const t=s;return s=i[t],i[t]=e,t}function u(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let n="[";t>0&&(n+=u(e[0]));for(let _=1;_1))return toString.call(e);if(_=n[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}let f=0,g=null;function b(){return null!==g&&0!==g.byteLength||(g=new Uint8Array(_.memory.buffer)),g}let d=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const l="function"==typeof d.encodeInto?function(e,t){return d.encodeInto(e,t)}:function(e,t){const n=d.encode(e);return t.set(n),{read:e.length,written:n.length}};function w(e,t,n){if(void 0===n){const n=d.encode(e),_=t(n.length,1)>>>0;return b().subarray(_,_+n.length).set(n),f=n.length,_}let _=e.length,r=t(_,1)>>>0;const i=b();let o=0;for(;o<_;o++){const t=e.charCodeAt(o);if(t>127)break;i[r+o]=t}if(o!==_){0!==o&&(e=e.slice(o)),r=n(r,_,_=o+3*e.length,1)>>>0;const t=b().subarray(r+o,r+_);o+=l(e,t).written,r=n(r,_,o,1)>>>0}return f=o,r}let h=null;function p(){return null!==h&&0!==h.byteLength||(h=new Int32Array(_.memory.buffer)),h}let m=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function y(e,t){return e>>>=0,m.decode(b().subarray(e,e+t))}m.decode();let k=null;function z(e,t){try{return e.apply(this,t)}catch(e){_.__wbindgen_exn_store(c(e))}}const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>_.__wbg_computeparameters_free(e>>>0)));class v{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_computeparameters_free(e)}constructor(){const e=_.computeparameters_new_with_params();return this.__wbg_ptr=e>>>0,this}set_ksizes(e){const t=function(e,t){const n=t(4*e.length,4)>>>0;return(null!==k&&0!==k.byteLength||(k=new Uint32Array(_.memory.buffer)),k).set(e,n/4),f=e.length,n}(e,_.__wbindgen_malloc),n=f;_.computeparameters_set_ksizes(this.__wbg_ptr,t,n)}set_scaled(e){_.computeparameters_set_scaled(this.__wbg_ptr,e)}set_num(e){_.computeparameters_set_num(this.__wbg_ptr,e)}set_protein(e){_.computeparameters_set_protein(this.__wbg_ptr,e)}set_dayhoff(e){_.computeparameters_set_dayhoff(this.__wbg_ptr,e)}set_hp(e){_.computeparameters_set_hp(this.__wbg_ptr,e)}set_track_abundance(e){_.computeparameters_set_track_abundance(this.__wbg_ptr,e)}set_seed(e){_.computeparameters_set_seed(this.__wbg_ptr,e)}}const x="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>_.__wbg_kmerminhash_free(e>>>0)));class A{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_kmerminhash_free(e)}constructor(e,t,n,r,i,o,s,a){const c=_.kmerminhash_new_with_scaled(e,t,n,r,i,o,s,a);return this.__wbg_ptr=c>>>0,this}add_sequence_js(e){try{const n=_.__wbindgen_add_to_stack_pointer(-16),r=w(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=f;_.kmerminhash_add_sequence_js(n,this.__wbg_ptr,r,i);var t=p()[n/4+0];if(p()[n/4+1])throw a(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let e,t;try{const u=_.__wbindgen_add_to_stack_pointer(-16);_.kmerminhash_to_json(u,this.__wbg_ptr);var n=p()[u/4+0],r=p()[u/4+1],i=p()[u/4+2],o=p()[u/4+3],s=n,c=r;if(o)throw s=0,c=0,a(i);return e=s,t=c,y(s,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(e,t,1)}}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>_.__wbg_signature_free(e>>>0)));class F{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_signature_free(e)}constructor(e){!function(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);e.ptr}(e,v);const t=_.signature_new_from_params(e.__wbg_ptr);return this.__wbg_ptr=t>>>0,this}add_sequence_js(e){try{const n=_.__wbindgen_add_to_stack_pointer(-16),r=w(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=f;_.signature_add_sequence_js(n,this.__wbg_ptr,r,i);var t=p()[n/4+0];if(p()[n/4+1])throw a(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}set_filename(e){const t=w(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=f;_.signature_set_filename(this.__wbg_ptr,t,n)}add_from_file(e,t){try{const r=_.__wbindgen_add_to_stack_pointer(-16);_.signature_add_from_file(r,this.__wbg_ptr,c(e),null==t?0:c(t));var n=p()[r/4+0];if(p()[r/4+1])throw a(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}to_json(){let e,t;try{const u=_.__wbindgen_add_to_stack_pointer(-16);_.signature_to_json(u,this.__wbg_ptr);var n=p()[u/4+0],r=p()[u/4+1],i=p()[u/4+2],o=p()[u/4+3],s=n,c=r;if(o)throw s=0,c=0,a(i);return e=s,t=c,y(s,c)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_free(e,t,1)}}size(){return _.signature_size(this.__wbg_ptr)>>>0}}function R(e){a(e)}function q(e){return c(e)}function I(e,t){const n=w(o(t).name,_.__wbindgen_malloc,_.__wbindgen_realloc),r=f;p()[e/4+1]=r,p()[e/4+0]=n}function E(){return z((function(){return c(new FileReaderSync)}),arguments)}function S(){return z((function(e,t){return c(o(e).readAsArrayBuffer(o(t)))}),arguments)}function C(e){return o(e).size}function Q(){return z((function(e,t,n){return c(o(e).slice(t,n))}),arguments)}function T(e){return c(new Array(e>>>0))}function D(e,t,n){o(e)[t>>>0]=a(n)}function L(e,t){return c(new Error(y(e,t)))}function O(){return z((function(e,t,n){return c(o(e).apply(o(t),o(n)))}),arguments)}function P(e){return c(o(e).buffer)}function U(e){return c(new Uint8Array(o(e)))}function Y(e,t,n){o(e).set(o(t),n>>>0)}function B(e){return o(e).length}function M(e){return o(e).byteLength}function W(e,t){const n=w(u(o(t)),_.__wbindgen_malloc,_.__wbindgen_realloc),r=f;p()[e/4+1]=r,p()[e/4+0]=n}function Z(e,t){throw new Error(y(e,t))}function H(){return c(_.memory)}},596:(e,t,n)=>{var _=n.w[e.id];for(var r in n.r(t),_)r&&(t[r]=_[r]);n(247),_[""]()}}]); +//# sourceMappingURL=517.mgnify-sourmash-component.worker.js.map \ No newline at end of file diff --git a/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js.map b/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js.map new file mode 100644 index 0000000..1e5e7a2 --- /dev/null +++ b/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"517.mgnify-sourmash-component.worker.js","mappings":"k8BAEA,QAAe,E,gBCFf,IAAIA,EACG,SAASC,EAAeC,GAC3BF,EAAOE,CACX,C,mOAGA,MAAMC,EAAO,IAAIC,MAAM,KAAKC,UAAKC,GAIjC,SAASC,EAAUC,GAAO,OAAOL,EAAKK,EAAM,CAF5CL,EAAKM,UAAKH,EAAW,MAAM,GAAM,GAIjC,IAAII,EAAYP,EAA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IAAS,GAEnC,CAEO,SAASa,EAA2Bb,EAAMG,EAAMQ,GACnDzK,EAAU8J,GAAMG,IAAS,GAAK5J,EAAWoK,EAC7C,CAEO,SAASG,EAA2Bd,EAAMG,GAE7C,OAAOzJ,EADK,IAAIiB,MAAMyC,EAAmB4F,EAAMG,IAEnD,CAEO,SAASY,IAAiC,OAAOxG,GAAY,SAAUyF,EAAMG,EAAMQ,GAEtF,OAAOjK,EADKR,EAAU8J,GAAMtF,MAAMxE,EAAUiK,GAAOjK,EAAUyK,IAEjE,GAAGL,UAAW,CAEP,SAASU,EAA8BhB,GAE1C,OAAOtJ,EADKR,EAAU8J,GAAM5H,OAEhC,CAEO,SAAS6I,EAA2BjB,GAEvC,OAAOtJ,EADK,IAAIwB,WAAWhC,EAAU8J,IAEzC,CAEO,SAASkB,EAA2BlB,EAAMG,EAAMQ,GACnDzK,EAAU8J,GAAMjH,IAAI7C,EAAUiK,GAAOQ,IAAS,EAClD,CAEO,SAASQ,EAA8BnB,GAE1C,OADY9J,EAAU8J,GAAM1J,MAEhC,CAEO,SAAS8K,EAAkCpB,GAE9C,OADY9J,EAAU8J,GAAM/H,UAEhC,CAEO,SAASoJ,EAAwBrB,EAAMG,GAC1C,MACM1B,EAAOvF,EADDtC,EAAYV,EAAUiK,IACExK,EAAKmG,kBAAmBnG,EAAKoI,oBAC3DW,EAAO5G,EACbgC,IAAkBkG,EAAO,EAAI,GAAKtB,EAClC5E,IAAkBkG,EAAO,EAAI,GAAKvB,CACtC,CAEO,SAAS6C,EAAiBtB,EAAMG,GACnC,MAAM,IAAIxI,MAAMyC,EAAmB4F,EAAMG,GAC7C,CAEO,SAASoB,IAEZ,OAAO7K,EADKf,EAAKwC,OAErB,C","sources":["webpack://mgnify-sourmash-component/../sm_worktrees/wasm_filename/pkg/sourmash.js","webpack://mgnify-sourmash-component/../sm_worktrees/wasm_filename/pkg/sourmash_bg.js"],"sourcesContent":["import * as wasm from \"./sourmash_bg.wasm\";\nimport { __wbg_set_wasm } from \"./sourmash_bg.js\";\n__wbg_set_wasm(wasm);\nexport * from \"./sourmash_bg.js\";\n","let wasm;\nexport function __wbg_set_wasm(val) {\n wasm = val;\n}\n\n\nconst heap = new Array(128).fill(undefined);\n\nheap.push(undefined, null, true, false);\n\nfunction getObject(idx) { return heap[idx]; }\n\nlet heap_next = heap.length;\n\nfunction dropObject(idx) {\n if (idx < 132) 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\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 debugString(val) {\n // primitive types\n const type = typeof val;\n if (type == 'number' || type == 'boolean' || val == null) {\n return `${val}`;\n }\n if (type == 'string') {\n return `\"${val}\"`;\n }\n if (type == 'symbol') {\n const description = val.description;\n if (description == null) {\n return 'Symbol';\n } else {\n return `Symbol(${description})`;\n }\n }\n if (type == 'function') {\n const name = val.name;\n if (typeof name == 'string' && name.length > 0) {\n return `Function(${name})`;\n } else {\n return 'Function';\n }\n }\n // objects\n if (Array.isArray(val)) {\n const length = val.length;\n let debug = '[';\n if (length > 0) {\n debug += debugString(val[0]);\n }\n for(let i = 1; i < length; i++) {\n debug += ', ' + debugString(val[i]);\n }\n debug += ']';\n return debug;\n }\n // Test for built-in\n const builtInMatches = /\\[object ([^\\]]+)\\]/.exec(toString.call(val));\n let className;\n if (builtInMatches.length > 1) {\n className = builtInMatches[1];\n } else {\n // Failed to match the standard '[object ClassName]'\n return toString.call(val);\n }\n if (className == 'Object') {\n // we're a user defined class or Object\n // JSON.stringify avoids problems with cycles, and is generally much\n // easier than looping through ownProperties of `val`.\n try {\n return 'Object(' + JSON.stringify(val) + ')';\n } catch (_) {\n return 'Object';\n }\n }\n // errors\n if (val instanceof Error) {\n return `${val.name}: ${val.message}\\n${val.stack}`;\n }\n // TODO we could test for more things here, like `Set`s and `Map`s.\n return className;\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nlet cachedUint8Memory0 = null;\n\nfunction getUint8Memory0() {\n if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {\n cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8Memory0;\n}\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, 1) >>> 0;\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, 1) >>> 0;\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, 1) >>> 0;\n const view = getUint8Memory0().subarray(ptr + offset, ptr + len);\n const ret = encodeString(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nlet cachedInt32Memory0 = null;\n\nfunction getInt32Memory0() {\n if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {\n cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);\n }\n return cachedInt32Memory0;\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\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));\n}\n\nfunction _assertClass(instance, klass) {\n if (!(instance instanceof klass)) {\n throw new Error(`expected instance of ${klass.name}`);\n }\n return instance.ptr;\n}\n\nfunction isLikeNone(x) {\n return x === undefined || x === null;\n}\n\nlet cachedUint32Memory0 = null;\n\nfunction getUint32Memory0() {\n if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {\n cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);\n }\n return cachedUint32Memory0;\n}\n\nfunction passArray32ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 4, 4) >>> 0;\n getUint32Memory0().set(arg, ptr / 4);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction handleError(f, args) {\n try {\n return f.apply(this, args);\n } catch (e) {\n wasm.__wbindgen_exn_store(addHeapObject(e));\n }\n}\n\nconst ComputeParametersFinalization = (typeof FinalizationRegistry === 'undefined')\n ? { register: () => {}, unregister: () => {} }\n : new FinalizationRegistry(ptr => wasm.__wbg_computeparameters_free(ptr >>> 0));\n/**\n*/\nexport class ComputeParameters {\n\n __destroy_into_raw() {\n const ptr = this.__wbg_ptr;\n this.__wbg_ptr = 0;\n ComputeParametersFinalization.unregister(this);\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_computeparameters_free(ptr);\n }\n /**\n */\n constructor() {\n const ret = wasm.computeparameters_new_with_params();\n this.__wbg_ptr = ret >>> 0;\n return this;\n }\n /**\n * @param {Uint32Array} ksizes\n */\n set_ksizes(ksizes) {\n const ptr0 = passArray32ToWasm0(ksizes, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.computeparameters_set_ksizes(this.__wbg_ptr, ptr0, len0);\n }\n /**\n * @param {number} scaled\n */\n set_scaled(scaled) {\n wasm.computeparameters_set_scaled(this.__wbg_ptr, scaled);\n }\n /**\n * @param {number} num\n */\n set_num(num) {\n wasm.computeparameters_set_num(this.__wbg_ptr, num);\n }\n /**\n * @param {boolean} is_protein\n */\n set_protein(is_protein) {\n wasm.computeparameters_set_protein(this.__wbg_ptr, is_protein);\n }\n /**\n * @param {boolean} dayhoff\n */\n set_dayhoff(dayhoff) {\n wasm.computeparameters_set_dayhoff(this.__wbg_ptr, dayhoff);\n }\n /**\n * @param {boolean} hp\n */\n set_hp(hp) {\n wasm.computeparameters_set_hp(this.__wbg_ptr, hp);\n }\n /**\n * @param {boolean} track\n */\n set_track_abundance(track) {\n wasm.computeparameters_set_track_abundance(this.__wbg_ptr, track);\n }\n /**\n * @param {number} seed\n */\n set_seed(seed) {\n wasm.computeparameters_set_seed(this.__wbg_ptr, seed);\n }\n}\n\nconst KmerMinHashFinalization = (typeof FinalizationRegistry === 'undefined')\n ? { register: () => {}, unregister: () => {} }\n : new FinalizationRegistry(ptr => wasm.__wbg_kmerminhash_free(ptr >>> 0));\n/**\n*/\nexport class KmerMinHash {\n\n __destroy_into_raw() {\n const ptr = this.__wbg_ptr;\n this.__wbg_ptr = 0;\n KmerMinHashFinalization.unregister(this);\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_kmerminhash_free(ptr);\n }\n /**\n * @param {number} num\n * @param {number} ksize\n * @param {boolean} is_protein\n * @param {boolean} dayhoff\n * @param {boolean} hp\n * @param {number} seed\n * @param {number} scaled\n * @param {boolean} track_abundance\n */\n constructor(num, ksize, is_protein, dayhoff, hp, seed, scaled, track_abundance) {\n const ret = wasm.kmerminhash_new_with_scaled(num, ksize, is_protein, dayhoff, hp, seed, scaled, track_abundance);\n this.__wbg_ptr = ret >>> 0;\n return this;\n }\n /**\n * @param {string} buf\n */\n add_sequence_js(buf) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passStringToWasm0(buf, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.kmerminhash_add_sequence_js(retptr, this.__wbg_ptr, ptr0, len0);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n if (r1) {\n throw takeObject(r0);\n }\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * @returns {string}\n */\n to_json() {\n let deferred2_0;\n let deferred2_1;\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.kmerminhash_to_json(retptr, this.__wbg_ptr);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n var r3 = getInt32Memory0()[retptr / 4 + 3];\n var ptr1 = r0;\n var len1 = r1;\n if (r3) {\n ptr1 = 0; len1 = 0;\n throw takeObject(r2);\n }\n deferred2_0 = ptr1;\n deferred2_1 = len1;\n return getStringFromWasm0(ptr1, len1);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);\n }\n }\n}\n\nconst SignatureFinalization = (typeof FinalizationRegistry === 'undefined')\n ? { register: () => {}, unregister: () => {} }\n : new FinalizationRegistry(ptr => wasm.__wbg_signature_free(ptr >>> 0));\n/**\n*/\nexport class Signature {\n\n __destroy_into_raw() {\n const ptr = this.__wbg_ptr;\n this.__wbg_ptr = 0;\n SignatureFinalization.unregister(this);\n return ptr;\n }\n\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_signature_free(ptr);\n }\n /**\n * @param {ComputeParameters} params\n */\n constructor(params) {\n _assertClass(params, ComputeParameters);\n const ret = wasm.signature_new_from_params(params.__wbg_ptr);\n this.__wbg_ptr = ret >>> 0;\n return this;\n }\n /**\n * @param {string} buf\n */\n add_sequence_js(buf) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passStringToWasm0(buf, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.signature_add_sequence_js(retptr, this.__wbg_ptr, ptr0, len0);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n if (r1) {\n throw takeObject(r0);\n }\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * @param {string} name\n */\n set_filename(name) {\n const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.signature_set_filename(this.__wbg_ptr, ptr0, len0);\n }\n /**\n * @param {File} fp\n * @param {Function | undefined} [callback]\n */\n add_from_file(fp, callback) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.signature_add_from_file(retptr, this.__wbg_ptr, addHeapObject(fp), isLikeNone(callback) ? 0 : addHeapObject(callback));\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n if (r1) {\n throw takeObject(r0);\n }\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n }\n /**\n * @returns {string}\n */\n to_json() {\n let deferred2_0;\n let deferred2_1;\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n wasm.signature_to_json(retptr, this.__wbg_ptr);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var r2 = getInt32Memory0()[retptr / 4 + 2];\n var r3 = getInt32Memory0()[retptr / 4 + 3];\n var ptr1 = r0;\n var len1 = r1;\n if (r3) {\n ptr1 = 0; len1 = 0;\n throw takeObject(r2);\n }\n deferred2_0 = ptr1;\n deferred2_1 = len1;\n return getStringFromWasm0(ptr1, len1);\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);\n }\n }\n /**\n * @returns {number}\n */\n size() {\n const ret = wasm.signature_size(this.__wbg_ptr);\n return ret >>> 0;\n }\n}\n\nexport function __wbindgen_object_drop_ref(arg0) {\n takeObject(arg0);\n};\n\nexport function __wbindgen_number_new(arg0) {\n const ret = arg0;\n return addHeapObject(ret);\n};\n\nexport function __wbg_name_f35eb93a73d94973(arg0, arg1) {\n const ret = getObject(arg1).name;\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n};\n\nexport function __wbg_new_0737b8c81a08773b() { return handleError(function () {\n const ret = new FileReaderSync();\n return addHeapObject(ret);\n}, arguments) };\n\nexport function __wbg_readAsArrayBuffer_b476c29c497a135e() { return handleError(function (arg0, arg1) {\n const ret = getObject(arg0).readAsArrayBuffer(getObject(arg1));\n return addHeapObject(ret);\n}, arguments) };\n\nexport function __wbg_size_9c7e57fbd4f0f4b5(arg0) {\n const ret = getObject(arg0).size;\n return ret;\n};\n\nexport function __wbg_slice_0da9ca5b030b84a7() { return handleError(function (arg0, arg1, arg2) {\n const ret = getObject(arg0).slice(arg1, arg2);\n return addHeapObject(ret);\n}, arguments) };\n\nexport function __wbg_newwithlength_66ae46612e7f0234(arg0) {\n const ret = new Array(arg0 >>> 0);\n return addHeapObject(ret);\n};\n\nexport function __wbg_set_d4638f722068f043(arg0, arg1, arg2) {\n getObject(arg0)[arg1 >>> 0] = takeObject(arg2);\n};\n\nexport function __wbg_new_28c511d9baebfa89(arg0, arg1) {\n const ret = new Error(getStringFromWasm0(arg0, arg1));\n return addHeapObject(ret);\n};\n\nexport function __wbg_apply_6d0b9cd50eb480c3() { return handleError(function (arg0, arg1, arg2) {\n const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));\n return addHeapObject(ret);\n}, arguments) };\n\nexport function __wbg_buffer_12d079cc21e14bdb(arg0) {\n const ret = getObject(arg0).buffer;\n return addHeapObject(ret);\n};\n\nexport function __wbg_new_63b92bc8671ed464(arg0) {\n const ret = new Uint8Array(getObject(arg0));\n return addHeapObject(ret);\n};\n\nexport function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {\n getObject(arg0).set(getObject(arg1), arg2 >>> 0);\n};\n\nexport function __wbg_length_c20a40f15020d68a(arg0) {\n const ret = getObject(arg0).length;\n return ret;\n};\n\nexport function __wbg_byteLength_58f7b4fab1919d44(arg0) {\n const ret = getObject(arg0).byteLength;\n return ret;\n};\n\nexport function __wbindgen_debug_string(arg0, arg1) {\n const ret = debugString(getObject(arg1));\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n};\n\nexport function __wbindgen_throw(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n};\n\nexport function __wbindgen_memory() {\n const ret = wasm.memory;\n return addHeapObject(ret);\n};\n\n"],"names":["wasm","__wbg_set_wasm","val","heap","Array","fill","undefined","getObject","idx","push","heap_next","length","takeObject","ret","dropObject","addHeapObject","obj","debugString","type","description","name","isArray","debug","i","builtInMatches","exec","toString","call","className","JSON","stringify","_","Error","message","stack","WASM_VECTOR_LEN","cachedUint8Memory0","getUint8Memory0","byteLength","Uint8Array","memory","buffer","cachedTextEncoder","TextEncoder","module","require","encodeString","encodeInto","arg","view","buf","encode","set","read","written","passStringToWasm0","malloc","realloc","ptr","subarray","len","mem","offset","code","charCodeAt","slice","cachedInt32Memory0","getInt32Memory0","Int32Array","cachedTextDecoder","TextDecoder","ignoreBOM","fatal","getStringFromWasm0","decode","cachedUint32Memory0","handleError","f","args","apply","this","e","__wbindgen_exn_store","ComputeParametersFinalization","FinalizationRegistry","register","unregister","__wbg_computeparameters_free","ComputeParameters","__destroy_into_raw","__wbg_ptr","free","constructor","computeparameters_new_with_params","set_ksizes","ksizes","ptr0","Uint32Array","passArray32ToWasm0","__wbindgen_malloc","len0","computeparameters_set_ksizes","set_scaled","scaled","computeparameters_set_scaled","set_num","num","computeparameters_set_num","set_protein","is_protein","computeparameters_set_protein","set_dayhoff","dayhoff","computeparameters_set_dayhoff","set_hp","hp","computeparameters_set_hp","set_track_abundance","track","computeparameters_set_track_abundance","set_seed","seed","computeparameters_set_seed","KmerMinHashFinalization","__wbg_kmerminhash_free","KmerMinHash","ksize","track_abundance","kmerminhash_new_with_scaled","add_sequence_js","retptr","__wbindgen_add_to_stack_pointer","__wbindgen_realloc","kmerminhash_add_sequence_js","r0","to_json","deferred2_0","deferred2_1","kmerminhash_to_json","r1","r2","r3","ptr1","len1","__wbindgen_free","SignatureFinalization","__wbg_signature_free","Signature","params","instance","klass","_assertClass","signature_new_from_params","signature_add_sequence_js","set_filename","signature_set_filename","add_from_file","fp","callback","signature_add_from_file","x","signature_to_json","size","signature_size","__wbindgen_object_drop_ref","arg0","__wbindgen_number_new","__wbg_name_f35eb93a73d94973","arg1","__wbg_new_0737b8c81a08773b","FileReaderSync","arguments","__wbg_readAsArrayBuffer_b476c29c497a135e","readAsArrayBuffer","__wbg_size_9c7e57fbd4f0f4b5","__wbg_slice_0da9ca5b030b84a7","arg2","__wbg_newwithlength_66ae46612e7f0234","__wbg_set_d4638f722068f043","__wbg_new_28c511d9baebfa89","__wbg_apply_6d0b9cd50eb480c3","__wbg_buffer_12d079cc21e14bdb","__wbg_new_63b92bc8671ed464","__wbg_set_a47bac70306a19a7","__wbg_length_c20a40f15020d68a","__wbg_byteLength_58f7b4fab1919d44","__wbindgen_debug_string","__wbindgen_throw","__wbindgen_memory"],"sourceRoot":""} \ No newline at end of file diff --git a/app/static/mgnify-component/c9107968d210b9f322bc.module.wasm b/app/static/mgnify-component/c9107968d210b9f322bc.module.wasm new file mode 100644 index 0000000..4784fb1 Binary files /dev/null and b/app/static/mgnify-component/c9107968d210b9f322bc.module.wasm differ diff --git a/app/static/mgnify-component/mgnify-sourmash-component.worker.js b/app/static/mgnify-component/mgnify-sourmash-component.worker.js index 7a3aaed..0157ee1 100644 --- a/app/static/mgnify-component/mgnify-sourmash-component.worker.js +++ b/app/static/mgnify-component/mgnify-sourmash-component.worker.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,t,n,r,o,i,s,c,a,u,f,d,_,p,b,l,m,g,h,v,w,y={489:(e,t,n)=>{var r=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{a(r.next(e))}catch(e){i(e)}}function c(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((r=r.apply(e,t||[])).next())}))};const o=self;let i=null,s=null;const c=n.e(225).then(n.bind(n,225)).then((e=>{i=e.Signature,s=e.ComputeParameters}));function a(e,t){return r(this,void 0,void 0,(function*(){yield Promise.all([c]);const n=new s;n.set_ksizes(new Uint32Array([t.ksize])),n.set_scaled(t.scaled),n.set_num(t.num),n.set_protein(t.is_protein),n.set_dayhoff(t.dayhoff),n.set_hp(t.hp),n.set_track_abundance(t.track_abundance),n.set_seed(t.seed);const r=new i(n),a=function(t){o.postMessage({type:"progress:read",filename:e.name,progress:100*t})};try{r.add_from_file(e,a)}catch(t){return void o.postMessage({type:"signature:error",filename:e.name,error:t.message})}o.postMessage({type:"signature:generated",filename:e.name,signature:r.to_json()})}))}o.addEventListener("message",(e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.files)||void 0===n?void 0:n.length)&&function(e,t){for(const n of e)a(n,t)}(e.data.files,e.data.options)}))}},x={};function S(e){var t=x[e];if(void 0!==t)return t.exports;var n=x[e]={id:e,loaded:!1,exports:{}};return y[e](n,n.exports,S),n.loaded=!0,n.exports}S.m=y,S.c=x,S.d=(e,t)=>{for(var n in t)S.o(t,n)&&!S.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((t,n)=>(S.f[n](e,t),t)),[])),S.u=e=>e+".mgnify-sourmash-component.worker.js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var t=S.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),(()=>{var e={814:1};S.f.i=(t,n)=>{e[t]||importScripts(S.p+S.u(t))};var t=self.webpackChunkmgnify_sourmash_component=self.webpackChunkmgnify_sourmash_component||[],n=t.push.bind(t);t.push=t=>{var[r,o,i]=t;for(var s in o)S.o(o,s)&&(S.m[s]=o[s]);for(i&&i(S);r.length;)e[r.pop()]=1;n(t)}})(),h={},v={816:function(){return{"./sourmash_bg.js":{__wbindgen_object_drop_ref:function(t){return void 0===e&&(e=S.c[347].exports),e.bk(t)},__wbindgen_number_new:function(e){return void 0===t&&(t=S.c[347].exports),t.QR(e)},__wbg_new_0737b8c81a08773b:function(){return void 0===n&&(n=S.c[347].exports),n.wx()},__wbg_readAsArrayBuffer_b476c29c497a135e:function(e,t){return void 0===r&&(r=S.c[347].exports),r.PI(e,t)},__wbg_size_9c7e57fbd4f0f4b5:function(e){return void 0===o&&(o=S.c[347].exports),o.x5(e)},__wbg_slice_0da9ca5b030b84a7:function(e,t,n){return void 0===i&&(i=S.c[347].exports),i.bf(e,t,n)},__wbg_newwithlength_66ae46612e7f0234:function(e){return void 0===s&&(s=S.c[347].exports),s.dD(e)},__wbg_set_d4638f722068f043:function(e,t,n){return void 0===c&&(c=S.c[347].exports),c.QU(e,t,n)},__wbg_new_28c511d9baebfa89:function(e,t){return void 0===a&&(a=S.c[347].exports),a.mC(e,t)},__wbg_apply_6d0b9cd50eb480c3:function(e,t,n){return void 0===u&&(u=S.c[347].exports),u.$b(e,t,n)},__wbg_buffer_12d079cc21e14bdb:function(e){return void 0===f&&(f=S.c[347].exports),f.Fm(e)},__wbg_new_63b92bc8671ed464:function(e){return void 0===d&&(d=S.c[347].exports),d.$Z(e)},__wbg_set_a47bac70306a19a7:function(e,t,n){return void 0===_&&(_=S.c[347].exports),_.Wv(e,t,n)},__wbg_length_c20a40f15020d68a:function(e){return void 0===p&&(p=S.c[347].exports),p.qY(e)},__wbg_byteLength_58f7b4fab1919d44:function(e){return void 0===b&&(b=S.c[347].exports),b.Yz(e)},__wbindgen_debug_string:function(e,t){return void 0===l&&(l=S.c[347].exports),l.rl(e,t)},__wbindgen_throw:function(e,t){return void 0===m&&(m=S.c[347].exports),m.Qn(e,t)},__wbindgen_memory:function(){return void 0===g&&(g=S.c[347].exports),g.Py()}}}}},w={225:[816]},S.w={},S.f.wasm=function(e,t){(w[e]||[]).forEach((function(n,r){var o=h[n];if(o)t.push(o);else{var i,s=v[n](),c=fetch(S.p+""+{225:{816:"9495c69393edaf0e1c7c"}}[e][n]+".module.wasm");i=s&&"function"==typeof s.then&&"function"==typeof WebAssembly.compileStreaming?Promise.all([WebAssembly.compileStreaming(c),s]).then((function(e){return WebAssembly.instantiate(e[0],e[1])})):"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(c,s):c.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,s)})),t.push(h[n]=i.then((function(e){return S.w[n]=(e.instance||e).exports})))}}))},S(489)})(); +(()=>{"use strict";var e,t,n,r,o,i,s,c,a,u,f,d,_,p,b,l,m,g,h,v,w,y,x={489:(e,t,n)=>{var r=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{a(r.next(e))}catch(e){i(e)}}function c(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((r=r.apply(e,t||[])).next())}))};const o=self;let i=null,s=null;const c=n.e(517).then(n.bind(n,517)).then((e=>{i=e.Signature,s=e.ComputeParameters}));function a(e,t){return r(this,void 0,void 0,(function*(){yield Promise.all([c]);const n=new s;n.set_ksizes(new Uint32Array([t.ksize])),n.set_scaled(t.scaled),n.set_num(t.num),n.set_protein(t.is_protein),n.set_dayhoff(t.dayhoff),n.set_hp(t.hp),n.set_track_abundance(t.track_abundance),n.set_seed(t.seed);const r=new i(n),a=function(t){o.postMessage({type:"progress:read",filename:e.name,progress:100*t})};try{r.add_from_file(e,a)}catch(t){return void o.postMessage({type:"signature:error",filename:e.name,error:t.message})}o.postMessage({type:"signature:generated",filename:e.name,signature:r.to_json()})}))}o.addEventListener("message",(e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.files)||void 0===n?void 0:n.length)&&function(e,t){for(const n of e)a(n,t)}(e.data.files,e.data.options)}))}},S={};function j(e){var t=S[e];if(void 0!==t)return t.exports;var n=S[e]={id:e,loaded:!1,exports:{}};return x[e](n,n.exports,j),n.loaded=!0,n.exports}j.m=x,j.c=S,j.d=(e,t)=>{for(var n in t)j.o(t,n)&&!j.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((t,n)=>(j.f[n](e,t),t)),[])),j.u=e=>e+".mgnify-sourmash-component.worker.js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),j.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var t=j.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e})(),(()=>{var e={814:1};j.f.i=(t,n)=>{e[t]||importScripts(j.p+j.u(t))};var t=self.webpackChunkmgnify_sourmash_component=self.webpackChunkmgnify_sourmash_component||[],n=t.push.bind(t);t.push=t=>{var[r,o,i]=t;for(var s in o)j.o(o,s)&&(j.m[s]=o[s]);for(i&&i(j);r.length;)e[r.pop()]=1;n(t)}})(),v={},w={596:function(){return{"./sourmash_bg.js":{__wbindgen_object_drop_ref:function(t){return void 0===e&&(e=j.c[247].exports),e.bk(t)},__wbindgen_number_new:function(e){return void 0===t&&(t=j.c[247].exports),t.QR(e)},__wbg_name_f35eb93a73d94973:function(e,t){return void 0===n&&(n=j.c[247].exports),n.io(e,t)},__wbg_new_0737b8c81a08773b:function(){return void 0===r&&(r=j.c[247].exports),r.wx()},__wbg_readAsArrayBuffer_b476c29c497a135e:function(e,t){return void 0===o&&(o=j.c[247].exports),o.PI(e,t)},__wbg_size_9c7e57fbd4f0f4b5:function(e){return void 0===i&&(i=j.c[247].exports),i.x5(e)},__wbg_slice_0da9ca5b030b84a7:function(e,t,n){return void 0===s&&(s=j.c[247].exports),s.bf(e,t,n)},__wbg_newwithlength_66ae46612e7f0234:function(e){return void 0===c&&(c=j.c[247].exports),c.dD(e)},__wbg_set_d4638f722068f043:function(e,t,n){return void 0===a&&(a=j.c[247].exports),a.QU(e,t,n)},__wbg_new_28c511d9baebfa89:function(e,t){return void 0===u&&(u=j.c[247].exports),u.mC(e,t)},__wbg_apply_6d0b9cd50eb480c3:function(e,t,n){return void 0===f&&(f=j.c[247].exports),f.$b(e,t,n)},__wbg_buffer_12d079cc21e14bdb:function(e){return void 0===d&&(d=j.c[247].exports),d.Fm(e)},__wbg_new_63b92bc8671ed464:function(e){return void 0===_&&(_=j.c[247].exports),_.$Z(e)},__wbg_set_a47bac70306a19a7:function(e,t,n){return void 0===p&&(p=j.c[247].exports),p.Wv(e,t,n)},__wbg_length_c20a40f15020d68a:function(e){return void 0===b&&(b=j.c[247].exports),b.qY(e)},__wbg_byteLength_58f7b4fab1919d44:function(e){return void 0===l&&(l=j.c[247].exports),l.Yz(e)},__wbindgen_debug_string:function(e,t){return void 0===m&&(m=j.c[247].exports),m.rl(e,t)},__wbindgen_throw:function(e,t){return void 0===g&&(g=j.c[247].exports),g.Qn(e,t)},__wbindgen_memory:function(){return void 0===h&&(h=j.c[247].exports),h.Py()}}}}},y={517:[596]},j.w={},j.f.wasm=function(e,t){(y[e]||[]).forEach((function(n,r){var o=v[n];if(o)t.push(o);else{var i,s=w[n](),c=fetch(j.p+""+{517:{596:"c9107968d210b9f322bc"}}[e][n]+".module.wasm");i=s&&"function"==typeof s.then&&"function"==typeof WebAssembly.compileStreaming?Promise.all([WebAssembly.compileStreaming(c),s]).then((function(e){return WebAssembly.instantiate(e[0],e[1])})):"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(c,s):c.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,s)})),t.push(v[n]=i.then((function(e){return j.w[n]=(e.instance||e).exports})))}}))},j(489)})(); //# sourceMappingURL=mgnify-sourmash-component.worker.js.map \ No newline at end of file diff --git a/app/static/mgnify-component/mgnify-sourmash-component.worker.js.map b/app/static/mgnify-component/mgnify-sourmash-component.worker.js.map index aa90cce..3ab39ea 100644 --- a/app/static/mgnify-component/mgnify-sourmash-component.worker.js.map +++ b/app/static/mgnify-component/mgnify-sourmash-component.worker.js.map @@ -1 +1 @@ -{"version":3,"file":"mgnify-sourmash-component.worker.js","mappings":"uBAKIA,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EArBAC,EAsBAC,EAiFAC,E,iBCxGJ,IAAIC,EAAwC,SAAUC,EAASC,EAAYC,EAAGC,GAE1E,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAS,CAAE,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,GAAS,CAAE,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC7F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,GAAE,SAAUG,GAAWA,EAAQG,EAAQ,KAIjBO,KAAKR,EAAWK,EAAW,CAC7GH,GAAMN,EAAYA,EAAUa,MAAMhB,EAASC,GAAc,KAAKS,OAClE,GACJ,EAEA,MAAMO,EAAMC,KAEZ,IAAIC,EAAY,KACZC,EAAoB,KACxB,MAAMC,EAAW,6BAAmBN,MAAMO,IACt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J,EAAkB8I,KACjCK,EAAMC,MAAM9E,EAAoBqD,EAAI,GAAK,CAAC,IAAM,CAAC,IAAM,yBAAyBjC,GAASoD,GAAgB,gBAG5GG,EADEC,GAA6C,mBAAtBA,EAAahI,MAA+D,mBAAjCmI,YAAYC,iBACtE/I,QAAQuB,IAAI,CAACuH,YAAYC,iBAAiBH,GAAMD,IAAehI,MAAK,SAASqI,GACtF,OAAOF,YAAYG,YAAYD,EAAM,GAAIA,EAAM,GAChD,IACqD,mBAArCF,YAAYI,qBAClBJ,YAAYI,qBAAqBN,EAAKD,GAE7BC,EAAIjI,MAAK,SAASwI,GAAK,OAAOA,EAAEC,aAAe,IAC3CzI,MAAK,SAAS0I,GACpC,OAAOP,YAAYG,YAAYI,EAAOV,EACvC,IAEDrD,EAASkC,KAAKhI,EAAqB+I,GAAgBG,EAAQ/H,MAAK,SAAS2I,GACxE,OAAOvF,EAAoBqE,EAAEG,IAAiBe,EAAIC,UAAYD,GAAKnF,OACpE,IACD,CACD,GACD,EY9I0BJ,EAAoB,I","sources":["webpack://mgnify-sourmash-component/webpack/runtime/wasm chunk loading","webpack://mgnify-sourmash-component/./src/sketcher.worker.ts","webpack://mgnify-sourmash-component/webpack/bootstrap","webpack://mgnify-sourmash-component/webpack/runtime/define property getters","webpack://mgnify-sourmash-component/webpack/runtime/ensure chunk","webpack://mgnify-sourmash-component/webpack/runtime/get javascript chunk filename","webpack://mgnify-sourmash-component/webpack/runtime/global","webpack://mgnify-sourmash-component/webpack/runtime/harmony module decorator","webpack://mgnify-sourmash-component/webpack/runtime/hasOwnProperty shorthand","webpack://mgnify-sourmash-component/webpack/runtime/make namespace object","webpack://mgnify-sourmash-component/webpack/runtime/publicPath","webpack://mgnify-sourmash-component/webpack/runtime/importScripts chunk loading","webpack://mgnify-sourmash-component/webpack/startup"],"sourcesContent":["// object to store loaded and loading wasm modules\nvar installedWasmModules = {};\n\nfunction promiseResolve() { return Promise.resolve(); }\n\nvar wasmImportedFuncCache0;\nvar wasmImportedFuncCache1;\nvar wasmImportedFuncCache2;\nvar wasmImportedFuncCache3;\nvar wasmImportedFuncCache4;\nvar wasmImportedFuncCache5;\nvar wasmImportedFuncCache6;\nvar wasmImportedFuncCache7;\nvar wasmImportedFuncCache8;\nvar wasmImportedFuncCache9;\nvar wasmImportedFuncCache10;\nvar wasmImportedFuncCache11;\nvar wasmImportedFuncCache12;\nvar wasmImportedFuncCache13;\nvar wasmImportedFuncCache14;\nvar wasmImportedFuncCache15;\nvar wasmImportedFuncCache16;\nvar wasmImportedFuncCache17;\nvar wasmImportObjects = {\n\t816: function() {\n\t\treturn {\n\t\t\t\"./sourmash_bg.js\": {\n\t\t\t\t\"__wbindgen_object_drop_ref\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache0 === undefined) wasmImportedFuncCache0 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache0[\"bk\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_number_new\": function(p0f64) {\n\t\t\t\t\tif(wasmImportedFuncCache1 === undefined) wasmImportedFuncCache1 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache1[\"QR\"](p0f64);\n\t\t\t\t},\n\t\t\t\t\"__wbg_new_0737b8c81a08773b\": function() {\n\t\t\t\t\tif(wasmImportedFuncCache2 === undefined) wasmImportedFuncCache2 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache2[\"wx\"]();\n\t\t\t\t},\n\t\t\t\t\"__wbg_readAsArrayBuffer_b476c29c497a135e\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache3 === undefined) wasmImportedFuncCache3 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache3[\"PI\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_size_9c7e57fbd4f0f4b5\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache4 === undefined) wasmImportedFuncCache4 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache4[\"x5\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_slice_0da9ca5b030b84a7\": function(p0i32,p1f64,p2f64) {\n\t\t\t\t\tif(wasmImportedFuncCache5 === undefined) wasmImportedFuncCache5 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache5[\"bf\"](p0i32,p1f64,p2f64);\n\t\t\t\t},\n\t\t\t\t\"__wbg_newwithlength_66ae46612e7f0234\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache6 === undefined) wasmImportedFuncCache6 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache6[\"dD\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_set_d4638f722068f043\": function(p0i32,p1i32,p2i32) {\n\t\t\t\t\tif(wasmImportedFuncCache7 === undefined) wasmImportedFuncCache7 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache7[\"QU\"](p0i32,p1i32,p2i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_new_28c511d9baebfa89\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache8 === undefined) wasmImportedFuncCache8 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache8[\"mC\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_apply_6d0b9cd50eb480c3\": function(p0i32,p1i32,p2i32) {\n\t\t\t\t\tif(wasmImportedFuncCache9 === undefined) wasmImportedFuncCache9 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache9[\"$b\"](p0i32,p1i32,p2i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_buffer_12d079cc21e14bdb\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache10 === undefined) wasmImportedFuncCache10 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache10[\"Fm\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_new_63b92bc8671ed464\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache11 === undefined) wasmImportedFuncCache11 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache11[\"$Z\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_set_a47bac70306a19a7\": function(p0i32,p1i32,p2i32) {\n\t\t\t\t\tif(wasmImportedFuncCache12 === undefined) wasmImportedFuncCache12 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache12[\"Wv\"](p0i32,p1i32,p2i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_length_c20a40f15020d68a\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache13 === undefined) wasmImportedFuncCache13 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache13[\"qY\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_byteLength_58f7b4fab1919d44\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache14 === undefined) wasmImportedFuncCache14 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache14[\"Yz\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_debug_string\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache15 === undefined) wasmImportedFuncCache15 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache15[\"rl\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_throw\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache16 === undefined) wasmImportedFuncCache16 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache16[\"Qn\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_memory\": function() {\n\t\t\t\t\tif(wasmImportedFuncCache17 === undefined) wasmImportedFuncCache17 = __webpack_require__.c[347].exports;\n\t\t\t\t\treturn wasmImportedFuncCache17[\"Py\"]();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t},\n};\n\nvar wasmModuleMap = {\n\t\"225\": [\n\t\t816\n\t]\n};\n\n// object with all WebAssembly.instance exports\n__webpack_require__.w = {};\n\n// Fetch + compile chunk loading for webassembly\n__webpack_require__.f.wasm = function(chunkId, promises) {\n\n\tvar wasmModules = wasmModuleMap[chunkId] || [];\n\n\twasmModules.forEach(function(wasmModuleId, idx) {\n\t\tvar installedWasmModuleData = installedWasmModules[wasmModuleId];\n\n\t\t// a Promise means \"currently loading\" or \"already loaded\".\n\t\tif(installedWasmModuleData)\n\t\t\tpromises.push(installedWasmModuleData);\n\t\telse {\n\t\t\tvar importObject = wasmImportObjects[wasmModuleId]();\n\t\t\tvar req = fetch(__webpack_require__.p + \"\" + {\"225\":{\"816\":\"9495c69393edaf0e1c7c\"}}[chunkId][wasmModuleId] + \".module.wasm\");\n\t\t\tvar promise;\n\t\t\tif(importObject && typeof importObject.then === 'function' && typeof WebAssembly.compileStreaming === 'function') {\n\t\t\t\tpromise = Promise.all([WebAssembly.compileStreaming(req), importObject]).then(function(items) {\n\t\t\t\t\treturn WebAssembly.instantiate(items[0], items[1]);\n\t\t\t\t});\n\t\t\t} else if(typeof WebAssembly.instantiateStreaming === 'function') {\n\t\t\t\tpromise = WebAssembly.instantiateStreaming(req, importObject);\n\t\t\t} else {\n\t\t\t\tvar bytesPromise = req.then(function(x) { return x.arrayBuffer(); });\n\t\t\t\tpromise = bytesPromise.then(function(bytes) {\n\t\t\t\t\treturn WebAssembly.instantiate(bytes, importObject);\n\t\t\t\t});\n\t\t\t}\n\t\t\tpromises.push(installedWasmModules[wasmModuleId] = promise.then(function(res) {\n\t\t\t\treturn __webpack_require__.w[wasmModuleId] = (res.instance || res).exports;\n\t\t\t}));\n\t\t}\n\t});\n};","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst ctx = self;\n// This needs to be a dynamic import to be able to use the wasm from inside sourmash\nlet Signature = null;\nlet ComputeParameters = null;\nconst smImport = import('sourmash').then((Sourmash) => {\n Signature = Sourmash.Signature;\n ComputeParameters = Sourmash.ComputeParameters;\n});\nfunction sketchFiles(files, options) {\n for (const file of files) {\n sketchFile(file, options);\n }\n}\nfunction sketchFile(file, options) {\n return __awaiter(this, void 0, void 0, function* () {\n yield Promise.all([smImport]);\n const params = new ComputeParameters();\n params.set_ksizes(new Uint32Array([options.ksize]));\n params.set_scaled(options.scaled);\n params.set_num(options.num);\n params.set_protein(options.is_protein);\n params.set_dayhoff(options.dayhoff);\n params.set_hp(options.hp);\n params.set_track_abundance(options.track_abundance);\n params.set_seed(options.seed);\n const sig = new Signature(params);\n const cb = function (progress) {\n ctx.postMessage({\n type: 'progress:read',\n filename: file.name,\n progress: progress * 100,\n });\n };\n try {\n sig.add_from_file(file, cb);\n }\n catch (e) {\n ctx.postMessage({\n type: 'signature:error',\n filename: file.name,\n error: e.message,\n });\n return;\n }\n ctx.postMessage({\n type: 'signature:generated',\n filename: file.name,\n signature: sig.to_json(),\n });\n });\n}\nexport default sketchFiles;\n// Respond to message from parent thread\nctx.addEventListener('message', (event) => {\n var _a, _b;\n if ((_b = (_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.length) {\n sketchFiles(event.data.files, event.data.options);\n }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".mgnify-sourmash-component.worker.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t814: 1\n};\n\n// importScripts chunk loading\nvar installChunk = (data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunkmgnify_sourmash_component\"] = self[\"webpackChunkmgnify_sourmash_component\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(489);\n"],"names":["wasmImportedFuncCache0","wasmImportedFuncCache1","wasmImportedFuncCache2","wasmImportedFuncCache3","wasmImportedFuncCache4","wasmImportedFuncCache5","wasmImportedFuncCache6","wasmImportedFuncCache7","wasmImportedFuncCache8","wasmImportedFuncCache9","wasmImportedFuncCache10","wasmImportedFuncCache11","wasmImportedFuncCache12","wasmImportedFuncCache13","wasmImportedFuncCache14","wasmImportedFuncCache15","wasmImportedFuncCache16","wasmImportedFuncCache17","installedWasmModules","wasmImportObjects","wasmModuleMap","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","ctx","self","Signature","ComputeParameters","smImport","Sourmash","sketchFile","file","options","this","all","params","set_ksizes","Uint32Array","ksize","set_scaled","scaled","set_num","num","set_protein","is_protein","set_dayhoff","dayhoff","set_hp","hp","set_track_abundance","track_abundance","set_seed","seed","sig","cb","progress","postMessage","type","filename","name","add_from_file","error","message","signature","to_json","addEventListener","event","_a","_b","data","files","length","sketchFiles","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","m","c","d","definition","key","o","Object","defineProperty","enumerable","get","f","chunkId","keys","reduce","promises","u","g","globalThis","Function","window","hmd","create","children","set","Error","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","scriptUrl","importScripts","location","document","currentScript","src","scripts","getElementsByTagName","i","test","replace","p","installedChunks","chunkLoadingGlobal","parentChunkLoadingFunction","push","bind","chunkIds","moreModules","runtime","pop","p0i32","p0f64","p1i32","p1f64","p2f64","p2i32","w","wasm","forEach","wasmModuleId","idx","installedWasmModuleData","promise","importObject","req","fetch","WebAssembly","compileStreaming","items","instantiate","instantiateStreaming","x","arrayBuffer","bytes","res","instance"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"mgnify-sourmash-component.worker.js","mappings":"uBAKIA,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAtBAC,EAuBAC,EAqFAC,E,iBC7GJ,IAAIC,EAAwC,SAAUC,EAASC,EAAYC,EAAGC,GAE1E,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAS,CAAE,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,GAAS,CAAE,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC7F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,GAAE,SAAUG,GAAWA,EAAQG,EAAQ,KAIjBO,KAAKR,EAAWK,EAAW,CAC7GH,GAAMN,EAAYA,EAAUa,MAAMhB,EAASC,GAAc,KAAKS,OAClE,GACJ,EAEA,MAAMO,EAAMC,KAEZ,IAAIC,EAAY,KACZC,EAAoB,KACxB,MAAMC,EAAW,6BAAmBN,MAAMO,IACtCH,EAAYG,EAASH,UACrBC,EAAoBE,EAASF,iBAAiB,IAOlD,SAASG,EAAWC,EAAMC,GACtB,OAAO1B,EAAU2B,UAAM,OAAQ,GAAQ,kBAC7BtB,QAAQuB,I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B8I,KACjCK,EAAMC,MAAM9E,EAAoBqD,EAAI,GAAK,CAAC,IAAM,CAAC,IAAM,yBAAyBjC,GAASoD,GAAgB,gBAG5GG,EADEC,GAA6C,mBAAtBA,EAAahI,MAA+D,mBAAjCmI,YAAYC,iBACtE/I,QAAQuB,IAAI,CAACuH,YAAYC,iBAAiBH,GAAMD,IAAehI,MAAK,SAASqI,GACtF,OAAOF,YAAYG,YAAYD,EAAM,GAAIA,EAAM,GAChD,IACqD,mBAArCF,YAAYI,qBAClBJ,YAAYI,qBAAqBN,EAAKD,GAE7BC,EAAIjI,MAAK,SAASwI,GAAK,OAAOA,EAAEC,aAAe,IAC3CzI,MAAK,SAAS0I,GACpC,OAAOP,YAAYG,YAAYI,EAAOV,EACvC,IAEDrD,EAASkC,KAAKhI,EAAqB+I,GAAgBG,EAAQ/H,MAAK,SAAS2I,GACxE,OAAOvF,EAAoBqE,EAAEG,IAAiBe,EAAIC,UAAYD,GAAKnF,OACpE,IACD,CACD,GACD,EYnJ0BJ,EAAoB,I","sources":["webpack://mgnify-sourmash-component/webpack/runtime/wasm chunk loading","webpack://mgnify-sourmash-component/./src/sketcher.worker.ts","webpack://mgnify-sourmash-component/webpack/bootstrap","webpack://mgnify-sourmash-component/webpack/runtime/define property getters","webpack://mgnify-sourmash-component/webpack/runtime/ensure chunk","webpack://mgnify-sourmash-component/webpack/runtime/get javascript chunk filename","webpack://mgnify-sourmash-component/webpack/runtime/global","webpack://mgnify-sourmash-component/webpack/runtime/harmony module decorator","webpack://mgnify-sourmash-component/webpack/runtime/hasOwnProperty shorthand","webpack://mgnify-sourmash-component/webpack/runtime/make namespace object","webpack://mgnify-sourmash-component/webpack/runtime/publicPath","webpack://mgnify-sourmash-component/webpack/runtime/importScripts chunk loading","webpack://mgnify-sourmash-component/webpack/startup"],"sourcesContent":["// object to store loaded and loading wasm modules\nvar installedWasmModules = {};\n\nfunction promiseResolve() { return Promise.resolve(); }\n\nvar wasmImportedFuncCache0;\nvar wasmImportedFuncCache1;\nvar wasmImportedFuncCache2;\nvar wasmImportedFuncCache3;\nvar wasmImportedFuncCache4;\nvar wasmImportedFuncCache5;\nvar wasmImportedFuncCache6;\nvar wasmImportedFuncCache7;\nvar wasmImportedFuncCache8;\nvar wasmImportedFuncCache9;\nvar wasmImportedFuncCache10;\nvar wasmImportedFuncCache11;\nvar wasmImportedFuncCache12;\nvar wasmImportedFuncCache13;\nvar wasmImportedFuncCache14;\nvar wasmImportedFuncCache15;\nvar wasmImportedFuncCache16;\nvar wasmImportedFuncCache17;\nvar wasmImportedFuncCache18;\nvar wasmImportObjects = {\n\t596: function() {\n\t\treturn {\n\t\t\t\"./sourmash_bg.js\": {\n\t\t\t\t\"__wbindgen_object_drop_ref\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache0 === undefined) wasmImportedFuncCache0 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache0[\"bk\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_number_new\": function(p0f64) {\n\t\t\t\t\tif(wasmImportedFuncCache1 === undefined) wasmImportedFuncCache1 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache1[\"QR\"](p0f64);\n\t\t\t\t},\n\t\t\t\t\"__wbg_name_f35eb93a73d94973\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache2 === undefined) wasmImportedFuncCache2 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache2[\"io\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_new_0737b8c81a08773b\": function() {\n\t\t\t\t\tif(wasmImportedFuncCache3 === undefined) wasmImportedFuncCache3 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache3[\"wx\"]();\n\t\t\t\t},\n\t\t\t\t\"__wbg_readAsArrayBuffer_b476c29c497a135e\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache4 === undefined) wasmImportedFuncCache4 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache4[\"PI\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_size_9c7e57fbd4f0f4b5\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache5 === undefined) wasmImportedFuncCache5 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache5[\"x5\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_slice_0da9ca5b030b84a7\": function(p0i32,p1f64,p2f64) {\n\t\t\t\t\tif(wasmImportedFuncCache6 === undefined) wasmImportedFuncCache6 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache6[\"bf\"](p0i32,p1f64,p2f64);\n\t\t\t\t},\n\t\t\t\t\"__wbg_newwithlength_66ae46612e7f0234\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache7 === undefined) wasmImportedFuncCache7 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache7[\"dD\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_set_d4638f722068f043\": function(p0i32,p1i32,p2i32) {\n\t\t\t\t\tif(wasmImportedFuncCache8 === undefined) wasmImportedFuncCache8 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache8[\"QU\"](p0i32,p1i32,p2i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_new_28c511d9baebfa89\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache9 === undefined) wasmImportedFuncCache9 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache9[\"mC\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_apply_6d0b9cd50eb480c3\": function(p0i32,p1i32,p2i32) {\n\t\t\t\t\tif(wasmImportedFuncCache10 === undefined) wasmImportedFuncCache10 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache10[\"$b\"](p0i32,p1i32,p2i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_buffer_12d079cc21e14bdb\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache11 === undefined) wasmImportedFuncCache11 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache11[\"Fm\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_new_63b92bc8671ed464\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache12 === undefined) wasmImportedFuncCache12 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache12[\"$Z\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_set_a47bac70306a19a7\": function(p0i32,p1i32,p2i32) {\n\t\t\t\t\tif(wasmImportedFuncCache13 === undefined) wasmImportedFuncCache13 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache13[\"Wv\"](p0i32,p1i32,p2i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_length_c20a40f15020d68a\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache14 === undefined) wasmImportedFuncCache14 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache14[\"qY\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbg_byteLength_58f7b4fab1919d44\": function(p0i32) {\n\t\t\t\t\tif(wasmImportedFuncCache15 === undefined) wasmImportedFuncCache15 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache15[\"Yz\"](p0i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_debug_string\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache16 === undefined) wasmImportedFuncCache16 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache16[\"rl\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_throw\": function(p0i32,p1i32) {\n\t\t\t\t\tif(wasmImportedFuncCache17 === undefined) wasmImportedFuncCache17 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache17[\"Qn\"](p0i32,p1i32);\n\t\t\t\t},\n\t\t\t\t\"__wbindgen_memory\": function() {\n\t\t\t\t\tif(wasmImportedFuncCache18 === undefined) wasmImportedFuncCache18 = __webpack_require__.c[247].exports;\n\t\t\t\t\treturn wasmImportedFuncCache18[\"Py\"]();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t},\n};\n\nvar wasmModuleMap = {\n\t\"517\": [\n\t\t596\n\t]\n};\n\n// object with all WebAssembly.instance exports\n__webpack_require__.w = {};\n\n// Fetch + compile chunk loading for webassembly\n__webpack_require__.f.wasm = function(chunkId, promises) {\n\n\tvar wasmModules = wasmModuleMap[chunkId] || [];\n\n\twasmModules.forEach(function(wasmModuleId, idx) {\n\t\tvar installedWasmModuleData = installedWasmModules[wasmModuleId];\n\n\t\t// a Promise means \"currently loading\" or \"already loaded\".\n\t\tif(installedWasmModuleData)\n\t\t\tpromises.push(installedWasmModuleData);\n\t\telse {\n\t\t\tvar importObject = wasmImportObjects[wasmModuleId]();\n\t\t\tvar req = fetch(__webpack_require__.p + \"\" + {\"517\":{\"596\":\"c9107968d210b9f322bc\"}}[chunkId][wasmModuleId] + \".module.wasm\");\n\t\t\tvar promise;\n\t\t\tif(importObject && typeof importObject.then === 'function' && typeof WebAssembly.compileStreaming === 'function') {\n\t\t\t\tpromise = Promise.all([WebAssembly.compileStreaming(req), importObject]).then(function(items) {\n\t\t\t\t\treturn WebAssembly.instantiate(items[0], items[1]);\n\t\t\t\t});\n\t\t\t} else if(typeof WebAssembly.instantiateStreaming === 'function') {\n\t\t\t\tpromise = WebAssembly.instantiateStreaming(req, importObject);\n\t\t\t} else {\n\t\t\t\tvar bytesPromise = req.then(function(x) { return x.arrayBuffer(); });\n\t\t\t\tpromise = bytesPromise.then(function(bytes) {\n\t\t\t\t\treturn WebAssembly.instantiate(bytes, importObject);\n\t\t\t\t});\n\t\t\t}\n\t\t\tpromises.push(installedWasmModules[wasmModuleId] = promise.then(function(res) {\n\t\t\t\treturn __webpack_require__.w[wasmModuleId] = (res.instance || res).exports;\n\t\t\t}));\n\t\t}\n\t});\n};","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst ctx = self;\n// This needs to be a dynamic import to be able to use the wasm from inside sourmash\nlet Signature = null;\nlet ComputeParameters = null;\nconst smImport = import('sourmash').then((Sourmash) => {\n Signature = Sourmash.Signature;\n ComputeParameters = Sourmash.ComputeParameters;\n});\nfunction sketchFiles(files, options) {\n for (const file of files) {\n sketchFile(file, options);\n }\n}\nfunction sketchFile(file, options) {\n return __awaiter(this, void 0, void 0, function* () {\n yield Promise.all([smImport]);\n const params = new ComputeParameters();\n params.set_ksizes(new Uint32Array([options.ksize]));\n params.set_scaled(options.scaled);\n params.set_num(options.num);\n params.set_protein(options.is_protein);\n params.set_dayhoff(options.dayhoff);\n params.set_hp(options.hp);\n params.set_track_abundance(options.track_abundance);\n params.set_seed(options.seed);\n const sig = new Signature(params);\n const cb = function (progress) {\n ctx.postMessage({\n type: 'progress:read',\n filename: file.name,\n progress: progress * 100,\n });\n };\n try {\n sig.add_from_file(file, cb);\n }\n catch (e) {\n ctx.postMessage({\n type: 'signature:error',\n filename: file.name,\n error: e.message,\n });\n return;\n }\n ctx.postMessage({\n type: 'signature:generated',\n filename: file.name,\n signature: sig.to_json(),\n });\n });\n}\nexport default sketchFiles;\n// Respond to message from parent thread\nctx.addEventListener('message', (event) => {\n var _a, _b;\n if ((_b = (_a = event === null || event === void 0 ? void 0 : event.data) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.length) {\n sketchFiles(event.data.files, event.data.options);\n }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".mgnify-sourmash-component.worker.js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t814: 1\n};\n\n// importScripts chunk loading\nvar installChunk = (data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunkmgnify_sourmash_component\"] = self[\"webpackChunkmgnify_sourmash_component\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(489);\n"],"names":["wasmImportedFuncCache0","wasmImportedFuncCache1","wasmImportedFuncCache2","wasmImportedFuncCache3","wasmImportedFuncCache4","wasmImportedFuncCache5","wasmImportedFuncCache6","wasmImportedFuncCache7","wasmImportedFuncCache8","wasmImportedFuncCache9","wasmImportedFuncCache10","wasmImportedFuncCache11","wasmImportedFuncCache12","wasmImportedFuncCache13","wasmImportedFuncCache14","wasmImportedFuncCache15","wasmImportedFuncCache16","wasmImportedFuncCache17","wasmImportedFuncCache18","installedWasmModules","wasmImportObjects","wasmModuleMap","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","ctx","self","Signature","ComputeParameters","smImport","Sourmash","sketchFile","file","options","this","all","params","set_ksizes","Uint32Array","ksize","set_scaled","scaled","set_num","num","set_protein","is_protein","set_dayhoff","dayhoff","set_hp","hp","set_track_abundance","track_abundance","set_seed","seed","sig","cb","progress","postMessage","type","filename","name","add_from_file","error","message","signature","to_json","addEventListener","event","_a","_b","data","files","length","sketchFiles","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","m","c","d","definition","key","o","Object","defineProperty","enumerable","get","f","chunkId","keys","reduce","promises","u","g","globalThis","Function","window","hmd","create","children","set","Error","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","scriptUrl","importScripts","location","document","currentScript","src","scripts","getElementsByTagName","i","test","replace","p","installedChunks","chunkLoadingGlobal","parentChunkLoadingFunction","push","bind","chunkIds","moreModules","runtime","pop","p0i32","p0f64","p1i32","p1f64","p2f64","p2i32","w","wasm","forEach","wasmModuleId","idx","installedWasmModuleData","promise","importObject","req","fetch","WebAssembly","compileStreaming","items","instantiate","instantiateStreaming","x","arrayBuffer","bytes","res","instance"],"sourceRoot":""} \ No newline at end of file