diff --git a/Makefile b/Makefile index d549b2b0..4555f900 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # dependencies -SQLITE_VERSION = version-3.44.0 +SQLITE_VERSION = version-3.46.0 SQLITE_TARBALL_URL = https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=${SQLITE_VERSION} EXTENSION_FUNCTIONS = extension-functions.c diff --git a/dist/wa-sqlite-async.mjs b/dist/wa-sqlite-async.mjs index a8cc3fe1..21cb11cb 100644 --- a/dist/wa-sqlite-async.mjs +++ b/dist/wa-sqlite-async.mjs @@ -34,7 +34,7 @@ function nb(a){for(var b;;){if(a===a.parent)return a=a.Ff.jg,b?"/"!==a[a.length- function eb(a,b){var c;if(c=(c=qb(a,"x"))?c:a.wf.Of?0:2)throw new N(c,a);for(c=Q[ob(a.id,b)];c;c=c.Mf){var e=c.name;if(c.parent.id===a.id&&e===b)return c}return a.wf.Of(a,b)}function cb(a,b,c,e){a=new rb(a,b,c,e);b=ob(a.parent.id,a.name);a.Mf=Q[b];return Q[b]=a}function P(a){return 16384===(a&61440)}function sb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b} function qb(a,b){if(lb)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function tb(a,b){try{return eb(a,b),20}catch(c){}return qb(a,"wx")}function ub(a,b,c){try{var e=eb(a,b)}catch(f){return f.zf}if(a=qb(a,"wx"))return a;if(c){if(!P(e.mode))return 54;if(e===e.parent||"/"===nb(e))return 10}else if(P(e.mode))return 31;return 0}function vb(){for(var a=0;4096>=a;a++)if(!jb[a])return a;throw new N(33);} function S(a){a=jb[a];if(!a)throw new N(8);return a}function wb(a,b=-1){xb||(xb=function(){this.Zf={}},xb.prototype={},Object.defineProperties(xb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.Zf.flags},set(c){this.Zf.flags=c}},position:{get(){return this.Zf.position},set(c){this.Zf.position=c}}}));a=Object.assign(new xb,a);-1==b&&(b=vb());a.Hf=b;return jb[b]=a}var bb={open(a){a.xf=ib[a.node.Qf].xf;a.xf.open&&a.xf.open(a)},Kf(){throw new N(70);}}; -function Xa(a,b){ib[a]={xf:b}}function yb(a,b){var c="/"===b,e=!b;if(c&&hb)throw new N(10);if(!c&&!e){var f=R(b,{gg:!1});b=f.path;f=f.node;if(f.Lf)throw new N(10);if(!P(f.mode))throw new N(54);}b={type:a,Mg:{},jg:b,vg:[]};a=a.Ff(b);a.Ff=b;b.root=a;c?hb=a:f&&(f.Lf=b,f.Ff&&f.Ff.vg.push(b))}function zb(a,b,c){var e=R(a,{parent:!0}).node;a=Na(a);if(!a||"."===a||".."===a)throw new N(28);var f=tb(e,a);if(f)throw new N(f);if(!e.wf.Tf)throw new N(63);return e.wf.Tf(e,a,b,c)} +function Xa(a,b){ib[a]={xf:b}}function yb(a,b){var c="/"===b,e=!b;if(c&&hb)throw new N(10);if(!c&&!e){var f=R(b,{gg:!1});b=f.path;f=f.node;if(f.Lf)throw new N(10);if(!P(f.mode))throw new N(54);}b={type:a,Lg:{},jg:b,vg:[]};a=a.Ff(b);a.Ff=b;b.root=a;c?hb=a:f&&(f.Lf=b,f.Ff&&f.Ff.vg.push(b))}function zb(a,b,c){var e=R(a,{parent:!0}).node;a=Na(a);if(!a||"."===a||".."===a)throw new N(28);var f=tb(e,a);if(f)throw new N(f);if(!e.wf.Tf)throw new N(63);return e.wf.Tf(e,a,b,c)} function T(a,b){return zb(a,(void 0!==b?b:511)&1023|16384,0)}function Ab(a,b,c){"undefined"==typeof c&&(c=b,b=438);zb(a,b|8192,c)}function Bb(a,b){if(!Qa(a))throw new N(44);var c=R(b,{parent:!0}).node;if(!c)throw new N(44);b=Na(b);var e=tb(c,b);if(e)throw new N(e);if(!c.wf.Xf)throw new N(63);c.wf.Xf(c,b,a)}function Cb(a){var b=R(a,{parent:!0}).node;a=Na(a);var c=eb(b,a),e=ub(b,a,!0);if(e)throw new N(e);if(!b.wf.Wf)throw new N(63);if(c.Lf)throw new N(10);b.wf.Wf(b,a);pb(c)} function mb(a){a=R(a).node;if(!a)throw new N(44);if(!a.wf.Rf)throw new N(28);return Qa(nb(a.parent),a.wf.Rf(a))}function Db(a,b){a=R(a,{Jf:!b}).node;if(!a)throw new N(44);if(!a.wf.Ef)throw new N(63);return a.wf.Ef(a)}function Eb(a){return Db(a,!0)}function Fb(a,b){a="string"==typeof a?R(a,{Jf:!0}).node:a;if(!a.wf.Bf)throw new N(63);a.wf.Bf(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})} function Gb(a,b){if(0>b)throw new N(28);a="string"==typeof a?R(a,{Jf:!0}).node:a;if(!a.wf.Bf)throw new N(63);if(P(a.mode))throw new N(31);if(32768!==(a.mode&61440))throw new N(28);var c=qb(a,"w");if(c)throw new N(c);a.wf.Bf(a,{size:b,timestamp:Date.now()})} @@ -49,7 +49,7 @@ f%1E3*1E3;F=[e.ig>>>0,(D=e.ig,1<=+Math.abs(D)?0>>0: var Sb=(a,b)=>b+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*b:NaN,Tb=[0,31,60,91,121,152,182,213,244,274,305,335],Ub=[0,31,59,90,120,151,181,212,243,273,304,334],Wb=a=>{var b=Sa(a)+1,c=Vb(b);c&&Ta(a,x,c,b);return c},Xb={},Zb=()=>{if(!Yb){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:da||"./this.program"},b;for(b in Xb)void 0===Xb[b]?delete a[b]:a[b]=Xb[b]; var c=[];for(b in a)c.push(`${b}=${a[b]}`);Yb=c}return Yb},Yb;function $b(){}function ac(){}function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){}function wc(){}function xc(){}function yc(){}function zc(){}function Ac(){}function Bc(){} function Cc(){}function Dc(){}function Ec(){}function Fc(){}function Gc(){}function Hc(){}function Ic(){}function Jc(){}function Kc(){}function Lc(){}var Mc=0,Nc=a=>{na=a;if(!(Ja||0{a instanceof Ha||"unwind"==a||ea(1,a)},Pc=a=>{try{a()}catch(b){u(b)}}; -function Qc(){var a=V,b={},c;for(c in a)(function(e){var f=a[e];b[e]="function"==typeof f?function(){Rc.push(e);try{return f.apply(null,arguments)}finally{v||(Rc.pop()===e||u(),W&&1===Y&&0===Rc.length&&(Y=0,Pc(Sc),"undefined"!=typeof Fibers&&Fibers.Ng()))}}:f})(c);return b}var Y=0,W=null,Tc=0,Rc=[],Uc={},Vc={},Wc=0,Xc=null,Yc=[];function Zc(){return new Promise((a,b)=>{Xc={resolve:a,reject:b}})} +function Qc(){var a=V,b={},c;for(c in a)(function(e){var f=a[e];b[e]="function"==typeof f?function(){Rc.push(e);try{return f.apply(null,arguments)}finally{v||(Rc.pop()===e||u(),W&&1===Y&&0===Rc.length&&(Y=0,Pc(Sc),"undefined"!=typeof Fibers&&Fibers.Mg()))}}:f})(c);return b}var Y=0,W=null,Tc=0,Rc=[],Uc={},Vc={},Wc=0,Xc=null,Yc=[];function Zc(){return new Promise((a,b)=>{Xc={resolve:a,reject:b}})} function $c(){var a=Vb(16396),b=a+12;C[a>>2]=b;C[a+4>>2]=b+16384;b=Rc[0];var c=Uc[b];void 0===c&&(c=Wc++,Uc[b]=c,Vc[c]=b);A[a+8>>2]=c;return a} function ad(a){if(!v){if(0===Y){var b=!1,c=!1;a((e=0)=>{if(!v&&(Tc=e,b=!0,c)){Y=2;Pc(()=>bd(W));"undefined"!=typeof Browser&&Browser.ag.tg&&Browser.ag.resume();e=!1;try{var f=(0,V[Vc[A[W+8>>2]]])()}catch(n){f=n,e=!0}var h=!1;if(!W){var k=Xc;k&&(Xc=null,(e?k.reject:k.resolve)(f),h=!0)}if(e&&!h)throw f;}});c=!0;b||(Y=1,W=$c(),"undefined"!=typeof Browser&&Browser.ag.tg&&Browser.ag.pause(),Pc(()=>cd(W)))}else 2===Y?(Y=0,Pc(dd),ed(W),W=null,Yc.forEach(e=>{if(!v)try{if(e(),!(Ja||0{a().then(b)})} @@ -70,10 +70,10 @@ t.estimatedCost,"double");J(m+q[10],t.estimatedRows,"i32");J(m+q[11],t.idxFlags, 1:0};oc=function(l,m,q,p,t){const y=f.get(l);q=q?q?K(x,q):"":null;t=new Uint32Array(x.buffer,t,p);return y.module.xFilter(l,m,q,t)};pc=function(l){return f.get(l).module.xNext(l)};hc=function(l,m,q){return f.get(l).module.xColumn(l,m,q)};tc=function(l,m){return f.get(l).module.xRowid(l,a("BigInt64",m))};wc=function(l,m,q,p){const t=e.get(l);q=new Uint32Array(x.buffer,q,m);return t.module.xUpdate(l,q,a("BigInt64",p))};ec=function(l){return e.get(l).module.xBegin(l)};vc=function(l){return e.get(l).module.xSync(l)}; ic=function(l){return e.get(l).module.xCommit(l)};sc=function(l){return e.get(l).module.xRollback(l)};rc=function(l,m){const q=e.get(l);m=m?K(x,m):"";return q.module.xRename(l,m)}})(); (function(){function a(h,k){const n=`get${h}`,l=`set${h}`;return new Proxy(new DataView(x.buffer,k,"Int32"===h?4:8),{get(m,q){if(q===n)return function(p,t){if(!t)throw Error("must be little endian");return m[q](p,t)};if(q===l)return function(p,t,y){if(!y)throw Error("must be little endian");return m[q](p,t,y)};if("string"===typeof q&&q.match(/^(get)|(set)/))throw Error("invalid type");return m[q]}})}const b="object"===typeof gd;b&&(d.handleAsync=fd);const c=new Map,e=new Map;d.registerVFS=function(h, -k){if(Z("sqlite3_vfs_find","number",["string"],[h.name]))throw Error(`VFS '${h.name}' already registered`);b&&(h.handleAsync=fd);var n=h.Lg??64;const l=d._malloc(4);k=Z("register_vfs","number",["string","number","number","number"],[h.name,n,k?1:0,l]);k||(n=H(l,"*"),c.set(n,h));d._free(l);return k};const f=b?new Set:null;zc=function(h){const k=e.get(h);b?f.add(h):e.delete(h);return k.xClose(h)};Gc=function(h,k,n,l,m){return e.get(h).xRead(h,x.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Lc=function(h, -k,n,l,m){return e.get(h).xWrite(h,x.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Jc=function(h,k,n){return e.get(h).xTruncate(h,4294967296*n+k+(0>k?2**32:0))};Ic=function(h,k){return e.get(h).xSync(h,k)};Dc=function(h,k){const n=e.get(h);k=a("BigInt64",k);return n.xFileSize(h,k)};Ec=function(h,k){return e.get(h).xLock(h,k)};Kc=function(h,k){return e.get(h).xUnlock(h,k)};yc=function(h,k){const n=e.get(h);k=a("Int32",k);return n.xCheckReservedLock(h,k)};Cc=function(h,k,n){const l=e.get(h);n=new DataView(x.buffer, -n);return l.xFileControl(h,k,n)};Hc=function(h){return e.get(h).xSectorSize(h)};Bc=function(h){return e.get(h).xDeviceCharacteristics(h)};Fc=function(h,k,n,l,m){h=c.get(h);e.set(n,h);if(b){f.delete(n);for(var q of f)e.delete(q)}q=null;if(l&64){q=1;const p=[];for(;q;){const t=x[k++];if(t)p.push(t);else switch(x[k]||(q=null),q){case 1:p.push(63);q=2;break;case 2:p.push(61);q=3;break;case 3:p.push(38),q=2}}q=(new TextDecoder).decode(new Uint8Array(p))}else k&&(q=k?K(x,k):"");m=a("Int32",m);return h.xOpen(q, -n,l,m)};Ac=function(h,k,n){return c.get(h).xDelete(k?K(x,k):"",n)};xc=function(h,k,n,l){h=c.get(h);l=a("Int32",l);return h.xAccess(k?K(x,k):"",n,l)}})(); +k){if(Z("sqlite3_vfs_find","number",["string"],[h.name]))throw Error(`VFS '${h.name}' already registered`);b&&(h.handleAsync=fd);var n=h.mxPathName??64;const l=d._malloc(4);k=Z("register_vfs","number",["string","number","number","number"],[h.name,n,k?1:0,l]);k||(n=H(l,"*"),c.set(n,h));d._free(l);return k};const f=b?new Set:null;zc=function(h){const k=e.get(h);b?f.add(h):e.delete(h);return k.xClose(h)};Gc=function(h,k,n,l,m){return e.get(h).xRead(h,x.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))}; +Lc=function(h,k,n,l,m){return e.get(h).xWrite(h,x.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Jc=function(h,k,n){return e.get(h).xTruncate(h,4294967296*n+k+(0>k?2**32:0))};Ic=function(h,k){return e.get(h).xSync(h,k)};Dc=function(h,k){const n=e.get(h);k=a("BigInt64",k);return n.xFileSize(h,k)};Ec=function(h,k){return e.get(h).xLock(h,k)};Kc=function(h,k){return e.get(h).xUnlock(h,k)};yc=function(h,k){const n=e.get(h);k=a("Int32",k);return n.xCheckReservedLock(h,k)};Cc=function(h,k,n){const l=e.get(h); +n=new DataView(x.buffer,n);return l.xFileControl(h,k,n)};Hc=function(h){return e.get(h).xSectorSize(h)};Bc=function(h){return e.get(h).xDeviceCharacteristics(h)};Fc=function(h,k,n,l,m){h=c.get(h);e.set(n,h);if(b){f.delete(n);for(var q of f)e.delete(q)}q=null;if(l&64){q=1;const p=[];for(;q;){const t=x[k++];if(t)p.push(t);else switch(x[k]||(q=null),q){case 1:p.push(63);q=2;break;case 2:p.push(61);q=3;break;case 3:p.push(38),q=2}}q=(new TextDecoder).decode(new Uint8Array(p))}else k&&(q=k?K(x,k):""); +m=a("Int32",m);return h.xOpen(q,n,l,m)};Ac=function(h,k,n){return c.get(h).xDelete(k?K(x,k):"",n)};xc=function(h,k,n,l){h=c.get(h);l=a("Int32",l);return h.xAccess(k?K(x,k):"",n,l)}})(); var qd={a:(a,b,c,e)=>{u(`Assertion failed: ${a?K(x,a):""}, at: `+[b?b?K(x,b):"":"unknown filename",c,e?e?K(x,e):"":"unknown function"])},N:function(a,b){try{return a=a?K(x,a):"",Fb(a,b),0}catch(c){if("undefined"==typeof U||"ErrnoError"!==c.name)throw c;return-c.zf}},Q:function(a,b,c){try{b=b?K(x,b):"";b=Ob(a,b);if(c&-8)return-28;var e=R(b,{Jf:!0}).node;if(!e)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&qb(e,a)?-2:0}catch(f){if("undefined"==typeof U||"ErrnoError"!==f.name)throw f; return-f.zf}},O:function(a,b){try{var c=S(a);Fb(c.node,b);return 0}catch(e){if("undefined"==typeof U||"ErrnoError"!==e.name)throw e;return-e.zf}},M:function(a){try{var b=S(a).node;var c="string"==typeof b?R(b,{Jf:!0}).node:b;if(!c.wf.Bf)throw new N(63);c.wf.Bf(c,{timestamp:Date.now()});return 0}catch(e){if("undefined"==typeof U||"ErrnoError"!==e.name)throw e;return-e.zf}},b:function(a,b,c){Qb=c;try{var e=S(a);switch(b){case 0:var f=Rb();if(0>f)return-28;for(;jb[f];)f++;return wb(e,f).Hf;case 1:case 2:return 0; case 3:return e.flags;case 4:return f=Rb(),e.flags|=f,0;case 5:return f=Rb(),z[f+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return A[pd()>>2]=28,-1;default:return-28}}catch(h){if("undefined"==typeof U||"ErrnoError"!==h.name)throw h;return-h.zf}},L:function(a,b){try{var c=S(a);return Pb(Db,c.path,b)}catch(e){if("undefined"==typeof U||"ErrnoError"!==e.name)throw e;return-e.zf}},n:function(a,b,c){b=Sb(b,c);try{if(isNaN(b))return 61;var e=S(a);if(0===(e.flags&2097155))throw new N(28); @@ -97,39 +97,38 @@ d._sqlite3_hard_heap_limit64=(a,b)=>(d._sqlite3_hard_heap_limit64=V.Ea)(a,b);d._ d._sqlite3_str_append=(a,b,c)=>(d._sqlite3_str_append=V.Ma)(a,b,c);d._sqlite3_str_appendchar=(a,b,c)=>(d._sqlite3_str_appendchar=V.Na)(a,b,c);d._sqlite3_str_appendall=(a,b)=>(d._sqlite3_str_appendall=V.Oa)(a,b);d._sqlite3_str_appendf=(a,b,c)=>(d._sqlite3_str_appendf=V.Pa)(a,b,c);d._sqlite3_str_finish=a=>(d._sqlite3_str_finish=V.Qa)(a);d._sqlite3_str_errcode=a=>(d._sqlite3_str_errcode=V.Ra)(a);d._sqlite3_str_length=a=>(d._sqlite3_str_length=V.Sa)(a);d._sqlite3_str_value=a=>(d._sqlite3_str_value=V.Ta)(a); d._sqlite3_str_reset=a=>(d._sqlite3_str_reset=V.Ua)(a);d._sqlite3_str_new=a=>(d._sqlite3_str_new=V.Va)(a);d._sqlite3_vmprintf=(a,b)=>(d._sqlite3_vmprintf=V.Wa)(a,b);d._sqlite3_mprintf=(a,b)=>(d._sqlite3_mprintf=V.Xa)(a,b);d._sqlite3_vsnprintf=(a,b,c,e)=>(d._sqlite3_vsnprintf=V.Ya)(a,b,c,e);d._sqlite3_snprintf=(a,b,c,e)=>(d._sqlite3_snprintf=V.Za)(a,b,c,e);d._sqlite3_log=(a,b,c)=>(d._sqlite3_log=V._a)(a,b,c);d._sqlite3_randomness=(a,b)=>(d._sqlite3_randomness=V.$a)(a,b); d._sqlite3_stricmp=(a,b)=>(d._sqlite3_stricmp=V.ab)(a,b);d._sqlite3_strnicmp=(a,b,c)=>(d._sqlite3_strnicmp=V.bb)(a,b,c);d._sqlite3_os_init=()=>(d._sqlite3_os_init=V.cb)();d._sqlite3_os_end=()=>(d._sqlite3_os_end=V.db)();d._sqlite3_serialize=(a,b,c,e)=>(d._sqlite3_serialize=V.eb)(a,b,c,e);d._sqlite3_prepare_v2=(a,b,c,e,f)=>(d._sqlite3_prepare_v2=V.fb)(a,b,c,e,f);d._sqlite3_step=a=>(d._sqlite3_step=V.gb)(a);d._sqlite3_column_int64=(a,b)=>(d._sqlite3_column_int64=V.hb)(a,b); -d._sqlite3_column_int=(a,b)=>(d._sqlite3_column_int=V.ib)(a,b);d._sqlite3_finalize=a=>(d._sqlite3_finalize=V.jb)(a);d._sqlite3_deserialize=(a,b,c,e,f,h,k,n)=>(d._sqlite3_deserialize=V.kb)(a,b,c,e,f,h,k,n);d._sqlite3_database_file_object=a=>(d._sqlite3_database_file_object=V.lb)(a);d._sqlite3_backup_init=(a,b,c,e)=>(d._sqlite3_backup_init=V.mb)(a,b,c,e);d._sqlite3_backup_step=(a,b)=>(d._sqlite3_backup_step=V.nb)(a,b);d._sqlite3_backup_finish=a=>(d._sqlite3_backup_finish=V.ob)(a); -d._sqlite3_backup_remaining=a=>(d._sqlite3_backup_remaining=V.pb)(a);d._sqlite3_backup_pagecount=a=>(d._sqlite3_backup_pagecount=V.qb)(a);d._sqlite3_reset=a=>(d._sqlite3_reset=V.rb)(a);d._sqlite3_clear_bindings=a=>(d._sqlite3_clear_bindings=V.sb)(a);d._sqlite3_value_blob=a=>(d._sqlite3_value_blob=V.tb)(a);d._sqlite3_value_text=a=>(d._sqlite3_value_text=V.ub)(a);d._sqlite3_value_bytes=a=>(d._sqlite3_value_bytes=V.vb)(a);d._sqlite3_value_bytes16=a=>(d._sqlite3_value_bytes16=V.wb)(a); -d._sqlite3_value_double=a=>(d._sqlite3_value_double=V.xb)(a);d._sqlite3_value_int=a=>(d._sqlite3_value_int=V.yb)(a);d._sqlite3_value_int64=a=>(d._sqlite3_value_int64=V.zb)(a);d._sqlite3_value_subtype=a=>(d._sqlite3_value_subtype=V.Ab)(a);d._sqlite3_value_pointer=(a,b)=>(d._sqlite3_value_pointer=V.Bb)(a,b);d._sqlite3_value_text16=a=>(d._sqlite3_value_text16=V.Cb)(a);d._sqlite3_value_text16be=a=>(d._sqlite3_value_text16be=V.Db)(a);d._sqlite3_value_text16le=a=>(d._sqlite3_value_text16le=V.Eb)(a); -d._sqlite3_value_type=a=>(d._sqlite3_value_type=V.Fb)(a);d._sqlite3_value_encoding=a=>(d._sqlite3_value_encoding=V.Gb)(a);d._sqlite3_value_nochange=a=>(d._sqlite3_value_nochange=V.Hb)(a);d._sqlite3_value_frombind=a=>(d._sqlite3_value_frombind=V.Ib)(a);d._sqlite3_value_dup=a=>(d._sqlite3_value_dup=V.Jb)(a);d._sqlite3_value_free=a=>(d._sqlite3_value_free=V.Kb)(a);d._sqlite3_result_blob=(a,b,c,e)=>(d._sqlite3_result_blob=V.Lb)(a,b,c,e); -d._sqlite3_result_blob64=(a,b,c,e,f)=>(d._sqlite3_result_blob64=V.Mb)(a,b,c,e,f);d._sqlite3_result_double=(a,b)=>(d._sqlite3_result_double=V.Nb)(a,b);d._sqlite3_result_error=(a,b,c)=>(d._sqlite3_result_error=V.Ob)(a,b,c);d._sqlite3_result_error16=(a,b,c)=>(d._sqlite3_result_error16=V.Pb)(a,b,c);d._sqlite3_result_int=(a,b)=>(d._sqlite3_result_int=V.Qb)(a,b);d._sqlite3_result_int64=(a,b,c)=>(d._sqlite3_result_int64=V.Rb)(a,b,c);d._sqlite3_result_null=a=>(d._sqlite3_result_null=V.Sb)(a); -d._sqlite3_result_pointer=(a,b,c,e)=>(d._sqlite3_result_pointer=V.Tb)(a,b,c,e);d._sqlite3_result_subtype=(a,b)=>(d._sqlite3_result_subtype=V.Ub)(a,b);d._sqlite3_result_text=(a,b,c,e)=>(d._sqlite3_result_text=V.Vb)(a,b,c,e);d._sqlite3_result_text64=(a,b,c,e,f,h)=>(d._sqlite3_result_text64=V.Wb)(a,b,c,e,f,h);d._sqlite3_result_text16=(a,b,c,e)=>(d._sqlite3_result_text16=V.Xb)(a,b,c,e);d._sqlite3_result_text16be=(a,b,c,e)=>(d._sqlite3_result_text16be=V.Yb)(a,b,c,e); -d._sqlite3_result_text16le=(a,b,c,e)=>(d._sqlite3_result_text16le=V.Zb)(a,b,c,e);d._sqlite3_result_value=(a,b)=>(d._sqlite3_result_value=V._b)(a,b);d._sqlite3_result_error_toobig=a=>(d._sqlite3_result_error_toobig=V.$b)(a);d._sqlite3_result_zeroblob=(a,b)=>(d._sqlite3_result_zeroblob=V.ac)(a,b);d._sqlite3_result_zeroblob64=(a,b,c)=>(d._sqlite3_result_zeroblob64=V.bc)(a,b,c);d._sqlite3_result_error_code=(a,b)=>(d._sqlite3_result_error_code=V.cc)(a,b); -d._sqlite3_result_error_nomem=a=>(d._sqlite3_result_error_nomem=V.dc)(a);d._sqlite3_user_data=a=>(d._sqlite3_user_data=V.ec)(a);d._sqlite3_context_db_handle=a=>(d._sqlite3_context_db_handle=V.fc)(a);d._sqlite3_vtab_nochange=a=>(d._sqlite3_vtab_nochange=V.gc)(a);d._sqlite3_vtab_in_first=(a,b)=>(d._sqlite3_vtab_in_first=V.hc)(a,b);d._sqlite3_vtab_in_next=(a,b)=>(d._sqlite3_vtab_in_next=V.ic)(a,b);d._sqlite3_aggregate_context=(a,b)=>(d._sqlite3_aggregate_context=V.jc)(a,b); -d._sqlite3_get_auxdata=(a,b)=>(d._sqlite3_get_auxdata=V.kc)(a,b);d._sqlite3_set_auxdata=(a,b,c,e)=>(d._sqlite3_set_auxdata=V.lc)(a,b,c,e);d._sqlite3_column_count=a=>(d._sqlite3_column_count=V.mc)(a);d._sqlite3_data_count=a=>(d._sqlite3_data_count=V.nc)(a);d._sqlite3_column_blob=(a,b)=>(d._sqlite3_column_blob=V.oc)(a,b);d._sqlite3_column_bytes=(a,b)=>(d._sqlite3_column_bytes=V.pc)(a,b);d._sqlite3_column_bytes16=(a,b)=>(d._sqlite3_column_bytes16=V.qc)(a,b); -d._sqlite3_column_double=(a,b)=>(d._sqlite3_column_double=V.rc)(a,b);d._sqlite3_column_text=(a,b)=>(d._sqlite3_column_text=V.sc)(a,b);d._sqlite3_column_value=(a,b)=>(d._sqlite3_column_value=V.tc)(a,b);d._sqlite3_column_text16=(a,b)=>(d._sqlite3_column_text16=V.uc)(a,b);d._sqlite3_column_type=(a,b)=>(d._sqlite3_column_type=V.vc)(a,b);d._sqlite3_column_name=(a,b)=>(d._sqlite3_column_name=V.wc)(a,b);d._sqlite3_column_name16=(a,b)=>(d._sqlite3_column_name16=V.xc)(a,b); -d._sqlite3_bind_blob=(a,b,c,e,f)=>(d._sqlite3_bind_blob=V.yc)(a,b,c,e,f);d._sqlite3_bind_blob64=(a,b,c,e,f,h)=>(d._sqlite3_bind_blob64=V.zc)(a,b,c,e,f,h);d._sqlite3_bind_double=(a,b,c)=>(d._sqlite3_bind_double=V.Ac)(a,b,c);d._sqlite3_bind_int=(a,b,c)=>(d._sqlite3_bind_int=V.Bc)(a,b,c);d._sqlite3_bind_int64=(a,b,c,e)=>(d._sqlite3_bind_int64=V.Cc)(a,b,c,e);d._sqlite3_bind_null=(a,b)=>(d._sqlite3_bind_null=V.Dc)(a,b);d._sqlite3_bind_pointer=(a,b,c,e,f)=>(d._sqlite3_bind_pointer=V.Ec)(a,b,c,e,f); -d._sqlite3_bind_text=(a,b,c,e,f)=>(d._sqlite3_bind_text=V.Fc)(a,b,c,e,f);d._sqlite3_bind_text64=(a,b,c,e,f,h,k)=>(d._sqlite3_bind_text64=V.Gc)(a,b,c,e,f,h,k);d._sqlite3_bind_text16=(a,b,c,e,f)=>(d._sqlite3_bind_text16=V.Hc)(a,b,c,e,f);d._sqlite3_bind_value=(a,b,c)=>(d._sqlite3_bind_value=V.Ic)(a,b,c);d._sqlite3_bind_zeroblob=(a,b,c)=>(d._sqlite3_bind_zeroblob=V.Jc)(a,b,c);d._sqlite3_bind_zeroblob64=(a,b,c,e)=>(d._sqlite3_bind_zeroblob64=V.Kc)(a,b,c,e); -d._sqlite3_bind_parameter_count=a=>(d._sqlite3_bind_parameter_count=V.Lc)(a);d._sqlite3_bind_parameter_name=(a,b)=>(d._sqlite3_bind_parameter_name=V.Mc)(a,b);d._sqlite3_bind_parameter_index=(a,b)=>(d._sqlite3_bind_parameter_index=V.Nc)(a,b);d._sqlite3_db_handle=a=>(d._sqlite3_db_handle=V.Oc)(a);d._sqlite3_stmt_readonly=a=>(d._sqlite3_stmt_readonly=V.Pc)(a);d._sqlite3_stmt_isexplain=a=>(d._sqlite3_stmt_isexplain=V.Qc)(a);d._sqlite3_stmt_explain=(a,b)=>(d._sqlite3_stmt_explain=V.Rc)(a,b); -d._sqlite3_stmt_busy=a=>(d._sqlite3_stmt_busy=V.Sc)(a);d._sqlite3_next_stmt=(a,b)=>(d._sqlite3_next_stmt=V.Tc)(a,b);d._sqlite3_stmt_status=(a,b,c)=>(d._sqlite3_stmt_status=V.Uc)(a,b,c);d._sqlite3_sql=a=>(d._sqlite3_sql=V.Vc)(a);d._sqlite3_expanded_sql=a=>(d._sqlite3_expanded_sql=V.Wc)(a);d._sqlite3_value_numeric_type=a=>(d._sqlite3_value_numeric_type=V.Xc)(a);d._sqlite3_blob_open=(a,b,c,e,f,h,k,n)=>(d._sqlite3_blob_open=V.Yc)(a,b,c,e,f,h,k,n);d._sqlite3_blob_close=a=>(d._sqlite3_blob_close=V.Zc)(a); -d._sqlite3_blob_read=(a,b,c,e)=>(d._sqlite3_blob_read=V._c)(a,b,c,e);d._sqlite3_blob_write=(a,b,c,e)=>(d._sqlite3_blob_write=V.$c)(a,b,c,e);d._sqlite3_blob_bytes=a=>(d._sqlite3_blob_bytes=V.ad)(a);d._sqlite3_blob_reopen=(a,b,c)=>(d._sqlite3_blob_reopen=V.bd)(a,b,c);d._sqlite3_set_authorizer=(a,b,c)=>(d._sqlite3_set_authorizer=V.cd)(a,b,c);d._sqlite3_strglob=(a,b)=>(d._sqlite3_strglob=V.dd)(a,b);d._sqlite3_strlike=(a,b,c)=>(d._sqlite3_strlike=V.ed)(a,b,c); -d._sqlite3_exec=(a,b,c,e,f)=>(d._sqlite3_exec=V.fd)(a,b,c,e,f);d._sqlite3_errmsg=a=>(d._sqlite3_errmsg=V.gd)(a);d._sqlite3_auto_extension=a=>(d._sqlite3_auto_extension=V.hd)(a);d._sqlite3_cancel_auto_extension=a=>(d._sqlite3_cancel_auto_extension=V.id)(a);d._sqlite3_reset_auto_extension=()=>(d._sqlite3_reset_auto_extension=V.jd)();d._sqlite3_prepare=(a,b,c,e,f)=>(d._sqlite3_prepare=V.kd)(a,b,c,e,f);d._sqlite3_prepare_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare_v3=V.ld)(a,b,c,e,f,h); -d._sqlite3_prepare16=(a,b,c,e,f)=>(d._sqlite3_prepare16=V.md)(a,b,c,e,f);d._sqlite3_prepare16_v2=(a,b,c,e,f)=>(d._sqlite3_prepare16_v2=V.nd)(a,b,c,e,f);d._sqlite3_prepare16_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare16_v3=V.od)(a,b,c,e,f,h);d._sqlite3_get_table=(a,b,c,e,f,h)=>(d._sqlite3_get_table=V.pd)(a,b,c,e,f,h);d._sqlite3_free_table=a=>(d._sqlite3_free_table=V.qd)(a);d._sqlite3_create_module=(a,b,c,e)=>(d._sqlite3_create_module=V.rd)(a,b,c,e); -d._sqlite3_create_module_v2=(a,b,c,e,f)=>(d._sqlite3_create_module_v2=V.sd)(a,b,c,e,f);d._sqlite3_drop_modules=(a,b)=>(d._sqlite3_drop_modules=V.td)(a,b);d._sqlite3_declare_vtab=(a,b)=>(d._sqlite3_declare_vtab=V.ud)(a,b);d._sqlite3_vtab_on_conflict=a=>(d._sqlite3_vtab_on_conflict=V.vd)(a);d._sqlite3_vtab_config=(a,b,c)=>(d._sqlite3_vtab_config=V.wd)(a,b,c);d._sqlite3_vtab_collation=(a,b)=>(d._sqlite3_vtab_collation=V.xd)(a,b);d._sqlite3_vtab_in=(a,b,c)=>(d._sqlite3_vtab_in=V.yd)(a,b,c); -d._sqlite3_vtab_rhs_value=(a,b,c)=>(d._sqlite3_vtab_rhs_value=V.zd)(a,b,c);d._sqlite3_vtab_distinct=a=>(d._sqlite3_vtab_distinct=V.Ad)(a);d._sqlite3_keyword_name=(a,b,c)=>(d._sqlite3_keyword_name=V.Bd)(a,b,c);d._sqlite3_keyword_count=()=>(d._sqlite3_keyword_count=V.Cd)();d._sqlite3_keyword_check=(a,b)=>(d._sqlite3_keyword_check=V.Dd)(a,b);d._sqlite3_complete=a=>(d._sqlite3_complete=V.Ed)(a);d._sqlite3_complete16=a=>(d._sqlite3_complete16=V.Fd)(a);d._sqlite3_libversion=()=>(d._sqlite3_libversion=V.Gd)(); -d._sqlite3_libversion_number=()=>(d._sqlite3_libversion_number=V.Hd)();d._sqlite3_threadsafe=()=>(d._sqlite3_threadsafe=V.Id)();d._sqlite3_initialize=()=>(d._sqlite3_initialize=V.Jd)();d._sqlite3_shutdown=()=>(d._sqlite3_shutdown=V.Kd)();d._sqlite3_config=(a,b)=>(d._sqlite3_config=V.Ld)(a,b);d._sqlite3_db_mutex=a=>(d._sqlite3_db_mutex=V.Md)(a);d._sqlite3_db_release_memory=a=>(d._sqlite3_db_release_memory=V.Nd)(a);d._sqlite3_db_cacheflush=a=>(d._sqlite3_db_cacheflush=V.Od)(a); -d._sqlite3_db_config=(a,b,c)=>(d._sqlite3_db_config=V.Pd)(a,b,c);d._sqlite3_last_insert_rowid=a=>(d._sqlite3_last_insert_rowid=V.Qd)(a);d._sqlite3_set_last_insert_rowid=(a,b,c)=>(d._sqlite3_set_last_insert_rowid=V.Rd)(a,b,c);d._sqlite3_changes64=a=>(d._sqlite3_changes64=V.Sd)(a);d._sqlite3_changes=a=>(d._sqlite3_changes=V.Td)(a);d._sqlite3_total_changes64=a=>(d._sqlite3_total_changes64=V.Ud)(a);d._sqlite3_total_changes=a=>(d._sqlite3_total_changes=V.Vd)(a); -d._sqlite3_txn_state=(a,b)=>(d._sqlite3_txn_state=V.Wd)(a,b);d._sqlite3_close=a=>(d._sqlite3_close=V.Xd)(a);d._sqlite3_close_v2=a=>(d._sqlite3_close_v2=V.Yd)(a);d._sqlite3_busy_handler=(a,b,c)=>(d._sqlite3_busy_handler=V.Zd)(a,b,c);d._sqlite3_progress_handler=(a,b,c,e)=>(d._sqlite3_progress_handler=V._d)(a,b,c,e);d._sqlite3_busy_timeout=(a,b)=>(d._sqlite3_busy_timeout=V.$d)(a,b);d._sqlite3_interrupt=a=>(d._sqlite3_interrupt=V.ae)(a);d._sqlite3_is_interrupted=a=>(d._sqlite3_is_interrupted=V.be)(a); -d._sqlite3_create_function=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function=V.ce)(a,b,c,e,f,h,k,n);d._sqlite3_create_function_v2=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_create_function_v2=V.de)(a,b,c,e,f,h,k,n,l);d._sqlite3_create_window_function=(a,b,c,e,f,h,k,n,l,m)=>(d._sqlite3_create_window_function=V.ee)(a,b,c,e,f,h,k,n,l,m);d._sqlite3_create_function16=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function16=V.fe)(a,b,c,e,f,h,k,n); -d._sqlite3_overload_function=(a,b,c)=>(d._sqlite3_overload_function=V.ge)(a,b,c);d._sqlite3_trace_v2=(a,b,c,e)=>(d._sqlite3_trace_v2=V.he)(a,b,c,e);d._sqlite3_commit_hook=(a,b,c)=>(d._sqlite3_commit_hook=V.ie)(a,b,c);d._sqlite3_update_hook=(a,b,c)=>(d._sqlite3_update_hook=V.je)(a,b,c);d._sqlite3_rollback_hook=(a,b,c)=>(d._sqlite3_rollback_hook=V.ke)(a,b,c);d._sqlite3_autovacuum_pages=(a,b,c,e)=>(d._sqlite3_autovacuum_pages=V.le)(a,b,c,e); -d._sqlite3_wal_autocheckpoint=(a,b)=>(d._sqlite3_wal_autocheckpoint=V.me)(a,b);d._sqlite3_wal_hook=(a,b,c)=>(d._sqlite3_wal_hook=V.ne)(a,b,c);d._sqlite3_wal_checkpoint_v2=(a,b,c,e,f)=>(d._sqlite3_wal_checkpoint_v2=V.oe)(a,b,c,e,f);d._sqlite3_wal_checkpoint=(a,b)=>(d._sqlite3_wal_checkpoint=V.pe)(a,b);d._sqlite3_error_offset=a=>(d._sqlite3_error_offset=V.qe)(a);d._sqlite3_errmsg16=a=>(d._sqlite3_errmsg16=V.re)(a);d._sqlite3_errcode=a=>(d._sqlite3_errcode=V.se)(a); -d._sqlite3_extended_errcode=a=>(d._sqlite3_extended_errcode=V.te)(a);d._sqlite3_system_errno=a=>(d._sqlite3_system_errno=V.ue)(a);d._sqlite3_errstr=a=>(d._sqlite3_errstr=V.ve)(a);d._sqlite3_limit=(a,b,c)=>(d._sqlite3_limit=V.we)(a,b,c);d._sqlite3_open=(a,b)=>(d._sqlite3_open=V.xe)(a,b);d._sqlite3_open_v2=(a,b,c,e)=>(d._sqlite3_open_v2=V.ye)(a,b,c,e);d._sqlite3_open16=(a,b)=>(d._sqlite3_open16=V.ze)(a,b);d._sqlite3_create_collation=(a,b,c,e,f)=>(d._sqlite3_create_collation=V.Ae)(a,b,c,e,f); -d._sqlite3_create_collation_v2=(a,b,c,e,f,h)=>(d._sqlite3_create_collation_v2=V.Be)(a,b,c,e,f,h);d._sqlite3_create_collation16=(a,b,c,e,f)=>(d._sqlite3_create_collation16=V.Ce)(a,b,c,e,f);d._sqlite3_collation_needed=(a,b,c)=>(d._sqlite3_collation_needed=V.De)(a,b,c);d._sqlite3_collation_needed16=(a,b,c)=>(d._sqlite3_collation_needed16=V.Ee)(a,b,c);d._sqlite3_get_clientdata=(a,b)=>(d._sqlite3_get_clientdata=V.Fe)(a,b);d._sqlite3_set_clientdata=(a,b,c,e)=>(d._sqlite3_set_clientdata=V.Ge)(a,b,c,e); -d._sqlite3_get_autocommit=a=>(d._sqlite3_get_autocommit=V.He)(a);d._sqlite3_table_column_metadata=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_table_column_metadata=V.Ie)(a,b,c,e,f,h,k,n,l);d._sqlite3_sleep=a=>(d._sqlite3_sleep=V.Je)(a);d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Ke)(a,b);d._sqlite3_file_control=(a,b,c,e)=>(d._sqlite3_file_control=V.Le)(a,b,c,e);d._sqlite3_test_control=(a,b)=>(d._sqlite3_test_control=V.Me)(a,b); -d._sqlite3_create_filename=(a,b,c,e,f)=>(d._sqlite3_create_filename=V.Ne)(a,b,c,e,f);d._sqlite3_free_filename=a=>(d._sqlite3_free_filename=V.Oe)(a);d._sqlite3_uri_parameter=(a,b)=>(d._sqlite3_uri_parameter=V.Pe)(a,b);d._sqlite3_uri_key=(a,b)=>(d._sqlite3_uri_key=V.Qe)(a,b);d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=V.Re)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=V.Se)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=V.Te)(a); -d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=V.Ue)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=V.Ve)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=V.We)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=V.Xe)(a,b);d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=V.Ye)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=V.Ze)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=V._e)(a); -d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=V.$e)();var pd=()=>(pd=V.af)(),Vb=d._malloc=a=>(Vb=d._malloc=V.bf)(a),ed=d._free=a=>(ed=d._free=V.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=V.df)(a);d._set_authorizer=a=>(d._set_authorizer=V.ef)(a);d._create_function=(a,b,c,e,f,h)=>(d._create_function=V.ff)(a,b,c,e,f,h);d._create_module=(a,b,c,e)=>(d._create_module=V.gf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=V.hf)(a,b); -d._register_vfs=(a,b,c,e)=>(d._register_vfs=V.jf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=V.kf)();var rd=d._main=(a,b)=>(rd=d._main=V.lf)(a,b),fb=(a,b)=>(fb=V.nf)(a,b),sd=()=>(sd=V.of)(),nd=()=>(nd=V.pf)(),ld=a=>(ld=V.qf)(a),md=a=>(md=V.rf)(a),cd=a=>(cd=V.sf)(a),Sc=()=>(Sc=V.tf)(),bd=a=>(bd=V.uf)(a),dd=()=>(dd=V.vf)();d._sqlite3_version=3232;d.getTempRet0=sd;d.ccall=Z; -d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:function(){return Z(a,b,c,arguments,e)}}; +d._sqlite3_reset=a=>(d._sqlite3_reset=V.ib)(a);d._sqlite3_exec=(a,b,c,e,f)=>(d._sqlite3_exec=V.jb)(a,b,c,e,f);d._sqlite3_column_int=(a,b)=>(d._sqlite3_column_int=V.kb)(a,b);d._sqlite3_finalize=a=>(d._sqlite3_finalize=V.lb)(a);d._sqlite3_deserialize=(a,b,c,e,f,h,k,n)=>(d._sqlite3_deserialize=V.mb)(a,b,c,e,f,h,k,n);d._sqlite3_database_file_object=a=>(d._sqlite3_database_file_object=V.nb)(a);d._sqlite3_backup_init=(a,b,c,e)=>(d._sqlite3_backup_init=V.ob)(a,b,c,e); +d._sqlite3_backup_step=(a,b)=>(d._sqlite3_backup_step=V.pb)(a,b);d._sqlite3_backup_finish=a=>(d._sqlite3_backup_finish=V.qb)(a);d._sqlite3_backup_remaining=a=>(d._sqlite3_backup_remaining=V.rb)(a);d._sqlite3_backup_pagecount=a=>(d._sqlite3_backup_pagecount=V.sb)(a);d._sqlite3_clear_bindings=a=>(d._sqlite3_clear_bindings=V.tb)(a);d._sqlite3_value_blob=a=>(d._sqlite3_value_blob=V.ub)(a);d._sqlite3_value_text=a=>(d._sqlite3_value_text=V.vb)(a);d._sqlite3_value_bytes=a=>(d._sqlite3_value_bytes=V.wb)(a); +d._sqlite3_value_bytes16=a=>(d._sqlite3_value_bytes16=V.xb)(a);d._sqlite3_value_double=a=>(d._sqlite3_value_double=V.yb)(a);d._sqlite3_value_int=a=>(d._sqlite3_value_int=V.zb)(a);d._sqlite3_value_int64=a=>(d._sqlite3_value_int64=V.Ab)(a);d._sqlite3_value_subtype=a=>(d._sqlite3_value_subtype=V.Bb)(a);d._sqlite3_value_pointer=(a,b)=>(d._sqlite3_value_pointer=V.Cb)(a,b);d._sqlite3_value_text16=a=>(d._sqlite3_value_text16=V.Db)(a);d._sqlite3_value_text16be=a=>(d._sqlite3_value_text16be=V.Eb)(a); +d._sqlite3_value_text16le=a=>(d._sqlite3_value_text16le=V.Fb)(a);d._sqlite3_value_type=a=>(d._sqlite3_value_type=V.Gb)(a);d._sqlite3_value_encoding=a=>(d._sqlite3_value_encoding=V.Hb)(a);d._sqlite3_value_nochange=a=>(d._sqlite3_value_nochange=V.Ib)(a);d._sqlite3_value_frombind=a=>(d._sqlite3_value_frombind=V.Jb)(a);d._sqlite3_value_dup=a=>(d._sqlite3_value_dup=V.Kb)(a);d._sqlite3_value_free=a=>(d._sqlite3_value_free=V.Lb)(a);d._sqlite3_result_blob=(a,b,c,e)=>(d._sqlite3_result_blob=V.Mb)(a,b,c,e); +d._sqlite3_result_blob64=(a,b,c,e,f)=>(d._sqlite3_result_blob64=V.Nb)(a,b,c,e,f);d._sqlite3_result_double=(a,b)=>(d._sqlite3_result_double=V.Ob)(a,b);d._sqlite3_result_error=(a,b,c)=>(d._sqlite3_result_error=V.Pb)(a,b,c);d._sqlite3_result_error16=(a,b,c)=>(d._sqlite3_result_error16=V.Qb)(a,b,c);d._sqlite3_result_int=(a,b)=>(d._sqlite3_result_int=V.Rb)(a,b);d._sqlite3_result_int64=(a,b,c)=>(d._sqlite3_result_int64=V.Sb)(a,b,c);d._sqlite3_result_null=a=>(d._sqlite3_result_null=V.Tb)(a); +d._sqlite3_result_pointer=(a,b,c,e)=>(d._sqlite3_result_pointer=V.Ub)(a,b,c,e);d._sqlite3_result_subtype=(a,b)=>(d._sqlite3_result_subtype=V.Vb)(a,b);d._sqlite3_result_text=(a,b,c,e)=>(d._sqlite3_result_text=V.Wb)(a,b,c,e);d._sqlite3_result_text64=(a,b,c,e,f,h)=>(d._sqlite3_result_text64=V.Xb)(a,b,c,e,f,h);d._sqlite3_result_text16=(a,b,c,e)=>(d._sqlite3_result_text16=V.Yb)(a,b,c,e);d._sqlite3_result_text16be=(a,b,c,e)=>(d._sqlite3_result_text16be=V.Zb)(a,b,c,e); +d._sqlite3_result_text16le=(a,b,c,e)=>(d._sqlite3_result_text16le=V._b)(a,b,c,e);d._sqlite3_result_value=(a,b)=>(d._sqlite3_result_value=V.$b)(a,b);d._sqlite3_result_error_toobig=a=>(d._sqlite3_result_error_toobig=V.ac)(a);d._sqlite3_result_zeroblob=(a,b)=>(d._sqlite3_result_zeroblob=V.bc)(a,b);d._sqlite3_result_zeroblob64=(a,b,c)=>(d._sqlite3_result_zeroblob64=V.cc)(a,b,c);d._sqlite3_result_error_code=(a,b)=>(d._sqlite3_result_error_code=V.dc)(a,b); +d._sqlite3_result_error_nomem=a=>(d._sqlite3_result_error_nomem=V.ec)(a);d._sqlite3_user_data=a=>(d._sqlite3_user_data=V.fc)(a);d._sqlite3_context_db_handle=a=>(d._sqlite3_context_db_handle=V.gc)(a);d._sqlite3_vtab_nochange=a=>(d._sqlite3_vtab_nochange=V.hc)(a);d._sqlite3_vtab_in_first=(a,b)=>(d._sqlite3_vtab_in_first=V.ic)(a,b);d._sqlite3_vtab_in_next=(a,b)=>(d._sqlite3_vtab_in_next=V.jc)(a,b);d._sqlite3_aggregate_context=(a,b)=>(d._sqlite3_aggregate_context=V.kc)(a,b); +d._sqlite3_get_auxdata=(a,b)=>(d._sqlite3_get_auxdata=V.lc)(a,b);d._sqlite3_set_auxdata=(a,b,c,e)=>(d._sqlite3_set_auxdata=V.mc)(a,b,c,e);d._sqlite3_column_count=a=>(d._sqlite3_column_count=V.nc)(a);d._sqlite3_data_count=a=>(d._sqlite3_data_count=V.oc)(a);d._sqlite3_column_blob=(a,b)=>(d._sqlite3_column_blob=V.pc)(a,b);d._sqlite3_column_bytes=(a,b)=>(d._sqlite3_column_bytes=V.qc)(a,b);d._sqlite3_column_bytes16=(a,b)=>(d._sqlite3_column_bytes16=V.rc)(a,b); +d._sqlite3_column_double=(a,b)=>(d._sqlite3_column_double=V.sc)(a,b);d._sqlite3_column_text=(a,b)=>(d._sqlite3_column_text=V.tc)(a,b);d._sqlite3_column_value=(a,b)=>(d._sqlite3_column_value=V.uc)(a,b);d._sqlite3_column_text16=(a,b)=>(d._sqlite3_column_text16=V.vc)(a,b);d._sqlite3_column_type=(a,b)=>(d._sqlite3_column_type=V.wc)(a,b);d._sqlite3_column_name=(a,b)=>(d._sqlite3_column_name=V.xc)(a,b);d._sqlite3_column_name16=(a,b)=>(d._sqlite3_column_name16=V.yc)(a,b); +d._sqlite3_bind_blob=(a,b,c,e,f)=>(d._sqlite3_bind_blob=V.zc)(a,b,c,e,f);d._sqlite3_bind_blob64=(a,b,c,e,f,h)=>(d._sqlite3_bind_blob64=V.Ac)(a,b,c,e,f,h);d._sqlite3_bind_double=(a,b,c)=>(d._sqlite3_bind_double=V.Bc)(a,b,c);d._sqlite3_bind_int=(a,b,c)=>(d._sqlite3_bind_int=V.Cc)(a,b,c);d._sqlite3_bind_int64=(a,b,c,e)=>(d._sqlite3_bind_int64=V.Dc)(a,b,c,e);d._sqlite3_bind_null=(a,b)=>(d._sqlite3_bind_null=V.Ec)(a,b);d._sqlite3_bind_pointer=(a,b,c,e,f)=>(d._sqlite3_bind_pointer=V.Fc)(a,b,c,e,f); +d._sqlite3_bind_text=(a,b,c,e,f)=>(d._sqlite3_bind_text=V.Gc)(a,b,c,e,f);d._sqlite3_bind_text64=(a,b,c,e,f,h,k)=>(d._sqlite3_bind_text64=V.Hc)(a,b,c,e,f,h,k);d._sqlite3_bind_text16=(a,b,c,e,f)=>(d._sqlite3_bind_text16=V.Ic)(a,b,c,e,f);d._sqlite3_bind_value=(a,b,c)=>(d._sqlite3_bind_value=V.Jc)(a,b,c);d._sqlite3_bind_zeroblob=(a,b,c)=>(d._sqlite3_bind_zeroblob=V.Kc)(a,b,c);d._sqlite3_bind_zeroblob64=(a,b,c,e)=>(d._sqlite3_bind_zeroblob64=V.Lc)(a,b,c,e); +d._sqlite3_bind_parameter_count=a=>(d._sqlite3_bind_parameter_count=V.Mc)(a);d._sqlite3_bind_parameter_name=(a,b)=>(d._sqlite3_bind_parameter_name=V.Nc)(a,b);d._sqlite3_bind_parameter_index=(a,b)=>(d._sqlite3_bind_parameter_index=V.Oc)(a,b);d._sqlite3_db_handle=a=>(d._sqlite3_db_handle=V.Pc)(a);d._sqlite3_stmt_readonly=a=>(d._sqlite3_stmt_readonly=V.Qc)(a);d._sqlite3_stmt_isexplain=a=>(d._sqlite3_stmt_isexplain=V.Rc)(a);d._sqlite3_stmt_explain=(a,b)=>(d._sqlite3_stmt_explain=V.Sc)(a,b); +d._sqlite3_stmt_busy=a=>(d._sqlite3_stmt_busy=V.Tc)(a);d._sqlite3_next_stmt=(a,b)=>(d._sqlite3_next_stmt=V.Uc)(a,b);d._sqlite3_stmt_status=(a,b,c)=>(d._sqlite3_stmt_status=V.Vc)(a,b,c);d._sqlite3_sql=a=>(d._sqlite3_sql=V.Wc)(a);d._sqlite3_expanded_sql=a=>(d._sqlite3_expanded_sql=V.Xc)(a);d._sqlite3_value_numeric_type=a=>(d._sqlite3_value_numeric_type=V.Yc)(a);d._sqlite3_blob_open=(a,b,c,e,f,h,k,n)=>(d._sqlite3_blob_open=V.Zc)(a,b,c,e,f,h,k,n);d._sqlite3_blob_close=a=>(d._sqlite3_blob_close=V._c)(a); +d._sqlite3_blob_read=(a,b,c,e)=>(d._sqlite3_blob_read=V.$c)(a,b,c,e);d._sqlite3_blob_write=(a,b,c,e)=>(d._sqlite3_blob_write=V.ad)(a,b,c,e);d._sqlite3_blob_bytes=a=>(d._sqlite3_blob_bytes=V.bd)(a);d._sqlite3_blob_reopen=(a,b,c)=>(d._sqlite3_blob_reopen=V.cd)(a,b,c);d._sqlite3_set_authorizer=(a,b,c)=>(d._sqlite3_set_authorizer=V.dd)(a,b,c);d._sqlite3_strglob=(a,b)=>(d._sqlite3_strglob=V.ed)(a,b);d._sqlite3_strlike=(a,b,c)=>(d._sqlite3_strlike=V.fd)(a,b,c);d._sqlite3_errmsg=a=>(d._sqlite3_errmsg=V.gd)(a); +d._sqlite3_auto_extension=a=>(d._sqlite3_auto_extension=V.hd)(a);d._sqlite3_cancel_auto_extension=a=>(d._sqlite3_cancel_auto_extension=V.id)(a);d._sqlite3_reset_auto_extension=()=>(d._sqlite3_reset_auto_extension=V.jd)();d._sqlite3_prepare=(a,b,c,e,f)=>(d._sqlite3_prepare=V.kd)(a,b,c,e,f);d._sqlite3_prepare_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare_v3=V.ld)(a,b,c,e,f,h);d._sqlite3_prepare16=(a,b,c,e,f)=>(d._sqlite3_prepare16=V.md)(a,b,c,e,f); +d._sqlite3_prepare16_v2=(a,b,c,e,f)=>(d._sqlite3_prepare16_v2=V.nd)(a,b,c,e,f);d._sqlite3_prepare16_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare16_v3=V.od)(a,b,c,e,f,h);d._sqlite3_get_table=(a,b,c,e,f,h)=>(d._sqlite3_get_table=V.pd)(a,b,c,e,f,h);d._sqlite3_free_table=a=>(d._sqlite3_free_table=V.qd)(a);d._sqlite3_create_module=(a,b,c,e)=>(d._sqlite3_create_module=V.rd)(a,b,c,e);d._sqlite3_create_module_v2=(a,b,c,e,f)=>(d._sqlite3_create_module_v2=V.sd)(a,b,c,e,f); +d._sqlite3_drop_modules=(a,b)=>(d._sqlite3_drop_modules=V.td)(a,b);d._sqlite3_declare_vtab=(a,b)=>(d._sqlite3_declare_vtab=V.ud)(a,b);d._sqlite3_vtab_on_conflict=a=>(d._sqlite3_vtab_on_conflict=V.vd)(a);d._sqlite3_vtab_config=(a,b,c)=>(d._sqlite3_vtab_config=V.wd)(a,b,c);d._sqlite3_vtab_collation=(a,b)=>(d._sqlite3_vtab_collation=V.xd)(a,b);d._sqlite3_vtab_in=(a,b,c)=>(d._sqlite3_vtab_in=V.yd)(a,b,c);d._sqlite3_vtab_rhs_value=(a,b,c)=>(d._sqlite3_vtab_rhs_value=V.zd)(a,b,c); +d._sqlite3_vtab_distinct=a=>(d._sqlite3_vtab_distinct=V.Ad)(a);d._sqlite3_keyword_name=(a,b,c)=>(d._sqlite3_keyword_name=V.Bd)(a,b,c);d._sqlite3_keyword_count=()=>(d._sqlite3_keyword_count=V.Cd)();d._sqlite3_keyword_check=(a,b)=>(d._sqlite3_keyword_check=V.Dd)(a,b);d._sqlite3_complete=a=>(d._sqlite3_complete=V.Ed)(a);d._sqlite3_complete16=a=>(d._sqlite3_complete16=V.Fd)(a);d._sqlite3_libversion=()=>(d._sqlite3_libversion=V.Gd)();d._sqlite3_libversion_number=()=>(d._sqlite3_libversion_number=V.Hd)(); +d._sqlite3_threadsafe=()=>(d._sqlite3_threadsafe=V.Id)();d._sqlite3_initialize=()=>(d._sqlite3_initialize=V.Jd)();d._sqlite3_shutdown=()=>(d._sqlite3_shutdown=V.Kd)();d._sqlite3_config=(a,b)=>(d._sqlite3_config=V.Ld)(a,b);d._sqlite3_db_mutex=a=>(d._sqlite3_db_mutex=V.Md)(a);d._sqlite3_db_release_memory=a=>(d._sqlite3_db_release_memory=V.Nd)(a);d._sqlite3_db_cacheflush=a=>(d._sqlite3_db_cacheflush=V.Od)(a);d._sqlite3_db_config=(a,b,c)=>(d._sqlite3_db_config=V.Pd)(a,b,c); +d._sqlite3_last_insert_rowid=a=>(d._sqlite3_last_insert_rowid=V.Qd)(a);d._sqlite3_set_last_insert_rowid=(a,b,c)=>(d._sqlite3_set_last_insert_rowid=V.Rd)(a,b,c);d._sqlite3_changes64=a=>(d._sqlite3_changes64=V.Sd)(a);d._sqlite3_changes=a=>(d._sqlite3_changes=V.Td)(a);d._sqlite3_total_changes64=a=>(d._sqlite3_total_changes64=V.Ud)(a);d._sqlite3_total_changes=a=>(d._sqlite3_total_changes=V.Vd)(a);d._sqlite3_txn_state=(a,b)=>(d._sqlite3_txn_state=V.Wd)(a,b);d._sqlite3_close=a=>(d._sqlite3_close=V.Xd)(a); +d._sqlite3_close_v2=a=>(d._sqlite3_close_v2=V.Yd)(a);d._sqlite3_busy_handler=(a,b,c)=>(d._sqlite3_busy_handler=V.Zd)(a,b,c);d._sqlite3_progress_handler=(a,b,c,e)=>(d._sqlite3_progress_handler=V._d)(a,b,c,e);d._sqlite3_busy_timeout=(a,b)=>(d._sqlite3_busy_timeout=V.$d)(a,b);d._sqlite3_interrupt=a=>(d._sqlite3_interrupt=V.ae)(a);d._sqlite3_is_interrupted=a=>(d._sqlite3_is_interrupted=V.be)(a);d._sqlite3_create_function=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function=V.ce)(a,b,c,e,f,h,k,n); +d._sqlite3_create_function_v2=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_create_function_v2=V.de)(a,b,c,e,f,h,k,n,l);d._sqlite3_create_window_function=(a,b,c,e,f,h,k,n,l,m)=>(d._sqlite3_create_window_function=V.ee)(a,b,c,e,f,h,k,n,l,m);d._sqlite3_create_function16=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function16=V.fe)(a,b,c,e,f,h,k,n);d._sqlite3_overload_function=(a,b,c)=>(d._sqlite3_overload_function=V.ge)(a,b,c);d._sqlite3_trace_v2=(a,b,c,e)=>(d._sqlite3_trace_v2=V.he)(a,b,c,e); +d._sqlite3_commit_hook=(a,b,c)=>(d._sqlite3_commit_hook=V.ie)(a,b,c);d._sqlite3_update_hook=(a,b,c)=>(d._sqlite3_update_hook=V.je)(a,b,c);d._sqlite3_rollback_hook=(a,b,c)=>(d._sqlite3_rollback_hook=V.ke)(a,b,c);d._sqlite3_autovacuum_pages=(a,b,c,e)=>(d._sqlite3_autovacuum_pages=V.le)(a,b,c,e);d._sqlite3_wal_autocheckpoint=(a,b)=>(d._sqlite3_wal_autocheckpoint=V.me)(a,b);d._sqlite3_wal_hook=(a,b,c)=>(d._sqlite3_wal_hook=V.ne)(a,b,c); +d._sqlite3_wal_checkpoint_v2=(a,b,c,e,f)=>(d._sqlite3_wal_checkpoint_v2=V.oe)(a,b,c,e,f);d._sqlite3_wal_checkpoint=(a,b)=>(d._sqlite3_wal_checkpoint=V.pe)(a,b);d._sqlite3_error_offset=a=>(d._sqlite3_error_offset=V.qe)(a);d._sqlite3_errmsg16=a=>(d._sqlite3_errmsg16=V.re)(a);d._sqlite3_errcode=a=>(d._sqlite3_errcode=V.se)(a);d._sqlite3_extended_errcode=a=>(d._sqlite3_extended_errcode=V.te)(a);d._sqlite3_system_errno=a=>(d._sqlite3_system_errno=V.ue)(a);d._sqlite3_errstr=a=>(d._sqlite3_errstr=V.ve)(a); +d._sqlite3_limit=(a,b,c)=>(d._sqlite3_limit=V.we)(a,b,c);d._sqlite3_open=(a,b)=>(d._sqlite3_open=V.xe)(a,b);d._sqlite3_open_v2=(a,b,c,e)=>(d._sqlite3_open_v2=V.ye)(a,b,c,e);d._sqlite3_open16=(a,b)=>(d._sqlite3_open16=V.ze)(a,b);d._sqlite3_create_collation=(a,b,c,e,f)=>(d._sqlite3_create_collation=V.Ae)(a,b,c,e,f);d._sqlite3_create_collation_v2=(a,b,c,e,f,h)=>(d._sqlite3_create_collation_v2=V.Be)(a,b,c,e,f,h);d._sqlite3_create_collation16=(a,b,c,e,f)=>(d._sqlite3_create_collation16=V.Ce)(a,b,c,e,f); +d._sqlite3_collation_needed=(a,b,c)=>(d._sqlite3_collation_needed=V.De)(a,b,c);d._sqlite3_collation_needed16=(a,b,c)=>(d._sqlite3_collation_needed16=V.Ee)(a,b,c);d._sqlite3_get_clientdata=(a,b)=>(d._sqlite3_get_clientdata=V.Fe)(a,b);d._sqlite3_set_clientdata=(a,b,c,e)=>(d._sqlite3_set_clientdata=V.Ge)(a,b,c,e);d._sqlite3_get_autocommit=a=>(d._sqlite3_get_autocommit=V.He)(a);d._sqlite3_table_column_metadata=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_table_column_metadata=V.Ie)(a,b,c,e,f,h,k,n,l); +d._sqlite3_sleep=a=>(d._sqlite3_sleep=V.Je)(a);d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Ke)(a,b);d._sqlite3_file_control=(a,b,c,e)=>(d._sqlite3_file_control=V.Le)(a,b,c,e);d._sqlite3_test_control=(a,b)=>(d._sqlite3_test_control=V.Me)(a,b);d._sqlite3_create_filename=(a,b,c,e,f)=>(d._sqlite3_create_filename=V.Ne)(a,b,c,e,f);d._sqlite3_free_filename=a=>(d._sqlite3_free_filename=V.Oe)(a);d._sqlite3_uri_parameter=(a,b)=>(d._sqlite3_uri_parameter=V.Pe)(a,b); +d._sqlite3_uri_key=(a,b)=>(d._sqlite3_uri_key=V.Qe)(a,b);d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=V.Re)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=V.Se)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=V.Te)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=V.Ue)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=V.Ve)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=V.We)(a,b); +d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=V.Xe)(a,b);d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=V.Ye)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=V.Ze)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=V._e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=V.$e)();var pd=()=>(pd=V.af)(),Vb=d._malloc=a=>(Vb=d._malloc=V.bf)(a),ed=d._free=a=>(ed=d._free=V.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=V.df)(a); +d._set_authorizer=a=>(d._set_authorizer=V.ef)(a);d._create_function=(a,b,c,e,f,h)=>(d._create_function=V.ff)(a,b,c,e,f,h);d._create_module=(a,b,c,e)=>(d._create_module=V.gf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=V.hf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=V.jf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=V.kf)(); +var rd=d._main=(a,b)=>(rd=d._main=V.lf)(a,b),fb=(a,b)=>(fb=V.nf)(a,b),sd=()=>(sd=V.of)(),nd=()=>(nd=V.pf)(),ld=a=>(ld=V.qf)(a),md=a=>(md=V.rf)(a),cd=a=>(cd=V.sf)(a),Sc=()=>(Sc=V.tf)(),bd=a=>(bd=V.uf)(a),dd=()=>(dd=V.vf)();d._sqlite3_version=3232;d.getTempRet0=sd;d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:function(){return Z(a,b,c,arguments,e)}}; d.addFunction=(a,b)=>{if(!jd){jd=new WeakMap;var c=hd.length;if(jd)for(var e=0;e<0+c;e++){var f=hd.get(e);f&&jd.set(f,e)}}if(c=jd.get(a)||0)return c;if(kd.length)c=kd.pop();else{try{hd.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=hd.length-1}try{hd.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if("function"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var h= {parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;kk?e.push(k):e.push(k%128|128,k>>7);for(k=0;kf?b.push(f):b.push(f%128|128,f>>7);b.push.apply(b,e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b)); b=(new WebAssembly.Instance(b,{e:{f:a}})).exports.f}hd.set(c,b)}jd.set(a,c);return c};d.setValue=J;d.getValue=H;d.UTF8ToString=(a,b)=>a?K(x,a,b):"";d.stringToUTF8=(a,b,c)=>Ta(a,x,b,c);d.lengthBytesUTF8=Sa;d.intArrayFromString=Ua;d.intArrayToString=function(a){for(var b=[],c=0;c{for(var b="";;){var c=x[a++>>0];if(!c)return b;b+=String.fromCharCode(c)}}; diff --git a/dist/wa-sqlite-async.wasm b/dist/wa-sqlite-async.wasm index eb39a57b..327ee103 100755 Binary files a/dist/wa-sqlite-async.wasm and b/dist/wa-sqlite-async.wasm differ diff --git a/dist/wa-sqlite.mjs b/dist/wa-sqlite.mjs index 1ed8597d..69825f73 100644 --- a/dist/wa-sqlite.mjs +++ b/dist/wa-sqlite.mjs @@ -34,7 +34,7 @@ function kb(a){for(var b;;){if(a===a.parent)return a=a.Cf.fg,b?"/"!==a[a.length- function bb(a,b){var c;if(c=(c=nb(a,"x"))?c:a.sf.Lf?0:2)throw new P(c,a);for(c=S[lb(a.id,b)];c;c=c.Jf){var e=c.name;if(c.parent.id===a.id&&e===b)return c}return a.sf.Lf(a,b)}function $a(a,b,c,e){a=new ob(a,b,c,e);b=lb(a.parent.id,a.name);a.Jf=S[b];return S[b]=a}function R(a){return 16384===(a&61440)}function pb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b} function nb(a,b){if(ib)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function qb(a,b){try{return bb(a,b),20}catch(c){}return nb(a,"wx")}function rb(a,b,c){try{var e=bb(a,b)}catch(f){return f.vf}if(a=nb(a,"wx"))return a;if(c){if(!R(e.mode))return 54;if(e===e.parent||"/"===kb(e))return 10}else if(R(e.mode))return 31;return 0}function sb(){for(var a=0;4096>=a;a++)if(!gb[a])return a;throw new P(33);} function U(a){a=gb[a];if(!a)throw new P(8);return a}function tb(a,b=-1){ub||(ub=function(){this.Tf={}},ub.prototype={},Object.defineProperties(ub.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.Tf.flags},set(c){this.Tf.flags=c}},position:{get(){return this.Tf.position},set(c){this.Tf.position=c}}}));a=Object.assign(new ub,a);-1==b&&(b=sb());a.Df=b;return gb[b]=a}var Za={open(a){a.tf=fb[a.node.Nf].tf;a.tf.open&&a.tf.open(a)},Gf(){throw new P(70);}}; -function Ua(a,b){fb[a]={tf:b}}function vb(a,b){var c="/"===b,e=!b;if(c&&eb)throw new P(10);if(!c&&!e){var f=T(b,{bg:!1});b=f.path;f=f.node;if(f.If)throw new P(10);if(!R(f.mode))throw new P(54);}b={type:a,Gg:{},fg:b,qg:[]};a=a.Cf(b);a.Cf=b;b.root=a;c?eb=a:f&&(f.If=b,f.Cf&&f.Cf.qg.push(b))}function wb(a,b,c){var e=T(a,{parent:!0}).node;a=La(a);if(!a||"."===a||".."===a)throw new P(28);var f=qb(e,a);if(f)throw new P(f);if(!e.sf.Pf)throw new P(63);return e.sf.Pf(e,a,b,c)} +function Ua(a,b){fb[a]={tf:b}}function vb(a,b){var c="/"===b,e=!b;if(c&&eb)throw new P(10);if(!c&&!e){var f=T(b,{bg:!1});b=f.path;f=f.node;if(f.If)throw new P(10);if(!R(f.mode))throw new P(54);}b={type:a,Fg:{},fg:b,qg:[]};a=a.Cf(b);a.Cf=b;b.root=a;c?eb=a:f&&(f.If=b,f.Cf&&f.Cf.qg.push(b))}function wb(a,b,c){var e=T(a,{parent:!0}).node;a=La(a);if(!a||"."===a||".."===a)throw new P(28);var f=qb(e,a);if(f)throw new P(f);if(!e.sf.Pf)throw new P(63);return e.sf.Pf(e,a,b,c)} function W(a,b){return wb(a,(void 0!==b?b:511)&1023|16384,0)}function xb(a,b,c){"undefined"==typeof c&&(c=b,b=438);wb(a,b|8192,c)}function yb(a,b){if(!Oa(a))throw new P(44);var c=T(b,{parent:!0}).node;if(!c)throw new P(44);b=La(b);var e=qb(c,b);if(e)throw new P(e);if(!c.sf.Uf)throw new P(63);c.sf.Uf(c,b,a)}function zb(a){var b=T(a,{parent:!0}).node;a=La(a);var c=bb(b,a),e=rb(b,a,!0);if(e)throw new P(e);if(!b.sf.Sf)throw new P(63);if(c.If)throw new P(10);b.sf.Sf(b,a);mb(c)} function jb(a){a=T(a).node;if(!a)throw new P(44);if(!a.sf.Of)throw new P(28);return Oa(kb(a.parent),a.sf.Of(a))}function Ab(a,b){a=T(a,{Ff:!b}).node;if(!a)throw new P(44);if(!a.sf.Af)throw new P(63);return a.sf.Af(a)}function Bb(a){return Ab(a,!0)}function Cb(a,b){a="string"==typeof a?T(a,{Ff:!0}).node:a;if(!a.sf.xf)throw new P(63);a.sf.xf(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})} function Db(a,b){if(0>b)throw new P(28);a="string"==typeof a?T(a,{Ff:!0}).node:a;if(!a.sf.xf)throw new P(63);if(R(a.mode))throw new P(31);if(32768!==(a.mode&61440))throw new P(28);var c=nb(a,"w");if(c)throw new P(c);a.sf.xf(a,{size:b,timestamp:Date.now()})} @@ -66,10 +66,10 @@ t.estimatedCost,"double");K(m+p[10],t.estimatedRows,"i32");K(m+p[11],t.idxFlags, 1:0};lc=function(l,m,p,q,t){const z=f.get(l);p=p?p?M(w,p):"":null;t=new Uint32Array(w.buffer,t,q);return z.module.xFilter(l,m,p,t)};mc=function(l){return f.get(l).module.xNext(l)};ec=function(l,m,p){return f.get(l).module.xColumn(l,m,p)};qc=function(l,m){return f.get(l).module.xRowid(l,a("BigInt64",m))};tc=function(l,m,p,q){const t=e.get(l);p=new Uint32Array(w.buffer,p,m);return t.module.xUpdate(l,p,a("BigInt64",q))};bc=function(l){return e.get(l).module.xBegin(l)};sc=function(l){return e.get(l).module.xSync(l)}; fc=function(l){return e.get(l).module.xCommit(l)};pc=function(l){return e.get(l).module.xRollback(l)};oc=function(l,m){const p=e.get(l);m=m?M(w,m):"";return p.module.xRename(l,m)}})(); (function(){function a(h,k){const n=`get${h}`,l=`set${h}`;return new Proxy(new DataView(w.buffer,k,"Int32"===h?4:8),{get(m,p){if(p===n)return function(q,t){if(!t)throw Error("must be little endian");return m[p](q,t)};if(p===l)return function(q,t,z){if(!z)throw Error("must be little endian");return m[p](q,t,z)};if("string"===typeof p&&p.match(/^(get)|(set)/))throw Error("invalid type");return m[p]}})}const b="object"===typeof Asyncify;b&&(d.handleAsync=Asyncify.dg);const c=new Map,e=new Map;d.registerVFS= -function(h,k){if(Y("sqlite3_vfs_find","number",["string"],[h.name]))throw Error(`VFS '${h.name}' already registered`);b&&(h.handleAsync=Asyncify.dg);var n=h.Fg??64;const l=d._malloc(4);k=Y("register_vfs","number",["string","number","number","number"],[h.name,n,k?1:0,l]);k||(n=J(l,"*"),c.set(n,h));d._free(l);return k};const f=b?new Set:null;wc=function(h){const k=e.get(h);b?f.add(h):e.delete(h);return k.xClose(h)};Dc=function(h,k,n,l,m){return e.get(h).xRead(h,w.subarray(k,k+n),4294967296*m+l+(0>l? -2**32:0))};Ic=function(h,k,n,l,m){return e.get(h).xWrite(h,w.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Gc=function(h,k,n){return e.get(h).xTruncate(h,4294967296*n+k+(0>k?2**32:0))};Fc=function(h,k){return e.get(h).xSync(h,k)};Ac=function(h,k){const n=e.get(h);k=a("BigInt64",k);return n.xFileSize(h,k)};Bc=function(h,k){return e.get(h).xLock(h,k)};Hc=function(h,k){return e.get(h).xUnlock(h,k)};vc=function(h,k){const n=e.get(h);k=a("Int32",k);return n.xCheckReservedLock(h,k)};zc=function(h,k,n){const l= -e.get(h);n=new DataView(w.buffer,n);return l.xFileControl(h,k,n)};Ec=function(h){return e.get(h).xSectorSize(h)};yc=function(h){return e.get(h).xDeviceCharacteristics(h)};Cc=function(h,k,n,l,m){h=c.get(h);e.set(n,h);if(b){f.delete(n);for(var p of f)e.delete(p)}p=null;if(l&64){p=1;const q=[];for(;p;){const t=w[k++];if(t)q.push(t);else switch(w[k]||(p=null),p){case 1:q.push(63);p=2;break;case 2:q.push(61);p=3;break;case 3:q.push(38),p=2}}p=(new TextDecoder).decode(new Uint8Array(q))}else k&&(p=k?M(w, -k):"");m=a("Int32",m);return h.xOpen(p,n,l,m)};xc=function(h,k,n){return c.get(h).xDelete(k?M(w,k):"",n)};uc=function(h,k,n,l){h=c.get(h);l=a("Int32",l);return h.xAccess(k?M(w,k):"",n,l)}})(); +function(h,k){if(Y("sqlite3_vfs_find","number",["string"],[h.name]))throw Error(`VFS '${h.name}' already registered`);b&&(h.handleAsync=Asyncify.dg);var n=h.mxPathName??64;const l=d._malloc(4);k=Y("register_vfs","number",["string","number","number","number"],[h.name,n,k?1:0,l]);k||(n=J(l,"*"),c.set(n,h));d._free(l);return k};const f=b?new Set:null;wc=function(h){const k=e.get(h);b?f.add(h):e.delete(h);return k.xClose(h)};Dc=function(h,k,n,l,m){return e.get(h).xRead(h,w.subarray(k,k+n),4294967296* +m+l+(0>l?2**32:0))};Ic=function(h,k,n,l,m){return e.get(h).xWrite(h,w.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Gc=function(h,k,n){return e.get(h).xTruncate(h,4294967296*n+k+(0>k?2**32:0))};Fc=function(h,k){return e.get(h).xSync(h,k)};Ac=function(h,k){const n=e.get(h);k=a("BigInt64",k);return n.xFileSize(h,k)};Bc=function(h,k){return e.get(h).xLock(h,k)};Hc=function(h,k){return e.get(h).xUnlock(h,k)};vc=function(h,k){const n=e.get(h);k=a("Int32",k);return n.xCheckReservedLock(h,k)};zc=function(h, +k,n){const l=e.get(h);n=new DataView(w.buffer,n);return l.xFileControl(h,k,n)};Ec=function(h){return e.get(h).xSectorSize(h)};yc=function(h){return e.get(h).xDeviceCharacteristics(h)};Cc=function(h,k,n,l,m){h=c.get(h);e.set(n,h);if(b){f.delete(n);for(var p of f)e.delete(p)}p=null;if(l&64){p=1;const q=[];for(;p;){const t=w[k++];if(t)q.push(t);else switch(w[k]||(p=null),p){case 1:q.push(63);p=2;break;case 2:q.push(61);p=3;break;case 3:q.push(38),p=2}}p=(new TextDecoder).decode(new Uint8Array(q))}else k&& +(p=k?M(w,k):"");m=a("Int32",m);return h.xOpen(p,n,l,m)};xc=function(h,k,n){return c.get(h).xDelete(k?M(w,k):"",n)};uc=function(h,k,n,l){h=c.get(h);l=a("Int32",l);return h.xAccess(k?M(w,k):"",n,l)}})(); var Rc={a:(a,b,c,e)=>{u(`Assertion failed: ${a?M(w,a):""}, at: `+[b?b?M(w,b):"":"unknown filename",c,e?e?M(w,e):"":"unknown function"])},N:function(a,b){try{return a=a?M(w,a):"",Cb(a,b),0}catch(c){if("undefined"==typeof X||"ErrnoError"!==c.name)throw c;return-c.vf}},Q:function(a,b,c){try{b=b?M(w,b):"";b=Lb(a,b);if(c&-8)return-28;var e=T(b,{Ff:!0}).node;if(!e)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&nb(e,a)?-2:0}catch(f){if("undefined"==typeof X||"ErrnoError"!==f.name)throw f; return-f.vf}},O:function(a,b){try{var c=U(a);Cb(c.node,b);return 0}catch(e){if("undefined"==typeof X||"ErrnoError"!==e.name)throw e;return-e.vf}},M:function(a){try{var b=U(a).node;var c="string"==typeof b?T(b,{Ff:!0}).node:b;if(!c.sf.xf)throw new P(63);c.sf.xf(c,{timestamp:Date.now()});return 0}catch(e){if("undefined"==typeof X||"ErrnoError"!==e.name)throw e;return-e.vf}},b:function(a,b,c){Nb=c;try{var e=U(a);switch(b){case 0:var f=Ob();if(0>f)return-28;for(;gb[f];)f++;return tb(e,f).Df;case 1:case 2:return 0; case 3:return e.flags;case 4:return f=Ob(),e.flags|=f,0;case 5:return f=Ob(),x[f+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return y[Qc()>>2]=28,-1;default:return-28}}catch(h){if("undefined"==typeof X||"ErrnoError"!==h.name)throw h;return-h.vf}},L:function(a,b){try{var c=U(a);return Mb(Ab,c.path,b)}catch(e){if("undefined"==typeof X||"ErrnoError"!==e.name)throw e;return-e.vf}},n:function(a,b,c){b=Pb(b,c);try{if(isNaN(b))return 61;var e=U(a);if(0===(e.flags&2097155))throw new P(28); @@ -93,38 +93,38 @@ d._sqlite3_hard_heap_limit64=(a,b)=>(d._sqlite3_hard_heap_limit64=Z.Ea)(a,b);d._ d._sqlite3_str_append=(a,b,c)=>(d._sqlite3_str_append=Z.Ma)(a,b,c);d._sqlite3_str_appendchar=(a,b,c)=>(d._sqlite3_str_appendchar=Z.Na)(a,b,c);d._sqlite3_str_appendall=(a,b)=>(d._sqlite3_str_appendall=Z.Oa)(a,b);d._sqlite3_str_appendf=(a,b,c)=>(d._sqlite3_str_appendf=Z.Pa)(a,b,c);d._sqlite3_str_finish=a=>(d._sqlite3_str_finish=Z.Qa)(a);d._sqlite3_str_errcode=a=>(d._sqlite3_str_errcode=Z.Ra)(a);d._sqlite3_str_length=a=>(d._sqlite3_str_length=Z.Sa)(a);d._sqlite3_str_value=a=>(d._sqlite3_str_value=Z.Ta)(a); d._sqlite3_str_reset=a=>(d._sqlite3_str_reset=Z.Ua)(a);d._sqlite3_str_new=a=>(d._sqlite3_str_new=Z.Va)(a);d._sqlite3_vmprintf=(a,b)=>(d._sqlite3_vmprintf=Z.Wa)(a,b);d._sqlite3_mprintf=(a,b)=>(d._sqlite3_mprintf=Z.Xa)(a,b);d._sqlite3_vsnprintf=(a,b,c,e)=>(d._sqlite3_vsnprintf=Z.Ya)(a,b,c,e);d._sqlite3_snprintf=(a,b,c,e)=>(d._sqlite3_snprintf=Z.Za)(a,b,c,e);d._sqlite3_log=(a,b,c)=>(d._sqlite3_log=Z._a)(a,b,c);d._sqlite3_randomness=(a,b)=>(d._sqlite3_randomness=Z.$a)(a,b); d._sqlite3_stricmp=(a,b)=>(d._sqlite3_stricmp=Z.ab)(a,b);d._sqlite3_strnicmp=(a,b,c)=>(d._sqlite3_strnicmp=Z.bb)(a,b,c);d._sqlite3_os_init=()=>(d._sqlite3_os_init=Z.cb)();d._sqlite3_os_end=()=>(d._sqlite3_os_end=Z.db)();d._sqlite3_serialize=(a,b,c,e)=>(d._sqlite3_serialize=Z.eb)(a,b,c,e);d._sqlite3_prepare_v2=(a,b,c,e,f)=>(d._sqlite3_prepare_v2=Z.fb)(a,b,c,e,f);d._sqlite3_step=a=>(d._sqlite3_step=Z.gb)(a);d._sqlite3_column_int64=(a,b)=>(d._sqlite3_column_int64=Z.hb)(a,b); -d._sqlite3_column_int=(a,b)=>(d._sqlite3_column_int=Z.ib)(a,b);d._sqlite3_finalize=a=>(d._sqlite3_finalize=Z.jb)(a);d._sqlite3_deserialize=(a,b,c,e,f,h,k,n)=>(d._sqlite3_deserialize=Z.kb)(a,b,c,e,f,h,k,n);d._sqlite3_database_file_object=a=>(d._sqlite3_database_file_object=Z.lb)(a);d._sqlite3_backup_init=(a,b,c,e)=>(d._sqlite3_backup_init=Z.mb)(a,b,c,e);d._sqlite3_backup_step=(a,b)=>(d._sqlite3_backup_step=Z.nb)(a,b);d._sqlite3_backup_finish=a=>(d._sqlite3_backup_finish=Z.ob)(a); -d._sqlite3_backup_remaining=a=>(d._sqlite3_backup_remaining=Z.pb)(a);d._sqlite3_backup_pagecount=a=>(d._sqlite3_backup_pagecount=Z.qb)(a);d._sqlite3_reset=a=>(d._sqlite3_reset=Z.rb)(a);d._sqlite3_clear_bindings=a=>(d._sqlite3_clear_bindings=Z.sb)(a);d._sqlite3_value_blob=a=>(d._sqlite3_value_blob=Z.tb)(a);d._sqlite3_value_text=a=>(d._sqlite3_value_text=Z.ub)(a);d._sqlite3_value_bytes=a=>(d._sqlite3_value_bytes=Z.vb)(a);d._sqlite3_value_bytes16=a=>(d._sqlite3_value_bytes16=Z.wb)(a); -d._sqlite3_value_double=a=>(d._sqlite3_value_double=Z.xb)(a);d._sqlite3_value_int=a=>(d._sqlite3_value_int=Z.yb)(a);d._sqlite3_value_int64=a=>(d._sqlite3_value_int64=Z.zb)(a);d._sqlite3_value_subtype=a=>(d._sqlite3_value_subtype=Z.Ab)(a);d._sqlite3_value_pointer=(a,b)=>(d._sqlite3_value_pointer=Z.Bb)(a,b);d._sqlite3_value_text16=a=>(d._sqlite3_value_text16=Z.Cb)(a);d._sqlite3_value_text16be=a=>(d._sqlite3_value_text16be=Z.Db)(a);d._sqlite3_value_text16le=a=>(d._sqlite3_value_text16le=Z.Eb)(a); -d._sqlite3_value_type=a=>(d._sqlite3_value_type=Z.Fb)(a);d._sqlite3_value_encoding=a=>(d._sqlite3_value_encoding=Z.Gb)(a);d._sqlite3_value_nochange=a=>(d._sqlite3_value_nochange=Z.Hb)(a);d._sqlite3_value_frombind=a=>(d._sqlite3_value_frombind=Z.Ib)(a);d._sqlite3_value_dup=a=>(d._sqlite3_value_dup=Z.Jb)(a);d._sqlite3_value_free=a=>(d._sqlite3_value_free=Z.Kb)(a);d._sqlite3_result_blob=(a,b,c,e)=>(d._sqlite3_result_blob=Z.Lb)(a,b,c,e); -d._sqlite3_result_blob64=(a,b,c,e,f)=>(d._sqlite3_result_blob64=Z.Mb)(a,b,c,e,f);d._sqlite3_result_double=(a,b)=>(d._sqlite3_result_double=Z.Nb)(a,b);d._sqlite3_result_error=(a,b,c)=>(d._sqlite3_result_error=Z.Ob)(a,b,c);d._sqlite3_result_error16=(a,b,c)=>(d._sqlite3_result_error16=Z.Pb)(a,b,c);d._sqlite3_result_int=(a,b)=>(d._sqlite3_result_int=Z.Qb)(a,b);d._sqlite3_result_int64=(a,b,c)=>(d._sqlite3_result_int64=Z.Rb)(a,b,c);d._sqlite3_result_null=a=>(d._sqlite3_result_null=Z.Sb)(a); -d._sqlite3_result_pointer=(a,b,c,e)=>(d._sqlite3_result_pointer=Z.Tb)(a,b,c,e);d._sqlite3_result_subtype=(a,b)=>(d._sqlite3_result_subtype=Z.Ub)(a,b);d._sqlite3_result_text=(a,b,c,e)=>(d._sqlite3_result_text=Z.Vb)(a,b,c,e);d._sqlite3_result_text64=(a,b,c,e,f,h)=>(d._sqlite3_result_text64=Z.Wb)(a,b,c,e,f,h);d._sqlite3_result_text16=(a,b,c,e)=>(d._sqlite3_result_text16=Z.Xb)(a,b,c,e);d._sqlite3_result_text16be=(a,b,c,e)=>(d._sqlite3_result_text16be=Z.Yb)(a,b,c,e); -d._sqlite3_result_text16le=(a,b,c,e)=>(d._sqlite3_result_text16le=Z.Zb)(a,b,c,e);d._sqlite3_result_value=(a,b)=>(d._sqlite3_result_value=Z._b)(a,b);d._sqlite3_result_error_toobig=a=>(d._sqlite3_result_error_toobig=Z.$b)(a);d._sqlite3_result_zeroblob=(a,b)=>(d._sqlite3_result_zeroblob=Z.ac)(a,b);d._sqlite3_result_zeroblob64=(a,b,c)=>(d._sqlite3_result_zeroblob64=Z.bc)(a,b,c);d._sqlite3_result_error_code=(a,b)=>(d._sqlite3_result_error_code=Z.cc)(a,b); -d._sqlite3_result_error_nomem=a=>(d._sqlite3_result_error_nomem=Z.dc)(a);d._sqlite3_user_data=a=>(d._sqlite3_user_data=Z.ec)(a);d._sqlite3_context_db_handle=a=>(d._sqlite3_context_db_handle=Z.fc)(a);d._sqlite3_vtab_nochange=a=>(d._sqlite3_vtab_nochange=Z.gc)(a);d._sqlite3_vtab_in_first=(a,b)=>(d._sqlite3_vtab_in_first=Z.hc)(a,b);d._sqlite3_vtab_in_next=(a,b)=>(d._sqlite3_vtab_in_next=Z.ic)(a,b);d._sqlite3_aggregate_context=(a,b)=>(d._sqlite3_aggregate_context=Z.jc)(a,b); -d._sqlite3_get_auxdata=(a,b)=>(d._sqlite3_get_auxdata=Z.kc)(a,b);d._sqlite3_set_auxdata=(a,b,c,e)=>(d._sqlite3_set_auxdata=Z.lc)(a,b,c,e);d._sqlite3_column_count=a=>(d._sqlite3_column_count=Z.mc)(a);d._sqlite3_data_count=a=>(d._sqlite3_data_count=Z.nc)(a);d._sqlite3_column_blob=(a,b)=>(d._sqlite3_column_blob=Z.oc)(a,b);d._sqlite3_column_bytes=(a,b)=>(d._sqlite3_column_bytes=Z.pc)(a,b);d._sqlite3_column_bytes16=(a,b)=>(d._sqlite3_column_bytes16=Z.qc)(a,b); -d._sqlite3_column_double=(a,b)=>(d._sqlite3_column_double=Z.rc)(a,b);d._sqlite3_column_text=(a,b)=>(d._sqlite3_column_text=Z.sc)(a,b);d._sqlite3_column_value=(a,b)=>(d._sqlite3_column_value=Z.tc)(a,b);d._sqlite3_column_text16=(a,b)=>(d._sqlite3_column_text16=Z.uc)(a,b);d._sqlite3_column_type=(a,b)=>(d._sqlite3_column_type=Z.vc)(a,b);d._sqlite3_column_name=(a,b)=>(d._sqlite3_column_name=Z.wc)(a,b);d._sqlite3_column_name16=(a,b)=>(d._sqlite3_column_name16=Z.xc)(a,b); -d._sqlite3_bind_blob=(a,b,c,e,f)=>(d._sqlite3_bind_blob=Z.yc)(a,b,c,e,f);d._sqlite3_bind_blob64=(a,b,c,e,f,h)=>(d._sqlite3_bind_blob64=Z.zc)(a,b,c,e,f,h);d._sqlite3_bind_double=(a,b,c)=>(d._sqlite3_bind_double=Z.Ac)(a,b,c);d._sqlite3_bind_int=(a,b,c)=>(d._sqlite3_bind_int=Z.Bc)(a,b,c);d._sqlite3_bind_int64=(a,b,c,e)=>(d._sqlite3_bind_int64=Z.Cc)(a,b,c,e);d._sqlite3_bind_null=(a,b)=>(d._sqlite3_bind_null=Z.Dc)(a,b);d._sqlite3_bind_pointer=(a,b,c,e,f)=>(d._sqlite3_bind_pointer=Z.Ec)(a,b,c,e,f); -d._sqlite3_bind_text=(a,b,c,e,f)=>(d._sqlite3_bind_text=Z.Fc)(a,b,c,e,f);d._sqlite3_bind_text64=(a,b,c,e,f,h,k)=>(d._sqlite3_bind_text64=Z.Gc)(a,b,c,e,f,h,k);d._sqlite3_bind_text16=(a,b,c,e,f)=>(d._sqlite3_bind_text16=Z.Hc)(a,b,c,e,f);d._sqlite3_bind_value=(a,b,c)=>(d._sqlite3_bind_value=Z.Ic)(a,b,c);d._sqlite3_bind_zeroblob=(a,b,c)=>(d._sqlite3_bind_zeroblob=Z.Jc)(a,b,c);d._sqlite3_bind_zeroblob64=(a,b,c,e)=>(d._sqlite3_bind_zeroblob64=Z.Kc)(a,b,c,e); -d._sqlite3_bind_parameter_count=a=>(d._sqlite3_bind_parameter_count=Z.Lc)(a);d._sqlite3_bind_parameter_name=(a,b)=>(d._sqlite3_bind_parameter_name=Z.Mc)(a,b);d._sqlite3_bind_parameter_index=(a,b)=>(d._sqlite3_bind_parameter_index=Z.Nc)(a,b);d._sqlite3_db_handle=a=>(d._sqlite3_db_handle=Z.Oc)(a);d._sqlite3_stmt_readonly=a=>(d._sqlite3_stmt_readonly=Z.Pc)(a);d._sqlite3_stmt_isexplain=a=>(d._sqlite3_stmt_isexplain=Z.Qc)(a);d._sqlite3_stmt_explain=(a,b)=>(d._sqlite3_stmt_explain=Z.Rc)(a,b); -d._sqlite3_stmt_busy=a=>(d._sqlite3_stmt_busy=Z.Sc)(a);d._sqlite3_next_stmt=(a,b)=>(d._sqlite3_next_stmt=Z.Tc)(a,b);d._sqlite3_stmt_status=(a,b,c)=>(d._sqlite3_stmt_status=Z.Uc)(a,b,c);d._sqlite3_sql=a=>(d._sqlite3_sql=Z.Vc)(a);d._sqlite3_expanded_sql=a=>(d._sqlite3_expanded_sql=Z.Wc)(a);d._sqlite3_value_numeric_type=a=>(d._sqlite3_value_numeric_type=Z.Xc)(a);d._sqlite3_blob_open=(a,b,c,e,f,h,k,n)=>(d._sqlite3_blob_open=Z.Yc)(a,b,c,e,f,h,k,n);d._sqlite3_blob_close=a=>(d._sqlite3_blob_close=Z.Zc)(a); -d._sqlite3_blob_read=(a,b,c,e)=>(d._sqlite3_blob_read=Z._c)(a,b,c,e);d._sqlite3_blob_write=(a,b,c,e)=>(d._sqlite3_blob_write=Z.$c)(a,b,c,e);d._sqlite3_blob_bytes=a=>(d._sqlite3_blob_bytes=Z.ad)(a);d._sqlite3_blob_reopen=(a,b,c)=>(d._sqlite3_blob_reopen=Z.bd)(a,b,c);d._sqlite3_set_authorizer=(a,b,c)=>(d._sqlite3_set_authorizer=Z.cd)(a,b,c);d._sqlite3_strglob=(a,b)=>(d._sqlite3_strglob=Z.dd)(a,b);d._sqlite3_strlike=(a,b,c)=>(d._sqlite3_strlike=Z.ed)(a,b,c); -d._sqlite3_exec=(a,b,c,e,f)=>(d._sqlite3_exec=Z.fd)(a,b,c,e,f);d._sqlite3_errmsg=a=>(d._sqlite3_errmsg=Z.gd)(a);d._sqlite3_auto_extension=a=>(d._sqlite3_auto_extension=Z.hd)(a);d._sqlite3_cancel_auto_extension=a=>(d._sqlite3_cancel_auto_extension=Z.id)(a);d._sqlite3_reset_auto_extension=()=>(d._sqlite3_reset_auto_extension=Z.jd)();d._sqlite3_prepare=(a,b,c,e,f)=>(d._sqlite3_prepare=Z.kd)(a,b,c,e,f);d._sqlite3_prepare_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare_v3=Z.ld)(a,b,c,e,f,h); -d._sqlite3_prepare16=(a,b,c,e,f)=>(d._sqlite3_prepare16=Z.md)(a,b,c,e,f);d._sqlite3_prepare16_v2=(a,b,c,e,f)=>(d._sqlite3_prepare16_v2=Z.nd)(a,b,c,e,f);d._sqlite3_prepare16_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare16_v3=Z.od)(a,b,c,e,f,h);d._sqlite3_get_table=(a,b,c,e,f,h)=>(d._sqlite3_get_table=Z.pd)(a,b,c,e,f,h);d._sqlite3_free_table=a=>(d._sqlite3_free_table=Z.qd)(a);d._sqlite3_create_module=(a,b,c,e)=>(d._sqlite3_create_module=Z.rd)(a,b,c,e); -d._sqlite3_create_module_v2=(a,b,c,e,f)=>(d._sqlite3_create_module_v2=Z.sd)(a,b,c,e,f);d._sqlite3_drop_modules=(a,b)=>(d._sqlite3_drop_modules=Z.td)(a,b);d._sqlite3_declare_vtab=(a,b)=>(d._sqlite3_declare_vtab=Z.ud)(a,b);d._sqlite3_vtab_on_conflict=a=>(d._sqlite3_vtab_on_conflict=Z.vd)(a);d._sqlite3_vtab_config=(a,b,c)=>(d._sqlite3_vtab_config=Z.wd)(a,b,c);d._sqlite3_vtab_collation=(a,b)=>(d._sqlite3_vtab_collation=Z.xd)(a,b);d._sqlite3_vtab_in=(a,b,c)=>(d._sqlite3_vtab_in=Z.yd)(a,b,c); -d._sqlite3_vtab_rhs_value=(a,b,c)=>(d._sqlite3_vtab_rhs_value=Z.zd)(a,b,c);d._sqlite3_vtab_distinct=a=>(d._sqlite3_vtab_distinct=Z.Ad)(a);d._sqlite3_keyword_name=(a,b,c)=>(d._sqlite3_keyword_name=Z.Bd)(a,b,c);d._sqlite3_keyword_count=()=>(d._sqlite3_keyword_count=Z.Cd)();d._sqlite3_keyword_check=(a,b)=>(d._sqlite3_keyword_check=Z.Dd)(a,b);d._sqlite3_complete=a=>(d._sqlite3_complete=Z.Ed)(a);d._sqlite3_complete16=a=>(d._sqlite3_complete16=Z.Fd)(a);d._sqlite3_libversion=()=>(d._sqlite3_libversion=Z.Gd)(); -d._sqlite3_libversion_number=()=>(d._sqlite3_libversion_number=Z.Hd)();d._sqlite3_threadsafe=()=>(d._sqlite3_threadsafe=Z.Id)();d._sqlite3_initialize=()=>(d._sqlite3_initialize=Z.Jd)();d._sqlite3_shutdown=()=>(d._sqlite3_shutdown=Z.Kd)();d._sqlite3_config=(a,b)=>(d._sqlite3_config=Z.Ld)(a,b);d._sqlite3_db_mutex=a=>(d._sqlite3_db_mutex=Z.Md)(a);d._sqlite3_db_release_memory=a=>(d._sqlite3_db_release_memory=Z.Nd)(a);d._sqlite3_db_cacheflush=a=>(d._sqlite3_db_cacheflush=Z.Od)(a); -d._sqlite3_db_config=(a,b,c)=>(d._sqlite3_db_config=Z.Pd)(a,b,c);d._sqlite3_last_insert_rowid=a=>(d._sqlite3_last_insert_rowid=Z.Qd)(a);d._sqlite3_set_last_insert_rowid=(a,b,c)=>(d._sqlite3_set_last_insert_rowid=Z.Rd)(a,b,c);d._sqlite3_changes64=a=>(d._sqlite3_changes64=Z.Sd)(a);d._sqlite3_changes=a=>(d._sqlite3_changes=Z.Td)(a);d._sqlite3_total_changes64=a=>(d._sqlite3_total_changes64=Z.Ud)(a);d._sqlite3_total_changes=a=>(d._sqlite3_total_changes=Z.Vd)(a); -d._sqlite3_txn_state=(a,b)=>(d._sqlite3_txn_state=Z.Wd)(a,b);d._sqlite3_close=a=>(d._sqlite3_close=Z.Xd)(a);d._sqlite3_close_v2=a=>(d._sqlite3_close_v2=Z.Yd)(a);d._sqlite3_busy_handler=(a,b,c)=>(d._sqlite3_busy_handler=Z.Zd)(a,b,c);d._sqlite3_progress_handler=(a,b,c,e)=>(d._sqlite3_progress_handler=Z._d)(a,b,c,e);d._sqlite3_busy_timeout=(a,b)=>(d._sqlite3_busy_timeout=Z.$d)(a,b);d._sqlite3_interrupt=a=>(d._sqlite3_interrupt=Z.ae)(a);d._sqlite3_is_interrupted=a=>(d._sqlite3_is_interrupted=Z.be)(a); -d._sqlite3_create_function=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function=Z.ce)(a,b,c,e,f,h,k,n);d._sqlite3_create_function_v2=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_create_function_v2=Z.de)(a,b,c,e,f,h,k,n,l);d._sqlite3_create_window_function=(a,b,c,e,f,h,k,n,l,m)=>(d._sqlite3_create_window_function=Z.ee)(a,b,c,e,f,h,k,n,l,m);d._sqlite3_create_function16=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function16=Z.fe)(a,b,c,e,f,h,k,n); -d._sqlite3_overload_function=(a,b,c)=>(d._sqlite3_overload_function=Z.ge)(a,b,c);d._sqlite3_trace_v2=(a,b,c,e)=>(d._sqlite3_trace_v2=Z.he)(a,b,c,e);d._sqlite3_commit_hook=(a,b,c)=>(d._sqlite3_commit_hook=Z.ie)(a,b,c);d._sqlite3_update_hook=(a,b,c)=>(d._sqlite3_update_hook=Z.je)(a,b,c);d._sqlite3_rollback_hook=(a,b,c)=>(d._sqlite3_rollback_hook=Z.ke)(a,b,c);d._sqlite3_autovacuum_pages=(a,b,c,e)=>(d._sqlite3_autovacuum_pages=Z.le)(a,b,c,e); -d._sqlite3_wal_autocheckpoint=(a,b)=>(d._sqlite3_wal_autocheckpoint=Z.me)(a,b);d._sqlite3_wal_hook=(a,b,c)=>(d._sqlite3_wal_hook=Z.ne)(a,b,c);d._sqlite3_wal_checkpoint_v2=(a,b,c,e,f)=>(d._sqlite3_wal_checkpoint_v2=Z.oe)(a,b,c,e,f);d._sqlite3_wal_checkpoint=(a,b)=>(d._sqlite3_wal_checkpoint=Z.pe)(a,b);d._sqlite3_error_offset=a=>(d._sqlite3_error_offset=Z.qe)(a);d._sqlite3_errmsg16=a=>(d._sqlite3_errmsg16=Z.re)(a);d._sqlite3_errcode=a=>(d._sqlite3_errcode=Z.se)(a); -d._sqlite3_extended_errcode=a=>(d._sqlite3_extended_errcode=Z.te)(a);d._sqlite3_system_errno=a=>(d._sqlite3_system_errno=Z.ue)(a);d._sqlite3_errstr=a=>(d._sqlite3_errstr=Z.ve)(a);d._sqlite3_limit=(a,b,c)=>(d._sqlite3_limit=Z.we)(a,b,c);d._sqlite3_open=(a,b)=>(d._sqlite3_open=Z.xe)(a,b);d._sqlite3_open_v2=(a,b,c,e)=>(d._sqlite3_open_v2=Z.ye)(a,b,c,e);d._sqlite3_open16=(a,b)=>(d._sqlite3_open16=Z.ze)(a,b);d._sqlite3_create_collation=(a,b,c,e,f)=>(d._sqlite3_create_collation=Z.Ae)(a,b,c,e,f); -d._sqlite3_create_collation_v2=(a,b,c,e,f,h)=>(d._sqlite3_create_collation_v2=Z.Be)(a,b,c,e,f,h);d._sqlite3_create_collation16=(a,b,c,e,f)=>(d._sqlite3_create_collation16=Z.Ce)(a,b,c,e,f);d._sqlite3_collation_needed=(a,b,c)=>(d._sqlite3_collation_needed=Z.De)(a,b,c);d._sqlite3_collation_needed16=(a,b,c)=>(d._sqlite3_collation_needed16=Z.Ee)(a,b,c);d._sqlite3_get_clientdata=(a,b)=>(d._sqlite3_get_clientdata=Z.Fe)(a,b);d._sqlite3_set_clientdata=(a,b,c,e)=>(d._sqlite3_set_clientdata=Z.Ge)(a,b,c,e); -d._sqlite3_get_autocommit=a=>(d._sqlite3_get_autocommit=Z.He)(a);d._sqlite3_table_column_metadata=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_table_column_metadata=Z.Ie)(a,b,c,e,f,h,k,n,l);d._sqlite3_sleep=a=>(d._sqlite3_sleep=Z.Je)(a);d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=Z.Ke)(a,b);d._sqlite3_file_control=(a,b,c,e)=>(d._sqlite3_file_control=Z.Le)(a,b,c,e);d._sqlite3_test_control=(a,b)=>(d._sqlite3_test_control=Z.Me)(a,b); -d._sqlite3_create_filename=(a,b,c,e,f)=>(d._sqlite3_create_filename=Z.Ne)(a,b,c,e,f);d._sqlite3_free_filename=a=>(d._sqlite3_free_filename=Z.Oe)(a);d._sqlite3_uri_parameter=(a,b)=>(d._sqlite3_uri_parameter=Z.Pe)(a,b);d._sqlite3_uri_key=(a,b)=>(d._sqlite3_uri_key=Z.Qe)(a,b);d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=Z.Re)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=Z.Se)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=Z.Te)(a); -d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=Z.Ue)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=Z.Ve)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=Z.We)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=Z.Xe)(a,b);d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=Z.Ye)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=Z.Ze)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=Z._e)(a); -d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=Z.$e)();var Qc=()=>(Qc=Z.af)(),Sb=d._malloc=a=>(Sb=d._malloc=Z.bf)(a);d._free=a=>(d._free=Z.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=Z.df)(a);d._set_authorizer=a=>(d._set_authorizer=Z.ef)(a);d._create_function=(a,b,c,e,f,h)=>(d._create_function=Z.ff)(a,b,c,e,f,h);d._create_module=(a,b,c,e)=>(d._create_module=Z.gf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=Z.hf)(a,b); -d._register_vfs=(a,b,c,e)=>(d._register_vfs=Z.jf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=Z.kf)();var Sc=d._main=(a,b)=>(Sc=d._main=Z.lf)(a,b),cb=(a,b)=>(cb=Z.nf)(a,b),Tc=()=>(Tc=Z.of)(),Nc=()=>(Nc=Z.pf)(),Oc=a=>(Oc=Z.qf)(a),Mc=a=>(Mc=Z.rf)(a);d._sqlite3_version=3232;d.getTempRet0=Tc;d.ccall=Y;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:function(){return Y(a,b,c,arguments,e)}}; +d._sqlite3_reset=a=>(d._sqlite3_reset=Z.ib)(a);d._sqlite3_exec=(a,b,c,e,f)=>(d._sqlite3_exec=Z.jb)(a,b,c,e,f);d._sqlite3_column_int=(a,b)=>(d._sqlite3_column_int=Z.kb)(a,b);d._sqlite3_finalize=a=>(d._sqlite3_finalize=Z.lb)(a);d._sqlite3_deserialize=(a,b,c,e,f,h,k,n)=>(d._sqlite3_deserialize=Z.mb)(a,b,c,e,f,h,k,n);d._sqlite3_database_file_object=a=>(d._sqlite3_database_file_object=Z.nb)(a);d._sqlite3_backup_init=(a,b,c,e)=>(d._sqlite3_backup_init=Z.ob)(a,b,c,e); +d._sqlite3_backup_step=(a,b)=>(d._sqlite3_backup_step=Z.pb)(a,b);d._sqlite3_backup_finish=a=>(d._sqlite3_backup_finish=Z.qb)(a);d._sqlite3_backup_remaining=a=>(d._sqlite3_backup_remaining=Z.rb)(a);d._sqlite3_backup_pagecount=a=>(d._sqlite3_backup_pagecount=Z.sb)(a);d._sqlite3_clear_bindings=a=>(d._sqlite3_clear_bindings=Z.tb)(a);d._sqlite3_value_blob=a=>(d._sqlite3_value_blob=Z.ub)(a);d._sqlite3_value_text=a=>(d._sqlite3_value_text=Z.vb)(a);d._sqlite3_value_bytes=a=>(d._sqlite3_value_bytes=Z.wb)(a); +d._sqlite3_value_bytes16=a=>(d._sqlite3_value_bytes16=Z.xb)(a);d._sqlite3_value_double=a=>(d._sqlite3_value_double=Z.yb)(a);d._sqlite3_value_int=a=>(d._sqlite3_value_int=Z.zb)(a);d._sqlite3_value_int64=a=>(d._sqlite3_value_int64=Z.Ab)(a);d._sqlite3_value_subtype=a=>(d._sqlite3_value_subtype=Z.Bb)(a);d._sqlite3_value_pointer=(a,b)=>(d._sqlite3_value_pointer=Z.Cb)(a,b);d._sqlite3_value_text16=a=>(d._sqlite3_value_text16=Z.Db)(a);d._sqlite3_value_text16be=a=>(d._sqlite3_value_text16be=Z.Eb)(a); +d._sqlite3_value_text16le=a=>(d._sqlite3_value_text16le=Z.Fb)(a);d._sqlite3_value_type=a=>(d._sqlite3_value_type=Z.Gb)(a);d._sqlite3_value_encoding=a=>(d._sqlite3_value_encoding=Z.Hb)(a);d._sqlite3_value_nochange=a=>(d._sqlite3_value_nochange=Z.Ib)(a);d._sqlite3_value_frombind=a=>(d._sqlite3_value_frombind=Z.Jb)(a);d._sqlite3_value_dup=a=>(d._sqlite3_value_dup=Z.Kb)(a);d._sqlite3_value_free=a=>(d._sqlite3_value_free=Z.Lb)(a);d._sqlite3_result_blob=(a,b,c,e)=>(d._sqlite3_result_blob=Z.Mb)(a,b,c,e); +d._sqlite3_result_blob64=(a,b,c,e,f)=>(d._sqlite3_result_blob64=Z.Nb)(a,b,c,e,f);d._sqlite3_result_double=(a,b)=>(d._sqlite3_result_double=Z.Ob)(a,b);d._sqlite3_result_error=(a,b,c)=>(d._sqlite3_result_error=Z.Pb)(a,b,c);d._sqlite3_result_error16=(a,b,c)=>(d._sqlite3_result_error16=Z.Qb)(a,b,c);d._sqlite3_result_int=(a,b)=>(d._sqlite3_result_int=Z.Rb)(a,b);d._sqlite3_result_int64=(a,b,c)=>(d._sqlite3_result_int64=Z.Sb)(a,b,c);d._sqlite3_result_null=a=>(d._sqlite3_result_null=Z.Tb)(a); +d._sqlite3_result_pointer=(a,b,c,e)=>(d._sqlite3_result_pointer=Z.Ub)(a,b,c,e);d._sqlite3_result_subtype=(a,b)=>(d._sqlite3_result_subtype=Z.Vb)(a,b);d._sqlite3_result_text=(a,b,c,e)=>(d._sqlite3_result_text=Z.Wb)(a,b,c,e);d._sqlite3_result_text64=(a,b,c,e,f,h)=>(d._sqlite3_result_text64=Z.Xb)(a,b,c,e,f,h);d._sqlite3_result_text16=(a,b,c,e)=>(d._sqlite3_result_text16=Z.Yb)(a,b,c,e);d._sqlite3_result_text16be=(a,b,c,e)=>(d._sqlite3_result_text16be=Z.Zb)(a,b,c,e); +d._sqlite3_result_text16le=(a,b,c,e)=>(d._sqlite3_result_text16le=Z._b)(a,b,c,e);d._sqlite3_result_value=(a,b)=>(d._sqlite3_result_value=Z.$b)(a,b);d._sqlite3_result_error_toobig=a=>(d._sqlite3_result_error_toobig=Z.ac)(a);d._sqlite3_result_zeroblob=(a,b)=>(d._sqlite3_result_zeroblob=Z.bc)(a,b);d._sqlite3_result_zeroblob64=(a,b,c)=>(d._sqlite3_result_zeroblob64=Z.cc)(a,b,c);d._sqlite3_result_error_code=(a,b)=>(d._sqlite3_result_error_code=Z.dc)(a,b); +d._sqlite3_result_error_nomem=a=>(d._sqlite3_result_error_nomem=Z.ec)(a);d._sqlite3_user_data=a=>(d._sqlite3_user_data=Z.fc)(a);d._sqlite3_context_db_handle=a=>(d._sqlite3_context_db_handle=Z.gc)(a);d._sqlite3_vtab_nochange=a=>(d._sqlite3_vtab_nochange=Z.hc)(a);d._sqlite3_vtab_in_first=(a,b)=>(d._sqlite3_vtab_in_first=Z.ic)(a,b);d._sqlite3_vtab_in_next=(a,b)=>(d._sqlite3_vtab_in_next=Z.jc)(a,b);d._sqlite3_aggregate_context=(a,b)=>(d._sqlite3_aggregate_context=Z.kc)(a,b); +d._sqlite3_get_auxdata=(a,b)=>(d._sqlite3_get_auxdata=Z.lc)(a,b);d._sqlite3_set_auxdata=(a,b,c,e)=>(d._sqlite3_set_auxdata=Z.mc)(a,b,c,e);d._sqlite3_column_count=a=>(d._sqlite3_column_count=Z.nc)(a);d._sqlite3_data_count=a=>(d._sqlite3_data_count=Z.oc)(a);d._sqlite3_column_blob=(a,b)=>(d._sqlite3_column_blob=Z.pc)(a,b);d._sqlite3_column_bytes=(a,b)=>(d._sqlite3_column_bytes=Z.qc)(a,b);d._sqlite3_column_bytes16=(a,b)=>(d._sqlite3_column_bytes16=Z.rc)(a,b); +d._sqlite3_column_double=(a,b)=>(d._sqlite3_column_double=Z.sc)(a,b);d._sqlite3_column_text=(a,b)=>(d._sqlite3_column_text=Z.tc)(a,b);d._sqlite3_column_value=(a,b)=>(d._sqlite3_column_value=Z.uc)(a,b);d._sqlite3_column_text16=(a,b)=>(d._sqlite3_column_text16=Z.vc)(a,b);d._sqlite3_column_type=(a,b)=>(d._sqlite3_column_type=Z.wc)(a,b);d._sqlite3_column_name=(a,b)=>(d._sqlite3_column_name=Z.xc)(a,b);d._sqlite3_column_name16=(a,b)=>(d._sqlite3_column_name16=Z.yc)(a,b); +d._sqlite3_bind_blob=(a,b,c,e,f)=>(d._sqlite3_bind_blob=Z.zc)(a,b,c,e,f);d._sqlite3_bind_blob64=(a,b,c,e,f,h)=>(d._sqlite3_bind_blob64=Z.Ac)(a,b,c,e,f,h);d._sqlite3_bind_double=(a,b,c)=>(d._sqlite3_bind_double=Z.Bc)(a,b,c);d._sqlite3_bind_int=(a,b,c)=>(d._sqlite3_bind_int=Z.Cc)(a,b,c);d._sqlite3_bind_int64=(a,b,c,e)=>(d._sqlite3_bind_int64=Z.Dc)(a,b,c,e);d._sqlite3_bind_null=(a,b)=>(d._sqlite3_bind_null=Z.Ec)(a,b);d._sqlite3_bind_pointer=(a,b,c,e,f)=>(d._sqlite3_bind_pointer=Z.Fc)(a,b,c,e,f); +d._sqlite3_bind_text=(a,b,c,e,f)=>(d._sqlite3_bind_text=Z.Gc)(a,b,c,e,f);d._sqlite3_bind_text64=(a,b,c,e,f,h,k)=>(d._sqlite3_bind_text64=Z.Hc)(a,b,c,e,f,h,k);d._sqlite3_bind_text16=(a,b,c,e,f)=>(d._sqlite3_bind_text16=Z.Ic)(a,b,c,e,f);d._sqlite3_bind_value=(a,b,c)=>(d._sqlite3_bind_value=Z.Jc)(a,b,c);d._sqlite3_bind_zeroblob=(a,b,c)=>(d._sqlite3_bind_zeroblob=Z.Kc)(a,b,c);d._sqlite3_bind_zeroblob64=(a,b,c,e)=>(d._sqlite3_bind_zeroblob64=Z.Lc)(a,b,c,e); +d._sqlite3_bind_parameter_count=a=>(d._sqlite3_bind_parameter_count=Z.Mc)(a);d._sqlite3_bind_parameter_name=(a,b)=>(d._sqlite3_bind_parameter_name=Z.Nc)(a,b);d._sqlite3_bind_parameter_index=(a,b)=>(d._sqlite3_bind_parameter_index=Z.Oc)(a,b);d._sqlite3_db_handle=a=>(d._sqlite3_db_handle=Z.Pc)(a);d._sqlite3_stmt_readonly=a=>(d._sqlite3_stmt_readonly=Z.Qc)(a);d._sqlite3_stmt_isexplain=a=>(d._sqlite3_stmt_isexplain=Z.Rc)(a);d._sqlite3_stmt_explain=(a,b)=>(d._sqlite3_stmt_explain=Z.Sc)(a,b); +d._sqlite3_stmt_busy=a=>(d._sqlite3_stmt_busy=Z.Tc)(a);d._sqlite3_next_stmt=(a,b)=>(d._sqlite3_next_stmt=Z.Uc)(a,b);d._sqlite3_stmt_status=(a,b,c)=>(d._sqlite3_stmt_status=Z.Vc)(a,b,c);d._sqlite3_sql=a=>(d._sqlite3_sql=Z.Wc)(a);d._sqlite3_expanded_sql=a=>(d._sqlite3_expanded_sql=Z.Xc)(a);d._sqlite3_value_numeric_type=a=>(d._sqlite3_value_numeric_type=Z.Yc)(a);d._sqlite3_blob_open=(a,b,c,e,f,h,k,n)=>(d._sqlite3_blob_open=Z.Zc)(a,b,c,e,f,h,k,n);d._sqlite3_blob_close=a=>(d._sqlite3_blob_close=Z._c)(a); +d._sqlite3_blob_read=(a,b,c,e)=>(d._sqlite3_blob_read=Z.$c)(a,b,c,e);d._sqlite3_blob_write=(a,b,c,e)=>(d._sqlite3_blob_write=Z.ad)(a,b,c,e);d._sqlite3_blob_bytes=a=>(d._sqlite3_blob_bytes=Z.bd)(a);d._sqlite3_blob_reopen=(a,b,c)=>(d._sqlite3_blob_reopen=Z.cd)(a,b,c);d._sqlite3_set_authorizer=(a,b,c)=>(d._sqlite3_set_authorizer=Z.dd)(a,b,c);d._sqlite3_strglob=(a,b)=>(d._sqlite3_strglob=Z.ed)(a,b);d._sqlite3_strlike=(a,b,c)=>(d._sqlite3_strlike=Z.fd)(a,b,c);d._sqlite3_errmsg=a=>(d._sqlite3_errmsg=Z.gd)(a); +d._sqlite3_auto_extension=a=>(d._sqlite3_auto_extension=Z.hd)(a);d._sqlite3_cancel_auto_extension=a=>(d._sqlite3_cancel_auto_extension=Z.id)(a);d._sqlite3_reset_auto_extension=()=>(d._sqlite3_reset_auto_extension=Z.jd)();d._sqlite3_prepare=(a,b,c,e,f)=>(d._sqlite3_prepare=Z.kd)(a,b,c,e,f);d._sqlite3_prepare_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare_v3=Z.ld)(a,b,c,e,f,h);d._sqlite3_prepare16=(a,b,c,e,f)=>(d._sqlite3_prepare16=Z.md)(a,b,c,e,f); +d._sqlite3_prepare16_v2=(a,b,c,e,f)=>(d._sqlite3_prepare16_v2=Z.nd)(a,b,c,e,f);d._sqlite3_prepare16_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare16_v3=Z.od)(a,b,c,e,f,h);d._sqlite3_get_table=(a,b,c,e,f,h)=>(d._sqlite3_get_table=Z.pd)(a,b,c,e,f,h);d._sqlite3_free_table=a=>(d._sqlite3_free_table=Z.qd)(a);d._sqlite3_create_module=(a,b,c,e)=>(d._sqlite3_create_module=Z.rd)(a,b,c,e);d._sqlite3_create_module_v2=(a,b,c,e,f)=>(d._sqlite3_create_module_v2=Z.sd)(a,b,c,e,f); +d._sqlite3_drop_modules=(a,b)=>(d._sqlite3_drop_modules=Z.td)(a,b);d._sqlite3_declare_vtab=(a,b)=>(d._sqlite3_declare_vtab=Z.ud)(a,b);d._sqlite3_vtab_on_conflict=a=>(d._sqlite3_vtab_on_conflict=Z.vd)(a);d._sqlite3_vtab_config=(a,b,c)=>(d._sqlite3_vtab_config=Z.wd)(a,b,c);d._sqlite3_vtab_collation=(a,b)=>(d._sqlite3_vtab_collation=Z.xd)(a,b);d._sqlite3_vtab_in=(a,b,c)=>(d._sqlite3_vtab_in=Z.yd)(a,b,c);d._sqlite3_vtab_rhs_value=(a,b,c)=>(d._sqlite3_vtab_rhs_value=Z.zd)(a,b,c); +d._sqlite3_vtab_distinct=a=>(d._sqlite3_vtab_distinct=Z.Ad)(a);d._sqlite3_keyword_name=(a,b,c)=>(d._sqlite3_keyword_name=Z.Bd)(a,b,c);d._sqlite3_keyword_count=()=>(d._sqlite3_keyword_count=Z.Cd)();d._sqlite3_keyword_check=(a,b)=>(d._sqlite3_keyword_check=Z.Dd)(a,b);d._sqlite3_complete=a=>(d._sqlite3_complete=Z.Ed)(a);d._sqlite3_complete16=a=>(d._sqlite3_complete16=Z.Fd)(a);d._sqlite3_libversion=()=>(d._sqlite3_libversion=Z.Gd)();d._sqlite3_libversion_number=()=>(d._sqlite3_libversion_number=Z.Hd)(); +d._sqlite3_threadsafe=()=>(d._sqlite3_threadsafe=Z.Id)();d._sqlite3_initialize=()=>(d._sqlite3_initialize=Z.Jd)();d._sqlite3_shutdown=()=>(d._sqlite3_shutdown=Z.Kd)();d._sqlite3_config=(a,b)=>(d._sqlite3_config=Z.Ld)(a,b);d._sqlite3_db_mutex=a=>(d._sqlite3_db_mutex=Z.Md)(a);d._sqlite3_db_release_memory=a=>(d._sqlite3_db_release_memory=Z.Nd)(a);d._sqlite3_db_cacheflush=a=>(d._sqlite3_db_cacheflush=Z.Od)(a);d._sqlite3_db_config=(a,b,c)=>(d._sqlite3_db_config=Z.Pd)(a,b,c); +d._sqlite3_last_insert_rowid=a=>(d._sqlite3_last_insert_rowid=Z.Qd)(a);d._sqlite3_set_last_insert_rowid=(a,b,c)=>(d._sqlite3_set_last_insert_rowid=Z.Rd)(a,b,c);d._sqlite3_changes64=a=>(d._sqlite3_changes64=Z.Sd)(a);d._sqlite3_changes=a=>(d._sqlite3_changes=Z.Td)(a);d._sqlite3_total_changes64=a=>(d._sqlite3_total_changes64=Z.Ud)(a);d._sqlite3_total_changes=a=>(d._sqlite3_total_changes=Z.Vd)(a);d._sqlite3_txn_state=(a,b)=>(d._sqlite3_txn_state=Z.Wd)(a,b);d._sqlite3_close=a=>(d._sqlite3_close=Z.Xd)(a); +d._sqlite3_close_v2=a=>(d._sqlite3_close_v2=Z.Yd)(a);d._sqlite3_busy_handler=(a,b,c)=>(d._sqlite3_busy_handler=Z.Zd)(a,b,c);d._sqlite3_progress_handler=(a,b,c,e)=>(d._sqlite3_progress_handler=Z._d)(a,b,c,e);d._sqlite3_busy_timeout=(a,b)=>(d._sqlite3_busy_timeout=Z.$d)(a,b);d._sqlite3_interrupt=a=>(d._sqlite3_interrupt=Z.ae)(a);d._sqlite3_is_interrupted=a=>(d._sqlite3_is_interrupted=Z.be)(a);d._sqlite3_create_function=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function=Z.ce)(a,b,c,e,f,h,k,n); +d._sqlite3_create_function_v2=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_create_function_v2=Z.de)(a,b,c,e,f,h,k,n,l);d._sqlite3_create_window_function=(a,b,c,e,f,h,k,n,l,m)=>(d._sqlite3_create_window_function=Z.ee)(a,b,c,e,f,h,k,n,l,m);d._sqlite3_create_function16=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function16=Z.fe)(a,b,c,e,f,h,k,n);d._sqlite3_overload_function=(a,b,c)=>(d._sqlite3_overload_function=Z.ge)(a,b,c);d._sqlite3_trace_v2=(a,b,c,e)=>(d._sqlite3_trace_v2=Z.he)(a,b,c,e); +d._sqlite3_commit_hook=(a,b,c)=>(d._sqlite3_commit_hook=Z.ie)(a,b,c);d._sqlite3_update_hook=(a,b,c)=>(d._sqlite3_update_hook=Z.je)(a,b,c);d._sqlite3_rollback_hook=(a,b,c)=>(d._sqlite3_rollback_hook=Z.ke)(a,b,c);d._sqlite3_autovacuum_pages=(a,b,c,e)=>(d._sqlite3_autovacuum_pages=Z.le)(a,b,c,e);d._sqlite3_wal_autocheckpoint=(a,b)=>(d._sqlite3_wal_autocheckpoint=Z.me)(a,b);d._sqlite3_wal_hook=(a,b,c)=>(d._sqlite3_wal_hook=Z.ne)(a,b,c); +d._sqlite3_wal_checkpoint_v2=(a,b,c,e,f)=>(d._sqlite3_wal_checkpoint_v2=Z.oe)(a,b,c,e,f);d._sqlite3_wal_checkpoint=(a,b)=>(d._sqlite3_wal_checkpoint=Z.pe)(a,b);d._sqlite3_error_offset=a=>(d._sqlite3_error_offset=Z.qe)(a);d._sqlite3_errmsg16=a=>(d._sqlite3_errmsg16=Z.re)(a);d._sqlite3_errcode=a=>(d._sqlite3_errcode=Z.se)(a);d._sqlite3_extended_errcode=a=>(d._sqlite3_extended_errcode=Z.te)(a);d._sqlite3_system_errno=a=>(d._sqlite3_system_errno=Z.ue)(a);d._sqlite3_errstr=a=>(d._sqlite3_errstr=Z.ve)(a); +d._sqlite3_limit=(a,b,c)=>(d._sqlite3_limit=Z.we)(a,b,c);d._sqlite3_open=(a,b)=>(d._sqlite3_open=Z.xe)(a,b);d._sqlite3_open_v2=(a,b,c,e)=>(d._sqlite3_open_v2=Z.ye)(a,b,c,e);d._sqlite3_open16=(a,b)=>(d._sqlite3_open16=Z.ze)(a,b);d._sqlite3_create_collation=(a,b,c,e,f)=>(d._sqlite3_create_collation=Z.Ae)(a,b,c,e,f);d._sqlite3_create_collation_v2=(a,b,c,e,f,h)=>(d._sqlite3_create_collation_v2=Z.Be)(a,b,c,e,f,h);d._sqlite3_create_collation16=(a,b,c,e,f)=>(d._sqlite3_create_collation16=Z.Ce)(a,b,c,e,f); +d._sqlite3_collation_needed=(a,b,c)=>(d._sqlite3_collation_needed=Z.De)(a,b,c);d._sqlite3_collation_needed16=(a,b,c)=>(d._sqlite3_collation_needed16=Z.Ee)(a,b,c);d._sqlite3_get_clientdata=(a,b)=>(d._sqlite3_get_clientdata=Z.Fe)(a,b);d._sqlite3_set_clientdata=(a,b,c,e)=>(d._sqlite3_set_clientdata=Z.Ge)(a,b,c,e);d._sqlite3_get_autocommit=a=>(d._sqlite3_get_autocommit=Z.He)(a);d._sqlite3_table_column_metadata=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_table_column_metadata=Z.Ie)(a,b,c,e,f,h,k,n,l); +d._sqlite3_sleep=a=>(d._sqlite3_sleep=Z.Je)(a);d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=Z.Ke)(a,b);d._sqlite3_file_control=(a,b,c,e)=>(d._sqlite3_file_control=Z.Le)(a,b,c,e);d._sqlite3_test_control=(a,b)=>(d._sqlite3_test_control=Z.Me)(a,b);d._sqlite3_create_filename=(a,b,c,e,f)=>(d._sqlite3_create_filename=Z.Ne)(a,b,c,e,f);d._sqlite3_free_filename=a=>(d._sqlite3_free_filename=Z.Oe)(a);d._sqlite3_uri_parameter=(a,b)=>(d._sqlite3_uri_parameter=Z.Pe)(a,b); +d._sqlite3_uri_key=(a,b)=>(d._sqlite3_uri_key=Z.Qe)(a,b);d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=Z.Re)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=Z.Se)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=Z.Te)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=Z.Ue)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=Z.Ve)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=Z.We)(a,b); +d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=Z.Xe)(a,b);d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=Z.Ye)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=Z.Ze)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=Z._e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=Z.$e)();var Qc=()=>(Qc=Z.af)(),Sb=d._malloc=a=>(Sb=d._malloc=Z.bf)(a);d._free=a=>(d._free=Z.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=Z.df)(a); +d._set_authorizer=a=>(d._set_authorizer=Z.ef)(a);d._create_function=(a,b,c,e,f,h)=>(d._create_function=Z.ff)(a,b,c,e,f,h);d._create_module=(a,b,c,e)=>(d._create_module=Z.gf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=Z.hf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=Z.jf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=Z.kf)();var Sc=d._main=(a,b)=>(Sc=d._main=Z.lf)(a,b),cb=(a,b)=>(cb=Z.nf)(a,b),Tc=()=>(Tc=Z.of)(),Nc=()=>(Nc=Z.pf)(),Oc=a=>(Oc=Z.qf)(a),Mc=a=>(Mc=Z.rf)(a); +d._sqlite3_version=3232;d.getTempRet0=Tc;d.ccall=Y;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:function(){return Y(a,b,c,arguments,e)}}; d.addFunction=(a,b)=>{if(!Kc){Kc=new WeakMap;var c=Jc.length;if(Kc)for(var e=0;e<0+c;e++){var f=Jc.get(e);f&&Kc.set(f,e)}}if(c=Kc.get(a)||0)return c;if(Lc.length)c=Lc.pop();else{try{Jc.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=Jc.length-1}try{Jc.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if("function"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var h= {parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;kk?e.push(k):e.push(k%128|128,k>>7);for(k=0;kf?b.push(f):b.push(f%128|128,f>>7);b.push.apply(b,e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b)); b=(new WebAssembly.Instance(b,{e:{f:a}})).exports.f}Jc.set(c,b)}Kc.set(a,c);return c};d.setValue=K;d.getValue=J;d.UTF8ToString=(a,b)=>a?M(w,a,b):"";d.stringToUTF8=(a,b,c)=>Qa(a,w,b,c);d.lengthBytesUTF8=O;d.intArrayFromString=Ra;d.intArrayToString=function(a){for(var b=[],c=0;c{for(var b="";;){var c=w[a++>>0];if(!c)return b;b+=String.fromCharCode(c)}}; diff --git a/dist/wa-sqlite.wasm b/dist/wa-sqlite.wasm index 490f1aaa..e3405f04 100755 Binary files a/dist/wa-sqlite.wasm and b/dist/wa-sqlite.wasm differ diff --git a/package.json b/package.json index 31c839fe..49ec6913 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wa-sqlite", - "version": "0.9.13", + "version": "0.9.14", "type": "module", "main": "src/sqlite-api.js", "types": "src/types/index.d.ts", diff --git a/test/sqlite-api.test.js b/test/sqlite-api.test.js index d344898c..2702f208 100644 --- a/test/sqlite-api.test.js +++ b/test/sqlite-api.test.js @@ -2,7 +2,7 @@ import { getSQLite, getSQLiteAsync } from './api-instances.js'; import * as SQLite from '../src/sqlite-api.js'; import sinon from '../.yarn/unplugged/sinon-npm-15.0.1-115ae39e4c/node_modules/sinon/pkg/sinon-esm.js'; -const LIBVERSION = '3.44.0'; +const LIBVERSION = '3.46.0'; const LIBVERSION_NUMBER = (function() { const version = LIBVERSION.split('.'); return parseInt(version[0] + version[1].padStart(3, '0') + version[2].padStart(3, '0'));