diff --git a/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js b/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js deleted file mode 100644 index d8d61da..0000000 --- a/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index 1e5e7a2..0000000 --- a/app/static/mgnify-component/517.mgnify-sourmash-component.worker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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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MiK,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 deleted file mode 100644 index 4784fb1..0000000 Binary files a/app/static/mgnify-component/c9107968d210b9f322bc.module.wasm and /dev/null differ diff --git a/app/static/mgnify-component/mgnify-sourmash-component.js b/app/static/mgnify-component/mgnify-sourmash-component.js index 06d3ebf..416c191 100644 --- a/app/static/mgnify-component/mgnify-sourmash-component.js +++ b/app/static/mgnify-component/mgnify-sourmash-component.js @@ -75,7 +75,7 @@ div.mode-selector button.selected { min-width: 50vw; height: 0.4em; } -`,lt=nt;var at=function(t,e,i,s){var r,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(n=(o<3?r(n):o>3?r(e,i,n):r(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};const ht=new function(){return new Worker(t.p+"mgnify-sourmash-component.worker.js")},dt=[".fa",".fasta",".fna",".gz",".fq"];let ct=class extends it{constructor(){super(),this.directory=!1,this.show_directory_checkbox=!1,this.show_signatures=!1,this.num=0,this.ksize=31,this.is_protein=!1,this.dayhoff=!1,this.hp=!1,this.seed=42,this.scaled=1e3,this.track_abundance=!1,this.selectedFiles=null,this.progress={},this.signatures={},this.errors={},ht.addEventListener("message",(t=>{var e;switch(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.type){case"progress:read":this.progress[t.data.filename]=t.data.progress,this.requestUpdate();break;case"signature:error":this.errors[t.data.filename]=t.data.error,this.dispatchEvent(new CustomEvent("sketchedError",{bubbles:!0,detail:{filename:t.data.filename,error:t.data.error}})),this.requestUpdate();break;case"signature:generated":this.signatures[t.data.filename]=t.data.signature,this.progress[t.data.filename]=100,this.dispatchEvent(new CustomEvent("sketched",{bubbles:!0,detail:{filename:t.data.filename,signature:t.data.signature}})),this.haveCompletedAllSignatures()&&this.dispatchEvent(new CustomEvent("sketchedall",{bubbles:!0,detail:{signatures:this.signatures,errors:this.errors}})),this.requestUpdate()}}))}haveCompletedAllSignatures(){return Object.keys(this.progress).every((t=>t in this.signatures||t in this.errors))}setChecked(t){this.directory=t.target.checked}clear(){this.selectedFiles=null,this.progress={},this.signatures={},this.errors={},this.renderRoot.querySelector("#sourmash-selector").value=null,this.requestUpdate()}renderSelectedFiles(){var t;return((null===(t=this.selectedFiles)||void 0===t?void 0:t.length)||0)<1?"":B` +`,lt=nt;var at=function(t,e,i,s){var r,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(n=(o<3?r(n):o>3?r(e,i,n):r(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};const ht=new function(){return new Worker(t.p+"mgnify-sourmash-component.worker.js")},dt=[".fa",".fasta",".fna",".gz",".fq",".fastq"];let ct=class extends it{constructor(){super(),this.directory=!1,this.show_directory_checkbox=!1,this.show_signatures=!1,this.num=0,this.ksize=31,this.is_protein=!1,this.dayhoff=!1,this.hp=!1,this.seed=42,this.scaled=1e3,this.track_abundance=!1,this.selectedFiles=null,this.progress={},this.signatures={},this.errors={},ht.addEventListener("message",(t=>{var e;switch(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.type){case"progress:read":this.progress[t.data.filename]=t.data.progress,this.requestUpdate();break;case"signature:error":this.errors[t.data.filename]=t.data.error,this.dispatchEvent(new CustomEvent("sketchedError",{bubbles:!0,detail:{filename:t.data.filename,error:t.data.error}})),this.requestUpdate();break;case"signature:generated":this.signatures[t.data.filename]=t.data.signature,this.progress[t.data.filename]=100,this.dispatchEvent(new CustomEvent("sketched",{bubbles:!0,detail:{filename:t.data.filename,signature:t.data.signature}})),this.haveCompletedAllSignatures()&&this.dispatchEvent(new CustomEvent("sketchedall",{bubbles:!0,detail:{signatures:this.signatures,errors:this.errors}})),this.requestUpdate()}}))}haveCompletedAllSignatures(){return Object.keys(this.progress).every((t=>t in this.signatures||t in this.errors))}setChecked(t){this.directory=t.target.checked}clear(){this.selectedFiles=null,this.progress={},this.signatures={},this.errors={},this.renderRoot.querySelector("#sourmash-selector").value=null,this.requestUpdate()}renderSelectedFiles(){var t;return((null===(t=this.selectedFiles)||void 0===t?void 0:t.length)||0)<1?"":B`

Selected Files: