varnj=Object.create;varoA=Object.defineProperty;varij=Object.getOwnPropertyDescriptor;varBj=Object.getOwnPropertyNames;varsj=Object.getPrototypeOf,lj=Object.prototype.hasOwnProperty;varTA=A=>oA(A,"__esModule",{value:!0});varGA=(A,j)=>()=>(j||A((j={exports:{}}).exports,j),j.exports),NA=(A,j)=>{TA(A);for(var$inj)oA(A,$,{get:j[$],enumerable:!0})},cj=(A,j,$)=>{if(j&&typeofj=="object"||typeofj=="function")for(lethofBj(j))!lj.call(A,h)&&h!=="default"&&oA(A,h,{get:()=>j[h],enumerable:!($=ij(j,h))||$.enumerable});returnA},QA=A=>cj(TA(oA(A!=null?nj(sj(A)):{},"default",A&&A.__esModule&&"default"inA?{get:()=>A.default,enumerable:!0}:{value:A,enumerable:!0})),A);varHA=GA((Tj,nA)=>{(function(){varA={};functionj(){}function$(e){returne}functionh(e){return!!e}functionr(e){return!e}varo,B=typeofself=="object"&&self.self===self&&self||typeofglobal=="object"&&global.global===global&&global||this;B!=null&&(o=B.async),A.noConflict=function(){returnB.async=o,A};functionE(e){returnfunction(){if(e===null)thrownewError("Callback was already called.");e.apply(this,arguments),e=null}}functiong(e){returnfunction(){e!==null&&(e.apply(this,arguments),e=null)}}var_=Object.prototype.toString,D=Array.isArray||function(e){return_.call(e)==="[object Array]"},N=function(e){vart=typeofe;returnt==="function"||t==="object"&&!!e};functionX(e){returnD(e)||typeofe.length=="number"&&e.length>=0&&e.length%1==0}functiony(e,t){for(vara=-1,n=e.length;++a<n;)t(e[a],a,e)}functionM(e,t){for(vara=-1,n=e.length,i=Array(n);++a<n;)i[a]=t(e[a],a,e);returni}functionZ(e){returnM(Array(e),function(t,a){returna})}functionej(e,t,a){returny(e,function(n,i,s){a=t(a,n,i,s)}),a}functiontj(e,t){y(uA(e),function(a){t(e[a],a)})}functionPA(e,t){for(vara=0;a<e.length;a++)if(e[a]===t)returna;return-1}varuA=Object.keys||function(e){vart=[];for(varaine)e.hasOwnProperty(a)&&t.push(a);returnt};functionkA(e){vart=-1,a,n;returnX(e)?(a=e.length,function(){returnt++,t<a?t:null}):(n=uA(e),a=n.length,function(){returnt++,t<a?n[t]:null})}functionQ(e,t){returnt=t==null?e.length-1:+t,function(){for(vara=Math.max(arguments.length-t,0),n=Array(a),i=0;i<a;i++)n[i]=arguments[i+t];switch(t){case0:returne.call(this,n);case1:returne.call(this,arguments[0],n)}}}functionpA(e){returnfunction(t,a,n){returne(t,n)}}varqA=typeofsetImmediate=="function"&&setImmediate,xA=qA?function(e){qA(e)}:function(e){setTimeout(e,0)};typeofprocess=="object"&&typeofprocess.nextTick=="function"?A.nextTick=process.nextTick:A.nextTick=xA,A.setImmediate=qA?xA:A.nextTick,A.forEach=A.each=function(e,t,a){returnA.eachOf(e,pA(t),a)},A.forEachSeries=A.eachSeries=function(e,t,a){returnA.eachOfSeries(e,pA(t),a)},A.forEachLimit=A.eachLimit=function(e,t,a,n){returnAA(t)(e,pA(a),n)},A.forEachOf=A.eachOf=function(e,t,a){a=g(a||j),e=e||[];for(varn=kA(e),i,s=0;(i=n())!=null;)s+=1,t(e[i],i,E(l));s===0&&a(null);functionl(c){s--,c?a(c):i===null&&s<=0&&a(null)}},A.forEachOfSeries=A.eachOfSeries=function(e,t,a){a=g(a||j),e=e||[];varn=kA(e),i=n();functions(){varl=!0;if(i===null)returna(null);t(e[i],i,E(function(c){if(c)a(c);else{if(i=n(),i===null)returna(null);l?A.setImmediate(s):s()}})),l=!1}s()},A.forEachOfLimit=A.eachOfLimit=function(e,t,a,n){AA(t)(e,a,n)};functionAA(e){returnfunction(t,a,n){n=g(n||j),t=t||[];vari=kA(t);if(e<=0)returnn(null);vars=!1,l=0,c=!1;(functionp(){if(s&&l<=0)returnn(null);for(;l<e&&!c;){varq=i();if(q===null){s=!0,l<=0&&n(null);return}l+=1,a(t[q],q,E(function(f){l-=1,f?(n(f),c=!0):p()}))}})()}}functionjA(e){returnfunction(t,a,n){returne(A.eachOf,t,a,n)}}functiondA(e){returnfunction(t,a,n,i){returne(AA(a),t,n,i)}}functionrA(e){returnfunction(t,a,n){returne(A.eachOfSeries,t,a,n)}}functionhA(e,t,a,n){n=g(n||j),t=t||[];vari=X(t)?[]:{};e(t,function(s,l,c){a(s,function(p,q){i[l]=q,c(p)})},function(s){n(s,i)})}A.map=jA(hA),A.mapSeries=rA(hA),A.mapLimit=dA(hA),A.inject=A.foldl=A.reduce=function(e,t,a,n){A.eachOfSeries(e,function(i,s,l){a(t,i,function(c,p){t=p,l(c)})},function(i){n(i,t)})},A.foldr=A.reduceRight=function(e,t,a,n
${A.stack}`:h}function Ij(A,j,$,h){let r={a:A,b:j,cnt:1,dtor:$},o=(...B)=>{r.cnt++;try{return h(r.a,r.b,...B)}finally{--r.cnt==0&&(d.__wbindgen_export_2.get(r.dtor)(r.a,r.b),r.a=0)}};return o.original=r,o}function vj(A,j,$){let h=P($,d.__wbindgen_malloc,d.__wbindgen_realloc),r=w;d._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h927f6478d88dcd5c(A,j,h,r)}function WA(A,j,$,h){let r={a:A,b:j,cnt:1,dtor:$},o=(...B)=>{r.cnt++;let E=r.a;r.a=0;try{return h(E,r.b,...B)}finally{--r.cnt==0?d.__wbindgen_export_2.get(r.dtor)(E,r.b):r.a=E}};return o.original=r,o}function wj(A,j,$,h,r){let o=P(h,d.__wbindgen_malloc,d.__wbindgen_realloc),B=w,E=P(r,d.__wbindgen_malloc,d.__wbindgen_realloc),g=w;d._dyn_core__ops__function__FnMut__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h69a75fd0d8dcc6d3(A,j,U($)?0:k($),o,B,E,g)}function _j(A,j,$){d._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7c3321bf6780a26(A,j,k($))}function ZA(A){let j=d.onload(k(A));return v(j)}function Dj(A){let j=d.settings(k(A));return v(j)}function L(A,j){try{return A.apply(this,j)}catch($){d.__wbindgen_exn_store(k($))}}function Pj(A,j,$,h){d.wasm_bindgen__convert__closures__invoke2_mut__hec91c3f17a5bbfea(A,j,k($),k(h))}function xj(A,j,$){d.wasm_bindgen__convert__closures__invoke1__h181f783e5529fa34(A,j,k($))}var z=class{static __wrap(j){let $=Object.create(z.prototype);return $.ptr=j,$}__destroy_into_raw(){let j=this.ptr;return this.ptr=0,j}free(){let j=this.__destroy_into_raw();d.__wbg_archivecommand_free(j)}get id(){let j=d.archivecommand_id(this.ptr);return v(j)}set id(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.archivecommand_set_id(this.ptr,$,h)}get name(){let j=d.archivecommand_name(this.ptr);return v(j)}set name(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.archivecommand_set_name(this.ptr,$,h)}callback(){let j=d.archivecommand_callback(this.ptr);return v(j)}},W=class{static __wrap(j){let $=Object.create(W.prototype);return $.ptr=j,$}__destroy_into_raw(){let j=this.ptr;return this.ptr=0,j}free(){let j=this.__destroy_into_raw();d.__wbg_extractcommand_free(j)}get id(){let j=d.extractcommand_id(this.ptr);return v(j)}set id(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.extractcommand_set_id(this.ptr,$,h)}get name(){let j=d.extractcommand_name(this.ptr);return v(j)}set name(j){let $=P(j,d.__wbindgen_malloc,d.__wbindgen_realloc),h=w;d.extractcommand_set_name(this.ptr,$,h)}callback(){let j=d.extractcommand_callback(this.ptr);return v(j)}};async function Oj(A,j){if(typeof Response=="function"&&A instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(A,j)}catch(h){if(A.headers.get("Content-Type")!="application/wasm")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",h);else throw h}let $=await A.arrayBuffer();return await WebAssembly.instantiate($,j)}else{let $=await WebAssembly.instantiate(A,j);return $ instanceof WebAssembly.Instance?{instance:$,module:A}:$}}async function Aj(A){typeof A=="undefined"&&(A=new URL("obsidian_rust_plugin_bg.wasm",yj.url));let j={};j.wbg={},j.wbg.__wbindgen_object_drop_ref=function(r){v(r)},j.wbg.__wbg_setPlaceholder_0d4c6931970d6b8c=function(r,o,B){let E=u(r).setPlaceholder(m(o,B));return k(E)},j.wbg.__wbg_setValue_3035c93aaf89ec27=function(r,o,B){let E=u(r).setValue(m(o,B));return k(E)},j.wbg.__wbg_onChange_57f355586266016e=function(r,o){let B=u(r).onChange(v(o));return k(B)},j.wbg.__wbindgen_string_get=function(r,o){let B=u(o),E=typeof B=="string"?B:void 0;var g=U(E)?0:P(E,d.__wbindgen_malloc,d.__wbindgen_realloc),_=w;O()[r/4+1]=_,O()[r/4+0]=g},j.wbg.__wbg_loadData_216184d2c1296582=function(r){let o=u(r).loadData();return k(o)},j.wbg.__wbindgen_json_serialize=function(r,o){let B=u(o),E=JSON.stringify(B===void 0?null:B),g=