var pJS=function(e,a){var t=document.querySelector("#"+e+" > .particles-js-canvas-el");this.pJS={canvas:{el:t,w:t.offsetWidth,h:t.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var m=this.pJS;a&&Object.deepExtend(m,a),m.tmp.obj={size_value:m.particles.size.value,size_anim_speed:m.particles.size.anim.speed,move_speed:m.particles.move.speed,line_linked_distance:m.particles.line_linked.distance,line_linked_width:m.particles.line_linked.width,mode_grab_distance:m.interactivity.modes.grab.distance,mode_bubble_distance:m.interactivity.modes.bubble.distance,mode_bubble_size:m.interactivity.modes.bubble.size,mode_repulse_distance:m.interactivity.modes.repulse.distance},m.fn.retinaInit=function(){m.retina_detect&&1m.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>m.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),m.particles.move.bounce&&m.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var i=e.value[Math.floor(Math.random()*m.particles.color.value.length)];this.color.rgb=hexToRgb(i)}else null!=e.value.r&&null!=e.value.g&&null!=e.value.b&&(this.color.rgb={r:e.value.r,g:e.value.g,b:e.value.b}),null!=e.value.h&&null!=e.value.s&&null!=e.value.l&&(this.color.hsl={h:e.value.h,s:e.value.s,l:e.value.l});else"random"==e.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof e.value&&(this.color=e,this.color.rgb=hexToRgb(this.color.value));this.opacity=(m.particles.opacity.random?Math.random():1)*m.particles.opacity.value,m.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=m.particles.opacity.anim.speed/100,m.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(m.particles.move.direction){case"top":n={x:0,y:-1};break;case"top-right":n={x:.5,y:-.5};break;case"right":n={x:1,y:-0};break;case"bottom-right":n={x:.5,y:.5};break;case"bottom":n={x:0,y:1};break;case"bottom-left":n={x:-.5,y:1};break;case"left":n={x:-1,y:0};break;case"top-left":n={x:-.5,y:-.5};break;default:n={x:0,y:0}}m.particles.move.straight?(this.vx=n.x,this.vy=n.y,m.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=n.x+Math.random()-.5,this.vy=n.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var s=m.particles.shape.type;if("object"==typeof s){if(s instanceof Array){var r=s[Math.floor(Math.random()*s.length)];this.shape=r}}else this.shape=s;if("image"==this.shape){var c=m.particles.shape;this.img={src:c.image.src,ratio:c.image.width/c.image.height},this.img.ratio||(this.img.ratio=1),"svg"==m.tmp.img_type&&null!=m.tmp.source_svg&&(m.fn.vendors.createSvgImg(this),m.tmp.pushing&&(this.img.loaded=!1))}},m.fn.particle.prototype.draw=function(){var e=this;if(null!=e.radius_bubble)var a=e.radius_bubble;else a=e.radius;if(null!=e.opacity_bubble)var t=e.opacity_bubble;else t=e.opacity;if(e.color.rgb)var i="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+t+")";else i="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+t+")";switch(m.canvas.ctx.fillStyle=i,m.canvas.ctx.beginPath(),e.shape){case"circle":m.canvas.ctx.arc(e.x,e.y,a,0,2*Math.PI,!1);break;case"edge":m.canvas.ctx.rect(e.x-a,e.y-a,2*a,2*a);break;case"triangle":m.fn.vendors.drawShape(m.canvas.ctx,e.x-a,e.y+a/1.66,2*a,3,2);break;case"polygon":m.fn.vendors.drawShape(m.canvas.ctx,e.x-a/(m.particles.shape.polygon.nb_sides/3.5),e.y-a/.76,2.66*a/(m.particles.shape.polygon.nb_sides/3),m.particles.shape.polygon.nb_sides,1);break;case"star":m.fn.vendors.drawShape(m.canvas.ctx,e.x-2*a/(m.particles.shape.polygon.nb_sides/4),e.y-a/1.52,2*a*2.66/(m.particles.shape.polygon.nb_sides/3),m.particles.shape.polygon.nb_sides,2);break;case"image":;if("svg"==m.tmp.img_type)var n=e.img.obj;else n=m.tmp.img_obj;n&&m.canvas.ctx.drawImage(n,e.x-a,e.y-a,2*a,2*a/e.img.ratio)}m.canvas.ctx.closePath(),0=m.particles.opacity.value&&(a.opacity_status=!1),a.opacity+=a.vo):(a.opacity<=m.particles.opacity.anim.opacity_min&&(a.opacity_status=!0),a.opacity-=a.vo),a.opacity<0&&(a.opacity=0)),m.particles.size.anim.enable&&(1==a.size_status?(a.radius>=m.particles.size.value&&(a.size_status=!1),a.radius+=a.vs):(a.radius<=m.particles.size.anim.size_min&&(a.size_status=!0),a.radius-=a.vs),a.radius<0&&(a.radius=0)),"bounce"==m.particles.move.out_mode)var i={x_left:a.radius,x_right:m.canvas.w,y_top:a.radius,y_bottom:m.canvas.h};else i={x_left:-a.radius,x_right:m.canvas.w+a.radius,y_top:-a.radius,y_bottom:m.canvas.h+a.radius};switch(a.x-a.radius>m.canvas.w?(a.x=i.x_left,a.y=Math.random()*m.canvas.h):a.x+a.radius<0&&(a.x=i.x_right,a.y=Math.random()*m.canvas.h),a.y-a.radius>m.canvas.h?(a.y=i.y_top,a.x=Math.random()*m.canvas.w):a.y+a.radius<0&&(a.y=i.y_bottom,a.x=Math.random()*m.canvas.w),m.particles.move.out_mode){case"bounce":(a.x+a.radius>m.canvas.w||a.x-a.radius<0)&&(a.vx=-a.vx),(a.y+a.radius>m.canvas.h||a.y-a.radius<0)&&(a.vy=-a.vy)}if(isInArray("grab",m.interactivity.events.onhover.mode)&&m.fn.modes.grabParticle(a),(isInArray("bubble",m.interactivity.events.onhover.mode)||isInArray("bubble",m.interactivity.events.onclick.mode))&&m.fn.modes.bubbleParticle(a),(isInArray("repulse",m.interactivity.events.onhover.mode)||isInArray("repulse",m.interactivity.events.onclick.mode))&&m.fn.modes.repulseParticle(a),m.particles.line_linked.enable||m.particles.move.attract.enable)for(var n=e+1;nm.particles.size.value){0<=(s=c.radius+m.interactivity.modes.bubble.size*t)&&(c.radius_bubble=s)}else{var n=c.radius-m.interactivity.modes.bubble.size,s=c.radius-n*t;c.radius_bubble=0m.particles.opacity.value)(r=m.interactivity.modes.bubble.opacity*t)>c.opacity&&r<=m.interactivity.modes.bubble.opacity&&(c.opacity_bubble=r);else(r=c.opacity-(m.particles.opacity.value-m.interactivity.modes.bubble.opacity)*t)=m.interactivity.modes.bubble.opacity&&(c.opacity_bubble=r)}}else i();"mouseleave"==m.interactivity.status&&i()}else if(m.interactivity.events.onclick.enable&&isInArray("bubble",m.interactivity.events.onclick.mode)){if(m.tmp.bubble_clicking){e=c.x-m.interactivity.mouse.click_pos_x,a=c.y-m.interactivity.mouse.click_pos_y;var o=Math.sqrt(e*e+a*a),l=((new Date).getTime()-m.interactivity.mouse.click_time)/1e3;l>m.interactivity.modes.bubble.duration&&(m.tmp.bubble_duration_end=!0),l>2*m.interactivity.modes.bubble.duration&&(m.tmp.bubble_clicking=!1,m.tmp.bubble_duration_end=!1)}function v(e,a,t,i,n){if(e!=a)if(m.tmp.bubble_duration_end)null!=t&&(r=e+(e-(i-l*(i-e)/m.interactivity.modes.bubble.duration)),"size"==n&&(c.radius_bubble=r),"opacity"==n&&(c.opacity_bubble=r));else if(o<=m.interactivity.modes.bubble.distance){if(null!=t)var s=t;else s=i;if(s!=e){var r=i-l*(i-e)/m.interactivity.modes.bubble.duration;"size"==n&&(c.radius_bubble=r),"opacity"==n&&(c.opacity_bubble=r)}}else"size"==n&&(c.radius_bubble=void 0),"opacity"==n&&(c.opacity_bubble=void 0)}m.tmp.bubble_clicking&&(v(m.interactivity.modes.bubble.size,m.particles.size.value,c.radius_bubble,c.radius,"size"),v(m.interactivity.modes.bubble.opacity,m.particles.opacity.value,c.opacity_bubble,c.opacity,"opacity"))}},m.fn.modes.repulseParticle=function(i){if(m.interactivity.events.onhover.enable&&isInArray("repulse",m.interactivity.events.onhover.mode)&&"mousemove"==m.interactivity.status){var e=i.x-m.interactivity.mouse.pos_x,a=i.y-m.interactivity.mouse.pos_y,t=Math.sqrt(e*e+a*a),n=e/t,s=a/t,r=clamp(1/(o=m.interactivity.modes.repulse.distance)*(-1*Math.pow(t/o,2)+1)*o*100,0,50),c={x:i.x+n*r,y:i.y+s*r};"bounce"==m.particles.move.out_mode?(0m.canvas.w||a-i.radius<0)&&(i.vx=-i.vx),(t+i.radius>m.canvas.h||t-i.radius<0)&&(i.vy=-i.vy)}}()}else 0==m.tmp.repulse_clicking&&(i.vx=i.vx_i,i.vy=i.vy_i)},m.fn.modes.grabParticle=function(e){if(m.interactivity.events.onhover.enable&&"mousemove"==m.interactivity.status){var a=e.x-m.interactivity.mouse.pos_x,t=e.y-m.interactivity.mouse.pos_y,i=Math.sqrt(a*a+t*t);if(i<=m.interactivity.modes.grab.distance){var n=m.interactivity.modes.grab.line_linked.opacity-i/(1/m.interactivity.modes.grab.line_linked.opacity)/m.interactivity.modes.grab.distance;if(0=m.particles.number.value?(m.fn.particlesDraw(),m.particles.move.enable?m.fn.drawAnimFrame=requestAnimFrame(m.fn.vendors.draw):cancelRequestAnimFrame(m.fn.drawAnimFrame)):m.tmp.img_error||(m.fn.drawAnimFrame=requestAnimFrame(m.fn.vendors.draw)):null!=m.tmp.img_obj?(m.fn.particlesDraw(),m.particles.move.enable?m.fn.drawAnimFrame=requestAnimFrame(m.fn.vendors.draw):cancelRequestAnimFrame(m.fn.drawAnimFrame)):m.tmp.img_error||(m.fn.drawAnimFrame=requestAnimFrame(m.fn.vendors.draw)):(m.fn.particlesDraw(),m.particles.move.enable?m.fn.drawAnimFrame=requestAnimFrame(m.fn.vendors.draw):cancelRequestAnimFrame(m.fn.drawAnimFrame))},m.fn.vendors.checkBeforeDraw=function(){"image"==m.particles.shape.type?"svg"==m.tmp.img_type&&null==m.tmp.source_svg?m.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(m.tmp.checkAnimFrame),m.tmp.img_error||(m.fn.vendors.init(),m.fn.vendors.draw())):(m.fn.vendors.init(),m.fn.vendors.draw())},m.fn.vendors.init=function(){m.fn.retinaInit(),m.fn.canvasInit(),m.fn.canvasSize(),m.fn.canvasPaint(),m.fn.particlesCreate(),m.fn.vendors.densityAutoParticles(),m.particles.line_linked.color_rgb_line=hexToRgb(m.particles.line_linked.color)},m.fn.vendors.start=function(){isInArray("image",m.particles.shape.type)?(m.tmp.img_type=m.particles.shape.image.src.substr(m.particles.shape.image.src.length-3),m.fn.vendors.loadImg(m.tmp.img_type)):m.fn.vendors.checkBeforeDraw()},m.fn.vendors.eventsListeners(),m.fn.vendors.start()};function hexToRgb(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,a,t,i){return a+a+t+t+i+i});var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null}function clamp(e,a,t){return Math.min(Math.max(e,a),t)}function isInArray(e,a){return-13&&void 0!==arguments[3]?arguments[3]:10,a=e[n];if(i(t)&&r(o))if("function"==typeof s)if("number"==typeof c){var u={callback:s,priority:c,namespace:o};if(a[t]){var l,d=a[t].handlers;for(l=d.length;l>0&&!(c>=d[l-1].priority);l--);l===d.length?d[l]=u:d.splice(l,0,u),a.__current.forEach((function(e){e.name===t&&e.currentIndex>=l&&e.currentIndex++}))}else a[t]={handlers:[u],runs:0};"hookAdded"!==t&&e.doAction("hookAdded",t,o,s,c)}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,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o,s){var c=e[n];if(i(o)&&(t||r(s))){if(!c[o])return 0;var a=0;if(t)a=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else for(var u=c[o].handlers,l=function(e){u[e].namespace===s&&(u.splice(e,1),a++,c.__current.forEach((function(n){n.name===o&&n.currentIndex>=e&&n.currentIndex--})))},d=u.length-1;d>=0;d--)l(d);return"hookRemoved"!==o&&e.doAction("hookRemoved",o,s),a}}};var c=function(e,n){return function(t,r){var i=e[n];return void 0!==r?t in i&&i[t].handlers.some((function(e){return e.namespace===r})):t in i}};var a=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[n];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var s=arguments.length,c=new Array(s>1?s-1:0),a=1;a div");P.on("click",(function(){var e=h.eq(a(this).index());a(e).find(".swiper-container-wrap.eael-logo-carousel-wrap").length&&new Swiper(t,w)}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-logo-carousel.default",t)}))}});