!function(){var t=!1,o=780,n="netlify.js",e="ntl-drawer-initial-state";function r(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function s(e){var t;e&&(t=e.style.getPropertyValue("display"),e.style.display=t&&"block"!==t?"block":"none")}function d(e,t){var n=window.innerWidth<o?"0":"calc(50% - ".concat(390,"px)"),a=window.innerWidth<o?"100vw":"".concat(o,"px");e.style.left=n,t.style.width=a}function a(e){try{for(var t,n=arguments.length,a=new Array(1<n?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return(t=window.sessionStorage)[e].apply(t,a)}catch(e){console.error(e)}}try{function l(e){t=e,document.body.style.overflow=e?"hidden":b||""}function y(e,t,n){n&&n.postMessage({type:e,payload:t},w)}function p(e){y("NAVIGATION",document.location.pathname,e||m.contentWindow)}var h=document.querySelector("body div[data-netlify-site-id]");if(!h)return console.warn("".concat(n,": container not found."));if(location.search.includes("ntl-drawer-state=hidden"))return a("setItem",e,"hidden");if(location.search.includes("ntl-drawer-state=visible")&&a("removeItem",e),"hidden"===a("getItem",e))return;if(window!==window.top)return r(h),0;if(h.querySelector("iframe"))return console.warn("".concat(n,": frame has already mounted."));var i=h.dataset,c=i.netlifyDeployId,u=i.netlifySiteId,f=i.vcs;if(!c||!u)return console.warn("".concat(n,": required data attributes not found.")),r(h),0;h.style=["background:transparent","bottom:0","color-scheme:normal","margin:0","padding:0","position:fixed","z-index:2147483647"].join(";");var i=/\.netlifystg\.(app|com)$/.test(document.location.origin)?"netlifystg":"netlify",w="https://app.".concat(i,".com"),i="/".concat("cdp").concat("netlify"==i?"":"-stg"),m=document.createElement("iframe");m.allow="microphone; camera; clipboard-write; display-capture",m.src="".concat(w).concat(i,"/?deployID=").concat(c,"&siteID=").concat(u,"&vcs=").concat(f||""),m.title="Netlify Drawer",m.style=["background: transparent !important","border: 0px !important","display: block !important","height: ".concat(48,"px"),"min-height: initial","max-height: initial","transform: initial"].join(";"),(h||document.body).appendChild(m),d(h,m);var b=document.body.style.overflow;window.addEventListener("message",function(e){if(e.origin===w){var t=e.data,n=document.location,a=n.href,o=n.pathname,i=n.search,c=n.hash;switch(t.type){case"LOADED":p(e.source);break;case"TOGGLE_UI":s(h);break;case"GOTO":document.location.assign(t.payload);break;case"FULL_VIEWPORT":h.style.left="0px",m.style.height="100vh",m.style.width="100vw",l(!0);break;case"LOOM_VIEWPORT":m.style.height="220px",m.style.width="400px",l(!1);break;case"DOCK_VIEWPORT":h.style.left="0px",m.style.height="".concat(48,"px"),m.style.width="100vw",l(!1);break;case"MINI_VIEWPORT":h.style.left="calc(50% - 134px)",m.style.height="".concat(48,"px"),m.style.width="268px",l(!1);break;case"JAMDOCK_VIEWPORT":m.style.height="".concat(48,"px"),d(h,m),l(!1);break;case"LOCATION_HREF":y("LOCATION_HREF",a,e.source);break;case"LOCATION_ORIGIN":y("LOCATION_ORIGIN",document.location.origin,e.source);break;case"LOCATION_PATHNAME":y("LOCATION_PATHNAME",o+i+c,e.source);break;case"WINDOW_SIZE":y("WINDOW_SIZE",{width:window.innerWidth,height:window.innerHeight},e.source);break;case"TRANSLATE":h.style.transform="translate(".concat(t.payload.x,"px, ").concat(t.payload.y,"px)");break;case"SELF_DESTRUCT":r(h);break;case"REFRESH":window.location.reload()}}}),window.addEventListener("resize",function(){t||d(h,m)}),document.addEventListener("keydown",function(e){!e.metaKey&&!e.ctrlKey||e.shiftKey||e.altKey||"\\"!==e.key&&"Backslash"!==e.code||s(h)});var O=document.location.pathname;"function"==typeof MutationObserver?new MutationObserver(function(e){e.forEach(function(){O!==document.location.pathname&&(O=document.location.pathname,p())})}).observe(document.body,{childList:!0,subtree:!0}):(window.addEventListener("pushstate",p),window.addEventListener("popstate",p))}catch(e){console.error("".concat(n,": ").concat(e))}}();