var version;function t_throttle(i,r,n){var a,c;return r=r||250,function(){var e=n||this,t=+new Date,o=arguments;a&&t.t396 [data-elem-type="text"] .tn-atom {zoom: '+100*r+"%;}"))}),1==window.isMobile&&(e=function(){for(var e=document.body.querySelectorAll(".t-cover__carrier"),t=u(window).height(),o=0,i=0,r=e.length;io/2&&(0<(a=1-(Math.abs(_vrect.top)-o/2)/(o/2)-.2)&&a<=1&&0!=i.volume&&(i.volume=a)),Math.abs(_vrect.top)>o||0==_vrect.height?this.pauseVideo(i,this.videoConfigs[r]):(t&&i.play(),i.paused&&i.loop&&i.play())}},e.prototype.getVideoObject=function(e){for(var t=0,o=this.videoTags.length;othis.itemTransitionTop){a=c;break}if(null!=a){1<(i=r.top/this.itemTransitionTop)?i=1:i<0&&(i=0);for(c=0,d=n.length;ci.height-e.sequenceHeight-100?this.processSequence(e):this.stopSequence(e)}},e.prototype.setScrollCb=function(){this._scrollCb=jQuery.proxy(this.scrollCb,this),C(window).bind("scroll",t_throttle(this._scrollCb,200))},window.sequenceController=new e,window.processVideo=function(e){mp4Src=C(e).attr("data-content-video-url-mp4"),webmSrc=C(e).attr("data-content-video-url-webm"),C(e).css("background-color","transparent"),C(e).css("background-image","");var t={mp4:mp4Src,webm:webmSrc,preload:"none",autoplay:!1,loop:!0,scale:!0,zIndex:0,width:"100%"};vid=C(e).videoBG(t),videoLoadProcessor.registerNewVideo(vid,{isNeedStop:!1})},window.cover_init=function(T){C(document).ready(function(){var e,t,o,i,r=document.body.querySelector("#coverCarry"+T),n=C(r),a=n.attr("data-content-cover-bg"),c=n.attr("data-content-cover-height"),d=n.attr("data-content-cover-parallax"),s=n.attr("data-content-video-url-mp4"),l=n.attr("data-content-video-url-webm"),p=n.attr("data-content-video-url-youtube"),u=n.attr("data-content-video-noloop"),h=n.attr("data-content-video-nomute"),m=n.attr("data-content-bg-base64"),f=n.attr("data-content-video-nocover"),a=a||"",c=c||"",d=d||"",s=s||"",l=l||"",u=u||"",h=h||"";p=(p=p||"")||"",m=m||"",f&&"yes"==f&&(p=l=s=""),!window.isMobile||""==l&&""==s&&""==p||n.css("background-image","url('"+a+"')"),setTimeout(function(){S(T),q(T)},500),O(k=T)&&(e=document.body.querySelector("#rec"+k),o=document.body.querySelector("#rec"+k+" .t-cover").parentNode,console.log("new fix node background-position: fixed"),window.cover_fixBackgroundStyles||(i=".t-cover__container {position: relative;}.t-cover__container .t-cover {clip: rect(0, auto, auto, 0);position: absolute;top: 0;left: 0;width: 100%;height: 100% !important;}.t-cover__container .t-cover .t-cover__carrier {position: fixed;display: block;top: 0;left: 0;width: 100%;height: 100%!important;background-size: cover;background-position: center center;transform: translateZ(0);will-change: transform;}",f=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),f.appendChild(t),t.type="text/css",t.styleSheet?t.styleSheet.cssText=i:t.appendChild(document.createTextNode(i)),window.cover_fixBackgroundStyles=!0),(t=document.createElement("div")).classList.add("t-cover__container"),o.prepend(t),i=e.querySelector(".t-cover"),o=i.style.height,t.style.height=o,t.append(i),void 0!==(i={275:".t256__video-container",286:".t266__video-container",337:".t-container",906:".t906__video-container"}[e.getAttribute("data-record-type")])&&(i=e.querySelector(i),t.append(i)),window["cover"+k+"fixbackgroundnodes"]=!0);var w,g,v,y,b,_,x,k=C("#rec"+T).find("img[data-hook-clogo]");k.length&&k.load(function(){setTimeout(function(){S(T),q(T)},500)}),window.isMobile&&C(window).on("orientationchange",function(){S(T),q(T)}),""===s&&""===l&&""===p||0==window.isMobile&&(""!=p||""==s&&""==l?""!=p&&(n.css("background-color","#000000"),n.css("background-image",""),n.attr("data-content-cover-bg",""),b=0,(_=C(window)).scroll(function(){y&&window.clearTimeout(y),y=window.setTimeout(function(){var e,t,o;0<(b=n.find("iframe").length)||(e=n.offset().top,t=n.height(),e-500<(o=_.scrollTop())+_.height()&&o<=e+t+500&&processYoutubeVideo(r,c))},100)}),_.scroll()):(n.css("background-color","#000000"),n.css("background-image","url('https://tilda.ws/img/spinner-white.gif')"),n.css("background-size","auto"),n.attr("data-content-cover-bg",""),w=!1,w=""==u,g=!0,g=""==h,v="","fixed"==d&&(-1C(window).height()&&(n.css("height","100vh"),v="yes")),b="",_=C(window),x=n.parent(),_.scroll(function(){var e,t,o;y&&window.clearTimeout(y),y=window.setTimeout(function(){var e,t,o;0").attr("src",a).load(function(){C(this).remove(),n.css("background-image","url('"+a+"')"),n.css("opacity","1")}),n.css("background-image",""),n.css("opacity","0"),n.css("transition","opacity 25ms"));p=C("#rec"+T).find(".t-cover__arrow-wrapper");0b?r(this).addClass("r_hidden"):r(this).addClass("r_showed"),r(this).addClass("r_anim")}),i.bind("scroll",t_throttle(e,200)),e()),"none"===r("html").css("display")&&r("html").css("display","block"),r("body").height()+70e.aspectRatio?(e.width(o).height("auto"),(t=(e.height()-i)/2)<0&&(t=0),e.css("top",-t)):(e.width("auto").height(i),(t=(e.width()-o)/2)<0&&(t=0),e.css("left",-t),0===t&&setTimeout(function(){l.fn.videoBG.setFullscreen(e)},500)),l("body > .videoBG_wrapper").width(o).height(i)},l.fn.videoBG.video=function(e){var t=l("
");t.addClass("videoBG").css("position",e.position).css("z-index",e.zIndex).css("top",0).css("left",0).css("height",e.height).css("width",e.width).css("opacity",e.opacity).css("overflow","hidden");var o,i=l("