!function(e){function t(t){for(var n,o,i=t[0],_=t[1],s=0,c=[];s0&&(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=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.majore.minor)return!0;if(this.minore.patch)return!0;if(this.patchparseInt(e.pr_ident[n],10))return!0;if(parseInt(this.pr_ident[n],10)e.pr_ident[n])return!0;if(this.pr_ident[n]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"===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;e0&&(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;te.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 :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 \n \n\n
\n
\n
\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)}}}]);