!function(P,t,L){"use strict";function D(n,i){var a=null;return function(){var t=this,e=arguments;null===a&&(a=setTimeout(function(){n.apply(t,e),a=null},i))}}function i(){if(e!==L)return e;var t=document.createElement("div");return t.innerHTML="",e=t.firstChild&&t.firstChild.namespaceURI===E}var e,r,n=(r={},function(t){if(r[t]!==L)return r[t];var e=document.createElement("div").style,n=t.charAt(0).toUpperCase()+t.slice(1),i=(t+" "+["webkit","moz","ms","o"].join(n+" ")+n).split(" ");for(var a in i)if(i[a]in e)return r[t]=i[a];return r[t]=!1}),E="http://www.w3.org/2000/svg",T=P(t),X=n("transform"),a={itemContainer:"ul",itemSelector:"li",start:"center",fadeIn:400,loop:!1,autoplay:!1,pauseOnHover:!0,style:"coverflow",spacing:-.6,click:!0,keyboard:!0,scrollwheel:!0,touch:!0,nav:!1,buttons:!1,buttonPrev:"Previous",buttonNext:"Next",onItemSwitch:!1},j={main:"flipster",active:"flipster--active",container:"flipster__container",nav:"flipster__nav",navChild:"flipster__nav__child",navItem:"flipster__nav__item",navLink:"flipster__nav__link",navCurrent:"flipster__nav__item--current",navCategory:"flipster__nav__item--category",navCategoryLink:"flipster__nav__link--category",button:"flipster__button",buttonPrev:"flipster__button--prev",buttonNext:"flipster__button--next",item:"flipster__item",itemCurrent:"flipster__item--current",itemPast:"flipster__item--past",itemFuture:"flipster__item--future",itemContent:"flipster__item__content"},M=new RegExp("\\b("+j.itemCurrent+"|"+j.itemPast+"|"+j.itemFuture+")(.*?)(\\s|$)","g"),N=new RegExp("\\s\\s+","g");P.fn.flipster=function(e){if("string"==typeof e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=P(this).data("methods");return t[e]?t[e].apply(this,n):this})}var I=P.extend({},a,e);return this.each(function(){function t(e){return e=e||"next",P('').html((n="next"===(t=e)?I.buttonNext:I.buttonPrev,"custom"!==I.buttons&&i?'":n)).on("click",function(t){l(e),t.preventDefault()});var t,n}function r(){b.css("transition",""),v.css("transition",""),d.css("transition","")}function s(a){var t,e;(a&&(b.css("transition","none"),v.css("transition","none"),d.css("transition","none")),h=v.width(),v.height((e=0,d.each(function(){(t=P(this).height())>e&&(e=t)}),e)),h)?(n&&(clearInterval(n),n=!1),d.each(function(t){var e,n,i=P(this);i.attr("class",function(t,e){return e&&e.replace(M,"").replace(N," ")}),e=i.outerWidth(),0!==I.spacing&&i.css("margin-right",e*I.spacing+"px"),n=i.position().left,x[t]=-1*(n+e/2-h/2),t===d.length-1&&(o(),a&&setTimeout(r,1))})):n=n||setInterval(function(){s(a)},500)}function o(){var e,n,i,a=d.length;d.each(function(t){e=P(this),n=" ",i=t===w?(n+=j.itemCurrent,a+1):t')}),I.click&&d.on("click.flipster touchend.flipster",function(t){k||(P(this).hasClass(j.itemCurrent)||t.preventDefault(),l(this))}),I.buttons&&1'),y=P(""),d.each(function(t){var e=P(this),n=e.data("flip-category"),i=e.data("flip-title")||e.attr("title")||t,a=P(''+i+"").data("index",t);if(y=y.add(a),n){if(!o[n]){var r=P('
'),s=P(''+n+"").data("category",n).data("index",t);o[n]=P(''),y=y.add(s),r.append(s,o[n]).appendTo(g)}o[n].append(a)}else g.append(a);a.wrap('')}),g.on("click","a",function(t){var e=P(this).data("index");0<=e&&(l(e),t.preventDefault())}),"after"===I.nav?b.append(g):b.prepend(g),_=g.find("."+j.navItem)),0<=w&&l(w),b;var o}var e,v,h,n,d,m,g,_,y,b=P(this),x=[],w=0,C=!1,k=!1;e={jump:l,next:function(){return l("next")},prev:function(){return l("prev")},play:a,stop:c,pause:u,index:p},b.data("methods",e),b.hasClass(j.active)||function(){var t;if(b.css("visibility","hidden"),p(),d.length<=1)b.css("visibility","");else{t=!!I.style&&"flipster--"+I.style.split(" ").join(" flipster--"),b.addClass([j.main,X?"flipster--transform":" flipster--no-transform",t,I.click?"flipster--click":""].join(" ")),I.start&&(w="center"===I.start?Math.floor(d.length/2):I.start),l(w);var e,n=b.find("img");if(n.length){var i=0;n.on("load",function(){++i>=n.length&&f()}),setTimeout(f,750)}else f();T.on("resize.flipster",D(s,400)),I.autoplay&&a(),I.pauseOnHover&&v.on("mouseenter.flipster",function(){C?u(!0):c()}).on("mouseleave.flipster",function(){-1===C&&a()}),e=b,I.keyboard&&(e[0].tabIndex=0,e.on("keydown.flipster",D(function(t){var e=t.which;37!==e&&39!==e||(l(37===e?"prev":"next"),t.preventDefault())},250))),function(t){if(I.scrollwheel){var e,n,i=!1,a=0,r=0,s=0,o=/mozilla/.test(navigator.userAgent.toLowerCase())&&!/webkit/.test(navigator.userAgent.toLowerCase());t.on("mousewheel.flipster wheel.flipster",function(){i=!0}).on("mousewheel.flipster wheel.flipster",D(function(t){clearTimeout(r),r=setTimeout(function(){s=a=0},300),t=t.originalEvent,s+=t.wheelDelta||-1*(t.deltaY+t.deltaX),Math.abs(s)<25&&!o||(a++,n!==(e=03&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof s)if("number"==typeof a){var c={callback:s,priority:a,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(a>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,s,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){var a=e[t];if(o(i)&&(n||r(s))){if(!a[i])return 0;var l=0;if(n)l=a[i].handlers.length,a[i]={runs:a[i].runs,handlers:[]};else for(var c=a[i].handlers,u=function(e){c[e].namespace===s&&(c.splice(e,1),l++,a.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),l}}};var a=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l'+v+"":'',g.buttonNext="svg"==m?''+b+"":'',n.flipster(g)};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-flip-carousel.default",n)}))}});