mq-web 0.8.1 → 0.8.3
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 +6 -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 +35 -6
- 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
|
+
/** Enables HTTP/GitHub module imports. Off by default, mirroring the CLI's `--allow-http-import`. */
|
|
40
|
+
allowHttpImport?: boolean,
|
|
39
41
|
/** Maximum time in milliseconds a query may run before evaluation is aborted. Disabled (no timeout) if omitted. */
|
|
40
42
|
timeoutMs?: number,
|
|
41
43
|
}
|
|
@@ -46,6 +48,10 @@ declare class ConversionOptions {
|
|
|
46
48
|
private constructor();
|
|
47
49
|
free(): void;
|
|
48
50
|
[Symbol.dispose](): void;
|
|
51
|
+
/**
|
|
52
|
+
* Base URL for resolving relative `href`/`src` values; empty falls back to `<base href>`.
|
|
53
|
+
*/
|
|
54
|
+
base_url: string;
|
|
49
55
|
extract_scripts_as_code_blocks: boolean;
|
|
50
56
|
generate_front_matter: boolean;
|
|
51
57
|
use_title_as_h1: boolean;
|
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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_1540(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_1849(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]=
|
|
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:()=>O,clearAllHttpCache:()=>L,clearHttpCache:()=>q,default:()=>T,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 f(n)}function q(){let n=i.clearHttpCache();return f(n)}function B(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=u;var _=d(t)?0:b(t,i.__wbindgen_export,i.__wbindgen_export2),c=u;let a=i.definedValues(e,r,_,c);return f(a)}function $(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=u,_=i.diagnostics(e,r,d(t)?16777215:t?1:0);return f(_)}function N(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.format(t,e);return f(r)}function G(n,t,e){let r=b(n,i.__wbindgen_export,i.__wbindgen_export2),_=u,c=i.hover(r,_,t,e);return f(c)}function J(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=u,_=0;d(t)||(rt(t,A),_=t.__destroy_into_raw());let c=i.htmlToMarkdown(e,r,_);return f(c)}function X(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.inlayHints(t,e);return f(r)}function Y(n,t,e){let r=b(n,i.__wbindgen_export,i.__wbindgen_export2),_=u,c=b(t,i.__wbindgen_export,i.__wbindgen_export2),a=u,g=i.run(r,_,c,a,s(e));return f(g)}function K(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.toAst(t,e);return f(r)}function Q(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.toHtml(t,e);return f(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=u;l().setInt32(t+4,c,!0),l().setInt32(t+0,_,!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(t){let e=o(t),r=typeof e=="boolean"?e:void 0;return d(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let r=P(o(e)),_=b(r,i.__wbindgen_export,i.__wbindgen_export2),c=u;l().setInt32(t+4,c,!0),l().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;l().setFloat64(t+8,d(_)?0:_,!0),l().setInt32(t+0,!d(_),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let r=o(e),_=typeof r=="string"?r:void 0;var c=d(_)?0:b(_,i.__wbindgen_export,i.__wbindgen_export2),a=u;l().setInt32(t+4,a,!0),l().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 w(function(t,e){let r=o(t).call(o(e));return s(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return w(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 w(function(t,e){globalThis.crypto.getRandomValues(R(t,e))},arguments)},__wbg_getRandomValues_ceb34d8ffce7e87f:function(){return w(function(t,e){globalThis.crypto.getRandomValues(R(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 w(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return w(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(R(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 w(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 w(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 w(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(R(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)[f(e)]=f(r)},__wbg_set_8a16b38e4805b298:function(t,e,r){o(t)[e>>>0]=f(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 d(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let t=typeof globalThis>"u"?null:globalThis;return d(t)?0:s(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let t=typeof self>"u"?null:self;return d(t)?0:s(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let t=typeof window>"u"?null:window;return d(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 w(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 w(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){f(t)}}}}function Z(n,t,e){try{let c=i.__wbindgen_add_to_stack_pointer(-16);i.__wasm_bindgen_func_elem_1516(c,n,t,s(e));var r=l().getInt32(c+0,!0),_=l().getInt32(c+4,!0);if(_)throw f(r)}finally{i.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){i.__wasm_bindgen_func_elem_1825(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 _=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+=P(n[0]));for(let a=1;a<_;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||(y[n]=F,F=n)}function R(n,t){return n=n>>>0,v().subarray(n/1,n/1+t)}function l(){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 v(){return(H===null||H.byteLength===0)&&(H=new Uint8Array(i.memory.buffer)),H}function o(n){return y[n]}function w(n,t){try{return n.apply(this,t)}catch(e){i.__wbindgen_export3(s(e))}}function d(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=k.encode(n),m=t(g.length,1)>>>0;return v().subarray(m,m+g.length).set(g),u=g.length,m}let r=n.length,_=t(r,1)>>>0,c=v(),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=v().subarray(_+a,_+r),m=k.encodeInto(n,g);a+=m.written,_=e(_,r,a,1)>>>0}return u=a,_}function f(n){let t=o(n);return ot(n),t}function st(n,t){return I+=t,I>=it&&(S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),S.decode(),I=t),S.decode(v().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 T(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,O,et,nt,C,x,H,y,F,S,it,I,k,u,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 base_url(){let t,e;try{let c=i.__wbindgen_add_to_stack_pointer(-16);i.__wbg_get_conversionoptions_base_url(c,this.__wbg_ptr);var r=l().getInt32(c+0,!0),_=l().getInt32(c+4,!0);return t=r,e=_,h(r,_)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_export5(t,e,1)}}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 base_url(t){let e=b(t,i.__wbindgen_export,i.__wbindgen_export2),r=u;i.__wbg_set_conversionoptions_base_url(this.__wbg_ptr,e,r)}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);O=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&&(O.prototype[Symbol.dispose]=O.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);F=y.length;S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});S.decode();it=2146435072,I=0;k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});u=0});W();var M=null;async function p(){return M||(await(async()=>{try{await T();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 p()).run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function xt(n){return await(await p()).toAst(n)}async function At(n){return await(await p()).format(n)}async function Ht(n,t){return await(await p()).diagnostics(n,t)}async function vt(n){return await(await p()).inlayHints(n)}async function Ft(n,t){return await(await p()).definedValues(n,t)}async function kt(n,t,e){return await(await p()).hover(n,t,e)}async function Ot(n,t){return await(await p()).htmlToMarkdown(n,t)}async function Rt(n){return await(await p()).toHtml(n)}async function St(){return await(await p()).clearHttpCache()}async function Mt(){return await(await p()).clearAllHttpCache()}export{Mt as clearAllHttpCache,St as clearHttpCache,Ft as definedValues,Ht as diagnostics,At as format,kt as hover,Ot as htmlToMarkdown,vt as inlayHints,ht as run,xt as toAst,Rt 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
|
+
/** Enables HTTP/GitHub module imports. Off by default, mirroring the CLI's `--allow-http-import`. */
|
|
42
|
+
allowHttpImport?: boolean,
|
|
41
43
|
/** Maximum time in milliseconds a query may run before evaluation is aborted. Disabled (no timeout) if omitted. */
|
|
42
44
|
timeoutMs?: number,
|
|
43
45
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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_1540(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_1849(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]=
|
|
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:()=>O,clearAllHttpCache:()=>q,clearHttpCache:()=>L,default:()=>P,definedValues:()=>B,diagnostics:()=>$,format:()=>N,hover:()=>G,htmlToMarkdown:()=>J,initSync:()=>ft,inlayHints:()=>X,run:()=>Y,toAst:()=>K,toHtml:()=>Q});function q(){let n=i.clearAllHttpCache();return f(n)}function L(){let n=i.clearHttpCache();return f(n)}function B(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=u;var _=d(t)?0:b(t,i.__wbindgen_export,i.__wbindgen_export2),c=u;let a=i.definedValues(e,r,_,c);return f(a)}function $(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=u,_=i.diagnostics(e,r,d(t)?16777215:t?1:0);return f(_)}function N(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.format(t,e);return f(r)}function G(n,t,e){let r=b(n,i.__wbindgen_export,i.__wbindgen_export2),_=u,c=i.hover(r,_,t,e);return f(c)}function J(n,t){let e=b(n,i.__wbindgen_export,i.__wbindgen_export2),r=u,_=0;d(t)||(rt(t,A),_=t.__destroy_into_raw());let c=i.htmlToMarkdown(e,r,_);return f(c)}function X(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.inlayHints(t,e);return f(r)}function Y(n,t,e){let r=b(n,i.__wbindgen_export,i.__wbindgen_export2),_=u,c=b(t,i.__wbindgen_export,i.__wbindgen_export2),a=u,g=i.run(r,_,c,a,s(e));return f(g)}function K(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.toAst(t,e);return f(r)}function Q(n){let t=b(n,i.__wbindgen_export,i.__wbindgen_export2),e=u,r=i.toHtml(t,e);return f(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)),_=b(r,i.__wbindgen_export,i.__wbindgen_export2),c=u;l().setInt32(t+4,c,!0),l().setInt32(t+0,_,!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(t){let e=o(t),r=typeof e=="boolean"?e:void 0;return d(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let r=I(o(e)),_=b(r,i.__wbindgen_export,i.__wbindgen_export2),c=u;l().setInt32(t+4,c,!0),l().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;l().setFloat64(t+8,d(_)?0:_,!0),l().setInt32(t+0,!d(_),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let r=o(e),_=typeof r=="string"?r:void 0;var c=d(_)?0:b(_,i.__wbindgen_export,i.__wbindgen_export2),a=u;l().setInt32(t+4,a,!0),l().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 w(function(t,e){let r=o(t).call(o(e));return s(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return w(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 w(function(t,e){globalThis.crypto.getRandomValues(R(t,e))},arguments)},__wbg_getRandomValues_ceb34d8ffce7e87f:function(){return w(function(t,e){globalThis.crypto.getRandomValues(R(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 w(function(t,e){let r=Reflect.get(o(t),o(e));return s(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return w(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(R(t,e));return s(r)},__wbg_new_typed_1824d93f294193e5:function(t,e){try{var r={a:t,b:e},_=(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(_);return s(c)}finally{r.a=0}},__wbg_new_with_u8_array_sequence_f0abc57daa021d87:function(){return w(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 w(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 w(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(R(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)[f(e)]=f(r)},__wbg_set_8a16b38e4805b298:function(t,e,r){o(t)[e>>>0]=f(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 d(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let t=typeof globalThis>"u"?null:globalThis;return d(t)?0:s(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let t=typeof self>"u"?null:self;return d(t)?0:s(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let t=typeof window>"u"?null:window;return d(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 w(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 w(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){f(t)}}}}function Z(n,t,e){try{let c=i.__wbindgen_add_to_stack_pointer(-16);i.__wasm_bindgen_func_elem_1516(c,n,t,s(e));var r=l().getInt32(c+0,!0),_=l().getInt32(c+4,!0);if(_)throw f(r)}finally{i.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){i.__wasm_bindgen_func_elem_1825(n,t,s(e),s(r))}function s(n){k===m.length&&m.push(m.length+1);let t=k;return k=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function I(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+=I(n[0]));for(let a=1;a<_;a++)c+=", "+I(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]=k,k=n)}function R(n,t){return n=n>>>0,v().subarray(n/1,n/1+t)}function l(){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 v(){return(H===null||H.byteLength===0)&&(H=new Uint8Array(i.memory.buffer)),H}function o(n){return m[n]}function w(n,t){try{return n.apply(this,t)}catch(e){i.__wbindgen_export3(s(e))}}function d(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,D.unregister(r))},D.register(_,r,r),_}function b(n,t,e){if(e===void 0){let g=F.encode(n),y=t(g.length,1)>>>0;return v().subarray(y,y+g.length).set(g),u=g.length,y}let r=n.length,_=t(r,1)>>>0,c=v(),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=v().subarray(_+a,_+r),y=F.encodeInto(n,g);a+=y.written,_=e(_,r,a,1)>>>0}return u=a,_}function f(n){let t=o(n);return ot(n),t}function st(n,t){return T+=t,T>=it&&(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,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=W();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));let e=new WebAssembly.Instance(n,t);return j(e,n)}async function P(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=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,O,et,nt,D,x,H,m,k,S,it,T,F,u,ct,at,i,C=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 base_url(){let t,e;try{let c=i.__wbindgen_add_to_stack_pointer(-16);i.__wbg_get_conversionoptions_base_url(c,this.__wbg_ptr);var r=l().getInt32(c+0,!0),_=l().getInt32(c+4,!0);return t=r,e=_,h(r,_)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_export5(t,e,1)}}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 base_url(t){let e=b(t,i.__wbindgen_export,i.__wbindgen_export2),r=u;i.__wbg_set_conversionoptions_base_url(this.__wbg_ptr,e,r)}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);O=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&&(O.prototype[Symbol.dispose]=O.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));D=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbindgen_export4(n.a,n.b));x=null;H=null;m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);k=m.length;S=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});S.decode();it=2146435072,T=0;F=new TextEncoder;"encodeInto"in F||(F.encodeInto=function(n,t){let e=F.encode(n);return t.set(e),{read:n.length,written:e.length}});u=0});C();var M=null;async function p(){return M||(await(async()=>{try{await P();let n=await Promise.resolve().then(()=>(C(),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 p()).run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function gt(n){return await(await p()).toAst(n)}async function lt(n){return await(await p()).format(n)}async function wt(n,t){return await(await p()).diagnostics(n,t)}async function dt(n){return await(await p()).inlayHints(n)}async function pt(n,t){return await(await p()).definedValues(n,t)}async function mt(n,t,e){return await(await p()).hover(n,t,e)}async function yt(n,t){return await(await p()).htmlToMarkdown(n,t)}async function ht(n){return await(await p()).toHtml(n)}async function xt(){return await(await p()).clearHttpCache()}async function At(){return await(await p()).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
|
@@ -11,6 +11,26 @@ export class ConversionOptions {
|
|
|
11
11
|
const ptr = this.__destroy_into_raw();
|
|
12
12
|
wasm.__wbg_conversionoptions_free(ptr, 0);
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Base URL for resolving relative `href`/`src` values; empty falls back to `<base href>`.
|
|
16
|
+
* @returns {string}
|
|
17
|
+
*/
|
|
18
|
+
get base_url() {
|
|
19
|
+
let deferred1_0;
|
|
20
|
+
let deferred1_1;
|
|
21
|
+
try {
|
|
22
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
23
|
+
wasm.__wbg_get_conversionoptions_base_url(retptr, this.__wbg_ptr);
|
|
24
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
26
|
+
deferred1_0 = r0;
|
|
27
|
+
deferred1_1 = r1;
|
|
28
|
+
return getStringFromWasm0(r0, r1);
|
|
29
|
+
} finally {
|
|
30
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
31
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
14
34
|
/**
|
|
15
35
|
* @returns {boolean}
|
|
16
36
|
*/
|
|
@@ -32,6 +52,15 @@ export class ConversionOptions {
|
|
|
32
52
|
const ret = wasm.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr);
|
|
33
53
|
return ret !== 0;
|
|
34
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Base URL for resolving relative `href`/`src` values; empty falls back to `<base href>`.
|
|
57
|
+
* @param {string} arg0
|
|
58
|
+
*/
|
|
59
|
+
set base_url(arg0) {
|
|
60
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
61
|
+
const len0 = WASM_VECTOR_LEN;
|
|
62
|
+
wasm.__wbg_set_conversionoptions_base_url(this.__wbg_ptr, ptr0, len0);
|
|
63
|
+
}
|
|
35
64
|
/**
|
|
36
65
|
* @param {boolean} arg0
|
|
37
66
|
*/
|
|
@@ -448,7 +477,7 @@ function __wbg_get_imports() {
|
|
|
448
477
|
const a = state0.a;
|
|
449
478
|
state0.a = 0;
|
|
450
479
|
try {
|
|
451
|
-
return
|
|
480
|
+
return __wasm_bindgen_func_elem_1825(a, state0.b, arg0, arg1);
|
|
452
481
|
} finally {
|
|
453
482
|
state0.a = a;
|
|
454
483
|
}
|
|
@@ -580,7 +609,7 @@ function __wbg_get_imports() {
|
|
|
580
609
|
}, arguments); },
|
|
581
610
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
582
611
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 60, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
583
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
612
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1516);
|
|
584
613
|
return addHeapObject(ret);
|
|
585
614
|
},
|
|
586
615
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -607,10 +636,10 @@ function __wbg_get_imports() {
|
|
|
607
636
|
};
|
|
608
637
|
}
|
|
609
638
|
|
|
610
|
-
function
|
|
639
|
+
function __wasm_bindgen_func_elem_1516(arg0, arg1, arg2) {
|
|
611
640
|
try {
|
|
612
641
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
613
|
-
wasm.
|
|
642
|
+
wasm.__wasm_bindgen_func_elem_1516(retptr, arg0, arg1, addHeapObject(arg2));
|
|
614
643
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
615
644
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
616
645
|
if (r1) {
|
|
@@ -621,8 +650,8 @@ function __wasm_bindgen_func_elem_1540(arg0, arg1, arg2) {
|
|
|
621
650
|
}
|
|
622
651
|
}
|
|
623
652
|
|
|
624
|
-
function
|
|
625
|
-
wasm.
|
|
653
|
+
function __wasm_bindgen_func_elem_1825(arg0, arg1, arg2, arg3) {
|
|
654
|
+
wasm.__wasm_bindgen_func_elem_1825(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
626
655
|
}
|
|
627
656
|
|
|
628
657
|
const ConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/dist/mq_wasm_bg.wasm
CHANGED
|
Binary file
|