var Webselect=function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s="./Resources/js/views/Template/Standard.ts")}({"./Resources/js/components/adaptive-bg-images/ImageContainer.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i("./Resources/js/entities/AdaptiveBgImageHelper.ts"),r=i("./Resources/js/functions/image-helpers.ts"),f=function(){function n(n){this.container=n;var t=r.getImagePropsFromDom(this.container);this.imageHelper=new u.AdaptiveBgImageHelper(this.container,t)}return n.prototype.setContainerDimensions=function(){this.containerWidth=this.container.offsetWidth;this.containerHeight=this.container.offsetHeight;var n=[this.containerWidth,this.containerHeight,this.imageHelper.naturalWidth,this.imageHelper.naturalHeight];this.imageHelper.targetDimensions=r.getTargetImageDimensionsForContainer.apply(r,n)},n}();t.ImageContainer=f},"./Resources/js/components/adaptive-bg-images/index.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i("./Resources/js/functions/image-helpers.ts"),f=i("./Resources/js/functions/site-helpers.ts"),e=i("./Resources/js/utils/debounce.ts"),o=i("jquery"),s=i("./Resources/js/components/adaptive-bg-images/ImageContainer.ts"),r;(function(n){function i(){t.forEach(function(n){n.setContainerDimensions();var t=u.getImageSize(n.imageHelper.key,n.imageHelper.targetDimensions.safeWidth);n.imageHelper.load(t);u.updateImageSizeMap(n.imageHelper.key,t)})}function r(){t.length&&(i(),window.addEventListener("resize",e.debounce(i,200),f.usePassiveIfSupported))}var t=o(".bg-adaptive").get().map(function(n){return new s.ImageContainer(n)}).slice();n.init=r})(r||(r={}));r.init()},"./Resources/js/components/assets/CarouselAsset.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("./node_modules/tslib/tslib.es6.js"),f=i("Flickity"),e=i("jquery"),o=i("./Resources/js/components/assets/EmbeddedAsset.ts"),s=i("./Resources/js/components/assets/EmbeddedAssetType.ts"),u={adaptiveHeight:!1,contain:!0,imagesLoaded:!0,lazyLoad:!0,pageDots:!1,setGallerySize:!1,wrapAround:!0},h=r.__assign({},u,{adaptiveHeight:!0,setGallerySize:!0}),c=function(n){function t(t){var i=n.call(this,s.EmbeddedAssetType.Carousel,t)||this;return i.captionContainer=i.container.find(".asset-caption"),i.flickityContainer=i.container.find(".carousel-wrapper"),i.hasCaptionContainer=!!i.captionContainer.length,i.flickityInstance=null,i.isFixedHeight=i.flickityContainer.hasClass("embed-responsive-item"),i}return r.__extends(t,n),t.prototype.create=function(){var n=this;if(this.flickityContainer.flickity(this.isFixedHeight?u:h),this.flickityInstance=f.data(this.flickityContainer.get(0)),this.isInitialised=!0,this.hasCaptionContainer){this.showCaptionForSelectedSlide();this.flickityContainer.on("select.flickity",function(){return n.showCaptionForSelectedSlide()})}if(!this.isFixedHeight)this.flickityContainer.on("settle.flickity",function(){return window.dispatchEvent(new Event("resize"))})},t.prototype.destroy=function(){this.flickityContainer.flickity("destroy").off("select.flickity settle.flickity");this.flickityInstance=null;this.isInitialised=!1;this.hasCaptionContainer&&this.captionContainer.empty()},t.prototype.showCaptionForSelectedSlide=function(){var t=this.selectedSlideData,i=t.link,n=t.caption;n!==""?this.captionContainer.html(i!==""?'<a href="'+i+'">'+n+"<\/a>":n):this.captionContainer.empty()},Object.defineProperty(t.prototype,"selectedSlideData",{get:function(){var n=e(this.flickityInstance.selectedElement);return{link:(n.find("a").attr("href")||"").trim(),caption:(n.find("img").data("caption")||"").trim()}},enumerable:!0,configurable:!0}),t}(o.EmbeddedAsset);t.CarouselAsset=c},"./Resources/js/components/assets/CommentArea.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("jquery"),u=function(){function n(n,t){t===void 0&&(t=5);var i=this;if(this.area=r(n),this.buttonMore=this.area.find(".comments .btn"),this.comments=this.area.find(".comment"),this.hiddenComments=r(),this.threshold=t<1?1:t,this.comments.length>this.threshold){this.hiddenComments=this.comments.filter(":gt("+(this.threshold-1)+")").addClass("hidden");this.updateButtonMore();this.buttonMore.removeClass("hidden").on("click",function(n){n.preventDefault();i.revealComments(i.threshold)})}}return n.prototype.revealComments=function(n){this.comments.filter(":not(:visible)").slice(0,n).removeClass("hidden");this.hiddenComments=this.comments.filter(":not(:visible)");this.updateButtonMore()},n.prototype.updateButtonMore=function(){if(!this.hiddenComments.length)this.buttonMore.addClass("hidden");else{var n=this.hiddenComments.length<this.threshold?this.hiddenComments.length:this.threshold;this.buttonMore.find("span").text(n.toString())}},n}();t.CommentArea=u},"./Resources/js/components/assets/CustomForm.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("./node_modules/tslib/tslib.es6.js"),u=i("./Resources/js/entities/Method.ts"),f=i("./Resources/js/functions/ajax-helpers.ts"),e=i("./Resources/js/functions/form-helpers.ts"),o=i("jquery"),s=function(){function n(n){this.form=o(n);this.action=this.form.attr("action");this.buttonSubmit=this.form.find("input[type=submit]");this.alertFail=this.form.find(".alert-danger");this.alertSuccess=this.form.find(".alert-success");this.hasValidator=e.checkHasValidator(this.form);this.form.on("submit",this.submitHandler)}return n.prototype.submitHandler=function(n){return r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(i){switch(i.label){case 0:return(n.preventDefault(),this.hasValidator&&this.form.valid())?[2]:(this.alertSuccess.addClass("hidden"),this.alertFail.addClass("hidden"),this.buttonSubmit.buttonLoadingState("show",{showSpinner:!0}),[4,f.xhr(u.Method.POST,this.action,this.formData)]);case 1:return t=i.sent(),t.result==="success"?this.alertSuccess.removeClass("hidden"):this.alertFail.removeClass("hidden"),this.buttonSubmit.buttonLoadingState("hide"),[2]}})})},Object.defineProperty(n.prototype,"formData",{get:function(){return this.form.serialize()},enumerable:!0,configurable:!0}),n}();t.CustomForm=s},"./Resources/js/components/assets/EmbeddedAsset.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("jquery"),u=function(){function n(n,t){this.assetType=n;this.container=r(t);this.assetId=+this.container.data("asset-id");this.isVisible=!1;this.isInitialised=!1}return n.prototype.toggle=function(){this.isVisible=this.container.is(":visible");this.isVisible&&!this.isInitialised?this.create():!this.isVisible&&this.isInitialised&&this.destroy()},n}();t.EmbeddedAsset=u},"./Resources/js/components/assets/EmbeddedAssetType.ts":function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;(function(n){n[n.Carousel=1]="Carousel";n[n.Map=2]="Map"})(i=t.EmbeddedAssetType||(t.EmbeddedAssetType={}))},"./Resources/js/components/assets/MapAsset.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("./node_modules/tslib/tslib.es6.js"),u=i("./Resources/js/utils/templater.ts"),f=i("./Resources/js/components/assets/EmbeddedAsset.ts"),e=i("./Resources/js/components/assets/EmbeddedAssetType.ts"),o="\n    {{#heading}}\n        <h3>{{heading}}<\/h3>\n    {{/heading}}\n    {{#description}}\n        <p>{{description}}<\/p>\n    {{/description}}\n",s={scrollwheel:!1,gestureHandling:"cooperative"},h=function(n){function t(t){var i=n.call(this,e.EmbeddedAssetType.Map,t)||this,r=window["DATA_MAP_"+i.assetId],u=r.coords.split(",").map(function(n){return parseFloat(n)});return i.heading=r.heading||"",i.description=r.description||"",i.latLng=new google.maps.LatLng(u[0],u[1]),i.zoomLevel=r.zoomLevel||16,i.hasInfoWindow=!!i.heading||!!i.description,i.mapContainer=i.container.find(".embed-responsive-item"),i.mapInstance=null,i.mapMarker=null,i.mapInfoWindow=null,i.hasInfoWindow&&(i.mapInfoWindow=new google.maps.InfoWindow({content:i.infoWindowHtml})),i}return r.__extends(t,n),t.prototype.create=function(){var n=this;this.mapInstance=new google.maps.Map(this.mapContainer.get()[0],this.mapOptions);this.mapMarker=new google.maps.Marker(this.markerOptions);this.mapListener=google.maps.event.addDomListener(window,"resize",function(){return n.centraliseMap()});this.hasInfoWindow&&this.mapMarker.addListener("click",function(){return n.openMapInfoWindowOnMarker(n.mapMarker)});this.isInitialised=!0},t.prototype.destroy=function(){this.mapContainer.empty().removeAttr("style");this.mapInstance=null;google.maps.event.removeListener(this.mapListener);this.mapListener=null;this.mapMarker=null;this.isInitialised=!1},t.prototype.centraliseMap=function(){this.mapInstance.setCenter(this.latLng)},t.prototype.openMapInfoWindowOnMarker=function(n){this.mapInfoWindow.open(this.mapInstance,n)},Object.defineProperty(t.prototype,"infoWindowHtml",{get:function(){return u.render(o,{heading:this.heading,description:this.description})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mapOptions",{get:function(){return r.__assign({},s,{center:this.latLng,zoom:this.zoomLevel})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerOptions",{get:function(){return{map:this.mapInstance,position:this.latLng}},enumerable:!0,configurable:!0}),t}(f.EmbeddedAsset);t.MapAsset=h},"./Resources/js/components/assets/ZoomableAsset.ts":function(n,t,i){"use strict";var u,r,f;Object.defineProperty(t,"__esModule",{value:!0});u=i("jquery"),function(n){n.Iframe="iframe";n.Image="image";n.Inline="inline"}(r||(r={}));f=function(){function n(n){var t=this;this.asset=u(n);this.parent=this.asset.parent();this.type=this.deriveType();this.url=n.getAttribute("href");this.asset.magnificPopup({type:this.magnificType,disableOn:function(){return t.testContainer()}})}return n.prototype.deriveType=function(){var n=/asset-(\w+)/.exec(this.parent.attr("class")||"");return n!==null&&n.length>1?n[1]:"inline"},n.prototype.testContainer=function(){return!(this.parent.width()>=u(window).width()-APP_EXTERNAL.config.grid.gutter)},Object.defineProperty(n.prototype,"magnificType",{get:function(){var n="";switch(this.type){case"image":n=r.Image;break;case"map":case"video":n=r.Iframe;break;default:n=r.Inline}return n},enumerable:!0,configurable:!0}),n}();t.ZoomableAsset=f},"./Resources/js/components/assets/embedded.ts":function(n,t,i){"use strict";function f(){r.forEach(function(n){return n.toggle()})}function l(){u.length&&(u.forEach(function(n){switch((n.dataset.assetType||"").trim().toLowerCase()){case"carousel":r.push(new h.CarouselAsset(n));break;case"map":r.push(new c.MapAsset(n))}}),r.length&&(f(),window.addEventListener("resize",o.debounce(f,200),e.usePassiveIfSupported)))}Object.defineProperty(t,"__esModule",{value:!0});var e=i("./Resources/js/functions/site-helpers.ts"),o=i("./Resources/js/utils/debounce.ts"),s=i("jquery"),h=i("./Resources/js/components/assets/CarouselAsset.ts"),c=i("./Resources/js/components/assets/MapAsset.ts"),u=s(".asset-embedded").get(),r=[];t.init=l},"./Resources/js/components/assets/inline.ts":function(n,t,i){"use strict";function o(){r(".asset-zoom").get().map(function(n){return new e.ZoomableAsset(n)});r(".form-custom").get().map(function(n){return new f.CustomForm(n)});r(".asset-comments").get().map(function(n){return new u.CommentArea(n)});r(".asset-text table").addClass("table table-bordered").wrap('<div class="table-responsive"><\/div>')}Object.defineProperty(t,"__esModule",{value:!0});var r=i("jquery"),u=i("./Resources/js/components/assets/CommentArea.ts"),f=i("./Resources/js/components/assets/CustomForm.ts"),e=i("./Resources/js/components/assets/ZoomableAsset.ts");r.magnificPopup.defaults.iframe.patterns.wsmap={index:"//maps.apple.com",id:"wsaid=",src:"/map/%id%"};t.init=o},"./Resources/js/components/parallax-backgrounds/Parallax.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("./Resources/js/functions/site-helpers.ts"),u=Math.min.apply(Math,APP_EXTERNAL.config.grid.breakpoints),f=!1,e=!0,o=function(){function n(n){this.container=n;this.wrapper=this.container.querySelector(".parallax-wrapper");this.inner=this.wrapper.querySelector(".parallax-inner");this.isActive=!1;this.isParked=!1}return n.prototype.scroll=function(n,t){if(this.isActive){var i=n+t,r=(i-this.containerOffsetY)/(this.containerHeight+t),u=50-r*100,f=n-this.containerOffsetY-(this.innerHeight/2-t/2),e=f+this.areaDifference/100*u,o=this.containerOffsetY+this.containerHeight>n&&this.containerOffsetY<i;o&&(this.inner.style.transform="translate3D(0, "+e.toFixed(2)+"px, 0)")}},n.prototype.update=function(){var n=window.matchMedia("(min-width: "+u+"px)").matches;this.containerOffsetY=this.container.offsetTop;this.containerWidth=this.wrapper.offsetWidth;this.containerHeight=this.wrapper.offsetHeight;this.innerHeight=this.inner.offsetHeight;this.areaDifference=this.innerHeight-this.containerHeight;this.hasBleed=this.innerHeight>this.containerHeight;this.isVisible=this.wrapper.offsetParent!==null;this.isActive=this.isVisible&&this.hasBleed&&!r.device.isMobile&&!(e&&(r.browser.isEdge||r.browser.isIE11))&&(n||f);this.isActive&&this.isParked?(this.inner.classList.remove("parked"),this.isParked=!1):this.isActive||this.isParked||(this.inner.classList.add("parked"),this.inner.style.transform=null,this.isParked=!0)},n}();t.Parallax=o},"./Resources/js/components/parallax-backgrounds/ParallaxImage.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i("./node_modules/tslib/tslib.es6.js"),f=i("./Resources/js/components/parallax-backgrounds/ParallaxType.ts"),e=i("./Resources/js/entities/AdaptiveBgImageHelper.ts"),r=i("./Resources/js/functions/image-helpers.ts"),o=i("./Resources/js/components/parallax-backgrounds/Parallax.ts"),s={minVerticalOverflow:200},h=function(n){function t(t){var i=n.call(this,t)||this,o=r.getImagePropsFromDom(i.wrapper.parentElement),u=i.inner.appendChild(document.createElement("div"));return u.classList.add("image-container"),i.type=f.ParallaxType.Image,i.imageHelper=new e.AdaptiveBgImageHelper(u,o),i}return u.__extends(t,n),t.prototype.setContainerDimensions=function(){this.containerWidth=this.wrapper.offsetWidth;this.containerHeight=this.wrapper.offsetHeight;var n=[this.containerWidth,this.containerHeight,this.imageHelper.naturalWidth,this.imageHelper.naturalHeight,s];this.imageHelper.targetDimensions=r.getTargetImageDimensionsForContainer.apply(r,n);this.imageHelper.container.style.height=this.imageHelper.targetDimensions.height+"px"},t.prototype.update=function(){this.setContainerDimensions();n.prototype.update.call(this)},t}(o.Parallax);t.ParallaxImage=h},"./Resources/js/components/parallax-backgrounds/ParallaxTiledImage.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("./node_modules/tslib/tslib.es6.js"),u=i("./Resources/js/components/parallax-backgrounds/ParallaxType.ts"),f=i("./Resources/js/components/parallax-backgrounds/Parallax.ts"),e=function(n){function t(t){var i=n.call(this,t)||this;return i.type=u.ParallaxType.TiledImage,i}return r.__extends(t,n),t}(f.Parallax);t.ParallaxTiledImage=e},"./Resources/js/components/parallax-backgrounds/ParallaxType.ts":function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;(function(n){n[n.Image=0]="Image";n[n.TiledImage=1]="TiledImage"})(i=t.ParallaxType||(t.ParallaxType={}))},"./Resources/js/components/parallax-backgrounds/index.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=i("./Resources/js/functions/image-helpers.ts"),f=i("./Resources/js/functions/site-helpers.ts"),o=i("./Resources/js/utils/debounce.ts"),s=i("jquery"),h=i("./Resources/js/components/parallax-backgrounds/ParallaxImage.ts"),c=i("./Resources/js/components/parallax-backgrounds/ParallaxTiledImage.ts"),e=i("./Resources/js/components/parallax-backgrounds/ParallaxType.ts"),r;(function(n){function l(n){return i.filter(function(t){return t.type===n})}function a(){y();t.setViewportHeight();var n=l(e.ParallaxType.Image),i=l(e.ParallaxType.TiledImage);n.forEach(function(n){n.update();var t=u.getImageSize(n.imageHelper.key,n.imageHelper.targetDimensions.safeWidth);n.imageHelper.load(t);u.updateImageSizeMap(n.imageHelper.key,t)});i.forEach(function(n){return n.update()});v()}function v(){t.setScrollY();t.ticking||(window.requestAnimationFrame(function(){for(var n=0,r=i.length;n<r;n++)i[n].scroll(t.scrollY,t.viewportHeight);t.ticking=!1}),t.ticking=!0)}function w(n){var t=n.querySelector(".parallax-wrapper"),i=n.querySelector(".parallax-wrapper .parallax-inner");return!!t&&!!i}function y(){var n=window.innerWidth-document.documentElement.clientWidth;p.style.setProperty("--scrollbar-width",n+"px")}function b(){r.length&&(y(),r.forEach(function(n){var t=n.querySelector(".parallax-wrapper");switch((t.dataset.parallaxType||"").trim().toLowerCase()){case"image":i.push(new h.ParallaxImage(n));break;case"tiled-image":i.push(new c.ParallaxTiledImage(n))}}),i.length&&(a(),window.addEventListener("resize",o.debounce(a,200),f.usePassiveIfSupported),document.addEventListener("scroll",v,f.usePassiveIfSupported)))}var p=document.documentElement,r=s(".section.has-bg-image.bg-pos-parallax").get().filter(function(n){return w(n)}),i=[],t={scrollY:0,ticking:!1,viewportHeight:0,setScrollY:function(){this.scrollY=window.pageYOffset},setViewportHeight:function(){this.viewportHeight=window.innerHeight}};n.init=b})(r||(r={}));r.init()},"./Resources/js/entities/AdaptiveBgImageHelper.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("./Resources/js/functions/image-helpers.ts"),u=function(){function n(n,t){var i=this;this.container=n;this.fileName=t.fileName;this.fileExtension=t.fileExtension||"jpg";this.naturalWidth=+t.naturalWidth;this.naturalHeight=+t.naturalHeight||0;this.image=new Image;this.image.onload=function(){return i.applyCached()}}return n.prototype.applyCached=function(){!this.image.src||(this.container.style.backgroundImage="url('"+this.image.src+"')",this.container.classList.add("bg-image-loaded"))},n.prototype.load=function(n,t){t===void 0&&(t=!1);(typeof this.currentSize=="undefined"||n.width>this.currentSize.width||t)&&(this.image.src=r.getAssetUrl({columnSize:n.columnSize,fileName:this.fileName,fileExtension:this.fileExtension}),this.currentSize=n,r.updateImageSizeMap(this.key,n))},Object.defineProperty(n.prototype,"key",{get:function(){return[this.fileName,this.fileExtension].join(".")},enumerable:!0,configurable:!0}),n}();t.AdaptiveBgImageHelper=u},"./Resources/js/entities/ImageSize.ts":function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.columnSize=n;this.width=t}return n}();t.ImageSize=i},"./Resources/js/entities/Method.ts":function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;(function(n){n[n.GET=0]="GET";n[n.POST=1]="POST"})(i=t.Method||(t.Method={}))},"./Resources/js/entities/SessionStorageHelper.ts":function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.id=n;this.update()}return n.prototype.clear=function(){this.hasData&&sessionStorage.removeItem(this.id)},n.prototype.set=function(n){sessionStorage.setItem(this.id,n);this.update()},Object.defineProperty(n.prototype,"hasData",{get:function(){return!!this.data},enumerable:!0,configurable:!0}),n.prototype.update=function(){this.data=sessionStorage.getItem(this.id)},n}();t.SessionStorageHelper=i},"./Resources/js/functions/ajax-helpers.ts":function(n,t,i){"use strict";function o(n){var t="";if(!!n)switch(typeof n){case"string":t=n;break;case"object":t=u.param(n)}return""+t+(t.length?"&":"")+"IsAjaxRequest=true"}function s(n,t,i,r,s){var h={cache:!1,data:o(i),type:f.Method[n],url:t};u.ajax(h).done(r).fail(s||e)}function h(n,t,i){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(){return[2,new Promise(function(r,u){return s(n,t,i||null,function(n){return r(n)},function(n){return u(n)})})]})})}Object.defineProperty(t,"__esModule",{value:!0});var r=i("./node_modules/tslib/tslib.es6.js"),f=i("./Resources/js/entities/Method.ts"),u=i("jquery"),e=function(n,t,i){return console.log("XHR ERROR: "+i+", STATUS: "+t)};t.xhr=h},"./Resources/js/functions/form-helpers.ts":function(n,t){"use strict";function i(n){var t=n.data("validator");return typeof t!="undefined"}Object.defineProperty(t,"__esModule",{value:!0});t.checkHasValidator=i},"./Resources/js/functions/image-helpers.ts":function(n,t,i){"use strict";function k(n){return y.replace(/{{(\w+)}}/g,function(t,i){return i in n?String(n[i]):t})}function d(n,t,i,r,f){var s=u.__assign({},b,!f?{}:f),c=r>0,o=c?r/i:1,y=Math.max(n/i,c?t/r:0),l=i*y,p=l*o,e=l,a,v,h;return s.minVerticalOverflow>0&&(a=t+s.minVerticalOverflow*2,v=Math.max(p,a),e=v/o),e=Math.round(e*s.scale),h=Math.min(e,i),{width:e,height:Math.round(e*o),safeWidth:h,safeHeight:Math.round(h*o),ratio:o}}function g(n){var f=n.dataset.bgImageProps,i,t,r,u;try{for(i=Object.assign.apply(Object,[{}].concat(f.split("|").map(function(n){return n.split(":")}).map(function(n){var t;return t={},t[n[0]]=n[1],t}))),t=0,r=["fileName","naturalWidth"];t<r.length;t++)if(u=r[t],!i.hasOwnProperty(u))throw!1;return i}catch(e){return null}}function nt(n,t){var i=h(t),u=i;return r.has(n)&&(u=[i,r.get(n)].reduce(function(n,t){return t.width>n.width?t:n})),u}function h(n){return n*=w,p.reduce(function(t,i){var r=t.width<n,u=i.width>=n,f=Math.abs(i.width-n)<Math.abs(t.width-n);return r||u&&f?i:t})}function c(n){return new Promise(function(t){var i=new Image,r=/col-(\d+)\/(\w+.jpg|jpeg|gif|png)/.exec(n);i.onload=function(){r!==null&&r.length>1&&l(r[2],new o.ImageSize(r[1],i.naturalWidth));t(i)};i.src=n})}function tt(n){return u.__awaiter(this,void 0,void 0,function(){return u.__generator(this,function(){return[2,new Promise(function(t){Promise.all(n.map(function(n){return c(n)})).then(function(n){return t(n)})})]})})}function it(n){v.picturefillLoaded()&&picturefill({reevaluate:!0,elements:typeof n!="undefined"&&n.length?n:null})}function l(n,t){if(r.has(n)){var i=r.get(n);t=i.width>t.width?i:t}r.set(n,t);f&&e.set(JSON.stringify(s.mapToObject(r)))}Object.defineProperty(t,"__esModule",{value:!0});var u=i("./node_modules/tslib/tslib.es6.js"),o=i("./Resources/js/entities/ImageSize.ts"),a=i("./Resources/js/entities/SessionStorageHelper.ts"),s=i("./Resources/js/functions/map-helpers.ts"),v=i("./Resources/js/functions/site-helpers.ts"),y=APP_EXTERNAL.config.CDNUrl+"/UserContent/img/col-{{columnSize}}/{{fileName}}.{{fileExtension}}",p=Object.entries(APP_EXTERNAL.config.grid.imageSizes).map(function(n){return new o.ImageSize(n[0],n[1])}),w=window.devicePixelRatio||1,b={minVerticalOverflow:0,scale:1},f=!0,e=f?new a.SessionStorageHelper("ws-image-cache"):null,r=f&&e.hasData?s.objectToMap(JSON.parse(e.data)):new Map;t.getAssetUrl=k;t.getTargetImageDimensionsForContainer=d;t.getImagePropsFromDom=g;t.getImageSize=nt;t.getClosestImageSize=h;t.preloadImage=c;t.preloadImages=tt;t.reevaluate=it;t.updateImageSizeMap=l},"./Resources/js/functions/map-helpers.ts":function(n,t){"use strict";function i(n){var t={};return n.forEach(function(n,i){t[i]=n}),t}function r(n){var t=new Map;return Object.keys(n).forEach(function(i){t.set(i,n[i])}),t}Object.defineProperty(t,"__esModule",{value:!0});t.mapToObject=i;t.objectToMap=r},"./Resources/js/functions/site-helpers.ts":function(n,t,i){"use strict";function f(n,t){var i={siteID:n||1};u.xhr(r.Method.POST,"/changesite",i).then(function(n){n?window.location.replace(t):alert("Please empty your basket before switching to an alternative version of this site.")})}function e(){return"picturefill"in window&&typeof picturefill!="undefined"}Object.defineProperty(t,"__esModule",{value:!0});var r=i("./Resources/js/entities/Method.ts"),u=i("./Resources/js/functions/ajax-helpers.ts");t.browser=function(n){var t=/Edge/.test(n),i=/Trident\/7.0/.test(n);return{isEdge:t,isIE11:i}}(navigator.userAgent);t.changeSite=f;t.device=function(){var n=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),t="Modernizr"in window&&(Modernizr.touchevents||!1);return{isMobile:n,supportsTouch:t}}();t.picturefillLoaded=e;t.passiveSupported=function(){var t=!1,n;try{n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",n,n);window.removeEventListener("test",n,n)}catch(i){t=!1}return t}();t.usePassiveIfSupported=t.passiveSupported?{passive:!0}:!1},"./Resources/js/utils/debounce.ts":function(n,t){"use strict";function i(n,t){var i;return function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];clearTimeout(i);i=setTimeout(function(){i=null;n.apply(void 0,u)},t)}}Object.defineProperty(t,"__esModule",{value:!0});t.debounce=i},"./Resources/js/utils/templater.ts":function(n,t){"use strict";function i(n,t,i){return t in n?i:""}function r(n,t,i){return i in n?n[i]:t}function u(n,t,u){u===void 0&&(u=!0);var f=n;return f=f.replace(/{{#(\w+)}}([\s\S]*?){{\/\1}}/gm,function(n,r,u){return i(t,r,u)}),f=f.replace(/{{(\w+)}}/g,function(n,i){return r(t,n,i)}),u?f.replace(/\r?\n|\r|[ ]{2,}/g,""):f}Object.defineProperty(t,"__esModule",{value:!0});t.render=u},"./Resources/js/views/Template/Standard.ts":function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i("./Resources/js/components/adaptive-bg-images/index.ts");var r=i("./Resources/js/components/assets/embedded.ts"),u=i("./Resources/js/components/assets/inline.ts");i("./Resources/js/components/parallax-backgrounds/index.ts");r.init();u.init()},"./node_modules/tslib/tslib.es6.js":function(n,t,i){"use strict";function s(n,t){function i(){this.constructor=n}u(n,t);n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function h(n,t){var u={},r;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(u[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)t.indexOf(i[r])<0&&(u[i[r]]=n[i[r]]);return u}function c(n,t,i,r){var f=arguments.length,u=f<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,t,i,r);else for(o=n.length-1;o>=0;o--)(e=n[o])&&(u=(f<3?e(u):f>3?e(t,i,u):e(t,i))||u);return f>3&&u&&Object.defineProperty(t,i,u),u}function l(n,t){return function(i,r){t(i,r,n)}}function a(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}function v(n,t,i,r){return new(i||(i=Promise))(function(u,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?u(n.value):new i(function(t){t(n.value)}).then(o,s)}e((r=r.apply(n,t||[])).next())})}function y(n,t){function o(n){return function(t){return s([n,t])}}function s(e){if(f)throw new TypeError("Generator is already executing.");while(r)try{if(f=1,u&&(i=e[0]&2?u["return"]:e[0]?u["throw"]||((i=u["return"])&&i.call(u),0):u.next)&&!(i=i.call(u,e[1])).done)return i;(u=0,i)&&(e=[e[0]&2,i.value]);switch(e[0]){case 0:case 1:i=e;break;case 4:return r.label++,{value:e[1],done:!1};case 5:r.label++;u=e[1];e=[0];continue;case 7:e=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(e[0]===6||e[0]===2)){r=0;continue}if(e[0]===3&&(!i||e[1]>i[0]&&e[1]<i[3])){r.label=e[1];break}if(e[0]===6&&r.label<i[1]){r.label=i[1];i=e;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(e);break}i[2]&&r.ops.pop();r.trys.pop();continue}e=t.call(n,r)}catch(o){e=[6,o];u=0}finally{f=i=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},f,u,i,e;return e={next:o(0),"throw":o(1),"return":o(2)},typeof Symbol=="function"&&(e[Symbol.iterator]=function(){return this}),e}function p(n,t){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i])}function e(n){var t=typeof Symbol=="function"&&n[Symbol.iterator],i=0;return t?t.call(n):{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}function o(n,t){var i=typeof Symbol=="function"&&n[Symbol.iterator],r,u,f,e;if(!i)return n;r=i.call(n);f=[];try{while((t===void 0||t-->0)&&!(u=r.next()).done)f.push(u.value)}catch(o){e={error:o}}finally{try{u&&!u.done&&(i=r["return"])&&i.call(r)}finally{if(e)throw e.error;}}return f}function w(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(o(arguments[t]));return n}function r(n){return this instanceof r?(this.v=n,this):new r(n)}function b(n,t,i){function o(n){s[n]&&(f[n]=function(t){return new Promise(function(i,r){u.push([n,t,i,r])>1||e(n,t)})})}function e(n,t){try{c(s[n](t))}catch(i){h(u[0][3],i)}}function c(n){n.value instanceof r?Promise.resolve(n.value.v).then(l,a):h(u[0][2],n)}function l(n){e("next",n)}function a(n){e("throw",n)}function h(n,t){(n(t),u.shift(),u.length)&&e(u[0][0],u[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(n,t||[]),f,u=[];return f={},o("next"),o("throw"),o("return"),f[Symbol.asyncIterator]=function(){return this},f}function k(n){function i(i,f){t[i]=n[i]?function(t){return(u=!u)?{value:r(n[i](t)),done:i==="return"}:f?f(t):t}:f}var t,u;return t={},i("next"),i("throw",function(n){throw n;}),i("return"),t[Symbol.iterator]=function(){return this},t}function d(n){function i(i){t[i]=n[i]&&function(t){return new Promise(function(r,f){t=n[i](t);u(r,f,t.done,t.value)})}}function u(n,t,i,r){Promise.resolve(r).then(function(t){n({value:t,done:i})},t)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n[Symbol.asyncIterator],t;return r?r.call(n):(n=typeof e=="function"?e(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t)}function g(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}function nt(n){var t,i;if(n&&n.__esModule)return n;if(t={},n!=null)for(i in n)Object.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t.default=n,t}function tt(n){return n&&n.__esModule?n:{"default":n}}var u,f;i.r(t);i.d(t,"__extends",function(){return s});i.d(t,"__assign",function(){return f});i.d(t,"__rest",function(){return h});i.d(t,"__decorate",function(){return c});i.d(t,"__param",function(){return l});i.d(t,"__metadata",function(){return a});i.d(t,"__awaiter",function(){return v});i.d(t,"__generator",function(){return y});i.d(t,"__exportStar",function(){return p});i.d(t,"__values",function(){return e});i.d(t,"__read",function(){return o});i.d(t,"__spread",function(){return w});i.d(t,"__await",function(){return r});i.d(t,"__asyncGenerator",function(){return b});i.d(t,"__asyncDelegator",function(){return k});i.d(t,"__asyncValues",function(){return d});i.d(t,"__makeTemplateObject",function(){return g});i.d(t,"__importStar",function(){return nt});i.d(t,"__importDefault",function(){return tt});u=function(n,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},u(n,t)};f=function(){return f=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},f.apply(this,arguments)}},Flickity:function(n){n.exports=Flickity},jquery:function(n){n.exports=jQuery}})