(function(){function z(m){"complete"===document.readyState||"interactive"===document.readyState?setTimeout(m,1):document.addEventListener("DOMContentLoaded",m)}"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&z(function(){var m=function(){function k(){for(var b=0,a=n.length;b'});a.container.innerHTML= '";a.item.el.classList.add("onevideo","onevideoloading");a.item.el.appendChild(a.container);a.video=a.container.children[0];a.video.onloadedmetadata=function(a){return function(){d.hasOwnProperty(a.item.playbackid)&&(a.video.currentTime=d[a.item.playbackid])}}(a);a.video.oncanplaythrough=function(a){return function(){var b= h(a.id);-1!==b&&(b=f[b],b.selected&&(b.el.classList.remove("onevideoloading"),a.video.play()))}}(a);a.video.ontimeupdate=function(a){return function(){a.container.style.opacity=1}}(a)}}else a.item.selected&&(a.item.selected=!1,g(a.item))}function g(b){performance.now();var a=b.el.querySelector(".videocontainer");null!==a&&(b.el.classList.remove("onevideo","onevideoloading"),b.el.removeChild(a),d[b.playbackid]=a.children[0].currentTime)}var f=[],d={},t=null,r=parseInt(window.innerWidth/10,10),z=Math.min(parseInt(window.innerHeight/ 3,10),100),v=0,w=0,x=0,y=0,A=0,u=0,l=!1,n=[];window.addEventListener("touchend",function(b){v=b.changedTouches[0].clientX;w=b.changedTouches[0].clientY},{passive:!0});window.addEventListener("mousemove",function(b){x=b.clientX;y=b.clientY},!1);var q=null;window.addEventListener("scroll",function(b){null===q?q=window.scrollY:(l=window.scrollY!=q,q=window.scrollY,l&&(v=w=0))},!1);var C=function(){try{if(5===A){if(!l){performance.now();var b=f.length;if(0===b)!l&&k();else{for(var a=b-1;0<=a;a--){var c= f[a],p=c.el.getBoundingClientRect();c.prevRect=c.rect;c.rect=p;!l&&(1e.rect.x&&xe.rect.y&&y