mq-web 0.5.28 → 0.5.29

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.js CHANGED
@@ -1,2 +1,2 @@
1
- var V=Object.defineProperty;var z=(n,t)=>()=>(n&&(t=n(n=0)),t);var L=(n,t)=>{for(var e in t)V(n,e,{get:t[e],enumerable:!0})};var U={};L(U,{ConversionOptions:()=>h,RunOptions:()=>O,default:()=>I,definedValues:()=>B,diagnostics:()=>C,format:()=>q,hover:()=>$,htmlToMarkdown:()=>N,initSync:()=>at,inlayHints:()=>G,run:()=>J,toAst:()=>X,toHtml:()=>Y});function B(n,t){let e=b(n,o.__wbindgen_export,o.__wbindgen_export2),r=u;var i=l(t)?0:b(t,o.__wbindgen_export,o.__wbindgen_export2),c=u;let a=o.definedValues(e,r,i,c);return f(a)}function C(n,t){let e=b(n,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=o.diagnostics(e,r,l(t)?16777215:t?1:0);return f(i)}function q(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.format(t,e);return f(r)}function $(n,t,e){let r=b(n,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=o.hover(r,i,t,e);return f(c)}function N(n,t){let e=b(n,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=0;l(t)||(et(t,h),i=t.__destroy_into_raw());let c=o.htmlToMarkdown(e,r,i);return f(c)}function G(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.inlayHints(t,e);return f(r)}function J(n,t,e){let r=b(n,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=b(t,o.__wbindgen_export,o.__wbindgen_export2),a=u,g=o.run(r,i,c,a,s(e));return f(g)}function X(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.toAst(t,e);return f(r)}function Y(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.toHtml(t,e);return f(r)}function D(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(v(t,e));return s(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(_(e)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=_(t),r=typeof e=="boolean"?e:void 0;return l(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=R(_(e)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return _(t)in _(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof _(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=_(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof _(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return _(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return _(t)==_(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=_(e),i=typeof r=="number"?r:void 0;d().setFloat64(t+8,l(i)?0:i,!0),d().setInt32(t+0,!l(i),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=_(e),i=typeof r=="string"?r:void 0;var c=l(i)?0:b(i,o.__wbindgen_export,o.__wbindgen_export2),a=u;d().setInt32(t+4,a,!0),d().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(v(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){_(t)._wbg_cb_unref()},__wbg_arrayBuffer_473644614d8643a5:function(t){let e=_(t).arrayBuffer();return s(e)},__wbg_call_a24592a6f349a97e:function(){return T(function(t,e,r){let i=_(t).call(_(e),_(r));return s(i)},arguments)},__wbg_done_9158f7cc8751ba32:function(t){return _(t).done},__wbg_entries_71f4fb4dbf3ab334:function(t){let e=_(t).entries();return s(e)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(_(t));return s(e)},__wbg_from_0dbf29f09e7fb200:function(t){let e=Array.from(_(t));return s(e)},__wbg_getDirectory_3b3e1fae9108e816:function(t){let e=_(t).getDirectory();return s(e)},__wbg_getFile_0f5a0aed86383786:function(t){let e=_(t).getFile();return s(e)},__wbg_get_8360291721e2339f:function(t,e){let r=_(t)[e>>>0];return s(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=_(t)[_(e)];return s(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=_(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_FileSystemDirectoryHandle_b94ae0051739fba7:function(t){let e;try{e=_(t)instanceof FileSystemDirectoryHandle}catch{e=!1}return e},__wbg_instanceof_FileSystemFileHandle_37049c6f02bdc571:function(t){let e;try{e=_(t)instanceof FileSystemFileHandle}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=_(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_cc64c86c8ef9e02b:function(t){let e;try{e=_(t)instanceof Window}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return _(t).length},__wbg_length_9f1775224cf1d815:function(t){return _(t).length},__wbg_navigator_bc077756492232c5:function(t){let e=_(t).navigator;return s(e)},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(_(t));return s(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return s(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return s(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},i=(a,g)=>{let y=r.a;r.a=0;try{return Z(y,r.b,a,g)}finally{r.a=y}};let c=new Promise(i);return s(c)}finally{r.a=0}},__wbg_next_36ce9804d16f8eb4:function(){return T(function(t){let e=_(t).next();return s(e)},arguments)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(ot(t,e),_(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(_(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=_(t).queueMicrotask;return s(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(_(t));return s(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){_(t)[e>>>0]=f(r)},__wbg_set_6be42768c690e380:function(t,e,r){_(t)[f(e)]=f(r)},__wbg_size_2207e0a7b1f0c588:function(t){return _(t).size},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return l(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return l(t)?0:s(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return l(t)?0:s(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return l(t)?0:s(t)},__wbg_storage_11147bcf4dee71ae:function(t){let e=_(t).storage;return s(e)},__wbg_then_792e0c862b060889:function(t,e,r){let i=_(t).then(_(e),_(r));return s(i)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=_(t).then(_(e));return s(r)},__wbg_value_ee3a06f4579184fa:function(t){let e=_(t).value;return s(e)},__wbindgen_cast_0000000000000001:function(t,e){let r=W(t,e,K);return s(r)},__wbindgen_cast_0000000000000002:function(t,e){let r=W(t,e,Q);return s(r)},__wbindgen_cast_0000000000000003:function(t){return s(t)},__wbindgen_cast_0000000000000004:function(t,e){let r=v(t,e);return s(r)},__wbindgen_object_clone_ref:function(t){let e=_(t);return s(e)},__wbindgen_object_drop_ref:function(t){f(t)}}}}function K(n,t,e){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_155(c,n,t,s(e));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Q(n,t,e){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_155_1(c,n,t,s(e));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Z(n,t,e,r){o.__wasm_bindgen_func_elem_1047(n,t,s(e),s(r))}function s(n){F===w.length&&w.push(w.length+1);let t=F;return F=w[t],w[t]=n,t}function et(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(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+=R(n[0]));for(let a=1;a<i;a++)c+=", "+R(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}
1
+ var V=Object.defineProperty;var z=(n,t)=>()=>(n&&(t=n(n=0)),t);var L=(n,t)=>{for(var e in t)V(n,e,{get:t[e],enumerable:!0})};var U={};L(U,{ConversionOptions:()=>h,RunOptions:()=>O,default:()=>I,definedValues:()=>B,diagnostics:()=>C,format:()=>q,hover:()=>$,htmlToMarkdown:()=>N,initSync:()=>at,inlayHints:()=>G,run:()=>J,toAst:()=>X,toHtml:()=>Y});function B(n,t){let e=b(n,o.__wbindgen_export,o.__wbindgen_export2),r=u;var i=l(t)?0:b(t,o.__wbindgen_export,o.__wbindgen_export2),c=u;let a=o.definedValues(e,r,i,c);return f(a)}function C(n,t){let e=b(n,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=o.diagnostics(e,r,l(t)?16777215:t?1:0);return f(i)}function q(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.format(t,e);return f(r)}function $(n,t,e){let r=b(n,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=o.hover(r,i,t,e);return f(c)}function N(n,t){let e=b(n,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=0;l(t)||(et(t,h),i=t.__destroy_into_raw());let c=o.htmlToMarkdown(e,r,i);return f(c)}function G(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.inlayHints(t,e);return f(r)}function J(n,t,e){let r=b(n,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=b(t,o.__wbindgen_export,o.__wbindgen_export2),a=u,g=o.run(r,i,c,a,s(e));return f(g)}function X(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.toAst(t,e);return f(r)}function Y(n){let t=b(n,o.__wbindgen_export,o.__wbindgen_export2),e=u,r=o.toHtml(t,e);return f(r)}function D(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,e){let r=Error(v(t,e));return s(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(_(e)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let e=_(t),r=typeof e=="boolean"?e:void 0;return l(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,e){let r=R(_(e)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,e){return _(t)in _(e)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof _(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let e=_(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof _(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return _(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,e){return _(t)==_(e)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,e){let r=_(e),i=typeof r=="number"?r:void 0;d().setFloat64(t+8,l(i)?0:i,!0),d().setInt32(t+0,!l(i),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,e){let r=_(e),i=typeof r=="string"?r:void 0;var c=l(i)?0:b(i,o.__wbindgen_export,o.__wbindgen_export2),a=u;d().setInt32(t+4,a,!0),d().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,e){throw new Error(v(t,e))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){_(t)._wbg_cb_unref()},__wbg_arrayBuffer_473644614d8643a5:function(t){let e=_(t).arrayBuffer();return s(e)},__wbg_call_a24592a6f349a97e:function(){return T(function(t,e,r){let i=_(t).call(_(e),_(r));return s(i)},arguments)},__wbg_done_9158f7cc8751ba32:function(t){return _(t).done},__wbg_entries_71f4fb4dbf3ab334:function(t){let e=_(t).entries();return s(e)},__wbg_entries_e0b73aa8571ddb56:function(t){let e=Object.entries(_(t));return s(e)},__wbg_from_0dbf29f09e7fb200:function(t){let e=Array.from(_(t));return s(e)},__wbg_getDirectory_3b3e1fae9108e816:function(t){let e=_(t).getDirectory();return s(e)},__wbg_getFile_0f5a0aed86383786:function(t){let e=_(t).getFile();return s(e)},__wbg_get_8360291721e2339f:function(t,e){let r=_(t)[e>>>0];return s(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=_(t)[_(e)];return s(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let e;try{e=_(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_FileSystemDirectoryHandle_b94ae0051739fba7:function(t){let e;try{e=_(t)instanceof FileSystemDirectoryHandle}catch{e=!1}return e},__wbg_instanceof_FileSystemFileHandle_37049c6f02bdc571:function(t){let e;try{e=_(t)instanceof FileSystemFileHandle}catch{e=!1}return e},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let e;try{e=_(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_instanceof_Window_cc64c86c8ef9e02b:function(t){let e;try{e=_(t)instanceof Window}catch{e=!1}return e},__wbg_length_3d4ecd04bd8d22f1:function(t){return _(t).length},__wbg_length_9f1775224cf1d815:function(t){return _(t).length},__wbg_navigator_bc077756492232c5:function(t){let e=_(t).navigator;return s(e)},__wbg_new_0c7403db6e782f19:function(t){let e=new Uint8Array(_(t));return s(e)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return s(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return s(t)},__wbg_new_typed_323f37fd55ab048d:function(t,e){try{var r={a:t,b:e},i=(a,g)=>{let y=r.a;r.a=0;try{return Z(y,r.b,a,g)}finally{r.a=y}};let c=new Promise(i);return s(c)}finally{r.a=0}},__wbg_next_36ce9804d16f8eb4:function(){return T(function(t){let e=_(t).next();return s(e)},arguments)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,e,r){Uint8Array.prototype.set.call(ot(t,e),_(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(_(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let e=_(t).queueMicrotask;return s(e)},__wbg_resolve_e6c466bc1052f16c:function(t){let e=Promise.resolve(_(t));return s(e)},__wbg_set_3bf1de9fab0cd644:function(t,e,r){_(t)[e>>>0]=f(r)},__wbg_set_6be42768c690e380:function(t,e,r){_(t)[f(e)]=f(r)},__wbg_size_2207e0a7b1f0c588:function(t){return _(t).size},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return l(t)?0:s(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return l(t)?0:s(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return l(t)?0:s(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return l(t)?0:s(t)},__wbg_storage_11147bcf4dee71ae:function(t){let e=_(t).storage;return s(e)},__wbg_then_792e0c862b060889:function(t,e,r){let i=_(t).then(_(e),_(r));return s(i)},__wbg_then_8e16ee11f05e4827:function(t,e){let r=_(t).then(_(e));return s(r)},__wbg_value_ee3a06f4579184fa:function(t){let e=_(t).value;return s(e)},__wbindgen_cast_0000000000000001:function(t,e){let r=W(t,e,K);return s(r)},__wbindgen_cast_0000000000000002:function(t,e){let r=W(t,e,Q);return s(r)},__wbindgen_cast_0000000000000003:function(t){return s(t)},__wbindgen_cast_0000000000000004:function(t,e){let r=v(t,e);return s(r)},__wbindgen_object_clone_ref:function(t){let e=_(t);return s(e)},__wbindgen_object_drop_ref:function(t){f(t)}}}}function K(n,t,e){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_158(c,n,t,s(e));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Q(n,t,e){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_158_1(c,n,t,s(e));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Z(n,t,e,r){o.__wasm_bindgen_func_elem_1045(n,t,s(e),s(r))}function s(n){F===w.length&&w.push(w.length+1);let t=F;return F=w[t],w[t]=n,t}function et(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(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+=R(n[0]));for(let a=1;a<i;a++)c+=", "+R(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
2
  ${n.stack}`:r}function rt(n){n<1028||(w[n]=F,F=n)}function ot(n,t){return n=n>>>0,A().subarray(n/1,n/1+t)}function d(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==o.memory.buffer)&&(m=new DataView(o.memory.buffer)),m}function v(n,t){return n=n>>>0,_t(n,t)}function A(){return(x===null||x.byteLength===0)&&(x=new Uint8Array(o.memory.buffer)),x}function _(n){return w[n]}function T(n,t){try{return n.apply(this,t)}catch(e){o.__wbindgen_export3(s(e))}}function l(n){return n==null}function W(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&&(o.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(i,r,r),i}function b(n,t,e){if(e===void 0){let g=S.encode(n),y=t(g.length,1)>>>0;return A().subarray(y,y+g.length).set(g),u=g.length,y}let r=n.length,i=t(r,1)>>>0,c=A(),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=A().subarray(i+a,i+r),y=S.encodeInto(n,g);a+=y.written,i=e(i,r,a,1)>>>0}return u=a,i}function f(n){let t=_(n);return rt(n),t}function _t(n,t){return H+=t,H>=it&&(k=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),k.decode(),H=t),k.decode(A().subarray(n,n+t))}function E(n,t){return o=n.exports,st=t,m=null,x=null,o}async function ct(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 at(n){if(o!==void 0)return o;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=D();n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));let e=new WebAssembly.Instance(n,t);return E(e,n)}async function I(n){if(o!==void 0)return o;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=D();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:e,module:r}=await ct(await n,t);return E(e,r)}var h,O,tt,nt,P,m,x,w,F,k,it,H,S,u,st,o,j=z(()=>{"use strict";h=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();o.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return o.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return o.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return o.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){o.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){o.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){o.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(h.prototype[Symbol.dispose]=h.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();o.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>o.__wbg_conversionoptions_free(n>>>0,1)),nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>o.__wbg_runoptions_free(n>>>0,1));P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>o.__wbindgen_export4(n.a,n.b));m=null;x=null;w=new Array(1024).fill(void 0);w.push(void 0,null,!0,!1);F=w.length;k=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});k.decode();it=2146435072,H=0;S=new TextEncoder;"encodeInto"in S||(S.encodeInto=function(n,t){let e=S.encode(n);return t.set(e),{read:n.length,written:e.length}});u=0});j();var M=null;async function p(){return M||(await(async()=>{try{await I();let n=await Promise.resolve().then(()=>(j(),U));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}}catch(n){throw new Error(`Failed to initialize mq WebAssembly module: ${n}`)}})(),M)}async function yt(n,t,e={}){return await(await p()).run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function mt(n){return await(await p()).toAst(n)}async function ht(n){return await(await p()).format(n)}async function xt(n,t){return await(await p()).diagnostics(n,t)}async function At(n){return await(await p()).inlayHints(n)}async function Ft(n,t){return await(await p()).definedValues(n,t)}async function St(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 kt(n){return await(await p()).toHtml(n)}export{Ft as definedValues,xt as diagnostics,ht as format,St as hover,Ot as htmlToMarkdown,At as inlayHints,yt as run,mt as toAst,kt as toHtml};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var U=Object.defineProperty;var z=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>{for(var n in t)U(e,n,{get:t[n],enumerable:!0})};var V={};q(V,{ConversionOptions:()=>h,RunOptions:()=>S,default:()=>I,definedValues:()=>L,diagnostics:()=>B,format:()=>C,hover:()=>$,htmlToMarkdown:()=>N,initSync:()=>at,inlayHints:()=>G,run:()=>J,toAst:()=>X,toHtml:()=>Y});function L(e,t){let n=b(e,o.__wbindgen_export,o.__wbindgen_export2),r=u;var i=l(t)?0:b(t,o.__wbindgen_export,o.__wbindgen_export2),c=u;let a=o.definedValues(n,r,i,c);return f(a)}function B(e,t){let n=b(e,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=o.diagnostics(n,r,l(t)?16777215:t?1:0);return f(i)}function C(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.format(t,n);return f(r)}function $(e,t,n){let r=b(e,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=o.hover(r,i,t,n);return f(c)}function N(e,t){let n=b(e,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=0;l(t)||(nt(t,h),i=t.__destroy_into_raw());let c=o.htmlToMarkdown(n,r,i);return f(c)}function G(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.inlayHints(t,n);return f(r)}function J(e,t,n){let r=b(e,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=b(t,o.__wbindgen_export,o.__wbindgen_export2),a=u,g=o.run(r,i,c,a,_(n));return f(g)}function X(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.toAst(t,n);return f(r)}function Y(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.toHtml(t,n);return f(r)}function W(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,n){let r=Error(M(t,n));return _(r)},__wbg_String_8564e559799eccda:function(t,n){let r=String(s(n)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let n=s(t),r=typeof n=="boolean"?n:void 0;return l(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,n){let r=R(s(n)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,n){return s(t)in s(n)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof s(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let n=s(t);return typeof n=="object"&&n!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof s(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return s(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,n){return s(t)==s(n)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,n){let r=s(n),i=typeof r=="number"?r:void 0;d().setFloat64(t+8,l(i)?0:i,!0),d().setInt32(t+0,!l(i),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,n){let r=s(n),i=typeof r=="string"?r:void 0;var c=l(i)?0:b(i,o.__wbindgen_export,o.__wbindgen_export2),a=u;d().setInt32(t+4,a,!0),d().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,n){throw new Error(M(t,n))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){s(t)._wbg_cb_unref()},__wbg_arrayBuffer_473644614d8643a5:function(t){let n=s(t).arrayBuffer();return _(n)},__wbg_call_a24592a6f349a97e:function(){return D(function(t,n,r){let i=s(t).call(s(n),s(r));return _(i)},arguments)},__wbg_done_9158f7cc8751ba32:function(t){return s(t).done},__wbg_entries_71f4fb4dbf3ab334:function(t){let n=s(t).entries();return _(n)},__wbg_entries_e0b73aa8571ddb56:function(t){let n=Object.entries(s(t));return _(n)},__wbg_from_0dbf29f09e7fb200:function(t){let n=Array.from(s(t));return _(n)},__wbg_getDirectory_3b3e1fae9108e816:function(t){let n=s(t).getDirectory();return _(n)},__wbg_getFile_0f5a0aed86383786:function(t){let n=s(t).getFile();return _(n)},__wbg_get_8360291721e2339f:function(t,n){let r=s(t)[n>>>0];return _(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,n){let r=s(t)[s(n)];return _(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let n;try{n=s(t)instanceof ArrayBuffer}catch{n=!1}return n},__wbg_instanceof_FileSystemDirectoryHandle_b94ae0051739fba7:function(t){let n;try{n=s(t)instanceof FileSystemDirectoryHandle}catch{n=!1}return n},__wbg_instanceof_FileSystemFileHandle_37049c6f02bdc571:function(t){let n;try{n=s(t)instanceof FileSystemFileHandle}catch{n=!1}return n},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let n;try{n=s(t)instanceof Uint8Array}catch{n=!1}return n},__wbg_instanceof_Window_cc64c86c8ef9e02b:function(t){let n;try{n=s(t)instanceof Window}catch{n=!1}return n},__wbg_length_3d4ecd04bd8d22f1:function(t){return s(t).length},__wbg_length_9f1775224cf1d815:function(t){return s(t).length},__wbg_navigator_bc077756492232c5:function(t){let n=s(t).navigator;return _(n)},__wbg_new_0c7403db6e782f19:function(t){let n=new Uint8Array(s(t));return _(n)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return _(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return _(t)},__wbg_new_typed_323f37fd55ab048d:function(t,n){try{var r={a:t,b:n},i=(a,g)=>{let p=r.a;r.a=0;try{return Z(p,r.b,a,g)}finally{r.a=p}};let c=new Promise(i);return _(c)}finally{r.a=0}},__wbg_next_36ce9804d16f8eb4:function(){return D(function(t){let n=s(t).next();return _(n)},arguments)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,n,r){Uint8Array.prototype.set.call(ot(t,n),s(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(s(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let n=s(t).queueMicrotask;return _(n)},__wbg_resolve_e6c466bc1052f16c:function(t){let n=Promise.resolve(s(t));return _(n)},__wbg_set_3bf1de9fab0cd644:function(t,n,r){s(t)[n>>>0]=f(r)},__wbg_set_6be42768c690e380:function(t,n,r){s(t)[f(n)]=f(r)},__wbg_size_2207e0a7b1f0c588:function(t){return s(t).size},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return l(t)?0:_(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return l(t)?0:_(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return l(t)?0:_(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return l(t)?0:_(t)},__wbg_storage_11147bcf4dee71ae:function(t){let n=s(t).storage;return _(n)},__wbg_then_792e0c862b060889:function(t,n,r){let i=s(t).then(s(n),s(r));return _(i)},__wbg_then_8e16ee11f05e4827:function(t,n){let r=s(t).then(s(n));return _(r)},__wbg_value_ee3a06f4579184fa:function(t){let n=s(t).value;return _(n)},__wbindgen_cast_0000000000000001:function(t,n){let r=P(t,n,K);return _(r)},__wbindgen_cast_0000000000000002:function(t,n){let r=P(t,n,Q);return _(r)},__wbindgen_cast_0000000000000003:function(t){return _(t)},__wbindgen_cast_0000000000000004:function(t,n){let r=M(t,n);return _(r)},__wbindgen_object_clone_ref:function(t){let n=s(t);return _(n)},__wbindgen_object_drop_ref:function(t){f(t)}}}}function K(e,t,n){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_155(c,e,t,_(n));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Q(e,t,n){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_155_1(c,e,t,_(n));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Z(e,t,n,r){o.__wasm_bindgen_func_elem_1047(e,t,_(n),_(r))}function _(e){F===w.length&&w.push(w.length+1);let t=F;return F=w[t],w[t]=e,t}function nt(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(e){let t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(t=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,c="[";i>0&&(c+=R(e[0]));for(let a=1;a<i;a++)c+=", "+R(e[a]);return c+="]",c}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
1
+ var U=Object.defineProperty;var z=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>{for(var n in t)U(e,n,{get:t[n],enumerable:!0})};var V={};q(V,{ConversionOptions:()=>h,RunOptions:()=>S,default:()=>I,definedValues:()=>L,diagnostics:()=>B,format:()=>C,hover:()=>$,htmlToMarkdown:()=>N,initSync:()=>at,inlayHints:()=>G,run:()=>J,toAst:()=>X,toHtml:()=>Y});function L(e,t){let n=b(e,o.__wbindgen_export,o.__wbindgen_export2),r=u;var i=l(t)?0:b(t,o.__wbindgen_export,o.__wbindgen_export2),c=u;let a=o.definedValues(n,r,i,c);return f(a)}function B(e,t){let n=b(e,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=o.diagnostics(n,r,l(t)?16777215:t?1:0);return f(i)}function C(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.format(t,n);return f(r)}function $(e,t,n){let r=b(e,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=o.hover(r,i,t,n);return f(c)}function N(e,t){let n=b(e,o.__wbindgen_export,o.__wbindgen_export2),r=u,i=0;l(t)||(nt(t,h),i=t.__destroy_into_raw());let c=o.htmlToMarkdown(n,r,i);return f(c)}function G(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.inlayHints(t,n);return f(r)}function J(e,t,n){let r=b(e,o.__wbindgen_export,o.__wbindgen_export2),i=u,c=b(t,o.__wbindgen_export,o.__wbindgen_export2),a=u,g=o.run(r,i,c,a,_(n));return f(g)}function X(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.toAst(t,n);return f(r)}function Y(e){let t=b(e,o.__wbindgen_export,o.__wbindgen_export2),n=u,r=o.toHtml(t,n);return f(r)}function W(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_960c155d3d49e4c2:function(t,n){let r=Error(M(t,n));return _(r)},__wbg_String_8564e559799eccda:function(t,n){let r=String(s(n)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff:function(t){let n=s(t),r=typeof n=="boolean"?n:void 0;return l(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_ab4b34d23d6778bd:function(t,n){let r=R(s(n)),i=b(r,o.__wbindgen_export,o.__wbindgen_export2),c=u;d().setInt32(t+4,c,!0),d().setInt32(t+0,i,!0)},__wbg___wbindgen_in_a5d8b22e52b24dd1:function(t,n){return s(t)in s(n)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(t){return typeof s(t)=="function"},__wbg___wbindgen_is_object_63322ec0cd6ea4ef:function(t){let n=s(t);return typeof n=="object"&&n!==null},__wbg___wbindgen_is_string_6df3bf7ef1164ed3:function(t){return typeof s(t)=="string"},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(t){return s(t)===void 0},__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c:function(t,n){return s(t)==s(n)},__wbg___wbindgen_number_get_c7f42aed0525c451:function(t,n){let r=s(n),i=typeof r=="number"?r:void 0;d().setFloat64(t+8,l(i)?0:i,!0),d().setInt32(t+0,!l(i),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(t,n){let r=s(n),i=typeof r=="string"?r:void 0;var c=l(i)?0:b(i,o.__wbindgen_export,o.__wbindgen_export2),a=u;d().setInt32(t+4,a,!0),d().setInt32(t+0,c,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(t,n){throw new Error(M(t,n))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(t){s(t)._wbg_cb_unref()},__wbg_arrayBuffer_473644614d8643a5:function(t){let n=s(t).arrayBuffer();return _(n)},__wbg_call_a24592a6f349a97e:function(){return D(function(t,n,r){let i=s(t).call(s(n),s(r));return _(i)},arguments)},__wbg_done_9158f7cc8751ba32:function(t){return s(t).done},__wbg_entries_71f4fb4dbf3ab334:function(t){let n=s(t).entries();return _(n)},__wbg_entries_e0b73aa8571ddb56:function(t){let n=Object.entries(s(t));return _(n)},__wbg_from_0dbf29f09e7fb200:function(t){let n=Array.from(s(t));return _(n)},__wbg_getDirectory_3b3e1fae9108e816:function(t){let n=s(t).getDirectory();return _(n)},__wbg_getFile_0f5a0aed86383786:function(t){let n=s(t).getFile();return _(n)},__wbg_get_8360291721e2339f:function(t,n){let r=s(t)[n>>>0];return _(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,n){let r=s(t)[s(n)];return _(r)},__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3:function(t){let n;try{n=s(t)instanceof ArrayBuffer}catch{n=!1}return n},__wbg_instanceof_FileSystemDirectoryHandle_b94ae0051739fba7:function(t){let n;try{n=s(t)instanceof FileSystemDirectoryHandle}catch{n=!1}return n},__wbg_instanceof_FileSystemFileHandle_37049c6f02bdc571:function(t){let n;try{n=s(t)instanceof FileSystemFileHandle}catch{n=!1}return n},__wbg_instanceof_Uint8Array_152ba1f289edcf3f:function(t){let n;try{n=s(t)instanceof Uint8Array}catch{n=!1}return n},__wbg_instanceof_Window_cc64c86c8ef9e02b:function(t){let n;try{n=s(t)instanceof Window}catch{n=!1}return n},__wbg_length_3d4ecd04bd8d22f1:function(t){return s(t).length},__wbg_length_9f1775224cf1d815:function(t){return s(t).length},__wbg_navigator_bc077756492232c5:function(t){let n=s(t).navigator;return _(n)},__wbg_new_0c7403db6e782f19:function(t){let n=new Uint8Array(s(t));return _(n)},__wbg_new_682678e2f47e32bc:function(){let t=new Array;return _(t)},__wbg_new_aa8d0fa9762c29bd:function(){let t=new Object;return _(t)},__wbg_new_typed_323f37fd55ab048d:function(t,n){try{var r={a:t,b:n},i=(a,g)=>{let p=r.a;r.a=0;try{return Z(p,r.b,a,g)}finally{r.a=p}};let c=new Promise(i);return _(c)}finally{r.a=0}},__wbg_next_36ce9804d16f8eb4:function(){return D(function(t){let n=s(t).next();return _(n)},arguments)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(t,n,r){Uint8Array.prototype.set.call(ot(t,n),s(r))},__wbg_queueMicrotask_5d15a957e6aa920e:function(t){queueMicrotask(s(t))},__wbg_queueMicrotask_f8819e5ffc402f36:function(t){let n=s(t).queueMicrotask;return _(n)},__wbg_resolve_e6c466bc1052f16c:function(t){let n=Promise.resolve(s(t));return _(n)},__wbg_set_3bf1de9fab0cd644:function(t,n,r){s(t)[n>>>0]=f(r)},__wbg_set_6be42768c690e380:function(t,n,r){s(t)[f(n)]=f(r)},__wbg_size_2207e0a7b1f0c588:function(t){return s(t).size},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){let t=typeof global>"u"?null:global;return l(t)?0:_(t)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){let t=typeof globalThis>"u"?null:globalThis;return l(t)?0:_(t)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){let t=typeof self>"u"?null:self;return l(t)?0:_(t)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){let t=typeof window>"u"?null:window;return l(t)?0:_(t)},__wbg_storage_11147bcf4dee71ae:function(t){let n=s(t).storage;return _(n)},__wbg_then_792e0c862b060889:function(t,n,r){let i=s(t).then(s(n),s(r));return _(i)},__wbg_then_8e16ee11f05e4827:function(t,n){let r=s(t).then(s(n));return _(r)},__wbg_value_ee3a06f4579184fa:function(t){let n=s(t).value;return _(n)},__wbindgen_cast_0000000000000001:function(t,n){let r=P(t,n,K);return _(r)},__wbindgen_cast_0000000000000002:function(t,n){let r=P(t,n,Q);return _(r)},__wbindgen_cast_0000000000000003:function(t){return _(t)},__wbindgen_cast_0000000000000004:function(t,n){let r=M(t,n);return _(r)},__wbindgen_object_clone_ref:function(t){let n=s(t);return _(n)},__wbindgen_object_drop_ref:function(t){f(t)}}}}function K(e,t,n){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_158(c,e,t,_(n));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Q(e,t,n){try{let c=o.__wbindgen_add_to_stack_pointer(-16);o.__wasm_bindgen_func_elem_158_1(c,e,t,_(n));var r=d().getInt32(c+0,!0),i=d().getInt32(c+4,!0);if(i)throw f(r)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function Z(e,t,n,r){o.__wasm_bindgen_func_elem_1045(e,t,_(n),_(r))}function _(e){F===w.length&&w.push(w.length+1);let t=F;return F=w[t],w[t]=e,t}function nt(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(e){let t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(t=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,c="[";i>0&&(c+=R(e[0]));for(let a=1;a<i;a++)c+=", "+R(e[a]);return c+="]",c}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
2
2
  ${e.stack}`:r}function rt(e){e<1028||(w[e]=F,F=e)}function ot(e,t){return e=e>>>0,A().subarray(e/1,e/1+t)}function d(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==o.memory.buffer)&&(y=new DataView(o.memory.buffer)),y}function M(e,t){return e=e>>>0,st(e,t)}function A(){return(x===null||x.byteLength===0)&&(x=new Uint8Array(o.memory.buffer)),x}function s(e){return w[e]}function D(e,t){try{return e.apply(this,t)}catch(n){o.__wbindgen_export3(_(n))}}function l(e){return e==null}function P(e,t,n){let r={a:e,b:t,cnt:1},i=(...c)=>{r.cnt++;let a=r.a;r.a=0;try{return n(a,r.b,...c)}finally{r.a=a,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{--r.cnt===0&&(o.__wbindgen_export4(r.a,r.b),r.a=0,T.unregister(r))},T.register(i,r,r),i}function b(e,t,n){if(n===void 0){let g=O.encode(e),p=t(g.length,1)>>>0;return A().subarray(p,p+g.length).set(g),u=g.length,p}let r=e.length,i=t(r,1)>>>0,c=A(),a=0;for(;a<r;a++){let g=e.charCodeAt(a);if(g>127)break;c[i+a]=g}if(a!==r){a!==0&&(e=e.slice(a)),i=n(i,r,r=a+e.length*3,1)>>>0;let g=A().subarray(i+a,i+r),p=O.encodeInto(e,g);a+=p.written,i=n(i,r,a,1)>>>0}return u=a,i}function f(e){let t=s(e);return rt(e),t}function st(e,t){return H+=t,H>=it&&(v=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),v.decode(),H=t),v.decode(A().subarray(e,e+t))}function E(e,t){return o=e.exports,_t=t,y=null,x=null,o}async function ct(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(i){if(e.ok&&n(e.type)&&e.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 e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}function at(e){if(o!==void 0)return o;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=W();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let n=new WebAssembly.Instance(e,t);return E(n,e)}async function I(e){if(o!==void 0)return o;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("mq_wasm_bg.wasm",import.meta.url));let t=W();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await ct(await e,t);return E(n,r)}var h,S,tt,et,T,y,x,w,F,v,it,H,O,u,_t,o,j=z(()=>{"use strict";h=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){let t=this.__destroy_into_raw();o.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return o.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return o.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return o.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){o.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){o.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){o.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);S=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();o.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_conversionoptions_free(e>>>0,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_runoptions_free(e>>>0,1));T=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbindgen_export4(e.a,e.b));y=null;x=null;w=new Array(1024).fill(void 0);w.push(void 0,null,!0,!1);F=w.length;v=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});v.decode();it=2146435072,H=0;O=new TextEncoder;"encodeInto"in O||(O.encodeInto=function(e,t){let n=O.encode(e);return t.set(n),{read:e.length,written:n.length}});u=0});j();var k=null;async function m(){return k||(await(async()=>{try{await I();let e=await Promise.resolve().then(()=>(j(),V));k={run:e.run,toAst:e.toAst,format:e.format,diagnostics:e.diagnostics,inlayHints:e.inlayHints,hover:e.hover,definedValues:e.definedValues,htmlToMarkdown:e.htmlToMarkdown,toHtml:e.toHtml}}catch(e){throw new Error(`Failed to initialize mq WebAssembly module: ${e}`)}})(),k)}async function ut(e,t,n={}){return await(await m()).run(e,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...n})}async function ft(e){return await(await m()).toAst(e)}async function bt(e){return await(await m()).format(e)}async function gt(e,t){return await(await m()).diagnostics(e,t)}async function dt(e){return await(await m()).inlayHints(e)}async function lt(e,t){return await(await m()).definedValues(e,t)}async function wt(e,t,n){return await(await m()).hover(e,t,n)}export{lt as definedValues,gt as diagnostics,bt as format,wt as hover,dt as inlayHints,ut as run,ft as toAst};
package/dist/mq_wasm.js CHANGED
@@ -376,7 +376,7 @@ function __wbg_get_imports() {
376
376
  const a = state0.a;
377
377
  state0.a = 0;
378
378
  try {
379
- return __wasm_bindgen_func_elem_1047(a, state0.b, arg0, arg1);
379
+ return __wasm_bindgen_func_elem_1045(a, state0.b, arg0, arg1);
380
380
  } finally {
381
381
  state0.a = a;
382
382
  }
@@ -449,12 +449,12 @@ function __wbg_get_imports() {
449
449
  },
450
450
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
451
451
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
452
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_155);
452
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_158);
453
453
  return addHeapObject(ret);
454
454
  },
455
455
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
456
456
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IteratorResult<any>")], shim_idx: 2, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
457
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_155_1);
457
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_158_1);
458
458
  return addHeapObject(ret);
459
459
  },
460
460
  __wbindgen_cast_0000000000000003: function(arg0) {
@@ -481,10 +481,10 @@ function __wbg_get_imports() {
481
481
  };
482
482
  }
483
483
 
484
- function __wasm_bindgen_func_elem_155(arg0, arg1, arg2) {
484
+ function __wasm_bindgen_func_elem_158(arg0, arg1, arg2) {
485
485
  try {
486
486
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
487
- wasm.__wasm_bindgen_func_elem_155(retptr, arg0, arg1, addHeapObject(arg2));
487
+ wasm.__wasm_bindgen_func_elem_158(retptr, arg0, arg1, addHeapObject(arg2));
488
488
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
489
489
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
490
490
  if (r1) {
@@ -495,10 +495,10 @@ function __wasm_bindgen_func_elem_155(arg0, arg1, arg2) {
495
495
  }
496
496
  }
497
497
 
498
- function __wasm_bindgen_func_elem_155_1(arg0, arg1, arg2) {
498
+ function __wasm_bindgen_func_elem_158_1(arg0, arg1, arg2) {
499
499
  try {
500
500
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
501
- wasm.__wasm_bindgen_func_elem_155_1(retptr, arg0, arg1, addHeapObject(arg2));
501
+ wasm.__wasm_bindgen_func_elem_158_1(retptr, arg0, arg1, addHeapObject(arg2));
502
502
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
503
503
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
504
504
  if (r1) {
@@ -509,8 +509,8 @@ function __wasm_bindgen_func_elem_155_1(arg0, arg1, arg2) {
509
509
  }
510
510
  }
511
511
 
512
- function __wasm_bindgen_func_elem_1047(arg0, arg1, arg2, arg3) {
513
- wasm.__wasm_bindgen_func_elem_1047(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
512
+ function __wasm_bindgen_func_elem_1045(arg0, arg1, arg2, arg3) {
513
+ wasm.__wasm_bindgen_func_elem_1045(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
514
514
  }
515
515
 
516
516
  const ConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mq-web",
3
3
  "description": "A jq-like command-line tool for Markdown processing",
4
- "version": "0.5.28",
4
+ "version": "0.5.29",
5
5
  "author": "harehare",
6
6
  "license": "MIT",
7
7
  "bugs": {