constpagefind_version="1.2.0";letwasm_bindgen;(function(){const__exports={};letscript_src;if(typeofdocument!=='undefined'&&document.currentScript!==null){script_src=newURL("UNHANDLED",location.href).toString()}letwasm=undefined;letcachedUint8Memory0=null;functiongetUint8Memory0(){if(cachedUint8Memory0===null||cachedUint8Memory0.byteLength===0){cachedUint8Memory0=newUint8Array(wasm.memory.buffer)}returncachedUint8Memory0}letWASM_VECTOR_LEN=0;functionpassArray8ToWasm0(arg,malloc){constptr=malloc(arg.length*1,1)>>>0;getUint8Memory0().set(arg,ptr/1);WASM_VECTOR_LEN=arg.length;returnptr}__exports.init_pagefind=function(metadata_bytes){constptr0=passArray8ToWasm0(metadata_bytes,wasm.__wbindgen_malloc);constlen0=WASM_VECTOR_LEN;constret=wasm.init_pagefind(ptr0,len0);returnret>>>0};constcachedTextEncoder=(typeofTextEncoder!=='undefined'?newTextEncoder('utf-8'):{encode:()=>{throwError('TextEncoder not available')}});constencodeString=(typeofcachedTextEncoder.encodeInto==='function'?function(arg,view){returncachedTextEncoder.encodeInto(arg,view)}:function(arg,view){constbuf=cachedTextEncoder.encode(arg);view.set(buf);return{read:arg.length,written:buf.length}});functionpassStringToWasm0(arg,malloc,realloc){if(realloc===undefined){constbuf=cachedTextEncoder.encode(arg);constptr=malloc(buf.length,1)>>>0;getUint8Memory0().subarray(ptr,ptr+buf.length).set(buf);WASM_VECTOR_LEN=buf.length;returnptr}letlen=arg.length;letptr=malloc(len,1)>>>0;constmem=getUint8Memory0();letoffset=0;for(;offset<len;offset++){constcode=arg.charCodeAt(offset);if(code>0x7F)break;mem[ptr+offset]=code}if(offset!==len){if(offset!==0){arg=arg.slice(offset)}ptr=realloc(ptr,len,len=offset+arg.length*3,1)>>>0;constview=getUint8Memory0().subarray(ptr+offset,ptr+len);constret=encodeString(arg,view);offset+=ret.written;ptr=realloc(ptr,len,offset,1)>>>0}WASM_VECTOR_LEN=offset;returnptr}__exports.set_ranking_weights=function(ptr,weights){constptr0=passStringToWasm0(weights,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);constlen0=WASM_VECTOR_LEN;constret=wasm.set_ranking_weights(ptr,ptr0,len0);returnret>>>0};__exports.load_index_chunk=function(ptr,chunk_bytes){constptr0=passArray8ToWasm0(chunk_bytes,wasm.__wbindgen_malloc);constlen0=WASM_VECTOR_LEN;constret=wasm.load_index_chunk(ptr,ptr0,len0);returnret>>>0};__exports.load_filter_chunk=function(ptr,chunk_bytes){constptr0=passArray8ToWasm0(chunk_bytes,wasm.__wbindgen_malloc);constlen0=WASM_VECTOR_LEN;constret=wasm.load_filter_chunk(ptr,ptr0,len0);returnret>>>0};__exports.add_synthetic_filter=function(ptr,filter){constptr0=passStringToWasm0(filter,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);constlen0=WASM_VECTOR_LEN;constret=wasm.add_synthetic_filter(ptr,ptr0,len0);returnret>>>0};letcachedInt32Memory0=null;functiongetInt32Memory0(){if(cachedInt32Memory0===null||cachedInt32Memory0.byteLength===0){cachedInt32Memory0=newInt32Array(wasm.memory.buffer)}returncachedInt32Memory0}constcachedTextDecoder=(typeofTextDecoder!=='undefined'?newTextDecoder('utf-8',{ignoreBOM:true,fatal:true}):{decode:()=>{throwError('TextDecoder not available')}});if(typeofTextDecoder!=='undefined'){cachedTextDecoder.decode()};functiongetStringFromWasm0(ptr,len){ptr=ptr>>>0;returncachedTextDecoder.decode(getUint8Memory0().subarray(ptr,ptr+len))}__exports.request_indexes=function(ptr,query){letdeferred2_0;letdeferred2_1;try{constretptr=wasm.__wbindgen_add_to_stack_pointer(-16);constptr0=passStringToWasm0(query,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc);constlen0=WASM_VECTOR_LEN;wasm.request_indexes(retptr,ptr,ptr0,len0);varr0=getInt32Memory0()[retptr/4+0];varr1=getInt32Memory0()[retptr/4+1];deferred2_0=r0;deferred2_1=r1;returngetStringFromWasm0(r0,r1)}finally{wasm.__wbindgen_add_to_stack_pointer(16);wasm.__wbindgen_free(deferred2_0,deferred2_1,1)}};__exports.request_filter_indexes=function(ptr,filters){letdeferred2_0;letdeferred2_1;try{constretptr=wasm.__wbindgen_add_to_stack_pointer(-16);constptr0=passStringToWasm0(filters,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc