/* 2018 ThemePunch */ (function(){function l(a,b){this.slider=a;this.effects=b;this.firstrun=!0;a.one("revolution.slide.onloaded",this.onLoaded.bind(this)).one("rsLiquidEffectDestroyed",this.destroy.bind(this))}function k(a,b,c){this.w=b;this.h=c;this.slide=a;this.settings=a.data("liquideffectsettings");this.orig=a.data("liquideffectorig");this.displacement=new PIXI.Sprite.fromImage(this.settings.image,!0);this.displacement.texture.baseTexture.wrapMode=PIXI.WRAP_MODES.REPEAT;this.displacement.scale.x=2;this.displacement.scale.y= 2;this.displacement.anchor.set(.5);this.displacement.x=b/2;this.displacement.y=c/2;var g=new PIXI.Texture.fromImage(this.settings.sprite,!0),d=new PIXI.Container;this.img=new PIXI.Sprite(g);this.img.anchor.set(.5);this.img.x=b/2;this.img.y=c/2;d.addChild(this.img);this.filter=new PIXI.filters.DisplacementFilter(this.displacement);this.filter.autoFit=!0;this.stage=new PIXI.Container;this.stage.addChild(d);this.stage.addChild(this.displacement);this.stage.filters=[this.filter];this.stage.interactive= !0;this.renderer=new PIXI.autoDetectRenderer(b,c,{transparent:!0});b=this.renderer.view.style;b.objectFit="cover";b.width="100%";b.height="100%";b.top="50%";b.left="50%";b.transform="translate( -50%, -50% ) scale(1.2)";a.find(".slotholder").append(this.renderer.view);this.settings.autoplay?(this.filter.scale.x=this.settings.scalex,this.filter.scale.y=this.settings.scaley):(this.filter.scale.x=0,this.filter.scale.y=0);this.settings.interactive?(d.interactive=!0,"mousedown"===this.settings.event?(d.buttonMode= !0,d.pointerdown=this.onClick.bind(this),d.pointerup=d.pointerout=this.onReturn.bind(this)):(d.pointerover=this.onMouseEnter.bind(this),d.pointermove=this.onMouseMove.bind(this),d.pointerout=this.onMouseLeave.bind(this))):this.renderer.view.style.pointerEvents="none";this.supressEvents=!0;this.started=!1;this.ticker=new PIXI.ticker.Ticker;this.ticker.add(this.tick.bind(this))}var h,m="ontouchend"in document;window.RsLiquideffectAddOn=function(a,b){if(a&&b&&"undefined"!==typeof PIXI){h=a;h.event.special.rsLiquidEffectDestroyed= {remove:function(a){a.handler()}};var c=b.find("li[data-liquideffect]").each(function(){var a=h(this),d=JSON.parse(a.attr("data-liquideffect"));if(d){var e=a.children("img");var c=b[0].opt.jsFileLocation||"";c&&(c=c.split("/revslider"));c=2===c.length?c[0]:"";/all|smart/.test(b[0].opt.lazyType)||(b[0].opt.lazyType="smart");if(e.attr("data-lazyload"))var f=e.attr("data-lazyload");else f=e.attr("src"),e.attr("data-lazyload",f),e.attr("src",c.replace("/extensions","")+"/revslider/admin/assets/images/dummy.png"); f||(f=a.find(".slotholder").contents().filter(function(){return 8===this.nodeType}),f.length?(e=f[0].nodeValue,f=!1,e&&(e=e.split('data-lazyload="'),2===e.length?(e=e[1].split('"'),1