PageSourceSearch

https://crimsafe.com.au/wp-content/cache/minify/3267f.js

js crimsafe.com.au collected 2026-10-04 15:11:33 UTC 47,014 bytes, 10 lines download raw bytes

1!function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=24)}([function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=document.querySelector("body");t.default=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=document.querySelector("html");t.default=i},function(e,t,s){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.viewPortWidth=t.useWindowDimensions=t.triggerEvent=t.removeStateClass=t.random=t.length=t.isObject=t.isNumber=t.isDefined=t.html=t.captialize=t.body=t.addStateClass=void 0;var n=s(6);Object.defineProperty(t,"addStateClass",{enumerable:!0,get:function(){return i(n).default}});var o=s(0);Object.defineProperty(t,"body",{enumerable:!0,get:function(){return i(o).default}});var r=s(7);Object.defineProperty(t,"captialize",{enumerable:!0,get:function(){return i(r).default}});var a=s(1);Object.defineProperty(t,"html",{enumerable:!0,get:function(){return i(a).default}});var l=s(8);Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return i(l).default}});var c=s(9);Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return i(c).default}});var d=s(10);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return i(d).default}});var u=s(11);Object.defineProperty(t,"length",{enumerable:!0,get:function(){return i(u).default}});var h=s(12);Object.defineProperty(t,"random",{enumerable:!0,get:function(){return i(h).default}});var p=s(13);Object.defineProperty(t,"removeStateClass",{enumerable:!0,get:function(){return i(p).default}});var f=s(14);Object.defineProperty(t,"triggerEvent",{enumerable:!0,get:function(){return i(f).default}});var v=s(15);Object.defineProperty(t,"useWindowDimensions",{enumerable:!0,get:function(){return i(v).default}});var m=s(16);Object.defineProperty(t,"viewPortWidth",{enumerable:!0,get:function(){return i(m).default}})},function(e,t,s){"use strict";var i,n,o,r=s(31),a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){o=!1}function c(e){if(e){if(e!==i){if(e.length!==a.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,s){return t!==s.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. These characters were not unique: "+t.join(", "));i=e,l()}}else i!==a&&(i=a,l())}function d(){return o||(o=function(){i||c(a);for(var e,t=i.split(""),s=[],n=r.nextValue();t.length>0;)n=r.nextValue(),e=Math.floor(n*t.length),s.push(t.splice(e,1)[0]);return s.join("")}())}e.exports={get:function(){return i||a},characters:function(e){return c(e),i},seed:function(e){r.seed(e),n!==e&&(l(),n=e)},lookup:function(e){return d()[e]},shuffled:d}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollAnimation=void 0;t.ScrollAnimation=class{constructor(e,t=.2){if(!("IntersectionObserver"in window))return;const s=new IntersectionObserver(this.onObserve.bind(this),{threshold:t}),i=Array.from(document.querySelectorAll(e));if(i.length)for(const e of i)s.observe(e)}onObserve(e,t){for(const{target:s,isIntersecting:i}of e)i&&!s.classList.contains("animate-in")&&(s.classList.add("animate-in"),t.unobserve(s))}}},function(e,t,s){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.LazyLoadImage=void 0;t.LazyLoadImage=class{constructor(){const e=[].slice.call(document.querySelectorAll("img[data-src]"));if(e.length>0&&"IntersectionObserver"in window){const t=new IntersectionObserver((function(e,s){e.forEach((function(e){e.isIntersecting&&(e.target.setAttribute("src",e.target.dataset.src),e.target.getAttribute("data-srcset")&&e.target.setAttribute("srcset",e.target.dataset.srcset),e.target.classList.remove("opacity-0"),e.target.classList.add("opacity-100"),t.unobserve(e.target))}))}));e.forEach((function(e){t.observe(e)}))}}}},function(e,t,s){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(s(0)),o=i(s(1));t.default=function(e){o.default.classList.add(e),n.default.classList.add(e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"number"==typeof e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"==typeof e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.abs(e-t)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)}},function(e,t,s){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i(s(0)),o=i(s(1));t.default=function(e){o.default.classList.remove(e),n.default.classList.remove(e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};const s=document.createEvent("CustomEvent");return s.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),s}e.prototype=window.Event.prototype,window.CustomEvent=e}(),t.default=function(e,t,s=""){let i=new CustomEvent(t,{detail:{extraParameteres:s},bubbles:!0,cancelable:!1});e.dispatchEvent(i)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowDimensions=void 0;t.getWindowDimensions=()=>({x:window.innerWidth,y:window.innerHeight}),t.default=function(){const e={x:0,y:0},s=()=>{const{x:s,y:i}=(0,t.getWindowDimensions)();e.x=s,e.y=i};return s(),window.addEventListener("resize",s,!1),e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=0;const s=()=>{t=window.innerWidth||document.documentElement.clientWidth};return s(),window.addEventListener("resize",(function(){s()}),!1),t>=e}},function(e,t,s){"use strict";var i=this&&this.__awaiter||function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function r(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(r,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadMore=void 0;const n=s(4),o=s(5);t.LoadMore=class{constructor(e){this.el=e,this.button=this.find(".load-more"),this.posts=this.find(".posts"),this.currentPage=Number(this.el.dataset.currentPage)||0,this.maxPage=Number(this.el.dataset.maxPage)||0,this.bind()}bind(){this.button&&this.button.addEventListener("click",e=>{e.preventDefault();const t=this.el.dataset.category,s=Object.assign({page:this.currentPage},t?{cat:t}:{});this.getPosts(mainSiteData.root+"crimsafe/v2/posts",s).then(e=>{this.currentPage++,(this.currentPage>=this.maxPage||!e)&&this.button.classList.add("is-disabled"),this.posts.insertAdjacentHTML("beforeend",e),new n.ScrollAnimation(".animate"),new o.LazyLoadImage})})}insertAfter(e,t){e.parentNode.insertBefore(t,e.nextSibling)}findAll(e){return this.el.querySelectorAll(e)}find(e){return this.el.querySelector(e)}
1getPosts(e="",t={}){return i(this,void 0,void 0,(function*(){return(yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()}))}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyModules=void 0,t.applyModules=function(e,t,...s){let i=document.querySelectorAll(e);i&&i.forEach(e=>{new t(e,...s)})}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Inputs=void 0;t.Inputs=class{constructor(e,t=".gfield"){const s=e,i=this.getClosest(e,t);""==s.value?(i.classList.remove("has-value"),i.classList.remove("is-focused")):(i.classList.remove("is-focused"),i.classList.add("has-value")),e.addEventListener("focus",()=>{i.classList.add("is-focused")}),e.addEventListener("blur",()=>{""==s.value?(i.classList.remove("has-value"),i.classList.remove("is-focused")):(i.classList.remove("is-focused"),i.classList.add("has-value"))})}getClosest(e,t){for(;e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null}}},,,,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=s(18),n=s(25),o=s(26),r=s(27),a=s(28),l=s(4),c=s(37),d=s(38),u=s(39),h=s(40),p=s(42),f=s(43),v=s(44),m=s(19),y=s(45),b=s(46),g=s(47),w=s(48),S=s(49),L=s(5),E=s(50),P=s(52),M=s(53),x=s(17),A=document.querySelectorAll(".accordion"),_=document.querySelector("#cursor"),O=document.querySelector("#hero-slider"),C=document.querySelectorAll(".page-section"),I=document.querySelectorAll(".hotspot-overlay"),q=document.querySelector(".range-slider"),T=document.querySelector(".hamburger"),j=document.getElementById("primary-menu-list"),k=document.getElementById("compare-our-range"),D=document.getElementById("product-finish-selector"),N=document.querySelectorAll("[data-yt-id]"),z=[];if(A.length)for(const e of A)new n.Accordion({selector:e,trigger:".accordion-header"});if(_&&(window.cursor=new o.Cursor({attribute:"cursor",cursor:"#cursor"})),O&&new h.HeroSlider(O),(0,i.applyModules)(".image-slider",c.ImageSlider),T&&new r.Hamburger(T),j&&new v.MegaMenu(j),(0,i.applyModules)(".carousel",u.Carousel),k&&new w.CompareOurRange(k),C.length>0&&new p.PageNavigation(".page-section"),I.length>0)for(const e of I)new b.HotspotOverlay(e);if((0,i.applyModules)(".tabs",f.Tabs),(0,i.applyModules)(".gform_wrapper div.gfield input",m.Inputs),(0,i.applyModules)(".gform_wrapper div.gfield textarea",m.Inputs),(0,i.applyModules)(".gform_wrapper div.gfield--type-select label",m.Inputs),(0,i.applyModules)(".gform_wrapper .ginput_complex span input",m.Inputs),(0,i.applyModules)('.gform_wrapper .gfield--type-phone input[type="tel"]',y.PhoneInput),new M.HubspotForm,D&&new S.ProductSelector(D),q&&new g.RangeSlider(q),(0,i.applyModules)(".latest-news-by-category.list-load-more",x.LoadMore),new l.ScrollAnimation(".animate"),new P.SimpleParallax,N.length>0)for(const e of N)z.push(e);if(new E.Modal,new d.LazyLoadVideo,new L.LazyLoadImage,z.length>0){const e=new a.YTMediaController(z);window.onYouTubeIframeAPIReady=()=>e.ready(),e.init()}!function(e){if(e('a[href*="#"]').not('[href="#"]').not('[href="#0"]').not('[data-easing="easeInCubic"]').click((function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var s=e(this.hash);(s=s.length?s:e("[name="+this.hash.slice(1)+"]")).length&&(t.preventDefault(),e("html, body").animate({scrollTop:s.offset().top-100,easing:"easeInOutCubic"},1e3,(function(){})))}})),window.location.hash){var t=e(window.location.hash);(t=t.length?t:e("[name="+window.location.hash.slice(1)+"]")).length&&("replaceState"in history&&history.replaceState("",document.title,window.location.pathname+window.location.search),e("html, body").animate({scrollTop:t.offset().top-100},1e3))}let s=e(".gf_progressbar_percentage");s&&s.css("width","0"),e(document).on("gform_page_loaded",(function(t,n,o){if(1===n){const t="First tell us a few details",i="Now select the product(s) your are interested in?";let n=e("#page-title");1===Number(o)?(n.html(t),s.css("width","0")):(n.html(i),s.css("width","50%"))}(0,i.applyModules)(".gform_wrapper div.gfield input",m.Inputs),(0,i.applyModules)(".gform_wrapper div.gfield textarea",m.Inputs),(0,i.applyModules)(".gform_wrapper div.gfield--type-select label",m.Inputs),(0,i.applyModules)(".gform_wrapper .ginput_complex span input",m.Inputs),(0,i.applyModules)('.gform_wrapper .gfield--type-phone input[type="tel"]',y.PhoneInput)}))}(jQuery)},function(e,t,s){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=void 0;t.Accordion=class{constructor(e){this.el=e.selector,this.header=e.selector.querySelector(e.trigger),this.parent=this.el.parentElement,this.content=this.el.querySelector(".accordion-content"),this.content&&(this.content.style.height=this.content.scrollHeight+"px"),this.header&&this.bind()}bind(){this.header.addEventListener("click",e=>{e.preventDefault();const t="true"==this.header.getAttribute("aria-expanded");this.toggle(t)}),this.header.addEventListener("keydown",e=>{e.preventDefault();const t=e.target,s=e.which.toString(),i=e.ctrlKey&&s.match(/33|34/),n="true"==this.header.getAttribute("aria-expanded");(s.match(/38|40/)||i)&&t.focus(),"13"===s&&this.toggle(n)})}toggle(e=!1){e?this.collapse(this.content):(this.header.setAttribute("aria-expanded","true"),this.el.classList.add("is-open"),this.content.removeAttribute("hidden"),this.expand(this.content))}collapse(e){const t=e.scrollHeight,s=e.style.transition;e.style.transition="",requestAnimationFrame((function(){e.style.height=t+"px",e.style.transition=s,requestAnimationFrame((function(){e.style.height="0px"}))})),this.el.classList.remove("is-open"),setTimeout(()=>{this.header.setAttribute("aria-expanded","false"),e.setAttribute("hidden","")},600),e.setAttribute("data-collapsed","true")}expand(e){const t=e.scrollHeight;e.style.height=t+"px";const s=()=>{e.removeEventListener("transitionend",s),e.style.height=null};e.addEventListener("transitionend",s,!1),e.setAttribute("data-collapsed","false")}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cursor=void 0;t.Cursor=class{get friction(){return"default"===this.variant?.35:1}get visible(){return this._visible}set visible(e){this.cursor.style.visibility=e?"visible":"hidden",this._visible=e}constructor(e){this.variant="none",this.position={x:-100,y:-100},this.target={x:0,y:0},this.epsilon=Math.pow(10,-3),this._visible=!1,this.cursor=document.querySelector(e.cursor),this.offset=this.cursor.querySelector(".cursor-offset"),this.onMouseenter=this.onMouseenter.bind(this),this.onMouseleave=this.onMouseleave.bind(this),this.onMousemove=this.onMousemove.bind(this),this.render=this.render.bind(this),this.attribute=e.attribute,this.bind(),window.addEventListener("mousemove",this.onMousemove),this.visible=!1,this.setCursor("default"),this.render()}setCursor(e){e!==this.variant&&(this.cursor.classList.remove("cursor--"+this.variant),this.cursor.classList.add("cursor--"+e),this.variant=e,"default"===e?this.offset.classList.add("translate-x-5","translate-y-6"):this.offset.classList.remove("translate-x-5","translate-y-6"))}onMouseenter(e){const t=e.target.getAttribute("data-cursor");t&&this.setCursor(t)}onMouseleave(){this.setCursor("default")}onMousemove({clientX:e,clientY:t}){this.target.x=e,this.target.y=t,this.visible||(this.position.x=e,this.position.y=t,this.visible=!0)}render(){const{x:e,y:t}=this.position,s=this.target.x-e,i=this.target.y-t,{epsilon:n,friction:o}=this;this.position.x=Math.abs(s)>n?e+s*o:this.target.x,this.position.y=Math.abs(i)>n?t+i*o:this.target.y,this.cursor.style.transform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`,requestAnimationFrame(this.render)}unbind(){if(void 0!==this.els){for(const e of this.els)e.removeEventListener("mouseenter",this.onMouseenter),e.removeEventListener("mouseleave",this.onMouseleave);this.els=void 0}}bind(){this.unbind(),this.els=document.querySelectorAll(`[data-${this.attribute}]`);for(const e of this.els)e.addEventListener("mouseenter",this.onMouseenter),e.addEventListener("mouseleave",this.onMouseleave)}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hamburger=void 0;const i=s(2);t.Hamburger=class{constructor(e){var t,s;this.el=e,this.menu=document.getElementById("site-navigation"),this.bg=document.querySelector(".menu-bg"),this.announcement=document.getElementById("site-announcement"),this.menuTop=this.menu?this.menu.offsetTop:0,null===(t=this.el)||void 0===t||t.addEventListener("click",this.toggle.bind(this)),null===(s=this.menu)||void 0===s||s.addEventListener("transitionend",this.handleTransitionEnd.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),this.update()}handleResize(){this.update(),window.innerWidth>=1024&&this.expanded&&this.collapse()}update(){this.menu&&(window.innerWidth<1024?(this.menu.style.top=(this.announcement?this.announcement.offsetHeight+this.menuTop:this.menuTop)+"px",this.menu.style.height=(this.expanded?window.innerHeight-this.menu.offsetTop:0)+"px"):(this.menu.style.top="0",this.menu.style.height="auto"))}handleTransitionEnd(e){this.menu&&e.target===this.menu&&this.expanded&&this.menu.classList.remove("overflow-y-hidden")}get expanded(){return"true"===this.el.getAttribute("aria-expanded")}toggle(){this.expanded?this.collapse():this.expand()}expand(){var e;this.el.classList.add("is-open"),this.el.setAttribute("aria-expanded","true"),this.update(),null===(e=this.bg)||void 0===e||e.classList.add("is-open"),i.html.classList.add("overflow-hidden","h-screen","menu-open")}collapse(){var e,t;this.el.classList.remove("is-open"),this.el.setAttribute("aria-expanded","fal
1se"),null===(e=this.menu)||void 0===e||e.classList.add("overflow-y-hidden"),this.update(),null===(t=this.bg)||void 0===t||t.classList.remove("is-open"),i.html.classList.remove("overflow-hidden","h-screen","menu-open")}}},function(e,t,s){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YTMedia=t.YTMediaController=void 0;const n=i(s(29));t.YTMediaController=class{constructor(e){this.els=e}init(){let e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";let t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}ready(){for(const e of this.els)new o(e)}};class o{constructor(e){this.state=YT.PlayerState.UNSTARTED,this.el=e,this.videoId=this.el.getAttribute("data-yt-id"),this.pause=e.querySelector(".button-pause"),this.play=e.querySelector(".button-play"),this.media=e.querySelector(".media"),this.controls=e.querySelector(".video-controls"),this.playerEl=document.createElement("div"),this.playerElID=n.default.generate(),this.playerEl.id=this.playerElID,this.media.appendChild(this.playerEl),this.media.addEventListener("click",this.init.bind(this),{once:!0}),this.pause?this.pause.addEventListener("click",this.pausePlayer.bind(this)):this.controls.addEventListener("click",this.togglePlayer.bind(this)),this.play.addEventListener("click",this.playPlayer.bind(this))}get playing(){return this.state===YT.PlayerState.PLAYING}get pausedOrEnded(){return this.state===YT.PlayerState.PAUSED||this.state===YT.PlayerState.ENDED}init(){this.controls.classList.add("playing"),this.createPlayer()}createPlayer(){if(this.media.classList.add("youtube-loaded"),this.videoId.includes("http")){let e=document.createElement("video");e.src=this.videoId,e.autoplay=!0,e.playsInline=!0,e.controls=!1,this.media.appendChild(e)}else this.player=new YT.Player(this.playerElID,{videoId:this.videoId,events:{onReady:this.onPlayerReady.bind(this),onStateChange:this.onPlayerStateChange.bind(this)},playerVars:{playsinline:1,controls:0,autoplay:1,modestbranding:0,rel:0}})}onPlayerReady(e){e.target.playVideo()}onPlayerStateChange(e){this.state=e.data,this.pausedOrEnded?(this.controls.classList.remove("playing"),this.controls.classList.add("pause")):this.playing&&(this.controls.classList.add("playing"),this.controls.classList.remove("pause"))}applyState(){}pausePlayer(){this.player&&this.playing&&this.player.pauseVideo()}playPlayer(){this.player&&this.pausedOrEnded&&this.player.playVideo()}togglePlayer(){this.player&&this.pausedOrEnded?this.player.playVideo():this.player&&this.playing?this.player.pauseVideo():!this.player||this.pausedOrEnded||this.playing||this.player.playVideo()}}t.YTMedia=o},function(e,t,s){"use strict";e.exports=s(30)},function(e,t,s){"use strict";var i=s(3),n=s(32),o=s(35),r=s(36)||0;function a(){return n(r)}e.exports=a,e.exports.generate=a,e.exports.seed=function(t){return i.seed(t),e.exports},e.exports.worker=function(t){return r=t,e.exports},e.exports.characters=function(e){return void 0!==e&&i.characters(e),i.shuffled()},e.exports.isValid=o},function(e,t,s){"use strict";var i=1;e.exports={nextValue:function(){return(i=(9301*i+49297)%233280)/233280},seed:function(e){i=e}}},function(e,t,s){"use strict";var i,n,o=s(33);s(3);e.exports=function(e){var t="",s=Math.floor(.001*(Date.now()-1567752802062));return s===n?i++:(i=0,n=s),t+=o(7),t+=o(e),i>0&&(t+=o(i)),t+=o(s)}},function(e,t,s){"use strict";var i=s(3),n=s(34),o=s(63).customRandom;e.exports=function(e){for(var t,s=0,r="";!t;)r+=o(i.get(),1,n)(),t=e<Math.pow(16,s+1),s++;return r}},function(e,t,s){"use strict";var i,n="object"==typeof window&&(window.crypto||window.msCrypto);i=n&&n.getRandomValues?function(e){return n.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],s=0;s<e;s++)t.push(Math.floor(256*Math.random()));return t},e.exports=i},function(e,t,s){"use strict";var i=s(3);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+i.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)}},function(e,t,s){"use strict";e.exports=0},function(e,t,s){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ImageSlider=void 0;const i=s(2);t.ImageSlider=class{constructor(e){this.el=e,this.slider=e.querySelector(".swiper-container"),this.slider&&this.init()}getSlidesInset(e){return e>=1536?(e-1380)/2:e>=1280?96:e>=1024||e>=768?64:0}init(){const{x:e}=(0,i.useWindowDimensions)();if(this.swiper=new Swiper(this.slider,{effect:"slide",spaceBetween:0,slidesPerView:1,loop:!1,allowTouchMove:!0,watchOverflow:!0,breakpoints:{768:{slidesPerView:1.25,spaceBetween:24},1280:{slidesPerView:1.5,spaceBetween:24},1536:{slidesPerView:1.5,spaceBetween:24}},navigation:{nextEl:this.el.querySelector(".swiper-button-next"),prevEl:this.el.querySelector(".swiper-button-prev")},scrollbar:{el:this.el.querySelector(".swiper-scrollbar"),draggable:!0},on:{afterInit:function(){var e;null===(e=window.cursor)||void 0===e||e.bind()},slideChange:function(e){const t=e.el.querySelectorAll(".swiper-slide");for(const e of t){const t=e.querySelector("iframe");t&&t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}},touchMove:function(e,t){var s;null===(s=window.cursor)||void 0===s||s.onMousemove(t)}}}),this.swiper){console.log("x",e);const t=this.getSlidesInset(e);this.swiper.params.slidesOffsetBefore=t,this.swiper.params.slidesOffsetAfter=t,this.swiper.update(),window.addEventListener("resize",()=>{const{x:e}=(0,i.useWindowDimensions)(),t=this.getSlidesInset(e);this.swiper.params.slidesOffsetBefore=t,this.swiper.params.slidesOffsetAfter=t,this.swiper.update()})}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LazyLoadVideo=void 0;t.LazyLoadVideo=class{constructor(){const e=[].slice.call(document.querySelectorAll("video.lazy"));if(e.length>0&&"IntersectionObserver"in window){const t=new IntersectionObserver((function(e,s){e.forEach((function(e){if(e.isIntersecting){for(const t in e.target.children){const s=e.target.children[t];"string"==typeof s.tagName&&"SOURCE"===s.tagName&&(s.src=s.dataset.src)}e.target.load(),e.target.play(),console.log("vid",e),e.target.classList.remove("lazy"),t.unobserve(e.target)}}))}));e.forEach((function(e){t.observe(e)}))}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Carousel=void 0;t.Carousel=class{constructor(e){this.el=e,this.carousel=e.querySelector(".swiper-container"),this.init()}init(){this.el.querySelector(".swiper-container")&&(this.swiper=new Swiper(this.carousel,{effect:"slide",slidesPerView:1,allowTouchMove:!0,autoPlay:!0,watchOverflow:!0,centeredSlidesBounds:!0,centerInsufficientSlides:!0,navigation:{nextEl:this.el.querySelector(".swiper-button-next"),prevEl:this.el.querySelector(".swiper-button-prev")},scrollbar:{el:this.el.querySelector(".swiper-scrollbar"),draggable:!0},spaceBetween:8,breakpoints:{768:{spaceBetween:24,slidesPerView:2},1024:{slidesPerView:3}},on:{afterInit:function(){var e;null===(e=window.cursor)||void 0===e||e.bind()},touchMove:function(e,t){var s;null===(s=window.cursor)||void 0===s||s.onMousemove(t)}}}))}}},function(e,t,s){"use strict";var i=this&&this.__awaiter||function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function r(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(r,a)}l((i=i.apply(e,t||[])).next())}))};function n(){return new Promise(e=>{requestAnimationFrame(()=>e())})}Object.defineProperty(t,"__esModule",{value:!0}),t.HeroSlider=void 0,s(41);class o{constructor(e,t={}){this.prev=0,this._slide=0,this.slideElems=[],this.transitionSpeed=750,this.transitionDelay=5e3,this.transitionDirection="next",this.transitioning=!1,this.paused=!1,this.ts=performance.now(),this.elapsed=0,t.speed&&(this.transitionSpeed=t.speed),t.delay&&(this.transitionDelay=t.delay),e.style.setProperty("--hero-transition-ms",this.transitionSpeed+"ms"),e.style.setProperty("--hero-half-transition-ms",this.transitionSpeed/2+"ms");const s=Number(e.getAttribute(o.AttrNumSlides));if(isNaN(s))throw new Error("Couldn't determine number of slides for HeroSlider");this.numSlides=Math.round(s);for(let t=0;t<s;t++){const s=e.querySelectorAll(`[${o.AttrSlideIndex}="${t}"]`);this.slideElems.push(Array.from(s))}const i=e.querySelector(".swiper-button-next"),n=e.querySelector(".swiper-button-prev"),r=e.querySelectorAll(`.hero-slider-page[${o.AttrSlideIndex}]`);i&&i.addEventListener("click",()=>this.nextSlide()),n&&n.addEventListener("click",()=>this.prevSlide());for(const e of r)e.addEventListener("click",({target:e})=>{const t=Number(e.getAttribute(o.AttrSlideIndex));isNaN(t)||this.goToSlide(Math.round(t))});const a=e.querySelectorAll(`[${o.AttrPause}]`);for(const e of a)e.addEventListener("pointerenter",e=>{"mouse"===e.pointerType&&this.pause()}),e.addEventListener("pointerleave",e=>{"mouse"===e.pointerType&&this.unpause()});e.addEventListener("swiped-left",()=>this.nextSlide()),e.addEventListener("swiped-right",()=>this.prevSlide()),this.tick=this.tick.bind(this),requestAnimationFrame(this.tick)}get lastIndex(){return this.numSlides-1}get slide(){return this._slide}set slide(e){this.prev=this._slide,this._slide=e,this.onTransition()}ifNotTransitioning(e){return!this.transitioning&&(e(),!0)}setSlideProgress(e,t){for(const s of this.slideElems[e])s.style.setProperty("--hero-slide-progress",String(t))}tick(e){if(this.transitioning){if(this.elapsed+=e-this.ts,this.elapsed>=this.transitionSpeed){this.transitioning=!1,this.elapsed%=this.transitionSpeed,this.setSlideProgress(this.prev,0);for(const e of this.slideElems[this.prev])e.classList.remove(o.ExitClass)}}else if(!this.paused){this.elapsed+=e-this.ts;const t=Number((this.elapsed/this.transitionDelay).toFixed(2));this.setSlideProgress(this.slide,t),this.elapsed>=this.transitionDelay&&(this.nextSlide(),this.elapsed%=this.transitionDelay)}this.ts=e,requestAnimationFrame(this.tick)}onTransition(){return i(this,void 0,void 0,(function*(){if(this.transitioning)return;this.transitioning=!0,this.elapsed=0;const e=this.slideElems[this.slide],t=this.slideElems[this.prev],s=o.PreActiveClass+"-"+this.transitionDirection,i=o.PostActiveClass+"-"+this.transitionDirection;yield n();for(const t of e)t.classList.add(o.PreActiveClass,s);for(const e of t)e.classList.remove(o.ActiveClass),e.classList.add(o.PostActiveClass,i,o.ExitClass);yield n();for(const t of e)t.classList.remove(o.PreActiveClass,s),t.classList.add(o.ActiveClass);for(const e of t)e.classList.remove(o.PostActiveClass,i)}))}nextSlide(){return this.ifNotTransitioning(()=>{this.transitionDirection="next",this.slide=(this.slide+1)%this.numSlides})}prevSlide(){return this.ifNotTransitioning(()=>{this.transitionDirection="prev",this.slide=0===this.slide?this.lastIndex:this.slide-1})}goToSlide(e){const t=Math.max(0,Math.min(e,this.lastIndex));if(t!==this.slide)return this.ifNotTransitioning(()=>{const e=t-this.slide;this.transitionDirection=e>0?"next":"prev",this.slide=t})}pause(){this.paused=!0}unpause(){this.paused=!1}}
1t.HeroSlider=o,o.AttrNumSlides="data-slides",o.AttrSlideIndex="data-slide-index",o.AttrPause="data-pause",o.PreActiveClass="pre-active",o.ActiveClass="active",o.PostActiveClass="post-active",o.ExitClass="exit"},function(e,t){
2/*!
3 * swiped-events.js - v@version@
4 * Pure JavaScript swipe events
5 * https://github.com/john-doherty/swiped-events
6 * @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
7 * @author John Doherty <www.johndoherty.info>
8 * @license MIT
9 */
10!function(e,t){"use strict";"function"!=typeof e.CustomEvent&&(e.CustomEvent=function(e,s){s=s||{bubbles:!1,cancelable:!1,detail:void 0};var i=t.createEvent("CustomEvent");return i.initCustomEvent(e,s.bubbles,s.cancelable,s.detail),i},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",(function(e){if("true"===e.target.getAttribute("data-swipe-ignore"))return;a=e.target,r=Date.now(),s=e.touches[0].clientX,i=e.touches[0].clientY,n=0,o=0,l=e.touches.length}),!1),t.addEventListener("touchmove",(function(e){if(!s||!i)return;var t=e.touches[0].clientX,r=e.touches[0].clientY;n=s-t,o=i-r}),!1),t.addEventListener("touchend",(function(e){if(a!==e.target)return;var d=parseInt(c(a,"data-swipe-threshold","20"),10),u=c(a,"data-swipe-unit","px"),h=parseInt(c(a,"data-swipe-timeout","500"),10),p=Date.now()-r,f="",v=e.changedTouches||e.touches||[];"vh"===u&&(d=Math.round(d/100*t.documentElement.clientHeight));"vw"===u&&(d=Math.round(d/100*t.documentElement.clientWidth));Math.abs(n)>Math.abs(o)?Math.abs(n)>d&&p<h&&(f=n>0?"swiped-left":"swiped-right"):Math.abs(o)>d&&p<h&&(f=o>0?"swiped-up":"swiped-down");if(""!==f){var m={dir:f.replace(/swiped-/,""),touchType:(v[0]||{}).touchType||"direct",fingers:l,xStart:parseInt(s,10),xEnd:parseInt((v[0]||{}).clientX||-1,10),yStart:parseInt(i,10),yEnd:parseInt((v[0]||{}).clientY||-1,10)};a.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:m})),a.dispatchEvent(new CustomEvent(f,{bubbles:!0,cancelable:!0,detail:m}))}s=null,i=null,r=null}),!1);var s=null,i=null,n=null,o=null,r=null,a=null,l=0;function c(e,s,i){for(;e&&e!==t.documentElement;){var n=e.getAttribute(s);if(n)return n;e=e.parentNode}return i}}(window,document)},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageNavigation=void 0;t.PageNavigation=class{constructor(e,t=.25){if(!("IntersectionObserver"in window))return;const s=new IntersectionObserver(this.onObserve.bind(this),{threshold:t}),i=Array.from(document.querySelectorAll(e));if(i.length)for(const e of i)s.observe(e)}onObserve(e,t){const s=Array.from(document.querySelectorAll(".anchor-link"));for(const{target:t,isIntersecting:i}of e){const e="#"+t.id,n=document.querySelector(`a[href="${e}"]`);i?(n.classList.add("is-active"),Object.values(s).forEach(e=>{e.getAttribute("href").replace("#","")!=t.id&&e.classList.remove("is-active")})):n.classList.remove("is-active")}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=void 0;t.Tabs=class{constructor(e){this.el=e,this.tablist=this.find('[role="tablist"]'),this.tabs=this.findAll('[role="tab"]'),this.panels=this.findAll(".tab-panel"),this.bind()}bind(){let e=0,t=0;if(this.tabs.length>0)for(let e=0;e<this.tabs.length;e++){const s=this.tabs[e],i="true"==s.getAttribute("aria-selected");s.addEventListener("click",t=>{this.showTab(e)}),i&&(t=e)}this.tablist.addEventListener("keydown",t=>{const s=t.code,i=this.tabs;39!==s&&37!==s||(i[e].setAttribute("tabindex","-1"),39===s?(e++,e>=i.length&&(e=0)):37===s&&(e--,e<0&&(e=i.length-1)),i[e].setAttribute("tabindex","0"),i[e].focus())}),this.showTab(t)}findAll(e){return this.el.querySelectorAll(e)}find(e){return this.el.querySelector(e)}showTab(e){if(this.tabs.length>0){for(let e of this.tabs)e.setAttribute("aria-selected","false");for(let e of this.panels)e.classList.remove("opacity-100","h-auto"),e.classList.add("opacity-0","h-0","overflow-hidden");const t=this.tabs[e],s=this.panels[e];t.setAttribute("aria-selected","true"),s.classList.remove("opacity-0","h-0","overflow-hidden"),s.classList.add("opacity-100","h-auto")}}}},function(e,t,s){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.MegaMenu=void 0;const i=s(2);class n{constructor(e,t){this.collapseHeight=0,this.el=e,this.onClick=t;const s=function(e,t){let s=e.nextElementSibling;if(!t)return s;for(;s&&!s.matches(t);)s=s.nextElementSibling;return s}(e,".mega-menu");if(!s)throw new Error("Couldn't find mega menu for nav item.");this.menu=s;const i=this.handleClick.bind(this);this.el.addEventListener("click",i);const n=this.menu.querySelector(".close-menu");null==n||n.addEventListener("click",i),this.update()}handleClick(e){e.preventDefault(),this.onClick(this)}get top(){const e=document.getElementById("masthead");return e?e.offsetHeight:0}get height(){const e=this.menu.querySelector(":first-child");return e?e.offsetHeight:this.menu.scrollHeight}get expanded(){return"true"===this.el.getAttribute("aria-expanded")}update(){this.menu.style.top=this.top+"px",this.menu.style.height=(this.expanded?this.height:this.collapseHeight)+"px"}expand(){var e;this.el.setAttribute("aria-expanded","true"),null===(e=this.el.parentElement)||void 0===e||e.classList.add("is-open"),this.update()}collapse(e=0){var t;this.collapseHeight=e,this.el.setAttribute("aria-expanded","false"),null===(t=this.el.parentElement)||void 0===t||t.classList.remove("is-open"),this.update()}}t.MegaMenu=class{constructor(e){var t;this.windowWidth=window.innerWidth,this.bg=document.querySelector(".menu-bg"),this.onClickItem=this.onClickItem.bind(this);const s=e.querySelectorAll(".menu-item-depth-0.has-sub-menu > a");this.navItems=Array.from(s).map(e=>new n(e,this.onClickItem)),null===(t=this.bg)||void 0===t||t.addEventListener("click",this.collapseAll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),this.handleResize()}get anyMenuOpen(){return this.navItems.some(e=>e.expanded)}collapseAll(){if(this.anyMenuOpen){for(const e of this.navItems)e.collapse();this.updateGlobalClasses()}}handleResize(){(window.innerWidth>=1024&&this.windowWidth<1024||window.innerWidth<1024&&this.windowWidth>=1024)&&this.collapseAll(),this.windowWidth=window.innerWidth;for(const e of this.navItems)e.update();this.updateGlobalClasses()}onClickItem(e){const t=e.expanded||window.innerWidth<1024?0:e.height;for(const s of this.navItems)s!==e||s.expanded?s.collapse(t):s.expand();this.updateGlobalClasses()}updateGlobalClasses(){var e,t;this.anyMenuOpen?(i.html.classList.add("menu-open"),null===(e=this.bg)||void 0===e||e.classList.add("is-open")):(i.html.classList.remove("menu-open"),null===(t=this.bg)||void 0===t||t.classList.remove("is-open"))}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneInput=void 0;t.PhoneInput=class{constructor(e){const t=e;"true"!==t.dataset.phoneRestricted&&(t.dataset.phoneRestricted="true",t.addEventListener("input",()=>{t.value=t.value.replace(/[^+\d]/g,"")}))}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HotspotOverlay=void 0;t.HotspotOverlay=class{constructor(e){this.el=e;const t=e.querySelector(".close-hotspot-overlay");t&&t.addEventListener("click",()=>{this.el.classList.remove("is-open")})}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangeSlider=void 0;t.RangeSlider=class{constructor(e){this.el=e,this.slider=e.querySelector(".swiper-container"),this.initialSlide=e.hasAttribute("data-initial-slide")?Number(e.getAttribute("data-initial-slide")):1,this.mobileNavigation=e.querySelectorAll("[data-slide-to]"),this.init()}init(){if(this.swiper=new Swiper(this.slider,{effect:"fade",fadeEffect:{crossFade:!0},spaceBetween:0,slidesPerView:1,loop:!1,allowTouchMove:!1,speed:1e3,initialSlide:this.initialSlide,navigation:{nextEl:this.el.querySelector(".swiper-button-next"),prevEl:this.el.querySelector(".swiper-button-prev")},on:{afterInit:function(){var e;null===(e=window.cursor)||void 0===e||e.bind()},slideChangeTransitionStart:function(e){const t=e.el.querySelectorAll(".swiper-slide");for(const e of t){const t=e.querySelector("canvas");e.classList.contains("swiper-slide-active")?t.style.display=null:setTimeout(()=>{t.style.display="none"},400)}},slideChangeTransitionEnd:function(e){const t=e.el.querySelectorAll(".swiper-slide");for(const e of t){const t=e.querySelector("canvas");e.classList.contains("swiper-slide-active")?t.style.display=null:setTimeout(()=>{t.style.display="none"},400)}},touchMove:function(e,t){var s;null===(s=window.cursor)||void 0===s||s.onMousemove(t)}}}),this.mobileNavigation.length>0)for(const e of this.mobileNavigation){const t=Number(e.getAttribute("data-sli
10de-to"));e.addEventListener("click",()=>{for(const e of this.mobileNavigation)e.classList.remove("is-active");this.swiper.slideTo(t),e.classList.add("is-active")})}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareOurRange=void 0;t.CompareOurRange=class{constructor(e){this.el=e,this.selectOne=e.querySelector("#select-compare-col-one"),this.selectTwo=e.querySelector("#select-compare-col-two"),this.bind()}bind(){this.selectOne&&this.selectTwo&&(this.updateSelect(this.selectOne,this.selectTwo,1,this.el.querySelectorAll(".select-compare-col-one-image")),this.updateSelect(this.selectTwo,this.selectOne,2,this.el.querySelectorAll(".select-compare-col-two-image")));const e=this.el.querySelector(".compare-row-desktop-header"),t=this.el.querySelector(".compare-row-mobile-header");if(!("IntersectionObserver"in window))return;const s=new IntersectionObserver(([e])=>(console.log(e.intersectionRatio,"e.intersectionRatio"),e.target.classList.toggle("is-sticky",e.intersectionRatio<1)),{threshold:[1]});s.observe(e),s.observe(t)}updateSelect(e,t,s,i){e.addEventListener("change",e=>{const n=e.currentTarget.value,o=t.options.selectedIndex,r=this.el.querySelectorAll(".compare-col"),a=t.options;for(const e of a)e.value===n?e.setAttribute("disabled","true"):e.removeAttribute("disabled");for(let e=0;e<i.length;e++){const t=i[e];e===Number(n)?t.classList.add("is-active"):t.classList.remove("is-active")}for(const e of r)e.hasAttribute("data-col-"+n)||e.hasAttribute("data-col-"+o)?(e.classList.add("is-active"),1===s&&e.hasAttribute("data-col-"+n)||2===s&&e.hasAttribute("data-col-"+o)?e.classList.add("order-1"):e.classList.add("order-2")):(e.classList.remove("is-active"),e.classList.remove("order-1"),e.classList.remove("order-2"));console.log("this.selectOne",n)})}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductSelector=void 0;t.ProductSelector=class{constructor(e){this.el=e;const t=e.querySelector(".door-selector"),s=e.querySelector(".window-selector"),i=e.querySelector(".canvas-3d-one"),n=e.querySelector(".canvas-3d-two");t&&s&&(this.updateCanvas(t,i),this.updateCanvas(s,n))}updateCanvas(e,t){const s=this.el.querySelectorAll(".product-selector-button"),i=this.el.querySelectorAll(".crimsafe-3d");e.addEventListener("click",n=>{if(!e.classList.contains("is-active")){for(let e=0;e<s.length;e++){const t=s[e],n=i[e];t.classList.remove("is-active"),n.classList.remove("is-active")}e.classList.add("is-active"),t.classList.add("is-active")}})}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;const i=s(51);t.Modal=class{constructor(){this.popups=new Map;const e=document.querySelectorAll(".popup-button");for(const t of e){const e=t.getAttribute("data-popup"),s=document.getElementById(e);!this.popups.has(e)&&s&&this.popups.set(e,new i.Popup(s))}for(const t of e){const e=t.getAttribute("data-popup");t.addEventListener("click",t=>{t.preventDefault(),this.openPopup(e)})}this.enablePopupFromAnchor()}enablePopupFromAnchor(){$("body").on("click",'[href^="#popup-"]',e=>{e.preventDefault();const t=$(e.currentTarget).attr("href").slice(7);console.log(t),this.openPopup(t)})}openPopup(e){const t=this.popups.get(e);t&&t.open()}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Popup=void 0;const i=e=>e.preventDefault();t.Popup=class{constructor(e){this.el=e,this.bg=e.querySelector(".modal-bg"),this.content=e.querySelector(".modal-content"),this.closeButton=e.querySelector(".button-close"),this.close=this.close.bind(this),this.bg.addEventListener("click",this.close),this.closeButton.addEventListener("click",this.close),window.addEventListener("keydown",({key:e})=>{"Escape"===e&&this.close()})}actionAfter(e,t){clearTimeout(this.actionTimeout),this.actionTimeout=setTimeout(e,t)}open(){this.el.classList.remove("-z-1","opacity-0","pointer-events-none"),this.el.classList.add("z-60","inset-0","pointer-events-auto"),this.bg.classList.remove("animate-fade-out"),this.content.classList.remove("animate-fade-out-shrink"),this.bg.classList.add("animate-fade-in"),this.bg.classList.remove("opacity-0"),this.actionAfter(()=>{this.setScrollLock(!0)},100)}close(){this.content.classList.remove("animate-fade-in-scale"),this.content.classList.add("animate-fade-out-shrink"),this.actionAfter(()=>{this.bg.classList.remove("animate-fade-in"),this.bg.classList.add("animate-fade-out"),this.el.classList.remove("z-60","inset-0","pointer-events-auto"),this.el.classList.add("-z-1","opacity-0","pointer-events-none"),this.setScrollLock(!1)},100)}setScrollLock(e){e?(window.addEventListener("wheel",i,{passive:!1}),window.addEventListener("scroll",i,{passive:!1})):(window.removeEventListener("wheel",i),window.removeEventListener("scroll",i))}}},function(e,t,s){"use strict";
10Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleParallax=void 0;const i=Math.pow(10,-3);function n(e,t,s){const i=e.getAttribute(t);return i&&!isNaN(Number(i))?Number(i):s}class o{constructor(e){this.offset=0,this.targetOffset=0,this.el=e,this.el.classList.add("absolute","w-full","h-full");const t=o.parseConfig(e);this.speed=t.speed,this.friction=t.friction}updateTransform(){this.el.style.transform=`translate3d(0, ${this.offset}px, 0)`}init(e){this.targetOffset=e*this.speed,this.offset=this.targetOffset}tick(e,t){this.targetOffset=t*this.speed;const s=this.targetOffset-this.offset,n=this.offset;if(Math.abs(s)>i){const t=s*this.friction*e;Math.abs(t)>Math.abs(s)?this.offset+=s:this.offset+=t}else this.offset=this.targetOffset;this.offset!==n&&this.updateTransform()}static parseConfig(e){return{speed:n(e,"data-sp-speed",o.Defaults.speed),friction:n(e,"data-sp-friction",o.Defaults.friction)}}}o.Defaults={speed:.2,friction:.1};class r{constructor(e){this.el=e,this.el.classList.add("relative","overflow-hidden");const t=e.querySelectorAll("[data-sp-item]");this.items=Array.from(t).map(e=>new o(e)),this.resize()}get scrollSurface(){return this.scrollEnd-this.scrollStart}getOffset(e){return Math.max(this.scrollStart,Math.min(e,this.scrollEnd))-this.scrollStart-this.scrollSurface/2}isInView(e){return e>this.scrollStart&&e<this.scrollEnd}init(e){const t=this.getOffset(e);for(const e of this.items)e.init(t)}resize(){this.scrollStart=this.el.offsetTop-window.innerHeight,this.scrollEnd=this.el.offsetTop+this.el.offsetHeight}tick(e,t){if(this.isInView(t)){const s=this.getOffset(t);for(const t of this.items)t.tick(e,s)}}}class a{constructor(e=document.documentElement){this.frame=-1,this.ts=performance.now(),this.root=e;const t=document.querySelectorAll("[data-sp-container]");this.containers=Array.from(t).map(e=>new r(e)),window.addEventListener("resize",this.resize.bind(this)),this.init(),this.tick=this.tick.bind(this),this.frame=window.requestAnimationFrame(this.tick)}resize(){for(const e of this.containers)e.resize()}init(){for(const e of this.containers)e.init(this.root.scrollTop)}tick(e){let t=(e-this.ts)/(1e3/a.FPS);for(const e of this.containers)e.tick(t,this.root.scrollTop);this.ts=e,this.frame=window.requestAnimationFrame(this.tick)}cleanup(){window.cancelAnimationFrame(this.frame)}}t.SimpleParallax=a,a.FPS=60},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HubspotForm=void 0;const i=s(18),n=s(19);t.HubspotForm=class{constructor(){this.ready()}ready(){window.addEventListener("message",e=>{"hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName&&this.init(e.data.id)})}init(e){const t="#hsForm_"+e,s=$(t);$(".hs-form-booleancheckbox label",s).each((e,t)=>{this.makeCheckboxControl(t)}),$(".hs-form-checkbox label",s).each((e,t)=>{this.makeCheckboxControl(t)}),(0,i.applyModules)(t+" div.field input",n.Inputs,[".field"]),(0,i.applyModules)(t+" div.field textarea",n.Inputs,[".field"]),(0,i.applyModules)(t+" div.field select",n.Inputs,[".field"])}makeCheckboxControl(e){const t=$(e);if(t.hasClass("control"))return;const s=$("> span",t);t.addClass("control checkbox").append($('<span class="control-field"></span>')),$(".control-field",t).append($('<span class="control-indicator"></span>')).append(s.addClass("control-label"))}}},,,,,,,,,,function(e,t,s){"use strict";s.r(t),s.d(t,"nanoid",(function(){return a})),s.d(t,"customAlphabet",(function(){return r})),s.d(t,"customRandom",(function(){return o})),s.d(t,"urlAlphabet",(function(){return i})),s.d(t,"random",(function(){return n}));let i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",n=e=>crypto.getRandomValues(new Uint8Array(e)),o=(e,t,s)=>{let i=(2<<Math.log(e.length-1)/Math.LN2)-1,n=-~(1.6*i*t/e.length);return(o=t)=>{let r="";for(;;){let t=s(n),a=0|n;for(;a--;)if(r+=e[t[a]&i]||"",r.length===o)return r}}},r=(e,t=21)=>o(e,t,n),a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_","")}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.