var backFromHash=!1;window.history.pushState&&function(){var r=5,u=50,f=window.history.pushState,n=window.history.replaceState;window.history.pushState=function(){var t=Object.assign({},window.history.state,{__scrollX:window.scrollX,__scrollY:window.scrollY});n.call(window.history,t,"");f.apply(window.history,arguments)};window.history.replaceState=function(t){for(var f=Object.assign({},{__scrollX:window.history.state&&window.history.state.__scrollX,__scrollY:window.history.state&&window.history.state.__scrollY},t),r=arguments.length,u=Array(r>1?r-1:0),i=1;i<r;i++)u[i-1]=arguments[i];n.apply(window.history,[f].concat(u))};var t=null,i=function i(n){clearTimeout(t);var f=document.body,r=document.documentElement,e=Math.max(f.scrollWidth,f.offsetWidth,r.clientWidth,r.scrollWidth,r.offsetWidth),o=Math.max(f.scrollHeight,f.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);e-window.innerWidth>=n.x&&o-window.innerHeight>=n.y||Date.now()>n.latestTimeToTry?window.scrollTo(n.x,n.y):t=setTimeout(function(){return i(n)},u)},e=function(){var n=window.history.state;n&&Number.isFinite(n.__scrollX)&&Number.isFinite(n.__scrollY)&&setTimeout(function(){return i({x:n.__scrollX,y:n.__scrollY,latestTimeToTry:Date.now()+r})})},o=function(n){if(console.log("browser backward/forward ",n.state),window.location.hash.trim()===""){n.state.title&&(document.title=n.state.title);/\/(.+?)--\d+/.test(location.pathname)?(showDetailPage(),pageViewHit()):(hideDetailPage(),stopAllVideos(),pageViewHit(),view==viewTypes.Masonry&&$(".masonry").masonry({itemSelector:".oge"}),new Blazy({offset:500}));$("span.yukleniyor").hide();e()}};window.addEventListener("popstate",o,!1)}()