(function($){
$(document).ready(function(){
$('.wpcf7-form').each(function(){
$this=$(this);
var form_id=$this.find('input[name="_wpcf7"]').val();
var date_id=$this.find('.bf-form-input-date').attr('id');
var date_data=$this.find('.bf-form-input-date').attr('date-data');
if(typeof date_data!=="undefined"){
date_data=JSON.parse(date_data);
if(date_data.bf_enable==true){
var time_id=$this.find('.bf-form-input-time').attr('id');
var time_data=$this.find('.bf-form-input-time').attr('time-data');
var selectedDates=new Date();
var recent_date=''+selectedDates.getFullYear()+'-'+('0' + (selectedDates.getMonth()+1)).slice(-2)+'-'+('0' + (selectedDates.getDate())).slice(-2)+'';
var store_data=date_data.store_data;
if(typeof store_data==="undefined"||store_data==false){
store_data='';
}
var data_pickr={
enableTime: false,
inline: true,
dateFormat: "Y-m-d",
locale: {
"firstDayOfWeek": 1 
},
mode: date_data.date_mode_front,
minDate: "today",
disable:[
function(date){
return (
date.getDay()==date_data.disable_day_0 ||
date.getDay()==date_data.disable_day_1 ||
date.getDay()==date_data.disable_day_2 ||
date.getDay()==date_data.disable_day_3 ||
date.getDay()==date_data.disable_day_4 ||
date.getDay()==date_data.disable_day_5 ||
date.getDay()==date_data.disable_day_6 
);
},
],
onChange: function(selectedDates, dateStr, instance){
day_base_timepicker($this, dateStr, store_data, time_data, time_id);
$('#'+date_id).trigger('keyup');
},
}
if(date_data.disabled_start_date!=''){
var disabled_start_date=date_data.disabled_start_date;
var disabled_end_date=date_data.disabled_end_date;
data_pickr.disable.push({ from: disabled_start_date, to: disabled_end_date });
}
if(date_data.disabled_specific_date){
var disabled_specific_date=date_data.disabled_specific_date;
data_pickr.disable=$.merge(disabled_specific_date, data_pickr.disable);
}
if(date_data.bf_allowed_date=='range'){
if(date_data.min_date!=''){
data_pickr.minDate=date_data.min_date;
}else{
data_pickr.minDate='today';
}
if(date_data.max_date!=''){
data_pickr.maxDate=date_data.max_date;
}else{
data_pickr.maxDate='';
}}else if(date_data.bf_allowed_date=='specific'){
data_pickr.enable=date_data.allowed_specific_date
}
$("#"+date_id).flatpickr(data_pickr);
day_base_timepicker($this, recent_date, store_data, time_data, time_id);
if(typeof date_data.bf_woo!=='undefined'&&date_data.bf_woo=='1'){
document.addEventListener('wpcf7mailsent', function (event){
if(event.detail.status=='mail_sent'){
var booking_date=jQuery("#"+date_id).val();
var booking_time=jQuery("#"+time_id).val();
var $product=[];
if(date_data.bf_product=='exist'){
var data={
action: 'uacf7_bf_ajax_add_to_cart_product',
bf_product: date_data.bf_product,
product_id: date_data.bf_product_id,
booking_date: booking_date,
booking_time: booking_time,
};}else if(date_data.bf_product=='custom'){
var data={
action: 'uacf7_bf_ajax_add_to_cart_product',
bf_product: date_data.bf_product,
product_name: date_data.bf_product_name,
product_price: date_data.bf_product_price,
booking_date: booking_date,
booking_time: booking_time,
};}
jQuery.ajax({
url: bfcf7_pro_object.ajaxurl,
type: 'post',
data: data,
success: function (data){
location.href=bfcf7_pro_object.checkout_page;
},
error: function (jqXHR, exception){
var error_msg='';
if(jqXHR.status===0){
var error_msg='Not connect.\n Verify Network.';
}else if(jqXHR.status==404){
var error_msg='Requested page not found. [404]';
}else if(jqXHR.status==500){
var error_msg='Internal Server Error [500].';
}else if(exception==='parsererror'){
var error_msg='Requested JSON parse failed.';
}else if(exception==='timeout'){
var error_msg='Time out error.';
}else if(exception==='abort'){
var error_msg='Ajax request aborted.';
}else{
var error_msg='Uncaught Error.\n' + jqXHR.responseText;
}
alert(error_msg);
}});
}}, false);
};}}
});
function day_base_timepicker($this, dateStr, store_data, time_data, time_id){
time_data=JSON.parse(time_data);
var selectedDates=new Date(dateStr);
var min_time=time_data.min_time;
var max_time=time_data.max_time;
var disable_time_text=[];
if(typeof store_data==="undefined"||store_data==false){
store_data='';
}else{
store_data=JSON.parse(store_data);
}
var disable_time=store_data[dateStr];
if(typeof disable_time!=="undefined"&&disable_time.length > 0&&disable_time!=false){
disable_time_text=disable_time;
disable_time_text.push([time_data.from_dis_time , time_data.to_dis_time ]);
}else{
disable_time_text.push([time_data.from_dis_time , time_data.to_dis_time ]);
}
if(time_data.bf_allowed_time=='day'){
if(time_data.time_day_1==selectedDates.getDay()&&selectedDates.getDay()!=0){ min_time=time_data.min_day_time; max_time=time_data.max_day_time;}
if(time_data.time_day_2==selectedDates.getDay()&&selectedDates.getDay()!=0){  min_time=time_data.min_day_time; max_time=time_data.max_day_time;}
if(time_data.time_day_3==selectedDates.getDay()&&selectedDates.getDay()!=0){ min_time=time_data.min_day_time; max_time=time_data.max_day_time;}
if(time_data.time_day_4==selectedDates.getDay()&&selectedDates.getDay()!=0){ min_time=time_data.min_day_time; max_time=time_data.max_day_time;}
if(time_data.time_day_5==selectedDates.getDay()&&selectedDates.getDay()!=0){ min_time=time_data.min_day_time; max_time=time_data.max_day_time;}
if(time_data.time_day_6==selectedDates.getDay()&&selectedDates.getDay()!=0){ min_time=time_data.min_day_time; max_time=time_data.max_day_time;}
if(time_data.time_day_0==selectedDates.getDay()&&selectedDates.getDay()==0){ min_time=time_data.min_day_time; max_time=time_data.max_day_time;}}else if(time_data.bf_allowed_time=='specific'){
var specific_date=time_data.specific_date_time.split(', ');
if($.inArray(dateStr, specific_date)!='-1'){
min_time=time_data.min_day_time; max_time=time_data.max_day_time;
}}
var timepicker={
appendTo: '#'+time_id,
className: "bf-time-picker",
disableTextInput: true,
minTime: min_time,
maxTime: max_time,
timeFormat: time_data.time_format_front,
disableTimeRanges: disable_time_text,
};
if(time_data.time_one_step!=''&&time_data.time_two_step!=''){
timepicker.step=function(i){
return (i%2) ? time_data.time_one_step:time_data.time_two_step;
}}else if(time_data.time_one_step!=''&&time_data.time_two_step==''){
timepicker.step=time_data.time_one_step;
}
$('#'+time_id).attr('data-time-min', time_data.min_time);
$('#'+time_id).attr('data-time-max', time_data.max_time);
$('#'+time_id).parent().find('.bf-time-picker').remove();
$('#'+time_id).timepicker(timepicker);
$('#'+time_id).trigger("click");
}});
})(jQuery);
(function(e,n){n(document).on("click",".content-collapse-wrap .btn-read-more-wrap",(function(e){e.preventDefault();var o=n(this).closest(".content-collapse-wrap");o.hasClass("opened")?o.removeClass("opened"):o.addClass("opened")}))}).apply(this,[window.theme,jQuery]);
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,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";window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===SR7.A.bubblemorph&&(SR7.A.bubblemorph={style:".tp-bubblemorph {background: none transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; overflow: hidden !important;}",getModuleBasics:(t={},e)=>({u:"compare"==e?void 0:t.u??t.enable??!0}),getLayerBasics:(t={},e)=>({u:"compare"==e?void 0:t.u??t.enable??!0,s:{m:t?.s?.m??_tpt.DNTMtoArr(t?.settings?.maxmorphs??6),sX:t?.s?.sX??_tpt.DNTMtoArr(t?.settings?.speedx??.25),sY:t?.s?.sY??_tpt.DNTMtoArr(t?.settings?.speedy??1),bX:t?.s?.bX??_tpt.DNTMtoArr(t?.settings?.bufferx??0),bY:t?.s?.bY??_tpt.DNTMtoArr(t?.settings?.buffery??0)},shd:{s:t?.shd?.s??_tpt.DNTMtoArr(t?.shadow?.strength??0),c:t?.shd?.c??_tpt.DNTMtoArr(t?.shadow?.color??"rgba(0, 0, 0, 0.35)"),oX:t?.shd?.oX??_tpt.DNTMtoArr(t?.shadow?.offsetx??0),oY:t?.shd?.oY??_tpt.DNTMtoArr(t?.shadow?.offsety??0)},b:{s:t?.b?.s??_tpt.DNTMtoArr(t?.border?.size??0),c:t?.b?.c??_tpt.DNTMtoArr(t?.border?.color??"#000000")}}),init:t=>{void 0===SR7.A.bubblemorphcss&&(_tpt.injectCssJs(SR7.A.bubblemorph.style,void 0,void 0,"bubblemorph_global_styles"),SR7.A.bubblemorphcss=!0),SR7.A.bubblemorph.listeners.init(t)},listeners:{init:t=>{_tpt.resizeObserver.observe((t=>{SR7.A.bubblemorph.resized(t)}),19,t),SR7.A.bubblemorph.listenersAdded||(document.addEventListener("sr.layer.action",(function(t){if("bubblemorph"!==t.layersettings?.subtype||!t.layersettings?.addOns?.bubblemorph?.u)return;let e=t.c.addOns.bubblemorph;switch(t.eventtype){case"enterstage":e.bubble||SR7.A.bubblemorph.createBubbles(t.layerid),e.bubble&&e.bubble.paused&&e.bubble.screen&&e.bubble.screen.resize&&SR7.A.bubblemorph.playBubbles(t.id,t.layerid);break;case"leftstage":e.bubble&&SR7.A.bubblemorph.pauseBubbles(t.id,t.layerid,!1)}})),SR7.A.bubblemorph.listenersAdded=!0)}},resized:t=>{if(SR7.A?.bubblemorph?.bubbles?.[t])for(let e in SR7.A.bubblemorph.bubbles[t])_tpt.hop(SR7.A.bubblemorph.bubbles[t],e)&&SR7.A.bubblemorph.bubbles[t][e]&&requestAnimationFrame((()=>{SR7.A.bubblemorph.createBubbles(e)}))},toggle:(t,e)=>{const s=SR7.M[t];for(let e in SR7.A.bubblemorph.bubbles[t])_tpt.hop(SR7.A.bubblemorph.bubbles[t],e)&&SR7.A.bubblemorph.bubbles[t][e]&&SR7.A.bubblemorph[(s.states.inViewPort?"play":"pause")+"Bubbles"](t,e,!0)},prepareLayer:(t,e,s)=>{const i=e?.addOns?.bubblemorph;if("bubblemorph"!==e?.subtype||!i?.u)return;let b=SR7.M[t].c.layers[s];b.addOns??={},b.addOns.bubblemorph??={},e.addOns.bubblemorph=SR7.A.bubblemorph.getLayerBasics(i,"normalize"),b.addOns.bubblemorph.canvas=new SR7.F.canvas({wrap:b.el,width:"100%",height:"100%",color:e.bg?.color??"transparent",ctx:"2d"}),b.el.appendChild(b.addOns.bubblemorph.canvas.canvas)},createBubbles:t=>{const{id:e,layer:s,c:i}=SR7.F.getLayer(t),b=s.addOns?.bubblemorph,h=i.addOns.bubblemorph;b?.u&&(h.bubble&&SR7.A.bubblemorph.killBubbles(e,t,h),h.bubble=function(t,e,s,i,b,h,l,r,o,a,n,u,d,p,c){var m,g={screen:{elem:null,callback:null,ctx:null,width:0,height:0,left:0,top:0,init:function(t,e){return this.elem=s.canvas,this.callback=t||null,"CANVAS"==this.elem.tagName&&(this.ctx=s.ctx),this.elem.onselectstart=function(){return!1},this.elem.ondrag=function(){return!1},e&&this.resize(),this},resize:function(){var s=this.elem;for(this.width=t,this.height=e,this.left=0,this.top=0;null!=s;s=s.offsetParent)this.left+=s.offsetLeft,this.top+=s.offsetTop;this.ctx&&(this.elem.width=this.width,this.elem.height=this.height),m&&(m.width=this.width,m.height=this.height),this.callback&&this.callback()},destroy:function(){for(let t in this)this.hasOwnProperty(t)&&delete this[t]}}},f=function(t,e){this.x=t,this.y=e,this.magnitude=t*t+e*e,this.computed=0,this.force=0};f.prototype.add=function(t){return new f(this.x+t.x,this.y+t.y)};class y{constructor(t){const e=.1,s=1.5,i=()=>Math.random()>.5?1:-1;this.vel=new f(i()*(.2+Math.random()*d),i()*(.2+Math.random()*p)),this.pos=new f(.2*t.width+Math.random()*t.width*.6,.2*t.height+Math.random()*t.height*.6),this.size=t.wh/Math.min(30,15/c)+(Math.random()*(s-e)+e)*(t.wh/Math.min(30,15/c)),this.width=t.width,this.height=t.height}move(){const t=(t,e,s,i)=>t>=s-e-i?{newPosition:s-e-i,velocityFactor:-1}:t<=e+i?{newPosition:e+i,velocityFactor:-1}:{newPosition:t,velocityFactor:1},e=t(this.pos.x,this.size,this.width,n),s=t(this.pos.y,this.size,this.height,u);this.vel.x*=e.velocityFactor,this.vel.y*=s.velocityFactor,this.pos.x=e.newPosition,this.pos.y=s.newPosition,this.pos=this.pos.add(this.vel)}destroy(){Object.keys(this).forEach((t=>delete this[t]))}}class R{constructor(t,e,s){this.width=t,this.height=e,this.wh=Math.min(t,e),this.step=5,this.sx=Math.floor(t/this.step),this.sy=Math.floor(e/this.step),this.paint=!1,this.metaFill=S(t,e),this.iter=0,this.sign=1,this.grid=Array((this.sx+2)*(this.sy+2)).fill(null).map(((t,e)=>new f(e%(this.sx+2)*this.step,Math.floor(e/(this.sx+2))*this.step))),this.balls=Array(s).fill(null).map((()=>new y(this))),this.mscases=[0,3,0,3,1,3,0,3,2,2,0,2,1,1,0],this.plx=[0,0,1,0,1,1,1,1,1,1,0,1,0,0,0,0],this.ply=[0,0,0,0,0,0,1,0,0,1,1,1,0,1,0,1],this.ix=[1,0,-1,0,0,1,0,-1,-1,0,1,0,0,1,1,0,0,0,1,1]}destroy(){this.balls.forEach((t=>Object.keys(t).forEach((e=>delete t[e])))),Object.keys(this).forEach((t=>delete this[t]))}computeForce(t,e,s){var i,b=s||t+e*(this.sx+2);if(0===t||0===e||t===this.sx||e===this.sy)i=.6*this.sign;else{i=0;var h=this.grid[b];if(!h)return;for(var l,r=0;l=this.balls[r++];)i+=l.size*l.size/(-2*h.x*l.pos.x-2*h.y*l.pos.y+l.pos.magnitude+h.magnitude);i*=this.sign}if(this.grid[b])return this.grid[b].force=i,i}marchingSquares([t,e,s]){const i=t+e*(this.sx+2);if(!this.grid[i]||this.grid[i].computed===this.iter)return!1;let b,h=0,l=!1;for(let s=0;s<4;s++){const i=t+this.ix[s+12]+(e+this.ix[s+16])*(this.sx+2);if(!this.grid[i]){l=!0;break}let b=this.grid[i].force;(b>0&&this.sign<0||b<0&&this.sign>0||!b)&&(b=this.computeForce(t+this.ix[s+12],e+this.ix[s+16],i)),Math.abs(b)>1&&(h+=1<<s)}if(l)return;if(15===h)return[t,e-1,!1];if(5===h)b=2===s?3:1;else if(10===h)b=3===s?0:2;else{if(b=this.mscases[h],!this.grid[i])return;this.grid[i].computed=this.iter}const r=this.grid[t+this.plx[4*b+2]+(e+this.ply[4*b+2])*(this.sx+2)].force,o=this.grid[t+this.plx[4*b+3]+(e+this.ply[4*b+3])*(this.sx+2)].force,a=this.step/(Math.abs(Math.abs(r)-1)/Math.abs(Math.abs(o)-1)+1);return x.lineTo(this.grid[t+this.plx[4*b]+(e+this.ply[4*b])*(this.sx+2)].x+this.ix[b]*a,this.grid[t+this.plx[4*b+1]+(e+this.ply[4*b+1])*(this.sx+2)].y+this.ix[b+4]*a),this.paint=!0,[t+this.ix[b+4],e+this.ix[b+8],b]}renderMetaballs(){this.balls.forEach((t=>t.move())),this.iter++,this.sign=-this.sign,this.paint=!1,x.fillStyle=this.metaFill,b&&(x.shadowBlur=b,x.shadowColor=h,x.shadowOffsetX=l,x.shadowOffsetY=r),a&&(x.strokeStyle=o,x.lineWidth=a),x.beginPath(),this.balls.forEach((t=>{let e=[Math.round(t.pos.x/this.step),Math.round(t.pos.y/this.step),!1];do{e=this.marchingSquares(e)}while(e);this.paint&&(x.fill(),x.closePath(),a&&x.stroke(),x.beginPath(),this.paint=!1)}))}}let S=(t,e)=>(s.width!==t&&(s.width=t),s.height!==e&&(s.height=e),s.fillColor());var w=function(){_&&!_.paused&&(x.clearRect(0,0,A.width,A.height),m.renderMetaballs(),requestAnimationFrame(w))},A=g.screen.init(null,!0),x=A.ctx,M=function(){m&&m.destroy(),m=new R(A.width,A.height,i)};function v(){_.paused=!0,cancelAnimationFrame(w),x.clearRect(0,0,A.width,A.height),m&&m.destroy(),A.destroy(),m=null,g=null,f=null,y=null,R=null,w=null,A=null,_=null,M=null,S=null,x=null}var _={play:w,paused:!0,screen:A,inited:M,started:!1,destroy:v,height:e,width:t};return _}(i.cw,i.ch,h.canvas,SR7.gVal(b.s.m,e,0),SR7.gVal(b.shd.s,e,0),SR7.gVal(b.shd.c,e,0),SR7.gVal(b.shd.oX,e,0),SR7.gVal(b.shd.oY,e,0),SR7.gVal(b.b.c,e,0),SR7.gVal(b.b.s,e,0),SR7.gVal(b.s.bX,e,0),SR7.gVal(b.s.bY,e,0),SR7.gVal(b.s.sX,e,0),SR7.gVal(b.s.sY,e,0),SR7.M[e].MP),h.bubblesplaying&&SR7.A.bubblemorph.playBubbles(e,t),SR7.A.bubblemorph.bubbles??={},SR7.A.bubblemorph.bubbles[e]??={},SR7.A.bubblemorph.bubbles[e][t]=!0)},killBubbles:(t,e,s)=>{delete SR7.A.bubblemorph.bubbles[t][e],s.bubble.destroy(),delete s.bubble},playBubbles:(t,e)=>{let s=SR7.M[t].c.layers[e].addOns.bubblemorph;SR7.A.bubblemorph.bubbles[t][e]=!0,s.bubble.paused=!1,s.bubble.screen.resize(),s.bubble.started||(s.bubble.started=!0,s.bubble.inited()),s.bubblesplaying=!0,s.bubble.play()},pauseBubbles:(t,e,s)=>{let i=SR7.M[t].c.layers[e].addOns.bubblemorph;SR7.A.bubblemorph.bubbles[t][e]=s,i.bubble.paused=!0,i.bubblesplaying=!1}},_tpt.R??={},_tpt.R.bubblemorph=_tpt.extend?_tpt.extend(_tpt.R.bubblemorph,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7BubbleMorphReady")))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.explodinglayers)return;let e={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.explodinglayers={style:".sr-explodinglayers-inner {width:auto;height:auto;position:relative;display:inherit;}.sr-explodinglayers>canvas { width:100%;height:100%; top:0px; left:0px; position:absolute}",getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),getLayerBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),getFrameBasics:(a={},s)=>{let n="normalize"==s,r={u:"compare"==s?void 0:a.u??a.use??!n,color:n?a.color:_tpt.gradient.convert(a.color??"#000000"),density:e[n?"pI":"k"](a.density??1),direction:a.direction??"left",padding:e[n?"pI":"k"](a.padding??150),power:e[n?"pI":"k"](a.power??2),randomsize:a.randomsize??!1,randomspeed:a.randomspeed??!1,size:e[n?"pI":"k"](a.size??5),speed:e[n?"pI":"k"](a.speed??1),style:a.style??"fill",type:a.type??"circle"};return n&&(r.padding=parseInt(r.padding),r.size=t(r.randomsize,r.size),r.speed=t(r.randomspeed,r.speed)),r},init:e=>{void 0===SR7.A.explodinglayers.css&&(_tpt.injectCssJs(SR7.A.explodinglayers.style,void 0,void 0,"explodinglayers_global_styles"),SR7.A.explodinglayers.css=!0),SR7.A.explodinglayers.listeners.init(e)},listeners:{init:e=>{SR7.A.explodinglayers.listenersAdded||(document.addEventListener("sr.layer.action",(function(e){if(!e.c.addOns?.explodinglayers||"object"==typeof e.frame)return;let t=e.c.addOns.explodinglayers;switch(e.eventtype){case"enterstage":case"framestarted":case"leavestage":if(t.settings=SR7.A.explodinglayers.build(t,e.layersettings,e.scene,e.frame),!t.settings)return;t.destroy="in"==e.scene&&e.frame>1||"in"!==e.scene,t.active=!0,t.state=200,t.clip=t.destroy?0:100;let n=t.settings.anim;c(e.c);let r=_tpt.gsap.to(t,n.d/1e3,{ease:n.e,clip:t.destroy?100:0}),l=_tpt.gsap.to(t,n.d/1e3*(t.destroy?1:1.8),{ease:n.e,state:0});e.c.tl.in.TL.add(r,n.t/1e3+(t.destroy?0:n.d/1e3)),e.c.tl.in.TL.add(l,n.t/1e3),a(e.c,e.scene),t.explodeStarted=!1,r.eventCallback("onUpdate",a,[e.c]),l.eventCallback("onUpdate",(function(e){e.explodeStarted||(s(e),e.explodeStarted=!0)}),[t])}})),SR7.A.explodinglayers.listenersAdded=!0)}},getLayerWraps:(e,t)=>{const a=SR7.M[e];if(""+(a.settings?.addOns?.explodinglayers?.u??!1)!="false"&&!1!==t.addOns?.explodinglayers?.u)return{innerWrap:{use:!0,class:"sr-explodinglayers-inner"},wrap:{use:!0,class:"sr-explodinglayers"}}},prepareLayer:(e,t,a)=>{const s=t?.addOns?.explodinglayers;if(!s?.u)return;let n=SR7.M[e].c.layers[a];n.announce??={},n.announce.update=!0,n.addOns??={},n.addOns.explodinglayers??={canvas:new SR7.F.canvas({wrap:n.addonWrap,width:"100%",height:"100%",ctx:"2d"})},n.addOns.explodinglayers.canvas.canvas.style.pointerEevents="none";for(let e in t.tl)if(t.tl[e]?.content?.all){let a=t.tl[e].content.all;for(let s in a)a[s]?.addOns?.explodinglayers&&SR7.A.explodinglayers.build(n.addOns.explodinglayers,t,e,s)}},build:(e,t,a="in",s=1)=>{if(e.cache??={},e.cache[a]??={},void 0===e.cache[a][s]){let n=t.tl[a]?.content?.all?.[s];if(!n)return;{let t=n?.addOns?.explodinglayers??!1;if(!t)return;e.cache[a][s]??=SR7.A.explodinglayers.getFrameBasics(t,"normalize"),d(e.cache[a][s]),e.cache[a][s].anim={d:n.d,t:n.t,e:n.e,ed:.8*n.d},("in"!==a||s>1)&&(n.o=1)}}return e.cache[a][s]}};const t=(e,t)=>{if(!e)return()=>t;let a=Math.max(Math.round(.5*t),1),s=Math.round(2*t);return()=>Math.floor(Math.random()*s)+a},a=(e,t)=>{let a=e.addOns.explodinglayers,s=a.settings;e.el.style.clipPath="inset("+("top"==s.direction?a.clip:0)+"% "+("right"==s.direction?a.clip:0)+"% "+("bottom"==s.direction?a.clip:0)+"% "+("left"==s.direction?a.clip:0)+"%)"},s=e=>{e.active&&(i(e),n(e),r(e))},n=e=>{for(var t,a=0;a<e.particles.length;a++)(t=e.particles[a]).life>t.death?(!1===e.total&&(e.total=e.particles.length),e.particles.splice(a,1)):(t.x+=t.speed,t.y=e.settings.power*Math.sin(t.counter*t.increase),t.life++,t.counter+=-1);e.particles.length>0&&requestAnimationFrame((function(){s(e)}))},r=e=>{var t;e.canvas.ctx.clearRect(0,0,e.canvas.canvas.width,e.canvas.canvas.height);for(var a=0;a<e.particles.length;a++)(t=e.particles[a]).life<t.death&&(e.canvas.ctx.translate(t.startX,t.startY),e.canvas.ctx.rotate(t.angle*Math.PI/180),e.canvas.ctx.globalAlpha=e.destroy?1-t.life/t.death:t.life/t.death,e.canvas.ctx.drawImage(e.settings.canvas,Math.round(t.x),Math.round(t.y),Math.round(t.size),Math.round(t.size)),e.canvas.ctx.globalAlpha=1,e.canvas.ctx.rotate(-t.angle*Math.PI/180),e.canvas.ctx.translate(-t.startX,-t.startY))},l=(e,t)=>{let a=e.settings;var s=.06*a.anim.ed;let n=a.speed();var r;e.particles.push({startX:t.x,startY:t.y,x:e.destroy?0:n*-s,y:0,angle:(r=360,Math.random()*r-r/2),counter:s,increase:2*Math.PI/100,life:0,death:s,speed:n,size:a.size()})},c=e=>{let t=e.addOns.explodinglayers,a=t.settings;t.particles=[],t.total=!1,t.horizontal="left"==a.direction||"right"==a.direction,t.lastProgress=1,t.canvas.attached||(e.addonWrap.appendChild(t.canvas.canvas),t.canvas.attached=!0),t.canvas.canvas.width=e.cw+a.padding,t.canvas.canvas.height=e.ch+a.padding,t.canvas.canvas.style.width=e.cw+a.padding+"px",t.canvas.canvas.style.height=e.ch+a.padding+"px",t.canvas.canvas.style.top=0-a.padding/2+"px",t.canvas.canvas.style.left=0-a.padding/2+"px"},i=e=>{let t=e.settings;if(e.state<100)return;let a=(e.state-100)/100,s=e.canvas.canvas.width-t.padding,n=e.canvas.canvas.height-t.padding;var r=e.lastProgress-a;e.lastProgress=a;let c=t.padding/2,i=t.padding/2;e.horizontal?c+="left"===(e.destroy?o[t.direction]:t.direction)?s*a:s*(1-a):i+="top"===(e.destroy?o[t.direction]:t.direction)?n*a:n*(1-a);var d=Math.floor(t.density*(100*r+1));if(d>0)for(;d--;)l(e,{x:c+(e.horizontal?0:s*Math.random()),y:i+(e.horizontal?n*Math.random():0)})},d=e=>{let t,a="";"solid"==e.color.type?t=e.color.string:(t=_tpt.gradient.getSVGReference(e.color),a=_tpt.gradient.getSVGDef(t),""!==a&&(a="<defs>"+a.outerHTML+"</defs>"));let s,n,r='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">'+a;"circle"!==e.type?(e.type=p(e.type),s="<path ",n="></path>"):(s='<circle cx="12" cy="12" r="12" ',n=" />"),"fill"===e.style?r+=s+'fill="'+t+'" d="'+e.type+'"'+n:r+=s+'fill="transparent" d="'+e.type+'" stroke="'+t+'" stroke-width="1"'+n,r+="</svg>";let l=new Image;e.canvas=document.createElement("canvas"),e.ctx=e.canvas.getContext("2d"),e.canvas.width=e.canvas.height=24,l.onload=function(){e.ctx.drawImage(this,0,0)},l.src="data:image/svg+xml;base64,"+btoa(r)},o={top:"bottom",bottom:"top",left:"right",right:"left"},p=e=>{switch(_tpt.trim(e)){case"rectangle":return"M4 4h16v16H4z";case"triangle":return"M12 4L4 20L20 20z";case"polygon":return"M5 4 L17 4 L22 12 L17 20 L8 20 L3 12 L8 4 Z";case"star":return"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";case"heart_1":return"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";case"star_2":return"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";case"settings":return"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";case"arrow_1":return"M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z";case"bullseye":return"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";case"plus_1":return"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";case"triangle_2":return"M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z";case"smilie":return"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";case"star_3":return"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";case"heart_2":return"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";case"plus_2":return"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z";case"close":return"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";case"arrow_2":return"M22 12l-4-4v3H3v2h15v3z";case"dollar":return"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";case"sun_1":return"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";case"sun_2":return"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";case"snowflake":return"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";case"party":return"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";case"flower_1":return"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";case"flower_2":return"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";case"fire":return"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";case"pizza":return"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"}return _tpt.trim(e)};_tpt.R??={},_tpt.R.explodinglayers=_tpt.extend?_tpt.extend(_tpt.R.explodinglayers,{status:2,version:"6.7.1"}):{status:2,version:"6.7.1"},window.dispatchEvent(new CustomEvent("SR7explodinglayersReady"))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.filmstrip)return;SR7.A.filmstrip={getModuleBasics:(e={},i)=>({u:"compare"==i?void 0:e.u??e.enable??!0}),getLayerBasics:(e={},i)=>{let t="normalize"===i,s={u:"compare"==i?void 0:e.u??e.enable??!0,m:e.m??!(e.mobile??1),dir:e.dir??e.direction??"top-to-bottom",src:e.src??[],speed:e.speed??("migrate"==i?_tpt.DNTMtoArr(e.times??40,40):[40,40,40,40,40])};if("migrate"==i&&e?.settings&&e?.settings?.length>0)try{for(let i of e.settings)s.src.push({src:i.url,lib:"wpimage"==i.type?"medialibrary":"objectlibrary",lib_id:i.ids,lib_size:i.size})}catch(i){console.log(e.settings)}return t&&(s.incr=s.dir.includes("right-to-left")||s.dir.includes("bottom-to-top")?-1:1,s.fitTo=s.dir.includes("right")?"height":"width"),s},init:e=>{SR7.M[e].settings.addOns.filmstrip.u&&(SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.filmstrip??={},SR7.A.filmstrip.listeners.init(e))},prepareLayer:(e,i,t)=>{if(""+(SR7.M[e].settings?.addOns?.filmstrip?.u??!1)=="false")return;if(!i.addOns?.filmstrip?.u)return;let{c:s}=SR7.F.getLayer(t);const a=[];s.addOns??={},s.addOns.filmstrip??={settings:SR7.A.filmstrip.getLayerBasics(i.addOns.filmstrip,"normalize")},s.addOns.filmstrip.images=Array(s.addOns.filmstrip.settings.src.length);let r=0;for(let i of s.addOns.filmstrip.settings.src)a.push(new Promise((a=>{_tpt.registerImage(i.src,1,(function(e){requestAnimationFrame((function(){try{e.params._.images[e.params.nr]=e.image}catch(e){console.log(e)}a()}))}),"filmstrip_"+e+"_"+t,{nr:r,_:s.addOns.filmstrip})}))),r++;return a},postProcessLayer:async(e,i,t,s)=>{"slidebg"===t.subtype&&i.addOns.filmstrip?.u&&null!=t.canvas&&(t.canvas.beforeDraw??=[],t.canvas.beforeDraw.push(SR7.A.filmstrip.beforeCanvasDraw))},beforeCanvasDraw:(e,i)=>({core:!1,post:i.after,pre:i.pre}),listeners:{init:e=>{let i=SR7.A.filmstrip;i.listenersAdded?.[e]||(i.onFire??={},i.onFire[e]??={},SR7.M[e].dims.fs??={},SR7.M[e].dims.fs.ch=SR7.M[e].dims.CFC.ch,SR7.M[e].dims.fs.cw=SR7.M[e].dims.CFC.cw,i.listenersAdded||(SR7.F.module.listeners.init(e),_tpt.resizeObserver.observe((e=>{i.resize(e)}),50,e),document.addEventListener("sr.layer.action",(function(e){e.c?.addOns?.filmstrip&&("enterstage"==e.eventtype?(e.c.ignoreEnteredStage=!0,i.play(e.id,e.c,!0)):"enteredstage"==e.eventtype?e.c.ignoreEnteredStage?delete e.c.ignoreEnteredStage:i.play(e.id,e.c,!0):"leavestage"==e.eventtype&&i.pause(e.id,e.c))}))),i.listenersAdded??={},i.listenersAdded[e]=!0)}},toggle:(e,i)=>{let t=SR7.A.filmstrip;const s=SR7.M[e];if(t.onFire)for(let a in t.onFire[e])_tpt.hop(t.onFire[e],a)&&(s.states.inViewPort?t.play(e,s.c.layers[a],i):t.pause(e,s.c.layers[a],!1))},play:(e,i,t)=>{let s=SR7.A.filmstrip,a=i?.addOns?.filmstrip??void 0;a&&(a.paused=!1,s.onFire[e]??={},s.onFire[e][i.el.id]=!0,SR7.A.filmstrip.slideImages(i,t))},pause:(e,i,t)=>{(i?.addOns?.filmstrip??void 0)&&(i.addOns.filmstrip.paused=!0)},resize:e=>{SR7.M[e].dims.CFC.ch==SR7.M[e].dims.fs.ch&&SR7.M[e].dims.CFC.cw==SR7.M[e].dims.fs.cw||(SR7.A.filmstrip.inResize=!0,clearTimeout(SR7.A.filmstrip.resizeTimer),SR7.M[e].dims.fs.ch=SR7.M[e].dims.CFC.ch,SR7.M[e].dims.fs.cw=SR7.M[e].dims.CFC.cw,SR7.A.filmstrip.resizeTimer=setTimeout((()=>{SR7.A.filmstrip.inResize=!1,SR7.A.filmstrip.toggle(e,!0)}),150))},slideImages:(e,i,t=0)=>{if(!e.addOns.filmstrip||e.addOns.filmstrip.paused||SR7.A.filmstrip.inResize)return;e.lastTime??=0;let s=t-e.lastTime;e.lastTime=t,e.canvas.ctx.clearRect(0,0,e.canvas.width,e.canvas.height);let a=e.addOns.filmstrip.settings;if(a.offset=a.incr*(5/SR7.gVal(a.speed,e.mid))*s,i||void 0===a.totalLength){a.totalLength=0;let i="width"===a.fitTo?e.canvas.canvas.height:e.canvas.canvas.width;e.addOns.filmstrip.images.forEach(((t,s)=>{t.scale="width"===a.fitTo?e.canvas.canvas.width/t.width:e.canvas.canvas.height/t.height,t.scaledWidth=t.width*t.scale,t.scaledHeight=t.height*t.scale,t.size="width"===a.fitTo?t.height*(e.canvas.canvas.width/t.width):t.width*(e.canvas.canvas.height/t.height),t.csize="width"===a.fitTo?e.canvas.canvas.height:e.canvas.canvas.width,t.pos=a.incr>0?i-t.size:a.totalLength,i=t.pos,a.totalLength+=t.size}))}e.addOns.filmstrip.images.forEach(((i,t)=>{i.pos+=a.offset,"width"===a.fitTo?e.canvas.ctx.drawImage(i,0,i.pos,i.scaledWidth,i.scaledHeight):e.canvas.ctx.drawImage(i,i.pos,0,i.scaledWidth,i.scaledHeight),a.incr>0&&i.pos>=a.totalLength-i.size?i.pos=i.pos-a.totalLength:a.incr<0&&i.pos<=0-a.totalLength+i.csize&&(i.pos=i.pos+a.totalLength)})),requestAnimationFrame((i=>SR7.A.filmstrip.slideImages(e,!1,i)))}},_tpt.R??={},_tpt.R.filmstrip=_tpt.extend?_tpt.extend(_tpt.R.filmstrip,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7DuotoneFiltersReady"))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.liquideffect)return;SR7.A.liquideffect={init:t=>(SR7.M[t].c.moduleListeners??={},SR7.M[t].c.moduleListeners.liquideffect??={},_tpt.scrollObserver.observe(SR7.M[t].c.module),SR7.A.liquideffect.listeners.init(t),["THREE","WEBGL"]),getModuleBasics:(t={},e)=>({u:"compare"==e?void 0:t.u??t.enable??!0}),getLayerBasics:(t={},e)=>{let a={u:"compare"==e?void 0:t.u??t.enable??!0,a:{u:t.a?.u??t.animation?.enable??!0,rz:t.a?.rz??t.animation?.rotation??0,sx:t.a?.sx??t.animation?.scalex??0,sy:t.a?.sy??t.animation?.scaley??0,spx:t.a?.spx??t.animation?.speedx??0,spy:t.a?.spy??t.animation?.speedy??0},map:{image:t.map?.image??"Ripple",c:t.map?.c??t.map?.custom??"",s:t.map?.s??t.map?.size??"Large",is:t.map?.is??t.map?.imagescale??120},tran:{u:t.tran?.u??t.transition?.enable??!1,d:t.tran?.d??t.transition?.duration??1e3,e:t.tran?.e??t.transition?.easing??"Power3.easeOut",spx:t.tran?.spx??t.transition?.speedx??2,spy:t.tran?.spy??t.transition?.speedy??100,rz:t.tran?.rz??t.transition?.rotation??0,sx:t.tran?.sx??t.transition?.scalex??2,sy:t.tran?.sy??t.transition?.scaley??1280,p:t.tran?.p??t.transition?.power??!1},inter:{u:t.inter?.u??t.interaction?.enable??!1,event:t.inter?.event??t.interaction?.event??"mousemove",d:t.inter?.d??t.interaction?.duration??500,e:t.inter?.e??t.interaction?.easing??"Power2.easeOut",spx:t.inter?.spx??t.interaction?.speedx??0,spy:t.inter?.spy??t.interaction?.speedy??0,rz:t.inter?.rz??t.interaction?.rotation??0,scx:t.inter?.scx??t.interaction?.scalex??2,scy:t.inter?.scy??t.interaction?.scaley??1280,dmobile:t.inter?.dmobile??t.interaction?.disablemobile??!1}};return"normalize"==e&&(a.map.image=a.map.image.toLowerCase(),a.map.s=a.map.s.toLowerCase()),a},prepareLayer:(t,e,a)=>{if(""+(SR7.M[t].settings?.addOns?.liquideffect?.u??!1)=="false")return;if(!e.addOns?.liquideffect?.u)return;let{c:i}=SR7.F.getLayer(a);const s=[],n=SR7.A.liquideffect;i.addOns??={},i.addOns.liquideffect??={},i.addOns.liquideffect.settings=n.getLayerBasics(e.addOns.liquideffect,"normalize");let r=i.addOns.liquideffect.settings;return r.P=r.map.image.includes("custom")?r.map.c:SR7.E.resources.liquidEffectURL+"public/textures/"+r.map.image+"_"+r.map.s+".jpg",s.push(new Promise((e=>{_tpt.registerImage(r.P,1,(function(t){try{n.textures??={},n.textures[t.params.lmapid]=t.image}catch(t){console.log(t)}e()}),"distortion_textures_"+r.map.image+"_"+t,{lmapid:r.P})}))),s},toggle:t=>{let e=SR7.A.liquideffect;const a=SR7.M[t];if(e.onFire)for(let i in e.onFire[t])_tpt.hop(e.onFire[t],i)&&(a.states.inViewPort?e.play(t,a.c.layers[i]):e.pause(t,a.c.layers[i],!1))},play:(t,e,a)=>{let i=SR7.A.liquideffect,s=e?.addOns?.liquideffect??void 0;s&&(s.paused=!1,i.onFire[t]??={},i.onFire[t][e.el.id]=!0,s.source.style.display="none",requestAnimationFrame((t=>{i.tick(e,t)})),s.settings.tran.u&&l(e),o.init(e,!0))},pause:(t,e,a)=>{let i=e?.addOns?.liquideffect??void 0;i&&(e.addOns.liquideffect.paused=!0,a&&i?.onFire?.[t]?.[e.el.id]&&delete i.onFire[t][e.el.id],o.init(e,!1))},listeners:{init:t=>{let e=SR7.A.liquideffect;e.listenersAdded?.[t]||(e.listenersAdded||(e.onFire??={},e.onFire[t]??={},document.addEventListener("sr.layer.action",(function(i){if(!i.c?.addOns?.liquideffect?.settings?.u)return;let s=i.c.addOns.liquideffect;"enterstage"==i.eventtype?(s.inAnimation=!0,s.source=i.c.aCanvas.canvas,requestAnimationFrame((()=>{e.build(i.id,i.c)}))):"enteredstage"==i.eventtype?(i.c.media&&"html5"==i.c.media.player.options.type&&i.c.media.startCanvas(i.c.canvas),s.inAnimation=!1,s.source=s.video?i.c.media.player.canvas.canvas:i.c.canvas.canvas,s.source.style.display="none",a(i.c)):"leftstage"==i.eventtype&&(requestAnimationFrame((()=>{n(t)})),e.pause(i.id,i.c,!0))}))),e.listenersAdded??={},e.listenersAdded[t]=!0)}},tick:(t,e)=>{t.lastTime||(t.lastTime=e);const a=e-t.lastTime;t.lastTime=e;let i=t.addOns.liquideffect;if(i.paused)return;const s=a/16.66;i.three.material.uniforms.aniSpeedX.value+=i.animatedProgress.axsp.value*s,i.three.material.uniforms.aniSpeedY.value+=i.animatedProgress.aysp.value*s,i.three.material.uniforms.rotation.value+=i.animatedProgress.arsp.value*s,SR7.A.liquideffect.sceneUpdate(t),requestAnimationFrame((e=>{SR7.A.liquideffect.tick(t,e)}))},sceneUpdate:e=>{let i=e.addOns.liquideffect;i&&i.three&&i.three.canvas&&i.three.camera&&(void 0!==i.three.lastDim&&i.three.lastDim.width===e.cw&&i.three.lastDim.height===e.ch||(i.width=e.cw,i.height=e.ch,a(e),t(i),i.three.lastDim={width:i.width,height:i.height}),(i.video||i.panzoom||i.inAnimation)&&(i.three.texture.needsUpdate=!0),i.three.camera.updateProjectionMatrix(),i.three.renderer.render(i.three.scene,i.three.camera))},build:(i,s)=>{let n=s.addOns.liquideffect,o=n.settings;n.three&&SR7.WEBGL.cleanThree(s.el,n,".sr7-liquid-canvas"),n.panzoom=s.canvas.pan,n.video=s.media,n.three=SR7.WEBGL.getCanvas({class:"sr7-liquid-canvas"}),s.el.appendChild(n.three.canvas),n.width=s.cw,n.height=s.ch,n.three.planeAspectRatio=16/9,n.three.fov=150,SR7.A.liquideffect.sceneUpdate(s),n.three.renderer=new THREE.WebGLRenderer({canvas:n.three.canvas,alpha:!0}),n.three.renderer.setClearColor(16777215,0),n.three.camera=new THREE.PerspectiveCamera(150,n.three.canvas.width/n.three.canvas.height,.1,1e3),n.three.camera.position.z=50,n.three.scene=new THREE.Scene;const{three:d}=n,{camera:l,scene:u}=d;d.CY=1/l.aspect,u.remove(d.light),u.add(d.light=new THREE.AmbientLight("#ffffff",1)),a(s),n.isLarge="large"==o.map.s,n.isCustom=(""+o.map.image).includes("custom map"),n.animatedProgress={axsp:{value:parseFloat(n.settings.a.spx).toFixed(2)/50*.01*(n.isLarge&&n.isCustom||!n.isLarge&&!n.isCustom?5:1.8)},aysp:{value:parseFloat(n.settings.a.spy).toFixed(2)/50*.01*(n.isLarge&&n.isCustom||!n.isLarge&&!n.isCustom?5:1.8)},arsp:{value:.01*parseFloat(n.settings.a.rz).toFixed(2)}},n.mouseAniTimer,n.tLStarted=!1;let p=r(n);p.image.value.needsUpdate=!0;const c={extensions:{derivatives:"#extension GL_OES_standard_derivatives:enable"},side:THREE.DoubleSide,uniforms:p,vertexShader:"varying vec2 vUv;void main(){vUv=uv;gl_Position=projectionMatrix * modelViewMatrix * vec4(position, 1.0);}",fragmentShader:"#if __VERSION__ < 130 \n#define TEXTURE2D TEXTURE2D \n#else \n#define TEXTURE2D texture \n#endif\n \n\t\t\t\t\tuniform float scalex;                    \n\t\t\t\t\tuniform float scaley;                    \n\t\t\t\t\tuniform float aniSpeedX;\n\t\t\t\t\tuniform float aniSpeedY;\n\t\t\t\t\tuniform float aniDistX;\n\t\t\t\t\tuniform float aniDistY;\n\t\t\t\t\tuniform float rotation;\n\t\t\t\t\tuniform sampler2D image;\n\t\t\t\t\tuniform sampler2D displacement;\n\t\t\t\t\tuniform vec4 resolution;\n\t\t\t\t\tvarying vec2 vUv;\n\t\t\t\t\tuniform float zoom;\n\n\t\t\t\t\tvec2 rotate(vec2 uv, float rotation){\n\t\t\t\t\t\tuv -=vec2(0.5); // Step 1: Translate to origin\n\t\t\t\t\t\tuv=vec2(\n\t\t\t\t\t\t\tcos(rotation) * uv.x - sin(rotation) * uv.y,\n\t\t\t\t\t\t\tsin(rotation) * uv.x + cos(rotation) * uv.y\n\t\t\t\t\t\t);\n\t\t\t\t\t\tuv +=vec2(0.5); // Step 3: Translate back to original position\n\t\t\t\t\t\treturn uv;\n\t\t\t\t\t}\n\n\t\t\t\t\tvec2 scaleUV(vec2 uv, vec2 scale){\n\t\t\t\t\t\tuv -=vec2(0.5); \n\t\t\t\t\t\tuv /=scale; \n\t\t\t\t\t\tuv +=vec2(0.5); \n\t\t\t\t\t\treturn uv;\n\t\t\t\t\t}\n\n\t\t\t\t\tvec2 upscaleUV(vec2 uv, vec2 scale){\n\t\t\t\t\t\tuv -=vec2(0.5); \n\t\t\t\t\t\tuv *=scale; \n\t\t\t\t\t\tuv +=vec2(0.5); \n\t\t\t\t\t\treturn uv;\n\t\t\t\t\t}\n\n\t\t\t\t\tvoid main(){\n\t\t\t\t\t\tvec2 newUV=(vUv - vec2(0.5)) * resolution.zw + vec2(0.5);                                                                   \n\t\t\t\t\t\tvec2 centeredUv=newUV - vec2(0.5, 0.5);                        \n\t\t\t\t\t\tcenteredUv=centeredUv * vec2(scalex, scaley);                    \n\t\t\t\t\t\tnewUV=centeredUv + vec2(0.5, 0.5) + vec2(-aniSpeedX, aniSpeedY); \n\n\t\t\t\t\t\tvec2 rotatedUvForDisplacement=rotate(newUV, rotation);\n\t\t\t\t\t\t\n\t\t\t\t\t\tvec4 outputMap=TEXTURE2D(displacement, rotatedUvForDisplacement);\n\t\t\t\t\t\tfloat disTexture=outputMap.r;\n\n\t\t\t\t\t\tvec2 distortedUv=vUv + (disTexture - 1.0) * vec2(0.0005 * aniDistX, -0.0005 * aniDistY);\n\t\t\t\t\t\tdistortedUv +=vec2(0.00025 * aniDistX, -0.00025 * aniDistY);\n\t\t\t\t\t\tdistortedUv=distortedUv * zoom + vec2(0.5 * (1.0 - zoom), 0.5 * (1.0 - zoom));\n\t\t\t\t\t\tvec4 outputColor=TEXTURE2D(image, distortedUv);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//gl_FragColor=outputMap;\n\t\t\t\t\t\tgl_FragColor=outputColor;\n\t\t\t\t\t\t//gl_FragColor=vec4(outputMap.r);\n\t\t\t\t\t}\n\t\t\t\t\t",uniformsNeedUpdate:!0};delete p.defines,n.three.material=new THREE.ShaderMaterial(c),n.three.material.transparent=!0,t(n),e(n),SR7.A.liquideffect.play(i,s,!0)}};const t=t=>{t.three.plane=SR7.WEBGL.getPlane(t.three.material),t.three.scene.add(t.three.plane),s(t)},e=t=>{t.three.material.uniforms.resolution.value.x=t.width/_tpt.dpr,t.three.material.uniforms.resolution.value.y=t.height/_tpt.dpr,t.three.material.uniforms.resolution.value.z=1,t.three.material.uniforms.resolution.value.w=1,t.three.imageAspect=t.three.texture.image.height/t.three.texture.image.width,t.video||t.panzoom||(t.height/t.width>t.three.imageAspect?t.three.material.uniforms.resolution.value.z=t.width/t.height*t.three.imageAspect:t.three.material.uniforms.resolution.value.w=t.height/t.width/t.three.imageAspect)},a=t=>{let e=t.addOns.liquideffect;e.settings;e.three.texture?e.three.texture.image=e.source:(e.three.texture=new THREE.CanvasTexture(e.source),e.three.texture.wrapS=THREE.RepeatWrapping,e.three.texture.wrapT=THREE.RepeatWrapping,e.three.texture.repeat.set(1,1)),e.three.texture.needsUpdate=!0},i=t=>{let e=new THREE.Texture(SR7.A.liquideffect.textures[t]);return e.image=SR7.A.liquideffect.textures[t],e.needsUpdate=!0,e.wrapS=THREE.RepeatWrapping,e.wrapT=THREE.RepeatWrapping,e.repeat.set(1,1),e},s=t=>{t.three.lastDim={width:t.width,height:t.height},t.three.camera.aspect=t.width/t.height,t.three.CY=1/t.three.camera.aspect,t.three.camera.updateProjectionMatrix(),t.three.renderer.setSize(t.width*_tpt.dpr,t.height*_tpt.dpr,!1),t.three.plane&&t.three.plane.scale.set(1,t.three.CY),t.three.camera.fov=2*Math.atan(t.three.CY/(2*t.three.camera.position.z))*(180/Math.PI),t.three.camera.updateProjectionMatrix()},n=t=>{let e=SR7.M[t].c.leavingBG;e&&e?.addOns?.liquideffect?.settings?.u&&(e.addOns.liquideffect.paused=!0,SR7.WEBGL.cleanThree(e.el,e.addOns.liquideffect,".sr7-liquid-canvas"))},r=t=>{var e=t.isLarge||t.isCustom?t.isLarge&&t.isCustom?1.1:.425:1.8;return{displacement:{value:i(t.settings.P)},image:{value:t.three.texture},aniSpeedX:{value:0},aniSpeedY:{value:0},aniDistX:{value:parseFloat(t.settings.a.sx).toFixed(2)},aniDistY:{value:parseFloat(t.settings.a.sy).toFixed(2)},rotation:{value:0},scaley:{value:t.height/_tpt.dpr/(t.width/_tpt.dpr)*e},scalex:{value:e},zoom:{value:100/parseFloat(t.settings.map.is).toFixed(2)},resolution:{value:new THREE.Vector4}}},o={init:(t,e)=>{let a=t.addOns.liquideffect;a.settings.inter.u&&(a.three.canvas[e?"addEventListener":"removeEventListener"]("mouseenter",(function(e){o.enter(e,t)})),a.three.canvas[e?"addEventListener":"removeEventListener"]("mousemove",(function(e){o.move(e,t)})))},enter:(t,e)=>{let a=e.addOns.liquideffect;a.entered=!0,a.t=Date.now()},move:(t,e)=>{let a=e.addOns.liquideffect;a.entered?(void 0===a.tLStarted||a.tLStarted||(a.mouseTL=u(a,{rz:.01*(parseFloat(a.settings.a.rz)+parseFloat(a.settings.inter.rz)),spx:(parseFloat(a.settings.a.spx)+parseFloat(a.settings.inter.spx))/50*.01*(a.isLarge&&a.isCustom?7:a.isLarge||a.isCustom?1.8:5),spy:(parseFloat(a.settings.a.spy)+parseFloat(a.settings.inter.spy))/50*.01*(a.isLarge&&a.isCustom?7:a.isLarge||a.isCustom?1.8:5),sx:Math.max(parseFloat(a.settings.a.sx)+parseFloat(a.settings.inter.scx))*(a.isLarge&&a.isCustom||!a.isLarge&&!a.isCustom?3:1.5),sy:Math.max(parseFloat(a.settings.a.sy)+parseFloat(a.settings.inter.scy))*(a.isLarge&&a.isCustom||!a.isLarge&&!a.isCustom?3:1.5),e:a.settings.inter.e,t:a.settings.inter.d/500}),a.mouseTL.play()),d(e,a.settings.inter.d/100),a.tLStarted=!0,a.frame||(a.frame=t=>{a.frame=window.cancelAnimationFrame(a.frame)}),requestAnimationFrame(a.frame)):o.enter(t,e)}},d=(t,e)=>{let a=t.addOns.liquideffect;clearTimeout(a.mouseAniTimer),a.mouseAniTimer=setTimeout((()=>{a.tLStarted=!1,a.resetTL=u(a,{rz:.01*parseFloat(a.settings.a.rz),spx:parseFloat(a.settings.a.spx).toFixed(2)/50*.01,spy:parseFloat(a.settings.a.spy).toFixed(2)/50*.01,sx:parseFloat(a.settings.a.sx),sy:parseFloat(a.settings.a.sy),e:a.settings.inter.e,t:a.settings.inter.d/500}),a.resetTL.play()}),e)},l=t=>{let e=t.addOns.liquideffect;e.tranTL=u(e,{rz:.01*(parseFloat(e.settings.a.rz)+parseFloat(e.settings.tran.rz)),spx:(parseFloat(e.settings.a.spx)+parseFloat(e.settings.tran.spx))/50*.01*(e.isLarge&&e.isCustom?7:e.isLarge||e.isCustom?1.8:5),spy:(parseFloat(e.settings.a.spy)+parseFloat(e.settings.tran.spy))/50*.01*(e.isLarge&&e.isCustom?7:e.isLarge||e.isCustom?1.8:5),sx:Math.max(parseFloat(e.settings.a.sx)+parseFloat(e.settings.tran.sx))*(e.isLarge&&e.isCustom||!e.isLarge&&!e.isCustom?3:1),sy:Math.max(parseFloat(e.settings.a.sy)+parseFloat(e.settings.tran.sy))*(e.isLarge&&e.isCustom||!e.isLarge&&!e.isCustom?3:1),e:e.settings.tran.e,t:e.settings.tran.d/5e3}),e.tranTL.play(),e.tranTL.eventCallback("onComplete",(t=>{t.resetTL=u(t,{rz:.01*parseFloat(t.settings.a.rz),spx:parseFloat(t.settings.a.spx).toFixed(2)/50*.01,spy:parseFloat(t.settings.a.spy).toFixed(2)/50*.01,sx:parseFloat(t.settings.a.sx),sy:parseFloat(t.settings.a.sy),e:t.settings.inter.e,t:t.settings.inter.d/500}),t.resetTL.play()}),[e])},u=(t,e)=>{e.e??="none";let a=_tpt.gsap.timeline({paused:!0});return a.add(_tpt.gsap.to(t.animatedProgress.arsp,{value:e.rz,ease:e.e,duration:e.t}),0),a.add(_tpt.gsap.to(t.animatedProgress.axsp,{value:e.spx,ease:e.e,duration:e.t}),0),a.add(_tpt.gsap.to(t.animatedProgress.aysp,{value:e.spy,ease:e.e,duration:e.t}),0),a.add(_tpt.gsap.to(t.three.material.uniforms.aniDistX,{value:e.sx,ease:e.e,duration:e.t}),0),a.add(_tpt.gsap.to(t.three.material.uniforms.aniDistY,{value:e.sy,ease:e.e,duration:e.t}),0),a};_tpt.R??={},_tpt.R.liquideffect=_tpt.extend?_tpt.extend(_tpt.R.liquideffect,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7DuotoneFiltersReady"))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===SR7.A.mousetrap){var e={rx:"rotationX",ry:"rotationY",rz:"rotation",sx:"scaleX",sy:"scaleY",op:"opacity"};SR7.A.mousetrap={style:".sr-mousetrap {pointer-events: none !important;} .sr-mousetrap-inner {width:auto;height:auto;position:relative;display:inherit;pointer-events: none;}.sr-mousetrap-npe,.sr-mousetrap-npe * { pointer-events: none !important;}",getLayerBasics:(e={},t)=>{let s="migrate"==t;return{u:"compare"===t?void 0:e.u??!0,center:e.center??e.mcenter??!1,follow:{bx:e.follow?.bx??e.follow?.blockx??!1,by:e.follow?.by??e.follow?.blocky??!1,d:s?parseInt(e.follow?.delay??0)/1e3:e.follow?.d??0,e:e.follow?.e??e.follow?.ease??"none",mode:e.follow?.mode??"disabled",olayer:e.follow?.olayer??[99999,99999,99999,99999,99999],pointer:e.follow?.pointer??!1,r:e.follow?.r??_tpt.fillArray(_tpt.DNTMtoArr(e.follow?.radius??0),5)},offset:{x:s?_tpt.fillArray(_tpt.DNTMtoArr(e.offset?.x??0),5):e.offset?.x??[0,0,0,0,0],y:s?_tpt.fillArray(_tpt.DNTMtoArr(e.offset?.y??0),5):e.offset?.y??[0,0,0,0,0]},revert:{u:e.revert?.use??e.revert?.u??!1,e:e.revert?.ease??e.revert?.e??"none",s:s?parseInt(e.revert?.speed??0)/1e3:e.revert?.s??0},rules:{e:e.rules?.ease??"none",s:s?parseInt(e.rules?.speed??0)/1e3:e.rules?.s??0,op:{min:e.rules?.op?.min??0,max:e.rules?.op?.max??1,a:e.rules?.op?.a??e.rules?.op?.axis??"none",c:e.rules?.op?.c??e.rules?.op?.calc??"distance",o:e.rules?.op?.o??e.rules?.op?.offset??"0%"},rx:{min:e.rules?.rx?.min??0,max:e.rules?.rx?.max??0,a:e.rules?.rx?.a??e.rules?.rx?.axis??"none",c:e.rules?.rx?.c??e.rules?.rx?.calc??"distance",o:e.rules?.rx?.o??e.rules?.rx?.offset??"0%"},ry:{min:e.rules?.ry?.min??0,max:e.rules?.ry?.max??0,a:e.rules?.ry?.a??e.rules?.ry?.axis??"none",c:e.rules?.ry?.c??e.rules?.ry?.calc??"distance",o:e.rules?.ry?.o??e.rules?.ry?.offset??"0%"},rz:{min:e.rules?.rz?.min??0,max:e.rules?.rz?.max??0,a:e.rules?.rz?.a??e.rules?.rz?.axis??"none",c:e.rules?.rz?.c??e.rules?.rz?.calc??"distance",o:e.rules?.rz?.o??e.rules?.rz?.offset??"0%"},sx:{min:e.rules?.sx?.min??0,max:e.rules?.sx?.max??0,a:e.rules?.sx?.a??e.rules?.sx?.axis??"none",c:e.rules?.sx?.c??e.rules?.sx?.calc??"distance",o:e.rules?.sx?.o??e.rules?.sx?.offset??"0%"},sy:{min:e.rules?.sy?.min??0,max:e.rules?.sy?.max??0,a:e.rules?.sy?.a??e.rules?.sy?.axis??"none",c:e.rules?.sy?.c??e.rules?.sy?.calc??"distance",o:e.rules?.sy?.o??e.rules?.sy?.offset??"0%"}}}},getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),touch:{x:0,y:0,block:!1,threshold:10,radMin:Math.PI/2-.4,radMax:Math.PI/2+.4,setTouch:function(e){this.x=e.clientX,this.y=e.clientY,this.block=!1},calculateTouch:function(e){const t=this.x-e.clientX,s=this.y-e.clientY;if(Math.abs(t)>this.threshold||Math.abs(s)>this.threshold){const e=Math.abs(Math.atan2(s,t));this.block=!(e>this.radMin&&e<this.radMax)}}},getLayerWraps:(e,t)=>{const s=SR7.M[e];if(""+(s.settings?.addOns?.mousetrap?.u??!1)=="false")return;t.addOns.mousetrap=SR7.A.mousetrap.getLayerBasics(t.addOns.mousetrap,"normalize");const r=t.addOns.mousetrap;if(void 0===r)return;let o=!1;for(let e in r.rules)"e"!=e&&"s"!=e&&"none"!=r.rules[e].a&&(o=!0);return{innerWrap:o?{use:!0,class:"sr-mousetrap-inner"}:void 0,wrap:{use:!0,class:"sr-mousetrap"}}},init:e=>{void 0===SR7.A.mousetrapcss&&(_tpt.injectCssJs(SR7.A.mousetrap.style,void 0,void 0,"mousetrap_global_styles"),SR7.A.mousetrapcss=!0),SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.mousetrap??={},SR7.A.mousetrap.defCursor=SR7.M[e].c.module.style.cursor,_tpt.scrollObserver.observe(SR7.M[e].c.module),SR7.F.module.listeners.init(e),SR7.A.mousetrap.listeners.init(e)},prepareLayer:(e,t,s)=>{if("false"==String(t?.addOns?.mousetrap?.u??!1))return;let r=t?.addOns?.mousetrap?.follow?.mode??"",o=SR7.M[e].c.layers[s];"slider"!=r&&"events"!=r||(SR7.A.mousetrap.listeners.onSlider??=[],-1==SR7.A.mousetrap.listeners.onSlider.indexOf(o.el.id)&&SR7.A.mousetrap.listeners.onSlider.push(o.el.id)),o.addOns??={},o.addOns.mtrap??={},o.addOns.mtrap.tl??={},"events"==r?o.addOns.mtrap.follow??=!1:o.addOns.mtrap.follow=!0,o.addOns.mtrap.cache={}},postProcessLayer:(e,t,s,r)=>{if("false"==String(t?.addOns?.mousetrap?.u??!1))return;let o=t?.addOns?.mousetrap?.follow?.mode??"";if(SR7.A.mousetrap.listeners.onLayer??={},s.LME=s.addonWrap?"addonWrap":s.parallax?"parallax":s.loop?"loop":s.mask?"mask":"el","olayer"==o){SR7.A.mousetrap.listeners.onLayer??={};for(let o of t?.addOns?.mousetrap?.follow?.olayer??[]){if(!o||99999==o)continue;let{c:t}=SR7.F.getLayer({id:e,skey:r,lkey:o});null!=t&&(s[s.LME].style.pointerEvents="none",s[s.LME].classList.add("sr-mousetrap-npe"),SR7.A.mousetrap.listeners.onLayer[t.el.id]??=[],-1==SR7.A.mousetrap.listeners.onLayer[t.el.id].indexOf(s.el.id)&&SR7.A.mousetrap.listeners.onLayer[t.el.id].push(s.el.id),SR7.F.manageLayerListeners(t,void 0,!0,"mousetrap",[_tpt.tEvt("mouseenter"),_tpt.tEvt("mousemove"),_tpt.tEvt("mouseleave")],SR7.A.mousetrap.processOnLayer))}}},listeners:{init:e=>{SR7.A.mousetrap.listenersAdded?.[e]||(SR7.M[e].c.moduleListeners.mousetrap.sliderEnter??=SR7.F.module.listeners.reg(e,_tpt.tEvt("mouseenter"),(function(e,t){SR7.A.mousetrap.processOnSlide(e,t)})),SR7.M[e].c.moduleListeners.mousetrap.sliderProcess??=SR7.F.module.listeners.reg(e,_tpt.tEvt("mousemove"),(function(e,t){SR7.A.mousetrap.processOnSlide(e,t)}),_tpt.is_mobile),SR7.M[e].c.moduleListeners.mousetrap.sliderLeave??=SR7.F.module.listeners.reg(e,_tpt.tEvt("mouseleave"),(function(e,t){SR7.A.mousetrap.processOnSlide(e,t)})),SR7.M[e].c.moduleListeners.mousetrap.scroll??=SR7.F.module.listeners.reg(e,"scroll",(function(e){SR7.A.mousetrap.processOnSlide(e,{type:"scroll"})})),SR7.A.mousetrap.listenersAdded||document.addEventListener("sr.layer.action",(function(t){if("mtrap_follow"==t.eventtype){let{c:s,layer:r}=SR7.F.getLayer({id:t.id,skey:t.skey,lkey:t.lkey});s?.addOns?.mtrap&&(s.addOns.mtrap.follow=!0),SR7.A.mousetrap.doAnimate({id:e,c:s,A:r?.addOns?.mousetrap??void 0,type:_tpt.tEvt("mousemove")})}else if("mtrap_unfollow"==t.eventtype){let{c:s,layer:r}=SR7.F.getLayer({id:t.id,skey:t.skey,lkey:t.lkey});s?.addOns?.mtrap&&(s.addOns.mtrap.follow=!1),SR7.A.mousetrap.doAnimate({id:e,c:s,A:r?.addOns?.mousetrap??void 0,type:_tpt.tEvt("mouseleave")})}if("enterstage"==t.eventtype)switch(t.layersettings?.addOns?.mousetrap?.follow?.mode??""){case"slider":case"events":SR7.A.mousetrap.listeners.onSlider??=[],-1==SR7.A.mousetrap.listeners.onSlider.indexOf(t.c.el.id)&&SR7.A.mousetrap.listeners.onSlider.push(t.c.el.id);break;case"self":let{c:e}=SR7.F.getLayer({id:t.id,skey:t.c.skey,lkey:t.c.lkey});SR7.A.mousetrap.listeners.onLayer??={},SR7.A.mousetrap.listeners.onLayer[e.el.id]??=[],-1==SR7.A.mousetrap.listeners.onLayer[e.el.id].indexOf(t.c.el.id)&&SR7.A.mousetrap.listeners.onLayer[e.el.id].push(t.c.el.id),SR7.F.manageLayerListeners(t.c,void 0,!0,"mousetrap",[_tpt.tEvt("mouseenter"),_tpt.tEvt("mousemove"),_tpt.tEvt("mouseleave")],SR7.A.mousetrap.processOnLayer)}else if("leavestage"==t.eventtype){if(t.caller="action")return;switch(t.layersettings?.addOns?.mousetrap?.follow?.mode??""){case"events":case"slider":-1!=SR7.A.mousetrap.listeners.onSlider.indexOf(t.c.el.id)&&SR7.A.mousetrap.listeners.onSlider.splice(SR7.A.mousetrap.listeners.onSlider.indexOf(t.c.el.id),1)}}})),SR7.A.mousetrap.listenersAdded??={},SR7.A.mousetrap.listenersAdded[e]=!0)},remove:e=>{}},processOnLayer:(e,t,s)=>{if(!SR7.M[e]?.states?.inViewPort)return;if(s??=SR7.A.mousetrap.lastSensor,null==s||!SR7.M[e].c.layers[s.el.id]?.animState?.stageState)return;SR7.A.mousetrap.lastSensor=s;let r=0;_tpt.is_mobile&&SR7.F.module.listeners.updateMouseCoordinates(e,t);for(let o in SR7.A.mousetrap.listeners.onLayer[s.el.id]){if(!_tpt.hop(SR7.A.mousetrap.listeners.onLayer[s.el.id],o))continue;const a=SR7.A.mousetrap.listeners.onLayer[s.el.id][o];if(!1===(SR7.M[e].c.layers[a]?.addOns?.mtrap?.follow??!0))continue;const l=SR7.M[e].c.layers[a];r=SR7.A.mousetrap.doAnimate({id:e,c:l,A:SR7.M[e].slides[l.skey].layers[l.lkey]?.addOns?.mousetrap??void 0,type:t.type,container:{w:s.cw,h:s.ch},mouse:{x:t.offsetX??t.layerX,y:t.offsetY??t.layerY}})}0!==r&&("none"!==SR7.A.mousetrap.lastCursor&&r||"none"==SR7.A.mousetrap.lastCursor&&!r)?SR7.A.mousetrap.lastPOLCursor=SR7.A.mousetrap.lastCursor=SR7.M[e].c.module.style.cursor=r?"none":SR7.A.mousetrap.defCursor:t.type==_tpt.tEvt("mouseleave")&&SR7.A.mousetrap.lastCursor&&(SR7.A.mousetrap.lastPOLCursor=SR7.A.mousetrap.lastCursor=SR7.M[e].c.module.style.cursor=SR7.A.mousetrap.defCursor),clearTimeout(SR7.A.mousetrap.lastPOLCursorTimer),SR7.A.mousetrap.lastPOLCursorTimer=setTimeout((()=>{delete SR7.A.mousetrap.lastPOLCursor}),100)},processOnSlide:(e,t,s)=>{if(SR7.M[e]?.states?.inViewPort&&(SR7.M[e]?.states?.overModule||t.type===_tpt.tEvt("mouseleave"))&&(!SR7.M[e].sbtFreeze||"scroll"!=t.type)){if("touchstart"==t.type&&t.touches&&t.touches.length>0&&SR7.A.mousetrap.touch.setTouch(t.touches[0]),"touchmove"==t.type&&t.touches&&t.touches.length>0){const e=SR7.A.mousetrap.touch;e.calculateTouch(t.touches[0]),e.block&&t.preventDefault()}!s&&SR7.M[e].mTrapSlideRequests&&cancelAnimationFrame(SR7.M[e].mTrapSlideRequests),SR7.M[e].mTrapSlideRequests=requestAnimationFrame((()=>{const s=SR7.M[e];SR7.F.module.listeners.updateMouseCoordinates(e,t);let r=0,o=!1;t.type==_tpt.tEvt("mouseenter")&&(SR7.A.mousetrap.scrollY=_tpt.scrollObserver.y);for(let a in SR7.A.mousetrap.listeners.onSlider){if(!_tpt.hop(SR7.A.mousetrap.listeners.onSlider,a))continue;const l=SR7.A.mousetrap.listeners.onSlider[a];null!=s.c.layers[l]&&!1!==(s.c.layers[l]?.addOns?.mtrap?.follow??!0)&&(r=SR7.A.mousetrap.doAnimate({hide:r,id:e,c:s.c.layers[l],A:s.slides[s.c.layers[l].skey].layers[s.c.layers[l].lkey]?.addOns?.mousetrap??void 0,type:t.type}),o=!0)}0!==r&&("none"!==SR7.A.mousetrap.lastCursor&&r||"none"==SR7.A.mousetrap.lastCursor&&!r)?SR7.A.mousetrap.lastCursor=SR7.M[e].c.module.style.cursor=r?"none":SR7.A.mousetrap.defCursor:t.type==_tpt.tEvt("mouseleave")&&SR7.A.mousetrap.lastCursor?SR7.A.mousetrap.lastCursor=SR7.M[e].c.module.style.cursor=SR7.A.mousetrap.defCursor:0==r&&0==o&&SR7.A.mousetrap.lastCursor!==SR7.A.mousetrap.defCursor?"none"!==SR7.A.mousetrap.lastPOLCursor&&(SR7.A.mousetrap.lastCursor=SR7.M[e].c.module.style.cursor=SR7.A.mousetrap.defCursor):r&&SR7.A.mousetrap.lastCursor!=SR7.M[e].c.module.style.cursor&&(SR7.M[e].c.module.style.cursor=SR7.A.mousetrap.lastCursor)}))}},doAnimate:t=>{let{id:s,c:r,A:o,type:a,hide:l,mouse:n,container:i}=t;if(!r.addOns.mtrap||!SR7.M[s].c?.moduleListeners?.mousetrap)return;const u=SR7.M[s];let p,d={x:0,y:0,ease:"none",duration:0},m=SR7.gVal(o.offset.x??0,s,0),c=SR7.gVal(o.offset.y??0,s,0);a="dragmove"==a?"mousemove":a,l="false"!=String(l)&&o.follow.pointer,r.calcOffset=SR7.F.getParOffsets(r);let y=SR7.F.getParRowMP(r.el);if(r.calcOffset.top+=y.y,r.calcOffset.left+=y.x,a==_tpt.tEvt("mouseenter")||a==_tpt.tEvt("mousemove")||"scroll"==a){let e=u.slides[r.skey]?.slide?.global||"carousel"!=u.settings.type||u.settings.carousel.stretch?0:u.dims.CFC?.[u.current.id]?.x??u.dims.CFC?.x;d.x=u.mouse.relX-r.calcOffset.left-(o.center?r.cw/2:m)-e,d.y=u.mouse.relY-r.calcOffset.top-(o.center?r.ch/2:c),d.x=isNaN(d.x)?0:d.x,d.y=isNaN(d.y)?0:d.y}if(a==_tpt.tEvt("mouseenter")&&(d.ease=o.follow.e,d.duration=o.follow.d),a==_tpt.tEvt("mousemove")||"scroll"==a){if(void 0!==r.addOns.mtrap.tl.mousetrap_mouseleave&&(_tpt.gsap.killTweensOf(r.addonWrap),r.addonInnerWrap&&_tpt.gsap.killTweensOf(r.addonInnerWrap)),d.ease=o.follow.e,d.duration=o.follow.d,r.addonInnerWrap){let t,s,a=r.addOns.mtrap.cache;p??={ease:o.rules.e,duration:o.rules.s,transformOrigin:m+"px "+c+"px"};for(let l in o.rules){if("e"==l||"s"==l||"none"==o.rules[l].a)continue;let y=o.rules[l];if("both"===y.a||"center"===y.a)p.rotation=a.rotation??0,a.x??=d.x,a.y??=d.y,a.ufr??={x:a.x,y:a.y},t=("both"==y.a?a.ufr.x:0)-d.x,s=("both"==y.a?a.ufr.y:0)-d.y,Math.sqrt(t*t+s*s)>20&&(a.ufr.x=d.x,a.ufr.y=d.y,a.rotation=p.rotation=Math.round(Math.atan2(s,t)*tpGS.RAD2DEG)-90||p.rotation);else if("distance"===y.c){let t=i?.w??u.dims.content.w,s=i?.h??u.dims.content.h,r=n?.x??u.mouse.relX,o=n?.y??u.mouse.relY,a=0,d=parseInt(y.o),m="horizontal"===y.a?0!==d?t*(d/100):t:0!==d?s*(d/100):s;0!==d&&(a="horizontal"===y.a?(t-m)/2:(s-m)/2);let c="horizontal"===y.a?(r-a)/m:(o-a)/m;0!==d&&(c=c<0?0:c>1?1:c),p[e[l]]=parseInt(y.min)+(y.max-y.min)*c}else if("direction"===y.c){let t="vertical"===y.a?(a.y??0)-d.y:(a.x??0)-d.x;Math.abs(t)>2&&(p[e[l]]=(a[e[l]]??0)+.5*t,a[e[l]]=p[e[l]]=Math.min(y.max,Math.max(p[e[l]],y.min))),"vertical"==y.a?a.y=d.y:a.x=d.x}p.transformOrigin=o.center?Math.round(r.cw/2)+"px "+Math.round(r.ch/2)+"px":m+"px "+c+"px",p.transformPerspective=r.perspective??u.settings.general.perspective??"600px",p.rotationX=isNaN(p.rotationX)?0:p.rotationX,p.rotationY=isNaN(p.rotationY)?0:p.rotationY}}}else a==_tpt.tEvt("mouseleave")&&o.revert.u&&(d.duration=o.revert.s,d.ease=o.revert.e,r.addOns.mtrap.tl.mousetrap_mouseenter&&r.addOns.mtrap.tl.mousetrap_mouseenter.kill(),r.addOns.mtrap.tl.mousetrap_mouseenter_mod&&r.addOns.mtrap.tl.mousetrap_mouseenter_mod.kill(),r.addOns.mtrap.tl.mousetrap_mousemove&&r.addOns.mtrap.tl.mousetrap_mousemove.kill(),r.addOns.mtrap.tl.mousetrap_mousemove_mod&&r.addOns.mtrap.tl.mousetrap_mousemove_mod.kill(),_tpt.gsap.killTweensOf(r.addonWrap),r.addonInnerWrap&&_tpt.gsap.killTweensOf(r.addonInnerWrap),p={duration:o.revert.s,ease:o.revert.e,rotationX:0,rotationY:0,rotation:0,scaleX:1,scaleY:1,opacity:1});let f=SR7.gVal(o.follow.r??0,s,0);if(0==f&&_tpt.is_mobile&&"slider"==o.follow.mode&&0!==parseInt(o.follow?.r?.[3]??0)&&(f=parseInt(o.follow?.r?.[3]??0)),0!==f)if(Math.sqrt(d.x*d.x+d.y*d.y)>f&&0!==d.x&&0!==d.y){let e=d.x<0?-1:1,t=Math.atan(d.y/d.x);d.x=Math.cos(t)*f*e,d.y=Math.sin(t)*f*e}else d.x=d.x>f?f:d.x<-f?-f:d.x,d.y=d.y>f?f:d.y<-f?-f:d.y;else"olayer"!==o.follow.mode&&"slider"!==o.follow.mode&&_tpt.is_mobile&&(d.x=0,d.y=0);if(d.x=isNaN(d.x)||o.follow.bx?0:d.x,d.y=isNaN(d.y)||o.follow.by?0:d.y,d.perspective="600px",a!=_tpt.tEvt("mouseleave")||o.revert.u){if("self"!==o.follow.mode&&(0==d.duration?_tpt.gsap.set(r.addonWrap,d):r.addOns.mtrap.tl["mousetrap_"+a]=_tpt.gsap.to(r.addonWrap,d)),null==p)return l;p.rotationX=isNaN(p.rotationX)?0:p.rotationX,p.rotationY=isNaN(p.rotationY)?0:p.rotationY,p.rotation=isNaN(p.rotation)?0:p.rotation+"_short",p.scaleX=isNaN(p.scaleX)?1:p.scaleX,p.scaleY=isNaN(p.scaleY)?1:p.scaleY,0==p.duration?(r.addOns.mtrap.tl["mousetrap_"+a+"_mod"]&&r.addOns.mtrap.tl["mousetrap_"+a+"_mod"].kill(),p.overwrite=!0,_tpt.gsap.set(r.addonInnerWrap,p)):(r.addOns.mtrap.tl["mousetrap_"+a+"_mod"]&&r.addOns.mtrap.tl["mousetrap_"+a+"_mod"].kill(),r.addOns.mtrap.tl["mousetrap_"+a+"_mod_ever"]||(p.duration=2*p.duration),r.addOns.mtrap.tl["mousetrap_"+a+"_mod_ever"]=!0,_tpt.gsap.set(r.addonInnerWrap,{transformPerspective:d.perspective,transformOrigin:p.transformOrigin}),r.addOns.mtrap.tl["mousetrap_"+a+"_mod"]=_tpt.gsap.to(r.addonInnerWrap,p))}return l}},_tpt.R??={},_tpt.R.mousetrap=_tpt.extend?_tpt.extend(_tpt.R.mousetrap,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7MouseTrapReady"))}}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.paintbrush)return;let e={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.paintbrush={getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),getLayerBasics:(t={},s)=>{let a="normalize"===s;return{u:"compare"==s?void 0:t.u??t.enable??!0,um:t.um??!t.mobile?.disable,fb:t.fb??t.mobile?.fallback??!1,img:{type:t.img?.type??t.image?.source??"local",src:t.img?.src??t.image?.custom??""},blur:{u:t.blur?.u??t.image?.blur?.enable??!1,b:e[a?"pI":"k"](t.blur?.b??t.image?.blur?.amount??10),fix:t.blur?.fix??t.image?.blur?.fixedges?.enable??!1,ef:e[a?"pI":"k"](t.blur?.ef??t.image?.blur?.fixedges?.amount??10)},brush:{style:t.brush?.style??"round",size:e[a?"pI":"k"](t.brush?.size??80),strength:e[a?"pI":"k"](t.brush?.strength??0),disap:t.brush?.disap??t.brush?.disappear?.enable??!1,time:e[a?"pI":"k"](t.brush?.time??t.brush?.disappear?.time??1e3)}}},init:e=>{SR7.M[e].settings.addOns.paintbrush.u&&(SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.paintbrush??={},SR7.A.paintbrush.listeners.init(e))},prepareLayer:(e,t,s)=>{if(""+(SR7.M[e].settings?.addOns?.paintbrush?.u??!1)=="false")return;if(!t.addOns?.paintbrush?.u)return;let{c:a}=SR7.F.getLayer(s);const n=[];a.addOns??={},a.addOns.paintbrush??={TMBlock:{x:0,y:0,block:!1},brush:new SR7.F.canvas({ctx:"2d",create:!0}),canvas:new SR7.F.canvas({wrap:a.el,ctx:"2d",create:!0}),steps:[],settings:SR7.A.paintbrush.getLayerBasics(t.addOns.paintbrush,"normalize")};let i=a.addOns.paintbrush,{canvas:r}=i.canvas,o=t?.bg?.image??{};return r.style.width="100%",r.style.height="100%",r.style.zIndex=10,r.style.pointerEvents="none","main"!==t.addOns.paintbrush.img.type&&(i.iCanvas=new SR7.F.canvas({ctx:"2d",create:!0,size:o?.size??"cover",pos:o?.pos??{x:"50%",y:"50%"},repeat:o?.repeat??"no-repeat",sizeVal:o?.sizeVal??"100%"}),n.push(new Promise((e=>{_tpt.registerImage(t.addOns.paintbrush.img.src,1,(function(t){requestAnimationFrame((function(){try{i.iCanvas.image=t.image,i.iCanvas.drawImg()}catch(e){console.log(e)}e()}))}),a.el.id)})))),n},listeners:{init:e=>{let t=SR7.A.paintbrush;t.listenersAdded?.[e]||(_tpt.scrollObserver.observe(SR7.M[e].c.module),t.mouseEnter??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart":"mouseenter",((e,s)=>t.mouse.enter(e,s))),t.mouseMove??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchmove":"mousemove",((e,s)=>t.mouse.move(e,s))),t.onFire??={},t.onFire[e]??={},t.listenersAdded||(SR7.F.module.listeners.init(e),_tpt.resizeObserver.observe((e=>{t.resize(e)}),50,e),document.addEventListener("sr.layer.action",(function(e){if(!e.c?.addOns?.paintbrush)return;let t=e.c.addOns.paintbrush,s=t.settings;"enterstage"==e.eventtype?u(e.c,s.blur):"enteredstage"==e.eventtype?(t.source="main"!==s.img.type?t.iCanvas.canvas:e.c.canvas.canvas,t.canvas.canvas.style.display="block",SR7.A.paintbrush.onFire[e.id][e.c.el.id]=e.c,u(e.c,s.blur),o(e.c),e.c.media&&"html5"==e.c.media.player.options.type&&e.c.media.startCanvas(e.c.canvas)):"leavestage"==e.eventtype&&(u(e.c,s.blur),t.canvas.canvas.style.display="none",delete SR7.A.paintbrush.onFire[e.id][e.c.el.id])}))),t.listenersAdded??={},t.listenersAdded[e]=!0)}},paint:function(e){var t,s,a=e.steps.length,n=Date.now();let{ctx:i}=e.brush;i.lineCap=e.settings.brush.style,i.lineWidth=e.settings.brush.size;for(var r=1;r<a;r++)void 0!==e.steps[r]&&(s=(n-e.steps[r].time)/e.settings.brush.time,t=Math.max(1-s,0),i.strokeStyle="rgba(0, 0, 0, "+t+")",i.beginPath(),i.moveTo(e.steps[r-1].x,e.steps[r-1].y),i.lineTo(e.steps[r].x,e.steps[r].y),i.stroke(),0===t&&e.steps.splice(r,1))},drawBrush:function(e){if(0==(e.brush?.canvas?.width??0)||0==(e.brush?.canvas?.height??0))return;let{ctx:t,canvas:s}=e.canvas;e.frame=cancelAnimationFrame(e.frame),e.steps.length>1&&(e.frame||(e.frame=t=>{SR7.A.paintbrush.drawBrush(e,t)}),requestAnimationFrame(e.frame)),t.clearRect(0,0,s.width,s.height),e.settings.brush.disap&&e.brush.ctx.clearRect(0,0,s.width,s.height),SR7.A.paintbrush.paint(e),t.shadowColor="#000000",t.globalCompositeOperation="source-over",t.drawImage(e.source,0,0,e.source.width*_tpt.dpr,e.source.height*_tpt.dpr,0,0,s.width,s.height),t.shadowBlur=e.settings.brush.strength,t.globalCompositeOperation="destination-in",t.drawImage(e.brush.canvas,0,0,s.width,s.height,0,0,s.width,s.height),t.shadowBlur=0},resize:e=>{if(SR7.A.paintbrush.onFire)for(let t in SR7.A.paintbrush.onFire[e])_tpt.hop(SR7.A.paintbrush.onFire[e],t)&&o(SR7.A.paintbrush.onFire[e][t])},mouse:{enter:(e,s)=>{if(SR7.A.paintbrush.onFire){SR7.F.module.listeners.updateMouseCoordinates(e,s);for(let a in SR7.A.paintbrush.onFire[e]){if(!_tpt.hop(SR7.A.paintbrush.onFire[e],a))continue;let i=SR7.A.paintbrush.onFire[e][a],o=i.addOns.paintbrush;SR7.A.paintbrush.scrollY=_tpt.scrollObserver.y,o.TMBlock={x:0,y:0,block:!1},t&&(o.TMBlock=n(s.touches[0])),o.offset=r(i)}}},move:(e,s)=>{SR7.A.paintbrush.onFire&&(SR7.A.paintbrush.slideRequest&&cancelAnimationFrame(SR7.A.paintbrush.slideRequest),SR7.A.paintbrush.slideRequest=requestAnimationFrame((()=>{SR7.F.module.listeners.updateMouseCoordinates(e,s);for(let a in SR7.A.paintbrush.onFire[e]){if(!_tpt.hop(SR7.A.paintbrush.onFire[e],a))continue;let n=SR7.A.paintbrush.onFire[e][a],o=n.addOns.paintbrush;if("no"===o.TMBlock.block)return;if(t)if(o.TMBlock??=i(o.TMBlock,s?.touches?.[0]),"yes"===o.TMBlock.block)s.preventDefault();else if("no"===o.TMBlock.block)return;let u=SR7.M[e];o.offset??=r(n),o.steps.unshift({time:Date.now(),x:u.mouse.x-o.offset.x-(u.dims.moduleRect?.left??0)-u.dims.content.mwshiftx,y:u.mouse.y-o.offset.y-(u.dims.moduleRect?.top??0)}),void 0===o.frame&&SR7.A.paintbrush.drawBrush(o)}})))}}};const t="ontouchend"in document,s=Math.PI/2-.4,a=Math.PI/2+.4,n=e=>({x:e.clientX,y:e.clientY,block:!1}),i=(e,t)=>{var n=Math.abs(Math.atan2(e.y-t.clientY,e.x-t.clientX));return n>s&&n<a?"no":"yes"},r=e=>{let t=SR7.F.getParOffsets(e),s=SR7.F.getParRowMP(e.el);return{x:t.left+s.x,y:t.top+s.y}},o=e=>{if(!e.addOns?.paintbrush?.canvas)return;let t=e.addOns.paintbrush,{width:s,height:a}=e.canvas.canvas;t.brush.canvas.width=t.canvas.canvas.width=s,t.brush.canvas.height=t.canvas.canvas.height=a,t.canvas.ctx.scale(_tpt.dpr,_tpt.dpr),t.iCanvas&&(t.iCanvas.requestedWidth=s,t.iCanvas.requestedHeight=a,t.iCanvas.drawImg())},u=(e,t)=>{t?.u&&(e.canvas.canvas.style.filter="blur("+t.b+"px)",e.aCanvas?.canvas&&(e.aCanvas.canvas.style.filter="blur("+t.b+"px)"),t.fix&&(e.canvas.canvas.style.transform="scale("+(100+t.ef)+"%)",e.aCanvas?.canvas&&(e.aCanvas.canvas.style.transform="scale("+(100+t.ef)+"%)")))};_tpt.R??={},_tpt.R.paintbrush=_tpt.extend?_tpt.extend(_tpt.R.paintbrush,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7DuotoneFiltersReady"))}();
!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??={},void 0!==(SR7.A.particlewave?.init??void 0))return;SR7.A.particlewave={...SR7.A.particlewave,init:e=>{let t=SR7.A.particlewave;void 0===SR7.A.particlewavecss&&(_tpt.injectCssJs(t.style,void 0,void 0,"particlewave_global_styles"),SR7.A.particlewavecss=!0),SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.particlewave??={},t.defCursor=SR7.M[e].c.module.style.cursor,_tpt.scrollObserver.observe(SR7.M[e].c.module),SR7.F.module.listeners.init(e),t.listeners.init(e);const a=["THREE","WEBGL"];return null==t.waves&&a.push("pw_Waves"),null==t.tools&&a.push("pw_Tools"),null==t.anim&&a.push("pw_Anim"),null==t.updateShader&&a.push("pw_Shaders"),a},getModuleBasics:(e={},t)=>({u:"compare"==t?void 0:e.u??e.enable??!0}),getLayerBasics:(e={},t)=>{let a="migrate"==t;return{type:e.type??"default",s:e.s??e.speed??40,c:e.c??e.curve??25,a:e.a??e.amplitude??35,rv:e.rv??e.randomizeValue??0,scene:{kC:e.scene?.kC??e.keepCentered??!0,a:e.scene?.a??e.angle??"0deg",t:e.scene?.t??e.tilt??"10deg",sx:e.scene?.sx??e.sx??"0",sy:e.scene?.sy??e.sy??"0",sz:e.scene?.sz??e.sz??"0",dpr:e.scene?.dpr??e.dpr??1},particle:{on:e.particle?.on??e.particlesOn??!0,particle:a?e.particle?.particle??e.particle?.type??e.particle??"default":e.particle?.particle??"default",c:e.particle?.c??e.particleColor??"color",bg:e.particle?.bg??e.parbackground??"default",bgfit:e.particle?.bgfit??e.bgfit??"cover",bgpos:e.particle?.bgpos??e.bgpos??"center center",s:e.particle?.s??e.particleSize??20,gs:e.particle?.gs??e.groShr??10,g:e.particle?.g??e.gap??20,a:e.particle?.a??e.particleAmount??900},lines:{pO:e.lines?.pO??e.particleOn??!0,bF:e.lines?.bF??e.borderFilled??!1,con:e.lines?.con??e.connectionType??"off",cC:e.lines?.cC??e.customColorOn??!1,c:e.lines?.c??e.fillColor??"#ffffff",f:e.lines?.f??e.finish??"matte",o:e.lines?.o??e.linesOpacity??20,hS:e.lines?.hS??e.hexaShift??0},balance:{f:e.balance?.f??e.fade??"off",oI:e.balance?.oI??e.opacityIntensity??95},color:{c:e.color?.c??(a?_tpt.gradient.convert(e.color??"#ffffff",!0):"#ffffff"),o:e.color?.o??e.opacity??100},anim:{mov:e.anim?.mov??e.movement??"off",p:e.anim?.p??e.animPath??"ocean",pH:e.anim?.pH??e.animPathHexa??"ocean",s:e.anim?.s??e.aniMainSpeed??40},pendulum:{a:e.pendulum?.a??e.angleEnd??0,t:e.pendulum?.t??e.tiltEnd??0,x:e.pendulum?.x??e.offsetxEnd??0,y:e.pendulum?.y??e.offsetyEnd??0,z:e.pendulum?.z??e.offsetzEnd??0,r:e.pendulum?.r??e.animRoute??"rounded"},loop:{a:e.loop?.a??e.angleSpeed??-13,t:e.loop?.t??e.tiltSpeed??8,z:e.loop?.z??e.offsetzSpeed??5},interaction:{type:e.interaction?.type??e.interaction??"off",t:e.interaction?.t??e.pTilt??30,r:e.interaction?.r??e.pRotate??30,i:e.interaction?.i??e.pIntensity??50,s:e.interaction?.s??e.pSpeed??40,sh:e.interaction?.sh??e.sbshifty??20,mb:e.interaction?.mb??e.pModuleBased??!1},design:{fx:e.design?.fx??e.ppfx??"off",f:e.design?.f??e.focus??5,a:e.design?.a??e.aperture??5,maxb:e.design?.maxb??e.maxblur??10,minb:e.design?.minb??e.minblur??0,bb:e.design?.bb??e.ppbb??!0,fn:e.design?.fn??e.ppfn??80,fsc:e.design?.fsc??e.ppfsc??82,fsz:e.design?.fsz??e.ppfsz??256,fgs:e.design?.fgs??e.ppfgs??!1},wpC:e.wpC??(a?_tpt.gradient.convert(e.wp_color??"#ffffff",!0):"#ffffff"),blend:e.blend??e.blending??"normal"}},prepareLayer:async(e,a,i,n)=>{if("particlewave"===a.subtype){var{c:n}=SR7.F.getLayer(i);return new Promise((e=>{n.addOns??={},n.addOns.particlewave={},n.addOns.particlewave.canvas=SR7.WEBGL.getCanvas(),a.addOns.particlewave=SR7.A.particlewave.getLayerBasics(a.addOns.particlewave,"normalize"),t(a.addOns.particlewave).then((t=>{n.addOns.particlewave.settings=t,n.addOns.particlewave.prepared=!0,n.el.appendChild(n.addOns.particlewave.canvas.canvas),SR7.A.particlewave.waves.build(n),e()})).catch((t=>{console.log(t),e()}))}))}},toggle:(e,t)=>{let a=SR7.A.particlewave;const i=SR7.M[e];if(a.onFire)for(let t in a.onFire[e])_tpt.hop(a.onFire[e],t)&&(i.states.inViewPort?a.play(e,i.c.layers[t]):a.pause(e,i.c.layers[t],!1))},play:(e,t)=>{let a=SR7.A.particlewave;a.onFire??={},a.onFire[e]??={},a.onFire[e][t.el.id]=!0,t.addOns.particlewave.paused&&a.waves.render(t),a.waves.resize(t,t.cw,t.ch),a.tools.updateGradientTexture(t),a.fitCameraToObject(t),a.waves.render(t)},pause:(e,t,a)=>{let i=SR7.A.particlewave;t.addOns.particlewave.paused=!0,t.addOns.particlewave.frame=cancelAnimationFrame(t.addOns.particlewave.frame),a&&i?.onFire?.[e]?.[t.el.id]&&delete i.onFire[e][t.el.id]},quickPrepare:e=>{e.addOns.particlewave.destroyed=!1,e.addOns.particlewave.canvas=SR7.WEBGL.getCanvas(),e.el.appendChild(e.addOns.particlewave.canvas.canvas),SR7.A.particlewave.waves.build(e)},listeners:{init:e=>{let t=SR7.A.particlewave;t.listenersAdded?.[e]||(t.onFire??={},t.onFire[e]??={},t.listenersAdded||document.addEventListener("sr.layer.action",(function(e){""+(e.layersettings?.addOns?.particlewave??!1)!="false"&&("enterstage"==e.eventtype?(window.e=e,e.c.addOns.particlewave.destroyed&&t.quickPrepare(e.c),t.play(e.id,e.c)):"leavestage"==e.eventtype?t.pause(e.id,e.c,!0):"leftstage"==e.eventtype&&t.waves.destroy(e.c))})),t.mouseEnter=t.mouseEnter??SR7.F.module.listeners.reg(e,"mouseenter",((e,a)=>t.listeners.mouse.module.enter(e,a))),t.mouseMove=t.mouseMove??SR7.F.module.listeners.reg(e,"mousemove",((e,a)=>t.listeners.mouse.module.move(e,a))),t.mouseLeave=t.mouseLeave??SR7.F.module.listeners.reg(e,"mouseleave",((e,a)=>t.listeners.mouse.module.leave(e,a))),t.listenersAdded??={},t.listenersAdded[e]=!0)},mouse:{module:{enter:(e,t)=>{SR7.A.particlewave.listeners.mouse.module.default(e,t,"enter")},move:(e,t)=>{SR7.A.particlewave.listeners.mouse.module.default(e,t,"move")},leave:(e,t)=>{SR7.A.particlewave.listeners.mouse.module.default(e,t,"leave")},default:(e,t,a)=>{const i=SR7.M[e];i.c.addOns??={},i.c.addOns.particlewave??={},i.c.addOns.particlewave.mouse??={};const n=i.c.addOns.particlewave;for(var e in n.mouse.type=a,SR7.M){const i=SR7.M[e];if(i.states.inViewPort)for(var s in i.c.layers){if(!i.c.layers[s].addOns?.particlewave)continue;const e=i.c.layers[s].addOns.particlewave;if(!e?.settings?.interaction.mb)continue;let n=t.clientX/i.dims.module.w*i.c.layers[s].cw,r=t.clientY/i.dims.module.h*i.c.layers[s].ch;SR7.A.particlewave.listeners.mouse[a]({layerX:n,layerY:r,clientX:n,clientY:r},i.c.layers[s],!0)}}}},enter:(e,t,a)=>{let i=t.addOns.particlewave;var n=i.canvas.canvas.getBoundingClientRect();i.mouseX=(a?e.clientX:e.clientX-n.top)/n.width,i.mouseY=(a?e.clientY:e.clientY-n.left)/n.height,_tpt.gsap.to(i,{duration:2,lerp:i.settings.lerp})},leave:(e,t)=>{let a=t.addOns.particlewave;a.mouseX=.5,a.mouseY=.5,_tpt.gsap.to(a,{duration:0,lerp:.001,overwrite:!0})},move:(e,t,a)=>{let i=t.addOns.particlewave;var n=i.canvas.canvas.getBoundingClientRect();i.mouseX=(a?e.clientX:e.clientX-n.top)/n.width,i.mouseY=(a?e.clientY:e.clientY-n.left)/n.height},follow:e=>{e.pFrame&&(e.pFrame=window.cancelAnimationFrame(e.pFrame));const{beta:t,gamma:a}=e.pEvent;let i=a,n=t-60;const s=Math.abs(e.orientationX-i)>1||Math.abs(e.orientationY-n)>1;e.orientationX=i,e.orientationY=n,s&&(_tpt.winW>_tpt.winH&&([i,n]=[n,i]),e.px=i,e.py=n)},applyfollow:e=>{if("mousefollow"!==e.settings.interaction.type)return;const t=e.settings,a=(e,t,a)=>e+(t-e)*a;if(_tpt.is_mobile){e.tx=a(e.tx,e.px,e.lerp),e.ty=a(e.ty,e.py,e.lerp);const i=t.interaction.i*Math.PI/180;e.group.rotation.x=-e.ty*i,e.group.rotation.z=e.tx*i}else e.targetX=a(e.targetX,e.mouseX,e.lerp),e.targetY=a(e.targetY,e.mouseY,e.lerp),e.group.rotation.z=t.interaction.t*(e.targetX-.5),e.group.rotation.x=t.interaction.r*(e.targetY-.5)}}},fitCameraToObject:e=>{let t=e.addOns?.particlewave??!1;if(t){let a=SR7.A.particlewave,i=Math.round(e.cw??0),n=Math.round(e.ch??0);t.lastDim={width:i,height:n},a.waves.resize(e,i,n),t.settings.isGradient&&a.tools.updateGradientTexture(e),a.waves.initPP(e),t.paused=!1,cancelAnimationFrame(t.frame),t.frame=requestAnimationFrame(t.bindedRender)}},setSceneForHexa:e=>{let t=e.settings;e.scene.rotation.y=180*Math.PI/180,e.scene.rotation.z=t.scene.a*Math.PI/180,e.scene.rotation.x=(t.scene.t+16)*Math.PI/180,e.camera.position.x=t.scene.sx,e.camera.position.y=t.scene.sx,e.camera.position.z=t.scene.sz+27,t.scene.kC&&e.camera.lookAt(0,"path"===t.anim.mov?-20:0,0)},adjustScene:t=>{let a=t.settings;t.scene.rotation.z=a.scene.a*Math.PI/180,t.scene.rotation.x=a.scene.t*Math.PI/180,t.camera.position.x=a.scene.sx,t.camera.position.y=a.scene.sy,t.camera.position.z=e(a.scene.sz)+22,a.scene.kC&&t.camera.lookAt(0,0,0)}};let e=e=>parseFloat(e),t=async t=>(t.numStops=0,t.gradientStart=new THREE.Vector2,t.gradientEnd=new THREE.Vector2,t.particle.g=e(t.particle.g)/10,t.particle.s=e(t.particle.s)/100,t.particle.a="hexa"===t.lines.con?900:t.particle.a,t.particle.a=Math.floor(Math.sqrt(e(t.particle.a))),"path"===t.anim.mov||"loop"===t.anim.mov?(t.scene.a=0,t.scene.t=10,t.scene.sx=0,t.scene.sy=0,t.scene.sz=0,t.scene.kC=!0):(t.scene.a=e(t.scene.a),t.scene.t=e(t.scene.t),t.scene.sx=e(t.scene.sx),t.scene.sy=e(t.scene.sy),t.scene.sz=e(t.scene.sz)),"keep"==t.particle.c?t.lines.cC=!0:"image"==t.particle.c&&(t.wpC="#ffffff",t.lines.c="#ffffff",t.lines.cC=!1),t.scene.a="hexa"===t.lines.con?Math.min(90,Math.max(-90,t.scene.a)):t.scene.a,t.rv=e(t.rv)/2,t.lines.o=e(t.lines.o)/100,t.lines.hS=e(t.lines.hS),t.balance.oI=e(t.balance.oI),t.anim.s=e(t.anim.s),t.pendulum.a=e(t.pendulum.a),t.pendulum.t=e(t.pendulum.t),t.pendulum.x=e(t.pendulum.x),t.pendulum.y=e(t.pendulum.y),t.pendulum.z=e(t.pendulum.z),t.loop.a=e(t.loop.a),t.loop.t=e(t.loop.t),t.loop.z=e(t.loop.z),t.particle.particle="default"===t.particle.particle?SR7.E.resources.pwURL+"public/assets/par.svg":t.particle.particle,t.particle.bg="default"===t.particle.bg?SR7.E.resources.pwURL+"public/assets/img.png":t.particle.bg,t.svg=-1!==t.particle.particle.indexOf(".svg"),t.wpC_ori=t.wpC,t.wpC=_tpt.gradient.process(t.wpC),void 0===t.clock&&(t.clock=new THREE.Clock),t.interaction.sh=-e(t.interaction.sh),t.scene.dpr=e(t.scene.dpr),t.s=e(t.s)/20,t.particle.g=e(t.particle.g),"hexa"==t.lines.con?(t.c=e(t.c)/5*2,t.a=e(t.a)/10):(t.c=e(t.c)/5*t.particle.g,t.a=e(t.a)/20*t.particle.g),t.particle.gs=e(t.particle.gs)/100,t.design.f=e(t.design.f),t.design.a=e(t.design.a),t.design.maxb=.001*e(t.design.maxb),t.design.minb=.001*e(t.design.minb),t.color=_tpt.parseColor(t.lines.c,!0),t.color_par=_tpt.parseColor(t.wpC_ori.string,!0),t.interaction.t=_tpt.DEG2RAD*e(t.interaction.t),t.interaction.r=_tpt.DEG2RAD*e(t.interaction.r),t.interaction.i=e(t.interaction.i)/50,t.lerp=e(t.interaction.s)/200,t.canvastemp=document.createElement("canvas"),t.ctxtemp=t.canvastemp.getContext("2d"),t.isGradient="solid"!==(t.wpC_ori?.type??"solid"),("image"===t.particle.c||t.isGradient)&&(t.bg??={},t.bg.canvas=document.createElement("canvas"),t.bg.texture=new THREE.CanvasTexture(t.bg.canvas),t.bg.ctx=t.bg.canvas.getContext("2d"),(t.particle.c="image")&&await _tpt.loadSingleImage(t.particle.bg).then((e=>{let a=e.image,{naturalHeight:i,naturalWidth:n}=a;var s,r,l,c,o=n/i,p=Math.max(n,i);"cover"===t.particle.bgfit||"contain"===t.bg.fit?(t.bg.canvas.width=p,t.bg.canvas.height=p):(t.bg.canvas.width=n,t.bg.canvas.height=i),t.bg.ctx.scale(-1,1),"cover"===t.particle.bgfit?(c=n>i?p*o:p,l=n>i?p:p*o,s=-1!==t.particle.bgpos.indexOf("left")?0:-1!==t.particle.bgpos.indexOf("right")?n>i?p-p*o:0:n>i?-(p*o-p)/2:0,r=-1!==t.particle.bgpos.indexOf("top")?0:-1!==t.particle.bgpos.indexOf("bottom")?n>i?0:p-p/o:n>i?0:(p-p/o)/2,t.bg.ctx.drawImage(a,0,0,n,i,-(p-s),r,c,l)):"contain"===t.bg.fit?(c=n,l=i,s=n>i?0:(p-n)/2,r=n>i?(p-n)/2:0,t.bg.ctx.drawImage(a,0,0,n,i,-(p-s),r,c,l)):t.bg.ctx.drawImage(a,-n,0,n,i),t.bg.texture.needsUpdate=!0})).catch((e=>{console.log(e)})),t.particle.c="image"),-1!==t.particle.particle.indexOf(".svg")?(t.isSVG=!0,await _tpt.loadSVG(t.particle.particle).then((e=>{if(null!==e){const a=100*t.particle.s*window.devicePixelRatio*(t.particle.gs+1);let i=e.getElementsByTagName("svg")[0];for(null!=i&&null!=i||(i=e);i.getElementsByTagName("svg").length>0;)i=i.getElementsByTagName("svg")[0];let n=parseFloat(i.getAttribute("width"))||a,s=parseFloat(i.getAttribute("height"))||a;i.setAttribute("width",n),i.setAttribute("height",s);const r=isFinite(n/s)&&n/s||1;n=r>=1?a:a*r,s=r>=1?a/r:a;let l=new Image;l.crossOrigin="Anonymous",l.src="data:image/svg+xml;base64,"+btoa((new XMLSerializer).serializeToString(i)),l.onload=function(){SR7.A.particlewave.tools.particleOnCanvas(n,s,l,t.ctxtemp)}}})).catch((e=>{console.log(e)}))):_tpt.isImageURL(t.particle.particle)&&await _tpt.loadSingleImage(t.particle.particle).then((e=>{let a,i,n=e.image;const s=100*t.particle.s*window.devicePixelRatio*(t.particle.gs+1),r=n.naturalWidthw/n.naturalHeight;isNaN(r)||0===r||!isFinite(r)?a=i=s:(a=r>=1?s:s*r,i=r>=1?s/r:s),SR7.A.particlewave.tools.particleOnCanvas(a,i,n,t.ctxtemp)})).catch((e=>{console.log(e)})),t);_tpt.R??={},_tpt.R.particlewave=_tpt.extend?_tpt.extend(_tpt.R.particlewave,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticleWaveReady"))}();
!function(){"use strict";window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===(SR7.A.particlewave?.anim??void 0)&&(SR7.A.particlewave={...SR7.A.particlewave,anim:{selector:a=>{let t=a.settings;var e=a.material.userData.u_time.value;"off"!=t.anim.mov&&("path"==t.anim.mov&&"hexa"!=t.lines.con&&SR7.A.particlewave.anim.path(a,e),"path"==t.anim.mov&&"hexa"===t.lines.con&&SR7.A.particlewave.anim.pathHexa(a,e),"pendulum"==t.anim.mov&&SR7.A.particlewave.anim.pendulum(a,e),"loop"==t.anim.mov&&SR7.A.particlewave.anim.loop(a))},path:(a,t)=>{let e=a.settings;switch(e.anim.p){case"ocean":a.camera.position.z=Math.sin(t*(e.anim.s/100))*(e.particle.a/3)+e.particle.a/3,a.camera.position.y=e.a/3,a.camera.lookAt(0,0,-e.particle.a/3);break;case"lost":a.scene.rotation.y+=a.tDiff/1e3*e.anim.s,a.camera.position.z=Math.sin(t*(e.anim.s/40))*(e.particle.a/6)+e.particle.a/6;break;case"round":a.camera.position.set(e.particle.a/4,e.a,0),a.scene.rotation.y-=a.tDiff/1e3*e.anim.s,a.camera.rotation.y=Math.PI/3,a.camera.rotation.x=-1*Math.PI/180,a.camera.rotation.z=1*Math.PI/180;break;case"oceanEdge":a.camera.position.z=Math.sin(t*(e.anim.s/100))*(e.particle.a/3)+e.particle.a/3,a.scene.rotation.z=Math.PI/2,a.camera.position.y=e.a/3,a.camera.lookAt(0,0,-e.particle.a/3);break;case"quarterPipe":a.camera.position.z=Math.sin(t*(e.anim.s/100))*(e.particle.a/3)+e.particle.a/3,a.camera.position.y=e.a/3,a.scene.rotation.x=Math.sin(t*(e.anim.s/100))*Math.PI/4+Math.PI/4;break;case"upAnDown":a.camera.position.z=Math.sin(t*(e.anim.s/50))*(e.particle.a/3)+e.particle.a/3,a.camera.position.y=Math.cos(t*(e.anim.s/50))*(e.particle.a/6),a.camera.lookAt(0,0,-e.particle.a/3),a.scene.rotation.y+=a.tDiff/1e3*e.anim.s;break;case"oceanEdgeSpin":a.camera.position.z=Math.sin(t*(e.anim.s/100))*(e.particle.a/3)+e.particle.a/3,a.camera.position.y=e.a/3,a.camera.lookAt(0,0,-e.particle.a/3),a.scene.rotation.z-=a.tDiff/400*e.anim.s}},pathHexa:(a,t)=>{let e=a.settings;switch(e.anim.pH){case"ocean":a.scene.rotation.x=(e.scene.t+37)*Math.PI/180,a.scene.position.z=2,a.camera.position.x=Math.sin(t*(e.anim.s/100))*(e.particle.a/12),a.camera.position.y=Math.cos(t*(e.anim.s/100))*(e.particle.a/14)+e.particle.a/12;break;case"round":a.scene.rotation.x=(e.scene.t+37)*Math.PI/180,a.camera.position.x=Math.sin(t*(e.anim.s/100))*(e.particle.a/6),a.camera.rotation.z-=a.tDiff/1e3*e.anim.s,a.camera.position.z=Math.min(2*Math.sin(t*(e.anim.s/100))+20,2*Math.sin(t*(e.anim.s/50))+18);break;case"handheld":a.scene.rotation.x=(e.scene.t+37)*Math.PI/180,a.camera.position.x=Math.sin(t*(e.anim.s/100))*(e.particle.a/6),a.scene.rotation.z=Math.sin(t*(e.anim.s/100))*(10*Math.PI)/180,a.camera.position.z=Math.min(2*Math.sin(t*(e.anim.s/50))+4*e.a,2*Math.sin(t*(e.anim.s/50))+18);break;case"oldOcean":a.camera.position.z=Math.sin(t*(e.anim.s/100))*(e.particle.a/3)+e.particle.a/3,a.camera.position.y=e.a-Math.sin(t*(e.anim.s/100))*e.a/2,a.camera.lookAt(0,0,-e.particle.a);break;case"oldLost":a.scene.rotation.y+=a.tDiff/1e3*e.anim.s,a.camera.position.y=1.5*e.a,a.camera.position.z=Math.sin(t*(e.anim.s/40))*(e.particle.a/6)+e.particle.a/6;break;case"oldRound":a.camera.position.set(e.particle.a/4,1.5*e.a,0),a.scene.rotation.y-=a.tDiff/1e3*e.anim.s,a.camera.rotation.y=60*Math.PI/180,a.camera.rotation.x=-1*Math.PI/180,a.camera.rotation.z=1*Math.PI/180}},pendulum(a,t){let e=a.settings;var i=Math.max(e.scene.sx,e.pendulum.x),n=Math.min(e.scene.sx,e.pendulum.x),s=Math.max(e.scene.sy,e.pendulum.y),o=Math.min(e.scene.sy,e.pendulum.y),c=Math.max(e.scene.sz,e.pendulum.z),r=Math.min(e.scene.sz,e.pendulum.z),m=new THREE.Vector3(Math.sin(t*(e.anim.s/100))*(i-n)/2+n+(i-n)/2,Math.sin(t*(e.anim.s/100))*(s-o)/2+o+(s-o)/2,Math.sin(t*(e.anim.s/100))*(c-r)/2+r+(c-r)/2+e.particle.a/2);"rounded"==e.pendulum.r&&a.camera.lookAt(-m.x,-m.y,-m.z),a.camera.position.copy(m);var p=Math.max(e.pendulum.t/180*Math.PI,e.scene.t/180*Math.PI),l=Math.min(e.pendulum.t/180*Math.PI,e.scene.t/180*Math.PI);a.scene.rotation.x=Math.sin(t*(e.anim.s/100))*(p-l)/2+l+(p-l)/2,a.camera.position.z=m.z+10;var h=Math.max(e.pendulum.a/180*Math.PI,e.scene.a/180*Math.PI),M=Math.min(e.pendulum.a/180*Math.PI,e.scene.a/180*Math.PI);a.scene.rotation.z=Math.sin(t*(e.anim.s/100))*(h-M)/2+M+(h-M)/2},loop:a=>{let t=a.settings;a.scene.rotation.x+=t.loop.t/5e3*a.tDiff*100,a.scene.rotation.y+=t.loop.z/5e3*a.tDiff*100,a.scene.rotation.z+=t.loop.a/5e3*a.tDiff*100}}},_tpt.R??={},_tpt.R.pw_Anim=_tpt.extend?_tpt.extend(_tpt.R.pw_Anim,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticleWaveAnimLoaded")))}();
!function(){"use strict";window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===(SR7.A.particlewave?.updateShader??void 0)&&(SR7.A.particlewave={...SR7.A.particlewave,updateShader:(e,n,a)=>{if(!window.beforeCompile){switch(e.vertexShader=e.vertexShader.replace("#include <common>","\n                #include <common>\n                uniform float u_time;\n                uniform float u_amplitude;\n                uniform float u_speed;\n                uniform float u_curve;\n                uniform vec4 u_color;\n                uniform vec3 u_color_lines;\n                uniform sampler2D u_pointTexture;\n    \n                attribute float wavePosX;\n                attribute float wavePosY;\n                attribute float random_factor;\n                float pi=3.14159265359;\n    \n                varying float v_wavePosX;\n                varying float v_wavePosY;\n                varying float v_wavePosZ;\n            "),e.vertexShader=e.vertexShader.replace("void main(){","\n                // functions\n                void main(){\n                    v_wavePosX=wavePosX;\n                    v_wavePosY=wavePosY;\n    \n                    float increaser=0.0;\n            "),n.type){case"default":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                        float f_speed=(u_time / u_curve) * u_speed;\n                        float offset=sin((f_speed + wavePosX) * u_curve) + sin((f_speed + wavePosY) * u_curve);\n    \n                        increaser +=offset + u_amplitude;\n                        \n                        #include <morphtarget_vertex>");break;case"plainx":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                        float f_speed=(u_time / u_curve) * u_speed;\n                        float offset=sin((f_speed + wavePosX) * u_curve);\n    \n                        increaser +=offset + u_amplitude;\n    \n                        #include <morphtarget_vertex>");break;case"plainz":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                        float f_speed=(u_time / u_curve) * u_speed;\n                        float offset=sin((f_speed + wavePosY) * u_curve);\n    \n                        increaser +=offset + u_amplitude;\n                        \n                        #include <morphtarget_vertex>");break;case"powerful":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                        float f_speed=(u_time / u_curve) * u_speed;\n                        //float offset=sin(f_speed) + sin(sin(u_curve) * wavePosX) + sin(sin(u_curve) * wavePosY);\n                        float offset=sin((f_speed + wavePosX) * u_curve) * wavePosX + sin((f_speed + wavePosY) * u_curve) * wavePosY;\n    \n                        increaser +=offset + u_amplitude;\n    \n                        #include <morphtarget_vertex>");break;case"funky":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                        float f_speed=sin((u_time / u_curve) * u_speed) * 12.5;\n                        float offset=sin(f_speed * wavePosX+sin(f_speed * wavePosX+sin(f_speed * wavePosX))) + sin(f_speed * wavePosY+sin(f_speed * wavePosY));\n                        \n                        increaser +=offset + u_amplitude;\n                        \n                        #include <morphtarget_vertex>")}switch(e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                transformed.y +=offset * u_amplitude;\n                v_wavePosZ=transformed.y;\n\n                #include <morphtarget_vertex>"),n.rv&&(e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                    transformed.y +=random_factor;\n    \n                    #include <morphtarget_vertex>")),e.fragmentShader=e.fragmentShader.replace("#include <common>","\n                #include <common>\n                uniform vec4 u_color;\n                uniform vec3 u_color_lines;\n                uniform sampler2D u_pointTexture;\n                varying float v_wavePosX;\n                varying float v_wavePosY;\n                varying float v_wavePosZ;\n                uniform float u_amplitude;\n                uniform float u_intensity;\n                uniform float u_isSVG;\n                varying float v_faceOpacity;\n            "),0!==n.numStops&&(e.fragmentShader=e.fragmentShader.replace("#include <common>","\n                    #include <common>\n                    uniform vec2 u_gradientStart;\n                    uniform vec2 u_gradientEnd;\n                    uniform vec4 u_colors[6];\n                    uniform float u_colorstops[6];\n                    uniform int u_numstops;\n                    uniform float u_windowHeight;\n                ")),e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                float opaX=1.0, opaZ=1.0;\n                float intens=u_intensity / 100.0;\n                #include <tonemapping_fragment>\n            "),n.balance.f){case"sides":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaX=-abs((v_wavePosX+0.5)*2.0)+1.0;\n                        #include <tonemapping_fragment>\n                    ");break;case"back":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=abs(v_wavePosY / 1.0);\n                        #include <tonemapping_fragment>\n                    ");break;case"front":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=-abs(v_wavePosY / 1.0) + 1.0;\n                        #include <tonemapping_fragment>\n                    ");break;case"backfront":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=-abs((v_wavePosY-0.5)*2.0)+1.0;\n                        #include <tonemapping_fragment>\n                    ");break;case"all":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=-abs((v_wavePosY-0.5)*2.0)+1.0;\n                        opaX=-abs((v_wavePosX+0.5)*2.0)+1.0;\n                        #include <tonemapping_fragment>\n                    ")}"color"==n.particle.c&&(0==n.numStops?e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        vec4 tempColor=vec4(float(u_color.x) / 255.0, float(u_color.y) / 255.0, float(u_color.z) / 255.0, u_color.a);\n                        float oCopy=gl_FragColor.a * tempColor.a;\n                        gl_FragColor=mix(gl_FragColor, tempColor, u_isSVG);\n                        gl_FragColor.a=oCopy;\n                        #include <tonemapping_fragment>\n                    "):e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>",'\n                        \n    \n                        vec4 c=vec4(0.0, 0.0, 0.0, 0.0);\n                        //float posX=(v_wavePosX + 1.0);\n                        float alpha=0.0 * 3.14/180.0;\n                        float reach=1.0;\n                        float posX=((v_wavePosX + 1.0)*cos(alpha) +  v_wavePosY*sin(alpha)) / reach;\n    \n                        //if needed translate to "v_wavePosZ"\n                        //If scene is no longer hard coded at 30x30, then the reach value must be calculated differently with that in mind\n    \n                        for(int i=0; i<c_numstops; i++){\n                            if(u_colorstops[i] <=posX&&posX <=u_colorstops[i+1]){\n                                c.x=mix(u_colors[i+1].x, u_colors[i].x, smoothstep(u_colorstops[i+1], u_colorstops[i], posX));\n                                c.y=mix(u_colors[i+1].y, u_colors[i].y, smoothstep(u_colorstops[i+1], u_colorstops[i], posX));\n                                c.z=mix(u_colors[i+1].z, u_colors[i].z, smoothstep(u_colorstops[i+1], u_colorstops[i], posX));\n                            }\n                        }\n    \n                        float oCopy=gl_FragColor.a;\n                        gl_FragColor=c;\n                        gl_FragColor.a=oCopy;\n    \n                        #include <tonemapping_fragment>\n                    ')),"image"==n.particle.c&&(e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>",`\n                    vec4 color=texture2D(u_pointTexture, ${!1===a?"vec2(abs(v_wavePosX), v_wavePosY)":"vUv"});\n    \n                    float oCopy=gl_FragColor.a * 1.0;\n                    gl_FragColor=mix(color, gl_FragColor, .5);\n                    gl_FragColor.a=oCopy;\n    \n                    #include <tonemapping_fragment>\n                `)),"keep"==n.particle.c&&(e.fragmentShader=e.fragmentShader.replace("#include <dithering_fragment>","\n                    #include <dithering_fragment>\n                ")),e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                gl_FragColor.a=min(opaX * intens, opaZ * intens) * gl_FragColor.a;\n                #include <tonemapping_fragment>\n            ")}},updateShader2:(e,n)=>{if(e.vertexShader=e.vertexShader.replace("#include <common>","\n                #include <common>\n                uniform float u_time;\n                uniform float u_amplitude;\n                uniform float u_speed;\n                uniform float u_curve;\n                uniform vec4 u_color;\n                uniform vec3 u_color_lines;\n    \n                attribute float wavePosX;\n                attribute float wavePosY;\n                attribute float random_factor;\n                float pi=3.14159265359;\n    \n                varying float v_wavePosX;\n                varying float v_wavePosY;\n                varying float v_hexaLightDiff;\n            "),e.vertexShader=e.vertexShader.replace("void main(){","\n                // functions\n                void main(){\n                    v_wavePosX=wavePosX;\n                    v_wavePosY=wavePosY;\n            "),"hexa"!==n.lines.con&&"off"!=n.lines.con&&0==n.lines.bF&&(e.vertexShader=e.vertexShader.replace("#include <common>","\n                    #include <common>\n                    varying float v_faceOpacity;\n                    attribute float a_faceColor;\n                ").replace("void main(){","\n                    // functions\n                    void main(){\n                        v_wavePosX=wavePosX;\n                        v_wavePosY=wavePosY;\n                        v_faceOpacity=a_faceColor;\n    \n                ")),"hexa"!==n.lines.con){switch(n.type){case"default":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                            float f_speed=(u_time / u_curve) * u_speed;\n                            float offset=sin((f_speed + wavePosX) * u_curve) + sin((f_speed + wavePosY) * u_curve);\n            \n                            transformed.y +=offset * u_amplitude;\n            \n                            #include <morphtarget_vertex>");break;case"plainx":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                            float f_speed=(u_time / u_curve) * u_speed;\n                            float offset=sin((f_speed + wavePosX) * u_curve);\n            \n                            transformed.y +=offset * u_amplitude;\n                            #include <morphtarget_vertex>");break;case"plainz":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                            float f_speed=(u_time / u_curve) * u_speed;\n                            float offset=sin((f_speed + wavePosY) * u_curve);\n            \n                            transformed.y +=offset * u_amplitude;\n                            #include <morphtarget_vertex>");break;case"powerful":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                            float f_speed=(u_time / u_curve) * u_speed;\n                            //float offset=sin(f_speed) + sin(sin(u_curve) * wavePosX) + sin(sin(u_curve) * wavePosY);\n                            float offset=sin((f_speed + wavePosX) * u_curve) * wavePosX + sin((f_speed + wavePosY) * u_curve) * wavePosY;\n            \n                            transformed.y +=offset * u_amplitude;\n                            #include <morphtarget_vertex>");break;case"funky":e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                            float f_speed=sin((u_time / u_curve) * u_speed) * 12.5;\n                            float offset=sin(f_speed * wavePosX+sin(f_speed * wavePosX+sin(f_speed * wavePosX))) + sin(f_speed * wavePosY+sin(f_speed * wavePosY));\n                            \n                            transformed.y +=offset * u_amplitude;\n                            #include <morphtarget_vertex>")}n.rv&&(e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n                        transformed.y +=random_factor;\n            \n                        #include <morphtarget_vertex>"))}else e.vertexShader=e.vertexShader.replace("#include <morphtarget_vertex>","\n    \n                    float f_speed=(u_time / u_curve) * u_speed;\n                    float offset=sin((f_speed + wavePosX) * u_curve) + sin((f_speed + wavePosY) * u_curve) + u_amplitude / 2.0;\n                    float maxoffset=2. + u_amplitude / 2.0;\n                    float hexaLightVal=abs(offset/maxoffset/10.);\n    \n                    if(a_hexaCount > 0.0){\n                        transformed.y +=offset * u_amplitude / 4.0;\n                        v_hexaLightDiff=0.8 + hexaLightVal;\n                    }\n                    else{\n                        hexaLightVal=abs(offset/maxoffset/20.);\n                        v_hexaLightDiff=0.8 + hexaLightVal;\n                        transformed.y +=offset * u_amplitude / 8.0;\n                    }\n                    #include <morphtarget_vertex>");switch(e.fragmentShader=e.fragmentShader.replace("#include <common>","\n                #include <common>\n                uniform vec4 u_color;\n                uniform vec3 u_color_lines;\n                uniform sampler2D u_pointTexture;\n                varying float v_wavePosX;\n                varying float v_wavePosY;\n                uniform float u_intensity;\n                varying float v_hexaLightDiff;\n            "),0!==n.numStops&&(e.fragmentShader=e.fragmentShader.replace("#include <common>","\n                    #include <common>\n                    uniform vec2 u_gradientStart;\n                    uniform vec2 u_gradientEnd;\n                    uniform vec4 u_colors[6];\n                    uniform float u_colorstops[6];\n                    uniform int u_numstops;\n                    uniform float u_windowHeight;\n                ")),"hexa"!==n.lines.con&&"off"!=n.lines.con&&0==n.lines.bF&&(e.fragmentShader=e.fragmentShader.replace("#include <common>","\n                    #include <common>\n                    varying float v_faceOpacity;\n                ")),e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                float opaX=1.0, opaZ=1.0;\n                #include <tonemapping_fragment>\n            "),n.balance.f){case"sides":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaX=-abs((v_wavePosX+0.5)*2.0)+1.0;\n                        #include <tonemapping_fragment>\n                    ");break;case"back":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=abs(v_wavePosY / 1.0);\n                        #include <tonemapping_fragment>\n                    ");break;case"front":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=-abs(v_wavePosY / 1.0) + 1.0;\n                        #include <tonemapping_fragment>\n                    ");break;case"backfront":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=-abs((v_wavePosY-0.5)*2.0)+1.0;\n                        #include <tonemapping_fragment>\n                    ");break;case"all":e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                        opaZ=-abs((v_wavePosY-0.5)*2.0)+1.0;\n                        opaX=-abs((v_wavePosX+0.5)*2.0)+1.0;\n                        #include <tonemapping_fragment>\n                    ")}"off"!==n.lines.con?("color"==n.particle.c&&n.numStops>0&&0==n.lines.cC&&(e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>",'\n                                vec4 c=vec4(0.0, 0.0, 0.0, 0.0);\n                                //float posX=(v_wavePosX + 1.0);\n                                float alpha=0.0 * 3.14/180.0;\n                                float reach=1.0;\n                                float posX=((v_wavePosX + 1.0)*cos(alpha) +  v_wavePosY*sin(alpha)) / reach;\n        \n                                //if needed translate to "v_wavePosZ"\n                                //If scene is no longer hard coded at 30x30, then the reach value must be calculated differently with that in mind\n        \n                                for(int i=0; i<c_numstops; i++){\n                                    if(u_colorstops[i] <=posX&&posX <=u_colorstops[i+1]){\n                                        c.x=mix(u_colors[i+1].x, u_colors[i].x, smoothstep(u_colorstops[i+1], u_colorstops[i], posX));\n                                        c.y=mix(u_colors[i+1].y, u_colors[i].y, smoothstep(u_colorstops[i+1], u_colorstops[i], posX));\n                                        c.z=mix(u_colors[i+1].z, u_colors[i].z, smoothstep(u_colorstops[i+1], u_colorstops[i], posX));\n                                    }\n                                }\n        \n                                float oCopy=gl_FragColor.a;\n                                gl_FragColor=c;\n                                gl_FragColor.a=oCopy;\n                                #include <tonemapping_fragment>\n                        ')),"image"==n.particle.c&&(n.lines.cC?e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                            vec4 color=texture2D(u_pointTexture, vUv);\n    \n                            gl_FragColor=vec4(float(u_color.x) / 255.0, float(u_color.y) / 255.0, float(u_color.z) / 255.0, u_color.a);\n    \n                            #include <tonemapping_fragment>\n                        "):e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                            vec4 color=texture2D(u_pointTexture, vUv);\n    \n                            float oCopy=gl_FragColor.a * color.a;\n                            gl_FragColor=color;\n                            gl_FragColor.a=oCopy;\n    \n                            #include <tonemapping_fragment>\n                        ")),n.lines.bF?("boxes"==n.lines.con&&(e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                            float intens=u_intensity / 100.0;\n                            gl_FragColor.a=min(opaX * intens, opaZ * intens) * gl_FragColor.a * v_faceOpacity;\n                            #include <tonemapping_fragment>\n                        ")),"triangles"==n.lines.con&&(e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                            float intens=u_intensity / 100.0;\n                            gl_FragColor.a=min(opaX * intens, opaZ * intens) * gl_FragColor.a * v_faceOpacity;\n                            #include <tonemapping_fragment>\n                        "))):e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>",`\n                        float intens=u_intensity / 100.0;\n                        ${"hexa"===n.lines.con?"gl_FragColor.rgb *=v_hexaLightDiff;":""}\n                        gl_FragColor.a=min(opaX * intens, opaZ * intens) * gl_FragColor.a;\n    \n                        #include <tonemapping_fragment>\n                    `)):!n.numStops&&n.numStops.length<0?e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                    float intens=u_intensity / 100.0;\n                    gl_FragColor.a=min(opaX * intens, opaZ * intens) * gl_FragColor.a * u_color.a;\n    \n                        #include <tonemapping_fragment>\n                    "):e.fragmentShader=e.fragmentShader.replace("#include <tonemapping_fragment>","\n                    float intens=u_intensity / 100.0;\n                    gl_FragColor.a=min(opaX * intens, opaZ * intens) * gl_FragColor.a;\n    \n                        #include <tonemapping_fragment>\n                    ")}},_tpt.R??={},_tpt.R.pw_Shaders=_tpt.extend?_tpt.extend(_tpt.R.pw_Shaders,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticleWaveShadersLoaded")))}();
!function(){"use strict";window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0===(SR7.A.particlewave?.tools??void 0)&&(SR7.A.particlewave={...SR7.A.particlewave,tools:{ToQuads:t=>{let e=t.parameters,r=e.tubularSegments||e.widthSegments||e.thetaSegments||e.points?.length-1||1,a=e.radialSegments||e.heightSegments||e.phiSegments||e.segments||1;"TorusGeometry"===t.type&&([r,a]=[a,r]);let o=[],s=(r+1)*(a+1);for(let t=0;t<=a;t++){let e=t*(r+1);for(let t=0;t<r;t++){let a=e+t,n=a+1,i=a+r+1;o.push(a,n),i<s-1&&o.push(a,i)}e+r+1<s-1&&o.push(e+r,e+r+r+1)}t.setIndex(o)},separateFaces:(t,e)=>{const r=t.attributes.position.array,a=t.attributes.uv.array,o=t.attributes.normal.array;let s=0,n=0;const i=(e,r)=>{let a;return t.setAttribute(e,new THREE.BufferAttribute(a=new Float32Array(t.index.count*r),r)),a},l=i("position",3),p=i("uv",2),c=i("normal",3);e.forEach((e=>{const r=t.attributes[e.name];e.oArr=r.array,e.nArr=i(e.name,r.itemSize)}));let d=t.index.array;t.index.count-1>65535&&t.index.count<4294967295&&(d=new Uint32Array(t.index.count));for(let i=0;i<t.index.count;i++){const w=t.index.array[i];d[i]=i,l.set(r.subarray(3*w,3*w+3),s),p.set(a.subarray(2*w,2*w+2),n),c.set(o.subarray(3*w,3*w+3),s),e.forEach((e=>{const r=t.attributes[e.name],a=w*r.itemSize;e.nArr.set(e.oArr.subarray(a,a+r.itemSize),i*r.itemSize)})),s+=3,n+=2}t.index.array=d,t.attributes.uv.needsUpdate=!0,t.attributes.position.needsUpdate=!0,t.attributes.normal.needsUpdate=!0,e.forEach((e=>t.attributes[e.name].needsUpdate=!0))},analyseGradient:(t,e,r)=>{let a=t.wpC_ori.angle;if("solid"!=(t.wpC?.type??"solid")&&t.wpC.colors?.length){t.numStops=t.wpC.colors.length,t.colorsArray=[],t.colorStopsArray=[];for(let e=0;e<6;e++){const r=e,a=new THREE.Vector4;e<t.numStops?(a.fromArray(_tpt.parseColor(t.wpC.colors[r].rgba)),t.colorsArray.push(a),t.colorStopsArray.push(t.wpC.colors[r].p/100)):(t.colorsArray.push(a),t.colorStopsArray.push(0))}const{tx:o,ty:s,bx:n,by:i}=_tpt.gradient.calcPoints(e,r,a);t.gradientStart.set(o,s),t.gradientEnd.set(n,i)}else t.numStops=0,t.wpC=(new THREE.Vector4).fromArray(t.color_par)},updateGradientTexture:t=>{let e=t.addOns.particlewave,r=e.settings;if("solid"==(r.wpC_ori?.type??"solid")||void 0===e.w||isNaN(e.w)||0===e.w||void 0===e.h||isNaN(e.h)||0===e.h)return;r.bg.canvas.width=e.w,r.bg.canvas.height=e.h;let a="radial"===r.wpC_ori?.type?r.bg.ctx.createRadialGradient(e.w/2,e.h/2,0,e.w/2,e.h/2,Math.max(e.w/2,e.h/2)):_tpt.gradient.getLinear(r.bg.ctx,e.w,e.h,r.wpC_ori?.angle||180);for(var o=0;o<r.wpC_ori?.colors.length;o++)a.addColorStop(r.wpC_ori?.colors[o].p/100,r.wpC_ori?.colors[o].rgba);r.bg.ctx.fillStyle=a,r.bg.ctx.fillRect(0,0,e.w,e.h),r.bg.ctx.scale(-1,1),r.bg.ctx.drawImage(r.bg.ctx.canvas,-e.w,0,e.w,e.h),r.bg.ctx.setTransform(1,0,0,1,0,0),r.bg.texture.needsUpdate=!0},particleOnCanvas:(t,e,r,a)=>{const o=Math.max(t,e)+4;r.width=t,r.height=e,a.canvas.width=a.canvas.height=o,["webkitImageSmoothingEnabled","msImageSmoothingEnabled","imageSmoothingEnabled"].forEach((t=>a[t]=!1)),a.drawImage(r,(o-t)/2+2,(o-e)/2+2,t-4,e-4)}}},_tpt.R??={},_tpt.R.pw_Tools=_tpt.extend?_tpt.extend(_tpt.R.pw_Tools,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticleWaveToolsLoaded")))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==(SR7.A.particlewave?.waves??void 0))return;SR7.A.particlewave={...SR7.A.particlewave,waves:{build:e=>{let i=SR7.A.particlewave,o=e.addOns.particlewave,u=o.settings;t(e),a(o,u);let m=l(u);if("hexa"!=u.lines.con){if(1==u.particle.on){const e=new THREE.BufferGeometry;e.setAttribute("position",new THREE.Float32BufferAttribute(m.points,3)),e.setAttribute("wavePosX",new THREE.Float32BufferAttribute(m.wavePosX,1)),e.setAttribute("wavePosY",new THREE.Float32BufferAttribute(m.wavePosY,1)),e.setAttribute("random_factor",new THREE.Float32BufferAttribute(m.random_factor,1));let t=new THREE.Points(e,o.material,m.count);o.group.add(t)}o.group.rotation.y=Math.PI;let e=new THREE.AmbientLight;o.group.add(e),i.adjustScene(o)}else r(o.scene,u),i.setSceneForHexa(o);"off"===u.lines.con||!u.lines.bF&&"hexa"!==u.lines.con||n(o,u,m),"off"===u.lines.con||"hexa"===u.lines.con||u.lines.bF||s(o,u,m),o.scene.add(o.group),o.renderer=new THREE.WebGLRenderer({antialias:!0,canvas:o.canvas.canvas,alpha:!0}),o.renderer.setPixelRatio(Math.min(u.scene.dpr,window.devicePixelRatio)),o.renderer.setSize(o.canvas.canvas.width,o.canvas.canvas.height),o.bindedRender=t=>{i.waves.render(e,t)},i.waves.initPP(e),c(e)},render:(e,t)=>{let a=SR7.A.particlewave,{id:r}=SR7.F.getLayer(e.el.id),n=e.addOns.particlewave,i=n.settings;if(n.destroyed||n.paused||(n.frame=cancelAnimationFrame(n.frame),n.frame=requestAnimationFrame(n.bindedRender)),void 0!==t&&void 0!==n.time){n.tDiff=(t-n.time)/1600,n.time=t,void 0!==n.lastDim&&n.lastDim.width===e.cw&&n.lastDim.height===e.ch||a.fitCameraToObject(e);if(i.clock.getElapsedTime()>i.clockCounter*(1/60)){if("timelinebased"===i.interaction.type){let t=e.tl?.[e.animState?.scene??void 0]?.TL?.time()||void 0;t&&(n.material.userData.u_time.value+=.1*(t-n.material.userData.u_time.value))}else if("scrollbased"===i.interaction.type&&SR7.M[r].settings.sbt?.use){let t=SR7.M[e.mid],a=Math.min(1,Math.max(0,(0-t.dims.moduleRect?.top??0)/((t.dims.moduleRect?.height??t.dims.module.h)-t.dims.module.h)));n.group.rotation.x+=.1*(i.interaction.t*a-n.group.rotation.x),n.group.rotation.z+=.1*(i.interaction.r*a-n.group.rotation.z),n.group.position.y+=.1*(i.interaction.sh*a-n.group.position.y),n.material.userData.u_time.value+=n.tDiff}else n.material.userData.u_time.value+=n.tDiff;i.clockCounter+=n.tDiff}"off"!=i.anim.mov&&a.anim.selector(n),"mousefollow"===i.interaction.type&&a.listeners.mouse.applyfollow(n),("glitch"!=i.design.fx||"hexa"!=i.lines.con)&&n.pp&&n.pp.composer?("bokeh"===i.design.fx&&(n.pp.effectPass.uniforms.maxblur.value=i.design.bb?_tpt.gsap.utils.mapRange(0,1,i.design.minb,i.design.maxb,Math.abs(Math.sin(Math.PI*(n.material.userData.u_time.value+.5)*.3))):i.design.maxb),"glitch"==i.design.fx&&(n.pp.effectPass.uniforms.width.value=e.cw,n.pp.effectPass.uniforms.height.value=e.ch,n.pp.effectPass.uniforms.progress.value=n.material.userData.u_time.value),n.pp.composer.render()):n.renderer.render(n.scene,n.camera)}else n.time=t},initPP:e=>{let t=e.addOns.particlewave,a=t.settings;if(t&&"off"!==a.design.fx&&!t.ppEnabled&&void 0!==e.cw&&void 0!==e.ch&&0!==e.cw&&0!==e.ch)switch(t.ppEnabled=!0,a.design.fx){case"bokeh":t.pp=SR7.WEBGL.postProcessing("BokehPass",t.renderer,t.scene,t.camera,{focus:a.design.f/1,aperture:1e-5*a.design.a,maxblur:a.design.maxb,transparent:!0,width:e.cw,height:e.ch});break;case"glitch":t.pp=SR7.WEBGL.postProcessing("GlitchNoisePass",t.renderer,t.scene,t.camera,{progress:2,transparent:!0,duration:1,width:e.cw,height:e.ch})}},update:e=>{let t=SR7.A.particlewave,a=e.addOns.particlewave,r=a.settings;a.material.userData.u_amplitude.value=r.a,a.material.userData.u_speed.value=r.s,a.material.userData.u_curve.value=r.curve,a.material.userData.u_scale.value=r.particle.gs,"hexa"==a.settings.lines?t.setSceneForHexa(a):t.adjustScene(a)},resize:(e,t,a)=>{let r=e.addOns.particlewave;r.w=t,r.h=a,r.camera&&(r.camera.aspect=r.w/r.h,r.camera.updateProjectionMatrix(),r.renderer.setSize(r.w,r.h))},destroy:t=>{let a=t.addOns.particlewave;a&&(a.destroyed=!0,e(a),a.frame&&(cancelAnimationFrame(a.frame),a.frame=null),a.renderer=null,a.scene=null,a.camera=null)}}};const e=e=>{e.material&&(e.material.map&&e.material.map.dispose(),e.material.dispose(),e.material=null),e.group&&(e.group.traverse((e=>{(e.isMesh||e.isPoints)&&(e.geometry&&e.geometry.dispose(),e.material&&(e.material.map&&e.material.map.dispose(),e.material.dispose()))})),e.scene.remove(e.group),e.group=null),e.texture&&(e.texture.dispose(),e.texture=null),e.renderer&&(e.renderer.dispose(),e.renderer.domElement.remove(),e.renderer.domElement=null)};let t=e=>{let t=e.addOns.particlewave,a=t.settings;t.camera=new THREE.PerspectiveCamera(70,e.cw/e.ch,1,1e3),t.scene=new THREE.Scene,t.group=new THREE.Group,t.camera.position.z=20,SR7.A.particlewave.tools.analyseGradient(a,t.canvas.canvas.width,t.canvas.canvas.height),t.texture=new THREE.CanvasTexture(a.canvastemp),t.texture.needsUpdate=!0,a.clockCounter??=0},a=(e,t)=>{e.material=new THREE.PointsMaterial({map:e.texture,side:THREE.DoubleSide,transparent:!0,size:t.particle.s}),"off"!==t.blend&&(e.material.depthTest=!1);const a={additive:THREE.AdditiveBlending,normal:THREE.NormalBlending,custom:THREE.CustomBlending};e.material.blending=a[t.blend],Object.assign(e.material.userData,{u_time:{value:0},u_rp:{value:!1},u_amplitude:{value:t.a},u_speed:{value:t.s},u_curve:{value:t.c},u_scale:{type:"f",value:t.particle.gs},u_color:{value:t.color_par},u_color_lines:{value:t.color},u_pointTexture:{value:t.bg?.texture??void 0},u_intensity:{value:t.balance.oI},u_gradientStart:{value:t.gradientStart},u_gradientEnd:{value:t.gradientEnd},u_colors:{value:t.colorsArray},u_colorstops:{value:t.colorStopsArray},u_numstops:{value:t.numStops},u_windowHeight:{value:800},u_isSVG:{value:t.isSVG?1:"keep"==t.particle.c?0:1}}),e.material.onBeforeCompile=function(a){i(a.uniforms,e.material.userData),a.uniforms.u_scale=e.material.userData.u_scale,a.vertexShader=a.vertexShader.replace("#include <common>","\n                    #include <common>\n                    attribute float a_faceColor;\n                    varying float v_faceOpacity;\n                    uniform float u_scale;\n                ").replace("void main(){","\n                    float map(float a, float b, float c, float d, float v, float cmin, float cmax){\n                        return clamp((v - a) * (d - c) / (b - a) + c, cmin, cmax);\n                    }\n                    void main(){\n                        v_faceOpacity=a_faceColor;\n                ").replace("#include <project_vertex>","\n                    vec4 mvPosition=vec4(transformed, 1.0);\n                    #ifdef USE_INSTANCING\n                        mvPosition=instanceMatrix * mvPosition;\n                    #endif\n                    mvPosition=modelViewMatrix * mvPosition;\n                    gl_Position=projectionMatrix * mvPosition;\n                ").replace("gl_PointSize=size;","\n                    gl_PointSize=size * map(0., 1., 1. - u_scale, 1. + u_scale, offset, 1. - u_scale, 1. + u_scale);\n                "),a.fragmentShader=a.fragmentShader.replace("#include <common>",`\n                    #include <common>\n                    const int c_numstops=${t.numStops};\n                `),SR7.A.particlewave.updateShader(a,t,!1)}};const r=(e,t)=>{const a=t.wpC.length/2,r=(e,t,a,r)=>{const n=new THREE.PointLight(e,.2,100);return n.position.set(t,a,r),n},n=(t,a)=>{for(let n=0;n<6;n++){const i=12*n-24;e.add(r(t,i,-10,0+-3*a*12),r(t,i,10,0+-3*a*12))}};if(isNaN(a)){const e=_tpt.getHexColor(t.color_par);for(let t=0;t<2;t++)n(e,t)}else{const e=Array(6).fill(!1),a=t.colorStopsArray.map((e=>Math.round(5*e)));a.forEach(((t,a)=>{e.includes(t)&&(e[t]=a)})),e.forEach(((t,r)=>{if(!1===t){const t=a.map((e=>e-r)),n=t.map(Math.abs),i=Math.min(...n),o=n.findIndex((e=>e===i));e[r]=e[r+t[o]]}}));for(let a=0;a<2;a++)n(new THREE.Color(t.wpC[2*e[a]]),a)}};let n=(e,t,a)=>{let r,n,{points:s,wavePosX:l,wavePosY:c,random_factor:u}=a;for(var m=new THREE.PlaneGeometry(1,1,t.particle.a-1,t.particle.a-1),d=m.attributes.position.array,p=m.attributes.normal.array,f=0;f<m.attributes.position.count;f++){var v=3*f;d.set(s.subarray(v,v+3),v),p.set([0,1,0],v)}if("hexa"!==t.lines.con)r=_tpt.getHexColor(t.particle.on&&t.lines.cC?t.color:t.color_par),n=new THREE.MeshStandardMaterial({color:r,side:THREE.DoubleSide,transparent:!0,depthTest:!1});else{const S={color:16777215,side:THREE.DoubleSide,transparent:!0},x="matte"===t.lines.f?THREE.MeshLambertMaterial:THREE.MeshPhongMaterial;x===THREE.MeshPhongMaterial&&(S.shininess=60),n=new x(S)}m.setAttribute("wavePosX",new THREE.BufferAttribute(l,1)),m.setAttribute("wavePosY",new THREE.BufferAttribute(c,1)),m.setAttribute("random_factor",new THREE.BufferAttribute(u,1)),SR7.A.particlewave.tools.separateFaces(m,[{name:"wavePosX",size:1},{name:"wavePosY",size:1},{name:"random_factor",size:1}]);var _=new Float32Array(m.index.count);if(m.setAttribute("a_faceColor",new THREE.BufferAttribute(_,1)),"triangles"===t.lines.con)for(f=0;f<m.attributes.position.count;f++)m.attributes.a_faceColor.array[f]=f%6>2?0:1;if("boxes"===t.lines.con)for(f=0;f<m.attributes.position.count;f+=12){let y=.7*Math.sin(Math.PI*f/m.attributes.position.count)+.3;for(var w=0;w<12;w++)m.attributes.a_faceColor.array[f+w]=y}var g=new Float32Array(m.index.count);if(m.setAttribute("a_hexaCount",new THREE.BufferAttribute(g,1)),"hexa"===t.lines.con){var h=m.attributes.a_faceColor.array,E=m.attributes.a_hexaCount.array,b=t.particle.a*(t.particle.a/2);function T(e,t,a){for(var r=0;r<a.length;r++)e[t+r]=a[r]}for(f=1;f<b;f+=1.5){let A=12*f;T(h,A+3,[1,1,1,1,1,1,1,1,1]),T(h,A+174,[1,1,1,1,1,1,1,1,1]),E[A]=E[A+4]=E[A+7]=E[A+9]=E[A+177+2]=E[A+174+2]=f}}e.material.userData.u_color={value:t.color_par},n.onBeforeCompile=function(a){i(a.uniforms,e.material.userData),a.uniforms.u_pointTexture=e.material.userData.u_pointTexture,a.vertexShader=a.vertexShader.replace("#include <common>","\n                #include <common>\n                attribute float a_faceColor;\n                attribute float a_hexaCount;\n                varying float v_faceOpacity;\n                uniform float u_scale;\n            ").replace("void main(){","\n                // functions\n                void main(){\n                    v_faceOpacity=a_faceColor;\n            "),SR7.A.particlewave.updateShader2(a,t),a.fragmentShader=a.fragmentShader.replace("#include <common>",`\n                #include <common>\n                const int c_numstops=${t.numStops};\n                varying float v_faceOpacity;\n            `),o(a)};var R=new THREE.Mesh(m,n);e.group.add(R)},i=(e,t)=>{e.u_time=t.u_time,e.u_amplitude=t.u_amplitude,e.u_speed=t.u_speed,e.u_curve=t.u_curve,e.u_color=t.u_color,e.u_color_lines=t.u_color_lines,e.u_intensity=t.u_intensity,e.u_pointTexture=t.u_pointTexture,e.u_gradientStart=t.u_gradientStart,e.u_gradientEnd=t.u_gradientEnd,e.u_colors=t.u_colors,e.u_colorstops=t.u_colorstops,e.u_numstops=t.u_numstops,e.u_windowHeight=t.u_windowHeight,e.u_isSVG=t.u_isSVG},o=e=>{e.vertexShader=e.vertexShader.replace("#include <common>","\n\t\t\t\t#include <common>\n\t\t\t\t#define USE_UV true"),e.fragmentShader=e.fragmentShader.replace("#include <common>","\n\t\t\t\t#include <common>\n\t\t\t\t#define USE_UV true")},s=(e,t,a)=>{let{points:r,wavePosX:n,wavePosY:s,random_factor:l}=a;var c=new THREE.PlaneGeometry(1,1,t.particle.a-1,t.particle.a-1);c.attributes.position.array.set(r);const u=[0,1,0],m=new Float32Array(3*c.attributes.normal.count);for(let e=0;e<m.length;e+=3)m.set(u,e);c.attributes.normal.array.set(m);var d,p,f=c;("boxes"===t.lines.con&&SR7.A.particlewave.tools.ToQuads(f),"triangles"===t.lines.con)?(p=t.particle.on&&t.lines.cC?_tpt.getHexColor(t.color):_tpt.getHexColor(t.color_par),d=new THREE.Mesh(f,new THREE.MeshBasicMaterial({color:p,wireframe:!0,transparent:!0,opacity:t.lines.o}))):"boxes"===t.lines.con&&(t.lines.cC?((d=new THREE.LineSegments(f)).material.color=new THREE.Color(_tpt.getHexColor(t.color)),d.material.transparent=!0,d.material.opacity=t.lines.o):0==t.numStops?((d=new THREE.LineSegments(f)).material.color=new THREE.Color(_tpt.getHexColor(t.color_par)),d.material.transparent=!0,d.material.opacity=t.lines.o):((d=new THREE.LineSegments(f)).material.color=new THREE.Color(_tpt.getHexColor(t.color)),d.material.transparent=!0,d.material.opacity=t.lines.o));d.geometry.setAttribute("wavePosX",new THREE.BufferAttribute(n,1)),d.geometry.setAttribute("wavePosY",new THREE.BufferAttribute(s,1)),d.geometry.setAttribute("random_factor",new THREE.BufferAttribute(l,1)),d.material.userData.u_color={value:t.color},d.material.onBeforeCompile=function(a){i(a.uniforms,e.material.userData),a.uniforms.u_pointTexture=e.material.userData.u_pointTexture,a.fragmentShader=a.fragmentShader.replace("#include <common>",`\n                #include <common>\n                const int c_numstops=${t.numStops};\n            `),SR7.A.particlewave.updateShader2(a,t),o(a)},e.group.add(d)},l=e=>{for(var t,a,r=e.particle.a*e.particle.a,n=new Float32Array(r),i=new Float32Array(r),o=new Float32Array(r),s=0,l=0,c=-(1*e.particle.a-1)/2,u=(1*e.particle.a-1)/2,m=new Float32Array(3*r),d=0;d<1*e.particle.a;d+=1){l=0,t=d/e.particle.a;for(var p=0;p>1*-e.particle.a;p-=1)m[3*s]=(c-p)*e.particle.g,m[3*s+1]=0,m[3*s+2]=(u-d)*e.particle.g+("hexa"==e.lines.con?l%2==0?-e.lines.hS:e.lines.hS:0),a=p/e.particle.a,n[s]=Math.sin(a),i[s]=Math.sin(t),o[s]=(Math.random()*e.rv-e.rv/2)/10,s++,l++}return{points:m,wavePosX:n,wavePosY:i,random_factor:o,count:r}},c=e=>{let t=SR7.A.particlewave,a=e.addOns.particlewave;"mousefollow"!=!a.settings.interaction.type&&(_tpt.is_mobile?(a.lerp=.01,a.px=0,a.py=0,a.tx=0,a.ty=0,a.bindedmousefollow=e=>{t.listeners.mouse.follow(a)},window.addEventListener("deviceorientation",(function(e){a.pEvent=e,void 0===a.pFrame&&(a.pFrame=requestAnimationFrame(a.bindedmousefollow))}))):(a.lerp=.001,a.mouseX=.5,a.mouseY=.5,a.targetX=.5,a.targetY=.5,a.settings.interaction.mb||(a.canvas.canvas.addEventListener("mouseenter",(function(a){t.listeners.mouse.enter(a,e)})),a.canvas.canvas.addEventListener("mouseleave",(function(a){t.listeners.mouse.leave(a,e)})),a.canvas.canvas.addEventListener("mousemove",(function(a){t.listeners.mouse.move(a,e)})))))};_tpt.R??={},_tpt.R.pw_Waves=_tpt.extend?_tpt.extend(_tpt.R.pw_Waves,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7ParticleWaveWavesLoaded"))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.polyfold)return;let t={pI:t=>parseInt(t),pID:t=>parseInt(t)/100,pF:t=>parseFloat(t),s:t=>String(t),b:t=>"on"===t||!0===t||1===t||"off"!==t&&!1!==t&&0!==t&&t,k:t=>t};SR7.A.polyfold={style:".rs-addon-polyfold {position: absolute;left: 0;width: 100%;height: auto;z-index: 1099;pointer-events: none;}.rs-addon-polyfold div {position: absolute;border-style: solid;box-sizing: content-box}.rs-addon-poly-nav-level {z-index: 999}.rs-addon-poly-static-level {z-index: 99}.rs-addon-polyfold:not(.rs-addon-poly-center) div:first-child {left: 0}.rs-addon-polyfold:not(.rs-addon-poly-center) div:last-child {right: 0}.rs-addon-poly-center div:first-child {right: 50%}.rs-addon-poly-center div:last-child {left: 50%}.rs-addon-polyfold:not(.rs-addon-poly-top), .rs-addon-polyfold:not(.rs-addon-poly-top) div {bottom: 0}.rs-addon-poly-top {top: 0}.rs-addon-poly-top div {top: 0}",getLayerBasics:(t={},e)=>({u:"compare"==e?void 0:t.u??t.enable??!1}),getModuleBasics:(e={},o)=>{let s="migrate"==o,i="normalize"==o,l={u:"compare"==o?void 0:e.u??e.enable??!0};for(let o of["top","bottom"])l[o[0]]={u:e[o[0]]?.u??e[o]?.enabled??!1,pos:o,a:e[o[0]]?.a??e[o]?.animated??!1,c:e[o[0]]?.c??(s?_tpt.gradient.convert(e[o]?.color??"#ffffff",!0):"#ffffff"),e:e[o[0]]?.e??e[o]?.ease??"ease-in-out",h:t[i?"pI":"k"](e[o[0]]?.h??e[o]?.height??100),mobile:e[o[0]]?.mobile??e[o]?.hideOnMobile??!1,i:e[o[0]]?.i??e[o]?.inverted??!1,left:t[i?"pI":"k"](e[o[0]]?.left??e[o]?.leftWidth??50),right:t[i?"pI":"k"](e[o[0]]?.right??e[o]?.rightWidth??50),neg:e[o[0]]?.neg??e[o]?.negative??!1,place:t[i?"pI":"k"](e[o[0]]?.placement??e[o]?.placement??1),point:e[o[0]]?.point??e[o]?.point??"sides",range:e[o[0]]?.range??e[o]?.range??"slider",resp:e[o[0]]?.responsive??e[o]?.responsive??!0,sc:e[o[0]]?.scroll??e[o]?.scroll??!0,t:e[o[0]]?.time??e[o]?.time??.3},i&&(l[o[0]].right*=.01,l[o[0]].left*=.01);return l},getLayerWraps:(t,e)=>{const o=SR7.M[t];if(""+(o.settings?.addOns?.polyfold?.u??!1)!="false"&&void 0!==e.addOns.polyfold&&"slidebg"!=e.subtype)return{wrap:{use:!0,class:"sr-wb-wrap"},innerWrap:{use:!0,class:"sr-wb-inner"}}},init:t=>{void 0===SR7.A.polyfoldcss&&(_tpt.injectCssJs(SR7.A.polyfold.style,void 0,void 0,"polyfold_global_styles"),SR7.A.polyfoldcss=!0);let e=SR7.M[t];SR7.M[t].c.moduleListeners??={},SR7.M[t].c.moduleListeners.polyfold??={},_tpt.scrollObserver.observe(SR7.M[t].c.module),SR7.F.module.listeners.init(t),_tpt.scrollObserver.observe(SR7.M[t].c.module),SR7.F.module.listeners.init(t),SR7.A.polyfold.listeners.init(t),e.addOns??={},e.addOns.polyfold??={},e.addOns.polyfold.settings=SR7.A.polyfold.getModuleBasics(e.settings.addOns.polyfold,"normalize");for(let s of["top","bottom"])e.addOns.polyfold.settings?.[s[0]]?.u&&(e.addOns.polyfold[s]=new o(t,e.addOns.polyfold.settings[s[0]]))},listeners:{init:t=>{let e=SR7.A.polyfold;e.listenersAdded?.[t]||(SR7.M[t].c.moduleListeners.polyfold.scroll??=SR7.F.module.listeners.reg(t,"scroll",(function(t){SR7.A.polyfold.scrolled(t)})),e.listenersAdded??={},e.listenersAdded[t]=!0)}},scrolled:t=>{for(let e of["top","bottom"])SR7.M[t].addOns.polyfold[e]&&SR7.M[t].addOns.polyfold[e].draw()}};let e={base:"rs-addon-polyfold",top:"rs-addon-poly-top",bottom:"rs-addon-poly-bottom",center:"rs-addon-poly-center",navLevel:"rs-addon-poly-nav-level",staticLevel:"rs-addon-poly-static-level"};function o(t,e){SR7.M[t];return this.id=t,this.settings=e,this.calc=!1,this.init(),this}o.prototype={init:function(){let t=SR7.M[this.id],o=this.settings,s=document.createElement("div"),i=document.createDocumentFragment();this.left=document.createElement("div"),this.right=document.createElement("div");let l=e[o.pos],d=e.base+" "+e[o.pos]+(o.place>1?" "+(2==o.place?e.navLevel:e.staticLevel):"");o.a&&_tpt.injectCssJs("#"+t.c.module.id+"_wrapper ."+l+" div {transition: border-width "+o.t+"s "+o.e+";}",void 0,void 0,this.id+"_"+o.pos+"_polyfold_styles"),"center"===o.point&&(d+=" "+e.center),i.appendChild(this.left),i.appendChild(this.right),s.className=d,s.appendChild(i),this.colors(),this.draw(),this.draw(),this.draw(),t.c.content.appendChild(s)},colors:function(){let t,e,o=this.settings,s=o.c.string;o.neg?(t="top"==o.pos?"transparent "+s+" transparent transparent":"transparent transparent "+s+" transparent",e=("top"==o.pos?s+" ":"")+"transparent transparent transparent "+("top"!==o.pos?s:"")):(t=("top"==o.pos?s+" ":"")+"transparent transparent transparent "+("top"!==o.pos?s:""),e="top"==o.pos?"transparent "+s+" transparent transparent":"transparent transparent "+s+" transparent"),this.left.style.borderColor=t,this.right.style.borderColor=e},draw:function(){let t,e,o,s=SR7.M[this.id],i=this.settings;if(this.drawHeight=this.range?s.dims.module.h:_tpt.winH,this.polyHeight=Math.min(this.responsive?Math.round(i.height*(s.dims.module.w/s.dims.CFC.w)):i.h,s.dims.module.h),i.sc){if(!(s.dims.moduleRect.top+window.pageYOffset<_tpt.winH+window.pageYOffset&&s.dims.moduleRect.bottom>0))return 1;{let e=this.left.getBoundingClientRect().top;if("top"!==i.pos)t=!1!==this.calc?i.i?s.dims.moduleRect.bottom:s.dims.moduleRect.bottom-this.calc:e,this.calc=i.i?this.polyHeight-this.polyHeight*((this.drawHeight-t)/this.drawHeight):this.polyHeight*((this.drawHeight-t)/this.drawHeight);else{var l=this.range?_tpt.winH-s.dims.module.h:0;t=!1!==this.calc?i.i?s.dims.moduleRect.top:parseInt(s.dims.moduleRect.top)+parseInt(this.calc):e,this.calc=i.i?this.polyHeight-this.polyHeight*((t-l)/this.drawHeight):this.polyHeight*((t-l)/this.drawHeight)}this.calc=Math.floor(Math.min(Math.max(this.calc,0),this.polyHeight))}}else this.calc=this.polyHeight;if(i.neg?"top"!==i.pos?(e="0 0 "+this.calc+"px "+Math.round(s.dims.module.w*i.left)+"px",o=this.calc+"px 0 0 "+Math.round(s.dims.module.w*i.right)+"px"):(e="0 "+Math.round(s.dims.module.w*i.left)+"px "+this.calc+"px 0",o=this.calc+"px "+Math.round(s.dims.module.w*i.right)+"px 0 0"):"top"!==i.pos?(e=this.calc+"px 0 0 "+Math.round(s.dims.module.w*i.left)+"px",o="0 0 "+this.calc+"px "+Math.round(s.dims.module.w*i.right)+"px"):(e=this.calc+"px "+Math.round(s.dims.module.w*i.left)+"px 0 0",o="0 "+Math.round(s.dims.module.w*i.right)+"px "+this.calc+"px 0"),this.left.style.borderWidth=e,this.right.style.borderWidth=o,i.sc)return t}},_tpt.R??={},_tpt.R.polyfold=_tpt.extend?_tpt.extend(_tpt.R.polyfold,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TypeWriterReady"))}();
!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.revealer)return;let e=e=>parseInt(e);SR7.A.revealer={inUse:0,style:".sr7_revealer, .sr7_reveal_overlay {width: 100%;height: 100%;position: absolute;top: 0;left: 0;}.sr7_revealer {z-index: 9999;overflow: hidden;}.sr7_revealer div,.sr7_revealer svg {position: absolute;}.sr7_revealer svg {width: 100%;height: 100%;}",getModuleBasics:(t={},r)=>{let o,a="normalize"===r;return o={u:"compare"==r?void 0:t.u??t.enable??!0,direction:t.direction??"open_horizontal",color:t.color??"#000000",easing:t.easing??"Power2.easeOut",duration:t.duration??500,delay:t.delay??0,overlay:{enable:t.overlay_enabled??t.overlay?.enable??!1,color:t.overlay_color??t.overlay?.color??"#000000",easing:t.overlay_easing??t.overlay?.easing??"Power2.easeOut",duration:t.overlay_duration??t.overlay?.duration??500,delay:t.overlay_delay??t.overlay?.delay??0}},a&&(o.color=_tpt.gradient.convert(o.color).string,o.duration=.001*(e(o.duration)||500),o.delay=.001*Math.max(0,Math.min(200,e(o.delay)))||0,o.overlay.color=_tpt.gradient.convert(o.overlay.color).string,o.overlay.duration=.001*(e(o.overlay.duration)||500),o.overlay.delay=.001*Math.max(0,Math.min(200,e(o.overlay.delay)))||0),o},init:e=>{let t=SR7.M[e],r=t.settings.addOns.revealer;if(""+(r.u??!1)!="false"){if(void 0===SR7.A.revealercss&&(_tpt.injectCssJs(SR7.A.revealer.style,void 0,void 0,"revealer_global_styles"),SR7.A.revealercss=!0),window.hasOwnProperty("RsAddonRevealerCustom")){let e=document.URL.split("?");2===e.length&&window.RsAddonRevealerCustom.hasOwnProperty(e[1])&&"itm_1"!==e[1]&&(r=SR7.A.revealer.getModuleBasics(window.RsAddonRevealerCustom[e[1]]))}"none"!==r.direction&&(t.c.addOns??={},t.c.addOns.revealer=SR7.A.revealer.getModuleBasics(r,"normalize"),SR7.A.revealer.listeners.init(e))}},listeners:{init:e=>{SR7.A.revealer.inUse++,SR7.A.revealer.listenersAdded||(document.addEventListener("sr.slide.beforeChange",SR7.A.revealer.listeners.beforeChange),document.addEventListener("sr.layer.action",SR7.A.revealer.listeners.layerAction),SR7.A.revealer.listenersAdded=!0)},beforeChange:e=>{const t=SR7.M[e.id]?.c?.addOns?.revealer;t&&""+(t.u??!1)!="false"&&!t.prepared&&SR7.A.revealer.prepareRevealer(e.id)},layerAction:e=>{const{id:t,eventtype:r}=e,o=SR7.M[t]?.c?.addOns?.revealer;"enterstage"==r&&o&&!o.revealing&&(o.revealing=!0,SR7.A.revealer.reveal(t),SR7.A.revealer.inUse--,0==SR7.A.revealer.inUse&&(removeEventListener("sr.slide.beforeChange",SR7.A.revealer.listeners.beforeChange),removeEventListener("sr.layer.action",SR7.A.revealer.listeners.layerAction),SR7.A.revealer.listenersAdded=!1))}},prepareRevealer:e=>{let o=SR7.M[e],a=o.c.addOns.revealer;a.c={},a.c.wrap=_tpt.addContainer({tag:"sr7-revealer",class:"sr7_revealer"}),a.opens=-1!==a.direction.search("open"),a.corner=-1!==a.direction.search("corner"),a.o1={ease:a.easing??"power3.inOut",onComplete:()=>{SR7.A.revealer.onFinish(e)}},a.o2={ease:a.easing??"power3.inOut"},a.type="reveal",a.abort=!1,a.tw=null,a.prepared=!0,""+(a.overlay.enable??!1)=="true"&&(a.c.overlay=_tpt.addContainer({tag:"sr7-revealer-overlay",class:"sr7_reveal_overlay",datas:{style:"background: "+a.overlay.color}}),a.c.wrap.appendChild(a.c.overlay)),a.corner?r(e):t(e),o.c.content.appendChild(a.c.wrap)},reveal:e=>{let t=SR7.M[e],r=t.c.addOns.revealer;if(!r.abort)switch(r.c.overlay&&_tpt.gsap.to(r.c.overlay,r.overlay.duration,{opacity:0,ease:r.overlay.easing??"power3.inOut",delay:r.overlay.delay,onComplete:()=>{SR7.A.revealer.onFinish(e)}}),r.type){case"svg":_tpt.gsap.to(r.c.point1,r.duration,r.o1),_tpt.gsap.to(r.c.point2,r.duration,r.o2);break;case"clip":if(!o())return void SR7.A.revealer.onResize(e);let a={point:0};r.o1.point=110,r.o1.onUpdate=function(){t.c.content.style.clipPath="circle("+a.point+"% at 50% 50%)"},r.tw=_tpt.gsap.to(a,r.duration,r.o1);break;default:_tpt.gsap.to(r.c.sideOne,r.duration,r.o1),r.opens&&_tpt.gsap.to(r.c.sideTwo,r.duration,r.o2)}},onResize:e=>{const t=SR7.M[e].c.addOns.revealer;t.abort=!0,Object.entries(t.c).forEach((([e,t])=>{_tpt.gsap.killTweensOf(t)})),t.tw&&(t.tw.eventCallback("onUpdate",null),t.tw.kill(),t.tw=null),SR7.A.revealer.onComplete(e)},onFinish:e=>{const t=SR7.M[e].c.addOns.revealer;t.c.overlay&&!t.finished||SR7.A.revealer.onComplete(e),t.finished=!0},onComplete:e=>{const t=SR7.M[e].c.addOns.revealer;"clip"===t.type&&(SR7.M[e].c.content.style.clipPath=null),Object.entries(t.c).forEach((([e,t])=>{t.remove()})),delete t.c}};const t=e=>{let t,r,o,a=SR7.M[e],n=a.c.addOns.revealer;switch(t="background: "+n.color+"; ",n.opens&&(r="background: "+n.color+"; "),n.direction){case"open_horizontal":t+="width: 50%; height: 100%; top: 0; left: 0",r+="width: 50%; height: 100%; top: 0; left: 50%",n.o1.width="0%",n.o2.left="100%";break;case"open_vertical":t+="width: 100%; height: 50%; top: 0; left: 0",r+="width: 100%; height: 50%; top: 50%; left: 0",n.o1.height="0%",n.o2.top="100%";break;case"shrink_circle":let e=2*Math.max(a.dims.module.w,a.dims.module.h);t+="width: "+e+"px; height: "+e+"px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%",n.o1.width="0",n.o1.height="0";break;case"expand_circle":n.type="clip",a.c.content.style.clipPath="circle(0% at 50% 50%)";break;case"left_to_right":t+="width: 100%; height: 100%; top: 0; left: 0",n.o1.left="100%";break;case"right_to_left":t+="width: 100%; height: 100%; top: 0; left: 0",n.o1.width="0%";break;case"top_to_bottom":t+="width: 100%; height: 100%; top: 0; left: 0",n.o1.top="100%";break;case"bottom_to_top":t+="width: 100%; height: 100%; top: 0; left: 0",n.o1.height="0%";break;case"tlbr_skew":o=Math.atan2(a.dims.module.w,a.dims.module.h),t+="width: 200%; height: 200%; top: 0%; left: -100%; transform: skew(-"+o+"rad)",n.o1.left="100%";break;case"trbl_skew":o=Math.atan2(a.dims.module.w,a.dims.module.h),t+="width: 200%; height: 200%; top: 0%; right: -100%; transform: skew("+o+"rad)",n.o1.right="100%";break;case"bltr_skew":o=Math.atan2(a.dims.module.w,a.dims.module.h),t+="width: 200%; height: 200%; bottom: -100%; left: 0%; transform: skew("+o+"rad)",n.o1.bottom="100%";break;case"brtl_skew":o=Math.atan2(a.dims.module.w,a.dims.module.h),t+="width: 200%; height: 200%; bottom: -100%; right: 0; transform: skew(-"+o+"rad)",n.o1.bottom="100%"}n.c.sideOne=_tpt.addContainer({datas:{style:t}}),n.c.wrap.appendChild(n.c.sideOne),n.opens&&(n.c.sideTwo=_tpt.addContainer({datas:{style:r}}),n.c.wrap.appendChild(n.c.sideTwo))},r=e=>{let t=SR7.M[e].c.addOns.revealer,r=_tpt.gradient.getSVGReference(t.color);switch(t.type="svg",t.c.sideOne=_tpt.createNS({n:"svg",id:"revealer_"+e}),t.c.sideOne.setAttribute("viewBox","0 0 500 500"),t.c.sideOne.setAttribute("preserveAspectRatio","none"),t.direction){case"split_left_corner":t.c.point1=_tpt.createNS({n:"polygon",c:"sr7_addon_point1",v:{points:"0,0 500,0 500,500",fill:r,stroke:r,strokeWidth:1}}),t.c.sideOne.appendChild(t.c.point1),t.c.point2=_tpt.createNS({n:"polygon",c:"sr7_addon_point2",v:{points:"0,0 0,500 500,500",fill:r,stroke:r,strokeWidth:1}}),t.c.sideOne.appendChild(t.c.point2),t.o1.x=500,t.o2.x=-500;break;case"split_right_corner":t.c.point1=_tpt.createNS({n:"polygon",c:"sr7_addon_point1",v:{points:"0,0 500,0 0,500",fill:r,stroke:r,strokeWidth:1}}),t.c.sideOne.appendChild(t.c.point1),t.c.point2=_tpt.createNS({n:"polygon",c:"sr7_addon_point2",v:{points:"500,0 500,500 0,500",fill:r,stroke:r,strokeWidth:1}}),t.c.sideOne.appendChild(t.c.point2),t.o1.x=-500,t.o2.x=500}t.c.wrap.appendChild(t.c.sideOne)},o=()=>{const e=document.createElement("div"),t=["webkit","moz","ms","o",""].map((e=>""===e?"clipPath":`${e}ClipPath`));for(const r of t)if(e.style[r]="polygon(0 0, 100% 0, 100% 100%, 0 100%)","polygon(0 0, 100% 0, 100% 100%, 0 100%)"===e.style[r])return!0;return!1};_tpt.R??={},_tpt.R.revealer=_tpt.extend?_tpt.extend(_tpt.R.revealer,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7RevealerReady"))}();
!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.transitionpack)return;function e(e,t){return"t1"!==t&&"t2"!==t&&(t="random"),"random"===t&&(t=Math.random()>.5?"t1":"t2"),"t1"===t?"1. - uv."+e:"uv."+e}SR7.A.transitionpack={cache:{},init:e=>["THREE","WEBGL"],prepareLayer:(e,t)=>{SR7.M[e];if("slidebg"!==t.subtype)return;const a=[],r=t?.tl?.in?.bg?.addOns?.tpack?.ef??void 0,n=t?.tl?.in?.bg?.addOns?.tpack?.dplm??1,s=SR7.A.transitionpack.dplmlib[n]?.src??void 0;return void 0!==r&&(a.push(_tpt.getShader("tpack",r,SR7.E.resources.tpackURL+"public/shaders/"+("fadeb"==r?"fade":r)+".glsl")),"hero"==e&&console.log("Load for Texture:",SR7.E.resources.tpackURL+"public/shaders/"+("fadeb"==r?"fade":r)+".glsl")),s&&a.push(new Promise((t=>{_tpt.registerImage(SR7.E.resources.tpackURL+"public/textures/"+s,1,(function(e){try{SR7.A.transitionpack.textures??={},SR7.A.transitionpack.textures[e.params.dplmid]=e.image}catch(e){console.log(e)}t()}),"tpack_textures_"+n+"_"+e,{dplmid:n})}))),a},dplmlib:{1:{src:"transition/transition1.png"},2:{src:"transition/transition2.png"},3:{src:"transition/transition3.png"},4:{src:"transition/transition4.png"},5:{src:"transition/transition5.png"},6:{src:"transition/transition6.png"},7:{src:"displacement/disp1.jpg"},8:{src:"displacement/disp2.jpg"},9:{src:"displacement/disp3.jpg"},10:{src:"transition/transition7.png"},11:{src:"displacement/cracks.jpg"},12:{src:"displacement/tunnel.jpg"},13:{src:"displacement/waterfall.jpg"},14:{src:"displacement/wire.jpg"},15:{src:"displacement/zigzag.jpg"},16:{src:"displacement/paper.jpg"},17:{src:"transition/transition5v.png"}},addPASS:function(e,t){if(void 0!==SR7.WEBGL.postProcessing){switch(t.pp){case"GlitchPass":case"glitches":t.ppga=parseFloat(t.ppga),t.ppgs=parseFloat(t.ppgs),t.ppgr=parseFloat(t.ppgr),t.ppgl=parseFloat(t.ppgl),e.three.postRendering=SR7.WEBGL.postProcessing("GlitchPass",e.three.renderer,e.three.scene,e.three.camera,{seed:t.ppgs,amount:t.ppga,repeat:t.ppgr,len:t.ppgl});break;case"GlitchNoisePass":case"glitch2":e.three.postRendering=SR7.WEBGL.postProcessing("GlitchNoisePass",e.three.renderer,e.three.scene,e.three.camera,{duration:e.dur,width:e.width/_tpt.dpr,height:e.height/_tpt.dpr});break;case"BlurPass":case"blur":if("motion"===t.ppbt){var a={};"skew"==t.ef&&1==t.sh&&(a.name="m=qinticOut(m, 10.);",a.function="float qinticOut(float t, float power){ return 1.0 - pow(1. - t, power); }"),isNaN(Math.round(t.smartX))||isNaN(Math.round(t.smartY))||(e.three.postRendering=SR7.WEBGL.postProcessing("BlurPass",e.three.renderer,e.three.scene,e.three.camera,{left:Math.round(t.smartX),top:Math.round(t.smartY),width:e.width/_tpt.dpr,height:e.height/_tpt.dpr,intensity:.1,inlineEase:a}))}break;case"FilmPass":case"film":t.ppfn=parseFloat(t.ppfn),t.ppfs=parseFloat(t.ppfs),t.ppfh=parseFloat(t.ppfh),t.ppfbw="true"==t.ppfbw||1==t.ppfbw&&"false"!=t.ppfbw,e.three.postRendering=SR7.WEBGL.postProcessing("FilmPass",e.three.renderer,e.three.scene,e.three.camera,{noise:t.ppfn/100,scale:t.ppfs/100,size:t.ppfh,grayscale:t.ppfbw})}e.three.postRendering&&(e.three.postRendering.type=t.pp)}},fitCameraToObject:function(e,t){e.three.lastDim={width:e.width/_tpt.dpr,height:e.height/_tpt.dpr},e.three.camera.aspect=e.width/e.height,"cubetwist"===t.tpack.ef&&e.height>e.width&&(e.three.camera.aspect=e.height/e.width),e.three.CY=1/e.three.camera.aspect,e.three.camera.updateProjectionMatrix(),e.three.renderer.setSize(e.width/_tpt.dpr,e.height/_tpt.dpr,!1),SR7.D.transitions[e.callFromAnimatedCanvasUpdateEffect].fit(e),e.three.camera.fov=2*Math.atan(e.three.CY/(2*e.three.camera.position.z))*(180/Math.PI),e.three.camera.updateProjectionMatrix()},webGlSceneUpdate:function(e,t){e&&e.three&&e.three.canvas&&e.three.camera&&e.three.canvas.offsetHeight&&(void 0!==e.three.lastDim&&e.three.lastDim.width===e.width&&e.three.lastDim.height===e.height||SR7.A.transitionpack.fitCameraToObject(e,t),(e.video||e.panzoom)&&(e.three.texture.needsUpdate=!0),e.three.camera.updateProjectionMatrix(),e.three.renderer.render(e.three.scene,e.three.camera),e.three.postRendering&&e.three.postRendering.effectPass&&e.three.postRendering.effectPass.uniforms&&e.three.postRendering.effectPass.uniforms.progress&&(e.three.postRendering.effectPass.uniforms.progress.value=e.three.progress.value),e.three.postRendering&&e.three.postRendering.composer&&e.three.postRendering.composer.render(),e.three.postRendering&&e.three.postRendering.nodepost&&e.postRendering.nodepost.render(e.three.scene,e.three.camera,e.postRendering.frame),"spin"!==t.tpack.ef&&"rings"!==t.tpack.ef&&"perspective"!==t.tpack.ef&&"zoom"!==t.tpack.ef&&"blur"!==t.tpack.ef||void 0===t.tpack.ao||"none"===t.tpack.ao||function(e,t){var a=parseFloat(t.ox)/100,r=parseFloat(t.oy)/100;if("center"===t.ao)a+=(1-a-.5)*e.three.progress.value,r+=(1-r-.5)*e.three.progress.value;else if("inverse"===t.ao)a+=(1-a-a)*e.three.progress.value,r+=(1-r-r)*e.three.progress.value;else{var n="";t.ao,n="M0,0 C0,31 12.502,53.904 21,71.666 23.297,76.474 41.612,87.014 41.612,87.014 41.612,87.014 55.195,91.292 59.191,89.37 65.079,86.535 74.337,76.113 76.821,70.068 79.289,64.058 79.603,50.337 77.786,44.101 76.012,38.014 68.806,26.324 63.206,23.354 58.575,20.897 46.201,21.762 42.33,25.295 38.918,28.407 39.793,39.227 40.895,43.712 41.873,47.695 50.179,57.243 50.179,57.243";var s={x:0,y:0},i=_tpt.gsap.to(s,{motionPath:{path:n},ease:"none"});i.pause().progress(e.three.progress.value),a=s.x/100,r=1-s.y/100,i.kill(),i=null}"perspective"===t.ef&&(e.three.material.uniforms.angle.value=Math.atan2(.5-a,.5-r));e.three.material.uniforms.ox.value=a,e.three.material.uniforms.oy.value=r}(e,t.tpack))}},SR7.D??={},SR7.D.transitions??={},SR7.D.transitions.tpbasic={getBasic:()=>({addOns:{tpack:{sx:1,sy:1,sz:1,o:0,sr:1,rx:180,ry:180,rz:90,col:1,row:1,cgz:250,gz:250,gx:0,gy:0,ie:"power2.inOut",ige:"power2.inOut",pp:"none",ppbf:100,ppbm:4,ppba:20,ppbt:"motion",ppga:90,ppgr:5,ppgs:.3,ppgl:120,ppfn:80,ppfs:82,ppfh:256,ppfbw:!1,ef:"fade",dplm:1,mfl:0,dir:0,dbas:!1,tlt:0,rad:90,w:35,iny:1,x:0,y:0,z:"default",td:1,ref:.4,flo:30,twe:"simple",twa:0,twv:230,twz:30,twd:"left",twdi:30,tws:"rgba(0, 0, 0, 0.7)",twf:"rgba(0, 0, 0, 0.7)",prange:100,stri:30,strs:1,strf:1,sko:0,sh:!1,shx:0,shy:0,shz:0,shr:0,shv:80,roz:-2,ox:50,oy:50,cicl:"rgba(0, 0, 0, 0.3)",cish:0,cispl:4,cimw:!1,cio:"alternate",cico:!1,ciad:!1,chm1:"random",chm2:"random",chm3:"random",chm4:"random"}}}),buildTimeline:(e,t,a,r,n,s)=>{n.tpack=n.addOns.tpack,n.tpack.oy=100-parseInt(n.tpack.oy),a.dur=n.dur=n.ms/(n.sec??a.sec);let i=SR7.M[e]?.c?.leavingBG??!1;return a.panzoom=t.canvas.pan,a.video=t.media||i&&i.media,SR7.WEBGL.cleanThree(i?i.el:t.el,a,".sr7-tpack-canvas"),a.three=SR7.WEBGL.getCanvas({class:"sr7-tpack-canvas"}),a.three.ms=n.ms/1e3,i?i.el.appendChild(a.three.canvas):t.el.appendChild(a.three.canvas),a.three.planeAspectRatio=16/9,a.three.fov=150,SR7.A.transitionpack.webGlSceneUpdate(a,n),a.callFromAnimatedCanvasUpdateEffect=n.e,a.three.renderer=new THREE.WebGLRenderer({canvas:a.three.canvas,alpha:!0}),a.three.renderer.setClearColor(16777215,0),a.three.camera=new THREE.PerspectiveCamera(a.three.fov,a.three.canvas.width/a.three.canvas.height,.1,1e3),a.three.camera.position.z=50,a.three.scene=new THREE.Scene,SR7.D.transitions[n.e].init(a,n,t,e),a.onCompleteCallback=function(e,t,a){e.hideCanvasAnim=_tpt.gsap.to(e.three.canvas,.3,{opacity:0,onStart:function(){let e=SR7.M[a]?.c?.leavingBG??!1;e?e.canvas.canvas.style.display="block":t.canvas.canvas.style.display="block"},onComplete:function(){t.canvas.drawImg(t.canvas.cacheAltSrc,_tpt.dpr,!0);let r=SR7.M[a]?.c?.leavingBG??!1;SR7.M[a].current.id==t.skey&&"in"==e.scene?(SR7.WEBGL.cleanThree(t.el,e,".sr7-tpack-canvas"),r&&SR7.WEBGL.cleanThree(r.el,e,".sr7-tpack-canvas")):SR7.M[a].prev.id==t.skey&&"out"==e.scene?SR7.WEBGL.cleanThree(r.el,e,".sr7-tpack-canvas"):(SR7.A.transitionpack.cache[a]??={},SR7.A.transitionpack.cache[a][t.skey]={el:t.el,T:e}),SR7.D.transitions.tpbasic.fullCleanUp(a)}})},a.onInterruptCallback=(e,t,a)=>{let r=SR7.M[a]?.c?.leavingBG??!1;r?r.canvas.canvas.style.display="block":t.canvas.canvas.style.display="block",SR7.WEBGL.cleanThree(r?r.el:t.el,e,".sr7-tpack-canvas"),t.canvas.drawImg(t.canvas.cacheAltSrc,_tpt.dpr,!0)},_tpt.gsap.timeline({onUpdate:function(){SR7.D.transitions[n.e].tick(a,t),SR7.A.transitionpack.webGlSceneUpdate(a,n)}})},fullCleanUp:e=>{if(SR7.A.transitionpack.cache[e]){let t=Object.keys(SR7.A.transitionpack.cache[e]);for(let a=0;a<t.length;a++)t[a]!==SR7.M[e].current.id&&t[a]!==SR7.M[e].prev.id&&(SR7.WEBGL.cleanThree(SR7.A.transitionpack.cache[e][t[a]].el,SR7.A.transitionpack.cache[e][t[a]].T,".sr7-tpack-canvas"),delete SR7.A.transitionpack.cache[e][t[a]])}},build:function(e,t,a){const{three:r}=e,{camera:n,scene:s}=r;r.CY=1/n.aspect,s.remove(r.light),s.add(r.light=new THREE.AmbientLight("#ffffff",1)),t.canvas.drawImg(t.canvas.cacheAltSrc,1,!0);let i=r.texture=new THREE.CanvasTexture(t.canvas.canvas);if(i.wrapS=THREE.RepeatWrapping,i.wrapT=THREE.RepeatWrapping,i.repeat.set(1,1),SR7.M[a]?.c?.leavingBG){let e=r.texture_leaving=new THREE.CanvasTexture(SR7.M[a].c.leavingBG.canvas.canvas);e.wrapS=THREE.RepeatWrapping,e.wrapT=THREE.RepeatWrapping,e.repeat.set(1,1),r.material_leaving=new THREE.MeshPhongMaterial({transparent:!0,map:e})}},init:async function(e,t,a,r){t.tpack.ef="fadeb"===t.tpack.ef?"fade":t.tpack.ef,SR7.D.transitions.tpbasic.build(e,a,r);let{uniforms:n,tpack:s}=await SR7.D.transitions.tpbasic.getUniforms(e,t),i=await _tpt.getShader("tpack",t.tpack.ef,SR7.E.resources.tpackURL+"public/shaders/"+s.ef+".glsl");"chaos"===t.tpack.ef&&(i=i.replace("#replaceChaos",n.replace),delete n.replace),n.src1={value:e.three.texture_leaving},n.src2={value:e.three.texture},n.progress={value:0},n.threshold={value:.1},n.resolution={value:new THREE.Vector4},n.displacement?.value&&(n.displacement.value.needsUpdate=!0);const p={extensions:{derivatives:"#extension GL_OES_standard_derivatives:enable"},side:THREE.DoubleSide,defines:n.defines||{},uniforms:n,vertexShader:"varying vec2 vUv;void main(){vUv=uv;gl_Position=projectionMatrix * modelViewMatrix * vec4(position, 1.0);}",fragmentShader:"#if __VERSION__ < 130 \n#define TEXTURE2D texture2D \n#else \n#define TEXTURE2D texture \n#endif\n"+i,uniformsNeedUpdate:!0};delete n.defines,e.three.material=new THREE.ShaderMaterial(p),e.three.material.transparent=void 0!==n.src1.value,SR7.D.transitions.tpbasic.planeAndFit(e,t),SR7.A.transitionpack.addPASS(e,s),SR7.D.transitions.tpbasic.updateResolution(e,s)},getTexture:(e=1)=>{let t=new THREE.Texture(SR7.A.transitionpack.textures[e]);return t.image=SR7.A.transitionpack.textures[e],t},getUniforms:function(e,a){let r=_tpt.extend({},a.tpack);return r.z="default"==r.z?"flat"==r.ef?100:"spin"==r.ef?0:250:r.z,r.smartX=SR7.F.getSpecialValue(r.x,void 0,e.sdir),r.smartY=SR7.F.getSpecialValue(r.y,void 0,e.sdir),r.smartZ=SR7.F.getSpecialValue(r.z,void 0,e.sdir),r.smartTilt=SR7.F.getSpecialValue(r.tlt,void 0,e.sdir),r.smartIntensity=SR7.F.getSpecialValue(r.iny,void 0,e.sdir),1==r.dbas&&(r.dir=1===e.sdir?r.dir:0==r.dir?1:1==r.dir?0:2==r.dir?3:2),{uniforms:t[r.ef]&&t[r.ef](e,r)||{},tpack:r}},planeAndFit:function(e,t){e.three.plane=SR7.WEBGL.getPlane(e.three.material),e.three.scene.add(e.three.plane),SR7.A.transitionpack.fitCameraToObject(e,t)},updateResolution:function(e){e.three.material.uniforms.resolution.value.x=e.width/_tpt.dpr,e.three.material.uniforms.resolution.value.y=e.height/_tpt.dpr,e.three.material.uniforms.resolution.value.z=1,e.three.material.uniforms.resolution.value.w=1,e.three.imageAspect=e.three.texture.image.height/e.three.texture.image.width,e.video||e.panzoom||(e.height/e.width>this.imageAspect?e.three.material.uniforms.resolution.value.z=e.width/e.height*e.three.imageAspect:e.three.material.uniforms.resolution.value.w=e.height/e.width/e.three.imageAspect)},extendTimeLine:function(e,t,a){var r=new _tpt.gsap.timeline;return e.three.progress={value:1},r.add(_tpt.gsap.from(e.three.progress,parseInt(t.ms)/1e3,{value:0,delay:.05,ease:t.tpack.ie})),r},tick:function(e,t){e.three.material&&(e.three.material.uniforms.progress.value=e.three.progress.value)},fit:function(e){e.three.plane&&e.three.plane.scale.set(1,e.three.CY)}};const t={fade:(e,{mfl:t,dplm:a})=>{const r=!!t&&(1===t||1!==e.sdir),n=17===a||6===a;return{flipx:{value:!n&&r},flipy:{value:!!n&&r},displacement:{value:SR7.D.transitions.tpbasic.getTexture(a)}}},wave:(e,{rad:t,w:a,dplm:r})=>({radius:{value:parseInt(t)/100,min:.1,max:2},width:{value:parseInt(a)/100,min:0,max:1},displacement:{value:SR7.D.transitions.tpbasic.getTexture(r)}}),burnover:(e,{dplm:t})=>({displacement:{value:SR7.D.transitions.tpbasic.getTexture(t)}}),burn:(e,{dir:t,smartIntensity:a})=>({dir:{value:t},intensity:{value:.03*a}}),chaos:(t,{chm1:a,chm2:r,chm3:n,chm4:s,smartX:i,smartY:p,smartIntensity:l,prange:o})=>{const c=`\n\t\t\tvw.x=${e("y",a)} * ${e("x",r)} * intensity;\n\t\t\tvw.y=${e("x",n)} * ${e("y",s)} * intensity;\n\t\t\t`;return{left:{value:Math.round(i)},top:{value:Math.round(p)},intensity:{value:parseFloat(l)/10},prange:{value:parseInt(o)/100*.5},replace:c}},stretch:(e,{strs:t,smartX:a,smartY:r,smartIntensity:n,stri:s,strf:i})=>{const p=parseInt(t)/10,l=_tpt.gsap.utils.mapRange,o=p<1?l(0,1,100,10,p):l(1,10,10,2,p);return{left:{value:Math.round(a)},top:{value:0===a?Math.round(r):0},dir:{value:0===a?2:1},intensity:{value:n},twistIntensity:{value:parseInt(s)/10},twistSize:{value:o},flipTwist:{value:i?-1:1}}},skew:(e,{smartX:t,smartY:a,smartIntensity:r,sko:n,prange:s,sh:i,shx:p,shy:l,shz:o,shr:c,shv:u})=>{const d=t&&a?0:t?1:2,h=SR7.F.getSpecialValue(c),v=_tpt.gsap.utils.mapRange;return{left:{value:Math.round(t)},top:{value:Math.round(a)},dir:{value:d},intensity:{value:r/100*(d?30:10)},origin:{value:parseInt(n)/100},prange:{value:parseInt(s)/200},sh:{value:i},shx:{value:SR7.F.getSpecialValue(p,void 0,e.sdir)/100},shy:{value:SR7.F.getSpecialValue(l,void 0,e.sdir)/100},shz:{value:SR7.F.getSpecialValue(o,void 0,e.sdir)/50},shr:{value:h?_tpt.DEG2RAD*h:0},shv:{value:v(0,100,6,1,parseInt(u))}}},perspective:(e,{ox:t,oy:a,roz:r,pr:n,prange:s})=>{const i=parseInt(t)/100,p=parseInt(a)/100,l=Math.atan2(.5-i,.5-p),o=SR7.F.getSpecialValue(r,void 0,e.sdir);return{ox:{value:i},oy:{value:p},intensity:{value:parseInt(n)},rotation:{value:_tpt.DEG2RAD*(180*Math.round(o,void 0,e.sdir))},isShort:{value:o%2!=0},angle:{value:l},prange:{value:parseInt(s)/100*.5}}},spin:(e,{ox:t,oy:a,smartIntensity:r,roz:n,smartZ:s,prange:i})=>{const p=Math.round(SR7.F.getSpecialValue(n,void 0,e.sdir)),l=-s;return{ox:{value:parseInt(t)/100},oy:{value:parseInt(a)/100},intensity:{value:0===r?0:r/100},roz:{value:p},zoom:{value:l>0?l/10:l/100},isShort:{value:p%2!=0},prange:{value:parseInt(i)/100*.5}}},cut:(e,{dir:t,w:a,ssx:r,ssy:n,dplm:s})=>({dir:{value:t},width:{value:parseInt(a)/10,min:0,max:10},scaleX:{value:parseInt(r)/100*60,min:.1,max:60},scaleY:{value:parseInt(n)/100*60,min:.1,max:60},displacement:{value:SR7.D.transitions.tpbasic.getTexture(s)}}),flat:(e,{smartX:t,smartY:a,smartTilt:r,smartZ:n,prange:s})=>({left:{value:Math.round(t)},top:{value:Math.round(a)},tilt:{value:r/100},zoom:{value:n/100},prange:{value:parseInt(s)/100*.5}}),pano:(e,{smartX:t,smartY:a,smartTilt:r,smartIntensity:n,smartZ:s,prange:i})=>({left:{value:Math.round(t)},top:{value:Math.round(a)},tilt:{value:r/100},pano:{value:1-n/100},zoomOut:{value:s/100},prange:{value:parseInt(i)/100*.5}}),overroll:(e,{dir:t,smartIntensity:a,dplm:r})=>({dir:{value:t},intensity:{value:.01*a},displacement:{value:SR7.D.transitions.tpbasic.getTexture(r)}}),water:(e,{smartIntensity:t})=>({intensity:{value:t/100*10,min:0,max:10}}),zoomover:(e,{smartIntensity:t})=>({intensity:{value:t/100,min:0,max:3}}),morph:(e,{smartX:t,smartY:a,smartIntensity:r})=>({left:{value:Math.round(t)},top:{value:Math.round(a)},intensity:{value:r/100,min:0,max:1}}),waterdrop:(e,{smartIntensity:t,rad:a})=>({speed:{value:t},amplitude:{value:parseInt(a)},firstIn:{value:!e.notFirstIn}}),mosaic:(e,{smartX:t,smartY:a})=>({endx:{value:t,min:-50,max:50},endy:{value:a,min:-50,max:50}}),mirrorcube:(e,{gz:t,ref:a,flo:r})=>({persp:{value:.7},unzoom:{value:parseFloat(t)/100},reflection:{value:a},floating:{value:parseFloat(r)/10}}),rings:(e,{ox:t,oy:a,smartIntensity:r,roz:n,cio:s,cicl:i,cispl:p,cish:l,cico:o,ciad:c,cimw:u,prange:d})=>{const h=r?11-r/10:0,v=Math.round(SR7.F.getSpecialValue(n,void 0,e.sdir)),m="none"!==s,g="grad"===s?1:"solid"===s?2:0,f=(R=i,3==(R=_tpt.gsap.utils.splitColor(R)).length&&(R[3]=1),R[0]/=255,R[1]/=255,R[2]/=255,R);var R;return{ox:{value:parseInt(t)/100},oy:{value:parseInt(a)/100},iny:{value:h},roz:{value:v},isShort:{value:v%2!=0},Splits:{value:p},iColor:{value:f},s:{value:parseInt(l)/100},useo:{value:m},grado:{value:g},cover:{value:o},altDir:{value:c},cnprog:{value:u},prange:{value:parseInt(d)/200},defines:{splits:p}}},zoom:(e,{ox:t,oy:a,roz:r,zi:n,zo:s,zwo:i,zwi:p,zb:l,prange:o,zre:c})=>{const u=Math.round(SR7.F.getSpecialValue(r,void 0,e.sdir)),d=_tpt.gsap.utils.mapRange,h=e=>parseFloat(e);return s=-s,n=-n,{ox:{value:h(t)/100},oy:{value:h(a)/100},roz:{value:u},isShort:{value:u%2!=0},zOut:{value:h(s)>0?h(s)/10:h(s)/100},zIn:{value:h(n)<0?h(n)/10:h(n)/100},blur:{value:h(l)/100},warpOut:{value:i?d(0,100,10,.5,h(i)):0},warpIn:{value:p?d(0,100,10,.5,h(p)):0},prange:{value:h(o)/100*.15},rEnd:{value:h(c)/100}}},colormelt:(e,{})=>{var t=[.05,.1],a=[.4,.5],r=[.7,.8];return{zoomStrength:{value:.5},amo:{value:15},sd:{value:1.4},Cs:{value:1.7},rMin:{value:t[0]},rMax:{value:t[1]},gMin:{value:a[0]},gMax:{value:a[1]},bMin:{value:r[0]},bMax:{value:r[1]}}},colorflow:(e,{smartX:t,smartY:a,smartIntensity:r,dplm:n})=>({angle:{value:Math.atan2(Math.round(t),Math.round(a))-45*_tpt.DEG2RAD},left:{value:Math.abs(Math.round(a))},top:{value:Math.abs(Math.round(a))},intensity:{value:r/100*3,min:0,max:3},displacement:{value:SR7.D.transitions.tpbasic.getTexture(n)}}),blur:(e,{ox:t,oy:a,roz:r,zo:n,zi:s,smartX:i,smartY:p,smartIntensity:l,prange:o,zre:c})=>{const u=Math.round(SR7.F.getSpecialValue(r,void 0,e.sdir)),d=-parseFloat(s),h=-parseFloat(n);return{left:{value:Math.round(i)},top:{value:Math.round(p)},ox:{value:parseInt(t)/100},oy:{value:parseInt(a)/100},roz:{value:u},isShort:{value:u%2!=0},zOut:{value:h>0?h/10:h/100},zIn:{value:d>0?d/10:d/100},prange:{value:parseInt(o)/100*.3*.5},rEnd:{value:parseFloat(c)/100},intensity:{value:l/100,min:0,max:1}}}};_tpt.R??={},_tpt.R.transitionpack=_tpt.extend?_tpt.extend(_tpt.R.transitionpack,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7AdvancedTransitionsReady"))}();
!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))})()})();