var once=true,oncet=true,cookieIndex='dfw8fk9sh48m72oeimj2a0gz';function secondsTimeSpanToHMS(s){var h=Math.floor(s/3600);s-=h*3600;var m=Math.floor(s/60);s-=m*60;return h+":"+(m<10?'0'+m:m)+":"+(s<10?'0'+s:s);}"undefined"!=typeof dsplayer&&dsplayer.on("play",function(){oncet&&(oncet=!1,setInterval(function(){var e=dsplayer.currentTime();if("0"!=e&&0!=e&&!$(".checkresume.clear").is(":visible"))if(dsplayer.remainingTime()<10)try{localStorage.setItem(cookieIndex,0)}catch(e){console.log(e.message)}else try{localStorage.setItem(cookieIndex,e)}catch(e){console.log(e.message)}},1e3));try{if(void 0!==localStorage[cookieIndex]&&localStorage[cookieIndex].length>0&&"0"!=localStorage[cookieIndex]&&once){once=!1;var e=localStorage[cookieIndex],o=secondsTimeSpanToHMS(e);if(-1!==o.indexOf(".")){var c=o.split(".");secondsTimeSpanToHMS234=c[0]}if($("#lefttime").html(secondsTimeSpanToHMS234),$(".checkresume.clear").show(),window.innerHeight<300){var n=window.innerHeight/300;checkresume_div.style.transform="scale("+n+")",checkresume_div_n.style.margin="0 0 0 0"}$("#yesplease").click(function(o){o.preventDefault(),$(".checkresume.clear").remove(),dsplayer.play(),dsplayer.currentTime(e)}),$("#no_thanks").click(function(e){e.preventDefault(),$(".checkresume.clear").remove()})}else once=!1}catch(e){console.log(e.message)}});setTimeout(function(){ try { var t = ["sandbox", "hasAttribute", "frameElement", "data", "indexOf", "href", "domain", "", "plugins", "undefined", "namedItem", "Chrome PDF Viewer", "object", "createElement", "onerror", "type", "application/pdf", "setAttribute", "style", "visibility:hidden;width:0;height:0;position:absolute;top:-99px;", "data:application/pdf;base64,JVBERi0xLg0KdHJhaWxlcjw8L1Jvb3Q8PC9QYWdlczw8L0tpZHNbPDwvTWVkaWFCb3hbMCAwIDMgM10+Pl0+Pj4+Pj4=", "appendChild", "body", "removeChild", "parentElement", "/embedblocked?referer=", "substring", "referrer"]; function n() { try { if (0) { var n = window.location.ancestorOrigins; if (n[n.length - 1].endsWith("ampproject.org") || false) return } } catch (e) {} setTimeout(function() { location[t[5]] = "/blocked" }, 900) }! function(e) { try { if (window[t[2]][t[1]](t[0])) return void e() } catch (e) {} if (0 == location[t[5]][t[4]](t[3]) || document[t[6]] != t[7]) {} else e() }(n), function() { try { document.domain = document.domain } catch (e) { try { if (-1 != e.toString().toLowerCase().indexOf("sandbox")) return !0 } catch (e) {} } return !1 }() && n(), function() { if (window.parent === window) return !1; try { var e = window.frameElement } catch (t) { e = null } return null === e ? "" === document.domain && "data:" !== location.protocol : e.hasAttribute("sandbox") }() && n() } catch (e) {} },1e3); function loadSrtFromUrl(e){var t;null!=(t=prompt("Please enter the URL of the SRT or VTT file you want to use"))&&""!=t&&"?srt=null"!=t&&"?srt="!=t&&(t=t.replace(/(^\w+:|^)\/\//,""),$.get("/load-sub/"+decodeURIComponent(t),{},function(e){var s=t.split("/");s=s[s.length-1];var a=dsplayer.addTextTrack("captions",s,s);a.mode="showing";var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder());n.oncue=function(e){a.addCue(e)},n.onparsingerror=function(e){},n.parse(e),n.flush(),window.setTimeout(function(){$(".vjs-menu-content").css("max-height","180px"),$(".vjs-menu-item:last").after('