window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
window.isSafari=!1;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){window.isSafari=!0}
window.isSafariVersion='';if(window.isSafari){var version=(navigator.appVersion).match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/);if(version!==null){window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}}
function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&now<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)},threshhold)}else{last=now;fn.apply(context,args)}}}
function t1093__init(recID){var rec=document.getElementById('rec'+recID);if(!rec)return;var popup=rec.querySelector('.t-popup');if(!popup)return;t1093__processGlobalObj();t1093__updateGlobalObj('popupList',popup,'array');t1093__processPopupClassList(popup);var popupContainer=popup.querySelector('.t-popup__container');if(!popupContainer)return;var blockList=popup.getAttribute('data-popup-rec-ids');blockList=blockList.split(',');blockList.forEach(function(blockID){var blockRec=document.getElementById('rec'+blockID);if(!blockRec)return;var recordType=blockRec.getAttribute('data-record-type');if(recordType!=='396'&&recordType!=='121')return;popupContainer.appendChild(blockRec);t1093__setPointerEventsToZeroBlock(blockRec);t_onFuncLoad('t396_init',function(){t396_init(blockID)})});var currentEvent=t1093__getGlobalObjValue('isMobile')?'orientationchange':'resize';window.removeEventListener(currentEvent,t1093__resizeAllPopups);window.addEventListener(currentEvent,t1093__resizeAllPopups);t1093__processScrollablePopup(popup)}
function t1093__processGlobalObj(){if(typeof window.t1093_popupList==='undefined')window.t1093_popupList=[];if(typeof window.t1093_resizeTimer==='undefined')window.t1093_resizeTimer=0;if(typeof window.t1093_hoverTimer==='undefined')window.t1093_hoverTimer=0;if(typeof window.t1093_activeHoverHook==='undefined')window.t1093_activeHoverHook='';if(typeof window.t1093_isMobile==='undefined'){window.t1093_isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||('ontouchend' in document&&navigator.userAgent.indexOf('AppleWebKit')!==-1)}
if(typeof window.t1093_windowWidth==='undefined')window.t1093_windowWidth=t1093__getWindowWidth();if(typeof window.t1093_isMobRes==='undefined')window.t1093_isMobRes=window.t1093_windowWidth<980;if(typeof window.t1093_isSafari==='undefined'){window.t1093_isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}}
function t1093__processScrollablePopup(popup){if(!popup)return;var popupContainer=popup.querySelector('.t-popup__container');if(!popupContainer)return;popup.style.display='block';var popupHeight=popupContainer.offsetHeight;popup.style.display='';var windowHeight=window.t1093_isMobile?document.documentElement.clientHeight:window.innerHeight;if(popupHeight>windowHeight){popupContainer.classList.add('t-popup__container-static')}}
function t1093__updateGlobalObj(key,value,type){switch(type){case 'array':window['t1093_'+key].push(value);break;case 'boolean':window['t1093_'+key]=value;break;case 'string':window['t1093_'+key]=value||'';break;case 'timeout':if(window['t1093_'+key])clearTimeout(window['t1093_'+key]);window['t1093_'+key]=value;break}}
function t1093__getGlobalObjValue(key){return window['t1093_'+key]}
function t1093__getWindowWidth(){return t1093__getGlobalObjValue('isMobile')?document.documentElement.clientWidth:window.innerWidth}
function t1093__resizeAllPopups(){var newTimeout=setTimeout(function(){var currentWindowWidth=t1093__getWindowWidth();var isMobile=currentWindowWidth<980;var isMobileResolution=t1093__getGlobalObjValue('isMobRes');if(isMobile===isMobileResolution)return;t1093__updateGlobalObj('isMobRes',isMobile,'boolean');t1093__getGlobalObjValue('popupList').forEach(function(popup){t1093__processPopupClassList(popup)});t1093__updateGlobalObj('resizeTimer',0,'timeout')},500);t1093__updateGlobalObj('resizeTimer',newTimeout,'timeout')}
function t1093__processPopupClassList(popup){t1093__clearPopupClassList(popup);var popupClassList=[];var safariDesktopClassName='t-popup-safari';var isMobileResolution=t1093__getGlobalObjValue('isMobRes');var isSafari=t1093__getGlobalObjValue('isSafari');if(!isMobileResolution&&isSafari&&!popup.classList.contains(safariDesktopClassName)){popupClassList.push(safariDesktopClassName)}
var animAttr='data-anim';var mobileAttr=animAttr+'-mobile';var attrValue=popup.getAttribute(animAttr);if(isMobileResolution){var mobileAttrValue=popup.getAttribute(mobileAttr);if(mobileAttrValue)attrValue=mobileAttrValue}
if((isMobileResolution&&attrValue!=='empty')||(!isMobileResolution&&attrValue)){popupClassList.push('t-popup-anim-'+attrValue);popupClassList.push('t-popup-transition')}
popupClassList.forEach(function(className){popup.classList.add(className)})}
function t1093__clearPopupClassList(popup){popup.classList.remove('t-popup-transition');for(var key=0;key<popup.classList.length;key++){var className=popup.classList[key];if(className.indexOf('t-popup-anim-')!==-1)popup.classList.remove(className)}}
function t1093__setPointerEventsToZeroBlock(rec){var artBoard=rec.querySelector('.t396__artboard');if(!artBoard)return;var abFilter=artBoard.querySelector('.t396__filter');var artBoardStyle=getComputedStyle(artBoard);var abFilterBG=abFilter?getComputedStyle(abFilter).backgroundImage:'';var hasBG=abFilterBG!=='none'||artBoardStyle.backgroundColor!=='rgba(0, 0, 0, 0)'||artBoardStyle.backgroundImage!=='none';if(hasBG)artBoard.classList.add('t396__artboard_pointer-events-auto')}
function t1093__initPopup(recID){var rec=document.getElementById('rec'+recID);if(!rec)return;rec.setAttribute('data-animationappear','off');rec.style.opacity='1';var popup=rec.querySelector('.t-popup');var hook=popup.getAttribute('data-tooltip-hook');if(!popup||!hook)return;t1093__generatePopupObj();t1093__updatePopupObjValue('hookList',hook);var isMobile=t1093__getGlobalObjValue('isMobile');var isHoverTrigger=t1093__getBooleanPopupAttribute(popup,'hover-trigger')&&!isMobile;if(isHoverTrigger){t1093__updatePopupObjValue('hoverHookList',hook);popup.classList.add('t-popup_hover-trigger')}
t1093__setListenersForPopup(popup,isHoverTrigger);t1093__setListenersForDocument(isHoverTrigger);t_onFuncLoad('t_popup__addClassOnTriggerButton',function(){t_popup__addClassOnTriggerButton(document,hook)});t_onFuncLoad('t_popup__addAttributesForAccessibility',function(){t_popup__addAttributesForAccessibility(hook)});if(!isHoverTrigger)t1093__setAnalyticsListeners(popup);if(t1093__getBooleanPopupAttribute(popup,'open-on-page-load')){t1093__onReady(function(){setTimeout(function(){t1093__showCurrentPopup(popup)},1000)})}}
function t1093__onReady(callback){document.readyState!=='loading'?callback():document.addEventListener('DOMContentLoaded',callback)}
function t1093__generatePopupObj(){if(window.tPopupObj)return;window.tPopupObj={hookList:[],hoverHookList:[],openPopUpList:[],}}
function t1093__updatePopupObjValue(key,value){if(!window.tPopupObj||!window.tPopupObj[key])return;if(window.tPopupObj[key].indexOf(value)===-1)window.tPopupObj[key].push(value)}
function t1093__getPopupObjValue(key){return window.tPopupObj[key]}
function t1093__showOnHover(e){var popup=e.target.closest('.t-popup');if(!popup)e.preventDefault();if(popup&&!popup.classList.contains('t-popup_show'))return;t1093__updateGlobalObj('hoverTimer',0,'timeout');var targetHook=t1093__getHookOnHover(e);var activeHoverHook=t1093__getGlobalObjValue('activeHoverHook');if(targetHook&&targetHook===activeHoverHook)return;if(!popup)t1093__closePopup(!0,-1,!1);t1093__updateGlobalObj('activeHoverHook',targetHook,'string');t1093__processCurrentPopupOnShow(targetHook)}
function t1093__hideOnHover(e){var targetHook=t1093__getHookOnHover(e);var newTimeout=setTimeout(function(){t1093__updateGlobalObj('activeHoverHook','','string');var openPopupList=t1093__getPopupObjValue('openPopUpList');var openPopupIndex=openPopupList.indexOf(targetHook);if(openPopupIndex!==-1){t1093__closePopup(!1,openPopupIndex,!1)}
t1093__updateGlobalObj('hoverTimer',0,'timeout')},300);t1093__updateGlobalObj('hoverTimer',newTimeout,'timeout')}
function t1093__getHookOnHover(e){var target=e.target;var targetHref=target.getAttribute('href');var popupTarget=target.closest('.t-popup');var hookList=t1093__getPopupObjValue('hoverHookList');if(hookList.length&&hookList.indexOf(targetHref)!==-1)return targetHref;return(popupTarget&&popupTarget.getAttribute('data-tooltip-hook'))||targetHref||''}
function t1093__showOnClick(e){var hookList=t1093__getPopupObjValue('hookList');if(!hookList.length)return;var target=e.target;var hookListSelector=t1093__createSelectorFromHookList(!1);var targetLink=target.closest(hookListSelector);if(!targetLink)return;e.preventDefault();var targetHook=targetLink.getAttribute('href')||'';var openPopupList=t1093__getPopupObjValue('openPopUpList');var openPopupIndex=openPopupList.indexOf(targetHook);if(openPopupIndex!==-1&&e.isTrusted){t1093__closePopup(!1,openPopupIndex,!1);return}
t1093__processCurrentPopupOnShow(targetHook)}
function t1093__processCurrentPopupOnShow(targetHook){var currentPopup=document.querySelector('[data-tooltip-hook="'+targetHook+'"]');var currentPopupRec=currentPopup?currentPopup.closest('.r'):null;t1093__showCurrentPopup(currentPopup);if(currentPopupRec){t_onFuncLoad('t_popup__resizePopup',function(){t_popup__resizePopup(currentPopupRec.id.replace('rec',''))})}
var isScrollablePopup=currentPopup.querySelector('.t-popup__container-static');var isPopupHasDisabledBG=t1093__getBooleanPopupAttribute(currentPopup,'disabled-bg');var isPopupHasLockScroll=t1093__getBooleanPopupAttribute(currentPopup,'disable-lock-scroll');if(isScrollablePopup){if(isPopupHasLockScroll)t1093__updateBodyOnAction('add');if(isPopupHasDisabledBG)currentPopup.classList.remove('t-popup-disabled-bg')}else if(isPopupHasDisabledBG)currentPopup.classList.add('t-popup-disabled-bg')}
function t1093__getBooleanPopupAttribute(popup,attrName){return popup.getAttribute('data-popup-'+attrName)==='y'}
function t1093__createSelectorFromHookList(isHoverTrigger){var hookListName=isHoverTrigger?'hoverHookList':'hookList';var hookList=t1093__getPopupObjValue(hookListName);var selectorList=hookList.map(function(hook){return 'a[href="'+hook+'"]'});return selectorList.join(', ')}
function t1093__setListenersForPopup(popup,isHoverTrigger){if(!popup)return;if(isHoverTrigger){t1093__processEventsOnHover(popup)}else{popup.removeEventListener('click',t1093__closePopupOnClick);popup.addEventListener('click',t1093__closePopupOnClick)}
popup.removeEventListener('click',t1093__closePopupOnCloseButton);popup.addEventListener('click',t1093__closePopupOnCloseButton)}
function t1093__setListenersForDocument(isHoverTrigger){if(isHoverTrigger){var selectorList=t1093__createSelectorFromHookList(isHoverTrigger);var hookLinks=Array.prototype.slice.call(document.querySelectorAll(selectorList));hookLinks.forEach(function(link){t1093__processEventsOnHover(link)})}else{document.removeEventListener('click',t1093__showOnClick);document.addEventListener('click',t1093__showOnClick)}
document.removeEventListener('click',t1093__processCloseLink);document.removeEventListener('keydown',t1093__closeOnESC);document.addEventListener('keydown',t1093__closeOnESC);document.addEventListener('click',t1093__processCloseLink)}
function t1093__setAnalyticsListeners(popup){var popupAnalytics=popup.getAttribute('data-track-popup');if(!popupAnalytics)return;var currentHook=popup.getAttribute('data-tooltip-hook');document.addEventListener('click',function(e){var hookLink=e.target.closest('a[href="'+currentHook+'"]');if(!hookLink)return;if(window.Tilda)Tilda.sendEventToStatistics(popupAnalytics,currentHook)})}
function t1093__processEventsOnHover(elem){elem.removeEventListener('mouseover',t1093__showOnHover);elem.removeEventListener('mouseout',t1093__hideOnHover);elem.addEventListener('mouseover',t1093__showOnHover);elem.addEventListener('mouseout',t1093__hideOnHover)}
function t1093__closeOnESC(e){if(e.keyCode===27){e.preventDefault();t1093__closePopup(!1,-1,!0)}}
function t1093__processCloseLink(e){var isCloseLink=e.target.closest('a[href="#closepopup"]');var isAllCloseLink=e.target.closest('a[href="#closeallpopup"]');if(!isCloseLink&&!isAllCloseLink)return;e.preventDefault();t1093__closePopup(Boolean(isAllCloseLink),-1,!0)}
function t1093__closeOnLink(e){var openPopupList=t1093__getPopupObjValue('openPopUpList');if(!openPopupList.length)return;var popupLink=e.target.closest('a[href*="#"]');if(!popupLink)return;var exceptionSelectors=['.t978__tm-link','.t966__tm-link','.t794__tm-link','a[href="#closepopup"]','a[href="#closeallpopup"]',];var isLinkHasSubmenu=exceptionSelectors.some(function(selector){return popupLink.closest(selector)});if(!isLinkHasSubmenu)t1093__closePopup(!0,-1,!0)}
function t1093__closePopupOnClick(e){var isPopupBackground=!e.target.closest('.t-popup__container');if(!isPopupBackground)return;var currentPopup=e.target.closest('.t-popup');var currentPopupHook=currentPopup?currentPopup.getAttribute('data-tooltip-hook'):'';var openPopupList=t1093__getPopupObjValue('openPopUpList');var currentPopupIndex=openPopupList.indexOf(currentPopupHook);t1093__closePopup(!1,currentPopupIndex,!0)}
function t1093__closePopupOnCloseButton(e){var isCloseButton=e.target.closest('.t-popup__close');if(!isCloseButton)return;t1093__closePopup(!1,-1,!0)}
function t1093__showCurrentPopup(popup){if(!popup)return;if(popup.closeTimerID)clearTimeout(popup.closeTimerID);var rec=popup.closest('.r');var windowWidth=window.innerWidth;var screenMin=rec.getAttribute('data-screen-min');var screenMax=rec.getAttribute('data-screen-max');if(screenMin&&windowWidth<parseInt(screenMin,10))return;if(screenMax&&windowWidth>parseInt(screenMax,10))return;var popupHook=popup.getAttribute('data-tooltip-hook');t1093__updatePopupObjValue('openPopUpList',popupHook);document.removeEventListener('click',t1093__closeOnLink);document.addEventListener('click',t1093__closeOnLink);popup.style.display='block';var popupBG=popup.nextElementSibling;if(popupBG)popupBG.classList.add('t-popup__bg-active');var allRecords=document.getElementById('allrecords');var isLazy=allRecords?allRecords.getAttribute('data-tilda-lazy')==='yes':!1;if(window.lazy==='y'||isLazy){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}
var artBoard=popup.querySelector('.t396__artboard');if(artBoard&&!popup.resizeProcessed){var blockID=artBoard.getAttribute('data-artboard-recid')||'';t_onFuncLoad('t396_doResize',function(){t396_doResize(blockID);popup.resizeProcessed=!0})}
var galleryElems=Array.prototype.slice.call(popup.querySelectorAll('[data-elem-type="gallery"]'));if(galleryElems.length){t_onFuncLoad('t_slds_updateSlider',function(){galleryElems.forEach(function(element){t_slds_updateSlider([element])})})}
var formElems=Array.prototype.slice.call(popup.querySelectorAll('[data-elem-type="form"]'));formElems.forEach(function(elem){var form=elem.querySelector('.t-form');if(!form)return;form.removeAttribute('data-success-popup')});setTimeout(function(){popup.focus();var popupContainer=popup.querySelector('.t-popup__container');if(popupContainer)popupContainer.classList.add('t-popup__container-animated');popup.classList.add('t-popup_show');t_onFuncLoad('t_popup__trapFocus',function(){t_popup__trapFocus(popup)})},50);var popupTimer=t1093__getTimer(popup,'open');var needFadeOut=t1093__getResponsiveAttr(popup,'anim-close')==='fadein';if(needFadeOut){popup.openTimerID=setTimeout(function(){popup.classList.add('t-popup-fadeout');popup.openTimerID=0},popupTimer)}
if((popupTimer&&window.lazy==='y')||isLazy){setTimeout(function(){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})},popupTimer)}
if(!t1093__getBooleanPopupAttribute(popup,'disable-lock-scroll')){t1093__updateBodyOnAction('add')}}
function t1093__closePopup(closeAll,index,removeAnimOnCloseFromHook){var openPopupList=t1093__getPopupObjValue('openPopUpList');if(!openPopupList.length)return;var popupList=t1093__processClosedPopupList(closeAll,index);if(!popupList.length)return;openPopupList=t1093__getPopupObjValue('openPopUpList');var isLastPopup=openPopupList.length===0;popupList.forEach(function(popup){if(isLastPopup)t1093__updateBodyOnAction('remove');popup.classList.remove('t-popup_show');if(popup.openTimerID)clearTimeout(popup.openTimerID);t1093__removeAnimationOnClose(popup);if(removeAnimOnCloseFromHook)t1093__removeAnimFromHookLinkOnClose(popup);t_onFuncLoad('t_popup__addFocusOnTriggerButton',function(){t_popup__addFocusOnTriggerButton()});var popupCloseTimer=t1093__getTimer(popup,'close');popup.closeTimerID=setTimeout(function(){if(!popup.classList.contains('t-popup_show'))popup.style.display='none';var popupBG=popup.nextElementSibling;if(popupBG)popupBG.classList.remove('t-popup__bg-active');popup.classList.remove('t-popup-fadeout');t1093__pauseAllVideo(popup);popup.closeTimerID=0},popupCloseTimer)})}
function t1093__updateBodyOnAction(action){var triggeredEvent=action==='add'?'popupShowed':'popupHidden';var body=document.body;if(typeof t_triggerEvent==='function')t_triggerEvent(body,triggeredEvent);body.classList[action]('t-body_popupshowed')}
function t1093__pauseAllVideo(popup){if(!popup)return;var videoElems=Array.prototype.slice.call(popup.querySelectorAll('[data-elem-type="video"], [data-elem-type="gallery"]'));videoElems.forEach(function(element){var videoElem=element.querySelector('video, iframe');if(!videoElem)return;if(videoElem.tagName==='VIDEO')videoElem.pause();if(videoElem.tagName!=='IFRAME'||!videoElem.src)return;if(videoElem.src.indexOf('&enablejsapi=1')!==-1){videoElem.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*')}
if(videoElem.src.indexOf('vimeo')!==-1&&videoElem.src.indexOf('&api=1')!==-1){videoElem.contentWindow.postMessage('{"method":"pause","value":"true"}','*')}})}
function t1093__getTimer(popup,action){var isMobileResolution=t1093__getGlobalObjValue('isMobRes');if(typeof isMobileResolution==='undefined')return 50;var isZeroTimer=t1093__getResponsiveAttr(popup,'anim-close')==='empty';if((isZeroTimer&&action==='close')||!popup.classList.contains('t-popup-transition'))return 0;var popupTimer=popup.getAttribute('data-anim-timeout');if(popupTimer)popupTimer*=1000;return popupTimer||0}
function t1093__getResponsiveAttr(popup,attr){var isMobileResolution=t1093__getGlobalObjValue('isMobRes');if(typeof isMobileResolution==='undefined')return null;var currentAttr='data-'+attr;if(isMobileResolution){var attrMob=popup.getAttribute(currentAttr+'-mobile');if(attrMob)return attrMob}
return popup.getAttribute(currentAttr)}
function t1093__removeAnimFromHookLinkOnClose(popup){var popupHook=popup.getAttribute('data-tooltip-hook');var popupInitLinks=Array.prototype.slice.call(document.querySelectorAll('a[href="'+popupHook+'"]'));popupInitLinks.forEach(function(link){var animEl=link.closest('.js-sbs-anim-trigger_click');if(!animEl)return;var animElID=animEl.getAttribute('data-elem-id');var animElArtBoard=animEl.closest('.t396__artboard');var alreadyAnimatedEls=Array.prototype.slice.call(animElArtBoard.querySelectorAll('.t-sbs-anim_started'));alreadyAnimatedEls.forEach(function(animEl){var triggersList=animEl.getAttribute('data-animate-sbs-trgels');if(!triggersList||triggersList.indexOf(animElID)===-1)return;animEl.classList.remove('t-sbs-anim_started')})})}
function t1093__processClosedPopupList(closeAll,index){var openPopupList=t1093__getPopupObjValue('openPopUpList');var hookList=closeAll?openPopupList:openPopupList.slice(index);var popupSelectors=hookList.map(function(hook){return '[data-tooltip-hook="'+hook+'"]'});popupSelectors=popupSelectors.join(', ');t1093__clearPopupObjKey('openPopUpList',closeAll,index);return Array.prototype.slice.call(document.querySelectorAll(popupSelectors))}
function t1093__removeAnimationOnClose(popup){var popupAnimElems=Array.prototype.slice.call(popup.querySelectorAll('.t-animate_started'));var windowWidth=(window.tn&&window.tn.curResolution)||window.innerWidth;popupAnimElems.forEach(function(elem){if(windowWidth<1200&&elem.getAttribute('data-animate-mobile')!=='y')return;elem.classList.remove('t-animate_started');elem.classList.add('t-animate_wait')})}
function t1093__clearPopupObjKey(key,emptyAll,index){if(!window.tPopupObj||!window.tPopupObj[key])return;if(emptyAll){window.tPopupObj[key]=[]}else if(index===-1){window.tPopupObj[key].pop()}else{window.tPopupObj[key]=window.tPopupObj[key].slice(0,index)}}
function t585_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var accordion=rec.querySelectorAll('.t585__accordion')[0];var headers=rec.querySelectorAll('.t585__header');var undercuts=rec.querySelectorAll('.ql-undercut');var isLazy=document.getElementById('allrecords').getAttribute('data-tilda-lazy');var accordionScroll;if(accordion){accordionScroll=accordion.getAttribute('data-scroll-to-expanded');accordion=accordion.getAttribute('data-accordion')}else{accordion='false';accordionScroll='false'}
for(var i=0;i<headers.length;i++){headers[i].addEventListener('click',function(){var element=this;var container=element.nextElementSibling;var triggerButton=element.querySelector('.t585__trigger-button');var activeHeight=0;var isAccordionDown=!1;if(triggerButton){var isExpanded=triggerButton.getAttribute('aria-expanded')==='true';triggerButton.setAttribute('aria-expanded',!isExpanded);container.hidden=isExpanded}
if(element.classList.contains('t585__opened')){element.classList.remove('t585__opened');t585_accordionHide(container)}else{if(accordionScroll==='true'&&accordion==='true'){activeHeight=t585__getOldAction(rec);isAccordionDown=t585__getAccordionPosition(headers,element)}
if(accordion==='true')t585_accordionAllHide(headers);element.classList.add('t585__opened');container.style.display='block';var height=container.scrollHeight;container.style.maxHeight='0px';setTimeout(function(){container.style.maxHeight=height+'px';if(accordionScroll==='true'){t585__calcHeight(element,container,activeHeight,isAccordionDown)}},0)}
if(window.lazy==='y'||isLazy==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}
for(var i=0;i<undercuts.length;i++){undercuts[i].addEventListener('click',function(event){const target=event.target;const content=target.closest('.t585__content');const textBlock=target.closest('.t585__textwrapper');setTimeout(()=>{content.style.maxHeight=textBlock.scrollHeight+'px'},0)})}}
function t585_accordionAllHide(headers){for(var i=0;i<headers.length;i++){var elementHide=headers[i];elementHide.classList.remove('t585__opened');t585_accordionHide(elementHide.nextElementSibling)}}
function t585_accordionHide(container){if(!container.style.maxHeight)container.style.maxHeight=container.scrollHeight+'px';setTimeout(function(){container.style.maxHeight='0px'},0)}
function t585__getOldAction(rec){var activeHeader=rec.querySelector('.t585__opened');var activeHeight=0;if(activeHeader)var activeContainer=activeHeader.nextElementSibling;if(activeContainer)activeHeight=activeContainer.offsetHeight;return activeHeight}
function t585__getAccordionPosition(headers,element){var oldIndex;var newIndex;for(var i=0;i<headers.length;i++){var header=headers[i];if(header.classList.contains('t585__opened'))oldIndex=i;if(header===element)newIndex=i}
return oldIndex<newIndex?!0:!1}
function t585__calcHeight(element,container,activeHeight,isAccordionDown){var windowHeight=window.innerHeight;var windowScroll=window.scrollY;var containerHeight=container.scrollHeight;var accordionHeight=containerHeight+element.offsetHeight;var elementTopOffset=element.getBoundingClientRect().top+windowScroll;var target=isAccordionDown?elementTopOffset-activeHeight:elementTopOffset;var accordionBottomLine=target+accordionHeight;var windowBottomLine=windowScroll+windowHeight;if(target<windowScroll||accordionHeight>windowHeight||accordionBottomLine>windowBottomLine){t585__scroll(target)}}
function t585__scroll(target){var duration=400;var start=(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0);var change=target-start;var currentTime=0;var increment=16;document.body.setAttribute('data-scrollable','true');function t585__easeInOutCubic(currentTime){if((currentTime/=duration/2)<1){return change/2*currentTime*currentTime*currentTime+start}else{return change/2*((currentTime-=2)*currentTime*currentTime+2)+start}}
function t585__animateScroll(){currentTime+=increment;window.scrollTo(0,t585__easeInOutCubic(currentTime));if(currentTime<duration){setTimeout(t585__animateScroll,increment)}else{document.body.removeAttribute('data-scrollable')}}
t585__animateScroll()}
function t280_showMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);var isAndroid=/(android)/i.test(navigator.userAgent);var menu=rec.querySelector('.t280');var menuItems=rec.querySelectorAll('.t280__menu__item');var menuLinks=rec.querySelectorAll('.t978__menu-link');var menuContainer=rec.querySelector('.t280__menu');var menuBurger=menu?menu.querySelector('.t-menuburger'):null;var clickElementsList=rec.querySelectorAll('.t280 .t-menuburger, .t280__menu__bg, .t280__menu__link:not(.tooltipstered):not(.t280__menu__link_submenu), .t978__tooltip-menu_mobile');Array.prototype.forEach.call(clickElementsList,function(clickElement){clickElement.addEventListener('click',function(){if(clickElement.closest('.t280__menu__link.tooltipstered')||clickElement.closest('.t794__tm-link'))return;if(isChrome&&isAndroid&&menuItems.length>10&&window.location.hash){setTimeout(function(){var hash=window.location.hash;window.location.hash='';window.location.hash=hash},50)}
if(!clickElement.closest('.t978__tm-link, .t966__tm-link')){document.body.classList.toggle('t280_opened');if(menu)menu.classList.toggle('t280__main_opened')}
if(clickElement.classList.contains('t-menuburger')){var expandedStatus=clickElement.classList.contains('t-menuburger-opened');clickElement.setAttribute('aria-expanded',expandedStatus)}
t280_changeSize(recid);t280_highlight(recid)})});document.addEventListener('click',function(e){if(e.target.closest('.t978__tm-link, .t966__tm-link, .t-menusub__target-link, .t978__menu-link_hook')){t280_changeSize(recid);if(menuContainer)menuContainer.style.transition='none'}});Array.prototype.forEach.call(menuLinks,function(link){link.addEventListener('click',function(){t280_changeSize(recid)})});if(menu){menu.addEventListener('clickedAnchorInTooltipMenu',function(){document.body.classList.remove('t280_opened');menu.classList.remove('t280__main_opened')})}
var submenuLinks=rec.querySelectorAll('.t-menusub__link-item');Array.prototype.forEach.call(submenuLinks,function(link){link.addEventListener('click',function(){document.body.classList.remove('t280_opened');if(menu)menu.classList.remove('t280__main_opened');if(menuBurger){menuBurger.classList.remove('t-menuburger-opened');menuBurger.setAttribute('aria-expanded',!1)}})});if(submenuLinks.length>0){document.addEventListener('submenuShow',function(){t280_changeSize(recid)})}}
function t280_changeSize(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec.querySelector('.t280__menu');var menuBottom=rec.querySelector('.t280__bottom');var menuContainer=rec.querySelector('.t280__container');var menuWrapper=rec.querySelector('.t280__menu__wrapper');setTimeout(function(){var menuHeight=menu?menu.offsetHeight:0;var menuBottomHeight=menuBottom?menuBottom.offsetHeight:0;var menuContainerHeight=menuContainer?menuContainer.offsetHeight:0;var padding=140;if(menuHeight>document.documentElement.clientHeight-(menuBottomHeight+menuContainerHeight+padding)){if(menuWrapper)menuWrapper.classList.add('t280__menu_static');if(menu)menu.style.paddingTop=(menuContainerHeight||0)+'px'}else{if(menuWrapper)menuWrapper.classList.remove('t280__menu_static');if(menu)menu.style.paddingTop=''}},300)}
function t280_changeBgOpacityMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlocks=rec.querySelectorAll('.t280__container__bg');Array.prototype.forEach.call(menuBlocks,function(menu){var bgColor=menu.getAttribute('data-bgcolor-rgba');var bgColorAfterScroll=menu.getAttribute('data-bgcolor-rgba-afterscroll');var bgOpacity=menu.getAttribute('data-bgopacity');var bgOpacityTwo=menu.getAttribute('data-bgopacity2');var menuShadowOpacity=parseInt(menu.getAttribute('data-menushadow'),10)||0;menuShadowOpacity/=100;var menuShadowCSS=menu.getAttribute('data-menushadow-css');menu.style.backgroundColor=window.pageYOffset>20?bgColorAfterScroll:bgColor;if((window.pageYOffset>20&&bgOpacityTwo==='0')||(window.pageYOffset<=20&&(bgOpacity==='0.0'||bgOpacity==='0'))||(!menuShadowOpacity&&!menuShadowCSS)){menu.style.boxShadow='none'}else if(menuShadowCSS){menu.style.boxShadow=menuShadowCSS}else if(menuShadowOpacity){menu.style.boxShadow='0px 1px 3px rgba(0,0,0,'+menuShadowOpacity+')'}})}
function t280_appearMenu(){var menuBlocks=document.querySelectorAll('.t280');Array.prototype.forEach.call(menuBlocks,function(menuBlock){var menu=menuBlock.querySelector('.t280__positionfixed');if(menu){var appearOffset=menuBlock.getAttribute('data-appearoffset');if(appearOffset&&appearOffset.indexOf('vh')!==-1){appearOffset=Math.floor((window.innerHeight*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);var menuHeight=menu.clientHeight;if(isNaN(appearOffset))return;if(window.pageYOffset>=appearOffset){if(menu.style.transform==='translateY(-'+menuHeight+'px)'){t280_slideUpElement(menu,menuHeight,'toBottom')}}else if(menu.style.transform==='translateY(0px)'){t280_slideUpElement(menu,menuHeight,'toTop')}else{menu.style.transform='translateY(-'+menuHeight+'px)';menu.style.opacity='0'}}})}
function t280_slideUpElement(menu,menuHeight,direction){var diff=direction==='toTop'?0:menuHeight;var diffOpacity=direction==='toTop'?1:0;var timerID=setInterval(function(){menu.style.transform='translateY(-'+diff+'px)';menu.style.opacity=diffOpacity.toString();diffOpacity=direction==='toTop'?diffOpacity-0.1:diffOpacity+0.1;diff=direction==='toTop'?diff+(menuHeight/20):diff-(menuHeight/20);if(direction==='toTop'&&diff>=menuHeight){menu.style.transform='translateY(-'+menuHeight+'px)';menu.style.opacity='0';clearInterval(timerID)}
if(direction==='toBottom'&&diff<=0){menu.style.transform='translateY(0px)';menu.style.opacity='1';clearInterval(timerID)}},10)}
function t280_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;var hash=window.location.hash;if(url.substr(url.length-1)==='/'){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)==='/'){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)==='/'){pathname=pathname.slice(1)}
if(pathname===''){pathname='/'}
var shouldBeActiveElements=document.querySelectorAll('.t280__menu a[href=\''+url+'\'], '+'.t280__menu a[href=\''+url+'/\'], '+'.t280__menu a[href=\''+pathname+'\'], '+'.t280__menu a[href=\'/'+pathname+'\'], '+'.t280__menu a[href=\''+pathname+'/\'], '+'.t280__menu a[href=\'/'+pathname+'/\']'+(hash?', .t280__menu a[href=\''+hash+'\']':'')+(hash?', .t280__menu a[href=\'/'+hash+'\']':'')+(hash?', .t280__menu a[href=\''+hash+'/\']':'')+(hash?', .t280__menu a[href=\'/'+hash+'/\']':''));var rec=document.getElementById('rec'+recid);var menuLinks=rec?rec.querySelectorAll('.t280__menu a'):[];Array.prototype.forEach.call(menuLinks,function(link){link.classList.remove('t-active')});Array.prototype.forEach.call(shouldBeActiveElements,function(link){link.classList.add('t-active')})}