@utoo/web 1.4.3 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ !function webpackUniversalModuleDefinition(root,factory){if("object"==typeof exports&&"object"==typeof module)module.exports=factory();else if("function"==typeof define&&define.amd)define([],factory);else{var a=factory();for(var i in a)("object"==typeof exports?exports:root)[i]=a[i]}}(self,()=>(()=>{"use strict";var __webpack_modules__={"./src/utoo/index.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{QR:()=>initSync});class BuildOptions{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,BuildOptionsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_buildoptions_free(ptr,0)}get config(){return takeObject(wasm.buildoptions_config(this.__wbg_ptr))}constructor(){const ret=wasm.buildoptions_new();return this.__wbg_ptr=ret>>>0,BuildOptionsFinalization.register(this,this.__wbg_ptr,this),this}set config(val){wasm.buildoptions_set_config(this.__wbg_ptr,addHeapObject(val))}get cleanup(){return 0!==wasm.__wbg_get_buildoptions_cleanup(this.__wbg_ptr)}set cleanup(arg0){wasm.__wbg_set_buildoptions_cleanup(this.__wbg_ptr,arg0)}}Symbol.dispose&&(BuildOptions.prototype[Symbol.dispose]=BuildOptions.prototype.free);class CreateSyncAccessHandleOptions{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,CreateSyncAccessHandleOptionsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_createsyncaccesshandleoptions_free(ptr,0)}}Symbol.dispose&&(CreateSyncAccessHandleOptions.prototype[Symbol.dispose]=CreateSyncAccessHandleOptions.prototype.free);class DirEntry{static __wrap(ptr){ptr>>>=0;const obj=Object.create(DirEntry.prototype);return obj.__wbg_ptr=ptr,DirEntryFinalization.register(obj,obj.__wbg_ptr,obj),obj}toJSON(){return{name:this.name,type:this.type}}toString(){return JSON.stringify(this)}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,DirEntryFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_direntry_free(ptr,0)}get name(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_direntry_name(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get type(){const ret=wasm.__wbg_get_direntry_type(this.__wbg_ptr);return __wbindgen_enum_DirEntryType[ret]}set name(arg0){const ptr0=passStringToWasm0(arg0,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.__wbg_set_direntry_name(this.__wbg_ptr,ptr0,len0)}set type(arg0){wasm.__wbg_set_direntry_type(this.__wbg_ptr,(__wbindgen_enum_DirEntryType.indexOf(arg0)+1||3)-1)}}function ERR_ABORT(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_ABORT(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_INVALID_STATE(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_INVALID_STATE(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_KEY_ALREADY_EXISTS(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_KEY_ALREADY_EXISTS(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_NOT_ALLOWED(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_NOT_ALLOWED(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_NOT_FOUND(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_NOT_FOUND(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_NO_MODIFICATION_ALLOWED(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_KEY_ALREADY_EXISTS(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_QUOTA_EXCEEDED(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_QUOTA_EXCEEDED(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_TYPE_MISMATCH(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_TYPE_MISMATCH(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}Symbol.dispose&&(DirEntry.prototype[Symbol.dispose]=DirEntry.prototype.free);class Fs{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,FsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_fs_free(ptr,0)}static copyFile(src,dst){const ptr0=passStringToWasm0(src,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(dst,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;return takeObject(wasm.fs_copyFile(ptr0,len0,ptr1,len1))}static copyFileSync(src,dst){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(src,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(dst,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;wasm.fs_copyFileSync(retptr,ptr0,len0,ptr1,len1);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static createDir(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_createDir(ptr0,len0))}static createDirAll(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_createDirAll(ptr0,len0))}static createDirAllSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_createDirAllSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static createDirSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_createDirSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static metadata(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_metadata(ptr0,len0))}static metadataSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_metadataSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);if(getDataViewMemory0().getInt32(retptr+8,!0))throw takeObject(r1);return Metadata.__wrap(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static read(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_read(ptr0,len0))}static readDir(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_readDir(ptr0,len0))}static readDirSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_readDirSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0),r2=getDataViewMemory0().getInt32(retptr+8,!0);if(getDataViewMemory0().getInt32(retptr+12,!0))throw takeObject(r2);var v2=getArrayJsValueFromWasm0(r0,r1).slice();return wasm.__wbindgen_export4(r0,4*r1,4),v2}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static readSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_readSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);if(getDataViewMemory0().getInt32(retptr+8,!0))throw takeObject(r1);return takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static readToString(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_readToString(ptr0,len0))}static removeDir(path,recursive){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_removeDir(ptr0,len0,recursive))}static removeDirSync(path,recursive){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_removeDirSync(retptr,ptr0,len0,recursive);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static removeFile(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_removeFile(ptr0,len0))}static removeFileSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_removeFileSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static write(path,content){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_write(ptr0,len0,addHeapObject(content)))}static writeString(path,content){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(content,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;return takeObject(wasm.fs_writeString(ptr0,len0,ptr1,len1))}static writeSync(path,content){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_writeSync(retptr,ptr0,len0,addHeapObject(content));var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Fs.prototype[Symbol.dispose]=Fs.prototype.free);class Metadata{static __wrap(ptr){ptr>>>=0;const obj=Object.create(Metadata.prototype);return obj.__wbg_ptr=ptr,MetadataFinalization.register(obj,obj.__wbg_ptr,obj),obj}toJSON(){return{file_size:this.file_size,type:this.type}}toString(){return JSON.stringify(this)}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,MetadataFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_metadata_free(ptr,0)}get file_size(){const ret=wasm.__wbg_get_metadata_file_size(this.__wbg_ptr);return BigInt.asUintN(64,ret)}get type(){const ret=wasm.__wbg_get_metadata_type(this.__wbg_ptr);return __wbindgen_enum_DirEntryType[ret]}set file_size(arg0){wasm.__wbg_set_metadata_file_size(this.__wbg_ptr,arg0)}set type(arg0){wasm.__wbg_set_metadata_type(this.__wbg_ptr,(__wbindgen_enum_DirEntryType.indexOf(arg0)+1||3)-1)}}Symbol.dispose&&(Metadata.prototype[Symbol.dispose]=Metadata.prototype.free);class Project{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,ProjectFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_project_free(ptr,0)}static build(options){_assertClass(options,BuildOptions);var ptr0=options.__destroy_into_raw();return takeObject(wasm.project_build(ptr0))}static get cwd(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.project_cwd(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}static deps(registry,concurrency){var ptr0=isLikeNone(registry)?0:passStringToWasm0(registry,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.project_deps(ptr0,len0,isLikeNone(concurrency)?4294967297:concurrency>>>0))}static entrypointsSubscribe(config,callback){return takeObject(wasm.project_entrypointsSubscribe(addHeapObject(config),addHeapObject(callback)))}static gzip(files){return takeObject(wasm.project_gzip(addHeapObject(files)))}static hmrEvents(identifier,callback){const ptr0=passStringToWasm0(identifier,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.project_hmrEvents(ptr0,len0,addHeapObject(callback)))}static init(thread_url){const ptr0=passStringToWasm0(thread_url,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.project_init(ptr0,len0)}static install(package_lock,max_concurrent_downloads){const ptr0=passStringToWasm0(package_lock,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.project_install(ptr0,len0,isLikeNone(max_concurrent_downloads)?4294967297:max_concurrent_downloads>>>0))}static setCwd(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.project_setCwd(ptr0,len0)}static sigMd5(content){return takeObject(wasm.project_sigMd5(addHeapObject(content)))}static updateInfoSubscribe(aggregation_ms,callback){wasm.project_updateInfoSubscribe(aggregation_ms,addHeapObject(callback))}static writeAllToDisk(callback){wasm.project_writeAllToDisk(addHeapObject(callback))}}Symbol.dispose&&(Project.prototype[Symbol.dispose]=Project.prototype.free);class RootTask{static __wrap(ptr){ptr>>>=0;const obj=Object.create(RootTask.prototype);return obj.__wbg_ptr=ptr,RootTaskFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,RootTaskFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_roottask_free(ptr,0)}}Symbol.dispose&&(RootTask.prototype[Symbol.dispose]=RootTask.prototype.free);class WasmTaskMessage{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WasmTaskMessage.prototype);return obj.__wbg_ptr=ptr,WasmTaskMessageFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WasmTaskMessageFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_wasmtaskmessage_free(ptr,0)}get taskId(){return wasm.__wbg_get_wasmtaskmessage_taskId(this.__wbg_ptr)>>>0}set taskId(arg0){wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr,arg0)}get data(){return takeObject(wasm.wasmtaskmessage_data(this.__wbg_ptr))}}Symbol.dispose&&(WasmTaskMessage.prototype[Symbol.dispose]=WasmTaskMessage.prototype.free);class WebWorkerCreation{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WebWorkerCreation.prototype);return obj.__wbg_ptr=ptr,WebWorkerCreationFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WebWorkerCreationFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_webworkercreation_free(ptr,0)}get options(){const ret=wasm.__wbg_get_webworkercreation_options(this.__wbg_ptr);return WebWorkerOptions.__wrap(ret)}set options(arg0){_assertClass(arg0,WebWorkerOptions);var ptr0=arg0.__destroy_into_raw();wasm.__wbg_set_webworkercreation_options(this.__wbg_ptr,ptr0)}}Symbol.dispose&&(WebWorkerCreation.prototype[Symbol.dispose]=WebWorkerCreation.prototype.free);class WebWorkerOptions{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WebWorkerOptions.prototype);return obj.__wbg_ptr=ptr,WebWorkerOptionsFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WebWorkerOptionsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_webworkeroptions_free(ptr,0)}get cwd(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_webworkeroptions_cwd(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get filename(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_webworkeroptions_filename(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}set cwd(arg0){const ptr0=passStringToWasm0(arg0,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr,ptr0,len0)}set filename(arg0){const ptr0=passStringToWasm0(arg0,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr,ptr0,len0)}}Symbol.dispose&&(WebWorkerOptions.prototype[Symbol.dispose]=WebWorkerOptions.prototype.free);class WebWorkerTermination{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WebWorkerTermination.prototype);return obj.__wbg_ptr=ptr,WebWorkerTerminationFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WebWorkerTerminationFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_webworkertermination_free(ptr,0)}get options(){const ret=wasm.__wbg_get_webworkertermination_options(this.__wbg_ptr);return WebWorkerOptions.__wrap(ret)}get workerId(){return wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr)>>>0}set options(arg0){_assertClass(arg0,WebWorkerOptions);var ptr0=arg0.__destroy_into_raw();wasm.__wbg_set_webworkertermination_options(this.__wbg_ptr,ptr0)}set workerId(arg0){wasm.__wbg_set_webworkertermination_workerId(this.__wbg_ptr,arg0)}}function getWasmMemory(){return takeObject(wasm.getWasmMemory())}function getWasmModule(){return takeObject(wasm.getWasmModule())}function initLogFilter(filter){const ptr0=passStringToWasm0(filter,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.initLogFilter(ptr0,len0)}function init_pack(){wasm.init_pack()}function recvTaskMessageInWorker(worker_id){return takeObject(wasm.recvTaskMessageInWorker(worker_id))}function registerWorkerScheduler(creator,terminator){wasm.registerWorkerScheduler(addHeapObject(creator),addHeapObject(terminator))}function sendTaskMessage(message){return takeObject(wasm.sendTaskMessage(addHeapObject(message)))}function wasm_thread_entry_point(ptr){wasm.wasm_thread_entry_point(ptr)}function workerCreated(worker_id){wasm.workerCreated(worker_id)}function __wbg_get_imports(memory){const import0={__proto__:null,__wbg_Error_8c4e43fe74559d73:function(arg0,arg1){return addHeapObject(Error(getStringFromWasm0(arg0,arg1)))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(arg0,arg1){const ptr1=passStringToWasm0(debugString(getObject(arg1)),wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg___wbindgen_is_function_0095a73b8b156f76:function(arg0){return"function"==typeof getObject(arg0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(arg0){return null===getObject(arg0)},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(arg0){const val=getObject(arg0);return"object"==typeof val&&null!==val},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(arg0){return void 0===getObject(arg0)},__wbg___wbindgen_memory_bd1fbcf21fbef3c8:function(){return addHeapObject(wasm.memory)},__wbg___wbindgen_module_f6b8052d79c1cc16:function(){return addHeapObject(wasmModule)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(arg0,arg1){const obj=getObject(arg1),ret="number"==typeof obj?obj:void 0;getDataViewMemory0().setFloat64(arg0+8,isLikeNone(ret)?0:ret,!0),getDataViewMemory0().setInt32(arg0+0,!isLikeNone(ret),!0)},__wbg___wbindgen_rethrow_05525c567f154472:function(arg0){throw takeObject(arg0)},__wbg___wbindgen_string_get_72fb696202c56729:function(arg0,arg1){const obj=getObject(arg1),ret="string"==typeof obj?obj:void 0;var ptr1=isLikeNone(ret)?0:passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(arg0,arg1){throw new Error(getStringFromWasm0(arg0,arg1))},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(arg0){getObject(arg0)._wbg_cb_unref()},__wbg_abort_2f0584e03e8e3950:function(arg0){getObject(arg0).abort()},__wbg_abort_d549b92d3c665de1:function(arg0,arg1){getObject(arg0).abort(getObject(arg1))},__wbg_append_a992ccc37aa62dc4:function(){return handleError(function(arg0,arg1,arg2,arg3,arg4){getObject(arg0).append(getStringFromWasm0(arg1,arg2),getStringFromWasm0(arg3,arg4))},arguments)},__wbg_arrayBuffer_05ce1af23e9064e8:function(arg0){return addHeapObject(getObject(arg0).arrayBuffer())},__wbg_arrayBuffer_bb54076166006c39:function(){return handleError(function(arg0){return addHeapObject(getObject(arg0).arrayBuffer())},arguments)},__wbg_async_79f2a61f9d0b31cf:function(arg0){return getObject(arg0).async},__wbg_buffer_7b5f53e46557d8f1:function(arg0){return addHeapObject(getObject(arg0).buffer)},__wbg_call_389efe28435a9388:function(){return handleError(function(arg0,arg1){return addHeapObject(getObject(arg0).call(getObject(arg1)))},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).call(getObject(arg1),getObject(arg2)))},arguments)},__wbg_changedHandle_123696eaeaff32d7:function(arg0){const ret=getObject(arg0).changedHandle;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_clearTimeout_7a42b49784aea641:function(arg0){return addHeapObject(clearTimeout(takeObject(arg0)))},__wbg_close_4ba312253c424342:function(arg0){getObject(arg0).close()},__wbg_close_83fb809aca3de7f9:function(arg0){return addHeapObject(getObject(arg0).close())},__wbg_createObjectURL_918185db6a10a0c8:function(){return handleError(function(arg0,arg1){const ptr1=passStringToWasm0(URL.createObjectURL(getObject(arg1)),wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},arguments)},__wbg_createWritable_80bc5de374448b42:function(arg0){return addHeapObject(getObject(arg0).createWritable())},__wbg_data_5330da50312d0bc1:function(arg0){return addHeapObject(getObject(arg0).data)},__wbg_debug_46a93995fc6f8820:function(arg0,arg1,arg2,arg3){console.debug(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_debug_a4099fa12db6cd61:function(arg0){console.debug(getObject(arg0))},__wbg_direntry_new:function(arg0){return addHeapObject(DirEntry.__wrap(arg0))},__wbg_done_57b39ecd9addfe81:function(arg0){return getObject(arg0).done},__wbg_entries_04a4b982351a717f:function(arg0){return addHeapObject(getObject(arg0).entries())},__wbg_error_7534b8e9a36f1ab4:function(arg0,arg1){let deferred0_0,deferred0_1;try{deferred0_0=arg0,deferred0_1=arg1,console.error(getStringFromWasm0(arg0,arg1))}finally{wasm.__wbindgen_export4(deferred0_0,deferred0_1,1)}},__wbg_error_794d0ffc9d00d5c3:function(arg0,arg1,arg2,arg3){console.error(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_error_9a7fe3f932034cde:function(arg0){console.error(getObject(arg0))},__wbg_eval_3f0b9f0cbaf45a34:function(){return handleError(function(arg0,arg1){const ret=eval(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},arguments)},__wbg_fetch_74a3e84ebd2c9a0e:function(arg0){return addHeapObject(fetch(getObject(arg0)))},__wbg_fetch_afb6a4b6cacf876d:function(arg0,arg1){return addHeapObject(getObject(arg0).fetch(getObject(arg1)))},__wbg_flush_22b785060592ca5f:function(){return handleError(function(arg0){getObject(arg0).flush()},arguments)},__wbg_from_bddd64e7d5ff6941:function(arg0){return addHeapObject(Array.from(getObject(arg0)))},__wbg_getDirectoryHandle_87ce8ca53cf4d8dc:function(arg0,arg1,arg2,arg3){return addHeapObject(getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1,arg2),getObject(arg3)))},__wbg_getDirectory_b66ae3e79f902982:function(arg0){return addHeapObject(getObject(arg0).getDirectory())},__wbg_getFileHandle_ff4ab917b45affb3:function(arg0,arg1,arg2,arg3){return addHeapObject(getObject(arg0).getFileHandle(getStringFromWasm0(arg1,arg2),getObject(arg3)))},__wbg_getFile_115354fc950edc88:function(arg0){return addHeapObject(getObject(arg0).getFile())},__wbg_getRandomValues_80578b2ff2a093ba:function(){return handleError(function(arg0){globalThis.crypto.getRandomValues(getObject(arg0))},arguments)},__wbg_get_9b94d73e6221f75c:function(arg0,arg1){return addHeapObject(getObject(arg0)[arg1>>>0])},__wbg_get_b3ed3ad4be2bc8ac:function(){return handleError(function(arg0,arg1){return addHeapObject(Reflect.get(getObject(arg0),getObject(arg1)))},arguments)},__wbg_has_d4e53238966c12b6:function(){return handleError(function(arg0,arg1){return Reflect.has(getObject(arg0),getObject(arg1))},arguments)},__wbg_headers_59a2938db9f80985:function(arg0){return addHeapObject(getObject(arg0).headers)},__wbg_info_148d043840582012:function(arg0){console.info(getObject(arg0))},__wbg_info_9e602cf10c5c690b:function(arg0,arg1,arg2,arg3){console.info(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_instanceof_DedicatedWorkerGlobalScope_1506b3d017799d48:function(arg0){let result;try{result=getObject(arg0)instanceof DedicatedWorkerGlobalScope}catch(_){result=!1}return result},__wbg_instanceof_DomException_99c177193e554b75:function(arg0){let result;try{result=getObject(arg0)instanceof DOMException}catch(_){result=!1}return result},__wbg_instanceof_FileSystemDirectoryHandle_56a167039d614548:function(arg0){let result;try{result=getObject(arg0)instanceof FileSystemDirectoryHandle}catch(_){result=!1}return result},__wbg_instanceof_Response_ee1d54d79ae41977:function(arg0){let result;try{result=getObject(arg0)instanceof Response}catch(_){result=!1}return result},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(arg0){let result;try{result=getObject(arg0)instanceof Uint8Array}catch(_){result=!1}return result},__wbg_isArray_d314bb98fcf08331:function(arg0){return Array.isArray(getObject(arg0))},__wbg_iterator_6ff6560ca1568e55:function(){return addHeapObject(Symbol.iterator)},__wbg_kind_90769d6c16faeafd:function(arg0){const ret=getObject(arg0).kind;return(__wbindgen_enum_FileSystemHandleKind.indexOf(ret)+1||3)-1},__wbg_length_32ed9a279acd054c:function(arg0){return getObject(arg0).length},__wbg_length_35a7bace40f36eac:function(arg0){return getObject(arg0).length},__wbg_message_0b2b0298a231b0d4:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).message,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_metadata_new:function(arg0){return addHeapObject(Metadata.__wrap(arg0))},__wbg_name_242753e5110cd756:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).name,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_navigator_4478931f32ebca57:function(arg0){return addHeapObject(getObject(arg0).navigator)},__wbg_new_361308b2356cecd0:function(){return addHeapObject(new Object)},__wbg_new_3eb36ae241fe6f44:function(){return addHeapObject(new Array)},__wbg_new_4f8f3c123e474358:function(){return handleError(function(arg0,arg1){return addHeapObject(new Worker(getStringFromWasm0(arg0,arg1)))},arguments)},__wbg_new_64284bd487f9d239:function(){return handleError(function(){return addHeapObject(new Headers)},arguments)},__wbg_new_72c627ba80de1c21:function(arg0){return addHeapObject(new Int32Array(getObject(arg0)))},__wbg_new_8a6f238a6ece86ea:function(){return addHeapObject(new Error)},__wbg_new_8ec5801b39d6f862:function(arg0){return addHeapObject(new FileSystemObserver(getObject(arg0)))},__wbg_new_b5d9e2fb389fef91:function(arg0,arg1){try{var state0={a:arg0,b:arg1};const ret=new Promise((arg0,arg1)=>{const a=state0.a;state0.a=0;try{return __wasm_bindgen_func_elem_3344(a,state0.b,arg0,arg1)}finally{state0.a=a}});return addHeapObject(ret)}finally{state0.a=state0.b=0}},__wbg_new_b949e7f56150a5d1:function(){return handleError(function(){return addHeapObject(new AbortController)},arguments)},__wbg_new_dd2b680c8bf6ae29:function(arg0){return addHeapObject(new Uint8Array(getObject(arg0)))},__wbg_new_from_slice_a3d2629dc1826784:function(arg0,arg1){return addHeapObject(new Uint8Array(getArrayU8FromWasm0(arg0,arg1)))},__wbg_new_no_args_1c7c842f08d00ebb:function(arg0,arg1){return addHeapObject(new Function(getStringFromWasm0(arg0,arg1)))},__wbg_new_with_length_a2c39cbe88fd8ff1:function(arg0){return addHeapObject(new Uint8Array(arg0>>>0))},__wbg_new_with_options_145afba922ad3703:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(new Worker(getStringFromWasm0(arg0,arg1),getObject(arg2)))},arguments)},__wbg_new_with_str_and_init_a61cbc6bdef21614:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(new Request(getStringFromWasm0(arg0,arg1),getObject(arg2)))},arguments)},__wbg_new_with_str_sequence_cea2c0571d6dc6ab:function(){return handleError(function(arg0){return addHeapObject(new Blob(getObject(arg0)))},arguments)},__wbg_next_0a5e0f8af98146aa:function(){return handleError(function(arg0){return addHeapObject(getObject(arg0).next())},arguments)},__wbg_next_3482f54c49e8af19:function(){return handleError(function(arg0){return addHeapObject(getObject(arg0).next())},arguments)},__wbg_next_418f80d8f5303233:function(arg0){return addHeapObject(getObject(arg0).next)},__wbg_now_0dc4920a47cf7280:function(arg0){return getObject(arg0).now()},__wbg_now_a3af9a2f4bbaa4d1:function(){return Date.now()},__wbg_observe_32235b5e6195d4ab:function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).observe(getObject(arg1),getObject(arg2)))},__wbg_of_ddc0942b0dce16a1:function(arg0,arg1,arg2){return addHeapObject(Array.of(getObject(arg0),getObject(arg1),getObject(arg2)))},__wbg_parse_708461a1feddfb38:function(){return handleError(function(arg0,arg1){return addHeapObject(JSON.parse(getStringFromWasm0(arg0,arg1)))},arguments)},__wbg_performance_6adc3b899e448a23:function(arg0){return addHeapObject(getObject(arg0).performance)},__wbg_postMessage_2041f4e90af61318:function(){return handleError(function(arg0,arg1){getObject(arg0).postMessage(getObject(arg1))},arguments)},__wbg_postMessage_771ef3293a28bbac:function(){return handleError(function(arg0,arg1){getObject(arg0).postMessage(getObject(arg1))},arguments)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(arg0,arg1,arg2){Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0,arg1),getObject(arg2))},__wbg_push_8ffdcb2063340ba5:function(arg0,arg1){return getObject(arg0).push(getObject(arg1))},__wbg_queueMicrotask_0aa0a927f78f5d98:function(arg0){return addHeapObject(getObject(arg0).queueMicrotask)},__wbg_queueMicrotask_5bb536982f78a56f:function(arg0){queueMicrotask(getObject(arg0))},__wbg_random_912284dbf636f269:function(){return Math.random()},__wbg_relativePathComponents_bc482403cb6d7ea9:function(arg0){return addHeapObject(getObject(arg0).relativePathComponents)},__wbg_removeEntry_c4efffdd318b51a1:function(arg0,arg1,arg2,arg3){return addHeapObject(getObject(arg0).removeEntry(getStringFromWasm0(arg1,arg2),getObject(arg3)))},__wbg_resolve_002c4b7d9d8f6b64:function(arg0){return addHeapObject(Promise.resolve(getObject(arg0)))},__wbg_roottask_new:function(arg0){return addHeapObject(RootTask.__wrap(arg0))},__wbg_setTimeout_63008613644b07af:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).setTimeout(getObject(arg1),arg2))},arguments)},__wbg_setTimeout_7bb3429662ab1e70:function(arg0,arg1){return addHeapObject(setTimeout(getObject(arg0),arg1))},__wbg_set_at_e453cf3f4be9e2d9:function(arg0,arg1){getObject(arg0).at=arg1},__wbg_set_body_9a7e00afe3cfe244:function(arg0,arg1){getObject(arg0).body=getObject(arg1)},__wbg_set_cache_315a3ed773a41543:function(arg0,arg1){getObject(arg0).cache=__wbindgen_enum_RequestCache[arg1]},__wbg_set_create_1f902c5936adde7d:function(arg0,arg1){getObject(arg0).create=0!==arg1},__wbg_set_create_c95ddca018fac9ce:function(arg0,arg1){getObject(arg0).create=0!==arg1},__wbg_set_credentials_c4a58d2e05ef24fb:function(arg0,arg1){getObject(arg0).credentials=__wbindgen_enum_RequestCredentials[arg1]},__wbg_set_f43e577aea94465b:function(arg0,arg1,arg2){getObject(arg0)[arg1>>>0]=takeObject(arg2)},__wbg_set_headers_cfc5f4b2c1f20549:function(arg0,arg1){getObject(arg0).headers=getObject(arg1)},__wbg_set_method_c3e20375f5ae7fac:function(arg0,arg1,arg2){getObject(arg0).method=getStringFromWasm0(arg1,arg2)},__wbg_set_mode_b13642c312648202:function(arg0,arg1){getObject(arg0).mode=__wbindgen_enum_RequestMode[arg1]},__wbg_set_name_49b9ecba7f58f2e5:function(arg0,arg1,arg2){getObject(arg0).name=getStringFromWasm0(arg1,arg2)},__wbg_set_onmessage_6ed41050e4a5cee2:function(arg0,arg1){getObject(arg0).onmessage=getObject(arg1)},__wbg_set_recursive_65ed07df892b4885:function(arg0,arg1){getObject(arg0).recursive=0!==arg1},__wbg_set_recursive_f5d3416098328110:function(arg0,arg1){getObject(arg0).recursive=0!==arg1},__wbg_set_signal_f2d3f8599248896d:function(arg0,arg1){getObject(arg0).signal=getObject(arg1)},__wbg_set_type_e127f26b78d78bfc:function(arg0,arg1){getObject(arg0).type=__wbindgen_enum_WorkerType[arg1]},__wbg_signal_d1285ecab4ebc5ad:function(arg0){return addHeapObject(getObject(arg0).signal)},__wbg_size_e05d31cc6049815f:function(arg0){return getObject(arg0).size},__wbg_slice_566a15f3214fa52e:function(){return handleError(function(arg0,arg1,arg2,arg3,arg4){return addHeapObject(getObject(arg0).slice(arg1,arg2,getStringFromWasm0(arg3,arg4)))},arguments)},__wbg_stack_0ed75d68575b0f3c:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).stack,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){const ret=void 0===__webpack_require__.g?null:__webpack_require__.g;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){const ret="undefined"==typeof globalThis?null:globalThis;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){const ret="undefined"==typeof self?null:self;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){const ret="undefined"==typeof window?null:window;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_status_89d7e803db911ee7:function(arg0){return getObject(arg0).status},__wbg_storage_c002b53bc4883299:function(arg0){return addHeapObject(getObject(arg0).storage)},__wbg_stringify_8d1cc6ff383e8bae:function(){return handleError(function(arg0){return addHeapObject(JSON.stringify(getObject(arg0)))},arguments)},__wbg_subarray_a96e1fef17ed23cb:function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).subarray(arg1>>>0,arg2>>>0))},__wbg_then_0d9fe2c7b1857d32:function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).then(getObject(arg1),getObject(arg2)))},__wbg_then_b9e7b3b5f1a9e1b5:function(arg0,arg1){return addHeapObject(getObject(arg0).then(getObject(arg1)))},__wbg_toString_964ff7fe6eca8362:function(arg0){return addHeapObject(getObject(arg0).toString())},__wbg_truncate_dc661fdcb0062fa7:function(){return handleError(function(arg0,arg1){getObject(arg0).truncate(arg1>>>0)},arguments)},__wbg_type_03dfe4621735e528:function(arg0){const ret=getObject(arg0).type;return(__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret)+1||7)-1},__wbg_url_c484c26b1fbf5126:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).url,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_value_0546255b415e96c1:function(arg0){return addHeapObject(getObject(arg0).value)},__wbg_value_fe6ee34af5dc3dce:function(arg0){return addHeapObject(getObject(arg0).value)},__wbg_waitAsync_a58b2134bff39c3e:function(arg0,arg1,arg2){return addHeapObject(Atomics.waitAsync(getObject(arg0),arg1>>>0,arg2))},__wbg_waitAsync_c0a39a7d3318d91e:function(){return addHeapObject(Atomics.waitAsync)},__wbg_warn_a40b971467b219c7:function(arg0,arg1,arg2,arg3){console.warn(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_warn_f7ae1b2e66ccb930:function(arg0){console.warn(getObject(arg0))},__wbg_wasmtaskmessage_new:function(arg0){return addHeapObject(WasmTaskMessage.__wrap(arg0))},__wbg_webworkercreation_new:function(arg0){return addHeapObject(WebWorkerCreation.__wrap(arg0))},__wbg_webworkertermination_new:function(arg0){return addHeapObject(WebWorkerTermination.__wrap(arg0))},__wbg_write_2d59337cc496919d:function(){return handleError(function(arg0,arg1,arg2,arg3){return getObject(arg0).write(getArrayU8FromWasm0(arg1,arg2),getObject(arg3))},arguments)},__wbg_write_37f5a62a24da662f:function(){return handleError(function(arg0,arg1){return addHeapObject(getObject(arg0).write(getObject(arg1)))},arguments)},__wbindgen_cast_0000000000000001:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_79643))},__wbindgen_cast_0000000000000002:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_79643))},__wbindgen_cast_0000000000000003:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_79679))},__wbindgen_cast_0000000000000004:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_19971))},__wbindgen_cast_0000000000000005:function(arg0,arg1){return addHeapObject(makeClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_79005,__wasm_bindgen_func_elem_79006))},__wbindgen_cast_0000000000000006:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_79710,__wasm_bindgen_func_elem_19971))},__wbindgen_cast_0000000000000007:function(arg0){return addHeapObject(arg0)},__wbindgen_cast_0000000000000008:function(arg0,arg1){return addHeapObject(getStringFromWasm0(arg0,arg1))},__wbindgen_cast_0000000000000009:function(arg0,arg1){var v0=getArrayJsValueFromWasm0(arg0,arg1).slice();wasm.__wbindgen_export4(arg0,4*arg1,4);return addHeapObject(v0)},__wbindgen_link_0b1f76d235fd2b86:function(arg0){const val="onmessage = function (ev) {\n let [ia, index, value] = ev.data;\n ia = new Int32Array(ia.buffer);\n let result = Atomics.wait(ia, index, value);\n postMessage(result);\n };\n ",ptr1=passStringToWasm0(void 0===URL.createObjectURL?"data:application/javascript,"+encodeURIComponent(val):URL.createObjectURL(new Blob([val],{type:"text/javascript"})),wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbindgen_object_clone_ref:function(arg0){return addHeapObject(getObject(arg0))},__wbindgen_object_drop_ref:function(arg0){takeObject(arg0)},memory:memory||new WebAssembly.Memory({initial:1025,maximum:65536,shared:!0})};return{__proto__:null,"./index_bg.js":import0}}function __wasm_bindgen_func_elem_19971(arg0,arg1){wasm.__wasm_bindgen_func_elem_19971(arg0,arg1)}function __wasm_bindgen_func_elem_79643(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_79643(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_79679(arg0,arg1,arg2){try{wasm.__wasm_bindgen_func_elem_79679(arg0,arg1,addBorrowedObject(arg2))}finally{heap[stack_pointer++]=void 0}}function __wasm_bindgen_func_elem_79006(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_79006(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_3344(arg0,arg1,arg2,arg3){wasm.__wasm_bindgen_func_elem_3344(arg0,arg1,addHeapObject(arg2),addHeapObject(arg3))}Symbol.dispose&&(WebWorkerTermination.prototype[Symbol.dispose]=WebWorkerTermination.prototype.free);const __wbindgen_enum_DirEntryType=["file","directory"],__wbindgen_enum_FileSystemChangeRecordType=["appeared","disappeared","errored","modified","moved","unknown"],__wbindgen_enum_FileSystemHandleKind=["file","directory"],__wbindgen_enum_RequestCache=["default","no-store","reload","no-cache","force-cache","only-if-cached"],__wbindgen_enum_RequestCredentials=["omit","same-origin","include"],__wbindgen_enum_RequestMode=["same-origin","no-cors","cors","navigate"],__wbindgen_enum_WorkerType=["classic","module"],BuildOptionsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_buildoptions_free(ptr>>>0,1)),CreateSyncAccessHandleOptionsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_createsyncaccesshandleoptions_free(ptr>>>0,1)),DirEntryFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_direntry_free(ptr>>>0,1)),FsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_fs_free(ptr>>>0,1)),MetadataFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_metadata_free(ptr>>>0,1)),ProjectFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_project_free(ptr>>>0,1)),RootTaskFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_roottask_free(ptr>>>0,1)),WasmTaskMessageFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_wasmtaskmessage_free(ptr>>>0,1)),WebWorkerCreationFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_webworkercreation_free(ptr>>>0,1)),WebWorkerOptionsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_webworkeroptions_free(ptr>>>0,1)),WebWorkerTerminationFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_webworkertermination_free(ptr>>>0,1));function addHeapObject(obj){heap_next===heap.length&&heap.push(heap.length+1);const idx=heap_next;return heap_next=heap[idx],heap[idx]=obj,idx}function _assertClass(instance,klass){if(!(instance instanceof klass))throw new Error(`expected instance of ${klass.name}`)}function addBorrowedObject(obj){if(1==stack_pointer)throw new Error("out of js stack");return heap[--stack_pointer]=obj,stack_pointer}const CLOSURE_DTORS="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(state=>state.dtor(state.a,state.b));function debugString(val){const type=typeof val;if("number"==type||"boolean"==type||null==val)return`${val}`;if("string"==type)return`"${val}"`;if("symbol"==type){const description=val.description;return null==description?"Symbol":`Symbol(${description})`}if("function"==type){const name=val.name;return"string"==typeof name&&name.length>0?`Function(${name})`:"Function"}if(Array.isArray(val)){const length=val.length;let debug="[";length>0&&(debug+=debugString(val[0]));for(let i=1;i<length;i++)debug+=", "+debugString(val[i]);return debug+="]",debug}const builtInMatches=/\[object ([^\]]+)\]/.exec(toString.call(val));let className;if(!(builtInMatches&&builtInMatches.length>1))return toString.call(val);if(className=builtInMatches[1],"Object"==className)try{return"Object("+JSON.stringify(val)+")"}catch(_){return"Object"}return val instanceof Error?`${val.name}: ${val.message}\n${val.stack}`:className}function dropObject(idx){idx<132||(heap[idx]=heap_next,heap_next=idx)}function getArrayJsValueFromWasm0(ptr,len){ptr>>>=0;const mem=getDataViewMemory0(),result=[];for(let i=ptr;i<ptr+4*len;i+=4)result.push(takeObject(mem.getUint32(i,!0)));return result}function getArrayU8FromWasm0(ptr,len){return ptr>>>=0,getUint8ArrayMemory0().subarray(ptr/1,ptr/1+len)}let cachedDataViewMemory0=null;function getDataViewMemory0(){return null!==cachedDataViewMemory0&&cachedDataViewMemory0.buffer===wasm.memory.buffer||(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function getStringFromWasm0(ptr,len){return decodeText(ptr>>>=0,len)}let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return null!==cachedUint8ArrayMemory0&&cachedUint8ArrayMemory0.buffer===wasm.memory.buffer||(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getObject(idx){return heap[idx]}function handleError(f,args){try{return f.apply(this,args)}catch(e){wasm.__wbindgen_export3(addHeapObject(e))}}let heap=new Array(128).fill(void 0);heap.push(void 0,null,!0,!1);let heap_next=heap.length;function isLikeNone(x){return null==x}function makeClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor},real=(...args)=>{state.cnt++;try{return f(state.a,state.b,...args)}finally{real._wbg_cb_unref()}};return real._wbg_cb_unref=()=>{0===--state.cnt&&(state.dtor(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))},CLOSURE_DTORS.register(real,state,state),real}function makeMutClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor},real=(...args)=>{state.cnt++;const a=state.a;state.a=0;try{return f(a,state.b,...args)}finally{state.a=a,real._wbg_cb_unref()}};return real._wbg_cb_unref=()=>{0===--state.cnt&&(state.dtor(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))},CLOSURE_DTORS.register(real,state,state),real}function passStringToWasm0(arg,malloc,realloc){if(void 0===realloc){const buf=cachedTextEncoder.encode(arg),ptr=malloc(buf.length,1)>>>0;return getUint8ArrayMemory0().subarray(ptr,ptr+buf.length).set(buf),WASM_VECTOR_LEN=buf.length,ptr}let len=arg.length,ptr=malloc(len,1)>>>0;const mem=getUint8ArrayMemory0();let offset=0;for(;offset<len;offset++){const code=arg.charCodeAt(offset);if(code>127)break;mem[ptr+offset]=code}if(offset!==len){0!==offset&&(arg=arg.slice(offset)),ptr=realloc(ptr,len,len=offset+3*arg.length,1)>>>0;const view=getUint8ArrayMemory0().subarray(ptr+offset,ptr+len);offset+=cachedTextEncoder.encodeInto(arg,view).written,ptr=realloc(ptr,len,offset,1)>>>0}return WASM_VECTOR_LEN=offset,ptr}let stack_pointer=128;function takeObject(idx){const ret=getObject(idx);return dropObject(idx),ret}let cachedTextDecoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;cachedTextDecoder&&cachedTextDecoder.decode();const MAX_SAFARI_DECODE_BYTES=2146435072;let numBytesDecoded=0;function decodeText(ptr,len){return numBytesDecoded+=len,numBytesDecoded>=MAX_SAFARI_DECODE_BYTES&&(cachedTextDecoder=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),cachedTextDecoder.decode(),numBytesDecoded=len),cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr,ptr+len))}const cachedTextEncoder="undefined"!=typeof TextEncoder?new TextEncoder:void 0;cachedTextEncoder&&(cachedTextEncoder.encodeInto=function(arg,view){const buf=cachedTextEncoder.encode(arg);return view.set(buf),{read:arg.length,written:buf.length}});let WASM_VECTOR_LEN=0,wasmModule,wasm;function __wbg_finalize_init(instance,module,thread_stack_size){if(wasm=instance.exports,wasmModule=module,cachedDataViewMemory0=null,cachedUint8ArrayMemory0=null,void 0!==thread_stack_size&&("number"!=typeof thread_stack_size||0===thread_stack_size||thread_stack_size%65536!=0))throw"invalid stack size";return wasm.__wbindgen_start(thread_stack_size),wasm}async function __wbg_load(module,imports){if("function"==typeof Response&&module instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(module,imports)}catch(e){if(!(module.ok&&function expectedResponseType(type){switch(type){case"basic":case"cors":case"default":return!0}return!1}(module.type))||"application/wasm"===module.headers.get("Content-Type"))throw e;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e)}const bytes=await module.arrayBuffer();return await WebAssembly.instantiate(bytes,imports)}{const instance=await WebAssembly.instantiate(module,imports);return instance instanceof WebAssembly.Instance?{instance,module}:instance}}function initSync(module,memory){if(void 0!==wasm)return wasm;let thread_stack_size;void 0!==module&&(Object.getPrototypeOf(module)===Object.prototype?({module,memory,thread_stack_size}=module):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const imports=__wbg_get_imports(memory);module instanceof WebAssembly.Module||(module=new WebAssembly.Module(module));return __wbg_finalize_init(new WebAssembly.Instance(module,imports),module,thread_stack_size)}async function __wbg_init(module_or_path,memory){if(void 0!==wasm)return wasm;let thread_stack_size;void 0!==module_or_path&&(Object.getPrototypeOf(module_or_path)===Object.prototype?({module_or_path,memory,thread_stack_size}=module_or_path):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===module_or_path&&(module_or_path=new URL(__webpack_require__("./src/utoo/index_bg.wasm"),__webpack_require__.b));const imports=__wbg_get_imports(memory);("string"==typeof module_or_path||"function"==typeof Request&&module_or_path instanceof Request||"function"==typeof URL&&module_or_path instanceof URL)&&(module_or_path=fetch(module_or_path));const{instance,module}=await __wbg_load(await module_or_path,imports);return __wbg_finalize_init(instance,module,thread_stack_size)}},"./src/utoo/index_bg.wasm"(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__.p+"279bfbf631ce03fdb9f7.wasm"}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),(()=>{var scriptUrl;__webpack_require__.g.importScripts&&(scriptUrl=__webpack_require__.g.location+"");var document=__webpack_require__.g.document;if(!scriptUrl&&document&&(document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&(scriptUrl=document.currentScript.src),!scriptUrl)){var scripts=document.getElementsByTagName("script");if(scripts.length)for(var i=scripts.length-1;i>-1&&(!scriptUrl||!/^http(s?):/.test(scriptUrl));)scriptUrl=scripts[i--].src}if(!scriptUrl)throw new Error("Automatic publicPath is not supported in this browser");scriptUrl=scriptUrl.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=scriptUrl})(),__webpack_require__.b=self.location+"";var __webpack_exports__={},_utoo__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utoo/index.js");return self.wasm_bindgen=_utoo__WEBPACK_IMPORTED_MODULE_0__.QR,__webpack_exports__=__webpack_exports__.default,__webpack_exports__})());
package/dist/worker.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see worker.js.LICENSE.txt */
2
+ !function webpackUniversalModuleDefinition(root,factory){if("object"==typeof exports&&"object"==typeof module)module.exports=factory();else if("function"==typeof define&&define.amd)define([],factory);else{var a=factory();for(var i in a)("object"==typeof exports?exports:root)[i]=a[i]}}(self,()=>(()=>{"use strict";var __webpack_modules__={"./src/utoo/index.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>__wbg_init,Fs:()=>Fs,H2:()=>BuildOptions,HJ:()=>workerCreated,Lo:()=>getWasmModule,MM:()=>Project,Mh:()=>getWasmMemory,n2:()=>registerWorkerScheduler,zD:()=>initLogFilter});class BuildOptions{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,BuildOptionsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_buildoptions_free(ptr,0)}get config(){return takeObject(wasm.buildoptions_config(this.__wbg_ptr))}constructor(){const ret=wasm.buildoptions_new();return this.__wbg_ptr=ret>>>0,BuildOptionsFinalization.register(this,this.__wbg_ptr,this),this}set config(val){wasm.buildoptions_set_config(this.__wbg_ptr,addHeapObject(val))}get cleanup(){return 0!==wasm.__wbg_get_buildoptions_cleanup(this.__wbg_ptr)}set cleanup(arg0){wasm.__wbg_set_buildoptions_cleanup(this.__wbg_ptr,arg0)}}Symbol.dispose&&(BuildOptions.prototype[Symbol.dispose]=BuildOptions.prototype.free);class CreateSyncAccessHandleOptions{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,CreateSyncAccessHandleOptionsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_createsyncaccesshandleoptions_free(ptr,0)}}Symbol.dispose&&(CreateSyncAccessHandleOptions.prototype[Symbol.dispose]=CreateSyncAccessHandleOptions.prototype.free);class DirEntry{static __wrap(ptr){ptr>>>=0;const obj=Object.create(DirEntry.prototype);return obj.__wbg_ptr=ptr,DirEntryFinalization.register(obj,obj.__wbg_ptr,obj),obj}toJSON(){return{name:this.name,type:this.type}}toString(){return JSON.stringify(this)}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,DirEntryFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_direntry_free(ptr,0)}get name(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_direntry_name(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get type(){const ret=wasm.__wbg_get_direntry_type(this.__wbg_ptr);return __wbindgen_enum_DirEntryType[ret]}set name(arg0){const ptr0=passStringToWasm0(arg0,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.__wbg_set_direntry_name(this.__wbg_ptr,ptr0,len0)}set type(arg0){wasm.__wbg_set_direntry_type(this.__wbg_ptr,(__wbindgen_enum_DirEntryType.indexOf(arg0)+1||3)-1)}}function ERR_ABORT(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_ABORT(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_INVALID_STATE(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_INVALID_STATE(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_KEY_ALREADY_EXISTS(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_KEY_ALREADY_EXISTS(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_NOT_ALLOWED(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_NOT_ALLOWED(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_NOT_FOUND(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_NOT_FOUND(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_NO_MODIFICATION_ALLOWED(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_KEY_ALREADY_EXISTS(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_QUOTA_EXCEEDED(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_QUOTA_EXCEEDED(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}function ERR_TYPE_MISMATCH(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.ERR_TYPE_MISMATCH(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}Symbol.dispose&&(DirEntry.prototype[Symbol.dispose]=DirEntry.prototype.free);class Fs{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,FsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_fs_free(ptr,0)}static copyFile(src,dst){const ptr0=passStringToWasm0(src,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(dst,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;return takeObject(wasm.fs_copyFile(ptr0,len0,ptr1,len1))}static copyFileSync(src,dst){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(src,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(dst,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;wasm.fs_copyFileSync(retptr,ptr0,len0,ptr1,len1);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static createDir(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_createDir(ptr0,len0))}static createDirAll(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_createDirAll(ptr0,len0))}static createDirAllSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_createDirAllSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static createDirSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_createDirSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static metadata(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_metadata(ptr0,len0))}static metadataSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_metadataSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);if(getDataViewMemory0().getInt32(retptr+8,!0))throw takeObject(r1);return Metadata.__wrap(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static read(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_read(ptr0,len0))}static readDir(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_readDir(ptr0,len0))}static readDirSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_readDirSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0),r2=getDataViewMemory0().getInt32(retptr+8,!0);if(getDataViewMemory0().getInt32(retptr+12,!0))throw takeObject(r2);var v2=getArrayJsValueFromWasm0(r0,r1).slice();return wasm.__wbindgen_export4(r0,4*r1,4),v2}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static readSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_readSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);if(getDataViewMemory0().getInt32(retptr+8,!0))throw takeObject(r1);return takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static readToString(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_readToString(ptr0,len0))}static removeDir(path,recursive){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_removeDir(ptr0,len0,recursive))}static removeDirSync(path,recursive){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_removeDirSync(retptr,ptr0,len0,recursive);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static removeFile(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_removeFile(ptr0,len0))}static removeFileSync(path){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_removeFileSync(retptr,ptr0,len0);var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}static write(path,content){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.fs_write(ptr0,len0,addHeapObject(content)))}static writeString(path,content){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN,ptr1=passStringToWasm0(content,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;return takeObject(wasm.fs_writeString(ptr0,len0,ptr1,len1))}static writeSync(path,content){try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16),ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.fs_writeSync(retptr,ptr0,len0,addHeapObject(content));var r0=getDataViewMemory0().getInt32(retptr+0,!0);if(getDataViewMemory0().getInt32(retptr+4,!0))throw takeObject(r0)}finally{wasm.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Fs.prototype[Symbol.dispose]=Fs.prototype.free);class Metadata{static __wrap(ptr){ptr>>>=0;const obj=Object.create(Metadata.prototype);return obj.__wbg_ptr=ptr,MetadataFinalization.register(obj,obj.__wbg_ptr,obj),obj}toJSON(){return{file_size:this.file_size,type:this.type}}toString(){return JSON.stringify(this)}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,MetadataFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_metadata_free(ptr,0)}get file_size(){const ret=wasm.__wbg_get_metadata_file_size(this.__wbg_ptr);return BigInt.asUintN(64,ret)}get type(){const ret=wasm.__wbg_get_metadata_type(this.__wbg_ptr);return __wbindgen_enum_DirEntryType[ret]}set file_size(arg0){wasm.__wbg_set_metadata_file_size(this.__wbg_ptr,arg0)}set type(arg0){wasm.__wbg_set_metadata_type(this.__wbg_ptr,(__wbindgen_enum_DirEntryType.indexOf(arg0)+1||3)-1)}}Symbol.dispose&&(Metadata.prototype[Symbol.dispose]=Metadata.prototype.free);class Project{__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,ProjectFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_project_free(ptr,0)}static build(options){_assertClass(options,BuildOptions);var ptr0=options.__destroy_into_raw();return takeObject(wasm.project_build(ptr0))}static get cwd(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.project_cwd(retptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}static deps(registry,concurrency){var ptr0=isLikeNone(registry)?0:passStringToWasm0(registry,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.project_deps(ptr0,len0,isLikeNone(concurrency)?4294967297:concurrency>>>0))}static entrypointsSubscribe(config,callback){return takeObject(wasm.project_entrypointsSubscribe(addHeapObject(config),addHeapObject(callback)))}static gzip(files){return takeObject(wasm.project_gzip(addHeapObject(files)))}static hmrEvents(identifier,callback){const ptr0=passStringToWasm0(identifier,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.project_hmrEvents(ptr0,len0,addHeapObject(callback)))}static init(thread_url){const ptr0=passStringToWasm0(thread_url,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.project_init(ptr0,len0)}static install(package_lock,max_concurrent_downloads){const ptr0=passStringToWasm0(package_lock,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;return takeObject(wasm.project_install(ptr0,len0,isLikeNone(max_concurrent_downloads)?4294967297:max_concurrent_downloads>>>0))}static setCwd(path){const ptr0=passStringToWasm0(path,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.project_setCwd(ptr0,len0)}static sigMd5(content){return takeObject(wasm.project_sigMd5(addHeapObject(content)))}static updateInfoSubscribe(aggregation_ms,callback){wasm.project_updateInfoSubscribe(aggregation_ms,addHeapObject(callback))}static writeAllToDisk(callback){wasm.project_writeAllToDisk(addHeapObject(callback))}}Symbol.dispose&&(Project.prototype[Symbol.dispose]=Project.prototype.free);class RootTask{static __wrap(ptr){ptr>>>=0;const obj=Object.create(RootTask.prototype);return obj.__wbg_ptr=ptr,RootTaskFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,RootTaskFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_roottask_free(ptr,0)}}Symbol.dispose&&(RootTask.prototype[Symbol.dispose]=RootTask.prototype.free);class WasmTaskMessage{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WasmTaskMessage.prototype);return obj.__wbg_ptr=ptr,WasmTaskMessageFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WasmTaskMessageFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_wasmtaskmessage_free(ptr,0)}get taskId(){return wasm.__wbg_get_wasmtaskmessage_taskId(this.__wbg_ptr)>>>0}set taskId(arg0){wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr,arg0)}get data(){return takeObject(wasm.wasmtaskmessage_data(this.__wbg_ptr))}}Symbol.dispose&&(WasmTaskMessage.prototype[Symbol.dispose]=WasmTaskMessage.prototype.free);class WebWorkerCreation{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WebWorkerCreation.prototype);return obj.__wbg_ptr=ptr,WebWorkerCreationFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WebWorkerCreationFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_webworkercreation_free(ptr,0)}get options(){const ret=wasm.__wbg_get_webworkercreation_options(this.__wbg_ptr);return WebWorkerOptions.__wrap(ret)}set options(arg0){_assertClass(arg0,WebWorkerOptions);var ptr0=arg0.__destroy_into_raw();wasm.__wbg_set_webworkercreation_options(this.__wbg_ptr,ptr0)}}Symbol.dispose&&(WebWorkerCreation.prototype[Symbol.dispose]=WebWorkerCreation.prototype.free);class WebWorkerOptions{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WebWorkerOptions.prototype);return obj.__wbg_ptr=ptr,WebWorkerOptionsFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WebWorkerOptionsFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_webworkeroptions_free(ptr,0)}get cwd(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_webworkeroptions_cwd(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}get filename(){let deferred1_0,deferred1_1;try{const retptr=wasm.__wbindgen_add_to_stack_pointer(-16);wasm.__wbg_get_webworkeroptions_filename(retptr,this.__wbg_ptr);var r0=getDataViewMemory0().getInt32(retptr+0,!0),r1=getDataViewMemory0().getInt32(retptr+4,!0);return deferred1_0=r0,deferred1_1=r1,getStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16),wasm.__wbindgen_export4(deferred1_0,deferred1_1,1)}}set cwd(arg0){const ptr0=passStringToWasm0(arg0,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr,ptr0,len0)}set filename(arg0){const ptr0=passStringToWasm0(arg0,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr,ptr0,len0)}}Symbol.dispose&&(WebWorkerOptions.prototype[Symbol.dispose]=WebWorkerOptions.prototype.free);class WebWorkerTermination{static __wrap(ptr){ptr>>>=0;const obj=Object.create(WebWorkerTermination.prototype);return obj.__wbg_ptr=ptr,WebWorkerTerminationFinalization.register(obj,obj.__wbg_ptr,obj),obj}__destroy_into_raw(){const ptr=this.__wbg_ptr;return this.__wbg_ptr=0,WebWorkerTerminationFinalization.unregister(this),ptr}free(){const ptr=this.__destroy_into_raw();wasm.__wbg_webworkertermination_free(ptr,0)}get options(){const ret=wasm.__wbg_get_webworkertermination_options(this.__wbg_ptr);return WebWorkerOptions.__wrap(ret)}get workerId(){return wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr)>>>0}set options(arg0){_assertClass(arg0,WebWorkerOptions);var ptr0=arg0.__destroy_into_raw();wasm.__wbg_set_webworkertermination_options(this.__wbg_ptr,ptr0)}set workerId(arg0){wasm.__wbg_set_webworkertermination_workerId(this.__wbg_ptr,arg0)}}function getWasmMemory(){return takeObject(wasm.getWasmMemory())}function getWasmModule(){return takeObject(wasm.getWasmModule())}function initLogFilter(filter){const ptr0=passStringToWasm0(filter,wasm.__wbindgen_export,wasm.__wbindgen_export2),len0=WASM_VECTOR_LEN;wasm.initLogFilter(ptr0,len0)}function init_pack(){wasm.init_pack()}function recvTaskMessageInWorker(worker_id){return takeObject(wasm.recvTaskMessageInWorker(worker_id))}function registerWorkerScheduler(creator,terminator){wasm.registerWorkerScheduler(addHeapObject(creator),addHeapObject(terminator))}function sendTaskMessage(message){return takeObject(wasm.sendTaskMessage(addHeapObject(message)))}function wasm_thread_entry_point(ptr){wasm.wasm_thread_entry_point(ptr)}function workerCreated(worker_id){wasm.workerCreated(worker_id)}function __wbg_get_imports(memory){const import0={__proto__:null,__wbg_Error_8c4e43fe74559d73:function(arg0,arg1){return addHeapObject(Error(getStringFromWasm0(arg0,arg1)))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(arg0,arg1){const ptr1=passStringToWasm0(debugString(getObject(arg1)),wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg___wbindgen_is_function_0095a73b8b156f76:function(arg0){return"function"==typeof getObject(arg0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(arg0){return null===getObject(arg0)},__wbg___wbindgen_is_object_5ae8e5880f2c1fbd:function(arg0){const val=getObject(arg0);return"object"==typeof val&&null!==val},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(arg0){return void 0===getObject(arg0)},__wbg___wbindgen_memory_bd1fbcf21fbef3c8:function(){return addHeapObject(wasm.memory)},__wbg___wbindgen_module_f6b8052d79c1cc16:function(){return addHeapObject(wasmModule)},__wbg___wbindgen_number_get_8ff4255516ccad3e:function(arg0,arg1){const obj=getObject(arg1),ret="number"==typeof obj?obj:void 0;getDataViewMemory0().setFloat64(arg0+8,isLikeNone(ret)?0:ret,!0),getDataViewMemory0().setInt32(arg0+0,!isLikeNone(ret),!0)},__wbg___wbindgen_rethrow_05525c567f154472:function(arg0){throw takeObject(arg0)},__wbg___wbindgen_string_get_72fb696202c56729:function(arg0,arg1){const obj=getObject(arg1),ret="string"==typeof obj?obj:void 0;var ptr1=isLikeNone(ret)?0:passStringToWasm0(ret,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(arg0,arg1){throw new Error(getStringFromWasm0(arg0,arg1))},__wbg__wbg_cb_unref_d9b87ff7982e3b21:function(arg0){getObject(arg0)._wbg_cb_unref()},__wbg_abort_2f0584e03e8e3950:function(arg0){getObject(arg0).abort()},__wbg_abort_d549b92d3c665de1:function(arg0,arg1){getObject(arg0).abort(getObject(arg1))},__wbg_append_a992ccc37aa62dc4:function(){return handleError(function(arg0,arg1,arg2,arg3,arg4){getObject(arg0).append(getStringFromWasm0(arg1,arg2),getStringFromWasm0(arg3,arg4))},arguments)},__wbg_arrayBuffer_05ce1af23e9064e8:function(arg0){return addHeapObject(getObject(arg0).arrayBuffer())},__wbg_arrayBuffer_bb54076166006c39:function(){return handleError(function(arg0){return addHeapObject(getObject(arg0).arrayBuffer())},arguments)},__wbg_async_79f2a61f9d0b31cf:function(arg0){return getObject(arg0).async},__wbg_buffer_7b5f53e46557d8f1:function(arg0){return addHeapObject(getObject(arg0).buffer)},__wbg_call_389efe28435a9388:function(){return handleError(function(arg0,arg1){return addHeapObject(getObject(arg0).call(getObject(arg1)))},arguments)},__wbg_call_4708e0c13bdc8e95:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).call(getObject(arg1),getObject(arg2)))},arguments)},__wbg_changedHandle_123696eaeaff32d7:function(arg0){const ret=getObject(arg0).changedHandle;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_clearTimeout_7a42b49784aea641:function(arg0){return addHeapObject(clearTimeout(takeObject(arg0)))},__wbg_close_4ba312253c424342:function(arg0){getObject(arg0).close()},__wbg_close_83fb809aca3de7f9:function(arg0){return addHeapObject(getObject(arg0).close())},__wbg_createObjectURL_918185db6a10a0c8:function(){return handleError(function(arg0,arg1){const ptr1=passStringToWasm0(URL.createObjectURL(getObject(arg1)),wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},arguments)},__wbg_createWritable_80bc5de374448b42:function(arg0){return addHeapObject(getObject(arg0).createWritable())},__wbg_data_5330da50312d0bc1:function(arg0){return addHeapObject(getObject(arg0).data)},__wbg_debug_46a93995fc6f8820:function(arg0,arg1,arg2,arg3){console.debug(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_debug_a4099fa12db6cd61:function(arg0){console.debug(getObject(arg0))},__wbg_direntry_new:function(arg0){return addHeapObject(DirEntry.__wrap(arg0))},__wbg_done_57b39ecd9addfe81:function(arg0){return getObject(arg0).done},__wbg_entries_04a4b982351a717f:function(arg0){return addHeapObject(getObject(arg0).entries())},__wbg_error_7534b8e9a36f1ab4:function(arg0,arg1){let deferred0_0,deferred0_1;try{deferred0_0=arg0,deferred0_1=arg1,console.error(getStringFromWasm0(arg0,arg1))}finally{wasm.__wbindgen_export4(deferred0_0,deferred0_1,1)}},__wbg_error_794d0ffc9d00d5c3:function(arg0,arg1,arg2,arg3){console.error(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_error_9a7fe3f932034cde:function(arg0){console.error(getObject(arg0))},__wbg_eval_3f0b9f0cbaf45a34:function(){return handleError(function(arg0,arg1){const ret=eval(getStringFromWasm0(arg0,arg1));return addHeapObject(ret)},arguments)},__wbg_fetch_74a3e84ebd2c9a0e:function(arg0){return addHeapObject(fetch(getObject(arg0)))},__wbg_fetch_afb6a4b6cacf876d:function(arg0,arg1){return addHeapObject(getObject(arg0).fetch(getObject(arg1)))},__wbg_flush_22b785060592ca5f:function(){return handleError(function(arg0){getObject(arg0).flush()},arguments)},__wbg_from_bddd64e7d5ff6941:function(arg0){return addHeapObject(Array.from(getObject(arg0)))},__wbg_getDirectoryHandle_87ce8ca53cf4d8dc:function(arg0,arg1,arg2,arg3){return addHeapObject(getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1,arg2),getObject(arg3)))},__wbg_getDirectory_b66ae3e79f902982:function(arg0){return addHeapObject(getObject(arg0).getDirectory())},__wbg_getFileHandle_ff4ab917b45affb3:function(arg0,arg1,arg2,arg3){return addHeapObject(getObject(arg0).getFileHandle(getStringFromWasm0(arg1,arg2),getObject(arg3)))},__wbg_getFile_115354fc950edc88:function(arg0){return addHeapObject(getObject(arg0).getFile())},__wbg_getRandomValues_80578b2ff2a093ba:function(){return handleError(function(arg0){globalThis.crypto.getRandomValues(getObject(arg0))},arguments)},__wbg_get_9b94d73e6221f75c:function(arg0,arg1){return addHeapObject(getObject(arg0)[arg1>>>0])},__wbg_get_b3ed3ad4be2bc8ac:function(){return handleError(function(arg0,arg1){return addHeapObject(Reflect.get(getObject(arg0),getObject(arg1)))},arguments)},__wbg_has_d4e53238966c12b6:function(){return handleError(function(arg0,arg1){return Reflect.has(getObject(arg0),getObject(arg1))},arguments)},__wbg_headers_59a2938db9f80985:function(arg0){return addHeapObject(getObject(arg0).headers)},__wbg_info_148d043840582012:function(arg0){console.info(getObject(arg0))},__wbg_info_9e602cf10c5c690b:function(arg0,arg1,arg2,arg3){console.info(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_instanceof_DedicatedWorkerGlobalScope_1506b3d017799d48:function(arg0){let result;try{result=getObject(arg0)instanceof DedicatedWorkerGlobalScope}catch(_){result=!1}return result},__wbg_instanceof_DomException_99c177193e554b75:function(arg0){let result;try{result=getObject(arg0)instanceof DOMException}catch(_){result=!1}return result},__wbg_instanceof_FileSystemDirectoryHandle_56a167039d614548:function(arg0){let result;try{result=getObject(arg0)instanceof FileSystemDirectoryHandle}catch(_){result=!1}return result},__wbg_instanceof_Response_ee1d54d79ae41977:function(arg0){let result;try{result=getObject(arg0)instanceof Response}catch(_){result=!1}return result},__wbg_instanceof_Uint8Array_9b9075935c74707c:function(arg0){let result;try{result=getObject(arg0)instanceof Uint8Array}catch(_){result=!1}return result},__wbg_isArray_d314bb98fcf08331:function(arg0){return Array.isArray(getObject(arg0))},__wbg_iterator_6ff6560ca1568e55:function(){return addHeapObject(Symbol.iterator)},__wbg_kind_90769d6c16faeafd:function(arg0){const ret=getObject(arg0).kind;return(__wbindgen_enum_FileSystemHandleKind.indexOf(ret)+1||3)-1},__wbg_length_32ed9a279acd054c:function(arg0){return getObject(arg0).length},__wbg_length_35a7bace40f36eac:function(arg0){return getObject(arg0).length},__wbg_message_0b2b0298a231b0d4:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).message,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_metadata_new:function(arg0){return addHeapObject(Metadata.__wrap(arg0))},__wbg_name_242753e5110cd756:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).name,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_navigator_4478931f32ebca57:function(arg0){return addHeapObject(getObject(arg0).navigator)},__wbg_new_361308b2356cecd0:function(){return addHeapObject(new Object)},__wbg_new_3eb36ae241fe6f44:function(){return addHeapObject(new Array)},__wbg_new_4f8f3c123e474358:function(){return handleError(function(arg0,arg1){return addHeapObject(new Worker(getStringFromWasm0(arg0,arg1)))},arguments)},__wbg_new_64284bd487f9d239:function(){return handleError(function(){return addHeapObject(new Headers)},arguments)},__wbg_new_72c627ba80de1c21:function(arg0){return addHeapObject(new Int32Array(getObject(arg0)))},__wbg_new_8a6f238a6ece86ea:function(){return addHeapObject(new Error)},__wbg_new_8ec5801b39d6f862:function(arg0){return addHeapObject(new FileSystemObserver(getObject(arg0)))},__wbg_new_b5d9e2fb389fef91:function(arg0,arg1){try{var state0={a:arg0,b:arg1};const ret=new Promise((arg0,arg1)=>{const a=state0.a;state0.a=0;try{return __wasm_bindgen_func_elem_3344(a,state0.b,arg0,arg1)}finally{state0.a=a}});return addHeapObject(ret)}finally{state0.a=state0.b=0}},__wbg_new_b949e7f56150a5d1:function(){return handleError(function(){return addHeapObject(new AbortController)},arguments)},__wbg_new_dd2b680c8bf6ae29:function(arg0){return addHeapObject(new Uint8Array(getObject(arg0)))},__wbg_new_from_slice_a3d2629dc1826784:function(arg0,arg1){return addHeapObject(new Uint8Array(getArrayU8FromWasm0(arg0,arg1)))},__wbg_new_no_args_1c7c842f08d00ebb:function(arg0,arg1){return addHeapObject(new Function(getStringFromWasm0(arg0,arg1)))},__wbg_new_with_length_a2c39cbe88fd8ff1:function(arg0){return addHeapObject(new Uint8Array(arg0>>>0))},__wbg_new_with_options_145afba922ad3703:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(new Worker(getStringFromWasm0(arg0,arg1),getObject(arg2)))},arguments)},__wbg_new_with_str_and_init_a61cbc6bdef21614:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(new Request(getStringFromWasm0(arg0,arg1),getObject(arg2)))},arguments)},__wbg_new_with_str_sequence_cea2c0571d6dc6ab:function(){return handleError(function(arg0){return addHeapObject(new Blob(getObject(arg0)))},arguments)},__wbg_next_0a5e0f8af98146aa:function(){return handleError(function(arg0){return addHeapObject(getObject(arg0).next())},arguments)},__wbg_next_3482f54c49e8af19:function(){return handleError(function(arg0){return addHeapObject(getObject(arg0).next())},arguments)},__wbg_next_418f80d8f5303233:function(arg0){return addHeapObject(getObject(arg0).next)},__wbg_now_0dc4920a47cf7280:function(arg0){return getObject(arg0).now()},__wbg_now_a3af9a2f4bbaa4d1:function(){return Date.now()},__wbg_observe_32235b5e6195d4ab:function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).observe(getObject(arg1),getObject(arg2)))},__wbg_of_ddc0942b0dce16a1:function(arg0,arg1,arg2){return addHeapObject(Array.of(getObject(arg0),getObject(arg1),getObject(arg2)))},__wbg_parse_708461a1feddfb38:function(){return handleError(function(arg0,arg1){return addHeapObject(JSON.parse(getStringFromWasm0(arg0,arg1)))},arguments)},__wbg_performance_6adc3b899e448a23:function(arg0){return addHeapObject(getObject(arg0).performance)},__wbg_postMessage_2041f4e90af61318:function(){return handleError(function(arg0,arg1){getObject(arg0).postMessage(getObject(arg1))},arguments)},__wbg_postMessage_771ef3293a28bbac:function(){return handleError(function(arg0,arg1){getObject(arg0).postMessage(getObject(arg1))},arguments)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(arg0,arg1,arg2){Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0,arg1),getObject(arg2))},__wbg_push_8ffdcb2063340ba5:function(arg0,arg1){return getObject(arg0).push(getObject(arg1))},__wbg_queueMicrotask_0aa0a927f78f5d98:function(arg0){return addHeapObject(getObject(arg0).queueMicrotask)},__wbg_queueMicrotask_5bb536982f78a56f:function(arg0){queueMicrotask(getObject(arg0))},__wbg_random_912284dbf636f269:function(){return Math.random()},__wbg_relativePathComponents_bc482403cb6d7ea9:function(arg0){return addHeapObject(getObject(arg0).relativePathComponents)},__wbg_removeEntry_c4efffdd318b51a1:function(arg0,arg1,arg2,arg3){return addHeapObject(getObject(arg0).removeEntry(getStringFromWasm0(arg1,arg2),getObject(arg3)))},__wbg_resolve_002c4b7d9d8f6b64:function(arg0){return addHeapObject(Promise.resolve(getObject(arg0)))},__wbg_roottask_new:function(arg0){return addHeapObject(RootTask.__wrap(arg0))},__wbg_setTimeout_63008613644b07af:function(){return handleError(function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).setTimeout(getObject(arg1),arg2))},arguments)},__wbg_setTimeout_7bb3429662ab1e70:function(arg0,arg1){return addHeapObject(setTimeout(getObject(arg0),arg1))},__wbg_set_at_e453cf3f4be9e2d9:function(arg0,arg1){getObject(arg0).at=arg1},__wbg_set_body_9a7e00afe3cfe244:function(arg0,arg1){getObject(arg0).body=getObject(arg1)},__wbg_set_cache_315a3ed773a41543:function(arg0,arg1){getObject(arg0).cache=__wbindgen_enum_RequestCache[arg1]},__wbg_set_create_1f902c5936adde7d:function(arg0,arg1){getObject(arg0).create=0!==arg1},__wbg_set_create_c95ddca018fac9ce:function(arg0,arg1){getObject(arg0).create=0!==arg1},__wbg_set_credentials_c4a58d2e05ef24fb:function(arg0,arg1){getObject(arg0).credentials=__wbindgen_enum_RequestCredentials[arg1]},__wbg_set_f43e577aea94465b:function(arg0,arg1,arg2){getObject(arg0)[arg1>>>0]=takeObject(arg2)},__wbg_set_headers_cfc5f4b2c1f20549:function(arg0,arg1){getObject(arg0).headers=getObject(arg1)},__wbg_set_method_c3e20375f5ae7fac:function(arg0,arg1,arg2){getObject(arg0).method=getStringFromWasm0(arg1,arg2)},__wbg_set_mode_b13642c312648202:function(arg0,arg1){getObject(arg0).mode=__wbindgen_enum_RequestMode[arg1]},__wbg_set_name_49b9ecba7f58f2e5:function(arg0,arg1,arg2){getObject(arg0).name=getStringFromWasm0(arg1,arg2)},__wbg_set_onmessage_6ed41050e4a5cee2:function(arg0,arg1){getObject(arg0).onmessage=getObject(arg1)},__wbg_set_recursive_65ed07df892b4885:function(arg0,arg1){getObject(arg0).recursive=0!==arg1},__wbg_set_recursive_f5d3416098328110:function(arg0,arg1){getObject(arg0).recursive=0!==arg1},__wbg_set_signal_f2d3f8599248896d:function(arg0,arg1){getObject(arg0).signal=getObject(arg1)},__wbg_set_type_e127f26b78d78bfc:function(arg0,arg1){getObject(arg0).type=__wbindgen_enum_WorkerType[arg1]},__wbg_signal_d1285ecab4ebc5ad:function(arg0){return addHeapObject(getObject(arg0).signal)},__wbg_size_e05d31cc6049815f:function(arg0){return getObject(arg0).size},__wbg_slice_566a15f3214fa52e:function(){return handleError(function(arg0,arg1,arg2,arg3,arg4){return addHeapObject(getObject(arg0).slice(arg1,arg2,getStringFromWasm0(arg3,arg4)))},arguments)},__wbg_stack_0ed75d68575b0f3c:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).stack,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_static_accessor_GLOBAL_12837167ad935116:function(){const ret=void 0===__webpack_require__.g?null:__webpack_require__.g;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f:function(){const ret="undefined"==typeof globalThis?null:globalThis;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_SELF_a621d3dfbb60d0ce:function(){const ret="undefined"==typeof self?null:self;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_static_accessor_WINDOW_f8727f0cf888e0bd:function(){const ret="undefined"==typeof window?null:window;return isLikeNone(ret)?0:addHeapObject(ret)},__wbg_status_89d7e803db911ee7:function(arg0){return getObject(arg0).status},__wbg_storage_c002b53bc4883299:function(arg0){return addHeapObject(getObject(arg0).storage)},__wbg_stringify_8d1cc6ff383e8bae:function(){return handleError(function(arg0){return addHeapObject(JSON.stringify(getObject(arg0)))},arguments)},__wbg_subarray_a96e1fef17ed23cb:function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).subarray(arg1>>>0,arg2>>>0))},__wbg_then_0d9fe2c7b1857d32:function(arg0,arg1,arg2){return addHeapObject(getObject(arg0).then(getObject(arg1),getObject(arg2)))},__wbg_then_b9e7b3b5f1a9e1b5:function(arg0,arg1){return addHeapObject(getObject(arg0).then(getObject(arg1)))},__wbg_toString_964ff7fe6eca8362:function(arg0){return addHeapObject(getObject(arg0).toString())},__wbg_truncate_dc661fdcb0062fa7:function(){return handleError(function(arg0,arg1){getObject(arg0).truncate(arg1>>>0)},arguments)},__wbg_type_03dfe4621735e528:function(arg0){const ret=getObject(arg0).type;return(__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret)+1||7)-1},__wbg_url_c484c26b1fbf5126:function(arg0,arg1){const ptr1=passStringToWasm0(getObject(arg1).url,wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbg_value_0546255b415e96c1:function(arg0){return addHeapObject(getObject(arg0).value)},__wbg_value_fe6ee34af5dc3dce:function(arg0){return addHeapObject(getObject(arg0).value)},__wbg_waitAsync_a58b2134bff39c3e:function(arg0,arg1,arg2){return addHeapObject(Atomics.waitAsync(getObject(arg0),arg1>>>0,arg2))},__wbg_waitAsync_c0a39a7d3318d91e:function(){return addHeapObject(Atomics.waitAsync)},__wbg_warn_a40b971467b219c7:function(arg0,arg1,arg2,arg3){console.warn(getObject(arg0),getObject(arg1),getObject(arg2),getObject(arg3))},__wbg_warn_f7ae1b2e66ccb930:function(arg0){console.warn(getObject(arg0))},__wbg_wasmtaskmessage_new:function(arg0){return addHeapObject(WasmTaskMessage.__wrap(arg0))},__wbg_webworkercreation_new:function(arg0){return addHeapObject(WebWorkerCreation.__wrap(arg0))},__wbg_webworkertermination_new:function(arg0){return addHeapObject(WebWorkerTermination.__wrap(arg0))},__wbg_write_2d59337cc496919d:function(){return handleError(function(arg0,arg1,arg2,arg3){return getObject(arg0).write(getArrayU8FromWasm0(arg1,arg2),getObject(arg3))},arguments)},__wbg_write_37f5a62a24da662f:function(){return handleError(function(arg0,arg1){return addHeapObject(getObject(arg0).write(getObject(arg1)))},arguments)},__wbindgen_cast_0000000000000001:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_79643))},__wbindgen_cast_0000000000000002:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_79643))},__wbindgen_cast_0000000000000003:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_79679))},__wbindgen_cast_0000000000000004:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_19985,__wasm_bindgen_func_elem_19971))},__wbindgen_cast_0000000000000005:function(arg0,arg1){return addHeapObject(makeClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_79005,__wasm_bindgen_func_elem_79006))},__wbindgen_cast_0000000000000006:function(arg0,arg1){return addHeapObject(makeMutClosure(arg0,arg1,wasm.__wasm_bindgen_func_elem_79710,__wasm_bindgen_func_elem_19971))},__wbindgen_cast_0000000000000007:function(arg0){return addHeapObject(arg0)},__wbindgen_cast_0000000000000008:function(arg0,arg1){return addHeapObject(getStringFromWasm0(arg0,arg1))},__wbindgen_cast_0000000000000009:function(arg0,arg1){var v0=getArrayJsValueFromWasm0(arg0,arg1).slice();wasm.__wbindgen_export4(arg0,4*arg1,4);return addHeapObject(v0)},__wbindgen_link_0b1f76d235fd2b86:function(arg0){const val="onmessage = function (ev) {\n let [ia, index, value] = ev.data;\n ia = new Int32Array(ia.buffer);\n let result = Atomics.wait(ia, index, value);\n postMessage(result);\n };\n ",ptr1=passStringToWasm0(void 0===URL.createObjectURL?"data:application/javascript,"+encodeURIComponent(val):URL.createObjectURL(new Blob([val],{type:"text/javascript"})),wasm.__wbindgen_export,wasm.__wbindgen_export2),len1=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(arg0+4,len1,!0),getDataViewMemory0().setInt32(arg0+0,ptr1,!0)},__wbindgen_object_clone_ref:function(arg0){return addHeapObject(getObject(arg0))},__wbindgen_object_drop_ref:function(arg0){takeObject(arg0)},memory:memory||new WebAssembly.Memory({initial:1025,maximum:65536,shared:!0})};return{__proto__:null,"./index_bg.js":import0}}function __wasm_bindgen_func_elem_19971(arg0,arg1){wasm.__wasm_bindgen_func_elem_19971(arg0,arg1)}function __wasm_bindgen_func_elem_79643(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_79643(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_79679(arg0,arg1,arg2){try{wasm.__wasm_bindgen_func_elem_79679(arg0,arg1,addBorrowedObject(arg2))}finally{heap[stack_pointer++]=void 0}}function __wasm_bindgen_func_elem_79006(arg0,arg1,arg2){wasm.__wasm_bindgen_func_elem_79006(arg0,arg1,addHeapObject(arg2))}function __wasm_bindgen_func_elem_3344(arg0,arg1,arg2,arg3){wasm.__wasm_bindgen_func_elem_3344(arg0,arg1,addHeapObject(arg2),addHeapObject(arg3))}Symbol.dispose&&(WebWorkerTermination.prototype[Symbol.dispose]=WebWorkerTermination.prototype.free);const __wbindgen_enum_DirEntryType=["file","directory"],__wbindgen_enum_FileSystemChangeRecordType=["appeared","disappeared","errored","modified","moved","unknown"],__wbindgen_enum_FileSystemHandleKind=["file","directory"],__wbindgen_enum_RequestCache=["default","no-store","reload","no-cache","force-cache","only-if-cached"],__wbindgen_enum_RequestCredentials=["omit","same-origin","include"],__wbindgen_enum_RequestMode=["same-origin","no-cors","cors","navigate"],__wbindgen_enum_WorkerType=["classic","module"],BuildOptionsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_buildoptions_free(ptr>>>0,1)),CreateSyncAccessHandleOptionsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_createsyncaccesshandleoptions_free(ptr>>>0,1)),DirEntryFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_direntry_free(ptr>>>0,1)),FsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_fs_free(ptr>>>0,1)),MetadataFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_metadata_free(ptr>>>0,1)),ProjectFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_project_free(ptr>>>0,1)),RootTaskFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_roottask_free(ptr>>>0,1)),WasmTaskMessageFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_wasmtaskmessage_free(ptr>>>0,1)),WebWorkerCreationFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_webworkercreation_free(ptr>>>0,1)),WebWorkerOptionsFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_webworkeroptions_free(ptr>>>0,1)),WebWorkerTerminationFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(ptr=>wasm.__wbg_webworkertermination_free(ptr>>>0,1));function addHeapObject(obj){heap_next===heap.length&&heap.push(heap.length+1);const idx=heap_next;return heap_next=heap[idx],heap[idx]=obj,idx}function _assertClass(instance,klass){if(!(instance instanceof klass))throw new Error(`expected instance of ${klass.name}`)}function addBorrowedObject(obj){if(1==stack_pointer)throw new Error("out of js stack");return heap[--stack_pointer]=obj,stack_pointer}const CLOSURE_DTORS="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(state=>state.dtor(state.a,state.b));function debugString(val){const type=typeof val;if("number"==type||"boolean"==type||null==val)return`${val}`;if("string"==type)return`"${val}"`;if("symbol"==type){const description=val.description;return null==description?"Symbol":`Symbol(${description})`}if("function"==type){const name=val.name;return"string"==typeof name&&name.length>0?`Function(${name})`:"Function"}if(Array.isArray(val)){const length=val.length;let debug="[";length>0&&(debug+=debugString(val[0]));for(let i=1;i<length;i++)debug+=", "+debugString(val[i]);return debug+="]",debug}const builtInMatches=/\[object ([^\]]+)\]/.exec(toString.call(val));let className;if(!(builtInMatches&&builtInMatches.length>1))return toString.call(val);if(className=builtInMatches[1],"Object"==className)try{return"Object("+JSON.stringify(val)+")"}catch(_){return"Object"}return val instanceof Error?`${val.name}: ${val.message}\n${val.stack}`:className}function dropObject(idx){idx<132||(heap[idx]=heap_next,heap_next=idx)}function getArrayJsValueFromWasm0(ptr,len){ptr>>>=0;const mem=getDataViewMemory0(),result=[];for(let i=ptr;i<ptr+4*len;i+=4)result.push(takeObject(mem.getUint32(i,!0)));return result}function getArrayU8FromWasm0(ptr,len){return ptr>>>=0,getUint8ArrayMemory0().subarray(ptr/1,ptr/1+len)}let cachedDataViewMemory0=null;function getDataViewMemory0(){return null!==cachedDataViewMemory0&&cachedDataViewMemory0.buffer===wasm.memory.buffer||(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function getStringFromWasm0(ptr,len){return decodeText(ptr>>>=0,len)}let cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return null!==cachedUint8ArrayMemory0&&cachedUint8ArrayMemory0.buffer===wasm.memory.buffer||(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}function getObject(idx){return heap[idx]}function handleError(f,args){try{return f.apply(this,args)}catch(e){wasm.__wbindgen_export3(addHeapObject(e))}}let heap=new Array(128).fill(void 0);heap.push(void 0,null,!0,!1);let heap_next=heap.length;function isLikeNone(x){return null==x}function makeClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor},real=(...args)=>{state.cnt++;try{return f(state.a,state.b,...args)}finally{real._wbg_cb_unref()}};return real._wbg_cb_unref=()=>{0===--state.cnt&&(state.dtor(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))},CLOSURE_DTORS.register(real,state,state),real}function makeMutClosure(arg0,arg1,dtor,f){const state={a:arg0,b:arg1,cnt:1,dtor},real=(...args)=>{state.cnt++;const a=state.a;state.a=0;try{return f(a,state.b,...args)}finally{state.a=a,real._wbg_cb_unref()}};return real._wbg_cb_unref=()=>{0===--state.cnt&&(state.dtor(state.a,state.b),state.a=0,CLOSURE_DTORS.unregister(state))},CLOSURE_DTORS.register(real,state,state),real}function passStringToWasm0(arg,malloc,realloc){if(void 0===realloc){const buf=cachedTextEncoder.encode(arg),ptr=malloc(buf.length,1)>>>0;return getUint8ArrayMemory0().subarray(ptr,ptr+buf.length).set(buf),WASM_VECTOR_LEN=buf.length,ptr}let len=arg.length,ptr=malloc(len,1)>>>0;const mem=getUint8ArrayMemory0();let offset=0;for(;offset<len;offset++){const code=arg.charCodeAt(offset);if(code>127)break;mem[ptr+offset]=code}if(offset!==len){0!==offset&&(arg=arg.slice(offset)),ptr=realloc(ptr,len,len=offset+3*arg.length,1)>>>0;const view=getUint8ArrayMemory0().subarray(ptr+offset,ptr+len);offset+=cachedTextEncoder.encodeInto(arg,view).written,ptr=realloc(ptr,len,offset,1)>>>0}return WASM_VECTOR_LEN=offset,ptr}let stack_pointer=128;function takeObject(idx){const ret=getObject(idx);return dropObject(idx),ret}let cachedTextDecoder="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;cachedTextDecoder&&cachedTextDecoder.decode();const MAX_SAFARI_DECODE_BYTES=2146435072;let numBytesDecoded=0;function decodeText(ptr,len){return numBytesDecoded+=len,numBytesDecoded>=MAX_SAFARI_DECODE_BYTES&&(cachedTextDecoder=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),cachedTextDecoder.decode(),numBytesDecoded=len),cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr,ptr+len))}const cachedTextEncoder="undefined"!=typeof TextEncoder?new TextEncoder:void 0;cachedTextEncoder&&(cachedTextEncoder.encodeInto=function(arg,view){const buf=cachedTextEncoder.encode(arg);return view.set(buf),{read:arg.length,written:buf.length}});let WASM_VECTOR_LEN=0,wasmModule,wasm;function __wbg_finalize_init(instance,module,thread_stack_size){if(wasm=instance.exports,wasmModule=module,cachedDataViewMemory0=null,cachedUint8ArrayMemory0=null,void 0!==thread_stack_size&&("number"!=typeof thread_stack_size||0===thread_stack_size||thread_stack_size%65536!=0))throw"invalid stack size";return wasm.__wbindgen_start(thread_stack_size),wasm}async function __wbg_load(module,imports){if("function"==typeof Response&&module instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(module,imports)}catch(e){if(!(module.ok&&function expectedResponseType(type){switch(type){case"basic":case"cors":case"default":return!0}return!1}(module.type))||"application/wasm"===module.headers.get("Content-Type"))throw e;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e)}const bytes=await module.arrayBuffer();return await WebAssembly.instantiate(bytes,imports)}{const instance=await WebAssembly.instantiate(module,imports);return instance instanceof WebAssembly.Instance?{instance,module}:instance}}function initSync(module,memory){if(void 0!==wasm)return wasm;let thread_stack_size;void 0!==module&&(Object.getPrototypeOf(module)===Object.prototype?({module,memory,thread_stack_size}=module):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const imports=__wbg_get_imports(memory);module instanceof WebAssembly.Module||(module=new WebAssembly.Module(module));return __wbg_finalize_init(new WebAssembly.Instance(module,imports),module,thread_stack_size)}async function __wbg_init(module_or_path,memory){if(void 0!==wasm)return wasm;let thread_stack_size;void 0!==module_or_path&&(Object.getPrototypeOf(module_or_path)===Object.prototype?({module_or_path,memory,thread_stack_size}=module_or_path):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===module_or_path&&(module_or_path=new URL(__webpack_require__("./src/utoo/index_bg.wasm"),__webpack_require__.b));const imports=__wbg_get_imports(memory);("string"==typeof module_or_path||"function"==typeof Request&&module_or_path instanceof Request||"function"==typeof URL&&module_or_path instanceof URL)&&(module_or_path=fetch(module_or_path));const{instance,module}=await __wbg_load(await module_or_path,imports);return __wbg_finalize_init(instance,module,thread_stack_size)}},"./src/utoo/index_bg.wasm"(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__.p+"279bfbf631ce03fdb9f7.wasm"}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),(()=>{var scriptUrl;__webpack_require__.g.importScripts&&(scriptUrl=__webpack_require__.g.location+"");var document=__webpack_require__.g.document;if(!scriptUrl&&document&&(document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&(scriptUrl=document.currentScript.src),!scriptUrl)){var scripts=document.getElementsByTagName("script");if(scripts.length)for(var i=scripts.length-1;i>-1&&(!scriptUrl||!/^http(s?):/.test(scriptUrl));)scriptUrl=scripts[i--].src}if(!scriptUrl)throw new Error("Automatic publicPath is not supported in this browser");scriptUrl=scriptUrl.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=scriptUrl})(),__webpack_require__.b=self.location+"";var __webpack_exports__={};const proxyMarker=Symbol("Comlink.proxy"),createEndpoint=Symbol("Comlink.endpoint"),releaseProxy=Symbol("Comlink.releaseProxy"),finalizer=Symbol("Comlink.finalizer"),throwMarker=Symbol("Comlink.thrown"),isObject=val=>"object"==typeof val&&null!==val||"function"==typeof val,proxyTransferHandler={canHandle:val=>isObject(val)&&val[proxyMarker],serialize(obj){const{port1,port2}=new MessageChannel;return expose(obj,port1),[port2,[port2]]},deserialize:port=>(port.start(),wrap(port))},throwTransferHandler={canHandle:value=>isObject(value)&&throwMarker in value,serialize({value}){let serialized;return serialized=value instanceof Error?{isError:!0,value:{message:value.message,name:value.name,stack:value.stack}}:{isError:!1,value},[serialized,[]]},deserialize(serialized){if(serialized.isError)throw Object.assign(new Error(serialized.value.message),serialized.value);throw serialized.value}},transferHandlers=new Map([["proxy",proxyTransferHandler],["throw",throwTransferHandler]]);function isAllowedOrigin(allowedOrigins,origin){for(const allowedOrigin of allowedOrigins){if(origin===allowedOrigin||"*"===allowedOrigin)return!0;if(allowedOrigin instanceof RegExp&&allowedOrigin.test(origin))return!0}return!1}function expose(obj,ep=globalThis,allowedOrigins=["*"]){ep.addEventListener("message",function callback(ev){if(!ev||!ev.data)return;if(!isAllowedOrigin(allowedOrigins,ev.origin))return void console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);const{id,type,path}=Object.assign({path:[]},ev.data),argumentList=(ev.data.argumentList||[]).map(fromWireValue);let returnValue;try{const parent=path.slice(0,-1).reduce((obj,prop)=>obj[prop],obj),rawValue=path.reduce((obj,prop)=>obj[prop],obj);switch(type){case"GET":returnValue=rawValue;break;case"SET":parent[path.slice(-1)[0]]=fromWireValue(ev.data.value),returnValue=!0;break;case"APPLY":returnValue=rawValue.apply(parent,argumentList);break;case"CONSTRUCT":returnValue=proxy(new rawValue(...argumentList));break;case"ENDPOINT":{const{port1,port2}=new MessageChannel;expose(obj,port2),returnValue=transfer(port1,[port1])}break;case"RELEASE":returnValue=void 0;break;default:return}}catch(value){returnValue={value,[throwMarker]:0}}Promise.resolve(returnValue).catch(value=>({value,[throwMarker]:0})).then(returnValue=>{const[wireValue,transferables]=toWireValue(returnValue);ep.postMessage(Object.assign(Object.assign({},wireValue),{id}),transferables),"RELEASE"===type&&(ep.removeEventListener("message",callback),closeEndPoint(ep),finalizer in obj&&"function"==typeof obj[finalizer]&&obj[finalizer]())}).catch(error=>{const[wireValue,transferables]=toWireValue({value:new TypeError("Unserializable return value"),[throwMarker]:0});ep.postMessage(Object.assign(Object.assign({},wireValue),{id}),transferables)})}),ep.start&&ep.start()}function isMessagePort(endpoint){return"MessagePort"===endpoint.constructor.name}function closeEndPoint(endpoint){isMessagePort(endpoint)&&endpoint.close()}function wrap(ep,target){const pendingListeners=new Map;return ep.addEventListener("message",function handleMessage(ev){const{data}=ev;if(!data||!data.id)return;const resolver=pendingListeners.get(data.id);if(resolver)try{resolver(data)}finally{pendingListeners.delete(data.id)}}),createProxy(ep,pendingListeners,[],target)}function throwIfProxyReleased(isReleased){if(isReleased)throw new Error("Proxy has been released and is not useable")}function releaseEndpoint(ep){return requestResponseMessage(ep,new Map,{type:"RELEASE"}).then(()=>{closeEndPoint(ep)})}const proxyCounter=new WeakMap,proxyFinalizers="FinalizationRegistry"in globalThis&&new FinalizationRegistry(ep=>{const newCount=(proxyCounter.get(ep)||0)-1;proxyCounter.set(ep,newCount),0===newCount&&releaseEndpoint(ep)});function registerProxy(proxy,ep){const newCount=(proxyCounter.get(ep)||0)+1;proxyCounter.set(ep,newCount),proxyFinalizers&&proxyFinalizers.register(proxy,ep,proxy)}function unregisterProxy(proxy){proxyFinalizers&&proxyFinalizers.unregister(proxy)}function createProxy(ep,pendingListeners,path=[],target=function(){}){let isProxyReleased=!1;const proxy=new Proxy(target,{get(_target,prop){if(throwIfProxyReleased(isProxyReleased),prop===releaseProxy)return()=>{unregisterProxy(proxy),releaseEndpoint(ep),pendingListeners.clear(),isProxyReleased=!0};if("then"===prop){if(0===path.length)return{then:()=>proxy};const r=requestResponseMessage(ep,pendingListeners,{type:"GET",path:path.map(p=>p.toString())}).then(fromWireValue);return r.then.bind(r)}return createProxy(ep,pendingListeners,[...path,prop])},set(_target,prop,rawValue){throwIfProxyReleased(isProxyReleased);const[value,transferables]=toWireValue(rawValue);return requestResponseMessage(ep,pendingListeners,{type:"SET",path:[...path,prop].map(p=>p.toString()),value},transferables).then(fromWireValue)},apply(_target,_thisArg,rawArgumentList){throwIfProxyReleased(isProxyReleased);const last=path[path.length-1];if(last===createEndpoint)return requestResponseMessage(ep,pendingListeners,{type:"ENDPOINT"}).then(fromWireValue);if("bind"===last)return createProxy(ep,pendingListeners,path.slice(0,-1));const[argumentList,transferables]=processArguments(rawArgumentList);return requestResponseMessage(ep,pendingListeners,{type:"APPLY",path:path.map(p=>p.toString()),argumentList},transferables).then(fromWireValue)},construct(_target,rawArgumentList){throwIfProxyReleased(isProxyReleased);const[argumentList,transferables]=processArguments(rawArgumentList);return requestResponseMessage(ep,pendingListeners,{type:"CONSTRUCT",path:path.map(p=>p.toString()),argumentList},transferables).then(fromWireValue)}});return registerProxy(proxy,ep),proxy}function myFlat(arr){return Array.prototype.concat.apply([],arr)}function processArguments(argumentList){const processed=argumentList.map(toWireValue);return[processed.map(v=>v[0]),myFlat(processed.map(v=>v[1]))]}const transferCache=new WeakMap;function transfer(obj,transfers){return transferCache.set(obj,transfers),obj}function proxy(obj){return Object.assign(obj,{[proxyMarker]:!0})}function windowEndpoint(w,context=globalThis,targetOrigin="*"){return{postMessage:(msg,transferables)=>w.postMessage(msg,targetOrigin,transferables),addEventListener:context.addEventListener.bind(context),removeEventListener:context.removeEventListener.bind(context)}}function toWireValue(value){for(const[name,handler]of transferHandlers)if(handler.canHandle(value)){const[serializedValue,transferables]=handler.serialize(value);return[{type:"HANDLER",name,value:serializedValue},transferables]}return[{type:"RAW",value},transferCache.get(value)||[]]}function fromWireValue(value){switch(value.type){case"HANDLER":return transferHandlers.get(value.name).deserialize(value.value);case"RAW":return value.value}}function requestResponseMessage(ep,pendingListeners,msg,transfers){return new Promise(resolve=>{const id=generateUUID();pendingListeners.set(id,resolve),ep.start&&ep.start(),ep.postMessage(Object.assign({id},msg),transfers)})}function generateUUID(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var WorkerMessageType;!function(WorkerMessageType){WorkerMessageType[WorkerMessageType.InitConnection=1464664064]="InitConnection",WorkerMessageType[WorkerMessageType.RequestFork=1464664065]="RequestFork"}(WorkerMessageType||(WorkerMessageType={}));const HandShake=WorkerMessageType.InitConnection,Fork=WorkerMessageType.RequestFork;var SWMessageType;!function(SWMessageType){SWMessageType[SWMessageType.HandShake=1398210560]="HandShake",SWMessageType[SWMessageType.HeartbeatPing=1398210561]="HeartbeatPing",SWMessageType[SWMessageType.HeartbeatPong=1398210562]="HeartbeatPong"}(SWMessageType||(SWMessageType={}));const ServiceWorkerHandShake=SWMessageType.HandShake,ServiceWorkerHeartbeatPing=SWMessageType.HeartbeatPing,ServiceWorkerHeartbeatPong=SWMessageType.HeartbeatPong;var utoo=__webpack_require__("./src/utoo/index.js");let nextWorkerId=0;const loaderWorkers={},runLoaderWorkerPool=async(projectCwd,loaderWorkerUrl,loadersImportMap)=>{(0,utoo.n2)(async creation=>{const{options:{filename,cwd}}=creation;nextWorkerId+=1;const workerId=nextWorkerId,worker=new Worker(loaderWorkerUrl,{name:filename});let finalCwd=cwd,finalFilename=filename;if(projectCwd){const sep="/";let pCwd=projectCwd.endsWith(sep)?projectCwd.slice(0,-1):projectCwd;if(pCwd.startsWith(sep)||(pCwd=sep+pCwd),cwd.startsWith(sep))finalCwd=cwd;else{let cCwd=cwd;"."!==cCwd&&"./"!==cCwd||(cCwd=""),finalCwd=cCwd?`${pCwd}${sep}${cCwd}`:pCwd}if(filename.startsWith(sep))finalFilename=filename;else{let fName=filename;fName.startsWith("./")&&(fName=fName.slice(2)),finalFilename=`${pCwd}${sep}${fName}`}}worker.postMessage([(0,utoo.Lo)(),(0,utoo.Mh)(),{workerData:{cwd:finalCwd,projectRoot:projectCwd,threadId:workerId},loaderAssets:{importMaps:null!=loadersImportMap?loadersImportMap:{},entrypoint:finalFilename}}]);(loaderWorkers[filename]||(loaderWorkers[filename]=new Map)).set(workerId,worker),(0,utoo.HJ)(workerId)},termination=>{const{workerId,options}=termination,entrypoint=options.filename,workers=loaderWorkers[entrypoint];if(workers){const worker=workers.get(workerId);worker&&(worker.terminate(),workers.delete(workerId))}})};class InternalEndpoint{constructor(){this.loaderWorkerPoolInitialized=!1,this.hmrRootTasks=new Map}async mount(opt){var _a;this.options=opt;const{cwd,wasmUrl,threadWorkerUrl,logFilter}=opt;null!==(_a=this.wasmInit)&&void 0!==_a||(this.wasmInit=(0,utoo.Ay)(wasmUrl)),await this.wasmInit;const filter=logFilter||"pack_core=info,pack_api=info,utoo_wasm=info,utoo_ruborist=info";(0,utoo.zD)(filter);const absoluteCwd=cwd.startsWith("/")?cwd:"/"+cwd;utoo.MM.init(threadWorkerUrl||""),utoo.MM.setCwd(absoluteCwd)}async deps(options){var _a,_b;await this.wasmInit;const registry=null!==(_a=null==options?void 0:options.registry)&&void 0!==_a?_a:void 0,concurrency=null!==(_b=null==options?void 0:options.concurrency)&&void 0!==_b?_b:void 0;return await utoo.MM.deps(registry,concurrency)}async install(packageLock,options){var _a;await this.wasmInit;const concurrency=null!==(_a=null==options?void 0:options.maxConcurrentDownloads)&&void 0!==_a?_a:void 0;await utoo.MM.install(packageLock,concurrency)}async build(options){var _a,_b,_c;await this.wasmInit,(null===(_a=this.options)||void 0===_a?void 0:_a.loaderWorkerUrl)&&!this.loaderWorkerPoolInitialized&&(runLoaderWorkerPool(this.options.cwd,this.options.loaderWorkerUrl,null===(_b=this.options)||void 0===_b?void 0:_b.loadersImportMap),this.loaderWorkerPoolInitialized=!0);const buildOptions=new utoo.H2;return buildOptions.cleanup=null!==(_c=null==options?void 0:options.cleanup)&&void 0!==_c&&_c,(null==options?void 0:options.config)&&(buildOptions.config=options.config),await utoo.MM.build(buildOptions)}async dev(config,onUpdate){var _a,_b;(null===(_a=this.options)||void 0===_a?void 0:_a.loaderWorkerUrl)&&!this.loaderWorkerPoolInitialized&&(runLoaderWorkerPool(this.options.cwd,this.options.loaderWorkerUrl,null===(_b=this.options)||void 0===_b?void 0:_b.loadersImportMap),this.loaderWorkerPoolInitialized=!0),this.rootTask=await utoo.MM.entrypointsSubscribe(config,result=>{null==onUpdate||onUpdate(result)})}async readFile(path,encoding){let ret;return await this.wasmInit,"utf8"!==encoding?await utoo.Fs.read(path):(ret=await utoo.Fs.readToString(path),ret)}async writeFile(path,content,_encoding){return await this.wasmInit,"string"==typeof content?await utoo.Fs.writeString(path,content):await utoo.Fs.write(path,content)}async copyFile(src,dst){return await this.wasmInit,await utoo.Fs.copyFile(src,dst)}async stat(path){await this.wasmInit;const json=(await utoo.Fs.metadata(path)).toJSON();return{type:json.type,size:Number(json.file_size)}}async readdir(path,options){await this.wasmInit;return(null==options||options.recursive,await utoo.Fs.readDir(path)).map(e=>{const dir=e.toJSON();return{name:dir.name,type:dir.type}})}async mkdir(path,options){return await this.wasmInit,(null==options?void 0:options.recursive)?await utoo.Fs.createDirAll(path):await utoo.Fs.createDir(path)}async rm(path,options){switch(await this.wasmInit,(await utoo.Fs.metadata(path)).toJSON().type){case"file":return await utoo.Fs.removeFile(path);case"directory":return await utoo.Fs.removeDir(path,!!(null==options?void 0:options.recursive))}}async rmdir(path,options){return await this.wasmInit,await utoo.Fs.removeDir(path,!!(null==options?void 0:options.recursive))}async gzip(files){return await this.wasmInit,await utoo.MM.gzip(files)}async sigMd5(content){return await this.wasmInit,await utoo.MM.sigMd5(content)}async hmrSubscribe(identifier,callback){const rootTask=await utoo.MM.hmrEvents(identifier,callback);this.hmrRootTasks.set(identifier,rootTask)}updateInfoSubscribe(aggregationMs,callback){utoo.MM.updateInfoSubscribe(aggregationMs,callback)}}const internalEndpoint=new InternalEndpoint,ConnectedPorts=new Set;return self.addEventListener("message",e=>{const port=e.ports[0];e.data!==WorkerMessageType.InitConnection||ConnectedPorts.has(port)||(expose(internalEndpoint,port),ConnectedPorts.add(port))}),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})());
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */