function initializeScrollRevealTriggers(){function e(e){const t=e.hasClass("awb-title__scroll-reveal--color_change")?.9:.5,a=void 0!==e.data("scroll-reveal-behavior")?e.data("scroll-reveal-behavior"):"always";let i={trigger:e,start:"top 80%",end:"clamp(top 20%)",scrub:t};return"play"===a&&(i.onLeave=e=>e.getTween().eventCallback("onComplete",()=>e.kill(!1))),i}function t(t,a){triggerOptions=e(t),triggerOptions.scrub=!1,triggerOptions.onLeave=()=>{a.scrollTrigger.disable(!1),a.play()},triggerOptions.onLeaveBack=()=>{a.pause(),a.progress(0),a.scrollTrigger.enable(!0)},ScrollTrigger.create(triggerOptions)}jQuery(window).on("fusion-element-render-fusion_title",function(e,t){const a=jQuery('div[data-cid="'+t+'"]').find('[class*="awb-title__scroll-reveal"]');a.length&&a.reinitScrollReveal()}),jQuery(window).on("fusion-resize-horizontal",function(){jQuery('.fusion-title[class*="awb-title__scroll-reveal"]').each(function(){jQuery(this).reinitScrollReveal()})}),jQuery.fn.reinitScrollReveal=function(){const e=jQuery(this),t=gsap.getById(e.data("scroll-reveal-counter"));t&&(t.progress(0).kill(),SplitType.revert(e.find(".fusion-title-heading"))),""!==jQuery.trim(e.find(".fusion-title-heading").text())&&setTimeout(function(){switch(e.data("scroll-reveal-effect")){case"color_change":default:e.awbTitleScrollRevealColorChange();break;case"unblur":e.awbTitleScrollRevealUnblur();break;case"random_assemble":e.awbTitleScrollRevealRandomAssemble();break;case"slide_up":case"slide_down":e.awbTitleScrollRevealSlide();break;case"turn":e.awbTitleScrollRevealTurn();break;case"rotate":e.awbTitleScrollRevealRotate();break;case"scale_up":e.awbTitleScrollRevealScaleUp()}ScrollTrigger.refresh()},200)},jQuery.fn.shouldAnimate=function(){return 1===parseInt(jQuery(this).data("scroll-reveal-above-fold"))||0<jQuery(window).scrollTop()&&!jQuery(this).parent().hasClass("fusion-builder-element-content")||jQuery(this).offset().top>.8*jQuery(window).height()},jQuery.fn.awbTitleScrollRevealColorChange=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter"),l=a.data("scroll-reveal-basis");if("chars"===l){new SplitType(a.find(".fusion-title-heading"),{tagName:"span",type:"chars, words, lines"})}else{new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:l})}const r=a.find("."+l.replace("s",""));let n=gsap.timeline({id:i,scrollTrigger:e(a)});n.to(r,{ease:"power1","background-position-x":"0",stagger:a.data("scroll-reveal-stagger"),duration:a.data("scroll-reveal-duration"),delay:a.data("scroll-reveal-delay")}),void 0!==a.data("scroll-reveal-behavior")&&"replay"===a.data("scroll-reveal-behavior")&&t(a,n)})},jQuery(".awb-title__scroll-reveal--color_change").awbTitleScrollRevealColorChange(),jQuery.fn.awbTitleScrollRevealUnblur=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter"),l=a.data("scroll-reveal-basis");if("chars"===l){new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:"chars, words, lines"})}else{new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:l})}const r=a.find("."+l.replace("s",""));let n=gsap.timeline({id:i,scrollTrigger:e(a)});n.fromTo(r,{opacity:0,skewX:-20,filter:"blur(8px)"},{ease:"sine",opacity:1,skewX:0,filter:"blur(0px)",stagger:a.data("scroll-reveal-stagger"),duration:a.data("scroll-reveal-duration"),delay:a.data("scroll-reveal-delay")}),void 0!==a.data("scroll-reveal-behavior")&&"replay"===a.data("scroll-reveal-behavior")&&t(a,n)})},jQuery(".awb-title__scroll-reveal--unblur").awbTitleScrollRevealUnblur(),jQuery.fn.awbTitleScrollRevealRandomAssemble=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter"),l=(new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:"words"}),a.find(".word"));let r=gsap.timeline({id:i,scrollTrigger:e(a)});r.fromTo(l,{opacity:0,z:()=>gsap.utils.random(200,950),xPercent:e=>gsap.utils.random(-150,150),yPercent:e=>gsap.utils.random(-20,20),rotationX:()=>gsap.utils.random(-90,90),zoom:()=>gsap.utils.random(80,120)+"%"},{ease:"power1.inOut",opacity:1,rotationX:0,rotationY:0,xPercent:0,yPercent:0,z:0,zoom:"100%",stagger:{each:a.data("scroll-reveal-stagger"),from:"random"},duration:a.data("scroll-reveal-duration"),delay:a.data("scroll-reveal-delay")}),void 0!==a.data("scroll-reveal-behavior")&&"replay"===a.data("scroll-reveal-behavior")&&t(a,r)})},jQuery(".awb-title__scroll-reveal--random_assemble").awbTitleScrollRevealRandomAssemble(),jQuery.fn.awbTitleScrollRevealSlide=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter"),l=a.data("scroll-reveal-basis"),r=a.hasClass("awb-title__scroll-reveal--slide_up")?"":"-",n={lines:{y:r+"150%"},words:{y:r+"80%"},chars:{y:r+"60%"}};if("chars"===l){new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:"chars, words, lines"})}else{new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:l})}const s=a.find("."+l.replace("s",""));let o=gsap.timeline({id:i,scrollTrigger:e(a)});o.from(s,{y:n[l].y,rotationX:-90,opacity:0,ease:"power1.inOut",stagger:a.data("scroll-reveal-stagger"),duration:a.data("scroll-reveal-duration"),delay:a.data("scroll-reveal-delay")}),void 0!==a.data("scroll-reveal-behavior")&&"replay"===a.data("scroll-reveal-behavior")&&t(a,o)})},jQuery(".awb-title__scroll-reveal--slide_up, .awb-title__scroll-reveal--slide_down").awbTitleScrollRevealSlide(),jQuery.fn.awbTitleScrollRevealTurn=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter"),l=a.data("scroll-reveal-basis"),r={lines:{basis:"lines",perspective:"1000px"},words:{basis:"words, lines",perspective:"500px"},chars:{basis:"chars, words, lines",perspective:"200px"}};new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:r[l].basis});targetElement=a.find("."+l.replace("s","")),targetElement.parent().css("perspective",r[l].perspective);let n=gsap.timeline({id:i,scrollTrigger:e(a)});n.fromTo(targetElement,{rotationY:90,opacity:0,scale:1,transformOrigin:"center center"},{ease:"none",rotationY:0,opacity:1,scale:1,duration:a.data("scroll-reveal-duration"),stagger:a.data("scroll-reveal-stagger"),delay:a.data("scroll-reveal-delay")}),void 0!==a.data("scroll-reveal-behavior")&&"replay"===a.data("scroll-reveal-behavior")&&t(a,n)})},jQuery(".awb-title__scroll-reveal--turn").awbTitleScrollRevealTurn(),jQuery.fn.awbTitleScrollRevealRotate=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter");new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:"chars, words"});a.find(".word").each(function(){let l=jQuery(this),r=l.find(".char"),n=r.length;l.data("scroll-reveal-behavior",a.data("scroll-reveal-behavior")),r.css("perspective","1000px");let s=gsap.timeline({id:i,scrollTrigger:e(l)});s.fromTo(r,{x:e=>{const t=e<Math.ceil(n/2)?e:Math.ceil(n/2)-Math.abs(Math.floor(n/2)-e)-1;return 200*(n%2?Math.abs(Math.ceil(n/2)-1-t):Math.abs(Math.ceil(n/2)-t))*(e<n/2?-1:1)},y:e=>60*(e<Math.ceil(n/2)?e:Math.ceil(n/2)-Math.abs(Math.floor(n/2)-e)-1),rotationY:-270,rotationZ:e=>{const t=e<Math.ceil(n/2)?e:Math.ceil(n/2)-Math.abs(Math.floor(n/2)-e)-1;return e<n/2?8*Math.abs(t-n/2):-1*Math.abs(t-n/2)*8}},{ease:"power2.inOut",x:0,y:0,rotationZ:0,rotationY:0,scale:1,duration:a.data("scroll-reveal-duration"),delay:a.data("scroll-reveal-delay")}),void 0!==l.data("scroll-reveal-behavior")&&"replay"===l.data("scroll-reveal-behavior")&&t(l,s)})})},jQuery(".awb-title__scroll-reveal--rotate").awbTitleScrollRevealRotate(),jQuery.fn.awbTitleScrollRevealScaleUp=function(){jQuery(this).each(function(){if(!jQuery(this).shouldAnimate())return;const a=jQuery(this),i=a.data("scroll-reveal-counter");new SplitType(a.find(".fusion-title-heading"),{tagName:"span",types:"chars, words, lines"});a.find(".line").each(function(){let l=jQuery(this).find(".word"),r=l.find(".char");l.css("perspective","1000px");let n=gsap.timeline({id:i,scrollTrigger:e(l)});n.fromTo(r,{opacity:.15,x:-20,z:-1e3},{ease:"back.out(1.2)",opacity:1,x:0,z:0,duration:a.data("scroll-reveal-duration"),stagger:a.data("scroll-reveal-stagger"),delay:a.data("scroll-reveal-delay")}),void 0!==l.data("scroll-reveal-behavior")&&"replay"===l.data("scroll-reveal-behavior")&&t(l,n)})})},jQuery(".awb-title__scroll-reveal--scale_up").awbTitleScrollRevealScaleUp()}!function(e){"use strict";var t={};e.fn.awbAnimateTitleHighlightsAndRotations=function(){"IntersectionObserver"in window?e.each(fusion.getObserverSegmentation(e(this)),function(t){var a=fusion.getAnimationIntersectionData(t),i=new IntersectionObserver(function(t,a){e.each(t,function(t,l){var r=e(l.target);fusion.shouldObserverEntryAnimate(l,a)&&(e(r).hasClass("fusion-title-rotating")&&e(r).animateTitleRotations(),e(r).hasClass("fusion-title-highlight")&&e(r).animateTitleHighlights(),i.unobserve(l.target))})},a);e(this).each(function(){i.observe(this)})}):e(this).each(function(){var t=e(this);e(t).hasClass("fusion-title-rotating")&&e(t).animateTitleRotations(),e(t).hasClass("fusion-title-highlight")&&e(t).animateTitleHighlights()})},e.fn.animateTitleRotations=function(){var t=e(this),a=t.find(".fusion-animated-texts-wrapper"),i=t.hasClass("fusion-animate-loop"),l=e(t).closest("[data-animationduration]").data("animationduration"),r=void 0!==l?200*parseFloat(l):0;a.removeData("textillate"),e(t).find(".fusion-textillate").remove(),e(t).hasClass("fusion-title-blurIn")?t.animateTitleBlurIn():(e(t).is(".fusion-title-typeIn,.fusion-title-clipIn")||a.awbAnimatedTitleRotationWidth(),a.textillate({selector:".fusion-animated-texts",type:a.attr("data-length"),minDisplayTime:a.attr("data-minDisplayTime"),loop:i,initialDelay:r}))},e.fn.animateTitleHighlights=function(){e(this).hasClass("fusion-highlight-marker")?e(this).find(".fusion-highlighted-text").addClass("awb-animate"):e(this).find(".fusion-highlighted-text-wrapper svg").addClass("awb-animate")},e.fn.awbAnimatedTitleRotationWidth=function(){var t=e(this),a=t.find(".fusion-animated-texts"),i=0,l=0,r=!1;i=parseInt(t.find(".fusion-animated-text").css("font-size")),i*=.6,a.is(":visible")||(r=!0,a.show()),e(t).find(".fusion-animated-text").each(function(){var t=e(this).width();t>l&&(l=t)}),r&&a.hide(),t.css("width",l+i)},e(window).on("fusion-element-render-fusion_title",function(e,a){a&&t[a]&&(clearInterval(t[a].interval),clearTimeout(t[a].timeout),delete t[a])}),e.fn.animateTitleBlurIn=function(){var a,i=e(this),l=i.find(".fusion-animated-texts-wrapper"),r=i.find(".fusion-animated-text"),n=parseInt(l.attr("data-minDisplayTime"))||2e3,s=n/1e3,o=i.hasClass("fusion-animate-loop"),c=i.closest("[data-cid]").data("cid"),d=0,u=[];function h(){var i=(d+1)%r.length;if(!o&&0===i)return clearInterval(a),void(c&&delete t[c]);const n=e(r[d]),s=e(r[i]);l.css("width",u[i]),n.removeClass("is-active"),s.addClass("is-active"),d=i}r.length&&(c&&t[c]&&(clearInterval(t[c].interval),clearTimeout(t[c].timeout),delete t[c],r.removeClass("is-active")),i.find(".fusion-animated-texts").css("visibility","visible"),l.css("--awb-blur-duration",s+"s"),r.each(function(){var t=e(this);t.css({position:"relative",visibility:"hidden",opacity:0}),u.push(t.outerWidth()),t.css({position:"",visibility:"",opacity:""})}),l.css("width",u[0]),e(r[0]).addClass("is-active"),c?(t[c]={},t[c].timeout=setTimeout(function(){h(),a=setInterval(h,n+1e3*s),t[c].interval=a},n)):setTimeout(function(){h(),a=setInterval(h,n+1e3*s)},n))},e.fn.awbAnimatedTitleRotationWidthRecalc=function(){e(this).each(function(){e(this).is(".fusion-title-typeIn,.fusion-title-clipIn")||e(this).find(".fusion-animated-texts-wrapper").awbAnimatedTitleRotationWidth()})}}(jQuery),jQuery(window).on("load",function(){setTimeout(function(){jQuery(".fusion-title-rotating, .fusion-title-highlight").awbAnimateTitleHighlightsAndRotations()},400),jQuery(window).on("fusion-resize-horizontal",function(){jQuery(".fusion-title-rotating").awbAnimatedTitleRotationWidthRecalc()})}),jQuery(window).on("fusion-column-resized fusion-element-render-fusion_title",function(e,t){var a=jQuery('div[data-cid="'+t+'"]').find(".fusion-title-rotating, .fusion-title-highlight");a.length&&(a.awbAnimateTitleHighlightsAndRotations(),a.awbAnimatedTitleRotationWidthRecalc())}),gsap.registerPlugin(ScrollTrigger),jQuery(window).on("load",function(){initializeScrollRevealTriggers(),setTimeout(function(){ScrollTrigger.refresh()},400)});