1/*! For license information please see global.7f057f9d88bbf3486010.js.LICENSE.txt */ 2(()=>{var e={5082:()=>{window.tts.blog=window.tts.blog||{},window.tts.blog.articleTeaserList=new function(){var e=this,t=0;e.loadMoreButton=null,e.listElement=null,e.listContainer=null,e.getData=function(e,t){var n=null,i="/api/sitecore/blog/renderlatestblogarticles?page="+e+"&pagesize="+t;return window.tts.context.isExperienceEditor&&(i+="&sc_lang="+window.tts.context.contextLanguageCode),$.ajax({url:i,async:!1,success:function(e){n=e},dataType:"html"}),n},e.updateView=function(e,t){t.innerHTML+=e,window.tts.consentOverlay.initConsentOverlay(t),window.tts.initializeOverlayLinks()},e.loadMore=function(){var n=parseInt(e.listElement.dataset.page)+1;window.tts.shared.utils.addLoadingIconToElement(e.listElement);var i=e.getData(n,t);e.updateView(i,e.listElement),e.listElement.dataset.page=n,n*t>=e.listElement.dataset.totalResults&&e.loadButton&&(e.loadButton.parentNode.style.display="none"),window.tts.autoHeightByRow.init(),window.tts.shared.utils.removeLoadingIconFromElement(e.listElement)},e.initPageSize=function(){t=window.tts.device.isMedium()||window.tts.device.isSmall()?2:3},e.init=function(){if(e.initPageSize(),e.listContainer=document.querySelector(".article-teaser-list"),e.listContainer&&!e.listContainer.dataset.doNotFetchArticles&&(e.listElement=e.listContainer.querySelector(".article-teaser"),e.loadButton=e.listContainer.querySelector(".load-more"),e.listElement)){e.loadButton&&(e.loadButton.onclick=e.loadMore),window.tts.shared.utils.addLoadingIconToElement(e.listElement);var n=e.getData(1,t);e.updateView(n,e.listElement),e.listContainer.parentElement.classList.remove("hide"),window.tts.autoHeightByRow.init(),e.listElement.dataset.page=1,window.tts.shared.utils.removeLoadingIconFromElement(e.listElement)}}},document.addEventListener("DOMContentLoaded",window.tts.blog.articleTeaserList.init,!1)},8050:()=>{"use strict";window.tts=window.tts||{},window.tts.bingMaps=new function(){var e=this,t=window.tts.bingMapsSettings;e.initialized=!1;var n={};e.bingMapsInit=function(){var i;e.initialized||(e.initialized=!0,(n=new Microsoft.Maps.Map(document.getElementById("bingMap"),{disableBirdseye:!0,disableScrollWheelZoom:!0,disableStreetside:!0,enableHighDpi:!0,showTrafficButton:!1,showLocateMeButton:!1,backgroundColor:"#ffffff",liteMode:!0})).setView({center:new Microsoft.Maps.Location(t.initialLatitude,t.initialLongitude),zoom:t.initialZoomLevel}),function(){var e,i=t.locations.length;for(e=0;e<i;e++){var o=t.locations[e],r=new Microsoft.Maps.Location(o.latitude,o.longitude),s=new Microsoft.Maps.Pushpin(r,{icon:o.iconUrl,anchor:new Microsoft.Maps.Point(0,50)}),a=new Microsoft.Maps.Infobox(r,{description:o.description,visible:!1,offset:new Microsoft.Maps.Point(15,55),maxHeight:300,maxWidth:350});a.setMap(n),Microsoft.Maps.Events.addHandler(s,"click",(function(){a.setOptions({visible:!0})})),n.entities.push(s)}}(),(i=document.getElementById("bingMap")).setAttribute("data-responsive-image","true"),i.setAttribute("data-image-small-url",""),i.setAttribute("data-image-medium-url",""),i.setAttribute("data-image-large-url",""),i.setAttribute("data-image-small-width",t.widthS),i.setAttribute("data-image-small-height",t.heightS),i.setAttribute("data-image-medium-width",t.widthM),i.setAttribute("data-image-medium-height",t.heightM),i.setAttribute("data-image-large-width",t.widthL),i.setAttribute("data-image-large-height",t.heightL),window.tts.responsiveImages.init(),window.dispatchEvent(new Event("resize")))}},window.tts.ucHelper.checkConsentWithContainerMethod(window.tts.context.cookieConsentServiceIds.bingMapsConsentId,(e=>{if(window.tts.maps&&"bing"===window.tts.maps.mapsProvider&&window.tts.maps.mapsBundleLink&&e&&!window.tts.bingMaps.initialized){const e=document.createElement("script");e.setAttribute("src",window.tts.maps.mapsBundleLink),document.body.appendChild(e)}})),window.globalBingMapsInitCallback=function(){window.tts.bingMaps.bingMapsInit();const e=window.tts.dealerSearch;if(!e)return;const t=window.tts.dealerSearch.bingMap;e.init(t.initMap,t.getLocationFromDealer,t.filterChangeEvent,t.setCurrentCountryFilter)}},6164:()=>{window.tts.shared=window.tts.shared||{},window.tts.shared.utils=new function(){var e=this;e.addLoadingIconToElement=function(e,t){1==t&&(e.innerHTML="");var n=window.document.createElement("div");n.classList.add("loading-spinner"),n.classList.add("spinner-type-1"),e.classList.add("loading"),e.appendChild(n)},e.removeLoadingIconFromElement=function(e){var t=e.querySelector(".loading-spinner");e.classList.remove("loading"),null!=t&&e.removeChild(t)},e.makeFunction=function(e,t){if(t=t||!1,e){var n=e.indexOf("(")>-1?e.substring(0,e.indexOf("(")):e;return[window].concat(n.split(".")).reduce((function(e,n){return null==e&&t?null:e[n]}))}return null}
2,e.findAncestor=function(e,t){for(;(e=e.parentElement)&&!e.matches.call(e,t););return e},e.getOuterHeight=function(e,t,n){const i=function(e){const t=parseInt(e);return isNaN(t)?0:t};var o=e.currentStyle||window.getComputedStyle(e),r="auto"==o.height?i(e.offsetHeight):i(o.height),s=r;return n&&1==n&&(s=r+i(o.paddingTop)+i(o.paddingBottom)+i(o.borderTop)+i(o.borderBottom)),t&&1==t&&(s=s+i(o.marginBottom)+i(o.marginTop)),s}}},5889:()=>{window.tts=window.tts||{},window.tts.ajax=new function(){this.sendRequest=function(e,t,n,i,o,r,s){var a=new XMLHttpRequest;return window.tts.browserDetect.ieIsCurrentBrowser&&(e=decodeURIComponent(e),e=window.tts.url.getUrlWithEncodedSearchParams(e)),-1!==e.indexOf("/",e.length-1)&&(e=e.substring(0,e.length-1)),a.open(t,e),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-Type","application/json"),s&&s(a),a.onreadystatechange=function(){if(4===a.readyState)if(a.status<200||a.status>299)i&&i(a.status,a.responseText);else{var e=a.responseText;!0!==r&&""!==e&&(e=JSON.parse(e)),n&&n(e)}},o?a.send(o):a.send(),!0}}},4661:()=>{window.tts=window.tts||{},window.tts.attributeOptions=new function(){this.getAttributeOptions=function(e){for(var t={},n=e.split(";"),i=0;i<n.length;i++){var o=n[i].trim();if(!o)return;var r=o.split(":");if(2!==r.length)return;t[r[0].trim()]=r[1].trim()}return t}}},6700:()=>{window.tts=window.tts||{},window.tts.autoHeightByRow=new function(){var e=this,t=[],n=null,i=null;e.init=function(){null!=(n=document.querySelectorAll("[data-auto-height-row-size]"))&&window.addEventListener("resize",e.setResizeTimeout,!1),e.setHeadlineHeight()},e.setHeadlineHeight=function(){t&&((t=[].slice.call(n).map((function(e){var t=0;window.tts.device.isMedium()&&e.dataset.autoHeightRowSizeMedium?t=e.dataset.autoHeightRowSizeMedium:window.tts.device.isSmall()&&e.dataset.autoHeightRowSizeSmall?t=e.dataset.autoHeightRowSizeSmall:(window.tts.device.isLarge()||window.tts.device.isXLarge())&&e.dataset.autoHeightRowSize&&(t=e.dataset.autoHeightRowSize);var n=[];for(const t of e.getElementsByClassName("auto-height-item")){const e=t.closest(".auto-height-container");if(!e||"none"!==window.getComputedStyle(e).display){var i=t.dataset.autoHeightIndex;i&&(n[i]||(n[i]=[]),n[i].push(t))}}return n[0]=[],e.querySelectorAll('[class*="headline"]').forEach((function(e){n[0].push(e)})),{nodesByIndex:n,rowSize:t}}))).forEach((function(e){0!==e.rowSize&&e.nodesByIndex.forEach((function(t){var n=[],i=[];t.forEach((function(o,r){o.style.height="",(r+1)%e.rowSize>0&&r+1<t.length?i.push(o):(i.push(o),n.push(i),i=[])})),n.forEach((function(e){var t=Math.max.apply(Math,e.map((function(e){return e.offsetHeight})));e.forEach((function(e){e.style.height=t+"px"}))}))}))})),window.dispatchEvent(new Event("auto-height-adjusted")))},e.setResizeTimeout=function(){i||(i=window.setTimeout((function(){i=null,e.setHeadlineHeight()}),500))}},window.addEventListener("load",(()=>window.tts.autoHeightByRow.init()),!1)},3561:()=>{window.tts=window.tts||{},window.tts.awb=new function(){var e=this;e.filtersElement=null,e.queryHandler=null,e.pagination=null,e.initialized=!1,e.popstate=!1,e.initializeAwbOverview=function(){e.filtersElement=document.querySelector(".awb-filters"),null!=e.filtersElement&&(e.queryHandler=new window.tts.url.keyValueUrlQueryHandler,e.initializeFilters(),e.initPagination(),window.tts.device.isSmall()?e.queryHandler.addOrUpdate("breakpoint","Small"):window.tts.device.isMedium()?e.queryHandler.addOrUpdate("breakpoint","Medium"):e.queryHandler.addOrUpdate("breakpoint","Large"),e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query)))},e.initializeFilters=function(){var t=document.querySelector(".open-mobile-filter");t&&e.filtersElement&&(new window.tts.filterHandler(e.filtersElement,e.queryHandler).initFilter("label.filter-tags",e.filterClicked),t.onclick=e.openMobileFilterMenu)},e.initPagination=function(){var t=document.querySelectorAll(".pagination > li > a");e.pagination=new window.tts.paginationHandler(t,e.queryHandler),e.pagination.init(e.updateView)},e.updateView=function(t){var n=document.querySelector(".awb-wrapper");
2n.parentElement.style.minHeight=n.offsetHeight+"px",n.innerHTML="",window.tts.shared.utils.addLoadingIconToElement(n);var i=e.queryHandler.generateUrlWithoutQuerys(["breakpoint"]);if(e.popstate){var o=e.queryHandler.getValueForKey("breakpoint"),r=e.queryHandler.getValueForKey("page");e.queryHandler.query=window.tts.url.createSearchKeyValuePairs(decodeURIComponent(window.location.search)),e.queryHandler.addOrUpdate("breakpoint",o.value),r&&r.value<=1&&e.queryHandler.addOrUpdate("page",r.value),t=window.tts.url.generateQueryParamsUrl(e.queryHandler.query)}window.scrollTo({top:0+document.querySelector("header").offsetHeight}),$.get("/api/sitecore/AWB/AWBDetailTeaserList"+t,(function(t){n.innerHTML=t,window.tts.consentOverlay.initConsentOverlay(n),window.tts.shared.utils.removeLoadingIconFromElement(n),n.parentElement.style.minHeight=0,e.initialized&&!e.popstate&&window.tts.url.addQueryParameterToHistory(i),e.initializeFilters(),e.initPagination(),window.tts.autoHeightByRow.init(),window.tts.media.initializeInPlaceVideos(),window.tts.initializeOverlayLinks(),e.initialized=!0,e.popstate=!1}),"html")},e.popStateHandler=function(){e.initialized&&(e.popstate=!0,e.updateView())},e.filterClicked=function(){var t=document.getElementById(this.htmlFor);t.checked?e.queryHandler.removeByValue(t.value):e.queryHandler.add(t.dataset.filterType,t.value),e.queryHandler.removeByKey("page"),window.tts.device.isSmall()?e.setCount():e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query))},e.setCount=function(){var t=document.querySelector(".awb-total-results-text > span"),n=window.tts.url.generateQueryParamsUrl(e.queryHandler.query);$.get("/api/sitecore/AWB/AWBDetailTeaserCount"+n,(function(e){t.innerText=e}),"html")},e.openMobileFilterMenu=function(){var t=document.querySelector(".awb-total-results"),n=document.querySelector(".awb-filters");n.classList.contains("active")&&e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query)),t.classList.toggle("active"),n.classList.toggle("active")}},document.addEventListener("DOMContentLoaded",window.tts.awb.initializeAwbOverview,!1),window.addEventListener("popstate",window.tts.awb.popStateHandler,!1)},4706:()=>{window.tts=window.tts||{},window.tts.blogFilter=new function(){var e=this;e.filtersElement=null,e.wrapperElement=null,e.rubricWrapperElement=null,e.queryHandler=null,e.pagination=null,e.initialized=!1,e.popstate=!1,e.initializeBlogRubric=function(){e.filtersElement=document.querySelector(".blog-filter"),e.wrapperElement=document.querySelector(".blog-filter__wrapper"),e.rubricWrapperElement=document.querySelector(".blog-rubric-wrapper"),e.filtersElement&&e.wrapperElement&&e.rubricWrapperElement&&(e.queryHandler=new window.tts.url.keyValueUrlQueryHandler,e.initializeFilterButton(),e.initializeFilters(),e.initPagination(),e.addRubricIdToUrl(),window.tts.device.isSmall()?e.queryHandler.addOrUpdate("breakpoint","Small"):window.tts.device.isMedium()?e.queryHandler.addOrUpdate("breakpoint","Medium"):e.queryHandler.addOrUpdate("breakpoint","Large"),e.queryHandler.addOrUpdate("highlightTeaserId",e.rubricWrapperElement.dataset.highlightId),e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query)))},e.initializeFilters=function(){new window.tts.filterHandler(e.filtersElement,e.queryHandler).initFilter(".filter-tags__label",e.filterClicked)},e.initializeFilterButton=function(){var t=document.querySelector(".blog-filter__icon-wrapper .open-filter > div");t&&t.addEventListener("click",(function(){e.filtersElement.classList.toggle("filter-tags--hidden"),e.wrapperElement.classList.toggle("menu--hidden")}))},e.initPagination=function(){var t=document.querySelectorAll(".pagination > li > a");e.pagination=new window.tts.paginationHandler(t,e.queryHandler),e.pagination.init(e.updateView)},e.updateView=function(t){e.prepareUpdate();var n=e.queryHandler.generateUrlWithoutQuerys(["rubricItemId","breakpoint","highlightTeaserId"]);if(e.popstate){var i=e.queryHandler.getValueForKey("breakpoint"),o=e.queryHandler.getValueForKey("rubricItemId"),r=e.queryHandler.getValueForKey("page"),s=e.queryHandler.getValueForKey("highlightTeaserId");e.queryHandler.query=window.tts.url.createSearchKeyValuePairs(decodeURIComponent(window.location.search)),e.queryHandler.addOrUpdate("breakpoint",i.value),e.queryHandler.addOrUpdate("rubricItemId",o.value),r&&r.value<=1&&e.queryHandler.addOrUpdate("page",r.value),s&&e.queryHandler.addOrUpdate("highlightTeaserId",s.value),t=window.tts.url.generateQueryParamsUrl(e.queryHandler.query)}$.get("/api/sitecore/Rubric/RenderBlogRubricList"+t,(function(t){e.rubricWrapperElement.innerHTML=t,window.tts.shared.utils.removeLoadingIconFromElement(e.rubricWrapperElement),e.rubricWrapperElement.parentElement.style.minHeight=0,e.initialized&&!e.popstate&&window.tts.url.addQueryParameterToHistory(n),e.reInitialize(),e.initialized=!0,e.popstate=!1}),"html")},e.popStateHandler=function(){e.initialized&&(e.popstate=!0,e.updateView())},e.filterClicked=function(){var t=document.getElementById(this.htmlFor);t.checked?e.queryHandler.removeByValue(t.value):e.queryHandler.add(t.dataset.f
2ilterType,t.value),e.queryHandler.removeByKey("page"),e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query))},e.prepareUpdate=function(){e.rubricWrapperElement.parentElement.style.minHeight=e.rubricWrapperElement.offsetHeight+"px",e.rubricWrapperElement.innerHTML="",window.tts.shared.utils.addLoadingIconToElement(e.rubricWrapperElement)},e.reInitialize=function(){e.initializeFilters(),e.initPagination(),window.tts.media.initializeInPlaceVideos(),window.tts.autoHeightByRow.init(),window.tts.initializeOverlayLinks()},e.addRubricIdToUrl=function(){var t=document.getElementById("rubricId");if(t){var n=t.value;e.queryHandler.addOrUpdate("rubricItemId",n)}}},document.addEventListener("DOMContentLoaded",window.tts.blogFilter.initializeBlogRubric,!1),window.addEventListener("popstate",window.tts.blogFilter.popStateHandler,!1)},3591:()=>{window.tts=window.tts||{},window.tts.button=new function(){var e=this;e.createJsLinkElement=function(e,t,n){var i=document.createElement("a");return i.href="javascript:;",i.innerText=e,i.className=t,i.addEventListener("click",n),i},e.createLink=function(t){var n=null;switch(t.type){case"JavascriptButton":n=window.tts.shared.utils.makeFunction(t.javascriptFunction);break;case"LinkButton":n=function(){window.location.href=t.href};break;default:throw"Not supported button"}return e.createJsLinkElement(t.text,t.cssClass,n)}}},1401:()=>{window.tts=window.tts||{},window.tts.carousel=new function(){this.initializeCarousels=function(){$(".homepage-carousel-slider").slick({slidesToShow:1,slidesToScroll:1,dots:!0,infinite:!0,autoplay:!0})}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.carousel.initializeCarousels,!1)},1788:()=>{window.tts=window.tts||{},window.tts.constructionPlans=new function(){var e=this;e.filtersElement=null,e.queryHandler=null,e.pagination=null,e.initialized=!1,e.popstate=!1,e.initializeConstructionPlansOverview=function(){e.constructionPageCheck(),e.filtersElement=document.querySelector(".construction-plans-filters"),null!=e.filtersElement&&(e.queryHandler=new window.tts.url.keyValueUrlQueryHandler,e.initializeFilters(),e.initPagination(),window.tts.device.isSmall()?e.queryHandler.addOrUpdate("breakpoint","Small"):window.tts.device.isMedium()?e.queryHandler.addOrUpdate("breakpoint","Medium"):e.queryHandler.addOrUpdate("breakpoint","Large"),e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query)))},e.constructionPageCheck=()=>{document.getElementsByClassName("construction-plans-intro-in-construction-page")[0]&&document.getElementById("page").classList.add("construction-plans-page")},e.initializeFilters=function(){var t=document.querySelector(".open-mobile-filter");t&&e.filtersElement&&(new window.tts.filterHandler(e.filtersElement,e.queryHandler).initFilter("label.filter-tags",e.filterClicked),t.onclick=e.openMobileFilterMenu)},e.initPagination=function(){var t=document.querySelectorAll(".pagination > li > a");e.pagination=new window.tts.paginationHandler(t,e.queryHandler),e.pagination.init(e.updateView)},e.updateView=function(t){var n=document.querySelector(".construction-plans-wrapper");n.parentElement.style.minHeight=n.offsetHeight+"px",n.innerHTML="",window.tts.shared.utils.addLoadingIconToElement(n);var i=e.queryHandler.generateUrlWithoutQuerys(["breakpoint"]);if(e.popstate){var o=e.queryHandler.getValueForKey("breakpoint"),r=e.queryHandler.getValueForKey("page");e.queryHandler.query=window.tts.url.createSearchKeyValuePairs(decodeURIComponent(window.location.search)),e.queryHandler.addOrUpdate("breakpoint",o.value),r&&r.value<=1&&e.queryHandler.addOrUpdate("page",r.value),t=window.tts.url.generateQueryParamsUrl(e.queryHandler.query)}window.scrollTo({top:0+document.querySelector("header").offsetHeight}),$.get("/api/sitecore/ConstructionPlans/ConstructionPlansDetailTeaserList"+t,(function(t){n.innerHTML=t,window.tts.shared.utils.removeLoadingIconFromElement(n),n.parentElement.style.minHeight=0,e.initialized&&!e.popstate&&window.tts.url.addQueryParameterToHistory(i),e.initializeFilters(),e.initPagination(),window.tts.autoHeightByRow.init(),window.tts.media.initializeInPlaceVideos(),window.tts.initializeOverlayLinks(),e.initialized=!0,e.popstate=!1}),"html")},e.popStateHandler=function(){e.initialized&&(e.popstate=!0,e.updateView())},e.filterClicked=function(){var t=document.getElementById(this.htmlFor);t.checked?e.queryHandler.removeByValue(t.value):e.queryHandler.add(t.dataset.f
2ilterType,t.value),e.queryHandler.removeByKey("page"),window.tts.device.isSmall()?e.setCount():e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query))},e.setCount=function(){var t=document.querySelector(".construction-plans-total-results-text > span"),n=window.tts.url.generateQueryParamsUrl(e.queryHandler.query);$.get("/api/sitecore/ConstructionPlans/ConstructionPlansDetailTeaserCount"+n,(function(e){t.innerText=e}),"html")},e.openMobileFilterMenu=function(){var t=document.querySelector(".construction-plans-total-results"),n=document.querySelector(".construction-plans-filters");n.classList.contains("active")&&e.updateView(window.tts.url.generateQueryParamsUrl(e.queryHandler.query)),t.classList.toggle("active"),n.classList.toggle("active")}},document.addEventListener("DOMContentLoaded",window.tts.constructionPlans.initializeConstructionPlansOverview,!1),window.addEventListener("popstate",window.tts.constructionPlans.popStateHandler,!1)},1133:()=>{window.tts=window.tts||{},window.tts.cookie=new function(){var e=this;e.createCookie=function(e,t,n){window.cookieStore.set({name:e,value:t,expires:new Date(Date.now()+30*n*24*60*60*1e3),path:"/",sameSite:"strict"})},e.createSessionCookie=function(e,t){window.cookieStore.set({name:e,value:t,expires:null,path:"/",sameSite:"strict"})},e.getCookie=function(e){return Cookies.get(e)||""},e.removeCookie=function(e){Cookies.remove(e)},e.gtmAvailable=function(){return!(void 0===window.google_tag_manager||null===window.google_tag_manager)}}},3702:()=>{window.tts=window.tts||{},window.tts.events=new function(){var e=this,t=null,n=null,i=null,o=null;e.regionFilterClicked=function(){for(var n=t.querySelectorAll(".region-filter input"),o=0;o<n.length;o++){var r=n[o],s=r.id==this.htmlFor,a=s&&r.getAttribute("data-region-id")==i;a||(r.checked=!1),s&&(i=a?null:r.getAttribute("data-region-id"),e.LoadEventList(e.SetEventList,!0))}},e.typeFilterClicked=function(){for(var i=t.querySelectorAll(".type-filter input"),o=0;o<i.length;o++){var r=i[o],s=r.id==this.htmlFor,a=s&&r.getAttribute("data-event-type-id")==n;a||(r.checked=!1),s&&(n=a?null:r.getAttribute("data-event-type-id"),e.LoadEventList(e.SetEventList,!0))}},e.initializeEventFilters=function(){var n=t.querySelectorAll(".type-filter label");let i;for(i=0;i<n.length;i++)n[i].onclick=e.typeFilterClicked;var o=t.querySelectorAll(".region-filter label");for(i=0;i<o.length;i++)o[i].onclick=e.regionFilterClicked},e.SetEventList=function(e){document.querySelector(".event-container").outerHTML=e},e.appendEvents=function(e){var t=document.createElement("div");t.innerHTML=e;for(var n=t.querySelectorAll(".event-teaser"),i=0;i<n.length;i++){var r=n[i];o.appendResult(r)}},e.LoadEventList=function(t,r){var s={page:r?0:o.getCurrentCount()/10,regionId:i,typeid:n};o.loadMore("/api/sitecore/Events/RenderEventList",s,(function(n){t&&t(n),e.initializeEventOverview()}))},e.initializeEventOverview=function(){o=new window.tts.pagingManager(".event-container",".results",".event-teaser",(function(){e.LoadEventList(e.appendEvents)})),null!=(t=document.querySelector(".event-filters"))&&e.initializeEventFilters()}},document.addEventListener("DOMContentLoaded",window.tts.events.initializeEventOverview,!1)},2075:()=>{window.tts=window.tts||{},window.tts.faqModule=new function(){this.init=function(){var e=$
2(".faq-module");e.length>0&&((window.tts.device.isSmall()&&1===e.data("collapse-on-small")||window.tts.device.isMedium()&&1===e.data("collapse-on-medium")||(window.tts.device.isLarge()||window.tts.device.isXLarge())&&1===e.data("collapse-on-large"))&&e.find(".faq-module__item").addClass("faq-module__item--collapsed").children(".faq-module__answer").hide(),e.find(".faq-module__question").click((function(e){var t=$(e.target).closest(".faq-module__item");t.hasClass("faq-module__item--collapsed")?t.removeClass("faq-module__item--collapsed").children(".faq-module__answer").slideDown():t.addClass("faq-module__item--collapsed").children(".faq-module__answer").slideUp()})))}},document.addEventListener("DOMContentLoaded",window.tts.faqModule.init,!1)},5081:()=>{window.tts.filterHandler=function(e,t){var n=this;n.filterElements=e,n.queryHandler=t,n.initFilter=function(e,t){n.filterElements.querySelectorAll(e).forEach((function(e){var i=document.getElementById(e.htmlFor);i.checked=n.queryHandler.query.filter((function(e){return e.key===i.dataset.filterType&&e.value===i.value})).length>0,e.onclick=t}))}}},1404:()=>{window.tts=window.tts||{},window.tts.filterTags=new function(){this.initializeFilterTags=function(){var e=$
2(".filter-tags-wrapper.multiple-select input[type=radio].filter-tags + label");e.length>0&&e.on("click",(function(e){var t=$(this).prev("input[type=radio].filter-tags");t.prop("checked")&&(e.preventDefault(),t.prop("checked",!1).trigger("change"))}))}},document.addEventListener("DOMContentLoaded",window.tts.filterTags.initializeFilterTags,!1)},1742:()=>{window.tts=window.tts||{},window.tts.footnotes=new function(){var e=this;e.initializeFootnotes=function(){$("[id^=footnote-label-][id$=-ref]").each((function(){e.addListener(this)}))},e.addListener=function(e){e&&$(e).on("click",(function(){var e=$(this).attr("href"),t=$(e),n=$(t).offset()?.top;return null==n||(document.querySelector(".inpage-navigation")&&(n-=window.tts.inpagenavigation.getNavigationOffset(n)),t.addClass("--focused"),$(window).scrollTop(n)),!1}))}},document.addEventListener("DOMContentLoaded",window.tts.footnotes.initializeFootnotes,!1)},3574:()=>{window.tts=window.tts||{},window.tts.foundation=new function(){this.init=function(){$(document).foundation()}},document.addEventListener("DOMContentLoaded",window.tts.foundation.init,!1)},1076:()=>{window.tts=window.tts||{},window.tts.greenPlusExpandable=new function(){var e=this;e.defaultDuration=750;var t=function(t){return t.dataset.greenPlusExpandableDuration||e.defaultDuration},n=function(e){return e.dataset.greenPlusExpandableCollapsedHeight},i=function(e){e.content.style.height="";var i=function(e){if(e.container.dataset.greenPlusExpandableMaxHeight)return e.container.dataset.greenPlusExpandableMaxHeight;if(!e.collapsedContent)return 0;var t=jQuery(e.container).offset(),n=jQuery(e.collapsedContent).offset();return Math.round(n.top+e.collapsedContent.clientHeight-t.top+e.button.clientHeight/2)}(e);e.content.dataset.greenPlusExpandableCollapsedHeight=e.container.clientHeight<i?e.container.clientHeight:i,e.container.style.height="",e.button.style.transition="none",e.content.style.transition="none",e.content.scrollHeight>n(e.content)?(e.container.classList.add("green-plus-expandable--expandable"),e.container.classList.contains("green-plus-expandable--expanded")?a(e,!1):l(e,!1)):(e.container.classList.remove("green-plus-expandable--expandable"),l(e));var o=t(e.container)+"ms";e.button.style.transition="transform "+o,e.content.style.transition="height "+o+" ease-out"},o=function(e){if(!e)return null;var t=e.querySelector(".green-plus-expandable__content");if(!t)return null;var n=e.querySelector(".green-plus-expandable__button-container");if(!n)return null;var i=n.querySelector(".green-plus-expandable__button");if(!i)return null;var o=e.querySelector(".green-plus-expandable__collapsed-content")||null;return{container:e,content:t,buttonContainer:n,button:i,collapsedContent:o}},r=function(e){e.classList.remove("green-plus-expandable--collapsing"),e.classList.remove("green-plus-expandable--collapsed"),e.classList.remove("green-plus-expandable--expanding"),e.classList.add("green-plus-expandable--expanded")},s=function(e){e.classList.remove("green-plus-expandable--expanding"),e.classList.remove("green-plus-expandable--expanded"),e.classList.remove("green-plus-expandable--collapsing"),e.classList.add("green-plus-expandable--collapsed")},a=function(e,n){e.container.classList.remove("green-plus-expandable--collapsing"),e.container.classList.remove("green-plus-expandable--expanded"),e.container.classList.remove("green-plus-expandable--collapsed"),e.container.classList.add("green-plus-expandable--expanding"),n?setTimeout((function(){r(e.container)}),t(e.container)):r(e.container),e.container.style.height="",e.buttonContainer.style.backgroundImage="none",e.content.style.height=e.content.scrollHeight+10+"px"},l=function(e,i){e.container.classList.remove("green-plus-expandable--expanding"),e.container.classList.remove("green-plus-expandable--collapsed"),e.container.classList.remove("green-plus-expandable--expanded"),e.container.classList.add("green-plus-expandable--collapsing"),i?setTimeout((function(){s(e.container)}),t(e.container)):s(e.container);var o=e.container.dataset.greenPlusExpandableOverlayColor||"transparent";e.buttonContainer.style.backgroundImage="linear-gradient(to top, "+o+", "+o+" 25%, rgba(255, 255, 255, 0))",e.content.style.height=n(e.content)+"px"};e.register=function(){var e=Array.prototype.slice.call(document.querySelectorAll(".green-plus-expandable")).map((function(e){return function(e){var t=jQuery(e);t.wrapInner('<div class="green-plus-expandable__content"></div>'),t.append('<div class="green-plus-expandable__button-container"><div class="green-plus-expandable__button"></div></div>')}(e),o(e)})).filter((function(e){return!!e}));e.forEach((function(e){i(e),setTimeout((function(){i(e)}),500),e.button.addEventListener("click",(function(){e.container.classList.contains("green-plus-expandable--expanded")?l(e,!0):a(e,!0)}))})),window.addEventListener("auto-height-adjusted",(()=>{e.forEach((function(e){i(e)}))}))},e.expand=function(e){var t=o(e);t&&a(t,!0)},e.collapse=function(e){var t=o(e);t&&l(t,!0)}},document.addEventListener("DOMContentLoaded",window.tts.greenPlusExpandable.register,!1)},6658:()=>{window.tts=window.tts||{},window.tts.imageGallery=new function(){var e=this;e.initializeGalleries=function(){$(".image-gallery-container").each((function(){var t=$(this);
2t.find(".image-gallery-items").on("init",(function(e,n){t.find(".image-gallery-pager-total").text(n.slideCount),t.find(".image-gallery-thumbnail").first().addClass("image-gallery-thumbnail-active")})),t.find(".image-gallery-items").on("beforeChange",(function(e,n,i,o){t.find(".image-gallery-pager-current").text(o+1),t.find(".image-gallery-thumbnail").removeClass("image-gallery-thumbnail-active").eq(o).addClass("image-gallery-thumbnail-active")})),t.find(".image-gallery-thumbnail").on("click",(function(e){var n=t.find(".image-gallery-thumbnail").index(e.target);t.find(".image-gallery-items").slick("slickGoTo",n),t.find(".image-gallery-thumbnail").removeClass("image-gallery-thumbnail-active"),$(e.target).addClass("image-gallery-thumbnail-active")})),t.find(".image-gallery-items").slick(),t.find(".image-gallery-thumbnails").slick({slidesToShow:14,slidesToScroll:1,infinite:!1,draggable:!1,responsive:e.calculateResponsiveSettings(14,3,1440,98)})}))},e.calculateResponsiveSettings=function(e,t,n,i){for(var o=[],r=e-1,s=1;r>=t;r--,s++)o.push({breakpoint:n-s*i,settings:{slidesToShow:r}});return o}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.imageGallery.initializeGalleries,!1)},3197:()=>{window.tts=window.tts||{},window.tts.inpagenavigation=new function(){var e,t=this,n=!1,i={},o=!0,r=null;t.getNavigation=function(){return document.querySelector(".inpage-navigation")},t.init=function(n){var o=document.createEvent("Event");if(o.initEvent("inpageNavigationInitialized",!0,!0),!(e=t.getNavigation()))return;i=$.extend({},{speed:400,easing:"swing",sectionClass:"page-section"},n);var r=t.getSections();let s;for(s=0;s<r.length;s++){var a=r[s];a.setAttribute("data-section-id",window.tts.math.createUid()),t.addNavigationElement(a)}var l=t.getTabsElement(),c=jQuery(l).children("*").get();for(s=0;s<c.length;s++)c[s].addEventListener("click",t.navElementClicked,!1);const d=Array.from(document.querySelectorAll('a[href^="#"]')).filter((e=>e.getAttribute("href").length>1));for(const e of d){const n=e.getAttribute("href"),i=document.querySelector(n);i&&(e.href="#",e.addEventListener("click",(function(e){t.getSectionAndScrollToPosition(i),e.preventDefault()})))}document.dispatchEvent(o)},t.addNavigationElement=function(e){var n=t.getTabsElement(),i=t.getSectionId(e);if(s(e)){var o=document.getElementById("inpage-navigation-tab").innerHTML;n.innerHTML+=o;var r=jQuery(n).children("li:last-child").get()[0];r.innerText=t.getSectionTitle(e),r.setAttribute("data-for-section-id",i),n.appendChild(r)}},t.getNavigationOffset=function(){return window.tts.shared.utils.getOuterHeight(e,!0,!1)},t.navElementClicked=function(){t.setActive(this);var e=t.getSectionByNavElement(this);e&&t.getSectionAndScrollToPosition(e,this.textContent)},t.getTabsElement=function(){return e.querySelector(".inpage-navigation__tabs")},t.moveToElement=function(e){$("html, body").scrollTop(e)},t.scrollToElement=function(e,t,o){if(e){var r=e.offsetTop-t,s={duration:i.speed,easing:i.easing,complete:function(){n=!1,o&&o()}};$("html,body").stop().animate({scrollTop:r},s)}},t.getSections=function(){return $("."+i.sectionClass+'[data-inpage-navigation-title]:not([data-inpage-navigation-title=""]):not(:has*)').toArray().reduce((function(e,t){return 0===e.filter((function(e){return t.getAttribute("data-inpage-navigation-title")===e.getAttribute("data-inpage-navigation-title")})).length&&e.push(t),e}),[])},t.getSectionByNavElement=function(e){var t='[data-section-id="'+e.getAttribute("data-for-section-id")+'"]';return window.document.querySelector(t)},t.markActive=function(e){e&&e.setAttribute("data-opened","true")},t.getActive=function(){return e.querySelector('.inpage-navigation__tabs > *[data-opened="true"]')},t.setActive=function(e){var n=t.getActive();t.markInactive(n),t.markActive(e),t.centralizeTab(t.getTabsElement(),e)},t.markInactive=function(e){e&&(e.removeAttribute("data-opened"),e.blur())},t.getSectionTitle=function(e){var t=e.getAttribute("data-inpage-navigation-title");return $($.parseHTML(t)).text()},t.getSectionId=function(e){return e.getAttribute("data-section-id")},t.checkForSectionHighlighting=function(i){if(!n&&e){var o=t.getNavElement();o?(t.setActive(o),t.setHashSection(o.textContent.replace(/ /g,""))):(t.markInactive(t.getActive()),void 0!==i&&!0!==i||t.removeHash())}},t.getNavElement=function(){var e=t.getSectionToHighlight();if(e){var n=t.getSectionId(e);return t.getNavigationElement(n)}return null},t.removeHash=function(){var e=window.location.toString();if(e.indexOf("#")>0){var t=e.substring(0,e.indexOf("#"));history.replaceState?window.history.replaceState(null,null,t):window.location.hash=""}},t.setHashSection=function(e){t.getHashSection()===e||o||(history.replaceState?window.history.replaceState(null,null,"#"+e):window.location.hash="#"+e)},t.getHashSection=function(){var e="#/"===window.location.hash.substr(0,2)?2:1,t=window.location.hash.substring(e);return decodeURIComponent(t)},t.getNavigationElement=function(e){return t.getTabsElement().querySelector('[data-for-section-id="'+e+'"]')},t.getSectionToHighlight=function(){for(var n=null,i=t.getSections(),r=0;r<i.length;r++){var s=i[r],a=s.dataset.inpageNavigationTitle.replace(/ /g,"");0===r&&(n=s),t.getHashSection()==a&&1==o&&(n=s,t.setActive(s),t.getSectionAndScrollToPosition(s,a));var l=window.tts.stickycontainer.hasPlaceholder(e),c=0;l&&(c=window.pageYOffset+window.tts.shared.utils.getOuterHeight(e,!0,!0)),c>=s.offsetTop&&l&&(n=s)}return n},t.getSectionAndScrollToPosition=function(e,i){n=!0;const o=i,r=t.getNavigationOffset(e.offsetTop);t.scrollToElement(e,r,(function(){o&&t.setHashSection(o.replace(/ /g,""))}))},t.showOrHideNavBarArrows=function(e,t){t.scrollWidth>t.clientWidth?e.classList.add("inpage-navigation__tab-container--scrollable"):e.classList.remove("inpage-navigation__tab-container--scrollable")},t.deactivateOrActivateNavBarArrows=function(e,t,n){e.scrollLeft>0?t.classList.add("inpage-navigation__button-container--active"):t.classList.remove("inpage-navigation__button-container--active"),e.scrollLeft<e.scrollWidth-e.clientWidth?n.classList.add("inpage-navigation__button-container--active"):n.classList.remove("inpage-navigation__button-container--active")},t.centralizeTab=function(e,t){var n=e.clientWidth,i=(e.scrollLeft,t.getBoundingClientRect().left),o=e.getBoundingClientRect().left,r=t.clientWidth,s=e.scrollLeft+i-o-n/2+r/2;e.scrollLeft=s},t.initQueryStringSection=function(){e&&(t.checkForSectionHighlighting(!1),t.reinitialize(),window.addEventListener("scroll",(function(){window.tts.inpagenavigation.checkForSectionHighlighting(!0)}),!1),window.addEventListener("resize",(function(){r||(r=window.setTimeout((function(){r=null,t.reinitialize()}),500))}),!1),o=!1)};var s=function(e){var t=null;return e.querySelector&&(t=e.querySelector(".page-section__headline:only-child")),!t};t.reinitialize=function(){var n=t.getTabsElement(),i=e.querySelector(".inpage-navigation__tab-container"),o=i.querySelector(".inpage-navigation__button-container-left"),r=i.querySelector(".inpage-navigation__button-container-right");t.showOrHideNavBarArrows(i,n),window.tts.inpagenavigation.checkForSectionHighlighting(!0),t.deactivateOrActivateNavBarArrows(n,o,r),jQuery(i).find(".inpage-navigation__button-container").unbind().on("click",(function(e){this.style.display="none",$(document.elementFromPoint(e.clientX,e.clientY)).trigger("click"),this.style.display=""}
2)),jQuery(i).on("mousedown",".inpage-navigation__button-container--active .inpage-navigation__button-left",(function(){$(n).stop().animate({scrollLeft:n.scrollLeft-150},250)})),jQuery(i).on("mousedown",".inpage-navigation__button-container--active .inpage-navigation__button-right",(function(){$(n).stop().animate({scrollLeft:n.scrollLeft+150},250)})),n.addEventListener("scroll",(function(){window.tts.inpagenavigation.deactivateOrActivateNavBarArrows(n,o,r)}),!1)}},window.addEventListener("DOMContentLoaded",(function(){window.tts.inpagenavigation.init(),window.setTimeout(window.tts.inpagenavigation.initQueryStringSection,600)}),!1)},9728:()=>{window.tts=window.tts||{},window.tts.jsHash=new function(){var e=this,t=!1;e.isInitialized=function(){return t},e.init=function(){var n=document.createEvent("Event");n.initEvent("jsHashInitialized",!0,!0);var i=function(){t=!0,document.dispatchEvent(n)},o=window.location.hash;e.isJsHash(o)?(window.scrollTo(0,0),e.loadHash(o,i)):i&&i()},e.isJsHash=function(e){var t=e;return void 0===t&&(t=window.location.hash),0==t.indexOf("#")&&(t=t.substring(1)),0==t.indexOf("js-")},e.loadHash=function(t,n){var i=e.getHash(t),o=document.getElementById(i);if(null!=o){var r=function(){var e=0,t=window.tts.inpagenavigation.getNavigation();return void 0!==t&&null!=t&&(e=window.tts.shared.utils.getOuterHeight(t,!0,!0)-2),e}();e.moveToElement(o,r,!1,n)}},e.moveToElement=function(e,t,n,i){var o=e.offsetTop-t,r={complete:function(){i&&i()}};n&&1==n?$("html,body").stop().animate({scrollTop:o},r):(window.scrollTo(0,o),i&&i())},e.getHash=function(e){var t=e;return 0==t.indexOf("#")&&(t=t.substring(1)),0==t.indexOf("js-")&&(t=t.substring(3)),t}},window.addEventListener("load",(function(){null==window.tts.inpagenavigation.getNavigation()&&window.tts.jsHash.init()}),!1),document.addEventListener("inpageNavigationInitialized",(function(){window.tts.jsHash.init()}),!1)},2325:()=>{window.tts=window.tts||{},window.tts.math=new function(){var e=0,t=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};this.createUid=function(){return t()+"x"+(++e).toString(16)+"x"+t()}}},3378:()=>{window.tts=window.tts||{},window.tts.overlayContent=window.tts.overlayContent||{},window.tts.overlayContent.html=new function(){this.generate=function(e){var t=document.createElement("div");return t.innerHTML=e,t}},window.tts.overlayContent.model=new function(){this.generate=function(e,t){var n=document.createElement("div"),i=document.createElement("div");if(i.innerHTML=e.content||"",i.className="row",n.appendChild(i),e.buttons&&e.buttons.length>0){var o=document.createElement("div");for(var r in o.className="row actions",n.appendChild(o),e.buttons){var s=e.buttons[r],a=window.tts.button.createLink(s);o.appendChild(a)}}return t.show(),e.hideCloseIcon&&t.hideCloseIcon(),n}},window.tts.overlayContent.async=new function(){this.generate=function(e,t,n){var i=document.createElement("div");return n=n||function(){console.error("Could not process ajax call to url: "+e)},window.tts.ajax.sendRequest(e,"GET",(function(e){i.appendChild(window.tts.overlayContent.model.generate(e,t))}),n),i}},window.tts.overlayContent.iframe=new function(){this.generate=function(e){return function(e){var t=.5*document.documentElement.clientHeight,n=document.createElement("div"),i=document.createElement("iframe");return i.src=e,n.appendChild(i),i.onload=function(){try{var e=i.contentWindow.document.offsetHeight,n=e>t?t:e;i.style.height=n+"px"}catch(e){}},n}(e)}}},3902:()=>{window.tts=window.tts||{},window.tts.overlay=function(e,t,n){const i=this;let o=null,r=null;if(!e&&"js"==t)throw"Missing js function";i.className="",i.closeFunction=void 0,i.domOverlay=void 0;const s=function(){const o=document.createElement("button");o.className="close icon-close",o.onclick=function(){i.hide(),i.closeFunction&&i.closeFunction()},r=o;const s=document.createElement("div");s.className="overlay";const a=document.createElement("div");a.tabIndex=0,a.className="dummy-focusable-div-before",a.addEventListener("focus",(function(){const e=i.domOverlay.querySelector("iframe");e&&e.focus()})),s.appendChild(a),s.appendChild(o);const l=document.createElement("span");l.className="sr-only",l.textContent=tts.dictionary.getText("fcp_accessibility_button_close"),o.appendChild(l),i.domOverlay=s;const c=document.createElement("div");c.className="overlay-wrapper "+i.className,c.appendChild(s);const d=window.tts.overlayContent[t].generate(e,i,n);d.classList.add("row"),d.classList.add("content"),s.appendChild(d);const u=document.createElement("div");return u.tabIndex=0,u.className="dummy-focusable-div",u.addEventListener("focus",(function(){o.focus()})),s.appendChild(u),c}();let a=!1;i.addCloseButton=function(e,t){t=t?t+" close-overlay":"close-overlay";const n=window.tts.button.createJsLinkElement(e,t,(function(){i.hide(),i.closeFunction&&i.closeFunction()}));i.domOverlay.querySelector(".content").appendChild(n)};const l=function(e){"Escape"!==e.key&&"Esc"!==e.key||i.hide()};document.addEventListener("keyup",l),i.show=function(){a||(o=document.activeElement,null==i.className||""==i.className||null==i.domOverlay||i.domOverlay.parentNode.classList.contains(i.
2className)||i.domOverlay.parentNode.classList.add(i.className),document.body.appendChild(s),document.getElementsByTagName("html")[0].classList.add("noscroll"),a=!0,r?.focus())},i.hide=function(){a&&(document.getElementsByTagName("html")[0].classList.remove("noscroll"),s.parentNode.removeChild(s),a=!1,o&&o.focus(),document.removeEventListener("keyup",l))}},window.tts.initOverlayLink=function(e){const t=e;if(t.overlayInitialized)return;if(t.overlayInitialized=!0,!(t.getAttribute("html")||t.href||t.dataset.videoLink))return void t.classList.add("nolink");const n=t.onclick;t.addEventListener("click",(function(e){e.preventDefault();let t=null;const i=this.getAttribute("html");if(void 0!==i&&null!=i&&""!=i)t=new window.tts.overlay(i,"html");else{let e=""!==this.href?this.href:this.dataset.videoLink;"contentOverlay"==this.getAttribute("target")&&e.indexOf("contentoverlay")<0&&(e.indexOf("?")>=0?e+="&":e+="?",e+="contentoverlay=1"),t=new window.tts.overlay(e,"iframe")}const o=this.getAttribute("data-overlay-class");if(o&&(t.className=o),!window.tts.experienceEditor.isExperienceEditor())return t.show(),n&&n.call(this,e),!1;e.preventDefault()}))},window.tts.initializeOverlayLinks=function(){const e=document.querySelectorAll('a[target="overlay"]'),t=document.querySelectorAll('a[target="contentOverlay"]');let n;for(n=0;n<e.length;n++)window.tts.initOverlayLink(e[n]);for(n=0;n<t.length;n++)window.tts.initOverlayLink(t[n])},document.addEventListener("DOMContentLoaded",window.tts.initializeOverlayLinks,!1)},5456:()=>{window.tts=window.tts||{},window.tts.pageSections=new function(){var e=this;e.init=function(){window.tts.experienceEditor.isExperienceEditor()||e.removeEmptyPageSections(),e.alignHeadlines()},e.removeEmptyPageSections=function(){for(var e=document.querySelectorAll(".page-section"),t=0;t<e.length;t++){var n=e[t];0==n.childElementCount&&n.parentNode.removeChild(n)}},e.alignHeadlines=function(){document.querySelectorAll(".page-section__headline + .rf-row--content").forEach((function(e){e.previousElementSibling.classList.add("rf-row--content")}))}},document.addEventListener("DOMContentLoaded",window.tts.pageSections.init,!1)},7447:()=>{window.tts.paginationHandler=function(e,t){var n=this;n.paginationElements=e,n.queryHandler=t,n.init=function(e){if(null!=n.paginationElements&&n.paginationElements.length>0){var t=document.location.protocol+"//"+document.location.hostname+document.location.pathname;n.paginationElements.forEach((function(i){var o=n.queryHandler;i.dataset.page>1?o.addOrUpdate("page",i.dataset.page):o.removeByKey("page"),i.setAttribute("href",t+n.queryHandler.generateUrlWithoutQuerys(["rubricItemId","breakpoint","highlightTeaserId"])),i.addEventListener("click",(function(t){e(n.switchPageQueryUrl(t,this));var i=document.querySelector(".rf-row.rubric-selection"),o=$(i).offset().top+i.offsetHeight;$("html, body").animate({scrollTop:o},400)}),!1)}))}n.makeSeoFriendly()},n.switchPageQueryUrl=function(e,t){e.preventDefault();var i=t,o=parseInt(document.querySelector(".pagination").dataset.totalCount);if(!(parseInt(i.dataset.page)<1||parseInt(i.dataset.page)>o))return t.dataset.page>1?n.queryHandler.addOrUpdate("page",t.dataset.page):n.queryHandler.removeByKey("page"),window.tts.url.generateQueryParamsUrl(n.queryHandler.query)},n.makeSeoFriendly=function(){var e=document.getElementsByTagName("head")[0],t=document.querySelector('link[rel="prev"]'),n=document.querySelector('link[rel="next"]'),i=document.querySelector(".pagination-arrow-prev:not(.unavailable) a"),o=document.querySelector(".pagination-arrow-next:not(.unavailable) a");!t&&i&&((t=document.createElement("link")).setAttribute("rel","prev"),e.appendChild(t)),!n&&o&&((n=document.createElement("link")).setAttribute("rel","next"),e.appendChild(n)),i?t.setAttribute("href",i.getAttribute("href")):t&&t.remove(),o?n.setAttribute("href",o.getAttribute("href")):n&&n.remove()}}},4196:()=>{window.tts=window.tts||{},window.tts.pagingManager=function(e,t,n,i){var o=this;this.resultSelector=n,this.container=document.querySelector(e),null!=this.container&&(this.resultListElement=this.container.querySelector(".result-list"),null!=this.resultListElement&&(this.resultsElement=this.resultListElement.querySelector(t),null!=this.resultsElement&&(this.setTotalCount=function(e){o.resultListElement.setAttribute("data-total-results",e)},this.getTotalCount=function(){return parseInt(o.resultListElement.getAttribute("data-total-results"))},this.getCurrentCount=function(){return o.resultListElement.querySelectorAll(
2o.resultSelector).length},this.onError=function(e){window.tts.debug.log(e)},this.appendResult=function(e){o.resultsElement.appendChild(e)},this.clearContent=function(){o.resultsElement.innerHTML=""},this.loadMore=function(e,t,n){o.setLoading(!0),window.tts.ajax.sendRequest(e,"POST",(function(e){n(e),o.setLoading(!1),o.RefreshControls()}),(function(e,t){o.setLoading(!1),o.RefreshControls(),o.onError(t)}),JSON.stringify(t),!0)},this.setLoading=function(e){document.querySelector(".search-list-rendering").setAttribute("data-loading",e?"true":"false")},this.RefreshControls=function(){var e=o.resultListElement.querySelector(".button.show-more-button"),t=o.resultListElement.querySelector(".not-found"),n=o.getTotalCount(),i=o.getCurrentCount();n>0&&null!=t&&(t.style.display="none"),i>=n?e.style.display="none":e.style.removeProperty("display")},this.hideLoadMore=function(){var e=o.resultListElement.querySelector(".button.show-more-button");null!=e&&(e.style.display="none")},this.init=function(){var e=o.resultListElement.querySelector(".button.show-more-button");this.RefreshControls(),e.onclick=function(){return i&&i(),!1}},this.init())))}},459:()=>{window.tts=window.tts||{},window.tts.productOverviewMobileAnchors=new function(){function e(){var e=window.location.hash.substring(1);"/"===e.substring(0,1)&&(e=e.substring(1));var t=document.querySelector('.product-overview-mobile-anchors__anchor[href="#'+e+'"]');if(t){var n=document.querySelector('[data-anchor-name="'+e+'"]');n?$("html,body").animate({scrollTop:n.offsetTop},400):t.style.display="none"}}this.init=function(){document.querySelectorAll(".product-overview-mobile-anchors__anchor").forEach((function(t){t.addEventListener("click",(function(){e()}))})),e(),window.addEventListener("hashchange",e)}},window.addEventListener("DOMContentLoaded",window.tts.productOverviewMobileAnchors.init,!1)},6223:()=>{window.tts=window.tts||{},window.tts.progressBar=new function(){var e,t=this,n=null,i=null,o=null,r=0;t.init=function(){if(n=document.querySelector(".progress-bar")){i=document.querySelector(".content[role=main]"),o=document.querySelector(".breadcrumb-row");var e=document.querySelectorAll(".progressBar-ignore");e&&(r=t.getCommentModuleOffset(e)),t.initProgressBar()}},t.initProgressBar=function(){var e=t.getContentHeight();n.setAttribute("max-value",e),n.setAttribute("value",0),document.addEventListener("scroll",(function(){t.updateValue(t.getScrollPosition())})),t.updateValue(t.getScrollPosition()),window.addEventListener("resize",t.setResizeTimeout,!1)},t.updateValue=function(e){var t=parseInt(n.getAttribute("max-value")),i=e<=t?e:t;n.setAttribute("value",i);var o=100*i/t;n.querySelector(".progress-bar__progress").setAttribute("style","width:"+o+"%")},t.setResizeTimeout=function(){e||(e=window.setTimeout((function(){e=null,n.setAttribute("max-value",t.getContentHeight()),t.updateValue(t.getScrollPosition())}),500))},t.getContentHeight=function(){return i.clientHeight+o.offsetHeight-r-window.innerHeight},t.getScrollPosition=function(){return-1*i.getBoundingClientRect().top+o.offsetHeight},t.getCommentModuleOffset=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].offsetHeight;return t}},document.addEventListener("DOMContentLoaded",window.tts.progressBar.init,!1)},1798:()=>{HTMLCollection.prototype.forEach?console.warn('"HTMLCollection.prototype.forEach" does already exist!'):HTMLCollection.prototype.forEach=Array.prototype.forEach},9587:()=>{window.tts=window.tts||{},window.tts.responsiveImages=new function(){var e=this,t=null,n=function(e,n,i,o,r){var s=(r/o*100).toFixed(2),a=function(n){t[e]+=n+"\r\n"};void 0===t[e]&&(t[e]=""),a(n),a("{"),""!=i&&(a("background-image: url('"+i+"');"),a("background-size: cover;"),a("background-position: center center;"),a("background-repeat: no-repeat;")),a("width: 100%;"),a("}"),a(n+":before"),a("{"),a("content: '';"),a("padding-bottom: "+s+"%;"),a("float: left;"),a("}"),a(n+":after"),a("{"),a("content: '';"),a("display: table;"),a("clear: both;"),a("}")};e.addResponsiveImageRule=function(t){t.alreadyInitialized=!0;var i=e.getResponsiveImageRuleSettings(t),o="ri"+i.id;t.className+=" "+o;var r="."+o,s=window.tts.device.getMediaQuerySmall(),a=window.tts.device.getMediaQueryMedium(),l=window.tts.device.getMediaQueryLarge(),c=window.tts.device.getMediaQuerySmallRetina(),d=window.tts.device.getMediaQueryMediumRetina(),u=window.tts.device.getMediaQueryLargeRetina();n(s,r,i.small.url,i.small.width,i.small.height),n(a,r,i.medium.url,i.medium.width,i.medium.height),n(l,r,i.large.url,i.large.width,i.large.height),n(c,r,i.smallRetina.url,i.smallRetina.width,i.smallRetina.height),n(d,r,i.mediumRetina.url,i.mediumRetina.width,i.mediumRetina.height),n(u,r,i.largeRetina.url,i.largeRetina.width,i.largeRetina.height)},e.finish=function(){var e=document.createElement("style");for(var n in t)e.textContent+=n+"{\r\n",e.textContent+=t[n]+"}\r\n";document.head.appendChild(e)},e.getResponsiveImageRuleSettings=function(e){return{small:{url:e.getAttribute("data-image-small-url"),width:e.getAttribute("data-image-small-width"),height:e.getAttribute("data-image-small-height")},medium:{url:e.getAttribute("data-image-medium-url"),width:e.getAttribute("data-image-medium-width"),height:e.getAttribute("data-image-medium-height")},large:{url:e.getAttribute("data-image-large-url"),width:e.getAttribute("data-image-large-width"),height:e.getAttribute("data-image-large-height")},smallRetina:{url:e.getAttribute("data-image-smallRetina-url"),width:e.getAttribute("data-image-smallRetina-width"),height:e.getAttribute("data-image-smallRetina-height")},mediumRetina:{url:e.getAttribute("data-image-mediumRetina-url"),width:e.getAttribute("data-image-mediumRetina-width"),height:e.getAttribute("data-image-mediumRetina-height")},largeRetina:{url:e.getAttribute("data-image-largeRetina-url"),width:e.getAttribute("data-image-largeRetina-width"),height:e.getAttribute("data-image-largeRetina-height")},id:window.tts.math.createUid()}},e.init=function(){t={};for(var n=document.querySelectorAll('[data-responsive-image="true"]'),i=0;i<n.length;i++){var o=n[i];o.alreadyInitialized||e.addResponsiveImageRule(o)}e.finish()}},document.addEventListener("DOMContentLoaded",window.tts.responsiveImages.init,!1),window.tts.experienceEditor.addReinitializeHook(window.tts.responsiveImages.init)},7538:()=>{window.tts=window.tts||{},window.tts.scrollToTopOfPage=new function(){this.init=function(){var e=document.getElementsByClassName("button back-to-top")[0];e&&e.addEventListener("click",(function(){window.scrollTo({top:0,behavior:"smooth"})}))}},document.addEventListener("DOMContentLoaded",window.tts.scrollToTopOfPage.init,!1)},9448:()=>{window.tts.services=window.tts.services||{},window.tts.services.dealerservice=new function(){var e=function(e){"string"==typeof e&&(e=[e]);for(var t="",n=0;n<e.length;n++)t+="&countryKeys={0}".format(e[n]);return t};this.getDealersByQuery=function(t,n,i,o,r,s,a){n=n||window.tts.servicesettings.brandKey,i=i||window.tts.context.contextLanguageCode.split("-")[1],o=o||5;var l="{0}?useCase={1}&brandKey={2}{3}&numberOfResults={4}&searchString={5}".format(a,"SEARCH",n,e(i),o,t);window.tts.serviceManager.invokeService(l,window.tts.serviceManager.methods.get,r,s)},this.getDealersByCountry=function(t,n,i,o){i=i||window.tts.context.contextLanguageCode.split("-")[1];var r="{0}?brandKey={1}{2}".format(o,window.tts.servicesettings.brandKey,e(i));window.tts.serviceManager.invokeService(r,window.tts.serviceManager.methods.get,t,n)}}},7691:()=>{window.tts=window.tts||{},window.tts.serviceManager=new function(){var e=this;e.methods={get:"GET",put:"PUT",post:"POST",delete:"DELETE"},e.invokeService=function(t,n,i,o,r){return e.call(t,n,i,o,r),!0},e.RefreshAccessToken=function(e,t){window.tts.ajax.sendRequest("/api/sitecore/fcpscript/RefreshAccessToken","get",e,t,null,!0)},e.call=function(t,n,i,o,r,s){(s=s||0)>3?o("networkerror",null):window.tts.ajax.sendRequest(t,n,i,(function(a,l){var c="networkerror";401!==a?(404===a&&(c="notfound"),409===a&&(c="conflict"),o(c,l)):e.RefreshAccessToken((function(a){window.tts.servicesettings.accessToken=a,e.call(t,n,i,o,r,s+1)}),o)}),r,null,(function(e){e.setRequestHeader("content-type","application/json"),e.setRequestHeader("Authorization","Bearer "+window.tts.servicesettings.accessToken)}))}}},1201:()=>{window.tts=window.tts||{},window.tts.sharingOptions=new function(){var e=this;e.init=function(){e.container=document.getElementById("sharing-options");var t=document.getElementById("sharing-options-show-button"),n=document.getElementById("sharing-options-list");e.container&&t&&n&&(t.addEventListener("click",e.show),document.addEventListener("click",e.hide),n.addEventListener("click",e.cancelEvent))},e.show=function(t){t.stopPropagation(),e.container.classList.add("sharing-options--visible")},e.hide=function(){e.container.classList.contains("sharing-options--visible")&&e.container.classList.remove("sharing-options--visible")},e.cancelEvent=function(e){e.stopPropagation()}},document.addEventListener("DOMContentLoaded",window.tts.sharingOptions.init,!1)},5411:()=>{window.tts=window.tts||{},window.tts.slickOverlay=new function(){var e=this;function t(e,t){var n=$(".slickOverlayContainer.opened"),i=e.find(".slick-slide").length;n.find(".navigation .pager").first().html(t+1+" / "+i)}
2e.closeOverlay=function(){var e=$(".slickOverlayContainer.opened");e.children(".content").first().empty(),e.removeClass("opened"),e.hide(),document.getElementsByTagName("body")[0].classList.remove("slick-overlay-noscroll")},e.init=function(){0!=$(".overlay-support .slide").length&&$.get("/api/sitecore/Slider/RenderSlickOverlay",(function(n){$("body").append($(n)),$(document).on("keydown",(function(t){if(27==t.keyCode)e.closeOverlay();else if($(".slickOverlayContainer").hasClass("opened")){var n=t.keyCode;39==n?$(".slick-next",".slickOverlayContainer").click():37==n&&$(".slick-prev",".slickOverlayContainer").click()}})),$(".slickOverlayContainer .closeButton").click(e.closeOverlay),$(".overlay-support .slide").click((function(n){if($(this).find(".orbitvu-viewer").length<=0){n.preventDefault();var i=$(".slickOverlayContainer"),o=i.children(".content").first(),r=window.tts.productGallery.cloneGallery(),s="";i.show(),i.addClass("opened"),document.getElementsByTagName("body")[0].classList.add("slick-overlay-noscroll"),r.find(".slide").each((function(e,t){$(t).find(".orbitvu-viewer").length>0&&$(t).remove()}));for(var a=0;a<r[0].classList.length;a++)s+="."+r[0].classList[a];r.addClass("clone"),r.removeClass("overlay-support"),o.append(r);var l=0;$(s+".slick-slider").find(".slick-current.slick-active").parent().children().each((function(){return!$(this).hasClass("slick-current")&&($(this).find(".orbitvu-viewer").length||l++,!0)})),r.slick({slidesToShow:1,slidesToScroll:1,dots:!1,autoplay:!1,fade:!1,asNavFor:s,initialSlide:l});var c=[],d=-1;r.find(".slick-slide").mousedown((function(e){d=1,c=[e.pageX,e.pageY]})),r.find(".slick-slide").mousemove((function(e){if(2==d){var t=$(this).parents(".slick-track").first();1!=t.length||t.hasClass("is-dragging")||t.addClass("is-dragging"),c=[e.pageX,e.pageY]}else 1==d&&(d=2)})),r.find(".slick-slide").click((function(t){var n=$(this).parents(".slick-track").first();if(d=-1,n.hasClass("is-dragging"))n.removeClass("is-dragging");else{var i=$(t.target).prop("tagName").toLowerCase();"img"!=i&&"iframe"!=i&&c[0]==t.pageX&&c[1]==t.pageY&&e.closeOverlay()}}));var u=r.find('.video-inline-link[target="inplace"]');window.tts.media.prepareVideos(u),r.find('.slick-slide .video-inline-link[target="inplace"]').click((function(t){var n=$(t.target);0!=n.parent(".tts-video").first().find("iframe").length&&"iframe"==n.prop("tagName").toLowerCase()&&e.closeOverlay()})),r.on("beforeChange",(function(e,n,i,o){t($(this),o)})),t(r,l)}}))}),"html")}},document.addEventListener("DOMContentLoaded",window.tts.slickOverlay.init,!1)},2898:()=>{window.tts=window.tts||{},window.tts.slider=new function(){var e=this;e.initializeSlider=function(t,n,i){null==n&&(n=!0);var o=t.parentNode,r=parseInt(o.getAttribute("data-columns-l")),s=parseInt(o.getAttribute("data-columns-m")),a=parseInt(o.getAttribute("data-columns-s")),l=o.getAttribute("data-slide")||"div";$(t).slick({slide:l,slidesToShow:r,slidesToScroll:r,dots:!0,infinite:n,variableWidth:i,responsive:e.getResponsives(a,s)})},e.initializePVGSlider=function(t,n,i){var o=t.parentNode,r=parseInt(o.getAttribute("data-columns-l")),s=parseInt(o.getAttribute("data-columns-m")),a=parseInt(o.getAttribute("data-columns-s")),l=o.getAttribute("data-slide")||"div";$(t).slick({slide:l,slidesToShow:r,slidesToScroll:r,arrows:!1,dots:!0,infinite:n,variableWidth:i,responsive:e.getResponsives(a,s),useTransform:!1}),$(t).on("setPosition",(function(){window.tts.grid.autoHeightGrid(o)}))},e.getResponsives=function(e,t){return[{breakpoint:window.tts.device.getMediumBreakPoint(),settings:{slidesToShow:e,slidesToScroll:e}},{breakpoint:window.tts.device.getLargeBreakPoint(),settings:{slidesToShow:t,slidesToScroll:t}}]},e.initializeSliders=function(){var t=document.querySelectorAll(".standard-slider");let n;for(n=0;n<t.length;n++)e.initializeSlider(t[n])}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.slider.initializeSliders,!1)},7380:()=>{window.tts=window.tts||{},window.tts.slidernavigation=new function(){var e,t=this,n=null;t.getNavigation=function(){return document.querySelector(".slider-navigation")},t.init=function(){document.createEvent("Event").initEvent("sliderNavigationInitialized",!0,!0),e=t.getNavigation()},t.getTabsElement=function(){return e.querySelector(".slider-navigation__tabs")},t.showOrHideNavBarArrows=function(e,t){t.scrollWidth>t.clientWidth?e.classList.add("slider-navigation__tab-container--scrollable"):e.classList.remove("slider-navigation__tab-container--scrollable")},t.deactivateOrActivateNavBarArrows=function(e,t,n){e.scrollLeft>0?t.classList.add("slider-navigation__button-container--active"):t.classList.remove("slider-navigation__button-container--active"),e.scrollLeft<e.scrollWidth-e.clientWidth?n.classList.add("slider-navigation__button-container--active"):n.classList.remove("slider-navigation__button-container--active")},t.centralizeTab=function(e,t){var n=e.clientWidth,i=(e.scrollLeft,t.getBoundingClientRect().left),o=e.getBoundingClientRect().left,r=t.clientWidth,s=e.scrollLeft+i-o-n/2+r/2;e.scrollLeft=s},t.initQueryStringSection=function(){e&&(t.reinitialize(),window.addEventListener("resize",(function(){n||(n=window.setTimeout((function(){n=null,t.reinitialize()}),500))}),!1))},t.reinitialize=function(){var n=t.getTabsElement(),i=e.querySelector(".slider-navigation__tab-container"),o=i.querySelector(".slider-navigation__button-container-left"),r=i.querySelector(".slider-navigation__button-container-right");t.showOrHideNavBarArrows(i,n),t.deactivateOrActivateNavBarArrows(n,o,r),jQuery(i).find("a.tab").on("click",(function(){var e=this;t.centralizeTab(n,e),e.href&&(window.location.href=e.href)})),jQuery(i).find(".slider-navigation__button-container").unbind().on("click",(function(e){this.style.display="none",$(document.elementFromPoint(e.clientX,e.clientY)).trigger("click"),this.style.display=""})),jQuery(i).on("mousedown",".slider-navigation__button-container--active .slider-navigation__button-left",(function(){$(n).stop().animate({scrollLeft:n.scrollLeft-150},250)})),jQuery(i).on("mousedown",".slider-navigation__button-container--active .slider-navigation__button-right",(function(){$(n).stop().animate({scrollLeft:n.scrollLeft+150},250)})),n.addEventListener("scroll",(function(){window.tts.slidernavigation.deactivateOrActivateNavBarArrows(n,o,r)}),!1)}},window.addEventListener("DOMContentLoaded",(function(){window.tts.slidernavigation.init(),window.setTimeout(window.tts.slidernavigation.initQueryStringSection,600)}),!1)},7101:()=>{window.tts=window.tts||{},window.tts.stickycontainer=new function(){var e=this,t=void 0;function n(t){var n=function(t){return e.hasPlaceholder(t)?e.getPlaceholder(t).offsetTop:t.offsetTop}(t);window.pageYOffset>=n?t.classList.contains("fixed")||(e.addPlaceholder(t),t.classList.add("fixed")):t.classList.contains("fixed")&&(e.removePlaceholder(t),t.classList.remove("fixed"))}e.init=function(){if(void 0!==(t=window.document.querySelectorAll(".sticky-container"))&&0!=t.length){for(var e=0;e<t.length;e++){var i=t[e];i.setAttribute("data-container-id",window.tts.math.createUid()),n(i),i.setAttribute("data-container-state","ready")}window.addEventListener("scroll",window.tts.stickycontainer.scolled,!1),window.addEventListener("resize",window.tts.stickycontainer.resized,!1)}},e.stickyMagic=function(){for(var e=0;e<t.length;e++)n(t[e])},e.scolled=function(){e.stickyMagic()},e.resized=function(){e.stickyMagic()},e.getPlaceholder=function(e){var t=e.getAttribute("data-container-id");return window.document.querySelector('[data-for-stickycontainer-id="'+t+'"]')},e.isReady=function(e){var t=e.getAttribute("data-container-state");return void 0!==t&&"ready"==t},e.hasPlaceholder=function(t){var n=e.getPlaceholder(t);return void 0!==n&&null!=n},e.removePlaceholder=function(t){e.hasPlaceholder(t)&&e.getPlaceholder(t).remove()},e.addPlaceholder=function(t){if(!e.hasPlaceholder(t)){var n=t.currentStyle||window.getComputedStyle(t),i=t.getAttribute("data-container-id"),o=document.createElement("div");o.setAttribute("data-for-stickycontainer-id",i),o.style.height=n.height,o.style.marginBottom=n.marginBottom,o.style.marginTop=n.marginTop,o.classList.add("sticky-container-placeholder"),t.nextSibling?t.parentNode.insertBefore(o,t.nextSibling):t.parentNode.appendChild(o)}}},document.addEventListener("DOMContentLoaded",window.tts.stickycontainer.init,!1)},971:()=>{window.tts=window.tts||{},window.tts.substituteteaser=new function(){this.init=function(){var e=document.getElementsByClassName("substitute-teaser-links-arrow-down");e[0]&&e[0].addEventListener("click",(function(e){var t=e.target||e.srcElement,n=$(t).closest(".substitute-teaser")[0];$("html,body").stop().animate({scrollTop:n.offsetTop+n.offsetHeight})}),!1)}},document.addEventListener("DOMContentLoaded",window.tts.substituteteaser.init,!1)},1805:()=>{window.tts=window.tts||{},window.tts.tabElements=new function(){var e=this;e.createTab=function(t,n){var i=e.createTabElement(),o=t.getAttribute("data-headline");return i.textContent=o,i.onclick=function(){var t=this.parentNode;!window.tts.device.isSmall()||window.tts.tabbar.isMenuOpened(t)?(window.tts.tabbar.closeMenu(t),e.tabClicked(this,n)):window.tts.tabbar.openMenu(t)},i},e.tabClicked=function(e,t){var n=t.querySelectorAll(".tab-element");let i;for(i=0;i<n.length;i++){var o=n[i],r=o.getAttribute("data-headline");o.setAttribute("data-opened",r==e.textContent?"true":"false")}var s=t.querySelector(".tab-content .tabs").childNodes;for(i=0;i<s.length;i++)s[i].setAttribute("data-opened",s[i]==e)},e.createTabElement=function(){var e=document.createElement("div");return e.classList.add("tab"),e},e.initializeContainer=function(t){for(var n=t.querySelector(".tab-content .tabs"),i=t.querySelectorAll(".tab-element[data-initialized='false']"),o=0;o<i.length;o++){var r=i[o],s=e.createTab(r,t);n.appendChild(s),r.setAttribute("data-initialized","true")}n.childNodes.length>0&&e.tabClicked(n.childNodes[0],t)}
2,e.initializeContainers=function(){for(var t=document.querySelectorAll(".tab-container"),n=0;n<t.length;n++){var i=t[n];"true"!=i.getAttribute("data-initialized")&&(e.initializeContainer(i),i.setAttribute("data-initialized","true"))}}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.tabElements.initializeContainers,!1)},4971:()=>{window.tts=window.tts||{},window.tts.tabbar=new function(){var e=this;e.isMenuOpened=function(e){return!!e.classList.contains("open")},e.toggleMenu=function(t){e.isMenuOpened(t)?e.closeMenu(t):e.openMenu(t)},e.openMenu=function(t){e.isMenuOpened(t)||t.classList.add("open")},e.closeMenu=function(t){e.isMenuOpened(t)&&t.classList.remove("open")},e.documentOffsetTop=function(t){return t.offsetTop+(t.offsetParent?e.documentOffsetTop(t.offsetParent):0)},e.tabControlInit=function(){var t=$(".tab-control");if(!(t.length<=0)){var n=t.find(".tab-control__tab"),i=t.find(".tab-control__content"),o=t.parent()[0],r="tab-control__tab--active",s="tab-control__content--active";n.each((function(n,a){window.tts.device.isSmall()&&(a.classList.remove(r),document.getElementById("technicalData").classList.remove(s)),a.addEventListener("click",(function(a){var l=a.target;if(l.classList.contains(r))window.tts.device.isSmall()&&(l.classList.remove(r),i[n].classList.remove(s));else if(t.find("."+r).each((function(e,t){t.classList.remove(r)})),a.target.classList.add(r),i.each((function(e,t){t.classList.remove(s)})),i[n].classList.add(s),window.tts.device.isSmall()){var c=document.getElementsByClassName("pdp-inpage-navigation__product-information")[0],d=e.documentOffsetTop(o);c&&(d-=c.scrollHeight),window.scrollTo({top:d,left:0,behavior:"smooth"})}}))}))}}},document.addEventListener("DOMContentLoaded",window.tts.tabbar.tabControlInit,!1)},223:()=>{window.tts=window.tts||{},window.tts.teaser=new function(){var e=this;e.initializeLinks=function(){for(var t=document.querySelectorAll(".teaser"),n=0;n<t.length;n++){var i=t[n];e.decorateTeaser(i)}},e.decorateTeaser=function(e){e.classList.add("standard-grid-teaser");var t=e.querySelector(".teaser-link"),n="standard-grid-teaser-";if(t){var i=t.attributes.href;i&&i.value?(e.addEventListener("click",(function(e){e.target.closest(".tts-video")||e.target.closest(".teaser-link")||e.target.closest("input.tts-checkbox+label")||e.target.closest(".tts-checkbox")||e.target.closest(".watch-list-checkbox")||e.target.closest(".watch-list-checkbox--not-logged-in")||t.click()})),n+="enable"):(n+="disable",t.removeAttribute("href"))}else n+="disable";e.classList.add(n)}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.teaser.initializeLinks,!1)},3341:()=>{window.tts=window.tts||{},window.tts.teaserSectionByTag=new function(){var e="teaser-section-by-tags__",t="hide",n="active";function i(e){e.preventDefault(),o(e.target)}function o(e){a().forEach((function(t){t===e?t.classList.add(n):t.classList.remove(n)})),r(e.dataset.teaserIdSuffix),window.tts.autoHeightByRow.setHeadlineHeight()}function r(n){s().forEach((function(i){i.id===e+n?i.classList.remove(t):i.classList.add(t)}))}function s(){var e=document.getElementsByClassName("teaser-section-by-tags")[0];return e?e.querySelectorAll("[id^='teaser-section-by-tags']"):[]}function a(){var e=document.getElementsByClassName("teaser-section-by-tags__filter-wrapper")[0];return e?e.querySelectorAll(".filter-tags .filter"):[]}this.init=function(){var t=a();if(t.length)t.forEach((function(e){e.addEventListener("click",i)})),o(t[0]);else{var n=s();n.length&&r(n[0].id.split(e)[1])}}},window.addEventListener("load",window.tts.teaserSectionByTag.init,!1)},236:()=>{window.tts=window.tts||{},window.tts.tooltip=new function(){var e=this,t="open",n="mirror-h",i="mirror-v";e.showTooltip=function(){var o=this;o.classList.contains(t)||o.classList.add(t);var r=o.querySelector(".tooltip");e.isOnRightScreen(r)||o.classList.contains(n)||o.classList.add(n),e.isOnBottomScreen(r)||o.classList.contains(i)||o.classList.add(i)},e.isOnRightScreen=function(e){var t=e.getBoundingClientRect(),n=(window.innerHeight,window.innerWidth);return t.right>=0&&t.right<=n},e.isOnBottomScreen=function(e){var t=e.getBoundingClientRect(),n=window.innerHeight;return window.innerWidth,t.bottom>=0&&t.bottom<=n},e.hideTooltip=function(){var e=this;e.classList.contains(t)&&e.classList.remove(t),e.classList.contains(n)&&e.classList.remove(n),e.classList.contains(i)&&e.classList.remove(i)},e.toggleTooltip=function(){var e=this;e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},e.initializeTooltip=function(e){e.addEventListener("mouseenter",window.tts.tooltip.showTooltip,!1),e.addEventListener("mouseleave",window.tts.tooltip.hideTooltip,!1),e.addEventListener("touchmove",window.tts.tooltip.hideTooltip,!1),e.addEventListener("touchstart",window.tts.tooltip.toggleTooltip,!1),e.classList.add("initialized")},e.initializeTooltips=function(){for(var t=document.querySelectorAll(".tooltip-container"),n=0;n<t.length;n++)e.initializeTooltip(t[n])}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.tooltip.initializeTooltips,!1)},6951:()=>{window.tts=window.tts||{},window.tts.tripleElementShowMore=new function(){this.registerListener=function(){var e=document.getElementsByClassName("triplet-show-more-button");if(null!==e)for(var t=0;t<e.length;t++)e[t].addEventListener("click",(function(e){var t=e.target,n=t.parentNode.parentNode.querySelector(".content"),i=n.parentNode.parentNode.querySelector(".triplet-show-more"),o=t.parentNode,r=n.querySelector(".content-text");n.classList.toggle("show-all"),n.classList.contains("show-all")?(r.style.height=r.scrollHeight+"px",r.style.maxHeight=r.scrollHeight+"px",o.classList.add("expanded"),i.style.height=""):(r.style.height="",r.style.maxHeight="",o.classList.remove("expanded"))}))}},document.addEventListener("DOMContentLoaded",window.tts.tripleElementShowMore.registerListener,!1),window.addEventListener("auto-height-adjusted",(function(){const e=document.querySelectorAll(".triplet-show-more .content.show-all .content-text");e&&e.length>0&&e.forEach((e=>{e.style.height="auto",e.style.height=e.scrollHeight+"px",e.style.maxHeight=e.scrollHeight+"px"}))}))},6134:()=>{window.tts=window.tts||{},window.tts.url=new function(){var e=this;e.createSearchKeyValuePairs=function(e){for(var t=function(e){return 0===e.lastIndexOf("?",0)&&(e=e.substr(1)),e.split("&")}(e),n=[],i=0;i<t.length;i++){var o=t[i].split("=");null!==o[0]&&null!==o[1]&&n.push({key:o[0],value:o[1]})}return n},e.getQueryStringParameters=function(e){var t={};
2return e.replace(/([^=&]+)=([^&]*)/g,(function(e,n,i){t[decodeURIComponent(n)]=decodeURIComponent(i)})),t},e.getPageLevel=function(){return window.location.pathname.split("/").length},e.getPageLevelPart=function(e){return window.location.pathname.split("/")[e]},e.getSearchString=function(e){var t=e.split("?");return t.length>=2?t[1]:""},e.getUrlParameter=function(t){for(var n=e.createSearchKeyValuePairs(window.location.search),i=0;i<n.length;i++)if(n[i].key===t){var o=n[i].value;return o=o.replace(/\+/g,"%20"),decodeURIComponent(o)}return""},e.getUrlWithEncodedSearchParams=function(t){t instanceof e.Url||(t=new e.Url(t));var n="";if(t.search){for(var i=0;i<t.searchParams.length;i++)n+="&"+t.searchParams[i].key+"="+encodeURIComponent(t.searchParams[i].value);n="?"+n.substr(1)}return t.origin+t.pathname+n+t.hash},e.Url=function(t){var n=this,i=document.createElement("a");return t=e.formatAsUrl(t),i.href=t,n.hash=i.hash,n.host=i.host,n.hostname=i.hostname,n.href=i.href,i.hasOwnProperty("origin")?n.origin=i.origin:n.origin=i.protocol+"//"+i.host+"/",n.password=i.password,n.pathname=i.pathname,n.port=i.port,n.protocol=i.protocol,n.search=e.getSearchString(t),n.searchParams=e.createSearchKeyValuePairs(n.search),n.username=i.username,n},e.formatAsUrl=function(e){var t=window.location.protocol+"//"+window.location.host,n=e||window.location.href;return 0!==n.indexOf("http")&&(0!==n.indexOf("/")&&(n="/"+n),n=t+n),n},e.replaceState=function(e){history.replaceState?window.history.replaceState(null,null,e):window.location.href=e},e.setQueryParameter=function(t,n,i){var o=new RegExp("([?&])("+n+"=)[^&#]*","g");if(!t.match(o)){var r=(t.indexOf("?")<0?"?":"&")+n+"="+i,s=t.indexOf("#");return s<0?void e.replaceState(t+r):void e.replaceState(t.substring(0,s)+r+t.substring(s))}e.replaceState(t.replace(o,"$1$2"+i))},e.removeQueryParameter=function(t,n){var i=t.replace(new RegExp("\\b"+n+"=[^&;]+[&;]?","gi"),"");i=i.replace(/[&?;]$/,""),e.replaceState(i)},e.addQueryParameterToHistory=function(e){if(history.pushState){var t=window.location.protocol+"//"+window.location.host+window.location.pathname+e;window.history.pushState({path:t},"",t)}},e.generateQueryParamsUrl=function(e){var t="";return e.forEach((function(e){e.value&&e.key&&(t+=(t.length<1?"?":"&")+e.key+"="+e.value.replace("%20"," "))})),t},e.keyValueUrlQueryHandler=function(){var e=this;e.query=[],window.location.search.length>0&&(e.query=window.tts.url.createSearchKeyValuePairs(window.location.search.substring(1).replace("%20"," "))),e.add=function(t,n){e.query.push({key:t,value:n})},e.removeByValue=function(t){e.query=e.query.filter((function(e){return e.value!==t}))},e.removeByKey=function(t){e.query=e.query.filter((function(e){return e.key!==t}))},e.addOrUpdate=function(t,n){e.hasKey(t)?e.query.filter((function(e){return e.key===t})).map((function(e){return e.value=n})):e.add(t,n)},e.hasKey=function(t){return e.query.some((function(e){return e.key===t}))},e.generateUrlWithoutQuerys=function(t){var n=JSON.parse(JSON.stringify(e.query));t.forEach((function(t){e.removeByKey(t)}));var i=window.tts.url.generateQueryParamsUrl(e.query);return e.query=n,i},e.getValueForKey=function(t){return e.query.find((function(e){return e.key===t}))}},e.getDealerSearchUrlParameters=function(){var t=e.getQueryStringParameters(window.location.search.slice(1)),n={};for(var i in t)n[i]=t[i].split(",");return n},e.addDealerSearchUrlParameter=function(t,n){var i=e.getDealerSearchUrlParameters(),o=window.location.href,r=i[t];r?e.setQueryParameter(o,t,r.toString()+","+n):e.setQueryParameter(o,t,n)},e.deleteDealerSearchUrlParameter=function(t,n){var i=e.getDealerSearchUrlParameters(),o=window.location.href,r=i[t];r&&(1===r.length||void 0===n?e.removeQueryParameter(o,t):e.setQueryParameter(o,t,r.filter((function(e){return e!==n})).toString()))}}},5500:()=>{window.tts=window.tts||{},window.tts.zoom=new function(){var e=this;const t="zoom-canvas";this.initializeZoom=function(e){var n=e.getAttribute("data-zoom");const i=window.innerWidth;if(n&&!(i<769)){var o=new Image;o.onload=function(){var n=o.width,i=o.height,r=e.getAttribute("data-target-selector"),s=0!=e.offsetWidth?e.offsetWidth:e.width,a=0!=e.offsetHeight?e.offsetHeight:e.height,l=document.createElement("canvas");
2e.parentNode.insertBefore(l,e),l.className=e.className,l.setAttribute("width",s+"px"),l.setAttribute("height",a+"px"),e.style.display="none";var c=l.getContext("2d"),d=new Image;d.src=e.currentSrc||e.src;var u=function(){c.drawImage(e,0,0,d.naturalWidth,d.naturalHeight,0,0,l.width,l.height)};u(),c.strokeStyle="rgba(255, 255, 255, 0.7)",c.fillStyle="rgba(255, 255, 255, 0.5)";var h=document.createElement("canvas");h.className=t,h.setAttribute("width","800px"),h.setAttribute("height","533px");var m=document.querySelector(r);null!=m?m.appendChild(h):e.parentNode.insertBefore(h,e.nextSibling);var p=h.getContext("2d");p.drawImage(o,0,0,n,i),l.addEventListener("mouseout",(function(){h.classList.remove("visible"),u()})),l.addEventListener("mouseenter",(function(){h.classList.add("visible")})),l.addEventListener("mousemove",(function(e){var t=l.getBoundingClientRect(),r=s,d=a,h=s/t.width,m=a/t.height,g=n/r,f=i/d,w=800,v=533,y=w/g,b=y>>1,E=v/f,C=E>>1,S=window.scrollY,L=window.scrollX;S||(S=document.documentElement.scrollTop),L||(L=document.documentElement.scrollLeft);var T=h*(e.pageX-t.left-L)-b,k=m*(e.pageY-t.top-S)-C;T<0&&(T=0),k<0&&(k=0),T+y>r&&(T=r-y),k+E>d&&(k=d-E),p.clearRect(0,0,w,v),p.drawImage(o,T*g,k*f,w,v,0,0,w,v),u(),c.beginPath(),c.rect(T,k,y,E),c.stroke(),c.fill(),c.closePath()}))},o.src=n}},this.initializeZooms=function(){for(var t=document.querySelectorAll("[data-zoom]"),n=0;n<t.length;n++){var i=t[n];e.initializeZoom(i)}},this.removeZoom=function(e){const n=[].find.call(e.parentNode.children,(function(e){return e instanceof HTMLCanvasElement})),i=document.querySelector("canvas."+t);n&&(n.remove(),e.style.display=""),i&&i.remove()}},document.addEventListener("DOMContentLoaded",window.tts.zoom.initializeZooms,!1)},1192:(e,t,n)=>{var i=n(7580).Symbol;e.exports=i},1389:(e,t,n)=>{var i=n(1192),o=n(3468),r=n(6859),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):r(e)}},8873:(e,t,n)=>{var i=n(3579),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},3877:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},3468:(e,t,n)=>{var i=n(1192),o=Object.prototype,r=o.hasOwnProperty,s=o.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var o=s.call(e);return i&&(t?e[a]=n:delete e[a]),o}},6859:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7580:(e,t,n)=>{var i=n(3877),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();e.exports=r},3579:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}}
2,8474:(e,t,n)=>{var i=n(4866),o=n(2257),r=n(1645),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,d,u,h,m,p=0,g=!1,f=!1,w=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,i=c;return l=c=void 0,p=t,u=e.apply(i,n)}function y(e){var n=e-m;return void 0===m||n>=t||n<0||f&&e-p>=d}function b(){var e=o();if(y(e))return E(e);h=setTimeout(b,function(e){var n=t-(e-m);return f?a(n,d-(e-p)):n}(e))}function E(e){return h=void 0,w&&l?v(e):(l=c=void 0,u)}function C(){var e=o(),n=y(e);if(l=arguments,c=this,m=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(b,t),g?v(e):u}(m);if(f)return clearTimeout(h),h=setTimeout(b,t),v(m)}return void 0===h&&(h=setTimeout(b,t)),u}return t=r(t)||0,i(n)&&(g=!!n.leading,d=(f="maxWait"in n)?s(r(n.maxWait)||0,t):d,w="trailing"in n?!!n.trailing:w),C.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=m=c=h=void 0},C.flush=function(){return void 0===h?u:E(o())},C}},4866:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8013:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4469:(e,t,n)=>{var i=n(1389),o=n(8013);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},2257:(e,t,n)=>{var i=n(7580);e.exports=function(){return i.Date.now()}},1645:(e,t,n)=>{var i=n(8873),o=n(4866),r=n(4469),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},196:()=>{window.tts=window.tts||{},window.tts.experienceEditor=new function(){var e=this,t=!1,n=[];e.isExperienceEditor=function(){return document.body.parentNode.className.indexOf("tts-experience-editor")>=0},e.removeElementFromDom=function(e,t){for(var n=document.querySelectorAll("[sc_item^='sitecore://"+t+"/"+e+"']"),i=0;i<n.length;i++)n[i].parentNode.removeChild(n[i])},e.reinitialize=function(){t=!1;for(var e=0;e<n.length;e++)n[e]()},e.reinitializeDelayed=function(){t||(t=!0,window.setTimeout(e.reinitialize,500))},e.addReinitializeHook=function(e){n.push(e)}}},7183:()=>{window.tts=window.tts||{},window.tts.gallery=new function(){this.initializeGalleries=function(){$(".gallery").each((function(){var e=$
2(this).find(".slider-for.gallery-outbreak"),t=$(this).find(".slider-nav.gallery-outbreak");if(!(e.length<1||t.length<1)){var n=function(){var e=this.querySelector(".slick-track"),t=this.querySelector(".slick-slide"),n=function(){window.setTimeout((function(){var n=t.getBoundingClientRect().width;e.style.height=.75*n+"px"}),150)};window.addEventListener("resize",n,!1),n()},i=$(this).data("galleryid");e.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,fade:!1,centerMode:!0,asNavFor:'.gallery[data-galleryid="'+i+'"] .slider-nav',centerPadding:"15.46875%"}).each(n);var o=$(this).find(".slider-nav.gallery-outbreak > div").length-1;t.slick({slidesToShow:o,slidesToScroll:1,asNavFor:'.gallery[data-galleryid="'+i+'"] .slider-for',dots:!1,centerMode:!0,focusOnSelect:!0,variableWidth:!0}).each(n)}}))}},window.tts.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",window.tts.gallery.initializeGalleries,!1)},8348:()=>{window.tts=window.tts||{},window.tts.generalPromotion=new function(){var e=this;e.scrollTimeout=null,e.container=null,e.footer=null,e.cookieName=null,e.sessionCookieName=null;var t=[],n=function(){var t=e.container.getBoundingClientRect().height;e.footer.getBoundingClientRect().bottom-t<=window.innerHeight?e.container.classList.add("nl-prom__container--sticky"):e.container.classList.remove("nl-prom__container--sticky")};e.setCookie=function(){var t=window.tts.cookie.getCookie(e.cookieName);t=""==t?1:parseInt(t)+1,window.tts.cookie.createCookie(e.cookieName,t,99),window.tts.cookie.createSessionCookie(e.sessionCookieName,"true")},e.showUi=function(){e.container&&(setTimeout((()=>{e.container.classList.add("nl-prom__container--opened")}),0),t.forEach((function(t){"function"==typeof t&&t(e.container)})))},e.hideUi=function(){e.container&&(e.container.classList.remove("nl-prom__container--opened"),e.container.classList.remove("nl-prom__container--sticky"))},e.handleClose=function(){e.container&&(e.setCookie(),window.removeEventListener("scroll",e.handleScroll),window.removeEventListener("transitionend",e.handleTransitionEnd),e.hideUi(),e.container.classList.add("hide"))},e.handleScroll=function(){e.scrollTimeout||(e.scrollTimeout=window.setTimeout((function(){window.pageYOffset>=500?e.showUi():e.hideUi(),n(),e.scrollTimeout=null}),50))},e.handleTransitionEnd=function(){n()},e.initializePopup=function(){if(e.container=document.querySelector(".nl-prom__container"),e.footer=document.querySelector(".footer-commerce"),e.container){var t=window.tts.cookie.getCookie(e.cookieName),n=window.tts.cookie.getCookie(e.sessionCookieName);if(!("3"!=t&&"true"!=n||e.container&&"3"==e.container.dataset.variant))return;const i=window.tts.context.cookieConsentServiceIds.promoTeaserControlId;if(!window.tts.ucHelper.checkConsent(i))return void window.tts.debug.log("Preventing promotion from being displayed, as the user has not given their consent.");e.continuePopupInitialization()}},e.continuePopupInitialization=function(){var t=e.container.querySelector(".nl-prom__close");t&&t.addEventListener("click",e.handleClose),e.container&&"1"==e.container.dataset.variant?(window.addEventListener("scroll",e.handleScroll),window.addEventListener("transitionend",e.handleTransitionEnd)):e.showUi(),e.container.classList.remove("nl-prom__container--initializing")},e.initialize=function(){var t=$(".promotion-loader");if(t[0]){var n=$(window).width(),i=window.location.protocol+"//"+window.location.host+"/api/sitecore/Promotion/GetPromotionView";$.get(i,{width:n,pageId:t.data("id"),culture:window.tts.context.selectedLanguageCode},void 0,"json").done((function(n,i){if("success"===i&&n&&n.View){var o=window.tts.context.cookieNames;e.cookieName=n.Cookie?n.Cookie:o.newsletterPromotionDisabled,e.sessionCookieName=n.SessionCookie?n.SessionCookie:o.newsletterPromotionSessionDisabled,t.append(n.View),e.initializePopup()}}))}},e.addShowUiListener=function(e){"function"==typeof e&&t.push(e)}},window.addEventListener("UC_UI_INITIALIZED",window.tts.generalPromotion.initialize,!1)},4364:()=>{Element.prototype.parents=function(e){for(var t=[],n=this,i=void 0!==e;null!==(n=n.parentElement);)n.nodeType===Node.ELEMENT_NODE&&(i&&!n.matches(e)||t.push(n));return t},Element.prototype.parent=function(e){for(var t=this,n=void 0!==e;null!==(t=t.parentElement);)if(t.nodeType===Node.ELEMENT_NODE&&(!n||t.matches(e)))return t;return null}},2588:()=>{String.prototype.format?console.warn('"String.prototype.format" does already exist!'):String.prototype.format=function(){var e=this.toString();if(!arguments.length)return e;var t=typeof arguments[0];t="string"==t||"number"==t?arguments:arguments[0];for(const n in t)e=e.replace(RegExp("\\{"+n+"\\}","gi"),t[n]);return e}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>
2{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Ht,hasStandardBrowserEnv:()=>Nt,hasStandardBrowserWebWorkerEnv:()=>It,navigator:()=>Mt,origin:()=>Bt}),window.tts.device=new class{constructor(){this.bpMedium=721,this.bpLarge=1201,this.smallMedia="(max-width: 45em)",this.mediumMedia="(min-width: 45.0625em) and (max-width: 75em)",this.largeMedia="(min-width: 75.0625em)",this.xlargeMedia="(min-width: 120em)",this.smallRetinaMedia="(max-width: 90em)",this.mediumRetinaMedia="(min-width: 90.0625em) and (max-width: 150em)",this.largeRetinaMedia="(min-width: 240.0625em)",this.mobileMedia="(max-width: 767px)",this.tabletMedia="(min-width: 768px) and (max-width: 991px)",this.tabletLargeMedia="(min-width: 992px) and (max-width: 1279px)",this.desktopMedia="(min-width: 1279px) and (max-width: 1919px)",this.desktopLargeMedia="(min-width: 1920px)",this.media="@media print, screen and "}isMobileResolution(){return this.IsResolution(this.mobileMedia)}isTabletResolution(){return this.IsResolution(this.tabletMedia)}isTabletLargeResolution(){return this.IsResolution(this.tabletLargeMedia)}isDesktopResolution(){return this.IsResolution(this.desktopMedia)}isDesktopLargeResolution(){return this.IsResolution(this.desktopLargeMedia)}isSmall(){return this.IsResolution(this.smallMedia)}isMedium(){return this.IsResolution(this.mediumMedia)}isLarge(){return this.IsResolution(this.largeMedia)}isXLarge(){return this.IsResolution(this.xlargeMedia)}getMediaQuerySmall(){return this.media+this.smallMedia}getMediaQueryMedium(){return this.media+this.mediumMedia}getMediaQueryLarge(){return this.media+this.largeMedia}getMediaQueryXLarge(){return this.media+this.xlargeMedia}getMediumBreakPoint(){return this.bpMedium}getLargeBreakPoint(){return this.bpLarge}getMediaQuerySmallRetina(){return this.GetRetinaQuery(this.smallRetinaMedia)}getMediaQueryMediumRetina(){return this.GetRetinaQuery(this.mediumRetinaMedia)}getMediaQueryLargeRetina(){return this.GetRetinaQuery(this.largeRetinaMedia)}isMobile(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}GetRetinaQuery(e){return"@media print, screen and (-webkit-min-device-pixel-ratio: 2) and "+e+" and (min-resolution: 192dpi),screen and (min--moz-device-pixel-ratio: 2) and "+e+" and (min-resolution: 192dpi),screen and (-o-min-device-pixel-ratio: 2) and "+e+" and (min-resolution: 192dpi), screen and (min-device-pixel-ratio: 2) and "+e+" and (min-resolution: 192dpi)"}IsResolution(e){return window.matchMedia(e).matches}},n(4364),n(1798),n(2588);const t=window.tts;t.debug={log:(...e)=>{t.isDebugMode&&console.log(...e)}},n(6164),n(3574),n(2325),n(196);
2class i{static debounce(e,t=0,n=!1){let i;return o=>{const r=n&&!i;i&&clearTimeout(i),i=setTimeout((()=>{i=void 0,n||e.apply(this,o)}),t),r&&e.apply(this,o)}}static throttle(e,t){let n,i;const o=function(r){i=r,!n&&(e(i),i=void 0,n=setTimeout((function(){n=void 0,i&&o(i)}),t))};return o}}window.tts=window.tts||{},window.tts.grid=new function(){var e=this;function t(e){"PICTURE"==e.tagName&&(e=e.querySelector("img")),e.style.height="auto";var t=e.getBoundingClientRect();return{height:t.height,top:window.pageYOffset+t.top}}function n(e,n,i){var o=t(e);i||(o.top=t(e.closest(".grid")).top),n[o.top]||(n[o.top]={maxHeight:0,elements:[]}),o.height>n[o.top].maxHeight&&(n[o.top].maxHeight=o.height),n[o.top].elements.push(e)}e.autoHeightGrid=function(e){var t={};!function(e,t){var i=function(e){var t=e.getAttribute("data-auto-height");return null==t||0==t.length||"None"==t?null:"perline"==t.toLowerCase()||"pergrid"!=t.toLowerCase()&&(console.debug("Invalid value `"+t+"` for autoheight."),null)}(e);if(null!==i){var o=function(e){var t;return(t=e.classList.contains("grid-fixed")?e.querySelectorAll("li.fixed-grid-list > .editFrame > *,li.fixed-grid-list > :not(.editFrame)"):e.classList.contains("grid-static")?e.querySelectorAll("li > .editFrame > *,li > :not(.editFrame)"):e.querySelectorAll(".grid-cell > .editFrame > *,.grid-cell > :not(.editFrame) "))[0]&&t[0].classList.contains("homepage-grid-teaser")&&(t=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].querySelector("div.content"));return t}(t)),t}(e);if(!(o.length<=0))for(var r=0;r<o.length;r++)"CODE"==o[r].tagName||"scChromeData"==o[r].className||"A"==o[r].tagName&&o[r].classList.contains("button")||"triplet-show-more"==o[r].className||n(o[r],t,i)}}(e,t),function(e){for(var t in e)for(var n=e[t],i=0;i<n.elements.length;i++){var o=n.elements[i],r=n.maxHeight,s=!o.closest(".grid").classList.contains("autoheight-small");window.tts.device.isSmall()&&!s?o.style.height="inherit":o.style.height=r+"px"}}(t)},e.autoHeightGrids=function(){var t=document.querySelectorAll(".grid[data-auto-height]");for(let n=0;n<t.length;n++)window.setTimeout((function(t){e.autoHeightGrid(t)}),0,t[n]),t[n].querySelectorAll("img").forEach((function(i){i.addEventListener("load",(()=>{e.autoHeightGrid(t[n])}))}))},window.addEventListener("resize",i.debounce(e.autoHeightGrids,400),!1)},window.addEventListener("load",window.tts.grid.autoHeightGrids,!1);const o=window.tts;function r(e){return"number"==typeof e}function s(e){return"string"==typeof e&&e.length>0}function a(e){return"object"==typeof e&&null!==e&&e instanceof HTMLElement}function l(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e}function c(e){return void 0!==e&&e instanceof HTMLAnchorElement}const d="data-number-count-up";function u(e){const t=function(e){return o.attributeOptions.getAttributeOptions(e.getAttribute(d))}(e),n=(t?.value||e.innerHTML).trim();isNaN(parseFloat(n))?h(e):function(e,t,n,i){const r=t=>e.innerHTML=t.toLocaleString(o.context.selectedLanguageCode,i),s=n/(t/40-.123456789);let a=0;r(0),h(e);const l=setInterval((()=>{a+=s,a>n&&(a=n,clearInterval(l)),r(a)}),40)}(e,function(e){if(!e?.animationTime)return null;const t=parseInt(e.animationTime);return isNaN(t)?null:t}(t)||1500,parseFloat(n),function(e){const t={};if(e?.currency&&(t.style="currency",t.currency=e.currency,t.useGrouping=!0),e?.fractionDigits){const n=parseInt(e.fractionDigits);isNaN(n)||(t.minimumFractionDigits=n,t.maximumFractionDigits=n)}return t}(t))}function h(e){e.classList.add("number-count-up--visible")}document.addEventListener("DOMContentLoaded",(()=>function(){for(const e of Array.from(document.querySelectorAll(`[${d}]`)))u(e)}()),!1),n(6951);var m=n(8474),p=n.n(m);const g=e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return e(window.tts)},f=".tts-video";class w{constructor(){this.videos=[],this.videoSelector=f,this.videoConsentSelector=".tts-consent-overlay",this.videoConsentActiveSelector="tts-consent-overlay__active"}initializeLinksForExperienceEditorForContainer(e){const t=e.querySelectorAll(this.videoSelector);for(let e=0;e<t.length;e++){const n=t[e],i=n.parentNode;c(i)&&(i.href="javascript:return false;",this.setVideoTitle(n),i.onclick=function(e){e.preventDefault(),e.stopPropagation()})}}initializeInPlaceVideos(){const e=document.querySelectorAll('.video-inline-link[target="inplace"]');this.prepareVideos(e);const t=document.querySelectorAll(`${this.videoSelector}, .tts-festooltv-video, .festooltv__embed-container`);this.videos=[];for(let e=0;e<t.length;e++)this.videos.push(t[e]);o.ucHelper.checkConsentWithContainerMethod(o.context.cookieConsentServiceIds.youtubeConsentId,(()=>this.handleConsent()))}initializeInPlaceVideosForContainer(){for(let e=0;e<this.videos.length;e++)this.setVideoTitle(this.videos[e])}async setVideoTitle(e){if(null==e||null==e.querySelector)return;const t=e.querySelector(`${this.videoSelector}-id`),n=e.querySelector(`${this.videoSelector}-title`),i=e.querySelector(`${this.videoSelector}-duration`);if("object"==typeof(r=t)&&null!==r&&r instanceof HTMLElement&&"input"===r.nodeName.toLowerCase()&&null!=t.value){const e=document.querySelector(`#video-${t.value} .title`),r=await function(e){return g((t=>t.axiosService.executeRequestWithTokenValidation((()=>t.axiosService.getInstance().get("/api/youtube/videoinfo",{params:{videoId:e}})),!0)))}(t.value);
2if(200===r.status){const t=r.data;if(null!=n&&""===n.innerHTML&&(n.innerHTML=decodeURIComponent(t.title)),null!=e&&""===e.innerHTML&&(e.innerHTML=decodeURIComponent(t.title)),i&&(t.duration&&"00:00"!==t.duration&&"00:00:00"!==t.duration?i.innerHTML=decodeURIComponent(t.duration):i.remove()),n){const e=n.parentElement?.closest(".grid");a(e)&&o.grid.autoHeightGrid(e)}}}var r}handleConsent(){if(o.ucHelper.checkConsent(o.context.cookieConsentServiceIds.youtubeConsentId)){for(let e=0;e<this.videos.length;e++){const t=this.videos[e];this.setVideoTitle(t);const n=t.querySelector("[data-video-link]");if(c(n)){const e=n.dataset.videoLink;e&&(n.href=e)}}this.setImageSources()}else this.removeImageSources()}setImageSources(){document.querySelectorAll(".tts-youtube-consent source").forEach((e=>{e.dataset.src&&e.setAttribute("srcset",e.dataset.src)}))}removeImageSources(){document.querySelectorAll(".tts-youtube-consent source").forEach((e=>{e.dataset.src&&e.removeAttribute("srcset")}))}prepareVideos(e){for(let t=0;t<e.length;t++){const n=e[t];if(!c(n))break;if(n.closest(".overlay-support"))break;n.onmouseup=function(e){if(1!==e.button)return;if(!c(this))return;const t=this.querySelector(f);var n;if("object"==typeof(n=t)&&null!==n&&n instanceof HTMLElement&&"div"===n.nodeName.toLowerCase()&&(e.preventDefault(),!t.closest(".is-dragging")&&!t.querySelector("iframe"))){const e=document.createElement("iframe");e.src=this.href,this.removeAttribute("href"),t.innerHTML="",t.appendChild(e)}}}}}const v=p()((()=>{o.media.handleConsent()}),500);function y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}o.experienceEditor.isExperienceEditor()?document.addEventListener("DOMContentLoaded",(()=>{window.tts.media=new w,a(document?.documentElement)&&o.media.initializeLinksForExperienceEditorForContainer(document.documentElement)}),!1):(document.addEventListener("DOMContentLoaded",(()=>{window.tts.media=new w,o.media.initializeInPlaceVideos()}),!1),document.addEventListener("reloadVideos",v,!1)),n(1401),n(7101),n(5456),n(3197),n(9728);var b,E,C=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=y({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var s in o)o[s]&&(r+="; "+s,!0!==o[s]&&(r+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),s=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(i[a]=t.read(s,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",y({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,y({},this.attributes,t))},withConverter:function(t){return e(y({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});!function(e){e.UiInitialized="UC_UI_INITIALIZED",e.UiCmp="UC_UI_CMP_EVENT"}(b||(b={})),function(e){e.SelectionChanged="ttsProductComparisonSelectionChanged"}(E||(E={}));const S=new class{constructor(){this.passedGdprCheck=!1,this.selectedProducts=[]}init(){this.pullSelectionFromCookie()}getConsentName(){return o.ucHelper.getServiceName(o.context.cookieConsentServiceIds.productComparisonServiceConsentId)}setConsent(){o.ucHelper.acceptService(o.context.cookieConsentServiceIds.productComparisonServiceConsentId)}hasConsent(){return this.passedGdprCheck=o.ucHelper.checkConsent(o.context.cookieConsentServiceIds.productComparisonServiceConsentId),this.passedGdprCheck}add(e){return!this.isFull()&&!this.getProduct(e.mainChapterId,e.productChapterId,e.variantId)&&(this.selectedProducts.push(e),this.pushSelectionToCookie(),o.googleAnalyticsService.changeComparisonItem("add",e.productName,e.productNumber),!0)}change(e,t,n,i){if(!t||!i.productChapterId||!i.variantId)return!1;const r=this.getProduct(e,t,n);return!!r&&(o.googleAnalyticsService.changeComparisonItem("remove",r.productName,r.productNumber),r.mainChapterId=e,r.productChapterId=i.productChapterId,r.variantId=i.variantId,r.productName=i.productName,r.imageUrl=i.imageUrl,this.pushSelectionToCookie(),o.googleAnalyticsService.changeComparisonItem("add",i.productName,i.productNumber),!0)}remove(e,t,n){const i=this.getProduct(e,t,n);if(!i)return!1;const r=this.selectedProducts.indexOf(i);return this.selectedProducts.splice(r,1),this.pushSelectionToCookie(),o.googleAnalyticsService.changeComparisonItem("remove",i.productName,i.productNumber),!0}
2clear(){this.selectedProducts.forEach((e=>{o.googleAnalyticsService.changeComparisonItem("remove",e.productName,e.productNumber)})),this.selectedProducts=[],this.pushSelectionToCookie()}getProduct(e,t,n){return this.selectedProducts.find((i=>i.mainChapterId===e&&i.productChapterId===t&&i.variantId===n))||null}getSelected(){return this.selectedProducts}isFull(){return this.selectedProducts.length>=4}pushSelectionToCookie(){o.cookie.createSessionCookie(o.context.cookieNames.productComparisonSelection,JSON.stringify(this.selectedProducts)),document.dispatchEvent(new Event(E.SelectionChanged))}pullSelectionFromCookie(){const e=C.get(o.context.cookieNames.productComparisonSelection);this.selectedProducts=void 0===e?[]:JSON.parse(e),document.dispatchEvent(new Event(E.SelectionChanged))}};var L;o.productComparisonService=S,window.addEventListener(b.UiInitialized,(()=>{S.init()}),!1),window.addEventListener("focus",(()=>{S.init()}),!1),t.ucHelper=new class{constructor(){this.giveConsentUrl="/api/trackingconsent/giveconsent",this.revokeConsentUrl="/api/trackingconsent/revokeconsent",this.ucName="UC_UI",this.isInitialized=!1,this.initialize=()=>{this.isInitialized=!0,window.addEventListener(b.UiCmp,(()=>{const e=t.context.cookieConsentServiceIds.sitecoreConsentId;window[this.ucName].getServicesBaseInfo().find((t=>t.id===e))?.consent?.status?fetch(this.giveConsentUrl):fetch(this.revokeConsentUrl)}))}}checkConsent(e){return window[this.ucName]?.getServicesBaseInfo().find((t=>t.id===e))?.consent?.status??!1}checkConsentWithContainerMethod(e,t){window.addEventListener(b.UiInitialized,(()=>{t(this.checkConsent(e))})),window.addEventListener(b.UiCmp,(()=>{t(this.checkConsent(e))})),window[this.ucName]&&t(this.checkConsent(e))}checkConsentIsExplicit(e){try{const t=window[this.ucName].getServicesBaseInfo().find((t=>t.id===e)).consent.history.slice(-1);return"explicit"===t.type&&!0===t.status}catch(e){return!1}}getServiceName(e){return window[this.ucName]?.getServicesBaseInfo()?.find((t=>t.id==e))?.name??""}openCookieSettings(){window[t.ucHelper.ucName]?.showSecondLayer()}acceptService(e){window[t.ucHelper.ucName]?.acceptService(e)}},window.addEventListener(b.UiInitialized,(()=>{t.ucHelper.initialize()})),function(e){e.WatchListChanged="watchListChanged",e.WatchListServiceUpdate="watchListServiceUpdate",e.WatchListServiceUpdateFinished="watchListServiceUpdateFinished",e.WatchListShowConsentSheet="watchListShowConsentSheet",e.WatchListCloseConsentSheet="watchListCloseConsentSheet",e.WatchListShowGtmSheet="watchListShowGtmSheet",e.WatchListCloseGtmSheet="watchListCloseGtmSheet"}(L||(L={}));const T=new class{constructor(){this.markIfEmpty=".product-watch-list-mark-if-empty",this.listEmpty="product-watch-list-empty",this.hideIfEmpty=".product-watch-list-hide-if-empty",this.counter=".product-watch-list-counter",this.ifLoading=".product-watch-list-mark-if-loading"}refreshState(){const e=o.watchlist.getSelectedVariants().length;this.updateItemVisibility(0!==e),this.updateProductCounts(e),this.removeLoadingClasses()}updateItemVisibility(e){Array.from(document.querySelectorAll(this.markIfEmpty)).forEach((t=>{e?t.classList.remove(this.listEmpty):t.classList.add(this.listEmpty)})),Array.from(document.querySelectorAll(this.hideIfEmpty)).forEach((t=>{t.style.display=e?"":"none"}))}updateProductCounts(e){Array.from(document.querySelectorAll(this.counter)).forEach((t=>{t.textContent=e.toString()}))}setLoadingClasses(){Array.from(document.querySelectorAll(this.ifLoading)).forEach((e=>{e.classList.add("loading")}))}removeLoadingClasses(){Array.from(document.querySelectorAll(this.ifLoading)).forEach((e=>{e.classList.remove("loading")}))}};document.addEventListener(L.WatchListChanged,(()=>T.refreshState()),!1),document.addEventListener(L.WatchListServiceUpdate,(()=>T.setLoadingClasses()),!1),document.addEventListener(L.WatchListServiceUpdateFinished,(()=>T.removeLoadingClasses()),!1),n(9587);class k{constructor(){this.init=()=>{"vp100"!=this.currentSize&&o.device.isMobileResolution()?this.setupVideoElements("vp100"):"vp200"!=this.currentSize&&o.device.isTabletResolution()?this.setupVideoElements("vp200"):"vp300"!=this.currentSize&&o.device.isTabletLargeResolution()?this.setupVideoElements("vp300"):"vp400"!=this.currentSize&&o.device.isDesktopResolution()?this.setupVideoElements("vp400"):"vp500"!=this.currentSize&&o.device.isDesktopLargeResolution()&&this.setupVideoElements("vp500 ")},this.currentSize=null}setupVideoElements(e){const t=document.getElementsByClassName("responsive-video");for(let n=0;n<t.length;n++){const i=t[n],o=i.getElementsByTagName("video")[0],r=i.getElementsByClassName("responsive-video-"+e)[0];this.currentSize=e,o&&o.remove(),r&&(i.innerHTML+=r.innerHTML.trim())}}}window.addEventListener("DOMContentLoaded",(()=>{window.tts.responsiveVideos=new k,o.responsiveVideos.init(),window.addEventListener("resize",o.responsiveVideos.init,!1)})),n(2898),n(7380),n(459),n(223);class x{static initialize(e=null){window.setTimeout((()=>{const t=(e||document).querySelectorAll(".product-teaser");for(let e=0;e<t.length;e++)x.decorateProductTeaser(t[e])}),400)}static decorateProductTeaser(e){const t=e.querySelector(".product-teaser__infos--headline a");if(t){const n=t.attributes.href;if(n&&n.value&&e.addEventListener("click",(function(e){const n=e.target;n.closest(".tts-video")||n.closest(".teaser-link")||n.closest("input.tts-checkbox+label")||n.closest(".tts-checkbox")||n.closest(".watch-list-checkbox")||n.closest(".watch-list-checkbox--not-logged-in")||t.click()})),t.textContent){const e=t.textContent.trim();if(e.length>0){const n=e[0].toLowerCase()+e.substring(1);t.textContent=n,t.dataset&&(t.dataset.ellipsisInitialContent=n)}}}}}o.experienceEditor.isExperienceEditor()||document.addEventListener("DOMContentLoaded",(()=>{x.initialize()}),!1),n(1076);class A{constructor(){document.querySelectorAll(".expandable-content").forEach((e=>{a(e)&&this.setupContainer(e)}))}static getDuration(e){return parseInt(e.dataset.expandableContentDuration??"0")||A.defaultDuration}static setCollapsedState(e){e.classList.remove(A.expandedClassName)}static setTransition(e){e.style.transition="height "+A.getDuration(e)+"ms ease-out"}expand(e,t=!1){e&&(e.classList.add(A.expandedClassName),setTimeout((()=>{e.style.height=e.scrollHeight+"px",setTimeout((function(){e.style.height="auto"}),t?0:A.getDuration(e))}),0))}collapse(e,t=0,n=!1){e&&(n?A.setCollapsedState(e):(e.style.height=e.scrollHeight+"px",setTimeout((()=>{e.style.height=(t||e.dataset.expandableCollapsedHeight||0)+"",setTimeout((()=>{A.setCollapsedState(e)}),A.getDuration(e))}),1)))}toggle(e,t=0,n=!1){e&&(e.classList.contains(A.expandedClassName)?this.collapse(e,t,n):this.expand(e,n))}toggleErroneousRendering(e){e.preventDefault();const t=e.target.parentElement?.querySelector(".details.expandable-content");a(t)&&this.toggle(t)}setupContainer(e){e&&(e.classList.contains(A.expandedClassName)||(e.style.height="0"),e.style.overflow="hidden",e.style.position="relative",A.setTransition(e))}}var O,R;A.defaultDuration=750,A.expandedClassName="expandable-content--expanded",window.addEventListener("DOMContentLoaded",(()=>{o.expandableContent=new A})),n(4196),n(6134),n(236),n(1133),n(7183),n(6658),n(6223),n(6700),function(e){e.google="google",e.bing="bing"}(O||(O={}));class q{constructor(e,t=!1){this.bounds=null,this.model=null,this.mapElement=null,this.gmap=void 0,this.initialized=!1,this.scriptElement=e,this.initialize(t)}initializeResponsiveBehaviour(){this.mapElement&&(this.mapElement.setAttribute("data-responsive-image","true"),this.mapElement.setAttribute("data-image-small-url",""),this.mapElement.setAttribute("data-image-medium-url",""),this.mapElement.setAttribute("data-image-large-url",""),this.mapElement.setAttribute("data-image-small-width",this.model.WidthS),this.mapElement.setAttribute("data-image-small-height",this.model.HeightS),this.mapElement.setAttribute("data-image-medium-width",this.model.WidthM),this.mapElement.setAttribute("data-image-medium-height",this.model.HeightM),this.mapElement.setAttribute("data-image-large-width",this.model.WidthL),this.mapElement.setAttribute("data-image-large-height",this.model.HeightL))}initializeLocation(e){var t={lat:parseFloat(e.Latitude),lng:parseFloat(e.Longitude)},n={url:e.Icon.Url,scaledSize:new google.maps.Size(50,50)},i=new google.maps.Marker({map:this.gmap,optimized:!1,position:t,icon:n});if(this.bounds?.extend(i.getPosition()),e.Description){var o=new google.maps.InfoWindow({content:e.Description});i.addListener("click",(()=>{o.open(this.gmap,i)}))}}initialize(e){if(e&&!this.initialized){this.initialized=!0;var t=document.createElement("textarea");t.innerHTML=this.scriptElement.innerHTML;var n=t.value;this.model=JSON.parse(n),this.mapElement=document.createElement("div"),this.mapElement.className="tts-gmaps",this.mapElement.map=this;var i=this.scriptElement?.parentNode;i?.insertBefore(this.mapElement,this.scriptElement),i?.removeChild(this.scriptElement);var o={lat:parseFloat(this.model.InitialLatitude),lng:parseFloat(this.model.InitialLongitude)};if(this.gmap=new google.maps.Map(this.mapElement,{center:o,zoom:parseInt(this.model.InitialZoomLevel)}),this.model.Locations){this.bounds=new google.maps.LatLngBounds;for(var r=0;r<this.model.Locations.length;r++)this.initializeLocation(this.model.Locations[r]);google.maps.event.addDomListener(window,"resize",this.onResize)}window.dispatchEvent(new Event("resize")),this.initializeResponsiveBehaviour()}}onResize(){this.gmap&&this.bounds&&(google.maps.event.trigger(this.gmap,"resize"),this.gmap.setCenter(this.bounds.getCenter()),this.gmap.fitBounds(this.bounds),this.gmap.setZoom(parseInt(this.model.InitialZoomLevel)))}}class P{constructor(){this.isInitialized=!1,this.isScriptLoaded=!1,o.ucHelper.checkConsentWithContainerMethod(o.context.cookieConsentServiceIds.googleMapsConsentId,(e=>this.checkConsent(e)))}checkConsent(e){if(o.maps.mapsBundleLink&&o.maps.mapsProvider===O.google&&e&&!this.isInitialized){if(null!=document.querySelector(`script[src*="${o.maps.gMapsApiHost}"]`))return void this.initializeMaps();if(!this.isScriptLoaded){this.isScriptLoaded=!0;const e=document.createElement("script");e.setAttribute("src",o.maps.mapsBundleLink),document.body.appendChild(e)}}}initializeMaps(){this.isInitialized=!0;var e=document.querySelectorAll("script[type='x-tts-gmaps']");const t=o.ucHelper.checkConsent(o.context.cookieConsentServiceIds.googleMapsConsentId);for(var n=0;n<e.length;n++)new q(e[n],t);o.responsiveImages.init();const i=o.dealerSearch;if(!i)return;const r=o.dealerSearch.googleMap;i.init(r.initMap,r.getLocationFromDealer,r.filterChangeEvent,r.setCurrentCountryFilter)}}window.addEventListener("DOMContentLoaded",(()=>{o.maps&&(o.maps.googleMaps=new P)})),n(1805),n(3702),n(4971),n(3591),n(4661),window.tts=window.tts||{},window.tts.ellipsis=new function(){var e=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(!n.dataset.ellipsis)return;var i=window.tts.attributeOptions.getAttributeOptions(n.dataset.ellipsis),o=i["max-height"];if(!o)return;var r=i.devices,s=r?r.split(",").map((function(e){return e.trim().toLowerCase()})):["s","m","l"];if($(n).html(n.dataset.ellipsisInitialContent),window.tts.device.isSmall()&&s.includes("s")||window.tts.device.isMedium()&&s.includes("m")||window.tts.device.isLarge()&&s.includes("l")){n.style.maxHeight=o,n.style.overflow="hidden";var a=n.style.height;n.style.height=o;var l=n.offsetHeight;for(n.style.height=a;n.scrollHeight>l;)$(n).text((function(e,t){return t.replace(/\W*\s(\S)*$/,"...")}))}else n.style.removeProperty("max-height"),n.style.removeProperty("overflow")}};this.initialize=function(){var t=document.querySelectorAll("[data-ellipsis]");!function(e){for(var t=0;t<e.length;t++){var n=e[t];if(!n.dataset.ellipsis)return;n.dataset.ellipsisInitialContent=$(n).html()}}(t),e(t),window.addEventListener("resize",i.debounce((function(){e(t)}),200),!1)}},document.addEventListener("DOMContentLoaded",window.tts.ellipsis.initialize,!1),n(5411),n(3378),n(3902),n(5500),n(1742),n(1404),n(971),n(5889),n(7538),n(2075),function(e){e.Small="small",e.Medium="medium",e.Large="large",e.XLarge="xlarge",e.Viewport100="mobile",e.Viewport200="tablet",e.Viewport300="tabletLarge",e.Viewport400="desktop",e.Vie
2wport500="desktopLarge"}(R||(R={}));const _={width:0,height:0,dimensionName:R.Small},H=[],M=[],N=[],I=[];function B(e){I.push(e)}const D=()=>{const e=_.width,n=_.height,i=_.dimensionName;_.width=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth),_.height=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),_.dimensionName=t.device.isSmall()?R.Small:t.device.isMedium()?R.Medium:t.device.isLarge()?R.Large:R.XLarge;const o=_.width!==e,r=_.height!==n,s=_.dimensionName!==i;o&&M.forEach((e=>e(_))),r&&N.forEach((e=>e(_))),s&&I.forEach((e=>e(_))),(o||r||s)&&H.forEach((e=>e(_)))};D(),window.addEventListener("resize",i.throttle(D,150));const z=_;class U{constructor(e){this.applyPaddingLeft=e=>{if(e){const t=this.content.offsetWidth,n=t?`${t}px`:"";e.style.paddingLeft=n}},this.applyPaddingBottom=e=>{if(e){const t=this.actionMobile.offsetHeight,n=t?`${t}px`:"";e.style.paddingBottom=n}},this.checkClickOutsideHandler=e=>{const t=e.target;t.closest(".quick-navigation__overlay")&&this.closeMenu(),t.closest(".quick-navigation")||this.closeMenu()},this.container=e,this.content=this.container.querySelector(".quick-navigation__content"),this.contentMobile=this.container.querySelector(".quick-navigation__content-mobile"),this.actionMobile=this.container.querySelector(".quick-navigation__content-mobile > .quick-navigation__action"),this.init()}resizeHandler(){this.adjustPaddingTop()}init(){B((()=>this.applyDeviceDimension())),this.initMenuToggle(),this.applyDeviceDimension(),this.setActiveItem(),this.adjustPaddingTop(),o.generalPromotion.addShowUiListener(this.applyPaddingBottom)}applyDeviceDimension(){this.closeMenu(),this.applyPaddings()}initMenuToggle(){const e=this.content.querySelector(".quick-navigation__menu-open"),t=this.content.querySelector(".quick-navigation__menu-close");e.addEventListener("click",(()=>this.openMenu())),t.addEventListener("click",(()=>this.closeMenu()));const n=this.contentMobile.querySelector(".quick-navigation__menu-open"),i=this.contentMobile.querySelector(".quick-navigation__menu-close");n.addEventListener("click",(()=>this.openMenu())),i.addEventListener("click",(()=>this.closeMenu()))}setActiveItem(){const e=this.content.querySelectorAll(".quick-navigation__item"),t=this.contentMobile.querySelectorAll(".quick-navigation__item"),n=location.pathname;Array.from(e).concat(Array.from(t)).map((e=>({item:e,anchor:e.querySelector("a")}))).forEach((({item:e,anchor:t})=>{t&&t.href.split("?")[0].endsWith(n)&&e.classList.add("quick-navigation__item--active")}))}applyPaddings(){["header",".breadcrumb-row",'[role="main"]',".footer-commerce"].map((e=>document.querySelector(e))).forEach(this.applyPaddingLeft),[".sticky-buttons-wrapper",".footer-commerce",".promotion-loader > *"].map((e=>document.querySelector(e))).forEach(this.applyPaddingBottom)}adjustPaddingTop(){const e=document.querySelector("header"),t=e?`${e.offsetTop+e.offsetHeight}px`:"";this.content.style.paddingTop=t}openMenu(){this.content.classList.add("quick-navigation__content--open"),this.contentMobile.classList.add("quick-navigation__content-mobile--open"),window.addEventListener("click",this.checkClickOutsideHandler)}closeMenu(){this.content.classList.remove("quick-navigation__content--open"),this.contentMobile.classList.remove("quick-navigation__content-mobile--open"),window.removeEventListener("click",this.checkClickOutsideHandler)}}window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".quick-navigation");if(e){const t=new U(e);window.addEventListener("resize",i.throttle((()=>t.resizeHandler()),50))}})),n(3561),n(1788),n(4706),n(5082),n(1201),n(7447),n(5081);const F="data-key-figure-service";document.addEventListener("DOMContentLoaded",(()=>function(){const e=`[${F}]:not([${F}="None"])`,t=".key-figures-tile__figure",n=`${o.servicesettings.servicesApiAddress}/products/MyMachines/Count`;let i=0;for(const r of Array.from(document.querySelectorAll(e)))i++,o.axiosService.getInstance().get(n).then((e=>{const n=r.querySelector(t);e.data&&n&&(n.querySelector(`${t}-title`).innerHTML=o.dictionary.getText("myfestool_dashboard_products"),n.querySelector(`${t}-count`).innerHTML=e.data.totalToolsCount.toString())})).catch((()=>{r.querySelector(".key-figures-tile__error").classList.add("error")})).finally((()=>
2{if(r.classList.remove("loading"),i--,0===i)for(const e of o.dashboards)e.adjustElementHeights()}))}()),!1);class j{constructor(){this.currencyElementSelector=".currency-js",this.selectedLanguageCode=t.context.selectedLanguageCode,this.currencyISOCode=t.context.currencyISOCode}toLocaleCurrencyString(e,t){return e.toLocaleString(this.selectedLanguageCode,{style:"currency",currency:t||this.currencyISOCode})}initPriceHelper(){const e=document.querySelectorAll(this.currencyElementSelector);if(!(e.length<=0))for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t],i=this.toCurrency(n.textContent);n.innerText=i}}static parseToFloatFormat(e){return e?e.replace(",",".").replace(/\s/g,""):""}toCurrency(e,n){return e?(isNaN(e)&&(e=j.parseToFloatFormat(e)),null==this.currencyISOCode&&(window.location.href=t.context.defaultLanguageContextItemUrl),e?this.toLocaleCurrencyString(parseFloat(e),n):""):""}getCurrencySymbol(){return(0).toLocaleString(this.selectedLanguageCode,{style:"currency",currency:this.currencyISOCode,minimumFractionDigits:0,maximumFractionDigits:0}).replace(/\d/g,"").trim()}toCurrencyZeroCase(e,t){return 0===e?this.toLocaleCurrencyString(e,t):this.toCurrency(e,t)}}var W,V,Q;t.priceHelper=new j,document.addEventListener("DOMContentLoaded",(()=>{t.priceHelper.initPriceHelper()}),!1),n(7691),n(9448),n(8348),n(3341),n(8050);class K{constructor(){this.activeClass="meta-navigation__item--active"}init(){this.initFlyouts(),this.initFlyoutPopups()}initFlyouts(){const e=document.querySelectorAll(".meta-navigation__item[data-flyout]");e.forEach((e=>{e.querySelector(".meta-navigation__item-icon").addEventListener("click",(()=>{o.cookie.createCookie(o.context.cookieNames.quickLoginPopupDisabled,"true",99);const t=e.querySelector(".flyout__content");e.classList.contains(this.activeClass)?(this.hideFlyout(e),t.style.left=""):(this.showFlyout(e,!0),K.calculateFlyoutPosition(e,t))})),e.querySelector(".flyout-button-close")?.addEventListener("click",(()=>{this.hideFlyout(e)}))})),window.addEventListener("click",(t=>{e.forEach((e=>{const n=t.target;n.closest("#uc-central-banner-modal")||n.closest("#uc-center-modal")||n.closest("#uc-btn-accept-banner")||e.contains(t.target)||this.hideFlyout(e)}))})),new ResizeObserver((()=>{e.forEach((e=>{e.classList.contains("opened-by-user")&&this.hideFlyout(e)}))})).observe(document.querySelector(".content")||document.getElementById("page"))}initFlyoutPopups(){document.querySelectorAll(".meta-navigation__item[data-login-hint]").forEach((e=>{(o.device.isLarge()||o.device.isXLarge())&&this.initQuickLoginFlyout(e)}))}initQuickLoginFlyout(e){const t=!o.ucHelper.checkConsentIsExplicit(o.context.cookieConsentServiceIds.quickLoginPopupServiceConsentId)||o.ucHelper.checkConsent(o.context.cookieConsentServiceIds.quickLoginPopupServiceConsentId);if(0!==o.cookie.getCookie(o.context.cookieNames.quickLoginPopupDisabled).length||o.context.isUserAuthenticated||!t)return;const n=e.querySelector(".flyout__content");this.showFlyout(e,!1),K.calculateFlyoutPosition(e,n),e.querySelector(".flyout-button-close")?.addEventListener("click",(()=>{this.hideFlyout(e),o.cookie.createCookie(o.context.cookieNames.quickLoginPopupDisabled,"true",99)}))}static calculateFlyoutPosition(e,t){if(!o.device.isSmall()){const n=e.parentElement,i=n.getBoundingClientRect().left+n.getBoundingClientRect().width;t.getBoundingClientRect().left+t.getBoundingClientRect().width>i&&(t.style.left=i-t.getBoundingClientRect().width+"px")}}hideFlyout(e){e.classList.remove(this.activeClass)}showFlyout(e,t){e.classList.add(this.activeClass),t&&e.classList.add("opened-by-user")}}o.metaNavigation||(o.metaNavigation=new K,window.addEventListener(b.UiInitialized,(()=>o.metaNavigation.init()),!1)),function(e){e.Full="full",e.Half="half",e.Quarter="quarter"}(W||(W={}));class G{constructor(e){this.elementsWithAdjustedHeight=[],this.widgetElement=e,this.percentageWidth=1,this.menuBoxContainerElement=this.widgetElement.querySelector(`.${G.boxContainerClassName}`),this.contentElement=this.widgetElement.querySelector(`.${G.contentElementClassName}`),this.widgetSize=this.getWidgetSize(),this.menuBoxContainerElement&&this.initMenu()}getWidgetSize(){return this.widgetElement.classList.contains(G.halfWidgetClassName)?W.Half:this.widgetElement.classList.contains(G.quarterWidgetClassName)?W.Quarter:(this.widgetElement.classList.add(G.fullWidgetClassName),W.Full)}initMenu(){const e=this.widgetElement.querySelector(`.${G.buttonClassName}`);if(!e)return void o.debug.log("No buttonElement element found!");e.addEventListener("click",(()=>this.toggleMenu()));const t=this.widgetElement.querySelector(`.${G.boxClassName}`);window.addEventListener("click",(n=>this.collapseMenuOnOutsideClick(n.target,e,t)))}collapseMenuOnOutsideClick(e,t,n){this.isMenuCollapsed()||e.closest(`.${G.buttonClassName}`)!==t&&n&&e.closest(`.${G.boxClassName}`)!==n&&this.collapseMenu()}isMenuCollapsed(){return this.menuBoxContainerElement?this.menuBoxContainerElement.classList.contains(G.collapsedMenuClassName):(o.debug.log("No menuBoxContainerElement element!"),!1)}toggleMenu(){this.isMenuCollapsed()?this.expandMenu():this.collapseMenu()}
2expandMenu(){this.menuBoxContainerElement?(this.menuBoxContainerElement.classList.remove(G.collapsedMenuClassName),this.menuBoxContainerElement.classList.add(G.expandedMenuClassName)):o.debug.log("No menuBoxContainerElement element!")}collapseMenu(){this.menuBoxContainerElement?(this.menuBoxContainerElement.classList.remove(G.expandedMenuClassName),this.menuBoxContainerElement.classList.add(G.collapsedMenuClassName)):o.debug.log("No menuBoxContainerElement element!")}setContentElementSize(e){if(this.contentElement)switch(this.contentElement.classList.remove(G.smallContentElementClassName),this.contentElement.classList.remove(G.mediumContentElementClassName),this.contentElement.classList.remove(G.largeContentElementClassName),e){case R.Small:this.contentElement.classList.add(G.smallContentElementClassName),this.percentageWidth=1;break;case R.Medium:this.widgetSize===W.Quarter?(this.contentElement.classList.add(G.smallContentElementClassName),this.percentageWidth=.5):(this.contentElement.classList.add(G.mediumContentElementClassName),this.percentageWidth=1);break;default:switch(this.widgetSize){case W.Full:this.contentElement.classList.add(G.largeContentElementClassName),this.percentageWidth=1;break;case W.Half:this.contentElement.classList.add(G.mediumContentElementClassName),this.percentageWidth=.5;break;case W.Quarter:this.contentElement.classList.add(G.smallContentElementClassName),this.percentageWidth=.25}}else o.debug.log("No contentElement element!")}addAdjustedHeight(e,t){e&&e.style&&(e.style.height=`${t}px`,this.elementsWithAdjustedHeight.push(e))}clearAdjustedHeights(){this.elementsWithAdjustedHeight.forEach((e=>e.style.height="")),this.elementsWithAdjustedHeight=[]}}G.className="dashboard-widget",G.fullWidgetClassName=`${G.className}--full`,G.halfWidgetClassName=`${G.className}--half`,G.quarterWidgetClassName=`${G.className}--quarter`,G.buttonClassName=`${G.className}__menu-button`,G.boxClassName=`${G.className}__menu-box`,G.boxContainerClassName=`${G.boxClassName}-container`,G.collapsedMenuClassName=`${G.boxContainerClassName}--collapsed`,G.expandedMenuClassName=`${G.boxContainerClassName}--expanded`,G.contentElementClassName="content-element",G.smallContentElementClassName="content-element--small",G.mediumContentElementClassName="content-element--medium",G.largeContentElementClassName="content-element--large";class J{constructor(e){this.adjustHeightSelectors=[".dashboard-widget__menu",".key-figures-tile__headline",".key-figures-tile__content"],this.adjustElementHeights=()=>{this.widgets.forEach((e=>e.clearAdjustedHeights())),this.rows.forEach((e=>{1!==e.length&&this.adjustHeightSelectors.forEach((t=>{const n=e.map((e=>({widget:e,element:e.widgetElement.querySelector(t)}))).filter((({element:e})=>!!e));if(!n.length)return;const i=Math.max(...n.map((({element:e})=>e?.clientHeight||0)));n.forEach((({widget:e,element:t})=>e.addAdjustedHeight(t,i)))}))}))},this.rows=[],this.widgets=Array.from(e.querySelectorAll(".dashboard-widget")).map((e=>new G(e))),this.initDashboard()}initDashboard(){B((()=>this.setContentElementSizes())),this.setContentElementSizes(),window.addEventListener("resize",i.throttle(this.adjustElementHeights,250)),this.adjustElementHeights()}setContentElementSizes(){for(const e of this.widgets)e.setContentElementSize(z.dimensionName);this.setRows()}setRows(){const e=[];let t=0;this.widgets.forEach((n=>{var i;i=e[t],i?.reduce(((e,t)=>e+t.percentageWidth),0)+n.percentageWidth>1&&t++,(e[t]||e[e.push([])-1]).push(n)})),this.rows=e}}function X(e){return!e||0===e.trim().length}document.addEventListener("DOMContentLoaded",(()=>{o.dashboards=Array.from(document.querySelectorAll(".dashboard-container")).map((e=>new J(e)))}),!1),function(e){e.EmarsysTrackingInitialized="EMARSYS_TRACKING_INITIALIZED",e.ShowCreateRepairOrderSheet="SHOW_CREATE_REPAIR_ORDER_SHEET",e.HeaderUserGreetingUpdated="USER_GREETING_UPDATED",e.ShowAddAddressSheet="SHOW_ADD_ADDRESS_SHEET",e.CloseAddAddressSheet="CLOSE_ADD_ADDRESS_SHEET",e.ShowMyToolboxAddExistingToolForm="SHOW_MYTOOLBOX_ADD_EXISTING_TOOL_FORM",e.ReloadMyToolboxTable="RELOAD_MYTOOLBOX_TABLE"}(V||(V={}));class Y{constructor(){this.goTimer=void 0,this.timerDelay=1e3,this.emarsysTrackingCode=o.emarsysClient.emarsysTrackingCode,this.scarab="ScarabQueue",this.initialize=()=>{o.emarsysClient.isEmarsysTrackingEnabled&&(this.createEmarsysTracking(),window.addEventListener(b.UiCmp,(()=>{this.createEmarsysTracking()})))},this.go=()=>{this.asyncPush(["go"])},this.logSearchTerm=e=>{clearTimeout(this.goTimer),this.asyncPush(["searchTerm",e]),this.goTimer=setTimeout(this.go,this.timerDelay)},this.logView=e=>{clearTimeout(this.goTimer),this.asyncPush(["view",e]),this.goTimer=setTimeout(this.go,this.timerDelay)},this.logCategory=(...e)=>{clearTimeout(this.goTimer),this.asyncPush(["category",e.join(" > ")]),this.goTimer=setTimeout(this.go,this.timerDelay)},this.logNewsletterLeadId=e=>{clearTimeout(this.goTimer),this.asyncPush(["setCustomerId",e]),this.goTimer=setTimeout(this.go,this.timerDelay)},this.logCustomerId=e=>{clearTimeout(this.goTimer),this.asyncPush(["setCustomerId",e]),this.goTimer=setTimeout(this.go,this.timerDelay)},this.logCart=async()=>
2{await this.logCartHandler(),document.addEventListener("CartLoaded",this.logCartHandler)},this.logOrderConfirmation=(e,t)=>{let n=[];null!=t&&(n=Q.convertLineItems(t)),!n||n.length<=0||X(e)||(clearTimeout(this.goTimer),this.asyncPush(["purchase",{orderId:e,items:n}]),this.goTimer=setTimeout(this.go,this.timerDelay))},this.createEmarsysTracking=()=>{o.ucHelper.checkConsent(o.context.cookieConsentServiceIds.emarsysConsentId)&&(window[this.scarab]=window[this.scarab]||[],(e=>{if(document.getElementById(e))return;const t=document.createElement("script");t.id=e,t.src=`//cdn.scarabresearch.com/js/${this.emarsysTrackingCode}/scarab-v2.js`;const n=document.getElementsByTagName("script")[0];n.parentNode?.insertBefore(t,n)})("scarab-js-api"),window.dispatchEvent(new CustomEvent(V.EmarsysTrackingInitialized)))},this.asyncPush=e=>{if(!Q.isEmarsysTrackingEnabled())return;const t=window[this.scarab];if(t)t.push(e);else{const n=setInterval((()=>{t&&(t.push(e),clearInterval(n))}),50)}},this.logCartHandler=async()=>{const e=await o.cartLocalStorageService.getCartData();if(e){const t=Q.convertLineItems(e.lineItems);clearTimeout(this.goTimer),this.asyncPush(["cart",t]),this.goTimer=setTimeout(this.go,this.timerDelay)}}}}Q=Y,Y.convertLineItems=e=>{const t=[];return!e||e.length<=0||e.forEach((e=>{if(!(e&&e?.sku&&e?.itemOriginalPriceWithoutTax&&e.quantity))return;let n=e.itemOriginalPriceWithTax.amount;(!n||n<=0)&&(n=e.itemOriginalPriceWithoutTax.amount);const i={item:e.sku,price:n,quantity:e.quantity};t.push(i)}),Q),t},Y.isEmarsysTrackingEnabled=()=>o.ucHelper.checkConsent(o.context.cookieConsentServiceIds.emarsysConsentId)&&o.emarsysClient.isEmarsysTrackingEnabled,window.addEventListener(b.UiInitialized,(()=>{o.emarsysTracking=new Y,o.emarsysTracking.initialize()}));const Z="filter-menu",ee=`${Z}__dropdown`,te=`${ee}--expanded`,ne=`${ee}-head`,ie=`${Z}__filter`,oe=`${ie}--selected`,re=`${Z}__select-all-filter`;class se{constructor(e,t=null){this.allFiltersText="";const n=e.classList.contains(Z)?e:e.querySelector(`.${Z}`);if(!n)throw new Error("Could not find filter menu element.");this.element=n,this.onFilterChange=t,this.dropdownElement=this.element.querySelector(`.${ee}`),this.dropdownHeadElements=Array.from(this.dropdownElement.querySelectorAll(`.${ne}`)),this.filterElements=Array.from(this.element.querySelectorAll(`.${ie}`));const i=this.element.querySelector(`.${re}`);i&&(this.allFiltersText=i.innerText),this.init()}init(){for(const e of this.dropdownHeadElements)e.addEventListener("click",(()=>this.toggleDropdownExpansion()));for(const e of this.filterElements)e.addEventListener("click",(e=>this.handleFilterClick(e)))}toggleDropdownExpansion(){this.dropdownElement.classList.contains(te)?this.dropdownElement.classList.remove(te):this.dropdownElement.classList.add(te)}handleFilterClick(e){const t=e.target.closest(`.${ie}`);if(!t)return;if(t.classList.contains(re))return void this.selectAllFilters();const n=t.innerText.trim(),i=[];for(const e of this.filterElements){if(e.classList.contains(re)){e.classList.remove(oe);continue}const t=e.innerText.trim();t===n&&(e.classList.contains(oe)?e.classList.remove(oe):e.classList.add(oe)),e.classList.contains(oe)&&!i.includes(t)&&i.push(t)}i.length<1?this.selectAllFilters():(this.onFilterChange&&this.onFilterChange(i),this.setDropdownHeadTexts(i.join(", ")))}selectAllFilters(){for(const e of this.filterElements)e.classList.contains(re)?e.classList.add(oe):e.classList.remove(oe);this.onFilterChange&&this.onFilterChange(null),this.setDropdownHeadTexts(this.allFiltersText)}setDropdownHeadTexts(e){for(const t of this.dropdownHeadElements){const n=t.querySelector("span");n&&(n.innerText=e)}}}const ae="download-grid",le=`${ae}__filters`,ce=`${ae}__item`,de=`${ae}__item-alternative`,ue=`${ce}--hidden`,he="download-teaser",me=`${he}--audio`,pe=`${me}-initial`,ge=`${me}-playing`,fe=`${he}__audio-progress-bar`,we=`${he}__preview-action`,ve=`${he}__download-action`,ye=`${he}__play-action`,be=`${he}__pause-action`;class Ee{constructor(e){this.items=Array.from(e.querySelectorAll(`.${ce}, .${de}`)).map((e=>new Ce(e)));const t=e.querySelector(`.${le}`);t&&new se(t,(e=>this.filterItems(e)))}filterItems(e){for(const t of this.items)!e||e.includes(t.category)?t.show():t.hide();window.tts.autoHeightByRow.setHeadlineHeight()}}class Ce{constructor(e){this.element=e,this.category=e.dataset.category,new Se(e.querySelector(`.${he}`))}show(){this.element.classList.remove(ue)}hide(){this.element.classList.add(ue)}}class Se{constructor(e){this.downloadOnClick=!1,this.audioFileTypePatterns=["(mp3)","(wav)","(flac)"],this.audio=null,this.element=e,this.isDownloadable=!!e.querySelector(`.${ve}`)&&!!this.element.dataset.downloadUrl,this.downloadOnClick=this.isDownloadable&&void 0!==e.dataset.downloadOnClick,this.init()}init(){if(this.element.addEventListener("click",(e=>this.handleTeaserClick(e))),this.isDownloadable&&this.isAudioFile(this.element.dataset.downloadFileName)&&!t.browserDetect.safariIsCurrentBrowser){const e=new Audio(this.element.href);e.crossOrigin="anonymous",e.src=this.element.href,e.addEventListener("canplay",(()=>{e.duration&&(this.audio=new Le(e,this.element))}))}}isAudioFile(e){return!!s(e)&&new RegExp("^.+([.]"+this.audioFileTypePatterns.join("|")+"){1}$").test(e)}handleTeaserClick(e){const n=e.target;if(!n.closest(`.${we}`)){if(n.closest(`.${ve}`))return this.download(),void e.preventDefault();if(!n.closest(`.${ye}`)&&!n.closest(`.${be}`))return this.downloadOnClick?(this.download(),void e.preventDefault()):this.audio?(this.audio.togglePlayback(),void e.preventDefault()):void 0;if(t.browserDetect.safariIsCurrentBrowser&&!this.audio){const e=new Audio(this.element.href);this.audio=new Le(e,this.element),this.audio.togglePlayback()}e.preventDefault()}}download(){const e=document.createElement("a");e.href=this.element.dataset.downloadUrl,e.download=this.element.dataset.downloadFileName,e.click()}}class Le{constructor(e,t){Le.instances.push(this),this.audioElement=e,this.downloadTeaserElement=t,this.audioProgressBarElement=t.querySelector(`.${fe}`),this.init()}init(){const e=this.downloadTeaserElement.querySelector(`.${ye}`);if(!e)return;const t=this.downloadTeaserElement.querySelector(`.${be}`);t&&(e.addEventListener("click",(()=>{this.play()})),t.addEventListener("click",(()=>{this.pause()})),this.audioElement.addEventListener("timeupdate",(()=>{this.setProgress(this.audioElement.currentTime/this.audioElement.duration)})),this.audioElement.addEventListener("ended",(()=>{this.pause()})),this.downloadTeaserElement.classList.add(me,pe))}play(){for(const e of Le.instances)e.pause();this.downloadTeaserElement.classList.remove(pe),window.tts.autoHeightByRow.setHeadlineHeight(),this.downloadTeaserElement.classList.add(ge),this.audioElement.play()}pause(){this.downloadTeaserElement.classList.remove(ge),this.audioElement.pause()}togglePlayback(){this.downloadTeaserElement.classList.contains(ge)?this.pause():this.play()}setProgress(e){this.audioProgressBarElement&&(this.audioProgressBarElement.style.width=100*e+"%")}}function Te(e,t){return function(){return e.apply(t,arguments)}}Le.instances=[],window.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(`.${ae}`).forEach((e=>{new Ee(e)}))}));const{toString:ke}=Object.prototype,{getPrototypeOf:xe}=Object,{iterator:Ae,toStringTag:Oe}=Symbol,Re=(qe=Object.create(null),e=>{const t=ke.call(e);return qe[t]||(qe[t]=t.slice(8,-1).toLowerCase())});var qe;const Pe=e=>(e=e.toLowerCase(),t=>Re(t)===e),_e=e=>t=>typeof t===e,{isArray:He}=Array,Me=_e("undefined");function Ne(e){return null!==e&&!Me(e)&&null!==e.constructor&&!Me(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ie=Pe("ArrayBuffer"),Be=_e("string"),De=_e("function"),ze=_e("number"),Ue=e=>null!==e&&"object"==typeof e,Fe=e=>{if("object"!==Re(e))return!1;const t=xe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Oe in e||Ae in e)},je=Pe("Date"),$e=Pe("File"),We=Pe("Blob"),Ve=Pe("FileList"),Qe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ke=void 0!==Qe.FormData?Qe.FormData:void 0,Ge=Pe("URLSearchParams"),[Je,Xe,Ye,Ze]=["ReadableStream","Request","Response","Headers"].map(Pe);function et(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,o;if("object"!=typeof e&&(e=[e]),He(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{if(Ne(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let s;for(i=0;i<r;i++)s=o[i],t.call(null,e[s],s,e)}}function tt(e,t){if(Ne(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,o=n.length;for(;o-- >0;)if(i=n[o],t===i.toLowerCase())return i;return null}const nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,it=e=>!Me(e)&&e!==nt,ot=(rt="undefined"!=typeof Uint8Array&&xe(Uint8Array),e=>rt&&e instanceof rt);var rt;const st=Pe("HTMLFormElement"),at=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lt=Pe("RegExp"),ct=(e,t)=>
vendor: 4,132 bytes, line 2
2{const n=Object.getOwnPropertyDescriptors(e),i={};et(n,((n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)})),Object.defineProperties(e,i)},dt=Pe("AsyncFunction"),ut=(ht="function"==typeof setImmediate,mt=De(nt.postMessage),ht?setImmediate:mt?(pt=`axios@${Math.random()}`,gt=[],nt.addEventListener("message",(({source:e,data:t})=>{e===nt&&t===pt&>.length&>.shift()()}),!1),e=>{gt.push(e),nt.postMessage(pt,"*")}):e=>setTimeout(e));var ht,mt,pt,gt;const ft="undefined"!=typeof queueMicrotask?queueMicrotask.bind(nt):"undefined"!=typeof process&&process.nextTick||ut,wt={isArray:He,isArrayBuffer:Ie,isBuffer:Ne,isFormData:e=>{if(!e)return!1;if(Ke&&e instanceof Ke)return!0;const t=xe(e);if(!t||t===Object.prototype)return!1;if(!De(e.append))return!1;const n=Re(e);return"formdata"===n||"object"===n&&De(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ie(e.buffer),t},isString:Be,isNumber:ze,isBoolean:e=>!0===e||!1===e,isObject:Ue,isPlainObject:Fe,isEmptyObject:e=>{if(!Ue(e)||Ne(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Je,isRequest:Xe,isResponse:Ye,isHeaders:Ze,isUndefined:Me,isDate:je,isFile:$e,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:We,isRegExp:lt,isFunction:De,isStream:e=>Ue(e)&&De(e.pipe),isURLSearchParams:Ge,isTypedArray:ot,isFileList:Ve,forEach:et,merge:function e(){const{caseless:t,skipUndefined:n}=it(this)&&this||{},i={},o=(o,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=t&&tt(i,r)||r;Fe(i[s])&&Fe(o)?i[s]=e(i[s],o):Fe(o)?i[s]=e({},o):He(o)?i[s]=o.slice():n&&Me(o)||(i[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&et(arguments[e],o);return i},extend:(e,t,n,{allOwnKeys:i}={})=>(et(t,((t,i)=>{n&&De(t)?Object.defineProperty(e,i,{value:Te(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,r,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)s=o[r],i&&!i(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&xe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Re,kindOfTest:Pe,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(He(e))return e;let t=e.length;if(!ze(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ae]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:st,hasOwnProperty:at,hasOwnProp:at,reduceDescriptors:ct,freezeMethods:e=>{ct(e,((t,n)=>{if(De(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];De(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return He(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:tt,global:nt,isContextDefined:it,isSpecCompliantForm:function(e){return!!(e&&De(e.append)&&"FormData"===e[Oe]&&e[Ae])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Ue(e)){if(t.indexOf(e)>=0)return;if(Ne(e))return e;if(!("toJSON"in e)){t[i]=e;const o=He(e)?[]:{};return et(e,((e,t)=>
2{const r=n(e,i+1);!Me(r)&&(o[t]=r)})),t[i]=void 0,o}}return e};return n(e,0)},isAsyncFn:dt,isThenable:e=>e&&(Ue(e)||De(e))&&De(e.then)&&De(e.catch),setImmediate:ut,asap:ft,isIterable:e=>null!=e&&De(e[Ae])};class vt extends Error{static from(e,t,n,i,o,r){const s=new vt(e.message,t||e.code,n,i,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),r&&Object.assign(s,r),s}constructor(e,t,n,i,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:wt.toJSONObject(this.config),code:this.code,status:this.status}}}vt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",vt.ERR_BAD_OPTION="ERR_BAD_OPTION",vt.ECONNABORTED="ECONNABORTED",vt.ETIMEDOUT="ETIMEDOUT",vt.ERR_NETWORK="ERR_NETWORK",vt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",vt.ERR_DEPRECATED="ERR_DEPRECATED",vt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",vt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",vt.ERR_CANCELED="ERR_CANCELED",vt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",vt.ERR_INVALID_URL="ERR_INVALID_URL",vt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const yt=vt;function bt(e){return wt.isPlainObject(e)||wt.isArray(e)}function Et(e){return wt.endsWith(e,"[]")?e.slice(0,-2):e}function Ct(e,t,n){return e?e.concat(t).map((function(e,t){return e=Et(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const St=wt.toFlatObject(wt,{},null,(function(e){return/^is[A-Z]/.test(e)})),Lt=function(e,t,n){if(!wt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=wt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!wt.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,r=n.dots,s=n.indexes,a=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=a&&wt.isSpecCompliantForm(t);if(!wt.isFunction(o))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(wt.isDate(e))return e.toISOString();if(wt.isBoolean(e))return e.toString();if(!c&&wt.isBlob(e))throw new yt("Blob is not supported. Use a Buffer instead.");return wt.isArrayBuffer(e)||wt.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(wt.isReactNative(t)&&wt.isReactNativeBlob(e))return t.append(Ct(o,n,r),d(e)),!1;if(e&&!o&&"object"==typeof e)if(wt.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(wt.isArray(e)&&function(e){return wt.isArray(e)&&!e.some(bt)}(e)||(wt.isFileList(e)||wt.endsWith(n,"[]"))&&(a=wt.toArray(e)))return n=Et(n),a.forEach((function(e,i){!wt.isUndefined(e)&&null!==e&&t.append(!0===s?Ct([n],i,r):null===s?n:n+"[]",d(e))})),!1;return!!bt(e)||(t.append(Ct(o,n,r),d(e)),!1)}const h=[],m=Object.assign(St,{defaultVisitor:u,convertValue:d,isVisitable:bt});if(!wt.isObject(e))throw new TypeError("data must be an object");return function e(n,i,r=0){if(!wt.isUndefined(n)){if(r>l)throw new yt("Object is too deeply nested ("+r+" levels). Max depth: "+l,yt.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+i.join("."));h.push(n),wt.forEach(n,(function(n,s){!0===(!(wt.isUndefined(n)||null===n)&&o.call(t,n,wt.isString(s)?s.trim():s,i,m))&&e(n,i?i.concat(s):[s],r+1)})),h.pop()}}(e),t};function Tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function kt(e,t){this._pairs=[],e&&Lt(e,this,t)}const xt=kt.prototype;xt.append=function(e,t){this._pairs.push([e,t])},xt.toString=function(e){const t=e?function(t){return e.call(this,t,Tt)}:Tt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const At=kt;function Ot(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Rt(e,t,n){if(!t)return e;const i=n&&n.encode||Ot,o=wt.isFunction(n)?{serialize:n}
vendor: 2,491 bytes, line 2
2:n,r=o&&o.serialize;let s;if(s=r?r(t,o):wt.isURLSearchParams(t)?t.toString():new At(t,o).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const qt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Pt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_t={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:At,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ht="undefined"!=typeof window&&"undefined"!=typeof document,Mt="object"==typeof navigator&&navigator||void 0,Nt=Ht&&(!Mt||["ReactNative","NativeScript","NS"].indexOf(Mt.product)<0),It="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Bt=Ht&&window.location.href||"http://localhost",Dt={...e,..._t},zt=function(e){function t(e,n,i,o){let r=e[o++];if("__proto__"===r)return!0;const s=Number.isFinite(+r),a=o>=e.length;return r=!r&&wt.isArray(i)?i.length:r,a?(wt.hasOwnProp(i,r)?i[r]=wt.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n,!s):(i[r]&&wt.isObject(i[r])||(i[r]=[]),t(e,n,i[r],o)&&wt.isArray(i[r])&&(i[r]=function(e){const t={},n=Object.keys(e);let i;const o=n.length;let r;for(i=0;i<o;i++)r=n[i],t[r]=e[r];return t}(i[r])),!s)}if(wt.isFormData(e)&&wt.isFunction(e.entries)){const n={};return wt.forEachEntry(e,((e,i)=>{t(function(e){return wt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null},Ut=(e,t)=>null!=e&&wt.hasOwnProp(e,t)?e[t]:void 0,Ft={transitional:Pt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=wt.isObject(e);if(o&&wt.isHTMLForm(e)&&(e=new FormData(e)),wt.isFormData(e))return i?JSON.stringify(zt(e)):e;if(wt.isArrayBuffer(e)||wt.isBuffer(e)||wt.isStream(e)||wt.isFile(e)||wt.isBlob(e)||wt.isReadableStream(e))return e;if(wt.isArrayBufferView(e))return e.buffer;if(wt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;
vendor: 4,270 bytes, line 2
2if(o){const t=Ut(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Lt(e,new Dt.classes.URLSearchParams,{visitor:function(e,t,n,i){return Dt.isNode&&wt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((r=wt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Ut(this,"env"),i=n&&n.FormData;return Lt(r?{"files[]":e}:e,i&&new i,t)}}return o||i?(t.setContentType("application/json",!1),function(e){if(wt.isString(e))try{return(0,JSON.parse)(e),wt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Ut(this,"transitional")||Ft.transitional,n=t&&t.forcedJSONParsing,i=Ut(this,"responseType"),o="json"===i;if(wt.isResponse(e)||wt.isReadableStream(e))return e;if(e&&wt.isString(e)&&(n&&!i||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Ut(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw yt.from(e,yt.ERR_BAD_RESPONSE,this,null,Ut(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dt.classes.FormData,Blob:Dt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wt.forEach(["delete","get","head","post","put","patch"],(e=>{Ft.headers[e]={}}));const jt=Ft,$t=wt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wt=Symbol("internals"),Vt=/[^\x09\x20-\x7E\x80-\xFF]/g;function Qt(e){return e&&String(e).trim().toLowerCase()}function Kt(e){return!1===e||null==e?e:wt.isArray(e)?e.map(Kt):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(Vt,""))}function Gt(e,t,n,i,o){return wt.isFunction(i)?i.call(this,t,n):(o&&(t=n),wt.isString(t)?wt.isString(i)?-1!==t.indexOf(i):wt.isRegExp(i)?i.test(t):void 0:void 0)}class Jt{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(e,t,n){const o=Qt(t);if(!o)throw new Error("header name must be a non-empty string");const r=wt.findKey(i,o);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||t]=Kt(e))}const r=(e,t)=>wt.forEach(e,((e,n)=>o(e,n,t)));if(wt.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(wt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,i,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&$t[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(wt.isObject(e)&&wt.isIterable(e)){let n,i,o={};for(const t of e){if(!wt.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[i=t[0]]=(n=o[i])?wt.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}r(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Qt(e)){const n=wt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(wt.isFunction(t))return t.call(this,e,n);if(wt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qt(e)){const n=wt.findKey(this,e);return!(!n||void 0===this[n]||t&&!Gt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=Qt(e)){const o=wt.findKey(n,e);!o||t&&!Gt(0,n[o],o,t)||(delete n[o],i=!0)}}return wt.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const o=t[n];e&&!Gt(0,this[o],o,e,!0)||(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return wt.forEach(this,((i,o)=>{const r=wt.findKey(n,o);if(r)return t[r]=Kt(i),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n
vendor: 3,686 bytes, line 2
2)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Kt(i),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return wt.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&wt.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Wt]=this[Wt]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Qt(e);t[i]||(function(e,t){const n=wt.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,o){return this[i].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[i]=!0)}return wt.isArray(e)?e.forEach(i):i(e),this}}Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wt.reduceDescriptors(Jt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),wt.freezeMethods(Jt);const Xt=Jt;function Yt(e,t){const n=this||jt,i=t||n,o=Xt.from(i.headers);let r=i.data;return wt.forEach(e,(function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)})),o.normalize(),r}function Zt(e){return!(!e||!e.__CANCEL__)}const en=class extends yt{constructor(e,t,n){super(null==e?"canceled":e,yt.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function tn(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const nn=(e,t,n=3)=>{let i=0;const o=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o,r=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[s];o||(o=l),n[r]=a,i[r]=l;let d=s,u=0;for(;d!==r;)u+=n[d++],d%=e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),l-o<t)return;const h=c&&l-c;return h?Math.round(1e3*u/h):void 0}}(50,250);return function(e,t){let n,i,o=0,r=1e3/t;const s=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=r?s(e,t):(n=e,i||(i=setTimeout((()=>{i=null,s(n)}),r-a)))},()=>n&&s(n)]}((n=>{const r=n.loaded,s=n.lengthComputable?n.total:void 0,a=null!=s?Math.min(r,s):r,l=Math.max(0,a-i),c=o(l);i=Math.max(i,a),e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-a)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},on=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},rn=e=>(...t)=>wt.asap((()=>e(...t))),sn=Dt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Dt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Dt.origin),Dt.navigator&&/(msie|trident)/i.test(Dt.navigator.userAgent)):()=>!0,an=Dt.hasStandardBrowserEnv?{write(e,t,n,i,o,r,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];wt.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),wt.isString(i)&&a.push(`path=${i}`),wt.isString(o)&&a.push(`domain=${o}`),!0===r&&a.push("secure"),wt.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};
2function ln(e,t,n){let i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(i||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const cn=e=>e instanceof Xt?{...e}:e;function dn(e,t){t=t||{};const n=Object.create(null);function i(e,t,n,i){return wt.isPlainObject(e)&&wt.isPlainObject(t)?wt.merge.call({caseless:i},e,t):wt.isPlainObject(t)?wt.merge({},t):wt.isArray(t)?t.slice():t}function o(e,t,n,o){return wt.isUndefined(t)?wt.isUndefined(e)?void 0:i(void 0,e,0,o):i(e,t,0,o)}function r(e,t){if(!wt.isUndefined(t))return i(void 0,t)}function s(e,t){return wt.isUndefined(t)?wt.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,o,r){return wt.hasOwnProp(t,r)?i(n,o):wt.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(cn(e),cn(t),0,!0)};return wt.forEach(Object.keys({...e,...t}),(function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const r=wt.hasOwnProp(l,i)?l[i]:o,s=r(wt.hasOwnProp(e,i)?e[i]:void 0,wt.hasOwnProp(t,i)?t[i]:void 0,i);wt.isUndefined(s)&&r!==a||(n[i]=s)})),n}const un=e=>{const t=dn({},e),n=e=>wt.hasOwnProp(t,e)?t[e]:void 0,i=n("data");let o=n("withXSRFToken");const r=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");if(t.headers=a=Xt.from(a),t.url=Rt(ln(c,u,d),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),wt.isFormData(i))if(Dt.hasStandardBrowserEnv||Dt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(wt.isFunction(i.getHeaders)){const e=i.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)}))}if(Dt.hasStandardBrowserEnv&&(wt.isFunction(o)&&(o=o(t)),!0===o||null==o&&sn(t.url))){const e=r&&s&&an.read(s);e&&a.set(r,e)}return t},hn="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=u
vendor: 2,531 bytes, line 2
2n(e);let o=i.data;const r=Xt.from(i.headers).normalize();let s,a,l,c,d,{responseType:u,onUploadProgress:h,onDownloadProgress:m}=i;function p(){c&&c(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function f(){if(!g)return;const i=Xt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());tn((function(e){t(e),p()}),(function(e){n(e),p()}),{data:u&&"text"!==u&&"json"!==u?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=f:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(f)},g.onabort=function(){g&&(n(new yt("Request aborted",yt.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const i=t&&t.message?t.message:"Network Error",o=new yt(i,yt.ERR_NETWORK,e,g);o.event=t||null,n(o),g=null},g.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const o=i.transitional||Pt;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new yt(t,o.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,g)),g=null},void 0===o&&r.setContentType(null),"setRequestHeader"in g&&wt.forEach(r.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),wt.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),u&&"json"!==u&&(g.responseType=i.responseType),m&&([l,d]=nn(m,!0),g.addEventListener("progress",l)),h&&g.upload&&([a,c]=nn(h),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(s=t=>{g&&(n(!t||t.type?new en(null,e,g):t),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const w=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);w&&-1===Dt.protocols.indexOf(w)?n(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,e)):g.send(o||null)}))},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof yt?t:new en(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null,o(new yt(`timeout of ${t}ms exceeded`,yt.ETIMEDOUT))}),t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>
vendor: 4,664 bytes, line 2
2e.addEventListener("abort",o)));const{signal:a}=i;return a.unsubscribe=()=>wt.asap(s),a}},pn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,o=0;for(;o<n;)i=o+t,yield e.slice(o,i),o=i},gn=(e,t,n,i)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*pn(n,t)}(e,t);let r,s=0,a=e=>{r||(r=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await o.next();if(t)return a(),void e.close();let r=i.byteLength;if(n){let e=s+=r;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:fn}=wt,wn=(({Request:e,Response:t})=>({Request:e,Response:t}))(wt.global),{ReadableStream:vn,TextEncoder:yn}=wt.global,bn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},En=e=>{e=wt.merge.call({skipUndefined:!0},wn,e);const{fetch:t,Request:n,Response:i}=e,o=t?fn(t):"function"==typeof fetch,r=fn(n),s=fn(i);if(!o)return!1;const a=o&&fn(vn),l=o&&("function"==typeof yn?(c=new yn,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const d=r&&a&&bn((()=>{let e=!1;const t=new n(Dt.origin,{body:new vn,method:"POST",get duplex(){return e=!0,"half"}}),i=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!i})),u=s&&a&&bn((()=>wt.isReadableStream(new i("").body))),h={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!h[e]&&(h[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,n)})}));return async e=>{let{url:o,method:s,data:a,signal:c,cancelToken:m,timeout:p,onDownloadProgress:g,onUploadProgress:f,responseType:w,headers:v,withCredentials:y="same-origin",fetchOptions:b}=un(e),E=t||fetch;w=w?(w+"").toLowerCase():"text";let C=mn([c,m&&m.toAbortSignal()],p),S=null;const L=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let T;try{if(f&&d&&"get"!==s&&"head"!==s&&0!==(T=await(async(e,t)=>{const i=wt.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(wt.isBlob(e))return e.size;if(wt.isSpecCompliantForm(e)){const t=new n(Dt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return wt.isArrayBufferView(e)||wt.isArrayBuffer(e)?e.byteLength:(wt.isURLSearchParams(e)&&(e+=""),wt.isString(e)?(await l(e)).byteLength:void 0)})(t):i})(v,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(wt.isFormData(a)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=on(T,nn(rn(f)));a=gn(t.body,65536,e,n)}}wt.isString(y)||(y=y?"include":"omit");const t=r&&"credentials"in n.prototype;if(wt.isFormData(a)){const e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}const c={...b,signal:C,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:a,duplex:"half",credentials:t?y:void 0};S=r&&new n(o,c);let m=await(r?E(S,b):E(o,c));const p=u&&("stream"===w||"response"===w);if(u&&(g||p&&L)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=m[t]}));const t=wt.toFiniteNumber(m.headers.get("content-length")),[n,o]=g&&on(t,nn(rn(g),!0))||[];m=new i(gn(m.body,65536,n,(()=>{o&&o(),L&&L()})),e)}w=w||"text";let k=await h[wt.findKey(h,w)||"text"](m,e);return!p&&L&&L(),await new Promise(((t,n)=>{tn(t,n,{data:k,headers:Xt.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:S})}))}catch(t){if(L&&L(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw yt.from(t,t&&t.code,e,S,t&&t.response)}}},Cn=new Map,Sn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:o}=t,r=[i,o,n];let s,a,l=r.length,c=Cn;for(;l--;)s=r[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:En(t)),c=a;return a},Ln=(Sn(),{http:null,xhr:hn,fetch:{get:Sn}});wt.forEach(Ln,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Tn=e=>`- ${e}`,kn=e=>wt.isFunction(e)||null===e||!1===e,xn=function(e,t){e=wt.isArray(e)?e:[e];const{length:n}=e;let i,o;const r={};for(let s=0;s<n;s++){let n;if(i=e[s],o=i,!kn(i)&&(o=Ln[(n=String(i)).toLowerCase()],void 0===o))throw new yt(`Unknown adapter '${n}'`);if(o&&(wt.isFunction(o)||(o=o.get(t))))break;r[n||"#"+s]=o}if(!o){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=n?e.length>
vendor: 5,204 bytes, line 2
21?"since :\n"+e.map(Tn).join("\n"):" "+Tn(e[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function An(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new en(null,e)}function On(e){return An(e),e.headers=Xt.from(e.headers),e.data=Yt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xn(e.adapter||jt.adapter,e)(e).then((function(t){return An(e),t.data=Yt.call(e,e.transformResponse,t),t.headers=Xt.from(t.headers),t}),(function(t){return Zt(t)||(An(e),t&&t.response&&(t.response.data=Yt.call(e,e.transformResponse,t.response),t.response.headers=Xt.from(t.response.headers))),Promise.reject(t)}))}const Rn="1.15.2",qn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{qn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Pn={};qn.transitional=function(e,t,n){function i(e,t){return"[Axios v"+Rn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new yt(i(o," has been removed"+(t?" in "+t:"")),yt.ERR_DEPRECATED);return t&&!Pn[o]&&(Pn[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},qn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const _n={assertOptions:function(e,t,n){if("object"!=typeof e)throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const r=i[o],s=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(s){const t=e[r],n=void 0===t||s(t,r,e);if(!0!==n)throw new yt("option "+r+" must be "+n,yt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new yt("Unknown option "+r,yt.ERR_BAD_OPTION)}},validators:qn},Hn=_n.validators;class Mn{constructor(e){this.defaults=e||{},this.interceptors={request:new qt,response:new qt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),o=-1===i?"":n.slice(i+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=dn(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&_n.assertOptions(n,{silentJSONParsing:Hn.transitional(Hn.boolean),forcedJSONParsing:Hn.transitional(Hn.boolean),clarifyTimeoutError:Hn.transitional(Hn.boolean),legacyInterceptorReqResOrdering:Hn.transitional(Hn.boolean)},!1),null!=i&&(wt.isFunction(i)?t.paramsSerializer={serialize:i}:_n.assertOptions(i,{encode:Hn.function,serialize:Hn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),_n.assertOptions(t,{baseUrl:Hn.spelling("baseURL"),withXsrfToken:Hn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&wt.merge(o.common,o[t.method]);o&&wt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Xt.concat(r,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||Pt;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!a){const e=[On.bind(this),void 0];for(e.unshift(...s),e.push(...l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=s.length;let h=t;for(;u<d;){const e=s[u++],t=s[u++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=On.call(this,h)}catch(e){return Promise.reject(e)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return Rt(ln((e=dn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}wt.forEach(["delete","get","head","options"],(function(e){Mn.prototype[e]=function(t,n){return this.request(dn(n||{},{method:e,url:t,data:(n||{}).data}))}})),wt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(dn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Mn.prototype[e]=t(),Mn.prototype[e+"Form"]=t(!0)}));const Nn=Mn;class In{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,o){n.reason||(n.reason=new en(e,i,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}
vendor: 2,509 bytes, line 2
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new In((function(t){e=t})),cancel:e}}}const Bn=In,Dn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Dn).forEach((([e,t])=>{Dn[t]=e}));const zn=Dn,Un=function e(t){const n=new Nn(t),i=Te(Nn.prototype.request,n);return wt.extend(i,Nn.prototype,n,{allOwnKeys:!0}),wt.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(dn(t,n))},i}(jt);Un.Axios=Nn,Un.CanceledError=en,Un.CancelToken=Bn,Un.isCancel=Zt,Un.VERSION=Rn,Un.toFormData=Lt,Un.AxiosError=yt,Un.Cancel=Un.CanceledError,Un.all=function(e){return Promise.all(e)},Un.spread=function(e){return function(t){return e.apply(null,t)}},Un.isAxiosError=function(e){return wt.isObject(e)&&!0===e.isAxiosError},Un.mergeConfig=dn,Un.AxiosHeaders=Xt,Un.formToJSON=e=>zt(wt.isHTMLForm(e)?new FormData(e):e),Un.getAdapter=xn,Un.HttpStatusCode=zn,Un.default=Un;const Fn=Un;
2class jn extends Error{}function $n(e,t){if("string"!=typeof e)throw new jn("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,i=e.split(".")[n];if("string"!=typeof i)throw new jn(`Invalid token specified: missing part #${n+1}`);let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(i)}catch(e){throw new jn(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new jn(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}var Wn;function Vn(...e){const t=(n=window.tts.servicesettings.accessToken)?$n(n):null;var n;let i;t&&!Object.prototype.hasOwnProperty.call(t,"sub")||(i=t?.sub),function(e,t,n,...i){const o=[],r={source:e,culture:t,sub:n};i.forEach((e=>{l(e)&&e.response?o.push({url:e.response.config?.url,status:e.response.status,method:e.response.config?.method,data:e.response.data}):l(e)&&e.request?o.push({url:e.config?.url,method:e.config?.method,message:e.message}):o.push(e)})),r.innerError=o,g((e=>e.axiosService.executeRequestWithTokenValidation((()=>e.axiosService.getInstance().post("/api/log",r)),!0)))}(window.location.href,g((e=>e.servicesettings.cultureCode)),i,...e)}function Qn(e){return e?$n(e):null}function Kn(e){return!!e&&!Object.prototype.hasOwnProperty.call(e,"sub")}jn.prototype.name="InvalidTokenError",function(e){e.Auto="-1",e.Hidden="0",e.Full="1",e.Half="2",e.OneFourth="3",e.ThreeFourths="4",e.ContentLength="5"}(Wn||(Wn={}));const Gn=function(){const e=`${window.location.origin}${t.servicesettings.stsLoginUrl}?returnUrl=${window.location.pathname}${window.location.search}`;window.location.href=e},Jn=function(e){if(e){const t=$n(e);if(t?.exp)return new Date(1e3*t.exp)}return null};function Xn(e){try{return new URL(e,location.href).href}catch{return e}}t.htmlToPdfConverter=new class{constructor(){this.margin="6.35mm",this.fileNamePrefix="Festool_"}applyPageCssToHtml(e){if(!a(e))return;const t=document.styleSheets,n=e.cloneNode(!0);if(a(n)){for(let e=0;e<t.length;e++){const i=t[e];try{if(i.cssRules){let e="";for(let t=0;t<i.cssRules.length;t++)e+=i.cssRules[t].cssText+"\n";const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}catch(e){}}return n.outerHTML.replace(/(?=<!--)([\s\S]*?)-->/g,"")}}async downloadPdf(e){const t=new URL(document.URL);t.searchParams.set("pdf","1");const n=await Fn.get(t.toString()),i=(new DOMParser).parseFromString(n.data,"text/html");let o=(new XMLSerializer).serializeToString(i).replace(/loading="lazy"/g,"");o=function(e){const t="[^-a-z0-9:._]",n="(?:;|(?!\\d))",i={" ":"(?:\\s| ?|�*32"+n+"|�*20"+n+")","(":"(?:\\(|�*40"+n+"|�*28"+n+")",")":"(?:\\)|�*41"+n+"|�*29"+n+")",".":"(?:\\.|�*46"+n+"|�*2e"+n+")"},o={},r=i[" "]+"*",s="(?:[^>\"']*(?:\"[^\"]*\"|'[^']*'))*?[^>]*";function a(e){const t=e.toLowerCase(),r=e.toUpperCase();let s="",a=null,l=null,c=null;if(i[e])return i[e];for(let i=0;i<e.length;i++){if(a=t.charAt(i),o[a]){s+=o[a];continue}l=r.charAt(i),c=[a],c.push("�*"+a.charCodeAt(0)+n),c.push("�*"+a.charCodeAt(0).toString(16)+n),a!==l&&(c.push("�*"+l.charCodeAt(0)+n),c.push("�*"+l.charCodeAt(0).toString(16)+n));const e="(?:"+c.join("|")+")";s+=o[a]=e}return i[e]=s}function l(e,t,n,i){return t+Xn(n)+i}const c=new RegExp(a("/"),"g"),d=new RegExp(a("."),"g");function u(e,t,n,i){return t+Xn(n=n.replace(c,"/").replace(d,"."))+i}function h(n,i,o,r,s){"string"==typeof n&&(n=new RegExp(n,"gi")),i=t+i,o="string"==typeof o?o:"\\s*=\\s*",r="string"==typeof r?r:"",s="string"==typeof s?"?)("+s:")(";const a=new RegExp("("+i+o+'")([^"'+r+"]+"+s+")","gi"),c=new RegExp("("+i+o+"')([^'"+r+"]+"+s+")","gi"),d=new RegExp("("+i+o+")([^\"'][^\\s>"+r+"]*"+s+")","gi");e=e.replace(n,(function(e){return e.replace(a,l).replace(c,l).replace(d,l)}))}function m(n,i,o,r,s,a){let l=null;"string"==typeof n&&(n=new RegExp(n,"gi")),i=t+i,r="string"==typeof r?r:"gi";const c=new RegExp("("+i+'\\s*=\\s*")([^"]*)',"gi"),d=new RegExp("("+i+"\\s*=\\s*')([^']+)","gi"),h=new RegExp("("+o+')([^"]+)(")',r),m=new RegExp("("+o+")([^']+)(')",r);if("string"==typeof s){a="string"==typeof a?a:"";const e=new RegExp("("+o+")([^\"'][^"+s+"]*"+(a?"?)("+a+")":")()"),r);l=function(t,n,i){return n+i.replace(h,u).replace(m,u).replace(e,u)}}else l=function(e,t,n){return t+n.replace(h,u).replace(m,u)};e=e.replace(n,(function(e){return e.replace(c,l).replace(d,l)}))}return m("<meta"+s+t+'http-equiv\\s*=\\s*(?:"'+a("refresh")+'"'+s+">|'"+a("refresh")+"'"+s+">|"+a("refresh")+"(?:"+a(" ")+s+">|>
2))","content",a("url")+r+a("=")+r,"i"),h("<"+s+t+"href\\s*="+s+">","href"),h("<"+s+t+"src\\s*="+s+">","src"),h("<source"+s+t+"srcset\\s*="+s+">","srcset"),h("<object"+s+t+"data\\s*="+s+">","data"),h("<applet"+s+t+"codebase\\s*="+s+">","codebase"),h("<param"+s+t+'name\\s*=\\s*(?:"'+a("movie")+'"'+s+">|'"+a("movie")+"'"+s+">|"+a("movie")+"(?:"+a(" ")+s+">|>))","value"),h(/<style[^>]*>(?:[^"']*(?:"[^"]*"|'[^']*'))*?[^'"]*(?:<\/style|$)/gi,"url","\\s*\\(\\s*","","\\s*\\)"),m("<"+s+t+"style\\s*="+s+">","style",a("url")+r+a("(")+r,0,r+a(")"),a(")")),e}(o),this.getPdfFromService(o,e)}async getPdfFromService(e,n,i=!1){const o=this;await async function(e=t.servicesettings.accessToken){try{const n=Jn(e);if(!n||n.getTime()<Date.now()){const{data:e}=await t.refreshAccessTokenService.refreshAccessToken();t.servicesettings.accessToken=e}return Promise.resolve()}catch(e){return Promise.reject(new Error("Could not refresh access token!"))}}();try{!function(e,t,n=!0,i="application/octet-stream"){new Promise((o=>{let r;if(n){const t=window.atob(e),n=new ArrayBuffer(t.length);r=new Uint8Array(n);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e)}else r=e;const s=new Blob([r],{type:i}),a=window.URL.createObjectURL(s),l=document.createElement("a");l.style.display="none",l.href=a,l.setAttribute("download",t),void 0===l.download&&l.setAttribute("target","_blank"),document.body.appendChild(l),l.click(),document.body.removeChild(l),setTimeout((()=>{window.URL.revokeObjectURL(a)}),100),o()}))}((await Fn({method:"post",url:t.servicesettings.htmlToPdfConverterApiUrl,responseType:"arraybuffer",headers:{Accept:"application/pdf",Authorization:"Bearer "+t.servicesettings.accessToken},data:{html:e,requestOriginPageUrl:document.URL,usePrintView:i,pageToPdfScale:.75,pageMargins:{top:this.margin,right:this.margin,bottom:this.margin,left:this.margin}}})).data,`${o.fileNamePrefix}${n}`,!1,"application/pdf")}catch(e){t.debug.log(e)}}},o.tooltipHelper=new class{constructor(){this.activeTooltip=void 0}hideActiveTooltip(){this.activeTooltip&&$(this.activeTooltip).hide()}flashToolTipInternal(e){null!==e&&(this.hideActiveTooltip(),this.activeTooltip=e,$(e).css("opacity",1).show().delay(5e3).animate({opacity:0}
2,1e3,"linear",(function(){$(this).hide()})))}};class Yn{constructor(e){this.container=e,this.buttons=Array.from(this.container.querySelectorAll(".add-all-button")),this.tooltipLoginLinks=Array.from(this.container.querySelectorAll(".tooltip-link"))}init(){for(const e of this.buttons)e.addEventListener("click",(e=>this.addToWatchlist(e)));for(const e of this.tooltipLoginLinks)e.href=`${o.context.loginUrl}?returnUrl=${window.location.href}`}addToWatchlist(e){const t=Array.from(this.container.querySelectorAll('[data-type="product-suggestion"]'));for(const e of t){const t=e.dataset.productNumber;if(X(t)||"null"===t)continue;o.watchlist.addVariant(t);const n=e.dataset.productName;X(n)||"null"===n||o.googleAnalyticsService.changeWatchlistItem("add",n,t)}let n;var i;if(a(e.currentTarget)&&"object"==typeof(i=e.currentTarget.previousElementSibling)&&null!==i&&"scrollIntoView"in i&&"function"==typeof i.scrollIntoView)if(n=e.currentTarget.previousElementSibling,o.context.isUserAuthenticated){const e=n.querySelector(".product-suggestions__tooltip__container--success");o.tooltipHelper.flashToolTipInternal(e)}else{const e=n.querySelector(".product-suggestions__tooltip__container--login");o.tooltipHelper.flashToolTipInternal(e)}}}o.experienceEditor.isExperienceEditor()||window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".product-suggestions");null!=e&&new Yn(e).init()}));class Zn{constructor(){this.headerClass=".header__top",this.headerBannerClass=".header__banner",this.pageTitleCoverClass=".page-title-cover",this.headerContainer=document.querySelector(this.headerClass),this.headerBannerContainer=document.querySelector(this.headerBannerClass),this.pageTitleCoverContainer=document.querySelector(this.pageTitleCoverClass)}init(){this.pageTitleCoverContainer&&this.handlePageTitleCoverResize()}handlePageTitleCoverResize(){if(this.headerContainer&&this.pageTitleCoverContainer){let e=(window.visualViewport?.height||window.innerHeight)-this.headerContainer.offsetHeight;this.headerBannerContainer&&(e-=this.headerBannerContainer.offsetHeight),this.pageTitleCoverContainer.style.height=`${e}px`}}}window.addEventListener("DOMContentLoaded",(()=>{window.tts.pageTitleCover=new Zn,o.pageTitleCover.init()}));class ei{constructor(){this.pageTitleCoverTitleContainer=null,this.pageTitleButtonContainer=null,this.breadcrumb=null,this.clickScrollPosition=null,this.maxScrollPosition=null,this.scrollPosition=null,this.pageTitleCoverClass=".page-title-cover",this.pageTitleSectionClass=".title-cover-section",this.pageTitleCoverTitleClass=".page-title-container",this.pageTitleButtonClass=".floating-button-container",this.breadcrumbClass=".breadcrumb-next",this.pageTitleCoverTitleAnimationClass="page-title-container--animation",this.floatingButtonAnimationClass="floating-button-container--animation",this.headerHeight=0,this.pageTitleCoverContainer=document.querySelector(this.pageTitleCoverClass),this.pageTitleSectionContainer=document.querySelector(this.pageTitleSectionClass),this.breadcrumb=document.querySelector(this.breadcrumbClass),this.pageTitleCoverContainer&&(this.pageTitleCoverTitleContainer=this.pageTitleCoverContainer.querySelector(this.pageTitleCoverTitleClass)??null,this.pageTitleButtonContainer=this.pageTitleCoverContainer.querySelector(this.pageTitleButtonClass)??null)}init(){if(!this.pageTitleCoverContainer)return;this.updateScrollPosition(),window.onscroll=()=>{if(this.updateScrollPosition(),r(this.maxScrollPosition)&&r(this.scrollPosition)){if(this.scrollPosition>=this.maxScrollPosition)return;this.handlePageTitleCoverScroll(this.scrollPosition),this.handlePageTitleButtonScroll(this.scrollPosition),this.handlePageTitleContainerScroll(this.scrollPosition)}},this.pageTitleButtonContainer?.addEventListener("click",(()=>{this.smoothScroll(this.clickScrollPosition,this.scrollPosition,800)}));const e=document.querySelector(".header-placeholder");if(e){const t=e.getBoundingClientRect();this.headerHeight=t.height}this.pageTitleCoverTitleContainer?.classList.add(this.pageTitleCoverTitleAnimationClass),this.pageTitleButtonContainer?.classList.add(this.floatingButtonAnimationClass),this.pageTitleCoverTitleContainer?.classList.add("page-title-container--visible"),this.pageTitleButtonContainer?.classList.add("floating-button-container--visible"),this.pageTitleCoverTitleContainer?.addEventListener("transitionend",(()=>{this.pageTitleCoverTitleContainer?.classList.remove(this.pageTitleCoverTitleAnimationClass)})),this.pageTitleButtonContainer?.addEventListener("transitionend",(()=>{this.pageTitleButtonContainer?.classList.remove(this.floatingButtonAnimationClass)}))}updateScrollPosition(){this.scrollPosition=window.scrollY,this.pageTitleSectionContainer&&r(this.scrollPosition)?(this.clickScrollPosition=window.innerHeight/2-this.scrollPosition,this.maxScrollPosition=this.clickScrollPosition+this.pageTitleSectionContainer.offsetHeight/2):this.breadcrumb&&(this.clickScrollPosition=this.breadcrumb.getBoundingClientRect().top)}handlePageTitleContainerScroll(e){if(this.pageTitleCoverContainer&&this.pageTitleSectionContainer){const t=e/2;a(this.pageTitleSectionContainer.parentElement)&&(this.pageTitleSectionContainer.parentElement.style.marginTop=`-${t}px`);const n=t-this.headerHeight;this.pageTitleCoverContainer.style.transform=n>0?`translateY(${n}px)`:"translateY(0px)"}}handlePageTitleCoverScroll(e){if(this.pageTitleCoverTitleContainer){let t=e/300;t=Math.min(Math.max(t,.1),1),this.pageTitleCoverTitleContainer.style.opacity=(1-t).toString(),this.pageTitleCoverTitleContainer.style.transform=`translateY(-${e/2}px)`}}
2handlePageTitleButtonScroll(e){if(this.pageTitleButtonContainer){let t=e/300;t=Math.min(t,1),this.pageTitleButtonContainer.style.opacity=(1-t).toString(),this.pageTitleButtonContainer.style.transform=`translateX(-50%) translateY(-${e/2}px)`}}smoothScroll(e,t,n){if(!r(e)||!r(t))return;const i=e+t-t;let o=null;requestAnimationFrame((function e(r){null===o&&(o=r);const s=r-o,a=Math.min(s/n,1),l=a<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1;window.scrollTo(0,t+i*l),s<n&&requestAnimationFrame(e)}))}}window.addEventListener("DOMContentLoaded",(()=>{window.tts.pageTitleCover=new ei,o.context.isExperienceEditor||o.pageTitleCover.init()})),window.addEventListener("resize",(()=>{o.pageTitleCover&&o.pageTitleCover.init()}));class ti{constructor(e,n){t.servicesettings.accessToken=e,this.sessionId=n}setToken(e){t.servicesettings.accessToken=e}setAnonymousSessionId(e){this.sessionId=e}getInstance(){const e=Fn.create(this.getDefaultHeader());return e.interceptors.request.use((e=>{const t=process.env.VUE_APP_FCP_ECOMMERCE;return s(t)&&e.url&&e.url.includes(t)&&(e.headers["anonymous-session-id"]=this.sessionId),e}),(e=>Promise.reject(e))),e}executeRequestWithTokenValidation(e,n=!1){return async function(e,n=!1){if(!t.servicesettings.stsLoginUrl||!t.servicesettings.refreshAccessTokenUrl)return t.debug.log("redirectLoginUrl or refreshAccessTokenUrl is undefined"),e();const i=t.servicesettings.accessToken,o=Qn(i);if(Fn.defaults.headers.common.Authorization=`Bearer ${i}`,!Kn(o)||n)try{const o=Jn(i);if(o&&o.getTime()<Date.now()){const{data:i}=await t.refreshAccessTokenService.refreshAccessToken();return Kn(Qn(i))&&!n?void Gn():(t.servicesettings.accessToken=i,Fn.defaults.headers.common.Authorization=`Bearer ${i}`,t.axiosService&&t.axiosService.setToken(i),e())}return e()}catch(t){return e()}else Gn()}(e,n)}static setDefaultHeaders(){X(t?.servicesettings?.accessToken)?Vn("window.tts.servicesettings object is undefined. AccessToken is not set!"):(Fn.defaults.headers.common.Authorization=`Bearer ${t.servicesettings.accessToken}`,Fn.defaults.headers.common["Content-Type"]="application/json")}getDefaultHeader(){return{headers:{common:{"Content-Type":"application/json",Authorization:`Bearer ${t.servicesettings.accessToken}`}}}}}var ni,ii,oi,ri;!function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(ni||(ni={})),function(e){e.CustomerPortal="CustomerPortal",e.DealerPortal="DealerPortal",e.GroupPortal="GroupPortal",e.Unknown="Unknown"}(ii||(ii={})),function(e){e[e.Default=0]="Default",e[e.Sortable=1]="Sortable",e[e.SortableAndActive=2]="SortableAndActive"}(oi||(oi={})),function(e){e[e.VP200=768]="VP200",e[e.VP300=992]="VP300",e[e.VP400=1280]="VP400",e[e.VP500=1920]="VP500"}(ri||(ri={}));class si{constructor(){this.cooldownMs=6e4,this.promiseTimeoutMs=3e4,this.refreshPromise=null,this.lastRefreshTime=null,this.lastResponse=null,this.refreshPromiseStartTime=null}refreshAccessToken(){if(this.refreshPromise&&this.refreshPromiseStartTime){if(Date.now()-this.refreshPromiseStartTime<this.promiseTimeoutMs)return this.refreshPromise;this.refreshPromise=null,this.refreshPromiseStartTime=null}if(this.lastRefreshTime&&Date.now()-this.lastRefreshTime<this.cooldownMs)return this.lastResponse?Promise.resolve(this.lastResponse):(Vn("RefreshAccessTokenService: no ongoing or cached response present after last refresh."),Promise.reject(new Error));const e=this.getRefreshAccessTokenUrl();return e?(this.refreshPromiseStartTime=Date.now(),this.refreshPromise=t.axiosService.getInstance().get(e).then((e=>(this.lastRefreshTime=Date.now(),this.lastResponse=e,e))).finally((()=>{this.refreshPromise=null,this.refreshPromiseStartTime=null})),this.refreshPromise):Promise.reject(new Error)}getRefreshAccessTokenUrl(){switch(t.context.portalContext){case ii.CustomerPortal:return"/api/sitecore/fcpscript/RefreshAccessToken";case ii.DealerPortal:return"/api/sitecore/fdpscript/RefreshAccessToken";default:return void Vn("RefreshAccessTokenService: unknown PortalContext was provided "+t.context.portalContext)}}}document.addEventListener("DOMContentLoaded",(()=>{ti.setDefaultHeaders(),o&&(o.axiosService||(o.axiosService=new ti(o.servicesettings.accessToken)),o.refreshAccessTokenService||(o.refreshAccessTokenService=new si))}),!1)})()})();
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.