mq-web 0.6.5 → 0.8.0
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.
- package/dist/core.d.ts +2 -0
- package/dist/core.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/mq_wasm.js +26 -10
- package/dist/mq_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ interface Options {
|
|
|
36
36
|
linkUrlStyle: 'angle' | 'none' | null,
|
|
37
37
|
/** Domains permitted for HTTP module imports in addition to github.com/harehare (always allowed). */
|
|
38
38
|
allowedDomains?: string[],
|
|
39
|
+
/** Maximum time in milliseconds a query may run before evaluation is aborted. Disabled (no timeout) if omitted. */
|
|
40
|
+
timeoutMs?: number,
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
|
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var V=Object.defineProperty;var z=(n,t)=>()=>(n&&(t=n(n=0)),t);var U=(n,t)=>{for(var e in t)V(n,e,{get:t[e],enumerable:!0})};var E={};U(E,{ConversionOptions:()=>A,RunOptions:()=>R,clearAllHttpCache:()=>L,clearHttpCache:()=>q,default:()=>W,definedValues:()=>B,diagnostics:()=>$,format:()=>N,hover:()=>G,htmlToMarkdown:()=>J,initSync:()=>ft,inlayHints:()=>X,run:()=>Y,toAst:()=>K,toHtml:()=>Q});function L(){let n=_.clearAllHttpCache();return u(n)}function q(){let n=_.clearHttpCache();return u(n)}function B(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f;var i=w(t)?0:b(t,_.__wbindgen_export,_.__wbindgen_export2),c=f;let a=_.definedValues(e,r,i,c);return u(a)}function $(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f,i=_.diagnostics(e,r,w(t)?16777215:t?1:0);return u(i)}function N(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.format(t,e);return u(r)}function G(n,t,e){let r=b(n,_.__wbindgen_export,_.__wbindgen_export2),i=f,c=_.hover(r,i,t,e);return u(c)}function J(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f,i=0;w(t)||(rt(t,A),i=t.__destroy_into_raw());let c=_.htmlToMarkdown(e,r,i);return u(c)}function X(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.inlayHints(t,e);return u(r)}function Y(n,t,e){let r=b(n,_.__wbindgen_export,_.__wbindgen_export2),i=f,c=b(t,_.__wbindgen_export,_.__wbindgen_export2),a=f,g=_.run(r,i,c,a,s(e));return u(g)}function K(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.toAst(t,e);return u(r)}function Q(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.toHtml(t,e);return u(r)}function D(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){let r=Error(h(t,e));return s(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(o(e)),i=b(r,_.__wbindgen_export,_.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(t){let e=o(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let r=T(o(e)),i=b(r,_.__wbindgen_export,_.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,i,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_object_a27215656b807791:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(t,e){let r=o(e),i=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(i)?0:i,!0),p().setInt32(t+0,!w(i),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let r=o(e),i=typeof r=="string"?r:void 0;var c=w(i)?0:b(i,_.__wbindgen_export,_.__wbindgen_export2),a=f;p().setInt32(t+4,a,!0),p().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(h(t,e))},__wbg__wbg_cb_unref_fffb441def202758:function(t){o(t)._wbg_cb_unref()},__wbg_arrayBuffer_a158e423a87ee756:function(t){let e=o(t).arrayBuffer();return s(e)},__wbg_call_8a2dd23819f8a60a:function(){return l(function(t,e){let r=o(t).call(o(e));return s(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return l(function(t,e,r){let i=o(t).call(o(e),o(r));return s(i)},arguments)},__wbg_close_175f8e039af34f61:function(t){let e=o(t).close();return s(e)},__wbg_createWritable_948844b52d1fa148:function(t,e){let r=o(t).createWritable(o(e));return s(r)},__wbg_done_89b2b13e91a60321:function(t){return o(t).done},__wbg_entries_015dc610cd81ede0:function(t){let e=Object.entries(o(t));return s(e)},__wbg_error_744744ff0c9861e6:function(t){console.error(o(t))},__wbg_getDirectoryHandle_cf175faf1a75a384:function(t,e,r,i){let c=o(t).getDirectoryHandle(h(e,r),o(i));return s(c)},__wbg_getDirectory_389283588dfb8117:function(t){let e=o(t).getDirectory();return s(e)},__wbg_getFileHandle_72de55ab3ca9ad57:function(t,e,r,i){let c=o(t).getFileHandle(h(e,r),o(i));return s(c)},__wbg_getFile_bdc0144baa662031:function(t){let e=o(t).getFile();return s(e)},__wbg_getRandomValues_bf16787eede473f5:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getTimezoneOffset_dc9862c79e5a81a3:function(t){return o(t).getTimezoneOffset()},__wbg_get_507a50627bffa49b:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_78f252d074a84d0b:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=o(t)[o(e)];return s(r)},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Response_c8b64b2256f01bec:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_05ba1ee4f6781663:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_0677c962b281d01a:function(t){return Array.isArray(o(t))},__wbg_iterator_6f722e4a93058b71:function(){return s(Symbol.iterator)},__wbg_length_1f0964f4a5e2c6d8:function(t){return o(t).length},__wbg_length_370319915dc99107:function(t){return o(t).length},__wbg_log_d267660666346fb3:function(t){console.log(o(t))},__wbg_navigator_99621db14b3f1099:function(t){let e=o(t).navigator;return s(e)},__wbg_new_32b398fb48b6d94a:function(){let t=new Array;return s(t)},__wbg_new_cc984128914cfc6f:function(t){let e=new Date(o(t));return s(e)},__wbg_new_cd45aabdf6073e84:function(t){let e=new Uint8Array(o(t));return s(e)},__wbg_new_da52cf8fe3429cb2:function(){let t=new Object;return s(t)},__wbg_new_from_slice_77cdfb7977362f3c:function(t,e){let r=new Uint8Array(k(t,e));return s(r)},__wbg_new_typed_1824d93f294193e5:function(t,e){try{var r={a:t,b:e},i=(a,g)=>{let m=r.a;r.a=0;try{return tt(m,r.b,a,g)}finally{r.a=m}};let c=new Promise(i);return s(c)}finally{r.a=0}},__wbg_new_with_u8_array_sequence_f0abc57daa021d87:function(){return l(function(t,e,r){let i=new File(o(t),h(e,r));return s(i)},arguments)},__wbg_next_6dbf2c0ac8cde20f:function(t){let e=o(t).next;return s(e)},__wbg_next_71f2aa1cb3d1e37e:function(){return l(function(t){let e=o(t).next();return s(e)},arguments)},__wbg_now_8e942e0f83109abc:function(){return l(function(){return Date.now()},arguments)},__wbg_ok_acc5e3fb89668864:function(t){return o(t).ok},__wbg_prototypesetcall_4770620bbe4688a0:function(t,e,r){Uint8Array.prototype.set.call(k(t,e),o(r))},__wbg_push_d2ae3af0c1217ae6:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(t){let e=o(t).queueMicrotask;return s(e)},__wbg_queueMicrotask_6a09b7bc46549209:function(t){queueMicrotask(o(t))},__wbg_removeEntry_6716e344f14ec77f:function(t,e,r,i){let c=o(t).removeEntry(h(e,r),o(i));return s(c)},__wbg_resolve_2191a4dfe481c25b:function(t){let e=Promise.resolve(o(t));return s(e)},__wbg_set_6be42768c690e380:function(t,e,r){o(t)[u(e)]=u(r)},__wbg_set_8a16b38e4805b298:function(t,e,r){o(t)[e>>>0]=u(r)},__wbg_set_create_a807a6e9ac628698:function(t,e){o(t).create=e!==0},__wbg_set_create_fa1dfa475fac91e9:function(t,e){o(t).create=e!==0},__wbg_set_keep_existing_data_afe338638152ceb3:function(t,e){o(t).keepExistingData=e!==0},__wbg_set_recursive_a4f915c7492b89e8:function(t,e){o(t).recursive=e!==0},__wbg_size_6304a694765921a9:function(t){return o(t).size},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let t=typeof global>"u"?null:global;return w(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:s(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let t=typeof self>"u"?null:self;return w(t)?0:s(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let t=typeof window>"u"?null:window;return w(t)?0:s(t)},__wbg_status_c45b3b9b3033184a:function(t){return o(t).status},__wbg_storage_756400487605531a:function(t){let e=o(t).storage;return s(e)},__wbg_text_d3a29f7525a132c3:function(){return l(function(t){let e=o(t).text();return s(e)},arguments)},__wbg_then_16d107c451e9905d:function(t,e,r){let i=o(t).then(o(e),o(r));return s(i)},__wbg_then_6ec10ae38b3e92f7:function(t,e){let r=o(t).then(o(e));return s(r)},__wbg_value_a5d5488a9589444a:function(t){let e=o(t).value;return s(e)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(o(t))},__wbg_write_65f9b97b832da300:function(){return l(function(t,e){let r=o(t).write(o(e));return s(r)},arguments)},__wbindgen_cast_0000000000000001:function(t,e){let r=it(t,e,Z);return s(r)},__wbindgen_cast_0000000000000002:function(t){return s(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=h(t,e);return s(r)},__wbindgen_object_clone_ref:function(t){let e=o(t);return s(e)},__wbindgen_object_drop_ref:function(t){u(t)}}}}function Z(n,t,e){try{let c=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1247(c,n,t,s(e));var r=p().getInt32(c+0,!0),i=p().getInt32(c+4,!0);if(i)throw u(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1545(n,t,s(e),s(r))}function s(n){v===y.length&&y.push(y.length+1);let t=v;return v=y[t],y[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function T(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let i=n.description;return i==null?"Symbol":`Symbol(${i})`}if(t=="function"){let i=n.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){let i=n.length,c="[";i>0&&(c+=T(n[0]));for(let a=1;a<i;a++)c+=", "+T(n[a]);return c+="]",c}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
-
${n.stack}`:r}function ot(n){n<1028||(y[n]=v,v=n)}function k(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==
|
|
1
|
+
var V=Object.defineProperty;var z=(n,t,e)=>()=>{if(e)throw e[0];try{return n&&(t=n(n=0)),t}catch(r){throw e=[r],r}};var U=(n,t)=>{for(var e in t)V(n,e,{get:t[e],enumerable:!0})};var E={};U(E,{ConversionOptions:()=>A,RunOptions:()=>R,clearAllHttpCache:()=>L,clearHttpCache:()=>q,default:()=>I,definedValues:()=>B,diagnostics:()=>$,format:()=>N,hover:()=>G,htmlToMarkdown:()=>J,initSync:()=>ft,inlayHints:()=>X,run:()=>Y,toAst:()=>K,toHtml:()=>Q});function L(){let n=i.clearAllHttpCache();return u(n)}function q(){let n=i.clearHttpCache();return u(n)}function B(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=f;var _=w(t)?0:b(t,i.__wbindgen_export,i.__wbindgen_export2),c=f;let a=i.definedValues(e,r,_,c);return u(a)}function $(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=f,_=i.diagnostics(e,r,w(t)?16777215:t?1:0);return u(_)}function N(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=f,r=i.format(t,e);return u(r)}function G(n,t,e){let r=b(n,i.__wbindgen_export,i.__wbindgen_export2),_=f,c=i.hover(r,_,t,e);return u(c)}function J(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=f,_=0;w(t)||(rt(t,A),_=t.__destroy_into_raw());let c=i.htmlToMarkdown(e,r,_);return u(c)}function X(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=f,r=i.inlayHints(t,e);return u(r)}function Y(n,t,e){let r=b(n,i.__wbindgen_export,i.__wbindgen_export2),_=f,c=b(t,i.__wbindgen_export,i.__wbindgen_export2),a=f,g=i.run(r,_,c,a,s(e));return u(g)}function K(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=f,r=i.toAst(t,e);return u(r)}function Q(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=f,r=i.toHtml(t,e);return u(r)}function j(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){let r=Error(h(t,e));return s(r)},__wbg_Number_9a4e0ecb0fa16705:function(t){return Number(o(t))},__wbg_String_8564e559799eccda:function(t,e){let r=String(o(e)),_=b(r,i.__wbindgen_export,i.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,_,!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(t){let e=o(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let r=T(o(e)),_=b(r,i.__wbindgen_export,i.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,_,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_object_a27215656b807791:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(t,e){let r=o(e),_=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(_)?0:_,!0),p().setInt32(t+0,!w(_),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let r=o(e),_=typeof r=="string"?r:void 0;var c=w(_)?0:b(_,i.__wbindgen_export,i.__wbindgen_export2),a=f;p().setInt32(t+4,a,!0),p().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(h(t,e))},__wbg__wbg_cb_unref_fffb441def202758:function(t){o(t)._wbg_cb_unref()},__wbg_arrayBuffer_a158e423a87ee756:function(t){let e=o(t).arrayBuffer();return s(e)},__wbg_call_8a2dd23819f8a60a:function(){return l(function(t,e){let r=o(t).call(o(e));return s(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return l(function(t,e,r){let _=o(t).call(o(e),o(r));return s(_)},arguments)},__wbg_close_175f8e039af34f61:function(t){let e=o(t).close();return s(e)},__wbg_createWritable_948844b52d1fa148:function(t,e){let r=o(t).createWritable(o(e));return s(r)},__wbg_done_89b2b13e91a60321:function(t){return o(t).done},__wbg_entries_015dc610cd81ede0:function(t){let e=Object.entries(o(t));return s(e)},__wbg_error_744744ff0c9861e6:function(t){console.error(o(t))},__wbg_getDirectoryHandle_cf175faf1a75a384:function(t,e,r,_){let c=o(t).getDirectoryHandle(h(e,r),o(_));return s(c)},__wbg_getDirectory_389283588dfb8117:function(t){let e=o(t).getDirectory();return s(e)},__wbg_getFileHandle_72de55ab3ca9ad57:function(t,e,r,_){let c=o(t).getFileHandle(h(e,r),o(_));return s(c)},__wbg_getFile_bdc0144baa662031:function(t){let e=o(t).getFile();return s(e)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getRandomValues_ceb34d8ffce7e87f:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getTimezoneOffset_dc9862c79e5a81a3:function(t){return o(t).getTimezoneOffset()},__wbg_get_507a50627bffa49b:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_78f252d074a84d0b:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=o(t)[o(e)];return s(r)},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Response_c8b64b2256f01bec:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_05ba1ee4f6781663:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_0677c962b281d01a:function(t){return Array.isArray(o(t))},__wbg_isSafeInteger_04f36e4056f1b851:function(t){return Number.isSafeInteger(o(t))},__wbg_iterator_6f722e4a93058b71:function(){return s(Symbol.iterator)},__wbg_length_1f0964f4a5e2c6d8:function(t){return o(t).length},__wbg_length_370319915dc99107:function(t){return o(t).length},__wbg_log_d267660666346fb3:function(t){console.log(o(t))},__wbg_navigator_99621db14b3f1099:function(t){let e=o(t).navigator;return s(e)},__wbg_new_32b398fb48b6d94a:function(){let t=new Array;return s(t)},__wbg_new_cc984128914cfc6f:function(t){let e=new Date(o(t));return s(e)},__wbg_new_cd45aabdf6073e84:function(t){let e=new Uint8Array(o(t));return s(e)},__wbg_new_da52cf8fe3429cb2:function(){let t=new Object;return s(t)},__wbg_new_from_slice_77cdfb7977362f3c:function(t,e){let r=new Uint8Array(k(t,e));return s(r)},__wbg_new_typed_1824d93f294193e5:function(t,e){try{var r={a:t,b:e},_=(a,g)=>{let m=r.a;r.a=0;try{return tt(m,r.b,a,g)}finally{r.a=m}};let c=new Promise(_);return s(c)}finally{r.a=0}},__wbg_new_with_u8_array_sequence_f0abc57daa021d87:function(){return l(function(t,e,r){let _=new File(o(t),h(e,r));return s(_)},arguments)},__wbg_next_6dbf2c0ac8cde20f:function(t){let e=o(t).next;return s(e)},__wbg_next_71f2aa1cb3d1e37e:function(){return l(function(t){let e=o(t).next();return s(e)},arguments)},__wbg_now_e7c6795a7f81e10f:function(t){return o(t).now()},__wbg_now_f663ab0a5177b799:function(){return l(function(){return Date.now()},arguments)},__wbg_ok_acc5e3fb89668864:function(t){return o(t).ok},__wbg_performance_3fcf6e32a7e1ed0a:function(t){let e=o(t).performance;return s(e)},__wbg_prototypesetcall_4770620bbe4688a0:function(t,e,r){Uint8Array.prototype.set.call(k(t,e),o(r))},__wbg_push_d2ae3af0c1217ae6:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(t){let e=o(t).queueMicrotask;return s(e)},__wbg_queueMicrotask_6a09b7bc46549209:function(t){queueMicrotask(o(t))},__wbg_removeEntry_6716e344f14ec77f:function(t,e,r,_){let c=o(t).removeEntry(h(e,r),o(_));return s(c)},__wbg_resolve_2191a4dfe481c25b:function(t){let e=Promise.resolve(o(t));return s(e)},__wbg_set_6be42768c690e380:function(t,e,r){o(t)[u(e)]=u(r)},__wbg_set_8a16b38e4805b298:function(t,e,r){o(t)[e>>>0]=u(r)},__wbg_set_create_a807a6e9ac628698:function(t,e){o(t).create=e!==0},__wbg_set_create_fa1dfa475fac91e9:function(t,e){o(t).create=e!==0},__wbg_set_keep_existing_data_afe338638152ceb3:function(t,e){o(t).keepExistingData=e!==0},__wbg_set_recursive_a4f915c7492b89e8:function(t,e){o(t).recursive=e!==0},__wbg_size_6304a694765921a9:function(t){return o(t).size},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let t=typeof global>"u"?null:global;return w(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:s(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let t=typeof self>"u"?null:self;return w(t)?0:s(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let t=typeof window>"u"?null:window;return w(t)?0:s(t)},__wbg_status_c45b3b9b3033184a:function(t){return o(t).status},__wbg_storage_756400487605531a:function(t){let e=o(t).storage;return s(e)},__wbg_text_d3a29f7525a132c3:function(){return l(function(t){let e=o(t).text();return s(e)},arguments)},__wbg_then_16d107c451e9905d:function(t,e,r){let _=o(t).then(o(e),o(r));return s(_)},__wbg_then_6ec10ae38b3e92f7:function(t,e){let r=o(t).then(o(e));return s(r)},__wbg_value_a5d5488a9589444a:function(t){let e=o(t).value;return s(e)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(o(t))},__wbg_write_65f9b97b832da300:function(){return l(function(t,e){let r=o(t).write(o(e));return s(r)},arguments)},__wbindgen_cast_0000000000000001:function(t,e){let r=_t(t,e,Z);return s(r)},__wbindgen_cast_0000000000000002:function(t){return s(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=h(t,e);return s(r)},__wbindgen_object_clone_ref:function(t){let e=o(t);return s(e)},__wbindgen_object_drop_ref:function(t){u(t)}}}}function Z(n,t,e){try{let c=i.__wbindgen_add_to_stack_pointer(-16);i.__wasm_bindgen_func_elem_1544(c,n,t,s(e));var r=p().getInt32(c+0,!0),_=p().getInt32(c+4,!0);if(_)throw u(r)}finally{i.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){i.__wasm_bindgen_func_elem_1853(n,t,s(e),s(r))}function s(n){v===y.length&&y.push(y.length+1);let t=v;return v=y[t],y[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function T(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let _=n.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){let _=n.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(n)){let _=n.length,c="[";_>0&&(c+=T(n[0]));for(let a=1;a<_;a++)c+=", "+T(n[a]);return c+="]",c}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function ot(n){n<1028||(y[n]=v,v=n)}function k(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==i.memory.buffer)&&(x=new DataView(i.memory.buffer)),x}function h(n,t){return st(n>>>0,t)}function F(){return(H===null||H.byteLength===0)&&(H=new Uint8Array(i.memory.buffer)),H}function o(n){return y[n]}function l(n,t){try{return n.apply(this,t)}catch(e){i.__wbindgen_export3(s(e))}}function w(n){return n==null}function _t(n,t,e){let r={a:n,b:t,cnt:1},_=(...c)=>{r.cnt++;let a=r.a;r.a=0;try{return e(a,r.b,...c)}finally{r.a=a,_._wbg_cb_unref()}};return _._wbg_cb_unref=()=>{--r.cnt===0&&(i.__wbindgen_export4(r.a,r.b),r.a=0,C.unregister(r))},C.register(_,r,r),_}function b(n,t,e){if(e===void 0){let g=O.encode(n),m=t(g.length,1)>>>0;return F().subarray(m,m+g.length).set(g),f=g.length,m}let r=n.length,_=t(r,1)>>>0,c=F(),a=0;for(;a<r;a++){let g=n.charCodeAt(a);if(g>127)break;c[_+a]=g}if(a!==r){a!==0&&(n=n.slice(a)),_=e(_,r,r=a+n.length*3,1)>>>0;let g=F().subarray(_+a,_+r),m=O.encodeInto(n,g);a+=m.written,_=e(_,r,a,1)>>>0}return f=a,_}function u(n){let t=o(n);return ot(n),t}function st(n,t){return P+=t,P>=it&&(S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),S.decode(),P=t),S.decode(F().subarray(n,n+t))}function D(n,t){return at=n,i=n.exports,ct=t,x=null,H=null,i}async function ut(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(_){if(n.ok&&e(n.type)&&n.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",_);else throw _}let r=await n.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let r=await WebAssembly.instantiate(n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}function e(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}function ft(n){if(i!==void 0)return i;n!==void 0&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=j();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));let e=new WebAssembly.Instance(n,t);return D(e,n)}async function I(n){if(i!==void 0)return i;n!==void 0&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),n===void 0&&(n=new URL("mq_wasm_bg.wasm",import.meta.url));let t=j();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:e,module:r}=await ut(await n,t);return D(e,r)}var A,R,et,nt,C,x,H,y,v,S,it,P,O,f,ct,at,i,W=z(()=>{"use strict";A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();i.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return i.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return i.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return i.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){i.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){i.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){i.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);R=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();i.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_conversionoptions_free(n,1)),nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_runoptions_free(n,1));C=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbindgen_export4(n.a,n.b));x=null;H=null;y=new Array(1024).fill(void 0);y.push(void 0,null,!0,!1);v=y.length;S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});S.decode();it=2146435072,P=0;O=new TextEncoder;"encodeInto"in O||(O.encodeInto=function(n,t){let e=O.encode(n);return t.set(e),{read:n.length,written:e.length}});f=0});W();var M=null;async function d(){return M||(await(async()=>{try{await I();let n=await Promise.resolve().then(()=>(W(),E));M={run:n.run,toAst:n.toAst,format:n.format,diagnostics:n.diagnostics,inlayHints:n.inlayHints,hover:n.hover,definedValues:n.definedValues,htmlToMarkdown:n.htmlToMarkdown,toHtml:n.toHtml,clearHttpCache:n.clearHttpCache,clearAllHttpCache:n.clearAllHttpCache}}catch(n){throw new Error(`Failed to initialize mq WebAssembly module: ${n}`)}})(),M)}async function ht(n,t,e={}){return await(await d()).run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function xt(n){return await(await d()).toAst(n)}async function At(n){return await(await d()).format(n)}async function Ht(n,t){return await(await d()).diagnostics(n,t)}async function Ft(n){return await(await d()).inlayHints(n)}async function vt(n,t){return await(await d()).definedValues(n,t)}async function Ot(n,t,e){return await(await d()).hover(n,t,e)}async function Rt(n,t){return await(await d()).htmlToMarkdown(n,t)}async function kt(n){return await(await d()).toHtml(n)}async function St(){return await(await d()).clearHttpCache()}async function Mt(){return await(await d()).clearAllHttpCache()}export{Mt as clearAllHttpCache,St as clearHttpCache,vt as definedValues,Ht as diagnostics,At as format,Ot as hover,Rt as htmlToMarkdown,Ft as inlayHints,ht as run,xt as toAst,kt as toHtml};
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ interface Options {
|
|
|
38
38
|
linkUrlStyle: 'angle' | 'none' | null,
|
|
39
39
|
/** Domains permitted for HTTP module imports in addition to github.com/harehare (always allowed). */
|
|
40
40
|
allowedDomains?: string[],
|
|
41
|
+
/** Maximum time in milliseconds a query may run before evaluation is aborted. Disabled (no timeout) if omitted. */
|
|
42
|
+
timeoutMs?: number,
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export type { DefinedValue, DefinedValueType, Diagnostic, HoverResult, InlayHint, Options };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var E=Object.defineProperty;var z=(n,t)=>()=>(n&&(t=n(n=0)),t);var U=(n,t)=>{for(var e in t)E(n,e,{get:t[e],enumerable:!0})};var V={};U(V,{ConversionOptions:()=>A,RunOptions:()=>R,clearAllHttpCache:()=>q,clearHttpCache:()=>L,default:()=>C,definedValues:()=>B,diagnostics:()=>$,format:()=>N,hover:()=>G,htmlToMarkdown:()=>J,initSync:()=>ft,inlayHints:()=>X,run:()=>Y,toAst:()=>K,toHtml:()=>Q});function q(){let n=_.clearAllHttpCache();return u(n)}function L(){let n=_.clearHttpCache();return u(n)}function B(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f;var i=w(t)?0:b(t,_.__wbindgen_export,_.__wbindgen_export2),c=f;let a=_.definedValues(e,r,i,c);return u(a)}function $(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f,i=_.diagnostics(e,r,w(t)?16777215:t?1:0);return u(i)}function N(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.format(t,e);return u(r)}function G(n,t,e){let r=b(n,_.__wbindgen_export,_.__wbindgen_export2),i=f,c=_.hover(r,i,t,e);return u(c)}function J(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f,i=0;w(t)||(rt(t,A),i=t.__destroy_into_raw());let c=_.htmlToMarkdown(e,r,i);return u(c)}function X(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.inlayHints(t,e);return u(r)}function Y(n,t,e){let r=b(n,_.__wbindgen_export,_.__wbindgen_export2),i=f,c=b(t,_.__wbindgen_export,_.__wbindgen_export2),a=f,g=_.run(r,i,c,a,s(e));return u(g)}function K(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.toAst(t,e);return u(r)}function Q(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.toHtml(t,e);return u(r)}function j(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){let r=Error(h(t,e));return s(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(o(e)),i=b(r,_.__wbindgen_export,_.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(t){let e=o(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let r=P(o(e)),i=b(r,_.__wbindgen_export,_.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,i,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_object_a27215656b807791:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(t,e){let r=o(e),i=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(i)?0:i,!0),p().setInt32(t+0,!w(i),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let r=o(e),i=typeof r=="string"?r:void 0;var c=w(i)?0:b(i,_.__wbindgen_export,_.__wbindgen_export2),a=f;p().setInt32(t+4,a,!0),p().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(h(t,e))},__wbg__wbg_cb_unref_fffb441def202758:function(t){o(t)._wbg_cb_unref()},__wbg_arrayBuffer_a158e423a87ee756:function(t){let e=o(t).arrayBuffer();return s(e)},__wbg_call_8a2dd23819f8a60a:function(){return l(function(t,e){let r=o(t).call(o(e));return s(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return l(function(t,e,r){let i=o(t).call(o(e),o(r));return s(i)},arguments)},__wbg_close_175f8e039af34f61:function(t){let e=o(t).close();return s(e)},__wbg_createWritable_948844b52d1fa148:function(t,e){let r=o(t).createWritable(o(e));return s(r)},__wbg_done_89b2b13e91a60321:function(t){return o(t).done},__wbg_entries_015dc610cd81ede0:function(t){let e=Object.entries(o(t));return s(e)},__wbg_error_744744ff0c9861e6:function(t){console.error(o(t))},__wbg_getDirectoryHandle_cf175faf1a75a384:function(t,e,r,i){let c=o(t).getDirectoryHandle(h(e,r),o(i));return s(c)},__wbg_getDirectory_389283588dfb8117:function(t){let e=o(t).getDirectory();return s(e)},__wbg_getFileHandle_72de55ab3ca9ad57:function(t,e,r,i){let c=o(t).getFileHandle(h(e,r),o(i));return s(c)},__wbg_getFile_bdc0144baa662031:function(t){let e=o(t).getFile();return s(e)},__wbg_getRandomValues_bf16787eede473f5:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getTimezoneOffset_dc9862c79e5a81a3:function(t){return o(t).getTimezoneOffset()},__wbg_get_507a50627bffa49b:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_78f252d074a84d0b:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=o(t)[o(e)];return s(r)},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Response_c8b64b2256f01bec:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_05ba1ee4f6781663:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_0677c962b281d01a:function(t){return Array.isArray(o(t))},__wbg_iterator_6f722e4a93058b71:function(){return s(Symbol.iterator)},__wbg_length_1f0964f4a5e2c6d8:function(t){return o(t).length},__wbg_length_370319915dc99107:function(t){return o(t).length},__wbg_log_d267660666346fb3:function(t){console.log(o(t))},__wbg_navigator_99621db14b3f1099:function(t){let e=o(t).navigator;return s(e)},__wbg_new_32b398fb48b6d94a:function(){let t=new Array;return s(t)},__wbg_new_cc984128914cfc6f:function(t){let e=new Date(o(t));return s(e)},__wbg_new_cd45aabdf6073e84:function(t){let e=new Uint8Array(o(t));return s(e)},__wbg_new_da52cf8fe3429cb2:function(){let t=new Object;return s(t)},__wbg_new_from_slice_77cdfb7977362f3c:function(t,e){let r=new Uint8Array(k(t,e));return s(r)},__wbg_new_typed_1824d93f294193e5:function(t,e){try{var r={a:t,b:e},i=(a,g)=>{let m=r.a;r.a=0;try{return tt(m,r.b,a,g)}finally{r.a=m}};let c=new Promise(i);return s(c)}finally{r.a=0}},__wbg_new_with_u8_array_sequence_f0abc57daa021d87:function(){return l(function(t,e,r){let i=new File(o(t),h(e,r));return s(i)},arguments)},__wbg_next_6dbf2c0ac8cde20f:function(t){let e=o(t).next;return s(e)},__wbg_next_71f2aa1cb3d1e37e:function(){return l(function(t){let e=o(t).next();return s(e)},arguments)},__wbg_now_8e942e0f83109abc:function(){return l(function(){return Date.now()},arguments)},__wbg_ok_acc5e3fb89668864:function(t){return o(t).ok},__wbg_prototypesetcall_4770620bbe4688a0:function(t,e,r){Uint8Array.prototype.set.call(k(t,e),o(r))},__wbg_push_d2ae3af0c1217ae6:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(t){let e=o(t).queueMicrotask;return s(e)},__wbg_queueMicrotask_6a09b7bc46549209:function(t){queueMicrotask(o(t))},__wbg_removeEntry_6716e344f14ec77f:function(t,e,r,i){let c=o(t).removeEntry(h(e,r),o(i));return s(c)},__wbg_resolve_2191a4dfe481c25b:function(t){let e=Promise.resolve(o(t));return s(e)},__wbg_set_6be42768c690e380:function(t,e,r){o(t)[u(e)]=u(r)},__wbg_set_8a16b38e4805b298:function(t,e,r){o(t)[e>>>0]=u(r)},__wbg_set_create_a807a6e9ac628698:function(t,e){o(t).create=e!==0},__wbg_set_create_fa1dfa475fac91e9:function(t,e){o(t).create=e!==0},__wbg_set_keep_existing_data_afe338638152ceb3:function(t,e){o(t).keepExistingData=e!==0},__wbg_set_recursive_a4f915c7492b89e8:function(t,e){o(t).recursive=e!==0},__wbg_size_6304a694765921a9:function(t){return o(t).size},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let t=typeof global>"u"?null:global;return w(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:s(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let t=typeof self>"u"?null:self;return w(t)?0:s(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let t=typeof window>"u"?null:window;return w(t)?0:s(t)},__wbg_status_c45b3b9b3033184a:function(t){return o(t).status},__wbg_storage_756400487605531a:function(t){let e=o(t).storage;return s(e)},__wbg_text_d3a29f7525a132c3:function(){return l(function(t){let e=o(t).text();return s(e)},arguments)},__wbg_then_16d107c451e9905d:function(t,e,r){let i=o(t).then(o(e),o(r));return s(i)},__wbg_then_6ec10ae38b3e92f7:function(t,e){let r=o(t).then(o(e));return s(r)},__wbg_value_a5d5488a9589444a:function(t){let e=o(t).value;return s(e)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(o(t))},__wbg_write_65f9b97b832da300:function(){return l(function(t,e){let r=o(t).write(o(e));return s(r)},arguments)},__wbindgen_cast_0000000000000001:function(t,e){let r=it(t,e,Z);return s(r)},__wbindgen_cast_0000000000000002:function(t){return s(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=h(t,e);return s(r)},__wbindgen_object_clone_ref:function(t){let e=o(t);return s(e)},__wbindgen_object_drop_ref:function(t){u(t)}}}}function Z(n,t,e){try{let c=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1247(c,n,t,s(e));var r=p().getInt32(c+0,!0),i=p().getInt32(c+4,!0);if(i)throw u(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1545(n,t,s(e),s(r))}function s(n){F===y.length&&y.push(y.length+1);let t=F;return F=y[t],y[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function P(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let i=n.description;return i==null?"Symbol":`Symbol(${i})`}if(t=="function"){let i=n.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){let i=n.length,c="[";i>0&&(c+=P(n[0]));for(let a=1;a<i;a++)c+=", "+P(n[a]);return c+="]",c}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
-
${n.stack}`:r}function ot(n){n<1028||(
|
|
1
|
+
var E=Object.defineProperty;var z=(n,t,e)=>()=>{if(e)throw e[0];try{return n&&(t=n(n=0)),t}catch(r){throw e=[r],r}};var U=(n,t)=>{for(var e in t)E(n,e,{get:t[e],enumerable:!0})};var V={};U(V,{ConversionOptions:()=>A,RunOptions:()=>R,clearAllHttpCache:()=>q,clearHttpCache:()=>L,default:()=>C,definedValues:()=>B,diagnostics:()=>$,format:()=>N,hover:()=>G,htmlToMarkdown:()=>J,initSync:()=>ft,inlayHints:()=>X,run:()=>Y,toAst:()=>K,toHtml:()=>Q});function q(){let n=_.clearAllHttpCache();return u(n)}function L(){let n=_.clearHttpCache();return u(n)}function B(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f;var i=w(t)?0:b(t,_.__wbindgen_export,_.__wbindgen_export2),c=f;let a=_.definedValues(e,r,i,c);return u(a)}function $(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f,i=_.diagnostics(e,r,w(t)?16777215:t?1:0);return u(i)}function N(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.format(t,e);return u(r)}function G(n,t,e){let r=b(n,_.__wbindgen_export,_.__wbindgen_export2),i=f,c=_.hover(r,i,t,e);return u(c)}function J(n,t){let e=b(n,_.__wbindgen_export,_.__wbindgen_export2),r=f,i=0;w(t)||(rt(t,A),i=t.__destroy_into_raw());let c=_.htmlToMarkdown(e,r,i);return u(c)}function X(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.inlayHints(t,e);return u(r)}function Y(n,t,e){let r=b(n,_.__wbindgen_export,_.__wbindgen_export2),i=f,c=b(t,_.__wbindgen_export,_.__wbindgen_export2),a=f,g=_.run(r,i,c,a,s(e));return u(g)}function K(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.toAst(t,e);return u(r)}function Q(n){let t=b(n,_.__wbindgen_export,_.__wbindgen_export2),e=f,r=_.toHtml(t,e);return u(r)}function W(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){let r=Error(h(t,e));return s(r)},__wbg_Number_9a4e0ecb0fa16705:function(t){return Number(o(t))},__wbg_String_8564e559799eccda:function(t,e){let r=String(o(e)),i=b(r,_.__wbindgen_export,_.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(t){let e=o(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let r=P(o(e)),i=b(r,_.__wbindgen_export,_.__wbindgen_export2),c=f;p().setInt32(t+4,c,!0),p().setInt32(t+0,i,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_object_a27215656b807791:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(t,e){let r=o(e),i=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(i)?0:i,!0),p().setInt32(t+0,!w(i),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let r=o(e),i=typeof r=="string"?r:void 0;var c=w(i)?0:b(i,_.__wbindgen_export,_.__wbindgen_export2),a=f;p().setInt32(t+4,a,!0),p().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw new Error(h(t,e))},__wbg__wbg_cb_unref_fffb441def202758:function(t){o(t)._wbg_cb_unref()},__wbg_arrayBuffer_a158e423a87ee756:function(t){let e=o(t).arrayBuffer();return s(e)},__wbg_call_8a2dd23819f8a60a:function(){return l(function(t,e){let r=o(t).call(o(e));return s(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return l(function(t,e,r){let i=o(t).call(o(e),o(r));return s(i)},arguments)},__wbg_close_175f8e039af34f61:function(t){let e=o(t).close();return s(e)},__wbg_createWritable_948844b52d1fa148:function(t,e){let r=o(t).createWritable(o(e));return s(r)},__wbg_done_89b2b13e91a60321:function(t){return o(t).done},__wbg_entries_015dc610cd81ede0:function(t){let e=Object.entries(o(t));return s(e)},__wbg_error_744744ff0c9861e6:function(t){console.error(o(t))},__wbg_getDirectoryHandle_cf175faf1a75a384:function(t,e,r,i){let c=o(t).getDirectoryHandle(h(e,r),o(i));return s(c)},__wbg_getDirectory_389283588dfb8117:function(t){let e=o(t).getDirectory();return s(e)},__wbg_getFileHandle_72de55ab3ca9ad57:function(t,e,r,i){let c=o(t).getFileHandle(h(e,r),o(i));return s(c)},__wbg_getFile_bdc0144baa662031:function(t){let e=o(t).getFile();return s(e)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getRandomValues_ceb34d8ffce7e87f:function(){return l(function(t,e){globalThis.crypto.getRandomValues(k(t,e))},arguments)},__wbg_getTimezoneOffset_dc9862c79e5a81a3:function(t){return o(t).getTimezoneOffset()},__wbg_get_507a50627bffa49b:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_78f252d074a84d0b:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return l(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(t,e){let r=o(t)[e>>>0];return s(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=o(t)[o(e)];return s(r)},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(t){let e;try{e=o(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Response_c8b64b2256f01bec:function(t){let e;try{e=o(t)instanceof Response}catch{e=!1}return e},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(t){let e;try{e=o(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_05ba1ee4f6781663:function(t){let e;try{e=o(t)instanceof Window}catch{e=!1}return e},__wbg_isArray_0677c962b281d01a:function(t){return Array.isArray(o(t))},__wbg_isSafeInteger_04f36e4056f1b851:function(t){return Number.isSafeInteger(o(t))},__wbg_iterator_6f722e4a93058b71:function(){return s(Symbol.iterator)},__wbg_length_1f0964f4a5e2c6d8:function(t){return o(t).length},__wbg_length_370319915dc99107:function(t){return o(t).length},__wbg_log_d267660666346fb3:function(t){console.log(o(t))},__wbg_navigator_99621db14b3f1099:function(t){let e=o(t).navigator;return s(e)},__wbg_new_32b398fb48b6d94a:function(){let t=new Array;return s(t)},__wbg_new_cc984128914cfc6f:function(t){let e=new Date(o(t));return s(e)},__wbg_new_cd45aabdf6073e84:function(t){let e=new Uint8Array(o(t));return s(e)},__wbg_new_da52cf8fe3429cb2:function(){let t=new Object;return s(t)},__wbg_new_from_slice_77cdfb7977362f3c:function(t,e){let r=new Uint8Array(k(t,e));return s(r)},__wbg_new_typed_1824d93f294193e5:function(t,e){try{var r={a:t,b:e},i=(a,g)=>{let y=r.a;r.a=0;try{return tt(y,r.b,a,g)}finally{r.a=y}};let c=new Promise(i);return s(c)}finally{r.a=0}},__wbg_new_with_u8_array_sequence_f0abc57daa021d87:function(){return l(function(t,e,r){let i=new File(o(t),h(e,r));return s(i)},arguments)},__wbg_next_6dbf2c0ac8cde20f:function(t){let e=o(t).next;return s(e)},__wbg_next_71f2aa1cb3d1e37e:function(){return l(function(t){let e=o(t).next();return s(e)},arguments)},__wbg_now_e7c6795a7f81e10f:function(t){return o(t).now()},__wbg_now_f663ab0a5177b799:function(){return l(function(){return Date.now()},arguments)},__wbg_ok_acc5e3fb89668864:function(t){return o(t).ok},__wbg_performance_3fcf6e32a7e1ed0a:function(t){let e=o(t).performance;return s(e)},__wbg_prototypesetcall_4770620bbe4688a0:function(t,e,r){Uint8Array.prototype.set.call(k(t,e),o(r))},__wbg_push_d2ae3af0c1217ae6:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(t){let e=o(t).queueMicrotask;return s(e)},__wbg_queueMicrotask_6a09b7bc46549209:function(t){queueMicrotask(o(t))},__wbg_removeEntry_6716e344f14ec77f:function(t,e,r,i){let c=o(t).removeEntry(h(e,r),o(i));return s(c)},__wbg_resolve_2191a4dfe481c25b:function(t){let e=Promise.resolve(o(t));return s(e)},__wbg_set_6be42768c690e380:function(t,e,r){o(t)[u(e)]=u(r)},__wbg_set_8a16b38e4805b298:function(t,e,r){o(t)[e>>>0]=u(r)},__wbg_set_create_a807a6e9ac628698:function(t,e){o(t).create=e!==0},__wbg_set_create_fa1dfa475fac91e9:function(t,e){o(t).create=e!==0},__wbg_set_keep_existing_data_afe338638152ceb3:function(t,e){o(t).keepExistingData=e!==0},__wbg_set_recursive_a4f915c7492b89e8:function(t,e){o(t).recursive=e!==0},__wbg_size_6304a694765921a9:function(t){return o(t).size},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let t=typeof global>"u"?null:global;return w(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:s(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let t=typeof self>"u"?null:self;return w(t)?0:s(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let t=typeof window>"u"?null:window;return w(t)?0:s(t)},__wbg_status_c45b3b9b3033184a:function(t){return o(t).status},__wbg_storage_756400487605531a:function(t){let e=o(t).storage;return s(e)},__wbg_text_d3a29f7525a132c3:function(){return l(function(t){let e=o(t).text();return s(e)},arguments)},__wbg_then_16d107c451e9905d:function(t,e,r){let i=o(t).then(o(e),o(r));return s(i)},__wbg_then_6ec10ae38b3e92f7:function(t,e){let r=o(t).then(o(e));return s(r)},__wbg_value_a5d5488a9589444a:function(t){let e=o(t).value;return s(e)},__wbg_warn_b1370d804fa3e259:function(t){console.warn(o(t))},__wbg_write_65f9b97b832da300:function(){return l(function(t,e){let r=o(t).write(o(e));return s(r)},arguments)},__wbindgen_cast_0000000000000001:function(t,e){let r=it(t,e,Z);return s(r)},__wbindgen_cast_0000000000000002:function(t){return s(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=h(t,e);return s(r)},__wbindgen_object_clone_ref:function(t){let e=o(t);return s(e)},__wbindgen_object_drop_ref:function(t){u(t)}}}}function Z(n,t,e){try{let c=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1544(c,n,t,s(e));var r=p().getInt32(c+0,!0),i=p().getInt32(c+4,!0);if(i)throw u(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1853(n,t,s(e),s(r))}function s(n){F===m.length&&m.push(m.length+1);let t=F;return F=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function P(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let i=n.description;return i==null?"Symbol":`Symbol(${i})`}if(t=="function"){let i=n.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){let i=n.length,c="[";i>0&&(c+=P(n[0]));for(let a=1;a<i;a++)c+=", "+P(n[a]);return c+="]",c}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function ot(n){n<1028||(m[n]=F,F=n)}function k(n,t){return n=n>>>0,v().subarray(n/1,n/1+t)}function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function h(n,t){return st(n>>>0,t)}function v(){return(H===null||H.byteLength===0)&&(H=new Uint8Array(_.memory.buffer)),H}function o(n){return m[n]}function l(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(s(e))}}function w(n){return n==null}function it(n,t,e){let r={a:n,b:t,cnt:1},i=(...c)=>{r.cnt++;let a=r.a;r.a=0;try{return e(a,r.b,...c)}finally{r.a=a,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,I.unregister(r))},I.register(i,r,r),i}function b(n,t,e){if(e===void 0){let g=O.encode(n),y=t(g.length,1)>>>0;return v().subarray(y,y+g.length).set(g),f=g.length,y}let r=n.length,i=t(r,1)>>>0,c=v(),a=0;for(;a<r;a++){let g=n.charCodeAt(a);if(g>127)break;c[i+a]=g}if(a!==r){a!==0&&(n=n.slice(a)),i=e(i,r,r=a+n.length*3,1)>>>0;let g=v().subarray(i+a,i+r),y=O.encodeInto(n,g);a+=y.written,i=e(i,r,a,1)>>>0}return f=a,i}function u(n){let t=o(n);return ot(n),t}function st(n,t){return T+=t,T>=_t&&(S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),S.decode(),T=t),S.decode(v().subarray(n,n+t))}function j(n,t){return at=n,_=n.exports,ct=t,x=null,H=null,_}async function ut(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(i){if(n.ok&&e(n.type)&&n.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",i);else throw i}let r=await n.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let r=await WebAssembly.instantiate(n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}function e(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}function ft(n){if(_!==void 0)return _;n!==void 0&&(Object.getPrototypeOf(n)===Object.prototype?{module:n}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=W();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));let e=new WebAssembly.Instance(n,t);return j(e,n)}async function C(n){if(_!==void 0)return _;n!==void 0&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),n===void 0&&(n=new URL("mq_wasm_bg.wasm",import.meta.url));let t=W();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:e,module:r}=await ut(await n,t);return j(e,r)}var A,R,et,nt,I,x,H,m,F,S,_t,T,O,f,ct,at,_,D=z(()=>{"use strict";A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);R=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n,1)),nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n,1));I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));x=null;H=null;m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);F=m.length;S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});S.decode();_t=2146435072,T=0;O=new TextEncoder;"encodeInto"in O||(O.encodeInto=function(n,t){let e=O.encode(n);return t.set(e),{read:n.length,written:e.length}});f=0});D();var M=null;async function d(){return M||(await(async()=>{try{await C();let n=await Promise.resolve().then(()=>(D(),V));M={run:n.run,toAst:n.toAst,format:n.format,diagnostics:n.diagnostics,inlayHints:n.inlayHints,hover:n.hover,definedValues:n.definedValues,htmlToMarkdown:n.htmlToMarkdown,toHtml:n.toHtml,clearHttpCache:n.clearHttpCache,clearAllHttpCache:n.clearAllHttpCache}}catch(n){throw new Error(`Failed to initialize mq WebAssembly module: ${n}`)}})(),M)}async function bt(n,t,e={}){return await(await d()).run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function gt(n){return await(await d()).toAst(n)}async function lt(n){return await(await d()).format(n)}async function wt(n,t){return await(await d()).diagnostics(n,t)}async function dt(n){return await(await d()).inlayHints(n)}async function pt(n,t){return await(await d()).definedValues(n,t)}async function mt(n,t,e){return await(await d()).hover(n,t,e)}async function yt(n,t){return await(await d()).htmlToMarkdown(n,t)}async function ht(n){return await(await d()).toHtml(n)}async function xt(){return await(await d()).clearHttpCache()}async function At(){return await(await d()).clearAllHttpCache()}export{At as clearAllHttpCache,xt as clearHttpCache,pt as definedValues,wt as diagnostics,lt as format,mt as hover,yt as htmlToMarkdown,dt as inlayHints,bt as run,gt as toAst,ht as toHtml};
|
package/dist/mq_wasm.js
CHANGED
|
@@ -209,6 +209,10 @@ function __wbg_get_imports() {
|
|
|
209
209
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
210
210
|
return addHeapObject(ret);
|
|
211
211
|
},
|
|
212
|
+
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
213
|
+
const ret = Number(getObject(arg0));
|
|
214
|
+
return ret;
|
|
215
|
+
},
|
|
212
216
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
213
217
|
const ret = String(getObject(arg1));
|
|
214
218
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -320,10 +324,10 @@ function __wbg_get_imports() {
|
|
|
320
324
|
const ret = getObject(arg0).getFile();
|
|
321
325
|
return addHeapObject(ret);
|
|
322
326
|
},
|
|
323
|
-
|
|
327
|
+
__wbg_getRandomValues_cc7f052a444bb2ce: function() { return handleError(function (arg0, arg1) {
|
|
324
328
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
325
329
|
}, arguments); },
|
|
326
|
-
|
|
330
|
+
__wbg_getRandomValues_ceb34d8ffce7e87f: function() { return handleError(function (arg0, arg1) {
|
|
327
331
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
328
332
|
}, arguments); },
|
|
329
333
|
__wbg_getTimezoneOffset_dc9862c79e5a81a3: function(arg0) {
|
|
@@ -394,6 +398,10 @@ function __wbg_get_imports() {
|
|
|
394
398
|
const ret = Array.isArray(getObject(arg0));
|
|
395
399
|
return ret;
|
|
396
400
|
},
|
|
401
|
+
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
402
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
403
|
+
return ret;
|
|
404
|
+
},
|
|
397
405
|
__wbg_iterator_6f722e4a93058b71: function() {
|
|
398
406
|
const ret = Symbol.iterator;
|
|
399
407
|
return addHeapObject(ret);
|
|
@@ -440,7 +448,7 @@ function __wbg_get_imports() {
|
|
|
440
448
|
const a = state0.a;
|
|
441
449
|
state0.a = 0;
|
|
442
450
|
try {
|
|
443
|
-
return
|
|
451
|
+
return __wasm_bindgen_func_elem_1853(a, state0.b, arg0, arg1);
|
|
444
452
|
} finally {
|
|
445
453
|
state0.a = a;
|
|
446
454
|
}
|
|
@@ -463,7 +471,11 @@ function __wbg_get_imports() {
|
|
|
463
471
|
const ret = getObject(arg0).next();
|
|
464
472
|
return addHeapObject(ret);
|
|
465
473
|
}, arguments); },
|
|
466
|
-
|
|
474
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
475
|
+
const ret = getObject(arg0).now();
|
|
476
|
+
return ret;
|
|
477
|
+
},
|
|
478
|
+
__wbg_now_f663ab0a5177b799: function() { return handleError(function () {
|
|
467
479
|
const ret = Date.now();
|
|
468
480
|
return ret;
|
|
469
481
|
}, arguments); },
|
|
@@ -471,6 +483,10 @@ function __wbg_get_imports() {
|
|
|
471
483
|
const ret = getObject(arg0).ok;
|
|
472
484
|
return ret;
|
|
473
485
|
},
|
|
486
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
487
|
+
const ret = getObject(arg0).performance;
|
|
488
|
+
return addHeapObject(ret);
|
|
489
|
+
},
|
|
474
490
|
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
475
491
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
476
492
|
},
|
|
@@ -563,8 +579,8 @@ function __wbg_get_imports() {
|
|
|
563
579
|
return addHeapObject(ret);
|
|
564
580
|
}, arguments); },
|
|
565
581
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
566
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
567
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
582
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 61, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
583
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1544);
|
|
568
584
|
return addHeapObject(ret);
|
|
569
585
|
},
|
|
570
586
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -591,10 +607,10 @@ function __wbg_get_imports() {
|
|
|
591
607
|
};
|
|
592
608
|
}
|
|
593
609
|
|
|
594
|
-
function
|
|
610
|
+
function __wasm_bindgen_func_elem_1544(arg0, arg1, arg2) {
|
|
595
611
|
try {
|
|
596
612
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
597
|
-
wasm.
|
|
613
|
+
wasm.__wasm_bindgen_func_elem_1544(retptr, arg0, arg1, addHeapObject(arg2));
|
|
598
614
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
599
615
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
600
616
|
if (r1) {
|
|
@@ -605,8 +621,8 @@ function __wasm_bindgen_func_elem_1247(arg0, arg1, arg2) {
|
|
|
605
621
|
}
|
|
606
622
|
}
|
|
607
623
|
|
|
608
|
-
function
|
|
609
|
-
wasm.
|
|
624
|
+
function __wasm_bindgen_func_elem_1853(arg0, arg1, arg2, arg3) {
|
|
625
|
+
wasm.__wasm_bindgen_func_elem_1853(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
610
626
|
}
|
|
611
627
|
|
|
612
628
|
const ConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/dist/mq_wasm_bg.wasm
CHANGED
|
Binary file
|