You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
2.3 MiB
10 lines
2.3 MiB
3 years ago
|
var rj=Object.create;var jA=Object.defineProperty;var ej=Object.getOwnPropertyDescriptor;var tj=Object.getOwnPropertyNames;var aj=Object.getPrototypeOf,oj=Object.prototype.hasOwnProperty;var OA=A=>jA(A,"__esModule",{value:!0});var gA=(A,t)=>()=>(t||A((t={exports:{}}).exports,t),t.exports),nj=(A,t)=>{OA(A);for(var p in t)jA(A,p,{get:t[p],enumerable:!0})},ij=(A,t,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of tj(t))!oj.call(A,d)&&d!=="default"&&jA(A,d,{get:()=>t[d],enumerable:!(p=ej(t,d))||p.enumerable});return A},fA=A=>ij(OA(jA(A!=null?rj(aj(A)):{},"default",A&&A.__esModule&&"default"in A?{get:()=>A.default,enumerable:!0}:{value:A,enumerable:!0})),A);var KA=gA((xj,rA)=>{(function(){var A={};function t(){}function p(j){return j}function d(j){return!!j}function a(j){return!j}var s,B=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||this;B!=null&&(s=B.async),A.noConflict=function(){return B.async=s,A};function E(j){return function(){if(j===null)throw new Error("Callback was already called.");j.apply(this,arguments),j=null}}function F(j){return function(){j!==null&&(j.apply(this,arguments),j=null)}}var O=Object.prototype.toString,D=Array.isArray||function(j){return O.call(j)==="[object Array]"},V=function(j){var r=typeof j;return r==="function"||r==="object"&&!!j};function lA(j){return D(j)||typeof j.length=="number"&&j.length>=0&&j.length%1==0}function _(j,r){for(var e=-1,o=j.length;++e<o;)r(j[e],e,j)}function H(j,r){for(var e=-1,o=j.length,n=Array(o);++e<o;)n[e]=r(j[e],e,j);return n}function wA(j){return H(Array(j),function(r,e){return e})}function JA(j,r,e){return _(j,function(o,n,i){e=r(e,o,n,i)}),e}function zA(j,r){_(sA(j),function(e){r(j[e],e)})}function QA(j,r){for(var e=0;e<j.length;e++)if(j[e]===r)return e;return-1}var sA=Object.keys||function(j){var r=[];for(var e in j)j.hasOwnProperty(e)&&r.push(e);return r};function cA(j){var r=-1,e,o;return lA(j)?(e=j.length,function(){return r++,r<e?r:null}):(o=sA(j),e=o.length,function(){return r++,r<e?o[r]:null})}function G(j,r){return r=r==null?j.length-1:+r,function(){for(var e=Math.max(arguments.length-r,0),o=Array(e),n=0;n<e;n++)o[n]=arguments[n+r];switch(r){case 0:return j.call(this,o);case 1:return j.call(this,arguments[0],o)}}}function BA(j){return function(r,e,o){return j(r,o)}}var uA=typeof setImmediate=="function"&&setImmediate,xA=uA?function(j){uA(j)}:function(j){setTimeout(j,0)};typeof process=="object"&&typeof process.nextTick=="function"?A.nextTick=process.nextTick:A.nextTick=xA,A.setImmediate=uA?xA:A.nextTick,A.forEach=A.each=function(j,r,e){return A.eachOf(j,BA(r),e)},A.forEachSeries=A.eachSeries=function(j,r,e){return A.eachOfSeries(j,BA(r),e)},A.forEachLimit=A.eachLimit=function(j,r,e,o){return Y(r)(j,BA(e),o)},A.forEachOf=A.eachOf=function(j,r,e){e=F(e||t),j=j||[];for(var o=cA(j),n,i=0;(n=o())!=null;)i+=1,r(j[n],n,E(l));i===0&&e(null);function l(c){i--,c?e(c):n===null&&i<=0&&e(null)}},A.forEachOfSeries=A.eachOfSeries=function(j,r,e){e=F(e||t),j=j||[];var o=cA(j),n=o();function i(){var l=!0;if(n===null)return e(null);r(j[n],n,E(function(c){if(c)e(c);else{if(n=o(),n===null)return e(null);l?A.setImmediate(i):i()}})),l=!1}i()},A.forEachOfLimit=A.eachOfLimit=function(j,r,e,o){Y(r)(j,e,o)};function Y(j){return function(r,e,o){o=F(o||t),r=r||[];var n=cA(r);if(j<=0)return o(null);var i=!1,l=0,c=!1;(function u(){if(i&&l<=0)return o(null);for(;l<j&&!c;){var $=n();if($===null){i=!0,l<=0&&o(null);return}l+=1,e(r[$],$,E(function(f){l-=1,f?(o(f),c=!0):u()}))}})()}}function W(j){return function(r,e,o){return j(A.eachOf,r,e,o)}}function pA(j){return function(r,e,o,n){return j(Y(e),r,o,n)}}function Z(j){return function(r,e,o){return j(A.eachOfSeries,r,e,o)}}function $A(j,r,e,o){o=F(o||t),r=r||[];var n=lA(r)?[]:{};j(r,function(i,l,c){e(i,function(u,$){n[l]=$,c(u)})},function(i){o(i,n)})}A.map=W($A),A.mapSeries=Z($A),A.mapLimit=pA($A),A.inject=A.foldl=A.reduce=function(j,r,e,o){A.eachOfSeries(j,function(n,i,l){e(r,n,function(c,u){r=u,l(c)})},function(n){o(n,r)})},A.foldr=A.reduceRight=function(j,r,e,o){va
|
||
|
${A.stack}`:d}function UA(A,t,p,d){let a={a:A,b:t,cnt:1,dtor:p},s=(...B)=>{a.cnt++;let E=a.a;a.a=0;try{return d(E,a.b,...B)}finally{--a.cnt==0?k.__wbindgen_export_2.get(a.dtor)(E,a.b):a.a=E}};return s.original=a,s}function Fj(A,t,p,d,a){var s=x(d,k.__wbindgen_malloc,k.__wbindgen_realloc),B=w,E=x(a,k.__wbindgen_malloc,k.__wbindgen_realloc),F=w;k._dyn_core__ops__function__FnMut__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdfdbc44323d548ab(A,t,bA(p)?0:g(p),s,B,E,F)}function bj(A,t,p){k._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2259b57e4ea095ba(A,t,g(p))}function vA(A){return function(){try{return A.apply(this,arguments)}catch(t){k.__wbindgen_exn_store(g(t))}}}function Gj(A,t,p,d){k.wasm_bindgen__convert__closures__invoke2_mut__h54be02b8ff241373(A,t,g(p),g(d))}function VA(A){k.onload(g(A))}var iA=class{static __wrap(t){let p=Object.create(iA.prototype);return p.ptr=t,p}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();k.__wbg_extractcommand_free(t)}get id(){var t=k.extractcommand_id(this.ptr);return N(t)}set id(t){var p=x(t,k.__wbindgen_malloc,k.__wbindgen_realloc),d=w;k.extractcommand_set_id(this.ptr,p,d)}get name(){var t=k.extractcommand_name(this.ptr);return N(t)}set name(t){var p=x(t,k.__wbindgen_malloc,k.__wbindgen_realloc),d=w;k.extractcommand_set_name(this.ptr,p,d)}callback(){var t=k.extractcommand_callback(this.ptr);return N(t)}};async function vj(A,t){if(typeof Response=="function"&&A instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(A,t)}catch(d){if(A.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",d);else throw d}let p=await A.arrayBuffer();return await WebAssembly.instantiate(p,t)}else{let p=await WebAssembly.instantiate(A,t);return p instanceof WebAssembly.Instance?{instance:p,module:A}:p}}async function YA(A){typeof A=="undefined"&&(A=new URL("obsidian_rust_plugin_bg.wasm",Ij.url));let t={};t.wbg={},t.wbg.__wbindgen_object_drop_ref=function(a){N(a)},t.wbg.__wbindgen_string_new=function(a,s){var B=L(a,s);return g(B)},t.wbg.__wbg_message_36abd9ed8d0a4bad=function(a){var s=q(a).message;return g(s)},t.wbg.__wbindgen_json_serialize=function(a,s){let B=q(s);var E=JSON.stringify(B===void 0?null:B),F=x(E,k.__wbindgen_malloc,k.__wbindgen_realloc),O=w;Q()[a/4+1]=O,Q()[a/4+0]=F},t.wbg.__wbg_log_da824bc9fb9da0a8=function(a,s){console.log(q(a),q(s))},t.wbg.__wbg_hasBin_456e5d089209547f=function(a,s){var B=(0,S.hasBin)(L(a,s));return B},t.wbg.__wbg_log_386a8115a84a780d=function(a){console.log(q(a))},t.wbg.__wbg_nodeExec_c5b0e0c1aeb6c713=function(a,s,B){var E=(0,S.nodeExec)(L(a,s),q(B));return g(E)},t.wbg.__wbg_app_f6a9dd17ea9e845c=function(a){var s=q(a).app;return g(s)},t.wbg.__wbg_workspace_1b6c747135563e6c=function(a){var s=q(a).workspace;return g(s)},t.wbg.__wbg_getActiveViewOfType_828a6e7df7dd3992=function(a,s){var B=q(a).getActiveViewOfType(q(s));return bA(B)?0:g(B)},t.wbg.__wbg_instanceof_MarkdownView_3d4a58e5cc750eeb=function(a){var s=q(a)instanceof X.MarkdownView;return s},t.wbg.__wbg_sourceMode_9fd153f11b4bd3ac=function(a){var s=q(a).sourceMode;return g(s)},t.wbg.__wbg_cmEditor_e01da0088a54b33d=function(a){var s=q(a).cmEditor;return g(s)},t.wbg.__wbg_getSelection_2616d90a7d595c4c=function(a,s){var B=q(s).getSelection(),E=x(B,k.__wbindgen_malloc,k.__wbindgen_realloc),F=w;Q()[a/4+1]=F,Q()[a/4+0]=E},t.wbg.__wbg_clipboardReadText_57a095da41ca2b2d=function(a){var s=(0,S.clipboardReadText)(),B=x(s,k.__wbindgen_malloc,k.__wbindgen_realloc),E=w;Q()[a/4+1]=E,Q()[a/4+0]=B},t.wbg.__wbg_replaceSelection_30a0671dcd119457=function(a,s,B){q(a).replaceSelection(L(s,B))},t.wbg.__wbg_getViewData_1160e96a9adff82a=function(a,s){var B=q(s).getViewData(),E=x(B,k.__wbindgen_malloc,k.__wbindgen_realloc),F=w;Q()[a/4+1
|
||
|
/*!
|
||
|
* async
|
||
|
* https://github.com/caolan/async
|
||
|
*
|
||
|
* Copyright 2010-2014 Caolan McMahon
|
||
|
* Released under the MIT license
|
||
|
*/
|