Linkify Plus Plus Test Page

Random test 1

Original from https://s.ytimg.com/yts/jsbin/player-zh_TW-vflh_Ak5f/base.js

var _yt_player={};(function(g){var window=this;var h;var n=function(a){return void 0!==a}; var q=function(a,b,c){a=a.split(".");c=c||r;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}; var u=function(a,b){for(var c=a.split("."),d=b||r,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}; var w=function(){}; var aa=function(a){a.getInstance=function(){return a.Mb?a.Mb:a.Mb=new a}}; var ba=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}; var ca=function(a){return null===a}; var da=function(a){return"array"==ba(a)}; var ea=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}; var z=function(a){return"string"==typeof a}; var fa=function(a){return"number"==typeof a}; var ga=function(a){return"function"==ba(a)}; var ia=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}; var ka=function(a){return a[la]||(a[la]=++ma)}; var na=function(a,b,c){return a.call.apply(a.bind,arguments)}; var oa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}; var A=function(a,b,c){A=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return A.apply(null,arguments)}; var pa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}; var qa=function(a,b){for(var c in b)a[c]=b[c]}; var ra=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a})); return a}; var B=function(a,b){function c(){} c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[c].apply(a,k)}}; var sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}; var ta=function(a,b){return 0==a.lastIndexOf(b,0)}; var ua=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; var C=function(a){return/^[\s\xa0]*$/.test(a)}; var va=function(a){return(0,window.encodeURIComponent)(String(a))}; var wa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))}; var xa=function(a){if(!ya.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(za,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Aa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ba,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Da,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ea,"&#0;"));return a}; var Fa=function(a){return Ga(a,"&")?"document"in r?Ha(a):Ia(a):a}; var Ha=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=r.document.createElement("div");return a.replace(Ja,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(f=String.fromCharCode(k))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})}; var Ia=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!(0,window.isNaN)(d))return String.fromCharCode(d)}return a}})}; var Ka=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}; var Ga=function(a,b){return-1!=a.indexOf(b)}; var La=function(a,b){return Ga(a.toLowerCase(),b.toLowerCase())}; var Ma=function(){var a;a="";var b=ra("Skip Ad \u00bb");a=a+b;b=new RegExp(Na("\u00bb"),"");return a.replace(b,"")}; var Na=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}; var Oa=function(a,b,c){a=n(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Pa("0",Math.max(0,b-c))+a}; var D=function(a){return null==a?"":String(a)}; var Qa=function(a){return Array.prototype.join.call(arguments,"")}; var Ra=function(a,b){for(var c=0,d=Sa(String(a)).split("."),e=Sa(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"",p=RegExp("(\\d*)(\\D*)","g"),v=RegExp("(\\d*)(\\D*)","g");do{var t=p.exec(l)||["","",""],y=v.exec(m)||["","",""];if(0==t[0].length&&0==y[0].length)break;c=Ta(0==t[1].length?0:(0,window.parseInt)(t[1],10),0==y[1].length?0:(0,window.parseInt)(y[1],10))||Ta(0==t[2].length,0==y[2].length)||Ta(t[2],y[2])}while(0==c)}return c}; var Ta=function(a,b){return a<b?-1:a>b?1:0}; var Ua=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b}; var Va=function(){return"goog_"+Wa++}; var Xa=function(a){var b=Number(a);return 0==b&&C(a)?window.NaN:b}; var Ya=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}; var Za=function(a){var b=z(void 0)?Na(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}; var $a=function(a){(0,window.isFinite)(a)&&(a=String(a));return z(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN}; var ab=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d}; var bb=function(a){return a}; var cb=function(a){return a[a.length-1]}; var db=function(a,b,c){b=eb(a,b,c);return 0>b?null:z(a)?a.charAt(b):a[b]}; var eb=function(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}; var fb=function(a,b){var c=gb(a,b,void 0);return 0>c?null:z(a)?a.charAt(c):a[c]}; var gb=function(a,b,c){for(var d=z(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}; var ib=function(a,b){return 0<=jb(a,b)}; var kb=function(a){return 0==a.length}; var lb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}; var nb=function(a,b){ib(a,b)||a.push(b)}; var ob=function(a,b){var c=jb(a,b),d;(d=0<=c)&&pb(a,c);return d}; var pb=function(a,b){Array.prototype.splice.call(a,b,1)}; var qb=function(a,b){var c=eb(a,b,void 0);0<=c&&pb(a,c)}; var rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)}; var sb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}; var tb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ea(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}}; var ub=function(a,b,c,d){Array.prototype.splice.apply(a,vb(arguments,1))}; var vb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; var wb=function(a,b,c){function d(a){return ia(a)?"o"+ka(a):(typeof a).charAt(0)+a} b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f}; var xb=function(a,b,c){return yb(a,c||zb,!1,b)}; var Ab=function(a,b){return yb(a,b,!0,void 0,void 0)}; var yb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,p;c?p=b.call(e,a[m],m,a):p=b(d,a[m]);0<p?f=m+1:(k=m,l=!p)}return l?f:~f}; var Bb=function(a,b){a.sort(b||zb)}; var Cb=function(a,b,c){var d=c||zb;Bb(a,function(a,c){return d(b(a),b(c))})}; var Db=function(a,b){Cb(a,function(a){return a[b]},void 0)}; var Eb=function(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}; var zb=function(a,b){return a>b?1:a<b?-1:0}; var Fb=function(a,b){return a===b}; var Gb=function(a,b,c){c=xb(a,b,c);0>c&&ub(a,-(c+1),0,b)}; var Hb=function(a,b,c){var d={};E(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; var Ib=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}; var Jb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(da(d))for(var e=0;e<d.length;e+=8192)for(var f=vb(d,e,e+8192),f=Jb.apply(null,f),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b}; var F=function(){this.Ra=this.Ra;this.Da=this.Da}; var G=function(a,b){Kb(a,pa(Lb,b))}; var Kb=function(a,b){a.Ra?b.call(void 0):(a.Da||(a.Da=[]),a.Da.push(n(void 0)?A(b,void 0):b))}; var Lb=function(a){a&&"function"==typeof a.dispose&&a.dispose()}; var Mb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Mb.apply(null,d):Lb(d)}}; var Ob=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; var Pb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; var Qb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; var Rb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; var Sb=function(a){var b=0,c;for(c in a)b++;return b}; var Tb=function(a,b){return Ub(a,b)}; var Vb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; var Wb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; var Xb=function(a,b){for(var c=ea(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}; var Yb=function(a,b){return null!==a&&b in a}; var Ub=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; var Zb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}; var $b=function(a,b){var c=Zb(a,b,void 0);return c&&a[c]}; var ac=function(a){for(var b in a)return!1;return!0}; var bc=function(a){for(var b in a)delete a[b]}; var cc=function(a,b){b in a&&delete a[b]}; var dc=function(a,b,c){return null!==a&&b in a?a[b]:c}; var ec=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; var fc=function(a){var b=ba(a);if("object"==b||"array"==b){if(ga(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=fc(a[c]);return b}return a}; var gc=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<hc.length;f++)c=hc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}; var ic=function(a){var b=arguments.length;if(1==b&&da(arguments[0]))return ic.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c}; var jc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.A=!1;this.qq=!0}; var kc=function(a){a.stopPropagation()}; var lc=function(a){lc[" "](a);return a}; var mc=function(a,b){try{return lc(a[b]),!0}catch(c){}return!1}; var nc=function(a){return Ga(oc,a)}; var pc=function(){return nc("Opera")||nc("OPR")}; var qc=function(){return(nc("Chrome")||nc("CriOS"))&&!pc()&&!nc("Edge")}; var rc=function(){return nc("iPhone")&&!nc("iPod")&&!nc("iPad")}; var sc=function(){var a=oc;if(tc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(uc)return/Edge\/([\d\.]+)/.exec(a);if(vc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(wc)return/WebKit\/(\S+)/.exec(a)}; var xc=function(){var a=r.document;return a?a.documentMode:void 0}; var yc=function(a){return zc[a]||(zc[a]=0<=Ra(Ac,a))}; var Cc=function(a,b){jc.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.o=this.state=null;a&&this.init(a,b)}; var Dc=function(a){return!(!a||!a[Ec])}; var Fc=function(a,b,c,d,e){this.listener=a;this.o=null;this.src=b;this.type=c;this.$e=!!d;this.Uc=e;this.key=++Gc;this.Hf=this.Kh=!1}; var Hc=function(a){a.Hf=!0;a.listener=null;a.o=null;a.src=null;a.Uc=null}; var Ic=function(a){this.src=a;this.o={};this.A=0}; var Jc=function(a,b,c,d,e,f){var k=b.toString();b=a.o[k];b||(b=a.o[k]=[],a.A++);var l=Kc(b,c,e,f);-1<l?(a=b[l],d||(a.Kh=!1)):(a=new Fc(c,a.src,k,!!e,f),a.Kh=d,b.push(a));return a}; var Lc=function(a,b){var c=b.type;if(!(c in a.o))return!1;var d=ob(a.o[c],b);d&&(Hc(b),0==a.o[c].length&&(delete a.o[c],a.A--));return d}; var Mc=function(a,b,c,d,e){a=a.o[b.toString()];b=-1;a&&(b=Kc(a,c,d,e));return-1<b?a[b]:null}; var Kc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Hf&&f.listener==b&&f.$e==!!c&&f.Uc==d)return e}return-1}; var Nc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Nc(a,b[f],c,d,e);return null}c=Oc(c);return Dc(a)?a.P(b,c,d,e):Pc(a,b,c,!1,d,e)}; var Pc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Qc(a);l||(a[Rc]=l=new Ic(a));c=Jc(l,b,c,d,e,f);if(c.o)return c;d=Sc();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Tc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Uc++;return c}; var Sc=function(){var a=Vc,b=Wc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c); if(!c)return c}; return b}; var Xc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Xc(a,b[f],c,d,e);return null}c=Oc(c);return Dc(a)?Jc(a.gd,String(b),c,!0,d,e):Pc(a,b,c,!0,d,e)}; var Yc=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)Yc(a,b[f],c,d,e);else c=Oc(c),Dc(a)?a.ya(b,c,d,e):a&&(a=Qc(a))&&(b=Mc(a,b,c,!!d,e))&&Zc(b)}; var Zc=function(a){if(fa(a)||!a||a.Hf)return!1;var b=a.src;if(Dc(b))return Lc(b.gd,a);var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.$e):b.detachEvent&&b.detachEvent(Tc(c),d);Uc--;(c=Qc(b))?(Lc(c,a),0==c.A&&(c.src=null,b[Rc]=null)):Hc(a);return!0}; var Tc=function(a){return a in $c?$c[a]:$c[a]="on"+a}; var ad=function(a,b,c,d){var e=!0;if(a=Qc(a))if(b=a.o[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.$e==c&&!f.Hf&&(f=bd(f,d),e=e&&!1!==f)}return e}; var bd=function(a,b){var c=a.listener,d=a.Uc||a.src;a.Kh&&Zc(a);return c.call(d,b)}; var Vc=function(a,b){if(a.Hf)return!0;if(!Wc){var c=b||u("window.event"),d=new Cc(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.A&&0<=k;k--){d.currentTarget=c[k];var l=ad(c[k],f,!0,d),e=e&&l}for(k=0;!d.A&&k<c.length;k++)d.currentTarget=c[k],l=ad(c[k],f,!1,d),e=e&&l}return e}return bd(a,new Cc(b, this))}; var Qc=function(a){a=a[Rc];return a instanceof Ic?a:null}; var Oc=function(a){if(ga(a))return a;a[cd]||(a[cd]=function(b){return a.handleEvent(b)}); return a[cd]}; var dd=function(){F.call(this);this.gd=new Ic(this);this.Ia=this;this.ka=null}; var ed=function(a,b,c,d){b=a.gd.o[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Hf&&k.$e==c){var l=k.listener,m=k.Uc||k.src;k.Kh&&Lc(a.gd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.qq}; var fd=function(a,b,c){this.D=c;this.B=a;this.C=b;this.A=0;this.o=null}; var gd=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; var hd=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}}; var id=function(a){r.setTimeout(function(){throw a;},0)}; var jd=function(a,b){var c=a;b&&(c=A(a,b));!ga(r.setImmediate)||r.Window&&r.Window.prototype&&!nc("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(kd||(kd=ld()),kd(c)):r.setImmediate(c)}; var ld=function(){var a=r.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!nc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=A(function(a){if(("*"==d||a.origin== d)&&a.data==c)this.port1.onmessage()},this); b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}}); if("undefined"!==typeof a&&!nc("Trident")&&!nc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.En;c.En=null;a()}}; return function(a){d.next={En:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT"); b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null}; window.document.documentElement.appendChild(b)}:function(a){r.setTimeout(a,0)}}; var md=function(){this.A=this.o=null}; var nd=function(){this.next=this.scope=this.o=null}; var od=function(a,b){pd||qd();rd||(pd(),rd=!0);var c=sd,d=td.get();d.set(a,b);c.A?c.A.next=d:c.o=d;c.A=d}; var qd=function(){if(r.Promise&&r.Promise.resolve){var a=r.Promise.resolve(void 0);pd=function(){a.then(ud)}}else pd=function(){jd(ud)}}; var ud=function(){for(var a=null;a=sd.remove();){try{a.o.call(a.scope)}catch(b){id(b)}td.put(a)}rd=!1}; var vd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}; var wd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; var yd=function(a,b){this.o=0;this.G=void 0;this.C=this.A=this.B=null;this.D=this.F=!1;if(a!=w)try{var c=this;a.call(b,function(a){zd(c,2,a)},function(a){zd(c,3,a)})}catch(d){zd(this,3,d)}}; var Ad=function(){this.next=this.context=this.A=this.B=this.o=null;this.C=!1}; var Bd=function(a,b,c){var d=Cd.get();d.B=a;d.A=b;d.context=c;return d}; var Dd=function(a){return new yd(function(b,c){c(a)})}; var Ed=function(a,b){return Fd(a,null,b,void 0)}; var Gd=function(a,b){if(0==a.o)if(a.B){var c=a.B;if(c.A){for(var d=0,e=null,f=null,k=c.A;k&&(k.C||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Gd(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Hd(c),Id(c,e,3,b)))}a.B=null}else zd(a,3,b)}; var Jd=function(a,b){a.A||2!=a.o&&3!=a.o||Kd(a);a.C?a.C.next=b:a.A=b;a.C=b}; var Fd=function(a,b,c,d){var e=Bd(null,null,null);e.o=new yd(function(a,k){e.B=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){k(p)}}:a; e.A=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Ld?k(b):a(e)}catch(p){k(p)}}:k}); e.o.B=a;Jd(a,e);return e.o}; var zd=function(a,b,c){if(0==a.o){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.o=1;var d;a:{var e=c,f=a.J,k=a.K;if(e instanceof yd)Jd(e,Bd(f||w,k||null,a)),d=!0;else if(wd(e))e.then(f,k,a),d=!0;else{if(ia(e))try{var l=e.then;if(ga(l)){Md(e,l,f,k,a);d=!0;break a}}catch(m){k.call(a,m);d=!0;break a}d=!1}}d||(a.G=c,a.o=b,a.B=null,Kd(a),3!=b||c instanceof Ld||Nd(a,c))}}; var Md=function(a,b,c,d,e){function f(a){l||(l=!0,d.call(e,a))} function k(a){l||(l=!0,c.call(e,a))} var l=!1;try{b.call(a,k,f)}catch(m){f(m)}}; var Kd=function(a){a.F||(a.F=!0,od(a.H,a))}; var Hd=function(a){var b=null;a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.C=null);return b}; var Id=function(a,b,c,d){if(3==c&&b.A&&!b.C)for(;a&&a.D;a=a.B)a.D=!1;if(b.o)b.o.B=null,Od(b,c,d);else try{b.C?b.B.call(b.context):Od(b,c,d)}catch(e){Pd.call(null,e)}Cd.put(b)}; var Od=function(a,b,c){2==b?a.B.call(a.context,c):a.A&&a.A.call(a.context,c)}; var Nd=function(a,b){a.D=!0;od(function(){a.D&&Pd.call(null,b)})}; var Ld=function(a){sa.call(this,a)}; var Qd=function(a,b){dd.call(this);this.o=a||1;this.A=b||r;this.B=A(this.bw,this);this.C=H()}; var Rd=function(a,b){a.o=b;a.xa&&a.enabled?(a.stop(),a.start()):a.xa&&a.stop()}; var Sd=function(a,b,c){if(ga(a))c&&(a=A(a,c));else if(a&&"function"==typeof a.handleEvent)a=A(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:r.setTimeout(a,b||0)}; var Td=function(a){r.clearTimeout(a)}; var Ud=function(a,b,c){F.call(this);this.o=a;this.C=b||0;this.A=c;this.B=A(this.bo,this)}; var Vd=function(a){a.stop();a.bo()}; var Wd=function(a){if(a.classList)return a.classList;a=a.className;return z(a)&&a.match(/\S+/g)||[]}; var Xd=function(a,b){return a.classList?a.classList.contains(b):ib(Wd(a),b)}; var I=function(a,b){a.classList?a.classList.add(b):Xd(a,b)||(a.className+=0<a.className.length?" "+b:b)}; var Yd=function(a,b){if(a.classList)E(b,function(b){I(a,b)}); else{var c={};E(Wd(a),function(a){c[a]=!0}); E(b,function(a){c[a]=!0}); a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}; var Zd=function(a,b){a.classList?a.classList.remove(b):Xd(a,b)&&(a.className=$d(Wd(a),function(a){return a!=b}).join(" "))}; var ae=function(a,b){a.classList?E(b,function(b){Zd(a,b)}):a.className=$d(Wd(a),function(a){return!ib(b,a)}).join(" ")}; var J=function(a,b,c){c?I(a,b):Zd(a,b)}; var be=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}; var ce=function(a){return eval("("+a+")")}; var de=function(a){return(new ee(void 0)).mc(a)}; var ee=function(a){this.o=a}; var fe=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],fe(a,a.o?a.o.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),ge(d,c),c.push(":"),fe(a,a.o?a.o.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ge(b, c);break;case "number":c.push((0,window.isFinite)(b)&&!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}; var ge=function(a,b){b.push('"',a.replace(ie,function(a){var b=je[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),je[a]=b);return b}),'"')}; var ke=function(a,b,c){return Math.min(Math.max(a,b),c)}; var le=function(a){return me(arguments,function(a,c){return a+c},0)}; var ne=function(a){return le.apply(null,arguments)/arguments.length}; var oe=function(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}; var pe=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; var qe=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; var re=function(a,b){this.width=a;this.height=b}; var se=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; var te=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; var ue=function(a){return new qe(a.top,a.left+a.width,a.top+a.height,a.left)}; var ve=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; var we=function(a){return new re(a.width,a.height)}; var xe=function(a){return new oe(a.left,a.top)}; var ye=function(a,b){return b?a.replace(ze,""):a}; var Ae=function(){this.o="";this.A=Be}; var Ce=function(a){return a instanceof Ae&&a.constructor===Ae&&a.A===Be?a.o:"type_error:Const"}; var De=function(a){var b=new Ae;b.o=a;return b}; var Ee=function(){this.o="";this.A=Fe}; var Ge=function(a){var b=new Ee;b.o=a;return b}; var He=function(){this.o="";this.A=Ie}; var Je=function(a){return a instanceof He&&a.constructor===He&&a.A===Ie?a.o:"type_error:SafeUrl"}; var Ke=function(a){if(a instanceof He)return a;a=a.Je?a.jd():String(a);Le.test(a)||(a="about:invalid#zClosurez");var b=new He;b.o=a;return b}; var Me=function(){this.o=Ne}; var Oe=function(a){return a instanceof Me&&a.constructor===Me&&a.o===Ne?"":"type_error:TrustedResourceUrl"}; var Pe=function(){this.o="";this.B=Qe;this.A=null}; var Re=function(a){return a instanceof Pe&&a.constructor===Pe&&a.B===Qe?a.o:"type_error:SafeHtml"}; var Se=function(a){function b(a){if(da(a))E(a,b);else{var f;a instanceof Pe?f=a:(f=null,a.Zk&&(f=a.ff()),a=xa(a.Je?a.jd():String(a)),f=Te(a,f));d+=Re(f);f=f.ff();0==c?c=f:0!=f&&c!=f&&(c=null)}} var c=0,d="";E(arguments,b);return Te(d,c)}; var Te=function(a,b){var c=new Pe;c.o=a;c.A=b;return c}; var Ue=function(a){return a?new Ve(We(a)):Xe||(Xe=new Ve)}; var Ye=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Ze("*",a,b)}; var $e=function(a,b){var c=b||window.document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Ze("*",a,b)[0];return d||null}; var Ze=function(a,b,c){var d=window.document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&ib(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c}; var af=function(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:bf.hasOwnProperty(d)?a.setAttribute(bf[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})}; var cf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new re(a.clientWidth,a.clientHeight)}; var df=function(a){var b=ef(a);a=a.parentWindow||a.defaultView;return vc&&yc("10")&&a.pageYOffset!=b.scrollTop?new oe(b.scrollLeft,b.scrollTop):new oe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; var ef=function(a){return a.scrollingElement?a.scrollingElement:wc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}; var ff=function(a){return a?a.parentWindow||a.defaultView:window}; var M=function(a,b,c){return gf(window.document,arguments)}; var gf=function(a,b){var c=b[0],d=b[1];if(!hf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',xa(d.name),'"');if(d.type){c.push(' type="',xa(d.type),'"');var e={};gc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(z(d)?c.className=d:da(d)?c.className=d.join(" "):af(c,d));2<b.length&&jf(a,c,b,2);return c}; var jf=function(a,b,c,d){function e(c){c&&b.appendChild(z(c)?a.createTextNode(c):c)} for(;d<c.length;d++){var f=c[d];!ea(f)||ia(f)&&0<f.nodeType?e(f):E(kf(f)?sb(f):f,e)}}; var lf=function(a){return window.document.createElement(a)}; var mf=function(a,b){a.appendChild(b)}; var nf=function(a,b){jf(We(a),a,arguments,1)}; var of=function(a){for(var b;b=a.firstChild;)a.removeChild(b)}; var pf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}; var qf=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)}; var rf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}; var sf=function(a){return tf&&void 0!=a.children?a.children:$d(a.childNodes,function(a){return 1==a.nodeType})}; var uf=function(a){return n(a.firstElementChild)?a.firstElementChild:vf(a.firstChild)}; var vf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}; var wf=function(a){var b;if(xf&&!(vc&&yc("9")&&!yc("10")&&r.SVGElement&&a instanceof r.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ia(b)&&1==b.nodeType?b:null}; var yf=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}; var We=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document}; var zf=function(a){try{return a.contentWindow||(a.contentDocument?ff(a.contentDocument):null)}catch(b){}return null}; var Af=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{of(a);var c=We(a);a.appendChild(c.createTextNode(String(b)))}}; var Bf=function(a){if("outerHTML"in a)return a.outerHTML;var b=We(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML}; var Cf=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Df(a)||Ef(a)):Df(a)&&Ef(a))&&vc){var c;!ga(a.getBoundingClientRect)||vc&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a}; var Df=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}; var Ef=function(a){a=a.tabIndex;return fa(a)&&0<=a&&32768>a}; var kf=function(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(ga(a))return"function"==typeof a.item}return!1}; var Ff=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Gf(a,function(a){return(!e||a.nodeName==e)&&(!c||z(a.className)&&ib(a.className.split(/\s+/),c))},d)}; var Hf=function(a,b){return Ff(a,null,b,void 0)}; var Gf=function(a,b,c){for(var d=null==c,e=0;a&&(d||e<=c);){if(b(a))return a;a=a.parentNode;e++}return null}; var Ve=function(a){this.o=a||r.document||window.document}; var If=function(a){a=a.o;return a.parentWindow||a.defaultView}; var Jf=function(a){return df(a.o)}; var Kf=function(){return wc?"Webkit":tc?"Moz":vc?"ms":Lf?"O":null}; var Mf=function(a,b,c){if(z(b))(b=Nf(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Nf(c,d);f&&(c.style[f]=e)}}; var Nf=function(a,b){var c=Of[b];if(!c){var d=Ya(b),c=d;void 0===a.style[d]&&(d=Kf()+Za(d),void 0!==a.style[d]&&(c=d));Of[b]=c}return c}; var Pf=function(a,b){var c=a.style[Ya(b)];return"undefined"!==typeof c?c:a.style[Nf(a,b)]||""}; var Qf=function(a,b){var c=We(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}; var Sf=function(a,b){return Qf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; var Tf=function(a,b,c){var d;b instanceof oe?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Uf(d,!1);a.style.top=Uf(b,!1)}; var Vf=function(a){return new oe(a.offsetLeft,a.offsetTop)}; var Wf=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}vc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}; var Xf=function(a){if(vc&&!(8<=Yf))return a.offsetParent;var b=We(a),c=Sf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Sf(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; var Zf=function(a){for(var b=new qe(0,window.Infinity,window.Infinity,0),c=Ue(a),d=c.o.body,e=c.o.documentElement,f=ef(c.o);a=Xf(a);)if(!(vc&&0==a.clientWidth||wc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Sf(a,"overflow")){var k=$f(a),l=new oe(a.clientLeft,a.clientTop);k.x+=l.x;k.y+=l.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top= Math.max(b.top,f);c=cf(If(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}; var $f=function(a){var b=We(a),c=new oe(0,0),d;d=b?We(b):window.document;var e;(e=!vc)||(e=9<=Yf);e||(e="CSS1Compat"==Ue(d).o.compatMode);if(a==(e?d.documentElement:d.body))return c;a=Wf(a);b=Jf(Ue(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}; var ag=function(a,b){var c=new oe(0,0),d=ff(We(a));if(!mc(d,"parent"))return c;var e=a;do{var f=d==b?$f(e):bg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c}; var cg=function(a,b){var c=dg(a),d=dg(b);return new oe(c.x-d.x,c.y-d.y)}; var bg=function(a){a=Wf(a);return new oe(a.left,a.top)}; var dg=function(a){if(1==a.nodeType)return bg(a);a=a.changedTouches?a.changedTouches[0]:a;return new oe(a.clientX,a.clientY)}; var eg=function(a,b,c){if(b instanceof re)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");fg(a,b);a.style.height=Uf(c,!0)}; var Uf=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; var fg=function(a,b){a.style.width=Uf(b,!0)}; var gg=function(a){return hg(a)}; var hg=function(a){var b=ig;if("none"!=Sf(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; var ig=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=wc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new re(b,c):(a=Wf(a),new re(a.right-a.left,a.bottom-a.top))}; var jg=function(a){var b=$f(a);a=hg(a);return new te(b.x,b.y,a.width,a.height)}; var kg=function(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")}; var lg=function(a,b){a.style.display=b?"":"none"}; var mg=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}; var ng=function(a){var b=Sf(a,"fontSize"),c;c=(c=b.match(og))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(vc){if(c in pg)return mg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in qg)return a=a.parentNode,c=Sf(a,"fontSize"),mg(a,b==c?"1em":b)}c=M("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;qf(c);return b}; var rg=function(){}; var sg=function(a){if(a instanceof rg)return a;if("function"==typeof a.Ub)return a.Ub(!1);if(ea(a)){var b=0,c=new rg;c.next=function(){for(;;){if(b>=a.length)throw tg;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");}; var ug=function(a,b,c){if(ea(a))try{E(a,b,c)}catch(d){if(d!==tg)throw d;}else{a=sg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==tg)throw d;}}}; var vg=function(a){if(ea(a))return sb(a);a=sg(a);var b=[];ug(a,function(a){b.push(a)}); return b}; var wg=function(a,b){this.A={};this.o=[];this.be=this.wa=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof wg?(c=a.Na(),d=a.Ka()):(c=Wb(a),d=Vb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}; var xg=function(a,b){return yg(a.A,b)}; var zg=function(a,b){return a===b}; var Ag=function(a){if(a.wa!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];yg(a.A,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.wa!=a.o.length){for(var e={},c=b=0;b<a.o.length;)d=a.o[b],yg(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}}; var yg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; var Bg=function(a){return a.Za&&"function"==typeof a.Za?a.Za():ea(a)||z(a)?a.length:Sb(a)}; var Cg=function(a){if(a.Ka&&"function"==typeof a.Ka)return a.Ka();if(z(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Vb(a)}; var Dg=function(a){if(a.Na&&"function"==typeof a.Na)return a.Na();if(!a.Ka||"function"!=typeof a.Ka){if(ea(a)||z(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Wb(a)}}; var Eg=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||z(a))E(a,b,c);else for(var d=Dg(a),e=Cg(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)}; var Fg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ea(a)||z(a))return Gg(a,b,c);for(var d=Dg(a),e=Cg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0}; var Hg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l}; var Ig=function(a){return a.match(Jg)}; var Kg=function(a){return a?(0,window.decodeURI)(a):a}; var Lg=function(a){return Kg(Ig(a)[3]||null)}; var Mg=function(a){return Number(Ig(a)[4]||null)||null}; var Ng=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,k=null;0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?wa(k):"")}}; var Og=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}; var Pg=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Pg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",va(b))}; var Qg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Pg(b[c],b[c+1],a);return a}; var Rg=function(a,b){for(var c in b)Pg(c,b[c],a);return a}; var Sg=function(a){a=Rg([],a);a[0]="";return a.join("")}; var Tg=function(a,b){return Og(2==arguments.length?Qg([a],arguments[1],0):Qg([a],arguments,1))}; var Ug=function(a,b){return Og(Rg([a],b))}; var Vg=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1}; var Wg=function(a,b){var c=a.search(Xg),d=Vg(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return wa(a.substr(d,e-d))}; var Yg=function(a,b){for(var c=a.search(Xg),d=0,e,f=[];0<=(e=Vg(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Zg,"$1")}; var $g=function(a,b,c){a=[Yg(a,b),"&",b];null!=c&&a.push("=",va(c));return Og(a)}; var N=function(a,b){this.A=this.H=this.C="";this.D=null;this.J=this.B="";this.F=!1;var c;a instanceof N?(this.F=n(b)?b:a.F,ah(this,a.C),this.H=a.H,bh(this,a.A),ch(this,a.D),dh(this,a.B),eh(this,a.o.clone()),this.J=a.Ce()):a&&(c=Ig(String(a)))?(this.F=!!b,ah(this,c[1]||"",!0),this.H=fh(c[2]||""),bh(this,c[3]||"",!0),ch(this,c[4]),dh(this,c[5]||"",!0),eh(this,c[6]||"",!0),this.J=fh(c[7]||"")):(this.F=!!b,this.o=new gh(null,0,this.F))}; var ah=function(a,b,c){a.C=c?fh(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))}; var hh=function(a){return a.A}; var bh=function(a,b,c){a.A=c?fh(b,!0):b;return a}; var ch=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a}; var dh=function(a,b,c){a.B=c?fh(b,!0):b}; var eh=function(a,b,c){b instanceof gh?(a.o=b,ih(a.o,a.F)):(c||(b=jh(b,kh)),a.o=new gh(b,0,a.F));return a}; var lh=function(a){return a.o}; var mh=function(a,b,c){a.o.set(b,c);return a}; var nh=function(a,b,c){da(c)||(c=[String(c)]);oh(a.o,b,c)}; var ph=function(a){mh(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^H()).toString(36));return a}; var qh=function(a){return a instanceof N?a.clone():new N(a,void 0)}; var rh=function(a,b,c,d){var e=new N(null,void 0);a&&ah(e,a);b&&bh(e,b);c&&ch(e,c);d&&dh(e,d);return e}; var fh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; var jh=function(a,b,c){return z(a)?(a=(0,window.encodeURI)(a).replace(b,sh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; var sh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; var gh=function(a,b,c){this.wa=this.o=null;this.A=a||null;this.B=!!c}; var th=function(a){a.o||(a.o=new wg,a.wa=0,a.A&&Ng(a.A,function(b,c){uh(a,wa(b),c)}))}; var uh=function(a,b,c){th(a);a.A=null;b=vh(a,b);var d=a.o.get(b);d||a.o.set(b,d=[]);d.push(c);a.wa++}; var wh=function(a,b){th(a);b=vh(a,b);return xg(a.o,b)}; var oh=function(a,b,c){a.remove(b);0<c.length&&(a.A=null,a.o.set(vh(a,b),sb(c)),a.wa+=c.length)}; var vh=function(a,b){var c=String(b);a.B&&(c=c.toLowerCase());return c}; var ih=function(a,b){b&&!a.B&&(th(a),a.A=null,a.o.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),oh(this,e,a))},a)); a.B=b}; var xh=function(a){var b=yh();a.innerHTML=b}; var zh=function(){return Ah?'<div class="ytp-icon ytp-icon-cast-desktop-on"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M17.17,22 L25,22 L25,14 L12,14 L12,16.76 C11.06,16.30 10.05,15.97 9,15.79 L9,11 L28,11 L28,25 L18.12,25 C17.94,23.94 17.62,22.93 17.17,22 L17.17,22 Z M15.09,26 C14.69,22.23 11.73,19.24 8,18.84 L8,17.11 C12.68,17.52 16.40,21.28 16.81,26 L15.09,26 Z M11.91,26 C11.55,23.99 9.99,22.41 8,22.05 L8,20.32 C10.93,20.71 13.24,23.03 13.62,26 L11.91,26 Z M8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L8,26 Z M13,17.31 L13,15 L24,15 L24,21 L16.63,21 C15.72,19.50 14.47,18.24 13,17.31 L13,17.31 Z" id="ytp-svg-5" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-5" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-5" /></svg>'}; var Bh=function(){return Ah?'<div class="ytp-icon ytp-icon-clip-clear"></div>':'<svg height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><path d="M14,14 L14,0 L0,0 L0,14 L14,14 Z" /><path d="M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z" fill="#fff" /></svg>'}; var Ch=function(){return Ah?'<div class="ytp-icon ytp-icon-clip-end"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z" id="ytp-svg-6" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-6" /><use fill="#eaeaea" xlink:href="#ytp-svg-6" /></svg>'}; var Dh=function(){return Ah?'<div class="ytp-icon ytp-icon-clip-start"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 14 14" width="100%"><defs><path d="M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z" id="ytp-svg-7" /></defs><use stroke="#000" stroke-opacity=".15" xlink:href="#ytp-svg-7" /><use fill="#eaeaea" xlink:href="#ytp-svg-7" /></svg>'}; var yh=function(){return Ah?'<div class="ytp-icon ytp-icon-close"></div>':'<svg height="100%" viewBox="0 0 24 24" width="100%"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="#fff" /></svg>'}; var Eh=function(){return'<svg height="100%" version="1.1" viewBox="0 0 22 22" width="100%"><svg x="7" y="1"><circle class="ytp-spinner-dot ytp-spinner-dot-0" cx="4" cy="4" r="2" /></svg><svg x="11" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-1" cx="4" cy="4" r="2" /></svg><svg x="13" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-2" cx="4" cy="4" r="2" /></svg><svg x="11" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-3" cx="4" cy="4" r="2" /></svg><svg x="7" y="13"><circle class="ytp-spinner-dot ytp-spinner-dot-4" cx="4" cy="4" r="2" /></svg><svg x="3" y="11"><circle class="ytp-spinner-dot ytp-spinner-dot-5" cx="4" cy="4" r="2" /></svg><svg x="1" y="7"><circle class="ytp-spinner-dot ytp-spinner-dot-6" cx="4" cy="4" r="2" /></svg><svg x="3" y="3"><circle class="ytp-spinner-dot ytp-spinner-dot-7" cx="4" cy="4" r="2" /></svg></svg>'}; var Fh=function(a,b){if(a in b)return b[a];var c=Gh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}; var Hh=function(a,b){var c;Ih(a,function(a){c=Fh(a,b);return!!c}); return c}; var Jh=function(a){var b=window.document;if("on"+a in b)return a;a=Gh+a;return"on"+a in b?a:null}; var Kh=function(){return!!Hh(["fullscreenEnabled","fullScreenEnabled"],window.document)}; var Lh=function(){return Hh(["fullscreenElement","fullScreenElement"],window.document)}; var Mh=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ec(Nh);this.assets=a.assets||{};this.attrs=a.attrs||ec(Oh);this.params=a.params||ec(Ph);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}; var Qh=function(a){window.chrome?Rh(0,a):a(null)}; var Rh=function(a,b){a==Sh.length?b(null):Th(Sh[a],function(c){c?b(Sh[a]):Rh(a+1,b)})}; var Th=function(a,b){var c=new window.XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)}; c.onerror=function(){b(!1)}; try{c.open("GET","chrome-extension://"+a+Uh,!0),c.send()}catch(d){b(!1)}}; var Vh=function(a){var b=window.document.createElement("script");b.src=a;(window.document.head||window.document.documentElement).appendChild(b)}; var Wh=function(){var a=window.navigator.userAgent;return 0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")}; var Xh=function(){if(window.navigator.presentation&&Wh())Vh("//www.gstatic.com/eureka/clank"+Uh);else{if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){a({command:"cast.sender.init"});return}}Qh(function(a){a?(window.chrome=window.chrome||{},window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=a,Vh("chrome-extension://"+a+Uh)):(a=window.__onGCastApiAvailable)&&"function"==typeof a&&a(!1, "No cast extension found")})}}; var Yh=function(a){Zh();$h.push(a);ai($h)}; var bi=function(a){var b=u("yt.mdx.remote.debug.handlers_");ob(b||[],a)}; var ci=function(a,b){Zh();var c=$h,d=di(a,String(b));kb(c)?ei(d):(ai(c),E(c,function(a){a(d)}))}; var Zh=function(){$h||($h=u("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",$h,void 0))}; var ei=function(a){var b=(fi+1)%50;fi=b;gi[b]=a;hi||(hi=49==b)}; var ai=function(a){var b=gi;if(b[0]){var c=fi,d=hi?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c); gi=Array(50);fi=-1;hi=!1}}; var di=function(a,b){var c=(H()-ii)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")}; var ji=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.o=a.uuid||a.dialId||""}; var ki=function(a,b){return!!b&&(a.id==b||a.o==b)}; var li=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.o==b.o:!0}; var mi=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.o}}; var ni=function(a){return new ji(a)}; var oi=function(a){return da(a)?O(a,ni):[]}; var pi=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.o?".."+a.o.slice(-6):"-")+"}":"null"}; var qi=function(a){return da(a)?"["+O(a,pi).join(",")+"]":"null"}; var ri=function(a,b,c){a&&(a.dataset?a.dataset[si(b)]=c:a.setAttribute("data-"+b,c))}; var si=function(a){return ti[a]||(ti[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))}; var ui=function(a){F.call(this);this.D=1;this.B=[];this.C=0;this.o=[];this.A={};this.F=Boolean(a)}; var vi=function(a,b,c){od(function(){a.apply(b,c)})}; var wi=function(a){xi(yi,arguments)}; var zi=function(a,b){return a in yi?yi[a]:b}; var Ai=function(a,b){ga(a)&&(a=Bi(a));return window.setTimeout(a,b)}; var Ci=function(a,b){ga(a)&&(a=Bi(a));return window.setInterval(a,b)}; var Di=function(a){window.clearTimeout(a)}; var Ei=function(a){window.clearInterval(a)}; var Bi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Fi(b),b;}}:a}; var Fi=function(a,b){var c=u("yt.logging.errors.log");c?c(a,b):(c=zi("ERRORS")||[],c.push([a,b]),wi("ERRORS",c))}; var Gi=function(a){xi(Hi,arguments)}; var P=function(a,b,c){var d=b||{};if(a=a in Hi?Hi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]}); return a}; var xi=function(a,b){if(1<b.length){var c=b[0];a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}}; var Ii=function(a,b,c){var d=Ji();if(d){var e=d.subscribe(a,function(){if(!Ki||Ki!=e){var d=arguments,k=function(){Li[e]&&b.apply(c||window,d)}; try{Mi[a]?k():Ai(k,0)}catch(l){Fi(l)}}},c); Li[e]=!0;Ni[a]||(Ni[a]=[]);Ni[a].push(e);return e}return 0}; var Oi=function(a){var b=Ji();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete Li[a]}))}; var Pi=function(a,b){var c=Ji();c&&c.publish.apply(c,arguments)}; var Qi=function(a,b){Mi[a]=!0;var c=Ji();c&&c.publish.apply(c,arguments);Mi[a]=!1}; var Ji=function(){return u("yt.pubsub.instance_")}; var Ri=function(){}; var Si=function(){}; var Ti=function(a){this.o=a}; var Ui=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.o=a}; var Vi=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.o=a}; var Wi=function(a){this.o=a}; var Xi=function(a){this.o=a}; var Yi=function(a){this.data=a}; var Zi=function(a){return!n(a)||a instanceof Yi?a:new Yi(a)}; var $i=function(a){this.o=a}; var aj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<H()||!!b&&b>H()}; var bj=function(a){this.o=a}; var cj=function(a,b){var c=[];ug(b,function(a){var b;try{b=bj.prototype.A.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}n(b)?aj(b)&&c.push(a):c.push(a)},a); return c}; var dj=function(a,b){var c=cj(a,b);E(c,function(a){bj.prototype.remove.call(this,a)},a)}; var ej=function(){var a=fj;dj(a,a.o.Ub(!0))}; var gj=function(a,b,c){var d=c&&0<c?c:0;c=d?H()+1E3*d:0;if((d=d?fj:hj)&&window.JSON){z(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}; var ij=function(a){if(!hj&&!fj||!window.JSON)return null;var b;try{b=hj.get(a)}catch(c){}if(!z(b))try{b=fj.get(a)}catch(c){}if(!z(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b}; var jj=function(a){hj&&hj.remove(a);fj&&fj.remove(a)}; var kj=function(a){var b=a.type;if(!n(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null;default:return n(a.value)?a.value:null}}; var lj=function(a,b){Ce(a);Ce(a);return Te(b,null)}; var mj=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");if(1==k.length&&k[0]||2==k.length){var l=wa(k[0]||""),k=wa(k[1]||"");l in d?da(d[l])?tb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d}; var nj=function(a,b){var c=[];Ob(a,function(a,b){var f=va(b),k;da(a)?k=a:k=[a];E(k,function(a){""==a?c.push(f):c.push(f+"="+va(a))})}); return c.join(b)}; var oj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return mj(a,"&")}; var pj=function(a){a=a.split(",");return a=a.map(function(a){return oj(a)})}; var qj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),oj(1<a.length?a[1]:a[0])):{}}; var rj=function(a,b){return sj(a,b||{},!0)}; var sj=function(a,b,c){var d=a.split("#",2);a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=oj(e[1]||""),f;for(f in b)if(c||!Yb(e,f))e[f]=b[f];return Ug(a,e)+d}; var tj=function(a){var b;b||(b=window.location.href);var c=Ig(a)[1]||null,d=Lg(a);c&&d?(a=Ig(a),b=Ig(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Lg(b)==d&&Mg(b)==Mg(a):!0;return a}; var uj=function(){var a;a||(a=window.document.location.href);a=Ig(a)[1]||null;return null!==a&&"https"==a}; var vj=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; var wj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Bi(b)(m)} var m=xj&&xj();if(!("open"in m))return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;c=(c||"GET").toUpperCase();d=d||"";m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);f="POST"==c;if(e=yj(a,e))for(var p in e)m.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(f=!1);f&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m}; var yj=function(a,b){b=b||{};for(var c in zj){var d=zi(zj[c]),e;if((e=d)&&!(e=tj(a))){e=c;var f=zi("CORS_HEADER_WHITELIST")||{},k=Lg(a);e=k?(f=f[k])?ib(f,e):!1:!0}e&&(b[c]=d)}return b}; var Aj=function(a,b){b.method="POST";b.Bb||(b.Bb={});Bj(a,b)}; var Cj=function(a,b){var c=zi("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.sJ&&(!Lg(a)||b.withCredentials||Lg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Bb&&b.Bb[c])}; var Bj=function(a,b){var c=b.format||"JSON";b.wJ&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=zi("XSRF_FIELD_NAME"),e=zi("XSRF_TOKEN"),f=b.Zc;f&&(f[d]&&delete f[d],a=rj(a,f));var k=b.postBody||"",f=b.Bb;Cj(a,b)&&(f||(f={}),f[d]=e);f&&z(k)&&(d=oj(k),gc(d,f),k=Sg(d));var l=!1,m,p=wj(a,function(a){if(!l){l=!0;m&&Di(m);var d=vj(a),e=null;if(d||400<=a.status&&500>a.status)e=Dj(c,a,b.Bv);if(d)a:{switch(c){case "XML":d= 0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||r;d?b.kb&&b.kb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Rb&&b.Rb.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials); b.Vd&&0<b.timeout&&(m=Ai(function(){l||(l=!0,p.abort(),Di(m),b.Vd.call(b.context||r,p))},b.timeout)); return p}; var Dj=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=ce(a));break;case "XML":if(b=(b=b.responseXML)?Ej(b):null)d={},E(b.getElementsByTagName("*"),function(a){d[a.tagName]=Fj(a)})}c&&Gj(d); return d}; var Gj=function(a){if(ia(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=lj(De("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Gj(a[b])}; var Ej=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}; var Fj=function(a){var b="";E(a.childNodes,function(a){b+=a.nodeValue}); return b}; var Hj=function(a){this.C=this.B="";this.o="/api/lounge";this.A=!0;a=a||window.document.location.href;var b=Mg(a)||"";b&&(this.C=":"+b);this.B=Lg(a)||"";a=oc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.A=!1))}; var Ij=function(a,b,c,d){var e=a.o;if(n(d)?d:a.A)e="https://"+a.B+a.C+a.o;return Ug(e+b,c||{})}; var Jj=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,kb:pa(a.F,d,!0),onError:pa(a.D,e),Vd:pa(a.G,e)};c&&(a.Bb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Bj(b,a)}; var Kj=function(a){this.o=this.name=this.id="";this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.o=a.activityId||"",this.status=a.status||"UNKNOWN")}; var Lj=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}; var Mj=function(a){return O(a,function(a){return{key:a.id,name:a.name}})}; var Nj=function(a){return O(a,function(a){return new Kj(a)})}; var Oj=function(a,b){return db(a,function(a){return a.id==b})}; var Pj=function(a,b){return db(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}; var Qj=function(a,b){return db(a,function(a){return ki(a,b)})}; var Rj=function(){F.call(this);this.S=new ui;G(this,this.S)}; var Sj=function(a){Rj.call(this);this.F=a;this.screens=[]}; var Tj=function(a,b){var c=a.get(b.o)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.o=b.o||c.o;return c.name!=d}a.screens.push(b);return!0}; var Uj=function(a,b){var c=a.screens.length!=b.length;a.screens=$d(a.screens,function(a){return!!Pj(b,a)}); for(var d=0,e=b.length;d<e;d++)c=Tj(a,b[d])||c;return c}; var Vj=function(a,b){var c=a.screens.length;a.screens=$d(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)}); return a.screens.length<c}; var Wj=function(a,b,c,d){Rj.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.o=null;this.xa=window.NaN}; var Xj=function(a,b){this.A=a;this.o=b+"::"}; var Yj=function(a){var b=new Ui;return b.isAvailable()?a?new Xj(b,a):b:null}; var Zj=function(a){this.o=new wg;if(a){a=Cg(a);for(var b=a.length,c=0;c<b;c++)ak(this,a[c])}}; var bk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}; var ak=function(a,b){a.o.set(bk(b),b)}; var ck=function(a,b){var c=Bg(b);if(a.Za()>c)return!1;!(b instanceof Zj)&&5<c&&(b=new Zj(b));return Fg(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.xe&&"function"==typeof c.xe?c.xe(a):ea(c)||z(c)?ib(c,a):Ub(c,a)})}; var dk=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Zj;this.theme="u";a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new Zj($d((a.capabilities||"").split(","),pa(Tb,ek))))}; var fk=function(a){this.o=a}; var gk=function(a){a=(a.o.cookie||"").split(hk);for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}}; var ik=function(a,b,c){jk.set(""+a,b,c,"/","youtube.com")}; var kk=function(){var a=lk(),b=mk();ib(a,b);nk()&&Gb(a,b);a=ok(a);if(kb(a))try{a="remote_sid",jk.remove(""+a,"/","youtube.com")}catch(c){}else try{ik("remote_sid",a.join(","),-1)}catch(c){}}; var lk=function(){var a=ij("yt-remote-connected-devices")||[];Bb(a);return a}; var ok=function(a){if(kb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return O(a,function(a,b){return 0==b?a:a.substring(c.length)})}; var pk=function(a){gj("yt-remote-connected-devices",a,86400)}; var mk=function(){if(qk)return qk;var a=ij("yt-remote-device-id");a||(a=Lj(),gj("yt-remote-device-id",a,31536E3));for(var b=lk(),c=1,d=a;ib(b,d);)c++,d=a+"#"+c;return qk=d}; var rk=function(){return ij("yt-remote-session-browser-channel")}; var nk=function(){return ij("yt-remote-session-screen-id")}; var sk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=O(tk(),function(a){return a.loungeToken}),c=O(a,function(a){return a.loungeToken}); Gg(c,function(a){return!ib(b,a)})&&uk(); gj("yt-remote-local-screens",a,31536E3)}; var tk=function(){return ij("yt-remote-local-screens")||[]}; var uk=function(){gj("yt-remote-lounge-token-expiration",!0,86400)}; var vk=function(a){gj("yt-remote-online-screens",a,60)}; var wk=function(){return ij("yt-remote-online-dial-devices")||[]}; var xk=function(a,b){gj("yt-remote-session-browser-channel",a);gj("yt-remote-session-screen-id",b);var c=lk(),d=mk();ib(c,d)||c.push(d);pk(c);kk()}; var yk=function(a){a||(jj("yt-remote-session-screen-id"),jj("yt-remote-session-video-id"));kk();a=lk();ob(a,mk());pk(a)}; var zk=function(){if(!Ak){var a=Yj();a&&(Ak=new Wi(a))}return Ak?!!Ak.get("yt-remote-use-staging-server"):!1}; var Bk=function(a){Sj.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;Ck(this);this.info("Initializing with "+qi(this.screens))}; var Dk=function(a){if(a.screens.length){var b=O(a.screens,function(a){return a.id}),c=Ij(a.A,"/pairing/get_lounge_token_batch"); Jj(a.A,c,{screen_ids:b.join(",")},A(a.pw,a),A(a.ow,a))}}; var Ck=function(a){var b=oi(tk()),b=$d(b,function(a){return!a.o}); return Uj(a,b)}; var Ek=function(a,b){sk(O(a.screens,mi));b&&uk()}; var Fk=function(a,b){Rj.call(this);this.D=b;for(var c=ij("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=ib(c,l)}this.o=d;this.F=a;this.B=this.C=window.NaN;this.A=null;Gk("Initialized with "+de(this.o))}; var Hk=function(a,b,c){var d=Ij(a.F,"/pairing/get_screen_availability");Jj(a.F,d,{lounge_token:b.token},A(function(a){a=a.screens||[];for(var d=0,k=a.length;d<k;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),A(function(){c(!1)},a))}; var Ik=function(a,b){var c;a:if(Sb(b)!=Sb(a.o))c=!1;else{c=Wb(b);for(var d=0,e=c.length;d<e;++d)if(!a.o[c[d]]){c=!1;break a}c=!0}c||(Gk("Updated online screens: "+de(a.o)),a.o=b,a.R("screenChange"));Jk(a)}; var Kk=function(a){(0,window.isNaN)(a.B)||Di(a.B);a.B=Ai(A(a.Jl,a),0<a.C&&a.C<H()?2E4:1E4)}; var Gk=function(a){ci("OnlineScreenService",a)}; var Lk=function(a){var b={};E(a.D(),function(a){a.token?b[a.token]=a.id:this.Ya("Requesting availability of screen w/o lounge token.")}); return b}; var Jk=function(a){var b=Wb(Pb(a.o,function(a){return a})); Bb(b);b.length?gj("yt-remote-online-screen-ids",b.join(","),60):jj("yt-remote-online-screen-ids");a=$d(a.D(),function(a){return!!this.o[a.id]},a); vk(O(a,mi))}; var Mk=function(a){Sj.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};Nk(this)}; var Ok=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.$b();if(k=(c?Qj(k,c):null)||Qj(k,b)){k.o=b;var l=Pk(a,k);Hk(a.o,l,function(a){e(a?l:null)})}else c?Qk(a,c,A(function(a){var f=Pk(this,new ji({name:d, screenId:c,loungeToken:a,dialId:b||""}));Hk(this.o,f,function(a){e(a?f:null)})},a),f):e(null)}; var Rk=function(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];return null}; var Qk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Bb:{screen_ids:b},method:"POST",context:a,kb:function(a,e){var l=e&&e.screens||[];l[0]&&l[0].screenId==b?c(l[0].loungeToken):d(Error("Missing lounge token in token response"))}, onError:function(){d(Error("Request screen lounge token failed"))}}; Bj(Ij(a.D,"/pairing/get_lounge_token_batch"),e)}; var Sk=function(a){a.screens=a.A.$b();var b=a.C,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.o=c[e.id]||""}a.info("Updated manual screens: "+qi(a.screens))}; var Nk=function(a){Tk(a);a.A=new Bk(a.D);a.A.subscribe("screenChange",A(a.Cw,a));Sk(a);a.B=oi(ij("yt-remote-automatic-screen-cache")||[]);Tk(a);a.info("Initializing automatic screens: "+qi(a.B));a.o=new Fk(a.D,A(a.$b,a,!0));a.o.subscribe("screenChange",A(function(){this.R("onlineScreenChange")},a))}; var Pk=function(a,b){var c=a.get(b.id);c?(c.o=b.o,b=c):((c=Qj(a.B,b.o))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),gj("yt-remote-automatic-screen-cache",O(a.B,mi)));Tk(a);a.C[b.o]=b.id;gj("yt-remote-device-id-map",a.C,31536E3);return b}; var Tk=function(a){a.C=ij("yt-remote-device-id-map")||{}}; var Uk=function(a,b,c){Rj.call(this);this.M=c;this.J=a;this.A=b;this.B=null}; var Vk=function(a,b){ci(a.M,b)}; var Wk=function(a,b){Uk.call(this,a,b,"CastSession");this.o=null;this.D=0;this.C=null;this.G=A(this.SC,this);this.F=A(this.EB,this);this.D=Ai(A(function(){Xk(this,null)},this),12E4)}; var Yk=function(a){var b=a.C.videoId||a.C.videoIds[a.C.index];b&&Zk(a,"flingVideo",{videoId:b,currentTime:a.C.currentTime||0});a.C=null}; var Zk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+de(c));var d={};d.type=b;c&&(d.data=c);a.o?a.o.sendMessage("urn:x-cast:com.google.youtube.mdx",d,w,A(function(){Vk(this,"Failed to send message: "+b+".")},a)):Vk(a,"Sending yt message without session: "+de(d))}; var Xk=function(a,b){Di(a.D);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.B||a.B.id!=b){var c=A(a.Ki,a),d=A(a.Xb,a);a.Zn(b,c,d,5)}}else a.Xb(Error("Waiting for session status timed out."))}; var $k=function(a,b){Uk.call(this,a,b,"DialSession");this.D=this.H=null;this.K="";this.C=null;this.G=w;this.F=window.NaN;this.L=A(this.VC,this);this.o=w}; var al=function(a){a.o=a.J.mr(a.K,a.A.label,a.A.friendlyName,A(function(a){this.o=w;this.Ki(a)},a),A(function(a){this.o=w; this.Xb(a)},a))}; var bl=function(a){var b={};b.pairingCode=a.K;if(a.C){var c=a.C.index||0,d=a.C.currentTime||0;b.v=a.C.videoId||a.C.videoIds[c];b.t=d}zk()&&(b.env_useStageMdx=1);return Sg(b)}; var cl=function(a,b){Uk.call(this,a,b,"ManualSession");this.o=Ai(A(this.Af,this,null),150)}; var dl=function(a){Rj.call(this);this.A=a;this.o=null;this.D=!1;this.B=[];this.C=A(this.zA,this)}; var el=function(a,b){return b?db(a.B,function(a){return ki(b,a.label)},a):null}; var fl=function(a){ci("Controller",a)}; var gl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)}; var hl=function(a){return a.D||!!a.B.length||!!a.o}; var il=function(a,b,c){Lb(a.o);(a.o=b)?(c?a.R("yt-remote-cast2-receiver-resumed",b.A):a.R("yt-remote-cast2-receiver-selected",b.A),b.subscribe("sessionScreen",A(a.Vp,a,b)),b.B?a.R("yt-remote-cast2-session-change",b.B):c&&a.o.Af(null)):a.R("yt-remote-cast2-session-change",null)}; var jl=function(a){var b=a.A.lr(),c=a.o&&a.o.A;a=O(b,function(a){c&&ki(a,c.label)&&(c=null);var b=a.o?a.o:a.id,f=el(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new window.chrome.cast.Receiver(b,a.name),f.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return f},a); c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a}; var kl=function(a,b,c){ll()?nl(b)&&(ol(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?pl(a,c):(window.__onGCastApiAvailable=function(b,e){b?pl(a,c):(ql("Failed to load cast API: "+e),rl(!1),ol(!1),jj("yt-remote-cast-available"),jj("yt-remote-cast-receiver"),sl(),c(!1))},Xh())):ml("Cannot initialize because not running Chrome")}; var sl=function(){ml("dispose");var a=tl();a&&a.dispose();ul=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);vl(!1);Oi(wl);wl.length=0}; var xl=function(){return!!ij("yt-remote-cast-installed")}; var yl=function(){var a=ij("yt-remote-cast-receiver");return a?Fa(a.friendlyName):null}; var zl=function(){return xl()?tl()?ul.getCastSession():(ql("getCastSelector: Cast is not initialized."),null):(ql("getCastSelector: Cast API is not installed!"),null)}; var Al=function(){xl()?tl()?Bl()?(ml("Requesting cast selector."),ul.requestSession()):(ml("Wait for cast API to be ready to request the session."),wl.push(Ii("yt-remote-cast2-api-ready",Al))):ql("requestCastSelector: Cast is not initialized."):ql("requestCastSelector: Cast API is not installed!")}; var Cl=function(a){Bl()?tl().setLaunchParams(a):ql("setLaunchParams called before ready.")}; var Dl=function(){var a=El();Bl()?tl().setConnectedScreenStatus(a,"YouTube TV"):ql("setConnectedScreenStatus called before ready.")}; var ll=function(){var a;a=0<=oc.search(/\ (CrMo|Chrome|CriOS)\//);return Fl||a}; var Gl=function(a,b){ul.init(a,b)}; var nl=function(a){var b=!1;if(!ul){var c=u("yt.mdx.remote.cloudview.instance_");c||(c=new dl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){gj("yt-remote-cast-available",a);Pi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){ml("onReceiverSelected: "+a.friendlyName); gj("yt-remote-cast-receiver",a);Pi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){ml("onReceiverResumed: "+a.friendlyName); gj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){ml("onSessionChange: "+pi(a)); a||jj("yt-remote-cast-receiver");Pi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0); ul=c}ml("cloudview.createSingleton_: "+b);return b}; var tl=function(){ul||(ul=u("yt.mdx.remote.cloudview.instance_"));return ul}; var pl=function(a,b){rl(!0);ol(!1);Gl(a,function(a){a?(vl(!0),Pi("yt-remote-cast2-api-ready")):(ql("Failed to initialize cast API."),rl(!1),jj("yt-remote-cast-available"),jj("yt-remote-cast-receiver"),sl());b(a)})}; var ml=function(a){ci("cloudview",a)}; var ql=function(a){ci("cloudview",a)}; var rl=function(a){ml("setCastInstalled_ "+a);gj("yt-remote-cast-installed",a)}; var Bl=function(){return!!u("yt.mdx.remote.cloudview.apiReady_")}; var vl=function(a){ml("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}; var ol=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}; var Hl=function(a,b){this.action=a;this.params=b||null}; var Il=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in Jl||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b= b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.o=a.pageX;this.A=a.pageY}}; var Kl=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.o=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.A=a.clientY+b}}; var Ll=function(a,b,c,d){return Zb(Ml,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}; var Nl=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Ll(a,b,c,d);if(e)return e;var e=++Ol.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Il(d);if(!Gf(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Il(b); b.currentTarget=a;return c.call(a,b)}; k=Bi(k);Ml[e]=[a,b,c,k,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",k,d):"mouseleave"==b&&f?a.addEventListener("mouseout",k,d):"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style?a.addEventListener("MozMousePixelScroll",k,d):a.addEventListener(b,k,d):a.attachEvent("on"+b,k);return e}; var Pl=function(a,b,c){var d;return d=Nl(a,b,function(){Ql(d);c.apply(a,arguments)},void 0)}; var Sl=function(a,b){return Tl(a,b,function(a){return Xd(a,"iv-card-poll-choice-input")})}; var Tl=function(a,b,c){var d=a||window.document;return Nl(d,"change",function(a){var f=Gf(a.target,function(a){return a===d||c(a)}); f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})}; var Ql=function(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in Ml){var c=Ml[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete Ml[a]}}))}; var Ul=function(a){for(var b in Ml)Ml[b][0]==a&&Ql(b)}; var Vl=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}; var Wl=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:Vl(a)}; var Xl=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b}; var Yl=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new oe(b,c)}; var Zl=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}; var $l=function(a){a=a||window.event;return!1===a.returnValue||a.Oo&&a.Oo()}; var am=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}; var bm=function(a,b){var c=0;"MozMousePixelScroll"==a.type?c=b==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?c=b?0:a.detail:c=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?(b?a.wheelDeltaX:a.wheelDeltaY)/-30:(b?a.wheelDeltaX:a.wheelDeltaY)/-1.2:b?0:a.wheelDelta/-1.6:(b?a.wheelDeltaX:a.wheelDeltaY)/-3;return c}; var cm=function(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}; var dm=function(a){ci("CAST",a)}; var em=function(a){var b=fm();b&&b.logMessage&&b.logMessage(a)}; var gm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;hm.length;)hm.shift()()}; var im=function(){if(!u("yt.mdx.remote.castv2_")&&!jm&&(kb(km)&&tb(km,wk()),cm())){var a=fm();a?(a.removeReceiverListener("YouTube",lm),a.addReceiverListener("YouTube",lm),dm("API initialized in the other binary")):(a=new window.cast.Api,mm(a),a.addReceiverListener("YouTube",lm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){Ai(function(){window.location.reload(!0)},1E3)}),Yh(em),dm("API initialized")); jm=!0}}; var nm=function(){var a=fm();a&&(dm("API disposed"),bi(em),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(w),a.removeReceiverListener("YouTube",lm),mm(null));jm=!1;hm=null;(a=Ll(window,"message",gm,!1))&&Ql(a)}; var om=function(a){var b=eb(km,function(b){return b.id==a.id}); 0<=b&&(km[b]={id:a.id,name:a.name,activityId:a.o,status:a.status})}; var lm=function(a){a.length&&dm("Updating receivers: "+de(a));pm(a);Pi("yt-remote-cast-device-list-update");E(qm(),function(a){rm(a.id)}); E(a,function(a){if(a.isTabProjected){var c=sm(a.id);dm("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");Ai(function(){Pi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}; var tm=function(a,b){dm("Updating "+a+" activity status: "+de(b));var c=sm(a);c?(b.activityId&&(c.o=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.o=""),om(c),Pi("yt-remote-cast-device-status-update",c)):dm("Device not found")}; var qm=function(){im();return Nj(km)}; var pm=function(a){a=O(a,function(a){var c={id:a.id,name:Fa(a.name)};if(a=sm(a.id))c.activityId=a.o,c.status=a.status;return c}); lb(km);tb(km,a)}; var sm=function(a){var b=qm();return db(b,function(b){return b.id==a})||null}; var rm=function(a){var b=sm(a),c=fm();c&&b&&b.o&&c.getActivityStatus(b.o,function(b){"error"==b.status&&(b.status="stopped");tm(a,b)})}; var um=function(a){im();var b=sm(a),c=fm();c&&b&&b.o?(dm("Stopping cast activity"),c.stopActivity(b.o,pa(tm,a))):dm("Dropping cast activity stop")}; var fm=function(){return u("yt.mdx.remote.castapi.api_")}; var mm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)}; var vm=function(){}; var wm=function(){this.o=H()}; var xm=function(a,b){this.A=new ee(a);this.o=b?ce:be}; var ym=function(a){this.A=0;this.B=a||100;this.o=[]}; var zm=function(a,b){if(b>=a.o.length)throw Error("Out of bounds exception");return a.o.length<a.B?b:(a.A+Number(b))%a.B}; var Am=function(a,b,c){F.call(this);this.C=null!=c?A(a,c):a;this.B=b;this.A=A(this.YA,this);this.o=[]}; var Bm=function(a){a.xa=Sd(a.A,a.B);a.C.apply(null,a.o)}; var Cm=function(a){F.call(this);this.C=a;this.A={}}; var Dm=function(a,b,c,d,e){Em(a,b,c,d,!1,e)}; var Em=function(a,b,c,d,e,f){da(c)||(c&&(Fm[0]=c.toString()),c=Fm);for(var k=0;k<c.length;k++){var l=Nc(b,c[k],d||a.handleEvent,e||!1,f||a.C||a);if(!l)break;a.A[l.key]=l}return a}; var Gm=function(a,b,c,d){Hm(a,b,c,d,void 0)}; var Im=function(a,b,c,d,e){Hm(a,b,c,d,!1,e)}; var Hm=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Hm(a,b,c[k],d,e,f);else(b=Xc(b,c,d||a.handleEvent,e,f||a.C||a))&&(a.A[b.key]=b)}; var Jm=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; var Km=function(){}; var Lm=function(a){var b;(b=a.o)||(b={},Mm(a)&&(b[0]=!0,b[1]=!0),b=a.o=b);return b}; var Nm=function(){}; var Om=function(a){return(a=Mm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest}; var Mm=function(a){if(!a.A&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.A=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.A}; var Pm=function(a,b,c,d,e){this.o=a;this.B=c;this.H=d;this.G=e||1;this.D=45E3;this.C=new Cm(this);this.A=new Qd;Rd(this.A,250)}; var Qm=function(a,b,c){a.kf=1;a.Md=ph(b.clone());a.Me=c;a.F=!0;Rm(a,null)}; var Sm=function(a,b,c,d,e){a.kf=1;a.Md=ph(b.clone());a.Me=null;a.F=c;e&&(a.yq=!1);Rm(a,d)}; var Rm=function(a,b){a.Sg=H();Tm(a);a.Zd=a.Md.clone();nh(a.Zd,"t",a.G);a.bh=0;a.vb=a.o.jk(a.o.Xg()?b:null);0<a.Hk&&(a.Oi=new Am(A(a.Zq,a,a.vb),a.Hk));a.C.P(a.vb,"readystatechange",a.RB);var c=a.Ee?ec(a.Ee):{};a.Me?(a.ij="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.vb.send(a.Zd,a.ij,a.Me,c)):(a.ij="GET",a.yq&&!wc&&(c.Connection="close"),a.vb.send(a.Zd,a.ij,null,c));a.o.Hc(1)}; var Um=function(a,b,c){for(var d=!0;!a.te&&a.bh<c.length;){var e=Vm(a,c);if(e==Wm){4==b&&(a.Fe=4,Xm(),d=!1);break}else if(e==Ym){a.Fe=4;Xm();d=!1;break}else Zm(a,e)}4==b&&0==c.length&&(a.Fe=1,Xm(),d=!1);a.Jc=a.Jc&&d;d||($m(a),an(a))}; var Vm=function(a,b){var c=a.bh,d=b.indexOf("\n",c);if(-1==d)return Wm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Ym;d+=1;if(d+c>b.length)return Wm;var e=b.substr(d,c);a.bh=d+c;return e}; var bn=function(a,b){a.Sg=H();Tm(a);var c=b?window.location.hostname:"";a.Zd=a.Md.clone();mh(a.Zd,"DOMAIN",c);mh(a.Zd,"t",a.G);try{a.Kc=new window.ActiveXObject("htmlfile")}catch(p){$m(a);a.Fe=7;Xm();an(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e=e+"\\x3c";else if(">"==k)e=e+"\\x3e";else{if(k in cn)k=cn[k];else if(k in dn)k=cn[k]=dn[k];else{var l=k,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u", 4096>m&&(l+="0");l+=m.toString(16).toUpperCase()}k=cn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=lj(De("b/12014412"),d);a.Kc.open();a.Kc.write(Re(c));a.Kc.close();a.Kc.parentWindow.m=A(a.gB,a);a.Kc.parentWindow.d=A(a.aq,a,!0);a.Kc.parentWindow.rpcClose=A(a.aq,a,!1);c=a.Kc.createElement("DIV");a.Kc.parentWindow.document.body.appendChild(c);d=Ke(a.Zd.toString());d=xa(Je(d));d=lj(De("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Re(d);a.o.Hc(1)}; var Tm=function(a){a.lm=H()+a.D;en(a,a.D)}; var en=function(a,b){if(null!=a.Uf)throw Error("WatchDog timer not null");a.Uf=fn(A(a.xB,a),b)}; var gn=function(a){a.Uf&&(r.clearTimeout(a.Uf),a.Uf=null)}; var an=function(a){a.o.co()||a.te||a.o.Ji(a)}; var $m=function(a){gn(a);Lb(a.Oi);a.Oi=null;a.A.stop();a.C.removeAll();if(a.vb){var b=a.vb;a.vb=null;hn(b);b.dispose()}a.Kc&&(a.Kc=null)}; var Zm=function(a,b){try{a.o.Rp(a,b),a.o.Hc(4)}catch(c){}}; var jn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;kn(a,b,function(e){e?c(!0):r.setTimeout(function(){jn(a,b,c,d,f)},f)})}}; var kn=function(a,b,c){var d=new window.Image;d.onload=function(){try{ln(d),c(!0)}catch(a){}}; d.onerror=function(){try{ln(d),c(!1)}catch(a){}}; d.onabort=function(){try{ln(d),c(!1)}catch(a){}}; d.ontimeout=function(){try{ln(d),c(!1)}catch(a){}}; r.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b); d.src=a}; var ln=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null}; var mn=function(a){this.o=a;this.A=new xm(null,!0)}; var nn=function(a){var b=on(a.o,a.ng,"/mail/images/cleardot.gif");ph(b);jn(b.toString(),5E3,A(a.pv,a),3,2E3);a.Hc(1)}; var pn=function(a){var b=a.o.J;if(null!=b)Xm(),b?(Xm(),qn(a.o,a,!1)):(Xm(),qn(a.o,a,!0));else if(a.Yb=new Pm(a,0,void 0,void 0,void 0),a.Yb.Ee=a.Ek,b=a.o,b=on(b,b.Xg()?a.Cg:null,a.Gk),Xm(),!vc||10<=Yf)nh(b,"TYPE","xmlhttp"),Sm(a.Yb,b,!1,a.Cg,!1);else{nh(b,"TYPE","html");var c=a.Yb;a=Boolean(a.Cg);c.kf=3;c.Md=ph(b.clone());bn(c,a)}}; var rn=function(a){dd.call(this);this.headers=new wg;this.M=a||null;this.B=!1;this.L=this.o=null;this.U=this.H="";this.A=0;this.F="";this.C=this.O=this.G=this.S=!1;this.D=0;this.J=null;this.Y="";this.K=this.V=!1}; var sn=function(a,b){a.D=Math.max(0,b)}; var tn=function(a){return vc&&yc(9)&&fa(a.timeout)&&n(a.ontimeout)}; var un=function(a){return"content-type"==a.toLowerCase()}; var vn=function(a,b){a.B=!1;a.o&&(a.C=!0,a.o.abort(),a.C=!1);a.F=b;a.A=5;wn(a);xn(a)}; var wn=function(a){a.S||(a.S=!0,a.$("complete"),a.$("error"))}; var hn=function(a,b){a.o&&a.B&&(yn(a,"Aborting"),a.B=!1,a.C=!0,a.o.abort(),a.C=!1,a.A=b||7,a.$("complete"),a.$("abort"),xn(a))}; var zn=function(a){if(a.B&&"undefined"!=typeof An)if(a.L[1]&&4==Bn(a)&&2==a.getStatus())yn(a,"Local request error detected and ignored");else if(a.G&&4==Bn(a))Sd(a.Np,0,a);else if(a.$("readystatechange"),4==Bn(a)){yn(a,"Request complete");a.B=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=Ig(String(a.H))[1]||null;if(!f&&r.self&&r.self.location)var k=r.self.location.protocol, f=k.substr(0,k.length-1);e=!Cn.test(f?f.toLowerCase():"")}d=e}if(d)a.$("complete"),a.$("success");else{a.A=6;var l;try{l=2<Bn(a)?a.o.statusText:""}catch(m){l=""}a.F=l+" ["+a.getStatus()+"]";wn(a)}}finally{xn(a)}}}; var xn=function(a,b){if(a.o){Dn(a);var c=a.o,d=a.L[0]?w:null;a.o=null;a.L=null;b||a.$("ready");try{c.onreadystatechange=d}catch(e){}}}; var Dn=function(a){a.o&&a.K&&(a.o.ontimeout=null);fa(a.J)&&(Td(a.J),a.J=null)}; var Bn=function(a){return a.o?a.o.readyState:0}; var En=function(a){try{return a.o?a.o.responseText:""}catch(b){return""}}; var yn=function(a,b){return b+" ["+a.U+" "+a.H+" "+a.getStatus()+"]"}; var Fn=function(a,b,c){this.G=a||null;this.o=1;this.A=[];this.C=[];this.D=new xm(null,!0);this.H=b||null;this.J=null!=c?c:null}; var Gn=function(a,b){this.o=a;this.map=b;this.context=null}; var Hn=function(a){jc.call(this,"statevent",a)}; var In=function(a,b){jc.call(this,"timingevent",a);this.size=b}; var Jn=function(a){jc.call(this,"serverreachability",a)}; var Kn=function(a){Ln(a);if(3==a.o){var b=a.Kg++,c=a.$h.clone();mh(c,"SID",a.B);mh(c,"RID",b);mh(c,"TYPE","terminate");Mn(a,c);b=new Pm(a,0,a.B,b,void 0);b.kf=2;b.Md=ph(c.clone());(new window.Image).src=b.Md;b.Sg=H();Tm(b)}Nn(a)}; var Ln=function(a){if(a.Id){var b=a.Id;b.Yb&&(b.Yb.cancel(),b.Yb=null);b.kd=-1;a.Id=null}a.ob&&(a.ob.cancel(),a.ob=null);a.ed&&(r.clearTimeout(a.ed),a.ed=null);On(a);a.Pb&&(a.Pb.cancel(),a.Pb=null);a.Jd&&(r.clearTimeout(a.Jd),a.Jd=null)}; var Pn=function(a,b){if(0==a.o)throw Error("Invalid operation: sending map when state is closed");a.A.push(new Gn(a.Xx++,b));2!=a.o&&3!=a.o||Qn(a)}; var Qn=function(a){a.Pb||a.Jd||(a.Jd=fn(A(a.Yp,a),0),a.xg=0)}; var Rn=function(a,b){if(1==a.o){if(!b){a.Kg=Math.floor(1E5*Math.random());var c=a.Kg++,d=new Pm(a,0,"",c,void 0);d.Ee=null;var e=Sn(a),f=a.$h.clone();mh(f,"RID",c);a.G&&mh(f,"CVER",a.G);Mn(a,f);Qm(d,f,e);a.Pb=d;a.o=2}}else 3==a.o&&(b?Tn(a,b):0!=a.A.length&&(a.Pb||Tn(a)))}; var Tn=function(a,b){var c,d;b?6<a.ve?(a.A=a.C.concat(a.A),a.C.length=0,c=a.Kg-1,d=Sn(a)):(c=b.H,d=b.Me):(c=a.Kg++,d=Sn(a));var e=a.$h.clone();mh(e,"SID",a.B);mh(e,"RID",c);mh(e,"AID",a.zf);Mn(a,e);c=new Pm(a,0,a.B,c,a.xg+1);c.Ee=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Pb=c;Qm(c,e,d)}; var Mn=function(a,b){if(a.Hb){var c=a.Hb.Un(a);c&&Ob(c,function(a,c){mh(b,c,a)})}}; var Sn=function(a){var b=Math.min(a.A.length,1E3),c=["count="+b],d;6<a.ve&&0<b?(d=a.A[0].o,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.A[e].o,k=a.A[e].map,f=6>=a.ve?e:f-d;try{Eg(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.C=a.C.concat(a.A.splice(0,b)); return c.join("&")}; var Un=function(a){a.ob||a.ed||(a.F=1,a.ed=fn(A(a.Xp,a),0),a.Ze=0)}; var Vn=function(a){if(a.ob||a.ed||3<=a.Ze)return!1;a.F++;a.ed=fn(A(a.Xp,a),Wn(a,a.Ze));a.Ze++;return!0}; var qn=function(a,b,c){a.hj=c;a.Dc=b.kd;a.Nv(1,0);a.$h=on(a,null,a.Dk);Qn(a)}; var On=function(a){null!=a.ye&&(r.clearTimeout(a.ye),a.ye=null)}; var Wn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}; var Xn=function(a,b){if(2==b||9==b){var c=null;a.Hb&&(c=null);var d=A(a.qC,a);c||(c=new N("//www.google.com/images/cleardot.gif"),ph(c));kn(c.toString(),1E4,d)}else Xm();Yn(a,b)}; var Yn=function(a,b){a.o=0;a.Hb&&a.Hb.Fn(a,b);Nn(a);Ln(a)}; var Nn=function(a){a.o=0;a.Dc=-1;if(a.Hb)if(0==a.C.length&&0==a.A.length)a.Hb.bk(a);else{var b=sb(a.C),c=sb(a.A);a.C.length=0;a.A.length=0;a.Hb.bk(a,b,c)}}; var on=function(a,b,c){var d=qh(c);if(""!=d.A)b&&bh(d,b+"."+d.A),ch(d,d.D);else var e=window.location,d=rh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.vg&&Ob(a.vg,function(a,b){mh(d,b,a)}); mh(d,"VER",a.ve);Mn(a,d);return d}; var fn=function(a,b){if(!ga(a))throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){a()},b)}; var Xm=function(){Zn.$(new Hn(Zn))}; var $n=function(){}; var ao=function(a,b){Qd.call(this);this.D=0;if(ga(a))b&&(a=A(a,b));else if(a&&ga(a.handleEvent))a=A(a.handleEvent,a);else throw Error("Invalid listener argument");this.G=a;Nc(this,"tick",A(this.F,this));this.stop();Rd(this,5E3+2E4*Math.random())}; var bo=function(a,b){this.L=a;this.C=b;this.B=new ui;this.A=new ao(this.LC,this);this.o=null;this.K=!1;this.F=null;this.J="";this.H=this.D=0;this.G=[]}; var co=function(a){return{firstTestResults:[""],secondTestResults:!a.o.hj,sessionId:a.o.B,arrayId:a.o.zf}}; var eo=function(a,b){a.H=b||0;a.A.stop();a.o&&(3==a.o.o&&Rn(a.o),Kn(a.o));a.H=0}; var fo=function(a,b){(a.C.loungeIdToken=b)||a.A.stop()}; var go=function(){this.o=[];this.A=[]}; var ho=function(a){kb(a.o)&&(a.o=a.A,a.o.reverse(),a.A=[])}; var io=function(a,b){a.A.push(b)}; var jo=function(a){ho(a);return a.o.pop()}; var ko=function(a){ho(a);return cb(a.o)}; var lo=function(a){this.videoIds=null;this.index=-1;this.videoId=this.A="";this.volume=this.o=-1;this.muted=!1;this.audioTrackId=null;this.D=this.C=0;this.B=null;this.reset(a)}; var mo=function(a,b){if(a.A)throw Error(b+" is not allowed in V3.");}; var no=function(a){a.volume=-1;a.muted=!1;a.audioTrackId=null;a.B=null;a.o=-1;a.C=0;a.D=H()}; var oo=function(a){a.index=-1;a.videoId="";no(a)}; var po=function(a){return a.A?a.videoId:a.videoIds[a.index]}; var qo=function(a,b){a.C=b;a.D=H()}; var ro=function(a){switch(a.o){case 1:return(H()-a.D)/1E3+a.C;case -1E3:return 0}return a.C}; var so=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&no(a)}; var to=function(a,b,c){mo(a,"setPlaylist");c=c||po(a);Eb(a.videoIds,b)&&c==po(a)||(a.videoIds=sb(b),a.setVideoId(c))}; var uo=function(a){var b={};b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.A;b.videoId=a.videoId;b.playerState=a.o;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=fc(a.B);b.playerTime=a.C;b.playerTimeAt=a.D;return b}; var vo=function(a,b){Rj.call(this);this.A=0;this.C=a;this.G=[];this.F=new go;this.D=window.NaN;this.B=this.o=null;this.K=A(this.Jy,this);this.H=A(this.Lg,this);this.J=A(this.Iy,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.ym,this),wo(this))):c=3;0!=c&&(b?this.ym(c):Ai(A(function(){this.ym(c)},this),0)); xo(this,zl())}; var yo=function(a){return new lo(a.C.getPlayerContextData())}; var zo=function(a,b,c,d,e){var f=yo(a);d=d||0;var k={videoId:b,currentIndex:d,listId:e||f.A};so(f,b,d);n(c)&&(qo(f,c),k.currentTime=c);Ao(a,"setPlaylist",k);e||Bo(a,f)}; var wo=function(a){E(["remotePlayerChange","remoteQueueChange"],function(a){this.G.push(this.C.subscribe(a,pa(this.rA,a),this))},a)}; var Co=function(a){E(a.G,function(a){this.C.unsubscribeByKey(a)},a); a.G.length=0}; var Do=function(a,b){50>a.F.Za()&&io(a.F,b)}; var Eo=function(a,b,c){var d=yo(a);qo(d,c);-1E3!=d.o&&(d.o=b);Bo(a,d)}; var Ao=function(a,b,c){a.C.sendMessage(b,c)}; var Bo=function(a,b){Co(a);a.C.setPlayerContextData(uo(b));wo(a)}; var Fo=function(a){Di(a.D);a.D=Ai(A(function(){this.R("remotePlayerChange");this.D=window.NaN},a),2E3)}; var xo=function(a,b){a.B&&(a.B.removeUpdateListener(a.K),a.B.removeMediaListener(a.H),a.Lg(null));a.B=b;a.B&&(Go("Setting cast session: "+a.B.sessionId),a.B.addUpdateListener(a.K),a.B.addMediaListener(a.H),a.B.media.length&&a.Lg(a.B.media[0]))}; var Ho=function(a){var b=a.o.customData;if(a.o.media){var c=a.o.media,d=yo(a);c.contentId!=d.videoId&&Go("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.o=b.playerState;qo(d,a.o.getEstimatedTime());Bo(a,d)}else Go("No cast media video. Ignoring state update.")}; var Go=function(a){ci("CP",a)}; var Io=function(a,b,c){Rj.call(this);this.D=window.NaN;this.M=!1;this.H=this.G=this.L=this.J=window.NaN;this.O=[];this.B=this.ta=this.o=null;this.ea=a;this.O.push(Nl(window,"beforeunload",A(this.hw,this)));this.A=[];this.ta=new lo;3==c["mdx-version"]&&(this.ta.A="RQ"+b.token);this.V=b.id;this.o=Jo(this,c);this.o.subscribe("handlerOpened",this.Oy,this);this.o.subscribe("handlerClosed",this.Ky,this);this.o.subscribe("handlerError",this.Ly,this);this.ta.A?this.o.subscribe("handlerMessage",this.My,this): this.o.subscribe("handlerMessage",this.Ny,this);fo(this.o,b.token);this.subscribe("remoteQueueChange",function(){var a=this.ta.videoId;nk()&&gj("yt-remote-session-video-id",a)},this)}; var Jo=function(a,b){return new bo(Ij(a.ea,"/bc",void 0,!1),b)}; var Ko=function(a,b){a.R("proxyStateChange",b)}; var Lo=function(a){a.D=Ai(A(function(){this.ib("Connecting timeout");this.C(1)},a),2E4)}; var Mo=function(a){Di(a.D);a.D=window.NaN}; var No=function(a){Di(a.J);a.J=window.NaN}; var Oo=function(a){Po(a);a.L=Ai(A(function(){Qo(this,"getNowPlaying")},a),2E4)}; var Po=function(a){Di(a.L);a.L=window.NaN}; var Ro=function(a){var b=a.o;return!!b.o&&3==b.o.o&&(0,window.isNaN)(a.D)}; var So=function(a,b){b&&(Mo(a),No(a));b==Ro(a)?b&&(Ko(a,1),Qo(a,"getSubtitlesTrack")):b?(a.K()&&a.ta.reset(),Ko(a,1),Qo(a,"getNowPlaying"),To(a)):a.C(1)}; var Uo=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ta.videoId&&(ac(b.params)?a.ta.B=null:a.ta.B=b.params,a.R("remotePlayerChange"))}; var Vo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.ta.A=b.params.listId||a.ta.A;so(a.ta,c,d);a.R("remoteQueueChange")}; var Wo=function(a,b){b.params=b.params||{};Vo(a,b);Xo(a,b)}; var Xo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);qo(a.ta,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.ta.o&&(c=-1E3);a.ta.o=c;1==a.ta.o?Oo(a):Po(a);a.R("remotePlayerChange")}; var Yo=function(a,b){var c="true"==b.params.muted;a.ta.volume=(0,window.parseInt)(b.params.volume,10);a.ta.muted=c;a.R("remotePlayerChange")}; var Zo=function(a,b){switch(b.action){case "loungeStatus":var c=be(b.params.devices);a.A=O(c,function(a){return new dk(a)}); break;case "loungeScreenDisconnected":qb(a.A,function(a){return"LOUNGE_SCREEN"==a.type}); break;case "remoteConnected":var d=new dk(be(b.params.device));db(a.A,function(a){return a.equals(d)})||nb(a.A,d); break;case "remoteDisconnected":d=new dk(be(b.params.device)),qb(a.A,function(a){return a.equals(d)})}}; var $o=function(a,b){var c=!1;if("loungeStatus"==b.action)c=!!db(a.A,function(a){return"LOUNGE_SCREEN"==a.type}); else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!(0,window.isNaN)(a.J))if(c)No(a);else return;c==Ro(a)?c&&Ko(a,1):c?(Mo(a),a.K()&&a.ta.reset(),Ko(a,1),Qo(a,"getNowPlaying"),To(a)):a.C(1)}; var To=function(a){Di(a.H);a.H=Ai(A(a.C,a,1),864E5)}; var Qo=function(a,b,c){c?a.ib("Sending: action="+b+", params="+de(c)):a.ib("Sending: action="+b);a.o.sendMessage(b,c)}; var ap=function(a,b){var c=bp(a);return $d(b,function(a){return a.o?(a=Oj(this.B,a.o),!!a&&"RUNNING"==a.status):!!Pj(c,a)},a)}; var cp=function(a,b,c){var d=dp,e="";Di(d.A);d.A=window.NaN;d.C="";if(Oj(d.B,a)){if(!e){var f=e=Lj();im();var k=sm(a),l=fm();if(l&&k){var m=new window.cast.Receiver(k.id,k.name),m=new window.cast.LaunchRequest("YouTube",m);m.parameters="pairingCode="+f;m.description=new window.cast.LaunchDescription;m.description.text=window.document.title;b&&(m.parameters+="&v="+b,c&&(m.parameters+="&t="+Math.round(c)),m.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=k.status&&(k.status="UNKNOWN", om(k),Pi("yt-remote-cast-device-status-update",k));dm("Sending a cast launch request with params: "+m.parameters);l.launch(m,pa(tm,a))}else dm("No cast API or no cast device. Dropping cast launch.")}d.C=e;d.A=Ai(A(d.J,d,a,0,e),ep[0])}else d.ib("No DIAL device with id: "+a)}; var fp=function(a,b){var c=Qj(bp(a),b);a.ib("Found screen: "+pi(c)+" with key: "+b);return c}; var gp=function(a){var b=dp,c=Qj(b.o,a);b.ib("Found online screen: "+pi(c)+" with key: "+a);return c}; var hp=function(a){var b=dp,c=Oj(b.B,a);if(!c){var d=Qj(b.F,a);d&&(c=Oj(b.B,d.o))}b.ib("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}; var bp=function(a){return rb(a.D,$d(a.F,function(a){return!Pj(this.D,a)},a))}; var ip=function(a){Sj.call(this,"ScreenServiceProxy");this.Mb=a;this.o=[];this.o.push(this.Mb.$_s("screenChange",A(this.PC,this)));this.o.push(this.Mb.$_s("onlineScreenChange",A(this.gA,this)))}; var kp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);fj&&ej();kk();lp||(lp=new Hj,zk()&&(lp.o="/api/loungedev"));mp||(mp=u("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",mp,void 0));np();var b=op();if(!b){var c=new Mk(lp);q("yt.mdx.remote.screenService_",c,void 0);b=op();kl(a,c,function(a){a?El()&&Dl():c.subscribe("onlineScreenChange",function(){Pi("yt-remote-receiver-availability-change")})})}}; var sp=function(){Oi(tp);tp.length=0;Lb(up);up=null;mp&&(E(mp,function(a){a(null)}),mp.length=0,mp=null,q("yt.mdx.remote.deferredProxies_",null,void 0)); dp&&(Lb(dp),dp=null);lp=null;nm()}; var vp=function(){if(wp()&&xl()){var a=[];if(ij("yt-remote-cast-available")||u("yt.mdx.remote.cloudview.castButtonShown_")||xp())a.push({key:"cast-selector-receiver",name:yp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return u("yt.mdx.remote.cloudview.initializing_")?[]:zp()}; var zp=function(){var a=[],a=Ap()?op().Mb.$_gos():oi(ij("yt-remote-online-screens")||[]),b=Bp();b&&xp()&&(Pj(a,b)||a.push(b));Ap()||(b=Nj(wk()),b=$d(b,function(b){return!Qj(a,b.id)}),a=rb(a,b)); return Mj(a)}; var Cp=function(){if(wp()&&xl()){var a=yl();return a?{key:"cast-selector-receiver",name:a}:null}return Dp()}; var Dp=function(){var a=zp(),b=Ep(),c=Bp();c||(c=Fp());return db(a,function(a){return c&&ki(c,a.key)||b&&(a=hp(a.key))&&a.id==b?!0:!1})}; var yp=function(){if(wp()&&xl())return yl();var a=Bp();return a?a.name:null}; var Bp=function(){var a=El();if(!a)return null;if(!dp){var b=op().$b();return Qj(b,a)}return fp(dp,a)}; var Gp=function(a,b){Hp("Connecting to: "+de(a));if("cast-selector-receiver"==a.key)Ip(b||null),Cl(b||null);else{Jp();Ip(b||null);var c=null;dp?c=gp(a.key):(c=op().$b(),c=Qj(c,a.key));if(c)Kp(c);else{if(dp&&(c=hp(a.key))){Lp(c);return}Ai(function(){Mp(null)},0)}}}; var Jp=function(){if(dp){var a=dp;Di(a.A);a.A=window.NaN;a.C=""}a:{if(a=xp())if(a=a.getOtherConnectedRemoteId()){Hp("Do not stop DIAL due to "+a);Np("");break a}(a=Ep())?(Hp("Stopping DIAL: "+a),um(a),Np("")):(a=Bp())&&a.o&&(Hp("Stopping DIAL: "+a.o),um(a.o))}Bl()?tl().stopSession():ql("stopSession called before API ready.");(a=xp())?a.disconnect(1):(Qi("yt-remote-before-disconnect",1),Qi("yt-remote-connection-change",!1));Mp(null)}; var Op=function(){var a=Pp(),a=a?a.currentTime:0,b=Qp();0==a&&b&&(a=ro(yo(b)));return a}; var Qp=function(){var a=xp();return a&&3!=a.getProxyState()?new vo(a,void 0):null}; var Hp=function(a){ci("remote",a)}; var wp=function(){return!!u("yt.mdx.remote.castv2_")}; var Ap=function(){return u("yt.mdx.remote.screenService_")}; var op=function(){if(!up){var a=Ap();up=a?new ip(a):null}return up}; var El=function(){return u("yt.mdx.remote.currentScreenId_")}; var Rp=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(dp){var b=dp;b.H=H()+3E5;if(b.G=a){var c=fp(b,a);if(c&&!Pj(b.o,c)){a=sb(b.o);a.push(c);var c=ap(b,a),d=!Eb(b.o,c,li);kb(a)||vk(O(c,mi));d&&(b.ib("Updating online screens: "+qi(b.o)+" -> "+qi(c)),b.o=c,b.R("onlineReceiverChange"))}}}}; var Ep=function(){return u("yt.mdx.remote.currentDialId_")}; var Np=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)}; var Pp=function(){return u("yt.mdx.remote.connectData_")}; var Ip=function(a){q("yt.mdx.remote.connectData_",a,void 0)}; var xp=function(){return u("yt.mdx.remote.connection_")}; var Mp=function(a){var b=xp();Ip(null);a?bb(!xp()):(Rp(""),Np(""));q("yt.mdx.remote.connection_",a,void 0);mp&&(E(mp,function(b){b(a)}),mp.length=0); b&&!a?Qi("yt-remote-connection-change",!1):!b&&a&&Pi("yt-remote-connection-change",!0)}; var Fp=function(){var a=nk();if(!a)return null;if(Ap()){var b=op().$b();return Qj(b,a)}return dp?fp(dp,a):null}; var Kp=function(a){bb(!El());Rp(a.id);a=new Io(lp,a,Sp());a.connect(1,Pp());a.subscribe("beforeDisconnect",function(a){Qi("yt-remote-before-disconnect",a)}); a.subscribe("beforeDispose",function(){xp()&&(xp(),Mp(null))}); Mp(a)}; var Lp=function(a){Ep();Hp("Connecting to: "+(a?a.toString():"null"));Np(a.id);var b=Pp();b?cp(a.id,b.videoIds[b.index],b.currentTime):cp(a.id)}; var np=function(){var a=Sp();if(ac(a)){var a=mk(),b=ij("yt-remote-session-name")||"",c=ij("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};q("yt.mdx.remote.channelParams_",a,void 0)}}; var Sp=function(){return u("yt.mdx.remote.channelParams_")||{}}; var Tp=function(a,b){var c=(b?Up:Vp).exec(a);return c?c[0]:""}; var Wp=function(a){var b=Xp.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Yp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Fi(a,"WARNING"));return b||c}; var Zp=function(a){a=new N(a);ah(a,window.document.location.protocol);bh(a,window.document.location.hostname);window.document.location.port&&ch(a,window.document.location.port);return a.toString()}; var $p=function(a){a=new N(a);ah(a,window.document.location.protocol);return a.toString()}; var aq=function(a,b,c){a&&(c?a&&(a=M("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),We(a).body.appendChild(a)):bq(a,b))}; var cq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||aq(a,void 0)}catch(b){aq(a,void 0)}}; var bq=function(a,b){var c=new window.Image,d=""+dq++;eq[d]=c;c.onload=c.onerror=function(){b&&eq[d]&&b();delete eq[d]}; c.src=a}; var fq=function(a,b){this.start=a;this.end=b;this.B=gq++}; var hq=function(a,b){return a.start-b.start||a.end-b.end||a.B-b.B}; var iq=function(a,b,c){fq.call(this,a,b);a=c||{};this.J=a.id||"";this.F=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.o=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.C=null;this.tooltip=a.tooltip}; var jq=function(a){return{start:a.start,end:a.end,id:a.J,priority:a.F,namespace:a.o,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}}; var kq=function(a){return a.C||(a.C=new ui)}; var lq=function(a,b){return a.start-b.start||a.F-b.F||a.B-b.B}; var mq=function(a,b){Rj.call(this);this.H=this.qa="";this.za=b||"";this.ea=this.loaded=this.J=!1;this.V=this.G=null;this.o=a;if(this.za){var c=Yj("yt-html5-player-modules::"+this.za);c&&(this.V=new Wi(c))}}; var nq=function(a){var b=a.o,c=b.app;a=a.qa;var b=b.playerType,d=oq(c,b);if(d){for(var d=d.F,e=[],f=d.o.o,k=f.length-1;0<=k;k--){var l=f[k];if(l.o==a){var m=d.A.indexOf(l);0<=m&&d.A.splice(m,1);var p=d.o,m=p.o,p=xb(m,l,p.A);0<=p&&pb(m,p);e.push(l)}}d.nc();b&&c.getPresentingPlayerType()!=b||pq(c,"cuerangesremoved",e)}}; var qq=function(a){a.o.Wi(a.qa)}; var rq=function(a,b,c){var d={},e;for(e in b)d[a.qa+"_"+e]=b[e];b={};for(var f in c)b[a.qa+"_"+f]=c[f];a=a.o.app.C;qa(a.C,d||null);qa(a.B,b||null)}; var sq=function(a,b){if(!a.V)return null;var c;try{c=a.V.get(b)}catch(d){a.V&&a.V.remove(b)}return c}; var tq=function(a,b,c){if(a.V)try{a.V.set(b,c)}catch(d){}}; var uq=function(a){a.R("command_stop_redirect_controls")}; var vq=function(a){a.R("command_play",!1,a.o.playerType)}; var wq=function(a){F.call(this);this.ra={};this.ia={};this.element=xq(this,a)}; var xq=function(a,b){var c=0,d=lf(b[c++]);if(z(b[c])){var e=b[c++];if(e=yq(a,d,"className",e))zq(a,d,"className",e),a.ra[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.ra[e[f]]=d;zq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=xq(a,k),d.appendChild(e);else if(ia(k))if(k.element)d.appendChild(k.element);else{var e=a,f=d,l=void 0;for(l in k){var m=k[l];null!=m&&zq(e,f,l,z(m)?yq(e,f,l,m):m)}}else z(k)&&(e=yq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d}; var Aq=function(a){qf(a.element)}; var yq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ia[d]=[b,c],null):d}; var Bq=function(a,b,c){(b=a.ia["{{"+b+"}}"])&&zq(a,b[0],b[1],c)}; var Cq=function(a){return da(a)&&z(a[0])}; var zq=function(a,b,c,d){if("child"==c){of(b);if(!da(d)||Cq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];null!=f&&(!f.nodeType||1!=f.nodeType&&3!=f.nodeType?Cq(f)?c.push(xq(a,f)):f.element?c.push(f.element):c.push(window.document.createTextNode(String(f.toString()))):c.push(f))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())}; var Dq=function(a,b){a&&(a.style.display=b)}; var Eq=function(a,b){var c=Fh("requestAnimationFrame",window);return Ai(function(){c?c.call(window,a):a()},b||0)}; var Fq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}}; var Q=function(a){wq.call(this,a);this.B=!0;this.V=[]}; var R=function(a,b,c,d,e){d=A(d,e||a);e={target:b,type:c,listener:d};a.V.push(e);b.addEventListener(c,d);return e}; var Gq=function(a){Q.call(this,a);this.O=new Rj;G(this,this.O)}; var Hq=function(a,b,c){Gq.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.A=a;this.J=b;this.K=!1}; var Iq=function(){Q.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])}; var Jq=function(a,b){da(b)||(b=[b]);var c=O(b,function(a){return z(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"}); Kq(a,c.join(","))}; var Kq=function(a,b){Mf(a,"transition",b)}; var Lq=function(a,b){(a=z(a)?window.document.getElementById(a):a)&&a.style&&(lg(a,b),J(a,"hid",!b))}; var Mq=function(a){return(a=z(a)?window.document.getElementById(a):a)?!("none"==a.style.display||Xd(a,"hid")):!1}; var Nq=function(a){E(arguments,function(a){!ea(a)||a instanceof window.Element?Lq(a,!0):E(a,function(a){Nq(a)})})}; var Oq=function(a){E(arguments,function(a){!ea(a)||a instanceof window.Element?Lq(a,!1):E(a,function(a){Oq(a)})})}; var Pq=function(a,b,c,d){F.call(this);this.B=a;c||(Qq(this,!0),a.ga());this.D=b;this.F=null==d?b:d;this.o=null;this.C=!1;this.A=new Ud(this.dm,0,this);G(this,this.A)}; var Qq=function(a,b){var c=a.B.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}; var Rq=function(a,b){Q.call(this,b||["div","ytp-thumbnail-overlay"]);this.C=new Pq(this,500);G(this,this.C);this.A=a}; var Sq=function(a){Rq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])}; var Tq=function(a,b){Hq.call(this,a,b,"subscribecard-endscreen");this.C=new Sq(a);G(this,this.C);Uq(this.A,this.C.element,4);this.D=new Iq;G(this,this.D);this.ga()}; var Vq=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",P("YTP_ADVERTISEMENT")]],["div","ad-container"]];Q.call(this,b);this.A=a;this.C=this.F=this.D=null}; var Wq=function(a){a.D||(a.D=a.ra["ad-container"],a.A.W().H&&I(a.D,"ad-container-single-media-element-annotations"));return a.D}; var Xq=function(a){a.C&&(a.A.W().H?(Zd(a.C,"ad-video"),Yq(a.A.app,a.C),a.C=null):(qf(a.C),Zq(a.C)))}; var $q=function(a){if(!a.F){if(a.A.W().useTabletControls){var b=lf("button");I(b,"video-click-tracking");nf(b,P("YTP_VISIT_ADVERTISERS_SITE"));var c=lf("div");I(c,"video-click-tracking-container");c.appendChild(b);Wq(a).appendChild(c)}else b=lf("div"),Yd(b,["video-click-tracking","ad-video"]),Wq(a).appendChild(b);a.F=b}return a.F}; var ar=function(a,b){this.type=a||"";this.id=b||""}; var br=function(a){return new ar(a.substr(0,2),a.substr(2))}; var cr=function(a){a=a.split("");dr.RC(a,2);dr.Bw(a,50);dr.C5(a,17);dr.Bw(a,15);dr.Bw(a,66);dr.RC(a,3);return a.join("")}; var er=function(a,b){return new yd(function(c,d){b.kb=function(a){vj(a)?c(a):d(a)}; b.onError=d;Bj(a,b)})}; var fr=function(a){function b(e,f,k){return Ed(e,function(e){return 0>=f||403===e.status?Dd(e):c(k).then(function(){return b(er(a,d),f-1,Math.pow(2,4-f+1)*k)})})} function c(a){return new yd(function(b){(0,window.setTimeout)(b,a)})} var d={format:"RAW",method:"GET"};return b(er(a,d),3,1E3)}; var gr=function(a){this.o=a||0}; var hr=function(a,b,c,d,e,f,k,l){this.id=""+a;this.A=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.o=k||0;this.C=l||0;this.audio=c||null;this.video=d||null;this.Ib=e||null;this.fe=f||null;this.B=ir[jr(this)]||""}; var jr=function(a){return a.id.split(";",1)[0]}; var kr=function(a){return!(a.audio&&a.video)}; var lr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}; var mr=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")}; var nr=function(a,b,c){this.name=a;this.id=b;this.isDefault=c}; var or=function(a,b,c,d,e,f,k,l){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);for(b=0;b<pr.length;b++){var m=pr[b],p=qr[m];if(f>=Math.floor(16*p/9)||a>=p){f=m;break a}}f="tiny"}this.quality=f;this.OB=qr[this.quality];this.o=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;if(!(c=l)){a:{for(c=0;c<rr.length;c++)if(this.fps>rr[c][1]){c=rr[c][0];break a}c=""}c=qr[this.quality]+"p"+c}this.qualityLabel=c}; var sr=function(a){this.B=a;this.D=this.C=this.F="";this.o={};this.A=""}; var tr=function(a){a.A||(a.A=ur(a));return a.A}; var vr=function(a){wr(a);return a.D}; var xr=function(a){wr(a);return Qb(a.o,function(a){return null!==a})}; var wr=function(a){if(a.B){if(!yr.test(a.B))throw Error("Untrusted URL: "+a.B);var b=qh(a.B);a.F=b.C;a.D=b.A+(null!=b.D?":"+b.D:"");var c=b.B;if(0==c.indexOf("/videoplayback"))a.C="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.C=c.substr(0,d),c=c.substr(d+1)):(a.C=c,c="")}d=a.o;a.o=zr(c);qa(a.o,Ar(b.ao()));qa(a.o,d);a.B="";a.A=""}}; var ur=function(a){wr(a);var b=a.F+(a.F?"://":"//")+a.D+a.C;if(xr(a)){var c=[];Ob(a.o,function(a,b){null!==a&&c.push(b+"="+a)}); a=c.join("&");b+="?"+a}return b}; var zr=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Br(c,a[b],a[b+1]);return c}; var Ar=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Br(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b}; var Br=function(a,b,c){if("cmo"==b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c}; var Cr=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; var Dr=function(a){a=a.split("-");return 2==a.length&&(a=new Cr((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null}; var Er=function(a,b){return new Cr(a,a+b-1)}; var Fr=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""}; var Gr=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null}; var Hr=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)}; var Ir=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.A=d;this.o=a;this.sourceURL=e;this.startTime=b;this.range=f||null}; var Jr=function(){this.ua=[]}; var Kr=function(a,b){var c=xb(a.ua,new Ir(b,0,0,0,""),function(a,b){return a.o-b.o}); return 0<=c?a.ua[c]:null}; var Lr=function(a,b){var c=xb(a.ua,{startTime:b},function(a,b){return a.startTime-b.startTime}); return 0<=c?a.ua[c]:a.ua[Math.max(0,-c-2)]}; var Mr=function(a,b){var c=eb(a.ua,function(a){return a.o>=b},a); 0<c&&a.ua.splice(0,c)}; var Nr=function(a){this.o=a;this.A={};this.B=""}; var Or=function(a,b){var c=b.indexOf("?");if(0<c){var d=Ar(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a); b=b.substr(0,c)}d=zr(b);Ob(d,function(a,b){this.set(b,a)},a)}; var Pr=function(a){a.B||(a.B=Qr(a));return a.B}; var Qr=function(a){var b=tr(a.o),c=[];Ob(a.A,function(a,b){c.push(b+"="+a)}); if(!c.length)return b;var d=c.join("&");a=xr(a.o)?"&":"?";return b+a+d}; var Rr=function(a,b){var c=new sr(b);Ob(a.A,function(a,b){c.set(b,null)}); return c}; var Sr=function(a){this.o=a;this.C=a.clone();this.A=0;this.B=-1}; var Tr=function(a){var b=tr(a.C),c=new N(b);c.A.match("\\.googlevideo\\.com$")?(bh(c,"redirector.googlevideo.com"),b=c.toString()):c.A.match("r[1-9].*\\.c\\.youtube\\.com$")?(bh(c,"www.youtube.com"),b=c.toString()):b=Zp(b);a.o=new sr(b);a.A&&(b=""+a.A,a.o.set("cmo=pf",b),a.C.set("cmo=pf",b))}; var Ur=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.o=null;this.D=this.B=!1;this.F=new Sr(a)}; var Vr=function(a){return!!a.o&&!!a.index&&a.index.eg()}; var Wr=function(a,b,c,d,e,f,k,l,m){this.o=b;this.range=c;this.type=a;this.C=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.B=k||0;this.A=0<=l?l:this.range?this.range.length:window.NaN;this.G=!!m;this.range?(this.F=this.B+this.A==this.range.length,this.D=this.startTime+this.duration*this.B/this.range.length,this.H=this.duration*this.A/this.range.length):(this.F=0!=this.A,this.D=this.startTime,this.H=this.duration);this.J=this.D+this.H}; var Xr=function(a){return 1==a.type||2==a.type}; var Yr=function(a,b){return a.o==b.o&&a.range.start+a.B+a.A==b.range.start+b.B}; var Zr=function(a){bb(1==a.length||Gg(a,function(a){return!!a.range})); for(var b=1;b<a.length;b++);b=a[a.length-1];return new Cr(a[0].range.start+a[0].B,b.range.start+b.B+b.A-1)}; var $r=function(a){var b="";Ob(as(a),function(a,d){b+=d+"="+a+","}); return b.slice(0,-1)}; var as=function(a){var b={};b.itag=a.o.info.id;b.seg=a.C;a.range&&(b.range=""+(a.range.start+a.B)+"-"+(a.range.start+a.B+a.A-1));b.time=""+a.D.toFixed(1)+"-"+(a.D+a.H).toFixed(1);return b}; var bs=function(a,b){this.B=a[0].o.F;this.A=b||"";this.o=a;this.range=this.o[0].range&&0<this.o[0].A?Zr(this.o):null}; var cs=function(a,b){var c;/http[s]?:\/\//.test(a.A)?c=new Nr(new sr(a.A)):(c=new Nr(a.B.o),a.A&&Or(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());return c}; var ds=function(a){if(a.range)return a.range.length;a=a.o[0];return Math.round(a.H*a.o.info.o)}; var es=function(a,b,c,d,e){Ur.call(this,a,b,d);this.index=e||new Jr;this.C=c;this.A=!0}; var fs=function(a,b){a.lh(b);return gs(a,b.F?b.C+1:b.C,!1)}; var gs=function(a,b,c){var d=a.index.$n(b),e=a.index.ee(b),f=a.index.cg(b);c?f=c=0:c=0<a.info.o?a.info.o*f:1E3;a=new Wr(3,a,null,b,e,f,0,c,b==a.index.Lb()&&!a.A&&0<c);return new bs([a],d)}; var hs=function(a,b,c){this.ae=a;this.durationSecs=b;this.context=c}; var is=function(a,b,c,d){this.o=a;this.ae=b;this.durationSecs=c;this.A=d||window.NaN}; var js=function(){this.o=[];this.A=null;this.C=0;this.B=[]}; var ks=function(a){var b=a.B;a.B=[];return b}; var ls=function(){this.C=[];this.D=!1;this.o=null;this.A={};this.B={}}; var ms=function(a,b){for(var c=b.getElementsByTagName("SegmentTimeline"),d=0;d<c.length;d++){var e=c[d].parentNode.parentNode;"Period"==e.nodeName?a.o=new js:"AdaptationSet"==e.nodeName?a.A[e.attributes.mimeType.value]=new js:"Representation"==e.nodeName&&(a.B[e.attributes.id.value]=new js)}a.D=!0}; var ns=function(a,b){a.D||ms(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var f=d[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=a.o:"AdaptationSet"==f.nodeName?k=a.A[f.attributes.mimeType.value]:"Representation"==f.nodeName&&(k=a.B[f.attributes.id.value]);if(null==k)return;k.update(d[e]);tb(c,ks(k))}Cb(c,function(a){return a.ae}); tb(a.C,c)}; var os=function(a){a.o&&(a.o.o=[]);Ob(a.A,function(a){a.o=[]}); Ob(a.B,function(a){a.o=[]})}; var ps=function(a,b){var c=qs(a,0,1836019558);if(!c)return null;var d=qs(a,c.offset+8,1835427940),e=qs(a,c.offset+8,1953653094);if(!d||!e)return null;var f=qs(a,e.offset+8,1952868452),k=qs(a,e.offset+8,1953658222),l=qs(a,e.offset+8,1952867444);if(!f||!k||!l)return null;var m=qs(a,e.offset+8,1935763823),e=qs(a,e.offset+8,1935763834);if(m){var p=rs(m),v=rs(m);if(0!=p||1!=v)return null;p=rs(m)}for(var t=rs(f),y=rs(f),x=t&2,L=t&1?ts(f):0,ha=x?rs(f):0,K=t&8?rs(f):0,v=t&16?rs(f):0,Y=t&32?rs(f):0,t=rs(k), Nb=t&1,xd=t&4,pp=t&256,f=t&512,qp=t&1024,VB=t&2048,t=rs(k),WB=Nb?rs(k):0,rp=xd?rs(k):0,Nb=[],zu=[],Rl=[],XB=[],dO=0,Rf=0,Bc=0;Bc<t;Bc++){var d5=pp?rs(k):K;f&&Nb.push(rs(k));var he=Y;xd&&0==Bc?he=rp:qp&&(he=rs(k));zu.push(he);he=VB?rs(k):0;0==Bc&&(dO=he);Rl.push(Rf+he);XB.push(Bc);Rf+=d5}Bb(XB,function(a,b){return Rl[a]-Rl[b]}); k=[];for(Bc=0;Bc<t;Bc++)k[XB[Bc]]=Bc;Rf=x?4:0;Bc=16*t;he=68+Rf+l.size+Bc+(m?m.size:0)+(e?e.size:0);c=he-c.size;K=new us(he);vs(K,he);vs(K,1836019558);ws(K,d);vs(K,he-24);vs(K,1953653094);vs(K,16+Rf);vs(K,1952868452);vs(K,131072|(x?2:0));vs(K,y);x&&vs(K,ha);ws(K,l);vs(K,20+Bc);vs(K,1953658222);vs(K,16781057);vs(K,t);vs(K,L+WB+c);for(Bc=Rf=0;Bc<t;Bc++)l=k[Bc],d=Math.round(b*l/t),l=Math.round(b*(l+1)/t)-d,he=d-Rf+dO,vs(K,l),vs(K,f?Nb[Bc]:v),vs(K,zu[Bc]),vs(K,he),Rf+=l;m&&(vs(K,m.size),vs(K,1935763823), vs(K,0),vs(K,1),vs(K,p+c));e&&ws(K,e);return K.data.buffer}; var xs=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;ys(a,b);){var c=zs(a,b);if(1836476516==c.type)return As(c);b=Bs(c.type)?b+8:b+c.size}return window.NaN}; var qs=function(a,b,c){for(;ys(a,b);){var d=zs(a,b);if(d.type==c)return d;b+=d.size}return null}; var zs=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Cs(a,b,c,d)}; var As=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)}; var ys=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c}; var Bs=function(a){return 1836019558==a||1836019574==a||1953653094==a}; var Cs=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.o=8}; var rs=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b}; var ts=function(a){var b;b=a.data;var c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b}; var us=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.o=0}; var vs=function(a,b){a.data.setInt32(a.o,b);a.o+=4}; var ws=function(a,b){for(var c=0;c+4<=b.size;)vs(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))}; var Ds=function(a){return(a=qs(a,0,1836019558))?a.offset+a.size:null}; var Es=function(a,b){this.A=a;this.o=0;this.B=b||0}; var Fs=function(a){for(var b=Gs(a,!1);236==b;)Hs(a),b=Gs(a,!1);return b}; var Is=function(a){var b=Gs(a,!0),c=a.A.byteOffset+a.o,c=new window.DataView(a.A.buffer,c,Math.min(b,a.A.buffer.byteLength-c)),c=new Es(c,a.B+a.o);a.o+=b;return c}; var Js=function(a){for(var b=Gs(a,!0),c=Ks(a),d=1;d<b;d++)c=256*c+Ks(a);return c}; var Hs=function(a){var b=Gs(a,!0);a.o+=b}; var Ls=function(a){var b=a.o;a.o=0;var c=!1;Ms(a,440786851)&&(a.o=0,Ms(a,408125543)&&(c=!0));a.o=b;return c}; var Ns=function(a,b,c){var d=a.o;a.o=0;if(Ls(a)){if(!Ms(a,408125543))return!1;Gs(a,!0)}if(!Ms(a,524531317))return!1;Gs(a,!0);if(!Ms(a,231))return!1;var e=Gs(a,!0);b=Math.floor(1E9*b/c);if(Math.ceil(Math.log(b)/Math.log(2)/8)>e)return!1;for(c=e-1;0<=c;c--)a.A.setUint8(a.o+c,b&255),b>>>=8;a.o=d;return!0}; var Ms=function(a,b){for(;Fs(a)!=b;)if(Hs(a),a.o>=a.A.byteLength)return!1;return!0}; var Gs=function(a,b){var c=Ks(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Ks(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Ks(a),e*=128;return b?c-e:c}; var Ks=function(a){return a.A.getUint8(a.o++)}; var Os=function(a,b,c,d,e){this.info=a;this.o=b;this.range=c;this.A=d;this.B=e}; var Ps=function(a){return a.range?new window.DataView(a.o,a.range.start,a.range.length):new window.DataView(a.o)}; var Qs=function(a){if(a.info.A!=a.range.length)return!1;if(1==a.info.o.info.A){if(8>a.info.A||4==a.info.type)return!0;var b=Ps(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.A&&1936286840==b;if(3==a.info.type&&0==a.info.B)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b}else if(2==a.info.o.info.A){if(4>a.info.A||4==a.info.type)return!0;b=Ps(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.B)return 524531317==c||440786851==c}return!0}; var Rs=function(a,b){if(1==a.info.o.info.A){for(var c=a.info.o.o,d=window.NaN,e,f=0,k=new window.DataView(a.o);ys(k,f);){var l=zs(k,f);1936286840==l.type?d=l.data.getUint32(l.offset+16):1836476516==l.type?d=As(l):1952867444==l.type&&(e=l);f=Bs(l.type)?f+8:f+l.size}!d&&c&&(d=xs(c));e.data.getUint8(e.offset+8)?(c=e.data,e=e.offset+12,d=Math.round(b*d),c.setUint32(e,Math.round(d/4294967296)),c.setUint32(e+4,Math.round(d&4294967295))):e.data.setUint32(e.offset+12,Math.round(b*d));return!0}new window.DataView(a.info.o.o.buffer); d=new Es(new window.DataView(a.o));e=d.o;d.o=0;c=1E6;Ms(d,408125543)&&(Gs(d,!0),Ms(d,357149030)&&(Gs(d,!0),Ms(d,2807729)&&(c=Js(d))));d.o=e;return Ns(d,b,c)}; var Ss=function(a){var b;a:{for(var c=0,d=new window.DataView(a.o);ys(d,c);){b=zs(d,c);if(1936286840==b.type){c=b.data.getUint32(b.offset+16);d=b.data.getUint8(b.offset+8);b.data.getUint16(b.offset+(0==d?30:38));b=b.data.getUint32(b.offset+(0==d?36:42))/c;break a}c=Bs(b.type)?c+8:c+b.size}b=window.NaN}if(!(0<=b)){c=a.info.o.o;d=0;b=new window.DataView(a.o);for(var e,f;ys(b,d);){var k=zs(b,d);1836476516==k.type?e=As(k):1836019558==k.type&&(f=k);d=Bs(k.type)?d+8:d+k.size}!e&&c&&(e=xs(c));if(f&&e){f= qs(b,f.offset+8,1953653094);c=qs(b,f.offset+8,1952868452);f=qs(b,f.offset+8,1953658222);b=rs(c);rs(c);b&2&&rs(c);b=b&8?rs(c):0;var l=rs(f),m=l&1,c=l&4,d=l&256,k=l&512,p=l&1024,l=l&2048,v=f.data.getUint32(f.offset+f.o);f.o+=4;m&&rs(f);c&&rs(f);for(var t=m=0;t<v;t++){var y=d?rs(f):b;k&&rs(f);c&&0==t||!p||rs(f);l&&rs(f);m+=y}b=m/e}else b=window.NaN}return b||a.info.H}; var Ts=function(a){1==a.info.o.info.A?(a=Ps(a),a=!!qs(a,0,1718909296)):a=Ls(new Es(new window.DataView(a.o)));return a}; var Us=function(){this.wa=0;this.o=new window.Float64Array(128);this.A=new window.Float64Array(128);this.C=1;this.B=!1}; var Vs=function(a){if(a.o.length<a.wa+1){var b=2*a.o.length,b=b+2,c=a.o;a.o=new window.Float64Array(b+1);var d=a.A;a.A=new window.Float64Array(b+1);for(b=0;b<a.wa+1;b++)a.o[b]=c[b],a.A[b]=d[b]}}; var Ws=function(a,b,c,d,e,f){Ur.call(this,a,b,c||void 0);this.indexRange=d;this.C=null;this.index=new Us;this.A=e;this.lastModified=f}; var Xs=function(a,b,c,d){for(var e=[];b<=a.index.Lb();b++){var f;f=a.index;var k=b;f=Er(f.yj(k),k+1<f.wa||f.B?f.o[k+1]-f.o[k]:-1);var k=a.index.ee(b),l=a.index.cg(b),m=Math.max(0,c-f.start),p=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Wr(3,a,f,b,k,l,m,p,b==a.index.Lb()&&m+p==f.length));if(f.start+m+p>=c+d)break}return new bs(e)}; var Ys=function(a,b,c){a.lh(b);if(!Vr(a))return c=Er(b.range.end+1,c),c.end+1>a.A&&(c=new Cr(c.start,a.A-1)),a=[new Wr(4,b.o,c)],new bs(a);4==b.type&&(b=a.Ti(b),b=b[b.length-1]);var d=0,e=b.range.start+b.B+b.A;3==b.type&&(d=b.C,e==b.range.end+1&&(d+=1));return Xs(a,d,e,c)}; var Zs=function(a){Rj.call(this);this.H=this.duration=0;this.isLive=this.C=!1;this.F=$s();this.A=window.Infinity;this.o={};this.K=a||"";this.D=this.G=0;this.B=null;this.J=$s()}; var at=function(a){return Qb(a.o,function(a){return!!a.info.fe},a)}; var bt=function(a,b,c){var d=new Zs;d.duration=c||0;E(a,function(a){var c=a.type,k=a.itag,l=null;if(mr(c))var m=a.size.split("x"),l=new or(+m[0],+m[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label);var p=null,v=null;lr(c)&&(p=new gr,a.name&&(v=new nr(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(k=a.itag+";"+a.xtags);var t=(0,window.parseInt)(a.bitrate,10)/8,m=(0,window.parseInt)(a.clen,10),y=d.duration&&m?m/d.duration:0,x=null;b&&a.drm_families&&(x={},E(a.drm_families.split(","), function(a){x[a]=b[a]})); c=new hr(k,c,p,l,v,x,t,y);l=Dr(a.init);p=Dr(a.index);v=ct(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);v&&(d.o[k]=new Ws(v,c,l,p,m,a))}); return d}; var ct=function(a,b,c){a=new sr(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",cr(c));return a}; var dt=function(a,b){var c=Fr(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Fr(b,"lang"));var d=Fr(b,"mimeType"),e=Fr(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Fr(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Gr(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(mr(d)){var k=(0,window.parseInt)(Fr(b,"width"),10),l=(0,window.parseInt)(Fr(b,"height"),10),m=(0,window.parseInt)(Fr(b,"frameRate"),10),p=Fr(b,"yt:projectionType"),v=Fr(b,"yt:stereoLayout"), t="equirectangular"==p,y,x;t&&"layout_top_bottom"==v?y=3:t&&!p?y=2:"layout_left_right"==v&&(x=1);k=new or(k,l,m,y,x)}x=y=null;lr(d)&&(y=new gr((0,window.parseInt)(Fr(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),x=Fr(b,"lang")||"",(l=Gr(b,"Role"))?(l=Fr(l,"value")||"",x=x&&Yb(et,l)?new nr(Fr(b,"yt:langName")||x+" - "+l,x+"."+et[l],"main"==l):null):x=null);m=null;if(l=Gr(b,"ContentProtection"))if((m=l.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==m.textContent)for(m= {},l=l.firstChild;null!=l;l=l.nextSibling)"yt:SystemURL"==l.nodeName&&(m[l.attributes.type.textContent]=l.textContent.trim());else m=null;return new hr(c,d,y,k,x,m,e,f)}; var ft=function(a,b){a.D=1;a.F=$s();return Ed(fr(b||a.K).then(A(a.M,a)),A(a.O,a))}; var gt=function(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=(0,window.parseInt)(e.split("-")[1],10)?d=Dr(e):c=c+"?range="+e);return new Ir(b.o,b.ae,b.durationSecs,b.A,c,d)}; var ht=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c&&c.eg())return c.dg()}return window.NaN}; var it=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c&&c.eg())return c.Er()}return 0}; var jt=function(a,b){Ob(a.o,function(a){Ob(b,function(b,e){var f=a.F;f.o.set(e,b);f.C.set(e,b)})})}; var kt=function(a,b){var c=(0).toString();if(!a.o[c]){var d=new hr(c,"",void 0,new or(0,0,0,void 0,void 0,"auto"));a.o[c]=b?new es(new sr("http://www.youtube.com/videoplayback"),d,""):new Ws(new sr("http://www.youtube.com/videoplayback"),d,new Cr(0,0),new Cr(0,0),0,window.NaN)}}; var lt=function(){return mt("android")&&mt("chrome")&&!(mt("trident/")||mt("edge/"))}; var nt=function(){return mt("(ps3; leanback shell)")||mt("ps3")&&mt("cobalt")}; var ot=function(){return mt("(ps4; leanback shell)")||mt("ps4")&&mt("cobalt")}; var pt=function(){var a=/WebKit\/([0-9]+)/.exec(oc);return!!(a&&600<=a[1])}; var qt=function(){return Fl&&mt("crkey")}; var rt=function(){return mt("nintendo wiiu")}; var tt=function(){return mt("iemobile")||mt("windows phone")&&mt("edge")}; var mt=function(a){var b=oc;return b?0<=b.toLowerCase().indexOf(a):!1}; var ut=function(){var a=u("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}; var vt=function(a){var b=ut();try{if(b.canPlayType){a=a?wt:xt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}}; var zt=function(a){a=M("div",{"class":a});window.document.body.appendChild(a);var b="none"==Qf(a,"display");qf(a);return b}; var At=function(a,b,c){this.o=a;this.A=b;this.D=c;this.C={};this.B=null;this.fairPlayCert=""}; var Bt=function(a){return!a.B&&Ct()&&"com.microsoft.playready"==a.A}; var Dt=function(a){return!a.B&&Ct()&&"com.apple.fps.1_0"==a.A}; var Ct=function(){var a=window.MSMediaKeys;Et&&yc("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null}; var Ft=function(){return window.navigator.requestMediaKeySystemAccess&&(Fl&&Gt("45")||uc)}; var Ht=function(a){this.A=[];this.o={};this.B={};this.C=null;It(this,a)}; var It=function(a,b){Ob(b,function(a){a.forEach(function(a){a.fe&&Ob(a.fe,function(b,c){Jt[c]&&Ob(Jt[c],function(b){this.o[b]=this.o[b]||new At(c,b,a.fe[c]);this.B[c]=this.B[c]||{};this.B[c][a.mimeType]=!0},this)},this)},this)},a); a.A=Kt.filter(function(a){return!!this.o[a]},a)}; var Lt=function(a){var b=a.A.shift(),c=a.o[b],d=Mt(a.B[c.o]);window.navigator.requestMediaKeySystemAccess(b,d).then(Bi(A(a.F,a,c)),Bi(A(a.D,a,c)))}; var Mt=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Ob(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})}); return[b]}; var Nt=function(a){var b=Ct(),c=ut();if(b){if(Et){a.C(new At("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=A(c.canPlayType,c):d=function(){return!1}; c=(c=db(a.A,function(a){var b=this.o[a],c,l;Ob(this.B[b.o],function(m,p){d(p,a)&&(b.C[p]=!0,c|=0==p.indexOf("audio/"),l|=0==p.indexOf("video/"))},this); return c&&l},a))?a.o[c]:null; a.A=[];a.C(c)}; var Ot=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.o=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}; var Pt=function(a){a=a||{};this.K=a.formats||"";this.D=a.format||1;if(1==this.D)for(var b=this.K.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.D=Math.max(d,this.D))}this.o=a.languageCode||"";this.F=a.languageName;this.B=a.kind||"";this.C=a.name;this.M=a.id;this.L=a.is_servable;this.isDefault=a.is_default;this.H=a.is_translateable;this.J=a.url||null;this.G=a.vss_id||"";this.A=null;a.translationLanguage&&(this.A=new Ot(a.translationLanguage))}; var Qt=function(a){var b={format:a.D,languageCode:a.o,languageName:a.F,displayName:Rt(a),kind:a.B,name:a.C,id:a.M,is_servable:a.L,is_default:a.isDefault,is_translateable:a.H,vss_id:a.G};a.A&&(a=a.A,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.o,id:a.id,is_default:a.isDefault});return b}; var Rt=function(a){var b=a.F||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",P("YTP_ASR_SETTINGS_LABEL"),")");a.C&&c.push(" - ",a.C);a.A&&c.push(" >> ",a.A.languageName);return c.join("")}; var St=function(a,b){var c=new Pt;c.o=a.o;c.F=a.F;c.C=a.C;c.B=a.B;c.isDefault=!1;c.H=a.H;c.G=a.G;c.J=a.J;c.A=b;return c}; var Tt=function(a,b){this.id=a;this.Ib=b;this.captionTracks=[];this.wg=this.lk=null;this.Cn=0}; var Ut=function(a,b,c){this.A=a||0;this.o=b||0;this.B=c}; var Vt=function(a,b,c){return new Ut(qr[a]||0,qr[b]||0,c)}; var Wt=function(a){var b=qr.auto;return a.A==b&&a.o==b}; var Xt=function(a,b){if(b.B&&Wt(b))return Yt;if(b.B||Wt(a))return b;if(a.B||Wt(b))return a;var c=a.A&&b.A?Math.max(a.A,b.A):a.A||b.A,d=a.o&&b.o?Math.min(a.o,b.o):a.o||b.o,c=Math.min(c,d);return c==a.A&&d==a.o?a:new Ut(c,d,!1)}; var Zt=function(a){var b=a.o||a.A;return $b($t,function(a){return qr[a]==b})||"auto"}; var au=function(a,b,c){this.videoInfos=a;this.o=b||null;this.audioTracks=[];this.A=c||null;if(this.o){var d={};E(this.o,A(function(a){if(a.Ib&&!d[a.id]){var b=new Tt(a.id,a.Ib);d[a.id]=b;this.audioTracks.push(b)}},this))}}; var bu=function(a,b){this.o=a;this.A=b}; var cu=function(a){this.o=[];if(a)a:{var b,c;if(a instanceof cu){if(b=a.Na(),c=a.Ka(),0>=a.Za()){a=this.o;for(var d=0;d<b.length;d++)a.push(new bu(b[d],c[d]));break a}}else b=Wb(a),c=Vb(a);for(d=0;d<b.length;d++)du(this,b[d],c[d])}}; var du=function(a,b,c){var d=a.o;d.push(new bu(b,c));b=d.length-1;a=a.o;for(c=a[b];0<b;)if(d=b-1>>1,a[d].o>c.o)a[b]=a[d],b=d;else break;a[b]=c}; var eu=function(){cu.call(this)}; var fu=function(a,b){Rj.call(this);this.A=a;this.B=new eu;this.o=null;this.D={};this.C=b||""}; var gu=function(a,b,c){var d;for(c=hu(a.A,c);0<=c;){d=a.A.o[c];if(d=d.B[Math.floor(b/(d.Gb*d.rows))]?iu(d,b):null)return d;c--}return iu(a.A.o[0],b)}; var ju=function(a,b,c){c=hu(a.A,c);for(var d,e;0<=c;c--)if(d=a.A.o[c],e=Math.floor(b/(d.Gb*d.rows)),!d.B[e]){d=a;var f=c,k=f+"-"+e;d.D[k]||(d.D[k]=!0,du(d.B,f,{Xo:f,bp:e}))}ku(a)}; var ku=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;a.C&&(c.crossOrigin=a.C);c.src=lu(a.A.o[b.Xo],b.bp);c.onload=A(a.F,a,b.Xo,b.bp);a.o=c}}; var mu=function(a,b,c,d){this.B={};this.M=a;this.K=b;a=c.split("#");this.H=(0,window.parseInt)(a[0],10);this.G=(0,window.parseInt)(a[1],10);this.A=(0,window.parseInt)(a[2],10);this.Gb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.D=(0,window.parseInt)(a[5],10);this.C=a[6];this.F=a[7];this.L=d}; var lu=function(a,b){var c=a.K,c=c.replace("$N",a.C),c=c.replace("$L",a.M.toString()),c=c.replace("$M",b.toString());a.F&&(c=Ug(c,{sigh:a.F}));return $p(c)}; var iu=function(a,b){var c=Math.floor(b/(a.Gb*a.rows)),d=a.Gb*a.rows,e=b%d,f=e%a.Gb,e=Math.floor(e/a.Gb),k,l=a.Nm()+1-d*c;l<a.Gb?(k=l,d=1):(k=a.Gb,d=l<d?Math.ceil(l/a.Gb):a.rows);return{url:lu(a,c),wv:f,Gb:k,row:e,rows:d,cp:a.H*k,ap:a.G*d}}; var nu=function(a,b){this.o=this.A(a,b);this.B={};1<this.o.length&&this.o[0].isDefault()&&this.o.splice(0,1)}; var hu=function(a,b){var c=a.B[b];if(c)return c;for(var c=a.o.length,d=0;d<c;d++)if(a.o[d].getWidth()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1}; var ou=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");mu.call(this,a,b,c,0);this.o=null;this.J=d?3:0}; var pu=function(a,b){this.F=b;nu.call(this,a,0)}; var qu=function(){if(void 0==ru&&(ru=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new window.Uint8Array(1);window.crypto.getRandomValues(a);ru=!0}catch(e){}if(ru){var a=Array(16),b=new window.Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c]}else{a=Array(16);for(b=0;16>b;b++){for(var c=H(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=tu)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++}return a}; var uu=function(){for(var a=qu(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}; var vu=function(){return O(qu(),function(a){return(a&15).toString(16)}).join("")}; var wu=function(a,b){return void 0==b?a:"1"==b?!0:!1}; var xu=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}; var yu=function(a,b){return void 0==b?a:Number(b)}; var Au=function(a,b){return void 0==b?a:b.toString()}; var Bu=function(a){if(a&&(a=a.match(Cu))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN}; var Du=function(a,b){var c=qr.auto,d=qr.medium;if("tivo"==b)return new Ut(c,qr.large,!1);var e=qr[b];return e>d?new Ut(e,c,!1):e>=c?new Ut(c,e,!1):a}; var Eu=function(){return!!u("yt.scheduler.instance")}; var Fu=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=u("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):Ai(a,b||0)}; var Gu=function(a){var b=u("yt.scheduler.instance.cancelJob");b?b(a):Di(a)}; var Hu=function(){var a=u("yt.scheduler.instance.start");a&&(Di(Iu),a())}; var Ju=function(){var a=u("yt.scheduler.instance.pause");a&&(a(),Di(Iu),Iu=Ai(Hu,800))}; var Ku=function(a,b){this.version=a;this.args=b}; var Lu=function(a){if(!a.be){var b={};a.call(b);a.be=b.version}return a.be}; var Mu=function(a,b){function c(){a.apply(this,b.args)} if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=Lu(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}}; var Nu=function(a,b){this.topic=a;this.o=b}; var Ou=function(a,b){var c=Pu,d=Qu();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var l=function(){if(Ru[e])try{if(k&&c instanceof Nu&&c!=d)try{k=Mu(c.o,k)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+l.message,l;}a.call(b||window,k)}catch(l){Fi(l)}}; Su[c.toString()]?Eu()?Fu(l,void 0):Ai(l,0):l()}}); Ru[e]=!0;Tu[c.toString()]||(Tu[c.toString()]=[]);Tu[c.toString()].push(e);return e}; var Uu=function(a,b){var c=Ou(function(d){a.apply(b,arguments);Vu(c)},b); return c}; var Vu=function(a){var b=Qu();b&&(fa(a)&&(a=[a]),E(a,function(a){b.unsubscribeByKey(a);delete Ru[a]}))}; var Qu=function(){return u("yt.pubsub2.instance_")}; var Wu=function(a){Ku.call(this,1,arguments);this.o=a}; var Xu=function(a,b,c){Yu(c)[a]=b||H();b||Zu(a);b=zi("TIMING_ACTION");a=Yu(c);if(u("yt.timing.ready_")&&b&&a._start&&$u(c)){b=!0;var d=zi("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&av(c)}}; var bv=function(a,b){var c=Yu(b);return a in c}; var cv=function(a,b,c){dv(c).info[a]=b}; var ev=function(a){fv(a);gv();q("yt.timing.pingSent_",!1,void 0)}; var $u=function(a){a=Yu(a);if(a.aft)return a.aft;for(var b=zi("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return window.NaN}; var hv=function(a){return Math.round(iv.timing.navigationStart+a)}; var jv=function(a){var b=window.location.protocol,c=iv.getEntriesByType("resource"),d=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.googleapis.com/css?family=")})[0],c=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.gstatic.com/s/")}).reduce(function(a,b){return b.duration>a.duration?b:a},{duration:0}); d&&0<d.startTime&&0<d.responseEnd&&(a.wfcs=hv(d.startTime),a.wfce=hv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=hv(c.startTime),a.wffe=hv(c.responseEnd))}; var av=function(a){var b=Yu(a),c=dv(a).span,d=dv(a).info,e=u("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))kv(e),ev(a)}else{e={v:2,s:zi("CSI_SERVICE_NAME","youtube"),action:zi("TIMING_ACTION")};if(iv.now&&iv.timing){var f=iv.timing.navigationStart+iv.now(),f=Math.round(H()-f);d.yt_hrd=f}var f=zi("TIMING_INFO")||{},k;for(k in f)d[k]=f[k];k=d.srt;delete d.srt;var l;k||0===k||(l=iv.timing||{},k=Math.max(0,l.responseStart-l.navigationStart),(0,window.isNaN)(k)&&d.pt&&(k=d.pt));if(k||0===k)d.srt=k; d.h5jse&&(f=window.location.protocol+u("ytplayer.config.assets.js"),(f=iv.getEntriesByName?iv.getEntriesByName(f)[0]:null)?d.h5jse=Math.round(d.h5jse-f.responseEnd):delete d.h5jse);b.aft=$u(a);f=b._start;if("cold"==d.yt_lt){l||(l=iv.timing||{});var m;a:if(m=l,m.msFirstPaint)m=Math.max(0,m.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ga(p))){var p=p(),v=1E3*Math.min(p.requestTime||window.Infinity,p.startLoadTime||window.Infinity),v=window.Infinity===v?0:m.navigationStart-v;m=Math.max(0, Math.round(1E3*p.firstPaintTime+v)||0);break a}m=0}0<m&&m>f&&(b.fpt=m);m=c||dv(void 0).span;p=l.redirectEnd-l.redirectStart;0<p&&(m.rtime_=p);p=l.domainLookupEnd-l.domainLookupStart;0<p&&(m.dns_=p);p=l.connectEnd-l.connectStart;0<p&&(m.tcp_=p);p=l.connectEnd-l.secureConnectionStart;l.secureConnectionStart>=l.navigationStart&&0<p&&(m.stcp_=p);p=l.responseStart-l.requestStart;0<p&&(m.req_=p);p=l.responseEnd-l.responseStart;0<p&&(m.rcv_=p);iv.getEntriesByType&&jv(b)}p=Yu(a);l=p.pbr;m=p.vc;p=p.pbs;l&& m&&p&&l<m&&m<p&&1==dv(a).info.yt_vis&&cv("yt_lt","hot_bg",a);(l=zi("PREVIOUS_ACTION"))&&(d.pa=l);d.p=zi("CLIENT_PROTOCOL")||"unknown";d.t=zi("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var t in d)"_"!=t.charAt(0)&&(e[t]=d[t]);b.ps=H();d={};t=[];for(var y in b)"_"!=y.charAt(0)&&(m=Math.max(Math.round(b[y]-f),0),d[y]=m,t.push(y+"."+m));e.rt=t.join(",");b=e;y=[];for(var x in c)"_"!=x.charAt(0)&&y.push(x+"."+c[x]);b.it=y.join(",");(x=u("ytdebug.logTiming"))&& x(e,d,c);ev(a);zi("EXP_DEFER_CSI_PING")?(lv(),q("yt.timing.deferredPingArgs_",e,void 0),a=Ai(lv,0),q("yt.timing.deferredPingTimer_",a,void 0)):kv(e);a=new Wu(d.aft+(k||0));c=Pu;(e=Qu())&&e.publish.call(e,c.toString(),c,a)}}; var kv=function(a){if(zi("DEBUG_CSI_DATA")){var b=u("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}zi("EXP_DEFER_CSI_PING")&&(Di(u("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));var c="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",b="",d;for(d in a)b+="&"+d+"="+a[d];a=c+"?"+b.substring(1);b=zi("CSI_LOG_WITH_YT")?"/csi_204?"+b.substring(1):null;window.navigator&& window.navigator.sendBeacon?(cq(a),b&&cq(b)):(aq(a),b&&aq(b));q("yt.timing.pingSent_",!0,void 0)}; var lv=function(a){if(zi("EXP_DEFER_CSI_PING")){var b=u("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),kv(b))}}; var Yu=function(a){return dv(a).tick}; var dv=function(a){return u("ytcsi."+(a||"")+"data_")||fv(a)}; var fv=function(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b}; var mv=function(a,b,c){this.errorCode=a;this.o=b;this.details=c||{}}; var nv=function(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""}; var ov=function(a){return(a=a.exec(oc))?a[1]:""}; var Gt=function(a){return 0<=Ra(pv,a)}; var qv=function(){}; var rv=function(){this.buffered=new qv}; var tv=function(a,b){this.C=a;this.o=!!b;this.B=!1;this.A={}}; var uv=function(a){return a.o?a.C:Ug(a.C,a.A)}; var vv=function(a,b){this.A=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.EC,set:this.IC});Object.defineProperty(this,"buffered",{get:this.CC})}; var wv=function(){this.length=0}; var xv=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.o=a;this.A=window.NaN;this.B=0;Object.defineProperty(this,"duration",{get:this.DC,set:this.HC});Object.defineProperty(this,"readyState",{get:this.FC});this.o.addEventListener("webkitsourceclose",A(this.GC,this),!0)}; var yv=function(a){F.call(this);this.K=[];this.Qa=a||this}; var zv=function(a,b,c,d){for(var e=0;e<c.length;e++)S(a,b,c[e],d)}; var S=function(a,b,c,d,e){d=Bi(A(d,e||a.Qa));b.addEventListener(c,d);b={target:b,name:c,Lh:d};a.K.push(b);return b}; var Av=function(a){for(;a.K.length;){var b=a.K.pop();b.target.removeEventListener(b.name,b.Lh)}}; var Bv=function(a,b,c,d,e){yv.call(this);this.A=this.o=null;this.C=b;this.B=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new xv(a);this.F=this.D=this.G=null;this.H=d;this.M=c;this.S=e;zv(this,this.B,["sourceopen","webkitsourceopen"],this.L);zv(this,this.B,["sourceclose","webkitsourceclose"],this.J)}; var Cv=function(a,b){a.D=b}; var Dv=function(a,b){a.F=b}; var Ev=function(a){if(!a.G){var b;b=a.B;b=b.NE?b.o.webkitMediaSourceURL:window.URL.createObjectURL(b);a.G=new tv(b,!0)}return a.G}; var Fv=function(a){try{return"open"==a.B.readyState}catch(b){return!1}}; var Gv=function(a){try{return"closed"==a.B.readyState}catch(b){return!0}}; var Hv=function(a){return a.o.updating||a.A.updating}; var Iv=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; var Jv=function(a){return a.o?!!a.o.appendBuffer:Iv()}; var Kv=function(a){if(/opus/.test(a)&&(Fl&&!Gt("38")||qt()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ot())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!ut().canPlayType(a)}; var Lv=function(a){this.hc=a}; var Mv=function(a,b){this.A=a;this.C=b;this.B={};this.o=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null}; var Nv=function(a,b){if(2.2!=Ov&&vt(a.A))return[];for(var c={},d=ut(),e=0;e<b.length;e++){var f=b[e];if(jr(f.hc)in Pv||"5"==jr(f.hc)?0:Qv(d,f.hc.mimeType)){var k=f.hc.video.quality;c[k]&&2!=c[k].hc.A||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);E(pr,function(a){(f=c[a])&&l.push(f)}); return l}; var Qv=function(a,b){var c=a.canPlayType(b);Rv?c=c||Sv[b]:2.2==Ov?c=c||Tv[b]:lt()&&(c=c||Uv[b]);return!!c}; var Vv=function(){var a=lt()&&!Gt(29),b=mt("google tv")&&mt("chrome")&&!Gt(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)}; var Wv=function(a,b){var c={},d;for(d in b.o){var e=b.o[d],f;a:{f=a;var k=e.info;if(k.id!=(0).toString()||f.A){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Xv.name]=k.video.width),k.video.height&&(m[Yv.name]=k.video.height),k.video.fps&&(m[Zv.name]=k.video.fps),k.o&&(m[$v.name]=8*k.o));k.audio&&k.audio.o&&(m[aw.name]=k.audio.o);k=m;m=void 0;for(m in bw){var p=bw[m];if(k[p.name]&&cw(f,p))if(f.o){if(f.o[p.name]<k[p.name]){f=!1;break a}}else l=l+"; "+p.name+"="+k[p.name]}f=Kv(l)}else f=!0}f&&(c[e.info.B]= c[e.info.B]||[],c[e.info.B].push(e.info))}return c}; var dw=function(a,b,c){var d={},e;Ob(b,function(a,b){var l=a.filter(function(a){return a.fe?c&&a.fe[c.o]&&c.C[a.mimeType]?261==jr(a)?(e||(e=ut()),!1):!0:!1:!0},this); l.length&&(d[b]=l)},a); return d}; var ew=function(a,b,c,d){function e(a){return!!f[a]} var f=Wv(a,b);at(b)&&(f=dw(a,f,c));c=fw;if(!a.A)c=gw;else if(mt("cros armv7")||mt("windows nt 5.1"))c=hw;b=iw;d&&(a.A&&(c=hw),b=jw);d=db(c,e);b=db(b,e);if(!d||!b)return null;if("9"==d&&f.h){c=function(a,b){return Math.max(a,b.video.height)}; var k=me(f["9"],c,0);me(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=kw(a,c);lw(c,k);return new au(c,k,mw(a,f,d,b))}; var mw=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=kw(a,e),lw(e,b),new au(e,b)):null}; var lw=function(a,b){Bb(a,function(a,b){return b.video.width-a.video.width||b.o-a.o}); Bb(b,function(a,b){return b.o-a.o})}; var kw=function(a,b){var c=Ih(b,function(a){return 32<a.video.fps}); c&&(b=a.C||cw(a,Zv)?$d(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):$d(b,function(a){return!(32<a.video.fps)})); c&&nt()&&(b=$d(b,function(a){return 299!=jr(a)})); return b}; var cw=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name,e;a.o?e=!!a.o[b.name]:(b.video?(e='video/webm; codecs="vp9"',Kv(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Kv(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Kv(e+"; "+b.name+"="+b.valid)&&!Kv(e+"; "+b.name+"="+b.Ig));c[d]=e}return a.B[b.name]}; var nw=function(a,b){this.A=a;this.o=b;this.B=0}; var ow=function(a){for(var b=[],c=[],d=0,e=a.o.length;d<e;++d){var f=a.o[d];f.bitrate<=a.B?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate}); c.sort(function(a,b){return a.bitrate-b.bitrate}); a.o=b.concat(c)}; var pw=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Jn=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.o=m||""}; var qw=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new pw(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b}; var rw=function(a,b){this.hc=a;this.B=b;this.o=null}; var tw=function(a,b,c,d,e,f,k,l,m){c=new hr(c,"application/x-mpegURL",new gr,new or(d,e,f,null,void 0,k),void 0,m);a=new nw(a,b);a.B=l?l:1369843;return new rw(c,a)}; var uw=function(a,b,c){if(!Rv&&!pt())return[];b=qw(b);if(!b)return[];var d={uJ:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],l=[],m;for(m in b){var p=b[m];if(p.width){var v=b[p.audioItag];v&&(f.push(p),e="fairplay"==p.o?d:null,l.push(tw([v],[p],p.itag,p.width,p.height,p.fps,void 0,void 0,e)))}else k.push(p)}e=l.reduce(function(a,b){return!!b.hc.fe&&a},!0)?d:null; l.push(tw(k,f,"93",0,0,0,"auto",c,e));return Nv(a.F,l)}; var vw=function(a,b){this.hc=a;this.o=b}; var ww=function(a,b,c,d,e,f,k){var l=new gr;c in qr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=qr[c],e=Math.round(16*f/9));c=new or(e,f,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new vw(new hr(d,b,l,c),a)}; var xw=function(a){var b=[];E(a,function(a){a.url&&b.push(ww(a.url,a.type,"medium","0"))}); return b}; var yw=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];if(e.sig||e.s){var f=e.sig||cr(e.s);e.url=rj(e.url,{signature:f})}e.url&&c.push(ww(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Nv(a.F,c)}; var zw=function(a){Rj.call(this);this.je=new re(0,0);this.$a=this.Y=this.ha=!1;this.Nc="";this.Nb=this.tb=!1;this.bb={};this.captionTracks=[];this.Ea=[];this.ub=0;this.captionTranslationLanguages=[];this.Ga=!1;this.U=new Tt("und",new nr("Default","und",!0));this.La=0;this.ie=this.Ed=!1;this.J=null;this.he=new Ud(this.zq,5E3,this);G(this,this.he);this.K=[];this.C={};this.keywords={};this.D={};Aw(this,a)}; var Bw=function(a,b){var c=b||{};c.iv_invideo_url&&(a.Ye=$p(c.iv_invideo_url));c.iv_ads_only&&(a.wn="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.jb=c.cta_conversion_urls);a.isPharma=wu(a.isPharma,c.is_pharma);a.author=Au(a.author,c.author);a.Nh=wu(a.Nh,c.cc_asr);var d=c.ttsurl;Cw.test(d)?a.Oh=d:d&&(d=Zp(d),Cw.test(d)&&(a.Oh=d));c.caption_tracks&&c.caption_audio_tracks&&(Dw(a,c.caption_tracks),a.Ea=pj(c.caption_audio_tracks),c.default_audio_track_index&&(a.ub=(0,window.parseInt)(c.default_audio_track_index, 10)||0),c.caption_translation_languages&&Ew(a,c.caption_translation_languages));a.Ga=wu(a.Ga,c.cc_contribute);a.clientPlaybackNonce=Au(a.clientPlaybackNonce,c.cpn);a.subscribed=Au(a.subscribed,c.subscribed);a.sentiment=xu(a.sentiment,c.sentiment,Fw);a.title=Au(a.title,c.title);a.ypcPreview=Au(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Au(a.ypcOrigin,c.ypc_origin);a.paygated=wu(a.paygated,c.paygated);a.requiresPurchase=wu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=Gw(c.keywords)); c.rvs&&(a.H=pj(c.rvs));a.contentCheckOk=wu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=wu(a.racyCheckOk,"1"==c.rco);a.oauthToken=Au(a.oauthToken,c.oauth_token);a.visitorData=Au(a.visitorData,c.visitor_data);c.session_data&&(a.aa=mj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Lc=mj(c.endscreen_autoplay_session_data,"&"));a.ab=Au(a.ab,c.tv_list);a.L=xu(a.L,c.beyond_config,Hw);E(zw.G,function(a){a in c&&(this.C[a]=c[a])},a)}; var Aw=function(a,b){var c=b||{};a.Fd="1"!=c.hlsdvr?!1:Vv()?!0:Iw&&5>Jw?!1:!0;a.hg=c.ad_query_id;a.ig=c.agcid;a.Hh="1"==c.infringe||"1"==c.muted;a.nb=c.authkey;a.zb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||uu());a.Ss=H();a.nk=wu(a.nk,c.cenchd);a.enableCardio=wu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=wu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.cf=yu(a.cf,c.end||c.endSeconds);a.Ia=Au(a.Ia,c.itct);a.fl=wu(a.fl,c.noiba);a.yf="1"==c.livemonitor; a.Fa="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=wu(a.isMdxPlayback,c.mdx);a.ml=wu(a.ml,c.reload);a.nl=wu(a.nl,c.utpsa);a.Cb=c.cyc;for(var d in zw.A){var e=c[d+"_webp"]||c[d];Kw.test(e)&&(a.bb[zw.A[d]]=e)}a.M=Au(a.M,c.vvt);a.jg=c.osig;a.zd=c.ptchn;a.Bd=c.oid;a.Z=c.ptk;a.Cd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.eventId&&bb(/^[A-Za-z0-9_-]*=*/g.test(a.eventId)); a.osid=c.osid;a.lv=c.vm;a.Wu=c.of;a.playlistId=Au(a.playlistId,c.list);a.Dd=c.pyv_view_beacon_url;a.lg=c.pyv_quartile25_beacon_url;a.Ch=c.pyv_quartile50_beacon_url;a.Oj=c.pyv_quartile75_beacon_url;a.kg=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.pe=c.sdetail;!a.za&&c.session_data&&(a.za=mj(c.session_data,"&").feature);a.isFling=1==yu(a.isFling?1:0,c.is_fling);a.vnd=yu(a.vnd,c.vnd);a.ea=Au(a.ea, c.ctrl);a.fa=Au(a.fa,c.ytr);a.ia=c.ytrcc;a.Ug=Du(a.Ug,c.vq);a.Zg=Du(a.Zg,c.suggestedQuality);a.da=c.approx_threed_layout||0;a.Xe=wu(a.Xe,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Au(a.vssCredentialsToken,c.vss_credentials_token);a.jm=Au(a.jm,c.vss_credentials_token_type);Lw(a,c.watermark);a.ypcGid=Au(a.ypcGid,c.ypc_gid);a.heartbeatToken=Au(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=yu(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries= yu(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=wu(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.K.push("ad")):"1"!=c.supported_without_ads&&(a.lo=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ka=c.atc);c.license_info&&(a.zm=Mw(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.al="1"== c.autonav);c.autoplay&&(a.xf="1"==c.autoplay);c.iv_load_policy&&(a.Ca=xu(a.Ca,c.iv_load_policy,Nw));c.cc_lang_pref&&(a.ne=Au(c.cc_lang_pref,a.ne));c.cc_load_policy&&(a.oe=xu(a.oe,c.cc_load_policy,Nw));c.channel_path&&(a.Ph=Au(c.channel_path,a.Ph));"0"==c.dash&&(a.Ln=!0);c.dashmpd&&(a.G=Ug(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=cr(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.Re=Xa(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&& (a.fairPlayCert=(0,window.atob)(c.fair_play_cert));c.featured&&(a.Qo="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.K.push("fresca");c.idpj&&(a.oj=Xa(c.idpj));c.ismb&&(a.gh=Xa(c.ismb));c.is_episodic&&(a.bl="1"==c.is_episodic);c.is_listed&&(a.isListed=wu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Tf=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Xa(c.length_seconds));if(c.live_chunk_readahead|| c.hls_live_chunk_readahead)a.pl=yu(a.pl,c.live_chunk_readahead||c.hls_live_chunk_readahead);c.live_start_walltime&&(a.liveStartWalltime=Xa(c.live_start_walltime));c.ldpj&&(a.Am=Xa(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Gh=a.perceptualLoudnessDb?Math.pow(10,Math.min(zw.D-a.perceptualLoudnessDb,0)/20):zw.o);c.partnerid&&(a.V=Xa(c.partnerid));c.probe_url&&(a.probeUrl=$p(Ug(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Au(c.profile_picture,a.profilePicture)); c.pyv_billable_url&&Ow.test(c.pyv_billable_url)&&(a.ma=c.pyv_billable_url);c.pyv_conv_url&&Ow.test(c.pyv_conv_url)&&(a.sa=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Qa=d.quartile_0_url,a.wc=d.quartile_25_url,a.xc=d.quartile_50_url,a.Oc=d.quartile_75_url,a.uc=d.quartile_100_url);"1"==c.spacecast_module&&(a.K.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=yu(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume|| a.Fa||(a.clipStart=c.start);c.two_stage_token&&(a.pj=c.two_stage_token);c.url_encoded_third_party_media&&(a.Pf=pj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.K.push("ypc");c.ypc_clickwrap_module&&a.K.push("ypc_clickwrap");a.Vu=Au(a.Vu,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a); a.D.focEnabled=wu(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=wu(a.D.rmktEnabled,c.rmktEnabled);a.C=c;Bw(a,c);Pw(a);c.adpings&&(a.ke=c.adpings?oj(c.adpings):null);c.feature&&(a.qe=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q)}; var Qw=function(a){return H()>a.Ss+1E3*zw.F}; var Rw=function(a){return!(!a.B||!a.B.videoInfos.length)}; var Pw=function(a){Sw(a)||(a.adaptiveFormats?(a.o=bt(Tw(a,a.adaptiveFormats),a.zm,a.lengthSeconds),G(a,a.o),at(a.o)&&(a.Y=!0)):a.G&&(a.ha=!0))}; var Sw=function(a){return!Vv()||a.Ln?!0:!1}; var Uw=function(a){a.isDisposed()||(a.Qd=!1,a.R("dataloaded",a.C))}; var Vw=function(a,b){if(!a.isDisposed()){a.B=null;a.Ff=null;a.O=null;var c=Sw(a)||b.jl;if(!c&&a.spacecastAdaptiveFormats)a.o=bt(Tw(a,a.spacecastAdaptiveFormats),a.zm,a.lengthSeconds),G(a,a.o),a.B=ew(b.F,a.o,a.J,!0);else if(a.spacecastFormatMap){var d=Tw(a,a.spacecastFormatMap);a.O=yw(b,d);a.B=new au(O(a.O,function(a){return a.hc}))}if(a.B){var e,f=0; O(a.B.videoInfos,function(a){!e&&a.video.o&&f<a.video.height&&(e=a.video.quality,f=a.video.height)}); e&&(d=Vt(e,e,!0),a.Ug=d,a.Zg=d)}a.B||c||!a.o||(b.K||kt(a.o,a.Fa),a.B=ew(b.F,a.o,a.J));a.B||(a.O=Ww(a,b),a.O.length&&(a.B=new au(O(a.O,function(a){return a.hc})))); Xw(a)}}; var Ww=function(a,b){if(a.hlsFormats){var c=Tw(a,a.hlsFormats),c=uw(b,c,a.gh);if(c.length)return c}if(a.Pf&&a.Uo)return c=xw(a.Pf),Nv(b.F,c);c=Tw(a,a.Tf,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.gh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Ug(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return yw(b,c)}; var Yw=function(a){return a.A&&a.A.fe||null}; var Zw=function(a){a.kj||(a.C.storyboard_spec?a.kj=new nu(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.o&&(a.kj=new pu(a.C.live_storyboard_spec,a.o)));return a.kj}; var $w=function(a){var b=Zw(a);!a.Zi&&b&&(a.Zi=new fu(b),G(a,a.Zi));return a.Zi}; var ax=function(a){return a.o&&!(0,window.isNaN)(it(a.o))?it(a.o):0}; var bx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.Pf)}; var cx=function(a){return!!(a.o||a.Tf||a.Pf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)}; var dx=function(a){var b=ib(a.K,"ypc");a.ypcPreview&&(b=!1);return bx(a)&&!a.Qd&&!a.ha&&!a.Y&&(cx(a)||ib(a.K,"fresca")||b)}; var Tw=function(a,b,c){b=pj(b);var d={};c&&E(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})}); E(b,function(a){a.url&&(a.url=Ug(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a); return b}; var Gw=function(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0}); return b}; var Lw=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Ua=c[1],Kw.test(a.Ua)&&-1==a.Ua.search(zw.H)||(a.Ua=""))}}; var Mw=function(a){a=pj(a);var b={};E(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)}); return b}; var Dw=function(a,b){for(var c=pj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Cw.test(f)&&(f={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k},"asr"!=e.k&&(f.format=3),a.captionTracks.push(new Pt(f)))}}; var Ew=function(a,b){for(var c=pj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new Ot({languageCode:e.lc,languageName:e.n}))}}; var Xw=function(a){for(var b=a.B?a.B.audioTracks:[],b=b.concat(a.U),c=0;c<a.Ea.length;c++)for(var d=a.Ea[c],e=0;e<b.length;e++){var f=b[e],k=f.Ib.id==d.aid;if(f==a.U&&c==a.ub||k){if(d.i)for(var k=d.i.split(","),l=0;l<k.length;l++)f.captionTracks[l]=a.captionTracks[(0,window.parseInt)(k[l],10)];d.d&&(f.lk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.wg=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.Cn=(0,window.parseInt)(d.v,10)}}}; var ex=function(a,b){return!!a.C[b]}; var fx=function(a){return a.Fa&&!a.Fd}; var gx=function(a){return a.Fa&&a.Fd}; var hx=function(a){if(a.da||a.Tc["3D"])return!0;a=a.Tc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a}; var ix=function(a){if(!a.o)return!1;for(var b in a.o.o){var c=a.o.o[b].info.video;if(c&&3==c.projectionType||c&&2==c.projectionType&&3==a.da)return!0}return!1}; var jx=function(a){Rj.call(this);this.startSeconds=0;this.L=!1;this.o=0;this.title="";this.B=0;this.A=[];this.J=this.F=!1;this.aa=this.Lc=this.G=null;this.views=0;this.V=0!=a.fetch;this.C=[];this.o=Math.max(0,a.index||0);this.H=!!a.loop;this.startSeconds=a.startSeconds||0;this.U="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.O={};a.video_id&&(this.A[this.o]=a);a.api&&("string"==typeof a.api&&16==a.api.length? a.list="PL"+a.api:a.playlist=a.api);this.K=0;if(a.list)switch(a.listType){case "user_uploads":kx(this,a.list);break;case "user_favorites":lx(this,a.list);break;case "search":mx(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.D=br(a.list),a.video?(this.A=a.video.slice(0),this.F=!0):nx(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.o&&(this.A=[]);E(b,function(a){a&&this.A.push({video_id:a})},this); this.B=this.A.length;b=O(this.A,function(a){return a.video_id}); ox(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.F=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in zw.A)b="playlist_"+c,b=a[b+"_webp"]||a[b],Kw.test(b)&&(this.O[zw.A[c]]=b);this.M=a.thumbnail_ids?a.thumbnail_ids.split(","):[]}; var px=function(a){return!!(a.playlist||a.list||a.api)}; var qx=function(a,b){var c=a.o+1;c>=a.B&&(c=a.H||b?0:-1);return c}; var rx=function(a,b){var c=a.o-1;0>c&&(c=a.H||b?a.B-1:-1);return c}; var sx=function(a,b){var c=qx(a,b);if(-1==c)return null;tx(a,c);return a.qb(c)}; var ux=function(a,b){var c=rx(a,b);if(-1==c)return null;tx(a,c);return a.qb(a.o)}; var tx=function(a,b){a.o=ke(b,0,a.B-1);a.startSeconds=0}; var kx=function(a,b){a.J||(a.D=new ar("UU","PLAYER_"+b),ox(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}; var lx=function(a,b){a.J||(a.D=new ar("FL","PLAYER_"+b),ox(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}; var mx=function(a,b){if(!a.J){a.D=new ar("SR",b);var c={search_query:b};a.U&&(c.mob="1");ox(a,"/search_ajax?style=json&embeddable=1",c)}}; var nx=function(a){if(!a.J){var b={list:a.D},c=a.qb();c&&c.videoId&&(b.v=c.videoId);ox(a,"/list_ajax?style=json&action_get_list=1",b)}}; var ox=function(a,b,c){a.V&&Bj(Ug(b,c),{format:"JSON",kb:function(a,b){vx(this,b)}, onError:function(){this.R("error")}, context:a})}; var vx=function(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.H=b.loop);var c=a.qb();a.A=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.A.push(a))},a); a.B=a.A.length;b.index?a.o=b.index:wx(a,c);a.setShuffle(!1);a.J=!1;a.F=!0;a.K++;a.G&&a.G()}}; var wx=function(a,b){if(b){var c=b.videoId;if(!a.A[a.o]||a.A[a.o].video_id!=c)for(var d=0;d<a.A.length;d++)if(a.A[d].video_id==c){a.o=d;break}}}; var xx=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f}; var yx=function(a){return(!fa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey}; var zx=function(a){return px(a)?(a.fetch=0,new jx(a)):new zw(a)}; var Ax=function(a,b,c,d){var e=b.qb();J(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Se();d=b.Bc(c,d?d:"mqdefault.jpg");var k=b instanceof zw?xx(b.lengthSeconds):null,l=!!f,f=l&&"RD"==br(f).type;c={title:b.title,author:b.author,watch:P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.Ak(c),episodic_title:b.title,is_episodic:e.bl,is_featured:e.Qo,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof jx&&(c.playlist_length=b.B,c.episodic_length= b.B,c.episodic_index=b.o);a.update(c)}; var Bx=function(a){var b=["div","ytp-upnext",{"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",P("YTP_PLAYLIST_UP_NEXT")],["span","ytp-upnext-title","{{title}}"],["span","ytp-upnext-author","{{author}}"]],["a","ytp-upnext-autoplay-icon",{href:"{{url}}"}],["span","ytp-upnext-bottom",["span","ytp-upnext-cancel"],["span","ytp-upnext-paused",P("YTP_AUTOPLAY_PAUSED_2")]], ["span","ytp-upnext-close"]];Q.call(this,b);var c=this.ra["ytp-upnext-cancel"],b=this.ra["ytp-upnext-close"],d=new Q(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":P("YTP_AUTOPLAY_CANCEL")},P("YTP_CANCEL")]);G(this,d);d.P("click",this.Ps,this);d.o(c);c=new Q(["button",["ytp-upnext-close-button","ytp-button"]]);G(this,c);c.P("click",this.Ps,this);c.o(b);b=this.ra["ytp-upnext-autoplay-icon"];b.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 98 98" width="100%"><circle class="ytp-svg-autoplay-circle" cx="49" cy="49" fill="#000" fill-opacity="0.8" r="48" /><circle class="ytp-svg-autoplay-ring" cx="-49" cy="49" fill-opacity="0" r="46.5" stroke="#FFFFFF" stroke-dasharray="293" stroke-dashoffset="-293" stroke-width="4" transform="rotate(-90)" /><polygon class="ytp-svg-autoplay-triangle" fill="#fff" points="32,27 72,49 32,71" /></svg>'; this.C=a;this.G=$e("ytp-svg-autoplay-ring",this.element);this.A=this.D=null;this.F=0;R(this,b,"click",this.UF);this.qp();R(this,a,"autonavvisibility",this.qp)}; var Cx=function(a){a.A||(Pi("a11y-announce",P("YTP_PLAYLIST_UP_NEXT")+" "+a.D.title),a.F=$s(),a.A=new Ud(a.Um,25,a),a.Um());Zd(a.element,"ytp-upnext-autoplay-paused")}; var Dx=function(a){Ex(a);a.F=$s();a.Um();I(a.element,"ytp-upnext-autoplay-paused")}; var Ex=function(a){a.A&&(a.A.dispose(),a.A=null)}; var Fx=function(a,b){Q.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.A=0;this.J=null}; var Gx=function(a){var b=window.location;a=Ug(a,{})+"";a=a instanceof He?a:Ke(a);b.href=Je(a)}; var Hx=function(a,b){var c=zi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=zi("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Lg(window.location.href);e&&d.push(e);e=Lg(a);if(ib(d,e)||!e&&ta(a,"/"))if(d=Ig(a),d=Hg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d=zi("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Ua(d).toString(36):"s_tempdata-"+Ua(d),c=c?Sg(c):"",ik(d,c,5)}}; var Ix=function(a,b){window.open(a,b||Ua(a).toString(36))}; var Jx=function(a){var b=!a.W().za&&3!=a.getPresentingPlayerType();return a.Ja()||b}; var Kx=function(a,b,c){if(!c&&yx(a))return Zl(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");Hx(a,null);return!1}; var Lx=function(a,b,c){if(Mx(b.W())&&2!=b.getPresentingPlayerType()){if(yx(c))return b.Ja()&&Nx(b),Zl(c),!0}else{var d=yx(c);d&&b.pauseVideo();Hx(a,null);d&&(Ix(a),Zl(c))}return!1}; var Ox=function(a,b,c){var d='<svg width="100%" height="100%" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="ytp-'+a+'" d="'+(c&&(wc||tc)?c:b)+'">';return d=(c?d+('<animate attributeType="XML" attributeName="d" fill="freeze" from="'+c+'" to="'+b+'" dur="0.2s" keySplines=".4 0 1 1" repeatCount="1"/>'):d+"<animate/>")+('</path></defs><use xlink:href="#ytp-'+a+'" class="ytp-svg-shadow"/><use xlink:href="#ytp-'+a+'" class="ytp-svg-fill"/></svg>')}; var Px=function(a){var b=a.W(),c=b.experiments.na("video_wall_redesign");this.D=b.experiments.na("endscreen_redirect")&&!Qx(b);Q.call(this,["a","videowall-still",{tabindex:null,href:"{{url}}",target:this.D?"_blank":null,"aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",c?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label", P("YTP_FEATURED")],["span",c?"ytp-redesign-videowall-still-info":"videowall-still-info",["span",c?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",c?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",["span",c?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",c?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author}}"],["span",c?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration", "{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",c?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",P("YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular", c?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],P("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",c?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],P("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.C=a;this.A=null;this.P("click",this.F);this.P("keypress", this.G)}; var Rx=function(a,b,c){Hq.call(this,a,b,"videowall-endscreen");this.Y=c;this.H=0;this.D=[];this.G=this.C=null;this.L=this.U=!1;this.M=new Ud(pa(I,this.element,"ytp-show-tiles"),0);G(this,this.M);if(b=this.A.W().experiments.na("video_wall_pagination"))c=new Q(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":P("YTP_PREVIOUS")}]),G(this,c),c.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M21.33,22 L15.33,16 L21.33,10 L19.33,8 L11.29,16 L19.33,24 L21.33,22 Z" fill="#fff" /></svg>', c.o(this.element),c.P("click",this.Sy,this);this.S=new wq(["div","ytp-endscreen-content"]);G(this,this.S);this.S.o(this.element);b&&(b=new Q(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":P("YTP_NEXT")}]),G(this,b),b.element.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 32 32" width="100%"><path d="M16.98,16 L10.98,10 L12.98,8 L21.01,16 L12.98,24 L10.98,22 L16.98,16 Z" fill="#fff" /></svg>',b.o(this.element),b.P("click",this.Ry,this));this.A.W().experiments.na("video_wall_redesign")&& I(this.element,"ytp-endscreen-redesign");this.F=new Bx(a);G(this,this.S);Uq(this.A,this.F.element,4);this.ga();this.P("transitionend",this.yd)}; var Sx=function(a){return Tx(a.A.W(),a.A.getVideoData(),a.A.ac())&&a.Ih()&&!a.G}; var Ux=function(a,b,c,d){return 0==b&&c>=3*Rx.o&&d>=3*Rx.o&&a.C.length&&zx(a.C[0]).qb().bl?2*Rx.o:Rx.o}; var Vx=function(a){var b=Wx(a.Y);b!=a.U&&(a.U=b,a.A.app.Oa("autonavvisibility"))}; var Xx=function(a){mq.call(this,a);Gi({});this.qa="endscreen";this.H="end";this.A=null;var b=a.W();Yx(a)?this.A=new Rx(this.o,this.S,this):b.Z?this.A=new Tq(this.o,this.S):this.A=new Hq(this.o,this.S);Uq(this.o,this.A.element,4)}; var Zx=function(a){var b=a.getVideoData(),b=b&&b.Fa;return $x(a.W())&&1==a.getPresentingPlayerType()&&!b}; var ay=function(a){var b=a.o.getVideoData(),c=!Yx(a.o)||!(!b.H||!b.H.length);a.o.W();b=ex(b,"ypc_module");a=by(a.o.app);return c&&!b&&!a}; var Yx=function(a){a=a.W();return a.wc&&!a.Z}; var Wx=function(a){return a.A instanceof Rx&&a.A.B&&Sx(a.A)}; var cy=function(a){var b=Math.max(1E3*(a.o.getVideoData().lengthSeconds-10),0),b=new iq(b,0x8000000000000,{id:"preload"}),c=new iq(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.fb([b,c])}; var dy=function(a){return Zx(a)?new Xx(a):null}; var ey=function(a){return(a=fy[a.toString()])?a:"YTP_ERROR_LICENSE"}; var gy=function(){var a=[],b=[];return{start:function(b){return a[b]}, end:function(a){return b[a]}, length:a.length}}; var hy=function(a){var b="";if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b}; var iy=function(a,b){if(!a)return-1;for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1}; var jy=function(a,b){var c=iy(a,b);return 0<=c?a.end(c):window.NaN}; var ky=function(a){return a&&a.length?a.end(a.length-1):window.NaN}; var ly=function(a,b){var c=jy(a,b);return 0<=c?c-b:0}; var my=function(){}; var ny=function(a){var b=a.duration||0;return window.Infinity==b?1:b?(0<ky(a.buffered)&&a.duration?jy(a.buffered,a.currentTime):0)/b:0}; var Zq=function(a){a.src&&(Rv&&0<a.readyState&&(a.currentTime=Math.max(oy,0)),a.removeAttribute("src"),a.load(),!a.We||!a.We.o||a.We&&a.We.equals(null)||(a.We&&a.We.dispose(),a.We=null))}; var py=function(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}; var qy=function(a,b){this.A=a||64;this.o=b||null}; var ry=function(a,b,c,d,e){if(T(a,128))return a;var f=a.A,k=a.o,l=b.target;if(!T(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&l.o.ended||"ended"==b.type&&(l.o.ended||1>Math.abs(l.getCurrentTime()-l.o.duration)))0<l.o.networkState&&l.o.src&&(f=14,k=null);else if("pause"==b.type)T(a,256)?(f^=256)||(f=64):T(a,32)||T(a,2)||T(a,4)||(f=4,T(a,1)&&T(a,8)&&(f|=1),k=null);else if("playing"==b.type)f=8,k=null,T(a,32)&&(f|=32),d&&T(a,1)&&sy(c,l)&&(f|=1);else if("error"==b.type){a:{if(2==l.getErrorCode())b= "progressive.net";else if(3==l.getErrorCode())b="fmt.decode";else if(4==l.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:P("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(k=b,f|=128)}else if("progress"==b.type)ty(a)&&sy(c,l)&&(f|=1);else if("seeked"==b.type)f&=-17;else if("seeking"==b.type)f|=16,0>=uy(l)&&(f|=1),f&=-3;else if("waiting"==b.type)T(a,2)||(f|=1);else if("timeupdate"==b.type)e&&8!=a.A&&!T(a,512)?f|=512:(T(a,16)||T(a,4)|| (f=sy(c,l)?f|1:f&-2),1<l.o.readyState&&0<l.getCurrentTime()&&(f&=-65));else return a;return vy(a,f,k)}; var sy=function(a,b){return a?wy(a,b.getCurrentTime(),$s(),uy(b)):!1}; var vy=function(a,b,c){b&-522&&(b&=-513);return b==a.A&&c==a.o||b&128&&!c||b&2&&b&16?a:new qy(b,c)}; var yy=function(a,b){return vy(a,a.A|b)}; var zy=function(a,b){return vy(a,a.A&~b)}; var Ay=function(a){return vy(a,(a.A|4)&-9)}; var T=function(a,b){return!!(a.A&b)}; var ty=function(a){return T(a,8)&&!T(a,2)}; var By=function(a){return T(a,64)&&!T(a,8)&&!T(a,4)}; var Cy=function(a){return T(a,1)&&!T(a,2)}; var Dy=function(a){return T(a,128)?-1:T(a,2)?0:T(a,1)&&!T(a,32)?3:T(a,64)?-1:T(a,8)?1:T(a,4)?2:-1}; var Ey=function(a,b,c){Rj.call(this);this.F=b;this.o=7500+Math.floor(15E3*Math.random());this.G=c.innertubeApiKey;this.H=JSON.stringify({context:{client:{clientName:c.Bx,clientVersion:c.innertubeContextClientVersion,hl:c.Ex,gl:c.Cx}},videoId:a});this.J="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.A=new Ud(A(this.D,this));G(this,this.A);this.D()?this.A.start(this.o):this.A.start(1E4)}; var Fy=function(a){Q.call(this,["a","ytp-fresca-suggested-central-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-promo-central",["div","ytp-fresca-suggested-header","{{suggested_header_central}}"],["div","ytp-fresca-suggested-central-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div","ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]);this.A=a;this.P("click",this.C, this)}; var Gy=function(a){Q.call(this,["div","ytp-fresca-suggested-promo-sidebar",["div","ytp-fresca-suggested-sidebar-title","{{suggested_sidebar_title}}"],["button",["ytp-button","ytp-fresca-suggested-sidebar-close-button"],"{{suggested_sidebar_close}}"],["div","ytp-fresca-suggested-sidebar-items","{{sidebar_items}}"]]);this.A=[];this.C=a;this.D=!1}; var Hy=function(a,b){Bq(a,"suggested_sidebar_title",b.A?P("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.A}):"");var c=a.ra["ytp-fresca-suggested-sidebar-close-button"];xh(c);R(a,c,"click",a.Qy);Mb(a.A);a.A=[];E(b.o,function(a,b){if(!(5<=b)&&a){var c=new Q(["a","ytp-fresca-suggested-sidebar-link",{href:"{{link_destination}}"},["div","ytp-fresca-suggested-sidebar",["div","ytp-fresca-suggested-image",{style:"{{image_style}}"},["div","ytp-fresca-suggested-image-badge","{{badge_content}}"]],["div", "ytp-fresca-suggested-title","{{suggested_title}}"],["div","ytp-fresca-suggested-content","{{suggested_content}}"]]]),k="background-image:"+Iy(a),l=Jy(a);c.update({suggested_title:a.Nr,suggested_content:Ky(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.ra["ytp-fresca-suggested-image-badge"];J(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.P("click",this.Wx,this);this.A.push(c)}},a); Bq(a,"sidebar_items",a.A)}; var Ly=function(a){Q.call(this,["div","ytp-fresca-module",["div","ytp-fresca-slant",["div","ytp-fresca-slant-blur-image"],["div","ytp-fresca-slant-inner",["div","ytp-fresca-slant-overlay"],["div","ytp-fresca-slant-arrows"]]],["div","ytp-fresca-band-slate",["div","ytp-fresca-message",["h1","ytp-fresca-heading","{{heading}}"],["h2","ytp-fresca-byline","{{byline}}"],["h3","ytp-fresca-countdown","{{countdown}}"]]]]);this.J=a;this.F=0;this.A=null;this.G=-1;this.D=new Fy(a);G(this,this.D);this.C=new Gy(a); G(this,this.C);this.D.ga();this.D.o(this.element);this.C.ga();this.C.o(this.element)}; var My=function(a,b,c){if(!a.A||a.A.state!=b.state||a.A.startTime!=b.startTime||a.A.imageUrl!=b.imageUrl||a.A.messageText.join()!=b.messageText.join()||c)if(a.A=b,b=Ny(b),J(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.A.imageUrl,b=a.ra["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=a.A.getMessage(),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.H(!0),a.A.A&&!Oy(a.J))if(Py(a.A.A)&&!Ny(a.A)){b=a.D;c=a.A.A.o[0]; var d;d=a.A.A;d=d.A?P("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.A}):"";var e="background-image:"+Iy(c);b.update({suggested_header_central:d,suggested_title:c.Nr,suggested_content:Ky(c),badge_content:Jy(c),link_destination:c.getVideoUrl(),image_style:e});J(b.ra["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.D.show();a.C.ga()}else b=a.A.A,!(0<b.o.length)||Py(b)||Ny(a.A)||a.C.D?a.C.ga():(Hy(a.C,a.A.A),a.C.show()),a.D.ga();else a.D.ga(),a.C.ga()}; var Qy=function(a,b,c,d,e,f){z(a)?(this.F="y"==a?b:0,this.D="m"==a?b:0,this.o="d"==a?b:0,this.A="h"==a?b:0,this.B="n"==a?b:0,this.C="s"==a?b:0):(this.F=a||0,this.D=b||0,this.o=c||0,this.A=d||0,this.B=e||0,this.C=f||0)}; var Ry=function(a,b,c){fa(a)?(this.date=Sy(a,b||0,c||1),Ty(this,c||1)):ia(a)?(this.date=Sy(a.getFullYear(),a.getMonth(),a.getDate()),Ty(this,a.getDate())):(this.date=new Date(H()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Ty(this,a))}; var Sy=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}; var Ty=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))}; var Uy=function(){}; var Vy=function(a){if("number"==typeof a){var b=new Uy;b.B=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Oa(c,2));c=d.join("")}b.C=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Wy(a);b.D=[c,c];b.o={tI:a,kn:a};b.A=[];return b}b=new Uy;b.C=a.id;b.B=-a.std_offset;b.D=a.names;b.o=a.names_ext;b.A=a.transitions;return b}; var Wy=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Oa(Math.floor(a/60)%100,2),":",Oa(a%60,2));return b.join("")}; var Xy=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.A.length&&c>=a.A[d];)d+=2;return 0==d?0:a.A[d-1]}; var Yy=function(a,b){this.A=[];this.o=b||Zy;"number"==typeof a?$y(this,a):az(this,a)}; var az=function(a,b){for(bz&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<cz.length;++c){var d=b.match(cz[c]);if(d){d=d[0];b=b.substring(d.length);0==c&&("''"==d?d="'":(d=d.substring(1,d.length-1),d=d.replace(/\'\'/,"'")));a.A.push({text:d,type:c});break}}}; var $y=function(a,b){var c;if(4>b)c=a.o.Jj[b];else if(8>b)c=a.o.ln[b-4];else if(12>b)c=a.o.Dt[b-8],c=c.replace("{1}",a.o.Jj[b-8]),c=c.replace("{0}",a.o.ln[b-8]);else{$y(a,10);return}az(a,c)}; var dz=function(a,b){var c;c=String(b);var d=a.o||Zy;if(void 0!==d.Uu){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.Uu+k-48):c.charAt(f))}c=e.join("")}return c}; var ez=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}; var fz=function(a,b,c,d,e,f){var k=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.o.Ht[c]:a.o.It[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),dz(a,Oa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.o.pu[c];break a;case 4:k=a.o.$m[c];break a;case 3:k=a.o.bn[c];break a;default:k=dz(a,Oa(c+1,k))}return k;case "k":return ez(e),dz(a,Oa(e.getHours()||24,k));case "S":return dz(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Oa(0,k-3):"")); case "E":return c=d.getDay(),4<=k?a.o.pn[c]:a.o.cn[c];case "a":return ez(e),k=e.getHours(),a.o.Vm[12<=k&&24>k?1:0];case "h":return ez(e),dz(a,Oa(e.getHours()%12||12,k));case "K":return ez(e),dz(a,Oa(e.getHours()%12,k));case "H":return ez(e),dz(a,Oa(e.getHours(),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.o.Ju[c];break a;case 4:k=a.o.jn[c];break a;case 3:k=a.o.hn[c];break a;default:k=dz(a,Oa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.o.Iu[c];break a;case 4:k=a.o.fn[c];break a; case 3:k=a.o.gn[c];break a;default:k=dz(a,Oa(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.o.Cu[c]:a.o.wu[c];case "d":return dz(a,Oa(d.getDate(),k));case "m":return ez(e),dz(a,Oa(e.getMinutes(),k));case "s":return ez(e),dz(a,Oa(e.getSeconds(),k));case "v":return k=f||Vy(c.getTimezoneOffset()),k.C;case "V":return a=f||Vy(c.getTimezoneOffset()),2>=k?a.C:0<Xy(a,c)?n(a.o.Gt)?a.o.Gt:a.o.DST_GENERIC_LOCATION:n(a.o.kn)?a.o.kn:a.o.STD_GENERIC_LOCATION;case "w":return c=a.o.Mj,e=new Date(e.getFullYear(), e.getMonth(),e.getDate()),b=a.o.Lj||0,c=e.valueOf()+864E5*(((n(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),dz(a,Oa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Vy(c.getTimezoneOffset()),4>k?a.D[0<Xy(a,c)?2:0]:a.D[0<Xy(a,c)?3:1];case "Z":return e=f||Vy(c.getTimezoneOffset()),4>k?(k=-(e.B-Xy(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Oa(Math.floor(k/60)%100,2),Oa(k%60,2)),k=a.join("")):k=dz(a,Wy(e.B-Xy(e,c))),k;default:return""}}; var gz=function(a){this.D=a.thumbnailUrl?a.thumbnailUrl:null;this.o=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Nr=a.title;this.A=a.state;this.B=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.F=a.videoUrl;this.C=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null}; var Iy=function(a){return(a=a.D)?"url("+a+")":""}; var Ky=function(a){if("COMPLETE"==a.A){var b=Math.floor(H()/1E3);a=a.o?b-a.o:0;return 172800<a?P("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(H()/1E3),a=a.o?a.o-b:0,172800<a?P("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?P("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):P("YTP_FRESCA_STREAMING_SOON")):a.B&&2<a.B?P("YTP_FRESCA_VIEWERS_WATCHING_NOW", {VIEWER_COUNT:a.B}):P("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")}; var Jy=function(a){return"COMPLETE"==a.A&&a.C?xx(a.C):a.isLive()?P("YTP_FRESCA_LIVE_BADGE"):null}; var hz=function(a){this.A=a.channelName?a.channelName:"";this.o=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.o.push(new gz(a[b]))}; var Py=function(a){return 1==a.o.length&&a.o[0].isLive()}; var iz=function(a,b){this.state=-1;this.B=a;this.messageText=[];this.C=!1;b&&jz(this,b)}; var jz=function(a,b){var c=b.lifeCycleState;c&&(a.state=kz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.C=0<=eb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a}); if(c=b.broadcastId)a.broadcastId=c;a.A=new hz(b)}; var lz=function(a){switch(a.state){case 6:return!a.o()&&a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]:a.o()?[]:[P("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),P("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[P("YTP_FRESCA_EVENT_OVER_MESSAGE"),P("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Ny(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.B&&a.startTime){var b=zi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate; Zy={$m:b.months,fn:b.months,bn:b.shortMonths,gn:b.shortMonths,Jj:b.dateFormats,pn:b.weekdays,jn:b.shortMonths,cn:b.shortWeekdays,hn:b.shortWeekdays,Ru:b.weekendRange,Lj:b.firstDayOfWeek,Mj:b.firstWeekCutoffDay,Vm:b.amPms};c=(new Yy(d)).format(new Date(1E3*c))}b=Math.floor(H()/1E3);return[b<=a.startTime?P("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?P("YTP_FRESCA_EVENT_STARTING_SOON"):P("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.B?[P("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,P("YTP_FRESCA_EVENT_OFFLINE")]: a.B?[P("YTP_FRESCA_EVENT_OFFLINE")]:[P("YTP_FRESCA_STAND_BY_MESSAGE")]}}; var Ny=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(H()/1E3);return ib(mz,a.state)&&86459>=b&&86400<=b}; var nz=function(a){mq.call(this,a);this.H=this.qa="fresca";this.B=this.K=!1;this.C=null;Gi({YTP_FRESCA_STARTING_SOON_MESSAGE:"\u5373\u5c07\u958b\u59cb...",YTP_FRESCA_EVENT_OVER_MESSAGE:"\u9019\u500b\u73fe\u5834\u76f4\u64ad\u5df2\u7d50\u675f\u3002",YTP_FRESCA_COMPLETE_MESSAGE:"\u8b1d\u8b1d\u89c0\u8cde\uff01",YTP_FRESCA_STAND_BY_MESSAGE:"\u8acb\u7a0d\u5019\u3002",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"\u5f71\u7247\u4e2d\u65b7",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"\u64c1\u6709\u8005\u505c\u6b62\u76f4\u64ad", YTP_FRESCA_EVENT_OFFLINE:"\u96e2\u7dda",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"\u9019\u500b\u4e32\u6d41\u7684\u72c0\u614b\uff1a",YTP_FRESCA_EVENT_STARTS_IN:"\u89c0\u770b\u73fe\u5834\u76f4\u64ad\uff01",YTP_FRESCA_EVENT_STARTING_SOON:"\u73fe\u5834\u76f4\u64ad\u5373\u5c07\u958b\u59cb",YTP_FRESCA_EVENT_HASNT_STARTED:"\u5df2\u6392\u5b9a\u7684\u73fe\u5834\u76f4\u64ad\u5c1a\u672a\u958b\u59cb",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME\u6b63\u5728\u73fe\u5834\u76f4\u64ad\uff01",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"$STREAMER_NAME\u7684\u5176\u4ed6\u73fe\u5834\u76f4\u64ad", YTP_FRESCA_LIVE_BADGE:"\u76f4\u64ad\u4e2d",YTP_FRESCA_LIVE_DAYS_AGO:"\u5df2\u5728 $DAYS \u5929\u524d\u4e32\u6d41\u64ad\u653e",YTP_FRESCA_LIVE_HOURS_AGO:"\u5df2\u5728 $HOURS \u5c0f\u6642\u524d\u4e32\u6d41\u64ad\u653e",YTP_FRESCA_LIVE_RECENTLY:"\u6700\u8fd1\u9032\u884c\u904e\u76f4\u64ad",YTP_FRESCA_LIVE_IN_DAYS:"\u5c07\u5728 $DAYS \u5929\u5f8c\u76f4\u64ad",YTP_FRESCA_LIVE_IN_HOURS:"\u5c07\u5728 $HOURS \u5c0f\u6642\u5f8c\u76f4\u64ad",YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT \u4eba\u6b63\u5728\u89c0\u770b", YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"\u6b63\u5728\u76f4\u64ad\u4e2d",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS \u5929",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS \u5c0f\u6642"});this.F=!1;this.L="leanback"!=this.o.W().Ba}; var oz=function(a,b){if(!a.L)return!1;var c=!!b.getMessage().length||!!b.imageUrl;if(!a.B&&6>b.state)return c;if(a.o.app.o.K&&(b.imageUrl||b.messageText.length))return!0;var d=pz(a.o),d=Cy(d)||T(d,2),e;if(e=!a.A.o())(e=!a.B)||(e=!(pz(a.o).Wa()&&!fx(a.o.getVideoData())&&!a.o.app.o.K)&&d);return e||a.K&&a.o.app.o.K||!a.B&&6<b.state?c:!1}; var qz=function(a,b){var c=oz(a,b);if(!a.B)switch(b.state){case 6:b.o()&&(a.B=!0,qq(a));break;case 8:case 7:a.B=!0}c&&My(a.D,b);c&&!a.loaded?(a.load(),rz(a.o)):!c&&a.loaded&&(a.unload(),rz(a.o))}; var sz=function(a){return ex(a.getVideoData(),"fresca_module")?new nz(a):null}; var tz=function(a,b){if(!a.A||!a.A.equals(b)){a.A=b;var c=a.o,d;d={hasActiveStream:b.o(),imageUrl:b.imageUrl,messageText:b.getMessage(),startTime:b.startTime,state:b.state};rz(c,d)}}; var uz=function(){if(!vc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}}; var vz=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(wz){var b=xz();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}; var yz=function(a){var b=a.xml;if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");}; var zz=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=We(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=We(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}; var xz=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");if(a){a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}}return a}; var Az=function(a){this.A=a||window;this.o=[]}; var Bz=function(a,b,c){c=A(c,a.A);b=Pl(b,"mouseleave",c);a.o.push(b);return b}; var Cz=function(a,b,c,d){c=A(c,d||a.A);b=Sl(b,c);a.o.push(b)}; var Dz=function(a,b,c){F.call(this);this.o=null;this.C=!1;this.F=a;this.D=c;this.A=b||window;this.B=A(this.cw,this)}; var Ez=function(a){a=a.A;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}; var Fz=function(a){a=a.A;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null}; var Gz=function(a){a=ka(a);delete Hz[a];ac(Hz)&&Iz&&Iz.stop()}; var Jz=function(){Iz||(Iz=new Ud(function(){Kz()},20)); var a=Iz;a.isActive()||a.start()}; var Kz=function(){var a=H();Ob(Hz,function(b){Lz(b,a)}); ac(Hz)||Jz()}; var Mz=function(){dd.call(this);this.o=0;this.endTime=this.startTime=null}; var Nz=function(a,b,c,d){Mz.call(this);if(!da(a)||!da(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.B=a;this.H=b;this.duration=c;this.F=d;this.A=[];this.progress=this.G=0;this.D=null}; var Lz=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<=a.progress&&(a.progress=1);a.G=1E3/(b-a.D);a.D=b;Oz(a,a.progress);1==a.progress?(a.o=0,Gz(a),a.Rb(),a.Mg()):a.Wa()&&a.xl()}; var Oz=function(a,b){ga(a.F)&&(b=a.F(b));a.A=Array(a.B.length);for(var c=0;c<a.B.length;c++)a.A[c]=(a.H[c]-a.B[c])*b+a.B[c]}; var Pz=function(a,b){jc.call(this,a);this.x=b.A[0];this.y=b.A[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.G;this.state=b.o}; var Qz=function(a){return Math.pow(a,3)}; var Rz=function(a){return 3*a*a-2*a*a*a}; var Sz=function(a){this.o=[];this.A=a}; var Tz=function(a,b){for(var c=[],d=0;d<a.o.length;++d){var e=a.o[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}; var Uz=function(a,b,c){return a.o.slice(Vz(a,b),null==c?a.o.length:Vz(a,c))}; var Vz=function(a,b){var c=Ab(a.o,function(a){return b-a.start||1}); return 0>c?-(c+1):c}; var Wz=function(a,b){for(var c=void 0,d=0;d<a.o.length;d++){var e=a.o[d];e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c}; var Xz=function(a,b,c,d,e,f){F.call(this);this.C=0;this.K=!1;this.G=null;this.H=!1;this.B=f;this.J=this.F=!1;this.V=a;this.O=b;this.M=c;this.U=this.B?null:d;this.S=e;this.L=new Ud(this.nc,250,this);G(this,this.L);this.D=new Ud(this.nc,0,this);G(this,this.D);this.A=[];this.o=new Sz(this.B?lq:hq)}; var Yz=function(a,b){var c=[];if(!b.length)return c;a.B||b.sort(lq);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.A.indexOf(e)&&(a.A.push(e),c.push([1,e]))}return c}; var Zz=function(a,b){var c=[];if(!b.length)return c;b.sort(lq);for(var d=0;d<b.length;d++){var e=b[d],f=a.A.indexOf(e);!a.B&&0>f||(a.A.splice(f,1),c.push([2,e]))}return c}; var $z=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];1==d[0]?(e.C&&kq(e).R("onEnter",e),a.S("crn_"+e.o,e)):(e.C&&kq(e).R("onExit",e),a.S("crx_"+e.o,e))}}; var aA=function(a){var b=Wz(a.o,Math.max(a.C-2E3,0));null!=b&&(!a.B||0x7ffffffffffff>b)&&a.D.start()}; var bA=function(a){var b=Wz(a.o,a.C);null!=b&&(b=(b-a.C)/a.O(),a.D.start(b))}; var cA=function(a){return T(a.M(),2)?0x8000000000000:1E3*a.V()}; var dA=function(a){var b=0;-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b}; var eA=function(a){return da(a)&&a.length?a[0]:a}; var fA=function(a){var b=/.+/;return z(a)&&null!=b&&null!=a&&a.match(b)?a:""}; var gA=function(a,b){if(null==a)return b;var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c}; var hA=function(a){return z(a)?a:""}; var iA=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c}; var jA=function(a,b){return"true"==a||"false"==a?"true"==a:b}; var kA=function(a,b){return z(a)?(0,window.parseFloat)(a):b}; var lA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return ke(a,b,c);if(a>=b&&a<=c)return a}return e}; var mA=function(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;E(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)}); return c*b}; var nA=function(a,b){if(null==a)return null;if(ea(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)}); return c}var d=b(a);return d?[d]:[]}; var oA=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)} return(a=a?new qe((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null}; var pA=function(a){function b(a){return $d(a.split(/ +/),function(a){return""!=a})} return null==a?[]:b(a)}; var qA=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Li=d}; var rA=function(a){if(!a)return null;var b=hA(a.value);if(!b)return null;var c=iA(a.target,sA,"current");return null==c?null:new qA(b,c,jA(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)}; var tA=function(a){return a.value?a.value:null}; var uA=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=vA(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1}; var vA=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}; var wA=function(a){a=tA(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!uA(a))||(b=Kg(Ig(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=qj(a);if(!b||!b.v)return null;if(b.t)return dA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=oj(a[1]))&&a.t?dA(a.t):-1}; var xA=function(a){a=tA(a);a=a.replace(/https?:\/\//g,"");return uA(a)?(a=qj(a))&&a.v?a.v:null:null}; var yA=function(a,b,c,d){(a=tA(a))?uA(a)?d=sj(a,{feature:"iv",src_vid:c,annotation_id:b},!1):(a?(b=vA(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(zA,d.pageId,d.zb),a=new N(a),dh(a,d(a.B)),d=a.toString()):d=a):d=null;return d}; var zA=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c}; var AA=function(a,b){return b?b:uA(a)?"current":"new"}; var BA=function(a){this.A=a;this.o=0;this.D=window.NaN;this.B=0;this.ua=[];this.C=CA(this.A);this.F=this.G=0}; var DA=function(a){a.C.startTime=a.B;a.C.endTime=a.o;a.ua.length&&cb(a.ua).isEmpty()?a.ua[a.ua.length-1]=a.C:a.ua.length&&a.C.isEmpty()||a.ua.push(a.C);a.G+=a.o-a.B;a.C=CA(a.A);a.B=a.o}; var EA=function(a){return a.G+a.A.B()-a.B}; var FA=function(a){a.ua.length&&a.o==a.B||DA(a);var b=a.ua;a.ua=[];return b}; var GA=function(a,b,c){c-=a.D;return b==a.o&&.5<c}; var HA=function(a,b){this.experimentIds=(a||"").split(",");this.flags=mj(b||"","&");var c={};E(this.experimentIds,function(a){c[a]=!0}); this.experiments=c;IA=IA||this.na("use_legacy_params");this.F=!!c["9408846"];this.A=!!c["932250"]||!!c["9406444"];this.Z=!!c["945066"]||!!c["9405188"];this.B=!!c["945069"]||!!c["9405408"];this.U=!!c["945074"]||!!c["9405191"];this.M=!!c["945090"]||!!c["9405409"];this.O=!!c["9416855"];this.C=c["9408912"]?5E3:c["9408913"]?7E3:c["9408914"]?9E3:c["9408915"]?11E3:c["9408916"]?13E3:c["9408917"]?15E3:1E4;this.da=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&Et&&yc(8);this.aa=this.na("enable_spherical3d_chrome"); this.S=!!c["9417025"];this.ea=!!c["9417026"];this.G=!!c["9417027"];this.nv=!0;this.H=!!c["909722"];this.Da=!!c["922333"];this.K=!!c["937009"];this.enableAudioCast=!!c["9408394"];this.L=!!c["9408919"];this.o=!!c["9414740"];this.tC=!!c["9414661"];this.V=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.D=!!c["9414843"];this.Y=!!c["9418683"];this.fa=!!c["9407182"]}; var JA=function(a,b){this.o=b;this.C=!1;this.A=a}; var KA=function(a,b,c){JA.call(this,b,c);this.D=a}; var LA=function(a){gj("yt-player-bandwidth",a,2592E3)}; var MA=function(){return ij("yt-player-quality")||"auto"}; var NA=function(a){F.call(this);this.o=a;this.B={};this.S=window.NaN;this.F=new Ud(this.Dz,3E4,this);G(this,this.F);this.G=new Ud(this.Qi,100,this);G(this,this.G);this.A="N";this.D=0;this.O=window.NaN;this.V=0;this.K=this.Y="";this.Z=-1;this.J=this.L=0;this.M=this.H=!1;this.C=null;window.navigator.getBattery&&window.navigator.getBattery().then(A(function(a){this.C=a},this))}; var OA=function(a,b,c,d){var e=a.B[c];e||(e=[],a.B[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))}; var PA=function(a){var b={event:"streamingstats"};if(a.o.o.A){b.fmt=a.o.o.A.id;var c=a.o.o.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.o.o.clientPlaybackNonce;b.ei=a.o.o.eventId;b.el=a.o.A.Ba;b.docid=a.o.o.videoId;b.ns=a.o.A.aa;b.fexp=a.o.A.experiments.experimentIds.toString();b.cl=a.o.A.fa;a.o.A.D&&(b.adformat=a.o.A.D);a.o.o.Fa&&(b.live=a.o.o.Fd?"dvr":"live");b.html5="1";return b}; var QA=function(a,b){var c=a.B.cat||[];c.push(b);a.B.cat=c}; var RA=function(a,b,c,d){this.ub=b;this.segments=[];this.experimentIds=[];this.Ra=this.Ia=this.ka=this.fa=this.Ca=this.autoplay=this.autonav=!1;this.aa="yt";this.J=this.A=this.D=null;this.Y=!1;this.C="watchtime"==c;this.U="playback"==c;this.Ea="delayplay"==c;this.V="atr"==c;this.Ga="engage"==c;this.Da=!1;this.ab=this.V?"/api/stats/"+c:"//"+b.Bd+"/api/stats/"+c;d&&(this.ka=d.fs,d.rtn&&(this.A=d.rtn),this.C?(this.uc=d.state,0<d.rti&&(this.D=d.rti)):(this.La=d.mos,this.Ua=d.volume,d.at&&(this.adType= d.at),d.allowed&&(this.K=d.allowed),d.ex_ads&&(this.O=d.ex_ads)),d.autonav&&(this.autonav=d.autonav));this.jb=b.D;this.autoplay=b.autoplay;this.nb=b.ea;this.tb=ec(b.A);this.za=b.O;this.Cb=b.Ba;this.experimentIds=b.experiments.experimentIds;this.ea=b.Y;this.aa=b.aa;this.region=b.region;this.wc=b.fa?b.fa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.bb=SA();this.Da=b.experiments.o;IA&&(this.referrer=b.referrer,this.B=b.ka,this.searchQuery=b.searchQuery);this.G=a.oauthToken|| this.G;this.autoplay=this.ub.experiments.na("stop_autoplay_flag_persist")?a.xf:a.xf||this.autoplay;this.autonav=a.al||this.autonav;this.J=a.pj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.S=a.vssCredentialsToken;this.sa=a.jm;this.H=a.nj;this.da=a.Re;a.A&&(this.ma=a.A.id,a.F&&a.F.id!=this.ma&&(this.M=a.F.id));this.Ra=a.Yf;this.Nb=a.oj;a.Fa&&(this.Qa=a.Fd?"dvr":"live");this.Lc=a.Am;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.ab||a.playlistId;this.ia=a.ea;this.ha=a.fa; this.xc=a.Xe;this.subscribed=a.subscribed;this.videoId=a.videoId;this.Oc=a.lv;this.visitorData=a.visitorData;this.osid=a.osid;this.Nc=a.Wu;IA?this.B=a.za||this.B:(this.referrer=a.referrer,this.B=a.za||a.qe,this.searchQuery=a.searchQuery)}; var TA=function(a){var b={ns:a.aa,el:a.Cb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.o(a.H),plid:a.playbackId,ei:a.eventId,fmt:a.ma,fs:a.ka?"1":"0",rt:a.o(a.$a),of:a.Nc,adformat:a.jb,content_v:a.nb,euri:a.za,subscribed:a.subscribed,lact:a.bb,live:a.Qa,cl:a.wc,mos:a.La,q:a.searchQuery,osid:a.osid,state:a.uc,vm:a.Oc,volume:a.Ua};qa(b,a.tb);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.fa&&(b["final"]="1");a.Ra&&(b.splay="1");a.da&&(b.delay=a.da);a.ea&&(b.hl= a.ea);a.region&&(b.cr=a.region);n(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);n(a.Z)&&(b.len=a.o(a.Z));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.A&&(b.rtn=a.o(a.A));a.B&&(b.feature=a.B);a.playlistId&&(b.list=a.playlistId);a.ia&&(b.ctrl=a.ia);a.ha&&(b.ytr=a.ha);a.xc&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.C?(b.idpj=a.Nb,b.ldpj=a.Lc,null!=a.D&&(b.rti=a.o(a.D))):(n(a.adType)&&(b.at=a.adType),n(a.K)&&(b.allowed=a.K),n(a.O)&&(b.ex_ads=a.O));(a.U||a.Ea)&&a.J&&(b.tst= a.J);a.C&&(b.st=UA(a,O(a.segments,function(a){return a.startTime})),b.et=UA(a,O(a.segments,function(a){return a.endTime}))); Ih(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=UA(a,O(a.segments,function(a){return a.visibilityState}))); Ih(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=UA(a,O(a.segments,function(a){return a.playbackRate}))); Ih(a.segments,function(a){return"-"!=a.$j})&&(b.cc=O(a.segments,function(a){return a.$j}).join(",")); if(Ih(a.segments,function(a){return!!a.Xj})){var c="au"; a.U&&(c="au_d");b[c]=O(a.segments,function(a){return a.Xj}).join(",")}uj()&&a.S&&(b.ctt=a.S,b.cttype=a.sa); a.Ga&&(b.etype=n(a.F)?a.F:0);return b}; var UA=function(a,b){return O(b,a.o).join(",")}; var VA=function(a){F.call(this);this.o=a;this.B=new NA(a);G(this,this.B);this.A=new BA(a);this.F="paused";this.G=window.NaN;this.J=[10,10,10,40];this.K=this.H=0;this.S=this.O=this.M=this.L=this.C=!1;this.D=window.NaN;this.V=new KA(this.A,this.o.o,this.o.A)}; var WA=function(a,b,c){var d=XA(a.o);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.J[a.H];a.H+1<a.J.length&&a.H++;c=c+e;d=1E3*(c-d);a.G=Ai(A(a.lz,a,c,b),d);return c}; var YA=function(a,b){var c=ZA(a.o);qa(c,{state:a.F});c=new RA(a.o.o,a.o.A,b,c);c.H=a.o.B();a.o.o.Fa||(c.Z=a.o.F());c.$a=XA(a.o);c.segments=[CA(a.o)];return c}; var $A=function(a,b){var c=YA(a,"watchtime");c.segments=b;c.H=a.A.o;return c}; var aB=function(a){a.A.update();return $A(a,FA(a.A))}; var bB=function(a){a.o.o.remarketingUrl&&!a.O&&(cB(a,a.o.o.remarketingUrl),a.O=!0);a.o.o.ppvRemarketingUrl&&!a.S&&(cB(a,a.o.o.ppvRemarketingUrl),a.S=!0);dB(a)}; var eB=function(a,b){if(!a.isDisposed()){T(b.state,2)?(a.F="paused",0<fB(b,2)&&a.C&&aB(a).send()):T(b.state,8)?(a.F="playing",a.C&&(0,window.isNaN)(a.G)&&WA(a,!1)):a.F="paused";var c=a.B,d=b.state,e=XA(c.o),f;f=b.state;if(T(f,128))f="ER";else if(T(f,16)||T(f,32))f="S";else{var k=gB[Dy(f)];"B"==k&&T(f,4)&&(k="PB");f=k}if(f!=c.A){k=f;if(!(e<c.D)){if("PL"==c.A)c.J+=e-c.D;else if("B"==c.A&&c.H&&(c.H=!1,c.L+=e-c.D,!c.M&&10<=c.L&&180>=c.J)){c.o.H();if(!c.isDisposed()){var l=PA(c);l.qoealert="1";l=Ug(c.o.A.Oc, l);aq(l)}c.M=!0}"B"!=k||"PL"!=c.A&&"PB"!=c.A||(c.H=!0);c.D=e}!c.o.A.experiments.A||"B"!=f&&"PB"!=f?OA(c,e,"cmt",[c.o.B().toFixed(3)]):c.Qi(e);OA(c,e,"vps",[f]);c.A=f}if(T(d,128))c.onError(d.o.errorCode,d.o.errorDetail);(T(d,2)||T(d,128))&&c.Rg(e);a.D&&T(b.state,128)&&(a.Vi("error-100"),Di(a.D))}}; var hB=function(a){a.D=Ci(A(a.Vi,a,"heartbeat"),3E4)}; var dB=function(a){a.o.o.D.eventLabel=a.o.A.Ba;a.o.o.D.playerStyle=a.o.A.o;a.o.o.ma&&(a.o.o.D.feature="pyv");a.o.o.D.vid=a.o.o.videoId;a.o.o.D.isAd=!("adunit"!=a.o.A.Ba&&!a.o.o.ma)}; var cB=function(a,b,c){a.o.A.experiments.o&&a.o.o.visitorData&&tj(b)?Bj(b,{Rb:c,headers:{"X-Goog-Visitor-Id":a.o.o.visitorData}}):aq(b,c)}; var iB=function(a,b){this.ca=b;this.o={}}; var jB=function(a,b,c){if(b){var d=kB(a,b);a.o[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=sb(c||[]);30==d["a-type"]&&(c=lB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);mB(a,d,b)}}; var nB=function(a,b,c,d,e,f){if(b){var k=kB(a,b);k["iv-event"]=3;k["i-time"]=a.o[b]||"";gc(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=lB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);mB(a,k,b,c,f)}}; var oB=function(a,b){if(b){var c=kB(a,b);c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=[];if(30==c["a-type"]){var e=lB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}mB(a,c,d)}}; var lB=function(a,b,c){a=a.ca.getVideoData();if(a.jb){if((c=a.jb[c])&&Ow.test(c))return a=va("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.sa)return rj(a.sa,{label:c,value:"a_id="+b});return""}; var mB=function(a,b,c,d,e){var f=1,k,l=-1;if(d){var m=!1;k=function(){f--;f||m||((0,window.clearTimeout)(l),m=!0,d())}; l=(0,window.setTimeout)(function(){m=!0;d()},1E3)}E(c||[],function(a){f++; aq(a,k)}); e&&(f++,0!=e&&a.ca.ag(e,k));a.ib(b,k)}; var kB=function(a,b){var c={};if(b){var d=new gh(b);E(d.Na(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.ca.getCurrentTime().toFixed(2); c.ps=a.ca.W().o;return c}; var pB=function(a,b,c,d){d=kB(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;mB(a,d,c)}; var qB=function(a,b,c,d){c&&(c=kB(a,c),c["iv-event"]=b,mB(a,c,d))}; var rB=function(a,b){this.Z=a;this.context=b;this.km=!1;this.K=0}; var sB=function(a,b,c,d,e,f){b=new iq(b,c,{id:d});b.o="iv-module";e&&kq(b).subscribe("onEnter",e,a);f&&kq(b).subscribe("onExit",f,a);a.context.A.fb([b])}; var tB=function(a){return H()-a.K}; var uB=function(a,b,c,d,e,f,k){var l=A(function(){k&&this.context.A.pauseVideo();var a=qj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Yg(b,"ei"));Hx(b,d);Ix(b,"current"==c?"_top":void 0)},a); "new"==c&&(l(),l=null);var m={};m.interval=tB(a);nB(a.context.logger,d,l,m,e,f)}; var vB=function(a,b){Q.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.ca=a;this.H=new Pq(this,250,!1,250);G(this,this.H);this.J=b;this.xa=null;this.D=[];this.C=this.A=this.G=this.F=null;R(this,a,"cardsteasershow",this.XA);R(this,a,"cardsteaserhide",this.Ej);this.P("click",this.RE);this.P("mouseenter",this.PE);this.P("mouseleave",this.QE)}; var wB=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];E(a,function(a){b.push(["li","",a])}); return b}; var xB=function(a,b){if(b){var c=b.fk?"":["h2","ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,wB(b.qd)]];a.A=new Q(c);a.A.o(a.element);c=$e("ytp-cards-hover-card",void 0);R(a,c,"click",pa(a.Ap,b));R(a,c,"mouseenter",a.Kw);R(a,c,"mouseleave", a.Lw)}}; var yB=function(a,b){Bq(a,"text",b.teaserText);a.H.show();xB(a,b.ki);b.ki&&b.ki.fk&&I(a.element,"ytp-cards-combined-teaser");a.F=new Ud(function(){I(this.ca.Aa(),"ytp-cards-teaser-shown")},0,a); a.F.start();zB(a.J,!1);a.xa=new Ud(a.Ej,580+b.durationMs,a);a.xa.start();b.jv&&I(a.element,"ytp-cards-auto-open-hover-card");b.Sx&&(new Ud(function(){I(this.ca.Aa(),"ytp-cards-button-teaser-merge")},0,a)).start(); a.D.push(a.P("mouseover",a.xa.stop,a.xa));a.D.push(a.P("mouseout",function(){this.xa.start()}))}; var AB=function(a,b,c){this.id=a;this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.D=b.auto_open||!1;this.Pa=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={Ko:a.impression,click:a.click,close:a.close,pC:a.teaser_impression,Xl:a.teaser_click}}; var BB=function(a,b,c){AB.call(this,a,b,c);this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.qd=b.meta_info;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}; var CB=function(a,b,c){AB.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.B=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=rA({target:"current",value:b.signin_url}));this.G=b.signin_title||null;this.F=b.signin_message||null}; var DB=function(a,b,c){CB.call(this,a,b,c);this.H=b.ypc_flow_type;this.C=b.innertube_request_params}; var EB=function(a,b,c){this.o=a;this.A=b;this.B=c}; var FB=function(a,b){var c=["ul",""];E(b.choices,function(a){c.push(["li",b.B+"-"+a.index.toString(),["label",b.C==a.index?"iv-card-poll-choice-checked":"",["div","iv-card-poll-choice-percent"],a.desc,["input","iv-card-poll-choice-input",{type:"radio",name:b.B,value:a.index.toString()}]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a); var d=["iv-card","iv-card-poll"],e=[["div","iv-card-content",["h2","",b.title],["form","",["fieldset","",c]]]];b.A&&(d.push("iv-card-unavailable"),e.push(["div",["iv-card-sign-in"],["h2","",P("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:tA(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]));d=new Q(["div",d,{tabindex:"0"}].concat(e));e=d.element;void 0!==b.C&&GB(b,e);Cz(a.o.o,e,pa(a.D,b),a);b.A&&(e=$e("iv-card-sign-in-button",e),a.A(e,b.A,b.id,b.Pa,b.o.click, 5));return d}; var HB=function(a,b,c,d){var e=IB(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=JB(b),l=["iv-card"];b.A&&l.push("iv-card-unavailable");e=["div",l,{tabindex:"0"},["a","iv-click-target",{href:e},KB(b.imageUrl,f),["div","iv-card-content",["h2","",b.title],k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],["h2","",b.G],["p","",b.F],["a",["iv-card-sign-in-button","iv-button"],{href:tA(b.A)},["span",["iv-button-content"],P("YTP_SIGN_IN")]]]]));e=new Q(e);LB(a,e,b,c,d); return e}; var MB=function(a,b,c){var d=IB(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.F?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.C&&b.B?["span",e,f,b.B]:"";c=["div",["iv-card",c],{tabindex:"0"},["a","iv-click-target",{href:d},KB(b.G,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],NB(b)]]];c=new Q(c);LB(a,c,b);return c}; var OB=function(a){return a.customMessage?["div","iv-card-message",a.customMessage]:""}; var KB=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c}; var NB=function(a){if(!a.qd||0==a.qd.length)return"";var b=["ul","iv-card-meta-info"];E(a.qd,function(a){b.push(["li","",a])}); return b}; var JB=function(a){if(!a.customMessage)return"";var b=["iv-card-action","iv-card-primary-link"],c={};a.B&&(b.push("iv-card-action-icon"),c.style="background-image: url("+a.B+");");b=["div",b,c,["span","",a.customMessage]];a.showLinkIcon&&(b.push("\u00a0"),b.push(["span","iv-card-link-icon"]));return b}; var GB=function(a,b){PB(a,b);Yd(b,["iv-card-poll-expanded","iv-card-poll-voted"]);b.querySelector("fieldset").disabled=!0}; var PB=function(a,b){var c=0;E(a.choices,function(a){c+=a.count}); for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=e.count/c,e=$e(a.B+"-"+e.index.toString(),b),k=$e("iv-card-poll-choice-percent",e);Af(k,P("YTP_DRAWER_POLL_PERCENT",{PERCENT:(100*f).toFixed(0)}));e=$e("iv-card-poll-result-bar",e);Mf(e,"transform","scaleX("+f.toFixed(2)+")")}}; var QB=function(a,b,c){c?(a.o.A.pauseVideo(),a.o.A.Ja()&&Nx(a.o.A),nB(a.o.logger,b.Pa,c,void 0,b.o.click,5)):a.B(b.url,b.id,b.Pa,b.o.click,5)}; var IB=function(a,b,c){return b?yA(b,c,a.o.C.videoId,a.o.B):null}; var LB=function(a,b,c,d,e){c.A&&RB(a,Ye("iv-card-sign-in-button",b.element),c,c.A,e);RB(a,Ye("iv-click-target",b.element),c,c.url,d)}; var RB=function(a,b,c,d,e){E(b,function(a){if(e){var b=A(function(a){a.stopPropagation();a.preventDefault();e();return!1},this); this.o.o.P(a,"click",b)}else this.A(a,d,c.id,c.Pa,c.o.click,5)},a)}; var SB=function(a,b,c){AB.call(this,a,b,c);this.B=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.qd=b.meta_info;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}; var TB=function(a,b,c){AB.call(this,a,b,c);this.B=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.C=b.old_vote;this.A=null;b.signin_url&&(this.A=rA({target:"current",value:b.signin_url}))}; var UB=function(a,b,c){CB.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new YB(a[b]))}; var YB=function(a){this.merchant=D(a.merchant);this.price=D(a.price)}; var ZB=function(a,b,c){CB.call(this,a,b,c);this.H=b.ypc_item_type;this.C=b.ypc_item_id;this.J=b.ypc_flow_type}; var $B=function(a,b,c){AB.call(this,a,b,c);this.B=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.qd=b.meta_info;this.C=!!b.is_live_now;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})}; var aC=function(a,b,c){AB.call(this,a,b,c);this.G=b.image_url;this.B=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.qd=b.meta_info;this.C=!!b.is_paygated;this.F=!!b.user_has_entitlement;this.url=rA({target:b.target||"new",value:b.url})}; var bC=function(a,b,c){rB.call(this,b,c);this.ca=a;this.zi=this.D=this.S=this.V=!1;this.O=null;this.Zj=new Ud(w,c.B.useTabletControls?4E3:3E3);this.B=new EB(c,A(this.Lf,this),A(this.Bi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},P("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":P("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.H=new Q(a);this.F=this.H.element;this.M=new Pq(this.H, 330,!1);this.U=$e("iv-drawer-header",this.F);this.yc=$e("iv-drawer-content",this.F);a=["iv-drawer-teaser"];this.B.o.B.experiments.nv&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:P("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.Y=(new Q(a)).element;$e("iv-drawer-teaser-text",this.Y);this.A=[];this.C=this.J=this.o=null;this.G=[];if(2==this.context.A.getPresentingPlayerType()? 0:cC(this,"product_listing_ads_cards_drawer_auto_open")||cC(this,"cards_drawer_auto_open"))a=this.context.B.experiments.Ac("cards_drawer_auto_open_offset"),c=1E3*c.C.lengthSeconds,b=0<=a?a:c+a,b<c&&(sB(this,b,0x8000000000000,"",this.hv),a=this.context.B.experiments.Ac("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&sB(this,b,0x8000000000000,"",this.fv))}; var dC=function(a,b){var c=eC(a,b);c&&(c==a.o&&(a.o=null),a.ca.wr(c.Sa.id),qf(c.ak),ob(a.A,c),a.Jh())}; var fC=function(a,b){a.D||(a.M.show(),a.J=new Ud(function(){I(this.context.A.Aa(),"ytp-iv-drawer-open")},0,a),a.J.start(),a.D=!0,a.K=H(),pB(a.context.logger,7,void 0,b&&b.Sa?b.Sa.Pa:void 0),E(a.A,function(a){a.Ci||(a.Ci=!0,jB(this.context.logger,a.Sa.Pa,a.Sa.o.Ko))},a),gC(a.ca),a.C=new Ud(function(){var a; a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.L=a;this.U.focus()},330,a),a.C.start())}; var hC=function(a){a.D&&(a.M.ga(),Zd(a.context.A.Aa(),"ytp-iv-drawer-open"),a.D=!1,pB(a.context.logger,10),gC(a.ca),a.C&&a.C.stop(),a.C=new Ud(function(){this.L&&(this.L.focus(),this.L=null)},330,a),a.C.start())}; var cC=function(a,b){return a.context.B.experiments.na(b)}; var iC=function(a){var b=$e("iv-drawer-close-button",a.F);a.context.o.P(b,"click",a.uv,a);a.context.o.P(a.yc,"touchend",function(){this.Zj.start()},a); a.context.o.P(a.yc,"scroll",a.Iv,a);a.O=Nl(a.yc,"mousewheel",A(a.jE,a));a.context.D.subscribe("onHideControls",function(){this.zi=!0},a); a.context.D.subscribe("onShowControls",function(){this.zi=!1},a); a.context.D.subscribe("onVideoAreaChange",function(){this.zi=Xd(this.ca.Aa(),"ytp-autohide")},a); a.G.push(Ii("iv-teaser-shown",a.Rx,a));a.G.push(Ii("iv-teaser-clicked",a.Px,a));a.G.push(Ii("iv-hover-card-clicked",a.Ox,a));cC(a,"teaser_on_button_hover")&&a.G.push(Ii("iv-button-hovered",a.lC,a));cC(a,"log_teaser_hover")&&a.G.push(Ii("iv-teaser-hovered",a.Qx,a))}; var jC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return HB(a.B,b);case "collaborator":var c=a.B,d=["div",["iv-card","iv-card-channel"],{tabindex:"0"},["a",["iv-click-target","g-hovercard"],{href:IB(c,b.url,b.id),"data-ytid":b.channelId},KB(b.profileImageUrl),["div","iv-card-content",OB(b),["h2","iv-card-primary-link",b.title],NB(b)]]],d=new Q(d);LB(c,d,b);return d;case "donation":return c=a.B,d= A(c.C,c,b),HB(c,b,d,d);case "episode":return MB(a.B,b,"iv-card-episode");case "movie":return MB(a.B,b,"iv-card-movie");case "playlist":return c=a.B,d=["div",["iv-card","iv-card-playlist"],{tabindex:"0"},["a","iv-click-target",{href:IB(c,b.url,b.id)},KB(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",OB(b),["h2","iv-card-primary-link",b.title],NB(b)]]],d=new Q(d),LB(c,d,b),d;case "poll":return FB(a.B,b);case "productListing":var c= a.B,d=IB(c,b.url,b.id),e=!kb(b.offers)&&(b.sponsored||c.o.B.experiments.tC),f=["iv-card"],k="",l=JB(b);e&&(f.push("iv-card-product-listing"),k="iv-card-primary-link",l=b.offers[0],e=["div",null],l.price&&e.push(["div","iv-card-offer-price",l.price]),l.merchant&&e.push(["div","iv-card-offer-merchant",l.merchant]),l=e);e=b.sponsored?["div","iv-card-sponsored",P("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"], ["div","iv-ad-info-callout"]]]]:"";d=new Q(["div",f,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+");",href:d,"aria-hidden":"true",tabindex:"-1"}],["div","iv-card-content",e,["a","iv-click-target",{href:d},["h2",k,b.title],l]]]);f=lf("span");f.innerHTML=P("YTP_AD_SETTINGS_INFO",{BEGIN_FORMAT:'<a target="_blank" href="https://www.google.com/settings/ads/onweb">',END_FORMAT:"</a>"});d.Eb(f,"adInfo");LB(c,d,b);return d;case "tip":return c=a.B,d=A(c.F, c,b),HB(c,b,d,d);case "video":return c=a.B,d=IB(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.C?["span",["yt-badge","yt-badge-live"],P("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],{tabindex:"0"},["a","iv-click-target",{href:d},KB(b.B,f),["div","iv-card-content",OB(b),["h2","iv-card-primary-link",b.title],NB(b),k]]],d=new Q(d),LB(c,d,b),d}return null}; var kC=function(a,b){if(0==a.A.length)return 0;var c=gb(a.A,function(a){return b.Sa.startMs>a.Sa.startMs||b.Sa.startMs==a.Sa.startMs&&b.Sa.timestamp>=a.Sa.timestamp?!0:!1}); return-1==c?0:c+1}; var lC=function(a,b){if(a.H.B){var c=new Nz([0,a.yc.scrollTop],[0,b.ak.offsetTop],600,Rz);a.context.o.P(c,"animate",function(a){this.yc.scrollTop=a.y},a); a.context.o.P(c,"finish",function(a){this.yc.scrollTop=a.y},a); c.play()}else a.H.yb(!0),a.yc.scrollTop=b.ak.offsetTop,a.H.yb(!1)}; var mC=function(a){return a.o&&a.o.Sa||a.A[0]&&a.A[0].Sa}; var eC=function(a,b){return db(a.A,function(a){return a.Sa.id==b},a)}; var nC=function(a){return Ih(a.A,function(a){return a.Sa.sponsored&&"productListing"==a.Sa.type})}; var oC=function(a){if(!pC.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(qC,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]}; var rC=function(a,b,c,d,e){Nz.call(this,b,c,d,e);this.element=a}; var sC=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");rC.apply(this,arguments)}; var tC=function(a,b,c){rB.call(this,a,b);this.annotation=c;this.isActive=!1}; var uC=function(a,b,c){tC.call(this,a,b,c);this.A=null;this.G=!1;this.o=null;this.B=!1;this.C=0;this.F=this.D=null}; var vC=function(a,b,c,d,e,f){this.o=a;this.B=b;this.C=c;this.logger=d;this.A=e;this.D=f}; var wC=function(a,b,c){this.type=a;this.trigger=b;this.url=c}; var xC=function(a){if(!a)return null;var b=iA(a.type,yC),c=iA(a.trigger,zC),d=rA(eA(a.url));eA(a.subscribeData);return b?new wC(b,c,d):null}; var AC=function(a,b,c,d,e,f,k,l,m,p,v,t,y,x){this.F=a;this.C=b;this.G=c;this.D=d;this.A=e;this.H=f;this.B=k;this.textAlign=l;this.textSize=m;this.fontWeight=p;this.padding=v;this.effects=t;this.o=y;this.J=x}; var BC=function(a){if(!a)return null;var b=gA(a.fgColor,"#1A1A1A"),c=gA(a.bgColor,"#FFF"),d=gA(a.borderColor,"#000"),e=lA(a.borderWidth,0,5,!1,0),f=lA(a.bgAlpha,0,1,!1,.8),k=gA(a.highlightFontColor,"#F2F2F2"),l=lA(a.highlightWidth,0,5,!1,3),m=hA(a.textAlign),p=lA(a.textSize,3.3,30.1,!0,3.6107),v=hA(a.fontWeight),t=oA(a.padding),y=pA(a.effects),x=lA(a.cornerRadius,0,10,!0,0);if(a=eA(a.gradient)){var L=lA(a.x1,0,100,!0,0),ha=lA(a.y1,0,100,!0,0),K=lA(a.x2,0,100,!0,100),Y=lA(a.y2,0,100,!0,100),Nb=gA(a.color1, "#FFF"),xd=gA(a.color2,"#000");a=new CC(L,ha,K,Y,Nb,xd,lA(a.opacity1,0,100,!0,100),lA(a.opacity2,0,100,!0,0))}else a=null;return new AC(b,c,d,e,f,k,l,m,p,v,t,y,x,a)}; var CC=function(a,b,c,d,e,f,k,l){this.D=a;this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=k;this.C=l}; var DC=function(a,b){this.o=a;this.videoId=b}; var EC=function(a,b,c){var d=a.F,e=a.G,f=a.o?a.o:"xy",k=FC(c,a.C,f);a=GC(c,a.A,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new te(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)}; var FC=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}; var GC=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d}; var HC=function(a,b,c,d,e,f,k,l,m,p,v){this.x=a;this.y=b;this.D=c;this.B=d;this.t=e;this.K=f;this.F=k;this.G=l;this.C=m;this.A=p;this.o=v}; var IC=function(a,b){if(!a)return null;var c=kA(a.x,0),d=kA(a.y,0),e=kA(a.w,0),f=kA(a.h,0),k=mA(a.t),l=kA(a.scaleSlope,1);return b(c,d,e,f,k,kA(a.d,0),kA(a.px,0),kA(a.py,0),kA(a.scaleSlopeX,l),kA(a.scaleSlopeY,l),iA(a.scaleDimension,JC,"xy"))}; var KC=function(a,b){var c=LC(b,EC(a,new te(a.x,a.y,a.D,a.B),b.o)),d=b.o,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=ke(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=ke(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e}; var MC=function(a){return a?IC(a,function(a,c,d,e,f,k,l,m,p,v,t){return new HC(a,c,d,e,f,k,l,m,p,v,t)}):null}; var NC=function(a,b,c,d,e,f,k,l,m,p,v,t,y){HC.call(this,a,b,c,d,e,l,m,p,v,t,y);this.H=f;this.J=k}; var OC=function(a){if(!a)return null;var b=kA(a.sx,0),c=kA(a.sy,0);return IC(a,function(a,e,f,k,l,m,p,v,t,y,x){return new NC(a,e,f,k,l,b,c,m,p,v,t,y,x)})}; var PC=function(a,b,c,d){this.type=a;this.A=b;this.o=c;this.B=d}; var QC=function(a){if(!a)return null;var b=iA(a.type,RC,"rect"),c=nA(a.rectRegion,MC),d=nA(a.anchoredRegion,OC);a=nA(a.shapelessRegion,MC);return new PC(b,c,d,a)}; var SC=function(a){return a.A&&a.A.length?a.A[0]:a.o&&a.o.length?a.o[0]:a.B&&a.B.length?a.B[0]:null}; var TC=function(a,b){this.A=a;this.o=b}; var UC=function(a,b){this.state=a;this.o=b}; var VC=function(a){if(!a)return null;var b=iA(a.state,WC);a=fA(a.ref);return b?new UC(b,a):null}; var XC=function(a,b,c,d){this.o=a||[];this.B=b||[];this.C=c;this.A=d;this.value=!1}; var YC=function(a){if(!a)return null;var b=nA(a.condition,VC),c=nA(a.notCondition,VC),d=jA(a.show_delay,!1);a=jA(a.hide_delay,!1);return b||c?new XC(b,c,d,a):null}; var ZC=function(a,b,c){E(a.o,pa(b,!1),c);E(a.B,pa(b,!0),c)}; var $C=function(a,b,c,d,e,f,k,l,m,p,v,t,y,x,L,ha){this.id=a;this.author=b;this.type=c;this.style=d;this.F=e;this.A=f;this.D=k||[];this.J=l||[];this.o=m;this.H=p;this.C=v;this.G=t;this.B=x;this.data=L;this.Pa=ha}; var aD=function(a){if(!a)return null;var b=fA(a.id),c=fA(a.author),d=iA(a.type,bD),e=iA(a.style,cD),f=hA(eA(a.TEXT)),k=hA(a.data),k=0!=k.length?be(k):{},l;var m=eA(a.segment);m?(fA(m.timeRelative),l=fA(m.spaceRelative),l=(m=nA(m.movingRegion,QC))?new TC(l,m):null):l=null;var m=nA(a.action,xC),p=nA(a.trigger,YC),v=BC(eA(a.appearance));v||(v=BC({}));var t=iA(a.coordinate_system,dD,"video_relative"),y;y=(y=eA(a.image_source))?new DC(hA(y.standard_url),hA(y.video_id)):null;var x=jA(a.closeable,!0),L= hA(a.html_blob);a=hA(a.log_data);return b&&d?new $C(b,c,d,e,f,l,m,p,v,t,y,x,0,L,k,a):null}; var eD=function(a){return(a=fD(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}; var gD=function(a){return hD(a,function(a){return"click"==a.trigger})}; var hD=function(a,b){return Ih(a.D,b,void 0)}; var iD=function(a,b,c){E(a.D,b,c)}; var fD=function(a,b){return db(a.D,b,void 0)}; var jD=function(a,b,c){E(a.J,b,c)}; var kD=function(a,b){O(a.J,b,void 0)}; var lD=function(a){return(a=mD(a))?SC(a):null}; var mD=function(a){a.A?(a=a.A,a=a.o.length?a.o[0]:null):a=null;return a}; var nD=function(a,b){var c=lD(a);return c&&b?GC(b,c.A,c.o?c.o:"xy"):1}; var oD=function(a,b,c){tC.call(this,a,b,c);this.G=this.C=this.H=!1;this.F=5E3;this.o=null;this.qg=M("div","iv-promo-contents");this.A=this.B=this.Sb=null;this.D=new Ud(function(){this.Sb.setAttribute("aria-hidden",!0);Oq(this.B);Nq(this.A)},700,this)}; var pD=function(a){var b=a.annotation.data,c;if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.F=b.collapse_delay_ms||a.F;var d=["iv-promo","iv-promo-inactive"];a.la().setAttribute("aria-hidden",!0);a.la().setAttribute("aria-label",P("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.la().tabIndex=0;var e;if(b.image_url){e=M("div",["iv-promo-img","iv-click-target"]);var f=M("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&& !b.is_live?(f=M("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=M("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Lf(e,eD(a.annotation),a.annotation.id,a.annotation.Pa,null,c)}f=eD(a.annotation);a.Sb=f?M("a",{href:tA(f),"class":"iv-promo-txt"}):M("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=M("p",null,M("strong",null,b.text_line_1));l=M("p",null,M("span","iv-promo-link",b.text_line_2)); I(a.Sb,"iv-click-target");a.Lf(a.Sb,eD(a.annotation),a.annotation.id,a.annotation.Pa,null,c);break;case "playlist":case "video":k=M("p",null,M("span",null,b.text_line_1));l=M("p",null,M("strong",null,b.text_line_2));b.is_live&&(k=l,l=M("span",["yt-badge","iv-promo-badge-live"],P("YTP_LIVE_NOW")));I(a.Sb,"iv-click-target");a.Lf(a.Sb,eD(a.annotation),a.annotation.id,a.annotation.Pa,null,c);d.push("iv-promo-video");break;case "vote":k=M("p",null,M("strong",null,b.text_line_1)),l=M("p",null,M("span", null,b.text_line_2)),m=M("div","iv-promo-button-container"),c=M("button",["iv-button","iv-promo-button"],M("span","iv-button-content",b.button_text)),a.context.o.P(c,"click",function(a){a.stopPropagation();nB(this.context.logger,this.annotation.Pa,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Sb=$e("iv-promo-txt",this.qg);a=$e("iv-promo-button-container",this.qg);var d=M("div",["iv-promo-txt","iv-click-target"]),e=M("p",null,M("strong",null,c.text_line_3)),c=M("p", null,c.text_line_4);nf(d,e,c);qf(a);rf(d,this.Sb);Zd(this.la(),"iv-promo-with-button");this.Lf(d,eD(this.annotation),this.annotation.id,this.annotation.Pa)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Sb.appendChild(k); l&&a.Sb.appendChild(l);a.qg.appendChild(a.Sb);m&&a.qg.appendChild(m);k=M("div","iv-promo-actions");a.A=M("button",["iv-promo-expand","ytp-button"]);a.A.title=P("YTP_EXPAND");a.context.o.P(a.A,"click",pa(a.Ik,5E3),a);k.appendChild(a.A);Oq(a.A);a.context.o.P(a.la(),"mouseover",a.uw,a);a.context.o.P(a.la(),"mouseout",a.tw,a);a.context.o.P(a.la(),"touchend",pa(a.Ik,5E3),a);a.B=M("button",["iv-promo-close","ytp-button"]);a.B.title=P("YTP_CLOSE");a.context.o.P(a.B,"click",a.kE,a);k.appendChild(a.B);Yd(a.la(), d);e&&mf(a.la(),e);mf(a.la(),a.qg);mf(a.la(),k)}; var qD=function(a){a.C||a.G||a.o||(I(a.la(),"iv-promo-collapsed"),a.C=!0,a.D.start())}; var rD=function(a){a.D.stop();a.C&&(Zd(a.la(),"iv-promo-collapsed"),a.C=!1,a.Sb&&a.Sb.removeAttribute("aria-hidden"),Oq(a.A),Nq(a.B))}; var sD=function(a,b){a.o||(a.o=Sd(function(){this.o&&(Td(this.o),this.o=null);qD(this)},b,a))}; var tD=function(a,b,c){this.o={};this.A=!1;this.D="ivTrigger:"+a;this.B=c;ZC(b,function(a,b){var c=uD(b.state,b.o);this.B.subscribe(c,A(this.C,this,c,a));this.o[c]=a},this)}; var uD=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c}; var vD=function(a,b,c){this.B=a;this.annotation=b;this.o=c;this.A=null;this.C=this.isVisible=!1;wD(b,a)}; var wD=function(a,b){kD(a,function(c){return new tD(a.id,c,b)})}; var xD=function(a){a.B.unsubscribe("onResize",a.Or,a);a.B.unsubscribe("onVideoAreaChange",a.cq,a)}; var yD=function(a){a.A&&(a.A.stop(),a.A=null)}; var zD=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a}; var AD=function(){}; var BD=function(a,b,c,d,e,f,k,l){this.D=a;this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=n(k)?k:null;this.C=n(l)?l:null}; var CD=function(){this.ua=[];this.wa=[];this.dc=[]}; var DD=function(a,b,c){0==cb(a.ua)?a.dc.length-=2:(a.ua.push(0),a.wa.push(1));a.dc.push(b,c);a.Ob=a.Qc=[b,c]}; var ED=function(a,b,c,d){var e=a.Ob[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Ob[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ua.push(3);a.wa.push(1);a.dc.push(b,c,d,90,e,f);a.Yg=!1;a.Ob=[e,f]}; var FD=function(a,b){for(var c=a.dc,d=0,e=0,f=a.ua.length;e<f;e++){var k=a.ua[e],l=GD[k]*a.wa[e];b(k,c.slice(d,d+l));d+=l}}; var HD=function(a,b){this.J=a;this.K=null==b?1:b}; var ID=function(a,b,c){this.B=a;this.o=b;this.A=null==c?1:c}; var JD=function(){}; var KD=function(a){dd.call(this);this.M=a||Ue();this.S=null;this.Ke=!1;this.o=null;this.D=void 0;this.F=this.H=this.J=null}; var LD=function(a,b){a.H&&E(a.H,b,void 0)}; var MD=function(a,b,c,d,e){KD.call(this,e);this.width=a;this.height=b;this.C=c||null;this.K=d||null}; var ND=function(a){var b=a.zg();return b?b.width/(a.C?new re(a.C,a.K):a.zg()).width:0}; var OD=function(a,b){dd.call(this);this.Bg=a;this.Ck=b;this[Ec]=!1}; var PD=function(a,b,c,d){OD.call(this,a,b);a=this.Ck;b=this.la();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",c.A),c=c.getWidth(),z(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/ND(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Ck;a=this.la();if(d instanceof HD)a.setAttribute("fill",d.J),a.setAttribute("fill-opacity",d.K);else if(d instanceof BD){b="lg-"+d.D+"-"+d.G+"-"+d.F+"-"+d.H+"-"+d.o+"-"+d.A;var e= QD(c,b);if(!e){var e=RD(c,"linearGradient",{x1:d.D,y1:d.G,x2:d.F,y2:d.H,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.o;fa(d.B)&&(f+=";stop-opacity:"+d.B);f=RD(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.A;fa(d.C)&&(f+=";stop-opacity:"+d.C);d=RD(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=SD(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}; var TD=function(a,b){OD.call(this,a,b)}; var UD=function(a,b){OD.call(this,a,b)}; var VD=function(a,b,c,d){PD.call(this,a,b,c,d)}; var WD=function(a,b){OD.call(this,a,b)}; var XD=function(a,b,c,d){PD.call(this,a,b,c,d)}; var YD=function(a,b){OD.call(this,a,b)}; var ZD=function(a,b,c,d,e){MD.call(this,a,b,c,d,e);this.A={};this.O=wc&&!yc(526);this.L=new Cm(this)}; var RD=function(a,b,c){a=a.M.o.createElementNS("http://www.w3.org/2000/svg",b);c&&$D(a,c);return a}; var $D=function(a,b){for(var c in b)a.setAttribute(c,b[c])}; var aE=function(a,b,c,d){b=RD(a,"path",{d:bE(b)});c=new XD(b,a,c,d);a.B.la().appendChild(c.la())}; var bE=function(a){var b=[];FD(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,180<Math.abs(e)?1:0,0<e?1:0,d[4],d[5]);break;case 4:b.push("Z")}}); return b.join(" ")}; var SD=function(a,b,c){if(b in a.A)return a.A[b];var d="_svgdef_"+cE++;c.setAttribute("id",d);a.A[b]=d;a.G.appendChild(c);return d}; var QD=function(a,b){return b in a.A?a.A[b]:null}; var dE=function(){eE||(eE=new Qd(400),eE.start());return eE}; var fE=function(){this.o=!1;this.D=this.B=null}; var gE=function(a,b,c){a.B?(a.B.setSize(b,c),a.B.clear()):(b=new ZD(b,c,void 0,void 0,void 0),a.B=b,a.B.ho(),a.D=M("div"),b=a.B.la(),a.D.appendChild(b));return a.B}; var hE=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Ob(b,function(a,b){d.setAttribute(b,a)}); for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}; var iE=function(a,b){var c;c=":"+(JD.getInstance().o++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c}; var jE=function(a,b){var c=iE(a,hE("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=iE(a,hE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},hE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=iE(a,hE("feComposite",{"in":c,in2:b,operator:"in"}));return iE(a,hE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}; var kE=function(a,b){var c=iE(a,hE("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=iE(a,hE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=iE(a,hE("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"})),d=iE(a,hE("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 0"})),d=iE(a,hE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=iE(a,hE("feComposite",{operator:"out","in":c,in2:d}));return iE(a,hE("feComposite",{operator:"over","in":b, in2:c}))}; var lE=function(a,b){return b}; var mE=function(a){var b=hE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";E(a,function(a){a:{switch(a){case "bevel":a=jE;break a;case "dropshadow":a=kE;break a}a=lE}c=a(b,c)}); return b}; var nE=function(a){a=$d(a,function(a){return a in oE}); Bb(a,function(a,c){return oE[a]-oE[c]}); return a}; var pE=function(a){return db(a,function(a){return"dropshadow"==a})?new qe(0,7,7,0):new qe(0,0,0,0)}; var qE=function(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;b=rE(b,c,f);aE(a,b,d,e)}; var rE=function(a,b,c){var d=new CD;DD(d,a.left+b+c,a.top+c);d.sb(a.left+a.width-b-c,a.top+c);ED(d,b,b,-90);d.sb(a.left+a.width-c,a.top+a.height-b-c);ED(d,b,b,0);d.sb(a.left+b+c,a.top+a.height-c);ED(d,b,b,90);d.sb(a.left+c,a.top+b+c);ED(d,b,b,180);d.close();return d}; var sE=function(a,b,c,d){var e=a.J;return e?new BD(e.D*b/100,e.G*c/100,e.F*b/100,e.H*c/100,e.o,e.A,e.B,e.C):new HD(a.C,tE(d,a.A))}; var tE=function(a,b){return a?Math.max(b,.9):b}; var uE=function(a,b){var c=ue(a),d=pE(b);ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=window.NaN);return new te(c.left,c.top,c.right-c.left,c.bottom-c.top)}; var vE=function(a,b,c){if(c.length&&(b=Ze("g",void 0,b),b.length)){var d=nE(c);if(d){c="effects:"+(d?d.join("|"):"");var e=QD(a,c);e?a=e:(d=mE(d),a=0<d.childNodes.length?SD(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}}; var wE=function(){fE.call(this);this.C=0}; var xE=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"}; var yE=function(){fE.call(this)}; var zE=function(a,b,c){fE.call(this);this.C=a||0;this.G=b||0;this.F=c||!1}; var AE=function(a,b){var c=a.width,d=a.height,e=0,f=0;0<b&&(a.width/a.height>b?(d=a.width/b,f=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new te(e,f,c,d)}; var BE=function(){fE.call(this)}; var CE=function(){wE.call(this)}; var DE=function(a,b){this.o=a;this.A=b||null}; var LC=function(a,b){var c;c=a.A?KC(a.A,new DE(a.o)):a.o;var d=b.clone(),e=c.left;c=c.top;e instanceof oe?(d.left+=e.x,d.top+=e.y):(d.left+=e,fa(c)&&(d.top+=c));return d}; var EE=function(a,b,c,d,e){this.o=a;this.U=b;this.F=c;this.Da=d;this.aa=e;this.S=!1;this.G=new Az(this);this.O=this.D=this.H=this.M=this.A=null;this.Y=!1;this.Z=this.K=this.L=null;this.tl=new Am(this.rw,100,this);this.J=new Ud(this.no,500,this);this.V=this.B=this.C=null}; var FE=function(a,b){var c=A(function(a,c,f){c=f?GE(this,c,A(f,this)):GE(this,c);this.G.P(b,a,c)},a); c("mouseover","d",a.Pr);c("mouseout","c",a.Ng);c("click","a");c("touchend","a")}; var HE=function(a){if(a.o.G){var b;hD(a.o,function(a){return"close"==a.type})?b=a.A:(a.C=M("div",["annotation-close-button", "hid"]),ri(a.C,"annotation_id",a.o.id),a.A.appendChild(a.C),b=a.C);var c=function(a){a.stopPropagation()}; a.G.P(b,"click",GE(a,"b",c));a.G.P(b,"touchend",GE(a,"b",c))}}; var GE=function(a,b,c){return A(function(a){if(this.aa)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;Oq(e);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Hf(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey, a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{Nq(e)}}e=jg(a.target);a=new oe(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.Da.R(b,this.o)},a)}; var IE=function(a){if(a.A||a.B){var b=lD(a.o);if(b){var c=JE(a);if(a.A){var b=KC(b,c),d=KE(LE(a.F));eg(a.A,b.width,b.height);Tf(a.A,b.left,b.top);a.M=new te(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=lD(a.o))&&d?FC(d,e.C,e.o?e.o:"xy"):1;var f=nD(a.o,d),d=a.o.o;d.padding?d=d.padding:(d="speech"==a.o.style?1.6:.8,d=new qe(d,d,d,d));d=new qe(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.D&&(d.right+=1.5*c.o.height/100);a.A.style.padding=d.top+"px "+d.right+"px "+ d.bottom+"px "+d.left+"px";"label"==a.o.style&&a.H&&(a.H.style.padding=a.A.style.padding);var d=c.o,k=!1,l=0,m=0,p;p=KE(LE(a.F));var v=a.F.app.ea,t=LE(v.o).Ma(),t=new te(0,0,t.width,t.height);if(v.B.A&&!ME(v)){if(v.o.W().Ga){var y=NE(v)?69:48;t.top+=y;t.height-=y}v.F&&(t.height-=NE(v.F.C)?72:50)}ve(p,t)?p=null:(t.top+=20,t.height-=40,"player_relative"!=a.o.H&&(t.left-=p.left,t.top-=p.top),p=t);p&&(l=p.top-(b.top+b.height),m=b.top-(p.top+p.height),k=0<l||0<m);if(k&&p){d=p;e=l;var f=m,x;a.D&&(m=OE(a, 23,b,e,f),a.C&&(x=43-m.width,0<x&&(b.left+m.left-x>d.left&&(m.left-=x),m.width+=x)),x=m,eg(a.D,m.width,m.height),Tf(a.D,m.left,m.top));a.C&&(x?b=new oe(x.left+x.width-23-18,a.Y?x.top+2:x.top+x.height-18-2):(x=OE(a,18,b,e,f),b=new oe(x.left,x.top),eg(a.C,x.width,x.height)),Tf(a.C,b));a.O=new te(a.M.left+x.left,a.M.top+x.top,x.width,x.height);a.L=a.G.P(LE(a.F),"mousemove",a.iE)}else a.D&&(x=e/f*d.height*4.2/100,x=new re(x,x),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,x=new te(b.width- x.width-e,b.height-x.height-e,x.width,x.height)):x=new te(b.width-x.width-3*d.height/100,(b.height-x.height)/2,x.width,x.height),eg(a.D,x.width,x.height),Tf(a.D,x.left,x.top)),a.C&&(x=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Tf(a.C,x&&e?new oe(b.width-9,-9):x?new oe(b.width-9,45<b.height?9:b.height-9):e?new oe(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new oe(45<b.width?b.width-9-18:-9,b.height-9):new oe(-9,45<b.height?9:b.height-9)))}a.B&&a.B.A(a.o,c);if(a.A){c=a.A; b=a.o.o;c.style.color="highlightText"==a.o.style?b.H:b.F;x=KE(LE(a.F));c.style.fontSize=360*b.textSize*nD(a.o,x)/100+"px";x=a.o.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==x||"highlightText"==x?"center":"left";b.fontWeight&&(c.style.fontWeight=b.fontWeight);a=a.A;c=a.style.overflow;b=$e("annotation-link-icon",a);x=Mq(b);d=$e("annotation-close-button",a);e=Mq(d);b&&x&&Oq(b);d&&e&&Oq(d);m=f="";if(l=$e("inner-text",a))f=l.style.overflow,m=l.style.position,l.style.overflow="visible",l.style.position= "static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){p=k=ng(a);v=5;for(t=Math.floor(k/2);t;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(v=p,p=Math.min(p+t,k)):p=Math.max(p-t,v),t=Math.floor(t/2),a.style.fontSize=p+"px";p!=v&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=v+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);d&&e&&Nq(d);b&&x&&Nq(b)}}}}; var OE=function(a,b,c,d,e){var f=0<e;b=new te(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),I(a.A,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),I(a.A,"annotation-extend-up"),a.Y=!0);return b}; var PE=function(a){return"label"!=a.o.style||a.B.o}; var JE=function(a){var b;b=KE(LE(a.F));if("player_relative"==a.o.H){var c=LE(a.F).Ma();b=new te(-b.left,-b.top,c.width,c.height)}else b=new te(0,0,b.width,b.height);return new DE(b,a.V?lD(a.V):null)}; var QE=function(a,b){return b?new te(a.x+b.left,a.y+b.top,b.width,b.height):null}; var RE=function(a){mq.call(this,a);this.ea=!0;this.qa="iv-module";this.H="iv";this.K=0;this.B={};this.L={};this.D=new iB(0,a);a=SE;this.subscribe("onHideControls",this.Ez,this);this.subscribe("onShowControls",this.PA,this);this.subscribe("onStateChange",this.uA,this);this.subscribe("d",this.aE,this);this.subscribe("c",this.Ng,this);this.subscribe("a",this.oy,this);this.subscribe("b",this.Ty,this);this.subscribe("vast_info_card_add",this.lB,this);this.subscribe("cards_drawer_set_visible",this.Hy,this); this.O=M("DIV",[a.cu,"html5-stop-propagation"]);this.U=M("DIV",a.Bt);this.C=null;a=M("DIV",a.gt,this.O,this.U);I(a,this.qa);LE(this.o).M.appendChild(a);this.F=this.A=null;this.M=[]}; var TE=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""): e&&f.push(TE(a,e))}return c}; var UE=function(a,b,c){return!(a.loaded&&a.K==b&&a.o.getVideoData().videoId==c)}; var VE=function(a,b){var c=WE(a,b);if(!c&&"marker"!=b.type)return null;jD(b,function(a){a=A(this.hB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a); return new vD(a.S,b,c)}; var XE=function(a,b){var c=RE.A(),d=null;switch(b.type){case "branding":if(a.o.W().xc)break;a.C.element.appendChild(c);d=new uC(c,YE(a),b);break;case "promotion":Uq(a.o,c,4),d=new oD(c,YE(a),b)}d&&d.Xi();return d}; var ZE=function(a){var b=a.o.getVideoData();if(b.Ye){var c=a.o.W(),d=c.J.remove(b.videoId);if(d){var e={format:"XML",Zc:{}};c.experiments.na("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.Zc.gaming="1");e.Rb=A(function(a,b,c){UE(this,a,b)||(a=vj(c)&&c.responseXML?c.responseXML:null)&&$E(this,a)},a,a.K,b.videoId); Eu()&&(e.Rb=aF(a,e.Rb));e.Bb={ic_only:1};bF(a,e,d);Bj(b.Ye,e)}}}; var bF=function(a,b,c){b.method="POST";b.Bb=b.Bb||{};c.ue&&(b.Bb.ic_xml=c.ue);c.Qf&&(b.Bb.ic_track=c.Qf);if(a=a.o.getVideoData(1))b.Bb.organic_video_id=a.videoId}; var cF=function(a,b){if(!a.A){var c=new Q(["div","hid"]);a.A=new bC(a.o,c.element,YE(a));c.o(a.C.element);a.A.Xi()}var d=b&&b.data&&b.data.card_type;if(d&&dF[d]){c=a.A;d=new dF[d](b.id,b.data,b.Pa);c.V||(Yd(c.la(),["html5-stop-propagation","iv-drawer-manager"]),Uq(c.ca,c.F,5),iC(c),c.V=!0);dC(c,d.id);var e=jC(c,d);if(e){var f={Sa:d,ak:e.element,Yo:!1,Ci:!1},k=kC(c,f);ub(c.A,k,0,f);e.o(c.yc,k);c.Jh();d.D?sB(c,d.startMs,0x8000000000000,d.id,pa(c.eC,f)):(e=1E3*c.context.A.getCurrentTime(),5E3>e&&e>d.startMs&& c.Ol(f,!1),sB(c,d.startMs,d.startMs+1,d.id,pa(c.Ol,f,!1)))}}gC(a.o)}; var YE=function(a){a.F||(a.F=new vC(new Az(a),a.o.W(),a.o.getVideoData(),a.D,a.o,a.S));return a.F}; var $E=function(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=TE(a,c[d]),f=null;try{f=aD(e)}catch(k){}f&&(RE.D(f)?(e=XE(a,f))&&(a.L[f.id]=e):RE.C(f)?cF(a,f):(e=VE(a,f))&&(a.B[f.id]=e))}Ob(a.B,function(a){var b=a.annotation;b.A&&b.A.A&&(b=this.B[b.A.A])&&(a.o.V=b.annotation)},a)}; var eF=function(a,b,c,d){d?fF(a,b,c):gF(a,b,c)}; var gF=function(a,b,c){if(b=a.B[b])yD(b),c&&c.A?(a=A(a.mo,a,b),b.A=new Ud(a,2E3),b.A.start()):a.mo(b)}; var fF=function(a,b,c){if(b=a.B[b])yD(b),c&&c.C?(a=A(a.Mq,a,b),b.A=new Ud(a,2E3),b.A.start()):a.Mq(b)}; var hF=function(a,b,c){if("new"==b.target)return!1;var d=tA(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!uA(d))return!1;d=qj(d);if(d.list||d.p)return!1;b=xA(b);if(!b)return!1;if(c==b)return!0;a=a.o.W();return a.L&&a.ia?!0:!1}; var WE=function(a,b){if(iF(b)){var c=b.G||hD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a}); return new EE(b,A(a.O.appendChild,a.O),a.o,a.S,c)}return null}; var iF=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in cD)if(a.style==cD[b])return!0;return!1}; var jF=function(a,b,c,d){a.R(uD(b,d),c,d)}; var aF=function(a,b){return A(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.M.push(Fu(b,void 0))}},a)}; var kF=function(a){return!!a.A&&a.A.isAvailable()}; var lF=function(a){kF(a);return!!a.A&&a.A.D}; var mF=function(a,b){kF(a);a.A&&(b?fC(a.A):hC(a.A))}; var nF=function(a,b,c){a.R("publish_external_event",b?"cardsteasershow":"cardsteaserhide",c)}; var oF=function(a){this.ca=a;this.A=null;this.o=new te(0,0,0,0);this.D=new re(0,0);this.C=this.B=0;pF&&yc(11)&&(this.A=window.document.createElement("canvas").getContext("2d"),yc(12.10532)||(this.B=3))}; var qF=function(a,b){if(null===a.A)return b;var c=new re(b.videoWidth,b.videoHeight);if(!se(c,a.D)&&(a.A.canvas.width=c.width,a.A.canvas.height=c.height,a.o.top=0,a.o.left=0,a.o.width=c.width,a.o.height=c.height,a.D=c,0<a.B)){a.B=3;var d=rF(LE(a.ca)),e=16/9;d<e?(a.o.width=c.width*d/e,a.o.left=Math.ceil(.5*(c.width-a.o.width)),a.o.width|=0):d>e&&(a.o.height=c.height*e/d,a.o.top=Math.ceil(.5*(c.height-a.o.height)),a.o.height|=0)}0<a.B&&(a.C^=1,2<=a.o.top?(a.C?sF(a,b,0,0,a.o.width,a.o.top-1):sF(a,b, 0,b.videoHeight-a.o.top+1,a.o.width,a.o.top-1))&&--a.B:2<=a.o.left&&(a.C?sF(a,b,0,0,a.o.left-1,a.o.height):sF(a,b,b.videoWidth-a.o.left+1,0,a.o.left-1,a.o.height))&&--a.B,0>=a.B&&(a.o.top=0,a.o.left=0,a.o.width=b.videoWidth,a.o.height=b.videoHeight));try{a.A.drawImage(b,a.o.left,a.o.top,a.o.width,a.o.height,0,0,a.D.width,a.D.height)}catch(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.A.canvas}; var sF=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);try{a.A.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.A.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1}; var tF=function(a,b,c){this.H=b||!1;this.F=c||null;this.o="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.D=new oF(a)}; var uF=function(a,b){tF.call(this,a);this.o="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n x *= 0.5;\n vec4 cLt = texture2D(uSplr, vec2(x, y));\n vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n if (mode == 1) {\n anaglyph(vTexCrd.x, vTexCrd.y);\n }\n else if (mode == 0) {\n gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n }\n}"; this.G=b;this.C=null;this.A=1;this.B=!0}; var vF=function(a,b){if(!(b.da||Fl&&!lt()))return!1;if(hx(a)&&3!=a.da&&4!=a.da)return!0;if(!a.o)return!1;for(var c in a.o.o){var d=a.o.o[c].info.video;if(d&&1==d.A)return!0}return!1}; var wF=function(a,b){tF.call(this,a,!0,b);this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nvoid main(void) {\n vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n float amt = 0.05;\n float maxCol = max(max(col.x, col.y), col.z);\n amt = amt * smoothstep(0.0, 0.1, maxCol);\n amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n col.xyz = col.xyz + (noiseCol.x - 0.5) * amt;\n gl_FragColor = col;\n}"; this.B=null;this.ca=a;this.J=a.W().experiments.na("white_noise_with_interval");this.C=0}; var xF=function(a,b){wF.call(this,a,b);this.o="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n vec4 orjcol = texture2D(uSplr,vTexCrd);\n vec4 col = orjcol * 1.8 -\n texture2D(uSplr,texCrdMinusx) * 0.4 -\n texture2D(uSplr,texCrdMinusy) * 0.4;\n vec4 diff = orjcol * 2.0 -\n texture2D(uSplr,texCrdMinusx) -\n texture2D(uSplr,texCrdMinusy);\n float fDiff = length(diff);\n float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n float namt = 0.035;\n namt = namt * smoothstep(0.0, 0.1, maxCol);\n namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n float noiseL = noise(gl_FragCoord.xy) * namt;\n float eamt = smoothstep(0.0, 0.05, fDiff);\n col = eamt * col + (1.0 - eamt) * orjcol;\n col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n gl_FragColor = col;\n}"; this.A=null;this.G=!1}; var yF=function(){this.o=new window.Float32Array(16);this.B=new window.Float32Array(16);this.A=new window.Float32Array(16);this.identity()}; var zF=function(a,b){for(var c=0;16>c;c+=4)a.A[c+0]=a.o[c+0]*b[0]+a.o[c+1]*b[4]+a.o[c+2]*b[8]+a.o[c+3]*b[12],a.A[c+1]=a.o[c+0]*b[1]+a.o[c+1]*b[5]+a.o[c+2]*b[9]+a.o[c+3]*b[13],a.A[c+2]=a.o[c+0]*b[2]+a.o[c+1]*b[6]+a.o[c+2]*b[10]+a.o[c+3]*b[14],a.A[c+3]=a.o[c+0]*b[3]+a.o[c+1]*b[7]+a.o[c+2]*b[11]+a.o[c+3]*b[15];c=a.o;a.o=a.A;a.A=c}; var AF=function(a,b){this.J=a;this.S=b;this.D=new yF;this.Z=this.Y=this.aa=this.Da=null;this.B=.872;this.O=this.U=this.V=this.A=this.o=0;this.F=!0;this.C=this.H=0;this.K=new oF(a)}; var BF=function(a,b){AF.call(this,a,b);this.M=null;this.G=0;this.L=!0}; var CF=function(){}; var DF=function(a,b,c){return a[b]=a[b]||c}; var EF=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1}; var FF=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b}; var GF=function(){var a;if((a=Object.create)&&HF.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a}; var IF=function(){var a=JF.href,b;if(KF.dpo)b=KF.h;else{b=KF.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b}; var LF=function(a){var b=DF(KF,"PQ",[]);KF.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)}; var MF=function(a){return DF(DF(KF,"H",GF()),a,GF())}; var NF=function(a,b,c){b&&0<b.length&&(b=OF(b),c&&0<c.length&&(b+="___"+OF(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=DF(PF,"_p",GF()),DF(b,c,GF())[a]=(new Date).getTime(),b=QF.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))}; var OF=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")}; var RF=function(a){throw Error("Bad hint"+(a?": "+a:""));}; var SF=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=TF[f],l=null;k?l=k(e,b,c,d):RF("no hint processor for: "+f);l||RF("failed to generate load url");b=l;c=b.match(UF);(d=b.match(VF))&&1===d.length&&WF.test(b)&&c&&1===c.length||RF("failed sanity: "+a);return l}; var XF=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")} a=YF(a);ZF.test(c)||RF("invalid_callback");b=$F(b);d=d&&d.length?$F(d):null;return[(0,window.encodeURIComponent)(a.IB).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.qn?"/am="+e(a.qn):"",a.pq?"/rs="+e(a.pq):"",a.Rs?"/t="+e(a.Rs):"","/cb=",e(c)].join("")}; var YF=function(a){"/"!==a.charAt(0)&&RF("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))RF("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),k=(0,window.decodeURIComponent)(f[0]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");aG.test(b)||RF("invalid_prefix");c=bG(a,"k",!0);d=bG(a,"am");e=bG(a,"rs"); a=bG(a,"t");return{IB:b,version:c,qn:d,pq:e,Rs:a}}; var $F=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");cG.test(e)&&b.push(e)}return b.join(",")}; var bG=function(a,b,c){a=a[b];!a&&c&&RF("missing: "+b);if(a){if(dG.test(a))return a;RF("invalid: "+b)}return null}; var eG=function(){var a=IF();if(!a)throw Error("Bad hint");return a}; var fG=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>EF.call(b,e)&&c.push(e)}return c}; var gG=function(a){"loading"!=hG.readyState?iG(a):hG.write("<"+jG+' src="'+(0,window.encodeURI)(a)+'"></'+jG+">")}; var iG=function(a){var b=hG.createElement(jG);b.setAttribute("src",a);b.async="true";(a=hG.getElementsByTagName(jG)[0])?a.parentNode.insertBefore(b,a):(hG.head||hG.body||hG.documentElement).appendChild(b)}; var kG=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<lG.length;d++){var e=lG[d][0],f=lG[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}}; var mG=function(a,b,c){nG(function(){var c;c=b===IF()?DF(oG,"_",GF()):GF();c=DF(MF(b),"_",c);a(c)},c)}; var pG=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);kG(a,c);var d=a?a.split(":"):[],e=c.h||eG(),f=DF(KF,"ah",GF());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,p=k.length&&k[k.length-1]||null,v=p;p&&p.hint==m||(v={hint:m,features:[]},k.push(v));v.features.push(l)}var t=k.length;if(1<t){var y=c.callback;y&&(c.callback=function(){0==--t&&y()})}for(;d=k.shift();)qG(d.features,c,d.hint)}else qG(d||[],c,e)}; var qG=function(a,b,c){function d(a,b){if(t)return 0;rG.clearTimeout(v);y.push.apply(y,L);var d=((oG||{}).config||{}).update;d?d(f):f&&DF(KF,"cu",[]).push(f);if(b){NF("me0",a,x);try{mG(b,c,p)}finally{NF("me1",a,x)}}return 1} a=FF(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,p=void 0;"function"==typeof m&&(p=m);var v=null,t=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=DF(MF(c),"r",[]).sort(),y=DF(MF(c),"L",[]).sort(),x=[].concat(m);0<k&&(v=rG.setTimeout(function(){t=!0;l()},k)); var L=fG(a,y);if(L.length){var L=fG(a,m),ha=DF(KF,"CP",[]),K=ha.length;ha[K]=function(a){function b(){var a=ha[K+1];a&&a()} function c(b){ha[K]=null;d(L,a)&&LF(function(){e&&e();b()})} if(!a)return 0;NF("ml1",L,x);0<K&&ha[K-1]?ha[K]=function(){c(b)}:c(b)}; if(L.length){var Y="loaded_"+KF.I++;oG[Y]=function(a){ha[K](a);oG[Y]=null}; a=SF(c,L,"gapi."+Y,m);m.push.apply(m,L);NF("ml0",L,x);b.sync||rG.___gapisync?gG(a):iG(a)}else ha[K](CF)}else d(L)&&e&&e()}; var nG=function(a,b){if(KF.hee&&0<KF.hel)try{return a()}catch(c){b&&b(c),KF.hel--,pG("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c; }}; var sG=function(){Rj.call(this);this.o={}}; var tG=function(a,b,c){if(!a.o[b]&&(c.ue||c.Qf)){var d=a.o,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.R("vast_info_card_add",b)}}; var uG=function(){if(null==u("_lact",window)){var a=(0,window.parseInt)(zi("LACT"),10),a=(0,window.isFinite)(a)?H()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&vG();Nl(window.document,"keydown",vG);Nl(window.document,"keyup",vG);Nl(window.document,"mousedown",vG);Nl(window.document,"mouseup",vG);Ii("page-mouse",vG);Ii("page-scroll",vG);Ii("page-resize",vG)}}; var vG=function(){null==u("_lact",window)&&(uG(),u("_lact",window));var a=H();q("_lact",a,window);Pi("USER_ACTIVE")}; var SA=function(){var a=u("_lact",window);return null==a?-1:Math.max(H()-a,0)}; var wG=function(a){F.call(this);a=ec(a);this.M={};this.experiments=new HA(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.ma=b;this.G=(this.L=xG.test(this.ma))?Au("",a.loaderUrl):this.ma;this.gb=Wp(this.G);this.protocol=(this.Oj=(this.Lc=wu(!1,a.ssl_stream))||wu(!1,a.ssl))?"https":"http";this.baseYtUrl=Tp(a.BASE_YT_URL,this.experiments.na("legacy_base_url"))||Tp(this.ma,this.experiments.na("legacy_base_url"))||this.protocol+ "://www.youtube.com/";"adunit"==a.el?yG.test(this.G)?this.Ba="adunit":this.Ba="embedded":this.experiments.na("legacy_el")?this.Ba=a.el||this.Ba:"embedded"==a.el||this.gb?this.Ba=xu(this.Ba,a.el,zG):a.el&&(this.Ba="embedded");uG();b=null;var c=a.ps,d=ib(AG,c);!c||d&&!this.gb||(b=c);this.o=b;this.Ab=ib(AG,this.o);this.C="blogger"==this.o||"books"==this.o||"docs"==this.o||"google-live"==this.o||"picasaweb"==this.o;this.ub=!this.C;this.lg=wu(!this.C,a.showwatchlater);this.A={};this.A.c=a.c||"web";this.A.cver= "html5";this.A.cplayer="UNIPLAYER";this.jb=wu(!1,a.edu_mode);this.U=!(!ut().defaultPlaybackRate||Lf&&!mt("chrome")||Iw||BG||mt("android")||mt("silk"));a.use_media_volume?b=!1:(b=ut(),c=b.muted,b.muted=!c,b=b.muted!=c);this.nb=b;this.hg=CG;(Iw||BG||Et)&&"blazer"!=this.o&&DG(this);this.Ga=wu("adunit"!=this.Ba&&"detailpage"!=this.Ba&&!this.Ab,a.showinfo);this.isMobile=wu("blazer"==this.o,a.is_html5_mobile_device);this.Nb=wu(!1,a.playsinline);b=this.isMobile&&EG&&2.3>=Ov;c=FG(this)||!b&&wu("native"== this.o,a.use_native_controls)?"3":"1";this.B="0"!=a.controls?c:"0";this.useTabletControls=this.experiments.na("disable_new_tablet_mode_behavior")?wu("blazer"==this.o||"touch"==this.o,a.use_tablet_controls):this.isMobile;this.color=xu("red",a.color,GG);this.oe="3"==this.B||wu(!1,a.modestbranding)&&"red"==this.color;wu(!1,a.nologo)&&(c=this.G,HG.test(c),Wp(c));this.uc=(c=!Qx(this)&&"detailpage"!=this.Ba&&!this.C&&!this.Ab)&&!this.oe&&"1"==this.B;this.xc="embedded"==this.Ba&&c&&!this.Ga&&!this.uc;this.Ch= this.pe=b;this.H=BG?this.experiments.Da&&7<=Jw:!0;this.tb=this.L||!1;this.O="detailpage"==this.Ba?"":(this.G||a.post_message_origin||"").substring(0,128);this.ab=!!a.disableCast;this.autoplay=wu(!1,a.autoplay);this.he=wu(!1,a.autoplayoverride);this.Cd=this.autoplay||"detailpage"==this.Ba;b=this.he||!this.isMobile&&!rt();this.Ca=this.Cd&&b;b="detailpage"==this.Ba&&"blazer"==this.o;this.za=!wu(!0,a.fs);this.La=!this.za&&(b||Kh());this.wc=wu(!this.Ab,a.rel);this.kg="adunit"!=this.Ba;this.Z="profilepage"== this.Ba;this.Ea="blazer"==this.o||"mweb-polymer"==this.o;switch(this.o){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.aa=b;this.zb=Au("",a.authuser);this.bb=wu(!1,a.disablekb);this.pageId=Au("",a.pageid);this.qe=Du(Yt,a.vq);this.Xe=Au("",a.playerapiid);this.jg=wu(!0,a.canplaylive);this.ie=wu(this.Ab,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length? b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*c?null:new re(b,c))):b=null;this.zd=b;this.mute=this.gb&&wu(!1,a.mute);this.storeUserVolume=!this.mute&&wu("0"!=this.B,a.store_user_volume);this.useMediaVolume=wu(!1,a.use_media_volume);this.ig=wu(!1,a.retryneterr)&&this.gb;this.Ed="3"==this.B?3:xu(void 0,a.iv_load_policy,Nw);this.ia=wu(!1,a.iv_allow_in_place_switch);this.Qa=Au("",a.cc_lang_pref);this.da=xu(void 0,a.cc_load_policy, Nw);this.ea=void 0==a.content_v?void 0:a.content_v.toString();this.je=void 0==a.framer?void 0:a.framer.toString();this.Y=Au("en_US",a.hl);this.region=Au("US",a.cr);this.hostLanguage=Au("en",a.host_language);this.ne=wu(!1,a.privembed);this.Cb="";this.sa=new Zj;this.K=wu(!0,a.deviceHasDisplay);this.Ua=yu(this.Ua,a.ismb);IG(this,a);this.M=a;this.J=new sG;this.V=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.A.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region|| this.experiments.na("disable_innertube_config_reporting")||Fi(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.A.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.ke={apiaryHost:Au("",b.apiary_host),qJ:Au("",b.apiary_host_firstparty),gapiHintOverride:wu(!1,b.gapi_hint_override),gapiHintParams:Au("",b.gapi_hint_params),innertubeApiKey:Au("",b.innertube_api_key), innertubeApiVersion:Au("",b.innertube_api_version),Bx:this.A.c,innertubeContextClientVersion:Au("",b.innertube_context_client_version),Ex:this.hostLanguage,Cx:this.region};this.Nc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&wu(!1,a.airplay_button);this.F=new Mv(this.K,"web"==this.A.c.toLowerCase().substr(0,3)||nt()||ot());this.enableSafetyMode=wu(!1,a.enable_safety_mode)}; var JG=function(a,b){a.$a=b.get("d",a.$a);a.Ia=b.get("f",a.Ia)}; var IG=function(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&Yb(KG,c)&&Yb(LG,c)?LG[c]+"_"+KG[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],d=!(1==d[1]&&8==e)&&(6==e||7==e||8==e||10==e);if(a.L||a.gb||d)a.D=c,a.M.adformat=b.adformat,d||(a.Ba="adunit")}}if(c=b.video_id&&b.video_id!=a.Cb)a.Cb=b.video_id;if(b.adpings||c)a.Dd=b.adpings?oj(b.adpings):null;a.jb?d="s.youtubeeducation.com":a.ub?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]|| "s.youtube.com",a.experiments.fa&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.Bd=d;a.Oc="//"+a.Bd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ka=d,a.M.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.M.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in MG)c=MG[f],d=b[c],void 0!=d&&(a.A[c]=d);!a.fa&&b.cl&&(a.fa=+b.cl);a.userAge=yu(a.userAge,b.user_age);a.userDisplayImage=Au(a.userDisplayImage,b.user_display_image);Kw.test(a.userDisplayImage)||(a.userDisplayImage=""); a.userDisplayName=Au(a.userDisplayName,b.user_display_name);a.userGender=Au(a.userGender,b.user_gender);a.S=Au(a.S,b.eventid);a.S&&(tu=a.S);a.csiPageType=Au(a.csiPageType,b.csi_page_type);a.ha=Au(a.ha,b.csi_service_name);a.Ea=wu(a.Ea,b.enablecsi);b.enabled_engage_types&&(a.sa=new Zj(b.enabled_engage_types.split(",")));a.ia=wu(a.ia,b.iv_allow_in_place_switch)}; var NG=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.zb&&(b.authuser=a.zb);a.pageId&&(b.pageid=a.pageId);return Ug(a.baseYtUrl+"get_video_metadata",b)}; var OG=function(a){var b;b=Lg(a.baseYtUrl);var c=Mg(a.baseYtUrl);c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.jb?"www.youtube.com":b}; var PG=function(a){return"gaming"==a.o?"gaming.youtube.com":OG(a)}; var QG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}; var RG=function(a){var b={};if(a.qc){if(a.qc.getVideoPlaybackQuality)return a.qc.getVideoPlaybackQuality();a.qc.webkitDecodedFrameCount&&(b.totalVideoFrames=a.qc.webkitDecodedFrameCount,b.droppedVideoFrames=a.qc.webkitDroppedFrameCount)}return b}; var SG=function(a){return a.experiments.H?Mx(a)||"leanback"==a.Ba:!0}; var $x=function(a){return"leanback"==a.Ba||a.Ab||!a.wc&&!a.Z?!1:!0}; var TG=function(a){return Mx(a)||"embedded"==a.Ba||"profilepage"==a.Ba?!0:!1}; var Qx=function(a){return 0==a.G.indexOf(a.baseYtUrl)}; var Mx=function(a){return"detailpage"==a.Ba&&"gaming"!=a.o}; var FG=function(a){return BG&&!a.Nb||rt()}; var DG=function(a){return qt()||"TV"==a.A.cplatform}; var Tx=function(a,b,c){return"detailpage"==a.Ba&&"blazer"!=a.o&&!!b&&!b.ypcPreview&&!b.Fa&&!ib(b.K,"ypc")&&!c}; var UG=function(a,b,c,d){this.G=c;this.C=LE(a).A;this.K=10;this.D=!0;this.V=this.S=this.Y=this.B=this.A=null;this.U=b;this.o=null;this.ca=a;this.aa=d;this.F=new te(0,0,0,0);this.L=!1;this.J=!0}; var VG=function(a){a.A=window.document.createElement("canvas");if(!a.A)return 1;a.G.appendChild(a.A);try{a.B=a.A.getContext("webgl")||a.A.getContext("experimental-webgl")}catch(d){return 2}if(null==a.B)return 3;var b=WG(a);if(0!=b)return b;var b=a.B,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.S=c;b=a.B;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.Y=c;b=a.B;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.S);b.vertexAttribPointer(a.O,3,b.FLOAT,!1,0,0);a.M();a.C.crossOrigin="use-credentials";return 0}; var WG=function(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.o.zk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.o.vk());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e); if(0==b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.O=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.O);a.V=e;a.o.Xc(b,a.V,a.G);return 0}; var XG=function(a){a.A&&(qf(a.A),a.A=null);a.B=null;a.D=!1;a.o&&a.o.destroy(a.aa);a.o=null;a.C.removeAttribute("crossorigin");a.C.style.display="";a.K=10}; var YG=function(a){mq.call(this,a);this.ea=!0;this.qa="webgl";this.subscribe("onResize",this.eE,this);this.subscribe("onPlaybackQualityChange",this.nA,this);this.subscribe("onStateChange",this.Yc,this);this.C=new Q(["div","webgl"]);this.C.o(LE(a).C);this.ca=a;this.A=null;this.B=!1}; var ZG=function(a){a=a.C;this.B=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.C=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.o=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Kw.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.A=a.ypc_item_url;this.videoId=a.ypc_vid}; var $G=function(){Gq.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"]],["button",["ytp-drawer-open-button","ytp-button"]]]);var a=this.ra["ytp-drawer-close-button"],b=yh();a.innerHTML=b;b=this.ra["ytp-drawer-open-button"];R(this,a,"click",this.C);R(this,b,"click",this.show);this.A=new Ud(pa(Zd,this.element,"ytp-drawer-closed"),0);G(this,this.A);this.Eb(null);this.ga()}; var aH=function(a,b,c){Rj.call(this);this.B=0==c;this.A=new $G;this.A.subscribe("close-clicked",this.H,this);G(this,this.A);this.C=window.document.createElement("div");I(this.C,"html5-ypc-endscreen");this.F=window.document.createElement("div");I(this.F,"html5-ypc-overlay");this.D=new wq(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"], ["button",["html5-ypc-purchase","ytp-button"],"{{button_label}}"]]);G(this,this.D);this.G=this.D.ra["html5-ypc-purchase"];Nl(this.G,"click",A(this.J,this));Af(this.F,b.C);c=b.title;b.A&&(c=["a",{href:b.A,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.D.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.B});this.o(a)}; var bH=function(a){a.B||(a.C.appendChild(a.D.element),a.A.Eb(null),Dq(a.C,"block"))}; var cH=function(a){a.B||a.A.show()}; var dH=function(a){mq.call(this,a);this.H=this.qa="ypc";this.A=this.B=null;this.D=window.NaN;this.C=null}; var eH=function(a){return ex(a.getVideoData(),"ypc_module")?new dH(a):null}; var fH=function(a,b,c){var d=1E4;c.C.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.C.ypc_overlay_timeout,10));a.A=new aH(a.C.element,a.B,d);a.A.subscribe("ypcContentRequest",a.ez,a);a.A.subscribe("ypcModuleCloseClicked",a.Xz,a);a.B.videoId&&a.C.element.appendChild(a.A.F);$x(b)&&(c=new iq(0x8000000000000,0x8000000000000,{priority:2}),a.fb([c]));cH(a.A);Di(a.D);a.D=Ai(A(function(){if(this.A&&!b.experiments.K){var a=this.A;a.B||a.A.ga()}},a),d)}; var gH=function(a,b,c){z(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return hH(a)}; var hH=function(a,b,c){if(ia(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}}; var iH=function(a){if(a.jl)return 4;var b=Fh("visibilityState",window.document);return b&&"visible"!=b?3:a.Jg?2:a.kl?1:0}; var jH=function(a,b){F.call(this);this.app=a;this.o=null;this.B={};this.C={};this.F={};this.D={};this.A=null;this.playerType=b;U(this,"cueVideoById",this.Cm);U(this,"loadVideoById",this.Fm);U(this,"cueVideoByUrl",this.kD);U(this,"loadVideoByUrl",this.vD);U(this,"playVideo",this.$c);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Ar);U(this,"clearVideo",this.iD);U(this,"getVideoBytesLoaded",this.qD);U(this,"getVideoBytesTotal",this.rD);U(this,"getVideoLoadedFraction",this.Em);U(this,"getVideoStartBytes", this.sD);U(this,"cuePlaylist",this.jD);U(this,"loadPlaylist",this.vr);U(this,"nextVideo",this.uj);U(this,"previousVideo",this.vj);U(this,"playVideoAt",this.Gm);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.xD);U(this,"getPlaylist",this.ac);U(this,"getPlaylistIndex",this.oD);U(this,"getPlaylistId",this.ce);U(this,"loadModule",this.tj);U(this,"unloadModule",this.Br);U(this,"setOption",this.de);U(this,"getOption",this.wb);U(this,"getOptions",this.ih);U(this,"mute",this.mute);U(this,"unMute", this.unMute);U(this,"isMuted",this.sc);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Db);U(this,"seekTo",this.Tb);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.nD);U(this,"setPlaybackRate",this.xj);U(this,"getAvailablePlaybackRates",this.rj);U(this,"getPlaybackQuality",this.sj);U(this,"setPlaybackQuality",this.wj);U(this,"getAvailableQualityLevels",this.sr);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.hh);U(this,"addEventListener", this.addEventListener);U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.Dm);U(this,"getVideoEmbedCode",this.ur);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.rr);U(this,"removeCueRange",this.wr);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.lD);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.zr);U(this,"hideVideoInfo",this.tD);kH(this,"getInternalApiInterface",this.mD);kH(this,"getAdState", this.getAdState);kH(this,"isNotServable",this.uD);kH(this,"getUpdatedConfigurationData",this.pD);kH(this,"updateRemoteReceivers",this.zD);kH(this,"sendAbandonmentPing",this.wD);kH(this,"setAutonav",this.xr);kH(this,"setAutonavState",this.yr);kH(this,"setMinimized",this.yD);kH(this,"channelSubscribed",w);kH(this,"channelUnsubscribed",w)}; var U=function(a,b,c){a.B[b]=A(c,a)}; var kH=function(a,b,c){a.C[b]=A(c,a)}; var lH=function(a,b){jH.call(this,a,b);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.AD);U(this,"cueVideoByPlayerVars",this.BD);U(this,"loadVideoByPlayerVars",this.Dr);U(this,"preloadVideoByPlayerVars",this.MD);U(this,"seekBy",this.ad);U(this,"updatePlaylist",this.UD);U(this,"updateLastActiveTime",this.TD);U(this,"updateVideoData",this.VD);U(this,"getStoryboardFormat",this.GD);U(this,"getProgressState",this.Te);U(this,"getHousebrandProperties",this.ED); U(this,"setPlaybackQualityRange",this.ND);U(this,"getCurrentPlaylistSequence",this.DD);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.ag);U(this,"setCardsVisible",this.jh);U(this,"handleGlobalKeyDown",this.JD);U(this,"getAudioTrack",this.$f);U(this,"setAudioTrack",this.Im);U(this,"getAvailableAudioTracks",this.Cr);U(this,"getMaxPlaybackQuality",this.FD);U(this,"setSizeStyle",this.PD);U(this,"forceFrescaUpdate",this.CD);U(this,"setAutonav",this.xr);U(this,"setAutonavState", this.yr);U(this,"showControls",this.RD);U(this,"hideControls",this.KD);U(this,"getVisibilityState",this.ID);U(this,"shouldSendVisibilityState",this.QD);U(this,"getVideoContentRect",this.Hm);U(this,"setSafetyMode",this.OD)}; var mH=function(a,b){lH.call(this,a,b)}; var nH=function(a){(a=oq(a.app))&&oH(a)}; var pH=function(a){return(a=qH(a.app.C,"endscreen"))?Wx(a):!1}; var rH=function(a){var b=qH(a.app.C,"endscreen");return b&&ay(b)?!0:(a=qH(a.app.C,"ypc"))&&a.Va()?!0:!1}; var pz=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.H.O:oq(b,a).getPlayerState()}; var LE=function(a){return a.app.F}; var sH=function(a){return a.app.O&&!a.Ja()||!!a.ac()}; var tH=function(a,b){var c=uH(a.app,"captions","displaySettings",b);a.app.Wf("onCaptionsDisplaySettings");return c}; var Nx=function(a){a=a.app;vH(a,!a.M.Ja())}; var wH=function(a){return(a=oq(a.app))?Zt(xH(a.ha,a.o)):"unknown"}; var yH=function(a){(a=qH(a.app.C,"webgl"))?a.B?(a=a.A,a=a.o?a.o.Ve():{}):a={}:a={};return a}; var zH=function(a,b){var c=qH(a.app.C,"webgl");c&&c.B&&(c=c.A,c.o&&c.o.nh(b))}; var AH=function(a,b){a.W().experiments.na("ui_logging")&&BH(a,"controlclicked",{controlClicked:b})}; var BH=function(a,b,c,d){var e=oq(a.app);c.event=b;a.Ja()&&(c.fs=1);c.ux=1;if(e.B){a=e.B;e=(b=a.o.A.experiments.na("event_log_respect_caller_args"))?{}:c;e.rt=XA(a.o).toFixed(3);qa(e,ZA(a.o));var f=a.o.A,k=a.o.o,l=k.za||f.ka,l={ns:f.aa,html5:"1",el:f.Ba,ps:f.o,fexp:f.experiments.experimentIds.join(",")||void 0,feature:l||void 0,ctrl:k.ea||void 0,ytr:k.fa||void 0,list:k.playlistId,d:f.$a,f:f.Ia};f.autoplay&&(l.autoplay="1");k.subscribed&&(l.subscribed=k.subscribed);qa(e,l);delete e.fexp;b&&qa(e,c); c=rj(a.o.A.baseYtUrl+"player_204",e);cB(a,c,d)}}; var gC=function(a){a.app.Oa("cardstatechange",Oy(a)&&CH(a)?1:0)}; var Oy=function(a){return(a=qH(a.app.C,"iv-module"))?kF(a):!1}; var CH=function(a){return(a=qH(a.app.C,"iv-module"))?lF(a):!1}; var DH=function(a,b,c){(a=qH(a.app.C,"iv-module"))&&nF(a,b,c)}; var rz=function(a,b){a.app.Oa("onFrescaStateChange",b);var c=oq(a.app);if(c&&b&&c.B){var c=c.B.B,d=b.hasActiveStream;OA(c,XA(c.o),"stream",[d?"A":"I"])}}; var EH=function(a){return(a=qH(a.app.C,"fresca"))?!!a.D&&a.D.C.B:!1}; var FH=function(a){var b=oq(a.app,1);if(!b)return!1;var c=b.getVideoData();return bx(c)&&!fx(c)&&2!=a.getPresentingPlayerType()&&(!GH(b)||3==a.getPresentingPlayerType())}; var HH=function(a){return a.app.da.play_pause||2==a.getPresentingPlayerType()?!0:!GH(oq(a.app,1))}; var IH=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=oq(d,a))c.F.fh.apply(c.F,b),a&&d.getPresentingPlayerType()!=a||pq(d,"cuerangesremoved",b)}; var JH=function(a,b,c){a.app.R("progresssync",b,c)}; var Uq=function(a,b,c){a=LE(a).element;var d=Ab(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1}); 0>d&&(d=-(d+1));pf(a,b,d);b.setAttribute("data-layer",c)}; var KH=function(a){a=a.fmt_list;if(!a)return{};var b=[];E(a,function(a){a.itag&&(b[a.itag.toString()]=!0)}); return b}; var LH=function(a,b,c){if(!a)return null;var d=b.docid;b=KH(b);return d&&b?MH(a,d,b,c):null}; var MH=function(a,b,c,d){d=O(d.split(","),oj);if(!$d(d,function(a){return!!c[a.itag]}).length)return null; var e=Lg(a)||"",f=Mg(a);return O(d,function(a){if(c[a.itag]){var d=ch(bh(qh(a.url),e),f),m=Ig(a.url),d=mh(mh(d,"orig_host",Hg(m[1],m[2],m[3],m[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}return Sg(a)}).join(",")}; var NH=function(a,b,c){var d=OH(b);d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),Bj(a,{format:"JSON",method:"GET",timeout:2E3,kb:function(a,b){null==b&&(b={});b.status="success";c(b)}, onError:function(){c({status:"error"})}, Vd:function(){var a=OH(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})}; var OH=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null}; var PH=function(a){aq("/gen_204?"+a,void 0)}; var QH=function(a){mq.call(this,a);this.H=this.qa="spacecast";this.A=null}; var RH=function(a){return a.getVideoData().spacecastModule?new QH(a):null}; var SH=function(){Gi({YTP_TRANSLATE_MENU_ITEM:"\u7ffb\u8b6f\u5b57\u5e55",YTP_CONTRIBUTE_MENU_ITEM:"\u65b0\u589e\u5b57\u5e55",YTP_ASR_SETTINGS_LABEL:"\u81ea\u52d5\u7522\u751f\u7684\u5b57\u5e55",YTP_LANGUAGE_OFF:"\u95dc\u9589",YTP_FONT_FAMILY:"\u5b57\u578b\u7cfb\u5217",YTP_FONT_SIZE:"\u5b57\u578b\u5927\u5c0f",YTP_FONT_COLOR:"\u5b57\u578b\u984f\u8272",YTP_FONT_OPACITY:"\u5b57\u578b\u900f\u660e\u5ea6",YTP_BACKGROUND_COLOR:"\u80cc\u666f\u984f\u8272",YTP_BACKGROUND_OPACITY:"\u80cc\u666f\u900f\u660e\u5ea6", YTP_WINDOW_COLOR:"\u8996\u7a97\u984f\u8272",YTP_WINDOW_OPACITY:"\u8996\u7a97\u900f\u660e\u5ea6",YTP_COLOR_WHITE:"\u767d\u8272",YTP_COLOR_YELLOW:"\u9ec3\u8272",YTP_COLOR_GREEN:"\u7da0\u8272",YTP_COLOR_CYAN:"\u9752\u8272",YTP_COLOR_BLUE:"\u85cd\u8272",YTP_COLOR_MAGENTA:"\u6d0b\u7d05\u8272",YTP_COLOR_RED:"\u7d05\u8272",YTP_COLOR_BLACK:"\u9ed1\u8272",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif", YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"\u5b57\u5143\u908a\u7de3\u6a23\u5f0f",YTP_EDGE_STYLE_NONE:"\u7121",YTP_EDGE_STYLE_RAISED:"\u6d6e\u51f8",YTP_EDGE_STYLE_DEPRESSED:"\u5167\u51f9",YTP_EDGE_STYLE_OUTLINE:"\u5916\u6846",YTP_EDGE_STYLE_DROP_SHADOW:"\u6295\u5c04\u9670\u5f71",YTP_CLICK_FOR_SETTINGS:"\u6309\u4e00\u4e0b $GEAR_ICON \u9032\u5165\u8a2d\u5b9a"})}; var TH=function(a,b){this.L="";this.C=this.A=this.J=this.o=this.F=null;this.type=0;this.id=a;this.Ha={};qa(this.Ha,UH);b?qa(this.Ha,b):qa(this.Ha,VH);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.o=M("div",{id:"caption-window-"+this.id,"class":c});this.C=M("span",{"class":"captions-text",style:"visibility: hidden"});Af(this.C,"C");this.A=M("span",{"class":"captions-text",tabindex:7050,"aria-live":"assertive"});this.J=M("div",{"class":"caption-window-transform"});this.J.appendChild(this.A); this.o.appendChild(this.J);this.M=1}; var WH=function(a){Tf(a.o,a.Ha.leftPercentage+"%",a.Ha.topPercentage+"%");for(var b=0;8>=b;b++)Zd(a.o,"anchor-point-"+b);I(a.o,"anchor-point-"+a.Ha.anchorPoint)}; var XH=function(a){if(!a)return a;if(-1==a.indexOf("\n"))return"&nbsp;"+a+"&nbsp;";a=a.split("\n");for(var b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")}; var YH=function(){this.A=[];this.o=[]}; var ZH=function(a,b,c,d,e,f,k){iq.call(this,a,a+b,{priority:c});this.D=d;this.A=e;this.G=f||!1;this.H=k||null}; var $H=function(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=(0,window.parseInt)(a.getAttribute("w"),10)||0;a=!!a.getAttribute("append");return new ZH(c,d,a?6:5,e,b,a)}; var aI=function(a,b,c,d,e,f,k){iq.call(this,a,a+b,{priority:c});this.K=!1;this.id=d;this.params=e||{};this.G=f||null;this.H=k||null;this.A="";this.D=!1;bI(this)}; var cI=function(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.D?1:0}; var dI=function(){return new aI(0,0x8000000000000,0,0,VH)}; var bI=function(a){a.G&&qa(a.params,eI(a.G));a.H&&qa(a.params,eI(a.H))}; var fI=function(a){YH.call(this);this.o.push(dI());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=$H(a[b]);this.A.push(d)}}; var gI=function(a){YH.call(this);this.B={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=(0,window.parseInt)(b.getAttribute("id"),10);a:{var d=b,e=this.B[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e?e.K=!0:e=dI();var f={};qa(f,e?e.params: VH);d.getAttribute("id")&&(f.id=d.getAttribute("id"));d.getAttribute("op")&&(f.operation=d.getAttribute("op"));d.getAttribute("rc")&&(f.rowCount=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.colCount=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(f.leftPercentage=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.topPercentage=(0,window.parseInt)(d.getAttribute("av"), 10));d.getAttribute("id")&&(f.id=(0,window.parseInt)(d.getAttribute("id"),10)||0);d.getAttribute("vs")&&(f.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),10));d.getAttribute("pd")&&(f.textPrintDirection=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.textPrintDirection=0));d.getAttribute("bc")&&(f.backgroundColor=(0,window.parseInt)(d.getAttribute("bc"),16));d.getAttribute("bo")&&(f.backgroundOpacity=(0,window.parseInt)(d.getAttribute("bo"), 10)/100);d.getAttribute("fc")&&(f.color=(0,window.parseInt)(d.getAttribute("fc"),16));d.getAttribute("sd")&&(f.textScrollDirection=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||0x8000000000000;d=(0,window.parseInt)(d.getAttribute("id"),10)||0;b=new aI(b,e,0,d,f)}else b=null}this.B[c]=b;this.o.push(b);break;case "text":c=$H(a),this.A.push(c),b=c.D,this.B[b]&&(b=this.B[b],c=c.A,""!=b.A&&(b.D=!0),b.A+=c)}a= a.nextSibling}0==this.o.length&&this.o.push(dI())}; var hI=function(a){this.A=a||null;this.o={}}; var iI=function(a,b,c){var d=a.o[b];if(void 0!=d)return d;if(a.A&&(void 0==c||c))return iI(a.A,b)}; var jI=function(a,b,c){void 0!=c&&(a.o[b]=c)}; var kI=function(a,b,c){void 0!=c&&(a.o[b]=c)}; var eI=function(a){var b=a.A?eI(a.A):{};qa(b,a.o);return b}; var lI=function(a){YH.call(this);var b={Pg:{},nm:{},pm:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var f=a[e];switch(f.tagName){case "head":c=f;break;case "body":d=f}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var f=b,k=mI(e,"p"),l=void 0;k&&f.Pg[k]&&(l=f.Pg[k]);f=new hI(l);jI(f,"id",mI(e,"id"));k=nI(e,"b");void 0!=k&&(f.o.bold=k);k=nI(e,"i");void 0!=k&&(f.o.italic=k);k=nI(e,"u");void 0!=k&&(f.o.underline=k);jI(f,"charEdgeStyle",oI(e,"et"));jI(f, "offset",oI(e,"of"));jI(f,"textType",oI(e,"tt"));kI(f,"background",pI(e,"bc"));kI(f,"charEdgeColor",pI(e,"ec"));kI(f,"color",pI(e,"fc"));k=oI(e,"fs");void 0!=k&&0!=k&&jI(f,"fontFamily",k);k=mI(e,"sz");void 0!=k&&jI(f,"fontSizeIncrement",k/100-1);k=mI(e,"bo");void 0!=k&&jI(f,"backgroundOpacity",k/255);e=mI(e,"fo");void 0!=e&&jI(f,"textOpacity",e/255);e=iI(f,"id",!1);b.Pg[e]=f;break;case "ws":f=qI(b,e);e=iI(f,"id",!1);b.pm[e]=f;break;case "wp":f=rI(b,e),e=iI(f,"id",!1),b.nm[e]=f}if(d)for(c={},a=-1, d=d.childNodes,e=0;e<d.length;e++)switch(f=d[e],f.tagName){case "w":k=sI(b,f);if(f=c[k.id])f.end=k.start;c[k.id]=k;this.o.push(k);break;case "p":for(var k=b,l=f,m=[],p=mI(l,"t")||0,v=mI(l,"d")||0,t=mI(l,"w")||0,y=!!nI(l,"a"),x=y?6:5,L=mI(l,"p"),L=L?k.Pg[L]:null,ha=l.childNodes,K=0;K<ha.length;K++){var Y=ha[K];if("s"==Y.tagName){0<K&&(y=!0);var Nb;Nb=k;var xd=Y,Y=p,pp=v,qp=t,VB=y,WB=x,rp=L,zu=xd.textContent?xa(xd.textContent):"",Rl=mI(xd,"p"),rp=Rl?Nb.Pg[Rl]:rp;Nb=mI(xd,"t")||0;Nb=new ZH(Y+Nb,pp-Nb, WB,qp,zu,VB,rp)}else Nb=l.textContent?xa(l.textContent):"",Nb=new ZH(p,v,x,t,Nb,y,L);m.push(Nb)}l=m;if(0<l.length)for(k=c[l[0].D],k||(k=sI(b,f),k.id=a--,this.o.push(k)),f=0;f<l.length;f++)m=l[f],l[f].D=k.id,p=k,v=m.A,""!=p.A&&(p.D=!0),p.A+=v,this.A.push(m)}}; var mI=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)}; var nI=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}; var oI=function(a,b){var c=mI(a,b);if(void 0!=c)return c}; var pI=function(a,b){var c=a.getAttribute(b);if(null!=c)return tI.test(c),c}; var qI=function(a,b){var c=mI(b,"ws"),d;c&&a.pm[c]&&(d=a.pm[c]);c=new hI(d);jI(c,"id",mI(b,"id"));jI(c,"modeHint",oI(b,"mh"));jI(c,"textAlign",mI(b,"ju"));jI(c,"textPrintDirection",oI(b,"pd"));jI(c,"textScrollDirection",oI(b,"sd"));jI(c,"windowBorderType",oI(b,"et"));kI(c,"windowBorderColor",pI(b,"wbc"));kI(c,"windowColor",pI(b,"wfc"));d=mI(b,"wfo");void 0!=d&&jI(c,"windowOpacity",d/255);return c}; var rI=function(a,b){var c=mI(b,"wp"),d;c&&a.nm[c]&&(d=a.nm[c]);c=new hI(d);jI(c,"anchorPoint",oI(b,"ap"));jI(c,"colCount",mI(b,"cc"));jI(c,"id",mI(b,"id"));jI(c,"leftPercentage",mI(b,"ah"));jI(c,"rowCount",mI(b,"rc"));jI(c,"topPercentage",mI(b,"av"));return c}; var sI=function(a,b){var c=mI(b,"id")||0,d;d=mI(b,"t");var e=mI(b,"d")||0x8000000000000,f=rI(a,b),k=qI(a,b);return new aI(d,e,0,c,null,f,k)}; var uI=function(a,b){YH.call(this);this.o.push(dI());for(var c=a.split(vI),d=1;d<c.length;d++){var e;e=c[d];var f=b;if(""==e||0==e.search(wI))e=null;else{var k=e.split(xI),l=0,m=k[l++].match(yI);m||(m=k[l++].match(yI));m?(e=zI(m[1],f)||0,f=zI(m[3],f)||0,k=k.slice(l).join("\n"),e=new ZH(e,f-e,5,0,k)):e=null}e&&this.A.push(e)}}; var zI=function(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+(0,window.parseFloat)(c[e]);return 1E3*d+b}; var AI=function(a,b){this.o=[];this.A=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new uI(a,b||0):(c=vz(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new lI(c):new gI(c):new fI(c):null:null;c&&(this.A=c.o,this.o=c.A)}; var BI=function(){this.B=[];this.o=[];this.A=-1}; var CI=function(a,b){return b?a.o.concat(a.B):a.o}; var DI=function(a,b){switch(b.B){case "asr":var c=a.B;db(c,A(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.A)a.A=a.o.length;c=a.o;db(c,A(b.equals,b))||c.push(b)}}; var EI=function(a,b){var c=eb(a.o,A(b.equals,b));-1!=c&&(a.A=c)}; var FI=function(a){this.Lo=!!a;this.o=new BI;this.D=[]}; var GI=function(a,b){return db(CI(a.o,!0),function(a){return a.toString()==b})}; var HI=function(a){FI.call(this,a.Nh);this.A=null;this.C=void 0;this.B=null;this.D=a.captionTranslationLanguages}; var II=function(a,b){var c=b.J,d={};if(a.C||b.D)d.fmt=a.C||"srv"+b.D;b.A&&(d.tlang=b.A.languageCode);return rj(c,d)}; var JI=function(){this.ea=this.da=!1;this.S=1;this.C=20971520;this.D=8388608;this.B=window.NaN;this.K=3145728;this.L=62914560;this.M=10485760;this.H=window.NaN;this.ia=2;this.Ra=25;this.F=2097152;this.J=!1;this.G=1800;this.o=1.15;this.A=1.05;this.Da=!0;this.liveChunkReadahead=3;this.Ca=mt("xboxone")||pt()||lt();this.aa=25;this.V=!1;this.za=Fl&&!0;this.Ea=!0;this.Z=this.sa=this.Y=!1;this.fa=this.O=0;this.ha=.8;this.ka=this.ma=this.U=!1}; var KI=function(a,b){1440<b&&!a.da&&(a.C=36700160,a.D=5242880,a.K=10485760,a.F=4194304,a.da=!0);2160<b&&!a.ea&&(a.C=104857600,a.ea=!0)}; var LI=function(){this.ua=[]}; var MI=function(a,b){F.call(this);this.A=b;this.H=new LI;this.C=!0;this.J=this.D=this.F=this.G=this.o=null;this.B=0}; var NI=function(a,b){a.G=b}; var OI=function(a){var b;if(b=!a.C&&null!==a.o)b=a.o,b=b.o.lh(b);return b&&!a.D&&!(a.o&&30<a.o.startTime-a.A.getCurrentTime())}; var PI=function(a){a.isDisposed();var b;b=a.o;b=fs(b.o,b);if(!a.H.contains(b.o[0].C)){var c=Pr(cs(b));a.D=Bj(c,{format:"RAW",Rb:A(a.K,a),withCredentials:!0});a.F=b;var c=a.H,d=a.F.o[0].C,e=xb(c.ua,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ua[e-1]&&e<c.ua.length&&1==c.ua[e]-d?(pb(c.ua,e),pb(c.ua,e-1)):0<e&&1==d-c.ua[e-1]?c.ua[e-1]=d:e<c.ua.length&&1==c.ua[e]-d?c.ua[e]=d:(ub(c.ua,e,0,d),ub(c.ua,e+1,0,d)))}a.o=cb(b.o)}; var QI=function(a){a.B=Ci(A(function(){OI(this)&&PI(this)},a),1E3); OI(a)&&PI(a)}; var RI=function(a,b){FI.call(this);this.B=a;this.A=new MI(new JI,b)}; var SI=function(a,b){TH.call(this,a,b);this.type=1;this.H=this.K="";this.G=!1;this.B=null;this.D=[];this.A.style.display="block";this.A.style.padding="0";var c=this.A;Zd(c,"captions-text");I(c,"caption-painton-text-rows")}; var TI=function(a){return a.D.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}; var UI=function(a,b){TH.call(this,a,b);this.type=2;this.S=32;this.D=0;this.H=null;this.F=[];this.G=[];this.B=[];this.H=new Qd(433);this.H.stop();Nl(this.H,"tick",A(this.K,this))}; var VI=function(a){if(!WI(a))if(a.D>=a.F.length)XI(a);else{var b=a.B.length-1;0>b&&(a.G.push(0),a.D=0,a.B.push(""),b=0);for(var c=a.F.length,d=a.D;d<c;d++){var e=a.F[d];if("\n"==e.A){a.D++;a.G[b]++;break}if(e.G||0==a.B[b].length)a.B[b]+=e.A,a.D++,a.G[b]++;else break}XI(a);d<c&&!WI(a)&&(b=a.bi(),I(a.A,"caption-rollup"),a.o.style.overflow="hidden",a.A.style.top=-b+"px",a.H.start())}}; var WI=function(a){return a.H.enabled||Xd(a.A,"caption-rollup")}; var XI=function(a){if(!WI(a)){for(;a.B.length<a.Ha.rowCount;)a.B.unshift(""),a.G.unshift(0);for(;a.B.length>a.Ha.rowCount;){a.B.shift();var b=a.G.shift();0<b&&(a.D-=b,a.F.splice(0,b))}a.$d(XH(a.B.join("\n")))}}; var YI=function(a){a.C.style.fontFamily=a.A.style.fontFamily;a.C.style.fontSize=a.A.style.fontSize;a.A.appendChild(a.C);Af(a.C,"\u2014");var b=a.C.offsetWidth;Af(a.C,String.fromCharCode(160));b=2*a.C.offsetWidth+b*a.S;a.A.removeChild(a.C);return b}; var ZI=function(a,b,c,d){FI.call(this,d);c||(c=qj(a).hl||"",c=c.split("_").join("-"));this.B=rj(a,{hl:c});this.C=b;this.F={};this.A=null}; var $I=function(a,b){var c=a.B,d={v:a.C,type:"track",lang:b.o,name:b.C,kind:b.B,fmt:b.D};b.A&&(d.tlang=b.A.languageCode);return c=rj(c,d)}; var aJ=function(a){mq.call(this,a,"subtitlesModuleData");this.qa="captions";this.H="cc";SH();this.ea=!0;this.da=this.O=this.fa=!1;this.X=a.W();this.D=null;this.M=LE(a);this.C={};this.U=null;this.aa=[];this.L={};this.Z={};this.ma=this.K=this.ha=!1;this.Y=new TH(99,bJ);this.A=this.B=this.F=null;this.sa=!1;this.ka=new Ud(this.am,0,this);G(this,this.ka);this.ia=new Ud(this.WB,2E3,this);G(this,this.ia);this.subscribe("onResize",A(this.vp,this));this.subscribe("onCaptionsToggle",A(this.$A,this));this.subscribe("onPlaybackAudioChange", A(this.Ay,this));this.subscribe("onCaptionsDisplaySettings",A(this.Ll,this))}; var cJ=function(a){return"3"!=a.X.B?!1:!!a.M.A.textTracks}; var dJ=function(a,b,c,d,e){var f=a.C[b];z(f)&&(a.C[c]=d.indexOf(f),-1==a.C[c]&&(a.C[c]=e),delete a.C[b])}; var eJ=function(a,b){if(b&&a.D.captionTracks.length){var c=a.o.$f().Cn;if(2==c||3==c)return!0}if(1==a.X.da||1==a.D.oe||"alwayson"==a.D.Tc("yt:cc")||cJ(a))return!0;c=sq(a,"module-enabled");return null!=c?!!c:"on"==a.D.Tc("yt:cc")}; var fJ=function(a){a.A&&a.A==a.B.Ld()&&gJ(a);a.B.rl(A(a.Zp,a),!0,cJ(a)?"vtt":void 0,a.o.$f())}; var hJ=function(a){a.O=!0;cJ(a)||(iJ(a),a.vp())}; var jJ=function(a){a.B.Ld()&&kJ(a,a.B.Ld())}; var lJ=function(a){var b=[];Ob(a.L,function(a){a instanceof SI&&b.push(a)}); if(0!=b.length){b.sort(function(a,b){return b.Ha.Zl-a.Ha.Zl}); var c=mJ(a.M).height,d=b[0].Ha.Zl;E(b,function(a){a.Ha.Zl=d;var b=Math.round(a.Ha.rq*a.bi());d-=Math.round(b/c*100);a.Xd()},a)}}; var gJ=function(a){a.A&&(a.A=null,nq(a),a.aa=[],a.A=null,a.am(),a.B.$l())}; var kJ=function(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.K=c),a.G?(a.A=b,nJ(a),a.Hl("control_subtitles_set_track",Qt(b)),a.O||hJ(a)):(a.B.ql(b,A(a.$p,a)),a.fa=!0))}; var iJ=function(a,b){var c=a.M.Ma();Ob(a.L,function(a){a.wd(this.C,c)},a); a.F&&a.F.wd(a.C,c);a.Y.wd(a.C,c);a.am();n(b)&&!b||a.Ll()}; var oJ=function(a){if(a.loaded){var b=a.ia;b.isActive()&&Vd(b);tq(a,"module-enabled",!1);(b=oq(a.o.app))&&b.B&&DA(b.B.A);gJ(a);a.K=!1;a.G?(nJ(a),a.Hl("control_subtitles_set_track")):a.R("publish_external_event","captionschanged",{});jJ(a)}}; var pJ=function(a){return aJ.prototype.Va(a)?new aJ(a):null}; var qJ=function(a,b){if(b&&!a.F){a.F=new TH(98,rJ);a.U.element.appendChild(a.F.o);var c=a.F,d=P("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.$d(XH(d)));a.F.wd(a.C,a.M.Ma())}else!b&&a.F&&(qf(a.F.o),a.F=null)}; var sJ=function(a,b){if(b)if(dc(b,"reset"))delete a.C,a.C=ec(tJ),a.Ll(),iJ(a);else{if(!uJ){var c={};c.color=a.ek;c.textOpacity=a.vl;c.background=a.ek;c.backgroundOpacity=a.vl;c.windowColor=a.ek;c.windowOpacity=a.vl;c.charEdgeStyle=a.ov;c.fontFamilyOption=a.Wv;c.fontSizeIncrement=a.Xv;uJ=c}var c=uJ,d;for(d in c)switch(d){case "fontFamilyOption":a.C.fontFamily=c[d](b[d],a.C.fontFamily);break;default:a.C[d]=c[d](b[d],a.C[d])}iJ(a,DG(a.X))}}; var nJ=function(a){var b={};a.A&&(b=Qt(a.A));a.R("publish_external_event","captionschanged",b)}; var vJ=function(a){mq.call(this,a);this.qa="ypc_license_checker";this.H="ypc_license";this.F=!1;this.C=0;this.D=!1;this.A=window.NaN;vu();this.B=null}; var wJ=function(a){return ex(a.getVideoData(),"ypc_license_checker_module")}; var xJ=function(a){return wJ(a)?new vJ(a):null}; var yJ=function(a){var b=a.o.getVideoData();return Yw(b)?!!a.B:!!b.heartbeatToken}; var zJ=function(a,b){if(!a.A&&a.F&&yJ(a)){var c=a.o.getVideoData(),d=a.o.W();if(Yw(c)||!DG(d)||d.experiments.na("tv_player_heartbeats"))c=b,void 0==c&&(c=a.D?a.B?1E3*a.B.interval:a.o.getVideoData().heartbeatInterval||6E4:1E3),a.A=Ai(A(a.aC,a),c)}}; var AJ=function(a,b){if(a.A){a.log({errorType:b});a.A=window.NaN;a.C++;var c=a.o.getVideoData();(c.heartbeatSoftFail?0:a.C>=(a.B?a.B.o:c.heartbeatRetries||5))?(c=P("YTP_ERROR_LICENSE"),BJ(a.o.app.o,"heartbeat",c,void 0)):zJ(a)}}; var CJ=function(a){try{return be(a)}catch(b){return null}}; var DJ=function(a){a.C=0;a.A&&(Di(a.A),a.A=window.NaN);a.D=!1}; var EJ=function(a){mq.call(this,a);this.qa="creatorendscreen";this.K=0;this.F=null;this.A=new Q(["div",this.qa]);this.B=new Q(["div","creatorendscreen-darken-overlay"]);this.C=null;this.D={};this.subscribe("onStateChange",this.dE,this);this.subscribe("onResize",this.wC,this)}; var FJ=function(a){return GJ(a)?new EJ(a):null}; var GJ=function(a){return HJ(a.W().o)?!0:ex(a.getVideoData(),"iv_endscreen_url")}; var HJ=function(a){return"creator-endscreen-editor"===a}; var IJ=function(a,b){of(a.A.element);nq(a);a.D={};if(b&&b.elements&&b.elements.length){a.B.o(a.A.element);for(var c=a.o.Hm(),c=c.width/c.height,d=[],e=0;e<b.elements.length;e++){var f=b.elements[e],k=JJ(f,c);k&&(a.D[f.id]=k,k.o(a.A.element),Nc(k.element,"mouseenter",A(a.bE,a)),Nc(k.element,"mouseleave",A(a.cE,a)),f=new iq((0,window.parseInt)(f.startMs,10),(0,window.parseInt)(f.endMs,10),{id:f.id}),f.o=a.qa,d.push(f))}a.fb(d)}}; var JJ=function(a,b){function c(a){return Math.round(1E6*a)/1E4+"%"} var d={VIDEO:KJ,PLAYLIST:LJ,CHANNEL:MJ,WEBSITE:NJ},d=d[a.type]?d[a.type](a):null;if(!d)return null;var e=a.width*b/a.aspectRatio;eg(d.element,c(a.width),c(e));Tf(d.element,c(a.left),c(a.top+1));I(d.element,[["creatorendscreen-top-left-quad","creatorendscreen-top-right-quad"],["creatorendscreen-bottom-left-quad","creatorendscreen-bottom-right-quad"]][Math.round(a.top+e/2)][Math.round(a.left+a.width/2)]);return d}; var KJ=function(a){return new Q(["div",["creatorendscreen-element","creatorendscreen-video"],["div","creatorendscreen-covering-image",{style:"background-image: url('"+a.imageUrl+"')"}],["div","creatorendscreen-covering-shadow-top"],["div","creatorendscreen-covering-shadow-bottom"],["a","creatorendscreen-covering-overlay",{href:a.targetUrl},["div","creatorendscreen-video-title",a.title],["div","creatorendscreen-video-metadata",a.metadata],["div","creatorendscreen-video-duration",a.videoDuration]]])}; var LJ=function(a){return new Q(["div",["creatorendscreen-element","creatorendscreen-playlist"],["div","creatorendscreen-covering-image",{style:"background-image: url('"+a.imageUrl+"')"}],["div","creatorendscreen-covering-shadow-top"],["a","creatorendscreen-covering-overlay",{href:a.targetUrl},["div","creatorendscreen-playlist-title",a.title],["div","creatorendscreen-playlist-metadata",a.metadata],["div","creatorendscreen-playlist-count",["div","creatorendscreen-playlist-icon"],["div","creatorendscreen-playlist-count-text", a.playlistLength]]]])}; var MJ=function(a){return new Q(["div",["creatorendscreen-element","creatorendscreen-channel"],["div","creatorendscreen-expanding-overlay",["div","creatorendscreen-expanding-overlay-content",["div","creatorendscreen-channel-title",a.title],["a","creatorendscreen-channel-subscribe",a.callToAction,{href:a.targetUrl,target:"_blank"}]]],["div","creatorendscreen-expanding-image",{style:"background-image: url('"+a.imageUrl+"')"}],["span","creatorendscreen-covering-icon"]])}; var NJ=function(a){var b=window.document.createElement("a");b.href=a.targetUrl;return new Q(["div",["creatorendscreen-element","creatorendscreen-website"],["div","creatorendscreen-expanding-overlay",["div","creatorendscreen-expanding-overlay-content",["div","creatorendscreen-website-title",a.title],["div","creatorendscreen-website-domain",b.hostname],["a","creatorendscreen-website-goto",a.callToAction,{href:a.targetUrl,target:"_blank"}]]],["div","creatorendscreen-expanding-image",{style:'background-image: url("'+ a.imageUrl+'")'}],["span","creatorendscreen-covering-icon"]])}; var OJ=function(a){mq.call(this,a);this.qa="ypc_clickwrap";this.H="ypc-clickwrap";Gi({YTP_YPC_START_RENTAL_HEADER:"\u662f\u5426\u8981\u958b\u59cb\u79df\u501f\uff1f",YTP_YPC_START_RENTAL_BUTTON:"\u958b\u59cb\u79df\u671f"});this.B=this.A=null}; var PJ=function(a){return ex(a.getVideoData(),"ypc_clickwrap_module")?new OJ(a):null}; var QJ=function(){return[RE.B,FJ,dy,sz,RH,pJ,YG.A,PJ,xJ,eH]}; var RJ=function(a){this.D=Math.exp(Math.log(.5)/a);this.A=this.C=0}; var SJ=function(a){this.A=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1}; var TJ=function(a,b){a.o=(a.o+1)%a.A.length;a.A[a.o]=b}; var UJ=function(a,b,c){this.J=0;this.G=a;this.D=b||.5;this.F=c||0;this.H="index";this.A=0;this.C=[]}; var VJ=function(a,b){WJ(a,"value");var c=b*a.A,d=0,e=window.NaN;a.C.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0}); return e}; var WJ=function(a,b){a.H!=b&&(a.H=b,Db(a.C,b))}; var XJ=function(a){this.C=a;this.A=[]}; var YJ=function(a){this.D=a;this.F=this.G=0;this.o=-1;this.K=new SJ(100);this.J=0;this.L=$s();this.B=new UJ(4,.6);this.C=new RJ(4);this.H=new XJ(17);this.D.B?this.A=new RJ(17):this.A=new UJ(17,.5,.1);a=ij("yt-player-bandwidth")||{};this.A.o(this.D.A,0<a.byterate?a.byterate:this.D.o);0<a.delay&&this.B.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.o(1,+a.tailDelay);this.o=$s()}; var ZJ=function(a,b,c){b=Math.max(b,.05);a.A.o(b,c/b);$J(a)}; var aK=function(a,b,c){(0,window.isNaN)(c)||(a.F+=c);(0,window.isNaN)(b)||(a.G+=b);a.H.o(b,c/b);$J(a)}; var bK=function(a){a=a.B.B();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)}; var cK=function(a){return a.C.B()||0}; var dK=function(a){var b=a.A.B(),b=0<b?b:1;a=a.H.B();a=0<a?a:1;return a>2*b?(b+a)/2:b}; var eK=function(a){var b={};b.delay=bK(a);b.tailDelay=cK(a);b.byterate=dK(a);return b}; var fK=function(a){-1<a.o&&3E4<$s()-a.o&&(LA(eK(a)),a.o=$s())}; var $J=function(a){var b=$s();a.L=b;500<b-a.J&&(TJ(a.K,1/(1/dK(a)+cK(a))),a.J=b)}; var gK=function(a){return 4E3<=$s()-a.L}; var hK=function(){this.o=13E4;this.A=.5;this.B=!1}; var iK=function(){F.call(this);this.o=[];this.F={};this.B={};this.C={};this.A=this.G=null;this.D=[];this.H=null}; var jK=function(a){a.o=$d(a.o,function(a){try{a.destroy()}catch(c){Fi(c)}return!1},a)}; var kK=function(a,b,c){lK(a);a.H=b;a.D=sb(c);E(a.o,function(a){0<=jb(c,a.qa)&&(a.G=b,a.Ii(!!a.G))})}; var lK=function(a){E(a.D,function(a){if(a=qH(this,a))a.G=null,a.Ii(!1)},a); a.H=null;a.D=[]}; var mK=function(a){a=qH(a,"iv-module");return!(!a||!a.loaded)}; var nK=function(a,b){if(!b)return O(a.o,function(a){return a.qa}); var c=qH(a,b);return c?c.Ue():[]}; var qH=function(a,b){return db(a.o,function(a){return a.qa==b})}; var oK=function(a){var b={};E(a.o,function(a){qa(b,a.mh())}); return b}; var pK=function(a,b,c){this.C=b;this.o=c;this.D=a;this.A=!0}; var qK=function(a,b){jc.call(this,"adError");this.C=a;this.B=b?b:null}; var rK=function(a,b,c){jc.call(this,a);this.C=b;this.B=null!=c?c:null}; var sK=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=dc(b,e),f=f.toString();if(!C(D(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})}; var tK=function(a){this.o=a}; var uK=function(){var a=vK();return wK(a,"disableExperiments")}; var wK=function(a,b){if(Yb(a.o,b)){var c=a.o[b];if("boolean"==typeof c)return c}return!1}; var xK=function(a){if(Yb(a.o,"forceExperimentIds")){a=a.o.forceExperimentIds;var b=[],c=0;da(a)&&E(a,function(a){fa(a)&&(b[c++]=a)}); return b}return null}; var yK=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""}; var V=function(){return zK.G}; var vK=function(){var a=zK;if(null==a.D){var b={},c=lh(new N(ff().location.href));if(wh(c,"tcnfp"))try{b=be(c.get("tcnfp"))}catch(d){}a.D=new tK(b)}return a.D}; var AK=function(a,b,c,d){this.A=a;this.o=ke(c||0,0,1);this.B=null!=d?d:!0}; var BK=function(a){this.B=a;this.A=new wg;this.o=null}; var CK=function(a){var b=Math.random(),c=0,d=a.A.Ka();E(d,function(a){c+=a.o},a); var e=1<c?c:1;a.o=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].o,f/e>=b){a.o=d[k];break}}; var DK=function(){this.A=null!=r.G_testRunner;this.o=new wg;EK(this,31061770,.05);EK(this,31061771,.05);EK(this,31061772,.05);EK(this,31061773,.05);EK(this,41351082,.01);EK(this,41351083,.01);EK(this,41351016,.05);EK(this,41351017,.05);EK(this,41351018,.05);EK(this,41351019,.05);EK(this,41351072,.05);EK(this,41351073,.05);EK(this,41351074,.05);EK(this,41351075,.05);EK(this,41351088,.01);EK(this,41351089,.01);EK(this,136961001,.01);EK(this,136961002,.01);EK(this,41351032,.05);EK(this,41351033,.05); FK(this);var a;a=vK();a=xK(a);null!=a&&(this.A=!1,GK(this,a.map(String)))}; var HK=function(){IK||(IK=new DK);return IK}; var JK=function(){var a=HK();E(a.o.Na(),function(a){ta(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)}; var EK=function(a,b,c){C(D("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new AK(b,0,c),KK(a,"GvnExternalLayer").A.set(b.getId(),b))}; var FK=function(a){uK()||E(a.o.Ka(),function(a){CK(a)},a)}; var GK=function(a,b,c){E(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||C(D(a)))){var f=null!=c?c:!0;KK(this,a).o=new AK(b,0,0,f)}},a)}; var LK=function(a,b){return a.A?!1:Ih(a.o.Ka(),function(a){return!!a.o&&a.o.getId()==b})}; var MK=function(a){return HK().A?!1:Ih(a,function(a){return LK(HK(),a)})}; var NK=function(a){if(a.A)return"";var b=[];E(a.o.Ka(),function(a){(a=a.o)&&a.B&&b.push(a.getId())}); return b.sort().join(",")}; var KK=function(a,b){var c=a.o.get(b);null==c&&(c=new BK(b),a.o.set(b,c));return c}; var OK=function(){return MK([9418778,9417893,9417894,9417895,9419817])}; var PK=function(a){return null!=a?QK(RK,a):!1}; var QK=function(a,b){try{var c=hh(new N(b)),c=c.replace(/^www./i,"");return Ih(a,function(a){return SK(a,c)})}catch(d){return!1}}; var SK=function(a,b){if(C(D(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b}; var TK=function(a){if(UK(a,VK))return a;if("https:"==window.location.protocol&&(UK(a,WK)||V())){var b=new N(a);if("https"==b.C)return a;ah(b,"https");return b.toString()}return a}; var UK=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}; var XK=function(a){window.open(TK(a),"_blank")}; var YK=function(a,b,c){null!=a?(mh(a,"label",b),null!=c&&mh(a,"value",c.join(";")),a=a.toString()):a="";ZK(a)}; var ZK=function(a,b,c,d,e,f){null!=a&&null!=b&&(a=sK(a,b));try{if(null!=c){b=a;var k=(c||{}).viewability||"na";if(C(D(k)))a=b;else{var l=new N(b);wh(l.o,"label")?(mh(l,"acvw",k),a=l.toString().replace(/%2C/g,",")):a=b}}null!=e&&(a=$K(a,e));a:{c=a;var m=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=m||!f&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(f=f||window.Goog_AdSense_Lidar_getUrlSignalsArray(),m={},e=0;e<f.length;++e){m.URL_SIGNALS=f[e];var p=sK(c,m);if(2048>p.length){a=p;break a}}a= c}}catch(t){}try{a=TK(a);var v=!V()||LK(HK(),41351089);null!=d&&d?aL.Eq(a,v):aL.Dq(a,v)}catch(t){}}; var bL=function(a,b){null!=a&&E(a,function(a){ZK(a,b)})}; var $K=function(a,b,c){if(C(D(b)))return a;var d=new N(a),e=d.A;return null!=e&&ua(e,".g.doubleclick.net")&&(c||wh(d.o,"label"))?(mh(d,"ged",b),d.toString()):a}; var cL=function(a,b){this.message=a;this.errorCode=b}; var dL=function(a,b,c){return eL("adLoadError",a,b||null,vb(arguments,2))}; var fL=function(a,b,c){return eL("adPlayError",a,b||null,vb(arguments,2))}; var gL=function(a,b,c,d,e){var f=a.apply(null,rb([c,d],vb(arguments,3)));b.$(new rK("log",null,f))}; var eL=function(a,b,c,d){if(c instanceof pK)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new pK(a,b,e);a.B=c;return a}; var hL=function(a,b,c,d){var e=fL.apply(null,rb([b,c],vb(arguments,3)));a.$(new qK(e))}; var iL=function(){return!jL()&&(nc("iPod")||nc("iPhone")||nc("Android")||nc("IEMobile"))}; var jL=function(){return nc("iPad")||nc("Android")&&!nc("Mobile")||nc("Silk")}; var kL=function(){return iL()||jL()}; var lL=function(){return mL&&!nL||La(oc,"iPod")}; var oL=function(){return lL()||nL}; var pL=function(a,b){if(null==qL[b]){var c;C(rL)&&(c=a.exec(oc))&&(rL=c[1]);(c=rL)?(c=c.replace(/_/g,"."),qL[b]=0<=Ra(c,b)):qL[b]=!1}return qL[b]}; var sL=function(){var a=oc;return a?La(a,"Nintendo WiiU"):!1}; var tL=function(){var a;(a=La(oc,"CrKey")||La(oc,"PlayStation")||La(oc,"Roku"))||(a=(a=oc)?La(a,"AppleTV")||La(a,"GoogleTV")||La(a,"HbbTV")||La(a,"NetCast.TV")||La(a,"Opera TV")||La(a,"POV_TV")||La(a,"SMART-TV")||La(a,"SmartTV"):!1);return a||La(oc,"Xbox")}; var uL=function(){return lL()||vL&&(!vL||!pL(wL,4))||!V()&&tL()?!1:!0}; var xL=function(){this.o=.01>Math.random();this.A=Math.floor(4503599627370496*Math.random())}; var yL=function(a,b,c,d){if(a.o||d){c=c||{};c.lid=b;b=NK(HK());C(D(b))||(c.e=b);c=zL(a,c);var e=new N("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){mh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a); a=AL();ah(e,a.C);ZK(e.toString())}}; var zL=function(a,b){b.id="";var c=AL();b.c=a.A;b.domain=c.A;return b}; var AL=function(){var a=ff(),b=window.document;return new N(a.parent==a?a.location.href:b.referrer)}; var BL=function(){}; var CL=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=H()-window.performance.timing[a],Math.round(a/1E3)):null}; var DL=function(){this.domLoading=CL("domLoading");this.domComplete=CL("domComplete");this.unloadEventStart=CL("unloadEventStart")}; var EL=function(a){var b={},c=new DL,d=null;null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+H()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b}; var FL=function(a){for(var b=[],c=a=ff(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b}; var GL=function(){this.o={};this.A=0}; var HL=function(a,b){this.D=a;this.B=!0;this.o=b}; var IL=function(a,b,c){HL.call(this,a,c);this.C=b;this.o=!!c}; var JL=function(a){HL.call(this,"sv",a);this.o=null==a?"1":"2"}; var KL=function(a,b){HL.call(this,a,b)}; var LL=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new KL("",new te(c,b,Number(a[3])-c,Number(a[2])-b))}return new KL("",new te(0,0,0,0))}; var ML=function(){NL||(NL=new GL);return NL}; var OL=function(a){var b=new te(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new te(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var f=a[d],k=Math.max(e.left,f.left),l=Math.min(e.left+e.width,f.left+f.width);if(k<=l){var m=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(m<=f){e.left=k;e.top=m;e.width=l-k;e.height=f-m;e=!0;break a}}e=!1}if(!e)return c}return b}; var PL=function(a,b){var c=a.getBoundingClientRect(),d=ag(a,b);return new te(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))}; var QL=function(a,b,c){if(b&&c){var d;a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new te(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;a.setItem(new HL("vp",d));d&&0<d?(e=ue(b),f=ue(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new IL("ct",512,e));d&&0<d?(e=ue(b),f=ue(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new IL("vb", 1024,e));d&&0<d?(e=ue(b),f=ue(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new IL("vl",2048,e));d&&0<d?(b=ue(b),c=ue(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new IL("vr",4096,c))}}; var RL=function(a){this.o=ic.apply(null,arguments);return this}; var SL=function(a,b){var c=dc(a.o,"eb",0);a.o.eb=c|b}; var TL=function(a,b){ea(a);UL();for(var c=b?VL:WL,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,p=m?a[e+2]:0,v=f>>2,f=(f&3)<<4|l>>4,l=(l&15)<<2|p>>6,p=p&63;m||(p=64,k||(l=64));d.push(c[v],c[f],c[l],c[p])}return d.join("")}; var XL=function(a){var b=[];YL(a,function(a){b.push(a)}); return b}; var YL=function(a,b){function c(){for(;e<a.length;){var b=a.charAt(e++),c=d[b];if(null!=c)return c;if(!C(b))throw Error("Unknown base64 encoding at char: "+b);}return null} UL();for(var d=ZL,e=0;;){var f=c(),k=c(),l=c(),m=c();if(null==m){if(null==f)break;m=64;l=null!=l?l:64;k=null!=k?k:0}b(f<<2|k>>4);64!=l&&(b(k<<4&240|l>>2),64!=m&&b(l<<6&192|m))}}; var UL=function(){if(!WL){WL={};ZL={};VL={};for(var a=0;65>a;a++)WL[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),ZL[WL[a]]=a,VL[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(ZL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}}; var $L=function(a,b){var c=0;Xb(ff(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=ML();d.o={};var f=new IL("ef",32,!0);f.B=!1;d.setItem(f);f=ff().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new IL("tv",64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=ff().top;try{l=!!m.location.href||""===m.location.href}catch(t){l=!1}if(l){var p=FL(e);k=p&&0!=p.length?"1":"0"}else k= "2"}catch(t){k="2"}d.setItem(new HL("is",k));p=l=ff().top;"2"==k&&(p=ff());m=PL(e,p);d.setItem(new KL("er",m));var v;try{v=p.document&&!p.document.body?null:cf(p||window)}catch(t){v=null}d.setItem(new JL(v));v?(p=Jf(Ue(p.document)),d.setItem(new IL("sp",16384,!!p)),v=p?new te(p.x,p.y,v.width,v.height):null):v=null;d.setItem(new KL("vi",v));if(v&&"1"==k){k=FL(e);e=[];for(p=0;p<k.length;p++)(f=PL(k[p],l))&&e.push(f);e.push(v);v=OL(e)}QL(d,m,v);d.A&&(k=Math.round(H()/1E3)-d.A,d.setItem(new HL("ts",k))); d.A=Math.round(H()/1E3)}else d=ML(),d.o={},d.A=Math.round(H()/1E3),d.setItem(new IL("ef",32,!1));this.B=d;this.o=new RL("ta",c,"ve",3);c&&SL(this.o,1);Xb(ff(),"ima","video","client","crossdomainTag")&&SL(this.o,4);Xb(ff(),"ima","video","client","sdkTag")&&SL(this.o,8);Xb(ff(),"ima","video","client","jsTag")&&SL(this.o,2);b&&dc(b,"fullscreen",!1)&&SL(this.o,16);this.A=d=null;if(c&&(c=Xb(ff(),"ima","video","client"),c.getEData)){this.A=c.getEData();if(c=Xb(ff(),"ima","video","client","getLastSnapshotFromTop"))if(k= c())this.A.extendWithDataFromTopIframe(k.buckets,k.tt,k.pd),c=this.B,d=k.er,k=k.vi,d&&k&&(d=LL(d).getValue(),k=LL(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new KL("er",e))),c.getItem("vi")&&(v=c.getItem("vi").getValue(),v.top+=d.top,v.left+=d.left,l=[],l.push(v),l.push(d),l.push(k),d=OL(l),QL(c,e,d),c.setItem(new KL("vi",k))));d=this.A.getTimeSinceTagLoadSeconds()}this.o.extend(EL(d))}; var aM=function(a,b){try{return(new $L(a,b)).mc()}catch(c){return"tle;"+Ka(c.name,12)+";"+Ka(c.message,40)}}; var bM=function(a){try{return!!a&&null!=a.location.href&&mc(a,"foo")}catch(b){return!1}}; var cM=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)}; var dM=function(){var a=eM;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""}; var fM=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)}; var gM=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}; var hM=function(a){var b="";cM(a,function(a,d){if(0===a||a)b+="&"+d+"="+(0,window.encodeURIComponent)(String(a))}); return b}; var iM=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);gM(d,"load",e);gM(d,"error",e)}; fM(d,"load",e);fM(d,"error",e)}d.src=b;a.google_image_requests.push(d)}; var jM=function(a,b,c){this.D=a;this.C=b;this.A=c;this.B=this.o}; var kM=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1}; var lM=function(a,b,c,d,e){var f;try{f=c()}catch(m){var k=a.A;try{var l=mM(m),k=(e||a.B).call(a,b,l,void 0,d)}catch(p){a.o("pAR",p)}if(!k)throw m;}finally{}return f}; var nM=function(a,b,c,d){var e=oM;return function(){var f=arguments;return lM(e,a,function(){return b.apply(c,f)},d)}}; var mM=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){var c=a.stack,d=b;try{-1==c.indexOf(d)&&(c=d+"\n"+c);for(var e;c!=e;)e=c,c=c.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=c.replace(/\n */g,"\n")}catch(f){b=d}}return new kM(b,a.fileName,a.lineNumber)}; var pM=function(a){return"function"==typeof window.encodeURIComponent?(0,window.encodeURIComponent)(a):(0,window.escape)(a)}; var qM=function(a,b,c,d){return nM(a,b,c,d)}; var rM=function(a,b){return nM(a,b,void 0,void 0)}; var sM=function(){for(var a=W,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,bM(a)&&(b=a);return b}; var tM=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}; var uM=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0}; var vM=function(){var a;wM.mozVisibilityState?a="mozvisibilitychange":wM.webkitVisibilityState?a="webkitvisibilitychange":wM.visibilityState&&(a="visibilitychange");return a}; var xM=function(a,b,c,d){c=nM(d||"osd_or_lidar::"+b,c,void 0,void 0);fM(a,b,c,void 0);return c}; var yM=function(a,b){this.o=a;this.A=b}; var zM=function(a){this.url=a;this.So=!1;this.depth=fa(void 0)?void 0:null}; var AM=function(a){a=a?a:BM();for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.So){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new yM(c,d)}; var BM=function(){var a=r,b=[],c=null,d=null;do{var e=a;bM(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new zM(c));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=r;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1],c.So=!0);return b}; var CM=function(a,b){var c=a||W;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new re(-1,-1):b?(new re(c.innerWidth,c.innerHeight)).round():cf(c||window).round()}catch(d){return new re(-12245933,-12245933)}}; var DM=function(){var a=EM.getInstance().G,b=0<=FM?GM()-FM:-1,c=HM?GM()-IM:-1,d=0<=JM?GM()-JM:-1,e;if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k}; var GM=function(){return(new Date).getTime()-KM}; var LM=function(a){var b=[];Ob(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(da(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))}); return b.join("&")}; var MM=function(){var a=M("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a}; var NM=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Pf(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=We(b))){var c,d;try{if(c=ff(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return NM(d)}return!1}; var OM=function(a){PM.e=-1;PM.i=6;PM.n=7;PM.t=8;if(!QM){var b=[];E(Wb(PM),function(a){b[PM[a]+1]=a}); var c=b.join("");QM=(c=a&&a[c])&&A(c,a)}return QM}; var RM=function(){return SM&&Et&&Gt("6.0.1")&&0<=Ra(TM,"10.1")?!0:!1}; var UM=function(a,b){this.C=null;this.G=a;this.J=b||1;this.o="u"}; var VM=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);switch(a.J){case 4:return a.G?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new oe(e,f),new oe(c-e,f),new oe(e,d-f),new oe(c-e,d-f)]):[new oe(e,0),new oe(0,f),new oe(e,d-1),new oe(c-1,f)];case 3:return[new oe(c-1,0),new oe(e,f),new oe(0,d-1)];default:return[new oe(e,f)]}}; var WM=function(a,b){var c;try{c=b||a.C.getBoundingClientRect()}catch(e){c=new qe(0,0,0,0)}var d=VM(a,c);E(d,function(a){a.x+=c.left;a.y+=c.top}); return d}; var XM=function(a,b,c,d){UM.call(this,a,d);this.K=b||3E3;this.L=c||3E3;this.A=[];this.H=!1;this.B=-1;this.D=this.F=0}; var YM=function(a,b,c){this.snapshot=a;this.A=b;this.o=c}; var ZM=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ra(TM,"11")&&c)||vc&&9>Ac||0<a.A.length)return!1;try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=We(b),k=[];if(e){var l=MM(),d=VM(a,d);E(d,function(a,b){var d=new $M("e",f,c,String(b));this.A.push(d);k.push(A(d.No,d,l,a))},a); pf(b,l,0)}else d=WM(a,d),E(d,function(a,d){var e=new $M("e",f,c,String(d));this.A.push(e);k.push(A(e.Mo,e,b,a))},a); var m=!0;E(k,function(a){m=m&&a()}); m?(a.o="l",a.C=b,a.H=!e):(E(a.A,function(a){a.remove()}),a.A=[]); return m}; var aN=function(a){if(a.C&&a.H){var b=WM(a);E(b,function(a,b){this.A[b]&&this.A[b].setPosition(a)},a)}}; var bN=function(a){E(a.A,function(a){a.remove()}); a.A=[];a.o="d"}; var cN=function(a){var b=H(),c=a.F?b-a.F:0,d=-1,e=O(a.A,function(a){return dN(a,b)}); 4==a.A.length?d=a.G?eN(e):fN(e):3==a.A.length?d=gN(e):1==a.A.length&&(d=[-1,0,1,2,3,5][dN(a.A[0],b)+1]);a.D=d==a.B?a.D+c:0;c=new YM(d,a.B,c);a.B=d;a.F=b;hN(a,d);aN(a);return c}; var iN=function(a){var b=Ib(Sb(jN));E(a,function(a){0<=a&&++b[a]}); return b}; var fN=function(a){a=iN(a);return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3}; var gN=function(a){var b=iN(a);return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3}; var eN=function(a){a=iN(a);return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3}; var hN=function(a,b){if(0==b&&kN(a))a.o="n";else switch(b){case -1:a.o="d";break;case 0:a.o="l";break;case 1:a.o="f";break;case 2:a.o="c";break;case 3:case 4:case 5:case 6:a.o="r"}}; var kN=function(a){return"n"==a.o?!0:"l"==a.o&&a.D>=a.L}; var $M=function(a,b,c,d){this.module=null;this.B=a;this.F="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.D=0;this.C=Ib(Sb(lN));this.G=Ib(Sb(jN));"e"==this.B&&(mN[this.F]=A(this.Fw,this));vc?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+nN(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>', a=a.firstChild,a.id=String(Math.random())):a=oN(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}; var oN=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)} var d=nN(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="s"==a.B?"":"hidden";e.style.opacity=0;return e}; var nN=function(a,b){var c=Tg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.F);"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Tg(c,"delay","1"));return c}; var dN=function(a,b){if("e"==a.B){var c=null;try{c=a.module.it()}catch(f){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.G[c+1];a.A=c}else{var d=Number(b),e=pN(a);qN(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||fa(c.bj))e=d=2}else null===c.bj||c.Yl>=d?(d=10<=e?4:0,e=0):e>c.bj?(c=(e-c.bj)/(d-c.Yl)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.D&&6==c&&(c=7),e=c):e=d=1;6==a.D&&(--a.C[6],4==e||8==e?++a.C[5]:++a.C[7]);++a.C[e];a.A=d;a.D=e}return a.A}; var pN=function(a){var b=null;try{b=a.module.fc()}catch(c){}return b}; var qN=function(a,b,c){var d=c-1E3,e=a.o.length;E(a.o,function(a,b){a.Yl<=d&&(e=Math.min(e,b+1))}); var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({bj:b,Yl:c})}; var rN=function(){this.F=!0;this.o=new $M("s",wM);this.D=!1;this.A=this.B=this.G=this.M=this.L=this.S=this.C=this.K=null;this.V=0;this.J=this.H=this.O=null}; var sN=function(a,b){b!==a.A&&(a.A=b,a.S(b),a.V++)}; var tN=function(a){var b=pN(a.o);null===a.O&&null!==b&&null!==a.H&&(a.O=H()-a.H);return b}; var uN=function(a){var b=a.K.getBoundingClientRect(),c;c=null!=a.M?a.M.clone():new oe(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.D&&(c.x+=b.left,c.y+=b.top);return c}; var vN=function(a){a.D&&(a.L=uN(a));a.o.setPosition(a.L);a.G=W.setTimeout(rM("osd_or_lidar::sfm_tpto",A(a.Y,a)),125)}; var wN=function(a){if(a.F){var b=A(function(){1===uM(wM)?(this.B=null,vN(this)):(W.clearTimeout(this.G),sN(this,0))},a),c=vM(); if(c){var d=xM(wM,c,b,"osd_or_lidar::sfm_pv");a.J=function(){gM(wM,c,d);this.J=null}}a.F=!1; a.A=null;b()}}; var xN=function(a){a.F||(W.clearTimeout(a.G),null===a.J||a.J(),a.F=!0)}; var yN=function(a,b){UM.call(this,a,b);this.B=[];this.F=this.H=null;this.D=!0}; var zN=function(a,b,c){if(null!==a.F)return!1;a.C=b;a.H=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?VM(a,c):WM(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new rN,k;k=f;var l=b,m=A(a.K,a),p=e;if(null===k.H){var v="DIV"==l.tagName||"INS"==l.tagName;k.D=!v;k.K=l;e=uN(k);if(null!=p){e=p;p=new oe(0,0);if(k.D){var t=k.K.getBoundingClientRect();p.x+=t.left;p.y+=t.top}k.M=new oe(e.x-p.x,e.y-p.y)}k.S=m;m=!1;v?(m=MM(),k.C=m,pf(l,m,0),m=k.o.No(m,e)):m=k.o.Mo(l,e);m?(k.H=H(),k.L=e,k= !0):(k.o.remove(),k.C&&qf(k.C),k=!1)}else k=!1;if(!k)return AN(a),a.o="c",!1;a.B.push(f)}a.F=H();a.o="l";return!0}; var BN=function(a){var b=Ib(Sb(CN));E(a.B,function(a){null!=a.A&&0<=a.A&&++b[a.A]}); switch(a.J){case 4:return DN(a,b);case 3:return 1==a.B[0].A&&1==a.B[2].A?3:1==a.B[1].A?2:0<b[1]?1:0;default:return 1==b[1]?2:0}}; var DN=function(a,b){var c=b[1];if(a.G){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0}; var EN=function(a){a.D&&null!==a.F&&"d"!=a.o&&(E(a.B,function(a){wN(a)}),a.o="r",a.D=!1)}; var FN=function(a){a.D||(E(a.B,function(a){xN(a)}),a.D=!0)}; var AN=function(a){FN(a);E(a.B,function(a){xN(a);a.o&&(a.o.remove(),a.o=null);a.C&&(qf(a.C),a.C=null)}); a.B=[];a.o="d"}; var EM=function(){this.F=!1;this.G=void 0;this.A=!bM(W.top);var a=BM();this.D=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Lg(a[a.length-1].url)||"":"";this.B=this.C=this.o=null;this.H=0}; var GN=function(a,b,c,d,e){this.A=HN.clone();this.G=this.ea=0;this.je=this.ke=this.Lc=-1;this.Ia=[0,0,0,0,0];this.Ra=[0,0,0,0,0];this.K=[0,0,0,0,0];this.zoom=[0,0,0,0,0];this.H=d;this.aa=this.S=-1;this.Ch=b;this.jg=e;this.ub=function(){}; this.ne=function(){}; this.Y=this.element=c;this.ig=0;this.hg=-1;this.D=null;this.O=1;this.za=!1;this.F=null;this.Nc=this.Ea=this.kg=!1;this.jb=1;this.ie=!0;this.lg=0;b=EM.getInstance();this.Xe=b.H++;IN(this,a,b.A)}; var JN=function(a,b,c,d,e){if(!(0>a.H)){var f=W.innerWidth,k=W.innerHeight,l=new qe(Math.round(W.mozInnerScreenY),Math.round(W.mozInnerScreenX+f),Math.round(W.mozInnerScreenY+k),Math.round(W.mozInnerScreenX));c=new qe(W.screenY+d,W.screenX+c.width,W.screenY+c.height,W.screenX);e||(d=new qe(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.A.top?a.A=d:(a.A.right=a.A.left+f,a.A.bottom=a.A.top+k),a.ea=f*k);a.Sf(l,c,b,e,!0)}}; var KN=function(a,b,c){var d=OM(W&&W.document);if(d){c||IN(a,W,!0);if(a.Nc)d=LN(a,d);else var e=Math.floor((a.A.left+a.A.right)/2),f=Math.floor((a.A.top+a.A.bottom)/2),k=df(window.document),d=d(e-k.x,f-k.y)?.5:0;a.Sf(a.A,d,b,c,!0)}}; var MN=function(a,b,c){var d;if(c(b))return b;for(;;){d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}}; var LN=function(a,b){function c(a,c){return Boolean(b(a,c))} var d=df(window.document),e=a.jb,f=Math.floor(a.A.left-d.x)+1,k=Math.floor(a.A.top-d.y)+1,l=Math.floor(a.A.right-d.x)-e,m=Math.floor(a.A.bottom-d.y)-e,d=(m-k)*(l-f);if(k>m||f>l)return 0;var e=c(f,k),p=c(l,m);if(e&&p)return 1;var v=c(l,k),t=c(f,m);if(e)m=MN(k,m,function(a){return c(f,a)}),l=MN(f,l,function(a){return c(a,k)}); else if(v)m=MN(k,m,function(a){return c(l,a)}),f=MN(l,f,function(a){return c(a,k)}); else if(t)k=MN(m,k,function(a){return c(f,a)}),l=MN(f,l,function(a){return c(a,m)}); else if(p)k=MN(m,k,function(a){return c(l,a)}),f=MN(l,f,function(a){return c(a,m)}); else{var y=Math.floor((f+l)/2),x=Math.floor((k+m)/2);if(!c(y,x))return 0;k=MN(x,k,function(a){return c(y,a)}); m=MN(x,m,function(a){return c(y,a)}); f=MN(y,f,function(a){return c(a,x)}); l=MN(y,l,function(a){return c(a,x)})}return(m-k)*(l-f)/d}; var NN=function(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b}; var ON=function(a,b,c){a.O=c;if(!Boolean(Boolean(a.Y&&!RM())&&!RM()))return a.za=!0,!1;c=new XM(!1,void 0,void 0,a.O);var d=ZM(c,a.Y,String(a.Xe));d?(a.ne=b,a.D=c):a.za=!0;return d}; var PN=function(a,b){if(!a.element||!RM())return!1;a.O=b||1;var c=new yN(!1,a.O),d=zN(c,a.element,A(function(a){QN(this,GM(),!1,[0,.01,.5,1,.01,.3][a])},a)); d?(a.F=c,EN(c)):a.kg=!0;return d}; var QN=function(a,b,c,d){if(!(0>a.H)&&RN(a)){c?a.F&&FN(a.F):(IN(a,W,!0),a.F&&EN(a.F));var e=d||0;fa(d)||-1==a.S||(e=[1,.75,.5,.3,.01][a.S]||0);a.Sf(a.A,e,b,c,!1);!a.Le()||a.yi()||a.F&&AN(a.F)}}; var RN=function(a){return null!==a.F&&"d"!=a.F.getStatus()}; var IN=function(a,b,c){a.lg++;b=c?b:b.top;try{var d=HN.clone(),e=new oe(0,0);if(a.Y){if(c||1!=a.jg||!NM(a.Y))d=a.Y.getBoundingClientRect();e=ag(a.Y,b)}var f=e.x,k=e.y;a.A=new qe(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(l){a.A=HN.clone()}a.ea=(a.A.bottom-a.A.top)*(a.A.right-a.A.left)}; var SN=function(a){a.D&&bN(a.D);a.F&&AN(a.F)}; var TN=function(a,b,c,d,e){this.sa=0;this.Nb=[0,0,0,0,0];this.Cb=[0,0,0,0,0];this.ka=[0,0,0,0,0];this.bb=this.Da=0;this.J={};this.zd={};this.L=this.B="";this.Oc=!1;this.Ua=[];this.ha=void 0;this.Ca=this.ma=this.qe=this.da=!1;this.C=void 0;this.uc=0;this.ia=-1;this.tb=this.fa=0;this.Ga=void 0;this.V=-1;this.nb=void 0;this.Qa=this.Z=0;this.La=-1;this.xc=!1;this.U=this.ab=0;this.$a=!1;this.o=0;this.Cd=this.Dd=this.wc=!1;this.Ed=0;this.pe=this.Bd=this.M=!1;this.he=0;this.oe=!1;GN.call(this,a,b,c,d,e)}; var UN=function(a,b){var c=a.uc;HM||a.ha||-1==a.ia||(c+=b-a.ia);return c}; var VN=function(a){a.Nc=!0;a.jb=2}; var WN=function(a,b){tb(a.Ua,Ib(b-a.Ua.length+1));a.Ua[b]=(100*a.G|0)/100}; var XN=function(a,b){var c=a.zd[b];if(null!=c)return c;if(a.Ea)return{"if":0};c=a.A.clone();c.round();var d=O(a.Ua,function(a){return 100*a|0}),e=EM.getInstance(),f={}; f["if"]=e.A?1:void 0;f.sdk=a.C?a.C:void 0;f.p=[c.top,c.left,c.bottom,c.right];f.tos=a.Ia;f.mtos=a.Ra;f.ps=void 0;f.pt=d;f.vht=UN(a,GM());f.mut=a.tb;f.a=a.Ga;f.ns=a.he;f.at=a.ab;f.as=a.$a?1:0;f.afvt=a.U;f.vpt=a.Qa;if("h"==a.C||"as"==a.C)f.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(f.std="csm");a.Nc&&(f.efpf=a.jb);a.D&&(f.swf=a.D.getStatus(),f.px=a.O);a.F&&(f.sfm=a.F.getStatus(),f.px=a.O);0<a.Ed&&(f.nnut=a.Ed);f.vme=a.wc?1:0;f.nmtd=a.Dd?1:0;f.mmct=a.Cd?1:0;f.vpaid=a.nb;f.dur=a.V; f.vmtime=a.Z;f.vmtos=a.Nb;f.vmmtos=a.Cb;YN(a,b)&&a.Le()&&(f.dtos=a.sa,f.vmdtos=a.Da,a.bb++,f.dtoss=a.bb,a.sa=0,a.Da=0);!a.Le()&&2E3<=a.Da&&(f.vmdtos=a.Da);e.B&&(f.ps=[e.B.width,e.B.height]);f.dom=e.D;a.za&&(f.fmf="1",f.px=a.O);a.da&&(f.ven="1");a.qe&&(f.veh="1");a.o&&(f.vds=a.o);ZN()?f.c=(100*a.G|0)/100:f.tth=GM()-$N;return f}; var YN=function(a,b){if(ib(aO,b))return!0;var c=a.J[b];return n(c)&&(a.J[b]=!0,!c)?!0:!1}; var bO=function(){if(!cO){cO=!0;var a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame;if(!eO){var b;if(a){var c=nM("osd_or_lidar::throttled_scroll_raf_callback",fO,void 0,void 0);b=function(){a(function(){W.setTimeout(c,0)})}}else b=fO; gO=new Am(nM("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=A(gO.jf,gO);eO=xM(W,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!hO){if(a){var d=nM("osd_or_lidar::throttled_resize_raf_callback",iO,void 0,void 0);b=function(){a(function(){W.setTimeout(d,0)})}}else b=iO; jO=new Am(nM("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=A(jO.jf,jO);hO=xM(W,"resize",b,"osd_or_lidar::throttled_resize")}kO();lO()}}; var iO=function(){mO(!1);fO()}; var fO=function(){nO(oO(),!1)}; var pO=function(){var a,b=EM.getInstance();qO&&(b.o=CM(W,qO));var b=b.o,c=rO,d=sO;if(tO){a=c;mO(!1);var e=EM.getInstance(),f=e.C,b=f.height-a;0>=b&&(b=f.height,a=0);e.o=new re(f.width,b);b=new uO;b.F=!0;b.B=e.o;b.A=f;b.C=a;return b}if(d)return a=new uO,a.D=!0,a;if(vO)return a=new uO,a.G=!0,a;if(wO)return a=new uO,a.H=!0,a;a:{c=new uO;c.B=b;c.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var d=qO,k=W||W,k=k.top,e=b||CM(k,d),f=Jf(Ue(k.document));a=-1==e.width|| -12245933==e.width?new qe(e.width,e.width,e.width,e.width):new qe(f.y,f.x+e.width,f.y+e.height,f.x)}catch(l){a=c;break a}c.J=a;c.o=!0}a=c}return a}; var nO=function(a,b){var c;if(!xO)if(window.clearTimeout(yO),yO=null,0==a.length)b||zO();else{var d=pO();try{var e=GM();if(d.F)for(c=0;c<a.length;c++)JN(a[c],e,d.A,d.C,b);else if(d.D)for(c=0;c<a.length;c++)KN(a[c],e,b);else if(d.G)E(a,function(a){if(b){if(a.D){var c=a.D;3<=c.B&&(c.B=3);a.S=-1}}else if(a.D&&"d"!=a.D.getStatus()){var c=cN(a.D),d=[0,0,0,0,0,.01,.5,1,.01,.3];a.G=d[c.snapshot+1];var e=NN(a.G);a.gj(e,c.o,NN(d[c.A+1]),!0,!1);a.S=e;a.ub(a,HN);!a.Le()||a.yi()||a.ie||a.D&&bN(a.D);(c=2==c.snapshot|| kN(a.D))||(c=a.D,c="f"==c.o&&c.D>=c.K);c&&(a.ne(a),a.ie=!1,a.D&&bN(a.D))}}); else if(d.H)for(c=0;c<a.length;c++)QN(a[c],e,b);else if(d.o){var f=EM.getInstance();for(c=0;c<a.length;c++)a[c].update(e,d.J,b,W,f.A)}++AO}finally{b?E(a,function(a){a.G=0}):zO()}}}; var kO=function(){var a=lO,b=vM();b&&(BO=BO||xM(wM,b,a,"osd_or_lidar::visibility"))}; var lO=function(){var a=ZN();if(a){if(!HM){var b=GM();IM=b;E(CO,function(a){a.uc=UN(a,b)})}HM=!0; mO(!0)}else b=GM(),HM=!1,$N=b,E(CO,function(a){0<=a.H&&(a.ia=b)}); nO(oO(),!a)}; var ZN=function(){if(DO())return!0;var a=uM(W.document);return 1==a||0==a}; var zO=function(){W&&(yO=W.setTimeout(rM("osd_or_lidar::psamp_to",function(){nO(oO(),!1)}),DM()))}; var oO=function(){return 0==CO.length?EO:0==EO.length?CO:rb(EO,CO)}; var FO=function(){var a=W.document;return a.body&&a.body.getBoundingClientRect?!0:!1}; var mO=function(a){var b=EM.getInstance();b.o=CM(W,qO);if(!a){b.C=W&&W.outerWidth?new re(W.outerWidth,W.outerHeight):new re(-12245933,-12245933);var c;a=W;a.top!=a&&(a=a.top);var d=0,e=0,f=EM.getInstance().o;try{var k=a.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)d=m.scrollHeight!=f.height?m.scrollHeight:m.offsetHeight,e=m.scrollWidth!=f.width?m.scrollWidth:m.offsetWidth;else{var p=m.scrollHeight,v=m.scrollWidth,t=m.offsetHeight,y=m.offsetWidth;m.clientHeight!= t&&(p=l.scrollHeight,v=l.scrollWidth,t=l.offsetHeight,y=l.offsetWidth);p>f.height?p>t?(d=p,e=v):(d=t,e=y):p<t?(d=p,e=v):(d=t,e=y)}c=new re(e,d)}catch(x){c=new re(-12245933,-12245933)}b.B=c}}; var GO=function(){var a=HO;if(1<=Math.random())return!1;var b=!1;E(CO,function(a){a=PN(a,3);b=b||a}); (wO=b)&&E(CO,function(b){RN(b)||a(b)}); return b}; var IO=function(){var a=HO,b=!1;E(CO,function(c){c=ON(c,a,n(1)&&1>Math.random()?3:1);b=b||c}); (vO=b)&&E(CO,function(b){Boolean(b.D)||a(b)}); return b}; var JO=function(a){E(a,function(a){null==db(CO,function(c){return c.element==a.element&&c.L==a.L})&&CO.push(a)})}; var DO=function(){return Ih(CO,function(a){return a.M})}; var uO=function(){this.A=this.B=null;this.C=0;this.J=null;this.o=this.H=this.G=this.D=this.F=!1}; var KO=function(a,b,c){b=b||",$";"string"==typeof b&&(b=b.split(""));c=c||0;if(!(a instanceof Array)||c>=b.length)return(0,window.encodeURIComponent)(""+a);for(var d=[],e=0;e<a.length;e++)d.push(KO(a[e],b,c+1));return d.join(b[c])}; var LO=function(){var a=BM(),b=a.length-1,c=AM(a),a=c.o,d=c.A,c=[];d?(a&&c.push(MO(b,[d.url,2],0,[a.url,0],a.depth)),c.push(MO(b,[d.url,2],0))):a&&a.url&&(c.push(MO(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=NO.exec(a.url))&&d[0]||"")&&c.push(MO(b,[d,1],a.depth)));c.push(MO(b));return c}; var MO=function(a,b,c,d,e){a=[a];if(n(b)&&n(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(n(d)&&n(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a}; var OO=function(){var a=LO();return O(a,function(a){return KO(a)})}; var PO=function(a){if(!a)return"";var b=a.document,c=[];c.push("url="+pM(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+pM(b.referrer.substring(0,512)));return c.join("&")}; var QO=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1}; var RO=function(a){return!!(1<<a&SO)}; var TO=function(){try{UO()}catch(d){}var a="a=1&b="+SO+"&",b=[],c=99;E(VO,function(a,c){var f=!1;try{f=a(W)}catch(k){}b[c/32>>>0]|=f<<c%32}); E(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"}); c=105;E(WO,function(b){var e="false";try{e=b(W)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); E(XO,function(b){var e="";try{var f=b(W);b=[];for(var k=0,l=0;l<f.length;l++){for(var m=f.charCodeAt(l);255<m;)b[k++]=m&255,m>>=8;b[k++]=m}e=TL(b,!0)}catch(p){}a+=String.fromCharCode(c++)+"="+e+"&"}); return a.slice(0,-1)}; var UO=function(){if(!YO){var a=function(){ZO=!0;W.document.removeEventListener("webdriver-evaluate",a,!0)}; W.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){$O=!0;W.document.removeEventListener("webdriver-evaluate-response",b,!0)}; W.document.addEventListener("webdriver-evaluate-response",b,!0);YO=!0}}; var aP=function(){if(!bP){bP=!0;try{FM=GM(),1>Math.random()&&(cP=!0),dP=sM(),mO(!1),FO()?(window.setTimeout(function(){},1),EM.getInstance().A?eP():bO()):fP=!0}catch(a){throw CO=[],EO=[],a; }}}; var eP=function(){var a;if(tc&&fa(W.screenX)&&fa(W.mozInnerScreenX)&&fa(W.outerWidth)){var b=W.navigator.userAgent,c=b.indexOf("Firefox/");a=-1;if(0<=c){a=Math.floor(b.substr(c+8))||-1;var d=b.indexOf("Mac OS X 10."),c=-1;0<=d&&(c=Number(b.substr(d+12,1))||-1);var e=0<c?-1:b.indexOf("Windows NT "),d=-1;0<=e&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(e+11,3)]||-1);b=148;5<=c?b=4<=a?108:3<=a?127:108:0<=d&&(16==a||17==a||18==a)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][a-16]);a=b}else a=null;null!== a&&(rO=a,tO=!0);a=!0}else a=!1;if(a)bO();else if(a=W&&W.document,a=vc&&yc(8)&&ga(OM(a))?sO=!0:!1,a)gP=1>Math.random(),bO();else{if(RM()){if(GO()){bO();hP=!0;return}}else if(IO()){bO();iP=!0;return}window.clearTimeout(yO);yO=null;jP="i";xO=!0}}; var HO=function(a){if(a){if(!a.Oc){var b=XN(a,"start"),b=kP(b),c=dP||W,d=[];d.push("v=384v");d.push("r=fp");d.push("efm="+(iP?1:0));d.push("esfm="+(hP?1:0));d.push(b);d.push(PO(c));b="&"+d.join("&");iM(W,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.Oc=!0}a.Ea=!0}}; var lP=function(a,b){a.uc=UN(a,GM());var c=!ZN();nO([a],c);a.ha=!0;return XN(a,b)}; var mP=function(a,b){if(!a.pe){a.pe=!0;"i"!=jP&&(xO=!1);if(iP&&!Boolean(a.D)&&!a.za){var c=1>Math.random()?3:1;ON(a,HO,c)}if(hP&&!RN(a)){a:{c=[3,1];if(!(1E-4>Math.random())){var d=Math.random();if(1>d){var e=window;try{var f=new window.Uint32Array(1);e.crypto.getRandomValues(f);d=f[0]/65536/65536}catch(k){d=Math.random()}c=c[Math.floor(d*c.length)];break a}}c=null}PN(a,c)}a.J={};a.J.firstquartile=!1;a.J.midpoint=!1;a.J.thirdquartile=!1;a.J.complete=!1;a.J.pause=!1;a.J.skip=!1;a.J.viewable_impression= !1;a.bb=0;f=n(b)?b.opt_nativeTime:void 0;JM=f=fa(f)?f:GM();a.Ia=[0,0,0,0,0];a.Ra=[0,0,0,0,0];a.K=[0,0,0,0,0];a.zoom=[0,0,0,0,0];a.H=-1;a.Lc=-1;a.je=-1;a.ig=0;a.hg=-1;a.S=-1;a.aa=-1;a.G=0;a.H=f;c=!1;ZN()||(c=!0,a.ia=f);nO([a],c)}}; var nP=function(a){if(z(a)){var b=eb(CO,function(b){return b.B==a}); 0<=b&&(SN(CO[b]),pb(CO,b))}}; var oP=function(a,b){if(b.opt_adElement)return pP(a,b.opt_adElement);var c=qP(a,b.opt_sdkID||"");return c?c:c=db(CO,function(b){return b.B==a})}; var pP=function(a,b){var c=db(CO,function(a){return a.element==b}); null!==c&&c.B!=a&&(nP(c.B),c=null);c||(c=rP(b),c.B=a,c.C="h");return c}; var qP=function(a,b){var c=db(CO,function(c){return c.element?sP(c.element,b)==a&&c.L==b:!1}); null!==c&&c.B!=a&&(nP(c.B),c=null);if(c)return c;c=tP(b);c=db(c,function(c){return sP(c,b)==a}); if(!c)return null;c=rP(c);c.C="as";c.B=a;c.L=b;return c}; var tP=function(a){var b=W.document,c=Jb(O(["embed","object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a; return c=$d(c,function(a){if(!a||!ia(a)||1!=a.nodeType||!ga(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ga(a[d])?!0:!1})}; var sP=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ga(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID}; var rP=function(a){a=new TN(W,"",a,-1,7);a.ub=uP;EM.getInstance().G=79463069;JO([a]);bO();return a}; var uP=function(a){if(a.Le()&&!a.da){var b="as"==a.C,c="h"==a.C,d="n"==a.C,e="a"==a.C,f=u("ima.common.triggerViewEvent"),k=u("ima.bridge.triggerViewEvent");try{var l=vP("viewable_impression",a);if(c)ga(f)?(f(a.B,l),a.da=!0):a.o|=8;else if(e)ga(f)?(f(a.B,l),a.da=!0):a.o|=131072;else if(d)ga(k)?(k(a.B,l),a.da=!0):a.o|=32;else if(b){var m="triggerViewEvent"+a.L;a.element&&a.element[m]?(a.element[m](l),a.da=!0):a.o|=1}else a.o|=16}catch(x){a.o|=2}}else a.o|=4;if((15E3<=a.U||a.xc&&(-1!=a.V?a.U>=a.V/2: -1!=a.La&&a.U>=a.La))&&!a.Ca){b="as"==a.C;c="h"==a.C;d="a"==a.C;try{if(c){var p=u("ima.common.triggerExternalActivityEvent");if(ga(p)){var v=vP("fully_viewable_audible_half_duration_impression",a);p(a.B,v,"fully_viewable_audible_half_duration_impression");a.Ca=!0}else a.o|=8192}else if(d){var t=u("ima.common.triggerExternalActivityEvent");ga(t)?(v=vP("fully_viewable_audible_half_duration_impression",a),t(a.B,v,"fully_viewable_audible_half_duration_impression"),a.Ca=!0):a.o|=65536}else if(b){var y; y="triggerExternalActivityEvent"+a.L;a.element&&a.element[y]?(a.element[y]("fully_viewable_audible_half_duration_impression"),a.Ca=!0):a.o|=64}else a.o|=16384}catch(x){a.o|=128}}}; var wP=function(a){if(a.ma||a.Ea)a.o|=1024;else{var b="as"==a.C,c="h"==a.C,d="n"==a.C,e="a"==a.C,f=u("ima.common.triggerMeasurableEvent"),k=u("ima.bridge.triggerMeasurableEvent");try{var l=vP("measurable_impression",a);if(c)ga(f)?(f(a.B,l),a.ma=!0):a.o|=2048;else if(e)ga(f)?(f(a.B,l),a.ma=!0):a.o|=262144;else if(d)ga(k)?(k(a.B,l),a.ma=!0):a.o|=32768;else if(b){var m="triggerMeasurableEvent"+a.L;a.element&&a.element[m]?(a.element[m](),a.ma=!0):a.o|=256}else a.o|=4096}catch(p){a.o|=512}}}; var vP=function(a,b){var c=Zb(xP,function(b){return b==a}),c={v:"384v", e:yP[c]},d=XN(b,a);gc(c,d);b.zd[a]=d;return kP(c)}; var kP=function(a){var b={};Ob(zP,function(c,d){d in Object.prototype||n(c)&&(b[c]=a[d])}); return LM(b)}; var AP=function(a,b,c){var d=a.toLowerCase();if(a=Zb(xP,function(a){return a==d})){a={v:"384v", e:yP[a]};if(c.opt_bounds)return a.msg="ol",a;if(fP)return a.msg="ue",a;b=oP(b,c);a.nas=CO.length;if(!b)return a.msg="nf",a;aP();"i"==jP&&(b.Ea=!0);gP&&VN(b);var e=c.opt_fullscreen;n(e)&&(b.M=Boolean(e));ib(BP,d)&&(mP(b,c),cP&&wP(b));if(e=CP[d])if(c=e(b,c),n(c))return gc(a,c),a}}; var DP=function(){var a={};a.moatInit=TO();return a}; var EP=function(a,b,c){var d={};d.viewability=FP(a,b,c);a={gmm:"2"};a.j=EM.getInstance().D;b=SO=(new Date).getTime();c=RO(5);b=(ZO?!c:c)?b|2:b&-3;c=RO(2);b=($O?!c:c)?b|8:b&-9;b={s1:(b>>>0).toString(16)};gc(a,b);a=LM(a);d.moatViewability=a;return d}; var FP=function(a,b,c){var d={};gc(d,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});a=AP(a,b,d);return n(a)?kP(a):void 0}; var GP=function(a,b){var c=EM.getInstance();if(c.F!=a){c.F=a;var d=Ih(CO,function(a){return a.oe}); E(CO,function(c){a||d||(c.H=b);c.Bd=a;c.oe=!1})}}; var HP=function(){dd.call(this);this.o=null;this.D=new Cm(this);G(this,this.D);this.F=null;this.K=new wg;this.J=new wg;this.B=this.C=null;this.A=!1;this.G=(ga(null),null)}; var IP=function(){null!=JP||(JP=new HP);return JP}; var KP=function(a){var b=IP();a=b.K.get(a)||b.F;return null!=a?a():{}}; var LP=function(a){if(null==a)return!1;if(lL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=MP(a);return 0>=b-a.width&&42>=c-a.height}; var MP=function(a){return ga(a.getBoundingClientRect)&&yf(We(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}; var NP=function(a,b){a.C=b}; var OP=function(a,b,c,d,e){if(a.A){if(a.G)return a.G(b,c,e);e=e||{};if(d=d?a.J.get(d):zK.B)null!=e.opt_fullscreen||(e.opt_fullscreen=LP(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.C&&(e.opt_bounds=MP(a.C));return lM(oM,"lidar::handlevast_html5",pa(EP,b,c,e),void 0,PP)||{}}return{}}; var QP=function(){var a=IP();if(!a.A)return null;if(null!=a.B)return a.B;a.B=lM(oM,"lidar::getinitsignals_html5",DP,void 0,PP)||null;return a.B}; var RP=function(a){if(ga(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.o.send("activityMonitor","pageSignals",b)}}; var SP=function(a,b,c){if(!zK.C)return"";var d=b?a.J.get(b):zK.B;a={};null!=c&&(a.fullscreen=c);return aM(function(){return d},a)}; var TP=function(a,b,c){if(kb(a))return null;a=$d(a,function(a){var b=a.C;return"application/x-mpegurl"==D(a.o).toLowerCase()||"progressive"==b}); kb(c)||(c=O(c,function(a){return a.toLowerCase()}),a=$d(a,function(a){return ib(c,D(a.o).toLowerCase())})); if(!fa(b)||0>=b)b=iL()?500:1E3;return UP(a,b)}; var UP=function(a,b){return VP(a,b)||WP(a,b)||XP(a,b)}; var VP=function(a,b){var c=null;E(a,function(a){var e=a.Sd,f=a.Rd;e>b||f<b||!(null==c||c.Sd>e)||(c=a)}); return c}; var WP=function(a,b){var c=null;E(a,function(a){var e=a.Sd,f=a.Rd;f>b||(null==c||c.Rd<f?c=a:null!=c&&c.Rd==f&&c.Sd>e&&(c=a))}); return c}; var XP=function(a,b){var c=null;E(a,function(a){var e=a.Sd,f=a.Rd;if(!(e<b))if(null!=c&&c.Sd==e&&c.Rd<f)c=a;else if(null==c||c.Sd>e)c=a}); return c}; var YP=function(){dd.call(this);this.F=this.J=this.M=this.G=!1;this.A=0;this.C=[];this.H=!1;this.O=this.S=window.Infinity;this.B=0;this.L=!1;this.D=new Cm(this);this.K={}}; var ZP=function(a,b){null==b||a.G||(a.o=b,$P(a),a.G=!0)}; var aQ=function(a){null!=a.o&&a.G&&(bQ(a),a.G=!1,a.J=!1,a.F=!1,a.A=0,a.C=[],a.H=!1)}; var $P=function(a){bQ(a);!(a.o instanceof dd)&&"ontouchstart"in window.document.documentElement&&oL()?(a.K={touchstart:A(a.cB,a),touchmove:A(a.bB,a),touchend:A(a.aB,a)},Ob(a.K,function(a,c){this.o.addEventListener(c,a,!1)},a)):a.D.P(a.o,"click",a.qo)}; var bQ=function(a){a.D.ya(a.o,"click",a.qo);Ob(a.K,function(a,c){this.o.removeEventListener(c,a,!1)},a); a.K={}}; var cQ=function(a,b){a.C=[];E(b,function(a){nb(this.C,a.identifier)},a)}; var dQ=function(a,b){return Ih(b,function(a){return ib(this.C,a.identifier)},a)}; var eQ=function(a){null!=a?QK(fQ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=PK(a)?gQ(a):null:a=null;return a}; var hQ=function(a,b,c){if(null==a)return null;c=new N((null!=c?c:"//www.youtube.com/")+"watch");var d=c.o;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");eh(c,d);return c.toString()}; var iQ=function(a){return null===a?!1:"pharma"==(new N(a)).Ce().toLowerCase()}; var gQ=function(a){if(C(D(a)))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=lh(new N(a));return wh(a,"v")?a.get("v").toString():wh(a,"video_id")?a.get("video_id").toString():null}; var jQ=function(a){return C(D(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"}; var kQ=function(){dd.call(this)}; var lQ=function(a){dd.call(this);this.o=a;this.V=new ym(4);this.B=0;this.O=this.C=this.L=this.H=!1;this.M=this.Vc();this.K=this.Pd();this.U=15E3;this.S=!1}; var mQ=function(a){a.L=!1;a.C=!1;a.H=!1;a.B=0;a.O=!1;a.V.clear();nQ(a);Lb(a.D)}; var oQ=function(a){a.C||(a.C=!0,nQ(a),a.$("start"),uL()||!vL||vL&&pL(wL,3)||lL()&&(!oL()||!pL(pQ,4))||a.Pk())}; var qQ=function(a){for(var b=a.o.buffered.length-1;0<=b;){if(a.o.buffered.start(b)<=a.o.currentTime)return a.o.buffered.end(b);b--}return 0}; var nQ=function(a){a.J&&(Td(a.J),a.J=null)}; var rQ=function(){dd.call(this);this.A=new sQ;this.o=new Cm(this);var a=vK();if(a){a:{if(Yb(a.o,"videoElementMockDuration")&&(a=a.o.videoElementMockDuration,fa(a)))break a;a=window.NaN}this.duration=a}}; var tQ=function(){var a=["video/mp4"],b=["video/ogg"],c=new rQ;c.canPlayType=function(c){return ib(a,c)?"probably":ib(b,c)?"maybe":""}; c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}; var uQ=function(a){this.startTime=0;this.endTime=a}; var sQ=function(){this.length=0;this.o=[]}; var vQ=function(){}; var wQ=function(){throw Error("Do not instantiate directly");}; var xQ=function(){wQ.call(this)}; var yQ=function(a,b){var c;a:{var d=a(b||zQ,void 0,void 0);c=Ue().createElement("DIV");d=AQ(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c}; var AQ=function(a){if(!ia(a))return String(a);if(a instanceof wQ){if(a.Rc===BQ)return a.getContent();if(a.Rc===CQ)return xa(a.getContent())}return"zSoyz"}; var DQ=function(a,b){return null!=a&&a.Rc===b}; var EQ=function(a){if(null!=a)switch(a.fd){case 1:return 1;case -1:return-1;case 0:return 0}return null}; var FQ=function(){wQ.call(this)}; var X=function(a){return null!=a&&a.Rc===BQ?a:a instanceof Pe?GQ(Re(a),a.ff()):GQ(xa(String(String(a))),EQ(a))}; var HQ=function(){wQ.call(this)}; var IQ=function(){wQ.call(this)}; var JQ=function(){wQ.call(this)}; var KQ=function(){wQ.call(this)}; var LQ=function(){wQ.call(this)}; var MQ=function(a,b){this.content=String(a);this.fd=null!=b?b:null}; var NQ=function(a){function b(a){this.content=a} b.prototype=a.prototype;return function(a){return new b(String(a))}}; var OQ=function(a,b,c){var d="key_"+a+":"+b,e=PQ[d];if(void 0===e||0>e)PQ[d]=0,QQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');}; var RQ=function(a,b){var c=QQ["key_"+a+":"+b];c||""==b||(c=QQ["key_"+a+":"]);return c?c:SQ;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');}; var SQ=function(){return""}; var TQ=function(a){return X(a)}; var UQ=function(a){return String(a).replace(VQ,"").replace(aaa,"&lt;")}; var WQ=function(a){return DQ(a,BQ)?(a=UQ(a.getContent()),String(a).replace(baa,XQ)):xa(String(a))}; var YQ=function(a){return DQ(a,BQ)?(a=UQ(a.getContent()),String(a).replace(caa,XQ)):String(a).replace(daa,XQ)}; var eaa=function(a){return"%"+a.charCodeAt(0).toString(16)}; var ZQ=function(a){a=va(String(a));$Q.lastIndex=0;return $Q.test(a)?a.replace($Q,eaa):a}; var aR=function(a){return String(a).replace(bR,cR)}; var dR=function(a){if(DQ(a,eR)||DQ(a,fR))return String(a).replace(bR,cR);a instanceof He?a=aR(Je(a)):a instanceof Me?a=aR(Oe(a)):(a=String(a),a=faa.test(a)?a.replace(bR,cR):"#zSoyz");return a}; var gR=function(a){hR[1]||(hR[1]=new vQ);var b=EQ(a);if(null==b){var c=b=0,d=!1;a=ye(a+"",DQ(a,BQ)).split(gaa);for(var e=0;e<a.length;e++){var f=a[e];haa.test(ye(f,void 0))?(b++,c++):iaa.test(f)?d=!0:jaa.test(ye(f,void 0))?c++:kaa.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return laa(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}; var XQ=function(a){return maa[a]}; var cR=function(a){return naa[a]}; var oaa=function(a,b,c){return""+RQ("a",a.Xh)(a,null,c)}; var paa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+TQ(gR(a.Pc))+">"+X(a.Pc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}; var qaa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+TQ(gR(a.Pc))+">"+X(a.Pc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+X(a.Bf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}; var raa=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}; var iR=function(){var a="",b=ra("Share");return a+b}; var jR=function(a){return""+RQ("b",a.Xh)(a,null,void 0)}; var saa=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="2" class="videoAdUiExtendButton videoAdUiAction" style="display: none">'+X(a.Pv)+'</button><br/><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+X(a.skipText)+'<div class="videoAdUiSkipIcon"></div><div class="videoAdUiAutoSkipText"></div></button></div>'}; var taa=function(){var a="",b=ra("Continue Ad");return a+b}; var kR=function(a){var b="";a=2<=a.dj&&1<=a.Dh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:X(a.Dh),totalAds:X(a.dj),timeLeft:X(a.aj)}):ra("Ad {$timeLeft}",{timeLeft:X(a.aj)});return b+=a}; var lR=function(){var a=mR(),b=GQ("</a>"),c="",a=ra("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:X(a),endFormat:X(b)});return GQ(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))}; var mR=function(){return GQ('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')}; var nR=function(a){return GQ("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+X(a.heading)+"</div><div class='videoAdUiPopupText'>"+X(a.message)+ "</div><div class='videoAdUiPopupButtons'>"+X(a.buttons)+"</div></form></div></div>")}; var uaa=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.Pq,d=c.length,e=0;e<d;e++)b+="<li>"+X(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+X(a.ai)+"</div><a class='videoAdUiWhyThisAdUnsubscribe videoAdUiHideIfEmpty'>"+X(a.unsubscribe)+"</a><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+X(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+ X(a.control)+"</a>";a=""+nR({heading:oR(""+X(a.heading)),message:oR(b),buttons:oR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+X(a.close)+"</button>")});return GQ(a)}; var vaa=function(a){return GQ(nR({heading:oR("<div class='videoAdUiPopupBack'></div>"+X(a.heading)),message:oR(""+X(a.message)),buttons:oR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")}))}; var waa=function(a){for(var b=""+X(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+WQ(e)+"'><input type='radio' id='videoAdUiMuteOption"+WQ(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+WQ(e)+"' />"+X(f)+"</label>");a=""+nR({heading:oR(X(a.heading)+" <a class='videoAdUiMuteUndo'>"+X(a.undo)+"</a>"),message:oR(b),buttons:oR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+ X(a.confirm)+"</button>")});return GQ(a)}; var xaa=function(a){var b=String(""+a.heading);return GQ(nR({heading:b?new MQ(b,void 0):"",message:oR(""+X(a.message)),buttons:oR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+X(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+X(a.confirm)+"</button>")}))}; var pR=function(a,b,c){if(null==a||!yf(We(a),a))throw fL(qR,null,"containerElement","element");this.D=a;this.A=this.o=null;this.C=b;this.F=c||!1;this.B=null;this.o=M("div",{style:"display:none;"});a=vK();wK(a,"useVideoElementMock")?(a=tQ(),b=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.mg=M("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.$i=M("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}), a.mg.appendChild(a.$i),b.appendChild(a.mg),a.o.P(a,["loadeddata","playing","pause","ended"],a.qB),a=b):(a="",b=ra("Advertisement"),a=M("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.A=a;this.D.appendChild(this.o);this.o.appendChild(this.A);this.C&&(a=M("div",{id:this.C,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.o.appendChild(a));this.F&&(this.B=M("div",{style:"position:absolute;width:100%;height:100%;"}), this.o.appendChild(this.B))}; var rR=function(a){dd.call(this);this.S="ima-chromeless-video";var b=null;null!=a&&(z(a)?this.S=a:b=a);this.O=new Cm(this);this.F=null;this.C=!1;this.fa=this.Vc();this.ea=this.Pd();this.K=-1;this.Z=!1;this.G=-1;this.B=this.Y=this.L=null;this.U="";this.o=!1;this.da=null!=b;this.ha=this.M=this.aa=this.A=null;this.D=void 0;this.H=this.ia=null;this.J=this.ma=0;this.da?(this.o=!0,this.A=b,this.D=2):(a=A(this.Cv,this),sR?a():(tR.push(a),a=lf("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0], b.parentNode.insertBefore(a,b)))}; var uR=function(a,b,c){var d={};if(null!=a.B){var e=a.B.F;null!=e&&(d.agcid=e);e=a.B.C;null!=e&&(d.adformat=e);e=a.B.D;null!=e&&(d.ad_query_id=e);(e=a.B.G)&&(d.cta_conversion_urls=e);a.B.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.B.K?1:3;a.B.H&&(d.noiba=1);a.B.L&&(d.utpsa=1);a.B.B&&gc(d,a.B.B)}e=eQ(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!V()&&LK(HK(),41351017)&&(d.enabled_engage_types= (3).toString());a.C=!1;a.B&&a.B.A?(a.ia=d,a.A.preloadVideoByPlayerVars(a.ia)):a.A.cueVideoByPlayerVars(d);a.$("loaded")}; var vR=function(a){a.O.ya(a.F,"tick",a.tp);null!=a.F&&(a.F.stop(),a.F=null)}; var wR=function(a){null!=a.sa&&Td(a.sa)}; var xR=function(a){dd.call(this);this.o=a||Va();this.B=[]}; var yR=function(a,b,c,d,e){jc.call(this,a);this.kc=b;this.od=c;this.po=d;this.C=e}; var zR=function(a,b){xR.call(this,b);this.C=a;this.Ic=null;this.D=new Cm(this);this.logger=null;this.D.P(ff(),"message",this.receive)}; var AR=function(a){if(null==a||!z(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return be(a)}catch(b){return null}}; var yaa=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.o;e.channel=a.C;return"ima://"+de(e)}; var BR=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.C)return!1;c=b.sid;return null==c||"*"!=a.o&&c!=a.o?!1:!0}; var CR=function(a,b){dd.call(this);this.C=a;this.B=b;this.o={};this.A=new Cm(this);this.A.P(ff(),"message",this.D)}; var DR=function(a,b,c,d){a.o.hasOwnProperty(b)||(c=new zR(b,c),a.A.P(c,a.C,function(a){a=new ER(a.type,a.kc,a.od,a.po,a.getOrigin(),b);this.$(a)}),c.Ic=d,c.connect(),a.o[b]=c)}; var ER=function(a,b,c,d,e,f){yR.call(this,a,b,c,d,e);this.B=f}; var FR=function(){var a=u("google.ima.gptProxyInstance",ff());if(null!=a)return a;Cm.call(this);this.B=new CR("gpt",!0);G(this,this.B);this.P(this.B,"gpt",this.F);this.o=null;GR()||ff().top===ff()||(this.o=new CR("gpt",!1),G(this,this.o),this.P(this.o,"gpt",this.D))}; var GR=function(){return!!u("googletag.cmd",ff())}; var HR=function(){var a=u("googletag.console",ff());return null!=a?a:null}; var IR=function(a,b,c,d,e,f,k,l,m,p,v,t){this.C=a;this.D=p;this.F=b;this.G=d;this.H=l;this.J=t;this.K=e;this.L=f;this.o=k;this.A=m;this.B=v}; var zaa=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,m,p,v,t){if("%"==p)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return JR[p].apply(null,arguments)})}; var KR=function(a,b){dd.call(this);this.C=new Cm(this);this.H=!1;this.J=Va();this.F=new wg;var c=this.J,d=("https:"==window.document.location.protocol?"https:":"http:")+zaa("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}f=f.parent}while(f!=f.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=M("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"}); Gm(this.C,c,"load",this.Zv);a.appendChild(c);this.A=c;c=this.F.get("*");null==c&&(c=new zR(this.J,"*"),this.H&&(c.Ic=zf(this.A),c.connect()),this.F.set("*",c));this.D=c;this.G=b;this.o=this.G.F;this.B=null;this.C.P(this.D,"mouse",this.qw);this.C.P(this.D,"touch",this.Gw);null!=this.o&&(this.C.P(this.D,"displayContainer",this.mw),this.C.P(this.D,"videoDisplay",this.Dw),this.C.P(this.o,Vb(Aaa),this.pB));c=ff();d=u("google.ima.gptProxyInstance",c);null==d&&(d=new FR,q("google.ima.gptProxyInstance",d, c))}; var LR=function(a,b){var c=$f(a.A),d=O(b,function(a){return window.document.createTouch(window,this.A,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a); return window.document.createTouchList.apply(window.document,d)}; var MR=function(a,b,c,d,e){if(!(e||null!=a&&yf(We(a),a)))throw fL(qR,null,"containerElement","element");this.B=a;var f=e=null!=b||null!=d,k=!1;zK.o||(zK.o||oL()||vL&&(!vL||!pL(wL,4))||tL())&&e||(kL()||tL()||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;zK.o?a=null:(e=M("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.A=a;this.o=this.D||!this.A||zK.o||!kL()?null:new pR(this.A,null,!0);a=null;this.D?b?a=new lQ(b):d&&(a=new rR(d)):this.o&&(a=new lQ(this.o.A));this.C=(this.F=a)? c||null:null;this.J=null!=this.C;yL(xL.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});null===this.A?(b=this.B,zK.B=b):this.D&&b&&!ga(b.getBoundingClientRect)&&(b=this.B,zK.B=b);this.G=null==this.A||zK.o?null:new KR(this.A,this)}; var NR=function(a){return a.J&&a.C?a.C:null!=a.o?a.o.B:null}; var OR=function(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,p=0;p<l.length;++p){var v=l[p];if(v.nodeName&&v.nodeName.toString().toLowerCase()==k){if(d==v){k="."+m;break a}++m}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)?e.defaultView||e.parentWindow:null;f=[];if(e)try{var t= e.parent;for(k=0;t&&t!=e&&25>k;++k){for(var y=t.frames,l=0;l<y.length;++l)if(e==y[l]){f.push(l);break}e=t;t=e.parent}}catch(x){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(t=0;t<PR.length-1;++t)c.push(Wg(a,PR[t])||"");t=Wg(a,"videoad_start_delay");y="";t&&(t=(0,window.parseInt)(t,10),y=0>t?"postroll":0==t?"preroll":"midroll");c.push(y)}else for(t=0;t<PR.length;++t)c.push("");c=c.join(":");t=c.length;if(0==t)c=0;else{y=305419896;for(d=0;d<t;d++)y^=(y<<5)+(y>>2)+c.charCodeAt(d)&4294967295;c=0< y?y:4294967296+y}return c.toString()}; var QR=function(){dd.call(this);this.currentTime=0}; var RR=function(a){QR.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw fL(qR,null,"content","currentTime");this.o=a;this.xa=new Qd(250);this.A=new Cm(this);Dm(this.A,this.xa,"tick",this.B,this)}; var SR=function(){this.reset()}; var TR=function(){this.A=this.o=null}; var UR=function(){this.o=VR();this.J=-1;this.M=this.S=this.C=this.H=this.D=null;this.B=VR();this.A=null;this.V=this.K=this.L="";this.G=this.O=this.U=this.F=null}; var VR=function(){return Math.floor(4503599627370496*Math.random())}; var WR=function(a){if(zK.o){var b;return"h.3.0.0"}b="h."+a.V;null!=a.F&&(b+="/n."+a.F,null!=a.D&&(b+="/"+a.D));return b}; var XR=function(a,b){dd.call(this);this.o=a;this.F=!!b;this.B=YR(this);if(!this.B){var c=vc&&!yc("7")?"readystatechange":"load";this.A=Nc(this.o,c,this.D,!1,this);this.C=window.setInterval(A(this.D,this),100)}}; var ZR=function(a){a.C&&(window.clearInterval(a.C),a.C=null)}; var YR=function(a){var b=!1;try{if(a.F||!vc||yc("11"))var c=a.o,d=(c.contentDocument||c.contentWindow.document).body,b=a.F?!!d&&!!d.firstChild:!!d;else b="complete"==a.o.readyState}catch(e){}return b}; var $R=function(){dd.call(this);this.C=!1;this.impressionUrls=[]}; var aS=function(a,b,c){jc.call(this,a);this.C=b||null;this.B=c||null}; var bS=function(a,b){this.G=a;this.F=O(b,function(a){return a.clone()}); this.D="";this.A=this.B=0;this.o=!0;this.C=[]}; var cS=function(a){a.D="";a.B=0;a.A=0;a.o=!0;a.C=[]}; var dS=function(){$R.call(this);this.H=[];this.D=!1;this.B="not_loaded";this.A=null;this.F=0;this.o=null;this.J=new Ve}; var eS=function(a){var b=["googletag","googletag.cmd"];return db(a,function(a){return Gg(b,function(b){return!ca(u(b,a))})})||null}; var fS=function(a){return a.C?O(a.H,function(a){return a.clone()}):[]}; var Baa=function(a){a=fS(a);return null!=a?O(a,function(a){return a.F}):void 0}; var gS=function(a,b,c){var d=0,e=0;null!=b&&(b=new N(b.o),d=Number(b.o.get("pod")||0),e=Number(b.o.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(hS.o,d,e,c)}catch(f){}}; var Caa=function(a,b){var c=iS(a);if(null!==c){gS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}; var jS=function(a,b){a.G=b;a.setVideoContent("","");var c=iS(a);null===c||gS(c,null,!1)}; var iS=function(a){null==a.o&&kS(a);return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.companionAds?a.o.googletag.companionAds():null}; var lS=function(a){null==a.o&&kS(a);return null!=a.o&&null!=a.o.googletag&&null!=a.o.googletag.pubads?a.o.googletag.pubads():null}; var mS=function(a){a.A&&(a.A.stop(),a.A.ya("tick",a.Jp,!1,a),a.A.dispose(),a.A=null)}; var nS=function(a){var b;if(b=!a.D)kS(a),b=null!=a.o&&null!=a.o.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.o)a.D=!0,c=[];else{var d=a.o.googleGetCompanionAdSlots();c=O(d,a.dC,a)}}catch(f){a.D=!0,c=[]}a.H=c;a.D=!0}if("retrieved"!=a.B&&"not_available"!=a.B&&!ca(iS(a))){var e;b=iS(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{e=b.getDisplayAdsCorrelator()}catch(f){e=null}else e=null;switch(e){case "not_loaded":case "not_available":a.B=e;break;default:e=Number(e),(0,window.isNaN)(e)?a.B= "not_available":(a.G=e,a.B="retrieved")}}a.D&&"retrieved"==a.B?(a.C=!0,mS(a),a.$(new aS("companions_success"))):a.D&&"not_available"==a.B?(a.C=!0,mS(a),oS(a)):a.A||(a.F=H()+5E3,a.A=new Qd(100),a.A.P("tick",a.Jp,!1,a),a.A.start())}; var kS=function(a){var b=If(a.J);try{a.o=eS([b,b.top])}catch(c){a.o=null}}; var oS=function(a){a.$(new aS("companion_initialization_failed",Error("Partial or full service initialization failure.")))}; var pS=function(a,b,c){a.$(new aS("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Nc(d,"click",A(a.Xy,a,b),!1,a)}; var qS=function(a,b){jc.call(this,a);this.B=b}; var rS=function(a){jc.call(this,a)}; var sS=function(){}; var tS=function(a,b){if(null==a||0>=a.width||0>=a.height)throw fL(qR,null,"ad slot size",a.toString());this.A=a;this.o=null!=b?b:new sS;this.D=uS(Daa,this.o.B)?this.o.B:"All";this.C=uS(Eaa,this.o.creativeType)?this.o.creativeType:"All";this.G=uS(Faa,this.o.C)?this.o.C:"SelectExactMatch";this.H=uS(Gaa,this.o.A)?this.o.A:"DisallowResize";this.B=null!=this.o.D?this.o.D:[];this.F=fa(this.o.o)&&0<this.o.o&&100>=this.o.o?this.o.o:90}; var vS=function(a,b){var c=[];E(b,function(a){!C(D(a.o.C))&&((0,window.isNaN)(a.o.o)||(0,window.isNaN)(wS(a))||wS(a)==a.o.o)&&xS(this,a)?c.push(a):(a=Haa(this,a),null!=a&&!C(D(a.o.C))&&c.push(a))},a); return c}; var xS=function(a,b){var c;if(c="Flash"!=b.getContentType()||yS){if(c="All"==a.D||a.D==b.o.da)c=b.getContentType(),c=null!=c?"All"==a.C||a.C==c:!0;c&&(c=b.B,c=kb(a.B)?!0:null!=c?0<=jb(a.B,c):!1)}if(c){var d=b.o.Vb();if("IgnoreSize"==a.G||se(a.A,d))c=!0;else if(c="SelectNearMatch"==a.G)"ResizeSmaller"==a.H&&(d=d.width<=a.A.width&&d.height<=a.A.height?d:zS(d,a.A)),c=d.width,d=d.height,c=c>a.A.width||d>a.A.height||c<a.F/100*a.A.width||d<a.F/100*a.A.height?!1:!0}else c=!1;return c}; var Haa=function(a,b){var c=b.A;return null!=c?db(c,function(a){return xS(this,a)},a):null}; var zS=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new re(c*a.width,c*a.height)}; var uS=function(a,b){return null!=b&&Ub(a,b)}; var AS=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}}; var BS=function(a){a=0>a?0:Math.round(a);return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)}; var Iaa=function(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Sa(d[0]),d=Sa(d[1]),0<a.length&&(b[a]=d))}); return b}; var CS=function(a,b){if(a[b])return DS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return DS(a[d]);return!1}; var DS=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}; var ES=function(a){N.call(this,a);this.G=new wg;a=this.B;var b=a.indexOf(";"),c=null;0<=b?(dh(this,a.substring(0,b)),c=a.substring(b+1)):dh(this,a);Jaa(this,c)}; var Jaa=function(a,b){C(D(b))||E(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=wa(a.substring(0,b));a=wa(a.substring(b+1));b=this.G.get(e);null!=b?ib(b,a)||b.push(a):b=[D(a)];this.G.set(e,b)}},a)}; var Kaa=function(a){if(C(D("ord")))return null;a=a.G.get("ord");return null!=a?a:null}; var FS=function(a,b,c){C(D(b))||(c=O(c,D),a.G.set(b,c))}; var GS=function(a,b){var c=[D(b)];tb(c,Laa(a));return c.join(";")}; var Laa=function(a){var b=Kaa(a);null!=b?C(D("ord"))||a.G.remove("ord"):b=[D(H())];var c=[];E(a.G.Na(),function(a){E(this.G.get(a),function(b){tb(c,a+"="+b)})},a); tb(c,"ord="+b[0]);FS(a,"ord",b);return c}; var HS=function(a){if(null==a)return!1;a=new N(a);var b=a.B;return ua(a.A,"googleads.g.doubleclick.net")&&IS("/pagead/ads",b)}; var JS=function(a){a=a.o;return null!=a?"bid.g.doubleclick.net"==hh(new N(a)):!1}; var KS=function(a){if(null==a)return!1;var b=new ES(a);a=b.A;b=GS(b,b.B);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&IS("/(ad|pfad)[x|i|j]?/",b)}; var LS=function(a){if(null==a)return!1;a=new N(a);var b=a.B;return ua(a.A,"doubleclick.net")&&IS("/gampad/(live/)?ads",b)}; var Maa=function(a){return HS(a.o)||KS(a.o)||LS(a.o)||JS(a)}; var Naa=function(a){a=a.o;if(null==a)return null;a=lh(new N(a));return null!=a.get("ms")?D(a.get("ms")):null}; var IS=function(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)}; var MS=function(a){return dL(Oaa,null,a.parentNode.nodeName,a.nodeName)}; var NS=function(a){return dL(Paa,null,a.parentNode.nodeName,a.nodeName)}; var OS=function(a,b){return null!=a?$d(sf(a),function(a){return a.nodeName==b}):[]}; var PS=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}; var QS=function(a,b){if(null==a)return null;var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue}); c=Sa(c);return b?Fa(c):c}; var RS=function(a,b,c,d){null!=a&&E(sf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw MS(a);})}; var SS=function(a){return C(D(a))?window.NaN:Xa(D(a))}; var TS=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Qy(0,0,0,Xa(c[0]),Xa(c[1]),Xa(c[2])),60*(60*(24*c.o+c.A)+c.B)+c.C}return null!=b?b:-1}; var US=function(a,b){if(!C(D(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1}; var VS=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ga(a,"/pagead/adview")?WS(a)?0:2:Ga(a,"/pagead/conversion")?WS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+WR(hS);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}; var WS=function(a){return Gg(Qaa,function(b){var c=a||"";return 0<=Vg(c,0,b,c.search(Xg))})}; var XS=function(a,b){this.o=a;this.A=b}; var YS=function(a){return a.A?-1:a.o}; var ZS=function(a,b){a.A&&(a.A=!1,a.o=a.o*b/100)}; var $S=function(){this.o=new wg}; var aT=function(a,b){this.B=a;this.o=b}; var bT=function(a,b){aT.call(this,"progress",a);this.A=b}; var cT=function(a,b){E(b,function(a){var b=a.getType().toLowerCase(),e=dT(this,b);e.push(a);this.o.set(b,e)},a)}; var eT=function(a,b,c,d){b=b.toLowerCase();var e=dT(a,b);null!=d?(d=new bT(c,d),null!=d?e.push(d):e.push(new aT(b,c))):e.push(new aT(b,c));a.o.set(b,e)}; var dT=function(a,b){return null!=b?a.o.get(b.toLowerCase())||[]:[]}; var Raa=function(a,b){var c=dT(a,"progress");E(c,function(a){ZS(a.A,b)}); Bb(c,function(a,b){return YS(a.A)-YS(b.A)})}; var fT=function(a,b){return O(dT(a,b)||[],function(a){return a.o})}; var gT=function(a,b){var c=new $S;RS(a,"Tracking",function(a){var e=PS(a,"event"),f=VS(QS(a),b);hT(f)&&null!=e&&("progress"==e?(a=PS(a,"offset"),a=iT(a),null!=a&&eT(c,e,f,a)):eT(c,e,f))}); return c}; var Saa=function(a){if(C(D(a)))return null;a=new N(a);if("thismessage"!=a.C||"extensions"!=a.A)return null;a=a.B;if(!ta(a,"/"))return null;a=a.substr(1);return C(D(a))?null:a}; var iT=function(a){if(C(D(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new XS(a,!0))):(a=TS(a),0<=a&&(b=new XS(a,!1)));return b}; var hT=function(a){var b=!0;if(C(D(a)))b=!1;else try{new N(a)}catch(c){b=!1}return b}; var jT=function(a,b){this.o=null!=a?a:new $S;this.H=null!=b?b:[]}; var Taa=function(a,b){var c=b.o;E(c.Na(),function(a){cT(this.o,c.get(a))},a)}; var kT=function(a,b){var c=fT(a.o,b);return null!=c?c:[]}; var lT=function(a,b){jT.call(this);this.A=a;this.B=b}; var mT=function(){}; var nT=function(a,b){jT.call(this,b);this.A=a}; var oT=function(a){jT.call(this);this.A=a}; var pT=function(a){jT.call(this);this.A=(0,window.isNaN)(a)?-1:a}; var qT=function(){this.aa=-1;this.L={};this.ea="";this.wf=new $S}; var rT=function(a,b,c){a.ea=b;a.L=c}; var sT=function(a,b){var c=[],d=a.ci();E(d,function(a){a=dT(a.wf,b)||[];c=rb(a,c)},a); return c}; var tT=function(a,b,c){var d=c||!1;return db(b.C,function(a){var b=a.o==this.o;return a instanceof this.constructor&&(d||b)},a)}; var uT=function(a,b,c,d,e){qT.call(this);C(D(a))&&(a=Va()+"_ima");this.V=D(a);this.ma=b;this.da=c;this.Da=d;this.C=e;this.J=[];null!=this.Da?this.fa=vT[this.Da]||"Other":this.fa=null}; var Uaa=function(){this.A=this.C=1;this.o=this.B=0;this.D=1}; var wT=function(a,b,c,d,e,f,k,l,m,p){this.C=a;this.o=b;this.G=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.Sd=e;this.Rd=f;this.F=k;this.D=l;this.A=TK(D(m));this.B=p}; var xT=function(a,b,c,d,e,f){qT.call(this);this.Jf(a);this.B=b;this.A=c;this.K=sb(d);this.ia=null;this.C=e;this.Ra=sb(f);wb(this.Ra,null,function(a){return a.J})}; var yT=function(a){var b=new wg,c=a.ci();E(c,function(a){if(a instanceof xT){var c=a.A;E(c.Na(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a); return b}; var Vaa=function(a){a=db(a.K,function(a){return!C(D(a.o))&&-1!=a.o.indexOf("javascript")&&("VPAID"==a.B||"surveys"==a.B)}); return null!=a?a.A:null}; var zT=function(a,b,c){F.call(this);this.A=a;this.B=b;this.C=c;this.F=0;this.o=new Cm(this);Waa(this)}; var Waa=function(a){a.C.forEach(function(a,c){this.o.P(c,"mousedown",this.G);this.o.P(c,"mouseup",this.J)},a); a.o.P(a.B,"mouseover",a.H)}; var AT=function(a,b,c,d,e){uT.call(this,a,b,c,d,e);this.Y=this.A=null;this.ha=-2;this.B=null;this.U=this.M=w;this.Z=[];this.sa=[];this.D=!1}; var BT=function(a,b){a.B=b;null!=a.A&&null!=b&&(CT(a,a.M),DT(a,a.U))}; var CT=function(a,b){null!=a.B&&null!=a.A&&E(a.Z,function(a){this.B.ya(a,"click",this.M);!C(D(this.Wc()))&&this.B.P(a,"click",b)},a); a.M=b}; var DT=function(a,b){null!=a.B&&null!=a.A&&(a.B.ya(a.A,"creativeview",a.U),a.B.P(a.A,"creativeview",b));a.U=b}; var ET=function(a,b){var c=a.V,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.getWidth()+"px");C(D(c))||(d.id=c);return M("div",d,b)}; var FT=function(a){if(!a.D)return null;var b=sT(a,"start");tb(b,sT(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];E(b,function(a){if(!C(D(a))){var b;b=Ue();var f;f=z(void 0)?Ge(void 0).jd():"";b=b.dw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+f,src:Xaa});Mf(b,{display:"block",height:"0px",width:"0px"});f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",TK(a.o));b.setAttribute("id",f);this.sa.push(f);nb(c,b)}},a); return c}return null}; var Yaa=function(a,b){if(null!=a.A){var c=new wg;E(a.Z,function(a){c.set(a,this.Vn(a))},a); new zT(b,a.A,c)}}; var Zaa=function(a){var b=[],c=a.ci();E(c,function(a){b=rb(b,a.J)},a); return b}; var GT=function(a,b,c){var d=c||!1;return db(b.C,function(a){var b=a.o==this.o;return this instanceof a.constructor&&(d||b)},a)}; var HT=function(a,b,c,d,e,f,k,l,m,p,v,t,y,x,L,ha){this.da=a;this.Y=b;this.L=c;this.Ga=d;this.Ra=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.aa=l?sb(l):[];this.K=m?sb(m):[];this.C=p?sb(p):[];this.Z=[];this.H=[];this.G=null;this.Da=[];this.fa=!0;this.o=this.A=null;this.J=new wg(t);this.M=null!=ha;this.Ca=(this.S=null!=y)?x||!1:!1;this.Ea=this.Fx?L||!1:!1;this.Ia=D(y);this.La=D(ha);this.za=this.B=null;this.D=new Uaa;this.U=new re(0,0);this.ea=String(Math.floor(1E9*Math.random()));this.O=this.V=this.F= null;this.sa=H();this.ha=this.ka=0;this.ma=this.ia=!1;E(this.C,function(a){a.S=this},this); IT(this,v)}; var JT=function(a){var b;b=KT(a);b=CS(b,"hideMaster")||CS(b,"blockAllAds")?"3":LT(a)?MT(a)?"2_3":NT(a)?"2_4":OT(a)?PT(a)?"2_5":QT(a)?"2_1":"2_2":"2":"1";return(RT(a)?4:ST(a,$aa)?15:TT(a,aba)||TT(a,UT)?1:VT(a)?2:0)+"_"+b}; var WT=function(a){return null!=a.Y?a.Y:""}; var XT=function(a){return null!=a.o?rb(XT(a.o),a.aa):a.aa}; var ZT=function(a){return null!=a.o?rb(ZT(a.o),a.K):a.K}; var $T=function(a){return null!=a.o?rb(a.H,$T(a.o)):a.H}; var KT=function(a){return null!=a.A?a.A.L:{}}; var bba=function(a){var b={};E(a.C,function(a){a=a.L;for(var d in a)b[d]=a[d]}); return b}; var cba=function(a){return null!=a.A?a.A.ea:""}; var aU=function(a,b){a.A=b;a.U=null!=a.A&&a.A instanceof AT?a.A.Vb():new re(0,0)}; var bU=function(a){return a.A}; var cU=function(a){return null!=a.da?a.da:""}; var dU=function(a){if(null==a.o||eU(a.o.L))return[];var b=[cU(a.o)];tb(b,dU(a.o));return b}; var dba=function(a){var b=dU(a).reverse();b.push(cU(a));return b}; var fU=function(a){if(null==a.o||eU(a.o.L))return[];var b=[WT(a.o)];tb(b,fU(a.o));return b}; var gU=function(a){if(!V())return null;if(null!=a.o){var b=gU(a.o);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.A:null}; var eba=function(a){var b=fU(a).reverse();b.push(WT(a));return b}; var eU=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a}; var hU=function(a){if(null==a.o)return[a.L];var b=hU(a.o);b.push(a.L);eU(b[0])&&b.shift();return b}; var iU=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.A?a.A:-1}; var jU=function(a){if(-1!=a.Ra)return a.Ra;a=a.getExtension("pod");return null!=a&&-1!=a.A?a.A:-1}; var kU=function(a,b,c,d){a=$T(a);return vS(new tS(new re(b,c),d),a)}; var lU=function(a){var b=a.B.nf,c=a.B.mf;if(!b||!c)if(a=a.B.o?Wg(a.B.o,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new re(b,c)}; var fba=function(a){if(!a.B||mU(a)&&!ST(a,["ADSENSE/ADX"]))return[];var b=lU(a);if(0>=b.width||0>=b.height)return[];var c=new sS;c.creativeType="All";c.B="All";c.C="SelectNearMatch";c.o=40;var d=kU(a,b.width,b.height,c);if(!kb(d))return d;c.A="ResizeSmaller";d=$d($T(a),function(a){return a.o.Hg()},a); return vS(new tS(new re(b.width,b.height),c),d)}; var gba=function(a){var b=null,c=0;E(fba(a),function(a){var e;e=lU(this);e=!a.o.Hg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.o.Vb():zS(a.o.Vb(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a); return b}; var nU=function(a,b){return b||null==a.o?a.Z:rb(a.Z,nU(a.o))}; var IT=function(a,b){a.Z=b?sb(b):[];E(a.Z,function(a){tb(this.H,sb(a.o))},a); E(a.H,function(a){oU(a,this)},a); V()&&LT(a)&&(a.H=$d(a.H,function(a){return 60>=a.getHeight()}))}; var pU=function(a,b){return Ih(a.C,function(a){return a instanceof xT&&"linear"==b||a instanceof AT&&"nonlinear"==b?!0:!1})}; var NT=function(a){return-1!=qU(a)&&0!=qU(a)&&7>=qU(a)}; var LT=function(a){return a.ia?a.ma:rU(a)?!0:mU(a)?"video"==a.Ga:pU(a,"linear")}; var OT=function(a){return null!=sU(a)}; var rU=function(a){var b=a.A;return mU(a)&&null!=b&&b instanceof AT&&(90<a.U.height||null!=a.B&&a.B.df)}; var tU=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:tU(a,b.o)}; var PT=function(a){a=a.getExtension("AdSense");if(null==a)return!1;a=dT(a.o,"video_extend_clicked");return V()?0!=a.length:!1}; var sU=function(a){var b=tU(a,a.o);if(null!=b){if("skippable"==b.A)return b.B;if("nonskippable"==b.A)return null}var b=null,c=new XS(5,!1),d=hba(a);"implicit"==d&&(b=c);var e=a.A;null==b&&null!=e&&e instanceof xT&&(b=e.C);null!=b||"explicit"!=d||(b=c);return null!=b&&V()?a.B.Cc("disable_skip_on_short_adsense")&&!MT(a)&&mU(a)&&33>=uU(a)?null:(0,window.isNaN)(a.B.F)?c:new XS(a.B.F,!1):b}; var hba=function(a){if(null!=db(a.J.Ka(),function(a){return!kb(kT(a,"skip"))}))return"implicit"; var b=a.J.get("DFP");if(b instanceof nT)switch(b.A){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.A;return V()&&null!=a&&(a=a.wf,null!=a&&!kb(dT(a,"skip")))?"explicit":"none"}; var vU=function(a){if(null==a.B)return!1;var b=a.B.o;null!=b&&ua(b,"/PrefetchedAd")&&null!=a.o&&(b=a.o.J.get("LocalRedirect"),b=null!=b?b.hd():null);(a=HS(b)||LS(b)||KS(b))||(null!=b?(b=hh(new N(b)),a=ua(b,"viral.adsense.net")):a=!1);return a}; var QT=function(a){if(null==a.Y||null==a.B)return!1;var b;(b=vU(a)||!1)&&!(b=mU(a)&&!ST(a,["ADSENSE/ADX"]))&&(ST(a,UT)?(b=a.J.get("DFP"),b=null!=b?"InstreamSelect"==b.A:!1):b=!1);if(b||a.o&&a.o.M&&vU(a.o))return!0;a=TT(a,["ADSENSE/ADX"])||a.o&&VT(a);return V()&&!a}; var wU=function(a){return null===a.A?null:a.A.Wc()}; var uU=function(a){return null!=a.A?a.A.Vk():-1}; var xU=function(a){return null!==a.G?10:kb(a.Da)?0:(a=a.B.hi("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3))}; var qU=function(a){return uU(a)+xU(a)}; var yU=function(a){return null===a.A?null:a.A.Wk()}; var mU=function(a){return ST(a,zU)}; var RT=function(a){return null!=a.o&&RT(a.o)||ST(a,iba)}; var MT=function(a){var b=yU(a);return ST(a,["402"])||z(b)&&!ca(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}; var AU=function(a){return mU(a)&&QT(a)&&!NT(a)&&!C(D(a.F))&&!ca(sU(a))&&0<YS(sU(a))}; var VT=function(a){return TT(a,zU)||TT(a,["402"])}; var BU=function(a){return a.F}; var CU=function(a){a=a.getExtension("InfoCards");return null!=a?a.A:null}; var DU=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.A:null}; var ST=function(a,b){return null!=a.Y?ib(b,a.L):!1}; var TT=function(a,b){for(var c=hU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(ib(b,c[d]))return!0;break}return!1}; var EU=function(a){var b=MT(a)&&V();if(a=null!=yU(a))a=0!=zK.F||b;return a}; var FU=function(){dd.call(this);this.B=[]}; var GU=function(){return new HT("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new wg)}; var HU=function(a){FU.call(this);this.o=a;this.G=null;this.H=!1;this.C=null;this.D=new Cm;Dm(this.D,this.o,["companions_success","companion_initialization_failed"],this.LA,this);Dm(this.D,this.o,"companion_display_error",this.Zy,this);Dm(this.D,this.o,["companion_slot_init","companion_click"],this.Vy,this);this.o.C?this.H=!0:this.o.initialize()}; var IU=function(a,b){Lb(a.A);a.A=new dd;a.C=b;a.F=!0;a.H?JU(a):(a.F=KU(LU(b),[]),a.F||(a.C=null,a.A=null));return a.A}; var JU=function(a){var b=a.C;a.C=null;if(null!=a.o)if(kb(a.B))MU(a,Error("Companion slots not available."));else if(null!=b){var c=jba(a,b),d=a.o;try{d.o.googleSetCompanionAdContents(O(a.B,d.$u,d)),d.sendImpressionUrls()}catch(f){d.$(new aS("companion_display_error",f))}if(0<c.length&&b.fa){a=a.o;if(d=0!=c.length)d=hU(b),d=eU(d[0])&&1<d.length?d[1]:d[0],d="GDFP"==d;if(d){for(var d=[],e=0;e<c.length;e++)d.push(c[e].G);b=b.B;c=iS(a);if(null!==c){gS(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else MU(a, Error("Invalid master ad."))}; var MU=function(a,b){a.$(new qS("companion_display_error",b))}; var kba=function(a){LK(HK(),9419278)&&bL(a)}; var jba=function(a,b){var c=[],d=[];E(a.B,function(a){cS(a);Ih(a.F,function(d){a:{d=kU(b,d.width,d.height);if(!kb(d)&&(d=lba(d,c),null!=d)){var e=d.B;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),m=d.getWidth(),p=d.getHeight(),v="IFrame"!=d.o.da;d=d.o.J;a.D=e;a.B=m;a.A=p;a.o=v;a.C=d||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a); var e=LU(b);a.F=KU(e,c);a.F||E(a.B,function(a){cS(a)},a); return d}; var KU=function(a,b){if(null==a)return!0;var c=a.o;return"all"==a.A?mba(c,b):"any"==a.A?nba(c,b):!0}; var LU=function(a){return null==a||null==a.A||(0,window.isNaN)(a.A.o)?null:db(nU(a,!0),function(a){a=a.o;return kb(a)?!1:(0,window.isNaN)(a[0].o.o)?!1:a[0].o.o==wS(a[0])})}; var mba=function(a,b){return Gg(a,function(a){return ib(b,a)})}; var nba=function(a,b){return Ih(a,function(a){return ib(b,a)})}; var lba=function(a,b){return db(a,function(a){return!ib(b,a)})}; var NU=function(a){this.o=a}; var OU=function(a,b){jc.call(this,"adsManagerLoaded");this.B=a;this.C=b}; var PU=function(a,b,c,d){a.B.Hd(new NU(b),c,d);return a.B}; var QU=function(a){jc.call(this,a);this.F=[];this.D={};this.B=null;this.C=!0}; var RU=function(){this.B=new wg;this.A=!V()&&.01>Math.random();this.C=0;this.o="0";this.D=""}; var oba=function(){var a=RU.getInstance();a.sendMessage("ff",a.C);a.C=0}; var SU=function(a,b,c,d){d=d||{};var e=new N("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc=html5");d.cid=pba(a);d.utv=b;d.utt=c;d.cd6=WR(hS);b=NK(HK());C(D(b))||(d.xid=b);Ob(d,function(a,b){mh(e,b,a)},a); return e.toString()}; var qba=function(a,b){if(null!=b){var c=wa(b),d=rba.exec(c),c=D(lh(new N(c)).get("client"));a.o=d&&2==d.length?d[1]:C(c)?"0":c}else a.o="0"}; var pba=function(a){C(a.D)&&(a.D="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;return("x"==a?c:c&3|8).toString(16)})); return a.D}; var TU=function(a,b,c){this.F=b;this.C=c;this.D=null;this.A=new Cm(this);this.K=a;this.B=this.o=null;this.H=!1}; var sba=function(a){if(null===a.D)UU(a);else{var b=new N(a.D.o),c=D(b.o.get("vid")),b=D(b.o.get("cmsid")),d=a.C.L,e=a.C.K;a.C.L=c;a.C.K=b;if(C(D(c))||C(D(b)))UU(a);else if(c==d&&b==e)UU(a);else{var f=a.F.Be();f.setVideoContent(c,b);Caa(f,a.D);a.B=new Qd(100);Dm(a.A,a.B,"tick",function(){var a;a:{var b=lS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&UU(this)},a); a.B.start()}}}; var tba=function(a){a.o=new Qd;Im(a.A,a.o,"tick",function(){UU(this)},a); Rd(a.o,a.K);a.o.start()}; var UU=function(a){null!=a.A&&(a.A.dispose(),a.A=null);null!=a.o&&(a.o.stop(),a.o=null);null!=a.B&&(a.B.stop(),a.B=null);a.H=!0;null===a.G||a.G()}; var VU=function(){dd.call(this);this.o=new wg;this.A=null;this.F=new Cm(this);G(this,this.F);this.D="";this.G=this.B=null}; var WU=function(){null!=XU||(XU=new VU);return XU}; var YU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;WU().$(new rK("measurable_impression",null,c))}; var ZU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;WU().$(new rK("viewable_impression",null,c))}; var $U=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;WU().$(new rK("externalActivityEvent",null,d))}; var uba=function(a,b){a.B=b}; var vba=function(a,b){if(a.A){var c=200,d=HK();LK(d,31061771)?c=300:LK(d,31061772)?c=400:LK(d,31061773)&&(c=500);var e=a.o,c=window.setTimeout(function(){b("timeout");E(e.Na(),function(a){e.get(a)===b&&e.remove(a)})},c); a.o.set(c,b);d={};a.C&&(d.isFullscreen=a.C.Pd());d.osdId=a.D;d.eventId=c;a.A.send("activityMonitor","fetchAdTagUrl",d)}else b("")}; var wba=function(a,b,c,d){if(a.A){var e=a.o,f=window.setTimeout(function(){d({viewability:"timeout"});E(e.Na(),function(a){e.get(a)===d&&e.remove(a)})},200); a.o.set(f,d);var k={};a.C&&(k.isFullscreen=a.C.Pd());a.D&&(k.osdId=a.D);k.queryId=c;k.eventId=f;k.vastEvent=b;k.isOverlay=null!=a.B;a.B&&(k.overlayBounds=MP(a.B));a.A.send("activityMonitor","reportVastEvent",k)}else d({})}; var aV=function(){}; var bV=function(a,b,c){this.A=a;this.o=c;this.B=b}; var xba=function(a){this.B=a}; var cV=function(a){this.B=a;this.A=this.o=!1}; var yba=function(a,b,c){this.o=a;this.A=b;this.B=c}; var dV=function(){this.o=new wg}; var eV=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");var d=[];xg(a.o,c)&&(d=a.o.get(c,[]));E(b,function(a){null!=a&&nb(d,a)}); a.o.set(c,d)}; var fV=function(a,b){this.o=a;this.A=b}; var zba=function(a){var b=new dV;E(sf(uf(a.o)),function(a){switch(a.nodeName){case "Preroll":a=gV(this,a);eV(b,a,0);break;case "Midroll":var d=PS(a,"timeOffset"),e=TS(d);if(-1==e)throw dL(hV,null,"timeOffset",D(d));a=gV(this,a);eV(b,a,e);break;case "Postroll":a=gV(this,a);eV(b,a,-1);break;default:throw dL(iV,null,a.parentNode.nodeName,a.nodeName);}},a); if(0==b.o.Na().length)throw dL(Aba);return b}; var gV=function(a,b){var c=[];E(sf(b),function(a){switch(a.nodeName){case "Ad":var b=D(QS(a));if(!C(b)){a=PS(a,"bumper");var f=this.A.clone();f.o=b;b=new cV(f);b.o=null!=a;b.A="always"==a;nb(c,b)}break;default:throw dL(iV,null,a.parentNode.nodeName,a.nodeName);}},a); return c}; var jV=function(){this.C=null;this.D="http://www.google.com/adsense/support";this.F=0;this.o=15;this.B=5;this.A=3}; var Bba=function(a,b){a.o=b}; var kV=function(a,b,c,d,e,f,k,l,m,p,v){jT.call(this,p,v);this.D=a;this.F=b;this.B=c;this.G=m;this.J=k;this.C=f;this.A=e}; var lV=function(){}; var Cba=function(a,b){var c;E(sf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new jV:null;break;case "params":null!=c&&Dba(this,c,a)}},a); return c}; var Dba=function(a,b,c){E(sf(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.D=c;break;case "attribution_text":b.C=c;break;case "signals":b.F=(0,window.parseInt)(c,10)}},a)}; var mV=function(){}; var nV=function(){}; var oV=function(){}; var pV=function(){}; var qV=function(a,b){a[b]||(a[b]=[]);return a[b]}; var rV=function(a,b){return a[b]?a[b].length:0}; var sV=function(a,b){if(null==a||null==b)return null==a==(null==b);if(a.constructor!=Array&&a.constructor!=Object)throw Error("Invalid object type passed into JsProto.areObjectsEqual()");if(a===b)return!0;if(a.constructor!=b.constructor)return!1;for(var c in a)if(!(c in b&&Eba(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0}; var Eba=function(a,b){if(a===b||!(!0!==a&&1!==a||!0!==b&&1!==b)||!(!1!==a&&0!==a||!1!==b&&0!==b))return!0;if(a instanceof Object&&b instanceof Object){if(!sV(a,b))return!1}else return!1;return!0}; var tV=function(a){this.o=a||{}}; var uV=function(a){this.o=a||{}}; var vV=function(a){this.o=a||{}}; var wV=function(a){this.o=a||{}}; var xV=function(a){this.o=a||{}}; var yV=function(a){this.o=a||{}}; var zV=function(a){this.o=a||{}}; var AV=function(a){this.o=a||{}}; var BV=function(a){this.o=a||{}}; var CV=function(a){this.o=a||{}}; var DV=function(a){this.o=a||{}}; var EV=function(a){this.o=a||{}}; var FV=function(a){this.o=a||{}}; var GV=function(a,b){return new uV(qV(a.o,"card")[b])}; var HV=function(a){return(a=a.o.placement)?new wV(a):IV}; var JV=function(a){a=a.o.show_in_endcap;return null!=a?a:!1}; var KV=function(){if(!LV){var a={};LV={Kb:a};a.type={type:"e",label:1,oa:0};a.id={type:"s",label:1,oa:""};a.link_url={type:"s",label:1,oa:""};a.title={type:"s",label:1,oa:""};a.image={type:"m",label:1,oa:Fba,qa:MV()};a.event={type:"m",label:3,qa:NV()};a.target={type:"s",label:1,oa:""}}return LV}; var NV=function(){if(!OV){var a={};OV={Kb:a};a.type={type:"e",label:1,oa:0};a.base_url={type:"s",label:1,oa:""}}return OV}; var MV=function(){if(!PV){var a={};PV={Kb:a};a.image_url={type:"s",label:1,oa:""};a.thumbnail_url={type:"s",label:1,oa:""};a.image_height={type:"i",label:1,oa:0};a.image_width={type:"i",label:1,oa:0}}return PV}; var QV=function(a,b,c){jT.call(this,c);this.A=a;this.B=b||null}; var RV=function(a){this.o=a}; var SV=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Kb[f.nodeName];if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=TV[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){var k= c.Kb[f.nodeName],l=SV(a,f,k.qa);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d}; var UV=function(a,b){jT.call(this);this.B=a;this.A=D(b)}; var VV=function(a,b){this.logger=null;this.B=b;this.o={};this.A=[];this.o.CustomTracking=gT;this.o.UI=this.D}; var WV=function(a,b){if(null==b)return null;var c={};E(sf(b),function(a){c[a.nodeName]=null!=this.o[a.nodeName]?this.o[a.nodeName].call(this,a):null},a); return null==c.UI?null:c}; var XV=function(a,b,c,d,e,f){jT.call(this,f);this.B=a;this.D=b;this.F=c;this.C=d;this.A=e}; var YV=function(a){return null!=a.A?a.A.length:0}; var ZV=function(){VV.call(this,0,"mute_");this.o.SurveyOptions=this.C}; var $V=function(a,b,c,d){jT.call(this);this.C=a;this.B=b;this.D=c;this.A=d}; var aW=function(){}; var bW=function(){jT.call(this)}; var cW=function(){}; var Gba=function(a,b){E(sf(b),function(a){a.nodeName==this.o.Nu&&QS(a)},a)}; var dW=function(a,b,c,d){jT.call(this);this.B=a;this.C=b;this.D=c;this.A=d}; var eW=function(){}; var fW=function(a){jT.call(this);this.A=a}; var gW=function(){}; var hW=function(a,b,c,d,e,f,k,l,m,p,v){jT.call(this,d);this.K=a;this.L=b;this.J=c;this.D=e||null;this.C=f||null;this.M=k||null;this.B=l||null;this.A=m||null;this.G=p||null;this.F=v||null}; var iW=function(){VV.call(this,0,"why_this_ad_");this.A.push("targeting_reason")}; var jW=function(a,b){return null!=a?Gg(b,function(b){return b in a}):!1}; var Hba=function(a,b){return null!=a?Ih(b,function(b){return b in a}):!1}; var kW=function(){}; var lW=function(){jT.call(this)}; var mW=function(){}; var nW=function(){}; var Iba=function(a,b){this.o=a;this.A=b}; var oW=function(a,b,c){this.o=a;this.A=b;this.B=c}; var wS=function(a){a=bU(a.o.getAd());return null!=a?a.o:window.NaN}; var oU=function(a,b){a.o.S=b;E(a.A,function(a){oU(a,b)},a)}; var Jba=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Fb?'<a class="text-image-link" target="_blank" href="'+X(a.Fb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+X(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+X(a.duration)+"</div>":"")+"</a>":"")+(a.Fb?'<a class="text-title" href="'+X(a.Fb)+'" target="_blank" dir='+X(a.dir)+">"+X(a.title)+"</a>":"")+'<div class="text-description" dir='+ X(a.dir)+">"+X(a.text)+"</div>"+(a.Xq&&a.Fb?'<a target="_blank" href="'+X(a.Fb)+'" class="text-ad-channel">'+X(a.Xq)+"</a>":"")+"</div></div>"}; var Kba=function(a){return'<div class="flash-container '+(a.$e?"click-capture":"")+'">'+(a.Fb?'<a class="click-layer" target="_blank" href="'+X(a.Fb)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+X(a.width)+'" height="'+X(a.height)+'"><param name="movie" value="'+X(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+ ZQ(a.Fb)+'"><embed width="'+X(a.width)+'" height="'+X(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+X(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+ZQ(a.Fb)+'"></object></div>'}; var Lba=function(a){return'<div class="image-container" id="'+X(a.id)+'" style="width:'+X(a.width)+";height:"+X(a.height)+';">'+(a.Fb?'<a target="_blank" href="'+X(a.Fb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0"></a></div>'}; var Mba=function(a){return'<div class="image-container" id="'+X(a.id)+'">'+(a.Fb?'<a target="_blank" href="'+X(a.Fb)+'">':'<a target="_blank">')+'<img src="'+X(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'}; var pW=function(a,b,c,d){AT.call(this,a,b,"Static",c,d);this.Dn=!1}; var qW=function(a,b,c,d){AT.call(this,a,b,"Html",c,d)}; var rW=function(a,b,c,d){AT.call(this,a,b,"Static",c,d)}; var sW=function(a,b){AT.call(this,a,b,"Static","text","")}; var tW=function(a,b,c,d,e){AT.call(this,a,b,c,d,e)}; var uW=function(a,b,c){if(kb(c))return new AT(a,b,"",null,"");var d=vW(c);c=d.A;var e=d.o,d=d.B;switch(c){case "Html":return new qW(a,b,e,d);case "Static":switch(vT[e]){case "Image":return new rW(a,b,e,d);case "Flash":return new pW(a,b,e,d);case "Text":return new sW(a,b)}}return new tW(a,b,c,e,d)}; var vW=function(a){var b=db(a,function(a){return"Static"==a.A&&"Flash"==vT[a.o]}),c=db(a,function(a){return"IFrame"==a.A}),d=db(a,function(a){return"Html"==a.A}),e=db(a,function(a){return"Static"==a.A&&"Image"==vT[a.o]}),f=db(a,function(a){return"Static"==a.A&&"Text"==vT[a.o]}); return yS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]}; var Nba=function(a,b,c,d,e,f){var k=vW(f),l=uW(a.id,a.size,[k]);l.D=!0;l.H=a.apiFramework;l.O=b;l.J=c;l.o=d;e&&(l.wf=e);ob(f,k);var m=[];E(f,function(f){f=uW(a.id,a.size,[f]);f.D=!0;f.H=a.apiFramework;f.O=b;f.J=c;f.o=d;e&&(f.wf=e);m.push(new oW(f,[],a.adSlotId))}); return new oW(l,m,a.adSlotId)}; var wW=function(a,b,c){this.A=a;this.o=b;this.B=c}; var xW=function(a,b,c,d,e,f,k){this.B=a;this.J=b;this.D=c;this.F=d;this.A=e;this.G=f;this.H=k;this.o=this.B.we()}; var Oba=function(a){"none"==a.o.style.display&&(lg(a.o,!0),E(a.H,function(a){ZK(a)}))}; var Pba=function(a,b,c,d,e,f,k,l,m,p){b=uW("icon"+a,b,p);b.H=k;b.O=l.iconClickThrough;return new xW(b,a,c,d,e,f,m)}; var yW=function(a){this.C=a;this.logger=null}; var zW=function(a){if(null==a)return!1;a=uf(a);return null!=a&&"VAST"==a.nodeName}; var AW=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return fa(a)&&!(0,window.isNaN)(a)?a:0}; var Qba=function(a){var b=[],c=uf(a.C),d=AW(c);RS(c,a.o.Us,function(a){var c;c=BW(a);if(null==c)throw MS(a);var k=a.getAttribute(this.A.xh);a=Number(a.getAttribute(this.A.an));c=Rba(this,c,k||null,a||0);null!=c&&(c.ha=d,b.push(c))},a); return b}; var BW=function(a){var b=null;E(sf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw MS(a);}}); return b}; var Rba=function(a,b,c,d){var e,f,k=[],l=[],m=[],p=[],v=new wg,t,y=b.nodeName==a.o.WRAPPER,x=y,L=y,ha;E(sf(b),function(a){switch(a.nodeName){case this.o.Ou:if(y){if(null!=t)throw NS(a);t=QS(a);ha=Saa(t);x=US(b.getAttribute(this.A.Zs),x);L=US(b.getAttribute(this.A.Rt),L)}else throw MS(a);break;case this.o.Ws:e=QS(a);break;case this.o.Xs:f=QS(a);break;case this.o.Ft:QS(a);break;case this.o.Lu:QS(a);break;case this.o.zh:a=QS(a);hT(a)&&k.push(VS(a));break;case this.o.ERROR:a=QS(a);l.push(VS(a));break; case this.o.zt:a=Sba(this,a);m=a.creatives;p=a.xv;break;case this.o.Ot:v=Tba(this,a,ha)}},a); return new HT(D(c),e,Uba(e),f,0,0,d,l,k,m,p,v,t,x,L,Vba(v))}; var Vba=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=kT(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b}; var Uba=function(a){if(C(D(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:FREEWHEEL":case "VIRAL":return a;default:return"UNKNOWN"}}; var Wba=function(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}; var Tba=function(a,b,c){var d=new wg;try{var e=OS(b,a.o.Nt);E(e,function(a){var b=a.getAttribute(this.A.mn);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new mW).parse(a);break;case "pod":a=(new kW).parse(a);break;case "waterfall":a=(new nW).parse(a);break;case "dart":a=(new nV).parse(a);break;case "dfp":b="DFP";a=(new oV).parse(a);break;case "adsense":b="AdSense";a=(new mV).parse(a);break;case "textad":b="TextAd";a=(new eW).parse(a);break;case "templatead":b="TemplateAd";a=(new cW).parse(a); break;case "infocards":var b="InfoCards",e=new RV(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new RV(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=OS(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+yz(uf(m[0])));a=OS(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new UV(e,m)}else a=null;break;case "viral":b="viral";a=(new gW).parse(a);break;case "adx":b="adx";a=(new mT).parse(a);break;case "why_this_ad":b= "why_this_ad";a=(new iW).parse(a);break;case "mute":b="mute";a=(new ZV).parse(a);break;case "sodar":a=(new aW).parse(a);break;default:e=new pV,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(Taa(e,a.o),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ga(f.getErrorCode)||1105==f.getErrorCode())throw f; }return d}; var Sba=function(a,b){var c=[],d=[];RS(b,a.o.xt,function(a){var b=a.getAttribute(this.A.an),k;C(D(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.A.xh),m=!1;E(sf(a),function(a){switch(a.nodeName){case this.o.LINEAR:if(m)throw NS(a);a=Xba(this,a,(0,window.isNaN)(k)?0:k,l||null);tb(c,a);m=!0;break;case this.o.COMPANION_ADS:if(m)throw NS(a);a=CW(this,a,(0,window.isNaN)(k)?void 0:k);tb(d,a);m=!0;break;case this.o.NON_LINEAR_ADS:if(m)throw NS(a);a=Yba(this,a,(0,window.isNaN)(k)?0:k,l||null); tb(c,a);m=!0}},this)},a); return{creatives:c,xv:d}}; var Yba=function(a,b,c,d){var e=[],f=new $S;E(sf(b),function(a){switch(a.nodeName){case this.o.qu:a=Zba(this,a,c,d);null!=a&&e.push(a);break;case this.o.Nj:f=gT(a);break;default:throw MS(a);}},a); 0!=e.length||f.isEmpty()||(a=new AT(null,new re(-1,-1),"",null,""),a.o=c,a.ka=d,e.push(a));E(e,function(a){f&&(a.wf=f)}); return e}; var DW=function(a,b){var c={};c.id=b.getAttribute(a.A.xh);c.adSlotId=b.getAttribute(a.A.Vs);c.apiFramework=b.getAttribute(a.A.uh);var d=Xa(b.getAttribute(a.A.Bh)),e=Xa(b.getAttribute(a.A.vh));c.size=new re(d,e);d=b.getAttribute(a.A.Lt);e=b.getAttribute(a.A.Kt);C(D(d))||C(D(e))||(c.tJ=new re(Xa(d),Xa(e)));return c}; var Zba=function(a,b,c,d){var e=DW(a,b);b.getAttribute(a.A.uh);b.getAttribute(a.A.Bu);b.getAttribute(a.A.hu);var f=b.getAttribute(a.A.ou),f=TS(f,-1),k=[];new wg;var l={},m="",p,v=[];E(sf(b),function(a){switch(a.nodeName){case this.o.tu:v.push(QS(a));break;case this.o.ru:p=QS(a);break;case this.o.Ij:l=EW(a);m=D(QS(a));break;case this.o.yh:case this.o.Ah:case this.o.wh:a=FW(this,a);null!=a&&k.push(a);break;default:throw MS(a);}},a); a=uW(e.id,e.size,k);rT(a,m,l);a.H=e.apiFramework;a.O=p;a.J=v;a.ha=f;a.o=c;a.ka=d;return a}; var FW=function(a,b){var c=PS(b,a.A.At);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.o.Ah:d="Static";break a;case a.o.yh:d="IFrame";break a;case a.o.wh:d="Html";break a;default:throw dL($ba,null,d);}var e=QS(b);null!=e||(e="");return new wW(d,c,e)}; var CW=function(a,b,c){var d=[],e=Wba(PS(b,a.A.zu));RS(b,a.o.qt,function(a){a=aca(this,a,c);null!=a&&d.push(a)},a); return new Iba(d,e)}; var aca=function(a,b,c){var d=DW(a,b),e=[],f=new $S,k,l=[];E(sf(b),function(a){switch(a.nodeName){case this.o.vt:l.push(QS(a));break;case this.o.Nj:f=gT(a,!0);break;case this.o.ut:k=QS(a);break;case this.o.$s:QS(a);break;case this.o.Ij:QS(a);break;case this.o.yh:case this.o.Ah:case this.o.wh:a=FW(this,a);null!=a&&e.push(a);break;default:throw MS(a);}},a); return kb(e)?null:Nba(d,k,l,c,f,e)}; var Xba=function(a,b,c,d){var e=new $S,f={},k="",l=[],m,p=new wg,v=[],t=[],y,x=iT(PS(b,a.A.Eu));E(sf(b),function(a){switch(a.nodeName){case this.o.Ut:t=bca(this,a);break;case this.o.Ij:f=EW(a);k=D(QS(a));break;case this.o.Kj:y=TS(QS(a),0);break;case this.o.Nj:e=gT(a);break;case this.o.lu:v=cca(this,a);break;case this.o.Pu:a=dca(this,a);p=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw MS(a);}},a); E(l,function(a){eT(e,"click",a)}); a=new xT(y,m,p,v,x,t);rT(a,k,f);a.o=c;a.ka=d;e&&(a.wf=e);return a}; var dca=function(a,b){var c,d=[],e=new wg;E(sf(b),function(a){switch(a.nodeName){case this.o.kt:c=QS(a);break;case this.o.lt:a=QS(a);d.push(a);break;case this.o.Ct:var b=PS(a,this.A.xh);null!=b||(b="");var l=e.get(b,[]);l.push(QS(a));e.set(b,l);break;default:throw MS(a);}},a); return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}; var cca=function(a,b){var c=[];RS(b,a.o.ku,function(a){var b=PS(a,this.A.Et),f=PS(a,this.A.mn),k=PS(a,this.A.Qu),l=Xa(a.getAttribute(this.A.Bh)),m=Xa(a.getAttribute(this.A.vh)),p=a.getAttribute(this.A.uh),v=QS(a),t=SS(a.getAttribute(this.A.Wm)),y=SS(a.getAttribute(this.A.nu));a=SS(a.getAttribute(this.A.ju));b=new wT(b,f,k,t,y,a,l,m,v,p);c.push(b)},a); return c}; var bca=function(a,b){var c=[];RS(b,a.o.Tt,function(a){a=eca(this,a);null!=a&&c.push(a)},a); return c}; var eca=function(a,b){var c=b.getAttribute(a.A.vu),d=PS(b,a.A.Su),e=PS(b,a.A.Tu),f=Xa(b.getAttribute(a.A.Bh)),k=Xa(b.getAttribute(a.A.vh)),f=new re(f,k),k=b.getAttribute(a.A.uh),l=iT(PS(b,a.A.uu)),m=b.getAttribute(a.A.Kj),m=TS(m,-1),p=[],v=[],t={};E(sf(b),function(a){switch(a.nodeName){case this.o.Yt:v.push(QS(a));break;case this.o.Vt:t=fca(this,a);break;case this.o.yh:case this.o.Ah:case this.o.wh:a=FW(this,a);null!=a&&p.push(a);break;default:throw MS(a);}},a); return kb(p)?null:Pba(c,f,d,e,m,l,k,t,v,p)}; var fca=function(a,b){var c=[],d;E(sf(b),function(a){switch(a.nodeName){case this.o.Wt:d=QS(a);break;case this.o.Xt:c.push(QS(a));break;default:throw MS(a);}},a); return{iconClickThrough:d,vJ:c}}; var EW=function(a){a=QS(a);return null!=a?Iaa(a):{}}; var GW=function(a,b){this.A=a;this.o=b}; var gca=function(a){var b=[],c=OS(a,"vmap:Extensions")[0];if(c){var d;RS(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)}); if(d&&(b=OS(d,"yt:BreakTime"),!kb(b)))return O(b,function(a){return PS(a,"timeOffset")})}return[PS(a,"timeOffset")]}; var hca=function(a){var b=new dV;E(sf(uf(a.A)),function(a){if("vmap:AdBreak"==a.nodeName){var d=ica(this,a);a=gca(a);E(a,function(a,c){var k=TS(a);0<c&&(d=jca(this,d));if("start"==a||0==k)eV(b,d,0);else if("end"==a)eV(b,d,-1);else{if(-1==k)throw dL(hV,null,"timeOffset",D(a));eV(b,d,k)}},this)}},a); if(0==b.o.Na().length)throw dL(HW);return b}; var jca=function(a,b){return O(b,function(a){var b=new cV(a.B.clone());b.o=a.o;b.A=a.A;return b},a)}; var kca=function(a){a=PS(a,"timeOffset");var b=TS(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}; var lca=function(a){return(a=db(sf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?db(sf(a),function(a){return"VAST"==a.nodeName}):null}; var ica=function(a,b){var c=[],d="",e=null,f=!1,k=!1;E(sf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=zz(a,"vmap:VASTData/VAST")||zz(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=lca(a));if(!e){var c=OS(a,"vmap:AdTagURI"),l="";c.length&&(l=D(QS(c[0])));if(C(l))throw dL(mca,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=OS(a,"vmap:Extension"),a=nca(this,a),null!=a&&(f=!0,a=PS(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a); var l=null;e?l=oca(a,e):C(d)||(l=pca(a,d));l&&(V()&&(l.eh=kca(b)),l=new cV(l),l.o=f,l.A=f&&!k,nb(c,l));return c}; var nca=function(a,b){return db(b,function(a){return"bumper"==PS(a,"type")},a)}; var pca=function(a,b){var c=a.o.clone();C(c.A)||(c.A="");c.o=b;return c}; var oca=function(a,b){var c=a.o.clone();c.A=yz(b);c.o="";return c}; var qca=function(a,b){if(null!=a){var c;null!=a?(c=uf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return RU.getInstance().A=!1,new fV(a,b);null!=a?(c=uf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return RU.getInstance().A=!1,new GW(a,b);if(zW(a)){if(!zW(a))throw dL(iV);c=uf(a);var d=AW(c);if(1>d||3<d)throw dL(rca);c=OS(c,"Ad");if(kb(c))throw dL(IW);c=BW(c[0]);if(null==c)throw dL(JW);if(1!=OS(c,"AdSystem").length)throw dL(JW);return new yW(a)}}return null}; var KW=function(){}; var LW=function(a,b){this.A=a;this.B=b}; var MW=function(a,b){"auto"!=a.A.Pe&&"click"!=a.A.Pe||b.set("vpa",a.A.Pe)}; var NW=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))}; var OW=function(a,b){var c=a.B.F;null!=c&&b.set("js","ima-"+c);c=a.A.K;null!=c&&b.set("mv",c+"."+(a.A.J||""))}; var PW=function(a,b){b.set("osd",2);-1!=a.B.J&&b.set("frm",a.B.J);var c=a.B.U;null!=c&&b.set("ms",c);b.set("sdr",1)}; var QW=function(a){return zK.o?"h.3.0.0":null!=a.B?WR(a.B):null}; var RW=function(){this.o=["video"]}; var SW=function(a,b,c){var d={};a=new TW(a,n(b)?b:null,n(c)?c:null);UW(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;VW(d);WW(d,a);XW(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=jb(sca,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d}; var YW=function(a,b){var c={},d=new TW(null,a,n(b)?b:null);UW(c,d);VW(c);WW(c,d);XW(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.o){var e=d.o.B,f=null!=e&&null!=e.xb&&null!=e.xb.GET_MIDROLL_POSITION_IN_SEC?e.xb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.re&&null!=e.re.video_start_delay?(e=e.re.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=f&&f(e)?f(e):e)):(e=d.o.D,c.BREAK_TYPE=0==e.B?"1":-1==e.B?"3":"2",c.SLOT_POS=e.A-1, e=Math.round(e.o),0<e&&(c.MIDROLL_POS=f&&f(e)?f(e):e))}tca(c,d);uca(c,d);d=a.sa;for(f=a;null!=f;)d=f.ka+","+d,f=f.o;c.RWT=d;return c}; var TW=function(a,b,c){this.error=a;this.o=b;this.display=c}; var ZW=function(a,b){return Ih(vca[a],function(a){return null!=b.match(a)})}; var UW=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}}; a.ASSETURI={toString:function(){return null!=b.display?b.display.getVideoUrl():""}}}; var uca=function(a,b){a.AD_CPN={toString:function(){return b.display.ef()}}; a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}}; a.MT={toString:function(){if(LT(b.o)){var a=b.o.D;return 0<a.o?Math.round(1E3*a.o).toString():"0"}return b.display?Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString():"0"}}; a.P_W={toString:function(){return null!=b.display&&null!=b.display.Vc()?b.display.Vc().width.toString():""}}; a.P_H={toString:function(){return null!=b.display&&null!=b.display.Vc()?b.display.Vc().height.toString():""}}}; var VW=function(a){a.SDKV=WR(hS);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}}; var WW=function(a,b){if(null!=b.o&&null!=b.o.B&&null!=b.o.B.xb&&V()){var c=b.o.B.xb;E(wca,function(b){b in c&&(a[b]=c[b])})}}; var XW=function(a,b){if(null!=b.o){a.AD_ID=dba(b.o);a.AD_SYS=eba(b.o);var c=gU(b.o);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=eQ(b.display.getVideoUrl());if(null!=a)return a}return"0"}}; a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=JT(b.o).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}}; var tca=function(a,b){null!=b.o&&(a.AD_LEN={toString:function(){var a=qU(b.o);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.qf()?"0":Math.round(100*b.display.nd()).toString():""}})}; var $W=function(a,b,c){if(null!=c){var d;null==b.C&&(b.C=new SR);d=b.C;var e;null!=c&&d.A!=c?(d.o=1,d.A=c):d.o=null!=c?d.o+1:1;e=d.o;1!=e&&a.set("ad_block",e);null==b.M&&(b.M=new TR);e=b.M;var f=c!=b.S;(d=0==d.o%100||f)||(d=36E5<(null===e.o?0:(new Ry).getTime()-e.o));d&&e.reset();b.S=c;b=e.A;null!==b&&a.set("tok",b)}}; var aX=function(a,b){a.set("sz",Math.max(null!=b.nf?b.nf:0,null!=b.Gc?b.Gc:0)+"x"+Math.max(null!=b.mf?b.mf:0,null!=b.Fc?b.Fc:0))}; var bX=function(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=W.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!W.navigator&&"unknown"!=typeof W.navigator.javaEnabled&&!!W.navigator.javaEnabled&&W.navigator.javaEnabled();W.screen&&(b.u_h=W.screen.height,b.u_w=W.screen.width,b.u_ah=W.screen.availHeight,b.u_aw=W.screen.availWidth,b.u_cd=W.screen.colorDepth);W.navigator&&W.navigator.plugins&&(b.u_nplug=W.navigator.plugins.length);W.navigator&&W.navigator.mimeTypes&&(b.u_nmime=W.navigator.mimeTypes.length); for(var d in b)a.set(d,b[d]);a.set("dt",xca)}; var cX=function(a){if(a.xb&&a.xb.LACT){var b=a.xb.LACT.toString();if(b)return $a(b)}return a.H}; var dX=function(a){return V()&&a.Cc&&a.Cc("send_presence_signal_vis")&&a.xb&&a.xb.VIS?a.xb.VIS.toString():null}; var eX=function(a,b,c,d){var e=new wg;OK(HK())||e.set("ad_type",c.adType);yS&&e.set("flash",TM);aX(e,a);fX(c)&&(e.set("ea","0"),null!=a.Gc&&null!=a.Fc&&e.set("image_size",gX(c,a.Gc,a.Fc,a.df)));hX(e,d);e.set("lact",cX(a));(c=dX(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.eh);bX(e);iX(a,e,!0);$W(e,b,a.D);return e}; var iX=function(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=va(a)),jX("ref",a,b))}; var kX=function(a,b,c){a=null!=b?b.split("_"):a;E(a,function(a){if(!Ub(yca,a))throw dL(qR,null,"ad_type",String(b));}); if(c){var d=[];E(a,function(a){ib(lX,a)||d.push(a)}); a=d}if(!uL()){d=[];E(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)}); if(0==d.length)throw dL(mX,null,"skippablevideo");a=d}return a}; var nX=function(a,b){return null!=b?b.split(/[+, ]/):a}; var gX=function(a,b,c,d){a.A&&(c=Math.min(c,90));var e=0,f=0;HK();a=!V();d=d&&a;a&&(e=15,f=65);var k=[];E(zca,function(a){var m=b-e>=a.width&&c-f>=a.height,p=!d&&!m&&90>=a.height&&b>=a.width&&c>=a.height;(m||p)&&k.push(a.width+"x"+a.height)}); return k.join(",")}; var oX=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)}; var pX=function(a,b){return null!=b?String(b):null!=a?a:null}; var qX=function(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a}; var rX=function(a,b,c){return null!=b&&Ub(c,b)?b:a}; var fX=function(a){return Ih(lX,function(b){return ib(a.o,b)})}; var hX=function(a,b){yS?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.B;null!=c&&0<c.length&&(c=c[0].F,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}; var jX=function(a,b,c){null!=b&&c.set(a,b)}; var sX=function(a,b,c){LW.call(this,a,b);var d=new RW;a=lh(new N(a.o));d.Sk=rX(d.Sk,a.get("cust_age"),Aca);d.Eh=rX(d.Eh,a.get("adsafe"),tX);d.o=kX(d.o,a.get("ad_type"));d.adType=d.o.join("_");d.Qj=oX(d.Qj,a.get("videoad_start_delay"));d.Rj=pX(d.Rj,a.get("slotname"));d.Rk=qX(d.Rk,a.get("adtest"));d.Sj=qX(d.Sj,a.get("scs"));d.Tj=pX(d.Tj,a.get("alternate_ad_url"));d.channels=nX(d.channels,a.get("channel"));d.ik=oX(d.ik,a.get("cpm"));d.tg=pX(d.tg,a.get("description_url"));d.experimentIds=pX(d.experimentIds, a.get("eid"));d.gender=rX(d.gender,a.get("cust_gender"),Bca);d.A=qX(d.A,a.get("overlay"));d.host=pX(d.host,a.get("host"));d.B=nX(d.B,a.get("h_ch"));d.hostTierId=oX(d.hostTierId,a.get("ht_id"));d.Tk=qX(d.Tk,a.get("lsv"));var e;null!=this.A.language?e=this.A.language:(e=r.navigator||null,e=yK(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=pX(f,e);var k;null!=e&&!C(D(e))&&(k=yK(e));d.language=pX(d.language,k);d.Fo=oX(d.Fo,a.get("linearAdSlotWidth")); d.Eo=oX(d.Eo,a.get("linearAdSlotHeight"));d.Di=oX(d.Di,a.get("max_ad_duration"));d.sl=oX(d.sl,a.get("min_ad_duration"));d.Ei=oX(d.Ei,a.get("sdmax"));d.Ho=oX(d.Ho,a.get("nonLinearAdSlotWidth"));d.Go=oX(d.Go,a.get("nonLinearAdSlotHeight"));d.uf=pX(d.uf,a.get("client"));d.Ni=pX(d.Ni,a.get("t_pyv"));k=a.get("sdki");d.Ui=oX(d.Ui,z(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=oX(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Wl=rX(d.Wl,a.get("targeting"),Cca);d.xi=oX(d.xi,a.get("video_format")); d.im=oX(d.im,a.get("video_cpm"));d.Uk=pX(d.Uk,a.get("loeid"));d.um=pX(d.um,a.get("yt_pt"));d.qm=pX(d.qm,a.get("ytdevice"));d.sm=pX(d.sm,a.get("ytdevicever"));d.tm=pX(d.tm,a.get("dbp"));d.C=pX(d.C,a.get("ms"));d.adBlock=oX(d.adBlock,a.get("adBlock"));d.url=pX(d.url,a.get("url"));d.Yj=pX(d.Yj,a.get("avo"));this.o=d;this.J=b;this.K=c;C(D(this.o.experimentIds))||(b=this.o.experimentIds.split(","),GK(HK(),b))}; var Dca=function(a){return Ih(Eca,function(a){return ib(this.o.o,a)},a)}; var uX=function(a){return V()?1:ib(a.o.adType.split("_"),"text")?3:1}; var Fca=function(a){a=a.o.channels?a.o.channels:[];wb(a);a=vb(a,0,30);return a.join("+")}; var vX=function(a,b){return Math.round(1.1*(a||0)+0*b)}; var wX=function(a,b){LW.call(this,a,b)}; var xX=function(a,b){LW.call(this,a,b)}; var yX=function(a){LW.call(this,a,null)}; var zX=function(a){LW.call(this,a,null)}; var AX=function(a,b){LW.call(this,a,b);V()&&this.A.Cc("doubleclick_gpt_retagging")&&(this.B.B=VR())}; var BX=function(a){if(C(D(a)))return!1;a=new N(a);if(!a.C||"http"!=a.C&&"https"!=a.C)return!1;a=a.A;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}; var Gca=function(a){var b=[];E(a,function(a){0<a.length&&b.push(O(a,function(a){return a.width+"x"+a.height}).join("|"))}); return b.join(",")}; var CX=function(a,b,c){AX.call(this,a,b);var d=HK();this.J=OK()?!1:C(D(a.B));a=new RW;OK(HK())||(a.o=kX(a.o,this.A.B),a.adType=a.o.join("_"));a.experimentIds=pX(a.experimentIds,this.A.C);this.o=a;this.K=b;this.G=c;C(D(this.o.experimentIds))||GK(d,this.o.experimentIds.split(","))}; var Hca=function(a){var b=eX(a.A,a.K,a.o,a.G);b.set("sdkv",QW(a));b.set("sdki",a.F().toString(16));return b}; var Ica=function(a,b){var c=Hca(a),d=O(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")}); mh(b,"afvparams",d.join("&"))}; var DX=function(a,b,c){LW.call(this,a,b);var d=HK();this.J=OK()?!1:C(D(a.B));d=new RW;OK(HK())||(d.o=kX(d.o,this.A.B),d.adType=d.o.join("_"));d.experimentIds=pX(d.experimentIds,this.A.C);this.o=d;this.K=b;this.G=c;C(D(this.o.experimentIds))||(b=this.o.experimentIds.split(","),d=HK(),GK(d,b))}; var Jca=function(a){var b=eX(a.A,a.K,a.o,a.G);b.set("sdkv",QW(a));return b}; var Kca=function(a,b){var c=Jca(a),d=O(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")}); FS(b,"afvparams",[va(d.join("&"))])}; var EX=function(a){LW.call(this,a,null)}; var Lca=function(a){if(null==a.A||null==a.A.xb)return{};var b={},c=a.A.xb;E(Mca,function(a){a in c&&(b[a]=c[a])}); return b}; var Nca=function(a,b){var c;if(!KS(a.o)&&!LS(a.o)||(OK(HK())?null==a.o||-1==a.o.search("afvbase="):C(D(a.B))||null==a.o||-1==a.o.search("afvbase=")))if(KS(a.o))c=new xX(a,hS);else if(HS(a.o))c=new sX(a,hS,b);else if(LS(a.o))c=new AX(a,hS);else if(JS(a))c=new wX(a,hS);else if(c=a.o,null!=c?(c=hh(new N(c)),c=ua(c,".fwmrm.net")):c=!1,c)c=new yX(a);else{c=a.o;if(null!=c){c=new N(c);var d=c.B;c=ua(c.A,"youtube.com")&&IS("/get_midroll_info",d)}else c=!1;c=c?new EX(a):new zX(a)}else c=KS(a.o)?new DX(a,hS, b):new CX(a,hS,b);return c}; var Oca=function(a){a=$d(a,function(a){return 0<jU(a)}); Bb(a,function(a,c){return jU(a)-jU(c)}); return a}; var Pca=function(a){return $d(a,function(a){return-1==jU(a)})}; var FX=function(a){this.o=a}; var Qca=function(){this.o=0}; var Rca=function(a,b,c,d,e,f){var k=A(function(a){d(a,Error(Jm(a)))},a),l=A(function(a){6==a?GX(this,b,!1,c,k,e,f):k(a)},a); GX(a,b,!0,c,l,e,f)}; var GX=function(a,b,c,d,e,f,k){var l=new rn;l.V=c;sn(l,Sca(f));var m=new Cm,p=A(function(){m.dispose();l.dispose()},a); c=A(function(){e(l.A);p()},a); Im(m,l,"success",function(){var a;try{a=l.o?l.o.responseXML:null}catch(b){a=null}if(null==a){var c=En(l);try{a=vz(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(wz&&(a=xz())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a); Im(m,l,["error","timeout"],c,a);var v;"POST"==k&&(b=new N(b),v=b.o.toString(),eh(b,""),b=b.toString());a.o=H();l.send(TK(b),k,v)}; var HX=function(a,b,c){var d=null,e=c+b;E(a.C,function(f){if(CS(f.L,"rm")){var k=YW(a);RT(a)&&(k.FILLED_OPPORTUNITY=0);bL(a.K,k);(k=a.B)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof AT)0==c&&0==b||f instanceof sW?k=!0:(k=f.Vb(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.Vb().height+b-f.Vb().width,"Flash"!=f.getContentType()||yS))if(null==d)d=f,e=k;else if(k==e&&f.o<d.o||k<e)d=f,e=k}}); aU(a,d)}; var IX=function(a){var b=null;E(a.C,function(a){a instanceof xT&&(null===b||a.o<b.o)&&(b=a)}); aU(a,b)}; var JX=function(a,b,c,d){this.C=a;this.J=b;this.ads=0<this.C.length?this.C:this.J;this.F=c;this.D=this.L=!0;this.A=-1;this.o=null;this.G=0;this.S=d;this.logger=null}; var KX=function(a,b,c){null!=a.o?Tca(a,b,c):a.md()?Uca(a,b,A(function(a){!this.md()||!V()&&301==a.getErrorCode()?c(a):KX(this,b,c)},a)):c(new pK("adLoadError","The ad source contains no more ads.",1005))}; var Vca=function(a,b){a.D=b;a.ads=a.K(a.C,a.J);a.A=-1}; var Wca=function(a,b,c,d){var e=a.F.clone();e.A="";e.o=b.La;LX(a,b,e,c,d)}; var LX=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.B,null!=f&&(c.A=f));a.S.fetch(c,A(function(a){a instanceof JX?(Xca(a,b,this.D&&b.Ca,b.Ea),d(a)):a instanceof FX?e(new pK("adLoadError","Ad source cannot contain playlist response.",2)):e(new pK("adLoadError","Unknown ad source.",2))},a),e)}; var Yca=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b}; var Tca=function(a,b,c){a.o.md()?KX(a.o,A(function(a){this.B(a,b,A(function(a){this.md()?KX(this,b,c):c(a)},this))},a),A(function(a){MX(this.ads[this.A],a); this.o=null;V()||301!=a.getErrorCode()?this.md()?KX(this,b,c):c(a):c(a)},a)):(0==a.o.G&&MX(a.ads[a.A],dL(NX)),a.o=null,KX(a,b,c))}; var MX=function(a,b){if(b.A){1012==b.getErrorCode()&&(b=dL(OX));var c=SW(b,a);bL(a.aa,c)}}; var Uca=function(a,b,c){a.A++;var d=a.ads[a.A];d.S||d.M?d.M?Wca(a,d,A(function(a){this.o=a;KX(this,b,c)},a),A(function(a){a=PX(a); MX(d,a);c(a)},a)):4<=Yca(d)?(a=dL(Zca,null,"4"),MX(d,a),c(a)):a.L?a.H(d,A(function(a){this.o=a; KX(this,b,c)},a),A(function(a){a=PX(a); MX(d,a);c(a)},a)):c(dL($ca)):a.B(d,b,c)}; var PX=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=dL(NX)}return a}; var Xca=function(a,b,c,d){E(a.ads,function(a){a.o=b}); Vca(a,c);a.L=d}; var QX=function(a,b,c,d){JX.call(this,[],a,b,c);this.M=d}; var RX=function(a,b,c,d,e){this.D=a;this.B=b;this.C=c;this.o=d;this.F=e}; var ada=function(a,b,c,d){var e;try{e=vz(b.A)}catch(f){d(dL(iV,f));return}null!=e?SX(a,e,b,c,d):d(dL(iV))}; var TX=function(a,b,c,d){var e;if(e=null!=b.o){a:{try{wa(b.o)}catch(f){e=!1;break a}e=!0}e=!e}e?d(dL(bda,null,b.o)):zK.C?vba(WU(),A(a.A,a,b,c,d)):a.A(b,c,d)}; var cda=function(a){var b="third_party";HS(a.o)?b="adsense":KS(a.o)?b="dart":LS(a.o)?b="xfp":JS(a)&&(b="dbm");a={rt:b};yL(xL.getInstance(),17,a,!0)}; var SX=function(a,b,c,d,e){var f;try{var k=qca(b,c);if(!k)throw dL(iV);f=k.B();dda(a,f,c,d)}catch(l){l instanceof pK?e(l):e(dL(eda,l))}}; var dda=function(a,b,c,d){var e=b.o;if(null!=e)d(new FX(e));else{var f=b.B;if(null==f)throw dL(IW);E(f,function(a){a.B=c;var d=vK();d&&wK(d,"useCompanionsAsEndSlate")&&(a.G=gba(a));if(a.B.Cc("enable_ad_video_end_renderers")){var e=a.getExtension("InfoCards");if(null==e)d=[];else for(var d=[],e=e.B?e.B:new tV,f=0;f<rV(e.o,"card");f++){var v=GV(e,f);JV(HV(v))&&d.push(v)}a.Da=d}a.ka=this.B.o;V()&&(a.za=b.A)},a); e=Oca(f);f=Pca(f);0<f.length&&0<=iU(f[0])?d(new QX(f,c,a,a.D)):d(new JX(e,f,c,a))}}; var UX=function(a){this.o=a+H()}; var Sca=function(a){var b=H();a=a.o-b;return 0<a?a:0}; var fda=function(a,b){this.o=a;this.A=b;zK.o&&IP().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}hS.J=c}; var gda=function(a,b,c,d){var e=b.G;V()&&e&&GK(HK(),e,!1);e=null;null!=a.o&&(e=new TU(1E3,a.o,a.A));var f=Naa(b);null!=f&&Maa(b)&&(a.A.U=f);(new RX(a.A,new Qca,a.o,e,new UX(8E3))).fetch(b,A(function(a){a instanceof FX?c(a):hda(this,a,c,d)},a),d)}; var hda=function(a,b,c,d){var e=[],f=A(function(a,b){a.md()?KX(a,A(function(b){e.push(b);f(a,null)},this),A(function(b){301==b.getErrorCode()?d(dL(VX)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=dL(HW)),1012==b.getErrorCode()&&(b=dL(OX)),d(b))},a); f(b,null)}; var ida=function(a){this.B=a;this.A=new go;this.o=!1}; var WX=function(a,b,c,d){var e=A(function(a){c(a);jo(this.A);this.o=!1;XX(this)},a),f=A(function(a){d(a); jo(this.A);this.o=!1;XX(this)},a); io(a.A,A(function(){gda(this.B,b,e,f)},a)); XX(a)}; var XX=function(a){if(!a.o){var b=ko(a.A);null!=b&&(a.o=!0,b())}}; var YX=function(a,b,c){dd.call(this);this.C=new ida(new fda(b,c));this.D=a;this.A=b;this.o=!0;this.B=c}; var jda=function(a,b,c){if(a.o){var d=null!=c?c:{};RU.getInstance().end("rtr");qba(RU.getInstance(),b.o);RU.getInstance().start("vl");WX(a.C,b,A(function(a){ZX(this,a,d)},a),A(function(a){$X(this,a,d)},a))}}; var kda=function(a,b,c){if(!a.o){var d=null!=c?c:{};WX(a.C,b,A(function(a){ZX(this,a,d)},a),A(function(a){$X(this,a,d)},a))}}; var ZX=function(a,b,c){if(a.o)b instanceof FX?(b=new aY(b.o,a),b.G=a.A,a.$(new OU(b,c))):(b=bY(b),null!=b?(b.G=a.A,a.$(new OU(b,c)),RU.getInstance().end("vl")):$X(a,dL(cY,null),c));else if(b instanceof FX)$X(a,dL(lda,null,"Unsupported ad format."),c);else{var d=new QU("adsLoaderSdkAdLoaded");d.F=b;d.D=c;a.$(d)}}; var $X=function(a,b,c){a.o?("always"==zK.A&&null!=a.A&&IU(a.A,GU()),a.$(new qK(b,c))):(c=new QU("adsLoaderSdkAdError"),c.B=b,a.$(c))}; var mda=function(a){return'<div class="close-padding"><a class="close-button" title="'+X(a.close)+'" role="button" tabindex="0"></a></div>'}; var nda=function(){return'<div class="recall-button"></div>'}; var oda=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="attribution-button">'+X(a.text)+"</a>"}; var dY=function(a,b){this.J=a;this.H=M("div",{"class":"controls"});this.o=M("div",{"class":"adDisplay"});this.O=b||w;this.Uc=new Cm(this)}; var eY=function(a){var b=M("div",{"class":"ima-container"});Jq(b,"opacity 0.4s");a.Uc.P(b,"mouseover",a.Jw);a.Uc.P(b,"mouseout",a.vC);b.appendChild(a.H);a.H.appendChild(a.o);return b}; var fY=function(a,b){this.K=a;this.S=new wg;this.M=15E3;this.F=M("span");dY.call(this,a[0],b);this.o.appendChild(this.F)}; var gY=function(a,b){dY.call(this,a[0],b);this.C=a;I(this.o,"ima-container-stack")}; var hY=function(a,b,c,d,e){Mz.call(this);this.A=a;this.D=b;this.G=c;this.B=d;this.F=da(e)?e:[e]}; var iY=function(a,b,c,d,e){return new hY(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})}; var pda=function(a){return'<a target="_blank" href="'+X(a.url)+'" class="fullslot-attribution-button">'+X(a.text)+"</a>"}; var qda=function(a){return'<div class="fullslot-autoclose">'+X(a.gv)+"</div></div>"}; var jY=function(a){var b="";a=ra("Ad will close in {$xSeconds}",{xSeconds:X(a.Vf)});return b+a}; var kY=function(a){dd.call(this);this.D=new Qd(200);G(this,this.D);this.A=0;this.C=!1;this.K=a;this.J=new Cm(this);this.J.P(this.D,"tick",this.wA)}; var lY=function(a){a.D.stop();a.C=!1}; var mY=function(a,b){dd.call(this);this.B=a;this.V=0;this.ea=this.G=!1;this.A=0==YS(this.B.skipOffset)?3:1;this.H=this.J=this.o=this.C=this.ia=this.U=this.S=this.F=null;this.D=new Cm(this);this.da=!1;this.ma=this.ha=this.aa=0;this.K=this.M=this.L=null;this.Z=!1;this.Y=new YP;this.O=new YP;this.fa="";rda(this,b);this.D.P(this.Y,"click",this.mC);ZP(this.Y,this.C);this.D.P(this.O,"click",this.Ov);ZP(this.O,this.J)}; var rda=function(a,b){a.B.J&&(a.D.P(b,"touchstart",a.kx),a.D.P(b,"touchmove",a.jx),a.D.P(b,"touchend",a.ix));a.F=yQ(raa);a.S=$e("videoAdUiPreSkipButton",a.F);a.U=$e("videoAdUiPreSkipText",a.S);a.ia=$e("videoAdUiPreSkipThumbnail",a.S);Af(a.U,jR({Vf:nY(a)}));var c=jQ(a.B.da)||"";if(a.B.showContentThumbnail&&!C(D(c))){var d=lf("img");d.setAttribute("src",c);I(d,"videoAdUiPreSkipThumbnailImage");a.ia.appendChild(d)}else I(a.U,"videoAdUiPreSkipTextOnly");a.o=yQ(saa,{skipText:a.B.J?"\u00ab Swipe to Skip": Sa(Ma()),Pv:taa()});a.J=$e("videoAdUiExtendButton",a.o);a.C=$e("videoAdUiSkipButton",a.o);a.H=$e("videoAdUiAutoSkipText",a.C);LK(HK(),9413054)&&(I(a.C,"autofocused"),a.D.P(a.C,"blur",A(function(){Zd(this.C,"autofocused")},a)),a.C.autofocus=!0); lg(a.F,!1);b.appendChild(a.F);0==YS(a.B.skipOffset)?a.$("skipshown"):(lg(a.o,!1),kg(a.o,0));b.appendChild(a.o)}; var nY=function(a){return null!=a.B.skipOffset&&-1!=YS(a.B.skipOffset)?YS(a.B.skipOffset):-1}; var oY=function(a,b){var c=nY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+BS(c));c=jR({Vf:d,Xh:a.fa});Af(a.U,c)}}; var pY=function(a){return 3==a.A&&a.B.S&&20<a.V}; var qY=function(a){null!=a.K&&(Td(a.K),a.K=null)}; var rY=function(a,b,c){dd.call(this);this.o=a;this.O=!1;this.za=c;this.ea=this.Z=this.Y=this.F=this.K=this.L=this.H=this.da=this.aa=this.U=this.A=null;this.ma=!1;this.sa=this.fa=this.ia=this.J=this.C=this.D=this.ha=this.V=this.S=this.G=null;this.B=new Cm(this);this.Ca=[];this.M=[];this.O=!this.o.C&&MK([9414784,9418335,9416126]);a={Pc:this.o.Pc,Bf:this.o.Bf,se:this.o.se,Xh:this.O?"redesign2014q4":""};this.A=yQ(this.o.H,a);this.B.P(this.A,"touchmove",this.$w);this.V=$e("videoAdUiProgress",this.A);this.ha= $e("videoAdUiBuffer",this.A);this.U=$e("videoAdUiAttributionContainer",this.A);this.aa=$e("videoAdUiAttributionIconContainer",this.A);this.da=$e("videoAdUiAttribution",this.A);this.H=$e("videoAdUiVisitAdvertiserLinkText",this.A);this.L=$e("videoAdUiVisitAdvertiserIcon",this.A);this.K=$e("videoAdUiAuthorIcon",this.A);this.F=$e("videoAdUiAuthorName",this.A);this.Y=$e("videoAdUiLearnMore",this.A);this.Z=$e("videoAdUiLearnMoreText",this.A);this.O?(this.J=$e("videoAdUiTopButtonShare",this.A),this.ia=$e("videoAdUiTopButtonShareTooltip", this.A),this.fa=$e("videoAdUiTopButtonInfo",this.A),this.sa=$e("videoAdUiTopButtonWatchLater",this.A)):this.J=$e("videoAdUiShare",this.A);this.G=$e("videoAdUiTitle",this.A);this.S=$e("videoAdUiTopBar",this.A);this.ea=$e("videoAdUiBottomBar",this.A);null!=this.K&&this.B.P(this.K,"click",this.dv);null!=this.F&&(c=new YP,this.M.push(c),this.B.P(c,"click",this.ev),ZP(c,this.F));null!=this.Y&&(c=new YP,c.L=!0,this.M.push(c),this.B.P(c,"click",this.Wo),ZP(c,this.Y));null!=this.Z&&(c=new YP,c.L=!0,this.M.push(c), this.B.P(c,"click",this.Wo),ZP(c,this.Z));null!=this.J&&this.B.P(this.J,"click",this.jC);null!=this.G&&(c=new YP,this.M.push(c),this.B.P(c,"click",this.sC),ZP(c,this.G));null!=this.S&&this.B.P(this.A,"mouseover",this.iC);null!=this.H&&this.B.P(this.H,"click",this.jj);null!=this.L&&this.B.P(this.L,"click",this.jj);null!=this.U&&null!=this.o.D&&sY(this.o.D)&&(this.B.P(this.U,"click",this.HB),this.B.P(this,"why_this_ad_got_it",this.BC));null!=this.o.skipOffset&&(this.C=new mY(this.o,this.A),this.C.Vg(this), this.C.fa=a.Xh);400>=((0,window.parseInt)(Qf(b,"width"),10)||b.width)&&I(this.A,"videoAdUi-mobile");this.o.C&&(I(this.A,"blazer"),window.settings&&window.settings.isTablet?I(this.A,"tablet"):I(this.A,"phone"));this.o.J&&I(this.A,"videoAdUi-swipeable");a=Hf(b,"html5-video-player");null!=a&&(this.O&&I(a,"videoAdUiRedesign"),J(a,"ytp-video-ad-learn-more-ui",this.o.A));lg(this.A,!1);b.appendChild(this.A);this.o.A||this.O||!this.o.L||(this.D=M("div",{style:"width:100%;height:100%;pointer-events:auto;"}), this.A.appendChild(this.D));tY(this)}; var sda=function(a){null!=a.D&&lg(a.D,!1)}; var uY=function(a){a.C&&(a.C.dispose(),a.C=null)}; var tda=function(a,b){a.Ca=b;E(b,function(a){a.display(this.A)},a)}; var vY=function(a){null!=a.H&&(lg(a.H,!0),Af(a.H,a.o.visitAdvertiserText));null!=a.L&&lg(a.L,!0)}; var wY=function(a,b){if(null!=a.A){var c=Hf(wf(a.A),"html5-video-player");null!=c&&J(c,"ytp-ad-end-cap",b)}}; var tY=function(a){var b=a.o.U&&(a.za>a.o.Da||0==a.za),c=b&&a.o.Z,d=b&&a.o.aa,e=b&&a.o.B,f=b&&a.o.V,b=b&&a.o.G,k=a.o.O&&a.o.o,l="0px";null!=a.G&&(lg(a.G,b),null!=a.K&&lg(a.K,c),null!=a.F&&lg(a.F,d),null!=a.Y&&lg(a.Y,e),null!=a.J&&(lg(a.J,f),f&&a.$("videoShareShown")),null!=a.fa&&lg(a.fa,!1),null!=a.sa&&lg(a.sa,!1),null!=a.S&&lg(a.S,b||c||d||e));null!=a.U&&xY(a);null!=a.V&&(lg(a.V,k),k&&(l=Qf(a.V,"height")));null!=a.ea&&Mf(a.ea,"bottom",l);c=LK(HK(),41351019);null!=a.Z&&lg(a.Z,(!c||V())&&a.o.A);null!= a.aa&&lg(a.aa,a.o.K)}; var uda=function(a,b,c,d,e){var f=kR({aj:"",Dh:0,dj:0});a.o.o&&a.o.M&&(b=BS(c-b),f=kR({aj:a.o.C?" \u2022 "+b:a.O?" \u00b7 "+b:": ("+b+")",Dh:d,dj:e}));Af(a.da,f);xY(a)}; var xY=function(a){lg(a.U,a.o.F&&(!a.o.o||a.ma))}; var yY=function(a,b,c){this.A=a;this.C=b;this.H=c;this.o=this.D=this.F=this.B=null;this.G=!1}; var sY=function(a){return(a.H||null!=a.A&&null!=a.A.A)&&(null!=a.A||null!=a.C)}; var zY=function(a,b,c){b=$e(b,a.B);null!=b&&a.D.P(b,"click",c)}; var AY=function(a,b,c){b=$e(b,a.B);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&a.D.P(b,"click",c))}; var BY=function(a,b,c){null!=a.B&&a.B.parentElement.removeChild(a.B);a.B=yQ(b,c);zY(a,"videoAdUiPopupCloseIcon",a.pg);a.F.appendChild(a.B);b=$e("videoAdUiPopupFrame",a.B);null!=b&&Nc(b,"submit",function(a){a.preventDefault()}); a=$e("videoAdUiPopupDefaultButton",a.B);null!=a&&a.focus()}; var CY=function(){this.Pc=kR({aj:"",Dh:0,dj:0});var a="",b=ra("Learn More {$suffix}",{suffix:X("")});this.Bf=a+b;a="";b=ra("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.se=lR();this.skipOffset=null;this.S=!1;this.Da=6E3;this.F=!0;this.K=!1;this.M=this.o=this.L=!0;this.V=this.O=this.B=!1;this.U=!0;this.G=this.aa=this.Z=this.Y=this.A=!1;this.H=null;this.J=vda&&LK(HK(),0);this.showContentThumbnail=!0;this.C=!1}; var DY=function(a,b,c,d){var e=new CY;e.A=a;e.fa=b;e.skipOffset=c;e.da=null!=d?d.contentId:null;e.L=d.zC;e.H=oaa;e.ka=hQ(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e}; var EY=function(a,b,c,d,e){kY.call(this,b.o);this.H=b;this.G=c;this.L=this.H.o;this.o=a;this.B=this.F=null;I(this.o,AS(this.G));a=this.o;b=new CY;b.skipOffset=new XS(this.H.B,!1);this.B=new mY(b,a);d&&d.text&&(d=yQ(pda,d),this.o.appendChild(d));e?(e=this.o,d=jY({Vf:FY(this.L)}),a=yQ(qda,{gv:d}),Af(a,d),e.appendChild(a),e=a):e=null;this.F=e}; var wda=function(a){var b=$e("videoAdUiSkipButton",a.o);return b?cg(b,a.o):new oe(0,0)}; var FY=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)}; var GY=function(){F.call(this);this.D="";this.B=new $S;this.A=new wg;this.F=[];this.J=!1;this.o={};this.H={};this.C=-1;this.G=[]}; var HY=function(a,b){if(zK.o){var c=OP(IP(),b.type,a.D);a.K(b.type,c)}else wba(WU(),b.type,a.D,A(a.K,a,b.type))}; var xda=function(a,b){null!=b&&E(b,function(a){ib(this.G,a)||this.G.push(a)},a)}; var IY=function(a,b,c,d,e){var f;zK.o||(f=WU().G||void 0);E(b,function(a){var b=this.o,m=c||{};if(V()&&ZW("MOAT_INIT",a)){var p=QP();null!=p&&(b.MOAT_INIT=p.moatInit,aL.ll(a)&&(b.MOAT_INIT=(0,window.encodeURIComponent)(b.MOAT_INIT)))}else b.MOAT_INIT="";m=m.moatViewability||"";V()&&ZW("MOAT_VIEWABILITY",a)?(b.MOAT_VIEWABILITY=m,aL.ll(a)&&(b.MOAT_VIEWABILITY=(0,window.encodeURIComponent)(b.MOAT_VIEWABILITY))):b.MOAT_VIEWABILITY="";ZK(a,this.o,c,d,e,f)},a)}; var yda=function(a,b){switch(b){case "abandon":return!xg(a.A,b)&&!xg(a.A,"skip")&&!xg(a.A,"complete")&&(xg(a.A,"impression")||a.J);case "click":return!0;case "complete":return!xg(a.A,b)&&!xg(a.A,"skip");default:return!xg(a.A,b)}}; var JY=function(a){dd.call(this);this.ads=a;this.J=null;this.Y=new Cm(this);G(this,this.Y);this.S="normal";this.C=this.volume=null;this.A=new BL;this.za=!1;this.content={};this.F=new GY;this.da=!1;var b=0;E(a,function(a){b+=qU(a)}); E(a,function(b,d){var e=b.D;e.C=a.length;var f=d+1;e.A=f;e.D=f})}; var KY=function(a){if(LY(a)){if(OT(a.J)&&!uL())throw fL(mX,null,"skippablevideo");if(EU(a.J)&&MY(a,a.J.o))throw fL(mX,null,"vpaidWithSkippabilityOverride");return a.J}throw fL(NY,null,"An ad has not been selected.\n"+Error().stack);}; var MY=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:MY(a,b.o)}; var LY=function(a){return null!==a.J}; var zda=function(a){return Ih(a.ads,function(a){return Ih(OY(a),function(a){return!C(D(eQ(a.A)))})},a)}; var OY=function(a){var b=a.o;if(b&&b.M&&(b=b.C,!kb(b)&&b[0]instanceof xT))return b[0].K;b=a.A;return PY(a)?b.K:[]}; var PY=function(a){a=a.A;return null!=a&&a instanceof xT}; var QY=function(a){null==a.H&&(a.H=new Cm(a));return a.H}; var RY=function(a,b){if(null!=a.G){a.Y.removeAll();Gm(a.Y,a.G,"companion_display_error",function(){}); var c=IU(a.G,b);null!=c&&(a.Y.P(c,"companion_impression",a.Wy),a.Y.P(c,"companion_click",a.zl));if(!a.G.xn())throw fL(SY);}}; var Ada=function(a){E(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.C,d=a.B,e=a.D,f=a.A;a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var k="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(e)+".js";if(c&&d&&e&&f){var e=window,c=e.document,l={};l._scs_=d;l._bgu_=k;l._bgp_=f;l._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src= a;c.getElementsByTagName("head")[0].appendChild(d)}}})}; var TY=function(a,b){HY(a.F,new jc(b))}; var UY=function(a,b){HY(a.F,new jc(b));a.va(b)}; var VY=function(a){if(!a.da)throw fL(NY,null,"Ads manager is not correctly configured.");}; var WY=function(a){do if(mU(a))return!1;while(a=a.o);return!0}; var XY=function(a,b){for(var c=b;null!=c;)E(c.J.Ka(),a.TB,a),c=c.o}; var Bda=function(a){if(!da(a))throw fL(NY,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Vb(YY),Vb(vT));E(a,function(a){if(!ib(b,a))throw fL(NY,null,"Invalid or unsuppoted mime type "+a);})}; var ZY=function(a){JY.call(this,a);this.K=null;this.ia=M("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.V=!1;this.aa=[]}; var $Y=function(a,b){var c=Zaa(b);E(c,function(a){eT(this.F.B,"click",a)},a)}; var aZ=function(a,b){var c=SW(b,KY(a)),d=XT(KY(a));bL(d,c)}; var bZ=function(a){ZY.call(this,a);this.U=!1;this.D=this.O=null;this.ea=!1}; var cZ=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.D,b=b.F;a={text:null!=c?c:a.fa.C,url:null!=b?b:a.fa.D};null==a.text&&(c="",b=ra("Ads by Google"),c=GQ(c+b),a.text=c);return a}; var dZ=function(a){return LY(a)&&rU(KY(a))}; var Cda=function(a){var b=eZ(a);b.rba=a.V;yL(xL.getInstance(),37,b)}; var eZ=function(a){var b=[],c=[];E(a.O,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a); var d={};d.pid=RU.getInstance().o;d.fsmode=null!=a.D;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.S;return d}; var fZ=function(a,b){if(a.D){a.ji(new jc("close"));var c={};c.pid=RU.getInstance().o;c.evt=b;yL(xL.getInstance(),35,c)}}; var gZ=function(a){rK.call(this,"adMetadata",a)}; var Dda=function(a,b,c){var d=w,e=new N("https://www.googleapis.com/youtube/v3/videos");mh(e,"id",a);mh(e,"part","snippet,status");mh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=A(b,c),d=A(d,c));hZ(new rn,e,b,d)}; var Eda=function(a,b,c){var d=w,e=new N("https://www.googleapis.com/youtube/v3/channels");mh(e,"id",a);mh(e,"part","snippet,statistics");mh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=A(b,c),d=A(d,c));hZ(new rn,e,b,d)}; var hZ=function(a,b,c,d){mh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");sn(a,2E3);var e=new Cm(a);Gm(e,a,"success",function(a){a=a.target;var b;b=a.o?be(a.o.responseText):void 0;c(b||{});e.dispose();a.dispose()}); Gm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.A&&(b=Error(Jm(a.A)));d(b);e.dispose();a.dispose()}); a.send(b)}; var iZ=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.A=b.title,this.o=Xb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}; var jZ=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}}; var Fda=function(a){var b=GQ,c;c=a.image;DQ(c,eR)?c=String(c).replace(bR,cR):DQ(c,fR)?c=String(c).replace(bR,cR):c instanceof He?c=aR(Je(c)):c instanceof Me?c=aR(Oe(c)):(c=String(c),c=Gda.test(c)?c.replace(bR,cR):"about:invalid#zSoyz");return b('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+WQ(c)+'"></div><div class="iv-endcap-headline" dir='+YQ(a.dir)+">"+X(a.headline)+'</div><div class="iv-endcap-description" dir='+ YQ(a.dir)+">"+X(a.description)+'</div><a class="iv-endcap-action" href="'+WQ(dR(a.target))+'" target="_blank" dir='+YQ(a.dir)+">"+X(a.action)+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')}; var kZ=function(a,b,c){kY.call(this,c);c=(c=b.o.product_card)?new zV(c):lZ;var d=new xV(qV(b.o,"action")[0]);b=d.o.title;var d=d.o.target,e=c.o.headline,f=c.o.description;c=c.o.image;c=(c?new EV(c):mZ).o.image_url;b=yQ(Fda,{headline:null!=e?e:"",description:null!=f?f:"",image:null!=c?c:"",action:null!=b?b:"",target:null!=d?d:""});a.appendChild(b);this.o=$e("iv-endcap-countdown-inner",b)}; var Hda=function(){var a="",b=ra("Your video will play after this ad.");return GQ(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))}; var nZ=function(){F.call(this);this.A=yQ(Hda);this.xa=0}; var oZ=function(a){a.xa&&(Td(a.xa),a.o(w))}; var pZ=function(a){jc.call(this,a)}; var qZ=function(a){dd.call(this);this.C=a;this.M=new wg;this.J=-1;this.K=this.S=!1;this.G=""}; var rZ=function(a){this.o=!1;this.mute=a.qf();this.volume=a.nd()}; var sZ=function(a){null!=a.A&&a.A.dispose();null!=a.o&&a.o.tf();null!=a.F&&a.F.dispose();a.F=null;null!=a.H&&a.H.dispose();a.H=null;a.M.clear();a.J=-1;a.G="";a.S=!1;a.K=!1}; var tZ=function(a,b,c,d){if(!c||null==a.M.get(b)){d&&!a.K&&(b="error");a.M.set(b,!0);a:{c=b;if(a.B&&a.B.o.B){if("click"==c)break a;"videoLearnMoreClicked"==c&&HY(a.C,new jc("click"))}d=Ida[c]||null;null!=d&&null!=a.o&&a.o.Nl(d);HY(a.C,new jc(c))}a.$(b)}}; var uZ=function(a){0>a.J||a.S||!a.o.sg(a.J)&&!a.o.Ie()||!a.K||(a.S=!0,tZ(a,"engagedview",!0,!0),a.$(new pZ("viewCount")))}; var vZ=function(a){uZ(a);if(V()){var b=a.C;if(!(0>b.C))for(var c=dT(b.B,"progress"),d=b.C;d<c.length;d++){var e=c[d];b.C=d+1;ZK(e.o,b.o)}}tZ(a,"complete",!0,!0)}; var wZ=function(a){JY.call(this,a);this.D=this.B=null;this.V=!1;this.O=new qZ(this.F);this.ia=this.sa=this.ha=this.U=!1;this.Z=1;this.K=null;this.Ea=new nZ;this.ma=new Zj;this.Ga=!1;this.aa=[];this.ea=!1;this.Ca=!kL()&&MK([9414784,9418335,9416126]);this.fa=LK(HK(),41351019)}; var xZ=function(a,b){var c=Sd(function(){this.ma.remove(c);b.call(this)},0,a); ak(a.ma,c)}; var yZ=function(a){Lb(a.B);a.B=null;Lb(a.O);Lb(a.F);a.ha=!1;a.ia=!1}; var zZ=function(a){a.Tg();LY(a)?a.start():a.stop()}; var Jda=function(a){if(!LY(a))return!1;var b=a.C.De();if(null==b)return!1;var c=KY(a),d;(d=c.G?c.G.o.Hg()?c.G.o.Xk():c.G.getContent():"")?Kda(a,b,d):kb(c.Da)||(d=xU(c),a.D=new kZ(b,c.Da[0],d),a.B&&wY(a.B,!0),a.C.Oe(),a.D.start(),a.o.Ao(!0),a.o.yo(),UY(a,"video_card_endcap_impression"));null!=a.D&&(QY(a).P(a.D,"timeUpdate",a.gq),QY(a).P(a.D,"end",a.Mv));return null!=a.D}; var Kda=function(a,b,c){yL(xL.getInstance(),34,{evt:"start"},!0);var d=M("div");I(d,"controls");var e=M("div");I(e,"adDisplay");I(e,"endslate");e.innerHTML=c;(c=sf(e)[0])&&Mf(c,{margin:"0 auto"});E(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&QY(this).P(a,"click",A(this.Lv,this,b))},a); d.appendChild(e);e=new jV;Bba(e,xU(KY(a)));e.B=0;e.A=0;a.D=new EY(d,e,1,{},!0);QY(a).P(a.D,"skip",a.On);mf(b,a.D.getContainer());a.C.Oe();a.D.start();UY(a,"video_card_endcap_impression");a.B&&(sda(a.B),uY(a.B))}; var AZ=function(a,b){BZ(a);null!=a.o&&a.o.Bo();a.va("complete");UY(a,b);zZ(a)}; var BZ=function(a){a.D&&(a.D.dispose(),a.D=null);a.B&&wY(a.B,!1);a.V=!1}; var CZ=function(a){var b=LY(a)?BU(KY(a)):null;if(b){var c;a:{if(LY(a)&&(c=CU(a.J),null!=c))break a;c=""}var d;a:{if(LY(a)&&(d=DU(a.J),null!=d))break a;d=""}var e=KY(a).B.Cc("show_ads_pay_this_creator_info_card");(c||d||e)&&a.o.Ok(b,c||null,d||null,e)}}; var DZ=function(a,b,c,d){b=dT(b.o,c);kb(b)||(a[d]=b[0].o)}; var EZ=function(a,b,c){b=c.getExtension(b);null!=b&&(DZ(a,b,"annotation_click","cta_annotation_clicked"),DZ(a,b,"annotation_close","cta_annotation_closed"),DZ(a,b,"annotation_start","cta_annotation_shown"))}; var Lda=function(a,b){var c=mU(b)&&!b.S?cU(b):null,d=OT(b)&&!QT(b),e=null!=a.B&&a.B.o.A,f=b.B,k=iQ(a.so());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var l=JT(b),m;a.B?(m={},EZ(m,"AdSense",b),EZ(m,"dart",b),EZ(m,"DFP",b)):m=null;return new IR(l,c,0,m,e,d,a.A.loadVideoTimeout,f?f.ni:!1,!1,gU(b),a.A.Df,k)}; var Mda=function(a){var b=0,c=0;E(a.ads,function(a){!PY(a)||V()&&0!=c||(c++,b+=qU(a))},a); var d=1;E(a.ads,function(a){var b=a.D;b.C=c;PY(a)&&(b.A=d,b.D=d,d++)},a)}; var FZ=function(a){var b=a.o;return b&&b.M&&(b=b.C,!kb(b)&&b[0]instanceof xT)?b[0].Wc():wU(a)}; var GZ=function(a,b){if(!PY(b))throw fL(HZ);var c=b.A;if(!C(D(null)))return new wT("","","",0,0,0,0,0,null,"");var d=OY(b),e=a.o.xq(d,a.A.bitrate,a.A.Eg||[],null!=b&&(V()||a.C.ri()||a.C.Lk()||kL()));Nda(d,a.A.bitrate,e,WT(b));if(null!=e)return c.ia=e;try{Oda(a,b)}catch(f){}throw fL(Pda);}; var Oda=function(a,b){if(xL.getInstance().o){var c=new Zj,d=!1;E(OY(b),function(a){ak(c,a.o);"VPAID"==a.B&&(d=!0)},a); var e=a.o.yk(),e={aid:cU(b),mt:c.Ka().join(","),smt:e.join(","),hvp:d,st:hU(b).join(",")};yL(xL.getInstance(),28,e)}}; var Nda=function(a,b,c,d){if(!V())try{var e=O(a,function(a){return a.Rd}),f=O(a,function(a){return a.o}); a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Rd;a.selmt=null===c?"":c.o;a.ic=!1;a.nat=!1;a.iyh=PK(c.A)?"1":"0";a.as=d;yL(xL.getInstance(),22,a)}catch(k){}}; var IZ=function(a,b){b in a.aa||(a.aa.push(b),a.va(b))}; var JZ=function(a,b,c){b.getMessage();b.getErrorCode();KZ(a,c);a.Tg();LY(a)?(gL(fL,a,b,c,void 0),a.start()):(hL(a,b,c),a.stop())}; var KZ=function(a,b){var c=fL(LZ,b),c=SW(c,KY(a),a.o),d=XT(KY(a));bL(d,c)}; var MZ=function(a){if(zK.o){var b=FZ(KY(a));null!=b&&XK(b)}a.va("click")}; var NZ=function(a,b){Ub(Qda,b)&&Dm(QY(a),a.O,b,a.bq,a)}; var OZ=function(a){if(!a.ea){var b=KY(a),c=b.F;if(AU(b)&&!V()&&!a.C.ri()&&c){var b=a.o.getCurrentTime(),d=a.o.Od(),e=new N("//s.youtube.com/s");mh(e,"ns","yt");mh(e,"el","adunit");mh(e,"docid",c);mh(e,"eurl",window.document.URL);mh(e,"len",d.toFixed(2));mh(e,"tv","1");mh(e,"ps","trueview-instream");mh(e,"st",b.toFixed(2));mh(e,"et",b.toFixed(2));mh(e,"rt",b.toFixed(2));ZK(e.toString());a.ea=!0}}}; var Rda=function(a){var b;b=KY(a).V;if(null!=b){b=b.videoId;var c=a.A.baseYouTubeUrl;if(C(D(b)))b=null;else{var c=new N((null!=c?c:"//www.youtube.com/")+"watch"),d=c.o;d.set("v",b);eh(c,d);c.J="action=share";b=c.toString()}null!=b&&(XK(b),a=PZ(a),null!=a&&YK(a,"sharebuttonclicked"))}}; var Sda=function(a){a=PZ(a);null!=a&&YK(a,"sharebuttondisplayed")}; var PZ=function(a){var b=KY(a).getExtension("AdSense");if(!(b=null!=b?new N(b.B):null))a:{if(a=bU(KY(a)))if(a=sT(a,"start"),!kb(a)){b=new N(a[0].o);break a}b=null}return b}; var Tda=function(a){var b=KY(a),c=b.V;null!=c&&(b=hQ(c.videoId,null!=sU(b),a.A.baseYouTubeUrl),null!==b&&(a.o.pause(),XK(b)))}; var QZ=function(a,b){xZ(a,function(){this.va(b?"video_extend_auto_skipped":"skip");zZ(this)})}; var RZ=function(a,b){Dda(b,function(a){a=new jZ(a);LY(this)&&BU(KY(this))==a.videoId&&(Uda(this,a),!C(D(a.channelId))&&a.isListed&&Eda(a.channelId,function(a){a=new iZ(a);if(null!=this.B){var b=this.B,c=a.A;b.o.aa=!C(D(c));b.o.ea=c;if(null!=b.F){var c="",k=ra("by {$userDisplayName}",{userDisplayName:""+b.o.ea});Af(b.F,(new MQ(c+(""+k),void 0)).getContent())}tY(b);b=this.B;c=a.o;b.o.Z=!C(D(c));null!=b.K&&(k=lf("img"),k.setAttribute("src",c),I(k,"videoAdUiAuthorIconImage"),b.K.appendChild(k),null!= b.G&&I(b.G,"videoAdUiTitleWithAuthorIcon"),null!=b.F&&I(b.F,"videoAdUiAuthorNameWithAuthorIcon"));tY(b)}LY(this)&&(KY(this).O=a,this.va("youTubeChannelMetadata"));if(a=this.B)a=KY(this),b=a.V,a=V()&&kb($T(a))&&null!=a.O&&null!=b&&b.isListed;if(a){a=KY(this);QY(this).P(window,"message",this.kw);var b=KY(this),c=b.O.channelId,k=JT(b),l=this.A.contentId,m=this.A.baseYouTubeUrl,m=new N((null!=m?m:"//www.youtube.com/")+"ad_companion"),p=m.o;p.set("adformat",k);p.set("p",c);p.set("render","video_wall_companion"); l&&p.set("content",l);c=new tW("1",new re(300,250),"IFrame",null,m.toString());c.S=b;c.D=!0;a.H=[new oW(c,[],null)];RY(this,a)}},this))},a)}; var Uda=function(a,b){if(null!=a.B&&b.isListed){var c=a.B,d=b.title;c.o.G=!C(D(d));c.o.title=d;SZ.test(ye(c.o.title,void 0));null!=c.G&&Af(c.G,c.o.title);tY(c);c=a.B;null!=c.ia?Af(c.ia,iR()):null!=c.J&&Af(c.J,iR())}LY(a)&&(KY(a).V=b,a.va("youTubeVideoMetadata"))}; var TZ=function(a){var b;b=KY(a).O;if(null!=b){var c;c=a.A.baseYouTubeUrl;b=D(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.o.pause(),XK(c))}}; var Vda=function(a){var b=RU.getInstance();if(b.A){var c={};if(null!=a.K){var d=hh(new N(a.K.A));if(null!=d){var d=ab(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.K.Sd;c.cd3=a.K.o;c.cd5=b.o;c.cm2=a.A.bitrate;c.cd2=PK(a.K.A)?"1":"0";d=a.K.getWidth();e=a.K.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.o&&(d=a.o.Vc(),c.cd4=d.width+"x"+d.height);a=a.K.G;C(D(a))||(c.cd7=a)}b.end("bt",c)}}; var UZ=function(){jc.call(this,"vpaidEvent")}; var VZ=function(a){JY.call(this,a);this.sa=this.ma=this.ea=!1;this.Z=[];this.fa=Va();this.B=null;this.M=!0;this.ia=this.aa=this.V=-1;this.O=1;this.ha=this.Ca="";this.U=!1;this.K=2==zK.F}; var WZ=function(a){var b=cba(KY(a)),c=D(wU(KY(a))),d=yU(KY(a)),c={desiredBitrate:a.A.bitrate,creativeData:b,viewMode:a.S,clickThroughUrl:c,adUrl:d};yU(KY(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.A.surveyCreativeData&&(c.creativeData=a.A.surveyCreativeData);XZ(a,"initAd",c);E(a.Z,function(a){XZ(this,a.type,a.params)},a); a.ea=!0;a.Z=[]}; var YZ=function(a,b,c){c=c||null;a.ea?XZ(a,b,c):a.Z.push({type:b,params:c})}; var XZ=function(a,b,c){c=c||{};c.session=a.fa;c.type=b;a.K?window.parent.postMessage(de(c),"*"):null!=a.D.contentWindow&&a.D.contentWindow.postMessage(de(c),"*")}; var ZZ=function(a,b,c,d){d=fL(b,c,d);var e=SW(d,KY(a)),f=XT(KY(a));bL(f,e);b.message=d.getMessage();hL(a,b,c)}; var $Z=function(a,b){if(z(b.type))switch(b.type){case "friendlyReady":WZ(a);break;case "videoCall":switch(b.func){case "load":case "play":a.C.Fg();a.ha!=b.src&&(a.ha=b.src,a.B.load(b.src,b.mimetype));a.B.play();break;case "pause":a.B.pause()}break;case "returnDuration":a.V=b.duration;break;case "returnRemainingTime":a_(a,b.remainingTime);break;case "AdClickThru":TY(a,"click");a.va("click");break;case "AdDurationChange":a.V=b.duration;a_(a,b.remainingTime);bU(KY(a)).Jf(a.V);a.va("durationChange"); break;case "AdError":ZZ(a,Wda,Error(b.message));a.stop();break;case "AdExpandedChange":a.va("expandedChanged");break;case "AdImpression":var c=KY(a);kb($T(c))||RY(a,c);a.va("impression");break;case "AdLinearChange":c=b.isLinear;!a.M&&c?(a.va("contentPauseRequested"),Td(a.aa)):!c&&a.M&&(a.va("contentResumeRequested"),YZ(a,"getAdRemainingTime"),YZ(a,"getAdDuration"));a.M=c;var d=KY(a);d.ia=!0;d.ma=c;a.va("linearChanged");a.K&&a.$(new UZ);break;case "AdLoaded":Td(a.ia);a.ma=!0;c=b.companions;d=KY(a); if(kb($T(d))){var e=d.A.o,f=[],k=null;try{var l=vz(c),m=uf(l);null!=m&&"CompanionAds"==m.nodeName&&(k=CW(yW.prototype,m,e))}catch(p){}null!=k&&f.push(k);kb(f)||IT(d,f)}b_(a);UY(a,"loaded");break;case "AdPaused":a.U=!0;UY(a,"pause");break;case "AdPlaying":a.U=!1;UY(a,"resume");break;case "AdRemainingTimeChange":a_(a,b.remainingTime);break;case "AdSkipped":UY(a,"skip");break;case "AdSkippableStateChange":UY(a,"skippableStateChanged");break;case "AdStarted":TY(a,"impression");TY(a,"creativeview");a.va("start"); break;case "AdStopped":TY(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.M?TY(a,"acceptinvitationlinear"):TY(a,"acceptinvitation");break;case "AdUserMinimize":TY(a,"collapse");break;case "AdUserClose":UY(a,"userClose");break;case "AdVideoComplete":UY(a,"complete");break;case "AdVideoFirstQuartile":UY(a,"firstquartile");break;case "AdVideoMidpoint":UY(a,"midpoint");break;case "AdVideoStart":TY(a,"start");break;case "AdVideoThirdQuartile":UY(a,"thirdquartile");break;case "AdVolumeChange":c= b.volume;c!=a.O&&a.va("volumeChange");0==c&&0!=a.O?(TY(a,"mute"),a.va("mute")):0==a.O&&0!=c&&TY(a,"unmute");a.O=c;a.B.setVolume(c);break;case "Ping":ZK(b.url)}}; var c_=function(a,b){XZ(a,"wrapperCall",{messageType:b})}; var b_=function(a){a.ma&&a.sa&&(YZ(a,"startAd"),a.M||(a.$(new UZ),YZ(a,"getAdRemainingTime")),YZ(a,"getAdDuration"))}; var a_=function(a,b){a.M||(Td(a.aa),fa(b)&&-1!=b||(b=30),a.aa=Sd(a.fA,1E3*b,a))}; var d_=function(a){this.o=a}; var e_=function(a,b,c,d,e,f,k){dd.call(this);this.C=this.F=0;this.J=a;this.bc=b;this.da=c;this.D=null;this.K=d;this.Y=f;this.O=zK.A;this.o=null;this.U="normal";this.M=null;this.H=e;this.A=[];this.aa=this.S=this.Z=this.L=!1;this.V=k;Xda(this)}; var f_=function(a){return null!=a&&pU(a,"nonlinear")}; var Xda=function(a){E(a.J,function(a){a=new N(a.B.o);var c=a.o.get("max_ad_duration");n(c)||a.o.get("pmxd")})}; var g_=function(a){return a.F<a.J.length&&null!=a.J[a.F]}; var Yda=function(a,b){if(V()&&!kb(b)&&0==a.bc&&f_(b[0])){var c=fU(b[0]);return"ADSENSE"==(0<c.length?c.pop():WT(b[0])).toUpperCase()}return!1}; var h_=function(a){!g_(a)||2<=a.A.length-a.C?a.Z||(a.$("adBreakInitialized"),a.Z=!0):i_(a)}; var i_=function(a){var b=a.J[a.F];Dm(a.G,a.K,"adsLoaderSdkAdLoaded",a.lp,a);zK.A="on_master_ad";kda(a.K,b.B,b)}; var Zda=function(a){null==a.bc||Ih(a.A,function(a){return!a.A})||(a.A=$d(a.A,function(a){return!(a.A&&!a.B)}))}; var j_=function(a){var b;a:{if(a.C<a.A.length&&(b=a.A[a.C].o,!kb(b))){b=null!=b[0]&&null==KT(b[0]).rm;break a}b=!1}if(b){b=a.A[a.C];try{if(a.S||(k_(a),a.o=l_(a,b.o),m_(a)),a.o.init(a.U),null!=a.M&&a.o.setVolume(a.M),n_(a.o))a.$("contentResumeRequested"),a.H.Oe(),a.o.start(),null!=a.D&&a.D.start();else{var c=a.o;if(null!=c&&c instanceof wZ)a.H.Fg(),a.o.start();else{var d=a.o;if(null!=d&&d instanceof VZ)a.H.Oe(),a.H.Fg(),1==a.o.M||a.$("contentResumeRequested"),a.o.start();else throw Error("Unknown ads manager type."); }}}catch(e){a.C++,j_(a)}g_(a)&&i_(a)}else a.$("contentResumeRequested"),o_(a)}; var l_=function(a,b){var c=null;if(null!=a.K.D)c=bY(b);else if(EU(b[0]))c=new VZ(b);else if(LT(b[0]))c=new wZ(b);else if(f_(b[0]))c=new ZY(b);else throw Error("No valid creative type found.");c.G=a.V;null!=a.B&&(a.B.dispose(),a.B=null);a.B=new Cm(a);Dm(a.B,c,"companionBackfill",a.mp,a);c.Hd(new d_(a.H),{currentTime:0},a.Y);return c}; var k_=function(a){a.H.ga();null!=a.D&&(a.D.dispose(),a.D=null);null!=a.B&&(a.B.dispose(),a.B=null);null!=a.o&&(a.o.destroy(),a.o=null)}; var m_=function(a){if(null==a.o)throw Error("The current ads manager is not defined");var b=a.o;Dm(a.B,b,"adError",a.ey,a);Dm(a.B,b,p_,a.mp,a);a.B.P(b,["allAdsCompleted"],w);Dm(a.B,b,"contentPauseRequested",a.Ow,a);Dm(a.B,b,"contentResumeRequested",a.Pw,a);Dm(a.B,b,"userClose",a.Qw,a);Dm(a.B,b,"autoClose",a.Nw,a);n_(a.o)&&(b=bU(KY(a.o)).ha,0<b||a.Y.zn)&&(0>=b&&(b=15),null!=a.D&&a.D.dispose(),a.D=new Qd(1E3*b),Im(a.B,a.D,"tick",a.eA,a))}; var n_=function(a){return null!=a&&a instanceof ZY}; var o_=function(a){a.L=!1;a.$("allAdsCompleted")}; var $da=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;E(a.A,function(a,b){var f=a.o;jb(f,c);d+=f.length;b<this.C&&(e+=f.length)},a); b=c.D;var f=e+b.D;b.C=d+(a.J.length-a.F);b.A=f;b.B=a.da;b.o=a.bc}}; var q_=function(a){jc.call(this,a);this.B=null}; var r_=function(a,b,c){dd.call(this);this.o=a;this.B=[];this.F=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.H=null!=c&&fa(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.C=null;this.A=!1;aea(this,b)}; var bea=function(a){this.o=a;this.B=this.A=!1}; var s_=function(a){null!=a.C&&(a.C.dispose(),a.C=null);a.o.stop();a.A=!1}; var cea=function(a){if(a.A){var b=db(a.B,function(a){return-1==a.o},a); null!=b&&t_(a,!0,b)}}; var aea=function(a,b){E(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Gb(this.B,new bea(a),function(a,b){return zb(a.o,b.o)})},a)}; var dea=function(a,b){for(var c=[],d=0;d<a.B.length;d++){var e=a.B[d];-1!=e.o&&e.o<=b&&nb(c,e)}return c}; var eea=function(a,b){for(var c=0;c<a.B.length;c++){var d=a.B[c];if(-1!=d.o&&b>=d.o-a.H&&b<d.o&&!a.B[c].A)return d}return null}; var u_=function(a){a.$(new q_("contentTrackingError"))}; var t_=function(a,b,c){if(null!=c){if(!c.A){var d=new q_("requestAds");d.B=c.o;a.$(d);c.A=!0}b&&!c.B&&(b=new q_("playAds"),b.B=c.o,a.$(b),c.B=!0)}}; var v_=function(a,b){F.call(this);this.C=a;this.o=-1;this.B=b}; var w_=function(a,b){if(0==b.bc||0>=a.B||0>=a.o)return!1;var c=H()/1E3,d=b.bc-a.C.currentTime;0<d&&(c+=d);return c-a.o<=a.B}; var aY=function(a,b){JY.call(this,[]);this.ea=a;this.L=new wg;this.D=this.B=null;this.U=new go;this.K=null;this.Z=b;this.ia=this.aa=!1;this.fa=this.O=null;this.ha=0;this.V=!1}; var x_=function(a,b){a.V=!1;a.bf(b);if(0==b.bc)a.si();else{if(-1==b.bc)(y_(a)||!V()&&a.aa)&&z_(a);else{var c=a.D;c.o.start();c.A=!0}a.K=null}}; var A_=function(a){null!=a.H&&(a.H.dispose(),a.H=null);a.aa=!1;null!=a.D&&s_(a.D)}; var B_=function(a){if(null==a.K){var b=jo(a.U);if(null!=b){a.K=b;var c=a.L.get(a.K.B);if(null==c)a.K=null,B_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.K=null,B_(a);else if(null!=a.fa&&w_(a.fa,c))a.K=null,B_(a);else if("requestAds"==b.type)a.V?(a.U.isEmpty()||"playAds"!=ko(a.U).type||jo(a.U),x_(a,c)):(b=QY(a),Dm(b,c,p_,a.$,a),Dm(b,c,"adError",a.Tn,a),Dm(b,c,"allAdsCompleted",a.fp,a),Dm(b,c,"contentPauseRequested",a.ro,a),Dm(b,c,"contentResumeRequested",a.si,a),Dm(b,c,"userClose",a.Tw,a), Dm(b,c,"autoClose",a.Sw,a),Dm(b,c,"adBreakInitialized",a.gp,a),c.init(-1,-1,a.S));else if("playAds"==b.type)if(null!=a.B&&a.B.Wa()&&a.bf(a.B),a.V)x_(a,c);else if(a.B=c,a.B.setVolume(a.volume),c=a.B,b=a.S,null!=b&&(c.U=b),null!=c.o&&c.o.pf(-1,-1,b),a.B.S){c=a.B;if(c.C<c.A.length){b=c.A[c.C];k_(c);try{c.o=l_(c,b.o),m_(c)}catch(d){c.C++,j_(c)}}a.va("contentResumeRequested");a.D.getCurrentTime()>=a.ha?null!=a.B&&a.B.start():a.K=null}else a.B.start()}}}; var z_=function(a){a.ia||(a.ia=!0,a.Z.o=!0,a.va("allAdsCompleted"),-1==a.O&&C_(a))}; var C_=function(a){LK(HK(),41351033)||hS.clear();null!=a.G&&(a=a.G.Be(),null!=a&&jS(a,hS.o))}; var y_=function(a){return 0==a.L.Ka().length}; var fea=function(){}; var bY=function(a){if(kb(a))return null;var b=a[0];switch(EU(b)?"vpaid":mU(b)&&pU(b,"nonlinear")?"overlay":pU(b,"linear")?"video":pU(b,"nonlinear")?"overlay":null){case "overlay":return mU(b)?new bZ(a):new ZY(a);case "video":return new wZ(a);case "vpaid":return new VZ(a);case "flash_vpaid":return null;default:return null}}; var D_=function(a){dd.call(this);this.A=a;a=new HU(new dS);this.o=new YX(new fea,a,hS);this.o.P("adsManagerLoaded",this.$,!1,this);this.o.P("adError",this.$,!1,this);this.o.P("adLoadError",this.$,!1,this)}; var E_=function(a,b,c){JK();var d="",e=AM(),f=e.A,e=e.o;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.oc=OR(b.o,a.A.B);b.Vl=a.A.H;jda(a.o,b,c)}; var F_=function(a,b){lH.call(this,a,b)}; var G_=function(a){this.app=a;mq.call(this,a.Xa)}; var H_=function(a,b,c){this.X=a;this.o=b||"";this.B=c||null;this.C=!1}; var I_=function(a,b){var c=a.X;if(c.Ea&&("detailpage"==c.Ba||"leanback"==c.Ba||"embedded"==c.Ba&&(c.Ca||c.experiments.B))&&!a.C){a.C=!0;zi("TIMING_ACTION")||wi("TIMING_ACTION",a.X.csiPageType);a.X.ha&&wi("CSI_SERVICE_NAME",a.X.ha);if(a.B){var c=a.B.C,d;for(d in c)Xu(d,c[d],a.o);d=a.B.B;for(var e in d)cv(e,d[e],a.o);e=a.B;e.C={};e.B={}}if(e=Fh("visibilityState",window.document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}cv("yt_vis", d,a.o)}cv("yt_pt","html5",a.o);b&&!bv("pbs",a.o)&&a.A("pbs",b);e=a.X;("detailpage"!=e.Ba||"blazer"==e.o)&&bv("_start",a.o)&&av(a.o)}}; var gea=function(){this.D=new SJ(50);this.A=null;this.C=this.B=0;this.o=[]}; var hea=function(a,b){0!=a.o.length&&(b.D=a.o.length,b.H=me(a.o,function(a,b){return a+b},0),b.G=cb(a.o),b.K=Math.min.apply(Math,a.o),b.J=Math.max.apply(Math,a.o),a.o=[])}; var iea=function(a,b){if(a.A&&!(b>=a.B&&b<a.C)){var c=a.A.gf(b);a.B=a.A.ee(c);a.C=a.B+a.A.cg(c);var d=H()/1E3,c=Kr(a.A,c),d=d-(c?c.A:window.NaN);TJ(a.D,d);a.o.push(d)}}; var jea=function(a,b){this.o=a;this.A=b;this.B=1}; var J_=function(a,b,c,d){d/=a.B;var e=cK(a.o)+1/dK(a.o),f;f=Math.max(.9*(d-3),bK(a.o)+8192*e);c=f/e*a.A.ha/(b+c);c=Math.min(c,d);c=Math.max(a.A.ia,Math.min(a.A.Ra,c));return Math.min(a.A.F,Math.max(65536,Math.ceil(c*b)))}; var K_=function(a){var b=dK(a.o);a=1E-9+bK(a.o)+1048576*cK(a.o);return b*Math.min(1,1048576/(b*a))}; var L_=function(a){return K_(a)/a.B}; var M_=function(a,b,c){this.audio=a;this.video=b;this.reason=c}; var kea=function(a,b,c,d){this.V=a;this.H=b;this.F=c;this.J=d;this.B=this.L=this.o=null;this.D="i";this.M=-1;this.G=this.C=null;this.A=[];this.S=this.O=0;this.U=null;this.K=!1}; var lea=function(a,b,c,d){"m"==c&&a.o.isLocked()&&!b.isLocked()&&(c="a");a.K=a.K||d;if("m"==c&&b.isLocked())return a.D=c,N_(a,b),O_(a),a.B=P_(a),new M_(Q_(a),a.B,c);d=a.o.equals(b);if("m"==a.D&&a.o.isLocked()&&d)return null;"r"!=c||d||(a.M=-1);N_(a,b);b=P_(a);if("r"==c&&b==a.B){if(d)return null;a.B=b;return new M_(Q_(a),b,c)}a.D=c;R_(a);return null}; var mea=function(a,b){S_(a);a.U=b;a.S=$s();a.M=-1;N_(a,a.o)}; var S_=function(a){return!!a.S&&9E4>=$s()-a.S}; var Q_=function(a){T_(a);return a.C}; var P_=function(a){T_(a);return a.G}; var R_=function(a){a.B&&a.G&&U_(a,a.B.info)<U_(a,a.G.info)&&(a.K=a.K||a.G.info.video.width>1.6*a.B.info.video.width||"r"==a.D)}; var V_=function(a){var b=a.D;a.D="a";a.M=$s();a.K=!1;return new M_(a.L,a.B,b)}; var T_=function(a){if(!(!a.o.isLocked()&&-1<a.M&&8E3>$s()-a.M)){a.S&&!S_(a)&&(a.S=0,N_(a,a.o));O_(a);var b=L_(a.V);if(a.o.isLocked())a.G=a.F.o[a.A[a.A.length-1].id];else{for(var c=Math.min(a.O,a.A.length-1),d=b/a.H.A-U_(a,a.C.info);0<c&&!(U_(a,a.A[c])<=d);c--);for(b=b/a.H.o-U_(a,a.C.info);c<a.A.length-1&&!(U_(a,a.A[c+1])>=b);c++);a.O=c;a.G=a.F.o[a.A[c].id];R_(a)}}}; var N_=function(a,b){a.o=b;var c=a.J.videoInfos;if(!a.o.isLocked()&&(c=$d(c,function(a){return U_(this,a)>this.H.H?!1:!this.F.o[a.id].D},a),S_(a))){var c=$d(c,function(a){return a.id!=this.U.id},a),d=$d(c,function(a){a=jr(a); return"140"==a||"134"==a||"243"==a}); d.length&&(c=d)}c.length||(c=a.J.videoInfos);d=$d(c,b.C,b);d.length||(d=[c[0]]);d.sort(A(function(a,b){return U_(this,a)-U_(this,b)},a)); for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(pb(d,c),c--):U_(a,e)*a.H.o>U_(a,f)&&(pb(d,c-1),c--)}a.A=d;KI(a.H,d[d.length-1].video.OB)}; var nea=function(a,b){if(b)a.C=a.F.o[b];else{var c=db(a.J.o,function(a){return!!a.Ib&&a.Ib.isDefault}),c=c||a.J.o[0]; a.C=a.F.o[c.id]}O_(a)}; var O_=function(a){if(!a.C.info.Ib&&(a.C=a.F.o[a.J.o[0].id],1<a.J.o.length)){var b=!1;if(a.o.isLocked())b=240>a.o.o;else{for(b=0;b+1<a.A.length&&"tiny"==a.A[b].video.quality;)b++;var c=L_(a.V)/a.H.o,b=U_(a,a.C.info)+U_(a,a.A[b])>c}b&&(a.C=a.F.o[a.J.o[1].id])}}; var oea=function(a){var b=a.H.A,c=L_(a.V)/b-U_(a,a.C.info),b=gb(a.A,function(a){return U_(this,a)<c},a); 0>b&&(b=0);a.O=b;a.G=a.F.o[a.A[b].id]}; var U_=function(a,b){return a.H.U&&b.C?b.C:b.o}; var pea=function(){this.o=this.A=0;this.B=[]}; var W_=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]}; var X_=function(){this.o=this.A=!1}; var Y_=function(a,b){this.M=a;this.B=b;this.D=[];this.o=[];this.C=this.A=null;this.F=0;this.O=b.info.o;this.K=this.L=!1;this.J=new X_;this.H=null;this.G=0}; var Z_=function(a,b){a.D.push(b);a.A=cb(b.info.o);a.F+=$_(b)}; var a0=function(a){for(var b;a.D.length&&5==a.D[0].state;)b=a.D.shift(),!b.L&&b.o&&(a.F=b0(b,a.F)),c0(b)&&(b=d0(b),E(b,a.S,a));a.D.length&&c0(a.D[0])&&!Xr(a.D[0].info.o[0])&&(b=a.D[0],!b.L&&b.o&&(a.F=b0(b,a.F)),b=d0(b),E(b,a.S,a))}; var e0=function(a){return!(!a.o.length||1!=a.o[0].info.o.info.A||0!=a.o[0].info.B)}; var f0=function(a){var b=Ps(a.o[0]);return b.getInt32(0)>b.byteLength&&1==a.o.length}; var g0=function(a,b){f0(a);var c=a.o[0],d=h0(a);if(!d)return null;c=b||c.info.o.index.uk(c.info.C);return(d=ps(d,c))?d:null}; var i0=function(a){var b=a.o[0],c=h0(a);if(c&&(c=Ds(c)))if(c>Ps(b).byteLength){var d=a.o[1];j0(a,b.range);j0(a,Er(d.range.start,c-b.range.length))}else j0(a,Er(b.range.start,c))}; var h0=function(a){var b=a.o[0],c=Ps(b),d=Ds(c);if(!d||d>c.byteLength){d=a.o[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.o,b.range.start,b.range.length));a.set(new window.Uint8Array(d.o,d.range.start,d.range.length),b.range.length);d=Ds(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c}; var qea=function(a,b){if(a.L)return a.o[0].range;var c=!!a.B.info.audio,d=a.B.Mh();if(a.o[0].info.D>=b)return null;var e;for(e=1;e<a.o.length;e++){var f=a.o[e].o!=a.o[e-1].o;if(a.o[e].info.D>b||f||a.M.V)break}e--;var f=a.o[e].range.end,k=a.o[e].info.J-b;if(d&&c&&0<=a.M.S&&k>a.M.S){c=Math.floor((b-a.o[e].info.D)/a.o[e].info.H*a.o[e].info.A);if(0==c)return null;f=a.o[e].range.start+c-1}return new Cr(a.o[0].B?0:a.o[0].range.start,f)}; var j0=function(a,b){for(var c;a.o.length;){if(a.o[0].range.end>b.end){var d;c=a.o[0];var e=b.end-a.o[0].range.start+1,e=Math.min(e,c.info.A);d=new Wr(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B,e,!1);var f=Er(c.range.start,e);d=new Os(d,c.o,f,c.A,c.B);e=new Wr(c.info.type,c.info.o,c.info.range,c.info.C,c.info.startTime,c.info.duration,c.info.B+e,c.info.A-e,c.info.G);f=new Cr(f.end+1,c.range.end);c=new Os(e,c.o,f,c.A,!1);d=[d,c];c=d[0];a.o[0]=d[1]}else c=a.o.shift(); d=a;f=c.info;d.C=f;d.L&&d.C.F&&(d.L=!1);d.O=Math.max(d.O,f.o.info.o);if(c.range.end==b.end)break}a.o.length&&c.o==a.o[0].o||(a.F-=c.A.length)}; var k0=function(a,b){var c=l0(a,b);if(0<=c)return c;a.A=a.B.fi(b).o[0];m0(a)&&(a.C=null);a.H=null;a.G=0;return a.A.startTime}; var n0=function(a,b){o0(a);if(a.B.info.video&&a.C&&!a.C.F&&b){var c=eb(a.o,function(a){return a.info.F}); a.o=vb(a.o,0,c+1);a.L=!0}else a.o=[];if(a.o.length)for(a.F=a.o[0].A.length,c=1;c<a.o.length;c++)a.o[c].o!=a.o[c-1].o&&(a.F+=a.o[c].A.length);else a.F=0}; var p0=function(a){a.J.A||a.J.start();n0(a,!1);m0(a)&&(a.C=null)}; var rea=function(a,b){for(var c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)b.dispose();else{for(;c<a.D.length;)a.V(a.D.pop());3==b.info.o[0].type?(b.o&&b.o.C?(c=b.o.C,c=new Wr(c.type,c.o,c.range,c.C,c.startTime+c.duration,0,c.B+c.A,0,!1)):(c=b.info.o[0],c=new Wr(c.type,c.o,c.range,c.C,c.startTime,0,c.B,0,!1)),a.A=c):a.A=null}}; var sea=function(a){return Ih(a.o,function(a){return a.info.F})}; var m0=function(a){return!!a.C&&a.C.G}; var q0=function(a){var b=[];a.C&&b.push(a.C);E(a.o,function(a){b.push(a.info)}); E(a.D,function(a){E(a.info.o,function(a){3!=a.type&&4!=a.type||b.push(a)})}); a.A&&a.A!=cb(b)&&b.push(a.A);return b}; var r0=function(a){if(!a.A||!a.A.A)return!1;a=q0(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].D-a[b-1].J)))return!1;return!0}; var l0=function(a,b){if(r0(a)){var c;a:{c=q0(a);for(var d=0;d<c.length;d++)if(c[d].D<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN}; var s0=function(a){return Ih(a.D,function(a){return 3<=a.state})}; var t0=function(a){return!(!a.A||!Vr(a.B)||a.A.o==a.B)}; var u0=function(a){return t0(a)&&a.A.o.info.o<a.B.info.o}; var o0=function(a){E(a.D,a.V,a);a.D=[];a.A=null}; var v0=function(a){return!!a.A&&a.A.C<a.B.index.yg()}; var tea=function(a,b){this.A=a;this.F=this.D=!1;this.length=b;this.o=0;this.B=[];if(1==this.A.length&&!this.A[0].range){var c=this.A,d;d=this.A[0];var e=Er(0,this.length);d=new Wr(d.type,d.o,e,d.C,d.startTime,d.duration,d.B,e.length,d.G);c[0]=d}this.C=null}; var uea=function(a){var b=a.length-a.o;E(a.B,function(a){b+=a.range.length}); return b}; var w0=function(a,b,c,d){this.status=0;this.J=this.A=null;this.K=d;this.F=c;this.B=[];this.G=null;this.D=this.o=0;vea++;this.L=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Bi(A(this.QB,this)),Bi(A(this.zj,this)));H();this.H=!1;b()}; var x0=function(a){a.B.push(a.G.subarray(0,a.o));a.o=0;a.G=a.H?null:new window.Uint8Array(y0(a))}; var z0=function(a){a.C.read().then(Bi(A(a.Py,a)),Bi(A(a.zj,a)));var b=H();a.L=b}; var y0=function(a){a=a.fg();return Math.max(16384,.125*a)}; var A0=function(a,b,c,d){this.status=0;this.A=null;wea++;this.B=this.C=!1;this.o=new window.XMLHttpRequest;this.o.open("GET",a);this.o.responseType="arraybuffer";this.o.withCredentials=!0;this.D=d;this.F=c;a=Bi(A(this.WD,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",Bi(A(this.XD,this)),!1)}; var B0=function(a,b,c){this.C=a;this.info=b;this.timing=c;this.state=1;this.B=null;this.M=this.G=this.K=0;this.F=window.NaN;this.H=this.A=this.S=null;this.D=0;this.o=null;this.L=!1;this.J=null;this.O=window.NaN}; var C0=function(a){var b;b=a.timing;b={rt:((H()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=a.A?vr(a.A.o):"";b.rn=a.K.toString();a.D&&(b.rc=a.D.toString());410!=a.D&&500!=a.D&&503!=a.D||(b.isPotentialFormatUnavaliable="true");return b}; var D0=function(a){a.isDisposed();if(2>a.G)a=!0;else{var b=a.info.B;a=!(a.K>b.B&&1<=b.A)}return a}; var E0=function(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.C&&(c.C=!1)}a.S&&a.S(a)}; var xea=function(a){return Gg(a.info.o,function(a){return 3==a.type})}; var F0=function(a){if(a.B){var b=a.B;a.B=null;b.Gr()}a=a.timing;a.C&&(a.C=!1)}; var G0=function(a){var b=a.B.kh("content-type"),c=a.B.fg(),c=!c||c<=B0.o;return(!H0(a)||!b||-1!=b.indexOf("text/plain"))&&c}; var d0=function(a){a=a.o;var b=a.B;a.B=[];a.C=cb(b).info;return b}; var c0=function(a){return 2<=a.state&&!!a.o&&!!a.o.B.length}; var I0=function(a,b){H0(a)&&!a.B.fg()&&(a.C.Y=!1,a.C.Z=!1);if(b||H0(a)&&!G0(a)){if(!a.o){var c=b?a.B.qk():a.B.fg();a.o=new tea(a.info.o,c)}for(;a.B.To();)for(var c=a.o,d=a.B.Lq(),e=0,f=0,k=0;k<c.A.length;k++){var l=c.A[k];if(e+l.A<=c.o)e+=l.A;else{var m;var p=c,v=l;1==v.type?(p.D=!0,m=!1):3==v.type||4==v.type?(v=p.D&&!p.F,p.F=!0,m=v):m=!1;var p=c,v=l,t=c.o-e,y=f,x=d,L=Math.min(v.A-t,x.length-y),ha=void 0,ha=new Wr(v.type,v.o,v.range,v.C,v.startTime,v.duration,v.B+t,L,v.B+t+L==v.range.length&&v.G), K=t=void 0,t=x.buffer,y=x.byteOffset+y,x=Er(x.byteOffset,x.length);1==v.type?(t.slice?t=t.slice(y,L):(v=new window.Uint8Array(t,y,L),t=(new window.Uint8Array(v)).buffer),K=Er(0,L)):K=Er(y,L);p.B.push(new Os(ha,t,K,x,m));p=L;c.o+=p;f+=p;e+=l.A;if(f==d.length)break}}}}; var b0=function(a,b){a.L=!0;return b-ds(a.info)+$_(a)}; var $_=function(a){return a.o&&a.L?uea(a.o):ds(a.info)}; var H0=function(a){return!!(a.C.Y||a.C.Z&&a.B&&a.B instanceof w0)}; var yea=function(a,b,c){this.B=a;this.K=b;this.S=c;this.o=this.F=this.A=window.NaN;this.J=this.L=this.C=!1;this.D=0;this.G=this.M=window.NaN}; var J0=function(a,b,c){if(a.C){var d=(b-a.F)/1E3,e=c-a.o;0<e&&(.2<d||1024>e?(a.D+=d,.2<d&&ZJ(a.B,.05,e)):ZJ(a.B,d,e),a.J=!0)}else 8192<=c&&(d=a.B,d.B.o(1,(b-a.A)/1E3),fK(d),a.C=!0);a.F=b;a.o=c}; var K0=function(a){var b=a.K-a.o,b=1E3*(b*a.H.tailDelay+b/a.H.byterate),c=H(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.H.delay);a.G=b}; var L0=function(a,b,c,d){Rj.call(this);this.J=a;this.C=b;this.G=c;this.B=this.A=null;this.L=new jea(a,b);this.o=null;this.F=new kea(this.L,b,this.G,d);this.D=this.ea=this.aa=this.da=window.NaN;this.M=!1;this.H=window.NaN;this.ka=0;this.K=!1;this.ia={};this.V="";this.Y=this.Z=0;this.fa=b.sa?new pea:null}; var M0=function(a){0==a.D&&(a.A.B.B||N0(a,a.A,!0),a.B.B.B||N0(a,a.B,!0));a.seek(a.D);O0(a,"gv")}; var P0=function(a){a.o&&a.o.o&&a.o.o.removeEventListener&&(a.o.o.removeEventListener("updateend",A(a.tc,a),!1),a.o.A.removeEventListener("updateend",A(a.tc,a),!1),a.o.o.removeEventListener("error",A(a.Fi,a,!0),!1),a.o.A.removeEventListener("error",A(a.Fi,a,!1),!1));a.o=null;a.K=!0;a.B&&n0(a.B,!1);a.A&&n0(a.A,!1)}; var Q0=function(a){a.o&&Gv(a.o)&&P0(a)}; var R0=function(a,b,c,d){a.isDisposed()||((b=lea(a.F,b,c,d))&&a.R("videoformatchange",b),S0(a,a.B,P_(a.F)),a.F.o.isLocked()&&"m"==c&&(p0(a.B),p0(a.A)),u0(a.B)&&T0(a,a.B,a.A),U0(a))}; var V0=function(a,b,c){if(!b.J.A||!c.remove)return!1;if(c.updating)return!0;if(!b.J.o&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.o=!0;b.J.reset();a.R("seekrequired");return!1}; var W0=function(a,b,c){if(a.K)return!1;if(!b.A){if(!Vr(b.B))return b.B.B||N0(a,b,!1),!1;k0(b,a.D)}var d=b.D.length+c.D.length;(s0(b)||s0(c)||a.G.isLive)&&--d;if(2<=d+1)return!1;d=b.A;4==d.type&&Vr(d.o)&&(b.A=cb(d.o.Ti(d)),d=b.A);!d.G&&!d.o.lh(d)||d.o.info.audio&&4==d.type?a=!1:u0(b)&&!a.C.J?a=!0:(!(c=d.G||b.F+c.F>a.C.K||!!(c.A&&!c.A.G&&c.A.J<d.J))&&(c=3==d.type)&&(d=d.J,b=X0(a,b,!0),a.F.o.isLocked()||(c=($s()-a.ka)/1E3,b=Math.min(b,30+2*c)),c=d>a.D+b),a=c?!1:!0);return a}; var T0=function(a,b,c){if(!a.o||Fv(a.o)||Jv(a.o)){var d=a.D,e=a.L;c=J_(e,b.B.info.o,c.B.info.o,0);e=bK(e.o)+c*cK(e.o)+c/dK(e.o);a:{d+=Math.max(e,e+5-c/b.B.info.o);a=a.F.K;if(b.D.length){if(b.D[0].info.o[0].startTime<=d)break a;o0(b)}for(e=b.o.length-1;0<=e;e--)c=b.o[e],c.info.startTime>d&&(b.o.pop(),b.o.length&&b.o[e-1].o==c.o||(b.F-=c.A.length));b.D.length?b.A=cb(b.D[b.D.length-1].info.o):b.o.length?b.A=cb(b.o).info:b.A=b.C;a&&b.A&&d<b.A.startTime&&(b.H=null,b.G=0,b.A=b.B.fi(d,!0).o[0])}}}; var Y0=function(a,b,c){W0(a,b,c);var d=b.A;if(Vr(b.A.o)){u0(b)&&!a.C.J&&(T0(a,b,c),b.A||k0(b,a.D));var d=b.A,e=d.J-a.D,f=!d.range||0==d.A&&0==d.B?0:d.range.length-(d.B+d.A);t0(b)&&(u0(b)||e<=a.C.aa)&&0==f&&(f=d.startTime+L0.o,d.A&&(f+=d.duration),k0(b,f),d=b.A);d.o.Mh()?(c=J_(a.L,d.o.info.o,c.B.info.o,e),e=t0(b),c=Ys(d.o,d,c),c.range&&1<c.o.length&&(e?c=Ys(d.o,d,c.o[0].A):(e=c.o[c.o.length-1],f=e.A/c.range.length,!e.F&&.4>f&&(c=Ys(d.o,d,c.range.length-e.A)))),d=c):d=fs(d.o,d)}else d.o.Mh()?(c=J_(a.L, b.B.info.o,c.B.info.o,0),d=Ys(d.o,d,c)):d=fs(d.o,d);Z_(b,Z0(a,d))}; var Z0=function(a,b){if(3==b.o[b.o.length-1].type){var c;a:{c=a.F;var d=b.o[0].o;if(d.info.video){if(c.B!=d){c.B=d;c=V_(c);break a}}else c.L=d;c=null}c&&a.R("videoformatchange",c)}c=ds(b);var d=a.J,e=a.L,f=Math.min(2.5,bK(e.o)),e=K_(e);c=new B0(a.C,b,new yea(d,c,c-f*e));d=A(a.EA,a);c.isDisposed();c.S=d;c.start(Math.max(0,b.o[0].D-a.D));return c}; var U0=function(a){if((0,window.isNaN)(a.da)){var b=A(a.tc,a);a.da=Ai(b,0)}}; var $0=function(a){if((0,window.isNaN)(a.aa)){var b=A(function(){this.aa=window.NaN;this.tc()},a); a.aa=Ai(b,L0.D)}}; var a1=function(a,b,c,d,e){if(c.updating)return!0;var f=b.o.length?b.o[0]:null;if(!f)return!1;!b.C||b.C.F||Yr(b.C,f.info)||(b.C=null,Fv(a.o)&&c.abort(),c.o=null);var k=a.G.isLive&&Ts(f),l=!a.G.C&&b.M.V&&e0(b);if(k)c.o=null;else{if(k=l||!f.B)k=f.info.o.o,c.o==k?k=!1:(b1(a,c,k),c.o=k,a.R("initsegment",c.o),k=c.updating);if(k)return!0}k=X0(a,b,!1);k=a.D+k;null!==d&&0<=d&&(k=Math.min(k,d));d=qea(b,k);if(!d)return!1;if(l){if(f0(b))return!1;if(k=g0(b))return c1(a,c,new window.Uint8Array(k),f,b)?(i0(b), !0):!1}k=new window.Uint8Array(f.o,d.start,d.length);if(a.fa&&f.info.o.info.video&&1==f.info.o.info.A){var m=a.fa,p=k;0==f.info.B&&(m.A=0,m.o=0,m.B=[]);if(!((0,window.isNaN)(m.A)||8>p.length)){for(var v=new window.DataView(p.buffer,p.byteOffset),t=!1;!t;)if(m.A==m.o)a:{var t=m,y=v,x=p.length;if(t.A+7>=x){for(var L=t.A;L<x;L++)t.B.push(y.getUint8(L));t=!0}else{var ha=L=void 0;if(0<t.B.length){for(L=0;8>t.B.length;L++)t.B.push(y.getUint8(L));L=W_(t.B,0);ha=W_(t.B,4);t.B=[]}else L=y.getUint32(t.o),ha= y.getUint32(t.o+4);if(1836019558==ha||1836019574==ha||1718909296==ha||1936286840==ha)t.A+=L,t.o=t.A;else if(1835295092==ha)t.A+=L,t.o+=8;else{t.A=window.NaN;t=!0;break a}t=t.o>=x}}else a:if(t=m,y=v,x=p.length,t.o+5>=x){for(L=t.o;L<x;L++)t.B.push(y.getUint8(L));t=!0}else{L=void 0;if(0<t.B.length){for(L=0;6>t.B.length;L++)t.B.push(y.getUint8(L));L=W_(t.B,0);12==L&&6==t.B[4]&&45==t.B[5]&&y.setUint8(t.o+5,63);t.o+=L+4;t.B=[]}for(;t.o<t.A&&t.o+5<x;){L=y.getUint32(t.o);if(0>=L){t.A=window.NaN;t=!0;break a}12== L&&6==y.getUint8(t.o+4)&&45==y.getUint8(t.o+5)&&y.setUint8(t.o+5,63);t.o+=L+4}t=t.o>=x}(0,window.isNaN)(m.A)||(m.A-=p.length,m.o-=p.length)}}m=!1;if(3==f.info.type&&(1==f.info.o.info.A||2==f.info.o.info.A))if(m=1==f.info.o.info.A&&a.C.Ca&&!l&&!b.K&&0==f.info.B&&0<f.info.startTime)Rs(f,0);else if(a.G.C&&0==f.info.B){a:if(e0(b)&&!Ts(b.o[0])&&f0(b))e=!1;else{l=null===b.H?f.info.startTime:b.H;0==Rs(f,l)?(l=as(f.info),l.smst=1,a.rd(!0,"fmt.unparseable",l)):b.H=2==f.info.o.info.A?l+f.info.duration:l+Ss(f); if(2!=f.info.o.info.A)if(l=0,f.info.o.info.video&&null!==e&&(p=1E3*(Ss(f)-f.info.duration),p=b.G+p,e=e-p,Math.abs(e)<L0.F||(l=e/1E3,v=Ss(f)+l,t=as(f.info),t.deltaOffsetMs=e,t.cumOffsetMs=p,t.finalDurSecs=v,a.rd(!1,"qoe.avsync",t))),(e=l)&&e0(b)&&!Ts(b.o[0])){b.G+=1E3*(Ss(f)-f.info.duration+e);b.H+=e;e=Ss(f)+e;b:{l=0;for(p=new window.DataView(f.o);ys(p,l);){v=zs(p,l);if(1936286840==v.type){l=v.data.getUint32(v.offset+16);break b}l=Bs(v.type)?l+8:l+v.size}l=window.NaN}if((0,window.isNaN)(l))b:{l=f.info.o.o; p=0;for(v=new window.DataView(f.o);ys(v,p);){t=zs(v,p);if(1836476516==t.type){l=As(t);break b}p=Bs(t.type)?p+8:p+t.size}l=l?xs(l):window.NaN}if(e=g0(b,e*l)){if(c1(a,c,new window.Uint8Array(e),f,b)){i0(b);e=!0;break a}e=!1;break a}}else b.G+=1E3*(Ss(f)-f.info.duration);e=null}if(null!=e)return e}if(!c1(a,c,k,f,b))return!1;b.K=!0;m?(Rs(f,f.info.startTime),c.abort(),c.o=null,$r(f.info)):(j0(b,d),$r(b.C),hy(c.buffered));f.B&&(c.o=f.info.o.o,a.R("initsegment",c.o));return!0}; var c1=function(a,b,c,d,e){if(1==d.info.o.info.A&&a.C.ka&&a.G.C)for(var f=new window.DataView(c.buffer),k=qs(f,0,1701671783);null!=k;)k.data.setUint32(k.offset+4,1936419184),k=qs(f,0,1701671783);return b1(a,b,c)?!0:(d.info.o.info.video?(a=a.C,a.C=Math.floor(.5*a.C),a.L=Math.floor(.5*a.L),a.B=Math.floor(.5*a.B),a.F=Math.floor(.5*a.F)):(a=a.C,a.D=Math.floor(.5*a.D),a.M=Math.floor(.5*a.M),a.B=Math.floor(.5*a.B)),p0(e),!1)}; var b1=function(a,b,c){try{Jv(a.o)?b.appendBuffer(c):b.append(c)}catch(d){return 22!=d.code&&Fi(d),!1}return!Gv(a.o)}; var X0=function(a,b,c){var d=b.B.info.audio?a.C.D:a.C.C;!a.C.J&&a.F.o.isLocked()&&(d=Math.max(d,b.B.info.audio?a.C.M:a.C.L));c&&(d+=a.C.K);b=a.F.o.isLocked()?b.A?b.A.o.info.o:b.B.info.o:b.O;d/=b;0<a.C.B&&(d=Math.min(d,a.C.B));return d}; var d1=function(a){if(a.G.isLive){if(!a.A.B.index.eg())return window.NaN;var b=a.A.B.index.yg(),c=a.A.B.index.Lb(),d=a.A.B.index;return 1>a.C.liveChunkReadahead?d.ee(c)+d.cg(c)-L0.B:d.ee(Math.max(b,c-a.C.liveChunkReadahead+1))+L0.B}return Math.floor(Math.min(a.A.B.index.dg(),a.B.B.index.dg()))}; var e1=function(a,b,c,d){if(Vr(b.B))if(d){var e=jy(d.buffered,c),f=window.NaN,k=b.C;k&&(f=jy(d.buffered,k.o.index.ee(k.C)));if(e==f&&r0(b))return c;d=l0(b,c);if(0<=d)return d;n0(b,!0);b.B.info.video&&b.C&&!b.C.F&&!sea(b)&&(d=b.C,b.o.length&&(d=cb(b.o).info),d=b.A||d,d=Ys(d.o,d,d.range.length-(d.A+d.B)),Z_(b,Z0(a,d)));if((0,window.isNaN)(e))return k0(b,c);k0(b,e+L0.o)}else k0(b,c);else b.B.B||N0(a,b,!1),0!=c&&o0(b);return c}; var S0=function(a,b,c){b.B!=c&&(b.B=c,c.B||N0(a,b,!1))}; var N0=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.C.F,Math.floor(Math.max(d,2*b.B.info.o))));c=b.B.Wn(d);E(c,function(a){if("f"!=a.o[0].o.info.B){var c=Z0(this,a);!Xr(a.o[a.o.length-1])&&Z_(b,c)}},a); b.B.B=!0}; var f1=function(a){if(!a.B.A)return"";a=vr(a.B.A.o.F.o);return a.substr(0,a.indexOf("."))}; var O0=function(a,b,c){a.ia[b]=c?window.performance.timing.navigationStart+c:H()}; var g1=function(a){return a.o&&!Gv(a.o)?Math.min(ly(a.o.A.buffered,a.D),ly(a.o.o.buffered,a.D)):0}; var h1=function(a,b,c,d,e){F.call(this);this.D=a;this.L=b;this.J=c;this.C=d;this.o=e;this.H="";this.A=this.K=this.F=this.G=null;this.B=new yv(this);G(this,this.B);this.C?(S(this.B,this.C,"message",this.JE),S(this.B,this.C,"keystatuseschange",this.Hz)):this.o&&(zv(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Mp),zv(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Lp),zv(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Kp))}; var i1=function(a,b){F.call(this);this.A=a;this.o=b;this.F={};this.B=null;this.D=new yv(this);G(this,this.D);this.C=this.G=null}; var j1=function(a){if(a.o.B)return a.o.B.createMediaKeys().then(Bi(A(function(a){this.G=a;this.A.setMediaKeys(a)},a))); Bt(a.o)?k1(a):Dt(a.o)?(k1(a),a.A.webkitSetMediaKeys(a.C)):zea(a);return null}; var zea=function(a){zv(a.D,a.A,["keymessage","webkitkeymessage"],a.ME);zv(a.D,a.A,["keyerror","webkitkeyerror"],a.LE);zv(a.D,a.A,["keyadded","webkitkeyadded"],a.KE)}; var k1=function(a){a.C=new (Ct())(a.o.A)}; var l1=function(a,b){var c=a.F[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.H=b.sessionId,a.F[b.sessionId]=c);return c}; var Aea=function(a,b,c){this.url=a;this.interval=b;this.o=c}; var Bea=function(a,b,c){this.o=a;this.headers=b;this.message=c}; var m1=function(a,b,c,d,e){F.call(this);this.A=a;this.o=d;this.o.subscribe("oauthtoken",this.Ir,this);this.C={session_id:e};a=this.A.D;Dt(this.A)&&(a=c.o.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));n1(this,a);this.D=this.F=!1;var f;try{f=b.createSession(c)}catch(k){b="g",k instanceof window.DOMException&&(b+=k.code),this.o.R("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.B= f)this.B.setCallbacks(this.$D,this.ZD,this.YD,this),G(this,this.B)}; var n1=function(a,b){if(Cea.test(b)){for(var c in a.C)b=$g(b,c,a.C[c]);a.H=b}else o1(a,"drm.net","u")}; var o1=function(a,b,c,d){a.isDisposed()||a.o.R("licenseerror",b,c,d);a.dispose()}; var p1=function(a,b){this.o=a;this.contentType=b||null}; var q1=function(a,b){Rj.call(this);a.addKey||a.webkitAddKey||Ct()||Ft();this.M=a;this.o=b;this.subscribe("newlicense",this.cA,this);this.subscribe("newsession",this.dA,this);this.subscribe("sessionready",this.MA,this);this.V=vu();this.H=null;this.L={};this.A=[];this.C=r1;this.G=new i1(a,b);G(this,this.G);this.B=null;Bt(b)&&(this.B=new i1(a,b),G(this,this.B));this.K=2;this.F=new yv(this);G(this,this.F);this.J=!1;this.O=null;this.D=!1;var c=this.M;if(this.o.B)S(this.F,c,"encrypted",this.qz);else{var d= Bt(this.o)?["msneedkey"]:["needkey","webkitneedkey"];zv(this.F,c,d,this.aA)}(c=j1(this.G))?c.then(Bi(A(this.Uz,this)),Bi(A(this.yy,this))):this.D=!0;this.B&&j1(this.B)}; var s1=function(a,b,c){a.isDisposed()||Bt(a.o)==c||a.J&&"widevine"==a.o.o||(c=String.fromCharCode.apply(String,b.o),a.L[c]||(a.L[c]=!0,a.J=!0,a.A.push(b),1<a.A.length||a.D&&t1(a,b)))}; var t1=function(a,b){var c=new m1(a.o,a.G,b,a,a.V);c.Ir(a.H);G(a,c)}; var u1=function(a){this.A={};this.A.c1a=A(this.D,this);this.A.c3a=A(this.F,this);this.A.c6a=A(this.C,this);(this.o=a)&&this.o.ka?this.B=oj(this.o.ka):this.B=[]}; var v1=function(a,b,c){this.o=a;this.reason=b;this.A=c}; var Dea=function(a,b){this.X=a;this.o=b}; var xH=function(a,b){return Xt(Xt(a.X.qe,b.Ug),b.Zg)}; var w1=function(a,b){var c=MA();return"auto"!=c?Vt("auto",c,!1):x1(a,b)}; var x1=function(a,b){if(DG(a.X)&&cw(a.X.F,Yv))return Yt;var c;c=!!b.B.o;var d;FG(a.X)&&(d=window.screen&&window.screen.width?new re(window.screen.width,window.screen.height):null);d||(d=a.X.zd?a.X.zd.clone():a.o.Ma());(BG||SM||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.B.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType&&(f*=.5);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*f<c.width&&e.height*f<c.height);k++);e=Vt("auto",e.quality,!1)}else e=Yt;c=e.o;qt()&&(c=Math.max(c, qr.hd1080));if(d=(mt("armv7")||mt("android"))&&!DG(a.X))d=b.B.videoInfos[0],d="9"==d.B||"("==d.B;d&&(c=Math.min(c,qr.large));c=Math.max(c,qr.medium);e.o!=c&&(e=new Ut(e.A,c,e.B));return e}; var Eea=function(a){this.C=this.o=window.NaN;this.A=this.B=!1;this.D=!!a}; var y1=function(a,b){a.o=b;a.B=!0}; var wy=function(a,b,c,d){var e=1<d;e&&(a.A=!0);if(a.B)b!=a.o&&(a.B=!1);else if(0<b&&a.o==b)return c-a.C>(e||!a.A?1500:400);a.o=b;a.C=c;return a.D&&a.A&&0>=d}; var z1=function(){dd.call(this);this.A=null}; var A1=function(a,b){var c="";b&&(B1(a,b),c=uv(b));a.o.src&&""==c||(c&&a.o.src!=c&&(a.o.src=c),b&&b.o||a.load())}; var C1=function(a){a.o.ended&&D1(a,0);if(!a.o.src&&a.A){var b=uv(a.A);a.o.src=b;a.A.o||a.load()}a.play();E1&&7<=Jw&&Pl(a,"playing",A(function(){Ai(A(this.C,this,this.getCurrentTime(),0),500)},a))}; var B1=function(a,b){a.A&&a.A.equals(b)||(a.A&&a.A.dispose(),a.A=b)}; var uy=function(a){return ly(F1(a),a.getCurrentTime())}; var D1=function(a,b){0<a.o.readyState&&(E1&&4>Jw&&(b=Math.max(.1,b)),a.o.currentTime=b)}; var G1=function(a){a.o.src&&(Rv&&0<a.getCurrentTime()&&D1(a,0),a.o.removeAttribute("src"),a.load(),a.A&&a.A.o&&B1(a,null))}; var H1=function(a){var b=F1(a);return 0<ky(b)&&a.o.duration?jy(b,a.getCurrentTime()):0}; var Fea=function(a,b,c){this.target=a;this.type=b;this.o=c||null}; var I1=function(a){z1.call(this);this.o=a;this.B={}}; var F1=function(a){return a.o.buffered||gy()}; var Gea=function(){this.A=0;this.o=this.F=this.B=this.C=window.NaN;this.D=0;this.J=this.K=this.G=this.H=window.NaN}; var J1=function(){this.endTime=this.startTime=-1;this.$j="-";this.playbackRate=1;this.visibilityState=0;this.Xj=""}; var Hea=function(a,b,c,d,e,f,k,l,m){this.o=a;this.A=b;this.D=c;this.F=d;this.B=e;this.G=f;this.K=k;this.J=l;this.H=m||function(){}; this.C=-1}; var XA=function(a){var b=$s();0>a.C&&(a.C=b);return Math.round(b-a.C)/1E3}; var ZA=function(a){var b=a.D();a=a.o;var c={};a.A&&(c.fmt=a.A.id,a.F&&a.F.id!=a.A.id&&(c.afmt=a.F.id));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Hh&&(c.infringe=1);a.Yf&&(c.splay=1);a.Fa&&(c.live=a.Fd?"dvr":"live");a.xf&&(c.autoplay=1);a.pe&&(c.sdetail=a.pe);a.V&&(c.partnerid=a.V);a.osid&&(c.osid=a.osid);qa(b,c);return b}; var CA=function(a){var b=new J1;b.$j=a.D().cc||"-";var c=a.A;b.playbackRate=c.qc&&c.qc.playbackRate||1;c=iH(a.A);0!=c&&(b.visibilityState=c);a=a.J();a.Ib&&a.Ib.id&&"und"!=a.Ib.id&&(b.Xj=a.Ib.id);return b}; var K1=function(a,b){this.A=this.B=0;this.X=a;this.D=b;this.o=window.NaN}; var L1=function(a,b){this.state=a;this.o=b}; var fB=function(a,b){return T(a.state,b)&&!T(a.o,b)?1:!T(a.state,b)&&T(a.o,b)?-1:0}; var M1=function(a,b,c,d,e){Rj.call(this);this.Ea=new Eea(a.experiments.na("html5_always_underrun_on_empty_buffer"));this.G=c;this.La=d;this.F=new Xz(A(this.getCurrentTime,this),A(this.fD,this),A(this.getPlayerState,this),A(this.Wa,this),e,a.experiments.na("new_cue_range_behavior"));G(this,this.F);this.ka=window.NaN;this.M=this.H=null;this.X=a;this.ha=new Dea(a,this.La);this.K=!1;this.J=this.D=null;this.Z=[];this.da=new X_;this.U=new X_;this.nb=this.Ga=!1;this.Ia=window.NaN;this.C=new qy;this.ma=[]; this.O=b;this.ea=this.ia=null;this.L=window.NaN;this.fa=new yv;G(this,this.fa);this.o=new zw;this.A=this.aa=null;this.za=window.NaN;this.B=null;this.bb=this.jb=!1;this.sa=0;this.Ua=this.$a=this.ab=this.Ca=!1;this.V=this.Y=null;this.ub=a.experiments.na("html5_latch_for_seeking_on_event");this.Cb=this.X.experiments.na("html5_playing_event_buffer_underrun");this.tb=this.X.experiments.na("html5_ignore_first_timeupdate")}; var N1=function(a){Eu()?Gu(a.sa):Di(a.sa)}; var O1=function(a){if(a.B){var b=a.B;if(!b.isDisposed()&&b.C){b.F="paused";var c=aB(b);c.fa=!0;c.send();c=b.B;"PL"==c.A&&(c.A="N");var d=XA(c.o);OA(c,d,"vps",[c.A]);c.Rg(d);Di(b.D);b.dispose()}Lb(a.B);a.B=null}}; var P1=function(a){return a.A?a.A.la():null}; var Q1=function(a){if(bx(a.o))return!0;BJ(a,"api.invalidparam");return!1}; var R1=function(a,b){a.Ga=!!b;Q1(a)&&!a.da.A&&(a.da.start(),a.B&&a.B.Of(),a.In())}; var S1=function(a){a.A&&A1(a.A);R1(a);Q1(a)&&!T(a.C,128)&&(a.U.A||(a.U.start(),T1(a,yy(a.C,8)),dx(a.o)||T1(a,yy(a.C,1))),U1(a))}; var U1=function(a){a.isDisposed();if(!a.U.o&&a.da.o&&!T(a.C,128)&&!a.Z.length&&(a.F.H||a.F.Of(),!GH(a))){if(a.D){var b=a.D;a.nb=!!b.O&&!!b.U}a.U.o=!0;a.o.Fa&&(V1(a,window.Infinity,!0),W1(a,!0),a.X.experiments.na("disable_live_background_seek_to_head")||3!=iH(a.X)||(a.bb=!0));a.B&&(b=a.B,b.o.o.enableCardio&&b.o.o.enableCardioBeforePlayback&&(b.Vi("connected"),hB(b)));a.R("playbackready",a);bv("pbr",a.G.o)||a.G.A("pbr",void 0)}}; var X1=function(a,b,c,d){a.o.A=c;a.o.F=d||c;if(a.B){var e=a.o,f=x1(a.ha,e),e=db(e.B.videoInfos,A(f.C,f)),e=new v1(c,b,e?e.id:"");d&&"i"==b&&Y1(a,b,d);d=a.B.B;c=XA(d.o);OA(d,c,"vfs",[e.o.id,e.A,d.Y,e.reason]);d.Y=e.o.id;e=d.o.K();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),OA(d,c,"view",e));OA(d,c,"vps",[d.A]);d.Rg(c)}a.R("internalvideoformatchange",a.o,"m"==b)}; var Y1=function(a,b,c){a.o.F=c;if(a.B){var d=a.B.B;c=new v1(c,b,"");var e=XA(d.o);c.o.id!=d.K&&(OA(d,e,"afs",[c.o.id,d.K,c.reason]),d.K=c.o.id)}"i"!=b&&a.R("internalaudioformatchange",a.o,"m"==b)}; var BJ=function(a,b,c,d){var e,f;Ub(Iea,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||P(e),messageKey:e};T1(a,vy(a.C,128,b));N1(a);Z1(a);$1(a)}; var GH=function(a){return!!a.Z.length||0<Tz(a.F.o,-0x8000000000000).length}; var a2=function(a,b){var c=new I1(b);a.A&&b2(a);a.A=c;Jea(a);a.X.experiments.na("html5_crossorigin_video")&&a.A.o.setAttribute("crossorigin","anonymous")}; var b2=function(a){a.J=null;a.D&&(U0(a.D),a.D.K=!0);a.A&&(a.B&&a.da.A&&T(a.C,64)&&!a.o.Ae&&c2(a),d2(a),Av(a.fa),G1(a.A),a.A=null)}; var e2=function(a){if(!T(a.C,128)&&(S1(a),T(a.C,64)&&T1(a,yy(a.C,8)),a.U.o&&a.A))if(a.o.B){if(a.o.Fa){var b=a.getCurrentTime()<ax(a.o),c=fx(a.o)&&T(a.C,4);(b||c)&&V1(a,window.Infinity,!0);f2(a)?W1(a,!0):a.K&&V1(a,window.Infinity,!0)}if(a.o.B.o)b=g2(a),a.D.resume();else{Z1(a);var b=a.o.Ff.A(),c=a.o,d={};c.Z&&(d.ptk=c.Z,d.oid=c.Bd,d.ptchn=c.zd,d.pltype=c.Cd);qa(b.A,d);c=a.X.A;qa(b.A,{c:c.c,cver:c.cver})}(c=a.A.A)&&c.equals(b)?C1(a.A):Kea(a,b)}else BJ(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}; var oH=function(a){d2(a);Z1(a);g2(a)}; var h2=function(a){if(a.o.B){var b=i2(a)||Yt;a=$d(a.o.B.videoInfos,A(b.C,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a}; var j2=function(a){return Xt(Xt(xH(a.ha,a.o),w1(a.ha,a.o)),i2(a))}; var i2=function(a){return a.o.nk?Yt:a.H?a.H.C:Rw(a.o)&&a.o.B.o&&at(a.o.o)?r1:Yt}; var k2=function(a,b,c){if(!a.isDisposed()&&!T(a.C,128)&&(c&&(a.o.Zg=c),Rw(a.o))){"m"==b&&c&&Wt(c)&&(b="a");var d=j2(a);if(a.o.B.o)"i"!=b&&R0(a.D,d,b,!1);else{c=a.o;a:{var e=a.o.O;if(d.o){for(var f=0;f<e.length;f++){var k=e[f].hc,l=qr[k.video.quality];if((!d.B||"auto"!=k.video.quality)&&l<=d.o){d=e[f];break a}}d=e[e.length-1]}else d=e[0]}c.Ff=d;X1(a,b,a.o.Ff.hc)}a.Wa()&&e2(a)}}; var l2=function(a){jt(a.o.o,{c:a.X.A.c,cver:a.X.A.cver});var b=a.X,c=a.o,d=new JI;if(pt()||b.experiments.Z)d.V=!0;pt()&&(d.S=-1);if(mt("trident/")||mt("edge/"))d.B=240;tc&&(d.L=41943040);if(DG(b)||!Iv()){var e=b.experiments;d.C=8388608;d.D=524288;d.K=2097152;d.F=1048576;d.ia=1.5;d.Ra=15;d.J=!Iv();d.Da=!1;ot()&&!e.V&&(d.H=625E3);nt()&&(d.H=75E4)}qt()&&(d.C=20971520,d.D=1572864,d.H=812500,d.G=1E3);b.experiments.M&&(d.H=window.NaN);d.Ea=b.K;e=c.pl;c.yf&&e--;!c.isLowLatencyLiveStream&&b.experiments.na("html5_live_disable_dg_pacing")&& e++;d.liveChunkReadahead=Math.max(0,e);d.sa=!b.experiments.na("disable_fpa_sei_removal")&&mt("windows nt")&&(hx(c)||ix(c));var e=b.experiments.Ac("dash_html5_refresh_mapping_interval"),f=b.experiments.Ac("dash_html5_refresh_mapping_min_buffer");e&&(d.O=e);f&&(d.fa=f);if(e=b.experiments.Ac("html5_deadzone_multiplier"))d.o*=e,d.A*=e;if(e=b.experiments.Ac("html5_request_sizing_multiplier"))d.ha=e;b.experiments.na("html5_use_average_bitrate")&&(d.U=!0,d.o*=1.3,d.A*=1.3);b.experiments.na("html5_use_average_bitrate_if_healthy")&& (d.ma=!0,d.o*=1.3,d.A*=1.3);c.Fa&&b.experiments.na("html5_live_lower_max_health_buffer_for_downgrade")&&(d.aa=3);b.experiments.na("html5_strip_emsg")&&(d.ka=!0);a.D=new L0(a.ia,d,a.o.o,a.o.B);a.D.subscribe("initsegment",a.Gz,a);a.D.subscribe("videoformatchange",a.Rz,a);a.D.subscribe("audioformatchange",a.Qz,a);a.D.subscribe("error",a.qj,a);a.D.subscribe("seekrequired",a.ZB,a);b=ib(a.Z,"spacecast")||a.Ga;c=a.Bm();c=c.Ib.isDefault?void 0:c;a.D.initialize(a.o.startSeconds,j2(a),b,c);a.o.probeUrl&&(a.D.V= a.o.probeUrl);if(a.Z.length||a.Ga)a.D.K=!0;a.Ga&&c2(a);a.X.experiments.Ac("html5_dropped_frames_abr")&&(a.V=new K1(a.X,A(a.Yx,a)),a=a.V,a.o||(a.o=Ci(A(a.C,a),5E3)))}; var c2=function(a){var b=new L1(new qy(4),a.C);eB(a.B,b)}; var Z1=function(a){a.D&&(a.D.dispose(),a.D=null);a.J&&(a.J.dispose(),a.J=null);if(a.V&&a.V){var b=a.V;Ei(b.o);b.o=window.NaN;a.V=null}}; var g2=function(a){a.J||(a.D?a.D.seek(a.getCurrentTime()):l2(a),a.J=new Bv(a.A.la(),a.o.lengthSeconds,a.o.B.videoInfos[0].mimeType,a.o.B.o[0].mimeType,a.X.K),Cv(a.J,A(a.D.cv,a.D)),Dv(a.J,A(function(){BJ(this,"fmt.unplayable",void 0,"msi.1")},a))); try{return Ev(a.J)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),BJ(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}}; var $1=function(a){a.A&&(a.A.pause(),d2(a),a.X.experiments.na("dash_html5_release_loader")?Z1(a):a.J&&(a.J.dispose(),a.J=null),a.o&&(a.o.startSeconds=a.getCurrentTime()),a.L=window.NaN,G1(a.A),T(a.C,128)||T1(a,vy(a.C)))}; var V1=function(a,b,c,d){if(a.A&&a.U.o){b=ke(b||0,ax(a.o),m2(a,!1));var e=a.o.Fa&&!T(a.C,4)&&f2(a,b);W1(a,e);a.o.startSeconds=b;a.L=b;y1(a.Ea,b);c?a.qr():(T(a.C,32)||(T1(a,yy(a.C,32)),T(a.C,8)&&a.pauseVideo(!0),a.R("beginseeking",a)),d&&(a.ea||(a.ea=new Ud(a.qr,d,a)),a.ea.start()),n2(a,!0));a.M&&b>a.o.cf&&(a.F.fh(a.M),a.M=null);b<a.Zf()&&T1(a,zy(a.C,2));a.R("seekto",a,b)}else a.o.startSeconds=b||0}; var Lea=function(a){if(!a.A)return 0;if(fx(a.o))return 1;if(gx(a.o)){if(a.K)return 1;var b=a.A,c=F1(b),b=(0<ky(c)&&b.o.duration?c.end(c.length-1):0)-ax(a.o);a=m2(a,!0)-ax(a.o);return Math.max(0,Math.min(1,b/a))}a=a.A;b=a.o.duration;return window.Infinity==b?1:b?H1(a)/b:0}; var o2=function(a,b){var c={};if(b){a.B?qa(c,TA(YA(a.B,"playback"))):a.o&&(c.cpn=a.o.clientPlaybackNonce);if(a.A){var d;d=a.A;d={vct:d.getCurrentTime().toFixed(3),vd:d.o.duration.toFixed(3),vpl:hy(d.o.played||gy()),vbu:hy(F1(d)),vpa:d.o.paused,vsk:d.o.seeking,ven:d.o.ended,vpr:d.o.playbackRate,vrs:d.o.readyState,vns:d.o.networkState,vec:d.getErrorCode(),vvol:d.o.volume};qa(c,d)}if(a.D){d=a.D;var e={lct:d.D.toFixed(3),lsk:d.M,lmf:d.F.o.isLocked(),lbw:dK(d.J).toFixed(3),lhd:bK(d.J).toFixed(3),ltd:(1E9* cK(d.J)).toFixed(3),laa:d.A.C?$r(d.A.C):"",lva:d.B.C?$r(d.B.C):"",lar:d.A.A?$r(d.A.A):"",lvr:d.B.A?$r(d.B.A):"",lvh:f1(d)};d.o&&!Gv(d.o)&&(e.lab=hy(d.o.o.buffered),e.lvb=hy(d.o.A.buffered));qa(c,e)}c.state=a.C.A.toString(16);T(a.C,128)&&(c.debug_error=a.C.o);GH(a)&&(c.preroll="1");a.o.gh&&(c.ismb=a.o.gh);a.o.isLowLatencyLiveStream&&(c.lowlatency="1");a.o.Fa&&a.o.o&&(0,window.isFinite)(a.o.o.A)&&(c.mpdrefresh=a.o.o.A/1E3)}c.debug_videoId=a.o.videoId;return c}; var p2=function(a,b){a.R("internalvideodatachange",b||"dataupdated",a,a.o)}; var Jea=function(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){S(this.fa,this.A,a,this.hD,this)},a); a.X.Nc&&(S(a.fa,a.A,"webkitplaybacktargetavailabilitychanged",a.ky,a),S(a.fa,a.A,"webkitcurrentplaybacktargetiswirelesschanged",a.ly,a))}; var q2=function(a){var b=a.getCurrentTime(),c=a.o;!bv("pbs",a.G.o)&&iv.measure&&iv.getEntriesByName&&(iv.getEntriesByName("mark_navigation_requested")[0]?iv.measure("measure_above_the_fold","mark_navigation_requested"):iv.measure("measure_above_the_fold"));c.videoId&&a.G.info("docid",c.videoId);c.eventId&&a.G.info("ei",c.eventId);c.clientPlaybackNonce&&a.G.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.G.info("start",c.startSeconds.toString());a.A&&a.A.o.paused&&a.G.info("paused",1);c.A?a.G.info("fmt", c.A.id):a.G.info("fmt","-1");c.$a&&a.G.info("yt_pre",a.nb?"2":"1");a.X.Jg&&a.G.info("yt_fs","1");a.G.info("cmt",b.toFixed(3));if(a.D){b=a.D;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.U),c.length&&(c=c[0],O0(b,"vri",c.fetchStart),O0(b,"vdns",c.domainLookupEnd),O0(b,"vreq",c.requestStart),O0(b,"fvb",c.responseStart),O0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.O),c.length&&(c=c[0],O0(b,"ari",c.fetchStart),O0(b,"adns", c.domainLookupEnd),O0(b,"areq",c.requestStart),O0(b,"avb",c.responseStart),O0(b,"arc",c.responseEnd)));var b=b.ia,d;for(d in b)a.G.A(d,b[d])}}; var Mea=function(a){if(a.ka&&a.A){var b=a.A.o.seekable||gy();b.length&&b.end(0)>a.ka&&(a.A.o.currentTime=a.ka,a.ka=window.NaN,a.Qa=S(a.fa,a.A,"canplay",a.kz,a))}}; var n2=function(a,b){if(a.A&&a.o){var c=a.getCurrentTime();if(c<ax(a.o))V1(a,m2(a,!1),!0);else{if(a.K){var d=m2(a,!1);if(c<d-M1.A){if(a.o.yf||fx(a.o)&&a.X.experiments.na("html5_live_only_stick_to_head")){V1(a,d,!0);return}a.o.Fa&&W1(a,!1)}}if(a.D&&(d=a.D,d.o)){d.resume();if(d.M&&!Gv(d.o)){var e=d.D<=c&&c<d.D+10,f=0<=iy(d.o.A.buffered,d.D+L0.o);e&&f&&(d.M=!1)}d.M||(d.D=c);$0(d)}5<c&&(a.o.startSeconds=c);(d=Eu())?Gu(a.sa):Di(a.sa);!Cy(a.C)&&a.A.o.paused||T(a.C,128)||(e=A(a.zw,a),a.sa=0==(a.A.o.played|| gy()).length?d?Fu(e,100):Ai(e,100):d?Fu(e,500):Ai(e,500));a.o.nj=c;!b&&a.Wa()&&a.B&&(c=a.B,c.A.update(),dx(c.o.o)&&c.o.o.Re&&!c.M&&EA(c.A)>=c.o.o.Re&&(c.C&&c.o.o.Re&&(d=YA(c,"delayplay"),d.Ca=!0,d.send(),c.M=!0),bB(c)),d=c.V,d.C||!d.o.ub||d.o.ne||!d.A.lengthSeconds?d=!1:(e=Math.min(.8*d.A.lengthSeconds,180),d=EA(d.D)>=e),d&&c.V.send());a.R("progresssync",a,b)}}}; var T1=function(a,b){var c=a.C;if(b.A!=c.A||b.o!=c.o){c=new L1(b,a.C);a.C=b;var d=!a.ma.length;a.ma.push(c);0>fB(c,8)&&(Di(a.za),W1(a,!1));0<fB(c,32)&&W1(a,!1);if(T(c.state,2)&&gx(a.o)){var e=a.getCurrentTime();a.o.lengthSeconds!=e&&(a.o.lengthSeconds=e,p2(a));n2(a,!0)}0<fB(c,2)&&a.Ml();a.B&&eB(a.B,c);if(d)try{for(d=0;d<a.ma.length;d++){var c=a.ma[d],f=a.F,e=c;if(f.H&&!f.K)if(f.B)f.nc(),T(e.o,16)&&aA(f);else if(f.D.stop(),T(e.state,2)){f.G=null;for(var e=[],k=0;k<f.A.length;k++){var l=f.A[k];l.active&& 0x8000000000000>l.end&&e.push(l)}var m=Tz(f.o,0x7ffffffffffff),m=m.concat(Uz(f.o,0x7ffffffffffff)),p=Zz(f,e).concat(Yz(f,m));f.F=!0;$z(f,p);f.F=!1;f.J&&f.nc()}else T(e.state,16)?(f.C=cA(f),f.L.start(),f.nc()):(f.L.stop(),T(e.o,16)?(f.C=cA(f),aA(f)):f.nc());a.R("statechange",c)}}finally{a.ma.length=0}}}; var r2=function(a){T(a.C,2)||T(a.C,32)||(a.L=window.NaN)}; var W1=function(a,b){a.o.Fa&&a.K!=b&&(a.K=b,a.R("liveviewshift",b))}; var Kea=function(a,b){Nea(a,b);a.X.hg?Ai(A(function(){C1(this.A)},a),0):C1(a.A)}; var Nea=function(a,b){a.G.A("vta");A1(a.A,b);if(Yw(a.o)&&Yw(a.o)&&!a.H&&a.A){var c=a.o.J;if(c){var d=a.A.la();a.H=new q1(d,c);a.H.subscribe("newsession",a.bA,a);a.H.subscribe("licenseerror",a.Iz,a);a.H.subscribe("qualitychange",a.Jz,a);a.H.subscribe("heartbeatparams",a.gD,a);c=a.H;d=a.o.oauthToken;c.H=d;c.R("oauthtoken",d);G(a,a.H)}else BJ(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.J&&Ju();Di(a.za);a.o.Ae||(a.za=Ai(A(a.Oz,a),15E3))}; var d2=function(a){a.H&&(a.H.dispose(),a.H=null)}; var m2=function(a,b){if(!a.A)return 0;if(!a.o.Fa){var c=a.o;return c.o&&!(0,window.isNaN)(ht(c.o))?ht(c.o):c.lengthSeconds}if(b&&(a.K||fx(a.o)))return a.getCurrentTime();if(a.D)return c=d1(a.D),Math.max(Math.max(c,ax(a.o)),a.getCurrentTime())||0;c=a.A.o.seekable||gy();return(1>c.length?window.NaN:c.end(c.length-1))||0}; var f2=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=m2(a,!1)-M1.o}; var s2=function(a,b){this.o=a;this.A=fa(b)?b:null;if(ib(t2,this.o)){if(!fa(this.A)||0>this.A)throw Error("Must have valid offset");}else if(null!==this.A)throw Error("Must not have offset");}; var u2=function(a){var b=a.A;if(null!==b)return b;switch(a.o){case 1:return 0;case 3:return-1;default:return-100}}; var Oea=function(a,b){var c=a.o,d=b.o;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.A,f=b.A;return e!=f?null===e?1:null===f?-1:e-f:c-d}; var v2=function(a,b){return"9t_D9IIh_ZI"==b.ka||w2(a,["9418752","9418753"])}; var x2=function(a,b){return ib(a.experiments.experimentIds,b)}; var w2=function(a,b){return Ih(b,pa(ib,a.experiments.experimentIds))}; var y2=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}; var z2=function(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ga(a.getMessage)?a.getMessage():a.message,d=Ka(c||"",50),b.error_message=d)}}; var A2=function(a,b){if(a){var c=dU(a).reverse();b.ad_id=rb(c,cU(a)).join(",");c=fU(a).reverse();b.ad_sys=rb(c,WT(a)).join(",");c=gU(a);null!=c&&(b.aqi=c)}}; var B2=function(a,b){if(a[b])return y2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return y2(a[d]);return!1}; var C2=function(a){var b="";a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b}; var D2=function(a,b,c){var d=new BL;d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.U;d.showContentThumbnail=a.showContentThumbnail;d.Df={};c.ea&&(d.Df.ctrl=c.ea);c.fa&&(d.Df.ytr=c.fa);c.ia&&(d.Df.ytrcc=c.ia);c.isMdxPlayback&&(d.Df.mdx="1");a.Da?(d.Uj=!0,d.Fv=!0,d.showContentThumbnail=!1,d.gm=!0,d.hm=!0,d.useShareButton=!1):a.C&&(d.Uj=!0);return d}; var E2=function(a){var b=new KW;b.F=a.A.Ia;var c=a.app.F.Ma();b.nf=c.width;b.mf=c.height;b.Gc=c.width;b.Fc=100;b.Nn=SG(a.W());b.G=a.W().experiments.experimentIds;b.Cc=A(a.W().experiments.na,a.W().experiments);b.hi=A(a.W().experiments.Ac,a.W().experiments);b.Bk=A(a.W().experiments.J,a.W().experiments);b.Nn?(a.W(),c=SA()):c=-1;c&&(b.H=c);a.A.tagForChildDirected&&(b.ni=!0);if(x2(a.W(),"9415521")||a.A.ub)b.oi=!0;c=F2(a);b.xb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Pea(a),VIS:Qea(a)};SG(a.W())|| (b.xb.LACT="-1");b.afcRmFallback=a.A.J;x2(a.W(),"9417581")&&(b.D="yt_"+F2(a).videoId);return b}; var Pea=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;a.W();return SA().toString()}}}; var Qea=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:iH(a.W()).toString()}}}; var G2=function(a,b,c,d){this.A=this.B="";this.C=a;this.F=b;this.o=c;this.D=d}; var H2=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.C.o;b.sst=u2(a.C);b.sidx=0;a.B&&(b.at=a.B);a.A&&(b.ad_id=a.A);return b}; var I2=function(){var a=u("yt.www.watch.ads.loadAfc");ga(a)?a():J2=!0}; var K2=function(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"}; var L2=function(){var a=u("window.google_show_companion_ad"),b;b=u("yt.www.watch.ads.getGlobals");ga(a)&&ga(b)?(b=b(),b=Boolean(b&&b.length)):b=!1;b?a():M2=!0}; var N2=function(){var a=u("yt.www.watch.ads.setCompanion");a&&a()}; var Rea=function(a){var b=u("yt.www.watch.ads.showForcedMpu");b&&b(a)}; var O2=function(a,b,c,d){Rj.call(this);this.D=!!b;this.G=a;this.A=c||a;this.J=!!d;this.o=new yv(this);this.C=this.H=null;this.F=this.B=!1;b&&(wc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));P2(this)}; var P2=function(a){a.C=null;a.H=null;S(a.o,a.A,Q2("over"),a.fr);S(a.o,a.A,"touchstart",a.xm);a.D&&S(a.o,a.A,Q2("down"),a.Ux)}; var R2=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.H)return d}return null}; var Q2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}; var S2=function(a,b){this.A=a;this.o=b}; var T2=function(a){return a.o-a.A}; var U2=function(a,b){return a.A+b*T2(a)}; var V2=function(a,b,c){return T2(a)?ke((b-a.A)/T2(a),0,1):null!=c?c:window.Infinity}; var W2=function(){this.A=this.position=this.C=this.o=this.D=this.B=this.width=window.NaN}; var X2=function(a,b,c,d,e){var f=b.ap/b.rows,k=Math.min(c/(b.cp/b.Gb),d/f),l=b.cp*k,m=b.ap*k,l=Math.floor(l/b.Gb)*b.Gb,m=Math.floor(m/b.rows)*b.rows,p=l/b.Gb,v=m/b.rows,t=-b.wv*p,y=-b.row*v;e&&45>=f&&(v-=1/k);a=a.style;a.width=p+"px";a.height=v+"px";e||(d=(d-v)/2,c=(c-p)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+t+"px "+y+"px/"+l+"px "+m+"px";if(e)return new re(p,v)}; var Sea=function(){this.B=!1;this.A=0;this.o=""}; var Y2=function(a,b,c,d){Rj.call(this);this.o=a;this.A=d;this.C=null;this.adType=c;this.adSystem=b}; var Tea=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=w;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0}; var Uea=function(a){this.o=a}; var Vea=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0}; var Z2=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;default:return 0}}; var Wea=function(a,b){this.D=null;this.B=window.NaN;this.A=null;this.o=a;this.C=b}; var $2=function(a,b,c){a.o.R("AD_LOGGING_EVENT",b,c)}; var a3=function(a,b,c){b3(a);var d=c3(a);c&&qa(d,c);d.ad_error=b;$2(a,7,d)}; var c3=function(a){var b={},c=a.o.C,d=a.o.D.Zf(),e=d3(a.o);A2(a.o.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Lg(e),b.ad_dom=c,a.C.A.C&&(b.ad_v_url=e.substr(0,512)));e=a.o;(e=e.A?e.A.ef():null)&&(b.ad_cpn=e);b.format=a.o.bd();b.at=a.o.hf();b.ad_mt=Math.round(1E3*Math.max(Xea(a.o),0));return b}; var b3=function(a){a.D||(a.D="InstreamAdDisplay ("+a.o.bd()+")")}; var e3=function(a,b){F.call(this);this.C=Math.max(0,a);this.B=this.A=0;this.D=b;this.o=window.NaN}; var f3=function(a,b,c,d,e,f){Y2.call(this,b,a,2,c);this.L=!1;this.H=this.V=this.M=null;this.o.subscribe("control_toggle_play_pause",this.Zr,this);this.o.subscribe("control_play",this.Fl,this);this.o.subscribe("control_pause",this.El,this);this.F=new Wea(this,this.o);this.B=new Az(this);this.D=g3(b);this.D.subscribe("statechange",this.Yc,this);this.D.subscribe("internalAbandon",this.ep,this);this.D.subscribe("internalvideodatachange",this.Yr,this);this.G=this.J=!1;this.U=d;this.O=!!e;this.Y=!!f;this.K= new e3(1E3*f3.o,A(this.Aj,this))}; var h3=function(a,b){var c=a.o.W();if(a.o.A.U&&"3"==c.B){var c=a.o.app.F,d=c.app.W();FG(d);"3"==d.B&&(c.A.controls=b)}}; var i3=function(a){var b=new Sea;b.B=a.G;b.A=H();a.C&&a.C.clientPlaybackNonce&&(b.o=a.C.clientPlaybackNonce);$1(g3(a.o));j3(a.o,0,b);k3(a.o,0);a.R("adEnd",a);h3(a,!0)}; var l3=function(a,b){a.D.Kf();j3(a.o,0);a.R("adError",b)}; var m3=function(a){return a.C&&a.C.A?a.C.A.mimeType:null}; var d3=function(a){return a.C&&a.C.Ff?uv(a.C.Ff.A()):null}; var Xea=function(a){return a.D?a.D.getCurrentTime():0}; var Yea=function(a,b){this.o=a;this.D=b;this.o.bd();this.A=this.C=0;this.B=null}; var n3=function(a,b,c){a.o.R("AD_LOGGING_EVENT",b,c)}; var o3=function(a){var b={};A2(a.o.getCurrentAd(),b);a.C&&a.A&&(b.ot=a.A-a.C);var c;c=a.D.Ja()?2:a.D.app.ma?1:0;b.ad_ps=c;b.format=a.o.bd();b.at=a.o.hf();return b}; var p3=function(a,b,c,d){Y2.call(this,b,a,1,c);this.B=null;this.G=!1;this.J=null;this.F=new Yea(this,b);this.D=new Az(this);this.H=!!d}; var q3=function(a,b){a.J!=b&&(a.J=b)}; var r3=function(a,b,c,d){F.call(this);this.M=null;this.V=a;this.A=b.Ta;this.H=b;this.K=b.getId();this.o=c;this.F=d;this.B=new G2(this.A,this.gg(),c,d);this.D=null;this.O=new Cm(this);this.C=new Cm(this);this.S=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/}; var s3=function(a){var b=new s2(2,r3.A);a.A=b;a.B.C=b}; var t3=function(a,b){a.M=b;var c=b.bd();a.B.B=c}; var u3=function(a,b){var c=u("yt.www.watch.ads.setAdId");c&&c(b);a.B.A=b}; var v3=function(a){a=u2(a.A);return 0==a||-1==a?a:1E3*a}; var w3=function(a){var b=a.o.W();x2(b,"9417098")&&(a=a.B,b=H2(a),b.format="2_3",b.at="2_3",b.trsp="1",x3(a.o,3,b));L2()}; var y3=function(a){var b=a.H,c=a.A;b.o=a.M;b.Ta=c;G(b,b.o);0==b.F&&(a=b.o.hf(),b.B.da.at=a);b.o instanceof f3?b.A=!0:b.o instanceof z3?b.isVisible=!1:b.o instanceof A3?b.isVisible=!1:b.o instanceof B3&&(b.isVisible=!1);b.C="loaded";C3(b)}; var Zea=function(a){this.o=a}; var z3=function(a){Y2.call(this,a,2,3,null);this.B=this.D=0}; var D3=function(a){a.D&&(Ei(a.D),a.B=0)}; var E3=function(a,b,c){r3.call(this,2,a,b,c);this.G=new Zea(this.o.A);K2()}; var F3=function(a,b,c){this.A=this.F="";this.J=null;this.C=!1;this.D=this.B="";a&&(this.F=a,this.H=b.Ra,this.C=b.nb,this.G=c,b=this.F,c=b.indexOf(";sz="),a=mj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{mv:b[0],MB:b[1],PB:a})&&(this.B=a.mv,this.D=a.MB,this.J=a.PB)}; var G3=function(a){this.A=a?a:""}; var B3=function(a,b,c,d){p3.call(this,1,a,b,d);this.K=c}; var H3=function(a,b,c){r3.call(this,1,a,b,c);a=this.o.A;this.U=a.ea?new G3(a.adTag):new F3(a.adTag,a,this.K)}; var I3=function(a,b,c,d){H3.call(this,a,b,c|d);this.L=c;this.J=d;this.G=null;K2()}; var J3=function(a,b){var c=b.getCurrentAd(),d=fU(c);d.unshift(WT(c));for(c=0;c<d.length;++c){var e=$ea[d[c].toUpperCase()];if(e){a.G=e;return}}a.G=0}; var K3=function(a,b){this.D=[];this.M=a;this.L=b||null;this.C=this.o=!1;this.B=void 0;this.J=this.S=this.G=!1;this.F=0;this.A=null;this.H=0}; var L3=function(a,b,c){a.o=!0;a.B=c;a.C=!b;M3(a)}; var N3=function(a){if(a.o){if(!a.J)throw new O3;a.J=!1}}; var P3=function(a,b,c){Q3(a,b,null,c)}; var Q3=function(a,b,c,d){a.D.push([b,c,d]);a.o&&M3(a)}; var R3=function(a){return Ih(a.D,function(a){return ga(a[1])})}; var M3=function(a){if(a.F&&a.o&&R3(a)){var b=a.F,c=S3[b];c&&(r.clearTimeout(c.o),delete S3[b]);a.F=0}a.A&&(a.A.H--,delete a.A);for(var b=a.B,d=c=!1;a.D.length&&!a.G;){var e=a.D.shift(),f=e[0],k=e[1],e=e[2];if(f=a.C?k:f)try{var l=f.call(e||a.L,b);n(l)&&(a.C=a.C&&(l==b||l instanceof Error),a.B=b=l);if(wd(b)||"function"===typeof r.Promise&&b instanceof r.Promise)d=!0,a.G=!0}catch(m){b=m,a.C=!0,R3(a)||(c=!0)}}a.B=b;d&&(l=A(a.K,a,!0),d=A(a.K,a,!1),b instanceof K3?(Q3(b,l,d),b.S=!0):b.then(l,d));c&&(b= new T3(b),S3[b.o]=b,a.F=b.o)}; var O3=function(){sa.call(this)}; var U3=function(){sa.call(this)}; var T3=function(a){this.o=r.setTimeout(A(this.B,this),0);this.A=a}; var V3=function(a,b){var c=b.A;this.G=c.sa;var d=0,c=c.Y.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);r3.call(this,2,a,b,d)}; var W3=function(a,b){Y2.call(this,a,14,14,b)}; var X3=function(a,b,c){r3.call(this,14,a,b,c)}; var Y3=function(a,b,c){r3.call(this,14,a,b,c)}; var afa=function(a,b,c,d,e){this.C=a;this.B=b;this.o=c;this.X=this.C.W();this.D=d;this.G=F2(this.C).lengthSeconds;this.F=e;this.A="html5";Z3(this)&&"embedded"==this.X.Ba?this.A="html5_embed":BG||Iw?this.A="html5_ios":mt("android")?this.A="html5_android":tt()?this.A="html5_wp":nt()?this.A="html5_ps3":"leanback"==this.X.Ba?(a=(Xb(window,"environment","brand")||"").toLowerCase(),b=(Xb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"): rt()?this.A="html5_wii":Z3(this)&&(this.A="html5_desktop")}; var $3=function(a){return a4(a.B)?"preroll":3==a.B.Ta.o?"postroll":"midroll"}; var b4=function(a){return(a=a.C.B)?Ih(a.B,function(a){return c4(a)||3==a.Ta.o}):!1}; var Z3=function(a){return!b4(a)||v2(a.X,a.o)}; var A3=function(a,b){p3.call(this,4,a,b)}; var d4=function(a,b,c){r3.call(this,4,a,b,c);var d=this.o.A;this.G=D(d.Ua);var e=F2(this.o)&&F2(this.o).spacecastModule;this.J=new afa(b,a,d,c,!!e)}; var e4=function(a,b,c){this.B=a;this.o=b;this.A=c||0}; var bfa=function(a){return 0<((a.o|a.A)&3)}; var f4=function(a,b,c,d,e){Rj.call(this);this.H=!0;this.A=!1;this.isVisible=!0;this.C="unloaded";this.J=!1;this.F=b;this.B=a;this.Ta=c;this.G=d;this.D=this.o=null;this.K=!!e}; var g4=function(a){return a4(a)?h4(a)&&i4(a)?-0x8000000000000:0:fa(a.Ta.A)?1E3*u2(a.Ta):0x8000000000000}; var cfa=function(a){return a4(a)||a.B.o&&1E3*a.B.o.getCurrentTime()>=g4(a)?!1:Gg(a.G,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;default:return!1}})}; var h4=function(a){return"loaded"==a.C||"error"==a.C}; var a4=function(a){return 1==a.Ta.o}; var i4=function(a){if(!h4(a))throw Error("Preroll status is undefined before ad load.");return a4(a)&&a.A}; var c4=function(a){return 2==a.Ta.o}; var j4=function(a){a.C="loading";a4(a)&&!Ih(a.G,bfa)&&qq(a.B);if(a.K)a.C="loaded",a.A=!0,C3(a);else{var b=a.G.shift();b?(a4(a)&&k4(a.B,"nl"),b=b.create(a,a.B),G(a,b),b.load()):(x3(a.B,2,l4(a,{})),m4(a,!1),a.C="error",C3(a))}}; var n4=function(a){a.o&&(a.o.unsubscribe("adEnd",a.ip,a),a.o.unsubscribe("adError",a.Sr,a),a.o.unsubscribe("AD_LOGGING_EVENT",a.Dp,a),a.o.unsubscribe("select",a.Rr,a))}; var C3=function(a){a.R("adBreakComplete",a)}; var m4=function(a,b){a.D&&(a.D.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.D.dispose(),a.D=null)}; var l4=function(a,b){b.break_type=a.Ta.o;b.sst=u2(a.Ta);b.sidx=0;return b}; var o4=function(a){var b=0;a.L&&(b|=1);a.K&&(b|=2);var c=0;a.D&&(a.G&&(c=4),b||a.V||(b=c,c=0));a=new wg;a.set(3,b);a.set(4,c);return a}; var p4=function(a,b){var c=[];if(a.da)return c.push("pla"==(a.Y||"").toLowerCase()?new e4(8,16):new e4(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.V&&c.push(new e4(7,16)),c;if(a.M){var d=0;if(a.B||a.F)d|=1;a.S&&(d|=4);a.O&&(d|=8);c.push(new e4(5,d))}d=0;a.H&&(a.B&&(d|=1),a.F&&(d|=2),a.S&&a.D&&(d|=4),a.O&&a.D&&(d|=8));var e=o4(a),f=e.get(3);d&&f&&dfa(a,b)?c.push(new e4(3,d,f)):(d&&c.push(new e4(2,d)),f&&c.push(new e4(1,f)));a.independentBreakOffsets||f&4||!a.V||c.push(new e4(7,16));(d=e.get(4))&& c.push(new e4(1,d));return c}; var q4=function(a){this.o=a}; var r4=function(a){var b=[];E(efa(a),function(a,d){var e=this.o,f;f=p4(this.o.A,a.o);e=new f4(e,d,a,f);b.push(e)},a); return b}; var efa=function(a){var b=a.o.A,c=[];if(b.M&&!v2(a.o.W(),b))c=s4;else if(b.ia){var d=b.ia.split(",");for(a=0;a<d.length;a++){var e=Xa(d[a]),e=0>e?new s2(3):0<e?new s2(2,e):new s2(1);c.push(e)}}else c=s4;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new s2(5,Xa(b[a])));Bb(c,Oea);return c}; var ffa=function(a,b){this.X=a;this.Da=this.X.isMobile;this.C="leanback"==this.X.Ba;this.o=this.Da||this.C;this.U=!this.C&&!FG(a);this.B=y2(b.instream);this.Ra=1==b.livestream;this.F=y2(b.trueview);this.aa=y2(b.aftv);this.ia=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ha=b.cafe_experiment_id;this.adTag=b.ad_tag;this.jb=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.La=gfa(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Ga=(0,window.parseInt)(b.ad_age, 10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls;this.Qa=b.cid;this.ka=b.docid||b.video_id||b.videoId;this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds, 10)||0;this.Ia=(0,window.parseInt)(b.forced_skip_offset,10);this.Y=b.force_ad_type;this.sa=b.force_ad_url;this.Ua=b.freewheel_ad_tag;this.gender=$b(hfa,function(a){return a==b.ad_gender}); this.ma=b.dbp;this.J=y2(b.afc_rm_fallback);this.nb=!!b.mpu;this.G=y2(b.afv)&&!this.o;this.K=this.aa&&this.F;this.L=this.aa&&this.B&&!y2(b.no_afv_instream);this.H=y2(b.dclk);this.ea=y2(b.gpt_migration);this.da=y2(b.forced_ad)&&!this.o;this.M=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.tb=!!b.fqsf;this.S=y2(b.invideo)&&!this.o;this.O=y2(b.mpu)&&!this.o;ib(this.La,"yt_mabv");this.V=!!b.pla;this.$a=y2(b.shortform);this.D=y2(b.sffb);this.Ca=b.ad_language_iso639_2;this.maxDynamicAllocationAdTagLength= (0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.A=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.A)&&(this.A=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.ab=b.pla_ad_tag;"boolean"==typeof b.show_content_thumbnail&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=y2(b.tag_for_child_directed);this.serverPrefetchedVast= b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Z=this.aa&&this.D&&!this.G;this.za=this.G||this.Z;this.bb=(0,window.parseInt)(b.ad_device,10);this.Ea=b.tpas_video_id;this.fa=b.tpas_partner_id;this.vmap=b.vmap;this.Ab=this.X.Ab;this.ub=b.post_ad_requests;this.showContentThumbnail=!0}; var dfa=function(a,b){if(C(D(a.dynamicAllocationAdTag)))return!1;var c=(a.B||a.F)&&a.H;a.D&&a.H&&(c=c||a.S||a.O);if(!c)return!1;c=a.K||a.L;if(!(c||a.D&&a.G))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ea?25:102);window.document.referrer&&(d+=va("ref="+va(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength}; var gfa=function(a){if(C(D(a)))return[];a=(new N(a)).o.get("channel");return null!=a?a.split("+"):[]}; var ifa=function(a){this.A=F2(a);this.o=a.W()}; var t4=function(a,b,c){var d=u4,d=null!=d?d:u4;if(w2(a.o,d)){var e=a.o.baseYtUrl+"player_204";c=c||{};c.event="cdp";c["var"]=b;c.sdkv="h.3.0.0";c.cpn=a.A.clientPlaybackNonce;c.exp=$d(d,hd(pa(x2,a.o),pa(ib,u4))).join(",");a=rj(e,c);aq(a)}}; var v4=function(a,b){F.call(this);this.o=a;this.K=b;this.G=a.o.getVideoData();this.B=[];this.D=this.F=this.H=this.C=this.A=0;this.J=!1;var c=a.W().experiments;this.L=c.na("enable_dynamic_ad_break")&&!!this.G.lengthSeconds&&600<this.G.lengthSeconds;this.M=c.Ac("dynamic_ad_break_pause_threshold_sec")||5;this.O=c.Ac("dynamic_ad_break_seek_threshold_sec")||120;this.L&&this.o.app.subscribe("applicationplayerstatechange",this.Yc,this)}; var w4=function(a){return(a.o.C?a.J:!!a.o.B&&0==a.o.B.B.length)&&1==a.o.getPresentingPlayerType()}; var x4=function(a){a.C&&Di(a.C);a.C=0;a.A=0}; var y4=function(a,b){var c=null!=qj(a.o.W().G).debugjs,d=a.G.videoId,e=a.G.eventId,f=a.A,k;k=a.B.length?a.B[a.B.length-1]:Math.max(a.K.A(),a.F);k=H()/1E3-k-a.D;c=rj("/gen_204?"+Sg({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:H()/1E3,dab:a.B,paet:Math.max(a.K.A(),a.F),debug:c}),{});aq(c)}; var z4=function(a){F.call(this);this.o=a;this.A=window.NaN;this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.B=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.Oq()}; var A4=function(a,b){a.D[b]&&(IH(a.o.o,[a.D[b]],void 0),delete a.D[b])}; var B4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.A)||Di(a.A),c=H()+c,a.A=0==d?Eq(A(a.cs,a,b,c,100),0):Eq(A(a.bs,a,b,c,100),0))}; var C4=function(a,b,c){var d=a.o.W();a=F2(a.o);b.volume=c*(d.useMediaVolume?zw.o:a.Gh)}; var D4=function(a){z4.call(this,a)}; var E4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;E(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))}); return 1E3*b}; var F4=function(a){F.call(this);this.o=a;this.A=window.NaN;this.B={};this.D={};a=a.A;this.F=a.fadeInDurationMilliseconds;this.H=a.fadeInStartMilliseconds;this.J=a.fadeOutDurationMilliseconds;this.C=a.fadeOutStartMilliseconds;this.K=1E3*this.o.o.getVideoData().lengthSeconds;this.G=this.C+this.J;this.un()}; var G4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.K}; var jfa=function(a){a=a.getAttribute("breakType");return!!a&&Ih(a.split(","),function(a){a=Sa(a);return"linear"==a})}; var kfa=function(a,b){if(!G4(a,b))return null;var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=(0,window.parseFloat)(Oa(b/1E3,2,d)),f=Math.floor(e/60),k=Math.floor(f/60),f=f%60,d=Oa(e%60,2,d);c=d=k||c?k+":"+Oa(f,2)+":"+d:f+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c}; var lfa=function(a,b){var c=Math.max(Math.abs(a.C),Math.abs(a.G));E(b,A(function(a){var e=Ih(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=mfa(this,a); if(e||!f)return!1;this.B[f]=a},a)); return 0<Sb(a.B)}; var mfa=function(a,b){var c=1E3*Math.round((b+a.G)/1E3),d=b+a.C,e=b+a.H;return G4(a,b)&&G4(a,c)&&G4(a,d)&&G4(a,e)?c:null}; var H4=function(a,b,c,d){0>=c||(a.A&&Di(a.A),c=H()+c,a.A=0==d?Eq(A(a.ls,a,b,c,100),0):Eq(A(a.ks,a,b,c,100),0))}; var I4=function(a,b,c){var d=a.o.W();a=F2(a.o);b.volume=c*(d.useMediaVolume?zw.o:a.Gh)}; var J4=function(a){F4.call(this,a)}; var K4=function(a,b){var c=a.A,c=c.applyFadeOnMidrolls&&(c.B||c.F);return a.C?c&&!b?new F4(a):new J4(a):c&&!b?new z4(a):new D4(a)}; var L4=function(a,b,c){F.call(this);this.o=a;this.G=b;this.F=c;this.D=this.B=-1;this.F&&0<this.o.A.A&&this.o.subscribe("endseeking",this.C,this)}; var nfa=function(a,b){M4(a);0<b&&(a.D=Ai(A(a.C,a),1E3*b))}; var M4=function(a){-1!=a.D&&(Di(a.D),a.D=-1)}; var N4=function(a,b){if(!a.F||!c4(b)&&3!=b.Ta.o)return!1;var c=a.o.A.A;if(0>=c||0>=a.B)return!1;var d=H()/1E3,e=O4(a,b)-a.o.o.getCurrentTime();0<e&&(d+=e);return d-a.B<=c}; var O4=function(a,b){return 3==b.Ta.o?a.o.o.getVideoData().lengthSeconds:u2(b.Ta)}; var P4=function(a,b){F.call(this);this.A=null;this.O=[];this.L=0;this.B=b;this.J=[];this.C={};this.G={};this.o=a;var c=!a.A.Ra&&Ih(this.B,function(a){return c4(a)||3==a.Ta.o}); this.D=new L4(this.o,this,c);this.F=K4(this.o);this.ea=new v4(this.o,this.D);this.Y=Ih(this.B,function(a){return a4(a)})}; var ofa=function(a){a.J.length||(a.J=$d(a.B,function(a){return"unloaded"==a.C}),0==a.J.length?qq(a.o):(a.Y||qq(a.o),Q4(a)))}; var Q4=function(a){if(a.J.length){var b=a.J.shift();b.subscribe("adBreakComplete",a.Cf,a);j4(b)}}; var pfa=function(a,b){function c(a){return a&&5!=a.Ta.o} var d=jb(a.B,b),e=vb(a.B,0,d),d=vb(a.B,d+1);return{previous:db(e,c),next:db(d,c)}}; var R4=function(a,b,c){var d=g4(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=u2(b.Ta)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.F.Kq(b,d);c=a.F.Jq(b,c);c=new iq(d,c,e);a.G[b.getId()]=c;a.o.fb([c]);a.F.sn(b)}}; var S4=function(a,b){var c=b.getId();a.G[c]&&(A4(a.F,c),IH(a.o.o,[a.G[c]],void 0),delete a.G[c])}; var T4=function(a,b){if(n(b)){var c=a.Bj(b);if(c)if(a.A==c&&!c.A&&c.isVisible)c.show();else{if(a.A){if(5==c.Ta.o){a.A.A?a.O.push(b):c.show();return}a.ze(a.A)}if(N4(a.D,c))a.A=null,c=a.G[c.getId()],c.visible||(c.visible=!0,a.o.o.fb([c],1)),a.o.W()&&(x2(a.o.W(),"9412857")||x2(a.o.W(),"9412859"))&&a.uq();else{5!=c.Ta.o&&(a.A=c);c.subscribe("adBreakComplete",a.wl,a);if(c.A&&(U4(a.o),null!=a.o.D)){var d=a.D.A(),d=0<d?Math.floor(H()/1E3-d):0;t4(a.o.D,"show_instream_ads",{tfla:d})}a.F.ds(c);c.show()}}}}; var V4=function(a,b,c){P4.call(this,a,b);this.K=[];this.M=[];this.H=[];this.U=c;this.S=0;this.V=a.A.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],cfa(c)){var d=new f4(c.B,c.F,c.Ta,c.G,!0);b[a]=d;this.K.push(c)}this.Y||this.Ef()}; var W4=function(a){X4(a);a.S=Ai(A(a.Ef,a),1E3*(a.V-10))}; var X4=function(a){a.S&&Di(a.S);a.S=0}; var Y4=function(a,b){P4.call(this,a,b);this.V=a;this.U=!0;this.K=[];this.fa=1;this.da=null;this.M=0}; var Z4=function(a){if(null==a.A&&0<a.K.length){var b=a.K[0];b.isVisible?(a.U=a.H.K,a.aa=Math.ceil(H()/1E3),b.subscribe("adBreakComplete",a.S,a),a.A=b,b.show()):a.S()}else null!=a.A&&a.M++}; var qfa=function(a,b){this.J=a;this.A=b;this.H=H();this.F=0;this.o=a.A;this.D={};this.G=new Uea(a);var c=[];this.o.M&&this.o.B&&c.push("4_2");this.o.H&&(this.o.B&&c.push("1_2"),this.o.F&&c.push("1_2_1"),this.o.S&&c.push("1_1"),this.o.O&&c.push("1_3"));this.o.K&&c.push("2_2_1");this.o.L&&c.push("2_2");this.o.G&&c.push("2_1");(this.o.za||this.o.J)&&c.push("2_3");this.o.V&&c.push("14_14");this.C=c.join(",");this.B="";this.D.allowed=this.C;(c=this.o.excludedAds)&&(this.D.ex_ads=c)}; var $4=function(a,b,c){F.call(this);this.A=a;this.B=b;this.H=c;this.C=this.F=-1;this.o=a5(this.B.Nd());a=this.B.Nd();a.length&&(a=a[a.length-1],-1==a&&this.A.fb([this.o[a]]));0<this.A.A.A&&this.A.subscribe("endseeking",this.D,this)}; var rfa=function(a,b){b5(a);0<b&&(a.C=Ai(A(a.D,a),1E3*b))}; var b5=function(a){-1!=a.C&&(Di(a.C),a.C=-1)}; var a5=function(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new iq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new iq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b}; var c5=function(a){0<a.A.A.A&&(a.F=H()/1E3,a.D())}; var e5=function(a){F.call(this);this.J=this.B=this.C=this.G=this.A=null;this.L=this.K=!1;this.o=a;this.H=null;this.S={};this.O=new Cm(this);this.F=new Cm(this);this.M=this.D=null}; var sfa=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=E4(b).toString(),k="midroll");var l={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})}); return a}; var tfa=function(a,b){var c=vz(b),d=c.childNodes[0];if(!d)return b;var e=db(d.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")}); if(e){var f=db(e.childNodes,function(a){return"Extensions"==a.localName}),k=db(f?f.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")}),f=f.removeChild(k),l=e,m=1; E(f?f.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=sfa(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a}); d.removeChild(e)}f=a.D.jq(d);f||(Lb(a.D),a.D=K4(a.o,!0));return e||f?yz(c):b}; var ufa=function(a){var b=D2(a.o.A,a.o.W(),F2(a.o));b.Gv=!0;b.zn=!1;b.hq=10;b.Gl=a.D.Yn();return b}; var vfa=function(a,b){var c=KT(b);if(B2(c,r3.o)&&a.o.A.J)return a.C=new z3(a.o),a.C.show(),!1;if(B2(c,"blockAllAds"))return a.A.sendImpressionUrls(),a.C=new B3(a.o,a.A,1,!0),!1;if(B2(c,"hideMaster"))return a.C=new B3(a.o,a.A,0,!0),!1;a.C=new p3(f5(b),a.o,a.A,!0);a.C.show();a.K=!1;return!0}; var g5=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.o.A;!c.o&&c.za&&(a.C=new z3(a.o),a.C.show())}}; var h5=function(a){a.C&&(a.C.dispose(),a.C=null)}; var f5=function(a){var b=fU(a);a=0<b.length?b.pop():WT(a);a=wfa[a.toUpperCase()];return null!=a?a:0}; var i5=function(a){a.L||(qq(a.o),a.L=!0)}; var j5=function(a){G_.call(this,a);this.H=this.qa="ad";this.A=this.B=this.L=null;this.Y=this.Z=!1;this.C=this.O=null;zK.o=!0;zK.C=!1;zK.G=!0;zK.F=0;this.M=null;this.fa={};this.da={at:"0"};this.K=new Vq(this.o);Uq(this.o,this.K.element,4);this.aa=this.F=null;this.U=-1;this.D=null}; var F2=function(a){return k5(a.app)}; var x3=function(a,b,c){a=a.L;c=c||{};var d=(H()-a.H)/1E3;c.art=d;d=a.J.W();d.ka&&(c.feature=d.Ia);c.ad_flags=a.o.adFlags;(d=a.o.Qa)&&(c.cid=d);c.mt=a.A.getCurrentTime();(d=SA())&&(c.lact=d);(d=a.A.hh())&&(c.len=d);a.o.tb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.B=c.at;b=a.G;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=c&&c.ad_event?Z2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=c.sst);"2_1"== e&&10==f&&(c.break_type=1);e={};e.device=b.o.A.bb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":ib(t2,Xa(d))&&(f.m_pos=l.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*d);break;case "ad_error":f.error_code=Vea(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=Z2(d); break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=g3(b.o);f=F2(b.o);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.o.B,e.mt=null!=c&&null!=c.A?1E3*u2(c.A.Ta):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.o.W();e.ei=f.eventId;e.lact=SA();e.vol=Math.round(b.o.app.Xa.Db());e.vis=iH(c);c=l5(b.o);e.p_w=c.width;e.p_h=c.height;e.rt=H();if(c=(c=P1(k))&&We(c)===window.document?Zf(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Dg(e);if("undefined"== typeof k)throw Error("Keys are undefined");c=new gh(null,0,void 0);e=Cg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?oh(c,a,d):uh(c,a,d);b=b.o.W().baseYtUrl+"api/stats/ads";b=new N(b);eh(b,c);aq(b.toString())}}; var m5=function(a,b,c){c=c||{};c.ad_error=b;x3(a,7,c)}; var n5=function(a){if(!a.Z){var b=a.W().baseYtUrl;aq(b+"mac_204?action_fcts=1");a.Z=!0}}; var o5=function(a){return a.B instanceof Y4?a.B:null}; var p5=function(a){a=a.K;if(a.A.W().H)a=LE(a.A).A;else{if(!a.C){var b;b=a.A.app;if(b.X.H){var c=Vf(b.B),d=hg(b.B);b.fa=new te(c.x,c.y,d.width,d.height);b2(b.D);py(b.B,1);Zq(b.B);b=b.B}else b=q5.getTag(void 0,void 0);a.C=b;Yd(a.C,["video-stream","ad-video"])}a=a.C}return a}; var g3=function(a){if(!a.F){var b=ec(a.W().M);b.autoplay="1";b.eventid=F2(a).eventId;b.content_v=F2(a).videoId;b=new wG(b);b.Ba="adunit";var c=p5(a);b.qc=c;a.F=new M1(b,2,new H_(b,""),a.app.F,A(a.app.R,a.app))}return a.F}; var l5=function(a){return a.A.C?(a=a.app.F.Ma(),new te(0,0,a.width,a.height)):jg(a.Aa())}; var r5=function(a,b){k4(a,"bd");var c;c=a.A;var d=c.midrollPrefetchSize;c=c.Ra?new Y4(a,b):0<d?new V4(a,b,d):new P4(a,b);a.B=c;ofa(a.B)}; var U4=function(a){a.Y=!0;a.R("command_redirect_controls",a,["play_pause"],void 0);a.C||a.pauseVideo()}; var s5=function(a){Xq(a.K);a.Y=!1;uq(a)}; var k3=function(a,b){switch(b){case 1:a.U=1;a.R("publish_external_event","onAdStart");break;case 0:a.U=0,a.R("publish_external_event","onAdEnd")}}; var j3=function(a,b,c,d){d&&a.R("publish_external_event","onAdInfoChange",d);a.R("publish_external_event","onAdStateChange",b,p5(a),c)}; var k4=function(a,b){var c=b;"nl"==b&&(c=a.L,c.F++,c=c.F.toString());a.fa[c]=H();"bs"!=c&&"fb"!=c||rq(a,a.fa,a.da)}; var t5=function(a){return Boolean(a.A.D&&a.B&&1<a.B.B.length)}; var u5=function(a,b,c){F.call(this);this.A=a;a.subscribe("onVolumeChange",this.Cp,this);this.K=A(this.Sz,this);a.o.addEventListener("onCaptionsTrackListChanged",this.K);this.D=!1;this.o=c;c.subscribe("proxyStateChange",this.Pp,this);c.subscribe("remotePlayerChange",this.Bl,this);c.subscribe("remoteQueueChange",this.Cl,this);this.M=new qy;this.H=this.G=window.NaN;this.L=0;this.B={};this.F=null;this.J=new Am(this.rC,1E3,this);G(this,this.J);this.S=0;this.C=!1;a=this.A.o.wb("captions","track");ac(a)|| v5(this,a);this.Cl();this.Bl()}; var w5=function(a,b){var c=a.A,d=a.A.o.getVideoData().lengthSeconds;c.L=b||0;JH(c.o,b,d)}; var x5=function(a){a.C||(w5(a,0),y5(a),z5(a,new qy));Mx(a.A.app.Xa.W())||(a.C=!0)}; var v5=function(a,b){if(A5(a)&&!a.D){if(b){var c={style:a.A.o.wb("captions","displaySettings")};gc(c,b);a.o.Sl(B5(a),c)}else a.o.Sl(B5(a),null);a.B=yo(a.o).B}}; var C5=function(a){a.o.pause();var b=yo(a.o);w5(a,ro(b));y5(a);z5(a,new qy(4))}; var D5=function(a){a.o.play();E5(a);z5(a,new qy(8))}; var F5=function(a,b){var c=a.A.o.ac();c?zo(a.o,B5(a),b,c.o,a.A.o.getVideoData().playlistId):zo(a.o,B5(a),b);z5(a,new qy(1))}; var G5=function(a,b){if(b){var c=a.A.o.wb("captions","tracklist",{Lo:1});c&&c.length?a.A.o.de("captions","track",b):(a.A.o.tj("captions"),a.D=!0)}else a.A.o.de("captions","track",{})}; var A5=function(a){return po(yo(a.o))==B5(a)}; var B5=function(a){return a.A.o.getVideoData().videoId}; var E5=function(a){y5(a);if(!a.o.isDisposed()){var b=yo(a.o);b.Wa()&&z5(a,new qy(8));w5(a,ro(b));a.G=Ai(A(function(){E5(this)},a),500)}}; var y5=function(a){Di(a.G);a.G=window.NaN}; var H5=function(a){Di(a.H);a.H=window.NaN}; var z5=function(a,b){H5(a);var c=a.M;a.M=b;a.C=!1;var d=a.A;d.O=b;d.app.R("presentingplayerstatechange",new L1(b,c))}; var I5=function(a){G_.call(this,a);this.qa=this.H="remote";this.C={key:Lj(),name:P("YTP_MDX_MY_COMPUTER")};this.B=null;this.F=[];this.K=this.M=this.A=null;this.U=[this.C];this.D=this.C;this.O=new qy;this.L=0}; var J5=function(a,b,c){var d=c||a.C;b.unshift(a.C);a.U=b||[a.C];d=db(b,function(a){return a.key==d.key}); a.D=d||a.C;a.R("publish_external_event","onMdxReceiversChange")}; var K5=function(a){Q.call(this,["span"]);this.element.innerHTML=a}; var L5=function(a,b){Q.call(this,["span","","{{sparkline_container}}"]);this.D=a;this.C=b;this.A=new K5("");G(this,this.A);Bq(this,"sparkline_container",this.A)}; var M5=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.D+","+a.C*(1-b[e]/c));return'<svg width="'+a.D+'" height="'+a.C+'" viewbox="0 0 '+a.D+" "+a.C+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'}; var N5=function(a){Q.call(this,["div","html5-video-info-panel",["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"],["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],["div", "",["div","","Stream Type:"],["span","","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]],["div",{style:"{{live_latency_style}}"}, ["div","","Live Latency:"],["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_seconds_and_class}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]]]]);R(this,this.ra["html5-video-info-panel-close"],"click",this.ga);this.C=new L5(200,14);G(this,this.C);Bq(this,"bandwidth_sparkline",this.C);this.D=new L5(200,14);G(this,this.D);Bq(this,"live_latency_sparkline",this.D);this.F=new Ud(this.G,500,this);G(this,this.F);this.A=a}; var O5=function(a){var b=["div","html5-video-player",{tabindex:-1,id:a.Y.attrs.id},["div","html5-video-container",{"data-layer":0}]];b.push(["div","html5-video-content",{"data-layer":0}]);Gq.call(this,b);ri(this.element,"version",a.Y.assets.js);this.app=a;this.U=null;this.C=this.ra["html5-video-container"];this.fa=!!this.C;this.G=new te(0,0,0,0);this.A=null;this.K=new te(0,0,0,0);this.M=this.ra["html5-video-content"];this.Y=this.ea=0;this.L=null;this.H=0;this.S=null;a=a.W();this.aa=a.experiments.na("efficient_resize")|| a.tb||"blazer"==a.o;this.da=a.experiments.na("efficient_resize")&&Qx(a);this.J=this.D=null;this.addEventListener=A(this.element.addEventListener,this.element);this.removeEventListener=A(this.element.removeEventListener,this.element);this.dispatchEvent=function(){}; a=Mx(a)&&"blazer"!=a.o&&"mweb-polymer"!=a.o&&window.matchMedia?A(window.matchMedia,window):w;this.Z=a(O5.F);this.za=a(O5.D);this.ma=a(O5.C);this.ha=a(O5.A);this.sa=a(O5.o);this.ka=a(O5.B);this.F=null;Gi({YTP_ADVERTISEMENT:"\u5ee3\u544a",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"\u97f3\u8ecc",YTP_AUTO:"\u81ea\u52d5",YTP_AUTO_WITH_QUALITY_2:"\u81ea\u52d5 ($VIDEO_QUALITY)",YTP_CARDS_BUTTON_ARIA_LABEL:"\u986f\u793a\u8cc7\u8a0a\u5361",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"\u8b8a\u66f4\u756b\u8cea ($VIDEO_QUALITY)", YTP_COPY_DEBUG_INFO:"\u8907\u88fd\u5075\u932f\u8cc7\u8a0a",YTP_COPY_VIDEO_URL:"\u8907\u88fd\u5f71\u7247\u7db2\u5740",YTP_COPY_VIDEO_URL_AT_TIME:"\u8907\u88fd\u76ee\u524d\u64ad\u653e\u6642\u9593\u7684\u5f71\u7247\u7db2\u5740",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"\u96b1\u85cf\u8cc7\u8a0a\u5361",YTP_DRAWER_HEADER_TEXT_2:"\u66f4\u591a\u8cc7\u8a0a",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"\u60f3\u53c3\u52a0\u6295\u7968\u55ce\uff1f",YTP_GET_DEBUG_INFO:"\u53d6\u5f97\u5075\u932f\u8cc7\u8a0a", YTP_GET_VIDEO_URL:"\u53d6\u5f97\u5f71\u7247\u7db2\u5740",YTP_GET_VIDEO_URL_AT_TIME:"\u53d6\u5f97\u76ee\u524d\u7247\u6bb5\u7684\u5f71\u7247\u7db2\u5740",YTP_GET_EMBED:"\u53d6\u5f97\u5167\u5d4c\u7a0b\u5f0f\u78bc",YTP_DECREASE_PLAYBACK_SPEED:"\u653e\u6162\u64ad\u653e\u901f\u5ea6",YTP_DEFAULT_VIEW:"\u9810\u8a2d\u6aa2\u8996\u6a21\u5f0f",YTP_EMBED_COPY:"\u8907\u88fd\u5d4c\u5165\u7a0b\u5f0f\u78bc",YTP_ERROR_GENERIC_WITHOUT_LINK:"\u767c\u751f\u932f\u8aa4\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_ERROR_GENERIC_WITH_LINK:"\u767c\u751f\u932f\u8aa4\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002$BEGIN_LINK\u77ad\u89e3\u8a73\u60c5$END_LINK", YTP_EXIT_FULLSCREEN:"\u7d50\u675f\u5168\u87a2\u5e55",YTP_FULLSCREEN_GENERIC_ERROR:"\u7121\u6cd5\u9032\u5165\u5168\u87a2\u5e55\u6a21\u5f0f\u3002$BEGIN_LINK\u8a73\u60c5$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"\u60a8\u7684\u700f\u89bd\u5668\u4e0d\u652f\u63f4\u5168\u87a2\u5e55\u6a21\u5f0f\u3002$BEGIN_LINK\u8a73\u60c5$END_LINK",YTP_FEATURED:"\u7cbe\u9078",YTP_FULLSCREEN:"\u5168\u87a2\u5e55",YTP_INCREASE_PLAYBACK_SPEED:"\u52a0\u5feb\u64ad\u653e\u901f\u5ea6",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"\u5ba3\u50b3", YTP_GOTO_LIVE_TOOLTIP:"\u76f4\u63a5\u8df3\u81f3\u73fe\u5834\u6d3b\u52d5\u76f4\u64ad\u983b\u9053\u3002",YTP_KEYBOARD_SHORTCUTS:"\u9375\u76e4\u5feb\u901f\u9375",YTP_LIVE:"\u76f4\u64ad",YTP_LIVE_NOW:"\u76f4\u64ad\u4e2d",YTP_MIX:"\u5408\u8f2f",YTP_MORE:"\u66f4\u591a",YTP_MDX_TITLE:"\u64ad\u653e\u87a2\u5e55\uff1a",YTP_MDX_TOOLTIP:"\u5728\u96fb\u8996\u4e0a\u64ad\u653e",YTP_MDX_MY_COMPUTER:"\u9019\u53f0\u96fb\u8166",YTP_MUTE:"\u975c\u97f3",YTP_NEXT:"\u4e0b\u4e00\u500b",YTP_NEXT_VIDEO_IN:"\u4e0b\u4e00\u90e8\u5f71\u7247\u5c07\u5728 $TIME_LEFT \u79d2\u5f8c\u958b\u59cb\u64ad\u653e", YTP_NORMAL_SPEED:"\u6b63\u5e38",YTP_ON:"\u958b\u555f",YTP_OFF:"\u95dc\u9589",YTP_OPTIONS:"\u9078\u9805",YTP_PLAY_ALL:"\u5168\u90e8\u64ad\u653e",YTP_PLAY_PAUSE:"\u5207\u63db\u64ad\u653e/\u66ab\u505c",YTP_PREVIOUS:"\u4e0a\u4e00\u90e8",YTP_PLAYBACK_STALLED_AT_START:"\u5982\u679c\u7d93\u904e\u4e00\u6bb5\u6642\u9593\u4ecd\u672a\u958b\u59cb\u64ad\u653e\uff0c\u8acb\u8a66\u8457\u91cd\u65b0\u555f\u52d5\u60a8\u7684\u88dd\u7f6e\u3002",YTP_MISSING_FORMATS:"\u627e\u4e0d\u5230\u9078\u9805\u55ce\uff1f",YTP_PLAYLIST:"\u64ad\u653e\u6e05\u55ae", YTP_PLAYLIST_UP_NEXT:"\u5373\u5c07\u64ad\u653e",YTP_QUALITY_TITLE:"\u756b\u8cea",YTP_SUGGESTED_VIDEOS:"\u5efa\u8b70\u7684\u5f71\u7247",YTP_REPLAY:"\u91cd\u64ad",YTP_REPORT_ISSUE:"\u56de\u5831\u64ad\u653e\u554f\u984c",YTP_SEEK_BACK:"\u5012\u8f49 10 \u79d2",YTP_SEEK_FORWARD:"\u5feb\u8f49 10 \u79d2",YTP_SEEK_PERCENT:"\u524d\u5f80 0%-90%\u3002",YTP_SETTINGS:"\u8a2d\u5b9a",YTP_SHARE:"\u5206\u4eab",YTP_SHARE_LINK:"\u5206\u4eab\u9023\u7d50",YTP_SHARE_WITH_PLAYLIST_2:"\u5305\u542b\u64ad\u653e\u6e05\u55ae", YTP_SHOW_VIDEO_INFO:"\u7d71\u8a08\u8cc7\u6599",YTP_SIGN_IN:"\u767b\u5165",YTP_SPHERICAL_CONTROL:"\u5168\u666f\u5f71\u7247\u63a7\u5236\u9078\u9805\u3002\u4f7f\u7528\u65b9\u5411\u9375\u53ef\u79fb\u52d5\u8996\u89d2\u3002",YTP_SPEED_TITLE:"\u901f\u5ea6",YTP_ST_COLLAPSE:"\u6536\u5408",YTP_ST_EXPAND:"\u5c55\u958b",YTP_SUBTITLES:"\u5b57\u5e55",YTP_SUBTITLES_TOOLTIP:"\u5b57\u5e55",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"\u7acb\u9ad4\u5f71\u7247",YTP_THEATER_MODE:"\u5287\u9662\u6a21\u5f0f", YTP_TOGGLE_FULLSCREEN:"\u5207\u63db\u6210\u5168\u87a2\u5e55\u3002",YTP_TOGGLE_MUTE:"\u5207\u63db\u975c\u97f3",YTP_UNMUTE:"\u89e3\u9664\u975c\u97f3",YTP_URL_NAVIGATE:"\u5728 YouTube.com \u7db2\u7ad9\u4e0a\u89c0\u770b",YTP_URL_NAVIGATE_TO:"\u524d\u5f80 $WEBSITE \u89c0\u770b",YTP_WATCH_ALL:"\u89c0\u770b\u5b8c\u6574\u5f71\u7247",YTP_WATCH_LATER:"\u7a0d\u5f8c\u89c0\u770b",YTP_WATCH_LATER_AS_2:"\u7a0d\u5f8c\u4ee5$USER_NAME\u7684\u8eab\u5206\u89c0\u770b",YTP_WEBGL_3D_ANAGLYPH:"\u7acb\u9ad4\u5f71\u7247", YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"\u4ee5$USER_NAME\u7684\u8eab\u5206\u8a02\u95b1",YTP_LIKE_AS:"\u4ee5$USER_NAME\u7684\u8eab\u5206\u8868\u793a\u559c\u6b61",YTP_DISLIKE_AS:"\u4ee5$USER_NAME\u7684\u8eab\u5206\u8868\u793a\u4e0d\u559c\u6b61",YTP_WATCH_NEXT:"\u63a5\u4e0b\u4f86\u8acb\u770b",YTP_PLAY:"\u64ad\u653e",YTP_WATERMARK:"\u6d6e\u6c34\u5370",YTP_ERROR_STREAMING_UNAVAILABLE:"\u9019\u90e8\u5f71\u7247\u5df2\u4e0b\u8f09\u4f9b\u96e2\u7dda\u89c0\u770b\uff0c\u56e0\u6b64\u76ee\u524d\u7121\u6cd5\u64ad\u653e\u3002", YTP_ERROR_LICENSE:"\u5f88\u62b1\u6b49\uff0c\u6388\u6b0a\u9019\u90e8\u5f71\u7247\u6642\u767c\u751f\u932f\u8aa4\u3002",YTP_ERROR_VIDEO_NOT_FOUND:"\u627e\u4e0d\u5230\u9019\u90e8\u5f71\u7247\u3002",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"\u9019\u90e8\u5f71\u7247\u7684\u4e0b\u8f09\u6b21\u6578\u5df2\u9054\u5230\u7248\u6b0a\u6301\u6709\u4eba\u5141\u8a31\u7684\u88dd\u7f6e\u6578\u91cf\u4e0a\u9650\u3002\u5982\u8981\u5728\u9019\u53f0\u88dd\u7f6e\u4e0a\u64ad\u653e\u9019\u90e8\u5f71\u7247\uff0c\u5fc5\u9808\u5148\u5728\u5176\u4ed6\u88dd\u7f6e\u4e0a\u53d6\u6d88\u56fa\u5b9a\u5f71\u7247\u3002", YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"\u555f\u7528\u79df\u7247\u670d\u52d9\u6642\u767c\u751f\u932f\u8aa4\uff0c\u8acb\u91cd\u65b0\u8f09\u5165\u9019\u500b\u7db2\u9801\u6216\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_ERROR_PURCHASE_NOT_FOUND:"\u9019\u90e8\u5f71\u7247\u9700\u8981\u4ed8\u8cbb\u624d\u80fd\u89c0\u770b\u3002",YTP_ERROR_PURCHASE_REFUNDED:"\u9019\u90e8\u5f71\u7247\u5df2\u9000\u6b3e\u3002",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"\u60a8\u7684\u5e33\u6236\u6b63\u65bc\u5176\u4ed6\u4f4d\u7f6e\u64ad\u653e\u9019\u90e8\u5f71\u7247\u3002\u8acb\u91cd\u65b0\u8f09\u5165\u9019\u500b\u7db2\u9801\uff0c\u624d\u80fd\u7e7c\u7e8c\u89c0\u770b\u5f71\u7247\u3002", YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"\u6b63\u5728\u64ad\u653e\u540c\u4e00\u500b\u5e33\u6236\u7684\u591a\u90e8\u5f71\u7247\uff0c\u7531\u65bc\u540c\u6642\u64ad\u653e\u7684\u5f71\u7247\u6578\u91cf\u904e\u591a\uff0c\u56e0\u6b64\u5df2\u505c\u6b62\u64ad\u653e\u3002",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"\u9019\u90e8\u5f71\u7247\u5df2\u5728\u592a\u591a\u88dd\u7f6e\u4e0a\u64ad\u653e\uff0c\u56e0\u6b64\u5df2\u505c\u6b62\u64ad\u653e\u3002",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"\u60a8\u5728 24 \u5c0f\u6642\u5167\u4f7f\u7528\u4e86\u592a\u591a\u88dd\u7f6e/IP \u4f4d\u5740\u3002", YTP_ERROR_UNUSUAL_ACTIVITY:"\u5e33\u6236\u51fa\u73fe\u7570\u5e38\u6d3b\u52d5\uff0c\u56e0\u6b64\u76ee\u524d\u7121\u6cd5\u64ad\u653e\u9019\u90e8\u5f71\u7247\u3002",YTP_ERROR_NOT_SIGNED_IN:"\u8acb\u767b\u5165\u5e33\u6236\uff0c\u624d\u80fd\u7e7c\u7e8c\u89c0\u770b\u5f71\u7247\u3002",YTP_CLOSE:"\u95dc\u9589",YTP_EXPAND:"\u5c55\u958b\n",YTP_ANNOTATIONS:"\u8a3b\u89e3",YTP_DONE:"\u5b8c\u6210",YTP_SHARE_THIS_PLAYLIST:"\u5206\u4eab\u6b64\u64ad\u653e\u6e05\u55ae",YTP_UPLOADED_BY_2:"\u4f5c\u8005\uff1a$AUTHOR", YTP_SEEK_SLIDER:"\u641c\u5c0b\u6ed1\u687f",YTP_PAUSE:"\u66ab\u505c",YTP_AUTOPLAY:"\u81ea\u52d5\u64ad\u653e",YTP_AUTOPLAY_COUNTDOWN_2:"\u4e0b\u4e00\u90e8\u5f71\u7247\u5c07\u5728 $SECONDS_LEFT \u79d2\u5f8c\u958b\u59cb\u64ad\u653e",YTP_AUTOPLAY_PAUSED:"\u5728\u5fd9\u55ce\uff1f\u6211\u5011\u5df2\u66ab\u505c\u81ea\u52d5\u64ad\u653e\u3002",YTP_AUTOPLAY_PAUSED_2:"\u5df2\u66ab\u505c\u81ea\u52d5\u64ad\u653e\u3002",YTP_AUTOPLAY_CANCEL:"\u53d6\u6d88\u81ea\u52d5\u64ad\u653e",YTP_WATCH_VIDEO_OR_PLAYLIST:"\u89c0\u770b\u300c$TITLE\u300d", YTP_CANCEL:"\u53d6\u6d88",YTP_ON_GOOGLE_PLUS:"\u5728 Google+ \u4e0a",YTP_STILL_THERE:"\u60a8\u9084\u5728\u89c0\u770b\u5f71\u7247\u55ce\uff1f\u8acb\u6309\u4e0b\u65b9\u6309\u9215\u7e7c\u7e8c\u89c0\u770b\u64ad\u653e\u6e05\u55ae\u3002",YTP_DISMISS:"\u78ba\u5b9a",YTP_RESET:"\u91cd\u8a2d",YTP_STOP:"\u505c\u6b62\u5373\u6642\u64ad\u653e",YTP_LIKE:"\u559c\u6b61",YTP_DISLIKE:"\u4e0d\u559c\u6b61",YTP_SCREENREADER_VOLUME_SETTING:"\u97f3\u91cf",YTP_SCREENREADER_VOLUME_MUTED:"\u5df2\u8a2d\u70ba\u975c\u97f3",YTP_SCREENREADER_VOLUME_MUTE:"\u975c\u97f3", YTP_SCREENREADER_VOLUME_UNMUTE:"\u53d6\u6d88\u975c\u97f3",YTP_SCREENREADER_CONTROL_TOGGLE:"\u5207\u63db",YTP_SAMPLE_SUBTITLES:"\u5b57\u5e55\u5916\u89c0\u7bc4\u4f8b",YTP_HTML5_CONTEXT_MENU_LINK:"\u95dc\u65bc HTML5 \u64ad\u653e\u5668",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"\u64ad\u653e\u5668\u4e0d\u652f\u63f4\u9019\u7a2e\u5f71\u7247\u683c\u5f0f\u3002",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"\u60a8\u7684\u700f\u89bd\u5668\u76ee\u524d\u7121\u6cd5\u8b58\u5225\u4efb\u4f55\u53ef\u7528\u7684\u5f71\u7247\u683c\u5f0f\u3002$BEGIN_LINK\u6309\u4e00\u4e0b\u9019\u88e1\u4f86\u95b1\u8b80\u95dc\u65bc HTML5 \u5f71\u7247\u7684\u5e38\u898b\u554f\u984c\u3002$END_LINK", YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"\u64ad\u653e\u5f71\u7247\u9700\u8981 Adobe Flash Player\u3002$BEGIN_LINK\u53d6\u5f97\u6700\u65b0\u7248 Flash Player$END_LINK\u3002",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"\u6295\u653e\u5de5\u4f5c\u968e\u6bb5\u4e2d\u7684\u88dd\u7f6e\u4e0d\u7b26\u5408\u6240\u8981\u6c42\u7684\u88dd\u7f6e\u3002",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"\u6295\u653e\u5de5\u4f5c\u968e\u6bb5\u4e2d\u7684\u5f71\u7247\u4e0d\u7b26\u5408\u6240\u8981\u6c42\u7684\u5f71\u7247\u3002", YTP_ERROR_CAST_TOKEN_EXPIRED:"\u6295\u653e\u5de5\u4f5c\u968e\u6bb5\u5df2\u904e\u671f\uff0c\u8acb\u91cd\u65b0\u6574\u7406\u3002",YTP_ERROR_CAST_TOKEN_FAILED:"\u6295\u653e\u5de5\u4f5c\u968e\u6bb5\u7121\u6cd5\u4f7f\u7528\uff0c\u8acb\u91cd\u65b0\u6574\u7406\u6216\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_ERROR_CAST_TOKEN_MALFORMED:"\u6295\u653e\u5de5\u4f5c\u968e\u6bb5\u7121\u6548\uff0c\u8acb\u91cd\u65b0\u6574\u7406\u6216\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_ERROR_GEO_FAILURE:"\u9019\u90e8\u5f71\u7247\u7121\u6cd5\u5728\u60a8\u7684\u570b\u5bb6/\u5730\u5340\u64ad\u653e\u3002", YTP_ERROR_INVALID_DRM_MESSAGE:"DRM \u7cfb\u7d71\u76f8\u95dc\u8a0a\u606f\u7121\u6548\u3002",YTP_ERROR_RENTAL_EXPIRED:"\u9019\u90e8\u5f71\u7247\u7684\u79df\u671f\u5df2\u904e\u3002",YTP_ERROR_RETRYABLE_ERROR:"\u4f3a\u670d\u5668\u66ab\u6642\u767c\u751f\u932f\u8aa4\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_ERROR_SERVER_ERROR:"\u4f3a\u670d\u5668\u767c\u751f\u5167\u90e8\u932f\u8aa4\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_ERROR_STREAMING_NOT_ALLOWED:"\u9019\u90e8\u5f71\u7247\u5df2\u56fa\u5b9a\u5728\u5176\u4ed6\u88dd\u7f6e\u4e0a\uff0c\u56e0\u6b64\u4e0d\u80fd\u64ad\u653e\u3002", YTP_ERROR_UNSUPPORTED_DEVICE:"\u9019\u500b\u88dd\u7f6e\u4e0d\u652f\u63f4\u64ad\u653e\u5f71\u7247\u3002",YTP_ERROR_VIDEO_FORBIDDEN:"\u7981\u6b62\u5b58\u53d6\u9019\u90e8\u5f71\u7247\u3002",YTP_MDX_STATUS_CONNECTED:"\u64ad\u653e\u88dd\u7f6e\uff1a",YTP_MDX_STATUS_CONNECTING:"\u6b63\u5728\u9023\u7dda\u81f3",YTP_MDX_STATUS_ERROR:"\u4ee5\u4e0b\u88dd\u7f6e\u767c\u751f\u932f\u8aa4\uff1a",YTP_MDX_PLAYER_ERROR:"\u9019\u90e8\u5f71\u7247\u4e0d\u63d0\u4f9b\u9060\u7aef\u64ad\u653e\u3002\u3000",YTP_MDX_PLAYER_RECONNECT_TIME:"\u8acb\u6aa2\u67e5\u60a8\u7684\u7db2\u969b\u7db2\u8def\u9023\u7dda\u3002\u5c07\u65bc $FORMATTED_TIME\u5f8c\u91cd\u8a66...", YTP_MDX_PLAYER_RECONNECT_BUTTON:"\u91cd\u65b0\u9023\u7dda",YTP_DEVICE_FALLBACK:"\u5f88\u62b1\u6b49\uff0c\u9019\u90e8\u5f71\u7247\u7121\u6cd5\u5728\u9019\u500b\u88dd\u7f6e\u4e0a\u64ad\u653e\u3002",YTP_AD_INTERRUPT_MESSAGE:"\u60a8\u7684\u5f71\u7247\u5c07\u5728\u9019\u5247\u5ee3\u544a\u7d50\u675f\u5f8c\u958b\u59cb\u64ad\u653e\u3002",YTP_VISIT_ADVERTISERS_SITE:"\u700f\u89bd\u5ee3\u544a\u5ba2\u6236\u7684\u7db2\u7ad9",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS\uff0c\u5171 $DURATION",YTP_PLAYLIST_NAME:"\u64ad\u653e\u6e05\u55ae\uff1a$PLAYLIST_NAME", YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"\u64f7\u53d6\u5171\u7528\u8cc7\u8a0a\u6642\u767c\u751f\u932f\u8aa4\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002",YTP_PLAYLIST_AUTHOR_AND_POSITION:"\u4f5c\u8005\uff1a$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube \u5f71\u7247\u64ad\u653e\u5668",YTP_PLAYER_FULLSCREEN:"\u4ee5\u5168\u87a2\u5e55\u6a21\u5f0f\u986f\u793a\u7684 YouTube \u5f71\u7247\u64ad\u653e\u5668",YTP_SPONSORED:"\u8d0a\u52a9\u5546", YTP_SPONSORED_PRODUCT_INFO:"\u60a8\u4e4b\u6240\u4ee5\u770b\u5230\u9019\u9805\u7522\u54c1\uff0c\u662f\u56e0\u70ba\u6211\u5011\u8a8d\u70ba\u7522\u54c1\u8207\u5f71\u7247\u76f8\u95dc\u3002Google \u53ef\u80fd\u6703\u5411\u5546\u5bb6\u6536\u53d6\u5ee3\u544a\u8cbb\u7528\u3002",YTP_AD_SETTINGS_INFO:"\u8acb\u524d\u5f80 Google \u7684$BEGIN_FORMAT\u5ee3\u544a\u8a2d\u5b9a$END_FORMAT\uff0c\u9032\u4e00\u6b65\u77ad\u89e3\u5ee3\u544a\u6307\u5b9a\u76ee\u6a19\u7684\u65b9\u5f0f\uff0c\u6216\u662f\u5982\u4f55\u505c\u7528\u500b\u4eba\u5316\u5ee3\u544a\u3002", YTP_PIP:"\u5b50\u6bcd\u756b\u9762",YTP_AUTO_TRANSLATE:"\u81ea\u52d5\u7ffb\u8b6f"});this.app.subscribe("initializingmode",this.Hw,this);this.app.subscribe("videoplayerreset",this.HE,this);this.app.subscribe("videodatachange",this.GE,this);this.app.subscribe("presentingplayerstatechange",this.yw,this)}; var xfa=function(a,b){a.A=b;if(!a.A.parentNode)try{pf(a.C,a.A,0)}catch(d){var c="videoElement_: "+!!a.A+", containerElement: "+!!a.C+", containerElement.childNodes: "+!(!a.C||!a.C.childNodes)+", containerInitiallyTruthy: "+a.fa+", isDisposed: "+a.isDisposed();throw Error(c);}a.F&&(a.F.disconnect(),a.F=null);!a.app.W().experiments.na("no_detect_bad_extensions2")&&window.MutationObserver&&(a.F=new window.MutationObserver(A(function(a){for(var b=0;b<a.length;b++){var c=a[b];"style"==c.attributeName&& "100%"==c.target.style.height&&(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.K=new te(0,0,0,0),P5(this))}},a)),a.F.observe(a.A,{attributes:!0})); a.K=new te(0,0,0,0);P5(a);yfa(a)}; var yfa=function(a){I(a.A,"video-stream");I(a.A,"html5-main-video");var b=a.app.W();"3"==b.B&&a.A.setAttribute("controls",!0);b.za&&a.A.setAttribute("data-no-fullscreen",!0);b.Nb&&a.A.setAttribute("webkit-playsinline","");b.pe&&(a.S=Nl(a.A,"click",A(a.A.play,a.A)))}; var Q5=function(a,b){if(a.A){var c=a.app.W();Rv&&(a.A.setAttribute("x-webkit-airplay","allow"),b.title?a.A.setAttribute("title",b.title):a.A.removeAttribute("title"));var d;c.Ch&&b.videoId?d=b.Bc(c,"default.jpg"):c.experiments.na("legacy_poster_behavior")||wc&&!R5&&!lt()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.A.poster=d)}c=b.Tc("yt:bgcolor");a.C.style.backgroundColor=c?c:"";a.ea=Bu(b.Tc("yt:stretch"));c=b.Tc("yt:crop");a.Y="fullwidth"==c?window.Infinity: Bu(c)}; var mJ=function(a){return a.A?new re(0<a.A.style.width.indexOf("px")?(0,window.parseInt)(a.A.style.width,10):a.A.clientWidth,0<a.A.style.height.indexOf("px")?(0,window.parseInt)(a.A.style.height,10):a.A.clientHeight):new re(0,0)}; var rF=function(a){return(a=a.A)?S5(a.videoWidth,a.videoHeight):window.NaN}; var KE=function(a,b){var c=a.Ma(),d=T5(a,c,rF(a),U5(a),b);return new te((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)}; var T5=function(a,b,c,d,e){c=a.ea||c;a=(0,window.isNaN)(c)?c:a.Y||c;d=S5(b.width,b.height);var f;a>d?(f=(0,window.isFinite)(a)?a:c,f={width:b.width,height:b.width/f,aspectRatio:f}):a<d?f={width:b.height*a,height:b.height,aspectRatio:a}:f={width:b.width,height:b.height,aspectRatio:d};e||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.aspectRatio=c);return f}; var S5=function(a,b){return 1>Math.abs(V5*b-a)||1>Math.abs(V5/a-b)?V5:a/b}; var U5=function(a){return Rv?!0:"3"!=a.app.W().B&&!(0,window.isNaN)(rF(a))}; var P5=function(a){var b=rF(a),c=a.Ma(),d=1,e=U5(a),f=!1,k=oq(a.app),l=k&&k.getPlayerState(),k=T5(a,c,b),m=a.app.W();!l||T(l,2)||By(l)?m.experiments.na("container_overflow")?(a.C.style.overflow="hidden",b=new te(0,0,c.width,c.height)):(b=-c.height,Rv?b*=window.devicePixelRatio:uc&&(b-=window.screen.height),b=new te(0,b,c.width,c.height)):(m.experiments.na("container_overflow")&&(a.C.style.overflow=""),e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new te((c.width-k.width/d)/2,(c.height-k.height)/2, k.width/d,k.height)):b=new te(0,0,c.width,c.height));ve(a.K,b)||(a.K=b,eg(a.A,we(b)),Tf(a.A,xe(b)),f=!0);c=new te((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ve(a.G,c)||(a.G=c,eg(a.M,c.width,c.height),Tf(a.M,c.left,c.top),f=!0);Mf(a.A,"transform",1==d?"none":"scaleX("+d+")");return f}; var W5=function(a,b,c,d){yv.call(this);S(this,a,"click",this.L);S(this,a,"dblclick",this.H);this.J=b;this.C=c;this.D=d||null;this.A=new Ud(this.G,200,this);G(this,this.A);this.o=!0;this.B=!1;this.F=null}; var X5=function(a){for(var b=0;b<a.length;b++){var c=a[b];"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&aq(c.data.follow_on_url)}}; var Y5=function(){this.o=[];this.A=[]}; var Z5=function(a,b,c){c=window.document.createElement(c?"audio":"video");qa(c,zfa);Nl(c,"loadeddata",A(c.qv,c));Nl(c,"volumechange",A(c.tv,c));BG&&6<=Jw&&Nl(c,"webkitbeginfullscreen",A(c.play,c));b||c.src||c.load();a.A.push(c);return c}; var $5=function(a,b,c){Rj.call(this);this.C=a;this.M=A(b,null);this.A=0;this.F=!1;this.B=new oe(window.NaN,window.NaN);this.o=new yv(this);G(this,this.o);b=c?4E3:3E3;this.J=new Ud(pa(this.cb,1,!1),b,this);G(this,this.J);this.K=new Ud(pa(this.cb,2,!1),b,this);G(this,this.K);this.L=new Ud(pa(this.cb,512,!1),3E3,this);G(this,this.L);c||(this.G=S(this.o,a,"mouseover",this.vs),S(this.o,a,"mousemove",this.CE),S(this.o,a,"mouseleave",this.Vx));tc?S(this.o,a,"keypress",this.Gx):S(this.o,a,"focusin",this.Tv); this.D=S(this.o,a,"mousedown",this.us);this.H=S(this.o,a,"touchstart",this.ws);this.O=null;this.cb(640,!0)}; var a6=function(a,b){Fx.call(this,a,b);this.L=null;this.G=this.H=this.D=this.C=0;this.F=-75;I(this.element,"ytp-tv-static");b6(this,a,b)}; var c6=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b}; var b6=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=window.document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.L=d;a.H=c6(b);a.G=c6(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}}; var d6=function(a){Q.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.D=a;this.C=[];void 0==e6&&(a=window.document.createElement("canvas"),e6=!(!a.getContext||!a.getContext("2d")));e6&&(this.A=new a6(1,1),this.A.o(this.element,0),G(this,this.A));a=LE(this.D).Ma();this.A&&b6(this.A,a.width,a.height)}; var Afa=function(a,b,c){f6("add_to_watch_later_list",a,b,c)}; var Bfa=function(a,b,c){f6("delete_from_watch_later_list",a,b,c)}; var f6=function(a,b,c,d){Bj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Zc:{feature:b.feature||null,authuser:b.zb||null,pageid:b.pageId||null},Bb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.yJ||null,add_to_playlists:b.oJ||null,plid:zi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,kb:function(a,c){var d=c.result;d&&d.actions&&X5(d.actions);b.kb.call(this, a,c)}, Rb:b.Rb,withCredentials:!!d})}; var g6=function(a){this.B=a;this.A=this.o=null}; var h6=function(a){if(!a.o){a.o=new Q(["canvas",{style:"display: none"}]);a.o.o(a.B);var b=a.o.element;try{a.A=b.getContext("webgl")}catch(c){}}}; var i6=function(a){a.A=null;a.o&&(Aq(a.o),a.o=null)}; var j6=function(a){Q.call(this,["div","ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.A=new Pq(this,500);G(this,this.A);this.ca=a;this.C=null}; var k6=function(a){var b=pz(a.ca);ty(b)?(b=a.ca.getVideoData(),b.Fa&&!b.Fd?l6(a,3):l6(a,2),a.A.show(!0)):T(b,64)||(l6(a,1),a.A.show(!0))}; var l6=function(a,b){if(a.C!=b){a.C=b;var c,d;switch(b){case 2:c=P("YTP_PAUSE");d=Ah?'<div class="ytp-icon ytp-icon-pause-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,11.11 0,17.77 6.66,0 0,-17.77 -6.66,0 z m 10,0 0,17.77 6.66,0 0,-17.77 -6.66,0 z" /></svg>';break;case 1:c=P("YTP_PLAY");d=Ah?'<div class="ytp-icon ytp-icon-play-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 12.22,28.88 0,-17.77 16.66,8.91 -16.66,8.86 z" /></svg>'; break;case 3:c=P("YTP_STOP"),d=Ah?'<div class="ytp-icon ytp-icon-stop-bezel"></div>':'<svg height="100%" version="1.1" viewBox="0 0 40 40" width="100%"><path class="ytp-svg-fill" d="m 11.11,11.11 17.77,0 0,17.77 -17.77,0 0,-17.77 z" /></svg>'}var e=a.element.children[0];J(e,"ytp-bezel-icon-play",1==b);Bq(a,"label",c);d&&(e.innerHTML=d)}}; var m6=function(a,b){var c=LE(a).Ma();Q.call(this,["div","",["div","ytp-tooltip-bg","",["div","ytp-tooltip-duration","{{duration}}"]],["div","ytp-tooltip-text-wrapper",["div","ytp-tooltip-image"],["div","ytp-tooltip-title","{{title}}"],["span","ytp-tooltip-text","{{text}}"]]]);this.G=a;this.aa=b;this.M=this.ra["ytp-tooltip-bg"];this.ha=this.ra["ytp-tooltip-image"];this.Z=A(this.Zz,this);this.fa=A(this.Tl,this,1);this.ea=A(this.Tl,this,3);this.ka=A(this.Tl,this,4);this.A=null;this.J=new Pq(this,100); G(this,this.J);this.L=this.H=this.C=null;this.D=window.NaN;this.K="";this.U=0;this.Y=c.width;this.S=!0;this.da=c;this.F=1;this.O=new Ud(this.Mx,250,this);G(this,this.O)}; var n6=function(a,b){switch(b){case 1:case 2:return a.fa;case 3:return a.ea;default:return a.ka}}; var o6=function(a,b){if(null!=a.C)if(b)switch(a.C){case 1:case 3:case 4:p6(a);a.J.show(!1,400);break;default:a.J.show()}else a.J.ga();a.S=b}; var q6=function(a,b,c){if(a.aa)return w;var d=c||4;b.addEventListener("mouseover",n6(a,d));return A(function(){this.A==b&&this.Ge();b.removeEventListener("mouseover",n6(this,d))},a)}; var p6=function(a){var b=a.A.getAttribute("data-tooltip-text");Bq(a,"text",b||a.K);if(b){var c=a.A.getAttribute("data-duration");a.update({title:a.K,duration:c});var d=a.A.getAttribute("data-preview"),e=96*a.F,f=54*a.F,k=120*a.F,l=90*a.F;a.M.style.width=e+"px";a.M.style.height=f+"px";a.M.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-l)/2+"px/"+k+"px "+l+"px":"";Yd(a.element,["ytp-text-detail","ytp-preview"]);J(a.element,"ytp-has-duration",!!c)}else ae(a.element,["ytp-text-detail","ytp-preview", "ytp-has-duration"]);c=hg(a.A);d=cg(a.A,a.G.Aa());r6(a,d.x+c.width/2,!!b,d.y+c.height/2,c.height)}; var r6=function(a,b,c,d,e){a.element.style.left="0px";a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.Y,200)+"px";c=hg(a.element);b-=c.width/2;switch(a.C){case 1:case 2:b=ke(b,a.U,a.U+a.Y-c.width);break;case 3:d=LE(a.G).Ma().width;b=ke(b,12,d-c.width-12);break;default:var f=LE(a.G).Ma();b=ke(b,12,f.width-c.width-12);a.element.style.top=(d>f.height/2?d-e/2-12-c.height:d+e/2+12)+"px"}a.element.style.left=b+"px"}; var s6=function(a){a.A&&a.A.hasAttribute("title")&&(a.K=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.S&&p6(a))}; var t6=function(a,b){J(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.D)){a.D=b;var c=96*a.F,d=96*a.F,e=gu(a.L,a.D,c);X2(a.M,e,c,d,!0);a.O.start()}}; var u6=function(a,b,c){var d=["button",["ytp-button","ytp-cards-button"],{"aria-label":P("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];Q.call(this,d);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-info-card"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z" id="ytp-svg-21" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-21" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-21" /></svg>'; this.ca=a;this.G=b;this.H=c;this.C=null;this.A=new Pq(this,250,!0,100);G(this,this.A);this.ga();this.P("click",this.D);this.P("mouseover",this.F);zB(this,!0)}; var zB=function(a,b){b?(a.element.title=P("YTP_DRAWER_HEADER_TEXT_2"),a.C=q6(a.G.A,a.element,3)):(a.C(),a.C=null,a.element.title="")}; var v6=function(a,b,c){this.ma=!!c;this.da=this.Z=null;Gq.call(this,a);this.ea=new Pq(this,b);this.J=null}; var w6=function(a){a.J&&(window.document.activeElement&&yf(a.element,window.document.activeElement)&&(Cf(a.J),a.J.focus()),a.J=null)}; var x6=function(a){return a.B&&3!=a.ea.o}; var y6=function(a,b){this.C=[a];this.D=a;z6(this,a);this.size=new re(0,0);this.F=this.H=null;this.ka=this.ha=0;v6.call(this,["div",["ytp-popup",b||null],{child:a}],100,!0);this.P("keydown",this.qF)}; var z6=function(a,b){a.D.unsubscribe("size-change",a.ah,a);a.D=b;a.D.subscribe("size-change",a.ah,a)}; var A6=function(a){eg(a.element,a.ha||"100%",a.ka||"100%");var b=a.D;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.C.style.height="";var c=hg(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.D&&(d=hg(b.ra["ytp-panel-header"]).height);b.C.style.height=c.height-d+"px";a.size=c}; var B6=function(a,b){a.C.push(b);C6(a,a.D,b)}; var C6=function(a,b,c,d){a.H&&Vd(a.H);a.F&&Vd(a.F);b.unsubscribe("back",a.Wd,a);c.subscribe("back",a.Wd,a);c.o(a.element);z6(a,c);if(a.B){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;A6(a);d=0==!d?-e.width:a.size.width;eg(a.element,e);Mf(c.element,"transform","translateX("+d+"px)");Mf(c.element,"opacity","0");a.H=new Ud(pa(a.nC,b,c,-d),20,a);a.H.start()}else Mf(c.element,"transform","translateX(0)"),Mf(c.element,"opacity","1"),Aq(b)}; var D6=function(a,b,c){for(var d=0;d<c.length;d++)J(c[d].element,"ytp-panel-animating",b);J(a.element,"ytp-popup-animating",b)}; var E6=function(a){Gq.call(this,["div","ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.A=[]}; var F6=function(a,b,c){if(c)a.A.push(b),a.element.appendChild(b.element);else{c=xb(a.A,b,a.yv);if(0<=c)return;c=~c;ub(a.A,c,0,b);pf(a.element,b.element,c)}b.subscribe("size-change",a.Al,a);a.R("size-change")}; var G6=function(a,b,c,d){Gq.call(this,a);this.priority=b;c&&this.D(c);d&&this.Eb(d)}; var H6=function(a,b,c){b=b?b:[];b.push("ytp-menuitem");a=a?a:{};"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return[c?"a":"div",b,a,["div","ytp-menuitem-label","{{label}}"],["div","ytp-menuitem-content","{{content}}"]]}; var I6=function(a,b,c,d){var e=["div","ytp-panel"];if(c){var f="ytp-panel-title",k=["div","ytp-panel-header",["button",["ytp-button",f],c]];if(d){var l="ytp-panel-options";k.push(["button",["ytp-button",l],P("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Gq.call(this,e);this.C=this.ra["ytp-panel-content"];this.G=b;this.D=!1;c&&(R(this,this.ra[f],"click",this.K),this.D=!0,d&&R(this,this.ra[l],"click",d));this.G.subscribe("size-change",this.F,this);R(this,a,"fullscreentoggled", this.F)}; var J6=function(a){var b=H6({"aria-haspopup":!0});G6.call(this,b,a);this.P("keydown",this.A)}; var K6=function(a,b){a.element.setAttribute("aria-haspopup",b)}; var L6=function(a){this.A=a;this.aa=new yv(this);G(this,this.aa);this.K=new Gq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);G(this,this.K);this.fa=new I6(a,this.K);G(this,this.fa);var b=new E6("contextmenu");G(this,b);this.S=new J6(8);G(this,this.S);F6(b,this.S,!0);this.S.P("click",this.ZE,this);this.M=new J6(6);G(this,this.M);F6(b,this.M,!0);this.M.P("click",this.Cz,this);this.L=new J6(5);G(this,this.L);F6(b,this.L,!0);this.L.P("click",this.YE,this);this.Y= new G6(H6({href:"{{href}}",target:"_blank"},void 0,!0),4,P("YTP_REPORT_ISSUE"));G(this,this.Y);F6(b,this.Y,!0);this.Y.P("click",this.aF,this);this.U=new J6(3);G(this,this.U);F6(b,this.U,!0);this.U.P("click",this.XE,this);var c=new G6(H6(),2,P("YTP_SHOW_VIDEO_INFO"));G(this,c);F6(b,c,!0);c.P("click",this.bF,this);c="//"+OG(this.A.W())+"/html5";c=new G6(H6({href:c,target:"_blank"},void 0,!0),1,P("YTP_HTML5_CONTEXT_MENU_LINK"));G(this,c);F6(b,c,!0);c.P("click",this.Zx,this);b=new I6(this.A,b);G(this, b);y6.call(this,b);I(this.element,"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Fl&&yc(43)&&(b=!0);M6&&!yc(41)&&(b=!1);b&&(this.G=new Q(["div","ytp-html5-clipboard"]),G(this,this.G),this.G.o(this.element));N6(this);R(this,this.A,"fullscreentoggled",this.WE);R(this,this.A,"pageTransition",this.$E);R(this,this.A,"videodatachange",this.cF);R(this,LE(this.A),"contextmenu",this.fz);R(this,this.K.element,"click",this.gz);a=a.getVideoData();O6(this, a);this.o(window.document.body)}; var P6=function(a,b){var c;if(a.G){Af(a.G.element,b);Fq(a.G.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.rb():(a.K.Eb(b,"text"),B6(a,a.fa),Fq(a.K.element),a.G&&(a.G=null,N6(a)))}; var O6=function(a,b){var c=a.A.W(),d=!c.C&&!!b.videoId;"play"!=c.o?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.A&&(c.fmt=b.A.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.V&&(c.partnerid=b.V),c=Ug("//support.google.com/googleplay/",c));a.L.yb(d&&b.allowEmbed);a.S.yb(d);a.M.yb(d&&!b.Fa);a.Y.Eb(c,"href")}; var N6=function(a){var b=!!a.G;a.U.D(P(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));K6(a.U,!b);a.L.D(P(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));K6(a.L,!b);a.S.D(P(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));K6(a.S,!b);a.M.D(P(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));K6(a.M,!b)}; var Q6=function(a){this.F=new yv(this);Rq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.D=new Ud(this.Bs,0,this);G(this,this.D);this.Bs();R(this,a,"presentingplayerstatechange",this.eF);Mx(a.W())&&R(this,a,"videoplayerreset",this.dF)}; var R6=function(a,b,c){var d=By(c);b=T(c,2)&&!rH(b);d||b?a.show():(a.ga(),T(c,1)||a.stop())}; var S6=function(a,b,c,d,e,f,k){yv.call(this);this.o=a;this.L=c;this.G=d;this.B=e;this.H=f;this.J=k;this.A="";a=pa(this.F,!1);S(this,b,"mousedown",a);S(this,c.element,"mousedown",a);S(this,b,"keydown",this.C);S(this,c.element,"keydown",this.C);S(this,b,"keyup",this.D);S(this,c.element,"keyup",this.D)}; var T6=function(a,b,c){var d=!1,e=a.o.W();if(!e.bb){switch(b){case 80:c&&(a.o.vj(),d=!0);break;case 78:c&&(a.o.uj(),d=!0);break;case 74:a.o.ad(-10);d=!0;break;case 76:a.o.ad(10);d=!0;break;case 77:a.o.sc()?a.o.unMute():a.o.mute();d=!0;break;case 75:k6(a.H);ty(pz(a.o))?a.o.pauseVideo():a.o.$c();d=!0;break;case 190:if(c&&e.U)for(b=a.o.rj(),c=a.o.app.V,e=0;e<b.length-1;e++)b[e]==c&&(a.o.xj(b[e+1]),d=!0);break;case 188:if(c&&e.U)for(b=a.o.rj(),c=a.o.app.V,e=b.length-1;1<=e;e--)b[e]==c&&(a.o.xj(b[e-1]), d=!0);break;case 70:Jx(a.o)&&(Nx(a.o),d=!0)}d&&a.G.cb(2,!0)}return d}; var U6=function(a,b,c,d){if(qH(a.o.app.C,"captions")){for(var e=a.o.wb("captions","displaySettings"),f,k=0;k<V6.length;k++){var l=V6[k];if(l.option==b){f=l.options;break}}for(var m,k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==f.length-1)return!1;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;tH(a.o,d);return!0}return!1}; var W6=function(a){var b=["ytp-large-play-button","ytp-button"],c=a.W();(c.useTabletControls||c.isMobile)&&b.push("ytp-touch-device");Q.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.W();this.element.innerHTML=b.Ab?Ah?'<div class="ytp-icon ytp-icon-house-brand-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 60 60" width="100%"><path class="ytp-large-play-button-bg" clip-rule="evenodd" d="M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z" fill="#1f1f1f" fill-rule="evenodd" /><path d="M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z" fill="#fff" /></svg>': Ah?'<div class="ytp-icon ytp-icon-large-play-button"></div>':'<svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z" fill="#1f1f1e" fill-opacity="0.81" /><path d="m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z" fill="#fff" /><path d="M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z" fill="#ccc" /></svg>'; this.A=a;this.D=!1;this.C=new Pq(this,250);G(this,this.C);R(this,a,"presentingplayerstatechange",this.F);X6(this,pz(a))}; var X6=function(a,b){if(a.A.W().kg&&!a.D){R6(a.C,a.A,b);var c;c=(c=a.A.getVideoData())&&c.title?P("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):P("YTP_PLAY");Bq(a,"label",c)}else a.ga()}; var Y6=function(a){Gq.call(this,["div","ytp-mini-progress-bar-container",["div",["ytp-mini-progress-bar","ytp-swatch-background-color"]]]);this.A=a;this.G=this.ra["ytp-mini-progress-bar"];this.C=null;R(this,a,"presentingplayerstatechange",this.D);a.W();Z6(this)&&R(this,a,"fullscreentoggled",this.D);this.ga();this.D()}; var Z6=function(a){a=a.A.W();return a.experiments.na("player_mini_progress_bar")&&Mx(a)}; var $6=function(a,b,c){var d;d=b.qb(c);var e=a.W(),f=d.Bc(e,"default.jpg");Q.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.D?b.D.toString():null)},["div","ytp-video-menu-item-index",""+(c+1)],["div","ytp-video-menu-item-now-playing","\u25b6"],["div","ytp-video-menu-item-thumbnail",{style:f?"background-image: url("+f+");":null}],["div","ytp-video-menu-item-title",d.title],["div","ytp-video-menu-item-author",P("YTP_UPLOADED_BY_2", {AUTHOR:d.author})]]);this.A=a;this.C=c;this.P("click",this.D)}; var a7=function(a,b){this.C=a;v6.call(this,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}"},"{{title}}"],["button",["ytp-playlist-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.ra["ytp-playlist-menu-close"],d=yh();c.innerHTML=d;R(this,c,"click",this.rF); R(this,this.ra["ytp-playlist-menu-title-name"],"click",this.ZA);this.F=this.G=this.A=null;this.K=this.ra["ytp-playlist-menu-items"];this.D=[];this.H=b}; var b7=function(a,b){a.A!=b&&(a.A&&a.A.unsubscribe("shuffle",a.Pm,a),a.A=b,a.G=null,b?b.subscribe("shuffle",a.Pm,a):a.B&&a.H())}; var c7=function(a,b,c){var d=["button",["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":P("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];Q.call(this,d);this.ra["ytp-playlist-menu-button-icon"].innerHTML=Ah?'<div class="ytp-icon ytp-icon-playlist"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,11 L27,11 L27,14 L9,14 L9,11 Z M9,16 L27,16 L27,19 L9,19 L9,16 Z M9,21 L21,21 L21,24 L9,24 L9,21 Z M26,22.50 L22,25 L22,20 L26,22.50 Z" id="ytp-svg-35" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-35" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-35" /></svg>'; this.G=a;this.A=null;this.H=c;this.D=b.A;R(this,a,"videodatachange",this.F);R(this,a,"onPlaylistUpdate",this.F);R(this,a,"presentingplayerstatechange",this.C);this.ga();this.F();Kb(this,q6(this.D,this.element,3));this.P("click",this.H)}; var d7=function(a,b,c){Q.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitem","aria-label":"{{watch}}",href:"{{url}}"},["div","ytp-video-menu-item-thumbnail",{style:"{{background}}"}],["div","ytp-video-menu-item-title","{{title}}"],["div","ytp-video-menu-item-author","{{author}}"]]);this.C=a;this.A=b;this.D=c;Ax(this,b,a.W());this.P("click",this.F)}; var e7=function(a,b){this.A=a;v6.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{"aria-label":P("YTP_CLOSE")}],["div","ytp-related-menu-title",P("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]],250);var c=this.ra["ytp-related-menu-close"],d=yh();c.innerHTML=d;R(this,c,"click",this.CF);this.F=null;this.G=this.ra["ytp-related-menu-items"];this.C=[];this.D=b}; var f7=function(a,b,c,d){var e=["button",["ytp-button","ytp-related-menu-button"],{title:P("YTP_SUGGESTED_VIDEOS"),"aria-owns":"ytp-related-menu","aria-haspopup":!0}];Q.call(this,e);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-related"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M10,10 L17,10 L17,17 L10,17 L10,10 Z M19,10 L26,10 L26,17 L19,17 L19,10 Z M10,19 L17,19 L17,26 L10,26 L10,19 Z M19,19 L26,19 L26,26 L19,26 L19,19 Z" id="ytp-svg-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>'; this.A=a;this.F=c;this.D=d;R(this,a,"videodatachange",this.C);R(this,a,"presentingplayerstatechange",this.C);this.C();Kb(this,q6(b.A,this.element,3));this.P("click",this.F)}; var g7=function(a,b,c){var d=["div","ytp-share-panel",{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},["button",["ytp-share-panel-close","ytp-button"],{title:P("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},P("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:P("YTP_SHARE_LINK"),"aria-label":P("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist", ["input","ytp-share-panel-include-playlist-checkbox",{type:"checkbox",checked:!0}],P("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",P("YTP_SHARE_PANEL_ERROR")]]];v6.call(this,d,250);this.A=a;this.D=b.A;this.H=c;this.C=[];this.F=!1;this.M=this.ra["ytp-share-panel-inner-content"];this.S=this.ra["ytp-share-panel-loading-spinner"];b=Eh();this.S.innerHTML=b;this.G=this.ra["ytp-share-panel-close"]; b=yh();this.G.innerHTML=b;R(this,this.G,"click",this.H);Kb(this,q6(this.D,this.G));this.L=this.ra["ytp-share-panel-include-playlist-checkbox"];R(this,this.L,"click",this.Ls);this.K=this.ra["ytp-share-panel-link"];Kb(this,q6(this.D,this.K));this.P("click",this.kA);R(this,a,"videoplayerreset",this.ga);R(this,a,"fullscreentoggled",this.EF)}; var Cfa=function(a){switch(a){case "facebook":return Ah?'<div class="ytp-icon ytp-icon-share-facebook"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z" fill="#39579b" /></svg>'; case "googleplus":return Ah?'<div class="ytp-icon ytp-icon-share-googleplus"></div>':'<svg height="100%" version="1.0" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z" fill="#dc4537" /></svg>'; case "twitter":return Ah?'<div class="ytp-icon ytp-icon-share-twitter"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z" fill="#01abf0" /></svg>'; default:return null}}; var h7=function(a){for(var b=0;b<a.C.length;b++)Aq(a.C[b]),Lb(a.C[b]);a.C=[]}; var i7=function(a,b,c,d,e){c=["button",["ytp-button","ytp-share-button"],{title:P("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];Q.call(this,c);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-sharrow"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z" id="ytp-svg-40" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-40" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-40" /></svg>'; this.A=a;this.C=e;this.P("click",d);this.A.W().ie?this.ga():(R(this,a,"videodatachange",this.D),this.D());Kb(this,q6(b.A,this.element,3))}; var j7=function(a){Q.call(this,["div","ytp-webgl-spherical-control",{tabindex:0,"aria-label":P("YTP_SPHERICAL_CONTROL")}]);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-spherical-control"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 50 50" width="100%"><defs><circle cx="25" cy="25" id="ytp-svg-42" r="24" /><path d="M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z" id="ytp-svg-43" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-42" /><use fill="#fff" xlink:href="#ytp-svg-42" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-43" /><use fill="#999" xlink:href="#ytp-svg-43" /></svg>'; this.C=a;this.aa=this.da=this.F=this.G=null;this.A=[];this.D=0;this.Z=null;this.H=new Dz(this.GF,null,this);G(this,this.H);this.M=-1;this.O=this.J=this.U=this.L=this.Y=this.K=0;this.S=!1;R(this,a,"videodatachange",this.Rm);R(this,a,"onApiChange",this.Rm);this.ga();this.Rm()}; var k7=function(a,b,c,d){a.Y=ke(b+a.Y,-1,1);a.U=ke(c+a.U,-1,1);a.O=ke(d+a.O,-1,1);1!=a.D&&(a.D=1,I(a.element,"ytp-dragging"),a.M=H(),a.H.start())}; var l7=function(a){a.H.stop();a.D=0;a.Y=0;a.U=0;a.O=0;a.A=[];Zd(a.element,"ytp-dragging")}; var m7=function(a,b,c,d,e,f){var k=f-a.M;a.L=(a.K*a.L+(b-e.yaw))/(k+a.K);a.J=(a.K*a.J+(c-e.pitch))/(k+a.K);a.M=f;a.K=k;zH(a.C,{shader:"Spherical",yaw:b,pitch:c,fov:d})}; var n7=function(a,b){if(!(-1<a.A.indexOf(b)))switch(b){case 37:case 65:k7(a,1,0,0);a.A.push(b);break;case 39:case 68:k7(a,-1,0,0);a.A.push(b);break;case 38:case 87:k7(a,0,1,0);a.A.push(b);break;case 40:case 83:k7(a,0,-1,0);a.A.push(b);break;case 107:k7(a,0,0,-1);a.A.push(b);break;case 109:k7(a,0,0,1),a.A.push(b)}}; var o7=function(a,b){var c=a.A.indexOf(b);if(-1<c)switch(a.A.splice(c,1),b){case 37:case 65:k7(a,-1,0,0);break;case 39:case 68:k7(a,1,0,0);break;case 38:case 87:k7(a,0,-1,0);break;case 40:case 83:k7(a,0,1,0);break;case 107:k7(a,0,0,1);break;case 109:k7(a,0,0,-1)}0==a.A.length&&(l7(a),a.D=2,a.H.start())}; var p7=function(a){var b=["div","ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",P("YTP_PLAYBACK_STALLED_AT_START")]];Q.call(this,b);this.F=this.ra["ytp-spinner-svg"];b=Eh();this.F.innerHTML=b;this.D=this.ra["ytp-spinner-message"];this.C=a;this.A=new Ud(this.show,500,this);R(this,a,"presentingplayerstatechange",this.KF);R(this,a,"onFrescaStateChange",this.yz);R(this,a,"playbackstalledatstart",this.qA);q7(this,pz(a))}; var q7=function(a,b){var c;T(b,128)?c=0:!(c=T(b,16))&&(c=T(b,1))&&(c=qH(a.C.app.C,"fresca"),c=!(c&&c.loaded));c?a.A.start():a.ga()}; var r7=function(a,b){var c=["button",["ytp-airplay-button","ytp-button"],{title:P("YTP_AIRPLAY")}];Q.call(this,c);this.A=a;this.P("click",this.D);R(this,a,"airplayactivechange",this.C);R(this,a,"airplayavailabilitychange",this.C);this.C();Kb(this,q6(b.A,this.element,1))}; var s7=function(a,b){Gq.call(this,["div","ytp-storyboard",["div","ytp-storyboard-filmstrip",["div","ytp-storyboard-thumbnail"]],["div","ytp-storyboard-lens",["div","ytp-storyboard-lens-thumbnail"],["div","ytp-storyboard-lens-timestamp-wrapper",["span","ytp-storyboard-lens-timestamp"]]]]);this.C=a;this.ea=b.A;this.Z=new Am(this.gF,250,this);G(this,this.Z);this.H=LE(a).Ma().width;this.D=this.ra["ytp-storyboard-filmstrip"];this.fa=this.ra["ytp-storyboard-lens"];this.ka=this.ra["ytp-storyboard-lens-thumbnail"]; this.ha=this.ra["ytp-storyboard-lens-timestamp"];this.da=this.ra["ytp-storyboard-thumbnail"];qf(this.da);this.M=0;this.aa=!1;this.Y=this.A=0;this.U=this.K=this.G=window.NaN;this.J=this.F=null;this.L=new yv(this);this.S=new Pq(this,100);R(this,this.C,"resize",this.fF);R(this,this.C,"beginseeking",this.Ev)}; var t7=function(a,b){a.J&&a.J.unsubscribe("l",a.fj,a);var c=!!a.F;a.F=b&&Zw(b);a.J=b&&$w(b);a.aa=!!b&&b.Fa;a.F?(c||(S(a.L,a.C,"videodatachange",a.hF),S(a.L,a.C,"progresssync",a.Fj),S(a.L,a.C,"videoplayerreset",a.Fj),S(a.L,a.C,"endseeking",a.Sv)),a.J.subscribe("l",a.fj,a),a.U=window.NaN,a.G=window.NaN,a.K=window.NaN,a.Fj(),a.S.show(!1,s7.A)):(c&&Av(a.L),a.Z.stop(),Gu(a.M),a.S.ga(),a.S.stop())}; var u7=function(a,b){var c=a.da.cloneNode(!1),d=gu(a.J,b,a.A);X2(c,d,a.A,a.Y);return c}; var v7=function(a){Q.call(this,["div","ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.J=this.ra["ytp-storyboard-framepreview-img"];this.A=a;this.H=this.D=null;this.G=window.NaN;this.C=new yv(this);this.F=new Pq(this,100);R(this,a,"beginseeking",this.kF)}; var w7=function(a,b){var c=!!a.D;a.D=b&&Zw(b);a.H=b&&$w(b);a.D?(c||(S(a.C,a.A,"videodatachange",a.oF),S(a.C,a.A,"progresssync",a.mF),S(a.C,a.A,"resize",a.jF),S(a.C,a.A,"presentingplayerstatechange",a.nF),S(a.C,a.A,"endseeking",a.lF)),a.G=window.NaN,x7(a),a.F.show(!1,200)):(c&&Av(a.C),a.F.ga(),a.F.stop())}; var x7=function(a){var b=a.A.getCurrentTime(),c=LE(a.A).Ma(),d=hu(a.D,c.width),b=a.D.o[d].Dj(b);b!=a.G&&(a.G=b,ju(a.H,b,c.width),b=gu(a.H,b,c.width),X2(a.J,b,c.width,c.height))}; var y7=function(a,b){Q.call(this,["button",["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.C=a;this.F=b;this.A=null;this.D=q6(b.A,this.element,1);R(this,a,"fullscreentoggled",this.Cs);R(this,a,"presentingplayerstatechange",this.Ds);this.P("click",this.pF);var c;c=Jh("fullscreenerror");"msfullscreenerror"==c&&(c="MSFullscreenError");c&&R(this,window.document,c,this.Az);a.W().La||z7(this);this.Ds();this.Cs(a.Ja())}; var z7=function(a){if(!a.A){var b=P(void 0!=Hh(["requestFullscreen","requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.A=new v6(["div",["ytp-popup","ytp-fullscreen-message"],b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]],100,!0);G(a,a.A);a.A.o(a.C.Aa());a.element.setAttribute("aria-disabled",!0);a.D();a.D=null}}; var A7=function(a,b){var c=["button",["ytp-pip-button","ytp-button"],{title:P("YTP_PIP")}];Q.call(this,c);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-pip"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="m 25,17 h -8 v 6 h 8 v -6 z m 4,8 V 10.98 C 29,9.88 28.1,9 27,9 H 9 C 7.9,9 7,9.88 7,10.98 V 25 c 0,1.1 .9,2 2,2 h 18 c 1.1,0 2,-0.9 2,-2 z m -2,.02 H 9 V 10.97 h 18 v 14.05 z" id="ytp-svg-33" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-33" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-33" /></svg>'; this.A=a;this.P("click",this.C);Kb(this,q6(b.A,this.element,1))}; var B7=function(a,b){Q.call(this,["button",["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.A=a;this.D=null;this.F=b.A;this.C=null;R(this,a,"fullscreentoggled",this.G);R(this,a,"presentingplayerstatechange",this.H);R(this,a,"videodatachange",this.G);C7(this,pz(a));this.P("click",this.J,this)}; var Dfa=function(a){switch(a){case 1:return'<div class="ytp-icon ytp-icon-play"></div>';case 2:return'<div class="ytp-icon ytp-icon-pause"></div>';case 3:return'<div class="ytp-icon ytp-icon-replay"></div>';case 4:return'<div class="ytp-icon ytp-icon-stop"></div>'}}; var C7=function(a,b){var c,d=fx(a.A.getVideoData()),e=!1;ty(b)?c=d?4:2:T(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.D!=c){var f;switch(c){case 2:f=P("YTP_PAUSE");break;case 3:f=P("YTP_REPLAY");break;case 1:f=P("YTP_PLAY");break;case 4:f=P("YTP_STOP")}e=void 0;3==c?(a.C||(a.C=q6(a.F,a.element,1)),d="M26.466,21.04 L30.966,16 L27.8,16 C26.873,11.435 22.841,8 18.001,8 C12.474,8 8,12.477 8,18 C8,23.523 12.474,28 18.001,28 C21.181,28 24.009,26.511 25.841,24.197 L24.005,22.361 C22.652,24.217 20.471,25.427 18.001,25.427 C13.899,25.427 10.569,22.101 10.569,18 C10.569,13.898 13.899,10.572 18.001,10.572 C21.407,10.572 24.268,12.871 25.142,16 L21.966,16 L26.466,21.04", a.update({title:f,label:null})):(a.C&&(a.C(),a.C=null),a.update({title:null,label:f}),d=D7[c],e=D7[a.D]);s6(a.F);f=a.A.W().V?Dfa(c):Ox(ka(a),d,e);a.element.innerHTML=f;a.D=c}}; var E7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Ah?'<div class="ytp-icon ytp-icon-next"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M16.2,12.5 L16.2,16.49 L9,12.5 L9,23.5 L16.2,19.50 L16.2,23.5 L24.5,19.1 L24.5,23.5 L27,23.5 L27,12.5 L24.5,12.5 L24.5,17.45 L16.2,12.5 Z" id="ytp-svg-31" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-31" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-31" /></svg>'): (d="ytp-prev-button",e=Ah?'<div class="ytp-icon ytp-icon-prev"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M19.8,12.5 L19.8,16.49 L27,12.5 L27,23.5 L19.8,19.50 L19.8,23.5 L11.5,19.1 L11.5,23.5 L9,23.5 L9,12.5 L11.5,12.5 L11.5,17.45 L19.8,12.5 Z" id="ytp-svg-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>');Q.call(this,["a",[d,"ytp-button"], {title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"}]);this.element.innerHTML=e;this.A=a;this.S=b.A;this.F=c;this.C=this.H=null;this.M=!1;this.K=this.L=this.D=null;this.G=!1;R(this,a,"fullscreentoggled",this.J);R(this,a,"videodatachange",this.J);R(this,a,"onPlaylistUpdate",this.J);this.J()}; var F7=function(a){a.C&&a.C.unsubscribe("shuffle",a.J,a)}; var G7=function(a){return!!a.C&&!a.F&&3<=a.A.getCurrentTime()&&1==a.A.getPresentingPlayerType()}; var H7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.A.W(),d=sH(a.A),e=a.F&&Tx(c,a.H,a.C);if(a.G)b.title=P("YTP_REPLAY");else if(d){var f=null;a.C&&(f=a.C.qb(a.F?qx(a.C,!0):rx(a.C,!0)));if(f){if(f.videoId){var k=a.C.D;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?xx(f.lengthSeconds):null;b.preview=f.Bc(c,"default.jpg")}b.title=P(a.F?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.H.H&&a.H.H.length&&(f=zx(a.H.H[0]),b.url=f.Ak(c), b.text=f.title,b.duration=f instanceof zw?xx(f.lengthSeconds):null,b.preview=f.Bc(c,"default.jpg")),b.title=P("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.M=!!b.url;e||d||a.G?a.D||(a.D=q6(a.S,a.element,1),a.L=a.P("click",a.U,a)):a.D&&(a.D(),a.D=null,a.ya(a.L),a.L=null);s6(a.S)}; var I7=function(a,b){var c=["div","ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":P("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"], ["div","ytp-clip-end-exclude"],["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div",["ytp-scrubber-button","ytp-swatch-background-color"],["div","ytp-scrubber-pull-indicator"]]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:P("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:P("YTP_WATCH_ALL")}]];Gq.call(this,c);this.C=a;this.nb=b.A;this.ha=!1;this.F=this.ab= 0;this.aa=1;this.D=this.jb=this.J=0;this.La=!1;this.S=this.da=0;this.tb=this.ra["ytp-ad-progress-list"];this.ub=this.ra["ytp-marker-progress-list"];this.Ia=this.ra["ytp-marker-crenellation-list"];this.Z={};this.ka={};this.U=window.Infinity;c=b.A;this.L=this.ra["ytp-clip-end"];var d=Ch();this.L.innerHTML=d;Kb(this,q6(c,this.L,1));this.ma=new O2(this.L,!0);G(this,this.ma);this.ma.subscribe("hoverstart",this.Gs,this);this.ma.subscribe("hoverend",this.Fs,this);R(this,this.L,"click",this.Gj);this.Ga=this.ra["ytp-clip-end-exclude"]; this.Cb=this.ra["ytp-clip-start-exclude"];this.Y=0;this.M=this.ra["ytp-clip-start"];d=Dh();this.M.innerHTML=d;Kb(this,q6(c,this.M,1));this.sa=new O2(this.M,!0);G(this,this.sa);this.sa.subscribe("hoverstart",this.Gs,this);this.sa.subscribe("hoverend",this.Fs,this);R(this,this.M,"click",this.Gj);this.$a=this.ra["ytp-load-progress"];this.fa=0;this.Nb=this.ra["ytp-play-progress"];this.ea=this.ra["ytp-hover-progress"];this.H=0;this.bb=this.ra["ytp-progress-bar"];this.G=null;this.Ca=this.ra["ytp-scrubber-button"]; this.za=new oe;this.Qa=new W2;this.A=new S2(0,0);this.K=this.Ea=!1;this.Ua=null;R(this,a,"presentingplayerstatechange",this.tF);R(this,a,"videodatachange",this.Es);R(this,a,"videoplayerreset",this.ww);R(this,a,"cuerangesadded",this.Js);R(this,a,"cuerangesremoved",this.BF);R(this,a,"cuerangemarkersupdated",this.Js);R(this,a,"onPlaybackQualityChange",this.uF);J7(this,a.getVideoData(),!0)}; var K7=function(a){if(a.F){var b=a.C.Te(),c=new S2(b.seekableStart,b.seekableEnd),d=V2(c,b.loaded,0),b=V2(c,b.current,0),e=a.A.A!=c.A||a.A.o!=c.o;a.A=c;L7(a,b,d);e&&M7(a);N7(a)}}; var J7=function(a,b,c){var d=!!b&&bx(b);a.Ea=d&&b.Fd;O7(a,FH(a.C));c&&(d?(c=b.clipEnd,a.Y=b.clipStart,a.U=c,P7(a),L7(a,a.H,a.fa)):a.Gj());K7(a)}; var Q7=function(a){return!!a&&bx(a)&&!!a.A&&a.A.video.o}; var R7=function(a,b){a.La=b;J(a.$a,"ytp-fast-load",b)}; var S7=function(a,b,c,d){b=ke(b,0,a.K?60:40);a.J=b;var e=a.aa;a.aa=b/(a.K?60:40)*(Math.max(T2(a.A)/a.F,1)-1)+1;b=a.F*a.aa;a.S=ke(d*b-c,0,b-a.F);e!=a.aa&&M7(a)}; var M7=function(a){var b=T7(a),c=-b.B/b.o,d=(-b.B+b.width)/b.o,e=sf(a.Ia),f=0;if(a.J>.2*(a.K?60:40))for(var k=T2(a.A)/60*d,l=Math.ceil(T2(a.A)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Ia.appendChild(m));f++;m.className=0==l%60?"ytp-60m-progress":0==l%30?"ytp-30m-progress":0==l%15?"ytp-15m-progress":"ytp-1m-progress";m.style.left=(60*l/T2(a.A)-c)*b.o+"px"}b=a.Ea?a.A.o:0;a.update({boundTimeLeft:xx(U2(a.A,c)-b),boundTimeRight:xx(U2(a.A,d)-b)});for(c=e.length-1;c>=f;c--)qf(e[c]); a.element.style.height=a.J+(a.K?8:5)+"px";a.R("height-change",a.J);a.Ca.style.height=a.J+(a.K?20:13)+"px";for(var p in a.Z)U7(a,a.Z[p],a.ka[p]);P7(a);L7(a,a.H,a.fa)}; var T7=function(a){var b=a.za.x,c=a.F*a.aa,b=ke(b,0,a.F);a.Qa.update(b,a.F,-a.S,-(c-a.S-a.F));return a.Qa}; var L7=function(a,b,c){a.H=b;a.fa=c;var d=T7(a),e=a.A.o,f=U2(a.A,a.H);a.update({ariamin:Math.floor(a.A.A),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:P("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:xx(f),DURATION:xx(e)})});var e=V2(a.A,a.Y,0),k=V2(a.A,a.U,1),f=ke(b,e,k);c=a.La?1:ke(c,e,k);k=b*d.o+d.B;a.Ca.style.display=0<=k&&b<=d.width?"":"none";a.Ca.style.left=k+"px";V7(a,a.Nb,d,e,f);V7(a,a.$a,d,e,c)}; var V7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.o+c.B,0)+"px";d=Math.min((e-d)*c.o+c.B,c.width);f||a.C.getVideoData().L?(b.style.width=d+"px",Mf(b,"transform","")):(Mf(b,"transform","scalex("+(c.width?d/c.width:0)+")"),b.style.width="")}; var P7=function(a){var b=a.Y>a.A.A,c=0<a.A.o&&a.U<a.A.o;J(a.element,"ytp-clip-start-enabled",b);J(a.element,"ytp-clip-end-enabled",c);b=b?V2(a.A,a.Y,0):0;c=c?V2(a.A,a.U,1):1;a.M.style.left=Math.round(1E3*b)/10+"%";a.L.style.left=Math.round(1E3*c)/10+"%";a.Cb.style.width=Math.round(1E3*b)/10+"%";a.Ga.style.left=Math.round(1E3*c)/10+"%";a.Ga.style.width=Math.round(1E3*(1-c))/10+"%"}; var N7=function(a){var b=T7(a);V7(a,a.ea,b,a.H,b.A);J(a.ea,"ytp-hover-progress-light",b.A>a.H)}; var U7=function(a,b,c){var d=T7(a),e=V2(a.A,b.start/1E3,0),f;a:{switch(b.style){case "ytp-chapter-marker":f=8;break a;case "ytp-ad-progress":f=6;break a;case "ytp-time-marker":f=Number.POSITIVE_INFINITY;break a}f=void 0}var k=f/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=V2(a.A,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=ke(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}V7(a,c,d,e,f,!0);c.className=b.style}; var W7=function(a,b){var c=b.getId();a.Z[c]==b&&(qf(a.ka[c]),delete a.Z[c],delete a.ka[c])}; var O7=function(a,b){b?a.G||(a.element.removeAttribute("aria-disabled"),a.G=new O2(a.bb,!0),a.G.subscribe("hovermove",a.yF,a),a.G.subscribe("hoverend",a.xF,a),a.G.subscribe("dragstart",a.wF,a),a.G.subscribe("dragmove",a.AF,a),a.G.subscribe("dragend",a.zF,a),a.Ua=a.P("keydown",a.vF)):a.G&&(a.element.setAttribute("aria-disabled",!0),a.ya(a.Ua),a.G.cancel(),a.G.dispose(),a.G=null)}; var X7=function(a){Q.call(this,["div","ytp-remote",["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text","{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]]]);this.A=new Pq(this,250);G(this,this.A);this.C=a;var b=this.ra["ytp-remote-display-status-icon"],c=zh();b.innerHTML=c;R(this,a,"presentingplayerstatechange",this.D);Y7(this,pz(a))}; var Y7=function(a,b){if(3==a.C.getPresentingPlayerType()){var c;c=T(b,128)?P("YTP_MDX_PLAYER_ERROR"):P("YTP_MDX_STATUS_CONNECTED");var d=a.C.wb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.A.show()}else a.A.ga()}; var Z7=function(a,b,c){var d=["button",["ytp-remote-button","ytp-button"],{title:P("YTP_MDX_TOOLTIP")}];Q.call(this,d);this.ca=a;this.F=c;this.C=null;R(this,a,"onMdxReceiversChange",this.A);R(this,a,"presentingplayerstatechange",this.A);this.A();this.P("click",this.D,this);Kb(this,q6(b.A,this.element,1))}; var $7=function(a,b){this.A=!1;var c=H6({role:"menuitemcheckbox","aria-checked":this.A});G6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.P("click",this.L)}; var a8=function(a,b){a.A=b;a.element.setAttribute("aria-checked",a.A)}; var b8=function(a,b){$7.call(this,P("YTP_ANNOTATIONS"),6);this.G=b;this.ca=a;this.C=!1;R(this,a,"videodatachange",this.F);R(this,a,"onApiChange",this.F);this.subscribe("select",this.H,this);this.F()}; var c8=function(a,b,c,d,e){var f=H6({"aria-haspopup":!0});G6.call(this,f,b,a);this.A=d;this.K=null;this.C={};this.H=new E6;G(this,this.H);this.S=new I6(c,this.H,a,e);G(this,this.S);this.P("keydown",this.DF);this.P("click",this.open)}; var d8=function(a,b){a.H.removeAll();for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.C[f],l=f==a.K;l&&(d=!0);if(k&&k.priority==-e){var l=a,m=f,p=l.C[m];p.D(l.zc(m,!0));p.R("size-change");delete a.C[f]}else k=new G6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.zc(f,!0)),k.P("click",A(a.hA,a,f));c[f]=k;F6(a.H,k,!0)}d||(a.K=null);for(f in a.C)a.C[f].dispose();a.C=c}; var e8=function(a,b){c8.call(this,P("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.ca=a;this.L=new Q(["div","",["span","",P("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);this.D(this.L);this.M={};this.F=!1;R(this,a,"videodatachange",this.J);R(this,a,"onPlaybackAudioChange",this.J);this.J()}; var f8=function(a,b){$7.call(this,P("YTP_AUTOPLAY"),7);this.J=b;this.ca=a;this.G=!1;this.C=[];R(this,a,"presentingplayerstatechange",this.F);this.subscribe("select",this.K,this);this.F()}; var g8=function(a,b){c8.call(this,P("YTP_QUALITY_TITLE"),1,a,b);I(this.H.element,"ytp-quality-menu");this.ca=a;this.M={};this.L="unknown";this.F=!1;R(this,a,"videodatachange",this.G);R(this,a,"videoplayerreset",this.G);R(this,a,"onPlaybackQualityChange",this.J);this.G()}; var h8=function(a,b,c){var d=(a=a.M[b])?a.qualityLabel:(d=qr[b])?d+"p":P("YTP_AUTO");c=["span",c,d];var e;a&&a.o?c.push(["div","ytp-menuitem-badge-container",{child:new K5('<svg fill="#00838f" height="11px" viewBox="0 0 48 48" width="11px"><path d="M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z" /><path d="M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z" style="fill:#ffffff" /></svg>')}]): "highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.push(" "),c.push(["sup","ytp-swatch-color",e]));return c}; var i8=function(a,b){c8.call(this,P("YTP_MDX_TITLE"),0,a,b);this.ca=a;this.F=!1;this.L={};R(this,a,"onMdxReceiversChange",this.J);R(this,a,"presentingplayerstatechange",this.J);this.J()}; var j8=function(a,b){c8.call(this,P("YTP_SPEED_TITLE"),5,a,b);this.ca=a;this.F=!1;this.G=null;R(this,a,"presentingplayerstatechange",this.Ms);this.Ms()}; var k8=function(a,b,c,d){c8.call(this,l8(d),a,b,c);I(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();this.F=Hb(d.options,this.G,this);d8(this,O(d.options,this.G))}; var l8=function(a){return(a.message?P(a.message):a.text)||""}; var m8=function(a,b){this.H={};this.A=new E6;for(var c=0;c<V6.length;c++){var d=V6[c],e=new k8(-c,a,b,d);G(this,e);e.subscribe("settingChange",this.J,this);this.H[d.option.toString()]=e;F6(this.A,e,!0)}c=new G6(H6(),-V6.length,P("YTP_RESET"));G(this,c);c.P("click",A(this.J,this,"reset",!0));F6(this.A,c,!0);I6.call(this,a,this.A,P("YTP_OPTIONS"))}; var n8=function(a,b){for(var c in b){var d=a.H[c];if(d){var e=b[c].toString();d.C[e]&&d.Mc(e)}}}; var o8=function(a,b){c8.call(this,P("YTP_AUTO_TRANSLATE"),0,a,b);this.F={}}; var p8=function(a,b){c8.call(this,P("YTP_SUBTITLES"),4,a,b,A(this.kC,this));this.ca=a;this.M=!1;this.F={};this.L=new Q(["div","",["span","",P("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);G(this,this.L);this.D(this.L);this.J=new o8(a,b);G(this,this.J);this.J.subscribe("select",this.dB,this);this.G=new m8(a,b);G(this,this.G);this.G.subscribe("settingChange",this.QF,this);R(this,a,"videodatachange",this.rh);R(this,a,"onApiChange",this.rh);R(this,a,"onCaptionsTrackListChanged", this.rh);R(this,a,"captionschanged",this.rh);this.rh()}; var q8=function(a){a.fontFamily=r8.indexOf(a.fontFamilyOption);a.charEdgeStyle=s8.indexOf(a.charEdgeStyle)}; var t8=function(a,b){c8.call(this,P("YTP_THREED_SHORT"),8,a,b);this.ca=a;this.F=!1;R(this,a,"videodatachange",this.J);this.G=null;this.J()}; var u8=function(a){this.G=a;this.A=new E6("ytp-main-menu-id");G(this,this.A);a=new I6(a,this.A);G(this,a);y6.call(this,a,"ytp-settings-menu");this.L=this.K=null;this.M=!1}; var v8=function(a){if(!a.M){a.M=!0;var b=new g8(a.G,a);G(a,b);b=new p8(a.G,a);G(a,b);b=new b8(a.G,a);G(a,b);b=new j8(a.G,a);G(a,b);b=new t8(a.G,a);G(a,b);b=new f8(a.G,a);G(a,b);b=new e8(a.G,a);G(a,b);a.L=new i8(a.G,a);G(a,a.L);0>=a.A.A.length&&a.K.ga()}}; var w8=function(a,b){F6(a.A,b);a.K&&a.K.show()}; var x8=function(a,b){a.B&&1>=a.A.A.length&&a.ga();a.A.remove(b);0>=a.A.A.length&&a.K&&a.K.ga()}; var y8=function(a,b,c){var d=["button",["ytp-button","ytp-settings-button"],{"aria-haspopup":!0,"aria-expanded":"{{pressed}}","aria-owns":"ytp-main-menu-id",title:P("YTP_SETTINGS")}];Q.call(this,d);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-settings"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M27,19.35 L27,16.65 L24.61,16.65 C24.44,15.79 24.10,14.99 23.63,14.28 L25.31,12.60 L23.40,10.69 L21.72,12.37 C21.01,11.90 20.21,11.56 19.35,11.38 L19.35,9 L16.65,9 L16.65,11.38 C15.78,11.56 14.98,11.90 14.27,12.37 L12.59,10.69 L10.68,12.60 L12.36,14.28 C11.89,14.99 11.55,15.79 11.38,16.65 L9,16.65 L9,19.35 L11.38,19.35 C11.56,20.21 11.90,21.01 12.37,21.72 L10.68,23.41 L12.59,25.32 L14.28,23.63 C14.99,24.1 15.79,24.44 16.65,24.61 L16.65,27 L19.35,27 L19.35,24.61 C20.21,24.44 21.00,24.1 21.71,23.63 L23.40,25.32 L25.31,23.41 L23.62,21.72 C24.09,21.01 24.43,20.21 24.61,19.35 L27,19.35 Z M18,22.05 C15.76,22.05 13.95,20.23 13.95,18 C13.95,15.76 15.76,13.95 18,13.95 C20.23,13.95 22.05,15.76 22.05,18 C22.05,20.23 20.23,22.05 18,22.05 L18,22.05 Z" id="ytp-svg-39" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-39" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-39" /></svg>'; this.C=c;this.C.subscribe("show",this.D,this);this.ca=a;this.P("click",this.F);R(this,this.ca,"onPlaybackQualityChange",this.A);R(this,a,"videodatachange",this.A);R(this,a,"webglsettingschanged",this.A);Kb(this,q6(b.A,this.element,1));this.A();this.D(!1)}; var z8=function(a,b){Q.call(this,["button",["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.A=a;this.F=b.A;this.D=null;R(this,a,"sizestylechange",this.C);R(this,a,"fullscreentoggled",this.C);R(this,a,"presentingplayerstatechange",this.C);this.C();this.P("click",this.G);Kb(this,q6(this.F,this.element,1))}; var A8=function(a,b){var c=P("YTP_SUBTITLES");"Subtitles/CC"==c&&(c="Subtitles/closed captions");Q.call(this,["button",["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:c}]);this.A=a;c=this.A.W().Y;this.element.innerHTML=-1!=B8.indexOf(c)?Ah?'<div class="ytp-icon ytp-icon-closed-captioning"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M9,24 L27,24 L27,12 L9,12 L9,24 Z M17.05,19.50 C16.91,19.79 16.72,20.04 16.49,20.24 C16.26,20.44 15.99,20.60 15.69,20.70 C15.38,20.81 15.04,20.86 14.67,20.86 C14.21,20.86 13.79,20.79 13.43,20.64 C13.06,20.48 12.75,20.27 12.5,20.01 C12.24,19.74 12.05,19.42 11.91,19.06 C11.78,18.70 11.71,18.31 11.71,17.89 C11.71,17.47 11.78,17.07 11.91,16.70 C12.05,16.34 12.24,16.02 12.5,15.74 C12.75,15.47 13.06,15.26 13.43,15.10 C13.79,14.95 14.21,14.87 14.67,14.87 C15.00,14.87 15.31,14.91 15.61,15.01 C15.90,15.10 16.16,15.23 16.40,15.40 C16.63,15.58 16.82,15.79 16.97,16.05 C17.13,16.31 17.22,16.60 17.26,16.93 L15.98,16.93 C15.96,16.79 15.91,16.66 15.83,16.54 C15.75,16.41 15.65,16.31 15.53,16.22 C15.42,16.13 15.28,16.06 15.14,16.01 C14.98,15.95 14.83,15.93 14.67,15.93 C14.37,15.93 14.12,15.98 13.91,16.09 C13.70,16.20 13.53,16.35 13.40,16.54 C13.27,16.72 13.18,16.93 13.12,17.17 C13.06,17.40 13.03,17.64 13.03,17.89 C13.03,18.14 13.06,18.37 13.12,18.60 C13.18,18.82 13.27,19.03 13.40,19.21 C13.53,19.39 13.70,19.54 13.91,19.65 C14.12,19.76 14.37,19.81 14.67,19.81 C15.07,19.81 15.39,19.70 15.61,19.46 C15.84,19.22 15.98,18.91 16.03,18.53 L17.31,18.53 C17.28,18.89 17.19,19.21 17.05,19.50 L17.05,19.50 Z M24.04,19.51 C23.90,19.80 23.72,20.04 23.49,20.24 C23.26,20.45 22.99,20.60 22.68,20.71 C22.37,20.82 22.03,20.87 21.66,20.87 C21.20,20.87 20.79,20.80 20.42,20.64 C20.05,20.49 19.74,20.28 19.49,20.01 C19.24,19.75 19.04,19.43 18.91,19.07 C18.77,18.71 18.70,18.32 18.70,17.90 C18.70,17.47 18.77,17.08 18.91,16.71 C19.04,16.34 19.24,16.02 19.49,15.75 C19.74,15.48 20.05,15.26 20.42,15.11 C20.79,14.95 21.20,14.88 21.66,14.88 C21.99,14.88 22.30,14.92 22.60,15.01 C22.89,15.10 23.16,15.24 23.39,15.41 C23.62,15.58 23.82,15.80 23.97,16.06 C24.12,16.31 24.21,16.61 24.25,16.94 L22.97,16.94 C22.95,16.79 22.90,16.66 22.82,16.54 C22.74,16.42 22.65,16.32 22.53,16.22 C22.41,16.13 22.27,16.06 22.13,16.01 C21.98,15.96 21.82,15.94 21.66,15.94 C21.36,15.94 21.11,15.99 20.90,16.10 C20.7,16.21 20.53,16.36 20.40,16.54 C20.27,16.73 20.17,16.94 20.11,17.17 C20.06,17.41 20.03,17.65 20.03,17.90 C20.03,18.14 20.06,18.38 20.11,18.60 C20.17,18.83 20.27,19.04 20.40,19.22 C20.53,19.40 20.7,19.55 20.90,19.66 C21.11,19.76 21.36,19.82 21.66,19.82 C22.06,19.82 22.38,19.70 22.61,19.47 C22.84,19.23 22.97,18.92 23.02,18.54 L24.30,18.54 C24.27,18.89 24.18,19.22 24.04,19.51 L24.04,19.51 Z" id="ytp-svg-8" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-8" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-8" /></svg>': Ah?'<div class="ytp-icon ytp-icon-subtitles"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M25,19 L25,18 L11,18 L11,19 L25,19 Z M24,21 L24,22 L12,22 L12,21 L24,21 Z M27,12 L27,24 L9,24 L9,12 L27,12 Z" fill-rule="evenodd" id="ytp-svg-45" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-45" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-45" /></svg>';R(this,a,"videodatachange",this.C);R(this,a,"onApiChange", this.C);R(this,a,"onCaptionsTrackListChanged",this.C);R(this,a,"captionschanged",this.C);this.C();this.P("click",this.D);Kb(this,q6(b.A,this.element,1))}; var C8=function(a,b){Q.call(this,["div",["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.F=new Q(["button",["ytp-live-badge","ytp-button"],{disabled:!0},P("YTP_LIVE")]);G(this,this.F);this.F.o(this.element);this.C=a;this.K=b.A;this.A=null;this.G=this.D=!1;this.J=this.H=null;this.P("click",this.RF);R(this,a,"presentingplayerstatechange",this.sh);R(this,a,"liveviewshift",this.SF);R(this, a,"videodatachange",this.TF);var c=a.getVideoData();c&&(this.D=c.Fa,J(this.element,"ytp-live",this.D));this.sh()}; var D8=function(a,b){Q.call(this,["div","ytp-volume-control",["div","ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},["div","ytp-volume-slider",["div","ytp-volume-slider-track"],["div","ytp-volume-slider-handle"]]]]);this.A=a;this.za=b.A;this.Z=!1;this.ka=this.C=0;this.F=new Q(["button",["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);G(this,this.F);this.F.o(this.element,0);this.F.P("click", this.$z,this);this.fa=this.ra["ytp-volume-slider"];this.ha=this.ra["ytp-volume-slider-handle"];this.ma=this.ra["ytp-volume-slider-track"];this.L=this.O=window.NaN;this.da=-1;this.A.W();this.aa=new Dz(this.Qs,null,this);G(this,this.aa);this.Y=new O2(this.fa,!0);G(this,this.Y);this.Y.subscribe("dragstart",this.UA,this);this.Y.subscribe("dragmove",this.TA,this);this.Y.subscribe("dragend",this.SA,this);R(this,a,"onVolumeChange",this.XF);R(this,this.ra["ytp-volume-panel"],"keydown",this.VA);R(this,this.element, "mousewheel",this.VF);R(this,a,"videodatachange",this.WF);this.G=!1;this.K=this.J=this.D=this.H=this.M=null;this.U=this.ea=!1;this.S=new Ud(this.Xu,125,this);G(this,this.S);this.Z=!1;E8(this,this.A.Db(),this.A.sc());Kb(this,q6(b.A,this.F.element,1))}; var F8=function(a,b){var c=(b-a.da)/250;return 1<=c?a.L:a.O+(a.L-a.O)*c}; var G8=function(a,b,c){for(var d="",e=!0,f=0;f<a.length;f++){var k=a[f];z(k)?d+=k:e?(d+=k+(b[f]-k)*c,e=!1):(d+=","+(k+(b[f]-k)*c)+" ",e=!0)}return d}; var E8=function(a,b,c){var d=Math.round(b),e=d+"% "+P("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+P("YTP_SCREENREADER_VOLUME_MUTED"):""),f=c?0:b/100;if(a.A.W().V){var k;k=0==f?'<div class="ytp-icon ytp-icon-volume-muted"></div>':0<f&&.5>f?'<div class="ytp-icon ytp-icon-volume-low"></div>':'<div class="ytp-icon ytp-icon-volume-high"></div>';k!=a.sa&&(a.F.element.innerHTML=k,a.sa=k)}else if(k=f?.5*Math.ceil(f/.5):-.5,a.L!=k){var l=H();(0,window.isNaN)(a.O)?(a.O=a.L=k,a.da=l,a.Qs(l)):(a.O=F8(a,l),a.L= k,a.da=l,a.aa.start())}Bq(a,"valuenow",d);Bq(a,"valuetext",e);Bq(a.F,"title",c?P("YTP_UNMUTE"):P("YTP_MUTE"));s6(a.za);c=(a.Z?72:48)*f;a.ha.style.left=c+"px";a.ma.style.width=c+"px";a.C=b;a.G&&H8(a)}; var I8=function(a,b,c){b={src:"//www.gstatic.com/youtube/media/beyond/"+b,preload:"auto"};c&&(b.loop="loop");c=new wq(["audio",b]);G(a,c);c.o(a.element);return c.element}; var H8=function(a){var b=a.A.sc()?0:a.C/100;a.M.volume=b;a.H.volume=b;a.D.volume=b;a.J.volume=b;a.K.volume=b}; var J8=function(a,b){a.ea||(b&&!a.U?a.S.start():!b&&a.U&&(a.S.isActive()?a.S.stop():(a.D.pause(),a.H.play())));a.U=b}; var K8=function(a,b){var c=a.W();Q.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:P("YTP_URL_NAVIGATE_TO",{WEBSITE:PG(c)}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.o?(this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-logo-gaming"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 98 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-26" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-27" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-28" /><g id="ytp-svg-29"><path d="M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34" /><path d="M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z" /><path d="M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z" /><path d="M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z" /><path d="M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z" /><path d="M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34" /></g></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-26" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-27" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-29" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-29" /></svg>', I(this.element,"ytp-youtube-gaming-button")):this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-logo"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 51 36" width="100%"><defs><path d="M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z" id="ytp-svg-23" /><path d="M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z" id="ytp-svg-24" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-25" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-24" /></svg>'; this.A=a;this.P("click",this.D);R(this,a,"videodatachange",this.C);this.C();Kb(this,q6(b.A,this.element,1))}; var L8=function(a,b,c){yv.call(this);var d=a.W();this.ca=a;this.C=b;this.S=window.NaN;this.M=null;this.J=c;this.J.subscribe("autohideupdate",this.LF,this);c=!By(pz(a));var e=new Q(["div","ytp-gradient-bottom"]);G(this,e);Uq(a,e.element,8);this.H=new Pq(e,250,c,100);G(this,this.H);this.B=new Q(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);G(this,this.B);Uq(a,this.B.element,8);this.G=new Pq(this.B,250,c,100);G(this,this.G);var f=this.B.element.children[0];this.o=new u8(a);G(this,this.o); Uq(a,this.o.element,6);this.o.subscribe("show",this.yC,this);this.o.subscribe("show",b.hC,b);this.D=new I7(a,b);G(this,this.D);this.D.o(this.B.element,0);c=new s7(a,b);G(this,c);Uq(a,c.element,4);this.D.subscribe("height-change",c.iF,c);c=new v7(a);G(this,c);Uq(a,c.element,4);c=new wq(["div","ytp-left-controls"]);G(this,c);c.o(f);e=new E7(a,b,!1);G(this,e);e.o(c.element);e=new B7(a,b);G(this,e);e.o(c.element);e=new E7(a,b,!0);G(this,e);e.o(c.element);this.A=new D8(a,b);G(this,this.A);this.A.o(c.element); this.A.yb(d.nb);this.L=new C8(a,b);G(this,this.L);this.L.o(c.element);e=new wq(["div","ytp-right-controls"]);G(this,e);e.o(f);f=new A8(a,b);G(this,f);f.o(e.element);f=new y8(a,b,this.o);G(this,f);this.o.K=f;f.o(e.element);!d.Ab&&d.uc&&(f=new K8(a,b),G(this,f),f.o(e.element));f=new z8(a,b);G(this,f);f.o(e.element);f=new X7(a);G(this,f);Uq(a,f.element,4);f=new Z7(a,b,this.o);G(this,f);f.o(e.element);d.Nc&&(f=new r7(a,b),G(this,f),f.o(e.element));ut().webkitSetPresentationMode&&(f=new A7(a,b),G(this, f),f.o(e.element));this.F=new y7(a,b);G(this,this.F);this.F.o(e.element);this.O=new Dz(pa(this.Hj,!1),void 0,this);d.nb&&(b=new O2(this.A.element),G(this,b),b.subscribe("hoverstart",this.PF,this),b=new O2(c.element),G(this,b),b.subscribe("hoverend",this.OF,this));S(this,a,"resize",this.Sm);S(this,a,"fullscreentoggled",this.MF);S(this,a,"progresssync",pa(this.Hj,!0));S(this,a,"presentingplayerstatechange",this.NF);this.Sm()}; var M8=function(a){var b=a.ca.W(),c;if(c=!!a.J.A&&!b.isMobile&&pz(a.ca).Wa()){if(c=b.experiments.na("smooth_progress_bar"))a=a.D,a.C.W(),c=.25>T2(a.A)/a.F/(10*(window.devicePixelRatio||1));c=c||b.experiments.na("always_request_animation_frame")}return c}; var N8=function(a,b){By(pz(a.ca))||b?b&&(a.G.ga(),a.H.ga(),a.C.A.og(1)):b||(a.G.show(),a.H.show(),a.Hj(!0))}; var O8=function(a){Q.call(this,["div","ytp-title",["a","ytp-title-channel-logo",{href:"{{channelImageLink}}",target:"_blank"}],["div","ytp-title-text",["a",["ytp-title-link","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},"{{title}}"],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank"},"{{channelName}}"]]]);this.A=a;this.C=null;this.H=this.ra["ytp-title-link"];this.G=this.ra["ytp-title-channel-logo"];this.F=null;R(this,a,"videodatachange", this.D);R(this,a,"videoplayerreset",this.D);this.D()}; var P8=function(a){var b=a.A.getVideoData(),c=b.videoId&&2==a.A.getPresentingPlayerType();c&&b.videoId==a.F?I(a.element,"ytp-title-extra-info"):(Zd(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Ph&&b.profilePicture?Q8(a,b.videoId,b.author,b.Ph,b.profilePicture):(c=NG(a.A.W(),b.videoId,!1),Bj(c,{method:"GET",kb:A(a.J,a,b.videoId),withCredentials:!0}))))}; var Q8=function(a,b,c,d,e){d=a.A.W().protocol+"://"+OG(a.A.W())+d;a.G.style.backgroundImage="url("+e+")";Bq(a,"channelImageLink",d);Bq(a,"channelNameLink",d);Bq(a,"channelName",P("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.F=b;P8(a)}; var R8=function(a,b,c){Q.call(this,["button",["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.D=a;this.H=b.A;this.G=c;I(c,"ytp-watch-later-button-visible");this.F=null;this.A=this.C=!1;this.P("click",this.YF,this);R(this,a,"videoplayerreset",this.$F);R(this,a,"WATCH_LATER_VIDEO_ADDED",this.hy);R(this,a,"WATCH_LATER_VIDEO_REMOVED",this.CA);R(this,a,"WATCH_LATER_ERROR",this.ZF);S8(this,2);T8(this);Kb(this,q6(b.A,this.element,3))}; var T8=function(a,b){if(b)a.update({title:b,image:null});else{var c=a.D.W();c.userDisplayName?a.update({title:P("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:P("YTP_WATCH_LATER"),image:null})}s6(a.H)}; var S8=function(a,b){if(b!=a.F){var c=a.element;switch(b){case 3:var d=Eh();c.innerHTML=d;break;case 1:c.innerHTML=Ah?'<div class="ytp-icon ytp-icon-watch-later-added"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z" id="ytp-svg-52" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-52" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-52" /></svg>'; break;case 2:c.innerHTML=Ah?'<div class="ytp-icon ytp-icon-watch-later"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z" id="ytp-svg-51" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-51" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-51" /></svg>'; break;case 4:c.innerHTML=Ah?'<div class="ytp-icon ytp-icon-alert"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z" id="ytp-svg-2" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-2" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-2" /></svg>'}a.F= b}}; var U8=function(a){var b=a.W();Q.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":P("YTP_URL_NAVIGATE_TO",{WEBSITE:PG(b)}),"data-sessionlink":"feature=player-watermark"}]);this.element.innerHTML=Ah?'<div class="ytp-icon ytp-icon-watermark"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 77 34" width="100%"><defs><path d="m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z" id="ytp-svg-23" /><path d="M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z" id="ytp-svg-24" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-25" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-23" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-23" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-24" /></svg>'; this.C=a;this.A=null;R(this,a,"videodatachange",this.D);this.D()}; var V8=function(a){yv.call(this);SH();var b=a.W(),c=LE(a);this.o=a;Efa(this);var d=pz(a);this.La=!1;this.Ga=!0;this.Ea=!1;this.aa=this.J=null;var e=new Q6(a);G(this,e);Uq(a,e.element,4);var f=new p7(a);G(this,f);Uq(a,f.element,4);this.M=new j6(a);G(this,this.M);Uq(a,this.M.element,4);var k=new Q(["div","ytp-gradient-top"]);G(this,k);Uq(a,k.element,1);this.sa=new Pq(k,250,!0,100);G(this,this.sa);this.D=new Q(["div","ytp-chrome-top"]);G(this,this.D);Uq(a,this.D.element,1);this.ma=new Pq(this.D,250, !0,100);G(this,this.ma);this.S=new W6(a);G(this,this.S);this.S.o(e.element);this.B=new $5(c,A(this.SE,this),b.useTabletControls);G(this,this.B);this.B.subscribe("autohideupdate",this.TE,this);this.A=new m6(a,b.useTabletControls||b.isMobile);G(this,this.A);Uq(a,this.A.element,4);this.G=new u6(a,this,A(this.Rq,this));G(this,this.G);Uq(a,this.G.element,2);this.O=new vB(a,this.G);G(this,this.O);Uq(a,this.O.element,5);this.L=!1;k=A(this.Sq,this);this.U=new a7(a,k);G(this,this.U);Uq(a,this.U.element,5); this.ka=new c7(a,this,k);G(this,this.ka);this.ka.o(this.D.element);k=new O8(a);G(this,k);k.o(this.D.element);k=new wq(["div","ytp-chrome-top-buttons"]);G(this,k);k.o(this.D.element);var l=A(this.Tq,this);this.Y=new e7(a,l);G(this,this.Y);Uq(a,this.Y.element,5);this.ia=new f7(a,this,l,this.D.element);G(this,this.ia);this.ia.o(k.element);b.lg&&(l=new R8(a,this,this.D.element),G(this,l),l.o(k.element));l=A(this.zs,this);this.Z=new g7(a,this,l);G(this,this.Z);Uq(a,this.Z.element,5);this.ha=new i7(a,this, 0,l,this.D.element);G(this,this.ha);this.ha.o(k.element);k=new j7(a);G(this,k);Uq(a,k.element,3);this.F="1"==b.B?new L8(a,this,this.B):null;b.La?(l=new W5(c,A(this.Tp,this),A(this.GA,this),A(this.Sp,this)),G(this,l)):S(this,c,"click",A(function(a){this.Sp(a)||this.Tp(a)},this)); S(this,c,"touchstart",this.HA);this.H=new L6(a);G(this,this.H);this.H.subscribe("show",this.As,this);this.Ca=!1;!b.Ab&&b.xc&&(l=new U8(a),G(this,l),Uq(a,l.element,7));l=new Y6(a);G(this,l);Uq(a,l.element,4);this.fa=a.getVideoData().videoId;this.C=null;this.za=[];this.ea=new Q(["div","",{tabindex:0}]);this.ea.P("focus",this.Uv,this);this.da=new Q(["div","",{tabindex:0}]);this.da.P("focus",this.Vv,this);l=a.Aa();l.setAttribute("aria-label",P("YTP_PLAYER_NORMAL"));switch(b.color){case "white":I(l,"ytp-color-white"); break;case "blue":I(l,"ytp-color-blue")}(this.V=b.useTabletControls?null:new S6(a,c,this.H,this.B,k,this.M,A(this.Pn,this)))&&G(this,this.V);S(this,a,"resize",this.Om);S(this,a,"fullscreentoggled",this.UE);S(this,a,"presentingplayerstatechange",this.VE);S(this,a,"videodatachange",this.ys);S(this,a,"videoplayerreset",this.tA);S(this,a,"autonavvisibility",this.$g,this);S(this,a,"cardstatechange",this.Uq,this);S(this,a,"minimized",this.Rf,this);S(this,a,"onFrescaStateChange",this.Rf,this);W8(this,d); this.$g();this.Om();this.Ia=[c.C,f.element,e.element,this.M.element,this.S.element]}; var X8=function(a,b,c){a.J?(b.element.getAttribute("aria-expanded"),b.element.getAttribute("aria-expanded"),b.element.removeAttribute("aria-expanded"),c.rb(),a.J=null,a.aa=null):(b.element.getAttribute("aria-expanded"),a.J=c,a.aa=b,c.ge(b.element),b.element.setAttribute("aria-expanded",!0));a.Rf()}; var ME=function(a){a.o.app.W();EH(a.o);return a.Ea||a.L||!!a.J||EH(a.o)||a.o.app.W().kl}; var Y8=function(a,b){if(!b)return!1;for(var c=0;c<a.Ia.length;c++)if(yf(a.Ia[c],b))return!1;return Xd(b,"ytp-player-content")||Xd(b,"html5-endscreen")||b==a.o.Aa()?!1:!0}; var Z8=function(a,b){if("3"==a.o.W().B){var c=pz(a.o);if((T(c,8)||T(c,4))&&(!T(c,2)||a.o.W().experiments.na("disable_native_controls_ended"))&&(c=Wl(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1}; var NE=function(a){return!a.o.W().experiments.F&&a.o.Ja()}; var W8=function(a,b){a.B.cb(128,!(b.Wa()&&!T(b,32)));var c=3==a.o.getPresentingPlayerType();a.B.cb(256,c);var c=a.o.Aa(),d;T(b,2)?d=["ended-mode"]:(d=[],T(b,8)?d.push("playing-mode"):T(b,4)&&d.push("paused-mode"),T(b,1)&&!T(b,32)&&d.push("buffering-mode"),T(b,32)&&d.push("seeking-mode"),T(b,64)&&d.push("unstarted-mode"));Eb(a.za,d)||(ae(c,a.za),a.za=d,Yd(c,d));a.F&&N8(a.F,ME(a));d=a.o.W();var e=By(b);J(c,"ytp-hide-controls","1"!=d.B||e);J(c,"ytp-native-controls","3"==d.B&&!e&&!T(b,2));if(T(b,128)){a.C|| (a.C=new d6(a.o),G(a,a.C),a.C.o(c),Uq(a.o,a.C.element,4));var c=a.C,f=b.o,e=c.D.W();d=f.message;var k="embedded"==e.Ba,l=f.messageKey,m,f=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=l||e.Ab?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==l?(m="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=l||e.Ab||(m="//"+OG(e)+"/html5",l="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(m="//support.google.com/youtube/?p=player_error1",l="YTP_ERROR_GENERIC_WITH_LINK",Qx(e)&&!e.L&& (f=!0));m&&(d=P(l,{BEGIN_LINK:'<br/><a href="'+m+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(m=0;m<c.C.length;m++)c.ya(c.C[m]);c.C=[];Bq(c,"content",new K5(d));if(f)for(m=A(c.F,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=R(c,d[e],"click",m),c.C.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)}; var $8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Qf(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=$8(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d}; var Efa=function(a){a=a.o.W();var b=a.V;if(zt("ytp-normal-css-loaded")){var c=zt("ytp-sprite-mode-css-loaded");b!=c&&Fi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}}; var a9=function(){}; var Z=function(a,b){if(b<a.C){var c=b+a.D,d=a.o[c];return d===b9?a.o[c]=[]:d}d=a.A[b];return d===b9?a.A[b]=[]:d}; var c9=function(a){var b=a;a=Ffa;this.B=null;b||(b=[]);this.D=-1;this.o=b;a:{if(this.o.length){var b=this.o.length-1,c=this.o[b];if(c&&"object"==typeof c&&!da(c)){this.C=b- -1;this.A=c;break a}}this.C=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.C?(c+=-1,this.o[c]=this.o[c]||b9):this.A[c]=this.A[c]||b9}; var d9=function(a,b){Rj.call(this);var c=b;c instanceof Mh||(c=new Mh(c));var c=this.Y=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?be(e):null)){var e=new c9(e),e={el:Z(e,1),ps:Z(e,2),autonav:Z(e,3),autoplay:Z(e,4),eventid:Z(e,5),fexp:Z(e,6),fflags:Z(e,7),isHtml5MobileDevice:Z(e,8),legacyBehavior:Z(e,9),playerErrorLogFraction:Z(e,10),canWatchLater:Z(e,11),mute:Z(e,12),partnerid:Z(e,13),showinfo:Z(e,14),ss:Z(e,15),watchXlb:Z(e,16),dclk:Z(e,17),ivModule:Z(e,18),iv3Module:Z(e,19),iv3EditModule:Z(e,20), ivInvideoUrl:Z(e,21),ivLoadPolicy:Z(e,22),atc:Z(e,23),loudness:Z(e,24),infringe:Z(e,25),subtitlesXlb:Z(e,26),ccFont:Z(e,27),ccModule:Z(e,28),ccFontsUrl:Z(e,29),cc3Module:Z(e,30),ttsurl:Z(e,31),ccAsr:Z(e,32),ccContribute:Z(e,33),ccAutoCaps:Z(e,34),ccLoadPolicy:Z(e,35),captionTracks:Z(e,36),captionAudioTracks:Z(e,37),captionTranslationLanguages:Z(e,38),defaultAudioTrackIndex:Z(e,39),cr:Z(e,40),hostLanguage:Z(e,41),hl:Z(e,42),enablecsi:Z(e,43),csiPageType:Z(e,44),c:Z(e,45),cbr:Z(e,46),cbrver:Z(e,47), cos:Z(e,48),cosver:Z(e,49),cplatform:Z(e,50),cbrand:Z(e,51),cmodel:Z(e,52),cnetwork:Z(e,53),isRtl:Z(e,54),enhanceModule:Z(e,55),enhanceXlb:Z(e,56),regionModule:Z(e,57),previewSplitMode:Z(e,58),status:Z(e,59),reason:Z(e,60),errorcode:Z(e,61),errordetail:Z(e,62),apiaryHost:Z(e,63),apiaryHostFirstparty:Z(e,64),gapiHintOverride:Z(e,65),gapiHintParams:Z(e,66),innertubeApiKey:Z(e,67),innertubeApiVersion:Z(e,68),innertubeContextClientVersion:Z(e,69),loaderurl:Z(e,70),multicameraModule:Z(e,71),multicameraPreroll:Z(e, 72),multifeedMetadataList:Z(e,73),allowEmbed:Z(e,74),allowedDomains:Z(e,75),ypcItemTitle:Z(e,76),ypcItemUrl:Z(e,77),ypcItemThumbnail:Z(e,78),ypcOfferHeadline:Z(e,79),ypcOfferDescription:Z(e,80),ypcOfferId:Z(e,81),ypcOfferButtonText:Z(e,82),ypcFullVideoMessage:Z(e,83),ypcModule:Z(e,84),ypcVid:Z(e,85),ypcLicenseCheckerModule:Z(e,86),heartbeatServerUrl:Z(e,87),ypcLicenseSessionToken:Z(e,88),purchaseId:Z(e,89),heartbeatToken:Z(e,90),heartbeatInterval:Z(e,91),heartbeatRetries:Z(e,92),ypcClickwrapModule:Z(e, 93),ypcClickwrapMessage:Z(e,94),livestream:Z(e,95),livePlayback:Z(e,96),authTimeout:Z(e,97),hlsdvr:Z(e,98),streaminglibModule:Z(e,99),frescaModule:Z(e,100),frescaPreroll:Z(e,101),frescaXlb:Z(e,102),enableCardio:Z(e,103),enableCardioBeforePlayback:Z(e,104),liveChunkReadahead:Z(e,105),innertubeClientVersion:Z(e,106),adHost:Z(e,107),adHostTierId:Z(e,108),coreDbp:Z(e,109),googleCustAge:Z(e,110),googleCustGender:Z(e,111),pyvAdChannel:Z(e,112),showPyvInRelated:Z(e,113),tagForChildDirected:Z(e,114),playerWide:Z(e, 115),enablesizebutton:Z(e,116),bannerUrl:Z(e,117),profilePicture:Z(e,118),channelTitle:Z(e,119),spacecastAddress:Z(e,120),timestamp:Z(e,121),fmtList:Z(e,122),urlEncodedFmtStreamMap:Z(e,123),adaptiveFmts:Z(e,124),licenseInfo:Z(e,125),idup:Z(e,126),dashmpd:Z(e,127),hlsvp:Z(e,128),hlsFormats:Z(e,129),probeUrl:Z(e,130),storyboardSpec:Z(e,131),liveStoryboardSpec:Z(e,132),ismb:Z(e,133),surveySmartpixelUrl:Z(e,134),surveycreativedata:Z(e,135),threedXlb:Z(e,136),threedModule:Z(e,137),threedConverted:Z(e, 138),approxThreedLayout:Z(e,139),threedLayout:Z(e,140),t:Z(e,141),token:Z(e,142),noGetVideoLog:Z(e,143),tmi:Z(e,144),plid:Z(e,145),pltype:Z(e,146),ptchn:Z(e,147),ptk:Z(e,148),oid:Z(e,149),idpj:Z(e,150),ldpj:Z(e,151),userAge:Z(e,153),userGender:Z(e,154),sw:Z(e,155),remarketingUrl:Z(e,156),ppvRemarketingUrl:Z(e,157),rmktenabled:Z(e,158),baseurl:Z(e,159),videostatsPlaybackBaseUrl:Z(e,160),subscribed:Z(e,161),engaged:Z(e,162),vid:Z(e,163),uid:Z(e,164),aid:Z(e,165),focenabled:Z(e,166),socialenabled:Z(e, 167),ytfocenabled:Z(e,168),ytfochistoryenabled:Z(e,169),ssrt:Z(e,170),delay:Z(e,171),cl:Z(e,172),osid:Z(e,173),vm:Z(e,174),videoId:Z(e,175),title:Z(e,176),lengthSeconds:Z(e,177),keywords:Z(e,178),ucid:Z(e,179),allowRatings:Z(e,180),avgRating:Z(e,181),viewCount:Z(e,182),author:Z(e,183),thumbnailUrl:Z(e,184),isListed:Z(e,185),liveDefaultBroadcast:Z(e,186),vq:Z(e,187),watermark:Z(e,188),accountPlaybackToken:Z(e,189),watchAjaxToken:Z(e,190),yvaXlb:Z(e,191),yvaModule:Z(e,192),yvaPreroll:Z(e,193),ypcXlb:Z(e, 194),authuser:Z(e,195),pageid:Z(e,196),userDisplayName:Z(e,197),userDisplayImage:Z(e,198),playlistTitle:Z(e,199),playlistLength:Z(e,200),index:Z(e,201),iurl:Z(e,202),iurlmq:Z(e,203),iurlhq:Z(e,204),iurlsd:Z(e,205),iurlmaxres:Z(e,206),iurlWebp:Z(e,207),iurlmqWebp:Z(e,208),iurlhqWebp:Z(e,209),iurlsdWebp:Z(e,210),iurlmaxresWebp:Z(e,211),start:Z(e,212),end:Z(e,213),resume:Z(e,214),of:Z(e,215),list:Z(e,216),q:Z(e,217),referrer:Z(e,218),sdetail:Z(e,219),sourceid:Z(e,220),externalList:Z(e,221),forcedExperiments:Z(e, 222),cctp:Z(e,223),adformat:Z(e,224),listtype:Z(e,225),privembed:Z(e,226),afvInstreamMax:Z(e,227),adLanguageIso6392:Z(e,228),adTag:Z(e,229),afvAdTagRestrictedToInstream:Z(e,230),maxDynamicAllocationAdTagLength:Z(e,231),asLaunchedInCountry:Z(e,232),adFlags:Z(e,233),adPreroll:Z(e,234),aftv:Z(e,235),invideo:Z(e,236),dynamicAllocationAdTag:Z(e,237),gutTag:Z(e,238),pyvInRelatedCafeExperimentId:Z(e,239),afvAdTag:Z(e,240),pJ:Z(e,241),loeid:Z(e,242),adDevice:Z(e,243),cafeExperimentId:Z(e,245),adsenseVideoDocId:Z(e, 246),fw:Z(e,247),adSlots:Z(e,248),shortform:Z(e,249),tpasPartnerId:Z(e,250),instream:Z(e,251),trueview:Z(e,252),midrollFreqcap:Z(e,253),mpvid:Z(e,254),mpu:Z(e,255),afv:Z(e,256),tpasAdTypeId:Z(e,257),tpasVideoId:Z(e,258),sffb:Z(e,259),contentOwnerName:Z(e,260),afvMergeEnabled:Z(e,261),excludedAds:Z(e,262),noAfvInstream:Z(e,263),adAge:Z(e,264),adGender:Z(e,265),adLoggingFlag:Z(e,266),showContentThumbnail:Z(e,267),cid:Z(e,268),afvInvideoAdTag:Z(e,269),allowHtml5Ads:Z(e,270),supportedWithoutAds:Z(e,271), instreamLong:Z(e,272),adBreaks:Z(e,273),afcRmFallback:Z(e,275),allowAdInAutoplay:Z(e,276),c4:Z(e,277),dbp:Z(e,278),fqsf:Z(e,279),gptMigration:Z(e,280),xfp:Z(e,281),midrollPrefetchSize:Z(e,282),trueviewLactt:Z(e,283),xfpTag:Z(e,284),advideo:Z(e,285),ad3Module:Z(e,286),vmap:Z(e,287),serverPrefetchedVast:Z(e,288),amsBaseTag:Z(e,289),fadeOutStartMilliseconds:Z(e,290),fadeOutDurationMilliseconds:Z(e,291),fadeInStartMilliseconds:Z(e,292),fadeInDurationMilliseconds:Z(e,293),applyFadeOnMidrolls:Z(e,294), adModule:Z(e,295),pla:Z(e,296),plaAdTag:Z(e,297),vastAdsModule:Z(e,298),forcedSkipOffset:Z(e,299),enabledEngageTypes:Z(e,300),freewheelAdTag:Z(e,301),postAdRequests:Z(e,302),enablejsapi:Z(e,303),ssl:Z(e,304),baseYtUrl:Z(e,306),controls:Z(e,307),disablekb:Z(e,308),jsapicallback:Z(e,309),svt:Z(e,310),canplaylive:Z(e,311),storeUserVolume:Z(e,312),useMediaVolume:Z(e,313),sslStream:Z(e,314),dash:Z(e,315),liveStartWalltime:Z(e,316),oauthToken:Z(e,317),visitorData:Z(e,318),vvt:Z(e,319),osig:Z(e,320),paygated:Z(e, 321),videoMastheadAdQuartileUrls:Z(e,322),tvList:Z(e,323),pyvViewBeaconUrl:Z(e,324),pyvQuartile25BeaconUrl:Z(e,325),pyvQuartile50BeaconUrl:Z(e,326),pyvQuartile75BeaconUrl:Z(e,327),pyvQuartile100BeaconUrl:Z(e,328),pyvBillableUrl:Z(e,329),rco:Z(e,330),cco:Z(e,331),feature:Z(e,332),isFling:Z(e,333),ctrl:Z(e,334),ytr:Z(e,335),ytrcc:Z(e,336),startseconds:Z(e,337),sentiment:Z(e,338),spacecastFormatMap:Z(e,339),spacecastAdaptiveFormats:Z(e,340),suggestedquality:Z(e,341),rvs:Z(e,342),urlEncodedThirdPartyMedia:Z(e, 343),vssCredentialsToken:Z(e,344),vssCredentialsType:Z(e,345),ypcGid:Z(e,346),ypcPreview:Z(e,347),ypcOrigin:Z(e,348),requiresPurchase:Z(e,349),mdx:Z(e,350),retryneterr:Z(e,351),itct:Z(e,352),ypcOverlayTimeout:Z(e,353),app:Z(e,354),cweb:Z(e,355),pyvConvUrl:Z(e,356),cver:Z(e,357),on3g:Z(e,358),autohide:Z(e,359),useNativeControls:Z(e,360),useTabletControls:Z(e,361),codeDbp:Z(e,362),rel:Z(e,363),attrib:Z(e,364)},f={};for(d in e){var k=e9[d]?e9[d]:d.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();f[k]= e[d]}d=f;break a}d=null}var l;if(d){c=c.args;e=[];for(l in c)Gfa[l]||(d.hasOwnProperty(l)?typeof c[l]!=typeof d[l]?e.push("wrong type. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):c[l]!==d[l]&&e.push("values differ. key ["+l+"]: ("+typeof c[l]+") "+c[l]+"; ("+typeof d[l]+") "+d[l]):e.push("missing. key ["+l+" ]: ("+typeof c[l]+") "+c[l]));l=e}else l=[];c=Math.floor(Math.random()*l.length);l=l.slice(c).concat(l.slice(0,c));for(c=0;c<l.length;c++)Fi(Error("Discrepancy in legacy config: "+ l[c]));l=this.Y.args||{};this.X=new wG(l);G(this,this.X);this.ub=wu("detailpage"==this.X.Ba&&"blazer"!=this.X.o||"books"==this.X.o,l.enablesizebutton);this.ma=wu(!1,l.player_wide);this.O=this.X.gb&&wu(!1,l.external_list);this.Cb=this.X.gb&&wu(!1,l.external_play_video);this.ha=new yv(this);G(this,this.ha);this.M=new mH(this);G(this,this.M);this.Xa=new mH(this,1);G(this,this.Xa);this.F=new O5(this);G(this,this.F);this.F.subscribe("resize",this.bD,this);this.K=1;this.La={};this.X.storeUserVolume?(l= ij("yt-player-volume")||{},c=l.volume,l={volume:(0,window.isNaN)(c)?100:ke(Math.floor(c),0,100),muted:!!l.muted}):l={volume:100,muted:this.X.mute};this.U=l;this.ca=this.X.gb?new lH(this,1):new jH(this,1);G(this,this.ca);this.ka=this.B=null;this.Ca={};l=this.X;c=new hK;DG(l)&&(c.B=!0,c.A=.1);l.Ua&&(c.o=l.Ua/8);this.Ea=new YJ(c);this.Qa={internalvideodatachange:this.ty,liveviewshift:this.ZC,playbackready:this.uy,playbackstarted:this.vy,statechange:this.wy,signatureexpired:this.QA};l=new iK;c=this.M; l.A!=c&&(jK(l),l.F={},l.A=c);c={};c.loaded=A(this.Ep,this);c.unloaded=A(this.Fp,this);c.destroyed=A(this.yl,this);c.command_pause=f9(this.pauseVideo,this);c.command_play=f9(this.Qe,this);c.command_seek=f9(this.Xf,this);c.command_redirect_controls=A(this.pr,this);c.command_stop_redirect_controls=A(this.Yi,this);c.publish_external_event=A(this.Mi,this);l.G=c;this.W().J.subscribe("vast_info_card_add",pa(l.K,"vast_info_card_add"),l);this.C=l;G(this,this.C);this.J=new H_(this.X,"",this.C);l=new M1(this.X, 1,this.J,this.F,A(this.R,this));g9(this,l,this.Qa);this.o=l;this.o.ia=this.Ea;this.tb={airplayactivechange:this.iy,airplayavailabilitychange:this.jy,beginseeking:this.WC,endseeking:this.XC,internalaudioformatchange:this.zy,internalvideodatachange:this.dD,internalvideoformatchange:this.rB,playbackstalledatstart:this.WA,progresssync:this.aD,seekto:this.cD,onLoadProgress:this.Nz,onVideoProgress:this.tB,playbackready:this.pA,statechange:this.$C,connectionissue:this.bz,heartbeatparams:this.YC,videoelementevent:this.eD}; this.L=this.D=null;this.Ua=this.$a=-1;this.fa=this.H=this.G=null;this.da={};this.sa=null;this.jb=new Ud(this.F.ph,16,this.F);G(this,this.jb);this.Ga=!1;this.Z=!0;this.za=this.A=null;this.V=1;this.ia=null;this.Nb=this.bb=!1;this.nb=null;this.aa=0;this.Ia=new g6(this.F.element);G(this,this.Ia);this.ab=0;this.subscribe("crn_"+d9.B,this.qy,this);this.subscribe("crx_"+d9.B,this.ry,this);this.subscribe("crn_"+d9.A,this.np,this);this.subscribe("crx_"+d9.A,this.np,this);this.F.initialize(a);Ah=this.X.V;l= new zw(this.Y.args);bx(l)&&(this.o.Wg(l,A(this.mj,this)),Mx(this.X)&&(c=l.videoId,c=(d=ij("yt-player-restore-playhead"))?d[c]:void 0,c&&(l.startSeconds=c)),jj("yt-player-restore-playhead"),(this.X.Ca||this.X.Cd&&this.X.experiments.O)&&R1(this.o));this.J.A("fs",void 0);l=this.F;l.isDisposed();c=l.app.W();c.H||l.addClass("tag-pool-enabled");c.Ab&&l.addClass("house-brand");"gvn"==c.o&&l.addClass("ytp-gvn");l.da?(l.L=Ii("yt-dom-content-change",l.af,l),R(l,window,"resize",l.af,l)):l.aa?R(l,window,"resize", l.af,l):(c=Eu()?A(l.av,l):A(l.af,l),l.L=Ci(c,250));l=this.ca;l.o=this.F.element;for(var m in l.B)l.o[m]=l.B[m];for(m in l.C)l.o[m]=l.C[m];m=Jh("fullscreenchange");"msfullscreenchange"==m&&(m="MSFullscreenChange");m&&S(this.ha,window.document,m,this.zz);S(this.ha,window,"resize",this.FA);l=this.Y.args;h9(this);m=k5(this);this.Oa("onVolumeChange",this.U);l&&px(l)&&((c=Mx(this.X))&&!this.O&&(l.fetch=0),i9(this,l),c&&!this.O?j9(this):bx(m)||(l=this.A,c=A(this.Ip,this),l.G=c,l.F&&Ai(l.G,0)));if(l=this.Y.args.jsapicallback)ga(l)|| (l=u(l)),l&&f9(A(l,r,this.X.Xe),r);this.X.ab||(kp("embedded"==this.X.Ba),this.X.rg=TG(this.X)&&!kb(vp()));k9(this,this.o);l=vt(this.X.K);"fmt.noneavailable"==l?BJ(this.o,l,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==l?BJ(this.o,l,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):this.X.Ca&&bx(m)?l9(this):"leanback"!=this.X.Ba&&m9(this);this.ea=new V8(this.M);G(this,this.ea);AH(this.Xa,"init")}; var h9=function(a){a.B=q5.getTag(!0,!a.X.K);a.ka=a.B;a.D&&a2(a.D,a.B);py(a.B,a.V);a.X.useMediaVolume?(a.ia&&a.ha.ya(a.ia),a.ia=S(a.ha,a.B,"volumechange",a.Vz)):a.B.setVolume(a.U.volume,a.U.muted);xfa(a.F,a.B);a=a.X.qc=a.B;a.src||a.load()}; var n9=function(a){if(a.B){a.ia&&(a.ha.ya(a.ia),a.ia=null);a.D&&b2(a.D);var b=a.F;b.A&&(qf(b.A),b.A=null);a.X.qc=null;q5.releaseTag(a.B);a.B=null}}; var Yq=function(a,b){a.X.H?(a.fa&&(Tf(a.B,a.fa.left,a.fa.top),eg(a.B,we(a.fa)),a.fa=null),Zq(a.B),b2(a.D),a2(a.D,a.B),py(a.B,a.V)):q5.releaseTag(b)}; var k9=function(a,b){a.D!=b&&(a.D&&(jK(a.C),pq(a,"cuerangesremoved",a.D.F.o.o||[]),o9(a)),b!=a.o&&(a.Ca[b.O]=b),a.D=b,b.ia=a.Ea,a.B&&a2(b,a.B),g9(a,b,a.tb),p9(a,b,b.getVideoData()),b.da.o&&q9(a,"dataloaded",b,b.getVideoData()),pq(a,"cuerangesadded",a.D.F.o.o||[]),ty(b.getPlayerState())&&e2(b))}; var g9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}; var o9=function(a){b2(a.D);var b=a.D,c=a.tb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.D;b!=a.o&&(c=b.O,a.Ca[c]==b&&delete a.Ca[c]);a.D=null}; var oq=function(a,b){return b?1==b?a.o:a.Ca[b]||null:a.D}; var r9=function(a){var b=a.C,c=QJ();E(c,b.J,b);a.R("videoready",a.getVideoData())}; var s9=function(a){!a.H&&a.Xa.W().rg&&(a.H=new I5(a),t9(a,a.H));if(a.H){var b=Cp();J5(a.H,vp(),b);var c=a.H;c&&!c.J&&c.Va(a.Xa)&&c.create();b&&a.H.load()}}; var t9=function(a,b){G(a,b);b.subscribe("loaded",a.Ep,a);b.subscribe("unloaded",a.Fp,a);b.subscribe("command_pause",f9(a.pauseVideo,a));b.subscribe("command_play",f9(a.Qe,a));b.subscribe("command_seek",f9(a.Xf,a));b.subscribe("command_redirect_controls",a.pr,a);b.subscribe("command_stop_redirect_controls",a.Yi,a);b.subscribe("publish_external_event",a.Mi,a)}; var u9=function(a,b){b&&b.J&&("ad"==b.qa&&ae(a.F.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())}; var k5=function(a){return a.o.getVideoData()}; var m9=function(a){a.R("initializingmode");v9(a,2)}; var l9=function(a){if(T(a.o.getPlayerState(),128))return!1;a.R("initializingmode");k9(a,a.o);v9(a,3);var b;(b=!a.X.H)||(u("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(n9(a),h9(a),a2(a.o,a.B));S1(a.o);if(T(a.o.getPlayerState(),128))return!1;w9(a,3);return a.Nb=!0}; var x9=function(a){return TG(a.X)&&!!Cp()}; var f9=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);Ai(function(){a.apply(b||this,c)},0)}}; var y9=function(a,b){if(!(0,window.isNaN)(b)&&a.B){var c=1,c=a.X.U?z9:[1],c=1>b?db(c,function(a){return a>=b}):fb(c,function(a){return a<=b}); a.V!=c&&(a.V=c,a.o==a.D&&py(a.B,c),a.R("onPlaybackRateChange",c))}}; var A9=function(a,b){var c=oq(a,b);return c?c.Bm():a.getVideoData().U}; var B9=function(a,b,c,d){if(a=oq(a,c))d=d||b,b=Vt(b,d,!0),gj("yt-player-quality",d,604800),k2(a,"m",b)}; var C9=function(a,b){var c=oq(a,b);return c?c.Zf():0}; var D9=function(a,b){var c=o2(a.o,b);if(a.D&&a.D!=a.o){var d=o2(a.D,b),e;for(e in d)c["ad_"+e]=d[e]}(d=E9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Xa.sj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return de(c)}; var F9=function(a,b){return 3==a.getPresentingPlayerType()?Dy(a.H.O):2==b?a.Ua:a.$a}; var G9=function(a){u9(a,a.G);u9(a,a.H);a.bb=!1;a.Yi();y9(a,1);a.La={};a=a.J;var b=a.B;b.C={};b.B={};a.C=!1}; var p9=function(a,b){jK(a.C);py(a.B,a.o==a.D?a.V:1);a.Oa("videoplayerreset",b)}; var q9=function(a,b,c,d){if(a.B){if("dataloaded"==b)if(IG(c.W(),d.C),a.D==a.o){a.X.ab||kp("embedded"==a.X.Ba);var e=x9(a),f;if(f=!e)f=k5(a).lo&&!a.X.isMobile;if(f){var k="YTP_DEVICE_FALLBACK";R5||tt()||mt("xbox")&&mt("trident")||rt()||(k="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");BJ(a.o,"html5.unsupportedads",k,void 0)}else if(f=k5(a),!cx(f)||e||Rw(a.o.o)){dx(f);e&&v9(a,6);e=!1;!a.G&&j5.Va(a)&&(a.G=new j5(a),a.G&&t9(a,a.G),e=!0);try{(k=a.G)&&!k.J&&k.Va(a.Xa)&&k.create()}catch(l){Fi(l),a.o&& a.o.Wi("ad")}e&&(e=a.G,f=k5(a),k=oq(a),f.subscribe("cuepointupdated",e.hz,e),e.aa=f,e=o5(e),null!=e&&(e.H=k),a.G.subscribe("overlay_ad_open",pa(a.Gq,!0),a),a.G.subscribe("overlay_ad_close",pa(a.Gq,!1),a));s9(a);r9(a)}else BJ(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else r9(a);1==c.O&&(a.getVideoData().Hh?(k=a.B,k.Wj=!0,k.muted=!0):(a.B.Wj=!1,H9(a,a.U)),a.getVideoData().Fa&&!a.X.jg&&BJ(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),k=IA?a.X.Dd:a.getVideoData().ke, dx(d)&&(d.ma||d.Qa||d.D.focEnabled||d.D.rmktEnabled||k)&&(k=a.getVideoData(),I9(a,"part2viewed",1,0x8000000000000),I9(a,"engagedview",Math.max(1,1E3*k.Re),0x8000000000000),k.Fa||(k=1E3*k.lengthSeconds,I9(a,"videoplaytime25",.25*k,k),I9(a,"videoplaytime50",.5*k,k),I9(a,"videoplaytime75",.75*k,k),I9(a,"videoplaytime100",k,0x8000000000000),I9(a,"conversionview",k,0x8000000000000))));a.Oa("videodatachange",b,d,c.O)}}; var J9=function(a){if(!a.X.experiments.na("disable_webgl_hack")){var b=!1,c=a.getVideoData();c&&c.A&&oq(a).Wa()&&(b=qr[c.A.video.quality],b=1440<=b||1080<=b&&30<c.A.video.fps);b?h6(a.Ia):i6(a.Ia)}}; var E9=function(a){a=a.Ia;var b=!a.o,c="";h6(a);if(a.A)try{a.A.getExtension("WEBGL_debug_renderer_info"),c=a.A.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(d){}b&&i6(a);return c}; var j9=function(a){var b=K9();if(b)if(b.list){if(a.A&&a.A.D.toString()==b.list)if(0<=b.index){var c=b.video;a.M.Ja()&&((c=c[a.A.o])&&c.encrypted_id!=a.A.qb().videoId||(b.index=a.A.o));vx(a.A,b);a.za&&L9(a,a.za)}else a.za=null}else a.dk()}; var i9=function(a,b){if(a.A){a.A.unsubscribe("error",a.dk,a);Lb(a.A);a.A=null;var c=qH(a.C,"playlist");c&&(ob(a.C.o,c),c.destroy())}b&&(a.O&&(b.fetch=0),a.A=new jx(b),a.A.subscribe("error",a.dk,a))}; var I9=function(a,b,c,d){b in a.La||(c=new iq(c,d,{id:b,priority:1}),c.o=d9.A,a.o.F.fb([c]),a.La[b]=c)}; var v9=function(a,b){b!=a.K&&(2==b&&(w9(a,-1),w9(a,5)),a.K=b,a.R("appstatechange",b))}; var w9=function(a,b){a.D&&2==a.D.O?a.Ua!=b&&(a.Ua=b,a.Gf("onAdStateChange",b)):a.$a!=b&&(a.$a=b,a.Gf("onStateChange",b))}; var M9=function(a,b,c){var d=new zw(b);b&&px(b)?(Mx(a.X)&&!a.O&&(b.fetch=0),i9(a,b)):a.A&&i9(a,null);a.O=wu(!1,b.external_list);Mx(a.X)&&!a.O&&j9(a);return N9(a,d,c)}; var O9=function(a,b){a.L&&a.L.getVideoData().videoId==b.videoId||(b.$a=!0,a.L||(a.L=new M1(a.X,1,a.J,a.F,A(a.R,a)),a.L.ia=a.Ea),a.L.Wg(b,A(a.mj,a)),R1(a.L,!0))}; var N9=function(a,b,c){if(!bv("_start",a.J.o)){var d=a.J.o;cv("yt_sts","p",d);Xu("_start",void 0,d);a.J.info("srt",0)}if(a.L&&a.L.getVideoData().videoId==b.videoId){d=a.L;a.L=null;b=d;c=a.o;var e=a.Qa,f;for(f in e)c.unsubscribe(f,e[f],a);a.o.dispose();a.o=b;g9(a,b,a.Qa);G9(a)}else{d=oq(a,c);if(!d)return!1;a.jb.stop();P9(a,c);d.Wg(b,A(a.mj,a))}if(!Q1(d))return!1;a.Ga&&(d.ab=!1,a.Ga=!1);if(d==a.o)return v9(a,1),l9(a);S1(d);return!0}; var Q9=function(a,b,c){c=oq(a,c);b&&c==a.o&&(c.getVideoData().Yf=!0)}; var R9=function(a,b,c){var d=oq(a,c);d&&(P9(a,c),d.Wg(b,A(a.mj,a)),!a.X.experiments.na("legacy_cue_video_behavior")||Q1(d))&&(IG(d.W(),b.C),d==a.o&&(v9(a,1),m9(a)))}; var S9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");if(a.M.Ja()||"detailpage"!=a.X.Ba){c=a.J;var e=c.B;e.C={};e.B={};c.C=!1;a.J.reset();d?(b={video_id:b,list:d},a.Z=!1,T9(a,b,void 0,void 0,void 0)):M9(a,{video_id:b},1)}else a.Cb||"gaming"==a.X.o?a.R("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.X.getVideoUrl(b,d),d=c||{},d.lact=SA(),a.X.experiments.na("send_presence_signal_vis_desktop")&&(d.vis=iH(a.X)),u("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled? window.spf.navigate(b):Gx(b))}; var T9=function(a,b,c,d,e){if(ia(b)&&!da(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},z(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;i9(a,b);b=a.A;a=A(a.Ip,a);b.G=a;b.F&&Ai(b.G,0)}; var by=function(a){Mx(a.X)&&!a.O&&j9(a);return!(!a.A||!a.A.hasNext())}; var U9=function(a,b){a.Oa("autonavcancel",b)}; var V9=function(a,b){if(a.O&&!a.M.Ja())a.R("onPlaylistNext");else if(a.A)Mx(a.X)&&!a.M.Ja()?L9(a,"yt.www.watch.lists.next"):a.A.F?a.A.hasNext(b)&&N9(a,sx(a.A,b),1):(sx(a.A,b),a.Z=!1);else if(Tx(a.X,a.getVideoData(),a.A)&&oq(a,1).getVideoData().H){var c=O(oq(a,1).getVideoData().H,zx)[0];S9(a,c.qb().videoId,c.aa,c.Se())}}; var W9=function(a,b){if(a.O&&!a.M.Ja())a.R("onPlaylistPrevious");else if(a.A)if(Mx(a.X)&&!a.M.Ja())L9(a,"yt.www.watch.lists.prev");else if(a.A.F){var c=a.A;(c.H||b||0<=c.o-1)&&N9(a,ux(a.A,b),1)}else ux(a.A),a.Z=!1}; var L9=function(a,b){var c=u(b);if(c){var d=K9();d&&d.list&&c();a.za=null}else a.za=b}; var X9=function(a,b){a.O&&!a.M.Ja()?a.R("onPlaylistIndex",b):a.A&&(a.A.F?N9(a,a.A.qb(b),1):a.Z=!1,tx(a.A,b))}; var K9=function(){var a=u("yt.www.watch.lists.getState");return a?a():null}; var Y9=function(a,b,c,d,e,f){b={id:b};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new iq(1E3*c,1E3*d,b);c.o=d9.B;Z9(a,[c],1);return!0}; var Z9=function(a,b,c){var d=oq(a,c);d&&(d.F.fb(b),c&&a.getPresentingPlayerType()!=c||pq(a,"cuerangesadded",b))}; var $9=function(a){var b=H(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)}; var H9=function(a,b,c){a.U=b;c&&a.X.storeUserVolume&&!a.X.useMediaVolume&&!b.unstorable&&gj("yt-player-volume",b,2592E3);a$(a);a.X.useMediaVolume||(b=ec(b),a.X.storeUserVolume||(b.unstorable=!0),a.Oa("onVolumeChange",b))}; var a$=function(a){var b=a.getVideoData();b.Hh||a.B.setVolume(a.U.volume*(a.X.useMediaVolume?zw.o:b.Gh),a.U.muted)}; var b$=function(a,b){var c=!!b,d=!!a.ab!=c;a.ab=b;d&&(a.J.A("fsc"),a.X.Jg=c,a.F.ph(),a.Oa("fullscreentoggled",c),d=k5(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId},a.Xa.ce()&&(c.listId=a.Xa.ce()),a.X.experiments.na("new_stop_video3")&&(c.time=a.getCurrentTime()),a.R("onFullscreenChange",c))}; var pq=function(a,b,c){a.R(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.Mi(d,O(c,jq))}; var c$=function(a,b){if(a.X.experiments.na("new_stop_video3")){var c=a.o.getVideoData(),c=new zw({video_id:c.videoId,oauth_token:c.oauthToken});R9(a,c,1)}else P9(a,b)}; var P9=function(a,b){Vu(a.aa);a.aa=0;var c=oq(a,b);c&&1!=a.K&&2!=a.K&&(jK(a.C),1==b&&u9(a,a.G),$1(c),a.X.experiments.na("legacy_cue_range_behavior2")||(pq(a,"cuerangesremoved",a.D.F.o.o||[]),c.F.reset()))}; var d$=function(a,b){if(HH(a.Xa)){var c=a.da.play_pause?a.sa:null;c?c.Ud("control_play"):a.Qe(b)}}; var e$=function(a,b,c,d,e){var f=oq(a,e);if(!f||2!=f.O&&!fx(f.getVideoData()))(f=a.da.seek?a.sa:null)?f.Ud("control_seek",b):a.Xf(b,c,d,e)}; var f$=function(a,b,c){a.ub=b;a.ma=c;a.Oa("sizestylechange",b,c);a.X.experiments.na("efficient_resize")&&a.F.ph()}; var vH=function(a,b){if(a.M.Ja()!=b)if(Kh())if(b){var c=a.F.element,d=Hh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Hh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],window.document))&&c.call(window.document);else b$(a,b?2:0)}; var uH=function(a,b,c,d,e){c=a.X.gb&&a.G&&b==a.G.qa?a.G.xd(c,d):(a.X.gb||e)&&a.H&&b==a.H.qa?a.H.xd(c,d):b&&c?(a=qH(a.C,b))?a.xd(c,d):null:null;return c}; var g$=function(a,b,c){if(b){if(a.X.gb&&a.G&&b==a.G.qa)return a.G.Ue();if((a.X.gb||c)&&a.H&&b==a.H.qa)return a.H.Ue()}else return b=nK(a.C),a.X.gb&&a.G&&b.push(a.G.qa),(a.X.gb||c)&&a.H&&b.push(a.H.qa),b;return nK(a.C,b)}; var An=An||{},r=this,la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,H=Date.now||function(){return+new Date};B(sa,Error);sa.prototype.name="CustomError";var Xe;var Sa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},za=/&/g,Aa=/</g,Ba=/>/g,Ca=/"/g,Da=/'/g,Ea=/\x00/g,ya=/[\x00&<>"']/,Ja=/&([^;\s<&]+);?/g,dn={"\x00":"\\0", "\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},cn={"'":"\\'"},Pa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Wa=2147483648*Math.random()|0;var jb=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c; if(z(a))return z(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Hfa=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c; 0>c&&(c=Math.max(0,a.length+c));if(z(a))return z(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},E=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},$d=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=z(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l]; b.call(c,m,l,a)&&(e[f++]=m)}return e},O=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=z(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a)); return e},me=Array.prototype.reduce?function(a,b,c,d){d&&(b=A(b,d)); return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c; E(a,function(c,k){e=b.call(d,e,c,k,a)}); return e},Ih=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0; return!1},Gg=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=z(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1; return!0};F.prototype.Ra=!1;F.prototype.isDisposed=function(){return this.Ra}; F.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.T())}; F.prototype.T=function(){if(this.Da)for(;this.Da.length;)this.Da.shift()()};var hc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");jc.prototype.stopPropagation=function(){this.A=!0}; jc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.qq=!1};lc[" "]=w;var oc;a:{var h$=r.navigator;if(h$){var i$=h$.userAgent;if(i$){oc=i$;break a}}oc=""};var Lf=pc(),vc=nc("Trident")||nc("MSIE"),uc=nc("Edge"),pF=uc||vc,tc=nc("Gecko")&&!(La(oc,"WebKit")&&!nc("Edge"))&&!(nc("Trident")||nc("MSIE"))&&!nc("Edge"),wc=La(oc,"WebKit")&&!nc("Edge"),R5=wc&&nc("Mobile"),SM=nc("Macintosh"),vL=nc("Android"),mL=rc(),nL=nc("iPad"),Ac=function(){if(Lf&&r.opera){var a;var b=r.opera.version;try{a=b()}catch(c){a=b}return a}a="";(b=sc())&&(a=b?b[1]:"");return vc&&(b=xc(),b>(0,window.parseFloat)(a))?String(b):a}(),zc={},j$=r.document,Yf=j$&&vc?xc()||("CSS1Compat"==j$.compatMode? (0,window.parseInt)(Ac,10):5):void 0;var Wc=!vc||9<=Yf,Ifa=vc&&!yc("9");!wc||yc("528");tc&&yc("1.9b")||vc&&yc("8")||Lf&&yc("9.5")||wc&&yc("528");tc&&!yc("8")||vc&&yc("9");var vda="ontouchstart"in r||!!(r.document&&window.document.documentElement&&"ontouchstart"in window.document.documentElement)||!(!r.navigator||!r.navigator.msMaxTouchPoints);B(Cc,jc); Cc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?tc&&(mc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX, this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.o=a;a.defaultPrevented&&this.preventDefault()}; Cc.prototype.stopPropagation=function(){Cc.N.stopPropagation.call(this);this.o.stopPropagation?this.o.stopPropagation():this.o.cancelBubble=!0}; Cc.prototype.preventDefault=function(){Cc.N.preventDefault.call(this);var a=this.o;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ifa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ec="closure_listenable_"+(1E6*Math.random()|0),Gc=0;Ic.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.o))return!1;var e=this.o[a];b=Kc(e,b,c,d);return-1<b?(Hc(e[b]),pb(e,b),0==e.length&&(delete this.o[a],this.A--),!0):!1}; Ic.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.o)if(!a||c==a){for(var d=this.o[c],e=0;e<d.length;e++)++b,Hc(d[e]);delete this.o[c];this.A--}return b};var Rc="closure_lm_"+(1E6*Math.random()|0),$c={},Uc=0,cd="__closure_events_fn_"+(1E9*Math.random()>>>0);B(dd,F);dd.prototype[Ec]=!0;h=dd.prototype;h.Vg=function(a){this.ka=a}; h.addEventListener=function(a,b,c,d){Nc(this,a,b,c,d)}; h.removeEventListener=function(a,b,c,d){Yc(this,a,b,c,d)}; h.$=function(a){var b,c=this.ka;if(c){b=[];for(var d=1;c;c=c.ka)b.push(c),++d}c=this.Ia;d=a.type||a;if(z(a))a=new jc(a,c);else if(a instanceof jc)a.target=a.target||c;else{var e=a;a=new jc(d,c);gc(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.A&&0<=k;k--)f=a.currentTarget=b[k],e=ed(f,d,!0,a)&&e;a.A||(f=a.currentTarget=c,e=ed(f,d,!0,a)&&e,a.A||(e=ed(f,d,!1,a)&&e));if(b)for(k=0;!a.A&&k<b.length;k++)f=a.currentTarget=b[k],e=ed(f,d,!1,a)&&e;return e}; h.T=function(){dd.N.T.call(this);this.removeAllListeners();this.ka=null}; h.P=function(a,b,c,d){return Jc(this.gd,String(a),b,!1,c,d)}; h.ya=function(a,b,c,d){return this.gd.remove(String(a),b,c,d)}; h.removeAllListeners=function(a){return this.gd?this.gd.removeAll(a):0};fd.prototype.get=function(){var a;0<this.A?(this.A--,a=this.o,this.o=a.next,a.next=null):a=this.B();return a}; fd.prototype.put=function(a){this.C(a);this.A<this.D&&(this.A++,a.next=this.o,this.o=a)};var kd;var td=new fd(function(){return new nd},function(a){a.reset()},100); md.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.A=null),a.next=null);return a}; nd.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null}; nd.prototype.reset=function(){this.next=this.scope=this.o=null};var pd,rd=!1,sd=new md;Ad.prototype.reset=function(){this.context=this.A=this.B=this.o=null;this.C=!1}; var Cd=new fd(function(){return new Ad},function(a){a.reset()},100); yd.prototype.then=function(a,b,c){return Fd(this,ga(a)?a:null,ga(b)?b:null,c)}; vd(yd);yd.prototype.cancel=function(a){0==this.o&&od(function(){var b=new Ld(a);Gd(this,b)},this)}; yd.prototype.J=function(a){this.o=0;zd(this,2,a)}; yd.prototype.K=function(a){this.o=0;zd(this,3,a)}; yd.prototype.H=function(){for(var a=null;a=Hd(this);)Id(this,a,this.o,this.G);this.F=!1}; var Pd=id;B(Ld,sa);Ld.prototype.name="cancel";B(Qd,dd);h=Qd.prototype;h.enabled=!1;h.xa=null;h.bw=function(){if(this.enabled){var a=H()-this.C;0<a&&a<.8*this.o?this.xa=this.A.setTimeout(this.B,this.o-a):(this.xa&&(this.A.clearTimeout(this.xa),this.xa=null),this.$("tick"),this.enabled&&(this.xa=this.A.setTimeout(this.B,this.o),this.C=H()))}}; h.start=function(){this.enabled=!0;this.xa||(this.xa=this.A.setTimeout(this.B,this.o),this.C=H())}; h.stop=function(){this.enabled=!1;this.xa&&(this.A.clearTimeout(this.xa),this.xa=null)}; h.T=function(){Qd.N.T.call(this);this.stop();delete this.A};B(Ud,F);h=Ud.prototype;h.Ag=0;h.T=function(){Ud.N.T.call(this);this.stop();delete this.o;delete this.A}; h.start=function(a){this.stop();this.Ag=Sd(this.B,n(a)?a:this.C)}; h.Nf=function(a){this.isActive()||this.start(a)}; h.stop=function(){this.isActive()&&Td(this.Ag);this.Ag=0}; h.isActive=function(){return 0!=this.Ag}; h.bo=function(){this.Ag=0;this.o&&this.o.call(this.A)};ee.prototype.mc=function(a){var b=[];fe(this,a,b);return b.join("")}; var je={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ie=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=oe.prototype;h.clone=function(){return new oe(this.x,this.y)}; h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; h.scale=function(a,b){var c=fa(b)?b:a;this.x*=a;this.y*=c;return this};h=qe.prototype;h.getWidth=function(){return this.right-this.left}; h.getHeight=function(){return this.bottom-this.top}; h.clone=function(){return new qe(this.top,this.right,this.bottom,this.left)}; h.contains=function(a){return this&&a?a instanceof qe?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; h.scale=function(a,b){var c=fa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=re.prototype;h.clone=function(){return new re(this.width,this.height)}; h.aspectRatio=function(){return this.width/this.height}; h.isEmpty=function(){return!(this.width*this.height)}; h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; h.scale=function(a,b){var c=fa(b)?b:a;this.width*=a;this.height*=c;return this};h=te.prototype;h.clone=function(){return new te(this.left,this.top,this.width,this.height)}; h.contains=function(a){return a instanceof te?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height}; h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; h.scale=function(a,b){var c=fa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var Jfa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var ze=/<[^>]*>|&[^;]+;/g,SZ=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),jaa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),haa=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),iaa=/^http:\/\/.*/,Kfa=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i, gaa=/\s+/,kaa=/[\d\u06f0-\u06f9]/;Ae.prototype.Je=!0;Ae.prototype.jd=function(){return this.o}; Ae.prototype.toString=function(){return"Const{"+this.o+"}"}; var Be={};Ee.prototype.Je=!0;var Fe={};Ee.prototype.jd=function(){return this.o}; var Lfa=Ge(""),Mfa=/^[-,."'%_!# a-zA-Z0-9]+$/;He.prototype.Je=!0;He.prototype.jd=function(){return this.o}; He.prototype.Zk=!0;He.prototype.ff=function(){return 1}; var Le=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Ie={};Me.prototype.Je=!0;Me.prototype.jd=function(){return""}; Me.prototype.Zk=!0;Me.prototype.ff=function(){return 1}; var Ne={};Pe.prototype.Zk=!0;Pe.prototype.ff=function(){return this.A}; Pe.prototype.Je=!0;Pe.prototype.jd=function(){return this.o}; var k$=/^[a-zA-Z0-9-]+$/,Nfa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Ofa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Qe={};Te("<!DOCTYPE html>",0);Te("",0);var hf=!vc||9<=Yf,tf=!tc&&!vc||vc&&9<=Yf||tc&&yc("1.9.1");vc&&yc("9");var xf=vc||Lf||wc;var bf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};h=Ve.prototype;h.la=function(a){return z(a)?this.o.getElementById(a):a}; h.dw=function(a,b,c){return gf(this.o,arguments)}; h.createElement=function(a){return this.o.createElement(a)}; h.appendChild=mf;h.contains=yf;var Of={},og=/[^\d]+$/,pg={cm:1,"in":1,mm:1,pc:1,pt:1},qg={em:1,ex:1};var tg="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""};rg.prototype.next=function(){throw tg;}; rg.prototype.Ub=function(){return this};h=wg.prototype;h.Za=function(){return this.wa}; h.Ka=function(){Ag(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.A[this.o[b]]);return a}; h.Na=function(){Ag(this);return this.o.concat()}; h.xe=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(yg(this.A,c)&&this.A[c]==a)return!0}return!1}; h.equals=function(a,b){if(this===a)return!0;if(this.wa!=a.Za())return!1;var c=b||zg;Ag(this);for(var d,e=0;d=this.o[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0}; h.isEmpty=function(){return 0==this.wa}; h.clear=function(){this.A={};this.be=this.wa=this.o.length=0}; h.remove=function(a){return yg(this.A,a)?(delete this.A[a],this.wa--,this.be++,this.o.length>2*this.wa&&Ag(this),!0):!1}; h.get=function(a,b){return yg(this.A,a)?this.A[a]:b}; h.set=function(a,b){yg(this.A,a)||(this.wa++,this.o.push(a),this.be++);this.A[a]=b}; h.forEach=function(a,b){for(var c=this.Na(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}}; h.clone=function(){return new wg(this)}; h.Ub=function(a){Ag(this);var b=0,c=this.be,d=this,e=new rg;e.next=function(){if(c!=d.be)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw tg;var e=d.o[b++];return a?e:d.A[e]}; return e};var Jg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Xg=/#|$/,Zg=/[?&]($|#)/;h=N.prototype;h.toString=function(){var a=[],b=this.C;b&&a.push(jh(b,l$,!0),":");var c=this.A;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(jh(b,l$,!0),"@"),a.push(va(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.A&&"/"!=c.charAt(0)&&a.push("/"),a.push(jh(c,"/"==c.charAt(0)?Pfa:Qfa,!0));(c=this.o.toString())&&a.push("?",c);(c=this.Ce())&&a.push("#",jh(c,Rfa));return a.join("")}; h.resolve=function(a){var b=this.clone(),c=!!a.C;c?ah(b,a.C):c=!!a.H;c?b.H=a.H:c=!!a.A;c?bh(b,a.A):c=null!=a.D;var d=a.B;if(c)ch(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.A&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ga(e,"./")||Ga(e,"/.")){for(var d=ta(e,"/"),e=e.split("/"),f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&f.push("")): (f.push(l),d=!0)}d=f.join("/")}else d=e}c?dh(b,d):c=""!==a.o.toString();c?eh(b,fh(a.o.toString())):c=!!a.J;c&&(b.J=a.Ce());return b}; h.clone=function(){return new N(this)}; h.ao=function(){return this.o.toString()}; h.Ce=function(){return this.J}; var l$=/[#\/\?@]/g,Qfa=/[\#\?:]/g,Pfa=/[\#\?]/g,kh=/[\#\?@]/g,Rfa=/#/g;h=gh.prototype;h.Za=function(){th(this);return this.wa}; h.remove=function(a){th(this);a=vh(this,a);return xg(this.o,a)?(this.A=null,this.wa-=this.o.get(a).length,this.o.remove(a)):!1}; h.clear=function(){this.o=this.A=null;this.wa=0}; h.isEmpty=function(){th(this);return 0==this.wa}; h.xe=function(a){var b=this.Ka();return ib(b,a)}; h.Na=function(){th(this);for(var a=this.o.Ka(),b=this.o.Na(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c}; h.Ka=function(a){th(this);var b=[];if(z(a))wh(this,a)&&(b=rb(b,this.o.get(vh(this,a))));else{a=this.o.Ka();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b}; h.set=function(a,b){th(this);this.A=null;a=vh(this,a);wh(this,a)&&(this.wa-=this.o.get(a).length);this.o.set(a,[b]);this.wa++;return this}; h.get=function(a,b){var c=a?this.Ka(a):[];return 0<c.length?String(c[0]):b}; h.toString=function(){if(this.A)return this.A;if(!this.o)return"";for(var a=[],b=this.o.Na(),c=0;c<b.length;c++)for(var d=b[c],e=va(d),d=this.Ka(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+va(d[f]));a.push(k)}return this.A=a.join("&")}; h.clone=function(){var a=new gh;a.A=this.A;this.o&&(a.o=this.o.clone(),a.wa=this.wa);return a}; h.extend=function(a){for(var b=0;b<arguments.length;b++)Eg(arguments[b],function(a,b){uh(this,b,a)},this)};/* Portions of this code are from the google-caja project, received by Google under the Apache license (http://code.google.com/p/google-caja/). All other code is Copyright 2009 Google, Inc. All Rights Reserved. // Copyright (C) 2006 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. */ var Ah=void 0;var Gh=wc?"webkit":tc?"moz":vc?"ms":Lf?"o":"",m$=u("yt.dom.getNextId_");if(!m$){m$=function(){return++Sfa}; q("yt.dom.getNextId_",m$,void 0);var Sfa=0};var Nh={enablejsapi:1},Oh={},Ph={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Mh.prototype.clone=function(){var a=new Mh,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ba(c)?a[b]=ec(c):a[b]=c}return a};var Uh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",n$=0<window.location.hash.indexOf("__CastInternalExtensionIds__"),o$=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm"],Tfa=["hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo","eojlgccfgnjlphjnlopmadngcgmmdgpk"],p$=["fjhoaacokmgbjemoflkofnenfaiekifl"],Ufa=["ekpaaapppgpmolpcldedioblbkmijaca", "lhkfccafpkdlaodkicmokbmfapjadkij","ibiljbkambkbohapfhoonkcpcikdglop","enhhojjnijigcajfphajepfemndkmdlo"],q$=n$?o$.concat(Tfa):o$,Vfa=n$?Ufa.concat(p$):p$,Sh=window.navigator.presentation?q$.concat(Vfa):q$;var M6=nc("Firefox"),BG=rc()||nc("iPod"),Iw=nc("iPad"),CG=nc("Android")&&!(qc()||nc("Firefox")||pc()||nc("Silk")),Fl=qc(),Et=nc("Safari")&&!(qc()||nc("Coast")||pc()||nc("Edge")||nc("Silk")||nc("Android"))&&!(rc()||nc("iPad")||nc("iPod"));var ii=H(),$h=null,gi=Array(50),fi=-1,hi=!1;var ti={};B(ui,F);h=ui.prototype;h.subscribe=function(a,b,c){var d=this.A[a];d||(d=this.A[a]=[]);var e=this.D;this.o[e]=a;this.o[e+1]=b;this.o[e+2]=c;this.D=e+3;d.push(e);return e}; h.unsubscribe=function(a,b,c){if(a=this.A[a]){var d=this.o;if(a=db(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Zb(a)}return!1}; h.Zb=function(a){var b=this.o[a];if(b){var c=this.A[b];0!=this.C?(this.B.push(a),this.o[a+1]=w):(c&&ob(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b}; h.R=function(a,b){var c=this.A[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.F)for(e=0;e<c.length;e++){var k=c[e];vi(this.o[k+1],this.o[k+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.o[k+1].apply(this.o[k+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Zb(c)}}return 0!=e}return!1}; h.clear=function(a){if(a){var b=this.A[a];b&&(E(b,this.Zb,this),delete this.A[a])}else this.o.length=0,this.A={}}; h.Za=function(a){if(a){var b=this.A[a];return b?b.length:0}a=0;for(b in this.A)a+=this.Za(b);return a}; h.T=function(){ui.N.T.call(this);this.clear();this.B.length=0};var yi=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",yi,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Hi=window.yt&&window.yt.msgs_||u("window.ytcfg.msgs")||{};q("yt.msgs_",Hi,void 0); var ra=function(a,b){var c=b||{},d=a in Hi?Hi[a]:a;if(d)for(var e in c)var f=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),f),d=d.replace(new RegExp("\\$"+e,"gi"),f);return d},$s=window.performance&&window.performance.now?function(){return window.performance.now()}:H;var Wfa=u("yt.pubsub.instance_")||new ui;ui.prototype.subscribe=ui.prototype.subscribe;ui.prototype.unsubscribeByKey=ui.prototype.Zb;ui.prototype.publish=ui.prototype.R;ui.prototype.clear=ui.prototype.clear;q("yt.pubsub.instance_",Wfa,void 0);var Li=u("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Li,void 0);var Ni=u("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ni,void 0);var Mi=u("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Mi,void 0); var Ki=u("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ki,void 0);B(Si,Ri);Si.prototype.Za=function(){var a=0;ug(this.Ub(!0),function(){a++}); return a}; Si.prototype.clear=function(){var a=vg(this.Ub(!0)),b=this;E(a,function(a){b.remove(a)})};B(Ti,Si);h=Ti.prototype;h.isAvailable=function(){if(!this.o)return!1;try{return this.o.setItem("__sak","1"),this.o.removeItem("__sak"),!0}catch(a){return!1}}; h.set=function(a,b){try{this.o.setItem(a,b)}catch(c){if(0==this.o.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; h.get=function(a){a=this.o.getItem(a);if(!z(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; h.remove=function(a){this.o.removeItem(a)}; h.Za=function(){return this.o.length}; h.Ub=function(a){var b=0,c=this.o,d=new rg;d.next=function(){if(b>=c.length)throw tg;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!z(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; h.clear=function(){this.o.clear()}; h.key=function(a){return this.o.key(a)};B(Ui,Ti);B(Vi,Ti);Wi.prototype.set=function(a,b){n(b)?this.o.set(a,de(b)):this.o.remove(a)}; Wi.prototype.get=function(a){var b;try{b=this.o.get(a)}catch(c){return}if(null!==b)try{return be(b)}catch(c){throw"Storage: Invalid value was encountered";}}; Wi.prototype.remove=function(a){this.o.remove(a)};B(Xi,Wi);Xi.prototype.set=function(a,b){Xi.N.set.call(this,a,Zi(b))}; Xi.prototype.A=function(a){a=Xi.N.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; Xi.prototype.get=function(a){if(a=this.A(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};B($i,Xi);$i.prototype.set=function(a,b,c){if(b=Zi(b)){if(c){if(c<H()){$i.prototype.remove.call(this,a);return}b.expiration=c}b.creation=H()}$i.N.set.call(this,a,b)}; $i.prototype.A=function(a,b){var c=$i.N.A.call(this,a);if(c)if(!b&&aj(c))$i.prototype.remove.call(this,a);else return c};B(bj,$i);var fj,r$=new Ui;fj=r$.isAvailable()?new bj(r$):null;var hj,s$=new Vi;hj=s$.isAvailable()?new bj(s$):null;var ek={rG:"atp",nI:"ska",ZH:"que",FH:"mus",kI:"sus"};var xj=null;"undefined"!=typeof window.XMLHttpRequest?xj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(xj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var zj={"X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};Hj.prototype.F=function(a,b,c,d){b?a(d):a({text:c.responseText})}; Hj.prototype.D=function(a,b){a(Error("Request error: "+b.status))}; Hj.prototype.G=function(a){a(Error("request timed out"))};Kj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.o+",status:"+this.status+"}"};B(Rj,F);Rj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.S.subscribe(a,b,c)}; Rj.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.S.unsubscribe(a,b,c)}; Rj.prototype.Zb=function(a){return this.isDisposed()?!1:this.S.Zb(a)}; Rj.prototype.R=function(a,b){return this.isDisposed()?!1:this.S.R.apply(this.S,arguments)};B(Sj,Rj);Sj.prototype.$b=function(){return this.screens}; Sj.prototype.contains=function(a){return!!Pj(this.screens,a)}; Sj.prototype.get=function(a){return a?Qj(this.screens,a):null}; Sj.prototype.info=function(a){ci(this.F,a)};B(Wj,Rj);var t$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=Wj.prototype;h.start=function(){!this.o&&(0,window.isNaN)(this.xa)&&this.kr()}; h.stop=function(){this.o&&(this.o.abort(),this.o=null);(0,window.isNaN)(this.xa)||(Di(this.xa),this.xa=window.NaN)}; h.T=function(){this.stop();Wj.N.T.call(this)}; h.kr=function(){this.xa=window.NaN;this.o=Bj(Ij(this.F,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:this.D},timeout:5E3,kb:A(this.NC,this),onError:A(this.MC,this),Vd:A(this.OC,this)})}; h.NC=function(a,b){this.o=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.R("pairingComplete",new ji(c))}; h.MC=function(a){this.o=null;a.status&&404==a.status?this.A>=t$.length?this.R("pairingFailed",Error("DIAL polling timed out")):(a=t$[this.A],this.xa=Ai(A(this.kr,this),a),this.A++):this.R("pairingFailed",Error("Server error "+a.status))}; h.OC=function(){this.o=null;this.R("pairingFailed",Error("Server not responding"))};B(Xj,Si);Xj.prototype.set=function(a,b){this.A.set(this.o+a,b)}; Xj.prototype.get=function(a){return this.A.get(this.o+a)}; Xj.prototype.remove=function(a){this.A.remove(this.o+a)}; Xj.prototype.Ub=function(a){var b=this.A.Ub(!0),c=this,d=new rg;d.next=function(){for(var d=b.next();d.substr(0,c.o.length)!=c.o;)d=b.next();return a?d.substr(c.o.length):c.A.get(d)}; return d};h=Zj.prototype;h.Za=function(){return this.o.Za()}; h.removeAll=function(a){a=Cg(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])}; h.remove=function(a){return this.o.remove(bk(a))}; h.clear=function(){this.o.clear()}; h.isEmpty=function(){return this.o.isEmpty()}; h.contains=function(a){return xg(this.o,bk(a))}; h.Ka=function(){return this.o.Ka()}; h.clone=function(){return new Zj(this)}; h.equals=function(a){return this.Za()==Bg(a)&&ck(this,a)}; h.Ub=function(){return this.o.Ub(!1)};dk.prototype.equals=function(a){return a?this.id==a.id:!1};var hk=/\s*;\s*/;h=fk.prototype;h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');n(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(H()+1E3*c)).toUTCString();this.o.cookie=a+"="+b+e+d+c+f}; h.get=function(a,b){for(var c=a+"=",d=(this.o.cookie||"").split(hk),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b}; h.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d}; h.Na=function(){return gk(this).keys}; h.Ka=function(){return gk(this).values}; h.isEmpty=function(){return!this.o.cookie}; h.Za=function(){return this.o.cookie?(this.o.cookie||"").split(hk).length:0}; h.xe=function(a){for(var b=gk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1}; h.clear=function(){for(var a=gk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])}; var jk=new fk(window.document);jk.A=3950;var Ak,qk="";B(Bk,Sj);h=Bk.prototype;h.start=function(){Ck(this)&&this.R("screenChange");!ij("yt-remote-lounge-token-expiration")&&Dk(this);Di(this.o);this.o=Ai(A(this.start,this),1E4)}; h.lj=function(a,b){Ck(this);Tj(this,a);Ek(this,!1);this.R("screenChange");b(a);a.token||Dk(this)}; h.remove=function(a,b){var c=Ck(this);Vj(this,a)&&(Ek(this,!1),c=!0);b(a);c&&this.R("screenChange")}; h.ej=function(a,b,c,d){var e=Ck(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Ek(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.R("screenChange")}; h.T=function(){Di(this.o);Bk.N.T.call(this)}; h.pw=function(a){Ck(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}Ek(this,!b);b&&ci(this.F,"Missed "+b+" lounge tokens.")}; h.ow=function(a){ci(this.F,"Requesting lounge tokens failed: "+a)};B(Fk,Rj);h=Fk.prototype;h.start=function(){var a=(0,window.parseInt)(ij("yt-remote-fast-check-period")||"0",10);(this.C=H()-144E5<a?0:a)?Kk(this):(this.C=H()+3E5,gj("yt-remote-fast-check-period",this.C),this.Jl())}; h.isEmpty=function(){return ac(this.o)}; h.update=function(){Gk("Updating availability on schedule.");var a=this.D(),b=Pb(this.o,function(b,d){return b&&!!Qj(a,d)},this); Ik(this,b)}; h.T=function(){Di(this.B);this.B=window.NaN;this.A&&(this.A.abort(),this.A=null);Fk.N.T.call(this)}; h.Jl=function(){Di(this.B);this.B=window.NaN;this.A&&this.A.abort();var a=Lk(this);if(Sb(a)){var b=Ij(this.F,"/pairing/get_screen_availability"),c={lounge_token:Wb(a).join(",")};this.A=Jj(this.F,b,c,A(this.JA,this,a),A(this.IA,this))}else Ik(this,{}),Kk(this)}; h.JA=function(a,b){this.A=null;var c=Wb(Lk(this));if(Eb(c,Wb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Ik(this,d);Kk(this)}else this.Ya("Changing Screen set during request."),this.Jl()}; h.IA=function(a){this.Ya("Screen availability failed: "+a);this.A=null;Kk(this)}; h.Ya=function(a){ci("OnlineScreenService",a)};B(Mk,Sj);h=Mk.prototype;h.start=function(){this.A.start();this.o.start();this.screens.length&&(this.R("screenChange"),this.o.isEmpty()||this.R("onlineScreenChange"))}; h.lj=function(a,b,c){this.A.lj(a,b,c)}; h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()}; h.ej=function(a,b,c,d){this.A.contains(a)?this.A.ej(a,b,c,d):(a="Updating name of unknown screen: "+a.name,ci(this.F,a),d(Error(a)))}; h.$b=function(a){return a?this.screens:rb(this.screens,$d(this.B,function(a){return!this.contains(a)},this))}; h.lr=function(){return $d(this.$b(!0),function(a){return!!this.o.o[a.id]},this)}; h.mr=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Wj(this.D,a,b,c);f.subscribe("pairingComplete",A(function(a){Lb(f);d(Pk(this,a))},this)); f.subscribe("pairingFailed",function(a){Lb(f);e(a)}); f.start();return A(f.stop,f)}; h.aw=function(a,b){for(var c=2,d=b(a,c);Rk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d}; h.QC=function(a,b,c,d){Bj(Ij(this.D,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:a},timeout:5E3,kb:A(function(a,d){var k=new ji(d.screen||{});if(!k.name||Rk(this,k.name))k.name=this.aw(k.name,b);c(Pk(this,k))},this), onError:A(function(a){d(Error("pairing request failed: "+a.status))},this), Vd:A(function(){d(Error("pairing request timed out."))},this)})}; h.T=function(){Lb(this.A);Lb(this.o);Mk.N.T.call(this)}; h.Cw=function(){Sk(this);this.R("screenChange");this.o.update()}; Mk.prototype.dispose=Mk.prototype.dispose;B(Uk,Rj);h=Uk.prototype;h.Ki=function(a){this.B=a;this.R("sessionScreen",this.B)}; h.Xb=function(a){this.isDisposed()||(a&&Vk(this,""+a),this.B=null,this.R("sessionScreen",null))}; h.info=function(a){ci(this.M,a)}; h.or=function(){return null}; h.Ql=function(a){var b=this.A;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,A(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),A(function(){Vk(this,"Failed to update receiver status for: "+b.friendlyName)},this))}; h.T=function(){this.Ql("");Uk.N.T.call(this)};B(Wk,Uk);h=Wk.prototype;h.Pl=function(a){if(this.o){if(this.o==a)return;Vk(this,"Overriding cast sesison with new session object");this.o.removeUpdateListener(this.G);this.o.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.F)}this.o=a;this.o.addUpdateListener(this.G);this.o.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.F);this.C&&Yk(this);Zk(this,"getMdxSessionStatus")}; h.Af=function(a){this.info("launchWithParams: "+de(a));this.C=a;this.o&&Yk(this)}; h.stop=function(){this.o?this.o.stop(A(function(){this.Xb()},this),A(function(){this.Xb(Error("Failed to stop receiver app."))},this)):this.Xb(Error("Stopping cast device witout session."))}; h.Ql=w;h.T=function(){this.info("disposeInternal");Di(this.D);this.D=0;this.o&&(this.o.removeUpdateListener(this.G),this.o.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.F));this.o=null;Wk.N.T.call(this)}; h.EB=function(a,b){if(!this.isDisposed())if(b){var c=ce(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+de(c));switch(d){case "mdxSessionStatus":Xk(this,c.screenId);break;default:Vk(this,"Unknown youtube message: "+d)}}else Vk(this,"Unable to parse message.")}else Vk(this,"No data in message.")}; h.Zn=function(a,b,c,d){Ok(this.J,this.A.label,a,this.A.friendlyName,A(function(e){e?b(e):0<=d?(Vk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Ai(A(this.Zn,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)}; h.or=function(){return this.o}; h.SC=function(a){this.isDisposed()||a||(Vk(this,"Cast session died."),this.Xb())};B($k,Uk);h=$k.prototype;h.Pl=function(a){this.D=a;this.D.addUpdateListener(this.L)}; h.Af=function(a){this.C=a;this.G()}; h.stop=function(){this.o();this.o=w;Di(this.F);this.D?this.D.stop(A(this.Xb,this,null),A(this.Xb,this,"Failed to stop DIAL device.")):this.Xb()}; h.T=function(){this.o();this.o=w;Di(this.F);this.D&&this.D.removeUpdateListener(this.L);this.D=null;$k.N.T.call(this)}; h.VC=function(a){this.isDisposed()||a||(Vk(this,"DIAL session died."),this.o(),this.o=w,this.Xb())}; h.$k=function(a){this.K=Lj();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,bl(this));a(b);al(this)}else this.G=A(function(){Di(this.F);this.G=w;this.F=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,bl(this));a(b);al(this)},this),this.F=Ai(A(function(){this.G()},this),100)}; h.Ax=function(a,b){Ok(this.J,this.H.receiver.label,a,this.A.friendlyName,A(function(a){a&&a.token?(this.Ki(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.$k(b)},this),A(function(a){Vk(this,"Failed to get DIAL screen: "+a); this.$k(b)},this))};B(cl,Uk);cl.prototype.stop=function(){this.Xb()}; cl.prototype.Pl=w;cl.prototype.Af=function(){Di(this.o);this.o=window.NaN;var a=Qj(this.J.$b(),this.A.label);a?this.Ki(a):this.Xb(Error("No such screen"))}; cl.prototype.T=function(){Di(this.o);this.o=window.NaN;cl.N.T.call(this)};B(dl,Rj);h=dl.prototype; h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest("233637DE");c.dialRequest=new window.chrome.cast.DialRequest("YouTube");var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new window.chrome.cast.ApiConfig(c,A(this.Up,this),A(this.BA,this),d,e);c.customDialLaunchCallback=A(this.mz,this);window.chrome.cast.initialize(c,A(function(){this.isDisposed()|| (window.chrome.cast.addReceiverActionListener(this.C),Yh(gl),this.A.subscribe("onlineScreenChange",A(this.nr,this)),this.B=jl(this),window.chrome.cast.setCustomReceivers(this.B,w,A(function(a){this.Ya("Failed to set initial custom receivers: "+de(a))},this)),this.R("yt-remote-cast2-availability-change",hl(this)),b(!0))},this),A(function(a){this.Ya("Failed to initialize API: "+de(a)); b(!1)},this))}; h.fC=function(a,b){fl("Setting connected screen ID: "+a+" -> "+b);if(this.o){var c=this.o.B;if(!a||c&&c.id!=a)fl("Unsetting old screen status: "+this.o.A.friendlyName),Lb(this.o),this.o=null}if(a&&b){if(!this.o){c=Qj(this.A.$b(),a);if(!c){fl("setConnectedScreenStatus: Unknown screen.");return}var d=el(this,c);d||(fl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.o?c.o:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.B.push(d), window.chrome.cast.setCustomReceivers(this.B,w,A(function(a){this.Ya("Failed to set initial custom receivers: "+de(a))},this))); fl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);il(this,new cl(this.A,d),!0)}this.o.Ql(b)}else fl("setConnectedScreenStatus: no screen.")}; h.gC=function(a){this.isDisposed()?this.Ya("Setting connection data on disposed cast v2"):this.o?this.o.Af(a):this.Ya("Setting connection data without a session")}; h.UC=function(){this.isDisposed()?this.Ya("Stopping session on disposed cast v2"):this.o?(this.o.stop(),Lb(this.o),this.o=null):fl("Stopping non-existing session")}; h.requestSession=function(){window.chrome.cast.requestSession(A(this.Up,this),A(this.NA,this))}; h.T=function(){this.A.unsubscribe("onlineScreenChange",A(this.nr,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.C);bi(gl);Lb(this.o);dl.N.T.call(this)}; h.Ya=function(a){ci("Controller",a)}; h.Vp=function(a,b){this.o==a&&(b||il(this,null),this.R("yt-remote-cast2-session-change",b))}; h.zA=function(a,b){if(!this.isDisposed())if(a)switch(fl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.o)if(this.o.A.label!=a.label)fl("onReceiverAction_: Stopping active receiver: "+this.o.A.friendlyName),this.o.stop();else{fl("onReceiverAction_: Casting to active receiver.");this.o.B&&this.R("yt-remote-cast2-session-change",this.o.B);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:il(this,new cl(this.A,a)); break;case window.chrome.cast.ReceiverType.DIAL:il(this,new $k(this.A,a));break;case window.chrome.cast.ReceiverType.CAST:il(this,new Wk(this.A,a));break;default:this.Ya("Unknown receiver type: "+a.receiverType);return}break;case window.chrome.cast.ReceiverAction.STOP:this.o&&this.o.A.label==a.label?this.o.stop():this.Ya("Stopping receiver w/o session: "+a.friendlyName)}else this.Ya("onReceiverAction_ called without receiver.")}; h.mz=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.Ya("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.o?this.o.A:null;if(!c||c.label!=b.label)return this.Ya("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.o.B)return fl("Reselecting dial screen."), this.R("yt-remote-cast2-session-change",this.o.B),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Ya('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);il(this,new $k(this.A,b))}b=this.o;b.H=a;return b.H.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(A(b.Ax,b,(b.H.extraData||{}).screenId||null)):new window.Promise(A(b.$k,b))}; h.Up=function(a){if(!this.isDisposed()){fl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.o)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)fl("Got resumed cast session before resumed mdx connection."),il(this,new Wk(this.A,b),!0);else{this.Ya("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.o.A,d=Qj(this.A.$b(),c.label);d&&ki(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&& b.receiverType==window.chrome.cast.ReceiverType.CAST&&(fl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Lb(this.o),this.o=new Wk(this.A,b),this.o.subscribe("sessionScreen",A(this.Vp,this,this.o)),this.o.Af(null));this.o.Pl(a)}}}; h.TC=function(){return this.o?this.o.or():null}; h.NA=function(a){this.isDisposed()||(this.Ya("Failed to estabilish a session: "+de(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&il(this,null))}; h.BA=function(a){fl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=hl(this);this.D=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;hl(this)!=b&&this.R("yt-remote-cast2-availability-change",hl(this))}}; h.nr=function(){if(!this.isDisposed()){var a=hl(this);this.B=jl(this);fl("Updating custom receivers: "+de(this.B));window.chrome.cast.setCustomReceivers(this.B,w,A(function(){this.Ya("Failed to set custom receivers.")},this)); var b=hl(this);b!=a&&this.R("yt-remote-cast2-availability-change",b)}}; dl.prototype.setLaunchParams=dl.prototype.gC;dl.prototype.setConnectedScreenStatus=dl.prototype.fC;dl.prototype.stopSession=dl.prototype.UC;dl.prototype.getCastSession=dl.prototype.TC;dl.prototype.requestSession=dl.prototype.requestSession;dl.prototype.init=dl.prototype.init;dl.prototype.dispose=dl.prototype.dispose;var ul=null,wl=[];Il.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Il.prototype.Oo=function(){return this.event?!1===this.event.returnValue:!1}; Il.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; var Jl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Ml=u("yt.events.listeners_")||{};q("yt.events.listeners_",Ml,void 0);var Ol=u("yt.events.counter_")||{count:0};q("yt.events.counter_",Ol,void 0);var jm=!1,hm=null,km=u("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",km,void 0);new wm;wm.prototype.set=function(a){this.o=a}; wm.prototype.reset=function(){this.set(H())}; wm.prototype.get=function(){return this.o};xm.prototype.stringify=function(a){return this.A.mc(a)}; xm.prototype.parse=function(a){return this.o(a)};h=ym.prototype;h.get=function(a){a=zm(this,a);return this.o[a]}; h.set=function(a,b){a=zm(this,a);this.o[a]=b}; h.Za=function(){return this.o.length}; h.isEmpty=function(){return 0==this.o.length}; h.clear=function(){this.A=this.o.length=0}; h.Ka=function(){for(var a=this.Za(),b=this.Za(),c=[],a=this.Za()-a;a<b;a++)c.push(this.get(a));return c}; h.Na=function(){for(var a=[],b=this.Za(),c=0;c<b;c++)a[c]=c;return a}; h.xe=function(a){for(var b=this.Za(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};B(Am,F);h=Am.prototype;h.Mf=!1;h.Og=0;h.xa=null;h.jf=function(a){this.o=arguments;this.xa||this.Og?this.Mf=!0:Bm(this)}; h.stop=function(){this.xa&&(Td(this.xa),this.xa=null,this.Mf=!1,this.o=[])}; h.pause=function(){this.Og++}; h.resume=function(){this.Og--;this.Og||!this.Mf||this.xa||(this.Mf=!1,Bm(this))}; h.T=function(){Am.N.T.call(this);this.stop()}; h.YA=function(){this.xa=null;this.Mf&&!this.Og&&(this.Mf=!1,Bm(this))};B(Cm,F);var Fm=[];h=Cm.prototype;h.P=function(a,b,c,d){return Em(this,a,b,c,d)}; h.ya=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)this.ya(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.C||this,c=Oc(c),d=!!d,b=Dc(a)?Mc(a.gd,String(b),c,d,e):a?(a=Qc(a))?Mc(a,b,c,d,e):null:null,b&&(Zc(b),delete this.A[b.key]);return this}; h.removeAll=function(){Ob(this.A,function(a,b){this.A.hasOwnProperty(b)&&Zc(a)},this); this.A={}}; h.T=function(){Cm.N.T.call(this);this.removeAll()}; h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Km.prototype.o=null;var u$;B(Nm,Km);u$=new Nm;h=Pm.prototype;h.Ee=null;h.Jc=!1;h.Uf=null;h.lm=null;h.Sg=null;h.kf=null;h.Md=null;h.Zd=null;h.Me=null;h.vb=null;h.bh=0;h.Kc=null;h.ij=null;h.Fe=null;h.Dg=-1;h.yq=!0;h.te=!1;h.Hk=0;h.Oi=null;var Ym={},Wm={};h=Pm.prototype;h.setTimeout=function(a){this.D=a}; h.RB=function(a){a=a.target;var b=this.Oi;b&&3==Bn(a)?b.jf():this.Zq(a)}; h.Zq=function(a){try{if(a==this.vb)a:{var b=Bn(this.vb),c=this.vb.A,d=this.vb.getStatus();if(vc&&!(10<=Yf)||wc&&!yc("420+")){if(4>b)break a}else if(3>b||3==b&&!Lf&&!En(this.vb))break a;this.te||4!=b||7==c||(8==c||0>=d?this.o.Hc(3):this.o.Hc(2));gn(this);var e=this.vb.getStatus();this.Dg=e;var f=En(this.vb);(this.Jc=200==e)?(4==b&&$m(this),this.F?(Um(this,b,f),Lf&&this.Jc&&3==b&&(this.C.P(this.A,"tick",this.LB),this.A.start())):Zm(this,f),this.Jc&&!this.te&&(4==b?this.o.Ji(this):(this.Jc=!1,Tm(this)))): (this.Fe=400==e&&0<f.indexOf("Unknown SID")?3:0,Xm(),$m(this),an(this))}}catch(k){this.vb&&En(this.vb)}finally{}}; h.LB=function(){var a=Bn(this.vb),b=En(this.vb);this.bh<b.length&&(gn(this),Um(this,a,b),this.Jc&&4!=a&&Tm(this))}; h.gB=function(a){fn(A(this.fB,this,a),0)}; h.fB=function(a){this.te||(gn(this),Zm(this,a),Tm(this))}; h.aq=function(a){fn(A(this.eB,this,a),0)}; h.eB=function(a){this.te||($m(this),this.Jc=a,this.o.Ji(this),this.o.Hc(4))}; h.cancel=function(){this.te=!0;$m(this)}; h.xB=function(){this.Uf=null;var a=H();0<=a-this.lm?(2!=this.kf&&this.o.Hc(3),$m(this),this.Fe=2,Xm(),an(this)):en(this,this.lm-a)};h=mn.prototype;h.Ek=null;h.Yb=null;h.Pi=!1;h.eo=null;h.Zh=null;h.Fk=null;h.Gk=null;h.jc=null;h.kd=-1;h.Cg=null;h.ng=null;h.connect=function(a){this.Gk=a;a=on(this.o,null,this.Gk);Xm();this.eo=H();var b=this.o.H;null!=b?(this.Cg=b[0],(this.ng=b[1])?(this.jc=1,nn(this)):(this.jc=2,pn(this))):(nh(a,"MODE","init"),this.Yb=new Pm(this,0,void 0,void 0,void 0),this.Yb.Ee=this.Ek,Sm(this.Yb,a,!1,null,!0),this.jc=0)}; h.pv=function(a){if(a)this.jc=2,pn(this);else{Xm();var b=this.o;b.Dc=b.Id.kd;Xn(b,9)}a&&this.Hc(2)}; h.jk=function(a){return this.o.jk(a)}; h.co=function(){return!1}; h.Rp=function(a,b){this.kd=a.Dg;if(0==this.jc)if(b){try{var c=this.A.parse(b)}catch(d){c=this.o;c.Dc=this.kd;Xn(c,2);return}this.Cg=c[0];this.ng=c[1]}else c=this.o,c.Dc=this.kd,Xn(c,2);else if(2==this.jc)if(this.Pi)Xm(),this.Fk=H();else if("11111"==b){if(Xm(),this.Pi=!0,this.Zh=H(),c=this.Zh-this.eo,!vc||10<=Yf||500>c)this.kd=200,this.Yb.cancel(),Xm(),qn(this.o,this,!0)}else Xm(),this.Zh=this.Fk=H(),this.Pi=!1}; h.Ji=function(){this.kd=this.Yb.Dg;if(this.Yb.Jc)0==this.jc?this.ng?(this.jc=1,nn(this)):(this.jc=2,pn(this)):2==this.jc&&(a=!1,(a=!vc||10<=Yf?this.Pi:200>this.Fk-this.Zh?!1:!0)?(Xm(),qn(this.o,this,!0)):(Xm(),qn(this.o,this,!1)));else{0==this.jc?Xm():2==this.jc&&Xm();var a=this.o;a.Dc=this.kd;Xn(a,2)}}; h.Xg=function(){return this.o.Xg()}; h.isActive=function(){return this.o.isActive()}; h.Hc=function(a){this.o.Hc(a)};B(rn,dd);var Cn=/^https?$/i,Xfa=["POST","PUT"];h=rn.prototype; h.send=function(a,b,c,d){if(this.o)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+a);b=b?b.toUpperCase():"GET";this.H=a;this.F="";this.A=0;this.U=b;this.S=!1;this.B=!0;this.o=this.M?Om(this.M):Om(u$);this.L=this.M?Lm(this.M):Lm(u$);this.o.onreadystatechange=A(this.Np,this);try{vm(yn(this,"Opening Xhr")),this.O=!0,this.o.open(b,String(a),!0),this.O=!1}catch(f){vm(yn(this,"Error opening Xhr: "+f.message));vn(this,f);return}a=c||"";var e=this.headers.clone(); d&&Eg(d,function(a,b){e.set(b,a)}); d=db(e.Na(),un);c=r.FormData&&a instanceof r.FormData;!ib(Xfa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.o.setRequestHeader(b,a)},this); this.Y&&(this.o.responseType=this.Y);Yb(this.o,"withCredentials")&&(this.o.withCredentials=this.V);try{Dn(this),0<this.D&&(this.K=tn(this.o),vm(yn(this,"Will abort after "+this.D+"ms if incomplete, xhr2 "+this.K)),this.K?(this.o.timeout=this.D,this.o.ontimeout=A(this.fo,this)):this.J=Sd(this.fo,this.D,this)),vm(yn(this,"Sending request")),this.G=!0,this.o.send(a),this.G=!1}catch(f){vm(yn(this,"Send error: "+f.message)),vn(this,f)}}; h.fo=function(){"undefined"!=typeof An&&this.o&&(this.F="Timed out after "+this.D+"ms, aborting",this.A=8,yn(this,this.F),this.$("timeout"),hn(this,8))}; h.T=function(){this.o&&(this.B&&(this.B=!1,this.C=!0,this.o.abort(),this.C=!1),xn(this,!0));rn.N.T.call(this)}; h.Np=function(){this.isDisposed()||(this.O||this.G||this.C?zn(this):this.yA())}; h.yA=function(){zn(this)}; h.isActive=function(){return!!this.o}; h.getStatus=function(){try{return 2<Bn(this)?this.o.status:-1}catch(a){return-1}};h=Fn.prototype;h.vg=null;h.Pb=null;h.ob=null;h.Dk=null;h.$h=null;h.An=null;h.ii=null;h.Kg=0;h.Xx=0;h.Hb=null;h.Jd=null;h.ed=null;h.ye=null;h.Id=null;h.hj=null;h.zf=-1;h.Vo=-1;h.Dc=-1;h.xg=0;h.Ze=0;h.ve=8;var Zn=new dd;B(Hn,jc);B(In,jc);B(Jn,jc);h=Fn.prototype;h.connect=function(a,b,c,d,e){Xm();this.Dk=b;this.vg=c||{};d&&n(e)&&(this.vg.OSID=d,this.vg.OAID=e);this.Id=new mn(this);this.Id.Ek=null;this.Id.A=this.D;this.Id.connect(a)}; h.co=function(){return 0==this.o}; h.Yp=function(a){this.Jd=null;Rn(this,a)}; h.Xp=function(){this.ed=null;this.ob=new Pm(this,0,this.B,"rpc",this.F);this.ob.Ee=null;this.ob.Hk=0;var a=this.An.clone();mh(a,"RID","rpc");mh(a,"SID",this.B);mh(a,"CI",this.hj?"0":"1");mh(a,"AID",this.zf);Mn(this,a);if(!vc||10<=Yf)mh(a,"TYPE","xmlhttp"),Sm(this.ob,a,!0,this.ii,!1);else{mh(a,"TYPE","html");var b=this.ob,c=Boolean(this.ii);b.kf=3;b.Md=ph(a.clone());bn(b,c)}}; h.Rp=function(a,b){if(0!=this.o&&(this.ob==a||this.Pb==a))if(this.Dc=a.Dg,this.Pb==a&&3==this.o)if(7<this.ve){var c;try{c=this.D.parse(b)}catch(f){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.ed){if(this.ob)if(this.ob.Sg+3E3<this.Pb.Sg)On(this),this.ob.cancel(),this.ob=null;else break a;Vn(this);Xm()}}else this.Vo=c[1],0<this.Vo-this.zf&&37500>c[2]&&this.hj&&0==this.Ze&&!this.ye&&(this.ye=fn(A(this.Ey,this),6E3));else Xn(this,11)}else"y2f%"!=b&&Xn(this,11);else if(this.ob==a&&On(this),!C(b)){c= this.D.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.zf=e[0];e=e[1];2==this.o?"c"==e[0]?(this.B=e[1],this.ii=e[2],e=e[3],null!=e?this.ve=e:this.ve=6,this.o=3,this.Hb&&this.Hb.Hn(this),this.An=on(this,this.Xg()?this.ii:null,this.Dk),Un(this)):"stop"==e[0]&&Xn(this,7):3==this.o&&("stop"==e[0]?Xn(this,7):"noop"!=e[0]&&this.Hb&&this.Hb.Gn(this,e),this.Ze=0)}}}; h.Ey=function(){null!=this.ye&&(this.ye=null,this.ob.cancel(),this.ob=null,Vn(this),Xm())}; h.Ji=function(a){var b;if(this.ob==a)On(this),this.ob=null,b=2;else if(this.Pb==a)this.Pb=null,b=1;else return;this.Dc=a.Dg;if(0!=this.o)if(a.Jc)1==b?(H(),Zn.$(new In(Zn,a.Me?a.Me.length:0)),Qn(this),this.C.length=0):Un(this);else{var c=a.Fe,d;if(!(d=3==c||7==c||0==c&&0<this.Dc)){if(d=1==b)this.Pb||this.Jd||1==this.o||2<=this.xg?d=!1:(this.Jd=fn(A(this.Yp,this,a),Wn(this,this.xg)),this.xg++,d=!0);d=!(d||2==b&&Vn(this))}if(d)switch(c){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this, 6);break;case 7:Xn(this,12);break;default:Xn(this,2)}}}; h.Nv=function(a){if(!ib(arguments,this.o))throw Error("Unexpected channel state: "+this.o);}; h.qC=function(a){a?Xm():(Xm(),Yn(this,8))}; h.jk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new rn;a.V=!1;return a}; h.isActive=function(){return!!this.Hb&&this.Hb.isActive(this)}; h.Hc=function(){Zn.$(new Jn(Zn))}; h.Xg=function(){return!(!vc||10<=Yf)}; h=$n.prototype;h.Hn=function(){}; h.Gn=function(){}; h.Fn=function(){}; h.bk=function(){}; h.Un=function(){return{}}; h.isActive=function(){return!0};B(ao,Qd);ao.prototype.F=function(){if(500<this.o){var a=this.o;24E4>2*a&&(a*=2);Rd(this,a)}this.G()}; ao.prototype.start=function(){ao.N.start.call(this);this.D=H()+this.o}; ao.prototype.stop=function(){this.D=0;ao.N.stop.call(this)};B(bo,$n);h=bo.prototype;h.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)}; h.unsubscribe=function(a,b,c){return this.B.unsubscribe(a,b,c)}; h.Zb=function(a){return this.B.Zb(a)}; h.R=function(a,b){return this.B.R.apply(this.B,arguments)}; h.dispose=function(){this.K||(this.K=!0,this.B.clear(),eo(this),Lb(this.B))}; h.isDisposed=function(){return this.K}; h.connect=function(a,b,c){if(!this.o||2!=this.o.o){this.J="";this.A.stop();this.F=a||null;this.D=b||0;a=this.L+"/test";b=this.L+"/bind";var d=new Fn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.o;e&&(e.Hb=null);d.Hb=this;this.o=d;e?this.o.connect(a,b,this.C,e.B,e.zf):c?this.o.connect(a,b,this.C,c.sessionId,c.arrayId):this.o.connect(a,b,this.C)}}; h.sendMessage=function(a,b){var c={_sc:a};b&&gc(c,b);this.A.enabled||2==(this.o?this.o.o:0)?this.G.push(c):this.o&&3==this.o.o&&Pn(this.o,c)}; h.Hn=function(){var a=this.A;a.stop();Rd(a,5E3+2E4*Math.random());this.F=null;this.D=0;if(this.G.length){a=this.G;this.G=[];for(var b=0,c=a.length;b<c;++b)Pn(this.o,a[b])}this.R("handlerOpened")}; h.Fn=function(a,b){var c=2==b&&401==this.o.Dc;if(4!=b&&!c){if(6==b||410==this.o.Dc)c=this.A,c.stop(),Rd(c,500);this.A.start()}this.R("handlerError",b)}; h.bk=function(a,b,c){if(!this.A.enabled)this.R("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.G.push(c[a].map)}; h.Un=function(){var a={v:2};this.J&&(a.gsessionid=this.J);0!=this.D&&(a.ui=""+this.D);0!=this.H&&(a.ui=""+this.H);this.F&&gc(a,this.F);return a}; h.Gn=function(a,b){if("S"==b[0])this.J=b[1];else if("gracefulReconnect"==b[0]){var c=this.A;c.stop();Rd(c,500);this.A.start();Kn(this.o)}else this.R("handlerMessage",new Hl(b[0],b[1]))}; h.LC=function(){this.A.stop();var a=this.o,b=0;a.ob&&b++;a.Pb&&b++;0!=b?this.A.start():this.connect(this.F,this.D)};h=go.prototype;h.Za=function(){return this.o.length+this.A.length}; h.isEmpty=function(){return kb(this.o)&&kb(this.A)}; h.clear=function(){this.o=[];this.A=[]}; h.contains=function(a){return ib(this.o,a)||ib(this.A,a)}; h.remove=function(a){var b=Hfa(this.o,a);if(0>b)return ob(this.A,a);pb(this.o,b);return!0}; h.Ka=function(){for(var a=[],b=this.o.length-1;0<=b;--b)a.push(this.o[b]);for(var c=this.A.length,b=0;b<c;++b)a.push(this.A[b]);return a};h=lo.prototype;h.reset=function(a){this.videoIds=[];this.A="";oo(this);a&&(this.videoIds=a.videoIds,this.index=a.index,this.A=a.listId,this.videoId=a.videoId,this.o=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.B=a.trackData,this.C=a.playerTime,this.D=a.playerTimeAt)}; h.Wa=function(){return 1==this.o}; h.setVideoId=function(a){mo(this,"setVideoId");var b=this.index;this.index=jb(this.videoIds,a);b!=this.index&&no(this);return-1!=b}; h.remove=function(a){mo(this,"remove");var b=po(this);return ob(this.videoIds,a)?(this.index=jb(this.videoIds,b),!0):!1}; h.clone=function(){return new lo(uo(this))};B(vo,Rj);h=vo.prototype;h.play=function(){1==this.A?(this.o?this.o.play(null,w,A(function(){this.Ya("Failed to play video with cast v2 channel.");Ao(this,"play")},this)):Ao(this,"play"),Eo(this,1,ro(yo(this))),Fo(this)):Do(this,this.play)}; h.pause=function(){1==this.A?(this.o?this.o.pause(null,w,A(function(){this.Ya("Failed to pause video with cast v2 channel.");Ao(this,"pause")},this)):Ao(this,"pause"),Eo(this,2,ro(yo(this))),Fo(this)):Do(this,this.pause)}; h.ir=function(a){if(1==this.A){if(this.o){var b=yo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.Wa()||3==b.o?window.chrome.cast.media.ResumeState.PLAYBACK_START:window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.o.seek(c,w,A(function(){this.Ya("Failed to seek in video with cast v2 channel.");Ao(this,"seekTo",{newTime:a})},this))}else Ao(this,"seekTo",{newTime:a}); Eo(this,3,a);Fo(this)}else Do(this,pa(this.ir,a))}; h.stop=function(){if(1==this.A){this.o?this.o.stop(null,w,A(function(){this.Ya("Failed to stop video with cast v2 channel.");Ao(this,"stopVideo")},this)):Ao(this,"stopVideo"); var a=yo(this);oo(a);Bo(this,a);Fo(this)}else Do(this,this.stop)}; h.setVolume=function(a,b){if(1==this.A){var c=yo(this);if(this.B){if(c.volume!=a){var d=Math.round(a)/100;this.B.setReceiverVolumeLevel(d,A(function(){Go("set receiver volume: "+d)},this),A(function(){this.Ya("failed to set receiver volume.")},this))}c.muted!=b&&this.B.setReceiverMuted(b,A(function(){Go("set receiver muted: "+b)},this),A(function(){this.Ya("failed to set receiver muted.")},this))}else{var e={volume:a, muted:b};-1!=c.volume&&(e.delta=a-c.volume);Ao(this,"setVolume",e)}c.muted=b;c.volume=a;Bo(this,c);Fo(this)}else Do(this,pa(this.setVolume,a,b))}; h.Sl=function(a,b){if(1==this.A){var c=yo(this);if(b){c.B={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:de(b.style)};gc(d,c.B);Ao(this,"setSubtitlesTrack",d)}else d={videoId:a},Ao(this,"setSubtitlesTrack",d);Bo(this,c)}else Do(this,pa(this.Sl,a,b))}; h.jr=function(a,b){if(1==this.A){Ao(this,"setAudioTrack",{videoId:a,audioTrackId:b.Ib.id});var c=yo(this);c.audioTrackId=b.Ib.id;Bo(this,c)}else Do(this,pa(this.jr,a,b))}; h.dispose=function(){if(3!=this.A){var a=this.A;this.A=3;this.R("proxyStateChange",a,this.A)}vo.N.dispose.call(this)}; h.T=function(){Di(this.D);this.D=window.NaN;Co(this);this.C=null;this.F.clear();xo(this,null);vo.N.T.call(this)}; h.ym=function(a){if((a!=this.A||2==a)&&3!=this.A&&0!=a){var b=this.A;this.A=a;this.R("proxyStateChange",b,a);if(1==a)for(;!this.F.isEmpty();)jo(this.F).apply(this);else 3==a&&this.dispose()}}; h.rA=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.D))&&this.R(a)}; h.Jy=function(a){if(!a)this.Lg(null),xo(this,null);else if(this.B.receiver.volume){a=this.B.receiver.volume;var b=yo(this);if(b.volume!=a.level||b.muted!=a.muted)Go("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,Bo(this,b),Fo(this)}}; h.Lg=function(a){Go("Cast media: "+!!a);this.o&&this.o.removeUpdateListener(this.J);if(this.o=a)this.o.addUpdateListener(this.J),Ho(this),Fo(this)}; h.Iy=function(a){a?(Ho(this),Fo(this)):this.Lg(null)}; h.Ya=function(a){ci("CP",a)};B(Io,Rj);h=Io.prototype; h.connect=function(a,b){if(b){if(this.ta.A){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);k={videoId:d,currentTime:f};c&&(k.listId=c);n(e)&&(k.currentIndex=e);c&&(this.ta.A=c);this.ta.videoId=d;this.ta.index=e||0}else{var d=b.videoIds[b.index],f=b.currentTime||0;5>=f&&(f=0);var k={videoIds:d,videoId:d,currentTime:f};this.ta.videoIds=[d];this.ta.index=0}this.ta.state=3;qo(this.ta,f);this.ib("Connecting with setPlaylist and params: "+de(k));this.o.connect({method:"setPlaylist",params:de(k)}, a,rk())}else this.ib("Connecting without params"),this.o.connect({},a,rk());Lo(this)}; h.dispose=function(){this.isDisposed()||(this.R("beforeDispose"),Ko(this,3));Io.N.dispose.call(this)}; h.T=function(){Mo(this);Po(this);No(this);Di(this.G);this.G=window.NaN;Di(this.H);this.H=window.NaN;this.B=null;Ql(this.O);this.O.length=0;this.o.dispose();Io.N.T.call(this);this.A=this.ta=this.o=null}; h.ib=function(a){ci("conn",a)}; h.hw=function(){this.C(2)}; h.Oy=function(){this.ib("Channel opened");this.M&&(this.M=!1,No(this),this.J=Ai(A(function(){this.ib("Timing out waiting for a screen.");this.C(1)},this),15E3)); xk(co(this.o),this.V)}; h.Ky=function(){this.ib("Channel closed");(0,window.isNaN)(this.D)?yk(!0):yk();this.dispose()}; h.Ly=function(a){yk();(0,window.isNaN)(this.F())?(this.ib("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,this.ib("Channel error: "+a+" with reconnection in "+this.F()+" ms"),Ko(this,2))}; h.My=function(a){a.params?this.ib("Received: action="+a.action+", params="+de(a.params)):this.ib("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=be(a.params.devices);this.A=O(a,function(a){return new dk(a)}); a=!!db(this.A,function(a){return"LOUNGE_SCREEN"==a.type}); So(this,a);break;case "loungeScreenConnected":So(this,!0);break;case "loungeScreenDisconnected":qb(this.A,function(a){return"LOUNGE_SCREEN"==a.type}); So(this,!1);break;case "remoteConnected":var b=new dk(be(a.params.device));db(this.A,function(a){return a.equals(b)})||nb(this.A,b); break;case "remoteDisconnected":b=new dk(be(a.params.device));qb(this.A,function(a){return a.equals(b)}); break;case "gracefulDisconnect":break;case "playlistModified":Vo(this,a);break;case "nowPlaying":Wo(this,a);break;case "onStateChange":Xo(this,a);break;case "onVolumeChanged":Yo(this,a);break;case "onSubtitlesTrackChanged":Uo(this,a);break;default:this.ib("Unrecognized action: "+a.action)}}; h.Ny=function(a){a.params?this.ib("Received: action="+a.action+", params="+de(a.params)):this.ib("Received: action="+a.action);Zo(this,a);$o(this,a);if(Ro(this)){var b=this.ta.clone(),c=!1,d,e,f,k,l,m;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,k=a.params.currentTime||a.params.current_time,l=a.params.volume,m=a.params.muted,n(a.params.currentError)&&be(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==po(this.ta)&&(delete a.params.videoId, ac(a.params)?this.ta.B=null:this.ta.B=a.params,this.R("remotePlayerChange"));else if(po(this.ta)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=po(this.ta)):this.ta.setVideoId(""),e&&(e=e.split(","),to(this.ta,e,d))):to(this.ta,[]);e=this.ta;var p=d;mo(e,"add");p&&!ib(e.videoIds,p)?(e.videoIds.push(p),e=!0):e=!1;e&&Qo(this,"getPlaylist");d&&this.ta.setVideoId(d);b.index==this.ta.index&&Eb(b.videoIds, this.ta.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.R("remoteQueueChange"):this.R("remoteQueueChange");n(f)&&(a=(0,window.parseInt)(f,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.ta.o&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.ta.o,this.ta.o=a,1==this.ta.o?Oo(this):Po(this));k&&(a=(0,window.parseInt)(k,10),qo(this.ta,(0,window.isNaN)(a)?0:a),c=!0);n(l)&&(a=(0,window.parseInt)(l,10),(0,window.isNaN)(a)||(c=c||this.ta.volume!=a,this.ta.volume=a),n(m)&&(m="true"== m,c=c||this.ta.muted!=m,this.ta.muted=m));c&&this.R("remotePlayerChange")}}}; h.XB=function(){if(this.B){var a=this.B;this.B=null;this.ta.videoId!=a&&Qo(this,"getNowPlaying")}}; Io.prototype.subscribe=Io.prototype.subscribe;Io.prototype.unsubscribeByKey=Io.prototype.Zb;Io.prototype.Z=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.F())?Ro(this)&&(a=1):a=2);return a}; Io.prototype.getProxyState=Io.prototype.Z;Io.prototype.C=function(a){this.ib("Disconnecting with "+a);Mo(this);this.R("beforeDisconnect",a);1==a&&yk();eo(this.o,a);this.dispose()}; Io.prototype.disconnect=Io.prototype.C;Io.prototype.Y=function(){var a=this.ta;this.B&&(a=this.ta.clone(),so(a,this.B,a.index));return uo(a)}; Io.prototype.getPlayerContextData=Io.prototype.Y; Io.prototype.da=function(a){var b=new lo(a);b.videoId&&b.videoId!=this.ta.videoId&&(this.B=b.videoId,Di(this.G),this.G=Ai(A(this.XB,this),5E3));var c=[];this.ta.A==b.A&&this.ta.videoId==b.videoId&&this.ta.index==b.index&&Eb(this.ta.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ta.o==b.o&&this.ta.volume==b.volume&&this.ta.muted==b.muted&&ro(this.ta)==ro(b)&&de(this.ta.B)==de(b.B)||c.push("remotePlayerChange");this.ta.reset(a);E(c,function(a){this.R(a)},this)}; Io.prototype.setPlayerContextData=Io.prototype.da;Io.prototype.U=function(){return this.o.C.loungeIdToken}; Io.prototype.getLoungeToken=Io.prototype.U;Io.prototype.K=function(){var a=this.o.C.id,b=db(this.A,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a}); return b?b.id:""}; Io.prototype.getOtherConnectedRemoteId=Io.prototype.K;Io.prototype.F=function(){var a=this.o;return a.A.enabled?a.A.D-H():window.NaN}; Io.prototype.getReconnectTimeout=Io.prototype.F;Io.prototype.fa=function(){if(!(0,window.isNaN)(this.F())){var a=this.o.A;a.enabled&&(a.stop(),a.start(),a.F())}}; Io.prototype.reconnect=Io.prototype.fa;Io.prototype.aa=function(a,b){Qo(this,a,b);To(this)}; Io.prototype.sendMessage=Io.prototype.aa;var ep=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(ip,Sj);h=ip.prototype;h.$b=function(a){return this.Mb.$_gs(a)}; h.contains=function(a){return!!this.Mb.$_c(a)}; h.get=function(a){return this.Mb.$_g(a)}; h.start=function(){this.Mb.$_st()}; h.lj=function(a,b,c){this.Mb.$_a(a,b,c)}; h.remove=function(a,b,c){this.Mb.$_r(a,b,c)}; h.ej=function(a,b,c,d){this.Mb.$_un(a,b,c,d)}; h.T=function(){for(var a=0,b=this.o.length;a<b;++a)this.Mb.$_ubk(this.o[a]);this.o.length=0;this.Mb=null;ip.N.T.call(this)}; h.PC=function(){this.R("screenChange")}; h.gA=function(){this.R("onlineScreenChange")}; Mk.prototype.$_st=Mk.prototype.start;Mk.prototype.$_gspc=Mk.prototype.QC;Mk.prototype.$_gsppc=Mk.prototype.mr;Mk.prototype.$_c=Mk.prototype.contains;Mk.prototype.$_g=Mk.prototype.get;Mk.prototype.$_a=Mk.prototype.lj;Mk.prototype.$_un=Mk.prototype.ej;Mk.prototype.$_r=Mk.prototype.remove;Mk.prototype.$_gs=Mk.prototype.$b;Mk.prototype.$_gos=Mk.prototype.lr;Mk.prototype.$_s=Mk.prototype.subscribe;Mk.prototype.$_ubk=Mk.prototype.Zb;var lp=null,mp=null,up=null,dp=null,tp=[];var Vp=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|web-ppg\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,Cw=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/, Cea=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,xG=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/+embed(\/+|\?|#|$)/,Kw=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/, Up=/^https?:\/\/([-\w.]+\.youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|web-ppg\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,Yfa=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ow=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect|www\.googleadservices\.com\/trueview_inred)/, Zfa=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,yr=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,yG=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/, HG=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Xp=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|lh2\.google\.com|plus\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Yp=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];var eq={},dq=0,$fa=u("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",$fa,void 0);var gq=1;fq.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)}; fq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(iq,fq);iq.prototype.getId=function(){return this.J}; iq.prototype.toString=function(){return iq.N.toString.call(this)};B(mq,Rj);h=mq.prototype;h.fb=function(a,b){for(var c=0;c<a.length;c++)a[c].o=this.qa;this.o.fb(a,b)}; h.create=function(){this.J||(this.Va(this.o),I(this.o.Aa(),this.qa+"-created"),this.o.addEventListener("crn_"+this.qa,this.Qb,this),this.o.addEventListener("crx_"+this.qa,this.Wb,this),this.J=!0)}; h.destroy=function(){this.loaded&&this.unload();Zd(this.o.Aa(),this.qa+"-created");this.o.removeEventListener("crn_"+this.qa,this.Qb,this);this.o.removeEventListener("crx_"+this.qa,this.Wb,this);this.J=!1;this.R("destroyed",this.qa)}; h.load=function(){this.loaded=!0;I(this.o.Aa(),this.qa+"-loaded");this.R("loaded",this.qa)}; h.unload=function(){this.loaded=!1;Zd(this.o.Aa(),this.qa+"-loaded");this.R("unloaded",this.qa)}; h.Qb=function(){}; h.Wb=function(){}; h.Ud=function(){}; h.log=function(a){BH(this.o,this.H,a)}; h.mh=function(){return null}; h.pauseVideo=function(){this.R("command_pause",!1,this.o.playerType)}; h.xd=function(){}; h.Ue=function(){return[]}; h.Va=function(){return!1}; h.Hl=function(a,b){this.G&&this.G.Ud&&this.G.Ud.apply(this.G,arguments)}; h.Ii=function(){};B(wq,F);wq.prototype.o=function(a,b){n(b)?pf(a,this.element,b):a.appendChild(this.element)}; wq.prototype.update=function(a){for(var b in a)Bq(this,b,a[b])}; wq.prototype.T=function(){this.ra={};this.ia={};Aq(this);wq.N.T.call(this)};B(Q,wq);h=Q.prototype;h.Eb=function(a,b){Bq(this,b||"content",a)}; h.show=function(){this.B||(Dq(this.element,""),this.B=!0)}; h.ga=function(){this.B&&(Dq(this.element,"none"),this.B=!1)}; h.yb=function(a){a?this.show():this.ga()}; h.P=function(a,b,c){return R(this,this.element,a,b,c)}; h.ya=function(a){for(var b=0;b<this.V.length;b++)if(this.V[b]==a){a=this.V.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}}; h.focus=function(){Cf(this.element);this.element.focus()}; h.T=function(){for(;this.V.length;){var a=this.V.pop();a.target.removeEventListener(a.type,a.listener)}Q.N.T.call(this)};B(Gq,Q);Gq.prototype.subscribe=function(a,b,c){return this.O.subscribe(a,b,c)}; Gq.prototype.unsubscribe=function(a,b,c){return this.O.unsubscribe(a,b,c)}; Gq.prototype.Zb=function(a){return this.O.Zb(a)}; Gq.prototype.R=function(a,b){return this.O.R.apply(this.O,arguments)};B(Hq,Gq);Hq.prototype.create=function(){this.K=!0}; Hq.prototype.destroy=function(){this.K=!1}; Hq.prototype.Ih=function(){return!1};B(Iq,Q);var aga=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(vc)return yc("10.0"); var a=window.document.createElement("DIV"),b=wc?"-webkit":tc?"-moz":vc?"-ms":Lf?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!k$.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Ofa)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!k$.test(e))throw Error('Invalid attribute name "'+e+'".');var f=b[e];if(null!=f){var k;k=e;if(f instanceof Ae)f=Ce(f);else if("style"==k.toLowerCase()){if(!ia(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+ typeof f+" given: "+f);if(!(f instanceof Ee)){var l="",m=void 0;for(m in f){if(!/^[-_a-zA-Z0-9]+$/.test(m))throw Error("Name allows only [-_a-zA-Z0-9], got: "+m);var p=f[m];if(null!=p){if(p instanceof Ae)p=Ce(p);else if(Mfa.test(p)){for(var v=!0,t=!0,y=0;y<p.length;y++){var x=p.charAt(y);"'"==x&&t?v=!v:'"'==x&&v&&(t=!t)}v&&t||(p="zClosurez")}else p="zClosurez";l+=m+":"+p+";"}}f=l?Ge(l):Lfa}f=f instanceof Ee&&f.constructor===Ee&&f.A===Fe?f.o:"type_error:SafeStyle"}else{if(/^on/i.test(k))throw Error('Attribute "'+ k+'" requires goog.string.Const value, "'+f+'" given.');if(k.toLowerCase()in Nfa)if(f instanceof Me)f=Oe(f);else if(f instanceof He)f=Je(f);else if(z(f))f=Ke(f).jd();else throw Error('Attribute "'+k+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+f+'" given.');}f.Je&&(f=f.jd());k=k+'="'+xa(String(f))+'"';d=d+(" "+k)}}e=void 0;null!=e?da(e)||(e=[e]):e=[];!0===Jfa.div?d+=">":(c=Se(e),d+=">"+Re(c)+"</div>",c=c.ff());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c= null);b=Te(d,c);a.innerHTML=Re(b);return""!=Pf(a.firstChild,"transition")});B(Pq,F);h=Pq.prototype;h.show=function(a,b){this.C=!!a;1==this.o||2==this.o||3==this.o&&a||(4==this.o||3==this.o?a||(this.B.show(),Qq(this,!1),this.o=null,this.A.stop()):this.B.B||(Qq(this,!this.C),this.o=1,b?this.A.start(b):this.dm()))}; h.ga=function(){3!=this.o&&(1==this.o||2==this.o?(this.B.ga(),this.o=null,this.A.stop()):this.B.B&&(Qq(this,!0),this.o=3,this.A.start(this.F)))}; h.dm=function(){switch(this.o){case 1:this.B.show();this.o=2;this.A.start(10);break;case 2:Qq(this,this.C);this.C?(this.o=3,this.A.start(this.D)):this.o=null;break;case 3:this.B.ga();Qq(this,!1);this.o=4;this.A.start(0);break;case 4:this.o=null}}; h.stop=function(){for(;null!=this.o&&4!=this.o;)this.A.stop(),this.dm()}; h.T=function(){this.B.isDisposed()||this.B.element.removeAttribute("aria-hidden");Pq.N.T.call(this)};B(Rq,Q);B(Sq,Rq);Sq.prototype.yb=function(a){a?this.C.show():this.C.ga()};B(Tq,Hq);Tq.prototype.create=function(){Tq.N.create.call(this);of(this.element);this.D.o(this.element);var a=this.A.getVideoData().videoId;a&&(a=NG(this.A.W(),a,!0),Bj(a,{method:"GET",kb:this.F,context:this,Bv:!0}))}; Tq.prototype.F=function(a,b){if(this.K){var c=b.user_info;this.A.getVideoData();var d=c.channel_banner_url;Kw.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Kw.test(e)||(e="");Bq(this.C,"background",d?"background-image: url("+d+")":"");Bq(this.D,"image",e);Bq(this.D,"author",c.channel_title||c.username);c=c.subscription_button_html;d=this.D.ra["html5-subscribe-button-container"];c?d.innerHTML=Re(c):of(d)}}; Tq.prototype.show=function(){Tq.N.show.call(this);this.C.yb(!0)}; Tq.prototype.ga=function(){Tq.N.ga.call(this);this.C.yb(!1)};B(Vq,Q);Vq.prototype.T=function(){Vq.N.T.call(this);this.C&&(Yq(this.A.app,this.C),this.C=null);Xq(this);of(Wq(this));of($q(this));this.F=this.D=null;delete this.A};ar.prototype.toString=function(){return this.type+this.id};var V5=16/9,cga=4/3,z9=[.25,.5,1,1.25,1.5,2];var dr={RC:function(a,b){a.splice(0,b)}, Bw:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}, C5:function(a){a.reverse()}};var ir={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",140:"a",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var Xv={name:"width",video:!0,valid:640,Ig:99999},Yv={name:"height",video:!0,valid:360,Ig:99999},Zv={name:"framerate",video:!0,valid:30,Ig:9999},$v={name:"bitrate",video:!0,valid:3E5,Ig:2E9},aw={name:"channels",video:!1,valid:2,Ig:99},bw={Bh:Xv,vh:Yv,A:Zv,Wm:$v,o:aw};nr.prototype.toString=function(){return this.name};var $t={qG:"auto",BI:"tiny",du:"light",SMALL:"small",mu:"medium",LARGE:"large",dH:"hd720",$G:"hd1080",aH:"hd1440",bH:"hd2160",cH:"hd2880",hH:"highres",UNKNOWN:"unknown"},qr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},pr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var rr=[["60",55],["50",49],["48",39]];sr.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.A="")}; sr.prototype.get=function(a){wr(this);return this.o[a]||null}; sr.prototype.clone=function(){var a=new sr(this.B);a.F=this.F;a.C=this.C;a.D=this.D;a.o=ec(this.o);a.A=this.A;return a};Cr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=Jr.prototype;h.cg=function(a){return(a=Kr(this,a))?a.duration:0}; h.uk=function(a){return this.cg(a)}; h.yg=function(){return this.ua.length?this.ua[0].o:-1}; h.Lb=function(){return this.ua.length?this.ua[this.ua.length-1].o:-1}; h.dg=function(){var a=this.ua[this.ua.length-1];return a?a.endTime:window.NaN}; h.Er=function(){return this.ua[0].startTime}; h.Xn=function(){return this.ua.length}; h.yj=function(){return 0}; h.gf=function(a){return(a=Lr(this,a))?a.o:-1}; h.$n=function(a){return Kr(this,a).sourceURL}; h.ee=function(a){return(a=Kr(this,a))?a.startTime:0}; h.eg=function(){return 0<this.ua.length};Nr.prototype.set=function(a,b){this.o.get(a);this.A[a]=b;this.B=""}; Nr.prototype.get=function(a){return this.A[a]||this.o.get(a)};var v$=0;Ur.prototype.il=function(){return!1}; Ur.prototype.oq=function(a){return[a]}; Ur.prototype.Ti=function(a){return[a]};Wr.prototype.equals=function(a){return!(!a||a.o!=this.o||a.type!=this.type||(this.range&&a.range?a.range.start!=this.range.start||a.range.end!=this.range.end:a.range!=this.range)||a.C!=this.C||a.B!=this.B||a.A!=this.A)};B(es,Ur);h=es.prototype;h.Mh=function(){return!1}; h.Wn=function(){var a=new Wr(1,this,this.initRange);return[new bs([a],this.C)]}; h.fi=function(a,b){var c=this.index.gf(a);b&&(c=Math.min(this.index.Lb(),c+1));return gs(this,c,!0)}; h.jo=function(a){this.o=new window.Uint8Array(Ps(a).buffer)}; h.il=function(){return!1}; h.lh=function(a){return 0==a.A?!0:this.index.Lb()>a.C&&this.index.yg()<=a.C+1}; h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.ua.length)d.ua=a;else{var e=d.ua.length?cb(d.ua).endTime:0,f=a[0].o-d.Lb();1<f&&lb(d.ua);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.ua.push(a[f])}}Mr(this.index,c);this.A=b};js.prototype.update=function(a){var b=void 0;this.A&&(b=this.A);var c=b,b=+Fr(a,"timescale")||1,d=+Fr(a,"startNumber")||0,e=0,f=1;c&&(e=c.ae+c.durationSecs,f=d-c.o);var c=Date.parse(Fr(a,"yt:segmentIngestTime")),k=Date.parse(Fr(a,"yt:mpdResponseTime")),k=H()-k,c=(c+k)/1E3,k=new js,f=0<f?0:-f+1;k.C=f;a=a.getElementsByTagName("S");for(var l=d,m=0;m<a.length;m++)for(var p=a[m],v=+p.getAttribute("d")/b,t=(p.getAttribute("yt:sid")||0)/b,y=+p.getAttribute("r")||0,x=0;x<=y;x++)if(l<d+f)l++;else{var L=new is(l, e,v,c+t);k.o.push(L);l++;var e=e+v,c=c+(v+t),ha=p.getAttribute("yt:cuepointTimeOffset"),K=p.getAttribute("yt:cuepointDuration"),Y=p.getAttribute("yt:cuepointContext")||null;ha&&K&&k.B.push(new hs(+ha/b+L.ae,+K/b,Y))}k.o.length&&(k.A=cb(k.o));this.C=k.C;this.A=k.A||this.A;this.o=k.o;tb(this.B,k.B)};Cs.prototype.skip=function(a){this.o+=a};h=Us.prototype;h.yj=function(a){return this.o[a]}; h.ee=function(a){return this.A[a]/this.C}; h.cg=function(a){a=this.uk(a);return 0<=a?a/this.C:-1}; h.uk=function(a){return a+1<this.wa||this.B?this.A[a+1]-this.A[a]:-1}; h.yg=function(){return 0}; h.Lb=function(){return this.wa-1}; h.dg=function(){return this.B?this.A[this.wa]/this.C:window.NaN}; h.Er=function(){return 0}; h.Xn=function(){return this.wa}; h.$n=function(){return""}; h.gf=function(a){a=xb(this.A.subarray(0,this.wa),a*this.C);return 0<=a?a:Math.max(0,-a-2)}; h.eg=function(){return 0<=this.Lb()};B(Ws,Ur);h=Ws.prototype;h.Wn=function(a){var b=new Wr(1,this,this.initRange),c=new Wr(2,this,this.indexRange),d=[],e=[b];Yr(b,c)?e.push(c):(d.push(new bs([c])),a=0);(0,window.isNaN)(this.A)?a=0:a>this.A&&(a=this.A);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=Er(b.range.end+1,a-c),e.push(new Wr(4,this,a)));d.push(new bs(e));return d}; h.jo=function(a){if(1==a.info.type){if(this.o)return;this.o=new window.Uint8Array(a.o,a.range.start,a.range.length)}else if(2==a.info.type){if(this.C||0<=this.index.Lb())return;if(1==this.info.A){var b=this.index,c=Ps(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.C=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(f=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.o[0]= k+(e+d);b.A[0]=f;b.B=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var l=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.wa++;Vs(f);f.o[f.wa]=f.o[f.wa-1]+l;f.A[f.wa]=f.A[f.wa-1]+k}}else this.C=Ps(a)}if(2==this.info.A&&this.o&&this.C){a=new window.DataView(this.o.buffer,this.o.byteOffset,this.o.byteLength);b=this.index;k=this.C;c=this.indexRange.end;a=new Es(a);if(440786851==Fs(a)&&(Hs(a),408125543==Fs(a))){e=a;f=e.o;d=Gs(e,!0);e.o=f;a=Is(a);for(var e=a.B+a.o,m=Fs(a);357149030!=m;)Hs(a),m=Fs(a); a=Is(a);for(var l=1E6,p=1E9,f=0;!(a.o>=a.A.byteLength);)if(m=Fs(a),2807729==m)l=Js(a);else if(2807730==m)p=Js(a);else if(17545==m){var f=a,m=Gs(f,!0),v=0;4==m?v=f.A.getFloat32(f.o):8==m&&(v=f.A.getFloat64(f.o));f.o+=m;f=v}else Hs(a);b.C=p/l;a=new Es(k);if(475249515==Fs(a)){a=Is(a);k=!0;for(l=!1;!(a.o>=a.A.byteLength);)if(m=Fs(a),187==m){p=Is(a);m=e;if(179!=Fs(p))v=null;else if(v=Js(p),183!=Fs(p))v=null;else{for(var p=Is(p),t=m;!(p.o>=p.A.byteLength);)241==Fs(p)?t=Js(p)+m:Hs(p);v=[t,v]}k&&c==v[0]&& (l=!0);k=!1;l&&(v[0]+=1);p=b;m=v[0];v=v[1];Vs(p);p.o[p.wa]=m;p.A[p.wa]=v;p.wa++}else Hs(a);c=d+e;a=f;Vs(b);b.B=!0;b.A[b.wa]=a;b.o[b.wa]=c}}this.C=null}}; h.oq=function(a){for(var b=this.Ti(a.info),c=[],d=a.B,e=0;e<b.length;e++){var f=Er(b[e].range.start+b[e].B-a.info.range.start+a.range.start,b[e].A);c.push(new Os(b[e],a.o,f,a.A,d));d=!1}return c}; h.Ti=function(a){for(var b=0;b<this.index.Lb()&&a.range.start>=this.index.yj(b+1);)b++;return Xs(this,b,a.range.start,a.range.length).o}; h.lh=function(a){return Vr(this)?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A}; h.fi=function(a,b){var c=this.index.gf(a);b&&(c=Math.min(this.index.Lb(),c+1));return Xs(this,c,this.index.yj(c),0)}; h.il=function(){var a;if(a=Vr(this)&&!(0,window.isNaN)(this.A))a=this.index,a=(a.B?a.o[a.wa]:-1)!=this.A;return a}; h.Mh=function(){return!0};B(Zs,Rj);var et={commentary:1,alternate:2,dub:3,main:4}; Zs.prototype.M=function(a){this.G=a.status;a=a.responseText;var b=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];a=b.getElementsByTagName("Representation");if(0<b.getElementsByTagName("SegmentList").length){this.A=1E3*Hr(Fr(b,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.A;this.C=!0;this.H=(0,window.parseInt)(Fr(b,"yt:earliestMediaSequence"),10);this.B||(this.B=new ls);ns(this.B,b);this.R("refresh");for(b=0;b<a.length;b++){var c=dt(this, a[b]);if(!this.o[c.id]){var d=ct(Gr(a[b],"BaseURL").textContent,c),e=Gr(a[b],"Initialization"),f=Fr(e,"sourceURL"),e=Dr(Fr(e,"range"));this.o[c.id]=new es(d,c,f,null===e?void 0:e)}for(var c=this.o[c.id],d=this.B,f=c,e=ab(f.info.mimeType,";",1)[0],f=d.B[f.info.id]||d.A[e]||d.o||null,d=vb(Gr(a[b],"SegmentList").getElementsByTagName("SegmentURL"),f.C),f=f.o,e=[],k=0;k<d.length;k++)e.push(gt(d[k],f[k]));c.update(e,this.isLive,this.H)}os(this.B)}else b:for(this.duration=Hr(Fr(b,"mediaPresentationDuration")), b=0;b<a.length;b++){e=a[b];c=dt(this,e);f=Gr(e,"BaseURL");d=ct(f.textContent,c);k=Gr(e,"SegmentBase");e=Dr(k.attributes.indexRange.value);k=Dr(k.getElementsByTagName("Initialization")[0].attributes.range.value);f=(0,window.parseInt)(f.getAttribute("yt:contentLength"),10);c=new Ws(d,c,k,e,f,window.NaN);if(!c)break b;this.o[c.info.id]=c}this.D=2;this.R("loaded");(0,window.isFinite)(this.A)&&(a=$s()-this.F,a=Math.max(0,this.A-a),Ai(A(this.L,this),a));return this}; Zs.prototype.O=function(a){this.G=a.status;this.D=3;this.R("load_error");return Dd(a)}; Zs.prototype.L=function(){if(1!=this.D&&!this.isDisposed()){var a;a:{a=this.o;for(var b in a){var c=a[b].index;if(c&&c.eg()){a=c.Lb()+1;break a}}a=0}a=Ug(this.K,{start_seq:a.toString()});ft(this,a)}};var Ov,EG;var w$=oc,w$=w$.toLowerCase();if(Ga(w$,"android")){var x$=w$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(x$)Ov=Number(x$[1]);else{var y$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},z$=w$.match("("+Wb(y$).join("|")+")");Ov=z$?y$[z$[0]]:0}}else Ov=void 0;EG=0<=Ov;var Rv=BG||Iw;var ru,e6,wt=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],xt=['audio/mp4; codecs="mp4a.40.2"'];var Jt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Kt=rb(Jt.widevine,Jt.playready);B(Ht,F);Ht.prototype.F=function(a,b){if(!this.isDisposed()){a.B=b;var c=b.getConfiguration();E([c.audioCapabilities,c.videoCapabilities],function(b){E(b,function(b){a.C[b.contentType]=!0})}); this.C(a)}}; Ht.prototype.D=function(){this.isDisposed()||(0<this.A.length?Lt(this):this.C(null))};Ot.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.o+"_"+this.id+"_"+this.isDefault};Pt.prototype.toString=function(){return this.o+": "+Rt(this)+" - "+this.G}; Pt.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Tt.prototype.toString=function(){return this.Ib.name};Ut.prototype.equals=function(a){return this.A==a.A&&this.o==a.o&&this.B==a.B}; var r1=Vt("auto","large",!1),Yt=Vt("auto","auto",!1);Vt("small","auto",!1);var dga=Vt("auto","hd720",!1);Ut.prototype.isLocked=function(){return this.B&&!!this.A&&this.A==this.o}; Ut.prototype.C=function(a){if(!a.video)return!1;a=qr[a.video.quality];return this.A<=a&&(!this.o||this.o>=a)};var Nw={uH:1,vH:2,wH:3};bu.prototype.getValue=function(){return this.A}; bu.prototype.clone=function(){return new bu(this.o,this.A)};h=cu.prototype;h.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(a);else{a[0]=a.pop();for(var a=0,b=this.o,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].o<b[f].o?k:f;if(b[f].o>e.o)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; h.Ka=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b}; h.Na=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b}; h.xe=function(a){return Ih(this.o,function(b){return b.getValue()==a})}; h.clone=function(){return new cu(this)}; h.Za=function(){return this.o.length}; h.isEmpty=function(){return kb(this.o)}; h.clear=function(){lb(this.o)};B(eu,cu);B(fu,Rj);fu.prototype.F=function(a,b){this.o=this.o.onload=null;var c=this.A.o[a];c.B[b]=!0;ku(this);var d=c.Gb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.wk()-1)];this.R("l",c[0],c[1])}; fu.prototype.T=function(){this.o&&(this.o=this.o.onload=null);fu.N.T.call(this)};h=mu.prototype;h.getWidth=function(){return this.H}; h.getHeight=function(){return this.G}; h.wk=function(){return this.A}; h.isDefault=function(){return-1!=this.C.indexOf("default")}; h.Dj=function(a){return ke(0==this.D?Math.round(a*this.A/this.L):Math.round(1E3*a/this.D),0,this.wk()-1)}; h.Nm=function(){return this.A-1}; h.rs=function(){return this.A?0:-1}; h.ts=function(){};nu.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.C(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c}; nu.prototype.C=function(a,b,c,d){return new mu(a,b,c,d)}; nu.prototype.D=function(){};B(ou,mu);h=ou.prototype;h.wk=function(){return this.o?this.o.Xn():-1}; h.Dj=function(a){var b=this.rows*this.Gb*this.J,c=-1,d=-1,e=this.o;e&&(c=e.Lb(),d=e.gf(a));return d>c-b?-1:d}; h.Nm=function(){return this.o?this.o.Lb():-1}; h.rs=function(){return this.o?this.o.yg():-1}; h.ts=function(a){this.o=a?a.index:null};B(pu,nu);pu.prototype.A=function(a,b){return pu.N.A.call(this,"$N|"+a,b)}; pu.prototype.C=function(a,b,c){return new ou(a,b,c,this.F.isLive)}; pu.prototype.D=function(a){for(var b=0;b<this.o.length;b++)this.o[b].ts(a)};var tu=H().toString();var Cu=/^([0-9\.]+)\:([0-9\.]+)$/;var Iu=0;Ku.prototype.mc=function(){return{version:this.version,args:this.args}}; Nu.prototype.toString=function(){return this.topic};var ega=u("yt.pubsub2.instance_")||new ui;ui.prototype.subscribe=ui.prototype.subscribe;ui.prototype.unsubscribeByKey=ui.prototype.Zb;ui.prototype.publish=ui.prototype.R;ui.prototype.clear=ui.prototype.clear;q("yt.pubsub2.instance_",ega,void 0);var Ru=u("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Ru,void 0);var Tu=u("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Tu,void 0);var Su=u("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Su,void 0); q("yt.pubsub2.skipSubKey_",null,void 0);B(Wu,Ku);var Pu=new Nu("timing-sent",Wu);var iv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},gv=A(iv.clearResourceTimings||iv.webkitClearResourceTimings||iv.mozClearResourceTimings||iv.msClearResourceTimings||iv.oClearResourceTimings||w,iv),Zu=iv.mark?function(a){iv.mark(a)}:w;var Jw,E1;var A$=oc,B$=A$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!B$||2>B$.length)Jw=void 0;else{var C$=A$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Jw=C$&&6==C$.length?Number(C$[5].replace("_",".")):0}(E1=0<=Jw)&&0<=oc.search("Safari")&&oc.search("Version");var Hw={du:1,MG:2};var Fw={LIKE:0,DISLIKE:1,INDIFFERENT:2};var pv=function(){if(M6)return ov(/Firefox\/([0-9.]+)/);if(vc||uc||Lf)return Ac;if(Fl)return ov(/Chrome\/([0-9.]+)/);if(Et&&!(rc()||nc("iPad")||nc("iPod")))return ov(/Version\/([0-9.]+)/);if(BG||Iw){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(oc))return a[1]+"."+a[2]}else if(CG)return(a=ov(/Android\s+([0-9.]+)/))?a:ov(/Version\/([0-9.]+)/);return""}();qv.prototype.start=function(){return 0}; qv.prototype.end=function(){return window.Infinity}; qv.prototype.length=1;h=rv.prototype;h.addEventListener=function(){}; h.removeEventListener=function(){}; h.dispatchEvent=function(){}; h.abort=function(){}; h.remove=function(){}; h.appendBuffer=function(){};tv.prototype.dispose=function(){if(!this.B){if(this.o)try{window.URL.revokeObjectURL(this.C)}catch(a){}this.B=!0}}; tv.prototype.isDisposed=function(){return this.B}; tv.prototype.equals=function(a){return null!=a&&uv(a)==uv(this)};h=vv.prototype;h.append=function(a){this.A.webkitSourceAppend(this.B,a)}; h.abort=function(){this.A.webkitSourceAbort(this.B)}; h.CC=function(){return this.A.webkitSourceState==this.A.SOURCE_CLOSED?new wv:this.A.webkitSourceBuffered(this.B)}; h.EC=function(){return this.C}; h.IC=function(a){this.C=a;this.A.webkitSourceTimestampOffset(this.B,a)};h=xv.prototype;h.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)}; h.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)}; h.NE=function(){return this.o.webkitMediaSourceURL}; h.addSourceBuffer=function(a){var b=(this.B++).toString();this.o.webkitSourceAddId(b,a);a=new vv(this.o,b);this.sourceBuffers.push(a);return a}; h.FC=function(){switch(this.o.webkitSourceState){case this.o.SOURCE_CLOSED:return"closed";case this.o.SOURCE_OPEN:return"open";case this.o.SOURCE_ENDED:return"ended"}return""}; h.endOfStream=function(a){var b=this.o.EOS_NO_ERROR;"network"==a?b=this.o.EOS_NETWORK_ERR:"decode"==a&&(b=this.o.EOS_DECODE_ERR);this.o.webkitSourceEndOfStream(b)}; h.GC=function(){lb(this.sourceBuffers)}; h.DC=function(){return this.A}; h.HC=function(a){this.A=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};B(yv,F);yv.prototype.ya=function(a){for(var b=0;b<this.K.length;b++)if(this.K[b]==a){this.K.splice(b,1);a.target.removeEventListener(a.name,a.Lh);break}}; yv.prototype.T=function(){Av(this);yv.N.T.call(this)};B(Bv,yv);Bv.prototype.Jf=function(a){Fv(this)?this.B.duration=a:this.C=a}; Bv.prototype.L=function(){if(!this.isDisposed()&&Fv(this)&&!(0,window.isNaN)(this.C)){this.B.duration=this.C;this.C=window.NaN;try{this.o=this.B.addSourceBuffer(this.H),this.S?this.A=this.B.addSourceBuffer(this.M):this.A=new rv,this.D&&(this.D(this),this.D=null)}catch(a){this.F&&this.F()}}}; Bv.prototype.J=function(){this.dispose()};Lv.prototype.A=function(){return null}; var Pv={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var fw="9h8(H*".split(""),hw="h98H(*".split(""),iw="oMavAV".split(""),jw="aoMvAV".split(""),gw=["f"],Tv={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Uv={"application/x-mpegURL":"maybe"},Sv={"application/x-mpegURL":"maybe"};B(rw,Lv); rw.prototype.A=function(){if(!this.o||this.o.isDisposed()){var a;a=this.B;ow(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.A.length;d<e;++d){var f=a.A[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.o.length;d<e;++d){var k=a.o[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Jn+","+f.Jn)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+ f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.o=new tv("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.o};B(vw,Lv);vw.prototype.A=function(){return new tv(this.o)};B(zw,Rj);zw.H=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;zw.o=1;zw.D=-21;zw.F=18E3;zw.B="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");zw.G="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" "); zw.A={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};zw.C=["www.youtube.com","manifest.googlevideo.com"];h=zw.prototype;h.adModule=!1;h.adaptiveFormats="";h.zm=null;h.allowEmbed=!0;h.backgroundable=!1;h.Fd=!1;h.Ye="";h.wn=!1;h.Hh=!1;h.Gh=zw.o;h.pj=null;h.watchAjaxToken=null;h.author="";h.nj=0;h.Nh=!1;h.Ln=!1;h.Oh="";h.Ph="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.Re=0;h.nk=!1;h.enableCardio=!1; h.enableCardioBeforePlayback=!1;h.cf=0;h.Qd=!1;h.lo=!1;h.oj=0;h.gh=0;h.al=!1;h.xf=!1;h.bl=!1;h.Qo=!1;h.fl=!1;h.isListed=!1;h.yf=!1;h.Fa=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.ml=!1;h.Yf=!1;h.Uo=!1;h.nl=!1;h.pl=3;h.liveStartWalltime=0;h.lengthSeconds=0;h.Am=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.Gd=1;h.Ug=Yt;h.Ae=!1;h.startSeconds=0;h.Zi=null;h.sentiment=2;h.spacecastModule=!1;h.Pj=null;h.Zg=Yt;h.Pf=null;h.title="";h.Tf=""; h.hlsFormats="";h.kj=null;h.jm="vvt";h.requiresPurchase=!1;h.clipStart=0;h.clipEnd=window.Infinity;h.Hx=function(a){(this.J=a)&&"fairplay"==this.J.o&&(this.J.fairPlayCert=this.fairPlayCert);Uw(this)}; h.jz=function(a){this.isDisposed()||(this.o=a,G(this,this.o),this.Fa?this.o.subscribe("refresh",this.up,this):this.o.isLive=!1,Xu("mrc"),at(this.o)&&(this.Y=!0),Uw(this))}; h.iz=function(a){this.isDisposed()||(this.Qd=!1,this.R("dataloaderror",new mv("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))}; h.up=function(){this.o.isLive||this.o.unsubscribe("refresh",this.up,this);var a=vb(this.o.B.C,this.La);0<a.length&&(this.R("cuepointupdated",a),this.La+=a.length)}; h.Tc=function(a){return z(this.keywords[a])?this.keywords[a]:null}; h.zq=function(){var a={format:"RAW",method:"GET",context:this,kb:this.Bz,onError:this.zp,withCredentials:this.Ed};this.ie&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});Bj(this.Nc,a);Xu("vir")}; h.Bc=function(a,b){if(30==this.V){var c=this.bb["default.jpg"];return c?c:this.videoId?Ug("//docs.google.com/vt",{id:this.videoId,authuser:this.zb,authkey:this.nb}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.bb[b])||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:QG(a,this.videoId,b)}; h.Bz=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.Qd=!1;var c=oj(b);"fail"==c.status?this.R("onStatusFail",c):(Xu("virc"),E(zw.B,function(a){a in this.C&&(c[a]=this.C[a])},this),Aw(this,c),Uw(this))}else this.zp(a)}}; h.zp=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.tb&&(this.Nb?b="manifest.net.retryexhausted":(this.Nb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.he.start()));this.R("dataloaderror",new mv(b,c,d))}}; h.Se=function(){return null}; h.qb=function(){return this}; h.Ak=function(a){return a.getVideoUrl(this.videoId)};B(jx,Rj);h=jx.prototype;h.hasNext=function(a){return this.H||!!a||this.o+1<this.B}; h.qb=function(a){a=void 0!=a?a:this.o;a=this.A&&a in this.A?this.A[this.C[a]]:null;var b=null;a&&(b=new zw(a),b.startSeconds=this.startSeconds||b.clipStart||0,this.D&&(b.playlistId=this.D.toString()));return b}; h.setShuffle=function(a){this.L=a;a=this.C&&null!=this.C[this.o]?this.C[this.o]:this.o;this.C=[];for(var b=0;b<this.A.length;b++)this.C.push(b);this.o=a;this.K++;if(this.L){a=this.C[this.o];for(b=1;b<this.C.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.C[b];this.C[b]=this.C[c];this.C[c]=d}for(b=0;b<this.C.length;b++)this.C[b]==a&&(this.o=b);this.K++}this.R("shuffle")}; h.Bc=function(a,b){b=b||"hqdefault.jpg";var c=this.O[b];if(c||a.C||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.M.length)return QG(a,this.M[0],b)}; h.Se=function(){return this.D?this.D.toString():null}; h.Ak=function(a){return a.getVideoUrl(this.qb().videoId,this.Se())}; h.T=function(){this.G=null;Mb(this.A);jx.N.T.call(this)};B(Bx,Q);h=Bx.prototype;h.qp=function(){this.yb(pH(this.C))}; h.Um=function(){var a=this.C.W().experiments.C,b=Math.min($s()-this.F,a),a=Math.min(b/a,1);this.G.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.A&&this.A.start()}; h.select=function(a){Ex(this);var b=this.D.qb().videoId;S9(this.C.app,b,a?this.D.Lc:this.D.aa,this.D.Se())}; h.UF=function(a){!$l(a)&&yx(a)&&(this.select(),Zl(a))}; h.Ps=function(a){Zl(a);AH(this.C,"autonavcancel");U9(this.C.app,!0)}; h.T=function(){Ex(this);Bx.N.T.call(this)};B(Fx,Q);Fx.prototype.K=function(a,b){Di(this.A);this.context&&(this.A=Eq(A(this.K,this,a,b),b),a.call(this,new Date-this.J))}; Fx.prototype.T=function(){Di(this.A);this.context=null;Fx.N.T.call(this)};B(Px,Q);Px.prototype.If=function(){var a=this.A.qb().videoId;S9(this.C.app,a,this.A.aa,this.A.Se())}; Px.prototype.F=function(a){Kx(a,this.C,this.D)&&this.If()}; Px.prototype.G=function(a){switch(a.keyCode){case 13:case 32:$l(a)||(this.If(),Zl(a))}};B(Rx,Hq);Rx.o=2;h=Rx.prototype;h.create=function(){Rx.N.create.call(this);var a=this.A.getVideoData();a&&(this.C=a.H);this.yd();this.J.subscribe("onResize",this.yd,this);this.J.subscribe("videodatachange",this.Mr,this);this.J.subscribe("autonavchange",this.Lr,this);this.J.subscribe("autonavcancel",this.gw,this)}; h.destroy=function(){this.J.unsubscribe("onResize",this.yd,this);this.J.unsubscribe("videodatachange",this.Mr,this);Mb(this.D);this.C=[];this.D=[];Rx.N.destroy.call(this);Zd(this.element,"ytp-show-tiles");this.M.stop()}; h.Ih=function(){return 1!=this.A.getVideoData().Gd}; h.show=function(){Rx.N.show.call(this);this.A.W().isMobile?Vd(this.M):this.M.start();(this.L||this.G&&this.G!=this.A.getVideoData().clientPlaybackNonce)&&U9(this.A.app,!1);var a=Tx(this.A.W(),this.A.getVideoData(),this.A.ac()),b=!this.G&&this.Ih()&&a;a&&this.A.W().experiments.na("ui_logging")&&this.Y.log({cancelButtonShow:b?"1":"0",state:this.Ih()?"enabled":"disabled"});b?2==this.A.getVideoData().Gd?Cx(this.F):3==this.A.getVideoData().Gd&&Dx(this.F):U9(this.A.app,!0);Vx(this)}; h.ga=function(){Rx.N.ga.call(this);Dx(this.F);Vx(this)}; h.yd=function(a){if((!a||Vl(a)==this.element)&&this.C&&this.C.length){a=this.A.W().experiments.na("video_wall_pagination");var b=this.A.W().experiments.na("video_wall_redesign");a&&I(this.element,"ytp-endscreen-paginate");var c=hg(this.element),d=96,e=54,f=c.width/c.height,k=d/e;Mx(this.A.W())&&!this.A.Ja()&&(d*=.9,e*=.9);for(var l=0,m=0,p=Math.max(c.width/d,2),v=Math.max(c.height/e,2),t=this.C.length,y=Math.pow(Rx.o,2),x=t*y,L=Ux(this,0,v,p),ha=Ux(this,1,v,p),x=x+(Math.pow(L,2)-y),x=x+(Math.pow(ha, 2)-y);0<x&&(l<p||m<v);){var K=l/Rx.o,Y=m/Rx.o,Nb=l<=p-Rx.o&&x>=Y*y,xd=m<=v-Rx.o&&x>=K*y;if(K/Y*k>f&&xd)x-=K*y,m+=Rx.o;else if(Nb)x-=Y*y,l+=Rx.o;else if(xd)x-=K*y,m+=Rx.o;else break}k=!1;p=Rx.o+L;x>=3*y&&6>=t*y-x&&(m>=p||l>=p)&&ha<=Rx.o&&(k=!0);d*=l;e*=m;y=1;y=d/e<f?c.height/e:c.width/d;y=Math.min(y,b?2:Rx.B);d*=y;e*=y;f=b?1:Rx.A;d*=ke(c.width/d||1,1,f);e*=ke(c.height/e||1,1,f);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.S.element;eg(c,d,e);Mf(c,{marginLeft:d/-2+"px", marginTop:e/-2+"px"});f=this.F;y=zx(this.C[0]);f.D=y;Ax(f,y,f.C.W(),"hqdefault.jpg");J(this.element,"ytp-endscreen-takeover",Sx(this));Vx(this);b=b?16:1;f=d+b;d=e+b;e=0;y=!1;for(x=0;x<l;x++)for(p=0;p<m;p++)if(v=ha>Rx.o&&1<=e&&!y?e+1:e,K=0,k&&x>=l-Rx.o&&p>=m-Rx.o?K=1:0==p%Rx.o&&0==x%Rx.o&&(p<L&&x<L?0==p&&0==x&&(K=L):ha>Rx.o&&p>=m-ha&&x>=l-ha?p==m-ha&&x==l-ha&&(y=!0,v=1,K=ha):K=Rx.o),v=(v+this.H)%t,v=0>v*t?v+t:v,0!=K){Y=this.D[e];Y||(Y=new Px(this.A),this.D[e]=Y,c.appendChild(Y.element));var Nb=Math.floor(d* p/m),xd=Math.floor(f*x/l),pp=Math.floor(d*(p+K)/m)-Nb-b,qp=Math.floor(f*(x+K)/l)-xd-b;Tf(Y.element,xd,Nb);eg(Y.element,qp,pp);Mf(Y.element,"transitionDelay",(p+x)/20+"s");J(Y.element,"videowall-still-mini",1==K);J(Y.element,"videowall-still-large",2<K);K=Y;v=zx(this.C[v]);K.A=v;Ax(K,v,K.C.W(),Xd(K.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");e++}a&&J(this.element,"ytp-endscreen-paginate",e<t);for(a=this.D.length-1;a>=e;a--)Y=this.D[a],qf(Y.element),Lb(Y);this.D.length=e}}; Rx.B=1.42;Rx.A=1.21;h=Rx.prototype;h.Mr=function(){var a=this.A.getVideoData().H;this.C!=a&&(this.H=0,this.C=a,this.yd())}; h.Ry=function(){this.H+=this.D.length;this.yd()}; h.Sy=function(){this.H-=this.D.length;this.yd()}; h.Lr=function(a){1==a?(this.L=!1,this.G=this.A.getVideoData().clientPlaybackNonce,Ex(this.F),this.B&&this.yd()):(this.L=!0,this.B&&Sx(this)&&(2==a?Cx(this.F):3==a&&Dx(this.F)))}; h.gw=function(a){a?this.Lr(1):(this.G=null,this.L=!1,this.yd())};B(Xx,mq);h=Xx.prototype;h.Va=function(a){return Zx(a)}; h.create=function(){Xx.N.create.call(this);cy(this);this.o.getVideoData().subscribe("dataupdated",this.fq,this)}; h.destroy=function(){this.o.getVideoData().unsubscribe("dataupdated",this.fq,this);nq(this);this.A.K&&this.A.destroy();Xx.N.destroy.call(this)}; h.load=function(){Xx.N.load.call(this);this.A.show();this.o.W().Z&&.01>Math.random()&&this.log({trailerEndscreenShow:1})}; h.unload=function(){Xx.N.unload.call(this);this.A.ga()}; h.Qb=function(a){Xx.N.Qb.call(this,a);ay(this)&&(this.A.K||this.A.create(),"load"==a.getId()&&this.load())}; h.Wb=function(a){"load"==a.getId()&&this.loaded&&this.unload();Xx.N.Wb.call(this,a)}; h.fq=function(){nq(this);cy(this)};var Iea={mG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",nG:"ERROR_AUTHENTICATION_EXPIRED",oG:"ERROR_AUTHENTICATION_MALFORMED",pG:"ERROR_AUTHENTICATION_MISSING",tG:"ERROR_BAD_REQUEST",yG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",GG:"ERROR_CGI_PARAMS_MALFORMED",HG:"ERROR_CGI_PARAMS_MISSING",OG:"YTP_DEVICE_FALLBACK",TG:"YTP_ERROR_LICENSE",YG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",ZG:"YTP_ERROR_GEO_FAILURE",iH:"YTP_ERROR_GENERIC_WITHOUT_LINK",jH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",pH:"YTP_ERROR_INVALID_DRM_MESSAGE", sH:"LEARN_MORE",IH:"YTP_ERROR_NOT_SIGNED_IN",XH:"YTP_ERROR_PURCHASE_NOT_FOUND",YH:"YTP_ERROR_PURCHASE_REFUNDED",aI:"YTP_ERROR_RENTAL_EXPIRED",BG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",CG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",EG:"YTP_ERROR_CAST_TOKEN_FAILED",DG:"YTP_ERROR_CAST_TOKEN_EXPIRED",FG:"YTP_ERROR_CAST_TOKEN_MALFORMED",iI:"YTP_ERROR_SERVER_ERROR",uI:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",vI:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",wI:"YTP_ERROR_STREAMING_NOT_ALLOWED",xI:"YTP_ERROR_STREAMING_UNAVAILABLE", eI:"YTP_ERROR_RETRYABLE_ERROR",GI:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",FI:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",OI:"YTP_ERROR_UNSUPPORTED_DEVICE",QI:"YTP_ERROR_UNUSUAL_ACTIVITY",ZI:"YTP_ERROR_VIDEO_FORBIDDEN",$I:"YTP_ERROR_VIDEO_NOT_FOUND"},fy={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND", 401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED", 5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};var zG={eG:"adunit",NG:"detailpage",RG:"embedded",rH:"leanback",VH:"profilepage"};var oy=E1&&4>Jw?.1:0,zfa=new my;h=my.prototype;h.We=null;h.Wj=!1;h.getCurrentTime=function(){return this.currentTime||0}; h.pauseVideo=function(){this.pause()}; h.setVolume=function(a,b){this.volume=a/100;this.muted=b}; h.mute=function(){this.muted=!0}; h.unMute=function(){this.muted=!1}; h.qv=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")}; h.tv=function(){this.Wj&&!this.muted&&(this.muted=!0)};qy.prototype.Wa=function(){return T(this,8)&&!T(this,64)&&!T(this,2)};var mz=[1,2,3,4,5],kz={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};B(Ey,Rj);Ey.prototype.C=function(){this.A.isActive()&&Vd(this.A)}; Ey.prototype.D=function(){var a={headers:{"Content-Type":"application/json"},Zc:{alt:"json",key:this.G},postBody:this.H,format:"JSON",timeout:1E4,kb:A(this.K,this),onError:A(this.B,this),Vd:A(this.B,this)};this.F&&(a.headers["X-Goog-Visitor-Id"]=this.F);Aj(this.J,a)}; Ey.prototype.K=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.R("payload",a),this.o=7500+Math.floor(15E3*Math.random()),this.A.start(this.o)):this.B())}; Ey.prototype.B=function(){this.isDisposed()||(this.R("error"),192E4>this.o&&(this.o*=2),this.A.start(this.o))};B(Fy,Q);Fy.prototype.C=function(a){if(!yx(a)||this.A.W().experiments.na("disable_fresca_video_navigation"))Kx(a,this.A,!0);else{var b=a.currentTarget.getAttribute("href");S9(this.A.app,b.substring(b.length-11),void 0,void 0);Zl(a)}};B(Gy,Q);h=Gy.prototype;h.Wx=function(a){if(!yx(a)||this.C.W().experiments.na("disable_fresca_video_navigation"))Kx(a,this.C,!0);else{var b=a.currentTarget.getAttribute("href");S9(this.C.app,b.substring(b.length-11),void 0,void 0);Zl(a)}}; h.Qy=function(){this.D=!0;this.ga()}; h.show=function(){var a=!this.B;Gy.N.show.call(this);a&&rz(this.C)}; h.ga=function(){var a=this.B;Gy.N.ga.call(this);a&&rz(this.C)}; h.T=function(){Mb(this.A);Gy.N.T.call(this)};B(Ly,Q); Ly.prototype.H=function(a){var b;b=this.A;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;J(this.element,"ytp-fresca-inline-countdown",b&&!0);J(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.A.startTime-Math.floor(H()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.G)){this.G=a;My(this,this.A,!0);return}Ny(this.A)||(a=this.A.startTime,b=Math.floor(H()/1E3),b>a?a="":(a-=b,a=86400>a?xx(a):259200>a?P("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}): P("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})),Bq(this,"countdown",a));Di(this.F);this.F=Ai(A(this.H,this),1E3)}}; Ly.prototype.T=function(){Di(this.F);Ly.N.T.call(this)};var Zy; Zy={It:["\u897f\u5143\u524d","\u897f\u5143"],Ht:["\u897f\u5143\u524d","\u897f\u5143"],pu:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),Iu:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),$m:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),fn:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),bn:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),gn:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "), pn:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),jn:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),cn:"\u9031\u65e5 \u9031\u4e00 \u9031\u4e8c \u9031\u4e09 \u9031\u56db \u9031\u4e94 \u9031\u516d".split(" "),hn:"\u9031\u65e5 \u9031\u4e00 \u9031\u4e8c \u9031\u4e09 \u9031\u56db \u9031\u4e94 \u9031\u516d".split(" "), o:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),Ju:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),Cu:["1\u5b63","2\u5b63","3\u5b63","4\u5b63"],wu:["\u7b2c1\u5b63","\u7b2c2\u5b63","\u7b2c3\u5b63","\u7b2c4\u5b63"],Vm:["\u4e0a\u5348","\u4e0b\u5348"],Jj:["y\u5e74M\u6708d\u65e5 EEEE","y\u5e74M\u6708d\u65e5","y\u5e74M\u6708d\u65e5","y/M/d"],ln:["ah:mm:ss [zzzz]","ah:mm:ss [z]","ah:mm:ss","ah:mm"],Dt:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],Lj:6,Ru:[5,6],Mj:5};Qy.prototype.equals=function(a){return a.F==this.F&&a.D==this.D&&a.o==this.o&&a.A==this.A&&a.B==this.B&&a.C==this.C}; Qy.prototype.clone=function(){return new Qy(this.F,this.D,this.o,this.A,this.B,this.C)}; h=Ry.prototype;h.Rn=Zy.Lj;h.Sn=Zy.Mj;h.clone=function(){var a=new Ry(this.date);a.Rn=this.Rn;a.Sn=this.Sn;return a}; h.getFullYear=function(){return this.date.getFullYear()}; h.getMonth=function(){return this.date.getMonth()}; h.getDate=function(){return this.date.getDate()}; h.getTime=function(){return this.date.getTime()}; h.getDay=function(){return this.date.getDay()}; h.getUTCFullYear=function(){return this.date.getUTCFullYear()}; h.getUTCMonth=function(){return this.date.getUTCMonth()}; h.getUTCDate=function(){return this.date.getUTCDate()}; h.getUTCHours=function(){return this.date.getUTCHours()}; h.getUTCMinutes=function(){return this.date.getUTCMinutes()}; h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()}; h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())}; h.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())}; h.toString=function(){return[this.getFullYear(),Oa(this.getMonth()+1,2),Oa(this.getDate(),2)].join("")+""}; h.valueOf=function(){return this.date.valueOf()};var cz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/]; Yy.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.B-Xy(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.A.length;++f){var k=this.A[f].text;1==this.A[f].type?c.push(fz(this,k,a,d,e,b)):c.push(k)}return c.join("")}; var bz=!1;gz.prototype.isLive=function(){return"LIVE"==this.A}; gz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.A}; gz.prototype.getVideoUrl=function(){return this.F};iz.prototype.o=function(){return this.C}; iz.prototype.getMessage=function(){return this.messageText.length?this.messageText:lz(this)}; iz.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.o()==a.o()&&this.imageUrl==a.imageUrl&&Eb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};B(nz,mq);h=nz.prototype;h.Va=function(){return ex(this.o.getVideoData(),"fresca_module")}; h.create=function(a){nz.N.create.call(this);var b=this.o.W();Qv(ut(),"application/x-mpegURL")||Vv()?(this.K=this.B=!1,this.L&&(this.D=new Ly(this.o),Uq(this.o,this.D.element,4)),this.C=a||null,this.C||(a=this.o.getVideoData(),this.C=new Ey(a.videoId,a.visitorData||zi("VISITOR_DATA",""),b.ke)),this.C.subscribe("payload",this.AA,this),this.C.subscribe("error",this.Op,this),this.subscribe("onStateChange",this.Jr,this)):BJ(this.o.app.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}; h.destroy=function(){this.unsubscribe("onStateChange",this.Jr,this);Mb(this.C,this.D);nz.N.destroy.call(this)}; h.Jr=function(a){this.A&&(this.K=T(a.state,2),Cy(pz(this.o))&&this.C.C(),qz(this,this.A))}; h.Op=function(){if(!this.B){var a=this.o.getVideoData();a.hlsvp||a.G?this.o.W().experiments.na("disable_fresca_error_fallback")||(this.B=!0,qq(this)):(tz(this,new iz(this.o.getVideoData().isLiveDefaultBroadcast)),qz(this,this.A))}}; h.AA=function(a){if(!a||a.error)this.Op();else{var b=this.A?this.A.broadcastId:"",c=this.o.getVideoData();tz(this,new iz(c.isLiveDefaultBroadcast,a));this.F=this.F||c.isLiveDefaultBroadcast&&""!=b&&b!=this.A.broadcastId;6!=this.A.state||(c.hlsvp||c.G)&&!this.F?qz(this,this.A):(this.F=!1,this.o.Fm(c.videoId))}};var wz=vc&&uz();Az.prototype.P=function(a,b,c,d){c=A(c,d||this.A);a=Nl(a,b,c);this.o.push(a);return a}; Az.prototype.ya=function(a){Ql(a);ob(this.o,a)}; Az.prototype.removeAll=function(){Ql(this.o);this.o.length=0};B(Dz,F);h=Dz.prototype;h.start=function(){this.stop();this.C=!1;var a=Ez(this),b=Fz(this);a&&!b&&this.A.mozRequestAnimationFrame?(this.o=Nc(this.A,"MozBeforePaint",this.B),this.A.mozRequestAnimationFrame(null),this.C=!0):this.o=a&&b?a.call(this.A,this.B):this.A.setTimeout(gd(this.B),20)}; h.stop=function(){if(this.isActive()){var a=Ez(this),b=Fz(this);a&&!b&&this.A.mozRequestAnimationFrame?Zc(this.o):a&&b?b.call(this.A,this.o):this.A.clearTimeout(this.o)}this.o=null}; h.isActive=function(){return null!=this.o}; h.cw=function(){this.C&&this.o&&Zc(this.o);this.o=null;this.F.call(this.D,H())}; h.T=function(){this.stop();Dz.N.T.call(this)};var Hz={},Iz=null;B(Mz,dd);h=Mz.prototype;h.Wa=function(){return 1==this.o}; h.Gi=function(){this.gc("begin")}; h.Mg=function(){this.gc("end")}; h.Rb=function(){this.gc("finish")}; h.gc=function(a){this.$(a)};B(Nz,Mz);h=Nz.prototype;h.play=function(a){if(a||0==this.o)this.progress=0,this.A=this.B;else if(this.Wa())return!1;Gz(this);this.startTime=a=H();-1==this.o&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.progress||this.Gi();this.gc("play");-1==this.o&&this.gc("resume");this.o=1;var b=ka(this);b in Hz||(Hz[b]=this);Jz();Lz(this,a);return!0}; h.stop=function(a){Gz(this);this.o=0;a&&(this.progress=1);Oz(this,this.progress);this.gc("stop");this.Mg()}; h.pause=function(){this.Wa()&&(Gz(this),this.o=-1,this.gc("pause"))}; h.T=function(){0==this.o||this.stop(!1);this.gc("destroy");Nz.N.T.call(this)}; h.destroy=function(){this.dispose()}; h.xl=function(){this.gc("animate")}; h.gc=function(a){this.$(new Pz(a,this))}; B(Pz,jc);B(Xz,F);h=Xz.prototype;h.fb=function(a){this.nc();var b=this.o;if(1<a.length&&a.length>b.o.length)b.o=b.o.concat(a),b.o.sort(b.A);else for(var c=0;c<a.length;c++){var d=a[c];!b.o.length||0<b.A(d,b.o[b.o.length-1])?b.o.push(d):Gb(b.o,d,b.A)}this.nc()}; h.fh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.A.indexOf(c);0<=d&&this.A.splice(d,1);var e=this.o,d=e.o,c=xb(d,c,e.A);0<=c&&pb(d,c)}}this.nc()}; h.Of=function(){this.C=cA(this);this.H=!0;this.nc()}; h.reset=function(){this.H=this.K=!1;this.D.stop();this.o.o=[];this.A=[];this.nc();this.G=null}; h.nc=function(){this.J=!0;if(!this.F){for(var a=3;this.J&&a;){this.J=!1;this.F=!0;if(this.H&&!this.K){this.D.stop();var b=this.M();this.B&&T(b,32)&&this.L.start();for(var c=cA(this),d=T(b,2),e=[],f=[],k=0;k<this.A.length;k++){var l=this.A[k];l.active&&(d&&this.B?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(Zz(this,f));f=void 0;if(this.B)if(d)f=Tz(this.o,0x7ffffffffffff),f=f.concat(Uz(this.o,0x7ffffffffffff));else{if(this.C<c&&b.Wa()){d=this.o;f=c;k=[];for(l=Vz(d,this.C);l<d.o.length;++l){var m= d.o[l];(m.end<=f||m.contains(f))&&k.push(m);if(m.start>f)break}d=k}else d=Tz(this.o,c);f=d}else f=Tz(this.o,c),!T(b,48)&&c>this.C&&(f=f.concat(Uz(this.o,this.C,c)));e=e.concat(Yz(this,f));this.C=c;!this.K&&this.G&&(this.G=null,!this.B&&T(b,2)&&(this.C=0x8000000000000));!this.B&&this.U()&&bA(this);$z(this,e)}this.F=!1;a--}this.B&&this.M().Wa()&&bA(this)}}; h.T=function(){this.G=this.o=this.A=null;Xz.N.T.call(this)};var sA={LG:"current",HH:"new"};BA.prototype.update=function(){var a=this.A.B()||0,b=XA(this.A);if(a!=this.o||GA(this,a,b)){if(a<this.o||a-this.o>b-this.D+.5||GA(this,a,b))DA(this),this.B=a;this.D=b;this.o=a}};var IA=!1;HA.prototype.na=function(a){return"true"==this.flags[a]}; HA.prototype.Ac=function(a){return(0,window.parseFloat)(this.flags[a])}; HA.prototype.J=function(a){return this.flags[a]?this.flags[a].toString():""};JA.prototype.B=function(){return{ps:this.o.o,el:this.o.Ba}}; JA.prototype.send=function(){if(!this.C){var a;a=this.B();a=Ug(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.o&&this.A.visitorData&&tj(a)?Bj(a,{headers:{"X-Goog-Visitor-Id":this.A.visitorData}}):aq(a);this.C=!0}};B(KA,JA); KA.prototype.B=function(){var a=KA.N.B.call(this);qa(a,this.o.A);qa(a,{html5:"1",video_id:this.A.videoId,eurl:this.o.O,framer:this.o.je,list:this.A.ab||this.A.playlistId,w:ke(this.A.nj/this.A.lengthSeconds,0,1),l:this.A.lengthSeconds,plid:this.A.playbackId,ei:this.A.eventId,access_token:this.A.oauthToken,tpmt:EA(this.D),cpn:this.A.clientPlaybackNonce});this.o.D&&(a.adformat=this.o.D);a.feature=IA?this.o.ka:this.A.qe;var b;(b=(b=IA?this.o.referrer:this.A.referrer)?b.slice(0,128):"")&&(a.referrer=b); this.o.autoplay&&(a.autoplay="1");this.o.zb&&(a.authuser=this.o.zb);this.o.pageId&&(a.pageid=this.o.pageId);this.A.Yf&&(a.splay="1");this.A.subscribed&&(a.subscribed=this.A.subscribed);qa(a,KA.N.B.call(this));qa(a,this.o.A);return a};B(NA,F);var gB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=NA.prototype; h.Qi=function(a){a=0<=a?a:XA(this.o);var b=this.o.G();if(!(0,window.isNaN)(this.U)&&!(0,window.isNaN)(b.B)){var c=b.B-this.U;0<c&&OA(this,a,"bwm",[c,(b.F-this.aa).toFixed(3)])}this.U=b.B;this.aa=b.F;(0,window.isNaN)(b.o)||OA(this,a,"bwe",[b.o.toFixed(0)]);(0,window.isNaN)(b.A)||(c=b.A,b.C<c&&(c=b.C),this.O!=c&&(OA(this,a,"bh",[c.toFixed(3)]),this.O=c),this.o.A.experiments.A&&3>c&&("PL"==this.A||"B"==this.A)&&this.G.start());this.C&&OA(this,a,"bat",[this.C.level,this.C.charging?"1":"0"]);c=iH(this.o.A); this.Z!=c&&(OA(this,a,"vis",[c]),this.Z=c);OA(this,a,"cmt",[this.o.B()]);0<b.D&&OA(this,a,"e2el",[b.D,b.H.toFixed(3),b.G.toFixed(3),b.K.toFixed(3),b.J.toFixed(3)]);null!==this.o.o.Pj&&(this.B.acc=[this.o.o.Pj.join(":")])}; h.Rg=function(a){if(!this.isDisposed()&&!ac(this.B)){a=0<=a?a:XA(this.o);this.G.isActive()||this.Qi(a);var b=RG(this.o.A),c=b.droppedVideoFrames,d=c-this.V;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&OA(this,a,"df",[d]);this.V=c;a=PA(this);gc(a,this.o.A.A);a=Ug(this.o.A.Oc,a);for(var e in this.B)a+="&"+e+"="+this.B[e].join(",");aq(a);this.B={};this.F.start()}}; h.Of=function(){OA(this,XA(this.o),"vps",["N"]);this.o.o.$a&&QA(this,"preload");this.o.o.ml&&QA(this,"reload");this.o.o.yf&&QA(this,"monitor");this.o.A.experiments.Y&&Ai(A(this.SB,this),5E3);this.S=Ci(A(this.Rg,this),1E4);this.F.start()}; h.SB=function(){var a=ij("yt-player-benchmark")||0;if(!a){for(var b=a=0;20>b;b++){for(var c=$s(),d=0,e=0;1>$s()-c;){for(var f=0;1E3>f;f++)e=e*e%1E3+1;e=e%1E3;d++}d=Math.floor(d+e/1E3);a=Math.max(d,a)}a=Math.floor(Math.log(a)/Math.log(2));gj("yt-player-benchmark",a,172800)}QA(this,"jsbench-"+a)}; h.Fq=function(){this.o.o.J&&QA(this,"drm-"+this.o.o.J.o)}; h.onError=function(a,b){var c=this.o.B(),c=[a,c.toFixed(3)];b&&c.push(b);var d=XA(this.o);OA(this,d,"error",c);this.Qi(d)}; h.Dz=function(){var a=XA(this.o);"PL"==this.A&&(OA(this,a,"vps",[this.A]),this.Rg(a))}; h.T=function(){NA.N.T.call(this);Ei(this.S)};RA.prototype.send=function(a){if(!this.Y){var b=TA(this),b=Ug(this.ab,b);if(this.V)this.L&&(a={method:"POST",Bb:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),Bj(b,a));else{var c=this.G&&uj(),d=this.Da&&!!this.visitorData;if(c||d){var e={};c&&(e.Authorization="Bearer "+this.G);d&&(e["X-Goog-Visitor-Id"]=this.visitorData);Bj(b,{headers:e,withCredentials:!0,Rb:a})}else aq(b,a)}this.Y=!0}}; RA.prototype.o=function(a){return(1*a.toFixed(3)).toString()};B(VA,F);h=VA.prototype;h.lz=function(a,b){if(!this.isDisposed()){this.G=window.NaN;this.A.update();var c=FA(this.A),d=$A(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.A=WA(this,!0,a));d.send();this.K++}}; h.Of=function(){this.B.Of()}; h.onError=function(a,b){this.B.onError(a,b)}; h.Vi=function(a){var b=this.o.A,c=this.o.o,c={ns:b.aa,el:b.Ba,eurl:b.O,fmt:c.A?c.A.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.o.B(),video_id:c.videoId,metric:a};b.autoplay&&(c.autoplay="1");"heartbeat"==a&&(c.tpmt=EA(this.A));qa(c,b.A);cB(this,Ug("//www.youtube.com/live_204",c))}; h.T=function(){VA.N.T.call(this);Di(this.G);this.G=window.NaN;var a=this.A;Ei(a.F);a.F=window.NaN};iB.prototype.ib=function(a,b){BH(this.ca,"iv",a,b)};h=rB.prototype;h.Xi=function(){this.context.D.subscribe("onResize",this.Jh,this)}; h.la=function(){return this.Z}; h.Lf=function(a,b,c,d,e,f){this.context.o.P(a,"click",pa(this.Bi,b,c,d,e||[],f||0),this);this.context.o.P(a,"touchstart",pa(function(){this.km=!1}),this); this.context.o.P(a,"touchmove",pa(function(){this.km=!0}),this)}; h.Bi=function(a,b,c,d,e,f){if(this.km)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=yA(a,b,this.context.C.videoId))&&uB(this,b,AA(b,a.target),c,d,e,a.Li);return!1}; h.show=function(){this.K=H()}; h.ga=function(){}; h.destroy=function(){qf(this.la())}; h.Jh=function(){};B(vB,Q);h=vB.prototype;h.RE=function(a){this.A&&yf(this.A.element,Vl(a))||(this.C&&this.C.fk?this.Ap(this.C):(this.Ej(),Pi("iv-teaser-clicked",!!this.xa),this.ca.jh(!0)))}; h.PE=function(){Pi("iv-teaser-hovered")}; h.QE=function(){Zd(this.element,"ytp-cards-auto-open-hover-card")}; h.XA=function(a){this.xa||!a||CH(this.ca)||this.F&&this.F.isActive()||(this.C=a.ki,yB(this,a),Pi("iv-teaser-shown"))}; h.Ap=function(a){a.Li&&this.ca.pauseVideo();Hx(a.kq,void 0);Ix(a.kq,a.target);Pi("iv-hover-card-clicked")}; h.Kw=function(){I(this.element,"ytp-hover-card-active")}; h.Lw=function(){Zd(this.element,"ytp-hover-card-active")}; h.Ej=function(){!this.xa||this.G&&this.G.isActive()||(this.A&&(Aq(this.A),this.A=null),this.C=null,this.H.ga(),Zd(this.ca.Aa(),"ytp-cards-teaser-shown"),Zd(this.ca.Aa(),"ytp-cards-button-teaser-merge"),Zd(this.element,"ytp-cards-combined-teaser"),this.G=new Ud(function(){for(var a=0;a<this.D.length;a++)this.ya(this.D[a]);this.D=[];this.xa&&(this.xa.dispose(),this.xa=null);zB(this.J,!0)},330,this),this.G.start())}; h.T=function(){var a=this.ca.Aa();a&&Zd(a,"ytp-cards-teaser-shown");Mb(this.F,this.G,this.xa,this.A,this.C);vB.N.T.call(this)};B(BB,AB);B(CB,AB);B(DB,CB);EB.prototype.D=function(a,b){var c=Hf(b.target,"iv-card-poll");if(c){var d=Ff(b.target,"label");I(d,"iv-card-poll-choice-checked");a:{if(d=b.target.form.elements[a.B]){if(d.type){d=kj(d);break a}for(var e=0;e<d.length;e++){var f=kj(d[e]);if(f){d=f;break a}}}d=null}d=(0,window.parseInt)(d,10);a.choices[d].count++;GB(a,c);Aj(this.o.C.Ye,{Zc:{action_poll_vote:1},Bb:{poll_id:a.id,index:d}});c={};c["link-id"]=d;nB(this.o.logger,a.Pa,void 0,c,a.o.click,5)}}; EB.prototype.C=function(a){var b=u("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.H,a.C));QB(this,a,b)}; EB.prototype.F=function(a){var b=u("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.H,a.C,a.J));QB(this,a,b)};B(SB,AB);B(TB,AB);B(UB,CB);B(ZB,CB);B($B,AB);B(aC,AB);B(bC,rB);h=bC.prototype;h.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.ca.Aa())?(a=hg(a),a=177<a.width&&177<a.height):a=!1;return a}; h.hv=function(){cC(this,"product_listing_ads_cards_drawer_auto_open")&&!nC(this)||fC(this)}; h.fv=function(){hC(this)}; h.Jh=function(){var a=this.isAvailable();Lq(this.la(),a);J(this.context.A.Aa(),"ytp-iv-drawer-enabled",a);a&&(this.S||(pB(this.context.logger,11),this.S=!0),E(this.A,function(a){a.Yo||(a.Yo=!0,qB(this.context.logger,11,a.Sa.Pa))},this)); gC(this.ca)}; h.destroy=function(){DH(this.ca,!1);this.ca.Aa().removeChild(this.F);Oi(this.G);Ql(this.O);this.J&&this.J.dispose();this.C&&this.C.dispose();bC.N.destroy.call(this)}; var dF={adspaycreator:CB,associated:CB,associated:CB,collaborator:BB,donation:DB,episode:aC,fundraising:CB,location:CB,merch:CB,movie:aC,playlist:SB,poll:TB,product:CB,productListing:UB,simple:CB,tip:ZB,video:$B};h=bC.prototype;h.jE=function(a){this.Zj.start();a.preventDefault();if(a=bm(a||window.event,!1))this.yc.scrollTop+=a}; h.Ol=function(a,b){if(!Xd(this.ca.Aa(),"ytp-cards-teaser-shown")){this.o!=a&&(this.o=a);if(Mq(this.la())){var c;(c=b)||(2==this.context.A.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.A.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.A.getPlayerState():void 0,c=1==c||0==c&&0===this.context.A.getCurrentTime()));if(c&&a.Sa.teaserDurationMs){c=null;if("video"==a.Sa.type&&cC(this,"hover_card_for_video_card_teaser")){var d=a.Sa,e=d.url?yA(d.url,a.Sa.id,this.context.C.videoId, this.context.B):null,f=e?AA(e,d.url.target):null;e&&f&&(c={rJ:d.id,title:d.title,kq:e,target:"current"==f?"_top":void 0,Li:d.url.Li,imageUrl:d.B,videoDuration:d.videoDuration,qd:d.qd,fk:cC(this,"combined_teaser_link")})}DH(this.ca,!0,{teaserText:a.Sa.teaserText,durationMs:b?2E3:a.Sa.teaserDurationMs,ki:c,Sx:cC(this,"merge_button_with_teaser"),jv:b&&cC(this,"hover_card_on_button_hover")})}}(!this.D||!this.Zj.isActive()&&this.zi)&&lC(this,a)}}; h.lC=function(){this.o&&this.Ol(this.o,!0)}; h.eC=function(a){this.D||(this.o=a,lC(this,a),fC(this,a))}; h.uv=function(){this.D&&(pB(this.context.logger,4,mC(this).o.close),hC(this))}; h.Iv=function(){J(this.F,"iv-drawer-scrolled",0<this.yc.scrollTop)}; h.Rx=function(){var a=mC(this);qB(this.context.logger,8,a.Pa,a.o.pC)}; h.Qx=function(){var a=this.o;qB(this.context.logger,13,a.Sa.Pa,void 0);var b=cC(this,"hover_card_for_video_card_teaser");"video"==a.Sa.type&&b&&(a=this.o,a.Ci||(a.Ci=!0,jB(this.context.logger,a.Sa.Pa,a.Sa.o.Ko)))}; h.Ox=function(){var a=this.o.Sa;nB(this.context.logger,a.Pa,void 0,void 0,a.o.click,5)}; h.Px=function(a){var b=mC(this);this.o?a?(a=this.context.logger,qB(a,9,b.Pa,b.o.Xl)):(a=this.context.logger,qB(a,12,b.Pa,b.o.Xl)):(a=this.context.logger,pB(a,12,b.o.Xl));a.ca.ag(4,void 0)};var qC=/#(.)(.)(.)/,pC=/^#(?:[0-9a-f]{3}){1,2}$/i;B(rC,Nz);rC.prototype.C=w;rC.prototype.xl=function(){this.C();rC.N.xl.call(this)}; rC.prototype.Mg=function(){this.C();rC.N.Mg.call(this)}; rC.prototype.Gi=function(){this.C();rC.N.Gi.call(this)}; B(sC,rC);sC.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};B(tC,rB);tC.prototype.Xi=function(){tC.N.Xi.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&sB(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ga)};B(uC,tC);uC.prototype.J=function(a,b,c,d){this.o.stop();if(!this.B){var e=hg(a);fg(a,e.width);fg(b,e.width);Tf(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;Nq(a);this.D=new Ud(function(){I(this.la(),"iv-branding-active")},0,this); this.D.start()}}; uC.prototype.H=function(a,b){Zd(this.la(),"iv-branding-active");this.F=new Ud(function(){Oq(a);fg(b,0)},250); this.F.start();this.B=!1}; uC.prototype.show=function(){if(!this.isActive){uC.N.show.call(this);if(!this.G){I(this.la(),"iv-branding");var a=this.annotation.data;this.C=a.image_width;this.A=M("img",{src:a.image_url,"class":"branding-img iv-click-target hid",width:a.image_width,height:a.image_height});var b=M("div","branding-img-container",this.A);this.la().appendChild(b);var c=M("div","iv-branding-context-name");Af(c,a.channel_name);var d=M("div","iv-branding-context-subscribe");this.annotation.B?d.innerHTML=this.annotation.B: a.num_subscribers&&Af(d,a.num_subscribers);b=M("div","iv-branding-context-subscribe-caret");c=M("div",["branding-context-container-inner","hid"],b,c,d);d=M("div","branding-context-container-outer",c);Mf(d,"right",this.C+"px");this.la().appendChild(d);this.Lf(this.A,eD(this.annotation),this.annotation.id,this.annotation.Pa);this.o=new Ud(pa(this.H,c,d),500,this);this.context.o.P(this.la(),"mouseover",A(this.J,this,c,d,b,a.image_height));this.context.o.P(this.la(),"mouseout",A(this.o.start,this.o)); this.G=!0}jB(this.context.logger,this.annotation.Pa);Nq(this.la());this.isActive=!0;var a=this.A,e,b=jg(a).width,c=fa(void 0)?void 0:b;e=e||0;Tf(a,c);e=new sC(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Qz);this.context.o.P(e,"begin",pa(Nq,a));e.play()}}; uC.prototype.ga=function(){this.isActive&&(Oq(this.la()),this.isActive=!1)};var yC={CLOSE:"close",MH:"openUrl",Ku:"subscribe"},zC={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",fI:"rollOut",Au:"rollOver",Du:"shown"};var JC={iJ:"xx",jJ:"xy",mJ:"yx",nJ:"yy"};B(NC,HC);var RC={bt:"anchored",$H:"rect",jI:"shapeless"};var WC={CLOSED:"closed",QH:"playerControlShow",Au:"rollOver",Du:"shown"};var cD={bt:"anchored",BRANDING:"branding",CHANNEL:"channel",KG:"cta",gH:"highlightText",qH:"label",PLAYLIST:"playlist",SH:"popup",qI:"speech",Ku:"subscribe",CI:"title",VIDEO:"video",dJ:"vote",WEBSITE:"website"},bD={BRANDING:"branding",zG:"card",fH:"highlight",IMAGE:"image",MARKER:"marker",WH:"promotion",TEXT:"text",fJ:"widget"},dD={aJ:"video_relative",RH:"player_relative"};$C.prototype.showLinkIcon=function(){return hD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(oD,tC);h=oD.prototype;h.show=function(){this.isActive||(oD.N.show.call(this),this.H||(pD(this),this.H=!0),Nq(this.la()),this.annotation&&this.annotation.Pa&&jB(this.context.logger,this.annotation.Pa),Zd(this.la(),"iv-promo-inactive"),this.la().removeAttribute("aria-hidden"),this.isActive=!0,this.o&&(Td(this.o),this.o=null),rD(this),sD(this,this.F))}; h.ga=function(){this.isActive&&(I(this.la(),"iv-promo-inactive"),this.isActive=!1,this.la().setAttribute("aria-hidden",!0))}; h.Bi=function(a,b,c,d,e,f){return this.C?!1:oD.N.Bi.call(this,a,b,c,d,e,f)}; h.Ik=function(a,b){b.stopPropagation();rD(this);sD(this,a);this.Sb.focus()}; h.uw=function(a){this.G=!0;this.Ik(500,a)}; h.tw=function(){this.G=!1;qD(this)}; h.kE=function(a){a.stopPropagation();this.ga();oB(this.context.logger,this.annotation.Pa)}; h.destroy=function(){this.D.dispose();oD.N.destroy.call(this)};tD.prototype.C=function(a,b,c,d){this.o[a]=b?!c:c;a=Rb(this.o,function(a){return a}); this.A!=a&&(this.A=a,this.B.R(this.D,a,d))};h=vD.prototype;h.ga=function(){this.isVisible=!1;this.o&&(xD(this),this.o.ga())}; h.show=function(){this.isVisible=!0;this.o&&(this.o.show(),this.B.subscribe("onResize",this.Or,this),this.B.subscribe("onVideoAreaChange",this.cq,this))}; h.destroy=function(){if(this.o){xD(this);var a=this.o;a.G.removeAll();a.tl.dispose();a.J.dispose();a.A&&qf(a.A);a.B&&a.B.la()&&qf(a.B.la())}yD(this)}; h.cq=function(){IE(this.o)}; h.Or=function(){IE(this.o)};zD.prototype.clone=function(){return new zD(this.start,this.end)};B(BD,AD);CD.prototype.Qc=null;CD.prototype.Ob=null;CD.prototype.Yg=!0;var GD=[2,2,6,6,0];h=CD.prototype;h.clear=function(){this.ua.length=0;this.wa.length=0;this.dc.length=0;delete this.Qc;delete this.Ob;delete this.Yg;return this}; h.sb=function(a){var b=cb(this.ua);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ua.push(1),this.wa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.dc.push(c,d)}this.wa[this.wa.length-1]+=b/2;this.Ob=[c,d]}; h.close=function(){var a=cb(this.ua);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ua.push(4),this.wa.push(1),this.Ob=this.Qc);return this}; h.clone=function(){var a=new this.constructor;a.ua=this.ua.concat();a.wa=this.wa.concat();a.dc=this.dc.concat();a.Qc=this.Qc&&this.Qc.concat();a.Ob=this.Ob&&this.Ob.concat();a.Yg=this.Yg;return a}; h.transform=function(a){if(!this.Yg)throw Error("Non-simple path");a.transform(this.dc,0,this.dc,0,this.dc.length/2);this.Qc&&a.transform(this.Qc,0,this.Qc,0,1);this.Ob&&this.Qc!=this.Ob&&a.transform(this.Ob,0,this.Ob,0,1);return this}; h.isEmpty=function(){return 0==this.ua.length};B(HD,AD);ID.prototype.getWidth=function(){return this.B};aa(JD);JD.prototype.o=0;B(KD,dd);h=KD.prototype;h.Mw=JD.getInstance();h.getId=function(){return this.S||(this.S=":"+(this.Mw.o++).toString(36))}; h.la=function(){return this.o}; h.Vg=function(a){if(this.J&&this.J!=a)throw Error("Method not supported");KD.N.Vg.call(this,a)}; h.ho=function(){this.o=this.M.createElement("DIV")}; h.ug=function(){LD(this,function(a){a.Ke&&a.ug()}); this.D&&this.D.removeAll();this.Ke=!1}; h.T=function(){this.Ke&&this.ug();this.D&&(this.D.dispose(),delete this.D);LD(this,function(a){a.dispose()}); this.o&&qf(this.o);this.J=this.o=this.F=this.H=null;KD.N.T.call(this)}; h.Kd=function(){return this.o}; h.removeChild=function(a,b){if(a){var c=z(a)?a:a.getId();a=this.F&&c?dc(this.F,c)||null:null;if(c&&a){cc(this.F,c);ob(this.H,a);b&&(a.ug(),a.o&&qf(a.o));c=a;if(null==c)throw Error("Unable to set parent component");c.J=null;KD.N.Vg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(MD,KD);MD.prototype.B=null;MD.prototype.zg=function(){return this.Ke?gg(this.la()):fa(this.width)&&fa(this.height)?new re(this.width,this.height):null}; MD.prototype.resume=function(){};B(OD,dd);h=OD.prototype;h.Ck=null;h.Bg=null;h.la=function(){return this.Bg}; h.addEventListener=function(a,b,c,d){Nc(this.Bg,a,b,c,d)}; h.removeEventListener=function(a,b,c,d){Yc(this.Bg,a,b,c,d)}; h.T=function(){OD.N.T.call(this);var a=this.Bg;if(a)if(Dc(a))a.removeAllListeners(void 0);else if(a=Qc(a)){var b=0,c;for(c in a.o)for(var d=a.o[c].concat(),e=0;e<d.length;++e)Zc(d[e])&&++b}};B(PD,OD);PD.prototype.fill=null;B(TD,OD);B(UD,OD);B(VD,PD);B(WD,TD);WD.prototype.clear=function(){of(this.la())}; WD.prototype.setSize=function(a,b){$D(this.la(),{width:a,height:b})}; B(XD,VD);B(YD,UD);YD.prototype.setPosition=function(a,b){$D(this.la(),{x:a,y:b})}; YD.prototype.setSize=function(a,b){$D(this.la(),{width:a,height:b})};var eE;B(ZD,MD);var cE=0;h=ZD.prototype;h.ho=function(){var a=RD(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=RD(this,"g");this.G=RD(this,"defs");this.B=new WD(b,this);a.appendChild(this.G);a.appendChild(b);this.o=a;this.C&&(this.la().setAttribute("preserveAspectRatio","none"),this.O?this.Vq():this.la().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.K:"")))}; h.Vq=function(){if(this.Ke){var a=this.zg();if(0==a.width)this.la().style.visibility="hidden";else{this.la().style.visibility="";var b=a.width/this.C,a=a.height/this.K;this.B.la().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}}; h.setSize=function(a,b){eg(this.la(),a,b)}; h.zg=function(){if(!tc)return this.Ke?gg(this.la()):ZD.N.zg.call(this);var a=this.width,b=this.height,c=z(a)&&-1!=a.indexOf("%"),d=z(b)&&-1!=b.indexOf("%");if(!this.Ke&&(c||d))return null;var e,f;c&&(e=this.la().parentNode,f=hg(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.la().parentNode,f=f||hg(e),b=(0,window.parseFloat)(b)*f.height/100);return new re(a,b)}; h.clear=function(){this.B.clear();of(this.G);this.A={}}; h.ug=function(){ZD.N.ug.call(this);this.O&&this.L.ya(dE(),"tick",this.Vq)}; h.T=function(){delete this.A;delete this.G;delete this.B;this.L.dispose();delete this.L;ZD.N.T.call(this)};fE.prototype.la=function(){return this.D}; fE.prototype.A=function(){};var oE={bevel:1,dropshadow:2};B(wE,fE); wE.prototype.A=function(a,b){var c=lD(a);if(c){var d=KC(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=mD(a))&&c.o?c.o:null)&&c.length?c[0]:null){var f=xe(LC(b,EC(e,new te(e.H,e.J,e.D,e.B),b.o))),k=d.clone(),c=new te(f.x,f.y,1,1),l=Math.max(k.left+k.width,c.left+c.width),m=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=l-k.left;k.height=m-k.top;var c=a.o,k=uE(k,c.effects),l=gE(this,k.width,k.height),m=sE(c,k.width,k.height,this.o), d=new te(d.left-k.left,d.top-k.top,d.width,d.height),p=new oe(f.x-k.left,f.y-k.top);this.C=17*GC(b.o,e.A,e.o?e.o:"xy");e=c.o;var f=a.o,v=this.o&&gD(a),t=v?f.D+1:f.D,v=(f=t?new ID(t,v?f.F:f.G):null)?f.getWidth()/2:0,t=xE(d,p),y=this.F(d,e,p,t),x=p.x,p=p.y,L=d.width,ha=d.height,K=d.left,d=d.top,Y=new CD;DD(Y,K+e+v,d+v);"t"==t&&(Y.sb(y.start,d+v),Y.sb(x,p),Y.sb(y.end,d+v));Y.sb(K+L-e-v,d+v);ED(Y,e,e,-90);"r"==t&&(Y.sb(K+L-v,y.start),Y.sb(x,p),Y.sb(K+L-v,y.end));Y.sb(K+L-v,d+ha-e-v);ED(Y,e,e,0);"b"== t&&(Y.sb(y.end,d+ha-v),Y.sb(x,p),Y.sb(y.start,d+ha-v));Y.sb(K+e+v,d+ha-v);ED(Y,e,e,90);"l"==t&&(Y.sb(K+v,y.end),Y.sb(x,p),Y.sb(K+v,y.start));Y.sb(K+v,d+e+v);ED(Y,e,e,180);Y.close();aE(l,Y,f,m);if(m=this.la())I(m,"annotation-shape"),I(m,"annotation-speech-shape"),Tf(m,k.left,k.top),eg(m,k.width,k.height),vE(l,m,c.effects)}}}}; wE.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=ke(c-a/2,d+b,d+e-a-b);return new zD(c,c+a)} return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new zD(0,0)};B(yE,fE);yE.prototype.A=function(a,b){var c=lD(a);if(c){var d=KC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=uE(d,c.effects),f=gE(this,e.width,e.height);qE(f,new te(0,0,d.width,d.height),c.o,new ID(!c.B&&this.o?1:c.B,c.C),new HD("#000",0));d=this.la();I(d,"annotation-shape");kg(d,tE(this.o,c.A));Tf(d,e.left,e.top);eg(d,e.width,e.height)}}};B(zE,fE); zE.prototype.A=function(a,b){var c=KC(lD(a),b);if(!(0>=c.width||0>=c.height)){var d=AE(c,this.G);d.left+=c.left;d.top+=c.top;var e=a.o,f=uE(d,e.effects),k=gE(this,f.width,f.height),l=new HD("#000",0),d=AE(d,this.C),m;m=a.C?a.C.o?a.C.o:a.C.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.C.videoId)+"/hqdefault.jpg":"":"";d=RD(k,"image",{x:d.left,y:d.top,width:d.width,height:d.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});d.setAttributeNS("http://www.w3.org/1999/xlink","href", m);var p=new YD(d,k);k.B.la().appendChild(p.la());if(d=this.la()){kg(d,tE(this.o,e.A));if(this.F&&0<e.B){m=new ID(e.B,e.C);var c=new te(0,0,c.width,c.height),v=m.getWidth()/2+1;var v=rE(c,e.o,v),t=QD(k,"mask");if(t)v=t;else{var t=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),y=window.document.createElementNS("http://www.w3.org/2000/svg","path");y.setAttribute("d",bE(v));y.setAttribute("fill","#FFF");t.appendChild(y);v=SD(k,"mask",t)}p=p.la();v&&p.setAttribute("mask","url(#"+ v+")");qE(k,c,e.o,m,l)}I(d,"annotation-shape");I(d,"annotation-image-shape");Tf(d,f.left,f.top);eg(d,f.width,f.height);vE(k,d,e.effects)}}};B(BE,fE);BE.prototype.A=function(a,b){var c=lD(a);if(c){var d=KC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.o,e=uE(d,c.effects),f=gE(this,e.width,e.height),k=new te(0,0,d.width,d.height),d=sE(c,d.width,d.height,this.o),l=c.o,m=a.o,p=this.o&&gD(a),v=p?m.D+1:m.D;qE(f,k,l,v?new ID(v,p?m.F:m.G):null,d);if(k=this.la())I(k,"annotation-shape"),I(k,"annotation-popup-shape"),Tf(k,e.left,e.top),eg(k,e.width,e.height),vE(f,k,c.effects)}}};B(CE,wE);CE.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new zD(c,c+a)} return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new zD(0,0)};h=EE.prototype;h.Pr=function(){this.S||(this.C&&Nq(this.C),this.D&&Nq(this.D),this.B&&(this.B.o=!0,kg(this.A,PE(this)?1:0),this.B.A(this.o,JE(this))),this.J.isActive()&&this.J.stop(),this.S=!0,this.K=Bz(this.G,LE(this.F),function(a){this.tl.stop();this.Ng(a)}))}; h.Ng=function(){this.S&&(this.O?this.J.start():this.no(),this.B&&(this.B.o=!1,kg(this.A,PE(this)?1:0),this.B.A(this.o,JE(this))),this.S=!1,this.K&&(this.G.ya(this.K),this.K=null))}; h.no=function(){this.C&&Oq(this.C);this.D&&Oq(this.D)}; h.iE=function(a){this.Z=a;this.tl.jf()}; h.rw=function(){var a=this.Z,b=new oe(a.clientX,a.clientY),c=$f(this.F.Aa()),d=QE(c,this.M),c=(Mq(this.D)||Mq(this.C))&&QE(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.Pr():this.Ng(a)}; h.show=function(){var a=this.o.o,a=(a&&0==a.A||"title"==this.o.style||"highlightText"==this.o.style?!1:!0)&&!this.B,b=!this.A,c="widget"==this.o.type;if(a){var d=JE(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new yE:"popup"==this.o.style?e=new BE:"anchored"==this.o.style?e=new wE:"speech"==this.o.style?e=new CE:"image"==this.o.type&&("video"==this.o.style?e=new zE(cga,V5,!0):"channel"==this.o.style&&(e=new zE));e&&(e.A(this.o,d),this.B=e,d=e.la())&&(Oq(d),I(d,"annotation-type-"+ this.o.type.toLowerCase()),this.U(d))}if(b){d=["annotation","hid"];"highlightText"!=this.o.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=M("div",d);this.o.F&&(this.H=M("div","inner-text"),"label"==this.o.style&&(I(this.H,"label-text"),this.H.style.backgroundColor=this.o.o.C),Af(this.H,this.o.F),this.A.appendChild(this.H));ri(this.A,"annotation_id",this.o.id);this.U(this.A);FE(this,this.A);if(gD(this.o)&&"image"!=this.o.type&&this.o.showLinkIcon()){if(e= eD(this.o))d=this.A,e=new N(tA(e)),d.title=e.A+e.B;this.D=M("span",["annotation-link-icon","hid"]);this.A.appendChild(this.D)}HE(this);gD(this.o)||(this.A.style.cursor="default")}c&&("subscribe"==this.o.style?$e("yt-uix-subscription-button",this.A)||(this.A.innerHTML=this.o.B):this.o.B&&(this.A.innerHTML=this.o.B));if(a||b){a:{a=this.o.A.o;if(a.length&&(a=SC(a[0]))){a=a.K;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.la()&&(this.B.la().style.zIndex=a)}Nq(this.A);kg(this.A,PE(this)?1: 0);IE(this);this.B&&Nq(this.B.la())}; h.ga=function(){Oq(this.A);this.B&&Oq(this.B.la());this.L&&(this.G.ya(this.L),this.L=null)};B(RE,mq);RE.F="AnnotationsModule";var SE={gt:"video-annotations",Bt:"video-custom-annotations",cu:"video-legacy-annotations"};RE.D=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1}; RE.C=function(a){return"card"==a.type}; RE.B=function(a){return RE.Va(a)?new RE(a):null}; RE.Va=function(a){var b=a.W();return"leanback"==b.Ba?!1:!b.J.isEmpty()||RE.o(b.o)?!0:ex(a.getVideoData(),"iv3_module")}; RE.A=function(){return M("div",["annotation","annotation-type-custom","hid"])}; RE.o=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1}; h=RE.prototype;h.xd=function(a,b){if(!RE.o(this.o.W().o))return null;switch(a){case "loadCustomAnnotationsXml":var c=vz(b);c&&$E(this,c);return!0;case "removeCustomAnnotationById":return b&&this.A&&(dC(this.A,b),gC(this.o)),!0}return null}; h.Ue=function(){return RE.o(this.o.W().o)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]}; h.Va=function(){return RE.Va(this.o)}; h.create=function(){RE.N.create.call(this);this.C=new Q(["div",["ytp-player-content","ytp-iv-player-content"]]);Uq(this.o,this.C.element,4);var a=this.o.W(),b=this.o.getVideoData();1!=(a.Ed||b.Ca)&&ca(a.J.get(b.videoId))||this.load()}; h.destroy=function(){Zd(this.o.Aa(),"ytp-iv-drawer-open");Aq(this.C);this.C.dispose();RE.N.destroy.call(this)}; h.uA=function(a){T(a.state,2)&&(kF(this)&&lF(this)&&2!=this.o.getPresentingPlayerType()&&mF(this,!1),nF(this,!1))}; h.load=function(){RE.N.load.call(this);this.K++;var a=this.o.getVideoData(),b=a.videoId,c=A(this.xz,this,b,this.K);Eu()&&(c=aF(this,c));c={format:"XML",Rb:c,Zc:{}};a.isPharma&&(c.Zc.pharma="1");var d=this.o.W();d.experiments.na("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.o&&(c.Zc.gaming="1");(b=d.J.remove(b))&&bF(this,c,b);a.Ye&&(b=b&&(b.ue||b.Vh),a.wn&&!b||Bj(a.Ye,c))}; h.unload=function(){this.D.ib({"iv-event":1});nq(this);Ob(this.B,function(a){a.destroy()}); Ob(this.L,function(a){a.destroy()}); this.F=null;this.A&&(this.A.destroy(),this.A=null,gC(this.o));this.B={};this.L={};RE.N.unload.call(this)}; h.xz=function(a,b,c){if(!UE(this,b,a)&&(a=vj(c)&&c.responseXML?c.responseXML:null)){$E(this,a);I(this.o.Aa(),this.qa+"-loaded");a=[];for(var d in this.B){b=this.B[d].annotation;if(b.A)if(c=b.A,c.o.length)if(c=c.o[0].A||c.o[0].o||c.o[0].B,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.F,f.visible= !0);b=new iq(c,e,f);a.push(b)}}this.fb(a)}}; h.lB=function(a){this.J&&a==this.o.getVideoData().videoId&&(this.loaded?ZE(this):this.load())}; h.Hy=function(a){kF(this)&&mF(this,a)}; h.Qb=function(a){RE.N.Qb.call(this,a);a=a.getId();var b=this.B[a];b&&!b.C&&(b=b.annotation,fF(this,a),jB(this.D,b.Pa))}; h.Wb=function(a){RE.N.Wb.call(this,a);gF(this,a.getId())}; h.mo=function(a){a&&(a.ga(),jF(this,"shown",!1,a.annotation.id),this.Wh(a.annotation,"hidden"))}; h.Mq=function(a){a&&(a.show(),jF(this,"shown",!0,a.annotation.id),this.Wh(a.annotation,"shown"))}; h.hB=function(a,b,c){var d=this.B[a];if(d&&b.value!=c){b.value=c;var e=!1;jD(d.annotation,function(a){e|=a.value}); eF(this,a,b,e)}}; h.oy=function(a){if(a&&a.id){var b=eD(a);if(b){var c=tA(b);if(c){var d=A(this.Wh,this,a,"click"),e=this.o.getVideoData();if("new"==AA(c,b.target)||hF(this,b,e.videoId))d(),d=null;nB(this.D,a.Pa,d)}}}}; h.Wh=function(a,b){iD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.o.getVideoData(),e;if(!(e=!hF(this,c.url,d.videoId))){e=xA(c.url);var f=wA(c.url);if(e){if(d.videoId==e)this.R("command_seek",f||0);else{var k=YE(this).A;S9(k.app,e,void 0,void 0);f&&FH(YE(this).A)&&YE(this).A.Tb(f)}e=!0}else e=!1;e=!e}e&&(d=yA(c.url,a.id,d.videoId,this.o.W()))&&(this.pauseVideo(),e=AA(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=qj(c),f=null,"ei"in e&&(f={ei:e.ei},c=Yg(c,"ei")),Hx(c,f),Ix(c, d))}},this)}; h.Ez=function(){jF(this,"playerControlShow",!1)}; h.PA=function(){jF(this,"playerControlShow",!0)}; h.aE=function(a){jF(this,"rollOver",!0,a.id)}; h.Ng=function(a){jF(this,"rollOver",!1,a.id)}; h.Ty=function(a){if(a||a.id)this.B[a.id].C=!0,gF(this,a.id),a&&(oB(this.D,a.Pa),this.Wh(a,"close")),jF(this,"closed",!0,a.id)}; h.T=function(){for(var a=this.M,b=0,c=a.length;b<c;b++)Gu(a[b]);this.M.length=0;RE.N.T.call(this)};oF.prototype.destroy=function(){null!=this.A&&(this.A.canvas.remove?this.A.canvas.remove():this.A.canvas.removeNode(!0),this.A=null)};h=tF.prototype;h.zk=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n gl_Position = vec4(aVertPos, 1.0);\n}"}; h.vk=function(){return this.o}; h.Xc=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)}; h.Qr=function(){}; h.Km=function(a){this.H&&(360>=qr[a]?this.F(!0):this.F(!1))}; h.Sc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,qF(this.D,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)}; h.iq=function(){return!0}; h.mq=function(){return!1}; h.Ve=function(){return{shader:"NoOp"}}; h.nh=function(){}; h.destroy=function(){this.D&&this.D.destroy()};B(uF,tF);uF.prototype.Xc=function(a,b,c){uF.N.Xc.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new window.Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new window.Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.C=a.getUniformLocation(b,"mode");a.uniform1i(this.C,this.A)}; uF.prototype.Sc=function(a,b,c){this.B&&(a.uniform1i(this.C,this.A),this.B=!1);uF.N.Sc.call(this,a,b,c)}; uF.prototype.Ve=function(){return{shader:"Anaglyph3D",displayMode:this.A}}; uF.prototype.nh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.A=(0,window.parseInt)(a.displayMode,10),this.B=!0),this.G())};B(wF,tF); wF.prototype.Xc=function(a,b,c){wF.N.Xc.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048, 0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);this.B=a.getUniformLocation(b,"seed");(a=this.ca.getVideoData())&&a.A&&this.Km(a.A.video.quality)}; wF.prototype.Sc=function(a,b,c){if(this.J){var d=H();1E3<d-this.C&&(this.C=d,a.uniform1f(this.B,Math.random()))}else a.uniform1f(this.B,Math.random());wF.N.Sc.call(this,a,b,c)}; wF.prototype.Ve=function(){return{shader:"WhiteNoise"}};B(xF,wF);xF.prototype.Xc=function(a,b,c){xF.N.Xc.call(this,a,b,c);this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,1)}; xF.prototype.Sc=function(a,b,c){this.G&&(a.uniform1i(this.A,1),this.G=!1);xF.N.Sc.call(this,a,b,c)}; xF.prototype.Ve=function(){return{shader:"EdgeEnhance"}};yF.prototype.identity=function(){this.o.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}; yF.prototype.get=function(){return this.o};h=AF.prototype;h.zk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n gl_Position = vec4(aVertPos.xyz, 1.0);\n pos = aVertPos;\n}"}; h.vk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() { vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1); ray = (uVMat * vec4(ray, 1.0)).xyz; ray = normalize(ray); vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5, acos(ray.y) * INV_PI); gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"}; h.Xc=function(a,b){this.Da=a.getUniformLocation(b,"uVMat");this.Y=a.getUniformLocation(b,"uFOVx");this.Z=a.getUniformLocation(b,"uFOVy");this.aa=a.getUniformLocation(b,"uSplr");a.uniform1i(this.aa,0)}; h.Qr=function(){this.F=!0}; h.Km=w; h.Sc=function(a,b){var c=this.o,d=this.A;if(this.F){a.A>a.o?(this.o=this.B,this.A=Math.atan(Math.tan(this.B)*a.o/a.A)):(this.A=this.B,this.o=Math.atan(Math.tan(this.B)*a.A/a.o));a.uniform1f(this.Y,this.o);a.uniform1f(this.Z,this.A);this.C=ke(this.C,-Math.PI/2,Math.PI/2);this.D.identity();var e=this.D,f=this.C,k=Math.sin(f),f=Math.cos(f);e.B.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);zF(e,e.B);e=this.D;f=this.H;k=Math.sin(f);f=Math.cos(f);e.B.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);zF(e,e.B);a.uniformMatrix4fv(this.Da,!1, this.D.get());this.F=!1;this.J.W().experiments.D&&(e=this.J,k=yH(e),e.app.Oa("webglsettingschanged",k))}e=H();(this.V!=this.o||this.U!=this.A)&&3E4<e-this.O&&c==this.o&&d==this.A&&(this.V=this.o,this.U=this.A,this.O=e,(c=oq(this.J.app))&&c.B&&(c=c.B.B,d=Math.round(360*this.o/Math.PI),e=Math.round(360*this.A/Math.PI),OA(c,XA(c.o),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,qF(this.K,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)}; h.iq=function(){return!1}; h.mq=function(){return!1}; h.Ve=function(){return{shader:"Spherical",yaw:this.H,pitch:this.C,fov:this.B}}; h.nh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.H=a.yaw),a.pitch&&(this.C=a.pitch),a.fov&&(this.B=ke(a.fov,.32,1.05)),this.F=!0,this.S()}; h.destroy=function(){this.K&&this.K.destroy()};B(BF,AF);h=BF.prototype;h.zk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n gl_Position = vec4(aVertPos.xyz, 1.0);\n pos = aVertPos;\n}"}; h.vk=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0, -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176, -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) { y *= 0.5; vec4 cLt = texture2D(uSplr, vec2(x, y)); vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y)); gl_FragColor = mLt * cLt + mRt * cRt;}void main() { vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1); ray = (uVMat * vec4(ray, 1.0)).xyz; ray = normalize(ray); vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5, acos(ray.y) * INV_PI); if (mode == 1) { anaglyph(texCrd.x, texCrd.y); } else { texCrd.y *= 0.5; gl_FragColor = texture2D(uSplr, texCrd); }}"}; h.Xc=function(a,b,c){BF.N.Xc.call(this,a,b,c);this.M=a.getUniformLocation(b,"mode");a.uniform1i(this.M,this.G)}; h.Sc=function(a,b,c,d){this.L&&(a.uniform1i(this.M,this.G),this.L=!1);BF.N.Sc.call(this,a,b,c,d)}; h.Ve=function(){var a=BF.N.Ve.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a}; h.nh=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),this.L=!0,this.S());BF.N.nh.call(this,a)};var rG=window,hG=window.document,JF=rG.location,HF=/\[native code\]/,oG=DF(rG,"gapi",{});var KF;KF=DF(rG,"___jsl",GF());DF(KF,"I",0);DF(KF,"hel",10);var QF=DF(KF,"perf",GF());DF(QF,"g",GF());var PF=DF(QF,"i",GF());DF(QF,"r",[]);GF();GF();var TF=GF(),lG=[];lG.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?KF[b]=DF(KF,b,[]).concat(c):DF(KF,b,c)}if(b=a.u)a=DF(KF,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var aG=/^(\/[a-zA-Z0-9_\-]+)+$/,dG=/^[a-zA-Z0-9\-_\.,!]+$/,ZF=/^gapi\.loaded_[0-9]+$/,cG=/^[a-zA-Z0-9,._-]+$/,WF=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,VF=/\/cb=/g,UF=/\/\//g;TF.m=function(a,b,c,d){(a=a[0])||RF("missing_hint");return"https://apis.google.com"+XF(a,b,c,d)};var jG=(0,window.decodeURI)("%73cript");oG.load=function(a,b){return nG(function(){return pG(a,b)})};B(sG,Rj);sG.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b}; sG.prototype.get=function(a){return this.o[a]||null}; sG.prototype.isEmpty=function(){return ac(this.o)};var GG={RED:"red",WHITE:"white",BLUE:"blue"};var KG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},LG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},AG="blogger books docs google-live play picasaweb".split(" ");B(wG,F);var MG={vG:"cbrand",wG:"cbr",xG:"cbrver",lH:"c",oH:"cver",nH:"ctheme",mH:"cplayer",AH:"cmodel",NETWORK:"cnetwork",NH:"cos",OH:"cosver",PH:"cplatform"};h=wG.prototype;h.Ba="detailpage";h.Jg=!1;h.kl=!1;h.jl=!1;h.rg=!1;h.qc=null; h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);d&&"www.youtube.com"==PG(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+PG(this)+"/watch",b.v=a,(a=u("yt.www.ads.data.encryptedBiscottiId"))&&(b.ebc=a));return Ug(c,b)}; h.T=function(){this.qc=null;wG.N.T.call(this)};UG.prototype.M=function(){this.L=!1;if(this.B&&(this.C.videoWidth||this.C.videoHeight)){if(0==this.K){var a=KE(LE(this.ca));if(!ve(this.F,a)){this.F=a;var b,c,d,a=LE(this.ca).Ma();this.o.iq()?("Anaglyph3D"!=this.U?b=!1:(b=rF(LE(this.ca)),c=this.ca.getVideoData(),b=(0,window.isNaN)(b)||c.Tc("yt:stretch")||c.Tc("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.F.width,c=this.F.height, d=this.F.top,a=this.F.left)):(b=a.width,c=a.height,a=d=0);a=new te(a|0,d|0,b|0,c|0);this.G.style.left=a.left+"px";this.G.style.top=a.top+"px";this.A.width=a.width;this.A.height=a.height;this.B.A=a.width;this.B.o=a.height;this.B.viewport(0,0,a.width,a.height);this.o.Qr()}}this.o.Sc(this.B,this.C,this.S,this.Y)}(this.D||this.o&&this.o.mq())&&this.H()}; UG.prototype.Z=function(a){this.J!=a&&this.A&&((this.J=a)?(this.G.appendChild(this.A),this.H(),pF||(this.C.style.display="none")):(qf(this.A),this.C.style.display=""))}; UG.prototype.H=function(){!this.L&&this.J&&((0,window.requestAnimationFrame)(this.M.bind(this)),this.L=!0)};B(YG,mq);YG.A=function(a){return YG.Va(a)?new YG(a):null}; YG.prototype.Va=function(){return YG.Va(this.o)}; YG.o=function(a){var b=a.W().A.c.toLowerCase(),c;c=a.getVideoData();a=a.W().experiments;if(vF(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Fl&&!CG||pF&&!tt()&&yc(11)||M6&&!CG&&yc(38)||Lf&&!CG&&yc(27))a:{if(c.o&&3!=c.da)for(var e in c.o.o)if((d=c.o.o[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}b=d?"Spherical":!CG&&(Fl&&a.aa||a.na("enable_spherical3d_firefox_opera")&&(M6&&yc(38)||Lf&&yc(27))||a.na("enable_spherical3d_ie")&&pF&&!tt()&&yc(11))&&c.o&&ix(c)?"Spherical3D":a.S&&Fl&&"web"== b&&!lt()?"NoOp":(a.ea||a.na("white_noise_with_interval"))&&Fl&&"web"==b&&!lt()?"WhiteNoise":a.G&&Fl&&"web"==b&&!lt()?"EdgeEnhance":null}return b}; YG.Va=function(a){return a.W().K?null!=YG.o(a):!1}; h=YG.prototype;h.eE=function(){if(this.B){var a=this.A;a.D||(0,window.requestAnimationFrame)(a.M.bind(a))}}; h.nA=function(a){if(this.B){var b=this.A;b.o&&b.o.Km(a)}}; h.Yc=function(a){if(this.B){var b=this.A,c=b.D;b.D=T(a.state,8);b.D&&!c&&b.H()}}; h.T=function(){YG.N.T.call(this)}; h.create=function(){var a=YG.o(this.ca);this.A=new UG(this.ca,a,this.C.element,this);a:{a=this.A;a.o=null;var b=a.Z.bind(a),c=A(a.H,a);switch(a.U){case "Anaglyph3D":a.o=new uF(a.ca,c);break;case "Spherical":a.o=new AF(a.ca,c);break;case "WhiteNoise":a.o=new wF(a.ca,b);break;case "EdgeEnhance":a.o=new xF(a.ca,b);break;case "NoOp":a.o=new tF(a.ca,!0,b);break;case "Spherical3D":a.o=new BF(a.ca,c)}if(a.o){a.K=VG(a);if(0==a.K){a.J&&!pF&&(a.C.style.display="none");a=!0;break a}a.ca.app.o.qj(new mv("html5.missingapi.webgl", !1));XG(a)}a=!1}this.B=a;YG.N.create.call(this)}; h.destroy=function(){XG(this.A);this.B=!1;YG.N.destroy.call(this);this.A=null};B($G,Gq);$G.prototype.C=function(){this.ga();this.R("close-clicked")}; $G.prototype.ga=function(){this.A.stop();I(this.element,"ytp-drawer-closed")}; $G.prototype.Eb=function(a){a?($G.N.Eb.call(this,a),Dq(this.element,"block")):Dq(this.element,"none")}; $G.prototype.show=function(){this.A.start()};B(aH,Rj);aH.prototype.T=function(){aH.N.T.call(this);this.G&&Ul(this.G);this.B||(qf(this.C),qf(this.F))}; aH.prototype.o=function(a){this.B||(this.A.o(a),this.A.Eb(this.D.element),a.appendChild(this.C))}; aH.prototype.H=function(){this.R("ypcModuleCloseClicked")}; aH.prototype.J=function(){this.R("ypcContentRequest")};B(dH,mq);h=dH.prototype;h.Va=function(){return ex(this.o.getVideoData(),"ypc_module")}; h.create=function(){dH.N.create.call(this);this.B=new ZG(this.o.getVideoData());Ai(A(this.hE,this),0);this.C=new Q(["div",["ytp-player-content","ytp-ypc-player-content"]]);Uq(this.o,this.C.element,4)}; h.destroy=function(){dH.N.destroy.call(this);this.B=null;this.C&&(Aq(this.C),this.C.dispose(),this.C=null)}; h.hE=function(){this.J&&!this.loaded&&this.load()}; h.load=function(){dH.N.load.call(this);var a=this.o.W(),b=this.o.getVideoData();if(this.B.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.B.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=zw.B,d=0;d<c.length;d++){var e=c[d];b.C.hasOwnProperty(e)&&(a[e]=b.C[e])}this.o.Dr(a)}else fH(this,a,b),!this.B.videoId&&this.A?bH(this.A):b.ypcPreview?(this.R("publish_external_event","ypcStateChanged",!0),qq(this)):this.A||qq(this)}; h.unload=function(){nq(this);(0,window.isNaN)(this.D)||Di(this.D);Mb(this.A);this.A=null;dH.N.unload.call(this);this.R("publish_external_event","ypcStateChanged",!1)}; h.Qb=function(a){dH.N.Qb.call(this,a);bH(this.A)}; h.Wb=function(a){dH.N.Wb.call(this,a);a=this.A;a.B||(Dq(a.C,"none"),a.A.Eb(a.D.element))}; h.ez=function(){if(this.B.o)"embedded"==this.o.W().Ba?Ix(this.B.o):Gx(this.B.o);else if(this.B.offerId){var a=u("yt.www.watch.player.handleEndPreview");a&&(this.o.Ja()&&Nx(this.o),a(this.B.offerId))}}; h.Xz=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};var D$={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"drm.unavailable":5};B(jH,F);h=jH.prototype;h.lD=function(){return Wb(this.B)}; h.mD=function(){return Wb(this.C)}; h.la=function(){return this.o}; h.addEventListener=function(a,b){if(z(b)){var c=function(){u(b).apply(window,arguments)}; this.F[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)}; h.Qv=function(a,b){var c=z(b)?a+b:a+ka(b);if(!this.D[c]){var d;z(b)?d=function(){u(b).apply(window,arguments)}:d=b; var e=A(function(a){d({target:this.A,data:a})},this); this.D[c]=e;this.addEventListener(a,e)}}; h.removeEventListener=function(a,b){if(z(b)){var c=this.F[b];cc(this.F,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)}; h.Rv=function(a,b){var c=z(b)?a+b:a+ka(b),d=this.D[c];d&&(this.removeEventListener(a,d),cc(this.D,c))}; h.getPlayerState=function(){return F9(this.app)}; h.Tb=function(a,b){Q9(this.app,!0,this.playerType);e$(this.app,a,b,void 0,this.playerType)}; h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)}; h.hh=function(){return C9(this.app,this.playerType)}; h.Db=function(){return this.app.U.volume}; h.setVolume=function(a){a=ke(Math.floor(a),0,100);H9(this.app,{volume:a,muted:this.sc()})}; h.sc=function(){return this.app.U.muted}; h.mute=function(){H9(this.app,{muted:!0,volume:this.Db()})}; h.unMute=function(){H9(this.app,{muted:!1,volume:Math.max(5,this.Db())})}; h.$c=function(){Q9(this.app,!0,this.playerType);d$(this.app,this.playerType)}; h.pauseVideo=function(){var a=this.app,b=this.playerType;if(HH(a.Xa)){var c=a.da.play_pause?a.sa:null;c?c.Ud("control_pause"):a.pauseVideo(b)}}; h.Ar=function(){var a=this.app,b=this.playerType;Qx(a.X)&&(vH(a,!1),a.Oa("pageTransition"));c$(a,b)}; h.iD=function(){}; h.nD=function(){return this.app.V}; h.xj=function(a){y9(this.app,a)}; h.rj=function(){return this.app.X.U?z9:[1]}; h.sj=function(){var a=oq(this.app,this.playerType);return a&&(a=a.getVideoData().A)?a.video.quality:"unknown"}; h.wj=function(a){var b=this.app,c=oq(b,this.playerType);c&&!b.X.isMobile&&(a=Vt(a,a,!0),k2(c,"p",a))}; h.sr=function(){var a=oq(this.app,this.playerType);return a?(a=O(h2(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]}; h.qD=function(){return this.Em()}; h.rD=function(){return 1}; h.Em=function(){return ny(this.app.ka)}; h.sD=function(){return 0}; h.setSize=function(){this.app.F.af()}; h.xr=function(a){var b=this.app;a=a?2:1;k5(b).Gd=a;b.Oa("autonavchange",a)}; h.yr=function(a){var b=this.app;k5(b).Gd=a;b.Oa("autonavchange",a)}; h.yD=function(a){var b=this.app;b.X.kl=a;b.Oa("minimized")}; h.tj=function(a){var b=this.app.C;b.isAvailable(a)&&(a=qH(b,a))&&!a.loaded&&a.load()}; h.Br=function(a){var b=this.app.C;b.isAvailable(a)&&(a=qH(b,a))&&a.loaded&&a.unload()}; h.Fm=function(a,b,c){a=M9(this.app,hH(a,b,c),this.playerType);Q9(this.app,a,this.playerType)}; h.Cm=function(a,b,c){var d=this.playerType;R9(this.app,new zw(hH(a,b,c)),d)}; h.vD=function(a,b,c){a=gH(a,b,c);b=M9(this.app,a,this.playerType);Q9(this.app,b,this.playerType);b=this.app;(a=lh(new N(a.mediaContentUrl)))&&JG(b.X,a)}; h.kD=function(a,b,c){a=gH(a,b,c);b=this.playerType;R9(this.app,new zw(a),b);b=this.app;(a=lh(new N(a.mediaContentUrl)))&&JG(b.X,a)}; h.getVideoUrl=function(){var a=this.app.W();if(a.C)return"";var b=k5(this.app),c=void 0;b.Fa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.ce()||void 0,c)}; h.Dm=function(){return D9(this.app)}; h.ur=function(){var a=this.app,b=k5(a),c=a.F.Ma(),a="https://"+PG(a.X)+"/embed/"+b.videoId;b.playlistId&&(a=Ug(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+xa(a)+'" frameborder="0" allowfullscreen></iframe>'}; h.rr=function(a,b,c){return Y9(this.app,a,b,c)}; h.wr=function(a){a:{for(var b=this.app,c=b.o.F.o.o||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.F.fh(e);pq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a}; h.vr=function(a,b,c,d){var e=this.app;e.Z=!1;T9(e,a,b,c,d);Q9(this.app,!0,this.playerType)}; h.jD=function(a,b,c,d){var e=this.app;e.Z=!0;T9(e,a,b,c,d)}; h.uj=function(){V9(this.app);Q9(this.app,!0,this.playerType)}; h.vj=function(){W9(this.app);Q9(this.app,!0,this.playerType)}; h.Gm=function(a){X9(this.app,a);Q9(this.app,!0,this.playerType)}; h.setShuffle=function(a){var b=this.app.A;b&&b.setShuffle(a)}; h.xD=function(a){var b=this.app.A;b&&(b.H=a)}; h.ac=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.qb(c);d&&b.push(d.videoId)}return b}; h.oD=function(){var a=this.app.A;return a?a.o:-1}; h.ce=function(){var a=this.app.A;return a&&a.D?a.D.toString():null}; h.de=function(a,b,c){return uH(this.app,a,b,c)}; h.wb=function(a,b,c){return uH(this.app,a,b,c)}; h.ih=function(a){return g$(this.app,a)}; h.getVideoData=function(){var a=oq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.ce();b&&(a.list=b);return a}; h.zr=function(){var a=this.app.F;a.D||(a.D=new N5(a.app),G(a,a.D),a.D.o(a.element));a.D.show()}; h.tD=function(){var a=this.app.F;a.D&&a.D.ga()}; h.getAdState=function(){return this.app.getAdState()}; h.uD=function(a){if(a!=this.app.Y.args.video_id)return!1;a=(a=oq(this.app,1))?a.getPlayerState():null;return!(!a||!T(a,128)||5!=D$[a.o.errorCode])}; h.pD=function(){var a=this.app.Y.clone(),b=a.args,c=k5(this.app),d=ec(c.C);!c.Fa&&0<c.startSeconds&&(d.start=c.startSeconds);qa(b,d);return a}; h.zD=function(a,b){var c=this.app;c.H&&J5(c.H,a,b);TG(c.X)&&6!=c.K&&(c.X.rg=!kb(a),c.X.rg?(1!=c.K&&3!=c.K||!b||u9(c,c.G),a.length&&1!=c.K&&s9(c)):u9(c,c.H))}; h.destroy=function(){this.app.dispose()}; h.wD=function(){var a=oq(this.app);a&&!T(a.getPlayerState(),128)&&(a.R("internalAbandon"),O1(a),N1(a))}; h.T=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;jH.N.T.call(this)};B(lH,jH);h=lH.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()}; h.rr=function(a,b,c,d,e){return Y9(this.app,a,b,c,d,e)}; h.AD=function(a,b,c,d){tG(this.app.W().J,a,{ue:b,Qf:c,Vh:d})}; h.BD=function(a){var b=this.playerType;R9(this.app,new zw(a),b)}; h.getPlayerState=function(a){return F9(this.app,a)}; h.Dr=function(a){M9(this.app,a,this.playerType)}; h.MD=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.L&&b.L.getVideoData().videoId==a.videoId||(a=new zw(a),O9(b,a))}; h.$c=function(){d$(this.app,this.playerType)}; h.Tb=function(a,b){e$(this.app,a,b,void 0,this.playerType)}; h.vr=function(a,b,c,d){var e=this.app;e.Z=!1;T9(e,a,b,c,d)}; h.uj=function(a){V9(this.app,a)}; h.vj=function(a){W9(this.app,a)}; h.Gm=function(a){X9(this.app,a)}; h.ad=function(a,b,c){var d=this.app,e=this.playerType;e$(d,d.getCurrentTime()+a,b,c,e)}; h.UD=function(a){if(a){var b=this.ce();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.Xa.Ja()&&((c=c[b.o])&&c.encrypted_id!=b.qb().videoId||(a.index=b.o)):i9(this.app,{list:a.list,index:a.index,playlist_length:c.length});vx(this.app.A,a)}}else a=this.app,j9(a),a.Oa("onPlaylistUpdate")}; h.TD=function(){vG()}; h.VD=function(a){var b=oq(this.app,this.playerType||1);b&&(b=b.getVideoData(),Bw(b,a),b.R("dataupdated"))}; h.GD=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec}; h.ED=function(){var a=this.app.W();return{Ab:a.Ab,gb:a.gb}}; h.getVideoData=function(){var a=lH.N.getVideoData.call(this),b=oq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Fa;a.backgroundable=b.backgroundable;return a}; h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):lH.N.getCurrentTime.call(this)}; h.hh=function(a){return a?C9(this.app,a):lH.N.hh.call(this)}; h.Te=function(){var a=this.app.getVideoData(),b=oq(this.app),c=FH(this.app.Xa),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.hh(),k=oq(this.app,void 0);if(k)var l=H1(k.A),k=(0,window.isNaN)(l)?k.getCurrentTime():l;else k=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,loaded:k,seekableEnd:m2(b,!0),seekableStart:ax(b.o)}}; h.Em=function(a){var b=this.app;return(b.D&&2==b.D.O)==(2==a)?ny(b.ka):0}; h.canPlayType=function(a){return this.app.canPlayType(a)}; h.ND=function(a,b){B9(this.app,a,this.playerType,b)}; h.DD=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.o&&b.Fa){var c=b.o.o[b.A.id];c&&c.index?(b=c.index.gf(a),c=c.index.ee(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a}; h.ag=function(a){var b=this.app,c=oq(b,this.playerType);c&&b.X.sa.contains(a.toString())&&c.B&&(b=YA(c.B,"engage"),b.F=a,b.send(void 0))}; h.jh=function(a){this.app.Wf("cards_drawer_set_visible",a)}; h.JD=function(a,b){var c=this.app;c.ea&&(c=c.ea,c.V&&T6(c.V,a,b))}; h.$f=function(){return A9(this.app,this.playerType)}; h.Im=function(a){var b=this.app,c=this.playerType,d=b.da.set_audio_track?b.sa:null;if(d)d.Ud("control_set_audio_track",a);else{if(c=b=oq(b,c))if(c=!b.isDisposed()&&!T(b.C,128)&&b.o.B.o)c=b.D,c.isDisposed()?a=!0:(d=c.F,a=a.id,d.D="m",d.C=d.F.o[a],d.L=Q_(d),c.R("audioformatchange",new M_(d.L,d.B,d.D)),c.o&&!c.o.o.remove?a=!1:(S0(c,c.A,Q_(c.F)),p0(c.A),U0(c),a=!0)),c=!a;c&&(oH(b),e2(b))}}; h.Cr=function(){var a=oq(this.app,this.playerType);return a.o.B?a.o.B.audioTracks:[]}; h.FD=function(){var a=oq(this.app,this.playerType);return a&&a.getVideoData().A?Zt(w1(a.ha,a.o)):"unknown"}; h.PD=function(a,b){f$(this.app,a,b)}; h.CD=function(){var a=qH(this.app.C,"fresca");a&&a.C.C()}; h.RD=function(){var a=this.app.ea;a.Ea=!1;a.Rf()}; h.KD=function(){var a=this.app.ea;a.Ea=!0;a.Rf()}; h.ID=function(){return iH(this.app.W())}; h.QD=function(){return this.app.W().experiments.na("send_presence_signal_vis_desktop")}; h.Hm=function(a){return KE(this.app.F,a)}; h.OD=function(a){this.app.W().enableSafetyMode=a};B(mH,lH);h=mH.prototype;h.Fm=function(a,b,c){M9(this.app,hH(a,b,c),this.playerType)}; h.Aa=function(){return LE(this).element}; h.W=function(){return this.app.W()}; h.ac=function(){return this.app.A}; h.getVideoData=function(a){return(a=oq(this.app,a||this.playerType))&&a.getVideoData()}; h.Ja=function(){return this.app.W().Jg}; h.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)}; h.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)}; h.wj=function(a){B9(this.app,a,this.playerType)}; h.Dm=function(a){return D9(this.app,a)}; h.getVideoUrl=function(a,b,c){var d=this.getVideoData(),e=void 0;a||d.Fa||(e=Math.floor(this.getCurrentTime()));return this.app.W().getVideoUrl(d.videoId,2==this.getPresentingPlayerType()?void 0:this.ce()||void 0,e,b,c)}; h.jh=function(a){var b=qH(this.app.C,"iv-module");b&&mF(b,a)}; h.ag=function(a,b){var c=this.app,d=oq(c,this.playerType);d&&c.X.sa.contains(a.toString())&&d.B&&(c=YA(d.B,"engage"),c.F=a,c.send(b))}; h.fb=function(a,b){Z9(this.app,a,b||this.playerType)}; h.Wi=function(a){var b=oq(this.app,this.playerType);b&&b.Wi(a)}; h.wb=function(a,b,c){return uH(this.app,a,b,c,!0)}; h.ih=function(a){return g$(this.app,a,!0)}; h.de=function(a,b,c){return uH(this.app,a,b,c,!0)}; h.setVolume=function(a){a=ke(Math.floor(a),0,100);H9(this.app,{volume:a,muted:this.sc()},!0)}; h.mute=function(){H9(this.app,{muted:!0,volume:this.Db()},!0)}; h.unMute=function(){H9(this.app,{muted:!1,volume:Math.max(5,this.Db())},!0)};B(QH,mq);h=QH.prototype;h.Va=function(){return!!this.o.getVideoData().spacecastModule}; h.create=function(){QH.N.create.call(this);var a;a:{var b=ij("yt-accelerator-discover"),b=b&&b.addrmap||{};for(a in b){var c=b[a];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){a="//"+a;break a}}a=null}this.A=a;this.load()}; h.destroy=function(){QH.N.destroy.call(this);this.A=null}; h.load=function(){QH.N.load.call(this);if(this.A){var a=this.o.getVideoData().videoId,b=H();NH(this.A,a,A(this.Iw,this,a,b))}else qq(this)}; h.xd=function(a){switch(a){case "getVideo":a=this.o.getVideoData();var b=Boolean(a&&bx(a)&&a.A&&a.A.video.o);return{docid:a.videoId,isFastLoad:b}}}; h.Iw=function(a,b,c){if(this.A){b=H()-b;var d=!1,e=this.o.getVideoData(),f="unknown",k=KH(c);e.Pj=Wb(k);if(c){c.status&&(f=c.status);if(k=LH(this.A,c,e.adaptiveFormats))e.spacecastAdaptiveFormats=k;if(c=LH(this.A,c,e.Tf))e.spacecastFormatMap=c;if(k||c)Vw(e,this.o.W()),e.O||nH(this.o),d=Zt(e.Ug),this.o.wj(d),d=!0}(c=2==this.o.getPresentingPlayerType())&&!d?od(function(){var a=this.o.app;a.G&&a.G.J&&(a=a.G,a.F&&(a=a.B.A.o,null!=a&&a.Aj()))},this):qq(this); Pi("yt-spacecast-cache-watch-video-cached",a,d);PH(Sg({a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}))}};var tI=/^#(?:[0-9a-f]{3}){1,2}$/i,r8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),s8=["none","raised","depressed","uniform","dropShadow"],fga=["sub","inherit","super"],tJ={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},gga=["left","right","center"],UH={anchorPoint:7,bold:!1,colCount:32,color:"#fff",heightPercentage:100,isVisible:!0,italic:!1,leftPercentage:50, offset:1,rowCount:15,textAlign:2,textPrintDirection:0,topPercentage:100,underline:!1,widthPercentage:80},VH={id:0,priority:0,colCount:100},rJ={id:98},bJ={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},B8=["en_CA","en_US","es_MX","fr_CA"];var E$=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],F$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],V6=[{option:"fontFamily",message:"YTP_FONT_FAMILY", options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:E$},{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0, text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:E$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:F$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:E$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:F$},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"}, {option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];h=TH.prototype;h.getType=function(){return this.type}; h.wd=function(a,b){a&&qa(this.Ha,a);var c=this.Ha.charEdgeStyle,d=this.Ha.textOpacity,e="";if(0!=c){var f="rgba(34, 34, 34, "+d+")",k="rgba(204, 204, 204, "+d+")";this.Ha.charEdgeColor&&(k=f=this.Ha.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+f+", 2px 2px 4px "+f+", 2px 2px 5px "+f;break;case 1:e="1px 1px "+f+", 2px 2px "+f+", 3px 3px "+f;break;case 2:e="1px 1px "+k+", 0 1px "+k+", -1px -1px "+f+", 0 -1px "+f;break;case 3:e="0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f+", 0 0 4px "+f}}c=this.Ha.fontFamily; f="";switch(c){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif'; break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var l=oC(this.Ha.color),k=oC(this.Ha.background),l="rgba("+l[0]+","+l[1]+","+l[2]+","+d+")",d=this.Ha.offset||1;Mf(this.A,{color:l,fill:l,"background-color":"rgba("+k[0]+","+k[1]+","+k[2]+","+this.Ha.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":f,"font-weight":this.Ha.bold?"bold":"","font-style":this.Ha.italic?"italic":"","text-decoration":this.Ha.underline? "underline":"","vertical-align":fga[d]});b&&(this.M=b.height/360);e=oC(this.Ha.windowColor);c=this.Ha.windowOpacity;f=this.Ha.fontSizeIncrement||0;1!=d&&(f*=.8);Mf(this.J,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*f)*this.M)+"px"})}; h.bi=function(){var a;this.C.style.fontFamily=this.A.style.fontFamily;this.o.appendChild(this.C);a=this.C.offsetHeight;this.o.removeChild(this.C);return a}; h.Xd=function(){if(this.A){if(0!=this.id&&98!=this.id)if(fg(this.o,"100%"),mt("cobalt")){var a=this.o,b=this.A.innerHTML.split("</br>"),c=0,d;for(d in b){var e=b[d].replace(/<p>|<\/p>/g,"").trim();e.length>c&&(c=e.length)}fg(a,c+"em")}else fg(this.o,this.A.offsetWidth+1);WH(this);Lq(this.o,this.Ha.isVisible)}}; h.Iq=function(a){if(a.length){var b=a[a.length-1].H;b&&this.wd(eI(b))}for(var b="",c=0;c<a.length;){0<c&&(b+="<br>");var d=a[c].A;for(c++;c<a.length;c++){var e=a[c];if(e.G)d+=e.A;else break}b+=XH(d)}this.$d(b);this.F=a}; h.$d=function(a){this.L=a;this.A.innerHTML=a;this.o.style.textAlign=gga[this.Ha.textAlign];1==this.Ha.textPrintDirection?this.A.setAttribute("dir","rtl"):this.A.removeAttribute("dir");this.Xd()}; h.toString=function(){var a="Caption window ("+this.id+"): "+this.L,b;for(b in this.Ha)a+=b+" "+this.Ha[b]+" | ";return a}; h.Sh=function(){this.F=[];this.$d("")};B(ZH,iq);ZH.prototype.toString=function(){return ZH.N.toString.call(this)}; B(aI,iq);B(fI,YH);B(gI,YH);B(lI,YH);B(uI,YH);var wI=/NOTE/,vI=/(?:\r\n|\r|\n){2,}/,xI=/\r\n|\r|\n/,yI=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(FI,F);h=FI.prototype;h.tk=function(a){var b=this.o.A,c=CI(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]}; h.Ld=function(){return null}; h.seek=function(){}; h.$l=function(){}; h.T=function(){FI.N.T.call(this);this.$l()};B(HI,FI);h=HI.prototype;h.Kn=function(){for(var a=[],b=CI(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:Rt(d),srclang:d.o,src:II(this,d)};d==this.tk()&&(e["default"]=1);a.push(M("track",e))}return a}; h.ql=function(a,b){bb(!this.isDisposed());var c=II(this,a),d=A(function(c){this.B=null;c=new AI(c.responseText);b(c,a)},this); this.B&&this.B.abort();this.B=Bj(c,{format:"RAW",kb:d,withCredentials:!0});this.A&&this.A.wg!=a&&(this.A.lk=a)}; h.rl=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)DI(this.o,this.A.captionTracks[b]);a()}; h.Ld=function(){return this.A?this.A.wg:null}; h.tk=function(){return this.A?this.A.lk:null}; h.T=function(){this.B&&this.B.abort();HI.N.T.call(this)};LI.prototype.contains=function(a){a=xb(this.ua,a);return 0<=a||0>a&&1==(-a-1)%2}; LI.prototype.length=function(){return this.ua.length/2};B(MI,F);MI.prototype.T=function(){Ei(this.B);this.B=0;this.C=!0;this.D&&this.D.abort()}; MI.prototype.resume=function(){this.C=!1;Ei(this.B);this.seek(this.A.getCurrentTime());QI(this)}; MI.prototype.seek=function(a){this.o=cb(this.J.fi(a).o)}; MI.prototype.K=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.C||null===this.G||(a=new AI(a.responseText,1E3*this.F.o[0].startTime),this.G(a));this.D=this.F=null};B(RI,FI);h=RI.prototype;h.ql=function(a,b){NI(this.A,function(c){b(c,a)}); this.A.J=this.B.o[a.o];this.A.resume()}; h.rl=function(a){DI(this.o,new Pt({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()}; h.seek=function(a){this.A.seek(a)}; h.$l=function(){var a=this.A;Ei(a.B);a.B=0;a.C=!0}; h.T=function(){this.A.dispose();RI.N.T.call(this)};B(SI,TH);h=SI.prototype;h.bi=function(){return this.D[0]?this.D[0].offsetHeight:0}; h.Xd=function(){0!=this.id&&(fg(this.o,"100%"),fg(this.o,this.G?TI(this):this.B.width));var a=Math.round(this.Ha.rowCount*this.bi());this.o.style.maxHeight=a+"px";WH(this);Lq(this.o,this.Ha.isVisible)}; h.$d=function(a){this.Sh();a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=M("div",{"class":"caption-row-holder"}),e=M("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.H;d.appendChild(e);e.innerHTML=a[b];this.G||(this.A.style.height=this.B.height+"px",this.A.style.width=this.B.width+"px",d.style.position="absolute",d.style.top=this.B.tq[b]+"px",d.style.left=this.B.sq[b]+"px");this.A.appendChild(d);this.D.push(e)}this.Xd()}; h.Sh=function(){for(var a=0,b=this.D.length;a<b;a++){var c=Hf(this.D[a],"caption-row-holder");qf(c)}this.D=[]}; h.wd=function(a,b){SI.N.wd.call(this,a,b);this.H=this.A.style.backgroundColor;this.A.style.backgroundColor="";for(var c=0,d=this.D.length;c<d;c++)this.D[c].style.backgroundColor=this.H};B(UI,TH);UI.prototype.Xd=function(){fg(this.o,"100%");var a=this.o.offsetWidth,a=Math.min(YI(this),a);fg(this.o,a+"px");fg(this.J,"100%");this.A.style.whiteSpace="nowrap";WH(this);Lq(this.o,this.Ha.isVisible)}; UI.prototype.Iq=function(a){var b=a.length;if(0>=b)this.Sh();else{for(var c=0;c<b&&0<=this.F.indexOf(a[c]);)c++;this.F=this.F.concat(a.slice(c));VI(this)}}; UI.prototype.Sh=function(){this.F=[];this.B=[];this.D=0;this.B=[];this.G=[];XI(this)}; UI.prototype.K=function(){this.o.style.overflow="visible";this.A.style.top=0;this.H.stop();Zd(this.A,"caption-rollup");this.B.push("");this.G.push(0);VI(this)};B(ZI,FI);ZI.prototype.Kn=function(){for(var a=[],b=CI(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e=$I(this,d),e={kind:"subtitles",label:d.C,srclang:d.o,src:e};d.isDefault&&(e["default"]=1);a.push(M("track",e))}return a}; ZI.prototype.ql=function(a,b){bb(!this.isDisposed());var c=$I(this,a),d=A(function(c){this.A=null;c=new AI(c.responseText);b(c,a)},this); this.A&&this.A.abort();this.A=Bj(c,{format:"RAW",kb:d,withCredentials:!0});EI(this.o,a)}; ZI.prototype.rl=function(a,b,c){var d=this.B;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Lo&&(b.asrs=1);d=rj(d,b);b=A(function(b){this.A=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var p=k[m].getAttribute("formats"),v=c,t=k[m].getAttribute("lang_code"),y=k[m].getAttribute("lang_translated"),x=k[m].getAttribute("name"),L=k[m].getAttribute("kind"),ha=k[m].getAttribute("id"),K="true"==k[m].getAttribute("lang_default"), Y="true"==k[m].getAttribute("cantran"),Nb=k[m].getAttribute("vss_id");DI(d,new Pt({formats:p,format:v,languageCode:t,languageName:y,name:x,kind:L,id:ha,is_servable:!0,is_default:K,is_translateable:Y,vss_id:Nb}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)l=b[k].getAttribute("lang_code"),m=b[k].getAttribute("lang_translated"),p=b[k].getAttribute("lang_original"),v=b[k].getAttribute("id"),t="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:p, id:v,is_default:t},this.F[l.languageCode]=l.languageName,this.D.push(new Ot(l))}a()},this); this.A&&this.A.abort();this.A=Bj(d,{format:"RAW",kb:b,withCredentials:!0})}; ZI.prototype.T=function(){this.A&&this.A.abort();ZI.N.T.call(this)};B(aJ,mq);h=aJ.prototype;h.create=function(){aJ.N.create.call(this);this.D=this.o.getVideoData();-1==B8.indexOf(this.X.Y)&&I(this.o.Aa(),"cc-international");this.C=ec(tJ);qa(this.C,sq(this,"display-settings"));dJ(this,"fontFamilyOption","fontFamily",r8,4);dJ(this,"charEdgeStyle","charEdgeStyle",s8,3);this.U=new Q(["div",["ytp-player-content","ytp-subtitles-player-content"]]);Uq(this.o,this.U.element,4);(this.D.Fa&&cJ(this)?0:this.D.captionTracks.length&&this.o.$f().wg||eJ(this,!0))&&this.load()}; h.destroy=function(){Aq(this.U);this.U.dispose();aJ.N.destroy.call(this)}; h.load=function(){this.ma="1"==this.D.C.cc_auto_caps||"1"==this.X.M.cc_auto_caps;aJ.N.load.call(this);this.fa=!0;if(this.D.Fa)this.B=new RI(this.D.o,this.o),this.subscribe("seekto",this.Kr,this);else{var a=this.D.ne||this.X.Qa||this.D.Tc("yt:cc_default_lang")||this.X.Y,a=a&&a.split("_").join("-");this.D.captionTracks.length?this.B=new HI(this.D):this.B=new ZI(this.D.Oh,this.D.videoId,a,this.D.Nh)}fJ(this)}; h.unload=function(){this.G&&(nJ(this),this.Hl("control_subtitles_set_track"));if(cJ(this)){var a;a=Ze("track",void 0,void 0);for(var b=0;b<a.length;b++)qf(a[b])}else qJ(this,!1),gJ(this),this.unsubscribe("seekto",this.Kr,this),this.B.dispose(),this.B=null;this.K=this.da=this.O=this.fa=!1;aJ.N.unload.call(this)}; h.Zp=function(){this.fa=!1;if(cJ(this))for(var a=this.M.A,b=this.B.Kn(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(c=this.K||eJ(this,!this.da),b=CI(this.B.o,!0),0<b.length){this.da=!0;a=this.A&&-1!=b.indexOf(this.A);if(c&&!a)if(c=this.B.tk(),!c&&this.K&&(c=b[0]),c)this.ha=!0,kJ(this,c),a=!0;else if(this.O||hJ(this),b=this.B.o.B,b.length&&(b=b[0].toString(),this.K||this.ma))a=GI(this.B,b),kJ(this,a,void 0),a=!0;this.R("publish_external_event","onCaptionsTrackListChanged");a||jJ(this)}else if(this.B.Ld())jJ(this); else if(a=this.o.app.C,b=qH(a,this.qa))ob(a.o,b),b.destroy()}; h.$p=function(a,b){this.ha&&(this.ha=!1,this.R("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){gJ(this);this.A=b;this.sa=Kfa.test(b.o);var c={trackName:b.C,trackKind:b.B};b.A?(c.trackLangCode=b.A.languageCode,c.fromLangCode=b.o):c.trackLangCode=b.o;this.log(c);b!=this.B.Ld()&&(this.K&&(c=Rt(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=P("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 15 15"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25,5.7C8.783,5.233,8.2,5,7.5,5S6.2,5.233,5.7,5.7C5.233,6.2,5,6.8,5,7.5s0.233,1.283,0.7,1.75C6.2,9.75,6.8,10,7.5,10s1.283-0.25,1.75-0.75C9.75,8.783,10,8.2,10,7.5S9.75,6.2,9.25,5.7z M8.75,2.15c0.6,0.1,1.15,0.317,1.65,0.65l1.5-1.5l1.75,1.75l-1.5,1.5c0.333,0.534,0.583,1.1,0.75,1.7H15v2.5h-2.1c-0.133,0.6-0.367,1.15-0.7,1.65l1.5,1.5l-1.75,1.75l-1.5-1.5c-0.534,0.333-1.1,0.583-1.7,0.75V15h-2.5v-2.1c-0.6-0.167-1.167-0.417-1.7-0.75l-1.5,1.5L1.3,11.9l1.5-1.5C2.467,9.9,2.25,9.35,2.15,8.75H0v-2.5h2.15c0.133-0.6,0.367-1.167,0.7-1.7l-1.5-1.5L3.1,1.3l1.5,1.5c0.5-0.333,1.05-0.55,1.65-0.65V0h2.5V2.15z"/></svg>'}), this.U.element.appendChild(this.Y.o),this.Y.$d(c),this.Y.wd(this.C,this.M.Ma()),this.Y.Xd(),this.ia.Nf()),this.R("publish_external_event","captionschanged",Qt(b)),(this.X.experiments.na("cc_sticky_behavior")||this.K||DG(this.X))&&tq(this,"module-enabled",!0),(c=oq(this.o.app))&&c.B&&DA(c.B.A))}this.O||hJ(this);this.fb(a.A.concat(a.o))}; h.Qb=function(a){this.aa.push(a);this.ka.Nf()}; h.Wb=function(a){ob(this.aa,a);this.ka.Nf()}; h.NB=function(a){if(this.A)if(a instanceof aI){var b=this.L[a.id];qa(a.params,this.C);bI(a);b&&b.getType()!=cI(a)&&(qf(b.o),delete this.L[a.id],b=null);if(!b){var b=this.L,c=a.id,d;a:{d=a.id;var e=a.params;switch(cI(a)){case 1:d=new SI(d,e);break a;case 2:d=new UI(d,e);break a;default:d=new TH(d,e)}}b=b[c]=d;c=b.o;J(c,"captions-asr","asr"==this.A.B);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.sa?1:0);this.U.element.appendChild(c)}b.wd(a.params,this.M.Ma());if(1==cI(a)){b.K= XH(a.A);b.B={};b.G=!0;b.$d(b.K);b.B.rq=b.D.length;b.B.width=b.o.offsetWidth;b.B.height=b.o.offsetHeight;b.B.sq=[];b.B.tq=[];for(a=0;a<b.B.rq;a++)b.B.tq.push(b.D[a].offsetTop),b.B.sq.push(b.D[a].offsetLeft);b.G=!1;b.$d(b.K)}}else b=a.D,this.Z[b]||(this.Z[b]=[]),this.Z[b].push(a)}; h.vp=function(){this.O&&(iJ(this),Ob(this.L,function(a){a.Xd()},this))}; h.WB=function(){qf(this.Y.o)}; h.am=function(){this.ka.stop();this.O&&(bc(this.Z),this.aa.sort(lq),E(this.aa,this.NB,this),Ob(this.L,function(a,b){this.Z[b]?a.Iq(this.Z[b]):(qf(a.o),delete this.L[b])},this),lJ(this),this.F&&this.F.Xd())}; h.Ll=function(){tq(this,"display-settings",this.C)}; h.xd=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.C.fontSizeIncrement=Math.max(-2,Math.min(4,b)),iJ(this)),this.C.fontSizeIncrement;case "reload":b&&fJ(this);break;case "stickyLoading":void 0!=b&&this.X.gb&&tq(this,"module-enabled",!!b);break;case "track":if(b){if(!ia(b))break;if(ac(b)){oJ(this);break}for(var c,d=CI(this.B.o,!0),e=0;e<d.length;e++){var f=d[e];f.o!=b.languageCode||c&&f.F!=b.languageName||(c=b.translationLanguage?St(f,b.translationLanguage):f)}c&&kJ(this, c,!0)}else return this.A&&this.A!=this.B.Ld()?Qt(this.A):{};return"";case "tracklist":return this.da?O(CI(this.B.o,b&&b.includeAsr),function(a){return Qt(a)}):[]; case "translationLanguages":return this.da?this.B.D:[];case "displaySettings":return b&&ia(b)&&sJ(this,b),c=ec(this.C),c.fontFamilyOption=r8[c.fontFamily],c.charEdgeStyle=s8[c.charEdgeStyle],c;case "sampleSubtitles":void 0!=b&&qJ(this,!!b);break;case "xmlTrack":b&&this.X.gb&&(gJ(this),c=new AI(b.xml),this.A=new Pt({languageName:b.name}),this.$p(c,this.A))}}; h.Ue=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.X.gb&&a.push("stickyLoading","xmlTrack");return a}; h.ek=function(a,b){return a&&z(a)&&tI.test(a)?a:b}; h.vl=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b}; h.ov=function(a,b){if(a&&z(a)){var c=s8.indexOf(a);return-1!=c?c:b}return b}; h.Wv=function(a,b){if(a&&z(a)){var c=r8.indexOf(a);return-1!=c?c:b}return b}; h.Xv=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b}; var uJ=null;h=aJ.prototype;h.Va=function(a){if("lb3"==a.W().o)return!1;a=a.getVideoData();var b;if(b=a.Fa)b=a.o,b=!(!b||null==b.o.en);return!!(a.Oh||a.captionTracks.length||b)}; h.Ii=function(a){a?gJ(this):this.loaded&&(this.unload(),this.load())}; h.Kr=function(){this.B.seek(this.o.getCurrentTime())}; h.mh=function(){var a=this.A;return a?{cc:a.G}:null}; h.$A=function(){this.K=!0;this.loaded?this.A&&this.A!=this.B.Ld()?oJ(this):this.Zp():this.load()}; h.Ay=function(){this.D.captionTracks.length&&(this.loaded?fJ(this):(this.o.$f().wg||eJ(this,!0))&&this.load())};B(vJ,mq);h=vJ.prototype;h.Va=function(){return wJ(this.o)}; h.create=function(){vJ.N.create.call(this);var a=new iq(1E3,0x7ffffffffffff,{priority:0});this.fb([a]);this.subscribe("heartbeatparams",this.fE,this);this.subscribe("onStateChange",this.gE,this)}; h.destroy=function(){DJ(this);vJ.N.destroy.call(this)}; h.Qb=function(){this.F=!0;zJ(this,2E3)}; h.fE=function(a){this.B=a;zJ(this,2E3)}; h.gE=function(a){T(a.state,2)||T(a.state,64)?DJ(this):(T(a.state,1)||T(a.state,8))&&zJ(this,2E3)}; h.aC=function(){var a,b,c=this.o.W(),d=this.o.getVideoData();b=c.baseYtUrl;T(pz(this.o),4)?this.A=window.NaN:yJ(this)?(Yw(d)?(a="GET",b=Ug(this.B.url,{request_id:vu()}),d.M&&(b=Ug(b,{vvt:d.M})),d.oauthToken&&(b=Ug(b,{access_token:d.oauthToken}))):(a="GET",c=c.A,b=Ug(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.M,access_token:d.oauthToken})),b=Ug(b,{cpn:d.clientPlaybackNonce}),Bj(b,{format:"RAW",method:a,timeout:3E4,kb:A(this.Jx,this), onError:A(this.Ix,this),Vd:A(this.Kx,this),withCredentials:!0})):DJ(this)}; h.Jx=function(a){if(this.A){a=a.responseText;var b;b=(b=CJ(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(G$))?"0"==b[1]?0:1:-1;if(-1==b)AJ(this,"decode");else if(this.C=0,this.A=window.NaN,1==b){this.D=!1;b="YTP_ERROR_LICENSE";var c=CJ(a);c?a=c.reason||P(b):((a=a.match(G$))&&(a=(0,window.parseInt)(a[1],10))&&(b=ey(a)),a=P(b));BJ(this.o.app.o,"heartbeat",a,void 0)}else this.D=!0,zJ(this)}}; h.Ix=function(a){AJ(this,"net-"+a.status)}; h.Kx=function(){AJ(this,"timeout")}; var G$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(EJ,mq);h=EJ.prototype;h.Va=function(){return GJ(this.o)}; h.create=function(){EJ.N.create.call(this);var a=this.A.element;I(a,this.qa);LE(this.o).M.appendChild(a)}; h.xd=function(a,b){if(!HJ(this.o.W().o))return null;switch(a){case "loadCustomEndscreenJson":return b&&IJ(this,b),!0;case "unloadCustomEndscreenJson":return IJ(this,null),!0}return null}; h.destroy=function(){IJ(this,null);Aq(this.A);this.A.dispose();Aq(this.B);this.B.dispose();EJ.N.destroy.call(this)}; h.load=function(){EJ.N.load.call(this);IJ(this,null);var a=this.o.getVideoData().videoId;this.K++;this.F&&this.F.abort();var a={Rb:A(this.rz,this,a,this.K),Zc:{v:a}},b=this.o.getVideoData().C.iv_endscreen_url;this.F=Bj(b,a)}; h.unload=function(){IJ(this,null);EJ.N.unload.call(this)}; h.dE=function(a){a.state.Wa()&&(this.loaded||this.load())}; h.rz=function(a,b,c){this.F=null;var d=this.o.getVideoData().videoId;b==this.K&&a==d&&(a=null,200==c.status&&(c=c.responseText,")]}"==c.substring(0,3)&&(c=c.substring(3),a=JSON.parse(c))),IJ(this,a))}; h.wC=function(){var a=this.o.Hm().width,a=640>a?"creatorendscreen-size-640":853>a?"creatorendscreen-size-853":1280>a?"creatorendscreen-size-1280":"creatorendscreen-size-INF";this.C!=a&&(this.C&&Zd(this.A.element,this.C),I(this.A.element,a),this.C=a)}; h.bE=function(){I(this.B.element,"creatorendscreen-darken-overlay-show")}; h.cE=function(){Zd(this.B.element,"creatorendscreen-darken-overlay-show")}; h.Qb=function(a){EJ.N.Qb.call(this,a);(a=this.D[a.getId()])&&I(a.element,"creatorendscreen-element-show")}; h.Wb=function(a){var b=this.D[a.getId()];b&&Zd(b.element,"creatorendscreen-element-show");EJ.N.Wb.call(this,a)};B(OJ,mq);h=OJ.prototype;h.Va=function(){return ex(this.o.getVideoData(),"ypc_clickwrap_module")}; h.create=function(){OJ.N.create.call(this);this.load()}; h.load=function(){OJ.N.load.call(this);this.A=new wq(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",P("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.o.getVideoData().C.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],P("YTP_YPC_START_RENTAL_BUTTON")]]);Uq(this.o,this.A.element,4);G(this,this.A);this.B=this.A.ra["ytp-ypc-clickwrap-confirm"];Nl(this.B,"click",A(this.az,this))}; h.unload=function(){OJ.N.unload.call(this);Ul(this.B);Aq(this.A);this.A.dispose();this.A=null}; h.az=function(){qq(this);this.destroy()};RJ.prototype.o=function(a,b){var c=Math.pow(this.D,a);this.A=b*(1-c)+c*this.A;this.C+=a}; RJ.prototype.B=function(){return this.A/(1-Math.pow(this.D,this.C))};SJ.prototype.forEach=function(a){for(var b=this.o+1;b<this.A.length;b++)a(this.A[b]||0);for(b=0;b<=this.o;b++)a(this.A[b]||0)}; SJ.prototype.Ka=function(){var a=[];this.forEach(A(a.push,a));return a};UJ.prototype.o=function(a,b){WJ(this,"index");this.C.push({index:this.J++,weight:a,value:b});this.A+=a;for(WJ(this,"index");this.A>this.G;){var c=this.A-this.G,d=this.C[0];d.weight<=c?(this.A-=d.weight,this.C.shift()):(this.A-=c,d.weight-=c)}}; UJ.prototype.B=function(){return this.F?(VJ(this,this.D-this.F)+VJ(this,this.D)+VJ(this,this.D+this.F))/3:VJ(this,this.D)};XJ.prototype.o=function(a,b){this.A.push(b);this.A.length>this.C&&this.A.shift()}; XJ.prototype.B=function(){return ne.apply(null,this.A)};B(iK,F);iK.prototype.J=function(a){if(this.A){var b;var c=ka(a);b=this.F[c];if(!b)if(this.A){if(b=a(this.A)){a=this.F[c]=b;for(var d in this.G)a.subscribe(d,this.G[d]);G(this,b)}}else b=null;b&&b.Va(this.A)&&!ib(this.o,b)&&(b.create(),this.o.push(b),ib(this.D,b.qa)&&(b.G=this.H,b.Ii(!!b.G)))}}; iK.prototype.K=function(a,b){E(this.o,function(c){c.R(a,b)})}; iK.prototype.isAvailable=function(a){a=qH(this,a);return!(!a||!a.ea)};pK.prototype.getMessage=function(){return this.C}; pK.prototype.getErrorCode=function(){return this.o}; pK.prototype.getType=function(){return this.D}; pK.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.B?" Caused by: "+this.B:"")};B(qK,jc);qK.prototype.getError=function(){return this.C};var p_="adMetadata click companionBackfill complete firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked youTubeChannelMetadata".split(" "),H$="abandon acceptinvitation acceptinvitationlinear video_extend_auto_skipped click close collapse complete creativeview engagedview exitfullscreen expand video_extend_shown video_extend_clicked externalActivityEvent firstquartile fullscreen measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more why_this_ad_unsubscribe_url why_this_ad_unsubscribe_continue_url why_this_ad_unsubscribe_cancel_url mute_interaction_url mute_url mute_undo_url".split(" "), hga="acceptinvitation click close collapse creativeview expand progress".split(" "),I$=["viewable_impression","measurable_impression","externalActivityEvent"],J$={fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};B(rK,jc);rK.prototype.getAd=function(){return this.C}; var Qda={cG:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",YI:"videoClicked",Xm:"engagedview",UG:"expandedChanged",STARTED:"start",zh:"impression",Zm:"measurable_impression",nn:"viewable_impression",Ym:"fully_viewable_audible_half_duration_impression",XG:"externalActivityEvent",PAUSED:"pause",dI:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",QG:"durationChange", sG:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",TH:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",ft:"video_extend_auto_skipped",Fu:"skipshown",Mt:"video_extend_shown",WG:"video_extend_clicked",tH:"linearChanged",oI:"skippableStateChanged",dG:"adMetadata",bG:"adBreakReady",xH:"log",VOLUME_CHANGED:"volumeChange",cJ:"mute",IG:"companionBackfill",lJ:"youTubeVideoMetadata",kJ:"youTubeChannelMetadata",RI:"urlNavigationRequested",II:"trackingUrlPinged",TI:"video_card_endcap_action", VI:"video_card_endcap_collapse",WI:"video_card_endcap_dismiss",XI:"video_card_endcap_impression",hJ:"why_this_ad_url",gJ:"why_this_ad_got_it",GH:"MUTE_AD"};var aL={Zt:5E3,$t:15E3,xu:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://yts?.moatads.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),yu:/\bocr\b/,hk:0,sd:{},Dq:function(a,b){a&&(aL.ll(a)?aL.Eq(a,b):aL.cC(a,b))}, ll:function(a){return C(D(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new N(a)).Ce().match(aL.yu)?!0:null!=db(aL.xu,function(b){return null!=a.match(b)})}, Eq:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?aL.Ro(function(b){aL.Aq(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):aL.Aq(c)}}, Aq:function(a){var b=M("iframe",{src:a,style:"display:none"});a=We(b).body;var c,d=Sd(function(){Zc(c);qf(b)},aL.$t); c=Xc(b,["load","error"],function(){Sd(function(){Td(d);qf(b)},aL.Zt)}); a.appendChild(b)}, Ro:function(a,b){var c=aL.sd.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete aL.sd[c];d||(d=!0,null!=aL.sd.imageLoadingEnabled||(aL.sd.imageLoadingEnabled=b),a(b))}; b?b(c):aL.Nx(c)}}, Nx:function(a){var b=new window.Image,c,d=""+aL.hk++;aL.sd[d]=b;b.onload=function(){(0,window.clearTimeout)(c);a(!0,d)}; c=(0,window.setTimeout)(function(){a(!1,d)},300); b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}, bC:function(a){if(a){var b=lf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+aL.hk++;aL.sd[c]=b;b.onload=b.onerror=function(){delete aL.sd[c]}; window.document.body.appendChild(b)}}, Bq:function(a){if(a){var b=new window.Image,c=""+aL.hk++;aL.sd[c]=b;b.onload=b.onerror=function(){delete aL.sd[c]}; b.src=a}}, cC:function(a,b){b?aL.Ro(function(b){b?aL.Bq(a):aL.bC(a)}):aL.Bq(a)}, zJ:function(a){null!=a&&E(a,function(a){aL.Dq(a)})}};var zK=new function(){this.A="always";this.F=1;this.o=!1;this.C=!0;this.G=!1;this.D=null};var zU=["ADSENSE","ADSENSE/ADX"],aba=["DART","DART_DFA","DART_DFP"],iba=["FREEWHEEL","YT:FREEWHEEL"],UT=["GDFP"],$aa=["VIRAL","ADSENSE-VIRAL"],vT={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},YY={CH:"video/mp4",EH:"video/mpeg",yH:"application/x-mpegURL",KH:"video/ogg",yI:"video/3gpp",eJ:"video/webm",BH:"audio/mpeg",DH:"audio/mp4"};AK.prototype.getId=function(){return this.A};BK.prototype.getId=function(){return this.B};var IK=null;var fQ=["*.googlesyndication.com"],RK=["*.youtu.be","*.youtube.com"],WK="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),VK=["c.googlesyndication.com"],iga= ["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];cL.prototype.getErrorCode=function(){return this.errorCode}; cL.prototype.getMessage=function(){return this.message}; var lda=new cL("Unable to request ads from server. Cause: {0}.",1005),jga=new cL("Unable to request ads from server due to network error.",1012),hV=new cL("Cannot parse the {0} value for the adslist response: {1}.",900),NY=new cL("Invalid usage of the API. Cause: {0}",900),SY=new cL("Unable to display one or more required companions.",602),kga=new cL("There was a problem requesting ads from the server.",1005),bda=new cL("Ad tag URI {0} is invalid. It must be properly encoded before being passed.", 1013),mX=new cL("The provided ad type: {0} is not supported.",1005),qR=new cL("The provided {0} information: {1} is invalid.",1101),lga=new cL("The provided skip offset was invalid.",1105),mga=new cL("The extension contained is neither skippable nor nonskippable.",1105),HW=new cL("The response does not contain any valid ads.",1009),nga=new cL("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Aba=new cL("The ad playlist response was malformed or empty.", 1010),iV=new cL("The ad response was not understood and cannot be parsed.",1010),eda=new cL("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),oga=new cL("The ad response contains unexpected element. Cause {0}.",1010),cY=new cL("No assets were found in the VAST ad response.",200),Paa=new cL("Duplicate node in <{0}>: {1}",101),IW=new cL("The VAST response document is empty.",1009),Pda=new cL("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.", 403),VX=new cL("Ad request reached a timeout.",301),JW=new cL("VAST response was malformed and could not be parsed.",100),K$=new cL("VAST media file loading reached a timeout of {0} seconds.",402),OX=new cL("Ad request could not be completed due to a network error.",301),pga=new cL("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),Zca=new cL("The maximum number of VAST wrappers ({0}) has been reached.",302),qga=new cL("VAST media file duration differs from the VAST response duration by {0} seconds.", 202),HZ=new cL("Video player received an ad with unexpected or incompatible linearity",201),Oaa=new cL("Unknown node in <{0}>: {1}",101),$ba=new cL("Invalid VAST resource type: {0}",101),rca=new cL("Invalid VAST version",102),$ca=new cL("No additional VAST wrappers allowed.",300),NX=new cL("No Ads VAST response after one or more Wrappers",303),LZ=new cL("There was an error playing the video ad.",400),mca=new cL("VMAP unsupported node in <{0}>: {1}",1010),Wda=new cL("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.", 901);var L$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var qL={},rL="",pQ=/OS (\S+) like/,wL=/Android ([\d\.]+)/;aa(xL);h=BL.prototype;h.bv=!1;h.vn=!1;h.yn=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.contentId=null;h.Fv=!1;h.Eg=null;h.surveyCreativeData=null;h.zC=!0;h.hm=!1;h.useShareButton=!1;h.Wq=!1;h.useStyledNonLinearAds=!1;h.useVideoAdUi=!0;h.AC=!0;h.Uj=!1;h.Gv=!1;h.youTubeAdNamespace=0;h.showContentThumbnail=!0;h.gm=!1;h.Df=null;h.loadVideoTimeout=15E3;h.zn=!0;h.hq=0;h.Gl=-1;window.console&&"function"===typeof window.console.log&&A(window.console.log,window.console);DL.prototype.toString=function(){function a(a){a=dc(c,a);null!=a?b.push(""+a):b.push("u")} var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};var NL=null;HL.prototype.getValue=function(){return this.o}; HL.prototype.mc=function(){return this.B?this.A():""}; HL.prototype.A=function(){return String(this.o)}; B(IL,HL);IL.prototype.A=function(){return this.o?"1":"0"}; B(JL,HL);JL.prototype.A=function(){return String(this.o)}; B(KL,HL);KL.prototype.A=function(){return this.o?Math.round(this.o.top)+"."+Math.round(this.o.left)+"."+(Math.round(this.o.top)+Math.round(this.o.height))+"."+(Math.round(this.o.left)+Math.round(this.o.width)):""}; GL.prototype.setItem=function(a){this.o[a.D]=a}; GL.prototype.getItem=function(a){return dc(this.o,a,null)}; GL.prototype.mc=function(a){var b=[];a||(a=0);for(var c in this.o){var d=this.o[c];d instanceof IL&&d.getValue()&&(a|=d.C);(d=this.o[c].mc())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};h=RL.prototype;h.remove=function(a){cc(this.o,a)}; h.set=function(a,b){this.o[a]=b}; h.get=function(a){return dc(this.o,a,null)}; h.extend=function(a){gc(this.o,a)}; h.mc=function(){var a=[],b;for(b in this.o)a.push(b+this.o[b]);return a.join("_")};var WL=null,ZL=null,VL=null;$L.prototype.mc=function(){var a=[],b=Number(this.o.get("eb"));this.o.remove("eb");var c=this.o.mc();c&&a.push(c);this.A&&(c=this.A.serialize())&&a.push(c);(c=this.B.mc(b))&&a.push(c);this.o.set("eb",b);return a.join("_")};var xP={START:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",RESUME:"resume",SKIPPED:"skip",nn:"viewable_impression",MUTE:"mute",UNMUTE:"unmute",FULLSCREEN:"fullscreen",EXIT_FULLSCREEN:"exitfullscreen",Ym:"fully_viewable_audible_half_duration_impression",Zm:"measurable_impression",Ts:"abandon",Xm:"engagedview",zh:"impression",CREATIVE_VIEW:"creativeview"},BP=["start","firstquartile","midpoint","thirdquartile", "resume"],aO=["abandon"],yP={UNKNOWN:-1,START:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,RESUME:7,SKIPPED:8,nn:9,MUTE:10,UNMUTE:11,FULLSCREEN:12,EXIT_FULLSCREEN:13,Ym:14,Zm:15,Ts:16,Xm:17,zh:18,CREATIVE_VIEW:19};var zP={v:"v",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ns:"ns",at:"at",as:"as",afvt:"afvt",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",px:"px",sfm:"sfm",nnut:"nnut",vme:"vme",nmtd:"nmtd",mmct:"mmct",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",veh:"veh",vds:"vds",c:"c",tth:"tth"};var NO=/https?:\/\/[^\/]+/;jM.prototype.o=function(a,b,c,d,e){var f={};f.context=a;b instanceof kM||(b=mM(b));f.msg=b.message.substring(0,512);b.fileName&&(f.file=b.fileName);0<b.lineNumber&&(f.line=b.lineNumber.toString());a=r.document;f.url=a.URL.substring(0,512);f.ref=a.referrer.substring(0,512);if(d)try{d(f)}catch(l){}d=this.D;try{if(Math.random()<(c||d.A)){var k=d.o+(e||this.C)+hM(f),k=k.substring(0,2E3);iM(r,k)}}catch(l){}return this.A};var wM=window.document,W=window;var oM;oM=new jM(new function(){this.o="http"+("http:"==W.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.A=.01},"jserror",!0); var PP=oM.o;var M$=!1,N$=""; (function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(M$=!0,a.description)){N$=tM(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){M$=!0;N$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(M$=(a=window.navigator.mimeTypes["application/x-shockwave-flash"])&&a.enabledPlugin)){N$=tM(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");M$= !0;N$=tM(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");M$=!0;N$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),M$=!0,N$=tM(b.GetVariable("$version"))}catch(c){}})(); var yS=M$,TM=N$;if(wM&&wM.URL){var eM=wM.URL,rga=!(eM&&0<dM().length);oM.A=rga};var PM={},QM=null;PM.le=0;PM.nt=2;PM.Fr=3;var $N=0,KM=(new Date).getTime(),FM=-1,HM=!1,IM=-1,JM=-1;PM.Po=5;PM.me=1;PM.om=4;UM.prototype.getStatus=function(){return this.o}; B(XM,UM);var jN={NI:-1,LOADING:0,St:1,wt:2,bu:3,VISIBLE:4},lN={LOADING:0,St:1,wt:2,EI:3,JH:4,KI:5,LI:6,JI:7,LH:8,DI:9},mN={};h=$M.prototype;h.No=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";this.setPosition(b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c}; h.Mo=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";this.setPosition(b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c}; h.setPosition=function(a){this.module&&!pe(a,Vf(this.module))&&Tf(this.module,a)}; h.remove=function(){if(this.module)try{qf(this.module)}catch(a){}this.module=null}; h.Fw=function(a){this.A=a?3:4}; q("gteh",qM("osd_or_lidar::gteh_ex",function(a,b){var c=mN[a];ga(c)&&c(b)}),void 0); var CN={bu:0,VISIBLE:1},sga=new oe(-99999,0);rN.prototype.Y=function(){var a=tN(this);if(null===a)vN(this);else if(null===this.B)this.B=a,vN(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(vN(this),sN(this,0)):(this.o.setPosition(sga),this.G=W.setTimeout(rM("osd_or_lidar::sfm_cpto",A(this.U,this)),125))}}; rN.prototype.U=function(){var a=tN(this),b=a-this.B;this.B=a;a=4<=b?1:0;vN(this);sN(this,0==a?1:0)}; B(yN,UM);yN.prototype.K=function(){var a=BN(this);this.A!=a&&(this.A=a,this.H(a))};aa(EM);var HN=new qe(0,0,0,0);h=GN.prototype;h.update=function(a,b,c,d,e){if(0>this.H)return null;c||IN(this,d,e);return this.Sf(this.A,b,a,c,!1)}; h.Sf=function(a,b,c,d,e,f){var k=c-this.H||1,l=1E4;f=f||{};var m=f.duration;this.yi()&&n(m)&&-1!=m&&(l=Math.max(l,m/3));k=k>l?1:k;l=f.volume;f=f.deltaTime;m=null;fa(b)?this.G=this.Uh(b):(m=b,this.G=this.Uh(a,m));a=NN(this.G);this.gj(a,k,this.S,e,d,m,l,f);this.S=d?-1:a;this.H=c;-1!=a&&(0>this.Lc&&(this.Lc=c),this.je=c);-1==this.ke&&this.Le()&&(this.ke=c);this.ub(this,m||HN);return this.G}; h.Uh=function(a,b){var c=null;if(fa(a))return a;c=new qe(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));if(0>=this.ea||c.top>=c.bottom||c.left>=c.right)return 0;var d=c.clone(),e=-a.left,f=-a.top;e instanceof oe?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,fa(f)&&(d.top+=f,d.bottom+=f));c=(c.bottom-c.top)*(c.right-c.left);return c/this.ea}; h.fm=function(a,b){this.Ia[a]+=b}; h.bm=function(a,b){this.K[a]+=b;this.K[a]>this.Ra[a]&&(this.Ra[a]=this.K[a])}; h.Kl=function(a){this.K[a]=0}; h.gj=function(a,b,c,d,e,f,k,l){k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;l=l||0;-1!=c&&this.fm(c,b,l);f=f||null;d=-1!=c&&2>=c;f?(d&&-1!=this.aa&&(this.zoom[this.aa]+=b),f=100*this.ea/((f.bottom-f.top)*(f.right-f.left)),this.aa=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):this.aa=-1;for(f=c;0<=f&&4>=f;f++)this.bm(f,b,l);for(f=0;f<this.K.length;++f)(f<a||e||-1==a)&&this.Kl(f)}; h.yi=function(){return!1}; h.Le=function(){return!1};B(TN,GN);h=TN.prototype; h.Sf=function(a,b,c,d,e,f){var k=c-this.H||1;if(!f){f={};if("as"==this.C){var l="getVideoMetadata"+this.L;if(ga(this.element[l]))try{f=this.element[l]()}catch(m){this.wc=!0}}if("h"==this.C&&(l=u("ima.common.getVideoMetadata"),ga(l)))try{f=l(this.B)}catch(m){this.wc=!0}l=f.currentTime;n(l)?f.currentTime=Math.floor(1E3*l):this.Cd=!0;l=f.duration;n(l)&&(f.duration=Math.floor(1E3*l));n(f.volume)||(f.volume=-1)}this.V=f.duration||this.V;f.duration=this.V;this.nb=f.isVpaid||this.nb;k=n(f.currentTime)?f.currentTime: this.Z+k;k<this.Z&&(k=this.Z,this.Dd=!0);f.deltaTime=k-this.Z;TN.N.Sf.call(this,a,b,c,d,e,f);-1==this.La&&this.xc&&(this.La=this.Qa);this.Z=k;return this.G}; h.Uh=function(a,b){return this.Bd?0:this.M?1:TN.N.Uh.call(this,a,b)}; h.fm=function(a,b,c){TN.N.fm.call(this,a,b,c);this.Nb[a]+=c;2>=a&&(this.sa+=b,this.Da+=c)}; h.bm=function(a,b,c){TN.N.bm.call(this,a,b,c);this.ka[a]+=c;this.ka[a]>this.Cb[a]&&(this.Cb[a]=this.ka[a])}; h.Kl=function(a){TN.N.Kl.call(this,a);this.ka[a]=0}; h.gj=function(a,b,c,d,e,f,k,l){if(!this.ha){TN.N.gj.call(this,a,b,c,d,e,f,k,l);a=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?a:c;d=-1!=c&&2>=c;a=n(k)&&.1<=k&&.1<=this.Ga;this.Qa+=b;a?(this.ab+=b,0==c&&(this.U+=b),d||(this.fa+=b)):this.$a=!1;this.fa>this.tb&&(this.tb=this.fa);if(d||!n(k)||.1>k)this.fa=0;n(k)&&(Number(k)?(b=Math.pow(10,3),k=Math.round(k*b)/b):k=0);this.Ga=k}}; h.yi=function(){return!0}; h.Le=function(){return 2E3<=Math.max(this.K[2],this.Ra[2])};var eO=null,gO=null,hO=null,jO=null,BO=null,cO=!1,CO=[],EO=[],xO=!1,yO=null,rO=0,tO=!1,sO=!1,vO=!1,wO=!1,qO=jL()||iL(),AO=0;var dP=null,jP="",fP=!1;var SO=(new Date).getTime(),YO=!1,ZO=!1,$O=!1,VO=[function(a){return!(!a.chrome||!a.chrome.webstore)}, function(a){return!!a.document.documentMode}, function(a){return!!a.document.fonts.ready}, function(){return RO(0)}, function(a){return!!a.ActiveXObject}, function(a){return!!a.chrome}, function(a){return!!a.navigator.serviceWorker}, function(a){return!!a.opera}, function(a){return!!a.sidebar}, function(){return!+"\v1"}, function(){return RO(1)}, function(a){return!a.ActiveXObject}, function(a){return"-ms-ime-align"in a.document.documentElement.style}, function(a){return"-ms-scroll-limit"in a.document.documentElement.style}, function(a){return"-webkit-font-feature-settings"in a.document.body.style}, function(){return RO(2)}, function(a){return"ActiveXObject"in a}, function(a){return"MozAppearance"in a.document.documentElement.style}, function(a){return"_phantom"in a}, function(a){return"callPhantom"in a}, function(a){return"content"in a.document.createElement("template")}, function(a){return"getEntriesByType"in a.performance}, function(){return RO(3)}, function(a){return"image-rendering"in a.document.body.style}, function(a){return"object-fit"in a.document.body.style}, function(a){return"open"in a.document.createElement("details")}, function(a){return"orientation"in a.screen}, function(a){return"performance"in a}, function(a){return"shape-image-threshold"in a.document.body.style}, function(){return RO(4)}, function(a){return"srcset"in a.document.createElement("img")}, function(){return ZO}, function(){return $O}, function(){return RO(5)}, function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width}, function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width}, function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(0,window.DummyFunction1)()}catch(b){a=!0}return a}, function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a}, function(){var a=(new window.AudioContext).createBufferSource();a.detune.value=100;return 100==a.detune.value}, function(){return RO(6)}, function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||QO(a.navigator.vibrate)}, function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]}, function(a){a=a.document.createElement("div");return QO(a.matches)}, function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type}, function(a){return a.CSS.supports("image-rendering","pixelated")}, function(a){return a.CSS.supports("object-fit","contain")}, function(){return RO(7)}, function(a){return a.CSS.supports("object-fit","inherit")}, function(a){return a.CSS.supports("shape-image-threshold","0.9")}, function(a){return a.CSS.supports("word-break","keep-all")}, function(){return eval("1 == [for (item of [1,2,3]) item][0]")}, function(a){return QO(a.CSS.supports)}, function(){return QO(window.Intl.Collator)}, function(a){return QO(a.document.createElement("dialog").show)}, function(){return RO(8)}, function(a){return QO(a.document.createElement("div").animate([{transform:"scale(1)",Jv:"ease-in"},{transform:"scale(1.3)",Jv:"ease-in"}],{duration:1300,xJ:1}).reverse)}, function(a){return QO(a.document.createElement("div").animate)}, function(a){return QO(a.document.documentElement.webkitRequestFullScreen)}, function(a){return QO(a.navigator.getBattery)}, function(a){return QO(a.navigator.permissions.query)}, function(){return QO((new window.AudioContext).createBuffer)}, function(){return RO(9)}, function(){return QO(window.webkitRequestAnimationFrame)}, function(a){return QO(a.BroadcastChannel.call)}, function(a){return QO(a.FontFace)}, function(a){return QO(a.Gamepad)}, function(){return RO(10)}, function(a){return QO(a.MutationEvent)}, function(a){return QO(a.MutationObserver)}, function(a){return QO(a.crypto.getRandomValues)}, function(a){return QO(a.document.body.createShadowRoot)}, function(a){return QO(a.document.body.webkitCreateShadowRoot)}, function(a){return QO(a.fetch)}, function(){return RO(11)}, function(a){return QO(a.navigator.serviceWorker.register)}, function(a){return QO(a.navigator.webkitGetGamepads)}, function(a){return QO(a.speechSynthesis.speak)}, function(a){return QO(a.webkitRTCPeerConnection)}, function(a){return a.CSS.supports("--fake-var","0")}, function(){return RO(12)}, function(a){return a.CSS.supports("cursor","grab")}, function(a){return a.CSS.supports("cursor","zoom-in")}, function(a){return a.CSS.supports("image-orientation","270deg")}, function(){return RO(13)}, function(a){return a.CSS.supports("position","sticky")}, function(a){return void 0===a.document.createElement("style").scoped}, function(a){return a.performance.getEntriesByType("resource")instanceof Array}, function(){return"undefined"==typeof window.InstallTrigger}, function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()}, function(a){return"boolean"==typeof a.navigator.onLine}, function(){return RO(14)}, function(a){return"undefined"==typeof a.navigator.CJ}, function(a){return"number"==typeof a.performance.now()}, function(){return 0==(new window.Uint16Array(1))[0]}, function(a){return-1==a.ActiveXObject.toString().indexOf("native")}, function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],WO=[function(a){a=a.document.createElement("div"); var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1}, function(){return(new Date).getTimezoneOffset()}, function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)}, function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)}, function(a){return a.screen.availWidth/a.screen.availHeight}, function(a){return a.screen.width/a.screen.height}],XO=[function(a){return a.navigator.userAgent}, function(a){return a.navigator.platform}, function(a){return a.navigator.vendor}];var bP=!1,gP=!1,iP=!1,hP=!1,cP=!1,CP={start:function(a){a.he++;WN(a,0);.1<=a.Ga&&(a.$a=!0);return XN(a,"start")}, firstquartile:function(a){WN(a,1);nO([a],!ZN());return XN(a,"firstquartile")}, midpoint:function(a){WN(a,2);a.xc=!0;nO([a],!ZN());return XN(a,"midpoint")}, thirdquartile:function(a){WN(a,3);nO([a],!ZN());return XN(a,"thirdquartile")}, complete:function(a){WN(a,4);nO([a],!ZN());var b=XN(a,"complete");a.M=!1;nP(a.B);return b}, pause:function(a){return lP(a,"pause")}, resume:function(a){var b=ZN();a.ha&&!b&