@vkontakte/calls-audio-effects 1.2.8 → 1.3.0

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/calls-audio-effects v1.2.8
3
- * Fri, 25 Oct 2024 13:25:56 GMT
2
+ * @vkontakte/calls-audio-effects v1.3.0
3
+ * Tue, 20 Jan 2026 10:33:19 GMT
4
4
  */
5
5
 
6
6
  "use strict";var ma=Object.create;var ar=Object.defineProperty;var ga=Object.getOwnPropertyDescriptor;var ya=Object.getOwnPropertyNames;var Ct=Object.getPrototypeOf,wa=Object.prototype.hasOwnProperty;var _a=Reflect.get;var Ea=(T,p)=>()=>(p||T((p={exports:{}}).exports,p),p.exports),ka=(T,p)=>{for(var v in p)ar(T,v,{get:p[v],enumerable:!0})},At=(T,p,v,w)=>{if(p&&typeof p=="object"||typeof p=="function")for(let u of ya(p))!wa.call(T,u)&&u!==v&&ar(T,u,{get:()=>p[u],enumerable:!(w=ga(p,u))||w.enumerable});return T};var Tt=(T,p,v)=>(v=T!=null?ma(Ct(T)):{},At(p||!T||!T.__esModule?ar(v,"default",{value:T,enumerable:!0}):v,T)),ba=T=>At(ar({},"__esModule",{value:!0}),T);var le=(T,p,v)=>_a(Ct(T),v,p);var Z=(T,p,v)=>new Promise((w,u)=>{var $=V=>{try{z(v.next(V))}catch(J){u(J)}},L=V=>{try{z(v.throw(V))}catch(J){u(J)}},z=V=>V.done?w(V.value):Promise.resolve(V.value).then($,L);z((v=v.apply(T,p)).next())});var Sr=Ea((St,Dr)=>{var Fr=(()=>{var p;var T=typeof document!="undefined"?(p=document.currentScript)==null?void 0:p.src:void 0;return function(v={}){var w,u=v,$,L,z=new Promise((e,r)=>{$=e,L=r}),V=typeof window=="object",J=typeof importScripts=="function",jr=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,q("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,c=n.remote_package_size;function f(y,C,R,D){var b=new XMLHttpRequest;b.open("GET",y,!0),b.responseType="arraybuffer",b.onprogress=function(P){var bt,Pt;var O=y,S=C;if(P.total&&(S=P.total),P.loaded){b.addedTotal?u.dataFileDownloads[O].loaded=P.loaded:(b.addedTotal=!0,u.dataFileDownloads||(u.dataFileDownloads={}),u.dataFileDownloads[O]={loaded:P.loaded,total:S});var N=0,W=0,xe=0;for(var Ne in u.dataFileDownloads){var Ue=u.dataFileDownloads[Ne];N+=Ue.total,W+=Ue.loaded,xe++}N=Math.ceil(N*u.expectedDataFileDownloads/xe),(bt=u.setStatus)==null||bt.call(u,`Downloading data... (${W}/${N})`)}else u.dataFileDownloads||(Pt=u.setStatus)==null||Pt.call(u,"Downloading data...")},b.onerror=function(P){throw new Error("NetworkError for: "+y)},b.onload=function(P){if(b.status==200||b.status==304||b.status==206||b.status==0&&b.response){var O=b.response;R(O)}else throw new Error(b.statusText+" : "+b.responseURL)},b.send(null)}function d(y){console.error("package error:",y)}var g=null,h=u.getPreloadedPackage?u.getPreloadedPackage(l,c):null;h||f(l,c,function(y){g?(g(y),g=null):h=y},d);function m(y){function C(O,S){if(!O)throw S+new Error().stack}function R(O,S,N){this.start=O,this.end=S,this.audio=N}R.prototype={requests:{},open:function(O,S){this.name=S,this.requests[S]=this,y.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var O=this.byteArray.subarray(this.start,this.end);this.finish(O)},finish:function(O){var S=this;y.FS_createDataFile(this.name,null,O,!0,!0,!0),y.removeRunDependency(`fp ${S.name}`),this.requests[this.name]=null}};for(var D=n.files,b=0;b<D.length;++b)new R(D[b].start,D[b].end,D[b].audio||0).open("GET",D[b].filename);function P(O){C(O,"Loading data file failed."),C(O.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var S=new Uint8Array(O);R.prototype.byteArray=S;for(var N=n.files,W=0;W<N.length;++W)R.prototype.requests[N[W].filename].onload();y.removeRunDependency("datafile_wasm_bindings.data")}y.addRunDependency("datafile_wasm_bindings.data"),y.preloadResults||(y.preloadResults={}),y.preloadResults[i]={fromCache:!1},h?(P(h),h=null):g=P}u.calledRun?m(u):(u.preRun||(u.preRun=[]),u.preRun.push(m))}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 Be=null,B=Object.assign({},u),Ir=[],me="./this.program",Ae=(e,r)=>{throw r},X="";function ce(e){return u.locateFile?u.locateFile(e,X):X+e}var ge,Y;(V||J)&&(J?X=self.location.href:typeof document!="undefined"&&document.currentScript&&(X=document.currentScript.src),Be&&(X=Be),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),q=u.printErr||console.error.bind(console);Object.assign(u,B),B=null,u.arguments&&(Ir=u.arguments),u.thisProgram&&(me=u.thisProgram),u.quit&&(Ae=u.quit);var Te;u.wasmBinary&&(Te=u.wasmBinary);var He,lr=!1,ur,U,H,ee,ze,_,F,xr,Nr;function Ur(){var e=He.buffer;u.HEAP8=U=new Int8Array(e),u.HEAP16=ee=new Int16Array(e),u.HEAPU8=H=new Uint8Array(e),u.HEAPU16=ze=new Uint16Array(e),u.HEAP32=_=new Int32Array(e),u.HEAPU32=F=new Uint32Array(e),u.HEAPF32=xr=new Float32Array(e),u.HEAPF64=Nr=new Float64Array(e)}var Lr=[],Br=[],Hr=[],Mt=!1;function Ot(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)It(u.preRun.shift());dr(Lr)}function Wt(){Mt=!0,!u.noFSInit&&!a.init.initialized&&a.init(),a.ignorePermissions=!1,ie.init(),dr(Br)}function jt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Nt(u.postRun.shift());dr(Hr)}function It(e){Lr.unshift(e)}function xt(e){Br.unshift(e)}function Nt(e){Hr.unshift(e)}var fe=0,cr=null,Fe=null;function Fa(e){return e}function Ve(e){var r;fe++,(r=u.monitorRunDependencies)==null||r.call(u,fe)}function De(e){var t;if(fe--,(t=u.monitorRunDependencies)==null||t.call(u,fe),fe==0&&(cr!==null&&(clearInterval(cr),cr=null),Fe)){var r=Fe;Fe=null,r()}}function fr(e){var t;(t=u.onAbort)==null||t.call(u,e),e="Aborted("+e+")",q(e),lr=!0,ur=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw L(r),r}var Ut="data:application/octet-stream;base64,",zr=e=>e.startsWith(Ut);function Lt(){var e="wasm_bindings.wasm";return zr(e)?e:ce(e)}var qe;function Vr(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 Bt(e){return Te?Promise.resolve().then(()=>Vr(e)):ge(e).then(r=>new Uint8Array(r),()=>Vr(e))}function qr(e,r,t){return Bt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{q(`failed to asynchronously prepare wasm: ${n}`),fr(n)})}function Ht(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!zr(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(o=>{var i=WebAssembly.instantiateStreaming(o,t);return i.then(n,function(s){return q(`wasm streaming compile failed: ${s}`),q("falling back to ArrayBuffer instantiation"),qr(r,t,n)})}):qr(r,t,n)}function zt(){return{a:oa}}function Vt(){var e=zt();function r(n,o){return x=n.exports,He=x.Z,Ur(),ut=x.aa,xt(x._),De("wasm-instantiate"),x}Ve("wasm-instantiate");function t(n){r(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,r)}catch(n){q(`Module.instantiateWasm callback failed with error: ${n}`),L(n)}return qe||(qe=Lt()),Ht(Te,qe,e,t).catch(L),{}}var E,j;function qt(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var dr=e=>{for(;e.length>0;)e.shift()(u)},Gt=u.noExitRuntime||!0;class Kt{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){F[this.ptr+4>>2]=r}get_type(){return F[this.ptr+4>>2]}set_destructor(r){F[this.ptr+8>>2]=r}get_destructor(){return F[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){F[this.ptr+16>>2]=r}get_adjusted_ptr(){return F[this.ptr+16>>2]}get_exception_ptr(){var r=Et(this.get_type());if(r)return F[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Gr=0,Xt=0,Yt=(e,r,t)=>{var n=new Kt(e);throw n.init(r,t),Gr=e,Xt++,Gr};function Ge(){var e=_[+I.varargs>>2];return I.varargs+=4,e}var ye=Ge,M={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=M.isAbs(e),t=e.substr(-1)==="/";return e=M.normalizeArray(e.split("/").filter(n=>!!n),!r).join("/"),!e&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=M.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=M.normalize(e),e=e.replace(/\/$/,"");var r=e.lastIndexOf("/");return r===-1?e:e.substr(r+1)},join:(...e)=>M.normalize(e.join("/")),join2:(e,r)=>M.normalize(e+"/"+r)},Qt=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);fr("initRandomDevice")},Kr=e=>(Kr=Qt())(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=M.isAbs(o)}return r=M.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(f){for(var d=0;d<f.length&&f[d]==="";d++);for(var g=f.length-1;g>=0&&f[g]==="";g--);return d>g?[]:f.slice(d,g-d+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 c=[],l=s;l<n.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")}},Xr=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&&Xr)return Xr.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 c=e[r++]&63;if((s&240)==224?s=(s&15)<<12|l<<6|c:s=(s&7)<<18|l<<12|c<<6|e[r++]&63,s<65536)i+=String.fromCharCode(s);else{var f=s-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},vr=[],Se=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},pr=(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 c=e.charCodeAt(++s);l=65536+((l&1023)<<10)|c&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 Yr(e,r,t){var n=t>0?t:Se(e)+1,o=new Array(n),i=pr(e,o,0,o.length);return r&&(o.length=i),o}var Zt=()=>{if(!vr.length){var e=null;if(typeof window!="undefined"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/calls-audio-effects v1.2.8
3
- * Fri, 25 Oct 2024 13:25:56 GMT
2
+ * @vkontakte/calls-audio-effects v1.3.0
3
+ * Tue, 20 Jan 2026 10:33:19 GMT
4
4
  */
5
5
 
6
6
  var ha=Object.create;var Et=Object.defineProperty;var ma=Object.getOwnPropertyDescriptor;var ga=Object.getOwnPropertyNames;var kt=Object.getPrototypeOf,ya=Object.prototype.hasOwnProperty;var wa=Reflect.get;var _a=(R,p)=>()=>(p||R((p={exports:{}}).exports,p),p.exports);var Ea=(R,p,v,w)=>{if(p&&typeof p=="object"||typeof p=="function")for(let u of ga(p))!ya.call(R,u)&&u!==v&&Et(R,u,{get:()=>p[u],enumerable:!(w=ma(p,u))||w.enumerable});return R};var bt=(R,p,v)=>(v=R!=null?ha(kt(R)):{},Ea(p||!R||!R.__esModule?Et(v,"default",{value:R,enumerable:!0}):v,R));var le=(R,p,v)=>wa(kt(R),v,p);var Z=(R,p,v)=>new Promise((w,u)=>{var $=V=>{try{z(v.next(V))}catch(J){u(J)}},L=V=>{try{z(v.throw(V))}catch(J){u(J)}},z=V=>V.done?w(V.value):Promise.resolve(V.value).then($,L);z((v=v.apply(R,p)).next())});var Dr=_a((At,Fr)=>{var Tr=(()=>{var p;var R=typeof document!="undefined"?(p=document.currentScript)==null?void 0:p.src:void 0;return function(v={}){var w,u=v,$,L,z=new Promise((e,r)=>{$=e,L=r}),V=typeof window=="object",J=typeof importScripts=="function",$r=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,q("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,c=n.remote_package_size;function f(y,C,S,F){var b=new XMLHttpRequest;b.open("GET",y,!0),b.responseType="arraybuffer",b.onprogress=function(P){var wt,_t;var O=y,D=C;if(P.total&&(D=P.total),P.loaded){b.addedTotal?u.dataFileDownloads[O].loaded=P.loaded:(b.addedTotal=!0,u.dataFileDownloads||(u.dataFileDownloads={}),u.dataFileDownloads[O]={loaded:P.loaded,total:D});var N=0,W=0,We=0;for(var je in u.dataFileDownloads){var Ie=u.dataFileDownloads[je];N+=Ie.total,W+=Ie.loaded,We++}N=Math.ceil(N*u.expectedDataFileDownloads/We),(wt=u.setStatus)==null||wt.call(u,`Downloading data... (${W}/${N})`)}else u.dataFileDownloads||(_t=u.setStatus)==null||_t.call(u,"Downloading data...")},b.onerror=function(P){throw new Error("NetworkError for: "+y)},b.onload=function(P){if(b.status==200||b.status==304||b.status==206||b.status==0&&b.response){var O=b.response;S(O)}else throw new Error(b.statusText+" : "+b.responseURL)},b.send(null)}function d(y){console.error("package error:",y)}var g=null,h=u.getPreloadedPackage?u.getPreloadedPackage(l,c):null;h||f(l,c,function(y){g?(g(y),g=null):h=y},d);function m(y){function C(O,D){if(!O)throw D+new Error().stack}function S(O,D,N){this.start=O,this.end=D,this.audio=N}S.prototype={requests:{},open:function(O,D){this.name=D,this.requests[D]=this,y.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){var O=this.byteArray.subarray(this.start,this.end);this.finish(O)},finish:function(O){var D=this;y.FS_createDataFile(this.name,null,O,!0,!0,!0),y.removeRunDependency(`fp ${D.name}`),this.requests[this.name]=null}};for(var F=n.files,b=0;b<F.length;++b)new S(F[b].start,F[b].end,F[b].audio||0).open("GET",F[b].filename);function P(O){C(O,"Loading data file failed."),C(O.constructor.name===ArrayBuffer.name,"bad input to processPackageData");var D=new Uint8Array(O);S.prototype.byteArray=D;for(var N=n.files,W=0;W<N.length;++W)S.prototype.requests[N[W].filename].onload();y.removeRunDependency("datafile_wasm_bindings.data")}y.addRunDependency("datafile_wasm_bindings.data"),y.preloadResults||(y.preloadResults={}),y.preloadResults[i]={fromCache:!1},h?(P(h),h=null):g=P}u.calledRun?m(u):(u.preRun||(u.preRun=[]),u.preRun.push(m))}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 Be=null,B=Object.assign({},u),Mr=[],me="./this.program",be=(e,r)=>{throw r},X="";function ce(e){return u.locateFile?u.locateFile(e,X):X+e}var ge,Y;(V||J)&&(J?X=self.location.href:typeof document!="undefined"&&document.currentScript&&(X=document.currentScript.src),Be&&(X=Be),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),q=u.printErr||console.error.bind(console);Object.assign(u,B),B=null,u.arguments&&(Mr=u.arguments),u.thisProgram&&(me=u.thisProgram),u.quit&&(be=u.quit);var Pe;u.wasmBinary&&(Pe=u.wasmBinary);var He,sr=!1,lr,U,H,ee,ze,_,T,Or,Wr;function jr(){var e=He.buffer;u.HEAP8=U=new Int8Array(e),u.HEAP16=ee=new Int16Array(e),u.HEAPU8=H=new Uint8Array(e),u.HEAPU16=ze=new Uint16Array(e),u.HEAP32=_=new Int32Array(e),u.HEAPU32=T=new Uint32Array(e),u.HEAPF32=Or=new Float32Array(e),u.HEAPF64=Wr=new Float64Array(e)}var Ir=[],xr=[],Nr=[],$t=!1;function Mt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)jt(u.preRun.shift());fr(Ir)}function Ot(){$t=!0,!u.noFSInit&&!a.init.initialized&&a.init(),a.ignorePermissions=!1,ie.init(),fr(xr)}function Wt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)xt(u.postRun.shift());fr(Nr)}function jt(e){Ir.unshift(e)}function It(e){xr.unshift(e)}function xt(e){Nr.unshift(e)}var fe=0,ur=null,Ce=null;function Ca(e){return e}function Ve(e){var r;fe++,(r=u.monitorRunDependencies)==null||r.call(u,fe)}function Ae(e){var t;if(fe--,(t=u.monitorRunDependencies)==null||t.call(u,fe),fe==0&&(ur!==null&&(clearInterval(ur),ur=null),Ce)){var r=Ce;Ce=null,r()}}function cr(e){var t;(t=u.onAbort)==null||t.call(u,e),e="Aborted("+e+")",q(e),sr=!0,lr=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw L(r),r}var Nt="data:application/octet-stream;base64,",Ur=e=>e.startsWith(Nt);function Ut(){var e="wasm_bindings.wasm";return Ur(e)?e:ce(e)}var qe;function Lr(e){if(e==qe&&Pe)return new Uint8Array(Pe);if(Y)return Y(e);throw"both async and sync fetching of the wasm failed"}function Lt(e){return Pe?Promise.resolve().then(()=>Lr(e)):ge(e).then(r=>new Uint8Array(r),()=>Lr(e))}function Br(e,r,t){return Lt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{q(`failed to asynchronously prepare wasm: ${n}`),cr(n)})}function Bt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Ur(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(o=>{var i=WebAssembly.instantiateStreaming(o,t);return i.then(n,function(s){return q(`wasm streaming compile failed: ${s}`),q("falling back to ArrayBuffer instantiation"),Br(r,t,n)})}):Br(r,t,n)}function Ht(){return{a:na}}function zt(){var e=Ht();function r(n,o){return x=n.exports,He=x.Z,jr(),at=x.aa,It(x._),Ae("wasm-instantiate"),x}Ve("wasm-instantiate");function t(n){r(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,r)}catch(n){q(`Module.instantiateWasm callback failed with error: ${n}`),L(n)}return qe||(qe=Ut()),Bt(Pe,qe,e,t).catch(L),{}}var E,j;function Vt(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var fr=e=>{for(;e.length>0;)e.shift()(u)},qt=u.noExitRuntime||!0;class Gt{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=gt(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,Kt=0,Xt=(e,r,t)=>{var n=new Gt(e);throw n.init(r,t),Hr=e,Kt++,Hr};function Ge(){var e=_[+I.varargs>>2];return I.varargs+=4,e}var ye=Ge,M={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=M.isAbs(e),t=e.substr(-1)==="/";return e=M.normalizeArray(e.split("/").filter(n=>!!n),!r).join("/"),!e&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=M.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=M.normalize(e),e=e.replace(/\/$/,"");var r=e.lastIndexOf("/");return r===-1?e:e.substr(r+1)},join:(...e)=>M.normalize(e.join("/")),join2:(e,r)=>M.normalize(e+"/"+r)},Yt=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);cr("initRandomDevice")},zr=e=>(zr=Yt())(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=M.isAbs(o)}return r=M.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(f){for(var d=0;d<f.length&&f[d]==="";d++);for(var g=f.length-1;g>=0&&f[g]==="";g--);return d>g?[]:f.slice(d,g-d+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 c=[],l=s;l<n.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")}},Vr=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&&Vr)return Vr.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 c=e[r++]&63;if((s&240)==224?s=(s&15)<<12|l<<6|c:s=(s&7)<<18|l<<12|c<<6|e[r++]&63,s<65536)i+=String.fromCharCode(s);else{var f=s-65536;i+=String.fromCharCode(55296|f>>10,56320|f&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},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 c=e.charCodeAt(++s);l=65536+((l&1023)<<10)|c&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 qr(e,r,t){var n=t>0?t:Te(e)+1,o=new Array(n),i=vr(e,o,0,o.length);return r&&(o.length=i),o}var Qt=()=>{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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-audio-effects",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "author": "vk.com",
5
5
  "description": "Audio effects library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",