1 line
36 KiB
JavaScript
1 line
36 KiB
JavaScript
|
"use strict";(self.webpackChunkruffle_selfhosted=self.webpackChunkruffle_selfhosted||[]).push([[662],{762:(n,e,t)=>{function _(n,e){const t=n.length,_=n.getChannelData(0),r=n.getChannelData(1);let b=0,c=0;for(;c<t;)_[c]=e[b],r[c]=e[b+1],c++,b+=2}t.d(e,{tM:()=>_})},662:(n,e,t)=>{t.r(e),t.d(e,{Ruffle:()=>U,default:()=>H,initSync:()=>q});var _=t(762);n=t.hmd(n);const r="undefined"!=typeof AudioContext?AudioContext:"undefined"!=typeof webkitAudioContext?webkitAudioContext:void 0;let b;const c=new Array(32).fill(void 0);function f(n){return c[n]}c.push(void 0,null,!0,!1);let o=c.length;function i(n){const e=f(n);return function(n){n<36||(c[n]=o,o=n)}(n),e}const u=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});u.decode();let a=new Uint8Array;function g(){return 0===a.byteLength&&(a=new Uint8Array(b.memory.buffer)),a}function w(n,e){return u.decode(g().subarray(n,n+e))}function d(n){o===c.length&&c.push(c.length+1);const e=o;return o=c[e],c[e]=n,e}let s=0;const l=new TextEncoder("utf-8"),m="function"==typeof l.encodeInto?function(n,e){return l.encodeInto(n,e)}:function(n,e){const t=l.encode(n);return e.set(t),{read:n.length,written:t.length}};function y(n,e,t){if(void 0===t){const t=l.encode(n),_=e(t.length);return g().subarray(_,_+t.length).set(t),s=t.length,_}let _=n.length,r=e(_);const b=g();let c=0;for(;c<_;c++){const e=n.charCodeAt(c);if(e>127)break;b[r+c]=e}if(c!==_){0!==c&&(n=n.slice(c)),r=t(r,_,_=c+3*n.length);const e=g().subarray(r+c,r+_);c+=m(n,e).written}return s=c,r}function p(n){return null==n}let h=new Int32Array;function v(){return 0===h.byteLength&&(h=new Int32Array(b.memory.buffer)),h}let A=new Float64Array;function x(){return 0===A.byteLength&&(A=new Float64Array(b.memory.buffer)),A}let S=new BigInt64Array;function C(n){const e=typeof n;if("number"==e||"boolean"==e||null==n)return`${n}`;if("string"==e)return`"${n}"`;if("symbol"==e){const e=n.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==e){const e=n.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(n)){const e=n.length;let t="[";e>0&&(t+=C(n[0]));for(let _=1;_<e;_++)t+=", "+C(n[_]);return t+="]",t}const t=/\[object ([^\]]+)\]/.exec(toString.call(n));let _;if(!(t.length>1))return toString.call(n);if(_=t[1],"Object"==_)try{return"Object("+JSON.stringify(n)+")"}catch(n){return"Object"}return n instanceof Error?`${n.name}: ${n.message}\n${n.stack}`:_}function R(n,e,t,_){const r={a:n,b:e,cnt:1,dtor:t},c=(...n)=>{r.cnt++;const e=r.a;r.a=0;try{return _(e,r.b,...n)}finally{0==--r.cnt?b.__wbindgen_export_2.get(r.dtor)(e,r.b):r.a=e}};return c.original=r,c}function T(n,e){b._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h873a50ca316a3269(n,e)}function E(n,e,t){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1b8e63492585667c(n,e,d(t))}function F(n,e,t){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h290fb0fdd8b6051e(n,e,t)}function k(n,e,t){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2bb962ab8242f20b(n,e,d(t))}let M=new Float32Array;function P(n,e){return(0===M.byteLength&&(M=new Float32Array(b.memory.buffer)),M).subarray(n/4,n/4+e)}function L(n,e){try{return n.apply(this,e)}catch(n){b.__wbindgen_exn_store(d(n))}}let I=new Uint32Array;function O(n,e){return g().subarray(n/1,n/1+e)}function B(n,e){return x().subarray(n/8,n/8+e)}let W=new Uint8ClampedArray;function D(n,e){return(0===W.byteLength&&(W=new Uint8ClampedArray(b.memory.buffer)),W).subarray(n/1,n/1+e)}class U{static __wrap(n){const e=Object.create(U.prototype);return e.ptr=n,e}__destroy_into_raw(){const n=this.ptr;return this.ptr=0,n}free(){const n=this.__destroy_into_raw();b.__wbg_ruffle_free(n)}constructor(n,e,t){return i(b.ruffle_new(d(n),d(e),d(t)))}stream_from(n,e){try{const _=b.__wbindgen_add_to_stack_pointer(-16),r=y(n,b.__wbindgen_malloc,b.__wbindgen_realloc),c=s;b.ruffle_stream_from(_,this.ptr,r,c,d(e))
|