function GSFlipinit(t,e=!1,r="",i="",a=!1){let g=r||document;var l={};if(t.getAttribute("data-triggertype"))var s=t.getAttribute("data-triggertype");else var s="scroll";let n;n=t.getAttribute("data-customobject")?0==t.getAttribute("data-customobject").indexOf("#")||0==t.getAttribute("data-customobject").indexOf(".")?g.querySelector(t.getAttribute("data-customobject")):t.querySelector(t.getAttribute("data-customobject")):t;let c="";if(c=t.getAttribute("data-customtrigger")?0==t.getAttribute("data-customtrigger").indexOf("#")||0==t.getAttribute("data-customtrigger").indexOf(".")?g.querySelector(t.getAttribute("data-customtrigger")):t.querySelector(t.getAttribute("data-customtrigger")):t,"load"==s||a)GSFliptrigger(n,t);else if("hover"==s)c.addEventListener("mouseenter",function(e){GSFliptrigger(n,t)}),c.addEventListener("mouseleave",function(e){GSFliptrigger(n,t,"remove")});else if("toggleclick"==s)c.addEventListener("click",function(e){t.classList.contains("gs-click-active")?GSFliptrigger(n,t,"remove"):GSFliptrigger(n,t),t.classList.toggle("gs-click-active"),n.classList.toggle("gs-click-obj-active")});else if("click"==s)c.addEventListener("click",function(e){GSFliptrigger(n,t)});else if(l.trigger=c,t.getAttribute("data-triggerstart")?(l.start=t.getAttribute("data-triggerstart"),isNaN(t.getAttribute("data-triggerstart"))||(l.start=parseInt(t.getAttribute("data-triggerstart")))):l.start="top center",t.getAttribute("data-triggerend")&&(l.end=t.getAttribute("data-triggerend"),isNaN(t.getAttribute("data-triggerend"))||(l.end=parseInt(t.getAttribute("data-triggerend")))),e&&(l.scroller=".interface-interface-skeleton__content"),i&&(l.id="gsflip"+i),l.fastScrollEnd=!0,t.getAttribute("data-triggerscrub")){l.scrub=parseFloat(t.getAttribute("data-triggerscrub"));let d=gsap.timeline({scrollTrigger:l}),o=GSFliptrigger(n,t);d.add(o)}else l.onEnter=()=>{GSFliptrigger(n,t)},l.onEnterBack=()=>{GSFliptrigger(n,t)},l.onLeaveBack=()=>{GSFliptrigger(n,t,"remove")},l.onLeave=()=>{GSFliptrigger(n,t,"remove")},ScrollTrigger.create(l)}function GSFliptrigger(t,e,r="add"){let i=Flip.getState(t);t.classList[r]("flipactive");let a="";if("none"==e.getAttribute("data-ease"))a="none";else if(e.getAttribute("data-ease")){let g=e.getAttribute("data-ease").split("-");a=g[0]+"."+g[1]}return Flip.from(i,{scale:e.getAttribute("data-flipscale"),ease:a,duration:e.getAttribute("data-duration"),absolute:e.getAttribute("data-absolute"),delay:parseFloat(e.getAttribute("data-delay")),toggleClass:"gs-flipping"})}document.addEventListener("DOMContentLoaded",function(t){let e=document.getElementsByClassName("gs-flip-wrap");if(e.length>0)for(let r=0;r<e.length;r++)GSFlipinit(e[r])});