1"use strict";function mapInit(r,e){function t(){var e=window.innerWidth,t=0;t=800<=e?.2*e:0,r.panBy(t,-34)}arrMarkers=e,mapCenter=r.getCenter(),t();var a=getComputedStyle(document.querySelector(".map__canvas")).color;e[0].icon.fillColor=a,$(window).resize(function(){setTimeout(function(){r.setCenter(mapCenter),t()},100)})}var w=window,mason=document.querySelector(".mason"),blnObjectFit=Modernizr.objectfit,blnCSSGrid=Modernizr.cssgrid,blnHome=mason.classList.contains("mason--home"),newsDots=document.querySelector(".news__dots"),intNewsBreakPoint=1140;console.log("blnCSSGrid",blnCSSGrid);var wW,wH,scrollItems,intScrollItems,newsCycle,wY=0,blnScrollTick=!1,arrScrollFunc=[],arrParallaxBg=[],intScrollArr=0;w.addEventListener("load",function(){wUpdate(),scrollItems=document.querySelectorAll(".js_parallax"),Array.prototype.forEach.call(scrollItems,function(e){arrScrollFunc.push(parallax(e,intScrollArr)),intScrollArr++}),scrollItems=document.querySelectorAll(".js_hit"),Array.prototype.forEach.call(scrollItems,function(e){arrScrollFunc.push(lazyload(e,intScrollArr,"",function(e){delete arrScrollFunc[e]})),intScrollArr++}),scrollItems=document.querySelectorAll(".js_lazy"),Array.prototype.forEach.call(scrollItems,function(e){arrScrollFunc.push(lazyload(e,intScrollArr,"img",function(e){delete arrScrollFunc[e]})),intScrollArr++}),new ecoCycle({el:".hero__slideshow",onChange:function(e,t,r){if(blnHome){var a=$(".hero__slideshow__item").eq(e).attr("data-id");$('.hero__overlay__item[data-id="'+a+'"]').addClass("active").siblings().removeClass("active")}},shuffle:!blnHome}).init(),wUpdate(),mason.classList.add("mason--ready")}),w.addEventListener("resize",function(){wUpdate()}),w.addEventListener("scroll",function(){wUpdate(),!blnScrollTick&&w.requestAnimationFrame(function(){wUpdate(),blnScrollTick=!1}),blnScrollTick=!0});var customScrolls=document.querySelectorAll(".js_scroll");Array.prototype.forEach.call(customScrolls,function(t){t.addEventListener("click",function(e){e.preventDefault(),w.scroll({top:document.querySelector(t.getAttribute("href")).getBoundingClientRect().top+wY-80,behavior:"smooth"})})}),document.querySelector(".search__btn").addEventListener("click",function(e){document.querySelector(".searchbar__input").focus()}),document.querySelector(".searchbar__bg").addEventListener("click",function(e){mason.classList.remove("mason--searchbar")});for(var msBtns=document.querySelectorAll(".content__region .ms-btn > a"),intMsBtns=msBtns.length,i=0;i<intMsBtns;i++)0==msBtns[i].children.length&&msBtns[i].insertAdjacentHTML("beforeend",'<span><svg class="fa--arrow-right--fas"><use href="#fa--arrow-right--fas" xlink:href="#fa--arrow-right--fas" x="0" y="0"/></svg></span>');var arrMarkers,mapZoom,mapCenter,heroOverlayAdjust=function(){var e=document.querySelector(".hero__overlay ul"),t=document.querySelectorAll(".hero__overlay__item > div"),r=[];Array.prototype.forEach.call(t,function(e){r.push(e.clientHeight)});var a=Math.max.apply(Math,r);e.style.height=a+"px"},homePage=function(){var e=document.querySelectorAll(".news__item").length%3,t=0;0!=e&&(t=3-e),newsLayoutDesktop(t),w.addEventListener("load",function(){heroOverlayAdjust(),newsLayout(t)}),w.addEventListener("resize",function(){heroOverlayAdjust(),newsLayout(t)})},imgLoadCheck=function(r,a,n){if(null!=r){var e=r.getAttribute("data-src"),t="/_site/images/design/thumbnail.jpg";if(r.classList.contains("loaded")||r.classList.contains("loading"))n();else{r.classList.add("loading"),null==e&&(e=t);var o=new Image,l=e;l=(o.src=l).replace(/\s/g,"%20"),o.onload=function(){s()},o.onerror=function(){console.log("Lazyload: image "+(""==l?"not specified.":'"'+l+'" not found.')+" Replaced with default thumbnail."),l=t,s()}}}var s=function(){var e,t=r.getAttribute("data-alt");null==t&&(t=""),e=blnObjectFit&&a?'<img class="lazy-item" src="'+l+'" alt="'+t+'"/>':'<div class="lazy-item" style="background-image: url(''+l+'')">',r.insertAdjacentHTML("beforeend",e),w.getComputedStyle(r).opacity,setTimeout(function(){r.classList.add("loaded"),r.classList.remove("loading")},100),n()}},itemGrouping=function(e,t,r){for(var a=$(e),n=0;n<a.length;n+=t)a.slice(n,n+t).wrapAll("<div class='group__list'></div>").stop();r()},lazyload=function(a,n,o,l){return function(){function e(){switch(o){case"img":l(n);var e=a.getAttribute("data-type");imgLoadCheck(a,null==e,function(){});break;default:l(n),a.classList.add("hit")}}var t=a.getAttribute("data-offset"),r=!1;null==t?t=0:-1!=t.indexOf("%")&&(r=!0),t=parseInt(t),r?wH>a.getBoundingClientRect().top+a.clientHeight*(t/100)&&e():wH>a.getBoundingClientRect().top+t&&e()}},noAdmin=function(){for(var e=document.querySelectorAll(".template--accordion__title"),t=e.length,r=0;r<t;r++)e[r].insertAdjacentHTML("beforeend","<span class='template--accordion__icon block-d'><svg class='icon_plus'><use href='#icon_plus' xlink:href='#icon_plus' x='0' y='0'/></svg></span>")},owlInit=function(t){var e=void 0;(e=null==(e=t.attr("owl-opts"))?{}:JSON.parse(e)).autoplayTimeout=7e3,e.autoplaySpeed=400,e.dotsSpeed=400,e.navSpeed=400,e.navText=['<svg class="fa--arrow-left--far"><use href="#fa--arrow-left--far" xlink:href="#fa--arrow-left--far" x="0" y="0"/></svg>','<svg class="fa--arrow-right--far"><use href="#fa--arrow-right--far" xlink:href="#fa--arrow-right--far" x="0" y="0"/></svg>'],t.owlCarousel(e),(e.navContainer&&e.autoplay||e.dotsContainer&&e.autoplay)&&t.on("changed.owl.carousel",function(e){t.trigger("stop.owl.autoplay"),t.trigger("play.owl.autoplay")})},owl=function(e){null==e&&(e=".owl");for(var t=document.querySelectorAll(e),r=t.length,a=0;a<r;a++){var n=$(t[a]);switch(t[a].getAttribute("owl-custom")){case"datesort":sortByDate(t[a],function(){owlInit(n)});break;default:owlInit(n)}}}(),newsLayout=function(e){var t=null!=document.querySelector(".news__slider");
1intNewsBreakPoint<=wW&&t&&blnCSSGrid&&($(".news__slider").owlCarousel("destroy"),$(".news__item").unwrap(),newsLayoutDesktop(e)),(wW<intNewsBreakPoint&&!t||!blnCSSGrid&&!t)&&($(".news__grid.ecocycle").length&&newsCycle.destroy(),$(".news__item--empty").remove(),$(".news__item").wrapAll('<ul class=\'news__slider list owl owl__flex\' owl-opts=\'{"margin":30,"dots":true,"dotsContainer":".news__dots--slider","nav":true,"navContainer":".news__header__nav--slider","responsive":{"0":{"items":1},"650":{"items":2},"1000":{"items":3}}}\' owl-trans=\'true\'></ul>').stop(),owlInit($(".news__slider")))},newsLayoutDesktop=function(e){for(var t=0;t<e;t++)newsDots.insertAdjacentHTML("beforebegin","<div class='news__item news__item--empty'><div></div></div>");(newsCycle=new ecoCycle({childNodes:".news__item",el:".news__grid",dots:!0,dotsContainer:".news__dots--cycle",dotsChild:"<span><span></span></span>",groupBy:3,nav:!0,navContainer:".news__header__nav--cycle",navChild:['<span><svg class="fa--arrow-left--far"><use href="#fa--arrow-left--far" xlink:href="#fa--arrow-left--far" x="0" y="0"/></svg></span>','<span><svg class="fa--arrow-right--far"><use href="#fa--arrow-right--far" xlink:href="#fa--arrow-right--far" x="0" y="0"/></svg></span>'],timeout:8e3})).init()},parallax=function(o,e){return function(){var e=o.getAttribute("parallax-speed"),t=o.offsetHeight,r=o.getBoundingClientRect().top+wY,a=0;if(e=null==e?2:parseInt(e),1024<wW)switch(o.getAttribute("parallax-type")){case"onreach":a=r<wY?(wY-r)/e:0;break;case"center":a=(r-wH/2+t/2-wY)/e;break;case"bottom":var n=document.body.scrollHeight-wH;a=r<wY?n:(document.body.scrollHeight-wH-w.pageYOffset)/e;break;default:a=r<wY+wH?wY/e:0}else a=0;o.firstElementChild&&(o.firstElementChild.style.transform="translateY("+a+"px)")}},saveCookie=function(e,t,r,a){mason.classList.add(t),Cookies.allowed()&&$.cookie(e,r,{path:"/",expires:parseInt(a)})},sortByDate=function(t,e){var r=function(e){return e.match(new RegExp("(?:<i>)(.*?)(?:</i>)","g"))[0].replace("<i>","").replace("</i>","")};[].slice.call(t.children).sort(function(e,t){return(e=r(e.getAttribute("data-date")))<(t=r(t.getAttribute("data-date")))?1:-1}).forEach(function(e){t.appendChild(e)}),e()},wUpdate=function(){wY=w.pageYOffset,wW=w.innerWidth,wH=w.innerHeight;for(var e=0;e<intScrollArr;e++){var t=arrScrollFunc[e];void 0!==t&&t()}250<wY?mason.classList.add("mason--header-min"):mason.classList.remove("mason--header-min"),350<wY?mason.classList.add("mason--header-ready"):mason.classList.remove("mason--header-ready"),450<wY?mason.classList.add("mason--header-show"):mason.classList.remove("mason--header-show")},urgentNews=function(){var e=document.querySelectorAll("button[data-cookie]");Array.prototype.forEach.call(e,function(t){t.addEventListener("click",function(e){saveCookie(t.getAttribute("data-cookietype"),t.getAttribute("data-class"),t.getAttribute("data-cookie"),t.getAttribute("data-expiry"))})})};wUpdate();
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.