!function(){"use strict";var e=[,function(e,t,o){o.r(t),o.d(t,{appendModalToContainer:function(){return n},createEmbed:function(){return i},debounce:function(){return p},deleteCookie:function(){return c},getCookie:function(){return y},getDevice:function(){return m},getIframeDocument:function(){return u},ibcDomReady:function(){return r},isjQueryAvailable:function(){return f},removeClassByPrefix:function(){return d},slideDown:function(){return l},slideToggle:function(){return s},slideUp:function(){return a}});const r=e=>{if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)},n=e=>{if(!e)return;const t=document.body.classList.contains("home"),o=document.getElementById("ip-page-landing")&&e.classList.contains("js-modal-tripwire");if(t||o){const t=document.querySelector("div.ip");t&&t.append(e)}},i=(e,t,o)=>{if(void 0!==t){const{id:r,service:n}=getVideoId(t.toString()),{wrapper:i,autoplay:a,controls:l,muted:s,loop:u}=o;switch(n){case"youtube":if(i){const t=()=>{new YT.Player(i,{width:"100%",videoId:r,host:`${window.location.protocol}//www.youtube.com`,playerVars:{autoplay:"true"===a?1:0,playsinline:1,loop:"true"===u?1:0,rel:0,showinfo:0,controls:"true"===l?1:0,fs:0,origin:window.location.origin,mute:"true"===s?1:0},events:{onReady:e=>{"true"===s&&e.target.mute(),"true"===a&&e.target.playVideo()},onStateChange:e=>{e.data==YT.PlayerState.ENDED&&(e.target.seekTo(0),e.target.playVideo())}}})},o=()=>{if(!window.YT){console.log("Loading YouTube IFrame API...");const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}window.youTubePlayersQueue||(window.youTubePlayersQueue=[]),window.onYouTubeIframeAPIReady||(window.onYouTubeIframeAPIReady=()=>{for(console.log("YouTube API is ready, processing queue");window.youTubePlayersQueue.length;){window.youTubePlayersQueue.shift()()}})},n=()=>{if(window.YT&&window.YT.Player)for(console.log("YT.Player is now ready, processing queue");window.youTubePlayersQueue.length;){window.youTubePlayersQueue.shift()()}else console.log("YT.Player still not ready, checking again..."),setTimeout(n,500)},i=`youtube-player-${Math.random().toString(36).substr(2,9)}`,d=document.createElement("div");d.setAttribute("id",i),e.appendChild(d),window.YT&&window.YT.Player?t():(console.log("YT.Player not ready, adding to queue"),window.youTubePlayersQueue||(window.youTubePlayersQueue=[]),window.youTubePlayersQueue.push(t),o(),n())}else{const t=document.createElement("iframe");t.src=`https://www.youtube.com/embed/${r}?autoplay=${"true"===a?1:0}&mute=${"true"===s?1:0}&rel=0&showinfo=0&controls=${"true"===l?1:0}&loop=${"true"===u?1:0}&playlist=${r}`,t.setAttribute("allow","autoplay; encrypted-media"),t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",""),e.appendChild(t)}break;case"vimeo":const o=document.createElement("iframe");o.src=`https://player.vimeo.com/video/${r}?autopause=0&autoplay=${"true"===a?1:0}&muted=${"true"===s?1:0}&controls=${"true"===l?1:0}&loop=${"true"===u?1:0}`,o.setAttribute("allow","autoplay; encrypted-media"),o.setAttribute("frameborder","0"),o.setAttribute("allowfullscreen",""),e.appendChild(o);break;default:const n=document.createElement("video");n.src=t,n.autoplay=a||!1,n.controls=l||!1,n.muted=s||!1,n.loop=u||!1,n.playsInline=!0,e.appendChild(n)}}},a=(e,t=500)=>{e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},l=(e,t=500)=>{e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;let r=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=r+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},s=(e,t=500)=>"none"===window.getComputedStyle(e).display?l(e,t):a(e,t),u=e=>e.contentDocument||e.contentWindow.document,d=(e,t)=>{const o=new RegExp("\\b"+t+"[^ ]*[ ]?\\b","g");return e.className=e.className.replace(o,""),e},y=e=>{let t=decodeURIComponent(document.cookie).split(";");e=`${e}=`;for(let o=0;o{document.cookie=`${e}=; Max-Age=-99999999;`},p=(e,t)=>{let o;return(...r)=>{clearTimeout(o),o=setTimeout((()=>e.apply(void 0,r)),t)}},m=()=>{const e=window.innerWidth||screen.width;let t="mobile";return e>=768&&(t="tablet"),e>=1200&&(t="desktop"),t},f=()=>"function"==typeof window.jQuery||(console.error("jQuery is not available. Some features may not work properly."),!1)}],t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){o.r(r);var e=o(1);!function(){function t(e){const t=e.currentTarget.closest(".js-tripwire");t&&(t.classList.add("ip-transition-close"),setTimeout((()=>t.remove()),1e3))}const o=document.querySelectorAll(".js-tripwire-close");o.length&&o.forEach((e=>{e.addEventListener("click",t)}));const r=document.body.querySelector(".js-modal-tripwire");(0,e.appendModalToContainer)(r);const n=(()=>{const e=document.getElementById("ip");if(!e)return{};const t=getComputedStyle(e);return{"--ibc-heading-font-family":t.getPropertyValue("--ibc-heading-font-family")||"","--ibc-heading-font-weight":t.getPropertyValue("--ibc-heading-font-weight")||"","--ibc-body-font-family":t.getPropertyValue("--ibc-body-font-family")||"","--ibc-body-font-weight":t.getPropertyValue("--ibc-body-font-weight")||"","--ibc-button-font-family":t.getPropertyValue("--ibc-button-font-family")||"","--ibc-button-font-weight":t.getPropertyValue("--ibc-button-font-weight")||""}})(),i=document.querySelectorAll(".js-tripwire");function a(){i.length>0&&i.forEach((t=>{const o=t.dataset.responsive?JSON.parse(t.dataset.responsive):null,r=t.dataset.class;if(!o)return void console.error("Responsive data not found!");const n=(0,e.getDevice)(),i=[o.format[n]||"",o.contentOrder[n]||"",o.contentPosition[n]||"",o.fullMedia[n]||""].filter(Boolean).join(" ");t.className=`${r} ${i}`}))}i.length&&i.forEach((e=>{(e=>{Object.entries(n).forEach((([t,o])=>{e.style.setProperty(t,o)}))})(e)})),a(),window.addEventListener("resize",a)}()}()}();