@vkontakte/calls-audio-effects 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/audio-effects.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/calls-audio-effects v1.1.
|
|
3
|
-
* Thu, 11 Jul 2024 12:
|
|
2
|
+
* @vkontakte/calls-audio-effects v1.1.2
|
|
3
|
+
* Thu, 11 Jul 2024 12:44:25 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
"use strict";var pa=Object.create;var ar=Object.defineProperty;var ha=Object.getOwnPropertyDescriptor;var ma=Object.getOwnPropertyNames;var bt=Object.getPrototypeOf,ga=Object.prototype.hasOwnProperty;var ya=Reflect.get;var wa=(F,g)=>()=>(g||F((g={exports:{}}).exports,g),g.exports),_a=(F,g)=>{for(var h in g)ar(F,h,{get:g[h],enumerable:!0})},At=(F,g,h,E)=>{if(g&&typeof g=="object"||typeof g=="function")for(let u of ma(g))!ga.call(F,u)&&u!==h&&ar(F,u,{get:()=>g[u],enumerable:!(E=ha(g,u))||E.enumerable});return F};var Pt=(F,g,h)=>(h=F!=null?pa(bt(F)):{},At(g||!F||!F.__esModule?ar(h,"default",{value:F,enumerable:!0}):h,F)),Ea=F=>At(ar({},"__esModule",{value:!0}),F);var le=(F,g,h)=>ya(bt(F),h,g);var Z=(F,g,h)=>new Promise((E,u)=>{var I=G=>{try{K(h.next(G))}catch(J){u(J)}},V=G=>{try{K(h.throw(G))}catch(J){u(J)}},K=G=>G.done?E(G.value):Promise.resolve(G.value).then(I,V);K((h=h.apply(F,g)).next())});var Sr=wa((Ft,Fr)=>{var Tr=(()=>{var g;var F=typeof document!="undefined"?(g=document.currentScript)==null?void 0:g.src:void 0;return function(h={}){var E,u=h,I,V,K=new Promise((e,r)=>{I=e,V=r}),G=typeof window=="object",J=typeof importScripts=="function",Or=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";u.expectedDataFileDownloads||(u.expectedDataFileDownloads=0),u.expectedDataFileDownloads++,(()=>{var e=typeof ENVIRONMENT_IS_PTHREAD!="undefined"&&ENVIRONMENT_IS_PTHREAD,r=typeof ENVIRONMENT_IS_WASM_WORKER!="undefined"&&ENVIRONMENT_IS_WASM_WORKER;if(e||r)return;function t(n){var o="";typeof window=="object"?o=window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):typeof process=="undefined"&&typeof location!="undefined"&&(o=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/"));var i="wasm_bindings.data",s="wasm_bindings.data";typeof u.locateFilePackage=="function"&&!u.locateFile&&(u.locateFile=u.locateFilePackage,z("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var l=u.locateFile?u.locateFile(s,""):s,f=n.remote_package_size;function d(y,P,R,S){var b=new XMLHttpRequest;b.open("GET",y,!0),b.responseType="arraybuffer",b.onprogress=function(A){var Et,kt;var M=y,D=P;if(A.total&&(D=A.total),A.loaded){b.addedTotal?u.dataFileDownloads[M].loaded=A.loaded:(b.addedTotal=!0,u.dataFileDownloads||(u.dataFileDownloads={}),u.dataFileDownloads[M]={loaded:A.loaded,total:D});var x=0,O=0,Ne=0;for(var xe in u.dataFileDownloads){var Ue=u.dataFileDownloads[xe];x+=Ue.total,O+=Ue.loaded,Ne++}x=Math.ceil(x*u.expectedDataFileDownloads/Ne),(Et=u.setStatus)==null||Et.call(u,`Downloading data... (${O}/${x})`)}else u.dataFileDownloads||(kt=u.setStatus)==null||kt.call(u,"Downloading data...")},b.onerror=function(A){throw new Error("NetworkError for: "+y)},b.onload=function(A){if(b.status==200||b.status==304||b.status==206||b.status==0&&b.response){var M=b.response;R(M)}else throw new Error(b.statusText+" : "+b.responseURL)},b.send(null)}function c(y){console.error("package error:",y)}var m=null,v=u.getPreloadedPackage?u.getPreloadedPackage(l,f):null;v||d(l,f,function(y){m?(m(y),m=null):v=y},c);function p(y){function P(M,D){if(!M)throw D+new Error().stack}function R(M,D,x){this.start=M,this.end=D,this.audio=x}R.prototype={requests:{},open:function(M,D){this.name=D,this.requests[D]=this,y.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var M=this.byteArray.subarray(this.start,this.end);this.finish(M)},finish:function(M){var D=this;y.FS_createDataFile(this.name,null,M,!0,!0,!0),y.removeRunDependency(`fp ${D.name}`),this.requests[this.name]=null}};for(var S=n.files,b=0;b<S.length;++b)new R(S[b].start,S[b].end,S[b].audio||0).open("GET",S[b].filename);function A(M){P(M,"Loading data file failed."),P(M.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var D=new Uint8Array(M);R.prototype.byteArray=D;for(var x=n.files,O=0;O<x.length;++O)R.prototype.requests[x[O].filename].onload();y.removeRunDependency("datafile_wasm_bindings.data")}y.addRunDependency("datafile_wasm_bindings.data"),y.preloadResults||(y.preloadResults={}),y.preloadResults[i]={fromCache:!1},v?(A(v),v=null):m=A}u.calledRun?p(u):(u.preRun||(u.preRun=[]),u.preRun.push(p))}t({files:[{filename:"/animoji_v4.cfg",start:0,end:333},{filename:"/balloon.cfg",start:333,end:409},{filename:"/cathedral.cfg",start:409,end:586},{filename:"/chorus.cfg",start:586,end:865},{filename:"/denoise.cfg",start:865,end:3258},{filename:"/df2_lstm_full_silent.tflite",start:3258,end:3169978},{filename:"/distortion.cfg",start:3169978,end:3170120},{filename:"/echo.cfg",start:3170120,end:3170257},{filename:"/evil.cfg",start:3170257,end:3170398},{filename:"/giant.cfg",start:3170398,end:3170474},{filename:"/hall.cfg",start:3170474,end:3170647},{filename:"/phaser.cfg",start:3170647,end:3170747},{filename:"/robot.cfg",start:3170747,end:3170887},{filename:"/squirell.cfg",start:3170887,end:3170963},{filename:"/wav2lip_lite_rec-v4-v2.tflite",start:3170963,end:7456043}],remote_package_size:7456043})})();var He=null,L=Object.assign({},u),Wr=[],me="./this.program",Ce=(e,r)=>{throw r},X="";function fe(e){return u.locateFile?u.locateFile(e,X):X+e}var ge,Y;(G||J)&&(J?X=self.location.href:typeof document!="undefined"&&document.currentScript&&(X=document.currentScript.src),He&&(X=He),X.startsWith("blob:")?X="":X=X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1),J&&(Y=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ge=e=>fetch(e,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url))));var ae=u.print||console.log.bind(console),z=u.printErr||console.error.bind(console);Object.assign(u,L),L=null,u.arguments&&(Wr=u.arguments),u.thisProgram&&(me=u.thisProgram),u.quit&&(Ce=u.quit);var Te;u.wasmBinary&&(Te=u.wasmBinary);var ze,sr=!1,lr,U,H,ee,Be,w,T,jr,Ir;function Nr(){var e=ze.buffer;u.HEAP8=U=new Int8Array(e),u.HEAP16=ee=new Int16Array(e),u.HEAPU8=H=new Uint8Array(e),u.HEAPU16=Be=new Uint16Array(e),u.HEAP32=w=new Int32Array(e),u.HEAPU32=T=new Uint32Array(e),u.HEAPF32=jr=new Float32Array(e),u.HEAPF64=Ir=new Float64Array(e)}var xr=[],Ur=[],Lr=[],Rt=!1;function $t(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)Wt(u.preRun.shift());dr(xr)}function Mt(){Rt=!0,!u.noFSInit&&!a.init.initialized&&a.init(),a.ignorePermissions=!1,ie.init(),dr(Ur)}function Ot(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)It(u.postRun.shift());dr(Lr)}function Wt(e){xr.unshift(e)}function jt(e){Ur.unshift(e)}function It(e){Lr.unshift(e)}var de=0,ur=null,Fe=null;function Pa(e){return e}function Ve(e){var r;de++,(r=u.monitorRunDependencies)==null||r.call(u,de)}function Se(e){var t;if(de--,(t=u.monitorRunDependencies)==null||t.call(u,de),de==0&&(ur!==null&&(clearInterval(ur),ur=null),Fe)){var r=Fe;Fe=null,r()}}function fr(e){var t;(t=u.onAbort)==null||t.call(u,e),e="Aborted("+e+")",z(e),sr=!0,lr=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw V(r),r}var Nt="data:application/octet-stream;base64,",Hr=e=>e.startsWith(Nt);function xt(){var e="wasm_bindings.wasm";return Hr(e)?e:fe(e)}var qe;function zr(e){if(e==qe&&Te)return new Uint8Array(Te);if(Y)return Y(e);throw"both async and sync fetching of the wasm failed"}function Ut(e){return Te?Promise.resolve().then(()=>zr(e)):ge(e).then(r=>new Uint8Array(r),()=>zr(e))}function Br(e,r,t){return Ut(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{z(`failed to asynchronously prepare wasm: ${n}`),fr(n)})}function Lt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Hr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(o=>{var i=WebAssembly.instantiateStreaming(o,t);return i.then(n,function(s){return z(`wasm streaming compile failed: ${s}`),z("falling back to ArrayBuffer instantiation"),Br(r,t,n)})}):Br(r,t,n)}function Ht(){return{a:ta}}function zt(){var e=Ht();function r(n,o){return N=n.exports,ze=N.Z,Nr(),st=N.aa,jt(N._),Se("wasm-instantiate"),N}Ve("wasm-instantiate");function t(n){r(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,r)}catch(n){z(`Module.instantiateWasm callback failed with error: ${n}`),V(n)}return qe||(qe=xt()),Lt(Te,qe,e,t).catch(V),{}}var _,W;function Bt(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var dr=e=>{for(;e.length>0;)e.shift()(u)},Vt=u.noExitRuntime||!0;class qt{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){T[this.ptr+4>>2]=r}get_type(){return T[this.ptr+4>>2]}set_destructor(r){T[this.ptr+8>>2]=r}get_destructor(){return T[this.ptr+8>>2]}set_caught(r){r=r?1:0,U[this.ptr+12]=r}get_caught(){return U[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,U[this.ptr+13]=r}get_rethrown(){return U[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){T[this.ptr+16>>2]=r}get_adjusted_ptr(){return T[this.ptr+16>>2]}get_exception_ptr(){var r=wt(this.get_type());if(r)return T[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Vr=0,Gt=0,Xt=(e,r,t)=>{var n=new qt(e);throw n.init(r,t),Vr=e,Gt++,Vr};function Ge(){var e=w[+j.varargs>>2];return j.varargs+=4,e}var ye=Ge,$={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(e).slice(1)},normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];o==="."?e.splice(n,1):o===".."?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=$.isAbs(e),t=e.substr(-1)==="/";return e=$.normalizeArray(e.split("/").filter(n=>!!n),!r).join("/"),!e&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=$.splitPath(e),t=r[0],n=r[1];return!t&&!n?".":(n&&(n=n.substr(0,n.length-1)),t+n)},basename:e=>{if(e==="/")return"/";e=$.normalize(e),e=e.replace(/\/$/,"");var r=e.lastIndexOf("/");return r===-1?e:e.substr(r+1)},join:(...e)=>$.normalize(e.join("/")),join2:(e,r)=>$.normalize(e+"/"+r)},Kt=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);fr("initRandomDevice")},qr=e=>(qr=Kt())(e),re={resolve:(...e)=>{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var o=n>=0?e[n]:a.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";r=o+"/"+r,t=$.isAbs(o)}return r=$.normalizeArray(r.split("/").filter(i=>!!i),!t).join("/"),(t?"/":"")+r||"."},relative:(e,r)=>{e=re.resolve(e).substr(1),r=re.resolve(r).substr(1);function t(d){for(var c=0;c<d.length&&d[c]==="";c++);for(var m=d.length-1;m>=0&&d[m]==="";m--);return c>m?[]:d.slice(c,m-c+1)}for(var n=t(e.split("/")),o=t(r.split("/")),i=Math.min(n.length,o.length),s=i,l=0;l<i;l++)if(n[l]!==o[l]){s=l;break}for(var f=[],l=s;l<n.length;l++)f.push("..");return f=f.concat(o.slice(s)),f.join("/")}},Gr=typeof TextDecoder!="undefined"?new TextDecoder:void 0,we=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Gr)return Gr.decode(e.subarray(r,o));for(var i="";r<o;){var s=e[r++];if(!(s&128)){i+=String.fromCharCode(s);continue}var l=e[r++]&63;if((s&224)==192){i+=String.fromCharCode((s&31)<<6|l);continue}var f=e[r++]&63;if((s&240)==224?s=(s&15)<<12|l<<6|f:s=(s&7)<<18|l<<12|f<<6|e[r++]&63,s<65536)i+=String.fromCharCode(s);else{var d=s-65536;i+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return i},cr=[],De=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},vr=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,i=t+n-1,s=0;s<e.length;++s){var l=e.charCodeAt(s);if(l>=55296&&l<=57343){var f=e.charCodeAt(++s);l=65536+((l&1023)<<10)|f&1023}if(l<=127){if(t>=i)break;r[t++]=l}else if(l<=2047){if(t+1>=i)break;r[t++]=192|l>>6,r[t++]=128|l&63}else if(l<=65535){if(t+2>=i)break;r[t++]=224|l>>12,r[t++]=128|l>>6&63,r[t++]=128|l&63}else{if(t+3>=i)break;r[t++]=240|l>>18,r[t++]=128|l>>12&63,r[t++]=128|l>>6&63,r[t++]=128|l&63}}return r[t]=0,t-o};function Xr(e,r,t){var n=t>0?t:De(e)+1,o=new Array(n),i=vr(e,o,0,o.length);return r&&(o.length=i),o}var Yt=()=>{if(!cr.length){var e=null;if(typeof window!="undefined"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
|
package/audio-effects.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/calls-audio-effects v1.1.
|
|
3
|
-
* Thu, 11 Jul 2024 12:
|
|
2
|
+
* @vkontakte/calls-audio-effects v1.1.2
|
|
3
|
+
* Thu, 11 Jul 2024 12:44:25 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
var va=Object.create;var _t=Object.defineProperty;var pa=Object.getOwnPropertyDescriptor;var ha=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,ma=Object.prototype.hasOwnProperty;var ga=Reflect.get;var ya=(R,g)=>()=>(g||R((g={exports:{}}).exports,g),g.exports);var wa=(R,g,h,E)=>{if(g&&typeof g=="object"||typeof g=="function")for(let u of ha(g))!ma.call(R,u)&&u!==h&&_t(R,u,{get:()=>g[u],enumerable:!(E=pa(g,u))||E.enumerable});return R};var kt=(R,g,h)=>(h=R!=null?va(Et(R)):{},wa(g||!R||!R.__esModule?_t(h,"default",{value:R,enumerable:!0}):h,R));var le=(R,g,h)=>ga(Et(R),h,g);var Z=(R,g,h)=>new Promise((E,u)=>{var I=G=>{try{K(h.next(G))}catch(J){u(J)}},V=G=>{try{K(h.throw(G))}catch(J){u(J)}},K=G=>G.done?E(G.value):Promise.resolve(G.value).then(I,V);K((h=h.apply(R,g)).next())});var Fr=ya((Pt,Tr)=>{var Cr=(()=>{var g;var R=typeof document!="undefined"?(g=document.currentScript)==null?void 0:g.src:void 0;return function(h={}){var E,u=h,I,V,K=new Promise((e,r)=>{I=e,V=r}),G=typeof window=="object",J=typeof importScripts=="function",Rr=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";u.expectedDataFileDownloads||(u.expectedDataFileDownloads=0),u.expectedDataFileDownloads++,(()=>{var e=typeof ENVIRONMENT_IS_PTHREAD!="undefined"&&ENVIRONMENT_IS_PTHREAD,r=typeof ENVIRONMENT_IS_WASM_WORKER!="undefined"&&ENVIRONMENT_IS_WASM_WORKER;if(e||r)return;function t(n){var o="";typeof window=="object"?o=window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):typeof process=="undefined"&&typeof location!="undefined"&&(o=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/"));var i="wasm_bindings.data",s="wasm_bindings.data";typeof u.locateFilePackage=="function"&&!u.locateFile&&(u.locateFile=u.locateFilePackage,z("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var l=u.locateFile?u.locateFile(s,""):s,f=n.remote_package_size;function d(y,P,D,F){var b=new XMLHttpRequest;b.open("GET",y,!0),b.responseType="arraybuffer",b.onprogress=function(A){var yt,wt;var M=y,S=P;if(A.total&&(S=A.total),A.loaded){b.addedTotal?u.dataFileDownloads[M].loaded=A.loaded:(b.addedTotal=!0,u.dataFileDownloads||(u.dataFileDownloads={}),u.dataFileDownloads[M]={loaded:A.loaded,total:S});var x=0,O=0,We=0;for(var je in u.dataFileDownloads){var Ie=u.dataFileDownloads[je];x+=Ie.total,O+=Ie.loaded,We++}x=Math.ceil(x*u.expectedDataFileDownloads/We),(yt=u.setStatus)==null||yt.call(u,`Downloading data... (${O}/${x})`)}else u.dataFileDownloads||(wt=u.setStatus)==null||wt.call(u,"Downloading data...")},b.onerror=function(A){throw new Error("NetworkError for: "+y)},b.onload=function(A){if(b.status==200||b.status==304||b.status==206||b.status==0&&b.response){var M=b.response;D(M)}else throw new Error(b.statusText+" : "+b.responseURL)},b.send(null)}function c(y){console.error("package error:",y)}var m=null,v=u.getPreloadedPackage?u.getPreloadedPackage(l,f):null;v||d(l,f,function(y){m?(m(y),m=null):v=y},c);function p(y){function P(M,S){if(!M)throw S+new Error().stack}function D(M,S,x){this.start=M,this.end=S,this.audio=x}D.prototype={requests:{},open:function(M,S){this.name=S,this.requests[S]=this,y.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var M=this.byteArray.subarray(this.start,this.end);this.finish(M)},finish:function(M){var S=this;y.FS_createDataFile(this.name,null,M,!0,!0,!0),y.removeRunDependency(`fp ${S.name}`),this.requests[this.name]=null}};for(var F=n.files,b=0;b<F.length;++b)new D(F[b].start,F[b].end,F[b].audio||0).open("GET",F[b].filename);function A(M){P(M,"Loading data file failed."),P(M.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var S=new Uint8Array(M);D.prototype.byteArray=S;for(var x=n.files,O=0;O<x.length;++O)D.prototype.requests[x[O].filename].onload();y.removeRunDependency("datafile_wasm_bindings.data")}y.addRunDependency("datafile_wasm_bindings.data"),y.preloadResults||(y.preloadResults={}),y.preloadResults[i]={fromCache:!1},v?(A(v),v=null):m=A}u.calledRun?p(u):(u.preRun||(u.preRun=[]),u.preRun.push(p))}t({files:[{filename:"/animoji_v4.cfg",start:0,end:333},{filename:"/balloon.cfg",start:333,end:409},{filename:"/cathedral.cfg",start:409,end:586},{filename:"/chorus.cfg",start:586,end:865},{filename:"/denoise.cfg",start:865,end:3258},{filename:"/df2_lstm_full_silent.tflite",start:3258,end:3169978},{filename:"/distortion.cfg",start:3169978,end:3170120},{filename:"/echo.cfg",start:3170120,end:3170257},{filename:"/evil.cfg",start:3170257,end:3170398},{filename:"/giant.cfg",start:3170398,end:3170474},{filename:"/hall.cfg",start:3170474,end:3170647},{filename:"/phaser.cfg",start:3170647,end:3170747},{filename:"/robot.cfg",start:3170747,end:3170887},{filename:"/squirell.cfg",start:3170887,end:3170963},{filename:"/wav2lip_lite_rec-v4-v2.tflite",start:3170963,end:7456043}],remote_package_size:7456043})})();var He=null,L=Object.assign({},u),$r=[],me="./this.program",be=(e,r)=>{throw r},X="";function fe(e){return u.locateFile?u.locateFile(e,X):X+e}var ge,Y;(G||J)&&(J?X=self.location.href:typeof document!="undefined"&&document.currentScript&&(X=document.currentScript.src),He&&(X=He),X.startsWith("blob:")?X="":X=X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1),J&&(Y=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ge=e=>fetch(e,{credentials:"same-origin"}).then(r=>r.ok?r.arrayBuffer():Promise.reject(new Error(r.status+" : "+r.url))));var ae=u.print||console.log.bind(console),z=u.printErr||console.error.bind(console);Object.assign(u,L),L=null,u.arguments&&($r=u.arguments),u.thisProgram&&(me=u.thisProgram),u.quit&&(be=u.quit);var Ae;u.wasmBinary&&(Ae=u.wasmBinary);var ze,ir=!1,sr,U,H,ee,Be,w,T,Mr,Or;function Wr(){var e=ze.buffer;u.HEAP8=U=new Int8Array(e),u.HEAP16=ee=new Int16Array(e),u.HEAPU8=H=new Uint8Array(e),u.HEAPU16=Be=new Uint16Array(e),u.HEAP32=w=new Int32Array(e),u.HEAPU32=T=new Uint32Array(e),u.HEAPF32=Mr=new Float32Array(e),u.HEAPF64=Or=new Float64Array(e)}var jr=[],Ir=[],Nr=[],Dt=!1;function Rt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)Ot(u.preRun.shift());fr(jr)}function $t(){Dt=!0,!u.noFSInit&&!a.init.initialized&&a.init(),a.ignorePermissions=!1,ie.init(),fr(Ir)}function Mt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)jt(u.postRun.shift());fr(Nr)}function Ot(e){jr.unshift(e)}function Wt(e){Ir.unshift(e)}function jt(e){Nr.unshift(e)}var de=0,lr=null,Pe=null;function ka(e){return e}function Ve(e){var r;de++,(r=u.monitorRunDependencies)==null||r.call(u,de)}function Ce(e){var t;if(de--,(t=u.monitorRunDependencies)==null||t.call(u,de),de==0&&(lr!==null&&(clearInterval(lr),lr=null),Pe)){var r=Pe;Pe=null,r()}}function ur(e){var t;(t=u.onAbort)==null||t.call(u,e),e="Aborted("+e+")",z(e),ir=!0,sr=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw V(r),r}var It="data:application/octet-stream;base64,",xr=e=>e.startsWith(It);function Nt(){var e="wasm_bindings.wasm";return xr(e)?e:fe(e)}var qe;function Ur(e){if(e==qe&&Ae)return new Uint8Array(Ae);if(Y)return Y(e);throw"both async and sync fetching of the wasm failed"}function xt(e){return Ae?Promise.resolve().then(()=>Ur(e)):ge(e).then(r=>new Uint8Array(r),()=>Ur(e))}function Lr(e,r,t){return xt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{z(`failed to asynchronously prepare wasm: ${n}`),ur(n)})}function Ut(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!xr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(o=>{var i=WebAssembly.instantiateStreaming(o,t);return i.then(n,function(s){return z(`wasm streaming compile failed: ${s}`),z("falling back to ArrayBuffer instantiation"),Lr(r,t,n)})}):Lr(r,t,n)}function Lt(){return{a:ra}}function Ht(){var e=Lt();function r(n,o){return N=n.exports,ze=N.Z,Wr(),ot=N.aa,Wt(N._),Ce("wasm-instantiate"),N}Ve("wasm-instantiate");function t(n){r(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,r)}catch(n){z(`Module.instantiateWasm callback failed with error: ${n}`),V(n)}return qe||(qe=Nt()),Ut(Ae,qe,e,t).catch(V),{}}var _,W;function zt(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var fr=e=>{for(;e.length>0;)e.shift()(u)},Bt=u.noExitRuntime||!0;class Vt{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){T[this.ptr+4>>2]=r}get_type(){return T[this.ptr+4>>2]}set_destructor(r){T[this.ptr+8>>2]=r}get_destructor(){return T[this.ptr+8>>2]}set_caught(r){r=r?1:0,U[this.ptr+12]=r}get_caught(){return U[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,U[this.ptr+13]=r}get_rethrown(){return U[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){T[this.ptr+16>>2]=r}get_adjusted_ptr(){return T[this.ptr+16>>2]}get_exception_ptr(){var r=mt(this.get_type());if(r)return T[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Hr=0,qt=0,Gt=(e,r,t)=>{var n=new Vt(e);throw n.init(r,t),Hr=e,qt++,Hr};function Ge(){var e=w[+j.varargs>>2];return j.varargs+=4,e}var ye=Ge,$={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(e).slice(1)},normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];o==="."?e.splice(n,1):o===".."?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=$.isAbs(e),t=e.substr(-1)==="/";return e=$.normalizeArray(e.split("/").filter(n=>!!n),!r).join("/"),!e&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=$.splitPath(e),t=r[0],n=r[1];return!t&&!n?".":(n&&(n=n.substr(0,n.length-1)),t+n)},basename:e=>{if(e==="/")return"/";e=$.normalize(e),e=e.replace(/\/$/,"");var r=e.lastIndexOf("/");return r===-1?e:e.substr(r+1)},join:(...e)=>$.normalize(e.join("/")),join2:(e,r)=>$.normalize(e+"/"+r)},Xt=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);ur("initRandomDevice")},zr=e=>(zr=Xt())(e),re={resolve:(...e)=>{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var o=n>=0?e[n]:a.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";r=o+"/"+r,t=$.isAbs(o)}return r=$.normalizeArray(r.split("/").filter(i=>!!i),!t).join("/"),(t?"/":"")+r||"."},relative:(e,r)=>{e=re.resolve(e).substr(1),r=re.resolve(r).substr(1);function t(d){for(var c=0;c<d.length&&d[c]==="";c++);for(var m=d.length-1;m>=0&&d[m]==="";m--);return c>m?[]:d.slice(c,m-c+1)}for(var n=t(e.split("/")),o=t(r.split("/")),i=Math.min(n.length,o.length),s=i,l=0;l<i;l++)if(n[l]!==o[l]){s=l;break}for(var f=[],l=s;l<n.length;l++)f.push("..");return f=f.concat(o.slice(s)),f.join("/")}},Br=typeof TextDecoder!="undefined"?new TextDecoder:void 0,we=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Br)return Br.decode(e.subarray(r,o));for(var i="";r<o;){var s=e[r++];if(!(s&128)){i+=String.fromCharCode(s);continue}var l=e[r++]&63;if((s&224)==192){i+=String.fromCharCode((s&31)<<6|l);continue}var f=e[r++]&63;if((s&240)==224?s=(s&15)<<12|l<<6|f:s=(s&7)<<18|l<<12|f<<6|e[r++]&63,s<65536)i+=String.fromCharCode(s);else{var d=s-65536;i+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return i},dr=[],Te=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},cr=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,i=t+n-1,s=0;s<e.length;++s){var l=e.charCodeAt(s);if(l>=55296&&l<=57343){var f=e.charCodeAt(++s);l=65536+((l&1023)<<10)|f&1023}if(l<=127){if(t>=i)break;r[t++]=l}else if(l<=2047){if(t+1>=i)break;r[t++]=192|l>>6,r[t++]=128|l&63}else if(l<=65535){if(t+2>=i)break;r[t++]=224|l>>12,r[t++]=128|l>>6&63,r[t++]=128|l&63}else{if(t+3>=i)break;r[t++]=240|l>>18,r[t++]=128|l>>12&63,r[t++]=128|l>>6&63,r[t++]=128|l&63}}return r[t]=0,t-o};function Vr(e,r,t){var n=t>0?t:Te(e)+1,o=new Array(n),i=cr(e,o,0,o.length);return r&&(o.length=i),o}var Kt=()=>{if(!dr.length){var e=null;if(typeof window!="undefined"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ export declare abstract class AudioProcessor {
|
|
|
48
48
|
destroy(): void;
|
|
49
49
|
resume(): void;
|
|
50
50
|
pause(): void;
|
|
51
|
-
setLogger(loggerFunction?:
|
|
51
|
+
setLogger(loggerFunction?: Function, loggerName?: string): void;
|
|
52
52
|
static isSupported(): boolean;
|
|
53
53
|
private createAudioContext;
|
|
54
54
|
private createWorklet;
|