roulette/formats/ruffle/core.ruffle.f5509746453337578120.js

2 lines
58 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkruffle_selfhosted=self.webpackChunkruffle_selfhosted||[]).push([[159],{972:(e,n,_)=>{function t(e,n){const _=e.length,t=e.getChannelData(0),r=e.getChannelData(1);let b=0,f=0;for(;f<_;)t[f]=n[b],r[f]=n[b+1],f++,b+=2}function r(e,n){return e[n]}_.d(n,{$s:()=>r,tM:()=>t})},159:(e,n,_)=>{_.r(n),_.d(n,{Ruffle:()=>U,default:()=>N,initSync:()=>G});var t=_(972);e=_.hmd(e);const r="undefined"!=typeof AudioContext?AudioContext:"undefined"!=typeof webkitAudioContext?webkitAudioContext:void 0;let b;const f=new Array(128).fill(void 0);function c(e){return f[e]}f.push(void 0,null,!0,!1);let a=f.length;function u(e){const n=c(e);return function(e){e<132||(f[e]=a,a=e)}(e),n}function o(e){a===f.length&&f.push(f.length+1);const n=a;return a=f[n],f[n]=e,n}const i="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&i.decode();let g=null;function w(){return null!==g&&0!==g.byteLength||(g=new Uint8Array(b.memory.buffer)),g}function d(e,n){return e>>>=0,i.decode(w().subarray(e,e+n))}function l(e){return null==e}let s=null;function m(){return null!==s&&0!==s.byteLength||(s=new Float64Array(b.memory.buffer)),s}let p=null;function y(){return null!==p&&0!==p.byteLength||(p=new Int32Array(b.memory.buffer)),p}let h=0;const x="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},v="function"==typeof x.encodeInto?function(e,n){return x.encodeInto(e,n)}:function(e,n){const _=x.encode(e);return n.set(_),{read:e.length,written:_.length}};function S(e,n,_){if(void 0===_){const _=x.encode(e),t=n(_.length,1)>>>0;return w().subarray(t,t+_.length).set(_),h=_.length,t}let t=e.length,r=n(t,1)>>>0;const b=w();let f=0;for(;f<t;f++){const n=e.charCodeAt(f);if(n>127)break;b[r+f]=n}if(f!==t){0!==f&&(e=e.slice(f)),r=_(r,t,t=f+3*e.length,1)>>>0;const n=w().subarray(r+f,r+t);f+=v(e,n).written}return h=f,r}let A=null;function D(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let _="[";n>0&&(_+=D(e[0]));for(let t=1;t<n;t++)_+=", "+D(e[t]);return _+="]",_}const _=/\[object ([^\]]+)\]/.exec(toString.call(e));let t;if(!(_.length>1))return toString.call(e);if(t=_[1],"Object"==t)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:t}function I(e,n,_,t){const r={a:e,b:n,cnt:1,dtor:_},f=(...e)=>{r.cnt++;const n=r.a;r.a=0;try{return t(n,r.b,...e)}finally{0==--r.cnt?b.__wbindgen_export_2.get(r.dtor)(n,r.b):r.a=n}};return f.original=r,f}function T(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h14c5d9ffd7eceeb2(e,n,o(_))}function P(e,n){b._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf8e6b4d24101471f(e,n)}function E(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h929c75f3de6624fd(e,n,_)}function F(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha8ab2a0120f81bee(e,n,o(_))}function R(e,n){try{return e.apply(this,n)}catch(e){b.__wbindgen_exn_store(o(e))}}let M=null;function k(){return null!==M&&0!==M.byteLength||(M=new Uint32Array(b.memory.buffer)),M}let C=null;function B(e,n){return e>>>=0,(null!==C&&0!==C.byteLength||(C=new Float32Array(b.memory.buffer)),C).subarray(e/4,e/4+n)}function L(e,n){return e>>>=0,y().subarray(e/4,e/4+n)}function O(e,n){return e>>>=0,w().subarray(e/1,e/1+n)}let W=null;function V(e,n){return e>>>=0,(null!==W&&0!==W.byteLength||(W=new Uint8ClampedArray(b.memory.buffer)),W).subarray(e/1,e/1+n)}class U{static __wrap(e){e>>>=0;const n=Object.create(U.prototy
//# sourceMappingURL=core.ruffle.f5509746453337578120.js.map