1(()=>{"use strict";let e=Symbol("Comlink.proxy"),t=Symbol("Comlink.endpoint"),r=Symbol("Comlink.releaseProxy"),n=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),i=e=>"object"==typeof e&&null!==e||"function"==typeof e,a=new Map([["proxy",{canHandle:t=>i(t)&&t[e],serialize(e){let{port1:t,port2:r}=new MessageChannel;return o(e,t),[r,[r]]},deserialize:e=>{var n;let s;return e.start(),n=e,s=new Map,n.addEventListener("message",function(e){let{data:t}=e;if(!t||!t.id)return;let r=s.get(t.id);if(r)try{r(t)}finally{s.delete(t.id)}}),function e(n,s,i=[],a=function(){}){let o,l=!1,p=new Proxy(a,{get(t,a){if(g(l),a===r)return()=>{m&&m.unregister(p),c(n),s.clear(),l=!0};if("then"===a){if(0===i.length)return{then:()=>p};let e=f(n,s,{type:"GET",path:i.map(e=>e.toString())}).then(y);return e.then.bind(e)}return e(n,s,[...i,a])},set(e,t,r){g(l);let[a,o]=d(r);return f(n,s,{type:"SET",path:[...i,t].map(e=>e.toString()),value:a},o).then(y)},apply(r,a,o){g(l);let c=i[i.length-1];if(c===t)return f(n,s,{type:"ENDPOINT"}).then(y);if("bind"===c)return e(n,s,i.slice(0,-1));let[u,m]=h(o);return f(n,s,{type:"APPLY",path:i.map(e=>e.toString()),argumentList:u},m).then(y)},construct(e,t){g(l);let[r,a]=h(t);return f(n,s,{type:"CONSTRUCT",path:i.map(e=>e.toString()),argumentList:r},a).then(y)}});return o=(u.get(n)||0)+1,u.set(n,o),m&&m.register(p,n,p),p}(n,s,[],void 0)}}],["throw",{canHandle:e=>i(e)&&s in e,serialize:({value:e})=>[e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[]],deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value}}]]);function o(t,r=globalThis,i=["*"]){r.addEventListener("message",function a(g){let c;if(!g||!g.data)return;if(!function(e,t){for(let r of e)if(t===r||"*"===r||r instanceof RegExp&&r.test(t))return!0;return!1}(i,g.origin))return void console.warn(`Invalid origin '${g.origin}' for comlink proxy`);let{id:u,type:m,path:h}=Object.assign({path:[]},g.data),f=(g.data.argumentList||[]).map(y);try{var w,b,E;let r=h.slice(0,-1).reduce((e,t)=>e[t],t),n=h.reduce((e,t)=>e[t],t);switch(m){case"GET":c=n;break;case"SET":r[h.slice(-1)[0]]=y(g.data.value),c=!0;break;case"APPLY":c=n.apply(r,f);break;case"CONSTRUCT":w=new n(...f),c=Object.assign(w,{[e]:!0});break;case"ENDPOINT":{let{port1:e,port2:r}=new MessageChannel;o(t,r),b=e,E=[e],p.set(b,E),c=b}break;case"RELEASE":c=void 0;break;default:return}}catch(e){c={value:e,[s]:0}}Promise.resolve(c).catch(e=>({value:e,[s]:0})).then(e=>{let[s,i]=d(e);r.postMessage(Object.assign(Object.assign({},s),{id:u}),i),"RELEASE"===m&&(r.removeEventListener("message",a),l(r),n in t&&"function"==typeof t[n]&&t[n]())}).catch(e=>{let[t,n]=d({value:TypeError("Unserializable return value"),[s]:0});r.postMessage(Object.assign(Object.assign({},t),{id:u}),n)})}),r.start&&r.start()}function l(e){"MessagePort"===e.constructor.name&&e.close()}function g(e){if(e)throw Error("Proxy has been released and is not useable")}function c(e){return f(e,new Map,{type:"RELEASE"}).then(()=>{l(e)})}let u=new WeakMap,m="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(u.get(e)||0)-1;u.set(e,t),0===t&&c(e)});function h(e){var t;let r=e.map(d);return[r.map(e=>e[0]),(t=r.map(e=>e[1]),Array.prototype.concat.apply([],t))]}let p=new WeakMap;function d(e){for(let[t,r]of a)if(r.canHandle(e)){let[n,s]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},s]}return[{type:"RAW",value:e},p.get(e)||[]]}function y(e){switch(e.type){case"HANDLER":return a.get(e.name).deserialize(e.value);case"RAW":return e.value}}function f(e,t,r,n){return new Promise(s=>{let i=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(i,s),e.start&&e.start(),e.postMessage(Object.assign({id:i},r),n)})}function w(){self.close()}class b{memStore={};memory;instance;logger=()=>{};getImportObj(e){return{wasi_snapshot_preview1:{random_get:(e,t)=>{e>>>=0;let r=(e=>{let t="u">typeof window&&window.crypto?window.crypto:"u">typeof globalThis&&globalThis.crypto?globalThis.crypto:void 0;if(!t)throw Error("randomBytes UnsupportedEnvironment");let r=new Uint8Array(e);if(e>65536)for(let n=0;n<e;n+=65536)t.getRandomValues(r.subarray(n,n+65536));else t.getRandomValues(r);return r})(t);this.getMemory().set(r,e)},clock_time_get:(e,t,r)=>{r>>>=0;let n=1000000n*BigInt(new Date().getTime());new DataView(this.getMemory().buffer).setBigUint64(r,n,!0)},proc_exit:()=>{throw this.logger("PANIC: proc_exit was called."),Error()}},env:{logstr:e=>{let t=this.stringFromAddress(e),r=this.getMemory(),n=`${t} (mem: ${(r.length/1048576).toFixed(2)}MiB)`;this.logger(n)},throw_or_abort_impl:e=>{throw Error(this.stringFromAddress(e))},get_data:(e,t)=>{let r=this.stringFromAddress(e);t>>>=0;let n=this.memStore[r];n?this.writeMemory(t,n):this.logger(`get_data miss ${r}`)},set_data:(e,t,r)=>{let n=this.stringFromAddress(e);t>>>=0,this.memStore[n]=this.getMemorySlice(t,t+r)},memory:e}}}exports(){return this.instance.exports}call(e,...t){if(!this.exports()[e])throw Error(`WASM function ${e} not found.`);try{return this.exports()[e](...t)>>>0}catch(r){let t=`WASM function ${e} aborted, error: ${r}`;throw this.logger(t),this.logger(r.stack),r}}memSize(){return this.getMemory().length}getMemorySlice(e,t){return this.getMemory().subarray(e,t).slice()}writeMemory(e,t){this.getMemory().set(t,e)}getMemory(){return new Uint8Array(this.memory.buffer)}stringFromAddress(e){e>>>=0;let t=this.getMemory(),r=e;for(;0!==t[r];++r);return new TextDecoder("ascii").decode(t.slice(e,r))}}class E extends b{async initThread(e,t,r=!1){this.logger=(r?e=>{postMessage({type:"log",msg:e})}:console.log)||this.logger,this.memory=t,this.instance=await WebAssembly.instantiate(e,this.getImportObj(this.memory)
1)}destroy(){w()}getImportObj(e){let t=super.getImportObj(e);return{...t,wasi:{"thread-spawn":()=>{this.logger("PANIC: threads cannot spawn threads!"),this.logger(Error().stack),w()}},env:{...t.env,env_hardware_concurrency:()=>1}}}}o(new E),postMessage({ready:!0})})(),_N_E={};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.