!function(e,t){e(window).on("elementor/frontend/init",(function(){var t,n=elementorModules.frontend.handlers.Base;t=n.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{event:"hover"}},onElementChange:debounce((function(e){-1!==e.indexOf("ep_sound_effects_")&&this.run()}),400),settings:function(e){return this.getElementSettings("ep_sound_effects_"+e)},run:function(){if("yes"==this.settings("active")){this.getDefaultSettings();var t,n="",o="ep-sound-effects"+this.getID(),s="#"+o;if(e(this.findElement(".elementor-widget-container").get(0)).attr("id",o),"widget"===this.settings("select_type")?n=e(s):"anchor_tag"===this.settings("select_type")?n=e(s+" a"):"custom"===this.settings("select_type")&&this.settings("element_selector")&&(n=e(s).find(this.settings("element_selector"))),"hosted_url"!==this.settings("source")?t=this.settings("source_local_link")+this.settings("source"):this.settings("hosted_url.url")&&(t=this.settings("hosted_url.url").replace(/\.[^/.]+$/,"")),t){if(!document.createElement("audio").canPlayType)return console.error("Oh man 😩! \nYour browser doesn't support audio awesomeness."),function(){};var i=document.createElement("audio"),r=document.createElement("source"),u=document.createElement("source"),c=!1;i.setAttribute("preload",!0),r.setAttribute("type","audio/mpeg"),u.setAttribute("type","audio/ogg"),i.appendChild(r),i.appendChild(u),document.body.appendChild(i);var d=this;jQuery(document).ready((function(){"hover"==d.settings("event")&&(jQuery(n).on("mouseenter",(function(){l()})),jQuery(n).on("mouseleave",(function(){a()})),jQuery(n).on("touchmove",(function(){a()})),jQuery(n).on("click",(function(){a()}))),"click"==d.settings("event")&&e(n).on("click",(function(){l()}))}))}}function l(){var e,n;t&&(e=t+".mp3",n=t+".ogg",c||(c=!0,u.addEventListener("error",(function(){console.error("😶 D'oh! The ogg file URL is wrong!")}))),(e||n)&&(u.setAttribute("src",n),i.load()),i.play())}function a(){i.pause(),i.currentTime=0}}}),elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})}))}))}(jQuery,window.elementorFrontend);