sieni.rip/public/js/ruffle/ruffle.js

1 line
40 KiB
JavaScript

!function(e){function t(t){for(var n,o,i=t[0],_=t[1],s=0,c=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&c.push(r[o][0]),r[o]=0;for(n in _)Object.prototype.hasOwnProperty.call(_,n)&&(e[n]=_[n]);for(u&&u(t);c.length;)c.shift()()}var n={},r={0:0};var o={};var i={19:function(){return{"./ruffle_bg.js":{__wbindgen_object_drop_ref:function(e){return n[18].exports.Ke(e)},__wbindgen_object_clone_ref:function(e){return n[18].exports.Je(e)},__wbindgen_string_new:function(e,t){return n[18].exports.Me(e,t)},__wbindgen_cb_drop:function(e){return n[18].exports.we(e)},__wbg_copytoaudiobuffer_bc2638d0c6c805e8:function(e,t,r,o,i){return n[18].exports.R(e,t,r,o,i)},__wbg_new_59cb74e423758ede:function(){return n[18].exports.Bc()},__wbg_stack_558ba5917b466edd:function(e,t){return n[18].exports.Sd(e,t)},__wbg_error_4bb6c2a97407129a:function(e,t){return n[18].exports.Gb(e,t)},__wbindgen_is_undefined:function(e){return n[18].exports.Ge(e)},__wbg_instanceof_WebGl2RenderingContext_97ea0fcd122c6bea:function(e){return n[18].exports.lc(e)},__wbg_bindVertexArray_59be0e2201d7dbdd:function(e,t){return n[18].exports.t(e,t)},__wbg_blitFramebuffer_aa17daf6b5cc2353:function(e,t,r,o,i,_,s,c,a,u,f){return n[18].exports.v(e,t,r,o,i,_,s,c,a,u,f)},__wbg_createVertexArray_cc565c538c3ff35e:function(e){return n[18].exports.kb(e)},__wbg_renderbufferStorageMultisample_47edc08ff3d561e1:function(e,t,r,o,i,_){return n[18].exports.ad(e,t,r,o,i,_)},__wbg_texImage2D_7c342d7da3d1769d:function(e,t,r,o,i,_,s,c,a,u,f){return n[18].exports.ce(e,t,r,o,i,_,s,c,a,u,f)},__wbg_bindFramebuffer_909497f01b22ae78:function(e,t,r){return n[18].exports.n(e,t,r)},__wbg_bindRenderbuffer_5709350385f688fe:function(e,t,r){return n[18].exports.p(e,t,r)},__wbg_bindTexture_28d8d5d1a523ac28:function(e,t,r){return n[18].exports.q(e,t,r)},__wbg_createFramebuffer_cff051073cc4f9de:function(e){return n[18].exports.Z(e)},__wbg_createRenderbuffer_e0e686c2c64ac051:function(e){return n[18].exports.db(e)},__wbg_createTexture_c87d4dc81bfac194:function(e){return n[18].exports.ib(e)},__wbg_deleteFramebuffer_604948d1ba036dcc:function(e,t){return n[18].exports.pb(e,t)},__wbg_deleteRenderbuffer_1084c75f0e26d489:function(e,t){return n[18].exports.qb(e,t)},__wbg_deleteTexture_1577f0a89813c9e6:function(e,t){return n[18].exports.rb(e,t)},__wbg_framebufferRenderbuffer_b253d56019536236:function(e,t,r,o,i){return n[18].exports.Mb(e,t,r,o,i)},__wbg_framebufferTexture2D_2bdf4f4f57064288:function(e,t,r,o,i,_){return n[18].exports.Nb(e,t,r,o,i,_)},__wbg_getParameter_acf39109736e1337:function(e,t){return n[18].exports.Tb(e,t)},__wbg_texParameteri_c1771e59529aea60:function(e,t,r,o){return n[18].exports.fe(e,t,r,o)},__wbg_instanceof_Window_e8f84259147dce74:function(e){return n[18].exports.nc(e)},__wbg_document_d3b6d86af1c5d199:function(e){return n[18].exports.Ab(e)},__wbg_location_4c98b1eeb5ceccc0:function(e){return n[18].exports.vc(e)},__wbg_navigator_06614ec1a7c6bb66:function(e){return n[18].exports.yc(e)},__wbg_devicePixelRatio_8e0818d196b8e065:function(e){return n[18].exports.wb(e)},__wbg_performance_2f0ebe3582d821fa:function(e){return n[18].exports.Rc(e)},__wbg_localStorage_af1e27404b88ec8d:function(e){return n[18].exports.uc(e)},__wbg_cancelAnimationFrame_396f71da29fb2b46:function(e,t){return n[18].exports.D(e,t)},__wbg_open_31d01f90dab4c8c2:function(e,t,r,o,i){return n[18].exports.Pc(e,t,r,o,i)},__wbg_requestAnimationFrame_e5d576010b9bc3a3:function(e,t){return n[18].exports.bd(e,t)},__wbg_fetch_4875ac39fd69c38e:function(e,t){return n[18].exports.Ib(e,t)},__wbg_destination_4a04ba9566943864:function(e){return n[18].exports.vb(e)},__wbg_sampleRate_52a5aacf494fb3c5:function(e){return n[18].exports.fd(e)},__wbg_currentTime_20d36944472b4837:function(e){return n[18].exports.mb(e)},__wbg_new_583bf1d2aa1a9ec5:function(){return n[18].exports.Ac()},__wbg_createBuffer_4ce5716ff225c390:function(e,t,r,o){return n[18].exports.T(e,t,r,o)},__wbg_createBufferSource_1c77eeba474fe9a5:function(e){return n[18].exports.S(e)},__wbg_createChannelMerger_db33a704a0ef0c8e:function(e,t){return n[18].exports.V(e,t)},__wbg_createChannelSplitter_6f454bd7be9dfa95:function(e,t){return n[18].exports.W(e,t)},__wbg_createGain_930a8b3e46bb1543:function(e){return n[18].exports.ab(e)},__wbg_createScriptProcessor_b7f34ce7d72a0f94:function(e,t,r,o){return n[18].exports.fb(e,t,r,o)},__wbg_decodeAudioData_15310d637594c283:function(e,t,r,o){return n[18].exports.ob(e,t,r,o)},__wbg_resume_fe86f4338192997b:function(e){return n[18].exports.ed(e)},__wbg_href_a8cbdc4265f9260d:function(e,t){return n[18].exports.dc(e,t)},__wbg_assign_9830c201ec083b4c:function(e,t,r){return n[18].exports.i(e,t,r)},__wbg_baseURI_a91a685541700d87:function(e,t){return n[18].exports.k(e,t)},__wbg_appendChild_8658f795c44d1316:function(e,t){return n[18].exports.g(e,t)},__wbg_setTransform_ae7bbf442801ff13:function(e,t){return n[18].exports.md(e,t)},__wbg_setProperty_4a05a7c81066031f:function(e,t,r,o,i){return n[18].exports.ld(e,t,r,o,i)},__wbg_new_907cc1f856407d90:function(){return n[18].exports.Ec()},__wbg_addPath_08b92082918b320f:function(e,t,r){return n[18].exports.f(e,t,r)},__wbg_closePath_2db6e96d980466c8:function(e){return n[18].exports.K(e)},__wbg_lineTo_80a64fb71eaa4f50:function(e,t,r){return n[18].exports.rc(e,t,r)},__wbg_moveTo_9b59616d61c8e95e:function(e,t,r){return n[18].exports.xc(e,t,r)},__wbg_quadraticCurveTo_b6f2048034fa4770:function(e,t,r,o,i){return n[18].exports.Wc(e,t,r,o,i)},__wbg_get_55278c28784fdead:function(e,t,r,o){return n[18].exports.Zb(e,t,r,o)},__wbg_set_605048df88d6ef87:function(e,t,r,o,i){return n[18].exports.qd(e,t,r,o,i)},__wbg_delete_47e633040bf355a3:function(e,t,r){return n[18].exports.sb(e,t,r)},__wbg_instanceof_SvgsvgElement_f3753062ec606463:function(e){return n[18].exports.kc(e)},__wbg_createSVGMatrix_84dab35cc4ba4602:function(e){return n[18].exports.eb(e)},__wbg_length_6b38ac4d6fe7d548:function(e){return n[18].exports.qc(e)},__wbg_connect_11991f366578ef1d:function(e,t){return n[18].exports.O(e,t)},__wbg_connect_fa198db0ed637b27:function(e,t,r){return n[18].exports.Q(e,t,r)},__wbg_connect_3ef9f7a5195e4fd9:function(e,t,r,o){return n[18].exports.P(e,t,r,o)},__wbg_disconnect_6e14c76f707649cc:function(e){return n[18].exports.zb(e)},__wbg_offsetX_08c9c32119cefae0:function(e){return n[18].exports.Nc(e)},__wbg_offsetY_d2d82e37cd77b9e5:function(e){return n[18].exports.Oc(e)},__wbg_bindVertexArrayOES_c00fef873be0e2f3:function(e,t){return n[18].exports.s(e,t)},__wbg_createVertexArrayOES_267fca9d282a48fe:function(e){return n[18].exports.jb(e)},__wbg_outputBuffer_9cc7d6c1ba6def8b:function(e){return n[18].exports.Qc(e)},__wbg_instanceof_Response_df90672bc1607490:function(e){return n[18].exports.jc(e)},__wbg_arrayBuffer_b6591b9332fe79c7:function(e){return n[18].exports.h(e)},__wbg_seta_4e179540cb21d0b8:function(e,t){return n[18].exports.sd(e,t)},__wbg_setb_bfd800553050c9b4:function(e,t){return n[18].exports.td(e,t)},__wbg_setc_eea867821f531c4d:function(e,t){return n[18].exports.vd(e,t)},__wbg_setd_5d0c7b95228847ef:function(e,t){return n[18].exports.wd(e,t)},__wbg_sete_dd00c7114da73cdc:function(e,t){return n[18].exports.xd(e,t)},__wbg_setf_72f9563958290824:function(e,t){return n[18].exports.yd(e,t)},__wbg_deltaY_382e72a682f18515:function(e){return n[18].exports.ub(e)},__wbg_deltaMode_afd49f429e5a6a7f:function(e){return n[18].exports.tb(e)},__wbg_setbuffer_a11fc5f455527b2e:function(e,t){return n[18].exports.ud(e,t)},__wbg_setloop_692aa5fa77d1435e:function(e,t){return n[18].exports.Kd(e,t)},__wbg_setloopStart_a9df52729444b165:function(e,t){return n[18].exports.Jd(e,t)},__wbg_setloopEnd_d7b67bff47853088:function(e,t){return n[18].exports.Id(e,t)},__wbg_start_90936df7ba31920f:function(e){return n[18].exports.Ud(e)},__wbg_start_6bb824913d090a2c:function(e,t,r){return n[18].exports.Td(e,t,r)},__wbg_stop_784189dd996e9a18:function(e,t){return n[18].exports.Yd(e,t)},__wbg_instanceof_HtmlFormElement_a891583399361910:function(e){return n[18].exports.ic(e)},__wbg_submit_e9549fdfbfb33ad9:function(e){return n[18].exports.be(e)},__wbg_pointerId_ae033d6fc8ddb366:function(e){return n[18].exports.Tc(e)},__wbg_addEventListener_116c561435e7160d:function(e,t,r,o){return n[18].exports.c(e,t,r,o)},__wbg_addEventListener_27eb43df29303d67:function(e,t,r,o,i){return n[18].exports.d(e,t,r,o,i)},__wbg_addEventListener_8f13c12873d4a8d8:function(e,t,r,o,i){return n[18].exports.e(e,t,r,o,i)},__wbg_instanceof_HtmlCanvasElement_d2d7786f00856e0a:function(e){return n[18].exports.hc(e)},__wbg_width_175e0a733f9f4219:function(e){return n[18].exports.te(e)},__wbg_setwidth_8d33dd91eeeee87d:function(e,t){return n[18].exports.Pd(e,t)},__wbg_height_d91cbd8f64ea6e32:function(e){return n[18].exports.cc(e)},__wbg_setheight_757ff0f25240fd75:function(e,t){return n[18].exports.Dd(e,t)},__wbg_getContext_59043a63a2f9266b:function(e,t,r){return n[18].exports.Qb(e,t,r)},__wbg_getContext_dc042961dbf1dae9:function(e,t,r,o){return n[18].exports.Rb(e,t,r,o)},__wbg_setsrc_e1f6baacb3a92a01:function(e,t,r){return n[18].exports.Nd(e,t,r)},__wbg_new_ee3c59abbd5bd329:function(){return n[18].exports.Fc()},__wbg_newwithwidthandheight_07cc59bacbf08b6d:function(e,t){return n[18].exports.Lc(e,t)},__wbg_key_0b3d2c7a78af4571:function(e,t){return n[18].exports.oc(e,t)},__wbg_code_59e0af7de7519251:function(e,t){return n[18].exports.L(e,t)},__wbg_now_acfa6ea53a7be2c2:function(e){return n[18].exports.Mc(e)},__wbg_setonaudioprocess_bcd0ba7bbd1d1662:function(e,t){return n[18].exports.Md(e,t)},__wbg_body_61c142aa6eae691f:function(e){return n[18].exports.w(e)},__wbg_createElement_d00b8e24838e36e1:function(e,t,r){return n[18].exports.Y(e,t,r)},__wbg_createElementNS_8f6ff05d30034b4f:function(e,t,r,o,i){return n[18].exports.X(e,t,r,o,i)},__wbg_setid_ca09b3478cbdf493:function(e,t,r){return n[18].exports.Ed(e,t,r)},__wbg_clientWidth_9d49a840a7d34231:function(e){return n[18].exports.J(e)},__wbg_clientHeight_61a64caaa4444b63:function(e){return n[18].exports.I(e)},__wbg_querySelector_ec8875ca39624b79:function(e,t,r){return n[18].exports.Xc(e,t,r)},__wbg_releasePointerCapture_140f86bfc6a109a8:function(e,t){return n[18].exports.Yc(e,t)},__wbg_setAttribute_156f15ecfed9f628:function(e,t,r,o,i){return n[18].exports.jd(e,t,r,o,i)},__wbg_setAttributeNS_b4ddd20d2f9373cd:function(e,t,r,o,i,_,s){return n[18].exports.id(e,t,r,o,i,_,s)},__wbg_setPointerCapture_26979bd07b1c5f7d:function(e,t){return n[18].exports.kd(e,t)},__wbg_remove_753943fab80b89c7:function(e){return n[18].exports.Zc(e)},__wbg_instanceof_WebGlRenderingContext_b25acea07fa8a767:function(e){return n[18].exports.mc(e)},__wbg_bufferData_9f31e49b55a28f79:function(e,t,r,o,i){return n[18].exports.x(e,t,r,o,i)},__wbg_texImage2D_c8fd6a97bf6a7a48:function(e,t,r,o,i,_,s,c,a,u,f){return n[18].exports.de(e,t,r,o,i,_,s,c,a,u,f)},__wbg_uniform1fv_37e83cc4d155992b:function(e,t,r,o){return n[18].exports.je(e,t,r,o)},__wbg_uniform4fv_103f58acbd7fb97a:function(e,t,r,o){return n[18].exports.le(e,t,r,o)},__wbg_uniformMatrix3fv_3098ede353246b9d:function(e,t,r,o,i){return n[18].exports.me(e,t,r,o,i)},__wbg_uniformMatrix4fv_587c4710f3d658e8:function(e,t,r,o,i){return n[18].exports.ne(e,t,r,o,i)},__wbg_activeTexture_85a6cc041d2d1975:function(e,t){return n[18].exports.b(e,t)},__wbg_attachShader_d87c96f460f4eb6e:function(e,t,r){return n[18].exports.j(e,t,r)},__wbg_bindBuffer_449cd5290cdcf8fc:function(e,t,r){return n[18].exports.l(e,t,r)},__wbg_bindFramebuffer_812afdb157a89267:function(e,t,r){return n[18].exports.m(e,t,r)},__wbg_bindRenderbuffer_4cc12911711a1ccf:function(e,t,r){return n[18].exports.o(e,t,r)},__wbg_bindTexture_5cb608a16add8d39:function(e,t,r){return n[18].exports.r(e,t,r)},__wbg_blendFunc_29bd12994d15280b:function(e,t,r){return n[18].exports.u(e,t,r)},__wbg_clear_cef7e1e0e1ba5465:function(e,t){return n[18].exports.H(e,t)},__wbg_clearColor_1010eed213a6cae8:function(e,t,r,o,i){return n[18].exports.E(e,t,r,o,i)},__wbg_clearStencil_99210f815b8dbecf:function(e,t){return n[18].exports.G(e,t)},__wbg_colorMask_ea119462e095245f:function(e,t,r,o,i){return n[18].exports.M(e,t,r,o,i)},__wbg_compileShader_5d4e462508b1515e:function(e,t){return n[18].exports.N(e,t)},__wbg_createBuffer_e8cf486cca25f5ed:function(e){return n[18].exports.U(e)},__wbg_createProgram_74d233ba41538562:function(e){return n[18].exports.cb(e)},__wbg_createShader_c35e740afca0efee:function(e,t){return n[18].exports.gb(e,t)},__wbg_createTexture_87a93aac65d1db98:function(e){return n[18].exports.hb(e)},__wbg_disable_22c1ff07911dd40d:function(e,t){return n[18].exports.yb(e,t)},__wbg_disableVertexAttribArray_0d0121ed6f1b8e87:function(e,t){return n[18].exports.xb(e,t)},__wbg_drawElements_aea82c3e1c9ef971:function(e,t,r,o,i){return n[18].exports.Bb(e,t,r,o,i)},__wbg_enable_661b8ab579bd9c69:function(e,t){return n[18].exports.Fb(e,t)},__wbg_enableVertexAttribArray_eda4ec3cc346806e:function(e,t){return n[18].exports.Eb(e,t)},__wbg_getAttribLocation_2d81461aadc11bf6:function(e,t,r,o){return n[18].exports.Pb(e,t,r,o)},__wbg_getExtension_eb70e347733b74bb:function(e,t,r){return n[18].exports.Sb(e,t,r)},__wbg_getProgramInfoLog_22b088fe758b29aa:function(e,t,r){return n[18].exports.Ub(e,t,r)},__wbg_getProgramParameter_328434b297539fba:function(e,t,r){return n[18].exports.Vb(e,t,r)},__wbg_getShaderInfoLog_1310dfc6a6714341:function(e,t,r){return n[18].exports.Wb(e,t,r)},__wbg_getUniformLocation_356ed70052165dab:function(e,t,r,o){return n[18].exports.Xb(e,t,r,o)},__wbg_linkProgram_413f1735416682a4:function(e,t){return n[18].exports.tc(e,t)},__wbg_pixelStorei_e5deb861cb5a37d5:function(e,t,r){return n[18].exports.Sc(e,t,r)},__wbg_scissor_df421e7ad1bf7037:function(e,t,r,o,i){return n[18].exports.gd(e,t,r,o,i)},__wbg_shaderSource_e95e88c01a88e78d:function(e,t,r,o){return n[18].exports.Qd(e,t,r,o)},__wbg_stencilFunc_7931377fd55298cc:function(e,t,r,o){return n[18].exports.Vd(e,t,r,o)},__wbg_stencilMask_b525f26c442bd3e8:function(e,t){return n[18].exports.Wd(e,t)},__wbg_stencilOp_8652b3ae60af671d:function(e,t,r,o){return n[18].exports.Xd(e,t,r,o)},__wbg_texParameteri_8bb94654a8896fcf:function(e,t,r,o){return n[18].exports.ee(e,t,r,o)},__wbg_uniform1f_8702b2439184a87a:function(e,t,r){return n[18].exports.ie(e,t,r)},__wbg_uniform1i_a190be18b9337370:function(e,t,r){return n[18].exports.ke(e,t,r)},__wbg_useProgram_0172835766dd7682:function(e,t){return n[18].exports.oe(e,t)},__wbg_vertexAttribPointer_9b02a6534c78223e:function(e,t,r,o,i,_,s){return n[18].exports.qe(e,t,r,o,i,_,s)},__wbg_viewport_58b0f8fe573107b8:function(e,t,r,o,i){return n[18].exports.re(e,t,r,o,i)},__wbg_debug_ef2b78738889619f:function(e){return n[18].exports.nb(e)},__wbg_error_7dcc755846c00ef7:function(e){return n[18].exports.Hb(e)},__wbg_info_43f70b84e943346e:function(e){return n[18].exports.ec(e)},__wbg_log_61ea781bd002cc41:function(e){return n[18].exports.wc(e)},__wbg_warn_502e53bc79de489a:function(e){return n[18].exports.se(e)},__wbg_style_ae2bb40204a83a34:function(e){return n[18].exports.ae(e)},__wbg_linearRampToValueAtTime_0c7578bfc5766877:function(e,t,r){return n[18].exports.sc(e,t,r)},__wbg_setValueAtTime_d8ca4ed19b09d355:function(e,t,r){return n[18].exports.od(e,t,r)},__wbg_newwithbuffersourcesequenceandoptions_3f7810a892cf2bd7:function(e,t){return n[18].exports.Ic(e,t)},__wbg_currentTarget_d7d34adcbd572c5f:function(e){return n[18].exports.lb(e)},__wbg_preventDefault_7670dc6ff59bc226:function(e){return n[18].exports.Uc(e)},__wbg_gain_1ad9acb6884e5263:function(e){return n[18].exports.Ob(e)},__wbg_userAgent_8bf466a0a6d08f06:function(e,t){return n[18].exports.pe(e,t)},__wbg_newwithstrandinit_b18f1bd8ba76e760:function(e,t,r){return n[18].exports.Kc(e,t,r)},__wbg_instanceof_CanvasRenderingContext2d_967775b24c689b32:function(e){return n[18].exports.gc(e)},__wbg_setglobalAlpha_7f2689466ec28b69:function(e,t){return n[18].exports.Bd(e,t)},__wbg_setglobalCompositeOperation_31ac516f3412a25f:function(e,t,r){return n[18].exports.Cd(e,t,r)},__wbg_setstrokeStyle_3630e4f599202231:function(e,t){return n[18].exports.Od(e,t)},__wbg_setfillStyle_c05ba2508c693321:function(e,t){return n[18].exports.zd(e,t)},__wbg_setfilter_452718f73c680db0:function(e,t,r){return n[18].exports.Ad(e,t,r)},__wbg_setlineWidth_653e5b54ced349b7:function(e,t){return n[18].exports.Hd(e,t)},__wbg_setlineCap_417ba9129bba9a3f:function(e,t,r){return n[18].exports.Fd(e,t,r)},__wbg_setlineJoin_530e610ffcf85bbc:function(e,t,r){return n[18].exports.Gd(e,t,r)},__wbg_setmiterLimit_d75a22f27935d78e:function(e,t){return n[18].exports.Ld(e,t)},__wbg_drawImage_cb573c95f259857e:function(e,t,r,o){return n[18].exports.Db(e,t,r,o)},__wbg_drawImage_bbf7a4f3f839531f:function(e,t,r,o){return n[18].exports.Cb(e,t,r,o)},__wbg_fill_3edc044bda6e01a5:function(e,t){return n[18].exports.Lb(e,t)},__wbg_stroke_bd00e5a76599a8e4:function(e,t){return n[18].exports.Zd(e,t)},__wbg_createPattern_b812062ab0783413:function(e,t,r,o){return n[18].exports.bb(e,t,r,o)},__wbg_clearRect_13420eee41411ed3:function(e,t,r,o,i){return n[18].exports.F(e,t,r,o,i)},__wbg_fillRect_57b5c7207b51d2b9:function(e,t,r,o,i){return n[18].exports.Jb(e,t,r,o,i)},__wbg_resetTransform_96f4b72ba9473f97:function(e){return n[18].exports.cd(e)},__wbg_setTransform_e7560d1a9c3684ed:function(e,t,r,o,i,_,s){return n[18].exports.nd(e,t,r,o,i,_,s)},__wbg_get_2e96a823c1c5a5bd:function(e,t){return n[18].exports.Yb(e,t)},__wbg_call_e9f0ce4da840ab94:function(e,t){return n[18].exports.C(e,t)},__wbg_new_17534eac4df3cd22:function(){return n[18].exports.zc()},__wbg_push_7114ccbf1c58e41f:function(e,t){return n[18].exports.Vc(e,t)},__wbg_instanceof_ArrayBuffer_13deac6f163ebe71:function(e){return n[18].exports.fc(e)},__wbg_new_f0a96bae04015474:function(e){return n[18].exports.Gc(e)},__wbg_slice_e3f561765c5f3988:function(e,t,r){return n[18].exports.Rd(e,t,r)},__wbg_newnoargs_e2fdfe2af14a2323:function(e,t){return n[18].exports.Hc(e,t)},__wbg_new_8172f4fed77fdb7c:function(){return n[18].exports.Cc()},__wbg_resolve_4df26938859b92e3:function(e){return n[18].exports.dd(e)},__wbg_then_ffb6e71f7a6735ad:function(e,t){return n[18].exports.he(e,t)},__wbg_then_021fcdc7f0350b58:function(e,t,r){return n[18].exports.ge(e,t,r)},__wbg_self_179e8c2a5a4c73a3:function(){return n[18].exports.hd()},__wbg_window_492cfe63a6e41dfa:function(){return n[18].exports.ue()},__wbg_globalThis_8ebfea75c2dd63ee:function(){return n[18].exports.ac()},__wbg_global_62ea2619f58bf94d:function(){return n[18].exports.bc()},__wbg_buffer_88f603259d7a7b82:function(e){return n[18].exports.y(e)},__wbg_newwithbyteoffsetandlength_a048d126789a272b:function(e,t,r){return n[18].exports.Jc(e,t,r)},__wbg_length_2e98733d73dac355:function(e){return n[18].exports.pc(e)},__wbg_new_85d8a1fc4384acef:function(e){return n[18].exports.Dc(e)},__wbg_set_478951586c457484:function(e,t,r){return n[18].exports.pd(e,t,r)},__wbg_fill_0301977ec535bfd6:function(e,t,r,o){return n[18].exports.Kb(e,t,r,o)},__wbg_buffer_e83d375a8e411d5d:function(e){return n[18].exports.z(e)},__wbg_byteLength_eaa4a2fa4e78c5ae:function(e){return n[18].exports.A(e)},__wbg_byteOffset_7d59c5457b913ba9:function(e){return n[18].exports.B(e)},__wbg_set_afe54b1eeb1aa77c:function(e,t,r){return n[18].exports.rd(e,t,r)},__wbindgen_number_get:function(e,t){return n[18].exports.Ie(e,t)},__wbindgen_boolean_get:function(e){return n[18].exports.ve(e)},__wbindgen_debug_string:function(e,t){return n[18].exports.Fe(e,t)},__wbindgen_throw:function(e,t){return n[18].exports.Ne(e,t)},__wbindgen_rethrow:function(e){return n[18].exports.Le(e)},__wbindgen_memory:function(){return n[18].exports.He()},__wbindgen_closure_wrapper959:function(e,t,r){return n[18].exports.Ee(e,t,r)},__wbindgen_closure_wrapper419:function(e,t,r){return n[18].exports.ye(e,t,r)},__wbindgen_closure_wrapper429:function(e,t,r){return n[18].exports.De(e,t,r)},__wbindgen_closure_wrapper423:function(e,t,r){return n[18].exports.Ae(e,t,r)},__wbindgen_closure_wrapper427:function(e,t,r){return n[18].exports.Ce(e,t,r)},__wbindgen_closure_wrapper425:function(e,t,r){return n[18].exports.Be(e,t,r)},__wbindgen_closure_wrapper417:function(e,t,r){return n[18].exports.xe(e,t,r)},__wbindgen_closure_wrapper421:function(e,t,r){return n[18].exports.ze(e,t,r)}}}}};function _(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,_),r.l=!0,r.exports}_.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var s=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=s);var c,a=document.createElement("script");a.charset="utf-8",a.timeout=120,_.nc&&a.setAttribute("nonce",_.nc),a.src=function(e){return _.p+"core.ruffle."+{1:"683ad1fed53e69d660e8"}[e]+".js"}(e);var u=new Error;c=function(t){a.onerror=a.onload=null,clearTimeout(f);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,n[1](u)}r[e]=void 0}};var f=setTimeout((function(){c({type:"timeout",target:a})}),12e4);a.onerror=a.onload=c,document.head.appendChild(a)}return({1:[19]}[e]||[]).forEach((function(e){var n=o[e];if(n)t.push(n);else{var r,s=i[e](),c=fetch(_.p+""+{19:"1d7f9c2524fb344daa8b"}[e]+".module.wasm");if(s instanceof Promise&&"function"==typeof WebAssembly.compileStreaming)r=Promise.all([WebAssembly.compileStreaming(c),s]).then((function(e){return WebAssembly.instantiate(e[0],e[1])}));else if("function"==typeof WebAssembly.instantiateStreaming)r=WebAssembly.instantiateStreaming(c,s);else{r=c.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,s)}))}t.push(o[e]=r.then((function(t){return _.w[e]=(t.instance||t).exports})))}})),Promise.all(t)},_.m=e,_.c=n,_.d=function(e,t,n){_.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.t=function(e,t){if(1&t&&(e=_(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(_.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)_.d(n,r,function(t){return e[t]}.bind(null,r));return n},_.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return _.d(t,"a",t),t},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.p="",_.oe=function(e){throw console.error(e),e},_.w={};var s=window.RufflePlayerLoader=window.RufflePlayerLoader||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var u=c;_(_.s=11)}([function(e,t){var n={};t.lookup_element=function(e){let t=n[e];return void 0!==t?{internal_name:e,name:t.name,class:t.class}:null},t.register_element=function(e,t){if(void 0!==n[e]){if(n[e].class!==t)throw new Error("Internal naming conflict on "+e);return n[e].name}let r=0;for(;;)try{let o=e;return r>0&&(o=o+"-"+r),window.customElements.define(o,t),n[e]={class:t,name:o,internal_name:e},o}catch(e){"NotSupportedError"===e.name&&(r+=1)}}},function(e,t,n){const r=n(8),o=n(9),{lookup_element:i}=n(0);t.FLASH_MIMETYPE="application/x-shockwave-flash",t.FUTURESPLASH_MIMETYPE="application/futuresplash",t.FLASH7_AND_8_MIMETYPE="application/x-shockwave-flash2-preview",t.FLASH_MOVIE_MIMETYPE="application/vnd.adobe.flash-movie",t.FLASH_ACTIVEX_CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";const _=/^\s*(\d+(\.\d+)?(%)?)/;t.RufflePlayer=class e extends HTMLElement{constructor(...e){let t=super(...e);return t.shadow=t.attachShadow({mode:"closed"}),t.shadow.appendChild(o.content.cloneNode(!0)),t.dynamic_styles=t.shadow.getElementById("dynamic_styles"),t.container=t.shadow.getElementById("container"),t.play_button=t.shadow.getElementById("play_button"),t.play_button&&t.play_button.addEventListener("click",t.play_button_clicked.bind(t)),t.instance=null,t.Ruffle=r(),t}connectedCallback(){this.update_styles()}static get observedAttributes(){return["width","height"]}attributeChangedCallback(e){"width"!==e&&"height"!==e||this.update_styles()}disconnectedCallback(){this.instance&&(this.instance.destroy(),this.instance=null,console.log("Ruffle instance destroyed."))}update_styles(){if(this.dynamic_styles.sheet){if(this.dynamic_styles.sheet.rules)for(var t=0;t<this.dynamic_styles.sheet.rules.length;t++)this.dynamic_styles.sheet.deleteRule(t);if(this.attributes.width){let t=e.html_dimension_to_css_dimension(this.attributes.width.value);null!==t&&this.dynamic_styles.sheet.insertRule(`:host { width: ${t}; }`)}if(this.attributes.height){let t=e.html_dimension_to_css_dimension(this.attributes.height.value);null!==t&&this.dynamic_styles.sheet.insertRule(`:host { height: ${t}; }`)}}}is_unused_fallback_object(){let e=this.parentNode,t=i("ruffle-object");if(null!==t)do{if(e.nodeName===t.name)return!0;e=e.parentNode}while(e!=document);return!1}async ensure_fresh_instance(){this.instance&&(this.instance.destroy(),this.instance=null,console.log("Ruffle instance destroyed."));let e=await this.Ruffle.catch((function(e){throw console.error("Serious error loading Ruffle: "+e),e}));this.instance=e.new(this.container),console.log("New Ruffle instance created.")}async stream_swf_url(e){try{this.isConnected&&!this.is_unused_fallback_object()?(console.log("Loading SWF file "+e),await this.ensure_fresh_instance(),this.instance.stream_from(e),this.play_button&&(this.play_button.style.display="block")):console.warn("Ignoring attempt to play a disconnected or suspended Ruffle element")}catch(e){throw console.error("Serious error occured loading SWF file: "+e),e}}play_button_clicked(){this.instance&&(this.instance.play(),this.play_button&&(this.play_button.style.display="none"))}async play_swf_data(e){this.isConnected&&!this.is_unused_fallback_object()?(console.log("Got SWF data"),await this.ensure_fresh_instance(),this.instance.load_data(new Uint8Array(e)),console.log("New Ruffle instance created."),this.play_button&&(this.play_button.style.display="block")):console.warn("Ignoring attempt to play a disconnected or suspended Ruffle element")}copy_element(e){if(e){for(let t of e.attributes)if(t.specified){if("title"===t.name&&"Adobe Flash Player"===t.value)continue;try{this.setAttribute(t.name,t.value)}catch(e){console.warn(`Unable to set attribute ${t.name} on Ruffle instance`)}}for(let t of Array.from(e.children))this.appendChild(t)}}static html_dimension_to_css_dimension(e){if(e){let t=e.match(_);if(t){let e=t[1];return t[3]||(e+="px"),e}}return null}},t.is_swf_filename=function(e){return e&&"string"==typeof e&&(e.search(/\.swf\s*$/i)>=0||e.search(/\.spl\s*$/i)>=0)}},function(e,t){t.Version=class e{constructor(e,t,n,r,o){this.major=e,this.minor=t,this.patch=n,this.pr_ident=r,this.build_ident=o}static from_semver(t){let n=t.split("+"),r=n[0].split("-"),o=r[0].split("."),i=[];return i.push(parseInt(o[0],10)),null!=o[1]?i.push(parseInt(o[1],10)):i.push(0),null!=o[2]?i.push(parseInt(o[2],10)):i.push(0),null!=r[1]?i.push(r[1].split(".")):i.push(void 0),null!=n[1]?i.push(n[1].split(".")):i.push(void 0),new e(i[0],i[1],i[2],i[3],i[4])}is_compatible_with(e){return 0!==this.major&&this.major===e.major||0===this.major&&0===e.major&&0!==this.minor&&this.minor===e.minor||0===this.major&&0===e.major&&0===this.minor&&0===e.minor&&0!==this.patch&&this.patch===e.patch}has_precedence_over(e){if(this.major>e.major)return!0;if(this.major<e.major)return!1;if(this.minor>e.minor)return!0;if(this.minor<e.minor)return!1;if(this.patch>e.patch)return!0;if(this.patch<e.patch)return!1;if(void 0===this.pr_ident&&void 0!==e.pr_ident)return!0;if(void 0!==this.pr_ident&&void 0!==e.pr_ident){let t=/^[0-9]*$/;for(let n=0;n<this.pr_ident.length&&n<e.pr_ident.length;n+=1){if(!t.test(this.pr_ident[n])&&t.test(e.pr_ident[n]))return!0;if(t.test(this.pr_ident[n])&&t.test(e.pr_ident[n])){if(parseInt(this.pr_ident[n],10)>parseInt(e.pr_ident[n],10))return!0;if(parseInt(this.pr_ident[n],10)<parseInt(e.pr_ident[n],10))return!1}else{if(t.test(this.pr_ident[n])&&!t.test(e.pr_ident[n]))return!1;if(!t.test(this.pr_ident[n])&&!t.test(e.pr_ident[n])){if(this.pr_ident[n]>e.pr_ident[n])return!0;if(this.pr_ident[n]<e.pr_ident[n])return!1}}}return this.pr_ident.length>e.pr_ident.length}return!1}is_equal(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch}is_stable_or_compatible_prerelease(e){return void 0===e.pr_ident||this.major===e.major&&this.minor===e.minor&&this.patch===e.patch}}},function(e,t,n){const{Version:r}=n(2);t.VersionRange=class e{constructor(e){this.requirements=e}satisfied_by(e){for(let t=0;t<this.requirements.length;t+=1){let n=!0;for(let r=0;r<this.requirements[t].length;r+=1){let o=this.requirements[t][r][0],i=this.requirements[t][r][1];n=n&&i.is_stable_or_compatible_prerelease(e),""===o||"="===o?n=n&&i.is_equal(e):">"===o?n=n&&e.has_precedence_over(i):">="===o?n=n&&(e.has_precedence_over(i)||i.is_equal(e)):"<"===o?n=n&&i.has_precedence_over(e):"<="===o?n=n&&(i.has_precedence_over(e)||i.is_equal(e)):"^"===o&&(n=n&&i.is_compatible_with(e))}if(n)return!0}return!1}static from_requirement_string(t){let n=t.split(" "),o=[],i=[];for(let e=0;e<n.length;e+=1)if("||"===n[e])o.length>0&&(i.push(o),o=[]);else if(n[e].length>0){let t=/[0-9]/.exec(n[e]),i=n[e].slice(0,t.index).trim(),_=r.from_semver(n[e].slice(t.index).trim());o.push([i,_])}return o.length>0&&i.push(o),new e(i)}}},function(e,t){class n{constructor(e,t,n){this.type=e,this.description=t,this.suffixes=n}}class r{constructor(e){this.__mimetypes=[],this.__named_mimetypes={};for(let t of e)this.install(t)}install(e){let t=this.__mimetypes.length;this.__mimetypes.push(e),this.__named_mimetypes[e.type]=e,this[e.type]=e,this[t]=e}item(e){return this.__mimetypes[e]}namedItem(e){return this.__named_mimetypes[e]}get length(){return this.__mimetypes.length}}class o{constructor(e){this.__plugins=[],this.__named_plugins={};for(let t of e)this.install(t)}install(e){let t=this.__plugins.length;this.__plugins.push(e),this.__named_plugins[e.name]=e,this[e.name]=e,this[t]=e}item(e){return this.__plugins[e]}namedItem(e){return this.__named_plugins[e]}get length(){return this.__plugins.length}}t.FLASH_PLUGIN=new class extends r{constructor(e,t,n,r){super(r),this.name=e,this.description=t,this.filename=n}install(e){e.enabledPlugin||(e.enabledPlugin=this),super.install(e)}}("Shockwave Flash","Shockwave Flash 32.0 r0","ruffle.js",[new n("application/futuresplash","Shockwave Flash","spl"),new n("application/x-shockwave-flash","Shockwave Flash","swf"),new n("application/x-shockwave-flash2-preview","Shockwave Flash","swf"),new n("application/vnd.adobe.flash-movie","Shockwave Flash","swf")]),t.install_plugin=function(e){navigator.plugins.install||Object.defineProperty(navigator,"plugins",{value:new o(navigator.plugins),writable:!1}),navigator.plugins.install(e),e.length>0&&!navigator.mimeTypes.install&&Object.defineProperty(navigator,"mimeTypes",{value:new r(navigator.mimeTypes),writable:!1});for(var t=0;t<e.length;t+=1)navigator.mimeTypes.install(e[t])}},function(e,t){t.public_path=function(e,t){let n="";if(void 0!==e&&void 0!==e.public_paths&&void 0!==e.public_paths[t])n=e.public_paths[t];else if(void 0!==e&&void 0!==e.public_path)n=e.public_path;else if(void 0!==document.currentScript)try{n=new URL(".",document.currentScript.src).href}catch(e){console.warn("Unable to get currentScript URL")}return""===n||n.endsWith("/")||(n+="/"),n}},function(e,t,n){const r=n(7),o=n(10),{install_plugin:i,FLASH_PLUGIN:_}=n(4),{public_path:s}=n(5);let c;window.RufflePlayer||(window.RufflePlayer={});let a,u,f=s({},"ruffle.js");function l(){try{a=a||document.getElementsByTagName("object"),u=u||document.getElementsByTagName("embed");for(let e of Array.from(a))if(r.is_interdictable(e)){let t=r.from_native_object_element(e);e.replaceWith(t)}for(let e of Array.from(u))if(o.is_interdictable(e)){let t=o.from_native_embed_element(e);e.replaceWith(t)}}catch(e){console.error("Serious error encountered when polyfilling native Flash elements: "+e)}}function b(e){d(e.currentTarget.contentWindow)}function d(e){let t;try{if(t=e.document,!t)return void console.log("Frame has no document.")}catch(e){return void console.log("Error Getting Frame: "+e.message)}if(e.RufflePlayer)console.log("(i)frame already has RufflePlayer");else{e.RufflePlayer={},e.RufflePlayer.config=c;let n=t.createElement("script");n.src=f,t.body.appendChild(n)}g(e)}function p(e){let t;for(let n=0;n<e.length;n++){let r=e[n];setTimeout((function(){r.contentDocument.readyState&&"complete"==r.contentDocument.readyState&&d(r.contentWindow)}),500),(t=r.onload)?r.onload=function(e){t(e),b(e)}:r.onload=b,g(r.contentWindow)}}function g(e){p(e.document.getElementsByTagName("iframe")),p(e.document.getElementsByTagName("frame"))}function w(e){e.some(e=>e.addedNodes.length>0)&&g(window)}window.RufflePlayer.config&&(c=window.RufflePlayer.config,f=s(window.RufflePlayer.config,"ruffle.js")),f+="ruffle.js",t.plugin_polyfill=function(){i(_)},t.polyfill=function(){l(),new MutationObserver((function(e){e.some(e=>e.addedNodes.length>0)&&l()})).observe(document,{childList:!0,subtree:!0}),g(window),new MutationObserver(w).observe(document,{childList:!0,subtree:!0})}},function(e,t,n){const{FLASH_MIMETYPE:r,FUTURESPLASH_MIMETYPE:o,FLASH7_AND_8_MIMETYPE:i,FLASH_MOVIE_MIMETYPE:_,FLASH_ACTIVEX_CLASSID:s,is_swf_filename:c,RufflePlayer:a}=n(1),{register_element:u}=n(0);e.exports=class e extends a{constructor(...e){super(...e)}connectedCallback(){super.connectedCallback(),this.params=e.params_of(this),this.attributes.data?this.stream_swf_url(this.attributes.data.value):this.params.movie&&this.stream_swf_url(this.params.movie)}get data(){return this.attributes.data.value}set data(e){this.attributes.data=e}static is_interdictable(t){if(!t.data){let e=!1,n=t.getElementsByTagName("param");for(let t=0;t<n.length;t++)"movie"==n[t].name&&n[t].value&&(e=!0);if(!e)return!1}if(t.type.toLowerCase()===r.toLowerCase()||t.type.toLowerCase()===o.toLowerCase()||t.type.toLowerCase()==i.toLowerCase()||t.type.toLowerCase()==_.toLowerCase())return!0;if(t.attributes&&t.attributes.classid&&t.attributes.classid.value.toLowerCase()===s.toLowerCase())return!0;if((void 0===t.type||""===t.type)&&void 0===t.attributes.classid){let n=e.params_of(t);if(t.data&&c(t.data))return!0;if(n&&n.movie&&c(n.movie))return!0}return!1}static params_of(e){let t={};for(let n of e.children)n.constructor===HTMLParamElement&&(t[n.name]=n.value);return t}static from_native_object_element(t){let n=u("ruffle-object",e),r=document.createElement(n);return r.copy_element(t),r}}},function(e,t,n){let r=null;e.exports=function(){return null==r&&(r=async function(){try{n.p=runtime_path+"dist/"}catch(e){if(!(e instanceof ReferenceError))throw e}return(await n.e(1).then(n.bind(null,17))).Ruffle}()),r}},function(e,t){let n=document.createElement("template");n.innerHTML='\n <style>\n :host {\n display: inline-block;\n /* Default width/height; this will get overridden by user styles/attributes */\n width: 550px;\n height: 400px;\n touch-action: none;\n user-select: none;\n -webkit-user-select: none;\n -webkit-tap-highlight-color: transparent;\n }\n\n #container {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n\n #container canvas {\n width: 100%;\n height: 100%;\n }\n \n #play_button {\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: pointer;\n display: none;\n }\n\n #play_button .icon {\n position: relative;\n top: 50%;\n left: 50%;\n width: 90%;\n height: 90%;\n max-width: 500px;\n max-height: 500px;\n transform: translate(-50%, -50%);\n }\n\n #play_button:hover .icon {\n filter: brightness(1.3);\n }\n </style>\n <style id="dynamic_styles"></style>\n\n <div id="container">\n <div id="play_button"><div class="icon"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" viewBox="0 0 250 250" style="width:100%;height:100%;"><defs><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="125" y1="0" x2="125" y2="250" spreadMethod="pad"><stop offset="0%" stop-color="#FDA138"/><stop offset="100%" stop-color="#FD3A40"/></linearGradient><g id="b"><path fill="url(#a)" d="M250 125q0-52-37-88-36-37-88-37T37 37Q0 73 0 125t37 88q36 37 88 37t88-37q37-36 37-88M87 195V55l100 70-100 70z"/><path fill="#FFF" d="M87 55v140l100-70L87 55z"/></g></defs><use xlink:href="#b"/></svg></div></div>\n </div>\n',e.exports=n},function(e,t,n){const{FLASH_MIMETYPE:r,FUTURESPLASH_MIMETYPE:o,FLASH7_AND_8_MIMETYPE:i,FLASH_MOVIE_MIMETYPE:_,is_swf_filename:s,RufflePlayer:c}=n(1),{register_element:a}=n(0);e.exports=class e extends c{constructor(...e){return super(...e)}connectedCallback(){super.connectedCallback(),this.stream_swf_url(this.attributes.src.value)}get src(){return this.attributes.src.value}set src(e){this.attributes.src=e}static get observedAttributes(){return["src","width","height"]}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),console.log(e+" "+t+" "+n),this.isConnected&&"src"===e&&this.stream_swf_url(this.attributes.src.value)}static is_interdictable(e){return!!e.src&&(e.type.toLowerCase()===r.toLowerCase()||e.type.toLowerCase()===o.toLowerCase()||e.type.toLowerCase()==i.toLowerCase()||e.type.toLowerCase()==_.toLowerCase()||(void 0===e.type||""===e.type)&&s(e.src))}static from_native_embed_element(t){let n=a("ruffle-embed",e),r=document.createElement(n);return r.copy_element(t),r}}},function(e,t,n){const{PublicAPI:r,SourceAPI:o,public_path:i}=n(12);window.RufflePlayer=r.negotiate(window.RufflePlayer,"local",new o("local")),n.p=i(window.RufflePlayer.config,"local")},function(e,t,n){e.exports=n(13)},function(e,t,n){Object.assign(t,n(14)),Object.assign(t,n(4)),Object.assign(t,n(5)),Object.assign(t,n(6)),Object.assign(t,n(0)),Object.assign(t,n(10)),Object.assign(t,n(15)),Object.assign(t,n(1)),Object.assign(t,n(16)),Object.assign(t,n(3)),Object.assign(t,n(2)),t.load_ruffle=n(8),t.RuffleObject=n(7),t.ruffle_shadow_template=n(9)},function(e,t,n){const{Version:r}=n(2),{VersionRange:o}=n(3);t.PublicAPI=class e{constructor(t){this.sources={},this.config={},this.invoked=!1,this.newest_name=!1,void 0!==t&&(t.constructor.name===e.name?(this.sources=t.sources,this.config=t.config,this.invoked=t.invoked,this.conflict=t.conflict,this.newest_name=t.newest_name,t.superceded()):t.constructor===Object&&void 0!==t.config?this.config=t.config:this.conflict=t),"loading"===document.readyState?window.addEventListener("DOMContentLoaded",this.init.bind(this)):window.setTimeout(this.init.bind(this),0)}get version(){return"0.1.0"}register_source(e,t){this.sources[e]=t}newest_source_name(){let e=!1,t=r.from_semver("0.0.0");for(let n in this.sources)if(Object.prototype.hasOwnProperty.call(this.sources,n)){let o=r.from_semver(this.sources[n].version);o.has_precedence_over(t)&&(e=n,t=o)}return e}init(){if(!this.invoked){if(this.invoked=!0,this.newest_name=this.newest_source_name(),!1===this.newest_name)throw new Error("No registered Ruffle source!");!1!==this.config.polyfills&&this.sources[this.newest_name].polyfill()}}newest(){return this.sources[this.newest_source_name()]}satisfying(e){let t=o.from_requirement_string(e),n=null;for(let e in this.sources)if(Object.prototype.hasOwnProperty.call(this.sources,e)){let o=r.from_semver(this.sources[e].version);t.satisfied_by(o)&&(n=this.sources[e])}return n}local_compatible(){return void 0!==this.sources.local?this.satisfying("^"+this.sources.local.version):this.newest()}local(){return void 0!==this.sources.local?this.satisfying("="+this.sources.local.version):this.newest()}superceded(){this.invoked=!0}static negotiate(t,n,r){let o;if(o=void 0!==t&&t.constructor.name==e.name?t:new e(t),void 0!==n&&void 0!==r){o.register_source(n,r),!1!==o.config.polyfills&&r.plugin_polyfill()}return o}}},function(e,t){t.copy_to_audio_buffer=function(e,t,n){if(t){e.getChannelData(0).set(t)}if(n){e.getChannelData(1).set(n)}}},function(e,t,n){const{polyfill:r,plugin_polyfill:o}=n(6),{register_element:i}=n(0),{RufflePlayer:_}=n(1);t.SourceAPI=class{constructor(e){this.name=e}get version(){return"0.1.0"}polyfill(){r()}plugin_polyfill(){o()}create_player(){let e=i("ruffle-player",_);return document.createElement(e)}}}]);