var lzld="03022001";function t_lazyload_update(){"undefined"!=typeof lazyload_cover&&lazyload_cover.update(),"undefined"!=typeof lazyload_img&&lazyload_img.update(),"undefined"!=typeof lazyload_bgimg&&lazyload_bgimg.update(),"undefined"!=typeof lazyload_iframe&&lazyload_iframe.update()}function t_lazyload_getResizeUrl(e,t,o,i,a,n,l,r){if("undefined"==o||null==o)return o;if(o.indexOf(".svg")>0||o.indexOf(".gif")>0||o.indexOf(".ico")>0||-1===o.indexOf("static.tildacdn.com")||o.indexOf("-/empty/")>0||o.indexOf("-/resizeb/")>0)return o;if(o.indexOf("/-/")>-1)return o;if(0==i&&0==a)return o;if("y"==window.lazy_err)return o;if(o.indexOf("lib")>-1)return o;if("IMG"!=e&&"DIV"!=e&&"TD"!=e&&"A"!=e)return o;if(window.devicePixelRatio>1&&window.t_lazyload_domloaded<2500&&(i>0&&(i=parseInt(2*i)),a>0&&(a=parseInt(2*a))),i>1e3||a>1800)return s=t_lazyload_getWebPUrl(o);if("resize"==t){(d=o.split("/")).splice(o.split("/").length-1,0,"-/resize/"+i+"x"+("DIV"==e&&a>0?a:"")+"/"+("y"==window.lazy_webp?"-/format/webp":""));var s=d.join("/").replace("/static.tildacdn.com","/thumb.tildacdn.com")}else{if(!(i>0&&a>0))return o;var d;"left"==n||"right"==n||(n="center"),"top"==l||"bottom"==l||(l="center"),(d=o.split("/")).splice(o.split("/").length-1,0,"-/"+t+"/"+i+"x"+a+"/"+n+"/"+l+"/"+("y"==window.lazy_webp?"-/format/webp":""));s=d.join("/").replace("/static.tildacdn.com","/thumb.tildacdn.com")}return s}function t_lazyload_round(e,t,o,i){if("cover"==e&&t>0&&o>0){var a=t/o,n=1;a<=1?(a<=.8&&(n=.8),a<=.751&&(n=.75),a<=.667&&(n=.667),a<=.563&&(n=.562),a<=.501&&(n=.5),o=Math.ceil(o/i)*i,t=Math.ceil(o*n),t=10*Math.ceil(t/10)):(a>=1.25&&(n=1.25),a>=1.332&&(n=1.333),a>=1.5&&(n=1.5),a>=1.777&&(n=1.777),a>=2&&(n=2),t=Math.ceil(t/i)*i,o=Math.ceil(t/n),o=10*Math.ceil(o/10))}else t>0&&(t=Math.ceil(t/i)*i),o>0&&(o=Math.ceil(o/i)*i);return[t,o]}function t_lazyload_reloadonError(e,t,o){if(void 0!==t&&null!=t&&""!=t&&-1!==t.indexOf("https://thumb.tildacdn.com")&&-1!==t.indexOf("/-/")){var i=o>1?Date.now()-o:"",a=t.split("/"),n="",l="";if(a.length>3)for(var r=0;r0||e.indexOf(".gif")>0||e.indexOf(".ico")>0||-1===e.indexOf("static.tildacdn.com")||e.indexOf("-/empty/")>0||e.indexOf("-/resizeb/")>0)return e;if(e.indexOf("/-/")>-1)return e;if(e.indexOf("lib")>-1)return e;if("y"!=window.lazy_webp)return e;if("y"==window.lazy_err)return e;var t=e.split("/");return t.splice(e.split("/").length-1,0,"-/format/webp"),t.join("/").replace("/static.tildacdn.com","/thumb.tildacdn.com")}function t_lazyload_onWindowResize(){$(".t-cover__carrier, .t-bgimg, .t-img").each(function(){window.t_lazyload_updateResize_elem($(this))})}function t_lazyload_detectwebp(){var e=new Image;e.onload=e.onerror=function(){2!=e.height?console.log("no webp support"):window.lazy_webp="y"},e.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.LazyLoad=t()}(this,function(){var e,t,o,i,a=!1;function n(e,i,a){var n;t?e.addEventListener(i,a):o&&(e.attachEvent("on"+i,(n=e,function(){a.call(n,window.event)})),e=null)}function l(e,i,a){t?e.removeEventListener(i,a):o&&e.detachEvent("on"+i,a)}function r(e,t,o){var i,a,n;function l(){return window.innerWidth||i.documentElement.clientWidth||document.body.clientWidth}function r(e){return e.getBoundingClientRect().top+a-i.documentElement.clientTop}function s(e){return e.getBoundingClientRect().left+n-i.documentElement.clientLeft}return!0!==window.flag_performance_pass3000&&"object"==typeof performance&&performance.now()<3e3?o=300:window.flag_performance_pass3000=!0,i=e.ownerDocument,a=window.pageYOffset||i.body.scrollTop,n=window.pageXOffset||i.body.scrollLeft,"fixed"===e.getAttribute("data-content-cover-parallax")&&e.closest&&e.closest(".t-cover__container")&&(e=e.closest(".t-cover__container")),!((t===window?(window.innerHeight||i.documentElement.clientHeight||document.body.clientHeight)+a:r(t)+t.offsetHeight)<=r(e)-o||(t===window?a:r(t))>=r(e)+1200+e.offsetHeight||(t===window?l()+window.pageXOffset:s(t)+l())<=s(e)-o||(t===window?n:s(t))>=s(e)+o+e.offsetWidth)}function s(){return(new Date).getTime()}function d(e,t){i?e.classList.add(t):e.className+=(e.className?" ":"")+t}function c(e,t){i?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function x(e,t,o,i){var a=t.getAttribute("data-"+i);if(null!=a){var n=t.clientWidth,l=t.clientHeight,r=$(t);if((r.hasClass("t-slds__bgimg")||r.hasClass("t-slds__img"))&&!r.hasClass("t827__image")){var s=r.parents(".t-slds__container");0==s.length&&(s=r.parents(".t-slds__thumbsbullet").length),s.length&&(n=s.width(),l=s.height())}var d="",c="",x="",u="",f="",_=1,h=!0,p=!1;if("yes"==window.lazy_imgoptimoff&&(h=!1),"IMG"===t.tagName)f="resize";else d=(w=r.css("backgroundPosition").split(" "))[0],c=w[1],"50%"==d?d="center":"0%"==d?d="left":"100%"==d&&(d="right"),"50%"==c?c="center":"0%"==c?c="top":"100%"==c&&(d="bottom"),x=r.css("background-size"),u=r.css("background-attachment"),f="contain"==x?"contain":"cover","fixed"==u&&(p=!0);if(void 0!==r.attr("data-lazy-rule")){var m,g=r.attr("data-lazy-rule").split(",");for(m=0;m-1&&(_=1*g[m].split(":")[1]),g[m].indexOf("comm:")>-1&&"resize"!=(f=g[m].split(":")[1])&&"cover"!=f&&"contain"!=f&&(h=!1),g[m].indexOf("skip")>-1&&(p=!0),g[m].indexOf("optimoff")>-1&&(h=!1)}if(_>1)n=(w=t_lazyload_round(f,n,l,_))[0],l=w[1];if("cover"==f&&n>0&&l>0&&n<=1e3)if(n===5*Math.ceil(n/5)&&l===5*Math.ceil(l/5));else if(["200x151","640x712","320x356","670x744","335x372","300x225","500x375","400x301","748x832","374x416","670x502","335x251","360x234","560x622","280x311","640x416"].indexOf(n+"x"+l)>-1);else if(["353x245","155x151","158x164","372x495","280x272","117x117","291x280","280x269","335x241","283x283","150x156","353x233","414x730","372x362","275x206","290x322","248x207","177x136","173x173","280x308","195x214","248x191","155x196","163x203","320x444","158x162","176x203","412x700","360x88","360x616","167x167","130x144","280x233","560x314","320x299","372x275","320x178","372x242","360x352","353x294","260x182","372x310","335x344","374x432","414x500","374x360","220x338","150x146","335x239","176x176","320x302","374x260","360x568","191x221","192x192","372x558","335x188","320x358","335x258","374x575","26x26","353x360","360x206","335x248","335x322","167x256","560x364","155x172","163x216","163x181","360x257","374x561","374x243","220x212","177x148","291x324","167x160","375x749","335x387","172x172","260x302","414x700","220x254","177x172","374x519","176x169","320x352","335x233","150x203","360x207","158x121","360x396","158x131","150x98","220x169","182x202","320x179","372x413","181x226","353x200","158x153","375x628","176x271","374x364","320x492","374x247","414x833","353x393","335x218","560x399","412x264","293x164","56x56","177x204","248x382","181x181","118x118","260x346","374x497","260x202","393x251","158x158","372x200","373x414","320x229","177x177","312x175","374x312","84x84","320x329","177x194","353x350","335x503","335x446","335x326","374x200","158x182","320x237","335x221","176x196","150x229","320x224","248x276","360x299","260x289","196x216","335x279","177x272","320x426","260x172","155x194","320x369","372x350","360x302","360x402","169x186","158x242","173x199","167x185","360x238","220x123","320x308","414x265","374x350","300x333","177x170","320x222","320x311","260x169","150x173","320x246","353x265","192x222","158x151","372x414","150x144","760x502","314x176","320x208","182x182","320x211","163x163","372x279","360x202","360x252","260x252","260x286","353x392","160x104","374x281","353x353","150x231","320x267","372x372","177x197","275x154","158x175","374x374","150x167","260x146"].indexOf(n+"x"+l)>-1);else if(r.hasClass("tn-atom")||r.hasClass("tn-atom__img"));else{var w;r.hasClass("t-cover__carrier")||(f="resize"),n=(w=t_lazyload_round(f,n,l,100))[0],l=w[1]}"resize"==f&&n<30&&(p=!0),!0===h&&(a=!0===p||n>1e3||l>1e3||0==n||"IMG"!=t.tagName&&0==l?t_lazyload_getWebPUrl(a):t_lazyload_getResizeUrl(t.tagName,f,a,n,l,d,c,x)),"IMG"!==e.tagName&&"IFRAME"!==e.tagName?e.style.backgroundImage="url("+a+")":a&&e.setAttribute("src",a)}}function u(e,t){return function(){return e.apply(t,arguments)}}function f(l){a||(e={elements_selector:"img",container:window,threshold:300,throttle:50,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",skip_invisible:!0,show_while_loading:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},t=!!window.addEventListener,o=!!window.attachEvent,i=!!document.body.classList,a=!0),this._settings=function(e,t){var o,i={};for(o in e)e.hasOwnProperty(o)&&(i[o]=e[o]);for(o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);return i}(e,l),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._handleScrollFn=u(this.handleScroll,this),n(window,"resize",this._handleScrollFn),this.update(),this.loadAnimatedImages()}return f.prototype._showOnLoad=function(e){var t,o,i=this._settings;e.getAttribute("src")||e.setAttribute("src",i.placeholder),n(t=document.createElement("img"),"load",function o(){null!==i&&(i.callback_load&&i.callback_load(e),x(e,e,i.data_srcset,i.data_src),i.callback_set&&i.callback_set(e),c(e,i.class_loading),d(e,i.class_loaded),l(t,"load",o))}),n(t,"error",function(t){c(e,i.class_loading),i.callback_error&&i.callback_error(e),window.lazy_err="y",console.log("lazy loading err"),void 0!==t.path?t_lazyload_reloadonError(e,t.path[0].currentSrc,o):void 0!==t.target&&t_lazyload_reloadonError(e,t.target.currentSrc,o)}),d(e,i.class_loading),o=Date.now(),x(t,e,i.data_srcset,i.data_src)},f.prototype._showOnAppear=function(e){var t=this._settings;function o(){null!==t&&(t.callback_load&&t.callback_load(e),c(e,t.class_loading),d(e,t.class_loaded),l(e,"load",o))}"IMG"!==e.tagName&&"IFRAME"!==e.tagName||(n(e,"load",o),n(e,"error",function(i){l(e,"load",o),c(e,t.class_loading),t.callback_error&&t.callback_error(e),window.lazy_err="y",console.log("lazy loading err"),void 0!==i.path?t_lazyload_reloadonError(e,i.path[0].currentSrc,startTime):void 0!==i.target&&t_lazyload_reloadonError(e,i.target.currentSrc,startTime)}),d(e,t.class_loading)),startTime=Date.now(),x(e,e,t.data_srcset,t.data_src),t.callback_set&&t.callback_set(e)},f.prototype._loopThroughElements=function(){var e,t,o=this._settings,i=this._elements,a=i?i.length:0,n=[];for(e=0;e0;)i.splice(n.pop(),1),o.callback_processed&&o.callback_processed(i.length);0===a&&this._stopScrollHandler()},f.prototype._purgeElements=function(){var e,t=this._elements,o=t.length,i=[];for(e=0;e0;)t.splice(i.pop(),1)},f.prototype._startScrollHandler=function(){this._isHandlingScroll||(this._isHandlingScroll=!0,n(this._settings.container,"scroll",this._handleScrollFn))},f.prototype._stopScrollHandler=function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,l(this._settings.container,"scroll",this._handleScrollFn))},f.prototype.loadAnimatedImages=function(){var e,t,o=this._settings,i=this._elements,a=i?i.length:0,n=[];function l(e,t){var i=function(e,t){var o;if("trigger"===t){var i=e.attr("data-animate-sbs-trgels");o=$('[data-elem-id="'+i+'"]')}else"viewport"===t&&(o=e.parents(".t396"));return o?o.offset():null}(e,t);if(!i)return!1;var a=Math.abs(i.top-e.offset().top),n=Math.abs(i.left-e.offset().left);return a>o.threshold||n>o.threshold}for(e=0;e0;)i.splice(n.pop(),1),o.callback_processed&&o.callback_processed(i.length)},f.prototype.handleScroll=function(){var e,t,o;this._settings&&(t=s(),0!==(o=this._settings.throttle)?(e=o-(t-this._previousLoopTime))<=0||e>o?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=t,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(u(function(){this._previousLoopTime=s(),this._loopTimeout=null,this._loopThroughElements()},this),e)):this._loopThroughElements())},f.prototype.update=function(){this._elements=function(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){var o,i=[],a=e.length;for(o=0;o"),setTimeout(function(){$(".t-mbfix").addClass("t-mbfix_hide")},50),setTimeout(function(){$(".t-mbfix").remove()},1e3))},500),"yes"!=window.lazy_imgoptimoff&&$(window).bind("resize",t_throttle(function(){clearTimeout(window.t_lazyload_resize_timerid),window.t_lazyload_resize_timerid=setTimeout(t_lazyload_onWindowResize,1e3)},500)),setTimeout(function(){void 0!==window.performance&&(window.t_lazyload_domloaded=1*window.performance.timing.domContentLoadedEventEnd-1*window.performance.timing.navigationStart)},0)}),window.t_lazyload_updateResize_elem=function(e){if(0!=e.length){var t=e.get(0),o=t.tagName;if("IMG"==o)var i=e.attr("src"),a="-/resize/";else{i=e.css("background-image").replace("url(","").replace(")","").replace(/\"/gi,"");if("contain"==e.css("background-size"))a="-/contain/";else a="-/cover/"}if(!(void 0===i||-1===i.indexOf(a)||i.indexOf(".svg")>0||i.indexOf(".gif")>0||i.indexOf(".ico")>0||-1===i.indexOf("thumb.tildacdn.com")||i.indexOf("-/empty/")>0&&i.indexOf("-/resizeb/")>0)){var n=i.indexOf(a)+a.length,l=i.indexOf("/",n);if(n>0&&l>0){var r=i.slice(n,l).split("x"),s=t.clientWidth,d=t.clientHeight;if(s>0&&d>0&&(r[0]>0||r[1]>0)&&(r[0]>0&&s>r[0]||r[1]>0&&d>r[1])&&(r[0]>0&&s-r[0]>100||r[1]>0&&d-r[1]>100)){var c=i.slice(0,n)+(r[0]>0?s:"")+"x"+(r[1]>0?d:"")+i.substring(l);"IMG"==o?e.attr("src",c):e.css("background-image","url("+c+")")}}}}},function(e,t){e.uuid4=function(){var o=e.crypto||e.msCrypto;if(void 0!==o&&o.getRandomValues){var i=new Uint16Array(8);return o.getRandomValues(i),i[3]=4095&i[3]|16384,i[4]=16383&i[4]|32768,(o=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t})(i[0])+o(i[1])+o(i[2])+o(i[3])+o(i[4])+o(i[5])+o(i[6])+o(i[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var o=16*t.random()|0;return("x"===e?o:3&o|8).toString(16)})},e.capture_js_errors=function(t,o,i,a,n){var l=new XMLHttpRequest;l.open("POST","https://sysstat.tildacdn.com/api/js/error/",!0),l.setRequestHeader("Content-Type","application/json"),l.send(JSON.stringify({account_id:"ws",event_id:e.uuid4(),request:{url:e.location.href},exception:{values:[{type:n.name,value:t,stacktrace:{frames:[{filename:o,colno:a,lineno:i}]}}]},stacktrace:void 0!==n.stack?n.stack:""}))},e.onerror=function(t,o,i,a,n){e.capture_js_errors(t,o,i,a,n)}}(window,Math);