@rive-app/flutter-wasm
Advanced tools
Comparing version 27.0.0 to 29.0.0
@@ -19,8 +19,8 @@ | ||
function Ha(a,b){var c=Da;return"function"!=typeof WebAssembly.instantiateStreaming||Ca(c)||ma(c)||ha||"function"!=typeof fetch?Ga(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){t(`wasm streaming compile failed: ${e}`);t("falling back to ArrayBuffer instantiation");return Ga(c,a,b)}))} | ||
var La={137560:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.Z){window.Z={za:0};window.Z.ga={};window.Z.ga.ya=a;window.Z.ga.capture=b;window.Z.ga.Ba=c;window.Z.sa={};window.Z.sa.stopped=d;window.Z.sa.Ya=e;let f=window.Z;f.ea=[];f.ob=function(g){for(var k=0;k<f.ea.length;++k)if(null==f.ea[k])return f.ea[k]=g,k;f.ea.push(g);return f.ea.length-1};f.$a=function(g){for(f.ea[g]=null;0<f.ea.length;)if(null== | ||
var La={137576:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.Z){window.Z={za:0};window.Z.ga={};window.Z.ga.ya=a;window.Z.ga.capture=b;window.Z.ga.Ba=c;window.Z.sa={};window.Z.sa.stopped=d;window.Z.sa.Ya=e;let f=window.Z;f.ea=[];f.ob=function(g){for(var k=0;k<f.ea.length;++k)if(null==f.ea[k])return f.ea[k]=g,k;f.ea.push(g);return f.ea.length-1};f.$a=function(g){for(f.ea[g]=null;0<f.ea.length;)if(null== | ||
f.ea[f.ea.length-1])f.ea.pop();else break};f.zb=function(g){for(var k=0;k<f.ea.length;++k)if(f.ea[k]==g)return f.$a(k)};f.ua=function(g){return f.ea[g]};f.Za=["touchend","click"];f.unlock=function(){for(var g=0;g<f.ea.length;++g){var k=f.ea[g];null!=k&&null!=k.ha&&k.state===f.sa.Ya&&k.ha.resume().then(()=>{Ia(k.Wa)},l=>{console.error("Failed to resume audiocontext",l)})}f.Za.map(function(l){document.removeEventListener(l,f.unlock,!0)})};f.Za.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.Z.za+= | ||
1;return 1},139738:()=>{"undefined"!==typeof window.Z&&(--window.Z.za,0===window.Z.za&&delete window.Z)},139902:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,140006:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},140177:(a,b,c,d,e,f)=>{if("undefined"===typeof window.Z)return-1;var g={},k={};a==window.Z.ga.ya&&0!=c&&(k.sampleRate=c);g.ha=new (window.AudioContext||window.webkitAudioContext)(k); | ||
1;return 1},139754:()=>{"undefined"!==typeof window.Z&&(--window.Z.za,0===window.Z.za&&delete window.Z)},139918:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,140022:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},140193:(a,b,c,d,e,f)=>{if("undefined"===typeof window.Z)return-1;var g={},k={};a==window.Z.ga.ya&&0!=c&&(k.sampleRate=c);g.ha=new (window.AudioContext||window.webkitAudioContext)(k); | ||
g.ha.suspend();g.state=window.Z.sa.stopped;c=0;a!=window.Z.ga.ya&&(c=b);g.qa=g.ha.createScriptProcessor(d,c,b);g.qa.onaudioprocess=function(l){if(null==g.va||0==g.va.length)g.va=new Float32Array(sa.buffer,e,d*b);if(a==window.Z.ga.capture||a==window.Z.ga.Ba){for(var h=0;h<b;h+=1)for(var q=l.inputBuffer.getChannelData(h),r=g.va,p=0;p<d;p+=1)r[p*b+h]=q[p];Ja(f,d,e)}if(a==window.Z.ga.ya||a==window.Z.ga.Ba)for(Ka(f,d,e),h=0;h<l.outputBuffer.numberOfChannels;++h)for(q=l.outputBuffer.getChannelData(h),r= | ||
g.va,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.Z.ga.capture&&a!=window.Z.ga.Ba||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Aa=g.ha.createMediaStreamSource(l);g.Aa.connect(g.qa);g.qa.connect(g.ha.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.Z.ga.ya&&g.qa.connect(g.ha.destination);g.Wa=f;return window.Z.ob(g)},143054:a=>window.Z.ua(a).ha.sampleRate, | ||
143127:a=>{a=window.Z.ua(a);void 0!==a.qa&&(a.qa.onaudioprocess=function(){},a.qa.disconnect(),a.qa=void 0);void 0!==a.Aa&&(a.Aa.disconnect(),a.Aa=void 0);a.ha.close();a.ha=void 0;a.Wa=void 0},143527:a=>{window.Z.$a(a)},143577:a=>{a=window.Z.ua(a);a.ha.resume();a.state=window.Z.sa.Ya},143716:a=>{a=window.Z.ua(a);a.ha.suspend();a.state=window.Z.sa.stopped}},Ma=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
g.va,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.Z.ga.capture&&a!=window.Z.ga.Ba||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Aa=g.ha.createMediaStreamSource(l);g.Aa.connect(g.qa);g.qa.connect(g.ha.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.Z.ga.ya&&g.qa.connect(g.ha.destination);g.Wa=f;return window.Z.ob(g)},143070:a=>window.Z.ua(a).ha.sampleRate, | ||
143143:a=>{a=window.Z.ua(a);void 0!==a.qa&&(a.qa.onaudioprocess=function(){},a.qa.disconnect(),a.qa=void 0);void 0!==a.Aa&&(a.Aa.disconnect(),a.Aa=void 0);a.ha.close();a.ha=void 0;a.Wa=void 0},143543:a=>{window.Z.$a(a)},143593:a=>{a=window.Z.ua(a);a.ha.resume();a.state=window.Z.sa.Ya},143732:a=>{a=window.Z.ua(a);a.ha.suspend();a.state=window.Z.sa.stopped}},Ma=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
return a},F=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ma(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Na=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&=b.substr(0,b.length-1);return a+b},Oa=a=>{if("/"===a)return"/";a=F(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Pa=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=> | ||
@@ -27,0 +27,0 @@ crypto.getRandomValues(c);if(ha)try{var a=require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}oa("initRandomDevice")},Qa=a=>(Qa=Pa())(a); |
@@ -19,8 +19,8 @@ | ||
function Ha(a,b){var c=Da;return"function"!=typeof WebAssembly.instantiateStreaming||Ca(c)||ma(c)||ha||"function"!=typeof fetch?Ga(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){t(`wasm streaming compile failed: ${e}`);t("falling back to ArrayBuffer instantiation");return Ga(c,a,b)}))} | ||
var La={137560:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.Z){window.Z={za:0};window.Z.ga={};window.Z.ga.ya=a;window.Z.ga.capture=b;window.Z.ga.Ba=c;window.Z.sa={};window.Z.sa.stopped=d;window.Z.sa.Ya=e;let f=window.Z;f.ea=[];f.ob=function(g){for(var k=0;k<f.ea.length;++k)if(null==f.ea[k])return f.ea[k]=g,k;f.ea.push(g);return f.ea.length-1};f.$a=function(g){for(f.ea[g]=null;0<f.ea.length;)if(null== | ||
var La={137576:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.Z){window.Z={za:0};window.Z.ga={};window.Z.ga.ya=a;window.Z.ga.capture=b;window.Z.ga.Ba=c;window.Z.sa={};window.Z.sa.stopped=d;window.Z.sa.Ya=e;let f=window.Z;f.ea=[];f.ob=function(g){for(var k=0;k<f.ea.length;++k)if(null==f.ea[k])return f.ea[k]=g,k;f.ea.push(g);return f.ea.length-1};f.$a=function(g){for(f.ea[g]=null;0<f.ea.length;)if(null== | ||
f.ea[f.ea.length-1])f.ea.pop();else break};f.zb=function(g){for(var k=0;k<f.ea.length;++k)if(f.ea[k]==g)return f.$a(k)};f.ua=function(g){return f.ea[g]};f.Za=["touchend","click"];f.unlock=function(){for(var g=0;g<f.ea.length;++g){var k=f.ea[g];null!=k&&null!=k.ha&&k.state===f.sa.Ya&&k.ha.resume().then(()=>{Ia(k.Wa)},l=>{console.error("Failed to resume audiocontext",l)})}f.Za.map(function(l){document.removeEventListener(l,f.unlock,!0)})};f.Za.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.Z.za+= | ||
1;return 1},139738:()=>{"undefined"!==typeof window.Z&&(--window.Z.za,0===window.Z.za&&delete window.Z)},139902:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,140006:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},140177:(a,b,c,d,e,f)=>{if("undefined"===typeof window.Z)return-1;var g={},k={};a==window.Z.ga.ya&&0!=c&&(k.sampleRate=c);g.ha=new (window.AudioContext||window.webkitAudioContext)(k); | ||
1;return 1},139754:()=>{"undefined"!==typeof window.Z&&(--window.Z.za,0===window.Z.za&&delete window.Z)},139918:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,140022:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},140193:(a,b,c,d,e,f)=>{if("undefined"===typeof window.Z)return-1;var g={},k={};a==window.Z.ga.ya&&0!=c&&(k.sampleRate=c);g.ha=new (window.AudioContext||window.webkitAudioContext)(k); | ||
g.ha.suspend();g.state=window.Z.sa.stopped;c=0;a!=window.Z.ga.ya&&(c=b);g.qa=g.ha.createScriptProcessor(d,c,b);g.qa.onaudioprocess=function(l){if(null==g.va||0==g.va.length)g.va=new Float32Array(sa.buffer,e,d*b);if(a==window.Z.ga.capture||a==window.Z.ga.Ba){for(var h=0;h<b;h+=1)for(var q=l.inputBuffer.getChannelData(h),r=g.va,p=0;p<d;p+=1)r[p*b+h]=q[p];Ja(f,d,e)}if(a==window.Z.ga.ya||a==window.Z.ga.Ba)for(Ka(f,d,e),h=0;h<l.outputBuffer.numberOfChannels;++h)for(q=l.outputBuffer.getChannelData(h),r= | ||
g.va,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.Z.ga.capture&&a!=window.Z.ga.Ba||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Aa=g.ha.createMediaStreamSource(l);g.Aa.connect(g.qa);g.qa.connect(g.ha.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.Z.ga.ya&&g.qa.connect(g.ha.destination);g.Wa=f;return window.Z.ob(g)},143054:a=>window.Z.ua(a).ha.sampleRate, | ||
143127:a=>{a=window.Z.ua(a);void 0!==a.qa&&(a.qa.onaudioprocess=function(){},a.qa.disconnect(),a.qa=void 0);void 0!==a.Aa&&(a.Aa.disconnect(),a.Aa=void 0);a.ha.close();a.ha=void 0;a.Wa=void 0},143527:a=>{window.Z.$a(a)},143577:a=>{a=window.Z.ua(a);a.ha.resume();a.state=window.Z.sa.Ya},143716:a=>{a=window.Z.ua(a);a.ha.suspend();a.state=window.Z.sa.stopped}},Ma=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
g.va,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.Z.ga.capture&&a!=window.Z.ga.Ba||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Aa=g.ha.createMediaStreamSource(l);g.Aa.connect(g.qa);g.qa.connect(g.ha.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.Z.ga.ya&&g.qa.connect(g.ha.destination);g.Wa=f;return window.Z.ob(g)},143070:a=>window.Z.ua(a).ha.sampleRate, | ||
143143:a=>{a=window.Z.ua(a);void 0!==a.qa&&(a.qa.onaudioprocess=function(){},a.qa.disconnect(),a.qa=void 0);void 0!==a.Aa&&(a.Aa.disconnect(),a.Aa=void 0);a.ha.close();a.ha=void 0;a.Wa=void 0},143543:a=>{window.Z.$a(a)},143593:a=>{a=window.Z.ua(a);a.ha.resume();a.state=window.Z.sa.Ya},143732:a=>{a=window.Z.ua(a);a.ha.suspend();a.state=window.Z.sa.stopped}},Ma=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
return a},F=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ma(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Na=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&=b.substr(0,b.length-1);return a+b},Oa=a=>{if("/"===a)return"/";a=F(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Pa=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=> | ||
@@ -27,0 +27,0 @@ crypto.getRandomValues(c);if(ha)try{var a=require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}oa("initRandomDevice")},Qa=a=>(Qa=Pa())(a); |
{ | ||
"name": "@rive-app/flutter-wasm", | ||
"version": "27.0.0", | ||
"version": "29.0.0", | ||
"description": "WASM portion of Rive's Flutter runtime.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://rive.app", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1458359