!function(e,n){e.wp=e.wp||{},e.wp.mediaelement=new function(){var t={};return{initialize:function(){var e=[];(t="undefined"!=typeof _wpmejsSettings?n.extend(!0,{},_wpmejsSettings):t).classPrefix="mejs-",t.success=t.success||function(e){var t,n;e.rendererName&&-1!==e.rendererName.indexOf("flash")&&(t=e.attributes.autoplay&&"false"!==e.attributes.autoplay,n=e.attributes.loop&&"false"!==e.attributes.loop,t&&e.addEventListener("canplay",function(){e.play()},!1),n)&&e.addEventListener("ended",function(){e.play()},!1)},t.customError=function(e,t){if(-1!==e.rendererName.indexOf("flash")||-1!==e.rendererName.indexOf("flv"))return'<a href="'+t.src+'">'+mejsL10n.strings["mejs.download-file"]+"</a>"},void 0!==t.videoShortcodeLibrary&&"mediaelement"!==t.videoShortcodeLibrary||e.push(".wp-video-shortcode"),void 0!==t.audioShortcodeLibrary&&"mediaelement"!==t.audioShortcodeLibrary||e.push(".wp-audio-shortcode"),e.length&&n(e.join(", ")).not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(t)}}},n(e.wp.mediaelement.initialize)}(window,jQuery);
!function a(o,s,u){function c(n,e){if(!s[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(l)return l(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(e){var t=o[n][1][e];return c(t||e)},i,i.exports,a,o,s,u)}return s[n].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,n){"use strict";var T={promise:null,load:function(e){"undefined"!=typeof Vimeo?T._createPlayer(e):(T.promise=T.promise||mejs.Utils.loadScript("https://player.vimeo.com/api/player.js"),T.promise.then(function(){T._createPlayer(e)}))},_createPlayer:function(e){var t=new Vimeo.Player(e.iframe);window["__ready__"+e.id](t)},getVimeoId:function(e){if(null==e)return null;var t=(e=e.split("?")[0]).match(/https:\/\/player.vimeo.com\/video\/(\d+)$/);if(t)return parseInt(t[1],10);var n=e.match(/https:\/\/vimeo.com\/(\d+)$/);if(n)return parseInt(n[1],10);var r=e.match(/https:\/\/vimeo.com\/(\d+)\/\w+$/);return r?parseInt(r[1],10):NaN}},r={name:"vimeo_iframe",options:{prefix:"vimeo_iframe"},canPlayType:function(e){return~["video/vimeo","video/x-vimeo"].indexOf(e.toLowerCase())},create:function(f,e,t){var v=[],h={},y=!0,g=1,a=g,E=0,j=0,U=!1,b=0,w=null,n="";h.options=e,h.id=f.id+"_"+e.prefix,h.mediaElement=f;for(var N=function(e){f.generateError("Code "+e.name+": "+e.message,t)},r=mejs.html5media.properties,i=function(i){var e=""+i.substring(0,1).toUpperCase()+i.substring(1);h["get"+e]=function(){if(null!==w){switch(i){case"currentTime":return E;case"duration":return b;case"volume":return g;case"muted":return 0===g;case"paused":return y;case"ended":return U;case"src":return w.getVideoUrl().then(function(e){n=e}).catch(function(e){return N(e)}),n;case"buffered":return{start:function(){return 0},end:function(){return j*b},length:1};case"readyState":return 4}return null}return null},h["set"+e]=function(e){if(null!==w)switch(i){case"src":var t="string"==typeof e?e:e[0].src,n=T.getVimeoId(t);w.loadVideo(n).then(function(){f.originalNode.autoplay&&w.play()}).catch(function(e){return N(e)});break;case"currentTime":w.setCurrentTime(e).then(function(){E=e,setTimeout(function(){var e=mejs.Utils.createEvent("timeupdate",h);f.dispatchEvent(e)},50)}).catch(function(e){return N(e)});break;case"volume":w.setVolume(e).then(function(){a=g=e,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",h);f.dispatchEvent(e)},50)}).catch(function(e){return N(e)});break;case"loop":w.setLoop(e).catch(function(e){return N(e)});break;case"muted":e?w.setVolume(0).then(function(){g=0,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",h);f.dispatchEvent(e)},50)}).catch(function(e){return N(e)}):w.setVolume(a).then(function(){g=a,setTimeout(function(){var e=mejs.Utils.createEvent("volumechange",h);f.dispatchEvent(e)},50)}).catch(function(e){return N(e)});break;case"readyState":var r=mejs.Utils.createEvent("canplay",h);f.dispatchEvent(r)}else v.push({type:"set",propName:i,value:e})}},o=0,s=r.length;o<s;o++)i(r[o]);for(var u=mejs.html5media.methods,c=function(e){h[e]=function(){if(null!==w)switch(e){case"play":return y=!1,w.play();case"pause":return y=!0,w.pause();case"load":return null}else v.push({type:"call",methodName:e})}},l=0,d=u.length;l<d;l++)c(u[l]);window["__ready__"+h.id]=function(e){if(f.vimeoPlayer=w=e,v.length)for(var t=0,n=v.length;t<n;t++){var r=v[t];if("set"===r.type){var i=r.propName,a=""+i.substring(0,1).toUpperCase()+i.substring(1);h["set"+a](r.value)}else"call"===r.type&&h[r.methodName]()}f.originalNode.muted&&(w.setVolume(0),g=0);for(var o=document.getElementById(h.id),s=void 0,u=function(e){var t=mejs.Utils.createEvent(e.type,h);f.dispatchEvent(t)},c=0,l=(s=["mouseover","mouseout"]).length;c<l;c++)o.addEventListener(s[c],u,!1);w.on("loaded",function(){w.getDuration().then(function(e){if(0<(b=e)&&(j=b*e,f.originalNode.autoplay)){U=y=!1;var t=mejs.Utils.createEvent("play",h);f.dispatchEvent(t)}}).catch(function(e){N(e)})}),w.on("progress",function(){w.getDuration().then(function(e){if(0<(b=e)&&(j=b*e,f.originalNode.autoplay)){var t=mejs.Utils.createEvent("play",h);f.dispatchEvent(t);var n=mejs.Utils.createEvent("playing",h);f.dispatchEvent(n)}var r=mejs.Utils.createEvent("progress",h);f.dispatchEvent(r)}).catch(function(e){return N(e)})}),w.on("timeupdate",function(){w.getCurrentTime().then(function(e){E=e;var t=mejs.Utils.createEvent("timeupdate",h);f.dispatchEvent(t)}).catch(function(e){return N(e)})}),w.on("play",function(){U=y=!1;var e=mejs.Utils.createEvent("play",h);f.dispatchEvent(e);var t=mejs.Utils.createEvent("playing",h);f.dispatchEvent(t)}),w.on("pause",function(){y=!0,U=!1;var e=mejs.Utils.createEvent("pause",h);f.dispatchEvent(e)}),w.on("ended",function(){y=!1,U=!0;var e=mejs.Utils.createEvent("ended",h);f.dispatchEvent(e)});for(var d=0,p=(s=["rendererready","loadedmetadata","loadeddata","canplay"]).length;d<p;d++){var m=mejs.Utils.createEvent(s[d],h);f.dispatchEvent(m)}};var p=f.originalNode.height,m=f.originalNode.width,_=document.createElement("iframe"),x="https://player.vimeo.com/video/"+T.getVimeoId(t[0].src),A=~t[0].src.indexOf("?")?"?"+t[0].src.slice(t[0].src.indexOf("?")+1):"",V=[];return f.originalNode.autoplay&&-1===A.indexOf("autoplay")&&V.push("autoplay=1"),f.originalNode.loop&&-1===A.indexOf("loop")&&V.push("loop=1"),A=A+(A?"&":"?")+V.join("&"),_.setAttribute("id",h.id),_.setAttribute("width",m),_.setAttribute("height",p),_.setAttribute("frameBorder","0"),_.setAttribute("src",""+x+A),_.setAttribute("webkitallowfullscreen","true"),_.setAttribute("mozallowfullscreen","true"),_.setAttribute("allowfullscreen","true"),_.setAttribute("allow","autoplay"),f.originalNode.parentNode.insertBefore(_,f.originalNode),f.originalNode.style.display="none",T.load({iframe:_,id:h.id}),h.hide=function(){h.pause(),w&&(_.style.display="none")},h.setSize=function(e,t){_.setAttribute("width",e),_.setAttribute("height",t)},h.show=function(){w&&(_.style.display="")},h.destroy=function(){},h}};mejs.Utils.typeChecks.push(function(e){return/(\/\/player\.vimeo|vimeo\.com)/i.test(e)?"video/x-vimeo":null}),mejs.Renderers.add(r)},{}]},{},[1]);
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 i=this.pJS;a&&Object.deepExtend(i,a),i.tmp.obj={size_value:i.particles.size.value,size_anim_speed:i.particles.size.anim.speed,move_speed:i.particles.move.speed,line_linked_distance:i.particles.line_linked.distance,line_linked_width:i.particles.line_linked.width,mode_grab_distance:i.interactivity.modes.grab.distance,mode_bubble_distance:i.interactivity.modes.bubble.distance,mode_bubble_size:i.interactivity.modes.bubble.size,mode_repulse_distance:i.interactivity.modes.repulse.distance},i.fn.retinaInit=function(){i.retina_detect&&window.devicePixelRatio>1?(i.canvas.pxratio=window.devicePixelRatio,i.tmp.retina=!0):(i.canvas.pxratio=1,i.tmp.retina=!1),i.canvas.w=i.canvas.el.offsetWidth*i.canvas.pxratio,i.canvas.h=i.canvas.el.offsetHeight*i.canvas.pxratio,i.particles.size.value=i.tmp.obj.size_value*i.canvas.pxratio,i.particles.size.anim.speed=i.tmp.obj.size_anim_speed*i.canvas.pxratio,i.particles.move.speed=i.tmp.obj.move_speed*i.canvas.pxratio,i.particles.line_linked.distance=i.tmp.obj.line_linked_distance*i.canvas.pxratio,i.interactivity.modes.grab.distance=i.tmp.obj.mode_grab_distance*i.canvas.pxratio,i.interactivity.modes.bubble.distance=i.tmp.obj.mode_bubble_distance*i.canvas.pxratio,i.particles.line_linked.width=i.tmp.obj.line_linked_width*i.canvas.pxratio,i.interactivity.modes.bubble.size=i.tmp.obj.mode_bubble_size*i.canvas.pxratio,i.interactivity.modes.repulse.distance=i.tmp.obj.mode_repulse_distance*i.canvas.pxratio},i.fn.canvasInit=function(){i.canvas.ctx=i.canvas.el.getContext("2d")},i.fn.canvasSize=function(){i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i&&i.interactivity.events.resize&&window.addEventListener("resize",(function(){i.canvas.w=i.canvas.el.offsetWidth,i.canvas.h=i.canvas.el.offsetHeight,i.tmp.retina&&(i.canvas.w*=i.canvas.pxratio,i.canvas.h*=i.canvas.pxratio),i.canvas.el.width=i.canvas.w,i.canvas.el.height=i.canvas.h,i.particles.move.enable||(i.fn.particlesEmpty(),i.fn.particlesCreate(),i.fn.particlesDraw(),i.fn.vendors.densityAutoParticles()),i.fn.vendors.densityAutoParticles()}))},i.fn.canvasPaint=function(){i.canvas.ctx.fillRect(0,0,i.canvas.w,i.canvas.h)},i.fn.canvasClear=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h)},i.fn.particle=function(e,a,t){if(this.radius=(i.particles.size.random?Math.random():1)*i.particles.size.value,i.particles.size.anim.enable&&(this.size_status=!1,this.vs=i.particles.size.anim.speed/100,i.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=t?t.x:Math.random()*i.canvas.w,this.y=t?t.y:Math.random()*i.canvas.h,this.x>i.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>i.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),i.particles.move.bounce&&i.fn.vendors.checkOverlap(this,t),this.color={},"object"==typeof e.value)if(e.value instanceof Array){var s=e.value[Math.floor(Math.random()*i.particles.color.value.length)];this.color.rgb=hexToRgb(s)}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=(i.particles.opacity.random?Math.random():1)*i.particles.opacity.value,i.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=i.particles.opacity.anim.speed/100,i.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var n={};switch(i.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}}i.particles.move.straight?(this.vx=n.x,this.vy=n.y,i.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 r=i.particles.shape.type;if("object"==typeof r){if(r instanceof Array){var c=r[Math.floor(Math.random()*r.length)];this.shape=c}}else this.shape=r;if("image"==this.shape){var o=i.particles.shape;this.img={src:o.image.src,ratio:o.image.width/o.image.height},this.img.ratio||(this.img.ratio=1),"svg"==i.tmp.img_type&&null!=i.tmp.source_svg&&(i.fn.vendors.createSvgImg(this),i.tmp.pushing&&(this.img.loaded=!1))}},i.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 s="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+t+")";else s="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+t+")";switch(i.canvas.ctx.fillStyle=s,i.canvas.ctx.beginPath(),e.shape){case"circle":i.canvas.ctx.arc(e.x,e.y,a,0,2*Math.PI,!1);break;case"edge":i.canvas.ctx.rect(e.x-a,e.y-a,2*a,2*a);break;case"triangle":i.fn.vendors.drawShape(i.canvas.ctx,e.x-a,e.y+a/1.66,2*a,3,2);break;case"polygon":i.fn.vendors.drawShape(i.canvas.ctx,e.x-a/(i.particles.shape.polygon.nb_sides/3.5),e.y-a/.76,2.66*a/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,1);break;case"star":i.fn.vendors.drawShape(i.canvas.ctx,e.x-2*a/(i.particles.shape.polygon.nb_sides/4),e.y-a/1.52,2*a*2.66/(i.particles.shape.polygon.nb_sides/3),i.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==i.tmp.img_type)var n=e.img.obj;else n=i.tmp.img_obj;n&&i.canvas.ctx.drawImage(n,e.x-a,e.y-a,2*a,2*a/e.img.ratio)}i.canvas.ctx.closePath(),i.particles.shape.stroke.width>0&&(i.canvas.ctx.strokeStyle=i.particles.shape.stroke.color,i.canvas.ctx.lineWidth=i.particles.shape.stroke.width,i.canvas.ctx.stroke()),i.canvas.ctx.fill()},i.fn.particlesCreate=function(){for(var e=0;e<i.particles.number.value;e++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value))},i.fn.particlesUpdate=function(){for(var e=0;e<i.particles.array.length;e++){var a=i.particles.array[e];if(i.particles.move.enable){var t=i.particles.move.speed/2;a.x+=a.vx*t,a.y+=a.vy*t}if(i.particles.opacity.anim.enable&&(1==a.opacity_status?(a.opacity>=i.particles.opacity.value&&(a.opacity_status=!1),a.opacity+=a.vo):(a.opacity<=i.particles.opacity.anim.opacity_min&&(a.opacity_status=!0),a.opacity-=a.vo),a.opacity<0&&(a.opacity=0)),i.particles.size.anim.enable&&(1==a.size_status?(a.radius>=i.particles.size.value&&(a.size_status=!1),a.radius+=a.vs):(a.radius<=i.particles.size.anim.size_min&&(a.size_status=!0),a.radius-=a.vs),a.radius<0&&(a.radius=0)),"bounce"==i.particles.move.out_mode)var s={x_left:a.radius,x_right:i.canvas.w,y_top:a.radius,y_bottom:i.canvas.h};else s={x_left:-a.radius,x_right:i.canvas.w+a.radius,y_top:-a.radius,y_bottom:i.canvas.h+a.radius};switch(a.x-a.radius>i.canvas.w?(a.x=s.x_left,a.y=Math.random()*i.canvas.h):a.x+a.radius<0&&(a.x=s.x_right,a.y=Math.random()*i.canvas.h),a.y-a.radius>i.canvas.h?(a.y=s.y_top,a.x=Math.random()*i.canvas.w):a.y+a.radius<0&&(a.y=s.y_bottom,a.x=Math.random()*i.canvas.w),i.particles.move.out_mode){case"bounce":(a.x+a.radius>i.canvas.w||a.x-a.radius<0)&&(a.vx=-a.vx),(a.y+a.radius>i.canvas.h||a.y-a.radius<0)&&(a.vy=-a.vy)}if(isInArray("grab",i.interactivity.events.onhover.mode)&&i.fn.modes.grabParticle(a),(isInArray("bubble",i.interactivity.events.onhover.mode)||isInArray("bubble",i.interactivity.events.onclick.mode))&&i.fn.modes.bubbleParticle(a),(isInArray("repulse",i.interactivity.events.onhover.mode)||isInArray("repulse",i.interactivity.events.onclick.mode))&&i.fn.modes.repulseParticle(a),i.particles.line_linked.enable||i.particles.move.attract.enable)for(var n=e+1;n<i.particles.array.length;n++){var r=i.particles.array[n];i.particles.line_linked.enable&&i.fn.interact.linkParticles(a,r),i.particles.move.attract.enable&&i.fn.interact.attractParticles(a,r),i.particles.move.bounce&&i.fn.interact.bounceParticles(a,r)}}},i.fn.particlesDraw=function(){i.canvas.ctx.clearRect(0,0,i.canvas.w,i.canvas.h),i.fn.particlesUpdate();for(var e=0;e<i.particles.array.length;e++){i.particles.array[e].draw()}},i.fn.particlesEmpty=function(){i.particles.array=[]},i.fn.particlesRefresh=function(){cancelRequestAnimFrame(i.fn.checkAnimFrame),cancelRequestAnimFrame(i.fn.drawAnimFrame),i.tmp.source_svg=void 0,i.tmp.img_obj=void 0,i.tmp.count_svg=0,i.fn.particlesEmpty(),i.fn.canvasClear(),i.fn.vendors.start()},i.fn.interact.linkParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y,n=Math.sqrt(t*t+s*s);if(n<=i.particles.line_linked.distance){var r=i.particles.line_linked.opacity-n/(1/i.particles.line_linked.opacity)/i.particles.line_linked.distance;if(r>0){var c=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+c.r+","+c.g+","+c.b+","+r+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(a.x,a.y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}},i.fn.interact.attractParticles=function(e,a){var t=e.x-a.x,s=e.y-a.y;if(Math.sqrt(t*t+s*s)<=i.particles.line_linked.distance){var n=t/(1e3*i.particles.move.attract.rotateX),r=s/(1e3*i.particles.move.attract.rotateY);e.vx-=n,e.vy-=r,a.vx+=n,a.vy+=r}},i.fn.interact.bounceParticles=function(e,a){var t=e.x-a.x,i=e.y-a.y;Math.sqrt(t*t+i*i)<=e.radius+a.radius&&(e.vx=-e.vx,e.vy=-e.vy,a.vx=-a.vx,a.vy=-a.vy)},i.fn.modes.pushParticles=function(e,a){i.tmp.pushing=!0;for(var t=0;t<e;t++)i.particles.array.push(new i.fn.particle(i.particles.color,i.particles.opacity.value,{x:a?a.pos_x:Math.random()*i.canvas.w,y:a?a.pos_y:Math.random()*i.canvas.h})),t==e-1&&(i.particles.move.enable||i.fn.particlesDraw(),i.tmp.pushing=!1)},i.fn.modes.removeParticles=function(e){i.particles.array.splice(0,e),i.particles.move.enable||i.fn.particlesDraw()},i.fn.modes.bubbleParticle=function(e){if(i.interactivity.events.onhover.enable&&isInArray("bubble",i.interactivity.events.onhover.mode)){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=1-(l=Math.sqrt(a*a+t*t))/i.interactivity.modes.bubble.distance;function n(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}if(l<=i.interactivity.modes.bubble.distance){if(s>=0&&"mousemove"==i.interactivity.status){if(i.interactivity.modes.bubble.size!=i.particles.size.value)if(i.interactivity.modes.bubble.size>i.particles.size.value){(c=e.radius+i.interactivity.modes.bubble.size*s)>=0&&(e.radius_bubble=c)}else{var r=e.radius-i.interactivity.modes.bubble.size,c=e.radius-r*s;e.radius_bubble=c>0?c:0}var o;if(i.interactivity.modes.bubble.opacity!=i.particles.opacity.value)if(i.interactivity.modes.bubble.opacity>i.particles.opacity.value)(o=i.interactivity.modes.bubble.opacity*s)>e.opacity&&o<=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=o);else(o=e.opacity-(i.particles.opacity.value-i.interactivity.modes.bubble.opacity)*s)<e.opacity&&o>=i.interactivity.modes.bubble.opacity&&(e.opacity_bubble=o)}}else n();"mouseleave"==i.interactivity.status&&n()}else if(i.interactivity.events.onclick.enable&&isInArray("bubble",i.interactivity.events.onclick.mode)){if(i.tmp.bubble_clicking){a=e.x-i.interactivity.mouse.click_pos_x,t=e.y-i.interactivity.mouse.click_pos_y;var l=Math.sqrt(a*a+t*t),v=((new Date).getTime()-i.interactivity.mouse.click_time)/1e3;v>i.interactivity.modes.bubble.duration&&(i.tmp.bubble_duration_end=!0),v>2*i.interactivity.modes.bubble.duration&&(i.tmp.bubble_clicking=!1,i.tmp.bubble_duration_end=!1)}function p(a,t,s,n,r){if(a!=t)if(i.tmp.bubble_duration_end)null!=s&&(o=a+(a-(n-v*(n-a)/i.interactivity.modes.bubble.duration)),"size"==r&&(e.radius_bubble=o),"opacity"==r&&(e.opacity_bubble=o));else if(l<=i.interactivity.modes.bubble.distance){if(null!=s)var c=s;else c=n;if(c!=a){var o=n-v*(n-a)/i.interactivity.modes.bubble.duration;"size"==r&&(e.radius_bubble=o),"opacity"==r&&(e.opacity_bubble=o)}}else"size"==r&&(e.radius_bubble=void 0),"opacity"==r&&(e.opacity_bubble=void 0)}i.tmp.bubble_clicking&&(p(i.interactivity.modes.bubble.size,i.particles.size.value,e.radius_bubble,e.radius,"size"),p(i.interactivity.modes.bubble.opacity,i.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},i.fn.modes.repulseParticle=function(e){if(i.interactivity.events.onhover.enable&&isInArray("repulse",i.interactivity.events.onhover.mode)&&"mousemove"==i.interactivity.status){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(a*a+t*t),n={x:a/s,y:t/s},r=clamp(1/(o=i.interactivity.modes.repulse.distance)*(-1*Math.pow(s/o,2)+1)*o*100,0,50),c={x:e.x+n.x*r,y:e.y+n.y*r};"bounce"==i.particles.move.out_mode?(c.x-e.radius>0&&c.x+e.radius<i.canvas.w&&(e.x=c.x),c.y-e.radius>0&&c.y+e.radius<i.canvas.h&&(e.y=c.y)):(e.x=c.x,e.y=c.y)}else if(i.interactivity.events.onclick.enable&&isInArray("repulse",i.interactivity.events.onclick.mode))if(i.tmp.repulse_finish||(i.tmp.repulse_count++,i.tmp.repulse_count==i.particles.array.length&&(i.tmp.repulse_finish=!0)),i.tmp.repulse_clicking){var o=Math.pow(i.interactivity.modes.repulse.distance/6,3),l=i.interactivity.mouse.click_pos_x-e.x,v=i.interactivity.mouse.click_pos_y-e.y,p=l*l+v*v,d=-o/p*1;p<=o&&function(){var a=Math.atan2(v,l);if(e.vx=d*Math.cos(a),e.vy=d*Math.sin(a),"bounce"==i.particles.move.out_mode){var t={x:e.x+e.vx,y:e.y+e.vy};(t.x+e.radius>i.canvas.w||t.x-e.radius<0)&&(e.vx=-e.vx),(t.y+e.radius>i.canvas.h||t.y-e.radius<0)&&(e.vy=-e.vy)}}()}else 0==i.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},i.fn.modes.grabParticle=function(e){if(i.interactivity.events.onhover.enable&&"mousemove"==i.interactivity.status){var a=e.x-i.interactivity.mouse.pos_x,t=e.y-i.interactivity.mouse.pos_y,s=Math.sqrt(a*a+t*t);if(s<=i.interactivity.modes.grab.distance){var n=i.interactivity.modes.grab.line_linked.opacity-s/(1/i.interactivity.modes.grab.line_linked.opacity)/i.interactivity.modes.grab.distance;if(n>0){var r=i.particles.line_linked.color_rgb_line;i.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+n+")",i.canvas.ctx.lineWidth=i.particles.line_linked.width,i.canvas.ctx.beginPath(),i.canvas.ctx.moveTo(e.x,e.y),i.canvas.ctx.lineTo(i.interactivity.mouse.pos_x,i.interactivity.mouse.pos_y),i.canvas.ctx.stroke(),i.canvas.ctx.closePath()}}}},i.fn.vendors.eventsListeners=function(){"window"==i.interactivity.detect_on?i.interactivity.el=window:i.interactivity.el=i.canvas.el,(i.interactivity.events.onhover.enable||i.interactivity.events.onclick.enable)&&(i.interactivity.el.addEventListener("mousemove",(function(e){if(i.interactivity.el==window)var a=e.clientX,t=e.clientY;else a=e.offsetX||e.clientX,t=e.offsetY||e.clientY;i.interactivity.mouse.pos_x=a,i.interactivity.mouse.pos_y=t,i.tmp.retina&&(i.interactivity.mouse.pos_x*=i.canvas.pxratio,i.interactivity.mouse.pos_y*=i.canvas.pxratio),i.interactivity.status="mousemove"})),i.interactivity.el.addEventListener("mouseleave",(function(e){i.interactivity.mouse.pos_x=null,i.interactivity.mouse.pos_y=null,i.interactivity.status="mouseleave"}))),i.interactivity.events.onclick.enable&&i.interactivity.el.addEventListener("click",(function(){if(i.interactivity.mouse.click_pos_x=i.interactivity.mouse.pos_x,i.interactivity.mouse.click_pos_y=i.interactivity.mouse.pos_y,i.interactivity.mouse.click_time=(new Date).getTime(),i.interactivity.events.onclick.enable)switch(i.interactivity.events.onclick.mode){case"push":i.particles.move.enable||1==i.interactivity.modes.push.particles_nb?i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb,i.interactivity.mouse):i.interactivity.modes.push.particles_nb>1&&i.fn.modes.pushParticles(i.interactivity.modes.push.particles_nb);break;case"remove":i.fn.modes.removeParticles(i.interactivity.modes.remove.particles_nb);break;case"bubble":i.tmp.bubble_clicking=!0;break;case"repulse":i.tmp.repulse_clicking=!0,i.tmp.repulse_count=0,i.tmp.repulse_finish=!1,setTimeout((function(){i.tmp.repulse_clicking=!1}),1e3*i.interactivity.modes.repulse.duration)}}))},i.fn.vendors.densityAutoParticles=function(){if(i.particles.number.density.enable){var e=i.canvas.el.width*i.canvas.el.height/1e3;i.tmp.retina&&(e/=2*i.canvas.pxratio);var a=e*i.particles.number.value/i.particles.number.density.value_area,t=i.particles.array.length-a;t<0?i.fn.modes.pushParticles(Math.abs(t)):i.fn.modes.removeParticles(t)}},i.fn.vendors.checkOverlap=function(e,a){for(var t=0;t<i.particles.array.length;t++){var s=i.particles.array[t],n=e.x-s.x,r=e.y-s.y;Math.sqrt(n*n+r*r)<=e.radius+s.radius&&(e.x=a?a.x:Math.random()*i.canvas.w,e.y=a?a.y:Math.random()*i.canvas.h,i.fn.vendors.checkOverlap(e))}},i.fn.vendors.createSvgImg=function(e){var a=i.tmp.source_svg.replace(/#([0-9A-F]{3,6})/gi,(function(a,t,i,s){if(e.color.rgb)var n="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+e.opacity+")";else n="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+e.opacity+")";return n})),t=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),s=window.URL||window.webkitURL||window,n=s.createObjectURL(t),r=new Image;r.addEventListener("load",(function(){e.img.obj=r,e.img.loaded=!0,s.revokeObjectURL(n),i.tmp.count_svg++})),r.src=n},i.fn.vendors.destroypJS=function(){cancelAnimationFrame(i.fn.drawAnimFrame),t.remove(),pJSDom=null},i.fn.vendors.drawShape=function(e,a,t,i,s,n){var r=s*n,c=s/n,o=180*(c-2)/c,l=Math.PI-Math.PI*o/180;e.save(),e.beginPath(),e.translate(a,t),e.moveTo(0,0);for(var v=0;v<r;v++)e.lineTo(i,0),e.translate(i,0),e.rotate(l);e.fill(),e.restore()},i.fn.vendors.exportImg=function(){window.open(i.canvas.el.toDataURL("image/png"),"_blank")},i.fn.vendors.loadImg=function(e){if(i.tmp.img_error=void 0,""!=i.particles.shape.image.src)if("svg"==e){var a=new XMLHttpRequest;a.open("GET",i.particles.shape.image.src),a.onreadystatechange=function(e){4==a.readyState&&(200==a.status?(i.tmp.source_svg=e.currentTarget.response,i.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),i.tmp.img_error=!0))},a.send()}else{var t=new Image;t.addEventListener("load",(function(){i.tmp.img_obj=t,i.fn.vendors.checkBeforeDraw()})),t.src=i.particles.shape.image.src}else console.log("Error pJS - No image.src"),i.tmp.img_error=!0},i.fn.vendors.draw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type?i.tmp.count_svg>=i.particles.number.value?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):null!=i.tmp.img_obj?(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame)):i.tmp.img_error||(i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw)):(i.fn.particlesDraw(),i.particles.move.enable?i.fn.drawAnimFrame=requestAnimFrame(i.fn.vendors.draw):cancelRequestAnimFrame(i.fn.drawAnimFrame))},i.fn.vendors.checkBeforeDraw=function(){"image"==i.particles.shape.type?"svg"==i.tmp.img_type&&null==i.tmp.source_svg?i.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(i.tmp.checkAnimFrame),i.tmp.img_error||(i.fn.vendors.init(),i.fn.vendors.draw())):(i.fn.vendors.init(),i.fn.vendors.draw())},i.fn.vendors.init=function(){i.fn.retinaInit(),i.fn.canvasInit(),i.fn.canvasSize(),i.fn.canvasPaint(),i.fn.particlesCreate(),i.fn.vendors.densityAutoParticles(),i.particles.line_linked.color_rgb_line=hexToRgb(i.particles.line_linked.color)},i.fn.vendors.start=function(){isInArray("image",i.particles.shape.type)?(i.tmp.img_type=i.particles.shape.image.src.substr(i.particles.shape.image.src.length-3),i.fn.vendors.loadImg(i.tmp.img_type)):i.fn.vendors.checkBeforeDraw()},i.fn.vendors.eventsListeners(),i.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 a.indexOf(e)>-1}Object.deepExtend=function(e,a){for(var t in a)a[t]&&a[t].constructor&&a[t].constructor===Object?(e[t]=e[t]||{},arguments.callee(e[t],a[t])):e[t]=a[t];return e},window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,window.pJSDom=[],window.particlesJS=function(e,a){"string"!=typeof e&&(a=e,e="particles-js"),e||(e="particles-js");var t=document.getElementById(e),i=t.getElementsByClassName("particles-js-canvas-el");if(i.length)for(;i.length>0;)t.removeChild(i[0]);var s=document.createElement("canvas");s.className="particles-js-canvas-el",s.style.width="100%",s.style.height="100%",null!=document.getElementById(e).appendChild(s)&&pJSDom.push(new pJS(e,a))},window.particlesJS.load=function(e,a,t){var i=new XMLHttpRequest;i.open("GET",a),i.onreadystatechange=function(a){if(4==i.readyState)if(200==i.status){var s=JSON.parse(a.currentTarget.response);window.particlesJS(e,s),t&&t()}else console.log("Error pJS - XMLHttpRequest status: "+i.status),console.log("Error pJS - File config not found")},i.send()};
!function(e,n){"use strict";e(window).on("elementor/frontend/init",(function(){var n,t=elementorModules.frontend.handlers.Base;n=t.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0}},onElementChange:debounce((function(e){-1!==e.indexOf("section_particles")&&this.run()}),400),settings:function(e){return this.getElementSettings("section_particles_"+e)},run:function(){var n="bdt-particle-container-"+this.$element.data("id"),t=this.$element.data("id"),i=e(".elementor-element-"+t);this.particleID=n;var o={particles:{number:{value:80,density:{enable:!0,value_area:800}},color:{value:"#ffffff"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:3,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:150,color:"#ffffff",opacity:.4,width:1},move:{enable:!0,speed:6,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0};this.settings("js")&&0!==this.settings("js").length&&(o=JSON.parse(this.settings("js"))),this.settings("on")&&(0===e("#"+n).length&&e(i).prepend('<div id="'+n+'" class="bdt-particle-container"></div>'),particlesJS(n,o))}}),elementorFrontend.hooks.addAction("frontend/element_ready/section",(function(e){elementorFrontend.elementsHandler.addHandler(n,{$element:e})})),elementorFrontend.hooks.addAction("frontend/element_ready/container",(function(e){elementorFrontend.elementsHandler.addHandler(n,{$element:e})}))}))}(jQuery,window.elementorFrontend);
(function(t,e){t=t||{};var i="__animatedLetters",n=function(t,e){return this.initialize(t,e)};n.defaults={contentType:"letter",animationName:"typeWriter",animationSpeed:50,startDelay:500,minWindowWidth:768,letterClass:"",wordClass:""},n.prototype={initialize:function(t,e){if(t.data(i))return this;return this.$el=t,this.initialText=t.text(),this.timeoutId=null,this.setData().setOptions(e).build().events(),this},setData:function(){return this.$el.data(i,this),this},setOptions:function(t){return this.options=e.extend(!0,{},n.defaults,t,{wrapper:this.$el}),this},build:function(){var i=this,n=i.$el.text().split("");if(e(window).width()<i.options.minWindowWidth)return i.$el.addClass("initialized"),this;if(i.options.firstLoadNoAnim)return i.$el.css({visibility:"visible"}),i.$el.closest(".owl-carousel").get(0)&&setTimeout((function(){i.$el.closest(".owl-carousel").on("change.owl.carousel",(function(){i.options.firstLoadNoAnim=!1,i.build()}))}),500),this;if(i.$el.addClass("initialized"),i.setMinHeight(),"letter"==i.options.contentType)if(i.$el.text(""),"typeWriter"==i.options.animationName){i.$el.append('<span class="letters-wrapper"></span><span class="typeWriter"></pre>');var a=0,s=function(){var t=setTimeout((function(){var t=n[a];i.$el.find(".letters-wrapper").append('<span class="letter '+(i.options.letterClass?i.options.letterClass+" ":"")+'">'+t+"</span>"),a++,s()}),i.options.animationSpeed);a>=n.length&&clearTimeout(t)};s()}else this.timeoutId=setTimeout((function(){for(var t=0;t<n.length;t++){var e=n[t];i.$el.append('<span class="letter '+(i.options.letterClass?i.options.letterClass+" ":"")+i.options.animationName+' animated" style="animation-delay: '+t*i.options.animationSpeed+'ms;">'+(" "==e?"&nbsp;":e)+"</span>")}}),i.options.startDelay);else if("word"==i.options.contentType){var o=i.$el.text().split(" "),l=i.options.startDelay;i.$el.empty(),e.each(o,(function(t,n){i.$el.append(e('<span class="animated-words-wrapper">').html('<span class="animated-words-item '+i.options.wordClass+' appear-animation" data-appear-animation="'+i.options.animationName+'" data-appear-animation-delay="'+l+'">'+n+"&nbsp;</span>")),l+=i.options.animationSpeed})),e.isFunction(e.fn.themeAnimate)&&i.$el.find(".animated-words-item[data-appear-animation]").length&&i.$el.find("[data-appear-animation]").each((function(){var i,n=e(this),a=t.getOptions(n.data("plugin-options"));a&&(i=a),n.themeAnimate(i)})),i.$el.addClass("initialized")}return this},setMinHeight:function(){var t=this;return t.$el.closest(".owl-carousel").get(0)?(t.$el.closest(".owl-carousel").addClass("d-block"),t.$el.css("min-height",t.$el.height()),t.$el.closest(".owl-carousel").removeClass("d-block")):t.$el.css("min-height",t.$el.height()),this},destroy:function(){return this.$el.html(this.initialText).css("min-height",""),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this},events:function(){var t=this;return t.$el.on("animated.letters.destroy",(function(){t.destroy()})),t.$el.on("animated.letters.initialize",(function(){t.build()})),this}},e.extend(t,{PluginAnimatedLetters:n}),e.fn.themePluginAnimatedLetters=function(t){return this.map((function(){var a=e(this);return a.data(i)?a.data(i):new n(a,t)}))}}).apply(this,[window.theme,jQuery]),function(t,e){t=t||{},e(document.body).on("porto_after_async_init",(function(){e.fn.themePluginAnimatedLetters&&((e("[data-plugin-animated-letters]").length||e(".animated-letters").length)&&t.intObs("[data-plugin-animated-letters]:not(.manual), .animated-letters","themePluginAnimatedLetters"),(e("[data-plugin-animated-words]").length||e(".animated-words").length)&&t.intObs("[data-plugin-animated-words]:not(.manual), .animated-words","themePluginAnimatedLetters"))}))}.apply(this,[window.theme,jQuery]);
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){var t="-";js_porto_vars&&"1"==js_porto_vars.rtl&&(t=""),e.fn.marquee=function(a){return this.each((function(){var r,n,i,s,o,u=e.extend({},e.fn.marquee.defaults,a),d=e(this),p=3,l="animation-play-state",f=!1,c=function(e,t,a){for(var r=["webkit","moz","MS","o",""],n=0;n<r.length;n++)r[n]||(t=t.toLowerCase()),e.addEventListener(r[n]+t,a,!1)},m=function(){d.timer=setTimeout(k,u.delayBeforeStart)},g={pause:function(){f&&u.allowCss3Support?r.css(l,"paused"):e.fn.pause&&r.pause(),d.data("runningStatus","paused"),d.trigger("paused")},resume:function(){f&&u.allowCss3Support?r.css(l,"running"):e.fn.resume&&r.resume(),d.data("runningStatus","resumed"),d.trigger("resumed")},toggle:function(){g["resumed"===d.data("runningStatus")?"pause":"resume"]()},destroy:function(){clearTimeout(d.timer),d.find("*").addBack().off(),d.html(d.find(".js-marquee:first").html())}};if("string"!=typeof a){var h;e.each(u,(function(e){if(void 0!==(h=d.attr("data-"+e))){switch(h){case"true":h=!0;break;case"false":h=!1}u[e]=h}})),u.speed&&(u.duration=parseInt(d.width(),10)/u.speed*1e3),s="up"===u.direction||"down"===u.direction,u.gap=u.duplicated?parseInt(u.gap):0,d.wrapInner('<div class="js-marquee"></div>');var v=d.find(".js-marquee").css(js_porto_vars&&"1"==js_porto_vars.rtl?{"margin-left":u.gap,float:"right"}:{"margin-right":u.gap,float:"left"});if(u.duplicated&&v.clone(!0).appendTo(d),d.wrapInner('<div style="width:150000px" class="js-marquee-wrapper"></div>'),r=d.find(".js-marquee-wrapper"),s){var y=d.height();r.removeAttr("style"),d.height(y),d.find(".js-marquee").css(js_porto_vars&&"1"==js_porto_vars.rtl?{float:"none","margin-bottom":u.gap,"margin-left":0}:{float:"none","margin-bottom":u.gap,"margin-right":0}),u.duplicated&&d.find(".js-marquee:last").css({"margin-bottom":0});var x=d.find(".js-marquee:first").height()+u.gap;u.startVisible&&!u.duplicated?(u._completeDuration=(parseInt(x,10)+parseInt(y,10))/parseInt(y,10)*u.duration,u.duration=parseInt(x,10)/parseInt(y,10)*u.duration):u.duration=(parseInt(x,10)+parseInt(y,10))/parseInt(y,10)*u.duration}else o=d.find(".js-marquee:first").width()+u.gap,n=d.width(),u.startVisible&&!u.duplicated?(u._completeDuration=(parseInt(o,10)+parseInt(n,10))/parseInt(n,10)*u.duration,u.duration=parseInt(o,10)/parseInt(n,10)*u.duration):u.duration=(parseInt(o,10)+parseInt(n,10))/parseInt(n,10)*u.duration;if(u.duplicated&&(u.duration=u.duration/2),u.allowCss3Support){var I=document.body||document.createElement("div"),w="marqueeAnimation-"+Math.floor(1e7*Math.random()),j="Webkit Moz O ms Khtml".split(" "),q="animation",S="",b="";if(void 0!==I.style.animation&&(b="@keyframes "+w+" ",f=!0),!1===f)for(var _=0;_<j.length;_++)if(void 0!==I.style[j[_]+"AnimationName"]){var C="-"+j[_].toLowerCase()+"-";q=C+q,l=C+l,b="@"+C+"keyframes "+w+" ",f=!0;break}f&&(S=w+" "+u.duration/1e3+"s "+u.delayBeforeStart/1e3+"s infinite "+u.css3easing,d.data("css3AnimationIsSupported",!0))}var V=function(){r.css("transform","translateY("+("up"===u.direction?y+"px":"-"+x+"px")+")")},B=function(){r.css("transform","translateX("+("left"===u.direction?n+"px":t+o+"px")+")")};u.duplicated?(s?u.startVisible?r.css("transform","translateY(0)"):r.css("transform","translateY("+("up"===u.direction?y+"px":"-"+(2*x-u.gap)+"px")+")"):u.startVisible?r.css("transform","translateX(0)"):r.css("transform","translateX("+("left"===u.direction?n+"px":t+(2*o-u.gap)+"px")+")"),u.startVisible||(p=1)):u.startVisible?p=2:s?V():B();var k=function(){if(u.duplicated&&(1===p?(u._originalDuration=u.duration,u.duration=s?"up"===u.direction?u.duration+y/(x/u.duration):2*u.duration:"left"===u.direction?u.duration+n/(o/u.duration):2*u.duration,S&&(S=w+" "+u.duration/1e3+"s "+u.delayBeforeStart/1e3+"s "+u.css3easing),p++):2===p&&(u.duration=u._originalDuration,S&&(w+="0",b=e.trim(b)+"0 ",S=w+" "+u.duration/1e3+"s 0s infinite "+u.css3easing),p++)),s?u.duplicated?(p>2&&r.css("transform","translateY("+("up"===u.direction?0:"-"+x+"px")+")"),i={transform:"translateY("+("up"===u.direction?"-"+x+"px":0)+")"}):u.startVisible?2===p?(S&&(S=w+" "+u.duration/1e3+"s "+u.delayBeforeStart/1e3+"s "+u.css3easing),i={transform:"translateY("+("up"===u.direction?"-"+x+"px":y+"px")+")"},p++):3===p&&(u.duration=u._completeDuration,S&&(w+="0",b=e.trim(b)+"0 ",S=w+" "+u.duration/1e3+"s 0s infinite "+u.css3easing),V()):(V(),i={transform:"translateY("+("up"===u.direction?"-"+r.height()+"px":y+"px")+")"}):u.duplicated?(p>2&&r.css("transform","translateX("+("left"===u.direction?0:t+o+"px")+")"),i={transform:"translateX("+("left"===u.direction?t+o+"px":0)+")"}):u.startVisible?2===p?(S&&(S=w+" "+u.duration/1e3+"s "+u.delayBeforeStart/1e3+"s "+u.css3easing),i={transform:"translateX("+("left"===u.direction?t+o+"px":n+"px")+")"},p++):3===p&&(u.duration=u._completeDuration,S&&(w+="0",b=e.trim(b)+"0 ",S=w+" "+u.duration/1e3+"s 0s infinite "+u.css3easing),B()):(B(),i={transform:"translateX("+("left"===u.direction?t+o+"px":n+"px")+")"}),d.trigger("beforeStarting"),f){r.css(q,S);var a=b+" { 100%  "+function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(a+":"+e[a]);return t.push(),"{"+t.join(",")+"}"}(i)+"}",l=r.find("style");0!==l.length?l.filter(":last").html(a):e("head").append("<style>"+a+"</style>"),c(r[0],"AnimationIteration",(function(){d.trigger("finished")})),c(r[0],"AnimationEnd",(function(){k(),d.trigger("finished")}))}else r.animate(i,u.duration,u.easing,(function(){d.trigger("finished"),u.pauseOnCycle?m():k()}));d.data("runningStatus","resumed")};d.on("pause",g.pause),d.on("resume",g.resume),u.pauseOnHover&&(d.on("mouseenter",g.pause),d.on("mouseleave",g.resume)),f&&u.allowCss3Support?k():m()}else e.isFunction(g[a])&&(r||(r=d.find(".js-marquee-wrapper")),!0===d.data("css3AnimationIsSupported")&&(f=!0),g[a]())}))},e.fn.marquee.defaults={allowCss3Support:!0,css3easing:"linear",easing:"linear",delayBeforeStart:1e3,direction:"left",duplicated:!1,duration:5e3,speed:0,gap:20,pauseOnCycle:!1,pauseOnHover:!1,startVisible:!1}})),function(e){e("[data-clone-element]").length&&e("[data-clone-element]").each((function(){var t=e(this),a=t.html(),r=t.attr("data-clone-element");for(let e=0;e<r;e++)t.html(t.html()+a)})),e(".marquee").length&&e.isFunction(e.fn.marquee)&&e(".marquee").marquee({duration:5e3,gap:0,delayBeforeStart:0,direction:"left",duplicated:!0})}(window.jQuery);
!function(e,t){"use strict";e(window).on("elementor/frontend/init",(function(){var e,t=elementorModules.frontend.handlers.Base;e=t.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{media:!1,easing:1,viewport:1}},onElementChange:debounce((function(e){-1===e.indexOf("section_parallax_")&&-1===e.indexOf("ep_parallax_")||this.run()}),400),settings:function(e){return this.getElementSettings(e)},run:function(){var e=this.getDefaultSettings(),t=this.$element.data("id");if("yes"!==this.settings("section_parallax_on"))return;let n=jQuery(".elementor-element-"+t).get(0);this.settings("section_parallax_x_value.size")&&(e.bgx=this.settings("section_parallax_x_value.size")||0),this.settings("section_parallax_value.size")&&(e.bgy=this.settings("section_parallax_value.size")||0),this.settings("ep_parallax_bg_colors")&&(this.settings("ep_parallax_bg_border_color_start")||this.settings("ep_parallax_bg_border_color_end"))&&(e.borderColor=[this.settings("ep_parallax_bg_border_color_start")||0,this.settings("ep_parallax_bg_border_color_end")||0]),this.settings("ep_parallax_bg_colors")&&(this.settings("ep_parallax_bg_color_start")||this.settings("ep_parallax_bg_color_end"))&&(e.backgroundColor=[this.settings("ep_parallax_bg_color_start")||0,this.settings("ep_parallax_bg_color_end")||0]),(this.settings("section_parallax_x_value")||this.settings("section_parallax_value")||this.settings("ep_parallax_bg_colors"))&&(this.bgParallax=bdtUIkit.parallax(n,e))}}),elementorFrontend.hooks.addAction("frontend/element_ready/section",(function(t){elementorFrontend.elementsHandler.addHandler(e,{$element:t})})),elementorFrontend.hooks.addAction("frontend/element_ready/container",(function(t){elementorFrontend.elementsHandler.addHandler(e,{$element:t})}))}))}(jQuery,window.elementorFrontend);
(function(e){"use strict";var s=function(s){if(s.length&&!s.hasClass("porto-free-shipping-bar"))return this.$el=s,this.entireHeight=document.body.clientHeight-window.innerHeight,this.setProgress=this.setProgress.bind(this),this.isUnderHeader=s.hasClass("fixed-under-header"),this.$header=e("#header"),this.scrollType=s.hasClass("porto-scroll-progress-circle")?"circle":"","circle"==this.scrollType&&(this.$indicator=s.find("#progress-indicator")),s.hasClass("fixed-top")&&"0px"==s.css("margin-top")&&e("html").css("padding-top",s.height()),this.initialize()};s.prototype={initialize:function(){var s=this;s.isUnderHeader&&s.$el.css("top",theme.StickyHeader.sticky_height+theme.adminBarHeight()+theme.sticky_nav_height),window.addEventListener("scroll",s.setProgress,{passive:!0}),e(window).smartresize((function(){s.entireHeight=document.body.clientHeight-window.innerHeight,s.isUnderHeader&&s.$el.css("top",theme.StickyHeader.sticky_height+theme.adminBarHeight()+theme.sticky_nav_height)})),"circle"==s.scrollType&&s.$el.on("click",(function(s){s.preventDefault(),theme.scrolltoContainer(e(document.body))})),s.setProgress()},setProgress:function(){var s=e(window).scrollTop(),i=Math.ceil(s/this.entireHeight*100);if(i>100&&(i=100),"circle"==this.scrollType)window.pageYOffset>100?this.$el.addClass("show"):this.$el.removeClass("show"),i*=2.14,this.$indicator.length&&this.$indicator.css("stroke-dasharray",i+", 400");else{if(this.isUnderHeader){var t="";t=this.$header.hasClass("sticky-header")&&i>0?"block":"none",this.$el.css("display",t)}this.$el.attr("value",i)}e(".page-wrapper").hasClass("sticky-scroll-up")&&!e("html").hasClass("porto-search-opened")&&this.$el.hasClass("fixed-under-header")&&(s>=(this.$el.data("prev-pos")?this.$el.data("prev-pos"):0)?this.$el.addClass("scroll-down"):this.$el.removeClass("scroll-down"),void 0===theme.StickyHeader.sticky_height?this.$el.data("prev-pos",0):this.$el.data("prev-pos",s))}},e(window).on("load",(function(){e(".porto-scroll-progress").each((function(){new s(e(this))}))})),e(document.body).on("porto_init_scroll_progress",(function(e,i){new s(i.find(".porto-scroll-progress"))}))}).apply(this,[jQuery]);
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.particles)return;SR7.A.particles={style:"",getLayerBasics:(e={},s)=>SR7.A.particles.getDefaults(e,s),getModuleBasics:(e={},s)=>SR7.A.particles.getDefaults(e,s,!0),getDefaults:(e={},s,t)=>{let a=void 0!==e.max,i=void 0!==e.particles;if(!a&&!i&&t)return{u:!0};const l={u:"compare"==s?void 0:e.u??e.enable??!1,z:e.z??(a?99999:e.zIndex??e?.styles?.particle?.zIndex??0),fb:e.fb??e.fback??!1,hm:e.hm??e.hideOnMobile??!1,ss:e.startSlide??"first",es:e.endSlide??"last",particles:{sh:e.particles?.sh??e.particles?.shape??"circle",n:e.particles?.n??parseInt(e.particles?.number??(a?e.max?.number??400:80)),s:e.particles?.s??parseFloat(e.particles?.size??e.max?.size??6),sm:e.particles?.sm??parseFloat(e.particles?.sizeMin??e.min?.size??1),r:e.particles?.r??e.particles?.random??!0,c:e.particles?.c??e.styles?.particle?.color??"#ffffff",oc:e.particles?.oc??e.styles?.particle?.ocolor??!1,o:e.particles?.o??parseFloat(e.styles?.particle?.opacity??(a?100*(e.max?.opacity??1):100)),om:e.particles?.om??parseFloat(e.styles?.particle?.opacityMin??(a?100*(e.min?.opacity??.3):25)),or:e.particles?.or??e.styles?.particle?.opacityRandom??!!a,b:e.particles?.b??e.styles?.border?.enable??!1,bc:e.particles?.bc??e.styles?.border?.color??"#ffffff",bo:e.particles?.bo??parseFloat(e.styles?.border?.opacity??100),bs:e.particles?.bs??parseFloat(e.styles?.border?.size??1),l:e.particles?.l??e.styles?.lines?.enable??!1,lc:e.particles?.lc??e.styles?.lines?.color??"#ffffff",lw:e.particles?.lw??parseFloat(e.styles?.lines?.width??1),lo:e.particles?.lo??parseFloat(e.styles?.lines?.opacity??100),ld:e.particles?.ld??parseFloat(e.styles?.lines?.distance??150)},move:{e:e.move?.e??e.movement?.enable??!0,rs:e.move?.rs??e.movement?.randomSpeed??!0,s:e.move?.s??parseFloat(e.movement?.speed??(a?(e.max?.speed??100)/50:1)),sm:e.move?.sm??parseFloat(e.movement?.speedMin??(a?(e.min?.speed??30)/50:1)),d:e.move?.d??e.movement?.direction??"bottom",ve:e.move?.ve??e.movement?.vortexEffect??"none",v:e.move?.v??e.movement?.straight??!0,b:e.move?.b??e.movement?.bounce??!1,a:e.move?.a??e.movement?.attract?.enable??!1},interact:{h:e.interact?.h??e.interactivity?.hoverMode??"none",c:e.interact?.c??e.interactivity?.clickMode??"none",bd:e.interact?.bd??parseFloat(e.bubble?.distance??400),bs:e.interact?.bs??parseFloat(e.bubble?.size??40),bo:e.interact?.bo??parseFloat(e.bubble?.opacity??40),gd:e.interact?.gd??parseFloat(e.grab?.distance??400),go:e.interact?.go??parseFloat(e.grab?.opacity??50),rd:e.interact?.rd??parseFloat(e.repulse?.distance??200),re:e.interact?.re??parseFloat(e.repulse?.easing??100),af:e.interact?.af??parseFloat(e?.attract?.force??10),ad:e.interact?.ad??parseFloat(e?.attract?.distance??200),gc:e.interact?.gc??e?.grab?.crawl??!1,gm:e.interact?.gm??e?.grab?.crawlMaxLines??5},pulse:{se:e.pulse?.se??e.pulse?.size?.enable??!1,ss:e.pulse?.ss??parseFloat(e.pulse?.size?.speed??40),sm:e.pulse?.sm??parseFloat(e.pulse?.size?.min??1),ssy:e.pulse?.ssy??e.pulse?.size?.sync??!1,oe:e.pulse?.oe??e.pulse?.opacity?.enable??!1,os:e.pulse?.os??parseFloat(e.pulse?.opacity?.speed??3),om:e.pulse?.om??parseFloat(e.pulse?.opacity?.min??1),osy:e.pulse?.osy??e.pulse?.opacity?.sync??!1},physics:{g:e.physics?.g??parseFloat(e.physics?.gravity??(a?10:0)),gm:e.physics?.gm??parseFloat(e.physics?.gravityMin??(a?10:0)),gd:e.physics?.gd??e.physics?.gravityDir??"bottom",sp:e.physics?.sp??e.physics?.spawn??a,dc:e.physics?.dc??e.physics?.decay??a,d:e.physics?.d??parseFloat(e.physics?.damping??70),hd:e.physics?.hd??parseFloat(e.physics?.hDrift??(a?10:0)),vd:e.physics?.vd??parseFloat(e.physics?.vDrift??0)}};return l.particles.s=l.particles.s<1?1:l.particles.s,l},prepareLayer:async(e,s,t)=>{if(""+(SR7.M[e].settings?.addOns?.particles?.u??!1)=="false")return;if(!s.addOns?.particles?.u)return;const{c:a}=SR7.F.getLayer(t);a.addOns??={},a.addOns.particles??={settings:SR7.A.particles.getLayerBasics(s.addOns.particles,"normalize")}},init:s=>{const a=SR7.M[s];if(!a.settings.addOns.particles.u)return;const i=SR7.A.particles;void 0===SR7.A.particlescss&&(_tpt.injectCssJs(SR7.A.particles.style,void 0,void 0,"particles_global_styles"),SR7.A.particlescss=!0),SR7.M[s].c.moduleListeners??={},SR7.M[s].c.moduleListeners.particles??={},SR7.A.particles.listeners.init(s),a.addOns??={},new Promise((function(e,s){t(e,s)})).then((function(){if(!a.settings.addOns.particles?.particles)return;let t=a.addOns.particles={settings:a.settings.addOns.particles,module:!0};e(t,a.c.module,a),SR7.A.particles.onFire??={},SR7.A.particles.onFire[s]??={},SR7.A.particles.onFire[s][s]=a}));const l=[];return null==i.pjs&&l.push("pjs"),l},start:(t,a,i)=>{let l=a.addOns.particles;e(l,a.el,a),"slidebg"==i&&SR7.M[t].c.slides[a.skey].appendChild(l.easel.canvas),s(a,!0),l.animate?._time==l.animate?._dur&&(l.animate=_tpt.gsap.fromTo(l.easel.canvas,{opacity:0},{opacity:1,delay:.5,duration:1})),l.easel.canvas.style.display="block",SR7.A.particles.onFire[t][a.el.id]=a},stop:(e,s)=>{let t=s.addOns.particles;t.animate=_tpt.gsap.fromTo(t.easel.canvas,{opacity:1},{opacity:0}),delete SR7.A.particles.onFire[e][s.el.id]},listeners:{init:e=>{const s=SR7.M[e];let t=SR7.A.particles;s.c.addOns??={};let a=s.c.addOns.particles??{};t.onFire??={},t.onFire[e]??={},t.listenersAdded?.[e]||(a.mouseEnter=a.mouseEnter??SR7.F.module.listeners.reg(e,"mouseenter",((e,s)=>t.mouse.enter(e,s))),a.mouseMove=a.mouseMove??SR7.F.module.listeners.reg(e,"mousemove",((e,s)=>t.mouse.move(e,s))),a.mouseLeave=a.mouseLeave??SR7.F.module.listeners.reg(e,"mouseleave",((e,s)=>t.mouse.leave(e,s))),a.mouseDown=a.mouseDown??SR7.F.module.listeners.reg(e,"mousedown",((e,s)=>t.mouse.down(e,s))),a.mouseUp=a.mouseUp??SR7.F.module.listeners.reg(e,"mouseup",((e,s)=>t.mouse.up(e,s))),_tpt.resizeObserver.observe((e=>{t.resize(e)}),50,e),document.addEventListener("sr.layer.action",(function(e){SR7.M[e.id];if(!e.c?.addOns?.particles)return;e.c.addOns.particles;"enteredstage"==e.eventtype?t.start(e.id,e.c,e.layersettings.subtype):"leavestage"==e.eventtype&&t.stop(e.id,e.c,!0)})),t.listenersAdded??={},t.listenersAdded[e]=!0)}},resize:e=>{SR7.A.particles.onFire&&requestAnimationFrame((()=>{const t=SR7.M[e].c.addOns.particles;for(let a in SR7.A.particles.onFire[e])if(_tpt.hop(SR7.A.particles.onFire[e],a)){const i=SR7.M[e].c.layers[a].addOns.particles;s(SR7.A.particles.onFire[e][a]);const l=i.easel.canvas.getBoundingClientRect();let r=t.mouse.xp*l.width,n=t.mouse.yp*l.height;t.mouse.x=r-l.left,t.mouse.y=n-l.top,i.pjs.updateMouse({x:t.mouse.x,y:t.mouse.y,type:"move"})}}))},mouse:{enter:(e,s)=>{SR7.A.particles.mouse.defaultHandler(e,s,"enter")},move:(e,s)=>{SR7.A.particles.mouse.defaultHandler(e,s,"move")},leave:(e,s)=>{SR7.A.particles.mouse.defaultHandler(e,s,"left")},down:(e,s)=>{SR7.A.particles.mouse.defaultHandler(e,s,"mousedown")},up:(e,s)=>{SR7.A.particles.mouse.defaultHandler(e,s,"mouseup")},defaultHandler:(e,s,t)=>{const a=SR7.M[e];a.c.addOns??={},a.c.addOns.particles??={},a.c.addOns.particles.mouse??={};const i=a.c.addOns.particles;for(var e in i.mouse.type=t,SR7.M){const a=SR7.M[e];if(a.states.inViewPort)for(var l in a.c.layers){if(!a.c.layers[l].addOns?.particles)continue;const e=a.c.layers[l].addOns.particles;if(!e.easel||!e.pjs)continue;const r=e.easel.canvas.getBoundingClientRect();i.mouse.xp=s.clientX/r.width,i.mouse.yp=s.clientY/r.height,i.mouse.x=s.clientX-r.left,i.mouse.y=s.clientY-r.top,e.pjs.updateMouse({x:i.mouse.x,y:i.mouse.y,type:t})}}}}};const e=(e,t,a)=>{e.pjs&&e.easel?.canvas||(e.pjs&&e.pjs.destroy&&e.pjs.destroy(),e.easel&&e.easel.canvas&&e.easel.canvas.remove(),e.easel=new SR7.F.canvas({wrap:t,width:"100%",height:"100%",color:"transparent",ctx:"2d"}),e.easel.canvas.style.display="block",e.easel.canvas.style.position="absolute",e.easel.canvas.style.width=e.module?a.dims.content.w-_tpt.scrollBarW+"px":"100%",e.easel.canvas.style.height=e.module?a.dims.content.h+"px":"100%",e.easel.canvas.style.top=0,e.easel.canvas.style.left=e.module?-a.dims.moduleRect.left+"px":0,e.easel.canvas.style.pointerEvents="none",e.easel.canvas.style.zIndex="default"===e.settings.z?0:e.settings.fb?1:e.settings.z,s(a,!0),e.pjs=new SR7.A.particle.pJS(e.easel.canvas,e.settings))},s=(e,s)=>{if(!e.addOns?.particles?.easel)return;let t=e.addOns.particles;t.easel.canvas.width=t.module?e.dims.module.w:Math.max(e.cw,e.canvas.canvas.width),t.easel.canvas.height=t.module?e.dims.module.h:Math.max(e.ch,e.canvas.canvas.height),t.easel.ctx.scale(_tpt.dpr,_tpt.dpr),!t.pjs||s&&t.easel.canvas.width==t.pjs.getW()||t.pjs.resize()};function t(e,s){_tpt?.R?.pjs&&SR7.A?.particle?.pJS?e():_tpt.gsap.delayedCall(.5,(function(){t(e,s)}))}_tpt.R??={},_tpt.R.particles=_tpt.extend?_tpt.extend(_tpt.R.particles,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticlesReady"))}();
!function(){"use strict";window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===(SR7.A.particlewave?.anim??void 0)&&(SR7.A.particle={...SR7.A.particle,pJS:function(t,s){this.s=s,this.n=s.particles.n,this.getSVGList(),this.w=t.width,this.h=t.height,this.ctx=t.getContext("2d"),this.canvas=t,this.setDefaults(),this.lc=this.s.particles.lc.split(","),this.c=this.s.particles.c.split(","),this.bc=this.s.particles.bc.split(","),this.sh=this.convertSvgs(),this.resize()},nParticle:function(t){if(this.s=t,this.r=this.s.particles.r?Math.min(this.s.particles.s,this.s.particles.s*Math.random()+this.s.particles.sm):this.s.particles.s,this.g=_tpt.gsap.utils.mapRange(this.s.particles.sm,this.s.particles.s,this.s.physics.gm,this.s.physics.g,this.r),this.x=Math.random()*this.s.w,this.y=Math.random()*this.s.h,0!==this.s.physics.g&&this.s.physics.sp)switch(this.s.physics.gd){case"top":this.y=Math.random()*this.s.h+this.s.h;break;case"bottom":this.y=-Math.random()*this.s.h;break;case"left":this.x=Math.random()*this.s.w+this.s.w;break;case"right":this.y=-Math.random()*this.s.w}this.spawning=this.s.physics.sp,this.s.move.d.includes("vortex")&&("expand"===this.s.move.ve?this.x=this.y=0:"shrink"===this.s.move.ve&&(this.x=this.y=Math.max(this.s.w,this.s.h)/2)),this.img=this.s.particles.img;var s=this.s.move.s,i=this.s.move.sm;this.angle=(Math.random()-.5)*Math.PI*2,this.vAngle="vortexcw"===this.s.move.d?.08:"vortexccw"===this.s.move.d?-.08:.08*(Math.random()-.5),this.s.move.rs&&(s=Math.round(Math.random()*(s-i)+i))<1&&(s=1),this.spd=s,this.s.pulse.se&&(this.size_status=!1,this.psv=this.s.pulse.ss/100,this.s.pulse.ssy||(this.psv=this.psv*Math.random()));var h=this.s.particles.om,e=Math.max(this.s.particles.o*(this.s.particles.or?Math.random():1),h);switch(this.s.pulse.or&&(e=Math.random()*(e-h)+h),this.o=this.opc=e,this.s.pulse.oe&&(this.opacity_status=!1,this.pulseSpeed=this.s.pulse.os,this.s.pulse.osy||(this.pulseSpeed=this.pulseSpeed*Math.random())),this.setUtils(),this.vx=this.vy=0,this.s.move.d){case"top":this.vy=-1;break;case"bottom":this.vy=1;break;case"left":this.vx=-1;break;case"right":this.vx=1;break;case"top-left":this.vx=-.5,this.vy=-.5;break;case"top-right":this.vx=.5,this.vy=-.5;break;case"bottom-left":this.vx=-.5,this.vy=.5;break;case"bottom-right":this.vx=.5,this.vy=.5}("spin"===this.s.move.d||this.s.move.d.includes("vortex"))&&(this.vx=0,this.vy=0),this.s.move.v&&(this.vx=this.vx+Math.random()-.5,this.vy=this.vy+Math.random()-.5),this.ovx=this.vx,this.ovy=this.vy}},SR7.A.particle.pJS.prototype.setDefaults=function(){this.repulseClamp=_tpt.gsap.utils.clamp(0,50),this.clamp01=_tpt.gsap.utils.clamp(0,1),this.size=2*this.s.particles.s,this.sizeMin=2*this.s.particles.sm,this.sizeMax=Math.max(2*this.s.particles.s,this.s.interact.bs*Math.PI),this.vortex=this.s.move.d.includes("vortex")},SR7.A.particle.pJS.prototype.getW=function(){return this.w},SR7.A.particle.pJS.prototype.resize=function(){this.w=this.canvas.width,this.h=this.canvas.height,this.halfMax=Math.max(this.w,this.h)/2,this.maxDim=Math.max(this.w,this.h);let t=this.w*this.h/1e3;this.n=Math.round(t*this.s.particles.n/800),this.arr=[];for(var s=0;s<this.n;s++){var i=new SR7.A.particle.nParticle({w:this.w,h:this.h,ctx:this.ctx,move:{d:this.s.move.d,ve:this.s.move.ve,s:this.s.move.s,sm:this.s.move.sm,rs:this.s.move.rs,v:"none"===this.s.move.d||this.s.move.v},particles:{s:this.size,sm:this.sizeMin,r:this.s.particles.r,o:this.s.particles.o/100,om:this.s.particles.om/100,img:this.imgs[Math.floor(this.imgs.length*Math.random())],or:this.s.particles.or,b:this.s.particles.b,bc:this.s.particles.bc,bo:this.s.particles.bo,bs:this.s.particles.bs,l:this.s.particles.l,lc:this.lc[Math.floor(Math.random()*this.lc.length)],lw:this.s.particles.lw,lo:this.s.particles.lo/100,ld:this.s.particles.ld},pulse:{se:this.s.pulse.se,ss:this.s.pulse.ss,sm:this.s.pulse.sm,ssy:this.s.pulse.ssy,oe:this.s.pulse.oe,os:this.s.pulse.os/100,om:this.s.pulse.om/100,osy:this.s.pulse.osy},interact:{h:this.s.interact.h,c:this.s.interact.c,bd:this.s.interact.bd,bs:this.s.interact.bs,bo:this.s.interact.bo/100,gd:this.s.interact.gd,go:this.s.interact.go/100,rd:this.s.interact.rd,re:this.s.interact.re,ad:this.s.interact.ad,af:this.s.interact.af/100},physics:{g:this.s.physics.g/1e3,gm:this.s.physics.gm/1e3,gd:this.s.physics.gd,sp:this.s.physics.sp,dc:this.s.physics.dc,d:Math.min(this.s.physics.d*Math.random(),.79)+.2,hd:this.s.physics.hd/100*3,vd:this.s.physics.vd/100*3}});this.arr.push(i)}this.drawParticles(),this.animate=this.animateHandler.bind(this),void 0===this.tick&&(this.tick=requestAnimationFrame(this.animate))},SR7.A.particle.pJS.prototype.play=function(){void 0===this.tick&&(this.tick=requestAnimationFrame(this.animate))},SR7.A.particle.pJS.prototype.pause=function(){this.tick=cancelAnimationFrame(this.tick)},SR7.A.particle.pJS.prototype.animateHandler=function(t){if(void 0===t||void 0===this.time)return this.time=t,this.tick=cancelAnimationFrame(this.tick),void(void 0===this.tick&&(this.tick=requestAnimationFrame(this.animate)));this.tick=cancelAnimationFrame(this.tick),void 0===this.tick&&(this.tick=requestAnimationFrame(this.animate)),this.tDiff=Math.min((t-this.time)/16.66,5),this.time=t,this.dTime=this.dTime??0,this.mousedown?this.dTime+=.1:this.dTime-=.1,this.dTime=Math.max(0,Math.min(1,this.dTime)),this.ctx.clearRect(0,0,this.w,this.h),this.distArr&&this.distArr.length===this.n||(this.distArr=new Array(this.n)),this.s.interact.gc&&(this.lastMaxD=this.lastMaxD??0);for(var s=0;s<this.n;s++){var i=this.arr[s];if(this.s.move.e){var h=i.spd/2;if(this.s.move.d.includes("vortex")){h/=10;var e=this.w/2-i.x,a=this.h/2-i.y,r=Math.sqrt(e*e+a*a);"expand"!==this.s.move.ve&&"shrink"!==this.s.move.ve||((r*="expand"===this.s.move.ve?1.05:.95)>this.halfMax&&"expand"===this.s.move.ve?(i.angle=(Math.random()-.5)*Math.PI*2,r=0):r<=10&&"shrink"===this.s.move.ve&&(i.angle=(Math.random()-.5)*Math.PI*2,r=this.halfMax),i.r=_tpt.gsap.utils.mapRange(0,this.halfMax,0,this.size,r)),i.x=this.w/2+Math.cos(i.angle)*r,i.y=this.h/2+Math.sin(i.angle)*r,i.angle+=i.vAngle*h*this.tDiff}else"spin"===this.s.move.d&&(i.x+=Math.cos(i.angle)*h*this.tDiff,i.y+=Math.sin(i.angle)*h*this.tDiff,i.angle+=i.vAngle);"static"===this.s.move.d&&0===this.s.physics.g||(i.x+=i.vx*h*this.tDiff,i.y+=i.vy*h*this.tDiff)}if(0!==this.s.physics.g)switch(this.s.physics.gd){case"bottom":i.vy+=i.g;break;case"top":i.vy-=i.g;break;case"right":i.vx+=i.g;break;case"left":i.vx-=i.g}if(0!==i.s.physics.hd&&(i.vx+=(Math.random()-.5)*i.s.physics.hd),0!==i.s.physics.vd&&(i.vy+=(Math.random()-.5)*i.s.physics.vd),this.s.pulse.oe&&(1==i.opacity_status?(i.o>=i.opc&&(i.opacity_status=!1),i.o+=i.pulseSpeed*this.tDiff):(i.o<=i.s.pulse.om&&(i.opacity_status=!0),i.o-=i.pulseSpeed*this.tDiff),i.o<0&&(i.o=0)),this.s.pulse.se&&(1==i.size_status?(i.r>=i.s.particles.s&&(i.size_status=!1),i.r+=i.psv*this.tDiff):(i.r<=i.s.particles.sm&&(i.size_status=!0),i.r-=i.psv*this.tDiff),i.r<0&&(i.r=0)),(i.x>this.w+i.r||i.x<-i.r||i.y>this.h+i.r||i.y<-i.r)&&!i.spawning?0===this.s.physics.g||i.damped||(i.vx*=i.s.physics.d*Math.random(),i.vy*=i.s.physics.d*Math.random(),i.damped=!0):i.damped=!1,this.s.move.b?(i.x+i.r/2>this.w&&(i.vx=-Math.abs(i.vx)),i.x<i.r/2&&(i.vx=Math.abs(i.vx)),i.y+i.r/2>this.h&&(i.vy=-Math.abs(i.vy)),i.y<i.r/2&&(i.vy=Math.abs(i.vy))):this.checkBounds(i),i.s.physics.dc&&(i.scale=i.dcScale("bottom"===this.s.physics.gd||"top"===this.s.physics.gd?i.y:i.x)/i.r,i.bo=i.dcOpacity("bottom"===this.s.physics.gd||"top"===this.s.physics.gd?i.y:i.x)),void 0!==this.mx&&void 0!==this.my){let t=i.x-this.mx,h=i.y-this.my,e="left"===this.mouse?1e6:Math.sqrt(t*t+h*h);if(this.distArr[s]=e,"attract"===i.s.interact.h||"attract"===i.s.interact.c&&this.mousedown)e<i.s.interact.ad?(i.vx+=(this.mx-i.x)*i.s.interact.af/e,i.vy+=(this.my-i.y)*i.s.interact.af/e):(i.vx=0!==this.s.physics.g?i.vx:i.ovx,i.vy=0!==this.s.physics.g?i.vy:i.ovy);else if("repulse"===i.s.interact.h&&"spin"===i.s.move.d&&e<i.s.interact.rd){const s=Math.atan2(h,t);i.x+=Math.cos(s)*i.spd/2,i.y+=Math.sin(s)*i.spd/2}else if("repulse"===i.s.interact.h&&e<i.s.interact.rd){let s,a,r,c=t/e,l=h/e,o=i.s.interact.rd,p=100,n=this.repulseClamp(1/o*(-1*Math.pow(e/o,2)+1)*o*p);0!==i.s.interact.re?(r=i.s.interact.re/16,s=i.x+(i.x+c*n-i.x)/r,a=i.y+(i.y+l*n-i.y)/r):(s=i.x+c*n,a=i.y+c*n),i.s.move.b?(i.x=s,i.y=a):(s-i.r>0&&s+i.r<this.w&&(i.x=s),a-i.r>0&&a+i.r<this.h&&(i.y=a))}if("bubble"!==i.s.interact.h&&"bubbles"!==i.s.interact.h&&("bubble"!==i.s.interact.c&&"bubble"!==i.s.interact.h||!this.mousedown&&-1===this.dTime)||(e<i.s.interact.bd?(i.scale=i.mapScale(e)/i.r,i.bo=i.mapOpacity(e),"bubble"===i.s.interact.c&&(i.scale=_tpt.gsap.utils.mapRange(0,1,1,i.scale,this.dTime),i.bo=_tpt.gsap.utils.mapRange(0,1,i.o,i.bo,this.dTime))):(i.scale=1,i.bo=i.o)),("grab"===i.s.interact.h||"grab"===i.s.interact.c&&this.mousedown)&&(this.s.interact.gc&&e<this.lastMaxD||!this.s.interact.gc&&e<i.s.interact.gd||i.ga)){let s=this.ctx,a=Math.atan2(h,t);i.gp=i.gp??0,this.s.interact.gc&&e<this.lastMaxD?i.gp+=.1:i.gp-=.1,i.a&&(i.gp=_tpt.gsap.utils.mapRange(0,1,0,i.gp,this.dTime)),i.gp=this.s.interact.gc?this.clamp01(i.gp):1,i.gp<=0?i.ga=!1:i.ga=!!this.s.interact.gc;let r=e*i.gp*Math.cos(a),c=e*i.gp*Math.sin(a);i.go=i.mapGrabOpacity(Math.min(1,e/i.s.interact.gd)),s.globalAlpha=i.go,s.beginPath(),s.moveTo(this.mx,this.my),s.lineTo(this.mx+r,this.my+c),s.strokeStyle=i.s.particles.lc,s.lineWidth=i.s.particles.lw,s.stroke(),s.closePath(),s.globalAlpha=1}}if(i.s.particles.l)for(var c=s+1;c<this.n;c++){var l=this.arr[c];i.linkParticles(l)}}this.s.interact.gc&&(this.lastMaxD=Math.min(i.s.interact.gd,this.distArr.sort(SR7.F.cSort)[this.s.interact.gm])),this.drawParticles()},SR7.A.particle.pJS.prototype.checkBounds=function(t){const s=this.vortex?this.maxDim:this.w,i=this.vortex?this.maxDim:this.h;t.x>s+t.r||t.x<-t.r||t.y>i+t.r||t.y<-t.r||!t.spawning?t.spawning||(t.x>s+t.r?(t.x=-t.r,t.y=Math.random()*i):t.x<-t.r&&(t.x=s+t.r,t.y=Math.random()*i),t.y>i+t.r?(t.x=Math.random()*s,t.y=-t.r):t.y<-t.r&&(t.x=Math.random()*s,t.y=i+t.r)):t.spawning=!1},SR7.A.particle.pJS.prototype.destroy=function(){this.tick=cancelAnimationFrame(this.tick),this.arr&&(this.arr.length=0),this.ctx.canvas.remove()},SR7.A.particle.pJS.prototype.drawParticles=function(){for(var t=0;t<this.n;t++){this.arr[t].draw()}},SR7.A.particle.pJS.prototype.updateMouse=function(t){this.mx=t.x,this.my=t.y,this.mouse=t.type,"mousedown"===t.type?this.mousedown=!0:"mouseup"===t.type&&(this.mousedown=!1)},SR7.A.particle.pJS.prototype.getSVGList=function(){this.svgList={edge:"M4 4h16v16H4z",triangle:"M12 6L4 20L20 20z",polygon:"M17 4 L22 12 L17 20 L8 20 L3 12 L8 4 Z",star:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",heart_1:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",star_2:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z",settings:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z",arrow_1:"M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z",bullseye:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z",plus_1:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",triangle_2:"M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z",smilie:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z",star_3:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",heart_2:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",plus_2:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",close:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",arrow_2:"M22 12l-4-4v3H3v2h15v3z",dollar:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z",sun_1:"M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z",sun_2:"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z",snowflake:"M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.24 1.41 1.42L9 13h2v2l-4.66 4.66 1.42 1.41L11 17.83V22h2v-4.17l3.24 3.24 1.42-1.41L13 15v-2h2l4.66 4.66 1.41-1.42L17.83 13H22z",party:"M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z",flower_1:"M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.95 0-2.22-1.21-4.15-3-5.19C10.21 1.85 9 3.78 9 6c0 .32.03.64.08.95-.24-.2-.5-.39-.78-.55-1.92-1.11-4.2-1.03-6 0 0 2.07 1.07 4.08 3 5.19.28.16.57.29.86.4-.29.11-.58.24-.86.4-1.92 1.11-2.99 3.12-3 5.19 1.79 1.03 4.07 1.11 6 0 .28-.16.54-.35.78-.54-.05.32-.08.64-.08.96 0 2.22 1.21 4.15 3 5.19 1.79-1.04 3-2.97 3-5.19 0-.32-.03-.64-.08-.95.24.2.5.38.78.54 1.92 1.11 4.2 1.03 6 0-.01-2.07-1.08-4.08-3-5.19zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z",flower_2:"M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25zM12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9z",fire:"M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z",pizza:"M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}},SR7.A.particle.pJS.prototype.convertSvgs=function(){var t=this.sh=this.s.particles.sh;t.indexOf(":RSV6.3.0+:")>=0?(t=t.split("|__|"))[0]=t[0].replace(":RSV6.3.0+:",""):t=t.split(",");for(var s=t.length,i="",h=0;h<s;h++)h>0&&(i+="|__|"),this.svgList.hasOwnProperty(t[h])?i+=this.svgList[t[h]]:i+=t[h];this.sh=i,this.createSVGTags()},SR7.A.particle.pJS.prototype.createSVGTags=function(){var t,s,i,h=this.sh.split("|__|"),e=h.length,a=this.s.particles.bs;for(let o=0;o<e;o++){let e=h[o];if(e.indexOf("path")>=0){var r=e.split("::"),c=r[1].split(" ");l={width:parseInt(c[0],0),height:parseInt(c[1],0)},e='<svg xmlns="http://www.w3.org/2000/svg" data-custom="true" width="'+c[0]+'" height="'+c[1]+'" viewBox="0 0 '+r[1]+'">'+r[0]+"</svg>"}else{"circle"!==e?(t="<path ",s=' d="'+e+'"></path>',i=-1===e.search("::")?24:e.split("::")[1]):(t='<circle cx="12" cy="12" r="12" ',s=" />",i=24);let h='<svg xmlns="http://www.w3.org/2000/svg" width="'+i+'" height="'+i+'" viewBox="{{viewbox}}">'+t+'fill="#ffffff" stroke="{{stroke-color}}" stroke-width="{{stroke-width}}"'+s+"</svg>";if(a){var l=2*a+parseInt(i,10);e=h.replace("{{stroke-width}}",a).replace("{{viewbox}}",-a+" "+-a+" "+l+" "+l),l={width:l,height:l}}else e=h.replace("{{viewbox}}","0 0 "+i+" "+i).replace("{{stroke-width}}",0),l={width:i,height:i}}h[o]=e}this.sh=h,this.cacheTheSvg()},SR7.A.particle.pJS.prototype.cacheTheSvg=function(){this.cache=[],this.imgs=[];for(var t,s,i=0;i<this.sh.length;i++)for(t=0;t<this.c.length;t++)for(s=0;s<this.bc.length;s++)this.drawSVG(this.sh[i],this.c[t].trim(),this.bc[s])},SR7.A.particle.pJS.prototype.drawSVG=function(t,s,i){let h=t,e=s.trim(),a=this.s.particles.b?i:"",r={width:this.size,height:this.size},c=this.size,l=this.sizeMax;l=c>l?c:l;let o=this.s.particles.oc;var p,n=/#([0-9A-F]{3,6})/gi;if(h.indexOf("data-custom=")>=0&&1==o)if((d=document.createElement("div")).innerHTML=h,(v=d.querySelectorAll("path,circle,rect,polygon,ellipse,tspan,text")).length>=1){if(!o)for(var m=0;m<v.length;m++)v[m].setAttribute("fill",e);p=d.innerHTML,d.remove()}else p=h;else if(-1===h.indexOf("fill")&&-1==h.indexOf("{{stroke-color}}"))o||(p=h.replace('width="','fill="'+e+'" width="'));else if(-1!==h.indexOf(n))p=h.replace(n,e).replace("{{stroke-color}}",a);else{var d;h=h.replace(n,e).replace("{{stroke-color}}",a),(d=document.createElement("div")).innerHTML=h;var v=d.querySelectorAll("path,circle,rect,polygon,ellipse,tspan,text");for(m=0;m<v.length;m++)v[m].setAttribute("fill",e),v[m].setAttribute("stroke",a);p=d.innerHTML}p=p.replace(/<metadata([\s\S]*?)>([\s\S]*?)<\/metadata>/g,"");var g=new Image,y="data:image/svg+xml;base64,"+btoa(p),u=document.createElement("canvas"),x=u.getContext("2d");this.imgs.push(u),g.width=r.width,g.height=r.height,u.width=l/g.height*g.width,u.height=l,u.style.border="solid 1px red",g.addEventListener("load",(function(){x.webkitImageSmoothingEnabled=!1,x.msImageSmoothingEnabled=!1,x.imageSmoothingEnabled=!1,x.drawImage(this,0,0,l/g.height*g.width,l)})),g.addEventListener("error",(function(){})),g.src=y},SR7.A.particle.nParticle.prototype.setUtils=function(){if("bubble"===this.s.interact.c||"bubble"===this.s.interact.h||"bubbles"===this.s.interact.c||"bubbles"===this.s.interact.h)this.s.physics.dc=!1,this.mapScale=_tpt.gsap.utils.mapRange(0,this.s.interact.bd,this.s.interact.bs*Math.PI,this.r),this.mapOpacity=_tpt.gsap.utils.mapRange(0,this.s.interact.bd,this.s.interact.bo,this.o);else if(this.s.physics.dc){let t=this.s.physics.gd,s="bottom"===t?0:"top"===t?this.s.h:"left"===t?this.s.w:0,i="bottom"===t?this.s.h:"top"===t||"left"===t?0:this.s.w;this.dcScale=_tpt.gsap.utils.mapRange(s,i,this.r,0),this.dcOpacity=_tpt.gsap.utils.mapRange(s,i,this.o,0)}this.mapGrabOpacity=_tpt.gsap.utils.mapRange(0,1,this.s.interact.go,0)},SR7.A.particle.nParticle.prototype.linkParticles=function(t,s){var i=this.s.ctx,h=this.x-t.x,e=this.y-t.y;if((s=Math.sqrt(h*h+e*e))<=this.s.particles.ld){let h=_tpt.gsap.utils.mapRange(0,1,this.s.particles.lo,0,s/this.s.particles.ld);h>0&&(i.strokeStyle=this.s.particles.lc,i.lineWidth=this.s.particles.lw,i.globalAlpha=h,i.beginPath(),i.moveTo(this.x,this.y),i.lineTo(t.x,t.y),i.stroke(),i.globalAlpha=1,i.closePath())}},SR7.A.particle.nParticle.prototype.draw=function(){const t=this;if(t.x>this.s.w+t.r||t.x<-t.r||t.y>this.s.h+t.r||t.y<-t.r)return;var s=this.s.ctx;let i=(this.scale??1)*this.r;s.globalAlpha=this.bo??this.o,s.drawImage(this.img,-i/2+this.x,-i/2+this.y,i,i),s.globalAlpha=1},_tpt.pJS=SR7.A.particle.pJS,_tpt.R??={},_tpt.R.pjs=_tpt.extend?_tpt.extend(_tpt.R.pjs,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticlesPJSReady")))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},2===window?._tpt?.R?.thecluster?.status)return;SR7.A.thecluster={...SR7.A.thecluster,init:e=>{void 0===SR7.A.theclustercss&&(_tpt.injectCssJs(SR7.A.thecluster.style,void 0,void 0,"thecluster_global_styles"),SR7.A.theclustercss=!0),SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.thecluster??={},_tpt.scrollObserver.observe(SR7.M[e].c.module),SR7.F.module.listeners.init(e),SR7.A.thecluster.listeners.init(e);const t=["THREE","WEBGL"];return null==SR7.A.thecluster.cluster&&t.push("tc_Cluster"),null==SR7.A.thecluster.shaders&&t.push("tc_Shaders"),null==SR7.A.thecluster.tools&&t.push("tc_Tools"),t},getLayerBasics:(e={},t)=>({speed:e.speed??25,limitMovement:e.limitMovement??!1,limitMovementValue:e.limitMovementValue??15,noiseOn:e.noiseOn??!1,noiseAmount:e.noiseAmount??50,angle:e.angle??0,tilt:e.tile??0,showHelper:e.showHelper??!1,keepCentered:e.keepCentered??!0,offsetX:e.offsetX??0,offsetY:e.offsetY??0,offsetZ:e.offsetZ??0,dpr:e.dpr??1,gravPointsVisible:e.gravPointsVisible??!1,g1X:e.g1X??-5,g1Y:e.g1Y??0,g1Z:e.g1Z??0,g2X:e.g2X??0,g2Y:e.g2Y??0,g2Z:e.g2Z??0,g3X:e.g3X??5,g3Y:e.g3Y??0,g3Z:e.g3Z??0,mass:e.mass??30,mass2:e.mass2??30,mass3:e.mass3??30,gravPoint1Toggle:e.gravPoint1Toggle??!1,gravPoint2Toggle:e.gravPoint2Toggle??!0,gravPoint3Toggle:e.gravPoint3Toggle??!1,spawnDiameter:e.spawnDiameter??50,amount:e.amount??900,spawnForm:e.spawnForm??"random",spawnAccVec:e.spawnAccVec??"normalCW",sIX:e.sIX??10,sIY:e.sIY??7,sIZ:e.sIZ??0,sVX:e.sVX??1,sVY:e.sVY??0,sVZ:e.sVZ??0,mirroredOn:e.mirroredOn??0,size:e.size??22,randomizeSize:e.randomizeSize??!0,tc_mainColor:_tpt.gradient.convert(e.tc_mainColor??"radial-gradient(circle,rgba(255,248,0,1) 0%,rgba(255,19,97,1) 33%,rgba(68,16,122,1) 71%,rgba(35,21,87,1) 100%)"),particle:e.particle??"default",randomizeOpacity:e.randomizeOpacity??!0,randSizeMin:e.randSizeMin??50,randSizeMax:e.randSizeMax??150,colorImageMixValue:e.colorImageMixValue??0,animationSel:e.animationSel??"off",aniX:e.aniX??0,aniY:e.aniY??0,aniZ:e.aniZ??0,patternSel:e.patternSel??"continuous",lifeTimeDelay:e.lifeTimeDelay??5,lifetimeAlphaChange:e.lifetimeAlphaChange??"fadeInOut",lifeTimeGradient:e.lifeTimeGradient??!1,gravP1MoveSel:e.gravP1MoveSel??"off",gravP2MoveSel:e.gravP2MoveSel??"off",gravP3MoveSel:e.gravP3MoveSel??"off",periodicSpawn:e.periodicSpawn??!0,periodicSpawnValue:e.periodicSpawnValue??1,gravModuleBased:e.gravModuleBased??!0,gravFollowMouse:e.gravFollowMouse??"off",gravFollowMouseValue:e.gravFollowMouseValue??50,gravRotateMouseValue:e.gravRotateMouseValue??30,gravRotateReturnValue:e.gravRotateReturnValue??30,vfxSelector:e.vfxSelector??"off",focus:e.focus??50,maxBlur:e.maxBlur??10,minBlur:e.minBlur??0,aperture:e.aperture??5,sfxBreathing:e.sfxBreathing??!0}),getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),prepareLayer:async(e,t,a)=>{if("thecluster"===t.subtype){var{c:o}=SR7.F.getLayer(a);return new Promise((e=>{o.addOns??={},o.addOns.thecluster??={},o.addOns.thecluster.canvas=SR7.WEBGL.getCanvas(),t.addOns.thecluster=SR7.A.thecluster.getLayerBasics(t.addOns.thecluster),s(t.addOns.thecluster).then((t=>{o.addOns.thecluster.settings=t,o.addOns.thecluster.prepared=!0,o.el.appendChild(o.addOns.thecluster.canvas.canvas),SR7.A.thecluster.build(o),e()})).catch((t=>{console.log(t),e()}))}))}},toggle:(e,t)=>{let s=SR7.A.thecluster;const a=SR7.M[e];if(s.onFire)for(let t in s.onFire[e])_tpt.hop(s.onFire[e],t)&&(a.states.inViewPort?s.play(e,a.c.layers[t]):s.pause(e,a.c.layers[t],!1))},play:(e,t)=>{let s=SR7.A.thecluster;t.addOns?.thecluster&&(t.addOns.thecluster.paused=!1,s.onFire??={},s.onFire[e]??={},s.onFire[e][t.el.id]=!0,s.render(t),t.addOns.thecluster.everPlayed||requestAnimationFrame((()=>{requestAnimationFrame((()=>{SR7.A.thecluster.refreshScene(t)})),t.addOns.thecluster.everPlayed=!0})))},pause:(e,t,s)=>{let a=SR7.A.thecluster;t.addOns.thecluster.paused=!0,t.addOns.thecluster.frame=cancelAnimationFrame(t.addOns.thecluster.frame),s&&a?.onFire?.[e]?.[t.el.id]&&delete a.onFire[e][t.el.id]},listeners:{init:e=>{const t=SR7.M[e];if(SR7.A.thecluster.listenersAdded?.[e])return;let s=SR7.A.thecluster;s.onFire??={},s.onFire[e]??={},t.c.addOns??={};const a=t.c.addOns.thecluster??{};document.addEventListener("sr.layer.action",(function(e){""+(e.layersettings?.addOns?.thecluster??!1)!="false"&&("enterstage"==e.eventtype?s.play(e.id,e.c):"leavestage"==e.eventtype&&s.pause(e.id,e.c,!0))})),a.mouseEnter=a.mouseEnter??SR7.F.module.listeners.reg(e,"mouseenter",((e,t)=>s.listeners.mouse.module.enter(e,t))),a.mouseMove=a.mouseMove??SR7.F.module.listeners.reg(e,"mousemove",((e,t)=>s.listeners.mouse.module.move(e,t))),a.mouseLeave=a.mouseLeave??SR7.F.module.listeners.reg(e,"mouseleave",((e,t)=>s.listeners.mouse.module.leave(e,t))),s.listenersAdded??={},s.listenersAdded[e]=!0},mouse:{module:{enter:(e,t)=>{SR7.A.thecluster.listeners.mouse.module.default(e,t,"enter")},move:(e,t)=>{SR7.A.thecluster.listeners.mouse.module.default(e,t,"move")},leave:(e,t)=>{SR7.A.thecluster.listeners.mouse.module.default(e,t,"leave")},default:(e,t,s)=>{const a=SR7.M[e];a.c.addOns??={},a.c.addOns.thecluster??={},a.c.addOns.thecluster.mouse??={};const o=a.c.addOns.thecluster;for(var e in o.mouse.type=s,SR7.M){const a=SR7.M[e];if(a.states.inViewPort)for(var n in a.c.layers){if(!a.c.layers[n].addOns?.thecluster)continue;const e=a.c.layers[n].addOns.thecluster;if(!e?.settings?.gravModuleBased)continue;let o=t.clientX/a.dims.module.w*a.c.layers[n].cw,r=t.clientY/a.dims.module.h*a.c.layers[n].ch;if("indivGrav"===e.settings.gravFollowMouse)SR7.A.thecluster.listeners.mouse[s]({layerX:o,layerY:r,clientX:o,clientY:r},a.c.layers[n]);else if("indivRotaWithReturn"===e.settings.gravFollowMouse||"indivRota"===e.settings.gravFollowMouse){if(0==o&&0==r)continue;SR7.A.thecluster.listeners.mouse.move2({layerX:o,layerY:r,clientX:o,clientY:r},a.c.layers[n])}}}}},enter:(e,t)=>{let s=t.addOns.thecluster;s.settings.mouseOnLayer=!0,s.vccToUniform.u_mouseOnLayer.value=s.settings.mouseOnLayer,s.particleMaterial.uniforms.u_mouseOnLayer.value=s.settings.mouseOnLayer},leave:(e,t)=>{let s=t.addOns.thecluster;s.settings.mouseOnLayer=!1,s.vccToUniform.u_mouseOnLayer.value=s.settings.mouseOnLayer,s.particleMaterial.uniforms.u_mouseOnLayer.value=s.settings.mouseOnLayer},move:(e,t)=>{let s=t.addOns.thecluster,a=s.settings;var o=s.canvas.canvas.getBoundingClientRect();a.mouseOnLayer=!0,a.mouseVec.x=e.layerX/o.width*2-1,a.mouseVec.y=-e.layerY/o.height*2+1;var n=new THREE.Vector3(a.mouseVec.x,a.mouseVec.y,0);n.unproject(s.camera);var r=n.sub(s.camera.position).normalize(),i=-s.camera.position.z/r.z;a.convertedPos=s.camera.position.clone().add(r.multiplyScalar(i)),a.convertedPos.z=0,a.mouseMoveVec.set(s.settings.convertedPos.x,s.settings.convertedPos.y,0),s.vccToUniform.u_mouseVector.value=[a.mouseMoveVec.x,a.mouseMoveVec.y],s.particleMaterial.uniforms.u_mouseVector.value=[a.mouseMoveVec.x,a.mouseMoveVec.y]},move2:(e,t)=>{let s=t.addOns.thecluster;if(s.lastMousePos??=[0,0],s.counter??=0,s.counter>0){var a=e.clientX,o=e.clientY,n=[s.lastMousePos[0]-a,s.lastMousePos[1]-o],r=n[0]/t.cw*s.settings.gravRotateMouseValue,i=-n[1]/t.ch*s.settings.gravRotateMouseValue;s.scene.rotation.y+=-r*Math.PI/180,s.scene.rotation.x+=i*Math.PI/180,s.lastMousePos[0]=a,s.lastMousePos[1]=o}else s.lastMousePos[0]=e.clientX,s.lastMousePos[1]=e.clientY,s.counter++}}},fitCameraToObject:e=>{let t=e.addOns?.thecluster??!1;if(t){let s=Math.round(e.cw??0),a=Math.round(e.ch??0);t.lastDim={width:s,height:a},SR7.A.thecluster.resize(e,s,a),t.paused=!1,cancelAnimationFrame(t.frame),t.frame=requestAnimationFrame(t.bindedRender)}},adjustScene:e=>{let t=e.settings;e.scene.rotation.z=t.angle*Math.PI/180,e.scene.rotation.x=t.tilt*Math.PI/180,e.camera.position.x=t.horizontal,e.camera.position.y=t.vertical,e.camera.position.z=t.zoom+22,t.keepCentered&&e.camera.lookAt(0,0,0)}};let e=e=>parseFloat(e),t=e=>1===e||0!==e&&e,s=async s=>(void 0===s.clock&&(s.clock=new THREE.Clock),s.clockCounter=0,s.size=e(s.size)/5,s.amount=Math.floor(Math.sqrt(e(s.amount))),s.icon="default"==s.particle?SR7.E.resources.tcURL+"public/lib/par1.png":s.particle,s.mass=e(s.mass),s.mass2=e(s.mass2),s.mass3=e(s.mass3),s.spawnDiameter=e(s.spawnDiameter)/10,s.vccVector=[0,0,0,0,0,0,0,0],s.dpr=e(s.dpr),s.gravPointCounter=0,s.gravPointArray=[new THREE.Vector3],s.gravPositions=[0,0,0,0,0,0,0,0,0],s.g1X=e(s.g1X),s.g1Y=e(s.g1Y),s.g1Z=e(s.g1Z),s.g2X=e(s.g2X),s.g2Y=e(s.g2Y),s.g2Z=e(s.g2Z),s.g3X=e(s.g3X),s.g3Y=e(s.g3Y),s.g3Z=e(s.g3Z),s.limitMovement=t(s.limitMovement),s.limitMovementValue=e(s.limitMovementValue),s.limitCentrePosition=new THREE.Vector3(0,0,0),s.sIX=e(s.sIX),s.sIY=e(s.sIY),s.sIZ=e(s.sIZ),s.sVX=e(s.sVX),s.sVY=e(s.sVY),s.sVZ=e(s.sVZ),s.isGradient="solid"!==s.tc_mainColor.type,s.isRadGradient="radial"==s.tc_mainColor.type,s.RGBAColor=_tpt.parseColor(s.tc_mainColor.string,!0),s.draggable=null,s.convertedPos=new THREE.Vector3,s.aniX=e(s.aniX),s.aniY=e(s.aniY),s.aniZ=e(s.aniZ),s.lifeTimeDelay=Math.abs(e(s.lifeTimeDelay)/10-2.1),s.noiseOn=t(s.noiseOn),s.noiseAmount=e(s.noiseAmount)/100,s.lifeTimeGradient=t(s.lifeTimeGradient),s.randomizeOpacity=t(s.randomizeOpacity),s.periodicSpawn=t(s.periodicSpawn),s.periodicSpawnValue=e(s.periodicSpawnValue),s.gravPoint1Toggle=t(s.gravPoint1Toggle),s.gravPoint2Toggle=t(s.gravPoint2Toggle),s.gravPoint3Toggle=t(s.gravPoint3Toggle),s.randSizeMin=e(s.randSizeMin),s.randSizeMax=e(s.randSizeMax),s.colorImageMixValue=e(s.colorImageMixValue),s.mouseVec=new THREE.Vector2,s.mouseMoveVec=new THREE.Vector2,s.mouseOnLayer=!1,s.gravFollowMouseValue=e(s.gravFollowMouseValue),s.gravRotateMouseValue=e(s.gravRotateMouseValue),s.gravRotateReturnValue=e(s.gravRotateReturnValue)/1e4,s.focus=e(s.focus),s.maxBlur=.001*e(s.maxBlur),s.minBlur=.001*e(s.minBlur),s.aperture=1e-5*e(s.aperture),s.speed=e(s.speed)/100,s.angle=e(s.angle),s.tilt=e(s.tilt),s.horizontal=e(s.offsetX),s.vertical=e(s.offsetY),s.zoom=e(s.offsetZ),s.isSVG=-1!==s.particle.indexOf(".svg"),s.canvastemp=document.createElement("canvas"),s.ctxtemp=s.canvastemp.getContext("2d"),-1!==s.icon.indexOf(".svg")?(s.isSVG=!0,await _tpt.loadSVG(s.icon).then((e=>{if(null!==e){const t=s.size*window.devicePixelRatio*2;let a=e.getElementsByTagName("svg")[0];for(null!=a&&null!=a||(a=e);a.getElementsByTagName("svg").length>0;)a=a.getElementsByTagName("svg")[0];let o=parseFloat(a.getAttribute("width"))||t,n=parseFloat(a.getAttribute("height"))||t;a.setAttribute("width",o),a.setAttribute("height",n);const r=isFinite(o/n)&&o/n||1;o=r>=1?t:t*r,n=r>=1?t/r:t;let i=new Image;i.crossOrigin="Anonymous",i.src="data:image/svg+xml;base64,"+btoa((new XMLSerializer).serializeToString(a)),i.onload=function(){SR7.A.particlewave.tools.particleOnCanvas(o,n,i,s.ctxtemp)}}})).catch((e=>{throw e}))):_tpt.isImageURL(s.icon)&&await _tpt.loadSingleImage(s.icon).then((e=>{let t=5*s.size*window.devicePixelRatio*2,a=e.image,{naturalHeight:o,naturalWidth:n}=a;const r=a.naturalWidth/a.naturalHeight;isNaN(r)||0===r||!isFinite(r)?n=o=t:(n=r>=1?t:t*r,o=r>=1?t/r:t),SR7.A.thecluster.tools.particleOnCanvas(n,o,a,s.ctxtemp)})).catch((e=>{throw e})),s);_tpt.R??={},_tpt.R.thecluster=_tpt.extend?_tpt.extend(_tpt.R.thecluster,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TheClusterReady"))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==(SR7.A.thecluster?.cluster??void 0))return;SR7.A.thecluster={...SR7.A.thecluster,cluster:!0,build:e=>{T();let t=e.addOns.thecluster,r=t.settings;t.count=r.amount*r.amount,t.camera=new THREE.PerspectiveCamera(70,e.cw/e.ch,1,1e3),t.camera.aspect=1,t.scene=new THREE.Scene,t.group=new THREE.Group,t.camera.position.z=20,(r.showHelper||r.gravPointsVisible)&&(t.axesHelper=new THREE.AxesHelper(5),t.scene.add(t.axesHelper)),t.textureCanvas=new THREE.CanvasTexture(r.canvastemp),t.textureCanvas.needsUpdate=!0,SR7.A.thecluster.refreshScene(e,!0),f(e),t.bindedRender=t=>{SR7.A.thecluster.render(e,t)},t.built=!0,t.paused=!0,t.computeRenderer.compute()},refreshScene:(e,t)=>{let r=e.addOns.thecluster,a=r.settings;t&&(r.renderer=new THREE.WebGLRenderer({antialias:!0,canvas:r.canvas.canvas,alpha:!0})),r.renderer.setPixelRatio(Math.min(a.dpr,window.devicePixelRatio)),r.renderer.setSize(e.cw,e.ch),r.gravColor1=16721765,r.gravColor2=890098,r.gravColor3=3274158,(null==r.particleFragShader||t)&&SR7.A.thecluster.createShaders(r),(null==r.clusterParticles||t)&&(r.clusterParticles=h(e)),r.scene.add(r.clusterParticles),SR7.A.thecluster.gravPoints.set(r),SR7.A.thecluster.initPP(e),SR7.A.thecluster.adjustScene(r),SR7.A.thecluster.startComputeRenderer(e,t)},render:(t,r)=>{let n=t.addOns.thecluster,o=n.settings;n.destroyed||n.paused||(n.frame=cancelAnimationFrame(n.frame),n.frame=requestAnimationFrame(n.bindedRender)),void 0!==r&&void 0!==n.time?(n.tDiff=(r-n.time)/1600,n.time=r,void 0!==n.lastDim&&n.lastDim.width===t.cw&&n.lastDim.height===t.ch||SR7.A.thecluster.fitCameraToObject(t),n.computeRenderer.compute(),n.particleUniforms.texturePosition.value=n.computeRenderer.getCurrentRenderTarget(o.computePos).texture,n.particleUniforms.textureVelocity.value=n.computeRenderer.getCurrentRenderTarget(o.computeVcc).texture,n.particleUniforms.textureCustomValues.value=n.computeRenderer.getCurrentRenderTarget(o.computeCustomValues).texture,n.particleUniforms.textureInitPos.value=n.computeRenderer.getCurrentRenderTarget(o.computeInitPos).texture,n.particleUniforms.textureInitVCC.value=n.computeRenderer.getCurrentRenderTarget(o.computeInitVCC).texture,0!=o.gravPointsVisible||"off"==o.gravP1MoveSel&&"off"==o.gravP2MoveSel&&"off"==o.gravP3MoveSel||e(n,r),o.clock.getElapsedTime()>.016666666666666666*o.clockCounter&&(n.particleMaterial.uniforms.u_time.value+=n.tDiff,n.posToUniform.u_time.value??=0,n.posToUniform.u_time.value+=n.tDiff,n.vccToUniform.u_time.value+=n.tDiff,n.pp&&n.pp.composer?("off"!=o.vfxSelector&&o.sfxBreathing&&(n.pp.effectPass.uniforms.maxblur.value=_tpt.gsap.utils.mapRange(0,1,o.minBlur,o.maxBlur,Math.abs(Math.sin(Math.PI*(n.particleMaterial.uniforms.u_time.value+.5)*.3)))),n.pp.composer.render()):n.renderer.render(n.scene,n.camera),"off"!=o.animationSel&&a(n),"indivRotaWithReturn"===o.gravFollowMouse&&"off"===o.animationSel&&(n.scene.rotation.y>0&&(n.scene.rotation.y-=o.gravRotateReturnValue),n.scene.rotation.y<0&&(n.scene.rotation.y+=o.gravRotateReturnValue),n.scene.rotation.x>0&&(n.scene.rotation.x-=o.gravRotateReturnValue),n.scene.rotation.x<0&&(n.scene.rotation.x+=o.gravRotateReturnValue)))):n.time=r},initPP:e=>{let t=e.addOns.thecluster,r=t.settings;"off"===r.vfxSelector||t.ppEnabled||void 0===e.cw||void 0===e.ch||0===e.cw||0===e.ch||(t.ppEnabled=!0,t.pp=SR7.WEBGL.postProcessing("BokehPass",t.renderer,t.scene,t.camera,{focus:r.focus,aperture:r.aperture,maxblur:r.maxBlur,transparent:!0,width:e.cw,height:e.ch}))},update:e=>{let t=e.addOns.thecluster,r=t.settings;t.particleMaterial.uniforms.u_pointSize.value=r.size,t.particleMaterial.uniforms.u_limitMovementValue.value=r.limitMovementValue,t.particleMaterial.uniforms.u_limitCentrePosition.value=r.limitCentrePosition,t.posToUniform.u_speed.value=r.speed,t.posToUniform.u_lifeTimeDelay.value=r.lifeTimeDelay,t.vccToUniform.u_speed.value=r.speed,t.vccToUniform.u_mass.value=r.mass,t.vccToUniform.u_mass2.value=r.mass2,t.vccToUniform.u_mass3.value=r.mass3,t.vccToUniform.u_gravPositions.value=r.gravPositions,t.vccToUniform.u_lifeTimeDelay.value=r.lifeTimeDelay,t.vccToUniform.u_noiseAmount.value=(r.noiseAmount/100).toFixed(2),t.particleMaterial.uniforms.u_colorImageMixValue.value=r.colorImageMixValue,SR7.A.thecluster.adjustScene(t)},resize:(e,t,r)=>{let a=e.addOns.thecluster;a.w=t,a.h=r,a.camera&&(a.camera.aspect=a.w/a.h,a.camera.updateProjectionMatrix(),a.renderer.setSize(a.w,a.h))},destroy:e=>{let t=e.addOns.thecluster;t.destroyed=!0,t.renderer&&(t.renderer.dispose(),t.renderer.domElement.remove(),t.renderer.domElement=null),t.renderer=null,t.frame=cancelAnimationFrame(t.frame)},calcSizeAt0Plane:e=>{var t=Math.tan(e.camera.fov/2)*(e.camera.position.z+12)*2;return{x:e.camera.aspect*t,y:t}}};let e=(e,a)=>{let n=r(a),o=e.settings;o.gravPoint1Toggle&&(o["g1"+o.gravP1MoveSel[0].toUpperCase()]=n.x,o["g1"+o.gravP1MoveSel[1].toUpperCase()]=n.y,o.gravPointArray[0].position[o.gravP1MoveSel[0]]=o["g1"+o.gravP1MoveSel[0].toUpperCase()],o.gravPointArray[0].position[o.gravP1MoveSel[1]]=o["g1"+o.gravP1MoveSel[1].toUpperCase()]),o.gravPoint2Toggle&&(o["g2"+o.gravP2MoveSel[0].toUpperCase()]=n.x,o["g2"+o.gravP2MoveSel[1].toUpperCase()]=n.y,o.gravPointArray[1].position[o.gravP2MoveSel[0]]=o["g2"+o.gravP2MoveSel[0].toUpperCase()],o.gravPointArray[1].position[o.gravP2MoveSel[1]]=o["g2"+o.gravP2MoveSel[1].toUpperCase()]),o.gravPoint3Toggle&&(o["g3"+o.gravP3MoveSel[0].toUpperCase()]=n.x,o["g3"+o.gravP3MoveSel[1].toUpperCase()]=n.y,o.gravPointArray[2].position[o.gravP3MoveSel[0]]=o["g1"+o.gravP3MoveSel[0].toUpperCase()],o.gravPointArray[2].position[o.gravP3MoveSel[1]]=o["g1"+o.gravP3MoveSel[1].toUpperCase()]),t(o),e.vccToUniform.u_gravPositions.value=o.gravPositions},t=e=>{e.gravPositions[0]=e.g1X,e.gravPositions[1]=e.g1Y,e.gravPositions[2]=e.g1Z,e.gravPositions[3]=e.g2X,e.gravPositions[4]=e.g2Y,e.gravPositions[5]=e.g2Z,e.gravPositions[6]=e.g3X,e.gravPositions[7]=e.g3Y,e.gravPositions[8]=e.g3Z},r=e=>({x:10*Math.sin(e/5e3),y:10*Math.cos(e/5e3)}),a=e=>{e.scene.rotation.x+=e.settings.aniX/1e3*e.settings.speed*1.5,e.scene.rotation.y+=e.settings.aniY/1e3*e.settings.speed*1.5,e.scene.rotation.z+=e.settings.aniZ/1e3*e.settings.speed*1.5},n=e=>{for(var t=e.image.data,r=0,a=t.length;r<a;r+=4)t[r+0]=20*Math.random()-10,t[r+1]=20*Math.random()-10,t[r+2]=20*Math.random()-10,t[r+3]=0},o=(e,t)=>{for(var r=t.image.data,a=e.image.data,n=0,o=a.length;n<o;n+=4)a[n+0]=-r[n+0],a[n+1]=-r[n+1],a[n+2]=-r[n+2],a[n+3]=0},s=(e,t)=>{const r=t.image.data,a=e.image.data,n=Math.PI/2,o=Math.cos(n),s=Math.sin(n),i=new Float32Array(4);for(let e=0,t=a.length;e<t;e+=4){const t=r[e+0],n=r[e+1],u=r[e+2],l=Math.sqrt(t*t+n*n+u*u);0!==l&&(i[0]=(t*o+n*s)/l,i[1]=(-t*s+n*o)/l,i[2]=u/l,i[3]=0,a.set(i,e))}},i=(e,t)=>{const r=t.image.data,a=e.image.data,n=Math.PI/2,o=Math.cos(n),s=Math.sin(n),i=new Float32Array(4);for(let e=0,t=a.length;e<t;e+=4){const t=r[e+0],n=r[e+1],u=r[e+2],l=Math.sqrt(t*t+n*n+u*u);0!==l&&(i[0]=(t*o-n*s)/l,i[1]=(t*s+n*o)/l,i[2]=u/l,i[3]=0,a.set(i,e))}},u=(e,t)=>{const r=e.image.data,a=Math.sqrt(t.x*t.x+t.y*t.y+t.z*t.z);if(0===a)return;const n=new Float32Array([t.x/a,t.y/a,t.z/a,0]);for(let e=0,t=r.length;e<t;e+=4)r.set(n,e)},l=(e,t)=>{const r=e.image.data,a=r.length/4,n=t.mirroredOn,o=new Float32Array(4);for(let e=0,s=r.length;e<s;e+=4){const s=Math.random()-.5,i=Math.random()-.5,u=Math.random()-.5,l=Math.random()*t.spawnDiameter/Math.sqrt(s*s+i*i+u*u);o[0]=s*l,o[1]=i*l,o[2]=u*l;const c=e/4;n>=2?c<1/n*a?(o[0]+=t.sIX,o[1]+=t.sIY,o[2]+=t.sIZ):c<2/n*a?(o[0]-=t.sIX,o[1]-=t.sIY,o[2]+=t.sIZ):n>=4&&(c<3/n*a?(o[0]-=t.sIX,o[1]+=t.sIY,o[2]+=t.sIZ):c<4/n*a?(o[0]+=t.sIX,o[1]-=t.sIY,o[2]+=t.sIZ):n>=6&&(c<5/n*a?o[2]+=.5*t.sIZ:c<6/n*a&&(o[2]+=1.5*t.sIZ))):(o[0]+=t.sIX,o[1]+=t.sIY,o[2]+=t.sIZ),o[3]=Math.random(),r.set(o,e)}},c=(e,t)=>{const r=e.image.data,a=r.length/4,n=t.mirroredOn,o=new Float32Array(4);for(let e=0,s=r.length;e<s;e+=4){const s=Math.random()-.5,i=Math.random()-.5,u=Math.random()-.5,l=t.spawnDiameter/Math.sqrt(s*s+i*i+u*u);o[0]=s*l,o[1]=i*l,o[2]=u*l;const c=e/4;n>=2?c<1/n*a?(o[0]+=t.sIX,o[1]+=t.sIY,o[2]+=t.sIZ):c<2/n*a?(o[0]-=t.sIX,o[1]-=t.sIY,o[2]+=t.sIZ):n>=4&&(c<3/n*a?(o[0]-=t.sIX,o[1]+=t.sIY,o[2]+=t.sIZ):c<4/n*a?(o[0]+=t.sIX,o[1]-=t.sIY,o[2]+=t.sIZ):n>=6&&(c<5/n*a?o[2]+=.5*t.sIZ:c<6/n*a&&(o[2]+=1.5*t.sIZ))):(o[0]+=t.sIX,o[1]+=t.sIY,o[2]+=t.sIZ),o[3]=Math.random(),r.set(o,e)}},m=(e,t)=>{const r=e.image.data,a=t.x/2,n=t.y/2,o=new Float32Array(4);for(let e=0,s=r.length;e<s;e+=4){let s,i,u=10*Math.random()-5;Math.random()>=.5?(s=Math.random()*t.x-a,i=0===Math.round(Math.random())?-n:n):(s=0===Math.round(Math.random())?-a:a,i=Math.random()*t.y-n),o[0]=s,o[1]=i,o[2]=u,o[3]=Math.random(),r.set(o,e)}},d=(e,t,r)=>{const a=e.image.data,n=a.length/4,o=new Float32Array(4),s=n/4,i=n/2,u=3*s;for(let e=0,n=a.length;e<n;e+=4){const n=e/4;let l=Math.random()*r.x-r.x/2+t.sIX,c=t.sIY,m=t.sIZ;t.mirroredOn>=2&&(n<s?c=-t.sIY:t.mirroredOn>=4&&(n<i?(c=-t.sIY,m=-t.sIZ):n<u&&(m=-t.sIZ))),o[0]=l,o[1]=c,o[2]=m,o[3]=Math.random(),a.set(o,e)}},p=(e,t)=>{const r=e.image.data,a=r.length/4,n=new Float32Array(4),o=t.mirroredOn;for(let e=0,s=r.length;e<s;e+=4){const s=e/4,i=Math.random()-.5,u=Math.random()-.5;let l=i*t.spawnDiameter,c=u*t.spawnDiameter,m=0;o>=2?s<1/o*a?(l+=t.sIX,c+=t.sIY,m+=t.sIZ):s<2/o*a?(l-=t.sIX,c-=t.sIY,m+=t.sIZ):o>=4&&(s<3/o*a?(l-=t.sIX,c+=t.sIY,m+=t.sIZ):s<4/o*a?(l+=t.sIX,c-=t.sIY,m+=t.sIZ):o>=6&&(s<5/o*a?m+=.5*t.sIZ:s<6/o*a&&(m+=1.5*t.sIZ))):l+=t.sIX,c+=t.sIY,m+=t.sIZ,n[0]=l,n[1]=c,n[2]=m,n[3]=Math.random(),r.set(n,e)}},v=(e,t)=>{const r=t.x/2,a=t.y/2,n=new Float32Array(4),o=e.image.data;for(let e=0,s=o.length;e<s;e+=4)n[0]=Math.random()*t.x-r,n[1]=Math.random()*t.y-a,n[2]=10*Math.random()-5,n[3]=Math.random(),o.set(n,e)},g=(e,t)=>{const r=t.x/2,a=t.y/2,n=new Float32Array(4),o=e.image.data;for(let e=0,s=o.length;e<s;e+=4)n[0]=Math.random()*t.x-r,n[1]=Math.random()*t.y-a,n[2]=Math.random()*t.y-a,n[3]=Math.random(),o.set(n,e)},h=e=>{let t=e.addOns.thecluster,r=t.settings;for(var a=new THREE.BufferGeometry,n=new Float32Array(3*t.count),o=new Float32Array(2*t.count),s=0,i=0;i<t.count;i++)o[(s=2*i)+0]=i%r.amount/r.amount,o[s+1]=Math.floor(i/r.amount)/r.amount;return a.setAttribute("position",new THREE.BufferAttribute(n,3)),a.setAttribute("uv",new THREE.BufferAttribute(o,2)),t.particleUniforms={texturePosition:{value:null},textureVelocity:{value:null},textureCustomValues:{value:null},textureInitPos:{value:null},textureInitVCC:{value:null},u_pointSize:{value:r.size},u_particleTexture:{value:t.textureCanvas},u_limitCentrePosition:{value:r.limitCentrePosition},u_limitMovementValue:{value:r.limitMovementValue},u_limitMovement:{value:r.limitMovement},u_colorArray:{value:r.RGBAColor},u_time:{value:0},u_colorImageMixValue:{value:r.colorImageMixValue},u_lifeTimeDelay:{value:r.lifeTimeDelay},u_mouseOnLayer:{value:r.mouseOnLayer},u_mouseVector:{value:[0,0]}},t.particleMaterial=new THREE.ShaderMaterial({uniforms:t.particleUniforms,vertexShader:t.particleVertShader,fragmentShader:t.particleFragShader,blending:THREE.AdditiveBlending,depthTest:!1,transparent:!0,vertexColors:!0}),new THREE.Points(a,t.particleMaterial)};SR7.A.thecluster.startComputeRenderer=e=>{let t=e.addOns.thecluster,r=t.settings;switch(t.computeRenderer=new THREE.GPUComputationRenderer(r.amount,r.amount,t.renderer),r.renderTexturePos=t.computeRenderer.createTexture(),r.renderTextureVcc=t.computeRenderer.createTexture(),r.renderTextureCustomValues=t.computeRenderer.createTexture(),r.renderTextureInitPos=t.computeRenderer.createTexture(),r.renderTextureInitVCC=t.computeRenderer.createTexture(),r.spawnForm){case"onGlobe":c(r.renderTexturePos,r);break;case"inGlobe":l(r.renderTexturePos,r);break;case"onBorder":m(r.renderTexturePos,SR7.A.thecluster.calcSizeAt0Plane(t));break;case"random":v(r.renderTexturePos,SR7.A.thecluster.calcSizeAt0Plane(t));break;case"random3D":g(r.renderTexturePos,SR7.A.thecluster.calcSizeAt0Plane(t));break;case"inLine":d(r.renderTexturePos,r,SR7.A.thecluster.calcSizeAt0Plane(t));break;case"inCircle":p(r.renderTexturePos,r)}switch(r.spawnAccVec){case"random":n(r.renderTextureVcc);break;case"toCentre":o(r.renderTextureVcc,r.renderTexturePos);break;case"normalCW":s(r.renderTextureVcc,r.renderTexturePos);break;case"normalCCW":i(r.renderTextureVcc,r.renderTexturePos);break;case"direction":u(r.renderTextureVcc,new THREE.Vector3(r.sVX,r.sVY,r.sVZ))}r.renderTextureInitPos=r.renderTexturePos,r.renderTextureInitVCC=r.renderTextureVcc,(e=>{const t=e.renderTextureVcc.image.data,r=1/(e.periodicSpawnValue-1);let a=0,n=0;if("lifetime"===e.patternSel)if(e.periodicSpawn)for(n=0;n<t.length;n+=4)1===e.periodicSpawnValue?t[n+3]=0:a<e.periodicSpawnValue?(t[n+3]=r*a,a++):(a=1,t[n+3]=0);else for(n=0;n<t.length;n+=4)t[n+3]=Math.max(Math.min(Math.random(),1),.05);else for(n=0;n<t.length;n+=4)t[n+3]=e.randomizeOpacity?Math.random()+.05:1})(r),((e,t)=>{for(var r=e.image.data,a=0,n=r.length;a<n;a+=4)r[a+0]=0,r[a+1]=0,r[a+2]=0,r[a+3]=t.randomizeSize?(Math.random()*(t.randSizeMax-t.randSizeMin)+t.randSizeMin)/100:1})(r.renderTextureCustomValues,r),r.computePos=t.computeRenderer.addVariable("texturePosition",t.computePosShader,r.renderTexturePos),r.computeVcc=t.computeRenderer.addVariable("textureVelocity",t.computeVelShader,r.renderTextureVcc),r.computeCustomValues=t.computeRenderer.addVariable("textureCustomValues",t.computeValueShader,r.renderTextureCustomValues),r.computeInitPos=t.computeRenderer.addVariable("textureInitPos",t.computeInitPosShader,r.renderTextureInitPos),r.computeInitVCC=t.computeRenderer.addVariable("textureInitVCC",t.computeInitVCCShader,r.renderTextureInitVCC),t.computeRenderer.setVariableDependencies(r.computePos,[r.computePos,r.computeVcc,r.computeCustomValues,r.computeInitPos,r.computeInitVCC]),t.posToUniform=r.computePos.material.uniforms,t.posToUniform.u_speed={value:r.speed},t.posToUniform.u_time={value:0},t.posToUniform.u_lifeTimeDelay={value:r.lifeTimeDelay},t.computeRenderer.setVariableDependencies(r.computeVcc,[r.computeVcc,r.computePos,r.computeCustomValues,r.computeInitPos,r.computeInitVCC]),t.vccToUniform=r.computeVcc.material.uniforms,t.vccToUniform.u_speed={value:r.speed},t.vccToUniform.u_mass={value:r.mass},t.vccToUniform.u_mass2={value:r.mass2},t.vccToUniform.u_mass3={value:r.mass3},t.vccToUniform.u_gravPositions={value:r.gravPositions},t.vccToUniform.u_mouseVector={value:r.mouseVec},t.vccToUniform.u_mouseOnLayer={value:r.mouseOnLayer},t.vccToUniform.u_time={value:0},t.vccToUniform.u_lifeTimeDelay={value:r.lifeTimeDelay},t.vccToUniform.u_noiseAmount={value:r.noiseAmount},t.computeRenderer.setVariableDependencies(r.computeCustomValues,[r.computeCustomValues]),t.computeRenderer.setVariableDependencies(r.computeInitPos,[r.computeInitPos]),t.computeRenderer.setVariableDependencies(r.computeInitVCC,[r.computeInitVCC]),t.computeRenderer.init()};let f=e=>{let t=e.addOns.thecluster;t.settings.gravModuleBased||("indivGrav"===t.settings.gravFollowMouse&&(t.canvas.canvas.addEventListener("mouseenter",(function(t){SR7.A.thecluster.listeners.mouse.enter(t,e)})),t.canvas.canvas.addEventListener("mouseleave",(function(t){SR7.A.thecluster.listeners.mouse.leave(t,e)})),t.canvas.canvas.addEventListener("mousemove",(function(t){SR7.A.thecluster.listeners.mouse.move(t,e)}))),"indivRotaWithReturn"!==t.settings.gravFollowMouse&&"indivRota"!==t.settings.gravFollowMouse||(t.lastMousePos=[0,0],t.counter=0,t.canvas.canvas.addEventListener("mousemove",(function(t){SR7.A.thecluster.listeners.mouse.move2(t,e)}))))},T=()=>{THREE.GPUComputationRenderer??=function(e,t,r){this.variables=[],this.currentTextureIndex=0;var a=new THREE.Scene,n=new THREE.Camera;n.position.z=1;var o={passThruTexture:{value:null}},s=l("uniform sampler2D passThruTexture;\n\nvoid main(){\n\n\tvec2 uv=gl_FragCoord.xy / resolution.xy;\n\n\tgl_FragColor=texture2D(passThruTexture, uv);\n\n}\n",o),i=new THREE.Mesh(new THREE.PlaneBufferGeometry(2,2),s);function u(r){r.defines.resolution="vec2("+e.toFixed(1)+", "+t.toFixed(1)+")"}function l(e,t){t=t||{};var r=new THREE.ShaderMaterial({uniforms:t,vertexShader:"void main()\t{\n\n\tgl_Position=vec4(position, 1.0);\n\n}\n",fragmentShader:e});return u(r),r}a.add(i),this.addVariable=function(e,t,r){var a={name:e,initialValueTexture:r,material:this.createShaderMaterial(t),dependencies:null,renderTargets:[],wrapS:null,wrapT:null,minFilter:THREE.NearestFilter,magFilter:THREE.NearestFilter};return this.variables.push(a),a},this.setVariableDependencies=function(e,t){e.dependencies=t},this.init=function(){if(!r.capabilities.isWebGL2&&!r.extensions.get("OES_texture_float"))return"No OES_texture_float support for float textures.";if(0===r.capabilities.maxVertexTextures)return"No support for vertex shader textures.";for(var a=0;a<this.variables.length;a++){var n=this.variables[a];n.renderTargets[0]=this.createRenderTarget(e,t,n.wrapS,n.wrapT,n.minFilter,n.magFilter),n.renderTargets[1]=this.createRenderTarget(e,t,n.wrapS,n.wrapT,n.minFilter,n.magFilter),this.renderTexture(n.initialValueTexture,n.renderTargets[0]),this.renderTexture(n.initialValueTexture,n.renderTargets[1]);var o=n.material,s=o.uniforms;if(null!==n.dependencies)for(var i=0;i<n.dependencies.length;i++){var u=n.dependencies[i];if(u.name!==n.name){for(var l=!1,c=0;c<this.variables.length;c++)if(u.name===this.variables[c].name){l=!0;break}if(!l)return"Variable dependency not found. Variable="+n.name+", dependency="+u.name}s[u.name]={value:null},o.fragmentShader="\nuniform sampler2D "+u.name+";\n"+o.fragmentShader}}return this.currentTextureIndex=0,null},this.compute=function(){for(var e=this.currentTextureIndex,t=0===this.currentTextureIndex?1:0,r=0,a=this.variables.length;r<a;r++){var n=this.variables[r];if(null!==n.dependencies)for(var o=n.material.uniforms,s=0,i=n.dependencies.length;s<i;s++){var u=n.dependencies[s];o[u.name].value=u.renderTargets[e].texture}this.doRenderTarget(n.material,n.renderTargets[t])}this.currentTextureIndex=t},this.getCurrentRenderTarget=function(e){return e.renderTargets[this.currentTextureIndex]},this.getAlternateRenderTarget=function(e){return e.renderTargets[0===this.currentTextureIndex?1:0]},this.addResolutionDefine=u,this.createShaderMaterial=l,this.createRenderTarget=function(r,a,n,o,s,i){return r=r||e,a=a||t,n=n||THREE.ClampToEdgeWrapping,o=o||THREE.ClampToEdgeWrapping,s=s||THREE.NearestFilter,i=i||THREE.NearestFilter,new THREE.WebGLRenderTarget(r,a,{wrapS:n,wrapT:o,minFilter:s,magFilter:i,format:THREE.RGBAFormat,type:/(iPad|iPhone|iPod)/g.test(navigator.userAgent)?THREE.HalfFloatType:THREE.FloatType,stencilBuffer:!1,depthBuffer:!1})},this.createTexture=function(){var r=new Float32Array(e*t*4);return new THREE.DataTexture(r,e,t,THREE.RGBAFormat,THREE.FloatType)},this.renderTexture=function(e,t){o.passThruTexture.value=e,this.doRenderTarget(s,t),o.passThruTexture.value=null},this.doRenderTarget=function(e,t){var o=r.getRenderTarget();i.material=e,r.setRenderTarget(t),r.render(a,n),i.material=s,r.setRenderTarget(o)}}};_tpt.R??={},_tpt.R.tc_Cluster=_tpt.extend?_tpt.extend(_tpt.R.tc_Cluster,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TheClusterClusterLoaded"))}();
!function(){"use strict";function t(t){(t===1/0||isNaN(t))&&(t=0);var e=function(t){var e=t.toString().split(".")[1];return void 0===e?0:e.length}(t);return 0===e?parseFloat(t).toFixed(1):parseFloat(t).toFixed(e)}window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===(SR7.A.thecluster?.shaders??void 0)&&(SR7.A.thecluster={...SR7.A.thecluster,shaders:{computePosShader:()=>"\n\t\t\t\tuniform float u_speed;\n\t\t\t\tuniform float u_time;\n\t\t\t\tuniform float u_lifeTimeDelay;\n\n\t\t\t\tvoid main(){\n\t\t\t\t\tvec2 uv=gl_FragCoord.xy / resolution.xy;\n\t\t\t\t\tvec4 texturePos=texture2D(texturePosition, uv);\n\t\t\t\t\tvec4 textureVel=texture2D(textureVelocity, uv);\n\t\t\t\t\tvec4 textureInitPos=texture2D(textureInitPos, uv);\n\t\t\t\t\tvec4 textureInitVCC=texture2D(textureInitVCC, uv);\n\t\t\t\t\tvec3 pos=texturePos.xyz;\n\t\t\t\t\tvec3 vel=textureVel.xyz;\n\n\t\t\t\t\tfloat minCo=0.0;\n\t\t\t\t\tfloat maxCo=0.75;\n\n\t\t\t\t\t//-- Add ParticleMove Here --\n\n\t\t\t\t\tgl_FragColor=vec4(pos, 1.0);\n\t\t\t\t}\n\t\t\t",computeValueShader:()=>"\n\t\t\t\tvoid main(){\n\t\t\t\t\tvec2 uv=gl_FragCoord.xy / resolution.xy;\n\t\t\t\t\tvec4 textureCV=texture2D(textureCustomValues, uv);\n\n\t\t\t\t\tgl_FragColor=textureCV;\n\t\t\t\t}\n\t\t\t",computeInitPosShader:()=>"\n\t\t\t\tvoid main(){\n\t\t\t\t\tvec2 uv=gl_FragCoord.xy / resolution.xy;\n\t\t\t\t\tvec4 textureCV=texture2D(textureInitPos, uv);\n\n\t\t\t\t\tgl_FragColor=textureCV;\n\t\t\t\t}\n\t\t\t",computeInitVCCShader:()=>"\n\t\t\t\tvoid main(){\n\t\t\t\t\tvec2 uv=gl_FragCoord.xy / resolution.xy;\n\t\t\t\t\tvec4 textureCV=texture2D(textureInitVCC, uv);\n\n\t\t\t\t\tgl_FragColor=textureCV;\n\t\t\t\t}\n\t\t\t",computeVelShader:()=>"\n\t\t\t\tuniform float u_speed;\n\t\t\t\tuniform float u_mass;\n\t\t\t\tuniform float u_mass2;\n\t\t\t\tuniform float u_mass3;\n\t\t\t\tuniform float u_gravPositions[9];\n\t\t\t\tuniform float u_time;\n\t\t\t\tuniform float u_lifeTimeDelay;\n\t\t\t\tuniform float u_noiseAmount;\n\t\t\t\tuniform vec2 u_mouseVector;\n\t\t\t\tuniform bool u_mouseOnLayer;\n\n\t\t\t\t//-- Add Noise Methods Here --\n\n\t\t\t\tvoid main(){\n\t\t\t\t\tvec2 uv=gl_FragCoord.xy / resolution.xy;\n\t\t\t\t\tvec4 texturePos=texture2D(texturePosition, uv);\n\t\t\t\t\tvec4 textureVel=texture2D(textureVelocity, uv);\n\t\t\t\t\tvec4 textureCV=texture2D(textureCustomValues, uv);\n\t\t\t\t\tvec4 textureInitVCC=texture2D(textureInitVCC, uv);\n\t\t\t\t\tvec3 vel=textureVel.xyz;\n\t\t\t\t\tvec3 pos=texturePos.xyz;\n\t\t\t\t\tfloat lifetime=textureVel.w;\n\n\t\t\t\t\tfloat gravCo=-0.004;\n\t\t\t\t\tfloat speedCo=0.1;\n\n\t\t\t\t\tvec3 sumVector=vec3(0.0, 0.0, 0.0);\n\n\t\t\t\t\t//-- Add G1 Here --\n\t\t\t\t\t//-- Add G2 Here --\n\t\t\t\t\t//-- Add G3 Here --\n\t\t\t\t\t//-- Add G4 Here --\n\n\t\t\t\t\t//-- Add Modified Vel Here --\n\n\t\t\t\t\tvel +=sumVector * u_speed * speedCo;\n\n\t\t\t\t\t//-- Add Noise Here --\n\n\t\t\t\t\t//-- Add Disolve Here --\n\n\t\t\t\t\tgl_FragColor=vec4(vel, lifetime);\n\t\t\t\t}\n\t\t\t",particleVertShader:()=>"\n\t\t\t\t//interresting effect with limit on gl_Position.xyz\n\n\t\t\t\tvec3 limit(inout vec3 pos, vec3 shiftby, float dis){\n\t\t\t\t\tfloat length=length(pos - shiftby);\n\t\t\t\t\tif(length > dis){\n\t\t\t\t\t\treturn (normalize(pos) * dis) + shiftby;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\treturn pos;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvec3 unLimit(inout vec3 pos, vec3 shiftby, float dis){\n\t\t\t\t\tfloat length=length(pos - shiftby);\n\t\t\t\t\tif(length < dis){\n\t\t\t\t\t\treturn (normalize(pos) * dis) + shiftby;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\treturn pos;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tuniform sampler2D texturePosition;\n\t\t\t\tuniform sampler2D textureVelocity;\n\t\t\t\tuniform sampler2D textureCustomValues;\n\n\t\t\t\tuniform float u_pointSize;\n\t\t\t\tuniform vec3 u_limitCentrePosition;\n\t\t\t\tuniform float u_limitMovementValue;\n\t\t\t\tuniform bool u_limitMovement;\n\t\t\t\tuniform float u_time;\n\t\t\t\tuniform float u_lifeTimeDelay;\n\n\t\t\t\tvarying vec3 v_pos;\n\t\t\t\tvarying float v_lifetime;\n\t\t\t\tvarying vec2 v_uv;\n\n\t\t\t\tuniform bool u_mouseOnLayer;\n\t\t\t\tuniform vec2 u_mouseVector;\n\n\t\t\t\tvoid main(){\n\t\t\t\t\tvec4 pos=texture2D(texturePosition, uv);\n\t\t\t\t\tvec4 vel=texture2D(textureVelocity, uv);\n\t\t\t\t\tvec4 textureCV=texture2D(textureCustomValues, uv);\n\n\t\t\t\t\tv_uv=uv;\n\n\t\t\t\t\tvec4 worldPosition;\n\n\t\t\t\t\tvec4 endPos;\n\t\t\t\t\tvec3 posnew=vec3(0.0);\n\n\t\t\t\t\tif(u_mouseOnLayer==true){\n\t\t\t\t\t\tposnew=unLimit(pos.xyz, vec3(u_mouseVector, 0.0), 0.55);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tposnew=unLimit(pos.xyz, u_limitCentrePosition, 0.55);\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tif(u_limitMovement==true){\n\t\t\t\t\t\tendPos=vec4(limit(posnew, u_limitCentrePosition, u_limitMovementValue), 1.0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tendPos=vec4(posnew, 1.0);\n\t\t\t\t\t}\n\n\t\t\t\t\tworldPosition=modelMatrix * endPos;\n\t\t\t\t\t\n\t\t\t\t\tvec4 mvPosition=viewMatrix * worldPosition;\n\t\t\t\t\tgl_Position=projectionMatrix * mvPosition;\n\n\t\t\t\t\tv_pos=pos.xyz;\n\n\t\t\t\t\t//-- Add v_lifetime Here --\n\n\t\t\t\t\t//-- Add stayOnScreen Here --\n\n\t\t\t\t\tfloat sizeChangeOnGrav=length(pos.xyz) / 5.0;\n\t\t\t\t\tgl_PointSize=(u_pointSize) * textureCV.w * clamp(sizeChangeOnGrav, 0.75, 1.5);\n\t\t\t\t}\n\t\t\t",particleFragShader:()=>"\n\t\t\t\tfloat resize(inout float x, float wholeLocal){\n\t\t\t\t\treturn abs(x / wholeLocal);\n\t\t\t\t}\n\n\t\t\t\tuniform sampler2D u_particleTexture;\n\t\t\t\tuniform float u_colorArray[30];\n\t\t\t\tuniform float u_time;\n\t\t\t\tuniform float u_colorImageMixValue;\n\n\t\t\t\tvarying vec3 v_pos;\n\t\t\t\tvarying float v_lifetime;\n\t\t\t\tvarying vec2 v_uv;\n\t\t\t\t\n\t\t\t\tvoid main(){\n\n\t\t\t\t\t//-- Add ColorCode Here --\n\n\t\t\t\t\tif(b.w > 0.1){\n\t\t\t\t\t\tgl_FragColor=mix(c, b, u_colorImageMixValue / 100.0);\n\t\t\t\t\t\tgl_FragColor.w=v_lifetime;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t"},createShaders:e=>{let n=e.settings,o=SR7.A.thecluster.shaders.particleFragShader(),r=SR7.A.thecluster.shaders.computeVelShader(),i=SR7.A.thecluster.shaders.computePosShader(),l=SR7.A.thecluster.shaders.particleVertShader();if(n.gravPoint1Toggle&&(r=r.replace("//-- Add G1 Here --","\n\t\t\t\t\tvec3 g1=pos - vec3(u_gravPositions[0], u_gravPositions[1], u_gravPositions[2]);\n\t\t\t\t\tsumVector +=normalize(g1) * length(g1) * gravCo * u_mass;\n\t\t\t\t")),n.gravPoint2Toggle&&(r=r.replace("//-- Add G2 Here --","\n\t\t\t\t\tvec3 g2=pos - vec3(u_gravPositions[3], u_gravPositions[4], u_gravPositions[5]);\n\t\t\t\t\tsumVector +=normalize(g2) * length(g2) * gravCo * u_mass2;\n\t\t\t\t")),n.gravPoint3Toggle&&(r=r.replace("//-- Add G3 Here --","\n\t\t\t\t\tvec3 g3=pos - vec3(u_gravPositions[6], u_gravPositions[7], u_gravPositions[8]);\n\t\t\t\t\tsumVector +=normalize(g3) * length(g3) * gravCo * u_mass3;\n\t\t\t\t")),r=r.replace("//-- Add G4 Here --",`\n\t\t\t\tif(u_mouseOnLayer){\n\t\t\t\t\tvec3 g4=pos - vec3(u_mouseVector.x, u_mouseVector.y, 0.0);\n\t\t\t\t\tsumVector +=normalize(g4) * length(g4) * gravCo * ${(10*n.gravFollowMouseValue).toFixed(1)};\n\t\t\t\t}\n\t\t\t`),"lifetime"==n.patternSel&&("fadeInOut"==n.lifetimeAlphaChange&&(r=r.replace("//-- Add Modified Vel Here --",`\n\t\t\t\t\t\tfloat lt=sin((u_time * ${n.lifeTimeDelay.toFixed(1)}) + textureVel.w * 6.28);\n\t\n\t\t\t\t\t\tif(lt < 0.0){\n\t\t\t\t\t\t\tvel.xyz=textureInitVCC.xyz;\n\t\t\t\t\t\t}\n\t\t\t\t\t`)),"fadeIn"==n.lifetimeAlphaChange&&(r=r.replace("//-- Add Modified Vel Here --",`\n\t\t\t\t\t\tfloat x=u_time * ${n.lifeTimeDelay.toFixed(1)} + textureVel.w * 6.28;\n\t\t\t\t\t\tfloat lt=sin(x)- 0.5 * sin(2.0 * x);\n\t\n\t\t\t\t\t\tif(lt < 0.0){\n\t\t\t\t\t\t\tvel.xyz=textureInitVCC.xyz;\n\t\t\t\t\t\t}\n\t\t\t\t\t`)),"fadeOut"==n.lifetimeAlphaChange&&(r=r.replace("//-- Add Modified Vel Here --",`\n\t\t\t\t\t\tfloat x=u_time * ${n.lifeTimeDelay.toFixed(1)} + textureVel.w * 6.28;\n\t\t\t\t\t\tfloat lt=-sin(x) + 0.5 * sin(2.0 * x);\n\t\n\t\t\t\t\t\tif(lt < 0.0){\n\t\t\t\t\t\t\tvel.xyz=textureInitVCC.xyz;\n\t\t\t\t\t\t}\n\t\t\t\t\t`))),n.noiseOn&&(r=r.replace("//-- Add Noise Methods Here --","\n\t\t\t\t\tvec4 mod289(vec4 x){\n\t\t\t\t\t\treturn x - floor(x * (1.0 / 289.0)) * 289.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfloat mod289(float x){\n\t\t\t\t\t\treturn x - floor(x * (1.0 / 289.0)) * 289.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tvec4 permute(vec4 x){\n\t\t\t\t\t\treturn mod289(((x*34.0)+1.0)*x);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfloat permute(float x){\n\t\t\t\t\t\treturn mod289(((x*34.0)+1.0)*x);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tvec4 taylorInvSqrt(vec4 r){\n\t\t\t\t\t\treturn 1.79284291400159 - 0.85373472095314 * r;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfloat taylorInvSqrt(float r){\n\t\t\t\t\t\treturn 1.79284291400159 - 0.85373472095314 * r;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tvec4 grad4(float j, vec4 ip){\n\t\t\t\t\t\tconst vec4 ones=vec4(1.0, 1.0, 1.0, -1.0);\n\t\t\t\t\t\tvec4 p,s;\n\t\t\t\t\t\n\t\t\t\t\t\tp.xyz=floor(fract (vec3(j) * ip.xyz) * 7.0) * ip.z - 1.0;\n\t\t\t\t\t\tp.w=1.5 - dot(abs(p.xyz), ones.xyz);\n\t\t\t\t\t\ts=vec4(lessThan(p, vec4(0.0)));\n\t\t\t\t\t\tp.xyz=p.xyz + (s.xyz*2.0 - 1.0) * s.www;\n\t\t\t\t\t\n\t\t\t\t\t\treturn p;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t#define F4 0.309016994374947451\n\t\t\t\t\t\n\t\t\t\t\tvec4 snoise4 (vec4 v){\n\t\t\t\t\t\tconst vec4  C=vec4(0.138196601125011,0.276393202250021,0.414589803375032,-0.447213595499958);\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 i=floor(v + dot(v, vec4(F4)));\n\t\t\t\t\t\tvec4 x0=v -   i + dot(i, C.xxxx);\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 i0;\n\t\t\t\t\t\tvec3 isX=step(x0.yzw, x0.xxx);\n\t\t\t\t\t\tvec3 isYZ=step(x0.zww, x0.yyz);\n\t\t\t\t\t\ti0.x=isX.x + isX.y + isX.z;\n\t\t\t\t\t\ti0.yzw=1.0 - isX;\n\t\t\t\t\t\ti0.y +=isYZ.x + isYZ.y;\n\t\t\t\t\t\ti0.zw +=1.0 - isYZ.xy;\n\t\t\t\t\t\ti0.z +=isYZ.z;\n\t\t\t\t\t\ti0.w +=1.0 - isYZ.z;\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 i3=clamp(i0, 0.0, 1.0);\n\t\t\t\t\t\tvec4 i2=clamp(i0-1.0, 0.0, 1.0);\n\t\t\t\t\t\tvec4 i1=clamp(i0-2.0, 0.0, 1.0);\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 x1=x0 - i1 + C.xxxx;\n\t\t\t\t\t\tvec4 x2=x0 - i2 + C.yyyy;\n\t\t\t\t\t\tvec4 x3=x0 - i3 + C.zzzz;\n\t\t\t\t\t\tvec4 x4=x0 + C.wwww;\n\t\t\t\t\t\n\t\t\t\t\t\ti=mod289(i);\n\t\t\t\t\t\tfloat j0=permute(permute(permute(permute(i.w) + i.z) + i.y) + i.x);\n\t\t\t\t\t\tvec4 j1=permute(permute(permute(permute (\n\t\t\t\t\t\t\t\ti.w + vec4(i1.w, i2.w, i3.w, 1.0))\n\t\t\t\t\t\t\t+ i.z + vec4(i1.z, i2.z, i3.z, 1.0))\n\t\t\t\t\t\t\t+ i.y + vec4(i1.y, i2.y, i3.y, 1.0))\n\t\t\t\t\t\t\t+ i.x + vec4(i1.x, i2.x, i3.x, 1.0));\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 ip=vec4(1.0/294.0, 1.0/49.0, 1.0/7.0, 0.0) ;\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 p0=grad4(j0,   ip);\n\t\t\t\t\t\tvec4 p1=grad4(j1.x, ip);\n\t\t\t\t\t\tvec4 p2=grad4(j1.y, ip);\n\t\t\t\t\t\tvec4 p3=grad4(j1.z, ip);\n\t\t\t\t\t\tvec4 p4=grad4(j1.w, ip);\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 norm=taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n\t\t\t\t\t\tp0 *=norm.x;\n\t\t\t\t\t\tp1 *=norm.y;\n\t\t\t\t\t\tp2 *=norm.z;\n\t\t\t\t\t\tp3 *=norm.w;\n\t\t\t\t\t\tp4 *=taylorInvSqrt(dot(p4,p4));\n\t\t\t\t\t\n\t\t\t\t\t\tvec3 values0=vec3(dot(p0, x0), dot(p1, x1), dot(p2, x2)); //value of contributions from each corner at point\n\t\t\t\t\t\tvec2 values1=vec2(dot(p3, x3), dot(p4, x4));\n\t\t\t\t\t\n\t\t\t\t\t\tvec3 m0=max(0.5 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0); //(0.5 - x^2) where x is the distance\n\t\t\t\t\t\tvec2 m1=max(0.5 - vec2(dot(x3,x3), dot(x4,x4)), 0.0);\n\t\t\t\t\t\n\t\t\t\t\t\tvec3 temp0=-6.0 * m0 * m0 * values0;\n\t\t\t\t\t\tvec2 temp1=-6.0 * m1 * m1 * values1;\n\t\t\t\t\t\n\t\t\t\t\t\tvec3 mmm0=m0 * m0 * m0;\n\t\t\t\t\t\tvec2 mmm1=m1 * m1 * m1;\n\t\t\t\t\t\n\t\t\t\t\t\tfloat dx=temp0[0] * x0.x + temp0[1] * x1.x + temp0[2] * x2.x + temp1[0] * x3.x + temp1[1] * x4.x + mmm0[0] * p0.x + mmm0[1] * p1.x + mmm0[2] * p2.x + mmm1[0] * p3.x + mmm1[1] * p4.x;\n\t\t\t\t\t\tfloat dy=temp0[0] * x0.y + temp0[1] * x1.y + temp0[2] * x2.y + temp1[0] * x3.y + temp1[1] * x4.y + mmm0[0] * p0.y + mmm0[1] * p1.y + mmm0[2] * p2.y + mmm1[0] * p3.y + mmm1[1] * p4.y;\n\t\t\t\t\t\tfloat dz=temp0[0] * x0.z + temp0[1] * x1.z + temp0[2] * x2.z + temp1[0] * x3.z + temp1[1] * x4.z + mmm0[0] * p0.z + mmm0[1] * p1.z + mmm0[2] * p2.z + mmm1[0] * p3.z + mmm1[1] * p4.z;\n\t\t\t\t\t\tfloat dw=temp0[0] * x0.w + temp0[1] * x1.w + temp0[2] * x2.w + temp1[0] * x3.w + temp1[1] * x4.w + mmm0[0] * p0.w + mmm0[1] * p1.w + mmm0[2] * p2.w + mmm1[0] * p3.w + mmm1[1] * p4.w;\n\t\t\t\t\t\n\t\t\t\t\t\treturn vec4(dx, dy, dz, dw) * 49.0;\n\t\t\t\t\t}\n\t\t\t\t\tvec3 curl(in vec3 p, in float noiseTime, in float persistence){\n\t\t\t\t\t\n\t\t\t\t\t\tvec4 xNoisePotentialDerivatives=vec4(0.0);\n\t\t\t\t\t\tvec4 yNoisePotentialDerivatives=vec4(0.0);\n\t\t\t\t\t\tvec4 zNoisePotentialDerivatives=vec4(0.0);\n\t\t\t\t\t\n\t\t\t\t\t\tfor (int i=0; i < 3; ++i){\n\t\t\t\t\t\n\t\t\t\t\t\t\tfloat twoPowI=pow(2.0, float(i));\n\t\t\t\t\t\t\tfloat scale=0.5 * twoPowI * pow(persistence, float(i));\n\t\t\t\t\t\n\t\t\t\t\t\t\txNoisePotentialDerivatives +=snoise4(vec4(p * twoPowI, noiseTime)) * scale;\n\t\t\t\t\t\t\tyNoisePotentialDerivatives +=snoise4(vec4((p + vec3(123.4, 129845.6, -1239.1)) * twoPowI, noiseTime)) * scale;\n\t\t\t\t\t\t\tzNoisePotentialDerivatives +=snoise4(vec4((p + vec3(-9519.0, 9051.0, -123.0)) * twoPowI, noiseTime)) * scale;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\treturn vec3(\n\t\t\t\t\t\t\tzNoisePotentialDerivatives[1] - yNoisePotentialDerivatives[2],\n\t\t\t\t\t\t\txNoisePotentialDerivatives[2] - zNoisePotentialDerivatives[0],\n\t\t\t\t\t\t\tyNoisePotentialDerivatives[0] - xNoisePotentialDerivatives[1]\n\t\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t"),r=r.replace("//-- Add Noise Here --","\n\t\t\t\t\tvel +=normalize(curl(pos * 0.02, u_time, 0.01)) * (u_noiseAmount / 4.0);\n\t\t\t\t")),n.lifeTimeGradient)if(n.isGradient){var a=n.RGBAColor[n.RGBAColor.length-5]/255,c=n.RGBAColor[n.RGBAColor.length-4]/255,s=n.RGBAColor[n.RGBAColor.length-3]/255,u=n.RGBAColor[n.RGBAColor.length-2],m=1;n.RGBAColor.length%5==0&&(m=0),o=o.replace("//-- Add ColorCode Here --",`\n\t\t\t\t\t\tconst int co1=${Math.round(a)};\n\t\t\t\t\t\tconst int co2=${Math.round(c)};\n\t\t\t\t\t\tconst int co3=${Math.round(s)};\n\t\t\t\t\t\tconst int co4=${Math.round(u)};\n\t\n\t\t\t\t\t\tvec4 c=vec4(co1, co2, co3, co4);\n\t\t\t\t\t\tconst int convert_i=${(n.RGBAColor.length-m)/5};\n\t\t\t\t\t\tconst int cancelGardientAngle=${m};\n\t\n\t\t\t\t\t\tfor(int i=0; i<convert_i; i++){\n\t\t\t\t\t\t\tif(u_colorArray[i*5+4+cancelGardientAngle]/100.0 <=v_lifetime&&v_lifetime <=u_colorArray[i*5+9+cancelGardientAngle]/100.0){\n\t\t\t\t\t\t\t\tc.x=mix(u_colorArray[i*5+0+${m}]/255.0, u_colorArray[i*5+5+${m}]/255.0, smoothstep(u_colorArray[i*5+4+${m}] / 100.0, u_colorArray[i*5+9+${m}] / 100.0, v_lifetime));\n\t\t\t\t\t\t\t\tc.y=mix(u_colorArray[i*5+1+${m}]/255.0, u_colorArray[i*5+6+${m}]/255.0, smoothstep(u_colorArray[i*5+4+${m}] / 100.0, u_colorArray[i*5+9+${m}] / 100.0, v_lifetime));\n\t\t\t\t\t\t\t\tc.z=mix(u_colorArray[i*5+2+${m}]/255.0, u_colorArray[i*5+7+${m}]/255.0, smoothstep(u_colorArray[i*5+4+${m}] / 100.0, u_colorArray[i*5+9+${m}] / 100.0, v_lifetime));\n\t\t\t\t\t\t\t\tc.w=1.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvec4 b=texture2D(u_particleTexture, gl_PointCoord);\n\t\t\t\t\t`)}else o=o.replace("//-- Add ColorCode Here --",`\n\t\t\t\t\t\tvec4 c=vec4(${n.RGBAColor[0]/255}, ${n.RGBAColor[1]/255}, ${n.RGBAColor[2]/255}, ${n.RGBAColor[3]});\n\t\t\t\t\t\tvec4 b=texture2D(u_particleTexture, gl_PointCoord);\n\t\t\t\t\t`);else if(n.isGradient||n.isRadGradient){let r=SR7.A.thecluster.calcSizeAt0Plane(e);var v=(Math.round(10*r.x)/10).toFixed(1).toString(),x=(Math.round(10*r.y)/10).toFixed(1).toString(),p=t(v/2);v=t(v),x=t(x);a=n.RGBAColor[n.RGBAColor.length-5]/255,c=n.RGBAColor[n.RGBAColor.length-4]/255,s=n.RGBAColor[n.RGBAColor.length-3]/255,u=n.RGBAColor[n.RGBAColor.length-2];if(n.isRadGradient)o=o.replace("//-- Add ColorCode Here --",`\n\t\t\t\t\t\t\tvec3 posVal=v_pos;\n\t\t\t\t\t\t\tfloat length=length(posVal);\n\t\t\t\t\t\t\tfloat sizeAt0X_recalc=${p};\n\t\t\t\t\t\t\tfloat l=resize(length, sizeAt0X_recalc);\n\t\t\n\t\t\t\t\t\t\tvec4 c=vec4(${a.toFixed(2)}, ${c.toFixed(2)}, ${s.toFixed(2)}, ${u.toFixed(2)});\n\t\t\t\t\t\t\tconst int convert_i=${n.RGBAColor.length/5};\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<convert_i; i++){\n\t\t\t\t\t\t\t\tif(u_colorArray[i*5+4]/100.0 <=l&&l <=u_colorArray[i*5+9]/100.0){\n\t\t\t\t\t\t\t\t\tc.x=mix(u_colorArray[i*5+0]/255.0, u_colorArray[i*5+5]/255.0, smoothstep(u_colorArray[i*5+4] / 100.0, u_colorArray[i*5+9] / 100.0, l));\n\t\t\t\t\t\t\t\t\tc.y=mix(u_colorArray[i*5+1]/255.0, u_colorArray[i*5+6]/255.0, smoothstep(u_colorArray[i*5+4] / 100.0, u_colorArray[i*5+9] / 100.0, l));\n\t\t\t\t\t\t\t\t\tc.z=mix(u_colorArray[i*5+2]/255.0, u_colorArray[i*5+7]/255.0, smoothstep(u_colorArray[i*5+4] / 100.0, u_colorArray[i*5+9] / 100.0, l));\n\t\t\t\t\t\t\t\t\tc.w=1.0;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvec4 b=texture2D(u_particleTexture, gl_PointCoord);\n\t\t\t\t\t\t`);else if(n.RGBAColor.length%5==0)o=o.replace("//-- Add ColorCode Here --",`\n\t\t\t\t\t\t\t\tvec3 posVal=v_pos;\n\t\t\t\t\t\t\t\tfloat localH=${x};\n\t\t\t\t\t\t\t\tfloat length=posVal.y - localH/2.0;\n\t\t\t\t\t\t\t\tfloat sizeAt0Y_recalc=${x};\n\t\t\t\t\t\t\t\tfloat l=resize(length, sizeAt0Y_recalc);\n\t\t\n\t\t\t\t\t\t\t\tvec4 c=vec4(${a.toFixed(2)}, ${c.toFixed(2)}, ${s.toFixed(2)}, ${u.toFixed(2)});\n\t\t\t\t\t\t\t\tconst int convert_i=${n.RGBAColor.length/5};\n\t\n\t\t\t\t\t\t\t\tfor(int i=0; i<convert_i; i++){\n\t\t\t\t\t\t\t\t\tif(u_colorArray[i*5+4]/100.0 <=l&&l <=u_colorArray[i*5+9]/100.0){\n\t\t\t\t\t\t\t\t\t\tc.x=mix(u_colorArray[i*5+0]/255.0, u_colorArray[i*5+5]/255.0, smoothstep(u_colorArray[i*5+4] / 100.0, u_colorArray[i*5+9] / 100.0, l));\n\t\t\t\t\t\t\t\t\t\tc.y=mix(u_colorArray[i*5+1]/255.0, u_colorArray[i*5+6]/255.0, smoothstep(u_colorArray[i*5+4] / 100.0, u_colorArray[i*5+9] / 100.0, l));\n\t\t\t\t\t\t\t\t\t\tc.z=mix(u_colorArray[i*5+2]/255.0, u_colorArray[i*5+7]/255.0, smoothstep(u_colorArray[i*5+4] / 100.0, u_colorArray[i*5+9] / 100.0, l));\n\t\t\t\t\t\t\t\t\t\tc.w=1.0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvec4 b=texture2D(u_particleTexture, gl_PointCoord);\n\t\t\t\t\t\t\t`);else{var d=p,f="posVal.x";n.RGBAColor[0]<225&&n.RGBAColor[0]>=135&&(f="posVal.y - localH/2.0",d=x),n.RGBAColor[0]<135&&n.RGBAColor[0]>=45&&(f="posVal.x + localW/2.0",d=v),n.RGBAColor[0]<45&&n.RGBAColor[0]>=0&&(f="posVal.y + localH/2.0",d=x),n.RGBAColor[0]<0&&n.RGBAColor[0]>=315&&(f="posVal.y + localH/2.0",d=x),n.RGBAColor[0]<315&&n.RGBAColor[0]>=225&&(f="posVal.x - localW/2.0",d=v),o=o.replace("//-- Add ColorCode Here --",`\n\t\t\t\t\t\t\t\tvec3 posVal=v_pos;\n\t\t\t\t\t\t\t\tfloat localW=${v};\n\t\t\t\t\t\t\t\tfloat localH=${x};\n\t\t\t\t\t\t\t\tfloat length=${f};\n\t\t\t\t\t\t\t\tfloat selWH_recalc=${d};\n\t\t\t\t\t\t\t\tfloat l=resize(length, selWH_recalc);\n\t\t\n\t\t\t\t\t\t\t\tvec4 c=vec4(${a.toFixed(2)}, ${c.toFixed(2)}, ${s.toFixed(2)}, ${u.toFixed(2)});\n\t\t\t\t\t\t\t\tconst int convert_i=${(n.RGBAColor.length-1)/5};\n\t\n\t\t\t\t\t\t\t\tfor(int i=0; i<convert_i; i++){\n\t\t\t\t\t\t\t\t\tif(u_colorArray[i*5+5]/100.0 <=l&&l <=u_colorArray[i*5+10]/100.0){\n\t\t\t\t\t\t\t\t\t\tc.x=mix(u_colorArray[i*5+1]/255.0, u_colorArray[i*5+6]/255.0, smoothstep(u_colorArray[i*5+5] / 100.0, u_colorArray[i*5+10] / 100.0, l));\n\t\t\t\t\t\t\t\t\t\tc.y=mix(u_colorArray[i*5+2]/255.0, u_colorArray[i*5+7]/255.0, smoothstep(u_colorArray[i*5+5] / 100.0, u_colorArray[i*5+10] / 100.0, l));\n\t\t\t\t\t\t\t\t\t\tc.z=mix(u_colorArray[i*5+3]/255.0, u_colorArray[i*5+8]/255.0, smoothstep(u_colorArray[i*5+5] / 100.0, u_colorArray[i*5+10] / 100.0, l));\n\t\t\t\t\t\t\t\t\t\tc.w=1.0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvec4 b=texture2D(u_particleTexture, gl_PointCoord);\n\t\t\t\t\t\t\t`)}}else o=o.replace("//-- Add ColorCode Here --",`\n\t\t\t\t\t\tvec4 c=vec4(${n.RGBAColor[0]/255}, ${n.RGBAColor[1]/255}, ${n.RGBAColor[2]/255}, ${n.RGBAColor[3]});\n\t\t\t\t\t\tvec4 b=texture2D(u_particleTexture, gl_PointCoord);\n\t\t\t\t\t`);switch(n.patternSel){case"continuous":i=n.periodicSpawn?i.replace("//-- Add ParticleMove Here --","\n\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed * (textureVel.w + 0.5);\n\t\t\t\t\t\t"):i.replace("//-- Add ParticleMove Here --","\n\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed;\n\t\t\t\t\t\t");break;case"sinus":i=n.periodicSpawn?i.replace("//-- Add ParticleMove Here --","\n\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed * sin(u_time + textureVel.w);\n\t\t\t\t\t\t"):i.replace("//-- Add ParticleMove Here --","\n\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed * sin(u_time);\n\t\t\t\t\t\t");break;case"lifetime":"fadeInOut"==n.lifetimeAlphaChange&&(i=i.replace("//-- Add ParticleMove Here --",`\n\t\t\t\t\t\t\tfloat lifetime=sin((u_time * ${n.lifeTimeDelay.toFixed(1)}) + textureVel.w * 6.28);\n\t\n\t\t\t\t\t\t\tif(lifetime > 0.0){\n\t\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tpos.xyz=textureInitPos.xyz;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`)),"fadeIn"==n.lifetimeAlphaChange&&(i=i.replace("//-- Add ParticleMove Here --",`\n\t\t\t\t\t\t\tfloat x=u_time * ${n.lifeTimeDelay.toFixed(1)} + textureVel.w * 6.28;\n\t\t\t\t\t\t\tfloat lifetime=sin(x)- 0.5 * sin(2.0 * x);\n\t\n\t\t\t\t\t\t\tif(lifetime > 0.0){\n\t\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tpos.xyz=textureInitPos.xyz;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`)),"fadeOut"==n.lifetimeAlphaChange&&(i=i.replace("//-- Add ParticleMove Here --",`\n\t\t\t\t\t\t\tfloat x=u_time * ${n.lifeTimeDelay.toFixed(1)} + textureVel.w * 6.28;\n\t\t\t\t\t\t\tfloat lifetime=-sin(x) + 0.5 * sin(2.0 * x);\n\t\n\t\t\t\t\t\t\tif(lifetime > 0.0){\n\t\t\t\t\t\t\t\tvel=normalize(vel) * clamp(length(vel), minCo, maxCo);\n\t\t\t\t\t\t\t\tpos +=vel * 0.30 * u_speed;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tpos.xyz=textureInitPos.xyz;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`))}"lifetime"==n.patternSel?("fadeInOut"==n.lifetimeAlphaChange&&(l=l.replace("//-- Add v_lifetime Here --",`\n\t\t\t\t\t\tv_lifetime=sin((u_time * ${n.lifeTimeDelay.toFixed(1)}) + vel.w * 6.28);\n\t\t\t\t\t`)),"fadeIn"==n.lifetimeAlphaChange&&(l=l.replace("//-- Add v_lifetime Here --",`\n\t\t\t\t\t\tfloat x=u_time * ${n.lifeTimeDelay.toFixed(1)} + vel.w * 6.28;\n\t\t\t\t\t\tv_lifetime=sin(x)- 0.5 * sin(2.0 * x);\n\t\t\t\t\t`)),"fadeOut"==n.lifetimeAlphaChange&&(l=l.replace("//-- Add v_lifetime Here --",`\n\t\t\t\t\t\tfloat x=u_time * ${n.lifeTimeDelay.toFixed(1)} + vel.w * 6.28;\n\t\t\t\t\t\tv_lifetime=-sin(x) + 0.5 * sin(2.0 * x);\n\t\t\t\t\t`))):l=l.replace("//-- Add v_lifetime Here --","\n\t\t\t\t\tv_lifetime=vel.w;\n\t\t\t\t"),e.particleFragShader=o,e.computeVelShader=r,e.computePosShader=i,e.particleVertShader=l,e.computeValueShader=SR7.A.thecluster.shaders.computeValueShader(),e.computeInitPosShader=SR7.A.thecluster.shaders.computeInitPosShader(),e.computeInitVCCShader=SR7.A.thecluster.shaders.computeInitVCCShader()}},_tpt.R??={},_tpt.R.tc_Shaders=_tpt.extend?_tpt.extend(_tpt.R.tc_Shaders,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TheClusterShadersLoaded")))}();
!function(){"use strict";window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===(SR7.A.thecluster?.tools??void 0)&&(SR7.A.thecluster={...SR7.A.thecluster,tools:{particleOnCanvas:(t,e,s,o)=>{const i=Math.max(t,e)+4;s.width=t,s.height=e,o.canvas.width=o.canvas.height=i,["webkitImageSmoothingEnabled","msImageSmoothingEnabled","imageSmoothingEnabled"].forEach((t=>o[t]=!1)),o.drawImage(s,(i-t)/2+2,(i-e)/2+2,t-4,e-4)}},gravPoints:{set:t=>{SR7.A.thecluster.gravPoints.add(t),SR7.A.thecluster.gravPoints.fill(t.settings),SR7.A.thecluster.gravPoints.selectable(t.settings),SR7.A.thecluster.gravPoints.visibility(t.settings)},add:t=>{let e=t.settings;for(let t=0;t<9;t++)e.gravPositions[t]=0;for(let a=0;a<3;a++){var s=new THREE.SphereGeometry(.4,7,7),o=new THREE.MeshBasicMaterial({color:3274158,transparent:!0}),i=new THREE.Mesh(s,o);e.gravPointArray[a]=i,t.scene.add(e.gravPointArray[a]),e.gravPositions[3*a+0]=0,e.gravPositions[3*a+1]=0,t.settings.gravPositions[3*a+2]=0,i.userData.draggable=!0,i.userData.name=a+1}},fill:t=>{t.g1X=t.gravPositions[0],t.g1Y=t.gravPositions[1],t.g1Z=t.gravPositions[2],t.g2X=t.gravPositions[3],t.g2Y=t.gravPositions[4],t.g2Z=t.gravPositions[5],t.g3X=t.gravPositions[6],t.g3Y=t.gravPositions[7],t.g3Z=t.gravPositions[8]},selectable:t=>{SR7.A.thecluster.gravPoints.points=[3];for(let e=1;e<4;e++){let s=SR7.A.thecluster.gravPoints.points[e-1]??=document.getElementById("wpsaddon_gravP"+e+"MoveSel");null!==s&&null==s&&(s.style.cssText=t["gravPoint"+e+"Toggle"]?"opacity: 100%; pointer-events: auto;":"opacity: 50%; pointer-events: none;")}},visibility:t=>{for(let e=1;e<4;e++)t.gravPointArray[e-1].visible=t.gravPointsVisible&&""+t["gravPoint"+e+"Toggle"]=="true"}}},_tpt.R??={},_tpt.R.tc_Tools=_tpt.extend?_tpt.extend(_tpt.R.tc_Tools,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TheClusterToolsLoaded")))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.typewriter)return;let e=document.createElement("textarea"),t={pI:e=>parseInt(e),pF:e=>parseFloat(e),s:e=>String(e),b:e=>"on"===e||!0===e||1===e||"off"!==e&&!1!==e&&0!==e&&e,k:e=>e};SR7.A.typewriter={anime:'content: "[char]"; animation: tp-typewriter [speed]s steps(2, start) infinite',style:"@keyframes tp-typewriter {from {visibility: visible}to {visibility: hidden}}sr7-layer.typewriter:before,sr7-layer.typewriter:after,.sr7-layer.typewriter:before,.sr7-layer.typewriter:after {\tposition: absolute;}sr7tw-blinking:before,sr7tw-blinking:after,.sr7tw-blinking:before,.sr7tw-blinking:after {\tposition: static;}@keyframes sr7-typewriter {from {visibility: visible}to {visibility: hidden}}",getLayerBasics:(e={},r)=>{let i="normalize"===r;return{u:"compare"==r?void 0:e.u??e.enable??!1,d:e.d??e.delays??"",s:t[i?"pI":"k"](e.s??e.speed??"30"),ctype:e.ctype??e.cursor_type??"one",c:e.c??e.color??"transparent",dStart:t[i?"pI":"k"](e.dStart??e.start_delay??"1000"),dNew:t[i?"pI":"k"](e.dNew??e.newline_delay??"1000"),dLB:t[i?"pI":"k"](e.dLB??e.linebreak_delay??"60"),dDel:t[i?"pI":"k"](e.dDel??e.deletion_delay??"1000"),sDel:t[i?"pI":"k"](e.sDel??e.deletion_speed??"20"),sBlink:t[i?"pI":"k"](e.sBlink??e.blinking_speed??"500"),loop:t[i?"b":"k"](e.loop??e.looped??!1),blink:t[i?"b":"k"](e.blink??e.blinking??!1),seq:t[i?"b":"k"](e.seq??e.sequenced??!1),dWord:t[i?"b":"k"](e.dWord??e.word_delay??!1),hCur:t[i?"b":"k"](e.hCur??e.hide_cursor??!1),lines:e.lines??""}},getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),prepareLayer:(e,t,r)=>{const i=t?.addOns?.typewriter;if("text"!==t?.type||!i?.u)return;let n=SR7.M[e].c.layers[r];n.subtype=t.subtype="typewriter",n.addOns??={},n.addOns.typewriter??=SR7.A.typewriter.getLayerBasics(t.addOns.typewriter,"normalize"),SR7.A.typewriter.writeCSS(n,t),SR7.A.typewriter.build(n,t)},prepareSlide:(e,t)=>{SR7.M[e].c.addOns??={},SR7.M[e].c.addOns.typewriter??={};const{M:r,AS:i,AM:n,AC:s}=SR7.A.typewriter.getSettings(e,t)},init:e=>{void 0===SR7.A.typewritercss&&(_tpt.injectCssJs(SR7.A.typewriter.style,void 0,void 0,"typewriter_global_styles"),SR7.A.typewritercss=!0),SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.typewriter??={},_tpt.scrollObserver.observe(SR7.M[e].c.module),SR7.F.module.listeners.init(e),SR7.A.typewriter.listeners.init(e)},toggle:e=>{let t=SR7.A.typewriter;const r=SR7.M[e];if(t.onFire)for(let i in t.onFire[e])_tpt.hop(t.onFire[e],i)&&(r.states.inViewPort?t.resume(r.c.layers[i]):t.pause(r.c.layers[i]))},listeners:{init:e=>{SR7.A.typewriter.listenersAdded?.[e]||(SR7.A.typewriter.onFire??={},SR7.A.typewriter.onFire[e]??={},document.addEventListener("sr.layer.action",(function(e){"typewriter"===e.c.subtype&&"false"!=(e.layersettings?.addOns?.typewriter?.u??!1)&&("enterstage"==e.eventtype?(e.c.addOns.typewriter.paused=!1,e.c.addOns.typewriter.active=!0,SR7.A.typewriter.play(e.c)):"leavestage"==e.eventtype&&(SR7.A.typewriter.pause(e.c,!0),e.c.addOns.typewriter.active=!1))})),SR7.A.typewriter.listenersAdded??={},SR7.A.typewriter.listenersAdded[e]=!0)}},writeCSS:(e,t)=>{let r=e.addOns.typewriter;if(r.blink){let i="#"+e.el.id,n="";if(n+=i+":before,",n+=i+":after {",n+=SR7.A.typewriter.anime.replace("[char]","one"===r.ctype?"_":"|").replace("[speed]",.001*r.sBlink)+"}",n+=i+".hide-typewriter-cursor:before,",n+=i+'.hide-typewriter-cursor:after {content: ""}',n+=i+":before {display: none}",n+=i+".typewriter-align-right:after {display: none}",n+=i+".typewriter-align-right:before {display: inline}",r.c&&"transparent"!==r.c&&(n+=i+":before,",n+=i+":after {color:"+r.c+"}"),t.bg&&"transparent"!==(t.bg?.color??"transparent")||void 0!==(t.bg?.image??void 0)){let r;for(let s in t.size.w)r=t.size.w[s],r="auto"===r||"none"===r||"#a"==r,s>0?(r=r?"static":"absolute",n+="@media screen and (max-width: "+SR7.G.breakPoints[s-1]+"px){sr7-layer"+i+".tw-blinking:before,"+i+".sr7-layer.tw-blinking:before,sr7-layer"+i+".tw-blinking:after,"+i+".sr7-layer.tw-blinking:after {position: "+r+"}}"):r&&e.el.classList.add("tw-blinking")}""!==n&&_tpt.injectCssJs(n,void 0,void 0,e.el.id+"_typewriter_styles")}},build:(e,t)=>{const{typewriter:r}=e.addOns;e.el.classList.add("hide-typewriter-cursor"),r.txt=t.content.text,r.clean=r.txt.replace(/(_|\|)$/,""),r.spans=[],r.textSpans=[],r.incompleteSpan=!1;const n=i(unescape(r.txt));if(r.seq&&(r.lines||r.seq&&r.loop)){r.textSpans.push(...n.spans);const e=(r.lines||r.txt).split(",");r.txt=[n.value],e.forEach((e=>{const t=i(unescape(_tpt.trim(e)));r.spans.push(...t.spans),e&&r.txt.push(t.value)}))}else r.loop=r.seq=!1,r.dNew=r.dLB,r.spans.push(...n.spans),r.txt=n.value.split(/\r?\n|\r/g).map((e=>_tpt.trim(e))).filter(Boolean);if(r.dWord=r.dWord&&r.d,r.dWord){const e=r.d.split(","),t=[];e.forEach((e=>{const[r,i]=unescape(e).split("|").map(Number);isNaN(r)||isNaN(i)||(t[r+t.length-1]=i)})),r.spaces=t}r.len=r.txt.length},play:function(e,t,r){var i=e.addOns.typewriter;SR7.A.typewriter.onFire[e.mid][e.el.id]=!0,clearTimeout(i.timer),i.paused||(i.line=0,i.step=0,i.words=0,i.skip=!1,i.rewind=!1,i.rstart=!1,i.breaker=!1,i.paused=!1,i.rpaused=!1,i.str=i.txt[i.line],i.len=i.str.length,r?(i.timer=setTimeout((()=>{SR7.A.typewriter.onStart(e)}),t),_tpt.event.trigger("dom","sr.layer.typewriterlooped",{layer:e.el,id:e.mid})):(e.el.innerHTML="&nbsp;",e.el.classList.remove("hide-typewriter-cursor"),i.timer=setTimeout((()=>{SR7.A.typewriter.onStart(e)}),i.dStart)),i.running=!0,_tpt.event.trigger("dom","sr.layer.typewriterstarted",{layer:e.el,id:e.mid}),_tpt.event.trigger("dom","sr.layer.typewriternewline",{layer:e.el,id:e.mid,line:i.line+1,content:i.txt[i.line]}),requestAnimationFrame((function(){SR7.F.positionLayer(e.el.id)})))},pause:function(e,t){e.addOns?.typewriter?.active&&(clearTimeout(e.addOns.typewriter.timer),e.addOns.typewriter.paused=!0,t&&delete SR7.A.typewriter.onFire[e.mid][e.el.id])},resume:function(e){if(null==e.addOns||null==e.addOns.typewriter)return;let t=e.addOns.typewriter;t.active&&(t.running?t.paused&&(t.rpaused?SR7.A.typewriter.play(e,t.lastSpeed,!0):(t.paused=!1,t.lastSpeed?t.timer=setTimeout(t.animate,t.lastSpeed):SR7.A.typewriter.animate(e))):SR7.A.typewriter.restart(e))},onStart:function(e){e.el.innerHTML="",r(e),SR7.A.typewriter.animate(e)},animate:function(e){let t,r,i,s,a=e.addOns.typewriter,l=a.str,p=a.txt,d=a.step,o=a.rewind,y=o?a.sDel:a.s;if(d<a.len){if(o){l=l.slice(0,-1),a.str=l;for(var c,w=/╠/g,u=[];c=w.exec(l);)u.push(c);if(u){for(var g=u.length-1;g>=0;g--){var m=u[g];l=n(l,m.index,"╣",a.spans[g])}l=l.replace(/╣/g,"</span>")||"&nbsp"}e.el.innerHTML=l.replace(/µ/g,"<br>")||"&nbsp"}else if(a.breaker?(r="<br>",y=a.skip?a.dLB:a.dNew,a.breaker=!1,a.skip=!1,a.words=0,a.step--):(r=l[d],"µ"===r&&(a.skip=!0,a.breaker=!0,y=a.dLB)),!a.breaker){if(s=e.el.innerHTML,"&nbsp;"===s&&(s=""),"╠"===r||"╣"===r||a.incompleteSpan){var S=s.match(/<span[^>]*>/g);S=S?S.length:0,"╠"===r?(a.incompleteSpan=!0,r=a.spans[S]+"</span>",s+=r):"╣"===r?a.incompleteSpan=!1:s=n(s,s.lastIndexOf("</span>"),"</span>",r+"</span>")}else s+=r;e.el.innerHTML=s,a.dWord&&" "===r&&(i=a.words,s=a.spaces[i],s?(y=s,a.words=i<a.spaces.length-1?i+1:0):a.words+=1)}a.step++,t=!0}else{if(a.rstart)return void(a.paused?(a.rpaused=!0,a.lastSpeed=a.dNew):SR7.A.typewriter.play(e,a.dNew,!0));a.line<p.length&&(a.line++,a.step=0,a.skip=!1,l=p[a.line],a.str=l,""===l&&(a.line++,a.breaker=!0,y=a.dNew),a.line<p.length?(a.seq?(o=!o,o?(a.line--,a.str=p[a.line],y=a.dDel):(a.str=p[a.line],a.len=a.str.length,y=a.dNew),a.rewind=o):(a.str=p[a.line],a.len=a.str.length),t=!0,a.words=0,a.rewind||_tpt.event.trigger("dom","sr.layer.typewriternewline",{layer:e.el,id:e.mid,line:a.line+1,content:a.txt[a.line]})):a.loop&&(a.rewind=!0,a.rstart=!0,a.words=0,a.line--,a.str=p[a.line],t=!0,y=a.dDel))}if(requestAnimationFrame((function(){SR7.F.positionLayer(e.el.id)})),t){if(a.paused)return void(a.lastSpeed=y);y?a.timer=setTimeout((()=>{SR7.A.typewriter.animate(e)}),y):SR7.A.typewriter.animate(e)}else a.running=!1,a.hCur&&e.el.classList.add("hide-typewriter-cursor"),_tpt.event.trigger("dom","sr.layer.typewriterended",{layer:e.el,id:e.mid})},onRedraw:function(e,t){if(null==e.addOns||null==e.addOns.typewriter)return;let r=e.addOns.typewriter;if(t)e.el.innerHTML=r.state;else{var i=window.getComputedStyle(e.el,":after").getPropertyValue("position");r.state=e.el.innerHTML,e.el.innerHTML="absolute"===i?r.orig:r.clean}},restart:function(e){if(null==e.addOns||null==e.addOns.typewriter)return;let t=e.addOns.typewriter;t.active&&(clearTimeout(t.timer),t.rpaused=!1,t.paused=!1,SR7.A.typewriter.play(e))},restore:function(e,t){if(null==e.addOns||null==e.addOns.typewriter)return;let r=e.addOns.typewriter;r.active&&(clearTimeout(r.timer),e.el.innerHTML=r.clean,t&&_R.aC(this.el,"hide-typewriter-cursor"))}};let r=e=>{let{layer:t}=SR7.F.getLayer(e.el.id);e.el.classList["right"===SR7.gVal(t.pos.h,e.mid)?"add":"remove"]("typewriter-align-right")},i=(t,r)=>{t=t.replace(/<(?!br|span|\/span\s*\/?)[^>]+>/g,"").replace(/[_|]$/,"");let i=[...(t=r?t.replace(/\r?\n|\r|<br[^>]*>/g," ").replace(/<\/span>/gi,"╣"):t.replace(/\r?\n|\r/g,"±").replace(/<br[^>]*>/gi,"µ").replace(/<\/span>/gi,"╣").replace(/±µ|µ±/g,"µ").replace(/^±+|±+$/g,"").replace(/^µ+|µ+$/g,"")).matchAll(/<span[^>]*>/g)].map((e=>e[0]));return e.innerHTML=t.replace(/<span[^>]*>/g,"╠"),{value:e.value,spans:i}},n=(e,t,r,i)=>e.substr(0,t)+i+e.substr(t+r.length,e.length);_tpt.R??={},_tpt.R.typewriter=_tpt.extend?_tpt.extend(_tpt.R.typewriter,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TypeWriterReady"))}();
(()=>{"use strict";var e,r,a,n={},c={};function __webpack_require__(e){var r=c[e];if(void 0!==r)return r.exports;var a=c[e]={exports:{}};return n[e].call(a.exports,a,a.exports,__webpack_require__),a.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,a,n,c)=>{if(!a){var i=1/0;for(o=0;o<e.length;o++){for(var[a,n,c]=e[o],t=!0,_=0;_<a.length;_++)(!1&c||i>=c)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](a[_])))?a.splice(_--,1):(t=!1,c<i&&(i=c));if(t){e.splice(o--,1);var b=n();void 0!==b&&(r=b)}}return r}c=c||0;for(var o=e.length;o>0&&e[o-1][2]>c;o--)e[o]=e[o-1];e[o]=[a,n,c]},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,a)=>(__webpack_require__.f[a](e,r),r)),[])),__webpack_require__.u=e=>635===e?"code-highlight.d86022c8668c4b072592.bundle.min.js":519===e?"video-playlist.af20fd9fd8778929829e.bundle.min.js":375===e?"paypal-button.f4f64e46173f50701949.bundle.min.js":234===e?"f6214a79e4b78ec016e6.bundle.min.js":857===e?"stripe-button.61d93594d6b7865f8b3f.bundle.min.js":581===e?"progress-tracker.8cccdda9737c272489fc.bundle.min.js":961===e?"animated-headline.588a0449647bd4f113f3.bundle.min.js":692===e?"media-carousel.afbaabb756a7c18ddb09.bundle.min.js":897===e?"carousel.3620fca501cb18163600.bundle.min.js":416===e?"countdown.0e9e688751d29d07a8d3.bundle.min.js":292===e?"hotspot.fa04300164c35a866a51.bundle.min.js":325===e?"form.5fb35271b8ba3fb1e7d6.bundle.min.js":543===e?"gallery.1628df47530ab42dafba.bundle.min.js":970===e?"lottie.e74a53bfa4c0bd939250.bundle.min.js":334===e?"nav-menu.a23fbd67486c5bedf26c.bundle.min.js":887===e?"popup.f7b15b2ca565b152bf98.bundle.min.js":535===e?"load-more.8b46f464e573feab5dd7.bundle.min.js":396===e?"posts.aec59265318492b89cb5.bundle.min.js":726===e?"portfolio.4cd5da34009c30cb5d70.bundle.min.js":316===e?"share-buttons.63d984f8c96d1e053bc0.bundle.min.js":829===e?"slides.c0029640cbdb48199471.bundle.min.js":158===e?"social.f215e8a3efafbdbeb7ef.bundle.min.js":404===e?"table-of-contents.99a74eec7252759bebdb.bundle.min.js":345===e?"archive-posts.16a93245d08246e5e540.bundle.min.js":798===e?"search-form.b7065999d77832a1b764.bundle.min.js":6===e?"woocommerce-menu-cart.eb61fe086245485310a4.bundle.min.js":80===e?"woocommerce-purchase-summary.3676ccd8c29ef0924b84.bundle.min.js":354===e?"woocommerce-checkout-page.943b06275712cd4b96a5.bundle.min.js":4===e?"woocommerce-cart.d0d01530f5be6736b5d2.bundle.min.js":662===e?"woocommerce-my-account.4e940a8b4a52d1c98c5c.bundle.min.js":621===e?"woocommerce-notices.bcee9b5e1c8f65ac7927.bundle.min.js":787===e?"product-add-to-cart.51a22e1fbd8f914ab3d5.bundle.min.js":993===e?"loop.4a16d82b8b5e3e00f25e.bundle.min.js":932===e?"loop-carousel.f8067ec0c24b628c786e.bundle.min.js":550===e?"ajax-pagination.55e86e9100bc317aeb0b.bundle.min.js":727===e?"mega-menu.8008698e9df584aa4337.bundle.min.js":87===e?"mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js":912===e?"menu-title-keyboard-handler.070cb9cb3c4f1f016388.bundle.min.js":33===e?"nested-carousel.776ab95ca4daa003622e.bundle.min.js":225===e?"taxonomy-filter.e839f2be32b7ea832b34.bundle.min.js":579===e?"off-canvas.41d355285c19e4440547.bundle.min.js":1===e?"contact-buttons.33ec3b540b7caec4d0f5.bundle.min.js":61===e?"contact-buttons-var-10.0dc9f4c9e85e7c4baa3a.bundle.min.js":249===e?"floating-bars-var-2.1a487dc027431fb485cd.bundle.min.js":440===e?"floating-bars-var-3.acd1ad79ebb515e353c9.bundle.min.js":187===e?"search.3db30c59360e14bb4448.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},a="elementor-pro:",__webpack_require__.l=(e,n,c,i)=>{if(r[e])r[e].push(n);else{var t,_;if(void 0!==c)for(var b=document.getElementsByTagName("script"),o=0;o<b.length;o++){var u=b[o];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+c){t=u;break}}t||(_=!0,(t=document.createElement("script")).charset="utf-8",t.timeout=120,__webpack_require__.nc&&t.setAttribute("nonce",__webpack_require__.nc),t.setAttribute("data-webpack",a+c),t.src=e),r[e]=[n];var onScriptComplete=(a,n)=>{t.onerror=t.onload=null,clearTimeout(d);var c=r[e];if(delete r[e],t.parentNode&&t.parentNode.removeChild(t),c&&c.forEach((e=>e(n))),a)return a(n)},d=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=onScriptComplete.bind(null,t.onerror),t.onload=onScriptComplete.bind(null,t.onload),_&&document.head.appendChild(t)}},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=a[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={978:0};__webpack_require__.f.j=(r,a)=>{var n=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==n)if(n)a.push(n[2]);else if(978!=r){var c=new Promise(((a,c)=>n=e[r]=[a,c]));a.push(n[2]=c);var i=__webpack_require__.p+__webpack_require__.u(r),t=new Error;__webpack_require__.l(i,(a=>{if(__webpack_require__.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var c=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;t.message="Loading chunk "+r+" failed.\n("+c+": "+i+")",t.name="ChunkLoadError",t.type=c,t.request=i,n[1](t)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,a)=>{var n,c,[i,t,_]=a,b=0;if(i.some((r=>0!==e[r]))){for(n in t)__webpack_require__.o(t,n)&&(__webpack_require__.m[n]=t[n]);if(_)var o=_(__webpack_require__)}for(r&&r(a);b<i.length;b++)c=i[b],__webpack_require__.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return __webpack_require__.O(o)},r=self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();