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 t=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.Kb?a.Kb:a.Kb=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 x=function(a){return"string"==typeof a};var fa=function(a){return"number"==typeof a};var ha=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.M=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 wa=function(a){return(0,window.encodeURIComponent)(String(a))};var xa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
var ya=function(a){if(!za.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ca,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Da,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ea,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"&#0;"));return a};var Ga=function(a){return Ha(a,"&")?"document"in r?Ia(a):Ja(a):a};
var Ia=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=r.document.createElement("div");return a.replace(Ka,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 Ja=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 La=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};var Ha=function(a,b){return-1!=a.indexOf(b)};var Ma=function(a,b){return Ha(a.toLowerCase(),b.toLowerCase())};
var Na=function(){var a;a="";var b=ra("Skip Ad \u00bb");a=a+b;b=new RegExp(Oa("\u00bb"),"");return a.replace(b,"")};var Oa=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};var Pa=function(a,b,c){a=n(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Qa("0",Math.max(0,b-c))+a};var D=function(a){return null==a?"":String(a)};var Ra=function(a){return Array.prototype.join.call(arguments,"")};
var Sa=function(a,b){for(var c=0,d=Ta(String(a)).split("."),e=Ta(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"),u=RegExp("(\\d*)(\\D*)","g");do{var v=p.exec(l)||["","",""],z=u.exec(m)||["","",""];if(0==v[0].length&&0==z[0].length)break;c=Ua(0==v[1].length?0:(0,window.parseInt)(v[1],10),0==z[1].length?0:(0,window.parseInt)(z[1],10))||Ua(0==v[2].length,0==z[2].length)||Ua(v[2],z[2])}while(0==c)}return c};
var Ua=function(a,b){return a<b?-1:a>b?1:0};var Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};var Wa=function(){return"goog_"+Xa++};var Ya=function(a){var b=Number(a);return 0==b&&C(a)?window.NaN:b};var Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};var $a=function(a){var b=x(void 0)?Oa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
var ab=function(a){(0,window.isFinite)(a)&&(a=String(a));return x(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};var bb=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 cb=function(a){return a};var db=function(a){return a[a.length-1]};var eb=function(a,b,c){b=fb(a,b,c);return 0>b?null:x(a)?a.charAt(b):a[b]};
var fb=function(a,b,c){for(var d=a.length,e=x(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 gb=function(a,b){var c=ib(a,b,void 0);return 0>c?null:x(a)?a.charAt(c):a[c]};var ib=function(a,b,c){for(var d=x(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 E=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){E(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=fb(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={};F(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 G=function(){this.La=this.La;this.Ca=this.Ca};var H=function(a,b){Lb(a,pa(Mb,b))};
var Lb=function(a,b){a.La?b.call(void 0):(a.Ca||(a.Ca=[]),a.Ca.push(n(void 0)?A(b,void 0):b))};var Mb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};var Nb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Nb.apply(null,d):Mb(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(ha(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.o=!1;this.bq=!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 Ha(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<=Sa(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.j=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.j=null;this.src=b;this.type=c;this.bf=!!d;this.Rc=e;this.key=++Gc;this.If=this.Kh=!1};var Hc=function(a){a.If=!0;a.listener=null;a.j=null;a.src=null;a.Rc=null};var Ic=function(a){this.src=a;this.j={};this.o=0};var Jc=function(a,b,c,d,e,f){var k=b.toString();b=a.j[k];b||(b=a.j[k]=[],a.o++);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.j))return!1;var d=ob(a.j[c],b);d&&(Hc(b),0==a.j[c].length&&(delete a.j[c],a.o--));return d};var Mc=function(a,b,c,d,e){a=a.j[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.If&&f.listener==b&&f.bf==!!c&&f.Rc==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.R(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.j)return c;d=Sc();c.j=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.kd,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.If)return!1;var b=a.src;if(Dc(b))return Lc(b.kd,a);var c=a.type,d=a.j;b.removeEventListener?b.removeEventListener(c,d,a.bf):b.detachEvent&&b.detachEvent(Tc(c),d);Uc--;(c=Qc(b))?(Lc(c,a),0==c.o&&(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.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.bf==c&&!f.If&&(f=bd(f,d),e=e&&!1!==f)}return e};
var bd=function(a,b){var c=a.listener,d=a.Rc||a.src;a.Kh&&Zc(a);return c.call(d,b)};
var Vc=function(a,b){if(a.If)return!0;if(!Wc){var c=b||t("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.o&&0<=k;k--){d.currentTarget=c[k];var l=ad(c[k],f,!0,d),e=e&&l}for(k=0;!d.o&&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(ha(a))return a;a[cd]||(a[cd]=function(b){return a.handleEvent(b)});return a[cd]};var J=function(){G.call(this);this.kd=new Ic(this);this.Na=this;this.ha=null};var dd=function(a,b,c,d){b=a.kd.j[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.If&&k.bf==c){var l=k.listener,m=k.Rc||k.src;k.Kh&&Lc(a.kd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.bq};
var ed=function(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.j=null};var fd=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};var gd=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 hd=function(a){r.setTimeout(function(){throw a;},0)};
var id=function(a,b){var c=a;b&&(c=A(a,b));!ha(r.setImmediate)||r.Window&&r.Window.prototype&&!nc("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(jd||(jd=kd()),jd(c)):r.setImmediate(c)};
var kd=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.vn;c.vn=null;a()}};return function(a){d.next={vn: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 ld=function(){this.o=this.j=null};var md=function(){this.next=this.scope=this.j=null};var nd=function(a,b){od||pd();qd||(od(),qd=!0);var c=rd,d=sd.get();d.set(a,b);c.o?c.o.next=d:c.j=d;c.o=d};var pd=function(){if(r.Promise&&r.Promise.resolve){var a=r.Promise.resolve(void 0);od=function(){a.then(ud)}}else od=function(){id(ud)}};
var ud=function(){for(var a=null;a=rd.remove();){try{a.j.call(a.scope)}catch(b){hd(b)}sd.put(a)}qd=!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 xd=function(a,b){this.j=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a!=w)try{var c=this;a.call(b,function(a){yd(c,2,a)},function(a){yd(c,3,a)})}catch(d){yd(this,3,d)}};
var zd=function(){this.next=this.context=this.o=this.A=this.j=null;this.B=!1};var Ad=function(a,b,c){var d=Bd.get();d.A=a;d.o=b;d.context=c;return d};var Cd=function(a){return new xd(function(b,c){c(a)})};var Dd=function(a,b){return Ed(a,null,b,void 0)};
var Fd=function(a,b){if(0==a.j)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,f=null,k=c.o;k&&(k.B||(d++,k.j==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.j&&1==d?Fd(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):Gd(c),Hd(c,e,3,b)))}a.A=null}else yd(a,3,b)};var Id=function(a,b){a.o||2!=a.j&&3!=a.j||Jd(a);a.B?a.B.next=b:a.o=b;a.B=b};
var Ed=function(a,b,c,d){var e=Ad(null,null,null);e.j=new xd(function(a,k){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){k(p)}}:a;e.o=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Kd?k(b):a(e)}catch(p){k(p)}}:k});e.j.A=a;Id(a,e);return e.j};
var yd=function(a,b,c){if(0==a.j){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.j=1;var d;a:{var e=c,f=a.H,k=a.J;if(e instanceof xd)Id(e,Ad(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(ha(l)){Ld(e,l,f,k,a);d=!0;break a}}catch(m){k.call(a,m);d=!0;break a}d=!1}}d||(a.F=c,a.j=b,a.A=null,Jd(a),3!=b||c instanceof Kd||Md(a,c))}};
var Ld=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 Jd=function(a){a.D||(a.D=!0,nd(a.G,a))};var Gd=function(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b};var Hd=function(a,b,c,d){if(3==c&&b.o&&!b.B)for(;a&&a.C;a=a.A)a.C=!1;if(b.j)b.j.A=null,Nd(b,c,d);else try{b.B?b.A.call(b.context):Nd(b,c,d)}catch(e){Od.call(null,e)}Bd.put(b)};
var Nd=function(a,b,c){2==b?a.A.call(a.context,c):a.o&&a.o.call(a.context,c)};var Md=function(a,b){a.C=!0;nd(function(){a.C&&Od.call(null,b)})};var Kd=function(a){sa.call(this,a)};var Pd=function(a,b){J.call(this);this.j=a||1;this.o=b||r;this.A=A(this.Nv,this);this.B=K()};var Qd=function(a,b){a.j=b;a.za&&a.enabled?(a.stop(),a.start()):a.za&&a.stop()};
var Rd=function(a,b,c){if(ha(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 Sd=function(a){r.clearTimeout(a)};var Td=function(a,b,c){G.call(this);this.j=a;this.B=b||0;this.o=c;this.A=A(this.Tn,this)};var Ud=function(a){a.stop();a.Tn()};var Vd=function(a){if(a.classList)return a.classList;a=a.className;return x(a)&&a.match(/\S+/g)||[]};
var Wd=function(a,b){return a.classList?a.classList.contains(b):E(Vd(a),b)};var L=function(a,b){a.classList?a.classList.add(b):Wd(a,b)||(a.className+=0<a.className.length?" "+b:b)};var Xd=function(a,b){if(a.classList)F(b,function(b){L(a,b)});else{var c={};F(Vd(a),function(a){c[a]=!0});F(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};var Yd=function(a,b){a.classList?a.classList.remove(b):Wd(a,b)&&(a.className=Zd(Vd(a),function(a){return a!=b}).join(" "))};
var $d=function(a,b){a.classList?F(b,function(b){Yd(a,b)}):a.className=Zd(Vd(a),function(a){return!E(b,a)}).join(" ")};var M=function(a,b,c){c?L(a,b):Yd(a,b)};
var ae=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 be=function(a){return eval("("+a+")")};var de=function(a){return(new ee(void 0)).Zb(a)};
var ee=function(a){this.j=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.j?a.j.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.j?a.j.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(he,function(a){var b=ie[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ie[a]=b);return b}),'"')};var je=function(a,b,c){return Math.min(Math.max(a,b),c)};
var ke=function(a){return le(arguments,function(a,c){return a+c},0)};var me=function(a){return ke.apply(null,arguments)/arguments.length};var ne=function(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0};var oe=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};var pe=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};var qe=function(a,b){this.width=a;this.height=b};var re=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
var se=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};var te=function(a){return new pe(a.top,a.left+a.width,a.top+a.height,a.left)};var ue=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 ve=function(a){return new qe(a.width,a.height)};var we=function(a){return new ne(a.left,a.top)};var xe=function(a,b){return b?a.replace(ye,""):a};var ze=function(){this.j="";this.o=Ae};
var Be=function(a){return a instanceof ze&&a.constructor===ze&&a.o===Ae?a.j:"type_error:Const"};var Ce=function(a){var b=new ze;b.j=a;return b};var De=function(){this.j="";this.o=Ee};var Fe=function(a){var b=new De;b.j=a;return b};var Ge=function(){this.j="";this.o=He};var Ie=function(a){return a instanceof Ge&&a.constructor===Ge&&a.o===He?a.j:"type_error:SafeUrl"};var Je=function(a){if(a instanceof Ge)return a;a=a.Ie?a.md():String(a);Ke.test(a)||(a="about:invalid#zClosurez");var b=new Ge;b.j=a;return b};
var Le=function(){this.j=Me};var Ne=function(a){return a instanceof Le&&a.constructor===Le&&a.j===Me?"":"type_error:TrustedResourceUrl"};var Oe=function(){this.j="";this.A=Pe;this.o=null};var Qe=function(a){return a instanceof Oe&&a.constructor===Oe&&a.A===Pe?a.j:"type_error:SafeHtml"};
var Re=function(a){function b(a){if(da(a))F(a,b);else{var f;a instanceof Oe?f=a:(f=null,a.Sk&&(f=a.gf()),a=ya(a.Ie?a.md():String(a)),f=Se(a,f));d+=Qe(f);f=f.gf();0==c?c=f:0!=f&&c!=f&&(c=null)}}var c=0,d="";F(arguments,b);return Se(d,c)};var Se=function(a,b){var c=new Oe;c.j=a;c.o=b;return c};var Te=function(a){return a?new Ue(Ve(a)):We||(We=new Ue)};var Xe=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Ye("*",a,b)};
var Ze=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=Ye("*",a,b)[0];return d||null};
var Ye=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&&E(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
var $e=function(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:af.hasOwnProperty(d)?a.setAttribute(af[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})};var bf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new qe(a.clientWidth,a.clientHeight)};
var cf=function(a){var b=df(a);a=a.parentWindow||a.defaultView;return vc&&yc("10")&&a.pageYOffset!=b.scrollTop?new ne(b.scrollLeft,b.scrollTop):new ne(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};var df=function(a){return a.scrollingElement?a.scrollingElement:wc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};var ef=function(a){return a?a.parentWindow||a.defaultView:window};var N=function(a,b,c){return ff(window.document,arguments)};
var ff=function(a,b){var c=b[0],d=b[1];if(!gf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ya(d.name),'"');if(d.type){c.push(' type="',ya(d.type),'"');var e={};gc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(x(d)?c.className=d:da(d)?c.className=d.join(" "):$e(c,d));2<b.length&&hf(a,c,b,2);return c};
var hf=function(a,b,c,d){function e(c){c&&b.appendChild(x(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ea(f)||ia(f)&&0<f.nodeType?e(f):F(jf(f)?sb(f):f,e)}};var kf=function(a){return window.document.createElement(a)};var lf=function(a,b){a.appendChild(b)};var mf=function(a,b){hf(Ve(a),a,arguments,1)};var nf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};var of=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};var pf=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};
var qf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};var rf=function(a){return sf&&void 0!=a.children?a.children:Zd(a.childNodes,function(a){return 1==a.nodeType})};var tf=function(a){return n(a.firstElementChild)?a.firstElementChild:uf(a.firstChild)};var uf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
var vf=function(a){var b;if(wf&&!(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 xf=function(a,b){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 Ve=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
var yf=function(a){try{return a.contentWindow||(a.contentDocument?ef(a.contentDocument):null)}catch(b){}return null};var zf=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{nf(a);var c=Ve(a);a.appendChild(c.createTextNode(String(b)))}};
var Af=function(a){if("outerHTML"in a)return a.outerHTML;var b=Ve(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};var Bf=function(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Cf(a)||Df(a)):Cf(a)&&Df(a))&&vc?(a=ha(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a};
var Cf=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};var Df=function(a){a=a.tabIndex;return fa(a)&&0<=a&&32768>a};var jf=function(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(ha(a))return"function"==typeof a.item}return!1};var Ef=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Ff(a,function(a){return(!e||a.nodeName==e)&&(!c||x(a.className)&&E(a.className.split(/\s+/),c))},d)};
var Gf=function(a,b){return Ef(a,null,b,void 0)};var Ff=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 Ue=function(a){this.j=a||r.document||window.document};var Hf=function(a){a=a.j;return a.parentWindow||a.defaultView};var If=function(a){return cf(a.j)};var Jf=function(){return wc?"Webkit":tc?"Moz":vc?"ms":Kf?"O":null};
var Lf=function(a,b,c){if(x(b))(b=Mf(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Mf(c,d);f&&(c.style[f]=e)}};var Mf=function(a,b){var c=Nf[b];if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Jf()+$a(d),void 0!==a.style[d]&&(c=d));Nf[b]=c}return c};var Pf=function(a,b){var c=a.style[Za(b)];return"undefined"!==typeof c?c:a.style[Mf(a,b)]||""};
var Qf=function(a,b){var c=Ve(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};var Rf=function(a,b){return Qf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};var Sf=function(a,b,c){var d;b instanceof ne?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Tf(d,!1);a.style.top=Tf(b,!1)};var Uf=function(a){return new ne(a.offsetLeft,a.offsetTop)};
var Vf=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 Wf=function(a){if(vc&&!(8<=Xf))return a.offsetParent;var b=Ve(a),c=Rf(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=Rf(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 Yf=function(a){for(var b=new pe(0,window.Infinity,window.Infinity,0),c=Te(a),d=c.j.body,e=c.j.documentElement,f=df(c.j);a=Wf(a);)if(!(vc&&0==a.clientWidth||wc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Rf(a,"overflow")){var k=Zf(a),l=new ne(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=bf(Hf(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 Zf=function(a){var b=Ve(a),c=new ne(0,0),d;d=b?Ve(b):window.document;var e;(e=!vc)||(e=9<=Xf);e||(e="CSS1Compat"==Te(d).j.compatMode);if(a==(e?d.documentElement:d.body))return c;a=Vf(a);b=If(Te(b));c.x=a.left+b.x;c.y=a.top+b.y;return c};
var $f=function(a,b){var c=new ne(0,0),d=ef(Ve(a));if(!mc(d,"parent"))return c;var e=a;do{var f=d==b?Zf(e):ag(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 bg=function(a,b){var c=cg(a),d=cg(b);return new ne(c.x-d.x,c.y-d.y)};var ag=function(a){a=Vf(a);return new ne(a.left,a.top)};var cg=function(a){if(1==a.nodeType)return ag(a);a=a.changedTouches?a.changedTouches[0]:a;return new ne(a.clientX,a.clientY)};
var dg=function(a,b,c){if(b instanceof qe)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");eg(a,b);a.style.height=Tf(c,!0)};var Tf=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};var eg=function(a,b){a.style.width=Tf(b,!0)};var fg=function(a){return gg(a)};
var gg=function(a){var b=hg;if("none"!=Rf(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 hg=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=wc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new qe(b,c):(a=Vf(a),new qe(a.right-a.left,a.bottom-a.top))};var ig=function(a){var b=Zf(a);a=gg(a);return new se(b.x,b.y,a.width,a.height)};
var jg=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 kg=function(a,b){a.style.display=b?"":"none"};var lg=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 mg=function(a){var b=Rf(a,"fontSize"),c;c=(c=b.match(ng))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(vc){if(c in og)return lg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in pg)return a=a.parentNode,c=Rf(a,"fontSize"),lg(a,b==c?"1em":b)}c=N("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;pf(c);return b};var qg=function(){};
var rg=function(a){if(a instanceof qg)return a;if("function"==typeof a.Rb)return a.Rb(!1);if(ea(a)){var b=0,c=new qg;c.next=function(){for(;;){if(b>=a.length)throw sg;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");};var tg=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==sg)throw d;}else{a=rg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==sg)throw d;}}};var ug=function(a){if(ea(a))return sb(a);a=rg(a);var b=[];tg(a,function(a){b.push(a)});return b};
var vg=function(a,b){this.o={};this.j=[];this.be=this.xa=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 vg?(c=a.Ma(),d=a.Ja()):(c=Wb(a),d=Vb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};var wg=function(a,b){return xg(a.o,b)};var yg=function(a,b){return a===b};
var zg=function(a){if(a.xa!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];xg(a.o,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.xa!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],xg(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};var xg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ag=function(a){return a.Za&&"function"==typeof a.Za?a.Za():ea(a)||x(a)?a.length:Sb(a)};
var Bg=function(a){if(a.Ja&&"function"==typeof a.Ja)return a.Ja();if(x(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 Cg=function(a){if(a.Ma&&"function"==typeof a.Ma)return a.Ma();if(!a.Ja||"function"!=typeof a.Ja){if(ea(a)||x(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Wb(a)}};
var Dg=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||x(a))F(a,b,c);else for(var d=Cg(a),e=Bg(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};var Eg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ea(a)||x(a))return Fg(a,b,c);for(var d=Cg(a),e=Bg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0};
var Gg=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 Hg=function(a){return a.match(Ig)};var Jg=function(a){return a?(0,window.decodeURI)(a):a};var Kg=function(a){return Jg(Hg(a)[3]||null)};var Lg=function(a){return Number(Hg(a)[4]||null)||null};
var Mg=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?xa(k):"")}};var Ng=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 Og=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Og(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",wa(b))};
var Pg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Og(b[c],b[c+1],a);return a};var Qg=function(a,b){for(var c in b)Og(c,b[c],a);return a};var Rg=function(a){a=Qg([],a);a[0]="";return a.join("")};var Sg=function(a,b){return Ng(2==arguments.length?Pg([a],arguments[1],0):Pg([a],arguments,1))};var Tg=function(a,b){return Ng(Qg([a],b))};
var Ug=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 Vg=function(a,b){var c=a.search(Wg),d=Ug(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 xa(a.substr(d,e-d))};
var Xg=function(a,b){for(var c=a.search(Wg),d=0,e,f=[];0<=(e=Ug(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(Yg,"$1")};var Zg=function(a,b,c){a=[Xg(a,b),"&",b];null!=c&&a.push("=",wa(c));return Ng(a)};
var O=function(a,b){this.o=this.G=this.B="";this.C=null;this.H=this.A="";this.D=!1;var c;a instanceof O?(this.D=n(b)?b:a.D,$g(this,a.B),this.G=a.G,ah(this,a.o),bh(this,a.C),ch(this,a.A),dh(this,a.j.clone()),this.H=a.hf()):a&&(c=Hg(String(a)))?(this.D=!!b,$g(this,c[1]||"",!0),this.G=eh(c[2]||""),ah(this,c[3]||"",!0),bh(this,c[4]),ch(this,c[5]||"",!0),dh(this,c[6]||"",!0),this.H=eh(c[7]||"")):(this.D=!!b,this.j=new fh(null,0,this.D))};
var $g=function(a,b,c){a.B=c?eh(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};var gh=function(a){return a.o};var ah=function(a,b,c){a.o=c?eh(b,!0):b;return a};var bh=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null;return a};var ch=function(a,b,c){a.A=c?eh(b,!0):b};var dh=function(a,b,c){b instanceof fh?(a.j=b,hh(a.j,a.D)):(c||(b=ih(b,jh)),a.j=new fh(b,0,a.D));return a};var kh=function(a){return a.j};var lh=function(a,b,c){a.j.set(b,c);return a};
var mh=function(a,b,c){da(c)||(c=[String(c)]);nh(a.j,b,c)};var oh=function(a){lh(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^K()).toString(36));return a};var ph=function(a){return a instanceof O?a.clone():new O(a,void 0)};var qh=function(a,b,c,d){var e=new O(null,void 0);a&&$g(e,a);b&&ah(e,b);c&&bh(e,c);d&&ch(e,d);return e};var eh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
var ih=function(a,b,c){return x(a)?(a=(0,window.encodeURI)(a).replace(b,rh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};var rh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};var fh=function(a,b,c){this.xa=this.j=null;this.o=a||null;this.A=!!c};var sh=function(a){a.j||(a.j=new vg,a.xa=0,a.o&&Mg(a.o,function(b,c){th(a,xa(b),c)}))};var th=function(a,b,c){sh(a);a.o=null;b=uh(a,b);var d=a.j.get(b);d||a.j.set(b,d=[]);d.push(c);a.xa++};
var vh=function(a,b){sh(a);b=uh(a,b);return wg(a.j,b)};var nh=function(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.j.set(uh(a,b),sb(c)),a.xa+=c.length)};var uh=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};var hh=function(a,b){b&&!a.A&&(sh(a),a.o=null,a.j.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),nh(this,e,a))},a));a.A=b};var wh=function(){return xh?'<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 yh=function(){return xh?'<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 zh=function(){return xh?'<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 Ah=function(){return xh?'<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 Bh=function(){return xh?'<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 Ch=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 Dh=function(a,b){if(a in b)return b[a];var c=Eh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};var Fh=function(a,b){var c;Gh(a,function(a){c=Dh(a,b);return!!c});return c};var Hh=function(a){var b=window.document;if("on"+a in b)return a;a=Eh+a;return"on"+a in b?a:null};var Ih=function(){return!!Fh(["fullscreenEnabled","fullScreenEnabled"],window.document)};var Jh=function(){return Fh(["fullscreenElement","fullScreenElement"],window.document)};
var Kh=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ec(Lh);this.assets=a.assets||{};this.attrs=a.attrs||ec(Mh);this.params=a.params||ec(Nh);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 Oh=function(a){window.chrome?Ph(0,a):a(null)};
var Ph=function(a,b){a==Qh.length?b(null):Rh(Qh[a],function(c){c?b(Qh[a]):Ph(a+1,b)})};var Rh=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+Sh,!0),c.send()}catch(d){b(!1)}};var Th=function(a){var b=window.document.createElement("script");b.src=a;(window.document.head||window.document.documentElement).appendChild(b)};
var Uh=function(){var a=window.navigator.userAgent;return 0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")};
var Vh=function(){if(window.navigator.presentation&&Uh())Th("//www.gstatic.com/eureka/clank"+Sh);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}}Oh(function(a){a?(window.chrome=window.chrome||{},window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=a,Th("chrome-extension://"+a+Sh)):(a=window.__onGCastApiAvailable)&&"function"==typeof a&&a(!1,
"No cast extension found")})}};var Wh=function(a){Xh();Yh.push(a);Zh(Yh)};var $h=function(a){var b=t("yt.mdx.remote.debug.handlers_");ob(b||[],a)};var ai=function(a,b){Xh();var c=Yh,d=bi(a,String(b));kb(c)?ci(d):(Zh(c),F(c,function(a){a(d)}))};var Xh=function(){Yh||(Yh=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Yh,void 0))};var ci=function(a){var b=(di+1)%50;di=b;ei[b]=a;fi||(fi=49==b)};
var Zh=function(a){var b=ei;if(b[0]){var c=di,d=fi?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);ei=Array(50);di=-1;fi=!1}};var bi=function(a,b){var c=(K()-gi)/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 hi=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.j=a.uuid||a.dialId||""};
var ii=function(a,b){return!!b&&(a.id==b||a.j==b)};var ji=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.j==b.j:!0};var ki=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.j}};var li=function(a){return new hi(a)};var mi=function(a){return da(a)?P(a,li):[]};var ni=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.j?".."+a.j.slice(-6):"-")+"}":"null"};
var oi=function(a){return da(a)?"["+P(a,ni).join(",")+"]":"null"};var pi=function(a,b,c){a&&(a.dataset?a.dataset[qi(b)]=c:a.setAttribute("data-"+b,c))};var qi=function(a){return ri[a]||(ri[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var si=function(){G.call(this);this.C=1;this.A=[];this.B=0;this.j=[];this.o={}};var ti=function(a){ui(vi,arguments)};var wi=function(a,b){return a in vi?vi[a]:b};var xi=function(a,b){ha(a)&&(a=yi(a));return window.setTimeout(a,b)};
var zi=function(a,b){ha(a)&&(a=yi(a));return window.setInterval(a,b)};var Ai=function(a){window.clearTimeout(a)};var Bi=function(a){window.clearInterval(a)};var yi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Ci(b),b;}}:a};var Ci=function(a,b){var c=t("yt.www.errors.log");c?c(a,b):(c=wi("ERRORS")||[],c.push([a,b]),ti("ERRORS",c))};var Di=function(a){ui(Ei,arguments)};
var Q=function(a,b,c){var d=b||{};if(a=a in Ei?Ei[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a};var ui=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 Fi=function(a,b,c){var d=Gi();if(d){var e=d.subscribe(a,function(){if(!Hi||Hi!=e){var d=arguments,k=function(){Ii[e]&&b.apply(c||window,d)};try{Ji[a]?k():xi(k,0)}catch(l){Ci(l)}}},c);Ii[e]=!0;Ki[a]||(Ki[a]=[]);Ki[a].push(e);return e}return 0};
var Li=function(a){var b=Gi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Ii[a]}))};var Mi=function(a,b){var c=Gi();c&&c.publish.apply(c,arguments)};var Ni=function(a,b){Ji[a]=!0;var c=Gi();c&&c.publish.apply(c,arguments);Ji[a]=!1};var Gi=function(){return t("yt.pubsub.instance_")};var Oi=function(){};var Pi=function(){};var Qi=function(a){this.j=a};
var Ri=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};var Si=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};var Ti=function(a){this.j=a};var Ui=function(a){this.j=a};var Vi=function(a){this.data=a};var Wi=function(a){return!n(a)||a instanceof Vi?a:new Vi(a)};var Xi=function(a){this.j=a};var Yi=function(a){var b=a.creation;a=a.expiration;return!!a&&a<K()||!!b&&b>K()};var Zi=function(a){this.j=a};
var $i=function(a,b){var c=[];tg(b,function(a){var b;try{b=Zi.prototype.o.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}n(b)?Yi(b)&&c.push(a):c.push(a)},a);return c};var aj=function(a,b){var c=$i(a,b);F(c,function(a){Zi.prototype.remove.call(this,a)},a)};var bj=function(){var a=cj;aj(a,a.j.Rb(!0))};var dj=function(a,b,c){var d=c&&0<c?c:0;c=d?K()+1E3*d:0;if((d=d?cj:ej)&&window.JSON){x(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
var fj=function(a){if(!ej&&!cj||!window.JSON)return null;var b;try{b=ej.get(a)}catch(c){}if(!x(b))try{b=cj.get(a)}catch(c){}if(!x(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};var gj=function(a){ej&&ej.remove(a);cj&&cj.remove(a)};
var hj=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 ij=function(a,b){Be(a);Be(a);return Se(b,null)};
var jj=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=xa(k[0]||""),k=xa(k[1]||"");l in d?da(d[l])?tb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};var kj=function(a,b){var c=[];Ob(a,function(a,b){var f=wa(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+wa(a))})});return c.join(b)};var lj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return jj(a,"&")};var mj=function(a){a=a.split(",");return a=a.map(function(a){return lj(a)})};
var nj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),lj(1<a.length?a[1]:a[0])):{}};var oj=function(a,b){return pj(a,b||{},!0)};var pj=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=lj(e[1]||""),f;for(f in b)if(c||!Yb(e,f))e[f]=b[f];return Tg(a,e)+d};
var qj=function(a){var b;b||(b=window.location.href);var c=Hg(a)[1]||null,d=Kg(a);c&&d?(a=Hg(a),b=Hg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Kg(b)==d&&Lg(b)==Lg(a):!0;return a};var rj=function(){var a;a||(a=window.document.location.href);a=Hg(a)[1]||null;return null!==a&&"https"==a};var sj=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 tj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&yi(b)(m)}var m=uj&&uj();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=vj(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 vj=function(a,b){b=b||{};for(var c in wj){var d=wi(wj[c]),e;if((e=d)&&!(e=qj(a))){e=c;var f=wi("CORS_HEADER_WHITELIST")||{},k=Kg(a);e=k?(f=f[k])?E(f,e):!1:!0}e&&(b[c]=d)}return b};var xj=function(a,b){b.method="POST";b.Ab||(b.Ab={});yj(a,b)};
var zj=function(a,b){var c=wi("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.aJ&&(!Kg(a)||b.withCredentials||Kg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ab&&b.Ab[c])};
var yj=function(a,b){var c=b.format||"JSON";b.eJ&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=wi("XSRF_FIELD_NAME"),e=wi("XSRF_TOKEN"),f=b.Cd;f&&(f[d]&&delete f[d],a=oj(a,f));var k=b.postBody||"",f=b.Ab;zj(a,b)&&(f||(f={}),f[d]=e);f&&x(k)&&(d=lj(k),gc(d,f),k=Rg(d));var l=!1,m,p=tj(a,function(a){if(!l){l=!0;m&&Ai(m);var d=sj(a),e=null;if(d||400<=a.status&&500>a.status)e=Aj(c,a,b.lv);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.jb&&b.jb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Wb&&b.Wb.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);b.Ud&&0<b.timeout&&(m=xi(function(){l||(l=!0,p.abort(),Ai(m),b.Ud.call(b.context||r,p))},b.timeout));return p};
var Aj=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=be(a));break;case "XML":if(b=(b=b.responseXML)?Bj(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=Cj(a)})}c&&Dj(d);return d};var Dj=function(a){if(ia(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=ij(Ce("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Dj(a[b])};
var Bj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};var Cj=function(a){var b="";F(a.childNodes,function(a){b+=a.nodeValue});return b};var Ej=function(a){this.B=this.A="";this.j="/api/lounge";this.o=!0;a=a||window.document.location.href;var b=Lg(a)||"";b&&(this.B=":"+b);this.A=Kg(a)||"";a=oc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Sa(a,"10.0")&&(this.o=!1))};
var Fj=function(a,b,c,d){var e=a.j;if(n(d)?d:a.o)e="https://"+a.A+a.B+a.j;return Tg(e+b,c||{})};var Gj=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,jb:pa(a.D,d,!0),onError:pa(a.C,e),Ud:pa(a.F,e)};c&&(a.Ab=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return yj(b,a)};var Hj=function(a){this.j=this.name=this.id="";this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.j=a.activityId||"",this.status=a.status||"UNKNOWN")};
var Ij=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 Jj=function(a){return P(a,function(a){return{key:a.id,name:a.name}})};var Kj=function(a){return P(a,function(a){return new Hj(a)})};var Lj=function(a,b){return eb(a,function(a){return a.id==b})};var Mj=function(a,b){return eb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};var Nj=function(a,b){return eb(a,function(a){return ii(a,b)})};
var Oj=function(){G.call(this);this.P=new si;H(this,this.P)};var Pj=function(a){Oj.call(this);this.D=a;this.screens=[]};var Qj=function(a,b){var c=a.get(b.j)||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.j=b.j||c.j;return c.name!=d}a.screens.push(b);return!0};var Rj=function(a,b){var c=a.screens.length!=b.length;a.screens=Zd(a.screens,function(a){return!!Mj(b,a)});for(var d=0,e=b.length;d<e;d++)c=Qj(a,b[d])||c;return c};
var Sj=function(a,b){var c=a.screens.length;a.screens=Zd(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c};var Tj=function(a,b,c,d){Oj.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.j=null;this.za=window.NaN};var Uj=function(a,b){this.o=a;this.j=b+"::"};var Vj=function(a){var b=new Ri;return b.isAvailable()?a?new Uj(b,a):b:null};var Wj=function(a){this.j=new vg;if(a){a=Bg(a);for(var b=a.length,c=0;c<b;c++)Xj(this,a[c])}};
var Yj=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a};var Xj=function(a,b){a.j.set(Yj(b),b)};var Zj=function(a,b){var c=Ag(b);if(a.Za()>c)return!1;!(b instanceof Wj)&&5<c&&(b=new Wj(b));return Eg(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)||x(c)?E(c,a):Ub(c,a)})};
var ak=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Wj;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 Wj(Zd((a.capabilities||"").split(","),pa(Tb,bk))))};var ck=function(a){this.j=a};
var dk=function(a){a=(a.j.cookie||"").split(ek);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 fk=function(a,b,c){gk.set(""+a,b,c,"/","youtube.com")};var hk=function(){var a=ik(),b=jk();E(a,b);kk()&&Gb(a,b);a=lk(a);if(kb(a))try{a="remote_sid",gk.remove(""+a,"/","youtube.com")}catch(c){}else try{fk("remote_sid",a.join(","),-1)}catch(c){}};
var ik=function(){var a=fj("yt-remote-connected-devices")||[];Bb(a);return a};var lk=function(a){if(kb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return P(a,function(a,b){return 0==b?a:a.substring(c.length)})};var mk=function(a){dj("yt-remote-connected-devices",a,86400)};var jk=function(){if(nk)return nk;var a=fj("yt-remote-device-id");a||(a=Ij(),dj("yt-remote-device-id",a,31536E3));for(var b=ik(),c=1,d=a;E(b,d);)c++,d=a+"#"+c;return nk=d};var ok=function(){return fj("yt-remote-session-browser-channel")};
var kk=function(){return fj("yt-remote-session-screen-id")};var pk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=P(qk(),function(a){return a.loungeToken}),c=P(a,function(a){return a.loungeToken});Fg(c,function(a){return!E(b,a)})&&rk();dj("yt-remote-local-screens",a,31536E3)};var qk=function(){return fj("yt-remote-local-screens")||[]};var rk=function(){dj("yt-remote-lounge-token-expiration",!0,86400)};var sk=function(a){dj("yt-remote-online-screens",a,60)};
var tk=function(){return fj("yt-remote-online-dial-devices")||[]};var uk=function(a,b){dj("yt-remote-session-browser-channel",a);dj("yt-remote-session-screen-id",b);var c=ik(),d=jk();E(c,d)||c.push(d);mk(c);hk()};var vk=function(a){a||(gj("yt-remote-session-screen-id"),gj("yt-remote-session-video-id"));hk();a=ik();ob(a,jk());mk(a)};var wk=function(){if(!xk){var a=Vj();a&&(xk=new Ti(a))}return xk?!!xk.get("yt-remote-use-staging-server"):!1};
var yk=function(a){Pj.call(this,"LocalScreenService");this.o=a;this.j=window.NaN;zk(this);this.info("Initializing with "+oi(this.screens))};var Ak=function(a){if(a.screens.length){var b=P(a.screens,function(a){return a.id}),c=Fj(a.o,"/pairing/get_lounge_token_batch");Gj(a.o,c,{screen_ids:b.join(",")},A(a.Zv,a),A(a.Yv,a))}};var zk=function(a){var b=mi(qk()),b=Zd(b,function(a){return!a.j});return Rj(a,b)};var Bk=function(a,b){pk(P(a.screens,ki));b&&rk()};
var Ck=function(a,b){Oj.call(this);this.C=b;for(var c=fj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=E(c,l)}this.j=d;this.D=a;this.A=this.B=window.NaN;this.o=null;Dk("Initialized with "+de(this.j))};
var Ek=function(a,b,c){var d=Fj(a.D,"/pairing/get_screen_availability");Gj(a.D,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 Fk=function(a,b){var c;a:if(Sb(b)!=Sb(a.j))c=!1;else{c=Wb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break a}c=!0}c||(Dk("Updated online screens: "+de(a.j)),a.j=b,a.O("screenChange"));Gk(a)};
var Hk=function(a){(0,window.isNaN)(a.A)||Ai(a.A);a.A=xi(A(a.Bl,a),0<a.B&&a.B<K()?2E4:1E4)};var Dk=function(a){ai("OnlineScreenService",a)};var Ik=function(a){var b={};F(a.C(),function(a){a.token?b[a.token]=a.id:this.Ya("Requesting availability of screen w/o lounge token.")});return b};var Gk=function(a){var b=Wb(Pb(a.j,function(a){return a}));Bb(b);b.length?dj("yt-remote-online-screen-ids",b.join(","),60):gj("yt-remote-online-screen-ids");a=Zd(a.C(),function(a){return!!this.j[a.id]},a);sk(P(a,ki))};
var Jk=function(a){Pj.call(this,"ScreenService");this.C=a;this.j=this.o=null;this.A=[];this.B={};Kk(this)};var Lk=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.B[b]);var k=a.dc();if(k=(c?Nj(k,c):null)||Nj(k,b)){k.j=b;var l=Mk(a,k);Ek(a.j,l,function(a){e(a?l:null)})}else c?Nk(a,c,A(function(a){var f=Mk(this,new hi({name:d,screenId:c,loungeToken:a,dialId:b||""}));Ek(this.j,f,function(a){e(a?f:null)})},a),f):e(null)};
var Ok=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 Nk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Ab:{screen_ids:b},method:"POST",context:a,jb: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"))}};yj(Fj(a.C,"/pairing/get_lounge_token_batch"),e)};
var Pk=function(a){a.screens=a.o.dc();var b=a.B,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.j=c[e.id]||""}a.info("Updated manual screens: "+oi(a.screens))};var Kk=function(a){Qk(a);a.o=new yk(a.C);a.o.subscribe("screenChange",A(a.kw,a));Pk(a);a.A=mi(fj("yt-remote-automatic-screen-cache")||[]);Qk(a);a.info("Initializing automatic screens: "+oi(a.A));a.j=new Ck(a.C,A(a.dc,a,!0));a.j.subscribe("screenChange",A(function(){this.O("onlineScreenChange")},a))};
var Mk=function(a,b){var c=a.get(b.id);c?(c.j=b.j,b=c):((c=Nj(a.A,b.j))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),dj("yt-remote-automatic-screen-cache",P(a.A,ki)));Qk(a);a.B[b.j]=b.id;dj("yt-remote-device-id-map",a.B,31536E3);return b};var Qk=function(a){a.B=fj("yt-remote-device-id-map")||{}};var Rk=function(a,b,c){Oj.call(this);this.L=c;this.H=a;this.o=b;this.A=null};var Sk=function(a,b){ai(a.L,b)};
var Tk=function(a,b){Rk.call(this,a,b,"CastSession");this.j=null;this.C=0;this.B=null;this.F=A(this.wC,this);this.D=A(this.iB,this);this.C=xi(A(function(){Uk(this,null)},this),12E4)};var Vk=function(a){var b=a.B.videoId||a.B.videoIds[a.B.index];b&&Wk(a,"flingVideo",{videoId:b,currentTime:a.B.currentTime||0});a.B=null};
var Wk=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+de(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,w,A(function(){Sk(this,"Failed to send message: "+b+".")},a)):Sk(a,"Sending yt message without session: "+de(d))};var Uk=function(a,b){Ai(a.C);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=A(a.Fi,a),d=A(a.Xb,a);a.Qn(b,c,d,5)}}else a.Xb(Error("Waiting for session status timed out."))};
var Xk=function(a,b){Rk.call(this,a,b,"DialSession");this.C=this.G=null;this.J="";this.B=null;this.F=w;this.D=window.NaN;this.K=A(this.zC,this);this.j=w};var Yk=function(a){a.j=a.H.Tq(a.J,a.o.label,a.o.friendlyName,A(function(a){this.j=w;this.Fi(a)},a),A(function(a){this.j=w;this.Xb(a)},a))};var Zk=function(a){var b={};b.pairingCode=a.J;if(a.B){var c=a.B.index||0,d=a.B.currentTime||0;b.v=a.B.videoId||a.B.videoIds[c];b.t=d}wk()&&(b.env_useStageMdx=1);return Rg(b)};
var $k=function(a,b){Rk.call(this,a,b,"ManualSession");this.j=xi(A(this.Bf,this,null),150)};var al=function(a){Oj.call(this);this.o=a;this.j=null;this.C=!1;this.A=[];this.B=A(this.cA,this)};var bl=function(a,b){return b?eb(a.A,function(a){return ii(b,a.label)},a):null};var cl=function(a){ai("Controller",a)};var dl=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};var el=function(a){return a.C||!!a.A.length||!!a.j};
var fl=function(a,b,c){Mb(a.j);(a.j=b)?(c?a.O("yt-remote-cast2-receiver-resumed",b.o):a.O("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",A(a.Hp,a,b)),b.A?a.O("yt-remote-cast2-session-change",b.A):c&&a.j.Bf(null)):a.O("yt-remote-cast2-session-change",null)};
var gl=function(a){var b=a.o.Sq(),c=a.j&&a.j.o;a=P(b,function(a){c&&ii(a,c.label)&&(c=null);var b=a.j?a.j:a.id,f=bl(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 hl=function(a,b,c){il()?kl(b)&&(ll(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?ml(a,c):(window.__onGCastApiAvailable=function(b,e){b?ml(a,c):(nl("Failed to load cast API: "+e),ol(!1),ll(!1),gj("yt-remote-cast-available"),gj("yt-remote-cast-receiver"),pl(),c(!1))},Vh())):jl("Cannot initialize because not running Chrome")};var pl=function(){jl("dispose");var a=ql();a&&a.dispose();rl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);sl(!1);Li(tl);tl.length=0};
var ul=function(){return!!fj("yt-remote-cast-installed")};var vl=function(){var a=fj("yt-remote-cast-receiver");return a?Ga(a.friendlyName):null};var wl=function(){return ul()?ql()?rl.getCastSession():(nl("getCastSelector: Cast is not initialized."),null):(nl("getCastSelector: Cast API is not installed!"),null)};
var xl=function(){ul()?ql()?yl()?(jl("Requesting cast selector."),rl.requestSession()):(jl("Wait for cast API to be ready to request the session."),tl.push(Fi("yt-remote-cast2-api-ready",xl))):nl("requestCastSelector: Cast is not initialized."):nl("requestCastSelector: Cast API is not installed!")};var zl=function(a){yl()?ql().setLaunchParams(a):nl("setLaunchParams called before ready.")};var Al=function(){var a=Cl();yl()?ql().setConnectedScreenStatus(a,"YouTube TV"):nl("setConnectedScreenStatus called before ready.")};
var il=function(){var a;a=0<=oc.search(/\ (CrMo|Chrome|CriOS)\//);return Dl||a};var El=function(a,b){rl.init(a,b)};
var kl=function(a){var b=!1;if(!rl){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new al(a),c.subscribe("yt-remote-cast2-availability-change",function(a){dj("yt-remote-cast-available",a);Mi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){jl("onReceiverSelected: "+a.friendlyName);dj("yt-remote-cast-receiver",a);Mi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){jl("onReceiverResumed: "+a.friendlyName);
dj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){jl("onSessionChange: "+ni(a));a||gj("yt-remote-cast-receiver");Mi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);rl=c}jl("cloudview.createSingleton_: "+b);return b};var ql=function(){rl||(rl=t("yt.mdx.remote.cloudview.instance_"));return rl};
var ml=function(a,b){ol(!0);ll(!1);El(a,function(a){a?(sl(!0),Mi("yt-remote-cast2-api-ready")):(nl("Failed to initialize cast API."),ol(!1),gj("yt-remote-cast-available"),gj("yt-remote-cast-receiver"),pl());b(a)})};var jl=function(a){ai("cloudview",a)};var nl=function(a){ai("cloudview",a)};var ol=function(a){jl("setCastInstalled_ "+a);dj("yt-remote-cast-installed",a)};var yl=function(){return!!t("yt.mdx.remote.cloudview.apiReady_")};
var sl=function(a){jl("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)};var ll=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)};var Fl=function(a,b){this.action=a;this.params=b||null};
var Gl=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 Hl||(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.j=a.pageX;this.o=a.pageY}};
var Il=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.j=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.o=a.clientY+b}};var Jl=function(a,b,c,d){return Zb(Kl,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
var Ll=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Jl(a,b,c,d);if(e)return e;var e=++Ml.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Gl(d);if(!Ff(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Gl(b);b.currentTarget=a;return c.call(a,b)};k=yi(k);Kl[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 Nl=function(a,b,c){var d;return d=Ll(a,b,function(){Ol(d);c.apply(a,arguments)},void 0)};var Pl=function(a,b){return Ql(a,b,function(a){return Wd(a,"iv-card-poll-choice-input")})};
var Ql=function(a,b,c){var d=a||window.document;return Ll(d,"change",function(a){var f=Ff(a.target,function(a){return a===d||c(a)});f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})};var Ol=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Kl){var c=Kl[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 Kl[a]}}))};var Rl=function(a){for(var b in Kl)Kl[b][0]==a&&Ol(b)};
var Sl=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};var Tl=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:Sl(a)};var Ul=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 Vl=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 ne(b,c)};var Wl=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};var Xl=function(a){a=a||window.event;return!1===a.returnValue||a.Ao&&a.Ao()};
var Yl=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};var Zl=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 $l=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 am=function(a){ai("CAST",a)};var bm=function(a){var b=cm();b&&b.logMessage&&b.logMessage(a)};var dm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;em.length;)em.shift()()};
var fm=function(){if(!t("yt.mdx.remote.castv2_")&&!gm&&(kb(hm)&&tb(hm,tk()),$l())){var a=cm();a?(a.removeReceiverListener("YouTube",im),a.addReceiverListener("YouTube",im),am("API initialized in the other binary")):(a=new window.cast.Api,jm(a),a.addReceiverListener("YouTube",im),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){xi(function(){window.location.reload(!0)},1E3)}),Wh(bm),am("API initialized"));gm=!0}};
var km=function(){var a=cm();a&&(am("API disposed"),$h(bm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(w),a.removeReceiverListener("YouTube",im),jm(null));gm=!1;em=null;(a=Jl(window,"message",dm,!1))&&Ol(a)};var lm=function(a){var b=fb(hm,function(b){return b.id==a.id});0<=b&&(hm[b]={id:a.id,name:a.name,activityId:a.j,status:a.status})};
var im=function(a){a.length&&am("Updating receivers: "+de(a));mm(a);Mi("yt-remote-cast-device-list-update");F(nm(),function(a){om(a.id)});F(a,function(a){if(a.isTabProjected){var c=pm(a.id);am("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");xi(function(){Mi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})};
var qm=function(a,b){am("Updating "+a+" activity status: "+de(b));var c=pm(a);c?(b.activityId&&(c.j=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.j=""),lm(c),Mi("yt-remote-cast-device-status-update",c)):am("Device not found")};var nm=function(){fm();return Kj(hm)};
var mm=function(a){a=P(a,function(a){var c={id:a.id,name:Ga(a.name)};if(a=pm(a.id))c.activityId=a.j,c.status=a.status;return c});lb(hm);tb(hm,a)};var pm=function(a){var b=nm();return eb(b,function(b){return b.id==a})||null};var om=function(a){var b=pm(a),c=cm();c&&b&&b.j&&c.getActivityStatus(b.j,function(b){"error"==b.status&&(b.status="stopped");qm(a,b)})};var rm=function(a){fm();var b=pm(a),c=cm();c&&b&&b.j?(am("Stopping cast activity"),c.stopActivity(b.j,pa(qm,a))):am("Dropping cast activity stop")};
var cm=function(){return t("yt.mdx.remote.castapi.api_")};var jm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)};var sm=function(){};var tm=function(){this.j=K()};var um=function(a,b){this.o=new ee(a);this.j=b?be:ae};var vm=function(a){this.o=0;this.A=a||100;this.j=[]};var wm=function(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.A?b:(a.o+Number(b))%a.A};var xm=function(a,b,c){G.call(this);this.B=null!=c?A(a,c):a;this.A=b;this.o=A(this.CA,this);this.j=[]};
var ym=function(a){a.za=Rd(a.o,a.A);a.B.apply(null,a.j)};var zm=function(a){G.call(this);this.B=a;this.o={}};var Am=function(a,b,c,d,e){Bm(a,b,c,d,!1,e)};var Bm=function(a,b,c,d,e,f){da(c)||(c&&(Cm[0]=c.toString()),c=Cm);for(var k=0;k<c.length;k++){var l=Nc(b,c[k],d||a.handleEvent,e||!1,f||a.B||a);if(!l)break;a.o[l.key]=l}return a};var Dm=function(a,b,c,d){Em(a,b,c,d,void 0)};var Fm=function(a,b,c,d,e){Em(a,b,c,d,!1,e)};
var Em=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Em(a,b,c[k],d,e,f);else(b=Xc(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)};
var Gm=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 Hm=function(){};
var Im=function(a){var b;(b=a.j)||(b={},Jm(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var Km=function(){};var Lm=function(a){return(a=Jm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
var Jm=function(a){if(!a.o&&"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.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o};
var Mm=function(a,b,c,d,e){this.j=a;this.A=c;this.G=d;this.F=e||1;this.C=45E3;this.B=new zm(this);this.o=new Pd;Qd(this.o,250)};var Nm=function(a,b,c){a.mf=1;a.Ld=oh(b.clone());a.Ke=c;a.D=!0;Om(a,null)};var Pm=function(a,b,c,d,e){a.mf=1;a.Ld=oh(b.clone());a.Ke=null;a.D=c;e&&(a.kq=!1);Om(a,d)};
var Om=function(a,b){a.Sg=K();Qm(a);a.Yd=a.Ld.clone();mh(a.Yd,"t",a.F);a.eh=0;a.tb=a.j.ek(a.j.Yg()?b:null);0<a.Dk&&(a.Ji=new xm(A(a.Kq,a,a.tb),a.Dk));a.B.R(a.tb,"readystatechange",a.wB);var c=a.De?ec(a.De):{};a.Ke?(a.dj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.tb.send(a.Yd,a.dj,a.Ke,c)):(a.dj="GET",a.kq&&!wc&&(c.Connection="close"),a.tb.send(a.Yd,a.dj,null,c));a.j.Fc(1)};
var Rm=function(a,b,c){for(var d=!0;!a.te&&a.eh<c.length;){var e=Sm(a,c);if(e==Tm){4==b&&(a.Ee=4,Um(),d=!1);break}else if(e==Vm){a.Ee=4;Um();d=!1;break}else Wm(a,e)}4==b&&0==c.length&&(a.Ee=1,Um(),d=!1);a.Ic=a.Ic&&d;d||(Xm(a),Ym(a))};var Sm=function(a,b){var c=a.eh,d=b.indexOf("\n",c);if(-1==d)return Tm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Vm;d+=1;if(d+c>b.length)return Tm;var e=b.substr(d,c);a.eh=d+c;return e};
var Zm=function(a,b){a.Sg=K();Qm(a);var c=b?window.location.hostname:"";a.Yd=a.Ld.clone();lh(a.Yd,"DOMAIN",c);lh(a.Yd,"t",a.F);try{a.Kc=new window.ActiveXObject("htmlfile")}catch(p){Xm(a);a.Ee=7;Um();Ym(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 $m)k=$m[k];else if(k in an)k=$m[k]=an[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=$m[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=ij(Ce("b/12014412"),d);a.Kc.open();a.Kc.write(Qe(c));a.Kc.close();a.Kc.parentWindow.m=A(a.LA,a);a.Kc.parentWindow.d=A(a.Np,a,!0);a.Kc.parentWindow.rpcClose=A(a.Np,a,!1);c=a.Kc.createElement("DIV");a.Kc.parentWindow.document.body.appendChild(c);d=Je(a.Yd.toString());d=ya(Ie(d));d=ij(Ce("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Qe(d);a.j.Fc(1)};
var Qm=function(a){a.am=K()+a.C;bn(a,a.C)};var bn=function(a,b){if(null!=a.Tf)throw Error("WatchDog timer not null");a.Tf=cn(A(a.bB,a),b)};var dn=function(a){a.Tf&&(r.clearTimeout(a.Tf),a.Tf=null)};var Ym=function(a){a.j.Un()||a.te||a.j.Ei(a)};var Xm=function(a){dn(a);Mb(a.Ji);a.Ji=null;a.o.stop();a.B.removeAll();if(a.tb){var b=a.tb;a.tb=null;en(b);b.dispose()}a.Kc&&(a.Kc=null)};var Wm=function(a,b){try{a.j.Dp(a,b),a.j.Fc(4)}catch(c){}};
var fn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;gn(a,b,function(e){e?c(!0):r.setTimeout(function(){fn(a,b,c,d,f)},f)})}};var gn=function(a,b,c){var d=new window.Image;d.onload=function(){try{hn(d),c(!0)}catch(a){}};d.onerror=function(){try{hn(d),c(!1)}catch(a){}};d.onabort=function(){try{hn(d),c(!1)}catch(a){}};d.ontimeout=function(){try{hn(d),c(!1)}catch(a){}};r.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a};
var hn=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};var jn=function(a){this.j=a;this.o=new um(null,!0)};var kn=function(a){var b=ln(a.j,a.kg,"/mail/images/cleardot.gif");oh(b);fn(b.toString(),5E3,A(a.$u,a),3,2E3);a.Fc(1)};
var mn=function(a){var b=a.j.H;if(null!=b)Um(),b?(Um(),nn(a.j,a,!1)):(Um(),nn(a.j,a,!0));else if(a.Yb=new Mm(a,0,void 0,void 0,void 0),a.Yb.De=a.Ak,b=a.j,b=ln(b,b.Yg()?a.Ag:null,a.Ck),Um(),!vc||10<=Xf)mh(b,"TYPE","xmlhttp"),Pm(a.Yb,b,!1,a.Ag,!1);else{mh(b,"TYPE","html");var c=a.Yb;a=Boolean(a.Ag);c.mf=3;c.Ld=oh(b.clone());Zm(c,a)}};
var on=function(a){J.call(this);this.headers=new vg;this.L=a||null;this.A=!1;this.K=this.j=null;this.T=this.G="";this.o=0;this.D="";this.B=this.N=this.F=this.P=!1;this.C=0;this.H=null;this.W="";this.J=this.U=!1};var pn=function(a,b){a.C=Math.max(0,b)};var qn=function(a){return vc&&yc(9)&&fa(a.timeout)&&n(a.ontimeout)};var rn=function(a){return"content-type"==a.toLowerCase()};var sn=function(a,b){a.A=!1;a.j&&(a.B=!0,a.j.abort(),a.B=!1);a.D=b;a.o=5;tn(a);un(a)};
var tn=function(a){a.P||(a.P=!0,a.Z("complete"),a.Z("error"))};var en=function(a,b){a.j&&a.A&&(vn(a,"Aborting"),a.A=!1,a.B=!0,a.j.abort(),a.B=!1,a.o=b||7,a.Z("complete"),a.Z("abort"),un(a))};
var wn=function(a){if(a.A&&"undefined"!=typeof xn)if(a.K[1]&&4==yn(a)&&2==a.getStatus())vn(a,"Local request error detected and ignored");else if(a.F&&4==yn(a))Rd(a.zp,0,a);else if(a.Z("readystatechange"),4==yn(a)){vn(a,"Request complete");a.A=!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=Hg(String(a.G))[1]||null;if(!f&&r.self&&r.self.location)var k=r.self.location.protocol,
f=k.substr(0,k.length-1);e=!zn.test(f?f.toLowerCase():"")}d=e}if(d)a.Z("complete"),a.Z("success");else{a.o=6;var l;try{l=2<yn(a)?a.j.statusText:""}catch(m){l=""}a.D=l+" ["+a.getStatus()+"]";tn(a)}}finally{un(a)}}};var un=function(a,b){if(a.j){An(a);var c=a.j,d=a.K[0]?w:null;a.j=null;a.K=null;b||a.Z("ready");try{c.onreadystatechange=d}catch(e){}}};var An=function(a){a.j&&a.J&&(a.j.ontimeout=null);fa(a.H)&&(Sd(a.H),a.H=null)};var yn=function(a){return a.j?a.j.readyState:0};
var Bn=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};var vn=function(a,b){return b+" ["+a.T+" "+a.G+" "+a.getStatus()+"]"};var Cn=function(a,b,c){this.F=a||null;this.j=1;this.o=[];this.B=[];this.C=new um(null,!0);this.G=b||null;this.H=null!=c?c:null};var Dn=function(a,b){this.j=a;this.map=b;this.context=null};var En=function(a){jc.call(this,"statevent",a)};var Fn=function(a,b){jc.call(this,"timingevent",a);this.size=b};var Gn=function(a){jc.call(this,"serverreachability",a)};
var Hn=function(a){In(a);if(3==a.j){var b=a.Kg++,c=a.Zh.clone();lh(c,"SID",a.A);lh(c,"RID",b);lh(c,"TYPE","terminate");Jn(a,c);b=new Mm(a,0,a.A,b,void 0);b.mf=2;b.Ld=oh(c.clone());(new window.Image).src=b.Ld;b.Sg=K();Qm(b)}Kn(a)};var In=function(a){if(a.Hd){var b=a.Hd;b.Yb&&(b.Yb.cancel(),b.Yb=null);b.od=-1;a.Hd=null}a.kb&&(a.kb.cancel(),a.kb=null);a.hd&&(r.clearTimeout(a.hd),a.hd=null);Ln(a);a.Ob&&(a.Ob.cancel(),a.Ob=null);a.Id&&(r.clearTimeout(a.Id),a.Id=null)};
var Mn=function(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Dn(a.Cx++,b));2!=a.j&&3!=a.j||Nn(a)};var Nn=function(a){a.Ob||a.Id||(a.Id=cn(A(a.Kp,a),0),a.vg=0)};var On=function(a,b){if(1==a.j){if(!b){a.Kg=Math.floor(1E5*Math.random());var c=a.Kg++,d=new Mm(a,0,"",c,void 0);d.De=null;var e=Pn(a),f=a.Zh.clone();lh(f,"RID",c);a.F&&lh(f,"CVER",a.F);Jn(a,f);Nm(d,f,e);a.Ob=d;a.j=2}}else 3==a.j&&(b?Qn(a,b):0!=a.o.length&&(a.Ob||Qn(a)))};
var Qn=function(a,b){var c,d;b?6<a.ve?(a.o=a.B.concat(a.o),a.B.length=0,c=a.Kg-1,d=Pn(a)):(c=b.G,d=b.Ke):(c=a.Kg++,d=Pn(a));var e=a.Zh.clone();lh(e,"SID",a.A);lh(e,"RID",c);lh(e,"AID",a.Af);Jn(a,e);c=new Mm(a,0,a.A,c,a.vg+1);c.De=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Ob=c;Nm(c,e,d)};var Jn=function(a,b){if(a.Fb){var c=a.Fb.Ln(a);c&&Ob(c,function(a,c){lh(b,c,a)})}};
var Pn=function(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.ve&&0<b?(d=a.o[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.o[e].j,k=a.o[e].map,f=6>=a.ve?e:f-d;try{Dg(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.B=a.B.concat(a.o.splice(0,b));return c.join("&")};var Rn=function(a){a.kb||a.hd||(a.D=1,a.hd=cn(A(a.Jp,a),0),a.af=0)};
var Sn=function(a){if(a.kb||a.hd||3<=a.af)return!1;a.D++;a.hd=cn(A(a.Jp,a),Tn(a,a.af));a.af++;return!0};var nn=function(a,b,c){a.cj=c;a.Dc=b.od;a.yv(1,0);a.Zh=ln(a,null,a.zk);Nn(a)};var Ln=function(a){null!=a.ye&&(r.clearTimeout(a.ye),a.ye=null)};var Tn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
var Un=function(a,b){if(2==b||9==b){var c=null;a.Fb&&(c=null);var d=A(a.WB,a);c||(c=new O("//www.google.com/images/cleardot.gif"),oh(c));gn(c.toString(),1E4,d)}else Um();Vn(a,b)};var Vn=function(a,b){a.j=0;a.Fb&&a.Fb.wn(a,b);Kn(a);In(a)};var Kn=function(a){a.j=0;a.Dc=-1;if(a.Fb)if(0==a.B.length&&0==a.o.length)a.Fb.Yj(a);else{var b=sb(a.B),c=sb(a.o);a.B.length=0;a.o.length=0;a.Fb.Yj(a,b,c)}};
var ln=function(a,b,c){var d=ph(c);if(""!=d.o)b&&ah(d,b+"."+d.o),bh(d,d.C);else var e=window.location,d=qh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.tg&&Ob(a.tg,function(a,b){lh(d,b,a)});lh(d,"VER",a.ve);Jn(a,d);return d};var cn=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){a()},b)};var Um=function(){Wn.Z(new En(Wn))};var Xn=function(){};
var Yn=function(a,b){Pd.call(this);this.C=0;if(ha(a))b&&(a=A(a,b));else if(a&&ha(a.handleEvent))a=A(a.handleEvent,a);else throw Error("Invalid listener argument");this.F=a;Nc(this,"tick",A(this.D,this));this.stop();Qd(this,5E3+2E4*Math.random())};var Zn=function(a,b){this.K=a;this.B=b;this.A=new si;this.o=new Yn(this.qC,this);this.j=null;this.J=!1;this.D=null;this.H="";this.G=this.C=0;this.F=[]};var $n=function(a){return{firstTestResults:[""],secondTestResults:!a.j.cj,sessionId:a.j.A,arrayId:a.j.Af}};
var ao=function(a,b){a.G=b||0;a.o.stop();a.j&&(3==a.j.j&&On(a.j),Hn(a.j));a.G=0};var bo=function(a,b){(a.B.loungeIdToken=b)||a.o.stop()};var co=function(){this.j=[];this.o=[]};var eo=function(a){kb(a.j)&&(a.j=a.o,a.j.reverse(),a.o=[])};var fo=function(a,b){a.o.push(b)};var go=function(a){eo(a);return a.j.pop()};var ho=function(a){eo(a);return db(a.j)};
var io=function(a){this.videoIds=null;this.index=-1;this.videoId=this.o="";this.volume=this.j=-1;this.muted=!1;this.audioTrackId=null;this.C=this.B=0;this.A=null;this.reset(a)};var jo=function(a,b){if(a.o)throw Error(b+" is not allowed in V3.");};var ko=function(a){a.volume=-1;a.muted=!1;a.audioTrackId=null;a.A=null;a.j=-1;a.B=0;a.C=K()};var lo=function(a){a.index=-1;a.videoId="";ko(a)};var mo=function(a){return a.o?a.videoId:a.videoIds[a.index]};var no=function(a,b){a.B=b;a.C=K()};
var oo=function(a){switch(a.j){case 1:return(K()-a.C)/1E3+a.B;case -1E3:return 0}return a.B};var po=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&ko(a)};var qo=function(a,b,c){jo(a,"setPlaylist");c=c||mo(a);Eb(a.videoIds,b)&&c==mo(a)||(a.videoIds=sb(b),a.setVideoId(c))};
var ro=function(a){var b={};b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.j;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=fc(a.A);b.playerTime=a.B;b.playerTimeAt=a.C;return b};
var so=function(a,b){Oj.call(this);this.o=0;this.B=a;this.F=[];this.D=new co;this.C=window.NaN;this.A=this.j=null;this.J=A(this.ly,this);this.G=A(this.Lg,this);this.H=A(this.ky,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.lm,this),to(this))):c=3;0!=c&&(b?this.lm(c):xi(A(function(){this.lm(c)},this),0));uo(this,wl())};var vo=function(a){return new io(a.B.getPlayerContextData())};
var wo=function(a,b,c,d,e){var f=vo(a);d=d||0;var k={videoId:b,currentIndex:d,listId:e||f.o};po(f,b,d);n(c)&&(no(f,c),k.currentTime=c);xo(a,"setPlaylist",k);e||yo(a,f)};var to=function(a){F(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.B.subscribe(a,pa(this.Wz,a),this))},a)};var zo=function(a){F(a.F,function(a){this.B.unsubscribeByKey(a)},a);a.F.length=0};var Ao=function(a,b){50>a.D.Za()&&fo(a.D,b)};var Bo=function(a,b,c){var d=vo(a);no(d,c);-1E3!=d.j&&(d.j=b);yo(a,d)};
var xo=function(a,b,c){a.B.sendMessage(b,c)};var yo=function(a,b){zo(a);a.B.setPlayerContextData(ro(b));to(a)};var Co=function(a){Ai(a.C);a.C=xi(A(function(){this.O("remotePlayerChange");this.C=window.NaN},a),2E3)};var uo=function(a,b){a.A&&(a.A.removeUpdateListener(a.J),a.A.removeMediaListener(a.G),a.Lg(null));a.A=b;a.A&&(Do("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.J),a.A.addMediaListener(a.G),a.A.media.length&&a.Lg(a.A.media[0]))};
var Eo=function(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=vo(a);c.contentId!=d.videoId&&Do("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.j=b.playerState;no(d,a.j.getEstimatedTime());yo(a,d)}else Do("No cast media video. Ignoring state update.")};var Do=function(a){ai("CP",a)};
var Fo=function(a,b,c){Oj.call(this);this.C=window.NaN;this.L=!1;this.G=this.F=this.K=this.H=window.NaN;this.N=[];this.A=this.sa=this.j=null;this.da=a;this.N.push(Ll(window,"beforeunload",A(this.Sv,this)));this.o=[];this.sa=new io;3==c["mdx-version"]&&(this.sa.o="RQ"+b.token);this.U=b.id;this.j=Go(this,c);this.j.subscribe("handlerOpened",this.ry,this);this.j.subscribe("handlerClosed",this.my,this);this.j.subscribe("handlerError",this.ny,this);this.sa.o?this.j.subscribe("handlerMessage",this.oy,this):
this.j.subscribe("handlerMessage",this.qy,this);bo(this.j,b.token);this.subscribe("remoteQueueChange",function(){var a=this.sa.videoId;kk()&&dj("yt-remote-session-video-id",a)},this)};var Go=function(a,b){return new Zn(Fj(a.da,"/bc",void 0,!1),b)};var Ho=function(a,b){a.O("proxyStateChange",b)};var Io=function(a){a.C=xi(A(function(){this.ab("Connecting timeout");this.B(1)},a),2E4)};var Jo=function(a){Ai(a.C);a.C=window.NaN};var Ko=function(a){Ai(a.H);a.H=window.NaN};
var Lo=function(a){Mo(a);a.K=xi(A(function(){No(this,"getNowPlaying")},a),2E4)};var Mo=function(a){Ai(a.K);a.K=window.NaN};var Oo=function(a){var b=a.j;return!!b.j&&3==b.j.j&&(0,window.isNaN)(a.C)};var Po=function(a,b){b&&(Jo(a),Ko(a));b==Oo(a)?b&&(Ho(a,1),No(a,"getSubtitlesTrack")):b?(a.J()&&a.sa.reset(),Ho(a,1),No(a,"getNowPlaying"),Qo(a)):a.B(1)};var Ro=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.sa.videoId&&(ac(b.params)?a.sa.A=null:a.sa.A=b.params,a.O("remotePlayerChange"))};
var So=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.sa.o=b.params.listId||a.sa.o;po(a.sa,c,d);a.O("remoteQueueChange")};var Wo=function(a,b){b.params=b.params||{};So(a,b);Xo(a,b)};var Xo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);no(a.sa,(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.sa.j&&(c=-1E3);a.sa.j=c;1==a.sa.j?Lo(a):Mo(a);a.O("remotePlayerChange")};
var Yo=function(a,b){var c="true"==b.params.muted;a.sa.volume=(0,window.parseInt)(b.params.volume,10);a.sa.muted=c;a.O("remotePlayerChange")};
var Zo=function(a,b){switch(b.action){case "loungeStatus":var c=ae(b.params.devices);a.o=P(c,function(a){return new ak(a)});break;case "loungeScreenDisconnected":qb(a.o,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new ak(ae(b.params.device));eb(a.o,function(a){return a.equals(d)})||nb(a.o,d);break;case "remoteDisconnected":d=new ak(ae(b.params.device)),qb(a.o,function(a){return a.equals(d)})}};
var $o=function(a,b){var c=!1;if("loungeStatus"==b.action)c=!!eb(a.o,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.H))if(c)Ko(a);else return;c==Oo(a)?c&&Ho(a,1):c?(Jo(a),a.J()&&a.sa.reset(),Ho(a,1),No(a,"getNowPlaying"),Qo(a)):a.B(1)};var Qo=function(a){Ai(a.G);a.G=xi(A(a.B,a,1),864E5)};
var No=function(a,b,c){c?a.ab("Sending: action="+b+", params="+de(c)):a.ab("Sending: action="+b);a.j.sendMessage(b,c)};var ap=function(a,b){var c=bp(a);return Zd(b,function(a){return a.j?(a=Lj(this.A,a.j),!!a&&"RUNNING"==a.status):!!Mj(c,a)},a)};
var cp=function(a,b,c){var d=dp,e="";Ai(d.o);d.o=window.NaN;d.B="";if(Lj(d.A,a)){if(!e){var f=e=Ij();fm();var k=pm(a),l=cm();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",
lm(k),Mi("yt-remote-cast-device-status-update",k));am("Sending a cast launch request with params: "+m.parameters);l.launch(m,pa(qm,a))}else am("No cast API or no cast device. Dropping cast launch.")}d.B=e;d.o=xi(A(d.H,d,a,0,e),ep[0])}else d.ab("No DIAL device with id: "+a)};var fp=function(a,b){var c=Nj(bp(a),b);a.ab("Found screen: "+ni(c)+" with key: "+b);return c};var gp=function(a){var b=dp,c=Nj(b.j,a);b.ab("Found online screen: "+ni(c)+" with key: "+a);return c};
var hp=function(a){var b=dp,c=Lj(b.A,a);if(!c){var d=Nj(b.D,a);d&&(c=Lj(b.A,d.j))}b.ab("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c};var bp=function(a){return rb(a.C,Zd(a.D,function(a){return!Mj(this.C,a)},a))};var ip=function(a){Pj.call(this,"ScreenServiceProxy");this.Kb=a;this.j=[];this.j.push(this.Kb.$_s("screenChange",A(this.uC,this)));this.j.push(this.Kb.$_s("onlineScreenChange",A(this.Lz,this)))};
var kp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);cj&&bj();hk();lp||(lp=new Ej,wk()&&(lp.j="/api/loungedev"));mp||(mp=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",mp,void 0));np();var b=op();if(!b){var c=new Jk(lp);q("yt.mdx.remote.screenService_",c,void 0);b=op();hl(a,c,function(a){a?Cl()&&Al():c.subscribe("onlineScreenChange",function(){Mi("yt-remote-receiver-availability-change")})})}};
var pp=function(){Li(qp);qp.length=0;Mb(rp);rp=null;mp&&(F(mp,function(a){a(null)}),mp.length=0,mp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));dp&&(Mb(dp),dp=null);lp=null;km()};var sp=function(){if(tp()&&ul()){var a=[];if(fj("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||up())a.push({key:"cast-selector-receiver",name:vp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return t("yt.mdx.remote.cloudview.initializing_")?[]:wp()};
var wp=function(){var a=[],a=xp()?op().Kb.$_gos():mi(fj("yt-remote-online-screens")||[]),b=yp();b&&up()&&(Mj(a,b)||a.push(b));xp()||(b=Kj(tk()),b=Zd(b,function(b){return!Nj(a,b.id)}),a=rb(a,b));return Jj(a)};var zp=function(){if(tp()&&ul()){var a=vl();return a?{key:"cast-selector-receiver",name:a}:null}return Ap()};var Ap=function(){var a=wp(),b=Bp(),c=yp();c||(c=Cp());return eb(a,function(a){return c&&ii(c,a.key)||b&&(a=hp(a.key))&&a.id==b?!0:!1})};
var vp=function(){if(tp()&&ul())return vl();var a=yp();return a?a.name:null};var yp=function(){var a=Cl();if(!a)return null;if(!dp){var b=op().dc();return Nj(b,a)}return fp(dp,a)};var Dp=function(a,b){Ep("Connecting to: "+de(a));if("cast-selector-receiver"==a.key)Fp(b||null),zl(b||null);else{Gp();Fp(b||null);var c=null;dp?c=gp(a.key):(c=op().dc(),c=Nj(c,a.key));if(c)Hp(c);else{if(dp&&(c=hp(a.key))){Ip(c);return}xi(function(){Jp(null)},0)}}};
var Gp=function(){if(dp){var a=dp;Ai(a.o);a.o=window.NaN;a.B=""}a:{if(a=up())if(a=a.getOtherConnectedRemoteId()){Ep("Do not stop DIAL due to "+a);Kp("");break a}(a=Bp())?(Ep("Stopping DIAL: "+a),rm(a),Kp("")):(a=yp())&&a.j&&(Ep("Stopping DIAL: "+a.j),rm(a.j))}yl()?ql().stopSession():nl("stopSession called before API ready.");(a=up())?a.disconnect(1):(Ni("yt-remote-before-disconnect",1),Ni("yt-remote-connection-change",!1));Jp(null)};
var Lp=function(){var a=Mp(),a=a?a.currentTime:0,b=Np();0==a&&b&&(a=oo(vo(b)));return a};var Np=function(){var a=up();return a&&3!=a.getProxyState()?new so(a,void 0):null};var Ep=function(a){ai("remote",a)};var tp=function(){return!!t("yt.mdx.remote.castv2_")};var xp=function(){return t("yt.mdx.remote.screenService_")};var op=function(){if(!rp){var a=xp();rp=a?new ip(a):null}return rp};var Cl=function(){return t("yt.mdx.remote.currentScreenId_")};
var Op=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(dp){var b=dp;b.G=K()+3E5;if(b.F=a){var c=fp(b,a);if(c&&!Mj(b.j,c)){a=sb(b.j);a.push(c);var c=ap(b,a),d=!Eb(b.j,c,ji);kb(a)||sk(P(c,ki));d&&(b.ab("Updating online screens: "+oi(b.j)+" -> "+oi(c)),b.j=c,b.O("onlineReceiverChange"))}}}};var Bp=function(){return t("yt.mdx.remote.currentDialId_")};var Kp=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)};var Mp=function(){return t("yt.mdx.remote.connectData_")};
var Fp=function(a){q("yt.mdx.remote.connectData_",a,void 0)};var up=function(){return t("yt.mdx.remote.connection_")};var Jp=function(a){var b=up();Fp(null);a?cb(!up()):(Op(""),Kp(""));q("yt.mdx.remote.connection_",a,void 0);mp&&(F(mp,function(b){b(a)}),mp.length=0);b&&!a?Ni("yt-remote-connection-change",!1):!b&&a&&Mi("yt-remote-connection-change",!0)};var Cp=function(){var a=kk();if(!a)return null;if(xp()){var b=op().dc();return Nj(b,a)}return dp?fp(dp,a):null};
var Hp=function(a){cb(!Cl());Op(a.id);a=new Fo(lp,a,Pp());a.connect(1,Mp());a.subscribe("beforeDisconnect",function(a){Ni("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){up()&&(up(),Jp(null))});Jp(a)};var Ip=function(a){Bp();Ep("Connecting to: "+(a?a.toString():"null"));Kp(a.id);var b=Mp();b?cp(a.id,b.videoIds[b.index],b.currentTime):cp(a.id)};
var np=function(){var a=Pp();if(ac(a)){var a=jk(),b=fj("yt-remote-session-name")||"",c=fj("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 Pp=function(){return t("yt.mdx.remote.channelParams_")||{}};var Qp=function(a,b){var c=(b?Rp:Sp).exec(a);return c?c[0]:""};
var Tp=function(a){var b=Up.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Vp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Ci(a,"WARNING"));return b||c};var Wp=function(a){a=new O(a);$g(a,window.document.location.protocol);ah(a,window.document.location.hostname);window.document.location.port&&bh(a,window.document.location.port);return a.toString()};
var Xp=function(a){a=new O(a);$g(a,window.document.location.protocol);return a.toString()};var Yp=function(a,b,c){a&&(c?a&&(a=N("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Ve(a).body.appendChild(a)):Zp(a,b))};var $p=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||Yp(a,void 0)}catch(b){Yp(a,void 0)}};
var Zp=function(a,b){var c=new window.Image,d=""+aq++;bq[d]=c;c.onload=c.onerror=function(){b&&bq[d]&&b();delete bq[d]};c.src=a};var cq=function(a,b){this.start=a;this.end=b;this.A=dq++};var eq=function(a,b){return a.start-b.start||a.end-b.end||a.A-b.A};
var fq=function(a,b,c){cq.call(this,a,b);a=c||{};this.H=a.id||"";this.D=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.j=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.B=null;this.tooltip=a.tooltip};var gq=function(a){return{start:a.start,end:a.end,id:a.H,priority:a.D,namespace:a.j,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}};
var hq=function(a){return a.B||(a.B=new si)};var iq=function(a,b){return a.start-b.start||a.D-b.D||a.A-b.A};var jq=function(a,b){Oj.call(this);this.G=this.ra="";this.Aa=b||"";this.fa=this.loaded=this.H=!1;this.U=this.F=null;this.j=a;if(this.Aa){var c=Vj("yt-html5-player-modules::"+this.Aa);c&&(this.U=new Ti(c))}};
var kq=function(a){var b=a.j,c=b.app;a=a.ra;var b=b.playerType,d=lq(c,b);if(d){for(var d=d.D,e=[],f=d.j.j,k=f.length-1;0<=k;k--){var l=f[k];if(l.j==a){var m=d.o.indexOf(l);0<=m&&d.o.splice(m,1);var m=d.j.j,p=xb(m,l,eq);0<=p&&pb(m,p);e.push(l)}}d.Jc();b&&c.getPresentingPlayerType()!=b||mq(c,"cuerangesremoved",e)}};var nq=function(a){a.j.Ri(a.ra)};var oq=function(a,b,c){var d={},e;for(e in b)d[a.ra+"_"+e]=b[e];b={};for(var f in c)b[a.ra+"_"+f]=c[f];a=a.j.app.B;qa(a.B,d||null);qa(a.A,b||null)};
var pq=function(a,b){if(!a.U)return null;var c;try{c=a.U.get(b)}catch(d){a.U&&a.U.remove(b)}return c};var qq=function(a,b,c){if(a.U)try{a.U.set(b,c)}catch(d){}};var rq=function(a){a.O("command_stop_redirect_controls")};var sq=function(a){a.O("command_play",!1,a.j.playerType)};var tq=function(a){G.call(this);this.oa={};this.ka={};this.element=uq(this,a)};
var uq=function(a,b){var c=0,d=kf(b[c++]);if(x(b[c])){var e=b[c++];if(e=vq(a,d,"className",e))wq(a,d,"className",e),a.oa[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.oa[e[f]]=d;wq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=uq(a,k),d.appendChild(e);else if(ia(k)){var e=a,f=d,l=void 0;for(l in k){var m=k[l];m&&wq(e,f,l,x(m)?vq(e,f,l,m):m)}}else x(k)&&(e=vq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d};
var vq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ka[d]=[b,c],null):d};var xq=function(a,b,c){(b=a.ka["{{"+b+"}}"])&&wq(a,b[0],b[1],c)};var yq=function(a){return da(a)&&x(a[0])};
var wq=function(a,b,c,d){if("child"==c){nf(b);if(!da(d)||yq(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?yq(f)?c.push(uq(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 zq=function(a,b){a&&(a.style.display=b)};
var Aq=function(a,b){var c=Dh("requestAnimationFrame",window);return xi(function(){c?c.call(window,a):a()},b||0)};var Bq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};var R=function(a){tq.call(this,a);this.A=!0;this.U=[]};var S=function(a,b,c,d,e){d=A(d,e||a);e={target:b,type:c,listener:d};a.U.push(e);b.addEventListener(c,d);return e};
var Cq=function(a){R.call(this,a);this.N=new Oj;H(this,this.N)};var Dq=function(a,b,c){Cq.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.o=a;this.H=b;this.J=!1};var Eq=function(){R.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 Fq=function(a,b){da(b)||(b=[b]);var c=P(b,function(a){return x(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});Gq(a,c.join(","))};var Gq=function(a,b){Lf(a,"transition",b)};var Hq=function(a,b){(a=x(a)?window.document.getElementById(a):a)&&a.style&&(kg(a,b),M(a,"hid",!b))};var Iq=function(a){return(a=x(a)?window.document.getElementById(a):a)?!("none"==a.style.display||Wd(a,"hid")):!1};var Jq=function(a){F(arguments,function(a){!ea(a)||a instanceof window.Element?Hq(a,!0):F(a,function(a){Jq(a)})})};
var Kq=function(a){F(arguments,function(a){!ea(a)||a instanceof window.Element?Hq(a,!1):F(a,function(a){Kq(a)})})};var Lq=function(a,b,c){G.call(this);this.A=a;c||(Mq(this,!0),a.ea());this.C=b;this.j=null;this.B=!1;this.o=new Td(this.Vl,0,this);H(this,this.o)};var Mq=function(a,b){var c=a.A.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};var Nq=function(a,b){R.call(this,b||["div","ytp-thumbnail-overlay"]);this.B=new Lq(this,500);H(this,this.B);this.o=a};
var Oq=function(a){Nq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])};var Pq=function(a,b){Dq.call(this,a,b,"subscribecard-endscreen");this.B=new Oq(a);H(this,this.B);this.B.j(a.ua());this.C=new Eq;H(this,this.C);this.ea()};
var Qq=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",Q("YTP_ADVERTISEMENT")]],["div","ad-container"]];R.call(this,b);this.o=a;this.B=this.D=this.C=null};var Rq=function(a){a.C||(a.C=a.oa["ad-container"],a.o.V().H&&L(a.C,"ad-container-single-media-element-annotations"));return a.C};var Sq=function(a){a.B&&(a.o.V().H?(Yd(a.B,"ad-video"),Tq(a.o.app,a.B),a.B=null):(pf(a.B),Uq(a.B)))};
var Vq=function(a){if(!a.D){if(a.o.V().useTabletControls){var b=kf("button");L(b,"video-click-tracking");mf(b,Q("YTP_VISIT_ADVERTISERS_SITE"));var c=kf("div");L(c,"video-click-tracking-container");c.appendChild(b);Rq(a).appendChild(c)}else b=kf("div"),Xd(b,["video-click-tracking","ad-video"]),Rq(a).appendChild(b);a.D=b}return a.D};var Wq=function(a,b){this.type=a||"";this.id=b||""};var Xq=function(a){return new Wq(a.substr(0,2),a.substr(2))};
var Yq=function(a){a=a.split("");Zq.Wp(a,72);Zq.vE(a,1);Zq.K6(a,32);Zq.vE(a,3);Zq.Wp(a,71);return a.join("")};var $q=function(a,b){return new xd(function(c,d){b.jb=function(a){sj(a)?c(a):d(a)};b.onError=d;yj(a,b)})};var ar=function(a){function b(e,f,k){return Dd(e,function(e){return 0>=f||403===e.status?Cd(e):c(k).then(function(){return b($q(a,d),f-1,Math.pow(2,4-f+1)*k)})})}function c(a){return new xd(function(b){(0,window.setTimeout)(b,a)})}var d={format:"RAW",method:"GET"};return b($q(a,d),3,1E3)};
var br=function(a){this.j=a||0};var cr=function(a,b,c,d,e,f,k,l){this.id=""+a;this.o=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.j=k||0;this.C=l||0;this.audio=c||null;this.video=d||null;this.Gb=e||null;this.A=f||null;this.B=dr[er(this)]||""};var er=function(a){return a.id.split(";",1)[0]};var fr=function(a){return!(a.audio&&a.video)};var gr=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
var hr=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};var ir=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
var jr=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<kr.length;b++){var m=kr[b],p=lr[m];if(f>=Math.floor(16*p/9)||a>=p){f=m;break a}}f="tiny"}this.quality=f;this.tB=lr[this.quality];this.j=!!k;this.fps=c||0;this.o=e||0;this.projectionType=d||0;if(!(c=l)){a:{for(c=0;c<mr.length;c++)if(this.fps>mr[c][1]){c=mr[c][0];break a}c=""}c=lr[this.quality]+"p"+c}this.qualityLabel=c};
var nr=function(a){this.A=a;this.C=this.B=this.D="";this.j={};this.o=""};var or=function(a){a.o||(a.o=pr(a));return a.o};var qr=function(a){rr(a);return a.C};var sr=function(a){rr(a);return Qb(a.j,function(a){return null!==a})};
var rr=function(a){if(a.A){if(!tr.test(a.A))throw Error("Untrusted URL: "+a.A);var b=ph(a.A);a.D=b.B;a.C=b.o+(null!=b.C?":"+b.C:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.B="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.B=c.substr(0,d),c=c.substr(d+1)):(a.B=c,c="")}d=a.j;a.j=ur(c);qa(a.j,vr(b.Sn()));qa(a.j,d);a.A="";a.o=""}};
var pr=function(a){rr(a);var b=a.D+(a.D?"://":"//")+a.C+a.B;if(sr(a)){var c=[];Ob(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b};var ur=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&wr(c,a[b],a[b+1]);return c};var vr=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?wr(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
var wr=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 xr=function(a,b){this.start=a;this.end=b;this.length=b-a+1};var yr=function(a){a=a.split("-");return 2==a.length&&(a=new xr((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 zr=function(a,b){return new xr(a,a+b-1)};var Ar=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 Br=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 Cr=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 Dr=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.o=d;this.j=a;this.sourceURL=e;this.startTime=b;this.range=f||null};var Er=function(){this.ta=[]};var Fr=function(a,b){var c=xb(a.ta,new Dr(b,0,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.ta[c]:null};var Gr=function(a,b){var c=xb(a.ta,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ta[c]:a.ta[Math.max(0,-c-2)]};var Hr=function(a,b){var c=fb(a.ta,function(a){return a.j>=b},a);0<c&&a.ta.splice(0,c)};
var Ir=function(a){this.j=a;this.o={};this.A=""};var Jr=function(a,b){var c=b.indexOf("?");if(0<c){var d=vr(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=ur(b);Ob(d,function(a,b){this.set(b,a)},a)};var Kr=function(a){a.A||(a.A=Lr(a));return a.A};var Lr=function(a){var b=or(a.j),c=[];Ob(a.o,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=sr(a.j)?"&":"?";return b+a+d};var Mr=function(a,b){var c=new nr(b);Ob(a.o,function(a,b){c.set(b,null)});return c};
var Nr=function(a){this.j=a;this.B=a.clone();this.o=0;this.A=-1};var Or=function(a){var b=or(a.B),c=new O(b);c.o.match("\\.googlevideo\\.com$")?(ah(c,"redirector.googlevideo.com"),b=c.toString()):c.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(ah(c,"www.youtube.com"),b=c.toString()):b=Wp(b);a.j=new nr(b);a.o&&(b=""+a.o,a.j.set("cmo=pf",b),a.B.set("cmo=pf",b))};var Pr=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.j=null;this.C=this.A=!1;this.D=new Nr(a)};
var Qr=function(a){return!!a.j&&!!a.index&&a.index.dg()};var Rr=function(a,b,c,d,e,f,k,l,m){this.j=b;this.range=c;this.type=a;this.B=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.A=k||0;this.o=0<=l?l:this.range?this.range.length:window.NaN;this.F=!!m;this.range?(this.D=this.A+this.o==this.range.length,this.C=this.startTime+this.duration*this.A/this.range.length,this.G=this.duration*this.o/this.range.length):(this.D=0!=this.o,this.C=this.startTime,this.G=this.duration);this.H=this.C+this.G};
var Sr=function(a){return 1==a.type||2==a.type};var Tr=function(a,b){return a.j==b.j&&a.range.start+a.A+a.o==b.range.start+b.A};var Ur=function(a){cb(1==a.length||Fg(a,function(a){return!!a.range}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new xr(a[0].range.start+a[0].A,b.range.start+b.A+b.o-1)};var Vr=function(a){var b="";Ob(Wr(a),function(a,d){b+=d+"="+a+","});return b.slice(0,-1)};
var Wr=function(a){var b={};b.itag=a.j.info.id;b.seg=a.B;a.range&&(b.range=""+(a.range.start+a.A)+"-"+(a.range.start+a.A+a.o-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.G).toFixed(1);return b};var Xr=function(a,b){this.A=a[0].j.D;this.o=b||"";this.j=a;this.range=this.j[0].range&&0<this.j[0].o?Ur(this.j):null};var Yr=function(a,b){var c;/http[s]?:\/\//.test(a.o)?c=new Ir(new nr(a.o)):(c=new Ir(a.A.j),a.o&&Jr(c,a.o));var d=b||a.range;d&&c.set("range",d.toString());return c};
var Zr=function(a){if(a.range)return a.range.length;a=a.j[0];return Math.round(a.G*a.j.info.j)};var $r=function(a,b,c,d,e){Pr.call(this,a,b,d);this.index=e||new Er;this.B=c;this.o=!0};var as=function(a,b){a.mh(b);return bs(a,b.D?b.B+1:b.B,!1)};var bs=function(a,b,c){var d=a.index.Rn(b),e=a.index.ee(b),f=a.index.ag(b);c?f=c=0:c=0<a.info.j?a.info.j*f:1E3;a=new Rr(3,a,null,b,e,f,0,c,b==a.index.Jb()&&!a.o&&0<c);return new Xr([a],d)};var cs=function(a,b,c){this.$d=a;this.durationSecs=b;this.context=c};
var ds=function(a,b,c,d){this.j=a;this.$d=b;this.durationSecs=c;this.o=d||window.NaN};var es=function(){this.j=[];this.o=null;this.B=0;this.A=[]};var fs=function(a){var b=a.A;a.A=[];return b};var gs=function(){this.B=[];this.C=!1;this.j=null;this.o={};this.A={}};
var hs=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.j=new es:"AdaptationSet"==e.nodeName?a.o[e.attributes.mimeType.value]=new es:"Representation"==e.nodeName&&(a.A[e.attributes.id.value]=new es)}a.C=!0};
var is=function(a,b){a.C||hs(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.j:"AdaptationSet"==f.nodeName?k=a.o[f.attributes.mimeType.value]:"Representation"==f.nodeName&&(k=a.A[f.attributes.id.value]);if(null==k)return;k.update(d[e]);tb(c,fs(k))}Cb(c,function(a){return a.$d});tb(a.B,c)};var js=function(a){a.j&&(a.j.j=[]);Ob(a.o,function(a){a.j=[]});Ob(a.A,function(a){a.j=[]})};
var ks=function(a,b){var c=ls(a,0,1836019558);if(!c)return null;var d=ls(a,c.offset+8,1835427940),e=ls(a,c.offset+8,1953653094);if(!d||!e)return null;var f=ls(a,e.offset+8,1952868452),k=ls(a,e.offset+8,1953658222),l=ls(a,e.offset+8,1952867444);if(!f||!k||!l)return null;var m=ls(a,e.offset+8,1935763823),e=ls(a,e.offset+8,1935763834);if(m){var p=ms(m),u=ms(m);if(0!=p||1!=u)return null;p=ms(m)}for(var v=ms(f),z=ms(f),y=v&2,ga=v&1?ns(f):0,va=y?ms(f):0,I=v&8?ms(f):0,u=v&16?ms(f):0,W=v&32?ms(f):0,v=ms(k),
Kb=v&1,td=v&4,To=v&256,f=v&512,Uo=v&1024,GB=v&2048,v=ms(k),HB=Kb?ms(k):0,Vo=td?ms(k):0,Kb=[],iu=[],Bl=[],IB=[],MN=0,Of=0,Bc=0;Bc<v;Bc++){var u4=To?ms(k):I;f&&Kb.push(ms(k));var ce=W;td&&0==Bc?ce=Vo:Uo&&(ce=ms(k));iu.push(ce);ce=GB?ms(k):0;0==Bc&&(MN=ce);Bl.push(Of+ce);IB.push(Bc);Of+=u4}Bb(IB,function(a,b){return Bl[a]-Bl[b]});k=[];for(Bc=0;Bc<v;Bc++)k[IB[Bc]]=Bc;Of=y?4:0;Bc=16*v;ce=68+Of+l.size+Bc+(m?m.size:0)+(e?e.size:0);c=ce-c.size;I=new os(ce);ps(I,ce);ps(I,1836019558);qs(I,d);ps(I,ce-24);ps(I,
1953653094);ps(I,16+Of);ps(I,1952868452);ps(I,131072|(y?2:0));ps(I,z);y&&ps(I,va);qs(I,l);ps(I,20+Bc);ps(I,1953658222);ps(I,16781057);ps(I,v);ps(I,ga+HB+c);for(Bc=Of=0;Bc<v;Bc++)l=k[Bc],d=Math.round(b*l/v),l=Math.round(b*(l+1)/v)-d,ce=d-Of+MN,ps(I,l),ps(I,f?Kb[Bc]:u),ps(I,iu[Bc]),ps(I,ce),Of+=l;m&&(ps(I,m.size),ps(I,1935763823),ps(I,0),ps(I,1),ps(I,p+c));e&&qs(I,e);return I.data.buffer};
var rs=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;ts(a,b);){var c=us(a,b);if(1836476516==c.type)return vs(c);b=ws(c.type)?b+8:b+c.size}return window.NaN};var ls=function(a,b,c){for(;ts(a,b);){var d=us(a,b);if(d.type==c)return d;b+=d.size}return null};var us=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new xs(a,b,c,d)};var vs=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
var ts=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 ws=function(a){return 1836019558==a||1836019574==a||1953653094==a};var xs=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8};var ms=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
var ns=function(a){var b;b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};var os=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.j=0};var ps=function(a,b){a.data.setInt32(a.j,b);a.j+=4};var qs=function(a,b){for(var c=0;c+4<=b.size;)ps(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.j++,b.data.getUint8(b.offset+c++))};var ys=function(a){return(a=ls(a,0,1836019558))?a.offset+a.size:null};
var zs=function(a,b){this.o=a;this.j=0;this.A=b||0};var As=function(a){for(var b=Bs(a,!1);236==b;)Cs(a),b=Bs(a,!1);return b};var Ds=function(a){var b=Bs(a,!0),c=a.o.byteOffset+a.j,c=new window.DataView(a.o.buffer,c,Math.min(b,a.o.buffer.byteLength-c)),c=new zs(c,a.A+a.j);a.j+=b;return c};var Es=function(a){for(var b=Bs(a,!0),c=Fs(a),d=1;d<b;d++)c=256*c+Fs(a);return c};var Cs=function(a){var b=Bs(a,!0);a.j+=b};
var Gs=function(a){var b=a.j;a.j=0;var c=!1;Hs(a,440786851)&&(a.j=0,Hs(a,408125543)&&(c=!0));a.j=b;return c};var Is=function(a,b,c){var d=a.j;a.j=0;if(Gs(a)){if(!Hs(a,408125543))return!1;Bs(a,!0)}if(!Hs(a,524531317))return!1;Bs(a,!0);if(!Hs(a,231))return!1;var e=Bs(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.o.setUint8(a.j+c,b&255),b>>>=8;a.j=d;return!0};var Hs=function(a,b){for(;As(a)!=b;)if(Cs(a),a.j>=a.o.byteLength)return!1;return!0};
var Bs=function(a,b){var c=Fs(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Fs(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Fs(a),e*=128;return b?c-e:c};var Fs=function(a){return a.o.getUint8(a.j++)};var Js=function(a,b,c,d,e){this.info=a;this.j=b;this.range=c;this.o=d;this.A=e};var Ks=function(a){return a.range?new window.DataView(a.j,a.range.start,a.range.length):new window.DataView(a.j)};
var Ls=function(a){if(a.info.o!=a.range.length)return!1;if(1==a.info.j.info.o){if(8>a.info.o||4==a.info.type)return!0;var b=Ks(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.o&&1936286840==b;if(3==a.info.type&&0==a.info.A)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b}else if(2==a.info.j.info.o){if(4>a.info.o||4==a.info.type)return!0;b=Ks(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==c||440786851==c}return!0};
var Ms=function(a,b){if(1==a.info.j.info.o){for(var c=a.info.j.j,d=window.NaN,e,f=0,k=new window.DataView(a.j);ts(k,f);){var l=us(k,f);1936286840==l.type?d=l.data.getUint32(l.offset+16):1836476516==l.type?d=vs(l):1952867444==l.type&&(e=l);f=ws(l.type)?f+8:f+l.size}!d&&c&&(d=rs(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.j.j.buffer);
d=new zs(new window.DataView(a.j));e=d.j;d.j=0;c=1E6;Hs(d,408125543)&&(Bs(d,!0),Hs(d,357149030)&&(Bs(d,!0),Hs(d,2807729)&&(c=Es(d))));d.j=e;return Is(d,b,c)};
var Ns=function(a){var b;a:{for(var c=0,d=new window.DataView(a.j);ts(d,c);){b=us(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=ws(b.type)?c+8:c+b.size}b=window.NaN}if(!(0<=b)){c=a.info.j.j;d=0;b=new window.DataView(a.j);for(var e,f;ts(b,d);){var k=us(b,d);1836476516==k.type?e=vs(k):1836019558==k.type&&(f=k);d=ws(k.type)?d+8:d+k.size}!e&&c&&(e=rs(c));if(f&&e){f=
ls(b,f.offset+8,1953653094);c=ls(b,f.offset+8,1952868452);f=ls(b,f.offset+8,1953658222);b=ms(c);ms(c);b&2&&ms(c);b=b&8?ms(c):0;var l=ms(f),m=l&1,c=l&4,d=l&256,k=l&512,p=l&1024,l=l&2048,u=f.data.getUint32(f.offset+f.j);f.j+=4;m&&ms(f);c&&ms(f);for(var v=m=0;v<u;v++){var z=d?ms(f):b;k&&ms(f);c&&0==v||!p||ms(f);l&&ms(f);m+=z}b=m/e}else b=window.NaN}return b||a.info.G};var Os=function(a){1==a.info.j.info.o?(a=Ks(a),a=!!ls(a,0,1718909296)):a=Gs(new zs(new window.DataView(a.j)));return a};
var Ps=function(){this.xa=0;this.j=new window.Float64Array(128);this.o=new window.Float64Array(128);this.B=1;this.A=!1};var Qs=function(a){if(a.j.length<a.xa+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new window.Float64Array(b+1);var d=a.o;a.o=new window.Float64Array(b+1);for(b=0;b<a.xa+1;b++)a.j[b]=c[b],a.o[b]=d[b]}};var Rs=function(a,b,c,d,e,f){Pr.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new Ps;this.o=e;this.lastModified=f};
var Ss=function(a,b,c,d){for(var e=[];b<=a.index.Jb();b++){var f;f=a.index;var k=b;f=zr(f.tj(k),k+1<f.xa||f.A?f.j[k+1]-f.j[k]:-1);var k=a.index.ee(b),l=a.index.ag(b),m=Math.max(0,c-f.start),p=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Rr(3,a,f,b,k,l,m,p,b==a.index.Jb()&&m+p==f.length));if(f.start+m+p>=c+d)break}return new Xr(e)};
var Ts=function(a,b,c){a.mh(b);if(!Qr(a))return c=zr(b.range.end+1,c),c.end+1>a.o&&(c=new xr(c.start,a.o-1)),a=[new Rr(4,b.j,c)],new Xr(a);4==b.type&&(b=a.Oi(b),b=b[b.length-1]);var d=0,e=b.range.start+b.A+b.o;3==b.type&&(d=b.B,e==b.range.end+1&&(d+=1));return Ss(a,d,e,c)};var Us=function(a){Oj.call(this);this.G=this.duration=0;this.isLive=this.C=!1;this.D=Vs();this.A=window.Infinity;this.j={};this.J=a||"";this.B=this.F=0;this.o=null;this.H=Vs()};
var Ws=function(a){return Qb(a.j,function(a){return!!a.info.A},a)};
var Xs=function(a,b,c){var d=new Us;d.duration=c||0;F(a,function(a){var c=a.type,k=a.itag,l=null;if(hr(c))var m=a.size.split("x"),l=new jr(+m[0],+m[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label);var p=null,u=null;gr(c)&&(p=new br,a.name&&(u=new ir(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(k=a.itag+";"+a.xtags);var v=(0,window.parseInt)(a.bitrate,10)/8,m=(0,window.parseInt)(a.clen,10),z=d.duration&&m?m/d.duration:0,y=null;b&&a.drm_families&&(y={},F(a.drm_families.split(","),
function(a){y[a]=b[a]}));c=new cr(k,c,p,l,u,y,v,z);l=yr(a.init);p=yr(a.index);u=Ys(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);u&&(d.j[k]=new Rs(u,c,l,p,m,a))});return d};var Ys=function(a,b,c){a=new nr(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",Yq(c));return a};
var Zs=function(a,b){var c=Ar(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Ar(b,"lang"));var d=Ar(b,"mimeType"),e=Ar(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Ar(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Br(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(hr(d)){var k=(0,window.parseInt)(Ar(b,"width"),10),l=(0,window.parseInt)(Ar(b,"height"),10),m=(0,window.parseInt)(Ar(b,"frameRate"),10),p=Ar(b,"yt:projectionType"),u=Ar(b,"yt:stereoLayout"),
v="equirectangular"==p,z,y;v&&"layout_top_bottom"==u?z=3:v&&!p?z=2:"layout_left_right"==u&&(y=1);k=new jr(k,l,m,z,y)}y=z=null;gr(d)&&(z=new br((0,window.parseInt)(Ar(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),y=Ar(b,"lang")||"",(l=Br(b,"Role"))?(l=Ar(l,"value")||"",y=y&&Yb($s,l)?new ir(Ar(b,"yt:langName")||y+" - "+l,y+"."+$s[l],"main"==l):null):y=null);m=null;if(l=Br(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 cr(c,d,z,k,y,m,e,f)};var at=function(a,b){a.B=1;a.D=Vs();return Dd(ar(b||a.J).then(A(a.L,a)),A(a.N,a))};var bt=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=yr(e):c=c+"?range="+e);return new Dr(b.j,b.$d,b.durationSecs,b.o,c,d)};
var ct=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c&&c.dg())return c.cg()}return window.NaN};var dt=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c&&c.dg())return c.or()}return 0};var et=function(a,b){Ob(a.j,function(a){Ob(b,function(b,e){var f=a.D;f.j.set(e,b);f.B.set(e,b)})})};
var ft=function(a,b){var c=(0).toString();if(!a.j[c]){var d=new cr(c,"",void 0,new jr(0,0,0,void 0,void 0,"auto"));a.j[c]=b?new $r(new nr("http://www.youtube.com/videoplayback"),d,""):new Rs(new nr("http://www.youtube.com/videoplayback"),d,new xr(0,0),new xr(0,0),0,window.NaN)}};var gt=function(){return ht("android")&&ht("chrome")&&!it()};var jt=function(){return ht("(ps3; leanback shell)")||ht("ps3")&&ht("cobalt")};var kt=function(){return ht("(ps4; leanback shell)")||ht("ps4")&&ht("cobalt")};
var lt=function(){var a=/WebKit\/([0-9]+)/.exec(oc);return!!(a&&600<=a[1])};var mt=function(){return Dl&&ht("crkey")};var nt=function(){return ht("nintendo wiiu")};var ot=function(){return ht("iemobile")||ht("windows phone")&&ht("edge")};var it=function(){return ht("trident/")||ht("edge/")};var ht=function(a){var b=oc;return b?0<=b.toLowerCase().indexOf(a):!1};
var pt=function(){var a=t("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a};var qt=function(a){var b=pt();try{if(b.canPlayType){a=a?rt:tt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};var ut=function(a){a=N("div",{"class":a});window.document.body.appendChild(a);var b="none"==Qf(a,"display");pf(a);return b};
var vt=function(a,b,c){this.o=a;this.j=b;this.C=c;this.B={};this.A=null};var wt=function(a){return!a.A&&xt()&&"com.microsoft.playready"==a.j};var xt=function(){var a=window.MSMediaKeys;return a&&a.isTypeSupported?a:null};var zt=function(){return window.navigator.requestMediaKeySystemAccess&&Dl&&At("45")};var Bt=function(a){this.o=[];this.j={};this.A={};this.B=null;Ct(this,a)};
var Ct=function(a,b){Ob(b,function(a){a.forEach(function(a){a.A&&Ob(a.A,function(b,c){Dt[c]&&Ob(Dt[c],function(b){this.j[b]=this.j[b]||new vt(c,b,a.A[c]);this.A[c]=this.A[c]||{};this.A[c][a.mimeType]=!0},this)},this)},this)},a);a.o=Et.filter(function(a){return!!this.j[a]},a)};var Ft=function(a){var b=a.o.shift(),c=a.j[b],d=Gt(a.A[c.o]);window.navigator.requestMediaKeySystemAccess(b,d).then(yi(A(a.D,a,c)),yi(A(a.C,a,c)))};
var Gt=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 Ht=function(a){var b=xt(),c=pt();if(b)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=eb(a.o,function(a){var b=this.j[a],c,l;Ob(this.A[b.o],function(m,p){d(p,a)&&(b.B[p]=!0,c|=0==p.indexOf("audio/"),l|=0==p.indexOf("video/"))},this);return c&&l},a))?a.j[c]:null;a.o=[];a.B(c)};
var It=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.j=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
var Jt=function(a){a=a||{};this.J=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.J.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.C=Math.max(d,this.C))}this.j=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.B=a.name;this.L=a.id;this.K=a.is_servable;this.isDefault=a.is_default;this.G=a.is_translateable;this.H=a.url||null;this.F=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new It(a.translationLanguage))};
var Kt=function(a){var b={format:a.C,languageCode:a.j,languageName:a.D,displayName:Lt(a),kind:a.A,name:a.B,id:a.L,is_servable:a.K,is_default:a.isDefault,is_translateable:a.G,vss_id:a.F};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.j,id:a.id,is_default:a.isDefault});return b};
var Lt=function(a){var b=a.D||"",c=[b];"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (",Q("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.o&&c.push(" >> ",a.o.languageName);return c.join("")};var Mt=function(a,b){var c=new Jt;c.j=a.j;c.D=a.D;c.B=a.B;c.A=a.A;c.isDefault=!1;c.G=a.G;c.F=a.F;c.H=a.H;c.o=b;return c};var Nt=function(a,b){this.id=a;this.Gb=b;this.captionTracks=[];this.ug=this.gk=null;this.tn=0};var Ot=function(a,b,c){this.o=a||0;this.j=b||0;this.A=c};
var Pt=function(a,b,c){return new Ot(lr[a]||0,lr[b]||0,c)};var Qt=function(a){var b=lr.auto;return a.o==b&&a.j==b};var Rt=function(a,b){if(b.A&&Qt(b))return St;if(b.A||Qt(a))return b;if(a.A||Qt(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.o&&d==a.j?a:new Ot(c,d,!1)};var Tt=function(a){var b=a.j||a.o;return $b(Ut,function(a){return lr[a]==b})||"auto"};
var Vt=function(a,b,c){this.videoInfos=a;this.j=b||null;this.audioTracks=[];this.o=c||null;if(this.j){var d={};F(this.j,A(function(a){if(a.Gb&&!d[a.id]){var b=new Nt(a.id,a.Gb);d[a.id]=b;this.audioTracks.push(b)}},this))}};var Wt=function(a,b){this.j=a;this.o=b};var Xt=function(a){this.j=[];if(a)a:{var b,c;if(a instanceof Xt){if(b=a.Ma(),c=a.Ja(),0>=a.Za()){a=this.j;for(var d=0;d<b.length;d++)a.push(new Wt(b[d],c[d]));break a}}else b=Wb(a),c=Vb(a);for(d=0;d<b.length;d++)Yt(this,b[d],c[d])}};
var Yt=function(a,b,c){var d=a.j;d.push(new Wt(b,c));b=d.length-1;a=a.j;for(c=a[b];0<b;)if(d=b-1>>1,a[d].j>c.j)a[b]=a[d],b=d;else break;a[b]=c};var Zt=function(){Xt.call(this)};var $t=function(a,b){Oj.call(this);this.o=a;this.A=new Zt;this.j=null;this.C={};this.B=b||""};var au=function(a,b,c){var d;for(c=bu(a.o,c);0<=c;){d=a.o.j[c];if(d=d.A[Math.floor(b/(d.Eb*d.rows))]?cu(d,b):null)return d;c--}return cu(a.o.j[0],b)};
var du=function(a,b,c){c=bu(a.o,c);for(var d,e;0<=c;c--)if(d=a.o.j[c],e=Math.floor(b/(d.Eb*d.rows)),!d.A[e]){d=a;var f=c,k=f+"-"+e;d.C[k]||(d.C[k]=!0,Yt(d.A,f,{Io:f,Oo:e}))}eu(a)};var eu=function(a){if(!a.j&&!a.A.isEmpty()){var b=a.A.remove(),c=new window.Image;a.B&&(c.crossOrigin=a.B);c.src=fu(a.o.j[b.Io],b.Oo);c.onload=A(a.D,a,b.Io,b.Oo);a.j=c}};
var gu=function(a,b,c,d){this.A={};this.L=a;this.J=b;a=c.split("#");this.G=(0,window.parseInt)(a[0],10);this.F=(0,window.parseInt)(a[1],10);this.o=(0,window.parseInt)(a[2],10);this.Eb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.C=(0,window.parseInt)(a[5],10);this.B=a[6];this.D=a[7];this.K=d};var fu=function(a,b){var c=a.J,c=c.replace("$N",a.B),c=c.replace("$L",a.L.toString()),c=c.replace("$M",b.toString());a.D&&(c=Tg(c,{sigh:a.D}));return Xp(c)};
var cu=function(a,b){var c=Math.floor(b/(a.Eb*a.rows)),d=a.Eb*a.rows,e=b%d,f=e%a.Eb,e=Math.floor(e/a.Eb),k,l=a.Dm()+1-d*c;l<a.Eb?(k=l,d=1):(k=a.Eb,d=l<d?Math.ceil(l/a.Eb):a.rows);return{url:fu(a,c),fv:f,Eb:k,row:e,rows:d,Qo:a.G*k,No:a.F*d}};var hu=function(a,b){this.j=this.o(a,b);this.A={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)};var bu=function(a,b){var c=a.A[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].getWidth()>=b)return a.A[b]=d;a.A[b]=c-1;return c-1};
var ju=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");gu.call(this,a,b,c,0);this.j=null;this.H=d?3:0};var ku=function(a,b){this.D=b;hu.call(this,a,0)};
var lu=function(){if(void 0==mu&&(mu=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new window.Uint8Array(1);window.crypto.getRandomValues(a);mu=!0}catch(e){}if(mu){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=K(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=nu)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 ou=function(){for(var a=lu(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};var pu=function(){return P(lu(),function(a){return(a&15).toString(16)}).join("")};var qu=function(a,b){return void 0==b?a:"1"==b?!0:!1};var ru=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};var tu=function(a,b){return void 0==b?a:Number(b)};var uu=function(a,b){return void 0==b?a:b.toString()};
var vu=function(a){if(a&&(a=a.match(wu))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};var xu=function(a,b){var c=lr.auto,d=lr.medium;if("tivo"==b)return new Ot(c,lr.large,!1);var e=lr[b];return e>d?new Ot(e,c,!1):e>=c?new Ot(c,e,!1):a};var yu=function(){return!!t("yt.scheduler.instance")};var zu=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=t("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):xi(a,b||0)};
var Au=function(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):Ai(a)};var Bu=function(){var a=t("yt.scheduler.instance.start");a&&(Ai(Cu),a())};var Du=function(){var a=t("yt.scheduler.instance.pause");a&&(a(),Ai(Cu),Cu=xi(Bu,800))};var Eu=function(a,b){this.version=a;this.args=b};var Fu=function(a){if(!a.be){var b={};a.call(b);a.be=b.version}return a.be};
var Gu=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=Fu(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 Hu=function(a,b){this.o=a;this.j=b};
var Iu=function(a,b){var c=Ju,d=Ku();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(Lu[e])try{if(k&&c instanceof Hu&&c!=d)try{k=Gu(c.j,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){Ci(l)}};Mu[c.toString()]?yu()?zu(l,void 0):xi(l,0):l()}});Lu[e]=!0;Nu[c.toString()]||(Nu[c.toString()]=[]);Nu[c.toString()].push(e);
return e};var Ou=function(a,b){var c=Iu(function(d){a.apply(b,arguments);Pu(c)},b);return c};var Pu=function(a){var b=Ku();b&&(fa(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete Lu[a]}))};var Ku=function(){return t("yt.pubsub2.instance_")};var Qu=function(a){Eu.call(this,1,arguments);this.j=a};
var Ru=function(a,b,c){Su(c)[a]=b||K();b||Tu(a);b=wi("TIMING_ACTION");a=Su(c);if(t("yt.timing.ready_")&&b&&a._start&&Uu(c)){b=!0;var d=wi("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)&&Vu(c)}};var Wu=function(a,b){var c=Su(b);return a in c};var Xu=function(a,b,c){Yu(c).info[a]=b};var Zu=function(a){$u(a);av();q("yt.timing.pingSent_",!1,void 0)};
var Uu=function(a){a=Su(a);if(a.aft)return a.aft;for(var b=wi("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 bv=function(a){return Math.round(cv.timing.navigationStart+a)};
var dv=function(a){var b=window.location.protocol,c=cv.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=bv(d.startTime),a.wfce=bv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=bv(c.startTime),a.wffe=bv(c.responseEnd))};
var Vu=function(a){var b=Su(a),c=Yu(a).span,d=Yu(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))ev(e),Zu(a)}else{e={v:2,s:wi("CSI_SERVICE_NAME","youtube"),action:wi("TIMING_ACTION")};if(cv.now&&cv.timing){var f=cv.timing.navigationStart+cv.now(),f=Math.round(K()-f);d.yt_hrd=f}var f=wi("TIMING_INFO")||{},k;for(k in f)d[k]=f[k];k=d.srt;delete d.srt;var l;k||0===k||(l=cv.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+t("ytplayer.config.assets.js"),(f=cv.getEntriesByName?cv.getEntriesByName(f)[0]:null)?d.h5jse=Math.round(d.h5jse-f.responseEnd):delete d.h5jse);b.aft=Uu(a);f=b._start;if("cold"==d.yt_lt){l||(l=cv.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,ha(p))){var p=p(),u=1E3*Math.min(p.requestTime||window.Infinity,p.startLoadTime||window.Infinity),u=window.Infinity===u?0:m.navigationStart-u;m=Math.max(0,
Math.round(1E3*p.firstPaintTime+u)||0);break a}m=0}0<m&&m>f&&(b.fpt=m);m=c||Yu(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);cv.getEntriesByType&&dv(b)}(l=wi("PREVIOUS_ACTION"))&&(d.pa=
l);d.p=wi("CLIENT_PROTOCOL")||"unknown";d.t=wi("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var v in d)"_"!=v.charAt(0)&&(e[v]=d[v]);wi("CSI_MORE")&&(b.ps=K());d={};v=[];for(var z in b)"_"!=z.charAt(0)&&(m=Math.max(Math.round(b[z]-f),0),d[z]=m,v.push(z+"."+m));e.rt=v.join(",");b=e;z=[];for(var y in c)"_"!=y.charAt(0)&&z.push(y+"."+c[y]);b.it=z.join(",");(y=t("ytdebug.logTiming"))&&y(e,d,c);Zu(a);wi("EXP_DEFER_CSI_PING")?(fv(),q("yt.timing.deferredPingArgs_",
e,void 0),a=xi(fv,0),q("yt.timing.deferredPingTimer_",a,void 0)):ev(e);a=new Qu(d.aft+(k||0));c=Ju;(e=Ku())&&e.publish.call(e,c.toString(),c,a)}};
var ev=function(a){if(wi("DEBUG_CSI_DATA")){var b=t("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}wi("EXP_DEFER_CSI_PING")&&(Ai(t("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=wi("CSI_LOG_WITH_YT")?"/csi_204?"+b.substring(1):null;window.navigator&&
window.navigator.sendBeacon?($p(a),b&&$p(b)):(Yp(a),b&&Yp(b));q("yt.timing.pingSent_",!0,void 0)};var fv=function(a){if(wi("EXP_DEFER_CSI_PING")){var b=t("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),ev(b))}};var Su=function(a){return Yu(a).tick};var Yu=function(a){return t("ytcsi."+(a||"")+"data_")||$u(a)};var $u=function(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var gv=function(a,b,c){this.errorCode=a;this.j=b;this.details=c||{}};
var hv=function(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""};var iv=function(a){return(a=a.exec(oc))?a[1]:""};var At=function(a){return 0<=Sa(jv,a)};var kv=function(){};var lv=function(){this.buffered=new kv};var mv=function(a,b){this.B=a;this.j=!!b;this.A=!1;this.o={}};var nv=function(a){return a.j?a.B:Tg(a.B,a.o)};
var ov=function(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.jC,set:this.nC});Object.defineProperty(this,"buffered",{get:this.hC})};var pv=function(){this.length=0};var qv=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.o=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.iC,set:this.mC});Object.defineProperty(this,"readyState",{get:this.kC});this.j.addEventListener("webkitsourceclose",A(this.lC,this),!0)};
var rv=function(a){G.call(this);this.L=[];this.Ha=a||this};var tv=function(a,b,c,d){for(var e=0;e<c.length;e++)T(a,b,c[e],d)};var T=function(a,b,c,d,e){d=yi(A(d,e||a.Ha));b.addEventListener(c,d);b={target:b,name:c,Lh:d};a.L.push(b);return b};var uv=function(a){for(;a.L.length;){var b=a.L.pop();b.target.removeEventListener(b.name,b.Lh)}};
var vv=function(a,b,c,d,e){rv.call(this);this.o=this.j=null;this.B=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new qv(a);this.D=this.C=this.F=null;this.G=d;this.K=c;this.P=e;tv(this,this.A,["sourceopen","webkitsourceopen"],this.J);tv(this,this.A,["sourceclose","webkitsourceclose"],this.H)};var wv=function(a,b){a.C=b};var xv=function(a,b){a.D=b};
var yv=function(a){if(!a.F){var b;b=a.A;b=b.oE?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new mv(b,!0)}return a.F};var zv=function(a,b){Av(a)?a.A.duration=b:a.B=b};var Av=function(a){try{return"open"==a.A.readyState}catch(b){return!1}};var Bv=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}};var Cv=function(a){return a.j.updating||a.o.updating};var Dv=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
var Ev=function(a){return a.j?!!a.j.appendBuffer:Dv()};var Fv=function(a){if(/opus/.test(a)&&(Dl&&!At("38")||mt()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!kt())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!pt().canPlayType(a)};var Gv=function(a){this.zc=a};
var Hv=function(a,b){this.o=a;this.B=b;this.A={};this.j=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null};
var Iv=function(a,b){if(2.2!=Jv&&qt(a.o))return[];for(var c={},d=pt(),e=0;e<b.length;e++){var f=b[e];if(er(f.zc)in Kv||"5"==er(f.zc)?0:Lv(d,f.zc.mimeType)){var k=f.zc.video.quality;c[k]&&2!=c[k].zc.o||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);F(kr,function(a){(f=c[a])&&l.push(f)});return l};var Lv=function(a,b){var c=a.canPlayType(b);Mv?c=c||Nv[b]:2.2==Jv?c=c||Ov[b]:gt()&&(c=c||Pv[b]);return!!c};
var Qv=function(){var a=gt()&&!At(29),b=ht("google tv")&&ht("chrome")&&!At(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
var Rv=function(a,b){var c={},d;for(d in b.j){var e=b.j[d],f;a:{f=a;var k=e.info;if(k.id!=(0).toString()||f.o){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Sv.name]=k.video.width),k.video.height&&(m[Tv.name]=k.video.height),k.video.fps&&(m[Uv.name]=k.video.fps),k.j&&(m[Vv.name]=8*k.j));k.audio&&k.audio.j&&(m[Wv.name]=k.audio.j);k=m;m=void 0;for(m in Xv){var p=Xv[m];if(k[p.name]&&Yv(f,p))if(f.j){if(f.j[p.name]<k[p.name]){f=!1;break a}}else l=l+"; "+p.name+"="+k[p.name]}f=Fv(l)}else f=!0}f&&(c[e.info.B]=
c[e.info.B]||[],c[e.info.B].push(e.info))}return c};var Zv=function(a,b,c){var d={},e;Ob(b,function(a,b){var l=a.filter(function(a){return a.A?c&&a.A[c.o]&&c.B[a.mimeType]&&(261!=er(a)||(e||(e=pt()),e.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))?!0:!1:!0},this);l.length&&(d[b]=l)},a);return d};
var $v=function(a,b,c,d){function e(a){return!!f[a]}var f=Rv(a,b);Ws(b)&&(f=Zv(a,f,c));c=aw;if(!a.o)c=bw;else if(ht("cros armv7")||ht("windows nt 5.1"))c=cw;b=dw;d&&(a.o&&(c=cw),b=ew);d=eb(c,e);b=eb(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=le(f["9"],c,0);le(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=fw(a,c);gw(c,k);return new Vt(c,k,hw(a,f,d,b))};
var hw=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=fw(a,e),gw(e,b),new Vt(e,b)):null};var gw=function(a,b){Bb(a,function(a,b){return b.video.width-a.video.width||b.j-a.j});Bb(b,function(a,b){return b.j-a.j})};
var fw=function(a,b){var c=Gh(b,function(a){return 32<a.video.fps});c&&(b=a.B||Yv(a,Uv)?Zd(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):Zd(b,function(a){return!(32<a.video.fps)}));c&&jt()&&(b=Zd(b,function(a){return 299!=er(a)}));return b};
var Yv=function(a,b){if(!(b.name in a.A)){var c=a.A,d=b.name,e;a.j?e=!!a.j[b.name]:(b.video?(e='video/webm; codecs="vp9"',Fv(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Fv(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Fv(e+"; "+b.name+"="+b.valid)&&!Fv(e+"; "+b.name+"="+b.Gg));c[d]=e}return a.A[b.name]};var iw=function(a,b){this.o=a;this.j=b;this.A=0};
var jw=function(a){for(var b=[],c=[],d=0,e=a.j.length;d<e;++d){var f=a.j[d];f.bitrate<=a.A?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.j=b.concat(c)};var kw=function(a,b,c,d,e,f,k,l){this.itag=a;this.url=b;this.An=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null};var lw=function(a,b){this.zc=a;this.A=b;this.j=null};
var mw=function(a,b,c,d,e,f,k,l){c=new cr(c,"application/x-mpegURL",new br,new jr(d,e,f,null,void 0,k));a=new iw(a,b);a.A=l?l:1369843;return new lw(c,a)};var nw=function(a,b){this.zc=a;this.j=b};var ow=function(a,b,c,d,e,f,k){var l=new br;c in lr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=lr[c],e=Math.round(16*f/9));c=new jr(e,f,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new nw(new cr(d,b,l,c),a)};
var pw=function(a){var b=[];F(a,function(a){a.url&&b.push(ow(a.url,a.type,"medium","0"))});return b};var qw=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||Yq(e.s);e.url=oj(e.url,{signature:f})}e.url&&c.push(ow(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Iv(a.F,c)};
var rw=function(a){Oj.call(this);this.ie=new qe(0,0);this.Sa=this.W=this.ga=!1;this.bc="";this.$b=this.rb=!1;this.Va={};this.captionTracks=[];this.Aa=[];this.sb=0;this.captionTranslationLanguages=[];this.Da=!1;this.T=new Nt("und",new ir("Default","und",!0));this.Ha=0;this.he=this.gd=!1;this.L=null;this.ge=new Td(this.lq,5E3,this);H(this,this.ge);this.H=[];this.B={};this.keywords={};this.C={};tw(this,a)};
var uw=function(a,b){var c=b||{};c.iv_invideo_url&&(a.$e=Xp(c.iv_invideo_url));c.iv_ads_only&&(a.mn="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.bb=c.cta_conversion_urls);a.isPharma=qu(a.isPharma,c.is_pharma);a.author=uu(a.author,c.author);a.Nh=qu(a.Nh,c.cc_asr);var d=c.ttsurl;vw.test(d)?a.Oh=d:d&&(d=Wp(d),vw.test(d)&&(a.Oh=d));c.caption_tracks&&c.caption_audio_tracks&&(ww(a,c.caption_tracks),a.Aa=mj(c.caption_audio_tracks),c.default_audio_track_index&&(a.sb=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&xw(a,c.caption_translation_languages));a.Da=qu(a.Da,c.cc_contribute);a.clientPlaybackNonce=uu(a.clientPlaybackNonce,c.cpn);a.subscribed=uu(a.subscribed,c.subscribed);a.sentiment=ru(a.sentiment,c.sentiment,yw);a.title=uu(a.title,c.title);a.ypcPreview=uu(a.ypcPreview,c.ypc_preview);a.ypcOrigin=uu(a.ypcOrigin,c.ypc_origin);a.paygated=qu(a.paygated,c.paygated);a.requiresPurchase=qu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=zw(c.keywords));
c.rvs&&(a.F=mj(c.rvs));a.contentCheckOk=qu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=qu(a.racyCheckOk,"1"==c.rco);a.oauthToken=uu(a.oauthToken,c.oauth_token);a.visitorData=uu(a.visitorData,c.visitor_data);c.session_data&&(a.$=jj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.ac=jj(c.endscreen_autoplay_session_data,"&"));a.Ua=uu(a.Ua,c.tv_list);a.J=ru(a.J,c.beyond_config,Aw);F(rw.F,function(a){a in c&&(this.B[a]=c[a])},a)};
var tw=function(a,b){var c=b||{};a.Ed="1"!=c.hlsdvr?!1:Qv()?!0:Bw&&5>Cw?!1:!0;a.Ve=c.ad_query_id;a.We=c.agcid;a.Hh="1"==c.infringe||"1"==c.muted;a.qb=c.authkey;a.yb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||ou());a.Kj=K();a.ik=qu(a.ik,c.cenchd);a.enableCardio=qu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=qu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.df=tu(a.df,c.end||c.endSeconds);a.Fa=uu(a.Fa,c.itct);a.Wk=qu(a.Wk,c.noiba);a.zf="1"==c.livemonitor;
a.Ea="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=qu(a.isMdxPlayback,c.mdx);a.al=qu(a.al,c.reload);a.bl=qu(a.bl,c.utpsa);a.Mb=c.cyc;for(var d in rw.o){var e=c[d+"_webp"]||c[d];Dw.test(e)&&(a.Va[rw.o[d]]=e)}a.K=uu(a.K,c.vvt);a.Xe=c.osig;a.ad=c.ptchn;a.bd=c.oid;a.Y=c.ptk;a.ed=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.eventId&&cb(/^[A-Za-z0-9_-]*=*/g.test(a.eventId));
a.osid=c.osid;a.Iu=c.vm;a.Mm=c.of;a.playlistId=uu(a.playlistId,c.list);a.fd=c.pyv_view_beacon_url;a.Ze=c.pyv_quartile25_beacon_url;a.gg=c.pyv_quartile50_beacon_url;a.hg=c.pyv_quartile75_beacon_url;a.Ye=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.oe=c.sdetail;!a.qa&&c.session_data&&(a.qa=jj(c.session_data,"&").feature);a.isFling=1==tu(a.isFling?1:0,c.is_fling);a.vnd=tu(a.vnd,c.vnd);a.ca=uu(a.ca,
c.ctrl);a.da=uu(a.da,c.ytr);a.ha=c.ytrcc;a.Ug=xu(a.Ug,c.vq);a.$g=xu(a.$g,c.suggestedQuality);a.Ta=c.approx_threed_layout||0;a.qe=qu(a.qe,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=uu(a.vssCredentialsToken,c.vss_credentials_token);a.Zl=uu(a.Zl,c.vss_credentials_token_type);Ew(a,c.watermark);a.ypcGid=uu(a.ypcGid,c.ypc_gid);a.heartbeatToken=uu(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=tu(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=
tu(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=qu(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.H.push("ad")):"1"!=c.supported_without_ads&&(a.$n=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.fa=c.atc);c.license_info&&(a.nm=Fw(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.Uk="1"==
c.autonav);c.autoplay&&(a.Hg="1"==c.autoplay);c.iv_load_policy&&(a.wa=ru(a.wa,c.iv_load_policy,Gw));c.cc_lang_pref&&(a.ke=uu(c.cc_lang_pref,a.ke));c.cc_load_policy&&(a.ne=ru(a.ne,c.cc_load_policy,Gw));c.channel_path&&(a.Ph=uu(c.channel_path,a.Ph));"0"==c.dash&&(a.Cn=!0);c.dashmpd&&(a.G=Tg(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=Yq(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.Oe=Ya(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.Bo="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.H.push("fresca");c.idpj&&(a.jj=Ya(c.idpj));c.ismb&&(a.hh=Ya(c.ismb));c.is_episodic&&(a.Vk="1"==c.is_episodic);c.is_listed&&(a.isListed=qu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Sf=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=Ya(c.length_seconds));if(c.live_chunk_readahead||
c.hls_live_chunk_readahead)a.liveChunkReadahead=tu(a.liveChunkReadahead,c.live_chunk_readahead||c.hls_live_chunk_readahead);c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.ldpj&&(a.pm=Ya(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Gh=a.perceptualLoudnessDb?Math.pow(10,Math.min(rw.C-a.perceptualLoudnessDb,0)/20):rw.j);c.partnerid&&(a.U=Ya(c.partnerid));c.probe_url&&(a.probeUrl=Xp(Tg(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=
uu(c.profile_picture,a.profilePicture));c.pyv_billable_url&&Hw.test(c.pyv_billable_url)&&(a.ka=c.pyv_billable_url);c.pyv_conv_url&&Hw.test(c.pyv_conv_url)&&(a.la=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Na=d.quartile_0_url,a.wc=d.quartile_25_url,a.xc=d.quartile_50_url,a.$c=d.quartile_75_url,a.Mc=d.quartile_100_url);"1"==c.spacecast_module&&(a.H.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=tu(a.startSeconds,c.start||c.startSeconds));
void 0==c.start||"1"==c.resume||a.Ea||(a.clipStart=c.start);c.two_stage_token&&(a.kj=c.two_stage_token);c.url_encoded_third_party_media&&(a.Qf=mj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.H.push("ypc");c.ypc_clickwrap_module&&a.H.push("ypc_clickwrap");a.Jj=uu(a.Jj,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);a.C.focEnabled=qu(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=
qu(a.C.rmktEnabled,c.rmktEnabled);a.B=c;uw(a,c);Iw(a);c.adpings&&(a.je=c.adpings?lj(c.adpings):null);c.feature&&(a.pe=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q)};var Jw=function(a){return K()>a.Kj+1E3*rw.D};var Kw=function(a){return!(!a.A||!a.A.videoInfos.length)};var Iw=function(a){Lw(a)||(a.adaptiveFormats?(a.j=Xs(Mw(a,a.adaptiveFormats),a.nm,a.lengthSeconds),Ws(a.j)&&(a.W=!0)):a.G&&(a.ga=!0))};var Lw=function(a){return!Qv()||a.Cn?!0:!1};
var Nw=function(a){a.isDisposed()||(a.Pd=!1,a.O("dataloaded",a.B))};
var Ow=function(a,b){if(!a.isDisposed()){a.A=null;a.Gf=null;a.N=null;var c=Lw(a)||b.Yk;if(!c&&a.spacecastAdaptiveFormats)a.j=Xs(Mw(a,a.spacecastAdaptiveFormats),a.nm,a.lengthSeconds),a.A=$v(b.F,a.j,a.L,!0);else if(a.spacecastFormatMap){var d=Mw(a,a.spacecastFormatMap);a.N=qw(b,d);a.A=new Vt(P(a.N,function(a){return a.zc}))}if(a.A){var e,f=0;P(a.A.videoInfos,function(a){!e&&a.video.j&&f<a.video.height&&(e=a.video.quality,f=a.video.height)});e&&(d=Pt(e,e,!0),a.Ug=d,a.$g=d)}a.A||c||!a.j||(b.K||ft(a.j,
a.Ea),a.A=$v(b.F,a.j,a.L));a.A||(a.N=Pw(a,b),a.N.length&&(a.A=new Vt(P(a.N,function(a){return a.zc}))));Qw(a)}};
var Pw=function(a,b){if(a.hlsFormats){var c=Mw(a,a.hlsFormats),d;d=a.hh;if(Mv||lt()){for(var e={},f=0,k=c.length;f<k;++f){var l;l=c[f];var m=l.type.match(/codecs="([^"]*)"/);l=new kw(l.itag,l.url,m?m[1]:"",+l.width,+l.height,+l.fps,+l.bitrate,l.audio_itag);e[l.itag]=l}if(e){var c=[],f=[],k=[],p;for(p in e)if(l=e[p],l.width){if(m=e[l.audioItag])c.push(l),k.push(mw([m],[l],l.itag,l.width,l.height,l.fps))}else f.push(l);k.push(mw(f,c,"93",0,0,0,"auto",d));d=Iv(b.F,k)}else d=[]}else d=[];if(d.length)return d}if(a.Qf&&
a.Fo)return d=pw(a.Qf),Iv(b.F,d);d=Mw(a,a.Sf,a.fmtList);a.hlsvp&&(e=a.hlsvp,p=a.hh,c={cpn:a.clientPlaybackNonce},-1==e.indexOf("/ibw/")&&(c.ibw=p?String(p):"1369843"),e={url:Tg(e,c),type:"application/x-mpegURL",quality:"auto",itag:"93"},d.push(e));return qw(b,d)};var Rw=function(a){return a.o&&a.o.A||null};var Sw=function(a){a.fj||(a.B.storyboard_spec?a.fj=new hu(a.B.storyboard_spec,a.lengthSeconds):a.B.live_storyboard_spec&&a.j&&(a.fj=new ku(a.B.live_storyboard_spec,a.j)));return a.fj};
var Tw=function(a){var b=Sw(a);!a.Ui&&b&&(a.Ui=new $t(b),H(a,a.Ui));return a.Ui};var Uw=function(a){return a.j&&!(0,window.isNaN)(dt(a.j))?dt(a.j):0};var Vw=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.Qf)};var Ww=function(a){return!!(a.j||a.Sf||a.Qf||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};var Xw=function(a){var b=E(a.H,"ypc");a.ypcPreview&&(b=!1);return Vw(a)&&!a.Pd&&!a.ga&&!a.W&&(Ww(a)||E(a.H,"fresca")||b)};
var Mw=function(a,b,c){b=mj(b);var d={};c&&F(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});F(b,function(a){a.url&&(a.url=Tg(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);return b};var zw=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b};
var Ew=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Qa=c[1],Dw.test(a.Qa)&&-1==a.Qa.search(rw.G)||(a.Qa=""))}};var Fw=function(a){a=mj(a);var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b};var ww=function(a,b){for(var c=mj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;vw.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&&(e=Yw,f.format=Zw?e.Ss:e.Rs),a.captionTracks.push(new Jt(f)))}};
var xw=function(a,b){for(var c=mj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new It({languageCode:e.lc,languageName:e.n}))}};
var Qw=function(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.T),c=0;c<a.Aa.length;c++)for(var d=a.Aa[c],e=0;e<b.length;e++){var f=b[e],k=f.Gb.id==d.aid;if(f==a.T&&c==a.sb||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.gk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.ug=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.tn=(0,window.parseInt)(d.v,10)}}};var $w=function(a,b){return!!a.B[b]};
var ax=function(a){return a.Ea&&!a.Ed};var bx=function(a){return a.Ea&&a.Ed};var cx=function(a){if(a.Ta||a.Qc["3D"])return!0;a=a.Qc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
var dx=function(a){Oj.call(this);this.startSeconds=0;this.K=!1;this.j=0;this.title="";this.A=0;this.o=[];this.H=this.D=!1;this.$=this.ac=this.F=null;this.views=0;this.U=0!=a.fetch;this.B=[];this.j=Math.max(0,a.index||0);this.G=!!a.loop;this.startSeconds=a.startSeconds||0;this.T="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.N={};a.video_id&&(this.o[this.j]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list=
"PL"+a.api:a.playlist=a.api);this.J=0;if(a.list)switch(a.listType){case "user_uploads":ex(this,a.list);break;case "user_favorites":fx(this,a.list);break;case "search":gx(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.C=Xq(a.list),a.video?(this.o=a.video.slice(0),this.D=!0):hx(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.j&&(this.o=[]);F(b,function(a){a&&this.o.push({video_id:a})},this);this.A=this.o.length;b=P(this.o,function(a){return a.video_id});
ix(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.D=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in rw.o)b="playlist_"+c,b=a[b+"_webp"]||a[b],Dw.test(b)&&(this.N[rw.o[c]]=b);this.L=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};var jx=function(a){return!!(a.playlist||a.list||a.api)};var kx=function(a,b){var c=a.j+1;c>=a.A&&(c=a.G||b?0:-1);return c};var lx=function(a,b){var c=a.j-1;0>c&&(c=a.G||b?a.A-1:-1);return c};
var mx=function(a,b){var c=kx(a,b);if(-1==c)return null;nx(a,c);return a.nb(c)};var ox=function(a,b){var c=lx(a,b);if(-1==c)return null;nx(a,c);return a.nb(a.j)};var nx=function(a,b){a.j=je(b,0,a.A-1);a.startSeconds=0};var ex=function(a,b){a.H||(a.C=new Wq("UU","PLAYER_"+b),ix(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};var fx=function(a,b){a.H||(a.C=new Wq("FL","PLAYER_"+b),ix(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
var gx=function(a,b){if(!a.H){a.C=new Wq("SR",b);var c={search_query:b};a.T&&(c.mob="1");ix(a,"/search_ajax?style=json&embeddable=1",c)}};var hx=function(a){if(!a.H){var b={list:a.C},c=a.nb();c&&c.videoId&&(b.v=c.videoId);ix(a,"/list_ajax?style=json&action_get_list=1",b)}};var ix=function(a,b,c){a.U&&yj(Tg(b,c),{format:"JSON",jb:function(a,b){px(this,b)},onError:function(){this.O("error")},context:a})};
var px=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.G=b.loop);var c=a.nb();a.o=[];F(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.o.push(a))},a);a.A=a.o.length;b.index?a.j=b.index:qx(a,c);a.setShuffle(!1);a.H=!1;a.D=!0;a.J++;a.F&&a.F()}};var qx=function(a,b){if(b){var c=b.videoId;if(!a.o[a.j]||a.o[a.j].video_id!=c)for(var d=0;d<a.o.length;d++)if(a.o[d].video_id==c){a.j=d;break}}};
var rx=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 sx=function(a){return(!fa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var tx=function(a){return jx(a)?(a.fetch=0,new dx(a)):new rw(a)};
var ux=function(a,b,c,d){var e=b.nb();M(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Pe();d=b.Cc(c,d?d:"mqdefault.jpg");var k=b instanceof rw?rx(b.lengthSeconds):null,l=!!f,f=l&&"RD"==Xq(f).type;c={title:b.title,author:b.author,watch:Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.vk(c),episodic_title:b.title,is_episodic:e.Vk,is_featured:e.Bo,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof dx&&(c.playlist_length=b.A,c.episodic_length=
b.A,c.episodic_index=b.j);a.update(c)};
var vx=function(a){var b=["div","ytp-upnext",{tabindex:28,"aria-label":"{{watch}}"},["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"],["span","ytp-upnext-top",["span","ytp-upnext-header",Q("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",Q("YTP_AUTOPLAY_PAUSED_2")]],
["span","ytp-upnext-close"]];R.call(this,b);var c=this.oa["ytp-upnext-cancel"],b=this.oa["ytp-upnext-close"],d=new R(["button",["ytp-upnext-cancel-button","ytp-button"],{"aria-label":Q("YTP_AUTOPLAY_CANCEL"),tabindex:29},Q("YTP_CANCEL")]);H(this,d);d.R("click",this.Bs,this);d.j(c);c=new R(["button",["ytp-upnext-close-button","ytp-button"]]);H(this,c);c.R("click",this.Bs,this);c.j(b);b=this.oa["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.B=a;this.F=Ze("ytp-svg-autoplay-ring",this.element);this.o=this.C=null;this.D=0;S(this,b,"click",this.yF);this.bp();S(this,a,"autonavvisibility",this.bp)};var wx=function(a){a.o||(Mi("a11y-announce",Q("YTP_PLAYLIST_UP_NEXT")+" "+a.C.title),a.D=Vs(),a.o=new Td(a.Lm,25,a),a.Lm());Yd(a.element,"ytp-upnext-autoplay-paused")};var xx=function(a){yx(a);a.D=Vs();a.Lm();L(a.element,"ytp-upnext-autoplay-paused")};var yx=function(a){a.o&&(a.o.dispose(),a.o=null)};
var zx=function(a,b){R.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.o=0;this.H=null};
var Ax=function(a){var b=a.V().experiments.na("video_wall_redesign");R.call(this,["a","videowall-still",{tabIndex:28,href:"{{url}}","aria-label":"{{watch}}","data-is-episodic":"{{is_episodic}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},["div",b?"ytp-redesign-videowall-still-image":"videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",Q("YTP_FEATURED")],["span",b?"ytp-redesign-videowall-still-info":"videowall-still-info",
["span",b?"ytp-redesign-videowall-still-info-bg":"videowall-still-info-bg",["span",b?"ytp-redesign-videowall-still-info-content":"videowall-still-info-content",["span",b?"ytp-redesign-videowall-still-info-title":"videowall-still-info-title","{{title}}"],["span",b?"ytp-redesign-videowall-still-info-author":"videowall-still-info-author","{{author}}"],["span",b?"ytp-redesign-videowall-still-info-duration":"videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",
b?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Q("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",b?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],
["span","videowall-still-listlabel-icon"],Q("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix",b?"ytp-redesign-videowall-still-listlabel":"videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Q("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.B=a;this.o=null;this.R("click",this.C);this.R("keypress",this.D)};
var Bx=function(a,b,c){Dq.call(this,a,b,"videowall-endscreen");this.W=c;this.G=0;this.C=[];this.F=this.B=null;this.K=this.T=!1;this.L=new Td(pa(L,this.element,"ytp-show-tiles"),0);H(this,this.L);this.P=new tq(["div","ytp-endscreen-content"]);H(this,this.P);this.P.j(this.element);this.o.V().experiments.na("video_wall_pagination")&&(b=new R(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":Q("YTP_NEXT")}]),H(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.j(this.element),b.R("click",this.vy,this),b=new R(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":Q("YTP_PREVIOUS")}]),H(this,b),b.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>',b.j(this.element),b.R("click",this.wy,this));this.o.V().experiments.na("video_wall_redesign")&&L(this.element,"ytp-endscreen-redesign");this.D=new vx(a);H(this,this.P);
this.D.j(a.ua());this.ea();this.R("transitionend",this.Dd)};var Cx=function(a){return Dx(a.o.V(),a.o.getVideoData(),a.o.gc())&&a.Ih()&&!a.F};var Ex=function(a,b,c,d){return 0==b&&c>=3*Bx.j&&d>=3*Bx.j&&a.B.length&&tx(a.B[0]).nb().Vk?2*Bx.j:Bx.j};var Fx=function(a){var b=Gx(a.W);b!=a.T&&(a.T=b,a.o.app.Oa("autonavvisibility"))};
var Hx=function(a){jq.call(this,a);Di({});this.ra="endscreen";this.G="end";this.o=null;var b=a.V();Ix(a)?this.o=new Bx(this.j,this.P,this):b.Y?this.o=new Pq(this.j,this.P):this.o=new Dq(this.j,this.P);this.o.j(this.j.ua())};var Jx=function(a){var b=a.getVideoData(),b=b&&b.Ea;return Kx(a.V())&&1==a.getPresentingPlayerType()&&!b};var Lx=function(a){var b=a.j.getVideoData(),c=!Ix(a.j)||!(!b.F||!b.F.length);a.j.V();b=$w(b,"ypc_module");a=Mx(a.j.app);return c&&!b&&!a};
var Ix=function(a){a=a.V();return a.wc&&!a.Y};var Gx=function(a){return a.o instanceof Bx&&a.o.A&&Cx(a.o)};var Nx=function(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new fq(b,0x8000000000000,{id:"preload"}),c=new fq(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.cb([b,c])};var Ox=function(a){return Jx(a)?new Hx(a):null};var Px=function(a){return(a=Qx[a.toString()])?a:"YTP_ERROR_LICENSE"};
var Rx=function(){var a=[],b=[];return{start:function(b){return a[b]},end:function(a){return b[a]},length:a.length}};var Sx=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 Tx=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 Ux=function(a,b){var c=Tx(a,b);return 0<=c?a.end(c):window.NaN};var Vx=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
var Wx=function(a,b){var c=Ux(a,b);return 0<=c?c-b:0};var Xx=function(){};var Yx=function(a){var b=a.duration||0;return window.Infinity==b?1:b?(0<Vx(a.buffered)&&a.duration?Ux(a.buffered,a.currentTime):0)/b:0};var Uq=function(a){a.src&&(Mv&&0<a.readyState&&(a.currentTime=Math.max(Zx,0)),a.removeAttribute("src"),a.load(),!a.Te||!a.Te.j||a.Te&&a.Te.equals(null)||(a.Te&&a.Te.dispose(),a.Te=null))};var $x=function(a,b){a.defaultPlaybackRate=b;a.playbackRate=b};
var ay=function(a,b){this.o=a||64;this.j=b||null};
var by=function(a,b,c,d){if(U(a,128))return a;var e=a.o,f=a.j,k=b.target;if(!U(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.j.ended||"ended"==b.type&&(k.j.ended||1>Math.abs(k.getCurrentTime()-k.j.duration)))0<k.j.networkState&&k.j.src&&(e=14,f=null);else if("pause"==b.type)U(a,256)?(e^=256)||(e=64):U(a,32)||U(a,2)||U(a,4)||(e=4,U(a,1)&&U(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,U(a,32)&&(e|=32),d&&U(a,1)&&cy(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.getErrorCode())b=
"progressive.net";else if(3==k.getErrorCode())b="fmt.decode";else if(4==k.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:Q("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)dy(a)&&cy(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=ey(k)&&(e|=1),e&=-3;else if("waiting"==b.type)U(a,2)||(e|=1);else if("timeupdate"==b.type)U(a,16)||U(a,4)||(e=cy(c,k)?e|1:e&-2),1<k.j.readyState&&
0<k.getCurrentTime()&&(e&=-65);else return a;return fy(a,e,f)};var cy=function(a,b){return a?gy(a,b.getCurrentTime(),Vs(),ey(b)):!1};var fy=function(a,b,c){return b==a.o&&c==a.j||b&128&&!c||b&2&&b&16?a:new ay(b,c)};var hy=function(a,b){return fy(a,a.o|b)};var iy=function(a,b){return fy(a,a.o&~b)};var jy=function(a){return fy(a,(a.o|4)&-9)};var U=function(a,b){return!!(a.o&b)};var dy=function(a){return U(a,8)&&!U(a,2)};var ky=function(a){return U(a,64)&&!U(a,8)&&!U(a,4)};
var ly=function(a){return U(a,1)&&!U(a,2)};var my=function(a){return U(a,128)?-1:U(a,2)?0:U(a,1)&&!U(a,32)?3:U(a,64)?-1:U(a,8)?1:U(a,4)?2:-1};
var ny=function(a,b,c){Oj.call(this);this.D=b;this.j=7500+Math.floor(15E3*Math.random());this.F=c.innertubeApiKey;this.G=JSON.stringify({context:{client:{clientName:c.hx,clientVersion:c.innertubeContextClientVersion,hl:c.jx,gl:c.ix}},videoId:a});this.H="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.o=new Td(A(this.C,this));H(this,this.o);this.C()?this.o.start(this.j):this.o.start(1E4)};
var oy=function(a){var b=window.location;a=Tg(a,{})+"";a=a instanceof Ge?a:Je(a);b.href=Ie(a)};var py=function(a,b){var c=wi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=wi("VALID_SESSION_TEMPDATA_DOMAINS",[]);d.push(Kg(window.location.href));var e=Kg(a);if(E(d,e)||!e&&ta(a,"/"))if(d=Hg(a),d=Gg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d=wi("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Va(d).toString(36):"s_tempdata-"+Va(d),c=c?Rg(c):"",fk(d,c,5)}};
var qy=function(a,b){window.open(a,b||Va(a).toString(36))};var ry=function(a){var b=!a.V().wa&&3!=a.getPresentingPlayerType();return a.Ia()||b};var sy=function(a,b,c){if(!c&&sx(a))return Wl(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");py(a,null);return!1};var ty=function(a,b,c){if(uy(b.V())&&2!=b.getPresentingPlayerType()){if(sx(c))return b.Ia()&&vy(b),Wl(c),!0}else{var d=sx(c);d&&b.pauseVideo();py(a,null);d&&(qy(a),Wl(c))}return!1};
var wy=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 yy=function(a){R.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.o=a;this.R("click",this.B,
this)};var zy=function(a){R.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.o=[];this.B=a;this.C=!1};
var Ay=function(a,b){xq(a,"suggested_sidebar_title",b.o?Q("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.o}):"");var c=a.oa["ytp-fresca-suggested-sidebar-close-button"];c.innerHTML=Bh();S(a,c,"click",a.uy);Nb(a.o);a.o=[];F(b.j,function(a,b){if(!(5<=b)&&a){var c=new R(["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:"+By(a),l=Cy(a);c.update({suggested_title:a.xr,suggested_content:Dy(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.oa["ytp-fresca-suggested-image-badge"];M(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.R("click",this.Bx,this);this.o.push(c)}},a);xq(a,"sidebar_items",a.o)};
var Ey=function(a){R.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-livestreaming-animation",["div","ytp-fresca-livestreaming-icon"]]]],["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.D=0;this.o=null;this.F=-1;this.C=new yy(a);H(this,this.C);this.B=new zy(a);H(this,this.B);this.C.ea();this.C.j(this.element);this.B.ea();this.B.j(this.element);var b=this.oa["ytp-fresca-livestreaming-icon"];b.innerHTML='<svg height="100%" version="1.1" viewBox="0 0 500 500" width="100%"><defs><mask id="ytp-svg-23"><circle cx="249.375068" cy="248.904023" fill="white" r="210"><animate attributeName="r" begin="indefinite" dur="4s" from="45" repeatCount="indefinite" to="210" /></circle><circle cx="249.375068" cy="248.904023" fill="black" r="0"><animate attributeName="r" begin="indefinite" dur="4s" from="-135" repeatCount="indefinite" to="130" /></circle></mask></defs><circle cx="250.4" cy="249.4" fill="#d90000" r="189.6" /><circle cx="249.375068" cy="248.904023" fill="#fff" r="31.246614" /><g mask="url(#ytp-svg-23)"><path d="M345.34,344.49 C370.89,319.04 385.83,285.02 385.83,248.90 C385.83,212.21 371.63,178.25 346.59,153.31 L332.13,167.72 C353.34,188.84 365.38,217.62 365.38,248.90 C365.38,279.47 352.69,308.36 330.88,330.08 L345.34,344.49 Z" fill="#fff" /><path d="M311.60,310.87 C328.23,294.30 338.34,271.56 338.34,247.65 C338.34,224.28 328.86,201.63 312.85,185.68 L298.38,200.08 C310.58,212.23 317.89,229.70 317.89,247.65 C317.89,265.98 310.05,283.60 297.13,296.47 L311.60,310.87 Z" fill="#fff" /><path d="M185.90,186.92 C169.88,202.88 160.40,225.53 160.40,248.90 C160.40,272.54 170.06,295.10 187.14,312.12 L201.61,297.72 C188.30,284.47 180.85,267.06 180.85,248.90 C180.85,230.94 188.16,213.47 200.36,201.33 L185.90,186.92 Z" fill="#fff" /><path d="M153.40,153.31 C128.36,178.25 114.16,212.21 114.16,248.90 C114.16,286.07 128.71,320.02 154.85,344.68 L168.91,329.89 C146.87,309.09 134.61,280.50 134.61,248.90 C134.61,217.62 146.65,188.84 167.86,167.72 L153.40,153.31 Z" fill="#fff" /></g></svg>';
if(!a.V().C)for(a=b.getElementsByTagName("animate"),b=0;b<a.length;b++)a[b].setAttribute("begin",0)};
var Fy=function(a,b,c){if(!a.o||a.o.state!=b.state||a.o.startTime!=b.startTime||a.o.imageUrl!=b.imageUrl||a.o.messageText.join()!=b.messageText.join()||c)if(a.o=b,b=Gy(b),M(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.o.imageUrl,b=a.oa["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=a.o.getMessage(),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.G(!0),a.o.o)if(Hy(a.o.o)&&!Gy(a.o)){b=a.C;c=a.o.o.j[0];var d;
d=a.o.o;d=d.o?Q("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.o}):"";var e="background-image:"+By(c);b.update({suggested_header_central:d,suggested_title:c.xr,suggested_content:Dy(c),badge_content:Cy(c),link_destination:c.getVideoUrl(),image_style:e});M(b.oa["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.C.show();a.B.ea()}else b=a.o.o,!(0<b.j.length)||Hy(b)||Gy(a.o)||a.B.C?a.B.ea():(Ay(a.B,a.o.o),a.B.show()),a.C.ea()};
var Iy=function(a,b,c,d,e,f){x(a)?(this.D="y"==a?b:0,this.C="m"==a?b:0,this.j="d"==a?b:0,this.o="h"==a?b:0,this.A="n"==a?b:0,this.B="s"==a?b:0):(this.D=a||0,this.C=b||0,this.j=c||0,this.o=d||0,this.A=e||0,this.B=f||0)};
var Jy=function(a,b,c){fa(a)?(this.date=Ky(a,b||0,c||1),Ly(this,c||1)):ia(a)?(this.date=Ky(a.getFullYear(),a.getMonth(),a.getDate()),Ly(this,a.getDate())):(this.date=new Date(K()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Ly(this,a))};var Ky=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
var Ly=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};var My=function(){};
var Ny=function(a){if("number"==typeof a){var b=new My;b.A=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(":",Pa(c,2));c=d.join("")}b.B=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=Oy(a);b.C=[c,c];b.j={bI:a,$m:a};b.o=[];return b}b=new My;b.B=a.id;b.A=-a.std_offset;b.C=a.names;b.j=a.names_ext;b.o=a.transitions;return b};
var Oy=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")};var Py=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.o.length&&c>=a.o[d];)d+=2;return 0==d?0:a.o[d-1]};var Qy=function(a,b){this.o=[];this.j=b||Ry;"number"==typeof a?Sy(this,a):Ty(this,a)};
var Ty=function(a,b){for(Uy&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<Vy.length;++c){var d=b.match(Vy[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.o.push({text:d,type:c});break}}};var Sy=function(a,b){var c;if(4>b)c=a.j.Ej[b];else if(8>b)c=a.j.an[b-4];else if(12>b)c=a.j.ht[b-8],c=c.replace("{1}",a.j.Ej[b-8]),c=c.replace("{0}",a.j.an[b-8]);else{Sy(a,10);return}Ty(a,c)};
var Wy=function(a,b){var c;c=String(b);var d=a.j||Ry;if(void 0!==d.Hu){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.Hu+k-48):c.charAt(f))}c=e.join("")}return c};var Xy=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 Yy=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.j.qt[c]:a.j.ut[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),Wy(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.j.cu[c];break a;case 4:k=a.j.Sm[c];break a;case 3:k=a.j.Um[c];break a;default:k=Wy(a,Pa(c+1,k))}return k;case "k":return Xy(e),Wy(a,Pa(e.getHours()||24,k));case "S":return Wy(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));
case "E":return c=d.getDay(),4<=k?a.j.fn[c]:a.j.Vm[c];case "a":return Xy(e),k=e.getHours(),a.j.Nm[12<=k&&24>k?1:0];case "h":return Xy(e),Wy(a,Pa(e.getHours()%12||12,k));case "K":return Xy(e),Wy(a,Pa(e.getHours()%12,k));case "H":return Xy(e),Wy(a,Pa(e.getHours(),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.j.wu[c];break a;case 4:k=a.j.Zm[c];break a;case 3:k=a.j.Ym[c];break a;default:k=Wy(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.j.vu[c];break a;case 4:k=a.j.Wm[c];break a;
case 3:k=a.j.Xm[c];break a;default:k=Wy(a,Pa(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.j.ou[c]:a.j.iu[c];case "d":return Wy(a,Pa(d.getDate(),k));case "m":return Xy(e),Wy(a,Pa(e.getMinutes(),k));case "s":return Xy(e),Wy(a,Pa(e.getSeconds(),k));case "v":return k=f||Ny(c.getTimezoneOffset()),k.B;case "V":return a=f||Ny(c.getTimezoneOffset()),2>=k?a.B:0<Py(a,c)?n(a.j.lt)?a.j.lt:a.j.DST_GENERIC_LOCATION:n(a.j.$m)?a.j.$m:a.j.STD_GENERIC_LOCATION;case "w":return c=a.j.Hj,e=new Date(e.getFullYear(),
e.getMonth(),e.getDate()),b=a.j.Gj||0,c=e.valueOf()+864E5*(((n(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),Wy(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Ny(c.getTimezoneOffset()),4>k?a.C[0<Py(a,c)?2:0]:a.C[0<Py(a,c)?3:1];case "Z":return e=f||Ny(c.getTimezoneOffset()),4>k?(k=-(e.A-Py(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=Wy(a,Oy(e.A-Py(e,c))),k;default:return""}};
var Zy=function(a){this.C=a.thumbnailUrl?a.thumbnailUrl:null;this.j=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.xr=a.title;this.o=a.state;this.A=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.D=a.videoUrl;this.B=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null};var By=function(a){return(a=a.C)?"url("+a+")":""};
var Dy=function(a){if("COMPLETE"==a.o){var b=Math.floor(K()/1E3);a=a.j?b-a.j:0;return 172800<a?Q("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(K()/1E3),a=a.j?a.j-b:0,172800<a?Q("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?Q("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):Q("YTP_FRESCA_STREAMING_SOON")):a.A&&2<a.A?Q("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.A}):Q("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};var Cy=function(a){return"COMPLETE"==a.o&&a.B?rx(a.B):a.isLive()?Q("YTP_FRESCA_LIVE_BADGE"):null};var $y=function(a){this.o=a.channelName?a.channelName:"";this.j=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.j.push(new Zy(a[b]))};var Hy=function(a){return 1==a.j.length&&a.j[0].isLive()};var az=function(a,b){this.state=-1;this.A=a;this.messageText=[];this.B=!1;b&&bz(this,b)};
var bz=function(a,b){var c=b.lifeCycleState;c&&(a.state=cz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.B=0<=fb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});if(c=b.broadcastId)a.broadcastId=c;a.o=new $y(b)};
var dz=function(a){switch(a.state){case 6:return!a.j()&&a.A?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,Q("YTP_FRESCA_EVENT_OFFLINE")]:a.j()?[]:[Q("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),Q("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[Q("YTP_FRESCA_EVENT_OVER_MESSAGE"),Q("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Gy(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.A&&a.startTime){var b=wi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;
Ry={Sm:b.months,Wm:b.months,Um:b.shortMonths,Xm:b.shortMonths,Ej:b.dateFormats,fn:b.weekdays,Zm:b.shortMonths,Vm:b.shortWeekdays,Ym:b.shortWeekdays,Eu:b.weekendRange,Gj:b.firstDayOfWeek,Hj:b.firstWeekCutoffDay,Nm:b.amPms};c=(new Qy(d)).format(new Date(1E3*c))}b=Math.floor(K()/1E3);return[b<=a.startTime?Q("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?Q("YTP_FRESCA_EVENT_STARTING_SOON"):Q("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.A?[Q("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,Q("YTP_FRESCA_EVENT_OFFLINE")]:
a.A?[Q("YTP_FRESCA_EVENT_OFFLINE")]:[Q("YTP_FRESCA_STAND_BY_MESSAGE")]}};var Gy=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(K()/1E3);return E(ez,a.state)&&86459>=b&&86400<=b};
var fz=function(a){jq.call(this,a);this.G=this.ra="fresca";this.A=this.J=!1;this.B=null;Di({YTP_FRESCA_STARTING_SOON_MESSAGE:"Segera dimulai...",YTP_FRESCA_EVENT_OVER_MESSAGE:"Streaming langsung ini sudah selesai.",YTP_FRESCA_COMPLETE_MESSAGE:"Terima kasih sudah menonton!",YTP_FRESCA_STAND_BY_MESSAGE:"Harap tunggu sebentar.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video terhenti",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"Streamer telah menghentikan streaming.",YTP_FRESCA_EVENT_OFFLINE:"Offline",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"Aliran ini",
YTP_FRESCA_EVENT_STARTS_IN:"Tonton streaming langsung!",YTP_FRESCA_EVENT_STARTING_SOON:"Streaming langsung akan segera dimulai",YTP_FRESCA_EVENT_HASNT_STARTED:"Streaming langsung terjadwal ini belum dimulai",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME sedang streaming sekarang!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Streaming langsung lain oleh $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Langsung",YTP_FRESCA_LIVE_DAYS_AGO:"Streaming $DAYS hari yang lalu",YTP_FRESCA_LIVE_HOURS_AGO:"Streaming $HOURS jam yang lalu",
YTP_FRESCA_LIVE_RECENTLY:"Disiarkan langsung baru-baru ini",YTP_FRESCA_LIVE_IN_DAYS:"Disiarkan langsung dalam $DAYS hari",YTP_FRESCA_LIVE_IN_HOURS:"Disiarkan langsung dalam $HOURS jam",YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT pemirsa sedang menonton sekarang",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"Sedang streaming",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS hari",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS jam"});this.D=!1};
var gz=function(a,b){var c;c=!!b.getMessage().length||!!b.imageUrl;if(a.A||!(6>b.state))if(a.j.app.j.J&&(b.imageUrl||b.messageText.length))c=!0;else{var d=hz(a.j),d=ly(d)||U(d,2),e;if(e=!a.o.j())(e=!a.A)||(e=!(hz(a.j).gb()&&!ax(a.j.getVideoData())&&!a.j.app.j.J)&&d);c=e||a.J&&a.j.app.j.J||!a.A&&6<b.state?c:!1}if(!a.A)switch(b.state){case 6:b.j()&&(a.A=!0,nq(a));break;case 8:case 7:a.A=!0}c&&Fy(a.C,b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()};
var iz=function(a){return $w(a.getVideoData(),"fresca_module")?new fz(a):null};var jz=function(a,b){if(!a.o||!a.o.equals(b)){a.o=b;var c=a.j,d;d={hasActiveStream:b.j(),imageUrl:b.imageUrl,messageText:b.getMessage(),startTime:b.startTime,state:b.state};kz(c,d)}};var lz=function(){if(!vc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
var mz=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(nz){var b=oz();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};var pz=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 qz=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Ve(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=Ve(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
var oz=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 rz=function(a){this.o=a||window;this.j=[]};var sz=function(a,b,c){c=A(c,a.o);b=Nl(b,"mouseleave",c);a.j.push(b);return b};var tz=function(a,b,c,d){c=A(c,d||a.o);b=Pl(b,c);a.j.push(b)};
var uz=function(a,b,c){G.call(this);this.j=null;this.B=!1;this.D=a;this.C=c;this.o=b||window;this.A=A(this.Ov,this)};var vz=function(a){a=a.o;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
var wz=function(a){a=a.o;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var xz=function(a){a=ka(a);delete yz[a];ac(yz)&&zz&&zz.stop()};var Az=function(){zz||(zz=new Td(function(){Bz()},20));var a=zz;a.isActive()||a.start()};var Bz=function(){var a=K();Ob(yz,function(b){Cz(b,a)});ac(yz)||Az()};
var Dz=function(){J.call(this);this.j=0;this.endTime=this.startTime=null};var Ez=function(a,b,c,d){Dz.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.A=a;this.G=b;this.duration=c;this.D=d;this.o=[];this.progress=this.F=0;this.C=null};
var Cz=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<=a.progress&&(a.progress=1);a.F=1E3/(b-a.C);a.C=b;Fz(a,a.progress);1==a.progress?(a.j=0,xz(a),a.Wb(),a.Mg()):a.gb()&&a.nl()};var Fz=function(a,b){ha(a.D)&&(b=a.D(b));a.o=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.o[c]=(a.G[c]-a.A[c])*b+a.A[c]};var Gz=function(a,b){jc.call(this,a);this.x=b.o[0];this.y=b.o[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.F;this.state=b.j};
var Hz=function(a){return Math.pow(a,3)};var Iz=function(a){return 3*a*a-2*a*a*a};var Jz=function(){this.j=[]};var Kz=function(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c};var Lz=function(a,b,c){return a.j.slice(Mz(a,b),null==c?a.j.length:Mz(a,c))};var Mz=function(a,b){var c=Ab(a.j,function(a){return b-a.start||1});return 0>c?-(c+1):c};
var Nz=function(a,b){for(var c=void 0,d=0;d<a.j.length;d++){var e=a.j[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 Oz=function(a,b,c,d,e){G.call(this);this.A=0;this.H=!1;this.D=null;this.G=this.C=this.F=!1;this.N=a;this.P=b;this.L=c;this.U=d;this.K=e;this.J=new Td(this.Jc,250,this);H(this,this.J);this.B=new Td(this.Jc,0,this);H(this,this.B);this.o=[];this.j=new Jz};
var Pz=function(a,b){var c=[];if(!b.length)return c;b.sort(iq);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.o.indexOf(e)&&(a.o.push(e),c.push([1,e]))}return c};var Qz=function(a,b){var c=[];if(!b.length)return c;b.sort(iq);for(var d=0;d<b.length;d++){var e=b[d],f=a.o.indexOf(e);0>f||(a.o.splice(f,1),c.push([2,e]))}return c};var Rz=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];1==d[0]?(e.B&&hq(e).O("onEnter",e),a.K("crn_"+e.j,e)):(e.B&&hq(e).O("onExit",e),a.K("crx_"+e.j,e))}};
var Sz=function(a){return U(a.L(),2)?0x8000000000000:1E3*a.N()};var Tz=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 Uz=function(a){return da(a)&&a.length?a[0]:a};var Vz=function(a){var b=/.+/;return x(a)&&null!=b&&null!=a&&a.match(b)?a:""};
var Wz=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 Xz=function(a){return x(a)?a:""};var Yz=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};var Zz=function(a,b){return"true"==a||"false"==a?"true"==a:b};var $z=function(a,b){return x(a)?(0,window.parseFloat)(a):b};
var aA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return je(a,b,c);if(a>=b&&a<=c)return a}return e};var bA=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;F(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b};var cA=function(a,b){if(null==a)return null;if(ea(a)){var c=[];F(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]};
var dA=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}return(a=a?new pe((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 eA=function(a){function b(a){return Zd(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};var fA=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Gi=d};
var gA=function(a){if(!a)return null;var b=Xz(a.value);if(!b)return null;var c=Yz(a.target,hA,"current");return null==c?null:new fA(b,c,Zz(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};var iA=function(a){return a.value?a.value:null};var jA=function(a){if(!a)return!1;var b=kA(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")};
var kA=function(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};var lA=function(a){a=iA(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!jA(a))||(b=Jg(Hg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=nj(a);if(!b||!b.v)return null;if(b.t)return Tz(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=lj(a[1]))&&a.t?Tz(a.t):-1};
var mA=function(a){a=iA(a);a=a.replace(/https?:\/\//g,"");return jA(a)?(a=nj(a))&&a.v?a.v:null:null};var nA=function(a,b,c,d){a=iA(a);if(!a)return null;if(jA(a))return"ei"in nj(a)&&(a=Xg(a,"ei")),pj(a,{feature:"iv",src_vid:c,annotation_id:b},!1);a?(b=kA(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1;b&&d?(d=pa(oA,d.pageId,d.yb),a=new O(a),ch(a,d(a.A)),d=a.toString()):d=a;return d};
var oA=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 pA=function(a,b){return b?b:jA(a)?"current":"new"};var qA=function(a){this.o=a;this.j=0;this.C=window.NaN;this.A=0;this.ta=[];this.B=rA(this.o);this.D=this.F=0};var sA=function(a){a.B.startTime=a.A;a.B.endTime=a.j;a.ta.length&&db(a.ta).isEmpty()?a.ta[a.ta.length-1]=a.B:a.ta.length&&a.B.isEmpty()||a.ta.push(a.B);a.F+=a.j-a.A;a.B=rA(a.o);a.A=a.j};
var tA=function(a){return a.F+a.o.A()-a.A};var uA=function(a){a.ta.length&&a.j==a.A||sA(a);var b=a.ta;a.ta=[];return b};var vA=function(a,b,c){c-=a.C;return b==a.j&&.5<c};
var wA=function(a,b){this.experimentIds=(a||"").split(",");this.flags=jj(b||"","&");var c={};F(this.experimentIds,function(a){c[a]=!0});this.experiments=c;xA=xA||this.na("use_legacy_params");this.D=!!c["9408846"];this.o=!!c["932250"]||!!c["9406444"];this.Ca=!!c["945066"]||!!c["9405188"];this.A=!!c["945069"]||!!c["9405408"];this.Y=!!c["945074"]||!!c["9405191"];this.P=!!c["945090"]||!!c["9405409"];this.U=!!c["9416855"];this.B=c["9408912"]?5E3:c["9408913"]?7E3:c["9408914"]?9E3:c["9408915"]?11E3:c["9408916"]?
13E3:c["9408917"]?15E3:1E4;this.fa=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&yA&&yc(8);this.ca=this.na("enable_spherical3d_chrome");this.N=!!c["9417025"];this.La=!!c["9417026"];this.F=!!c["9417027"];this.Yu=!0;this.G=!!c["909722"];this.da=!!c["922333"];this.K=!!c["937009"];this.T=!!c["9408321"];this.enableAudioCast=!!c["9408394"];this.H=!!c["9408807"]||!!c["9414764"];this.L=!!c["9408919"];this.j=!!c["9414740"];this.ZB=!!c["9414661"];this.W=!!c["9414672"];this.showEndToEndLatency=
!!c["9416891"];this.C=!!c["9414843"];this.$=!!c["9418683"];this.ha=!!c["9407182"]};var zA=function(a,b){this.j=b;this.B=!1;this.o=a};var AA=function(a,b,c){zA.call(this,b,c);this.C=a};var BA=function(a){dj("yt-player-bandwidth",a,2592E3)};var CA=function(){return fj("yt-player-quality")||"auto"};
var DA=function(a){G.call(this);this.j=a;this.A={};this.P=window.NaN;this.D=new Td(this.fz,3E4,this);H(this,this.D);this.F=new Td(this.Li,100,this);H(this,this.F);this.o="N";this.C=0;this.N=window.NaN;this.U=0;this.J=this.W="";this.Y=-1;this.H=this.K=0;this.L=this.G=!1;this.B=null;window.navigator.getBattery&&window.navigator.getBattery().then(A(function(a){this.B=a},this))};var EA=function(a,b,c,d){var e=a.A[c];e||(e=[],a.A[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
var FA=function(a){var b={event:"streamingstats"};if(a.j.j.o){b.fmt=a.j.j.o.id;var c=a.j.j.D;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.clientPlaybackNonce;b.ei=a.j.j.eventId;b.el=a.j.o.Ba;b.docid=a.j.j.videoId;b.ns=a.j.o.$;b.fexp=a.j.o.experiments.experimentIds.toString();b.cl=a.j.o.fa;a.j.o.D&&(b.adformat=a.j.o.D);a.j.j.Ea&&(b.live=a.j.j.Ed?"dvr":"live");b.html5="1";return b};var GA=function(a,b){var c=a.A.cat||[];c.push(b);a.A.cat=c};
var HA=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.ha=this.Ha=this.La=this.T=this.Aa=this.autoplay=this.autonav=!1;this.Ca="yt";this.H=this.o=this.C=null;this.Y=!1;this.B="watchtime"==c;this.W="playback"==c;this.Da="delayplay"==c;this.U="atr"==c;this.Fa="engage"==c;this.ca=!1;this.Ua=this.U?"/api/stats/"+c:"//"+b.bd+"/api/stats/"+c;d&&(this.La=d.fs,d.rtn&&(this.o=d.rtn),this.B?(this.bc=d.state,0<d.rti&&(this.C=d.rti)):(this.Na=d.mos,this.Sa=d.volume,d.at&&(this.adType=d.at),d.allowed&&
(this.J=d.allowed),d.ex_ads&&(this.N=d.ex_ads)),d.autonav&&(this.autonav=d.autonav));this.bb=b.D;this.autoplay=b.autoplay;this.qb=b.da;this.rb=ec(b.o);this.wa=b.U;this.sb=b.Ba;this.experimentIds=b.experiments.experimentIds;this.fa=b.W;this.Ca=b.$;this.region=b.region;this.Mc=b.fa?b.fa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Va=IA();this.ca=b.experiments.j;xA&&(this.referrer=b.referrer,this.A=b.ha,this.searchQuery=b.searchQuery);this.F=a.oauthToken||this.F;this.autoplay=
a.Hg||this.autoplay;this.autonav=a.Uk||this.autonav;this.H=a.kj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.P=a.vssCredentialsToken;this.qa=a.Zl;this.G=a.ij;this.da=a.Oe;a.o&&(this.la=a.o.id,a.D&&a.D.id!=this.la&&(this.L=a.D.id));this.ha=a.Xf;this.Mb=a.jj;a.Ea&&(this.Qa=a.Ed?"dvr":"live");this.$b=a.pm;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Ua||a.playlistId;this.ga=a.ca;this.ka=a.da;this.wc=a.qe;this.subscribed=a.subscribed;this.videoId=a.videoId;this.xc=a.Iu;
this.visitorData=a.visitorData;this.osid=a.osid;this.ac=a.Mm;xA?this.A=a.qa||this.A:(this.referrer=a.referrer,this.A=a.qa||a.pe,this.searchQuery=a.searchQuery)};
var JA=function(a){var b={ns:a.Ca,el:a.sb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.j(a.G),plid:a.playbackId,ei:a.eventId,fmt:a.la,fs:a.La?"1":"0",rt:a.j(a.Ta),of:a.ac,adformat:a.bb,content_v:a.qb,euri:a.wa,subscribed:a.subscribed,lact:a.Va,live:a.Qa,cl:a.Mc,mos:a.Na,q:a.searchQuery,osid:a.osid,state:a.bc,vm:a.xc,volume:a.Sa};qa(b,a.rb);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.T&&(b["final"]="1");a.ha&&(b.splay="1");a.da&&(b.delay=a.da);a.fa&&(b.hl=
a.fa);a.region&&(b.cr=a.region);n(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);n(a.$)&&(b.len=a.j(a.$));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.j(a.o));a.A&&(b.feature=a.A);a.playlistId&&(b.list=a.playlistId);a.ga&&(b.ctrl=a.ga);a.ka&&(b.ytr=a.ka);a.wc&&(b.ssrt="1");a.L&&(b.afmt=a.L);a.B?(b.idpj=a.Mb,b.ldpj=a.$b,null!=a.C&&(b.rti=a.j(a.C))):(n(a.adType)&&(b.at=a.adType),n(a.J)&&(b.allowed=a.J),n(a.N)&&(b.ex_ads=a.N));(a.W||a.Da)&&a.H&&(b.tst=
a.H);a.B&&(b.st=KA(a,P(a.segments,function(a){return a.startTime})),b.et=KA(a,P(a.segments,function(a){return a.endTime})));Gh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=KA(a,P(a.segments,function(a){return a.visibilityState})));Gh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=KA(a,P(a.segments,function(a){return a.playbackRate})));Gh(a.segments,function(a){return"-"!=a.Wj})&&(b.cc=P(a.segments,function(a){return a.Wj}).join(","));if(Gh(a.segments,function(a){return!!a.Sj})){var c=
"au";a.W&&(c="au_d");b[c]=P(a.segments,function(a){return a.Sj}).join(",")}rj()&&a.P&&(b.ctt=a.P,b.cttype=a.qa);a.Fa&&(b.etype=n(a.D)?a.D:0);return b};var KA=function(a,b){return P(b,a.j).join(",")};var LA=function(a){G.call(this);this.j=a;this.A=new DA(a);H(this,this.A);this.o=new qA(a);this.D="paused";this.F=window.NaN;this.H=[10,10,10,40];this.J=this.G=0;this.P=this.N=this.L=this.K=this.B=!1;this.C=window.NaN;this.U=new AA(this.o,this.j.j,this.j.o)};
var MA=function(a,b,c){var d=NA(a.j);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c=c+e;d=1E3*(c-d);a.F=xi(A(a.Sy,a,c,b),d);return c};var OA=function(a,b){var c=PA(a.j);qa(c,{state:a.D});c=new HA(a.j.j,a.j.o,b,c);c.G=a.j.A();a.j.j.Ea||(c.$=a.j.D());c.Ta=NA(a.j);c.segments=[rA(a.j)];return c};var QA=function(a,b){var c=OA(a,"watchtime");c.segments=b;c.G=a.o.j;return c};var RA=function(a){a.o.update();return QA(a,uA(a.o))};
var SA=function(a){a.j.j.remarketingUrl&&!a.N&&(TA(a,a.j.j.remarketingUrl),a.N=!0);a.j.j.ppvRemarketingUrl&&!a.P&&(TA(a,a.j.j.ppvRemarketingUrl),a.P=!0);UA(a)};
var VA=function(a,b){if(!a.isDisposed()){U(b.state,2)?(a.D="paused",0<WA(b,2)&&a.B&&RA(a).send()):U(b.state,8)?(a.D="playing",a.B&&(0,window.isNaN)(a.F)&&MA(a,!1)):a.D="paused";var c=a.A,d=b.state,e=NA(c.j),f;f=b.state;if(U(f,128))f="ER";else if(U(f,16)||U(f,32))f="S";else{var k=XA[my(f)];"B"==k&&U(f,4)&&(k="PB");f=k}if(f!=c.o){k=f;if(!(e<c.C)){if("PL"==c.o)c.H+=e-c.C;else if("B"==c.o&&c.G&&(c.G=!1,c.K+=e-c.C,!c.L&&10<=c.K&&180>=c.H)){c.j.G();if(!c.isDisposed()){var l=FA(c);l.qoealert="1";l=Tg(c.j.o.$c,
l);Yp(l)}c.L=!0}"B"!=k||"PL"!=c.o&&"PB"!=c.o||(c.G=!0);c.C=e}!c.j.o.experiments.o||"B"!=f&&"PB"!=f?EA(c,e,"cmt",[c.j.A().toFixed(3)]):c.Li(e);EA(c,e,"vps",[f]);c.o=f}if(U(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(U(d,2)||U(d,128))&&c.Rg(e);a.C&&U(b.state,128)&&(a.Qi("error-100"),Ai(a.C))}};var YA=function(a){a.C=zi(A(a.Qi,a,"heartbeat"),3E4)};
var UA=function(a){a.j.j.C.eventLabel=a.j.o.Ba;a.j.j.C.playerStyle=a.j.o.j;a.j.j.ka&&(a.j.j.C.feature="pyv");a.j.j.C.vid=a.j.j.videoId;a.j.j.C.isAd=!("adunit"!=a.j.o.Ba&&!a.j.j.ka)};var TA=function(a,b,c){a.j.o.experiments.j&&a.j.j.visitorData&&qj(b)?yj(b,{Wb:c,headers:{"X-Goog-Visitor-Id":a.j.j.visitorData}}):Yp(b,c)};var ZA=function(a,b){this.aa=b;this.j={}};
var $A=function(a,b,c){if(b){var d=aB(a,b);a.j[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=bB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);cB(a,d,b)}};var dB=function(a,b,c,d,e,f){if(b){var k=aB(a,b);k["iv-event"]=3;k["i-time"]=a.j[b]||"";gc(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=bB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);cB(a,k,b,c,f)}};
var eB=function(a,b){if(b){var c=aB(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";var d=[];if(30==c["a-type"]){var e=bB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}cB(a,c,d)}};var bB=function(a,b,c){a=a.aa.getVideoData();if(a.bb){if((c=a.bb[c])&&Hw.test(c))return a=wa("[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.la)return oj(a.la,{label:c,value:"a_id="+b});return""};
var cB=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)}F(c||[],function(a){f++;Yp(a,k)});e&&(f++,0!=e&&a.aa.$f(e,k));a.ab(b,k)};var aB=function(a,b){var c={};if(b){var d=new fh(b);F(d.Ma(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.aa.getCurrentTime().toFixed(2);c.ps=a.aa.V().j;return c};
var fB=function(a,b,c,d){d=aB(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;cB(a,d,c)};var gB=function(a,b,c,d){c&&(c=aB(a,c),c["iv-event"]=b,cB(a,c,d))};var hB=function(a,b){this.Y=a;this.context=b;this.$l=!1;this.J=0};var iB=function(a,b,c,d,e,f){b=new fq(b,c,{id:d});b.j="iv-module";e&&hq(b).subscribe("onEnter",e,a);f&&hq(b).subscribe("onExit",f,a);a.context.o.cb([b])};var jB=function(a){return K()-a.J};
var kB=function(a,b,c,d,e,f,k){var l=A(function(){k&&this.context.o.pauseVideo();var a=nj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Xg(b,"ei"));py(b,d);qy(b,"current"==c?"_top":void 0)},a);"new"==c&&(l(),l=null);var m={};m.interval=jB(a);dB(a.context.logger,d,l,m,e,f)};
var lB=function(a,b){R.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.aa=a;this.F=new Lq(this,250,!1);H(this,this.F);this.G=b;this.za=null;this.B=[];this.o=this.D=this.C=null;S(this,a,"cardsteasershow",this.AA);S(this,a,"cardsteaserhide",this.zj);this.R("click",this.qE)};var mB=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];F(a,function(a){b.push(["li","",a])});return b};
var nB=function(a,b){if(b){var c=b.imageUrl,c=["div","ytp-cards-hover-card-image",{style:c?"background-image: url("+c+");":""}];c.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",c],["div","ytp-cards-video-desc",["h2","ytp-cards-hover-card-title",b.title],mB(b.wd)]];a.o=new R(c);a.o.j(a.element);c=Ze("ytp-cards-hover-card",void 0);S(a,c,"click",pa(a.uw,b.Xu,b.sB,b.target,b.Gi))}};
var oB=function(a,b,c,d){xq(a,"text",b);a.F.show();nB(a,d);a.C=new Td(function(){L(this.aa.ua(),"ytp-cards-teaser-shown")},0,a);a.C.start();pB(a.G,!1);a.za=new Td(a.zj,580+c,a);a.za.start();a.B.push(a.R("mouseover",a.za.stop,a.za));a.B.push(a.R("mouseout",function(){this.za.start()}))};
var qB=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.C=b.auto_open||!1;this.Ra=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.j={fx:a.impression,click:a.click,close:a.close,VB:a.teaser_impression,Ol:a.teaser_click}};
var rB=function(a,b,c){qB.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.wd=b.meta_info;this.url=gA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var sB=function(a,b,c){qB.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.A=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=gA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.o=null;b.signin_url&&(this.o=gA({target:"current",value:b.signin_url}));this.F=b.signin_title||null;this.D=b.signin_message||null};
var tB=function(a,b,c){sB.call(this,a,b,c);this.G=b.ypc_flow_type;this.B=b.innertube_request_params};var uB=function(a,b,c){this.j=a;this.o=b;this.A=c};
var vB=function(a,b){var c=["ul",""];F(b.choices,function(a){c.push(["li",b.A+"-"+a.index.toString(),["label",b.B==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.A,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.o&&(d.push("iv-card-unavailable"),
e.push(["div",["iv-card-sign-in"],["h2","",Q("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:iA(b.o)},["span",["iv-button-content"],Q("YTP_SIGN_IN")]]]));d=new R(["div",d,{tabindex:"0"}].concat(e));e=d.element;void 0!==b.B&&wB(b,e);tz(a.j.j,e,pa(a.C,b),a);b.o&&(e=Ze("iv-card-sign-in-button",e),a.o(e,b.o,b.id,b.Ra,b.j.click,5));return d};
var xB=function(a,b,c,d){var e=yB(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=zB(b),l=["iv-card"];b.o&&l.push("iv-card-unavailable");e=["div",l,{tabindex:"0"},["a","iv-click-target",{href:e},AB(b.imageUrl,f),["div","iv-card-content",["h2","",b.title],k]]];b.o&&(e=e.concat([["div",["iv-card-sign-in"],["h2","",b.F],["p","",b.D],["a",["iv-card-sign-in-button","iv-button"],{href:iA(b.o)},["span",["iv-button-content"],Q("YTP_SIGN_IN")]]]]));e=new R(e);BB(a,e,b,c,d);
return e};var CB=function(a,b,c){var d=yB(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.D?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.B&&b.A?["span",e,f,b.A]:"";c=["div",["iv-card",c],{tabindex:"0"},["a","iv-click-target",{href:d},AB(b.F,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],DB(b)]]];c=new R(c);BB(a,c,b);return c};
var EB=function(a){return a.customMessage?["div","iv-card-message",a.customMessage]:""};var AB=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};var DB=function(a){if(!a.wd||0==a.wd.length)return"";var b=["ul","iv-card-meta-info"];F(a.wd,function(a){b.push(["li","",a])});return b};
var zB=function(a){if(!a.customMessage)return"";var b=["iv-card-action","iv-card-primary-link"],c={};a.A&&(b.push("iv-card-action-icon"),c.style="background-image: url("+a.A+");");b=["div",b,c,["span","",a.customMessage]];a.showLinkIcon&&(b.push("\u00a0"),b.push(["span","iv-card-link-icon"]));return b};var wB=function(a,b){FB(a,b);Xd(b,["iv-card-poll-expanded","iv-card-poll-voted"]);b.querySelector("fieldset").disabled=!0};
var FB=function(a,b){var c=0;F(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=Ze(a.A+"-"+e.index.toString(),b),k=Ze("iv-card-poll-choice-percent",e);zf(k,Q("YTP_DRAWER_POLL_PERCENT",{PERCENT:(100*f).toFixed(0)}));e=Ze("iv-card-poll-result-bar",e);Lf(e,"transform","scaleX("+f.toFixed(2)+")")}};
var JB=function(a,b,c){c?(a.j.o.pauseVideo(),a.j.o.Ia()&&vy(a.j.o),dB(a.j.logger,b.Ra,void 0,void 0,b.j.click,5),c()):a.A(b.url,b.id,b.Ra,b.j.click,5)};var yB=function(a,b,c){return b?nA(b,c,a.j.B.videoId,a.j.A):null};var BB=function(a,b,c,d,e){c.o&&KB(a,Xe("iv-card-sign-in-button",b.element),c,c.o,e);KB(a,Xe("iv-click-target",b.element),c,c.url,d)};
var KB=function(a,b,c,d,e){F(b,function(a){if(e){var b=A(function(a){a.stopPropagation();a.preventDefault();dB(this.j.logger,c.Ra,e,void 0,c.j.click,5);return!1},this);this.j.j.R(a,"click",b)}else this.o(a,d,c.id,c.Ra,c.j.click,5)},a)};var LB=function(a,b,c){qB.call(this,a,b,c);this.A=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.wd=b.meta_info;this.url=gA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var MB=function(a,b,c){qB.call(this,a,b,c);this.A=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.B=b.old_vote;this.o=null;b.signin_url&&(this.o=gA({target:"current",value:b.signin_url}))};var NB=function(a,b,c){sB.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new OB(a[b]))};var OB=function(a){this.merchant=D(a.merchant);this.price=D(a.price)};
var PB=function(a,b,c){sB.call(this,a,b,c);this.G=b.ypc_item_type;this.B=b.ypc_item_id;this.H=b.ypc_flow_type};var QB=function(a,b,c){qB.call(this,a,b,c);this.A=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.wd=b.meta_info;this.B=!!b.is_live_now;this.url=gA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var RB=function(a,b,c){qB.call(this,a,b,c);this.F=b.image_url;this.A=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.wd=b.meta_info;this.B=!!b.is_paygated;this.D=!!b.user_has_entitlement;this.url=gA({target:b.target||"new",value:b.url})};
var SB=function(a,b,c){hB.call(this,b,c);this.aa=a;this.ti=this.C=this.P=this.U=!1;this.N=null;this.Uj=new Td(w,c.A.useTabletControls?4E3:3E3);this.o=new uB(c,A(this.Lf,this),A(this.xi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},Q("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":Q("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.F=new R(a);this.D=this.F.element;this.L=new Lq(this.F,
330,!1);this.T=Ze("iv-drawer-header",this.D);this.yc=Ze("iv-drawer-content",this.D);a=["iv-drawer-teaser"];this.o.j.A.experiments.Yu&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:Q("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.W=(new R(a)).element;Ze("iv-drawer-teaser-text",this.W);this.j=[];this.B=this.G=this.A=null;this.H=[];this.context.A.experiments.na("cards_drawer_auto_open")&&
2!=c.o.getPresentingPlayerType()&&(a=this.context.A.experiments.Bc("cards_drawer_auto_open_offset"),c=1E3*c.B.lengthSeconds,b=0<=a?a:c+a,b<c&&(iB(this,b,0x8000000000000,"",this.Uu),a=this.context.A.experiments.Bc("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&iB(this,b,0x8000000000000,"",this.Su)))};var TB=function(a,b){var c=UB(a,b);c&&(c==a.A&&(a.A=null),a.aa.fr(c.fb.id),pf(c.Xj),ob(a.j,c),a.Jh())};
var VB=function(a,b){a.C||(a.L.show(),a.G=new Td(function(){L(this.context.o.ua(),"ytp-iv-drawer-open")},0,a),a.G.start(),a.C=!0,a.J=K(),fB(a.context.logger,7,void 0,b&&b.fb?b.fb.Ra:void 0),F(a.j,function(a){a.Ko||(a.Ko=!0,$A(this.context.logger,a.fb.Ra,a.fb.j.fx))},a),WB(a.aa),a.B=new Td(function(){var a;a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.K=a;this.T.focus()},330,a),a.B.start())};
var XB=function(a){a.C&&(a.L.ea(),Yd(a.context.o.ua(),"ytp-iv-drawer-open"),a.C=!1,fB(a.context.logger,10),WB(a.aa),a.B&&a.B.stop(),a.B=new Td(function(){this.K&&(this.K.focus(),this.K=null)},330,a),a.B.start())};
var YB=function(a){var b=Ze("iv-drawer-close-button",a.D);a.context.j.R(b,"click",a.dv,a);a.context.j.R(a.yc,"touchend",function(){this.Uj.start()},a);a.context.j.R(a.yc,"scroll",a.tv,a);a.N=Ll(a.yc,"mousewheel",A(a.JD,a));a.context.C.subscribe("onHideControls",function(){this.ti=!0},a);a.context.C.subscribe("onShowControls",function(){this.ti=!1},a);a.context.C.subscribe("onVideoAreaChange",function(){this.ti=Wd(this.aa.ua(),"ytp-autohide")},a);a.H.push(Fi("iv-teaser-shown",a.xx,a));a.H.push(Fi("iv-teaser-clicked",
a.wx,a));a.context.A.experiments.na("teaser_on_button_hover")&&a.H.push(Fi("iv-button-hovered",a.RB,a))};
var ZB=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":return xB(a.o,b);case "collaborator":var c=a.o,d=["div",["iv-card","iv-card-channel"],{tabindex:"0"},["a",["iv-click-target","g-hovercard"],{href:yB(c,b.url,b.id),"data-ytid":b.channelId},AB(b.profileImageUrl),["div","iv-card-content",EB(b),["h2","iv-card-primary-link",b.title],DB(b)]]],d=new R(d);BB(c,d,b);return d;case "donation":return c=a.o,d=A(c.B,c,b),xB(c,
b,d,d);case "episode":return CB(a.o,b,"iv-card-episode");case "movie":return CB(a.o,b,"iv-card-movie");case "playlist":return c=a.o,d=["div",["iv-card","iv-card-playlist"],{tabindex:"0"},["a","iv-click-target",{href:yB(c,b.url,b.id)},AB(b.A,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",EB(b),["h2","iv-card-primary-link",b.title],DB(b)]]],d=new R(d),BB(c,d,b),d;case "poll":return vB(a.o,b);case "productListing":var c=
a.o,d=yB(c,b.url,b.id),e=!kb(b.offers)&&(b.sponsored||c.j.A.experiments.ZB),f=["iv-card"],k="",l=zB(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",Q("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 R(["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=kf("span");f.innerHTML=Q("YTP_AD_SETTINGS_INFO",{BEGIN_FORMAT:'<a target="_blank" href="https://www.google.com/settings/ads/onweb">',END_FORMAT:"</a>"});d.Cb(f,"adInfo");BB(c,d,b);return d;case "tip":return c=a.o,d=A(c.D,
c,b),xB(c,b,d,d);case "video":return c=a.o,d=yB(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.B?["span",["yt-badge","yt-badge-live"],Q("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],{tabindex:"0"},["a","iv-click-target",{href:d},AB(b.A,f),["div","iv-card-content",EB(b),["h2","iv-card-primary-link",b.title],DB(b),k]]],d=new R(d),BB(c,d,b),d}return null};
var $B=function(a,b){if(0==a.j.length)return 0;var c=ib(a.j,function(a){return b.fb.startMs>a.fb.startMs||b.fb.startMs==a.fb.startMs&&b.fb.timestamp>=a.fb.timestamp?!0:!1});return-1==c?0:c+1};var aC=function(a,b){if(a.F.A){var c=new Ez([0,a.yc.scrollTop],[0,b.Xj.offsetTop],600,Iz);a.context.j.R(c,"animate",function(a){this.yc.scrollTop=a.y},a);a.context.j.R(c,"finish",function(a){this.yc.scrollTop=a.y},a);c.play()}else a.F.vb(!0),a.yc.scrollTop=b.Xj.offsetTop,a.F.vb(!1)};
var bC=function(a){return a.A&&a.A.fb||a.j[0]&&a.j[0].fb};var UB=function(a,b){return eb(a.j,function(a){return a.fb.id==b},a)};var cC=function(a){return Gh(a.j,function(a){return a.fb.sponsored&&"productListing"==a.fb.type})};var dC=function(a){if(!eC.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(fC,"#$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 gC=function(a,b,c,d,e){Ez.call(this,b,c,d,e);this.element=a};var hC=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");gC.apply(this,arguments)};var iC=function(a,b,c){hB.call(this,a,b);this.annotation=c;this.isActive=!1};var jC=function(a,b,c){iC.call(this,a,b,c);this.o=null;this.F=!1;this.j=null;this.A=!1;this.B=0;this.D=this.C=null};var kC=function(a,b,c,d,e,f){this.j=a;this.A=b;this.B=c;this.logger=d;this.o=e;this.C=f};
var lC=function(a,b,c){this.type=a;this.trigger=b;this.url=c};var mC=function(a){if(!a)return null;var b=Yz(a.type,nC),c=Yz(a.trigger,oC),d=gA(Uz(a.url));Uz(a.subscribeData);return b?new lC(b,c,d):null};var pC=function(a,b,c,d,e,f,k,l,m,p,u,v,z,y){this.D=a;this.B=b;this.F=c;this.C=d;this.o=e;this.K=f;this.A=k;this.J=l;this.textSize=m;this.G=p;this.H=u;this.effects=v;this.j=z;this.L=y};
var qC=function(a){if(!a)return null;var b=Wz(a.fgColor,"#1A1A1A"),c=Wz(a.bgColor,"#FFF"),d=Wz(a.borderColor,"#000"),e=aA(a.borderWidth,0,5,!1,0),f=aA(a.bgAlpha,0,1,!1,.8),k=Wz(a.highlightFontColor,"#F2F2F2"),l=aA(a.highlightWidth,0,5,!1,3),m=Xz(a.textAlign),p=aA(a.textSize,3.3,30.1,!0,3.6107),u=Xz(a.fontWeight),v=dA(a.padding),z=eA(a.effects),y=aA(a.cornerRadius,0,10,!0,0);if(a=Uz(a.gradient)){var ga=aA(a.x1,0,100,!0,0),va=aA(a.y1,0,100,!0,0),I=aA(a.x2,0,100,!0,100),W=aA(a.y2,0,100,!0,100),Kb=Wz(a.color1,
"#FFF"),td=Wz(a.color2,"#000");a=new rC(ga,va,I,W,Kb,td,aA(a.opacity1,0,100,!0,100),aA(a.opacity2,0,100,!0,0))}else a=null;return new pC(b,c,d,e,f,k,l,m,p,u,v,z,y,a)};var rC=function(a,b,c,d,e,f,k,l){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=f;this.A=k;this.B=l};var sC=function(a,b){this.j=a;this.videoId=b};
var tC=function(a,b,c){var d=a.D,e=a.F,f=a.j?a.j:"xy",k=uC(c,a.B,f);a=vC(c,a.o,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new se(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 uC=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};var vC=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
var wC=function(a,b,c,d,e,f,k,l,m,p,u){this.x=a;this.y=b;this.C=c;this.A=d;this.t=e;this.J=f;this.D=k;this.F=l;this.B=m;this.o=p;this.j=u};var xC=function(a,b){if(!a)return null;var c=$z(a.x,0),d=$z(a.y,0),e=$z(a.w,0),f=$z(a.h,0),k=bA(a.t),l=$z(a.scaleSlope,1);return b(c,d,e,f,k,$z(a.d,0),$z(a.px,0),$z(a.py,0),$z(a.scaleSlopeX,l),$z(a.scaleSlopeY,l),Yz(a.scaleDimension,yC,"xy"))};
var zC=function(a,b){var c=AC(b,tC(a,new se(a.x,a.y,a.C,a.A),b.j)),d=b.j,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=je(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=je(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};var BC=function(a){return a?xC(a,function(a,c,d,e,f,k,l,m,p,u,v){return new wC(a,c,d,e,f,k,l,m,p,u,v)}):null};
var CC=function(a,b,c,d,e,f,k,l,m,p,u,v,z){wC.call(this,a,b,c,d,e,l,m,p,u,v,z);this.G=f;this.H=k};var DC=function(a){if(!a)return null;var b=$z(a.sx,0),c=$z(a.sy,0);return xC(a,function(a,e,f,k,l,m,p,u,v,z,y){return new CC(a,e,f,k,l,b,c,m,p,u,v,z,y)})};var EC=function(a,b,c,d){this.type=a;this.o=b;this.j=c;this.A=d};var FC=function(a){if(!a)return null;var b=Yz(a.type,GC,"rect"),c=cA(a.rectRegion,BC),d=cA(a.anchoredRegion,DC);a=cA(a.shapelessRegion,BC);return new EC(b,c,d,a)};
var HC=function(a){return a.o&&a.o.length?a.o[0]:a.j&&a.j.length?a.j[0]:a.A&&a.A.length?a.A[0]:null};var IC=function(a,b){this.o=a;this.j=b};var JC=function(a,b){this.state=a;this.j=b};var KC=function(a){if(!a)return null;var b=Yz(a.state,LC);a=Vz(a.ref);return b?new JC(b,a):null};var MC=function(a,b,c,d){this.j=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1};
var NC=function(a){if(!a)return null;var b=cA(a.condition,KC),c=cA(a.notCondition,KC),d=Zz(a.show_delay,!1);a=Zz(a.hide_delay,!1);return b||c?new MC(b,c,d,a):null};var OC=function(a,b,c){F(a.j,pa(b,!1),c);F(a.A,pa(b,!0),c)};var PC=function(a,b,c,d,e,f,k,l,m,p,u,v,z,y,ga,va){this.id=a;this.author=b;this.type=c;this.style=d;this.D=e;this.o=f;this.C=k||[];this.H=l||[];this.j=m;this.G=p;this.B=u;this.F=v;this.A=y;this.data=ga;this.Ra=va};
var QC=function(a){if(!a)return null;var b=Vz(a.id),c=Vz(a.author),d=Yz(a.type,RC),e=Yz(a.style,SC),f=Xz(Uz(a.TEXT)),k=Xz(a.data),k=0!=k.length?ae(k):{},l;var m=Uz(a.segment);m?(Vz(m.timeRelative),l=Vz(m.spaceRelative),l=(m=cA(m.movingRegion,FC))?new IC(l,m):null):l=null;var m=cA(a.action,mC),p=cA(a.trigger,NC),u=qC(Uz(a.appearance));u||(u=qC({}));var v=Yz(a.coordinate_system,TC,"video_relative"),z;z=(z=Uz(a.image_source))?new sC(Xz(z.standard_url),Xz(z.video_id)):null;var y=Zz(a.closeable,!0),ga=
Xz(a.html_blob);a=Xz(a.log_data);return b&&d?new PC(b,c,d,e,f,l,m,p,u,v,z,y,0,ga,k,a):null};var UC=function(a){return(a=VC(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};var WC=function(a){return XC(a,function(a){return"click"==a.trigger})};var XC=function(a,b){return Gh(a.C,b,void 0)};var YC=function(a,b,c){F(a.C,b,c)};var VC=function(a,b){return eb(a.C,b,void 0)};var ZC=function(a,b,c){F(a.H,b,c)};var $C=function(a,b){P(a.H,b,void 0)};
var aD=function(a){return(a=bD(a))?HC(a):null};var bD=function(a){a.o?(a=a.o,a=a.j.length?a.j[0]:null):a=null;return a};var cD=function(a,b){var c=aD(a);return c&&b?vC(b,c.o,c.j?c.j:"xy"):1};var dD=function(a,b,c){iC.call(this,a,b,c);this.F=this.B=this.G=!1;this.D=5E3;this.j=null;this.og=N("div","iv-promo-contents");this.o=this.A=this.Pb=null;this.C=new Td(function(){this.Pb.setAttribute("aria-hidden",!0);Kq(this.A);Jq(this.o)},700,this)};
var eD=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.D=b.collapse_delay_ms||a.D;var d=["iv-promo","iv-promo-inactive"];a.ia().setAttribute("aria-hidden",!0);a.ia().setAttribute("aria-label",Q("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ia().tabIndex=19;var e;if(b.image_url){e=N("div",["iv-promo-img","iv-click-target"]);var f=N("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&
!b.is_live?(f=N("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=N("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Lf(e,UC(a.annotation),a.annotation.id,a.annotation.Ra,null,c)}f=UC(a.annotation);a.Pb=f?N("a",{href:iA(f),"class":"iv-promo-txt"}):N("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=N("p",null,N("strong",null,b.text_line_1));l=N("p",null,N("span","iv-promo-link",b.text_line_2));
L(a.Pb,"iv-click-target");a.Lf(a.Pb,UC(a.annotation),a.annotation.id,a.annotation.Ra,null,c);break;case "playlist":case "video":k=N("p",null,N("span",null,b.text_line_1));l=N("p",null,N("strong",null,b.text_line_2));b.is_live&&(k=l,l=N("span",["yt-badge","iv-promo-badge-live"],Q("YTP_LIVE_NOW")));L(a.Pb,"iv-click-target");a.Lf(a.Pb,UC(a.annotation),a.annotation.id,a.annotation.Ra,null,c);d.push("iv-promo-video");break;case "vote":k=N("p",null,N("strong",null,b.text_line_1)),l=N("p",null,N("span",
null,b.text_line_2)),m=N("div","iv-promo-button-container"),c=N("button",["iv-button","iv-promo-button"],N("span","iv-button-content",b.button_text)),a.context.j.R(c,"click",function(a){a.stopPropagation();dB(this.context.logger,this.annotation.Ra,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Pb=Ze("iv-promo-txt",this.og);a=Ze("iv-promo-button-container",this.og);var d=N("div",["iv-promo-txt","iv-click-target"]),e=N("p",null,N("strong",null,c.text_line_3)),c=N("p",
null,c.text_line_4);mf(d,e,c);pf(a);qf(d,this.Pb);Yd(this.ia(),"iv-promo-with-button");this.Lf(d,UC(this.annotation),this.annotation.id,this.annotation.Ra)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Pb.appendChild(k);l&&a.Pb.appendChild(l);a.og.appendChild(a.Pb);m&&a.og.appendChild(m);k=N("div","iv-promo-actions");a.o=N("button",{title:Q("YTP_EXPAND"),"class":"iv-promo-expand"});a.context.j.R(a.o,"click",pa(a.Ek,5E3),a);k.appendChild(a.o);Kq(a.o);a.context.j.R(a.ia(),"mouseover",a.cw,
a);a.context.j.R(a.ia(),"mouseout",a.bw,a);a.context.j.R(a.ia(),"touchend",pa(a.Ek,5E3),a);a.A=N("button",{title:Q("YTP_CLOSE"),"class":"iv-promo-close"});a.context.j.R(a.A,"click",a.KD,a);k.appendChild(a.A);Xd(a.ia(),d);e&&lf(a.ia(),e);lf(a.ia(),a.og);lf(a.ia(),k)};var fD=function(a){a.B||a.F||a.j||(L(a.ia(),"iv-promo-collapsed"),a.B=!0,a.C.start())};var gD=function(a){a.C.stop();a.B&&(Yd(a.ia(),"iv-promo-collapsed"),a.B=!1,a.Pb&&a.Pb.removeAttribute("aria-hidden"),Kq(a.o),Jq(a.A))};
var hD=function(a,b){a.j||(a.j=Rd(function(){this.j&&(Sd(this.j),this.j=null);fD(this)},b,a))};var iD=function(a,b,c){this.j={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;OC(b,function(a,b){var c=jD(b.state,b.j);this.A.subscribe(c,A(this.B,this,c,a));this.j[c]=a},this)};var jD=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};var kD=function(a,b,c){this.A=a;this.annotation=b;this.j=c;this.o=null;this.B=this.isVisible=!1;lD(b,a)};
var lD=function(a,b){$C(a,function(c){return new iD(a.id,c,b)})};var mD=function(a){a.A.unsubscribe("onResize",a.yr,a);a.A.unsubscribe("onVideoAreaChange",a.Pp,a)};var nD=function(a){a.o&&(a.o.stop(),a.o=null)};var oD=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};var pD=function(){};var qD=function(a,b,c,d,e,f,k,l){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=f;this.A=n(k)?k:null;this.B=n(l)?l:null};var rD=function(){this.ta=[];this.xa=[];this.jc=[]};
var sD=function(a,b,c){0==db(a.ta)?a.jc.length-=2:(a.ta.push(0),a.xa.push(1));a.jc.push(b,c);a.Nb=a.Oc=[b,c]};var tD=function(a,b,c,d){var e=a.Nb[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.Nb[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ta.push(3);a.xa.push(1);a.jc.push(b,c,d,90,e,f);a.Zg=!1;a.Nb=[e,f]};var uD=function(a,b){for(var c=a.jc,d=0,e=0,f=a.ta.length;e<f;e++){var k=a.ta[e],l=vD[k]*a.xa[e];b(k,c.slice(d,d+l));d+=l}};
var wD=function(a,b){this.H=a;this.J=null==b?1:b};var xD=function(a,b,c){this.A=a;this.j=b;this.o=null==c?1:c};var yD=function(){};var zD=function(a){J.call(this);this.L=a||Te();this.P=null;this.Je=!1;this.j=null;this.C=void 0;this.D=this.G=this.H=null};var AD=function(a,b){a.G&&F(a.G,b,void 0)};var BD=function(a,b,c,d,e){zD.call(this,e);this.width=a;this.height=b;this.B=c||null;this.J=d||null};var CD=function(a){var b=a.xg();return b?b.width/(a.B?new qe(a.B,a.J):a.xg()).width:0};
var DD=function(a,b){J.call(this);this.zg=a;this.yk=b;this[Ec]=!1};
var ED=function(a,b,c,d){DD.call(this,a,b);a=this.yk;b=this.ia();c?(b.setAttribute("stroke",c.j),b.setAttribute("stroke-opacity",c.o),c=c.getWidth(),x(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/CD(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.yk;a=this.ia();if(d instanceof wD)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.J);else if(d instanceof qD){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.j+"-"+d.o;var e=
FD(c,b);if(!e){var e=GD(c,"linearGradient",{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.j;fa(d.A)&&(f+=";stop-opacity:"+d.A);f=GD(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.o;fa(d.B)&&(f+=";stop-opacity:"+d.B);d=GD(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=HD(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};var ID=function(a,b){DD.call(this,a,b)};var JD=function(a,b){DD.call(this,a,b)};
var KD=function(a,b,c,d){ED.call(this,a,b,c,d)};var LD=function(a,b){DD.call(this,a,b)};var MD=function(a,b,c,d){ED.call(this,a,b,c,d)};var ND=function(a,b){DD.call(this,a,b)};var OD=function(a,b,c,d,e){BD.call(this,a,b,c,d,e);this.o={};this.N=wc&&!yc(526);this.K=new zm(this)};var GD=function(a,b,c){a=a.L.j.createElementNS("http://www.w3.org/2000/svg",b);c&&PD(a,c);return a};var PD=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
var QD=function(a,b,c,d){b=GD(a,"path",{d:RD(b)});c=new MD(b,a,c,d);a.A.ia().appendChild(c.ia())};var RD=function(a){var b=[];uD(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 HD=function(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+SD++;c.setAttribute("id",d);a.o[b]=d;a.F.appendChild(c);return d};var FD=function(a,b){return b in a.o?a.o[b]:null};var TD=function(){UD||(UD=new Pd(400),UD.start());return UD};var VD=function(){this.j=!1;this.C=this.A=null};var WD=function(a,b,c){a.A?(a.A.setSize(b,c),a.A.clear()):(b=new OD(b,c,void 0,void 0,void 0),a.A=b,a.A.Xn(),a.C=N("div"),b=a.A.ia(),a.C.appendChild(b));return a.A};
var XD=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 YD=function(a,b){var c;c=":"+(yD.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
var ZD=function(a,b){var c=YD(a,XD("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=YD(a,XD("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},XD("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=YD(a,XD("feComposite",{"in":c,in2:b,operator:"in"}));return YD(a,XD("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
var $D=function(a,b){var c=YD(a,XD("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=YD(a,XD("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=YD(a,XD("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=YD(a,XD("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=YD(a,XD("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=YD(a,XD("feComposite",{operator:"out","in":c,in2:d}));return YD(a,XD("feComposite",{operator:"over","in":b,
in2:c}))};var aE=function(a,b){return b};var bE=function(a){var b=XD("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";F(a,function(a){a:{switch(a){case "bevel":a=ZD;break a;case "dropshadow":a=$D;break a}a=aE}c=a(b,c)});return b};var cE=function(a){a=Zd(a,function(a){return a in dE});Bb(a,function(a,c){return dE[a]-dE[c]});return a};var eE=function(a){return eb(a,function(a){return"dropshadow"==a})?new pe(0,7,7,0):new pe(0,0,0,0)};
var fE=function(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;b=gE(b,c,f);QD(a,b,d,e)};var gE=function(a,b,c){var d=new rD;sD(d,a.left+b+c,a.top+c);d.ob(a.left+a.width-b-c,a.top+c);tD(d,b,b,-90);d.ob(a.left+a.width-c,a.top+a.height-b-c);tD(d,b,b,0);d.ob(a.left+b+c,a.top+a.height-c);tD(d,b,b,90);d.ob(a.left+c,a.top+b+c);tD(d,b,b,180);d.close();return d};var hE=function(a,b,c,d){var e=a.L;return e?new qD(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.j,e.o,e.A,e.B):new wD(a.B,iE(d,a.o))};
var iE=function(a,b){return a?Math.max(b,.9):b};var jE=function(a,b){var c=te(a),d=eE(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 se(c.left,c.top,c.right-c.left,c.bottom-c.top)};
var kE=function(a,b,c){if(c.length&&(b=Ye("g",void 0,b),b.length)){var d=cE(c);if(d){c="effects:"+(d?d.join("|"):"");var e=FD(a,c);e?a=e:(d=bE(d),a=0<d.childNodes.length?HD(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};var lE=function(){VD.call(this);this.B=0};var mE=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 nE=function(){VD.call(this)};var oE=function(a,b,c){VD.call(this);this.B=a||0;this.F=b||0;this.D=c||!1};var pE=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 se(e,f,c,d)};var qE=function(){VD.call(this)};var rE=function(){lE.call(this)};var sE=function(a,b){this.j=a;this.o=b||null};
var AC=function(a,b){var c;c=a.o?zC(a.o,new sE(a.j)):a.j;var d=b.clone(),e=c.left;c=c.top;e instanceof ne?(d.left+=e.x,d.top+=e.y):(d.left+=e,fa(c)&&(d.top+=c));return d};var tE=function(a,b,c,d,e){this.j=a;this.T=b;this.D=c;this.Ca=d;this.$=e;this.P=!1;this.F=new rz(this);this.N=this.C=this.G=this.L=this.o=null;this.W=!1;this.Y=this.J=this.K=null;this.kl=new xm(this.aw,100,this);this.H=new Td(this.bo,500,this);this.U=this.A=this.B=null};
var uE=function(a,b){var c=A(function(a,c,f){c=f?vE(this,c,A(f,this)):vE(this,c);this.F.R(b,a,c)},a);c("mouseover","d",a.zr);c("mouseout","c",a.Ng);c("click","a");c("touchend","a")};var wE=function(a){if(a.j.F){var b;XC(a.j,function(a){return"close"==a.type})?b=a.o:(a.B=N("div",["annotation-close-button","hid"]),pi(a.B,"annotation_id",a.j.id),a.o.appendChild(a.B),b=a.B);var c=function(a){a.stopPropagation()};a.F.R(b,"click",vE(a,"b",c));a.F.R(b,"touchend",vE(a,"b",c))}};
var vE=function(a,b,c){return A(function(a){if(this.$)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;Kq(e);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Gf(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{Jq(e)}}e=ig(a.target);a=new ne(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.Ca.O(b,this.j)},a)};
var xE=function(a){if(a.o||a.A){var b=aD(a.j);if(b){var c=yE(a);if(a.o){var b=zC(b,c),d=zE(AE(a.D));dg(a.o,b.width,b.height);Sf(a.o,b.left,b.top);a.L=new se(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=aD(a.j))&&d?uC(d,e.B,e.j?e.j:"xy"):1;var f=cD(a.j,d),d=a.j.j;d.H?d=d.H:(d="speech"==a.j.style?1.6:.8,d=new pe(d,d,d,d));d=new pe(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.C&&(d.right+=1.5*c.j.height/100);a.o.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+
d.left+"px";"label"==a.j.style&&a.G&&(a.G.style.padding=a.o.style.padding);var d=c.j,k=!1,l=0,m=0,p;p=zE(AE(a.D));var u=a.D.app.da,v=AE(u.j).Ka(),v=new se(0,0,v.width,v.height);if(u.A.o&&!BE(u)){if(u.j.V().Fa){var z=CE(u)?69:48;v.top+=z;v.height-=z}u.C&&(v.height-=CE(u.C.B)?72:50)}ue(p,v)?p=null:(v.top+=20,v.height-=40,"player_relative"!=a.j.G&&(v.left-=p.left,v.top-=p.top),p=v);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,y;a.C&&(m=DE(a,23,b,e,f),a.B&&
(y=43-m.width,0<y&&(b.left+m.left-y>d.left&&(m.left-=y),m.width+=y)),y=m,dg(a.C,m.width,m.height),Sf(a.C,m.left,m.top));a.B&&(y?b=new ne(y.left+y.width-23-18,a.W?y.top+2:y.top+y.height-18-2):(y=DE(a,18,b,e,f),b=new ne(y.left,y.top),dg(a.B,y.width,y.height)),Sf(a.B,b));a.N=new se(a.L.left+y.left,a.L.top+y.top,y.width,y.height);a.K=a.F.R(AE(a.D),"mousemove",a.ID)}else a.C&&(y=e/f*d.height*4.2/100,y=new qe(y,y),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*d.height/100,y=new se(b.width-y.width-e,
b.height-y.height-e,y.width,y.height)):y=new se(b.width-y.width-3*d.height/100,(b.height-y.height)/2,y.width,y.height),dg(a.C,y.width,y.height),Sf(a.C,y.left,y.top)),a.B&&(y=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Sf(a.B,y&&e?new ne(b.width-9,-9):y?new ne(b.width-9,45<b.height?9:b.height-9):e?new ne(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new ne(45<b.width?b.width-9-18:-9,b.height-9):new ne(-9,45<b.height?9:b.height-9)))}a.A&&a.A.o(a.j,c);if(a.o){c=a.o;b=a.j.j;
c.style.color="highlightText"==a.j.style?b.K:b.D;y=zE(AE(a.D));c.style.fontSize=360*b.textSize*cD(a.j,y)/100+"px";y=a.j.style;c.style.textAlign=b.J?b.J:"title"==y||"highlightText"==y?"center":"left";b.G&&(c.style.fontWeight=b.G);a=a.o;c=a.style.overflow;b=Ze("annotation-link-icon",a);y=Iq(b);d=Ze("annotation-close-button",a);e=Iq(d);b&&y&&Kq(b);d&&e&&Kq(d);m=f="";if(l=Ze("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=mg(a);u=5;for(v=Math.floor(k/2);v;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=p,p=Math.min(p+v,k)):p=Math.max(p-v,u),v=Math.floor(v/2),a.style.fontSize=p+"px";p!=u&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=u+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);d&&e&&Jq(d);b&&y&&Jq(b)}}}};
var DE=function(a,b,c,d,e){var f=0<e;b=new se(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),L(a.o,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),L(a.o,"annotation-extend-up"),a.W=!0);return b};var EE=function(a){return"label"!=a.j.style||a.A.j};
var yE=function(a){var b;b=zE(AE(a.D));if("player_relative"==a.j.G){var c=AE(a.D).Ka();b=new se(-b.left,-b.top,c.width,c.height)}else b=new se(0,0,b.width,b.height);return new sE(b,a.U?aD(a.U):null)};var FE=function(a,b){return b?new se(a.x+b.left,a.y+b.top,b.width,b.height):null};
var GE=function(a){jq.call(this,a);this.fa=!0;this.ra="iv-module";this.G="iv";this.J=0;this.A={};this.K={};this.C=new ZA(0,a);a=HE;this.subscribe("onHideControls",this.gz,this);this.subscribe("onShowControls",this.sA,this);this.subscribe("onStateChange",this.Zz,this);this.subscribe("d",this.CD,this);this.subscribe("c",this.Ng,this);this.subscribe("a",this.Ux,this);this.subscribe("b",this.yy,this);this.subscribe("vast_info_card_add",this.QA,this);this.subscribe("cards_drawer_set_visible",this.jy,this);
this.N=N("DIV",[a.Qt,"html5-stop-propagation"]);this.T=N("DIV",a.ft);this.B=null;a=N("DIV",a.Os,this.N,this.T);L(a,this.ra);AE(this.j).T.appendChild(a);this.D=this.o=null;this.L=[]};
var IE=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(IE(a,e))}return c};var JE=function(a,b,c){return!(a.loaded&&a.J==b&&a.j.getVideoData().videoId==c)};var KE=function(a,b){var c=LE(a,b);if(!c&&"marker"!=b.type)return null;ZC(b,function(a){a=A(this.MA,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new kD(a.P,b,c)};
var ME=function(a,b){var c=GE.j(),d=null;switch(b.type){case "branding":if(a.j.V().xc)break;a.B.element.appendChild(c);d=new jC(c,NE(a),b);break;case "promotion":a.j.ua().appendChild(c),d=new dD(c,NE(a),b)}d&&d.Si();return d};
var OE=function(a){var b=a.j.getVideoData();if(b.$e){var c=a.j.V(),d=c.J.remove(b.videoId);if(d){var e={format:"XML",Cd:{}};c.experiments.na("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.j&&(e.Cd.gaming="1");e.Wb=A(function(a,b,c){JE(this,a,b)||(a=sj(c)&&c.responseXML?c.responseXML:null)&&PE(this,a)},a,a.J,b.videoId);yu()&&(e.Wb=QE(a,e.Wb));e.Ab={ic_only:1};RE(a,e,d);yj(b.$e,e)}}};
var RE=function(a,b,c){b.method="POST";b.Ab=b.Ab||{};c.ue&&(b.Ab.ic_xml=c.ue);c.Rf&&(b.Ab.ic_track=c.Rf);if(a=a.j.getVideoData(1))b.Ab.organic_video_id=a.videoId};
var SE=function(a,b){if(!a.o){var c=new R(["div","hid"]);a.o=new SB(a.j,c.element,NE(a));c.j(a.B.element);a.o.Si()}var d=b&&b.data&&b.data.card_type;if(d&&TE[d]){c=a.o;d=new TE[d](b.id,b.data,b.Ra);c.U||(Xd(c.ia(),["html5-stop-propagation","iv-drawer-manager"]),c.aa.ua().appendChild(c.D),YB(c),c.U=!0);TB(c,d.id);var e=ZB(c,d);if(e){var f={fb:d,Xj:e.element,Jo:!1,Ko:!1},k=$B(c,f);ub(c.j,k,0,f);e.j(c.yc,k);c.Jh();d.C?iB(c,d.startMs,0x8000000000000,d.id,pa(c.KB,f)):(e=1E3*c.context.o.getCurrentTime(),
5E3>e&&e>d.startMs&&c.Fl(f),iB(c,d.startMs,d.startMs+1,d.id,pa(c.Fl,f)))}}WB(a.j)};var NE=function(a){a.D||(a.D=new kC(new rz(a),a.j.V(),a.j.getVideoData(),a.C,a.j,a.P));return a.D};var PE=function(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=IE(a,c[d]),f=null;try{f=QC(e)}catch(k){}f&&(GE.B(f)?(e=ME(a,f))&&(a.K[f.id]=e):GE.A(f)?SE(a,f):(e=KE(a,f))&&(a.A[f.id]=e))}Ob(a.A,function(a){var b=a.annotation;b.o&&b.o.o&&(b=this.A[b.o.o])&&(a.j.U=b.annotation)},a)};
var UE=function(a,b,c,d){d?VE(a,b,c):WE(a,b,c)};var WE=function(a,b,c){if(b=a.A[b])nD(b),c&&c.o?(a=A(a.ao,a,b),b.o=new Td(a,2E3),b.o.start()):a.ao(b)};var VE=function(a,b,c){if(b=a.A[b])nD(b),c&&c.B?(a=A(a.zq,a,b),b.o=new Td(a,2E3),b.o.start()):a.zq(b)};var XE=function(a,b,c){if("new"==b.target)return!1;var d=iA(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!jA(d))return!1;d=nj(d);if(d.list||d.p)return!1;b=mA(b);if(!b)return!1;if(c==b)return!0;a=a.j.V();return a.L&&a.ga?!0:!1};
var LE=function(a,b){if(YE(b)){var c=b.F||XC(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new tE(b,A(a.N.appendChild,a.N),a.j,a.P,c)}return null};var YE=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in SC)if(a.style==SC[b])return!0;return!1};var ZE=function(a,b,c,d){a.O(jD(b,d),c,d)};
var QE=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.L.push(zu(b,void 0))}},a)};var $E=function(a){return!!a.o&&a.o.isAvailable()};var aF=function(a){$E(a);return!!a.o&&a.o.C};var bF=function(a,b){$E(a);a.o&&(b?VB(a.o):XB(a.o))};var cF=function(a,b,c){a.O("publish_external_event",b?"cardsteasershow":"cardsteaserhide",c)};
var dF=function(a){this.aa=a;this.o=null;this.j=new se(0,0,0,0);this.C=new qe(0,0);this.B=this.A=0;eF&&yc(11)&&(this.o=window.document.createElement("canvas").getContext("2d"),yc(12.10532)||(this.A=3))};
var fF=function(a,b){if(null===a.o)return b;var c=new qe(b.videoWidth,b.videoHeight);if(!re(c,a.C)&&(a.o.canvas.width=c.width,a.o.canvas.height=c.height,a.j.top=0,a.j.left=0,a.j.width=c.width,a.j.height=c.height,a.C=c,0<a.A)){a.A=3;var d=gF(AE(a.aa)),e=16/9;d<e?(a.j.width=c.width*d/e,a.j.left=Math.ceil(.5*(c.width-a.j.width)),a.j.width|=0):d>e&&(a.j.height=c.height*e/d,a.j.top=Math.ceil(.5*(c.height-a.j.height)),a.j.height|=0)}0<a.A&&(a.B^=1,2<=a.j.top?(a.B?hF(a,b,0,0,a.j.width,a.j.top-1):hF(a,b,
0,b.videoHeight-a.j.top+1,a.j.width,a.j.top-1))&&--a.A:2<=a.j.left&&(a.B?hF(a,b,0,0,a.j.left-1,a.j.height):hF(a,b,b.videoWidth-a.j.left+1,0,a.j.left-1,a.j.height))&&--a.A,0>=a.A&&(a.j.top=0,a.j.left=0,a.j.width=b.videoWidth,a.j.height=b.videoHeight));try{a.o.drawImage(b,a.j.left,a.j.top,a.j.width,a.j.height,0,0,a.C.width,a.C.height)}catch(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.o.canvas};
var hF=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.o.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.o.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 iF=function(a,b,c){this.G=b||!1;this.D=c||null;this.j="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.C=new dF(a)};
var jF=function(a,b){iF.call(this,a);this.j="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.F=
b;this.B=null;this.o=1;this.A=!0};var kF=function(a,b){if(!(b.fa||Dl&&!gt()))return!1;if(cx(a)&&3!=a.Ta&&4!=a.Ta)return!0;if(!a.j)return!1;for(var c in a.j.j){var d=a.j.j[c].info.video;if(d&&1==d.o)return!0}return!1};
var lF=function(a,b){iF.call(this,a,!0,b);this.j="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.A=
null;this.aa=a;this.H=a.V().experiments.na("white_noise_with_interval");this.B=0};
var mF=function(a,b){lF.call(this,a,b);this.j="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.o=
null;this.F=!1};var nF=function(a,b,c,d){Oj.call(this);this.C=!!b;this.F=a;this.o=c||a;this.H=!!d;this.j=new rv(this);this.B=this.G=null;this.D=this.A=!1;b&&(wc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));oF(this)};var oF=function(a){a.B=null;a.G=null;T(a.j,a.o,pF("over"),a.Nq);T(a.j,a.o,"touchstart",a.km);a.C&&T(a.j,a.o,pF("down"),a.zx)};var qF=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.G)return d}return null};
var pF=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};var rF=function(){this.j=new window.Float32Array(16);this.A=new window.Float32Array(16);this.o=new window.Float32Array(16);this.identity()};
var sF=function(a,b){for(var c=0;16>c;c+=4)a.o[c+0]=a.j[c+0]*b[0]+a.j[c+1]*b[4]+a.j[c+2]*b[8]+a.j[c+3]*b[12],a.o[c+1]=a.j[c+0]*b[1]+a.j[c+1]*b[5]+a.j[c+2]*b[9]+a.j[c+3]*b[13],a.o[c+2]=a.j[c+0]*b[2]+a.j[c+1]*b[6]+a.j[c+2]*b[10]+a.j[c+3]*b[14],a.o[c+3]=a.j[c+0]*b[3]+a.j[c+1]*b[7]+a.j[c+2]*b[11]+a.j[c+3]*b[15];c=a.j;a.j=a.o;a.o=c};
var tF=function(a,b){this.J=a;this.N=b;this.C=new rF;this.$=this.Y=this.Ca=this.ca=null;this.A=.872;this.U=this.W=this.T=this.o=this.j=0;this.D=!0;this.H=3.14;this.B=0;this.K=new dF(a);this.G=null};var uF=function(a,b){tF.call(this,a,b);this.P=null;this.F=0;this.L=!0};var vF=function(){};var wF=function(a,b,c){return a[b]=a[b]||c};var xF=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
var yF=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 zF=function(){var a;if((a=Object.create)&&AF.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};var BF=function(){var a=CF.href,b;if(DF.dpo)b=DF.h;else{b=DF.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 EF=function(a){var b=wF(DF,"PQ",[]);DF.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 FF=function(a){return wF(wF(DF,"H",zF()),a,zF())};var GF=function(a,b,c){b&&0<b.length&&(b=HF(b),c&&0<c.length&&(b+="___"+HF(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=wF(IF,"_p",zF()),wF(b,c,zF())[a]=(new Date).getTime(),b=JF.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
var HF=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};var KF=function(a){throw Error("Bad hint"+(a?": "+a:""));};var LF=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=MF[f],l=null;k?l=k(e,b,c,d):KF("no hint processor for: "+f);l||KF("failed to generate load url");b=l;c=b.match(NF);(d=b.match(OF))&&1===d.length&&PF.test(b)&&c&&1===c.length||KF("failed sanity: "+a);return l};
var QF=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}a=RF(a);SF.test(c)||KF("invalid_callback");b=TF(b);d=d&&d.length?TF(d):null;return[(0,window.encodeURIComponent)(a.mB).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.gn?"/am="+e(a.gn):"",a.aq?"/rs="+e(a.aq):"",a.Ds?"/t="+e(a.Ds):"","/cb=",e(c)].join("")};
var RF=function(a){"/"!==a.charAt(0)&&KF("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))KF("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("/");UF.test(b)||KF("invalid_prefix");c=VF(a,"k",!0);d=VF(a,"am");e=VF(a,"rs");
a=VF(a,"t");return{mB:b,version:c,gn:d,aq:e,Ds:a}};var TF=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");WF.test(e)&&b.push(e)}return b.join(",")};var VF=function(a,b,c){a=a[b];!a&&c&&KF("missing: "+b);if(a){if(XF.test(a))return a;KF("invalid: "+b)}return null};var YF=function(){var a=BF();if(!a)throw Error("Bad hint");return a};var ZF=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>xF.call(b,e)&&c.push(e)}return c};
var $F=function(a){"loading"!=aG.readyState?bG(a):aG.write("<"+cG+' src="'+(0,window.encodeURI)(a)+'"></'+cG+">")};var bG=function(a){var b=aG.createElement(cG);b.setAttribute("src",a);b.async="true";(a=aG.getElementsByTagName(cG)[0])?a.parentNode.insertBefore(b,a):(aG.head||aG.body||aG.documentElement).appendChild(b)};var dG=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<eG.length;d++){var e=eG[d][0],f=eG[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
var fG=function(a,b,c){gG(function(){var c;c=b===BF()?wF(hG,"_",zF()):zF();c=wF(FF(b),"_",c);a(c)},c)};
var iG=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);dG(a,c);var d=a?a.split(":"):[],e=c.h||YF(),f=wF(DF,"ah",zF());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,u=p;p&&p.hint==m||(u={hint:m,features:[]},k.push(u));u.features.push(l)}var v=k.length;if(1<v){var z=c.callback;z&&(c.callback=function(){0==--v&&z()})}for(;d=k.shift();)jG(d.features,c,d.hint)}else jG(d||[],c,e)};
var jG=function(a,b,c){function d(a,b){if(v)return 0;kG.clearTimeout(u);z.push.apply(z,ga);var d=((hG||{}).config||{}).update;d?d(f):f&&wF(DF,"cu",[]).push(f);if(b){GF("me0",a,y);try{fG(b,c,p)}finally{GF("me1",a,y)}}return 1}a=yF(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 u=null,v=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=wF(FF(c),"r",[]).sort(),z=wF(FF(c),"L",
[]).sort(),y=[].concat(m);0<k&&(u=kG.setTimeout(function(){v=!0;l()},k));var ga=ZF(a,z);if(ga.length){var ga=ZF(a,m),va=wF(DF,"CP",[]),I=va.length;va[I]=function(a){function b(){var a=va[I+1];a&&a()}function c(b){va[I]=null;d(ga,a)&&EF(function(){e&&e();b()})}if(!a)return 0;GF("ml1",ga,y);0<I&&va[I-1]?va[I]=function(){c(b)}:c(b)};if(ga.length){var W="loaded_"+DF.I++;hG[W]=function(a){va[I](a);hG[W]=null};a=LF(c,ga,"gapi."+W,m);m.push.apply(m,ga);GF("ml0",ga,y);b.sync||kG.___gapisync?$F(a):bG(a)}else va[I](vF)}else d(ga)&&
e&&e()};var gG=function(a,b){if(DF.hee&&0<DF.hel)try{return a()}catch(c){b&&b(c),DF.hel--,iG("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;}};var lG=function(){Oj.call(this);this.j={}};var mG=function(a,b,c){if(!a.j[b]&&(c.ue||c.Rf)){var d=a.j,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.O("vast_info_card_add",b)}};
var nG=function(){if(null==t("_lact",window)){var a=(0,window.parseInt)(wi("LACT"),10),a=(0,window.isFinite)(a)?K()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&oG();Ll(window.document,"keydown",oG);Ll(window.document,"keyup",oG);Ll(window.document,"mousedown",oG);Ll(window.document,"mouseup",oG);Fi("page-mouse",oG);Fi("page-scroll",oG);Fi("page-resize",oG)}};var oG=function(){null==t("_lact",window)&&(nG(),t("_lact",window));var a=K();q("_lact",a,window);Mi("USER_ACTIVE")};
var IA=function(){var a=t("_lact",window);return null==a?-1:Math.max(K()-a,0)};
var pG=function(a){G.call(this);a=ec(a);this.P={};this.experiments=new wA(a.fexp,a.fflags);Zw=this.experiments.H;this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.la=b;this.G=(this.L=qG.test(this.la))?uu("",a.loaderUrl):this.la;this.ib=Tp(this.G);this.protocol=(this.hg=(this.ac=qu(!1,a.ssl_stream))||qu(!1,a.ssl))?"https":"http";this.baseYtUrl=Qp(a.BASE_YT_URL,this.experiments.na("legacy_base_url"))||Qp(this.la,this.experiments.na("legacy_base_url"))||
this.protocol+"://www.youtube.com/";"adunit"==a.el?rG.test(this.G)?this.Ba="adunit":this.Ba="embedded":this.experiments.na("legacy_el")?this.Ba=a.el||this.Ba:"embedded"==a.el||this.ib?this.Ba=ru(this.Ba,a.el,sG):a.el&&(this.Ba="embedded");nG();b=null;var c=a.ps,d=E(tG,c);!c||d&&!this.ib||(b=c);this.j=b;this.zb=E(tG,this.j);this.B="blogger"==this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.sb=!this.B;this.Ze=qu(!this.B,a.showwatchlater);this.o={};this.o.c="web";
this.o.cver="html5";this.o.cplayer="UNIPLAYER";this.bb=qu(!1,a.edu_mode);this.T=!(!pt().defaultPlaybackRate||Kf&&!ht("chrome")||Bw||uG||ht("android")||ht("silk"));a.use_media_volume?b=!1:(b=pt(),c=b.muted,b.muted=!c,b=b.muted!=c);this.qb=b;this.Ve=vG;(Bw||uG||yA)&&"blazer"!=this.j&&wG(this);this.Fa=qu("adunit"!=this.Ba&&"detailpage"!=this.Ba&&!this.zb,a.showinfo);this.isMobile=qu("blazer"==this.j,a.is_html5_mobile_device);this.$b=qu(!1,a.playsinline);b=this.isMobile&&xG&&2.3>=Jv;c=yG(this)||!b&&qu("native"==
this.j,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?c:"0";this.useTabletControls=this.experiments.na("disable_new_tablet_mode_behavior")?qu("blazer"==this.j||"touch"==this.j,a.use_tablet_controls):this.isMobile;this.color=ru("red",a.color,zG);this.ne="3"==this.A||qu(!1,a.modestbranding)&&"red"==this.color;qu(!1,a.nologo)&&(c=this.G,AG.test(c),Tp(c));this.Mc=(c=!BG(this)&&"detailpage"!=this.Ba&&!this.B&&!this.zb)&&!this.ne&&"1"==this.A;this.xc="embedded"==this.Ba&&c&&!this.Fa&&!this.Mc;this.gg=
this.oe=b;this.H=uG?this.experiments.da&&7<=Cw:!0;this.rb=this.L||!1;this.U="detailpage"==this.Ba?"":(this.G||a.post_message_origin||"").substring(0,128);this.Ua=!!a.disableCast;this.autoplay=qu(!1,a.autoplay);this.ge=qu(!1,a.autoplayoverride);this.ed=this.autoplay||"detailpage"==this.Ba;b=this.ge||!this.isMobile&&!nt();this.Aa=this.ed&&b;b="detailpage"==this.Ba&&"blazer"==this.j;this.wa=!qu(!0,a.fs);this.Na=!this.wa&&(b||Ih());this.wc=qu(!this.zb,a.rel);this.Ye="adunit"!=this.Ba;this.Y="profilepage"==
this.Ba;this.Da="blazer"==this.j;switch(this.j){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.$=b;this.yb=uu("",a.authuser);this.Va=qu(!1,a.disablekb);this.pageId=uu("",a.pageid);this.pe=xu(St,a.vq);this.qe=uu("",a.playerapiid);this.Xe=qu(!0,a.canplaylive);this.he=qu(this.zb,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 qe(b,c))):b=null;this.ad=b;this.mute=this.ib&&qu(!1,a.mute);this.storeUserVolume=!this.mute&&qu("0"!=this.A,a.store_user_volume);this.useMediaVolume=qu(!1,a.use_media_volume);this.We=qu(!1,a.retryneterr)&&this.ib;this.gd="3"==this.A?3:ru(void 0,a.iv_load_policy,Gw);this.ga=qu(!1,a.iv_allow_in_place_switch);this.Qa=uu("",a.cc_lang_pref);this.ca=ru(void 0,a.cc_load_policy,Gw);this.da=void 0==a.content_v?void 0:
a.content_v.toString();this.ie=void 0==a.framer?void 0:a.framer.toString();this.W=uu("en_US",a.hl);this.region=uu("US",a.cr);this.hostLanguage=uu("en",a.host_language);this.ke=qu(!1,a.privembed);this.Mb="";this.qa=new Wj;this.K=qu(!0,a.deviceHasDisplay);this.Sa=tu(this.Sa,a.ismb);CG(this,a);this.P=a;this.J=new lG;this.C=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&b.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.na("disable_innertube_config_reporting")||
Ci(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+b.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.je={apiaryHost:uu("",b.apiary_host),$I:uu("",b.apiary_host_firstparty),gapiHintOverride:qu(!1,b.gapi_hint_override),gapiHintParams:uu("",b.gapi_hint_params),innertubeApiKey:uu("",b.innertube_api_key),innertubeApiVersion:uu("",b.innertube_api_version),
hx:uu("",b.c),innertubeContextClientVersion:uu("",b.innertube_context_client_version),jx:this.hostLanguage,ix:this.region};this.bc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&qu(!1,a.airplay_button);this.F=new Hv(this.K,"web"==this.o.c.toLowerCase().substr(0,3)||jt()||kt())};var DG=function(a,b){a.Ta=b.get("d",a.Ta);a.Ha=b.get("f",a.Ha)};
var CG=function(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&Yb(EG,c)&&Yb(FG,c)?FG[c]+"_"+EG[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.ib||d)a.D=c,a.P.adformat=b.adformat,d||(a.Ba="adunit")}}if(c=b.video_id&&b.video_id!=a.Mb)a.Mb=b.video_id;if(b.adpings||c)a.fd=b.adpings?lj(b.adpings):null;a.bb?d="s.youtubeeducation.com":a.sb?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com",a.experiments.ha&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.bd=d;a.$c="//"+a.bd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ha=d,a.P.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.P.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in GG)c=GG[f],d=b[c],void 0!=d&&(a.o[c]=d);!a.fa&&b.cl&&(a.fa=+b.cl);a.userAge=tu(a.userAge,b.user_age);a.userDisplayImage=uu(a.userDisplayImage,b.user_display_image);Dw.test(a.userDisplayImage)||(a.userDisplayImage="");
a.userDisplayName=uu(a.userDisplayName,b.user_display_name);a.userGender=uu(a.userGender,b.user_gender);a.N=uu(a.N,b.eventid);a.N&&(nu=a.N);a.csiPageType=uu(a.csiPageType,b.csi_page_type);a.ka=uu(a.ka,b.csi_service_name);a.Da=qu(a.Da,b.enablecsi);b.enabled_engage_types&&(a.qa=new Wj(b.enabled_engage_types.split(",")));a.ga=qu(a.ga,b.iv_allow_in_place_switch)};
var HG=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.yb&&(b.authuser=a.yb);a.pageId&&(b.pageid=a.pageId);return Tg(a.baseYtUrl+"get_video_metadata",b)};var IG=function(a){var b;b=Kg(a.baseYtUrl);var c=Lg(a.baseYtUrl);c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.bb?"www.youtube.com":b};var JG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
var KG=function(a){var b={};if(a.sc){if(a.sc.getVideoPlaybackQuality)return a.sc.getVideoPlaybackQuality();a.sc.webkitDecodedFrameCount&&(b.totalVideoFrames=a.sc.webkitDecodedFrameCount,b.droppedVideoFrames=a.sc.webkitDroppedFrameCount)}return b};var LG=function(a){return a.experiments.G?uy(a)||"leanback"==a.Ba:!0};var Kx=function(a){return"leanback"==a.Ba||a.zb||!a.wc&&!a.Y?!1:!0};var MG=function(a){return uy(a)||"embedded"==a.Ba||"profilepage"==a.Ba?!0:!1};var BG=function(a){return 0==a.G.indexOf(a.baseYtUrl)};
var uy=function(a){return"detailpage"==a.Ba&&"gaming"!=a.j};var yG=function(a){return uG&&!a.$b||nt()};var wG=function(a){return mt()||"TV"==a.o.cplatform};var Dx=function(a,b,c){return"detailpage"==a.Ba&&"blazer"!=a.j&&!!b&&!b.ypcPreview&&!b.Ea&&!E(b.H,"ypc")&&!c};var NG=function(a,b,c,d){this.F=c;this.B=AE(a).o;this.J=10;this.C=!0;this.T=this.N=this.Y=this.A=this.o=null;this.W=b;this.j=null;this.aa=a;this.Ca=d;this.L=null;this.D=new se(0,0,0,0);this.K=!1;this.H=!0};
var OG=function(a){a.o=window.document.createElement("canvas");if(!a.o)return 1;a.F.appendChild(a.o);try{a.A=a.o.getContext("webgl")||a.o.getContext("experimental-webgl")}catch(d){return 2}if(null==a.A)return 3;var b=PG(a);if(0!=b)return b;var b=a.A,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.N=c;b=a.A;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.A;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.N);b.vertexAttribPointer(a.U,3,b.FLOAT,!1,0,0);a.P();a.B.crossOrigin="use-credentials";return 0};
var PG=function(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.uk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.qk());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.U=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.U);a.T=e;a.j.Vc(b,a.T,a.F);return 0};var QG=function(a){a.o&&(pf(a.o),a.o=null);a.A=null;a.C=!1;a.j&&a.j.destroy(a.Ca);a.j=null;a.B.removeAttribute("crossorigin");a.B.style.display="";a.J=10;a.L&&(a.L.dispose(),a.L=null)};
var RG=function(a){jq.call(this,a);this.fa=!0;this.ra="webgl";this.subscribe("onResize",this.DD,this);this.subscribe("onPlaybackQualityChange",this.Sz,this);this.subscribe("onStateChange",this.Wc,this);this.B=new R(["div","webgl"]);this.B.j(AE(a).B);this.aa=a;this.o=null;this.A=!1};
var SG=function(a){a=a.B;this.A=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.B=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Dw.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.o=a.ypc_item_url;this.videoId=a.ypc_vid};
var TG=function(){Cq.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"],{tabindex:25}],["button",["ytp-drawer-open-button","ytp-button"],{tabindex:25}]]);var a=this.oa["ytp-drawer-close-button"];a.innerHTML=Bh();var b=this.oa["ytp-drawer-open-button"];S(this,a,"click",this.B);S(this,b,"click",this.show);this.o=new Td(pa(Yd,this.element,"ytp-drawer-closed"),0);H(this,this.o);this.Cb(null);this.ea()};
var UG=function(a,b,c){Oj.call(this);this.A=0==c;this.o=new TG;this.o.subscribe("close-clicked",this.G,this);H(this,this.o);this.B=window.document.createElement("div");L(this.B,"html5-ypc-endscreen");this.D=window.document.createElement("div");L(this.D,"html5-ypc-overlay");this.C=new tq(["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"],{tabindex:26},"{{button_label}}"]]);H(this,this.C);this.F=this.C.oa["html5-ypc-purchase"];Ll(this.F,"click",A(this.H,this));zf(this.D,b.B);c=b.title;b.o&&(c=["a",{href:b.o,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.C.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.A});this.j(a)};var VG=function(a){a.A||(a.B.appendChild(a.C.element),a.o.Cb(null),zq(a.B,"block"))};
var WG=function(a){a.A||a.o.show()};var XG=function(a){jq.call(this,a);this.G=this.ra="ypc";this.o=this.A=null;this.C=window.NaN;this.B=null};var YG=function(a){return $w(a.getVideoData(),"ypc_module")?new XG(a):null};
var ZG=function(a,b,c){var d=1E4;c.B.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.B.ypc_overlay_timeout,10));a.o=new UG(a.B.element,a.A,d);a.o.subscribe("ypcContentRequest",a.Ly,a);a.o.subscribe("ypcModuleCloseClicked",a.Bz,a);a.A.videoId&&a.B.element.appendChild(a.o.D);Kx(b)&&(c=new fq(0x8000000000000,0x8000000000000,{priority:2}),a.cb([c]));WG(a.o);Ai(a.C);a.C=xi(A(function(){if(this.o&&!b.experiments.K){var a=this.o;a.A||a.o.ea()}},a),d)};
var $G=function(a,b,c){x(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 aH(a)};var aH=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 bH=function(a){if(a.Yk)return 4;var b=Dh("visibilityState",window.document);return b&&"visible"!=b?3:a.Jg?2:a.Zk?1:0};
var cH=function(a,b){G.call(this);this.app=a;this.j=null;this.A={};this.B={};this.D={};this.C={};this.o=null;this.playerType=b;V(this,"cueVideoById",this.sm);V(this,"loadVideoById",this.wm);V(this,"cueVideoByUrl",this.PC);V(this,"loadVideoByUrl",this.$C);V(this,"playVideo",this.Xc);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.kr);V(this,"clearVideo",this.NC);V(this,"getVideoBytesLoaded",this.VC);V(this,"getVideoBytesTotal",this.WC);V(this,"getVideoLoadedFraction",this.um);V(this,"getVideoStartBytes",
this.XC);V(this,"cuePlaylist",this.OC);V(this,"loadPlaylist",this.dr);V(this,"nextVideo",this.pj);V(this,"previousVideo",this.qj);V(this,"playVideoAt",this.xm);V(this,"setShuffle",this.setShuffle);V(this,"setLoop",this.bD);V(this,"getPlaylist",this.gc);V(this,"getPlaylistIndex",this.TC);V(this,"getPlaylistId",this.ce);V(this,"loadModule",this.oj);V(this,"unloadModule",this.lr);V(this,"setOption",this.de);V(this,"getOption",this.ub);V(this,"getOptions",this.jh);V(this,"mute",this.mute);V(this,"unMute",
this.unMute);V(this,"isMuted",this.tc);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.Bb);V(this,"seekTo",this.Qb);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.SC);V(this,"setPlaybackRate",this.sj);V(this,"getAvailablePlaybackRates",this.mj);V(this,"getPlaybackQuality",this.nj);V(this,"setPlaybackQuality",this.rj);V(this,"getAvailableQualityLevels",this.Zq);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.ih);V(this,"addEventListener",
this.addEventListener);V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.tm);V(this,"getVideoEmbedCode",this.ar);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.Yq);V(this,"removeCueRange",this.fr);V(this,"setSize",this.setSize);V(this,"getApiInterface",this.QC);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.jr);V(this,"hideVideoInfo",this.YC);dH(this,"getInternalApiInterface",this.RC);dH(this,"getAdState",
this.getAdState);dH(this,"isNotServable",this.ZC);dH(this,"getUpdatedConfigurationData",this.UC);dH(this,"updateRemoteReceivers",this.dD);dH(this,"sendAbandonmentPing",this.aD);dH(this,"setAutonav",this.gr);dH(this,"setAutonavState",this.ir);dH(this,"setMinimized",this.cD);dH(this,"channelSubscribed",w);dH(this,"channelUnsubscribed",w)};var V=function(a,b,c){a.A[b]=A(c,a)};var dH=function(a,b,c){a.B[b]=A(c,a)};
var eH=function(a,b){cH.call(this,a,b);V(this,"getPresentingPlayerType",this.getPresentingPlayerType);V(this,"addInfoCardXml",this.eD);V(this,"cueVideoByPlayerVars",this.fD);V(this,"loadVideoByPlayerVars",this.nr);V(this,"preloadVideoByPlayerVars",this.pD);V(this,"seekBy",this.Yc);V(this,"updatePlaylist",this.vD);V(this,"updateLastActiveTime",this.uD);V(this,"updateVideoData",this.wD);V(this,"getStoryboardFormat",this.kD);V(this,"getProgressState",this.Qe);V(this,"getHousebrandProperties",this.iD);
V(this,"setPlaybackQualityRange",this.qD);V(this,"getCurrentPlaylistSequence",this.hD);V(this,"canPlayType",this.canPlayType);V(this,"sendVideoStatsEngageEvent",this.$f);V(this,"setCardsVisible",this.kh);V(this,"handleGlobalKeyDown",this.nD);V(this,"getAudioTrack",this.Zf);V(this,"setAudioTrack",this.ym);V(this,"getAvailableAudioTracks",this.mr);V(this,"getMaxPlaybackQuality",this.jD);V(this,"setSizeStyle",this.rD);V(this,"forceFrescaUpdate",this.gD);V(this,"setAutonav",this.gr);V(this,"setAutonavState",
this.ir);V(this,"showControls",this.tD);V(this,"hideControls",this.oD);V(this,"getVisibilityState",this.mD);V(this,"shouldSendVisibilityState",this.sD);V(this,"getVideoContentRect",this.lD)};var fH=function(a,b){eH.call(this,a,b)};var gH=function(a){(a=lq(a.app))&&hH(a)};var iH=function(a){return(a=jH(a.app.B,"endscreen"))?Gx(a):!1};var kH=function(a){var b=jH(a.app.B,"endscreen");return b&&Lx(b)?!0:(a=jH(a.app.B,"ypc"))&&a.Xa()?!0:!1};
var hz=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.G.N:lq(b,a).getPlayerState()};var AE=function(a){return a.app.D};var lH=function(a){return a.app.N&&!a.Ia()||!!a.gc()};var mH=function(a,b){var c=nH(a.app,"captions","displaySettings",b);a.app.Vf("onCaptionsDisplaySettings");return c};var vy=function(a){a=a.app;oH(a,!a.L.Ia())};var pH=function(a){return(a=lq(a.app))?Tt(qH(a.ka,a.j)):"unknown"};
var rH=function(a){(a=jH(a.app.B,"webgl"))?a.A?(a=a.o,a=a.j?a.j.Se():{}):a={}:a={};return a};var sH=function(a,b){var c=jH(a.app.B,"webgl");c&&c.A&&(c=c.o,c.j&&c.j.oh(b))};var tH=function(a,b){a.V().experiments.na("ui_logging")&&uH(a,"controlclicked",{controlClicked:b})};
var uH=function(a,b,c,d){var e=lq(a.app);c.event=b;a.Ia()&&(c.fs=1);c.ux=1;if(e.A){a=e.A;e=(b=a.j.o.experiments.na("event_log_respect_caller_args"))?{}:c;e.rt=NA(a.j).toFixed(3);qa(e,PA(a.j));var f=a.j.o,k=a.j.j,l=k.qa||f.ha,l={ns:f.$,html5:"1",el:f.Ba,ps:f.j,fexp:f.experiments.experimentIds.join(",")||void 0,feature:l||void 0,ctrl:k.ca||void 0,ytr:k.da||void 0,list:k.playlistId,d:f.Ta,f:f.Ha};f.autoplay&&(l.autoplay="1");k.subscribed&&(l.subscribed=k.subscribed);qa(e,l);delete e.fexp;b&&qa(e,c);
c=oj(a.j.o.baseYtUrl+"player_204",e);TA(a,c,d)}};var WB=function(a){a.app.Oa("cardstatechange",vH(a)&&wH(a)?1:0)};var vH=function(a){return(a=jH(a.app.B,"iv-module"))?$E(a):!1};var wH=function(a){return(a=jH(a.app.B,"iv-module"))?aF(a):!1};var xH=function(a,b,c){(a=jH(a.app.B,"iv-module"))&&cF(a,b,c)};var kz=function(a,b){a.app.Oa("onFrescaStateChange",b);var c=lq(a.app);if(c&&b&&c.A){var c=c.A.A,d=b.hasActiveStream;EA(c,NA(c.j),"stream",[d?"A":"I"])}};
var yH=function(a){return(a=jH(a.app.B,"fresca"))?!!a.C&&a.C.B.A:!1};var zH=function(a){var b=lq(a.app,1);if(!b)return!1;var c=b.getVideoData();return Vw(c)&&!ax(c)&&2!=a.getPresentingPlayerType()&&(!AH(b)||3==a.getPresentingPlayerType())};var BH=function(a){return a.app.ca.play_pause||2==a.getPresentingPlayerType()?!0:!AH(lq(a.app,1))};var CH=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=lq(d,a))c.D.gh.apply(c.D,b),a&&d.getPresentingPlayerType()!=a||mq(d,"cuerangesremoved",b)};
var DH=function(a,b,c){a.app.O("progresssync",b,c)};
var EH=function(){Di({YTP_TRANSLATE_MENU_ITEM:"Terjemahkan teks",YTP_CONTRIBUTE_MENU_ITEM:"Tambahkan subtitel/teks",YTP_ASR_SETTINGS_LABEL:"Teks Otomatis",YTP_LANGUAGE_OFF:"Nonaktif",YTP_FONT_FAMILY:"Jenis font",YTP_FONT_SIZE:"Ukuran font",YTP_FONT_COLOR:"Warna font",YTP_FONT_OPACITY:"Opasitas font",YTP_BACKGROUND_COLOR:"Warna latar belakang",YTP_BACKGROUND_OPACITY:"Opasitas latar belakang",YTP_WINDOW_COLOR:"Warna jendela",YTP_WINDOW_OPACITY:"Opasitas jendela",YTP_COLOR_WHITE:"Putih",YTP_COLOR_YELLOW:"Kuning",
YTP_COLOR_GREEN:"Hijau",YTP_COLOR_CYAN:"Sian",YTP_COLOR_BLUE:"Biru",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Merah",YTP_COLOR_BLACK:"Hitam",YTP_FONT_FAMILY_MONO_SERIF:"Serif Spasi Tunggal",YTP_FONT_FAMILY_PROP_SERIF:"Serif Proporsional",YTP_FONT_FAMILY_MONO_SANS:"Sans-Serif Spasi Tunggal",YTP_FONT_FAMILY_PROP_SANS:"Sans-Serif Proporsional",YTP_FONT_FAMILY_CASUAL:"Kasual",YTP_FONT_FAMILY_CURSIVE:"Kursif",YTP_FONT_FAMILY_SMALL_CAPS:"Kapital Kecil",YTP_CHAR_EDGE_STYLE:"Gaya tepi karakter",YTP_EDGE_STYLE_NONE:"Tidak ada",
YTP_EDGE_STYLE_RAISED:"Dinaikkan",YTP_EDGE_STYLE_DEPRESSED:"Diturunkan",YTP_EDGE_STYLE_OUTLINE:"Garis keliling",YTP_EDGE_STYLE_DROP_SHADOW:"Bayangan Jatuh",YTP_CLICK_FOR_SETTINGS:"Klik $GEAR_ICON untuk mengubah setelan"})};
var FH=function(a,b){this.K="";this.B=this.o=this.H=this.j=this.D=null;this.type=0;this.id=a;this.Ga={};qa(this.Ga,GH);b?qa(this.Ga,b):qa(this.Ga,HH);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.j=N("div",{id:"caption-window-"+this.id,"class":c});this.B=N("span",{"class":"captions-text",style:"visibility: hidden"});zf(this.B,"C");this.o=N("span",{"class":"captions-text",tabindex:7050,"aria-live":"assertive"});this.H=N("div",{"class":"caption-window-transform"});this.H.appendChild(this.o);
this.j.appendChild(this.H);this.L=1};var IH=function(a){Sf(a.j,a.Ga.leftPercentage+"%",a.Ga.topPercentage+"%");for(var b=0;8>=b;b++)Yd(a.j,"anchor-point-"+b);L(a.j,"anchor-point-"+a.Ga.anchorPoint)};var JH=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 KH=function(){this.o=[];this.j=[]};
var LH=function(a,b,c,d,e,f,k){fq.call(this,a,a+b,{priority:c});this.C=d;this.o=e;this.F=f||!1;this.G=k||null};var MH=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 LH(c,d,a?6:5,e,b,a)};
var NH=function(a,b,c,d,e,f,k){fq.call(this,a,a+b,{priority:c});this.J=!1;this.id=d;this.params=e||{};this.F=f||null;this.G=k||null;this.o="";this.C=!1;OH(this)};var PH=function(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.C?1:0};var QH=function(){return new NH(0,0x8000000000000,0,0,HH)};var OH=function(a){a.F&&qa(a.params,RH(a.F));a.G&&qa(a.params,RH(a.G))};
var SH=function(a){KH.call(this);this.j.push(QH());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=MH(a[b]);this.o.push(d)}};
var TH=function(a){KH.call(this);this.A={};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.A[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.J=!0:e=QH();var f={};qa(f,e?e.params:
HH);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 NH(b,e,0,d,f)}else b=null}this.A[c]=b;this.j.push(b);break;case "text":c=MH(a),this.o.push(c),b=c.C,this.A[b]&&(b=this.A[b],c=c.o,""!=b.o&&(b.C=!0),b.o+=c)}a=
a.nextSibling}0==this.j.length&&this.j.push(QH())};var UH=function(a){this.o=a||null;this.j={}};var VH=function(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.o&&(void 0==c||c))return VH(a.o,b)};var WH=function(a,b,c){void 0!=c&&(a.j[b]=c)};var XH=function(a,b,c){void 0!=c&&(a.j[b]=c)};var RH=function(a){var b=a.o?RH(a.o):{};qa(b,a.j);return b};
var YH=function(a){KH.call(this);var b={Pg:{},bm:{},dm:{}},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=ZH(e,"p"),l=void 0;k&&f.Pg[k]&&(l=f.Pg[k]);f=new UH(l);WH(f,"id",ZH(e,"id"));k=$H(e,"b");void 0!=k&&(f.j.bold=k);k=$H(e,"i");void 0!=k&&(f.j.italic=k);k=$H(e,"u");void 0!=k&&(f.j.underline=k);WH(f,"charEdgeStyle",aI(e,"et"));WH(f,
"offset",aI(e,"of"));WH(f,"textType",aI(e,"tt"));XH(f,"background",bI(e,"bc"));XH(f,"charEdgeColor",bI(e,"ec"));XH(f,"color",bI(e,"fc"));k=aI(e,"fs");void 0!=k&&0!=k&&WH(f,"fontFamily",k);k=ZH(e,"sz");void 0!=k&&WH(f,"fontSizeIncrement",k/100-1);k=ZH(e,"bo");void 0!=k&&WH(f,"backgroundOpacity",k/255);e=ZH(e,"fo");void 0!=e&&WH(f,"textOpacity",e/255);e=VH(f,"id",!1);b.Pg[e]=f;break;case "ws":f=cI(b,e);e=VH(f,"id",!1);b.dm[e]=f;break;case "wp":f=dI(b,e),e=VH(f,"id",!1),b.bm[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=eI(b,f);if(f=c[k.id])f.end=k.start;c[k.id]=k;this.j.push(k);break;case "p":for(var k=b,l=f,m=[],p=ZH(l,"t")||0,u=ZH(l,"d")||0,v=ZH(l,"w")||0,z=!!$H(l,"a"),y=z?6:5,ga=ZH(l,"p"),ga=ga?k.Pg[ga]:null,va=l.childNodes,I=0;I<va.length;I++){var W=va[I];if("s"==W.tagName){0<I&&(z=!0);var Kb;Kb=k;var td=W,W=p,To=u,Uo=v,GB=z,HB=y,Vo=ga,iu=td.textContent?ya(td.textContent):"",Bl=ZH(td,"p"),Vo=Bl?Kb.Pg[Bl]:Vo;Kb=ZH(td,"t")||0;Kb=new LH(W+Kb,
To-Kb,HB,Uo,iu,GB,Vo)}else Kb=l.textContent?ya(l.textContent):"",Kb=new LH(p,u,y,v,Kb,z,ga);m.push(Kb)}l=m;if(0<l.length)for(k=c[l[0].C],k||(k=eI(b,f),k.id=a--,this.j.push(k)),f=0;f<l.length;f++)m=l[f],l[f].C=k.id,p=k,u=m.o,""!=p.o&&(p.C=!0),p.o+=u,this.o.push(m)}};var ZH=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};var $H=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};var aI=function(a,b){var c=ZH(a,b);if(void 0!=c)return c};
var bI=function(a,b){var c=a.getAttribute(b);if(null!=c)return fI.test(c),c};var cI=function(a,b){var c=ZH(b,"ws"),d;c&&a.dm[c]&&(d=a.dm[c]);c=new UH(d);WH(c,"id",ZH(b,"id"));WH(c,"modeHint",aI(b,"mh"));WH(c,"textAlign",ZH(b,"ju"));WH(c,"textPrintDirection",aI(b,"pd"));WH(c,"textScrollDirection",aI(b,"sd"));WH(c,"windowBorderType",aI(b,"et"));XH(c,"windowBorderColor",bI(b,"wbc"));XH(c,"windowColor",bI(b,"wfc"));d=ZH(b,"wfo");void 0!=d&&WH(c,"windowOpacity",d/255);return c};
var dI=function(a,b){var c=ZH(b,"wp"),d;c&&a.bm[c]&&(d=a.bm[c]);c=new UH(d);WH(c,"anchorPoint",aI(b,"ap"));WH(c,"colCount",ZH(b,"cc"));WH(c,"id",ZH(b,"id"));WH(c,"leftPercentage",ZH(b,"ah"));WH(c,"rowCount",ZH(b,"rc"));WH(c,"topPercentage",ZH(b,"av"));return c};var eI=function(a,b){var c=ZH(b,"id")||0,d;d=ZH(b,"t");var e=ZH(b,"d")||0x8000000000000,f=dI(a,b),k=cI(a,b);return new NH(d,e,0,c,null,f,k)};
var gI=function(a,b){KH.call(this);this.j.push(QH());for(var c=a.split(hI),d=1;d<c.length;d++){var e;e=c[d];var f=b;if(""==e||0==e.search(iI))e=null;else{var k=e.split(jI),l=0,m=k[l++].match(kI);m||(m=k[l++].match(kI));m?(e=lI(m[1],f)||0,f=lI(m[3],f)||0,k=k.slice(l).join("\n"),e=new LH(e,f-e,5,0,k)):e=null}e&&this.o.push(e)}};var lI=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 mI=function(a,b){this.j=[];this.o=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new gI(a,b||0):(c=mz(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new YH(c):new TH(c):new SH(c):null:null;c&&(this.o=c.j,this.j=c.o)};var nI=function(){this.A=[];this.j=[];this.o=-1};var oI=function(a,b){return b?a.j.concat(a.A):a.j};
var pI=function(a,b){switch(b.A){case "asr":var c=a.A;eb(c,A(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.o)a.o=a.j.length;c=a.j;eb(c,A(b.equals,b))||c.push(b)}};var qI=function(a,b){var c=fb(a.j,A(b.equals,b));-1!=c&&(a.o=c)};var rI=function(a){this.xo=!!a;this.j=new nI;this.C=[]};var sI=function(a,b){return eb(oI(a.j,!0),function(a){return a.toString()==b})};var tI=function(a){rI.call(this,a.Nh);this.o=null;this.B=void 0;this.A=null;this.C=a.captionTranslationLanguages};
var uI=function(a,b){var c=b.H,d={};if(a.B||b.C)d.fmt=a.B||"srv"+b.C;b.o&&(d.tlang=b.o.languageCode);return oj(c,d)};
var vI=function(){this.da=this.ca=!1;this.U=1;this.B=20971520;this.C=8388608;this.A=window.NaN;this.J=3145728;this.K=62914560;this.N=10485760;this.G=window.NaN;this.ga=2;this.ha=25;this.D=2097152;this.H=!1;this.F=1800;this.j=1.15;this.o=1.05;this.Ca=!0;this.liveChunkReadahead=3;this.wa=ht("xboxone")||lt()||gt();this.W=this.Y=!1;this.qa=Dl&&!0;this.Aa=!0;this.P=this.La=this.L=!1;this.fa=this.T=0;this.ka=.8;this.la=this.$=!1};
var wI=function(a,b){1440<b&&!a.ca&&(a.B=36700160,a.C=5242880,a.J=10485760,a.D=4194304,a.ca=!0);2160<b&&!a.da&&(a.B=104857600,a.da=!0)};var xI=function(){this.ta=[]};var yI=function(a,b){G.call(this);this.o=b;this.G=new xI;this.B=!0;this.H=this.C=this.D=this.F=this.j=null;this.A=0};var zI=function(a,b){a.F=b};var AI=function(a){var b;if(b=!a.B&&null!==a.j)b=a.j,b=b.j.mh(b);return b&&!a.C&&!(a.j&&30<a.j.startTime-a.o.getCurrentTime())};
var BI=function(a){a.isDisposed();var b;b=a.j;b=as(b.j,b);if(!a.G.contains(b.j[0].B)){var c=Kr(Yr(b));a.C=yj(c,{format:"RAW",Wb:A(a.J,a),withCredentials:!0});a.D=b;var c=a.G,d=a.D.j[0].B,e=xb(c.ta,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ta[e-1]&&e<c.ta.length&&1==c.ta[e]-d?(pb(c.ta,e),pb(c.ta,e-1)):0<e&&1==d-c.ta[e-1]?c.ta[e-1]=d:e<c.ta.length&&1==c.ta[e]-d?c.ta[e]=d:(ub(c.ta,e,0,d),ub(c.ta,e+1,0,d)))}a.j=db(b.j)};var CI=function(a){a.A=zi(A(function(){AI(this)&&BI(this)},a),1E3);AI(a)&&BI(a)};
var DI=function(a,b){rI.call(this);this.A=a;this.o=new yI(new vI,b)};var EI=function(a,b){FH.call(this,a,b);this.type=1;this.G=this.J="";this.F=!1;this.A=null;this.C=[];this.o.style.display="block";this.o.style.padding="0";var c=this.o;Yd(c,"captions-text");L(c,"caption-painton-text-rows")};var FI=function(a){return a.C.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)};
var GI=function(a,b){FH.call(this,a,b);this.type=2;this.P=32;this.C=0;this.G=null;this.D=[];this.F=[];this.A=[];this.G=new Pd(433);this.G.stop();Ll(this.G,"tick",A(this.J,this))};
var HI=function(a){if(!II(a))if(a.C>=a.D.length)JI(a);else{var b=a.A.length-1;0>b&&(a.F.push(0),a.C=0,a.A.push(""),b=0);for(var c=a.D.length,d=a.C;d<c;d++){var e=a.D[d];if("\n"==e.o){a.C++;a.F[b]++;break}if(e.F||0==a.A[b].length)a.A[b]+=e.o,a.C++,a.F[b]++;else break}JI(a);d<c&&!II(a)&&(b=a.ai(),L(a.o,"caption-rollup"),a.j.style.overflow="hidden",a.o.style.top=-b+"px",a.G.start())}};var II=function(a){return a.G.enabled||Wd(a.o,"caption-rollup")};
var JI=function(a){if(!II(a)){for(;a.A.length<a.Ga.rowCount;)a.A.unshift(""),a.F.unshift(0);for(;a.A.length>a.Ga.rowCount;){a.A.shift();var b=a.F.shift();0<b&&(a.C-=b,a.D.splice(0,b))}a.Zd(JH(a.A.join("\n")))}};var KI=function(a){a.B.style.fontFamily=a.o.style.fontFamily;a.B.style.fontSize=a.o.style.fontSize;a.o.appendChild(a.B);zf(a.B,"\u2014");var b=a.B.offsetWidth;zf(a.B,String.fromCharCode(160));b=2*a.B.offsetWidth+b*a.P;a.o.removeChild(a.B);return b};
var LI=function(a,b,c,d){rI.call(this,d);c||(c=nj(a).hl||"",c=c.split("_").join("-"));this.A=oj(a,{hl:c});this.B=b;this.D={};this.o=null};var MI=function(a,b){var c=a.A,d={v:a.B,type:"track",lang:b.j,name:b.B,kind:b.A,fmt:b.C};b.o&&(d.tlang=b.o.languageCode);return c=oj(c,d)};
var NI=function(a){jq.call(this,a,"subtitlesModuleData");this.ra="captions";this.G="cc";EH();this.fa=!0;this.ca=this.N=this.ha=!1;this.X=a.V();this.C=null;this.L=AE(a);this.A={};this.da=this.$=null;this.Y=[];this.K={};this.W={};this.qa=this.J=this.la=!1;this.T=new FH(99,OI);this.o=this.B=this.D=null;this.wa=!1;this.ga=new Td(this.Ul,0,this);H(this,this.ga);this.ka=new Td(this.BB,2E3,this);H(this,this.ka);this.subscribe("onResize",A(this.gp,this));this.subscribe("onCaptionsToggle",A(this.EA,this));
this.subscribe("onPlaybackAudioChange",A(this.cy,this));this.subscribe("onCaptionsDisplaySettings",A(this.Cl,this))};var PI=function(a){return"3"!=a.X.A?!1:!!a.L.o.textTracks};var QI=function(a,b,c,d,e){x(a.A[b])&&(a.A[c]=d.indexOf(a.A[b]),-1==a.A[c]&&(a.A[c]=e),delete a.A[b])};var RI=function(a,b){if(b&&a.C.captionTracks.length){var c=a.j.Zf().tn;if(2==c||3==c)return!0}if(1==a.X.ca||1==a.C.ne||"alwayson"==a.C.Qc("yt:cc")||PI(a))return!0;c=pq(a,"module-enabled");return null!=c?!!c:"on"==a.C.Qc("yt:cc")};
var SI=function(a){a.o&&a.o==a.B.Kd()&&TI(a);a.B.il(A(a.Lp,a),!0,PI(a)?"vtt":void 0,a.j.Zf())};var UI=function(a){a.N=!0;PI(a)||(VI(a),a.gp())};var WI=function(a){a.B.Kd()&&XI(a,a.B.Kd())};var YI=function(a){var b=[];Ob(a.K,function(a){a instanceof EI&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ga.Sl-a.Ga.Sl});var c=ZI(a.L).height,d=b[0].Ga.Sl;F(b,function(a){a.Ga.Sl=d;var b=Math.round(a.Ga.cq*a.ai());d-=Math.round(b/c*100);a.Wd()},a)}};
var TI=function(a){a.o&&(a.o=null,kq(a),a.Y=[],a.o=null,a.Ul(),a.B.Tl())};var XI=function(a,b,c){!b||a.o&&b.equals(a.o)||(null!=c&&(a.J=c),a.F?(a.o=b,$I(a),a.zl("control_subtitles_set_track",Kt(b)),a.N||UI(a)):(a.B.fl(b,A(a.Mp,a)),a.ha=!0))};var VI=function(a,b){var c=a.L.Ka();Ob(a.K,function(a){a.Bd(this.A,c)},a);a.D&&a.D.Bd(a.A,c);a.T.Bd(a.A,c);a.Ul();n(b)&&!b||a.Cl()};
var aJ=function(a){if(a.loaded){var b=a.ka;b.isActive()&&Ud(b);qq(a,"module-enabled",!1);(b=lq(a.j.app))&&b.A&&sA(b.A.o);TI(a);a.J=!1;a.F?($I(a),a.zl("control_subtitles_set_track")):a.O("publish_external_event","captionschanged",{});WI(a)}};var bJ=function(a){return NI.prototype.Xa(a)?new NI(a):null};
var cJ=function(a,b){if(b&&!a.D){a.D=new FH(98,dJ);a.$.appendChild(a.D.j);var c=a.D,d=Q("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Zd(JH(d)));a.D.Bd(a.A,a.L.Ka())}else!b&&a.D&&(pf(a.D.j),a.D=null)};
var eJ=function(a,b){if(b)if(dc(b,"reset"))delete a.A,a.A=ec(fJ),a.Cl(),VI(a);else{if(!gJ){var c={};c.color=a.ak;c.textOpacity=a.ll;c.background=a.ak;c.backgroundOpacity=a.ll;c.windowColor=a.ak;c.windowOpacity=a.ll;c.charEdgeStyle=a.Zu;c.fontFamilyOption=a.Hv;c.fontSizeIncrement=a.Iv;gJ=c}var c=gJ,d;for(d in c)switch(d){case "fontFamilyOption":a.A.fontFamily=c[d](b[d],a.A.fontFamily);break;default:a.A[d]=c[d](b[d],a.A[d])}VI(a,wG(a.X))}};
var $I=function(a){var b={};a.o&&(b=Kt(a.o));a.O("publish_external_event","captionschanged",b)};var hJ=function(a){jq.call(this,a);this.ra="ypc_license_checker";this.G="ypc_license";this.D=!1;this.B=0;this.C=!1;this.o=window.NaN;pu();this.A=null};var iJ=function(a){return $w(a.getVideoData(),"ypc_license_checker_module")};var jJ=function(a){return iJ(a)?new hJ(a):null};var kJ=function(a){var b=a.j.getVideoData();return Rw(b)?!!a.A:!!b.heartbeatToken};
var lJ=function(a,b){if(!a.o&&a.D&&kJ(a)){var c=a.j.getVideoData(),d=a.j.V();if(Rw(c)||!wG(d)||d.experiments.na("tv_player_heartbeats"))c=b,void 0==c&&(c=a.C?a.A?1E3*a.A.interval:a.j.getVideoData().heartbeatInterval||6E4:1E3),a.o=xi(A(a.GB,a),c)}};var mJ=function(a,b){if(a.o){a.log({errorType:b});a.o=window.NaN;a.B++;var c=a.j.getVideoData();(c.heartbeatSoftFail?0:a.B>=(a.A?a.A.j:c.heartbeatRetries||5))?(c=Q("YTP_ERROR_LICENSE"),nJ(a.j.app.j,"heartbeat",c,void 0)):lJ(a)}};var oJ=function(a){try{return ae(a)}catch(b){return null}};
var pJ=function(a){a.B=0;a.o&&(Ai(a.o),a.o=window.NaN);a.C=!1};var qJ=function(a){Yp("/gen_204?"+a,void 0)};var rJ=function(a,b,c){if(!a)return null;var d=b.docid;b=b.fmt_list;if(d&&b){var e={};F(b,function(a){a.itag&&(e[a.itag.toString()]=!0)});return sJ(a,d,e,c)}return null};
var sJ=function(a,b,c,d){d=P(d.split(","),lj);if(!Zd(d,function(a){return!!c[a.itag]}).length)return null;var e=Kg(a)||"",f=Lg(a);return P(d,function(a){if(c[a.itag]){var d=bh(ah(ph(a.url),e),f),m=Hg(a.url),d=lh(lh(d,"orig_host",Gg(m[1],m[2],m[3],m[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}return Rg(a)}).join(",")};
var tJ=function(a,b,c){var d=uJ(b);d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),yj(a,{format:"JSON",method:"GET",timeout:2E3,jb:function(a,b){null==b&&(b={});b.status="success";c(b)},onError:function(){c({status:"error"})},Ud:function(){var a=uJ(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};var uJ=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
var vJ=function(a){jq.call(this,a);this.G=this.ra="spacecast";this.o=null};var wJ=function(a){return a.getVideoData().spacecastModule?new vJ(a):null};var xJ=function(a){jq.call(this,a);this.ra="ypc_clickwrap";this.G="ypc-clickwrap";Di({YTP_YPC_START_RENTAL_HEADER:"Ingin memulai rental ini?",YTP_YPC_START_RENTAL_BUTTON:"Mulai periode rental"});this.A=this.o=null};var yJ=function(a){return $w(a.getVideoData(),"ypc_clickwrap_module")?new xJ(a):null};
var zJ=function(){return[GE.o,Ox,iz,wJ,bJ,RG.o,yJ,jJ,YG]};var AJ=function(a){this.C=Math.exp(Math.log(.5)/a);this.o=this.B=0};var BJ=function(a){this.o=window.Float32Array?new window.Float32Array(a):Array(a);this.j=a-1};var CJ=function(a,b){a.j=(a.j+1)%a.o.length;a.o[a.j]=b};var DJ=function(a,b,c){this.H=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.o=0;this.B=[]};
var EJ=function(a,b){FJ(a,"value");var c=b*a.o,d=0,e=window.NaN;a.B.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e};var FJ=function(a,b){a.G!=b&&(a.G=b,Db(a.B,b))};var GJ=function(a){this.B=a;this.o=[]};
var HJ=function(a){this.j=a;this.D=this.F=0;this.o=-1;this.J=new BJ(100);this.H=0;this.K=Vs();this.B=new DJ(4,.6);this.C=new AJ(4);this.G=new GJ(17);this.j.D?this.A=new AJ(17):this.A=new DJ(17,.5,.1);a=fj("yt-player-bandwidth")||{};this.A.j(this.j.A,0<a.byterate?a.byterate:this.j.o);0<a.delay&&this.B.j(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.j(1,+a.tailDelay);this.o=Vs()};var IJ=function(a,b,c){b=Math.max(b,.05);a.A.j(b,c/b);JJ(a)};
var KJ=function(a,b,c){(0,window.isNaN)(c)||(a.D+=c);(0,window.isNaN)(b)||(a.F+=b);a.G.j(b,c/b);JJ(a)};var LJ=function(a){a=a.B.A();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};var MJ=function(a){return a.C.A()||0};var NJ=function(a){var b=a.A.A(),b=0<b?b:1;a=a.G.A();a=0<a?a:1;return a>2*b?(b+a)/2:b};var OJ=function(a){var b={};b.delay=LJ(a);b.tailDelay=MJ(a);b.byterate=NJ(a);return b};var PJ=function(a){-1<a.o&&3E4<Vs()-a.o&&(BA(OJ(a)),a.o=Vs())};
var JJ=function(a){var b=Vs();a.K=b;500<b-a.H&&(CJ(a.J,1/(1/NJ(a)+MJ(a))),a.H=b)};var QJ=function(a){return 4E3<=Vs()-a.K};var RJ=function(){this.o=13E4;this.A=.5;this.D=!1;this.B=.02;this.j=.2;this.C=.05};var SJ=function(){G.call(this);this.j=[];this.D={};this.A={};this.B={};this.o=this.F=null;this.C=[];this.G=null};var TJ=function(a){a.j=Zd(a.j,function(a){try{a.destroy()}catch(c){Ci(c)}return!1},a)};var UJ=function(a,b,c){VJ(a);a.G=b;a.C=sb(c);F(a.j,function(a){0<=jb(c,a.ra)&&(a.F=b,a.Di(!!a.F))})};
var VJ=function(a){F(a.C,function(a){if(a=jH(this,a))a.F=null,a.Di(!1)},a);a.G=null;a.C=[]};var WJ=function(a){a=jH(a,"iv-module");return!(!a||!a.loaded)};var XJ=function(a,b){if(!b)return P(a.j,function(a){return a.ra});var c=jH(a,b);return c?c.Re():[]};var jH=function(a,b){return eb(a.j,function(a){return a.ra==b})};var YJ=function(a){var b={};F(a.j,function(a){qa(b,a.nh())});return b};var ZJ=function(a,b,c){this.B=b;this.j=c;this.C=a;this.o=!0};
var $J=function(a,b){jc.call(this,"adError");this.B=a;this.A=b?b:null};var aK=function(a,b,c){jc.call(this,a);this.B=b;this.A=null!=c?c:null};var bK=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 cK=function(a){this.j=a};var dK=function(){var a=eK();return fK(a,"disableExperiments")};
var fK=function(a,b){if(Yb(a.j,b)){var c=a.j[b];if("boolean"==typeof c)return c}return!1};var gK=function(a){if(Yb(a.j,"forceExperimentIds")){a=a.j.forceExperimentIds;var b=[],c=0;da(a)&&F(a,function(a){fa(a)&&(b[c++]=a)});return b}return null};var hK=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var iK=function(){return jK.F};var eK=function(){var a=jK;if(null==a.C){var b={},c=kh(new O(ef().location.href));if(vh(c,"tcnfp"))try{b=ae(c.get("tcnfp"))}catch(d){}a.C=new cK(b)}return a.C};
var kK=function(a,b,c,d){this.o=a;this.j=je(c||0,0,1);this.A=null!=d?d:!0};var lK=function(a){this.A=a;this.o=new vg;this.j=null};var mK=function(a){var b=Math.random(),c=0,d=a.o.Ja();F(d,function(a){c+=a.j},a);var e=1<c?c:1;a.j=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].j,f/e>=b){a.j=d[k];break}};
var nK=function(){this.o=null!=r.G_testRunner;this.j=new vg;oK(this,41351050,.05);oK(this,41351051,.05);oK(this,41351052,.05);oK(this,41351053,.05);oK(this,31061770,.05);oK(this,31061771,.05);oK(this,31061772,.05);oK(this,31061773,.05);oK(this,41351082,.01);oK(this,41351083,.01);oK(this,41351058,.01);oK(this,41351059,.01);oK(this,41351062,.01);oK(this,41351063,.01);oK(this,41351018,.01);oK(this,41351019,.01);oK(this,41351066,.01);oK(this,41351067,.01);oK(this,41351072,.01);oK(this,41351073,.01);oK(this,
41351088,.01);oK(this,41351089,.01);oK(this,136961001,.01);oK(this,136961002,.01);oK(this,41351032,.01);oK(this,41351033,.01);oK(this,41351025,.01);oK(this,41351028,.01);pK(this);var a;a=eK();a=gK(a);null!=a&&(this.o=!1,qK(this,a.map(String)))};var rK=function(){sK||(sK=new nK);return sK};var tK=function(){var a=rK();F(a.j.Ma(),function(a){ta(a,"FORCED_PUB_EXP_LAYER_")&&this.j.remove(a)},a)};
var oK=function(a,b,c){C(D("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new kK(b,0,c),uK(a,"GvnExternalLayer").o.set(b.getId(),b))};var pK=function(a){dK()||F(a.j.Ja(),function(a){mK(a)},a)};var qK=function(a,b,c){F(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;uK(this,a).j=new kK(b,0,0,f)}},a)};var vK=function(a,b){return a.o?!1:Gh(a.j.Ja(),function(a){return!!a.j&&a.j.getId()==b})};
var wK=function(a){return rK().o?!1:Gh(a,function(a){return vK(rK(),a)})};var xK=function(a){if(a.o)return"";var b=[];F(a.j.Ja(),function(a){(a=a.j)&&a.A&&b.push(a.getId())});return b.sort().join(",")};var uK=function(a,b){var c=a.j.get(b);null==c&&(c=new lK(b),a.j.set(b,c));return c};var yK=function(){return wK([9418778,9417893,9417894,9417895,9419817])};var zK=function(a){return null!=a?AK(BK,a):!1};
var AK=function(a,b){try{var c=gh(new O(b)),c=c.replace(/^www./i,"");return Gh(a,function(a){return CK(a,c)})}catch(d){return!1}};var CK=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 DK=function(a){if(EK(a,FK))return a;if("https:"==window.location.protocol&&(EK(a,GK)||iK()&&wK([9417690,9417707]))){var b=new O(a);if("https"==b.B)return a;$g(b,"https");return b.toString()}return a};var EK=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};var HK=function(a){window.open(DK(a),"_blank")};
var IK=function(a,b,c){null!=a?(lh(a,"label",b),null!=c&&lh(a,"value",c.join(";")),a=a.toString()):a="";JK(a)};
var JK=function(a,b,c,d,e,f){null!=a&&null!=b&&(a=bK(a,b));try{if(null!=c){b=a;var k=(c||{}).viewability||"na";if(C(D(k)))a=b;else{var l=new O(b);vh(l.j,"label")?(lh(l,"acvw",k),a=l.toString().replace(/%2C/g,",")):a=b}}null!=e&&(a=KK(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=bK(c,m);if(2048>p.length){a=p;break a}}a=
c}}catch(v){}try{a=DK(a);var u=!iK()||vK(rK(),41351089);null!=d&&d?LK.qq(a,u):LK.pq(a,u)}catch(v){}};var MK=function(a,b){null!=a&&F(a,function(a){JK(a,b)})};var KK=function(a,b,c){if(C(D(b)))return a;var d=new O(a),e=d.o;return null!=e&&ua(e,".g.doubleclick.net")&&(c||vh(d.j,"label"))?(lh(d,"ged",b),d.toString()):a};var NK=function(a,b){this.message=a;this.errorCode=b};var OK=function(a,b,c){return PK("adLoadError",a,b||null,vb(arguments,2))};
var QK=function(a,b,c){return PK("adPlayError",a,b||null,vb(arguments,2))};var RK=function(a,b,c,d,e){var f=a.apply(null,rb([c,d],vb(arguments,3)));b.Z(new aK("log",null,f))};var PK=function(a,b,c,d){if(c instanceof ZJ)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 ZJ(a,b,e);a.A=c;return a};var SK=function(a,b,c,d){var e=QK.apply(null,rb([b,c],vb(arguments,3)));a.Z(new $J(e))};
var TK=function(){return!UK()&&(nc("iPod")||nc("iPhone")||nc("Android")||nc("IEMobile"))};var UK=function(){return nc("iPad")||nc("Android")&&!nc("Mobile")||nc("Silk")};var VK=function(){return TK()||UK()};var WK=function(){return XK&&!YK||Ma(oc,"iPod")};var ZK=function(){return WK()||YK};var $K=function(a,b){if(null==aL[b]){var c;C(bL)&&(c=a.exec(oc))&&(bL=c[1]);(c=bL)?(c=c.replace(/_/g,"."),aL[b]=0<=Sa(c,b)):aL[b]=!1}return aL[b]};
var cL=function(){var a=oc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"Opera TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV")||dL&&Ma(a,"AFT"):!1};var eL=function(){var a=oc;return a?Ma(a,"Nintendo WiiU"):!1};var fL=function(){return Ma(oc,"PlayStation")};var gL=function(){return WK()||dL&&(!dL||!$K(hL,4))||!iK()&&(Ma(oc,"CrKey")||fL()||Ma(oc,"Roku")||cL()||Ma(oc,"Xbox"))?!1:!0};
var iL=function(){this.j=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};var jL=function(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;b=xK(rK());C(D(b))||(c.e=b);c=kL(a,c);var e=new O("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){lh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=lL();$g(e,a.B);JK(e.toString())}};var kL=function(a,b){b.id="";var c=lL();b.c=a.o;b.domain=c.o;return b};
var lL=function(){var a=ef(),b=window.document;return new O(a.parent==a?a.location.href:b.referrer)};var mL=function(){};var nL=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=K()-window.performance.timing[a],Math.round(a/1E3)):null};var oL=function(){this.domLoading=nL("domLoading");this.domComplete=nL("domComplete");this.unloadEventStart=nL("unloadEventStart")};
var pL=function(a){var b={},c=new oL,d=null;null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+K()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};var qL=function(a){for(var b=[],c=a=ef(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var rL=function(){this.j={};this.o=0};var sL=function(a,b){this.C=a;this.A=!0;this.j=b};
var tL=function(a,b,c){sL.call(this,a,c);this.B=b;this.j=!!c};var uL=function(a){sL.call(this,"sv",a);this.j=null==a?"1":"2"};var vL=function(a,b){sL.call(this,a,b)};var wL=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 vL("",new se(c,b,Number(a[3])-c,Number(a[2])-b))}return new vL("",new se(0,0,0,0))};var xL=function(){yL||(yL=new rL);return yL};
var zL=function(a){var b=new se(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new se(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 AL=function(a,b){var c=a.getBoundingClientRect(),d=$f(a,b);return new se(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
var BL=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 se(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 sL("vp",d));d&&0<d?(e=te(b),f=te(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new tL("ct",512,e));d&&0<d?(e=te(b),f=te(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new tL("vb",
1024,e));d&&0<d?(e=te(b),f=te(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new tL("vl",2048,e));d&&0<d?(b=te(b),c=te(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new tL("vr",4096,c))}};var CL=function(a){this.j=ic.apply(null,arguments);return this};var DL=function(a,b){var c=dc(a.j,"eb",0);a.j.eb=c|b};
var EL=function(a,b){var c=0;Xb(ef(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=xL();d.j={};var f=new tL("ef",32,!0);f.A=!1;d.setItem(f);f=ef().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new tL("tv",64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=ef().top;try{l=!!m.location.href||""===m.location.href}catch(v){l=!1}if(l){var p=qL(e);k=p&&0!=p.length?"1":"0"}else k=
"2"}catch(v){k="2"}d.setItem(new sL("is",k));p=l=ef().top;"2"==k&&(p=ef());m=AL(e,p);d.setItem(new vL("er",m));var u;try{u=p.document&&!p.document.body?null:bf(p||window)}catch(v){u=null}d.setItem(new uL(u));u?(p=If(Te(p.document)),d.setItem(new tL("sp",16384,!!p)),u=p?new se(p.x,p.y,u.width,u.height):null):u=null;d.setItem(new vL("vi",u));if(u&&"1"==k){k=qL(e);e=[];for(p=0;p<k.length;p++)(f=AL(k[p],l))&&e.push(f);e.push(u);u=zL(e)}BL(d,m,u);d.o&&(k=Math.round(K()/1E3)-d.o,d.setItem(new sL("ts",k)));
d.o=Math.round(K()/1E3)}else d=xL(),d.j={},d.o=Math.round(K()/1E3),d.setItem(new tL("ef",32,!1));this.A=d;this.j=new CL("ta",c,"ve",3);c&&DL(this.j,1);Xb(ef(),"ima","video","client","crossdomainTag")&&DL(this.j,4);Xb(ef(),"ima","video","client","sdkTag")&&DL(this.j,8);Xb(ef(),"ima","video","client","jsTag")&&DL(this.j,2);b&&dc(b,"fullscreen",!1)&&DL(this.j,16);this.o=d=null;if(c&&(c=Xb(ef(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=Xb(ef(),"ima","video","client","getLastSnapshotFromTop"))if(k=
c())this.o.extendWithDataFromTopIframe(k.buckets,k.tt,k.pd),c=this.A,d=k.er,k=k.vi,d&&k&&(d=wL(d).getValue(),k=wL(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new vL("er",e))),c.getItem("vi")&&(u=c.getItem("vi").getValue(),u.top+=d.top,u.left+=d.left,l=[],l.push(u),l.push(d),l.push(k),d=zL(l),BL(c,e,d),c.setItem(new vL("vi",k))));d=this.o.getTimeSinceTagLoadSeconds()}this.j.extend(pL(d))};
var FL=function(a,b){try{return(new EL(a,b)).Zb()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};var GL=function(a){try{return!!a&&null!=a.location.href&&mc(a,"foo")}catch(b){return!1}};var HL=function(a,b){if(!(1E-4>Math.random())){var c=Math.random();if(c<b){var d=window;try{var e=new window.Uint32Array(1);d.crypto.getRandomValues(e);c=e[0]/65536/65536}catch(f){c=Math.random()}return a[Math.floor(c*a.length)]}}return null};
var IL=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};var JL=function(){var a=KL;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 LL=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
var ML=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};var NL=function(a){var b="";IL(a,function(a,d){if(0===a||a)b+="&"+d+"="+(0,window.encodeURIComponent)(String(a))});return b};var OL=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);ML(d,"load",e);ML(d,"error",e)};LL(d,"load",e);LL(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
var PL=function(a){return"function"==typeof window.encodeURIComponent?(0,window.encodeURIComponent)(a):(0,window.escape)(a)};var QL=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};var RL=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
var SL=function(){var a;TL.mozVisibilityState?a="mozvisibilitychange":TL.webkitVisibilityState?a="webkitvisibilitychange":TL.visibilityState&&(a="visibilitychange");return a};var UL=function(a,b,c){this.C=a;this.B=b;this.o=c;this.A=this.j};var VL=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1};var WL=function(a,b,c,d){var e;try{e=c()}catch(l){var f=a.o;try{var k=XL(l),f=(d||a.A).call(a,b,k,void 0,void 0)}catch(m){a.j("pAR",m)}if(!f)throw l;}finally{}return e};
var YL=function(a,b){var c=ZL;return function(){var d=arguments;return WL(c,a,function(){return b.apply(void 0,d)})}};var XL=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 VL(b,a.fileName,a.lineNumber)};
var $L=function(a,b){return YL(a,b)};var aM=function(a,b){return YL(a,b)};var bM=function(a,b,c,d){c=YL(d||"osd_or_lidar::"+b,c);LL(a,b,c,void 0);return c};var cM=function(a,b){var c=a||X;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new qe(-1,-1):b?(new qe(c.innerWidth,c.innerHeight)).round():bf(c||window).round()}catch(d){return new qe(-12245933,-12245933)}};
var dM=function(){var a=eM().D,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=N("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=Ve(b))){var c,d;try{if(c=ef(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=[];F(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&&yA&&At("6.0.1")&&0<=Sa(tM,"10.1")?!0:!1};var uM=function(a,b){this.B=null;this.F=a;this.G=b||1;this.j="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.G){case 4:return a.F?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new ne(e,f),new ne(c-e,f),new ne(e,d-f),new ne(c-e,d-f)]):[new ne(e,0),new ne(0,f),new ne(e,d-1),new ne(c-1,f)];case 3:return[new ne(c-1,0),new ne(e,f),new ne(0,d-1)];default:return[new ne(e,f)]}};
var wM=function(a,b){var c;try{c=b||a.B.getBoundingClientRect()}catch(e){c=new pe(0,0,0,0)}var d=vM(a,c);F(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.J=b||3E3;this.K=c||3E3;this.o=[];this.H=!1;this.A=-1;this.C=this.D=0};var yM=function(a,b,c){this.snapshot=a;this.o=b;this.j=c};
var zM=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Sa(tM,"11")&&c)||vc&&9>Ac||0<a.o.length)return!1;try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=Ve(b),k=[];if(e){var l=mM(),d=vM(a,d);F(d,function(a,b){var d=new AM("e",f,c,String(b));this.o.push(d);k.push(A(d.zo,d,l,a))},a);of(b,l,0)}else d=wM(a,d),F(d,function(a,d){var e=new AM("e",f,c,String(d));this.o.push(e);k.push(A(e.yo,e,b,a))},a);var m=!0;F(k,function(a){m=m&&a()});m?(a.j="l",a.B=
b,a.H=!e):(F(a.o,function(a){a.remove()}),a.o=[]);return m};var BM=function(a){if(a.B&&a.H){var b=wM(a);F(b,function(a,b){this.o[b]&&this.o[b].setPosition(a)},a)}};var CM=function(a){F(a.o,function(a){a.remove()});a.o=[];a.j="d"};var DM=function(a){var b=K(),c=a.D?b-a.D:0,d=-1,e=P(a.o,function(a){return EM(a,b)});4==a.o.length?d=a.F?FM(e):GM(e):3==a.o.length?d=HM(e):1==a.o.length&&(d=[-1,0,1,2,3,5][EM(a.o[0],b)+1]);a.C=d==a.A?a.C+c:0;c=new yM(d,a.A,c);a.A=d;a.D=b;IM(a,d);BM(a);return c};
var JM=function(a){var b=Ib(Sb(KM));F(a,function(a){0<=a&&++b[a]});return b};var GM=function(a){a=JM(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 HM=function(a){var b=JM(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 FM=function(a){a=JM(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 IM=function(a,b){if(0==b&&LM(a))a.j="n";else switch(b){case -1:a.j="d";break;case 0:a.j="l";break;case 1:a.j="f";break;case 2:a.j="c";break;case 3:case 4:case 5:case 6:a.j="r"}};var LM=function(a){return"n"==a.j?!0:"l"==a.j&&a.C>=a.K};
var AM=function(a,b,c,d){this.module=null;this.A=a;this.D="e"==a?String(c)+"~"+String(d):"";this.j=[];this.o=-1;this.C=0;this.B=Ib(Sb(MM));this.F=Ib(Sb(KM));"e"==this.A&&(NM[this.D]=A(this.ow,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="'+OM(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=PM(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a};var PM=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=OM(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.A?"":"hidden";e.style.opacity=0;return e};
var OM=function(a,b){var c=Sg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.D);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Sg(c,"delay","1"));return c};
var EM=function(a,b){if("e"==a.A){var c=null;try{c=a.module.it()}catch(f){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.F[c+1];a.o=c}else{var d=Number(b),e=QM(a);RM(a,e,d);c=a.j[a.j.length-1];if(null===e){if(e=d=0,0<a.o||fa(c.Xi))e=d=2}else null===c.Xi||c.Pl>=d?(d=10<=e?4:0,e=0):e>c.Xi?(c=(e-c.Xi)/(d-c.Pl)*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.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.o=d;a.C=e}return a.o};
var QM=function(a){var b=null;try{b=a.module.fc()}catch(c){}return b};var RM=function(a,b,c){var d=c-1E3,e=a.j.length;F(a.j,function(a,b){a.Pl<=d&&(e=Math.min(e,b+1))});var f=a.j.length-e;0<f&&a.j.splice(e,f);a.j.unshift({Xi:b,Pl:c})};var SM=function(){this.D=!0;this.j=new AM("s",TL);this.C=!1;this.o=this.A=this.F=this.L=this.K=this.P=this.B=this.J=null;this.U=0;this.H=this.G=this.N=null};var TM=function(a,b){b!==a.o&&(a.o=b,a.P(b),a.U++)};
var UM=function(a){var b=QM(a.j);null===a.N&&null!==b&&null!==a.G&&(a.N=K()-a.G);return b};var VM=function(a){var b=a.J.getBoundingClientRect(),c;c=null!=a.L?a.L.clone():new ne(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.C&&(c.x+=b.left,c.y+=b.top);return c};var WM=function(a){a.C&&(a.K=VM(a));a.j.setPosition(a.K);a.F=X.setTimeout(aM("osd_or_lidar::sfm_tpto",A(a.W,a)),125)};
var XM=function(a){if(a.D){var b=A(function(){1===RL(TL)?(this.A=null,WM(this)):(X.clearTimeout(this.F),TM(this,0))},a),c=SL();if(c){var d=bM(TL,c,b,"osd_or_lidar::sfm_pv");a.H=function(){ML(TL,c,d);this.H=null}}a.D=!1;a.o=null;b()}};var YM=function(a){a.D||(X.clearTimeout(a.F),null===a.H||a.H(),a.D=!0)};var ZM=function(a,b){uM.call(this,a,b);this.A=[];this.D=this.H=null;this.C=!0};
var $M=function(a,b,c){if(null!==a.D)return!1;a.B=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 SM,k;k=f;var l=b,m=A(a.J,a),p=e;if(null===k.G){var u="DIV"==l.tagName||"INS"==l.tagName;k.C=!u;k.J=l;e=VM(k);if(null!=p){e=p;p=new ne(0,0);if(k.C){var v=k.J.getBoundingClientRect();p.x+=v.left;p.y+=v.top}k.L=new ne(e.x-p.x,e.y-p.y)}k.P=m;m=!1;u?(m=mM(),k.B=m,of(l,m,0),m=k.j.zo(m,e)):m=k.j.yo(l,e);m?(k.G=K(),k.K=e,k=
!0):(k.j.remove(),k.B&&pf(k.B),k=!1)}else k=!1;if(!k)return aN(a),a.j="c",!1;a.A.push(f)}a.D=K();a.j="l";return!0};var bN=function(a){var b=Ib(Sb(cN));F(a.A,function(a){null!=a.o&&0<=a.o&&++b[a.o]});switch(a.G){case 4:return dN(a,b);case 3:return 1==a.A[0].o&&1==a.A[2].o?3:1==a.A[1].o?2:0<b[1]?1:0;default:return 1==b[1]?2:0}};var dN=function(a,b){var c=b[1];if(a.F){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.C&&null!==a.D&&"d"!=a.j&&(F(a.A,function(a){XM(a)}),a.j="r",a.C=!1)};var fN=function(a){a.C||(F(a.A,function(a){YM(a)}),a.C=!0)};var aN=function(a){fN(a);F(a.A,function(a){YM(a);a.j&&(a.j.remove(),a.j=null);a.B&&(pf(a.B),a.B=null)});a.A=[];a.j="d"};var gN=function(){this.C=!1;this.D=void 0;this.A=!GL(X.top);this.o=this.B=this.j=null;this.F=0};var eM=function(){hN||(hN=new gN);return hN};
var iN=function(a,b,c,d,e,f){this.o=jN.clone();this.D=this.fa=0;this.xc=this.$c=this.la=-1;this.wa=[0,0,0,0,0];this.ca=[0,0,0,0,0];this.L=[0,0,0,0,0];this.Fa=0;this.wc=[0,0,0,0,0];this.Mc=[0,0,0,0,0];this.ga=[0,0,0,0,0];this.sb=this.Ca=0;this.H={};this.ge={};this.bb=[0,0,0,0,0];this.J=d;this.$=this.U=-1;this.Mm=b;this.ka=e;this.Jj=f||w;this.bc=function(){};this.je=0;this.Ua=HL(kN,.01)||0;this.We=function(){};this.W=this.element=c;this.he=0;this.hg=-1;this.K=this.B="";this.C=null;this.G=1;this.ha=
!1;this.F=null;this.Xe=this.Na=this.qe=!1;this.Va=[];this.Aa=void 0;this.Ha=this.Da=this.gd=this.da=!1;this.A=void 0;this.bd=0;this.qa=-1;this.ac=this.La=0;this.Qa=void 0;this.ad=!1;this.Mb=1;this.P=-1;this.$b=void 0;this.Ta=this.Y=0;this.Sa=-1;this.fd=!1;this.T=this.rb=0;this.qb=!1;this.j=0;this.ke=this.ne=this.ed=!1;this.oe=0;this.Ze=this.ie=this.N=!1;this.pe=0;this.Ye=!1;this.Ve=!0;this.Kj=0;b=eM();this.gg=b.F++;lN(this,a,b.A)};
var mN=function(a,b,c,d,e){if(!(0>a.J)){var f=X.innerWidth,k=X.innerHeight,l=new pe(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));c=new pe(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new pe(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.o.top?a.o=d:(a.o.right=a.o.left+f,a.o.bottom=a.o.top+k),a.fa=f*k);a.$i(l,c,b,e,!0)}};
var nN=function(a,b,c){var d=oM(X&&X.document);if(d){c||lN(a,X,!0);if(a.ad)d=oN(a,d);else var e=Math.floor((a.o.left+a.o.right)/2),f=Math.floor((a.o.top+a.o.bottom)/2),k=cf(window.document),d=d(e-k.x,f-k.y)?.5:0;a.$i(a.o,d,b,c,!0)}};var pN=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 oN=function(a,b){function c(a,c){return Boolean(b(a,c))}var d=cf(window.document),e=a.Mb,f=Math.floor(a.o.left-d.x)+1,k=Math.floor(a.o.top-d.y)+1,l=Math.floor(a.o.right-d.x)-e,m=Math.floor(a.o.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 u=c(l,k),v=c(f,m);if(e)m=pN(k,m,function(a){return c(f,a)}),l=pN(f,l,function(a){return c(a,k)});else if(u)m=pN(k,m,function(a){return c(l,a)}),f=pN(l,f,function(a){return c(a,k)});else if(v)k=pN(m,k,function(a){return c(f,
a)}),l=pN(f,l,function(a){return c(a,m)});else if(p)k=pN(m,k,function(a){return c(l,a)}),f=pN(l,f,function(a){return c(a,m)});else{var z=Math.floor((f+l)/2),y=Math.floor((k+m)/2);if(!c(z,y))return 0;k=pN(y,k,function(a){return c(z,a)});m=pN(y,m,function(a){return c(z,a)});f=pN(z,f,function(a){return c(a,y)});l=pN(z,l,function(a){return c(a,y)})}return(m-k)*(l-f)/d};
var qN=function(a,b,c){if(a.ie)return a.D=0,rN(a.D);if(a.N&&a.Uc())return a.D=1,rN(a.D);var d=null;if(fa(b))a.D=b;else{c=new pe(Math.max(b.top,c.top),Math.min(b.right,c.right),Math.min(b.bottom,c.bottom),Math.max(b.left,c.left));if(0>=a.fa||c.top>=c.bottom||c.left>=c.right)return a.D=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof ne?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,fa(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.D=d/a.fa}return rN(a.D)};
var rN=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 sN=function(a,b,c,d,e,f,k,l,m){var p=-1==d||-1==b?-1:Math.max(d,b);d=e&&-1!=d&&2>=d?p:d;m=m||0;-1!=d&&(a.wa[d]+=c,a.wc[d]+=m,2>=d&&(a.Fa+=c,a.Ca+=m));(k=k||null)?(-1!=d&&2>=d&&-1!=a.$&&(a.bb[a.$]+=c),k=100*a.fa/((k.bottom-k.top)*(k.right-k.left)),a.$=20<=k?0:10<=k?1:5<=k?2:2.5<=k?3:4):a.$=-1;if(a.Uc()){k=-1!=d&&2>=d;e=n(l)&&.1<=l&&.1<=a.Qa;a.Ta+=c;e?(a.rb+=c,0==d&&(a.T+=c),k||(a.La+=c)):a.qb=!1;a.La>a.ac&&(a.ac=a.La);if(k||!n(l)||.1>l)a.La=0;n(l)&&(Number(l)?(k=Math.pow(10,3),l=Math.round(l*k)/
k):l=0);a.Qa=l}for(l=d;0<=l&&4>=l;l++)a.L[l]+=c,a.ga[l]+=m,a.L[l]>a.ca[l]&&(a.ca[l]=a.L[l]),a.ga[l]>=a.Mc[l]&&(a.Mc[l]=a.ga[l]);for(l=0;l<a.L.length;++l)if(l<b||f||-1==b)a.L[l]=0,a.ga[l]=0};var tN=function(a,b,c){a.G=c;if(!Boolean(Boolean(a.W&&!rM())&&!rM()))return a.ha=!0,!1;c=new xM(!1,void 0,void 0,a.G);var d=zM(c,a.W,String(a.gg));d?(a.We=b,a.C=c):a.ha=!0;return d};
var uN=function(a,b){if(!a.element||!rM())return!1;a.G=b||1;var c=new ZM(!1,a.G),d=$M(c,a.element,A(function(a){vN(this,gM(),!1,[0,.01,.5,1,.01,.3][a])},a));d?(a.F=c,eN(c)):a.qe=!0;return d};var vN=function(a,b,c,d){if(!(0>a.J)&&wN(a)){c?a.F&&fN(a.F):(lN(a,X,!0),a.F&&eN(a.F));var e=d||0;fa(d)||-1==a.U||(e=[1,.75,.5,.3,.01][a.U]||0);a.$i(a.o,e,b,c,!1);xN(a)&&!a.Uc()&&a.F&&aN(a.F)}};var wN=function(a){return null!==a.F&&"d"!=a.F.getStatus()};
var lN=function(a,b,c){a.Kj++;b=c?b:b.top;try{var d=jN.clone(),e=new ne(0,0);if(a.W){if(c||1!=a.ka||!nM(a.W))d=a.W.getBoundingClientRect();e=$f(a.W,b)}var f=e.x,k=e.y;a.o=new pe(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(l){a.o=jN.clone()}a.fa=(a.o.bottom-a.o.top)*(a.o.right-a.o.left)};var xN=function(a){return a.Uc?yN(a):!1};var yN=function(a){return 2E3<=Math.max(a.L[2],a.ca[2])};
var zN=function(a,b){var c=a.bd;hM||a.Aa||-1==a.qa||(c+=b-a.qa);return c};var AN=function(a){if("as"==a.A){var b="sdkVolume"+a.K;if(ha(a.element[b]))try{return Number(a.element[b]())}catch(c){return-1}}if("h"==a.A&&(b=t("ima.common.sdkVolume"),ha(b)))try{return Number(b(a.B))}catch(c){return-1}};var BN=function(a){a.Uc()&&(a.ad=!0,a.Mb=2)};var CN=function(a,b){tb(a.Va,Ib(b-a.Va.length+1));a.Va[b]=(100*a.D|0)/100};
var DN=function(a,b){var c=a.ge[b];if(null!=c)return c;if(a.Na)return{"if":0};var d=a.o.clone();d.round();var e=P(a.Va,function(a){return 100*a|0}),c=eM(),d={"if":c.A?1:void 0,sdk:a.A?a.A:void 0,p:[d.top,d.left,d.bottom,d.right],tos:a.wa,mtos:a.ca,ps:void 0,pt:e,vht:zN(a,gM()),mut:a.ac,a:a.Qa,ns:a.pe,at:a.rb,as:a.qb?1:0,afvt:a.T,vpt:a.Ta};if("h"==a.A||"as"==a.A)d.gmm=1;"fully_viewable_audible_half_duration_impression"==b&&(d.std="csm");0<a.Ua&&(d.veri=a.Ua);a.ad&&(d.efpf=a.Mb);a.C&&(d.swf=a.C.getStatus(),
d.px=a.G);a.F&&(d.sfm=a.F.getStatus(),d.px=a.G);0<a.oe&&(d.nnut=a.oe);a.Uc()&&(d.vme=a.ed?1:0,d.nmtd=a.ne?1:0,d.mmct=a.ke?1:0,d.vpaid=a.$b,d.dur=a.P,d.vmtime=a.Y,d.vmtos=a.wc,d.vmmtos=a.Mc);EN(a,b)&&yN(a)&&a.Uc()&&(d.dtos=a.Fa,d.vmdtos=a.Ca,a.sb++,d.dtoss=a.sb,a.Fa=0,a.Ca=0);!yN(a)&&2E3<=a.Ca&&(d.vmdtos=a.Ca);c.o&&(d.ps=[c.o.width,c.o.height]);a.ha&&(d.fmf="1",d.px=a.G);a.da&&(d.ven="1");a.gd&&(d.veh="1");a.j&&(d.vds=a.j);FN()?d.c=(100*a.D|0)/100:d.tth=gM()-GN;return d};
var HN=function(a){a.C&&CM(a.C);a.F&&aN(a.F)};var EN=function(a,b){if(E(IN,b))return!0;var c=a.H[b];return n(c)&&(a.H[b]=!0,!c)?!0:!1};var JN=function(){for(var a=X,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,GL(a)&&(b=a);return b};
var KN=function(){if(!LN){LN=!0;var a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame;if(!NN){var b;if(a){var c=YL("osd_or_lidar::throttled_scroll_raf_callback",ON);b=function(){a(function(){X.setTimeout(c,0)})}}else b=ON;PN=new xm(YL("osd_or_lidar::throttled_scroll_timeout",b),100);b=A(PN.lf,PN);NN=bM(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!QN){if(a){var d=YL("osd_or_lidar::throttled_resize_raf_callback",
RN);b=function(){a(function(){X.setTimeout(d,0)})}}else b=RN;SN=new xm(YL("osd_or_lidar::throttled_resize_timeout",b),100);b=A(SN.lf,SN);QN=bM(X,"resize",b,"osd_or_lidar::throttled_resize")}TN();UN()}};var RN=function(){VN(!1);ON()};var ON=function(){WN(XN(),!1)};
var YN=function(){var a,b=eM();ZN&&(b.j=cM(X,ZN));var b=b.j,c=$N,d=aO;if(bO){a=c;VN(!1);var e=eM(),f=e.B,b=f.height-a;0>=b&&(b=f.height,a=0);e.j=new qe(f.width,b);b=new cO;b.D=!0;b.A=e.j;b.o=f;b.B=a;return b}if(d)return a=new cO,a.C=!0,a;if(dO)return a=new cO,a.F=!0,a;if(eO)return a=new cO,a.G=!0,a;a:{c=new cO;c.A=b;c.j=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var d=ZN,k=X||X,k=k.top,e=b||cM(k,d),f=If(Te(k.document));a=-1==e.width||-12245933==e.width?
new pe(e.width,e.width,e.width,e.width):new pe(f.y,f.x+e.width,f.y+e.height,f.x)}catch(l){a=c;break a}c.H=a;c.j=!0}a=c}return a};
var WN=function(a,b){var c;if(!fO)if(window.clearTimeout(gO),gO=null,0==a.length)b||hO();else{var d=YN();try{var e=gM();if(d.D)for(c=0;c<a.length;c++)mN(a[c],e,d.o,d.B,b);else if(d.C)for(c=0;c<a.length;c++)nN(a[c],e,b);else if(d.F)F(a,function(a){if(b){if(a.C){var c=a.C;3<=c.A&&(c.A=3);a.U=-1}}else if(a.C&&"d"!=a.C.getStatus()){var c=DM(a.C),d=[-1,-1,-1,-1,-1,4,2,0,4,3],e=d[c.snapshot+1];sN(a,e,c.j,d[c.o+1],!0,!1);a.U=e;a.bc(a,jN);!xN(a)||a.Uc()||a.Ve||a.C&&CM(a.C);(c=2==c.snapshot||LM(a.C))||(c=
a.C,c="f"==c.j&&c.C>=c.J);c&&(a.We(a),a.Ve=!1,a.C&&CM(a.C))}});else if(d.G)for(c=0;c<a.length;c++)vN(a[c],e,b);else if(d.j){var f=eM();for(c=0;c<a.length;c++)a[c].update(e,d.H,b,X,f.A)}++iO}finally{b?F(a,function(a){a.D=0}):hO()}}};var TN=function(){var a=UN,b=SL();b&&(jO=jO||bM(TL,b,a,"osd_or_lidar::visibility"))};var UN=function(){var a=FN();if(a){if(!hM){var b=gM();iM=b;F(kO,function(a){a.bd=zN(a,b)})}hM=!0;VN(!0)}else b=gM(),hM=!1,GN=b,F(kO,function(a){0<=a.J&&(a.qa=b)});WN(XN(),!a)};
var FN=function(){if(lO())return!0;var a=RL(X.document);return 1==a||0==a};var hO=function(){X&&(gO=X.setTimeout(aM("osd_or_lidar::psamp_to",function(){WN(XN(),!1)}),dM()))};var XN=function(){return 0==kO.length?mO:0==mO.length?kO:rb(mO,kO)};var nO=function(){var a=X.document;return a.body&&a.body.getBoundingClientRect?!0:!1};
var VN=function(a){var b=eM();b.j=cM(X,ZN);if(!a){b.B=X&&X.outerWidth?new qe(X.outerWidth,X.outerHeight):new qe(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=eM().j;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,u=m.scrollWidth,v=m.offsetHeight,z=m.offsetWidth;m.clientHeight!=v&&(p=l.scrollHeight,
u=l.scrollWidth,v=l.offsetHeight,z=l.offsetWidth);p>f.height?p>v?(d=p,e=u):(d=v,e=z):p<v?(d=p,e=u):(d=v,e=z)}c=new qe(e,d)}catch(y){c=new qe(-12245933,-12245933)}b.o=c}};var oO=function(){var a=pO;if(1<=Math.random())return!1;var b=!1;F(kO,function(a){a=uN(a,3);b=b||a});(eO=b)&&F(kO,function(b){wN(b)||a(b)});return b};var qO=function(){var a=pO,b=!1;F(kO,function(c){c=tN(c,a,n(1)&&1>Math.random()?3:1);b=b||c});(dO=b)&&F(kO,function(b){Boolean(b.C)||a(b)});return b};
var rO=function(a){F(a,function(a){null==eb(kO,function(c){return c.element==a.element&&c.K==a.K})&&kO.push(a)})};var lO=function(){return Gh(kO,function(a){return a.N})};var cO=function(){this.o=this.A=null;this.B=0;this.H=null;this.j=this.G=this.F=this.C=this.D=!1};var sO=function(a,b){this.j=a;this.o=b};var tO=function(a){this.url=a;this.Do=!1;this.depth=fa(void 0)?void 0:null};
var uO=function(a){a=a?a:vO();for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Do){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new sO(c,d)};
var vO=function(){var a=r,b=[],c=null,d=null;do{var e=a;GL(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new tO(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.Do=!0);return b};
var wO=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(wO(a[e],b,c+1));return d.join(b[c])};
var xO=function(){var a=vO(),b=a.length-1,c=uO(a),a=c.j,d=c.o,c=[];d?(a&&c.push(yO(b,[d.url,2],0,[a.url,0],a.depth)),c.push(yO(b,[d.url,2],0))):a&&a.url&&(c.push(yO(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=zO.exec(a.url))&&d[0]||"")&&c.push(yO(b,[d,1],a.depth)));c.push(yO(b));return c};var yO=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 AO=function(){var a=xO();return P(a,function(a){return wO(a)})};
var BO=function(){var a=CO||X;if(!a)return"";var b=a.document,c=[];c.push("url="+PL(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+PL(b.referrer.substring(0,512)));return c.join("&")};var DO=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 EO=function(a){return!!(1<<a&FO)};
var GO=function(){var a="a=1&b="+FO+"&",b=[],c=99;F(HO,function(a,c){var f=!1;try{f=a(X)}catch(k){}b[c/32>>>0]|=f<<c%32});F(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});c=105;F(IO,function(b,e){var f="false";try{f=b(X)}catch(k){}a+=String.fromCharCode(c+e)+"="+f+"&"});return a};var JO=function(){if(!KO){KO=!0;try{fM=gM(),1>Math.random()&&(LO=!0),CO=JN(),VN(!1),nO()?(window.setTimeout(function(){},1),eM().A?MO():KN()):NO=!0}catch(a){throw kO=[],mO=[],a;}}};
var MO=function(){var a;if(tc&&fa(X.screenX)&&fa(X.mozInnerScreenX)&&fa(X.outerWidth)){var b=X.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&&($N=a,bO=!0);a=!0}else a=!1;if(a)KN();else if(a=X&&X.document,a=vc&&yc(8)&&ha(oM(a))?aO=!0:!1,a)OO=1>Math.random(),KN();else{if(rM()){if(oO()){KN();PO=!0;return}}else if(qO()){KN();QO=!0;return}window.clearTimeout(gO);gO=null;RO="i";fO=!0}};
var pO=function(a){if(a){if(!a.Xe){var b=[];b.push("v=369v");b.push("r=fp");b.push("efm="+(QO?1:0));b.push("esfm="+(PO?1:0));b.push(Rg(DN(a,"start")));b.push(BO());b="&"+b.join("&");OL(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.Xe=!0}a.Na=!0}};var SO=function(a){a.pe++;CN(a,0);.1<=a.Qa&&(a.qb=!0);return DN(a,"start")};var TO=function(a){CN(a,1);WN([a],!FN());return DN(a,"firstquartile")};
var UO=function(a){CN(a,2);a.fd=!0;WN([a],!FN());return DN(a,"midpoint")};var VO=function(a){CN(a,3);WN([a],!FN());return DN(a,"thirdquartile")};var WO=function(a){CN(a,4);WN([a],!FN());var b=DN(a,"complete");a.N=!1;XO(a.B);return b};var YO=function(a){return ZO(a,"pause")};var $O=function(a){return ZO(a,"abandon")};var aP=function(a){var b=FN();a.Aa&&!b&&(a.qa=gM());WN([a],!b);a.Aa=!1;return DN(a,"resume")};var bP=function(a){var b=DN(a,"viewable_impression");b.hvvi="1";a.gd=!0;return b};
var cP=function(a){var b=!FN();WN([a],b);b=DN(a,"skip");a.N=!1;XO(a.B);return b};var dP=function(a){WN([a],!FN());return DN(a,"mute")};var eP=function(a){WN([a],!FN());return DN(a,"unmute")};var fP=function(a){a.N=!0;WN([a],!FN());return DN(a,"fullscreen")};var gP=function(a){a.N=!1;WN([a],!FN());return DN(a,"exitfullscreen")};var hP=function(a){return DN(a,"fully_viewable_audible_half_duration_impression")};var iP=function(a){return DN(a,"measurable_impression")};var jP=function(a){return DN(a,"engagedview")};
var kP=function(a){return DN(a,"impression")};var lP=function(a){return DN(a,"creativeview")};var ZO=function(a,b){a.bd=zN(a,gM());var c=!FN();WN([a],c);a.Aa=!0;return DN(a,b)};
var mP=function(a,b){if(!a.Ze){a.Ze=!0;"i"!=RO&&(fO=!1);if(QO&&!Boolean(a.C)&&!a.ha){var c=1>Math.random()?3:1;tN(a,pO,c)}PO&&!wN(a)&&(c=HL([3,1],1),uN(a,c));a.H={};a.H.firstquartile=!1;a.H.midpoint=!1;a.H.thirdquartile=!1;a.H.complete=!1;a.H.pause=!1;a.H.skip=!1;a.H.viewable_impression=!1;a.sb=0;c=n(b)?b.opt_nativeTime:void 0;jM=c=fa(c)?c:gM();a.wa=[0,0,0,0,0];a.ca=[0,0,0,0,0];a.L=[0,0,0,0,0];a.bb=[0,0,0,0,0];a.J=-1;a.la=-1;a.xc=-1;a.he=0;a.hg=-1;a.U=-1;a.$=-1;a.D=0;a.J=c;var d=!1;FN()||(d=!0,a.qa=
c);WN([a],d)}};var XO=function(a){if(x(a)){var b=fb(kO,function(b){return b.B==a});0<=b&&(HN(kO[b]),pb(kO,b))}};var nP=function(a,b){if(b.opt_adElement)return oP(a,b.opt_adElement);var c=pP(a,b.opt_sdkID||"");return c?c:c=eb(kO,function(b){return b.B==a})};var oP=function(a,b){var c=eb(kO,function(a){return a.element==b});null!==c&&c.B!=a&&(XO(c.B),c=null);c||(c=qP(b),c.B=a,c.A="h");return c};
var pP=function(a,b){var c=eb(kO,function(c){return c.element?rP(c.element,b)==a&&c.K==b:!1});null!==c&&c.B!=a&&(XO(c.B),c=null);if(c)return c;c=sP(b);c=eb(c,function(c){return rP(c,b)==a});if(!c)return null;c=qP(c);c.A="as";c.B=a;c.K=b;return c};
var sP=function(a){var b=X.document,c=Jb(P(["embed","object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a;return c=Zd(c,function(a){if(!a||!ia(a)||1!=a.nodeType||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})};var rP=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ha(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID};
var qP=function(a){a=new iN(X,"",a,-1,7);a.bc=tP;eM().D=79463069;rO([a]);KN();return a};
var tP=function(a){-1==a.Sa&&a.fd&&(a.Sa=a.Ta);a.je++;if(yN(a)&&(a.da?"h"==a.A&&0<a.Ua&&!a.gd&&0==a.je%a.Ua:1)){var b="as"==a.A,c="h"==a.A,d="n"==a.A,e="a"==a.A,f=t("ima.common.triggerViewEvent"),k=t("ima.bridge.triggerViewEvent");try{var l=uP("viewable_impression",a);if(c)ha(f)?(f(a.B,l),a.da=!0):a.j|=8;else if(e)ha(f)?(f(a.B,l),a.da=!0):a.j|=131072;else if(d)ha(k)?(k(a.B,l),a.da=!0):a.j|=32;else if(b){var m="triggerViewEvent"+a.K;a.element&&a.element[m]?(a.element[m](l),a.da=!0):a.j|=1}else a.j|=
16}catch(y){a.j|=2}}else a.j|=4;if((15E3<=a.T||a.fd&&(-1!=a.P?a.T>=a.P/2:-1!=a.Sa&&a.T>=a.Sa))&&!a.Ha){b="as"==a.A;c="h"==a.A;d="a"==a.A;try{if(c){var p=t("ima.common.triggerExternalActivityEvent");if(ha(p)){var u=uP("fully_viewable_audible_half_duration_impression",a);p(a.B,u,"fully_viewable_audible_half_duration_impression");a.Ha=!0}else a.j|=8192}else if(d){var v=t("ima.common.triggerExternalActivityEvent");ha(v)?(u=uP("fully_viewable_audible_half_duration_impression",a),v(a.B,u,"fully_viewable_audible_half_duration_impression"),
a.Ha=!0):a.j|=65536}else if(b){var z;z="triggerExternalActivityEvent"+a.K;a.element&&a.element[z]?(a.element[z]("fully_viewable_audible_half_duration_impression"),a.Ha=!0):a.j|=64}else a.j|=16384}catch(y){a.j|=128}}};
var vP=function(a){if(a.Da||a.Na)a.j|=1024;else{var b="as"==a.A,c="h"==a.A,d="n"==a.A,e="a"==a.A,f=t("ima.common.triggerMeasurableEvent"),k=t("ima.bridge.triggerMeasurableEvent");try{var l=uP("measurable_impression",a);if(c)ha(f)?(f(a.B,l),a.Da=!0):a.j|=2048;else if(e)ha(f)?(f(a.B,l),a.Da=!0):a.j|=262144;else if(d)ha(k)?(k(a.B,l),a.Da=!0):a.j|=32768;else if(b){var m="triggerMeasurableEvent"+a.K;a.element&&a.element[m]?(a.element[m](),a.Da=!0):a.j|=256}else a.j|=4096}catch(p){a.j|=512}}};
var uP=function(a,b){var c=Zb(wP,function(b){return b==a}),c={e:xP[c],jJ:"369v",cJ:1},d=DN(b,a);gc(c,d);b.ge[a]=d;return lM(c)};var yP=function(){var a={};a.moatInit=GO();return a};var zP=function(a,b,c){var d={};d.viewability=AP(a,b,c);d.moatViewability="gmm=1";return d};
var AP=function(a,b,c){var d={};gc(d,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});var e=a.toLowerCase();if(a=Zb(wP,function(a){return a==e})){a={v:"369v",e:xP[a]};if(d.opt_bounds)return a.msg="ol",lM(a);if(NO)return a.msg="ue",lM(a);b=nP(b,d);a.nas=kO.length;if(!b)return a.msg="nf",lM(a);JO();"i"==RO&&(b.Na=!0);OO&&BN(b);c=d.opt_fullscreen;n(c)&&(b.N=Boolean(c));E(BP,e)&&(mP(b,d),LO&&vP(b));c={};c.start=SO;c.firstquartile=TO;c.midpoint=UO;c.thirdquartile=VO;c.complete=WO;c.pause=YO;c.resume=
aP;c.skip=cP;c.viewable_impression=bP;c.mute=dP;c.unmute=eP;c.fullscreen=fP;c.exitfullscreen=gP;c.fully_viewable_audible_half_duration_impression=hP;c.measurable_impression=iP;c.abandon=$O;c.engagedview=jP;c.impression=kP;c.creativeview=lP;if(c=c[e]){d=c(b,d);if(!n(d)||x(d))return d;gc(a,d);return lM(a)}}};var CP=function(a,b){var c=eM();if(c.C!=a){c.C=a;var d=Gh(kO,function(a){return a.Ye});F(kO,function(c){a||d||(c.J=b);c.ie=a;c.Ye=!1})}};
var DP=function(){J.call(this);this.j=null;this.C=new zm(this);H(this,this.C);this.D=null;this.J=new vg;this.H=new vg;this.A=this.B=null;this.o=!1;this.F=(ha(null),null)};var EP=function(){null!=FP||(FP=new DP);return FP};var GP=function(a){var b=EP();a=b.J.get(a)||b.D;return null!=a?a():{}};
var HP=function(a){if(null==a)return!1;if(WK()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=IP(a);return 0>=b-a.width&&42>=c-a.height};var IP=function(a){return ha(a.getBoundingClientRect)&&xf(Ve(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};var JP=function(a,b){a.B=b};
var KP=function(a,b,c,d,e){if(a.o){if(a.F)return a.F(b,c,e);e=e||{};if(d=d?a.H.get(d):jK.A)null!=e.opt_fullscreen||(e.opt_fullscreen=HP(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.B&&(e.opt_bounds=IP(a.B));return WL(ZL,"lidar::handlevast_html5",pa(zP,b,c,e),LP)||{}}return{}};var MP=function(){var a=EP();if(!a.o)return null;if(null!=a.A)return a.A;a.A=WL(ZL,"lidar::getinitsignals_html5",yP,LP)||null;return a.A};
var NP=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.j.send("activityMonitor","pageSignals",b)}};var OP=function(a,b,c){if(!jK.B)return"";var d=b?a.H.get(b):jK.A;a={};null!=c&&(a.fullscreen=c);return FL(function(){return d},a)};
var PP=function(a,b,c){if(kb(a))return null;a=Zd(a,function(a){var b=a.B;return"application/x-mpegurl"==D(a.j).toLowerCase()||"progressive"==b});kb(c)||(c=P(c,function(a){return a.toLowerCase()}),a=Zd(a,function(a){return E(c,D(a.j).toLowerCase())}));if(!fa(b)||0>=b)b=TK()?500:1E3;return QP(a,b)};var QP=function(a,b){return RP(a,b)||SP(a,b)||TP(a,b)};var RP=function(a,b){var c=null;F(a,function(a){var e=a.Rd,f=a.Qd;e>b||f<b||!(null==c||c.Rd>e)||(c=a)});return c};
var SP=function(a,b){var c=null;F(a,function(a){var e=a.Rd,f=a.Qd;f>b||(null==c||c.Qd<f?c=a:null!=c&&c.Qd==f&&c.Rd>e&&(c=a))});return c};var TP=function(a,b){var c=null;F(a,function(a){var e=a.Rd,f=a.Qd;if(!(e<b))if(null!=c&&c.Rd==e&&c.Qd<f)c=a;else if(null==c||c.Rd>e)c=a});return c};var UP=function(){J.call(this);this.D=this.H=this.L=this.F=!1;this.o=0;this.B=[];this.G=!1;this.N=this.P=window.Infinity;this.A=0;this.K=!1;this.C=new zm(this);this.J={}};
var VP=function(a,b){null==b||a.F||(a.j=b,WP(a),a.F=!0)};var XP=function(a){null!=a.j&&a.F&&(YP(a),a.F=!1,a.H=!1,a.D=!1,a.o=0,a.B=[],a.G=!1)};var WP=function(a){YP(a);!(a.j instanceof J)&&"ontouchstart"in window.document.documentElement&&ZK()?(a.J={touchstart:A(a.HA,a),touchmove:A(a.GA,a),touchend:A(a.FA,a)},Ob(a.J,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.C.R(a.j,"click",a.fo)};
var YP=function(a){a.C.ya(a.j,"click",a.fo);Ob(a.J,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.J={}};var ZP=function(a,b){a.B=[];F(b,function(a){nb(this.B,a.identifier)},a)};var $P=function(a,b){return Gh(b,function(a){return E(this.B,a.identifier)},a)};var aQ=function(a){null!=a?AK(bQ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=zK(a)?cQ(a):null:a=null;return a};
var dQ=function(a,b,c){if(null==a)return null;c=new O((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");dh(c,d);return c.toString()};
var cQ=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=kh(new O(a));return vh(a,"v")?a.get("v").toString():vh(a,"video_id")?a.get("video_id").toString():null};
var eQ=function(a){return C(D(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};var fQ=function(){J.call(this)};var gQ=function(a){J.call(this);this.j=a;this.U=new vm(4);this.A=0;this.N=this.B=this.K=this.G=!1;this.L=this.Sc();this.J=this.Od();this.T=15E3;this.P=!1};var hQ=function(a){a.K=!1;a.B=!1;a.G=!1;a.A=0;a.N=!1;a.U.clear();iQ(a);Mb(a.C)};var jQ=function(a){a.B||(a.B=!0,iQ(a),a.Z("start"),gL()||!dL||dL&&$K(hL,3)||WK()&&(!ZK()||!$K(kQ,4))||a.Jk())};
var lQ=function(a){for(var b=a.j.buffered.length-1;0<=b;){if(a.j.buffered.start(b)<=a.j.currentTime)return a.j.buffered.end(b);b--}return 0};var iQ=function(a){a.H&&(Sd(a.H),a.H=null)};var mQ=function(){J.call(this);this.o=new nQ;this.j=new zm(this);var a=eK();if(a){a:{if(Yb(a.j,"videoElementMockDuration")&&(a=a.j.videoElementMockDuration,fa(a)))break a;a=window.NaN}this.duration=a}};
var oQ=function(){var a=["video/mp4"],b=["video/ogg"],c=new mQ;c.canPlayType=function(c){return E(a,c)?"probably":E(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};var pQ=function(a){this.startTime=0;this.endTime=a};var nQ=function(){this.length=0;this.j=[]};var qQ=function(){};var rQ=function(){throw Error("Do not instantiate directly");};var sQ=function(){rQ.call(this)};
var tQ=function(a,b){var c;a:{var d=a(b||uQ,void 0,void 0);c=Te().createElement("DIV");d=vQ(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};var vQ=function(a){if(!ia(a))return String(a);if(a instanceof rQ){if(a.Sb===wQ)return a.getContent();if(a.Sb===xQ)return ya(a.getContent())}return"zSoyz"};var yQ=function(a){if(null!=a)switch(a.jd){case 1:return 1;case -1:return-1;case 0:return 0}return null};var zQ=function(){rQ.call(this)};
var Y=function(a){return null!=a&&a.Sb===wQ?a:a instanceof Oe?AQ(Qe(a),a.gf()):AQ(ya(String(String(a))),yQ(a))};var BQ=function(){rQ.call(this)};var CQ=function(){rQ.call(this)};var DQ=function(){rQ.call(this)};var EQ=function(){rQ.call(this)};var FQ=function(){rQ.call(this)};var GQ=function(a,b){this.content=String(a);this.jd=null!=b?b:null};var HQ=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}};
var IQ=function(a,b,c){var d="key_"+a+":"+b,e=JQ[d];if(void 0===e||0>e)JQ[d]=0,KQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};var LQ=function(a,b){var c=KQ["key_"+a+":"+b];c||""==b||(c=KQ["key_"+a+":"]);return c?c:MQ;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};var MQ=function(){return""};var NQ=function(a){return Y(a)};
var OQ=function(a){return null!=a&&a.Sb===wQ?(a=a.getContent(),a=String(a).replace(PQ,"").replace(QQ,"&lt;"),String(a).replace(RQ,SQ)):ya(String(a))};var TQ=function(a){return"%"+a.charCodeAt(0).toString(16)};var UQ=function(a){a=wa(String(a));VQ.lastIndex=0;return VQ.test(a)?a.replace(VQ,TQ):a};
var WQ=function(a){XQ[1]||(XQ[1]=new qQ);var b=yQ(a);if(null==b){var c=b=0,d=!1;a=xe(a+"",null!=a&&a.Sb===wQ).split(YQ);for(var e=0;e<a.length;e++){var f=a[e];ZQ.test(xe(f,void 0))?(b++,c++):$Q.test(f)?d=!0:aR.test(xe(f,void 0))?c++:bR.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return cR(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")};var SQ=function(a){return dR[a]};var eR=function(a){return fR[a]};var gR=function(a,b,c){return""+LQ("a",a.Wh)(a,null,c)};
var hR=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+NQ(WQ(a.Nc))+">"+Y(a.Nc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var iR=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+NQ(WQ(a.Nc))+">"+Y(a.Nc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.Cf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};var jR=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'};
var kR=function(){var a="",b=ra("Share");return a+b};var lR=function(a){return""+LQ("b",a.Wh)(a,null,void 0)};var mR=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="2" class="videoAdUiExtendButton videoAdUiAction" style="display: none">'+Y(a.Av)+'</button><br/><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+Y(a.skipText)+'<div class="videoAdUiSkipIcon"></div><div class="videoAdUiAutoSkipText"></div></button></div>'};
var nR=function(){var a="",b=ra("Continue Ad");return a+b};var oR=function(a){var b="";a=2<=a.Zi&&1<=a.Dh?ra("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Y(a.Dh),totalAds:Y(a.Zi),timeLeft:Y(a.Wi)}):ra("Ad {$timeLeft}",{timeLeft:Y(a.Wi)});return b+=a};
var pR=function(){var a=qR(),b=AQ("</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:Y(a),endFormat:Y(b)});return AQ(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};var qR=function(){return AQ('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
var rR=function(a){return AQ("<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'>"+Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")};
var sR=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.Cq,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.$h)+"</div><a class='videoAdUiWhyThisAdUnsubscribe videoAdUiHideIfEmpty'>"+Y(a.unsubscribe)+"</a><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+
"</a>";a=""+rR({heading:tR(""+Y(a.heading)),message:tR(b),buttons:tR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+Y(a.close)+"</button>")});return AQ(a)};var uR=function(a){return AQ(rR({heading:tR("<div class='videoAdUiPopupBack'></div>"+Y(a.heading)),message:tR(""+Y(a.message)),buttons:tR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
var vR=function(a){for(var b=""+Y(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+OQ(e)+"'><input type='radio' id='videoAdUiMuteOption"+OQ(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+OQ(e)+"' />"+Y(f)+"</label>");a=""+rR({heading:tR(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:tR(b),buttons:tR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return AQ(a)};var wR=function(a){var b=String(""+a.heading);return AQ(rR({heading:b?new GQ(b,void 0):"",message:tR(""+Y(a.message)),buttons:tR("<button class='videoAdUiUnsubscribeCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiUnsubscribeConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
var xR=function(a,b,c){if(null==a||!xf(Ve(a),a))throw QK(yR,null,"containerElement","element");this.C=a;this.o=this.j=null;this.B=b;this.D=c||!1;this.A=null;this.j=N("div",{style:"display:none;"});a=eK();fK(a,"useVideoElementMock")?(a=oQ(),b=N("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.jg=N("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Vi=N("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.jg.appendChild(a.Vi),b.appendChild(a.jg),a.j.R(a,["loadeddata","playing","pause","ended"],a.VA),a=b):(a="",b=ra("Advertisement"),a=N("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.o=a;this.C.appendChild(this.j);this.j.appendChild(this.o);this.B&&(a=N("div",{id:this.B,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(a));this.D&&(this.A=N("div",{style:"position:absolute;width:100%;height:100%;"}),
this.j.appendChild(this.A))};
var zR=function(a){J.call(this);this.P="ima-chromeless-video";var b=null;null!=a&&(x(a)?this.P=a:b=a);this.N=new zm(this);this.D=null;this.B=!1;this.fa=this.Sc();this.da=this.Od();this.J=-1;this.Y=!1;this.F=-1;this.A=this.W=this.K=null;this.T="";this.j=!1;this.ca=null!=b;this.ga=this.la=this.L=this.$=this.o=null;this.C=void 0;this.G=this.ka=null;this.H=this.qa=0;this.ca?(this.j=!0,this.o=b,this.C=2):(a=A(this.mv,this),AR?a():(BR.push(a),a=kf("script"),a.src="https://www.youtube.com/iframe_api",b=
window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
var CR=function(a,b,c){var d={};if(null!=a.A){var e=a.A.D;null!=e&&(d.agcid=e);e=a.A.B;null!=e&&(d.adformat=e);e=a.A.C;null!=e&&(d.ad_query_id=e);(e=a.A.F)&&(d.cta_conversion_urls=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.J?1:3;a.A.G&&(d.noiba=1);a.A.K&&(d.utpsa=1);a.A.A&&gc(d,a.A.A)}e=aQ(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;a.B=!1;a.A&&a.A.o?(a.ka=d,a.o.preloadVideoByPlayerVars(a.ka)):
a.o.cueVideoByPlayerVars(d);a.Z("loaded")};var DR=function(a){a.N.ya(a.D,"tick",a.ep);null!=a.D&&(a.D.stop(),a.D=null)};var ER=function(a){null!=a.wa&&Sd(a.wa)};var FR=function(a){J.call(this);this.j=a||Wa();this.A=[]};var GR=function(a,b,c,d,e){jc.call(this,a);this.nc=b;this.ud=c;this.eo=d;this.B=e};var HR=function(a,b){FR.call(this,b);this.B=a;this.Hc=null;this.C=new zm(this);this.logger=null;this.C.R(ef(),"message",this.receive)};
var IR=function(a){if(null==a||!x(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return ae(a)}catch(b){return null}};var JR=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.B;return"ima://"+de(e)};var KR=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.B)return!1;c=b.sid;return null==c||"*"!=a.j&&c!=a.j?!1:!0};var LR=function(a,b){J.call(this);this.B=a;this.A=b;this.j={};this.o=new zm(this);this.o.R(ef(),"message",this.C)};
var MR=function(a,b,c,d){a.j.hasOwnProperty(b)||(c=new HR(b,c),a.o.R(c,a.B,function(a){a=new NR(a.type,a.nc,a.ud,a.eo,a.getOrigin(),b);this.Z(a)}),c.Hc=d,c.connect(),a.j[b]=c)};var NR=function(a,b,c,d,e,f){GR.call(this,a,b,c,d,e);this.A=f};var OR=function(){var a=t("google.ima.gptProxyInstance",ef());if(null!=a)return a;zm.call(this);this.A=new LR("gpt",!0);H(this,this.A);this.R(this.A,"gpt",this.D);this.j=null;PR()||ef().top===ef()||(this.j=new LR("gpt",!1),H(this,this.j),this.R(this.j,"gpt",this.C))};
var PR=function(){return!!t("googletag.cmd",ef())};var QR=function(){var a=t("googletag.console",ef());return null!=a?a:null};var RR=function(a,b,c,d,e,f,k,l,m,p,u,v){this.B=a;this.C=p;this.D=b;this.F=d;this.G=l;this.H=v;this.J=e;this.K=f;this.j=k;this.o=m;this.A=u};
var SR=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,u,v){if("%"==p)return"%";var z=c.shift();if("undefined"==typeof z)throw Error("[goog.string.format] Not enough arguments");arguments[0]=z;return TR[p].apply(null,arguments)})};
var UR=function(a,b){J.call(this);this.B=new zm(this);this.G=!1;this.H=Wa();this.D=new vg;var c=this.H,d=("https:"==window.document.location.protocol?"https:":"http:")+SR("//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=N("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});
Dm(this.B,c,"load",this.Kv);a.appendChild(c);this.o=c;c=this.D.get("*");null==c&&(c=new HR(this.H,"*"),this.G&&(c.Hc=yf(this.o),c.connect()),this.D.set("*",c));this.C=c;this.F=b;this.j=this.F.D;this.A=null;this.B.R(this.C,"mouse",this.$v);this.B.R(this.C,"touch",this.pw);null!=this.j&&(this.B.R(this.C,"displayContainer",this.Xv),this.B.R(this.C,"videoDisplay",this.lw),this.B.R(this.j,Vb(VR),this.UA));c=ef();d=t("google.ima.gptProxyInstance",c);null==d&&(d=new OR,q("google.ima.gptProxyInstance",d,
c))};var WR=function(a,b){var c=Zf(a.o),d=P(b,function(a){return window.document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return window.document.createTouchList.apply(window.document,d)};
var XR=function(a,b,c,d,e){if(!(e||null!=a&&xf(Ve(a),a)))throw QK(yR,null,"containerElement","element");this.A=a;var f=e=null!=b||null!=d,k=!1;jK.j||(jK.j||ZK()||dL&&(!dL||!$K(hL,4))||Ma(oc,"CrKey")||fL()||Ma(oc,"Roku")||cL()||Ma(oc,"Xbox"))&&e||(VK()||Ma(oc,"CrKey")||fL()||Ma(oc,"Roku")||cL()||Ma(oc,"Xbox")||(k=!0),f=!1);this.C=f;this.G=k||f&&null!=d;jK.j?a=null:(e=N("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.j=this.C||!this.o||jK.j||!VK()?null:new xR(this.o,
null,!0);a=null;this.C?b?a=new gQ(b):d&&(a=new zR(d)):this.j&&(a=new gQ(this.j.o));this.B=(this.D=a)?c||null:null;this.H=null!=this.B;jL(iL.getInstance(),8,{enabled:this.C,yt:null!=d,customClick:null!=this.B});null===this.o?(b=this.A,jK.A=b):this.C&&b&&!ha(b.getBoundingClientRect)&&(b=this.A,jK.A=b);this.F=null==this.o||jK.j?null:new UR(this.o,this)};var YR=function(a){return a.H&&a.B?a.B:null!=a.j?a.j.A:null};
var ZR=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 u=l[p];if(u.nodeName&&u.nodeName.toString().toLowerCase()==k){if(d==u){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 v=
e.parent;for(k=0;v&&v!=e&&25>k;++k){for(var z=v.frames,l=0;l<z.length;++l)if(e==z[l]){f.push(l);break}e=v;v=e.parent}}catch(y){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(v=0;v<$R.length-1;++v)c.push(Vg(a,$R[v])||"");v=Vg(a,"videoad_start_delay");z="";v&&(v=(0,window.parseInt)(v,10),z=0>v?"postroll":0==v?"preroll":"midroll");c.push(z)}else for(v=0;v<$R.length;++v)c.push("");c=c.join(":");v=c.length;if(0==v)c=0;else{z=305419896;for(d=0;d<v;d++)z^=(z<<5)+(z>>2)+c.charCodeAt(d)&4294967295;c=0<
z?z:4294967296+z}return c.toString()};var aS=function(){J.call(this);this.currentTime=0};var bS=function(a){aS.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw QK(yR,null,"content","currentTime");this.j=a;this.za=new Pd(250);this.o=new zm(this);Am(this.o,this.za,"tick",this.A,this)};var cS=function(){this.reset()};var dS=function(){this.o=this.j=null};
var eS=function(){this.j=fS();this.H=-1;this.L=this.P=this.A=this.G=this.B=null;this.D=fS();this.o=null;this.U=this.J=this.K="";this.F=this.N=this.T=this.C=null};var fS=function(){return Math.floor(4503599627370496*Math.random())};var gS=function(a){if(jK.j){var b;return"h.3.0.0"}b="h."+a.U;null!=a.C&&(b+="/n."+a.C,null!=a.B&&(b+="/"+a.B));return b};
var hS=function(a,b){J.call(this);this.j=a;this.D=!!b;this.A=iS(this);if(!this.A){var c=vc&&!yc("7")?"readystatechange":"load";this.o=Nc(this.j,c,this.C,!1,this);this.B=window.setInterval(A(this.C,this),100)}};var jS=function(a){a.B&&(window.clearInterval(a.B),a.B=null)};var iS=function(a){var b=!1;try{if(a.D||!vc||yc("11"))var c=a.j,d=(c.contentDocument||c.contentWindow.document).body,b=a.D?!!d&&!!d.firstChild:!!d;else b="complete"==a.j.readyState}catch(e){}return b};
var kS=function(){J.call(this);this.B=!1;this.impressionUrls=[]};var lS=function(a,b,c){jc.call(this,a);this.B=b||null;this.A=c||null};var mS=function(a,b){this.F=a;this.D=P(b,function(a){return a.clone()});this.C="";this.o=this.A=0;this.j=!0;this.B=[]};var nS=function(a){a.C="";a.A=0;a.o=0;a.j=!0;a.B=[]};var oS=function(){kS.call(this);this.G=[];this.C=!1;this.A="not_loaded";this.o=null;this.D=0;this.j=null;this.H=new Ue};
var pS=function(a){var b=["googletag","googletag.cmd"];return eb(a,function(a){return Fg(b,function(b){return!ca(t(b,a))})})||null};var qS=function(a){return a.B?P(a.G,function(a){return a.clone()}):[]};var rS=function(a){a=qS(a);return null!=a?P(a,function(a){return a.D}):void 0};var sS=function(a,b,c){var d=0,e=0;null!=b&&(b=new O(b.j),d=Number(b.j.get("pod")||0),e=Number(b.j.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(tS.j,d,e,c)}catch(f){}};
var uS=function(a,b){var c=vS(a);if(null!==c){sS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};var wS=function(a,b){a.F=b;a.setVideoContent("","");var c=vS(a);null===c||sS(c,null,!1)};var vS=function(a){null==a.j&&xS(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null};var yS=function(a){null==a.j&&xS(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null};
var zS=function(a){a.o&&(a.o.stop(),a.o.ya("tick",a.up,!1,a),a.o.dispose(),a.o=null)};
var AS=function(a){var b;if(b=!a.C)xS(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.C=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=P(d,a.JB,a)}}catch(f){a.C=!0,c=[]}a.G=c;a.C=!0}if("retrieved"!=a.A&&"not_available"!=a.A&&!ca(vS(a))){var e;b=vS(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.A=e;break;default:e=Number(e),(0,window.isNaN)(e)?a.A=
"not_available":(a.F=e,a.A="retrieved")}}a.C&&"retrieved"==a.A?(a.B=!0,zS(a),a.Z(new lS("companions_success"))):a.C&&"not_available"==a.A?(a.B=!0,zS(a),BS(a)):a.o||(a.D=K()+5E3,a.o=new Pd(100),a.o.R("tick",a.up,!1,a),a.o.start())};var xS=function(a){var b=Hf(a.H);try{a.j=pS([b,b.top])}catch(c){a.j=null}};var BS=function(a){a.Z(new lS("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
var CS=function(a,b,c){a.Z(new lS("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.Ey,a,b),!1,a)};var DS=function(a,b){jc.call(this,a);this.A=b};var ES=function(a){jc.call(this,a)};var FS=function(){};
var GS=function(a,b){if(null==a||0>=a.width||0>=a.height)throw QK(yR,null,"ad slot size",a.toString());this.o=a;this.j=null!=b?b:new FS;this.C=HS(aaa,this.j.A)?this.j.A:"All";this.B=HS(baa,this.j.creativeType)?this.j.creativeType:"All";this.F=HS(caa,this.j.B)?this.j.B:"SelectExactMatch";this.G=HS(daa,this.j.o)?this.j.o:"DisallowResize";this.A=null!=this.j.C?this.j.C:[];this.D=fa(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90};
var IS=function(a,b){var c=[];F(b,function(a){!C(D(a.j.B))&&((0,window.isNaN)(a.j.j)||(0,window.isNaN)(JS(a))||JS(a)==a.j.j)&&KS(this,a)?c.push(a):(a=eaa(this,a),null!=a&&!C(D(a.j.B))&&c.push(a))},a);return c};
var KS=function(a,b){var c;if(c="Flash"!=b.getContentType()||LS){if(c="All"==a.C||a.C==b.j.Ca)c=b.getContentType(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=kb(a.A)?!0:null!=c?0<=jb(a.A,c):!1)}if(c){var d=b.j.Vb();if("IgnoreSize"==a.F||re(a.o,d))c=!0;else if(c="SelectNearMatch"==a.F)"ResizeSmaller"==a.G&&(d=d.width<=a.o.width&&d.height<=a.o.height?d:MS(d,a.o)),c=d.width,d=d.height,c=c>a.o.width||d>a.o.height||c<a.D/100*a.o.width||d<a.D/100*a.o.height?!1:!0}else c=!1;return c};
var eaa=function(a,b){var c=b.o;return null!=c?eb(c,function(a){return KS(this,a)},a):null};var MS=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new qe(c*a.width,c*a.height)};var HS=function(a,b){return null!=b&&Ub(a,b)};var NS=function(){return wK([41351059,41351063])&&!iK()};var OS=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
var PS=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 faa=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Ta(d[0]),d=Ta(d[1]),0<a.length&&(b[a]=d))});return b};var QS=function(a,b){if(a[b])return RS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return RS(a[d]);return!1};
var RS=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};var SS=function(a){O.call(this,a);this.F=new vg;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(ch(this,a.substring(0,b)),c=a.substring(b+1)):ch(this,a);gaa(this,c)};var gaa=function(a,b){C(D(b))||F(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=xa(a.substring(0,b));a=xa(a.substring(b+1));b=this.F.get(e);null!=b?E(b,a)||b.push(a):b=[D(a)];this.F.set(e,b)}},a)};
var haa=function(a){if(C(D("ord")))return null;a=a.F.get("ord");return null!=a?a:null};var TS=function(a,b,c){C(D(b))||(c=P(c,D),a.F.set(b,c))};var US=function(a,b){var c=[D(b)];tb(c,iaa(a));return c.join(";")};var iaa=function(a){var b=haa(a);null!=b?C(D("ord"))||a.F.remove("ord"):b=[D(K())];var c=[];F(a.F.Ma(),function(a){F(this.F.get(a),function(b){tb(c,a+"="+b)})},a);tb(c,"ord="+b[0]);TS(a,"ord",b);return c};
var VS=function(a){if(null==a)return!1;a=new O(a);var b=a.A;return ua(a.o,"googleads.g.doubleclick.net")&&WS("/pagead/ads",b)};var XS=function(a){a=a.j;return null!=a?"bid.g.doubleclick.net"==gh(new O(a)):!1};var YS=function(a){if(null==a)return!1;var b=new SS(a);a=b.o;b=US(b,b.A);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&WS("/(ad|pfad)[x|i|j]?/",b)};var ZS=function(a){if(null==a)return!1;a=new O(a);var b=a.A;return ua(a.o,"doubleclick.net")&&WS("/gampad/(live/)?ads",b)};
var jaa=function(a){return VS(a.j)||YS(a.j)||ZS(a.j)||XS(a)};var kaa=function(a){a=a.j;if(null==a)return null;a=kh(new O(a));return null!=a.get("ms")?D(a.get("ms")):null};var WS=function(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};var $S=function(a){return OK(laa,null,a.parentNode.nodeName,a.nodeName)};var aT=function(a){return OK(maa,null,a.parentNode.nodeName,a.nodeName)};var bT=function(a,b){return null!=a?Zd(rf(a),function(a){return a.nodeName==b}):[]};
var cT=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};var dT=function(a,b){if(null==a)return null;var c="";F(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=Ta(c);return b?Ga(c):c};var eT=function(a,b,c,d){null!=a&&F(rf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw $S(a);})};var fT=function(a){return C(D(a))?window.NaN:Ya(D(a))};
var gT=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Iy(0,0,0,Ya(c[0]),Ya(c[1]),Ya(c[2])),60*(60*(24*c.j+c.o)+c.A)+c.B}return null!=b?b:-1};var hT=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 iT=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ha(a,"/pagead/adview")?jT(a)?0:2:Ha(a,"/pagead/conversion")?jT(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+gS(tS);var d=a.indexOf("&adurl=");c=-1!=d?Ra(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c};var jT=function(a){return Fg(naa,function(b){var c=a||"";return 0<=Ug(c,0,b,c.search(Wg))})};var kT=function(a,b){this.j=a;this.o=b};var lT=function(a){return a.o?-1:a.j};
var mT=function(a,b){a.o&&(a.o=!1,a.j=a.j*b/100)};var nT=function(){this.j=new vg};var oT=function(a,b){this.A=a;this.j=b};var pT=function(a,b){oT.call(this,"progress",a);this.o=b};var qT=function(a,b){F(b,function(a){var b=a.getType().toLowerCase(),e=rT(this,b);e.push(a);this.j.set(b,e)},a)};var sT=function(a,b,c,d){b=b.toLowerCase();var e=rT(a,b);null!=d?(d=new pT(c,d),null!=d?e.push(d):e.push(new oT(b,c))):e.push(new oT(b,c));a.j.set(b,e)};
var rT=function(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]};var oaa=function(a,b){var c=rT(a,"progress");F(c,function(a){mT(a.o,b)});Bb(c,function(a,b){return lT(a.o)-lT(b.o)})};var tT=function(a,b){return P(rT(a,b)||[],function(a){return a.j})};var uT=function(a,b){var c=new nT;eT(a,"Tracking",function(a){var e=cT(a,"event"),f=iT(dT(a),b);vT(f)&&null!=e&&("progress"==e?(a=cT(a,"offset"),a=wT(a),null!=a&&sT(c,e,f,a)):sT(c,e,f))});return c};
var paa=function(a){if(C(D(a)))return null;a=new O(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!ta(a,"/"))return null;a=a.substr(1);return C(D(a))?null:a};var wT=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 kT(a,!0))):(a=gT(a),0<=a&&(b=new kT(a,!1)));return b};var vT=function(a){var b=!0;if(C(D(a)))b=!1;else try{new O(a)}catch(c){b=!1}return b};
var xT=function(a,b){this.j=null!=a?a:new nT;this.G=null!=b?b:[]};var qaa=function(a,b){var c=b.j;F(c.Ma(),function(a){qT(this.j,c.get(a))},a)};var yT=function(a,b){var c=tT(a.j,b);return null!=c?c:[]};var zT=function(a,b){xT.call(this);this.o=a;this.A=b};var AT=function(){};var BT=function(a,b){xT.call(this,b);this.o=a};var CT=function(a){xT.call(this);this.o=a};var DT=function(a){xT.call(this);this.o=(0,window.isNaN)(a)?-1:a};var ET=function(){this.K={};this.ca="";this.yf=new nT};
var FT=function(a,b,c){a.ca=b;a.K=c};var GT=function(a,b){var c=[],d=a.P();F(d,function(a){a=rT(a.yf,b)||[];c=rb(a,c)},a);return c};var HT=function(a,b,c){var d=c||!1;return eb(b.B,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};var IT=function(a,b,c,d,e){ET.call(this);C(D(a))&&(a=Wa()+"_ima");this.U=D(a);this.la=b;this.Ca=c;this.$=d;this.B=e;this.H=[];null!=this.$?this.da=JT[this.$]||"Other":this.da=null};var raa=function(){this.o=this.B=1;this.j=this.A=0;this.C=1};
var KT=function(a,b,c,d,e,f,k,l,m,p){this.B=a;this.j=b;this.F=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.Rd=e;this.Qd=f;this.D=k;this.C=l;this.o=DK(D(m));this.A=p};var LT=function(a,b,c,d,e,f){ET.call(this);this.La=a;this.A=b;this.o=c;this.J=sb(d);this.ga=null;this.B=e;this.ha=sb(f);wb(this.ha,null,function(a){return a.H})};
var MT=function(a){var b=new vg,c=a.P();F(c,function(a){if(a instanceof LT){var c=a.o;F(c.Ma(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);return b};var NT=function(a,b,c){G.call(this);this.o=a;this.A=b;this.B=c;this.D=0;this.j=new zm(this);saa(this)};var saa=function(a){a.B.forEach(function(a,c){this.j.R(c,"mousedown",this.F);this.j.R(c,"mouseup",this.H)},a);a.j.R(a.A,"mouseover",a.G)};
var OT=function(a,b,c,d,e){IT.call(this,a,b,c,d,e);this.W=this.o=null;this.ka=-2;this.A=null;this.T=this.L=w;this.Y=[];this.qa=[];this.C=!1};var PT=function(a,b){a.A=b;null!=a.o&&null!=b&&(QT(a,a.L),RT(a,a.T))};var QT=function(a,b){null!=a.A&&null!=a.o&&F(a.Y,function(a){this.A.ya(a,"click",this.L);!C(D(this.Tc()))&&this.A.R(a,"click",b)},a);a.L=b};var RT=function(a,b){null!=a.A&&null!=a.o&&(a.A.ya(a.o,"creativeview",a.T),a.A.R(a.o,"creativeview",b));a.T=b};
var ST=function(a,b){var c=a.U,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 N("div",d,b)};
var TT=function(a){if(!a.C)return null;var b=GT(a,"start");tb(b,GT(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];F(b,function(a){if(!C(D(a))){var b;b=Te();var f;f=x(void 0)?Fe(void 0).md():"";b=b.Pv("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+f,src:taa});Lf(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",DK(a.j));b.setAttribute("id",f);this.qa.push(f);nb(c,b)}},a);
return c}return null};var uaa=function(a,b){if(null!=a.o){var c=new vg;F(a.Y,function(a){c.set(a,this.Mn(a))},a);new NT(b,a.o,c)}};var vaa=function(a){var b=[],c=a.P();F(c,function(a){b=rb(b,a.H)},a);return b};var UT=function(a,b,c){var d=c||!1;return eb(b.B,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};
var VT=function(a,b,c,d,e,f,k,l,m,p,u,v,z,y,ga,va){this.Ca=a;this.W=b;this.K=c;this.Da=d;this.La=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.Y=l?sb(l):[];this.J=m?sb(m):[];this.B=p?sb(p):[];this.ca=u?sb(u):[];this.G=[];F(this.ca,function(a){tb(this.G,sb(a.j))},this);this.F=null;this.da=!0;this.j=this.o=null;this.H=new vg(v);this.L=null!=va;this.wa=(this.P=null!=z)?y||!1:!1;this.Aa=this.kx?ga||!1:!1;this.Fa=D(z);this.Ha=D(va);this.qa=this.A=null;this.C=new raa;this.T=new qe(0,0);this.$=String(Math.floor(1E9*
Math.random()));this.N=this.U=this.D=null;this.la=K();this.ga=this.fa=0;this.ka=this.ha=!1;F(rb(this.B,this.G),function(a){a.Vg(this)},this);iK()&&WT(this)&&(this.G=Zd(this.G,function(a){return 60>=a.getHeight()}))};var XT=function(a){var b;b=ZT(a);b=QS(b,"hideMaster")||QS(b,"blockAllAds")?"3":WT(a)?$T(a)?"2_3":aU(a)?"2_4":bU(a)?cU(a)?"2_5":dU(a)?"2_1":"2_2":"2":"1";return(eU(a)?4:fU(a,waa)?15:gU(a,xaa)||gU(a,hU)?1:iU(a)?2:0)+"_"+b};var jU=function(a){return null!=a.W?a.W:""};
var kU=function(a){return null!=a.j?rb(kU(a.j),a.Y):a.Y};var lU=function(a){return null!=a.j?rb(lU(a.j),a.J):a.J};var mU=function(a){return null!=a.j?rb(a.G,mU(a.j)):a.G};var ZT=function(a){return null!=a.o?a.o.K:{}};var yaa=function(a){var b={};F(a.B,function(a){a=a.K;for(var d in a)b[d]=a[d]});return b};var zaa=function(a){return null!=a.o?a.o.ca:""};var nU=function(a,b){a.o=b;a.T=null!=a.o&&a.o instanceof OT?a.o.Vb():new qe(0,0)};var oU=function(a){return a.o};
var pU=function(a){return null!=a.Ca?a.Ca:""};var qU=function(a){if(null==a.j||rU(a.j.K))return[];var b=[pU(a.j)];tb(b,qU(a.j));return b};var Aaa=function(a){var b=qU(a).reverse();b.push(pU(a));return b};var sU=function(a){if(null==a.j||rU(a.j.K))return[];var b=[jU(a.j)];tb(b,sU(a.j));return b};var tU=function(a){if(!iK())return null;if(null!=a.j){var b=tU(a.j);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.o:null};var Baa=function(a){var b=sU(a).reverse();b.push(jU(a));return b};
var rU=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};var uU=function(a){if(null==a.j)return[a.K];var b=uU(a.j);b.push(a.K);rU(b[0])&&b.shift();return b};var vU=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1};var wU=function(a){if(-1!=a.La)return a.La;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1};var xU=function(a,b,c,d){a=mU(a);return IS(new GS(new qe(b,c),d),a)};
var yU=function(a){var b=a.A.qf,c=a.A.pf;if(!b||!c)if(a=a.A.j?Vg(a.A.j,"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 qe(b,c)};
var Caa=function(a){if(!a.A||zU(a)&&!fU(a,["ADSENSE/ADX"]))return[];var b=yU(a);if(0>=b.width||0>=b.height)return[];var c=new FS;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.j=40;var d=xU(a,b.width,b.height,c);if(!kb(d))return d;c.o="ResizeSmaller";d=Zd(mU(a),function(a){return a.j.Fg()},a);return IS(new GS(new qe(b.width,b.height),c),d)};
var Daa=function(a){var b=null,c=0;F(Caa(a),function(a){var e;e=yU(this);e=!a.j.Fg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.j.Vb():MS(a.j.Vb(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);return b};var Eaa=function(a){return a.F?a.F.j.Fg()?a.F.j.Qk():a.F.getContent():""};var AU=function(a,b){return b||null==a.j?a.ca:rb(a.ca,AU(a.j))};var BU=function(a,b){return Gh(a.B,function(a){return a instanceof LT&&"linear"==b||a instanceof OT&&"nonlinear"==b?!0:!1})};
var aU=function(a){return-1!=CU(a)&&0!=CU(a)&&7>=CU(a)};var WT=function(a){return a.ha?a.ka:DU(a)?!0:zU(a)?"video"==a.Da:BU(a,"linear")};var bU=function(a){return null!=EU(a)};var DU=function(a){var b=a.o;return zU(a)&&null!=b&&b instanceof OT&&NS()&&(90<a.T.height||!iK()&&!1)};var FU=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:FU(a,b.j)};
var cU=function(a){a=a.getExtension("AdSense");if(null==a)return!1;a=rT(a.j,"video_extend_clicked");return iK()?0!=a.length:!1};
var EU=function(a){var b=FU(a,a.j);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}var b=null,c=new kT(5,!1),d=Faa(a);"implicit"==d&&(b=c);var e=a.o;null==b&&null!=e&&e instanceof LT&&(b=e.B);null!=b||"explicit"!=d||(b=c);return null!=b&&iK()?a.A.nd("disable_skip_on_short_adsense")&&!$T(a)&&zU(a)&&33>=GU(a)?null:(0,window.isNaN)(a.A.D)?c:new kT(a.A.D,!1):b};
var Faa=function(a){if(null!=eb(a.H.Ja(),function(a){return!kb(yT(a,"skip"))}))return"implicit";var b=a.H.get("DFP");if(b instanceof BT)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.o;return iK()&&null!=a&&(a=a.yf,null!=a&&!kb(rT(a,"skip")))?"explicit":"none"};
var HU=function(a){if(null==a.A)return!1;var b=a.A.j;null!=b&&ua(b,"/PrefetchedAd")&&null!=a.j&&(b=a.j.H.get("LocalRedirect"),b=null!=b?b.ld():null);(a=VS(b)||ZS(b)||YS(b))||(null!=b?(b=gh(new O(b)),a=ua(b,"viral.adsense.net")):a=!1);return a};
var dU=function(a){if(null==a.W||null==a.A)return!1;var b;(b=HU(a)||!1)&&!(b=zU(a)&&!fU(a,["ADSENSE/ADX"]))&&(fU(a,hU)?(b=a.H.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);if(b||a.j&&a.j.L&&HU(a.j))return!0;a=gU(a,["ADSENSE/ADX"])||a.j&&iU(a);return iK()&&!a};var IU=function(a){return null===a.o?null:a.o.Tc()};var GU=function(a){return null==a.o||a.o instanceof OT?-1:a.o.La};var JU=function(a){return null===a.F?0:10};var CU=function(a){return GU(a)+JU(a)};
var KU=function(a){return null===a.o?null:a.o.Pk()};var zU=function(a){return fU(a,LU)};var eU=function(a){return null!=a.j&&eU(a.j)||fU(a,Gaa)};var $T=function(a){var b=KU(a);return fU(a,["402"])||x(b)&&!ca(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))};var MU=function(a){return zU(a)&&dU(a)&&!aU(a)&&!C(D(a.D))&&!ca(EU(a))&&0<lT(EU(a))};var iU=function(a){return gU(a,LU)||gU(a,["402"])};var NU=function(a){return a.D};
var OU=function(a){a=a.getExtension("InfoCards");return null!=a?a.o:null};var PU=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null};var fU=function(a,b){return null!=a.W?E(b,a.K):!1};var gU=function(a,b){for(var c=uU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(E(b,c[d]))return!0;break}return!1};var QU=function(a){var b=$T(a)&&iK();if(a=null!=KU(a))a=0!=jK.D||b;return a};var RU=function(){J.call(this);this.A=[]};
var SU=function(){return new VT("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new vg)};var TU=function(a){RU.call(this);this.j=a;this.F=null;this.G=!1;this.B=null;this.C=new zm;Am(this.C,this.j,["companions_success","companion_initialization_failed"],this.oA,this);Am(this.C,this.j,"companion_display_error",this.Gy,this);Am(this.C,this.j,["companion_slot_init","companion_click"],this.Ay,this);this.j.B?this.G=!0:this.j.initialize()};
var UU=function(a,b){Mb(a.o);a.o=new J;a.B=b;a.D=!0;a.G?VU(a):(a.D=WU(XU(b),[]),a.D||(a.B=null,a.o=null));return a.o};
var VU=function(a){var b=a.B;a.B=null;if(null!=a.j)if(kb(a.A))YU(a,Error("Companion slots not available."));else if(null!=b){var c=Haa(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(P(a.A,d.Mu,d)),d.sendImpressionUrls()}catch(f){d.Z(new lS("companion_display_error",f))}if(0<c.length&&b.da){a=a.j;if(d=0!=c.length)d=uU(b),d=rU(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].F);b=b.A;c=vS(a);if(null!==c){sS(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else YU(a,
Error("Invalid master ad."))};var YU=function(a,b){a.Z(new DS("companion_display_error",b))};var Iaa=function(a){vK(rK(),9419278)&&MK(a)};
var Haa=function(a,b){var c=[],d=[];F(a.A,function(a){nS(a);Gh(a.D,function(d){a:{d=xU(b,d.width,d.height);if(!kb(d)&&(d=Jaa(d,c),null!=d)){var e=d.A;if(null!=e&&0!=a.F.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),m=d.getWidth(),p=d.getHeight(),u="IFrame"!=d.j.Ca;d=d.j.H;a.C=e;a.A=m;a.o=p;a.j=u;a.B=d||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);var e=XU(b);a.D=WU(e,c);a.D||F(a.A,function(a){nS(a)},a);return d};
var WU=function(a,b){if(null==a)return!0;var c=a.j;return"all"==a.o?Kaa(c,b):"any"==a.o?Laa(c,b):!0};var XU=function(a){return null==a||null==a.o||(0,window.isNaN)(a.o.j)?null:eb(AU(a,!0),function(a){a=a.j;return kb(a)?!1:(0,window.isNaN)(a[0].j.j)?!1:a[0].j.j==JS(a[0])})};var Kaa=function(a,b){return Fg(a,function(a){return E(b,a)})};var Laa=function(a,b){return Gh(a,function(a){return E(b,a)})};var Jaa=function(a,b){return eb(a,function(a){return!E(b,a)})};var ZU=function(a){this.j=a};
var $U=function(a,b){jc.call(this,"adsManagerLoaded");this.A=a;this.B=b};var aV=function(a,b,c,d){a.A.Gd(new ZU(b),c,d);return a.A};var bV=function(a){jc.call(this,a);this.D=[];this.C={};this.A=null;this.B=!0};var cV=function(){this.A=new vg;this.o=.01>Math.random()&&!iK();this.B=0;this.j="0"};var Maa=function(){var a=cV.getInstance();a.sendMessage("ff",a.B);a.B=0};
var dV=function(a,b,c,d){d=d||{};var e=new O("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5");d.it=b+"."+c;d.sdkv=gS(tS);b=xK(rK());C(D(b))||(d.e=b);Ob(d,function(a,b){lh(e,b,a)},a);return e.toString()};var Naa=function(a,b){if(null!=b){var c=xa(b),d=Oaa.exec(c),c=D(kh(new O(c)).get("client"));a.j=d&&2==d.length?d[1]:C(c)?"0":c}else a.j="0"};var eV=function(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new zm(this);this.J=a;this.A=this.j=null;this.G=!1};
var Paa=function(a){if(null===a.C)fV(a);else{var b=new O(a.C.j),c=D(b.j.get("vid")),b=D(b.j.get("cmsid")),d=a.B.K,e=a.B.J;a.B.K=c;a.B.J=b;if(C(D(c))||C(D(b)))fV(a);else if(c==d&&b==e)fV(a);else{var f=a.D.Be();f.setVideoContent(c,b);uS(f,a.C);a.A=new Pd(100);Am(a.o,a.A,"tick",function(){var a;a:{var b=yS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&fV(this)},a);a.A.start()}}};
var Qaa=function(a){a.j=new Pd;Fm(a.o,a.j,"tick",function(){fV(this)},a);Qd(a.j,a.J);a.j.start()};var fV=function(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.A&&(a.A.stop(),a.A=null);a.G=!0;null===a.F||a.F()};var gV=function(){J.call(this);this.j=new vg;this.o=null;this.D=new zm(this);H(this,this.D);this.C="";this.F=this.A=null};var hV=function(){null!=iV||(iV=new gV);return iV};
var jV=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;hV().Z(new aK("measurable_impression",null,c))};var kV=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;hV().Z(new aK("viewable_impression",null,c))};var lV=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;hV().Z(new aK("externalActivityEvent",null,d))};var Raa=function(a,b){a.A=b};
var Saa=function(a,b){if(a.o){var c=200,d=rK();vK(d,31061771)?c=300:vK(d,31061772)?c=400:vK(d,31061773)&&(c=500);var e=a.j,c=window.setTimeout(function(){b("timeout");F(e.Ma(),function(a){e.get(a)===b&&e.remove(a)})},c);a.j.set(c,b);d={};a.B&&(d.isFullscreen=a.B.Od());d.osdId=a.C;d.eventId=c;a.o.send("activityMonitor","fetchAdTagUrl",d)}else b("")};
var Taa=function(a,b,c,d){if(a.o){var e=200,f=rK();vK(f,41351051)?e=300:vK(f,41351052)?e=400:vK(f,41351053)&&(e=500);var k=a.j,e=window.setTimeout(function(){d({viewability:"timeout"});F(k.Ma(),function(a){k.get(a)===d&&k.remove(a)})},e);a.j.set(e,d);f={};a.B&&(f.isFullscreen=a.B.Od());a.C&&(f.osdId=a.C);f.queryId=c;f.eventId=e;f.vastEvent=b;f.isOverlay=null!=a.A;a.A&&(f.overlayBounds=IP(a.A));a.o.send("activityMonitor","reportVastEvent",f)}else d({})};var mV=function(){};
var nV=function(a,b,c){this.o=a;this.j=c;this.A=b};var Uaa=function(a){this.A=a};var oV=function(a){this.A=a;this.o=this.j=!1};var Vaa=function(a,b,c){this.j=a;this.o=b;this.A=c};var pV=function(){this.j=new vg};var qV=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");var d=[];wg(a.j,c)&&(d=a.j.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});a.j.set(c,d)};var rV=function(a,b){this.j=a;this.o=b};
var Waa=function(a){var b=new pV;F(rf(tf(a.j)),function(a){switch(a.nodeName){case "Preroll":a=sV(this,a);qV(b,a,0);break;case "Midroll":var d=cT(a,"timeOffset"),e=gT(d);if(-1==e)throw OK(tV,null,"timeOffset",D(d));a=sV(this,a);qV(b,a,e);break;case "Postroll":a=sV(this,a);qV(b,a,-1);break;default:throw OK(uV,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Ma().length)throw OK(Xaa);return b};
var sV=function(a,b){var c=[];F(rf(b),function(a){switch(a.nodeName){case "Ad":var b=D(dT(a));if(!C(b)){a=cT(a,"bumper");var f=this.o.clone();f.j=b;b=new oV(f);b.j=null!=a;b.o="always"==a;nb(c,b)}break;default:throw OK(uV,null,a.parentNode.nodeName,a.nodeName);}},a);return c};var vV=function(){this.A=null;this.B="http://www.google.com/adsense/support";this.D=0;this.C=15;this.o=5;this.j=3};var Yaa=function(a,b){a.C=b};
var wV=function(a,b,c,d,e,f,k,l,m,p,u){xT.call(this,p,u);this.C=a;this.D=b;this.A=c;this.F=m;this.H=k;this.B=f;this.o=e};var xV=function(){};var Zaa=function(a,b){var c;F(rf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new vV:null;break;case "params":null!=c&&$aa(this,c,a)}},a);return c};
var $aa=function(a,b,c){F(rf(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.B=c;break;case "attribution_text":b.A=c;break;case "signals":b.D=(0,window.parseInt)(c,10)}},a)};var yV=function(){};var zV=function(){};var AV=function(){};var BV=function(){};var CV=function(a,b){a[b]||(a[b]=[]);return a[b]};var DV=function(a,b){return a[b]?a[b].length:0};
var EV=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&&aba(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0};
var aba=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(!EV(a,b))return!1}else return!1;return!0};var FV=function(a){this.j=a||{}};var GV=function(a){this.j=a||{}};var HV=function(a){this.j=a||{}};var IV=function(a){this.j=a||{}};var JV=function(a){this.j=a||{}};var KV=function(a){this.j=a||{}};var LV=function(a){this.j=a||{}};var MV=function(a){this.j=a||{}};var NV=function(a){this.j=a||{}};
var OV=function(a){this.j=a||{}};var PV=function(a){this.j=a||{}};var QV=function(a){this.j=a||{}};var RV=function(){if(!SV){var a={};SV={Ib:a};a.type={type:"e",label:1,ma:0};a.id={type:"s",label:1,ma:""};a.link_url={type:"s",label:1,ma:""};a.title={type:"s",label:1,ma:""};a.image={type:"m",label:1,ma:bba,ra:TV()};a.event={type:"m",label:3,ra:UV()};a.target={type:"s",label:1,ma:""}}return SV};
var UV=function(){if(!VV){var a={};VV={Ib:a};a.type={type:"e",label:1,ma:0};a.base_url={type:"s",label:1,ma:""}}return VV};var TV=function(){if(!WV){var a={};WV={Ib:a};a.image_url={type:"s",label:1,ma:""};a.thumbnail_url={type:"s",label:1,ma:""};a.image_height={type:"i",label:1,ma:0};a.image_width={type:"i",label:1,ma:0}}return WV};var XV=function(a,b,c){xT.call(this,c);this.o=a};var YV=function(a){this.j=a};
var ZV=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Ib[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]=$V[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.Ib[f.nodeName],l=ZV(a,f,k.ra);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};var aW=function(a,b){xT.call(this);this.A=a;this.o=D(b)};var bW=function(a,b){this.logger=null;this.A=b;this.j={};this.o=[];this.j.CustomTracking=uT;this.j.UI=this.C};var cW=function(a,b){if(null==b)return null;var c={};F(rf(b),function(a){c[a.nodeName]=null!=this.j[a.nodeName]?this.j[a.nodeName].call(this,a):null},a);return null==c.UI?null:c};
var dW=function(a,b,c,d,e,f){xT.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e};var eW=function(a){return null!=a.o?a.o.length:0};var fW=function(){bW.call(this,0,"mute_");this.j.SurveyOptions=this.B};var gW=function(){xT.call(this)};var hW=function(){};var iW=function(){xT.call(this)};var jW=function(){};var cba=function(a,b){F(rf(b),function(a){a.nodeName==this.j.Au&&dT(a)},a)};var kW=function(a,b,c,d){xT.call(this);this.A=a;this.B=b;this.C=c;this.o=d};var lW=function(){};
var mW=function(a){xT.call(this);this.o=a};var nW=function(){};var oW=function(a,b,c,d,e,f,k,l,m,p,u){xT.call(this,d);this.J=a;this.K=b;this.H=c;this.C=e||null;this.B=f||null;this.L=k||null;this.A=l||null;this.o=m||null;this.F=p||null;this.D=u||null};var pW=function(){bW.call(this,0,"why_this_ad_");this.o.push("targeting_reason")};var qW=function(a,b){return null!=a?Fg(b,function(b){return b in a}):!1};var dba=function(a,b){return null!=a?Gh(b,function(b){return b in a}):!1};var rW=function(){};
var sW=function(){xT.call(this)};var tW=function(){};var uW=function(){};var eba=function(a,b){this.j=a;this.o=b};var vW=function(a,b,c){this.j=a;this.o=b;this.A=c};var JS=function(a){a=oU(a.j.getAd());return null!=a?a.j:window.NaN};
var fba=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Db?'<a class="text-image-link" target="_blank" href="'+Y(a.Db)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Db?'<a class="text-title" href="'+Y(a.Db)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.Iq&&a.Db?'<a target="_blank" href="'+Y(a.Db)+'" class="text-ad-channel">'+Y(a.Iq)+"</a>":"")+"</div></div>"};
var gba=function(a){return'<div class="flash-container '+(a.bf?"click-capture":"")+'">'+(a.Db?'<a class="click-layer" target="_blank" href="'+Y(a.Db)+'"></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="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
UQ(a.Db)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+UQ(a.Db)+'"></object></div>'};var hba=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Db?'<a target="_blank" href="'+Y(a.Db)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'};
var iba=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Db?'<a target="_blank" href="'+Y(a.Db)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};var wW=function(a,b,c,d){OT.call(this,a,b,"Static",c,d);this.un=!1};var xW=function(a,b,c,d){OT.call(this,a,b,"Html",c,d)};var yW=function(a,b,c,d){OT.call(this,a,b,"Static",c,d)};var zW=function(a,b){OT.call(this,a,b,"Static","text","")};
var AW=function(a,b,c,d,e){OT.call(this,a,b,c,d,e)};var BW=function(a,b,c){if(kb(c))return new OT(a,b,"",null,"");var d=CW(c);c=d.o;var e=d.j,d=d.A;switch(c){case "Html":return new xW(a,b,e,d);case "Static":switch(JT[e]){case "Image":return new yW(a,b,e,d);case "Flash":return new wW(a,b,e,d);case "Text":return new zW(a,b)}}return new AW(a,b,c,e,d)};
var CW=function(a){var b=eb(a,function(a){return"Static"==a.o&&"Flash"==JT[a.j]}),c=eb(a,function(a){return"IFrame"==a.o}),d=eb(a,function(a){return"Html"==a.o}),e=eb(a,function(a){return"Static"==a.o&&"Image"==JT[a.j]}),f=eb(a,function(a){return"Static"==a.o&&"Text"==JT[a.j]});return LS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
var jba=function(a,b,c,d,e,f){var k=CW(f),l=BW(a.id,a.size,[k]);l.C=!0;l.G=a.apiFramework;l.N=b;l.H=c;l.j=d;e&&(l.yf=e);ob(f,k);var m=[];F(f,function(f){f=BW(a.id,a.size,[f]);f.C=!0;f.G=a.apiFramework;f.N=b;f.H=c;f.j=d;e&&(f.yf=e);m.push(new vW(f,[],a.adSlotId))});return new vW(l,m,a.adSlotId)};var DW=function(a,b,c){this.o=a;this.j=b;this.A=c};var EW=function(a,b,c,d,e,f,k){this.A=a;this.H=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=k;this.j=this.A.we()};
var kba=function(a){"none"==a.j.style.display&&(kg(a.j,!0),F(a.G,function(a){JK(a)}))};var lba=function(a,b,c,d,e,f,k,l,m,p){b=BW("icon"+a,b,p);b.G=k;b.N=l.iconClickThrough;return new EW(b,a,c,d,e,f,m)};var FW=function(a){this.B=a;this.logger=null};var GW=function(a){if(null==a)return!1;a=tf(a);return null!=a&&"VAST"==a.nodeName};var HW=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 mba=function(a){var b=[],c=tf(a.B),d=HW(c);eT(c,a.j.Fs,function(a){var c;c=IW(a);if(null==c)throw $S(a);var k=a.getAttribute(this.o.yh);a=Number(a.getAttribute(this.o.Tm));c=nba(this,c,k||null,a||0);null!=c&&(c.ga=d,b.push(c))},a);return b};var IW=function(a){var b=null;F(rf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw $S(a);}});return b};
var nba=function(a,b,c,d){var e,f,k=[],l=[],m=[],p=[],u=new vg,v,z=b.nodeName==a.j.WRAPPER,y=z,ga=z,va;F(rf(b),function(a){switch(a.nodeName){case this.j.Bu:if(z){if(null!=v)throw aT(a);v=dT(a);va=paa(v);y=hT(b.getAttribute(this.o.Ks),y);ga=hT(b.getAttribute(this.o.Et),ga)}else throw $S(a);break;case this.j.Hs:e=dT(a);break;case this.j.Is:f=dT(a);break;case this.j.kt:dT(a);break;case this.j.yu:dT(a);break;case this.j.Ah:a=dT(a);vT(a)&&k.push(iT(a));break;case this.j.ERROR:a=dT(a);l.push(iT(a));break;
case this.j.$s:a=oba(this,a);m=a.creatives;p=a.gv;break;case this.j.Bt:u=pba(this,a,va)}},a);return new VT(D(c),e,qba(e),f,0,0,d,l,k,m,p,u,v,y,ga,rba(u))};var rba=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=yT(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b};
var qba=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 sba=function(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
var pba=function(a,b,c){var d=new vg;try{var e=bT(b,a.j.At);F(e,function(a){var b=a.getAttribute(this.o.bn);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new tW).parse(a);break;case "pod":a=(new rW).parse(a);break;case "waterfall":a=(new uW).parse(a);break;case "dart":a=(new zV).parse(a);break;case "dfp":b="DFP";a=(new AV).parse(a);break;case "adsense":b="AdSense";a=(new yV).parse(a);break;case "textad":b="TextAd";a=(new lW).parse(a);break;case "templatead":b="TemplateAd";a=(new jW).parse(a);
break;case "infocards":var b="InfoCards",e=new YV(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new YV(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=bT(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+pz(tf(m[0])));a=bT(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new aW(e,m)}else a=null;break;case "viral":b="viral";a=(new nW).parse(a);break;case "adx":b="adx";a=(new AT).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new pW).parse(a);break;case "mute":b="mute";a=(new fW).parse(a);break;case "sodar":a=(new hW).parse(a);break;default:e=new BV,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(qaa(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ha(f.getErrorCode)||1105==f.getErrorCode())throw f;}return d};
var oba=function(a,b){var c=[],d=[];eT(b,a.j.Zs,function(a){var b=a.getAttribute(this.o.Tm),k;C(D(b))||(k=(0,window.parseFloat)(b));a.getAttribute(this.o.yh);var l=!1;F(rf(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(l)throw aT(a);a=tba(this,a,(0,window.isNaN)(k)?0:k);tb(c,a);l=!0;break;case this.j.COMPANION_ADS:if(l)throw aT(a);a=uba(this,a,(0,window.isNaN)(k)?void 0:k);tb(d,a);l=!0;break;case this.j.NON_LINEAR_ADS:if(l)throw aT(a);a=vba(this,a,(0,window.isNaN)(k)?0:k);tb(c,a);l=!0}},
this)},a);return{creatives:c,gv:d}};var vba=function(a,b,c){var d=[],e=new nT;F(rf(b),function(a){switch(a.nodeName){case this.j.du:a=wba(this,a,c);null!=a&&d.push(a);break;case this.j.Ij:e=uT(a);break;default:throw $S(a);}},a);0!=d.length||e.isEmpty()||(a=new OT(null,new qe(-1,-1),"",null,""),a.j=c,d.push(a));F(d,function(a){e&&(a.yf=e)});return d};
var JW=function(a,b){var c={};c.id=b.getAttribute(a.o.yh);c.adSlotId=b.getAttribute(a.o.Gs);c.apiFramework=b.getAttribute(a.o.vh);var d=Ya(b.getAttribute(a.o.Ch)),e=Ya(b.getAttribute(a.o.wh));c.size=new qe(d,e);d=b.getAttribute(a.o.xt);e=b.getAttribute(a.o.wt);C(D(d))||C(D(e))||(c.bJ=new qe(Ya(d),Ya(e)));return c};
var wba=function(a,b,c){var d=JW(a,b);b.getAttribute(a.o.vh);b.getAttribute(a.o.nu);b.getAttribute(a.o.Vt);var e=b.getAttribute(a.o.bu),e=gT(e,-1),f=[];new vg;var k={},l="",m,p=[];F(rf(b),function(a){switch(a.nodeName){case this.j.fu:p.push(dT(a));break;case this.j.eu:m=dT(a);break;case this.j.Dj:k=KW(a);l=D(dT(a));break;case this.j.zh:case this.j.Bh:case this.j.xh:a=LW(this,a);null!=a&&f.push(a);break;default:throw $S(a);}},a);a=BW(d.id,d.size,f);FT(a,l,k);a.G=d.apiFramework;a.N=m;a.H=p;a.ka=e;a.j=
c;return a};var LW=function(a,b){var c=cT(b,a.o.bt);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.j.Bh:d="Static";break a;case a.j.zh:d="IFrame";break a;case a.j.xh:d="Html";break a;default:throw OK(xba,null,d);}var e=dT(b);null!=e||(e="");return new DW(d,c,e)};var uba=function(a,b,c){var d=[],e=sba(cT(b,a.o.lu));eT(b,a.j.Vs,function(a){a=yba(this,a,c);null!=a&&d.push(a)},a);return new eba(d,e)};
var yba=function(a,b,c){var d=JW(a,b),e=[],f=new nT,k,l=[];F(rf(b),function(a){switch(a.nodeName){case this.j.Xs:l.push(dT(a));break;case this.j.Ij:f=uT(a,!0);break;case this.j.Ws:k=dT(a);break;case this.j.Ls:dT(a);break;case this.j.Dj:dT(a);break;case this.j.zh:case this.j.Bh:case this.j.xh:a=LW(this,a);null!=a&&e.push(a);break;default:throw $S(a);}},a);return kb(e)?null:jba(d,k,l,c,f,e)};
var tba=function(a,b,c){var d=new nT,e={},f="",k=[],l,m=new vg,p=[],u=[],v,z=wT(cT(b,a.o.qu));F(rf(b),function(a){switch(a.nodeName){case this.j.Ht:u=zba(this,a);break;case this.j.Dj:e=KW(a);f=D(dT(a));break;case this.j.Fj:v=gT(dT(a),0);break;case this.j.Ij:d=uT(a);break;case this.j.Zt:p=Aba(this,a);break;case this.j.Cu:a=Bba(this,a);m=a.customClicks;l=a.clickThrough;k=a.clickTrackingUrls;break;default:throw $S(a);}},a);F(k,function(a){sT(d,"click",a)});a=new LT(v,l,m,p,z,u);FT(a,f,e);a.j=c;d&&(a.yf=
d);return a};var Bba=function(a,b){var c,d=[],e=new vg;F(rf(b),function(a){switch(a.nodeName){case this.j.Ts:c=dT(a);break;case this.j.Us:a=dT(a);d.push(a);break;case this.j.gt:var b=cT(a,this.o.yh);null!=b||(b="");var l=e.get(b,[]);l.push(dT(a));e.set(b,l);break;default:throw $S(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
var Aba=function(a,b){var c=[];eT(b,a.j.Yt,function(a){var b=cT(a,this.o.jt),f=cT(a,this.o.bn),k=cT(a,this.o.Du),l=Ya(a.getAttribute(this.o.Ch)),m=Ya(a.getAttribute(this.o.wh)),p=a.getAttribute(this.o.vh),u=dT(a),v=fT(a.getAttribute(this.o.Om)),z=fT(a.getAttribute(this.o.au));a=fT(a.getAttribute(this.o.Xt));b=new KT(b,f,k,v,z,a,l,m,u,p);c.push(b)},a);return c};var zba=function(a,b){var c=[];eT(b,a.j.Gt,function(a){a=Cba(this,a);null!=a&&c.push(a)},a);return c};
var Cba=function(a,b){var c=b.getAttribute(a.o.hu),d=cT(b,a.o.Fu),e=cT(b,a.o.Gu),f=Ya(b.getAttribute(a.o.Ch)),k=Ya(b.getAttribute(a.o.wh)),f=new qe(f,k),k=b.getAttribute(a.o.vh),l=wT(cT(b,a.o.gu)),m=b.getAttribute(a.o.Fj),m=gT(m,-1),p=[],u=[],v={};F(rf(b),function(a){switch(a.nodeName){case this.j.Lt:u.push(dT(a));break;case this.j.It:v=Dba(this,a);break;case this.j.zh:case this.j.Bh:case this.j.xh:a=LW(this,a);null!=a&&p.push(a);break;default:throw $S(a);}},a);return kb(p)?null:lba(c,f,d,e,m,l,k,
v,u,p)};var Dba=function(a,b){var c=[],d;F(rf(b),function(a){switch(a.nodeName){case this.j.Jt:d=dT(a);break;case this.j.Kt:c.push(dT(a));break;default:throw $S(a);}},a);return{iconClickThrough:d,dJ:c}};var KW=function(a){a=dT(a);return null!=a?faa(a):{}};var MW=function(a,b){this.o=a;this.j=b};
var Eba=function(a){var b=[],c=bT(a,"vmap:Extensions")[0];if(c){var d;eT(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});if(d&&(b=bT(d,"yt:BreakTime"),!kb(b)))return P(b,function(a){return cT(a,"timeOffset")})}return[cT(a,"timeOffset")]};
var Fba=function(a){var b=new pV;F(rf(tf(a.o)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Gba(this,a);a=Eba(a);F(a,function(a,c){var k=gT(a);0<c&&(d=Hba(this,d));if("start"==a||0==k)qV(b,d,0);else if("end"==a)qV(b,d,-1);else{if(-1==k)throw OK(tV,null,"timeOffset",D(a));qV(b,d,k)}},this)}},a);if(0==b.j.Ma().length)throw OK(NW);return b};var Hba=function(a,b){return P(b,function(a){var b=new oV(a.A.clone());b.j=a.j;b.o=a.o;return b},a)};
var Iba=function(a){a=cT(a,"timeOffset");var b=gT(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};var Jba=function(a){return(a=eb(rf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?eb(rf(a),function(a){return"VAST"==a.nodeName}):null};
var Gba=function(a,b){var c=[],d="",e=null,f=!1,k=!1;F(rf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=qz(a,"vmap:VASTData/VAST")||qz(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Jba(a));if(!e){var c=bT(a,"vmap:AdTagURI"),l="";c.length&&(l=D(dT(c[0])));if(C(l))throw OK(Kba,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=bT(a,"vmap:Extension"),a=Lba(this,a),null!=a&&(f=!0,a=cT(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);var l=null;e?l=Mba(a,e):C(d)||
(l=Nba(a,d));l&&(iK()&&(l.fh=Iba(b)),l=new oV(l),l.j=f,l.o=f&&!k,nb(c,l));return c};var Lba=function(a,b){return eb(b,function(a){return"bumper"==cT(a,"type")},a)};var Nba=function(a,b){var c=a.j.clone();C(c.o)||(c.o="");c.j=b;return c};var Mba=function(a,b){var c=a.j.clone();c.o=pz(b);c.j="";return c};
var Oba=function(a,b){if(null!=a){var c;null!=a?(c=tf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return cV.getInstance().o=!1,new rV(a,b);null!=a?(c=tf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return cV.getInstance().o=!1,new MW(a,b);if(GW(a)){if(!GW(a))throw OK(uV);c=tf(a);var d=HW(c);if(1>d||3<d)throw OK(Pba);c=bT(c,"Ad");if(kb(c))throw OK(OW);c=IW(c[0]);if(null==c)throw OK(PW);if(1!=bT(c,"AdSystem").length)throw OK(PW);return new FW(a)}}return null};var QW=function(){};
var RW=function(a,b){this.o=a;this.A=b};var SW=function(a,b){"auto"!=a.o.Me&&"click"!=a.o.Me||b.set("vpa",a.o.Me)};var TW=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))};var UW=function(a,b){var c=a.A.C;null!=c&&b.set("js","ima-"+c);c=a.o.J;null!=c&&b.set("mv",c+"."+(a.o.H||""))};var VW=function(a,b){b.set("osd",2);-1!=a.A.H&&b.set("frm",a.A.H);var c=a.A.T;null!=c&&b.set("ms",c)};var WW=function(a){return jK.j?"h.3.0.0":null!=a.A?gS(a.A):null};var XW=function(){this.j=["video"]};
var YW=function(a,b,c){var d={};a=new ZW(a,n(b)?b:null,n(c)?c:null);$W(d,a);b=a.error;d.ERRORCODE=1E3>b.j?b.j:900;aX(d,a);bX(d,a);cX(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=jb(Qba,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d};
var dX=function(a,b){var c={},d=new ZW(null,a,n(b)?b:null);$W(c,d);aX(c,d);bX(c,d);cX(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.j){var e=d.j.A,f=null!=e&&null!=e.wb&&null!=e.wb.GET_MIDROLL_POSITION_IN_SEC?e.wb.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.j.C,c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2",c.SLOT_POS=e.o-
1,e=Math.round(e.j),0<e&&(c.MIDROLL_POS=f&&f(e)?f(e):e))}Rba(c,d);Sba(c,d);d=a.la;for(f=a;null!=f;)d=f.fa+","+d,f=f.j;c.RWT=d;return c};var ZW=function(a,b,c){this.error=a;this.j=b;this.display=c};var eX=function(a,b){return Gh(Tba[a],function(a){return null!=b.match(a)})};var $W=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 Sba=function(a,b){a.AD_CPN={toString:function(){return b.display.ff()}};a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};a.MT={toString:function(){if(WT(b.j)){var a=b.j.C;return 0<a.j?Math.round(1E3*a.j).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.Sc()?b.display.Sc().width.toString():""}};a.P_H={toString:function(){return null!=
b.display&&null!=b.display.Sc()?b.display.Sc().height.toString():""}}};var aX=function(a,b){a.SDKV=gS(tS);a.EL="adunit";a.CONN="0";null!=b.j&&(a.VIEWABILITY={toString:function(){var a;jK.j?(a=EP(),a=KP(a,"metric",b.j.$).viewability):(hV(),a="na");return a}});a.WT={toString:function(){return Date.now()}}};var bX=function(a,b){if(null!=b.j&&null!=b.j.A&&null!=b.j.A.wb&&iK()){var c=b.j.A.wb;F(Uba,function(b){b in c&&(a[b]=c[b])})}};
var cX=function(a,b){if(null!=b.j){a.AD_ID=Aaa(b.j);a.AD_SYS=Baa(b.j);var c=tU(b.j);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=aQ(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=XT(b.j).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 Rba=function(a,b){null!=b.j&&(a.AD_LEN={toString:function(){var a=CU(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.sf()?"0":Math.round(100*b.display.sd()).toString():""}})};
var fX=function(a,b,c){if(null!=c){var d;null==b.A&&(b.A=new cS);d=b.A;var e;null!=c&&d.o!=c?(d.j=1,d.o=c):d.j=null!=c?d.j+1:1;e=d.j;1!=e&&a.set("ad_block",e);null==b.L&&(b.L=new dS);e=b.L;var f=c!=b.P;(d=0==d.j%100||f)||(d=36E5<(null===e.j?0:(new Jy).getTime()-e.j));d&&e.reset();b.P=c;b=e.o;null!==b&&a.set("tok",b)}};var gX=function(a,b){a.set("sz",Math.max(null!=b.qf?b.qf:0,null!=b.Ub?b.Ub:0)+"x"+Math.max(null!=b.pf?b.pf:0,null!=b.Tb?b.Tb:0))};
var hX=function(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=X.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!X.navigator&&"unknown"!=typeof X.navigator.javaEnabled&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(b.u_h=X.screen.height,b.u_w=X.screen.width,b.u_ah=X.screen.availHeight,b.u_aw=X.screen.availWidth,b.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(b.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(b.u_nmime=X.navigator.mimeTypes.length);
for(var d in b)a.set(d,b[d]);a.set("dt",Vba)};var iX=function(a){if(a.wb&&a.wb.LACT){var b=a.wb.LACT.toString();if(b)return ab(b)}return a.G};var jX=function(a){return iK()&&a.nd&&a.nd("send_presence_signal_vis")&&a.wb&&a.wb.VIS?a.wb.VIS.toString():null};
var kX=function(a,b,c,d){var e=new vg;yK(rK())||e.set("ad_type",c.adType);LS&&e.set("flash",tM);gX(e,a);lX(c)&&(e.set("ea","0"),null!=a.Ub&&null!=a.Tb&&e.set("image_size",mX(c,a.Ub,a.Tb,a.ef)));nX(e,d);e.set("lact",iX(a));(c=jX(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.fh);hX(e);oX(a,e,!0);fX(e,b,a.C);return e};var oX=function(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=wa(a)),pX("ref",a,b))};
var qX=function(a,b,c){a=null!=b?b.split("_"):a;F(a,function(a){if(!Ub(Wba,a))throw OK(yR,null,"ad_type",String(b));});if(c){var d=[];F(a,function(a){E(rX,a)||d.push(a)});a=d}if(!gL()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw OK(sX,null,"skippablevideo");a=d}return a};var tX=function(a,b){return null!=b?b.split(/[+, ]/):a};
var mX=function(a,b,c,d){a.o&&(c=Math.min(c,90));var e=0,f=0;rK();a=NS();d=d&&a&&!iK()&&!1;a&&(e=15,f=vK(rK(),41351063)&&!iK()?25:65);var k=[];F(Xba,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 uX=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};var vX=function(a,b){return null!=b?String(b):null!=a?a:null};
var wX=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 xX=function(a,b,c){return null!=b&&Ub(c,b)?b:a};var lX=function(a){return Gh(rX,function(b){return E(a.j,b)})};var nX=function(a,b){LS?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].D,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};var pX=function(a,b,c){null!=b&&c.set(a,b)};
var yX=function(a,b,c){RW.call(this,a,b);var d=new XW;a=kh(new O(a.j));d.Mk=xX(d.Mk,a.get("cust_age"),Yba);d.Eh=xX(d.Eh,a.get("adsafe"),zX);d.j=qX(d.j,a.get("ad_type"));d.adType=d.j.join("_");d.Lj=uX(d.Lj,a.get("videoad_start_delay"));d.Mj=vX(d.Mj,a.get("slotname"));d.Lk=wX(d.Lk,a.get("adtest"));d.Nj=wX(d.Nj,a.get("scs"));d.Oj=vX(d.Oj,a.get("alternate_ad_url"));d.channels=tX(d.channels,a.get("channel"));d.dk=uX(d.dk,a.get("cpm"));d.rg=vX(d.rg,a.get("description_url"));d.experimentIds=vX(d.experimentIds,
a.get("eid"));d.gender=xX(d.gender,a.get("cust_gender"),Zba);d.o=wX(d.o,a.get("overlay"));d.host=vX(d.host,a.get("host"));d.A=tX(d.A,a.get("h_ch"));d.hostTierId=uX(d.hostTierId,a.get("ht_id"));d.Nk=wX(d.Nk,a.get("lsv"));var e;null!=this.o.language?e=this.o.language:(e=r.navigator||null,e=hK(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=vX(f,e);var k;null!=e&&!C(D(e))&&(k=hK(e));d.language=vX(d.language,k);d.so=uX(d.so,a.get("linearAdSlotWidth"));
d.ro=uX(d.ro,a.get("linearAdSlotHeight"));d.yi=uX(d.yi,a.get("max_ad_duration"));d.jl=uX(d.jl,a.get("min_ad_duration"));d.zi=uX(d.zi,a.get("sdmax"));d.uo=uX(d.uo,a.get("nonLinearAdSlotWidth"));d.to=uX(d.to,a.get("nonLinearAdSlotHeight"));d.wf=vX(d.wf,a.get("client"));d.Ii=vX(d.Ii,a.get("t_pyv"));k=a.get("sdki");d.Pi=uX(d.Pi,x(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=uX(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Nl=xX(d.Nl,a.get("targeting"),$ba);d.si=uX(d.si,a.get("video_format"));
d.Yl=uX(d.Yl,a.get("video_cpm"));d.Ok=vX(d.Ok,a.get("loeid"));d.im=vX(d.im,a.get("yt_pt"));d.fm=vX(d.fm,a.get("ytdevice"));d.gm=vX(d.gm,a.get("ytdevicever"));d.hm=vX(d.hm,a.get("dbp"));d.B=vX(d.B,a.get("ms"));d.adBlock=uX(d.adBlock,a.get("adBlock"));d.url=vX(d.url,a.get("url"));d.Tj=vX(d.Tj,a.get("avo"));this.j=d;this.H=b;this.J=c;C(D(this.j.experimentIds))||(b=this.j.experimentIds.split(","),qK(rK(),b))};var aca=function(a){return Gh(bca,function(a){return E(this.j.j,a)},a)};
var AX=function(a){return iK()?1:E(a.j.adType.split("_"),"text")?3:1};var cca=function(a){a=a.j.channels?a.j.channels:[];wb(a);a=vb(a,0,30);return a.join("+")};var BX=function(a,b){return Math.round(1.1*(a||0)+0*b)};var CX=function(a,b){RW.call(this,a,b)};var DX=function(a,b){RW.call(this,a,b)};var EX=function(a){RW.call(this,a,null)};var FX=function(a){RW.call(this,a,null)};var GX=function(a,b){RW.call(this,a,b)};
var HX=function(a){if(C(D(a)))return!1;a=new O(a);if(!a.B||"http"!=a.B&&"https"!=a.B)return!1;a=a.o;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};var dca=function(a){var b=[];F(a,function(a){0<a.length&&b.push(P(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};
var IX=function(a,b,c){RW.call(this,a,b);var d=rK();this.H=yK()?!1:C(D(a.A));a=new XW;yK(rK())||(a.j=qX(a.j,this.o.A),a.adType=a.j.join("_"));a.experimentIds=vX(a.experimentIds,this.o.B);this.j=a;this.J=b;this.F=c;C(D(this.j.experimentIds))||qK(d,this.j.experimentIds.split(","))};var eca=function(a){var b=kX(a.o,a.J,a.j,a.F);b.set("sdkv",WW(a));b.set("sdki",a.D().toString(16));return b};
var fca=function(a,b){var c=eca(a),d=P(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});lh(b,"afvparams",d.join("&"))};var JX=function(a,b,c){RW.call(this,a,b);var d=rK();this.H=yK()?!1:C(D(a.A));d=new XW;yK(rK())||(d.j=qX(d.j,this.o.A),d.adType=d.j.join("_"));d.experimentIds=vX(d.experimentIds,this.o.B);this.j=d;this.J=b;this.F=c;C(D(this.j.experimentIds))||(b=this.j.experimentIds.split(","),d=rK(),qK(d,b))};var gca=function(a){var b=kX(a.o,a.J,a.j,a.F);b.set("sdkv",WW(a));return b};
var hca=function(a,b){var c=gca(a),d=P(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});TS(b,"afvparams",[wa(d.join("&"))])};var KX=function(a){RW.call(this,a,null)};var ica=function(a){if(null==a.o||null==a.o.wb)return{};var b={},c=a.o.wb;F(jca,function(a){a in c&&(b[a]=c[a])});return b};
var kca=function(a,b){var c;if(!YS(a.j)&&!ZS(a.j)||(yK(rK())?null==a.j||-1==a.j.search("afvbase="):C(D(a.A))||null==a.j||-1==a.j.search("afvbase=")))if(YS(a.j))c=new DX(a,tS);else if(VS(a.j))c=new yX(a,tS,b);else if(ZS(a.j))c=new GX(a,tS);else if(XS(a))c=new CX(a,tS);else if(c=a.j,null!=c?(c=gh(new O(c)),c=ua(c,".fwmrm.net")):c=!1,c)c=new EX(a);else{c=a.j;if(null!=c){c=new O(c);var d=c.A;c=ua(c.o,"youtube.com")&&WS("/get_midroll_info",d)}else c=!1;c=c?new KX(a):new FX(a)}else c=YS(a.j)?new JX(a,tS,
b):new IX(a,tS,b);return c};var lca=function(a){a=Zd(a,function(a){return 0<wU(a)});Bb(a,function(a,c){return wU(a)-wU(c)});return a};var mca=function(a){return Zd(a,function(a){return-1==wU(a)})};var LX=function(a){this.j=a};var nca=function(){this.j=0};var oca=function(a,b,c,d,e,f){var k=A(function(a){d(a,Error(Gm(a)))},a),l=A(function(a){6==a?MX(this,b,!1,c,k,e,f):k(a)},a);MX(a,b,!0,c,l,e,f)};
var MX=function(a,b,c,d,e,f,k){var l=new on;l.U=c;pn(l,pca(f));var m=new zm,p=A(function(){m.dispose();l.dispose()},a);c=A(function(){e(l.o);p()},a);Fm(m,l,"success",function(){var a;try{a=l.j?l.j.responseXML:null}catch(b){a=null}if(null==a){var c=Bn(l);try{a=mz(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(nz&&(a=oz())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");
}}}d(a);p()},a);Fm(m,l,["error","timeout"],c,a);var u;"POST"==k&&(b=new O(b),u=b.j.toString(),dh(b,""),b=b.toString());a.j=K();l.send(DK(b),k,u)};
var NX=function(a,b,c){var d=null,e=c+b;F(a.B,function(f){if(QS(f.K,"rm")){var k=dX(a);eU(a)&&(k.FILLED_OPPORTUNITY=0);MK(a.J,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof OT)0==c&&0==b||f instanceof zW?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()||LS))if(null==d)d=f,e=k;else if(k==e&&f.j<d.j||k<e)d=f,e=k}});nU(a,d)};
var OX=function(a){var b=null;F(a.B,function(a){a instanceof LT&&(null===b||a.j<b.j)&&(b=a)});nU(a,b)};var PX=function(a,b,c,d){this.B=a;this.H=b;this.ads=0<this.B.length?this.B:this.H;this.D=c;this.C=this.K=!0;this.o=-1;this.j=null;this.F=0;this.P=d;this.logger=null};var QX=function(a,b,c){null!=a.j?qca(a,b,c):a.rd()?rca(a,b,A(function(a){!this.rd()||!iK()&&301==a.getErrorCode()?c(a):QX(this,b,c)},a)):c(new ZJ("adLoadError","The ad source contains no more ads.",1005))};
var sca=function(a,b,c,d){var e=a.D.clone();e.o="";e.j=b.Ha;RX(a,b,e,c,d)};var RX=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.P.fetch(c,A(function(a){if(a instanceof PX){var c=this.C&&b.wa,f=b.Aa,p;for(p in a.ads)a.ads[p].j=b;a.C=c;a.ads=a.J(a.B,a.H);a.o=-1;a.K=f;d(a)}else a instanceof LX?e(new ZJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new ZJ("adLoadError","Unknown ad source.",2))},a),e)};
var tca=function(a){var b=0;for(a=a.j;null!=a;)a=a.j,b++;return b};var qca=function(a,b,c){a.j.rd()?QX(a.j,A(function(a){this.A(a,b,A(function(a){this.rd()?QX(this,b,c):c(a)},this))},a),A(function(a){SX(this.ads[this.o],a);this.j=null;iK()||301!=a.getErrorCode()?this.rd()?QX(this,b,c):c(a):c(a)},a)):(0==a.j.F&&SX(a.ads[a.o],OK(TX)),a.j=null,QX(a,b,c))};var SX=function(a,b){if(b.o){1012==b.getErrorCode()&&(b=OK(UX));var c=YW(b,a);MK(a.Y,c)}};
var rca=function(a,b,c){a.o++;var d=a.ads[a.o];d.P||d.L?d.L?sca(a,d,A(function(a){this.j=a;QX(this,b,c)},a),A(function(a){a=VX(a);SX(d,a);c(a)},a)):4<=tca(d)?(a=OK(uca,null,"4"),SX(d,a),c(a)):a.K?a.G(d,A(function(a){this.j=a;QX(this,b,c)},a),A(function(a){a=VX(a);SX(d,a);c(a)},a)):c(OK(vca)):a.A(d,b,c)};var VX=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=OK(TX)}return a};var WX=function(a,b,c,d){PX.call(this,[],a,b,c);this.L=d};
var XX=function(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.D=e};var wca=function(a,b,c,d){var e;try{e=mz(b.o)}catch(f){d(OK(uV,f));return}null!=e?YX(a,e,b,c,d):d(OK(uV))};var ZX=function(a,b,c,d){var e;if(e=null!=b.j){a:{try{xa(b.j)}catch(f){e=!1;break a}e=!0}e=!e}e?d(OK(xca,null,b.j)):jK.B?Saa(hV(),A(a.o,a,b,c,d)):a.o(b,c,d)};var yca=function(a){var b="third_party";VS(a.j)?b="adsense":YS(a.j)?b="dart":ZS(a.j)?b="xfp":XS(a)&&(b="dbm");a={rt:b};jL(iL.getInstance(),17,a,!0)};
var YX=function(a,b,c,d,e){var f;try{var k=Oba(b,c);if(!k)throw OK(uV);f=k.A();zca(a,f,c,d)}catch(l){l instanceof ZJ?e(l):e(OK(Aca,l))}};var zca=function(a,b,c,d){var e=b.j;if(null!=e)d(new LX(e));else{var f=b.A;if(null==f)throw OK(OW);F(f,function(a){a.A=c;var d=eK();d&&fK(d,"useCompanionsAsEndSlate")&&(a.F=Daa(a));a.fa=this.A.j;iK()&&(a.qa=b.o)},a);e=lca(f);f=mca(f);0<f.length&&0<=vU(f[0])?d(new WX(f,c,a,a.C)):d(new PX(e,f,c,a))}};var $X=function(a){this.j=a+K()};
var pca=function(a){var b=K();a=a.j-b;return 0<a?a:0};var Bca=function(a,b){this.j=a;this.o=b;jK.j&&EP().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}tS.H=c};var Cca=function(a,b,c,d){var e=b.F;iK()&&e&&qK(rK(),e,!1);e=null;null!=a.j&&(e=new eV(1E3,a.j,a.o));var f=kaa(b);null!=f&&jaa(b)&&(a.o.T=f);(new XX(a.o,new nca,a.j,e,new $X(8E3))).fetch(b,A(function(a){a instanceof LX?c(a):Dca(this,a,c,d)},a),d)};
var Dca=function(a,b,c,d){var e=[],f=A(function(a,b){a.rd()?QX(a,A(function(b){e.push(b);f(a,null)},this),A(function(b){301==b.getErrorCode()?d(OK(aY)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=OK(NW)),1012==b.getErrorCode()&&(b=OK(UX)),d(b))},a);f(b,null)};var Eca=function(a){this.A=a;this.o=new co;this.j=!1};var bY=function(a,b,c,d){var e=A(function(a){c(a);go(this.o);this.j=!1;cY(this)},a),f=A(function(a){d(a);go(this.o);this.j=!1;cY(this)},a);fo(a.o,A(function(){Cca(this.A,b,e,f)},a));cY(a)};
var cY=function(a){if(!a.j){var b=ho(a.o);null!=b&&(a.j=!0,b())}};var dY=function(a,b,c){J.call(this);this.B=new Eca(new Bca(b,c));this.C=a;this.o=b;this.j=!0;this.A=c};var Fca=function(a,b,c){if(a.j){var d=null!=c?c:{};cV.getInstance().end("rtr");Naa(cV.getInstance(),b.j);cV.getInstance().start("vl");bY(a.B,b,A(function(a){eY(this,a,d)},a),A(function(a){fY(this,a,d)},a))}};var Gca=function(a,b,c){if(!a.j){var d=null!=c?c:{};bY(a.B,b,A(function(a){eY(this,a,d)},a),A(function(a){fY(this,a,d)},a))}};
var eY=function(a,b,c){if(a.j)b instanceof LX?(b=new gY(b.j,a),b.F=a.o,a.Z(new $U(b,c))):(b=hY(b),b.F=a.o,null!=b?(a.Z(new $U(b,c)),cV.getInstance().end("vl")):fY(a,OK(iY,null),c));else if(b instanceof LX)fY(a,OK(Hca,null,"Unsupported ad format."),c);else{var d=new bV("adsLoaderSdkAdLoaded");d.D=b;d.C=c;a.Z(d)}};var fY=function(a,b,c){a.j?("always"==jK.o&&null!=a.o&&UU(a.o,SU()),a.Z(new $J(b,c))):(c=new bV("adsLoaderSdkAdError"),c.A=b,a.Z(c))};
var Ica=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'};var Jca=function(){return'<div class="recall-button"></div>'};var Kca=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};var jY=function(a,b){this.H=a;this.G=N("div",{"class":"controls"});this.j=N("div",{"class":"adDisplay"});this.N=b||w;this.Rc=new zm(this)};
var kY=function(a){var b=N("div",{"class":"ima-container"});Fq(b,"opacity 0.4s");a.Rc.R(b,"mouseover",a.tw);a.Rc.R(b,"mouseout",a.aC);b.appendChild(a.G);a.G.appendChild(a.j);return b};var lY=function(a,b){this.J=a;this.P=new vg;this.L=15E3;this.D=N("span");jY.call(this,a[0],b);this.j.appendChild(this.D)};var mY=function(a,b){jY.call(this,a[0],b);this.B=a;L(this.j,"ima-container-stack")};var nY=function(a,b,c,d,e){Dz.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=da(e)?e:[e]};
var oY=function(a,b,c,d,e){return new nY(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};var Lca=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"};var Mca=function(a){return'<div class="fullslot-autoclose">'+Y(a.Tu)+"</div></div>"};var pY=function(a){var b="";a=ra("Ad will close in {$xSeconds}",{xSeconds:Y(a.Uf)});return b+a};
var qY=function(a,b){J.call(this);this.A=a;this.U=0;this.da=this.F=!1;this.o=0==lT(this.A.skipOffset)?3:1;this.G=this.H=this.j=this.B=this.ga=this.T=this.P=this.D=null;this.C=new zm(this);this.ca=!1;this.la=this.ka=this.$=0;this.J=this.L=this.K=null;this.Y=!1;this.W=new UP;this.N=new UP;this.fa="";Nca(this,b);this.C.R(this.W,"click",this.SB);VP(this.W,this.B);this.C.R(this.N,"click",this.zv);VP(this.N,this.H)};
var Nca=function(a,b){a.A.H&&(a.C.R(b,"touchstart",a.Rw),a.C.R(b,"touchmove",a.Qw),a.C.R(b,"touchend",a.Pw));a.D=tQ(jR);a.P=Ze("videoAdUiPreSkipButton",a.D);a.T=Ze("videoAdUiPreSkipText",a.P);a.ga=Ze("videoAdUiPreSkipThumbnail",a.P);zf(a.T,lR({Uf:rY(a)}));var c=eQ(a.A.ca)||"";if(a.A.showContentThumbnail&&!C(D(c))){var d=kf("img");d.setAttribute("src",c);L(d,"videoAdUiPreSkipThumbnailImage");a.ga.appendChild(d)}else L(a.T,"videoAdUiPreSkipTextOnly");a.j=tQ(mR,{skipText:a.A.H?"\u00ab Swipe to Skip":
Ta(Na()),Av:nR()});a.H=Ze("videoAdUiExtendButton",a.j);a.B=Ze("videoAdUiSkipButton",a.j);a.G=Ze("videoAdUiAutoSkipText",a.B);vK(rK(),9413054)&&(L(a.B,"autofocused"),a.C.R(a.B,"blur",A(function(){Yd(this.B,"autofocused")},a)),a.B.autofocus=!0);kg(a.D,!1);b.appendChild(a.D);0==lT(a.A.skipOffset)?a.Z("skipshown"):(kg(a.j,!1),jg(a.j,0));b.appendChild(a.j)};var rY=function(a){return null!=a.A.skipOffset&&-1!=lT(a.A.skipOffset)?lT(a.A.skipOffset):-1};
var sY=function(a,b){var c=rY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+PS(c));c=lR({Uf:d,Wh:a.fa});zf(a.T,c)}};var tY=function(a){return 3==a.o&&a.A.P&&20<a.U};var uY=function(a){null!=a.J&&(Sd(a.J),a.J=null)};
var vY=function(a,b,c){J.call(this);this.j=a;this.N=!1;this.wa=c;this.da=this.Y=this.W=this.D=this.J=this.K=this.G=this.ca=this.$=this.T=this.o=null;this.la=!1;this.qa=this.fa=this.ga=this.H=this.B=this.C=this.ka=this.U=this.P=this.F=null;this.A=new zm(this);this.Aa=[];this.L=[];this.N=!this.j.B&&wK([9414784,9418335,9416126]);a={Nc:this.j.Nc,Cf:this.j.Cf,se:this.j.se,Wh:this.N?"redesign2014q4":""};this.o=tQ(this.j.G,a);this.A.R(this.o,"touchmove",this.Jw);this.U=Ze("videoAdUiProgress",this.o);this.ka=
Ze("videoAdUiBuffer",this.o);this.T=Ze("videoAdUiAttributionContainer",this.o);this.$=Ze("videoAdUiAttributionIconContainer",this.o);this.ca=Ze("videoAdUiAttribution",this.o);this.G=Ze("videoAdUiVisitAdvertiserLinkText",this.o);this.K=Ze("videoAdUiVisitAdvertiserIcon",this.o);this.J=Ze("videoAdUiAuthorIcon",this.o);this.D=Ze("videoAdUiAuthorName",this.o);this.W=Ze("videoAdUiLearnMore",this.o);this.Y=Ze("videoAdUiLearnMoreText",this.o);this.N?(this.H=Ze("videoAdUiTopButtonShare",this.o),this.ga=Ze("videoAdUiTopButtonShareTooltip",
this.o),this.fa=Ze("videoAdUiTopButtonInfo",this.o),this.qa=Ze("videoAdUiTopButtonWatchLater",this.o)):this.H=Ze("videoAdUiShare",this.o);this.F=Ze("videoAdUiTitle",this.o);this.P=Ze("videoAdUiTopBar",this.o);this.da=Ze("videoAdUiBottomBar",this.o);null!=this.J&&this.A.R(this.J,"click",this.Qu);null!=this.D&&(c=new UP,this.L.push(c),this.A.R(c,"click",this.Ru),VP(c,this.D));null!=this.W&&(c=new UP,c.K=!0,this.L.push(c),this.A.R(c,"click",this.Ho),VP(c,this.W));null!=this.Y&&(c=new UP,c.K=!0,this.L.push(c),
this.A.R(c,"click",this.Ho),VP(c,this.Y));null!=this.H&&this.A.R(this.H,"click",this.PB);null!=this.F&&(c=new UP,this.L.push(c),this.A.R(c,"click",this.YB),VP(c,this.F));null!=this.P&&this.A.R(this.o,"mouseover",this.OB);null!=this.G&&this.A.R(this.G,"click",this.ej);null!=this.K&&this.A.R(this.K,"click",this.ej);null!=this.T&&null!=this.j.C&&wY(this.j.C)&&(this.A.R(this.T,"click",this.lB),this.A.R(this,"why_this_ad_got_it_url",this.gC));null!=this.j.skipOffset&&(this.B=new qY(this.j,this.o),this.B.Wg(this),
this.B.fa=a.Wh);400>=((0,window.parseInt)(Qf(b,"width"),10)||b.width)&&L(this.o,"videoAdUi-mobile");this.j.B&&(L(this.o,"blazer"),window.settings&&window.settings.isTablet?L(this.o,"tablet"):L(this.o,"phone"));this.j.H&&L(this.o,"videoAdUi-swipeable");a=Gf(b,"html5-video-player");null!=a&&(this.N&&L(a,"videoAdUiRedesign"),this.j.o&&L(a,"ytp-video-ad-learn-more-ui"));kg(this.o,!1);b.appendChild(this.o);this.j.o||this.N||!this.j.K||(this.C=N("div",{style:"width:100%;height:100%;pointer-events:auto;"}),
this.o.appendChild(this.C));xY(this)};var Oca=function(a){null!=a.C&&kg(a.C,!1)};var yY=function(a){a.B&&(a.B.dispose(),a.B=null)};var Pca=function(a,b){a.Aa=b;F(b,function(a){a.display(this.o)},a)};var zY=function(a){null!=a.G&&(kg(a.G,!0),zf(a.G,a.j.visitAdvertiserText));null!=a.K&&kg(a.K,!0)};
var xY=function(a){var b=a.j.T&&(a.wa>a.j.Ca||0==a.wa),c=b&&a.j.Y,d=b&&a.j.$,e=b&&a.j.A,f=b&&a.j.U,b=b&&a.j.F,k=a.j.N&&a.j.j,l="0px";null!=a.F&&(kg(a.F,b),null!=a.J&&kg(a.J,c),null!=a.D&&kg(a.D,d),null!=a.W&&kg(a.W,e),null!=a.H&&(kg(a.H,f),f&&a.Z("videoShareShown")),null!=a.fa&&kg(a.fa,!1),null!=a.qa&&kg(a.qa,!1),null!=a.P&&kg(a.P,b||c||d||e));null!=a.T&&AY(a);null!=a.U&&(kg(a.U,k),k&&(l=Qf(a.U,"height")));null!=a.da&&Lf(a.da,"bottom",l);c=vK(rK(),41351019);null!=a.Y&&kg(a.Y,(!c||iK())&&a.j.o);null!=
a.$&&kg(a.$,a.j.J)};var Qca=function(a,b,c,d,e){var f=oR({Wi:"",Dh:0,Zi:0});a.j.j&&a.j.L&&(b=PS(c-b),f=oR({Wi:a.j.B?" \u2022 "+b:a.N?" \u00b7 "+b:": ("+b+")",Dh:d,Zi:e}));zf(a.ca,f);AY(a)};var AY=function(a){kg(a.T,a.j.D&&(!a.j.j||a.la))};var BY=function(a,b,c){this.o=a;this.B=b;this.G=c;this.j=this.C=this.D=this.A=null;this.F=!1};var wY=function(a){return(a.G||null!=a.o&&null!=a.o.o)&&(null!=a.o||null!=a.B)};var CY=function(a,b,c){b=Ze(b,a.A);null!=b&&a.C.R(b,"click",c)};
var DY=function(a,b,c){b=Ze(b,a.A);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&a.C.R(b,"click",c))};var EY=function(a,b,c){null!=a.A&&a.A.parentElement.removeChild(a.A);a.A=tQ(b,c);CY(a,"videoAdUiPopupCloseIcon",a.ng);a.D.appendChild(a.A);b=Ze("videoAdUiPopupFrame",a.A);null!=b&&Nc(b,"submit",function(a){a.preventDefault()});a=Ze("videoAdUiPopupDefaultButton",a.A);null!=a&&a.focus()};
var FY=function(){this.Nc=oR({Wi:"",Dh:0,Zi:0});var a="",b=ra("Learn More {$suffix}",{suffix:Y("")});this.Cf=a+b;a="";b=ra("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.se=pR();this.skipOffset=null;this.P=!1;this.Ca=6E3;this.D=!0;this.J=!1;this.L=this.j=this.K=!0;this.U=this.N=this.A=!1;this.T=!0;this.F=this.$=this.Y=this.W=this.o=!1;this.G=null;this.H=Rca&&vK(rK(),0);this.showContentThumbnail=!0;this.B=!1};
var GY=function(a,b,c,d){var e=new FY;e.o=a;e.fa=b;e.skipOffset=c;e.ca=null!=d?d.contentId:null;e.K=d.eC;e.G=gR;e.La=dQ(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};
var HY=function(a,b,c,d,e,f,k){J.call(this);this.J=b;this.H=c;this.o=0;this.F=!1;this.C=this.J.C;this.D=new zm(this);this.L=f||w;this.K=k||w;this.j=a;this.B=this.G=null;L(this.j,OS(this.H));a=this.j;b=new FY;b.skipOffset=new kT(this.J.o,!1);this.B=new qY(b,a);d&&d.text&&(d=tQ(Lca,d),this.j.appendChild(d));e?(e=this.j,d=pY({Uf:IY(this.C)}),a=tQ(Mca,{Tu:d}),zf(a,d),e.appendChild(a),e=a):e=null;this.G=e};var Sca=function(a){var b=Ze("videoAdUiSkipButton",a.j);return b?bg(b,a.j):new ne(0,0)};
var JY=function(a){KY(a);a.F=!0;a.A=new Pd(200);a.D.R(a.A,"tick",a.vp);a.A.start()};var KY=function(a){a.D.ya(a.A,"tick",a.vp);null!=a.A&&(a.A.stop(),a.A=null);a.F=!1};var IY=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};var LY=function(){G.call(this);this.C="";this.A=new nT;this.o=new vg;this.D=[];this.H=!1;this.j={};this.G={};this.B=-1;this.F=[]};var MY=function(a,b){if(jK.j){var c=KP(EP(),b.type,a.C);a.J(b.type,c)}else Taa(hV(),b.type,a.C,A(a.J,a,b.type))};
var Tca=function(a,b){null!=b&&F(b,function(a){E(this.F,a)||this.F.push(a)},a)};
var NY=function(a,b,c,d,e){var f;jK.j||(f=hV().F||void 0);F(b,function(a){var b=this.j,m=c||{};if(iK()&&eX("MOAT_INIT",a)){var p=MP();null!=p&&(b.MOAT_INIT=p.moatInit,LK.$k(a)&&(b.MOAT_INIT=(0,window.encodeURIComponent)(b.MOAT_INIT)))}else b.MOAT_INIT="";m=m.moatViewability||"";iK()&&eX("MOAT_VIEWABILITY",a)?(b.MOAT_VIEWABILITY=m,LK.$k(a)&&(b.MOAT_VIEWABILITY=(0,window.encodeURIComponent)(b.MOAT_VIEWABILITY))):b.MOAT_VIEWABILITY="";JK(a,this.j,c,d,e,f)},a)};
var Uca=function(a,b){switch(b){case "abandon":return!wg(a.o,b)&&!wg(a.o,"skip")&&!wg(a.o,"complete")&&(wg(a.o,"impression")||a.H);case "click":return!0;case "complete":return!wg(a.o,b)&&!wg(a.o,"skip");default:return!wg(a.o,b)}};
var OY=function(a){J.call(this);this.ads=a;this.G=null;this.W=new zm(this);H(this,this.W);this.P="normal";this.B=this.volume=null;this.o=new mL;this.Aa=!1;this.content={};this.C=new LY;this.ca=!1;F(a,function(){});F(a,function(b,c){var d=b.C;d.B=a.length;var e=c+1;d.o=e;d.C=e})};
var PY=function(a){if(QY(a)){if(bU(a.G)&&!gL())throw QK(sX,null,"skippablevideo");if(QU(a.G)&&RY(a,a.G.j))throw QK(sX,null,"vpaidWithSkippabilityOverride");return a.G}throw QK(SY,null,"An ad has not been selected.\n"+Error().stack);};var RY=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:RY(a,b.j)};var QY=function(a){return null!==a.G};var Vca=function(a){return Gh(a.ads,function(a){return Gh(TY(a),function(a){return!C(D(aQ(a.o)))})},a)};
var TY=function(a){var b=a.j;if(b&&b.L&&(b=b.B,!kb(b)&&b[0]instanceof LT))return b[0].J;b=a.o;return UY(a)?b.J:[]};var UY=function(a){a=a.o;return null!=a&&a instanceof LT};var VY=function(a){null==a.H&&(a.H=new zm(a));return a.H};var WY=function(a,b){if(null!=a.F){a.W.removeAll();Dm(a.W,a.F,"companion_display_error",function(){});var c=UU(a.F,b);null!=c&&(a.W.R(c,"companion_impression",a.By),a.W.R(c,"companion_click",a.ql));if(!a.F.nn())throw QK(XY);}};var YY=function(a,b){MY(a.C,new jc(b))};
var ZY=function(a,b){MY(a.C,new jc(b));a.va(b)};var $Y=function(a){if(!a.ca)throw QK(SY,null,"Ads manager is not correctly configured.");};var aZ=function(a){do if(zU(a))return!1;while(a=a.j);return!0};var bZ=function(a,b){for(var c=b;null!=c;)F(c.H.Ja(),a.yB,a),c=c.j};var Wca=function(a){if(!da(a))throw QK(SY,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Vb(cZ),Vb(JT));F(a,function(a){if(!E(b,a))throw QK(SY,null,"Invalid or unsuppoted mime type "+a);})};
var dZ=function(a){OY.call(this,a);this.D=null;this.ga=N("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.U=!1;this.$=[]};var eZ=function(a,b){var c=vaa(b);F(c,function(a){sT(this.C.A,"click",a)},a)};var fZ=function(a,b){var c=YW(b,PY(a)),d=kU(PY(a));MK(d,c)};var gZ=function(a){dZ.call(this,a);this.T=!1;this.J=this.N=null;this.da=!1};
var hZ=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.C,b=b.D;a={text:null!=c?c:a.fa.A,url:null!=b?b:a.fa.B};null==a.text&&(c="",b=ra("Ads by Google"),c=AQ(c+b),a.text=c);return a};var iZ=function(a){return QY(a)&&DU(PY(a))};var Xca=function(a){var b=jZ(a);b.rba=a.U;kZ(37,b)};
var jZ=function(a){var b=[],c=[];F(a.N,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a);var d={};d.pid=cV.getInstance().j;d.fsmode=null!=a.J;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.P;return d};var lZ=function(a,b){if(a.J){a.hi(new jc("close"));var c={};c.pid=cV.getInstance().j;c.evt=b;kZ(35,c)}};var kZ=function(a,b){var c=NS()&&!iK();jL(iL.getInstance(),a,b,c)};var mZ=function(a){aK.call(this,"adMetadata",a)};
var Yca=function(a,b,c){var d=w,e=new O("https://www.googleapis.com/youtube/v3/videos");lh(e,"id",a);lh(e,"part","snippet,status");lh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=A(b,c),d=A(d,c));nZ(new on,e,b,d)};
var Zca=function(a,b,c){var d=w,e=new O("https://www.googleapis.com/youtube/v3/channels");lh(e,"id",a);lh(e,"part","snippet,statistics");lh(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));nZ(new on,e,b,d)};
var nZ=function(a,b,c,d){lh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");pn(a,2E3);var e=new zm(a);Dm(e,a,"success",function(a){a=a.target;var b;b=a.j?ae(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});Dm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(Gm(a.o)));d(b);e.dispose();a.dispose()});a.send(b)};
var oZ=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.o=b.title,this.j=Xb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}};var pZ=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 $ca=function(){var a="",b=ra("Your video will play after this ad.");return AQ(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))};var qZ=function(){G.call(this);this.o=tQ($ca);this.za=0};var rZ=function(a){a.za&&(Sd(a.za),a.j(w))};var sZ=function(a){jc.call(this,a)};var tZ=function(a){J.call(this);this.B=a;this.L=new vg;this.H=-1;this.J=this.P=!1;this.F=""};var uZ=function(a){this.j=!1;this.mute=a.sf();this.volume=a.sd()};
var vZ=function(a){null!=a.o&&a.o.dispose();null!=a.j&&a.j.vf();null!=a.D&&a.D.dispose();a.D=null;null!=a.G&&a.G.dispose();a.G=null;a.L.clear();a.H=-1;a.F="";a.P=!1;a.J=!1};var wZ=function(a,b,c,d){if(!c||null==a.L.get(b)){d&&!a.J&&(b="error");a.L.set(b,!0);a:{c=b;if(a.A&&a.A.j.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&MY(a.B,new jc("click"))}d=ada[c]||null;null!=d&&null!=a.j&&a.j.El(d);MY(a.B,new jc(c))}a.Z(b)}};
var xZ=function(a){0>a.H||a.P||!a.j.qg(a.H)&&!a.j.He()||!a.J||(a.P=!0,wZ(a,"engagedview",!0,!0),a.Z(new sZ("viewCount")))};var yZ=function(a){xZ(a);if(iK()){var b=a.B;if(!(0>b.B))for(var c=rT(b.A,"progress"),d=b.B;d<c.length;d++){var e=c[d];b.B=d+1;JK(e.j,b.j)}}wZ(a,"complete",!0,!0)};
var zZ=function(a){OY.call(this,a);this.D=this.A=null;this.fa=!1;this.N=new tZ(this.C);this.$=this.ka=this.wa=this.la=this.U=!1;this.T=null;this.Y=1;this.J=null;this.Fa=new qZ;this.qa=new Wj;this.Ha=!1;this.da=[];this.Da=!VK()&&wK([9414784,9418335,9416126]);this.ga=vK(rK(),41351019)};var AZ=function(a,b){var c=Rd(function(){this.qa.remove(c);b.call(this)},0,a);Xj(a.qa,c)};var BZ=function(a){Mb(a.A);a.A=null;Mb(a.N);Mb(a.C);a.la=!1;a.ka=!1};var CZ=function(a){a.Tg();QY(a)?a.start():a.stop()};
var bda=function(a,b){jL(iL.getInstance(),34,{evt:"start"},!0);var c=N("div");L(c,"controls");var d=N("div");L(d,"adDisplay");L(d,"endslate");d.innerHTML=b;var e=rf(d)[0];e&&Lf(e,{margin:"0 auto"});F(e.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&VY(this).R(a,"click",A(this.wv,this,b))},a);c.appendChild(d);d=new vV;Yaa(d,JU(PY(a)));d.o=0;d.j=0;a.D=new HY(c,d,1,{},!0,A(a.Fn,a),A(a.xv,a));VY(a).R(a.D,"timeUpdate",a.Rp);lf(a.B.Ce(),a.D.getContainer());a.B.Nf();a.D.start();ZY(a,
"video_card_endcap_impression");a.A&&(Oca(a.A),yY(a.A))};var DZ=function(a){a.D&&(a.D.dispose(),a.D=null);a.fa=!1};var EZ=function(a){var b=QY(a)?NU(PY(a)):null;if(b){var c;a:{if(QY(a)&&(c=OU(a.G),null!=c))break a;c=""}var d;a:{if(QY(a)&&(d=PU(a.G),null!=d))break a;d=""}var e=PY(a).A.nd("show_ads_pay_this_creator_info_card");(c||d||e)&&a.j.Ik(b,c||null,d||null,e)}};var FZ=function(a){var b=vK(rK(),9419966);!a.T||!a.$&&b||(b=a.T,a.$=!1,a.T=null,WY(a,b))};
var GZ=function(a,b,c,d){b=rT(b.j,c);kb(b)||(a[d]=b[0].j)};var HZ=function(a,b,c){b=c.getExtension(b);null!=b&&(GZ(a,b,"annotation_click","cta_annotation_clicked"),GZ(a,b,"annotation_close","cta_annotation_closed"),GZ(a,b,"annotation_start","cta_annotation_shown"))};
var cda=function(a,b){var c=zU(b)&&!b.P?pU(b):null,d=bU(b)&&!dU(b),e=null!=a.A&&a.A.j.o,f=b.A,k=!1,l=b.getExtension("AdSense");null!=l&&(k=l.isPharma());var l=XT(b),m;a.A?(m={},HZ(m,"AdSense",b),HZ(m,"dart",b),HZ(m,"DFP",b)):m=null;return new RR(l,c,0,m,e,d,a.o.loadVideoTimeout,f?f.ji:!1,!1,tU(b),a.o.Ef,k)};var dda=function(a){var b=0;F(a.ads,function(a){!UY(a)||iK()&&0!=b||b++},a);var c=1;F(a.ads,function(a){var e=a.C;e.B=b;UY(a)&&(e.o=c,e.C=c,c++)},a)};
var IZ=function(a){var b=a.j;return b&&b.L&&(b=b.B,!kb(b)&&b[0]instanceof LT)?b[0].Tc():IU(a)};var eda=function(a,b){if(iL.getInstance().j){var c=new Wj,d=!1;F(TY(b),function(a){Xj(c,a.j);"VPAID"==a.A&&(d=!0)},a);var e=a.j.tk(),e={aid:pU(b),mt:c.Ja().join(","),smt:e.join(","),hvp:d,st:uU(b).join(",")};jL(iL.getInstance(),28,e)}};
var fda=function(a,b,c,d){if(!iK())try{var e=P(a,function(a){return a.Qd}),f=P(a,function(a){return a.j});a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Qd;a.selmt=null===c?"":c.j;a.ic=!1;a.nat=!1;a.iyh=zK(c.o)?"1":"0";a.as=d;jL(iL.getInstance(),22,a)}catch(k){}};var JZ=function(a,b){b in a.da||(a.da.push(b),a.va(b))};var KZ=function(a,b,c){b.getMessage();b.getErrorCode();LZ(a,c);a.Tg();QY(a)?(RK(QK,a,b,c,void 0),a.start()):(SK(a,b,c),a.stop())};
var LZ=function(a,b){var c=QK(MZ,b),c=YW(c,PY(a),a.j),d=kU(PY(a));MK(d,c)};var NZ=function(a){if(jK.j){var b=IZ(PY(a));null!=b&&HK(b)}a.va("click")};var OZ=function(a,b){Ub(gda,b)&&Am(VY(a),a.N,b,a.Op,a)};
var hda=function(a){var b=PY(a),c=b.D;if(MU(b)&&!iK()&&!a.B.ni()&&c){var b=a.j.getCurrentTime(),d=a.j.Nd(),e=new O("//s.youtube.com/s");lh(e,"ns","yt");lh(e,"el","adunit");lh(e,"docid",c);lh(e,"eurl",window.document.URL);lh(e,"len",d.toFixed(2));lh(e,"tv","1");lh(e,"ps","trueview-instream");lh(e,"st",b.toFixed(2));lh(e,"et",b.toFixed(2));lh(e,"rt",b.toFixed(2));JK(e.toString())}a.va("engagedview")};
var ida=function(a){var b;b=PY(a).U;if(null!=b){b=b.videoId;var c=a.o.baseYouTubeUrl;if(C(D(b)))b=null;else{var c=new O((null!=c?c:"//www.youtube.com/")+"watch"),d=c.j;d.set("v",b);dh(c,d);c.H="action=share";b=c.toString()}null!=b&&(HK(b),a=PZ(a),null!=a&&IK(a,"sharebuttonclicked"))}};var jda=function(a){a=PZ(a);null!=a&&IK(a,"sharebuttondisplayed")};
var PZ=function(a){var b=PY(a).getExtension("AdSense");if(!(b=null!=b?new O(b.A):null))a:{if(a=oU(PY(a)))if(a=GT(a,"start"),!kb(a)){b=new O(a[0].j);break a}b=null}return b};var kda=function(a){var b=PY(a),c=b.U;null!=c&&(b=dQ(c.videoId,null!=EU(b),a.o.baseYouTubeUrl),null!==b&&(a.j.pause(),HK(b)))};var QZ=function(a,b){AZ(a,function(){this.va(b?"video_extend_auto_skipped":"skip");CZ(this)})};
var RZ=function(a,b){Yca(b,function(a){a=new pZ(a);QY(this)&&NU(PY(this))==a.videoId&&(lda(this,a),!C(D(a.channelId))&&a.isListed&&Zca(a.channelId,function(a){a=new oZ(a);if(null!=this.A){var b=this.A,c=a.o;b.j.$=!C(D(c));b.j.da=c;if(null!=b.D){var c="",k=ra("by {$userDisplayName}",{userDisplayName:""+b.j.da});zf(b.D,(new GQ(c+(""+k),void 0)).getContent())}xY(b);b=this.A;c=a.j;b.j.Y=!C(D(c));null!=b.J&&(k=kf("img"),k.setAttribute("src",c),L(k,"videoAdUiAuthorIconImage"),b.J.appendChild(k),null!=b.F&&
L(b.F,"videoAdUiTitleWithAuthorIcon"),null!=b.D&&L(b.D,"videoAdUiAuthorNameWithAuthorIcon"));xY(b)}QY(this)&&(PY(this).N=a,this.va("youTubeChannelMetadata"));if(a=this.A)a=PY(this),b=a.U,a=iK()&&kb(mU(a))&&null!=a.N&&null!=b&&b.isListed;if(a){a=PY(this);VY(this).R(window,"message",this.Vv);var b=PY(this),c=b.N.channelId,k=XT(b),l=this.o.contentId,m=this.o.baseYouTubeUrl,m=new O((null!=m?m:"//www.youtube.com/")+"ad_companion"),p=m.j;p.set("adformat",k);p.set("p",c);p.set("render","video_wall_companion");
l&&p.set("content",l);c=new AW("1",new qe(300,250),"IFrame",null,m.toString());c.Vg(b);c.C=!0;a.G=[new vW(c,[],null)];WY(this,a)}},this))},a)};var lda=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;c.j.F=!C(D(d));c.j.title=d;SZ.test(xe(c.j.title,void 0));null!=c.F&&zf(c.F,c.j.title);xY(c);c=a.A;null!=c.ga?zf(c.ga,kR()):null!=c.H&&zf(c.H,kR())}QY(a)&&(PY(a).U=b,a.va("youTubeVideoMetadata"))};
var TZ=function(a){var b;b=PY(a).N;if(null!=b){var c;c=a.o.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.j.pause(),HK(c))}};
var mda=function(a){var b=cV.getInstance();if(b.o){var c={};if(null!=a.J){var d=gh(new O(a.J.o));if(null!=d){var d=bb(d,".",10),e=d.length;2<=e&&(c.dn=d[e-2]+"."+d[e-1])}c.br=a.J.Rd;c.mt=a.J.j;c.pid=b.j;c.smb=a.o.bitrate;c.iyh=zK(a.J.o)?"1":"0";d=a.J.getWidth();e=a.J.getHeight();null!=d&&null!=e&&(c.vs=d+"x"+e);a.j&&(d=a.j.Sc(),c.ps=d.width+"x"+d.height);a=a.J.F;C(D(a))||(c.vc=a)}b.end("bt",c)}};var UZ=function(){jc.call(this,"vpaidEvent")};
var VZ=function(a){OY.call(this,a);this.la=this.ka=this.Y=!1;this.T=[];this.$=Wa();this.A=null;this.L=!0;this.da=this.ga=-1;this.N=1;this.fa=this.qa="";this.U=!1;this.J=2==jK.D};
var WZ=function(a){var b=zaa(PY(a)),c=D(IU(PY(a))),d=KU(PY(a)),c={desiredBitrate:a.o.bitrate,creativeData:b,viewMode:a.P,clickThroughUrl:c,adUrl:d};KU(PY(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.o.surveyCreativeData&&(c.creativeData=a.o.surveyCreativeData);XZ(a,"initAd",c);F(a.T,function(a){XZ(this,a.type,a.params)},a);a.Y=!0;a.T=[]};var YZ=function(a,b,c){a.Y?XZ(a,b,c):a.T.push({type:b,params:c})};
var XZ=function(a,b,c){c=c||{};c.session=a.$;c.type=b;a.J?window.parent.postMessage(de(c),"*"):null!=a.D.contentWindow&&a.D.contentWindow.postMessage(de(c),"*")};var ZZ=function(a,b,c){var d=QK(b,c),d=YW(d,PY(a)),e=kU(PY(a));MK(e,d);SK(a,b,c)};
var $Z=function(a,b){if(x(b.type))switch(b.type){case "friendlyReady":WZ(a);break;case "videoCall":switch(b.func){case "load":case "play":a.B.Dg();a.fa!=b.src&&(a.fa=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.ga=b.duration;break;case "returnRemainingTime":var c=b.remainingTime;a.L||(Sd(a.da),fa(c)&&-1!=c||(c=30),a.da=Rd(a.Kz,1E3*c,a));break;case "AdClickThru":YY(a,"click");a.va("click");break;case "AdDurationChange":a.va("durationChange");
YZ(a,"getAdDuration");break;case "AdError":ZZ(a,nda,Error(b.message));a.stop();break;case "AdExpandedChange":a.va("expandedChanged");break;case "AdImpression":a.va("impression");break;case "AdLinearChange":c=b.isLinear;!a.L&&c?(a.va("contentPauseRequested"),Sd(a.da)):!c&&a.L&&(a.va("contentResumeRequested"),YZ(a,"getAdRemainingTime"),YZ(a,"getAdDuration"));a.L=c;var d=a.G;d.ha=!0;d.ka=c;a.va("linearChanged");a.J&&a.Z(new UZ);break;case "AdLoaded":a.ka=!0;a_(a);ZY(a,"loaded");break;case "AdPaused":a.U=
!0;ZY(a,"pause");break;case "AdPlaying":a.U=!1;ZY(a,"resume");break;case "AdRemainingTimeChange":YZ(a,"getAdRemainingTime");break;case "AdSkipped":ZY(a,"skip");break;case "AdSkippableStateChange":ZY(a,"skippableStateChanged");break;case "AdStarted":YY(a,"impression");YY(a,"creativeview");a.va("start");break;case "AdStopped":YY(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.L?YY(a,"acceptinvitationlinear"):YY(a,"acceptinvitation");break;case "AdUserMinimize":YY(a,"collapse");break;case "AdUserClose":ZY(a,
"userClose");break;case "AdVideoComplete":ZY(a,"complete");break;case "AdVideoFirstQuartile":ZY(a,"firstquartile");break;case "AdVideoMidpoint":ZY(a,"midpoint");break;case "AdVideoStart":YY(a,"start");break;case "AdVideoThirdQuartile":ZY(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.N&&a.va("volumeChange");0==c&&0!=a.N?(YY(a,"mute"),a.va("mute")):0==a.N&&0!=c&&YY(a,"unmute");a.N=c;a.A.setVolume(c);break;case "Ping":JK(b.url)}};var b_=function(a,b){XZ(a,"wrapperCall",{messageType:b})};
var a_=function(a){a.ka&&a.la&&(YZ(a,"startAd"),a.L||(a.Z(new UZ),YZ(a,"getAdRemainingTime")),YZ(a,"getAdDuration"))};var c_=function(a){this.j=a};var d_=function(a,b,c,d,e,f,k){J.call(this);this.B=this.D=0;this.H=a;this.hc=b;this.ca=c;this.C=null;this.J=d;this.W=f;this.N=jK.o;this.j=null;this.T="normal";this.L=null;this.G=e;this.o=[];this.$=this.P=this.Y=this.K=!1;this.U=k;oda(this)};var e_=function(a){return null!=a&&BU(a,"nonlinear")};
var oda=function(a){F(a.H,function(a){a=new O(a.A.j);var c=a.j.get("max_ad_duration");n(c)||a.j.get("pmxd")})};var f_=function(a){return a.D<a.H.length&&null!=a.H[a.D]};var pda=function(a,b){if(iK()&&!kb(b)&&0==a.hc&&e_(b[0])){var c=sU(b[0]);return"ADSENSE"==(0<c.length?c.pop():jU(b[0])).toUpperCase()}return!1};var g_=function(a){!f_(a)||2<=a.o.length-a.B?a.Y||(a.Z("adBreakInitialized"),a.Y=!0):h_(a)};
var h_=function(a){var b=a.H[a.D];Am(a.F,a.J,"adsLoaderSdkAdLoaded",a.Xo,a);jK.o="on_master_ad";Gca(a.J,b.A,b)};var qda=function(a){null==a.hc||Gh(a.o,function(a){return!a.o})||(a.o=Zd(a.o,function(a){return!(a.o&&!a.A)}))};
var i_=function(a){var b;a:{if(a.B<a.o.length&&(b=a.o[a.B].j,!kb(b))){b=null!=b[0]&&null==ZT(b[0]).rm;break a}b=!1}if(b){b=a.o[a.B];try{if(a.P||(j_(a),a.j=k_(a,b.j),l_(a)),a.j.init(a.T),null!=a.L&&a.j.setVolume(a.L),m_(a.j))a.Z("contentResumeRequested"),a.G.Nf(),a.j.start(),null!=a.C&&a.C.start();else{var c=a.j;if(null!=c&&c instanceof zZ)a.G.Dg(),a.j.start();else{var d=a.j;if(null!=d&&d instanceof VZ)a.G.Nf(),a.G.Dg(),1==a.j.L||a.Z("contentResumeRequested"),a.j.start();else throw Error("Unknown ads manager type.");
}}}catch(e){a.B++,i_(a)}f_(a)&&h_(a)}else a.Z("contentResumeRequested"),n_(a)};var k_=function(a,b){var c=null;if(null!=a.J.C)c=hY(b);else if(QU(b[0]))c=new VZ(b);else if(WT(b[0]))c=new zZ(b);else if(e_(b[0]))c=new dZ(b);else throw Error("No valid creative type found.");c.F=a.U;null!=a.A&&(a.A.dispose(),a.A=null);a.A=new zm(a);Am(a.A,c,"companionBackfill",a.Yo,a);c.Gd(new c_(a.G),{currentTime:0},a.W);return c};
var j_=function(a){a.G.ea();null!=a.C&&(a.C.dispose(),a.C=null);null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.destroy(),a.j=null)};
var l_=function(a){if(null==a.j)throw Error("The current ads manager is not defined");var b=a.j;Am(a.A,b,"adError",a.Kx,a);Am(a.A,b,o_,a.Yo,a);a.A.R(b,["allAdsCompleted"],w);Am(a.A,b,"contentPauseRequested",a.yw,a);Am(a.A,b,"contentResumeRequested",a.zw,a);Am(a.A,b,"userClose",a.Aw,a);Am(a.A,b,"autoClose",a.xw,a);m_(a.j)&&(b=oU(PY(a.j)).ka,0<b||a.W.qn)&&(0>=b&&(b=15),null!=a.C&&a.C.dispose(),a.C=new Pd(1E3*b),Fm(a.A,a.C,"tick",a.Jz,a))};var m_=function(a){return null!=a&&a instanceof dZ};
var n_=function(a){a.K=!1;a.Z("allAdsCompleted")};var rda=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;F(a.o,function(a,b){var f=a.j;jb(f,c);d+=f.length;b<this.B&&(e+=f.length)},a);b=c.C;var f=e+b.C;b.B=d+(a.H.length-a.D);b.o=f;b.A=a.ca;b.j=a.hc}};var p_=function(a){jc.call(this,a);this.A=null};
var q_=function(a,b,c){J.call(this);this.j=a;this.A=[];this.D=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.G=null!=c&&fa(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.B=null;this.o=!1;sda(this,b)};var tda=function(a){this.j=a;this.A=this.o=!1};var r_=function(a){null!=a.B&&(a.B.dispose(),a.B=null);a.j.stop();a.o=!1};var uda=function(a){if(a.o){var b=eb(a.A,function(a){return-1==a.j},a);null!=b&&s_(a,!0,b)}};
var sda=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Gb(this.A,new tda(a),function(a,b){return zb(a.j,b.j)})},a)};var vda=function(a,b){for(var c=[],d=0;d<a.A.length;d++){var e=a.A[d];-1!=e.j&&e.j<=b&&nb(c,e)}return c};var wda=function(a,b){for(var c=0;c<a.A.length;c++){var d=a.A[c];if(-1!=d.j&&b>=d.j-a.G&&b<d.j&&!a.A[c].o)return d}return null};var t_=function(a){a.Z(new p_("contentTrackingError"))};
var s_=function(a,b,c){if(null!=c){if(!c.o){var d=new p_("requestAds");d.A=c.j;a.Z(d);c.o=!0}b&&!c.A&&(b=new p_("playAds"),b.A=c.j,a.Z(b),c.A=!0)}};var u_=function(a,b){G.call(this);this.B=a;this.j=-1;this.A=b};var v_=function(a,b){if(0==b.hc||0>=a.A||0>=a.j)return!1;var c=K()/1E3,d=b.hc-a.B.currentTime;0<d&&(c+=d);return c-a.j<=a.A};
var gY=function(a,b){OY.call(this,[]);this.da=a;this.K=new vg;this.D=this.A=null;this.T=new co;this.J=null;this.Y=b;this.ga=this.$=!1;this.fa=this.N=null;this.ka=0;this.U=!1};var w_=function(a,b){a.U=!1;a.cf(b);if(0==b.hc)a.oi();else{if(-1==b.hc)(x_(a)||!iK()&&a.$)&&y_(a);else{var c=a.D;c.j.start();c.o=!0}a.J=null}};var z_=function(a){null!=a.H&&(a.H.dispose(),a.H=null);a.$=!1;null!=a.D&&r_(a.D)};
var A_=function(a){if(null==a.J){var b=go(a.T);if(null!=b){a.J=b;var c=a.K.get(a.J.A);if(null==c)a.J=null,A_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.J=null,A_(a);else if(null!=a.fa&&v_(a.fa,c))a.J=null,A_(a);else if("requestAds"==b.type)a.U?(a.T.isEmpty()||"playAds"!=ho(a.T).type||go(a.T),w_(a,c)):(b=VY(a),Am(b,c,o_,a.Z,a),Am(b,c,"adError",a.Kn,a),Am(b,c,"allAdsCompleted",a.So,a),Am(b,c,"contentPauseRequested",a.ho,a),Am(b,c,"contentResumeRequested",a.oi,a),Am(b,c,"userClose",a.Dw,a),
Am(b,c,"autoClose",a.Cw,a),Am(b,c,"adBreakInitialized",a.To,a),c.init(-1,-1,a.P));else if("playAds"==b.type)if(null!=a.A&&a.A.gb()&&a.cf(a.A),a.U)w_(a,c);else if(a.A=c,a.A.setVolume(a.volume),c=a.A,b=a.P,null!=b&&(c.T=b),null!=c.j&&c.j.rf(-1,-1,b),a.A.P){c=a.A;if(c.B<c.o.length){b=c.o[c.B];j_(c);try{c.j=k_(c,b.j),l_(c)}catch(d){c.B++,i_(c)}}a.va("contentResumeRequested");a.D.getCurrentTime()>=a.ka?null!=a.A&&a.A.start():a.J=null}else a.A.start()}}};
var y_=function(a){a.ga||(a.ga=!0,a.Y.j=!0,a.va("allAdsCompleted"),-1==a.N&&B_(a))};var B_=function(a){vK(rK(),41351033)||tS.clear();null!=a.F&&(a=a.F.Be(),null!=a&&wS(a,tS.j))};var x_=function(a){return 0==a.K.Ja().length};var xda=function(){};var hY=function(a){if(!kb(a)){var b=a[0];switch(QU(b)?"vpaid":zU(b)&&BU(b,"nonlinear")?"overlay":BU(b,"linear")?"video":BU(b,"nonlinear")?"overlay":null){case "overlay":return zU(b)?new gZ(a):new dZ(a);case "video":return new zZ(a);case "vpaid":return new VZ(a)}}return null};
var C_=function(a){J.call(this);this.o=a;a=new TU(new oS);this.j=new dY(new xda,a,tS);this.j.R("adsManagerLoaded",this.Z,!1,this);this.j.R("adError",this.Z,!1,this);this.j.R("adLoadError",this.Z,!1,this)};var D_=function(a,b,c){tK();var d="",e=uO(),f=e.o,e=e.j;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.qc=ZR(b.j,a.o.A);b.Ml=a.o.G;Fca(a.j,b,c)};var E_=function(a,b){eH.call(this,a,b)};var F_=function(a){this.app=a;jq.call(this,a.Wa)};
var G_=function(a,b,c){this.X=a;this.j=b||"";this.A=c||null;this.B=!1};
var H_=function(a,b){var c=a.X;if(c.Da&&("detailpage"==c.Ba||"leanback"==c.Ba||"embedded"==c.Ba&&(c.Aa||c.experiments.A))&&!a.B){a.B=!0;wi("TIMING_ACTION")||ti("TIMING_ACTION",a.X.csiPageType);a.X.ka&&ti("CSI_SERVICE_NAME",a.X.ka);if(a.A){var c=a.A.B,d;for(d in c)Ru(d,c[d],a.j);d=a.A.A;for(var e in d)Xu(e,d[e],a.j);e=a.A;e.B={};e.A={}}if(e=Dh("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}Xu("yt_vis",
d,a.j)}Xu("yt_pt","html5",a.j);b&&!Wu("pbs",a.j)&&a.o("pbs",b);e=a.X;("detailpage"!=e.Ba||"blazer"==e.j)&&Wu("_start",a.j)&&Vu(a.j)}};var yda=function(){this.C=new BJ(50);this.o=null;this.B=this.A=0;this.j=[]};var zda=function(a,b){0!=a.j.length&&(b.C=a.j.length,b.G=le(a.j,function(a,b){return a+b},0),b.F=db(a.j),b.J=Math.min.apply(Math,a.j),b.H=Math.max.apply(Math,a.j),a.j=[])};
var Ada=function(a,b){if(a.o&&!(b>=a.A&&b<a.B)){var c=a.o.jf(b);a.A=a.o.ee(c);a.B=a.A+a.o.ag(c);var d=K()/1E3,c=Fr(a.o,c),d=d-(c?c.o:window.NaN);CJ(a.C,d);a.j.push(d)}};var Bda=function(a,b){this.j=a;this.o=b;this.A=1};var I_=function(a,b,c,d){d/=a.A;var e=MJ(a.j)+1/NJ(a.j),f;f=Math.max(.9*(d-3),LJ(a.j)+8192*e);c=f/e*a.o.ka/(b+c);c=Math.min(c,d);c=Math.max(a.o.ga,Math.min(a.o.ha,c));return Math.min(a.o.D,Math.max(65536,Math.ceil(c*b)))};
var J_=function(a){var b=NJ(a.j);a=1E-9+LJ(a.j)+1048576*MJ(a.j);return b*Math.min(1,1048576/(b*a))};var K_=function(a){return J_(a)/a.A};var L_=function(a,b,c){this.audio=a;this.video=b;this.reason=c};var Cda=function(a,b,c,d){this.U=a;this.G=b;this.D=c;this.H=d;this.A=this.K=this.j=null;this.C="i";this.L=-1;this.F=this.B=null;this.o=[];this.P=this.N=0;this.T=null;this.J=!1};
var Dda=function(a,b,c,d){"m"==c&&a.j.isLocked()&&!b.isLocked()&&(c="a");a.J=a.J||d;if("m"==c&&b.isLocked())return a.C=c,M_(a,b),N_(a),a.A=O_(a),new L_(P_(a),a.A,c);d=a.j.equals(b);if("m"==a.C&&a.j.isLocked()&&d)return null;"r"!=c||d||(a.L=-1);M_(a,b);b=O_(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new L_(P_(a),b,c)}a.C=c;Q_(a);return null};var Eda=function(a,b){R_(a);a.T=b;a.P=Vs();a.L=-1;M_(a,a.j)};var R_=function(a){return!!a.P&&9E4>=Vs()-a.P};var P_=function(a){S_(a);return a.B};
var O_=function(a){S_(a);return a.F};var Q_=function(a){a.A&&a.F&&T_(a,a.A.info)<T_(a,a.F.info)&&(a.J=a.J||a.F.info.video.width>1.6*a.A.info.video.width||"r"==a.C)};var U_=function(a){var b=a.C;a.C="a";a.L=Vs();a.J=!1;return new L_(a.K,a.A,b)};
var S_=function(a){if(!(!a.j.isLocked()&&-1<a.L&&8E3>Vs()-a.L)){a.P&&!R_(a)&&(a.P=0,M_(a,a.j));N_(a);var b=K_(a.U);if(a.j.isLocked())a.F=a.D.j[a.o[a.o.length-1].id];else{for(var c=Math.min(a.N,a.o.length-1),d=b/a.G.o-T_(a,a.B.info);0<c&&!(T_(a,a.o[c])<=d);c--);for(b=b/a.G.j-T_(a,a.B.info);c<a.o.length-1&&!(T_(a,a.o[c+1])>=b);c++);a.N=c;a.F=a.D.j[a.o[c].id];Q_(a)}}};
var M_=function(a,b){a.j=b;var c=a.H.videoInfos;if(!a.j.isLocked()&&(c=Zd(c,function(a){return T_(this,a)>this.G.G?!1:!this.D.j[a.id].C},a),R_(a))){var c=Zd(c,function(a){return a.id!=this.T.id},a),d=Zd(c,function(a){a=er(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.H.videoInfos);d=Zd(c,b.B,b);d.length||(d=[c[0]]);d.sort(A(function(a,b){return T_(this,a)-T_(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--):T_(a,e)*a.G.j>T_(a,
f)&&(pb(d,c-1),c--)}a.o=d;wI(a.G,d[0].video.tB)};var Fda=function(a,b){if(b)a.B=a.D.j[b];else{var c=eb(a.H.j,function(a){return!!a.Gb&&a.Gb.isDefault}),c=c||a.H.j[0];a.B=a.D.j[c.id]}N_(a)};var N_=function(a){if(!a.B.info.Gb&&(a.B=a.D.j[a.H.j[0].id],1<a.H.j.length)){var b=!1;if(a.j.isLocked())b=240>a.j.j;else{for(b=0;b+1<a.o.length&&"tiny"==a.o[b].video.quality;)b++;var c=K_(a.U)/a.G.j,b=T_(a,a.B.info)+T_(a,a.o[b])>c}b&&(a.B=a.D.j[a.H.j[1].id])}};
var Gda=function(a){var b=a.G.o,c=K_(a.U)/b-T_(a,a.B.info),b=ib(a.o,function(a){return T_(this,a)<c},a);0>b&&(b=0);a.N=b;a.F=a.D.j[a.o[b].id]};var T_=function(a,b){return a.G.$&&b.C?b.C:b.j};var V_=function(){this.j=this.o=!1};var W_=function(a,b){this.J=a;this.A=b;this.C=[];this.j=[];this.B=this.o=null;this.D=0;this.N=b.info.j;this.K=this.L=!1;this.H=new V_;this.G=null;this.F=0};var X_=function(a,b){a.C.push(b);a.o=db(b.info.j);a.D+=Y_(b)};
var Z_=function(a){for(var b;a.C.length&&5==a.C[0].state;)b=a.C.shift(),!b.K&&b.j&&(a.D=$_(b,a.D)),a0(b)&&(b=b0(b),F(b,a.P,a));a.C.length&&a0(a.C[0])&&!Sr(a.C[0].info.j[0])&&(b=a.C[0],!b.K&&b.j&&(a.D=$_(b,a.D)),b=b0(b),F(b,a.P,a))};var c0=function(a){return!(!a.j.length||1!=a.j[0].info.j.info.o||0!=a.j[0].info.A)};var d0=function(a){var b=Ks(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length};
var e0=function(a,b){d0(a);var c=a.j[0],d=f0(a);if(!d)return null;c=b||c.info.j.index.pk(c.info.B);return(d=ks(d,c))?d:null};var g0=function(a){var b=a.j[0],c=f0(a);c&&(c=ys(c))&&h0(a,zr(b.range.start,c))};
var f0=function(a){var b=a.j[0],c=Ks(b),d=ys(c);if(!d||d>c.byteLength){d=a.j[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.j,b.range.start,b.range.length));a.set(new window.Uint8Array(d.j,d.range.start,d.range.length),b.range.length);d=ys(new window.DataView(a.buffer));if(!d)return null;c=new window.DataView(a.buffer.slice(b.range.start,d))}return c};
var Hda=function(a,b){if(a.L)return a.j[0].range;var c=!!a.A.info.audio,d=a.A.Mh();if(a.j[0].info.C>=b)return null;var e;for(e=1;e<a.j.length;e++){var f=a.j[e].j!=a.j[e-1].j;if(a.j[e].info.C>b||f||a.J.Y)break}e--;var f=a.j[e].range.end,k=a.j[e].info.H-b;if(d&&c&&0<=a.J.U&&k>a.J.U){c=Math.floor((b-a.j[e].info.C)/a.j[e].info.G*a.j[e].info.o);if(0==c)return null;f=a.j[e].range.start+c-1}return new xr(a.j[0].A?0:a.j[0].range.start,f)};
var h0=function(a,b){for(var c;a.j.length;){if(a.j[0].range.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].range.start+1,e=Math.min(e,c.info.o);d=new Rr(c.info.type,c.info.j,c.info.range,c.info.B,c.info.startTime,c.info.duration,c.info.A,e,!1);var f=zr(c.range.start,e);d=new Js(d,c.j,f,c.o,c.A);e=new Rr(c.info.type,c.info.j,c.info.range,c.info.B,c.info.startTime,c.info.duration,c.info.A+e,c.info.o-e,c.info.F);f=new xr(f.end+1,c.range.end);c=new Js(e,c.j,f,c.o,!1);d=[d,c];c=d[0];a.j[0]=d[1]}else c=a.j.shift();
d=a;f=c.info;d.B=f;d.L&&d.B.D&&(d.L=!1);d.N=Math.max(d.N,f.j.info.j);if(c.range.end==b.end)break}a.j.length&&c.j==a.j[0].j||(a.D-=c.o.length)};var i0=function(a,b){var c=j0(a,b);if(0<=c)return c;a.o=a.A.bi(b).j[0];k0(a)&&(a.B=null);a.G=null;a.F=0;return a.o.startTime};
var l0=function(a,b){m0(a);if(a.A.info.video&&a.B&&!a.B.D&&b){var c=fb(a.j,function(a){return a.info.D});a.j=vb(a.j,0,c+1);a.L=!0}else a.j=[];if(a.j.length)for(a.D=a.j[0].o.length,c=1;c<a.j.length;c++)a.j[c].j!=a.j[c-1].j&&(a.D+=a.j[c].o.length);else a.D=0};var n0=function(a){a.H.o||a.H.start();l0(a,!1);k0(a)&&(a.B=null)};
var Ida=function(a,b){for(var c=0;c<a.C.length&&b!==a.C[c];c++);if(c==a.C.length)b.dispose();else{for(;c<a.C.length;)a.U(a.C.pop());3==b.info.j[0].type?(b.j&&b.j.B?(c=b.j.B,c=new Rr(c.type,c.j,c.range,c.B,c.startTime+c.duration,0,c.A+c.o,0,!1)):(c=b.info.j[0],c=new Rr(c.type,c.j,c.range,c.B,c.startTime,0,c.A,0,!1)),a.o=c):a.o=null}};var Jda=function(a){return Gh(a.j,function(a){return a.info.D})};var k0=function(a){return!!a.B&&a.B.F};
var o0=function(a){var b=[];a.B&&b.push(a.B);F(a.j,function(a){b.push(a.info)});F(a.C,function(a){F(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.o&&a.o!=db(b)&&b.push(a.o);return b};var p0=function(a){if(!a.o||!a.o.o)return!1;a=o0(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].H)))return!1;return!0};var j0=function(a,b){if(p0(a)){var c;a:{c=o0(a);for(var d=0;d<c.length;d++)if(c[d].C<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN};
var q0=function(a){return Gh(a.C,function(a){return 3<=a.state})};var r0=function(a){return!(!a.o||!Qr(a.A)||a.o.j==a.A)};var s0=function(a){return r0(a)&&a.o.j.info.j<a.A.info.j};var m0=function(a){F(a.C,a.U,a);a.C=[];a.o=null};var t0=function(a){return!!a.o&&a.o.B<a.A.index.wg()};
var Kda=function(a,b){this.o=a;this.D=this.C=!1;this.length=b;this.j=0;this.A=[];if(1==this.o.length&&!this.o[0].range){var c=this.o,d;d=this.o[0];var e=zr(0,this.length);d=new Rr(d.type,d.j,e,d.B,d.startTime,d.duration,d.A,e.length,d.F);c[0]=d}this.B=null};var Lda=function(a){var b=a.length-a.j;F(a.A,function(a){b+=a.range.length});return b};
var u0=function(a,b,c,d){this.status=0;this.H=this.o=null;this.J=d;this.D=c;this.A=[];this.F=null;this.C=this.j=0;Mda++;this.K=window.NaN;this.B=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(yi(A(this.vB,this)),yi(A(this.uj,this)));K();this.G=!1;b()};var v0=function(a){a.A.push(a.F.subarray(0,a.j));a.j=0;a.F=a.G?null:new window.Uint8Array(w0(a))};var x0=function(a){a.B.read().then(yi(A(a.ty,a)),yi(A(a.uj,a)));var b=K();a.K=b};
var w0=function(a){a=a.eg();return Math.max(16384,.125*a)};var y0=function(a,b,c,d){this.status=0;this.o=null;Nda++;this.A=this.B=!1;this.j=new window.XMLHttpRequest;this.j.open("GET",a);this.j.responseType="arraybuffer";this.j.withCredentials=!0;this.C=d;this.D=c;a=yi(A(this.xD,this));this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();b();this.j.addEventListener("progress",yi(A(this.yD,this)),!1)};
var z0=function(a,b,c){this.B=a;this.info=b;this.timing=c;this.state=1;this.A=null;this.L=this.F=this.J=0;this.D=window.NaN;this.G=this.o=this.P=null;this.C=0;this.j=null;this.K=!1;this.H=null;this.N=window.NaN};var A0=function(a){var b;b=a.timing;b={rt:((K()-b.A)/1E3).toFixed(2),lb:b.j,pt:(b.L/1E3).toFixed(2),pb:b.J};b.shost=a.o?qr(a.o.j):"";b.rn=a.J.toString();a.C&&(b.rc=a.C.toString());410!=a.C&&500!=a.C&&503!=a.C||(b.isPotentialFormatUnavaliable="true");return b};
var B0=function(a){a.isDisposed();if(2>a.F)a=!0;else{var b=a.info.A;a=!(a.J>b.A&&1<=b.o)}return a};var C0=function(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.P&&a.P(a)};var Oda=function(a){return Fg(a.info.j,function(a){return 3==a.type})};var D0=function(a){if(a.A){var b=a.A;a.A=null;b.pr()}a=a.timing;a.B&&(a.B=!1)};var E0=function(a){var b=a.A.lh("content-type"),c=a.A.eg(),c=!c||c<=z0.j;return(!F0(a)||!b||-1!=b.indexOf("text/plain"))&&c};
var b0=function(a){a=a.j;var b=a.A;a.A=[];a.B=db(b).info;return b};var a0=function(a){return 2<=a.state&&!!a.j&&!!a.j.A.length};
var G0=function(a,b){F0(a)&&!a.A.eg()&&(a.B.L=!1,a.B.P=!1);if(b||F0(a)&&!E0(a)){if(!a.j){var c=b?a.A.kk():a.A.eg();a.j=new Kda(a.info.j,c)}for(;a.A.Eo();)for(var c=a.j,d=a.A.yq(),e=0,f=0,k=0;k<c.o.length;k++){var l=c.o[k];if(e+l.o<=c.j)e+=l.o;else{var m;var p=c,u=l;1==u.type?(p.C=!0,m=!1):3==u.type||4==u.type?(u=p.C&&!p.D,p.D=!0,m=u):m=!1;var p=c,u=l,v=c.j-e,z=f,y=d,ga=Math.min(u.o-v,y.length-z),va=void 0,va=new Rr(u.type,u.j,u.range,u.B,u.startTime,u.duration,u.A+v,ga,u.A+v+ga==u.range.length&&u.F),
I=v=void 0,v=y.buffer,z=y.byteOffset+z,y=zr(y.byteOffset,y.length);1==u.type?(v.slice?v=v.slice(z,ga):(u=new window.Uint8Array(v,z,ga),v=(new window.Uint8Array(u)).buffer),I=zr(0,ga)):I=zr(z,ga);p.A.push(new Js(va,v,I,y,m));p=ga;c.j+=p;f+=p;e+=l.o;if(f==d.length)break}}}};var $_=function(a,b){a.K=!0;return b-Zr(a.info)+Y_(a)};var Y_=function(a){return a.j&&a.K?Lda(a.j):Zr(a.info)};var F0=function(a){return!!(a.B.L||a.B.P&&a.A&&a.A instanceof u0)};
var Pda=function(a,b,c){this.o=a;this.J=b;this.P=c;this.j=this.D=this.A=window.NaN;this.H=this.K=this.B=!1;this.C=0;this.F=this.L=window.NaN};var H0=function(a,b,c){if(a.B){var d=(b-a.D)/1E3,e=c-a.j;0<e&&(d>a.o.j.j||1024>e?(a.C+=d,d>a.o.j.j&&IJ(a.o,a.o.j.C,e)):IJ(a.o,d,e),a.H=!0)}else 8192<=c&&(d=a.o,d.B.j(1,(b-a.A)/1E3),PJ(d),a.B=!0);a.D=b;a.j=c};var I0=function(a){var b=a.J-a.j,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=K(),b=8192<=a.j?b+c:b+Math.max(c,a.A+1E3*a.G.delay);a.F=b};
var J0=function(a,b,c,d){Oj.call(this);this.H=a;this.B=b;this.F=c;this.A=this.o=null;this.K=new Bda(a,b);this.j=null;this.D=new Cda(this.K,b,this.F,d);this.C=this.da=this.$=this.ca=window.NaN;this.L=!1;this.G=window.NaN;this.fa=0;this.J=!1;this.ha={};this.U="";this.W=this.Y=0};var K0=function(a){0==a.C&&(a.o.A.A||L0(a,a.o,!0),a.A.A.A||L0(a,a.A,!0));a.seek(a.C);M0(a,"gv")};
var N0=function(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",A(a.uc,a),!1),a.j.o.removeEventListener("updateend",A(a.uc,a),!1),a.j.j.removeEventListener("error",A(a.Ai,a,!0),!1),a.j.o.removeEventListener("error",A(a.Ai,a,!1),!1));a.j=null;a.J=!0;a.A&&l0(a.A,!1);a.o&&l0(a.o,!1)};var O0=function(a){a.j&&Bv(a.j)&&N0(a)};
var P0=function(a,b,c,d){a.isDisposed()||((b=Dda(a.D,b,c,d))&&a.O("videoformatchange",b),Q0(a,a.A,O_(a.D)),a.D.j.isLocked()&&"m"==c&&(n0(a.A),n0(a.o)),s0(a.A)&&R0(a,a.A,a.o),S0(a))};var T0=function(a,b,c){if(!b.H.o||!c.remove)return!1;if(c.updating)return!0;if(!b.H.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.H.j=!0;b.H.reset();a.O("seekrequired");return!1};
var U0=function(a,b,c){if(a.J)return!1;if(!b.o){if(!Qr(b.A))return b.A.A||L0(a,b,!1),!1;i0(b,a.C)}var d=b.C.length+c.C.length;(q0(b)||q0(c)||a.F.isLive)&&--d;if(2<=d+1)return!1;d=b.o;4==d.type&&Qr(d.j)&&(b.o=db(d.j.Oi(d)),d=b.o);!d.F&&!d.j.mh(d)||d.j.info.audio&&4==d.type?a=!1:s0(b)&&!a.B.H?a=!0:(!(c=d.F||b.D+c.D>a.B.J||!!(c.o&&!c.o.F&&c.o.H<d.H))&&(c=3==d.type)&&(d=d.H,b=V0(a,b,!0),a.D.j.isLocked()||(c=(Vs()-a.fa)/1E3,b=Math.min(b,30+2*c)),c=d>a.C+b),a=c?!1:!0);return a};
var R0=function(a,b,c){if(!a.j||Av(a.j)||Ev(a.j)){var d=a.C,e=a.K;c=I_(e,b.A.info.j,c.A.info.j,0);e=LJ(e.j)+c*MJ(e.j)+c/NJ(e.j);a:{d+=Math.max(e,e+5-c/b.A.info.j);a=a.D.J;if(b.C.length){if(b.C[0].info.j[0].startTime<=d)break a;m0(b)}for(e=b.j.length-1;0<=e;e--)c=b.j[e],c.info.startTime>d&&(b.j.pop(),b.j.length&&b.j[e-1].j==c.j||(b.D-=c.o.length));b.C.length?b.o=db(b.C[b.C.length-1].info.j):b.j.length?b.o=db(b.j).info:b.o=b.B;a&&b.o&&d<b.o.startTime&&(b.G=null,b.F=0,b.o=b.A.bi(d,!0).j[0])}}};
var W0=function(a,b,c){U0(a,b,c);var d=b.o;if(Qr(b.o.j)){s0(b)&&!a.B.H&&(R0(a,b,c),b.o||i0(b,a.C));var d=b.o,e=d.H-a.C,f=!d.range||0==d.o&&0==d.A?0:d.range.length-(d.A+d.o);r0(b)&&(s0(b)||25>=e)&&0==f&&(f=d.startTime+J0.j,d.o&&(f+=d.duration),i0(b,f),d=b.o);d.j.Mh()?(c=I_(a.K,d.j.info.j,c.A.info.j,e),e=r0(b),c=Ts(d.j,d,c),c.range&&1<c.j.length&&(e?c=Ts(d.j,d,c.j[0].o):(e=c.j[c.j.length-1],f=e.o/c.range.length,!e.D&&.4>f&&(c=Ts(d.j,d,c.range.length-e.o)))),d=c):d=as(d.j,d)}else d.j.Mh()?(c=I_(a.K,
b.A.info.j,c.A.info.j,0),d=Ts(d.j,d,c)):d=as(d.j,d);X_(b,X0(a,d))};var X0=function(a,b){if(3==b.j[b.j.length-1].type){var c;a:{c=a.D;var d=b.j[0].j;if(d.info.video){if(c.A!=d){c.A=d;c=U_(c);break a}}else c.K=d;c=null}c&&a.O("videoformatchange",c)}c=Zr(b);var d=a.H,e=a.K,f=Math.min(2.5,LJ(e.j)),e=J_(e);c=new z0(a.B,b,new Pda(d,c,c-f*e));d=A(a.hA,a);c.isDisposed();c.P=d;c.start(Math.max(0,b.j[0].C-a.C));return c};var S0=function(a){if((0,window.isNaN)(a.ca)){var b=A(a.uc,a);a.ca=xi(b,0)}};
var Y0=function(a){if((0,window.isNaN)(a.$)){var b=A(function(){this.$=window.NaN;this.uc()},a);a.$=xi(b,J0.C)}};
var Z0=function(a,b,c,d,e){if(c.updating)return!0;var f=b.j.length?b.j[0]:null;if(!f)return!1;!b.B||b.B.D||Tr(b.B,f.info)||(b.B=null,Av(a.j)&&c.abort(),c.j=null);var k=a.F.isLive&&Os(f),l=!a.F.C&&b.J.Y&&c0(b);if(k)c.j=null;else{if(k=l||!f.A)k=f.info.j.j,c.j==k?k=!1:($0(a,c,k),c.j=k,a.O("initsegment",c.j),k=c.updating);if(k)return!0}k=V0(a,b,!1);k=a.C+k;null!==d&&0<=d&&(k=Math.min(k,d));d=Hda(b,k);if(!d)return!1;if(l){if(d0(b))return!1;if(k=e0(b))return a1(a,c,new window.Uint8Array(k),f,b)?(g0(b),
!0):!1}k=new window.Uint8Array(f.j,d.start,d.length);if(f.info.j.info.video&&a.B.La)for(var m=k,p=0;p<m.length-5;p++)0==m[p]&&0==m[p+1]&&0==m[p+2]&&12==m[p+3]&&6==m[p+4]&&45==m[p+5]&&(m[p+5]=63);m=!1;if(3==f.info.type&&(1==f.info.j.info.o||2==f.info.j.info.o))if(m=1==f.info.j.info.o&&a.B.wa&&!l&&!b.K&&0==f.info.A&&0<f.info.startTime)Ms(f,0);else if(a.F.C&&0==f.info.A){a:if(b.J.W&&c0(b)&&!Os(b.j[0])&&d0(b))e=!1;else{l=null===b.G?f.info.startTime:b.G;0==Ms(f,l)?(l=Wr(f.info),l.smst=1,a.xd(!0,"fmt.unparseable",
l)):b.G=2==f.info.j.info.o?l+f.info.duration:l+Ns(f);if(2!=f.info.j.info.o){l=0;if(f.info.j.info.video&&null!==e&&(p=1E3*(Ns(f)-f.info.duration),p=b.F+p,e=e-p,!(Math.abs(e)<J0.D))){var l=e/1E3,u=Ns(f)+l,v=Wr(f.info);v.deltaOffsetMs=e;v.cumOffsetMs=p;v.finalDurSecs=u;a.xd(!1,"qoe.avsync",v)}if((e=l)&&b.J.W&&c0(b)&&!Os(b.j[0])){b.F+=1E3*(Ns(f)-f.info.duration+e);b.G+=e;e=Ns(f)+e;b:{l=0;for(p=new window.DataView(f.j);ts(p,l);){u=us(p,l);if(1936286840==u.type){l=u.data.getUint32(u.offset+16);break b}l=
ws(u.type)?l+8:l+u.size}l=window.NaN}if((0,window.isNaN)(l))b:{l=f.info.j.j;p=0;for(u=new window.DataView(f.j);ts(u,p);){v=us(u,p);if(1836476516==v.type){l=vs(v);break b}p=ws(v.type)?p+8:p+v.size}l=l?rs(l):window.NaN}if(e=e0(b,e*l)){if(a1(a,c,new window.Uint8Array(e),f,b)){g0(b);e=!0;break a}e=!1;break a}}else b.F+=1E3*(Ns(f)-f.info.duration)}e=null}if(null!=e)return e}if(!a1(a,c,k,f,b))return!1;b.K=!0;m?(Ms(f,f.info.startTime),c.abort(),c.j=null,Vr(f.info)):(h0(b,d),Vr(b.B),Sx(c.buffered));f.A&&
(c.j=f.info.j.j,a.O("initsegment",c.j));return!0};var a1=function(a,b,c,d,e){return $0(a,b,c)?!0:(d.info.j.info.video?(a=a.B,a.B=Math.floor(.5*a.B),a.K=Math.floor(.5*a.K),a.A=Math.floor(.5*a.A),a.D=Math.floor(.5*a.D)):(a=a.B,a.C=Math.floor(.5*a.C),a.N=Math.floor(.5*a.N),a.A=Math.floor(.5*a.A)),n0(e),!1)};var $0=function(a,b,c){try{Ev(a.j)?b.appendBuffer(c):b.append(c)}catch(d){return 22!=d.code&&Ci(d),!1}return!Bv(a.j)};
var V0=function(a,b,c){var d=b.A.info.audio?a.B.C:a.B.B;!a.B.H&&a.D.j.isLocked()&&(d=Math.max(d,b.A.info.audio?a.B.N:a.B.K));c&&(d+=a.B.J);b=a.D.j.isLocked()?b.o?b.o.j.info.j:b.A.info.j:b.N;d/=b;0<a.B.A&&(d=Math.min(d,a.B.A));return d};
var b1=function(a){if(a.F.isLive){if(!a.o.A.index.dg())return window.NaN;var b=a.o.A.index.wg(),c=a.o.A.index.Jb(),d=a.o.A.index;return 1>a.B.liveChunkReadahead?d.ee(c)+d.ag(c)-J0.A:d.ee(Math.max(b,c-a.B.liveChunkReadahead+1))+J0.A}return Math.floor(Math.min(a.o.A.index.cg(),a.A.A.index.cg()))};
var c1=function(a,b,c,d){if(Qr(b.A))if(d){var e=Ux(d.buffered,c),f=window.NaN,k=b.B;k&&(f=Ux(d.buffered,k.j.index.ee(k.B)));if(e==f&&p0(b))return c;d=j0(b,c);if(0<=d)return d;l0(b,!0);b.A.info.video&&b.B&&!b.B.D&&!Jda(b)&&(d=b.B,b.j.length&&(d=db(b.j).info),d=b.o||d,d=Ts(d.j,d,d.range.length-(d.o+d.A)),X_(b,X0(a,d)));if((0,window.isNaN)(e))return i0(b,c);i0(b,e+J0.j)}else i0(b,c);else b.A.A||L0(a,b,!1),0!=c&&m0(b);return c};var Q0=function(a,b,c){b.A!=c&&(b.A=c,c.A||L0(a,b,!1))};
var L0=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.B.D,Math.floor(Math.max(d,2*b.A.info.j))));c=b.A.Nn(d);F(c,function(a){if("f"!=a.j[0].j.info.B){var c=X0(this,a);!Sr(a.j[a.j.length-1])&&X_(b,c)}},a);b.A.A=!0};var d1=function(a){if(!a.A.o)return"";a=qr(a.A.o.j.D.j);return a.substr(0,a.indexOf("."))};var M0=function(a,b,c){a.ha[b]=c?window.performance.timing.navigationStart+c:K()};
var e1=function(a){return a.j&&!Bv(a.j)?Math.min(Wx(a.j.o.buffered,a.C),Wx(a.j.j.buffered,a.C)):0};var f1=function(a,b,c,d,e){G.call(this);this.C=a;this.K=b;this.H=c;this.B=d;this.j=e;this.G="";this.o=this.J=this.D=this.F=null;this.A=new rv(this);H(this,this.A);this.B?(T(this.A,this.B,"message",this.kE),T(this.A,this.B,"keystatuseschange",this.jz)):this.j&&(T(this.A,this.j,"mskeymessage",this.yp),T(this.A,this.j,"mskeyerror",this.xp),T(this.A,this.j,"mskeyadded",this.wp))};
var g1=function(a,b){G.call(this);this.j=a;this.o=b;this.D={};this.A=null;this.B=new rv(this);H(this,this.B);this.C=this.F=null};var h1=function(a){if(a.o.A)return a.o.A.createMediaKeys().then(yi(A(function(a){this.F=a;this.j.setMediaKeys(a)},a)));wt(a.o)?a.C=new (xt())(a.o.j):Qda(a);return null};var Qda=function(a){tv(a.B,a.j,["keymessage","webkitkeymessage"],a.nE);tv(a.B,a.j,["keyerror","webkitkeyerror"],a.mE);tv(a.B,a.j,["keyadded","webkitkeyadded"],a.lE)};
var i1=function(a,b){var c=a.D[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.G=b.sessionId,a.D[b.sessionId]=c);return c};var Rda=function(a,b,c){this.url=a;this.interval=b;this.j=c};var Sda=function(a,b,c){this.j=a;this.headers=b;this.message=c};
var j1=function(a,b,c,d,e){G.call(this);this.G=a;this.j=d;this.j.subscribe("oauthtoken",this.rr,this);this.A={session_id:e};k1(this,a.C);this.B=this.C=!1;var f;try{f=b.createSession(c)}catch(k){a="g",k instanceof window.DOMException&&(a+=k.code),this.j.O("licenseerror","drm.unavailable",a,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.o=f)this.o.setCallbacks(this.BD,this.AD,this.zD,this),H(this,this.o)};
var k1=function(a,b){if(Tda.test(b)){for(var c in a.A)b=Zg(b,c,a.A[c]);a.F=b}else l1(a,"drm.net","u")};var l1=function(a,b,c,d){a.isDisposed()||a.j.O("licenseerror",b,c,d);a.dispose()};var m1=function(a,b){this.j=a;this.contentType=b||null};
var n1=function(a,b){Oj.call(this);a.addKey||a.webkitAddKey||xt()||zt();this.L=a;this.j=b;this.subscribe("newlicense",this.Hz,this);this.subscribe("newsession",this.Iz,this);this.subscribe("sessionready",this.pA,this);this.U=pu();this.G=null;this.K={};this.o=[];this.B=o1;this.F=new g1(a,b);H(this,this.F);this.A=null;wt(b)&&(this.A=new g1(a,b),H(this,this.A));this.J=2;this.D=new rv(this);H(this,this.D);this.H=!1;this.N=null;this.C=!1;var c=this.L;this.j.A?T(this.D,c,"encrypted",this.Vy):tv(this.D,
c,wt(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.Fz);(c=h1(this.F))?c.then(yi(A(this.yz,this)),yi(A(this.ay,this))):this.C=!0;this.A&&h1(this.A)};var p1=function(a,b,c){a.isDisposed()||wt(a.j)==c||a.H&&"widevine"==a.j.o||(c=String.fromCharCode.apply(String,b.j),a.K[c]||(a.K[c]=!0,a.H=!0,a.o.push(b),1<a.o.length||a.C&&q1(a,b)))};var q1=function(a,b){var c=new j1(a.j,a.F,b,a,a.U);c.rr(a.G);H(a,c)};
var r1=function(a){this.o={};this.o.c1a=A(this.C,this);this.o.c3a=A(this.D,this);this.o.c6a=A(this.B,this);(this.j=a)&&this.j.fa?this.A=lj(this.j.fa):this.A=[]};var s1=function(a,b,c){this.j=a;this.reason=b;this.o=c};var Uda=function(a,b){this.X=a;this.j=b};var qH=function(a,b){return Rt(Rt(a.X.pe,b.Ug),b.$g)};var t1=function(a,b){var c=CA();return"auto"!=c?Pt("auto",c,!1):u1(a,b)};
var u1=function(a,b){if(wG(a.X)&&Yv(a.X.F,Tv))return St;var c;c=!!b.A.j;var d;yG(a.X)&&(d=window.screen&&window.screen.width?new qe(window.screen.width,window.screen.height):null);d||(d=a.X.ad?a.X.ad.clone():a.j.Ka());(uG||sM||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.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=Pt("auto",e.quality,!1)}else e=St;c=e.j;mt()&&(c=Math.max(c,
lr.hd1080));if(d=(ht("armv7")||ht("android"))&&!wG(a.X))d=b.A.videoInfos[0],d="9"==d.B||"("==d.B;d&&(c=Math.min(c,lr.large));c=Math.max(c,lr.medium);e.j!=c&&(e=new Ot(e.o,c,e.A));return e};var Vda=function(a){this.B=this.j=window.NaN;this.o=this.A=!1;this.C=!!a};var gy=function(a,b,c,d){var e=1<d;e&&(a.o=!0);if(a.A)b!=a.j&&(a.A=!1);else if(0<b&&a.j==b)return c-a.B>(e||!a.o?1500:400);a.j=b;a.B=c;return a.C&&a.o&&0>=d};var v1=function(){Oj.call(this);this.o=null};
var w1=function(a,b){var c="";b&&(x1(a,b),c=nv(b));a.j.src&&""==c||(c&&a.j.src!=c&&(a.j.src=c),b&&b.j||a.load())};var y1=function(a){a.j.ended&&z1(a,0);if(!a.j.src&&a.o){var b=nv(a.o);a.j.src=b;a.o.j||a.load()}a.play();A1&&7<=Cw&&Nl(a,"playing",A(function(){xi(A(this.B,this,this.getCurrentTime(),0),500)},a))};var x1=function(a,b){a.o&&a.o.equals(b)||(a.o&&a.o.dispose(),a.o=b)};var ey=function(a){return Wx(B1(a),a.getCurrentTime())};
var z1=function(a,b){0<a.j.readyState&&(A1&&4>Cw&&(b=Math.max(.1,b)),a.j.currentTime=b)};var C1=function(a){a.j.src&&(Mv&&0<a.getCurrentTime()&&z1(a,0),a.j.removeAttribute("src"),a.load(),a.o&&a.o.j&&x1(a,null))};var D1=function(a){var b=B1(a);return 0<Vx(b)&&a.j.duration?Ux(b,a.getCurrentTime()):0};var E1=function(a,b,c,d){a.A[b]||(a.j.addEventListener(b,A(a.jE,a)),a.A[b]=!0);return a.subscribe(b,c,d)};var Wda=function(a,b,c){this.target=a;this.type=b;this.j=c||null};
var F1=function(a){v1.call(this);this.j=a;this.A={}};var B1=function(a){return a.j.buffered||Rx()};var Xda=function(){this.o=0;this.j=this.D=this.A=this.B=window.NaN;this.C=0;this.H=this.J=this.F=this.G=window.NaN};var G1=function(){this.endTime=this.startTime=-1;this.Wj="-";this.playbackRate=1;this.visibilityState=0;this.Sj=""};var Yda=function(a,b,c,d,e,f,k,l,m){this.j=a;this.o=b;this.C=c;this.D=d;this.A=e;this.F=f;this.J=k;this.H=l;this.G=m||function(){};this.B=-1};
var NA=function(a){var b=Vs();0>a.B&&(a.B=b);return Math.round(b-a.B)/1E3};var PA=function(a){var b=a.C();a=a.j;var c={};a.o&&(c.fmt=a.o.id,a.D&&a.D.id!=a.o.id&&(c.afmt=a.D.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.Xf&&(c.splay=1);a.Ea&&(c.live=a.Ed?"dvr":"live");a.Hg&&(c.autoplay=1);a.oe&&(c.sdetail=a.oe);a.U&&(c.partnerid=a.U);a.osid&&(c.osid=a.osid);qa(b,c);return b};
var rA=function(a){var b=new G1;b.Wj=a.C().cc||"-";var c=a.o;b.playbackRate=c.sc&&c.sc.playbackRate||1;c=bH(a.o);0!=c&&(b.visibilityState=c);a=a.H();a.Gb&&a.Gb.id&&"und"!=a.Gb.id&&(b.Sj=a.Gb.id);return b};var H1=function(a,b){this.o=this.A=0;this.X=a;this.C=b;this.j=window.NaN};var I1=function(a,b){this.state=a;this.j=b};var WA=function(a,b){return U(a.state,b)&&!U(a.j,b)?1:!U(a.state,b)&&U(a.j,b)?-1:0};
var J1=function(a,b,c,d,e){Oj.call(this);this.Qa=new Vda(a.experiments.na("html5_always_underrun_on_empty_buffer"));this.G=c;this.Na=d;this.D=new Oz(A(this.getCurrentTime,this),A(this.KC,this),A(this.getPlayerState,this),A(this.gb,this),e);H(this,this.D);this.fa=window.NaN;this.L=this.F=null;this.X=a;this.ka=new Uda(a,this.Na);this.J=!1;this.H=this.C=null;this.Y=[];this.ca=new V_;this.T=new V_;this.bb=this.Fa=!1;this.Ha=window.NaN;this.B=new ay;this.la=[];this.N=b;this.da=this.ga=null;this.K=window.NaN;
this.ha=[];this.j=new rw;this.o=this.$=null;this.wa=window.NaN;this.A=null;this.Va=!1;this.qa=0;this.Sa=this.Ta=this.Ua=this.Aa=!1;this.U=this.W=null};var K1=function(a){yu()?Au(a.qa):Ai(a.qa)};var L1=function(a){if(a.A){var b=a.A;if(!b.isDisposed()&&b.B){b.D="paused";var c=RA(b);c.T=!0;c.send();c=b.A;"PL"==c.o&&(c.o="N");var d=NA(c.j);EA(c,d,"vps",[c.o]);c.Rg(d);Ai(b.C);b.dispose()}Mb(a.A);a.A=null}};var M1=function(a){return a.o?a.o.ia():null};
var N1=function(a){if(Vw(a.j))return!0;nJ(a,"api.invalidparam");return!1};var O1=function(a,b){a.Fa=!!b;N1(a)&&!a.ca.o&&(a.ca.start(),a.A&&a.A.Pf(),a.zn())};var P1=function(a){a.o&&w1(a.o);O1(a);N1(a)&&!U(a.B,128)&&(a.T.o||(a.T.start(),Q1(a,hy(a.B,8)),Xw(a.j)||Q1(a,hy(a.B,1))),R1(a))};
var R1=function(a){a.isDisposed();if(!a.T.j&&a.ca.j&&!U(a.B,128)&&!a.Y.length&&(a.D.F||a.D.Pf(),!AH(a))){if(a.C){var b=a.C;a.bb=!!b.N&&!!b.T}a.T.j=!0;a.j.Ea&&(S1(a,window.Infinity,!0),T1(a,!0));a.A&&(b=a.A,b.j.j.enableCardio&&b.j.j.enableCardioBeforePlayback&&(b.Qi("connected"),YA(b)));a.O("playbackready",a)}};
var U1=function(a,b,c,d){a.j.o=c;a.j.D=d||c;if(a.A){var e=a.j,f=u1(a.ka,e),e=eb(e.A.videoInfos,A(f.B,f)),e=new s1(c,b,e?e.id:"");d&&"i"==b&&V1(a,b,d);d=a.A.A;c=NA(d.j);EA(d,c,"vfs",[e.j.id,e.o,d.W,e.reason]);d.W=e.j.id;e=d.j.J();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),EA(d,c,"view",e));EA(d,c,"vps",[d.o]);d.Rg(c)}a.O("internalvideoformatchange",a.j,"m"==b)};
var V1=function(a,b,c){a.j.D=c;if(a.A){var d=a.A.A;c=new s1(c,b,"");var e=NA(d.j);c.j.id!=d.J&&(EA(d,e,"afs",[c.j.id,d.J,c.reason]),d.J=c.j.id)}"i"!=b&&a.O("internalaudioformatchange",a.j,"m"==b)};var nJ=function(a,b,c,d){var e,f;Ub(Zda,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||Q(e),messageKey:e};Q1(a,fy(a.B,128,b));K1(a);W1(a);X1(a)};var AH=function(a){return!!a.Y.length||0<Kz(a.D.j,-0x8000000000000).length};
var Y1=function(a,b){var c=new F1(b);a.o&&Z1(a);a.o=c;$da(a)};var Z1=function(a){a.H=null;a.C&&(S0(a.C),a.C.J=!0);a.o&&(a.A&&a.ca.o&&U(a.B,64)&&!a.j.Ae&&$1(a),a2(a),F(a.ha,a.o.Lb,a.o),a.ha=[],C1(a.o),a.o=null)};
var b2=function(a){if(!U(a.B,128)&&(P1(a),U(a.B,64)&&Q1(a,hy(a.B,8)),a.T.j&&a.o))if(a.j.A){if(a.j.Ea){var b=a.getCurrentTime()<Uw(a.j),c=ax(a.j)&&U(a.B,4);(b||c)&&S1(a,window.Infinity,!0);c2(a)?T1(a,!0):a.J&&S1(a,window.Infinity,!0)}if(a.j.A.j)b=d2(a),a.C.resume();else{W1(a);var b=a.j.Gf.o(),c=a.j,d={};c.Y&&(d.ptk=c.Y,d.oid=c.bd,d.ptchn=c.ad,d.pltype=c.ed);qa(b.o,d);c=a.X.o;qa(b.o,{c:c.c,cver:c.cver})}(c=a.o.o)&&c.equals(b)?y1(a.o):aea(a,b)}else nJ(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")};
var hH=function(a){a2(a);W1(a);d2(a)};var e2=function(a){if(a.j.A){var b=f2(a)||St;a=Zd(a.j.A.videoInfos,A(b.B,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 g2=function(a){return Rt(Rt(qH(a.ka,a.j),t1(a.ka,a.j)),f2(a))};var f2=function(a){return a.j.ik?St:a.F?a.F.B:Kw(a.j)&&a.j.A.j&&Ws(a.j.j)?o1:St};
var h2=function(a,b,c){if(!a.isDisposed()&&!U(a.B,128)&&(c&&(a.j.$g=c),Kw(a.j))){"m"==b&&c&&Qt(c)&&(b="a");var d=g2(a);if(a.j.A.j)"i"!=b&&P0(a.C,d,b,!1);else{c=a.j;a:{var e=a.j.N;if(d.j){for(var f=0;f<e.length;f++){var k=e[f].zc,l=lr[k.video.quality];if((!d.A||"auto"!=k.video.quality)&&l<=d.j){d=e[f];break a}}d=e[e.length-1]}else d=e[0]}c.Gf=d;U1(a,b,a.j.Gf.zc)}a.gb()&&b2(a)}};
var i2=function(a){et(a.j.j,{c:a.X.o.c,cver:a.X.o.cver});var b=a.X,c=a.j,d=new vI;if(lt()||b.experiments.Ca)d.Y=!0;lt()&&(d.U=-1);b.experiments.na("use_streaming_xhr")&&(d.L=!0);b.experiments.na("use_thresholded_streaming_xhr")&&(d.P=!0);it()&&(d.A=240);tc&&(d.K=41943040);if(wG(b)||!Dv()){var e=b.experiments;d.B=8388608;d.C=524288;d.J=2097152;d.D=1048576;d.ga=1.5;d.ha=15;d.H=!Dv();d.Ca=!1;kt()&&!e.W&&(d.G=625E3);jt()&&(d.G=75E4)}mt()&&(d.B=20971520,d.C=1572864,d.G=812500,d.F=1E3);b.experiments.P&&
(d.G=window.NaN);d.Aa=b.K;d.liveChunkReadahead=Math.max(0,c.zf?c.liveChunkReadahead-1:c.liveChunkReadahead);d.La=it()&&cx(c);c=b.experiments.Bc("dash_html5_refresh_mapping_interval");e=b.experiments.Bc("dash_html5_refresh_mapping_min_buffer");c&&(d.T=c);e&&(d.fa=e);if(c=b.experiments.Bc("html5_deadzone_multiplier"))d.j*=c,d.o*=c;if(c=b.experiments.Bc("html5_request_sizing_multiplier"))d.ka=c;b.experiments.na("html5_use_average_bitrate")&&(d.$=!0,d.j*=1.3,d.o*=1.3);b.experiments.na("html5_use_average_bitrate_if_healthy")&&
(d.la=!0,d.j*=1.3,d.o*=1.3);b.experiments.na("html5_avsync_slice_rewriting")&&(d.W=!0);a.C=new J0(a.ga,d,a.j.j,a.j.A);a.C.subscribe("initsegment",a.iz,a);a.C.subscribe("videoformatchange",a.vz,a);a.C.subscribe("audioformatchange",a.uz,a);a.C.subscribe("error",a.lj,a);a.C.subscribe("seekrequired",a.EB,a);b=E(a.Y,"spacecast")||a.Fa;d=a.qm();d=d.Gb.isDefault?void 0:d;a.C.initialize(a.j.startSeconds,g2(a),b,d);a.j.probeUrl&&(a.C.U=a.j.probeUrl);if(a.Y.length||a.Fa)a.C.J=!0;a.Fa&&$1(a);a.X.experiments.Bc("html5_dropped_frames_abr")&&
(a.U=new H1(a.X,A(a.Ex,a)),a=a.U,a.j||(a.j=zi(A(a.B,a),5E3)))};var $1=function(a){var b=new I1(new ay(4),a.B);VA(a.A,b)};var W1=function(a){a.C&&(a.C.dispose(),a.C=null);a.H&&(a.H.dispose(),a.H=null);if(a.U&&a.U){var b=a.U;Bi(b.j);b.j=window.NaN;a.U=null}};
var d2=function(a){a.H||(a.C?a.C.seek(a.getCurrentTime()):i2(a),a.H=new vv(a.o.ia(),a.j.lengthSeconds,a.j.A.videoInfos[0].mimeType,a.j.A.j[0].mimeType,a.X.K),wv(a.H,A(a.C.Pu,a.C)),xv(a.H,A(function(){nJ(this,"fmt.unplayable",void 0,"msi.1")},a)));try{return yv(a.H)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),nJ(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}};
var X1=function(a){a.o&&(a.o.pause(),a2(a),a.X.experiments.na("dash_html5_release_loader")?W1(a):a.H&&(a.H.dispose(),a.H=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.K=window.NaN,C1(a.o),U(a.B,128)||Q1(a,fy(a.B)))};
var S1=function(a,b,c,d){if(a.o&&a.T.j){b=je(b||0,Uw(a.j),j2(a,!1));var e=a.j.Ea&&!U(a.B,4)&&c2(a,b);T1(a,e);a.j.startSeconds=b;a.K=b;e=a.Qa;e.j=b;e.A=!0;c?a.Xq():(U(a.B,32)||(Q1(a,hy(a.B,32)),U(a.B,8)&&a.pauseVideo(!0),a.O("beginseeking",a)),d&&(a.da||(a.da=new Td(a.Xq,d,a)),a.da.start()),k2(a,!0));a.L&&b>a.j.df&&(a.D.gh(a.L),a.L=null);b<a.Yf()&&Q1(a,iy(a.B,2));a.O("seekto",a,b)}else a.j.startSeconds=b||0};
var bea=function(a){if(!a.o)return 0;if(ax(a.j))return 1;if(bx(a.j)){if(a.J)return 1;var b=a.o,c=B1(b),b=(0<Vx(c)&&b.j.duration?c.end(c.length-1):0)-Uw(a.j);a=j2(a,!0)-Uw(a.j);return Math.max(0,Math.min(1,b/a))}a=a.o;b=a.j.duration;return window.Infinity==b?1:b?D1(a)/b:0};
var l2=function(a,b){var c={};if(b){a.A?qa(c,JA(OA(a.A,"playback"))):a.j&&(c.cpn=a.j.clientPlaybackNonce);if(a.o){var d;d=a.o;d={vct:d.getCurrentTime().toFixed(3),vd:d.j.duration.toFixed(3),vpl:Sx(d.j.played||Rx()),vbu:Sx(B1(d)),vpa:d.j.paused,vsk:d.j.seeking,ven:d.j.ended,vpr:d.j.playbackRate,vrs:d.j.readyState,vns:d.j.networkState,vec:d.getErrorCode(),vvol:d.j.volume};qa(c,d)}if(a.C){d=a.C;var e={lct:d.C.toFixed(3),lsk:d.L,lmf:d.D.j.isLocked(),lbw:NJ(d.H).toFixed(3),lhd:LJ(d.H).toFixed(3),ltd:(1E9*
MJ(d.H)).toFixed(3),laa:d.o.B?Vr(d.o.B):"",lva:d.A.B?Vr(d.A.B):"",lar:d.o.o?Vr(d.o.o):"",lvr:d.A.o?Vr(d.A.o):"",lvh:d1(d)};d.j&&!Bv(d.j)&&(e.lab=Sx(d.j.j.buffered),e.lvb=Sx(d.j.o.buffered));qa(c,e)}c.state=a.B.o.toString(16);U(a.B,128)&&(c.debug_error=a.B.j);AH(a)&&(c.preroll="1");a.j.hh&&(c.ismb=a.j.hh)}c.debug_videoId=a.j.videoId;return c};var m2=function(a,b){a.O("internalvideodatachange",b||"dataupdated",a,a.j)};
var $da=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ha.push(E1(this.o,a,this.MC,this))},a);a.X.bc&&(a.ha.push(E1(a.o,"webkitplaybacktargetavailabilitychanged",a.Qx,a)),a.ha.push(E1(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.Rx,a)))};
var n2=function(a){var b=a.getCurrentTime(),c=a.j;!Wu("pbs",a.G.j)&&cv.measure&&cv.getEntriesByName&&(cv.getEntriesByName("mark_navigation_requested")[0]?cv.measure("measure_above_the_fold","mark_navigation_requested"):cv.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.o&&a.o.j.paused&&a.G.info("paused",1);c.o?a.G.info("fmt",
c.o.id):a.G.info("fmt","-1");c.Sa&&a.G.info("yt_pre",a.bb?"2":"1");a.X.Jg&&a.G.info("yt_fs","1");a.G.info("cmt",b.toFixed(3));if(a.C){b=a.C;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.T),c.length&&(c=c[0],M0(b,"vri",c.fetchStart),M0(b,"vdns",c.domainLookupEnd),M0(b,"vreq",c.requestStart),M0(b,"fvb",c.responseStart),M0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.N),c.length&&(c=c[0],M0(b,"ari",c.fetchStart),M0(b,"adns",
c.domainLookupEnd),M0(b,"areq",c.requestStart),M0(b,"avb",c.responseStart),M0(b,"arc",c.responseEnd)));var b=b.ha,d;for(d in b)a.G.o(d,b[d])}};var cea=function(a){if(a.fa&&a.o){var b=a.o.j.seekable||Rx();b.length&&b.end(0)>a.fa&&(a.o.j.currentTime=a.fa,a.fa=window.NaN,a.Da=E1(a.o,"canplay",a.Ry,a),a.ha.push(a.Da))}};
var k2=function(a,b){if(a.o&&a.j){var c=a.getCurrentTime();if(c<Uw(a.j))S1(a,j2(a,!1),!0);else{if(a.J){var d=j2(a,!1);if(c<d-J1.o){if(a.j.zf||ax(a.j)&&a.X.experiments.na("html5_live_only_stick_to_head")){S1(a,d,!0);return}a.j.Ea&&T1(a,!1)}}if(a.C&&(d=a.C,d.j)){d.resume();if(d.L&&!Bv(d.j)){var e=d.C<=c&&c<d.C+10,f=0<=Tx(d.j.o.buffered,d.C+J0.j);e&&f&&(d.L=!1)}d.L||(d.C=c);Y0(d)}5<c&&(a.j.startSeconds=c);(d=yu())?Au(a.qa):Ai(a.qa);!ly(a.B)&&a.o.j.paused||U(a.B,128)||(e=A(a.iw,a),a.qa=0==(a.o.j.played||
Rx()).length?d?zu(e,100):xi(e,100):d?zu(e,500):xi(e,500));a.j.ij=c;!b&&a.gb()&&a.A&&(c=a.A,c.o.update(),Xw(c.j.j)&&c.j.j.Oe&&!c.L&&tA(c.o)>=c.j.j.Oe&&(c.B&&c.j.j.Oe&&(d=OA(c,"delayplay"),d.Aa=!0,d.send(),c.L=!0),SA(c)),d=c.U,d.B||!d.j.sb||d.j.ke||!d.o.lengthSeconds?d=!1:(e=Math.min(.8*d.o.lengthSeconds,180),d=tA(d.C)>=e),d&&c.U.send());a.O("progresssync",a,b)}}};
var Q1=function(a,b){var c=a.B;if(b.o!=c.o||b.j!=c.j){c=new I1(b,a.B);a.B=b;var d=!a.la.length;a.la.push(c);0>WA(c,8)&&(Ai(a.wa),T1(a,!1));0<WA(c,32)&&T1(a,!1);if(U(c.state,2)&&bx(a.j)){var e=a.getCurrentTime();a.j.lengthSeconds!=e&&(a.j.lengthSeconds=e,m2(a));k2(a,!0)}0<WA(c,2)&&a.Dl();a.A&&VA(a.A,c);if(d){for(d=0;d<a.la.length;d++){var c=a.la[d],e=a.D,f=c;if(e.F&&!e.H)if(e.B.stop(),U(f.state,2)){e.D=null;for(var f=[],k=0;k<e.o.length;k++){var l=e.o[k];l.active&&0x8000000000000>l.end&&f.push(l)}k=
Kz(e.j,0x7ffffffffffff);k=k.concat(Lz(e.j,0x7ffffffffffff));f=Qz(e,f).concat(Pz(e,k));e.C=!0;Rz(e,f);e.C=!1;e.G&&e.Jc()}else U(f.state,16)?(e.A=Sz(e),e.J.start(),e.Jc()):(e.J.stop(),U(f.j,16)?(e.A=Sz(e),null!=Nz(e.j,Math.max(e.A-2E3,0))&&e.B.start()):e.Jc());a.O("statechange",c)}a.la.length=0}}};var o2=function(a){U(a.B,2)||U(a.B,32)||(a.K=window.NaN)};var T1=function(a,b){a.j.Ea&&a.J!=b&&(a.J=b,a.O("liveviewshift",b))};var aea=function(a,b){dea(a,b);a.X.Ve?xi(A(function(){y1(this.o)},a),0):y1(a.o)};
var dea=function(a,b){a.G.o("vta");w1(a.o,b);if(Rw(a.j)&&Rw(a.j)&&!a.F&&a.o){var c=a.j.o.mimeType,d=a.j.L;if(d){var e=a.o.ia();a.F=new n1(e,d);a.F.subscribe("newsession",a.Gz,a);a.F.subscribe("licenseerror",a.kz,a);a.F.subscribe("qualitychange",a.lz,a);a.F.subscribe("heartbeatparams",a.LC,a);var e=a.F,f=a.j.oauthToken;e.G=f;e.O("oauthtoken",f);H(a,a.F);a.o.canPlayType(c,d.j)}else nJ(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.H&&Du();Ai(a.wa);a.j.Ae||(a.wa=xi(A(a.qz,a),15E3))};
var a2=function(a){a.F&&(a.F.dispose(),a.F=null)};var j2=function(a,b){if(!a.o)return 0;if(!a.j.Ea){var c=a.j;return c.j&&!(0,window.isNaN)(ct(c.j))?ct(c.j):c.lengthSeconds}if(b&&(a.J||ax(a.j)))return a.getCurrentTime();if(a.C)return c=b1(a.C),Math.max(Math.max(c,Uw(a.j)),a.getCurrentTime())||0;c=a.o.j.seekable||Rx();return(1>c.length?window.NaN:c.end(c.length-1))||0};var c2=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=j2(a,!1)-J1.j};
var p2=function(a,b){this.j=a;this.o=fa(b)?b:null;if(E(q2,this.j)){if(!fa(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");};var r2=function(a){var b=a.o;if(null!==b)return b;switch(a.j){case 1:return 0;case 3:return-1;default:return-100}};var eea=function(a,b){var c=a.j,d=b.j;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.o,f=b.o;return e!=f?null===e?1:null===f?-1:e-f:c-d};
var s2=function(a,b){return"9t_D9IIh_ZI"==b.La||t2(a,["9418752","9418753"])};var u2=function(a,b){return E(a.experiments.experimentIds,b)};var t2=function(a,b){return Gh(b,pa(E,a.experiments.experimentIds))};var v2=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};var w2=function(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=La(c||"",50),b.error_message=d)}};
var x2=function(a,b){if(a){var c=qU(a).reverse();b.ad_id=rb(c,pU(a)).join(",");c=sU(a).reverse();b.ad_sys=rb(c,jU(a)).join(",");c=tU(a);null!=c&&(b.aqi=c)}};var y2=function(a,b){if(a[b])return v2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return v2(a[d]);return!1};var z2=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 A2=function(a,b,c){var d=new mL;d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.T;d.showContentThumbnail=a.showContentThumbnail;d.Ef={};c.ca&&(d.Ef.ctrl=c.ca);c.da&&(d.Ef.ytr=c.da);c.ha&&(d.Ef.ytrcc=c.ha);c.isMdxPlayback&&(d.Ef.mdx="1");a.Ca?(d.Pj=!0,d.pv=!0,d.showContentThumbnail=!1,d.Wl=!0,d.Xl=!0,d.useShareButton=!1):a.B&&(d.Pj=!0);return d};
var B2=function(a){var b=new QW;b.D=a.o.Fa;var c=a.app.D.Ka();b.qf=c.width;b.pf=c.height;b.Ub=c.width;b.Tb=100;b.En=LG(a.V());b.F=a.V().experiments.experimentIds;b.nd=A(a.V().experiments.na,a.V().experiments);b.wk=A(a.V().experiments.Bc,a.V().experiments);b.xk=A(a.V().experiments.J,a.V().experiments);b.En?(a.V(),c=IA()):c=-1;c&&(b.G=c);a.o.tagForChildDirected&&(b.ji=!0);if(u2(a.V(),"9415521")||a.o.sb)b.ki=!0;c=C2(a);b.wb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:fea(a),VIS:gea(a)};LG(a.V())||
(b.wb.LACT="-1");b.afcRmFallback=a.o.H;u2(a.V(),"9417581")&&(b.C="yt_"+C2(a).videoId);return b};var fea=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;a.V();return IA().toString()}}};var gea=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:bH(a.V()).toString()}}};var D2=function(a,b,c,d){this.o=this.A="";this.B=a;this.D=b;this.j=c;this.C=d};
var E2=function(a){var b={};b.l_ns=a.D;b.l_state=a.C;b.break_type=a.B.j;b.sst=r2(a.B);b.sidx=0;a.A&&(b.at=a.A);a.o&&(b.ad_id=a.o);return b};var F2=function(){var a=t("yt.www.watch.ads.loadAfc");ha(a)?a():G2=!0};var H2=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 I2=function(){var a=t("window.google_show_companion_ad"),b;b=t("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=Boolean(b&&b.length)):b=!1;b?a():J2=!0};var K2=function(){var a=t("yt.www.watch.ads.setCompanion");a&&a()};var hea=function(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)};var L2=function(a,b){this.o=a;this.j=b};var M2=function(a){return a.j-a.o};var N2=function(a,b){return a.o+b*M2(a)};var O2=function(a,b,c){return M2(a)?je((b-a.o)/M2(a),0,1):null!=c?c:window.Infinity};
var P2=function(){this.o=this.position=this.B=this.j=this.C=this.A=this.width=window.NaN};
var Q2=function(a,b,c,d,e){var f=b.No/b.rows,k=Math.min(c/(b.Qo/b.Eb),d/f),l=b.Qo*k,m=b.No*k,l=Math.floor(l/b.Eb)*b.Eb,m=Math.floor(m/b.rows)*b.rows,p=l/b.Eb,u=m/b.rows,v=-b.fv*p,z=-b.row*u;e&&45>=f&&(u-=1/k);a=a.style;a.width=p+"px";a.height=u+"px";e||(d=(d-u)/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+") "+v+"px "+z+"px/"+l+"px "+m+"px";if(e)return new qe(p,u)};
var iea=function(){this.A=!1;this.o=0;this.j=""};var R2=function(a,b,c,d){Oj.call(this);this.j=a;this.o=d;this.B=null;this.adType=c;this.adSystem=b};var jea=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=w;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0};var kea=function(a){this.j=a};
var lea=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 S2=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 mea=function(a,b){this.C=null;this.A=window.NaN;this.o=null;this.j=a;this.B=b};var T2=function(a,b,c){a.j.O("AD_LOGGING_EVENT",b,c)};var U2=function(a,b,c){V2(a);var d=W2(a);c&&qa(d,c);d.ad_error=b;T2(a,7,d)};
var W2=function(a){var b={},c=a.j.B,d=a.j.C.Yf(),e=X2(a.j);x2(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Kg(e),b.ad_dom=c,a.B.o.B&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.o?e.o.ff():null)&&(b.ad_cpn=e);b.format=a.j.Zc();b.at=a.j.kf();b.ad_mt=Math.round(1E3*Math.max(nea(a.j),0));return b};var V2=function(a){a.C||(a.C="InstreamAdDisplay ("+a.j.Zc()+")")};var Y2=function(a,b){G.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.j=window.NaN};
var Z2=function(a,b,c,d,e,f){R2.call(this,b,a,2,c);this.K=!1;this.G=this.U=this.L=null;this.j.subscribe("control_toggle_play_pause",this.Kr,this);this.j.subscribe("control_play",this.xl,this);this.j.subscribe("control_pause",this.wl,this);this.D=new mea(this,this.j);this.A=new rz(this);this.C=$2(b);this.C.subscribe("statechange",this.Wc,this);this.C.subscribe("internalAbandon",this.Ro,this);this.C.subscribe("internalvideodatachange",this.Jr,this);this.F=this.H=!1;this.T=d;this.N=!!e;this.W=!!f;this.J=
new Y2(1E3*Z2.j,A(this.vj,this))};var a3=function(a,b){var c=a.j.V();if(a.j.o.T&&"3"==c.A){var c=a.j.app.D,d=c.app.V();yG(d);"3"==d.A&&(c.o.controls=b)}};var b3=function(a){var b=new iea;b.A=a.F;b.o=K();a.B&&a.B.clientPlaybackNonce&&(b.j=a.B.clientPlaybackNonce);X1($2(a.j));c3(a.j,0,b);d3(a.j,0);a.O("adEnd",a);a3(a,!0)};var e3=function(a,b){a.C.Kf();c3(a.j,0);a.O("adError",b)};var f3=function(a){return a.B&&a.B.o?a.B.o.mimeType:null};var X2=function(a){return a.B&&a.B.Gf?nv(a.B.Gf.o()):null};
var nea=function(a){return a.C?a.C.getCurrentTime():0};var oea=function(a,b){this.j=a;this.C=b;this.j.Zc();this.o=this.B=0;this.A=null};var g3=function(a,b,c){a.j.O("AD_LOGGING_EVENT",b,c)};var h3=function(a){var b={};x2(a.j.getCurrentAd(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c;c=a.C.Ia()?2:a.C.app.la?1:0;b.ad_ps=c;b.format=a.j.Zc();b.at=a.j.kf();return b};var i3=function(a,b,c,d){R2.call(this,b,a,1,c);this.A=null;this.F=!1;this.H=null;this.D=new oea(this,b);this.C=new rz(this);this.G=!!d};
var j3=function(a,b){a.H!=b&&(a.H=b)};var k3=function(a,b,c,d){G.call(this);this.L=null;this.U=a;this.o=b.Pa;this.G=b;this.J=b.getId();this.j=c;this.D=d;this.A=new D2(this.o,this.fg(),c,d);this.C=null;this.N=new zm(this);this.B=new zm(this);this.P=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};var l3=function(a){var b=new p2(2,k3.o);a.o=b;a.A.B=b};var m3=function(a,b){a.L=b;var c=b.Zc();a.A.A=c};var n3=function(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b};
var o3=function(a){a=r2(a.o);return 0==a||-1==a?a:1E3*a};var p3=function(a){var b=a.j.V();u2(b,"9417098")&&(a=a.A,b=E2(a),b.format="2_3",b.at="2_3",b.trsp="1",q3(a.j,3,b));I2()};var r3=function(a){var b=a.G,c=a.o;b.j=a.L;b.Pa=c;H(b,b.j);0==b.D&&(a=b.j.kf(),b.A.da.at=a);b.j instanceof Z2?b.o=!0:b.j instanceof s3?b.isVisible=!1:b.j instanceof t3?b.isVisible=!1:b.j instanceof u3&&(b.isVisible=!1);b.B="loaded";v3(b)};var pea=function(a){this.j=a};
var s3=function(a){R2.call(this,a,2,3,null);this.A=this.C=0};var w3=function(a){a.C&&(Bi(a.C),a.A=0)};var x3=function(a,b,c){k3.call(this,2,a,b,c);this.F=new pea(this.j.o);H2()};var y3=function(a,b,c){this.o=this.D="";this.G=null;this.B=!1;this.C=this.A="";a&&(this.D=a,this.B=b.qb,this.F=c,b=this.D,c=b.indexOf(";sz="),a=jj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{Wu:b[0],qB:b[1],uB:a})&&(this.A=a.Wu,this.C=a.qB,this.G=a.uB)};var z3=function(a){this.o=a?a:""};
var u3=function(a,b,c,d){i3.call(this,1,a,b,d);this.J=c};var A3=function(a,b,c){k3.call(this,1,a,b,c);a=this.j.o;this.T=a.da?new z3(a.adTag):new y3(a.adTag,a,this.J)};var B3=function(a,b,c,d){A3.call(this,a,b,c|d);this.K=c;this.H=d;this.F=null;H2()};var C3=function(a,b){var c=b.getCurrentAd(),d=sU(c);d.unshift(jU(c));for(c=0;c<d.length;++c){var e=qea[d[c].toUpperCase()];if(e){a.F=e;return}}a.F=0};
var D3=function(a,b){this.C=[];this.L=a;this.K=b||null;this.B=this.j=!1;this.A=void 0;this.H=this.P=this.F=!1;this.D=0;this.o=null;this.G=0};var E3=function(a,b,c){a.j=!0;a.A=c;a.B=!b;F3(a)};var G3=function(a){if(a.j){if(!a.H)throw new H3;a.H=!1}};var I3=function(a,b,c){J3(a,b,null,c)};var J3=function(a,b,c,d){a.C.push([b,c,d]);a.j&&F3(a)};var K3=function(a){return Gh(a.C,function(a){return ha(a[1])})};
var F3=function(a){if(a.D&&a.j&&K3(a)){var b=a.D,c=L3[b];c&&(r.clearTimeout(c.fi),delete L3[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),f=e[0],k=e[1],e=e[2];if(f=a.B?k:f)try{var l=f.call(e||a.K,b);n(l)&&(a.B=a.B&&(l==b||l instanceof Error),a.A=b=l);if(wd(b)||"function"===typeof r.Promise&&b instanceof r.Promise)d=!0,a.F=!0}catch(m){b=m,a.B=!0,K3(a)||(c=!0)}}a.A=b;d&&(l=A(a.J,a,!0),d=A(a.J,a,!1),b instanceof D3?(J3(b,l,d),b.P=!0):b.then(l,d));c&&(b=
new M3(b),L3[b.fi]=b,a.D=b.fi)};var H3=function(){sa.call(this)};var N3=function(){sa.call(this)};var M3=function(a){this.fi=r.setTimeout(A(this.o,this),0);this.j=a};var O3=function(a,b){var c=b.o;this.F=c.la;var d=0,c=c.W.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);k3.call(this,2,a,b,d)};var P3=function(a,b){R2.call(this,a,14,14,b)};var Q3=function(a,b,c){k3.call(this,14,a,b,c)};var R3=function(a,b,c){k3.call(this,14,a,b,c)};
var rea=function(a,b,c,d,e){this.B=a;this.A=b;this.j=c;this.X=this.B.V();this.C=d;this.F=C2(this.B).lengthSeconds;this.D=e;this.o="html5";S3(this)&&"embedded"==this.X.Ba?this.o="html5_embed":uG||Bw?this.o="html5_ios":ht("android")?this.o="html5_android":ot()?this.o="html5_wp":jt()?this.o="html5_ps3":"leanback"==this.X.Ba?(a=(Xb(window,"environment","brand")||"").toLowerCase(),b=(Xb(window,"environment","model")||"").toLowerCase(),this.o="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
nt()?this.o="html5_wii":S3(this)&&(this.o="html5_desktop")};var T3=function(a){return U3(a.A)?"preroll":3==a.A.Pa.j?"postroll":"midroll"};var V3=function(a){return(a=a.B.A)?Gh(a.A,function(a){return W3(a)||3==a.Pa.j}):!1};var S3=function(a){return!V3(a)||s2(a.X,a.j)};var t3=function(a,b){i3.call(this,4,a,b)};var X3=function(a,b,c){k3.call(this,4,a,b,c);var d=this.j.o;this.F=D(d.Sa);var e=C2(this.j)&&C2(this.j).spacecastModule;this.H=new rea(b,a,d,c,!!e)};
var Y3=function(a,b,c){this.A=a;this.j=b;this.o=c||0};var sea=function(a){return 0<((a.j|a.o)&3)};var Z3=function(a,b,c,d,e){Oj.call(this);this.G=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.H=!1;this.D=b;this.A=a;this.Pa=c;this.F=d;this.C=this.j=null;this.J=!!e};var $3=function(a){return U3(a)?a4(a)&&b4(a)?-0x8000000000000:0:fa(a.Pa.o)?1E3*r2(a.Pa):0x8000000000000};
var tea=function(a){return U3(a)||a.A.j&&1E3*a.A.j.getCurrentTime()>=$3(a)?!1:Fg(a.F,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};var a4=function(a){return"loaded"==a.B||"error"==a.B};var U3=function(a){return 1==a.Pa.j};var b4=function(a){if(!a4(a))throw Error("Preroll status is undefined before ad load.");return U3(a)&&a.o};var W3=function(a){return 2==a.Pa.j};
var c4=function(a){a.B="loading";U3(a)&&!Gh(a.F,sea)&&nq(a.A);if(a.J)a.B="loaded",a.o=!0,v3(a);else{var b=a.F.shift();b?(U3(a)&&d4(a.A,"nl"),b=b.create(a,a.A),H(a,b),b.load()):(q3(a.A,2,e4(a,{})),f4(a,!1),a.B="error",v3(a))}};var g4=function(a){a.j&&(a.j.unsubscribe("adEnd",a.Vo,a),a.j.unsubscribe("adError",a.Cr,a),a.j.unsubscribe("AD_LOGGING_EVENT",a.np,a),a.j.unsubscribe("select",a.Br,a))};var v3=function(a){a.O("adBreakComplete",a)};
var f4=function(a,b){a.C&&(a.C.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)};var e4=function(a,b){b.break_type=a.Pa.j;b.sst=r2(a.Pa);b.sidx=0;return b};var h4=function(a){var b=0;a.K&&(b|=1);a.J&&(b|=2);var c=0;a.C&&(a.F&&(c=4),b||a.U||(b=c,c=0));a=new vg;a.set(3,b);a.set(4,c);return a};
var i4=function(a,b){var c=[];if(a.ca)return c.push("pla"==(a.W||"").toLowerCase()?new Y3(8,16):new Y3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.U&&c.push(new Y3(7,16)),c;if(a.L){var d=0;if(a.A||a.D)d|=1;a.P&&(d|=4);a.N&&(d|=8);c.push(new Y3(5,d))}d=0;a.G&&(a.A&&(d|=1),a.D&&(d|=2),a.P&&a.C&&(d|=4),a.N&&a.C&&(d|=8));var e=h4(a),f=e.get(3);d&&f&&uea(a,b)?c.push(new Y3(3,d,f)):(d&&c.push(new Y3(2,d)),f&&c.push(new Y3(1,f)));a.independentBreakOffsets||f&4||!a.U||c.push(new Y3(7,16));(d=e.get(4))&&
c.push(new Y3(1,d));return c};var j4=function(a){this.j=a};var k4=function(a){var b=[];F(vea(a),function(a,d){var e=this.j,f;f=i4(this.j.o,a.j);e=new Z3(e,d,a,f);b.push(e)},a);return b};
var vea=function(a){var b=a.j.o,c=[];if(b.L&&!s2(a.j.V(),b))c=l4;else if(b.ha){var d=b.ha.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new p2(3):0<e?new p2(2,e):new p2(1);c.push(e)}}else c=l4;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new p2(5,Ya(b[a])));Bb(c,eea);return c};
var wea=function(a,b){this.X=a;this.Ca=this.X.isMobile;this.B="leanback"==this.X.Ba;this.j=this.Ca||this.B;this.T=!this.B&&!yG(a);this.A=v2(b.instream);this.Ha=1==b.livestream;this.D=v2(b.trueview);this.$=v2(b.aftv);this.ha=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ga=b.cafe_experiment_id;this.adTag=b.ad_tag;this.bb=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.Na=xea(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Da=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls;this.Qa=b.cid;this.La=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.Fa=(0,window.parseInt)(b.forced_skip_offset,10);this.W=b.force_ad_type;this.la=b.force_ad_url;this.Sa=b.freewheel_ad_tag;this.gender=$b(yea,function(a){return a==b.ad_gender});this.ka=b.dbp;this.H=v2(b.afc_rm_fallback);this.qb=!!b.mpu;this.F=v2(b.afv)&&!this.j;this.J=this.$&&this.D;this.K=this.$&&this.A&&!v2(b.no_afv_instream);this.G=v2(b.dclk);this.da=v2(b.gpt_migration);this.ca=v2(b.forced_ad)&&!this.j;this.L=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.rb=!!b.fqsf;this.P=v2(b.invideo)&&
!this.j;this.N=v2(b.mpu)&&!this.j;E(this.Na,"yt_mabv");this.U=!!b.pla;this.Ta=v2(b.shortform);this.C=v2(b.sffb);this.wa=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.o=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.o)&&(this.o=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||
0;this.Ua=b.pla_ad_tag;"boolean"==typeof b.show_content_thumbnail&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=v2(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Y=this.$&&this.C&&!this.F;this.qa=this.F||this.Y;this.Va=(0,window.parseInt)(b.ad_device,10);this.Aa=b.tpas_video_id;this.fa=b.tpas_partner_id;this.vmap=b.vmap;this.zb=this.X.zb;this.sb=b.post_ad_requests;this.showContentThumbnail=
!0};var uea=function(a,b){if(C(D(a.dynamicAllocationAdTag)))return!1;var c=(a.A||a.D)&&a.G;a.C&&a.G&&(c=c||a.P||a.N);if(!c)return!1;c=a.J||a.K;if(!(c||a.C&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.da?25:102);window.document.referrer&&(d+=wa("ref="+wa(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};var xea=function(a){if(C(D(a)))return[];a=(new O(a)).j.get("channel");return null!=a?a.split("+"):[]};
var zea=function(a){this.o=C2(a);this.j=a.V()};var m4=function(a,b,c){var d=n4,d=null!=d?d:n4;if(t2(a.j,d)){var e=a.j.baseYtUrl+"player_204";c=c||{};c.event="cdp";c["var"]=b;c.sdkv="h.3.0.0";c.cpn=a.o.clientPlaybackNonce;c.exp=Zd(d,gd(pa(u2,a.j),pa(E,n4))).join(",");a=oj(e,c);Yp(a)}};
var o4=function(a,b){G.call(this);this.j=a;this.J=b;this.F=a.j.getVideoData();this.A=[];this.C=this.D=this.G=this.B=this.o=0;this.H=!1;var c=a.V().experiments;this.K=c.na("enable_dynamic_ad_break")&&!!this.F.lengthSeconds&&600<this.F.lengthSeconds;this.L=c.Bc("dynamic_ad_break_pause_threshold_sec")||5;this.N=c.Bc("dynamic_ad_break_seek_threshold_sec")||120;this.K&&this.j.app.subscribe("applicationplayerstatechange",this.Wc,this)};
var p4=function(a){return(a.j.B?a.H:!!a.j.A&&0==a.j.A.A.length)&&1==a.j.getPresentingPlayerType()};var q4=function(a){a.B&&Ai(a.B);a.B=0;a.o=0};var r4=function(a,b){var c=null!=nj(a.j.V().G).debugjs,d=a.F.videoId,e=a.F.eventId,f=a.o,k;k=a.A.length?a.A[a.A.length-1]:Math.max(a.J.o(),a.D);k=K()/1E3-k-a.C;c=oj("/gen_204?"+Rg({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:K()/1E3,dab:a.A,paet:Math.max(a.J.o(),a.D),debug:c}),{});Yp(c)};
var s4=function(a){G.call(this);this.j=a;this.o=window.NaN;this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.Bq()};var t4=function(a,b){a.C[b]&&(CH(a.j.j,[a.C[b]],void 0),delete a.C[b])};var v4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.o)||Ai(a.o),c=K()+c,a.o=0==d?Aq(A(a.Nr,a,b,c,100),0):Aq(A(a.Mr,a,b,c,100),0))};
var w4=function(a,b,c){var d=a.j.V();a=C2(a.j);b.volume=c*(d.useMediaVolume?rw.j:a.Gh)};var x4=function(a){s4.call(this,a)};var y4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;F(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});return 1E3*b};
var z4=function(a){G.call(this);this.j=a;this.o=window.NaN;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.H=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.J=1E3*this.j.j.getVideoData().lengthSeconds;this.F=this.B+this.H;this.kn()};var A4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.J};var Aea=function(a){a=a.getAttribute("breakType");return!!a&&Gh(a.split(","),function(a){a=Ta(a);return"linear"==a})};
var Bea=function(a,b){if(!A4(a,b))return null;var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=(0,window.parseFloat)(Pa(b/1E3,2,d)),f=Math.floor(e/60),k=Math.floor(f/60),f=f%60,d=Pa(e%60,2,d);c=d=k||c?k+":"+Pa(f,2)+":"+d:f+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c};var Cea=function(a,b){var c=Math.max(Math.abs(a.B),Math.abs(a.F));F(b,A(function(a){var e=Gh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=Dea(this,a);if(e||!f)return!1;this.A[f]=a},a));return 0<Sb(a.A)};
var Dea=function(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.G;return A4(a,b)&&A4(a,c)&&A4(a,d)&&A4(a,e)?c:null};var B4=function(a,b,c,d){0>=c||(a.o&&Ai(a.o),c=K()+c,a.o=0==d?Aq(A(a.Tr,a,b,c,100),0):Aq(A(a.Sr,a,b,c,100),0))};var C4=function(a,b,c){var d=a.j.V();a=C2(a.j);b.volume=c*(d.useMediaVolume?rw.j:a.Gh)};var D4=function(a){z4.call(this,a)};var E4=function(a,b){var c=a.o,c=c.applyFadeOnMidrolls&&(c.A||c.D);return a.B?c&&!b?new z4(a):new D4(a):c&&!b?new s4(a):new x4(a)};
var F4=function(a,b,c){G.call(this);this.j=a;this.F=b;this.D=c;this.C=this.A=-1;this.D&&0<this.j.o.o&&this.j.subscribe("endseeking",this.B,this)};var Eea=function(a,b){G4(a);0<b&&(a.C=xi(A(a.B,a),1E3*b))};var G4=function(a){-1!=a.C&&(Ai(a.C),a.C=-1)};var H4=function(a,b){if(!a.D||!W3(b)&&3!=b.Pa.j)return!1;var c=a.j.o.o;if(0>=c||0>=a.A)return!1;var d=K()/1E3,e=I4(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.A<=c};var I4=function(a,b){return 3==b.Pa.j?a.j.j.getVideoData().lengthSeconds:r2(b.Pa)};
var J4=function(a,b){G.call(this);this.o=null;this.N=[];this.K=0;this.A=b;this.H=[];this.B={};this.F={};this.j=a;var c=!a.o.Ha&&Gh(this.A,function(a){return W3(a)||3==a.Pa.j});this.C=new F4(this.j,this,c);this.D=E4(this.j);this.da=new o4(this.j,this.C);this.W=Gh(this.A,function(a){return U3(a)})};var Fea=function(a){a.H.length||(a.H=Zd(a.A,function(a){return"unloaded"==a.B}),0==a.H.length?nq(a.j):(a.W||nq(a.j),K4(a)))};
var K4=function(a){if(a.H.length){var b=a.H.shift();b.subscribe("adBreakComplete",a.Df,a);c4(b)}};var Gea=function(a,b){function c(a){return a&&5!=a.Pa.j}var d=jb(a.A,b),e=vb(a.A,0,d),d=vb(a.A,d+1);return{previous:eb(e,c),next:eb(d,c)}};var L4=function(a,b,c){var d=$3(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=r2(b.Pa)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.D.xq(b,d);c=a.D.wq(b,c);c=new fq(d,c,e);a.F[b.getId()]=c;a.j.cb([c]);a.D.hn(b)}};
var M4=function(a,b){var c=b.getId();a.F[c]&&(t4(a.D,c),CH(a.j.j,[a.F[c]],void 0),delete a.F[c])};
var N4=function(a,b){if(n(b)){var c=a.wj(b);if(c)if(a.o==c&&!c.o&&c.isVisible)c.show();else{if(a.o){if(5==c.Pa.j){a.o.o?a.N.push(b):c.show();return}a.ze(a.o)}if(H4(a.C,c))a.o=null,c=a.F[c.getId()],c.visible||(c.visible=!0,a.j.j.cb([c],1)),a.j.V()&&(u2(a.j.V(),"9412857")||u2(a.j.V(),"9412859"))&&a.hq();else{5!=c.Pa.j&&(a.o=c);c.subscribe("adBreakComplete",a.ml,a);if(c.o&&(O4(a.j),null!=a.j.C)){var d=a.C.o(),d=0<d?Math.floor(K()/1E3-d):0;m4(a.j.C,"show_instream_ads",{tfla:d})}a.D.Or(c);c.show()}}}};
var P4=function(a,b,c){J4.call(this,a,b);this.J=[];this.L=[];this.G=[];this.T=c;this.P=0;this.U=a.o.o;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],tea(c)){var d=new Z3(c.A,c.D,c.Pa,c.F,!0);b[a]=d;this.J.push(c)}this.W||this.Ff()};var Q4=function(a){R4(a);a.P=xi(A(a.Ff,a),1E3*(a.U-10))};var R4=function(a){a.P&&Ai(a.P);a.P=0};var S4=function(a,b){J4.call(this,a,b);this.U=a;this.T=!0;this.J=[];this.fa=1;this.ca=null;this.L=0};
var T4=function(a){if(null==a.o&&0<a.J.length){var b=a.J[0];b.isVisible?(a.T=a.G.J,a.$=Math.ceil(K()/1E3),b.subscribe("adBreakComplete",a.P,a),a.o=b,b.show()):a.P()}else null!=a.o&&a.L++};
var Hea=function(a,b){this.H=a;this.o=b;this.G=K();this.D=0;this.j=a.o;this.C={};this.F=new kea(a);var c=[];this.j.L&&this.j.A&&c.push("4_2");this.j.G&&(this.j.A&&c.push("1_2"),this.j.D&&c.push("1_2_1"),this.j.P&&c.push("1_1"),this.j.N&&c.push("1_3"));this.j.J&&c.push("2_2_1");this.j.K&&c.push("2_2");this.j.F&&c.push("2_1");(this.j.qa||this.j.H)&&c.push("2_3");this.j.U&&c.push("14_14");this.B=c.join(",");this.A="";this.C.allowed=this.B;(c=this.j.excludedAds)&&(this.C.ex_ads=c)};
var U4=function(a,b,c){G.call(this);this.o=a;this.A=b;this.G=c;this.B=this.D=-1;this.j=V4(this.A.Md());a=this.A.Md();a.length&&(a=a[a.length-1],-1==a&&this.o.cb([this.j[a]]));0<this.o.o.o&&this.o.subscribe("endseeking",this.C,this)};var Iea=function(a,b){W4(a);0<b&&(a.B=xi(A(a.C,a),1E3*b))};var W4=function(a){-1!=a.B&&(Ai(a.B),a.B=-1)};
var V4=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 fq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new fq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};var X4=function(a){0<a.o.o.o&&(a.D=K()/1E3,a.C())};
var Y4=function(a){G.call(this);this.H=this.A=this.B=this.F=this.o=null;this.K=this.J=!1;this.j=a;this.G=null;this.P={};this.N=new zm(this);this.D=new zm(this);this.L=this.C=null};
var Jea=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);F(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=y4(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 Kea=function(a,b){var c=mz(b),d=c.childNodes[0];if(!d)return b;var e=eb(d.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(e){var f=eb(e.childNodes,function(a){return"Extensions"==a.localName}),k=eb(f?f.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")}),f=f.removeChild(k),l=e,m=1;F(f?f.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=Jea(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});d.removeChild(e)}f=a.C.Vp(d);f||(Mb(a.C),a.C=E4(a.j,!0));
return e||f?pz(c):b};var Lea=function(a){var b=A2(a.j.o,a.j.V(),C2(a.j));b.qv=!0;b.qn=!1;b.Tp=10;b.yl=a.C.Pn();return b};var Mea=function(a,b){var c=ZT(b);if(y2(c,k3.j)&&a.j.o.H)return a.B=new s3(a.j),a.B.show(),!1;if(y2(c,"blockAllAds"))return a.o.sendImpressionUrls(),a.B=new u3(a.j,a.o,1,!0),!1;if(y2(c,"hideMaster"))return a.B=new u3(a.j,a.o,0,!0),!1;a.B=new i3(Z4(b),a.j,a.o,!0);a.B.show();a.J=!1;return!0};
var $4=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.j.o;!c.j&&c.qa&&(a.B=new s3(a.j),a.B.show())}};var a5=function(a){a.B&&(a.B.dispose(),a.B=null)};var Z4=function(a){var b=sU(a);a=0<b.length?b.pop():jU(a);a=Nea[a.toUpperCase()];return null!=a?a:0};var b5=function(a){a.K||(nq(a.j),a.K=!0)};
var c5=function(a){F_.call(this,a);this.G=this.ra="ad";this.o=this.A=this.K=null;this.W=this.Y=!1;this.B=this.N=null;jK.j=!0;jK.B=!1;jK.F=!0;jK.D=0;this.L=null;this.ha={};this.da={at:"0"};this.J=new Qq(this.j);this.J.j(this.j.ua());this.ca=this.D=null;this.T=-1;this.C=null;this.$=[]};var C2=function(a){return d5(a.app)};
var q3=function(a,b,c){a=a.K;c=c||{};var d=(K()-a.G)/1E3;c.art=d;d=a.H.V();d.ha&&(c.feature=d.Ha);c.ad_flags=a.j.adFlags;(d=a.j.Qa)&&(c.cid=d);c.mt=a.o.getCurrentTime();(d=IA())&&(c.lact=d);(d=a.o.ih())&&(c.len=d);a.j.rb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.F;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?S2(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.j.o.Va;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":E(q2,Ya(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=lea(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=S2(d);
break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=$2(b.j);f=C2(b.j);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.j.A,e.mt=null!=c&&null!=c.o?1E3*r2(c.o.Pa):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.j.V();e.ei=f.eventId;e.lact=IA();e.vol=Math.round(b.j.app.Wa.Bb());e.vis=bH(c);c=e5(b.j);e.p_w=c.width;e.p_h=c.height;e.rt=K();if(c=(c=M1(k))&&Ve(c)===window.document?Yf(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Cg(e);if("undefined"==
typeof k)throw Error("Keys are undefined");c=new fh(null,0,void 0);e=Bg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?nh(c,a,d):th(c,a,d);b=b.j.V().baseYtUrl+"api/stats/ads";b=new O(b);dh(b,c);Yp(b.toString())}};var f5=function(a,b,c){c=c||{};c.ad_error=b;q3(a,7,c)};var g5=function(a){if(!a.Y){var b=a.V().baseYtUrl;Yp(b+"mac_204?action_fcts=1");a.Y=!0}};var h5=function(a){return a.A instanceof S4?a.A:null};
var i5=function(a){a=a.J;if(a.o.V().H)a=AE(a.o).o;else{if(!a.B){var b;b=a.o.app;if(b.X.H){var c=Uf(b.A),d=gg(b.A);b.fa=new se(c.x,c.y,d.width,d.height);Z1(b.C);$x(b.A,1);Uq(b.A);b=b.A}else b=j5.getTag(void 0,void 0);a.B=b;Xd(a.B,["video-stream","ad-video"])}a=a.B}return a};var $2=function(a){if(!a.D){var b=ec(a.V().P);b.autoplay="1";b.eventid=C2(a).eventId;b.content_v=C2(a).videoId;b=new pG(b);b.Ba="adunit";var c=i5(a);b.sc=c;a.D=new J1(b,2,new G_(b,""),a.app.D,A(a.app.O,a.app))}return a.D};
var e5=function(a){return a.o.B?(a=a.app.D.Ka(),new se(0,0,a.width,a.height)):ig(a.ua())};var k5=function(a,b){d4(a,"bd");var c;c=a.o;var d=c.midrollPrefetchSize;c=c.Ha?new S4(a,b):0<d?new P4(a,b,d):new J4(a,b);a.A=c;Fea(a.A)};var O4=function(a){a.W=!0;a.O("command_redirect_controls",a,["play_pause"],void 0);a.B||a.pauseVideo()};var l5=function(a){Sq(a.J);a.W=!1;rq(a)};
var d3=function(a,b){switch(b){case 1:a.T=1;a.O("publish_external_event","onAdStart");break;case 0:a.T=0,a.O("publish_external_event","onAdEnd")}};var c3=function(a,b,c,d){d&&a.O("publish_external_event","onAdInfoChange",d);a.O("publish_external_event","onAdStateChange",b,i5(a),c)};var d4=function(a,b){var c=b;"nl"==b&&(c=a.K,c.D++,c=c.D.toString());a.ha[c]=K();"bs"!=c&&"fb"!=c||oq(a,a.ha,a.da)};var m5=function(a){return Boolean(a.o.C&&a.A&&1<a.A.A.length)};
var n5=function(a,b,c){G.call(this);this.o=a;a.subscribe("onVolumeChange",this.mp,this);this.J=A(this.wz,this);a.j.addEventListener("onCaptionsTrackListChanged",this.J);this.C=!1;this.j=c;c.subscribe("proxyStateChange",this.Bp,this);c.subscribe("remotePlayerChange",this.sl,this);c.subscribe("remoteQueueChange",this.tl,this);this.L=new ay;this.G=this.F=window.NaN;this.K=0;this.A={};this.D=null;this.H=new xm(this.XB,1E3,this);H(this,this.H);this.P=0;this.B=!1;a=this.o.j.ub("captions","track");ac(a)||
o5(this,a);this.tl();this.sl()};var p5=function(a,b){var c=a.o,d=a.o.j.getVideoData().lengthSeconds;c.K=b||0;DH(c.j,b,d)};var q5=function(a){a.B||(p5(a,0),r5(a),s5(a,new ay));uy(a.o.app.Wa.V())||(a.B=!0)};var o5=function(a,b){if(t5(a)&&!a.C){if(b){var c={style:a.o.j.ub("captions","displaySettings")};gc(c,b);a.j.Jl(u5(a),c)}else a.j.Jl(u5(a),null);a.A=vo(a.j).A}};var v5=function(a){a.j.pause();var b=vo(a.j);p5(a,oo(b));r5(a);s5(a,new ay(4))};var w5=function(a){a.j.play();x5(a);s5(a,new ay(8))};
var y5=function(a,b){var c=a.o.j.gc();c?wo(a.j,u5(a),b,c.j,a.o.j.getVideoData().playlistId):wo(a.j,u5(a),b);s5(a,new ay(1))};var z5=function(a,b){if(b){var c=a.o.j.ub("captions","tracklist",{xo:1});c&&c.length?a.o.j.de("captions","track",b):(a.o.j.oj("captions"),a.C=!0)}else a.o.j.de("captions","track",{})};var t5=function(a){return mo(vo(a.j))==u5(a)};var u5=function(a){return a.o.j.getVideoData().videoId};
var x5=function(a){r5(a);if(!a.j.isDisposed()){var b=vo(a.j);b.gb()&&s5(a,new ay(8));p5(a,oo(b));a.F=xi(A(function(){x5(this)},a),500)}};var r5=function(a){Ai(a.F);a.F=window.NaN};var A5=function(a){Ai(a.G);a.G=window.NaN};var s5=function(a,b){A5(a);var c=a.L;a.L=b;a.B=!1;var d=a.o;d.N=b;d.app.O("presentingplayerstatechange",new I1(b,c))};
var B5=function(a){F_.call(this,a);this.ra=this.G="remote";this.B={key:Ij(),name:Q("YTP_MDX_MY_COMPUTER")};this.A=null;this.D=[];this.J=this.L=this.o=null;this.T=[this.B];this.C=this.B;this.N=new ay;this.K=0};var C5=function(a,b,c){var d=c||a.B;b.unshift(a.B);a.T=b||[a.B];d=eb(b,function(a){return a.key==d.key});a.C=d||a.B;a.O("publish_external_event","onMdxReceiversChange")};var D5=function(a){R.call(this,["span"]);this.element.innerHTML=a};
var E5=function(a,b){R.call(this,["span","","{{sparkline_container}}"]);this.C=a;this.B=b;this.o=new D5("");H(this,this.o);xq(this,"sparkline_container",this.o)};var F5=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.C+","+a.B*(1-b[e]/c));return'<svg width="'+a.C+'" height="'+a.B+'" viewbox="0 0 '+a.C+" "+a.B+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'};
var G5=function(a){R.call(this,["div","html5-video-info-panel",["button",["html5-video-info-panel-close","ytp-button"],{tabindex:23,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}}"]]]]);S(this,this.oa["html5-video-info-panel-close"],"click",this.ea);this.B=new E5(200,14);H(this,this.B);xq(this,"bandwidth_sparkline",this.B);this.C=new E5(200,14);H(this,this.C);xq(this,"live_latency_sparkline",this.C);this.D=new Td(this.F,500,this);H(this,this.D);this.o=a};
var H5=function(a){var b=["div","html5-video-player",{tabindex:-1,id:a.W.attrs.id},["div","html5-video-container"]];b.push(["div","html5-video-content"]);Cq.call(this,b);pi(this.element,"version",a.W.assets.js);this.app=a;this.P=null;this.B=this.oa["html5-video-container"];this.fa=!!this.B;this.F=new se(0,0,0,0);this.o=null;this.J=new se(0,0,0,0);this.T=this.oa["html5-video-content"];this.W=this.da=0;this.K=null;this.G=0;this.L=null;a=a.V();this.$=a.experiments.na("efficient_resize")||a.rb||"blazer"==
a.j;this.ca=a.experiments.na("efficient_resize")&&BG(a);this.H=this.C=null;this.addEventListener=A(this.element.addEventListener,this.element);this.removeEventListener=A(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};a=uy(a)&&"blazer"!=a.j&&"mweb-polymer"!=a.j&&window.matchMedia?A(window.matchMedia,window):w;this.Y=a(H5.D);this.wa=a(H5.C);this.la=a(H5.B);this.ga=a(H5.o);this.qa=a(H5.j);this.ha=a(H5.A);this.D=null;Di({YTP_ADVERTISEMENT:"Iklan",YTP_AIRPLAY:"AirPlay",
YTP_AUDIO_TRACK_TITLE:"Audio",YTP_AUTO:"Otomatis",YTP_AUTO_WITH_QUALITY_2:"Otomatis ($VIDEO_QUALITY)",YTP_CARDS_BUTTON_ARIA_LABEL:"Tampilkan kartu",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Ubah kualitas ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Salin info debug",YTP_COPY_VIDEO_URL:"Salin URL video",YTP_COPY_VIDEO_URL_AT_TIME:"Salin URL video pada waktu saat ini",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Sembunyikan kartu",YTP_DRAWER_HEADER_TEXT_2:"Info lainnya",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Ingin memilih?",
YTP_GET_DEBUG_INFO:"Dapatkan informasi debug",YTP_GET_VIDEO_URL:"Dapatkan URL video",YTP_GET_VIDEO_URL_AT_TIME:"Dapatkan URL video saat ini",YTP_GET_EMBED:"Dapatkan kode semat",YTP_DECREASE_PLAYBACK_SPEED:"Turunkan kecepatan pemutaran",YTP_DEFAULT_VIEW:"Tampilan default",YTP_EMBED_COPY:"Salin kode semat",YTP_ERROR_GENERIC_WITHOUT_LINK:"Terjadi kesalahan. Coba lagi nanti.",YTP_ERROR_GENERIC_WITH_LINK:"Terjadi kesalahan. Coba lagi nanti. $BEGIN_LINKPelajari Lebih Lanjut$END_LINK",YTP_EXIT_FULLSCREEN:"Keluar dari tampilan layar penuh",
YTP_FULLSCREEN_GENERIC_ERROR:"Layar penuh tidak tersedia. $BEGIN_LINKPelajari Lebih Lanjut$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Browser Anda tidak mendukung layar penuh. $BEGIN_LINKPelajari Lebih Lanjut$END_LINK",YTP_FEATURED:"Unggulan",YTP_FULLSCREEN:"Layar penuh",YTP_INCREASE_PLAYBACK_SPEED:"Tingkatkan kecepatan pemutaran",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promosi",YTP_GOTO_LIVE_TOOLTIP:"Langsung ke siaran langsung.",YTP_KEYBOARD_SHORTCUTS:"Pintasan keyboard",YTP_LIVE:"Langsung",YTP_LIVE_NOW:"TAYANG LANGSUNG SEKARANG",
YTP_MIX:"Campuran",YTP_MORE:"lainnya",YTP_MDX_TITLE:"Diputar di",YTP_MDX_TOOLTIP:"Putar di TV",YTP_MDX_MY_COMPUTER:"Komputer ini",YTP_MUTE:"Bisukan",YTP_NEXT:"Berikutnya",YTP_NEXT_VIDEO_IN:"Video berikutnya dalam $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"Aktif",YTP_OFF:"Nonaktif",YTP_OPTIONS:"Opsi",YTP_PLAY_ALL:"Putar semua",YTP_PLAY_PAUSE:"Beralih putar/jeda",YTP_PREVIOUS:"Sebelumnya",YTP_PLAYBACK_STALLED_AT_START:"Jika pemutaran tidak segera dimulai, coba mulai ulang perangkat Anda.",YTP_PLAYLIST:"Daftar Putar",
YTP_PLAYLIST_UP_NEXT:"Berikutnya",YTP_QUALITY_TITLE:"Kualitas",YTP_SUGGESTED_VIDEOS:"Video yang disarankan",YTP_REPLAY:"Putar Ulang",YTP_REPORT_ISSUE:"Laporkan masalah pemutaran",YTP_SEEK_BACK:"Mundur 10 detik",YTP_SEEK_FORWARD:"Maju 10 detik",YTP_SEEK_PERCENT:"Cari ke bagian 0%-90%.",YTP_SETTINGS:"Setelan",YTP_SHARE:"Bagikan",YTP_SHARE_LINK:"Bagikan tautan",YTP_SHARE_WITH_PLAYLIST_2:"Sertakan daftar putar",YTP_SHOW_VIDEO_INFO:"Statistik bagi para 'nerd'",YTP_SIGN_IN:"Masuk",YTP_SPHERICAL_CONTROL:"Kontrol video bundar. Gunakan tombol panah untuk menggeser video.",
YTP_SPEED_TITLE:"Kecepatan",YTP_ST_COLLAPSE:"Ciutkan",YTP_ST_EXPAND:"Luaskan",YTP_SUBTITLES:"Subtitel/Teks",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Mode bioskop",YTP_TOGGLE_FULLSCREEN:"Beralih ke layar penuh.",YTP_TOGGLE_MUTE:"Beralih bisu/bersuara",YTP_UNMUTE:"Bunyikan",YTP_URL_NAVIGATE:"Tonton di YouTube.com",YTP_URL_NAVIGATE_TO:"Tonton di $WEBSITE",YTP_WATCH_ALL:"Tonton keseluruhan video",YTP_WATCH_LATER:"Tonton Nanti",YTP_WATCH_LATER_AS_2:"Tonton nanti sebagai $USER_NAME",
YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Berlangganan sebagai $USER_NAME",YTP_LIKE_AS:"Sukai sebagai $USER_NAME",YTP_DISLIKE_AS:"Tidak sukai sebagai $USER_NAME",YTP_WATCH_NEXT:"Tonton berikutnya",YTP_PLAY:"Putar",YTP_WATERMARK:"Tanda air",YTP_ERROR_STREAMING_UNAVAILABLE:"Saat ini pemutaran video tidak tersedia karena video telah diunduh untuk penayangan offline.",YTP_ERROR_LICENSE:"Maaf, terjadi kesalahan saat memberikan lisensi pada video ini.",YTP_ERROR_VIDEO_NOT_FOUND:"Video ini tidak dapat ditemukan.",
YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"Video ini telah didownload pada jumlah maksimum perangkat yang diperbolehkan oleh pemegang hak cipta. Sebelum dapat memutar video di sini, lepaskan pin video tersebut di perangkat lain.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"Terjadi kesalahan saat mengaktifkan persewaan Anda. Muat ulang laman ini atau coba lagi nanti.",YTP_ERROR_PURCHASE_NOT_FOUND:"Video ini perlu pembayaran.",YTP_ERROR_PURCHASE_REFUNDED:"Dana pembelian video ini telah dikembalikan.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Akun Anda sedang memutar video ini di lokasi lain. Muat ulang laman ini untuk terus menonton.",
YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Pemutaran dihentikan karena terlalu banyak video yang diputar dari akun yang sama.",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Pemutaran dihentikan karena video ini diputar di terlalu banyak perangkat.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Terlalu banyak perangkat/alamat IP yang digunakan dalam 24 jam.",YTP_ERROR_UNUSUAL_ACTIVITY:"Karena kegiatan akun yang tidak wajar, video ini tidak tersedia untuk saat ini.",YTP_ERROR_NOT_SIGNED_IN:"Masuk untuk terus menonton.",
YTP_CLOSE:"Tutup",YTP_EXPAND:"Luaskan",YTP_ANNOTATIONS:"Anotasi",YTP_DONE:"Selesai",YTP_SHARE_THIS_PLAYLIST:"Bagi daftar putar Ini",YTP_UPLOADED_BY_2:"oleh $AUTHOR",YTP_SEEK_SLIDER:"Slider pencarian",YTP_PAUSE:"Jeda",YTP_AUTOPLAY:"Putar otomatis",YTP_AUTOPLAY_COUNTDOWN_2:"Video berikutnya dalam $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Anda sedang sibuk? Pemutaran otomatis telah kami jeda.",YTP_AUTOPLAY_PAUSED_2:"Putar otomatis dijeda.",YTP_AUTOPLAY_CANCEL:"Batalkan putar otomatis",YTP_WATCH_VIDEO_OR_PLAYLIST:"Tonton $TITLE",
YTP_CANCEL:"Batalkan",YTP_ON_GOOGLE_PLUS:"Di Google+",YTP_STILL_THERE:"Masih ingin menonton? Jika iya, klik tombol di bawah untuk terus menonton daftar putar.",YTP_DISMISS:"Oke",YTP_RESET:"Setel ulang",YTP_STOP:"Hentikan pemutaran langsung",YTP_LIKE:"Suka",YTP_DISLIKE:"Tidak suka",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"dibisukan",YTP_SCREENREADER_VOLUME_MUTE:"bisukan",YTP_SCREENREADER_VOLUME_UNMUTE:"suarakan",YTP_SCREENREADER_CONTROL_TOGGLE:"alihkan",YTP_SAMPLE_SUBTITLES:"Teks akan terlihat seperti ini",
YTP_HTML5_CONTEXT_MENU_LINK:"Tentang pemutar HTML5",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"Format video ini tidak didukung.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Browser Anda saat ini tidak mengenali setiap format video yang tersedia. $BEGIN_LINKKlik di sini untuk mengunjungi pertanyaan umum tentang video HTML5.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"Perlu Adobe Flash Player untuk memutar video. $BEGIN_LINKDapatkan versi Flash Player terbaru$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"Perangkat di sesi siaran tidak cocok dengan yang diminta.",
YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"Video dalam sesi siaran tidak cocok dengan yang diminta.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Sesi siaran telah berakhir. Segarkan.",YTP_ERROR_CAST_TOKEN_FAILED:"Sesi siaran tidak tersedia. Segarkan atau coba lagi nanti.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Sesi siaran tidak valid. Segarkan atau coba lagi nanti.",YTP_ERROR_GEO_FAILURE:"Video ini tidak tersedia untuk negara Anda.",YTP_ERROR_INVALID_DRM_MESSAGE:"Pesan yang berkenaan dengan sistem DRM tidak valid.",YTP_ERROR_RENTAL_EXPIRED:"Periode rental video ini telah kedaluwarsa.",
YTP_ERROR_RETRYABLE_ERROR:"Terjadi kesalahan sementara pada server. Coba lagi nanti.",YTP_ERROR_SERVER_ERROR:"Terjadi kesalahan server internal. Coba lagi nanti.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Pemutaran tidak diperbolehkan karena video ini dipasang di perangkat lain.",YTP_ERROR_UNSUPPORTED_DEVICE:"Pemutaran tidak didukung di perangkat ini.",YTP_ERROR_VIDEO_FORBIDDEN:"Akes ke video ini dilarang.",YTP_MDX_STATUS_CONNECTED:"Diputar di",YTP_MDX_STATUS_CONNECTING:"Menghubungkan ke",YTP_MDX_STATUS_ERROR:"Terjadi kesalahan pada",
YTP_MDX_PLAYER_ERROR:"Video ini tidak tersedia untuk pemutaran jarak jauh",YTP_MDX_PLAYER_RECONNECT_TIME:"Periksa koneksi Internet Anda. Mencoba kembali dalam $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Sambungkan Kembali",YTP_DEVICE_FALLBACK:"Maaf, video ini tidak tersedia pada perangkat ini.",YTP_AD_INTERRUPT_MESSAGE:"Video Anda akan diputar setelah iklan ini.",YTP_VISIT_ADVERTISERS_SITE:"Kunjungi situs pengiklan",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS dari $DURATION",YTP_PLAYLIST_NAME:"Daftar Putar: $PLAYLIST_NAME",
YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"Terjadi kesalahan saat mengambil informasi berbagi. Coba lagi nanti.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"oleh $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"Pemutar Video YouTube",YTP_PLAYER_FULLSCREEN:"Pemutar Video YouTube di Layar Penuh",YTP_SPONSORED:"Bersponsor",YTP_AD_SETTINGS_INFO:"Kunjungi $BEGIN_FORMATSetelan Iklan$END_FORMAT Google untuk mempelajari lebih lanjut tentang cara menargetkan iklan atau memilih untuk tidak menggunakan iklan hasil personalisasi.",
YTP_PIP:"Gambar dalam Gambar",YTP_AUTO_TRANSLATE:"Terjemahkan otomatis"});this.app.subscribe("initializingmode",this.qw,this);this.app.subscribe("videoplayerreset",this.iE,this);this.app.subscribe("videodatachange",this.hE,this);this.app.subscribe("presentingplayerstatechange",this.hw,this)};
var Oea=function(a,b){a.o=b;if(!a.o.parentNode)try{of(a.B,a.o,0)}catch(d){var c="videoElement_: "+!!a.o+", containerElement: "+!!a.B+", containerElement.childNodes: "+!(!a.B||!a.B.childNodes)+", containerInitiallyTruthy: "+a.fa+", isDisposed: "+a.isDisposed();throw Error(c);}a.D&&(a.D.disconnect(),a.D=null);!a.app.V().experiments.na("no_detect_bad_extensions2")&&window.MutationObserver&&(a.D=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.J=new se(0,0,0,0),I5(this))}},a)),a.D.observe(a.o,{attributes:!0}));a.J=new se(0,0,0,0);I5(a);Pea(a)};
var Pea=function(a){L(a.o,"video-stream");L(a.o,"html5-main-video");var b=a.app.V();"3"==b.A&&a.o.setAttribute("controls",!0);b.wa&&a.o.setAttribute("data-no-fullscreen",!0);b.$b&&a.o.setAttribute("webkit-playsinline","");b.oe&&(a.L=Ll(a.o,"click",A(a.o.play,a.o)))};
var J5=function(a,b){if(a.o){var c=a.app.V();Mv&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));var d;c.gg&&b.videoId?d=b.Cc(c,"default.jpg"):c.experiments.na("legacy_poster_behavior")||wc&&!K5&&!gt()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.o.poster=d)}c=b.Qc("yt:bgcolor");a.B.style.backgroundColor=c?c:"";a.da=vu(b.Qc("yt:stretch"));c=b.Qc("yt:crop");a.W="fullwidth"==c?window.Infinity:
vu(c)};var ZI=function(a){return a.o?new qe(0<a.o.style.width.indexOf("px")?(0,window.parseInt)(a.o.style.width,10):a.o.clientWidth,0<a.o.style.height.indexOf("px")?(0,window.parseInt)(a.o.style.height,10):a.o.clientHeight):new qe(0,0)};var gF=function(a){return(a=a.o)?L5(a.videoWidth,a.videoHeight):window.NaN};var zE=function(a,b){var c=a.Ka(),d=M5(a,c,gF(a),N5(a),b);return new se((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
var M5=function(a,b,c,d,e){c=a.da||c;a=(0,window.isNaN)(c)?c:a.W||c;d=L5(b.width,b.height);var f;a>d?(f=(0,window.isFinite)(a)?a:c,f={width:b.width,height:b.width/f,ig:f}):a<d?f={width:b.height*a,height:b.height,ig:a}:f={width:b.width,height:b.height,ig:d};e||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.ig=c);return f};var L5=function(a,b){return 1>Math.abs(O5*b-a)||1>Math.abs(O5/a-b)?O5:a/b};var N5=function(a){return Mv?!0:"3"!=a.app.V().A&&!(0,window.isNaN)(gF(a))};
var I5=function(a){var b=gF(a),c=a.Ka(),d=1,e=N5(a),f=!1,k=lq(a.app),l=k&&k.getPlayerState(),k=M5(a,c,b),m=a.app.V();!l||U(l,2)||ky(l)?m.experiments.na("container_overflow")?(a.B.style.overflow="hidden",b=new se(0,0,c.width,c.height)):(b=-c.height,Mv?b*=window.devicePixelRatio:uc&&(b-=window.screen.height),b=new se(0,b,c.width,c.height)):(m.experiments.na("container_overflow")&&(a.B.style.overflow=""),e&&!(0,window.isNaN)(b)?(d=k.ig/b,b=new se((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,
k.height)):b=new se(0,0,c.width,c.height));ue(a.J,b)||(a.J=b,dg(a.o,ve(b)),Sf(a.o,we(b)),f=!0);c=new se((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ue(a.F,c)||(a.F=c,dg(a.T,c.width,c.height),Sf(a.T,c.left,c.top),f=!0);Lf(a.o,"transform",1==d?"none":"scaleX("+d+")");return f};var P5=function(a,b,c,d){rv.call(this);T(this,a,"click",this.J);T(this,a,"dblclick",this.G);this.H=b;this.B=c;this.C=d||null;this.o=new Td(this.F,200,this);H(this,this.o);this.j=!0;this.A=!1;this.D=null};
var Q5=function(){this.j=[];this.o=[]};var R5=function(a,b,c){c=window.document.createElement(c?"audio":"video");qa(c,Qea);Ll(c,"loadeddata",A(c.av,c));Ll(c,"volumechange",A(c.cv,c));uG&&6<=Cw&&Ll(c,"webkitbeginfullscreen",A(c.play,c));b||c.src||c.load();a.o.push(c);return c};
var S5=function(a,b,c){Oj.call(this);this.B=a;this.L=A(b,null);this.o=0;this.D=!1;this.A=new ne(window.NaN,window.NaN);this.j=new rv(this);H(this,this.j);b=c?4E3:3E3;this.H=new Td(pa(this.$a,1,!1),b,this);H(this,this.H);this.J=new Td(pa(this.$a,2,!1),b,this);H(this,this.J);this.K=new Td(pa(this.$a,512,!1),3E3,this);H(this,this.K);c||(this.F=T(this.j,a,"mouseover",this.$r),T(this.j,a,"mousemove",this.dE),T(this.j,a,"mouseleave",this.Ax));tc?T(this.j,a,"keypress",this.lx):T(this.j,a,"focusin",this.Ev);
this.C=T(this.j,a,"mousedown",this.Zr);this.G=T(this.j,a,"touchstart",this.bs);this.N=null;this.$a(640,!0)};var T5=function(a,b){zx.call(this,a,b);this.K=null;this.F=this.G=this.C=this.B=0;this.D=-75;L(this.element,"ytp-tv-static");U5(this,a,b)};var V5=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 U5=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.K=d;a.G=V5(b);a.F=V5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
var W5=function(a){R.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.C=a;this.B=[];void 0==X5&&(a=window.document.createElement("canvas"),X5=!(!a.getContext||!a.getContext("2d")));X5&&(this.o=new T5(1,1),this.o.j(this.element,0),H(this,this.o));a=AE(this.C).Ka();this.o&&U5(this.o,a.width,a.height)};var Rea=function(a,b,c){Y5("add_to_watch_later_list",a,b,c)};
var Sea=function(a,b,c){Y5("delete_from_watch_later_list",a,b,c)};
var Y5=function(a,b,c,d){yj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Cd:{feature:b.feature||null,authuser:b.yb||null,pageid:b.pageId||null},Ab:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.gJ||null,add_to_playlists:b.YI||null,plid:wi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,jb:b.jb,Wb:b.Wb,withCredentials:!!d})};
var Z5=function(a){this.A=a;this.o=this.j=null};var $5=function(a){if(!a.j){a.j=new R(["canvas",{style:"display: none"}]);a.j.j(a.A);var b=a.j.element;try{a.o=b.getContext("webgl")}catch(c){}}};var a6=function(a){a.o=null;a.j&&(a.j.detach(),a.j=null)};var b6=function(a){R.call(this,["div","ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.o=new Lq(this,500);H(this,this.o);this.aa=a;this.B=null};
var c6=function(a){var b=hz(a.aa);dy(b)?(b=a.aa.getVideoData(),b.Ea&&!b.Ed?d6(a,3):d6(a,2),a.o.show(!0)):U(b,64)||(d6(a,1),a.o.show(!0))};
var d6=function(a,b){if(a.B!=b){a.B=b;var c,d;switch(b){case 2:c=Q("YTP_PAUSE");d=xh?'<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=Q("YTP_PLAY");d=xh?'<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=Q("YTP_STOP"),d=xh?'<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];M(e,"ytp-bezel-icon-play",1==b);xq(a,"label",c);e.innerHTML=d}};
var e6=function(a,b){var c=AE(a).Ka();R.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.F=a;this.$=b;this.L=this.oa["ytp-tooltip-bg"];this.ga=this.oa["ytp-tooltip-image"];this.W=A(this.Dz,this);this.fa=A(this.Kl,this,1);this.da=A(this.Kl,this,3);this.ha=A(this.Kl,this,4);this.o=null;this.H=new Lq(this,100);
H(this,this.H);this.K=this.G=this.B=null;this.C=window.NaN;this.J="";this.T=0;this.Y=c.width;this.P=!0;this.ca=c;this.D=1;this.N=new Td(this.tx,250,this);H(this,this.N)};var f6=function(a,b){switch(b){case 1:case 2:return a.fa;case 3:return a.da;default:return a.ha}};var g6=function(a,b){if(null!=a.B)if(b)switch(a.B){case 1:case 3:case 4:h6(a);a.H.show(!1,400);break;default:a.H.show()}else a.H.ea();a.P=b};
var i6=function(a,b,c){if(a.$)return w;var d=c||4;b.addEventListener("mouseover",f6(a,d));return A(function(){this.o==b&&this.Fe();b.removeEventListener("mouseover",f6(this,d))},a)};
var h6=function(a){var b=a.o.getAttribute("data-tooltip-text");xq(a,"text",b||a.J);if(b){b=a.o.getAttribute("data-duration");a.update({title:a.J,duration:b});var c=a.o.getAttribute("data-preview"),d=96*a.D,e=54*a.D,f=120*a.D,k=90*a.D;a.L.style.width=d+"px";a.L.style.height=e+"px";a.L.style.background=c?"#000 url("+c+") "+(d-f)/2+"px "+(e-k)/2+"px/"+f+"px "+k+"px":"";Xd(a.element,["ytp-text-detail","ytp-preview"]);M(a.element,"ytp-has-duration",!!b)}else $d(a.element,["ytp-text-detail","ytp-preview",
"ytp-has-duration"]);b=gg(a.o);c=bg(a.o,a.F.ua());j6(a,c.x+b.width/2,c.y+b.height/2,b.height)};var j6=function(a,b,c,d){a.element.style.left="0px";a.element.style.top="";var e=gg(a.element);b-=e.width/2;switch(a.B){case 1:case 2:b=je(b,a.T,a.T+a.Y-e.width);break;case 3:c=AE(a.F).Ka().width;b=je(b,12,c-e.width-12);break;default:var f=AE(a.F).Ka();b=je(b,12,f.width-e.width-12);a.element.style.top=(c>f.height/2?c-d/2-12-e.height:c+d/2+12)+"px"}a.element.style.left=b+"px"};
var k6=function(a){a.o&&a.o.hasAttribute("title")&&(a.J=a.o.getAttribute("title"),a.o.removeAttribute("title"),a.P&&h6(a))};var l6=function(a,b){M(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=96*a.D,d=96*a.D,e=au(a.K,a.C,c);Q2(a.L,e,c,d,!0);a.N.start()}};
var m6=function(a,b,c){var d=["button",["ytp-button","ytp-cards-button"],{tabindex:18,"aria-label":Q("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];R.call(this,d);this.element.innerHTML=xh?'<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.aa=a;this.F=b;this.G=c;this.B=null;this.o=new Lq(this,250,!0);H(this,this.o);this.ea();this.R("click",this.C);this.R("mouseover",this.D);pB(this,!0)};var pB=function(a,b){b?(a.element.title=Q("YTP_DRAWER_HEADER_TEXT_2"),a.B=i6(a.F.o,a.element,3)):(a.B(),a.B=null,a.element.title="")};var n6=function(a){this.ca=this.Y=null;Cq.call(this,a);this.da=new Lq(this,100);this.W=null};var o6=function(a){return a.A&&3!=a.da.j};
var p6=function(a,b){this.B=[a];this.C=a;q6(this,a);this.size=new qe(0,0);this.D=this.G=null;this.ha=this.ga=0;n6.call(this,["div",["ytp-popup",b||null],{child:a}]);this.R("keydown",this.RE)};var q6=function(a,b){a.C.unsubscribe("size-change",a.bh,a);a.C=b;a.C.subscribe("size-change",a.bh,a)};
var r6=function(a){dg(a.element,a.ga||"100%",a.ha||"100%");var b=a.C;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.B.style.height="";var c=gg(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.C&&(d=gg(b.oa["ytp-panel-header"]).height);b.B.style.height=c.height-d+"px";a.size=c};
var s6=function(a,b){a.B.push(b);t6(a,a.C,b)};var t6=function(a,b,c,d){a.G&&Ud(a.G);a.D&&Ud(a.D);b.unsubscribe("back",a.Vd,a);c.subscribe("back",a.Vd,a);c.j(a.element);q6(a,c);if(a.A){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;r6(a);d=0==!d?-e.width:a.size.width;dg(a.element,e);Lf(c.element,"transform","translateX("+d+"px)");Lf(c.element,"opacity","0");a.G=new Td(pa(a.TB,b,c,-d),20,a);a.G.start()}else Lf(c.element,"transform","translateX(0)"),Lf(c.element,"opacity","1"),b.detach()};
var u6=function(a,b,c){for(var d=0;d<c.length;d++)M(c[d].element,"ytp-panel-animating",b);M(a.element,"ytp-popup-animating",b)};var v6=function(a){Cq.call(this,["div","ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.o=[]};var w6=function(a,b,c){if(c)a.o.push(b),a.element.appendChild(b.element);else{c=xb(a.o,b,a.hv);if(0<=c)return;c=~c;ub(a.o,c,0,b);of(a.element,b.element,c)}b.subscribe("size-change",a.rl,a);a.O("size-change")};
var x6=function(a,b,c,d){Cq.call(this,a);this.priority=b;c&&this.C(c);d&&this.Cb(d)};var y6=function(a,b,c){b=b?b:[];b.push("ytp-menuitem");a=a?a:{};a.tabindex=39;"role"in a||(a.role="menuitem");return[c?"a":"div",b,a,["div","ytp-menuitem-label","{{label}}"],["div","ytp-menuitem-content","{{content}}"]]};
var z6=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],{tabindex:39},c]];if(d){var l="ytp-panel-options";k.push(["button",["ytp-button",l],{tabindex:39},Q("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Cq.call(this,e);this.B=this.oa["ytp-panel-content"];this.F=b;this.C=!1;c&&(S(this,this.oa[f],"click",this.J),this.C=!0,d&&S(this,this.oa[l],"click",d));this.F.subscribe("size-change",this.D,this);
S(this,a,"fullscreentoggled",this.D)};var A6=function(a){var b=y6({"aria-haspopup":!0});x6.call(this,b,a);this.R("keydown",this.o)};var B6=function(a,b){a.element.setAttribute("aria-haspopup",b)};
var C6=function(a){this.o=a;this.$=new rv(this);H(this,this.$);this.H=new Cq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);H(this,this.H);this.fa=new z6(a,this.H);H(this,this.fa);var b=new v6("contextmenu");H(this,b);this.L=new A6(8);H(this,this.L);w6(b,this.L,!0);this.L.R("click",this.zE,this);this.K=new A6(6);H(this,this.K);w6(b,this.K,!0);this.K.R("click",this.ez,this);this.J=new A6(5);H(this,this.J);w6(b,this.J,!0);this.J.R("click",this.yE,this);this.T=new x6(y6({href:"{{href}}",
target:"_blank"},void 0,!0),4,Q("YTP_REPORT_ISSUE"));H(this,this.T);w6(b,this.T,!0);this.T.R("click",this.BE,this);this.P=new A6(3);H(this,this.P);w6(b,this.P,!0);this.P.R("click",this.xE,this);var c=new x6(y6(),2,Q("YTP_SHOW_VIDEO_INFO"));H(this,c);w6(b,c,!0);c.R("click",this.CE,this);c="//"+IG(this.o.V())+"/html5";c=new x6(y6({href:c,target:"_blank"},void 0,!0),1,Q("YTP_HTML5_CONTEXT_MENU_LINK"));H(this,c);w6(b,c,!0);c.R("click",this.Fx,this);b=new z6(this.o,b);H(this,b);p6.call(this,b);L(this.element,
"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Dl&&yc(43)&&(b=!0);D6&&!yc(41)&&(b=!1);b&&(this.F=new R(["div","ytp-html5-clipboard"]),H(this,this.F),this.F.j(this.element));E6(this);S(this,this.o,"fullscreentoggled",this.wE);S(this,this.o,"pageTransition",this.AE);S(this,this.o,"videodatachange",this.DE);S(this,AE(this.o),"contextmenu",this.My);S(this,this.H.element,"click",this.Ny);a=a.getVideoData();F6(this,a);this.j(window.document.body)};
var G6=function(a,b){var c;if(a.F){zf(a.F.element,b);Bq(a.F.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.xb():(a.H.Cb(b,"text"),s6(a,a.fa),Bq(a.H.element),a.F&&(a.F=null,E6(a)))};
var F6=function(a,b){var c=a.o.V(),d=!c.B&&!!b.videoId;"play"!=c.j?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.o&&(c.fmt=b.o.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.U&&(c.partnerid=b.U),c=Tg("//support.google.com/googleplay/",c));a.J.vb(d&&b.allowEmbed);a.L.vb(d);a.K.vb(d&&!b.Ea);a.T.Cb(c,"href")};
var E6=function(a){var b=!!a.F;a.P.C(Q(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));B6(a.P,!b);a.J.C(Q(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));B6(a.J,!b);a.L.C(Q(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));B6(a.L,!b);a.K.C(Q(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));B6(a.K,!b)};
var H6=function(a){this.D=new rv(this);Nq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.C=new Td(this.gs,0,this);H(this,this.C);this.gs();S(this,a,"presentingplayerstatechange",this.FE);uy(a.V())&&S(this,a,"videoplayerreset",this.EE)};var I6=function(a,b,c){b.V();var d=ky(c);b=U(c,2)&&!kH(b);d||b?a.show():(a.ea(),U(c,1)||a.stop())};
var J6=function(a,b,c,d,e,f,k){rv.call(this);this.j=a;this.J=c;this.F=d;this.A=e;this.G=f;this.H=k;this.o="";a=pa(this.D,!1);T(this,b,"mousedown",a);T(this,c.element,"mousedown",a);T(this,b,"keydown",this.B);T(this,c.element,"keydown",this.B);T(this,b,"keyup",this.C);T(this,c.element,"keyup",this.C)};
var K6=function(a,b,c){var d=!1,e=a.j.V();if(!e.Va){switch(b){case 80:c&&(a.j.qj(),d=!0);break;case 78:c&&(a.j.pj(),d=!0);break;case 74:a.j.Yc(-10);d=!0;break;case 76:a.j.Yc(10);d=!0;break;case 77:a.j.tc()?a.j.unMute():a.j.mute();d=!0;break;case 75:c6(a.G);dy(hz(a.j))?a.j.pauseVideo():a.j.Xc();d=!0;break;case 190:if(c&&e.T)for(b=a.j.mj(),c=a.j.app.U,e=0;e<b.length-1;e++)b[e]==c&&(a.j.sj(b[e+1]),d=!0);break;case 188:if(c&&e.T)for(b=a.j.mj(),c=a.j.app.U,e=b.length-1;1<=e;e--)b[e]==c&&(a.j.sj(b[e-1]),
d=!0);break;case 70:ry(a.j)&&(vy(a.j),d=!0)}d&&a.F.$a(2,!0)}return d};var L6=function(a,b,c,d){if(jH(a.j.app.B,"captions")){for(var e=a.j.ub("captions","displaySettings"),f,k=0;k<M6.length;k++){var l=M6[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;mH(a.j,d);return!0}return!1};
var N6=function(a){var b=["ytp-large-play-button","ytp-button"],c=a.V();(c.useTabletControls||c.isMobile)&&b.push("ytp-touch-device");R.call(this,["button",b,{tabindex:24,"aria-label":"{{label}}"}]);b=a.V();this.element.innerHTML=b.zb?xh?'<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>':
xh?'<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.o=a;this.C=!1;this.B=new Lq(this,250);H(this,this.B);S(this,a,"presentingplayerstatechange",this.F);b.C||(S(this,a,"resize",this.D),this.D());O6(this,hz(a))};var O6=function(a,b){if(a.o.V().Ye&&!a.C){I6(a.B,a.o,b);var c;c=(c=a.o.getVideoData())&&c.title?Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):Q("YTP_PLAY");xq(a,"label",c)}else a.ea()};
var P6=function(a){Cq.call(this,["div","ytp-mini-progress-bar-container",["div",["ytp-mini-progress-bar","ytp-swatch-background-color"]]]);this.o=a;this.F=this.oa["ytp-mini-progress-bar"];this.B=null;S(this,a,"presentingplayerstatechange",this.C);a.V();Q6(this)&&S(this,a,"fullscreentoggled",this.C);this.ea();this.C()};var Q6=function(a){a=a.o.V();return a.experiments.na("player_mini_progress_bar")&&uy(a)};
var R6=function(a,b,c){var d;d=b.nb(c);var e=a.V(),f=d.Cc(e,"default.jpg");R.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,tabindex:21,href:e.getVideoUrl(d.videoId,b.C?b.C.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",
Q("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]]);this.o=a;this.B=c;this.R("click",this.C)};
var S6=function(a,b){R.call(this,["div","ytp-playlist-menu",{role:"dialog"},["div","ytp-playlist-menu-header",["button",["ytp-playlist-menu-close","ytp-button"],{tabindex:20,"aria-label":Q("YTP_CLOSE")}],["div","ytp-playlist-menu-title",["a","ytp-playlist-menu-title-name",{href:"{{playlisturl}}",tabindex:21},"{{title}}"]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]]);var c=this.oa["ytp-playlist-menu-close"];c.innerHTML=Bh();S(this,c,"click",
this.SE);S(this,this.oa["ytp-playlist-menu-title-name"],"click",this.DA);this.B=a;this.D=this.F=this.o=null;this.J=this.oa["ytp-playlist-menu-items"];this.C=[];this.H=b;this.G=new Lq(this,250)};var T6=function(a,b){a.o!=b&&(a.o&&a.o.unsubscribe("shuffle",a.Gm,a),a.o=b,a.F=null,b?b.subscribe("shuffle",a.Gm,a):a.A&&a.H())};var U6=function(a){return a.A&&3!=a.G.j};
var V6=function(a,b,c){var d=["button",["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}",tabindex:11,"aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}","aria-label":Q("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];R.call(this,d);this.oa["ytp-playlist-menu-button-icon"].innerHTML=xh?'<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-36" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-36" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-36" /></svg>';
this.F=a;this.o=null;this.G=c;this.C=b.o;S(this,a,"videodatachange",this.D);S(this,a,"onPlaylistUpdate",this.D);S(this,a,"presentingplayerstatechange",this.B);this.ea();this.D();Lb(this,i6(this.C,this.element,3));this.R("click",this.G)};
var W6=function(a,b,c){R.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitem","aria-label":"{{watch}}",tabindex:21,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.B=a;this.o=b;this.C=c;ux(this,b,a.V());this.R("click",this.D)};
var X6=function(a,b){R.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{tabindex:20,"aria-label":Q("YTP_CLOSE")}],["div","ytp-related-menu-title",Q("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]]);var c=this.oa["ytp-related-menu-close"];c.innerHTML=Bh();S(this,c,"click",this.dF);this.o=a;this.D=null;this.G=this.oa["ytp-related-menu-items"];this.B=[];this.C=b;this.F=new Lq(this,250)};
var Y6=function(a){return a.A&&3!=a.F.j};
var Z6=function(a,b,c){var d=["button",["ytp-button","ytp-related-menu-button"],{title:Q("YTP_SUGGESTED_VIDEOS"),tabindex:15,"aria-owns":"ytp-related-menu","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];R.call(this,d);this.element.innerHTML=xh?'<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-38" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-38" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-38" /></svg>';this.o=
a;this.C=c;S(this,a,"videodatachange",this.B);S(this,a,"presentingplayerstatechange",this.B);this.B();Lb(this,i6(b.o,this.element,3));this.R("click",this.C)};
var $6=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"],{tabindex:20,title:Q("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},Q("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",tabindex:21,target:"_blank",title:Q("YTP_SHARE_LINK"),"aria-label":Q("YTP_SHARE_LINK")},"{{linkText}}"],
["label","ytp-share-panel-include-playlist",["input","ytp-share-panel-include-playlist-checkbox",{type:"checkbox",checked:!0,tabindex:21}],Q("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",Q("YTP_SHARE_PANEL_ERROR")]]];R.call(this,d);this.o=a;this.C=b.o;this.H=c;this.B=[];this.D=!1;this.G=new Lq(this,250);this.L=this.oa["ytp-share-panel-inner-content"];this.P=this.oa["ytp-share-panel-loading-spinner"];
this.P.innerHTML=Ch();this.F=this.oa["ytp-share-panel-close"];this.F.innerHTML=Bh();S(this,this.F,"click",this.H);Lb(this,i6(this.C,this.F));this.K=this.oa["ytp-share-panel-include-playlist-checkbox"];S(this,this.K,"click",this.ws);this.J=this.oa["ytp-share-panel-link"];Lb(this,i6(this.C,this.J));this.R("click",this.Pz);S(this,a,"videoplayerreset",this.ea);S(this,a,"fullscreentoggled",this.fF)};var a7=function(a){return a.A&&3!=a.G.j};
var b7=function(a){for(var b=0;b<a.B.length;b++)a.B[b].detach(),Mb(a.B[b]);a.B=[]};
var c7=function(a,b,c,d){c=["button",["ytp-button","ytp-share-button"],{title:Q("YTP_SHARE"),tabindex:17,"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];R.call(this,c);a.V().experiments.na("sharrow")?this.element.innerHTML=xh?'<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-41" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-41" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-41" /></svg>':this.element.innerHTML=
xh?'<div class="ytp-icon ytp-icon-share"></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.54,22.88 L15.55,19.39 C15.67,19.04 15.74,18.68 15.74,18.29 C15.74,18.03 15.71,17.78 15.66,17.54 L21.54,14.11 C22.11,14.57 22.83,14.86 23.62,14.86 C25.49,14.86 27,13.32 27,11.43 C27,9.53 25.49,8 23.62,8 C21.75,8 20.25,9.53 20.25,11.43 C20.25,11.69 20.28,11.94 20.33,12.18 L14.45,15.61 C13.87,15.15 13.16,14.86 12.37,14.86 C10.50,14.86 9,16.40 9,18.29 C9,20.19 10.50,21.73 12.37,21.73 C13.02,21.73 13.62,21.53 14.14,21.20 L20.33,24.81 C20.28,25.05 20.25,25.30 20.25,25.56 C20.25,27.46 21.75,29 23.62,29 C25.49,29 27,27.46 27,25.56 C27,23.67 25.49,22.13 23.62,22.13 C22.83,22.13 22.12,22.41 21.54,22.88 L21.54,22.88 Z" id="ytp-svg-41" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-41" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-41" /></svg>';
this.o=a;this.R("click",d);this.o.V().he?this.ea():(S(this,a,"videodatachange",this.B),this.B());Lb(this,i6(b.o,this.element,3))};
var d7=function(a){R.call(this,["div","ytp-webgl-spherical-control",{tabindex:22,"aria-label":Q("YTP_SPHERICAL_CONTROL")}]);this.element.innerHTML=xh?'<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-43" 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-44" /></defs><use opacity="0.15" stroke="#000" stroke-width="2" xlink:href="#ytp-svg-43" /><use fill="#fff" xlink:href="#ytp-svg-43" /><use opacity="0.15" stroke="#000" stroke-width="1" xlink:href="#ytp-svg-44" /><use fill="#999" xlink:href="#ytp-svg-44" /></svg>';this.B=
a;this.$=this.ca=this.D=this.F=null;this.o=[];this.C=0;this.Y=null;this.G=new uz(this.iF,null,this);H(this,this.G);this.L=-1;this.P=this.H=this.N=this.K=this.T=this.J=0;this.W=!1;S(this,a,"videodatachange",this.Im);S(this,a,"onApiChange",this.Im);this.ea();this.Im()};var e7=function(a,b,c,d){a.T=je(b+a.T,-1,1);a.N=je(c+a.N,-1,1);a.P=je(d+a.P,-1,1);1!=a.C&&(a.C=1,L(a.element,"ytp-dragging"),a.L=K(),a.G.start())};var f7=function(a){a.G.stop();a.C=0;a.T=0;a.N=0;a.P=0;a.o=[];Yd(a.element,"ytp-dragging")};
var g7=function(a,b,c,d,e,f){var k=f-a.L;a.K=(a.J*a.K+(b-e.yaw))/(k+a.J);a.H=(a.J*a.H+(c-e.pitch))/(k+a.J);a.L=f;a.J=k;sH(a.B,{shader:"Spherical",yaw:b,pitch:c,fov:d})};var h7=function(a,b){if(!(-1<a.o.indexOf(b)))switch(b){case 37:case 65:e7(a,1,0,0);a.o.push(b);break;case 39:case 68:e7(a,-1,0,0);a.o.push(b);break;case 38:case 87:e7(a,0,1,0);a.o.push(b);break;case 40:case 83:e7(a,0,-1,0);a.o.push(b);break;case 107:e7(a,0,0,-1);a.o.push(b);break;case 109:e7(a,0,0,1),a.o.push(b)}};
var i7=function(a,b){var c=a.o.indexOf(b);if(-1<c)switch(a.o.splice(c,1),b){case 37:case 65:e7(a,-1,0,0);break;case 39:case 68:e7(a,1,0,0);break;case 38:case 87:e7(a,0,-1,0);break;case 40:case 83:e7(a,0,1,0);break;case 107:e7(a,0,0,1);break;case 109:e7(a,0,0,-1)}0==a.o.length&&(f7(a),a.C=2,a.G.start())};
var j7=function(a){var b=["div","ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",Q("YTP_PLAYBACK_STALLED_AT_START")]];R.call(this,b);this.D=this.oa["ytp-spinner-svg"];this.D.innerHTML=Ch();this.C=this.oa["ytp-spinner-message"];this.B=a;this.o=new Td(this.show,500,this);S(this,a,"presentingplayerstatechange",this.oF);S(this,a,"onFrescaStateChange",this.$y);S(this,a,"playbackstalledatstart",this.Vz);k7(this,hz(a))};
var k7=function(a,b){var c;U(b,128)?c=0:!(c=U(b,16))&&(c=U(b,1))&&(c=jH(a.B.app.B,"fresca"),c=!(c&&c.loaded));c?a.o.start():a.ea()};var l7=function(a,b){var c=["button",["ytp-airplay-button","ytp-button"],{title:Q("YTP_AIRPLAY"),tabindex:44}];R.call(this,c);this.o=a;this.R("click",this.C);S(this,a,"airplayactivechange",this.B);S(this,a,"airplayavailabilitychange",this.B);this.B();Lb(this,i6(b.o,this.element,1))};
var m7=function(a,b){Cq.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.B=a;this.da=b.o;this.Y=new xm(this.HE,250,this);H(this,this.Y);this.G=AE(a).Ka().width;this.C=this.oa["ytp-storyboard-filmstrip"];this.fa=this.oa["ytp-storyboard-lens"];this.ha=this.oa["ytp-storyboard-lens-thumbnail"];
this.ga=this.oa["ytp-storyboard-lens-timestamp"];this.ca=this.oa["ytp-storyboard-thumbnail"];pf(this.ca);this.L=0;this.$=!1;this.W=this.o=0;this.T=this.J=this.F=window.NaN;this.H=this.D=null;this.K=new rv(this);this.P=new Lq(this,100);S(this,this.B,"resize",this.GE);S(this,this.B,"beginseeking",this.ov)};
var n7=function(a,b){a.H&&a.H.unsubscribe("l",a.bj,a);var c=!!a.D;a.D=b&&Sw(b);a.H=b&&Tw(b);a.$=!!b&&b.Ea;a.D?(c||(T(a.K,a.B,"videodatachange",a.IE),T(a.K,a.B,"progresssync",a.Aj),T(a.K,a.B,"videoplayerreset",a.Aj),T(a.K,a.B,"endseeking",a.Dv)),a.H.subscribe("l",a.bj,a),a.T=window.NaN,a.F=window.NaN,a.J=window.NaN,a.Aj(),a.P.show(!1,m7.o)):(c&&uv(a.K),a.Y.stop(),Au(a.L),a.P.ea(),a.P.stop())};var o7=function(a,b){var c=a.ca.cloneNode(!1),d=au(a.H,b,a.o);Q2(c,d,a.o,a.W);return c};
var p7=function(a){R.call(this,["div","ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.H=this.oa["ytp-storyboard-framepreview-img"];this.o=a;this.G=this.C=null;this.F=window.NaN;this.B=new rv(this);this.D=new Lq(this,100);S(this,a,"beginseeking",this.LE)};
var q7=function(a,b){var c=!!a.C;a.C=b&&Sw(b);a.G=b&&Tw(b);a.C?(c||(T(a.B,a.o,"videodatachange",a.PE),T(a.B,a.o,"progresssync",a.NE),T(a.B,a.o,"resize",a.KE),T(a.B,a.o,"presentingplayerstatechange",a.OE),T(a.B,a.o,"endseeking",a.ME)),a.F=window.NaN,r7(a),a.D.show(!1,200)):(c&&uv(a.B),a.D.ea(),a.D.stop())};var r7=function(a){var b=a.o.getCurrentTime(),c=AE(a.o).Ka(),d=bu(a.C,c.width),b=a.C.j[d].yj(b);b!=a.F&&(a.F=b,du(a.G,b,c.width),b=au(a.G,b,c.width),Q2(a.H,b,c.width,c.height))};
var s7=function(a,b){R.call(this,["button",["ytp-fullscreen-button","ytp-button"],{title:"{{title}}",tabindex:46}]);this.B=a;this.D=b;this.o=null;this.C=i6(b.o,this.element,1);S(this,a,"fullscreentoggled",this.hs);S(this,a,"presentingplayerstatechange",this.ks);this.R("click",this.QE);var c;c=Hh("fullscreenerror");"msfullscreenerror"==c&&(c="MSFullscreenError");c&&S(this,window.document,c,this.bz);a.V().Na||t7(this);this.ks();this.hs(a.Ia())};
var t7=function(a){if(!a.o){var b=Q(void 0!=Fh(["requestFullscreen","requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new n6(["div",["ytp-popup","ytp-fullscreen-message"],b[0],["a",{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},b[2]],b[4]]);H(a,a.o);a.o.j(a.B.ua());a.element.setAttribute("aria-disabled",!0);a.C();a.C=null}};
var u7=function(a,b){var c=["button",["ytp-pip-button","ytp-button"],{title:Q("YTP_PIP"),tabindex:45}];R.call(this,c);this.element.innerHTML=xh?'<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-34" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-34" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-34" /></svg>';
this.o=a;this.R("click",this.B);Lb(this,i6(b.o,this.element,1))};var v7=function(a,b){R.call(this,["button",["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}",tabindex:33}]);this.o=a;this.C=null;this.D=b.o;this.B=null;S(this,a,"fullscreentoggled",this.F);S(this,a,"presentingplayerstatechange",this.G);S(this,a,"videodatachange",this.F);w7(this,hz(a));this.R("click",this.H,this)};
var Tea=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 w7=function(a,b){var c,d=ax(a.o.getVideoData()),e=!1;dy(b)?c=d?4:2:U(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.C!=c){var f;switch(c){case 2:f=Q("YTP_PAUSE");break;case 3:f=Q("YTP_REPLAY");break;case 1:f=Q("YTP_PLAY");break;case 4:f=Q("YTP_STOP")}e=void 0;3==c?(a.B||(a.B=i6(a.D,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.B&&(a.B(),a.B=null),a.update({title:null,label:f}),d=x7[c],e=x7[a.C]);k6(a.D);a.o.V().C?a.element.innerHTML=Tea(c):a.element.innerHTML=wy(ka(a),d,e);a.C=c}};
var y7=function(a,b,c){var d={title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},e,f;c?(e="ytp-next-button",f=xh?'<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-32" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-32" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-32" /></svg>',
d.tabindex=34):(e="ytp-prev-button",f=xh?'<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-37" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-37" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-37" /></svg>',d.tabindex=
32);R.call(this,["a",[e,"ytp-button"],d]);this.element.innerHTML=f;this.o=a;this.P=b.o;this.D=c;this.B=this.G=null;this.L=!1;this.J=this.K=this.C=null;this.F=!1;S(this,a,"fullscreentoggled",this.H);S(this,a,"videodatachange",this.H);S(this,a,"onPlaylistUpdate",this.H);this.H()};var z7=function(a){a.B&&a.B.unsubscribe("shuffle",a.H,a)};var A7=function(a){return!!a.B&&!a.D&&3<=a.o.getCurrentTime()&&1==a.o.getPresentingPlayerType()};
var B7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.o.V(),d=lH(a.o),e=a.D&&Dx(c,a.G,a.B);if(a.F)b.title=Q("YTP_REPLAY");else if(d){var f=null;a.B&&(f=a.B.nb(a.D?kx(a.B,!0):lx(a.B,!0)));if(f){if(f.videoId){var k=a.B.C;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?rx(f.lengthSeconds):null;b.preview=f.Cc(c,"default.jpg")}b.title=Q(a.D?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.G.F&&a.G.F.length&&(f=tx(a.G.F[0]),b.url=f.vk(c),
b.text=f.title,b.duration=f instanceof rw?rx(f.lengthSeconds):null,b.preview=f.Cc(c,"default.jpg")),b.title=Q("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.L=!!b.url;e||d||a.F?a.C||(a.C=i6(a.P,a.element,1),a.K=a.R("click",a.T,a)):a.C&&(a.C(),a.C=null,a.ya(a.K),a.K=null);k6(a.P)};
var C7=function(a,b){var c=["div","ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:31,role:"slider","aria-label":Q("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-pull-indicator"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:Q("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:Q("YTP_WATCH_ALL")}]];Cq.call(this,c);this.B=a;this.sb=b.o;this.la=!1;this.F=this.bb=0;this.$=1;this.C=this.qb=this.H=0;this.Sa=!1;this.P=this.da=
0;this.Mb=this.oa["ytp-ad-progress-list"];this.$b=this.oa["ytp-marker-progress-list"];this.Qa=this.oa["ytp-marker-crenellation-list"];this.Y={};this.ga={};this.T=window.Infinity;c=b.o;this.K=this.oa["ytp-clip-end"];this.K.innerHTML=zh();Lb(this,i6(c,this.K,1));this.qa=new nF(this.K,!0);H(this,this.qa);this.qa.subscribe("hoverstart",this.os,this);this.qa.subscribe("hoverend",this.ms,this);S(this,this.K,"click",this.Bj);this.Na=this.oa["ytp-clip-end-exclude"];this.ac=this.oa["ytp-clip-start-exclude"];
this.W=0;this.L=this.oa["ytp-clip-start"];this.L.innerHTML=Ah();Lb(this,i6(c,this.L,1));this.wa=new nF(this.L,!0);H(this,this.wa);this.wa.subscribe("hoverstart",this.os,this);this.wa.subscribe("hoverend",this.ms,this);S(this,this.L,"click",this.Bj);this.Va=this.oa["ytp-load-progress"];this.ha=0;this.bc=this.oa["ytp-play-progress"];this.fa=this.oa["ytp-hover-progress"];this.G=0;this.Da=this.oa["ytp-progress-bar"];this.D=null;this.ca=new R(["div",["ytp-scrubber-button","ytp-swatch-background-color"]]);
H(this,this.ca);this.ca.j(this.Da);this.Ha=new Lq(this.ca,100);this.rb=this.oa["ytp-scrubber-pull-indicator"];this.Aa=new ne;this.Ta=new P2;this.o=new L2(0,0);this.J=this.Fa=!1;this.Ua=null;S(this,a,"presentingplayerstatechange",this.UE);S(this,a,"videodatachange",this.ls);S(this,a,"videoplayerreset",this.ew);S(this,a,"cuerangesadded",this.ts);S(this,a,"cuerangesremoved",this.cF);S(this,a,"cuerangemarkersupdated",this.ts);S(this,a,"onPlaybackQualityChange",this.VE);D7(this,a.getVideoData(),!0)};
var E7=function(a){if(a.F){var b=a.B.Qe(),c=new L2(b.seekableStart,b.seekableEnd),d=O2(c,b.loaded,0),b=O2(c,b.current,0);a.o=c;F7(a);G7(a,b,d);H7(a)}};var D7=function(a,b,c){var d=!!b&&Vw(b);a.Fa=d&&b.Ed;I7(a,zH(a.B));c&&(d?(c=b.clipEnd,a.W=b.clipStart,a.T=c,J7(a),G7(a,a.G,a.ha)):a.Bj());E7(a)};var K7=function(a){return!!a&&Vw(a)&&!!a.o&&a.o.video.j};var L7=function(a,b){a.Sa=b;M(a.Va,"ytp-fast-load",b)};
var M7=function(a,b,c,d){b=je(b,0,a.J?60:40);a.H=b;var e=a.$;a.$=b/(a.J?60:40)*(Math.max(M2(a.o)/a.F,1)-1)+1;b=a.F*a.$;a.P=je(d*b-c,0,b-a.F);e!=a.$&&F7(a)};
var F7=function(a){var b=N7(a),c=-b.A/b.j,d=(-b.A+b.width)/b.j,e=rf(a.Qa),f=0;if(a.H>.2*(a.J?60:40))for(var k=M2(a.o)/60*d,l=Math.ceil(M2(a.o)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Qa.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/M2(a.o)-c)*b.j+"px"}b=a.Fa?a.o.j:0;a.update({boundTimeLeft:rx(N2(a.o,c)-b),boundTimeRight:rx(N2(a.o,d)-b)});for(c=e.length-1;c>=f;c--)pf(e[c]);
a.element.style.height=a.H+(a.J?8:5)+"px";a.O("height-change",a.H);a.ca.element.style.height=a.H+(a.J?20:13)+"px";for(var p in a.Y)O7(a,a.Y[p],a.ga[p]);J7(a);G7(a,a.G,a.ha)};var N7=function(a){var b=a.Aa.x,c=a.F*a.$,b=je(b,0,a.F);a.Ta.update(b,a.F,-a.P,-(c-a.P-a.F));return a.Ta};
var G7=function(a,b,c){a.G=b;a.ha=c;var d=N7(a),e=a.o.j,f=N2(a.o,a.G);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:Q("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:rx(f),DURATION:rx(e)})});var e=O2(a.o,a.W,0),k=O2(a.o,a.T,1),f=je(b,e,k);c=a.Sa?1:je(c,e,k);k=b*d.j+d.A;b=0<=k&&b<=d.width;a.ca.element.style.visibility=b?"":"hidden";a.rb.style.display=b?"":"none";b=k+"px";a.ca.element.style.left=b;a.rb.style.left=b;P7(a,a.bc,d,e,f);P7(a,a.Va,d,e,c)};
var P7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.j+c.A,0)+"px";d=Math.min((e-d)*c.j+c.A,c.width);f||a.B.getVideoData().J?(b.style.width=d+"px",Lf(b,"transform","")):(Lf(b,"transform","scalex("+(c.width?d/c.width:0)+")"),b.style.width="")};
var J7=function(a){var b=a.W>a.o.o,c=0<a.o.j&&a.T<a.o.j;M(a.element,"ytp-clip-start-enabled",b);M(a.element,"ytp-clip-end-enabled",c);b=b?O2(a.o,a.W,0):0;c=c?O2(a.o,a.T,1):1;a.L.style.left=Math.round(1E3*b)/10+"%";a.K.style.left=Math.round(1E3*c)/10+"%";a.ac.style.width=Math.round(1E3*b)/10+"%";a.Na.style.left=Math.round(1E3*c)/10+"%";a.Na.style.width=Math.round(1E3*(1-c))/10+"%"};var H7=function(a){var b=N7(a);P7(a,a.fa,b,a.G,b.o);M(a.fa,"ytp-hover-progress-light",b.o>a.G)};
var O7=function(a,b,c){var d=N7(a),e=O2(a.o,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=O2(a.o,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=je(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}P7(a,c,d,e,f,!0);c.className=b.style};
var Q7=function(a,b){var c=b.getId();a.Y[c]==b&&(pf(a.ga[c]),delete a.Y[c],delete a.ga[c])};
var I7=function(a,b){b?a.D||(a.element.removeAttribute("aria-disabled"),a.D=new nF(a.Da,!0),a.D.subscribe("hoverstart",a.YE,a),a.D.subscribe("hovermove",a.$E,a),a.D.subscribe("hoverend",a.ZE,a),a.D.subscribe("dragstart",a.XE,a),a.D.subscribe("dragmove",a.bF,a),a.D.subscribe("dragend",a.aF,a),a.Ua=a.R("keydown",a.WE)):a.D&&(a.element.setAttribute("aria-disabled",!0),a.ya(a.Ua),a.D.cancel(),a.D.dispose(),a.D=null)};
var R7=function(a){R.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.o=new Lq(this,250);H(this,this.o);this.B=a;this.oa["ytp-remote-display-status-icon"].innerHTML=wh();S(this,a,"presentingplayerstatechange",this.C);S7(this,hz(a))};
var S7=function(a,b){if(3==a.B.getPresentingPlayerType()){var c;c=U(b,128)?Q("YTP_MDX_PLAYER_ERROR"):Q("YTP_MDX_STATUS_CONNECTED");var d=a.B.ub("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.o.show()}else a.o.ea()};
var T7=function(a,b,c){var d=["button",["ytp-remote-button","ytp-button"],{title:Q("YTP_MDX_TOOLTIP"),tabindex:43}];R.call(this,d);this.aa=a;this.D=c;this.B=null;S(this,a,"onMdxReceiversChange",this.o);S(this,a,"presentingplayerstatechange",this.o);this.o();this.R("click",this.C,this);Lb(this,i6(b.o,this.element,1))};var U7=function(a,b){this.o=!1;var c=y6({role:"menuitemcheckbox","aria-checked":this.o});x6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.R("click",this.K)};
var V7=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};var W7=function(a,b){U7.call(this,Q("YTP_ANNOTATIONS"),6);this.F=b;this.aa=a;this.B=!1;S(this,a,"videodatachange",this.D);S(this,a,"onApiChange",this.D);this.subscribe("select",this.G,this);this.D()};var X7=function(a,b,c,d,e){var f=y6({"aria-haspopup":!0});x6.call(this,f,b,a);this.o=d;this.J=null;this.B={};this.G=new v6;H(this,this.G);this.P=new z6(c,this.G,a,e);H(this,this.P);this.R("keydown",this.eF);this.R("click",this.open)};
var Y7=function(a,b){a.G.removeAll();for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.B[f],l=f==a.J;l&&(d=!0);if(k&&k.priority==-e){var l=a,m=f,p=l.B[m];p.C(l.Ac(m,!0));p.O("size-change");delete a.B[f]}else k=new x6(["div","ytp-menuitem",{tabindex:39,role:"menuitemradio","aria-checked":l?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.Ac(f,!0)),k.R("click",A(a.Mz,a,f));c[f]=k;w6(a.G,k,!0)}d||(a.J=null);for(f in a.B)a.B[f].dispose();a.B=c};
var Z7=function(a,b){X7.call(this,Q("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.aa=a;this.K=new R(["div","",["span","",Q("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);this.C(this.K);this.L={};this.D=!1;S(this,a,"videodatachange",this.H);S(this,a,"onPlaybackAudioChange",this.H);this.H()};var $7=function(a,b){U7.call(this,Q("YTP_AUTOPLAY"),7);this.H=b;this.aa=a;this.F=!1;this.B=[];S(this,a,"presentingplayerstatechange",this.D);this.subscribe("select",this.J,this);this.D()};
var a8=function(a,b){X7.call(this,Q("YTP_QUALITY_TITLE"),1,a,b);L(this.G.element,"ytp-quality-menu");this.aa=a;this.L={};this.K="unknown";this.D=!1;S(this,a,"videodatachange",this.F);S(this,a,"videoplayerreset",this.F);S(this,a,"onPlaybackQualityChange",this.H);this.F()};
var b8=function(a,b,c){var d=(a=a.L[b])?a.qualityLabel:(d=lr[b])?d+"p":Q("YTP_AUTO");c=["span",c,d];var e;a&&a.j?c.push(["div","ytp-menuitem-badge-container",{child:new D5('<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 c8=function(a,b){X7.call(this,Q("YTP_MDX_TITLE"),0,a,b);this.aa=a;this.D=!1;this.K={};S(this,a,"onMdxReceiversChange",this.H);S(this,a,"presentingplayerstatechange",this.H);this.H()};var d8=function(a,b){X7.call(this,Q("YTP_SPEED_TITLE"),5,a,b);this.aa=a;this.D=!1;this.F=null;S(this,a,"presentingplayerstatechange",this.xs);this.xs()};
var e8=function(a,b,c,d){X7.call(this,f8(d),a,b,c);L(this.element,"ytp-subtitles-options-menu-item");this.H=d.option.toString();this.D=Hb(d.options,this.F,this);Y7(this,P(d.options,this.F))};var f8=function(a){return(a.message?Q(a.message):a.text)||""};
var g8=function(a,b){this.G={};this.o=new v6;for(var c=0;c<M6.length;c++){var d=M6[c],e=new e8(-c,a,b,d);H(this,e);e.subscribe("settingChange",this.H,this);this.G[d.option.toString()]=e;w6(this.o,e,!0)}c=new x6(y6(),-M6.length,Q("YTP_RESET"));H(this,c);c.R("click",A(this.H,this,"reset",!0));w6(this.o,c,!0);z6.call(this,a,this.o,Q("YTP_OPTIONS"))};var h8=function(a,b){for(var c in b){var d=a.G[c];if(d){var e=b[c].toString();d.B[e]&&d.Lc(e)}}};
var i8=function(a,b){X7.call(this,Q("YTP_AUTO_TRANSLATE"),0,a,b);this.D={}};
var j8=function(a,b){X7.call(this,Q("YTP_SUBTITLES"),4,a,b,A(this.QB,this));this.aa=a;this.L=!1;this.D={};this.K=new R(["div","",["span","",Q("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);H(this,this.K);this.C(this.K);this.H=new i8(a,b);H(this,this.H);this.H.subscribe("select",this.IA,this);this.F=new g8(a,b);H(this,this.F);this.F.subscribe("settingChange",this.uF,this);S(this,a,"videodatachange",this.sh);S(this,a,"onApiChange",this.sh);S(this,a,"onCaptionsTrackListChanged",
this.sh);S(this,a,"captionschanged",this.sh);this.sh()};var k8=function(a){a.fontFamily=l8.indexOf(a.fontFamilyOption);a.charEdgeStyle=m8.indexOf(a.charEdgeStyle)};var n8=function(a,b){X7.call(this,Q("YTP_THREED_SHORT"),8,a,b);this.aa=a;this.D=!1;S(this,a,"videodatachange",this.H);this.F=null;this.H()};var o8=function(a){this.F=a;this.o=new v6("ytp-main-menu-id");H(this,this.o);a=new z6(a,this.o);H(this,a);p6.call(this,a,"ytp-settings-menu");this.J=this.H=null;this.K=!1};
var p8=function(a){if(!a.K){a.K=!0;var b=new a8(a.F,a);H(a,b);b=new j8(a.F,a);H(a,b);b=new W7(a.F,a);H(a,b);b=new d8(a.F,a);H(a,b);b=new n8(a.F,a);H(a,b);b=new $7(a.F,a);H(a,b);b=new Z7(a.F,a);H(a,b);a.J=new c8(a.F,a);H(a,a.J);0>=a.o.o.length&&a.H.ea()}};var q8=function(a,b){w6(a.o,b);a.H&&a.H.show()};var r8=function(a,b){a.A&&1>=a.o.o.length&&a.ea();a.o.remove(b);0>=a.o.o.length&&a.H&&a.H.ea()};
var s8=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:Q("YTP_SETTINGS"),tabindex:40}];R.call(this,d);this.element.innerHTML=xh?'<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-40" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-40" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-40" /></svg>';
this.B=c;this.B.subscribe("show",this.C,this);this.aa=a;this.R("click",this.D);S(this,this.aa,"onPlaybackQualityChange",this.o);S(this,a,"videodatachange",this.o);S(this,a,"webglsettingschanged",this.o);Lb(this,i6(b.o,this.element,1));this.o();this.C(!1)};
var t8=function(a,b){R.call(this,["button",["ytp-size-button","ytp-button"],{title:"{{title}}",tabindex:41}]);this.o=a;this.D=b.o;this.C=null;S(this,a,"sizestylechange",this.B);S(this,a,"fullscreentoggled",this.B);S(this,a,"presentingplayerstatechange",this.B);this.B();this.R("click",this.F);Lb(this,i6(this.D,this.element,1))};
var u8=function(a,b){var c=["button",["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:Q("YTP_SUBTITLES"),tabindex:38}];R.call(this,c);this.o=a;c=this.o.V().W;this.element.innerHTML=-1!=v8.indexOf(c)?xh?'<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>':
xh?'<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-46" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-46" /></svg>';S(this,a,"videodatachange",this.B);S(this,a,"onApiChange",
this.B);S(this,a,"onCaptionsTrackListChanged",this.B);S(this,a,"captionschanged",this.B);this.B();this.R("click",this.C);Lb(this,i6(b.o,this.element,1))};
var w8=function(a,b){R.call(this,["span",["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.D=new R(["button",["ytp-live-badge","ytp-button"],{tabindex:37,disabled:!0},Q("YTP_LIVE")]);H(this,this.D);this.D.j(this.element);this.B=a;this.J=b.o;this.o=null;this.F=this.C=!1;this.H=this.G=null;this.R("click",this.vF);S(this,a,"presentingplayerstatechange",this.uh);S(this,a,"liveviewshift",
this.wF);S(this,a,"videodatachange",this.xF);var c=a.getVideoData();c&&(this.C=c.Ea,M(this.element,"ytp-live",this.C));this.uh()};
var x8=function(a,b){R.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:36},["div","ytp-volume-slider",["div","ytp-volume-slider-track"],["div","ytp-volume-slider-handle"]]]]);this.o=a;this.Aa=b.o;this.W=!1;this.ga=this.B=0;this.C=new R(["button",["ytp-mute-button","ytp-button"],{tabindex:35,title:"{{title}}"}]);H(this,this.C);this.C.j(this.element,0);this.C.R("click",
this.Ez,this);this.fa=this.oa["ytp-volume-slider"];this.qa=this.oa["ytp-volume-slider-handle"];this.wa=this.oa["ytp-volume-slider-track"];this.D=this.G=window.NaN;this.$=-1;this.o.V().C&&(this.la="");this.Y=new uz(this.Cs,null,this);H(this,this.Y);this.T=new nF(this.fa,!0);H(this,this.T);this.T.subscribe("dragstart",this.xA,this);this.T.subscribe("dragmove",this.wA,this);this.T.subscribe("dragend",this.vA,this);S(this,a,"onVolumeChange",this.BF);S(this,this.oa["ytp-volume-panel"],"keydown",this.yA);
S(this,this.element,"mousewheel",this.zF);this.ha=S(this,a,"videodatachange",this.AF);this.N=!1;this.P=this.L=this.F=this.K=this.da=null;this.H=this.ca=!1;this.J=new Td(this.Ju,125,this);H(this,this.J);this.W=!1;y8(this,this.o.Bb(),this.o.tc());Lb(this,i6(b.o,this.C.element,1))};var z8=function(a,b){var c=(b-a.$)/250;return 1<=c?a.D:a.G+(a.D-a.G)*c};var A8=function(a,b,c){for(var d="",e=!0,f=0;f<a.length;f++){var k=a[f];x(k)?d+=k:e?(d+=k+(b[f]-k)*c,e=!1):(d+=","+(k+(b[f]-k)*c)+" ",e=!0)}return d};
var y8=function(a,b,c){var d=Math.round(b),e=d+"% "+Q("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+Q("YTP_SCREENREADER_VOLUME_MUTED"):""),f=c?0:b/100;if(a.o.V().C){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.la&&(a.C.element.innerHTML=k,a.la=k)}else if(k=f?.5*Math.ceil(f/.5):-.5,a.D!=k){var l=K();(0,window.isNaN)(a.G)?(a.G=a.D=k,a.$=l,a.Cs(l)):(a.G=z8(a,l),a.D=k,
a.$=l,a.Y.start())}xq(a,"valuenow",d);xq(a,"valuetext",e);xq(a.C,"title",c?Q("YTP_UNMUTE"):Q("YTP_MUTE"));k6(a.Aa);c=(a.W?74:49)*f;a.qa.style.left=c+"px";a.wa.style.width=c+"px";a.B=b;a.N&&B8(a)};var C8=function(a,b,c){b={src:"//www.gstatic.com/youtube/media/beyond/"+b,preload:"auto"};c&&(b.loop="loop");c=new tq(["audio",b]);H(a,c);c.j(a.element);return c.element};var B8=function(a){var b=a.o.tc()?0:a.B/100;a.da.volume=b;a.K.volume=b;a.F.volume=b;a.L.volume=b;a.P.volume=b};
var D8=function(a,b){a.ca||(b&&!a.H?a.J.start():!b&&a.H&&(a.J.isActive()?a.J.stop():(a.F.pause(),a.K.play())));a.H=b};
var E8=function(a,b){var c=a.V(),d="gaming"==c.j?"gaming.youtube.com":IG(c);R.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",tabindex:42,target:"_blank",title:Q("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.j?(this.element.innerHTML=xh?'<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-27" /><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-28" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-29" /><g id="ytp-svg-30"><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-27" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-28" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-27" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-29" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-28" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-30" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-30" /></svg>',L(this.element,
"ytp-youtube-gaming-button")):this.element.innerHTML=xh?'<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-24" /><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-25" /><path d="M23,12 L43,12 L43,24 L23,24 Z" id="ytp-svg-26" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-25" /></svg>';
this.o=a;this.R("click",this.C);S(this,a,"videodatachange",this.B);this.B();Lb(this,i6(b.o,this.element,1))};
var F8=function(a,b,c){rv.call(this);var d=a.V(),e=a.ua();this.aa=a;this.B=b;this.P=window.NaN;this.K=null;this.H=c;this.H.subscribe("autohideupdate",this.pF,this);c=!ky(hz(a));var f=new R(["div","ytp-gradient-bottom"]);H(this,f);f.j(e);this.G=new Lq(f,250,c);H(this,this.G);this.A=new R(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);H(this,this.A);this.A.j(e);this.F=new Lq(this.A,250,c);H(this,this.F);c=this.A.element.children[0];this.j=new o8(a);H(this,this.j);this.j.j(e);this.j.subscribe("show",
this.dC,this);this.j.subscribe("show",b.NB,b);this.C=new C7(a,b);H(this,this.C);this.C.j(this.A.element,0);f=new m7(a,b);H(this,f);f.j(e);this.C.subscribe("height-change",f.JE,f);f=new p7(a);H(this,f);f.j(e);f=new y7(a,b,!1);H(this,f);f.j(c);f=new v7(a,b);H(this,f);f.j(c);f=new y7(a,b,!0);H(this,f);f.j(c);f=new tq(["div","ytp-volume-hover-area"]);H(this,f);f.j(c);this.o=new x8(a,b);H(this,this.o);this.o.j(f.element);this.o.vb(d.qb);this.J=new w8(a,b);H(this,this.J);this.J.j(f.element);this.D=new s7(a,
b);H(this,this.D);this.D.j(c);this.N=new uz(pa(this.Cj,!1),void 0,this);if(pt().webkitSetPresentationMode){var k=new u7(a,b);H(this,k);k.j(c)}d.bc&&(k=new l7(a,b),H(this,k),k.j(c));k=new R7(a);H(this,k);k.j(e);e=new T7(a,b,this.j);H(this,e);e.j(c);e=new t8(a,b);H(this,e);e.j(c);!d.zb&&d.Mc&&(e=new E8(a,b),H(this,e),e.j(c));e=new s8(a,b,this.j);H(this,e);this.j.H=e;e.j(c);b=new u8(a,b);H(this,b);b.j(c);d.qb&&(d=new nF(this.o.element),H(this,d),d.subscribe("hoverstart",this.tF,this),d=new nF(f.element),
H(this,d),d.subscribe("hoverend",this.sF,this));T(this,a,"resize",this.Jm);T(this,a,"fullscreentoggled",this.qF);T(this,a,"progresssync",pa(this.Cj,!0));T(this,a,"presentingplayerstatechange",this.rF);this.Jm()};var G8=function(a){var b=a.aa.V(),c;if(c=!!a.H.o&&!b.isMobile&&hz(a.aa).gb()){if(c=b.experiments.na("smooth_progress_bar"))a=a.C,a.B.V(),c=.25>M2(a.o)/a.F/(10*(window.devicePixelRatio||1));c=c||b.experiments.na("always_request_animation_frame")}return c};
var H8=function(a,b){a.aa.V();ky(hz(a.aa))||b?b&&(a.F.ea(),a.G.ea(),a.B.o.lg(1)):b||(a.F.show(),a.G.show(),a.Cj(!0))};
var I8=function(a){R.call(this,["div","ytp-title",["a","ytp-title-channel-logo",{href:"{{channelImageLink}}",target:"_blank",tabindex:12}],["div","ytp-title-text",["a",["ytp-title-link","yt-uix-sessionlink"],{tabindex:13,target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},"{{title}}"],["a","ytp-title-channel-name",{href:"{{channelNameLink}}",target:"_blank",tabindex:14},"{{channelName}}"]]]);this.o=a;this.B=null;this.G=this.oa["ytp-title-link"];this.F=this.oa["ytp-title-channel-logo"];
this.D=null;S(this,a,"videodatachange",this.C);S(this,a,"videoplayerreset",this.C);this.C()};var J8=function(a){var b=a.o.getVideoData(),c=b.videoId&&2==a.o.getPresentingPlayerType();c&&b.videoId==a.D?L(a.element,"ytp-title-extra-info"):(Yd(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Ph&&b.profilePicture?K8(a,b.videoId,b.author,b.Ph,b.profilePicture):(c=HG(a.o.V(),b.videoId,!1),yj(c,{method:"GET",jb:A(a.H,a,b.videoId),withCredentials:!0}))))};
var K8=function(a,b,c,d,e){d=a.o.V().protocol+"://"+IG(a.o.V())+d;a.F.style.backgroundImage="url("+e+")";xq(a,"channelImageLink",d);xq(a,"channelNameLink",d);xq(a,"channelName",Q("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.D=b;J8(a)};
var L8=function(a,b){R.call(this,["button",["ytp-watch-later-button","ytp-button"],{tabindex:16,title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.C=a;this.F=b.o;this.D=null;this.o=this.B=!1;this.R("click",this.CF,this);S(this,a,"videoplayerreset",this.EF);S(this,a,"WATCH_LATER_VIDEO_ADDED",this.Nx);S(this,a,"WATCH_LATER_VIDEO_REMOVED",this.fA);S(this,a,"WATCH_LATER_ERROR",this.DF);M8(this,2);N8(this);Lb(this,i6(b.o,this.element,3))};
var N8=function(a,b){if(b)a.update({title:b,image:null});else{var c=a.C.V();c.userDisplayName?a.update({title:Q("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:Q("YTP_WATCH_LATER"),image:null})}k6(a.F)};
var M8=function(a,b){if(b!=a.D){var c=a.element;switch(b){case 3:c.innerHTML=Ch();break;case 1:c.innerHTML=xh?'<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-53" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-53" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-53" /></svg>';break;
case 2:c.innerHTML=xh?'<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-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 4:c.innerHTML=xh?'<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.D=
b}};
var O8=function(a){var b=a.V();R.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{tabindex:30,target:"_blank",href:"{{url}}","aria-label":Q("YTP_URL_NAVIGATE_TO",{WEBSITE:IG(b)}),"data-sessionlink":"feature=player-watermark"}]);this.element.innerHTML=xh?'<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-24" /><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-25" /><path d="m 34,5.07 40,0 0,24 -40,0 z" id="ytp-svg-26" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-24" /><use class="ytp-svg-shadow" xlink:href="#ytp-svg-25" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-24" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-text" fill="none" xlink:href="#ytp-svg-26" /><use class="ytp-svg-fill ytp-svg-fill-logo-tube-lozenge" fill="#fff" xlink:href="#ytp-svg-25" /></svg>';this.B=
a;this.o=null;S(this,a,"videodatachange",this.C);this.C()};
var P8=function(a){rv.call(this);EH();var b=a.V(),c=a.ua(),d=AE(a);c.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL"));this.j=a;Uea(this);var e=hz(a);this.Fa=!1;this.Aa=!0;this.wa=!1;var f=new H6(a);H(this,f);f.j(c);var k=new j7(a);H(this,k);k.j(c);this.N=new b6(a);H(this,this.N);this.N.j(c);var l=new R(["div","ytp-gradient-top"]);H(this,l);l.j(c);this.ka=new Lq(l,250,!0);H(this,this.ka);this.D=new R(["div","ytp-chrome-top"]);H(this,this.D);this.D.j(c);this.ga=new Lq(this.D,250,!0);H(this,this.ga);
this.U=new N6(a);H(this,this.U);this.U.j(f.element);this.A=new S5(d,A(this.rE,this),b.useTabletControls);H(this,this.A);this.A.subscribe("autohideupdate",this.sE,this);this.o=new e6(a,b.useTabletControls||b.isMobile);H(this,this.o);this.o.j(c);this.J=new m6(a,this,A(this.Eq,this));H(this,this.J);this.J.j(c);this.T=new lB(a,this.J);H(this,this.T);this.T.j(c);this.P=!1;l=A(this.Fm,this);this.H=new $6(a,this,l);H(this,this.H);this.H.j(c);this.ha=new c7(a,this,0,l);H(this,this.ha);this.ha.j(this.D.element);
b.Ze&&(l=new L8(a,this),H(this,l),l.j(this.D.element));l=A(this.Ql,this);this.F=new S6(a,l);H(this,this.F);this.F.j(c);this.Y=new V6(a,this,l);H(this,this.Y);this.Y.j(this.D.element);l=A(this.Rl,this);this.G=new X6(a,l);H(this,this.G);this.G.j(c);this.$=new Z6(a,this,l);H(this,this.$);this.$.j(this.D.element);l=new I8(a);H(this,l);l.j(this.D.element);l=new d7(a);H(this,l);l.j(c);this.C="1"==b.A?new F8(a,this,this.A):null;if(b.Na){var m=new P5(d,A(this.Fp,this),A(this.jA,this),A(this.Ep,this));H(this,
m)}else T(this,d,"click",A(function(a){this.Ep(a)||this.Fp(a)},this));T(this,d,"touchstart",this.kA);this.K=new C6(a);H(this,this.K);this.K.subscribe("show",this.es,this);this.qa=!1;!b.zb&&b.xc&&(m=new O8(a),H(this,m),m.j(c));m=new P6(a);H(this,m);m.j(c);this.fa=a.getVideoData().videoId;this.B=null;this.la=[];this.da=new R(["div","",{tabindex:10}]);this.da.R("focus",this.Fv,this);this.ca=new R(["div","",{tabindex:47}]);this.ca.R("focus",this.Gv,this);switch(b.color){case "white":L(c,"ytp-color-white");
break;case "blue":L(c,"ytp-color-blue")}(this.W=b.useTabletControls?null:new J6(a,d,this.K,this.A,l,this.N,A(this.Gn,this)))&&H(this,this.W);T(this,a,"resize",this.Em);T(this,a,"fullscreentoggled",this.tE);T(this,a,"presentingplayerstatechange",this.uE);T(this,a,"videodatachange",this.ds);T(this,a,"videoplayerreset",this.Yz);T(this,a,"autonavvisibility",this.ah,this);T(this,a,"cardstatechange",this.Fq,this);T(this,a,"minimized",this.ae,this);T(this,a,"onFrescaStateChange",this.ae,this);Q8(this,e);
this.ah();this.Em();this.Da=[d.B,k.element,f.element,this.N.element,this.U.element]};var BE=function(a){a.j.app.V();yH(a.j);return a.wa||a.P||U6(a.F)||a7(a.H)||Y6(a.G)||yH(a.j)||a.j.app.V().Zk};var R8=function(a,b){if(!b)return!1;for(var c=0;c<a.Da.length;c++)if(xf(a.Da[c],b))return!1;return Wd(b,"ytp-player-content")||Wd(b,"html5-endscreen")||b==a.j.ua()?!1:!0};
var S8=function(a,b){if("3"==a.j.V().A){var c=hz(a.j);if((U(c,8)||U(c,4))&&(!U(c,2)||a.j.V().experiments.na("disable_native_controls_ended"))&&(c=Tl(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1};var CE=function(a){return!a.j.V().experiments.D&&a.j.Ia()};
var Q8=function(a,b){a.A.$a(128,!(b.gb()&&!U(b,32)));var c=3==a.j.getPresentingPlayerType();a.A.$a(256,c);var c=a.j.ua(),d;U(b,2)?d=["ended-mode"]:(d=[],U(b,8)?d.push("playing-mode"):U(b,4)&&d.push("paused-mode"),U(b,1)&&!U(b,32)&&d.push("buffering-mode"),U(b,32)&&d.push("seeking-mode"),U(b,64)&&d.push("unstarted-mode"));Eb(a.la,d)||($d(c,a.la),a.la=d,Xd(c,d));a.C&&H8(a.C,BE(a));d=a.j.V();var e=ky(b);M(c,"ytp-hide-controls","1"!=d.A||e);M(c,"ytp-native-controls","3"==d.A&&!e&&!U(b,2));if(U(b,128)){a.B||
(a.B=new W5(a.j),H(a,a.B),a.B.j(c));var c=a.B,f=b.j,e=c.C.V();d=f.message;var k="embedded"==e.Ba,l=f.messageKey,m,f=!1;"YTP_ERROR_GENERIC_WITHOUT_LINK"!=l||e.zb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==l?(m="https://get.adobe.com/flashplayer/",k=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=l||e.zb||(m="//"+IG(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",BG(e)&&!e.L&&(f=!0));m&&(d=Q(l,
{BEGIN_LINK:'<br/><a href="'+m+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(m=0;m<c.B.length;m++)c.ya(c.B[m]);c.B=[];xq(c,"content",new D5(d));if(f)for(m=A(c.D,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=S(c,d[e],"click",m),c.B.push(k);a.B.show()}else a.B&&(a.B.dispose(),a.B=null)};var T8=function(a,b,c){var d=c?b.element:a.element;window.document.activeElement&&xf(d,window.document.activeElement)&&(c?a:b).focus()};
var U8=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=U8(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 Uea=function(a){a=a.j.V();var b=a.C;if(ut("ytp-normal-css-loaded")){var c=ut("ytp-sprite-mode-css-loaded");b!=c&&Ci(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};var V8=function(){};var Z=function(a,b){if(b<a.B){var c=b+a.C,d=a.j[c];return d===W8?a.j[c]=[]:d}d=a.o[b];return d===W8?a.o[b]=[]:d};
var X8=function(a){var b=a;a=Vea;this.A=null;b||(b=[]);this.C=-1;this.j=b;a:{if(this.j.length){var b=this.j.length-1,c=this.j[b];if(c&&"object"==typeof c&&!da(c)){this.B=b- -1;this.o=c;break a}}this.B=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.B?(c+=-1,this.j[c]=this.j[c]||W8):this.o[c]=this.o[c]||W8};
var Y8=function(a,b){Oj.call(this);var c=b;c instanceof Kh||(c=new Kh(c));var c=this.W=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?ae(e):null)){var e=new X8(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),ZI: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=Z8[d]?Z8[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)Wea[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++)Ci(Error("Discrepancy in legacy config: "+
l[c]));l=this.W.args||{};this.X=new pG(l);H(this,this.X);this.sb=qu("detailpage"==this.X.Ba&&"blazer"!=this.X.j||"books"==this.X.j,l.enablesizebutton);this.la=qu(!1,l.player_wide);this.N=this.X.ib&&qu(!1,l.external_list);this.ka=new rv(this);H(this,this.ka);this.L=new fH(this);H(this,this.L);this.Wa=new fH(this,1);H(this,this.Wa);this.D=new H5(this);H(this,this.D);this.D.subscribe("resize",this.GC,this);this.J=1;this.Na={};this.X.storeUserVolume?(l=fj("yt-player-volume")||{},c=l.volume,l={volume:(0,window.isNaN)(c)?
100:je(Math.floor(c),0,100),muted:!!l.muted}):l={volume:100,muted:this.X.mute};this.T=l;this.aa=this.X.ib?new eH(this,1):new cH(this,1);H(this,this.aa);this.ha=this.A=null;this.Aa={};l=this.X;c=new RJ;wG(l)&&(c.D=!0,c.A=.1);l.experiments.na("streaming_xhr_min_progress_interval")&&(c.B=.05);l.experiments.na("streaming_xhr_bandwidth_duration")&&(c.j=.5,c.C=.25);l.Sa&&(c.o=l.Sa/8);this.Da=new HJ(c);this.Qa={internalvideodatachange:this.Xx,liveviewshift:this.DC,playbackready:this.Yx,playbackstarted:this.Zx,
statechange:this.$x,signatureexpired:this.tA};l=new SJ;c=this.L;l.o!=c&&(TJ(l),l.D={},l.o=c);c={};c.loaded=A(this.op,this);c.unloaded=A(this.pp,this);c.destroyed=A(this.pl,this);c.command_pause=$8(this.pauseVideo,this);c.command_play=$8(this.Ne,this);c.command_seek=$8(this.Wf,this);c.command_redirect_controls=A(this.Wq,this);c.command_stop_redirect_controls=A(this.Ti,this);c.publish_external_event=A(this.Hi,this);l.F=c;this.V().J.subscribe("vast_info_card_add",pa(l.J,"vast_info_card_add"),l);this.B=
l;H(this,this.B);this.H=new G_(this.X,"",this.B);l=new J1(this.X,1,this.H,this.D,A(this.O,this));a9(this,l,this.Qa);this.j=l;this.j.ga=this.Da;this.rb={airplayactivechange:this.Ox,airplayavailabilitychange:this.Px,beginseeking:this.AC,endseeking:this.BC,internalaudioformatchange:this.by,internalvideodatachange:this.IC,internalvideoformatchange:this.WA,playbackstalledatstart:this.zA,progresssync:this.FC,seekto:this.HC,onLoadProgress:this.pz,onVideoProgress:this.YA,playbackready:this.Uz,statechange:this.EC,
connectionissue:this.Jy,heartbeatparams:this.CC,videoelementevent:this.JC};this.K=this.C=null;this.Sa=this.Ta=-1;this.fa=this.G=this.F=null;this.ca={};this.qa=null;this.bb=new Td(this.D.qh,16,this.D);H(this,this.bb);this.Fa=!1;this.Y=!0;this.wa=this.o=null;this.U=1;this.ga=null;this.Mb=this.Va=!1;this.qb=null;this.$=0;this.Ha=new Z5(this.D.element);H(this,this.Ha);this.Ua=0;this.subscribe("crn_"+Y8.A,this.Vx,this);this.subscribe("crx_"+Y8.A,this.Wx,this);this.subscribe("crn_"+Y8.o,this.Zo,this);this.subscribe("crx_"+
Y8.o,this.Zo,this);this.D.initialize(a);xh=this.X.C;l=new rw(this.W.args);Vw(l)&&(this.j.Xg(l,A(this.hj,this)),uy(this.X)&&(c=l.videoId,c=(d=fj("yt-player-restore-playhead"))?d[c]:void 0,c&&(l.startSeconds=c)),gj("yt-player-restore-playhead"),(this.X.Aa||this.X.ed&&this.X.experiments.U)&&O1(this.j));this.H.o("fs",void 0);l=this.D;l.isDisposed();c=l.app.V();c.H||l.addClass("tag-pool-enabled");c.zb&&l.addClass("house-brand");"gvn"==c.j&&l.addClass("ytp-gvn");l.ca?l.K=Fi("yt-dom-content-change",l.mg,
l):l.$?S(l,window,"resize",l.mg,l):(c=yu()?A(l.Nu,l):A(l.mg,l),l.K=zi(c,250));l=this.aa;l.j=this.D.element;for(var m in l.A)l.j[m]=l.A[m];for(m in l.B)l.j[m]=l.B[m];m=Hh("fullscreenchange");"msfullscreenchange"==m&&(m="MSFullscreenChange");m&&T(this.ka,window.document,m,this.az);T(this.ka,window,"resize",this.iA);l=this.W.args;b9(this);m=d5(this);this.Oa("onVolumeChange",this.T);l&&jx(l)&&((c=uy(this.X))&&!this.N&&(l.fetch=0),c9(this,l),c&&!this.N?d9(this):Vw(m)||(l=this.o,c=A(this.tp,this),l.F=c,
l.D&&xi(l.F,0)));if(l=this.W.args.jsapicallback)ha(l)||(l=t(l)),l&&$8(A(l,r,this.X.qe),r);this.X.Ua||(kp("embedded"==this.X.Ba),this.X.pg=MG(this.X)&&!kb(sp()));e9(this,this.j);l=qt(this.X.K);"fmt.noneavailable"==l?nJ(this.j,l,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==l?nJ(this.j,l,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):this.X.Aa&&Vw(m)?f9(this):"leanback"!=this.X.Ba&&g9(this);this.da=new P8(this.L);H(this,this.da);tH(this.Wa,"init")};
var b9=function(a){a.A=j5.getTag(!0,!a.X.K);a.ha=a.A;a.C&&Y1(a.C,a.A);$x(a.A,a.U);a.X.useMediaVolume?(a.ga&&a.ka.ya(a.ga),a.ga=T(a.ka,a.A,"volumechange",a.zz)):a.A.setVolume(a.T.volume,a.T.muted);Oea(a.D,a.A);a=a.X.sc=a.A;a.src||a.load()};var h9=function(a){if(a.A){a.ga&&(a.ka.ya(a.ga),a.ga=null);a.C&&Z1(a.C);var b=a.D;b.o&&(pf(b.o),b.o=null);a.X.sc=null;j5.releaseTag(a.A);a.A=null}};
var Tq=function(a,b){a.X.H?(a.fa&&(Sf(a.A,a.fa.left,a.fa.top),dg(a.A,ve(a.fa)),a.fa=null),Uq(a.A),Z1(a.C),Y1(a.C,a.A),$x(a.A,a.U)):j5.releaseTag(b)};var e9=function(a,b){a.C!=b&&(a.C&&(TJ(a.B),mq(a,"cuerangesremoved",a.C.D.j.j||[]),i9(a)),b!=a.j&&(a.Aa[b.N]=b),a.C=b,b.ga=a.Da,a.A&&Y1(b,a.A),a9(a,b,a.rb),j9(a,b,b.getVideoData()),b.ca.j&&k9(a,"dataloaded",b,b.getVideoData()),mq(a,"cuerangesadded",a.C.D.j.j||[]),dy(b.getPlayerState())&&b2(b))};
var a9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};var i9=function(a){Z1(a.C);var b=a.C,c=a.rb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.C;b!=a.j&&(c=b.N,a.Aa[c]==b&&delete a.Aa[c]);a.C=null};var lq=function(a,b){return b?1==b?a.j:a.Aa[b]||null:a.C};var l9=function(a){var b=a.B,c=zJ();F(c,b.H,b);a.O("videoready",a.getVideoData())};var m9=function(a){!a.G&&a.Wa.V().pg&&(a.G=new B5(a),n9(a,a.G));if(a.G){var b=zp();C5(a.G,sp(),b);var c=a.G;c&&!c.H&&c.Xa(a.Wa)&&c.create();b&&a.G.load()}};
var n9=function(a,b){H(a,b);b.subscribe("loaded",a.op,a);b.subscribe("unloaded",a.pp,a);b.subscribe("command_pause",$8(a.pauseVideo,a));b.subscribe("command_play",$8(a.Ne,a));b.subscribe("command_seek",$8(a.Wf,a));b.subscribe("command_redirect_controls",a.Wq,a);b.subscribe("command_stop_redirect_controls",a.Ti,a);b.subscribe("publish_external_event",a.Hi,a)};var o9=function(a,b){b&&b.H&&("ad"==b.ra&&$d(a.D.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};var d5=function(a){return a.j.getVideoData()};
var g9=function(a){a.O("initializingmode");p9(a,2)};var f9=function(a){if(U(a.j.getPlayerState(),128))return!1;a.O("initializingmode");e9(a,a.j);p9(a,3);var b;(b=!a.X.H)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(h9(a),b9(a),Y1(a.j,a.A));P1(a.j);if(U(a.j.getPlayerState(),128))return!1;q9(a,3);return a.Mb=!0};var r9=function(a){return MG(a.X)&&!!zp()};
var $8=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);xi(function(){a.apply(b||this,c)},0)}};var s9=function(a,b){if(!(0,window.isNaN)(b)&&a.A){var c=1,c=a.X.T?t9:[1],c=1>b?eb(c,function(a){return a>=b}):gb(c,function(a){return a<=b});a.U!=c&&(a.U=c,a.j==a.C&&$x(a.A,c),a.O("onPlaybackRateChange",c))}};var u9=function(a,b){var c=lq(a,b);return c?c.qm():a.getVideoData().T};
var v9=function(a,b,c,d){if(a=lq(a,c))d=d||b,b=Pt(b,d,!0),dj("yt-player-quality",d,604800),h2(a,"m",b)};var w9=function(a,b){var c=lq(a,b);return c?c.Yf():0};var x9=function(a,b){var c=l2(a.j,b);if(a.C&&a.C!=a.j){var d=l2(a.C,b),e;for(e in d)c["ad_"+e]=d[e]}(d=y9(a))&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Wa.nj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return de(c)};var z9=function(a,b){return 3==a.getPresentingPlayerType()?my(a.G.N):2==b?a.Sa:a.Ta};
var A9=function(a){o9(a,a.F);o9(a,a.G);a.Va=!1;a.Ti();s9(a,1);a.Na={};a=a.H;var b=a.A;b.B={};b.A={};a.B=!1};var j9=function(a,b){TJ(a.B);$x(a.A,a.j==a.C?a.U:1);a.Oa("videoplayerreset",b)};
var k9=function(a,b,c,d){if(a.A){if("dataloaded"==b)if(CG(c.V(),d.B),a.C==a.j){a.X.Ua||kp("embedded"==a.X.Ba);var e=r9(a),f;if(f=!e)f=d5(a).$n&&!a.X.isMobile;if(f){var k="YTP_DEVICE_FALLBACK";K5||ot()||ht("xbox")&&ht("trident")||nt()||(k="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");nJ(a.j,"html5.unsupportedads",k,void 0)}else if(f=d5(a),!Ww(f)||e||Kw(a.j.j)){Xw(f);e&&p9(a,6);e=!1;!a.F&&c5.Xa(a)&&(a.F=new c5(a),a.F&&n9(a,a.F),e=!0);try{(k=a.F)&&!k.H&&k.Xa(a.Wa)&&k.create()}catch(l){Ci(l),a.j&&
a.j.Ri("ad")}e&&(e=a.F,f=d5(a),k=lq(a),f.subscribe("cuepointupdated",e.Oy,e),e.ca=f,e=h5(e),null!=e&&(e.G=k),a.F.subscribe("overlay_ad_open",pa(a.sq,!0),a),a.F.subscribe("overlay_ad_close",pa(a.sq,!1),a));m9(a);l9(a)}else nJ(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else l9(a);1==c.N&&(a.getVideoData().Hh?(k=a.A,k.Rj=!0,k.muted=!0):(a.A.Rj=!1,B9(a,a.T)),a.getVideoData().Ea&&!a.X.Xe&&nJ(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),k=xA?a.X.fd:a.getVideoData().je,
Xw(d)&&(d.ka||d.Na||d.C.focEnabled||d.C.rmktEnabled||k)&&(k=a.getVideoData(),C9(a,"part2viewed",1,0x8000000000000),C9(a,"engagedview",Math.max(1,1E3*k.Oe),0x8000000000000),k.Ea||(k=1E3*k.lengthSeconds,C9(a,"videoplaytime25",.25*k,k),C9(a,"videoplaytime50",.5*k,k),C9(a,"videoplaytime75",.75*k,k),C9(a,"videoplaytime100",k,0x8000000000000),C9(a,"conversionview",k,0x8000000000000))));a.Oa("videodatachange",b,d,c.N)}};
var D9=function(a){var b=!1,c=a.getVideoData();c&&c.o&&lq(a).gb()&&(b=lr[c.o.video.quality],b=1440<=b||1080<=b&&30<c.o.video.fps);b?$5(a.Ha):a6(a.Ha)};var y9=function(a){a=a.Ha;var b=!a.j,c="";$5(a);if(a.o)try{a.o.getExtension("WEBGL_debug_renderer_info"),c=a.o.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(d){}b&&a6(a);return c};
var d9=function(a){var b=E9();if(b)if(b.list){if(a.o&&a.o.C.toString()==b.list)if(0<=b.index){var c=b.video;a.L.Ia()&&((c=c[a.o.j])&&c.encrypted_id!=a.o.nb().videoId||(b.index=a.o.j));px(a.o,b);a.wa&&F9(a,a.wa)}else a.wa=null}else a.$j()};var c9=function(a,b){if(a.o){a.o.unsubscribe("error",a.$j,a);Mb(a.o);a.o=null;var c=jH(a.B,"playlist");c&&(ob(a.B.j,c),c.destroy())}b&&(a.N&&(b.fetch=0),a.o=new dx(b),a.o.subscribe("error",a.$j,a))};
var C9=function(a,b,c,d){b in a.Na||(c=new fq(c,d,{id:b,priority:1}),c.j=Y8.o,a.j.D.cb([c]),a.Na[b]=c)};var p9=function(a,b){b!=a.J&&(2==b&&(q9(a,-1),q9(a,5)),a.J=b,a.O("appstatechange",b))};var q9=function(a,b){a.C&&2==a.C.N?a.Sa!=b&&(a.Sa=b,a.Hf("onAdStateChange",b)):a.Ta!=b&&(a.Ta=b,a.Hf("onStateChange",b))};var G9=function(a,b,c){var d=new rw(b);b&&jx(b)?(uy(a.X)&&!a.N&&(b.fetch=0),c9(a,b)):a.o&&c9(a,null);a.N=qu(!1,b.external_list);uy(a.X)&&!a.N&&d9(a);return H9(a,d,c)};
var I9=function(a,b){a.K&&a.K.getVideoData().videoId==b.videoId||(b.Sa=!0,a.K||(a.K=new J1(a.X,1,a.H,a.D,A(a.O,a)),a.K.ga=a.Da),a.K.Xg(b,A(a.hj,a)),O1(a.K,!0))};
var H9=function(a,b,c){if(!Wu("_start",a.H.j)){var d=a.H.j;Xu("yt_sts","p",d);Ru("_start",void 0,d);a.H.info("srt",0)}if(a.K&&a.K.getVideoData().videoId==b.videoId){d=a.K;a.K=null;b=d;c=a.j;var e=a.Qa,f;for(f in e)c.unsubscribe(f,e[f],a);a.j.dispose();a.j=b;a9(a,b,a.Qa);A9(a)}else{d=lq(a,c);if(!d)return!1;a.bb.stop();J9(a,c);d.Xg(b,A(a.hj,a))}if(!N1(d))return!1;a.Fa&&(d.Ua=!1,a.Fa=!1);if(d==a.j)return p9(a,1),f9(a);P1(d);return!0};var K9=function(a,b,c){c=lq(a,c);b&&c==a.j&&(c.getVideoData().Xf=!0)};
var L9=function(a,b,c){var d=lq(a,c);d&&(J9(a,c),d.Xg(b,A(a.hj,a)),N1(d)&&(CG(d.V(),b.B),d==a.j&&(p9(a,1),g9(a))))};
var M9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");if(a.L.Ia()||"detailpage"!=a.X.Ba){c=a.H;var e=c.A;e.B={};e.A={};c.B=!1;a.H.reset();d?(b={video_id:b,list:d},a.Y=!1,N9(a,b,void 0,void 0,void 0)):G9(a,{video_id:b},1)}else"gaming"==a.X.j?a.O("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.X.getVideoUrl(b,d),d=c||{},d.lact=IA(),a.X.experiments.na("send_presence_signal_vis_desktop")&&(d.vis=bH(a.X)),t("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?
window.spf.navigate(b):oy(b))};var N9=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},x(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;c9(a,b);b=a.o;a=A(a.tp,a);b.F=a;b.D&&xi(b.F,0)};var Mx=function(a){uy(a.X)&&!a.N&&d9(a);return!(!a.o||!a.o.hasNext())};var O9=function(a,b){a.Oa("autonavcancel",b)};
var P9=function(a,b){if(a.N&&!a.L.Ia())a.O("onPlaylistNext");else if(a.o)uy(a.X)&&!a.L.Ia()?F9(a,"yt.www.watch.lists.next"):a.o.D?a.o.hasNext(b)&&H9(a,mx(a.o,b),1):(mx(a.o,b),a.Y=!1);else if(Dx(a.X,a.getVideoData(),a.o)&&lq(a,1).getVideoData().F){var c=P(lq(a,1).getVideoData().F,tx)[0];M9(a,c.nb().videoId,c.$,c.Pe())}};
var Q9=function(a,b){if(a.N&&!a.L.Ia())a.O("onPlaylistPrevious");else if(a.o)if(uy(a.X)&&!a.L.Ia())F9(a,"yt.www.watch.lists.prev");else if(a.o.D){var c=a.o;(c.G||b||0<=c.j-1)&&H9(a,ox(a.o,b),1)}else ox(a.o),a.Y=!1};var F9=function(a,b){var c=t(b);if(c){var d=E9();d&&d.list&&c();a.wa=null}else a.wa=b};var R9=function(a,b){a.N&&!a.L.Ia()?a.O("onPlaylistIndex",b):a.o&&(a.o.D?H9(a,a.o.nb(b),1):a.Y=!1,nx(a.o,b))};var E9=function(){var a=t("yt.www.watch.lists.getState");return a?a():null};
var S9=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 fq(1E3*c,1E3*d,b);c.j=Y8.A;T9(a,[c],1);return!0};var T9=function(a,b,c){var d=lq(a,c);d&&(d.D.cb(b),c&&a.getPresentingPlayerType()!=c||mq(a,"cuerangesadded",b))};var U9=function(a){var b=K(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
var B9=function(a,b,c){a.T=b;c&&a.X.storeUserVolume&&!a.X.useMediaVolume&&!b.unstorable&&dj("yt-player-volume",b,2592E3);V9(a);a.X.useMediaVolume||(b=ec(b),a.X.storeUserVolume||(b.unstorable=!0),a.Oa("onVolumeChange",b))};var V9=function(a){var b=a.getVideoData();b.Hh||a.A.setVolume(a.T.volume*(a.X.useMediaVolume?rw.j:b.Gh),a.T.muted)};
var W9=function(a,b){var c=!!b,d=!!a.Ua!=c;a.Ua=b;d&&(a.H.o("fsc"),a.X.Jg=c,a.D.qh(),a.Oa("fullscreentoggled",c),d=d5(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId},a.Wa.ce()&&(c.listId=a.Wa.ce()),a.X.experiments.na("new_stop_video")&&(c.time=a.getCurrentTime()),a.O("onFullscreenChange",c))};
var mq=function(a,b,c){a.O(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.Hi(d,P(c,gq))};var X9=function(a,b){if(a.X.experiments.na("new_stop_video")){var c=a.j.getVideoData(),c=new rw({video_id:a.j.getVideoData().videoId,oauth_token:c.oauthToken});L9(a,c,1)}else J9(a,b)};
var J9=function(a,b){Pu(a.$);a.$=0;var c=lq(a,b);c&&1!=a.J&&2!=a.J&&(TJ(a.B),1==b&&o9(a,a.F),X1(c),a.X.experiments.na("legacy_cue_range_behavior2")||(mq(a,"cuerangesremoved",a.C.D.j.j||[]),c.D.reset()))};var Y9=function(a,b){if(BH(a.Wa)){var c=a.ca.play_pause?a.qa:null;c?c.Td("control_play"):a.Ne(b)}};var Z9=function(a,b,c,d,e){var f=lq(a,e);if(!f||2!=f.N&&!ax(f.getVideoData()))(f=a.ca.seek?a.qa:null)?f.Td("control_seek",b):a.Wf(b,c,d,e)};
var $9=function(a,b,c){a.sb=b;a.la=c;a.Oa("sizestylechange",b,c);a.X.experiments.na("efficient_resize")&&a.D.qh()};var oH=function(a,b){if(a.L.Ia()!=b)if(Ih())if(b){var c=a.D.element,d=Fh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Fh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],window.document))&&c.call(window.document);else W9(a,b?2:0)};
var nH=function(a,b,c,d,e){c=a.X.ib&&a.F&&b==a.F.ra?a.F.fe(c,d):(a.X.ib||e)&&a.G&&b==a.G.ra?a.G.fe(c,d):b&&c?(a=jH(a.B,b))?a.fe(c,d):null:null;return c};var a$=function(a,b,c){if(b){if(a.X.ib&&a.F&&b==a.F.ra)return a.F.Re();if((a.X.ib||c)&&a.G&&b==a.G.ra)return a.G.Re()}else return b=XJ(a.B),a.X.ib&&a.F&&b.push(a.F.ra),(a.X.ib||c)&&a.G&&b.push(a.G.ra),b;return XJ(a.B,b)};var xn=xn||{},r=this,la="closure_uid_"+(1E9*Math.random()>>>0),ma=0,K=Date.now||function(){return+new Date};B(sa,Error);sa.prototype.name="CustomError";var We;var Ta=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Aa=/&/g,Ba=/</g,Ca=/>/g,Da=/"/g,Ea=/'/g,Fa=/\x00/g,za=/[\x00&<>"']/,Ka=/&([^;\s<&]+);?/g,an={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},$m={"'":"\\'"},Qa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Xa=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(x(a))return x(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},Xea=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(x(a))return x(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=
c;c--)if(c in a&&a[c]===b)return c;return-1},F=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=x(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Zd=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=x(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},P=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=x(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));return e},le=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;F(a,function(c,k){e=b.call(d,e,c,k,a)});return e},Gh=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=x(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},
Fg=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=x(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};G.prototype.La=!1;G.prototype.isDisposed=function(){return this.La};G.prototype.dispose=function(){this.La||(this.La=!0,this.S())};G.prototype.S=function(){if(this.Ca)for(;this.Ca.length;)this.Ca.shift()()};var hc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");jc.prototype.stopPropagation=function(){this.o=!0};jc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.bq=!1};lc[" "]=w;var oc;a:{var b$=r.navigator;if(b$){var c$=b$.userAgent;if(c$){oc=c$;break a}}oc=""};var Kf=pc(),vc=nc("Trident")||nc("MSIE"),uc=nc("Edge"),eF=uc||vc,tc=nc("Gecko")&&!(Ma(oc,"WebKit")&&!nc("Edge"))&&!(nc("Trident")||nc("MSIE"))&&!nc("Edge"),wc=Ma(oc,"WebKit")&&!nc("Edge"),K5=wc&&nc("Mobile"),sM=nc("Macintosh"),dL=nc("Android"),XK=rc(),YK=nc("iPad"),Ac=function(){if(Kf&&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={},d$=r.document,Xf=d$&&vc?xc()||("CSS1Compat"==d$.compatMode?
(0,window.parseInt)(Ac,10):5):void 0;var Wc=!vc||9<=Xf,Yea=vc&&!yc("9");!wc||yc("528");tc&&yc("1.9b")||vc&&yc("8")||Kf&&yc("9.5")||wc&&yc("528");tc&&!yc("8")||vc&&yc("9");var Rca="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.j=a;a.defaultPrevented&&this.preventDefault()};
Cc.prototype.stopPropagation=function(){Cc.M.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};Cc.prototype.preventDefault=function(){Cc.M.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Yea)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.j))return!1;var e=this.j[a];b=Kc(e,b,c,d);return-1<b?(Hc(e[b]),pb(e,b),0==e.length&&(delete this.j[a],this.o--),!0):!1};Ic.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.j)if(!a||c==a){for(var d=this.j[c],e=0;e<d.length;e++)++b,Hc(d[e]);delete this.j[c];this.o--}return b};var Rc="closure_lm_"+(1E6*Math.random()|0),$c={},Uc=0,cd="__closure_events_fn_"+(1E9*Math.random()>>>0);B(J,G);J.prototype[Ec]=!0;h=J.prototype;h.Wg=function(a){this.ha=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.Z=function(a){var b,c=this.ha;if(c){b=[];for(var d=1;c;c=c.ha)b.push(c),++d}c=this.Na;d=a.type||a;if(x(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.o&&0<=k;k--)f=a.currentTarget=b[k],e=dd(f,d,!0,a)&&e;a.o||(f=a.currentTarget=c,e=dd(f,d,!0,a)&&e,a.o||(e=dd(f,d,!1,a)&&e));if(b)for(k=0;!a.o&&k<b.length;k++)f=a.currentTarget=b[k],e=dd(f,d,!1,a)&&e;return e};
h.S=function(){J.M.S.call(this);this.removeAllListeners();this.ha=null};h.R=function(a,b,c,d){return Jc(this.kd,String(a),b,!1,c,d)};h.ya=function(a,b,c,d){return this.kd.remove(String(a),b,c,d)};h.removeAllListeners=function(a){return this.kd?this.kd.removeAll(a):0};ed.prototype.get=function(){var a;0<this.o?(this.o--,a=this.j,this.j=a.next,a.next=null):a=this.A();return a};ed.prototype.put=function(a){this.B(a);this.o<this.C&&(this.o++,a.next=this.j,this.j=a)};var jd;var sd=new ed(function(){return new md},function(a){a.reset()},100);ld.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.o=null),a.next=null);return a};md.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};md.prototype.reset=function(){this.next=this.scope=this.j=null};var od,qd=!1,rd=new ld;zd.prototype.reset=function(){this.context=this.o=this.A=this.j=null;this.B=!1};var Bd=new ed(function(){return new zd},function(a){a.reset()},100);xd.prototype.then=function(a,b,c){return Ed(this,ha(a)?a:null,ha(b)?b:null,c)};vd(xd);xd.prototype.cancel=function(a){0==this.j&&nd(function(){var b=new Kd(a);Fd(this,b)},this)};xd.prototype.H=function(a){this.j=0;yd(this,2,a)};xd.prototype.J=function(a){this.j=0;yd(this,3,a)};
xd.prototype.G=function(){for(var a=null;a=Gd(this);)Hd(this,a,this.j,this.F);this.D=!1};var Od=hd;B(Kd,sa);Kd.prototype.name="cancel";B(Pd,J);h=Pd.prototype;h.enabled=!1;h.za=null;h.Nv=function(){if(this.enabled){var a=K()-this.B;0<a&&a<.8*this.j?this.za=this.o.setTimeout(this.A,this.j-a):(this.za&&(this.o.clearTimeout(this.za),this.za=null),this.Z("tick"),this.enabled&&(this.za=this.o.setTimeout(this.A,this.j),this.B=K()))}};h.start=function(){this.enabled=!0;this.za||(this.za=this.o.setTimeout(this.A,this.j),this.B=K())};h.stop=function(){this.enabled=!1;this.za&&(this.o.clearTimeout(this.za),this.za=null)};
h.S=function(){Pd.M.S.call(this);this.stop();delete this.o};B(Td,G);h=Td.prototype;h.yg=0;h.S=function(){Td.M.S.call(this);this.stop();delete this.j;delete this.o};h.start=function(a){this.stop();this.yg=Rd(this.A,n(a)?a:this.B)};h.Of=function(a){this.isActive()||this.start(a)};h.stop=function(){this.isActive()&&Sd(this.yg);this.yg=0};h.isActive=function(){return 0!=this.yg};h.Tn=function(){this.yg=0;this.j&&this.j.call(this.o)};ee.prototype.Zb=function(a){var b=[];fe(this,a,b);return b.join("")};var ie={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},he=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=ne.prototype;h.clone=function(){return new ne(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=pe.prototype;h.getWidth=function(){return this.right-this.left};h.getHeight=function(){return this.bottom-this.top};h.clone=function(){return new pe(this.top,this.right,this.bottom,this.left)};h.contains=function(a){return this&&a?a instanceof pe?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=qe.prototype;h.clone=function(){return new qe(this.width,this.height)};h.ig=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=se.prototype;h.clone=function(){return new se(this.left,this.top,this.width,this.height)};h.contains=function(a){return a instanceof se?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 Zea={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 ye=/<[^>]*>|&[^;]+;/g,SZ=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),aR=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),ZQ=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]"),$Q=/^http:\/\/.*/,$ea=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
YQ=/\s+/,bR=/[\d\u06f0-\u06f9]/;ze.prototype.Ie=!0;ze.prototype.md=function(){return this.j};ze.prototype.toString=function(){return"Const{"+this.j+"}"};var Ae={};De.prototype.Ie=!0;var Ee={};De.prototype.md=function(){return this.j};var afa=Fe(""),bfa=/^[-,."'%_!# a-zA-Z0-9]+$/;Ge.prototype.Ie=!0;Ge.prototype.md=function(){return this.j};Ge.prototype.Sk=!0;Ge.prototype.gf=function(){return 1};var Ke=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,He={};Le.prototype.Ie=!0;Le.prototype.md=function(){return""};Le.prototype.Sk=!0;Le.prototype.gf=function(){return 1};var Me={};Oe.prototype.Sk=!0;Oe.prototype.gf=function(){return this.o};Oe.prototype.Ie=!0;Oe.prototype.md=function(){return this.j};var e$=/^[a-zA-Z0-9-]+$/,cfa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},dfa={EMBED:!0,IFRAME:!0,LINK:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,TEMPLATE:!0},Pe={};Se("<!DOCTYPE html>",0);Se("",0);var gf=!vc||9<=Xf,sf=!tc&&!vc||vc&&9<=Xf||tc&&yc("1.9.1");vc&&yc("9");var wf=vc||Kf||wc;var af={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=Ue.prototype;h.ia=function(a){return x(a)?this.j.getElementById(a):a};h.Pv=function(a,b,c){return ff(this.j,arguments)};h.createElement=function(a){return this.j.createElement(a)};h.appendChild=lf;h.contains=xf;var Nf={},ng=/[^\d]+$/,og={cm:1,"in":1,mm:1,pc:1,pt:1},pg={em:1,ex:1};var sg="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""};qg.prototype.next=function(){throw sg;};qg.prototype.Rb=function(){return this};h=vg.prototype;h.Za=function(){return this.xa};h.Ja=function(){zg(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};h.Ma=function(){zg(this);return this.j.concat()};h.xe=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(xg(this.o,c)&&this.o[c]==a)return!0}return!1};h.equals=function(a,b){if(this===a)return!0;if(this.xa!=a.Za())return!1;var c=b||yg;zg(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
h.isEmpty=function(){return 0==this.xa};h.clear=function(){this.o={};this.be=this.xa=this.j.length=0};h.remove=function(a){return xg(this.o,a)?(delete this.o[a],this.xa--,this.be++,this.j.length>2*this.xa&&zg(this),!0):!1};h.get=function(a,b){return xg(this.o,a)?this.o[a]:b};h.set=function(a,b){xg(this.o,a)||(this.xa++,this.j.push(a),this.be++);this.o[a]=b};h.forEach=function(a,b){for(var c=this.Ma(),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 vg(this)};
h.Rb=function(a){zg(this);var b=0,c=this.be,d=this,e=new qg;e.next=function(){if(c!=d.be)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw sg;var e=d.j[b++];return a?e:d.o[e]};return e};var Ig=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Wg=/#|$/,Yg=/[?&]($|#)/;h=O.prototype;h.toString=function(){var a=[],b=this.B;b&&a.push(ih(b,f$,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(ih(b,f$,!0),"@"),a.push(wa(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.A)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(ih(c,"/"==c.charAt(0)?efa:ffa,!0));(c=this.j.toString())&&a.push("?",c);(c=this.hf())&&a.push("#",ih(c,gfa));return a.join("")};
h.resolve=function(a){var b=this.clone(),c=!!a.B;c?$g(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?ah(b,a.o):c=null!=a.C;var d=a.A;if(c)bh(b,a.C);else if(c=!!a.A){if("/"!=d.charAt(0))if(this.o&&!this.A)d="/"+d;else{var e=b.A.lastIndexOf("/");-1!=e&&(d=b.A.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ha(e,"./")||Ha(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?ch(b,d):c=""!==a.j.toString();c?dh(b,eh(a.j.toString())):c=!!a.H;c&&(b.H=a.hf());return b};h.clone=function(){return new O(this)};h.Sn=function(){return this.j.toString()};h.hf=function(){return this.H};var f$=/[#\/\?@]/g,ffa=/[\#\?:]/g,efa=/[\#\?]/g,jh=/[\#\?@]/g,gfa=/#/g;h=fh.prototype;h.Za=function(){sh(this);return this.xa};h.remove=function(a){sh(this);a=uh(this,a);return wg(this.j,a)?(this.o=null,this.xa-=this.j.get(a).length,this.j.remove(a)):!1};
h.clear=function(){this.j=this.o=null;this.xa=0};h.isEmpty=function(){sh(this);return 0==this.xa};h.xe=function(a){var b=this.Ja();return E(b,a)};h.Ma=function(){sh(this);for(var a=this.j.Ja(),b=this.j.Ma(),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.Ja=function(a){sh(this);var b=[];if(x(a))vh(this,a)&&(b=rb(b,this.j.get(uh(this,a))));else{a=this.j.Ja();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};
h.set=function(a,b){sh(this);this.o=null;a=uh(this,a);vh(this,a)&&(this.xa-=this.j.get(a).length);this.j.set(a,[b]);this.xa++;return this};h.get=function(a,b){var c=a?this.Ja(a):[];return 0<c.length?String(c[0]):b};h.toString=function(){if(this.o)return this.o;if(!this.j)return"";for(var a=[],b=this.j.Ma(),c=0;c<b.length;c++)for(var d=b[c],e=wa(d),d=this.Ja(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+wa(d[f]));a.push(k)}return this.o=a.join("&")};
h.clone=function(){var a=new fh;a.o=this.o;this.j&&(a.j=this.j.clone(),a.xa=this.xa);return a};h.extend=function(a){for(var b=0;b<arguments.length;b++)Dg(arguments[b],function(a,b){th(this,b,a)},this)};var xh=void 0;var Eh=wc?"webkit":tc?"moz":vc?"ms":Kf?"o":"",g$=t("yt.dom.getNextId_");if(!g$){g$=function(){return++hfa};q("yt.dom.getNextId_",g$,void 0);var hfa=0};var Lh={enablejsapi:1},Mh={},Nh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Kh.prototype.clone=function(){var a=new Kh,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 Sh=window.document.currentScript&&-1!=window.document.currentScript.src.indexOf("?loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",h$=0<window.location.hash.indexOf("__CastInternalExtensionIds__"),i$=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm"],ifa=["hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo","eojlgccfgnjlphjnlopmadngcgmmdgpk"],j$=["fjhoaacokmgbjemoflkofnenfaiekifl"],jfa=["ekpaaapppgpmolpcldedioblbkmijaca",
"lhkfccafpkdlaodkicmokbmfapjadkij","ibiljbkambkbohapfhoonkcpcikdglop","enhhojjnijigcajfphajepfemndkmdlo"],k$=h$?i$.concat(ifa):i$,kfa=h$?jfa.concat(j$):j$,Qh=window.navigator.presentation?k$.concat(kfa):k$;var D6=nc("Firefox"),uG=rc()||nc("iPod"),Bw=nc("iPad"),vG=nc("Android")&&!(qc()||nc("Firefox")||pc()||nc("Silk")),Dl=qc(),yA=nc("Safari")&&!(qc()||nc("Coast")||pc()||nc("Edge")||nc("Silk")||nc("Android"))&&!(rc()||nc("iPad")||nc("iPod"));var gi=K(),Yh=null,ei=Array(50),di=-1,fi=!1;var ri={};B(si,G);h=si.prototype;h.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.C;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.C=e+3;d.push(e);return e};h.unsubscribe=function(a,b,c){if(a=this.o[a]){var d=this.j;if(a=eb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Lb(a)}return!1};h.Lb=function(a){var b=this.j[a];if(b){var c=this.o[b];0!=this.B?(this.A.push(a),this.j[a+1]=w):(c&&ob(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
h.O=function(a,b){var c=this.o[a];if(c){this.B++;for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];try{for(e=0,f=c.length;e<f;e++){var k=c[e];this.j[k+1].apply(this.j[k+2],d)}}finally{if(this.B--,0<this.A.length&&0==this.B)for(;c=this.A.pop();)this.Lb(c)}return 0!=e}return!1};h.clear=function(a){if(a){var b=this.o[a];b&&(F(b,this.Lb,this),delete this.o[a])}else this.j.length=0,this.o={}};
h.Za=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.Za(b);return a};h.S=function(){si.M.S.call(this);this.clear();this.A.length=0};var vi=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",vi,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ei=window.yt&&window.yt.msgs_||t("window.ytcfg.msgs")||{};q("yt.msgs_",Ei,void 0);
var ra=function(a,b){var c=b||{},d=a in Ei?Ei[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},Vs=window.performance&&window.performance.now?function(){return window.performance.now()}:K;var lfa=t("yt.pubsub.instance_")||new si;si.prototype.subscribe=si.prototype.subscribe;si.prototype.unsubscribeByKey=si.prototype.Lb;si.prototype.publish=si.prototype.O;si.prototype.clear=si.prototype.clear;q("yt.pubsub.instance_",lfa,void 0);var Ii=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Ii,void 0);var Ki=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ki,void 0);var Ji=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Ji,void 0);
var Hi=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Hi,void 0);B(Pi,Oi);Pi.prototype.Za=function(){var a=0;tg(this.Rb(!0),function(){a++});return a};Pi.prototype.clear=function(){var a=ug(this.Rb(!0)),b=this;F(a,function(a){b.remove(a)})};B(Qi,Pi);h=Qi.prototype;h.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};h.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};h.get=function(a){a=this.j.getItem(a);if(!x(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};h.remove=function(a){this.j.removeItem(a)};h.Za=function(){return this.j.length};
h.Rb=function(a){var b=0,c=this.j,d=new qg;d.next=function(){if(b>=c.length)throw sg;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!x(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};h.clear=function(){this.j.clear()};h.key=function(a){return this.j.key(a)};B(Ri,Qi);B(Si,Qi);Ti.prototype.set=function(a,b){n(b)?this.j.set(a,de(b)):this.j.remove(a)};Ti.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return ae(b)}catch(c){throw"Storage: Invalid value was encountered";}};Ti.prototype.remove=function(a){this.j.remove(a)};B(Ui,Ti);Ui.prototype.set=function(a,b){Ui.M.set.call(this,a,Wi(b))};Ui.prototype.o=function(a){a=Ui.M.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Ui.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};B(Xi,Ui);Xi.prototype.set=function(a,b,c){if(b=Wi(b)){if(c){if(c<K()){Xi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=K()}Xi.M.set.call(this,a,b)};Xi.prototype.o=function(a,b){var c=Xi.M.o.call(this,a);if(c)if(!b&&Yi(c))Xi.prototype.remove.call(this,a);else return c};B(Zi,Xi);var cj,l$=new Ri;cj=l$.isAvailable()?new Zi(l$):null;var ej,m$=new Si;ej=m$.isAvailable()?new Zi(m$):null;var bk={WF:"atp",WH:"ska",GH:"que",lH:"mus",TH:"sus"};var uj=null;"undefined"!=typeof window.XMLHttpRequest?uj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(uj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var wj={"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"};Ej.prototype.D=function(a,b,c,d){b?a(d):a({text:c.responseText})};Ej.prototype.C=function(a,b){a(Error("Request error: "+b.status))};Ej.prototype.F=function(a){a(Error("request timed out"))};Hj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.j+",status:"+this.status+"}"};B(Oj,G);Oj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.P.subscribe(a,b,c)};Oj.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.P.unsubscribe(a,b,c)};Oj.prototype.Lb=function(a){return this.isDisposed()?!1:this.P.Lb(a)};Oj.prototype.O=function(a,b){return this.isDisposed()?!1:this.P.O.apply(this.P,arguments)};B(Pj,Oj);Pj.prototype.dc=function(){return this.screens};Pj.prototype.contains=function(a){return!!Mj(this.screens,a)};Pj.prototype.get=function(a){return a?Nj(this.screens,a):null};Pj.prototype.info=function(a){ai(this.D,a)};B(Tj,Oj);var n$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=Tj.prototype;h.start=function(){!this.j&&(0,window.isNaN)(this.za)&&this.Rq()};h.stop=function(){this.j&&(this.j.abort(),this.j=null);(0,window.isNaN)(this.za)||(Ai(this.za),this.za=window.NaN)};h.S=function(){this.stop();Tj.M.S.call(this)};h.Rq=function(){this.za=window.NaN;this.j=yj(Fj(this.D,"/pairing/get_screen"),{method:"POST",Ab:{pairing_code:this.C},timeout:5E3,jb:A(this.sC,this),onError:A(this.rC,this),Ud:A(this.tC,this)})};
h.sC=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.O("pairingComplete",new hi(c))};h.rC=function(a){this.j=null;a.status&&404==a.status?this.o>=n$.length?this.O("pairingFailed",Error("DIAL polling timed out")):(a=n$[this.o],this.za=xi(A(this.Rq,this),a),this.o++):this.O("pairingFailed",Error("Server error "+a.status))};h.tC=function(){this.j=null;this.O("pairingFailed",Error("Server not responding"))};B(Uj,Pi);Uj.prototype.set=function(a,b){this.o.set(this.j+a,b)};Uj.prototype.get=function(a){return this.o.get(this.j+a)};Uj.prototype.remove=function(a){this.o.remove(this.j+a)};Uj.prototype.Rb=function(a){var b=this.o.Rb(!0),c=this,d=new qg;d.next=function(){for(var d=b.next();d.substr(0,c.j.length)!=c.j;)d=b.next();return a?d.substr(c.j.length):c.o.get(d)};return d};h=Wj.prototype;h.Za=function(){return this.j.Za()};h.removeAll=function(a){a=Bg(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};h.remove=function(a){return this.j.remove(Yj(a))};h.clear=function(){this.j.clear()};h.isEmpty=function(){return this.j.isEmpty()};h.contains=function(a){return wg(this.j,Yj(a))};h.Ja=function(){return this.j.Ja()};h.clone=function(){return new Wj(this)};h.equals=function(a){return this.Za()==Ag(a)&&Zj(this,a)};h.Rb=function(){return this.j.Rb(!1)};ak.prototype.equals=function(a){return a?this.id==a.id:!1};var ek=/\s*;\s*/;h=ck.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(K()+1E3*c)).toUTCString();this.j.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(ek),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.Ma=function(){return dk(this).keys};h.Ja=function(){return dk(this).values};h.isEmpty=function(){return!this.j.cookie};h.Za=function(){return this.j.cookie?(this.j.cookie||"").split(ek).length:0};
h.xe=function(a){for(var b=dk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};h.clear=function(){for(var a=dk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};var gk=new ck(window.document);gk.o=3950;var xk,nk="";B(yk,Pj);h=yk.prototype;h.start=function(){zk(this)&&this.O("screenChange");!fj("yt-remote-lounge-token-expiration")&&Ak(this);Ai(this.j);this.j=xi(A(this.start,this),1E4)};h.gj=function(a,b){zk(this);Qj(this,a);Bk(this,!1);this.O("screenChange");b(a);a.token||Ak(this)};h.remove=function(a,b){var c=zk(this);Sj(this,a)&&(Bk(this,!1),c=!0);b(a);c&&this.O("screenChange")};
h.aj=function(a,b,c,d){var e=zk(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Bk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.O("screenChange")};h.S=function(){Ai(this.j);yk.M.S.call(this)};h.Zv=function(a){zk(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)}Bk(this,!b);b&&ai(this.D,"Missed "+b+" lounge tokens.")};h.Yv=function(a){ai(this.D,"Requesting lounge tokens failed: "+a)};B(Ck,Oj);h=Ck.prototype;h.start=function(){var a=(0,window.parseInt)(fj("yt-remote-fast-check-period")||"0",10);(this.B=K()-144E5<a?0:a)?Hk(this):(this.B=K()+3E5,dj("yt-remote-fast-check-period",this.B),this.Bl())};h.isEmpty=function(){return ac(this.j)};h.update=function(){Dk("Updating availability on schedule.");var a=this.C(),b=Pb(this.j,function(b,d){return b&&!!Nj(a,d)},this);Fk(this,b)};h.S=function(){Ai(this.A);this.A=window.NaN;this.o&&(this.o.abort(),this.o=null);Ck.M.S.call(this)};
h.Bl=function(){Ai(this.A);this.A=window.NaN;this.o&&this.o.abort();var a=Ik(this);if(Sb(a)){var b=Fj(this.D,"/pairing/get_screen_availability"),c={lounge_token:Wb(a).join(",")};this.o=Gj(this.D,b,c,A(this.mA,this,a),A(this.lA,this))}else Fk(this,{}),Hk(this)};h.mA=function(a,b){this.o=null;var c=Wb(Ik(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;Fk(this,d);Hk(this)}else this.Ya("Changing Screen set during request."),this.Bl()};
h.lA=function(a){this.Ya("Screen availability failed: "+a);this.o=null;Hk(this)};h.Ya=function(a){ai("OnlineScreenService",a)};B(Jk,Pj);h=Jk.prototype;h.start=function(){this.o.start();this.j.start();this.screens.length&&(this.O("screenChange"),this.j.isEmpty()||this.O("onlineScreenChange"))};h.gj=function(a,b,c){this.o.gj(a,b,c)};h.remove=function(a,b,c){this.o.remove(a,b,c);this.j.update()};h.aj=function(a,b,c,d){this.o.contains(a)?this.o.aj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,ai(this.D,a),d(Error(a)))};
h.dc=function(a){return a?this.screens:rb(this.screens,Zd(this.A,function(a){return!this.contains(a)},this))};h.Sq=function(){return Zd(this.dc(!0),function(a){return!!this.j.j[a.id]},this)};h.Tq=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new Tj(this.C,a,b,c);f.subscribe("pairingComplete",A(function(a){Mb(f);d(Mk(this,a))},this));f.subscribe("pairingFailed",function(a){Mb(f);e(a)});f.start();return A(f.stop,f)};
h.Mv=function(a,b){for(var c=2,d=b(a,c);Ok(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};h.vC=function(a,b,c,d){yj(Fj(this.C,"/pairing/get_screen"),{method:"POST",Ab:{pairing_code:a},timeout:5E3,jb:A(function(a,d){var k=new hi(d.screen||{});if(!k.name||Ok(this,k.name))k.name=this.Mv(k.name,b);c(Mk(this,k))},this),onError:A(function(a){d(Error("pairing request failed: "+a.status))},this),Ud:A(function(){d(Error("pairing request timed out."))},this)})};h.S=function(){Mb(this.o);Mb(this.j);Jk.M.S.call(this)};
h.kw=function(){Pk(this);this.O("screenChange");this.j.update()};Jk.prototype.dispose=Jk.prototype.dispose;B(Rk,Oj);h=Rk.prototype;h.Fi=function(a){this.A=a;this.O("sessionScreen",this.A)};h.Xb=function(a){this.isDisposed()||(a&&Sk(this,""+a),this.A=null,this.O("sessionScreen",null))};h.info=function(a){ai(this.L,a)};h.Vq=function(){return null};
h.Hl=function(a){var b=this.o;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(){Sk(this,"Failed to update receiver status for: "+b.friendlyName)},this))};h.S=function(){this.Hl("");Rk.M.S.call(this)};B(Tk,Rk);h=Tk.prototype;h.Gl=function(a){if(this.j){if(this.j==a)return;Sk(this,"Overriding cast sesison with new session object");this.j.removeUpdateListener(this.F);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D)}this.j=a;this.j.addUpdateListener(this.F);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.D);this.B&&Vk(this);Wk(this,"getMdxSessionStatus")};h.Bf=function(a){this.info("launchWithParams: "+de(a));this.B=a;this.j&&Vk(this)};
h.stop=function(){this.j?this.j.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.Hl=w;h.S=function(){this.info("disposeInternal");Ai(this.C);this.C=0;this.j&&(this.j.removeUpdateListener(this.F),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D));this.j=null;Tk.M.S.call(this)};
h.iB=function(a,b){if(!this.isDisposed())if(b){var c=be(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+de(c));switch(d){case "mdxSessionStatus":Uk(this,c.screenId);break;default:Sk(this,"Unknown youtube message: "+d)}}else Sk(this,"Unable to parse message.")}else Sk(this,"No data in message.")};
h.Qn=function(a,b,c,d){Lk(this.H,this.o.label,a,this.o.friendlyName,A(function(e){e?b(e):0<=d?(Sk(this,"Screen "+a+" appears to be offline. "+d+" retries left."),xi(A(this.Qn,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};h.Vq=function(){return this.j};h.wC=function(a){this.isDisposed()||a||(Sk(this,"Cast session died."),this.Xb())};B(Xk,Rk);h=Xk.prototype;h.Gl=function(a){this.C=a;this.C.addUpdateListener(this.K)};h.Bf=function(a){this.B=a;this.F()};h.stop=function(){this.j();this.j=w;Ai(this.D);this.C?this.C.stop(A(this.Xb,this,null),A(this.Xb,this,"Failed to stop DIAL device.")):this.Xb()};h.S=function(){this.j();this.j=w;Ai(this.D);this.C&&this.C.removeUpdateListener(this.K);this.C=null;Xk.M.S.call(this)};h.zC=function(a){this.isDisposed()||a||(Sk(this,"DIAL session died."),this.j(),this.j=w,this.Xb())};
h.Tk=function(a){this.J=Ij();if(this.B){var b=new window.chrome.cast.DialLaunchResponse(!0,Zk(this));a(b);Yk(this)}else this.F=A(function(){Ai(this.D);this.F=w;this.D=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,Zk(this));a(b);Yk(this)},this),this.D=xi(A(function(){this.F()},this),100)};
h.gx=function(a,b){Lk(this.H,this.G.receiver.label,a,this.o.friendlyName,A(function(a){a&&a.token?(this.Fi(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Tk(b)},this),A(function(a){Sk(this,"Failed to get DIAL screen: "+a);this.Tk(b)},this))};B($k,Rk);$k.prototype.stop=function(){this.Xb()};$k.prototype.Gl=w;$k.prototype.Bf=function(){Ai(this.j);this.j=window.NaN;var a=Nj(this.H.dc(),this.o.label);a?this.Fi(a):this.Xb(Error("No such screen"))};$k.prototype.S=function(){Ai(this.j);this.j=window.NaN;$k.M.S.call(this)};B(al,Oj);h=al.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.Gp,this),A(this.eA,this),d,e);c.customDialLaunchCallback=A(this.Ty,this);window.chrome.cast.initialize(c,A(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.B),Wh(dl),this.o.subscribe("onlineScreenChange",A(this.Uq,this)),this.A=gl(this),window.chrome.cast.setCustomReceivers(this.A,w,A(function(a){this.Ya("Failed to set initial custom receivers: "+de(a))},this)),this.O("yt-remote-cast2-availability-change",el(this)),b(!0))},this),A(function(a){this.Ya("Failed to initialize API: "+de(a));b(!1)},this))};
h.LB=function(a,b){cl("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.A;if(!a||c&&c.id!=a)cl("Unsetting old screen status: "+this.j.o.friendlyName),Mb(this.j),this.j=null}if(a&&b){if(!this.j){c=Nj(this.o.dc(),a);if(!c){cl("setConnectedScreenStatus: Unknown screen.");return}var d=bl(this,c);d||(cl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.j?c.j:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.A.push(d),
window.chrome.cast.setCustomReceivers(this.A,w,A(function(a){this.Ya("Failed to set initial custom receivers: "+de(a))},this)));cl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);fl(this,new $k(this.o,d),!0)}this.j.Hl(b)}else cl("setConnectedScreenStatus: no screen.")};h.MB=function(a){this.isDisposed()?this.Ya("Setting connection data on disposed cast v2"):this.j?this.j.Bf(a):this.Ya("Setting connection data without a session")};
h.yC=function(){this.isDisposed()?this.Ya("Stopping session on disposed cast v2"):this.j?(this.j.stop(),Mb(this.j),this.j=null):cl("Stopping non-existing session")};h.requestSession=function(){window.chrome.cast.requestSession(A(this.Gp,this),A(this.qA,this))};h.S=function(){this.o.unsubscribe("onlineScreenChange",A(this.Uq,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.B);$h(dl);Mb(this.j);al.M.S.call(this)};h.Ya=function(a){ai("Controller",a)};
h.Hp=function(a,b){this.j==a&&(b||fl(this,null),this.O("yt-remote-cast2-session-change",b))};
h.cA=function(a,b){if(!this.isDisposed())if(a)switch(cl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.o.label!=a.label)cl("onReceiverAction_: Stopping active receiver: "+this.j.o.friendlyName),this.j.stop();else{cl("onReceiverAction_: Casting to active receiver.");this.j.A&&this.O("yt-remote-cast2-session-change",this.j.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:fl(this,new $k(this.o,a));
break;case window.chrome.cast.ReceiverType.DIAL:fl(this,new Xk(this.o,a));break;case window.chrome.cast.ReceiverType.CAST:fl(this,new Tk(this.o,a));break;default:this.Ya("Unknown receiver type: "+a.receiverType);return}break;case window.chrome.cast.ReceiverAction.STOP:this.j&&this.j.o.label==a.label?this.j.stop():this.Ya("Stopping receiver w/o session: "+a.friendlyName)}else this.Ya("onReceiverAction_ called without receiver.")};
h.Ty=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.j?this.j.o: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.j.A)return cl("Reselecting dial screen."),
this.O("yt-remote-cast2-session-change",this.j.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Ya('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);fl(this,new Xk(this.o,b))}b=this.j;b.G=a;return b.G.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(A(b.gx,b,(b.G.extraData||{}).screenId||null)):new window.Promise(A(b.Tk,b))};
h.Gp=function(a){if(!this.isDisposed()){cl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)cl("Got resumed cast session before resumed mdx connection."),fl(this,new Tk(this.o,b),!0);else{this.Ya("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.o,d=Nj(this.o.dc(),c.label);d&&ii(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(cl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.j),this.j=new Tk(this.o,b),this.j.subscribe("sessionScreen",A(this.Hp,this,this.j)),this.j.Bf(null));this.j.Gl(a)}}};h.xC=function(){return this.j?this.j.Vq():null};h.qA=function(a){this.isDisposed()||(this.Ya("Failed to estabilish a session: "+de(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&fl(this,null))};
h.eA=function(a){cl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=el(this);this.C=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;el(this)!=b&&this.O("yt-remote-cast2-availability-change",el(this))}};
h.Uq=function(){if(!this.isDisposed()){var a=el(this);this.A=gl(this);cl("Updating custom receivers: "+de(this.A));window.chrome.cast.setCustomReceivers(this.A,w,A(function(){this.Ya("Failed to set custom receivers.")},this));var b=el(this);b!=a&&this.O("yt-remote-cast2-availability-change",b)}};al.prototype.setLaunchParams=al.prototype.MB;al.prototype.setConnectedScreenStatus=al.prototype.LB;al.prototype.stopSession=al.prototype.yC;al.prototype.getCastSession=al.prototype.xC;
al.prototype.requestSession=al.prototype.requestSession;al.prototype.init=al.prototype.init;al.prototype.dispose=al.prototype.dispose;var rl=null,tl=[];Gl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};Gl.prototype.Ao=function(){return this.event?!1===this.event.returnValue:!1};Gl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
var Hl={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Kl=t("yt.events.listeners_")||{};q("yt.events.listeners_",Kl,void 0);var Ml=t("yt.events.counter_")||{count:0};q("yt.events.counter_",Ml,void 0);var gm=!1,em=null,hm=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",hm,void 0);new tm;tm.prototype.set=function(a){this.j=a};tm.prototype.reset=function(){this.set(K())};tm.prototype.get=function(){return this.j};um.prototype.stringify=function(a){return this.o.Zb(a)};um.prototype.parse=function(a){return this.j(a)};h=vm.prototype;h.get=function(a){a=wm(this,a);return this.j[a]};h.set=function(a,b){a=wm(this,a);this.j[a]=b};h.Za=function(){return this.j.length};h.isEmpty=function(){return 0==this.j.length};h.clear=function(){this.o=this.j.length=0};h.Ja=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.Ma=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(xm,G);h=xm.prototype;h.Mf=!1;h.Og=0;h.za=null;h.lf=function(a){this.j=arguments;this.za||this.Og?this.Mf=!0:ym(this)};h.stop=function(){this.za&&(Sd(this.za),this.za=null,this.Mf=!1,this.j=[])};h.pause=function(){this.Og++};h.resume=function(){this.Og--;this.Og||!this.Mf||this.za||(this.Mf=!1,ym(this))};h.S=function(){xm.M.S.call(this);this.stop()};h.CA=function(){this.za=null;this.Mf&&!this.Og&&(this.Mf=!1,ym(this))};B(zm,G);var Cm=[];h=zm.prototype;h.R=function(a,b,c,d){return Bm(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.B||this,c=Oc(c),d=!!d,b=Dc(a)?Mc(a.kd,String(b),c,d,e):a?(a=Qc(a))?Mc(a,b,c,d,e):null:null,b&&(Zc(b),delete this.o[b.key]);return this};h.removeAll=function(){Ob(this.o,function(a,b){this.o.hasOwnProperty(b)&&Zc(a)},this);this.o={}};h.S=function(){zm.M.S.call(this);this.removeAll()};
h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Hm.prototype.j=null;var o$;B(Km,Hm);o$=new Km;h=Mm.prototype;h.De=null;h.Ic=!1;h.Tf=null;h.am=null;h.Sg=null;h.mf=null;h.Ld=null;h.Yd=null;h.Ke=null;h.tb=null;h.eh=0;h.Kc=null;h.dj=null;h.Ee=null;h.Bg=-1;h.kq=!0;h.te=!1;h.Dk=0;h.Ji=null;var Vm={},Tm={};h=Mm.prototype;h.setTimeout=function(a){this.C=a};h.wB=function(a){a=a.target;var b=this.Ji;b&&3==yn(a)?b.lf():this.Kq(a)};
h.Kq=function(a){try{if(a==this.tb)a:{var b=yn(this.tb),c=this.tb.o,d=this.tb.getStatus();if(vc&&!(10<=Xf)||wc&&!yc("420+")){if(4>b)break a}else if(3>b||3==b&&!Kf&&!Bn(this.tb))break a;this.te||4!=b||7==c||(8==c||0>=d?this.j.Fc(3):this.j.Fc(2));dn(this);var e=this.tb.getStatus();this.Bg=e;var f=Bn(this.tb);(this.Ic=200==e)?(4==b&&Xm(this),this.D?(Rm(this,b,f),Kf&&this.Ic&&3==b&&(this.B.R(this.o,"tick",this.pB),this.o.start())):Wm(this,f),this.Ic&&!this.te&&(4==b?this.j.Ei(this):(this.Ic=!1,Qm(this)))):
(this.Ee=400==e&&0<f.indexOf("Unknown SID")?3:0,Um(),Xm(this),Ym(this))}}catch(k){this.tb&&Bn(this.tb)}finally{}};h.pB=function(){var a=yn(this.tb),b=Bn(this.tb);this.eh<b.length&&(dn(this),Rm(this,a,b),this.Ic&&4!=a&&Qm(this))};h.LA=function(a){cn(A(this.KA,this,a),0)};h.KA=function(a){this.te||(dn(this),Wm(this,a),Qm(this))};h.Np=function(a){cn(A(this.JA,this,a),0)};h.JA=function(a){this.te||(Xm(this),this.Ic=a,this.j.Ei(this),this.j.Fc(4))};h.cancel=function(){this.te=!0;Xm(this)};
h.bB=function(){this.Tf=null;var a=K();0<=a-this.am?(2!=this.mf&&this.j.Fc(3),Xm(this),this.Ee=2,Um(),Ym(this)):bn(this,this.am-a)};h=jn.prototype;h.Ak=null;h.Yb=null;h.Ki=!1;h.Vn=null;h.Yh=null;h.Bk=null;h.Ck=null;h.mc=null;h.od=-1;h.Ag=null;h.kg=null;h.connect=function(a){this.Ck=a;a=ln(this.j,null,this.Ck);Um();this.Vn=K();var b=this.j.G;null!=b?(this.Ag=b[0],(this.kg=b[1])?(this.mc=1,kn(this)):(this.mc=2,mn(this))):(mh(a,"MODE","init"),this.Yb=new Mm(this,0,void 0,void 0,void 0),this.Yb.De=this.Ak,Pm(this.Yb,a,!1,null,!0),this.mc=0)};h.$u=function(a){if(a)this.mc=2,mn(this);else{Um();var b=this.j;b.Dc=b.Hd.od;Un(b,9)}a&&this.Fc(2)};
h.ek=function(a){return this.j.ek(a)};h.Un=function(){return!1};h.Dp=function(a,b){this.od=a.Bg;if(0==this.mc)if(b){try{var c=this.o.parse(b)}catch(d){c=this.j;c.Dc=this.od;Un(c,2);return}this.Ag=c[0];this.kg=c[1]}else c=this.j,c.Dc=this.od,Un(c,2);else if(2==this.mc)if(this.Ki)Um(),this.Bk=K();else if("11111"==b){if(Um(),this.Ki=!0,this.Yh=K(),c=this.Yh-this.Vn,!vc||10<=Xf||500>c)this.od=200,this.Yb.cancel(),Um(),nn(this.j,this,!0)}else Um(),this.Yh=this.Bk=K(),this.Ki=!1};
h.Ei=function(){this.od=this.Yb.Bg;if(this.Yb.Ic)0==this.mc?this.kg?(this.mc=1,kn(this)):(this.mc=2,mn(this)):2==this.mc&&(a=!1,(a=!vc||10<=Xf?this.Ki:200>this.Bk-this.Yh?!1:!0)?(Um(),nn(this.j,this,!0)):(Um(),nn(this.j,this,!1)));else{0==this.mc?Um():2==this.mc&&Um();var a=this.j;a.Dc=this.od;Un(a,2)}};h.Yg=function(){return this.j.Yg()};h.isActive=function(){return this.j.isActive()};h.Fc=function(a){this.j.Fc(a)};B(on,J);var zn=/^https?$/i,mfa=["POST","PUT"];h=on.prototype;
h.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.D="";this.o=0;this.T=b;this.P=!1;this.A=!0;this.j=this.L?Lm(this.L):Lm(o$);this.K=this.L?Im(this.L):Im(o$);this.j.onreadystatechange=A(this.zp,this);try{sm(vn(this,"Opening Xhr")),this.N=!0,this.j.open(b,String(a),!0),this.N=!1}catch(f){sm(vn(this,"Error opening Xhr: "+f.message));sn(this,f);return}a=c||"";var e=this.headers.clone();
d&&Dg(d,function(a,b){e.set(b,a)});d=eb(e.Ma(),rn);c=r.FormData&&a instanceof r.FormData;!E(mfa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);this.W&&(this.j.responseType=this.W);Yb(this.j,"withCredentials")&&(this.j.withCredentials=this.U);try{An(this),0<this.C&&(this.J=qn(this.j),sm(vn(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.J)),this.J?(this.j.timeout=this.C,this.j.ontimeout=A(this.Wn,
this)):this.H=Rd(this.Wn,this.C,this)),sm(vn(this,"Sending request")),this.F=!0,this.j.send(a),this.F=!1}catch(f){sm(vn(this,"Send error: "+f.message)),sn(this,f)}};h.Wn=function(){"undefined"!=typeof xn&&this.j&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,vn(this,this.D),this.Z("timeout"),en(this,8))};h.S=function(){this.j&&(this.A&&(this.A=!1,this.B=!0,this.j.abort(),this.B=!1),un(this,!0));on.M.S.call(this)};h.zp=function(){this.isDisposed()||(this.N||this.F||this.B?wn(this):this.bA())};
h.bA=function(){wn(this)};h.isActive=function(){return!!this.j};h.getStatus=function(){try{return 2<yn(this)?this.j.status:-1}catch(a){return-1}};h=Cn.prototype;h.tg=null;h.Ob=null;h.kb=null;h.zk=null;h.Zh=null;h.sn=null;h.gi=null;h.Kg=0;h.Cx=0;h.Fb=null;h.Id=null;h.hd=null;h.ye=null;h.Hd=null;h.cj=null;h.Af=-1;h.Go=-1;h.Dc=-1;h.vg=0;h.af=0;h.ve=8;var Wn=new J;B(En,jc);B(Fn,jc);B(Gn,jc);h=Cn.prototype;h.connect=function(a,b,c,d,e){Um();this.zk=b;this.tg=c||{};d&&n(e)&&(this.tg.OSID=d,this.tg.OAID=e);this.Hd=new jn(this);this.Hd.Ak=null;this.Hd.o=this.C;this.Hd.connect(a)};h.Un=function(){return 0==this.j};
h.Kp=function(a){this.Id=null;On(this,a)};h.Jp=function(){this.hd=null;this.kb=new Mm(this,0,this.A,"rpc",this.D);this.kb.De=null;this.kb.Dk=0;var a=this.sn.clone();lh(a,"RID","rpc");lh(a,"SID",this.A);lh(a,"CI",this.cj?"0":"1");lh(a,"AID",this.Af);Jn(this,a);if(!vc||10<=Xf)lh(a,"TYPE","xmlhttp"),Pm(this.kb,a,!0,this.gi,!1);else{lh(a,"TYPE","html");var b=this.kb,c=Boolean(this.gi);b.mf=3;b.Ld=oh(a.clone());Zm(b,c)}};
h.Dp=function(a,b){if(0!=this.j&&(this.kb==a||this.Ob==a))if(this.Dc=a.Bg,this.Ob==a&&3==this.j)if(7<this.ve){var c;try{c=this.C.parse(b)}catch(f){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.hd){if(this.kb)if(this.kb.Sg+3E3<this.Ob.Sg)Ln(this),this.kb.cancel(),this.kb=null;else break a;Sn(this);Um()}}else this.Go=c[1],0<this.Go-this.Af&&37500>c[2]&&this.cj&&0==this.af&&!this.ye&&(this.ye=cn(A(this.gy,this),6E3));else Un(this,11)}else"y2f%"!=b&&Un(this,11);else if(this.kb==a&&Ln(this),!C(b)){c=
this.C.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.Af=e[0];e=e[1];2==this.j?"c"==e[0]?(this.A=e[1],this.gi=e[2],e=e[3],null!=e?this.ve=e:this.ve=6,this.j=3,this.Fb&&this.Fb.yn(this),this.sn=ln(this,this.Yg()?this.gi:null,this.zk),Rn(this)):"stop"==e[0]&&Un(this,7):3==this.j&&("stop"==e[0]?Un(this,7):"noop"!=e[0]&&this.Fb&&this.Fb.xn(this,e),this.af=0)}}};h.gy=function(){null!=this.ye&&(this.ye=null,this.kb.cancel(),this.kb=null,Sn(this),Um())};
h.Ei=function(a){var b;if(this.kb==a)Ln(this),this.kb=null,b=2;else if(this.Ob==a)this.Ob=null,b=1;else return;this.Dc=a.Bg;if(0!=this.j)if(a.Ic)1==b?(K(),Wn.Z(new Fn(Wn,a.Ke?a.Ke.length:0)),Nn(this),this.B.length=0):Rn(this);else{var c=a.Ee,d;if(!(d=3==c||7==c||0==c&&0<this.Dc)){if(d=1==b)this.Ob||this.Id||1==this.j||2<=this.vg?d=!1:(this.Id=cn(A(this.Kp,this,a),Tn(this,this.vg)),this.vg++,d=!0);d=!(d||2==b&&Sn(this))}if(d)switch(c){case 1:Un(this,5);break;case 4:Un(this,10);break;case 3:Un(this,
6);break;case 7:Un(this,12);break;default:Un(this,2)}}};h.yv=function(a){if(!E(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};h.WB=function(a){a?Um():(Um(),Vn(this,8))};h.ek=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new on;a.U=!1;return a};h.isActive=function(){return!!this.Fb&&this.Fb.isActive(this)};h.Fc=function(){Wn.Z(new Gn(Wn))};h.Yg=function(){return!(!vc||10<=Xf)};h=Xn.prototype;h.yn=function(){};h.xn=function(){};h.wn=function(){};
h.Yj=function(){};h.Ln=function(){return{}};h.isActive=function(){return!0};B(Yn,Pd);Yn.prototype.D=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);Qd(this,a)}this.F()};Yn.prototype.start=function(){Yn.M.start.call(this);this.C=K()+this.j};Yn.prototype.stop=function(){this.C=0;Yn.M.stop.call(this)};B(Zn,Xn);h=Zn.prototype;h.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};h.unsubscribe=function(a,b,c){return this.A.unsubscribe(a,b,c)};h.Lb=function(a){return this.A.Lb(a)};h.O=function(a,b){return this.A.O.apply(this.A,arguments)};h.dispose=function(){this.J||(this.J=!0,this.A.clear(),ao(this),Mb(this.A))};h.isDisposed=function(){return this.J};
h.connect=function(a,b,c){if(!this.j||2!=this.j.j){this.H="";this.o.stop();this.D=a||null;this.C=b||0;a=this.K+"/test";b=this.K+"/bind";var d=new Cn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Fb=null);d.Fb=this;this.j=d;e?this.j.connect(a,b,this.B,e.A,e.Af):c?this.j.connect(a,b,this.B,c.sessionId,c.arrayId):this.j.connect(a,b,this.B)}};
h.sendMessage=function(a,b){var c={_sc:a};b&&gc(c,b);this.o.enabled||2==(this.j?this.j.j:0)?this.F.push(c):this.j&&3==this.j.j&&Mn(this.j,c)};h.yn=function(){var a=this.o;a.stop();Qd(a,5E3+2E4*Math.random());this.D=null;this.C=0;if(this.F.length){a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)Mn(this.j,a[b])}this.O("handlerOpened")};h.wn=function(a,b){var c=2==b&&401==this.j.Dc;if(4!=b&&!c){if(6==b||410==this.j.Dc)c=this.o,c.stop(),Qd(c,500);this.o.start()}this.O("handlerError",b)};
h.Yj=function(a,b,c){if(!this.o.enabled)this.O("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.F.push(c[a].map)};h.Ln=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.C&&(a.ui=""+this.C);0!=this.G&&(a.ui=""+this.G);this.D&&gc(a,this.D);return a};h.xn=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.o;c.stop();Qd(c,500);this.o.start();Hn(this.j)}else this.O("handlerMessage",new Fl(b[0],b[1]))};
h.qC=function(){this.o.stop();var a=this.j,b=0;a.kb&&b++;a.Ob&&b++;0!=b?this.o.start():this.connect(this.D,this.C)};h=co.prototype;h.Za=function(){return this.j.length+this.o.length};h.isEmpty=function(){return kb(this.j)&&kb(this.o)};h.clear=function(){this.j=[];this.o=[]};h.contains=function(a){return E(this.j,a)||E(this.o,a)};h.remove=function(a){var b=Xea(this.j,a);if(0>b)return ob(this.o,a);pb(this.j,b);return!0};h.Ja=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};h=io.prototype;h.reset=function(a){this.videoIds=[];this.o="";lo(this);a&&(this.videoIds=a.videoIds,this.index=a.index,this.o=a.listId,this.videoId=a.videoId,this.j=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.A=a.trackData,this.B=a.playerTime,this.C=a.playerTimeAt)};h.gb=function(){return 1==this.j};h.setVideoId=function(a){jo(this,"setVideoId");var b=this.index;this.index=jb(this.videoIds,a);b!=this.index&&ko(this);return-1!=b};
h.remove=function(a){jo(this,"remove");var b=mo(this);return ob(this.videoIds,a)?(this.index=jb(this.videoIds,b),!0):!1};h.clone=function(){return new io(ro(this))};B(so,Oj);h=so.prototype;h.play=function(){1==this.o?(this.j?this.j.play(null,w,A(function(){this.Ya("Failed to play video with cast v2 channel.");xo(this,"play")},this)):xo(this,"play"),Bo(this,1,oo(vo(this))),Co(this)):Ao(this,this.play)};h.pause=function(){1==this.o?(this.j?this.j.pause(null,w,A(function(){this.Ya("Failed to pause video with cast v2 channel.");xo(this,"pause")},this)):xo(this,"pause"),Bo(this,2,oo(vo(this))),Co(this)):Ao(this,this.pause)};
h.Pq=function(a){if(1==this.o){if(this.j){var b=vo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.gb()||3==b.j?window.chrome.cast.media.ResumeState.PLAYBACK_START:window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,w,A(function(){this.Ya("Failed to seek in video with cast v2 channel.");xo(this,"seekTo",{newTime:a})},this))}else xo(this,"seekTo",{newTime:a});Bo(this,3,a);Co(this)}else Ao(this,pa(this.Pq,a))};
h.stop=function(){if(1==this.o){this.j?this.j.stop(null,w,A(function(){this.Ya("Failed to stop video with cast v2 channel.");xo(this,"stopVideo")},this)):xo(this,"stopVideo");var a=vo(this);lo(a);yo(this,a);Co(this)}else Ao(this,this.stop)};
h.setVolume=function(a,b){if(1==this.o){var c=vo(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,A(function(){Do("set receiver volume: "+d)},this),A(function(){this.Ya("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,A(function(){Do("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);xo(this,"setVolume",e)}c.muted=b;c.volume=
a;yo(this,c);Co(this)}else Ao(this,pa(this.setVolume,a,b))};h.Jl=function(a,b){if(1==this.o){var c=vo(this);if(b){c.A={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.A);xo(this,"setSubtitlesTrack",d)}else d={videoId:a},xo(this,"setSubtitlesTrack",d);yo(this,c)}else Ao(this,pa(this.Jl,a,b))};
h.Qq=function(a,b){if(1==this.o){xo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Gb.id});var c=vo(this);c.audioTrackId=b.Gb.id;yo(this,c)}else Ao(this,pa(this.Qq,a,b))};h.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.O("proxyStateChange",a,this.o)}so.M.dispose.call(this)};h.S=function(){Ai(this.C);this.C=window.NaN;zo(this);this.B=null;this.D.clear();uo(this,null);so.M.S.call(this)};
h.lm=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.O("proxyStateChange",b,a);if(1==a)for(;!this.D.isEmpty();)go(this.D).apply(this);else 3==a&&this.dispose()}};h.Wz=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.C))&&this.O(a)};
h.ly=function(a){if(!a)this.Lg(null),uo(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=vo(this);if(b.volume!=a.level||b.muted!=a.muted)Do("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,yo(this,b),Co(this)}};h.Lg=function(a){Do("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.H);if(this.j=a)this.j.addUpdateListener(this.H),Eo(this),Co(this)};h.ky=function(a){a?(Eo(this),Co(this)):this.Lg(null)};
h.Ya=function(a){ai("CP",a)};B(Fo,Oj);h=Fo.prototype;
h.connect=function(a,b){if(b){if(this.sa.o){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.sa.o=c);this.sa.videoId=d;this.sa.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.sa.videoIds=[d];this.sa.index=0}this.sa.state=3;no(this.sa,f);this.ab("Connecting with setPlaylist and params: "+de(k));this.j.connect({method:"setPlaylist",params:de(k)},
a,ok())}else this.ab("Connecting without params"),this.j.connect({},a,ok());Io(this)};h.dispose=function(){this.isDisposed()||(this.O("beforeDispose"),Ho(this,3));Fo.M.dispose.call(this)};h.S=function(){Jo(this);Mo(this);Ko(this);Ai(this.F);this.F=window.NaN;Ai(this.G);this.G=window.NaN;this.A=null;Ol(this.N);this.N.length=0;this.j.dispose();Fo.M.S.call(this);this.o=this.sa=this.j=null};h.ab=function(a){ai("conn",a)};h.Sv=function(){this.B(2)};
h.ry=function(){this.ab("Channel opened");this.L&&(this.L=!1,Ko(this),this.H=xi(A(function(){this.ab("Timing out waiting for a screen.");this.B(1)},this),15E3));uk($n(this.j),this.U)};h.my=function(){this.ab("Channel closed");(0,window.isNaN)(this.C)?vk(!0):vk();this.dispose()};h.ny=function(a){vk();(0,window.isNaN)(this.D())?(this.ab("Channel error: "+a+" without reconnection"),this.dispose()):(this.L=!0,this.ab("Channel error: "+a+" with reconnection in "+this.D()+" ms"),Ho(this,2))};
h.oy=function(a){a.params?this.ab("Received: action="+a.action+", params="+de(a.params)):this.ab("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=ae(a.params.devices);this.o=P(a,function(a){return new ak(a)});a=!!eb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Po(this,a);break;case "loungeScreenConnected":Po(this,!0);break;case "loungeScreenDisconnected":qb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Po(this,!1);break;case "remoteConnected":var b=new ak(ae(a.params.device));
eb(this.o,function(a){return a.equals(b)})||nb(this.o,b);break;case "remoteDisconnected":b=new ak(ae(a.params.device));qb(this.o,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":So(this,a);break;case "nowPlaying":Wo(this,a);break;case "onStateChange":Xo(this,a);break;case "onVolumeChanged":Yo(this,a);break;case "onSubtitlesTrackChanged":Ro(this,a);break;default:this.ab("Unrecognized action: "+a.action)}};
h.qy=function(a){a.params?this.ab("Received: action="+a.action+", params="+de(a.params)):this.ab("Received: action="+a.action);Zo(this,a);$o(this,a);if(Oo(this)){var b=this.sa.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)&&ae(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==mo(this.sa)&&(delete a.params.videoId,
ac(a.params)?this.sa.A=null:this.sa.A=a.params,this.O("remotePlayerChange"));else if(mo(this.sa)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=mo(this.sa)):this.sa.setVideoId(""),e&&(e=e.split(","),qo(this.sa,e,d))):qo(this.sa,[]);e=this.sa;var p=d;jo(e,"add");p&&!E(e.videoIds,p)?(e.videoIds.push(p),e=!0):e=!1;e&&No(this,"getPlaylist");d&&this.sa.setVideoId(d);b.index==this.sa.index&&Eb(b.videoIds,
this.sa.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.O("remoteQueueChange"):this.O("remoteQueueChange");n(f)&&(a=(0,window.parseInt)(f,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.sa.j&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.sa.j,this.sa.j=a,1==this.sa.j?Lo(this):Mo(this));k&&(a=(0,window.parseInt)(k,10),no(this.sa,(0,window.isNaN)(a)?0:a),c=!0);n(l)&&(a=(0,window.parseInt)(l,10),(0,window.isNaN)(a)||(c=c||this.sa.volume!=a,this.sa.volume=a),n(m)&&(m="true"==
m,c=c||this.sa.muted!=m,this.sa.muted=m));c&&this.O("remotePlayerChange")}}};h.CB=function(){if(this.A){var a=this.A;this.A=null;this.sa.videoId!=a&&No(this,"getNowPlaying")}};Fo.prototype.subscribe=Fo.prototype.subscribe;Fo.prototype.unsubscribeByKey=Fo.prototype.Lb;Fo.prototype.Y=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.D())?Oo(this)&&(a=1):a=2);return a};Fo.prototype.getProxyState=Fo.prototype.Y;
Fo.prototype.B=function(a){this.ab("Disconnecting with "+a);Jo(this);this.O("beforeDisconnect",a);1==a&&vk();ao(this.j,a);this.dispose()};Fo.prototype.disconnect=Fo.prototype.B;Fo.prototype.W=function(){var a=this.sa;this.A&&(a=this.sa.clone(),po(a,this.A,a.index));return ro(a)};Fo.prototype.getPlayerContextData=Fo.prototype.W;
Fo.prototype.ca=function(a){var b=new io(a);b.videoId&&b.videoId!=this.sa.videoId&&(this.A=b.videoId,Ai(this.F),this.F=xi(A(this.CB,this),5E3));var c=[];this.sa.o==b.o&&this.sa.videoId==b.videoId&&this.sa.index==b.index&&Eb(this.sa.videoIds,b.videoIds)||c.push("remoteQueueChange");this.sa.j==b.j&&this.sa.volume==b.volume&&this.sa.muted==b.muted&&oo(this.sa)==oo(b)&&de(this.sa.A)==de(b.A)||c.push("remotePlayerChange");this.sa.reset(a);F(c,function(a){this.O(a)},this)};
Fo.prototype.setPlayerContextData=Fo.prototype.ca;Fo.prototype.T=function(){return this.j.B.loungeIdToken};Fo.prototype.getLoungeToken=Fo.prototype.T;Fo.prototype.J=function(){var a=this.j.B.id,b=eb(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Fo.prototype.getOtherConnectedRemoteId=Fo.prototype.J;Fo.prototype.D=function(){var a=this.j;return a.o.enabled?a.o.C-K():window.NaN};Fo.prototype.getReconnectTimeout=Fo.prototype.D;
Fo.prototype.fa=function(){if(!(0,window.isNaN)(this.D())){var a=this.j.o;a.enabled&&(a.stop(),a.start(),a.D())}};Fo.prototype.reconnect=Fo.prototype.fa;Fo.prototype.$=function(a,b){No(this,a,b);Qo(this)};Fo.prototype.sendMessage=Fo.prototype.$;var ep=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(ip,Pj);h=ip.prototype;h.dc=function(a){return this.Kb.$_gs(a)};h.contains=function(a){return!!this.Kb.$_c(a)};h.get=function(a){return this.Kb.$_g(a)};h.start=function(){this.Kb.$_st()};h.gj=function(a,b,c){this.Kb.$_a(a,b,c)};h.remove=function(a,b,c){this.Kb.$_r(a,b,c)};h.aj=function(a,b,c,d){this.Kb.$_un(a,b,c,d)};h.S=function(){for(var a=0,b=this.j.length;a<b;++a)this.Kb.$_ubk(this.j[a]);this.j.length=0;this.Kb=null;ip.M.S.call(this)};h.uC=function(){this.O("screenChange")};h.Lz=function(){this.O("onlineScreenChange")};
Jk.prototype.$_st=Jk.prototype.start;Jk.prototype.$_gspc=Jk.prototype.vC;Jk.prototype.$_gsppc=Jk.prototype.Tq;Jk.prototype.$_c=Jk.prototype.contains;Jk.prototype.$_g=Jk.prototype.get;Jk.prototype.$_a=Jk.prototype.gj;Jk.prototype.$_un=Jk.prototype.aj;Jk.prototype.$_r=Jk.prototype.remove;Jk.prototype.$_gs=Jk.prototype.dc;Jk.prototype.$_gos=Jk.prototype.Sq;Jk.prototype.$_s=Jk.prototype.subscribe;Jk.prototype.$_ubk=Jk.prototype.Lb;var lp=null,mp=null,rp=null,dp=null,qp=[];var Sp=/^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]+)?\/)/,vw=/^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]+)?([\/\?\#]|$)/,
Tda=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,qG=/^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(\/+|\?|#|$)/,Dw=/^((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)|((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]+)?([\/\?\#]|$))/,
Rp=/^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]+)?\/)/,nfa=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Hw=/^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)/,
ofa=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,tr=/^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]+)?([\/\?\#]|$)/,rG=/^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]+)?([\/\?\#]|$))/,
AG=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Up=/^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 Vp=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];var bq={},aq=0,pfa=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",pfa,void 0);var dq=1;cq.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)};cq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(fq,cq);fq.prototype.getId=function(){return this.H};fq.prototype.toString=function(){return fq.M.toString.call(this)};B(jq,Oj);h=jq.prototype;h.cb=function(a,b){for(var c=0;c<a.length;c++)a[c].j=this.ra;this.j.cb(a,b)};h.create=function(){this.H||(this.Xa(this.j),L(this.j.ua(),this.ra+"-created"),this.j.addEventListener("crn_"+this.ra,this.oc,this),this.j.addEventListener("crx_"+this.ra,this.Gc,this),this.H=!0)};
h.destroy=function(){this.loaded&&this.unload();Yd(this.j.ua(),this.ra+"-created");this.j.removeEventListener("crn_"+this.ra,this.oc,this);this.j.removeEventListener("crx_"+this.ra,this.Gc,this);this.H=!1;this.O("destroyed",this.ra)};h.load=function(){this.loaded=!0;L(this.j.ua(),this.ra+"-loaded");this.O("loaded",this.ra)};h.unload=function(){this.loaded=!1;Yd(this.j.ua(),this.ra+"-loaded");this.O("unloaded",this.ra)};h.oc=function(){};h.Gc=function(){};h.Td=function(){};
h.log=function(a){uH(this.j,this.G,a)};h.nh=function(){return null};h.pauseVideo=function(){this.O("command_pause",!1,this.j.playerType)};h.fe=function(){};h.Re=function(){return[]};h.Xa=function(){return!1};h.zl=function(a,b){this.F&&this.F.Td&&this.F.Td.apply(this.F,arguments)};h.Di=function(){};B(tq,G);tq.prototype.j=function(a,b){n(b)?of(a,this.element,b):a.appendChild(this.element)};tq.prototype.detach=function(){pf(this.element)};tq.prototype.update=function(a){for(var b in a)xq(this,b,a[b])};tq.prototype.S=function(){this.oa={};this.ka={};this.detach();tq.M.S.call(this)};B(R,tq);h=R.prototype;h.Cb=function(a,b){xq(this,b||"content",a)};h.show=function(){this.A||(zq(this.element,""),this.A=!0)};h.ea=function(){this.A&&(zq(this.element,"none"),this.A=!1)};h.vb=function(a){a?this.show():this.ea()};h.R=function(a,b,c){return S(this,this.element,a,b,c)};h.ya=function(a){for(var b=0;b<this.U.length;b++)if(this.U[b]==a){a=this.U.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};h.focus=function(){this.element.focus()};
h.S=function(){for(;this.U.length;){var a=this.U.pop();a.target.removeEventListener(a.type,a.listener)}R.M.S.call(this)};B(Cq,R);Cq.prototype.subscribe=function(a,b,c){return this.N.subscribe(a,b,c)};Cq.prototype.unsubscribe=function(a,b,c){return this.N.unsubscribe(a,b,c)};Cq.prototype.Lb=function(a){return this.N.Lb(a)};Cq.prototype.O=function(a,b){return this.N.O.apply(this.N,arguments)};B(Dq,Cq);Dq.prototype.create=function(){this.J=!0};Dq.prototype.destroy=function(){this.J=!1};Dq.prototype.Ih=function(){return!1};B(Eq,R);var qfa=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":Kf?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!e$.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in dfa)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!e$.test(e))throw Error('Invalid attribute name "'+
e+'".');var f=b[e];if(null!=f){var k;k=e;if(f instanceof ze)f=Be(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 De)){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 ze)p=Be(p);else if(bfa.test(p)){for(var u=!0,v=!0,z=0;z<p.length;z++){var y=p.charAt(z);"'"==y&&
v?u=!u:'"'==y&&u&&(v=!v)}u&&v||(p="zClosurez")}else p="zClosurez";l+=m+":"+p+";"}}f=l?Fe(l):afa}f=f instanceof De&&f.constructor===De&&f.o===Ee?f.j:"type_error:SafeStyle"}else{if(/^on/i.test(k))throw Error('Attribute "'+k+'" requires goog.string.Const value, "'+f+'" given.');if(k.toLowerCase()in cfa)if(f instanceof Le)f=Ne(f);else if(f instanceof Ge)f=Ie(f);else if(x(f))f=Je(f).md();else throw Error('Attribute "'+k+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+
f+'" given.');}f.Ie&&(f=f.md());k=k+'="'+ya(String(f))+'"';d=d+(" "+k)}}e=void 0;null!=e?da(e)||(e=[e]):e=[];!0===Zea.div?d+=">":(c=Re(e),d+=">"+Qe(c)+"</div>",c=c.gf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Se(d,c);a.innerHTML=Qe(b);return""!=Pf(a.firstChild,"transition")});B(Lq,G);h=Lq.prototype;h.show=function(a,b){this.B=!!a;1==this.j||2==this.j||3==this.j&&a||(4==this.j||3==this.j?a||(this.A.show(),Mq(this,!1),this.j=null,this.o.stop()):this.A.A||(Mq(this,!this.B),this.j=1,b?this.o.start(b):this.Vl()))};h.ea=function(){3!=this.j&&(1==this.j||2==this.j?(this.A.ea(),this.j=null,this.o.stop()):this.A.A&&(Mq(this,!0),this.j=3,this.o.start(this.C)))};
h.Vl=function(){switch(this.j){case 1:this.A.show();this.j=2;this.o.start(10);break;case 2:Mq(this,this.B);this.B?(this.j=3,this.o.start(this.C)):this.j=null;break;case 3:this.A.ea();Mq(this,!1);this.j=4;this.o.start(0);break;case 4:this.j=null}};h.stop=function(){for(;null!=this.j&&4!=this.j;)this.o.stop(),this.Vl()};h.S=function(){this.A.isDisposed()||this.A.element.removeAttribute("aria-hidden");Lq.M.S.call(this)};B(Nq,R);B(Oq,Nq);Oq.prototype.vb=function(a){a?this.B.show():this.B.ea()};B(Pq,Dq);Pq.prototype.create=function(){Pq.M.create.call(this);nf(this.element);this.C.j(this.element);var a=this.o.getVideoData().videoId;a&&(a=HG(this.o.V(),a,!0),yj(a,{method:"GET",jb:this.D,context:this,lv:!0}))};
Pq.prototype.D=function(a,b){if(this.J){var c=b.user_info;this.o.getVideoData();var d=c.channel_banner_url;Dw.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Dw.test(e)||(e="");xq(this.B,"background",d?"background-image: url("+d+")":"");xq(this.C,"image",e);xq(this.C,"author",c.channel_title||c.username);c=c.subscription_button_html;d=this.C.oa["html5-subscribe-button-container"];c?d.innerHTML=Qe(c):nf(d)}};Pq.prototype.show=function(){Pq.M.show.call(this);this.B.vb(!0)};
Pq.prototype.ea=function(){Pq.M.ea.call(this);this.B.vb(!1)};B(Qq,R);Qq.prototype.S=function(){Qq.M.S.call(this);this.B&&(Tq(this.o.app,this.B),this.B=null);Sq(this);nf(Rq(this));nf(Vq(this));this.D=this.C=null;delete this.o};Wq.prototype.toString=function(){return this.type+this.id};var O5=16/9,rfa=4/3,t9=[.25,.5,1,1.25,1.5,2];var Zq={vE:function(a,b){a.splice(0,b)},K6:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},Wp:function(a){a.reverse()}};var dr={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 Sv={name:"width",video:!0,valid:640,Gg:99999},Tv={name:"height",video:!0,valid:360,Gg:99999},Uv={name:"framerate",video:!0,valid:30,Gg:9999},Vv={name:"bitrate",video:!0,valid:3E5,Gg:2E9},Wv={name:"channels",video:!1,valid:2,Gg:99},Xv={Ch:Sv,wh:Tv,o:Uv,Om:Vv,j:Wv};ir.prototype.toString=function(){return this.name};var Ut={VF:"auto",jI:"tiny",Rt:"light",SMALL:"small",$t:"medium",LARGE:"large",KG:"hd720",GG:"hd1080",HG:"hd1440",IG:"hd2160",JG:"hd2880",OG:"highres",UNKNOWN:"unknown"},lr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},kr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var mr=[["60",55],["50",49],["48",39]];nr.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.o="")};nr.prototype.get=function(a){rr(this);return this.j[a]||null};nr.prototype.clone=function(){var a=new nr(this.A);a.D=this.D;a.B=this.B;a.C=this.C;a.j=ec(this.j);a.o=this.o;return a};xr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=Er.prototype;h.ag=function(a){return(a=Fr(this,a))?a.duration:0};h.pk=function(a){return this.ag(a)};h.wg=function(){return this.ta.length?this.ta[0].j:-1};h.Jb=function(){return this.ta.length?this.ta[this.ta.length-1].j:-1};h.cg=function(){var a=this.ta[this.ta.length-1];return a?a.endTime:window.NaN};h.or=function(){return this.ta[0].startTime};h.On=function(){return this.ta.length};h.tj=function(){return 0};h.jf=function(a){return(a=Gr(this,a))?a.j:-1};h.Rn=function(a){return Fr(this,a).sourceURL};
h.ee=function(a){return(a=Fr(this,a))?a.startTime:0};h.dg=function(){return 0<this.ta.length};Ir.prototype.set=function(a,b){this.j.get(a);this.o[a]=b;this.A=""};Ir.prototype.get=function(a){return this.o[a]||this.j.get(a)};var p$=0;Pr.prototype.Xk=function(){return!1};Pr.prototype.$p=function(a){return[a]};Pr.prototype.Oi=function(a){return[a]};Rr.prototype.equals=function(a){return!(!a||a.j!=this.j||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.B!=this.B||a.A!=this.A||a.o!=this.o)};B($r,Pr);h=$r.prototype;h.Mh=function(){return!1};h.Nn=function(){var a=new Rr(1,this,this.initRange);return[new Xr([a],this.B)]};h.bi=function(a,b){var c=this.index.jf(a);b&&(c=Math.min(this.index.Jb(),c+1));return bs(this,c,!0)};h.Yn=function(a){this.j=new window.Uint8Array(Ks(a).buffer)};h.Xk=function(){return!1};h.mh=function(a){return 0==a.o?!0:this.index.Jb()>a.B&&this.index.wg()<=a.B+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.ta.length)d.ta=a;else{var e=d.ta.length?db(d.ta).endTime:0,f=a[0].j-d.Jb();1<f&&lb(d.ta);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.ta.push(a[f])}}Hr(this.index,c);this.o=b};es.prototype.update=function(a){var b=void 0;this.o&&(b=this.o);var c=b,b=+Ar(a,"timescale")||1,d=+Ar(a,"startNumber")||0,e=0,f=1;c&&(e=c.$d+c.durationSecs,f=d-c.j);var c=Date.parse(Ar(a,"yt:segmentIngestTime")),k=Date.parse(Ar(a,"yt:mpdResponseTime")),k=K()-k,c=(c+k)/1E3,k=new es,f=0<f?0:-f+1;k.B=f;a=a.getElementsByTagName("S");for(var l=d,m=0;m<a.length;m++)for(var p=a[m],u=+p.getAttribute("d")/b,v=(p.getAttribute("yt:sid")||0)/b,z=+p.getAttribute("r")||0,y=0;y<=z;y++)if(l<d+f)l++;else{var ga=new ds(l,
e,u,c+v);k.j.push(ga);l++;var e=e+u,c=c+(u+v),va=p.getAttribute("yt:cuepointTimeOffset"),I=p.getAttribute("yt:cuepointDuration"),W=p.getAttribute("yt:cuepointContext")||null;va&&I&&k.A.push(new cs(+va/b+ga.$d,+I/b,W))}k.j.length&&(k.o=db(k.j));this.B=k.B;this.o=k.o||this.o;this.j=k.j;tb(this.A,k.A)};xs.prototype.skip=function(a){this.j+=a};h=Ps.prototype;h.tj=function(a){return this.j[a]};h.ee=function(a){return this.o[a]/this.B};h.ag=function(a){a=this.pk(a);return 0<=a?a/this.B:-1};h.pk=function(a){return a+1<this.xa||this.A?this.o[a+1]-this.o[a]:-1};h.wg=function(){return 0};h.Jb=function(){return this.xa-1};h.cg=function(){return this.A?this.o[this.xa]/this.B:window.NaN};h.or=function(){return 0};h.On=function(){return this.xa};h.Rn=function(){return""};
h.jf=function(a){a=xb(this.o.subarray(0,this.xa),a*this.B);return 0<=a?a:Math.max(0,-a-2)};h.dg=function(){return 0<=this.Jb()};B(Rs,Pr);h=Rs.prototype;h.Nn=function(a){var b=new Rr(1,this,this.initRange),c=new Rr(2,this,this.indexRange),d=[],e=[b];Tr(b,c)?e.push(c):(d.push(new Xr([c])),a=0);(0,window.isNaN)(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=zr(b.range.end+1,a-c),e.push(new Rr(4,this,a)));d.push(new Xr(e));return d};
h.Yn=function(a){if(1==a.info.type){if(this.j)return;this.j=new window.Uint8Array(a.j,a.range.start,a.range.length)}else if(2==a.info.type){if(this.B||0<=this.index.Jb())return;if(1==this.info.o){var b=this.index,c=Ks(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.B=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.j[0]=
k+(e+d);b.o[0]=f;b.A=!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.xa++;Qs(f);f.j[f.xa]=f.j[f.xa-1]+l;f.o[f.xa]=f.o[f.xa-1]+k}}else this.B=Ks(a)}if(2==this.info.o&&this.j&&this.B){a=new window.DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;k=this.B;c=this.indexRange.end;a=new zs(a);if(440786851==As(a)&&(Cs(a),408125543==As(a))){e=a;f=e.j;d=Bs(e,!0);e.j=f;a=Ds(a);for(var e=a.A+a.j,m=As(a);357149030!=m;)Cs(a),m=As(a);
a=Ds(a);for(var l=1E6,p=1E9,f=0;!(a.j>=a.o.byteLength);)if(m=As(a),2807729==m)l=Es(a);else if(2807730==m)p=Es(a);else if(17545==m){var f=a,m=Bs(f,!0),u=0;4==m?u=f.o.getFloat32(f.j):8==m&&(u=f.o.getFloat64(f.j));f.j+=m;f=u}else Cs(a);b.B=p/l;a=new zs(k);if(475249515==As(a)){a=Ds(a);k=!0;for(l=!1;!(a.j>=a.o.byteLength);)if(m=As(a),187==m){p=Ds(a);m=e;if(179!=As(p))u=null;else if(u=Es(p),183!=As(p))u=null;else{for(var p=Ds(p),v=m;!(p.j>=p.o.byteLength);)241==As(p)?v=Es(p)+m:Cs(p);u=[v,u]}k&&c==u[0]&&
(l=!0);k=!1;l&&(u[0]+=1);p=b;m=u[0];u=u[1];Qs(p);p.j[p.xa]=m;p.o[p.xa]=u;p.xa++}else Cs(a);c=d+e;a=f;Qs(b);b.A=!0;b.o[b.xa]=a;b.j[b.xa]=c}}this.B=null}};h.$p=function(a){for(var b=this.Oi(a.info),c=[],d=a.A,e=0;e<b.length;e++){var f=zr(b[e].range.start+b[e].A-a.info.range.start+a.range.start,b[e].o);c.push(new Js(b[e],a.j,f,a.o,d));d=!1}return c};h.Oi=function(a){for(var b=0;b<this.index.Jb()&&a.range.start>=this.index.tj(b+1);)b++;return Ss(this,b,a.range.start,a.range.length).j};
h.mh=function(a){return Qr(this)?!0:(0,window.isNaN)(this.o)?!1:a.range.end+1<this.o};h.bi=function(a,b){var c=this.index.jf(a);b&&(c=Math.min(this.index.Jb(),c+1));return Ss(this,c,this.index.tj(c),0)};h.Xk=function(){var a;if(a=Qr(this)&&!(0,window.isNaN)(this.o))a=this.index,a=(a.A?a.j[a.xa]:-1)!=this.o;return a};h.Mh=function(){return!0};B(Us,Oj);var $s={commentary:1,alternate:2,dub:3,main:4};
Us.prototype.L=function(a){this.F=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*Cr(Ar(b,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.A;this.C=!0;this.G=(0,window.parseInt)(Ar(b,"yt:earliestMediaSequence"),10);this.o||(this.o=new gs);is(this.o,b);this.O("refresh");for(b=0;b<a.length;b++){var c=Zs(this,
a[b]);if(!this.j[c.id]){var d=Ys(Br(a[b],"BaseURL").textContent,c),e=Br(a[b],"Initialization"),f=Ar(e,"sourceURL"),e=yr(Ar(e,"range"));this.j[c.id]=new $r(d,c,f,null===e?void 0:e)}for(var c=this.j[c.id],d=this.o,f=c,e=bb(f.info.mimeType,";",1)[0],f=d.A[f.info.id]||d.o[e]||d.j||null,d=vb(Br(a[b],"SegmentList").getElementsByTagName("SegmentURL"),f.B),f=f.j,e=[],k=0;k<d.length;k++)e.push(bt(d[k],f[k]));c.update(e,this.isLive,this.G)}js(this.o)}else b:for(this.duration=Cr(Ar(b,"mediaPresentationDuration")),
b=0;b<a.length;b++){e=a[b];c=Zs(this,e);f=Br(e,"BaseURL");d=Ys(f.textContent,c);k=Br(e,"SegmentBase");e=yr(k.attributes.indexRange.value);k=yr(k.getElementsByTagName("Initialization")[0].attributes.range.value);f=(0,window.parseInt)(f.getAttribute("yt:contentLength"),10);c=new Rs(d,c,k,e,f,window.NaN);if(!c)break b;this.j[c.info.id]=c}this.B=2;this.O("loaded");(0,window.isFinite)(this.A)&&(a=Vs()-this.D,a=Math.max(0,this.A-a),xi(A(this.K,this),a));return this};
Us.prototype.N=function(a){this.F=a.status;this.B=3;this.O("load_error");return Cd(a)};Us.prototype.K=function(){if(1!=this.B&&!this.isDisposed()){var a;a:{a=this.j;for(var b in a){var c=a[b].index;if(c&&c.dg()){a=c.Jb()+1;break a}}a=0}a=Tg(this.J,{start_seq:a.toString()});at(this,a)}};var Jv,xG;var q$=oc,q$=q$.toLowerCase();if(Ha(q$,"android")){var r$=q$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(r$)Jv=Number(r$[1]);else{var s$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},t$=q$.match("("+Wb(s$).join("|")+")");Jv=t$?s$[t$[0]]:0}}else Jv=void 0;xG=0<=Jv;var Mv=uG||Bw;var mu,X5,rt=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],tt=['audio/mp4; codecs="mp4a.40.2"'];var Dt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Et=rb(Dt.widevine,Dt.playready);B(Bt,G);Bt.prototype.D=function(a,b){if(!this.isDisposed()){a.A=b;var c=b.getConfiguration();F([c.audioCapabilities,c.videoCapabilities],function(b){F(b,function(b){a.B[b.contentType]=!0})});this.B(a)}};Bt.prototype.C=function(){this.isDisposed()||(0<this.o.length?Ft(this):this.B(null))};It.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.j+"_"+this.id+"_"+this.isDefault};var Zw=!1,Yw={dG:1,Rs:2,Ss:3};Jt.prototype.toString=function(){return this.j+": "+Lt(this)+" - "+this.F};Jt.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Nt.prototype.toString=function(){return this.Gb.name};Ot.prototype.equals=function(a){return this.o==a.o&&this.j==a.j&&this.A==a.A};var o1=Pt("auto","large",!1),St=Pt("auto","auto",!1);Pt("small","auto",!1);var sfa=Pt("auto","hd720",!1);Ot.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.j};Ot.prototype.B=function(a){if(!a.video)return!1;a=lr[a.video.quality];return this.o<=a&&(!this.j||this.j>=a)};var Gw={aH:1,bH:2,cH:3};Wt.prototype.getValue=function(){return this.o};Wt.prototype.clone=function(){return new Wt(this.j,this.o)};h=Xt.prototype;h.remove=function(){var a=this.j,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.j,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].j<b[f].j?k:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};h.Ja=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};h.Ma=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};
h.xe=function(a){return Gh(this.j,function(b){return b.getValue()==a})};h.clone=function(){return new Xt(this)};h.Za=function(){return this.j.length};h.isEmpty=function(){return kb(this.j)};h.clear=function(){lb(this.j)};B(Zt,Xt);B($t,Oj);$t.prototype.D=function(a,b){this.j=this.j.onload=null;var c=this.o.j[a];c.A[b]=!0;eu(this);var d=c.Eb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.rk()-1)];this.O("l",c[0],c[1])};$t.prototype.S=function(){this.j&&(this.j=this.j.onload=null);$t.M.S.call(this)};h=gu.prototype;h.getWidth=function(){return this.G};h.getHeight=function(){return this.F};h.rk=function(){return this.o};h.isDefault=function(){return-1!=this.B.indexOf("default")};h.yj=function(a){return je(0==this.C?Math.round(a*this.o/this.K):Math.round(1E3*a/this.C),0,this.rk()-1)};h.Dm=function(){return this.o-1};h.Xr=function(){return this.o?0:-1};h.Yr=function(){};hu.prototype.o=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.B(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};hu.prototype.B=function(a,b,c,d){return new gu(a,b,c,d)};hu.prototype.C=function(){};B(ju,gu);h=ju.prototype;h.rk=function(){return this.j?this.j.On():-1};h.yj=function(a){var b=this.rows*this.Eb*this.H,c=-1,d=-1,e=this.j;e&&(c=e.Jb(),d=e.jf(a));return d>c-b?-1:d};h.Dm=function(){return this.j?this.j.Jb():-1};h.Xr=function(){return this.j?this.j.wg():-1};h.Yr=function(a){this.j=a?a.index:null};B(ku,hu);ku.prototype.o=function(a,b){return ku.M.o.call(this,"$N|"+a,b)};ku.prototype.B=function(a,b,c){return new ju(a,b,c,this.D.isLive)};ku.prototype.C=function(a){for(var b=0;b<this.j.length;b++)this.j[b].Yr(a)};var nu=K().toString();var wu=/^([0-9\.]+)\:([0-9\.]+)$/;var Cu=0;Eu.prototype.Zb=function(){return{version:this.version,args:this.args}};Hu.prototype.toString=function(){return this.o};var tfa=t("yt.pubsub2.instance_")||new si;si.prototype.subscribe=si.prototype.subscribe;si.prototype.unsubscribeByKey=si.prototype.Lb;si.prototype.publish=si.prototype.O;si.prototype.clear=si.prototype.clear;q("yt.pubsub2.instance_",tfa,void 0);var Lu=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Lu,void 0);var Nu=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Nu,void 0);var Mu=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Mu,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);B(Qu,Eu);var Ju=new Hu("timing-sent",Qu);var cv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},av=A(cv.clearResourceTimings||cv.webkitClearResourceTimings||cv.mozClearResourceTimings||cv.msClearResourceTimings||cv.oClearResourceTimings||w,cv),Tu=cv.mark?function(a){cv.mark(a)}:w;var Cw,A1;var u$=oc,v$=u$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!v$||2>v$.length)Cw=void 0;else{var w$=u$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Cw=w$&&6==w$.length?Number(w$[5].replace("_",".")):0}(A1=0<=Cw)&&0<=oc.search("Safari")&&oc.search("Version");var Aw={Rt:1,rG:2};var yw={LIKE:0,DISLIKE:1,INDIFFERENT:2};var jv=function(){if(D6)return iv(/Firefox\/([0-9.]+)/);if(vc||uc||Kf)return Ac;if(Dl)return iv(/Chrome\/([0-9.]+)/);if(yA&&!(rc()||nc("iPad")||nc("iPod")))return iv(/Version\/([0-9.]+)/);if(uG||Bw){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(oc))return a[1]+"."+a[2]}else if(vG)return(a=iv(/Android\s+([0-9.]+)/))?a:iv(/Version\/([0-9.]+)/);return""}();kv.prototype.start=function(){return 0};kv.prototype.end=function(){return window.Infinity};kv.prototype.length=1;h=lv.prototype;h.addEventListener=function(){};h.removeEventListener=function(){};h.dispatchEvent=function(){};h.abort=function(){};h.remove=function(){};h.appendBuffer=function(){};mv.prototype.dispose=function(){if(!this.A){if(this.j)try{window.URL.revokeObjectURL(this.B)}catch(a){}this.A=!0}};mv.prototype.isDisposed=function(){return this.A};mv.prototype.equals=function(a){return null!=a&&nv(a)==nv(this)};h=ov.prototype;h.append=function(a){this.o.webkitSourceAppend(this.A,a)};h.abort=function(){this.o.webkitSourceAbort(this.A)};h.hC=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new pv:this.o.webkitSourceBuffered(this.A)};h.jC=function(){return this.B};h.nC=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};h=qv.prototype;h.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};h.removeEventListener=function(a,b,c){this.j.removeEventListener(a,b,c)};h.oE=function(){return this.j.webkitMediaSourceURL};h.addSourceBuffer=function(a){var b=(this.A++).toString();this.j.webkitSourceAddId(b,a);a=new ov(this.j,b);this.sourceBuffers.push(a);return a};h.kC=function(){switch(this.j.webkitSourceState){case this.j.SOURCE_CLOSED:return"closed";case this.j.SOURCE_OPEN:return"open";case this.j.SOURCE_ENDED:return"ended"}return""};
h.endOfStream=function(a){var b=this.j.EOS_NO_ERROR;"network"==a?b=this.j.EOS_NETWORK_ERR:"decode"==a&&(b=this.j.EOS_DECODE_ERR);this.j.webkitSourceEndOfStream(b)};h.lC=function(){lb(this.sourceBuffers)};h.iC=function(){return this.o};h.mC=function(a){this.o=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};B(rv,G);rv.prototype.ya=function(a){for(var b=0;b<this.L.length;b++)if(this.L[b]==a){this.L.splice(b,1);a.target.removeEventListener(a.name,a.Lh);break}};rv.prototype.S=function(){uv(this);rv.M.S.call(this)};B(vv,rv);vv.prototype.J=function(){if(!this.isDisposed()&&Av(this)&&!(0,window.isNaN)(this.B)){this.A.duration=this.B;this.B=window.NaN;try{this.j=this.A.addSourceBuffer(this.G),this.P?this.o=this.A.addSourceBuffer(this.K):this.o=new lv,this.C&&(this.C(this),this.C=null)}catch(a){this.D&&this.D()}}};vv.prototype.H=function(){this.dispose()};Gv.prototype.o=function(){return null};var Kv={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var aw="9h8(H*".split(""),cw="h98H(*".split(""),dw="oMavAV".split(""),ew="aoMvAV".split(""),bw=["f"],Ov={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Pv={"application/x-mpegURL":"maybe"},Nv={"application/x-mpegURL":"maybe"};B(lw,Gv);
lw.prototype.o=function(){if(!this.j||this.j.isDisposed()){var a;a=this.A;jw(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.o.length;d<e;++d){var f=a.o[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.j.length;d<e;++d){var k=a.j[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.An+","+f.An)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.j=new mv("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.j};B(nw,Gv);nw.prototype.o=function(){return new mv(this.j)};B(rw,Oj);rw.G=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;rw.j=1;rw.C=-21;rw.D=18E3;rw.A="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(" ");rw.F="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(" ");
rw.o={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};rw.B=["www.youtube.com","manifest.googlevideo.com"];h=rw.prototype;h.adModule=!1;h.adaptiveFormats="";h.nm=null;h.allowEmbed=!0;h.backgroundable=!1;h.Ed=!1;h.$e="";h.mn=!1;h.Hh=!1;h.Gh=rw.j;h.kj=null;h.watchAjaxToken=null;h.author="";h.ij=0;h.Nh=!1;h.Cn=!1;h.Oh="";h.Ph="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.Oe=0;h.ik=!1;h.enableCardio=!1;
h.enableCardioBeforePlayback=!1;h.df=0;h.Pd=!1;h.$n=!1;h.jj=0;h.hh=0;h.Uk=!1;h.Hg=!1;h.Vk=!1;h.Bo=!1;h.Wk=!1;h.isListed=!1;h.zf=!1;h.Ea=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.al=!1;h.Xf=!1;h.Fo=!1;h.bl=!1;h.liveChunkReadahead=3;h.liveStartWalltime=0;h.lengthSeconds=0;h.pm=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.Fd=1;h.Ug=St;h.Ae=!1;h.startSeconds=0;h.Ui=null;h.sentiment=2;h.spacecastModule=!1;h.$g=St;h.Qf=null;h.title="";h.Sf="";
h.hlsFormats="";h.fj=null;h.Zl="vvt";h.requiresPurchase=!1;h.clipStart=0;h.clipEnd=window.Infinity;h.mx=function(a){this.L=a;Nw(this)};h.Qy=function(a){this.isDisposed()||(this.j=a,this.Ea?this.j.subscribe("refresh",this.fp,this):this.j.isLive=!1,Ru("mrc"),Ws(this.j)&&(this.W=!0),Nw(this))};h.Py=function(a){this.isDisposed()||(this.Pd=!1,this.O("dataloaderror",new gv("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.fp=function(){this.j.isLive||this.j.unsubscribe("refresh",this.fp,this);var a=vb(this.j.o.B,this.Ha);0<a.length&&(this.O("cuepointupdated",a),this.Ha+=a.length)};h.Qc=function(a){return x(this.keywords[a])?this.keywords[a]:null};h.lq=function(){var a={format:"RAW",method:"GET",context:this,jb:this.dz,onError:this.kp,withCredentials:this.gd};this.he&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});yj(this.bc,a);Ru("vir")};
h.Cc=function(a,b){if(30==this.U){var c=this.Va["default.jpg"];return c?c:this.videoId?Tg("//docs.google.com/vt",{id:this.videoId,authuser:this.yb,authkey:this.qb}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Va[b])||a.B||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:JG(a,this.videoId,b)};
h.dz=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.Pd=!1;var c=lj(b);"fail"==c.status?this.O("onStatusFail",c):(Ru("virc"),F(rw.A,function(a){a in this.B&&(c[a]=this.B[a])},this),tw(this,c),Nw(this))}else this.kp(a)}};
h.kp=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.rb&&(this.$b?b="manifest.net.retryexhausted":(this.$b=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.ge.start()));this.O("dataloaderror",new gv(b,c,d))}};h.Pe=function(){return null};h.nb=function(){return this};h.vk=function(a){return a.getVideoUrl(this.videoId)};B(dx,Oj);h=dx.prototype;h.hasNext=function(a){return this.G||!!a||this.j+1<this.A};h.nb=function(a){a=void 0!=a?a:this.j;a=this.o&&a in this.o?this.o[this.B[a]]:null;var b=null;a&&(b=new rw(a),b.startSeconds=this.startSeconds||b.clipStart||0,this.C&&(b.playlistId=this.C.toString()));return b};
h.setShuffle=function(a){this.K=a;a=this.B&&null!=this.B[this.j]?this.B[this.j]:this.j;this.B=[];for(var b=0;b<this.o.length;b++)this.B.push(b);this.j=a;this.J++;if(this.K){a=this.B[this.j];for(b=1;b<this.B.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.B[b];this.B[b]=this.B[c];this.B[c]=d}for(b=0;b<this.B.length;b++)this.B[b]==a&&(this.j=b);this.J++}this.O("shuffle")};
h.Cc=function(a,b){b=b||"hqdefault.jpg";var c=this.N[b];if(c||a.B||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.L.length)return JG(a,this.L[0],b)};h.Pe=function(){return this.C?this.C.toString():null};h.vk=function(a){return a.getVideoUrl(this.nb().videoId,this.Pe())};h.S=function(){this.F=null;Nb(this.o);dx.M.S.call(this)};B(vx,R);h=vx.prototype;h.bp=function(){this.vb(iH(this.B))};h.Lm=function(){var a=this.B.V().experiments.B,b=Math.min(Vs()-this.D,a),a=Math.min(b/a,1);this.F.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.o&&this.o.start()};h.select=function(a){yx(this);var b=this.C.nb().videoId;M9(this.B.app,b,a?this.C.ac:this.C.$,this.C.Pe())};h.yF=function(a){!Xl(a)&&sx(a)&&(this.select(),Wl(a))};h.Bs=function(a){Wl(a);tH(this.B,"autonavcancel");O9(this.B.app,!0)};
h.S=function(){yx(this);vx.M.S.call(this)};B(zx,R);zx.prototype.J=function(a,b){Ai(this.o);this.context&&(this.o=Aq(A(this.J,this,a,b),b),a.call(this,new Date-this.H))};zx.prototype.S=function(){Ai(this.o);this.context=null;zx.M.S.call(this)};B(Ax,R);Ax.prototype.Jf=function(){var a=this.o.nb().videoId;M9(this.B.app,a,this.o.$,this.o.Pe())};Ax.prototype.C=function(a){!Xl(a)&&sx(a)&&(this.Jf(),Wl(a))};Ax.prototype.D=function(a){switch(a.keyCode){case 13:case 32:Xl(a)||(this.Jf(),Wl(a))}};B(Bx,Dq);Bx.j=2;h=Bx.prototype;h.create=function(){Bx.M.create.call(this);var a=this.o.getVideoData();a&&(this.B=a.F);this.Dd();this.H.subscribe("onResize",this.Dd,this);this.H.subscribe("videodatachange",this.wr,this);this.H.subscribe("autonavchange",this.vr,this);this.H.subscribe("autonavcancel",this.Rv,this)};
h.destroy=function(){this.H.unsubscribe("onResize",this.Dd,this);this.H.unsubscribe("videodatachange",this.wr,this);Nb(this.C);this.B=[];this.C=[];Bx.M.destroy.call(this);Yd(this.element,"ytp-show-tiles");this.L.stop()};h.Ih=function(){return 1!=this.o.getVideoData().Fd};
h.show=function(){Bx.M.show.call(this);this.o.V().isMobile?Ud(this.L):this.L.start();(this.K||this.F&&this.F!=this.o.getVideoData().clientPlaybackNonce)&&O9(this.o.app,!1);var a=Dx(this.o.V(),this.o.getVideoData(),this.o.gc()),b=!this.F&&this.Ih()&&a;a&&this.o.V().experiments.na("ui_logging")&&this.W.log({cancelButtonShow:b?"1":"0",state:this.Ih()?"enabled":"disabled"});b?2==this.o.getVideoData().Fd?wx(this.D):3==this.o.getVideoData().Fd&&xx(this.D):O9(this.o.app,!0);Fx(this)};
h.ea=function(){Bx.M.ea.call(this);xx(this.D);Fx(this)};
h.Dd=function(a){if((!a||Sl(a)==this.element)&&this.B&&this.B.length){a=this.o.V().experiments.na("video_wall_pagination");var b=this.o.V().experiments.na("video_wall_redesign");a&&L(this.element,"ytp-endscreen-paginate");var c=gg(this.element),d=96,e=b?74:54,f=c.width/c.height,k=d/e;uy(this.o.V())&&!this.o.Ia()&&(d*=.9,e*=.9);for(var l=0,m=0,p=Math.max(c.width/d,2),u=Math.max(c.height/e,2),v=this.B.length,z=Math.pow(Bx.j,2),y=v*z,ga=Ex(this,0,u,p),va=Ex(this,1,u,p),y=y+(Math.pow(ga,2)-z),y=y+(Math.pow(va,
2)-z);0<y&&(l<p||m<u);){var I=l/Bx.j,W=m/Bx.j,Kb=l<=p-Bx.j&&y>=W*z,td=m<=u-Bx.j&&y>=I*z;if(I/W*k>f&&td)y-=I*z,m+=Bx.j;else if(Kb)y-=W*z,l+=Bx.j;else if(td)y-=I*z,m+=Bx.j;else break}k=!1;p=Bx.j+ga;y>=3*z&&6>=v*z-y&&(m>=p||l>=p)&&va<=Bx.j&&(k=!0);d*=l;e*=m;z=1;z=d/e<f?c.height/e:c.width/d;z=Math.min(z,Bx.A);d*=z;e*=z;f=b?1:Bx.o;d*=je(c.width/d||1,1,f);e*=je(c.height/e||1,1,f);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.P.element;dg(c,d,e);Lf(c,{marginLeft:d/-2+"px",marginTop:e/
-2+"px"});f=this.D;z=tx(this.B[0]);f.C=z;ux(f,z,f.B.V(),"hqdefault.jpg");M(this.element,"ytp-endscreen-takeover",Cx(this));Fx(this);b=b?4:1;f=d+b;d=e+b;e=0;z=!1;for(y=0;y<l;y++)for(p=0;p<m;p++)if(u=va>Bx.j&&1<=e&&!z?e+1:e,I=0,k&&y>=l-Bx.j&&p>=m-Bx.j?I=1:0==p%Bx.j&&0==y%Bx.j&&(p<ga&&y<ga?0==p&&0==y&&(I=ga):va>Bx.j&&p>=m-va&&y>=l-va?p==m-va&&y==l-va&&(z=!0,u=1,I=va):I=Bx.j),u=(u+this.G)%v,u=0>u*v?u+v:u,0!=I){W=this.C[e];W||(W=new Ax(this.o),this.C[e]=W,c.appendChild(W.element));var Kb=Math.floor(d*
p/m),td=Math.floor(f*y/l),To=Math.floor(d*(p+I)/m)-Kb-b,Uo=Math.floor(f*(y+I)/l)-td-b;Sf(W.element,td,Kb);dg(W.element,Uo,To);Lf(W.element,"transitionDelay",(p+y)/20+"s");M(W.element,"videowall-still-mini",1==I);M(W.element,"videowall-still-large",2<I);I=W;u=tx(this.B[u]);I.o=u;ux(I,u,I.B.V(),Wd(I.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");e++}a&&M(this.element,"ytp-endscreen-paginate",e<v);for(a=this.C.length-1;a>=e;a--)W=this.C[a],pf(W.element),Mb(W);this.C.length=e}};
Bx.A=1.42;Bx.o=1.21;h=Bx.prototype;h.wr=function(){var a=this.o.getVideoData().F;this.B!=a&&(this.G=0,this.B=a,this.Dd())};h.vy=function(){this.G+=this.C.length;this.Dd()};h.wy=function(){this.G-=this.C.length;this.Dd()};h.vr=function(a){1==a?(this.K=!1,this.F=this.o.getVideoData().clientPlaybackNonce,yx(this.D),this.A&&this.Dd()):(this.K=!0,this.A&&Cx(this)&&(2==a?wx(this.D):3==a&&xx(this.D)))};h.Rv=function(a){a?this.vr(1):(this.F=null,this.K=!1,this.Dd())};B(Hx,jq);h=Hx.prototype;h.Xa=function(a){return Jx(a)};h.create=function(){Hx.M.create.call(this);Nx(this);this.j.getVideoData().subscribe("dataupdated",this.Qp,this)};h.destroy=function(){this.j.getVideoData().unsubscribe("dataupdated",this.Qp,this);kq(this);this.o.J&&this.o.destroy();Hx.M.destroy.call(this)};h.load=function(){Hx.M.load.call(this);this.o.show();this.j.V().Y&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};h.unload=function(){Hx.M.unload.call(this);this.o.ea()};
h.oc=function(a){Hx.M.oc.call(this,a);Lx(this)&&(this.o.J||this.o.create(),"load"==a.getId()&&this.load())};h.Gc=function(a){"load"==a.getId()&&this.loaded&&this.unload();Hx.M.Gc.call(this,a)};h.Qp=function(){kq(this);Nx(this)};var Zda={RF:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",SF:"ERROR_AUTHENTICATION_EXPIRED",TF:"ERROR_AUTHENTICATION_MALFORMED",UF:"ERROR_AUTHENTICATION_MISSING",YF:"ERROR_BAD_REQUEST",cG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",lG:"ERROR_CGI_PARAMS_MALFORMED",mG:"ERROR_CGI_PARAMS_MISSING",tG:"YTP_DEVICE_FALLBACK",zG:"YTP_ERROR_LICENSE",EG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",FG:"YTP_ERROR_GEO_FAILURE",PG:"YTP_ERROR_GENERIC_WITHOUT_LINK",QG:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",WG:"YTP_ERROR_INVALID_DRM_MESSAGE",
ZG:"LEARN_MORE",pH:"YTP_ERROR_NOT_SIGNED_IN",EH:"YTP_ERROR_PURCHASE_NOT_FOUND",FH:"YTP_ERROR_PURCHASE_REFUNDED",IH:"YTP_ERROR_RENTAL_EXPIRED",gG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",hG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",jG:"YTP_ERROR_CAST_TOKEN_FAILED",iG:"YTP_ERROR_CAST_TOKEN_EXPIRED",kG:"YTP_ERROR_CAST_TOKEN_MALFORMED",QH:"YTP_ERROR_SERVER_ERROR",cI:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",dI:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",eI:"YTP_ERROR_STREAMING_NOT_ALLOWED",fI:"YTP_ERROR_STREAMING_UNAVAILABLE",
MH:"YTP_ERROR_RETRYABLE_ERROR",oI:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",nI:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",wI:"YTP_ERROR_UNSUPPORTED_DEVICE",xI:"YTP_ERROR_UNUSUAL_ACTIVITY",FI:"YTP_ERROR_VIDEO_FORBIDDEN",GI:"YTP_ERROR_VIDEO_NOT_FOUND"},Qx={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 Zx=A1&&4>Cw?.1:0,Qea=new Xx;h=Xx.prototype;h.Te=null;h.Rj=!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.av=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};h.cv=function(){this.Rj&&!this.muted&&(this.muted=!0)};ay.prototype.gb=function(){return U(this,8)&&!U(this,64)&&!U(this,2)};var ez=[1,2,3,4,5],cz={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(ny,Oj);ny.prototype.B=function(){this.o.isActive()&&Ud(this.o)};ny.prototype.C=function(){var a={headers:{"Content-Type":"application/json"},Cd:{alt:"json",key:this.F},postBody:this.G,format:"JSON",timeout:1E4,jb:A(this.J,this),onError:A(this.A,this),Ud:A(this.A,this)};this.D&&(a.headers["X-Goog-Visitor-Id"]=this.D);xj(this.H,a)};
ny.prototype.J=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.O("payload",a),this.j=7500+Math.floor(15E3*Math.random()),this.o.start(this.j)):this.A())};ny.prototype.A=function(){this.isDisposed()||(this.O("error"),192E4>this.j&&(this.j*=2),this.o.start(this.j))};B(yy,R);yy.prototype.B=function(a){if(!sx(a)||this.o.V().experiments.na("disable_fresca_video_navigation"))sy(a,this.o,!0);else{var b=a.currentTarget.getAttribute("href");M9(this.o.app,b.substring(b.length-11),void 0,void 0);Wl(a)}};B(zy,R);h=zy.prototype;h.Bx=function(a){if(!sx(a)||this.B.V().experiments.na("disable_fresca_video_navigation"))sy(a,this.B,!0);else{var b=a.currentTarget.getAttribute("href");M9(this.B.app,b.substring(b.length-11),void 0,void 0);Wl(a)}};h.uy=function(){this.C=!0;this.ea()};h.show=function(){var a=!this.A;zy.M.show.call(this);a&&kz(this.B)};h.ea=function(){var a=this.A;zy.M.ea.call(this);a&&kz(this.B)};h.S=function(){Nb(this.o);zy.M.S.call(this)};B(Ey,R);
Ey.prototype.G=function(a){var b;b=this.o;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;M(this.element,"ytp-fresca-inline-countdown",b&&!0);M(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.o.startTime-Math.floor(K()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.F)){this.F=a;Fy(this,this.o,!0);return}Gy(this.o)||(a=this.o.startTime,b=Math.floor(K()/1E3),b>a?a="":(a-=b,a=86400>a?rx(a):259200>a?Q("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):
Q("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})),xq(this,"countdown",a));Ai(this.D);this.D=xi(A(this.G,this),1E3)}};Ey.prototype.S=function(){Ai(this.D);Ey.M.S.call(this)};var Ry;
Ry={ut:["SM","M"],qt:["Sebelum Masehi","M"],cu:"JFMAMJJASOND".split(""),vu:"JFMAMJJASOND".split(""),Sm:"Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember".split(" "),Wm:"Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember".split(" "),Um:"Jan Feb Mar Apr Mei Jun Jul Agt Sep Okt Nov Des".split(" "),Xm:"Jan Feb Mar Apr Mei Jun Jul Agt Sep Okt Nov Des".split(" "),fn:"Minggu Senin Selasa Rabu Kamis Jumat Sabtu".split(" "),Zm:"Minggu Senin Selasa Rabu Kamis Jumat Sabtu".split(" "),Vm:"Min Sen Sel Rab Kam Jum Sab".split(" "),
Ym:"Min Sen Sel Rab Kam Jum Sab".split(" "),j:"MSSRKJS".split(""),wu:"MSSRKJS".split(""),ou:["K1","K2","K3","K4"],iu:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"],Nm:["AM","PM"],Ej:["EEEE, dd MMMM y","d MMMM y","d MMM y","dd/MM/yy"],an:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],ht:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],Gj:6,Eu:[5,6],Hj:5};Iy.prototype.equals=function(a){return a.D==this.D&&a.C==this.C&&a.j==this.j&&a.o==this.o&&a.A==this.A&&a.B==this.B};Iy.prototype.clone=function(){return new Iy(this.D,this.C,this.j,this.o,this.A,this.B)};h=Jy.prototype;h.In=Ry.Gj;h.Jn=Ry.Hj;h.clone=function(){var a=new Jy(this.date);a.In=this.In;a.Jn=this.Jn;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(),Pa(this.getMonth()+1,2),Pa(this.getDate(),2)].join("")+""};h.valueOf=function(){return this.date.valueOf()};var Vy=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Qy.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.A-Py(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.o.length;++f){var k=this.o[f].text;1==this.o[f].type?c.push(Yy(this,k,a,d,e,b)):c.push(k)}return c.join("")};var Uy=!1;Zy.prototype.isLive=function(){return"LIVE"==this.o};Zy.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.o};Zy.prototype.getVideoUrl=function(){return this.D};az.prototype.j=function(){return this.B};az.prototype.getMessage=function(){return this.messageText.length?this.messageText:dz(this)};az.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.j()==a.j()&&this.imageUrl==a.imageUrl&&Eb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};B(fz,jq);h=fz.prototype;h.Xa=function(){return $w(this.j.getVideoData(),"fresca_module")};
h.create=function(a){fz.M.create.call(this);var b=this.j.V();Lv(pt(),"application/x-mpegURL")||Qv()?(this.J=this.A=!1,this.C=new Ey(this.j),this.C.j(this.j.ua()),this.B=a||null,this.B||(a=this.j.getVideoData(),this.B=new ny(a.videoId,a.visitorData||wi("VISITOR_DATA",""),b.je)),this.B.subscribe("payload",this.dA,this),this.B.subscribe("error",this.Ap,this),this.subscribe("onStateChange",this.sr,this)):nJ(this.j.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
h.destroy=function(){this.unsubscribe("onStateChange",this.sr,this);Nb(this.B,this.C);fz.M.destroy.call(this)};h.sr=function(a){this.o&&(this.J=U(a.state,2),ly(hz(this.j))&&this.B.B(),gz(this,this.o))};h.Ap=function(){if(!this.A){var a=this.j.getVideoData();a.hlsvp||a.G?this.j.V().experiments.na("disable_fresca_error_fallback")||(this.A=!0,nq(this)):(jz(this,new az(this.j.getVideoData().isLiveDefaultBroadcast)),gz(this,this.o))}};
h.dA=function(a){if(!a||a.error)this.Ap();else{var b=this.o?this.o.broadcastId:"",c=this.j.getVideoData();jz(this,new az(c.isLiveDefaultBroadcast,a));this.D=this.D||c.isLiveDefaultBroadcast&&""!=b&&b!=this.o.broadcastId;6!=this.o.state||(c.hlsvp||c.G)&&!this.D?gz(this,this.o):(this.D=!1,this.j.wm(c.videoId))}};var nz=vc&&lz();rz.prototype.R=function(a,b,c,d){c=A(c,d||this.o);a=Ll(a,b,c);this.j.push(a);return a};rz.prototype.ya=function(a){Ol(a);ob(this.j,a)};rz.prototype.removeAll=function(){Ol(this.j);this.j.length=0};B(uz,G);h=uz.prototype;h.start=function(){this.stop();this.B=!1;var a=vz(this),b=wz(this);a&&!b&&this.o.mozRequestAnimationFrame?(this.j=Nc(this.o,"MozBeforePaint",this.A),this.o.mozRequestAnimationFrame(null),this.B=!0):this.j=a&&b?a.call(this.o,this.A):this.o.setTimeout(fd(this.A),20)};h.stop=function(){if(this.isActive()){var a=vz(this),b=wz(this);a&&!b&&this.o.mozRequestAnimationFrame?Zc(this.j):a&&b?b.call(this.o,this.j):this.o.clearTimeout(this.j)}this.j=null};
h.isActive=function(){return null!=this.j};h.Ov=function(){this.B&&this.j&&Zc(this.j);this.j=null;this.D.call(this.C,K())};h.S=function(){this.stop();uz.M.S.call(this)};var yz={},zz=null;B(Dz,J);h=Dz.prototype;h.gb=function(){return 1==this.j};h.Bi=function(){this.kc("begin")};h.Mg=function(){this.kc("end")};h.Wb=function(){this.kc("finish")};h.kc=function(a){this.Z(a)};B(Ez,Dz);h=Ez.prototype;h.play=function(a){if(a||0==this.j)this.progress=0,this.o=this.A;else if(this.gb())return!1;xz(this);this.startTime=a=K();-1==this.j&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.progress||this.Bi();this.kc("play");-1==this.j&&this.kc("resume");this.j=1;var b=ka(this);b in yz||(yz[b]=this);Az();Cz(this,a);return!0};
h.stop=function(a){xz(this);this.j=0;a&&(this.progress=1);Fz(this,this.progress);this.kc("stop");this.Mg()};h.pause=function(){this.gb()&&(xz(this),this.j=-1,this.kc("pause"))};h.S=function(){0==this.j||this.stop(!1);this.kc("destroy");Ez.M.S.call(this)};h.destroy=function(){this.dispose()};h.nl=function(){this.kc("animate")};h.kc=function(a){this.Z(new Gz(a,this))};B(Gz,jc);B(Oz,G);h=Oz.prototype;h.cb=function(a){this.Jc();var b=this.j;if(1<a.length&&a.length>b.j.length)b.j=b.j.concat(a),b.j.sort(eq);else for(var c=0;c<a.length;c++){var d=a[c];!b.j.length||0<eq(d,b.j[b.j.length-1])?b.j.push(d):Gb(b.j,d,eq)}this.Jc()};h.gh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);d=this.j.j;c=xb(d,c,eq);0<=c&&pb(d,c)}}this.Jc()};h.Pf=function(){this.A=Sz(this);this.F=!0;this.Jc()};
h.reset=function(){this.F=this.H=!1;this.B.stop();this.j.j=[];this.o=[];this.Jc();this.D=null};
h.Jc=function(){this.G=!0;if(!this.C)for(var a=3;this.G&&a;){this.G=!1;this.C=!0;if(this.F&&!this.H){this.B.stop();for(var b=Sz(this),c=[],d=[],e=0;e<this.o.length;e++){var f=this.o[e];f.active&&!f.contains(b)&&d.push(f)}c=c.concat(Qz(this,d));d=Kz(this.j,b);e=this.L();!U(e,48)&&b>this.A&&(d=d.concat(Lz(this.j,this.A,b)));c=c.concat(Pz(this,d));this.A=b;!this.H&&this.D&&(this.D=null,U(e,2)&&(this.A=0x8000000000000));this.U()&&(b=Nz(this.j,this.A),null!=b&&(b=(b-this.A)/this.P(),this.B.start(b)));
Rz(this,c)}this.C=!1;a--}};h.S=function(){this.D=this.j=this.o=null;Oz.M.S.call(this)};var hA={qG:"current",oH:"new"};qA.prototype.update=function(){var a=this.o.A()||0,b=NA(this.o);if(a!=this.j||vA(this,a,b)){if(a<this.j||a-this.j>b-this.C+.5||vA(this,a,b))sA(this),this.A=a;this.C=b;this.j=a}};var xA=!1;wA.prototype.na=function(a){return"true"==this.flags[a]};wA.prototype.Bc=function(a){return(0,window.parseFloat)(this.flags[a])};wA.prototype.J=function(a){return this.flags[a]?this.flags[a].toString():""};zA.prototype.A=function(){return{ps:this.j.j,el:this.j.Ba}};zA.prototype.send=function(){if(!this.B){var a;a=this.A();a=Tg(this.j.baseYtUrl+"set_awesome",a);this.j.experiments.j&&this.o.visitorData&&qj(a)?yj(a,{headers:{"X-Goog-Visitor-Id":this.o.visitorData}}):Yp(a);this.B=!0}};B(AA,zA);
AA.prototype.A=function(){var a=AA.M.A.call(this);qa(a,this.j.o);qa(a,{html5:"1",video_id:this.o.videoId,eurl:this.j.U,framer:this.j.ie,list:this.o.Ua||this.o.playlistId,w:je(this.o.ij/this.o.lengthSeconds,0,1),l:this.o.lengthSeconds,plid:this.o.playbackId,ei:this.o.eventId,access_token:this.o.oauthToken,tpmt:tA(this.C),cpn:this.o.clientPlaybackNonce});this.j.D&&(a.adformat=this.j.D);a.feature=xA?this.j.ha:this.o.pe;var b;(b=(b=xA?this.j.referrer:this.o.referrer)?b.slice(0,128):"")&&(a.referrer=b);
this.j.autoplay&&(a.autoplay="1");this.j.yb&&(a.authuser=this.j.yb);this.j.pageId&&(a.pageid=this.j.pageId);this.o.Xf&&(a.splay="1");this.o.subscribed&&(a.subscribed=this.o.subscribed);qa(a,AA.M.A.call(this));qa(a,this.j.o);return a};B(DA,G);var XA={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=DA.prototype;
h.Li=function(a){a=0<=a?a:NA(this.j);var b=this.j.F();if(!(0,window.isNaN)(this.T)&&!(0,window.isNaN)(b.A)){var c=b.A-this.T;0<c&&EA(this,a,"bwm",[c,(b.D-this.$).toFixed(3)])}this.T=b.A;this.$=b.D;(0,window.isNaN)(b.j)||EA(this,a,"bwe",[b.j.toFixed(0)]);(0,window.isNaN)(b.o)||(c=b.o,b.B<c&&(c=b.B),this.N!=c&&(EA(this,a,"bh",[c.toFixed(3)]),this.N=c),this.j.o.experiments.o&&3>c&&("PL"==this.o||"B"==this.o)&&this.F.start());this.B&&EA(this,a,"bat",[this.B.level,this.B.charging?"1":"0"]);c=bH(this.j.o);
this.Y!=c&&(EA(this,a,"vis",[c]),this.Y=c);EA(this,a,"cmt",[this.j.A()]);0<b.C&&EA(this,a,"e2el",[b.C,b.G.toFixed(3),b.F.toFixed(3),b.J.toFixed(3),b.H.toFixed(3)])};
h.Rg=function(a){if(!this.isDisposed()&&!ac(this.A)){a=0<=a?a:NA(this.j);this.F.isActive()||this.Li(a);var b=KG(this.j.o),c=b.droppedVideoFrames,d=c-this.U;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&EA(this,a,"df",[d]);this.U=c;a=FA(this);gc(a,this.j.o.o);a=Tg(this.j.o.$c,a);for(var e in this.A)a+="&"+e+"="+this.A[e].join(",");Yp(a);this.A={};this.D.start()}};
h.Pf=function(){EA(this,NA(this.j),"vps",["N"]);this.j.j.Sa&&GA(this,"preload");this.j.j.al&&GA(this,"reload");this.j.j.zf&&GA(this,"monitor");this.j.o.experiments.$&&xi(A(this.xB,this),5E3);this.P=zi(A(this.Rg,this),1E4);this.D.start()};
h.xB=function(){var a=fj("yt-player-benchmark")||0;if(!a){for(var b=a=0;20>b;b++){for(var c=Vs(),d=0,e=0;1>Vs()-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));dj("yt-player-benchmark",a,172800)}GA(this,"jsbench-"+a)};h.rq=function(){this.j.j.L&&GA(this,"drm-"+this.j.j.L.o)};h.onError=function(a,b){var c=this.j.A(),c=[a,c.toFixed(3)];b&&c.push(b);var d=NA(this.j);EA(this,d,"error",c);this.Li(d)};
h.fz=function(){var a=NA(this.j);"PL"==this.o&&(EA(this,a,"vps",[this.o]),this.Rg(a))};h.S=function(){DA.M.S.call(this);Bi(this.P)};HA.prototype.send=function(a){if(!this.Y){var b=JA(this),b=Tg(this.Ua,b);if(this.U)this.K&&(a={method:"POST",Ab:{atr:this.K}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),yj(b,a));else{var c=this.F&&rj(),d=this.ca&&!!this.visitorData;if(c||d){var e={};c&&(e.Authorization="Bearer "+this.F);d&&(e["X-Goog-Visitor-Id"]=this.visitorData);yj(b,{headers:e,withCredentials:!0,Wb:a})}else Yp(b,a)}this.Y=!0}};HA.prototype.j=function(a){return(1*a.toFixed(3)).toString()};B(LA,G);h=LA.prototype;h.Sy=function(a,b){if(!this.isDisposed()){this.F=window.NaN;this.o.update();var c=uA(this.o),d=QA(this,c);b&&(d.C=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.o=MA(this,!0,a));d.send();this.J++}};h.Pf=function(){this.A.Pf()};h.onError=function(a,b){this.A.onError(a,b)};
h.Qi=function(a){var b=this.j.o,c=this.j.j,c={ns:b.$,el:b.Ba,eurl:b.U,fmt:c.o?c.o.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.j,noflv:1,st:this.j.A(),video_id:c.videoId,metric:a};b.autoplay&&(c.autoplay="1");"heartbeat"==a&&(c.tpmt=tA(this.o));qa(c,b.o);TA(this,Tg("//www.youtube.com/live_204",c))};h.S=function(){LA.M.S.call(this);Ai(this.F);this.F=window.NaN;var a=this.o;Bi(a.D);a.D=window.NaN};ZA.prototype.ab=function(a,b){uH(this.aa,"iv",a,b)};h=hB.prototype;h.Si=function(){this.context.C.subscribe("onResize",this.Jh,this)};h.ia=function(){return this.Y};h.Lf=function(a,b,c,d,e,f){this.context.j.R(a,"click",pa(this.xi,b,c,d,e||[],f||0),this);this.context.j.R(a,"touchstart",pa(function(){this.$l=!1}),this);this.context.j.R(a,"touchmove",pa(function(){this.$l=!0}),this)};h.xi=function(a,b,c,d,e,f){if(this.$l)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=nA(a,b,this.context.B.videoId))&&kB(this,b,pA(b,a.target),c,d,e,a.Gi);return!1};
h.show=function(){this.J=K()};h.ea=function(){};h.destroy=function(){pf(this.ia())};h.Jh=function(){};B(lB,R);h=lB.prototype;h.qE=function(a){this.o&&xf(this.o.element,Sl(a))||(this.zj(),Mi("iv-teaser-clicked",!!this.za),this.aa.kh(!0))};h.AA=function(a){this.za||!a||wH(this.aa)||this.C&&this.C.isActive()||(oB(this,a.teaserText,a.durationMs,a.vw),Mi("iv-teaser-shown"))};h.uw=function(a,b,c,d){d&&this.aa.pauseVideo();py(b,void 0);qy(b,c)};
h.zj=function(){!this.za||this.D&&this.D.isActive()||(this.o&&(this.o.detach(),this.o=null),this.F.ea(),Yd(this.aa.ua(),"ytp-cards-teaser-shown"),this.D=new Td(function(){for(var a=0;a<this.B.length;a++)this.ya(this.B[a]);this.B=[];this.za&&(this.za.dispose(),this.za=null);pB(this.G,!0)},330,this),this.D.start())};h.S=function(){var a=this.aa.ua();a&&Yd(a,"ytp-cards-teaser-shown");Nb(this.C,this.D,this.za,this.o);lB.M.S.call(this)};B(rB,qB);B(sB,qB);B(tB,sB);uB.prototype.C=function(a,b){var c=Gf(b.target,"iv-card-poll");if(c){var d=Ef(b.target,"label");L(d,"iv-card-poll-choice-checked");a:{if(d=b.target.form.elements[a.A]){if(d.type){d=hj(d);break a}for(var e=0;e<d.length;e++){var f=hj(d[e]);if(f){d=f;break a}}}d=null}a.choices[d].count++;wB(a,c);xj(this.j.B.$e,{Cd:{action_poll_vote:1},Ab:{poll_id:a.id,index:d}});c={};c["link-id"]=d;dB(this.j.logger,a.Ra,void 0,c,a.j.click,5)}};
uB.prototype.B=function(a){var b=t("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.G,a.B));JB(this,a,b)};uB.prototype.D=function(a){var b=t("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.G,a.B,a.H));JB(this,a,b)};B(LB,qB);B(MB,qB);B(NB,sB);B(PB,sB);B(QB,qB);B(RB,qB);B(SB,hB);h=SB.prototype;h.isAvailable=function(){var a;if(a=!!this.j.length)(a=this.aa.ua())?(a=gg(a),a=177<a.width&&177<a.height):a=!1;return a};h.Uu=function(){this.context.A.experiments.na("product_listing_ads_html5")&&!cC(this)||VB(this)};h.Su=function(){XB(this)};
h.Jh=function(){var a=this.isAvailable();Hq(this.ia(),a);M(this.context.o.ua(),"ytp-iv-drawer-enabled",a);a&&(this.P||(fB(this.context.logger,11),this.P=!0),F(this.j,function(a){a.Jo||(a.Jo=!0,gB(this.context.logger,11,a.fb.Ra))},this));WB(this.aa)};h.destroy=function(){xH(this.aa,!1);this.aa.ua().removeChild(this.D);Li(this.H);Ol(this.N);this.G&&this.G.dispose();this.B&&this.B.dispose();SB.M.destroy.call(this)};
var TE={adspaycreator:sB,associated:sB,associated:sB,collaborator:rB,donation:tB,episode:RB,fundraising:sB,location:sB,merch:sB,movie:RB,playlist:LB,poll:MB,product:sB,productListing:NB,tip:PB,video:QB};h=SB.prototype;h.JD=function(a){this.Uj.start();a.preventDefault();if(a=Zl(a||window.event,!1))this.yc.scrollTop+=a};
h.Fl=function(a,b,c){if(!Wd(this.aa.ua(),"ytp-cards-teaser-shown")){this.A!=a&&(this.A=a);if(Iq(this.ia())&&(b||(2==this.context.o.getPresentingPlayerType()?b=1==((0,window.isNaN)(void 0)?this.context.o.getAdState():void 0):(b=(0,window.isNaN)(void 0)?this.context.o.getPlayerState():void 0,b=1==b||0==b&&0===this.context.o.getCurrentTime())),b&&a.fb.teaserDurationMs)){b=a.fb.teaserText;c=c?c:a.fb.teaserDurationMs;var d=null,e=this.context.A.experiments.na("hover_card_for_video_card_teaser");if("video"==
a.fb.type&&e){var e=a.fb,f=e.url?nA(e.url,a.fb.id,this.context.B.videoId,this.context.A):null,k=f?pA(f,e.url.target):null;f&&k&&(d={Xu:e.id,title:e.title,sB:f,target:"current"==k?"_top":void 0,Gi:e.url.Gi,imageUrl:e.A,videoDuration:e.videoDuration,wd:e.wd})}xH(this.aa,!0,{teaserText:b,durationMs:c,vw:d})}(!this.C||!this.Uj.isActive()&&this.ti)&&aC(this,a)}};h.RB=function(){this.A&&this.Fl(this.A,!0,2E3)};h.KB=function(a){this.C||(this.A=a,aC(this,a),VB(this,a))};
h.dv=function(){this.C&&(fB(this.context.logger,4,bC(this).j.close),XB(this))};h.tv=function(){M(this.D,"iv-drawer-scrolled",0<this.yc.scrollTop)};h.xx=function(){var a=bC(this);gB(this.context.logger,8,a.Ra,a.j.VB)};h.wx=function(a){var b=bC(this);this.A?a?(a=this.context.logger,gB(a,9,b.Ra,b.j.Ol)):(a=this.context.logger,gB(a,12,b.Ra,b.j.Ol)):(a=this.context.logger,fB(a,12,b.j.Ol));a.aa.$f(4,void 0)};var fC=/#(.)(.)(.)/,eC=/^#(?:[0-9a-f]{3}){1,2}$/i;B(gC,Ez);gC.prototype.B=w;gC.prototype.nl=function(){this.B();gC.M.nl.call(this)};gC.prototype.Mg=function(){this.B();gC.M.Mg.call(this)};gC.prototype.Bi=function(){this.B();gC.M.Bi.call(this)};B(hC,gC);hC.prototype.B=function(){this.element.style.left=Math.round(this.o[0])+"px";this.element.style.top=Math.round(this.o[1])+"px"};B(iC,hB);iC.prototype.Si=function(){iC.M.Si.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&iB(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ea)};B(jC,iC);jC.prototype.H=function(a,b,c,d){this.j.stop();if(!this.A){var e=gg(a);eg(a,e.width);eg(b,e.width);Sf(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.A=!0;Jq(a);this.C=new Td(function(){L(this.ia(),"iv-branding-active")},0,this);this.C.start()}};jC.prototype.G=function(a,b){Yd(this.ia(),"iv-branding-active");this.D=new Td(function(){Kq(a);eg(b,0)},250);this.D.start();this.A=!1};
jC.prototype.show=function(){if(!this.isActive){jC.M.show.call(this);if(!this.F){L(this.ia(),"iv-branding");var a=this.annotation.data;this.B=a.image_width;this.o=N("img",{src:a.image_url,"class":"branding-img iv-click-target hid",width:a.image_width,height:a.image_height});var b=N("div","branding-img-container",this.o);this.ia().appendChild(b);var c=N("div","iv-branding-context-name");zf(c,a.channel_name);var d=N("div","iv-branding-context-subscribe");this.annotation.A?d.innerHTML=this.annotation.A:
a.num_subscribers&&zf(d,a.num_subscribers);b=N("div","iv-branding-context-subscribe-caret");c=N("div",["branding-context-container-inner","hid"],b,c,d);d=N("div","branding-context-container-outer",c);Lf(d,"right",this.B+"px");this.ia().appendChild(d);this.Lf(this.o,UC(this.annotation),this.annotation.id,this.annotation.Ra);this.j=new Td(pa(this.G,c,d),500,this);this.context.j.R(this.ia(),"mouseover",A(this.H,this,c,d,b,a.image_height));this.context.j.R(this.ia(),"mouseout",A(this.j.start,this.j));
this.F=!0}$A(this.context.logger,this.annotation.Ra);Jq(this.ia());this.isActive=!0;var a=this.o,e,b=ig(a).width,c=fa(void 0)?void 0:b;e=e||0;Sf(a,c);e=new hC(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Hz);this.context.j.R(e,"begin",pa(Jq,a));e.play()}};jC.prototype.ea=function(){this.isActive&&(Kq(this.ia()),this.isActive=!1)};var nC={CLOSE:"close",tH:"openUrl",xu:"subscribe"},oC={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",NH:"rollOut",mu:"rollOver",pu:"shown"};var yC={RI:"xx",SI:"xy",WI:"yx",XI:"yy"};B(CC,wC);var GC={Ms:"anchored",HH:"rect",RH:"shapeless"};var LC={CLOSED:"closed",xH:"playerControlShow",mu:"rollOver",pu:"shown"};var SC={Ms:"anchored",BRANDING:"branding",CHANNEL:"channel",pG:"cta",NG:"highlightText",XG:"label",PLAYLIST:"playlist",zH:"popup",ZH:"speech",xu:"subscribe",kI:"title",VIDEO:"video",KI:"vote",MI:"website"},RC={BRANDING:"branding",eG:"card",MG:"highlight",IMAGE:"image",MARKER:"marker",DH:"promotion",TEXT:"text",NI:"widget"},TC={HI:"video_relative",yH:"player_relative"};PC.prototype.showLinkIcon=function(){return XC(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(dD,iC);h=dD.prototype;h.show=function(){this.isActive||(dD.M.show.call(this),this.G||(eD(this),this.G=!0),Jq(this.ia()),this.annotation&&this.annotation.Ra&&$A(this.context.logger,this.annotation.Ra),Yd(this.ia(),"iv-promo-inactive"),this.ia().removeAttribute("aria-hidden"),this.isActive=!0,this.j&&(Sd(this.j),this.j=null),gD(this),hD(this,this.D))};h.ea=function(){this.isActive&&(L(this.ia(),"iv-promo-inactive"),this.isActive=!1,this.ia().setAttribute("aria-hidden",!0))};
h.xi=function(a,b,c,d,e,f){return this.B?!1:dD.M.xi.call(this,a,b,c,d,e,f)};h.Ek=function(a,b){b.stopPropagation();gD(this);hD(this,a);this.Pb.focus()};h.cw=function(a){this.F=!0;this.Ek(500,a)};h.bw=function(){this.F=!1;fD(this)};h.KD=function(a){a.stopPropagation();this.ea();eB(this.context.logger,this.annotation.Ra)};h.destroy=function(){this.C.dispose();dD.M.destroy.call(this)};var sG={JF:"adunit",sG:"detailpage",wG:"embedded",YG:"leanback",CH:"profilepage"};iD.prototype.B=function(a,b,c,d){this.j[a]=b?!c:c;a=Rb(this.j,function(a){return a});this.o!=a&&(this.o=a,this.A.O(this.C,a,d))};h=kD.prototype;h.ea=function(){this.isVisible=!1;this.j&&(mD(this),this.j.ea())};h.show=function(){this.isVisible=!0;this.j&&(this.j.show(),this.A.subscribe("onResize",this.yr,this),this.A.subscribe("onVideoAreaChange",this.Pp,this))};h.destroy=function(){if(this.j){mD(this);var a=this.j;a.F.removeAll();a.kl.dispose();a.H.dispose();a.o&&pf(a.o);a.A&&a.A.ia()&&pf(a.A.ia())}nD(this)};h.Pp=function(){xE(this.j)};h.yr=function(){xE(this.j)};oD.prototype.clone=function(){return new oD(this.start,this.end)};B(qD,pD);rD.prototype.Oc=null;rD.prototype.Nb=null;rD.prototype.Zg=!0;var vD=[2,2,6,6,0];h=rD.prototype;h.clear=function(){this.ta.length=0;this.xa.length=0;this.jc.length=0;delete this.Oc;delete this.Nb;delete this.Zg;return this};h.ob=function(a){var b=db(this.ta);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ta.push(1),this.xa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.jc.push(c,d)}this.xa[this.xa.length-1]+=b/2;this.Nb=[c,d]};
h.close=function(){var a=db(this.ta);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ta.push(4),this.xa.push(1),this.Nb=this.Oc);return this};h.clone=function(){var a=new this.constructor;a.ta=this.ta.concat();a.xa=this.xa.concat();a.jc=this.jc.concat();a.Oc=this.Oc&&this.Oc.concat();a.Nb=this.Nb&&this.Nb.concat();a.Zg=this.Zg;return a};
h.transform=function(a){if(!this.Zg)throw Error("Non-simple path");a.transform(this.jc,0,this.jc,0,this.jc.length/2);this.Oc&&a.transform(this.Oc,0,this.Oc,0,1);this.Nb&&this.Oc!=this.Nb&&a.transform(this.Nb,0,this.Nb,0,1);return this};h.isEmpty=function(){return 0==this.ta.length};B(wD,pD);xD.prototype.getWidth=function(){return this.A};aa(yD);yD.prototype.j=0;B(zD,J);h=zD.prototype;h.ww=yD.getInstance();h.getId=function(){return this.P||(this.P=":"+(this.ww.j++).toString(36))};h.ia=function(){return this.j};h.Wg=function(a){if(this.H&&this.H!=a)throw Error("Method not supported");zD.M.Wg.call(this,a)};h.Xn=function(){this.j=this.L.createElement("DIV")};h.sg=function(){AD(this,function(a){a.Je&&a.sg()});this.C&&this.C.removeAll();this.Je=!1};
h.S=function(){this.Je&&this.sg();this.C&&(this.C.dispose(),delete this.C);AD(this,function(a){a.dispose()});this.j&&pf(this.j);this.H=this.j=this.D=this.G=null;zD.M.S.call(this)};h.Jd=function(){return this.j};
h.removeChild=function(a,b){if(a){var c=x(a)?a:a.getId();a=this.D&&c?dc(this.D,c)||null:null;if(c&&a){cc(this.D,c);ob(this.G,a);b&&(a.sg(),a.j&&pf(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.H=null;zD.M.Wg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(BD,zD);BD.prototype.A=null;BD.prototype.xg=function(){return this.Je?fg(this.ia()):fa(this.width)&&fa(this.height)?new qe(this.width,this.height):null};BD.prototype.resume=function(){};B(DD,J);h=DD.prototype;h.yk=null;h.zg=null;h.ia=function(){return this.zg};h.addEventListener=function(a,b,c,d){Nc(this.zg,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Yc(this.zg,a,b,c,d)};h.S=function(){DD.M.S.call(this);var a=this.zg;if(a)if(Dc(a))a.removeAllListeners(void 0);else if(a=Qc(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)Zc(d[e])&&++b}};B(ED,DD);ED.prototype.fill=null;B(ID,DD);B(JD,DD);B(KD,ED);B(LD,ID);LD.prototype.clear=function(){nf(this.ia())};LD.prototype.setSize=function(a,b){PD(this.ia(),{width:a,height:b})};B(MD,KD);B(ND,JD);ND.prototype.setPosition=function(a,b){PD(this.ia(),{x:a,y:b})};ND.prototype.setSize=function(a,b){PD(this.ia(),{width:a,height:b})};var UD;B(OD,BD);var SD=0;h=OD.prototype;h.Xn=function(){var a=GD(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=GD(this,"g");this.F=GD(this,"defs");this.A=new LD(b,this);a.appendChild(this.F);a.appendChild(b);this.j=a;this.B&&(this.ia().setAttribute("preserveAspectRatio","none"),this.N?this.Gq():this.ia().setAttribute("viewBox","0 0 "+(this.B?this.B+" "+this.J:"")))};
h.Gq=function(){if(this.Je){var a=this.xg();if(0==a.width)this.ia().style.visibility="hidden";else{this.ia().style.visibility="";var b=a.width/this.B,a=a.height/this.J;this.A.ia().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};h.setSize=function(a,b){dg(this.ia(),a,b)};
h.xg=function(){if(!tc)return this.Je?fg(this.ia()):OD.M.xg.call(this);var a=this.width,b=this.height,c=x(a)&&-1!=a.indexOf("%"),d=x(b)&&-1!=b.indexOf("%");if(!this.Je&&(c||d))return null;var e,f;c&&(e=this.ia().parentNode,f=gg(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.ia().parentNode,f=f||gg(e),b=(0,window.parseFloat)(b)*f.height/100);return new qe(a,b)};h.clear=function(){this.A.clear();nf(this.F);this.o={}};h.sg=function(){OD.M.sg.call(this);this.N&&this.K.ya(TD(),"tick",this.Gq)};
h.S=function(){delete this.o;delete this.F;delete this.A;this.K.dispose();delete this.K;OD.M.S.call(this)};VD.prototype.ia=function(){return this.C};VD.prototype.o=function(){};var dE={bevel:1,dropshadow:2};B(lE,VD);
lE.prototype.o=function(a,b){var c=aD(a);if(c){var d=zC(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=bD(a))&&c.j?c.j:null)&&c.length?c[0]:null){var f=we(AC(b,tC(e,new se(e.G,e.H,e.C,e.A),b.j))),k=d.clone(),c=new se(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.j,k=jE(k,c.effects),l=WD(this,k.width,k.height),m=hE(c,k.width,k.height,this.j),
d=new se(d.left-k.left,d.top-k.top,d.width,d.height),p=new ne(f.x-k.left,f.y-k.top);this.B=17*vC(b.j,e.o,e.j?e.j:"xy");e=c.j;var f=a.j,u=this.j&&WC(a),v=u?f.C+1:f.C,u=(f=v?new xD(v,u?f.D:f.F):null)?f.getWidth()/2:0,v=mE(d,p),z=this.D(d,e,p,v),y=p.x,p=p.y,ga=d.width,va=d.height,I=d.left,d=d.top,W=new rD;sD(W,I+e+u,d+u);"t"==v&&(W.ob(z.start,d+u),W.ob(y,p),W.ob(z.end,d+u));W.ob(I+ga-e-u,d+u);tD(W,e,e,-90);"r"==v&&(W.ob(I+ga-u,z.start),W.ob(y,p),W.ob(I+ga-u,z.end));W.ob(I+ga-u,d+va-e-u);tD(W,e,e,0);
"b"==v&&(W.ob(z.end,d+va-u),W.ob(y,p),W.ob(z.start,d+va-u));W.ob(I+e+u,d+va-u);tD(W,e,e,90);"l"==v&&(W.ob(I+u,z.end),W.ob(y,p),W.ob(I+u,z.start));W.ob(I+u,d+e+u);tD(W,e,e,180);W.close();QD(l,W,f,m);if(m=this.ia())L(m,"annotation-shape"),L(m,"annotation-speech-shape"),Sf(m,k.left,k.top),dg(m,k.width,k.height),kE(l,m,c.effects)}}}};
lE.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=je(c-a/2,d+b,d+e-a-b);return new oD(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new oD(0,0)};B(nE,VD);nE.prototype.o=function(a,b){var c=aD(a);if(c){var d=zC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.j,e=jE(d,c.effects),f=WD(this,e.width,e.height);fE(f,new se(0,0,d.width,d.height),c.j,new xD(!c.A&&this.j?1:c.A,c.B),new wD("#000",0));d=this.ia();L(d,"annotation-shape");jg(d,iE(this.j,c.o));Sf(d,e.left,e.top);dg(d,e.width,e.height)}}};B(oE,VD);
oE.prototype.o=function(a,b){var c=zC(aD(a),b);if(!(0>=c.width||0>=c.height)){var d=pE(c,this.F);d.left+=c.left;d.top+=c.top;var e=a.j,f=jE(d,e.effects),k=WD(this,f.width,f.height),l=new wD("#000",0),d=pE(d,this.B),m;m=a.B?a.B.j?a.B.j:a.B.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.B.videoId)+"/hqdefault.jpg":"":"";d=GD(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 ND(d,k);k.A.ia().appendChild(p.ia());if(d=this.ia()){jg(d,iE(this.j,e.o));if(this.D&&0<e.A){m=new xD(e.A,e.B);var c=new se(0,0,c.width,c.height),u=m.getWidth()/2+1;var u=gE(c,e.j,u),v=FD(k,"mask");if(v)u=v;else{var v=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),z=window.document.createElementNS("http://www.w3.org/2000/svg","path");z.setAttribute("d",RD(u));z.setAttribute("fill","#FFF");v.appendChild(z);u=HD(k,"mask",v)}p=p.ia();u&&p.setAttribute("mask","url(#"+
u+")");fE(k,c,e.j,m,l)}L(d,"annotation-shape");L(d,"annotation-image-shape");Sf(d,f.left,f.top);dg(d,f.width,f.height);kE(k,d,e.effects)}}};B(qE,VD);qE.prototype.o=function(a,b){var c=aD(a);if(c){var d=zC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.j,e=jE(d,c.effects),f=WD(this,e.width,e.height),k=new se(0,0,d.width,d.height),d=hE(c,d.width,d.height,this.j),l=c.j,m=a.j,p=this.j&&WC(a),u=p?m.C+1:m.C;fE(f,k,l,u?new xD(u,p?m.D:m.F):null,d);if(k=this.ia())L(k,"annotation-shape"),L(k,"annotation-popup-shape"),Sf(k,e.left,e.top),dg(k,e.width,e.height),kE(f,k,c.effects)}}};B(rE,lE);rE.prototype.D=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 oD(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new oD(0,0)};h=tE.prototype;h.zr=function(){this.P||(this.B&&Jq(this.B),this.C&&Jq(this.C),this.A&&(this.A.j=!0,jg(this.o,EE(this)?1:0),this.A.o(this.j,yE(this))),this.H.isActive()&&this.H.stop(),this.P=!0,this.J=sz(this.F,AE(this.D),function(a){this.kl.stop();this.Ng(a)}))};h.Ng=function(){this.P&&(this.N?this.H.start():this.bo(),this.A&&(this.A.j=!1,jg(this.o,EE(this)?1:0),this.A.o(this.j,yE(this))),this.P=!1,this.J&&(this.F.ya(this.J),this.J=null))};h.bo=function(){this.B&&Kq(this.B);this.C&&Kq(this.C)};
h.ID=function(a){this.Y=a;this.kl.lf()};h.aw=function(){var a=this.Y,b=new ne(a.clientX,a.clientY),c=Zf(this.D.ua()),d=FE(c,this.L),c=(Iq(this.C)||Iq(this.B))&&FE(c,this.N);d&&d.contains(b)||c&&c.contains(b)?this.zr():this.Ng(a)};
h.show=function(){var a=this.j.j,a=(a&&0==a.o||"title"==this.j.style||"highlightText"==this.j.style?!1:!0)&&!this.A,b=!this.o,c="widget"==this.j.type;if(a){var d=yE(this),e=null;"highlight"==this.j.type||"label"==this.j.style?e=new nE:"popup"==this.j.style?e=new qE:"anchored"==this.j.style?e=new lE:"speech"==this.j.style?e=new rE:"image"==this.j.type&&("video"==this.j.style?e=new oE(rfa,O5,!0):"channel"==this.j.style&&(e=new oE));e&&(e.o(this.j,d),this.A=e,d=e.ia())&&(Kq(d),L(d,"annotation-type-"+
this.j.type.toLowerCase()),this.T(d))}if(b){d=["annotation","hid"];"highlightText"!=this.j.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.j.type.toLowerCase());this.o=N("div",d);this.j.D&&(this.G=N("div","inner-text"),"label"==this.j.style&&(L(this.G,"label-text"),this.G.style.backgroundColor=this.j.j.B),zf(this.G,this.j.D),this.o.appendChild(this.G));pi(this.o,"annotation_id",this.j.id);this.T(this.o);uE(this,this.o);if(WC(this.j)&&"image"!=this.j.type&&this.j.showLinkIcon()){if(e=
UC(this.j))d=this.o,e=new O(iA(e)),d.title=e.o+e.A;this.C=N("span",["annotation-link-icon","hid"]);this.o.appendChild(this.C)}wE(this);WC(this.j)||(this.o.style.cursor="default")}c&&("subscribe"==this.j.style?Ze("yt-uix-subscription-button",this.o)||(this.o.innerHTML=this.j.A):this.j.A&&(this.o.innerHTML=this.j.A));if(a||b){a:{a=this.j.o.j;if(a.length&&(a=HC(a[0]))){a=a.J;break a}a=0}this.o&&(this.o.style.zIndex=a);this.A&&this.A.ia()&&(this.A.ia().style.zIndex=a)}Jq(this.o);jg(this.o,EE(this)?1:
0);xE(this);this.A&&Jq(this.A.ia())};h.ea=function(){Kq(this.o);this.A&&Kq(this.A.ia());this.K&&(this.F.ya(this.K),this.K=null)};B(GE,jq);GE.C="AnnotationsModule";var HE={Os:"video-annotations",ft:"video-custom-annotations",Qt:"video-legacy-annotations"};GE.B=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};GE.A=function(a){return"card"==a.type};GE.o=function(a){return GE.Xa(a)?new GE(a):null};GE.Xa=function(a){var b=a.V();return"leanback"==b.Ba?!1:!b.J.isEmpty()||GE.Ig(b.j)?!0:$w(a.getVideoData(),"iv3_module")};GE.j=function(){return N("div",["annotation","annotation-type-custom","hid"])};
GE.Ig=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};h=GE.prototype;h.Ig=function(){return GE.Ig(this.j.V().j)};h.fe=function(a,b){if(!this.Ig())return null;switch(a){case "loadCustomAnnotationsXml":var c=mz(b);c&&PE(this,c);return!0;case "removeCustomAnnotationById":return b&&this.o&&(TB(this.o,b),WB(this.j)),!0}return null};h.Re=function(){return this.Ig()?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};h.Xa=function(){return GE.Xa(this.j)};
h.create=function(){GE.M.create.call(this);this.B=new R(["div",["ytp-player-content","ytp-iv-player-content"]]);this.B.j(this.j.ua());var a=this.j.V(),b=this.j.getVideoData();1!=(a.gd||b.wa)&&ca(a.J.get(b.videoId))||this.load()};h.destroy=function(){Yd(this.j.ua(),"ytp-iv-drawer-open");this.B.detach();this.B.dispose();GE.M.destroy.call(this)};h.Zz=function(a){U(a.state,2)&&($E(this)&&aF(this)&&bF(this,!1),cF(this,!1))};
h.load=function(){GE.M.load.call(this);this.J++;var a=this.j.getVideoData(),b=a.videoId,c=A(this.Zy,this,b,this.J);yu()&&(c=QE(this,c));c={format:"XML",Wb:c,Cd:{}};a.isPharma&&(c.Cd.pharma="1");var d=this.j.V();d.experiments.na("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.j&&(c.Cd.gaming="1");(b=d.J.remove(b))&&RE(this,c,b);a.$e&&(b=b&&(b.ue||b.Uh),a.mn&&!b||yj(a.$e,c))};
h.unload=function(){this.C.ab({"iv-event":1});kq(this);Ob(this.A,function(a){a.destroy()});Ob(this.K,function(a){a.destroy()});this.D=null;this.o&&(this.o.destroy(),this.o=null,WB(this.j));this.A={};this.K={};GE.M.unload.call(this)};
h.Zy=function(a,b,c){if(!JE(this,b,a)&&(a=sj(c)&&c.responseXML?c.responseXML:null)){PE(this,a);L(this.j.ua(),this.ra+"-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.o)if(c=b.o,c.j.length)if(c=c.j[0].o||c.j[0].j||c.j[0].A,!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.D,f.visible=
!0);b=new fq(c,e,f);a.push(b)}}this.cb(a)}};h.QA=function(a){this.H&&a==this.j.getVideoData().videoId&&(this.loaded?OE(this):this.load())};h.jy=function(a){$E(this)&&bF(this,a)};h.oc=function(a){GE.M.oc.call(this,a);a=a.getId();var b=this.A[a];b&&!b.B&&(b=b.annotation,VE(this,a),$A(this.C,b.Ra))};h.Gc=function(a){GE.M.Gc.call(this,a);WE(this,a.getId())};h.ao=function(a){a&&(a.ea(),ZE(this,"shown",!1,a.annotation.id),this.Vh(a.annotation,"hidden"))};
h.zq=function(a){a&&(a.show(),ZE(this,"shown",!0,a.annotation.id),this.Vh(a.annotation,"shown"))};h.MA=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;ZC(d.annotation,function(a){e|=a.value});UE(this,a,b,e)}};h.Ux=function(a){if(a&&a.id){var b=UC(a);if(b){var c=iA(b);if(c){var d=A(this.Vh,this,a,"click"),e=this.j.getVideoData();if("new"==pA(c,b.target)||XE(this,b,e.videoId))d(),d=null;dB(this.C,a.Ra,d)}}}};
h.Vh=function(a,b){YC(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e;if(!(e=!XE(this,c.url,d.videoId))){e=mA(c.url);var f=lA(c.url);if(e){if(d.videoId==e)this.O("command_seek",f||0);else{var k=NE(this).o;M9(k.app,e,void 0,void 0);f&&zH(NE(this).o)&&NE(this).o.Qb(f)}e=!0}else e=!1;e=!e}e&&(d=nA(c.url,a.id,d.videoId,this.j.V()))&&(this.pauseVideo(),e=pA(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=nj(c),f=null,"ei"in e&&(f={ei:e.ei},c=Xg(c,"ei")),py(c,f),qy(c,
d))}},this)};h.gz=function(){ZE(this,"playerControlShow",!1)};h.sA=function(){ZE(this,"playerControlShow",!0)};h.CD=function(a){ZE(this,"rollOver",!0,a.id)};h.Ng=function(a){ZE(this,"rollOver",!1,a.id)};h.yy=function(a){if(a||a.id)this.A[a.id].B=!0,WE(this,a.id),a&&(eB(this.C,a.Ra),this.Vh(a,"close")),ZE(this,"closed",!0,a.id)};h.S=function(){for(var a=this.L,b=0,c=a.length;b<c;b++)Au(a[b]);this.L.length=0;GE.M.S.call(this)};dF.prototype.destroy=function(){null!=this.o&&(this.o.canvas.remove?this.o.canvas.remove():this.o.canvas.removeNode(!0),this.o=null)};h=iF.prototype;h.uk=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.qk=function(){return this.j};h.Vc=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};h.Ar=function(){};h.Am=function(a){this.G&&(360>=lr[a]?this.D(!0):this.D(!1))};
h.Pc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,fF(this.C,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};h.Up=function(){return!0};h.Yp=function(){return!1};h.Se=function(){return{shader:"NoOp"}};h.oh=function(){};h.destroy=function(){this.C&&this.C.destroy()};B(jF,iF);jF.prototype.Vc=function(a,b,c){jF.M.Vc.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.B=a.getUniformLocation(b,"mode");a.uniform1i(this.B,this.o)};
jF.prototype.Pc=function(a,b,c){this.A&&(a.uniform1i(this.B,this.o),this.A=!1);jF.M.Pc.call(this,a,b,c)};jF.prototype.Se=function(){return{shader:"Anaglyph3D",displayMode:this.o}};jF.prototype.oh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.o=(0,window.parseInt)(a.displayMode,10),this.A=!0),this.F())};B(lF,iF);
lF.prototype.Vc=function(a,b,c){lF.M.Vc.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.A=a.getUniformLocation(b,"seed");(a=this.aa.getVideoData())&&a.o&&this.Am(a.o.video.quality)};lF.prototype.Pc=function(a,b,c){if(this.H){var d=K();1E3<d-this.B&&(this.B=d,a.uniform1f(this.A,Math.random()))}else a.uniform1f(this.A,Math.random());lF.M.Pc.call(this,a,b,c)};lF.prototype.Se=function(){return{shader:"WhiteNoise"}};B(mF,lF);mF.prototype.Vc=function(a,b,c){mF.M.Vc.call(this,a,b,c);this.o=a.getUniformLocation(b,"mode");a.uniform1i(this.o,1)};mF.prototype.Pc=function(a,b,c){this.F&&(a.uniform1i(this.o,1),this.F=!1);mF.M.Pc.call(this,a,b,c)};mF.prototype.Se=function(){return{shader:"EdgeEnhance"}};B(nF,Oj);h=nF.prototype;h.cancel=function(){this.D&&this.O("dragend",0,0,null);this.A&&this.O("hoverend",0,0,null);uv(this.j);oF(this)};h.Nq=function(a){uv(this.j);T(this.j,this.o,pF("move"),this.Lq);T(this.j,this.o,pF("out"),this.Mq);T(this.j,this.o,"touchstart",this.km);this.C&&T(this.j,this.o,pF("down"),this.jm);var b=Sl(a);a=Vl(a);this.A=!0;this.O("hoverstart",a.x,a.y,b);this.O("hovermove",a.x,a.y,b)};
h.Lq=function(a){var b=Sl(a);a=Vl(a);if(this.B){var c=Ul(this.B),d=Vl(this.B);d.x==a.x&&d.y==a.y&&c==b||this.O("hovermove",a.x,a.y,b)}else this.O("hovermove",a.x,a.y,b);this.B=null};h.Mq=function(a){var b=Vl(a),c=Ul(a);c&&xf(this.F,c)?(this.B=a,this.O("hovermove",b.x,b.y,c)):(uv(this.j),oF(this),this.A=!1,this.O("hoverend",b.x,b.y,c))};h.zx=function(a){this.Nq(a);this.jm(a)};
h.jm=function(a){if(!fa(a.button)||0==a.button){uv(this.j);T(this.j,window.document,pF("move"),this.yx);T(this.j,window.document,pF("up"),this.oC);var b=Sl(a);if(wc)T(this.j,this.o,"dragstart",this.rv);else if(Wl(a),(eF||tc)&&b)a:{for(var c=b;c;){if(Bf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.D=!0;a=Vl(a);this.O("dragstart",a.x,a.y,b);this.O("dragmove",a.x,a.y,b)}};h.rv=function(a){Wl(a)};
h.yx=function(a){var b=Sl(a);b==window.document&&(b=null);a=Vl(a);this.O("hovermove",a.x,a.y,b);this.O("dragmove",a.x,a.y,b)};h.oC=function(a){uv(this.j);this.D=!1;var b=Tl(a),c=Sl(a);a=Vl(a);b&&xf(this.F,b)?(T(this.j,this.o,pF("move"),this.Lq),T(this.j,this.o,pF("out"),this.Mq),T(this.j,this.o,pF("down"),this.jm),T(this.j,this.o,"touchstart",this.km),this.O("dragend",a.x,a.y,c)):(oF(this),this.A=!1,this.O("dragend",a.x,a.y,c),this.O("hoverend",a.x,a.y,c))};
h.km=function(a){var b=a.changedTouches[0];b&&(uv(this.j),T(this.j,this.o,"touchmove",this.pC),T(this.j,this.o,"touchend",this.Oq),T(this.j,this.o,"touchcancel",this.Oq),this.G=b.identifier,a=Sl(a),this.A||(this.A=!0,this.O("hoverstart",b.pageX,b.pageY,a)),this.O("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.O("dragstart",b.pageX,b.pageY,a),this.O("dragmove",b.pageX,b.pageY,a)))};
h.pC=function(a){var b=qF(this,a);b&&(Wl(a),a=Sl(a),this.O("hovermove",b.pageX,b.pageY,a),this.C&&this.O("dragmove",b.pageX,b.pageY,a))};h.Oq=function(a){var b=qF(this,a);if(b){uv(this.j);oF(this);this.A=!1;var c=Sl(a);this.C&&(this.H||Wl(a),this.D=!1,this.O("dragend",b.pageX,b.pageY,c));this.O("hoverend",b.pageX,b.pageY,c)}};h.S=function(){this.C&&(wc&&this.F.removeAttribute("draggable"),this.F.style.removeProperty("touch-action"));uv(this.j);nF.M.S.call(this)};rF.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};rF.prototype.get=function(){return this.j};h=tF.prototype;h.uk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};h.qk=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, ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
h.Vc=function(a,b){this.ca=a.getUniformLocation(b,"uVMat");this.Y=a.getUniformLocation(b,"uFOVx");this.$=a.getUniformLocation(b,"uFOVy");this.Ca=a.getUniformLocation(b,"uSplr");a.uniform1i(this.Ca,0)};h.Ar=function(){this.D=!0};h.Am=w;
h.Pc=function(a,b){var c=this.j,d=this.o;if(this.D){a.o>a.j?(this.j=this.A,this.o=Math.atan(Math.tan(this.A)*a.j/a.o)):(this.o=this.A,this.j=Math.atan(Math.tan(this.A)*a.o/a.j));a.uniform1f(this.Y,this.j);a.uniform1f(this.$,this.o);this.B=je(this.B,-Math.PI/2,Math.PI/2);this.C.identity();var e=this.C,f=this.B,k=Math.sin(f),f=Math.cos(f);e.A.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);sF(e,e.A);e=this.C;f=this.H;k=Math.sin(f);f=Math.cos(f);e.A.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);sF(e,e.A);a.uniformMatrix4fv(this.ca,
!1,this.C.get());this.D=!1;this.J.V().experiments.C&&(e=this.J,k=rH(e),e.app.Oa("webglsettingschanged",k))}e=K();(this.T!=this.j||this.W!=this.o)&&3E4<e-this.U&&c==this.j&&d==this.o&&(this.T=this.j,this.W=this.o,this.U=e,(c=lq(this.J.app))&&c.A&&(c=c.A.A,d=Math.round(360*this.j/Math.PI),e=Math.round(360*this.o/Math.PI),EA(c,NA(c.j),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,fF(this.K,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};h.Up=function(){return!1};h.Yp=function(){return!1};
h.Se=function(){return{shader:"Spherical",yaw:this.H,pitch:this.B,fov:this.A}};h.oh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.H=a.yaw),a.pitch&&(this.B=a.pitch),a.fov&&(this.A=je(a.fov,.32,1.05)),this.D=!0,this.N()};h.destroy=function(){this.K&&this.K.destroy();this.G&&(this.G.dispose(),this.G=null)};B(uF,tF);h=uF.prototype;h.uk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};h.qk=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, 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.Vc=function(a,b,c){uF.M.Vc.call(this,a,b,c);this.P=a.getUniformLocation(b,"mode");a.uniform1i(this.P,this.F)};h.Pc=function(a,b,c,d){this.L&&(a.uniform1i(this.P,this.F),this.L=!1);uF.M.Pc.call(this,a,b,c,d)};h.Se=function(){var a=uF.M.Se.call(this);a.shader="Spherical3D";a.displayMode=this.F;return a};h.oh=function(a){void 0!=a.displayMode&&(this.F=(0,window.parseInt)(a.displayMode,10),this.L=!0,this.N());uF.M.oh.call(this,a)};var kG=window,aG=window.document,CF=kG.location,AF=/\[native code\]/,hG=wF(kG,"gapi",{});var DF;DF=wF(kG,"___jsl",zF());wF(DF,"I",0);wF(DF,"hel",10);var JF=wF(DF,"perf",zF());wF(JF,"g",zF());var IF=wF(JF,"i",zF());wF(JF,"r",[]);zF();zF();var MF=zF(),eG=[];eG.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?DF[b]=wF(DF,b,[]).concat(c):wF(DF,b,c)}if(b=a.u)a=wF(DF,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var UF=/^(\/[a-zA-Z0-9_\-]+)+$/,XF=/^[a-zA-Z0-9\-_\.,!]+$/,SF=/^gapi\.loaded_[0-9]+$/,WF=/^[a-zA-Z0-9,._-]+$/,PF=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,OF=/\/cb=/g,NF=/\/\//g;MF.m=function(a,b,c,d){(a=a[0])||KF("missing_hint");return"https://apis.google.com"+QF(a,b,c,d)};var cG=(0,window.decodeURI)("%73cript");hG.load=function(a,b){return gG(function(){return iG(a,b)})};B(lG,Oj);lG.prototype.remove=function(a){var b=this.get(a);delete this.j[a];return b};lG.prototype.get=function(a){return this.j[a]||null};lG.prototype.isEmpty=function(){return ac(this.j)};var zG={RED:"red",WHITE:"white",BLUE:"blue"};var EG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},FG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},tG="blogger books docs google-live play picasaweb".split(" ");B(pG,G);var GG={$F:"cbrand",aG:"cbr",bG:"cbrver",SG:"c",VG:"cver",UG:"ctheme",TG:"cplayer",gH:"cmodel",nH:"cnetwork",uH:"cos",vH:"cosver",wH:"cplatform"};h=pG.prototype;h.Ba="detailpage";h.Jg=!1;h.Zk=!1;h.Yk=!1;h.pg=!1;h.sc=null;
h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);"gaming"==this.j?(c=this.protocol+"://gaming.youtube.com/watch",b.v=a):d&&"www.youtube.com"==IG(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+IG(this)+"/watch",b.v=a,(a=t("yt.www.ads.data.encryptedBiscottiId"))&&(b.ebc=a));return Tg(c,b)};h.S=function(){this.sc=null;pG.M.S.call(this)};NG.prototype.P=function(){this.K=!1;if(this.A&&(this.B.videoWidth||this.B.videoHeight)){if(0==this.J){var a=zE(AE(this.aa));if(!ue(this.D,a)){this.D=a;var b,c,d,a=AE(this.aa).Ka();this.j.Up()?("Anaglyph3D"!=this.W?b=!1:(b=gF(AE(this.aa)),c=this.aa.getVideoData(),b=(0,window.isNaN)(b)||c.Qc("yt:stretch")||c.Qc("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.D.width,c=this.D.height,
d=this.D.top,a=this.D.left)):(b=a.width,c=a.height,a=d=0);a=new se(a|0,d|0,b|0,c|0);this.F.style.left=a.left+"px";this.F.style.top=a.top+"px";this.o.width=a.width;this.o.height=a.height;this.A.o=a.width;this.A.j=a.height;this.A.viewport(0,0,a.width,a.height);this.j.Ar()}}this.j.Pc(this.A,this.B,this.N,this.Y)}(this.C||this.j&&this.j.Yp())&&this.G()};
NG.prototype.$=function(a){this.H!=a&&this.o&&((this.H=a)?(this.F.appendChild(this.o),this.G(),eF||(this.B.style.display="none")):(pf(this.o),this.B.style.display=""))};NG.prototype.G=function(){!this.K&&this.H&&((0,window.requestAnimationFrame)(this.P.bind(this)),this.K=!0)};B(RG,jq);RG.o=function(a){return RG.Xa(a)?new RG(a):null};RG.prototype.Xa=function(){return RG.Xa(this.j)};
RG.j=function(a){var b=a.V().o.c.toLowerCase(),c;c=a.getVideoData();a=a.V().experiments;if(kF(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Dl&&!vG||eF&&!ot()&&yc(11)||D6&&!vG&&yc(38)||Kf&&!vG&&yc(27))a:{if(c.j)for(var e in c.j.j)if((d=c.j.j[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}if(d)b="Spherical";else{a:{if(!vG&&(Dl&&a.ca||a.na("enable_spherical3d_firefox_opera")&&(D6&&yc(38)||Kf&&yc(27))||a.na("enable_spherical3d_ie")&&eF&&!ot()&&yc(11))&&c.j)for(var f in c.j.j)if((e=c.j.j[f].info.video)&&
3==e.projectionType){c=!0;break a}c=!1}b=c?"Spherical3D":a.N&&Dl&&"web"==b&&!gt()?"NoOp":(a.La||a.na("white_noise_with_interval"))&&Dl&&"web"==b&&!gt()?"WhiteNoise":a.F&&Dl&&"web"==b&&!gt()?"EdgeEnhance":null}}return b};RG.Xa=function(a){return a.V().K?null!=RG.j(a):!1};h=RG.prototype;h.DD=function(){if(this.A){var a=this.o;a.C||(0,window.requestAnimationFrame)(a.P.bind(a))}};h.Sz=function(a){if(this.A){var b=this.o;b.j&&b.j.Am(a)}};
h.Wc=function(a){if(this.A){var b=this.o,c=b.C;b.C=U(a.state,8);b.C&&!c&&b.G()}};h.S=function(){RG.M.S.call(this)};
h.create=function(){var a=RG.j(this.aa);this.o=new NG(this.aa,a,this.B.element,this);a:{a=this.o;a.j=null;var b=a.$.bind(a),c=A(a.G,a);switch(a.W){case "Anaglyph3D":a.j=new jF(a.aa,c);break;case "Spherical":a.j=new tF(a.aa,c);break;case "WhiteNoise":a.j=new lF(a.aa,b);break;case "EdgeEnhance":a.j=new mF(a.aa,b);break;case "NoOp":a.j=new iF(a.aa,!0,b);break;case "Spherical3D":a.j=new uF(a.aa,c)}if(a.j){a.J=OG(a);if(0==a.J){a.H&&!eF&&(a.B.style.display="none");a=!0;break a}a.aa.app.j.lj(new gv("html5.missingapi.webgl",
!1));QG(a)}a=!1}this.A=a;RG.M.create.call(this)};h.destroy=function(){QG(this.o);this.A=!1;RG.M.destroy.call(this);this.o=null};B(TG,Cq);TG.prototype.B=function(){this.ea();this.O("close-clicked")};TG.prototype.ea=function(){this.o.stop();L(this.element,"ytp-drawer-closed")};TG.prototype.Cb=function(a){a?(TG.M.Cb.call(this,a),zq(this.element,"block")):zq(this.element,"none")};TG.prototype.show=function(){this.o.start()};B(UG,Oj);UG.prototype.S=function(){UG.M.S.call(this);this.F&&Rl(this.F);this.A||(pf(this.B),pf(this.D))};UG.prototype.j=function(a){this.A||(this.o.j(a),this.o.Cb(this.C.element),a.appendChild(this.B))};UG.prototype.G=function(){this.O("ypcModuleCloseClicked")};UG.prototype.H=function(){this.O("ypcContentRequest")};B(XG,jq);h=XG.prototype;h.Xa=function(){return $w(this.j.getVideoData(),"ypc_module")};h.create=function(){XG.M.create.call(this);this.A=new SG(this.j.getVideoData());xi(A(this.GD,this),0);this.B=new R(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.B.j(this.j.ua())};h.destroy=function(){XG.M.destroy.call(this);this.A=null;this.B&&(this.B.detach(),this.B.dispose(),this.B=null)};h.GD=function(){this.H&&!this.loaded&&this.load()};
h.load=function(){XG.M.load.call(this);var a=this.j.V(),b=this.j.getVideoData();if(this.A.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.A.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=rw.A,d=0;d<c.length;d++){var e=c[d];b.B.hasOwnProperty(e)&&(a[e]=b.B[e])}this.j.nr(a)}else ZG(this,a,b),!this.A.videoId&&this.o?VG(this.o):b.ypcPreview?(this.O("publish_external_event","ypcStateChanged",!0),nq(this)):this.o||nq(this)};
h.unload=function(){kq(this);(0,window.isNaN)(this.C)||Ai(this.C);Nb(this.o);this.o=null;XG.M.unload.call(this);this.O("publish_external_event","ypcStateChanged",!1)};h.oc=function(a){XG.M.oc.call(this,a);VG(this.o)};h.Gc=function(a){XG.M.Gc.call(this,a);a=this.o;a.A||(zq(a.B,"none"),a.o.Cb(a.C.element))};h.Ly=function(){if(this.A.j)"embedded"==this.j.V().Ba?qy(this.A.j):oy(this.A.j);else if(this.A.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.j.Ia()&&vy(this.j),a(this.A.offerId))}};
h.Bz=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};var x$={"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(cH,G);h=cH.prototype;h.QC=function(){return Wb(this.A)};h.RC=function(){return Wb(this.B)};h.ia=function(){return this.j};h.addEventListener=function(a,b){if(x(b)){var c=function(){t(b).apply(window,arguments)};this.D[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};h.Bv=function(a,b){var c=x(b)?a+b:a+ka(b);if(!this.C[c]){var d;x(b)?d=function(){t(b).apply(window,arguments)}:d=b;var e=A(function(a){d({target:this.o,data:a})},this);this.C[c]=e;this.addEventListener(a,e)}};
h.removeEventListener=function(a,b){if(x(b)){var c=this.D[b];cc(this.D,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};h.Cv=function(a,b){var c=x(b)?a+b:a+ka(b),d=this.C[c];d&&(this.removeEventListener(a,d),cc(this.C,c))};h.getPlayerState=function(){return z9(this.app)};h.Qb=function(a,b){K9(this.app,!0,this.playerType);Z9(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){var a=this.app.V().experiments.na("use_legacy_time_duration_api");return this.app.getCurrentTime(a?void 0:this.playerType)};h.ih=function(){var a=this.app.V().experiments.na("use_legacy_time_duration_api");return w9(this.app,a?void 0:this.playerType)};h.Bb=function(){return this.app.T.volume};h.setVolume=function(a){a=je(Math.floor(a),0,100);B9(this.app,{volume:a,muted:this.tc()})};h.tc=function(){return this.app.T.muted};h.mute=function(){B9(this.app,{muted:!0,volume:this.Bb()})};
h.unMute=function(){B9(this.app,{muted:!1,volume:Math.max(5,this.Bb())})};h.Xc=function(){K9(this.app,!0,this.playerType);Y9(this.app,this.playerType)};h.pauseVideo=function(){var a=this.app,b=this.playerType;if(BH(a.Wa)){var c=a.ca.play_pause?a.qa:null;c?c.Td("control_pause"):a.pauseVideo(b)}};h.kr=function(){var a=this.app,b=this.playerType;BG(a.X)&&(oH(a,!1),a.Oa("pageTransition"));X9(a,b)};h.NC=function(){};h.SC=function(){return this.app.U};h.sj=function(a){s9(this.app,a)};
h.mj=function(){return this.app.X.T?t9:[1]};h.nj=function(){var a=lq(this.app,this.playerType);return a&&(a=a.getVideoData().o)?a.video.quality:"unknown"};h.rj=function(a){var b=this.app,c=lq(b,this.playerType);c&&!b.X.isMobile&&(a=Pt(a,a,!0),h2(c,"p",a))};h.Zq=function(){var a=lq(this.app,this.playerType);return a?(a=P(e2(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};h.VC=function(){return this.um()};h.WC=function(){return 1};h.um=function(){return Yx(this.app.ha)};
h.XC=function(){return 0};h.setSize=function(){this.app.D.mg()};h.gr=function(a){var b=this.app;a=a?2:1;b.getVideoData().Fd=a;b.Oa("autonavchange",a)};h.ir=function(a){var b=this.app;b.getVideoData().Fd=a;b.Oa("autonavchange",a)};h.cD=function(a){var b=this.app;b.X.Zk=a;b.Oa("minimized")};h.oj=function(a){var b=this.app.B;b.isAvailable(a)&&(a=jH(b,a))&&!a.loaded&&a.load()};h.lr=function(a){var b=this.app.B;b.isAvailable(a)&&(a=jH(b,a))&&a.loaded&&a.unload()};
h.wm=function(a,b,c){a=G9(this.app,aH(a,b,c),this.playerType);K9(this.app,a,this.playerType)};h.sm=function(a,b,c){var d=this.playerType;L9(this.app,new rw(aH(a,b,c)),d)};h.$C=function(a,b,c){a=$G(a,b,c);b=G9(this.app,a,this.playerType);K9(this.app,b,this.playerType);b=this.app;(a=kh(new O(a.mediaContentUrl)))&&DG(b.X,a)};h.PC=function(a,b,c){a=$G(a,b,c);b=this.playerType;L9(this.app,new rw(a),b);b=this.app;(a=kh(new O(a.mediaContentUrl)))&&DG(b.X,a)};
h.getVideoUrl=function(){var a=this.app.V();if(a.B)return"";var b=d5(this.app),c=void 0;b.Ea||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.ce()||void 0,c)};h.tm=function(){return x9(this.app)};h.ar=function(){var a=this.app,b=d5(a),c=a.D.Ka(),a=a.X,d="https://"+IG(a)+"/embed/"+b.videoId;b.playlistId&&(d=Tg(d,{list:b.playlistId}));"gaming"==a.j&&(d=Tg(d,{ps:a.j}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+ya(d)+'" frameborder="0" allowfullscreen></iframe>'};
h.Yq=function(a,b,c){return S9(this.app,a,b,c)};h.fr=function(a){a:{for(var b=this.app,c=b.j.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.j.D.gh(e);mq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};h.dr=function(a,b,c,d){var e=this.app;e.Y=!1;N9(e,a,b,c,d);K9(this.app,!0,this.playerType)};h.OC=function(a,b,c,d){var e=this.app;e.Y=!0;N9(e,a,b,c,d)};h.pj=function(){P9(this.app);K9(this.app,!0,this.playerType)};h.qj=function(){Q9(this.app);K9(this.app,!0,this.playerType)};
h.xm=function(a){R9(this.app,a);K9(this.app,!0,this.playerType)};h.setShuffle=function(a){var b=this.app.o;b&&b.setShuffle(a)};h.bD=function(a){var b=this.app.o;b&&(b.G=a)};h.gc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.A;c++){var d=a.nb(c);d&&b.push(d.videoId)}return b};h.TC=function(){var a=this.app.o;return a?a.j:-1};h.ce=function(){var a=this.app.o;return a&&a.C?a.C.toString():null};h.de=function(a,b,c){return nH(this.app,a,b,c)};
h.ub=function(a,b,c){return nH(this.app,a,b,c)};h.jh=function(a){return a$(this.app,a)};h.getVideoData=function(){var a=lq(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.jr=function(){var a=this.app.D;a.C||(a.C=new G5(a.app),H(a,a.C),a.C.j(a.element));a.C.show()};h.YC=function(){var a=this.app.D;a.C&&a.C.ea()};h.getAdState=function(){return this.app.getAdState()};
h.ZC=function(a){if(a!=this.app.W.args.video_id)return!1;a=(a=lq(this.app,1))?a.getPlayerState():null;return!(!a||!U(a,128)||5!=x$[a.j.errorCode])};h.UC=function(){var a=this.app.W.clone(),b=a.args,c=d5(this.app),d=ec(c.B);!c.Ea&&0<c.startSeconds&&(d.start=c.startSeconds);qa(b,d);return a};h.dD=function(a,b){var c=this.app;c.G&&C5(c.G,a,b);MG(c.X)&&6!=c.J&&(c.X.pg=!kb(a),c.X.pg?(1!=c.J&&3!=c.J||!b||o9(c,c.F),a.length&&1!=c.J&&m9(c)):o9(c,c.G))};h.destroy=function(){this.app.dispose()};
h.aD=function(){var a=lq(this.app);a&&!U(a.getPlayerState(),128)&&(a.O("internalAbandon"),L1(a),K1(a))};h.S=function(){if(this.j){for(var a in this.A)this.j[a]=null;for(a in this.B)this.j[a]=null;this.j=null}this.D=this.C=null;cH.M.S.call(this)};B(eH,cH);h=eH.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};h.Yq=function(a,b,c,d,e){return S9(this.app,a,b,c,d,e)};h.eD=function(a,b,c,d){mG(this.app.V().J,a,{ue:b,Rf:c,Uh:d})};h.fD=function(a){var b=this.playerType;L9(this.app,new rw(a),b)};h.getPlayerState=function(a){return z9(this.app,a)};h.nr=function(a){G9(this.app,a,this.playerType)};
h.pD=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.K&&b.K.getVideoData().videoId==a.videoId||(a=new rw(a),I9(b,a))};h.Xc=function(){Y9(this.app,this.playerType)};h.Qb=function(a,b){Z9(this.app,a,b,void 0,this.playerType)};h.dr=function(a,b,c,d){var e=this.app;e.Y=!1;N9(e,a,b,c,d)};h.pj=function(a){P9(this.app,a)};h.qj=function(a){Q9(this.app,a)};h.xm=function(a){R9(this.app,a)};h.Yc=function(a,b,c){var d=this.app,e=this.playerType;Z9(d,d.getCurrentTime()+a,b,c,e)};
h.vD=function(a){if(a){var b=this.ce();if(!b||b==a.list){var c=a.video;(b=this.app.o)?this.app.Wa.Ia()&&((c=c[b.j])&&c.encrypted_id!=b.nb().videoId||(a.index=b.j)):c9(this.app,{list:a.list,index:a.index,playlist_length:c.length});px(this.app.o,a)}}else a=this.app,d9(a),a.Oa("onPlaylistUpdate")};h.uD=function(){oG()};h.wD=function(a){var b=lq(this.app,this.playerType||1);b&&(b=b.getVideoData(),uw(b,a),b.O("dataupdated"))};h.kD=function(){var a=this.app.getVideoData();return a.B.storyboard_spec||a.B.live_storyboard_spec};
h.iD=function(){var a=this.app.V();return{zb:a.zb,ib:a.ib}};h.getVideoData=function(){var a=eH.M.getVideoData.call(this),b=lq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Ea;a.backgroundable=b.backgroundable;return a};h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):eH.M.getCurrentTime.call(this)};h.ih=function(a){return a?w9(this.app,a):eH.M.ih.call(this)};
h.Qe=function(){var a=this.app.getVideoData(),b=lq(this.app),c=zH(this.app.Wa),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.ih(),k=lq(this.app,void 0);if(k)var l=D1(k.o),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:j2(b,!0),seekableStart:Uw(b.j)}};h.um=function(a){var b=this.app;return(b.C&&2==b.C.N)==(2==a)?Yx(b.ha):0};h.canPlayType=function(a){return this.app.canPlayType(a)};
h.qD=function(a,b){v9(this.app,a,this.playerType,b)};h.hD=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.j&&b.Ea){var c=b.j.j[b.o.id];c&&c.index?(b=c.index.jf(a),c=c.index.ee(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};h.$f=function(a){var b=this.app,c=lq(b,this.playerType);c&&b.X.qa.contains(a.toString())&&c.A&&(b=OA(c.A,"engage"),b.D=a,b.send(void 0))};h.kh=function(a){this.app.Vf("cards_drawer_set_visible",a)};
h.nD=function(a,b){var c=this.app;c.da&&(c=c.da,c.W&&K6(c.W,a,b))};h.Zf=function(){return u9(this.app,this.playerType)};h.ym=function(a){var b=this.app,c=this.playerType,d=b.ca.set_audio_track?b.qa:null;if(d)d.Td("control_set_audio_track",a);else{if(c=b=lq(b,c))if(c=!b.isDisposed()&&!U(b.B,128)&&b.j.A.j)c=b.C,c.isDisposed()?a=!0:(d=c.D,a=a.id,d.C="m",d.B=d.D.j[a],d.K=P_(d),c.O("audioformatchange",new L_(d.K,d.A,d.C)),c.j&&!c.j.j.remove?a=!1:(Q0(c,c.o,P_(c.D)),n0(c.o),S0(c),a=!0)),c=!a;c&&(hH(b),b2(b))}};
h.mr=function(){var a=lq(this.app,this.playerType);return a.j.A?a.j.A.audioTracks:[]};h.jD=function(){var a=lq(this.app,this.playerType);return a&&a.getVideoData().o?Tt(t1(a.ka,a.j)):"unknown"};h.rD=function(a,b){$9(this.app,a,b)};h.gD=function(){var a=jH(this.app.B,"fresca");a&&a.B.B()};h.tD=function(){var a=this.app.da;a.wa=!1;a.ae()};h.oD=function(){var a=this.app.da;a.wa=!0;a.ae()};h.mD=function(){return bH(this.app.V())};h.sD=function(){return this.app.V().experiments.na("send_presence_signal_vis_desktop")};
h.lD=function(a){return zE(this.app.D,a)};B(fH,eH);h=fH.prototype;h.wm=function(a,b,c){G9(this.app,aH(a,b,c),this.playerType)};h.ua=function(){return AE(this).element};h.V=function(){return this.app.V()};h.gc=function(){return this.app.o};h.getVideoData=function(a){return(a=lq(this.app,a||this.playerType))&&a.getVideoData()};h.Ia=function(){return this.app.V().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.rj=function(a){v9(this.app,a,this.playerType)};
h.tm=function(a){return x9(this.app,a)};h.getVideoUrl=function(a,b,c){var d=this.getVideoData(),e=void 0;a||d.Ea||(e=Math.floor(this.getCurrentTime()));return this.app.V().getVideoUrl(d.videoId,2==this.getPresentingPlayerType()?void 0:this.ce()||void 0,e,b,c)};h.kh=function(a){var b=jH(this.app.B,"iv-module");b&&bF(b,a)};h.$f=function(a,b){var c=this.app,d=lq(c,this.playerType);d&&c.X.qa.contains(a.toString())&&d.A&&(c=OA(d.A,"engage"),c.D=a,c.send(b))};h.cb=function(a,b){T9(this.app,a,b||this.playerType)};
h.Ri=function(a){var b=lq(this.app,this.playerType);b&&b.Ri(a)};h.ub=function(a,b,c){return nH(this.app,a,b,c,!0)};h.jh=function(a){return a$(this.app,a,!0)};h.de=function(a,b,c){return nH(this.app,a,b,c,!0)};h.setVolume=function(a){a=je(Math.floor(a),0,100);B9(this.app,{volume:a,muted:this.tc()},!0)};h.mute=function(){B9(this.app,{muted:!0,volume:this.Bb()},!0)};h.unMute=function(){B9(this.app,{muted:!1,volume:Math.max(5,this.Bb())},!0)};var fI=/^#(?:[0-9a-f]{3}){1,2}$/i,l8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),m8=["none","raised","depressed","uniform","dropShadow"],ufa=["sub","inherit","super"],fJ={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},vfa=["left","right","center"],GH={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},HH={id:0,priority:0,colCount:100},dJ={id:98},OI={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},v8=["en_CA","en_US","es_MX","fr_CA"];var y$=[{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"}],z$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],M6=[{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:y$},{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:y$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:z$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:y$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:z$},{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=FH.prototype;h.getType=function(){return this.type};
h.Bd=function(a,b){a&&qa(this.Ga,a);var c=this.Ga.charEdgeStyle,d=this.Ga.textOpacity,e="";if(0!=c){var f="rgba(34, 34, 34, "+d+")",k="rgba(204, 204, 204, "+d+")";this.Ga.charEdgeColor&&(k=f=this.Ga.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.Ga.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=dC(this.Ga.color),k=dC(this.Ga.background),l="rgba("+l[0]+","+l[1]+","+l[2]+","+d+")",d=this.Ga.offset||1;Lf(this.o,{color:l,fill:l,"background-color":"rgba("+k[0]+","+k[1]+","+k[2]+","+this.Ga.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":f,"font-weight":this.Ga.bold?"bold":"","font-style":this.Ga.italic?"italic":"","text-decoration":this.Ga.underline?
"underline":"","vertical-align":ufa[d]});b&&(this.L=b.height/360);e=dC(this.Ga.windowColor);c=this.Ga.windowOpacity;f=this.Ga.fontSizeIncrement||0;1!=d&&(f*=.8);Lf(this.H,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*f)*this.L)+"px"})};h.ai=function(){var a;this.B.style.fontFamily=this.o.style.fontFamily;this.j.appendChild(this.B);a=this.B.offsetHeight;this.j.removeChild(this.B);return a};
h.Wd=function(){this.o&&(0!=this.id&&98!=this.id&&(eg(this.j,"100%"),eg(this.j,this.o.offsetWidth+1)),IH(this),Hq(this.j,this.Ga.isVisible))};h.uq=function(a){if(a.length){var b=a[a.length-1].G;b&&this.Bd(RH(b))}for(var b="",c=0;c<a.length;){0<c&&(b+="<br>");var d=a[c].o;for(c++;c<a.length;c++){var e=a[c];if(e.F)d+=e.o;else break}b+=JH(d)}this.Zd(b);this.D=a};
h.Zd=function(a){this.K=a;this.o.innerHTML=a;this.j.style.textAlign=vfa[this.Ga.textAlign];1==this.Ga.textPrintDirection?this.o.setAttribute("dir","rtl"):this.o.removeAttribute("dir");this.Wd()};h.toString=function(){var a="Caption window ("+this.id+"): "+this.K,b;for(b in this.Ga)a+=b+" "+this.Ga[b]+" | ";return a};h.Sh=function(){this.D=[];this.Zd("")};B(LH,fq);LH.prototype.toString=function(){return LH.M.toString.call(this)};B(NH,fq);B(SH,KH);B(TH,KH);B(YH,KH);B(gI,KH);var iI=/NOTE/,hI=/(?:\r\n|\r|\n){2,}/,jI=/\r\n|\r|\n/,kI=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(rI,G);h=rI.prototype;h.nk=function(a){var b=this.j.o,c=oI(this.j,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};h.Kd=function(){return null};h.seek=function(){};h.Tl=function(){};h.S=function(){rI.M.S.call(this);this.Tl()};B(tI,rI);h=tI.prototype;h.Bn=function(){for(var a=[],b=oI(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:Lt(d),srclang:d.j,src:uI(this,d)};d==this.nk()&&(e["default"]=1);a.push(N("track",e))}return a};h.fl=function(a,b){cb(!this.isDisposed());var c=uI(this,a),d=A(function(c){this.A=null;c=new mI(c.responseText);b(c,a)},this);this.A&&this.A.abort();this.A=yj(c,{format:"RAW",jb:d,withCredentials:!0});this.o&&this.o.ug!=a&&(this.o.gk=a)};
h.il=function(a,b,c,d){this.B=c;if(this.o=d||null)for(b=0;b<this.o.captionTracks.length;b++)pI(this.j,this.o.captionTracks[b]);a()};h.Kd=function(){return this.o?this.o.ug:null};h.nk=function(){return this.o?this.o.gk:null};h.S=function(){this.A&&this.A.abort();tI.M.S.call(this)};xI.prototype.contains=function(a){a=xb(this.ta,a);return 0<=a||0>a&&1==(-a-1)%2};xI.prototype.length=function(){return this.ta.length/2};B(yI,G);yI.prototype.S=function(){Bi(this.A);this.A=0;this.B=!0;this.C&&this.C.abort()};yI.prototype.resume=function(){this.B=!1;Bi(this.A);this.seek(this.o.getCurrentTime());CI(this)};yI.prototype.seek=function(a){this.j=db(this.H.bi(a).j)};yI.prototype.J=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.B||null===this.F||(a=new mI(a.responseText,1E3*this.D.j[0].startTime),this.F(a));this.C=this.D=null};B(DI,rI);h=DI.prototype;h.fl=function(a,b){zI(this.o,function(c){b(c,a)});this.o.H=this.A.j[a.j];this.o.resume()};h.il=function(a){pI(this.j,new Jt({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};h.seek=function(a){this.o.seek(a)};h.Tl=function(){var a=this.o;Bi(a.A);a.A=0;a.B=!0};h.S=function(){this.o.dispose();DI.M.S.call(this)};B(EI,FH);h=EI.prototype;h.ai=function(){return this.C[0]?this.C[0].offsetHeight:0};h.Wd=function(){0!=this.id&&(eg(this.j,"100%"),eg(this.j,this.F?FI(this):this.A.width));var a=Math.round(this.Ga.rowCount*this.ai());this.j.style.maxHeight=a+"px";IH(this);Hq(this.j,this.Ga.isVisible)};
h.Zd=function(a){this.Sh();a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=N("div",{"class":"caption-row-holder"}),e=N("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.G;d.appendChild(e);e.innerHTML=a[b];this.F||(this.o.style.height=this.A.height+"px",this.o.style.width=this.A.width+"px",d.style.position="absolute",d.style.top=this.A.gq[b]+"px",d.style.left=this.A.fq[b]+"px");this.o.appendChild(d);this.C.push(e)}this.Wd()};
h.Sh=function(){for(var a=0,b=this.C.length;a<b;a++){var c=Gf(this.C[a],"caption-row-holder");pf(c)}this.C=[]};h.Bd=function(a,b){EI.M.Bd.call(this,a,b);this.G=this.o.style.backgroundColor;this.o.style.backgroundColor="";for(var c=0,d=this.C.length;c<d;c++)this.C[c].style.backgroundColor=this.G};B(GI,FH);GI.prototype.Wd=function(){eg(this.j,"100%");var a=this.j.offsetWidth,a=Math.min(KI(this),a);eg(this.j,a+"px");eg(this.H,"100%");this.o.style.whiteSpace="nowrap";IH(this);Hq(this.j,this.Ga.isVisible)};GI.prototype.uq=function(a){var b=a.length;if(0>=b)this.Sh();else{for(var c=0;c<b&&0<=this.D.indexOf(a[c]);)c++;this.D=this.D.concat(a.slice(c));HI(this)}};GI.prototype.Sh=function(){this.D=[];this.A=[];this.C=0;this.A=[];this.F=[];JI(this)};
GI.prototype.J=function(){this.j.style.overflow="visible";this.o.style.top=0;this.G.stop();Yd(this.o,"caption-rollup");this.A.push("");this.F.push(0);HI(this)};B(LI,rI);LI.prototype.Bn=function(){for(var a=[],b=oI(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e=MI(this,d),e={kind:"subtitles",label:d.B,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(N("track",e))}return a};LI.prototype.fl=function(a,b){cb(!this.isDisposed());var c=MI(this,a),d=A(function(c){this.o=null;c=new mI(c.responseText);b(c,a)},this);this.o&&this.o.abort();this.o=yj(c,{format:"RAW",jb:d,withCredentials:!0});qI(this.j,a)};
LI.prototype.il=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.B,fmts:Number(b||!1),vssids:1};this.xo&&(b.asrs=1);d=oj(d,b);b=A(function(b){this.o=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.j,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var p=k[m].getAttribute("formats"),u=c,v=k[m].getAttribute("lang_code"),z=k[m].getAttribute("lang_translated"),y=k[m].getAttribute("name"),ga=k[m].getAttribute("kind"),va=k[m].getAttribute("id"),I="true"==k[m].getAttribute("lang_default"),
W="true"==k[m].getAttribute("cantran"),Kb=k[m].getAttribute("vss_id");pI(d,new Jt({formats:p,format:u,languageCode:v,languageName:z,name:y,kind:ga,id:va,is_servable:!0,is_default:I,is_translateable:W,vss_id:Kb}))}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"),u=b[k].getAttribute("id"),v="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:p,
id:u,is_default:v},this.D[l.languageCode]=l.languageName,this.C.push(new It(l))}a()},this);this.o&&this.o.abort();this.o=yj(d,{format:"RAW",jb:b,withCredentials:!0})};LI.prototype.S=function(){this.o&&this.o.abort();LI.M.S.call(this)};B(NI,jq);h=NI.prototype;
h.create=function(){NI.M.create.call(this);this.C=this.j.getVideoData();-1==v8.indexOf(this.X.W)&&L(this.j.ua(),"cc-international");this.A=ec(fJ);qa(this.A,pq(this,"display-settings"));QI(this,"fontFamilyOption","fontFamily",l8,4);QI(this,"charEdgeStyle","charEdgeStyle",m8,3);this.da=new R(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.da.j(this.j.ua());this.$=this.da.element;(this.C.Ea&&PI(this)?0:this.C.captionTracks.length&&this.j.Zf().ug||RI(this,!0))&&this.load()};
h.destroy=function(){this.da.detach();this.da.dispose();this.$=null;NI.M.destroy.call(this)};h.load=function(){this.qa="1"==this.C.B.cc_auto_caps||"1"==this.X.P.cc_auto_caps;NI.M.load.call(this);this.ha=!0;if(this.C.Ea)this.B=new DI(this.C.j,this.j),this.subscribe("seekto",this.ur,this);else{var a=this.C.ke||this.X.Qa||this.C.Qc("yt:cc_default_lang")||this.X.W,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.B=new tI(this.C):this.B=new LI(this.C.Oh,this.C.videoId,a,this.C.Nh)}SI(this)};
h.unload=function(){this.F&&($I(this),this.zl("control_subtitles_set_track"));if(PI(this)){var a;a=Ye("track",void 0,void 0);for(var b=0;b<a.length;b++)pf(a[b])}else cJ(this,!1),TI(this),this.unsubscribe("seekto",this.ur,this),this.B.dispose(),this.B=null;this.J=this.ca=this.N=this.ha=!1;NI.M.unload.call(this)};
h.Lp=function(){this.ha=!1;if(PI(this))for(var a=this.L.o,b=this.B.Bn(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(c=this.J||RI(this,!this.ca),b=oI(this.B.j,!0),0<b.length){this.ca=!0;a=this.o&&-1!=b.indexOf(this.o);if(c&&!a)if(c=this.B.nk(),!c&&this.J&&(c=b[0]),c)this.la=!0,XI(this,c),a=!0;else if(this.N||UI(this),b=this.B.j.A,b.length&&(b=b[0].toString(),this.J||this.qa))a=sI(this.B,b),XI(this,a,void 0),a=!0;this.O("publish_external_event","onCaptionsTrackListChanged");a||WI(this)}else if(this.B.Kd())WI(this);
else if(a=this.j.app.B,b=jH(a,this.ra))ob(a.j,b),b.destroy()};
h.Mp=function(a,b){this.la&&(this.la=!1,this.O("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.o||!b.equals(this.o))){TI(this);this.o=b;this.wa=$ea.test(b.j);var c={trackName:b.B,trackKind:b.A};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);b!=this.B.Kd()&&(this.J&&(c=Lt(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Q("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.$.appendChild(this.T.j),
this.T.Zd(c),this.T.Bd(this.A,this.L.Ka()),this.T.Wd(),this.ka.Of()),this.O("publish_external_event","captionschanged",Kt(b)),(this.X.experiments.na("cc_sticky_behavior")||this.J||wG(this.X))&&qq(this,"module-enabled",!0),(c=lq(this.j.app))&&c.A&&sA(c.A.o))}this.N||UI(this);this.cb(a.o.concat(a.j))};h.oc=function(a){this.Y.push(a);this.ga.Of()};h.Gc=function(a){ob(this.Y,a);this.ga.Of()};
h.rB=function(a){if(this.o)if(a instanceof NH){var b=this.K[a.id];qa(a.params,this.A);OH(a);b&&b.getType()!=PH(a)&&(pf(b.j),delete this.K[a.id],b=null);if(!b){var b=this.K,c=a.id,d;a:{d=a.id;var e=a.params;switch(PH(a)){case 1:d=new EI(d,e);break a;case 2:d=new GI(d,e);break a;default:d=new FH(d,e)}}b=b[c]=d;c=b.j;M(c,"captions-asr","asr"==this.o.A);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.wa?1:0);this.$.appendChild(c)}b.Bd(a.params,this.L.Ka());if(1==PH(a)){b.J=JH(a.o);
b.A={};b.F=!0;b.Zd(b.J);b.A.cq=b.C.length;b.A.width=b.j.offsetWidth;b.A.height=b.j.offsetHeight;b.A.fq=[];b.A.gq=[];for(a=0;a<b.A.cq;a++)b.A.gq.push(b.C[a].offsetTop),b.A.fq.push(b.C[a].offsetLeft);b.F=!1;b.Zd(b.J)}}else b=a.C,this.W[b]||(this.W[b]=[]),this.W[b].push(a)};h.gp=function(){this.N&&(VI(this),Ob(this.K,function(a){a.Wd()},this))};h.BB=function(){pf(this.T.j)};
h.Ul=function(){this.ga.stop();this.N&&(bc(this.W),this.Y.sort(iq),F(this.Y,this.rB,this),Ob(this.K,function(a,b){this.W[b]?a.uq(this.W[b]):(pf(a.j),delete this.K[b])},this),YI(this),this.D&&this.D.Wd())};h.Cl=function(){qq(this,"display-settings",this.A)};
h.fe=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.A.fontSizeIncrement=Math.max(-2,Math.min(4,b)),VI(this)),this.A.fontSizeIncrement;case "reload":b&&SI(this);break;case "stickyLoading":void 0!=b&&this.X.ib&&qq(this,"module-enabled",!!b);break;case "track":if(b){if(!ia(b))break;if(ac(b)){aJ(this);break}for(var c,d=oI(this.B.j,!0),e=0;e<d.length;e++){var f=d[e];f.j!=b.languageCode||c&&f.D!=b.languageName||(c=b.translationLanguage?Mt(f,b.translationLanguage):f)}c&&XI(this,
c,!0)}else return this.o&&this.o!=this.B.Kd()?Kt(this.o):{};return"";case "tracklist":return this.ca?P(oI(this.B.j,b&&b.includeAsr),function(a){return Kt(a)}):[];case "translationLanguages":return this.ca?this.B.C:[];case "displaySettings":return b&&ia(b)&&eJ(this,b),c=ec(this.A),c.fontFamilyOption=l8[c.fontFamily],c.charEdgeStyle=m8[c.charEdgeStyle],c;case "sampleSubtitles":void 0!=b&&cJ(this,!!b);break;case "xmlTrack":b&&this.X.ib&&(TI(this),c=new mI(b.xml),this.o=new Jt({languageName:b.name}),
this.Mp(c,this.o))}};h.Re=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.X.ib&&a.push("stickyLoading","xmlTrack");return a};h.ak=function(a,b){return a&&x(a)&&fI.test(a)?a:b};h.ll=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};h.Zu=function(a,b){if(a&&x(a)){var c=m8.indexOf(a);return-1!=c?c:b}return b};h.Hv=function(a,b){if(a&&x(a)){var c=l8.indexOf(a);return-1!=c?c:b}return b};
h.Iv=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};var gJ=null;h=NI.prototype;h.Xa=function(a){if("lb3"==a.V().j)return!1;a=a.getVideoData();var b;if(b=a.Ea)b=a.j,b=!(!b||null==b.j.en);return!!(a.Oh||a.captionTracks.length||b)};h.Di=function(a){a?TI(this):this.loaded&&(this.unload(),this.load())};h.ur=function(){this.B.seek(this.j.getCurrentTime())};h.nh=function(){var a=this.o;return a?{cc:a.F}:null};
h.EA=function(){this.J=!0;this.loaded?this.o&&this.o!=this.B.Kd()?aJ(this):this.Lp():this.load()};h.cy=function(){this.C.captionTracks.length&&(this.loaded?SI(this):(this.j.Zf().ug||RI(this,!0))&&this.load())};B(hJ,jq);h=hJ.prototype;h.Xa=function(){return iJ(this.j)};h.create=function(){hJ.M.create.call(this);var a=new fq(1E3,0x7ffffffffffff,{priority:0});this.cb([a]);this.subscribe("heartbeatparams",this.ED,this);this.subscribe("onStateChange",this.FD,this)};h.destroy=function(){pJ(this);hJ.M.destroy.call(this)};h.oc=function(){this.D=!0;lJ(this,2E3)};h.ED=function(a){this.A=a;lJ(this,2E3)};h.FD=function(a){U(a.state,2)||U(a.state,64)?pJ(this):(U(a.state,1)||U(a.state,8))&&lJ(this,2E3)};
h.GB=function(){var a,b,c=this.j.V(),d=this.j.getVideoData();b=c.baseYtUrl;U(hz(this.j),4)?this.o=window.NaN:kJ(this)?(Rw(d)?(a="GET",b=Tg(this.A.url,{request_id:pu()}),d.K&&(b=Tg(b,{vvt:d.K})),d.oauthToken&&(b=Tg(b,{access_token:d.oauthToken}))):(a="GET",c=c.o,b=Tg(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.K,access_token:d.oauthToken})),b=Tg(b,{cpn:d.clientPlaybackNonce}),yj(b,{format:"RAW",method:a,timeout:3E4,jb:A(this.ox,this),
onError:A(this.nx,this),Ud:A(this.qx,this),withCredentials:!0})):pJ(this)};h.ox=function(a){if(this.o){a=a.responseText;var b;b=(b=oJ(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(A$))?"0"==b[1]?0:1:-1;if(-1==b)mJ(this,"decode");else if(this.B=0,this.o=window.NaN,1==b){this.C=!1;b="YTP_ERROR_LICENSE";var c=oJ(a);c?a=c.reason||Q(b):((a=a.match(A$))&&(a=(0,window.parseInt)(a[1],10))&&(b=Px(a)),a=Q(b));nJ(this.j.app.j,"heartbeat",a,void 0)}else this.C=!0,lJ(this)}};
h.nx=function(a){mJ(this,"net-"+a.status)};h.qx=function(){mJ(this,"timeout")};var A$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(vJ,jq);h=vJ.prototype;h.Xa=function(){return!!this.j.getVideoData().spacecastModule};h.create=function(){vJ.M.create.call(this);var a;a:{var b=fj("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.o=a;this.load()};h.destroy=function(){vJ.M.destroy.call(this);this.o=null};
h.load=function(){vJ.M.load.call(this);if(this.o){var a=this.j.getVideoData().videoId,b=K();tJ(this.o,a,A(this.rw,this,a,b))}else nq(this)};h.fe=function(a){switch(a){case "getVideo":a=this.j.getVideoData();var b=Boolean(a&&Vw(a)&&a.o&&a.o.video.j);return{docid:a.videoId,isFastLoad:b}}};
h.rw=function(a,b,c){if(this.o){b=K()-b;var d=!1,e=this.j.getVideoData(),f="unknown";if(c){c.status&&(f=c.status);var k=rJ(this.o,c,e.adaptiveFormats);k&&(e.spacecastAdaptiveFormats=k);if(c=rJ(this.o,c,e.Sf))e.spacecastFormatMap=c;if(k||c)Ow(e,this.j.V()),e.N||gH(this.j),d=Tt(e.Ug),this.j.rj(d),d=!0}(c=2==this.j.getPresentingPlayerType())&&!d?nd(function(){var a=this.j.app;a.F&&a.F.H&&(a=a.F,a.D&&(a=a.A.o.j,null!=a&&a.vj()))},this):nq(this);Mi("yt-www-spacecast-cache-watch-video-cached",a,d);qJ(Rg({a:"spacecast",
module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}))}};B(xJ,jq);h=xJ.prototype;h.Xa=function(){return $w(this.j.getVideoData(),"ypc_clickwrap_module")};h.create=function(){xJ.M.create.call(this);this.load()};
h.load=function(){xJ.M.load.call(this);this.o=new tq(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Q("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().B.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],{tabindex:27},Q("YTP_YPC_START_RENTAL_BUTTON")]]);this.o.j(this.j.ua());H(this,this.o);this.A=this.o.oa["ytp-ypc-clickwrap-confirm"];Ll(this.A,"click",A(this.Iy,this))};
h.unload=function(){xJ.M.unload.call(this);Rl(this.A);this.o.detach();this.o.dispose();this.o=null};h.Iy=function(){nq(this);this.destroy()};AJ.prototype.j=function(a,b){var c=Math.pow(this.C,a);this.o=b*(1-c)+c*this.o;this.B+=a};AJ.prototype.A=function(){return this.o/(1-Math.pow(this.C,this.B))};BJ.prototype.forEach=function(a){for(var b=this.j+1;b<this.o.length;b++)a(this.o[b]||0);for(b=0;b<=this.j;b++)a(this.o[b]||0)};BJ.prototype.Ja=function(){var a=[];this.forEach(A(a.push,a));return a};DJ.prototype.j=function(a,b){FJ(this,"index");this.B.push({index:this.H++,weight:a,value:b});this.o+=a;for(FJ(this,"index");this.o>this.F;){var c=this.o-this.F,d=this.B[0];d.weight<=c?(this.o-=d.weight,this.B.shift()):(this.o-=c,d.weight-=c)}};DJ.prototype.A=function(){return this.D?(EJ(this,this.C-this.D)+EJ(this,this.C)+EJ(this,this.C+this.D))/3:EJ(this,this.C)};GJ.prototype.j=function(a,b){this.o.push(b);this.o.length>this.B&&this.o.shift()};GJ.prototype.A=function(){return me.apply(null,this.o)};B(SJ,G);SJ.prototype.H=function(a){if(this.o){var b;var c=ka(a);b=this.D[c];if(!b)if(this.o){if(b=a(this.o)){a=this.D[c]=b;for(var d in this.F)a.subscribe(d,this.F[d]);H(this,b)}}else b=null;b&&b.Xa(this.o)&&!E(this.j,b)&&(b.create(),this.j.push(b),E(this.C,b.ra)&&(b.F=this.G,b.Di(!!b.F)))}};SJ.prototype.J=function(a,b){F(this.j,function(c){c.O(a,b)})};SJ.prototype.isAvailable=function(a){a=jH(this,a);return!(!a||!a.fa)};ZJ.prototype.getMessage=function(){return this.B};ZJ.prototype.getErrorCode=function(){return this.j};ZJ.prototype.getType=function(){return this.C};ZJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.A?" Caused by: "+this.A:"")};B($J,jc);$J.prototype.getError=function(){return this.B};var o_="adMetadata click companionBackfill complete firstquartile impression loaded log midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked youTubeChannelMetadata".split(" "),B$="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_url why_this_ad_settings_url why_this_ad_learn_more_url 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(" "),
wfa="acceptinvitation click close collapse creativeview expand progress".split(" "),C$=["viewable_impression","measurable_impression","externalActivityEvent"],D$={fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};B(aK,jc);aK.prototype.getAd=function(){return this.B};
var gda={HF:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",EI:"videoClicked",Pm:"engagedview",AG:"expandedChanged",STARTED:"start",Ah:"impression",Rm:"measurable_impression",cn:"viewable_impression",Qm:"fully_viewable_audible_half_duration_impression",DG:"externalActivityEvent",PAUSED:"pause",LH:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",vG:"durationChange",
XF:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",AH:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Ns:"video_extend_auto_skipped",ru:"skipshown",zt:"video_extend_shown",CG:"video_extend_clicked",$G:"linearChanged",XH:"skippableStateChanged",IF:"adMetadata",GF:"adBreakReady",dH:"log",VOLUME_CHANGED:"volumeChange",JI:"mute",nG:"companionBackfill",VI:"youTubeVideoMetadata",TI:"youTubeChannelMetadata",yI:"urlNavigationRequested",qI:"trackingUrlPinged",AI:"video_card_endcap_action",
BI:"video_card_endcap_collapse",CI:"video_card_endcap_dismiss",DI:"video_card_endcap_impression",QI:"why_this_ad_url",OI:"why_this_ad_got_it_url",mH:"MUTE_AD"};var LK={Mt:5E3,Nt:15E3,ju:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://yts?.moatads.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),ku:/\bocr\b/,ck:0,yd:{},pq:function(a,b){a&&(LK.$k(a)?LK.qq(a,b):LK.IB(a,b))},$k:function(a){return C(D(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new O(a)).hf().match(LK.ku)?!0:null!=eb(LK.ju,function(b){return null!=a.match(b)})},qq:function(a,b){if(a){var c=
'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?LK.Co(function(b){LK.mq(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):LK.mq(c)}},mq:function(a){var b=N("iframe",{src:a,style:"display:none"});a=Ve(b).body;var c,d=Rd(function(){Zc(c);pf(b)},LK.Nt);c=Xc(b,["load","error"],function(){Rd(function(){Sd(d);pf(b)},LK.Mt)});a.appendChild(b)},Co:function(a,b){var c=LK.yd.imageLoadingEnabled;if(null!=c)a(c);else{var d=
!1,c=function(b,c){delete LK.yd[c];d||(d=!0,null!=LK.yd.imageLoadingEnabled||(LK.yd.imageLoadingEnabled=b),a(b))};b?b(c):LK.vx(c)}},vx:function(a){var b=new window.Image,c,d=""+LK.ck++;LK.yd[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=="},HB:function(a){if(a){var b=kf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+LK.ck++;
LK.yd[c]=b;b.onload=b.onerror=function(){delete LK.yd[c]};window.document.body.appendChild(b)}},nq:function(a){if(a){var b=new window.Image,c=""+LK.ck++;LK.yd[c]=b;b.onload=b.onerror=function(){delete LK.yd[c]};b.src=a}},IB:function(a,b){b?LK.Co(function(b){b?LK.nq(a):LK.HB(a)}):LK.nq(a)},hJ:function(a){null!=a&&F(a,function(a){LK.pq(a)})}};var jK=new function(){this.o="always";this.D=1;this.j=!1;this.B=!0;this.F=!1;this.C=null};var LU=["ADSENSE","ADSENSE/ADX"],xaa=["DART","DART_DFA","DART_DFP"],Gaa=["FREEWHEEL","YT:FREEWHEEL"],hU=["GDFP"],waa=["VIRAL","ADSENSE-VIRAL"],JT={"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"},cZ={iH:"video/mp4",kH:"video/mpeg",eH:"application/x-mpegURL",rH:"video/ogg",gI:"video/3gpp",LI:"video/webm",hH:"audio/mpeg",jH:"audio/mp4"};kK.prototype.getId=function(){return this.o};lK.prototype.getId=function(){return this.A};var sK=null;var bQ=["*.googlesyndication.com"],BK=["*.youtu.be","*.youtube.com"],GK="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(" "),FK=["c.googlesyndication.com"],xfa=
["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];NK.prototype.getErrorCode=function(){return this.errorCode};NK.prototype.getMessage=function(){return this.message};
var Hca=new NK("Unable to request ads from server. Cause: {0}.",1005),yfa=new NK("Unable to request ads from server due to network error.",1012),tV=new NK("Cannot parse the {0} value for the adslist response: {1}.",900),SY=new NK("Invalid usage of the API. Cause: {0}",900),XY=new NK("Unable to display one or more required companions.",602),zfa=new NK("There was a problem requesting ads from the server.",1005),xca=new NK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),sX=new NK("The provided ad type: {0} is not supported.",1005),yR=new NK("The provided {0} information: {1} is invalid.",1101),Afa=new NK("The provided skip offset was invalid.",1105),Bfa=new NK("The extension contained is neither skippable nor nonskippable.",1105),NW=new NK("The response does not contain any valid ads.",1009),Cfa=new NK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Xaa=new NK("The ad playlist response was malformed or empty.",
1010),uV=new NK("The ad response was not understood and cannot be parsed.",1010),Aca=new NK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),Dfa=new NK("The ad response contains unexpected element. Cause {0}.",1010),iY=new NK("No assets were found in the VAST ad response.",200),maa=new NK("Duplicate node in <{0}>: {1}",101),OW=new NK("The VAST response document is empty.",1009),Efa=new NK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),aY=new NK("Ad request reached a timeout.",301),PW=new NK("VAST response was malformed and could not be parsed.",100),E$=new NK("VAST media file loading reached a timeout of {0} seconds.",402),UX=new NK("Ad request could not be completed due to a network error.",301),Ffa=new NK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),uca=new NK("The maximum number of VAST wrappers ({0}) has been reached.",302),Gfa=new NK("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),F$=new NK("Video player received an ad with unexpected or incompatible linearity",201),laa=new NK("Unknown node in <{0}>: {1}",101),xba=new NK("Invalid VAST resource type: {0}",101),Pba=new NK("Invalid VAST version",102),vca=new NK("No additional VAST wrappers allowed.",300),TX=new NK("No Ads VAST response after one or more Wrappers",303),MZ=new NK("There was an error playing the video ad.",400),Kba=new NK("VMAP unsupported node in <{0}>: {1}",1010),nda=new NK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",
901);var G$="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var aL={},bL="",kQ=/OS (\S+) like/,hL=/Android ([\d\.]+)/;aa(iL);h=mL.prototype;h.Ou=!1;h.ln=!1;h.pn=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.contentId=null;h.pv=!1;h.Cg=null;h.surveyCreativeData=null;h.eC=!0;h.Xl=!1;h.useShareButton=!1;h.Hq=!1;h.useStyledNonLinearAds=!1;h.useVideoAdUi=!0;h.fC=!0;h.Pj=!1;h.qv=!1;h.youTubeAdNamespace=0;h.showContentThumbnail=!0;h.Wl=!1;h.Ef=null;h.loadVideoTimeout=15E3;h.qn=!0;h.Tp=0;h.yl=-1;window.console&&"function"===typeof window.console.log&&A(window.console.log,window.console);oL.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 yL=null;sL.prototype.getValue=function(){return this.j};sL.prototype.Zb=function(){return this.A?this.o():""};sL.prototype.o=function(){return String(this.j)};B(tL,sL);tL.prototype.o=function(){return this.j?"1":"0"};B(uL,sL);uL.prototype.o=function(){return String(this.j)};B(vL,sL);vL.prototype.o=function(){return this.j?Math.round(this.j.top)+"."+Math.round(this.j.left)+"."+(Math.round(this.j.top)+Math.round(this.j.height))+"."+(Math.round(this.j.left)+Math.round(this.j.width)):""};
rL.prototype.setItem=function(a){this.j[a.C]=a};rL.prototype.getItem=function(a){return dc(this.j,a,null)};rL.prototype.Zb=function(a){var b=[];a||(a=0);for(var c in this.j){var d=this.j[c];d instanceof tL&&d.getValue()&&(a|=d.B);(d=this.j[c].Zb())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};h=CL.prototype;h.remove=function(a){cc(this.j,a)};h.set=function(a,b){this.j[a]=b};h.get=function(a){return dc(this.j,a,null)};h.extend=function(a){gc(this.j,a)};h.Zb=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var H$=null,I$=null;EL.prototype.Zb=function(){var a=[],b=Number(this.j.get("eb"));this.j.remove("eb");var c=this.j.Zb();c&&a.push(c);this.o&&(c=this.o.serialize())&&a.push(c);(c=this.A.Zb(b))&&a.push(c);this.j.set("eb",b);return a.join("_")};var wP={START:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",RESUME:"resume",SKIPPED:"skip",cn:"viewable_impression",MUTE:"mute",UNMUTE:"unmute",FULLSCREEN:"fullscreen",EXIT_FULLSCREEN:"exitfullscreen",Qm:"fully_viewable_audible_half_duration_impression",Rm:"measurable_impression",Es:"abandon",Pm:"engagedview",Ah:"impression",CREATIVE_VIEW:"creativeview"},BP=["start","firstquartile","midpoint","thirdquartile",
"resume"],IN=["abandon"],xP={UNKNOWN:-1,START:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,RESUME:7,SKIPPED:8,cn:9,MUTE:10,UNMUTE:11,FULLSCREEN:12,EXIT_FULLSCREEN:13,Qm:14,Rm:15,Es:16,Pm:17,Ah:18,CREATIVE_VIEW:19},kN=[8,13,21,33];var zO=/https?:\/\/[^\/]+/;var TL=window.document,X=window;var J$=!1,K$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(J$=!0,a.description)){K$=QL(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){J$=!0;K$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(J$=(a=window.navigator.mimeTypes["application/x-shockwave-flash"])&&a.enabledPlugin)){K$=QL(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");J$=
!0;K$=QL(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");J$=!0;K$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),J$=!0,K$=QL(b.GetVariable("$version"))}catch(c){}})();var LS=J$,tM=K$;UL.prototype.j=function(a,b,c,d,e){var f={};f.context=a;b instanceof VL||(b=XL(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.C;try{if(Math.random()<(c||d.o)){var k=d.j+(e||this.B)+NL(f),k=k.substring(0,2E3);OL(r,k)}}catch(l){}return this.o};var ZL;ZL=new UL(new function(){this.j="http"+("http:"==X.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.o=.01},"jserror",!0);var LP=ZL.j;if(TL&&TL.URL){var KL=TL.URL,Hfa=!(KL&&0<JL().length);ZL.o=Hfa};var pM={},qM=null;pM.le=0;pM.nt=2;pM.Fr=3;var GN=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.j};B(xM,uM);var KM={vI:-1,LOADING:0,Ft:1,Ys:2,Pt:3,VISIBLE:4},MM={LOADING:0,Ft:1,Ys:2,mI:3,qH:4,sI:5,tI:6,rI:7,sH:8,lI:9},NM={};h=AM.prototype;h.zo=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.yo=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&&!oe(a,Uf(this.module))&&Sf(this.module,a)};h.remove=function(){if(this.module)try{pf(this.module)}catch(a){}this.module=null};h.ow=function(a){this.o=a?3:4};q("gteh",$L("osd_or_lidar::gteh_ex",function(a,b){var c=NM[a];ha(c)&&c(b)}),void 0);
var cN={Pt:0,VISIBLE:1},Ifa=new ne(-99999,0);SM.prototype.W=function(){var a=UM(this);if(null===a)WM(this);else if(null===this.A)this.A=a,WM(this);else{var b=a-this.A;this.A=a;0==(4<=b?1:0)?(WM(this),TM(this,0)):(this.j.setPosition(Ifa),this.F=X.setTimeout(aM("osd_or_lidar::sfm_cpto",A(this.T,this)),125))}};SM.prototype.T=function(){var a=UM(this),b=a-this.A;this.A=a;a=4<=b?1:0;WM(this);TM(this,0==a?1:0)};B(ZM,uM);ZM.prototype.J=function(){var a=bN(this);this.o!=a&&(this.o=a,this.H(a))};var hN=null;var jN=new pe(0,0,0,0);h=iN.prototype;h.update=function(a,b,c,d,e){if(0>this.J)return null;c||lN(this,d,e);return this.$i(this.o,b,a,c,!1)};h.$i=function(a,b,c,d,e,f){var k=xN(this),l=Math.floor(100*this.D),m=this.bC.apply(this,arguments),p=xN(this),u=Math.floor(100*this.D);(!k&&p||u!=l)&&this.Jj(p,u);return m};
h.bC=function(a,b,c,d,e,f){var k=c-this.J||1;if(this.Uc()){var l=1E4;-1!=this.P&&(l=Math.max(1E4,this.P/3));k=k>l?1:k}if(!f){l={};if("as"==this.A&&(f="getVideoMetadata"+this.K,ha(this.element[f])))try{l=this.element[f]()}catch(u){this.ed=!0}if("h"==this.A&&(f=t("ima.common.getVideoMetadata"),ha(f)))try{l=f(this.B)}catch(u){this.ed=!0}f=l.currentTime;n(f)?l.currentTime=Math.floor(1E3*f):this.ke=!0;f=l.duration;n(f)&&(l.duration=Math.floor(1E3*f));n(l.volume)||(l.volume=AN(this));f=l}this.P=f.duration||
this.P;this.$b=f.isVpaid||this.$b;l=f.volume;f=n(f.currentTime)?f.currentTime:this.Y+k;f<this.Y&&(f=this.Y,this.ne=!0);var m=f-this.Y,p=null;fa(b)?a=qN(this,b):(p=b,a=qN(this,a,p));this.Aa||sN(this,a,k,this.U,e,d,p,l,m);this.U=d?-1:a;this.J=c;this.Y=f;-1!=a&&(0>this.la&&(this.la=c),this.xc=c);-1==this.$c&&xN(this)&&(this.$c=c);this.bc(this,p||jN);return this.D};
h.Zb=function(){var a=this.o,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.wa.join(","));a.push("mtos:",this.ca.join(","));a.push("rs:",this.ka);5!==this.ka&&6!==this.ka&&(a.push("zoom:",this.bb.join(",")),a.push("ht:",this.he));0<=this.la&&a.push("tfs:",this.la,"tls:",this.xc);a.push("vt:",this.$c);this.Uc()&&a.push("qid:",this.B);this.C?(a.push("swf:",this.C.getStatus()),a.push("px:",String(this.G))):this.ha&&(a.push("swf:","-"),a.push("px:",String(this.G)));this.F?(a.push("sfm:",this.F.getStatus()),
a.push("px:",String(this.G))):this.qe&&(a.push("sfm:","-"),a.push("px:",String(this.G)));return a.join(",")};h.Uc=function(){return 7==this.ka};var NN=null,PN=null,QN=null,SN=null,jO=null,LN=!1,kO=[],mO=[],fO=!1,gO=null,$N=0,bO=!1,aO=!1,dO=!1,eO=!1,ZN=UK()||TK(),iO=0;var CO=null,RO="",NO=!1;var FO=(new Date).getTime(),HO=[function(a){return!(!a.chrome||!a.chrome.webstore)},function(a){return!!a.document.documentMode},function(a){return!!a.document.fonts.ready},function(){return EO(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 EO(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 EO(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 EO(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 EO(4)},function(a){return"srcset"in a.document.createElement("img")},function(){return!1},function(){return!1},function(){return EO(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 EO(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]||DO(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 DO(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 EO(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 DO(a.CSS.supports)},function(){return DO(window.Intl.Collator)},function(a){return DO(a.document.createElement("dialog").show)},function(){return EO(8)},function(a){return DO(a.document.createElement("div").animate([{transform:"scale(1)",
uv:"ease-in"},{transform:"scale(1.3)",uv:"ease-in"}],{duration:1300,fJ:1}).reverse)},function(a){return DO(a.document.createElement("div").animate)},function(a){return DO(a.document.documentElement.webkitRequestFullScreen)},function(a){return DO(a.navigator.getBattery)},function(a){return DO(a.navigator.permissions.query)},function(){return DO((new window.AudioContext).createBuffer)},function(){return EO(9)},function(){return DO(window.webkitRequestAnimationFrame)},function(a){return DO(a.BroadcastChannel.call)},
function(a){return DO(a.FontFace)},function(a){return DO(a.Gamepad)},function(){return EO(10)},function(a){return DO(a.MutationEvent)},function(a){return DO(a.MutationObserver)},function(a){return DO(a.crypto.getRandomValues)},function(a){return DO(a.document.body.createShadowRoot)},function(a){return DO(a.document.body.webkitCreateShadowRoot)},function(a){return DO(a.fetch)},function(){return EO(11)},function(a){return DO(a.navigator.serviceWorker.register)},function(a){return DO(a.navigator.webkitGetGamepads)},
function(a){return DO(a.speechSynthesis.speak)},function(a){return DO(a.webkitRTCPeerConnection)},function(a){return a.CSS.supports("--fake-var","0")},function(){return EO(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 EO(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 EO(14)},function(a){return"undefined"==typeof a.navigator.lJ},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")}],IO=[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}];var KO=!1,OO=!1,QO=!1,PO=!1,LO=!1;q("Goog_AdSense_Lidar_sendVastMessage",YL("lidar::handlevast_ex",AP),void 0);q("Goog_AdSense_Lidar_sendVastEvent",YL("lidar::handlevastevent_ex",zP),void 0);q("Goog_AdSense_Lidar_getInitSignals",YL("lidar::getinitsignals_ex",yP),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",$L("lidar::geturlsignalsarray_ex",function(){return AO()}),void 0);q("Goog_AdSense_Lidar_getUrlSignalsList",$L("lidar::geturlsignalslist_ex",function(){return de(AO())}),void 0);B(DP,J);var FP=null;DP.prototype.destroy=function(){this.C.ya(this.j,"activityMonitor",this.G);this.A=null;this.o=!1};
DP.prototype.init=function(a){if(!this.o){if(this.j=a||null)this.C.R(this.j,"activityMonitor",this.G),NP(this);if(jK.B&&!(r.ima&&r.ima.video&&r.ima.video.client&&r.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);var b=r.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.o=!0}};
DP.prototype.G=function(a){var b=a.ud,c=b.queryId,d={};d.eventId=b.eventId;switch(a.nc){case "getPageSignals":NP(this);break;case "getViewability":b=KP(this,"metric",c);d.viewabilityString=b.viewability||"";this.j.send("activityMonitor","viewability",d);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);var k=null;Yb(b,"isFullscreen")&&(k=b.isFullscreen);d.viewabilityString=KP(this,e,c,a,f);d.engagementString=
OP(this,a,k);this.j.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,k=null,Yb(b,"isFullscreen")&&(k=b.isFullscreen),d.engagementString=OP(this,a,k),this.j.send("activityMonitor","engagement",d)}};q("ima.common.getVideoMetadata",GP,void 0);q("ima.common.sdkVolume",function(a){a=GP(a).volume;return null!=a?a:-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=EP().j;d?d.send("activityMonitor","viewableImpression",c):EP().Z(new aK("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=EP().j;d?d.send("activityMonitor","measurableImpression",c):EP().Z(new aK("measurable_impression",null,c))},void 0);
q("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=EP().j)?a.send("activityMonitor","externalActivityEvent",d):EP().Z(new aK("externalActivityEvent",null,d))},void 0);B(UP,J);h=UP.prototype;h.HA=function(a){this.H=!0;this.o=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.L=!0);(this.G=$P(this,a.touches)||1!=a.touches.length)?this.N=this.P=window.Infinity:(this.P=a.touches[0].clientX,this.N=a.touches[0].clientY);ZP(this,a.touches)};h.GA=function(a){this.o=a.touches.length;if(!ZK()||!$K(kQ,8)||Math.pow(a.changedTouches[0].clientX-this.P,2)+Math.pow(a.changedTouches[0].clientY-this.N,2)>Math.pow(5,2))this.D=!0};
h.FA=function(a){this.K?this.hk():(!this.H||1!=this.o||this.D||this.L||this.G||!$P(this,a.changedTouches)||(this.A=window.setTimeout(A(this.hk,this),300)),this.o=a.touches.length,0==this.o&&(this.D=this.H=!1,this.B=[]),this.L=!1)};h.fo=function(){this.hk()};h.hk=function(){this.A=0;this.Z(new jc("click"))};h.S=function(){XP(this);this.C.dispose();this.C=null;UP.M.S.call(this)};B(fQ,J);var VR={ZF:"beginFullscreen",CLICK:"click",xG:"end",yG:"endFullscreen",ERROR:"error",LOADED:"loaded",fH:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",SKIP:"skip",ru:"skipShown",BG:"video_extend_clicked",zt:"video_extend_shown",Ns:"video_extend_auto_skipped",START:"start",iI:"timeUpdate",fG:"cardsStateChange",hI:"timedMetadata",II:"volumeChange",SH:"showCompanionAdLoaded"};fQ.prototype.mo=function(){return!1};fQ.prototype.El=w;fQ.prototype.Ik=w;fQ.prototype.ff=function(){return null};B(gQ,fQ);h=gQ.prototype;h.jq=function(a,b,c,d){if(d&&(d=eb(a,function(a){return!ca(aQ(a.o))}),null!==d))return d;a=Zd(a,function(a){var b=a.j;C(D(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||dL&&$K(hL,2.3)&&Ha(b,"application/ogg")?!1:dL&&(Ha(b,"video/mp4")||Ha(b,"video/3gpp"))||ZK()&&(Ha(b,"application/x-mpegurl")||Ha(b,"application/vnd.apple.mpegurl"))?!0:!C(this.j.canPlayType(b)));return a},this);return PP(a,b,c)};
h.tk=function(){return Zd(Vb(cZ),function(a){return!C(this.j.canPlayType(a))},this)};h.Il=function(a){this.T=0<a.j?a.j:15E3};h.load=function(a){hQ(this);this.j.src=a;this.j.load()};h.getVideoUrl=function(){return this.j.src};h.setVolume=function(a){this.j.volume=a};h.sd=function(){return this.j.volume};h.play=function(){this.P=!1;Rd(this.j.play,0,this.j);this.H||(this.H=Rd(this.bv,this.T,this))};h.pause=function(){this.P=!0;this.j.pause()};
h.tf=function(){return this.j.paused?ZK()||Dl?this.j.currentTime<this.j.duration:!0:!1};h.sf=function(){return this.j.muted};h.jk=function(){WK()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};h.Od=function(){return HP(this.j)};h.qg=function(a){var b;a:{for(b=this.U.Ja();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};h.uf=function(a){this.j.currentTime=a};h.getCurrentTime=function(){return this.j.currentTime};h.no=function(){return lQ(this)};
h.Nd=function(){return(0,window.isNaN)(this.j.duration)?-1:this.j.duration};h.He=function(){return this.j.ended};h.Sc=function(){return new qe(this.j.offsetWidth,this.j.offsetHeight)};h.oo=function(){return this.j.seeking};h.S=function(){this.vf();this.j=null;gQ.M.S.call(this)};h.getError=function(){return this.j.error};
h.ri=function(){this.vf();this.o=new zm(this);this.o.R(this.j,G$,this.Qz);this.o.R(this.j,"canplay",this.iy);this.o.R(this.j,"ended",this.Lw);this.o.R(this.j,"webkitbeginfullscreen",this.Jk);this.o.R(this.j,"webkitendfullscreen",this.qo);this.o.R(this.j,"pause",this.Nw);this.o.R(this.j,"playing",this.$z);this.o.R(this.j,"timeupdate",this.BA);this.o.R(this.j,"volumechange",this.Ow);this.o.R(this.j,"error",this.po);this.o.R(this.j,vG||ZK()&&(!ZK()||!$K(kQ,8))?"loadeddata":"canplay",this.rz);this.D=
new UP;this.o.R(this.D,"click",this.Kw);VP(this.D,this.j);this.F=new Pd(1E3);this.o.R(this.F,"tick",this.Mw);this.F.start()};h.vf=function(){null!=this.D&&(XP(this.D),this.D=null);null!=this.F&&this.F.dispose();null!=this.o&&(this.o.dispose(),this.o=null);hQ(this)};h.Qz=function(a){this.Z(a.type)};h.iy=function(){var a;if(a=yA)a=oc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.N&&(this.uf(.001),this.N=!0)};h.rz=function(){this.K||(this.K=!0,this.Z("loaded"))};
h.$z=function(){this.Z("play");ZK()||vG||jQ(this)};h.BA=function(){if(!this.B&&(ZK()||vG)){if(0>=this.getCurrentTime())return;if(vG&&this.He()&&1==this.Nd()){this.po();return}jQ(this)}if(ZK()||eL()){if(1.5<this.getCurrentTime()-this.A){this.G=!0;this.uf(this.A);return}this.G=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.U;a.j[a.o]=this.j.currentTime;a.o=(a.o+1)%a.A;this.Z("timeUpdate")};h.Ow=function(){this.Z("volumeChange")};
h.Nw=function(){var a;this.B&&ZK()&&!this.P&&2>lQ(this)-this.j.currentTime?(this.C=new Pd(250),this.o.R(this.C,"tick",this.fy),this.C.start(),a=!0):a=!1;a||this.Z("pause")};h.Lw=function(){var a=vK(rK(),136961002),b=!0;if(ZK()||eL()||a&&dL)b=this.A>=this.j.duration-1.5;!this.G&&b&&this.Z("end")};h.Jk=function(){this.Z("beginFullscreen")};h.qo=function(){this.Z("endFullscreen")};h.po=function(){iQ(this);this.Z("error")};h.Kw=function(){this.Z("click")};
h.Mw=function(){var a=this.Sc(),b=this.Od();if(a.width!=this.L.width||a.height!=this.L.height)!this.J&&b?this.Jk():this.J&&!b&&this.qo(),this.L=a,this.J=b};h.bv=function(){if(!this.B){try{jL(iL.getInstance(),16)}catch(a){}hQ(this);this.Z("mediaLoadTimeout")}};h.fy=function(){if(this.He()||!this.tf())Mb(this.C);else{var a=this.j.duration-this.j.currentTime,b=lQ(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.C),this.play())}};B(mQ,J);nQ.prototype.start=function(a){return this.j[a].startTime};nQ.prototype.end=function(a){return this.j[a].endTime};h=mQ.prototype;h.readyState=0;h.currentTime=0;h.duration=window.NaN;h.xf=!0;h.vo=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.Uw=1;h.playbackRate=0;h.zd=null;h.wi=0;h.oB=4;h.jg=null;h.Vi=null;
h.play=function(){this.vo&&(this.currentTime=0,this.Z("timeupdate"));this.xf&&(this.xf=!1,this.Z("play"),this.readyState=this.oB,2>=this.readyState?this.Z("waiting"):this.Z("playing"));if(null===this.zd||this.zd.isDisposed())this.zd=new Pd(10),this.zd.R("tick",A(this.Dq,this));this.wi=K();this.zd.start();this.autoplay=!1};h.pause=function(){this.autoplay=!1;this.xf||(this.zd.stop(),this.xf=!0,this.Z("timeupdate"),this.Z("pause"))};
h.load=function(){this.readyState=0;this.xf=!0;this.Z("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.o;a.j.push(new pQ(this.duration));a.length=a.j.length;this.Z("loadedmetadata");0<this.currentTime&&this.Z("timeupdate");this.Z("loadeddata");this.Z("canplay");this.Z("canplaythrough");this.Z("progress");this.playbackRate=this.Uw};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.Z("seeking");this.currentTime=c;this.Z("seeked");this.Dq();break;case "duration":this.duration=Number(b);this.Z("durationchange");break;case "volume":this.volume=Number(b),this.Z("volumechange")}};h.Dq=function(){var a=K()-this.wi,b=this.currentTime+a/1E3;this.wi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.Z("timeupdate");this.currentTime==this.duration&&(this.vo=this.xf=!0,this.zd.stop(),this.Z("ended"))};
h.S=function(){this.zd&&this.zd.dispose();this.j.dispose()};h.VA=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.Vi&&(this.Vi.innerText=b);c&&this.jg&&(this.jg.style.backgroundColor=c)};vc&&yc(8);var wQ={},L$={},M$={},xQ={};rQ.prototype.jd=null;rQ.prototype.getContent=function(){return this.content};rQ.prototype.toString=function(){return this.content};B(sQ,rQ);var uQ={};B(zQ,rQ);zQ.prototype.Sb=wQ;B(BQ,rQ);BQ.prototype.Sb={};BQ.prototype.jd=1;B(CQ,rQ);CQ.prototype.Sb=L$;CQ.prototype.jd=1;B(DQ,rQ);DQ.prototype.Sb=M$;DQ.prototype.jd=1;B(EQ,rQ);EQ.prototype.Sb={};EQ.prototype.jd=1;B(FQ,rQ);FQ.prototype.Sb={};FQ.prototype.jd=1;B(GQ,sQ);GQ.prototype.Sb=xQ;var AQ=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.jd=d);return e}}(zQ);HQ(BQ);HQ(CQ);HQ(DQ);var cR=HQ(EQ);HQ(FQ);
var JQ={},KQ={},tR=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.jd=d);return e}}(zQ),VQ=/['()]/g,XQ={},dR={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},fR={"\x00":"%00","\u0001":"%01",
"\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C",
"{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},RQ=/[\x00\x22\x27\x3c\x3e]/g,
N$=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Jfa=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,PQ=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,QQ=/</g;IQ("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Y(a.Cf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.Cf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
NQ(WQ(a.Nc))+">"+Y(a.Nc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+NQ(WQ(a.se))+">"+Y(a.se)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
IQ("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.iJ)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.kJ)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+NQ(WQ(a.Nc))+">"+Y(a.Nc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
NQ(WQ(a.se))+">"+Y(a.se)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});IQ("b","",function(a){a=a||{};var b="";a=ra("You can skip this ad in {$xSeconds}",{xSeconds:Y(a.Uf)});return b+a});
IQ("b","redesign2014q4",function(a){a=a||{};var b="";a=ra("You can skip to video in {$xSeconds}",{xSeconds:Y(a.Uf)});return b+a});B(xR,G);xR.prototype.initialize=function(){VK()&&this.o.load()};xR.prototype.S=function(){pf(this.j);xR.M.S.call(this)};xR.prototype.show=function(){var a=this.j;null!=a&&(a.style.display="block")};xR.prototype.ea=function(){var a=this.j;null!=a&&(a.style.display="none")};B(zR,fQ);var Kfa=["video/mp4","video/webm"],Lfa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},BR=[],AR=!1;h=zR.prototype;h.jq=function(a,b,c){var d=eb(a,function(a){return!ca(aQ(a.o))});if(null!==d)return d;a=Zd(a,function(a){a=D(a.j);return this.j?this.o.canPlayType(a):E(Kfa,a)},this);kb(c)||(d=PP(a,b,c));return null!=d?d:PP(a,b,[])};h.Il=function(a){this.A=a};h.load=function(a,b){null!==a&&(this.T=a,this.j?CR(this,a,b):(this.K=a,this.W=b))};h.getVideoUrl=function(){return this.T};
h.setVolume=function(a){this.ca?this.Z("volumeChange"):this.j?(a=je(100*a,0,100),this.o.setVolume(a),this.F=-1,this.Z("volumeChange")):this.F=a};h.sd=function(){return this.j?this.o.getVolume()/100:this.F};h.play=function(){if(!C(D(this.T))){if(!this.B){ER(this);var a=15E3;null!=this.A&&0<this.A.j&&(a=this.A.j);this.wa=Rd(this.Rz,a,this)}this.j?(this.Y=!1,!this.B&&this.A&&this.A.o?this.o.loadVideoByPlayerVars(this.ka):this.o.playVideo()):this.Y=!0}};h.pause=function(){this.j&&this.B&&this.o.pauseVideo()};
h.tf=function(){return this.j?2==this.o.getPlayerState(this.C):!1};h.sf=function(){return this.j?this.o.isMuted():0==this.sd()};h.jk=function(){};h.Od=function(){var a=jK.j?jK.A:window.document.getElementById(this.P);return a?HP(a):!1};h.qg=function(a){return this.j?this.o.getCurrentTime(this.C)>=a:!1};h.uf=function(a){this.j?this.o.seekTo(a,!1):this.J=a};h.getCurrentTime=function(){return this.j?this.o.getCurrentTime(this.C):-1};
h.no=function(){return this.j&&this.B?this.o.getVideoLoadedFraction(this.C)*this.o.getDuration(this.C):0};h.Nd=function(){return this.j&&this.B?this.o.getDuration(this.C):-1};h.getError=function(){return null};h.tk=function(){return Vb(cZ)};h.He=function(){return this.j?0==this.o.getPlayerState(this.C):!1};h.Sc=function(){var a=jK.j?jK.A:window.document.getElementById(this.P);return a?new qe(a.offsetWidth,a.offsetHeight):new qe(0,0)};h.oo=function(){return!1};h.mo=function(){return 1==this.qa};
h.Tw=function(){var a=this.Sc(),b=this.Od();if(a.width!=this.fa.width||a.height!=this.fa.height)!this.da&&b?this.Z("beginFullscreen"):this.da&&!b&&this.Z("endFullscreen"),this.fa=a,this.da=b};
h.ri=function(){this.$=A(this.qp,this);this.L=A(this.Kk,this);this.la=A(this.sp,this);this.ga=A(this.Sp,this);this.ca&&(this.o.addEventListener("onAdStateChange",this.L),this.o.addEventListener("onReady",this.$),this.o.addEventListener("onStateChange",this.L),this.o.addEventListener("onVolumeChange",this.la),this.o.addEventListener("showCompanionAdLoaded",this.ga));this.U=new Pd(1E3);this.N.R(this.U,"tick",this.Tw);this.U.start()};
h.vf=function(){this.ca&&(this.o.removeEventListener("onAdStateChange",this.L),this.o.removeEventListener("onReady",this.$),this.o.removeEventListener("onStateChange",this.L),this.o.removeEventListener("onVolumeChange",this.la),this.o.removeEventListener("showCompanionAdLoaded",this.ga));null!=this.U&&this.U.dispose()};
h.mv=function(){var a=this.P,b={playerVars:ec(Lfa),events:{cardstatechange:A(this.Sw,this),onError:A(this.Xz,this),onReady:A(this.qp,this),onAdStateChange:A(this.Kk,this),onStateChange:A(this.Kk,this),onVolumeChange:A(this.sp,this),showCompanionAdLoaded:A(this.Sp,this)}},c=t("YT");this.o=null!=c&&null!=c.Player?new c.Player(a,b):null};h.Xz=function(){this.Z("error")};
h.qp=function(){this.j=!0;this.G&&this.Ik(this.G.videoId,this.G.ue,this.G.Rf,this.G.Uh);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.K&&(CR(this,this.K,this.W),this.W=this.K=null);-1!=this.J&&(this.uf(this.J),this.J=-1);this.Y&&this.play()};h.Sw=function(a){this.qa=a.data;this.Z("cardsStateChange")};
h.Kk=function(a){switch(a.data){case 0:this.B?this.Z("end"):this.Z("error");break;case 1:this.B||(ER(this),this.B=!0,this.H=0,this.Z("start"));this.Z("play");DR(this);this.D=new Pd(100);this.N.R(this.D,"tick",this.ep);this.D.start();break;case 2:this.Z("pause"),DR(this)}};h.sp=function(){this.Z("volumeChange")};h.Sp=function(){this.Z("showCompanionAdLoaded")};
h.ep=function(){if(uG||eL()){if(1.5<this.getCurrentTime()-this.H){this.j&&this.o.seekTo(this.H,!0);return}this.getCurrentTime()>this.H&&(this.H=this.getCurrentTime())}this.Z("timeUpdate")};h.Rz=function(){this.Z("mediaLoadTimeout")};h.Ik=function(a,b,c,d){if(b||c)this.j?this.o.addInfoCardXml(a,b,c,d):this.G={videoId:a,ue:b,Rf:c,Uh:d}};h.ff=function(){if(!this.j)return null;var a=this.o.getVideoData();return a?a.cpn:null};h.El=function(a){this.j&&aQ(this.getVideoUrl())&&this.o.sendVideoStatsEngageEvent(a)};
h.S=function(){DR(this);ER(this);this.vf();this.j=!1;this.N.dispose();this.J=-1;this.W=null;this.Y=!1;this.K=null;this.F=-1;this.$=this.o=this.A=null;this.B=!1;this.T="";zR.M.S.call(this)};q("onYouTubeIframeAPIReady",function(){AR=!0;F(BR,function(a){a()});lb(BR)},window);B(FR,J);FR.prototype.o=!1;FR.prototype.connect=function(){for(this.o=!0;!kb(this.A);){var a=this.A.shift();this.sendMessage(a.name,a.type,a.data)}};FR.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.A.push({name:a,type:b,data:c})};B(GR,jc);GR.prototype.getOrigin=function(){return this.B};GR.prototype.toString=function(){return""};B(HR,FR);HR.prototype.sendMessage=function(a,b,c){null!=this.Hc&&null!=this.Hc.postMessage&&this.Hc.postMessage(JR(this,a,b,c),"*");null!=this.Hc&&null==this.Hc.postMessage&&jL(iL.getInstance(),11)};HR.prototype.S=function(){this.C.dispose();HR.M.S.call(this)};HR.prototype.receive=function(a){a=a.j;var b=IR(a.data);if(KR(this,b)){if(null==this.Hc)this.Hc=a.source,this.o||this.connect();else if(this.Hc!=a.source)return;KR(this,b)&&this.Z(new GR(b.name,b.type,b.data||{},b.sid,a.origin))}};B(LR,J);LR.prototype.send=function(a){var b=a.A;this.j.hasOwnProperty(b)&&this.j[b].send(a.type,a.nc,a.ud)};LR.prototype.S=function(){this.o.dispose();for(var a in this.j)Mb(this.j[a]);LR.M.S.call(this)};LR.prototype.C=function(a){a=a.j;var b=IR(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.j.hasOwnProperty(c)){var d=b.sid;MR(this,c,d,a.source);this.Z(new NR(b.name,b.type,b.data||{},d,a.origin,c))}}};B(NR,GR);B(OR,zm);
OR.prototype.D=function(a){var b=a.getOrigin(),c=Hg("//imasdk.googleapis.com"),b=Hg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)MR(this.j,a.A,a.eo,ef().parent),null!=this.j&&this.j.send(a);else if(c=a.ud,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.nc,"isGptPresent"==c?d=PR():"isConsolePresent"==c&&(d=null!=QR());else if(PR())if("pubads"==b||"companionAds"==b){d=a.nc;var e,f=ef().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(k){}d=e}else if("console"==
b){if(f=a.nc,e=QR(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){d=a.nc;e=ef();if(E(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],d)&&(b=e[d],"googleSetCompanionAdContents"==d&&jL(iL.getInstance(),40,{type:"gptProxy"},!0),null!=b))try{f=b.apply(e,c)}catch(k){}d=f}n(d)&&(a.ud.returnValue=d,this.A.send(a))}};OR.prototype.C=function(a){this.A.send(a)};RR.prototype.isPharma=function(){return this.H};var TR={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Qa(" ",c-a.length):Qa(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var f;f=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if((0,window.isNaN)(c)||d.length>=c)return d;d=(0,window.isNaN)(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Qa(" ",a):f+
Qa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,f,k,l){return TR.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};TR.i=TR.d;TR.u=TR.d;B(UR,J);h=UR.prototype;h.S=function(){this.B.dispose();null!==this.A&&(this.A.dispose(),this.A=null);tg(this.D.Rb(!1),function(a){a.dispose()});this.D.clear();pf(this.o);UR.M.S.call(this)};
h.$v=function(a){var b=a.ud,c=Zf(this.o),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.nc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!yA||ZK()||0==window.document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
h.pw=function(a){var b=a.ud,c=Zf(this.o),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.nc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,WR(this,b.touches),WR(this,b.targetTouches),WR(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
h.lw=function(a){if(null!=this.j){var b=a.ud;switch(a.nc){case "startTracking":this.j.ri();break;case "stopTracking":this.j.vf();break;case "exitFullscreen":this.j.jk();break;case "play":this.j.play();break;case "pause":this.j.pause();break;case "load":this.j.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.j.uf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Il(new RR(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma))}}};
h.UA=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.He();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.j.getCurrentTime();b.duration=
this.j.Nd();break;case "volumeChange":a="volumeChange";b.volume=this.j.sd();break;default:return}this.C.send("videoDisplay",a,b)};h.Xv=function(a){switch(a.nc){case "showVideo":null!=this.A?XP(this.A):(this.A=new UP,this.B.R(this.A,"click",this.RA));VP(this.A,YR(this.F));a=this.F;null!=a.j&&a.j.show();break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.F.ea()}};h.RA=function(){this.C.send("displayContainer","videoClick")};
h.Kv=function(){tg(this.D.Rb(!1),function(a){a.Hc=yf(this.o);a.connect()},this);this.G=!0};XR.prototype.initialize=function(){null!=this.j&&this.j.initialize()};XR.prototype.destroy=function(){Mb(this.j);Mb(this.F);Mb(this.D);pf(this.o)};XR.prototype.ea=function(){null!=this.j&&this.j.ea()};XR.prototype.setSize=function(a,b){var c=this.o;null!=c&&(-1==a?(c.style.right=0,c.style.left=0):c.style.width=a+"px",-1==b?(c.style.bottom=0,c.style.top=0):c.style.height=b+"px");null!=this.F&&(c=this.F,c.o.width=-1==a?"100%":a,c.o.height=-1==b?"100%":b)};var $R="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");B(aS,J);B(bS,aS);bS.prototype.start=function(){this.za.start()};bS.prototype.stop=function(){this.za.stop()};bS.prototype.S=function(){bS.M.S.call(this);this.o.dispose();this.za.dispose()};bS.prototype.A=function(){if("currentTime"in this.j&&!(0,window.isNaN)(this.j.currentTime)){var a=this.currentTime;this.currentTime=this.j.currentTime;a!=this.currentTime&&this.Z(new jc("currentTimeUpdate"))}else this.Z(new jc("contentWrapperError")),this.stop()};cS.prototype.reset=function(){this.j=0;this.o=null};dS.prototype.reset=function(){this.o=this.j=null};var tS=new eS;eS.prototype.clear=function(){this.j=fS();this.A=this.G=this.B=null;this.D=fS();this.o=null;this.U=this.J=this.K="";this.F=this.N=this.C=null};B(hS,J);hS.prototype.o=null;hS.prototype.S=function(){delete this.j;jS(this);Zc(this.o);hS.M.S.call(this)};hS.prototype.C=function(){iS(this)&&(jS(this),Zc(this.o),this.o=null,this.A=!0,this.Z("ifload"))};B(kS,J);B(lS,jc);lS.prototype.getError=function(){return this.B};mS.prototype.getContent=function(){return this.C};mS.prototype.clone=function(){var a=new mS(this.F,this.D),b=this.A,c=this.o,d=this.j,e=this.B;a.C=this.C;a.A=b;a.o=c;a.j=d;a.B=e||[];return a};B(oS,kS);aa(oS);h=oS.prototype;h.S=function(){this.o&&this.o.dispose();oS.M.S.call(this)};h.initialize=function(){if(!this.B){var a;var b=Hf(new Ue);try{t("googletag"),pS([b,b.top]),a=!0}catch(c){a=!1}a?AS(this):(this.B=!0,this.A="not_available")}};h.setVideoContent=function(a,b){var c=yS(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};h.up=function(){0<this.D&&K()>=this.D?(this.B=!0,zS(this),BS(this)):AS(this)};
h.JB=function(a){var b=P(a.adSizes,function(a){return new qe(a.adWidth,a.adHeight)});return new mS(a.slotId,b)};h.Mu=function(a){var b={};b.slotId=a.F;b.adContent=a.getContent();b.adWidth=a.A;b.adHeight=a.o;b.friendlyIframeRendering=a.j;vK(rK(),9419278)&&(b.onAdContentSet=A(this.Fy,this,a));return b};
h.Fy=function(a,b){var c;if(a.j)c=b.querySelector("iframe");else{var d=tf(b);d&&(c=tf(d))}if(c&&"IFRAME"==c.tagName)if(d=new hS(c,!0),d.A)CS(this,a,c);else{var e=c;Xc(d,"ifload",function(){CS(this,a,e)},!1,this)}};h.Ey=function(a){this.Z(new lS("companion_click",null,a))};h.sendImpressionUrls=function(a){MK(this.impressionUrls,a)};B(DS,jc);DS.prototype.getError=function(){return this.A};B(ES,jc);var baa={IMAGE:"Image",Dt:"Flash",ALL:"All"},aaa={HTML:"Html",IFRAME:"IFrame",STATIC:"Static",ALL:"All"},caa={RG:"IgnoreSize",OH:"SelectExactMatch",PH:"SelectNearMatch"},daa={uG:"DisallowResize",KH:"ResizeSmaller"};B(SS,O);SS.prototype.toString=function(){return US(this,SS.M.toString.call(this))};SS.prototype.Sn=function(){return""};SS.prototype.hf=function(){return""};SS.prototype.clone=function(){return new SS(this.toString())};var naa=["ai","sigh"];oT.prototype.getType=function(){return this.A};B(pT,oT);nT.prototype.isEmpty=function(){return this.j.isEmpty()};B(zT,xT);AT.prototype.parse=function(a){a=tf(a);var b=dT(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw OK(Bfa);a=a.getAttribute("offset");a=wT(a);if("skippable"==c&&null==a)throw OK(Afa);return new zT(c,a)};B(BT,xT);B(CT,xT);B(DT,xT);ET.prototype.Pk=function(){return null};ET.prototype.Vg=function(a){this.fa=a};ET.prototype.getAd=function(){return this.fa};ET.prototype.P=function(){for(var a=[this],b=this.fa.j;b;){var c=HT(this,b)||HT(this,b,!0);null!=c&&a.push(c);b=b.j}return a};B(IT,ET);h=IT.prototype;h.getContent=function(){return Af(this.Jd())};h.Fg=function(){return!1};h.Qk=function(){return this.Fg()?Af(this.Jd(!0)):""};h.getContentType=function(){return this.da};h.Vb=function(){return this.la};h.getWidth=function(){return this.Vb().width};h.getHeight=function(){return this.Vb().height};h.Pk=function(){return"VPAID"==this.G?this.B:null};h.Tc=function(){return this.N};KT.prototype.getWidth=function(){return this.D};KT.prototype.getHeight=function(){return this.C};B(LT,ET);LT.prototype.Tc=function(){return this.A};LT.prototype.getMediaUrl=function(a){var b="";Gh(this.J,function(c){var d=c.o;return!C(D(a))&&a!=c.j||null==d||C(D(d))?!1:(b=d,!0)},this);return b};LT.prototype.Pk=function(){var a=eb(this.J,function(a){return!C(D(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.A||"surveys"==a.A)});return null!=a?a.o:null};B(NT,G);NT.prototype.F=function(){this.C=K()};NT.prototype.H=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.D);this.o&2&&c.push("nb="+this.B.get(b));if(this.o&8){var d=Zf(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.C&&c.push("clkt="+(K()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};NT.prototype.G=function(){this.D++};
NT.prototype.S=function(){NT.M.S.call(this);this.j.dispose()};var taa=vc?'javascript:""':"about:blank";B(OT,IT);OT.prototype.D=function(a){null==this.A||C(D(this.Tc()))||(this.A.R(a,"click",this.L),this.Y.push(a))};OT.prototype.Jd=function(a){a?(null==this.W&&(this.W=this.we(a),mf(this.W,TT(this))),a=this.W):(null==this.o&&(this.o=this.we(),mf(this.o,TT(this))),a=this.o);null!=this.A&&this.A.R(a,"creativeview",this.T);return a};OT.prototype.Mn=function(){return 2};
OT.prototype.P=function(){var a=[this],b;for(b=this.getAd().j;b;){var c=this.C?HT(this,b)||HT(this,b,!0):UT(this,b)||UT(this,b,!0);null!=c&&a.push(c);b=b.j}return a};h=VT.prototype;h.getContentType=function(){var a=this.o,b="";if(null===a)return b;if(a instanceof LT)a=a.ga,null===a||(b=D(a.j));else if(a instanceof OT)switch(a.Ca){case "IFrame":case "Html":case "Static":b=D(a.$)}return b};h.getExtension=function(a){return this.H.get(a)};h.kx=function(){return this.P};h.getWidth=function(){return WT(this)?0:this.T.width};h.getHeight=function(){return WT(this)?0:this.T.height};h.toString=function(){return"Ad: "+this.Ca};B(RU,J);RU.prototype.nn=function(){return!0};RU.prototype.Be=function(){return null};B(TU,RU);h=TU.prototype;h.S=function(){this.destroy();TU.M.S.call(this)};h.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;F(this.A,function(a){nS(a)},this);this.o=null};h.nn=function(){return this.D};h.oA=function(){null!=this.F&&(this.F.stop(),this.F.dispose(),this.F=null);if(null!=this.j){var a=qS(this.j);null!=a&&(this.A=a)}this.G=!0;null!=this.B&&VU(this);this.Z(new jc("initialized"))};h.Gy=function(a){YU(this,a.getError())};
h.Ay=function(a){if(null!=a.A){var b=a.A;"companion_slot_init"==a.type?id(function(){null!=this.o&&this.o.Z(new ES("companion_impression"))},this):"companion_click"==a.type&&(Iaa(b.B),null!=this.o&&this.o.Z(new ES("companion_click")))}};h.Be=function(){return this.j};h=ZU.prototype;h.mk=function(){return YR(this.j)};h.ci=function(){return this.j.A};h.Ce=function(){return this.j.A};h.mi=function(){var a=this.j.D;return null!=a?a:new zR};h.Dg=function(){var a=this.j;null!=a.j&&a.j.show()};h.Nf=function(){};h.fk=function(){return null!=this.j.B};h.Gk=function(){return this.j.C};h.Hk=function(){return!1};h.ni=function(){return this.j.G};h.setSize=function(a,b){this.j.setSize(a,b)};h.ea=function(){};B($U,jc);B(bV,jc);aa(cV);var Oaa=/iu\=\/(\d+)\//;cV.prototype.start=function(a){this.o&&this.A.set(a,K())};cV.prototype.end=function(a,b){if(this.o&&wg(this.A,a)){var c=K()-this.A.get(a),d=dV(this,a,c,b);JK(d);this.A.remove(a);this.B+=c}};cV.prototype.sendMessage=function(a,b,c){this.o&&(a=dV(this,a,b,c),JK(a))};eV.prototype.start=function(a,b){this.C=a;this.F=b;Qaa(this);this.D.G?this.H():Fm(this.o,this.D,"initialized",this.H,this)};eV.prototype.H=function(){var a=this.D.Be(),b;b=a.B?"retrieved"!=a.A?void 0:a.F:void 0;a=rS(a);null!=b&&(this.B.D=b);null!=a&&(this.B.F=a);Paa(this)};B(gV,J);var iV=null;gV.prototype.destroy=function(){this.D.ya(this.o,"activityMonitor",this.G);this.o=null};
gV.prototype.G=function(a){var b=a.ud,c=b.engagementString;switch(a.nc){case "appStateChanged":CP(b.appState,b.nativeTime);break;case "externalActivityEvent":lV(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":jV(b.queryId,b.viewabilityString);break;case "pageSignals":this.F=b.pageSignals;break;case "viewableImpression":kV(b.queryId,b.viewabilityString);break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.j.get(a);d&&(this.j.remove(a),d(b.viewabilityString,
c));break;case "engagement":if(a=b.eventId,window.clearTimeout(a),d=this.j.get(a))this.j.remove(a),d(c)}};q("ima.bridge.getNativeViewability",function(a,b){hV();b({})},void 0);q("ima.bridge.triggerViewEvent",kV,void 0);q("ima.bridge.triggerMeasurableEvent",jV,void 0);q("ima.bridge.triggerExternalActivityEvent",lV,void 0);B(oV,Uaa);B(rV,mV);rV.prototype.A=function(){return new nV(this.j,null,Waa(this))};B(wV,xT);wV.prototype.isPharma=function(){return this.F};xV.prototype.parse=function(a){var b;eT(a,"config",function(a){null!=b||(b=Zaa(this,a))},this);return b};yV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,p=!1;F(rf(a),function(a){switch(a.nodeName){case "AttributionText":c=dT(a);break;case "AttributionUrl":d=dT(a);break;case "ConversionUrl":f=dT(a);break;case "CustomTracking":null!=rf(a)&&(e=uT(a));break;case "is_pharma":a=cT(a,"bool");p=hT(D(a));break;case "CheckedEvents":a=rf(a);b=P(a,function(a){return cT(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":dT(a);break;case "VisibleUrl":k=dT(a);break;case "UI":l=
(new xV).parse(a);break;case "ShowYouTubeAnnotations":var v=dT(a);m=hT(D(v),!1);case "QueryId":dT(a)}},this);null!=l||(l=new vV);return new wV(c,d,f,0,k,l,m,0,p,e,b)};zV.prototype.parse=function(a){if(null==a)return null;var b;F(rf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=rf(a)&&(b=uT(a))}});a=null;null!=b&&0<rT(b,"skip").length&&(a="Generic");return new BT(a,b)};AV.prototype.parse=function(a){if(null==a)return null;var b,c;F(rf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=dT(a);break;case "CustomTracking":null!=rf(a)&&(c=uT(a))}});return new BT(b,c)};BV.prototype.parse=function(a){if(null==a)return null;var b;F(rf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=rf(a)&&(b=uT(a))}},this);return new xT(b)};var O$,P$,Q$,R$,SV,VV,S$,T$,U$,V$,W$,X$,WV,Y$;FV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};GV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};GV.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};var Mfa=new HV,Nfa=new MV,Ofa=new KV,Pfa=new LV,Qfa=new NV,Rfa=new OV,Z$=new IV,Sfa=new QV;HV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};IV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};var bba=new PV;
JV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};JV.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};KV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};var Tfa=new PV;LV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};var Ufa=new PV,Vfa=new PV,Wfa=new PV;MV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};NV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};OV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};
PV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};QV.prototype.equals=function(a){return EV(this.j,a?a.j:null)};var Xfa=new PV;var $V;
$V={ad_card:{attribution_position:{POSITION_TOP_LEFT:1,POSITION_BOTTOM_LEFT:0,POSITION_BOTTOM_RIGHT:3,POSITION_TOP_RIGHT:2}},action:{type:{TYPE_COLLAPSE:17,TYPE_FUNDRAISING:10,TYPE_ATTRIBUTION:5,TYPE_IRDB:8,TYPE_PLAYLIST:7,TYPE_VOTE:18,TYPE_INLINE_APPLICATION_STORE:19,TYPE_HELPOUTS:15,TYPE_INTERNAL:13,TYPE_HEADLINE:1,TYPE_RESULTS:11,TYPE_MERCH:9,TYPE_RESPONSE:12,TYPE_CHANNEL:2,TYPE_VIDEO:3,TYPE_EXTERNAL:16,TYPE_SUBSCRIPTION:6,TYPE_NONE:0,TYPE_LETTERMAN:14,TYPE_APPLICATION_STORE:4}},event:{type:{TYPE_IMPRESSION:1,TYPE_ACTION_ENDCAP:9,
TYPE_DISMISS:4,TYPE_IMPRESSION_GALLERY:7,TYPE_DISMISS_ENDCAP:11,TYPE_HEADLINE_CLICK:5,TYPE_COLLAPSE:3,TYPE_ACTION:6,TYPE_EXPAND:2,TYPE_IMPRESSION_ENDCAP:8,TYPE_NONE:0,TYPE_COLLAPSE_ENDCAP:10}},card:{type:{TYPE_VOTE:3,TYPE_WEBSITE:4,TYPE_APP:2,TYPE_LOCATION:5,TYPE_PRODUCT:1,TYPE_NONE:0},prominence:{PROMINENCE_FEATURE:2,PROMINENCE_NONE:0,PROMINENCE_HIGHLIGHT:1}}};B(XV,xT);YV.prototype.parse=function(a){var b=pz(a);if(C(D(b)))return null;if(this.j){var c=ZV;if(!O$){var d={};O$={Ib:d};if(!P$){var e={};P$={Ib:e};e.type={type:"e",label:1,ma:0};if(!Q$){var f={};Q$={Ib:f};f.major_version={type:"i",label:1,ma:0};f.minor_version={type:"i",label:1,ma:0}}e.version={type:"m",label:1,ma:Mfa,ra:Q$};e.priority={type:"i",label:1,ma:0};e.start_time_ms={type:"j",label:1,ma:"0"};e.end_time_ms={type:"j",label:1,ma:""};e.action={type:"m",label:3,ra:RV()};e.event={type:"m",label:3,ra:UV()};
V$||(f={},V$={Ib:f},f.headline={type:"s",label:1,ma:""},f.description={type:"s",label:1,ma:""},f.attribution_icon_url={type:"s",label:1,ma:""},f.skippable_seconds={type:"i",label:1,ma:0},f.attribution_position={type:"e",label:1,ma:0});e.ad_card={type:"m",label:1,ma:Nfa,ra:V$};if(!S$){f={};S$={Ib:f};f.headline={type:"s",label:1,ma:""};f.image={type:"m",label:1,ma:Tfa,ra:TV()};f.description={type:"s",label:1,ma:""};f.rating={type:"f",label:1,ma:0};f.review_text={type:"s",label:1,ma:""};if(!T$){var k=
{};T$={Ib:k};k.merchant={type:"s",label:1,ma:""};k.price={type:"s",label:1,ma:""};k.shipping={type:"s",label:1,ma:""};k.shipping_tax={type:"s",label:1,ma:""};k.condition={type:"s",label:1,ma:""};k.unit_price={type:"s",label:1,ma:""};k.energy_label={type:"s",label:1,ma:""};k.description={type:"s",label:1,ma:""};k.rating={type:"f",label:1,ma:0};k.review_text={type:"s",label:1,ma:""};k.action={type:"m",label:3,ra:RV()};k.event={type:"m",label:3,ra:UV()}}f.offer={type:"m",label:3,ra:T$}}e.product_card=
{type:"m",label:1,ma:Ofa,ra:S$};U$||(f={},U$={Ib:f},f.app_id={type:"s",label:1,ma:""},f.app_name={type:"s",label:1,ma:""},f.icon={type:"m",label:1,ma:Ufa,ra:TV()},f.price={type:"s",label:1,ma:""},f.rating_image={type:"s",label:1,ma:""},f.review_count={type:"i",label:1,ma:0},f.app_store_logo={type:"m",label:1,ma:Vfa,ra:TV()},f.button_text={type:"s",label:1,ma:""},f.screenshots={type:"m",label:3,ra:TV()},f.rating={type:"f",label:1,ma:0},f.back_button_text={type:"s",label:1,ma:""},f.screenshots_text=
{type:"s",label:1,ma:""},f.cover_photo={type:"m",label:1,ma:Wfa,ra:TV()});e.app_card={type:"m",label:1,ma:Pfa,ra:U$};e.prominence={type:"e",label:1,ma:0};W$||(f={},W$={Ib:f},f.call_to_action_text={type:"s",label:1,ma:""});e.social_card={type:"m",label:1,ma:Qfa,ra:W$};X$||(f={},X$={Ib:f},f.vote_line_1={type:"s",label:1,ma:""},f.vote_line_2={type:"s",label:1,ma:""},f.confirm_line_1={type:"s",label:1,ma:""},f.confirm_line_2={type:"s",label:1,ma:""});e.vote_card={type:"m",label:1,ma:Rfa,ra:X$};e.sponsored=
{type:"b",label:1,ma:!1};e.teaser_text={type:"s",label:1,ma:""};R$||(f={},R$={Ib:f},f.hide_in_drawer={type:"b",label:1,ma:!1},f.show_in_endcap={type:"b",label:1,ma:!1},f.show_in_companion_mobile={type:"b",label:1,ma:!1},f.show_in_cta={type:"b",label:1,ma:!1});e.placement={type:"m",label:1,ma:Z$,ra:R$};Y$||(f={},Y$={Ib:f},f.latitude_e6={type:"i",label:1,ma:0},f.longitude_e6={type:"i",label:1,ma:0},f.address={type:"s",label:1,ma:""},f.image={type:"m",label:1,ma:Xfa,ra:TV()},f.headline={type:"s",label:1,
ma:""});e.location_card={type:"m",label:1,ma:Sfa,ra:Y$}}d.card={type:"m",label:3,ra:P$};d.event={type:"m",label:3,ra:UV()}}a=c(this,a,O$);a=new FV(a);c=new nT;for(d=0;d<DV(a.j,"card");d++)if(e=d,e=new GV(CV(a.j,"card")[e]),f=e.j.placement,f=(f?new IV(f):Z$).j.show_in_endcap,null!=f&&f)for(f=0;f<DV(e.j,"event");f++){var l,k=f;l=new JV(CV(e.j,"event")[k]);k=null;switch(l.getType()){case 9:k="video_card_endcap_action";break;case 10:k="video_card_endcap_collapse";break;case 11:k="video_card_endcap_dismiss";
break;case 8:k="video_card_endcap_impression"}k&&(l=l.j.base_url,sT(c,k,null!=l?l:""))}return new XV(b,0,c)}return new XV(b)};B(aW,xT);aW.prototype.ld=function(){return this.o};bW.prototype.C=function(a){var b={};F(this.o,function(a){b[a]=[]});var c=new RegExp("^"+this.A);F(rf(a),function(a){"config"!=a.nodeName||F(rf(a),function(a){"params"!=a.nodeName||F(rf(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=dT(a));null!=a.getAttribute("learn_more")&&(e=e+"|");E(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);return b};B(dW,xT);B(fW,bW);fW.prototype.parse=function(a){if(null==a)return null;a=cW(this,a);var b=a.UI;return new dW(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};fW.prototype.B=function(a){var b=[],c=0;F(rf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;F(rf(a),function(a){switch(a.nodeName){case "DisplayName":e=dT(a);break;case "URL":f=dT(a)}},this);null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);return b};B(gW,xT);hW.prototype.j={uu:"Siub",tu:"Scs",Qs:"Bgub",Ps:"Bgp"};hW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(rf(a),function(a){switch(a.nodeName){case this.j.uu:b=dT(a);break;case this.j.tu:c=dT(a);break;case this.j.Qs:d=dT(a);break;case this.j.Ps:e=dT(a)}},this);return b&&c&&d&&e?new gW:null};B(iW,xT);jW.prototype.j={zu:"TEMPLATE_PARAMETERS",Au:"TEMPLATE_URL"};jW.prototype.parse=function(a){if(null==a)return null;F(rf(a),function(a){switch(a.nodeName){case this.j.zu:cba(this,a)}},this);return new iW};B(kW,xT);lW.prototype.j={St:"Line1",Tt:"Line2",Ut:"Line3",Ot:"ImageUrl"};lW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(rf(a),function(a){switch(a.nodeName){case this.j.St:b=dT(a,!0);break;case this.j.Tt:c=dT(a,!0);break;case this.j.Ut:d=dT(a,!0);break;case this.j.Ot:e=dT(a)}},this);return new kW(b,c,d,e)};B(mW,xT);nW.prototype.parse=function(a){if(null==a)return null;var b;F(rf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(D(a))||(b=a)}},this);return new mW(b)};B(oW,xT);B(pW,bW);var Yfa=["menu","got_it"],Zfa=[["generic_message_left","generic_message_hypertext","generic_message_right"],["unsubscribe_visible_link","unsubscribe_legal","unsubscribe_redirect_url","unsubscribe_continue","unsubscribe_cancel"]];
pW.prototype.parse=function(a){if(null==a)return null;a=cW(this,a);var b=a.UI;if(!qW(b,Yfa))return null;var c,d=!0,e=!1;F(Zfa,function(a){dba(b,a)&&(qW(b,a)?e=!0:d=!1)});var f=b.targeting_reason;if(!d||!e||0==f.length)return null;for(var k=0;k<f.length;k++)Ha(f[k],"|")&&(f[k]+="https://support.google.com/ads/answer/1634057#Across+Google+products+and+services|"+b.learn_more);null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new oW(b.menu,
b.targeting_reason,b.got_it,a.CustomTracking,c,b.unsubscribe_visible_link,b.unsubscribe_legal,b.control,b.unsubscribe_redirect_url,b.unsubscribe_continue,b.unsubscribe_cancel)};rW.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ya(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new CT(a)};B(sW,xT);tW.prototype.parse=function(a){return null!=a?new sW:null};uW.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new DT(a)};h=vW.prototype;h.getContent=function(){return this.j.getContent()};h.getContentType=function(){return this.j.getContentType()};h.getWidth=function(){return this.j.getWidth()};h.getHeight=function(){return this.j.getHeight()};h.getAd=function(){return this.j.getAd()};h.Vg=function(a){this.j.Vg(a);F(this.o,function(b){b.Vg(a)},this)};B(wW,OT);wW.prototype.we=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:DK(D(this.B)),width:this.getWidth(),height:this.getHeight(),Db:this.Tc(),bf:this.un||!a},a=tQ(gba,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.U;F(a.getElementsByTagName("object"),this.D,this);F(a.getElementsByTagName("a"),this.D,this);return a};B(xW,OT);xW.prototype.we=function(){var a=N("div");a.innerHTML=this.B;this.D(a);return ST(this,a)};B(yW,OT);yW.prototype.getContent=function(){var a=yW.M.getContent.call(this);this.C&&(a=a.replace('src=""','src="'+DK(D(this.B))+'"'));return a};yW.prototype.Qk=function(){var a=yW.M.Qk.call(this);this.C&&(a=a.replace('src=""','src="'+DK(D(this.B))+'"'));return a};yW.prototype.we=function(a){var b="";this.C||(b=DK(D(this.B)));b={id:this.U,url:b,Db:this.Tc(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=tQ(a?iba:hba,b);F(a.getElementsByTagName("a"),this.D,this);return a};
yW.prototype.Fg=function(){return!0};B(zW,OT);h=zW.prototype;h.Vb=function(){return new qe(this.getWidth(),this.getHeight())};h.getHeight=function(){return 63};h.getWidth=function(){return null!=this.F?ig(this.F).width:0};h.Mn=function(a){return Wd(a,"text-image")?9:Wd(a,"text-ad-channel")?1:0};
h.we=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=SZ.test(xe(d,void 0))?"rtl":"ltr");d={title:d,text:c.B+" "+c.C,dir:e,Db:this.Tc()};if(c=c.o)d.image=DK(c),a=eb(a.B,function(a){return a instanceof LT}),null!=a&&(d.duration=PS(a.La));b.o&&(d.Iq=b.o);this.F=tQ(fba,d);F(this.F.getElementsByTagName("a"),this.D,this);this.F.id=this.U;this.F.style.height=this.getHeight()+"px";return this.F};B(AW,OT);AW.prototype.we=function(){var a=D(this.B);C(D(this.Tc()))||(a=new O(a),lh(a,"clickTAG",wa(this.Tc())),a=a.toString());var b=N("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.getWidth());b.setAttribute("src",DK(a));this.D(b);return ST(this,b)};DW.prototype.getContentType=function(){return null!=this.j?JT[this.j]||"Other":null};EW.prototype.Jd=function(){return this.j};EW.prototype.display=function(a){this.B=a;this.B.appendChild(this.j);a=this.j;var b=gg(this.B),b="left"==this.C?"0px":"right"==this.C?b.width-this.A.Vb().width+"px":this.C+"px",c;c=gg(this.B);c="bottom"==this.D?"0px":"top"==this.D?c.height-this.A.Vb().height+"px":c.height-this.A.Vb().height-ab(this.D)+"px";Lf(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});kg(this.j,!1)};
EW.prototype.update=function(a,b){var c=null!=this.F?lT(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?kba(this):kg(this.j,!1)};B(FW,mV);
FW.prototype.j={Fs:"Ad",Dj:"AdParameters",Hs:"AdSystem",Is:"AdTitle",FF:"Advertiser",Ls:"AltText",Ts:"ClickThrough",Us:"ClickTracking",Vs:"Companion",COMPANION_ADS:"CompanionAds",Ws:"CompanionClickThrough",Xs:"CompanionClickTracking",Zs:"Creative",oG:"CreativeExtensions",$s:"Creatives",gt:"CustomClick",kt:"Description",Fj:"Duration",ERROR:"Error",At:"Extension",Bt:"Extensions",xh:"HTMLResource",Gt:"Icon",Ht:"Icons",It:"IconClicks",Jt:"IconClickThrough",Kt:"IconClickTracking",Lt:"IconViewTracking",zh:"IFrameResource",
Ah:"Impression",INLINE:"InLine",LINEAR:"Linear",Yt:"MediaFile",Zt:"MediaFiles",du:"NonLinear",NON_LINEAR_ADS:"NonLinearAds",eu:"NonLinearClickThrough",fu:"NonLinearClickTracking",BH:"Pricing",Bh:"StaticResource",yu:"Survey",pI:"Tracking",Ij:"TrackingEvents",zI:"VAST",Bu:"VASTAdTagURI",Cu:"VideoClicks",WRAPPER:"Wrapper"};
FW.prototype.o={Gs:"adSlotID",Ks:"allowMultipleAds",vh:"apiFramework",Om:"bitrate",bt:"creativeType",jt:"delivery",Fj:"duration",EVENT:"event",Et:"followAdditionalWrappers",wt:"expandedHeight",xt:"expandedWidth",wh:"height",yh:"id",Vt:"maintainAspectRatio",Xt:"maxBitrate",au:"minBitrate",bu:"minSuggestedDuration",gu:"offset",hu:"program",lu:"required",nu:"scalable",Tm:"sequence",qu:"skipoffset",bn:"type",VERSION:"version",Du:"codec",Ch:"width",Fu:"xPosition",Gu:"yPosition"};
FW.prototype.A=function(){return new nV(this.B,mba(this),null)};B(MW,mV);MW.prototype.A=function(){return new nV(this.o,null,Fba(this))};h=QW.prototype;
h.clone=function(){var a=new QW;"auto"==this.Me?a.Me="auto":"click"==this.Me&&(a.Me="click");a.j=this.j;a.re=ec(this.re);a.o=this.o;a.C=this.C;a.wb=ec(this.wb);a.D=this.D;a.location=this.location;a.referrer=this.referrer;a.G=this.G;a.language=this.language;a.qf=this.qf;a.pf=this.pf;a.Ub=this.Ub;a.Tb=this.Tb;a.qc=this.qc;a.ji=this.ji;a.ki=this.ki;a.Ml=this.Ml;a.A=this.A;a.B=this.B;a.fh=this.fh;a.ii=this.ii;a.afcRmFallback=this.afcRmFallback;a.J=this.J;a.H=this.H;a.ef=this.ef;this.F&&(a.F=sb(this.F));
a.nd=this.nd;a.wk=this.wk;a.xk=this.xk;return a};h.re=null;h.wb=null;h.Me="unknown";h.qf=0;h.pf=0;h.Ub=0;h.Tb=0;h.ef=!1;h.qc=null;h.ji=!1;h.ki=!1;h.Ml=!0;h.nd=function(){return!1};h.wk=function(){return window.NaN};h.xk=function(){return""};h.fh=0;h.En=!0;h.ii=null;h.afcRmFallback=!1;RW.prototype.G=function(){return this.B(this.C()).toString()};RW.prototype.D=function(){var a;a=1;gL()&&(a+=4);return a};var zX={uI:"ultrahigh",LG:"high",$t:"medium"},Yba={KF:1E3,LF:1001,MF:1002,NF:1003,OF:1004,PF:1005,QF:1006},Zba={Wt:1,Ct:2},$ba={CONTENT:"content",UH:"site",VH:"site_content"};h=XW.prototype;h.Eh="high";h.Lk=!1;h.Lj=1;h.Mj=null;h.adType="video";h.adBlock=1;h.Mk=null;h.Nj=!0;h.Oj=null;h.dk=null;h.rg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.Nk=!1;h.language=null;h.so=null;h.ro=null;h.yi=1E5;h.zi=null;h.uo=null;h.to=null;h.jl=0;h.wf=null;h.Ii=null;h.Pi=null;h.Nl=null;
h.tagForChildDirectedTreatment=-1;h.url=null;h.si=null;h.Yl=null;h.Ok=null;h.im=null;h.fm=null;h.gm=null;h.hm=null;h.Tj=null;var Vba=(new Date).getTime();var Qba=[202,1009],Uba=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Tba={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://yts?.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"]};var Wba={Dt:"flash",IMAGE:"image",YH:"skippablevideo",$H:"standardvideo",aI:"staticimage",TEXT:"text",VIDEO:"video"},rX=["flash","image","staticimage"],Xba=[new qe(200,200),new qe(250,250),new qe(300,250),new qe(336,280),new qe(450,50),new qe(468,60),new qe(480,70),new qe(728,90)];B(yX,RW);var bca=["skippablevideo","standardvideo","video"];yX.prototype.F={Js:"allow",vt:"exclude",JH:"require"};yX.prototype.D=function(){var a=yX.M.D.call(this);this.j.Pi&&(a|=this.j.Pi);return a};yX.prototype.B=function(a){var b=new O("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ma();F(c,function(c){lh(b,c,a.get(c))});vK(rK(),41351083)||$g(b,"https");return b};
yX.prototype.C=function(){var a=new vg;a.set("sdkv",WW(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.j.wf?iK()?5:ta(this.j.wf,"ca-games-")?4:ta(this.j.wf,"ca-video-")?0:-1:-1);a.set("correlator",this.H.j);a.set("client",this.j.wf);iK()&&!C(D(this.j.url))?a.set("url",this.j.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.qc&&a.set("adk",this.o.qc);a.set("num_ads",AX(this));a.set("channel",cca(this));vK(rK(),41351028)||a.set("ad_type",
this.j.adType);a.set("output","xml_vast3");this.j.Lk&&a.set("adtest","on");LS&&a.set("flash",tM);pX("alternate_ad_url",this.j.Oj,a);pX("cpm",this.j.dk,a);gX(a,this.o);iK()||Ub(zX,this.j.Eh)&&a.set("adsafe",this.j.Eh);this.j.host&&(a.set("host",this.j.host),pX("ht_id",this.j.hostTierId,a),null!=this.j.A&&pX("h_ch",this.j.A.join("+"),a));pX("hl",this.j.language,a);pX("cust_age",this.j.Mk,a);pX("cust_gender",this.j.gender,a);-1!=this.j.tagForChildDirectedTreatment&&pX("tfcd",this.j.tagForChildDirectedTreatment,
a);pX("slotname",this.j.Mj,a);if(vK(rK(),41351028)){if(lX(this.j)&&(a.set("ea","0"),null!=this.o.Ub&&null!=this.o.Tb)){var b=mX(this.j,this.o.Ub,this.o.Tb,this.o.ef);a.set("image_size",b);C(b)&&(this.j.j=qX(this.j.j,this.j.adType,!0),this.j.adType=this.j.j.join("_"))}a.set("ad_type",this.j.adType)}b=xK(rK());C(D(b))||a.set("eid",b);hX(a);fX(a,this.H,this.o.C||this.j.rg);a.set("unviewed_position_start","1");b=this.j.Lj;a.set("videoad_start_delay",null!=b?b:1);UW(this,a);VW(this,a);SW(this,a);!vK(rK(),
41351028)&&lX(this.j)&&(a.set("ea","0"),null!=this.o.Ub&&null!=this.o.Tb&&a.set("image_size",mX(this.j,this.o.Ub,this.o.Tb,this.o.ef)));aca(this)&&a.set("video_format",null!=this.j.si&&iK()?this.j.si:Dl&&At(6)||D6&&At(4)||dL&&$K(hL,2.3)?43:18);b=null!=this.j.Ii?this.j.Ii:E(this.j.adType.split("_"),"text")?this.F.Js:this.F.vt;a.set("t_pyv",b);pX("min_ad_duration",this.j.jl,a);0<this.j.yi&&a.set("max_ad_duration",BX(this.j.yi,AX(this)));0<this.j.zi&&a.set("sdmax",BX(this.j.zi,AX(this)));nX(a,this.J);
iK()&&(b=aQ(this.j.rg),null!=b&&a.set("video_doc_id","yt_"+b));pX("description_url",this.j.rg,a);iK()&&(pX("lact",iX(this.o),a),pX("loeid",this.j.Ok,a),pX("lsv",this.j.Nk,a),this.j.Nj||pX("scs","false",a),pX("targeting",this.j.Nl,a),pX("video_cpm",this.j.Yl,a),pX("yt_pt",this.j.im,a),pX("ytdevice",this.j.fm,a),pX("ytdevicever",this.j.gm,a),pX("yt_vis",jX(this.o),a),pX("dbp",this.j.hm,a),pX("avo",this.j.Tj,a));null!=a.get("ms")||pX("ms",this.j.B,a);TW(a);oX(this.o,a,!1);null!=this.o.re&&pX("loc",this.o.re.page_location,
a);return a};B(CX,RW);CX.prototype.B=function(a){var b=new O(this.o.j);F(a.Ma(),function(c){C(a.get(c))?b.j.remove(c):lh(b,c,a.get(c))});vK(rK(),41351083)||$g(b,"https");return b};CX.prototype.C=function(){var a=new vg;a.set("sdkv",WW(this));VW(this,a);SW(this,a);TW(a);null!=this.o.qc&&a.set("adk",this.o.qc);return a};B(DX,RW);DX.prototype.C=function(){return null};
DX.prototype.B=function(){var a=new SS(this.o.j),b=WW(this);b&&TS(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&TS(a,"dc_sdki",[b]);(b=this.A.G)&&TS(a,"dc_submodel",[b]);null!=this.o.qc&&TS(a,"dc_adk",[this.o.qc]);b=new vg;UW(this,b);VW(this,b);SW(this,b);TW(b);wg(b,"js")&&TS(a,"dc_js",[b.get("js")]);wg(b,"msid")&&TS(a,"dc_msid",[b.get("msid")]);wg(b,"frm")&&TS(a,"dc_frm",[b.get("frm")]);wg(b,"osd")&&TS(a,"dc_osd",[b.get("osd")]);TS(a,"dcmt",["text/xml"]);wg(b,"vpa")&&TS(a,"vpa",[b.get("vpa")]);wg(b,
"mpt")&&TS(a,"mpt",[b.get("mpt")]);wg(b,"mpv")&&TS(a,"mpv",[b.get("mpv")]);vK(rK(),41351083)||$g(a,"https");return a};B(EX,RW);EX.prototype.B=function(a){a=new O(a.get("adTagUrl"));vK(rK(),41351083)||$g(a,"https");return a};EX.prototype.G=function(){var a=D(this.C().get("adTagUrl"));vK(rK(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};EX.prototype.C=function(){var a=new vg;a.set("adTagUrl",this.o.j);a.set("adsResponse",this.o.o);return a};B(FX,RW);FX.prototype.B=function(a){return new O(a.get("adTagUrl"))};FX.prototype.C=function(){var a=new vg;a.set("adTagUrl",this.o.j);a.set("adsResponse",this.o.o);return a};B(GX,RW);GX.prototype.B=function(a){var b=new O(this.o.j);F(a.Ma(),function(c){C(a.get(c))?b.j.remove(c):lh(b,c,a.get(c))});vK(rK(),41351083)||$g(b,"https");return b};
GX.prototype.C=function(){var a=new vg,b=rK(),c=xK(b);C(D(c))||a.set("eid",c);a.set("sdkv",WW(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.D);a.set("scor",this.A.j);null!=this.o.qc&&a.set("adk",this.o.qc);UW(this,a);VW(this,a);SW(this,a);TW(a);var c=kh(new O(this.o.j)),d=new XW;d.o=wX(d.o,c.get("overlay"));a.set("afvsz",mX(d,this.o.Ub,this.o.Tb,this.o.ef));c=this.A.o;null!=c&&(this.A.o=null,a.set("fbidx",c));c=this.A.N;null!=c&&a.set("ppid",c);c="null";d=this.A.B;null!=d?c=
d:HX(this.o.location)?c=this.o.location:HX(this.o.referrer)&&(c=this.o.referrer);a.set("url",c);c=this.A.G;null!=c&&a.set("submodel",c);c=this.A.F;null!=c&&(c=dca(c),a.set("ciu_szs",c));a.set("impl","");vK(b,41351073)&&a.set("unviewed_position_start","1");return a};B(IX,GX);IX.prototype.B=function(a){a=IX.M.B.call(this,a);this.H||fca(this,a);return a};B(JX,DX);JX.prototype.B=function(a){a=JX.M.B.call(this,a);this.H||hca(this,a);return a};B(KX,RW);var jca=["CPN","MT","LACT","VIS"];KX.prototype.B=function(){var a=new O(bK(this.o.j,ica(this)));vK(rK(),41351083)||$g(a,"https");return a};KX.prototype.C=function(){return new vg};PX.prototype.rd=function(){return null!=this.j&&this.j.rd()?!0:0<this.ads.length&&this.o<this.ads.length-1};PX.prototype.J=function(a,b){return this.C?0<a.length?a:b:vb(b,0,1)};PX.prototype.A=function(a,b,c){var d;if(!(d=null!=a.o)){var e=this.D;d=e.Ub||0;e=e.Tb||0;zU(a)&&!a.P?BU(a,"nonlinear")?NX(a,d,e):OX(a):BU(a,"linear")?OX(a):BU(a,"nonlinear")&&NX(a,d,e);d=null!=a.o}d?(this.F++,b(a)):(b=kb(a.B)?OK(PW):WT(a)?OK(iY):OK(Ffa),d=YW(b,a),QS(yaa(a),"rm")?b.o=!1:MK(a.Y,d),c(b))};
PX.prototype.G=function(a,b,c){var d=this.D.clone();d.o="";d.j=a.Fa;d.qc=ZR(d.j,d.ii);RX(this,a,d,b,c)};B(WX,PX);WX.prototype.rd=function(){return null!=this.j&&this.j.rd()?!0:0<this.ads.length&&this.o<this.ads.length-1&&0==this.F};WX.prototype.J=function(a,b){return b};WX.prototype.A=function(a,b,c){var d=-1,d=null==this.j?vU(a):vU(this.ads[this.o]);this.L.o=d;WX.M.A.call(this,a,b,c)};WX.prototype.G=function(a,b,c){this.L.o=-1;WX.M.G.call(this,a,b,c)};XX.prototype.fetch=function(a,b,c){C(D(a.o))?ZS(a.j)&&null!=this.j&&!this.j.G?this.j.start(a,A(function(){ZX(this,a,b,c)},this)):ZX(this,a,b,c):wca(this,a,b,c)};
XX.prototype.o=function(a,b,c,d){var e=kca(a,this.B).G(),e=KK(e,d,!0);d=a.ki&&AK(xfa,e)?"POST":"GET";oca(this.A,e,A(function(d){YX(this,d,a,b,c)},this),A(function(b,d){var e;e=8==b?OK(aY):5==b||6==b?OK(yfa):OK(zfa,d);c(e);e="third_party";VS(a.j)?e="adsense":YS(a.j)?e="dart":ZS(a.j)&&(e="xfp");e={rt:e,ec:b};jL(iL.getInstance(),18,e,!0)},this),this.D,d);yca(a)};$X.prototype.reset=function(a){this.j=a+K()};B(dY,J);var $fa={NORMAL:"normal",FULLSCREEN:"fullscreen"};B(jY,G);h=jY.prototype;h.Eg=!1;h.co=1E3;h.Lo=30;h.Mo=45E3;h.Xp=15E3;h.Jq=!1;h.bk=function(){var a=kY(this);this.j.appendChild(this.H);this.display(this.H);this.play();return a};h.ia=function(){null==this.K&&(this.K=this.bk());return this.K};h.play=function(){null==this.o&&(this.o=Rd(function(){this.Eg||(this.ea(),this.Jq=!0);this.o=null},this.Jq?this.Xp:this.Mo,this))};h.stop=function(){null!=this.o&&(Sd(this.o),this.o=null)};
h.display=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};h.show=function(){jg(this.ia(),1);null!=this.A&&(Sd(this.A),this.A=null)};h.ea=function(){jg(this.ia(),this.Lo/100);null==this.A&&(this.A=Rd(function(){this.N();this.A=null},400,this))};h.tw=function(){this.show();this.Eg=!0;this.C=Rd(function(){this.Eg&&this.stop();this.C=null},this.co,this)};h.aC=function(){null!=this.C&&(Sd(this.C),this.C=null);this.Eg&&this.play();this.Eg=!1};
h.S=function(){jY.M.S.call(this);this.stop();Mb(this.Rc)};B(lY,jY);h=lY.prototype;h.bk=function(){var a=kY(this);L(a,"ima-container-rotator");this.F=N("div");this.j.appendChild(this.F);F(this.J,function(a,c){L(a,"ima-container-highlight");var d=63/this.J.length*(c+.5)-5,e=N("div",{id:Wa(),"class":"ima-container-selector"});e.style.top=d+"px";this.Rc.R(e,"click",function(a){this.Jf(a.target)});this.P.set(e.id,a);this.D.appendChild(e)},this);this.Jf(tf(this.D));this.play();return a};
h.play=function(){null==this.za&&(this.za=new Pd(this.L),this.Rc.R(this.za,"tick",this.DB));lY.M.play.call(this);this.za.start()};h.stop=function(){null!=this.za&&this.za.stop();lY.M.stop.call(this)};h.DB=function(){var a=this.B;this.Jf((n(a.nextElementSibling)?a.nextElementSibling:uf(a.nextSibling))||tf(this.B.parentNode))};h.Jf=function(a){this.B&&Yd(this.B,"ima-container-active");L(a,"ima-container-active");var b=this.P.get(a.id);qf(b,this.F);this.B=a;this.F=b;this.display(b)};B(mY,jY);mY.prototype.ea=w;mY.prototype.bk=function(){var a=kY(this);F(this.B,function(a){L(a,"ima-container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};B(nY,Dz);h=nY.prototype;h.play=function(){if(this.gb())return!1;this.Bi();this.kc("play");this.startTime=K();this.j=1;if(qfa())return Lf(this.o,this.F),this.B=Rd(this.Qv,void 0,this),!0;this.Ll(!1);return!1};h.Qv=function(){gg(this.o);Fq(this.o,this.D);Lf(this.o,this.A);this.B=Rd(A(this.Ll,this,!1),1E3*this.C)};h.stop=function(){this.gb()&&this.Ll(!0)};h.Ll=function(a){Gq(this.o,"");Sd(this.B);Lf(this.o,this.A);this.endTime=K();this.j=0;a?this.kc("stop"):this.Wb();this.Mg()};
h.S=function(){this.stop();nY.M.S.call(this)};h.pause=function(){};B(qY,J);h=qY.prototype;h.S=function(){null!=this.K&&(this.K.dispose(),this.K=null);null!=this.L&&(this.L.dispose(),this.L=null);uY(this);null!=this.D&&(pf(this.D),this.D=null);null!=this.B&&(this.B=null);null!=this.j&&(pf(this.j),this.j=null);this.W.dispose();this.W=null;this.N.dispose();this.N=null;this.C.dispose();this.C=null;this.Y=!1;qY.M.S.call(this)};
h.update=function(a,b){this.U=b;if(!(0>=this.U||null==this.A.skipOffset||0>lT(this.A.skipOffset))){var c=lT(this.A.skipOffset);c>=this.U||3==this.o||(0>a?this.o=1:a<=c?(2!=this.o&&(sY(this,0),oY(this.D,.5,"ease-out",0,1).play(),kg(this.D,!0)),this.o=2):(3!=this.o&&(kg(this.j,!0),this.L=new nY(this.D,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.K=oY(this.j,.5,"ease-out",0,1),this.L.play(),this.K.play(),this.B.autofocus&&
this.B.focus(),this.C.R(vf(this.j),"mouseover",this.AB),this.C.R(vf(this.j),"mouseout",this.tq),this.tq()),this.o=3,this.Z("skipshown"),tY(this)&&(kg(this.H,!0),kg(this.G,!0),this.Z("video_extend_shown"))))}if(2==this.o)sY(this,a);else if(tY(this)&&!this.da){var d=20-a;0<d?(c="",d=ra("Ad will skip in {$xSeconds}",{xSeconds:Y(" "+Math.round(d))}),zf(this.G,c+d)):this.F||3!=this.o||this.F||(this.F=!0,this.Z("video_extend_auto_skipped"))}};
h.skip=function(){return null==this.A.skipOffset||3!=this.o||this.F?!1:(this.F=!0,this.Z("PUBLISHER_INVOKED_SKIP"),!0)};h.Rw=function(a){var b=a.j;3==this.o&&1==b.touches.length&&(this.ca=!0,this.la=b.touches[0].pageX,a.preventDefault())};h.Qw=function(a){var b=a.j;3==this.o&&1==b.touches.length&&this.ca&&(b=b.touches[0].pageX,this.$=this.ka-b,this.ka=b,b=this.la-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};
h.Pw=function(){this.ca=!1;if(3==this.o){var a=fg(vf(this.j));if((0,window.parseInt)(this.j.style.right,10)+4*this.$>.25*a.width&&0<this.$){kg(this.j,!1);this.F=!0;this.Z("skip");return}}this.j.style.right=0};h.SB=function(a){iK()||a.stopPropagation();3!=this.o||this.F||(this.F=!0,this.Z("skip"))};h.zv=function(a){iK()||a.stopPropagation();3!=this.o||this.F||this.da||(this.da=!0,this.Z("video_extend_clicked"),kg(this.H,!1),kg(this.G,!1))};
h.tq=function(){null==this.J&&(this.J=Rd(function(){this.Y=!0;oY(this.j,.5,"ease-in",1,.5).play();this.J=null},this.Y?5E3:15E3,this))};h.AB=function(){jg(this.j,1);uY(this)};h.setVisible=function(a){null!=this.P&&kg(this.P,a);null!=this.B&&kg(this.B,a);null!=this.H&&kg(this.H,a&&tY(this));null!=this.G&&kg(this.G,a&&tY(this))};B(vY,J);h=vY.prototype;h.show=function(){null!=this.o&&kg(this.o,!0)};h.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.A.skipOffset&&3==a.o;return a?this.B.skip():!1};h.S=function(){null!=this.o&&(pf(this.o),this.o=null);yY(this);F(this.L,function(a){XP(a)});this.L=[];this.C=null;this.A.dispose();this.A=null;this.la=!1;vY.M.S.call(this)};
h.update=function(a,b,c,d,e){this.la=!0;null!=this.o&&(null!=this.ca&&Qca(this,a,c,d,e),null!=this.U&&eg(this.U,a/c*100+"%"),null!=this.ka&&eg(this.ka,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.B&&(mT(this.j.skipOffset,c),this.B.update(a,c)),this.j.F&&0<c&&5>c-a&&L(this.P,"videoAdUiTopBarNoFade"),F(this.Aa,function(b){b.update(a,c)},this))};h.Qu=function(){this.Z("videoAuthorIconClicked")};h.Ru=function(){this.Z("videoAuthorClicked")};h.Ho=function(){this.Z("videoLearnMoreClicked")};
h.PB=function(){this.Z("videoShareClicked")};h.YB=function(){this.Z("videoTitleClicked")};h.Jw=function(a){a.preventDefault()};h.ej=function(){this.Z("click")};h.OB=function(){L(this.P,"videoAdUiTopBarTransitions")};h.lB=function(){var a=Gf(this.o,"html5-video-player"),b=this.j.C;null!=a&&(b.C=new zm(b),b.j=new J,b.j.Wg(this),b.D=a,b.vl(),b.j.Z("why_this_ad_url"));null!=this.B&&this.B.setVisible(!1)};h.gC=function(){null!=this.B&&this.B.setVisible(!0)};h=BY.prototype;
h.vl=function(){var a={heading:"",Cq:[],learnMore:"",$h:"",unsubscribe:"",control:"",mute:""};if(null!=this.o){a.heading="This ad is based on:";var b=this.o.C;if(b&&3==b.length){var c=b[1],d=b[2],b=AQ(Y(b[0])+qR()+Y(c)+AQ("</a>")+Y(d));a.$h=b}b=sb(this.o.K);a.Cq=b;for(c=0;c<b.length;c++)if("string"==typeof b[c]&&Ha(b[c],"|")){var e=b[c].split("|"),f=e[1],d=e[2],k=AQ,e=Y(e[0])+" <a class='"+OQ("videoAdUiUnsubscribeLearnMore")+"' href='";null!=f&&f.Sb===L$||null!=f&&f.Sb===M$?f=String(f).replace(N$,eR):
f instanceof Ge?(f=Ie(f),f=String(f).replace(N$,eR)):f instanceof Le?(f=Ne(f),f=String(f).replace(N$,eR)):(f=String(f),f=Jfa.test(f)?f.replace(N$,eR):"#zSoyz");d=k(e+OQ(f)+"' target='_blank'>"+Y(d)+"</a>");b[c]=d}null!=this.o.o&&(a.unsubscribe=this.o.B,a.control=this.o.A,a.$h="");a.close=this.o.H}else a.$h=pR(),b="",c=ra("Got It"),a.close=b+c;null!=this.B&&(a.mute=this.B.B);EY(this,sR,a);CY(this,"videoAdUiWhyThisAdCloseButton",this.ng);CY(this,"videoAdUiWhyThisAdControl",this.Dn);CY(this,"videoAdUiWhyThisAdMute",
this.jB);CY(this,"videoAdUiWhyThisAdUnsubscribe",this.kB);DY(this,"videoAdUiAdReasons",this.vv);DY(this,"videoAdUiWhyThisAdGenericMessage",this.Dn)};h.ng=function(){null!=this.C&&(this.C.dispose(),this.C=null);wY(this)&&null!=this.A&&(null!=this.j&&(this.j.Z("why_this_ad_got_it_url"),this.j.dispose(),this.j=null),this.A.parentElement.removeChild(this.A),this.A=null)};h.Dn=function(){null!=this.j&&this.j.Z("why_this_ad_settings_url")};h.vv=function(){null!=this.j&&this.j.Z("why_this_ad_learn_more_url")};
h.jB=function(){if(null!=this.B){this.j.Z("mute_interaction_url");var a,b=eW(this.B);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},EY(this,wR,a),CY(this,"videoAdUiUnsubscribeCancel",this.vl),CY(this,"videoAdUiUnsubscribeConfirm",this.jv);else{this.j.Z("mute_url");a={heading:this.B.A,undo:this.B.D,question:this.B.C,options:[],confirm:"SEND",cancel:"CLOSE"};for(var c=0;c<b;c++)a.options.push(this.B.o[c].label);EY(this,vR,a);CY(this,"videoAdUiMuteUndo",
this.$B);CY(this,"videoAdUiUnsubscribeConfirm",this.UB);CY(this,"videoAdUiUnsubscribeCancel",this.Th)}}};h.jv=function(){this.j.Z("mute_url");this.Th()};h.$B=function(){this.j.Z("mute_undo_url");this.ng()};h.UB=function(){if(null!=this.B){for(var a=eW(this.B),b=!1,c=0;c<a;c++){var d=Ze("videoAdUiMuteOption"+c,this.A);if(null!=d&&d.checked){b=!0;JK(this.B.o[c].url);break}}if(!b)return}this.Th()};
h.kB=function(){null!=this.o&&null!=this.o.o&&(EY(this,uR,{heading:this.o.B,message:this.o.L,control:this.o.A,cancel:this.o.D,confirm:this.o.F}),this.j.Z("why_this_ad_unsubscribe_url"),CY(this,"videoAdUiPopupBack",this.Vu),CY(this,"videoAdUiUnsubscribeCancel",this.ev),CY(this,"videoAdUiUnsubscribeConfirm",this.kv))};
h.kv=function(){kg(Ze("videoAdUiUnsubscribeConfirm",this.A),!1);kg(Ze("videoAdUiPopupBack",this.A),!1);this.F=!0;this.j.Z("why_this_ad_unsubscribe_continue_url");var a=this.o.o,a=a instanceof Ge?a:Je(a);window.open(Ie(a),"",void 0,void 0)};h.ev=function(){this.F?this.Th():(this.j.Z("why_this_ad_unsubscribe_cancel_url"),this.ng())};h.Vu=function(){this.j.Z("why_this_ad_unsubscribe_cancel_url");this.vl()};h.Th=function(){this.j.Z("MUTE_AD");this.ng()};B(HY,J);h=HY.prototype;
h.start=function(){var a=gg(this.j);if(1==this.H){var b=400>=(0,window.parseInt)(Qf(this.j,"width"),10)||400>=a.width;M(this.j,"videoAdUi-mobile",b)}else if(2==this.H){var c=tf(this.j),d=gg(c),e=65>=(a.height-d.height)/2;M(this.j,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;M(this.j,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}this.B.update(this.o,this.C);oY(this.j,this.J.j,"ease-out",0,1).play();this.o=0;JY(this);this.D.R(this.B,"skip",this.Lu)};
h.play=function(){this.F||JY(this)};h.pause=function(){this.F&&KY(this)};h.getContainer=function(){return this.j};h.getCurrentTime=function(){return this.o};h.Lu=function(){KY(this);this.L()};h.vp=function(){this.o+=.2;var a=this.C-this.o;this.B.update(this.o,this.C);if(this.G){var b=pY({Uf:IY(a)});zf(this.G,b)}this.Z("timeUpdate");0>=a&&(KY(this),this.K())};h.S=function(){this.B&&this.B.dispose();KY(this);nf(this.j);this.D.dispose();HY.M.S.call(this)};B(LY,G);LY.prototype.J=function(a,b,c){b=ec(b||{});if("timeout"==(b.viewability||"")){var d=this.G[a];null!=d&&(b.viewability=d)}null!=b.viewability&&(d=b.viewability,null!=d&&(this.j.VIEWABILITY=d));"impression"==a&&!this.H&&null!=this.D&&0<this.D.length&&(d=E(this.F,"impression"),NY(this,this.D,{},d),this.H=!0);if(Uca(this,a)){var d=E(this.F,a),e=tT(this.A,a);0<e.length&&(NY(this,e,b,d,c),this.o.set(a,!0))}this.j.VIEWABILITY="na"};B(OY,J);h=OY.prototype;h.Tg=function(){var a=jb(this.ads,this.G);-1!=a&&++a<this.ads.length?this.G=this.ads[a]:this.G=null};h.iq=function(){if(!QY(this)){if(kb(this.ads))throw QK(iY);this.G=this.ads[0];if(null==this.G.o)throw OK(iY);}};h.va=function(a){QY(this)?this.Z(new aK(a,PY(this))):this.Z(new aK(a,null))};h.By=function(){};h.ql=function(){};h.destroy=function(){jK.j&&(EP().D=null);this.dispose()};
h.S=function(){QY(this)&&(nU(this.G,null),this.G=null);Mb(this.H);this.F=this.H=null;this.ca=!1;OY.M.S.call(this)};h.Md=function(){return[]};h.getCurrentAd=function(){return this.ads[0]};h.init=function(a){$Y(this);this.pi(a);this.Aa=!0;this.Ci()};h.Ci=function(){this.va("loaded")};h.sendImpressionUrls=function(a){QY(this)&&iK()&&MK(lU(PY(this)),a)};h.oq=w;
h.Gd=function(a,b,c){if(!this.ca){if(null==a)throw QK(yR,null,"displayContainer");if(null!=c){var d=new Wj(Wb(this.o));if(!Eg(Wb(c),d.contains,d))throw QK(yR,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Cg&&(c.Cg=[]);Wca(c.Cg);fa(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);gc(d,c)}this.content=b;this.B=a;this.iq();jK.j&&(a=EP(),b=A(this.Ew,this),a.D=b);this.j=this.B.mi(Vca(this));this.ca=!0}};
h.Le=function(a){a=QS(ZT(a),"rm")?a.J:lU(a);F(a,function(a){nb(this.C.D,a)},this)};h.Xd=function(a,b){F(b,function(b){b=GT(a,b);qT(this.C.A,b)},this)};h.Mi=function(a){if(a instanceof LT){var b=MT(a);F(b.Ma(),function(a){var d=b.get(a);F(d,function(b){sT(this.C.A,a,b)},this)},this)}};h.getCurrentTime=function(){return-1};h.Ge=function(){return-1};h.rf=function(a,b,c){this.pi(c)};h.pause=w;h.resume=w;h.skip=w;
h.start=function(){$Y(this);if(!this.Aa)throw OK(SY,null,"Must call init before start.");};h.stop=function(){this.destroy()};h.jo=function(){return null!=this.volume?this.volume:0};h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&SK(this,yR,null,"volume",String(a));this.volume=a};h.pi=function(a){if(!Ub($fa,a))throw QK(yR,null,"view mode",a);this.P=a};h.getMediaUrl=function(){return null};h.ko=function(){return null};h.ff=function(){return null};
h.Ew=function(){var a=this.getCurrentTime(),b=this.Ge(),c=this.getCurrentAd();return{currentTime:a,duration:b,isVpaid:null!=c?QU(this.getCurrentAd()):!1,volume:this.jo()}};h.yB=function(a){F(rb(B$,Vb(D$)),function(b){var c=rT(a.j,b);kb(c)||this.Al(b,c)},this);Tca(this.C,a.G)};h.Al=function(a,b){F(b,function(a){var b=a.getType();sT(this.C.A,b,a.j)},this)};B(dZ,OY);h=dZ.prototype;h.start=function(){dZ.M.start.call(this);this.B.Nf();this.D=this.B.Ce();if(null!=this.D){YY(this,"show_ad");nf(this.D);var a=this.Vj();jK.j?JP(EP(),a):Raa(hV(),a);this.D.appendChild(a);this.Qh();F(this.$,function(a){a()});lb(this.$);this.U=!0}};h.rf=function(a,b,c){dZ.M.rf.call(this,a,b,c);this.Qh()};h.S=function(){Mb(this.A);this.B=this.A=null;this.U=!1;jK.j?EP().B=null:hV().A=null;null!=this.D&&(nf(this.D),this.D=null);dZ.M.S.call(this)};
h.Vj=function(){var a=oU(PY(this));if(null==a)throw a=QK(iY),fZ(this,a),a;var b=PY(this);PT(a,VY(this));QT(a,this.Tv);a.C||RT(a,pa(this.Fk,b,a));try{WY(this,b)}catch(d){throw fZ(this,d),d;}this.Le(b);var c=dX(b,this.j);this.C.j=c;b.o&&(this.Le(b),(b=b.o)&&this.Xd(b,wfa));this.Xd(a,["start"]);eZ(this,a);return this.Fh([a.Jd()])};h.lo=function(a,b){return new jY(a[0],b)};
h.Fh=function(a){null!=this.A&&this.A.stop();this.A=this.lo(a,A(this.Xh,this));a=this.A.ia();M(a,"autoalign",this.o.pn);M(a,"viewmode-fullscreen","fullscreen"==this.P);a.appendChild(this.ga);VY(this).R(a,"click",kc);(QY(this)&&zU(PY(this))||this.o.useStyledNonLinearAds)&&this.Qj(this.A.j);return a};
h.Qj=function(a){var b=VY(this);this.Y=tQ(Jca);b.R(this.Y,"click",this.jw);var c="",d=ra("Close"),c=tQ(Ica,{close:c+d});b.R(c,"click",this.hi);L(a,"extra-padding");null!=this.ka&&728<=this.ka.getWidth()&&L(a,"wide-overlay-ad");a.appendChild(c)};
h.Qh=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=gg(this.B.Ce()),f;f=gg(tf(this.A.j));if(f.width+c>e.width||f.height+d>e.height)throw c=QK(Cfa,null),fZ(this,c),d={},d.pid=cV.getInstance().j,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=oU(PY(this)).getContentType(),d.vm=this.P,jL(iL.getInstance(),38,d,!0),this.stop(),c;}};h.Tv=function(a){ZY(this,"click");kc(a)};h.hi=function(){YY(this,"close");this.Xh(!0)};
h.Fk=function(a,b){RT(b,w);this.U?this.Qg(a,b):this.$.push(A(this.Qg,this,a,b))};h.Qg=function(a){a=dX(a,this.j);this.C.j=a;ZY(this,"impression");YY(this,"creativeview");ZY(this,"start")};h.Xh=function(a){null!=this.A&&(this.A.stop(),null!=this.Y&&qf(this.Y,this.A.j),a?this.va("userClose"):this.va("autoClose"))};h.jw=function(a){kc(a);this.A.show();this.A.play();qf(this.A.j,this.Y);Rd(function(){kg(this.ga,!1)},500,this);kg(this.ga,!0);this.va("userRecall")};B(gZ,dZ);h=gZ.prototype;h.lo=function(a,b){if(this.T||null==b)b=w;var c;iK()&&this.T?c=new jY(a[0],b):1<a.length?iZ(this)||"fullscreen"==this.P?c=new mY(a):(c=new lY(a),c.L=15E3):c=new jY(a[0],b);c.co=100;this.T&&(c.Lo=30);c.Mo=45E3;c.Xp=6E3;M(c.j,"scalable",this.T);M(c.ia(),"yt-text-overlay",iK()&&this.T);return c};
h.FB=function(a){var b=a.o;null!=b?(null==this.fa&&(this.fa=a.getExtension("AdSense").B),RT(b,pa(this.Fk,a,b)),QT(b,pa(this.Uv,a,b)),"Text"==b.getContentType()&&(this.T=!0),this.N.push(b)):(b=OK(iY),b=YW(b,a),MK(kU(a),b))};h.Gd=function(a,b,c){gZ.M.Gd.call(this,a,b,c);this.o.pn=!0;a=PY(this);kb(mU(a))?iK()&&this.va("companionBackfill"):WY(this,a)};
h.Vj=function(){null==this.N&&(this.N=[],F(this.ads,this.FB,this));if(0==this.N.length)throw QK(iY);var a=[];F(this.N,function(b){PT(b,VY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.un=!0);a.push(b.Jd());uaa(b,this.fa.D)},this);if(0==a.length)throw QK(iY);Xca(this);return this.Fh(a)};h.start=function(){gZ.M.start.call(this);!this.da&&iZ(this)&&(this.da=!0,this.va("contentPauseRequested"));null!=this.J&&this.J.start();if(this.U){var a=jZ(this);kZ(33,a)}};
h.hi=function(a){gZ.M.hi.call(this,a);F(this.N,function(a){var c=dX(a.getAd(),this.j);this.C.j=c;this.Xd(a,["close"]);YY(this,"close");this.C=new LY},this)};h.Xh=function(a){gZ.M.Xh.call(this,a);iZ(this)&&(null!=this.D&&nf(this.D),this.da&&(this.da=!1,this.va("contentResumeRequested")))};h.Fh=function(a){a=gZ.M.Fh.call(this,a);if(iZ(this)){var b=OS(2);L(this.A.j,b);L(a,b)}return a};
h.Qj=function(a){if(iZ(this)){var b=vf(a);b&&((a=rf(a)[0])&&Lf(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense"),this.J=new HY(b,a.B||new vV,2,hZ(this),!0,A(this.mw,this),A(this.Bw,this)))}else gZ.M.Qj.call(this,a),b=tQ(Kca,hZ(this)),a.appendChild(b)};h.Fk=function(a,b){this.U?this.Qg(a,b):this.$.push(A(this.Qg,this,a,b));RT(b,w);this.va("impression")};
h.Qg=function(a,b){var c=dX(a,this.j);this.C.j=c;this.Le(a);this.Xd(b,["creativeview"]);YY(this,"impression");YY(this,"creativeview");ZY(this,"start");this.C=new LY};
h.Uv=function(a,b,c){c=cg(c);a=a.getExtension("AdSense");a=new O(a.A);var d=b.getWidth();(0,window.isNaN)(d)&&(d=fg(b.Jd()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=fg(b.Jd()).height);b=rK();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.P,"sdkv=h.0.0.0","eids="+xK(b)];NS()&&(c=gg(this.B.Ce()),d=this.J?Sca(this.J):new ne(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));IK(a,"elementclick",b);F(this.N,function(a){var b=dX(a.getAd(),this.j);this.C.j=b;eZ(this,
a);YY(this,"click");this.C=new LY},this);this.va("click")};h.pi=function(a){this.P!=a&&(gZ.M.pi.call(this,a),a=vK(rK(),41351067)||!1,null==this.D||this.J||a||(nf(this.D),a=this.Vj(),this.D.appendChild(a)),this.va("expandedChanged"))};h.Qh=function(){var a=this.J?15:0,b=this.J?vK(rK(),41351063)&&!iK()?25:65:0;gZ.M.Qh.call(this,a,b)};h.mw=function(){lZ(this,"skip")};h.Bw=function(){lZ(this,"close")};B(mZ,aK);oZ.prototype.videoCount=0;pZ.prototype.isListed=!0;B(qZ,G);qZ.prototype.show=function(a,b){rZ(this);uG&&a?(a.appendChild(this.o),this.za=Rd(A(this.j,this,b),2E3)):b()};qZ.prototype.j=function(a){this.za=0;pf(this.o);a()};qZ.prototype.S=function(){rZ(this);qZ.M.S.call(this)};B(sZ,jc);B(tZ,J);uZ.prototype.muted=function(a,b){return!this.mute&&a||0<this.volume&&0==b};var ada={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=tZ.prototype;h.S=function(){vZ(this);tZ.M.S.call(this)};h.xz=function(a){var b=a.A;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.A.queryId==this.F&&wZ(this,"measurable_impression",!0,!1)};
h.$A=function(a){a=a.A;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,wZ(this,"viewable_impression",!0,!0))};h.Yy=function(a){a=a.A;var b=D$[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,wZ(this,b,!0,!0))};
h.bx=function(){var a=this.j.Nd();if(-1!=a){this.j.qg(.25*a)&&wZ(this,"firstquartile",!0,!0);this.j.qg(.5*a)&&wZ(this,"midpoint",!0,!0);this.j.qg(.75*a)&&wZ(this,"thirdquartile",!0,!0);var b=this.B,c=this.j.getCurrentTime();0>b.B&&(oaa(b.A,a),b.B=0);for(var a=rT(b.A,"progress"),d=b.B;d<a.length;d++){var e=a[d];if(lT(e.o)>c)break;b.B=d+1;JK(e.j,b.j)}}xZ(this)};
h.ax=function(){this.J=!0;wZ(this,"impression",!0,!0);wZ(this,"creativeview",!0,!0);null!=this.K||null!=this.A||this.o.R(this.j,"click",this.Rk);null!=this.K&&(this.D=new UP,this.o.R(this.D,"click",this.Rk,!1),VP(this.D,this.K));null!=this.A&&(this.G=new UP,this.o.R(this.G,"click",this.Rk,!1),VP(this.G,this.A));wZ(this,"start",!0,!0);(this.j.sf()||0==this.j.sd())&&wZ(this,"mute",!1,!1)};
h.cx=function(){var a=this.j.sf(),b=this.j.sd(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?wZ(this,"unmute",!1,!1):this.C.muted(a,b)&&wZ(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};h.Zw=function(){this.j.He()?yZ(this):this.j.tf()&&!this.j.oo()&&(this.C.j=!0,wZ(this,"pause",!1,!1))};h.$w=function(){this.C.j&&(this.C.j=!1,wZ(this,"resume",!1,!1))};h.Vw=function(){yZ(this)};h.Rk=function(){wZ(this,"click",!1,!1)};h.Ww=function(){wZ(this,"error",!1,!1)};
h.Yw=function(){wZ(this,"mediaLoadTimeout",!1,!1)};h.Ip=function(){wZ(this,"skipshown",!0,!1)};h.hp=function(){wZ(this,"video_extend_shown",!0,!1)};h.Jv=function(a){wZ(this,a.type,!1,!1)};h.NA=function(a){this.Z(a)};h.ZA=function(){wZ(this,"videoShareShown",!0,!1)};h.wo=function(){wZ(this,"skip",!0,!1)};h.ap=function(){wZ(this,"video_extend_auto_skipped",!0,!1)};h.ip=function(){wZ(this,"video_extend_clicked",!0,!1)};h.aA=function(){wZ(this,"skip",!0,!1)};h.Xw=function(){wZ(this,"fullscreen",!1,!1)};
h.Xy=function(){wZ(this,"exitfullscreen",!1,!1)};B(zZ,OY);h=zZ.prototype;h.S=function(){DZ(this);this.Fa.dispose();BZ(this);this.$=!1;this.T=null;F(this.qa.Ja(),Sd);var a=!1;null!=this.B&&(a=this.B.Gk(),this.B.ea(),this.B=null);this.U&&(this.U=!1,this.j.tf()||this.j.He()||this.j.pause(),ZK()&&!a&&(this.j.uf(.001),this.j.load("","")),WK()&&this.j.Od()&&!a&&this.j.jk(),this.va("contentResumeRequested"),this.va("allAdsCompleted"));zZ.M.S.call(this)};h.Tg=function(){BZ(this);zZ.M.Tg.call(this);QY(this)&&(this.C=new LY,this.N=new tZ(this.C))};
h.ql=function(a){zZ.M.ql.call(this,a);null!=this.j&&vK(rK(),9419278)&&this.j.El(1)};h.wv=function(a,b){b.preventDefault();this.fa||(this.fa=!0,jL(iL.getInstance(),34,{evt:"click"},!0),ZY(this,"video_card_endcap_action"));a&&(this.D.pause(),HK(a))};h.Fn=function(){jL(iL.getInstance(),34,{evt:"skip"},!0);AZ(this,function(){DZ(this);this.va("complete");ZY(this,"video_card_endcap_dismiss");CZ(this)})};
h.xv=function(){jL(iL.getInstance(),34,{evt:"complete"},!0);DZ(this);this.va("complete");ZY(this,"video_card_endcap_collapse");CZ(this)};
h.rx=function(a,b,c){if(!this.la){this.la=!0;var d=aQ(b);d&&(a.D=d);if(this.o.useVideoAdUi){var d=a.getExtension("AdSense"),e=this.Da||a.A.nd("show_ads_pay_this_creator_info_card")||(null===b?!1:"modules"==(new O(b)).hf().toLowerCase())||null!=d&&d.H,d=aU(a)?null:EU(a),f;if(iK()||!this.ga)f=0;else{if(f=VK()){a:{for(f=0;f<this.ads.length;++f)if(!aZ(this.ads[f])){f=!1;break a}f=VK()}f=!f||null==this.B||!this.B.fk()}f=f||MU(a)}f&&(this.o.Xl=!0,this.o.Hq=!0);if(iK()||this.o.Hq){f=this.o;var k=C(D(IU(a)))?
!1:this.o.Xl,l=this.ga?iK()||!1:!0,m=iK();this.ga?aZ(a):iU(a);var p=cU(a),d=GY(e,a.D,d,f);d.A=k;d.N=l;d.L=!0;d.J=m;d.P=p;d.B=f.Wl;d.U=f.useShareButton;d.W=f.fC;d.Ca=0;f.Wl&&(e="",f=ra("Visit Advertiser"),d.Cf=e+f);vK(rK(),41351019)}else iU(a)||!C(D(a.D))?(f=a.D,!C(D(f))&&null!==d&&0<lT(d)&&(e=!0),d=GY(e,f,d,this.o),d.G=e?iR:hR):(d=GY(e,a.D,d,this.o),d.T=!1,d.D=!1,d.j=!1);e=this.B.ci();null===e?e=window.document.body:nf(e);f=PY(this);k=1E3*CU(f);l=f.getExtension("why_this_ad");m=f.getExtension("mute");
p=f.A.nd("enable_why_this_ad_for_desktop");d.C=new BY(l,m,p);wY(d.C)&&(m=null!=l?l.J:void 0,l="<span class='videoAdUiAdSettingsShortTooltip'>",m?l+=Y(m):(m=ra("Click for Ad Settings"),l+=m),l=AQ(l+"</span>"),d.se=l);this.A=new vY(d,e,k);e=f.D;null!=e&&(EZ(this),d.W&&RZ(this,e));this.Da&&(f=a.getExtension("AdSense"),null!=f?(e=this.A,f=D(f.o),null!=e.G&&(kg(e.G,!0),f=new O(f),f=(f.o+f.A).replace(/^www\./i,""),C(D(f))?zY(e):zf(e.G,f)),null!=e.K&&kg(e.K,!0)):zY(this.A));e=[];d.D&&e.push("adAttribution");
d.j&&e.push("countdown")}else d&&this.o.Pj&&(EZ(this),RZ(this,d));d=this.N;e=this.j;f=this.B.mk();k=this.A;vZ(d);d.B.C=a.$;d.j=e;d.A=k||null;d.j.ri();d.C=new uZ(d.j);d.K=f||null;d.o=new zm(d);d.F=a.$;e=jK.j?EP():hV();d.o.R(e,"externalActivityEvent",d.Yy);d.o.R(e,"measurable_impression",d.xz);d.o.R(e,"viewable_impression",d.$A);d.o.R(d.j,"timeUpdate",d.bx);d.o.R(d.j,"volumeChange",d.cx);d.o.R(d.j,"pause",d.Zw);d.o.R(d.j,"play",d.$w);d.o.R(d.j,"end",d.Vw);d.o.R(d.j,"beginFullscreen",d.Xw);d.o.R(d.j,
"endFullscreen",d.Xy);d.o.R(d.j,"skip",d.wo);d.o.R(d.j,"skipShown",d.Ip);d.o.R(d.j,"video_extend_auto_skipped",d.ap);d.o.R(d.j,"video_extend_clicked",d.ip);d.o.R(d.j,"video_extend_shown",d.hp);d.o.R(d.j,"start",d.ax);d.o.R(d.j,"error",d.Ww);d.o.R(d.j,"mediaLoadTimeout",d.Yw);null!=d.A&&(d.o.R(d.A,"urlNavigationRequested",d.NA),d.o.R(d.A,"videoShareShown",d.ZA),d.o.R(d.A,"skipshown",d.Ip),d.o.R(d.A,"skip",d.wo),d.o.R(d.A,"PUBLISHER_INVOKED_SKIP",d.aA),d.o.R(d.A,"video_extend_auto_skipped",d.ap),d.o.R(d.A,
"video_extend_clicked",d.ip),d.o.R(d.A,"video_extend_shown",d.hp),d.o.R(d.A,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoTitleClicked videoShareClicked why_this_ad_url why_this_ad_got_it_url why_this_ad_settings_url why_this_ad_learn_more_url 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(" "),d.Jv));VY(this).R(this.N,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoShareClicked videoShareShown videoTitleClicked".split(" "),
this.Op);VY(this).R(this.j,"loaded",this.XA);VY(this).R(this.j,"cardsStateChange",this.Fw);VY(this).R(this.j,"timeUpdate",this.Rp);VY(this).R(this.j,"volumeChange",this.Iw);vK(rK(),9419966)&&VY(this).R(this.j,"showCompanionAdLoaded",this.rA);this.Le(a);d=dX(a,this.j);this.C.j=d;d=a.o;null!=d&&d instanceof LT&&(this.Xd(d,B$),this.Mi(d),d=VY(this),Am(d,this.N,"error",this.Gw,this),Am(d,this.N,"mediaLoadTimeout",this.Hw,this));bZ(this,a);bU(a)&&(this.N.H=30);this.j.Il(cda(this,a));this.j.load(b,c)}};
h.nB=function(a,b,c){null!==a.F&&jL(iL.getInstance(),34,{evt:"filled"},!0);this.wa||(this.wa=!0,this.va("contentPauseRequested"));this.U=!0;this.rx(a,b,c);YY(this,"show_ad");this.setVolume(this.Y);this.A&&(C(D(IZ(a)))?(b=this.A,null!=b.C&&(b.A.ya(b.C,"click",b.ej),Lf(b.C,"cursor","default"))):(b=this.A,null!=b.C&&(b.A.R(b.C,"click",b.ej),Lf(b.C,"cursor","pointer"))),b=a.o.ha,kb(b)||Pca(this.A,b),this.A.show());this.B.Dg();this.T=a;try{FZ(this)}catch(d){KZ(this,XY,d);return}cV.getInstance().end("pi");
cV.getInstance().start("bt");this.Fa.show(this.B.ci(),A(this.j.play,this.j))};h.Ci=function(){dda(this);this.va("loaded");this.Z(new mZ(PY(this)))};h.skip=function(){QY(this)&&bU(PY(this))&&(null!=this.A?this.A.skip():(YY(this,"skip"),QZ(this)))};h.oq=function(){ZY(this,"skipshown")};
h.start=function(){zZ.M.start.call(this);cV.getInstance().start("pi");this.da=[];try{var a=PY(this),b;if(!UY(a))throw QK(F$);var c=a.o;if(C(D(null))){var d=TY(a),e=this.j.jq(d,this.o.bitrate,this.o.Cg||[],null!=a&&(iK()||this.B.ni()||this.B.Hk()||VK()));fda(d,this.o.bitrate,e,jU(a));if(null!=e)b=c.ga=e;else{try{eda(this,a)}catch(f){}throw QK(Efa);}}else b=new KT("","","",0,0,0,0,0,null,"");this.J=b;AZ(this,A(zZ.prototype.nB,this,a,this.J.o,this.J.j))}catch(f){LZ(this,f),this.Tg(),QY(this)?(RK(QK,
this,MZ,f,void 0),this.start()):(this.U?RK(QK,this,MZ,f,void 0):(null!=this.F&&UU(this.F,SU()),SK(this,MZ,f)),this.stop())}};h.jo=function(){$Y(this);return this.j.sf()?0:this.j.sd()};h.setVolume=function(a){$Y(this);this.U?this.j.setVolume(a):this.Y=a};h.pause=function(){$Y(this);this.D?this.D.pause():this.j.pause()};h.resume=function(){$Y(this);this.D?this.D.play():this.j.play()};h.getCurrentTime=function(){$Y(this);var a=this.D?this.D.getCurrentTime():0;return this.j.getCurrentTime()+a};
h.Ge=function(){$Y(this);var a=QY(this)?JU(PY(this)):0;return this.j.Nd()+a};h.ff=function(){return this.j.ff()};h.Gw=function(){this.j.getError();KZ(this,MZ,QK(MZ,this.j.getError()))};h.Hw=function(){KZ(this,E$,QK(E$,null,((0<this.o.loadVideoTimeout?this.o.loadVideoTimeout:15E3)/1E3).toString()))};h.Al=function(a,b){zZ.M.Al.call(this,a,b);OZ(this,a)};
h.Op=function(a){switch(a.type){case "start":mda(this);Maa();this.va("start");break;case "impression":this.va("impression");break;case "why_this_ad_url":this.Ha=this.j.tf();JZ(this,"why_this_ad_url");this.pause();break;case "pause":this.va("pause");break;case "why_this_ad_got_it_url":JZ(this,"why_this_ad_got_it_url");this.Ha||this.resume();break;case "resume":this.va("resume");break;case "firstquartile":this.va("firstquartile");break;case "midpoint":this.va("midpoint");break;case "thirdquartile":this.va("thirdquartile");
break;case "complete":if(a=QY(this)?Eaa(PY(this)):""){bda(this,a);break}this.va("complete");CZ(this);break;case "click":this.A&&this.A.j.A?this.j.tf()?this.resume():this.pause():NZ(this);break;case "engagedview":hda(this);break;case "urlNavigationRequested":this.Z(a);break;case "videoAuthorIconClicked":TZ(this);break;case "videoAuthorClicked":TZ(this);break;case "videoClicked":this.va("videoClicked");break;case "videoLearnMoreClicked":this.D&&jL(iL.getInstance(),34,{evt:"learn_more"},!0);this.j.pause();
NZ(this);break;case "videoShareClicked":ida(this);break;case "videoShareShown":jda(this);break;case "videoTitleClicked":kda(this);break;case "skipshown":this.va("skippableStateChanged");break;case "video_extend_auto_skipped":QZ(this,!0);break;case "skip":this.D?this.Fn():QZ(this);break;case "MUTE_AD":this.va("MUTE_AD"),AZ(this,function(){CZ(this)})}};h.Le=function(a){zZ.M.Le.call(this,a);OZ(this,"impression")};h.Xd=function(a,b){zZ.M.Xd.call(this,a,b);F(b,function(a){OZ(this,a)},this)};
h.Mi=function(a){zZ.M.Mi.call(this,a);a instanceof LT&&(a=MT(a),F(a.Ma(),function(a){OZ(this,a)},this))};h.getMediaUrl=function(){if(!QY(this))return null;var a=PY(this);if(!UY(a))throw QK(F$);a=a.o.J;return kb(a)?null:a[0].o};h.XA=function(){this.va("adCanPlay")};h.Fw=function(){var a=this.A;null!=a.o&&M(a.o,"ytp-iv-drawer-open",this.j.mo())};
h.Rp=function(){var a=this.Ge(),b;$Y(this);b=this.D?this.Ge():this.j.no();var c=this.getCurrentTime(),d=0,e=0;QY(this)&&(e=PY(this),d=e.C.o,e=e.C.B);if(null!=this.A&&0<=a&&0<=c){var f;if(f=!this.ka)f=3==PY(this).ga;if(f){f=this.j.Nd();var k=GU(PY(this));f=Math.abs(f-k);2<f&&(f=QK(Gfa,null,Number(f).toFixed(2)),f=YW(f,PY(this),this.j),k=kU(PY(this)),MK(k,f));this.ka=!0}this.A.update(c,b,a,d,e)}};h.Iw=function(){var a=this.j.sd();a!=this.Y&&(this.Y=a,this.va("volumeChange"),0==a&&this.va("mute"))};
h.rA=function(){this.$=!0;jL(iL.getInstance(),39,{},!0);try{FZ(this)}catch(a){KZ(this,XY,a)}};h.Vv=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=PY(this);var c=(0,window.encodeURIComponent)(D(IU(a)))+","+(0,window.encodeURIComponent)(PZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=IU(a)?210:185}else"pause-video"==b.data&&this.pause()};B(UZ,jc);B(VZ,OY);h=VZ.prototype;
h.init=function(a){VZ.M.init.call(this,a);VY(this).R(window,"message",this.aB);VY(this).R(hV(),C$,this.nz);if(this.J)this.Z(new UZ);else{a=KU(PY(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="id".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.o.contentId&&(a=Zg(a,"v",this.o.contentId));iK()&&(b=Vg(a,"st"),a=Zg(a,"st",b?b+" yt":"yt"))}a=D(a)}else{var b=new O(a),c=new O("http://tpc.googlesyndication.com/pagead/js/loader10.html");"https"==
b.B&&$g(c,"https");this.qa=b.o;a=dh(c,a||"",void 0).toString()}this.D=N("iframe",{src:DK(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});VY(this).R(this.D,"load",this.nv);VY(this).R(this.D,"error",this.oz);this.B.Ce().appendChild(this.D)}};
h.Gd=function(a,b,c){VZ.M.Gd.call(this,a,b,c);b=PY(this);this.L=b.o instanceof LT;this.A=a.mi(!1);kb(mU(b))||WY(this,b);this.J||(VY(this).R(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.gA),VY(this).R(this.A,G$,this.zy))};h.stop=function(){this.B.ea();VZ.M.stop.call(this)};
h.start=function(){VZ.M.start.call(this);if(!iK()){var a={};a.pid=cV.getInstance().j;a.dn=this.qa;a["if"]=this.J;jL(iL.getInstance(),29,a,!0)}a=PY(this);this.C.C=a.$;var b=dX(a,this.A);this.C.j=b;if(b=a.o)this.Le(a),this.Xd(b,B$),this.Mi(b),bZ(this,a);this.A.ri();YY(this,"show_ad");this.B.Nf();null!=this.D&&(this.D.style.display="block");this.la=!0;this.L&&this.va("contentPauseRequested");a_(this)};h.rf=function(a,b,c){VZ.M.rf.call(this,a,b,c);YZ(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.U||YZ(this,"pauseAd")};h.resume=function(){this.U&&YZ(this,"resumeAd")};h.setVolume=function(a){VZ.M.setVolume.call(this,a);YZ(this,"setAdVolume",{value:a})};h.S=function(){this.J&&this.Z(new UZ);pf(this.D);this.L&&this.va("contentResumeRequested");this.va("allAdsCompleted");this.Y=!1;this.T=[];VZ.M.S.call(this)};h.Ci=function(){};h.nv=function(){if(!this.J){var a=this.A.tk();kb(a)&&(a=this.o.Cg);YZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}WZ(this)};
h.aB=function(a){a=a.j;if(this.J){if(a=IR(a.data),null!=a){try{var b=ae(a.data)}catch(c){return}null!=b&&b.session==this.$&&$Z(this,b)}}else if(a.source==this.D.contentWindow){try{b=ae(a.data)}catch(c){return}b.session==this.$&&$Z(this,b)}};h.oz=function(a){ZZ(this,iY,a);this.stop()};h.nz=function(a){var b=a.type;if(E(C$,b)){if("externalActivityEvent"==b&&(b=a.A.eventName,!D$[b]))return;ZY(this,b)}};
h.gA=function(a){switch(a.type){case "timeUpdate":a=this.A.Nd();var b=this.A.getCurrentTime();XZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":b_(this,"ended");break;case "loaded":b_(this,"loadstart");break;case "mediaLoadTimeout":b_(this,"stalled");break;case "play":b_(this,"playing");break;default:b_(this,a.type)}};h.zy=function(a){b_(this,a.type)};h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};h.Ge=function(){return this.ga};
h.Kz=function(){YZ(this,"stopAd")};h=c_.prototype;h.mk=function(){return this.j.mk()};h.ci=function(){return this.j.ci()};h.Ce=function(){return this.j.Ce()};h.mi=function(a){return this.j.mi(a)};h.setSize=function(a,b){this.j.setSize(a,b)};h.fk=function(){return this.j.fk()};h.Gk=function(){return this.j.Gk()};h.Hk=function(){return this.j.Hk()};h.ni=function(){return this.j.ni()};h.ea=w;h.Dg=w;h.Nf=w;B(d_,J);h=d_.prototype;h.init=function(a,b,c){null!=c&&(this.T=c);null!=this.j&&this.j.rf(a,b,c);null==this.F&&(this.F=new zm(this),Am(this.F,this.J,"adsLoaderSdkAdError",this.Jx,this));g_(this)};h.start=function(){this.K=!0;qda(this);0<this.o.length?i_(this):("always"==jK.o&&null!=this.U&&UU(this.U,SU()),RK(OK,this,NW,void 0,void 0),0==this.hc&&this.Z("contentResumeRequested"),n_(this))};h.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);j_(this);jK.o=this.N;this.K=!1};
h.getCurrentAd=function(){return this.B<this.o.length?this.o[this.B].j[0]:null};h.gb=function(){return this.K};h.pause=function(){null!=this.j&&this.j.pause()};h.resume=function(){null!=this.j&&this.j.resume()};h.skip=function(){null!=this.j&&this.j.skip()};h.getCurrentTime=function(){return null!=this.j?this.j.getCurrentTime():-1};h.setVolume=function(a){null!=a&&(this.L=a,null!=this.j&&this.j.setVolume(this.L))};
h.Xo=function(a){jK.o=this.N;var b=a.D;kb(b)?this.D++:(a=a.C,a.j&&F(b,function(a){a.da=!1},this),this.P=pda(this,b),nb(this.o,new Vaa(b,a.j,a.o)),this.D++,this.F.ya(this.J,"adsLoaderSdkAdLoaded",this.Xo,!1,this));g_(this)};h.Jx=function(a){a=a.A;jK.o=this.N;a.getMessage();RK(OK,this,NW,void 0,void 0);this.D++;if(!f_(this)||2<=this.o.length-this.B)a=OK(NW),this.Z(new $J(a));g_(this)};h.Jz=function(){j_(this);n_(this)};h.Kx=function(a){a.getError();this.B++;i_(this)};h.Aw=function(){this.Z("userClose")};
h.xw=function(){this.Z("autoClose")};h.zw=function(){this.B++;i_(this)};h.yw=function(){this.$||(this.Z("contentPauseRequested"),this.$=!0)};h.Yo=function(a){rda(this,a.type,a.getAd());this.Z(a)};B(p_,jc);B(q_,J);q_.prototype.getCurrentTime=function(){return this.j.currentTime};q_.prototype.C=function(){if(this.o){var a=this.j.currentTime;if((0,window.isNaN)(a)||0>a)t_(this);else{var b=vda(this,a);this.D?F(b,function(a){s_(this,!0,a)},this):s_(this,!0,db(b));s_(this,!1,wda(this,a))}}};q_.prototype.F=function(){t_(this)};B(u_,G);u_.prototype.o=function(){return this.j};B(gY,OY);h=gY.prototype;
h.Gd=function(a,b,c){null!=this.D&&(r_(this.D),this.D.dispose(),this.D=null);gY.M.Gd.call(this,a,b,c);var d=this.da.j.Ma();b=new bS(b);var e=c&&0<=c.yl?c.yl:4;this.ka=null!=c?c.Tp:0;this.D=new q_(b,d,{prefetch:e});F(d,function(b,c){if((0,window.isNaN)(b))throw OK(tV,null,"timeOffset",b+"");var d=fa(b)&&!(0,window.isNaN)(b)?this.da.j.get(b,[]):[];if(!kb(d)){d=new d_(d,b,0==b||-1==b?b:c,this.Y,a,this.o,this.F);if(wg(this.K,b))throw OK(Dfa,null,"Multiple ad breaks cannot share same ad play time.");this.K.set(b,
d)}},this);this.N=db(d);Gh(d,function(a){if(-1==a)return this.N=a,!0;this.N=this.N<a?a:this.N;return!1},this)};
h.init=function(a){gY.M.init.call(this,a);null!=this.D&&(z_(this),a=VY(this),Am(a,this.D,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Am(a,this.D,"adBreakReady",this.Hx,this),Am(a,this.Y,"contentComplete",this.Ky,this),this.Y.j=!1,a=this.D,a.o||(null==a.B&&(a.B=new zm(a)),a.B.R(a.j,"currentTimeUpdate",a.C,!1),a.B.R(a.j,"contentWrapperError",a.F,!1)),a.j.start(),a.o=!0,this.D.C(),a=fa(0)&&!(0,window.isNaN)(0)?this.da.j.get(0,[]):[],kb(a)&&this.va("contentResumeRequested"))};
h.Ci=function(){this.Md();this.Z(new mZ(null))};h.destroy=function(){this.dispose()};h.S=function(){this.Y.j=!0;if(0<this.K.Za()){var a=this.K.Ja();F(a,this.cf,this);this.K.clear()}z_(this);B_(this);null!=this.B&&(this.B.ea(),this.B=null);gY.M.S.call(this)};h.start=function(){gY.M.start.call(this)};h.stop=function(){null!=this.A&&(this.cf(this.A),this.oi())};h.pause=function(){null!=this.A&&this.A.pause()};h.resume=function(){null!=this.A&&this.A.resume()};h.skip=function(){null!=this.A&&this.A.skip()};
h.setVolume=function(a){gY.M.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};h.Ge=function(){var a;null!=this.A?(a=this.A,a=null!=a.j?a.j.Ge():-1):a=-1;return a};h.Md=function(){return this.da.j.Ma()};h.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};h.iq=function(){};h.handleEvent=function(a){"contentTrackingError"!=a.type&&(fo(this.T,a),A_(this))};h.Dw=function(){this.va("userClose")};
h.Cw=function(){this.va("autoClose")};h.cf=function(a){a.destroy();this.K.remove(a.hc);this.A=null;null!=this.H&&(this.H.ya(a,o_,this.Z,!1,this),this.H.ya(a,"adError",this.Kn,!1,this),this.H.ya(a,"allAdsCompleted",this.So,!1,this),this.H.ya(a,"contentPauseRequested",this.ho,!1,this),this.H.ya(a,"contentResumeRequested",this.oi,!1,this),this.H.ya(a,"adBreakInitialized",this.To,!1,this))};h.Ky=function(a){this.$=!0;-1==this.N?a.B=!1:iK()&&!x_(this)||y_(this);uda(this.D)};
h.Hx=function(a){var b=a.A;a=0==b;var c=-1==b;this.U?(a?this.va("contentResumeRequested"):!c||iK()&&!x_(this)||y_(this),this.U=!1):(c?Rd(function(){var a=this.K.get(b);a&&this.cf(a);iK()&&!x_(this)||y_(this)},500,this):a&&Rd(function(){this.va("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.Z(new aK("adBreakReady",null,a)))};h.Kn=function(a){var b=a.getError();iK()&&b&&"adLoadError"==b.getType()&&this.Z(a)};
h.So=function(a){this.cf(a.target);(x_(this)||!iK()&&this.$)&&y_(this);this.J=null;A_(this)};h.ho=function(){var a=this.D;a.j.stop();a.o=!1;this.va("contentPauseRequested")};h.oi=function(){this.va("contentResumeRequested");if(!this.ga){var a=this.D;a.j.start();a.o=!0}this.J=null};h.To=function(a){this.J=null;A_(this);a=a.target;var b={};b.adBreakTime=a.hc;this.Z(new aK("prefetched",a.getCurrentAd(),b))};h.va=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.Z(new aK(a,b))};
h.ko=function(a,b){return this.fa=new u_(a,b)};B(C_,J);C_.prototype.S=function(){null!=this.j&&(this.j.ya("adsManagerLoaded",this.Z),this.j.ya("adError",this.Z),this.j.ya("adLoadError",this.Z),this.j=null);C_.M.S.call(this)};B(E_,eH);h=E_.prototype;h.Xc=function(){K9(this.app,!0,this.playerType);this.app.Ne(this.playerType)};h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};h.Yc=function(a,b,c){K9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Wf(d.getCurrentTime()+a,b,c,e)};h.Qb=function(a,b){K9(this.app,!0,this.playerType);this.app.Wf(a,b,void 0,this.playerType)};h.kr=function(){X9(this.app,this.playerType)};B(F_,jq);F_.prototype.getAdState=function(){return-1};G_.prototype.reset=function(){Zu(this.j)};G_.prototype.o=function(a,b){Ru(a,b,this.j)};G_.prototype.info=function(a,b){Xu(a,b,this.j)};(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Jf();return b?(b=b.toLowerCase(),b+=$a("hidden"),!n(a)||b in a?b:null):null})();V_.prototype.start=function(){this.o=!0};V_.prototype.reset=function(){this.j=this.o=!1};W_.prototype.P=function(a){if(4==a.info.type){var b=a.info.j.$p(a);a.info.equals(this.o)&&(this.o=db(b).info);F(b,this.P,this)}else 3==a.info.type&&this.j.push(a)};W_.prototype.U=function(a){a.dispose();this.D-=Y_(a)};var Mda=0;h=u0.prototype;h.vB=function(a){this.status=a.status;a.ok?(this.B=a.body.getReader(),this.D?(this.H=a.headers,this.F=new window.Uint8Array(w0(this)),x0(this)):this.B.cancel("Cancelling")):this.uj()};h.ty=function(a){if(this.D)if(K(),a.done)this.B=null,this.uj();else{a=a.value;this.C+=a.length;var b=a.length>=Math.max(w0(this)/2,16384),c=a.length+this.j>w0(this);(b||c)&&0!==this.j&&v0(this);b?this.A.push(a):(this.F.set(a,this.j),this.j+=a.length);this.D({timeStamp:K(),loaded:this.C});x0(this)}};
h.uj=function(){this.D&&(this.G=!0,this.J())};h.lh=function(a){return this.H.get(a)};h.kk=function(){return this.C};h.eg=function(){return+this.lh("content-length")};h.Zn=function(){return 200<=this.status&&300>this.status&&!!this.C};h.Eo=function(){return!!this.A.length||this.G&&0<this.j};h.yq=function(){this.A.length||v0(this);return this.A.shift()};h.qr=function(){this.A.length||v0(this);return this.A[0]};h.pr=function(){this.B&&this.B.cancel("Cancelling");this.J=this.D=null};var Nda=0;h=y0.prototype;h.xD=function(a){this.A||(this.status=this.j.status,this.o=this.j.response,this.B=!0,this.C(a))};h.yD=function(a){this.A||(this.status=this.j.status,this.D(a))};h.lh=function(a){try{return this.j.getResponseHeader(a)}catch(b){return Ci(b),""}};h.eg=function(){return+this.lh("content-length")};h.kk=function(){return this.o.byteLength};h.Zn=function(){return 200<=this.status&&300>this.status&&!!this.o};h.Eo=function(){return this.B&&!!this.o};
h.yq=function(){var a=this.o;this.o=null;return new window.Uint8Array(a)};h.qr=function(){return new window.Uint8Array(this.o)};h.pr=function(){this.A=!0;this.j.abort()};z0.A=!1;z0.o=1E4;z0.j=2048;h=z0.prototype;h.getErrorCode=function(){return this.G};h.start=function(a){var b=1==this.state,c=6==this.state;1==this.state||4==this.state||c&&B0(this);C0(this,2);this.N=0<=a?a:window.NaN;if(c&&2<=this.F)c=this.info.A,this.J<=c.A||(c.o++,c.A=p$-1,Or(c)),this.F=0;else if(c){this.F++;b=z0.o*(.5+Math.random());1==this.F&&(b=2E3);xi(A(this.zm,this,a),b);return}b?this.zm(a):xi(A(this.zm,this,a),0)};
h.zm=function(a){if(!this.isDisposed()){this.J=p$++;if(this.j){var b=this.info,c=this.j.j,d=this.j.length;this.H=b.range?new xr(b.range.start+c,b.range.end):zr(c,d);this.o=Yr(this.info,this.H)}else this.H=this.info.range,this.o=Yr(this.info);this.o.set("rn",this.J.toString());this.F&&this.o.set("playerretry",this.F.toString());0<=a&&this.o.set("rbuf",(1E3*a).toFixed().toString());a=Kr(this.o);try{var e=A(this.fB,this),f=A(this.hB,this),k=A(this.gB,this);this.A=(this.B.L||this.B.P&&5>this.N)&&"function"==
typeof window.fetch&&window.ReadableByteStream&&Oda(this)&&this.info.range?new u0(a,f,k,e):new y0(a,f,k,e)}catch(l){this.G="net.ssl",C0(this,6)}0<this.B.F&&(this.D=xi(A(this.Zp,this),this.B.F));this.o.get("itag");this.o.get("range");K()}};h.hB=function(){this.L=0;var a=this.timing;this.o&&qr(this.o.j);a.A=K();a.D=a.A;a.j=0;a.K=!1;a.H=!1;a.C=0;a.G=OJ(a.o);I0(a);a.L=a.F-a.A};
h.gB=function(a){if(!this.isDisposed()){this.C=this.A.status;G0(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:K();c-b.D<1E3*b.o.j.B||H0(b,c,a);b=this.timing;b.j>b.P&&8192<b.j&&3>this.state&&C0(this,3)}};
h.fB=function(){var a=this.A;if(!this.isDisposed()){this.D&&(Ai(this.D),this.D=window.NaN);this.C=a.status;var b=!1;if(400<=a.status)b=!0,this.G="net.badstatus";else if(a.Zn()){var c="";E0(this)&&(c=a.qr(),c.length>z0.j?c="":(c=String.fromCharCode.apply(String,c),c=tr.test(c)?c:""));if(c){var a=this.info.A,d=this.o;d.j===a.j&&(a.j=Mr(d,c));C0(this,4)}else{var c=a.eg(),a=a.kk(),d=!!this.H&&this.H.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);e?(G0(this,!0),c=this.timing,d=K(),c.K||(c.K=
!0,d=d>c.A&&4E12>d?d:K(),H0(c,d,a),e=(d-c.A)/1E3,!c.H&&8192<=c.j&&IJ(c.o,e,a),8192<=c.j&&(e=c.o,a=Math.max(a,8192),e.C.j(1,c.C/a),PJ(e)),KJ(c.o,(d-c.A)/1E3,c.j),c.B&&(c.B=!1)),K(),C0(this,5)):(b=!0,this.G="net.closed")}}else b=!0,this.G="net.connect";b&&(B0(this),C0(this,6),K())}};
h.Zp=function(){this.D=window.NaN;if(!(this.isDisposed()||this.B.qa&&this.A&&8192<=this.timing.j&&"quic"==this.A.lh("client-protocol"))){var a=K(),b=!1;if(8192<=this.timing.j){var c=this.timing.F;I0(this.timing);this.timing.F-c>=.8*this.B.F?(this.L++,b=5<=this.L):this.L=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.G.delay);if(b){b=this.timing;c=a;c=c>b.A&&4E12>c?c:K();a=(c-b.A)/1E3;if(8192<=b.j){b.C+=(c-b.D)/1E3;var c=b.o,d=b.J,d=Math.max(d,8192);c.C.j(1,b.C/d)}else c=b.o,c.B.j(1,a);PJ(c);KJ(b.o,a,b.j);
D0(this);this.G="net.timeout";C0(this,6)}else this.D=xi(A(this.Zp,this),this.B.F)}};h.isDisposed=function(){return-1==this.state};h.dispose=function(){Sr(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.A=!1);C0(this,-1);this.P=null;D0(this);Ai(this.D);this.D=window.NaN};B(J0,Oj);J0.F=!1;J0.j=2/24;J0.C=1E3;J0.A=.2;J0.B=1E4;J0.o=1800;J0.D=25;h=J0.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.C="i";"auto"!=CA()&&(e.C="s");M_(e,b);Fda(e,d);e.K=e.B;Gda(e);e.A=e.F;b=U_(e);this.o=new W_(this.B,b.audio);this.A=new W_(this.B,b.video);this.O("videoformatchange",b);this.C=a;c?(this.J=!0,Y0(this)):K0(this)};h.resume=function(){this.J&&(this.J=!1)};
h.Pu=function(a){this.o.K=!1;this.A.K=!1;this.resume();this.j=a;Ev(a)&&(a.j.addEventListener("updateend",A(this.uc,this),!1),a.o.addEventListener("updateend",A(this.uc,this),!1),a.j.addEventListener("error",A(this.Ai,this,!0),!1),a.o.addEventListener("error",A(this.Ai,this,!1),!1));M0(this,"msa");cv.measure&&cv.getEntriesByName("vta").length&&cv.measure("measure_vta_to_msa","vta");this.T&&this.N&&Bu();this.uc();this.da=zi(A(this.uc,this),J0.B)};
h.hA=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.j[0].j,c=!this.T&&b.info.video,d=!this.N&&b.info.audio,e=Math.max(0,a.info.j[0].C-this.C);4==a.state?(c?M0(this,"vrr"):d&&M0(this,"arr"),a.start(e)):5==a.state?(c?(this.T=a.o?Kr(a.o):"",Du()):d&&(this.N=a.o?Kr(a.o):""),b=a.j.A,F(b,function(a){Sr(a.info)&&a.info.j.Yn(a)}),!Fg(b,function(a){return Ls(a)},this)||b[0]&&b[0].info.j.Xk()?this.xd(!0,"fmt.unparseable",A0(a)):this.uc()):3==a.state?(this.uc(),c&&Du()):6==a.state&&B0(a)?(this.xd(!1,
a.getErrorCode(),A0(a)),this.isDisposed()||((c=b.info.video&&(0<a.F||410==a.C||500==a.C||503==a.C)&&90&&!R_(this.D))&&Eda(this.D,b.info),6==a.state&&"net.timeout"==a.G||c?(Ida(b.info.video?this.A:this.o,a),this.uc()):a.start(e))):Sr(a.info.j[0])?(b.C=!0,this.uc()):this.xd(!0,"net.retryexhausted",A0(a))}};
h.uc=function(){this.ca=window.NaN;O0(this);if(this.j&&Av(this.j)&&!Cv(this.j))if(this.F.isLive)(0,window.isNaN)(this.G)?(this.G=this.C+2*J0.o,zv(this.j,this.G)):this.G<=this.C+J0.o&&(this.G+=J0.o,zv(this.j,this.G));else{var a=Math.max(this.o.A.index.cg(),this.A.A.index.cg());(!(0,window.isFinite)(this.G)||this.G!=a)&&0<a&&(zv(this.j,a),this.G=a)}if(!this.isDisposed())if(a=this.F,a.isLive&&Vs()-a.D>=a.A)3==this.F.B?this.xd(!0,"manifest.net.retryexhausted",{rc:this.F.F.toString()}):(this.F.K(),Y0(this));
else{if(this.B.T&&Vs()-this.F.H>=1E3*this.B.T&&e1(this)>=this.B.fa){var a=this.F,b=a.j,c;for(c in b)Or(b[c].D);a.H=Vs()}this.F.isLive&&(t0(this.A)||t0(this.o))&&(c=b1(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?Y0(this):(O0(this),Z_(this.A),Z_(this.o),this.o.A.A||(!this.J||QJ(this.H)?K0(this):Y0(this)),!this.j||T0(this,this.o,this.j.j)||T0(this,this.A,this.j.o)||((c=Z0(this,this.A,this.j.o,null,this.o.F))&&!this.Y&&(this.Y=K(),M0(this,"vda"),this.W&&
Du()),a=Ux(this.j.o.buffered,this.C+J0.j),(0,window.isNaN)(a)&&!k0(this.A)&&this.j.j.buffered.length||(k0(this.A)&&(a=window.NaN),a=Z0(this,this.o,this.j.j,a,null),c|=a,a&&!this.W&&(this.W=K(),M0(this,"ada"),this.Y&&Du())),k0(this.A)&&k0(this.o)&&Av(this.j)&&!Cv(this.j)&&(a=this.j,Av(a)&&a.A.endOfStream(),a=this.H,BA(OJ(a)),a.o=Vs()),c&&!Ev(this.j)&&S0(this)),Q0(this,this.A,O_(this.D)),Q0(this,this.o,P_(this.D)),this.A.A.C||this.o.A.C?this.xd(!0,"net.retryexhausted"):(U0(this,this.A,this.o)&&W0(this,
this.A,this.o),U0(this,this.o,this.A)&&W0(this,this.o,this.A),this.B.Ca&&this.U&&!this.J&&QJ(this.H)&&(c=this.U,this.U="",a=Kg(c),yj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:A(this.xd,this,!1,"pathprobe.net",{shost:a})})),this.B.la&&(this.B.$=10<=e1(this)),this.F.C&&Y0(this)))}};h.Ai=function(a){a=(a=a?this.o:this.A)&&a.B;this.xd(!0,"fmt.unplayable",a?Wr(a):void 0)};
h.seek=function(a){if(!this.isDisposed()){O0(this);this.fa=Vs();this.A.A=O_(this.D);var b=c1(this,this.A,a,this.j&&this.j.o);this.o.A=P_(this.D);var c=c1(this,this.o,b,this.j&&this.j.j);this.C=Math.max(a,b,c);this.L=!0;S0(this)}};h.S=function(){N0(this);this.o&&(m0(this.o),m0(this.A));Bi(this.da);this.A=this.o=null;J0.M.S.call(this)};h.xd=function(a,b,c){this.O("error",new gv(b,a,c));a&&(this.j&&Av(this.j)&&(a=this.j,Av(a)&&a.A.endOfStream("network")),this.dispose())};B(f1,G);h=f1.prototype;h.setCallbacks=function(a,b,c,d){this.F=a;this.D=b;this.J=c;this.o=d};h.kE=function(a){this.F.call(this.o,new window.Uint8Array(a.message))};h.jz=function(){};h.$o=function(a,b){Ci(b);var c=a;b instanceof window.DOMException&&(c+="."+b.name);this.D.call(this.o,c)};h.yp=function(a){this.F.call(this.o,a.message)};h.xp=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.D.call(this.o,""+b+"."+a)};h.wp=function(){this.J.call(this.o)};
h.update=function(a){this.B?this.B.update(a).then(null,yi(A(this.$o,this,"u"))):this.j?this.j.update(a):this.C.addKey?this.C.addKey(this.K.j,a,this.H,this.G):this.C.webkitAddKey(this.K.j,a,this.H,this.G)};h.S=function(){this.C=null;f1.M.S.call(this)};B(g1,G);h=g1.prototype;
h.createSession=function(a){var b=a.j;if(this.o.A){var c=this.F.createSession(),b=c.generateRequest(a.contentType,b),c=new f1(null,null,null,c,null);b.then(null,yi(A(c.$o,c,"g")));return c}if(wt(this.o)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.C.createSession("video/mp4",b,c);return new f1(null,null,null,null,b)}this.j.generateKeyRequest?
this.j.generateKeyRequest(this.o.j,b):this.j.webkitGenerateKeyRequest(this.o.j,b);return this.A=new f1(this.j,this.o,b,null,null)};h.nE=function(a){var b=i1(this,a);b&&b.yp(a)};h.mE=function(a){var b=i1(this,a);b&&b.xp(a)};h.lE=function(a){(a=i1(this,a))&&a.wp()};h.S=function(){this.j=null;g1.M.S.call(this)};B(j1,G);h=j1.prototype;h.rr=function(a){this.D=a};
h.BD=function(a){if(!this.isDisposed()){this.C||(this.C=!0,this.j.O("newsession",this));if(wt(this.G)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);b=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=window.Uint8Array;b=b.childNodes[0].data;if(!H$)for(H$={},I$={},c=0;65>c;c++)H$[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),I$[H$[c]]=c,62<=c&&(I$["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=c);
for(var c=I$,d=[],e=0;e<b.length;){var f=c[b.charAt(e++)],k=e<b.length?c[b.charAt(e)]:0;++e;var l=e<b.length?c[b.charAt(e)]:64;++e;var m=e<b.length?c[b.charAt(e)]:64;++e;if(null==f||null==k||null==l||null==m)throw Error();d.push(f<<2|k>>4);64!=l&&(d.push(k<<4&240|l>>2),64!=m&&d.push(l<<6&192|m))}a=new a(d)}a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,jb:this.mz,onError:this.lp,context:this};b=this.F;this.D&&(b=Zg(b,"access_token",this.D));yj(b,a)}};
h.zD=function(){this.isDisposed()||this.B||(this.j.O("sessionready"),this.B=!0)};
h.mz=function(a){if(!this.isDisposed())if(0!=a.status&&a.response){a=new window.Uint8Array(a.response);var b=String.fromCharCode.apply(String,a.subarray(0,16384)),c=b.indexOf("\r\n"),d=b.indexOf("\r\n\r\n"),e,f;if(-1==d)a=null;else if(e=b.slice(0,c).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==e)a=null;else{e=ab(e[1]);b:{f={};b=b.slice(c+2).split("\r\n");for(c=0;c<b.length;c++){if(0==b[c].length)break b;var k=b[c].match(/([^:]+):\s+([\S\s]+)/);if(null==k)break;f[k[1]]=k[2]}f=null}a=null==f?null:
new Sda(e,f,a.subarray(d+4))}a?0!=a.j?l1(this,"drm.auth","f"+a.j,Px(a.j)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,e=null,(f=a.headers["Heartbeat-Url"])&&(e=new Rda(f,(0,window.parseInt)(a.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(a.headers["Heartbeat-Num-Retries"],10)||4)),(d||e)&&this.j.O("newlicense",d,e),this.o.update(a.message)):l1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.lp(a)};
h.AD=function(a){this.isDisposed()||l1(this,"drm.keyerror","s"+a)};h.lp=function(a){l1(this,"drm.net","r"+a.status)};h.S=function(){this.j=null;j1.M.S.call(this)};B(n1,Oj);h=n1.prototype;h.Vy=function(a){a=new m1(new window.Uint8Array(a.initData),a.initDataType);p1(this,a,!0)};h.Fz=function(a){p1(this,new m1(a.initData,a.contentType),!0)};h.yz=function(){this.isDisposed()||(this.C=!0,this.o.length&&q1(this,this.o[0]))};h.ay=function(a){if(!this.isDisposed()){Ci(a);var b="a";a instanceof window.DOMException&&(b+=a.name);this.O("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.Hz=function(a,b){a&&E(a,"HD")&&!Qt(this.B)&&!wt(this.j)&&(this.B=St,this.O("qualitychange"));b&&!this.N&&(this.N=b,this.O("heartbeatparams",b))};h.Iz=function(){this.isDisposed()||(this.o.shift(),this.o.length&&q1(this,this.o[0]))};h.pA=function(){if(wt(this.j)&&(this.J--,0==this.J)){var a=this.A;a.j.msSetMediaKeys(a.C)}};h.S=function(){this.L=null;this.o=[];n1.M.S.call(this)};r1.prototype.C=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};r1.prototype.D=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Ya(a.c3a))};r1.prototype.B=function(a){a=Ya(a.c);var b;b=t("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};B(v1,Oj);v1.prototype.B=function(a,b){this.j.paused||this.getCurrentTime()>a||10<b||(this.play(),xi(A(this.B,this,this.getCurrentTime(),b+1),500))};B(F1,v1);h=F1.prototype;h.ia=function(){return this.j};h.canPlayType=function(a,b){return this.j.canPlayType(a,b)};h.getCurrentTime=function(){return this.j.currentTime};h.load=function(){this.j.load()};h.pause=function(){this.j.pause()};h.play=function(){this.j.play()};h.getErrorCode=function(){return this.j.error?this.j.error.code:null};h.setVolume=function(a){this.j.volume=a};h.jE=function(a){this.O(a.type,new Wda(this,a.type,a))};G1.prototype.isEmpty=function(){return this.endTime==this.startTime};H1.prototype.B=function(){var a=KG(this.X),b=a.totalVideoFrames,a=a.droppedVideoFrames,c=b-this.A,d=a-this.o;this.A=b;this.o=a;0<c&&.3<d/c&&this.C()};B(J1,Oj);J1.j=1;J1.o=10;J1.A=5;J1.B=5;h=J1.prototype;h.S=function(){Ai(this.wa);Bi(this.Ha);L1(this);W1(this);K1(this);Z1(this);Nb(this.da,this.j);this.L=null;this.Aa=!1};
h.Xg=function(a,b){var c=this.X.experiments.na("legacy_cue_range_behavior2");this.Y.length=0;this.ca.reset();this.T.reset();this.K=this.fa=window.NaN;this.$=null;this.Va=!1;this.o&&C1(this.o);a2(this);L1(this);W1(this);K1(this);Mb(this.j);c&&this.D.reset();if(2==this.N||rG.test(this.X.G))a.Fo=!0;this.X.Jg&&(a.Fd=this.j.Fd);this.j=a;this.j.subscribe("dataupdated",this.TA,this);this.j.subscribe("dataloaded",this.zn,this);this.j.subscribe("dataloaderror",this.lj,this);this.j.subscribe("onStatusFail",
this.SA,this);a.df&&a.df>a.startSeconds&&(c=a.df,this.L&&(this.D.gh(this.L),this.L=null),this.L=new fq(1E3*c,0x7ffffffffffff),hq(this.L).subscribe("onEnter",this.Kf,this),this.D.cb([this.L]));L1(this);this.j.Qf||(c=new Yda(this.j,this.X,b,A(this.Yf,this),A(this.getCurrentTime,this),A(this.Lv,this),A(this.Na.Ka,this.Na),A(this.qm,this),A(this.Wv,this)),this.A=new LA(c));this.Aa=!1;m2(this,"newdata");Q1(this,new ay)};h.getVideoData=function(){return this.j};h.V=function(){return this.X};
h.zn=function(){if(Xw(this.j))Xw(this.j),this.ca.j=!0,this.Y=sb(this.j.H),Ow(this.j,this.X),Kw(this.j)&&(this.j.Ea&&(this.W=new yda),this.j.A.j&&i2(this),h2(this,"i")),m2(this,"dataloaded"),this.T.o&&R1(this);else if(this.j.ga){var a=this.j,b=this.X.experiments.L,c=this.X.experiments.na("disable_versioned_mpd");a.Pd=!0;a.ga=!1;tr.test(a.G)||Ci(Error("DASH MPD Origin invalid: "+a.G),"WARNING");if(b)b=a.G;else var b=a.G,d=Kg(b),b=0>rw.B.indexOf(d)?Wp(b):Xp(b);c||(b=Tg(b,{mpd_version:3}));c=b;at(new Us(c),
c).then(a.Qy,a.Py,a);Ru("mrs")}else if(this.j.W)this.A&&(a=this.A.A,GA(a,"protected"),a.j.j.L?a.rq():a.j.j.subscribe("dataloaded",a.rq,a)),a=this.j,c=this.X.F,Ws(a.j),c=new Bt(Rv(c,a.j)),H(a,c),a.W=!1,a.Pd=!0,a=A(a.mx,a),c.B=a,zt()?Ft(c):Ht(c);else if(!this.j.Pd){a:switch(c=this.X,a=this.j,b=this.Na.Ka(),d=bH(this.X),a.U){case 38:c=a.videoId.indexOf(":");c=Tg("//play.google.com/books/volumes/"+a.videoId.slice(0,c)+"/content/media",{aid:a.videoId.slice(c+1),sig:a.Xe});break a;case 30:b="//docs.google.com/";
c.baseYtUrl!=pG.prototype.baseYtUrl&&(b=c.baseYtUrl);c=Tg(b+"get_video_info",{docid:a.videoId,authuser:a.yb,authkey:a.qb,eurl:c.U});break a;case 33:c=Tg("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:var e={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:c.U,ps:c.j,el:c.Ba,hl:c.W,list:a.playlistId,agcid:a.We,aqi:a.Ve,sts:16745,lact:LG(c)?IA():"-1"};c.forcedExperiments&&(e.forced_experiments=c.forcedExperiments);a.K?e.vvt=a.K:a.oauthToken&&(e.access_token=
a.oauthToken);c.D&&(e.adformat=c.D);c.Qa&&(e.cc_lang_pref=c.Qa);c.ca&&2!=c.ca&&(e.cc_load_policy=c.ca);c.mute&&(e.mute=c.mute);a.wa&&2!=c.gd&&(e.iv_load_policy=a.wa);a.Fa&&(e.itct=a.Fa);a.Hg&&(e.autoplay="1");a.Uk&&(e.autonav="1");a.Wk&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ha&&(e.ytrcc=a.ha);a.bl&&(e.utpsa="1");a.isFling&&(e.is_fling="1");a.vnd&&(e.vnd=a.vnd);b.width&&(e.width=b.width);b.height&&(e.height=b.height);a.Xf&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");c.da&&(e.content_v=c.da);
a.zf&&(e.livemonitor=1);c.yb&&(e.authuser=c.yb);c.pageId&&(e.pageid=c.pageId);c.N&&(e.ei=c.N);c.ac&&(e.ssl_stream="1");c.L&&(e.iframe="1");a.kj&&(e.tst=a.kj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");c.ib&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);c.ib&&a.Mb&&(e.cyc=a.Mb);0!=d&&c.experiments.na("send_presence_signal_vis_desktop")&&(e.vis=d);qa(e,c.o);c=Tg(c.baseYtUrl+"get_video_info",e)}a=this.j;b=this.X.experiments.Y;d=this.X.experiments.j;e=!this.X.experiments.na("disable_gvi_cors");
a.isDisposed()||(a.bc=c,a.rb=!!b,a.he=!!d,a.gd=!!e,a.Pd=!0,a.lq())}};h.Kf=function(a){this.pauseVideo();a=0==a?new ay:new ay(14);Q1(this,a)};h.Ri=function(a){this.Y=this.Y.filter(function(b){return a!=b});this.T.o&&R1(this)};h.gb=function(){return this.B.gb()};h.getPlayerState=function(){return this.B};h.qm=function(){var a=this.getVideoData(),b=a.D;if(!b)return a.T;var c=eb(this.j.A?this.j.A.audioTracks:[],function(a){return a.id==b.id});return c?c:a.T};
h.Ex=function(){var a=this.C.D.j;a.isLocked()||(2==this.X.experiments.Bc("html5_dropped_frames_abr")&&(a=Rt(a,sfa),P0(this.C,a,"a",!0)),this.A&&GA(this.A.A,"limit-frame-drops"),this.U&&(a=this.U,Bi(a.j),a.j=window.NaN,this.U=null))};
h.iz=function(a){if(this.F){var b=this.F;if(wt(b.j)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+f),l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=f}}a=c;0!=a.length&&p1(b,new m1(a),!1)}}};
h.vz=function(a){U1(this,a.reason,a.video.info,a.audio.info);var b=Sw(this.j);b&&b.C(a.video);this.W&&(this.W.o=a.audio.index)};h.uz=function(a){V1(this,a.reason,a.audio.info)};
h.lj=function(a){var b;Jw(this.j)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)Jw(this.j),this.j.Ae&&!this.Ua&&(this.Ua=!0,this.O("signatureexpired"));else if(a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)&&this.j.A.o)a=this.j,a.A=a.A.o,hH(this),b2(this);else if(a.j)nJ(this,a.errorCode,void 0,hv(a));else if(this.A)this.A.onError(a.errorCode,hv(a))};
h.pauseVideo=function(a){U(this.B,64)&&!a&&(U(this.B,8)?Q1(this,jy(this.B)):Q1(this,iy(this.B,8)));this.o&&(U(this.B,128)||(a?Q1(this,hy(this.B,256)):Q1(this,jy(this.B))),this.o.pause())};
h.Xq=function(){if(!(0,window.isNaN)(this.K)&&this.o){var a=this.Yf();!this.j.Ea&&this.K>=Math.floor(a)?(this.K=a,this.O("endseeking",this),this.pauseVideo(!0),this.Kf()):(this.C&&this.C.seek(this.K),(!this.j.Ea||1<=this.o.j.readyState)&&z1(this.o,this.K))}this.da&&(this.da.dispose(),this.da=null);U(this.B,32)&&(Q1(this,hy(iy(this.B,32),16)),this.O("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.K))return this.K;var a=0;this.o&&1<=this.o.j.readyState?a=this.o.getCurrentTime():this.j&&(a=this.j.ij||this.j.startSeconds||0);return a};h.Yf=function(){return this.j.lengthSeconds?this.j.lengthSeconds:j2(this,!1)?j2(this,!1):0};
h.Lv=function(){var a=new Xda;if(this.ga&&this.C){var b=this.ga;a.A=b.D;a.D=b.F;a.j=NJ(b);b=this.C;b.j&&!Bv(b.j)&&(a.o=Wx(b.j.o.buffered,b.C),a.B=Wx(b.j.j.buffered,b.C));a.j=J_(b.K);NJ(b.H);LJ(b.H);MJ(b.H)}else this.o&&(a.o=ey(this.o));this.W&&zda(this.W,a);return a};h.TA=function(){if(this.F){var a=this.F,b=this.j.oauthToken;a.G=b;a.O("oauthtoken",b)}m2(this)};h.SA=function(a){nJ(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.MC=function(a){var b=a.target.j.src;if(this.o&&this.o.j.src&&this.o.j.src==b){switch(a.type){case "error":if(this.X.We&&2==this.o.getErrorCode()){(0,window.setTimeout)(A(function(){this.o&&(this.j.Gf&&this.o.load(),b2(this))},this),500);if(this.A)this.A.onError("progressive.net");return}break;case "durationchange":var c=this.o.j.duration;(!this.H||(0,window.isFinite)(c)&&0<c)&&1!=c&&this.j.lengthSeconds!=c&&(this.j.lengthSeconds=c,m2(this));break;case "ratechange":this.C&&(this.C.K.A=Math.max(1,
this.o.j.playbackRate));this.D.Pf();break;case "loadedmetadata":this.j.startSeconds&&(0<(this.o.j.seekable||Rx()).length?this.o.j.currentTime=this.j.startSeconds:(this.fa=this.j.startSeconds,this.pauseVideo(!0)));case "loadstart":Bi(this.Ha);this.Zj()||(this.Ha=zi(A(this.Zj,this),100));break;case "progress":cea(this);case "suspend":k2(this);this.O("onLoadProgress",this,bea(this));break;case "seeked":o2(this);break;case "seeking":this.C&&this.C.seek(this.o.getCurrentTime());break;case "playing":this.G.o("plev");
break;case "timeupdate":this.Va=!0;this.Zj();o2(this);k2(this);if(!this.o||this.o.j.src!=b)return;this.O("onVideoProgress",this,this.o.getCurrentTime());this.W&&this.J&&Ada(this.W,this.o.getCurrentTime());break;case "waiting":if(0<(this.o.j.played||Rx()).length&&0==B1(this.o).length&&0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.C)return}this.o&&this.o.j.src==b&&(this.O("videoelementevent",a),a=by(this.B,a,this.Qa,this.X.experiments.na("html5_playing_event_buffer_underrun")),Q1(this,
a))}};h.Qx=function(a){a="available"==a.j.availability;a!=this.Ta&&(this.Ta=a,this.O("airplayavailabilitychange"))};h.Rx=function(){var a=!!this.o.j.webkitCurrentPlaybackTargetIsWireless;a!=this.Sa&&(function(){this.X.Yk=a}(),this.Sa=a)&&(Ow(this.j,this.X),h2(this,"m"));this.O("airplayactivechange")};
h.Zj=function(){var a=this.o;a&&this.Va&&!this.j.Ae&&!Wu("vfp",this.G.j)&&2<=a.j.readyState&&!a.j.ended&&0<Vx(B1(a))&&this.G.o("vfp");if((a=this.o)&&!this.j.Ae&&0<a.j.duration&&(!Wu("pbr",this.G.j)&&a.j.paused&&2<=a.j.readyState&&0<Vx(B1(a))&&this.G.o("pbr",void 0),0<a.getCurrentTime())){Bi(this.Ha);Ai(this.wa);this.j.Ae=!0;n2(this);if(this.A){a=this.A;if(!a.B){var b=OA(a,"playback");a.H=[10+a.j.j.jj,10,10,40+a.j.j.pm-a.j.j.jj,40];var c=a.o;Bi(c.D);c.D=window.NaN;c.D=zi(A(c.update,c),100);c.C=NA(c.o);
c.B=rA(c.o);b.o=MA(a,!0);b.Ha=!0;b.send();a.j.j.Y&&(b=a.j.o,c=a.j.j,b=Tg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Y,oid:c.bd,ptchn:c.ad,pltype:c.ed,content_v:b.da}),TA(a,b));a.j.j.enableCardio&&(a.Qi("playback"),a.C||YA(a));a.j.j.Oe||SA(a);a.B=!0;a=a.o;a.j=a.o.A();a.C=NA(a.o);.5<a.j-a.A&&(a.A=a.j)}xi(A(this.Dl,this),4500)}this.O("playbackstarted");yu()&&Bu();return!0}return!1};
h.Ry=function(){this.Da&&(this.o.Lb(this.Da),delete this.Da,y1(this.o))};h.iw=function(){if(this.o){var a=this.getCurrentTime();if(U(this.B,8)&&gy(this.Qa,a,Vs(),ey(this.o))){var b=this.Yf();b&&1>Math.abs(b-a)?this.Kf():Q1(this,hy(this.B,1))}else U(this.B,4)&&ly(this.B)&&ey(this.o)>J1.B&&Q1(this,iy(this.B,1));k2(this)}};h.Wv=function(){this.j.Ea||this.O("connectionissue")};h.EB=function(){z1(this.o,this.o.getCurrentTime()+.1)};
h.Gz=function(a){var b={};qa(b,this.X.o);b.cpn=this.j.clientPlaybackNonce;this.j.K&&(b.vvt=this.j.K);this.X.yb&&(b.authuser=this.X.yb);this.X.pageId&&(b.pageid=this.X.pageId);gc(a.A,b);k1(a,a.F)};h.kz=function(a,b,c){nJ(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};h.lz=function(){h2(this,"r");m2(this)};h.LC=function(a){this.O("heartbeatparams",a)};
h.qz=function(){if(!this.j.Ae&&this.o){0<this.o.j.readyState&&ey(this.o)>=J1.A&&(this.X.experiments.na("html5_stalled_at_start")&&Q1(this,hy(this.B,1)),this.O("playbackstalledatstart"));if(this.A)this.A.onError("qoe.start15s");this.O("loadsofttimeout")}};
h.Dl=function(){if(!this.Aa){var a=new r1(this.j),b;"c1a"in a.A?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)xi(A(this.Dl,this),4500);else{var c;if(a.j&&a.j.fa){b=[a.j.fa];for(c in a.o)if(a.A[c]&&a.o[c]){var d=a.o[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.A&&(a=this.A,a.K||(b=OA(a,"atr"),b.K=c,b.send(),a.K=!0),this.Aa=!0)}}};h.KC=function(){return this.o?this.o.j.playbackRate:1};var q2=[2,5];D2.prototype.A="";D2.prototype.o="";var G2=!1,J2=!1;Fi("showCompanionAdLoaded",function(){J2&&(I2(),J2=!1)});Fi("watchAdsInit",function(){G2&&(G2=!1,F2())});P2.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.j=b-c-d;this.B=je(a-c,0,this.j);this.position=this.B+c;this.o=this.B/this.j};B(R2,Oj);R2.prototype.Zc=function(){return this.adSystem+"_"+this.adType};R2.prototype.kf=function(){return this.Zc()};R2.prototype.getCurrentAd=function(){return this.o?this.o.getCurrentAd():null};R2.prototype.vj=w;B(Y2,G);Y2.prototype.start=function(){(0,window.isNaN)(this.j)&&(this.A=K(),this.j=Rd(this.C,this.B-this.o,this))};Y2.prototype.stop=function(){(0,window.isNaN)(this.j)||(this.A=this.o=0,Sd(this.j),this.j=window.NaN)};Y2.prototype.pause=function(){(0,window.isNaN)(this.j)||(this.o=K()-this.A,Sd(this.j),this.j=window.NaN)};Y2.prototype.S=function(){(0,window.isNaN)(this.j)||Sd(this.j)};B(Z2,R2);Z2.j=15;h=Z2.prototype;h.vj=function(){U2(this.D,13);this.N||this.o.destroy();this.F=this.H=!1;b3(this)};h.Zc=function(){var a=0,a=this.getCurrentAd();if($T(a))a=3;else if(aU(a))a=4;else if(bU(a))a=dU(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};h.kf=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.j,b=$2(a);e9(a.app,b);this.D.A=K();this.G=this.j.ua();this.C.subscribe("progresssync",this.Wo,this);this.j.o.T&&pf(Ze("video-ad-status-bar",this.G));Xd(this.G,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Bm,this);try{this.A.R(this.o,"adError",this.QD),this.A.R(this.o,"click",this.PD),this.A.R(this.o,"complete",this.Hy),this.A.R(this.o,"engagedview",this.Wy),this.A.R(this.o,"pause",this.Gr),this.A.R(this.o,"start",this.Hr),this.A.R(this.o,"skip",this.Ir),
this.A.R(this.o,"video_extend_auto_skipped",this.Ir),this.A.R(this.o,"MUTE_AD",this.vj),this.A.R(this.o,"skippableStateChanged",this.uA),this.A.R(this.o,"youTubeChannelMetadata",this.Az),this.A.R(Rq(this.j.J),"mouseup",this.RD),this.Bm(),this.N||this.o.start()}catch(c){e3(this,c)}};
h.Jr=function(a,b,c){if("newdata"==a&&this.B!=c){a={video_id:c.videoId};b=new jea;b.isSkippable=this.T;b.skip=A(this.o.skip,this.o);b.skipShown=A(this.o.oq,this.o);var d=this.getCurrentAd();if(d){b.clickThroughUrl=IU(d)||"";var e;(e=this.j.o.Fa)||(e=c.lengthSeconds,(d=EU(d))?(mT(d,e),e=lT(d)):e=null);b.skipTime=e||0;b.adSystem=this.adSystem}b.videoId=c.videoId;b.videoId||(b.videoUrl=X2(this)||"");c.spacecastModule=this.W;c3(this.j,-1,a,b)}this.B=c};
h.Wc=function(a){a=a.state;U(a,1)||this.J.pause();U(a,128)?e3(this,Error(a.j.message||"Video player error.")):U(a,1)&&this.J.start()};h.Hr=function(){this.K=!0;this.F=!1;if(!this.H){this.H=!0;var a=this.D;V2(a);var b=W2(a);if((0,window.isNaN)(a.A))V2(a);else{var c=K()-a.A;b.ad_stl=c}T2(a,4,b);d3(this.j,1);a3(this,!1);(a=Q("ADS_INSTREAM_FIRST_PLAY"))&&this.j.O("publish_external_event","onAdAnnounce",a)}c3(this.j,1);this.O("adPlay",this)};h.Gr=function(){this.K&&(this.K=!1,c3(this.j,2))};
h.Hy=function(){if(!this.F){var a=this.D;V2(a);var b=W2(a),c=f3(a.j);c?b.ad_fmt=c:V2(a);T2(a,5,b);b3(this);this.F=this.H=!1}};h.Wy=function(){var a=this.D;a.j.O("AD_LOGGING_EVENT",777,W2(a))};h.Ir=function(){this.F=!0;var a=this.D,b=W2(a),c=f3(a.j);c?b.ad_fmt=c:V2(a);T2(a,14,b);b3(this)};h.uA=function(){var a=Q("ADS_INSTREAM_SKIPPABLE");a&&this.j.O("publish_external_event","onAdAnnounce",a)};
h.Az=function(){var a=this.getCurrentAd();if(a){var b=a.U;if((a=a.N)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.o;c.channelVideoCount=a.videoCount;this.j.O("publish_external_event","onAdMetadataAvailable",c)}}};h.QD=function(a){var b={};try{b.error_code=a.event.getError().getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}U2(this.D,32,b);e3(this,a.event.getError())};
h.PD=function(){var a=this.D;V2(a);var b=W2(a);if(a.o){var c=e5(a.B);b.ck_xy=Math.round(a.o.x-c.left)+"x"+Math.round(a.o.y-c.top);b.ck_wh=c.width+"x"+c.height}T2(a,15,b);this.o.pause();this.O("select")};h.Wo=function(){};h.Ro=function(){YY(this.o,"abandon");a3(this,!0)};
h.S=function(){this.j.unsubscribe("control_toggle_play_pause",this.Kr,this);this.j.unsubscribe("control_play",this.xl,this);this.j.unsubscribe("control_pause",this.wl,this);this.j.unsubscribe("onResize",this.Bm,this);this.A.removeAll();this.C.unsubscribe("statechange",this.Wc,this);this.C.unsubscribe("internalAbandon",this.Ro,this);this.C.unsubscribe("internalvideodatachange",this.Jr,this);this.C.unsubscribe("progresssync",this.Wo,this);this.N||this.o.destroy();this.L&&(nf(this.L),this.L=null);this.U&&
(pf(this.U),this.U=null);this.G&&($d(this.G,["ad-showing","ad-interrupting"]),this.G=null);this.F=!1;var a=this.j;if(a.D){var b=a.app,a=a.D;i9(b);a!=b.j&&e9(b,b.j)}this.J.dispose();this.J=null;Z2.M.S.call(this)};h.Kr=function(){this.K?this.wl():this.xl()};h.xl=function(){this.o.resume();this.Hr()};h.wl=function(){this.o.pause();this.Gr()};h.Bm=function(){dg(Rq(this.j.J),this.j.app.D.Ka())};h.RD=function(a){n(a.j)||Il(a);var b=a.j;n(a.o)||Il(a);this.D.o=new ne(b,a.o)};B(i3,R2);h=i3.prototype;
h.show=function(){if(!this.F||!m5(this.j)){L(this.j.ua(),"ad-showing");this.A=Rq(this.j.J);var a=this.o.getCurrentAd().getHeight();this.A.style.height=Tf(a,!0);L(this.A,"ad-overlay");this.C.R(this.A,"mouseup",this.VD);try{this.C.R(this.o,"autoClose",this.ey),this.C.R(this.o,"userClose",this.OA),this.C.R(this.o,"userRecall",this.PA),this.C.R(this.o,"click",this.UD),this.C.R(this.o,"impression",this.hz),this.C.R(this.o,"adError",this.TD),j3(this,"normal"),this.G||this.o.start(),this.Cm(),this.j.subscribe("onResize",
this.xj,this),this.j.subscribe("onStateChange",this.Lr,this),this.O("adEnd",this)}catch(b){this.O("adError",b)}}};h.S=function(){this.C.removeAll();this.j.unsubscribe("onResize",this.xj,this);this.j.unsubscribe("onStateChange",this.Lr,this);Yd(this.j.ua(),"ad-showing");this.o&&(this.G||this.o.destroy(),this.o=null);this.A&&Yd(this.A,"ad-overlay");this.A=null;this.F=!1;i3.M.S.call(this)};
h.OA=function(){this.A&&this.o&&this.o.getCurrentAd()&&(this.A.style.height=Tf(0,!0));this.F=!0;var a=this.D;a.o=K();var b=h3(a);g3(a,6,b);this.j.O("overlay_ad_close")};h.ey=function(){this.j.O("overlay_ad_close")};h.PA=function(){this.j.O("overlay_ad_open")};h.UD=function(){this.j.pauseVideo();var a=this.D;a.o=K();var b=h3(a);if(a.A){var c=e5(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}g3(a,100,b)};
h.hz=function(){var a=Q("ADS_OVERLAY_IMPRESSION");a&&this.j.O("publish_external_event","onAdAnnounce",a);this.j.O("overlay_ad_open")};h.VD=function(a){this.D.A=a.target==a.currentTarget?null:new ne(a.pageX,a.pageY)};h.TD=function(a){a=a.event.getError();this.O("adError",a)};h.Lr=function(a){U(a.state,16)&&j3(this,"normal")};h.xj=function(){};h.Cm=function(){var a=this.D;a.B=K();var b=h3(a);g3(a,3,b)};B(k3,G);k3.j="rm";k3.o=10;k3.C=200;k3.A=200;k3.B=190;h=k3.prototype;
h.load=function(){var a;a=this.j.app.D.Ka();var b;this.j.o.j?b=!1:(b=0<(this.D&3)?k3.B:k3.A,b=a.width<k3.C||a.height<b);if(b){b=this.A;var c=E2(b);c.ck_wh=a.width+"x"+a.height;f5(b.j,14,c);K2();this.Ec(Error("The player size is too small."))}else if(this.C=this.j.N)a=this.A,q3(a.j,9,E2(a)),a=B2(this.j),(b=this.j.o.serverPrefetchedVast)&&0<(this.D&3)?(a.o=b,this.j.o.serverPrefetchedVast=void 0):a.j=this.ld(),this.C.R("adsManagerLoaded",this.Er,!1,this),this.C.R("adError",this.Dr,!1,this),this.Ni(this.C,
a)};h.lk=function(){var a=A2(this.j.o,this.j.V(),C2(this.j));a.surveyCreativeData=this.j.o.surveyCreativeData;a.youTubeAdNamespace=this.fg();return a};h.fg=function(){return this.U};
h.Er=function(a){if(a.B===this){Ru("aml");try{var b=this.lk(),c=a.A}catch(d){this.Sd(d);return}this.B.R(c,"companionBackfill",A(this.OD,this,c));this.B.R(c,"loaded",A(this.ND,this,c));this.B.R(c,"adError",A(this.MD,this,c));this.B.R(c,"allAdsCompleted",w);this.B.R(c,"contentPauseRequested",w);this.B.R(c,"contentResumeRequested",w);c=aV(a,this.j.L,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Sd(d)}}};
h.ND=function(a,b){this.B.removeAll();var c=b.getAd(),d=WT(c),e=this.A,f=E2(e);f.ad_man=d?"instream":"overlay";q3(e.j,12,f);e=a.getMediaUrl();switch(d?this.nf(a,c,e):this.qd(a,c)){case 0:r3(this);break;case 1:a.destroy();this.Ec(Error("Unable to create a display state."));break;case 2:c=this.A;f5(c.j,21,E2(c));a.destroy();this.Ec(Error("Fallback to next ad."));break;case 3:this.Ec(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.MD=function(a,b){this.B.removeAll();a.destroy();this.Sd(b.getError())};h.Dr=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.A===this&&this.Sd(b)};h.OD=function(){p3(this)};h.nf=function(a,b,c){var d=C2(this.j)&&C2(this.j).spacecastModule;if(d&&c&&!this.P.test(c))return 3;n3(this,pU(b));m3(this,new Z2(this.fg(),this.j,a,bU(b),void 0,d));return 0};h.qd=function(a,b){n3(this,pU(b));m3(this,new i3(this.fg(),this.j,a));return 0};
h.Sd=function(a){if(a){var b=this.A,c=E2(b);a&&w2(a,c);f5(b.j,32,c);this.Ec(a)}};h.Ec=function(){c4(this.G)};h.S=function(){this.C&&(this.C.ya("adsManagerLoaded",this.Er,!1,this),this.C.ya("adError",this.Dr,!1,this));this.N.removeAll();this.B.removeAll();k3.M.S.call(this)};h.Ni=function(a,b){try{D_(a,b,this),Ru("ar")}catch(c){this.Sd(c)}};B(s3,R2);s3.prototype.show=function(){F2();this.O("adEnd",this);this.C=zi(A(this.D,this),1E3)};s3.prototype.S=function(){w3(this);s3.M.S.call(this)};s3.prototype.D=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.kf();10<=this.A||!a?(w3(this),this.O("AD_LOGGING_EVENT",2,b)):a()&&(w3(this),this.O("AD_LOGGING_EVENT",3,b))};B(x3,k3);x3.prototype.lk=function(){var a=x3.M.lk.call(this);a.ln=0==this.J;a.Ou=m5(this.j)?a.ln:!0;return a};x3.prototype.ld=function(){var a;var b=this.F;a=o3(this);(b=4==this.D&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(ta(b,"http:")&&(b=b.substr(5)),a=oj(b,{videoad_start_delay:a})):a="";return a};x3.prototype.qd=function(a,b){if(this.j.o.j)return 1;1==this.o.j&&(l3(this),q3(this.j,1));return x3.M.qd.call(this,a,b)};
x3.prototype.Ec=function(a){var b=this.j.o;b.j?x3.M.Ec.call(this,a):b.Y||this.D&4?(m3(this,new s3(this.j)),r3(this)):x3.M.Ec.call(this,a)};y3.prototype.j=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,k;b&12&&(e.push("300x250"),f="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",k=1);var l=k;k=fc(this.G);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.B&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
null==k.ord&&(this.o||(this.o=Math.floor(999999999*Math.random()).toString()),k.ord=this.o);d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&cc(k,"sz");e=kj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.A,"pfadx",this.C,";",e,"?"].join("")};z3.prototype.j=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new O(this.o),f=e.j,k=f.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.o};B(u3,i3);u3.prototype.xj=function(){};u3.prototype.Zc=function(){return"1_3"};u3.prototype.Cm=function(){1==this.J?this.O("AD_LOGGING_EVENT",2,{}):u3.M.Cm.call(this)};B(A3,k3);A3.prototype.ld=function(){return this.T.j(r2(this.o),this.D)};A3.prototype.qd=function(a,b){n3(this,pU(b));var c=ZT(b);if(y2(c,k3.j))return 1==this.D||m5(this.j)||K2(),a.sendImpressionUrls(),this.j.o.H?(m3(this,new s3(this.j)),0):2;if(y2(c,"blockAllAds"))return a.sendImpressionUrls(),m3(this,new u3(this.j,a,1)),0;if(y2(c,"hideMaster"))return m3(this,new u3(this.j,a,0)),0;if(this.j.o.j)return 1;m3(this,new i3(this.fg(),this.j,a));return 0};B(B3,A3);var qea={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=B3.prototype;h.ld=function(){if(this.j.o.da){var a=new z3(this.j.o.dynamicAllocationAdTag);return a.j(r2(this.o),this.K)}a=new y3(this.j.o.dynamicAllocationAdTag,this.j.o,this.J);return a.j(r2(this.o),this.K)};h.Ni=function(a,b){if(this.H){b.A=z2(this.H);var c=this.j.o.ga;c&&(b.B=c);b.fh=o3(this)}B3.M.Ni.call(this,a,b)};h.nf=function(a,b,c){C3(this,a);return 1!=this.F&&2!=this.F?1:B3.M.nf.call(this,a,b,c)};
h.qd=function(a,b){C3(this,a);switch(this.F){case 1:return B3.M.qd.call(this,a,b);case 2:var c;this.j.o.j?c=1:(1==this.o.j&&(l3(this),q3(this.j,1)),n3(this,pU(b)),m3(this,new i3(2,this.j,a)),c=0);return c;default:return 1}};h.fg=function(){return this.F||0};h.Ec=function(a){var b=this.j.o;b.j?B3.M.Ec.call(this,a):b.Y||this.H&4?(m3(this,new s3(this.j)),r3(this)):B3.M.Ec.call(this,a)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
D3.prototype.cancel=function(a){if(this.j)this.A instanceof D3&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.L?this.L.call(this.K,this):this.H=!0;this.j||(a=new N3,G3(this),E3(this,!1,a))}};D3.prototype.J=function(a,b){this.F=!1;E3(this,a,b)};D3.prototype.Lh=function(a){G3(this);E3(this,!0,a)};
D3.prototype.then=function(a,b,c){var d,e,f=new xd(function(a,b){d=a;e=b});J3(this,d,function(a){a instanceof N3?f.cancel():e(a)});return f.then(a,b,c)};vd(D3);B(H3,sa);H3.prototype.message="Deferred has already fired";H3.prototype.name="AlreadyCalledError";B(N3,sa);N3.prototype.message="Deferred was canceled";N3.prototype.name="CanceledError";M3.prototype.o=function(){delete L3[this.fi];throw this.j;};var L3={};B(O3,k3);O3.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";O3.A="43";O3.j=function(a){var b=new D3;yj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Ud:function(){var c=Error(a+" timed out");G3(b);E3(b,!1,c)},onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);G3(b);E3(b,!1,c)},jb:function(a){b.Lh(a)}});return b};O3.prototype.ld=function(){return""};
O3.prototype.Ni=function(a,b){var c=this.D;c&1||c&4||c&8?this.F?c&8?hea(this.F):("goo.gl"==Kg(this.F)?(c=O3.j(O3.o+this.F),I3(c,function(a){a=ae(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new O(a.longUrl);lh(a,"video_format",O3.A);return O3.j(a.toString())},this)):c=O3.j(this.F),I3(c,function(c){b.o=c.responseText;D_(a,b,this)},this),J3(c,null,this.Sd,this)):this.Sd(Error("Invalid empty URL")):this.Sd(Error("Invalid request type: "+
c))};B(P3,R2);P3.prototype.show=function(){var a=C2(this.j).videoId;if(a){var b=this.o.getCurrentAd();mG(this.j.V().J,a,{ue:OU(b)||null,Rf:PU(b)||null,Uh:!1});a={};a.format=this.Zc();a.at=this.kf();x2(b,a);this.O("AD_LOGGING_EVENT",3,a)}};B(Q3,k3);Q3.prototype.ld=function(){return this.j.o.Ua||""};Q3.prototype.qd=function(a,b){n3(this,pU(b));m3(this,new P3(this.j,a));5!=this.o.j&&p3(this);return 0};Q3.prototype.nf=function(){return 1};B(R3,Q3);R3.prototype.ld=function(){return this.j.o.la||""};B(t3,i3);t3.prototype.xj=function(){};t3.prototype.Zc=function(){return"4_3"};B(X3,k3);
X3.prototype.ld=function(){var a;if(C(this.F)||0!=r2(this.o)){var b=this.H;if(b.j.fa&&b.j.Aa){a={};var c="youtube_watch_"+b.o;a.nw="10613";a.asnw=b.j.fa;a.ssnw=b.j.fa;a.caid=b.j.Aa;a.vdur=b.F;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.j.Da)||(c._fw_d_001=b.j.Da);b.j.gender&&(c._fw_d_002=b.j.gender);b.j.wa&&(c["_fwu:10613:lang"]=b.j.wa);b.j.ka&&(c._fw_dbp=b.j.ka);b.j.La&&(c._fw_distributorvideoassetid=b.j.La);c._fw_yt_type=V3(b)?"long":"short";if(S3(b)){a.prof=V3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=U3(b.A)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.C&1&&!b.D){e={};d=T3(b);if(W3(b.A)){var f;if(W3(b.A)){f=0;var k=b.B.A;if(k)for(var k=k.A,l=0;l<k.length&&(W3(k[l])&&f++,k[l].getId()!=b.A.getId());l++);}else f=0;d=d+f}e.slid=d;e.ptgt="a";e.slau=T3(b);e.tpos=r2(b.A.Pa).toString();d=kj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=kj(e,"&")+";"}b.C&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=
kj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=kj(e,"&")+";");b.C&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=kj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+kj(a,"&")+";"+kj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.o.split("_")[0],a.prof="10613:10613_youtube_"+b.o,a.crtp="vast2s",a.flag="+emcr",d={},b.D||(d.ptgt="a",d.slid="preroll",d.slau=T3(b),d.w="480",d.h="360",d.tpos="0",d.tpcl="preroll",
d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+kj(a,"&")+";"+kj(c,"&")+";"+kj(d,"&")}else a=""}else a=this.F;return a};X3.prototype.nf=function(a,b){return X3.M.nf.call(this,a,b,null)};X3.prototype.qd=function(a,b){var c=ZT(b);if(y2(c,k3.j))return this.G.C=ec(a),2;if(this.j.o.j)return 1;if(y2(c,"hideMaster")){if(a.F&&a.F.Be()){var c=a.F.Be(),d;d=a.getCurrentAd();if(iK()){var e=d.J;d.J=[];d=e}else d=[];c.impressionUrls=d}m3(this,new t3(this.j,a));return 0}return X3.M.qd.call(this,a,b)};Y3.prototype.getType=function(){return this.A};Y3.prototype.create=function(a,b){switch(this.A){case 1:return new x3(a,b,this.j);case 2:return new A3(a,b,this.j);case 3:return new B3(a,b,this.j,this.o);case 5:return new X3(a,b,this.j);case 4:return new O3(a,b);case 7:return new Q3(a,b,this.j);case 8:return new R3(a,b,this.j);default:return null}};B(Z3,Oj);h=Z3.prototype;h.getId=function(){return this.D};h.show=function(){this.H?this.j instanceof i3&&j3(this.j,"normal"):(this.H=!0,this.j instanceof Z2&&d4(this.A,"bs"),this.j.subscribe("adEnd",this.Vo,this),this.j.subscribe("adError",this.Cr,this),this.j.subscribe("AD_LOGGING_EVENT",this.np,this),this.j.subscribe("select",this.Br,this),this.j.show(),f4(this,!0))};h.Vo=function(){this.o&&(g4(this),g5(this.A));v3(this)};
h.Cr=function(a){if(a){var b={};w2(a,b);e4(this,b);f5(this.A,32,b)}g4(this);v3(this)};h.np=function(a,b){e4(this,b);q3(this.A,a,b)};h.Br=function(){this.G=!1};h.S=function(){g4(this);this.j=null;null!=this.C&&(this.C.dispose(),this.C=null);Z3.M.S.call(this)};var l4=[new p2(1)];var yea={Wt:"m",Ct:"f"};var n4=["9412857","9412859"];B(o4,G);o4.prototype.P=function(){this.B=0};
o4.prototype.Wc=function(){if(U(hz(this.j.j),8)){if(p4(this)){this.D=this.D||K()/1E3;this.G&&(this.C+=K()/1E3-this.G);var a=this.j.getCurrentTime(1);0!=this.o&&Math.abs(a-this.o)>this.N?(this.o=this.j.getCurrentTime(1),r4(this,"seek"),this.C=0,this.A.push(K()/1E3)):this.B||0==this.o||(r4(this,"pause"),this.C=0,this.A.push(K()/1E3));q4(this)}}else U(hz(this.j.j),4)&&0==this.o&&p4(this)&&(this.o=this.j.getCurrentTime(1),this.B=xi(A(this.P,this),1E3*this.L),this.G=K()/1E3)};
o4.prototype.S=function(){q4(this);this.j.unsubscribe("applicationplayerstatechange",this.Wc,this)};B(s4,G);h=s4.prototype;h.Bq=function(){this.j.subscribe("beginseeking",this.Rh,this)};h.xq=function(a,b){return a.o&&W3(a)?b+this.B+this.A:b};h.wq=function(a,b){return a.o&&3!=a.Pa.j&&0x7ffffffffffff!=b&&0x8000000000000!=b?b+this.B+this.A:b};h.hn=function(a){if(a.o&&W3(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=$3(a)+this.B,b=new fq(c,c+this.A-1,b);this.C[a.getId()]=b;this.j.cb([b])}};h.Or=function(a){a.o&&W3(a)&&(t4(this,a.getId()),this.Rh())};
h.Rh=function(){(0,window.isNaN)(this.o)||(Ai(this.o),this.o=window.NaN);var a=i5(this.j);w4(this,a,this.j.app.Wa.Bb()/100);Lf(a,"transition","");Lf(a,"opacity","1")};h.Pr=function(a){var b=$3(a)+this.B+this.A,b=50>=1E3*this.j.getCurrentTime(1)-b;a.o&&W3(a)&&b&&(a=.001*($3(a)+this.F),this.j.O("command_seek",a),0>=this.D||(a=i5(this.j),Lf(a,"opacity","0"),w4(this,a,0),xi(A(this.WD,this),0)))};
h.WD=function(){var a=i5(this.j);Lf(a,"transition","opacity "+String(this.D)+"ms linear");Lf(a,"opacity","1");v4(this,a,this.D,1)};h.Nr=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-K()),d=Math.max(0,a.volume+-1*a.volume*c/d);w4(this,a,d);this.o=0<d?Aq(A(this.Nr,this,a,b,c),c):window.NaN}};
h.Mr=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-K()),e=this.j.app.Wa.Bb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);w4(this,a,d);this.o=d<e?Aq(A(this.Mr,this,a,b,c),c):window.NaN}};h.S=function(){this.Rh();this.j.unsubscribe("beginseeking",this.Rh,this)};B(x4,s4);h=x4.prototype;h.Bq=w;h.xq=function(a,b){return b};h.wq=function(a,b){return b};h.hn=w;h.Or=w;h.Pr=w;h.S=w;B(z4,G);h=z4.prototype;h.kn=function(){this.j.app.subscribe("applicationplayerstatechange",this.Wc,this)};h.Pn=function(){return 4-this.B/1E3};h.Yi=function(a){return Yb(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
h.Vp=function(a){var b=!1,c={};F(a.childNodes,A(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?y4(e):null)b=b||Aea(a),c[e]=a},this));if(!b||0==Sb(c))return!1;a=P(Wb(c),function(a){return(0,window.parseInt)(a,10)});if(!Cea(this,a))return!1;Ob(c,A(function(a,b){var c=(0,window.parseInt)(Zb(this.A,function(a){return a==b}),10);c&&a.setAttribute("timeOffset",Bea(this,c))},this));return!0};
h.jn=function(a){if(!(0>=this.H)){var b=[];F(a,A(function(a){if(Yb(this.A,1E3*a)){var d=new fq(1E3*this.Yi(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=d;b.push(d)}},this));this.j.cb(b)}};h.Ur=function(a){if(Yb(this.A,1E3*a)){var b=i5(this.j);a=Math.max(0,1E3*a-1E3*this.j.getCurrentTime(1));Lf(b,"transition","opacity "+String(a)+"ms linear");Lf(b,"opacity","0");B4(this,b,a,0)}};
h.Vr=function(a){A4(this,1E3*a)&&(this.C[a]&&(CH(this.j.j,[this.C[a]],void 0),delete this.C[a]),this.ph())};h.Wc=function(){U(hz(this.j.j),4)&&this.ph()};h.ph=function(){(0,window.isNaN)(this.o)||(Ai(this.o),this.o=window.NaN);var a=i5(this.j);C4(this,a,this.j.app.Wa.Bb()/100);Lf(a,"transition","");Lf(a,"opacity","1")};
h.Wr=function(a){if(Yb(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.j.getCurrentTime(1)-b&&(this.j.O("command_seek",this.Yi(a)+this.G/1E3),0>=this.D||(a=i5(this.j),Lf(a,"opacity","0"),C4(this,a,0),xi(A(this.bE,this),0)))}};h.bE=function(){var a=i5(this.j);Lf(a,"transition","opacity "+String(this.D)+"ms linear");Lf(a,"opacity","1");B4(this,a,this.D,1)};h.Tr=function(a,b,c){if(this.o){var d=Math.max(1,b-K()),d=Math.max(0,a.volume+-1*a.volume*c/d);C4(this,a,d);this.o=0<d?Aq(A(this.Tr,this,a,b,c),c):window.NaN}};
h.Sr=function(a,b,c){if(this.o){var d=Math.max(1,b-K()),e=this.j.app.Wa.Bb()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);C4(this,a,d);this.o=d<e?Aq(A(this.Sr,this,a,b,c),c):window.NaN}};h.S=function(){this.ph();this.j.unsubscribe("applicationplayerstatechange",this.Wc,this)};B(D4,z4);h=D4.prototype;h.kn=w;h.Pn=function(){return 4};h.Yi=function(a){return a};h.Vp=function(){return!1};h.Ur=w;h.jn=w;h.ph=w;h.Vr=w;h.Wr=w;h.S=w;B(F4,G);F4.prototype.B=function(){var a=this.j.o.o;if(this.D&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ob(this.F.B,function(a){a.isDisposed();if(a.isVisible&&!(0>=I4(this,a))){var f;f=a.getId();f=this.F.F[f];if(I4(this,a)>b){var m=!H4(this,a);m!=f.visible&&(f.visible=m,c.push(f));m||(f=I4(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);0<c.length&&this.j.j.cb(c,1);if(d){var f=0;0<this.A&&(f=K()/1E3-this.A);Eea(this,a-f-e+2)}else G4(this)}};
F4.prototype.o=function(){return this.A};F4.prototype.S=function(){G4(this);this.j.unsubscribe("endseeking",this.B,this)};B(J4,G);h=J4.prototype;h.Df=function(a){a.unsubscribe("adBreakComplete",this.Df,this);this.K=xi(A(this.Gx,this,a),0)};
h.Gx=function(a){var b=Gea(this,a),c=b.previous,b=b.next;this.K=0;var d,e=!1;switch(a.Pa.j){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&fa(b.Pa.o)?$3(b)-1:0x7ffffffffffff}0==a.D&&(d4(this.j,"bl"),b4(a)||d4(this.j,"fb"));"loaded"!=a.B||0==a.D&&b4(a)&&b&&1E3*this.j.j.getCurrentTime()>=$3(b)?(c&&a4(c)&&!e&&(b=d,d=$3(c),d>b&&(b=d),M4(this,c),L4(this,c,b)),this.ze(a)):(this.B[a.getId()]=a,L4(this,a,d),nq(this.j));Sb(this.B)==this.A.length&&this.C.B();K4(this)};
h.ze=function(a){a.unsubscribe("adBreakComplete",this.Df,this);this.o&&a==this.o&&(this.o=null);M4(this,a);ob(this.A,a);delete this.B[a.getId()];Mb(a)};h.hq=w;h.wj=function(a){return this.B[a]};
h.ml=function(a){if(a.o){if(3!=a.Pa.j&&a.G){var b=this.j;l5(b);sq(b);this.D.Pr(a)}else b4(a)&&!a.G?(b=this.j,l5(b),sq(b)):l5(this.j);this.ze(a);null!=this.j.C&&(a=this.C.o(),a=0<a?Math.floor(K()/1E3-a):0,m4(this.j.C,"set_previous_ad_end_time",{tfla:a}));a=this.C;a.D&&0<a.j.o.o&&(a.A=K()/1E3,a.B());for(;!kb(this.N);)N4(this,this.N.shift())}else a.isVisible||this.ze(a)};h.S=function(){this.K&&Ai(this.K);Mb(this.D);Mb(this.C);Mb(this.da);F(this.A,this.ze,this);J4.M.S.call(this)};B(P4,J4);h=P4.prototype;h.wj=function(a){a=P4.M.wj.call(this,a);if(!a)return null;if(!a.J)return a;var b;b=null;if(this.G.length){var c=b=this.G.shift();c.Pa=a.Pa;c.D=a.getId()}b&&"loaded"==b.B?(a.unsubscribe("adBreakComplete",this.Df,this),this.B[a.getId()]=b,this.A[this.A.indexOf(a)]=b,Mb(a)):(this.Ff(),b&&(Mb(b),b=null),this.ze(a));b&&!b.o&&this.Ff();return b};h.Df=function(a){!U3(a)||"loaded"==a.B&&a.o||this.Ff();P4.M.Df.call(this,a)};
h.ml=function(a){a.o&&10<this.U?Q4(this):this.Ff();P4.M.ml.call(this,a)};h.Ff=function(){if(!this.isDisposed())for(R4(this);this.J.length&&this.L.length+this.G.length<this.T;){var a=this.J.shift();a.subscribe("adBreakComplete",this.Uo,this);this.L.push(a);c4(a)}};h.hq=function(){Q4(this)};h.Uo=function(a){a.unsubscribe("adBreakComplete",this.Uo,this);ob(this.L,a);this.G.push(a)};h.S=function(){R4(this);F(this.L,Mb);F(this.G,Mb);F(this.J,Mb);P4.M.S.call(this)};B(S4,J4);S4.prototype.Xg=function(a){this.ca=a};S4.prototype.getVideoData=function(){return this.ca};S4.prototype.Y=function(a){"loaded"==a.B&&this.J.push(a);a.unsubscribe("adBreakComplete",this.Y,this)};
S4.prototype.P=function(){if(null!=this.o&&0<this.J.length){var a=this.J.shift();delete this.B[r2(a.Pa)];var b=Math.floor(K()/1E3)-this.$;this.$=null;a.unsubscribe("adBreakComplete",this.P,this);this.ze(a);this.o=null}0<this.L?(this.L--,T4(this)):(a=this.U,l5(a),sq(a),(0,window.isFinite)(b)&&(this.T?S1(this.G,window.Infinity,!0):S1(this.G,this.G.getCurrentTime()+b,!0)))};B(U4,G);U4.prototype.F=function(){this.j||(this.j=V4(this.A.Md()));this.o.j.cb(Vb(this.j),1)};
U4.prototype.C=function(){var a=this.o.o.o;if(!(0>=a)&&this.j){var b=this.o.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;F(this.A.Md(),function(a){var f=this.j[a];if(f){var m=this.A.K.get(a);m&&m.hc>b?(a=!v_(this.G,m),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=m.hc-b,f<e&&(e=f,d=m))):!m||m.gb()?(CH(this.o.j,[f],void 0),delete this.j[a]):!f.visible&&m&&(f.visible=!0,c.push(f))}},this);0<c.length&&this.o.j.cb(c,1);if(d){var f=0;0<this.D&&(f=K()/1E3-this.D);Iea(this,a-f-e+2)}else W4(this)}};
U4.prototype.S=function(){U4.M.S.call(this);this.o.unsubscribe("endseeking",this.C,this);W4(this)};B(Y4,G);var Nea={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4};h=Y4.prototype;
h.load=function(a){if(this.G=this.j.N){this.C=E4(this.j);var b=B2(this.j);b.o=Kea(this,a);b.ii=this.j.L.A;b.wb.GET_MIDROLL_POSITION_IN_SEC=A(this.C.Yi,this.C);if(a=h4(this.j.o).get(3)){var c=this.j.V();t2(c,["9418778","9417893","9417894","9417895","9419817"])||(b.A=z2(a));if(a=this.j.o.ga)b.B=a}this.G.R("adsManagerLoaded",this.Rr,!1,this);this.G.R("adError",this.Qr,!1,this);D_(this.G,b,this)}};
h.Rr=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:A(function(){return this.j.getCurrentTime(1)},this),enumerable:!0});Object.defineProperty(b,"duration",{get:A(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=Lea(this);this.o=aV(a,this.j.L,b,c)}catch(d){$4(this,d);return}if(this.H=this.o.ko(b,this.j.o.o)){this.C.jn(this.o.Md());this.L=new o4(this.j,this.H);this.F=new U4(this.j,this.o,this.H);H(this,this.F);xi(A(this.F.F,this.F),
0);E(this.o.Md(),0)||b5(this);this.D.R(this.o,"companionBackfill",A(this.ZD,this));this.D.R(this.o,"prefetched",A(this.Lx,this));this.D.R(this.o,"loaded",A(this.YD,this));this.D.R(this.o,"adError",A(this.XD,this),!1);this.D.R(this.o,"start",A(this.Mx,this));this.D.R(this.o,"complete",A(this.Ix,this));this.D.R(this.o,"contentPauseRequested",A(this.$D,this));this.D.R(this.o,"contentResumeRequested",A(this.aE,this));this.D.R(this.o,"allAdsCompleted",A(this.Sx,this));try{this.o.init("normal"),this.o.start()}catch(d){m4(this.j.C,
"vmap_ads_manager_init_exception"),this.o.destroy(),this.o=null,$4(this,d)}}}};h.$D=function(a){a5(this);(this.A=a.getAd())&&WT(this.A)&&(a=Z4(this.A),this.B=new Z2(a,this.j,this.o,bU(this.A),!0),O4(this.j),this.C.Vr(this.A.C.j),this.B.show(),null!=this.j.C&&(a=this.H.o(),a=0<a?Math.floor(K()/1E3-a):0,m4(this.j.C,"show_instream_ads",{tfla:a})))};
h.aE=function(a){b5(this);if(this.j.getCurrentTime(1)<this.j.j.getVideoData().lengthSeconds){var b=this.j;l5(b);sq(b);this.A&&WT(this.A)&&this.C.Wr(this.A.C.j)}this.J?this.A=null:a5(this);a=a.getAd();b=!0;if(a&&a!==this.A&&!WT(a)){b=this.o;if(null!=b.A&&b.A.P&&!this.J){this.J=!0;b=this.F;if(null!=b.j[0]){var c=b.j[0];delete b.j[0];b.j[0]=new fq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.o.j.cb([c,b.j[0]],1);b.o.cb([b.j[0]])}this.A=a;return}b=Mea(this,a)}this.A&&WT(this.A)&&g5(this.j);this.A&&
WT(this.A)?(null!=this.j.C&&(b=this.H.o(),b=0<b?Math.floor(K()/1E3-b):0,m4(this.j.C,"set_previous_ad_end_time",{tfla:b.toString()})),b=this.H,0<b.A&&(b.j=K()/1E3),X4(this.F)):a&&a!==this.A&&!WT(a)&&b&&X4(this.F);this.F.F();this.A=a};h.Sx=function(){this.L.H=!0};h.Mx=function(a){(a=a.getAd())&&this.B&&(a=Z4(a),this.B.adSystem=a)};h.Ix=function(a){WT(a.getAd())||this.A!==a.getAd()||(a5(this),this.A=null)};h.Lx=function(a){var b=a.getAd();null!=b&&(this.P[a.A.adBreakTime]=b)};
h.YD=function(a){if(null!=a.getAd()){var b;b=a.getAd().C;0<b.j&&(this.J=!1);b.A||WT(a.getAd())||b5(this)}};h.XD=function(a){$4(this,a.getError())};h.Qr=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.A===this&&$4(this,b)};h.ZD=function(){H2();I2()};h.S=function(){a5(this);this.G&&(this.G.ya("adsManagerLoaded",this.Rr,!1,this),this.G.ya("adError",this.Qr,!1,this));this.N.removeAll();this.D.removeAll();this.K=!1;this.o&&(this.o.destroy(),this.o=null);Mb(this.C);Mb(this.L);Y4.M.S.call(this)};B(c5,F_);c5.A=10;c5.o=1E3;c5.j="livead";c5.Xa=function(a){return!!a.Wa.getVideoData().adModule};h=c5.prototype;h.Xa=function(){return c5.Xa(this.app)};
h.create=function(){c5.M.create.call(this);this.C=new zea(this);d4(this,"i");this.o=new wea(this.V(),this.j.getVideoData().B||{});this.K=new Hea(this,this.j);this.Y=!1;if(this.N)this.N.j.A.D=fS();else{var a=this.o.T?void 0:Vq(this.J),b=new E_(this.app,2),c=Rq(this.J);b.o||(b.o=ec(b.A),b.o.addEventListener=A(b.Bv,b),b.o.removeEventListener=A(b.Cv,b));this.L=new XR(c,void 0,a,b.o,!0);this.L.setSize(-1,-1);this.N=new C_(this.L)}if(Boolean(this.o.vmap&&!this.o.ca)){this.B=new Y4(this);try{this.B.load(this.o.vmap)}catch(d){m4(this.C,
"vmap_load_exception"),this.B.dispose(),this.B=null,k5(this,k4(new j4(this)))}}else k5(this,k4(new j4(this)));this.$.push(Fi("showCompanionAdLoaded",this.Cy,this));a={};a.allowed=this.K.B;oq(this,{},a)};h.destroy=function(){Li(this.$);this.$.length=0;this.W&&l5(this);if(this.D){var a=this.app,b=this.D;i9(a);b!=a.j&&e9(a,a.j)}Nb(this.A,this.D,this.B);this.K=this.o=this.B=this.ca=this.D=this.A=null;Sq(this.J);J2=G2=!1;this.C=null;this.H&&c5.M.destroy.call(this)};h.V=function(){return this.app.V()};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};h.Ia=function(){return this.j.Ia()||this.o.B};h.nh=function(){var a;if(this.K){a=this.K;var b={allowed:a.B};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.A&&(b.at=a.A);a=b}else a=c5.M.nh.call(this);return a};h.ua=function(){return this.j.ua()};h.getVideoData=function(){return this.ca};h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};h.getAdState=function(){return this.T};
h.oc=function(a){c5.M.oc.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.wj(b);if(d&&!H4(c.C,d)&&(c=c.D,d.o)){var e=i5(c.j),d=Math.max(0,$3(d)+c.B+c.A-1E3*c.j.getCurrentTime(1));Lf(e,"transition","opacity "+String(d)+"ms linear");Lf(e,"opacity","0");v4(c,e,d,0)}}else N4(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.P[b])&&WT(c)&&d.C.Ur(b)):0>b?(b=this.N.j,d=new bV("contentComplete"),
b.Z(d),d.B&&(vK(rK(),41351033)||b.A.clear(),null!=b.o&&(d=b.o.Be(),null!=d&&wS(d,b.A.j)))):(b=this.B,null!=b.A&&(b=b.o,null!=b.A&&b.A.start())));if(a.getId()===c5.j&&null!=h5(this)){b=h5(this);for(a=Math.floor(a.start/1E3);n(b.B[a]);)a++;var d=b.fa++,c=0==a?new p2(1):new p2(2,a),e=b.U,f;f=i4(b.U.o,c.j);d=new Z3(e,d,c,f,!1);b.B[a]=d;d.subscribe("adBreakComplete",b.Y,b);c4(d)}};
h.Gc=function(a){c5.M.Gc.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=this.getCurrentTime(1)*c5.o;this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.B[b])&&c.o==b&&!b.o&&b.isVisible&&b.H&&b.j instanceof i3&&j3(b.j,"fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.C.ph();a.getId()===c5.j&&null!=h5(this)&&this.getCurrentTime(1)*c5.o>=a.start&&(CH(this.j,[a],1),T4(h5(this)))};h.Td=function(a){this.O(a)};
h.Oy=function(a){var b=h5(this);if(null!=b&&null!=b.G){var c=h5(this).G.getCurrentTime();F(a,function(a){0!=c&&a.$d>c&&(a=new fq(1E3*Math.floor(c+Math.random()*Math.max(a.$d-c5.A-c,0)),1E3*a.$d,{id:c5.j,priority:2}),this.cb([a],1))},this)}};h.Cy=function(){this.O("publish_external_event","showCompanionAdLoaded")};
h.fe=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.bb,forceAdType:b.W,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.K,isBlazer:b.Ca,isDoubleClickEnabled:b.G,isForcedAd:b.ca,isFreeWheelEnabled:b.L,isHouseBrandPlayer:b.zb,isLeanback:b.B,isShortform:b.Ta,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.A instanceof P4?this.A:null,null!=b?b.U:0;case "breakscount":return this.A?this.A.A.length:
0;case "displaystate":return b=null,this.A&&this.A.o&&(b=this.A.o.j),{adFormat:b instanceof R2?b.adType:!1,adSkipped:b instanceof Z2?b.F:!1,hasVideoStarted:b instanceof Z2?b.H:!1,skippable:b instanceof Z2?b.T:!1};case "getContentVideoData":return b=C2(this),{adModule:b.adModule,partnerTrackingToken:b.Y,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.B;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].o});return c}return 0}};h.Re=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};B(n5,G);h=n5.prototype;h.S=function(){s5(this,new ay);r5(this);A5(this);this.o.unsubscribe("onVolumeChange",this.mp,this);this.o.j.removeEventListener("onCaptionsTrackListChanged",this.J);var a=this.j;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.j.unsubscribe("proxyStateChange",this.Bp,this),this.j.unsubscribe("remotePlayerChange",this.sl,this),this.j.unsubscribe("remoteQueueChange",this.tl,this));z5(this,this.A);this.D&&this.o.j.ym(this.D);this.j=this.o=null};
h.cE=function(a,b){2==this.j.o||(t5(this)?this.gw.apply(this,arguments):this.B&&this.dw.apply(this,arguments))};h.dw=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":y5(this,this.o.j.getCurrentTime());break;case "control_seek":y5(this,c[0])}};
h.gw=function(a,b){if(1081==vo(this.j).j)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":vo(this.j).gb()?v5(this):w5(this);break;case "control_play":w5(this);break;case "control_pause":v5(this);break;case "control_seek":this.P=c[0];this.H.lf();break;case "control_subtitles_set_track":o5(this,c[0]);break;case "control_set_audio_track":c=c[0],t5(this)&&
(this.j.Qq(u5(this),c),this.D=c)}};h.mp=function(a){if(t5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=vo(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};h.wz=function(){ac(this.A)||z5(this,this.A);this.C=!1};h.Bp=function(a,b){A5(this);2==b&&this.Aq()};
h.sl=function(){if(t5(this)){r5(this);var a=vo(this.j);switch(a.j){case 1:x5(this);s5(this,new ay(8));break;case 3:s5(this,new ay(1));break;case 0:s5(this,new ay(2));this.H.stop();var b=this.o.j;(b=lq(b.app,b.playerType||1))&&b.Kf(!0);p5(this,this.o.j.getVideoData().lengthSeconds);break;case 2:s5(this,new ay(4));p5(this,oo(a));break;case -1:s5(this,new ay);break;case -1E3:s5(this,new ay(128,{}))}0==this.K&&(b=this.o.j,(b=lq(b.app,b.playerType||1))&&b.Kf(!1));this.K=a.j;a=vo(this.j).A;b=this.A;(a||
b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.A=a,z5(this,a));a=vo(this.j);-1==a.volume||Math.round(this.o.j.Bb())==a.volume&&this.o.j.tc()==a.muted||(this.o.j.setVolume(a.volume),a.muted?this.o.j.mute():this.o.j.unMute())}else q5(this)};h.tl=function(){t5(this)||q5(this)};h.XB=function(){var a=this.P;r5(this);p5(this,a);-1==vo(this.j).j?y5(this,a):this.j.Pq(a);s5(this,new ay(1))};
h.Aq=function(){A5(this);r5(this);var a=this.j.B.getReconnectTimeout();2!=this.j.o||(0,window.isNaN)(a)?this.B=!1:this.G=xi(A(this.Aq,this),1E3)};B(B5,F_);var aga=["play_pause","seek","set_audio_track"],cga=["captions"];h=B5.prototype;h.Xa=function(){return this.app.Wa.V().pg};h.create=function(){B5.M.create.call(this);this.D.push(Fi("yt-remote-before-disconnect",this.hy,this));this.D.push(Fi("yt-remote-connection-change",this.Cp,this));this.Cp();var a=this.j.app.J;this.C&&this.C!=this.B&&1!=a&&3!=a&&this.load()};h.destroy=function(){Li(this.D);this.D.length=0;Mb(this.o);this.o=null;B5.M.destroy.call(this)};
h.load=function(){if(!this.loaded){B5.M.load.call(this);this.o&&(this.A=new n5(this,0,this.o));this.j.pauseVideo();this.O("command_redirect_controls",this,aga,cga);var a=Lp();if(0!=a){var b=this.o?mo(vo(this.o)):null;b&&b!=this.j.getVideoData().videoId||xi(A(function(){this.K=a||0;DH(this.j,a,void 0)},this),0)}}};h.unload=function(){this.loaded&&(this.C=this.B,rq(this),Mb(this.A),this.A=null,B5.M.unload.call(this))};h.S=function(){this.destroy();Nb(this.A,this.o);this.o=this.A=null;B5.M.S.call(this)};
h.Td=function(a,b){this.A&&this.A.cE.apply(this.A,arguments)};h.getCurrentTime=function(){return this.K};h.hy=function(a){1==a&&(this.L=this.o?vo(this.o):null);this.J=a};h.Cp=function(){var a=Np();a?(this.o=a,this.J=this.L=null,this.load(),this.A||(this.A=new n5(this,0,this.o))):(Mb(this.o),this.o=null,this.loaded&&1==this.J&&(this.unload(),(a=this.L)&&mo(a)==this.j.getVideoData().videoId?this.j.sm(mo(a),oo(a)):this.j.sm(this.j.getVideoData().videoId)))};
h.fe=function(a,b){switch(a){case "casting":return!!this.o&&!!this.A;case "receivers":return this.T;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)xl();else if(this.C=b||this.B,b.key==this.B.key)Gp();else{var c=0,d="",e=this.j.gc();e&&(c=e.j,d=this.j.getVideoData().playlistId);if(e=this.j.gc()){for(var f=[],k=0;k<e.A;k++)f[k]=e.nb(k).videoId;e=f}else e=[this.j.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.j.getVideoData().videoId,index:c,currentTime:this.j.getCurrentTime()};
Dp(b,c);Mb(this.A);this.A=null;this.load()}return this.C;case "castSelector":return c=sp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&xl(),c}};h.Re=function(){return["casting","receivers","currentReceiver","castSelector"]};B(D5,R);B(E5,R);B(G5,R);G5.prototype.show=function(){G5.M.show.call(this);this.F()};G5.prototype.ea=function(){G5.M.ea.call(this);this.D.stop()};
G5.prototype.F=function(){var a=lq(this.o),b=this.o.getVideoData(),c=this.o.D.o,d=this.o.V(),e=KG(d),f;f=this.o;f=f.Da?f.Da.J.Ja():[0];var k=8*db(f)/1024,l=b.Ea&&this.o.V().experiments.showEndToEndLatency,m;m=this.o;m=(m=m.j&&m.j.W)?m.C.Ja():[0];var p=b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming",u=db(m),v=a.F?a.F.j:null,z=v&&v.o,y=window.devicePixelRatio||1,ga=b.videoId,va=b.clientPlaybackNonce,I=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?
""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.C?d1(a.C):"",W;a:{if(b.Sf&&(W=b.Sf.match(/url=(https?)/))&&2==W.length){W=W[1];break a}W=""}c={video_id:ga,cpn:va,cpn_style:I,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:W||d.protocol,dimensions:c.clientWidth+" x "+c.clientHeight+(1<y?" * "+y:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.o.Wa.Bb())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:l?"":"display:none",live_latency_seconds_and_class:u.toFixed(0)+
" s, "+p,drm_style:z?"":"display:none",drm:z?v.o+" / "+v.j:""};b.o&&(d=fr(b.o)?"yes":"no",d+=" ("+b.o.id,b.D&&fr(b.o)&&(d+="/"+b.D.id),c.dash=d+")",c.mime=b.o.mimeType,b=b.o.video.fps,1<b&&(c.resolution+="@"+b));b=this.B;f=F5(b,f);b.o.element.innerHTML=f;f=this.C;m=F5(f,m);f.o.element.innerHTML=m;this.update(c);this.D.start()};B(H5,Cq);H5.D="(max-width: 656px)";H5.C="(min-width: 657px)";H5.B="(min-width: 1294px) and (min-height: 630px)";H5.o="(min-width: 1720px) and (min-height: 980px)";H5.A="(min-width: 1320px) and (min-height: 870px)";H5.j="(min-width: 967px)";h=H5.prototype;h.initialize=function(a){this.P=x(a)?window.document.getElementById(a):a;this.j(this.P)};h.qw=function(){this.J=new se(0,0,0,0);this.F=new se(0,0,0,0)};h.addClass=function(a){Xd(this.element,arguments)};
h.Nu=function(){this.G&&Au(this.G);var a=A(this.mg,this);this.G=zu(a,0)};h.mg=function(){re(this.Ka(),ve(this.F))||this.qh()};h.qh=function(){if(this.o){var a=this.Ka();if(!a.isEmpty()){var b=!re(a,ve(this.F)),c=I5(this);b&&(this.F.width=a.width,this.F.height=a.height);(c||b)&&this.O("resize")}}};h.hE=function(a,b){J5(this,b)};h.iE=function(a){a.getVideoData()&&J5(this,a.getVideoData())};
h.Ka=function(){var a=this.app.V(),b=this.app.Wa.Ia();if(b&&gt())return new qe(window.outerWidth,window.outerHeight);if(b||a.rb){if(window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.H&&this.H.media==a||(this.H=window.matchMedia(a)),this.H&&this.H.matches||ht("aquos_dtv")))return new qe(window.innerWidth,window.innerHeight)}else if(this.Y){if(a.experiments.na("player_scaling_360p_to_720p")&&this.qa.matches)return new qe(this.element.clientWidth,this.element.clientHeight);
if(this.Y.matches)return new qe(426,240);a=this.app.la;if((a?this.ha:this.ga).matches)return new qe(1280,720);if(a||this.la.matches)return new qe(854,480);if(this.wa.matches)return new qe(640,360)}return new qe(this.element.clientWidth,this.element.clientHeight)};h.hw=function(){this.qh()};h.S=function(){this.D&&(this.D.disconnect(),this.D=null);this.K&&(this.ca?Li(this.K):this.$||Bi(this.K),this.G&&Au(this.G));this.L&&Ol(this.L);this.C&&this.C.ea();this.o=this.B=this.P=null;H5.M.S.call(this)};B(P5,rv);P5.prototype.J=function(a){this.C&&this.C(a)?this.A=!0:this.o.isActive()?(this.o.stop(),this.B(a),this.A=this.j=!1):(this.D=a,this.o.start(),this.j=!0)};P5.prototype.G=function(a){this.A?this.A=!1:this.j&&this.B(a)};P5.prototype.F=function(){this.H(this.D);this.j=!0};aa(Q5);var j5=t("yt.player.utils.VideoTagPool.instance_")||Q5.getInstance();q("yt.player.utils.VideoTagPool.instance_",j5,void 0);h=Q5.prototype;h.Hn=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=R5(this);this.j.push(c)}}};h.pE=function(a,b){return this.j.length?this.j.pop():R5(this,a,b)};h.zB=function(a){a&&E(this.o,a)&&(Uq(a),Rl(a),ob(this.o,a))};h.cs=function(a){return this.j.length>=(a||1)};
h.Ku=function(){this.j=[];this.cs(4)?F(this.o,function(a){a.src||a.load();this.j.push(a)},this):this.Hn(4)};Q5.prototype.fillPool=Q5.prototype.Hn;Q5.prototype.getTag=Q5.prototype.pE;Q5.prototype.releaseTag=Q5.prototype.zB;Q5.prototype.hasTags=Q5.prototype.cs;Q5.prototype.activateTags=Q5.prototype.Ku;B(S5,Oj);h=S5.prototype;h.dE=function(a){a=Vl(a);if(!oe(a,this.A)){var b=2;this.D&&(b|=8);this.A=a;this.$a(b,!0)}};h.Ax=function(){this.D&&this.$a(8,!0);this.$a(2,!1)};h.$r=function(a){var b=Vl(a);oe(b,this.A)||(this.A=b,(a=Sl(a))&&this.L(a)&&(this.$a(4,!0),this.j.ya(this.F),this.F=T(this.j,this.B,"mouseout",this.eE)))};h.eE=function(a){a=Ul(a);a&&this.L(a)||(this.A=new ne(window.NaN,window.NaN),this.$a(4,!1),this.j.ya(this.F),this.F=T(this.j,this.B,"mouseover",this.$r))};
h.lx=function(){this.$a(1,!0)};h.Ev=function(a){a=Sl(a);a instanceof window.Element&&!(0<a.tabIndex)||this.$a(1,!0)};h.Zr=function(){this.D=!0;this.j.ya(this.C);this.C=T(this.j,window.document,"mouseup",this.fE)};h.fE=function(){this.D=!1;this.$a(8,!1);this.j.ya(this.C);this.C=T(this.j,this.B,"mousedown",this.Zr)};h.bs=function(a){if(a=a.changedTouches[0])this.N=a.identifier,this.j.ya(this.G),this.G=T(this.j,this.B,"touchend",this.gE),this.$a(1024,!0)};
h.gE=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.N){b=d;break}}b&&(this.j.ya(this.G),this.G=T(this.j,this.B,"touchstart",this.bs),this.$a(1024,!1))};h.$a=function(a,b){this.isDisposed();var c=!this.o;b?(this.o|=a,a&1&&this.H.start(),a&2&&this.J.start(),a&512&&this.K.start()):(this.o&=~a,a&1&&this.H.stop(),a&2&&this.J.stop(),a&512&&this.K.stop());var d=!this.o;c!=d&&this.O("autohideupdate",d)};B(T5,zx);T5.prototype.show=function(){T5.M.show.call(this);var a=this.L;this.H=new Date;this.J(a,75)};T5.prototype.L=function(){var a=1-1/1.5;this.B=(this.B+this.G)%(this.width*a);this.C=(this.C+this.F)%(this.height*a);this.context.drawImage(this.K,-1*this.B,-1*this.C);this.context.fillRect(0,this.D,this.width,75);this.D=(this.D+75+7)%this.height-75};T5.prototype.ea=function(){Ai(this.o);T5.M.ea.call(this)};B(W5,R);W5.prototype.show=function(){W5.M.show.call(this);this.o&&this.o.show()};W5.prototype.ea=function(){W5.M.ea.call(this);this.o&&this.o.ea()};W5.prototype.D=function(a){var b=t("yt.www.feedback.showArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.C.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||Wl(a)};W5.prototype.S=function(){W5.M.S.call(this)};Z5.prototype.isDisposed=function(){return!this.A};Z5.prototype.dispose=function(){a6(this);delete this.A};B(b6,R);B(e6,R);h=e6.prototype;
h.Kl=function(a,b){var c=b.currentTarget;if(!this.B){(0,window.isNaN)(this.C)||(this.C=window.NaN,this.L.style.background="");this.o=c;this.o.addEventListener("mouseout",this.W);this.J=this.o.getAttribute("title");this.o.removeAttribute("title");this.element.className="ytp-tooltip";if(c=this.o.getAttribute("data-tooltip-image"))this.ga.style.backgroundImage="url("+c+")";M(this.element,"ytp-tooltip-image-enabled",!!c);this.B=a;this.o.removeEventListener("mouseover",f6(this,this.B));1==this.B||2==this.B?
L(this.element,"ytp-bottom"):3==this.B&&L(this.element,"ytp-top");this.F.addEventListener("resize",this.As,this);this.P&&(h6(this),this.H.show(!1,400))}};h.Dz=function(a){(a=Ul(a))&&xf(this.o,a)||this.Fe()};h.zs=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;l6(this,c)}};h.tx=function(){du(this.K,this.C,96*this.D)};h.As=function(){re(AE(this.F).Ka(),this.ca)||this.Fe()};
h.Fe=function(){switch(this.B){case 1:case 3:case 4:this.F.removeEventListener("resize",this.As,this);this.o.removeEventListener("mouseout",this.W);this.o.addEventListener("mouseover",f6(this,this.B));this.o.setAttribute("title",this.J);this.J="";this.o=null;break;case 2:this.G&&(this.G=null,this.K.unsubscribe("l",this.zs,this),this.K=null),this.F.removeEventListener("videoready",this.Fe,this),this.N.stop()}this.B=null;this.P&&this.H.ea()};
h.lg=function(a){for(var b=0;b<arguments.length;b++)arguments[b]==this.B&&this.Fe()};h.S=function(){null!=this.B&&this.Fe();e6.M.S.call(this)};B(m6,R);m6.prototype.S=function(){this.B&&this.B();m6.M.S.call(this)};m6.prototype.D=function(){Mi("iv-button-hovered")};m6.prototype.C=function(){var a=Wd(this.aa.ua(),"ytp-cards-teaser-shown");Mi("iv-teaser-clicked",a);this.G()};B(n6,Cq);h=n6.prototype;h.show=function(){n6.M.show.call(this);this.Y=S(this,window,"blur",this.xb);this.ca=S(this,window.document,"click",this.TE)};h.ea=function(){n6.M.ea.call(this);this.W=null;this.Y&&(this.ya(this.Y),this.ya(this.ca))};h.Ue=function(a){this.W=a;this.da.show()};h.xb=function(){this.da.ea();this.ya(this.Y);this.ya(this.ca)};h.TE=function(a){var b=Tl(a);b&&(xf(this.element,b)||this.W&&xf(this.W,b)||!sx(a))||this.xb()};B(p6,n6);h=p6.prototype;h.show=function(){p6.M.show.call(this);this.bh();this.C.focus();this.O("show",!0)};h.ea=function(){p6.M.ea.call(this);1>=this.B.length||(this.C.unsubscribe("back",this.Vd,this),this.B[this.B.length-1].detach(),q6(this,this.B[0]),this.B=[this.C],this.C.j(this.element),Lf(this.C.element,"transform","translateX(0)"),Lf(this.C.element,"opacity","1"),this.bh());this.O("show",!1)};h.bh=function(){this.A&&(r6(this),dg(this.element,this.size))};
h.Vd=function(){var a=this.B.pop();t6(this,a,this.B[this.B.length-1],!0)};h.TB=function(a,b,c){this.G.dispose();this.G=null;u6(this,!0,[a,b]);Lf(a.element,"transform","translateX("+c+"px)");Lf(a.element,"opacity","0");Lf(b.element,"transform","translateX(0)");Lf(b.element,"opacity","1");dg(this.element,this.size);this.D=new Td(pa(this.Tx,a,b),250,this);this.D.start()};h.Tx=function(a,b){u6(this,!1,[a,b]);a.detach();this.D.dispose();this.D=null};
h.RE=function(a){if(!Xl(a))switch(Yl(a)){case 27:this.xb();Wl(a);break;case 37:1<this.B.length&&this.Vd();Wl(a);break;case 39:Wl(a)}};h.S=function(){p6.M.S.call(this);this.G&&this.G.dispose();this.D&&this.D.dispose()};B(v6,Cq);h=v6.prototype;h.remove=function(a){ob(this.o,a);a.unsubscribe("size-change",this.rl,this);a=sb(this.o);this.Cb(a);this.O("size-change")};h.removeAll=function(){for(var a=0;a<this.o.length;a++)this.o[a].unsubscribe("size-change",this.rl,this);this.o=[];this.Cb([]);this.O("size-change")};h.hv=function(a,b){return b.priority-a.priority};h.rl=function(){this.O("size-change")};
h.focus=function(){for(var a=0,b=0;b<this.o.length;b++)if("true"==this.o[b].element.getAttribute("aria-checked")){a=b;break}this.o[a].element.focus()};B(x6,Cq);x6.prototype.C=function(a){xq(this,"label",a)};B(z6,Cq);z6.prototype.D=function(){this.O("size-change")};z6.prototype.focus=function(){this.F.focus()};z6.prototype.J=function(){this.O("back")};B(A6,x6);A6.prototype.o=function(a){Xl(a)||39!=Yl(a)||(this.element.click(),Wl(a))};A6.prototype.C=function(a){A6.M.C.call(this,a);this.O("size-change")};B(C6,p6);h=C6.prototype;h.ea=function(){uv(this.$);C6.M.ea.call(this)};h.Fx=function(a){sx(a)&&this.o.pauseVideo();this.xb()};
h.My=function(a){if("gvn"!=this.o.V().j){var b=Tl(a);if(!this.A&&(!b||"A"!=b.tagName&&!Gf(b,"ytp-no-contextmenu"))){Wl(a);this.element.style.left="";this.element.style.top="";var c=Vl(a);c.x++;c.y++;b=Yf(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&(d.x=b.left);if(f&16){var k=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-
d.x,k+e.width-b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&32&&(k=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,k+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new se(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Sf(this.element,we(b));this.Ue();T(this.$,window.document,"contextmenu",this.Uy)}}};
h.Ny=function(){Bq(this.H.element)};h.Uy=function(a){Xl(a)||xf(this.element,Tl(a))||this.xb()};h.wE=function(a){this.xb();this.j(a?this.o.ua():window.document.body)};h.xE=function(){G6(this,this.o.tm(!0))};h.yE=function(){G6(this,this.o.ar())};h.zE=function(){G6(this,this.o.getVideoUrl(!0,!0))};h.ez=function(){G6(this,this.o.getVideoUrl(!1,!0))};h.AE=function(){this.xb()};
h.BE=function(a){var b=this.o,c=lq(b.app);c&&c.lj(new gv("feedback",!1,{gpu:y9(b.app)}));uy(this.o.V())&&sx(a)&&!t("yt.www.feedback.start")(void 0,{as3:!1,html5:!0,player:!0})&&(this.o.Ia()&&vy(this.o),Wl(a));this.xb()};h.CE=function(){this.o.jr();this.xb()};h.DE=function(a,b){F6(this,b)};B(H6,Nq);h=H6.prototype;h.show=function(){this.A||(T(this.D,this.o,"videodatachange",this.C.Of,this.C),T(this.D,this.o,"videoplayerreset",this.C.Of,this.C));H6.M.show.call(this)};h.ea=function(){uv(this.D);H6.M.ea.call(this)};h.FE=function(a){var b=this.o.V();uy(b)&&(a=ky(a.state)&&!ky(a.j)||lH(this.o)&&U(a.state,2),Lf(this.element,"transition-delay",a?"2s":""));this.C.Of()};h.EE=function(){this.element.style.backgroundImage=""};
h.gs=function(){3==this.o.getPresentingPlayerType()?this.B.show():I6(this.B,this.o,hz(this.o));this.A&&3!=this.B.j&&this.cC(this.o.gc(),this.o.getVideoData())};
h.cC=function(a){for(var b=this.o.V(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof rw&&!e.videoId)){if(!b.isMobile){c=AE(this.o).Ka();var f=c.width,k=c.height;if(900<f||600<k)if(c=e.Cc(b,"maxresdefault.jpg"))break;if(430<f||320<k)if(c=e.Cc(b,"sddefault.jpg")||e.Cc(b,"hqdefault.jpg")||e.Cc(b,"mqdefault.jpg"))break}if(c=e.Cc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};B(J6,rv);
J6.prototype.B=function(a){var b=!1,c=Yl(a),d=Tl(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.j.V();Xl(a)?(e=!1,k=!0):l.Va&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==c?d.previousSibling:d.nextSibling,
"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(this.A.A&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:h7(this.A,c),f=!0}l.zb||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.o+=f,0=="awesome".indexOf(this.o)?(f=!0,7==this.o.length&&(l=this.j.ua(),m=!Wd(l,"ytp-color-party"),M(l,"ytp-color-party",m))):(this.o=
f,f=0=="awesome".indexOf(this.o)));if(e&&!f){switch(c){case 32:c6(this.G);dy(hz(this.j))?this.j.pauseVideo():this.j.Xc();k=f=!0;break;case 37:this.j.Yc(-5);k=f=!0;break;case 39:this.j.Yc(5);k=f=!0;break;case 38:this.j.setVolume(Math.min(this.j.Bb()+5,100));k=f=!0;break;case 40:this.j.setVolume(Math.max(this.j.Bb()-5,0));k=f=!0;break;case 27:this.H()&&(k=f=!0);break;case 36:this.j.Qb(0);k=f=!0;break;case 35:this.j.Qb(window.Infinity);k=f=!0;break;case 67:jH(this.j.app.B,"captions")&&(this.j.app.Vf("onCaptionsToggle"),
k=f=!0);break;case 66:L6(this,"background")&&(f=!0);break;case 79:L6(this,"textOpacity")&&(f=!0);break;case 87:L6(this,"windowOpacity")&&(f=!0);break;case 187:L6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:L6(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var p;48<=c&&57>=c?p=c-48:96<=c&&105>=c&&(p=c-96);(0,window.isNaN)(p)||(k=this.j.Qe(),this.j.Qb(p/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.D(!0);(b||k)&&this.F.$a(2,!0);(f||e&&K6(this,c,a.shiftKey))&&Wl(a);b=this.j;
b.V().ib&&(a={keyCode:Yl(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:Xl(a),fullscreen:b.Ia()},b.app.Hi("onKeyPress",a))};J6.prototype.C=function(a){this.A.A&&i7(this.A,Yl(a))};J6.prototype.D=function(a){M(this.j.ua(),"ytp-keyboard-focus",a);M(this.J.element,"ytp-keyboard-focus",a)};B(N6,R);N6.prototype.D=function(){var a=AE(this.o).Ka();M(this.element,"ytp-small",400>a.width)};N6.prototype.F=function(a){var b=this.o.V();uy(b)&&Lf(this.element,"transition-delay",ky(a.state)&&!ky(a.j)?"2s":"");O6(this,a.state)};B(P6,Cq);P6.prototype.D=function(){var a=this.o.Qe();this.F.style.width=100*O2(new L2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};P6.prototype.C=function(){this.o.V();2==this.o.getPresentingPlayerType()||Q6(this)&&!this.o.Ia()?this.B||(this.show(),this.B=S(this,this.o,"progresssync",this.D),this.D()):this.B&&(this.ea(),this.ya(this.B),this.B=null)};B(R6,R);R6.prototype.C=function(a){sy(a,this.o)&&this.o.xm(this.B)};B(S6,R);h=S6.prototype;h.show=function(){S6.M.show.call(this);this.B.addEventListener("videodatachange",this.rh,this);this.B.addEventListener("onPlaylistUpdate",this.rh,this);this.rh()};h.ea=function(){S6.M.ea.call(this);this.B.removeEventListener("videodatachange",this.rh,this);this.B.removeEventListener("onPlaylistUpdate",this.rh,this);T6(this,null)};
h.rh=function(){T6(this,this.B.gc());var a=this.o.author;this.update({title:this.o.title,subtitle:Q(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.o.j+1,PLAYLIST_LENGTH:this.o.A}),playlisturl:this.B.getVideoUrl(!0)});this.Gm()};
h.Gm=function(){var a=this.o.J;if(a==this.F)this.D.element.setAttribute("aria-checked",!1),this.D=this.C[this.o.j];else{for(var b=0;b<this.C.length;b++)this.C[b].dispose();var c=this.o.A;this.C=[];for(b=0;b<c;b++){var d=new R6(this.B,this.o,b);this.C.push(d);d.j(this.J)}this.D=this.C[this.o.j];this.F=a}this.D.element.setAttribute("aria-checked",!0)};h.SE=function(){this.H()};h.DA=function(a){var b=this.B.getVideoUrl(!0);ty(b,this.B,a)};h.focus=function(){this.D.focus()};h.S=function(){this.ea();S6.M.S.call(this)};B(V6,R);V6.prototype.B=function(){this.o&&2!=this.F.getPresentingPlayerType()?(this.update({text:Q("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.j+1,PLAYLIST_LENGTH:this.o.A}),title:Q("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.A||(this.show(),k6(this.C))):this.A&&(this.ea(),k6(this.C))};V6.prototype.D=function(){this.o&&this.o.unsubscribe("shuffle",this.B,this);(this.o=this.F.gc())&&this.o.subscribe("shuffle",this.B,this);this.B()};B(W6,R);W6.prototype.D=function(a){sy(a,this.B)&&(a=this.o.nb().videoId,M9(this.B.app,a,this.o.$,this.o.Pe()),this.C())};B(X6,R);h=X6.prototype;h.show=function(){X6.M.show.call(this);this.o.addEventListener("videodatachange",this.Hm,this);this.o.addEventListener("presentingplayerstatechange",this.us,this);this.Hm()};h.ea=function(){X6.M.ea.call(this);this.o.removeEventListener("videodatachange",this.Hm,this);this.o.removeEventListener("presentingplayerstatechange",this.us,this);this.D=null;this.A&&this.C()};
h.Hm=function(){var a=P(this.o.getVideoData().F,tx);this.D=a;!a&&this.A&&this.C();for(a=0;a<this.B.length;a++)this.B[a].dispose();this.B=[];for(a=0;a<this.D.length;a++){var b=new W6(this.o,this.D[a],this.C);this.B.push(b);b.j(this.G)}};h.us=function(a){Y6(this)&&U(a.state,2)&&this.C()};h.dF=function(){this.C()};h.focus=function(){var a=this.B[0];L(this.element,"ytp-scroll-fix");a.focus();Yd(this.element,"ytp-scroll-fix")};h.S=function(){this.ea();X6.M.S.call(this)};B(Z6,R);Z6.prototype.B=function(){this.o.V().experiments.T&&2!=this.o.getPresentingPlayerType()&&this.o.getVideoData().F&&!U(hz(this.o),2)?this.A||this.show():this.A&&this.ea()};B($6,R);h=$6.prototype;h.Pz=function(a){a=Tl(a);xf(this.L,a)||xf(this.F,a)||this.H()};h.show=function(){$6.M.show.call(this);1==this.o.getPlayerState()&&(this.o.pauseVideo(),this.D=!0);this.ws()};h.ea=function(){var a=this.A;$6.M.ea.call(this);a&&this.D&&(this.o.Xc(),this.D=!1)};
h.ws=function(){L(this.element,"ytp-share-panel-loading");Yd(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.ce(),c=b&&this.K.checked;M(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.o.V();e.yb&&(d.authuser=e.yb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var f=this.o.V();yj(f.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.hF,jb:this.gF,Cd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,
c?b:void 0,void 0,!0);xq(this,"link",a);xq(this,"linkText",a)};
h.gF=function(a,b){if(!this.isDisposed()){Yd(this.element,"ytp-share-panel-loading");b7(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k;a:{switch(f.img){case "facebook":k=xh?'<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>';break a;
case "googleplus":k=xh?'<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>';
break a;case "twitter":k=xh?'<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>';
break a}k=void 0}if(k){var l=new R(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:f.url,target:"_blank",tabindex:21,title:f.sname}]);l.oa["ytp-share-panel-service-button-icon"].innerHTML=k;l.R("click",pa(this.nA,f.url));Lb(l,i6(this.C,l.element));this.B.push(l);d++}}c=new R(["a",["ytp-share-panel-service-button","ytp-button"],["span",["ytp-share-panel-service-button-icon","ytp-share-panel-service-button-more"]],{href:b.more,target:"_blank",
tabindex:21,title:Q("YTP_MORE")}]);c.oa["ytp-share-panel-service-button-icon"].innerHTML=xh?'<div class="ytp-icon ytp-icon-share-more"></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 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z" fill="#4e4e4f" fill-rule="evenodd" /></svg>';
c.R("click",A(this.Cz,this,b.more));Lb(c,i6(this.C,c.element));this.B.push(c);xq(this,"buttons",this.B)}};h.hF=function(){Yd(this.element,"ytp-share-panel-loading");L(this.element,"ytp-share-panel-fail")};
h.nA=function(a,b){if(sx(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d,e=c;e||(e={});c=window;a instanceof Ge?d=Ie(a):d="undefined"!=typeof a.href?a.href:String(a);var f=e.target||a.target,k=[],l;for(l in e)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+e[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(e[l]?1:0))}l=k.join(",");if((rc()||nc("iPad")||nc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f)l=c.document.createElement("A"),l.setAttribute("href",d),l.setAttribute("target",f),e.noreferrer&&l.setAttribute("rel","noreferrer"),d=window.document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(d),c={};else if(e.noreferrer){if(c=c.open("",f,l))eF&&Ha(d,";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=null,d=ya(d),d=ij(Ce("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+d+'">'),c.document.write(Qe(d)),c.document.close()}else c=
c.open(d,f,l);if(d=c)d.opener||(d.opener=window),d.focus();Wl(b)}};h.Cz=function(a,b){if(ty(a,this.o,b)){var c=this.o.app,d=c.getVideoData();c.O("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.X.Ba})}};h.fF=function(a){!a&&a7(this)&&(this.D=!1,this.H())};h.focus=function(){this.J.focus()};h.S=function(){$6.M.S.call(this);b7(this)};B(c7,R);c7.prototype.B=function(){this.vb(!!this.o.getVideoData().videoId)};B(d7,R);h=d7.prototype;
h.Im=function(){var a=rH(this.B).shader;"Spherical"==a||"Spherical3D"==a?this.A||(a=AE(this.B).B,L(this.B.ua(),"ytp-webgl-spherical"),this.show(),this.F=new nF(a,!0,null,!0),this.F.subscribe("dragstart",this.lF,this),this.F.subscribe("dragmove",this.ys,this),this.F.subscribe("dragend",this.kF,this),this.D=new nF(this.element,!0),this.D.subscribe("dragstart",this.Oz,this),this.D.subscribe("dragend",this.Nz,this),this.ca=this.R("keydown",this.mF),this.$=this.R("keyup",this.nF),S(this,a,"click",this.jF,
this)):this.A&&(f7(this),Yd(this.B.ua(),"ytp-webgl-spherical"),this.ea(),this.F.dispose(),this.F=null,this.D.dispose(),this.D=null,this.ya(this.ca),this.ya(this.$))};h.Oz=function(a,b,c){f7(this);var d=Zf(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?e7(this,0<a?-1:1,0,0):e7(this,0,0<b?-1:1,0)};h.Nz=function(){f7(this);this.C=2;this.G.start()};h.lF=function(a,b){f7(this);this.W=!1;this.Y=new ne(a,b);L(this.B.ua(),"ytp-dragging")};
h.ys=function(a,b){var c=new ne(a,b),d;d=this.Y;d=new ne(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.W=!0);this.Y=c;var c=rH(this.B),e=c.fov,f=Math.PI*e*.8,k=AE(this.B).Ka();d.scale(1/k.width*f,1/k.height*f);g7(this,c.yaw+d.x,c.pitch+d.y,e,c,K())};h.kF=function(a,b){this.ys(a,b);Yd(this.B.ua(),"ytp-dragging");this.C=2;this.G.start()};h.jF=function(a){this.W&&(a.stopPropagation(),this.W=!1)};
h.iF=function(a){var b=rH(this.B),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.C)var f=.003*e*(a-this.L),c=c+f*this.T,d=d+f*this.N,e=e+f*this.P;else if(2==this.C){if(1E-5>Math.abs(this.K)&&1E-5>Math.abs(this.H)){this.C=this.H=this.K=0;return}f=a-this.L;f/=Math.pow(1.013,f);c+=f*this.K;d+=f*this.H}g7(this,c,d,e,b,a);this.G.start()};h.mF=function(a){!Xl(a)&&h7(this,Yl(a))&&Wl(a)};h.nF=function(a){i7(this,Yl(a))};h.S=function(){this.D&&(this.F.dispose(),this.F=null,this.D.dispose(),this.D=null);d7.M.S.call(this)};B(j7,R);h=j7.prototype;h.show=function(){j7.M.show.call(this)};h.ea=function(){this.o.stop();this.C.style.display="none";j7.M.ea.call(this)};h.oF=function(a){k7(this,a.state)};h.$y=function(){k7(this,hz(this.B))};h.Vz=function(){this.C.style.display="block"};B(l7,R);l7.prototype.C=function(){var a=lq(this.o.app);a&&a.o.j.webkitShowPlaybackTargetPicker()};
l7.prototype.B=function(){var a=lq(this.o.app);this.vb(!!a&&a.Ta);a=lq(this.o.app);this.element.innerHTML=a&&a.Sa?xh?'<div class="ytp-icon ytp-icon-airplay-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="M25,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z M13,15 L24.04,15.01 C24.04,15.01 24.04,15.07 24,15 C24.03,17.07 24,21 24,21 L20,21 L18,18.99 L16,21 L13,20.99 L13,15 Z" id="ytp-svg-1" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-1" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-1" /></svg>':xh?
'<div class="ytp-icon ytp-icon-airplay-off"></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,13.99 L12.03,13.99 L12.03,22 L15,22 L12.03,24.99 L9,24.99 L9,11 L28,11 L28,24.99 L23.99,24.99 L20.96,22 L25,22 L25,13.99 Z M23.06,26 L12.99,26 L18,21 L23.06,26 Z" id="ytp-svg-0" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-0" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-0" /></svg>'};B(m7,Cq);m7.B=84;m7.j=10;m7.C=72;m7.o=200;m7.A=.555;h=m7.prototype;h.ov=function(){n7(this,this.B.getVideoData())};h.Dv=function(){this.P.ea()};
h.Aj=function(){this.o=Math.floor(this.G/Math.min(m7.j,Math.ceil(this.G/m7.C)));this.W=this.o*m7.A;var a=this.B.Qe(),b=bu(this.D,this.o),b=this.D.j[b].yj(a.current);if(b!=this.T){var c=Math.round(2*this.o),d=Math.round(2*this.W),e=au(this.H,b,c),c=Q2(this.ha,e,c,d,!0);Sf(this.fa,(this.G-c.width)/2);this.element.style.height=Tf(c.height+m7.B,!0);this.T=b}zf(this.ga,rx(this.$?a.current-a.seekableEnd:a.current));Au(this.L);a=A(this.bj,this);this.L=zu(a,void 0);this.Y.lf()};
h.IE=function(a,b){n7(this,b)};
h.bj=function(){kg(this.C,!1);Au(this.L);var a=this.B.Qe(),b=this.D.j[0].Xr(),c=this.D.j[0].Dm(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.o-this.G/2,d=Math.floor(a/this.o)+b,c=Math.min(d+Math.min(m7.j,Math.ceil(this.G/this.o)),c),d=Math.max(d,b),e;if(this.J>=d&&this.F<=c){for(e=this.J;e>c;e--)pf(this.C.children[e-this.F]);for(e=d-1;e>=this.F;e--)pf(this.C.children[e-this.F]);for(e=this.F-1;e>=d;e--)this.C.insertBefore(o7(this,e),this.C.firstChild);e=this.J+1}else nf(this.C),e=d;for(;e<=
c;e++)this.C.appendChild(o7(this,e));for(e=d;e<=c;e++)Lf(this.C.children[e-d],"transform","translatex("+(-a+(e-b)*this.o)+"px)");this.F=d;this.J=c;kg(this.C,!0)};h.HE=function(){for(var a=this.F;a<=this.J;a++)du(this.H,a,2*this.o)};h.GE=function(){var a=AE(this.B).Ka();this.G!=a.width&&(this.G=a.width,this.D&&(this.Aj(),this.bj()))};h.JE=function(a){this.element.style.bottom=a+"px"};h.show=function(){m7.M.show.call(this);g6(this.da,!1)};
h.ea=function(){this.D&&n7(this,null);m7.M.ea.call(this);g6(this.da,!0)};h.S=function(){n7(this,null);m7.M.S.call(this)};B(p7,R);h=p7.prototype;h.LE=function(){q7(this,this.o.getVideoData())};h.ME=function(){this.A||this.D.ea()};h.OE=function(a){U(a.state,32)||U(a.state,16)||U(a.state,1)||this.D.ea()};h.PE=function(a,b){q7(this,b)};h.NE=function(){var a=hz(this.o);(U(a,32)||U(a,16))&&r7(this)};h.KE=function(){this.F=window.NaN;r7(this)};h.ea=function(){this.C&&q7(this,null);p7.M.ea.call(this)};B(s7,R);h=s7.prototype;h.QE=function(){this.B.V().Na?(tH(this.B,this.B.Ia()?"fullscreen_exit":"fullscreen_enter"),vy(this.B)):this.o&&o6(this.o)?this.o.xb():(this.D.A.$a(16,!0),this.o.Ue(this.element))};h.bz=function(){t7(this);this.D.A.$a(16,!0);this.o.Ue(this.element)};h.ks=function(){this.vb(ry(this.B))};
h.hs=function(a){a?(this.element.innerHTML=xh?'<div class="ytp-icon ytp-icon-full-screen-close"></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="M13,10 L10,10 L10,13 L7,13 L7,16 L13,16 L13,10 Z" id="ytp-svg-16" /><path d="M29,16 L29,13 L26,13 L26,10 L23,10 L23,16 L29,16 Z" id="ytp-svg-17" /><path d="M29,23 L29,20 L23,20 L23,26 L26,26 L26,23 L29,23 Z" id="ytp-svg-18" /><path d="M10,26 L13,26 L13,20 L7,20 L7,23 L10,23 L10,26 Z" id="ytp-svg-19" /></defs><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-16" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-17" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-18" /><use class="ytp-svg-shadow ytp-fullscreen-close-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-19" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-0" fill="#fff" xlink:href="#ytp-svg-16" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-1" fill="#fff" xlink:href="#ytp-svg-17" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-2" fill="#fff" xlink:href="#ytp-svg-18" /><use class="ytp-svg-fill ytp-fullscreen-close-button-corner-3" fill="#fff" xlink:href="#ytp-svg-19" /></svg>',a=
Q("YTP_EXIT_FULLSCREEN")):(this.element.innerHTML=xh?'<div class="ytp-icon ytp-icon-full-screen"></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="M7,16 L10,16 L10,13 L13,13 L13,10 L7,10 L7,16 Z" id="ytp-svg-12" /><path d="M23,10 L23,13 L26,13 L26,16 L29,16 L29,10 L23,10 Z" id="ytp-svg-13" /><path d="M23,23 L23,26 L29,26 L29,20 L26,20 L26,23 L23,23 Z" id="ytp-svg-14" /><path d="M10,20 L7,20 L7,26 L13,26 L13,23 L10,23 L10,20 Z" id="ytp-svg-15" /></defs><use class="ytp-svg-shadow ytp-fullscreen-button-corner-0" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-12" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-1" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-13" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-2" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-14" /><use class="ytp-svg-shadow ytp-fullscreen-button-corner-3" stroke="#000" stroke-opacity=".15" stroke-width="2px" xlink:href="#ytp-svg-15" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-0" fill="#fff" xlink:href="#ytp-svg-12" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-1" fill="#fff" xlink:href="#ytp-svg-13" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-2" fill="#fff" xlink:href="#ytp-svg-14" /><use class="ytp-svg-fill ytp-fullscreen-button-corner-3" fill="#fff" xlink:href="#ytp-svg-15" /></svg>',
a=Q("YTP_FULLSCREEN"));xq(this,"title",this.o?null:a);k6(this.D.o)};h.S=function(){this.o?this.D.A.$a(16,!1):(this.C(),this.C=null);s7.M.S.call(this)};B(u7,R);u7.prototype.B=function(){var a=lq(this.o.app);a&&(a=a.o,a.j.webkitSetPresentationMode("picture-in-picture"==a.j.webkitPresentationMode?"inline":"picture-in-picture"))};B(v7,R);var x7={1:"M11,10 L18,13.74 18,22.28 11,26 Z M18,13.74 L26,18 26,18 18,22.28 Z",2:"M11,10 L17,10 17,26 11,26 Z M20,10 L26,10 26,26 20,26 Z",4:"M10,10 L18,10 18,26 10,26 Z M18,10 L26,10 26,26 18,26 Z"};v7.prototype.G=function(a){w7(this,a.state)};v7.prototype.F=function(){M(this.element,"ytp-play-button-playlist",lH(this.o))};
v7.prototype.H=function(){2==this.C?tH(this.o,"pause"):3==this.C?tH(this.o,"replay"):1==this.C?tH(this.o,"play"):4==this.C&&tH(this.o,"stop");dy(hz(this.o))?this.o.pauseVideo():this.o.Xc()};v7.prototype.S=function(){this.B&&this.B();v7.M.S.call(this)};B(y7,R);y7.prototype.H=function(){z7(this);this.J&&(this.ya(this.J),this.J=null);this.G=this.o.getVideoData(1);if(this.B=this.o.gc())this.B.subscribe("shuffle",this.H,this),this.J=S(this,this.o,"progresssync",this.N);this.F=A7(this);B7(this);this.vb(lH(this.o)||Dx(this.o.V(),this.G,this.B)&&this.D)};y7.prototype.T=function(a){tH(this.o,this.D?"next":"previous");var b=!0;this.L?b=sy(a,this.o):Wl(a);b&&(this.D?this.o.pj(!0):this.F?this.o.Qb(0):this.o.qj(!0))};
y7.prototype.N=function(){var a=A7(this);a!=this.F&&(this.F=a,B7(this))};y7.prototype.S=function(){this.C&&(this.C(),this.C=null);z7(this);y7.M.S.call(this)};B(C7,Cq);h=C7.prototype;h.WE=function(a){if(!Xl(a)){var b=!1;switch(Yl(a)){case 36:this.B.Qb(0);b=!0;break;case 35:this.B.Qb(window.Infinity);b=!0;break;case 34:this.B.Yc(-60);b=!0;break;case 33:this.B.Yc(60);b=!0;break;case 38:this.B.Yc(5);b=!0;break;case 40:this.B.Yc(-5),b=!0}b&&Wl(a)}};h.ls=function(a,b){D7(this,b,"newdata"==a)};h.ew=function(){this.ls("newdata",cb(this.B.getVideoData()))};h.VE=function(){K7(this.B.getVideoData())?hz(this.B).gb()&&L7(this,!0):L7(this,!1)};
h.UE=function(a){0<WA(a,64)||!K7(this.B.getVideoData())?L7(this,!1):dy(a.state)&&0>WA(a,64)&&L7(this,!0)};h.YE=function(){this.Ha.show()};
h.$E=function(a,b,c){var d=Zf(this.element),e=N7(this).j,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=O2(this.o,Number(c.getAttribute("data-position")),0)*e+Zf(this.Da).x);this.Aa.x=a-d.x;this.Aa.y=b-d.y;c=N7(this);a=N2(this.o,c.o);d=f||rx(this.Fa?a-this.o.j:a);b=this.sb;c=c.position+this.bb;f=!!f;2!=b.B&&(b.element.className="ytp-tooltip ytp-bottom",b.B=2,b.P&&b.H.show(),e=b.F.getVideoData(),b.G=Sw(e),b.G&&(b.K=Tw(e),b.K.subscribe("l",b.zs,b)));b.update({text:d,title:""});M(b.element,"ytp-text-detail",
!!f);f=-1;b.G&&(f=bu(b.G,96*b.D),f=b.G.j[f].yj(a));l6(b,f);j6(b,c);M(this.fa,"ytp-hover-progress-shown",!U(hz(this.B),64));H7(this)};h.ZE=function(){this.sb.Fe();this.Ha.ea();Yd(this.fa,"ytp-hover-progress-shown")};h.XE=function(a,b){this.C&&(Bi(this.C),this.C=0);this.qb=b;L(this.element,"ytp-drag");(this.la=dy(hz(this.B)))&&this.B.pauseVideo()};
h.aF=function(){this.da=0;Yd(this.element,"ytp-pull-ui");Yd(this.element,"ytp-pulling");if(0<this.H){var a=Vs(),b=this.H,c=N7(this).position;this.C&&Bi(this.C);this.C=Aq(A(this.rs,this,a,b,c),0)}this.B.Qb(N2(this.o,N7(this).o));Yd(this.element,"ytp-drag");this.la&&!U(hz(this.B),2)&&this.B.Xc()};h.rs=function(a,b,c){var d;d=(Vs()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.G*this.F-c);if(0>d||1<d)d=1;M7(this,(1-d)*b,e,this.G);this.C=1>d?Aq(A(this.rs,this,a,b,c),0):0};
h.bF=function(a,b){var c=!1,d=!1,e=N7(this);3600<=M2(this.o)&&(M7(this,this.qb-b-10,e.position,e.o),d=!0,c=this.H>.1*(this.J?60:40),e=N7(this));M(this.element,"ytp-pull-ui",d);c&&L(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);!this.C||c&&c==this.da||Ai(this.C);c&&(this.C=Aq(A(this.qs,this,Vs(),this.P),0));this.da=c;this.B.Qb(N2(this.o,e.o),!1)};
h.qs=function(a,b){if(this.da){var c=this.F*(this.$-1);this.P=je(b+this.da*(Vs()-a)*.3,0,c);F7(this);this.B.Qb(N2(this.o,N7(this).o),!1);0<this.P&&this.P<c&&(this.C=Aq(A(this.qs,this,a,b),0))}};h.setPosition=function(a,b,c){this.bb=a;this.F=b;this.J=c;F7(this)};h.os=function(){this.L.innerHTML=yh();this.K.innerHTML=yh();L(this.element,"ytp-clip-hover")};h.ms=function(){this.L.innerHTML=Ah();this.K.innerHTML=zh();Yd(this.element,"ytp-clip-hover")};
h.Bj=function(){this.W=0;this.T=window.Infinity;J7(this);G7(this,this.G,this.ha)};h.ts=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.Y[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.Y[d]=c;this.ga[d]=e;O7(this,c,e);"ytp-chapter-marker"==c.style?this.$b.appendChild(e):this.Mb.appendChild(e)}}else Q7(this,c)}};
h.cF=function(a){for(var b=0;b<a.length;b++)Q7(this,a[b])};h.S=function(){this.C&&(Ai(this.C),this.C=0);I7(this,!1);C7.M.S.call(this)};B(R7,R);R7.prototype.C=function(a){S7(this,a.state)};B(T7,R);
T7.prototype.o=function(){var a=!1;-1!=this.aa.jh().indexOf("remote")&&(a=1<this.aa.ub("remote","receivers").length);this.vb(a);var b=1;a&&this.aa.ub("remote","casting")&&(b=2);if(this.B!=b)switch(this.B=b,b){case 1:this.element.innerHTML=xh?'<div class="ytp-icon ytp-icon-cast-desktop-off"></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.81,26 L15.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 L16.81,26 Z M13.62,26 L11.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 L13.62,26 Z M10.45,26 L8,26 L8,23.52 C9.20,23.84 10.13,24.78 10.45,26 L10.45,26 Z M18.12,25 C17.94,23.94 17.62,22.93 17.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 Z" id="ytp-svg-4" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-4" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-4" /></svg>';break;
case 2:this.element.innerHTML=wh()}};T7.prototype.C=function(){tH(this.aa,"remote");if(this.aa.ub("remote","castSelector"))this.aa.Ia()&&vy(this.aa),this.aa.de("remote","castSelector",!0);else{var a=this.D,b=this.element;o6(a)?a.xb():(p8(a),a.J.open(),a.Ue(b))}};B(U7,x6);U7.prototype.K=function(){V7(this,!this.o);this.O("select",this.o)};U7.prototype.getValue=function(){return this.o};B(W7,U7);W7.prototype.D=function(){jH(this.aa.app.B,"iv-module")&&3!=this.aa.getPresentingPlayerType()?this.B||(q8(this.F,this),this.B=!0):this.B&&(r8(this.F,this),this.B=!1);V7(this,WJ(this.aa.app.B))};W7.prototype.G=function(a){WJ(this.aa.app.B);a?this.aa.oj("iv-module"):this.aa.lr("iv-module")};B(X7,x6);h=X7.prototype;h.open=function(){s6(this.o,this.P)};h.Lc=function(a){if(this.J){var b=this.B[this.J];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.B[a].element.setAttribute("aria-checked",!0);this.Cb(this.Ac(a));this.O("size-change");this.J=a};h.Hb=function(a){this.Lc(a);this.O("select",a)};h.Mz=function(a){"true"!=this.B[a].element.getAttribute("aria-disabled")&&this.Hb(a)};h.Ac=function(a){return a.toString()};
h.eF=function(a){Xl(a)||39!=Yl(a)||(this.open(),Wl(a))};h.S=function(){X7.M.S.call(this);for(var a in this.B)this.B[a].dispose()};B(Z7,X7);Z7.prototype.H=function(){var a=this.aa.mr();1<a.length?(Y7(this,P(a,this.F)),this.L=Hb(a,this.F,this),this.K.Cb(a.length?" ("+a.length+")":""),this.Lc(this.F(this.aa.Zf())),this.D||(q8(this.o,this),this.D=!0)):this.D&&(r8(this.o,this),this.D=!1)};Z7.prototype.Hb=function(a){Z7.M.Hb.call(this,a);this.aa.ym(this.L[a]);this.o.Vd()};Z7.prototype.F=function(a){return a.toString()};B($7,U7);$7.prototype.D=function(){if(1==this.aa.getPresentingPlayerType()&&Dx(this.aa.V(),this.aa.getVideoData(),this.aa.gc()))this.F||(q8(this.H,this),this.F=!0,this.B.push(S(this,this.aa,"videodatachange",this.D)),this.B.push(S(this,this.aa,"videoplayerreset",this.D)),this.B.push(S(this,this.aa,"onPlaylistUpdate",this.D)),this.B.push(S(this,this.aa,"autonavchange",this.G)),this.G(this.aa.getVideoData().Fd));else if(this.F){r8(this.H,this);this.F=!1;for(var a=0;a<this.B.length;a++)this.ya(this.B[a])}};
$7.prototype.G=function(a){V7(this,1!=a)};$7.prototype.J=function(a){this.aa.app.O("onAutonavChangeRequest",1!=(a?2:1))};B(a8,X7);a8.prototype.F=function(){if(1==this.aa.getPresentingPlayerType()){for(var a={},b=e2(lq(this.aa.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.L=a;a=this.aa.Zq();Y7(this,a);if(a.length){this.H();this.D||(q8(this.o,this),this.D=!0);return}}this.D&&(r8(this.o,this),this.D=!1)};a8.prototype.H=function(){var a=pH(this.aa);this.B[a]&&(this.K=this.aa.nj(),this.Lc(a),"auto"==a&&this.Cb(this.Ac(a)))};a8.prototype.Hb=function(a){a8.M.Hb.call(this,a);this.aa.rj(a);this.o.xb()};
a8.prototype.Ac=function(a,b){var c=["div",null,b8(this,a)],d=pH(this.aa);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(b8(this,this.K,["ytp-menu-label-secondary"])));return c};B(c8,X7);c8.prototype.H=function(){var a=-1!=this.aa.jh().indexOf("remote")?this.aa.ub("remote","receivers"):[];1<a.length&&!this.aa.ub("remote","castSelector")?(this.K=Hb(a,this.F,this),Y7(this,P(a,this.F)),a=this.aa.ub("remote","currentReceiver"),this.Lc(this.F(a)),this.D||(q8(this.o,this),this.D=!0)):this.D&&(r8(this.o,this),this.D=!1)};c8.prototype.F=function(a){return a.key};c8.prototype.Ac=function(a){return this.K[a].name};
c8.prototype.Hb=function(a){c8.M.Hb.call(this,a);this.aa.de("remote","currentReceiver",this.K[a]);this.o.xb()};B(d8,X7);h=d8.prototype;h.sk=function(a){return a.toString()};h.Ac=function(a){return"1"==a?Q("YTP_NORMAL_SPEED"):a.toString()};h.xs=function(){this.aa.V().T&&1==this.aa.getPresentingPlayerType()?this.D||(q8(this.o,this),this.D=!0,this.F=S(this,this.aa,"onPlaybackRateChange",this.Tz),Y7(this,P(this.aa.mj(),this.sk)),this.Lc(this.sk(this.aa.app.U))):this.D&&(r8(this.o,this),this.D=!1,this.ya(this.F),this.F=null)};h.Tz=function(a){this.Lc(this.sk(a))};
h.Hb=function(a){d8.M.Hb.call(this,a);this.aa.sj((0,window.parseFloat)(a));this.o.Vd()};B(e8,X7);e8.prototype.Lc=function(a){e8.M.Lc.call(this,a)};e8.prototype.F=function(a){return a.option.toString()};e8.prototype.Ac=function(a){return f8(this.D[a])};e8.prototype.Hb=function(a){e8.M.Hb.call(this,a);this.O("settingChange",this.H,this.D[a].option)};B(g8,z6);g8.prototype.H=function(a,b){this.O("settingChange",a,b)};g8.prototype.focus=function(){this.o.focus()};B(i8,X7);i8.prototype.F=function(a){return a.languageCode};i8.prototype.Ac=function(a){return this.D[a].languageName||""};i8.prototype.Hb=function(a){this.O("select",a);a=this.o;var b=a.B.pop(),c=a.B[0];a.B=[c];t6(a,b,c,!0)};B(j8,X7);h=j8.prototype;h.Km=function(a){return ac(a)?"__off__":a.displayName};h.Ac=function(a){return"__off__"==a?Q("YTP_LANGUAGE_OFF"):"__translate__"==a?Q("YTP_AUTO_TRANSLATE"):"__contribute__"==a?Q("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.D[a]).displayName};
h.Hb=function(a){if("__translate__"==a)this.H.open();else if("__contribute__"==a){this.aa.pauseVideo();this.aa.Ia()&&vy(this.aa);a=this.aa.V();var b=this.aa.getVideoData();qy(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.aa.de("captions","track","__off__"==a?{}:this.D[a]),j8.M.Hb.call(this,a),this.o.Vd()};h.QB=function(){s6(this.o,this.F)};
h.sh=function(){var a=-1!=this.aa.jh().indexOf("captions"),b=this.aa.getVideoData().Da;if(a||b){var c,d;if(a){var e;e=this.aa.ub("captions","track");var f=this.aa.ub("captions","tracklist",{includeAsr:!0}),k=this.aa.ub("captions","translationLanguages"),l=this.aa.ub("captions","displaySettings");k8(l);this.D=Hb(f,this.Km,this);c=P(f,this.Km);if(k.length){d=this.H;var m=k;d.D=Hb(m,d.F,d);Y7(d,P(m,d.F));c.push("__translate__")}d=this.Km(e)}else this.D={},c=[],d="__off__";c.unshift("__off__");this.D.__off__=
{};b&&c.unshift("__contribute__");this.D[d]||(this.D[d]=e,c.push(d));Y7(this,c);this.Lc(d);a?(h8(this.F,l),this.K.Cb(f.length?" ("+f.length+")":""),a&&k.length&&this.B.__translate__.element.setAttribute("aria-disabled",!!ac(e))):this.K.Cb("");this.L||(q8(this.o,this),this.L=!0)}else this.L&&(r8(this.o,this),this.L=!1)};h.IA=function(a){var b=this.aa.ub("captions","track"),b=ec(b);b.translationLanguage=this.H.D[a];this.aa.de("captions","track",b)};
h.uF=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=l8[b];break;case "charEdgeStyle":c.charEdgeStyle=m8[b];break;default:c[a]=b}c=mH(this.aa,c);k8(c);h8(this.F,c)};B(n8,X7);var dga={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};n8.prototype.Ac=function(a){return Q(dga[(0,window.parseInt)(a,10)])};n8.prototype.H=function(){var a=rH(this.aa);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.D||(this.F=a.shader,q8(this.o,this),this.D=!0,Y7(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Lc(a.toString())):this.D&&(r8(this.o,this),this.D=!1)};
n8.prototype.Hb=function(a){n8.M.Hb.call(this,a);sH(this.aa,{shader:this.F,displayMode:a});this.o.Vd();a=this.aa;var b=rH(a);a.app.Oa("webglsettingschanged",b)};B(o8,p6);o8.prototype.Ue=function(a){p8(this);0<this.o.o.length&&o8.M.Ue.call(this,a)};o8.prototype.show=function(){o8.M.show.call(this)};o8.prototype.ea=function(){window.document.activeElement&&xf(this.element,window.document.activeElement)&&this.H.focus();o8.M.ea.call(this)};B(s8,R);s8.prototype.D=function(a){tH(this.aa,"settings");this.B.A?this.B.xb():(this.aa.oj("captions"),this.B.Ue(Sl(a)))};s8.prototype.C=function(a){xq(this,"pressed",a)};
s8.prototype.o=function(){var a=1==this.aa.getPresentingPlayerType(),b=rH(this.aa),c=a&&("Anaglyph3D"==b.shader||"Spherical3D"==b.shader),b=c&&0==(0,window.parseInt)(b.displayMode,10),a=c||!a?null:this.aa.nj();M(this.element,"ytp-hd-quality-badge","hd720"==a||"hd1080"==a||"hd1440"==a);M(this.element,"ytp-4k-quality-badge","hd2160"==a);M(this.element,"ytp-5k-quality-badge","hd2880"==a);M(this.element,"ytp-8k-quality-badge","highres"==a);M(this.element,"ytp-3d-badge-grey",c&&b);M(this.element,"ytp-3d-badge",
c&&!b)};B(t8,R);t8.prototype.F=function(){tH(this.o,this.o.app.la?"size_small":"size_large");var a=this.o.app,b=!a.la;$9(a,!0,b);a.O("SIZE_CLICKED",b)};
t8.prototype.B=function(){this.vb(this.o.app.sb&&!this.o.Ia()&&3!=this.o.getPresentingPlayerType());if(this.A){var a=this.o.app.la;if(this.C!=a){this.C=a;if(this.o.V().C)this.element.innerHTML=a?xh?'<div class="ytp-icon ytp-icon-default-view"></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,13 L26,13 L26,23 L10,23 L10,13 Z M13,16 L13,20 L23,20 L23,16 L13,16 Z" id="ytp-svg-10" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-10" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-10" /></svg>':xh?
'<div class="ytp-icon ytp-icon-theater-mode"></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="M8,11 L28,11 L28,25 L8,25 L8,11 Z M11,14 L11,22 L25,22 L25,14 L11,14 Z" id="ytp-svg-47" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-47" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-47" /></svg>';else{var b=a?"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z":"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z",
c=a?"M8,11 L28,11 28,25 8,25 8,11 Z M11,14 L11,22 25,22 25,14 11,14 Z":"M10,13 L26,13 26,23 10,23 10,13 Z M13,16 L13,20 23,20 23,16 13,16 Z";this.element.innerHTML=wy(ka(this),b,c)}a=a?Q("YTP_DEFAULT_VIEW"):Q("YTP_THEATER_MODE");xq(this,"title",a);k6(this.D)}}};B(u8,R);u8.prototype.C=function(){tH(this.o,"subtitles");this.o.app.Vf("onCaptionsToggle")};u8.prototype.B=function(){var a=!!jH(this.o.app.B,"captions");this.vb(a);a&&xq(this,"pressed",!!this.o.ub("captions","track").displayName)};B(w8,R);h=w8.prototype;h.uh=function(){this.vb(!this.C||!U(hz(this.B),64));var a=this.B.Qe(),b=rx(a.current);this.G!=b&&(xq(this,"currenttime",b),this.G=b);a=rx(a.duration);this.H!=a&&(xq(this,"duration",a),this.H=a)};h.wF=function(a){if(this.F!=a){this.F=a;this.uh();var b=this.D.element;(b.disabled=a)?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title=Q("YTP_GOTO_LIVE_TOOLTIP"),this.o=i6(this.J,this.D.element,1))}};
h.xF=function(a,b){this.C=b.Ea;M(this.element,"ytp-live",this.C);this.uh()};h.vF=function(a){a.target==this.D.element?(tH(this.B,"live"),this.B.Qb(window.Infinity),this.B.Xc()):tH(this.B,"time")};h.S=function(){this.o&&this.o();w8.M.S.call(this)};B(x8,R);
var ega=["M",19.87,17.99,"C",19.87,17.53,19.5,17.14,19,17,"L",19,19,"C",19.5,18.85,19.87,18.46,19.87,17.99,"Z"],fga=["M",22,17.99,"C",22,16.4,20.74,15.05,19,14.54,"L",19,21.44,"C",20.74,20.93,22,19.59,22,17.99,"Z"],gga=["M",19,24.31,"L",19,24.32,"C",22.01,23.59,24.25,21.16,24.24,18,"C",24.25,14.84,22.01,12.41,19,11.68,"L",19,11.68,"C",22.01,12.41,24.24,14.84,24.24,18,"C",24.24,21.15,22.01,23.58,19,24.31,"Z"],hga=["M",19,24.31,"L",19,26,"C",22.99,25.24,26,21.94,26,18,"C",26,14.05,22.99,10.75,19,10,
"L",19,11.68,"C",22.01,12.41,24.24,14.84,24.24,18,"C",24.24,21.15,22.01,23.58,19,24.31,"Z"];h=x8.prototype;h.yA=function(a){if(!Xl(a)){var b=Yl(a),c=null;37==b?c=this.B-5:39==b?c=this.B+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=je(c,0,100),0==c?this.o.mute():(this.o.tc()&&this.o.unMute(),this.o.setVolume(c)),Wl(a))}};h.zF=function(a){Wl(a);(a=Zl(a||window.event,!0)||-Zl(a||window.event,!1))&&this.o.setVolume(this.B+je(a/20,-10,10))};
h.Ez=function(){this.o.tc()?(tH(this.o,"unmute"),this.o.unMute()):(tH(this.o,"mute"),this.o.mute())};h.xA=function(){tH(this.o,"volume");this.ca=!0;this.ga=this.B;L(this.element,"ytp-volume-slider-active");this.o.tc()&&this.o.unMute()};h.wA=function(a){a-=Zf(this.fa).x;a=100*je(a/(this.W?81:54),0,1);if(this.N&&this.L.paused&&this.P.paused){var b=Math.abs(a-this.B);8<b?this.L.play():5<b&&this.P.play()}this.o.setVolume(a)};
h.vA=function(){this.ca=!1;Yd(this.element,"ytp-volume-slider-active");0==this.B&&(this.o.setVolume(this.ga),this.o.mute());this.N&&!this.H&&(this.F.pause(),this.K.play())};h.BF=function(a){y8(this,a.volume,a.muted)};
h.Cs=function(a){a=z8(this,a);var b=["M12.39,15.54 L10,15.54 L10,20.44 L12.4,20.44 L17,25.50 L17,10.48 L12.39,15.54 Z",1];if(0>=a)b.push("M19.63,15.92 L20.68,14.93 L22.81,16.94 L24.94,14.93 L26,15.92 L23.86,17.93 L26,19.93 L24.94,20.92 L22.81,18.92 L20.68,20.92 L19.63,19.93 L21.76,17.93 L19.63,15.92 Z",-a/.5);else{var c=je(2*a,0,1);b.push(A8(ega,fga,c),1);(c=je(2*(a-.5),0,1))&&b.push(A8(gga,hga,c),1)}for(var c='<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">',
d=0;d<b.length;d+=2)0!=b[d].length&&(c+='<path class="ytp-svg-shadow" d="'+b[d]+'" opacity="'+b[d+1]+'"></path><path class="ytp-svg-fill" d="'+b[d]+'" opacity="'+b[d+1]+'"></path>');this.C.element.innerHTML=c+"</svg>";this.D!=a&&this.Y.start()};h.AF=function(){this.o.getVideoData().J&&(this.da=C8(this,"activate.mp3"),this.K=C8(this,"deactivate.mp3"),this.F=C8(this,"active.mp3",!0),this.L=C8(this,"swing_fast.mp3"),this.P=C8(this,"swing_slow.mp3"),this.N=!0,B8(this),this.ya(this.ha),this.ha=null)};
h.Ju=function(){this.da.play();this.F.play()};B(E8,R);E8.prototype.B=function(){var a=!!this.o.getVideoData().videoId;this.vb(a);a&&xq(this,"url",this.o.getVideoUrl(!0))};E8.prototype.C=function(a){tH(this.o,"youtube");var b=this.o.getVideoUrl(!sx(a),!1,!0);ty(b,this.o,a)};B(F8,rv);h=F8.prototype;h.tF=function(){L(this.o.element,"ytp-volume-control-hover");this.aa.getVideoData().J&&D8(this.o,!0)};h.sF=function(){Yd(this.o.element,"ytp-volume-control-hover");this.aa.getVideoData().J&&D8(this.o,!1)};h.rF=function(){G8(this)&&this.N.start()};h.Cj=function(a){if(this.H.o){if(a||this.aa.V().experiments.na("smooth_progress_bar")){a=this.C;E7(a);var b=a.B.getCurrentTime();(b<a.W||b>a.T)&&a.Bj();this.J.uh()}G8(this)&&this.N.start()}};h.pF=function(){this.Cj(!0)};
h.qF=function(a){a&&window.document.activeElement==this.D.element&&this.aa.ua().focus();this.Jm()};h.dC=function(){g6(this.B.o,!this.j.A)};
h.Jm=function(){var a=CE(this.B),b=AE(this.aa).Ka(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.P!=b.width||this.K!=a){this.P=b.width;this.K=a;var e=Math.max(b.width-2*c,100);this.A.element.style.width=e+"px";this.A.element.style.left=c+"px";this.C.setPosition(c,e,a);var f=this.B.o;f.T=c;f.Y=d;c=this.o;c.W=a;y8(c,c.o.Bb(),c.o.tc());M(this.aa.ua(),"ytp-tiny-mode",200>e)}e=this.j;b=Math.min(250*(a?1.5:1),Math.round(.6*(b.height-(CE(this.B)?72:50))));e.ga=Math.min(350*(a?1.5:1),d);e.ha=b;e.bh()};B(I8,R);I8.prototype.J=function(a){tH(this.o,"title");var b=this.o.getVideoUrl(!sx(a),!1,!0);ty(b,this.o,a)};I8.prototype.H=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&Dw.test(b)&&K8(this,a,c,d,b))};
I8.prototype.C=function(){J8(this);var a=this.o.getVideoData();xq(this,"title",a.title);!this.o.V().B&&a.videoId?(xq(this,"url",this.o.getVideoUrl(!0)),this.B||(this.B=S(this,this.G,"click",this.J))):this.B&&(xq(this,"url",null),this.ya(this.B),this.B=null)};B(L8,R);h=L8.prototype;h.Nx=function(){this.B=!0;this.o=!1;M8(this,1)};h.CF=function(){tH(this.C,"watchlater");var a=this.C.getVideoData().videoId;if(!this.o){this.o=!0;M8(this,3);N8(this);var b=this.C.app,c=!this.B;(c?Rea:Sea)({videoIds:a,yb:b.X.yb,pageId:b.X.pageId,onError:b.dB,jb:c?b.cB:b.eB,context:b},b.X.baseYtUrl,!0)}};h.DF=function(a){this.o=!1;M8(this,4);N8(this,a)};h.fA=function(){this.o=this.B=!1;M8(this,2)};h.EF=function(){this.o=this.B=!1;M8(this,2);N8(this)};B(O8,R);O8.prototype.C=function(){this.B.getVideoData().videoId?(xq(this,"url",this.B.getVideoUrl(!0)),this.o||(this.o=this.R("click",this.D))):this.o&&(xq(this,"url",null),this.ya(this.o),this.o=null)};O8.prototype.D=function(a){var b=this.B.getVideoUrl(!sx(a),!1,!0);ty(b,this.B,a)};B(P8,rv);h=P8.prototype;h.ds=function(a,b){this.fa!=b.videoId&&(this.fa=b.videoId,this.A.$a(512,!0),this.ah());if(b.J){var c=this.j.ua();L(c,"ytp-project-beyond");M(c,"ytp-project-beyond-light",1==b.J);M(c,"ytp-project-beyond-dark",2==b.J)}};h.Yz=function(){this.ds(0,cb(this.j.getVideoData()))};h.Ql=function(){var a=!BE(this);a?this.F.G.show():this.F.G.ea();this.ae();xq(this.Y,"menuopen",a);T8(this.Y,this.F,!a)};
h.Rl=function(){var a=!BE(this);a?this.G.F.show():this.G.F.ea();this.ae();xq(this.$,"menuopen",a);T8(this.$,this.G,!a)};h.ae=function(){var a=!BE(this);a?(this.ga.show(),this.ka.show(),vH(this.j)&&this.J.o.show()):(this.ga.ea(),this.ka.ea(),this.J.o.ea(),this.o.lg(3));M(this.j.ua(),"ytp-menu-shown",!a);var b=this.U,c=!a;(b.C=c)?b.ea():I6(b.B,b.o,hz(b.o));this.C&&H8(this.C,!a)};
h.rE=function(a){if(this.C&&!xf(this.C.A.element,a)&&!xf(this.D.element,a))return!1;for(;!a||!Bf(a);){if(!a||a==this.j.ua())return!1;a=vf(a)}return!0};h.sE=function(a){var b=this.j.ua();M(b,"ytp-autohide",a);a&&(this.o.lg(1,3),Yd(b,"ytp-touch-mode"));b=this.j;a=!a;b.app.Oa("onVideoAreaChange");b.app.Oa(a?"onShowControls":"onHideControls")};h.kA=function(a){this.j.V();this.A.o||S8(this,a)||R8(this,Tl(a))||Wl(a);this.A.$a(2,!0);L(this.j.ua(),"ytp-touch-mode")};
h.Ep=function(a){if(R8(this,Tl(a)))return!0;this.A.$a(2,!0);return this.Gn()?!0:!1};h.Fp=function(a){R8(this,Tl(a));var b=hz(this.j);U(b,2)&&kH(this.j)||S8(this,a)||(c6(this.N),dy(b)?this.j.pauseVideo():(this.j.Xc(),window.document.activeElement==this.U.element&&this.j.ua().focus()))};h.jA=function(a){R8(this,Tl(a))||"3"!=this.j.V().A&&3!=this.j.getPresentingPlayerType()&&vy(this.j)};
h.tE=function(a){var b=this.j.ua();a?(b.setAttribute("aria-label",Q("YTP_PLAYER_FULLSCREEN")),b.parentElement&&(this.da.j(b.parentElement),this.ca.j(b.parentElement))):(b.setAttribute("aria-label",Q("YTP_PLAYER_NORMAL")),this.da.detach(),this.ca.detach());this.Em();this.ah()};h.Em=function(){var a=CE(this),b=AE(this.j).Ka(),c=this.j.Ia(),d=this.j.ua();this.o.D=a?1.5:1;M(d,"ytp-fullscreen",c);M(d,"ytp-big-mode",a);M(this.K.element,"ytp-big-mode",a);this.B&&(a=this.B,a.o&&U5(a.o,b.width,b.height))};
h.uE=function(a){Q8(this,a.state);this.ah();this.Fq()};h.ah=function(){var a=!this.j.getVideoData().isListed&&2==this.j.getPresentingPlayerType(),a=!!this.fa&&!iH(this.j)&&!a&&(2==this.j.getPresentingPlayerType()||this.j.V().Fa||this.j.Ia());this.Aa!=a&&(this.Aa=a,M(this.j.ua(),"ytp-hide-info-bar",!a),a||(this.o.lg(3),a7(this.H)&&this.Fm(),U6(this.F)&&this.Ql(),Y6(this.G)&&this.Rl()))};
h.Fq=function(){var a=vH(this.j),b=a&&wH(this.j);b!=this.P&&(this.P=b,this.ae(),b&&(b=this.T,b=b.A&&3!=b.F.j),b&&this.T.zj());b=hz(this.j);(a=a&&!U(b,2))&&!BE(this)?this.J.o.show():(b=this.J,b.A&&3!=b.o.j&&this.J.o.ea());M(this.D.element,"ytp-cards-available",a)};h.Eq=function(){this.P?this.j.kh(!1):this.j.kh(!0)};h.Fm=function(){var a=!BE(this);if(a)this.H.G.show();else{var b=this.H;b.G.ea();b.C.lg(4)}this.ae();T8(this.ha,this.H,!a)};
h.Gn=function(){if(this.K.A)return this.K.xb(),!0;var a;if(a=this.C){a=this.C;var b=a.D;b.o&&o6(b.o)?(a.D.o.xb(),a=!0):a.j.A?(a.j.xb(),a=!0):a=!1}return a?!0:U6(this.F)?(this.Ql(),!0):a7(this.H)?(this.Fm(),!0):Y6(this.G)?(this.Rl(),!0):this.P?(this.Eq(),!0):iH(this.j)?(O9(this.j.app,!0),!0):!1};h.NB=function(a){this.A.$a(64,a);this.Fa=a;this.es()};h.es=function(){var a=this.Fa||this.K.A;this.qa!=a&&(this.qa=a,this.j.app.O("onAutonavPauseRequest",this.qa))};h.Fv=function(){U8(this,this.j.ua(),!0).focus()};
h.Gv=function(){U8(this,this.j.ua(),!1).focus()};var W8=[];V8.prototype.Zb=function(){return r.JSON&&r.JSON.stringify?r.JSON.stringify(this.j):de(this.j)};V8.prototype.toString=function(){return this.j.toString()};V8.prototype.getExtension=function(a){if(this.o){this.A||(this.A={});var b=a.o;if(a.A){if(a.j)return this.A[b]||(this.A[b]=P(this.o[b]||[],function(b){return new a.j(b)})),this.A[b]}else if(a.j)return!this.A[b]&&this.o[b]&&(this.A[b]=new a.j(this.o[b])),this.A[b];return this.o[b]}};B(X8,V8);var Vea=[241];X8.prototype.getStatus=function(){return Z(this,59)};X8.prototype.setVideoId=function(a){175<this.B?this.j[174]=a:this.o[175]=a};var Wea={legacy_config:!0,player_response:!0,polymer_player_response:!0},Z8={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};B(Y8,Oj);Y8.D="defaultcontext";Y8.j={};Y8.A="appapi";Y8.o="appad";Y8.create=function(a,b){try{var c=Y8.C(a);if(Y8.j[c]){try{Y8.j[c].dispose()}catch(e){Ci(e)}Y8.j[c]=null}var d=new Y8(a,b);Lb(d,function(){Y8.j[c]=null});return Y8.j[c]=d}catch(e){throw Ci(e),e.stack;}};
Y8.B=function(a,b){Ru("pwc");var c=window.document.querySelector(a);window.document.registerElement(a,{});var d=c.querySelector("template"),c=c.createShadowRoot(),d=window.document.importNode(d.content,!0);c.appendChild(d);c=c.getElementById(b);d=t("ytplayer.config");c=Y8.create(c,d);d.loaded=!0;return c};Y8.C=function(a){return x(a)?a:"player"+ka(a)};h=Y8.prototype;h.Yx=function(){r9(this)||p9(this,5)};h.Uz=function(a){r9(this)||(V9(this),dy(a.getPlayerState())&&this.Ne())};
h.sq=function(a){var b=this.D.element;M(b,"ytp-ad-overlay-open",a);M(b,"ytp-ad-overlay-closed",!a)};h.Oa=function(a,b){this.O.apply(this,arguments);this.Vf.apply(this,arguments)};h.Hf=function(a,b){var c=sb(arguments);this.X.ib&&this.C&&c.push(this.C.N);this.O.apply(this,c)};h.canPlayType=function(a){return!!pt().canPlayType(a)};h.V=function(){return this.X};h.getVideoData=function(){return this.C.getVideoData()};
h.hj=function(){var a=KG(this.X);qa(a,YJ(this.B));this.F&&qa(a,this.F.nh());a.fs=this.L.Ia();a.volume=Math.round(this.Wa.Bb());a.mos=this.Wa.tc()?1:0;return a};h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.G.getCurrentTime():(a=lq(this,a))?a.getCurrentTime():0};h.getPresentingPlayerType=function(){var a;if(a=this.G)a=this.G,a=!!a.o&&!!a.A;return a?3:lq(this).N};
h.JC=function(a){var b=a.target;switch(a.type){case "loadedmetadata":this.H.o("fvb",void 0);this.bb.start();break;case "loadstart":this.H.o("gv",void 0);break;case "progress":case "timeupdate":2<=Vx(b.buffered)&&this.H.o("l2s",void 0)}};h.pz=function(a,b){this.Hf("onLoadProgress",b)};h.zA=function(){this.Hf("playbackstalledatstart")};h.YA=function(a,b){this.Hf("onVideoProgress",b)};h.FC=function(){DH(this.Wa)};
h.$x=function(a){!this.X.experiments.na("disable_live_head_slowdown")&&0<WA(a,1)&&!U(a.state,64)&&d5(this).Ea&&c2(this.j)&&1<this.U&&s9(this,1);if(0<WA(a,2)){var b;this.o&&("embedded"==this.X.Ba||this.L.Ia())&&Mx(this)?(P9(this),b=!0):b=!1;!b&&yG(this.X)&&M1(this.j).webkitExitFullScreen&&M1(this.j).webkitExitFullScreen()}U(a.state,128)&&(b=a.state,J9(this),b=b.j,this.O("onError",x$[b.errorCode]||5),this.O("onDetailedError",b));this.O("applicationplayerstatechange",a);U(a.state,2)&&(a=this.getVideoData(),
a.isLiveDefaultBroadcast&&G9(this,{videoId:a.videoId,livemonitor:a.zf}))};h.EC=function(a){!U(a.state,32)&&0>WA(a,16)&&(!U(a.state,8)||U(a.state,64)||this.A.ended||U(a.state,2)||this.Ne());this.O("presentingplayerstatechange",a);this.Vf("onStateChange",a);q9(this,my(a.state));D9(this)};h.Xx=function(a){"newdata"==a&&A9(this)};h.by=function(a,b){var c=this.C.getVideoData();a==c&&this.Oa("onPlaybackAudioChange",u9(this).Gb.name,b)};h.IC=function(a,b,c){"newdata"==a?j9(this,b):k9(this,a,b,c)};
h.WA=function(a,b){var c=this.C.getVideoData();a==c&&(this.Oa("onPlaybackQualityChange",a.o.video.quality,b),D9(this))};h.$j=function(){c9(this,null);this.Oa("onPlaylistUpdate")};
h.Zo=function(a){var b=a.getId(),c=d5(this);if("part2viewed"==b)c.fd&&Yp(c.fd),c.Na&&Yp(c.Na);else if("conversionview"==b){var d=this.j;d.A&&UA(d.A)}else"engagedview"==b&&Yp(c.ka);c.la&&(d=a.getId(),d=oj(c.la,{label:d}),Yp(d));switch(b){case "videoplaytime25":c.wc&&Yp(c.wc);Yp(c.Ze);break;case "videoplaytime50":c.xc&&Yp(c.xc);Yp(c.gg);break;case "videoplaytime75":c.$c&&Yp(c.$c);Yp(c.hg);break;case "videoplaytime100":c.Mc&&Yp(c.Mc),Yp(c.Ye)}(b=xA?this.X.fd:this.getVideoData().je)&&b[a.getId()]&&(b=
b[a.getId()],c=C(D(b))?!1:ofa.test(b)||nfa.test(b),Yp(b,void 0,c));this.j.D.gh(a)};h.Wf=function(a,b,c,d){b=0!=b;if(d=lq(this,d))2==this.J&&f9(this),S1(d,a,b,c)};h.HC=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?f9(this):this.Oa("seekto",b)};h.Ox=function(){this.O("airplayactivechange")};h.Px=function(){this.O("airplayavailabilitychange")};h.AC=function(){this.Oa("beginseeking")};h.BC=function(){this.Oa("endseeking")};
h.tp=function(){var a=this.o.nb(),b=this.getVideoData();b.Hg||!this.Y?(b=b.Xf,a=H9(this,a),b&&K9(this,a)):a&&L9(this,a)};h.Vx=function(a){this.O("onCueRangeEnter",a.getId())};h.Wx=function(a){this.O("onCueRangeExit",a.getId())};
h.Zx=function(){this.$||(this.$=Ou(this.cp,this));H_(this.H,U9(this));if(!this.Va&&"detailpage"==this.X.Ba){this.Va=!0;var a=this.j;if(a.$&&a.$.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.clientPlaybackNonce;b.ad_cpn=a.$.j;var d=K()-a.$.o;a.$.A?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+c[e]);a.rt=d.join(",");for(var f in b)"_"!=f.charAt(0)&&
(a[f]=b[f]);b=wi("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);ev(a)}}this.X.experiments.A&&Mx(this)&&(b=this.o.nb(kx(this.o)))&&I9(this,b)};h.cp=function(a){a=a.j;if(!(0,window.isNaN)(a)&&0<a&&this.j){var b=this.j;b.A&&0<a&&(b.A.A.A.aft=[a])}};h.op=function(a){"remote"==a?(2==this.J&&f9(this),p9(this,6),o9(this,this.F)):this.pl()};h.pp=function(a){"remote"!=a||r9(this)||(this.Ne(),this.pauseVideo());this.pl()};h.pl=function(){this.Hf("onApiChange")};
h.zz=function(){var a={volume:100*this.A.volume,muted:this.A.muted};this.T=ec(a);this.Oa("onVolumeChange",a)};h.az=function(){W9(this,Jh()?1:0)};h.GC=function(){if(this.A){var a=!1;if(0!=this.A.readyState&&this.C){var b=new qe(this.A.videoWidth,this.A.videoHeight),c=this.getVideoData();re(c.ie,b)||(c.ie=b,a=!0)}b=zE(this.D);ue(this.qb,b)||(this.qb=b,a=!0);a&&(this.C&&h2(this.C,"r"),this.O("resize",this.D.Ka()),this.Oa("onResize"))}};h.iA=function(){2!=this.Ua&&W9(this,Jh()?1:0)};
h.DC=function(a){this.Oa("liveviewshift",a)};h.cB=function(){this.O("WATCH_LATER_VIDEO_ADDED")};h.eB=function(){this.O("WATCH_LATER_VIDEO_REMOVED")};h.dB=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.O("WATCH_LATER_ERROR",c||Q("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
h.Hi=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(this.H.o("vr",void 0),this.$||(this.$=Ou(this.cp,this)),n2(this.C),H_(this.H,U9(this)));0==c&&e&&(this.j.$=e);var f=this.X;"leanback"==f.Ba&&f.ib&&(0==c?this.ha=this.A:this.ha=d,this.O("onAdStateChange",c,e.video_id))}else this.O.apply(this,arguments)};h.Vf=function(a,b){this.B.J.apply(this.B,arguments);this.F&&this.F.O.apply(this.F,arguments);this.G&&this.G.O.apply(this.G,arguments)};
h.Ne=function(a){if(a=lq(this,a))if(2==this.J)f9(this);else{var b=a.getPlayerState();if(U(a.getPlayerState(),2))this.Wf(0);else{if(!this.X.experiments.na("new_stop_video")&&1==this.getPresentingPlayerType()&&U(b,64)){var b=this.B,c=zJ();F(c,b.H,b)}b2(a)}}};h.pauseVideo=function(a){(a=lq(this,a))&&a.pauseVideo()};h.getAdState=function(){return this.F?this.F.getAdState():-1};h.Wq=function(a,b,c){this.Ti();this.qa=a;b&&F(b,function(a){this.ca[a]=!0},this);c&&UJ(this.B,a,c)};
h.Ti=function(){this.qa=null;this.ca={};VJ(this.B)};h.tA=function(){if(!this.Fa){this.Fa=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Ea||(b.start=lq(this).getCurrentTime());b.autoplay=1;b.reload=1;G9(this,b)}};h.Jy=function(){this.Oa("CONNECTION_ISSUE")};h.CC=function(a){this.Oa("heartbeatparams",a)};h.S=function(){pp();this.j.dispose();this.K&&this.K.dispose();h9(this);Nb(Vb(this.Aa),this.o);this.ha=null;Pu(this.$);this.$=0;Y8.M.S.call(this)};q("yt.player.Application.create",Y8.create,void 0);q("yt.player.Application.createWebComponent",Y8.B,void 0);var $$=t("ytcsi.tick");$$&&$$("pe");})(_yt_player);
