jQuery(function(a){"use strict";var b,c,d=document.body||document.documentElement,e=d.style,f=e.transition!==void 0||e.WebkitTransition!==void 0,g=function(a){a.off(),b=Date.now()-+a.data("ripple-time"),c=b<400?400-b:100,f?setTimeout(function(){a.addClass("ripple-out")},c):a.animate({opacity:0},100,function(){a.trigger("transitionend")}),a.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){setTimeout(function(){a.remove()},300)})};a.fn.mdRipple=function(){return this.each(function(){var b,c,d=a(this);d.find(".ripple-container").length||d.append(""),b=d.find(".ripple-container");var f=null;a.isMobile&&d.on("touchstart touchmove",function(a){a=a.originalEvent,1===a.touches.length&&(f=a.touches[0])}),d.on(a.isMobile?"touchstart":"mousedown",function(h){if(2===h.button)return!1;var e,i,j,k=a(""),l=2.5*(Math.max(d.outerWidth(),d.outerHeight())/Math.max(20,k.outerWidth()));if(c=b.offset(),b.append(k),!a.isMobile)e=h.pageX-c.left,i=h.pageY-c.top;else if(null!==f)e=f.pageX-c.left,i=f.pageY-c.top,f=null;else return;a("body").hasClass("rtl")?(j=b.width()-e,k.css({right:j,top:i})):k.css({left:e,top:i}),function(){return window.getComputedStyle(k[0]).opacity}(),d.on(a.isMobile?"touchend":"mouseup mouseleave",function(){g(k)}),k.css({transform:"scale("+l+")"}),k.addClass("ripple-on"),k.data("ripple-time",Date.now())})})},jQuery(".w-btn[href], a.w-nav-anchor[href], .w-grid-item-anchor[rel], .w-image-h[href], .w-gallery-item[href], .g-filters-item, .w-iconbox.style_circle a[href] .w-iconbox-icon, .w-socials-item-link[href], .w-sharing-item[href], .w-tabs-item, .w-message-close").mdRipple()});