function t396_init(t){var e=document.getElementById("rec"+t),i=e?e.querySelector(".t396"):null,o=e?e.querySelector(".t396__artboard"):null;if(o){t396_initTNobj(t,o),t396__initOnlyScalable();var n="",r=t396_detectResolution(t),a=document.getElementById("allrecords"),l=a&&"edit"===a.getAttribute("data-tilda-mode");void 0===window.tn.isEditMode&&(window.tn.isEditMode=l),t396_switchResolution(t,r);var d="window"===t396_ab__getFieldValue(o,"upscale");if(t396__setGlobalScaleVariables(t,r,d),t396_updateTNobj(t),t396_artboard_build(n,t),window.addEventListener("load",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o);var t=o?window.getComputedStyle(o).getPropertyValue("overflow"):"";"function"==typeof t_lazyload_update&&"auto"===t&&o&&o.addEventListener("scroll",t_throttle((function(){var t=a?a.getAttribute("data-tilda-lazy"):null;"y"!==window.lazy&&"yes"!==t||t_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}),500)),""!==window.location.hash&&"visible"===t&&(o&&(o.style.overflow="hidden"),setTimeout((function(){o&&(o.style.overflow="visible")}),1))})),window.tildaMembers&&"MutationObserver"in window){var _=new MutationObserver((function(e){e.forEach((function(e){"attributes"===e.type&&"class"===e.attributeName&&e.target.classList.contains("tlk-courses_page")&&(t396_doResize(t,!0),_.disconnect())}))}));_.observe(document.body,{attributes:!0})}document.querySelector(".t830")&&t_onReady((function(){var e,i;["t830__allrecords_padd","t830__allrecords_padd-small"].some((function(t){return a.classList.contains(t)}))?t396_doResize(t,!0):a.addEventListener("allRecPaddingInit",(function(){t396_doResize(t,!0)}))})),e&&i&&o&&"yes"===e.getAttribute("data-connect-with-tab")&&i.addEventListener("displayChanged",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o),t396_doResize(t,!0)}));var s="hug"===o.getAttribute("data-artboard-heightmode");if(s){t396__updateAutoHeight(o),setInterval((function(){t396__updateAutoHeight(o)}),3e3);var u=o.getElementsByTagName("img");Array.from(u).forEach((function(t){t.onload=function(){t396__updateAutoHeight(o)}}));var c={subtree:!0,characterData:!0,characterDataOldValue:!0},w,g;new MutationObserver((function t(){t396__updateAutoHeight(o)})).observe(o,c)}setTimeout((function(){e&&e.closest("#allrecordstable")&&i&&o&&i.addEventListener("displayChanged",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o),t396_doResize(t,!0)}))}),1e3);var f=!!document.querySelector(".t635__textholder");e&&f&&i&&o&&i.addEventListener("animationInited",(function(){t396_allelems__renderView(o),t396_allgroups__renderView(o),t396_doResize(t,!0)})),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&i&&i.classList.add("t396_safari"),d&&!l&&t_onFuncLoad("t396_scaleBlock",(function(){t396_scaleBlock(t)})),l||"y"!==t396_ab__getFieldValue(o,"fixed-need-js")||t_onFuncLoad("t396__processFixedArtBoard",(function(){t396__processFixedArtBoard(o)})),t396__processAbsoluteArtBoard(o),t396__processTopShift(o,t,!1),window.t396__isMobile||s||t396__removeInlineHeight([o,o.querySelector(".t396__carrier"),o.querySelector(".t396__filter")])}}function t396__removeInlineHeight(t){t.filter(Boolean).forEach((function(t){t&&(t.style.height="")}))}function t396__globalInit(){t396__isAllZeroBlocksRendered((function(){t396__applyFixesForAllElements(),window.addEventListener("resize",t396__onResize),window.addEventListener("orientationchange",t396__onOrientationChange)}))}function t396__onResize(){t396_waitForFinalEvent((function(){var t=t396__getAxisXPadding(),e=document.documentElement.clientWidth!==window.tn.window_width,i=t396__getBlockEditorWidth();window.tn.window_width=i||document.documentElement.clientWidth,t&&(window.tn.window_width-=t),window.tn.window_height=document.documentElement.clientHeight,t396__getZeroBlocks().forEach((function(t){var i=t.artboard,o=t.record;if(i.classList.add("t396_resizechange"),window.t396__isMobile||window.t396__isTouchDevice){if(e){if(!o)return;if(!t396_isBlockVisible(o))return;t396_doResize(o.id.replace("rec","")),i.classList.remove("t396_resizechange")}}else{if(!o)return;if(!t396_isBlockVisible(o))return;t396_doResize(o.id.replace("rec","")),i.classList.remove("t396_resizechange")}}))}),500,"global_resize_zero_unique_id")}function t396__onOrientationChange(){t396_waitForFinalEvent((function(){var t=t396__getBlockEditorWidth();window.tn.window_width=t||document.documentElement.clientWidth,window.tn.window_height=document.documentElement.clientHeight,t396__getZeroBlocks().forEach((function(t){var e=t.record;e&&t396_isBlockVisible(e)&&t396_doResize(e.id.replace("rec",""))}))}),600,"global_orientationchange_zero_unique_id")}function t396_isOnlyScalableBrowser(){return window.isOnlyScalable}function t396__initOnlyScalable(){if(void 0===window.isOnlyScalable){var t=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),e=t?parseInt(t[1],10):126,i=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./),o=i&&parseInt(i[1],10)||0;window.isOnlyScalable=e<126,window.shouldUseScaleFactor=!window.isOnlyScalable&&!t&&o<=127}}function t396__setGlobalScaleVariables(t,e,i){if(!window.tn.window_width){var o=t396__getBlockEditorWidth();window.tn.window_width=o||document.documentElement.clientWidth}var n="ab"+t,r=i?parseFloat((window.tn.window_width/e).toFixed(3)):1;window.tn[n].scaleFactor=r,window.tn_scale_factor=r;var a=document.getElementById("rec"+t);a&&!window.tn.isEditMode&&a.style.setProperty("--zoom",r.toString())}function t396__processTopShift(t,e,i){"function"!=typeof window.t396__updateTopShift||"y"!==t396_ab__getFieldValue(t,"shift-processed")&&"y"!==t396_ab__getFieldValue(t,"fixed-shift")||t396__updateTopShift(e,i)}function t396_doResize(t,e){if(e){var i=t396__getAxisXPadding(),o=t396__getBlockEditorWidth();window.tn.window_width=o||document.documentElement.clientWidth,i&&(window.tn.window_width-=i)}var n=t396_isOnlyScalableBrowser(),r=document.getElementById("rec"+t),a=document.getElementById("allrecords"),l=t396_detectResolution(t),d=r?r.querySelector(".t396__scale-style"):null;if(t396__setScaleFactorForElements(t),t396_removeElementFromDOM(d),n){var _=r?r.querySelectorAll(".tn-molecule, .tn-atom"):[];Array.prototype.forEach.call(_,(function(t){if(!t.classList.contains("tn-atom")||!t.closest(".tn-molecule")){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)}}))}else{var s=r?r.querySelectorAll(".t396__elem, .t396__group"):[];Array.prototype.forEach.call(s,(function(t){t.style.zoom="";var e=t.querySelector(".tn-atom");e&&(e.style.transformOrigin="",e.style.fontSize="",e.style.webkitTextSizeAdjust="")}))}t396_switchResolution(t,l);var u=r?r.querySelector(".t396__artboard"):null,c="window"===t396_ab__getFieldValue(u,"upscale");t396__setGlobalScaleVariables(t,l,c),t396_updateTNobj(t),t396_ab__renderView(u);var w=a?a.getAttribute("data-tilda-mode"):"";c&&"edit"!==w&&t_onFuncLoad("t396_scaleBlock",(function(){t396_scaleBlock(t)})),"edit"!==w&&"y"===t396_ab__getFieldValue(u,"fixed-need-js")&&t_onFuncLoad("t396__processFixedArtBoard",(function(){t396__processFixedArtBoard(u)})),t396__processAbsoluteArtBoard(u),t396__processTopShift(u,t,!0),t396_allelems__renderView(u),t396_allgroups__renderView(u),t396__applyFixesForAllElements(),t396__updateAutoHeight(u),u&&u.dispatchEvent(new CustomEvent("artBoardResized"));var g="hug"===u.getAttribute("data-artboard-heightmode");u&&!g&&(window.t396__isMobile||t396__removeInlineHeight([u,u.querySelector(".t396__carrier"),u.querySelector(".t396__filter")]))}function t396__updateAutoHeight(t){var e;if("hug"===t.getAttribute("data-artboard-heightmode")){var i=t396__getAutoHeight(t),o;if(i!==t.offsetHeight){var n,r="ab"+t.getAttribute("data-artboard-recid"),a=window.tn[r].curResolution,l;a===window.tn[r].curResolution_max?t.setAttribute("data-artboard-height",i):t.setAttribute("data-artboard-height-res-"+a,i),t396_ab__renderView(t)}}}function t396__getAutoHeight(t){var e=0,i;if(t.classList.contains("t396__artboard-flex")){var o=t.style.height;t.style.height="auto",e=t.offsetHeight,t.style.height=o}else var n=t.querySelectorAll(".tn-group, .tn-elem"),e=Array.from(n).reduce((function(e,i){var o=t396_core__getFieldValue(i,"axisy"),n=t396_core__getFieldValue(i,"topunits"),r=t396_core__getFieldValue(i,"heightunits");if("%"===n||"%"===r||"bottom"===o||"center"===o)return e;var a=i.offsetTop+i.offsetHeight,l,d,_;"window"===t396_ab__getFieldValue(t,"upscale")&&(a*=t396__getCurrentScaleFactor(t.getAttribute("data-artboard-recid")));return a>e&&(e=a),e}),-1/0);return e===-1/0?0:e}function t396__processAbsoluteArtBoard(t){if(t){var e=t396_ab__getFieldValue(t,"pos");if("fixed"!==e){var i="t396__artboard-fixed-no-bg";if("absolute"===e){var o=getComputedStyle(t),n=t.querySelector(".t396__filter"),r=!n||"none"===getComputedStyle(n).backgroundImage,a,l="rgba(0, 0, 0, 0)"===o.backgroundColor&&"none"===o.backgroundImage&&r?"add":"remove";t.classList[l](i)}else t.classList.remove(i)}}}function t396_detectResolution(t){if(t){var e="ab"+t,i=window.innerWidth,o;if(window.t396__isMobile||window.t396__isIPad||window.t396__isSafari){var n=t396__getBlockEditorWidth();n?window.tn.window_width=n:window.tn.window_width||(window.tn.window_width=document.documentElement.clientWidth),i=window.tn.window_width}return window.tn[e].screens.forEach((function(t){i>=t&&(o=t)})),void 0===o&&(o=window.tn[e].screens[0]),o}}function t396_initTNobj(t,e){e&&(void 0===window.tn?(window.tn={},window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"],t396_setScreensTNobj(t,e)):t396_setScreensTNobj(t,e))}function t396_setScreensTNobj(t,e){var i="ab"+t;window.tn[i]={},window.tn[i].screens=[];var o=e.getAttribute("data-artboard-screens");o?(o=o.split(",")).forEach((function(t){t=parseInt(t,10),window.tn[i].screens.push(t)})):window.tn[i].screens=[320,480,640,960,1200]}function t396__getAxisXPadding(){var t=document.getElementById("allrecords"),e=Boolean(window.tildaMembers)||"allrecords"===window.zero_window_width_hook,i,o;return t&&e&&[document.body,t].reduce((function(t,e){var i=window.getComputedStyle(e).paddingLeft,o=window.getComputedStyle(e).paddingRight;return t+parseInt(i,10)+parseInt(o,10)}),0)||0}function t396_updateTNobj(t){var e=t396__getAxisXPadding();if(!window.tn.window_width){var i=t396__getBlockEditorWidth();window.tn.window_width=i||document.documentElement.clientWidth,e&&(window.tn.window_width-=e)}window.tn.window_height||(window.tn.window_height=window.t396__isMobile?document.documentElement.clientHeight:window.innerHeight);for(var o="ab"+t,n=window.tn[o].screens.slice().reverse(),r=0;r-1,window.t396__isIPad="ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit"),window.t396__isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),window.t396__isTouchDevice="ontouchend"in document,window.t396__isInAppBrowser=/WebView|(iPhone|iPod|iPad)(?!.*Safari)/gi.test(navigator.userAgent),window.t396__isFacebookMessengerInApp=/FBAN|FBAV/gi.test(navigator.userAgent)&&window.t396__isInAppBrowser,window.t396__isInstagramInApp=/\bInstagram/gi.test(navigator.userAgent)&&window.t396__isInAppBrowser,t_onReady(t396__globalInit);var t396_waitForFinalEvent=function(){var t={};return function(e,i,o){o||(o="Don't call this twice without a uniqueId"),t[o]&&clearTimeout(t[o]),t[o]=setTimeout(e,i)}}();function t396_switchResolution(t,e){var i="ab"+t,o=window.tn[i].screens[window.tn[i].screens.length-1];window.tn[i].curResolution=e,window.tn[i].curResolution_max=o,window.tn.curResolution=e,window.tn.curResolution_max=o}function t396_artboard_build(t,e){var i=document.getElementById("rec"+e),o=document.getElementById("allrecords"),n=i?i.querySelector(".t396__artboard"):null;if(!n)return!1;t396_ab__renderView(n),t396_allgroups__renderView(n),t396__setScaleFactorForElements(e);var r=n.querySelectorAll(".tn-elem");Array.prototype.forEach.call(r,(function(t){var i;switch(t.getAttribute("data-elem-type")){case"text":t396_addText(n,t);break;case"image":t396_addImage(n,t);break;case"shape":t396_addShape(n,t);break;case"button":t396_addButton(n,t);break;case"video":t396_addVideo(n,t);break;case"html":t396_addHtml(n,t);break;case"tooltip":t396_addTooltip(n,t);break;case"form":t396_addForm(n,t,e);break;case"gallery":t396_addGallery(n,t,e);break;case"vector":t396_addVector(n,t)}})),n.classList.remove("rendering"),n.classList.add("rendered"),n.dispatchEvent(new Event("artBoardRendered",{bubbles:!0,cancelable:!0}));var a=n.getAttribute("data-artboard-ovrflw"),l;"visible"!==a&&"visibleX"!==a||!o||(o.style.overflow="hidden",document.querySelector(".t951__sidebar_sticky,.t-store__prod-popup__col_fixed")&&(o.style.cssText+="overflow:clip;"));if("auto"===a){var d=Math.abs(n.offsetHeight-n.clientHeight);0!==d&&(n.style.paddingBottom=d+"px")}if(window.t396__isMobile||window.t396__isIPad){var _=document.createElement("style");_.textContent="@media only screen and (min-width:1366px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio:2) {.t396__carrier {background-attachment:scroll!important;}}",i.insertAdjacentElement("beforeend",_)}}function t396_ab__renderView(t){if(!t)return!1;for(var e=window.tn.ab_fields,i=document.getElementById("allrecords"),o,n=0;n=a)u=0;else switch(t396_ab__getFieldValue(t,"valign")){case"top":default:u=0;break;case"center":u=w?parseFloat(((a-w)/2).toFixed(1)):parseFloat(((a-r)/2).toFixed(1));break;case"bottom":u=w?parseFloat((a-w).toFixed(1)):parseFloat((a-r).toFixed(1));break;case"stretch":u=0,r=a}t.setAttribute("data-artboard-proxy-min-offset-top",u),t.setAttribute("data-artboard-proxy-min-height",r),t.setAttribute("data-artboard-proxy-max-height",a);var g=t.querySelector(".t396__filter"),f=t.querySelector(".t396__carrier"),h;if(o=t396_ab__getFieldValue(t,"height_vh"),o=parseFloat(o),(window.t396__isMobile||window.t396__isIPad)&&o){var m=document.documentElement.clientHeight*o/100;t.style.height=m+"px",g&&(g.style.height=m+"px"),f&&(f.style.height=m+"px")}"hug"===t.getAttribute("data-artboard-heightmode")&&!o&&(t.style.height=r+"px",g&&(g.style.height=r+"px"),f&&(f.style.height=r+"px"))}function t396__getCurrentScaleFactor(t){var e="ab"+t,i;return window.tn&&window.tn[e]&&window.tn[e].scaleFactor||window.tn_scale_factor}function t396__setScaleFactorForElements(t){var e=document.getElementById("rec"+t),i=e?e.querySelector(".t396__artboard"):null;if(i){var o=t396__getCurrentScaleFactor(t),n=i.querySelectorAll(".t396__elem, .tn-group");Array.prototype.forEach.call(n,(function(t){t.scaleFactor=o}))}}function t396_addText(t,e){if(e=t396_getEl(e)){var i="top,left,width,height,container,axisx,axisy,widthunits,leftunits,topunits";e.setAttribute("data-fields",i),t396_elem__renderView(e)}}function t396_addImage(t,e){if(e=t396_getEl(e)){var i="img,width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits";e.setAttribute("data-fields",i),t396_elem__renderView(e);var o=e.querySelector("img");o&&(o.addEventListener("load",(function(){t396_elem__renderViewOneField(e,"top"),o.src&&setTimeout((function(){t396_elem__renderViewOneField(e,"top"),t396__updateAutoHeight(t)}),2e3)})),o.complete&&(t396_elem__renderViewOneField(e,"top"),o.src&&setTimeout((function(){t396_elem__renderViewOneField(e,"top"),t396__updateAutoHeight(t)}),2e3)),o.addEventListener("tuwidget_done",(function(){t396_elem__renderViewOneField(e,"top")})),setTimeout((function(){t396_changeFilterOnSafari(e)})))}}function t396_addShape(t,e){if(e=t396_getEl(e)){var i="width,height,top,left,";i+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",e.setAttribute("data-fields",i),t396_elem__renderView(e)}}function t396_changeFilterOnSafari(t){var e;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(t396__checkContainBackdropFilter(t)&&"IntersectionObserver"in window)){var i=t.querySelector(".tn-atom"),o;new IntersectionObserver((function(e,i){e.forEach((function(e){if(e.isIntersecting){var o=e.target;i.unobserve(o),t396__processBackdropFilterOnImage(t)}}))})).observe(i)}}function t396__checkContainBackdropFilter(t){if(!t)return!1;var e=window.getComputedStyle(t).webkitBackdropFilter;if(e&&"none"!==e)return!0;var i=t.querySelector(".tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper");if(!i)return!1;var o=window.getComputedStyle(i).webkitBackdropFilter;return o&&"none"!==o}function t396__processBackdropFilterOnImage(t){if(t){var e=t.getAttribute("data-animate-sbs-opts"),i=t.getAttribute("data-animate-prx")||t.getAttribute("data-animate-fix"),o=e||i,n=t.classList.contains("t396__elem--backdrop-filter-img-wrappered");o&&n||!o?t396__updateBackdropFilterOnImage(t):t.addEventListener("backdropFilterImgWrappered",(function(){t396__updateBackdropFilterOnImage(t)}))}}function t396__updateBackdropFilterOnImage(t){if(t){var e=t.querySelector("img"),i=t.querySelector(".tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper"),o="";i&&(t=i,o=window.getComputedStyle(t).webkitBackdropFilter||""),t.style.webkitBackdropFilter="none",t396_waitForUploadImg(e,(function(){t.style.webkitBackdropFilter=o}))}}function t396_waitForUploadImg(t,e){if("y"===window.lazy)var i=setTimeout((function(){t.classList.contains("loaded")&&t.clientWidth&&t.src?(e(),clearTimeout(i)):t396_waitForUploadImg(t,e)}),300);else e()}function t396_addButton(t,e){if(e=t396_getEl(e)){var i="top,left,width,height,container,axisx,axisy,caption,leftunits,topunits";return e.setAttribute("data-fields",i),t396_elem__renderView(e),e}}function t396_addVideo(t,e){if(e=t396_getEl(e)){var i="width,height,top,left,";i+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",e.setAttribute("data-fields",i),t396_elem__renderView(e),t_onFuncLoad("t396_initVideo",(function(){t396_initVideo(e)}))}}function t396_addHtml(t,e){if(e=t396_getEl(e)){var i="width,height,top,left,";i+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits",e.setAttribute("data-fields",i),t396_elem__renderView(e)}}function t396_addTooltip(t,e){if(e=t396_getEl(e)){var i="width,height,top,left,";i+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits,tipposition",e.setAttribute("data-fields",i),t396_elem__renderView(e),t_onFuncLoad("t396_initTooltip",(function(){t396_initTooltip(e)}))}}function t396_addForm(t,e,i){if(e=t396_getEl(e)){var o="width,top,left,",n;o+="inputs,container,axisx,axisy,widthunits,leftunits,topunits",e.setAttribute("data-fields",o);var r=e.getAttribute("data-elem-id"),a=e.querySelector(".tn-atom__inputs-textarea");a&&(n=a.value),t_onFuncLoad("t_zeroForms__init",(function(){t396_elem__renderView(e),t_zeroForms__init(i,r,n),t396_elem__renderView(e)}))}}function t396_addGallery(t,e,i){if(e=t396_getEl(e)){var o="width,height,top,left,";o+="imgs,container,axisx,axisy,widthunits,heightunits,leftunits,topunits",e.setAttribute("data-fields",o),t396_elem__renderView(e);var n=e.getAttribute("data-elem-id");t_onFuncLoad("t_zeroGallery__init",(function(){t_zeroGallery__init(i,n)}))}}function t396_addVector(t,e){if(e=t396_getEl(e)){var i="width,filewidth,fileheight,top,left,container,axisx,axisy,widthunits,leftunits,topunits";e.setAttribute("data-fields",i),t396_elem__renderView(e)}}function t396_elem__getFieldValue(t,e){if(t=t396_getEl(t)){if(t.classList.contains("tn-group"))return t396_group__getFieldValue(t,e);var i=t.closest(".t396__artboard"),o=i.getAttribute("data-artboard-recid"),n="ab"+o,r;if(void 0===window.tn[n])t396_initTNobj(o,i),t396_switchResolution(o,t396_detectResolution(o));var a=window.tn[n].curResolution,l=window.tn[n].curResolution_max,d=window.tn[n].screens,_;if(!(_=a===l?t.getAttribute("data-field-"+e+"-value"):t.getAttribute("data-field-"+e+"-res-"+a+"-value"))&&""!==_)for(var s=0;sW?j:W:z.clientHeight,V*=S),s||!l||u||"window"===y||"stretch"!==a||(E=j?j>W?j:W:z.clientHeight,E/=S),i=E/2-V/2+i),"bottom"===g&&(V=q(t),c&&"window"!==y&&("stretch"!==a?E*=S:E=j?j>W?j:W:z.clientHeight,V*=S),s||!l||u||"window"===y||"stretch"!==a||(E=j?j>W?j:W:z.clientHeight,E/=S),i=E-V+i),c&&"window"!==y){var N=((V=q(t))*S-V)/2;i+=N=Math.round(N)}}return i}}function t396_elem_findFirstLevelParentGroup(t){for(var e=t.closest(".t396__group");e;){var i=e.parentElement.closest(".t396__group");if(!i)break;e=i}return e}function t396_ab__getFieldValue(t,e){if(t){var i,o=t.getAttribute("data-artboard-recid"),n="ab"+o,r;if(void 0===window.tn[n])t396_initTNobj(o,t),t396_switchResolution(o,t396_detectResolution(o));var a=window.tn[n].curResolution,l=window.tn[n].curResolution_max,d=window.tn[n].screens;if(null===(i=a===l?t.getAttribute("data-artboard-"+e):t.getAttribute("data-artboard-"+e+"-res-"+a)))for(var _=0;_parseInt(o,10))}function t396__getArtboards(t){var e,i="edit"===document.getElementById("allrecords").getAttribute("data-tilda-mode")?'.record[data-record-type="'+t+'"] .r:not(.t397__off):not(.t395__off):not(.t400__off) .t396__artboard':'.r[data-record-type="'+t+'"]:not(.t397__off):not(.t395__off):not(.t400__off) .t396__artboard';return Array.prototype.slice.call(document.querySelectorAll(i))}function t396__getZeroBlocks(){var t=[].concat(t396__getArtboards("396"),t396__getArtboards("121")),e;return t.length?t.map((function(t){return{record:t.closest(".r:not(.t397__off):not(.t395__off):not(.t400__off)"),artboard:t}})).filter((function(t){return t.record})):[]}function t396__getBlockEditorWidth(){if(!window.tn.isEditMode)return 0;var t,e=window.getComputedStyle(document.body).getPropertyValue("--page-view-width");return e&&"100%"!==e?parseInt(e,10):void 0}function t396__isAllZeroBlocksRendered(t){var e=t396__getZeroBlocks(),i=document.getElementById("allrecords"),o=i&&"edit"===i.getAttribute("data-tilda-mode"),n=!1;if(e.length){o&&clearTimeout(window.tn_waitingForAppendZero);var r=e.map((function(t){return t.artboard})),a;if(r.every((function(t){return t.classList.contains("rendered")})))t();else{var l=r.filter((function(t){return t.classList.contains("rendered")}));r.forEach((function(e){e.classList.contains("rendered")||e.addEventListener("artBoardRendered",(function(){l.push(e),l.length!==r.length||n||t()}))})),setTimeout((function(){n=!0,l.length!==r.length&&t()}),3e3)}}else o&&(window.tn_waitingForAppendZero=setTimeout((function(){t396__isAllZeroBlocksRendered(t)}),3e3))}function t396__processElementsTransform(t){var e=t396__initFastDOM(),i=[];e.read((function(){Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("data-elem-type");if("text"===e||"image"===e||"shape"===e||"button"===e||"vector"===e){var o=getComputedStyle(t),n;if(o.backdropFilter&&"none"!==o.backdropFilter||o.webkitBackdropFilter&&"none"!==o.webkitBackdropFilter){var r=t.querySelector(".tn-atom"),a=r?window.getComputedStyle(r).transform:"none";"matrix(1, 0, 0, 1, 0, 0)"===a&&(a="none"),"none"!==a&&i.push({element:t,atom:r,atomTransform:a})}}}))})),e.write((function(){i.forEach((function(t){t.atom.style.transform="none",t.element.style.transform=t.atomTransform}))}))}function t396__fixElementsLineHeights(t){var e=t396__initFastDOM(),i=[];e.read((function(){Array.prototype.forEach.call(t,(function(t){var e;if("text"===t.getAttribute("data-elem-type")){var o=t.querySelector(".tn-atom");if(o){var n=t.closest(".t396__group");if(!n||!n.style.zoom){var r=t.style.zoom,a=o.style.webkitTextSizeAdjust,l=o.style.fontSize;i.push({element:t,atom:o,zoom:r,textSizeAdjust:a,fontSize:l})}}}}))})),e.write((function(){i.forEach((function(t){t.atom.style.removeProperty("line-height"),window.t396__isSafari&&t.zoom&&(t.atom.style.webkitTextSizeAdjust="none",t.atom.style.fontSize="",t.element.style.zoom="")}))})),e.read((function(){i.forEach((function(t){t.computedLineHeight=parseFloat(window.getComputedStyle(t.atom).lineHeight)}))})),e.write((function(){i.forEach((function(t){var e=t.computedLineHeight;window.t396__isSafari&&t.zoom&&(t.atom.style.webkitTextSizeAdjust=t.textSizeAdjust,t.atom.style.fontSize=t.fontSize,t.zoom&&(t.element.style.zoom=t.zoom)),e&&!isNaN(e)&&(t.atom.style.lineHeight=Math.round(e)+"px")}))}))}function t396__fixElementsFontSizes(t){var e;if(!window.t396__isMobile&&window.t396__isIPad||window.t396__isFacebookMessengerInApp||window.t396__isInstagramInApp){var i=t396__initFastDOM(),o=[];i.read((function(){Array.prototype.forEach.call(t,(function(t){var e=t.getAttribute("data-elem-type");if("text"===e||"button"===e){var i=t.querySelector(".tn-atom");if(i){var n=t396_elem_findFirstLevelParentGroup(t),r={element:t,atom:i,zoom:1};n&&n.style.zoom&&(r.zoom=parseFloat(n.style.zoom)),1!==r.zoom&&o.push(r)}}}))})),i.write((function(){o.forEach((function(t){t.atom.style.fontSize=""}))})),i.read((function(){o.forEach((function(t){var e=parseFloat(window.getComputedStyle(t.atom).fontSize);t.correctFontSize=e*Math.pow(t.zoom,2)}))})),i.write((function(){o.forEach((function(t){t.atom.style.fontSize=Math.floor(t.correctFontSize)+"px"}))}))}}function t396__initFastDOM(){return{read:function t(e){e()},write:function t(e){e()}}}function t396__applyFixesForAllElements(){var t=document.querySelectorAll(".t396__elem"),e=window.t396__isSafari||window.t396__isFacebookMessengerInApp||window.t396__isInstagramInApp;document.fonts&&e?document.fonts.ready.then((function(){t396__fixElementsFontSizes(t),t396__fixElementsLineHeights(t)})):t396__fixElementsLineHeights(t),t396__processElementsTransform(t)}