(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;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]={}}function r(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function t(){}function ba(a){a.getInstance=function(){return a.Fb?a.Fb:a.Fb=new a}}
function ca(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}function da(a){return null===a}function ea(a){return"array"==ca(a)}function ga(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ha(a){return"number"==typeof a}function ia(a){return"function"==ca(a)}function ja(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[ma]||(a[ma]=++na)}
var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0;function oa(a,b,c){return a.call.apply(a.bind,arguments)}function pa(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)}}
function w(a,b,c){w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;return w.apply(null,arguments)}function y(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)}}function ra(a,b){for(var c in b)a[c]=b[c]}var z=Date.now||function(){return+new Date};function sa(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return d in b?b[d]:a}));return a}
function A(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}}Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return w.apply(null,c)}return w(this,a)};function ta(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}A(ta,Error);ta.prototype.name="CustomError";var ua;function va(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function B(a){return/^[\s\xa0]*$/.test(a)}var wa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function xa(a){return encodeURIComponent(String(a))}function ya(a){return decodeURIComponent(a.replace(/\+/g," "))}
function za(a){if(!Aa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ba,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ca,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Da,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Fa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"&#0;"));return a}var Ba=/&/g,Ca=/</g,Da=/>/g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,Aa=/[\x00&<>"']/;function Ha(a){return-1!=a.indexOf("&")?"document"in m?Ia(a):Ja(a):a}
function Ia(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Ka,function(a,e){var g=b[a];if(g)return g;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(g=String.fromCharCode(h))}g||(c.innerHTML=a+" ",g=c.firstChild.nodeValue.slice(0,-1));return b[a]=g})}
function Ja(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(!isNaN(d))return String.fromCharCode(d)}return a}})}var Ka=/&([^;\s<&]+);?/g;function La(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}function Ma(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}
function Na(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Oa(a,b){return Array(b+1).join(a)}function Pa(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Oa("0",Math.max(0,2-b))+a}function C(a){return null==a?"":String(a)}function Qa(a){return Array.prototype.join.call(arguments,"")}
function Ra(a,b){for(var c=0,d=wa(String(a)).split("."),e=wa(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\\d*)(\\D*)","g"),u=RegExp("(\\d*)(\\D*)","g");do{var x=p.exec(k)||["","",""],L=u.exec(l)||["","",""];if(0==x[0].length&&0==L[0].length)break;c=Sa(0==x[1].length?0:parseInt(x[1],10),0==L[1].length?0:parseInt(L[1],10))||Sa(0==x[2].length,0==L[2].length)||Sa(x[2],L[2])}while(0==c)}return c}function Sa(a,b){return a<b?-1:a>b?1:0}
function Ta(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ua=2147483648*Math.random()|0;function Va(){return"goog_"+Ua++}function Wa(a){var b=Number(a);return 0==b&&B(a)?NaN:b}function Xa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ya(a){var b=v(void 0)?Na(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
function Za(a){isFinite(a)&&(a=String(a));return v(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN}function $a(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};function ab(){};function bb(a){return a[a.length-1]}
var cb=Array.prototype,db=cb.indexOf?function(a,b,c){return cb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(v(a))return v(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},eb=cb.lastIndexOf?function(a,b,c){return cb.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(v(a))return v(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},D=cb.forEach?function(a,b,c){cb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},fb=cb.filter?function(a,b,c){return cb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=v(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},E=cb.map?function(a,b,c){return cb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=v(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},gb=cb.reduce?function(a,b,c,d){d&&(b=w(b,d));return cb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;D(a,function(c,h){e=b.call(d,e,c,h,a)});return e},hb=cb.some?function(a,b,c){return cb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},ib=cb.every?function(a,b,c){return cb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;
return!0};function F(a,b,c){b=jb(a,b,c);return 0>b?null:v(a)?a.charAt(b):a[b]}function jb(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function kb(a,b){var c=lb(a,b,void 0);return 0>c?null:v(a)?a.charAt(c):a[c]}function lb(a,b,c){for(var d=v(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}function G(a,b){return 0<=db(a,b)}function mb(a){return 0==a.length}
function nb(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function ob(a,b){G(a,b)||a.push(b)}function pb(a,b){var c=db(a,b),d;(d=0<=c)&&qb(a,c);return d}function qb(a,b){cb.splice.call(a,b,1)}function rb(a,b){var c=jb(a,b,void 0);0<=c&&qb(a,c)}function sb(a){return cb.concat.apply(cb,arguments)}function tb(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[]}
function ub(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ga(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var h=0;h<g;h++)a[e+h]=d[h]}else a.push(d)}}function vb(a,b,c,d){cb.splice.apply(a,wb(arguments,1))}function wb(a,b,c){return 2>=arguments.length?cb.slice.call(a,b):cb.slice.call(a,b,c)}
function xb(a,b,c){b=b||a;c=c||function(){return ja(h)?"o"+ka(h):(typeof h).charAt(0)+h};for(var d={},e=0,g=0;g<a.length;){var h=a[g++],k=c(h);Object.prototype.hasOwnProperty.call(d,k)||(d[k]=!0,b[e++]=h)}b.length=e}function yb(a,b,c){c=c||zb;for(var d=0,e=a.length,g;d<e;){var h=d+e>>1,k;k=c(b,a[h]);0<k?d=h+1:(e=h,g=!k)}return g?d:~d}function Ab(a,b){a.sort(b||zb)}function Bb(a,b,c){var d=c||zb;Ab(a,function(a,c){return d(b(a),b(c))})}function Cb(a,b){Bb(a,function(a){return a[b]},void 0)}
function Db(a,b,c){if(!ga(a)||!ga(b)||a.length!=b.length)return!1;var d=a.length;c=c||Eb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function zb(a,b){return a>b?1:a<b?-1:0}function Eb(a,b){return a===b}function Fb(a,b,c){c=yb(a,b,c);0>c&&vb(a,-(c+1),0,b)}function Gb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Hb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ea(d))for(var e=0;e<d.length;e+=8192)for(var g=wb(d,e,e+8192),g=Hb.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Ib(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Jb(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Kb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Lb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Mb(a){var b=0,c;for(c in a)b++;return b}function Nb(a,b){return Ob(a,b)}function Pb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Qb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Rb(a,b){for(var c=ga(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}function Ob(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Sb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Tb(a){var b=Ub;return(a=Sb(b,a,void 0))&&b[a]}function Vb(a){for(var b in a)return!1;return!0}function Wb(a){for(var b in a)delete a[b]}function Yb(a,b){b in a&&delete a[b]}function Zb(a,b,c){return b in a?a[b]:c}
function $b(a){var b={},c;for(c in a)b[c]=a[c];return b}function ac(a){var b=ca(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=ac(a[c]);return b}return a}var bc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function cc(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 g=0;g<bc.length;g++)c=bc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function dc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return dc.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}
function ec(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return ec.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var fc=ec("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var gc=/<[^>]*>|&[^;]+;/g;function hc(a,b){return b?a.replace(gc,""):a}
var ic=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),jc=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),kc=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),lc=/^http:\/\/.*/,mc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,nc=
/\s+/,oc=/\d/;function pc(){this.j=qc}pc.prototype.cg=!0;pc.prototype.ag=function(){return""};pc.prototype.toString=function(){return"Const{}"};function rc(a){return a instanceof pc&&a.constructor===pc&&a.j===qc?"":"type_error:Const"}var qc={};function sc(){this.j="";this.k=tc}sc.prototype.cg=!0;var tc={};sc.prototype.ag=function(){return this.j};function uc(a){var b=new sc;b.j=a;return b}var vc=uc(""),wc=/^[-.%_!# a-zA-Z0-9]+$/;function xc(){this.j=yc}xc.prototype.cg=!0;xc.prototype.ag=function(){return""};xc.prototype.eo=!0;xc.prototype.$f=function(){return 1};function zc(a){return a instanceof xc&&a.constructor===xc&&a.j===yc?"":"type_error:SafeUrl"}var yc={};function Ac(){this.j=Bc}Ac.prototype.cg=!0;Ac.prototype.ag=function(){return""};Ac.prototype.eo=!0;Ac.prototype.$f=function(){return 1};var Bc={};function Cc(){this.j="";this.o=Dc;this.k=null}Cc.prototype.eo=!0;Cc.prototype.$f=function(){return this.k};Cc.prototype.cg=!0;Cc.prototype.ag=function(){return this.j};function Ec(a){return a instanceof Cc&&a.constructor===Cc&&a.o===Dc?a.j:"type_error:SafeHtml"}var Fc=/^[a-zA-Z0-9-]+$/,Gc=ec("action","cite","data","formaction","href","manifest","poster","src"),Hc=ec("embed","iframe","link","object","script","style","template");
function Ic(a){function b(a){if(ea(a))D(a,b);else{if(!(a instanceof Cc)){var g=null;a.eo&&(g=a.$f());a=Jc(za(a.cg?a.ag():String(a)),g)}d+=Ec(a);a=a.$f();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";D(arguments,b);return Jc(d,c)}var Dc={};function Jc(a,b){var c=new Cc;c.j=a;c.k=b;return c}Jc("",0);function Kc(a,b,c){return Math.min(Math.max(a,b),c)};function Lc(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=Lc.prototype;f.clone=function(){return new Lc(this.x,this.y)};function Mc(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Nc(a,b){return new Lc(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
f.scale=function(a,b){var c=ha(b)?b:a;this.x*=a;this.y*=c;return this};function H(a,b){this.width=a;this.height=b}function Oc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=H.prototype;f.clone=function(){return new H(this.width,this.height)};f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ha(b)?b:a;this.width*=a;this.height*=c;return this};var Pc;t:{var Qc=m.navigator;if(Qc){var Rc=Qc.userAgent;if(Rc){Pc=Rc;break t}}Pc=""}function Sc(a){return-1!=Pc.indexOf(a)};var Tc=Sc("Opera")||Sc("OPR"),Uc=Sc("Trident")||Sc("MSIE"),Vc=Sc("Gecko")&&!Ma(Pc,"WebKit")&&!(Sc("Trident")||Sc("MSIE")),Wc=Ma(Pc,"WebKit"),Xc=Wc&&Sc("Mobile"),Yc=Sc("Macintosh"),Zc=Sc("Windows"),$c=Sc("Linux")||Sc("CrOS"),ad=Sc("Android"),bd=Sc("iPhone")&&!Sc("iPod")&&!Sc("iPad"),cd=Sc("iPad");function dd(){var a=m.document;return a?a.documentMode:void 0}
var ed=function(){var a="",b;if(Tc&&m.opera)return a=m.opera.version,ia(a)?a():a;Vc?b=/rv\:([^\);]+)(\)|;)/:Uc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Wc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(Pc))?a[1]:"");return Uc&&(b=dd(),b>parseFloat(a))?String(b):a}(),fd={};function gd(a){return fd[a]||(fd[a]=0<=Ra(ed,a))}function hd(a){return Uc&&id>=a}var jd=m.document,id=jd&&Uc?dd()||("CSS1Compat"==jd.compatMode?parseInt(ed,10):5):void 0;var kd=!Uc||hd(9),ld=!Vc&&!Uc||Uc&&hd(9)||Vc&&gd("1.9.1"),md=Uc&&!gd("9"),nd=Uc||Tc||Wc;function od(a){return a?new pd(qd(a)):ua||(ua=new pd)}function rd(a){return v(a)?document.getElementById(a):a}function sd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):td("*",a,b)}function ud(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=td("*",a,b)[0];return d||null}
function td(a,b,c){var d=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,g=0,h;h=c[g];g++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(g=e=0;h=c[g];g++)a=h.className,"function"==typeof a.split&&G(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function vd(a,b){Ib(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in wd?a.setAttribute(wd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var wd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function xd(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new H(a.clientWidth,a.clientHeight)}function zd(a){var b=Ad(a);a=a.parentWindow||a.defaultView;return Uc&&gd("10")&&a.pageYOffset!=b.scrollTop?new Lc(b.scrollLeft,b.scrollTop):new Lc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Ad(a){return Wc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function Bd(a){return a?a.parentWindow||a.defaultView:window}
function I(a,b,c){return Cd(document,arguments)}function Cd(a,b){var c=b[0],d=b[1];if(!kd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',za(d.name),'"');if(d.type){c.push(' type="',za(d.type),'"');var e={};cc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(v(d)?c.className=d:ea(d)?c.className=d.join(" "):vd(c,d));2<b.length&&Dd(a,c,b,2);return c}
function Dd(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ga(g)||ja(g)&&0<g.nodeType?e(g):D(Ed(g)?tb(g):g,e)}}function Fd(a){return document.createElement(a)}function Gd(a){return document.createTextNode(String(a))}function Hd(a,b){a.appendChild(b)}function Id(a,b){Dd(qd(a),a,arguments,1)}function Jd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Kd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
function Ld(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Md(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Nd(a){return ld&&void 0!=a.children?a.children:fb(a.childNodes,function(a){return 1==a.nodeType})}function Od(a){return void 0!=a.firstElementChild?a.firstElementChild:Pd(a.firstChild)}function Pd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Qd(a){return ja(a)&&1==a.nodeType}
function Rd(a){var b;if(nd&&!(Uc&&gd("9")&&!gd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return Qd(b)?b:null}function Sd(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}function qd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Td(a){return a.contentWindow||Bd(a.contentDocument||a.contentWindow.document)}function Ud(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{Jd(a);var c=qd(a);a.appendChild(c.createTextNode(String(b)))}}function Vd(a,b){var c=[];return Wd(a,b,c,!0)?c[0]:void 0}
function Wd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Wd(a,b,c,d))return!0;a=a.nextSibling}return!1}var Xd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Yd={IMG:" ",BR:"\n"};
function Zd(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!$d(a)||ae(a)):$d(a)&&ae(a))&&Uc?(a=ia(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function $d(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function ae(a){a=a.tabIndex;return ha(a)&&0<=a&&32768>a}
function be(a,b,c){if(!(a.nodeName in Xd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Yd)b.push(Yd[a.nodeName]);else for(a=a.firstChild;a;)be(a,b,c),a=a.nextSibling}function Ed(a){if(a&&"number"==typeof a.length){if(ja(a))return"function"==typeof a.item||"string"==typeof a.item;if(ia(a))return"function"==typeof a.item}return!1}
function ce(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return de(a,function(a){return(!e||a.nodeName==e)&&(!c||v(a.className)&&G(a.className.split(/\s+/),c))},!0,d)}function ee(a,b){return ce(a,null,b,void 0)}function de(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function pd(a){this.j=a||m.document||document}f=pd.prototype;f.M=function(a){return v(a)?this.j.getElementById(a):a};f.setProperties=vd;
f.rE=function(a,b,c){return Cd(this.j,arguments)};f.createElement=function(a){return this.j.createElement(a)};function fe(a){return"CSS1Compat"==a.j.compatMode}function ge(a){a=a.j;return a.parentWindow||a.defaultView}function he(a){return zd(a.j)}f.appendChild=Hd;f.append=Id;f.contains=Sd;var ie="StopIteration"in m?m.StopIteration:Error("StopIteration");function ke(){}ke.prototype.next=function(){throw ie;};ke.prototype.bc=function(){return this};function le(a){if(a instanceof ke)return a;if("function"==typeof a.bc)return a.bc(!1);if(ga(a)){var b=0,c=new ke;c.next=function(){for(;;){if(b>=a.length)throw ie;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function me(a,b,c){if(ga(a))try{D(a,b,c)}catch(d){if(d!==ie)throw d;}else{a=le(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==ie)throw e;}}}function ne(a){if(ga(a))return tb(a);a=le(a);var b=[];me(a,function(a){b.push(a)});return b};function oe(a,b){this.k={};this.j=[];this.o=this.ka=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 oe?(c=a.Ja(),d=a.La()):(c=Qb(a),d=Pb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=oe.prototype;f.Qa=function(){return this.ka};f.La=function(){pe(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.k[this.j[b]]);return a};f.Ja=function(){pe(this);return this.j.concat()};
function qe(a,b){return re(a.k,b)}f.kg=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(re(this.k,c)&&this.k[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ka!=a.Qa())return!1;var c=b||se;pe(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function se(a,b){return a===b}f.isEmpty=function(){return 0==this.ka};f.clear=function(){this.k={};this.o=this.ka=this.j.length=0};
f.remove=function(a){return re(this.k,a)?(delete this.k[a],this.ka--,this.o++,this.j.length>2*this.ka&&pe(this),!0):!1};function pe(a){if(a.ka!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];re(a.k,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.ka!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],re(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}f.get=function(a,b){return re(this.k,a)?this.k[a]:b};f.set=function(a,b){re(this.k,a)||(this.ka++,this.j.push(a),this.o++);this.k[a]=b};
f.forEach=function(a,b){for(var c=this.Ja(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new oe(this)};f.bc=function(a){pe(this);var b=0,c=this.j,d=this.k,e=this.o,g=this,h=new ke;h.next=function(){for(;;){if(e!=g.o)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw ie;var h=c[b++];return a?h:d[h]}};return h};function re(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function te(a){return"function"==typeof a.Qa?a.Qa():ga(a)||v(a)?a.length:Mb(a)}function ue(a){if("function"==typeof a.La)return a.La();if(v(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Pb(a)}function ve(a){if("function"==typeof a.Ja)return a.Ja();if("function"!=typeof a.La){if(ga(a)||v(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Qb(a)}}
function we(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ga(a)||v(a))D(a,b,c);else for(var d=ve(a),e=ue(a),g=e.length,h=0;h<g;h++)b.call(c,e[h],d&&d[h],a)}function xe(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ga(a)||v(a))return ib(a,b,c);for(var d=ve(a),e=ue(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var ye=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function ze(a){if(Ae){Ae=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Be(c))&&c!=b.hostname)throw Ae=!0,Error();}}return a.match(ye)}var Ae=Wc;function Ce(a){return a?decodeURI(a):a}function Be(a){return Ce(ze(a)[3]||null)}
function De(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),g=null,h=null;0<=e?(g=c[d].substring(0,e),h=c[d].substring(e+1)):g=c[d];b(g,h?ya(h):"")}}function Ee(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("")}function Fe(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Fe(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",xa(b))}
function Ge(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Fe(b[c],b[c+1],a);return a}function He(a,b){for(var c in b)Fe(c,b[c],a);return a}function Ie(a){a=He([],a);a[0]="";return a.join("")}function Je(a,b){return Ee(2==arguments.length?Ge([a],arguments[1],0):Ge([a],arguments,1))}function Ke(a,b){return Ee(He([a],b))}
function Le(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var g=a.charCodeAt(b-1);if(38==g||63==g)if(g=a.charCodeAt(b+e),!g||61==g||38==g||35==g)return b;b+=e+1}return-1}var Me=/#|$/;function Oe(a,b){var c=a.search(Me),d=Le(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 ya(a.substr(d,e-d))}var Pe=/[?&]($|#)/;
function Qe(a,b,c){for(var d=a.search(Me),e=0,g,h=[];0<=(g=Le(a,e,b,d));)h.push(a.substring(e,g)),e=Math.min(a.indexOf("&",g)+1||d,d);h.push(a.substr(e));a=[h.join("").replace(Pe,"$1"),"&",b];null!=c&&a.push("=",xa(c));return Ee(a)};function J(a,b){var c;a instanceof J?(this.af=n(b)?b:a.af,Re(this,a.Ib),this.$e=a.$e,Se(this,a.ob),Ue(this,a.ld),Ve(this,a.Jb),We(this,a.j.clone()),this.Of=a.qf()):a&&(c=ze(String(a)))?(this.af=!!b,Re(this,c[1]||"",!0),this.$e=Xe(c[2]||""),Se(this,c[3]||"",!0),Ue(this,c[4]),Ve(this,c[5]||"",!0),We(this,c[6]||"",!0),this.Of=Xe(c[7]||"")):(this.af=!!b,this.j=new Ye(null,0,this.af))}f=J.prototype;f.Ib="";f.$e="";f.ob="";f.ld=null;f.Jb="";f.Of="";f.af=!1;
f.toString=function(){var a=[],b=this.Ib;b&&a.push(Ze(b,$e,!0),":");if(b=this.ob){a.push("//");var c=this.$e;c&&a.push(Ze(c,$e,!0),"@");a.push(xa(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ld;null!=b&&a.push(":",String(b))}if(b=this.Jb)this.ob&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ze(b,"/"==b.charAt(0)?af:bf,!0));(b=this.j.toString())&&a.push("?",b);(b=this.qf())&&a.push("#",Ze(b,cf));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Ib;c?Re(b,a.Ib):c=!!a.$e;c?b.$e=a.$e:c=!!a.ob;c?Se(b,a.ob):c=null!=a.ld;var d=a.Jb;if(c)Ue(b,a.ld);else if(c=!!a.Jb){if("/"!=d.charAt(0))if(this.ob&&!this.Jb)d="/"+d;else{var e=b.Jb.lastIndexOf("/");-1!=e&&(d=b.Jb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),g=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&g.push(""):".."==k?((1<g.length||1==g.length&&
""!=g[0])&&g.pop(),d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?Ve(b,d):c=""!==a.j.toString();c?We(b,Xe(a.j.toString())):c=!!a.Of;c&&(b.Of=a.qf());return b};f.clone=function(){return new J(this)};function Re(a,b,c){a.Ib=c?Xe(b,!0):b;a.Ib&&(a.Ib=a.Ib.replace(/:$/,""))}function df(a){return a.ob}function Se(a,b,c){a.ob=c?Xe(b,!0):b;return a}function Ue(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ld=b}else a.ld=null;return a}
function Ve(a,b,c){a.Jb=c?Xe(b,!0):b}function We(a,b,c){b instanceof Ye?(a.j=b,ef(a.j,a.af)):(c||(b=Ze(b,ff)),a.j=new Ye(b,0,a.af));return a}function gf(a){return a.j}f.jq=function(){return this.j.toString()};function K(a,b,c){a.j.set(b,c);return a}function hf(a,b,c){ea(c)||(c=[String(c)]);jf(a.j,b,c)}function kf(a,b){return a.j.get(b)}f.qf=function(){return this.Of};
function lf(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^z()).toString(36));return a}function mf(a){return a instanceof J?a.clone():new J(a,void 0)}function nf(a,b,c,d){var e=new J(null,void 0);a&&Re(e,a);b&&Se(e,b);c&&Ue(e,c);d&&Ve(e,d);return e}function Xe(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function Ze(a,b,c){return v(a)?(a=encodeURI(a).replace(b,of),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function of(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var $e=/[#\/\?@]/g,bf=/[\#\?:]/g,af=/[\#\?]/g,ff=/[\#\?@]/g,cf=/#/g;function Ye(a,b,c){this.j=a||null;this.k=!!c}function pf(a){a.bb||(a.bb=new oe,a.ka=0,a.j&&De(a.j,function(b,c){a.add(ya(b),c)}))}f=Ye.prototype;f.bb=null;f.ka=null;f.Qa=function(){pf(this);return this.ka};f.add=function(a,b){pf(this);this.j=null;a=qf(this,a);var c=this.bb.get(a);c||this.bb.set(a,c=[]);c.push(b);this.ka++;return this};
f.remove=function(a){pf(this);a=qf(this,a);return qe(this.bb,a)?(this.j=null,this.ka-=this.bb.get(a).length,this.bb.remove(a)):!1};f.clear=function(){this.bb=this.j=null;this.ka=0};f.isEmpty=function(){pf(this);return 0==this.ka};function rf(a,b){pf(a);b=qf(a,b);return qe(a.bb,b)}f.kg=function(a){var b=this.La();return G(b,a)};f.Ja=function(){pf(this);for(var a=this.bb.La(),b=this.bb.Ja(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};
f.La=function(a){pf(this);var b=[];if(v(a))rf(this,a)&&(b=sb(b,this.bb.get(qf(this,a))));else{a=this.bb.La();for(var c=0;c<a.length;c++)b=sb(b,a[c])}return b};f.set=function(a,b){pf(this);this.j=null;a=qf(this,a);rf(this,a)&&(this.ka-=this.bb.get(a).length);this.bb.set(a,[b]);this.ka++;return this};f.get=function(a,b){var c=a?this.La(a):[];return 0<c.length?String(c[0]):b};function jf(a,b,c){a.remove(b);0<c.length&&(a.j=null,a.bb.set(qf(a,b),tb(c)),a.ka+=c.length)}
f.toString=function(){if(this.j)return this.j;if(!this.bb)return"";for(var a=[],b=this.bb.Ja(),c=0;c<b.length;c++)for(var d=b[c],e=xa(d),d=this.La(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+xa(d[g]));a.push(h)}return this.j=a.join("&")};f.clone=function(){var a=new Ye;a.j=this.j;this.bb&&(a.bb=this.bb.clone(),a.ka=this.ka);return a};function qf(a,b){var c=String(b);a.k&&(c=c.toLowerCase());return c}
function ef(a,b){b&&!a.k&&(pf(a),a.j=null,a.bb.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),jf(this,e,a))},a));a.k=b}f.extend=function(a){for(var b=0;b<arguments.length;b++)we(arguments[b],function(a,b){this.add(b,a)},this)};var sf=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/)/,tf=/^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]+)?([\/\?\#]|$)/,
uf=/^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\/+/,vf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,wf=/^(https?:\/\/(lh|dp|gp)[3-6]\.googleusercontent\.com(:[0-9]+)?\/)?[A-Za-z0-9_/-]+photo\.jpg($|\?)|^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]+)?([\/\?\#]|$))/,
xf=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,yf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,zf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Af=/^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]+)?([\/\?\#]|$)/,
Bf=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/pagead\/gadgets\/|([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]+)?([\/\?\#]|$))/,
Cf=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Df=/^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}\.)*(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|plus\.google\.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 Ef=window.yt&&window.yt.config_||{};q("yt.config_",Ef,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ff=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Ff,void 0);function Gf(a){Hf(Ef,arguments)}function If(a,b){return a in Ef?Ef[a]:b}function M(a,b){ia(a)&&(a=Jf(a));return window.setTimeout(a,b)}function Kf(a,b){ia(a)&&(a=Jf(a));return window.setInterval(a,b)}function N(a){window.clearTimeout(a)}function Lf(a){window.clearInterval(a)}
function Jf(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Mf(b),b;}}:a}function Mf(a){var b=r("yt.www.errors.log");b?b(a,void 0):(b=If("ERRORS")||[],b.push([a,void 0]),Gf("ERRORS",b))}function Nf(a){Hf(Ff,arguments)}function Of(a,b,c){var d=b||{};if(a=a in Ff?Ff[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
sa=function(a,b){var c=b||{},d=a in Ff?Ff[a]:a;if(d)for(var e in c)var g=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),g),d=d.replace(new RegExp("\\$"+e,"gi"),g);return d};function Hf(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 Pf="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com borg.google.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com photos.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com survey.g.doubleclick.net youtube.googleapis.com vevo.com".split(" "),Qf="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net tpc.googlesyndication.com/pagead/gadgets gstatic.com/doubleclick/studio/innovation/h5/layouts/tetris studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),
Rf="";function Sf(a){return a&&a==Rf?!0:Tf(a,Pf)?(Rf=a,!0):!1}function Uf(a){var b=!!a&&-1!=a.search(Df),c=Sf(a)||Tf(a,Qf);b!=c&&Mf(Error("isTrustedLoader("+a+") behavior is not consistent"));return c}function Vf(a){return!!a&&-1!=a.search(wf)}function Wf(a){return!!a&&-1!=a.search(Bf)}function Tf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function Xf(a){a=new J(a);Re(a,document.location.protocol);Se(a,document.location.hostname);document.location.port&&Ue(a,document.location.port);return a.toString()}function Yf(a){a=new J(a);Re(a,document.location.protocol);return a.toString()};var Zf={},$f=0,ag=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",ag,void 0);function bg(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),qd(a).body.appendChild(a)):cg(a,b))}function cg(a,b){var c=new Image,d=""+$f++;Zf[d]=c;c.onload=c.onerror=function(){b&&Zf[d]&&b();delete Zf[d]};c.src=a;c=eval("null")};function dg(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+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function eg(a){return eval("("+a+")")}function fg(a){return(new gg(void 0)).G(a)}function gg(a){this.j=a}
gg.prototype.G=function(a){var b=[];hg(this,a,b);return b.join("")};
function hg(a,b,c){switch(typeof b){case "string":ig(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(ea(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],hg(a,a.j?a.j.call(b,String(g),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(e=b[g],"function"!=typeof e&&(c.push(d),ig(g,c),
c.push(":"),hg(a,a.j?a.j.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var jg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},kg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function ig(a,b){b.push('"',a.replace(kg,function(a){if(a in jg)return jg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return jg[a]=e+b.toString(16)}),'"')};function lg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=lg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new lg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof lg?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};
f.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};f.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};f.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};
f.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function mg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=mg.prototype;f.clone=function(){return new mg(this.left,this.top,this.width,this.height)};function ng(a){return new lg(a.top,a.left+a.width,a.top+a.height,a.left)}function og(a){return new mg(a.left,a.top,a.right-a.left,a.bottom-a.top)}function pg(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}
function qg(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),g=Math.min(a.top+a.height,b.top+b.height);if(e<=g)return a.left=c,a.top=e,a.width=d-c,a.height=g-e,!0}return!1}f.contains=function(a){return a instanceof mg?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};
function rg(a){return new H(a.width,a.height)}f.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};f.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};
f.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};f.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function sg(a){sg[" "](a);return a}sg[" "]=t;function tg(a,b){try{return sg(a[b]),!0}catch(c){}return!1};function ug(){return Wc?"Webkit":Vc?"Moz":Uc?"ms":Tc?"O":null}function vg(a,b){if(b&&a in b)return a;var c=ug();return c?(c=c.toLowerCase(),c+=Ya(a),!n(b)||c in b?c:null):null};function wg(a,b,c){if(v(b))(b=xg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=xg(c,d);g&&(c.style[g]=e)}}var yg={};function xg(a,b){var c=yg[b];if(!c){var d=Xa(b),c=d;void 0===a.style[d]&&(d=ug()+Ya(d),void 0!==a.style[d]&&(c=d));yg[b]=c}return c}function zg(a,b){var c=qd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
function Ag(a,b){return zg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Bg(a,b,c){var d;b instanceof Lc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Cg(d,!1);a.style.top=Cg(b,!1)}function Dg(a){return new Lc(a.offsetLeft,a.offsetTop)}
function Eg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Uc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Fg(a){if(Uc&&!hd(8))return a.offsetParent;var b=qd(a),c=Ag(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ag(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}
function Gg(a){for(var b=new lg(0,Infinity,Infinity,0),c=od(a),d=c.j.body,e=c.j.documentElement,g=Ad(c.j);a=Fg(a);)if(!(Uc&&0==a.clientWidth||Wc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Ag(a,"overflow")){var h=Hg(a),k=new Lc(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);
c=xd(ge(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}function Hg(a){var b=qd(a);Ag(a,"position");var c=new Lc(0,0),d;d=b?qd(b):document;d=!Uc||hd(9)||fe(od(d))?d.documentElement:d.body;if(a==d)return c;a=Eg(a);b=he(od(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Ig(a,b){var c=new Lc(0,0),d=Bd(qd(a)),e=a;do{var g=d==b?Hg(e):Jg(e);c.x+=g.x;c.y+=g.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c}function Jg(a){a=Eg(a);return new Lc(a.left,a.top)}function Kg(a){if(1==a.nodeType)return Jg(a);var b=ia(a.NE),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.j.targetTouches&&a.j.targetTouches.length&&(c=a.j.targetTouches[0]);return new Lc(c.clientX,c.clientY)}
function Lg(a,b,c){if(b instanceof H)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Mg(a,b);a.style.height=Cg(c,!0)}function Cg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Mg(a,b){a.style.width=Cg(b,!0)}function Ng(a){return Og(a)}
function Og(a){var b=Pg;if("none"!=Ag(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function Pg(a){var b=a.offsetWidth,c=a.offsetHeight,d=Wc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new H(b,c):(a=Eg(a),new H(a.right-a.left,a.bottom-a.top))}function Qg(a){var b=Hg(a);a=Og(a);return new mg(b.x,b.y,a.width,a.height)}
function Rg(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+")")}function Sg(a,b){a.style.display=b?"":"none"}function Tg(a){return"rtl"==Ag(a,"direction")}function Ug(a,b){if(/^\d+px?$/.test(b))return 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}
function Vg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Ug(a,c):0}var Wg={thin:2,medium:4,thick:6};function Xg(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Wg?Wg[c]:Ug(a,c)}
function Yg(a){if(Uc&&!hd(9)){var b=Xg(a,"borderLeft"),c=Xg(a,"borderRight"),d=Xg(a,"borderTop");a=Xg(a,"borderBottom");return new lg(d,c,a,b)}b=zg(a,"borderLeftWidth");c=zg(a,"borderRightWidth");d=zg(a,"borderTopWidth");a=zg(a,"borderBottomWidth");return new lg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Zg=/[^\d]+$/,$g={cm:1,"in":1,mm:1,pc:1,pt:1},ah={em:1,ex:1};
function bh(a){var b=Ag(a,"fontSize"),c;c=(c=b.match(Zg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(Uc){if(c in $g)return Ug(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in ah)return a=a.parentNode,c=Ag(a,"fontSize"),Ug(a,b==c?"1em":b)}c=I("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Ld(c);return b};function ch(a){if(a.classList)return a.classList;a=a.className;return v(a)&&a.match(/\S+/g)||[]}function dh(a,b){return a.classList?a.classList.contains(b):G(ch(a),b)}function O(a,b){a.classList?a.classList.add(b):dh(a,b)||(a.className+=0<a.className.length?" "+b:b)}function eh(a,b){if(a.classList)D(b,function(b){O(a,b)});else{var c={};D(ch(a),function(a){c[a]=!0});D(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function fh(a,b){a.classList?a.classList.remove(b):dh(a,b)&&(a.className=fb(ch(a),function(a){return a!=b}).join(" "))}function gh(a,b){a.classList?D(b,function(b){fh(a,b)}):a.className=fb(ch(a),function(a){return!G(b,a)}).join(" ")}function P(a,b,c){c?O(a,b):fh(a,b)}function hh(a,b){var c=!dh(a,b);P(a,b,c)};function ih(a,b,c){a&&(a.dataset?a.dataset[jh(b)]=c:a.setAttribute("data-"+b,c))}function kh(a,b){return a?a.dataset?a.dataset[jh(b)]:a.getAttribute("data-"+b):null}var lh={};function jh(a){return lh[a]||(lh[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var mh=Wc?"webkit":Vc?"moz":Uc?"ms":Tc?"o":"";function nh(a){var b=a.__yt_uid_key;b||(b=oh(),a.__yt_uid_key=b);return b}var oh=r("yt.dom.getNextId_");if(!oh){oh=function(){return++ph};q("yt.dom.getNextId_",oh,void 0);var ph=0}function qh(a,b){var c=td(a,null,b);return c.length?c[0]:null}function rh(a,b){if(a in b)return b[a];var c=mh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function sh(a,b){var c;hb(a,function(a){c=rh(a,b);return!!c});return c};function th(a){if(a=a||window.event){for(var b in a)b in uh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Kb=a;(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;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=
a.wheelDeltaY/-30):(this.wheelDeltaX=a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3);this.j=a.pageX;this.k=a.pageY}}function vh(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.k=a.clientY+b}}
function wh(a){n(a.j)||vh(a);return a.j}function xh(a){n(a.k)||vh(a);return a.k}f=th.prototype;f.Kb=null;f.type="";f.target=null;f.relatedTarget=null;f.currentTarget=null;f.data=null;f.source=null;f.state=null;f.keyCode=0;f.charCode=0;f.altKey=!1;f.ctrlKey=!1;f.shiftKey=!1;f.clientX=0;f.clientY=0;f.wheelDeltaX=0;f.wheelDeltaY=0;f.rotation=0;f.scale=1;f.touches=null;f.changedTouches=null;f.preventDefault=function(){this.Kb.returnValue=!1;this.Kb.preventDefault&&this.Kb.preventDefault()};
f.stopPropagation=function(){this.Kb.cancelBubble=!0;this.Kb.stopPropagation&&this.Kb.stopPropagation()};f.stopImmediatePropagation=function(){this.Kb.cancelBubble=!0;this.Kb.stopImmediatePropagation&&this.Kb.stopImmediatePropagation()};var uh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var yh=r("yt.events.listeners_")||{};q("yt.events.listeners_",yh,void 0);var zh=r("yt.events.counter_")||{count:0};q("yt.events.counter_",zh,void 0);function Ah(a,b,c,d){return Sb(yh,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function Q(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Ah(a,b,c,d);if(e)return e;var e=++zh.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new th(d);if(!de(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new th(b);b.currentTarget=a;return c.call(a,b)};h=Jf(h);yh[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&g?a.addEventListener("mouseover",
h,d):"mouseleave"==b&&g?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function Bh(a,b){var c;c=Q(a,"playing",function(){Ch(c);b.apply(a,arguments)},void 0)}function Dh(a,b,c,d){return Eh(a,b,c,function(a){return dh(a,d)})}
function Eh(a,b,c,d){var e=a||document;return Q(e,b,function(a){var b=de(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Ch(a){a&&("string"==typeof a&&(a=[a]),D(a,function(a){if(a in yh){var c=yh[a],d=c[0],e=c[1],g=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,g,c):d.detachEvent&&d.detachEvent("on"+e,g);delete yh[a]}}))}function Fh(a){for(var b in yh)yh[b][0]==a&&Ch(b)}
function Gh(a,b){if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,!0,!0);a.dispatchEvent(c)}else c=document.createEventObject(),a.fireEvent("on"+b,c)};function Hh(){return!!sh(["fullscreenEnabled","fullScreenEnabled"],document)}function Ih(){return sh(["fullscreenElement","fullScreenElement"],document)};function Jh(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||$b(Kh);this.assets=a.assets||{};this.attrs=a.attrs||$b(Lh);this.params=a.params||$b(Mh);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 Kh={enablejsapi:1},Lh={},Mh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Jh.prototype.clone=function(){var a=new Jh,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=$b(c):a[b]=c}return a};var Nh,Oh,Ph,Qh,Rh,Sh,Th;Th=Sh=Rh=Qh=Ph=Oh=Nh=!1;var Uh=Pc;Uh&&(-1!=Uh.indexOf("Firefox")?Nh=!0:-1!=Uh.indexOf("Camino")?Oh=!0:-1!=Uh.indexOf("iPad")?Qh=!0:-1!=Uh.indexOf("iPhone")||-1!=Uh.indexOf("iPod")?Ph=!0:-1!=Uh.indexOf("Chrome")?Sh=!0:-1!=Uh.indexOf("Android")?Rh=!0:-1!=Uh.indexOf("Safari")&&(Th=!0));var Vh=Nh,Wh=Oh,Xh=Ph,Yh=Qh,Zh=Rh,$h=Sh,ai=Th;var bi=z(),ci=null,di=Array(50),ei=-1,fi=!1;function gi(a){hi();ci.push(a);ii(ci)}function ji(a){var b=r("yt.mdx.remote.debug.handlers_");pb(b||[],a)}function ki(a,b){hi();var c=ci,d=li(a,String(b));mb(c)?mi(d):(ii(c),D(c,function(a){a(d)}))}function hi(){ci||(ci=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",ci,void 0))}function mi(a){var b=(ei+1)%50;ei=b;di[b]=a;fi||(fi=49==b)}
function ii(a){var b=di;if(b[0]){var c=ei,d=fi?c:-1;do{var d=(d+1)%50,e=b[d];D(a,function(a){a(e)})}while(d!=c);di=Array(50);ei=-1;fi=!1}}function li(a,b){var c=(z()-bi)/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("")};function ni(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""}function oi(a,b){return!!b&&(a.id==b||a.uuid==b)}function pi(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0}function qi(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function ri(a){return new ni(a)}function si(a){return ea(a)?E(a,ri):[]}
function ti(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"}function ui(a){return ea(a)?"["+E(a,ti).join(",")+"]":"null"};function R(){this.Ra=this.Ra;this.Da=this.Da}R.prototype.Ra=!1;R.prototype.fa=function(){return this.Ra};R.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.L())};function S(a,b){vi(a,y(wi,b))}function vi(a,b){a.Ra?b.call(void 0):(a.Da||(a.Da=[]),a.Da.push(n(void 0)?w(b,void 0):b))}R.prototype.L=function(){if(this.Da)for(;this.Da.length;)this.Da.shift()()};function xi(a){return a&&"function"==typeof a.fa?a.fa():!1}function wi(a){a&&"function"==typeof a.dispose&&a.dispose()}
function yi(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ga(d)?yi.apply(null,d):wi(d)}};function zi(){R.call(this);this.j=[];this.kc={}}A(zi,R);f=zi.prototype;f.Et=1;f.Uj=0;f.subscribe=function(a,b,c){var d=this.kc[a];d||(d=this.kc[a]=[]);var e=this.Et;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.Et=e+3;d.push(e);return e};f.unsubscribe=function(a,b,c){if(a=this.kc[a]){var d=this.j;if(a=F(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Lb(a)}return!1};
f.Lb=function(a){if(0!=this.Uj)return this.k||(this.k=[]),this.k.push(a),!1;var b=this.j[a];if(b){var c=this.kc[b];c&&pb(c,a);delete this.j[a];delete this.j[a+1];delete this.j[a+2]}return!!b};f.publish=function(a,b){var c=this.kc[a];if(c){this.Uj++;for(var d=Array(arguments.length-1),e=1,g=arguments.length;e<g;e++)d[e-1]=arguments[e];e=0;for(g=c.length;e<g;e++){var h=c[e];this.j[h+1].apply(this.j[h+2],d)}this.Uj--;if(this.k&&0==this.Uj)for(;c=this.k.pop();)this.Lb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.kc[a];b&&(D(b,this.Lb,this),delete this.kc[a])}else this.j.length=0,this.kc={}};f.Qa=function(a){if(a){var b=this.kc[a];return b?b.length:0}a=0;for(b in this.kc)a+=this.Qa(b);return a};f.L=function(){zi.I.L.call(this);delete this.j;delete this.kc;delete this.k};var Ai=r("yt.pubsub.instance_")||new zi;zi.prototype.subscribe=zi.prototype.subscribe;zi.prototype.unsubscribeByKey=zi.prototype.Lb;zi.prototype.publish=zi.prototype.publish;zi.prototype.clear=zi.prototype.clear;q("yt.pubsub.instance_",Ai,void 0);var Bi=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Bi,void 0);var Ci=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ci,void 0);var Di=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Di,void 0);
var Ei=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ei,void 0);function Fi(a,b,c){var d=Gi();if(d){var e=d.subscribe(a,function(){if(!Ei||Ei!=e){var d=arguments,h=function(){Bi[e]&&b.apply(c||window,d)};try{Di[a]?h():M(h,0)}catch(k){Mf(k)}}},c);Bi[e]=!0;Ci[a]||(Ci[a]=[]);Ci[a].push(e);return e}return 0}function Hi(a){var b=Gi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),D(a,function(a){b.unsubscribeByKey(a);delete Bi[a]}))}
function Ii(a,b){var c=Gi();c&&c.publish.apply(c,arguments)}function Ji(a,b){Di[a]=!0;var c=Gi();c&&c.publish.apply(c,arguments);Di[a]=!1}function Ki(a){Ci[a]&&(a=Ci[a],D(a,function(a){Bi[a]&&delete Bi[a]}),a.length=0)}function Li(a){var b=Gi();if(b)if(b.clear(a),a)Ki(a);else for(var c in Ci)Ki(c)}function Gi(){return r("yt.pubsub.instance_")};function Mi(){};function Ni(){}A(Ni,Mi);Ni.prototype.Qa=function(){var a=0;me(this.bc(!0),function(){a++});return a};Ni.prototype.clear=function(){var a=ne(this.bc(!0)),b=this;D(a,function(a){b.remove(a)})};function Oi(a){this.j=a}A(Oi,Ni);f=Oi.prototype;f.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};f.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";}};f.get=function(a){a=this.j.getItem(a);if(!v(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.j.removeItem(a)};
f.Qa=function(){return this.j.length};f.bc=function(a){var b=0,c=this.j,d=new ke;d.next=function(){if(b>=c.length)throw ie;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!v(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.j.clear()};f.key=function(a){return this.j.key(a)};function Pi(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}A(Pi,Oi);function Qi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}A(Qi,Oi);function Ri(a){this.j=a}Ri.prototype.set=function(a,b){n(b)?this.j.set(a,fg(b)):this.j.remove(a)};Ri.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return dg(b)}catch(d){throw"Storage: Invalid value was encountered";}};Ri.prototype.remove=function(a){this.j.remove(a)};function Si(a){this.j=a}A(Si,Ri);function Ti(a){this.data=a}function Ui(a){return!n(a)||a instanceof Ti?a:new Ti(a)}Si.prototype.set=function(a,b){Si.I.set.call(this,a,Ui(b))};Si.prototype.k=function(a){a=Si.I.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Si.prototype.get=function(a){if(a=this.k(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Vi(a){this.j=a}A(Vi,Si);function Wi(a){var b=a.creation;a=a.expiration;return!!a&&a<z()||!!b&&b>z()}Vi.prototype.set=function(a,b,c){if(b=Ui(b)){if(c){if(c<z()){Vi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=z()}Vi.I.set.call(this,a,b)};Vi.prototype.k=function(a,b){var c=Vi.I.k.call(this,a);if(c)if(!b&&Wi(c))Vi.prototype.remove.call(this,a);else return c};function Xi(a){this.j=a}A(Xi,Vi);function Yi(a,b){var c=[];me(b,function(a){var b;try{b=Xi.prototype.k.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?Wi(b)&&c.push(a):c.push(a)},a);return c}function Zi(a,b){var c=Yi(a,b);D(c,function(a){Xi.prototype.remove.call(this,a)},a)}function $i(){var a=aj;Zi(a,a.j.bc(!0))};function bj(a,b,c){var d=c&&0<c?c:0;c=d?z()+1E3*d:0;if((d=d?aj:cj)&&window.JSON){v(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function dj(a){if(!cj&&!aj||!window.JSON)return null;var b;try{b=cj.get(a)}catch(c){}if(!v(b))try{b=aj.get(a)}catch(d){}if(!v(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function ej(a){cj&&cj.remove(a);aj&&aj.remove(a)}var aj,fj=new Pi;aj=fj.isAvailable()?new Xi(fj):null;var cj,gj=new Qi;cj=gj.isAvailable()?new Xi(gj):null;var hj=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function ij(a,b){a==hj.length?b(null):jj(hj[a],function(c){c?(c=hj[a],bj("yt-remote-cast-last-extension",c),b(c)):ij(a+1,b)})}function kj(a){return"chrome-extension://"+a+"/cast_sender.js"}
function jj(a,b){var c=new XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};c.onerror=function(){b(!1)};try{c.open("GET",kj(a),!0),c.send()}catch(d){b(!1)}}
function lj(a){window.__onGCastApiAvailable=a;mj(function(b){if(b){ki("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=kj(b);c.onerror=function(){nj();ej("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else ki("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function nj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function mj(a){var b=dj("yt-remote-cast-last-extension");b?a(b):ij(0,a)};var oj={uK:"ska",bK:"que",BJ:"mus",rK:"sus"};function pj(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}};function qj(a,b){for(var c=a.split(b),d={},e=0,g=c.length;e<g;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length){var k=ya(h[0]||""),h=ya(h[1]||"");k in d?ea(d[k])?ub(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function rj(a,b){var c=[];Ib(a,function(a,b){var g=xa(b),h;ea(a)?h=a:h=[a];D(h,function(a){""==a?c.push(g):c.push(g+"="+xa(a))})});return c.join(b)}function sj(a){"?"==a.charAt(0)&&(a=a.substr(1));return qj(a,"&")}
function tj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),sj(1<a.length?a[1]:a[0])):{}}var uj=Be;function vj(a){var b=ze(a);a=b[1];var c=b[2],d=b[3],b=b[4],e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e}function wj(a,b){var c=a.split("#",2);a=c[0];var c=1<c.length?"#"+c[1]:"",d=a.split("?",2);a=d[0];var d=sj(d[1]||""),e;for(e in b)d[e]=b[e];return Ke(a,d)+c}
function xj(){var a;a||(a=document.location.href);a=ze(a)[1]||null;return null!==a&&"https"==a};var yj=null;"undefined"!=typeof XMLHttpRequest?yj=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(yj=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function zj(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}};function Aj(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Jf(b)(l)}var l=yj&&yj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);g&&(l.responseType=g);h&&(l.withCredentials=!0);g="POST"==c;if(e=Bj(a,e))for(var p in e)l.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(g=!1);g&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function Bj(a,b){b=b||{};for(var c in Cj){var d=If(Cj[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=ze(e)[1]||null,k=uj(e);h&&k?(e=ze(e),g=ze(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?uj(g)==k&&(Number(ze(g)[4]||null)||null)==(Number(ze(e)[4]||null)||null):!0;e||(e=c,g=If("CORS_HEADER_WHITELIST")||{},e=(h=uj(a))?(g=g[h])?G(g,e):!1:!0)}e&&(b[c]=d)}return b}function Dj(a,b){b.method="POST";b.Ab||(b.Ab={});Ej(a,b)}
function Fj(a,b){var c=If("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.vH&&(!uj(a)||uj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ab&&b.Ab[c])}
function Ej(a,b){var c=b.format||"JSON";b.uH&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=If("XSRF_FIELD_NAME"),e=If("XSRF_TOKEN"),g=b.Me;g&&(g[d]&&delete g[d],a=wj(a,g));var h=b.oz||"",g=b.Ab;Fj(a,b)&&(g||(g={}),g[d]=e);g&&v(h)&&(d=sj(h),cc(d,g),h=Ie(d));var k=!1,l,p=Aj(a,function(a){if(!k){k=!0;l&&N(l);var d=zj(a),e=null;if(d||400<=a.status&&500>a.status)e=Gj(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,
10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},g=b.context||m;d?b.$a&&b.$a.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.Pb&&b.Pb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.He&&0<b.timeout&&(l=M(function(){k||(k=!0,p.abort(),N(l),b.He.call(b.context||m,p))},b.timeout));return p}
function Gj(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=eg(d));break;case "XML":if(d=(d=b.responseXML)?Hj(d):null)c={},D(d.getElementsByTagName("*"),function(a){c[a.tagName]=Ij(a)})}return c}function Hj(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Ij(a){var b="";D(a.childNodes,function(a){b+=a.nodeValue});return b}
var Jj={html5_ajax:"action_get_html5_token",watch_actions_ajax:"action_get_watch_actions_token",addto_ajax:"action_get_wl_token",playlist_video_ajax:"action_get_html5_wl_token"},Kj={html5_ajax:"html5_ajax_token",watch_actions_ajax:"watch_actions_ajax_token",addto_ajax:"addto_ajax_token",playlist_video_ajax:"playlist_video_ajax_token"};
function Lj(a,b,c,d){if(If("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=vj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Jj.watch_actions_ajax]=1;Ej(e,{format:"RAW",method:"GET",Me:g,Pb:function(a){var b=sj(a.responseText);b[Kj.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var Cj={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Mj(a){this.port=this.o="";this.j="/api/lounge";this.k=!0;a=a||document.location.href;var b=Number(ze(a)[4]||null)||null||"";b&&(this.port=":"+b);this.o=Be(a)||"";a=Pc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.k=!1))}function Nj(a,b,c,d){var e=a.j;if(n(d)?d:a.k)e="https://"+a.o+a.port+a.j;return Ke(e+b,c||{})}
Mj.prototype.sendRequest=function(a,b,c,d,e,g,h){a={format:g?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!h,$a:y(this.B,d,!g),onError:y(this.A,e),He:y(this.C,e)};c&&(a.Ab=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Ej(b,a)};Mj.prototype.B=function(a,b,c,d){b?a(d):a({text:c.responseText})};Mj.prototype.A=function(a,b){a(Error("Request error: "+b.status))};Mj.prototype.C=function(a){a(Error("request timed out"))};function Oj(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Oj.prototype.id="";Oj.prototype.name="";Oj.prototype.activityId="";Oj.prototype.status="UNKNOWN";Oj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};function Pj(){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)})}function Qj(a){return E(a,function(a){return{key:a.id,name:a.name}})}function Rj(a){return E(a,function(a){return new Oj(a)})}function Sj(a,b){return F(a,function(a){return a.id==b})}function Tj(a,b){return F(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Uj(a,b){return F(a,function(a){return oi(a,b)})};function T(){R.call(this);this.P=new zi;S(this,this.P)}A(T,R);T.prototype.subscribe=function(a,b,c){return this.fa()?0:this.P.subscribe(a,b,c)};T.prototype.unsubscribe=function(a,b,c){return this.fa()?!1:this.P.unsubscribe(a,b,c)};T.prototype.Lb=function(a){return this.fa()?!1:this.P.Lb(a)};T.prototype.publish=function(a,b){return this.fa()?!1:this.P.publish.apply(this.P,arguments)};function Vj(a){T.call(this);this.C=a;this.screens=[]}A(Vj,T);f=Vj.prototype;f.dc=function(){return this.screens};f.contains=function(a){return!!Tj(this.screens,a)};f.get=function(a){return a?Uj(this.screens,a):null};function Wj(a,b){var c=a.get(b.uuid)||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.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0}
function Xj(a,b){var c=a.screens.length!=b.length;a.screens=fb(a.screens,function(a){return!!Tj(b,a)});for(var d=0,e=b.length;d<e;d++)c=Wj(a,b[d])||c;return c}function Yj(a,b){var c=a.screens.length;a.screens=fb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}f.info=function(a){ki(this.C,a)};f.warn=function(a){ki(this.C,a)};function Zj(a,b,c,d){T.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.j=null;this.k=NaN}A(Zj,T);var ak=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=Zj.prototype;f.start=function(){!this.j&&isNaN(this.k)&&this.Nr()};f.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.k)||(N(this.k),this.k=NaN)};f.L=function(){this.stop();Zj.I.L.call(this)};
f.Nr=function(){this.k=NaN;this.j=Ej(Nj(this.D,"/pairing/get_screen"),{method:"POST",Ab:{pairing_code:this.C},timeout:5E3,$a:w(this.VB,this),onError:w(this.UB,this),He:w(this.WB,this)})};f.VB=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.publish("pairingComplete",new ni(c))};
f.UB=function(a){this.j=null;a.status&&404==a.status?this.o>=ak.length?this.publish("pairingFailed",Error("DIAL polling timed out")):(a=ak[this.o],this.k=M(w(this.Nr,this),a),this.o++):this.publish("pairingFailed",Error("Server error "+a.status))};f.WB=function(){this.j=null;this.publish("pairingFailed",Error("Server not responding"))};function bk(a,b){this.lg=a;this.df=b+"::"}A(bk,Ni);f=bk.prototype;f.lg=null;f.df="";f.set=function(a,b){this.lg.set(this.df+a,b)};f.get=function(a){return this.lg.get(this.df+a)};f.remove=function(a){this.lg.remove(this.df+a)};f.bc=function(a){var b=this.lg.bc(!0),c=this,d=new ke;d.next=function(){for(var d=b.next();d.substr(0,c.df.length)!=c.df;)d=b.next();return a?d.substr(c.df.length):c.lg.get(d)};return d};function ck(a){var b=new Pi;return b.isAvailable()?a?new bk(b,a):b:null};function dk(a){this.j=new oe;if(a){a=ue(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function ek(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}f=dk.prototype;f.Qa=function(){return this.j.Qa()};f.add=function(a){this.j.set(ek(a),a)};f.removeAll=function(a){a=ue(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.j.remove(ek(a))};f.clear=function(){this.j.clear()};f.isEmpty=function(){return this.j.isEmpty()};
f.contains=function(a){return qe(this.j,ek(a))};f.La=function(){return this.j.La()};f.clone=function(){return new dk(this)};f.equals=function(a){return this.Qa()==te(a)&&fk(this,a)};function fk(a,b){var c=te(b);if(a.Qa()>c)return!1;!(b instanceof dk)&&5<c&&(b=new dk(b));return xe(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.kg?c.kg(a):ga(c)||v(c)?G(c,a):Ob(c,a)})}f.bc=function(){return this.j.bc(!1)};function gk(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.zu=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new dk(fb((a.capabilities||"").split(","),y(Nb,oj))))}gk.prototype.id="";gk.prototype.name="";f=gk.prototype;f.app="";f.type="REMOTE_CONTROL";f.zu="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function hk(a){this.j=a}var ik=/\s*;\s*/;f=hk.prototype;f.set=function(a,b,c,d,e,g){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:"";g=g?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(z()+1E3*c)).toUTCString();this.j.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(ik),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};f.Ja=function(){return jk(this).keys};f.La=function(){return jk(this).values};f.isEmpty=function(){return!this.j.cookie};f.Qa=function(){return this.j.cookie?(this.j.cookie||"").split(ik).length:0};
f.kg=function(a){for(var b=jk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=jk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function jk(a){a=(a.j.cookie||"").split(ik);for(var b=[],c=[],d,e,g=0;e=a[g];g++)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 kk=new hk(document);kk.k=3950;function lk(a,b){kk.set(""+a,b,void 0,"/","youtube.com")};var mk;function nk(){var a=ok(),b=pk();G(a,b);qk()&&Fb(a,b);a=rk(a);if(mb(a))try{a="remote_sid",kk.remove(""+a,"/","youtube.com")}catch(c){}else try{lk("remote_sid",a.join(","))}catch(d){}}function ok(){var a=dj("yt-remote-connected-devices")||[];Ab(a);return a}function rk(a){if(mb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return E(a,function(a,b){return 0==b?a:a.substring(c.length)})}function sk(a){bj("yt-remote-connected-devices",a,86400)}
function pk(){if(tk)return tk;var a=dj("yt-remote-device-id");a||(a=Pj(),bj("yt-remote-device-id",a,31536E3));for(var b=ok(),c=1,d=a;G(b,d);)c++,d=a+"#"+c;return tk=d}function uk(){return dj("yt-remote-session-browser-channel")}function qk(){return dj("yt-remote-session-screen-id")}
function vk(a){5<a.length&&(a=a.slice(a.length-5));var b=E(wk(),function(a){return a.loungeToken}),c=E(a,function(a){return a.loungeToken});ib(c,function(a){return!G(b,a)})&&xk();bj("yt-remote-local-screens",a,31536E3)}function wk(){return dj("yt-remote-local-screens")||[]}function xk(){bj("yt-remote-lounge-token-expiration",!0,86400)}function yk(a){bj("yt-remote-online-screens",a,60)}function zk(){return dj("yt-remote-online-dial-devices")||[]}
function Ak(a,b){bj("yt-remote-session-browser-channel",a);bj("yt-remote-session-screen-id",b);var c=ok(),d=pk();G(c,d)||c.push(d);sk(c);nk()}function Bk(a){a||(ej("yt-remote-session-screen-id"),ej("yt-remote-session-video-id"));nk();a=ok();pb(a,pk());sk(a)}function Ck(){if(!mk){var a=ck();a&&(mk=new Ri(a))}return mk?!!mk.get("yt-remote-use-staging-server"):!1}var tk="";function Dk(a){Vj.call(this,"LocalScreenService");this.k=a;this.j=NaN;Ek(this);this.info("Initializing with "+ui(this.screens))}A(Dk,Vj);f=Dk.prototype;f.start=function(){Ek(this)&&this.publish("screenChange");!dj("yt-remote-lounge-token-expiration")&&Fk(this);N(this.j);this.j=M(w(this.start,this),1E4)};f.add=function(a,b){Ek(this);Wj(this,a);Gk(this,!1);this.publish("screenChange");b(a);a.token||Fk(this)};f.remove=function(a,b){var c=Ek(this);Yj(this,a)&&(Gk(this,!1),c=!0);b(a);c&&this.publish("screenChange")};
f.ik=function(a,b,c,d){var e=Ek(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Gk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.publish("screenChange")};f.L=function(){N(this.j);Dk.I.L.call(this)};function Fk(a){if(a.screens.length){var b=E(a.screens,function(a){return a.id}),c=Nj(a.k,"/pairing/get_lounge_token_batch");a.k.sendRequest("POST",c,{screen_ids:b.join(",")},w(a.bF,a),w(a.aF,a))}}
f.bF=function(a){Ek(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],g=this.get(e.screenId);g&&(g.token=e.loungeToken,--b)}Gk(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.aF=function(a){this.warn("Requesting lounge tokens failed: "+a)};function Ek(a){var b=si(wk()),b=fb(b,function(a){return!a.uuid});return Xj(a,b)}function Gk(a,b){vk(E(a.screens,qi));b&&xk()};function Hk(a,b){T.call(this);this.B=b;for(var c=dj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.B(),g=0,h=e.length;g<h;++g){var k=e[g].id;d[k]=G(c,k)}this.j=d;this.C=a;this.o=this.A=NaN;this.k=null;Ik("Initialized with "+fg(this.j))}A(Hk,T);f=Hk.prototype;f.start=function(){var a=parseInt(dj("yt-remote-fast-check-period")||"0",10);(this.A=z()-144E5<a?0:a)?Jk(this):(this.A=z()+3E5,bj("yt-remote-fast-check-period",this.A),this.Dn())};f.isEmpty=function(){return Vb(this.j)};
f.update=function(){Ik("Updating availability on schedule.");var a=this.B(),b=Jb(this.j,function(b,d){return b&&!!Uj(a,d)},this);Kk(this,b)};function Lk(a,b,c){var d=Nj(a.C,"/pairing/get_screen_availability");a.C.sendRequest("POST",d,{lounge_token:b.token},w(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),w(function(){c(!1)},a))}f.L=function(){N(this.o);this.o=NaN;this.k&&(this.k.abort(),this.k=null);Hk.I.L.call(this)};
function Kk(a,b){var c;t:if(Mb(b)!=Mb(a.j))c=!1;else{c=Qb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break t}c=!0}c||(Ik("Updated online screens: "+fg(a.j)),a.j=b,a.publish("screenChange"));Mk(a)}function Jk(a){isNaN(a.o)||N(a.o);a.o=M(w(a.Dn,a),0<a.A&&a.A<z()?2E4:1E4)}
f.Dn=function(){N(this.o);this.o=NaN;this.k&&this.k.abort();var a=Nk(this);if(Mb(a)){var b=Nj(this.C,"/pairing/get_screen_availability"),c={lounge_token:Qb(a).join(",")};this.k=this.C.sendRequest("POST",b,c,w(this.hE,this,a),w(this.gE,this))}else Kk(this,{}),Jk(this)};
f.hE=function(a,b){this.k=null;var c=Qb(Nk(this));if(Db(c,Qb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Kk(this,d);Jk(this)}else this.Pa("Changing Screen set during request."),this.Dn()};f.gE=function(a){this.Pa("Screen availability failed: "+a);this.k=null;Jk(this)};function Ik(a){ki("OnlineScreenService",a)}f.Pa=function(a){ki("OnlineScreenService",a)};
function Nk(a){var b={};D(a.B(),function(a){a.token?b[a.token]=a.id:this.Pa("Requesting availability of screen w/o lounge token.")});return b}function Mk(a){var b=Qb(Jb(a.j,function(a){return a}));Ab(b);b.length?bj("yt-remote-online-screen-ids",b.join(","),60):ej("yt-remote-online-screen-ids");a=fb(a.B(),function(a){return!!this.j[a.id]},a);yk(E(a,qi))};function Ok(a){Vj.call(this,"ScreenService");this.B=a;this.j=this.k=null;this.o=[];this.A={};Pk(this)}A(Ok,Vj);f=Ok.prototype;f.start=function(){this.k.start();this.j.start();this.screens.length&&(this.publish("screenChange"),this.j.isEmpty()||this.publish("onlineScreenChange"))};f.add=function(a,b,c){this.k.add(a,b,c)};f.remove=function(a,b,c){this.k.remove(a,b,c);this.j.update()};
f.ik=function(a,b,c,d){this.k.contains(a)?this.k.ik(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};f.dc=function(a){return a?this.screens:sb(this.screens,fb(this.o,function(a){return!this.contains(a)},this))};f.Vs=function(){return fb(this.dc(!0),function(a){return!!this.j.j[a.id]},this)};
function Qk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var h=a.dc();if(h=(c?Uj(h,c):null)||Uj(h,b)){h.uuid=b;var k=Rk(a,h);Lk(a.j,k,function(a){e(a?k:null)})}else c?Sk(a,c,w(function(a){var g=Rk(this,new ni({name:d,screenId:c,loungeToken:a,dialId:b||""}));Lk(this.j,g,function(a){e(a?g:null)})},a),g):e(null)}
f.ls=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new Zj(this.B,a,b,c);g.subscribe("pairingComplete",w(function(a){wi(g);d(Rk(this,a))},this));g.subscribe("pairingFailed",function(a){wi(g);e(a)});g.start();return w(g.stop,g)};function Tk(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}f.tF=function(a,b){for(var c=2,d=b(a,c);Tk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.fH=function(a,b,c,d){Ej(Nj(this.B,"/pairing/get_screen"),{method:"POST",Ab:{pairing_code:a},timeout:5E3,$a:w(function(a,d){var h=new ni(d.screen||{});if(!h.name||Tk(this,h.name))h.name=this.tF(h.name,b);c(Rk(this,h))},this),onError:w(function(a){d(Error("pairing request failed: "+a.status))},this),He:w(function(){d(Error("pairing request timed out."))},this)})};f.L=function(){wi(this.k);wi(this.j);Ok.I.L.call(this)};
function Sk(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Ab:{screen_ids:b},method:"POST",context:a,$a:function(a,e){var k=e&&e.screens||[];k[0]&&k[0].screenId==b?c(k[0].loungeToken):d(Error("Missing lounge token in token response"))},onError:function(){d(Error("Request screen lounge token failed"))}};Ej(Nj(a.B,"/pairing/get_lounge_token_batch"),e)}
function Uk(a){a.screens=a.k.dc();var b=a.A,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.uuid=c[e.id]||""}a.info("Updated manual screens: "+ui(a.screens))}f.wA=function(){Uk(this);this.publish("screenChange");this.j.update()};
function Pk(a){Vk(a);a.k=new Dk(a.B);a.k.subscribe("screenChange",w(a.wA,a));Uk(a);a.o=si(dj("yt-remote-automatic-screen-cache")||[]);Vk(a);a.info("Initializing automatic screens: "+ui(a.o));a.j=new Hk(a.B,w(a.dc,a,!0));a.j.subscribe("screenChange",w(function(){this.publish("onlineScreenChange")},a))}
function Rk(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Uj(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),bj("yt-remote-automatic-screen-cache",E(a.o,qi)));Vk(a);a.A[b.uuid]=b.id;bj("yt-remote-device-id-map",a.A,31536E3);return b}function Vk(a){a.A=dj("yt-remote-device-id-map")||{}}Ok.prototype.dispose=Ok.prototype.dispose;function Wk(a,b,c){T.call(this);this.K=c;this.G=a;this.k=b;this.o=null}A(Wk,T);function Xk(a,b){a.o=b;a.publish("sessionScreen",a.o)}f=Wk.prototype;f.Tb=function(a){this.fa()||(a&&this.warn(""+a),this.o=null,this.publish("sessionScreen",null))};f.info=function(a){ki(this.K,a)};f.warn=function(a){ki(this.K,a)};f.Lt=function(){return null};
f.Lm=function(a){var b=this.k;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,w(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),w(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};f.L=function(){this.Lm("");Wk.I.L.call(this)};function Yk(a,b){Wk.call(this,a,b,"CastSession");this.j=null;this.B=0;this.A=null;this.D=w(this.sC,this);this.C=w(this.rC,this);this.B=M(w(function(){Zk(this,null)},this),12E4)}A(Yk,Wk);f=Yk.prototype;
f.gn=function(a){if(this.j){if(this.j==a)return;this.warn("Overriding cast sesison with new session object");this.j.removeUpdateListener(this.D);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.j=a;this.j.addUpdateListener(this.D);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);this.A&&$k(this);al(this,"getMdxSessionStatus")};f.Uf=function(a){this.info("launchWithParams: "+fg(a));this.A=a;this.j&&$k(this)};
f.stop=function(){this.j?this.j.stop(w(function(){this.Tb()},this),w(function(){this.Tb(Error("Failed to stop receiver app."))},this)):this.Tb(Error("Stopping cast device witout session."))};f.Lm=t;f.L=function(){this.info("disposeInternal");N(this.B);this.B=0;this.j&&(this.j.removeUpdateListener(this.D),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.j=null;Yk.I.L.call(this)};
function $k(a){var b=a.A.videoId||a.A.videoIds[a.A.index];b&&al(a,"flingVideo",{videoId:b,currentTime:a.A.currentTime||0});a.A=null}function al(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+fg(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,t,w(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+fg(d))}
f.rC=function(a,b){if(!this.fa())if(b){var c=eg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+fg(c));switch(d){case "mdxSessionStatus":Zk(this,c.screenId);break;default:this.warn("Unknown youtube message: "+d)}}else this.warn("Unable to parse message.")}else this.warn("No data in message.")};
function Zk(a,b){N(a.B);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.o&&a.o.id==b||Qk(a.G,a.k.label,b,a.k.friendlyName,w(function(a){a?Xk(this,a):this.Tb(Error("Unable to fetch screen."))},a),w(a.Tb,a))):a.Tb(Error("Waiting for session status timed out."))}f.Lt=function(){return this.j};f.sC=function(a){this.fa()||a||(this.warn("Cast session died."),this.Tb())};function bl(a,b){Wk.call(this,a,b,"DialSession");this.B=this.F=null;this.H="";this.A=null;this.D=t;this.C=NaN;this.J=w(this.IA,this);this.j=t}A(bl,Wk);f=bl.prototype;f.gn=function(a){this.B=a;this.B.addUpdateListener(this.J)};f.Uf=function(a){this.A=a;this.D()};f.stop=function(){this.j();this.j=t;N(this.C);this.B?this.B.stop(w(this.Tb,this,null),w(this.Tb,this,"Failed to stop DIAL device.")):this.Tb()};
f.L=function(){this.j();this.j=t;N(this.C);this.B&&this.B.removeUpdateListener(this.J);this.B=null;bl.I.L.call(this)};function cl(a){a.j=a.G.ls(a.H,a.k.label,a.k.friendlyName,w(function(a){this.j=t;Xk(this,a)},a),w(function(a){this.j=t;this.Tb(a)},a))}f.IA=function(a){this.fa()||a||(this.warn("DIAL session died."),this.j(),this.j=t,this.Tb())};
function dl(a){var b={};b.pairingCode=a.H;if(a.A){var c=a.A.index||0,d=a.A.currentTime||0;b.v=a.A.videoId||a.A.videoIds[c];b.t=d}Ck()&&(b.env_useStageMdx=1);return Ie(b)}f.Gm=function(a){this.H=Pj();if(this.A){var b=new chrome.cast.DialLaunchResponse(!0,dl(this));a(b);cl(this)}else this.D=w(function(){N(this.C);this.D=t;this.C=NaN;var b=new chrome.cast.DialLaunchResponse(!0,dl(this));a(b);cl(this)},this),this.C=M(w(function(){this.D()},this),100)};
f.EA=function(a,b){Qk(this.G,this.F.receiver.label,a,this.k.friendlyName,w(function(a){a&&a.token?(Xk(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.Gm(b)},this),w(function(a){this.warn("Failed to get DIAL screen: "+a);this.Gm(b)},this))};function el(a,b){Wk.call(this,a,b,"ManualSession");this.j=M(w(this.Uf,this,null),150)}A(el,Wk);el.prototype.stop=function(){this.Tb()};el.prototype.gn=t;el.prototype.Uf=function(){N(this.j);this.j=NaN;var a=Uj(this.G.dc(),this.k.label);a?Xk(this,a):this.Tb(Error("No such screen"))};el.prototype.L=function(){N(this.j);this.j=NaN;el.I.L.call(this)};function fl(a){T.call(this);this.k=a;this.j=null;this.B=!1;this.o=[];this.A=w(this.rz,this)}A(fl,T);f=fl.prototype;
f.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,w(this.kt,this),w(this.WD,this),d,e);c.customDialLaunchCallback=w(this.VD,this);chrome.cast.initialize(c,w(function(){this.fa()||(chrome.cast.addReceiverActionListener(this.A),
gi(gl),this.k.subscribe("onlineScreenChange",w(this.Gq,this)),this.o=hl(this),chrome.cast.setCustomReceivers(this.o,t,w(function(a){this.Pa("Failed to set initial custom receivers: "+fg(a))},this)),this.publish("yt-remote-cast2-availability-change",il(this)),b(!0))},this),function(a){this.Pa("Failed to initialize API: "+fg(a));b(!1)})};
f.dH=function(a,b){jl("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.o;if(!a||c&&c.id!=a)jl("Unsetting old screen status: "+this.j.k.friendlyName),wi(this.j),this.j=null}if(a&&b){if(!this.j){c=Uj(this.k.dc(),a);if(!c){jl("setConnectedScreenStatus: Unknown screen.");return}var d=kl(this,c);d||(jl("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.o.push(d),chrome.cast.setCustomReceivers(this.o,
t,w(function(a){this.Pa("Failed to set initial custom receivers: "+fg(a))},this)));jl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);ll(this,new el(this.k,d),!0)}this.j.Lm(b)}else jl("setConnectedScreenStatus: no screen.")};function kl(a,b){return b?F(a.o,function(a){return oi(b,a.label)},a):null}f.eH=function(a){this.fa()?this.Pa("Setting connection data on disposed cast v2"):this.j?this.j.Uf(a):this.Pa("Setting connection data without a session")};
f.stopSession=function(){this.fa()?this.Pa("Stopping session on disposed cast v2"):this.j?(this.j.stop(),wi(this.j),this.j=null):jl("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(w(this.kt,this),w(this.BG,this))};f.L=function(){this.k.unsubscribe("onlineScreenChange",w(this.Gq,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.A);ji(gl);wi(this.j);fl.I.L.call(this)};function jl(a){ki("Controller",a)}
f.Pa=function(a){ki("Controller",a)};function gl(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function il(a){return a.B||!!a.o.length||!!a.j}function ll(a,b,c){wi(a.j);(a.j=b)?(c?a.publish("yt-remote-cast2-receiver-resumed",b.k):a.publish("yt-remote-cast2-receiver-selected",b.k),b.subscribe("sessionScreen",w(a.Hr,a,b)),b.o?a.publish("yt-remote-cast2-session-change",b.o):c&&a.j.Uf(null)):a.publish("yt-remote-cast2-session-change",null)}
f.Hr=function(a,b){this.j==a&&(b||ll(this,null),this.publish("yt-remote-cast2-session-change",b))};
f.rz=function(a,b){if(!this.fa())if(a)switch(jl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.k.label!=a.label)jl("onReceiverAction_: Stopping active receiver: "+this.j.k.friendlyName),this.j.stop();else{jl("onReceiverAction_: Casting to active receiver.");this.j.o&&this.publish("yt-remote-cast2-session-change",this.j.o);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:ll(this,new el(this.k,a));break;case chrome.cast.ReceiverType.DIAL:ll(this,
new bl(this.k,a));break;case chrome.cast.ReceiverType.CAST:ll(this,new Yk(this.k,a));break;default:this.Pa("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.k.label==a.label?this.j.stop():this.Pa("Stopping receiver w/o session: "+a.friendlyName)}else this.Pa("onReceiverAction_ called without receiver.")};
f.VD=function(a){if(this.fa())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Pa("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.k:null;if(!c||c.label!=b.label)return this.Pa("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.o)return jl("Reselecting dial screen."),
this.publish("yt-remote-cast2-session-change",this.j.o),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Pa('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);ll(this,new bl(this.k,b))}b=this.j;b.F=a;return b.F.appState==chrome.cast.DialAppState.RUNNING?new Promise(w(b.EA,b,(b.F.extraData||{}).screenId||null)):new Promise(w(b.Gm,b))};
f.kt=function(a){if(!this.fa()){jl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(b.receiverType==chrome.cast.ReceiverType.CAST)jl("Got resumed cast session before resumed mdx connection."),ll(this,new Yk(this.k,b),!0);else{this.Pa("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.k,d=Uj(this.k.dc(),c.label);d&&oi(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(jl("onSessionEstablished_: manual to cast session change "+b.friendlyName),wi(this.j),this.j=new Yk(this.k,b),this.j.subscribe("sessionScreen",w(this.Hr,this,this.j)),this.j.Uf(null));this.j.gn(a)}}};f.gH=function(){return this.j?this.j.Lt():null};f.BG=function(a){this.fa()||(this.Pa("Failed to estabilish a session: "+fg(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&ll(this,null))};
f.WD=function(a){jl("Receiver availability updated: "+a);if(!this.fa()){var b=il(this);this.B=a==chrome.cast.ReceiverAvailability.AVAILABLE;il(this)!=b&&this.publish("yt-remote-cast2-availability-change",il(this))}};
function hl(a){var b=a.k.Vs(),c=a.j&&a.j.k;a=E(b,function(a){c&&oi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=kl(this,a);g?(g.label=b,g.friendlyName=a.name):(g=new chrome.cast.Receiver(b,a.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},a);c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a}
f.Gq=function(){if(!this.fa()){var a=il(this);this.o=hl(this);jl("Updating custom receivers: "+fg(this.o));chrome.cast.setCustomReceivers(this.o,t,w(function(){this.Pa("Failed to set custom receivers.")},this));var b=il(this);b!=a&&this.publish("yt-remote-cast2-availability-change",b)}};fl.prototype.setLaunchParams=fl.prototype.eH;fl.prototype.setConnectedScreenStatus=fl.prototype.dH;fl.prototype.stopSession=fl.prototype.stopSession;fl.prototype.getCastSession=fl.prototype.gH;
fl.prototype.requestSession=fl.prototype.requestSession;fl.prototype.init=fl.prototype.init;fl.prototype.dispose=fl.prototype.dispose;function ml(a,b,c){nl()?pl(b)&&(ql(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?rl(a,c):lj(function(b,e){b?rl(a,c):(sl("Failed to load cast API: "+e),tl(!1),ql(!1),ej("yt-remote-cast-available"),ej("yt-remote-cast-receiver"),ul(),c(!1))})):ol("Cannot initialize because not running Chrome")}function ul(){ol("dispose");nj();var a=vl();a&&a.dispose();wl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);xl(!1);Hi(yl);yl.length=0}function zl(){return!!dj("yt-remote-cast-installed")}
function Al(){var a=dj("yt-remote-cast-receiver");return a?a.friendlyName:null}function Bl(){return zl()?vl()?wl.getCastSession():(sl("getCastSelector: Cast is not initialized."),null):(sl("getCastSelector: Cast API is not installed!"),null)}
function Cl(){zl()?vl()?Dl()?(ol("Requesting cast selector."),wl.requestSession()):(ol("Wait for cast API to be ready to request the session."),yl.push(Fi("yt-remote-cast2-api-ready",Cl))):sl("requestCastSelector: Cast is not initialized."):sl("requestCastSelector: Cast API is not installed!")}function El(a){Dl()?vl().setLaunchParams(a):sl("setLaunchParams called before ready.")}
function Fl(){var a=Gl();Dl()?vl().setConnectedScreenStatus(a,"YouTube TV"):sl("setConnectedScreenStatus called before ready.")}var wl=null;function nl(){var a;a=0<=Pc.search(/\ (CrMo|Chrome|CriOS)\//);return $h||a}function Hl(a,b){wl.init(a,b)}
function pl(a){var b=!1;if(!wl){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new fl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){bj("yt-remote-cast-available",a);Ii("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){ol("onReceiverSelected: "+a.friendlyName);bj("yt-remote-cast-receiver",a);Ii("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){ol("onReceiverResumed: "+a.friendlyName);
bj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){ol("onSessionChange: "+ti(a));a||ej("yt-remote-cast-receiver");Ii("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);wl=c}ol("cloudview.createSingleton_: "+b);return b}function vl(){wl||(wl=r("yt.mdx.remote.cloudview.instance_"));return wl}
function rl(a,b){tl(!0);ql(!1);Hl(a,function(a){a?(xl(!0),Ii("yt-remote-cast2-api-ready")):(sl("Failed to initialize cast API."),tl(!1),ej("yt-remote-cast-available"),ej("yt-remote-cast-receiver"),ul());b(a)})}function ol(a){ki("cloudview",a)}function sl(a){ki("cloudview",a)}function tl(a){ol("setCastInstalled_ "+a);bj("yt-remote-cast-installed",a)}function Dl(){return!!r("yt.mdx.remote.cloudview.apiReady_")}function xl(a){ol("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function ql(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var yl=[];function Il(a,b){this.action=a;this.params=b||null};function Jl(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Kl(a){ki("CAST",a)}function Ll(a){var b=Ml();b&&b.logMessage&&b.logMessage(a)}function Nl(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Ol.length;)Ol.shift()()}
function Pl(){if(!r("yt.mdx.remote.castv2_")&&!Ql&&(mb(Rl)&&ub(Rl,zk()),Jl())){var a=Ml();a?(a.removeReceiverListener("YouTube",Sl),a.addReceiverListener("YouTube",Sl),Kl("API initialized in the other binary")):(a=new cast.Api,Tl(a),a.addReceiverListener("YouTube",Sl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){M(function(){window.location.reload(!0)},1E3)}),gi(Ll),Kl("API initialized"));Ql=!0}}
function Ul(){var a=Ml();a&&(Kl("API disposed"),ji(Ll),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(t),a.removeReceiverListener("YouTube",Sl),Tl(null));Ql=!1;Ol=null;(a=Ah(window,"message",Nl,!1))&&Ch(a)}function Vl(a){var b=jb(Rl,function(b){return b.id==a.id});0<=b&&(Rl[b]={id:a.id,name:a.name,activityId:a.activityId,status:a.status})}
function Sl(a){a.length&&Kl("Updating receivers: "+fg(a));Wl(a);Ii("yt-remote-cast-device-list-update");D(Xl(),function(a){Yl(a.id)});D(a,function(a){if(a.isTabProjected){var c=Zl(a.id);Kl("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");M(function(){Ii("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function $l(a,b){Kl("Updating "+a+" activity status: "+fg(b));var c=Zl(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),Vl(c),Ii("yt-remote-cast-device-status-update",c)):Kl("Device not found")}function Xl(){Pl();return Rj(Rl)}
function Wl(a){a=E(a,function(a){var c={id:a.id,name:Ha(a.name)};if(a=Zl(a.id))c.activityId=a.activityId,c.status=a.status;return c});nb(Rl);ub(Rl,a)}function Zl(a){var b=Xl();return F(b,function(b){return b.id==a})||null}function Yl(a){var b=Zl(a),c=Ml();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");$l(a,b)})}
function am(a){Pl();var b=Zl(a),c=Ml();c&&b&&b.activityId?(Kl("Stopping cast activity"),c.stopActivity(b.activityId,y($l,a))):Kl("Dropping cast activity stop")}function Ml(){return r("yt.mdx.remote.castapi.api_")}function Tl(a){q("yt.mdx.remote.castapi.api_",a,void 0)}var Ql=!1,Ol=null,Rl=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Rl,void 0);function bm(){};function cm(){this.j=z()}new cm;cm.prototype.set=function(a){this.j=a};cm.prototype.get=function(){return this.j};function dm(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.k=!1;this.Os=!0}dm.prototype.stopPropagation=function(){this.k=!0};dm.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Os=!1};function em(a){a.stopPropagation()};var fm=!Uc||hd(9),gm=Uc&&!gd("9");!Wc||gd("528");Vc&&gd("1.9b")||Uc&&gd("8")||Tc&&gd("9.5")||Wc&&gd("528");Vc&&!gd("8")||Uc&&gd("9");var hm="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function im(a,b){dm.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=this.Ln=this.Kn=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.j=this.state=null;a&&this.init(a,b)}A(im,dm);f=im.prototype;
f.init=function(a,b){this.j=a;var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?Vc&&(tg(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;Object.defineProperties?Object.defineProperties(this,{Kn:{configurable:!0,enumerable:!0,get:this.At,set:this.xE},Ln:{configurable:!0,enumerable:!0,get:this.Bt,set:this.yE}}):(this.Kn=this.At(),this.Ln=this.Bt());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.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;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){im.I.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
f.preventDefault=function(){im.I.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,gm)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.NE=function(){return this.j};f.At=function(){return Wc||void 0!==this.j.offsetX?this.j.offsetX:this.j.layerX};f.xE=function(a){Object.defineProperties(this,{Kn:{writable:!0,enumerable:!0,configurable:!0,value:a}})};f.Bt=function(){return Wc||void 0!==this.j.offsetY?this.j.offsetY:this.j.layerY};
f.yE=function(a){Object.defineProperties(this,{Ln:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var jm="closure_listenable_"+(1E6*Math.random()|0);function km(a){return!(!a||!a[jm])}var lm=0;function mm(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Sf=!!d;this.Wc=e;this.key=++lm;this.removed=this.Tj=!1}function nm(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Wc=null};function om(a){this.src=a;this.j={};this.k=0}om.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.j[g];a||(a=this.j[g]=[],this.k++);var h=pm(a,b,d,e);-1<h?(b=a[h],c||(b.Tj=!1)):(b=new mm(b,this.src,g,!!d,e),b.Tj=c,a.push(b));return b};om.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=pm(e,b,c,d);return-1<b?(nm(e[b]),qb(e,b),0==e.length&&(delete this.j[a],this.k--),!0):!1};
function qm(a,b){var c=b.type;if(!(c in a.j))return!1;var d=pb(a.j[c],b);d&&(nm(b),0==a.j[c].length&&(delete a.j[c],a.k--));return d}om.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,nm(d[e]);delete this.j[c];this.k--}return b};function rm(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=pm(a,c,d,e));return-1<b?a[b]:null}
function pm(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Sf==!!c&&g.Wc==d)return e}return-1};var sm="closure_lm_"+(1E6*Math.random()|0),tm={},um=0;function vm(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)vm(a,b[g],c,d,e);return null}c=wm(c);return km(a)?a.listen(b,c,d,e):xm(a,b,c,!1,d,e)}function xm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=ym(a);k||(a[sm]=k=new om(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=zm();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Am(b.toString()),d);um++;return c}
function zm(){var a=Bm,b=fm?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}function Cm(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)Cm(a,b[g],c,d,e);return null}c=wm(c);return km(a)?a.ud.add(String(b),c,!0,d,e):xm(a,b,c,!0,d,e)}function Dm(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)Dm(a,b[g],c,d,e);else c=wm(c),km(a)?a.Aa(b,c,d,e):a&&(a=ym(a))&&(b=rm(a,b,c,!!d,e))&&Em(b)}
function Em(a){if(ha(a)||!a||a.removed)return!1;var b=a.src;if(km(b))return qm(b.ud,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Sf):b.detachEvent&&b.detachEvent(Am(c),d);um--;(c=ym(b))?(qm(c,a),0==c.k&&(c.src=null,b[sm]=null)):nm(a);return!0}function Am(a){return a in tm?tm[a]:tm[a]="on"+a}function Fm(a,b,c,d){var e=!0;if(a=ym(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Sf==c&&!g.removed&&(g=Gm(g,d),e=e&&!1!==g)}return e}
function Gm(a,b){var c=a.listener,d=a.Wc||a.src;a.Tj&&Em(a);return c.call(d,b)}
function Bm(a,b){if(a.removed)return!0;if(!fm){var c=b||r("window.event"),d=new im(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.k&&0<=k;k--){d.currentTarget=c[k];var l=Fm(c[k],g,!0,d),e=e&&l}for(k=0;!d.k&&k<c.length;k++)d.currentTarget=c[k],l=Fm(c[k],g,!1,d),e=e&&l}return e}return Gm(a,new im(b,
this))}function ym(a){a=a[sm];return a instanceof om?a:null}var Hm="__closure_events_fn_"+(1E9*Math.random()>>>0);function wm(a){if(ia(a))return a;a[Hm]||(a[Hm]=function(b){return a.handleEvent(b)});return a[Hm]};function U(){R.call(this);this.ud=new om(this);this.ma=this;this.X=null}A(U,R);U.prototype[jm]=!0;f=U.prototype;f.ji=function(a){this.X=a};f.addEventListener=function(a,b,c,d){vm(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Dm(this,a,b,c,d)};
f.T=function(a){var b,c=this.X;if(c){b=[];for(var d=1;c;c=c.X)b.push(c),++d}c=this.ma;d=a.type||a;if(v(a))a=new dm(a,c);else if(a instanceof dm)a.target=a.target||c;else{var e=a;a=new dm(d,c);cc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.k&&0<=h;h--)g=a.currentTarget=b[h],e=Im(g,d,!0,a)&&e;a.k||(g=a.currentTarget=c,e=Im(g,d,!0,a)&&e,a.k||(e=Im(g,d,!1,a)&&e));if(b)for(h=0;!a.k&&h<b.length;h++)g=a.currentTarget=b[h],e=Im(g,d,!1,a)&&e;return e};
f.L=function(){U.I.L.call(this);this.removeAllListeners();this.X=null};f.listen=function(a,b,c,d){return this.ud.add(String(a),b,!1,c,d)};f.Aa=function(a,b,c,d){return this.ud.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.ud?this.ud.removeAll(a):0};
function Im(a,b,c,d){b=a.ud.j[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.removed&&h.Sf==c){var k=h.listener,l=h.Wc||h.src;h.Tj&&qm(a.ud,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Os};function Jm(a,b){this.k=new gg(a);this.j=b?eg:dg}Jm.prototype.stringify=function(a){return this.k.G(a)};Jm.prototype.parse=function(a){return this.j(a)};function Km(a){this.k=0;this.o=a||100;this.j=[]}f=Km.prototype;f.add=function(a){var b=this.j[this.k];this.j[this.k]=a;this.k=(this.k+1)%this.o;return b};f.get=function(a){a=Lm(this,a);return this.j[a]};f.set=function(a,b){a=Lm(this,a);this.j[a]=b};f.Qa=function(){return this.j.length};f.isEmpty=function(){return 0==this.j.length};f.clear=function(){this.k=this.j.length=0};f.La=function(){for(var a=this.Qa(),b=this.Qa(),c=[],a=this.Qa()-a;a<b;a++)c.push(this.get(a));return c};
f.Ja=function(){for(var a=[],b=this.Qa(),c=0;c<b;c++)a[c]=c;return a};f.kg=function(a){for(var b=this.Qa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Lm(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.o?b:(a.k+Number(b))%a.o};function Mm(a){m.setTimeout(function(){throw a;},0)}var Nm;
function Om(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";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=w(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&&!Sc("Trident")&&!Sc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Nu;c.Nu=null;a()}};return function(a){d.next={Nu:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=
null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Pm(a,b){Qm||Rm();Sm||(Qm(),Sm=!0);Tm.push(new Um(a,b))}var Qm;function Rm(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Qm=function(){a.then(Vm)}}else Qm=function(){var a=Vm;!ia(m.setImmediate)||m.Window&&m.Window.prototype.setImmediate==m.setImmediate?(Nm||(Nm=Om()),Nm(a)):m.setImmediate(a)}}var Sm=!1,Tm=[];function Vm(){for(;Tm.length;){var a=Tm;Tm=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.j.call(c.scope)}catch(d){Mm(d)}}}Sm=!1}
function Um(a,b){this.j=a;this.scope=b};function Wm(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Xm(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Ym(a,b){this.k=0;this.C=void 0;this.j=this.o=null;this.A=this.B=!1;try{var c=this;a.call(b,function(a){Zm(c,2,a)},function(a){Zm(c,3,a)})}catch(d){Zm(this,3,d)}}function $m(){var a=an;return new Ym(function(b,c){var d=a.length,e=[];if(d)for(var g=function(a,c){d--;e[a]=c;0==d&&b(e)},h=function(a){c(a)},k=0,l;l=a[k];k++)l.then(y(g,k),h);else b(e)})}Ym.prototype.then=function(a,b,c){return bn(this,ia(a)?a:null,ia(b)?b:null,c)};Wm(Ym);
Ym.prototype.cancel=function(a){0==this.k&&Pm(function(){var b=new cn(a);dn(this,b)},this)};function dn(a,b){if(0==a.k)if(a.o){var c=a.o;if(c.j){for(var d=0,e=-1,g=0,h;h=c.j[g];g++)if(h=h.mh)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.k&&1==d?dn(c,b):(d=c.j.splice(e,1)[0],en(c,d,3,b)))}}else Zm(a,3,b)}function fn(a,b){a.j&&a.j.length||2!=a.k&&3!=a.k||gn(a);a.j||(a.j=[]);a.j.push(b)}
function bn(a,b,c,d){var e={mh:null,Ut:null,Vt:null};e.mh=new Ym(function(a,h){e.Ut=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.Vt=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof cn?h(b):a(e)}catch(p){h(p)}}:h});e.mh.o=a;fn(a,e);return e.mh}Ym.prototype.D=function(a){this.k=0;Zm(this,2,a)};Ym.prototype.F=function(a){this.k=0;Zm(this,3,a)};
function Zm(a,b,c){if(0==a.k){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Xm(c)){a.k=1;c.then(a.D,a.F,a);return}if(ja(c))try{var d=c.then;if(ia(d)){hn(a,c,d);return}}catch(e){b=3,c=e}}a.C=c;a.k=b;gn(a);3!=b||c instanceof cn||jn(a,c)}}function hn(a,b,c){function d(b){g||(g=!0,a.F(b))}function e(b){g||(g=!0,a.D(b))}a.k=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function gn(a){a.B||(a.B=!0,Pm(a.G,a))}
Ym.prototype.G=function(){for(;this.j&&this.j.length;){var a=this.j;this.j=[];for(var b=0;b<a.length;b++)en(this,a[b],this.k,this.C)}this.B=!1};function en(a,b,c,d){if(2==c)b.Ut(d);else{if(b.mh)for(;a&&a.A;a=a.o)a.A=!1;b.Vt(d)}}function jn(a,b){a.A=!0;Pm(function(){a.A&&kn.call(null,b)})}var kn=Mm;function cn(a){ta.call(this,a)}A(cn,ta);cn.prototype.name="cancel";function ln(a,b){U.call(this);this.j=a||1;this.k=b||m;this.o=w(this.sA,this);this.A=z()}A(ln,U);f=ln.prototype;f.enabled=!1;f.wc=null;function mn(a,b){a.j=b;a.wc&&a.enabled?(a.stop(),a.start()):a.wc&&a.stop()}f.sA=function(){if(this.enabled){var a=z()-this.A;0<a&&a<.8*this.j?this.wc=this.k.setTimeout(this.o,this.j-a):(this.wc&&(this.k.clearTimeout(this.wc),this.wc=null),this.T("tick"),this.enabled&&(this.wc=this.k.setTimeout(this.o,this.j),this.A=z()))}};
f.start=function(){this.enabled=!0;this.wc||(this.wc=this.k.setTimeout(this.o,this.j),this.A=z())};f.stop=function(){this.enabled=!1;this.wc&&(this.k.clearTimeout(this.wc),this.wc=null)};f.L=function(){ln.I.L.call(this);this.stop();delete this.k};function nn(a,b,c){if(ia(a))c&&(a=w(a,c));else if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function on(a){m.clearTimeout(a)};function pn(a,b,c){R.call(this);this.A=a;this.o=b;this.k=c;this.j=w(this.uA,this)}A(pn,R);f=pn.prototype;f.mg=!1;f.Nh=0;f.We=null;function qn(a){a.We||a.Nh?a.mg=!0:rn(a)}f.stop=function(){this.We&&(on(this.We),this.We=null,this.mg=!1)};f.pause=function(){this.Nh++};f.resume=function(){this.Nh--;this.Nh||!this.mg||this.We||(this.mg=!1,rn(this))};f.L=function(){pn.I.L.call(this);this.stop()};f.uA=function(){this.We=null;this.mg&&!this.Nh&&(this.mg=!1,rn(this))};
function rn(a){a.We=nn(a.j,a.o);a.A.call(a.k)};function sn(a){R.call(this);this.A=a;this.k={}}A(sn,R);var tn=[];f=sn.prototype;f.listen=function(a,b,c,d){return un(this,a,b,c,d)};function vn(a,b,c,d,e){un(a,b,c,d,!1,e)}function un(a,b,c,d,e,g){ea(c)||(c&&(tn[0]=c.toString()),c=tn);for(var h=0;h<c.length;h++){var k=vm(b,c[h],d||a.handleEvent,e||!1,g||a.A||a);if(!k)break;a.k[k.key]=k}return a}function wn(a,b,c,d){xn(a,b,c,d,void 0)}function yn(a,b,c,d,e){xn(a,b,c,d,!1,e)}
function xn(a,b,c,d,e,g){if(ea(c))for(var h=0;h<c.length;h++)xn(a,b,c[h],d,e,g);else(b=Cm(b,c,d||a.handleEvent,e,g||a.A||a))&&(a.k[b.key]=b)}f.Aa=function(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)this.Aa(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.A||this,c=wm(c),d=!!d,b=km(a)?rm(a.ud,String(b),c,d,e):a?(a=ym(a))?rm(a,b,c,d,e):null:null,b&&(Em(b),delete this.k[b.key]);return this};f.removeAll=function(){Ib(this.k,Em);this.k={}};f.L=function(){sn.I.L.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function zn(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"}};function An(){}An.prototype.j=null;function Bn(a){var b;(b=a.j)||(b={},Cn(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var Dn;function En(){}A(En,An);function Fn(a){return(a=Cn(a))?new ActiveXObject(a):new XMLHttpRequest}function Cn(a){if(!a.k&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof 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 ActiveXObject(d),a.k=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.k}Dn=new En;function Gn(a,b,c,d,e){this.j=a;this.o=c;this.D=d;this.C=e||1;this.wb=45E3;this.A=new sn(this);this.k=new ln;mn(this.k,250)}f=Gn.prototype;f.Oe=null;f.Jc=!1;f.hg=null;f.Jn=null;f.qh=null;f.Wf=null;f.ae=null;f.ee=null;f.Le=null;f.qb=null;f.Fh=0;f.Kc=null;f.Yj=null;f.Ve=null;f.Zg=-1;f.xs=!0;f.Xe=!1;f.Xm=0;f.xj=null;var Hn={},In={};f=Gn.prototype;f.setTimeout=function(a){this.wb=a};function Jn(a,b,c){a.Wf=1;a.ae=lf(b.clone());a.Le=c;a.B=!0;Kn(a,null)}
function Ln(a,b,c,d,e){a.Wf=1;a.ae=lf(b.clone());a.Le=null;a.B=c;e&&(a.xs=!1);Kn(a,d)}function Kn(a,b){a.qh=z();Mn(a);a.ee=a.ae.clone();hf(a.ee,"t",a.C);a.Fh=0;a.qb=a.j.yn(a.j.nh()?b:null);0<a.Xm&&(a.xj=new pn(w(a.$s,a,a.qb),a.Xm));a.A.listen(a.qb,"readystatechange",a.JD);var c=a.Oe?$b(a.Oe):{};a.Le?(a.Yj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.qb.send(a.ee,a.Yj,a.Le,c)):(a.Yj="GET",a.xs&&!Wc&&(c.Connection="close"),a.qb.send(a.ee,a.Yj,null,c));a.j.Ic(1)}
f.JD=function(a){a=a.target;var b=this.xj;b&&3==Nn(a)?qn(b):this.$s(a)};
f.$s=function(a){try{if(a==this.qb)t:{var b=Nn(this.qb),c=this.qb.k,d=this.qb.getStatus();if(Uc&&!hd(10)||Wc&&!gd("420+")){if(4>b)break t}else if(3>b||3==b&&!Tc&&!On(this.qb))break t;this.Xe||4!=b||7==c||(8==c||0>=d?this.j.Ic(3):this.j.Ic(2));Pn(this);var e=this.qb.getStatus();this.Zg=e;var g=On(this.qb);(this.Jc=200==e)?(4==b&&Qn(this),this.B?(Rn(this,b,g),Tc&&this.Jc&&3==b&&(this.A.listen(this.k,"tick",this.DA),this.k.start())):Sn(this,g),this.Jc&&!this.Xe&&(4==b?this.j.wj(this):(this.Jc=!1,Mn(this)))):
(this.Ve=400==e&&0<g.indexOf("Unknown SID")?3:0,Tn(),Qn(this),Un(this))}}catch(h){this.qb&&On(this.qb)}finally{}};function Rn(a,b,c){for(var d=!0;!a.Xe&&a.Fh<c.length;){var e=Vn(a,c);if(e==In){4==b&&(a.Ve=4,Tn(),d=!1);break}else if(e==Hn){a.Ve=4;Tn();d=!1;break}else Sn(a,e)}4==b&&0==c.length&&(a.Ve=1,Tn(),d=!1);a.Jc=a.Jc&&d;d||(Qn(a),Un(a))}f.DA=function(){var a=Nn(this.qb),b=On(this.qb);this.Fh<b.length&&(Pn(this),Rn(this,a,b),this.Jc&&4!=a&&Mn(this))};
function Vn(a,b){var c=a.Fh,d=b.indexOf("\n",c);if(-1==d)return In;c=Number(b.substring(c,d));if(isNaN(c))return Hn;d+=1;if(d+c>b.length)return In;var e=b.substr(d,c);a.Fh=d+c;return e}
function Wn(a,b){a.qh=z();Mn(a);var c=b?window.location.hostname:"";a.ee=a.ae.clone();K(a.ee,"DOMAIN",c);K(a.ee,"t",a.C);try{a.Kc=new ActiveXObject("htmlfile")}catch(d){Qn(a);a.Ve=7;Tn();Un(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Kc.open();a.Kc.write(e);a.Kc.close();a.Kc.parentWindow.m=w(a.$D,a);a.Kc.parentWindow.d=w(a.ut,a,!0);a.Kc.parentWindow.rpcClose=w(a.ut,a,!1);c=a.Kc.createElement("div");a.Kc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.ee+'"></iframe>';a.j.Ic(1)}f.$D=function(a){Xn(w(this.bH,this,a),0)};f.bH=function(a){this.Xe||(Pn(this),Sn(this,a),Mn(this))};f.ut=function(a){Xn(w(this.aH,this,a),0)};f.aH=function(a){this.Xe||(Qn(this),this.Jc=a,this.j.wj(this),this.j.Ic(4))};f.cancel=function(){this.Xe=!0;Qn(this)};function Mn(a){a.Jn=z()+a.wb;Yn(a,a.wb)}function Yn(a,b){if(null!=a.hg)throw Error("WatchDog timer not null");a.hg=Xn(w(a.AG,a),b)}
function Pn(a){a.hg&&(m.clearTimeout(a.hg),a.hg=null)}f.AG=function(){this.hg=null;var a=z();0<=a-this.Jn?(2!=this.Wf&&this.j.Ic(3),Qn(this),this.Ve=2,Tn(),Un(this)):Yn(this,this.Jn-a)};function Un(a){a.j.Dt()||a.Xe||a.j.wj(a)}function Qn(a){Pn(a);wi(a.xj);a.xj=null;a.k.stop();a.A.removeAll();if(a.qb){var b=a.qb;a.qb=null;b.abort();b.dispose()}a.Kc&&(a.Kc=null)}function Sn(a,b){try{a.j.Ft(a,b),a.j.Ic(4)}catch(c){}};function Zn(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;$n(a,b,function(e){e?c(!0):m.setTimeout(function(){Zn(a,b,c,d,g)},g)})}}function $n(a,b,c){var d=new Image;d.onload=function(){try{ao(d),c(!0)}catch(a){}};d.onerror=function(){try{ao(d),c(!1)}catch(a){}};d.onabort=function(){try{ao(d),c(!1)}catch(a){}};d.ontimeout=function(){try{ao(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function ao(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function bo(a){this.j=a;this.k=new Jm(null,!0)}f=bo.prototype;f.Sm=null;f.jc=null;f.Sj=!1;f.vs=null;f.Rj=null;f.hn=null;f.Fn=null;f.xc=null;f.yd=-1;f.zh=null;f.Ch=null;f.connect=function(a){this.Fn=a;a=co(this.j,null,this.Fn);Tn();this.vs=z();var b=this.j.F;null!=b?(this.zh=b[0],(this.Ch=b[1])?(this.xc=1,eo(this)):(this.xc=2,fo(this))):(hf(a,"MODE","init"),this.jc=new Gn(this,0,void 0,void 0,void 0),this.jc.Oe=this.Sm,Ln(this.jc,a,!1,null,!0),this.xc=0)};
function eo(a){var b=co(a.j,a.Ch,"/mail/images/cleardot.gif");lf(b);Zn(b.toString(),5E3,w(a.AE,a),3,2E3);a.Ic(1)}f.AE=function(a){if(a)this.xc=2,fo(this);else{Tn();var b=this.j;b.Hc=b.be.yd;go(b,9)}a&&this.Ic(2)};
function fo(a){var b=a.j.G;if(null!=b)Tn(),b?(Tn(),ho(a.j,a,!1)):(Tn(),ho(a.j,a,!0));else if(a.jc=new Gn(a,0,void 0,void 0,void 0),a.jc.Oe=a.Sm,b=a.j,b=co(b,b.nh()?a.zh:null,a.Fn),Tn(),!Uc||hd(10))hf(b,"TYPE","xmlhttp"),Ln(a.jc,b,!1,a.zh,!1);else{hf(b,"TYPE","html");var c=a.jc;a=Boolean(a.zh);c.Wf=3;c.ae=lf(b.clone());Wn(c,a)}}f.yn=function(a){return this.j.yn(a)};f.abort=function(){this.jc&&(this.jc.cancel(),this.jc=null);this.yd=-1};f.Dt=function(){return!1};
f.Ft=function(a,b){this.yd=a.Zg;if(0==this.xc)if(b){try{var c=this.k.parse(b)}catch(d){c=this.j;c.Hc=this.yd;go(c,2);return}this.zh=c[0];this.Ch=c[1]}else c=this.j,c.Hc=this.yd,go(c,2);else if(2==this.xc)if(this.Sj)Tn(),this.hn=z();else if("11111"==b){if(Tn(),this.Sj=!0,this.Rj=z(),c=this.Rj-this.vs,!Uc||hd(10)||500>c)this.yd=200,this.jc.cancel(),Tn(),ho(this.j,this,!0)}else Tn(),this.Rj=this.hn=z(),this.Sj=!1};
f.wj=function(){this.yd=this.jc.Zg;if(this.jc.Jc)0==this.xc?this.Ch?(this.xc=1,eo(this)):(this.xc=2,fo(this)):2==this.xc&&(a=!1,(a=!Uc||hd(10)?this.Sj:200>this.hn-this.Rj?!1:!0)?(Tn(),ho(this.j,this,!0)):(Tn(),ho(this.j,this,!1)));else{0==this.xc?Tn():2==this.xc&&Tn();var a=this.j;a.Hc=this.yd;go(a,2)}};f.nh=function(){return this.j.nh()};f.isActive=function(){return this.j.isActive()};f.Ic=function(a){this.j.Ic(a)};function io(a){U.call(this);this.headers=new oe;this.K=a||null;this.o=!1;this.J=this.j=null;this.R=this.F="";this.k=0;this.C="";this.A=this.P=this.D=this.N=!1;this.B=0;this.G=null;this.U="";this.H=this.O=!1}A(io,U);var jo=/^https?$/i,ko=["POST","PUT"];function lo(a,b){a.B=Math.max(0,b)}f=io.prototype;
f.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.F+"; newUri="+a);b=b?b.toUpperCase():"GET";this.F=a;this.C="";this.k=0;this.R=b;this.N=!1;this.o=!0;this.j=this.K?Fn(this.K):Fn(Dn);this.J=this.K?Bn(this.K):Bn(Dn);this.j.onreadystatechange=w(this.wp,this);try{bm(mo(this,"Opening Xhr")),this.P=!0,this.j.open(b,String(a),!0),this.P=!1}catch(e){bm(mo(this,"Error opening Xhr: "+e.message));no(this,e);return}a=c||"";var g=this.headers.clone();
d&&we(d,function(a,b){g.set(b,a)});d=F(g.Ja(),oo);c=m.FormData&&a instanceof m.FormData;!G(ko,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);this.U&&(this.j.responseType=this.U);"withCredentials"in this.j&&(this.j.withCredentials=this.O);try{po(this),0<this.B&&(this.H=qo(this.j),bm(mo(this,"Will abort after "+this.B+"ms if incomplete, xhr2 "+this.H)),this.H?(this.j.timeout=this.B,this.j.ontimeout=w(this.wb,
this)):this.G=nn(this.wb,this.B,this)),bm(mo(this,"Sending request")),this.D=!0,this.j.send(a),this.D=!1}catch(h){bm(mo(this,"Send error: "+h.message)),no(this,h)}};function qo(a){return Uc&&gd(9)&&ha(a.timeout)&&n(a.ontimeout)}function oo(a){return"content-type"==a.toLowerCase()}f.wb=function(){"undefined"!=typeof aa&&this.j&&(this.C="Timed out after "+this.B+"ms, aborting",this.k=8,mo(this,this.C),this.T("timeout"),this.abort(8))};
function no(a,b){a.o=!1;a.j&&(a.A=!0,a.j.abort(),a.A=!1);a.C=b;a.k=5;ro(a);so(a)}function ro(a){a.N||(a.N=!0,a.T("complete"),a.T("error"))}f.abort=function(a){this.j&&this.o&&(mo(this,"Aborting"),this.o=!1,this.A=!0,this.j.abort(),this.A=!1,this.k=a||7,this.T("complete"),this.T("abort"),so(this))};f.L=function(){this.j&&(this.o&&(this.o=!1,this.A=!0,this.j.abort(),this.A=!1),so(this,!0));io.I.L.call(this)};f.wp=function(){this.fa()||(this.P||this.D||this.A?to(this):this.fF())};f.fF=function(){to(this)};
function to(a){if(a.o&&"undefined"!=typeof aa)if(a.J[1]&&4==Nn(a)&&2==a.getStatus())mo(a,"Local request error detected and ignored");else if(a.D&&4==Nn(a))nn(a.wp,0,a);else if(a.T("readystatechange"),4==Nn(a)){mo(a,"Request complete");a.o=!1;try{var b=a.getStatus(),c;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break t;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=ze(String(a.F))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!jo.test(g?g.toLowerCase():"")}d=e}if(d)a.T("complete"),a.T("success");else{a.k=6;var k;try{k=2<Nn(a)?a.j.statusText:""}catch(l){k=""}a.C=k+" ["+a.getStatus()+"]";ro(a)}}finally{so(a)}}}function so(a,b){if(a.j){po(a);var c=a.j,d=a.J[0]?t:null;a.j=null;a.J=null;b||a.T("ready");try{c.onreadystatechange=d}catch(e){}}}function po(a){a.j&&a.H&&(a.j.ontimeout=null);ha(a.G)&&(on(a.G),a.G=null)}f.isActive=function(){return!!this.j};function Nn(a){return a.j?a.j.readyState:0}
f.getStatus=function(){try{return 2<Nn(this)?this.j.status:-1}catch(a){return-1}};function On(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function mo(a,b){return b+" ["+a.R+" "+a.F+" "+a.getStatus()+"]"};function uo(a,b,c){this.D=a||null;this.j=1;this.k=[];this.A=[];this.B=new Jm(null,!0);this.F=b||null;this.G=null!=c?c:null}function vo(a,b){this.j=a;this.map=b;this.context=null}f=uo.prototype;f.Lh=null;f.Rb=null;f.hb=null;f.Dm=null;f.ij=null;f.ds=null;f.Jj=null;f.ih=0;f.CD=0;f.Eb=null;f.ge=null;f.xd=null;f.Ye=null;f.be=null;f.Ij=null;f.yf=-1;f.Js=-1;f.Hc=-1;f.ah=0;f.Yf=0;f.Re=8;var wo=new U;function xo(a){dm.call(this,"statevent",a)}A(xo,dm);
function yo(a,b){dm.call(this,"timingevent",a);this.size=b}A(yo,dm);function zo(a){dm.call(this,"serverreachability",a)}A(zo,dm);f=uo.prototype;f.connect=function(a,b,c,d,e){Tn();this.Dm=b;this.Lh=c||{};d&&n(e)&&(this.Lh.OSID=d,this.Lh.OAID=e);this.be=new bo(this);this.be.Sm=null;this.be.k=this.B;this.be.connect(a)};
f.disconnect=function(){Ao(this);if(3==this.j){var a=this.ih++,b=this.ij.clone();K(b,"SID",this.o);K(b,"RID",a);K(b,"TYPE","terminate");Bo(this,b);a=new Gn(this,0,this.o,a,void 0);a.Wf=2;a.ae=lf(b.clone());(new Image).src=a.ae;a.qh=z();Mn(a)}Co(this)};function Ao(a){a.be&&(a.be.abort(),a.be=null);a.hb&&(a.hb.cancel(),a.hb=null);a.xd&&(m.clearTimeout(a.xd),a.xd=null);Do(a);a.Rb&&(a.Rb.cancel(),a.Rb=null);a.ge&&(m.clearTimeout(a.ge),a.ge=null)}
function Eo(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.k.push(new vo(a.CD++,b));2!=a.j&&3!=a.j||Fo(a)}f.Dt=function(){return 0==this.j};f.getState=function(){return this.j};function Go(a){var b=0;a.hb&&b++;a.Rb&&b++;return b}function Fo(a){a.Rb||a.ge||(a.ge=Xn(w(a.ft,a),0),a.ah=0)}f.ft=function(a){this.ge=null;Ho(this,a)};
function Ho(a,b){if(1==a.j){if(!b){a.ih=Math.floor(1E5*Math.random());var c=a.ih++,d=new Gn(a,0,"",c,void 0);d.Oe=null;var e=Io(a),g=a.ij.clone();K(g,"RID",c);a.D&&K(g,"CVER",a.D);Bo(a,g);Jn(d,g,e);a.Rb=d;a.j=2}}else 3==a.j&&(b?Jo(a,b):0!=a.k.length&&(a.Rb||Jo(a)))}
function Jo(a,b){var c,d;b?6<a.Re?(a.k=a.A.concat(a.k),a.A.length=0,c=a.ih-1,d=Io(a)):(c=b.D,d=b.Le):(c=a.ih++,d=Io(a));var e=a.ij.clone();K(e,"SID",a.o);K(e,"RID",c);K(e,"AID",a.yf);Bo(a,e);c=new Gn(a,0,a.o,c,a.ah+1);c.Oe=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Rb=c;Jn(c,e,d)}function Bo(a,b){if(a.Eb){var c=a.Eb.Iu(a);c&&Ib(c,function(a,c){K(b,c,a)})}}
function Io(a){var b=Math.min(a.k.length,1E3),c=["count="+b],d;6<a.Re&&0<b?(d=a.k[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.k[e].j,h=a.k[e].map,g=6>=a.Re?e:g-d;try{we(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.A=a.A.concat(a.k.splice(0,b));return c.join("&")}function Ko(a){a.hb||a.xd||(a.C=1,a.xd=Xn(w(a.ru,a),0),a.Yf=0)}
function Lo(a){if(a.hb||a.xd||3<=a.Yf)return!1;a.C++;a.xd=Xn(w(a.ru,a),Mo(a,a.Yf));a.Yf++;return!0}f.ru=function(){this.xd=null;this.hb=new Gn(this,0,this.o,"rpc",this.C);this.hb.Oe=null;this.hb.Xm=0;var a=this.ds.clone();K(a,"RID","rpc");K(a,"SID",this.o);K(a,"CI",this.Ij?"0":"1");K(a,"AID",this.yf);Bo(this,a);if(!Uc||hd(10))K(a,"TYPE","xmlhttp"),Ln(this.hb,a,!0,this.Jj,!1);else{K(a,"TYPE","html");var b=this.hb,c=Boolean(this.Jj);b.Wf=3;b.ae=lf(a.clone());Wn(b,c)}};
function ho(a,b,c){a.Ij=c;a.Hc=b.yd;a.lG(1,0);a.ij=co(a,null,a.Dm);Fo(a)}
f.Ft=function(a,b){if(0!=this.j&&(this.hb==a||this.Rb==a))if(this.Hc=a.Zg,this.Rb==a&&3==this.j)if(7<this.Re){var c;try{c=this.B.parse(b)}catch(d){c=null}if(ea(c)&&3==c.length)if(0==c[0])t:{if(!this.xd){if(this.hb)if(this.hb.qh+3E3<this.Rb.qh)Do(this),this.hb.cancel(),this.hb=null;else break t;Lo(this);Tn()}}else this.Js=c[1],0<this.Js-this.yf&&37500>c[2]&&this.Ij&&0==this.Yf&&!this.Ye&&(this.Ye=Xn(w(this.MC,this),6E3));else go(this,11)}else"y2f%"!=b&&go(this,11);else if(this.hb==a&&Do(this),!B(b)){c=
this.B.parse(b);ea(c);for(var e=0;e<c.length;e++){var g=c[e];this.yf=g[0];g=g[1];2==this.j?"c"==g[0]?(this.o=g[1],this.Jj=g[2],g=g[3],null!=g?this.Re=g:this.Re=6,this.j=3,this.Eb&&this.Eb.Is(this),this.ds=co(this,this.nh()?this.Jj:null,this.Dm),Ko(this)):"stop"==g[0]&&go(this,7):3==this.j&&("stop"==g[0]?go(this,7):"noop"!=g[0]&&this.Eb&&this.Eb.Hs(this,g),this.Yf=0)}}};f.MC=function(){null!=this.Ye&&(this.Ye=null,this.hb.cancel(),this.hb=null,Lo(this),Tn())};
function Do(a){null!=a.Ye&&(m.clearTimeout(a.Ye),a.Ye=null)}
f.wj=function(a){var b;if(this.hb==a)Do(this),this.hb=null,b=2;else if(this.Rb==a)this.Rb=null,b=1;else return;this.Hc=a.Zg;if(0!=this.j)if(a.Jc)1==b?(z(),wo.T(new yo(wo,a.Le?a.Le.length:0)),Fo(this),this.A.length=0):Ko(this);else{var c=a.Ve,d;if(!(d=3==c||7==c||0==c&&0<this.Hc)){if(d=1==b)this.Rb||this.ge||1==this.j||2<=this.ah?d=!1:(this.ge=Xn(w(this.ft,this,a),Mo(this,this.ah)),this.ah++,d=!0);d=!(d||2==b&&Lo(this))}if(d)switch(c){case 1:go(this,5);break;case 4:go(this,10);break;case 3:go(this,
6);break;case 7:go(this,12);break;default:go(this,2)}}};function Mo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.lG=function(a){if(!G(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function go(a,b){if(2==b||9==b){var c=null;a.Eb&&(c=null);var d=w(a.qG,a);c||(c=new J("//www.google.com/images/cleardot.gif"),lf(c));$n(c.toString(),1E4,d)}else Tn();No(a,b)}f.qG=function(a){a?Tn():(Tn(),No(this,8))};
function No(a,b){a.j=0;a.Eb&&a.Eb.Ct(a,b);Co(a);Ao(a)}function Co(a){a.j=0;a.Hc=-1;if(a.Eb)if(0==a.A.length&&0==a.k.length)a.Eb.Ym(a);else{var b=tb(a.A),c=tb(a.k);a.A.length=0;a.k.length=0;a.Eb.Ym(a,b,c)}}function co(a,b,c){var d=mf(c);if(""!=d.ob)b&&Se(d,b+"."+d.ob),Ue(d,d.ld);else var e=window.location,d=nf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Lh&&Ib(a.Lh,function(a,b){K(d,b,a)});K(d,"VER",a.Re);Bo(a,d);return d}
f.yn=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new io;a.O=!1;return a};f.isActive=function(){return!!this.Eb&&this.Eb.isActive(this)};function Xn(a,b){if(!ia(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Ic=function(){wo.T(new zo(wo))};function Tn(){wo.T(new xo(wo))}f.nh=function(){return!(!Uc||hd(10))};function Oo(){}f=Oo.prototype;f.Is=function(){};f.Hs=function(){};f.Ct=function(){};f.Ym=function(){};
f.Iu=function(){return{}};f.isActive=function(){return!0};function Po(a,b){ln.call(this);if(ia(a))b&&(a=w(a,b));else if(a&&ia(a.handleEvent))a=w(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;vm(this,"tick",w(this.C,this));this.stop();mn(this,5E3+2E4*Math.random())}A(Po,ln);Po.prototype.B=0;Po.prototype.C=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);mn(this,a)}this.D()};Po.prototype.start=function(){Po.I.start.call(this);this.B=z()+this.j};Po.prototype.stop=function(){this.B=0;Po.I.stop.call(this)};function Qo(a,b){this.J=a;this.A=b;this.o=new zi;this.k=new Po(this.Zw,this);this.j=null;this.H=!1;this.C=null;this.G="";this.F=this.B=0;this.D=[]}A(Qo,Oo);f=Qo.prototype;f.subscribe=function(a,b,c){return this.o.subscribe(a,b,c)};f.unsubscribe=function(a,b,c){return this.o.unsubscribe(a,b,c)};f.Lb=function(a){return this.o.Lb(a)};f.publish=function(a,b){return this.o.publish.apply(this.o,arguments)};f.dispose=function(){this.H||(this.H=!0,this.o.clear(),this.disconnect(),wi(this.o))};f.fa=function(){return this.H};
function Ro(a){return{firstTestResults:[""],secondTestResults:!a.j.Ij,sessionId:a.j.o,arrayId:a.j.yf}}
f.connect=function(a,b,c){if(!this.j||2!=this.j.getState()){this.G="";this.k.stop();this.C=a||null;this.B=b||0;a=this.J+"/test";b=this.J+"/bind";var d=new uo("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Eb=null);d.Eb=this;this.j=d;e?(3!=e.getState()&&0==Go(e)||e.getState(),this.j.connect(a,b,this.A,e.o,e.yf)):c?this.j.connect(a,b,this.A,c.sessionId,c.arrayId):this.j.connect(a,b,this.A)}};
f.disconnect=function(a){this.F=a||0;this.k.stop();this.j&&(3==this.j.getState()&&Ho(this.j),this.j.disconnect());this.F=0};f.sendMessage=function(a,b){var c={_sc:a};b&&cc(c,b);this.k.enabled||2==(this.j?this.j.getState():0)?this.D.push(c):this.j&&3==this.j.getState()&&Eo(this.j,c)};f.Is=function(){var a=this.k;a.stop();mn(a,5E3+2E4*Math.random());this.C=null;this.B=0;if(this.D.length){a=this.D;this.D=[];for(var b=0,c=a.length;b<c;++b)Eo(this.j,a[b])}this.publish("handlerOpened")};
f.Ct=function(a,b){var c=2==b&&401==this.j.Hc;if(4!=b&&!c){if(6==b||410==this.j.Hc)c=this.k,c.stop(),mn(c,500);this.k.start()}this.publish("handlerError",b)};f.Ym=function(a,b,c){if(!this.k.enabled)this.publish("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.D.push(c[a].map)};f.Iu=function(){var a={v:2};this.G&&(a.gsessionid=this.G);0!=this.B&&(a.ui=""+this.B);0!=this.F&&(a.ui=""+this.F);this.C&&cc(a,this.C);return a};
f.Hs=function(a,b){if("S"==b[0])this.G=b[1];else if("gracefulReconnect"==b[0]){var c=this.k;c.stop();mn(c,500);this.k.start();this.j.disconnect()}else this.publish("handlerMessage",new Il(b[0],b[1]))};function So(a,b){(a.A.loungeIdToken=b)||a.k.stop()}f.getDeviceId=function(){return this.A.id};f.Zw=function(){this.k.stop();0!=Go(this.j)?this.k.start():this.connect(this.C,this.B)};function To(){this.j=[];this.k=[]}function Uo(a){mb(a.j)&&(a.j=a.k,a.j.reverse(),a.k=[])}function Vo(a,b){a.k.push(b)}function Wo(a){Uo(a);return a.j.pop()}f=To.prototype;f.Qa=function(){return this.j.length+this.k.length};f.isEmpty=function(){return mb(this.j)&&mb(this.k)};f.clear=function(){this.j=[];this.k=[]};f.contains=function(a){return G(this.j,a)||G(this.k,a)};f.remove=function(a){var b=eb(this.j,a);if(0>b)return pb(this.k,a);qb(this.j,b);return!0};
f.La=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.k.length,b=0;b<c;++b)a.push(this.k[b]);return a};function Xo(a){Yo(this,a)}function Zo(a,b){if(a.k)throw Error(b+" is not allowed in V3.");}function $o(a){a.volume=-1;a.muted=!1;a.o=null;a.j=-1;a.A=null;a.B=0;a.C=z()}function Yo(a,b){a.videoIds=[];a.k="";ap(a);b&&(a.videoIds=b.videoIds,a.index=b.index,a.k=b.listId,a.videoId=b.videoId,a.j=b.playerState,a.A=b.errorReason,a.volume=b.volume,a.muted=b.muted,a.o=b.trackData,a.B=b.playerTime,a.C=b.playerTimeAt)}function ap(a){a.index=-1;a.videoId="";$o(a)}f=Xo.prototype;f.mb=function(){return 1==this.j};
function bp(a){return a.k?a.videoId:a.videoIds[a.index]}function cp(a,b){a.B=b;a.C=z()}function dp(a){switch(a.j){case 1:return(z()-a.C)/1E3+a.B;case -1E3:return 0}return a.B}f.setVideoId=function(a){Zo(this,"setVideoId");var b=this.index;this.index=db(this.videoIds,a);b!=this.index&&$o(this);return-1!=b};function ep(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&$o(a)}function fp(a,b,c){Zo(a,"setPlaylist");c=c||bp(a);Db(a.videoIds,b)&&c==bp(a)||(a.videoIds=tb(b),a.setVideoId(c))}
f.add=function(a){Zo(this,"add");return a&&!G(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){Zo(this,"remove");var b=bp(this);return pb(this.videoIds,a)?(this.index=db(this.videoIds,b),!0):!1};function gp(a){var b={};b.videoIds=tb(a.videoIds);b.index=a.index;b.listId=a.k;b.videoId=a.videoId;b.playerState=a.j;b.errorReason=a.A;b.volume=a.volume;b.muted=a.muted;b.trackData=ac(a.o);b.playerTime=a.B;b.playerTimeAt=a.C;return b}f.clone=function(){return new Xo(gp(this))};function hp(a,b){T.call(this);this.o=0;this.A=a;this.D=[];this.C=new To;this.B=NaN;this.k=this.j=null;this.H=w(this.kx,this);this.F=w(this.Kg,this);this.G=w(this.jx,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.fl,this),ip(this))):c=3;0!=c&&(b?this.fl(c):M(w(function(){this.fl(c)},this),0));jp(this,Bl())}A(hp,T);f=hp.prototype;f.getState=function(){return this.o};function kp(a){return new Xo(a.A.getPlayerContextData())}
f.play=function(){1==this.getState()?(this.j?this.j.play(null,t,w(function(){this.Pa("Failed to play video with cast v2 channel.");lp(this,"play")},this)):lp(this,"play"),mp(this,1,dp(kp(this))),np(this)):op(this,this.play)};f.pause=function(){1==this.getState()?(this.j?this.j.pause(null,t,w(function(){this.Pa("Failed to pause video with cast v2 channel.");lp(this,"pause")},this)):lp(this,"pause"),mp(this,2,dp(kp(this))),np(this)):op(this,this.pause)};
f.xt=function(a){if(1==this.getState()){if(this.j){var b=kp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.mb()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,t,w(function(){this.Pa("Failed to seek in video with cast v2 channel.");lp(this,"seekTo",{newTime:a})},this))}else lp(this,"seekTo",{newTime:a});mp(this,3,a);np(this)}else op(this,y(this.xt,a))};
f.stop=function(){if(1==this.getState()){this.j?this.j.stop(null,t,w(function(){this.Pa("Failed to stop video with cast v2 channel.");lp(this,"stopVideo")},this)):lp(this,"stopVideo");var a=kp(this);ap(a);pp(this,a);np(this)}else op(this,this.stop)};
f.setVolume=function(a,b){if(1==this.getState()){var c=kp(this);if(this.k){if(c.volume!=a){var d=Math.round(a)/100;this.k.setReceiverVolumeLevel(d,w(function(){qp("set receiver volume: "+d)},this),w(function(){this.Pa("failed to set receiver volume.")},this))}c.muted!=b&&this.k.setReceiverMuted(b,w(function(){qp("set receiver muted: "+b)},this),w(function(){this.Pa("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);lp(this,"setVolume",e)}c.muted=
b;c.volume=a;pp(this,c);np(this)}else op(this,y(this.setVolume,a,b))};f.lm=function(a,b){if(1==this.getState()){var c=kp(this);if(b){c.o={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:fg(b.style)};cc(d,c.o);lp(this,"setSubtitlesTrack",d)}else d={videoId:a},lp(this,"setSubtitlesTrack",d);pp(this,c)}else op(this,y(this.lm,a,b))};
function rp(a,b,c,d,e){var g=kp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.k};ep(g,b,d);n(c)&&(cp(g,c),h.currentTime=c);lp(a,"setPlaylist",h);e||pp(a,g)}f.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.publish("proxyStateChange",a,this.o)}hp.I.dispose.call(this)};f.L=function(){N(this.B);this.B=NaN;sp(this);this.A=null;this.C.clear();jp(this,null);hp.I.L.call(this)};
function ip(a){D(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,y(this.hF,a),this))},a)}function sp(a){D(a.D,function(a){this.A.unsubscribeByKey(a)},a);a.D.length=0}function op(a,b){50>a.C.Qa()&&Vo(a.C,b)}function mp(a,b,c){var d=kp(a);cp(d,c);-1E3!=d.j&&(d.j=b);pp(a,d)}function lp(a,b,c){a.A.sendMessage(b,c)}function pp(a,b){sp(a);a.A.setPlayerContextData(gp(b));ip(a)}
f.fl=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.publish("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)Wo(this.C).apply(this);else 3==a&&this.dispose()}};function np(a){N(a.B);a.B=M(w(function(){this.publish("remotePlayerChange");this.B=NaN},a),2E3)}f.hF=function(a){("remotePlayerChange"!=a||isNaN(this.B))&&this.publish(a)};
function jp(a,b){a.k&&(a.k.removeUpdateListener(a.H),a.k.removeMediaListener(a.F),a.Kg(null));a.k=b;a.k&&(qp("Setting cast session: "+a.k.sessionId),a.k.addUpdateListener(a.H),a.k.addMediaListener(a.F),a.k.media.length&&a.Kg(a.k.media[0]))}
f.kx=function(a){if(!a)this.Kg(null),jp(this,null);else if(this.k.receiver.volume){a=this.k.receiver.volume;var b=kp(this);if(b.volume!=a.level||b.muted!=a.muted)qp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,pp(this,b),np(this)}};f.Kg=function(a){qp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.G);if(this.j=a)this.j.addUpdateListener(this.G),tp(this),np(this)};
function tp(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=kp(a);c.contentId!=d.videoId&&qp("Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.k=e.listId;d.videoId=c.contentId;d.j=b.playerState;cp(d,a.j.getEstimatedTime());pp(a,d)}else qp("No cast media video. Ignoring state update.")}f.jx=function(a){a?(tp(this),np(this)):this.Kg(null)};function qp(a){ki("CP",a)}f.Pa=function(a){ki("CP",a)};function up(a,b,c){T.call(this);this.O=a;this.D=[];this.D.push(Q(window,"beforeunload",w(this.gC,this)));this.k=[];this.ba=new Xo;3==c["mdx-version"]&&(this.ba.k="RQ"+b.token);this.F=b.id;this.j=vp(this,c);this.j.subscribe("handlerOpened",this.lC,this);this.j.subscribe("handlerClosed",this.hC,this);this.j.subscribe("handlerError",this.iC,this);this.ba.k?this.j.subscribe("handlerMessage",this.jC,this):this.j.subscribe("handlerMessage",this.kC,this);So(this.j,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.ba.videoId;qk()&&bj("yt-remote-session-video-id",a)},this)}A(up,T);f=up.prototype;f.Gh=NaN;f.cn=!1;f.pj=NaN;f.ko=NaN;f.cj=NaN;f.dj=NaN;
f.connect=function(a,b){if(b){if(this.ba.k){var c=b.listId,d=b.videoId,e=b.index,g=b.currentTime||0;5>=g&&(g=0);h={videoId:d,currentTime:g};c&&(h.listId=c);n(e)&&(h.currentIndex=e);c&&(this.ba.k=c);this.ba.videoId=d;this.ba.index=e||0}else{var d=b.videoIds[b.index],g=b.currentTime||0;5>=g&&(g=0);var h={videoIds:d,videoId:d,currentTime:g};this.ba.videoIds=[d];this.ba.index=0}this.ba.state=3;cp(this.ba,g);this.Ka("Connecting with setPlaylist and params: "+fg(h));this.j.connect({method:"setPlaylist",
params:fg(h)},a,uk())}else this.Ka("Connecting without params"),this.j.connect({},a,uk());wp(this)};f.dispose=function(){this.fa()||(this.publish("beforeDispose"),xp(this,3));up.I.dispose.call(this)};f.L=function(){yp(this);zp(this);Ap(this);N(this.cj);this.cj=NaN;N(this.dj);this.dj=NaN;this.A=null;Ch(this.D);this.D.length=0;this.j.dispose();up.I.L.call(this);this.k=this.ba=this.j=null};f.Ka=function(a){ki("conn",a)};f.gC=function(){this.o(2)};
function vp(a,b){return new Qo(Nj(a.O,"/bc",void 0,!1),b)}function xp(a,b){a.publish("proxyStateChange",b)}function wp(a){a.Gh=M(w(function(){this.Ka("Connecting timeout");this.o(1)},a),2E4)}function yp(a){N(a.Gh);a.Gh=NaN}function Ap(a){N(a.pj);a.pj=NaN}function Bp(a){zp(a);a.ko=M(w(function(){Cp(this,"getNowPlaying")},a),2E4)}function zp(a){N(a.ko);a.ko=NaN}function Dp(a){var b=a.j;return!!b.j&&3==b.j.getState()&&isNaN(a.Gh)}
f.lC=function(){this.Ka("Channel opened");this.cn&&(this.cn=!1,Ap(this),this.pj=M(w(function(){this.Ka("Timing out waiting for a screen.");this.o(1)},this),15E3));Ak(Ro(this.j),this.F)};f.hC=function(){this.Ka("Channel closed");isNaN(this.Gh)?Bk(!0):Bk();this.dispose()};f.iC=function(a){Bk();isNaN(this.B())?(this.Ka("Channel error: "+a+" without reconnection"),this.dispose()):(this.cn=!0,this.Ka("Channel error: "+a+" with reconnection in "+this.B()+" ms"),xp(this,2))};
function Ep(a,b){b&&(yp(a),Ap(a));b==Dp(a)?b&&(xp(a,1),Cp(a,"getSubtitlesTrack")):b?(a.C()&&Yo(a.ba),xp(a,1),Cp(a,"getNowPlaying"),Fp(a)):a.o(1)}function Gp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ba.videoId&&(Vb(b.params)?a.ba.o=null:a.ba.o=b.params,a.publish("remotePlayerChange"))}function Hp(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.ba.k=b.params.listId||a.ba.k;ep(a.ba,c,d);a.publish("remoteQueueChange")}
function Ip(a,b){b.params=b.params||{};Hp(a,b);Jp(a,b)}function Jp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);cp(a.ba,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.ba.j&&(c=-1E3);a.ba.j=c;var d=null;-1E3==c&&(d=a.ba.A||"unknown",n(b.params.currentError)&&(d=dg(b.params.currentError).reason||d));a.ba.A=d;1==a.ba.j?Bp(a):zp(a);a.publish("remotePlayerChange")}
function Kp(a,b){var c="true"==b.params.muted;a.ba.volume=parseInt(b.params.volume,10);a.ba.muted=c;a.publish("remotePlayerChange")}
f.jC=function(a){a.params?this.Ka("Received: action="+a.action+", params="+fg(a.params)):this.Ka("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=dg(a.params.devices);this.k=E(a,function(a){return new gk(a)});a=!!F(this.k,function(a){return"LOUNGE_SCREEN"==a.type});Ep(this,a);break;case "loungeScreenConnected":Ep(this,!0);break;case "loungeScreenDisconnected":rb(this.k,function(a){return"LOUNGE_SCREEN"==a.type});Ep(this,!1);break;case "remoteConnected":var b=new gk(dg(a.params.device));
F(this.k,function(a){return a.equals(b)})||ob(this.k,b);break;case "remoteDisconnected":b=new gk(dg(a.params.device));rb(this.k,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Hp(this,a);break;case "nowPlaying":Ip(this,a);break;case "onStateChange":Jp(this,a);break;case "onVolumeChanged":Kp(this,a);break;case "onSubtitlesTrackChanged":Gp(this,a);break;default:this.Ka("Unrecognized action: "+a.action)}};
f.kC=function(a){a.params?this.Ka("Received: action="+a.action+", params="+fg(a.params)):this.Ka("Received: action="+a.action);Lp(this,a);Mp(this,a);if(Dp(this)){var b=this.ba.clone(),c=!1,d,e,g,h,k,l,p;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,g=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,n(a.params.currentError)&&(p=dg(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==bp(this.ba)&&
(delete a.params.videoId,Vb(a.params)?this.ba.o=null:this.ba.o=a.params,this.publish("remotePlayerChange"));else if(bp(this.ba)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=bp(this.ba)):this.ba.setVideoId(""),e&&(e=e.split(","),fp(this.ba,e,d))):fp(this.ba,[]),this.ba.add(d)&&Cp(this,"getPlaylist"),d&&this.ba.setVideoId(d),b.index==this.ba.index&&Db(b.videoIds,this.ba.videoIds)||this.publish("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.ba.j&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.ba.j,this.ba.j=b,d=null,-1E3==b&&(d=this.ba.A||"unknown",p&&(d=p.reason||d)),c=c||this.ba.A!=d,this.ba.A=d,1==this.ba.j?Bp(this):zp(this)),"onError"!=a.action||-1!=this.ba.j&&-1E3!=this.ba.j||(a=dg(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==bp(this.ba)&&(this.ba.j=-1E3,this.ba.A=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),cp(this.ba,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.ba.volume!=b,this.ba.volume=b),n(l)&&(l="true"==l,c=c||this.ba.muted!=l,this.ba.muted=l)),c&&this.publish("remotePlayerChange")}};
function Lp(a,b){switch(b.action){case "loungeStatus":var c=dg(b.params.devices);a.k=E(c,function(a){return new gk(a)});break;case "loungeScreenDisconnected":rb(a.k,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new gk(dg(b.params.device));F(a.k,function(a){return a.equals(d)})||ob(a.k,d);break;case "remoteDisconnected":d=new gk(dg(b.params.device)),rb(a.k,function(a){return a.equals(d)})}}
function Mp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!F(a.k,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.pj))if(c)Ap(a);else return;c==Dp(a)?c&&xp(a,1):c?(yp(a),a.C()&&Yo(a.ba),xp(a,1),Cp(a,"getNowPlaying"),Fp(a)):a.o(1)}f.qA=function(){if(this.A){var a=this.A;this.A=null;this.ba.videoId!=a&&Cp(this,"getNowPlaying")}};up.prototype.subscribe=up.prototype.subscribe;
up.prototype.unsubscribeByKey=up.prototype.Lb;up.prototype.J=function(){var a=3;this.fa()||(a=0,isNaN(this.B())?Dp(this)&&(a=1):a=2);return a};up.prototype.getProxyState=up.prototype.J;up.prototype.o=function(a){this.Ka("Disconnecting with "+a);yp(this);this.publish("beforeDisconnect",a);1==a&&Bk();this.j.disconnect(a);this.dispose()};up.prototype.disconnect=up.prototype.o;up.prototype.H=function(){var a=this.ba;this.A&&(a=this.ba.clone(),ep(a,this.A,a.index));return gp(a)};
up.prototype.getPlayerContextData=up.prototype.H;
up.prototype.N=function(a){var b=new Xo(a);b.videoId&&b.videoId!=this.ba.videoId&&(this.A=b.videoId,N(this.cj),this.cj=M(w(this.qA,this),5E3));var c=[];this.ba.k==b.k&&this.ba.videoId==b.videoId&&this.ba.index==b.index&&Db(this.ba.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ba.j==b.j&&this.ba.volume==b.volume&&this.ba.muted==b.muted&&dp(this.ba)==dp(b)&&fg(this.ba.o)==fg(b.o)||c.push("remotePlayerChange");Yo(this.ba,a);D(c,function(a){this.publish(a)},this)};
up.prototype.setPlayerContextData=up.prototype.N;up.prototype.G=function(){return this.j.A.loungeIdToken};up.prototype.getLoungeToken=up.prototype.G;up.prototype.C=function(){var a=this.j.getDeviceId(),b=F(this.k,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};up.prototype.getOtherConnectedRemoteId=up.prototype.C;up.prototype.B=function(){var a=this.j;return a.k.enabled?a.k.B-z():NaN};up.prototype.getReconnectTimeout=up.prototype.B;
up.prototype.R=function(){if(!isNaN(this.B())){var a=this.j.k;a.enabled&&(a.stop(),a.start(),a.C())}};up.prototype.reconnect=up.prototype.R;function Fp(a){N(a.dj);a.dj=M(w(a.o,a,1),864E5)}function Cp(a,b,c){c?a.Ka("Sending: action="+b+", params="+fg(c)):a.Ka("Sending: action="+b);a.j.sendMessage(b,c)}up.prototype.K=function(a,b){Cp(this,a,b);Fp(this)};up.prototype.sendMessage=up.prototype.K;var Np=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function Op(a,b){var c=Pp(a);return fb(b,function(a){return a.uuid?(a=Sj(this.o,a.uuid),!!a&&"RUNNING"==a.status):!!Tj(c,a)},a)}
function Qp(a,b,c){var d=Rp,e="";N(d.k);d.k=NaN;d.A="";if(Sj(d.o,a)){if(!e){var g=e=Pj();Pl();var h=Zl(a),k=Ml();if(k&&h){var l=new cast.Receiver(h.id,h.name),l=new cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+g;l.description=new cast.LaunchDescription;l.description.text=document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=h.status&&(h.status="UNKNOWN",Vl(h),Ii("yt-remote-cast-device-status-update",
h));Kl("Sending a cast launch request with params: "+l.parameters);k.launch(l,y($l,a))}else Kl("No cast API or no cast device. Dropping cast launch.")}d.A=e;d.k=M(w(d.G,d,a,0,e),Np[0])}else d.Ka("No DIAL device with id: "+a)}function Sp(a,b){var c=Uj(Pp(a),b);a.Ka("Found screen: "+ti(c)+" with key: "+b);return c}function Tp(a){var b=Rp,c=Uj(b.j,a);b.Ka("Found online screen: "+ti(c)+" with key: "+a);return c}
function Up(a){var b=Rp,c=Sj(b.o,a);if(!c){var d=Uj(b.C,a);d&&(c=Sj(b.o,d.uuid))}b.Ka("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Pp(a){return sb(a.B,fb(a.C,function(a){return!Tj(this.B,a)},a))};function Vp(a){Vj.call(this,"ScreenServiceProxy");this.Fb=a;this.j=[];this.j.push(this.Fb.$_s("screenChange",w(this.zE,this)));this.j.push(this.Fb.$_s("onlineScreenChange",w(this.wE,this)))}A(Vp,Vj);f=Vp.prototype;f.dc=function(a){return this.Fb.$_gs(a)};f.contains=function(a){return!!this.Fb.$_c(a)};f.get=function(a){return this.Fb.$_g(a)};f.start=function(){this.Fb.$_st()};f.add=function(a,b,c){this.Fb.$_a(a,b,c)};f.remove=function(a,b,c){this.Fb.$_r(a,b,c)};
f.ik=function(a,b,c,d){this.Fb.$_un(a,b,c,d)};f.L=function(){for(var a=0,b=this.j.length;a<b;++a)this.Fb.$_ubk(this.j[a]);this.j.length=0;this.Fb=null;Vp.I.L.call(this)};f.zE=function(){this.publish("screenChange")};f.wE=function(){this.publish("onlineScreenChange")};Ok.prototype.$_st=Ok.prototype.start;Ok.prototype.$_gspc=Ok.prototype.fH;Ok.prototype.$_gsppc=Ok.prototype.ls;Ok.prototype.$_c=Ok.prototype.contains;Ok.prototype.$_g=Ok.prototype.get;Ok.prototype.$_a=Ok.prototype.add;
Ok.prototype.$_un=Ok.prototype.ik;Ok.prototype.$_r=Ok.prototype.remove;Ok.prototype.$_gs=Ok.prototype.dc;Ok.prototype.$_gos=Ok.prototype.Vs;Ok.prototype.$_s=Ok.prototype.subscribe;Ok.prototype.$_ubk=Ok.prototype.Lb;function Wp(a){q("yt.mdx.remote.castv2_",!0,void 0);aj&&$i();nk();Xp||(Xp=new Mj,Ck()&&(Xp.j="/api/loungedev"));Yp||(Yp=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",Yp,void 0));Zp();var b=$p();if(!b){var c=new Ok(Xp);q("yt.mdx.remote.screenService_",c,void 0);b=$p();ml(a,c,function(a){a?Gl()&&Fl():c.subscribe("onlineScreenChange",function(){Ii("yt-remote-receiver-availability-change")})})}}
function aq(){Hi(bq);bq.length=0;wi(cq);cq=null;Yp&&(D(Yp,function(a){a(null)}),Yp.length=0,Yp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));Rp&&(wi(Rp),Rp=null);Xp=null;Ul()}
function dq(){if(eq()&&zl()){var a=[];if(dj("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||fq())a.push({key:"cast-selector-receiver",name:gq()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}if(r("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=hq()?$p().Fb.$_gos():si(dj("yt-remote-online-screens")||[]);(a=iq())&&fq()&&(Tj(b,a)||b.push(a));hq()||(a=Rj(zk()),a=fb(a,function(a){return!Uj(b,a.id)}),b=sb(b,a));return Qj(b)}
function jq(){if(eq()&&zl()){var a=Al();return a?{key:"cast-selector-receiver",name:a}:null}var a=dq(),b=kq(),c=iq();c||(c=lq());return F(a,function(a){return c&&oi(c,a.key)||b&&(a=Up(a.key))&&a.id==b?!0:!1})}function gq(){if(eq()&&zl())return Al();var a=iq();return a?a.name:null}function iq(){var a=Gl();if(!a)return null;if(!Rp){var b=$p().dc();return Uj(b,a)}return Sp(Rp,a)}
function mq(a,b){nq("Connecting to: "+fg(a));if("cast-selector-receiver"==a.key)oq(b||null),El(b||null);else{pq();oq(b||null);var c=null;Rp?c=Tp(a.key):(c=$p().dc(),c=Uj(c,a.key));if(c)qq(c);else{if(Rp&&(c=Up(a.key))){rq(c);return}M(function(){sq(null)},0)}}}
function pq(){if(Rp){var a=Rp;N(a.k);a.k=NaN;a.A=""}t:{if(a=fq())if(a=a.getOtherConnectedRemoteId()){nq("Do not stop DIAL due to "+a);tq("");break t}(a=kq())?(nq("Stopping DIAL: "+a),am(a),tq("")):(a=iq())&&a.uuid&&(nq("Stopping DIAL: "+a.uuid),am(a.uuid))}Dl()?vl().stopSession():sl("stopSession called before API ready.");(a=fq())?a.disconnect(1):(Ji("yt-remote-before-disconnect",1),Ji("yt-remote-connection-change",!1));sq(null)}
function uq(){var a=vq(),a=a?a.currentTime:0,b=wq();0==a&&b&&(a=dp(kp(b)));return a}function wq(){var a=fq();return a&&3!=a.getProxyState()?new hp(a,void 0):null}function nq(a){ki("remote",a)}function eq(){return!!r("yt.mdx.remote.castv2_")}function hq(){return r("yt.mdx.remote.screenService_")}function $p(){if(!cq){var a=hq();cq=a?new Vp(a):null}return cq}function Gl(){return r("yt.mdx.remote.currentScreenId_")}
function xq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(Rp){var b=Rp;b.F=z()+3E5;if(b.D=a){var c=Sp(b,a);if(c&&!Tj(b.j,c)){a=tb(b.j);a.push(c);var c=Op(b,a),d=!Db(b.j,c,pi);mb(a)||yk(E(c,qi));d&&(b.Ka("Updating online screens: "+ui(b.j)+" -> "+ui(c)),b.j=c,b.publish("onlineReceiverChange"))}}}}function kq(){return r("yt.mdx.remote.currentDialId_")}function tq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function vq(){return r("yt.mdx.remote.connectData_")}
function oq(a){q("yt.mdx.remote.connectData_",a,void 0)}function fq(){return r("yt.mdx.remote.connection_")}function sq(a){var b=fq();oq(null);a?ab(!fq()):(xq(""),tq(""));q("yt.mdx.remote.connection_",a,void 0);Yp&&(D(Yp,function(b){b(a)}),Yp.length=0);b&&!a?Ji("yt-remote-connection-change",!1):!b&&a&&Ii("yt-remote-connection-change",!0)}function lq(){var a=qk();if(!a)return null;if(hq()){var b=$p().dc();return Uj(b,a)}return Rp?Sp(Rp,a):null}
function qq(a){ab(!Gl());xq(a.id);a=new up(Xp,a,yq());a.connect(1,vq());a.subscribe("beforeDisconnect",function(a){Ji("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){fq()&&(fq(),sq(null))});sq(a)}function rq(a){kq();nq("Connecting to: "+(a?a.toString():"null"));tq(a.id);var b=vq();b?Qp(a.id,b.videoIds[b.index],b.currentTime):Qp(a.id)}var Xp=null,Yp=null,cq=null,Rp=null;
function Zp(){var a=yq();if(Vb(a)){var a=pk(),b=dj("yt-remote-session-name")||"",c=dj("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)}}function yq(){return r("yt.mdx.remote.channelParams_")||{}}var bq=[];function zq(){var a={volume:100,muted:!1},b=dj("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Kc(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function Aq(a){bj("yt-player-bandwidth",a,2592E3)};function Bq(a,b,c){v(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 Cq(a)}function Cq(a,b,c){if(ja(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}};function Dq(a,b,c){this.errorCode=a;this.k=b;this.j=c||""};function Eq(a,b){R.call(this);this.app=a;this.Bd=null;this.ef={};this.og={};this.o={};this.k={};this.j=null;this.playerType=b;V(this,"cueVideoById",this.NA);V(this,"loadVideoById",this.Mm);V(this,"cueVideoByUrl",this.OA);V(this,"loadVideoByUrl",this.cB);V(this,"playVideo",this.Qm);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.Sl);V(this,"clearVideo",this.LA);V(this,"getVideoBytesLoaded",this.XA);V(this,"getVideoBytesTotal",this.YA);V(this,"getVideoLoadedFraction",this.Pm);V(this,"getVideoStartBytes",
this.$A);V(this,"cuePlaylist",this.MA);V(this,"loadPlaylist",this.Br);V(this,"nextVideo",this.Cr);V(this,"previousVideo",this.Dr);V(this,"playVideoAt",this.Om);V(this,"setShuffle",this.kB);V(this,"setLoop",this.hB);V(this,"getPlaylist",this.kd);V(this,"getPlaylistIndex",this.xr);V(this,"getPlaylistId",this.Ar);V(this,"loadModule",this.Zq);V(this,"unloadModule",this.dr);V(this,"setOption",this.ar);V(this,"getOption",this.yi);V(this,"getOptions",this.TA);V(this,"mute",this.yq);V(this,"unMute",this.zq);
V(this,"isMuted",this.xq);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.wq);V(this,"seekTo",this.gh);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.VA);V(this,"setPlaybackRate",this.jB);V(this,"getAvailablePlaybackRates",this.QA);V(this,"getPlaybackQuality",this.UA);V(this,"setPlaybackQuality",this.Nm);V(this,"getAvailableQualityLevels",this.RA);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.Mg);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.zr);V(this,"getVideoEmbedCode",this.ZA);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.yr);V(this,"removeCueRange",this.dB);V(this,"setSize",this.lB);V(this,"getApiInterface",this.PA);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.mB);V(this,"hideVideoInfo",this.aB);Fq(this,"getInternalApiInterface",this.SA);Fq(this,"getAdState",this.getAdState);
Fq(this,"isNotServable",this.bB);Fq(this,"getUpdatedConfigurationData",this.WA);Fq(this,"updateRemoteReceivers",this.nB);Fq(this,"sendAbandonmentPing",this.eB);Fq(this,"setAutonav",this.fB);Fq(this,"setAutonavState",this.gB);Fq(this,"setMinimized",this.iB);Fq(this,"channelSubscribed",t);Fq(this,"channelUnsubscribed",t)}A(Eq,R);function V(a,b,c){a.ef[b]=w(c,a)}function Fq(a,b,c){a.og[b]=w(c,a)}f=Eq.prototype;f.PA=function(){return Qb(this.ef)};f.SA=function(){return Qb(this.og)};f.M=function(){return this.Bd};
f.addEventListener=function(a,b){if(v(b)){var c=function(){r(b).apply(window,arguments)};this.o[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};f.Cy=function(a,b){var c=v(b)?a+b:a+ka(b);if(!this.k[c]){var d;v(b)?d=function(){r(b).apply(window,arguments)}:d=b;var e=w(function(a){d({target:this.j,data:a})},this);this.k[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(v(b)){var c=this.o[b];Yb(this.o,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
f.Ey=function(a,b){var c=v(b)?a+b:a+ka(b),d=this.k[c];d&&(this.removeEventListener(a,d),Yb(this.k,c))};f.getPlayerState=function(){return this.app.na};f.gh=function(a,b){Gq(this.app,!0,this.playerType);Hq(this.app,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};f.Mg=function(){return Iq(this.app,1)};f.wq=function(){return Jq(this.app)};f.setVolume=function(a){this.app.setVolume(a)};f.xq=function(){return this.app.H.muted};f.yq=function(){Kq(this.app)};
f.zq=function(){Lq(this.app)};f.Qm=function(){Gq(this.app,!0,this.playerType);Mq(this.app,this.playerType)};f.pauseVideo=function(){Nq(this.app,this.playerType)};f.Sl=function(){var a=this.app,b=this.playerType;Oq(a.j)&&Pq(a,!1);Qq(a,"play_pause")||Rq(a,b)};f.LA=function(){};f.VA=function(){return this.app.ja};f.jB=function(a){Sq(this.app,a)};f.QA=function(){return this.app.j.K?Tq:[1]};f.UA=function(){return Uq(this.app,this.playerType)};
f.Nm=function(a){var b=this.app,c=Vq(b,this.playerType);c&&!b.j.isMobile&&(a=Wq(a,a,!0),Xq(c,"p",a))};f.RA=function(){var a=Vq(this.app,this.playerType);return a?Yq(a):[]};f.XA=function(){return this.Pm()};f.YA=function(){return 1};f.Pm=function(){return Zq(this.app.$)};f.$A=function(){return 0};f.lB=function(){this.app.k.Hj()};f.fB=function(a){var b=this.app;a=a?2:1;b.getVideoData().Rd=a;b.Sa("autonavchange",a)};f.gB=function(a){var b=this.app;b.getVideoData().Rd=a;b.Sa("autonavchange",a)};
f.iB=function(a){this.app.j.gs=a};f.Zq=function(a){this.app.D.isAvailable(a)&&(a=$q(this.app.D,a))&&!a.loaded&&a.load()};f.dr=function(a){this.app.D.isAvailable(a)&&(a=$q(this.app.D,a))&&a.loaded&&a.unload()};f.Mm=function(a,b,c){a=ar(this.app,Cq(a,b,c),this.playerType);Gq(this.app,a,this.playerType)};f.NA=function(a,b,c){br(this.app,Cq(a,b,c),this.playerType)};
f.cB=function(a,b,c){a=Bq(a,b,c);b=ar(this.app,a,this.playerType);Gq(this.app,b,this.playerType);b=this.app;(a=gf(new J(a.mediaContentUrl)))&&cr(b.j,a)};f.OA=function(a,b,c){b=Bq(a,b,c);br(this.app,b,this.playerType);a=this.app;(b=gf(new J(b.mediaContentUrl)))&&cr(a.j,b)};f.getVideoUrl=function(){return dr(this.app)};f.zr=function(){return er(this.app)};f.ZA=function(){return fr(this.app)};f.yr=function(a,b,c){return gr(this.app,a,b,c)};
f.dB=function(a){t:{for(var b=this.app,c=b.o.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Oa.clear();b.o.D.Dg(e);b.publish("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Br=function(a,b,c,d){var e=this.app;e.R=!1;hr(e,a,b,c,d);Gq(this.app,!0,this.playerType)};f.MA=function(a,b,c,d){var e=this.app;e.R=!0;hr(e,a,b,c,d)};f.Cr=function(){ir(this.app);Gq(this.app,!0,this.playerType)};f.Dr=function(){jr(this.app);Gq(this.app,!0,this.playerType)};
f.Om=function(a){kr(this.app,a);Gq(this.app,!0,this.playerType)};f.kB=function(a){var b=this.app;b.A&&lr(b.A,a)};f.hB=function(a){var b=this.app;b.A&&(b.A.Rf=a)};f.kd=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.uc;c++){var d=mr(a,c);d&&b.push(d.videoId)}return b};f.xr=function(){var a;a=this.app;a=a.A?a.A.Ua:null;return null==a?-1:a};f.Ar=function(){return nr(this.app)};f.ar=function(a,b,c){return or(this.app,a,b,c)};f.yi=function(a,b,c){return or(this.app,a,b,c)};
f.TA=function(a){return pr(this.app,a)};f.getVideoData=function(){var a=Vq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Ar();b&&(a.list=b);return a};f.mB=function(){this.app.k.N.show()};f.aB=function(){this.app.k.N.hide()};f.getAdState=function(){return this.app.getAdState()};f.bB=function(a){var b=this.app;a!=b.U.args.video_id?a=!1:(a=b.getPlayerState(),a=!(!a||!W(a,128)||5!=qr[a.j.errorCode]));return a};
f.WA=function(){var a=this.app,b=a.U.clone(),c=b.args,a=rr(a),d=$b(a.A);!a.Va&&0<a.startSeconds&&(d.start=a.startSeconds);ra(c,d);return b};f.nB=function(a,b){var c=this.app;c.G&&sr(c.G,a,b);tr(c.j)&&6!=c.J&&(c.j.rg=!mb(a),c.j.rg?(1!=c.J&&3!=c.J||!b||ur(c.F),a.length&&1!=c.J&&vr(c)):ur(c.G))};f.destroy=function(){this.app.dispose()};f.eB=function(){var a=Vq(this.app);a&&!W(a.getPlayerState(),128)&&(wr(a),xr(a))};
f.L=function(){if(this.Bd){for(var a in this.ef)this.Bd[a]=null;for(a in this.og)this.Bd[a]=null;this.Bd=null}this.o=this.k=null;Eq.I.L.call(this)};function yr(a,b){Eq.call(this,a,b);V(this,"addInfoCardXml",this.XF);V(this,"cueVideoByPlayerVars",this.YF);V(this,"loadVideoByPlayerVars",this.nq);V(this,"preloadVideoByPlayerVars",this.cG);V(this,"seekBy",this.Au);V(this,"enableLicenseIntercept",this.ZF);V(this,"updatePlaylist",this.hG);V(this,"resumeLicenseSession",this.dG);V(this,"updateLastActiveTime",this.gG);V(this,"updateVideoData",this.iG);V(this,"getStoryboardFormat",this.aG);V(this,"getProgressState",this.Ng);V(this,"hideUserInterface",
this.bG);V(this,"showUserInterface",this.fG);V(this,"getHousebrandProperties",this.$F);V(this,"setPlaybackQualityRange",this.eG);V(this,"getCurrentPlaylistSequence",this.WF);V(this,"canPlayType",this.canPlayType)}A(yr,Eq);f=yr.prototype;f.yr=function(a,b,c,d,e){return gr(this.app,a,b,c,d,e)};f.XF=function(a,b){var c=this.app;c.j.ha=a;c.j.ne=b};f.YF=function(a){br(this.app,a,this.playerType)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ca:b.na};f.nq=function(a){ar(this.app,a,this.playerType)};
f.cG=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.N&&b.N.getVideoData().videoId==a.videoId||(a=new zr(a),Ar(b,a))};f.Qm=function(){Mq(this.app,this.playerType)};f.gh=function(a,b){Hq(this.app,a,b,void 0,this.playerType)};f.Br=function(a,b,c,d){var e=this.app;e.R=!1;hr(e,a,b,c,d)};f.Cr=function(){ir(this.app)};f.Dr=function(){jr(this.app)};f.Om=function(a){kr(this.app,a)};f.Au=function(a,b,c){var d=this.app,e=this.playerType;Hq(d,d.getCurrentTime()+a,b,c,e)};
f.ZF=function(){var a=this.app;a.cb||(a.cb=!0,a.oa={})};f.hG=function(){var a=this.app;Br(a,rr(a));a.Sa("onPlaylistUpdate")};f.dG=function(a,b){var c=this.app,d=c.oa[a];d&&(Cr(d,b),d.start(),delete c.oa[a])};f.gG=function(){Dr()};f.iG=function(a){var b=Vq(this.app,this.playerType||1);b&&(b=b.j,Er(b,a),b.publish("dataupdated"))};f.aG=function(){var a=this.app.getVideoData();return a.A.storyboard_spec||a.A.live_storyboard_spec};f.bG=function(){this.app.k.wh(!1)};f.fG=function(){this.app.k.wh(!0)};
f.$F=function(){var a=this.app.S();return{Nb:a.Nb,zb:a.zb(),mc:a.mc}};f.getVideoData=function(){var a=yr.I.getVideoData.call(this),b=Vq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.ya;a.isLive=b.Va;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):yr.I.getCurrentTime.call(this)};f.Mg=function(a){return a?Iq(this.app,a):yr.I.Mg.call(this)};
f.Ng=function(){var a=this.app.getVideoData(),b=a.Va&&!a.yb?this.getCurrentTime():a.k&&!isNaN(Fr(a.k))?Fr(a.k):a.lengthSeconds,c=!a.Va||a.yb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.Mg(),k;k=(k=Vq(this.app,void 0))?Gr(k.k):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:Hr(a)}};f.Pm=function(a){var b=this.app;return(b.C&&2==b.C.getPlayerType())==(2==a)?Zq(b.$):0};f.canPlayType=function(a){return this.app.canPlayType(a)};
f.eG=function(a,b){Ir(this.app,a,this.playerType,b)};f.WF=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.k&&b.Va){var c=b.k.j[b.o.id];c&&c.index?(b=c.index.rh(a),c=c.index.Hf(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};function Jr(a,b){yr.call(this,a,b)}A(Jr,yr);f=Jr.prototype;f.getPlayerType=function(){return this.playerType};f.Mm=function(a,b,c){ar(this.app,Cq(a,b,c),this.playerType)};function Kr(a,b){a.app.k.o.appendChild(b)}f.Ma=function(){return this.app.k.M()};f.S=function(){return this.app.S()};f.kd=function(){return this.app.A};f.getVideoData=function(){var a=Vq(this.app,this.playerType);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.S().Za};
f.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};f.Nm=function(a){Ir(this.app,a,1)};f.zr=function(a){return er(this.app,a)};f.getVideoUrl=function(a){return dr(this.app,a)};function Lr(a,b){this.start=a;this.end=b;this.j=ka(this)}function Mr(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.j!=b.j?a.j-b.j:0}Lr.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)};Lr.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Nr(){this.j=[]}function Or(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}function Pr(a,b,c){for(var d=[],e=0;e<a.j.length;++e){var g=a.j[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function Qr(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(zb);return c[0]};function Rr(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}function Sr(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}function Tr(a,b){var c=Sr(a,b);return 0<=c?a.end(c):NaN}function Ur(a){return a&&a.length?a.end(a.length-1):NaN}function Vr(a,b){var c=Tr(a,b);return 0<=c?c-b:0};var Wr,Xr;var Yr=Pc,Zr=Yr.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Zr||2>Zr.length)Wr=void 0;else{var $r=Yr.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Wr=$r&&6==$r.length?Number($r[5].replace("_",".")):0}(Xr=0<=Wr)&&0<=Pc.search("Safari")&&Pc.search("Version");var as=Xh||Yh;function bs(){return cs("(ps3; leanback shell)")}function ds(){return cs("safari/")&&cs(" version/8")}function es(){return $h&&cs("crkey")}function cs(a){var b=Pc;return b?0<=b.toLowerCase().indexOf(a):!1};function fs(){}var gs=Xr&&4>Wr?.1:0,hs=new fs;f=fs.prototype;f.nd=null;f.$k=!1;function is(a,b){var c="";b&&(a.nd=b,c=js(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.j||a.load())}function ks(a,b){0<a.readyState&&(a.currentTime=Math.max(gs,b))}f.getCurrentTime=function(){return this.currentTime||0};function Gr(a){return 0<Ur(a.buffered)&&a.duration?Tr(a.buffered,a.currentTime):0}function Zq(a){var b=a.duration||0;return Infinity==b?1:b?Gr(a)/b:0}function ls(a){return a.paused||a.ended}
function ms(a){a.ended&&ks(a,0);!a.hasAttribute("src")&&a.nd&&(a.src=js(a.nd),a.nd.j||a.load());a.play();Xr&&7<=Wr&&Bh(a,w(function(){M(w(this.Gt,this,this.currentTime,0),500)},a))}f.Gt=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),M(w(this.Gt,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function ns(a){a.currentSrc&&(as&&ks(a,0),Jd(a),a.removeAttribute("src"),a.load(),a.nd&&a.nd.j&&(a.nd=null))}function os(a){ns(a);a.nd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function ps(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.ZE=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.$E=function(){this.$k&&!this.muted&&(this.muted=!0)};
fs.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:Rr(this.played),vbu:Rr(this.buffered),vpa:this.paused,vsk:this.seeking,vpr:this.playbackRate,vrs:this.readyState,vns:this.networkState,vec:this.error?this.error.errorCode:null}};function qs(a,b){this.k=a||64;this.j=b||null}
function rs(a,b,c){if(W(a,128))return a;var d=a.k,e=a.j,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=14;e=null;break;case "pause":W(a,256)?(d^=256)||(d=64):W(a,32)||W(a,2)||(d=4,W(a,1)&&W(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":t:if((b=g.error)&&b.code){switch(b.code){case b.MEDIA_ERR_NETWORK:b="progressive.net";break;case b.MEDIA_ERR_DECODE:b="fmt.decode";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:b="fmt.unplayable";
break;default:b=null;break t}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":W(a,8)&&ss(c,g)&&(d|=1);break;case "seeked":d&=-17;break;case "seeking":d|=16;0>=Vr(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=ss(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return ts(a,d,e)}
function ss(a,b){if(!a)return!1;var c=Vr(b.buffered,b.currentTime);return us(a,b.currentTime,z(),c)}function ts(a,b,c){return b==a.k&&c==a.j||b&128&&!c||b&2&&b&16?a:new qs(b,c)}function vs(a,b){return ts(a,a.k|b)}function ws(a,b){return ts(a,a.k&~b)}function W(a,b){return!!(a.k&b)}function xs(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1};function ys(a,b,c){Lr.call(this,a,b);a=c||{};this.wa=a.id||"";void 0!=a.priority&&(this.Mh=a.priority);this.namespace=a.namespace||"";this.Oa=new zi;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}A(ys,Lr);f=ys.prototype;f.wa="";f.Mh=7;f.active=!0;f.visible=!1;f.style="ytp-ad-progress";f.Oa=null;f.namespace="";f.getId=function(){return this.wa};function zs(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function As(a,b){return a.start==b.start?a.Mh==b.Mh?0:a.Mh<b.Mh?-1:1:a.start<b.start?-1:1}f.toString=function(){return ys.I.toString.call(this)};function Bs(a,b,c,d){T.call(this);this.F=a;this.D=b;this.C=c;this.G=d;this.A=new ln(250);vm(this.A,"tick",this.qc,!1,this);S(this,this.A);this.k=[];this.j=new Nr}A(Bs,T);f=Bs.prototype;f.wi=!1;f.Id=!1;f.$l=!1;f.Zl=!1;f.Og=null;function Cs(a,b){a.qc();var c=a.j;if(1<b.length&&b.length>c.j.length)c.j=c.j.concat(b),c.j.sort(Mr);else for(var d=0;d<b.length;d++){var e=b[d];!c.j.length||0<Mr(e,c.j[c.j.length-1])?c.j.push(e):Fb(c.j,e,Mr)}a.qc()}
f.Dg=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.k.indexOf(c);0<=d&&this.k.splice(d,1);d=this.j.j;c=yb(d,c,Mr);0<=c&&qb(d,c)}}this.qc()};f.vf=function(){this.o=Ds(this);this.Id=!0;this.qc()};function Es(a,b){var c=[];if(!b.length)return c;b.sort(As);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.k.indexOf(e)&&(a.k.push(e),c.push(["onEnter",e]))}return c}
function Fs(a,b){var c=[];if(!b.length)return c;b.sort(As);for(var d=0;d<b.length;d++){var e=b[d],g=a.k.indexOf(e);0>g||(a.k.splice(g,1),c.push(["onExit",e]))}return c}
f.qc=function(){this.Zl=!0;if(!this.$l)for(var a=3;this.Zl&&a;){this.Zl=!1;this.$l=!0;if(this.Id&&!this.wi){Gs(this);for(var b=Ds(this),c=[],d=[],e=0;e<this.k.length;e++){var g=this.k[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(Fs(this,d));d=Or(this.j,b);e=this.C();!W(e,48)&&b>this.o&&(d=d.concat(Pr(this.j,this.o,b)));c=c.concat(Es(this,d));this.o=b;!this.wi&&this.B&&(c.unshift(["onLockBlockExit",this.B]),this.B=null,W(e,2)&&(this.o=2147483647));this.G()&&(b=Qr(this.j,this.o),null!=b&&(b=(b-
this.o)/this.D(),this.Og=nn(w(this.qc,this),b)));Hs(this,c)}this.$l=!1;a--}};function Hs(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.publish.apply(a,d):e.Oa.publish.apply(e.Oa,d)}}function Gs(a){null!=a.Og&&(on(a.Og),a.Og=null)}function Ds(a){return W(a.C(),2)?2147483647:1E3*a.F()}f.L=function(){Dm(this.A,"tick",this.qc,!1,this);Gs(this);this.B=this.j=this.k=null;Bs.I.L.call(this)};function Is(a){T.call(this);this.j=a;this.In&&(a=ck("yt-html5-player-modules::"+this.In))&&(this.$=new Ri(a))}A(Is,T);f=Is.prototype;f.ta="";f.oc="";f.Nd=!1;f.loaded=!1;f.Xi=!1;f.Ob=null;f.ed=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];d&&(d.namespace=this.ta,d.Oa.subscribe("onEnter",this.Cc,this),d.Oa.subscribe("onExit",this.Vc,this),b.push(d))}this.publish("command_add_cuerange",b,this.j.getPlayerType())};
f.Hi=function(a){var b=tb(arguments);this.publish("command_remove_cuerange",b,this.j.getPlayerType())};function Js(a){a.publish("command_remove_cuerange_all",a.ta,a.j.getPlayerType())}function Ks(a){a.publish("command_preroll_ready",a.ta,a.j.getPlayerType())}function Ls(a,b){O(b,a.ta);a.j.app.k.la.appendChild(b)}function Ms(a,b){a.publish("command_show_dialog",b)}f.wg=function(){Ms(this)};f.create=function(){this.Nd||(this.Ga(this.j),O(this.j.Ma(),this.ta+"-created"),this.Nd=!0)};
f.destroy=function(){this.loaded&&this.unload();fh(this.j.Ma(),this.ta+"-created");this.Nd=!1};f.load=function(){this.loaded=!0;O(this.j.Ma(),this.ta+"-loaded");this.publish("loaded",this.ta)};f.unload=function(){this.loaded=!1;fh(this.j.Ma(),this.ta+"-loaded");this.publish("unloaded",this.ta)};f.Cc=function(){};f.Vc=function(){};f.fe=function(){};function Ns(a,b,c){a.publish("command_navigate_to_url",b,c)}f.log=function(a){this.publish("command_log",this.oc,a)};
function Os(a,b,c){var d={},e;for(e in b)d[a.ta+"_"+e]=b[e];b={};for(var g in c)b[a.ta+"_"+g]=c[g];a.publish("command_log_timing",d,b)}f.lh=function(){return null};function Ps(a,b){if(!a.$)return null;var c;try{c=a.$.get(b)}catch(d){a.$&&a.$.remove(b)}return c}function Rs(a,b,c){if(a.$)try{a.$.set(b,c)}catch(d){}}function Ss(a,b){a.publish("command_disable_controls",b,a.ta)}function Ts(a,b){a.publish("command_enable_controls",b,a.ta)}function Us(a){a.publish("command_stop_redirect_controls")}
function Vs(a){a.publish("command_play",!1,a.j.getPlayerType())}f.pauseVideo=function(){this.publish("command_pause",!1,this.j.getPlayerType())};function Ws(a,b){a.publish("command_redirected_show_is_playing",b)}function Xs(a){return a.j.app.k.k}function Ys(a,b,c){a.publish("module_menu_button_add",b,c)}function Zs(a,b){a.publish("module_menu_button_remove",b)}function $s(a,b){a.publish("module_menu_item_add",b)}function at(a,b){a.publish("module_menu_item_remove",b)}
function bt(a){a.publish("module_menu_show")}f.fg=function(){};f.eg=function(){return[]};f.Ga=function(){return!1};f.Rm=function(){return!0};f.Kj=function(a,b){this.Ob&&this.Ob.fe&&this.Ob.fe.apply(this.Ob,arguments)};f.oj=function(){};var ct={IH:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",MH:"ERROR_AUTHENTICATION_EXPIRED",NH:"ERROR_AUTHENTICATION_MALFORMED",OH:"ERROR_AUTHENTICATION_MISSING",PH:"ERROR_BAD_REQUEST",WH:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",dI:"ERROR_CGI_PARAMS_MALFORMED",eI:"ERROR_CGI_PARAMS_MISSING",nI:"YTP_DEVICE_FALLBACK",tI:"YTP_ERROR_LICENSE",wI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",xI:"YTP_ERROR_GEO_FAILURE",QI:"YTP_ERROR_GENERIC",RI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",$I:"YTP_ERROR_INVALID_DRM_MESSAGE",
dJ:"LEARN_MORE",GJ:"YTP_ERROR_NOT_SIGNED_IN",$J:"YTP_ERROR_PURCHASE_NOT_FOUND",aK:"YTP_ERROR_PURCHASE_REFUNDED",eK:"YTP_ERROR_RENTAL_EXPIRED",YH:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",ZH:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",aI:"YTP_ERROR_CAST_TOKEN_FAILED",$H:"YTP_ERROR_CAST_TOKEN_EXPIRED",bI:"YTP_ERROR_CAST_TOKEN_MALFORMED",pK:"YTP_ERROR_SERVER_ERROR",CK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",EK:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",FK:"YTP_ERROR_STREAMING_NOT_ALLOWED",GK:"YTP_ERROR_STREAMING_UNAVAILABLE",
hK:"YTP_ERROR_RETRYABLE_ERROR",TK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",SK:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",$K:"YTP_ERROR_UNSUPPORTED_DEVICE",aL:"YTP_ERROR_UNUSUAL_ACTIVITY",jL:"YTP_ERROR_VIDEO_FORBIDDEN",lL:"YTP_ERROR_VIDEO_NOT_FOUND"},dt={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"};function et(a){return(a=dt[a.toString()])?a:"YTP_ERROR_LICENSE"};var ft={yk:function(a,b){a.splice(0,b)},F5:function(a){a.reverse()},gR:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}};function gt(a){a=a.split("");ft.F5(a,4);ft.gR(a,20);ft.F5(a,43);ft.gR(a,20);ft.yk(a,2);ft.F5(a,65);return a.join("")};var ht={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"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:"("};function it(a,b,c){this.k=a;this.j=b;this.o=c}var jt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},kt=["widevine","playready"];function lt(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function mt(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function nt(a,b,c){var d,e=lt();if(e)d=function(a,b){return e.isTypeSupported(b,a)};else if(a.addKey||a.webkitAddKey)d=function(b,c){return a.canPlayType(b,c)};else return null;for(var g=0;g<kt.length;g++){var h=kt[g];if(c[h])for(var k=jt[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||mt(a,b,h,p))return new it(h,p,c[h])}}return null};function ot(){};function pt(a,b,c,d,e,g,h){this.id=""+a;this.j=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.pa=h||0;this.k=c||null;this.video=d||null;this.Te=e||null;this.A=g||null;this.o=ht[qt(this)]||""}function qt(a){return a.id.split(";",1)[0]}function rt(a){return 2==a.j}function st(a){return!(a.k&&a.video)}function tt(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function ut(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function vt(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.Ii=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}vt.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.Ii+"_"+this.id+"_"+this.isDefault};function wt(a){a=a||{};this.H=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.H.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.C=Math.max(d,this.C))}this.k=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.o=a.name;this.wa=a.id;this.J=a.is_servable;this.isDefault=a.is_default;this.F=a.is_translateable;this.B=a.url||null;this.G=a.vss_id||"";this.j=null;a.translationLanguage&&(this.j=new vt(a.translationLanguage))}
function xt(a){var b={format:a.C,languageCode:a.k,languageName:a.D,displayName:zt(a),kind:a.A,name:a.o,id:a.wa,is_servable:a.J,is_default:a.isDefault,is_translateable:a.F};if(a.j){var c=a.j;b.translationLanguage={languageCode:c.languageCode,languageName:c.languageName,languageOriginal:c.Ii,id:c.id,is_default:c.isDefault}}a.B&&(b.url=a.B);return b}
function zt(a){var b=[a.D];"asr"==a.A&&-1==a.D.indexOf("(")&&b.push(" (",Of("YTP_ASR_SETTINGS_LABEL"),")");a.o&&b.push(" - ",a.o);a.j&&b.push(" >> ",a.j.languageName);return b.join("")}wt.prototype.toString=function(){var a=[this.k,": ",this.o," (",this.A,")"];this.j&&a.push(" >> ",this.j.languageCode);return a.join("")};
wt.prototype.equals=function(a){if(!a)return!1;var b=this.j,c=a.j;if(b&&c){if(b.languageCode!=c.languageCode)return!1}else if(b||c)return!1;return this.k==a.k&&this.o==a.o&&this.A==a.A};function At(a,b,c,d){this.id=a;this.name=b;this.language=c;this.isDefault=d;this.captionTracks=[];this.Vm=this.zn=null;this.Ws=0}At.prototype.toString=function(){return this.name};var Ub={IG:"auto",MK:"tiny",eJ:"light",SMALL:"small",SG:"medium",LARGE:"large",CI:"hd720",yI:"hd1080",zI:"hd1440",AI:"hd2160",BI:"hd2880",NI:"highres",UNKNOWN:"unknown"},Bt={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Ct="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");function Dt(a,b,c){this.k=a||0;this.j=b||0;this.o=c}Dt.prototype.equals=function(a){return this.k==a.k&&this.j==a.j&&this.o==a.o};function Wq(a,b,c){return new Dt(Bt[a]||0,Bt[b]||0,c)}var Et=Wq("auto","large",!1),Ft=Wq("auto","auto",!1);function Gt(a){var b=Bt.auto;return a.k==b&&a.j==b}function Ht(a){return a.o&&!!a.k&&a.k==a.j}
function It(a,b){if(b.o&&Gt(b))return Ft;if(b.o||Gt(a))return b;if(a.o||Gt(b))return a;var c=a.k&&b.k?Math.max(a.k,b.k):a.k||b.k,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.k&&d==a.j?a:new Dt(c,d,!1)}function Jt(a){var b=a.j||a.k;return Tb(function(a){return Bt[a]==b})||"auto"}Dt.prototype.A=function(a){if(!a.video)return!1;a=Bt[a.video.quality];return this.k<=a&&(!this.j||this.j>=a)};function Kt(a,b){this.k=a;this.j=b||null;this.audioTracks=[];if(this.j){var c={};D(this.j,w(function(a){if(a.Te&&!c[a.id]){var b=new At(a.id,a.Te.name,a.Te.language,a.Te.isDefault);c[a.id]=b;this.audioTracks.push(b)}},this))}}function Lt(a,b){var c=b||Ft,c=fb(a.k,w(c.A,c)),c=E(c,function(a){return a.video.quality});xb(c);return c}function Mt(a){var b={};E(a.k,function(a){b[a.video.quality]=a.video.fps});return b};function Nt(a,b,c,d,e,g){this.width=a;this.height=b;if(!g)t:{g=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Ct.length;b++){var h=Ct[b],k=Bt[h];if(g>=16*k/9||a>=k){g=h;break t}}g="tiny"}this.quality=g;this.fps=c||0;this.j=e||0;this.projectionType=d||0};var Ot,Pt;var Qt=Pc,Qt=Qt.toLowerCase();if(-1!=Qt.indexOf("android")){var Rt=Qt.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Rt)Ot=Number(Rt[1]);else{var St={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Tt=Qt.match("("+Qb(St).join("|")+")");Ot=Tt?St[Tt[0]]:0}}else Ot=void 0;Pt=0<=Ot;var Ut,Vt;function Wt(){var a=r("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function Xt(){if(2.2==Ot)return!0;var a=Wt();try{return!(!a||!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')&&!a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))}catch(b){return!1}};function Yt(a){return(a=a.exec(Pc))?a[1]:""}var Zt=function(){if(Vh)return Yt(/Firefox\/([0-9.]+)/);if(Uc||Tc)return ed;if($h)return Yt(/Chrome\/([0-9.]+)/);if(ai)return Yt(/Version\/([0-9.]+)/);if(Xh||Yh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Pc))return a[1]+"."+a[2]}else{if(Zh)return(a=Yt(/Android\s+([0-9.]+)/))?a:Yt(/Version\/([0-9.]+)/);if(Wh)return Yt(/Camino\/([0-9.]+)/)}return""}();function $t(a,b){this.k=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.YD,set:this.ZD});Object.defineProperty(this,"buffered",{get:this.XD})}f=$t.prototype;f.append=function(a){this.k.webkitSourceAppend(this.o,a)};f.abort=function(){this.k.webkitSourceAbort(this.o)};f.XD=function(){return this.k.webkitSourceState==this.k.SOURCE_CLOSED?new au:this.k.webkitSourceBuffered(this.o)};f.YD=function(){return this.A};
f.ZD=function(a){this.A=a;this.k.webkitSourceTimestampOffset(this.o,a)};function au(){this.length=0};function bu(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.k=NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.LB,set:this.OB});Object.defineProperty(this,"readyState",{get:this.MB});this.j.addEventListener("webkitsourceclose",w(this.NB,this),!0)}f=bu.prototype;f.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};f.NC=function(){return this.j.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.o++).toString();this.j.webkitSourceAddId(b,a);a=new $t(this.j,b);this.sourceBuffers.push(a);return a};f.MB=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""};f.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)};f.NB=function(){nb(this.sourceBuffers)};
f.LB=function(){return this.k};f.OB=function(a){this.k=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function cu(a){this.A=[];this.H=a||null}function du(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}cu.prototype.listen=function(a,b,c){c=w(c,this.H||this);a.addEventListener(b,c,!1);this.A.push(a,b,c)};cu.prototype.removeAll=function(){if(this.A)for(;this.A.length;){var a=this.A.shift(),b=this.A.shift(),c=this.A.shift();a.removeEventListener&&a.removeEventListener(b,c)}};cu.prototype.fa=function(){return null===this.A};cu.prototype.dispose=function(){this.removeAll();this.A=null};function eu(a,b,c,d){cu.call(this);this.k=this.j=null;this.C=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new bu(a);this.B="";this.D=null;du(this,this.o,["sourceopen","webkitsourceopen"],y(this.G,d,c));du(this,this.o,["sourceclose","webkitsourceclose"],this.F)}A(eu,cu);function fu(a,b){a.D=b}function gu(a){if(!a.B){var b;b=a.o;b=b.NC?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.B=b}return a.B}
eu.prototype.nf=function(a){hu(this)?this.o.duration=a:this.C=a};function hu(a){return"open"==a.o.readyState}function iu(a){return"closed"==a.o.readyState}function ju(a){return a.j.updating||a.k.updating}function ku(a){return a.j?!!a.j.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}eu.prototype.G=function(a,b){isNaN(this.C)||(this.o.duration=this.C,this.C=NaN,this.j=this.o.addSourceBuffer(a),this.k=this.o.addSourceBuffer(b),this.D&&(this.D(this),this.D=null))};
eu.prototype.F=function(){this.dispose()};eu.prototype.dispose=function(){var a=this.B;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.B="";eu.I.dispose.call(this)};
function lu(a){if(/opus/.test(a)&&($h&&!(0<=Ra(Zt,"38"))||es()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!cs("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Wt().canPlayType(a)};function mu(a,b){this.o=a;this.j=b;this.k={}}function js(a){return a.j?a.o:Ke(a.o,a.k)};function nu(a,b){this.k=new mu(a,!1);this.j=b}var ou="9h8(H*".split(""),pu="h98H(*".split(""),qu="oMavAV".split("");nu.prototype.getInfo=function(){return this.j};nu.prototype.Yn=function(){return this.j.video.quality};var ru={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},su={"application/x-mpegURL":"maybe"},tu={"application/x-mpegURL":"maybe"};
function uu(a,b){if(!Xt())return[];var c=vu(a,b);a=!c.length&&b?vu(a,!1):c;for(var d={},c=Wt(),e=0;e<a.length;e++){var g=a[e];if(wu(c,g.getInfo().mimeType)&&!xu(g)){var h=g.Yn();if(!d[h]||rt(d[h].getInfo()))d[h]=g}}var k=[];d.auto&&k.push(k.auto);D(Ct,function(a){(g=d[a])&&k.push(g)});return k}function wu(a,b){var c;if(!(c=a.canPlayType(b))){var d;Yh?d=tu[b]:2.2==Ot?d=ru[b]:cs("android")&&cs("chrome")&&(d=su[b]);c=d||""}return c}function xu(a){return qt(a.j)in yu||bs()&&"5"==qt(a.j)}
function zu(){return cs("android")&&cs("chrome")&&!gd(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var yu={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Au(a){var b=[];D(a,function(a){a.url&&b.push(Bu(a.url,a.type,"medium","0"))});return b}
function Bu(a,b,c,d,e){var g=new ot,h=Bt[c];h||(c="small",h=Bt[c]);var k=Math.round(16*h/9);c=new Nt(k,h,0,null,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new nu(a,new pt(d,b,g,c))}function vu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=Vc&&0!=e.j.video.j)g=1==e.getInfo().j;g||0!=e.j.video.j==b&&c.push(e)}return c}
function Cu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||gt(e.s);e.url=wj(e.url,{signature:g})}e.url&&c.push(Bu(e.url,e.type,e.quality,e.itag,e.stereo3d))}return uu(c,!!b)}function Du(a){a=Au(a);return uu(a,!1)}function Eu(a,b){if(!b.j)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(Bt[d.video.quality]<=b.j)return a[c]}return a[a.length-1]}
function Fu(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.j){var g=a.j[e];if(lu(g.info.mimeType)){if(g.info.A){d||(d=Wt());if(!nt(d,g.info.mimeType,g.info.A))continue;if(261==qt(g.info)&&(bs()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.o]=c[g.info.o]||[];c[g.info.o].push(g.info)}}a=ou;if(cs("cros armv7")||cs("windows nt 5.1"))a=pu;d=F(a,b);a=F(qu,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=gb(c["9"],
e,0),gb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];Ab(d,function(a,b){return b.video.width-a.video.width||b.pa-a.pa});Ab(a,function(a,b){return b.pa-a.pa});return new Kt(d,a)};var Gu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};/*
 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.
*/
function Hu(a,b){this.B=[];this.K=a;this.J=b||null;this.A=this.j=!1;this.o=void 0;this.G=this.N=this.D=!1;this.C=0;this.k=null;this.F=0}Hu.prototype.cancel=function(a){if(this.j)this.o instanceof Hu&&this.o.cancel();else{if(this.k){var b=this.k;delete this.k;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.K?this.K.call(this.J,this):this.G=!0;this.j||Iu(this,new Ju)}};Hu.prototype.H=function(a,b){this.D=!1;Ku(this,a,b)};function Ku(a,b,c){a.j=!0;a.o=c;a.A=!b;Lu(a)}
function Mu(a){if(a.j){if(!a.G)throw new Nu;a.G=!1}}function Iu(a,b){Mu(a);Ku(a,!1,b)}function Ou(a,b,c){Pu(a,b,null,c)}function Pu(a,b,c,d){a.B.push([b,c,d]);a.j&&Lu(a)}Hu.prototype.then=function(a,b,c){var d,e,g=new Ym(function(a,b){d=a;e=b});Pu(this,d,function(a){a instanceof Ju?g.cancel():e(a)});return g.then(a,b,c)};Wm(Hu);function Qu(a){return hb(a.B,function(a){return ia(a[1])})}
function Lu(a){if(a.C&&a.j&&Qu(a)){var b=a.C,c=Ru[b];c&&(m.clearTimeout(c.wa),delete Ru[b]);a.C=0}a.k&&(a.k.F--,delete a.k);for(var b=a.o,d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),g=e[0],h=e[1],e=e[2];if(g=a.A?h:g)try{var k=g.call(e||a.J,b);n(k)&&(a.A=a.A&&(k==b||k instanceof Error),a.o=b=k);Xm(b)&&(d=!0,a.D=!0)}catch(l){b=l,a.A=!0,Qu(a)||(c=!0)}}a.o=b;d&&(k=w(a.H,a,!0),d=w(a.H,a,!1),b instanceof Hu?(Pu(b,k,d),b.N=!0):b.then(k,d));c&&(b=new Su(b),Ru[b.wa]=b,a.C=b.wa)}
function Nu(){ta.call(this)}A(Nu,ta);Nu.prototype.message="Deferred has already fired";Nu.prototype.name="AlreadyCalledError";function Ju(){ta.call(this)}A(Ju,ta);Ju.prototype.message="Deferred was canceled";Ju.prototype.name="CanceledError";function Su(a){this.wa=m.setTimeout(w(this.k,this),0);this.j=a}Su.prototype.k=function(){delete Ru[this.wa];throw this.j;};var Ru={};function Tu(a,b){var c=b||{},d=c.document||document,e=Fd("SCRIPT"),g={Gu:e,wb:void 0},h=new Hu(Uu,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Vu(e,!0);Iu(h,new Wu(1,"Timeout reached for loading script "+a))},l),g.wb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Vu(e,c.OC||!1,k),Mu(h),Ku(h,!0,null))};e.onerror=function(){Vu(e,!0,k);Iu(h,new Wu(0,"Error while loading script "+a))};vd(e,{type:"text/javascript",
charset:"UTF-8",src:a});Xu(d).appendChild(e);return h}function Xu(a){var b=a.getElementsByTagName("HEAD");return!b||mb(b)?a.documentElement:b[0]}function Uu(){if(this&&this.Gu){var a=this.Gu;a&&"SCRIPT"==a.tagName&&Vu(a,!0,this.wb)}}function Vu(a,b,c){null!=c&&m.clearTimeout(c);a.onload=t;a.onerror=t;a.onreadystatechange=t;b&&window.setTimeout(function(){Ld(a)},0)}function Wu(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ta.call(this,c);this.code=a}A(Wu,ta);function Yu(a,b){this.k=new J(a);this.j=b?b:"callback";this.wb=5E3}var Zu=0;Yu.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Zu++).toString(36)+z().toString(36);m._callbacks_||(m._callbacks_={});var e=this.k.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||hf(e,g,a[g]);b&&(m._callbacks_[d]=$u(d,b),hf(e,this.j,"_callbacks_."+d));b=Tu(e.toString(),{timeout:this.wb,OC:!0});Pu(b,null,av(d,a,c),void 0);return{wa:d,Ns:b}};
Yu.prototype.cancel=function(a){a&&(a.Ns&&a.Ns.cancel(),a.wa&&bv(a.wa,!1))};function av(a,b,c){return function(){bv(a,!1);c&&c(b)}}function $u(a,b){return function(c){bv(a,!0);b.apply(void 0,arguments)}}function bv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=t)};function cv(a,b){T.call(this);this.A=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.j=new ln(15E3+Math.floor(3E4*Math.random()));vm(this.j,"tick",w(this.k,this));this.k();this.j.start()}A(cv,T);cv.prototype.L=function(){this.j.dispose();cv.I.L.call(this)};cv.prototype.k=function(){(new Yu(this.A)).send(null,w(this.o,this),w(this.B,this))};cv.prototype.o=function(a){this.publish("payload",a);mn(this.j,15E3+Math.floor(3E4*Math.random()))};
cv.prototype.B=function(){this.publish("error");var a=this.j.j;192E4>a&&mn(this.j,2*a)};function dv(a){R.call(this);this.j={};this.o={};this.A={};this.k=ev(this,a)}A(dv,R);function ev(a,b,c){var d=0,e=Fd(b[d++]);if(v(b[d])||ea(b[d])||null===b[d]){var g=b[d++];ea(g)&&(g=g.join(" "));if(g=fv(a,e,"className",g))gv(a,e,"className",g),hv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ea(h))ev(a,h,e);else if(ja(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&gv(g,k,l,fv(g,k,l,h[l]))}else v(h)&&(g=fv(a,e,"child",h),null!=g&&e.appendChild(Gd(g)))}c&&c.appendChild(e);return e}f=dv.prototype;f.M=function(){return this.k};
function hv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)hv(a,d[b],c);else a.j[b]=c}f.Y=function(a,b){n(b)?Kd(a,this.k,b):a.appendChild(this.k)};f.detach=function(){Ld(this.k)};function fv(a,b,c,d){return v(d)&&"{{"==d.substr(0,2)?(a.o[d]=[b,c],null):d}f.update=function(a){for(var b in a)iv(this,b,a[b])};function iv(a,b,c){if(c!=a.A[b]){var d=a.o["{{"+b+"}}"];d&&(a.A[b]=c,gv(a,d[0],d[1],c))}}function jv(a){return ea(a)&&v(a[0])}
function gv(a,b,c,d){if("child"==c){Jd(b);if(!ea(d)||jv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ha(g)||v(g)||ja(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?jv(g)?c.push(ev(a,g)):g.M?c.push(g.M()):c.push(Gd(g.toString())):c.push(g)}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())}f.L=function(){this.j={};this.o={};this.A={};this.detach();delete this.k;dv.I.L.call(this)};function kv(a,b){a&&(a.style.display=b)}function lv(a,b){var c=rh("requestAnimationFrame",window);return M(function(){c?c.call(window,a):a()},b||0)};function X(a){R.call(this);this.template=new dv(a);S(this,this.template);this.element=this.template.M();this.ja="block";this.F=!0;this.kb=[]}A(X,R);f=X.prototype;f.M=function(){return this.element};f.Y=function(a,b){this.template.Y(a,b)};f.detach=function(){this.template.detach()};f.qa=function(a,b){iv(this.template,b||"content",a)};f.show=function(){kv(this.element,this.ja);this.F=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){kv(this.element,"none");this.F=!1;this.element.setAttribute("aria-hidden","true")};function mv(a,b){a.element.setAttribute("role",b)}f.Xa=function(a){this.element.setAttribute("aria-label",a)};f.Ub=function(a){Gh(this.element,a)};f.listen=function(a,b,c){return nv(this,this.element,a,b,c)};function nv(a,b,c,d,e,g){b=Q(b,c,w(d,e||a),g);a.kb.push(b);return b}f.Aa=function(a){Ch(a)};f.L=function(){this.Aa(this.kb);delete this.element;X.I.L.call(this)};function ov(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),g="";0<c&&(g+=c+":",10>d&&(g+="0"));if(0<c||0<d)g+=d+":",10>e&&(g+="0");g+=e+":";10>b&&(g+="0");g+=b;return 0<=a?g:"-"+g}function pv(a){return Math.round(1E3*a)/10}function qv(a){return(!ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var rv={DK:"html5-stop-propagation",HJ:"ytp-no-controls",gJ:"html5-live-dvr-disabled",hJ:"html5-live-dvr-engaged",iJ:"html5-live-playback",bJ:"ytp-iv-drawer-open",tJ:"html5-mobile",wJ:"modest-branding",DJ:"html5-native-controls",IK:"html5-tablet",HK:"html5-tablet-body",oJ:"html5-main-video",eL:"html5-video-container",fL:"html5-video-content",gL:"html5-video-controls",hL:"ytp-fallback",iL:"ytp-fallback-content",kL:"html5-video-loader",rL:"html5-watermark",TH:"html5-branded-watermark",iI:"html5-context-menu",
sB:"html5-context-menu-copy-debug-info",tB:"html5-context-menu-copy-embed-html",uB:"html5-context-menu-copy-video-url",vB:"html5-context-menu-copy-video-url-at-current-time",wB:"html5-context-menu-link",xB:"html5-context-menu-report-playback-issue",yB:"html5-context-menu-show-video-info",jI:"html5-show-video-info-template",uJ:"html5-modal-panel",SI:"ideal-aspect",EI:"autohide-controls",GI:"autohide-controls-aspect",FI:"autohide-controls-fullscreen",rJ:"autominimize-progress-bar",sJ:"autominimize-progress-bar-non-aspect",
HI:"hide-info-bar",II:"html5-hide-share",JI:"html5-hide-volume",NK:"ytp-tiny-mode",nL:"video-thumbnail",VJ:"ytp-dialog",KH:"html5-async-progress",LH:"html5-async-success",JH:"html5-async-error",cI:"html5-center-overlay",kK:"ytp-scalable-icon-shrink",jK:"ytp-scalable-icon-grow",OI:"house-brand",oK:"sentiment-like",nK:"sentiment-dislike"};function sv(){X.call(this,["div",["ytp-fresca-module","html5-stop-propagation"],["div","ytp-fresca-band-slate",["hgroup","ytp-fresca-message",["h2","ytp-fresca-heading","{{heading}}"],["h3","ytp-fresca-subheading","{{subheading}}"],["h4","ytp-fresca-long-test","{{long_text}}"]],["span","ytp-fresca-countdown","{{countdown}}"]]]);this.k=0;this.j=null}A(sv,X);
sv.prototype.update=function(a){this.j&&this.j.state==a.state&&this.j.startTime==a.startTime&&this.j.imageUrl==a.imageUrl&&this.j.messageText.join()==a.messageText.join()||(this.j=a,this.element.style.backgroundImage=this.j.imageUrl||"none",a=this.j.getMessage(),this.template.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.o())};function tv(a){var b=Math.floor(z()/1E3);return b>a?Of("YTP_FRESCA_STARTING_SOON_MESSAGE"):ov(a-b)}
sv.prototype.o=function(){var a;a=this.j;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;P(this.element,"ytp-fresca-show-countdown",a);a&&(this.template.update({countdown:tv(this.j.startTime)}),N(this.k),this.k=M(w(this.o,this),1E3))};sv.prototype.L=function(){N(this.k);sv.I.L.call(this)};function uv(a){this.messageText=[];this.j=!1;a&&vv(this,a)}uv.prototype.state=-1;function wv(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function vv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Gu[d.$t]||-1);(d=c.yt$when)&&d.start&&(d=new Date(d.start),a.startTime=Math.floor(d.valueOf()/1E3));if(d=c.yt$slate)d.imgUrl&&(a.imageUrl="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.messageText=E(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=jb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}uv.prototype.getMessage=function(){return this.messageText.length?this.messageText:xv(this)};
function xv(a){switch(a.state){case 6:return a.j?[]:[Of("YTP_FRESCA_STAND_BY_MESSAGE"),Of("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Of("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Of("YTP_FRESCA_EVENT_OVER_MESSAGE"),Of("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Of("YTP_FRESCA_STAND_BY_MESSAGE")]}};function yv(a){Is.call(this,a);Nf({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live event is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"We're experiencing technical difficulties."})}A(yv,Is);f=yv.prototype;f.ta="fresca";f.oc="fresca";f.lj=!1;f.hh=!1;f.Ga=function(){return zv(this.j.getVideoData(),"fresca_module")};
f.create=function(a){yv.I.create.call(this);wu(Wt(),"application/x-mpegURL")||zu()?(this.lj=this.hh=!1,Ss(this,["play_pause","seek"]),this.o=new sv,Kr(this.j,this.o.M()),this.A=a||new cv(this.j.getVideoData().videoId,this.j.S().rb),this.A.subscribe("payload",this.nC,this),this.A.subscribe("error",this.mC,this),this.subscribe("onStateChange",this.cs,this)):Av(this.j.app.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.unsubscribe("onStateChange",this.cs,this);yi(this.A,this.o);yv.I.destroy.call(this)};f.cs=function(a){this.k&&(this.lj=W(a.state,2),(Bv(a,16)||this.lj)&&Cv(this,this.k))};f.mC=function(){this.hh||(Dv(this,new uv),Cv(this,this.k))};f.nC=function(a){Dv(this,new uv(a));a=this.j.getVideoData();6!=this.k.state||a.R||a.O?Cv(this,this.k):this.j.Mm(a.videoId)};
function Cv(a,b){var c=6>b.state;!c&&a.j.app.o.la&&(b.imageUrl||b.messageText.length)&&(c=!0);a.lj&&!a.j.S().zc&&(c=!0);b.j||(c=!0);if(!a.hh)switch(b.state){case 6:b.j&&(a.hh=!0,Ts(a,["play_pause","seek"]),Ks(a));break;case 8:case 7:c=a.hh=!0}c&&a.o.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function Ev(a){return zv(a.getVideoData(),"fresca_module")?new yv(a):null}function Dv(a,b){a.k!=b&&(a.k=b,a.j.S().zb()&&a.publish("publish_external_event","onFrescaStateChange",wv(a.k)))};function Fv(a){this.ho=a||window;this.ng=[]}f=Fv.prototype;f.ho=null;f.ng=null;f.listen=function(a,b,c,d){c=w(c,d||this.ho);a=Q(a,b,c);this.ng.push(a);return a};function Gv(a,b,c,d,e,g){d=w(d,g||a.ho);b=Dh(b,c,d,e);a.ng.push(b)}f.Aa=function(a){Ch(a);pb(this.ng,a)};f.removeAll=function(){Ch(this.ng);this.ng=[]};function Hv(a,b,c){R.call(this);this.j=a;this.A=b||0;this.k=c;this.o=w(this.tA,this)}A(Hv,R);f=Hv.prototype;f.wa=0;f.L=function(){Hv.I.L.call(this);this.stop();delete this.j;delete this.k};f.start=function(a){this.stop();this.wa=nn(this.o,n(a)?a:this.A)};f.stop=function(){this.isActive()&&on(this.wa);this.wa=0};f.isActive=function(){return 0!=this.wa};f.tA=function(){this.wa=0;this.j&&this.j.call(this.k)};function Iv(){U.call(this);this.j=0;this.endTime=this.startTime=null}A(Iv,U);f=Iv.prototype;f.mb=function(){return 1==this.j};f.ac=function(){this.Sb("begin")};f.Fc=function(){this.Sb("end")};f.Pb=function(){this.Sb("finish")};f.onStop=function(){this.Sb("stop")};f.Sb=function(a){this.T(a)};function Jv(){Iv.call(this);this.k=[]}A(Jv,Iv);Jv.prototype.add=function(a){G(this.k,a)||(this.k.push(a),vm(a,"finish",this.A,!1,this))};Jv.prototype.remove=function(a){pb(this.k,a)&&Dm(a,"finish",this.A,!1,this)};Jv.prototype.L=function(){D(this.k,function(a){a.dispose()});this.k.length=0;Jv.I.L.call(this)};function Kv(){Jv.call(this);this.o=0}A(Kv,Jv);
Kv.prototype.play=function(a){if(0==this.k.length)return!1;if(a||0==this.j)this.o=0,this.ac();else if(this.mb())return!1;this.Sb("play");-1==this.j&&this.Sb("resume");var b=-1==this.j&&!a;this.startTime=z();this.endTime=null;this.j=1;D(this.k,function(c){b&&-1!=c.j||c.play(a)});return!0};Kv.prototype.pause=function(){this.mb()&&(D(this.k,function(a){a.mb()&&a.pause()}),this.j=-1,this.Sb("pause"))};
Kv.prototype.stop=function(a){D(this.k,function(b){0==b.j||b.stop(a)});this.j=0;this.endTime=z();this.onStop();this.Fc()};Kv.prototype.A=function(){this.o++;this.o==this.k.length&&(this.endTime=z(),this.j=0,this.Pb(),this.Fc())};var Lv=/#(.)(.)(.)/;function Mv(a){if(!Nv.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Lv,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}var Nv=/^#(?:[0-9a-f]{3}){1,2}$/i;var Ov={},Pv=null;function Qv(a){a=ka(a);delete Ov[a];Vb(Ov)&&Pv&&Pv.stop()}function Rv(){Pv||(Pv=new Hv(function(){Sv()},20));var a=Pv;a.isActive()||a.start()}function Sv(){var a=z();Ib(Ov,function(b){Tv(b,a)});Vb(Ov)||Rv()};function Uv(a,b,c,d){Iv.call(this);if(!ea(a)||!ea(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.k=[];this.o=this.F=0;this.C=null}A(Uv,Iv);f=Uv.prototype;
f.play=function(a){if(a||0==this.j)this.o=0,this.k=this.A;else if(this.mb())return!1;Qv(this);this.startTime=a=z();-1==this.j&&(this.startTime-=this.duration*this.o);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.o||this.ac();this.Sb("play");-1==this.j&&this.Sb("resume");this.j=1;var b=ka(this);b in Ov||(Ov[b]=this);Rv();Tv(this,a);return!0};f.stop=function(a){Qv(this);this.j=0;a&&(this.o=1);Vv(this,this.o);this.onStop();this.Fc()};
f.pause=function(){this.mb()&&(Qv(this),this.j=-1,this.Sb("pause"))};f.L=function(){0==this.j||this.stop(!1);this.Sb("destroy");Uv.I.L.call(this)};f.destroy=function(){this.dispose()};function Tv(a,b){a.o=(b-a.startTime)/(a.endTime-a.startTime);1<=a.o&&(a.o=1);a.F=1E3/(b-a.C);a.C=b;Vv(a,a.o);1==a.o?(a.j=0,Qv(a),a.Pb(),a.Fc()):a.mb()&&a.bn()}function Vv(a,b){ia(a.D)&&(b=a.D(b));a.k=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.k[c]=(a.G[c]-a.A[c])*b+a.A[c]}f.bn=function(){this.Sb("animate")};
f.Sb=function(a){this.T(new Wv(a,this))};function Wv(a,b){dm.call(this,a);this.x=b.k[0];this.y=b.k[1];this.duration=b.duration;this.fps=b.F;this.state=b.j}A(Wv,dm);function Xv(a,b,c,d,e){Uv.call(this,b,c,d,e);this.element=a}A(Xv,Uv);Xv.prototype.cf=t;Xv.prototype.bn=function(){this.cf();Xv.I.bn.call(this)};Xv.prototype.Fc=function(){this.cf();Xv.I.Fc.call(this)};Xv.prototype.ac=function(){this.cf();Xv.I.ac.call(this)};function Yv(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Xv.apply(this,arguments)}A(Yv,Xv);
Yv.prototype.cf=function(){this.element.style.left=Math.round(this.k[0])+"px";this.element.style.top=Math.round(this.k[1])+"px"};function Zv(a,b,c,d){Yv.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}A(Zv,Yv);Zv.prototype.ac=function(){this.A=[this.element.offsetLeft,this.element.offsetTop];Zv.I.ac.call(this)};function $v(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Xv.apply(this,arguments)}A($v,Xv);
$v.prototype.cf=function(){this.element.style.width=Math.round(this.k[0])+"px";this.element.style.height=Math.round(this.k[1])+"px"};function aw(a,b,c,d,e){Xv.call(this,a,[b],[c],d,e)}A(aw,Xv);aw.prototype.cf=function(){this.element.style.width=Math.round(this.k[0])+"px"};function bw(a,b,c,d,e){ha(b)&&(b=[b]);ha(c)&&(c=[c]);Xv.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");this.B=-1}A(bw,Xv);var cw=1/1024;f=bw.prototype;
f.cf=function(){var a=this.k[0];Math.abs(a-this.B)>=cw&&(Rg(this.element,a),this.B=a)};f.ac=function(){this.B=-1;bw.I.ac.call(this)};f.Fc=function(){this.B=-1;bw.I.Fc.call(this)};f.show=function(){this.element.style.display=""};f.hide=function(){this.element.style.display="none"};function dw(a,b,c){bw.call(this,a,1,0,b,c)}A(dw,bw);dw.prototype.ac=function(){this.show();dw.I.ac.call(this)};dw.prototype.Fc=function(){this.hide();dw.I.Fc.call(this)};function ew(a,b,c){bw.call(this,a,0,1,b,c)}A(ew,bw);
ew.prototype.ac=function(){this.show();ew.I.ac.call(this)};function fw(a){return Math.pow(a,3)}function gw(a){return 3*a*a-2*a*a*a};function hw(a){return ea(a)&&a.length?a[0]:a}function iw(a){var b=/.+/;return v(a)&&null!=b&&null!=a&&a.match(b)?a:""}function jw(a,b){if(null==a)return b;var c=parseInt(a,0);if(isNaN(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c}function kw(a){return v(a)?a:""}function lw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function mw(a,b){return"true"==a||"false"==a?"true"==a:b}function nw(a,b){return v(a)?parseFloat(a):b}
function ow(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Kc(a,c,d);if(a>=c&&a<=d)return a}return g}function pw(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;D(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function qw(a,b){if(null==a)return null;if(ga(a)){var c=[];D(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function rw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new lg(parseFloat(a.top),parseFloat(a.right),parseFloat(a.bottom),parseFloat(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null}function sw(a){function b(a){return fb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function tw(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var uw={mI:"current",FJ:"new"};function vw(a){if(!a)return null;var b=kw(a.value);if(!b||null==tj(b))return null;var c=lw(a.target,uw,"current");return null==c?null:new tw(b,c,mw(a.show_link_icon,!0))};function ww(a){if(!a)return!1;var b=xw(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function xw(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function yw(a,b){if("new"==a.target)return-1;var c=a.value?a.value:null;if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!ww(c))||(d=Ce(ze(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=tj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=sj(c[1]))&&c.t?(d=c.t,c=0,-1!=d.indexOf("h")&&(d=d.split("h"),c=3600*d[0],d=d[1]),-1!=d.indexOf("m")&&(d=d.split("m"),c=60*d[0]+c,d=d[1]),-1!=d.indexOf("s")?(d=d.split("s"),c=1*
d[0]+c):c=1*d+c):c=-1;return c}function zw(a,b,c,d){(a=a.value?a.value:null)?ww(a)?d=wj(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=xw(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=y(Aw,d.pageId,d.Wa),a=new J(a),Ve(a,d(a.Jb)),d=a.toString()):d=a):d=null;return d}function Aw(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}
function Bw(a){return a.target?"new"==a.target?"_blank":"_top":ww(a.value?a.value:null)?"_top":"_blank"};function Cw(a,b){this.o=a;this.k=b;this.j={}}function Dw(a,b,c,d){if(b){var e=Ew(a,b);a.j[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;cc(e,c||{});b=tb(d||[]);30==e["a-type"]&&(c=Fw(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);Gw(a,e,b)}}function Hw(a,b,c,d,e){if(b){var g=Ew(a,b);g["iv-event"]=3;g["i-time"]=a.j[b]||"";cc(g,d||{});b=tb(e||[]);30==g["a-type"]&&(d=Fw(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);Gw(a,g,b,c)}}
function Iw(a,b,c,d){if(b){var e=Ew(a,b);e["iv-event"]=4;e["i-time"]=a.j[b]||"";cc(e,c||{});b=tb(d||[]);30==e["a-type"]&&(c=Fw(a,e["a-id"],"cta_annotation_closed"))&&b.push(c);Gw(a,e,b)}}function Fw(a,b,c){a=a.k.getVideoData();if(a.Mc){if((c=a.Mc[c])&&-1!=c.search(yf))return a=xa("[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.ia)return wj(a.ia,{label:c,value:"a_id="+b});return""}
function Gw(a,b,c,d){var e=1,g,h=-1;if(d){var k=!1;g=function(){e--;e||k||(clearTimeout(h),k=!0,d())};h=setTimeout(function(){k=!0;d()},1E3)}D(c||[],function(a){e++;bg(a,g)});a.Ka(b,g)}function Ew(a,b){var c={};if(b){var d=new Ye(b);D(d.Ja(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.k.getCurrentTime().toFixed(2);c.ps=a.k.S().k;return c}function Jw(a,b,c){var d=Ew(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;Gw(a,d,c)}
function Kw(a,b,c,d,e){c&&(c=Ew(a,c),c["iv-event"]=b,cc(c,d||{}),Gw(a,c,e))}Cw.prototype.Ka=function(a,b){this.o.publish("command_log","iv",a,b)};function Lw(a,b){this.Da=a;this.context=b;this.O=this.P=this.K=null;this.Jm=!1;this.F=0}function Mw(a,b,c,d,e,g){b=new ys(b,c,{id:d});b.namespace="iv-module";e&&b.Oa.subscribe("onEnter",e,a);g&&b.Oa.subscribe("onExit",g,a);a.context.Oa.publish("command_add_cuerange",[b],a.context.k.getPlayerType())}f=Lw.prototype;f.Gj=function(){this.context.Oa.subscribe("onResize",this.Ge,this)};f.M=function(){return this.Da};
f.Md=function(a,b,c,d,e){Gv(this.context.j,a,"click",y(this.Kd,a,b,c,d,e||[]),"iv-click-target",this);Gv(this.context.j,a,"touchend",y(this.Kd,a,b,c,d,e||[]),"iv-click-target",this);Gv(this.context.j,a,"touchstart",y(function(){this.Jm=!1}),"iv-click-target",this);Gv(this.context.j,a,"touchmove",y(function(){this.Jm=!0}),"iv-click-target",this)};
f.Kd=function(a,b,c,d,e,g){g.stopPropagation();if(!this.Jm){g.preventDefault();var h=zw(b,c,this.context.A.videoId);a=w(function(){this.context.k.pauseVideo();window.open(h,Bw(b))},this);ww(b.value?b.value:null)&&"new"!=b.target||(a(),a=null);c={};c.interval=z()-this.F;Hw(this.context.logger,d,a,c,e);return!1}};f.show=function(){this.F=z()};f.hide=function(){};f.destroy=function(){Ld(this.M())};function Nw(a){a.O||(a.O=ee(a.M(),"html5-video-player"));return a.O}
function Ow(a){var b=a.context.o.re;if(!b)return null;var c=a.context.o.Gg||new mg(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.P||(a.P=ud("html5-video-container",Nw(a)));g=a.P;if(!g)return null;g=35-(parseInt(zg(g,"bottom"),10)||0);var h;a.K||(a.K=ud("html5-info-bar",Nw(a)));(h=a.K)&&a.context.o.Ik&&"none"!=zg(h,"display")&&(d+=Og(h).height);return new lg(d,b.width-c.left,e-g,-c.left)}f.Ge=function(){};function Pw(a,b){ea(b)||(b=[b]);var c=E(b,function(a){return v(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Tp+"s"});Qw(a,c.join(","))}
var Rw=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Uc)return gd("10.0");var a=document.createElement("div"),b=Wc?"-webkit":Vc?"-moz":Uc?"-ms":Tc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Fc.test("div"))throw Error("Invalid tag name <div>.");if("div"in Hc)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!Fc.test(e))throw Error('Invalid attribute name "'+
e+'".');var g=b[e];if(null!=g){var h;h=e;if(g instanceof pc)g=rc(g);else if("style"==h.toLowerCase()){if(!ja(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof sc)){var k="",l=void 0;for(l in g){if(!/^[-_a-zA-Z0-9]+$/.test(l))throw Error("Name allows only [-_a-zA-Z0-9], got: "+l);var p=g[l];null!=p&&(p instanceof pc?p=rc(p):wc.test(p)||(p="zClosurez"),k+=l+":"+p+";")}g=k?uc(k):vc}k=void 0;k=g instanceof sc&&g.constructor===
sc&&g.k===tc?g.j:"type_error:SafeStyle";g=k}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+g+'" given.');if(h.toLowerCase()in Gc)if(g instanceof Ac)g=g instanceof Ac&&g.constructor===Ac&&g.j===Bc?"":"type_error:TrustedResourceUrl";else if(g instanceof xc)g=zc(g);else throw Error('Attribute "'+h+'" on tag "div" requires goog.html.SafeUrl or goog.string.Const value, "'+g+'" given.');}g.cg&&(g=g.ag());h=h+'="'+za(String(g))+'"';d=d+(" "+h)}}e=void 0;n(e)?ea(e)||
(e=[e]):e=[];!0===fc.div?d+=">":(c=Ic(e),d+=">"+Ec(c)+"</div>",c=c.$f());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Jc(d,c);a.innerHTML=Ec(b);a=a.firstChild;b=a.style[Xa("transition")];return""!=("undefined"!==typeof b?b:a.style[xg(a,"transition")]||"")});function Qw(a,b){wg(a,"transition",b)};function Sw(a,b){(a=rd(a))&&a.style&&(Sg(a,b),P(a,"hid",!b))}function Tw(a){return(a=rd(a))?!("none"==a.style.display||dh(a,"hid")):!1}function Uw(a){D(arguments,function(a){Sw(a,!0)})}function Vw(a){D(arguments,function(a){Sw(a,!1)})}var Ww={};function Xw(a,b,c){this.id=a;this.type=b.card_type;this.D=b.teaser_text||b.title;this.C=b.teaser_image_url||b.image_url;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.Fa=c;a=b.tracking||{};this.j={Vp:a.impression,click:a.click,close:a.close,Eq:a.teaser_impression,Ei:a.teaser_click}};function Yw(a,b,c){Xw.call(this,a,b,c);this.A=b.banner_image_url;this.F=b.image_url;this.B=b.g_plus_url;this.title=b.title;this.k=b.meta_info;this.o=b.html_blobs;this.url=vw({target:b.target||"new",value:b.url})}A(Yw,Xw);function Zw(a,b,c){Xw.call(this,a,b,c);this.B=b.profile_image_url;this.A=b.intro;this.o=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.k=b.meta_info;this.url=vw({target:b.target||"new",value:b.url})}A(Zw,Xw);function $w(a,b,c){Xw.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}A($w,Xw);function ax(a,b,c){Xw.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.o=b.button_icon_url;this.title=b.title;this.A=b.custom_message;this.url=vw({target:b.target||"new",value:b.url})}A(ax,Xw);function bx(a,b,c){ax.call(this,a,b,c);this.G=b.ypc_item_type;this.F=b.ypc_item_id;this.B=b.ypc_flow_type}A(bx,ax);function cx(a,b,c){Xw.call(this,a,b,c);this.F=b.profile_image_url;this.B=b.intro;this.A=b.image_url;this.o=b.video_duration;this.title=b.title;this.k=b.meta_info;this.url=vw({target:b.target||"new",value:b.url})}A(cx,Xw);function dx(a){window.location=Ke(a,{})+""}
function ex(a,b,c){b||(b={});var d=c||window;c="undefined"!=typeof a.href?a.href:String(a);a=b.target||a.target;var e=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(b[g]?1:0))}g=e.join(",");if(b.noreferrer){if(b=d.open("",a,g))Uc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=za(c),b.document.write('<META HTTP-EQUIV="refresh" content="0; url='+c+'">'),b.document.close()}else b=
d.open(c,a,g);return b}function fx(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=ex(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function gx(){var a=If("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser?!0:!(!If("SESSION_INDEX")&&!If("LOGGED_IN"))};function hx(a,b){var c=ix(a),d=document.getElementById(c),e=d&&kh(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Fi(c,b),ka(b)),g||(d=jx(a,c,function(){kh(d,"loaded")||(ih(d,"loaded","true"),Ii(c),M(y(Li,c),0))})))}
function jx(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function ix(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ta(a)}var kx=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,lx=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function mx(a,b){var c=nx(a),d=document.getElementById(c),e=d&&kh(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Fi(c,b),ka(b)),g||(d=ox(a,c,function(){kh(d,"loaded")||(ih(d,"loaded","true"),Ii(c),M(y(Li,c),0))})))}function ox(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};d.href=a;(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}
function nx(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Ta(a)}var px=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;var an=[];
function qx(a){var b=If("YPC_LOADER_CSS"),c=If("YPC_LOADER_JS");an.length||(an.push(new Ym(function(a){if(window.spf){var c=b.match(px);spf.style.load(b,c?c[1]:"",a)}else mx(b,a)})),an.push(new Ym(function(a){if(window.spf){var b="";if(c){var g=c.indexOf("jsbin/"),h=c.lastIndexOf(".js"),k=g+6;-1<g&&-1<h&&h>k&&(b=c.substring(k,h),b=b.replace(kx,""),b=b.replace(lx,""),b=b.replace("debug-",""),b=b.replace("tracing-",""))}spf.script.load(c,b,a)}else hx(c,a)})));$m().then(function(){a&&a()})};function rx(a,b,c){if(gx())qx(function(){r("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,void 0)});else{var d=sx({ypc_it:a,ypc_ii:b,ypc_ft:c});dx(d)}}function sx(a){a=wj(window.location.href,a);var b=If("YPC_SIGNIN_URL"),c=tj(b)["continue"],c=wj(c,{next:a});return wj(b,{"continue":c})};var tx,ux,vx;var wx=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},xx=w(wx.clearResourceTimings||wx.webkitClearResourceTimings||wx.mozClearResourceTimings||wx.msClearResourceTimings||wx.oClearResourceTimings||t,wx),yx=wx.mark?function(a){wx.mark(a)}:t;
function zx(a,b,c){Ax(c)[a]=b||z();b||yx(a);if(If("CSI_LOG_ON_TICK")&&(b=If("TIMING_ACTION"),a=Ax(c),b&&a._start&&Bx(c))){b=!0;var d=If("TIMING_WAIT",[]);if(d.length)for(var e=0,g=d.length;e<g;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&Cx(c)}}function Dx(a,b){var c=Ax(b);return a in c}function Ex(a,b,c){Fx(c).info[a]=b}function Bx(a){a=Ax(a);if(a.aft)return a.aft;for(var b=If("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}
function Gx(a){return Math.round(wx.timing.navigationStart+a)}
function Hx(a){var b=window.location.protocol,c=wx.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=Gx(d.startTime),a.wfce=Gx(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=Gx(c.startTime),a.wffe=Gx(c.responseEnd))}
function Cx(a){var b=Ax(a),c=Fx(a).span,d=Fx(a).info,e=r("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))Ix(e),Jx(a),xx();return NaN}e={v:2,s:"youtube",action:If("TIMING_ACTION")};if(wx.now&&wx.timing){var g=wx.timing.navigationStart+wx.now(),g=Math.round(z()-g);d.yt_hrd=g}var g=If("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=wx.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&d.pt&&(h=d.pt));if(h||0===h)d.srt=h;d.h5jse&&(g=window.location.protocol+
r("ytplayer.config.assets.js"),(g=wx.getEntriesByName?wx.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=Bx(a);g=b._start;if(!tx){k||(k=wx.timing||{});var l;t:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ia(p))){var p=p(),u=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),u=Infinity===u?0:l.navigationStart-u;l=Math.max(0,Math.round(1E3*p.firstPaintTime+u)||0);break t}l=0}0<l&&l>g&&(b.fpt=
l);l=k.redirectEnd-k.redirectStart;0<l&&(c.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(c.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(c.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(c.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(c.req_=l);l=k.responseEnd-k.responseStart;0<l&&(c.rcv_=l);If("EXP_WEBFONT_ENABLED")&&wx.getEntriesByType&&Hx(b);tx=!0}If("CSI_MORE")&&(d.p=If("CLIENT_PROTOCOL")||"unknown",d.t=If("CLIENT_TRANSPORT")||"unknown");for(var x in d)"_"!=
x.charAt(0)&&(e[x]=d[x]);d={};x=[];for(var L in b)"_"!=L.charAt(0)&&(l=Math.max(Math.round(b[L]-g),0),d[L]=l,x.push(L+"."+l));e.rt=x.join(",");b={};L=[];for(var la in c)"_"!=la.charAt(0)&&(b[la]=c[la],L.push(la+"."+c[la]));e.it=L.join(",");(c=r("ytdebug.logTiming"))&&c(e,d,b);Jx(a);xx();If("EXP_DEFER_CSI_PING")?(Kx(),ux=e,vx=M(Kx,0)):Ix(e);return d.aft+(h||0)}
function Ix(a){If("EXP_DEFER_CSI_PING")&&(N(vx),ux=null);var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];bg(b+"?"+c.substring(1))}function Kx(a){ux&&(a&&(ux.yt_fss=a),Ix(ux))}function Ax(a){return Fx(a).tick}function Fx(a){return r("ytcsi."+(a||"")+"data_")||Jx(a)}function Jx(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};function Lx(){return!!r("yt.scheduler.instance")}function Mx(a,b){void 0===b&&(b=NaN);var c=r("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):M(a,b||0)}function Nx(a,b){return Mx(a,b)}function Ox(a){var b=r("yt.scheduler.instance.cancelJob");b?b(a):N(a)}function Px(){var a=r("yt.scheduler.instance.start");a&&(Dx("jsp")&&!Dx("jsr")&&zx("jsr"),N(Qx),a())}var Qx=0;
function Rx(){var a=r("yt.scheduler.instance.pause");a&&(a(),Dx("jsp")||zx("jsp"),N(Qx),Qx=M(Px,800))};var Sx=r("yt.pubsub2.instance_")||new zi;zi.prototype.subscribe=zi.prototype.subscribe;zi.prototype.unsubscribeByKey=zi.prototype.Lb;zi.prototype.publish=zi.prototype.publish;zi.prototype.clear=zi.prototype.clear;q("yt.pubsub2.instance_",Sx,void 0);var Tx=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Tx,void 0);var Ux=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Ux,void 0);var Vx=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Vx,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);function Wx(a){bg("/gen_204?"+a,void 0)}function Xx(a,b,c,d,e,g){var h={};b&&(h.v=b);c&&(h.list=c);d&&(h.url=d);a={name:a,locale:e,feature:g};for(var k in h)a[k]=h[k];h=Ke("/sharing_services",a);bg(h)};Uc&&8<=document.documentMode||Vc&&gd("1.9.2")||Wc&&gd("532.1");window.history.pushState&&(!Wc||Wc&&gd("534.11"));function Yx(a){this.j=a}
function Zx(a,b){var c=$x(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.A&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.A+");"}]);var e=b.B?["a","iv-card-gplus",{href:b.B,target:"_blank",title:Of("YTP_ON_GOOGLE_PLUS")}]:null,c=new X(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.F}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div",["iv-blob-subscribe","iv-card-subscribe"],
""]]]),g=c.M();g&&Ib(b.o,function(a,b){var c=sd(b,g);D(c,function(b){b.innerHTML=a})},c);return c}
function ay(a,b){var c=$x(a,b.url,b.id),d=["ul","iv-card-meta-info"];D(b.k,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.B+");"},b.A],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.o}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Of("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],
["h2","",b.title],d]]];return new X(c)}
function by(a,b){var c=$x(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.o&&(d.push("yt-uix-button-has-icon"),e=["span","yt-uix-button-icon-wrapper",["img",["yt-uix-button-icon","iv-card-button-icon"],{src:b.o}]]);return new X(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",b.A]]]])}
function cy(a,b,c){var d=by(a,b),e=d.M();Gv(a.j.j,e,"click",y(a.o,b,c),"iv-click-target",a);return d}
function dy(a,b){var c=$x(a,b.url,b.id),d=["ul","iv-card-meta-info"];D(b.k,function(a){d.push(["li","",a])});return new X(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.F+");"},b.B],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.A}],["span","iv-card-video-duration",b.o]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
function ey(a,b){var c=["ul","yt-uix-form-list-option"];ub(c,E(b.options,function(a){return["li","iv-card-option",{"data-index":a.index.toString()},["label","",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio"}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=new X(["article",["iv-card-poll","iv-card-simple"],["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],
["fieldset",["yt-uix-form-fieldset","iv-card-options"],c]]]),d=c.M();Gv(a.j.j,d,"click",y(a.k,b),"iv-card-option",a);Gv(a.j.j,d,"touchend",y(a.k,b),"iv-card-option",a);return c}Yx.prototype.k=function(a,b){b.stopPropagation();b.preventDefault();var c={poll_id:a.id,index:kh(b.currentTarget,"index")};Dj(this.j.A.xh,{Me:{action_poll_vote:1},Ab:c})};
Yx.prototype.o=function(a,b,c){c.stopPropagation();c.preventDefault();this.j.k.pauseVideo();this.j.k.isFullscreen()&&fy(this.j.k.app);this.j.Oa.publish("external_overlay_activated");Hw(this.j.logger,a.Fa);rx(a.G,a.F,a.B)};function $x(a,b,c){return b?zw(b,c,a.j.A.videoId,a.j.o):null};function gy(a,b){Lw.call(this,a,b);this.U=!1;this.H=I("div",["iv-cards-thumbnails","hid"]);this.R=I("button",void 0,I("div"));this.B=I("div","iv-cards-background",I("div"),this.R);this.De=I("div");this.A=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.De,I("button",{type:"button"},I("div")));this.k=I("div","iv-cards-details");this.C=new Yx(this.context);this.j=[];this.J=null;this.N=0;this.o=-1;this.Zb=null;this.G=this.D=!1;O(this.M(),"iv-cards");Mw(this,1E3*this.context.A.lengthSeconds-
1200,2147483647,"",this.Yw);this.context.k.addEventListener("onStateChange",w(this.xe,this));this.context.k.addEventListener("onAdStateChange",w(this.xe,this))}A(gy,Lw);var hy={associated:ax,channel:Yw,fundraising:ax,merch:ax,playlist:Zw,poll:$w,product:ax,tip:bx,video:cx};function iy(a,b){return new Zv(a,[b,a.offsetTop],200,gw)}function jy(a,b,c){a=new dw(a,200,gw);b&&Cm(a,"end",b,!1,c);return a}
function ky(a){var b=new ew(a,200,gw);Cm(b,"end",y(function(a,b){wg(a,"opacity","");b.target.L()},a));return b}
function ly(a){Sg(a.B,!1);a.M().appendChild(a.B);vm(a.B,"click",a.Zi,!1,a);vm(a.B,"touchend",a.Zi,!1,a);a.M().appendChild(a.H);Sg(a.k,!1);a.M().appendChild(a.k);a.M().appendChild(a.A);my(a);a.context.j.listen(a.A,"click",a.fr,a);a.context.j.listen(a.A,"touchend",a.fr,a);a.context.j.listen(a.A,"mouseover",function(){ny(this);this.Zb&&this.Zb.Cm.stop()},a);a.context.j.listen(a.A,"mouseout",function(){this.Zb&&this.Zb.Cm.start(200)},a);a.context.Oa.subscribe("external_overlay_activated",a.Zi,a);oy(a,
Ow(a))}f=gy.prototype;f.zs=function(a){var b=a&&a.data&&a.data.card_type;b&&hy[b]&&this.add(new hy[b](a.id,a.data,a.Fa))};
f.add=function(a){this.U||(ly(this),this.U=!0);var b=(new X(["button",{type:"button",style:"background-image: url("+a.C+");"}])).M();Sg(b,!1);var c,d;switch(a.type){case "associated":case "fundraising":case "merch":case "product":if(c=by(this.C,a))d=c.M(),this.Md(d,a.url,a.id,a.Fa,a.j.click);break;case "tip":(c=cy(this.C,a,w(this.Kd,this)))&&(d=c.M());break;case "video":if(c=dy(this.C,a))d=c.M(),this.Md(d,a.url,a.id,a.Fa,a.j.click);break;case "playlist":if(c=ay(this.C,a))d=c.M(),this.Md(d,a.url,a.id,
a.Fa,a.j.click);break;case "channel":if(c=Zx(this.C,a))d=c.M(),this.Md(d,a.url,a.id,a.Fa,a.j.click);break;case "poll":(c=ey(this.C,a))&&(d=c.M())}if(d){var e={jb:a,Hg:d,Jg:b},g=yb(this.j,e,function(a,b){return a.jb.startMs-b.jb.startMs});0>g&&(g=-(g+1));vb(this.j,g,0,e);Kd(this.H,b,g);1<this.j.length&&Uw(this.H);c.Y(this.k,g);c=y(this.RB,e);this.context.j.listen(b,"click",c,this);this.context.j.listen(d,"click",c,this);this.context.j.listen(b,"touchend",c,this);this.context.j.listen(d,"touchend",
c,this);Mw(this,a.startMs,a.endMs,a.id,y(this.SB,a),this.TB);oy(this,Ow(this))}};f.Kd=function(a,b,c,d,e,g){ce(a,"article","iv-card-active")?gy.I.Kd.call(this,a,b,c,d,e,g):g.preventDefault()};f.RB=function(a,b){var c=jb(this.j,function(b){return b===a});py(this,c,!0);ce(b.target,"button","yt-uix-button")||b.stopPropagation()};f.SB=function(){++this.N;qy(this)?ny(this):this.G=!0;fh(this.A,"iv-cards-notif-inactive")};f.TB=function(){--this.N;0==this.N&&O(this.A,"iv-cards-notif-inactive")};
function ry(a,b){if(!a.Zb){a.Ge();var c=new X(["div","",["span","",b.D],["span","iv-card-image",{style:"background-image: url("+b.C+");"}]]);a.De.innerHTML="";Id(a.De,Nd(c.M()))}}function ny(a){if(!a.Zb){var b=sy(a);if(!(0>b)){var c=a.j[b].jb;ry(a,c);Mg(a.De,"");var d=a.De.offsetWidth;(new aw(a.De,0,d,400,gw)).play();Kw(a.context.logger,8,c.Fa,void 0,c.j.Eq);a.Zb={Cm:new Hv(function(){this.Zb&&((new aw(this.De,d,0,200,gw)).play(),this.Zb=null)},c.teaserDurationMs,a),uy:b};a.Zb.Cm.start()}}}
function my(a){a.Ge();ky(a.A)}
f.fr=function(a){a&&a.stopPropagation();if(!this.D){a=new Kv;Lg(this.M(),this.context.o.re);for(var b=0;b<this.j.length;++b){var c=this.j[b].Jg;a.add(ky(c));Rg(c,0);Sg(c,!0);a.add(iy(c,b*(c.offsetWidth+15)))}a.add(jy(this.A));a.add(ky(this.B));for(b=0;b<this.j.length;++b)a.add(ky(this.j[b].Hg));this.D=!0;Cm(a,"end",this.Np,!1,this);a.play();this.F=z();this.k.style.width=445*this.j.length+"px";Sg(this.k,!0);Rg(this.k,1);this.Ge();a=this.Zb?this.Zb.uy:Math.max(0,sy(this));py(this,a,!1);a=this.j[a].jb;
this.Zb?Kw(this.context.logger,9,a.Fa,void 0,a.j.Ei):Kw(this.context.logger,12,a.Fa,void 0,a.j.Ei);this.J=this.context.j.listen(this.M(),"keydown",this.vy,this)}};f.Np=function(){this.D=!1};f.vy=function(a){switch(a.keyCode){case 27:this.Zi();a.preventDefault();break;case 37:0<this.o&&py(this,this.o-1,!0);a.preventDefault();break;case 39:this.o+1<this.j.length&&py(this,this.o+1,!0);a.preventDefault();break;case 9:py(this,this.o+1<this.j.length?this.o+1:0,!0),a.preventDefault()}return!1};
f.Zi=function(a){a&&a.stopPropagation();if(!this.D){var b=new Kv;D(this.j,function(a){b.add(jy(a.Jg));b.add(iy(a.Jg,0))});b.add(jy(this.B));b.add(ky(this.A));b.add(jy(this.k,function(){Lg(this.M(),"","")},this));this.D=!0;Cm(b,"end",this.Np,!1,this);b.play();a={};a.interval=z()-this.F;var c=this.j[this.o];c&&Iw(this.context.logger,c.jb.Fa,a,c.jb.j.close);this.J&&this.context.j.Aa(this.J)}};f.Yw=function(){"none"!=this.k.style.display&&this.context.k.pauseVideo()};
function py(a,b,c){var d=a.j[b];a.R.focus();if(a.o!=b){if(0<=a.o){var e=a.j[a.o];fh(e.Jg,"yt-uix-button-toggled");fh(e.Hg,"iv-card-active")}a.o=b;O(d.Jg,"yt-uix-button-toggled");O(d.Hg,"iv-card-active");iy(a.k,ty(a).x).play();b={};b.nav=c?"1":"0";Dw(a.context.logger,d.jb.Fa,b,d.jb.j.Vp)}}function ty(a){var b=Ow(a),c=b.right-b.left,b=b.bottom-b.top,d=Og(a.k);return new Lc(445*-(isNaN(void 0)?a.o||0:NaN)+(c-445)/2,(b-d.height+(1<a.j.length?63:0))/2)}
f.Ge=function(){var a=Ow(this);a&&(oy(this,a),Tw(this.k)&&(Lg(this.M(),this.context.o.re),Bg(this.k,ty(this))),Bg(this.M(),a.left,a.top))};f.xe=function(a){qy(this,a)&&this.G&&(this.G=!1,ny(this))};function oy(a,b){var c=(b?445<b.right-b.left&&243<b.bottom-b.top:!1)&&!!a.j.length;Sw(a.M(),c)}function qy(a,b){return 2==Vq(a.context.k.app).getPlayerType()?1==(isNaN(b)?a.context.k.getAdState():b):1==(isNaN(b)?a.context.k.getPlayerState():b)}
function sy(a){var b=1E3*a.context.k.getCurrentTime();return lb(a.j,function(a){return a.jb.startMs<=b&&b<a.jb.endMs})};function uy(a,b){U.call(this);this.j=a;var c=Qd(this.j)?this.j:this.j?this.j.body:null;c&&Tg(c);this.k=vm(this.j,Vc?"DOMMouseScroll":"mousewheel",this,b)}A(uy,U);
uy.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.j;if("mousewheel"==a.type){c=1;if(Uc||Wc&&(Zc||gd("532.0")))c=40;d=vy(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=vy(-a.wheelDeltaX,c),c=vy(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),n(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ha(this.o)&&Kc(b,-this.o,this.o);ha(this.A)&&Kc(c,-this.A,this.A);b=new wy(d,a);this.T(b)};function vy(a,b){return Wc&&(Yc||$c)&&0!=a%b?a:a/b}
uy.prototype.L=function(){uy.I.L.call(this);Em(this.k);this.k=null};function wy(a,b){im.call(this,b);this.type="mousewheel";this.detail=a}A(wy,im);var xy=16/9,yy=4/3,Tq=[.25,.5,1,1.25,1.5,2];function zy(a,b,c){this.j=a;this.B=b;this.k=c}function Ay(a,b){var c=By(a,b.url,b.id),d=b.o&&b.o["iv-blob-subscribe"]?["div","iv-blob-subscribe"]:Cy(b),c=new X(["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.F+");"}],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],d]]),e=c.M();Ib(b.o,function(a,b){var c=sd(b,e);D(c,function(b){b.innerHTML=a})},c);Gv(a.j.j,e,"click",y(a.o,b),"iv-click-target",a);return c}
function Dy(a,b){var c=By(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],["img",{src:b.o,alt:""}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Of("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],Cy(b)]],c=new X(c),d=c.M();Ey(a,d,b);return c}
function Fy(a,b){var c=["ul","yt-uix-form-list-option"];ub(c,E(b.options,function(a){return["li","",["label","iv-click-target",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio",value:a.index.toString()}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=["article","iv-card-poll",["div","iv-card-content",["h2","",b.title],["form","",c,["button",["yt-uix-button","yt-uix-button-size-default","yt-uix-button-primary"],["span","yt-uix-button-content",
Of("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new X(c),d=c.M();Gv(a.j.j,d,"click",y(a.A,b),"yt-uix-button",a);return c}function Gy(a,b){var c=By(a,b.url,b.id),c=Hy(b,c),c=new X(c),d=c.M();Ey(a,d,b);return c}function Iy(a,b){var c=By(a,b.url,b.id),c=Hy(b,c),c=new X(c),d=c.M();Gv(a.j.j,d,"click",y(a.C,b),"iv-click-target",a);return c}
function Jy(a,b){var c=By(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],["img",{src:b.A,alt:""}],["span","iv-card-video-duration",b.o]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],Cy(b)]],c=new X(c),d=c.M();Ey(a,d,b);return c}function Cy(a){if(!a.k||0==a.k.length)return"";var b=["ul","iv-card-meta-info"];D(a.k,function(a){b.push(["li","",a])});return b}
function Hy(a,b){var c=a.displayDomain?["a",{href:b},a.displayDomain]:"",d=["iv-card-action"],e={href:b},g=a.A;a.o&&(d.push("iv-card-action-icon"),e.style="background-image: url("+a.o+");");var h=["a",d,e,g];a.showLinkIcon&&(h=["a",d,e,["span","",g],"\u00a0",["span","iv-card-link-icon"]]);return["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+a.imageUrl+");"},c],["div",["iv-card-content","iv-click-target"],["h2","",a.title],h]]}
zy.prototype.o=function(a,b){ce(b.target,"","iv-blob-subscribe")?b.preventDefault():this.k(b.target,a.url,a.id,a.Fa,a.j.click,b)};zy.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;t:{if(d=b.currentTarget.form.elements.radio){if(d.type){d=pj(d);break t}for(var e=0;e<d.length;e++){var g=pj(d[e]);if(g){d=g;break t}}}d=null}Dj(this.j.A.xh,{Me:{action_poll_vote:1},Ab:{poll_id:c,index:d}})};
zy.prototype.C=function(a,b){b.stopPropagation();b.preventDefault();this.j.k.pauseVideo();this.j.k.isFullscreen()&&fy(this.j.k.app);Hw(this.j.logger,a.Fa,a.j.click);rx(a.G,a.F,a.B)};function By(a,b,c){return b?zw(b,c,a.j.A.videoId,a.j.o):null}function Ey(a,b,c){a.B(b,c.url,c.id,c.Fa,c.j.click)};function Ky(a,b){Lw.call(this,a,b);this.Yk=this.k=this.H=this.N=!1;this.D=new Hv(t,b.o.Nc?4E3:3E3);this.B=new zy(b,w(this.Md,this),w(this.Kd,this));var c=["header","iv-drawer-header",Of("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]];this.G=(new X(c)).M();this.Od=(new X(["section","iv-drawer"])).M();this.o=(new X(["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","",["span"]]])).M();this.C=ud("iv-drawer-teaser-text",this.o);this.Ac=null;
this.A=[];this.J=this.j=null;b.o.experiments.pv&&Mw(this,1E3*b.A.lengthSeconds-5E3,2147483647,"",y(this.pp,null))}A(Ky,Lw);var Ly={associated:ax,channel:Yw,fundraising:ax,merch:ax,playlist:Zw,poll:$w,product:ax,tip:bx,video:cx};function My(a){a=ee(a.M(),"ytp-iv-player-content");if(!a)return!1;a=Og(a);return 177<a.width&&177<a.height}
function Ny(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.o.experiments.qv&&b.push("iv-drawer-teaser-style-exp");eh(a.M(),b);a.M().appendChild(a.o);a.M().appendChild(a.G);a.M().appendChild(a.Od);Gv(a.context.j,a.G,"click",a.AC,"iv-drawer-close-button",a);b=new uy(a.Od);vm(b,"mousewheel",function(){this.D.start()},!1,a);a.context.j.listen(a.Od,"scroll",a.BC,a);a.context.j.listen(a.o,"click",a.CC,a);a.context.j.listen(a.o,"mouseover",function(){this.Ac&&this.Ac.stop()},a);a.context.j.listen(a.o,
"mouseout",function(){this.Ac&&this.Ac.start()},a);a.context.Oa.subscribe("onHideControls",function(){this.Yk=!0},a);a.context.Oa.subscribe("onShowControls",function(){this.Yk=!1},a)}f=Ky.prototype;f.zs=function(a){var b=a&&a.data&&a.data.card_type;b&&Ly[b]&&this.add(new Ly[b](a.id,a.data,a.Fa))};
f.add=function(a){this.N||(Ny(this),this.N=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=Gy(this.B,a);break;case "tip":b=Iy(this.B,a);break;case "video":b=Jy(this.B,a);break;case "playlist":b=Dy(this.B,a);break;case "channel":b=Ay(this.B,a);break;case "poll":b=Fy(this.B,a)}if(b){c=b.M();c={jb:a,Hg:c,Cs:!1,Rq:!1};var d=yb(this.A,c,function(a,b){return a.jb.startMs-b.jb.startMs});0>d&&(d=-(d+1));vb(this.A,d,0,c);b.Y(this.Od,d);this.Ge();b=1E3*this.context.k.getCurrentTime();
5E3>b&&b>a.startMs&&this.qt(c);Mw(this,a.startMs,a.startMs+1,a.id,y(this.qt,c))}};f.Qp=function(){this.Ac&&(fh(this.o,"iv-drawer-teaser-active"),M(w(function(){this.Ac=null},this),330))};f.pp=function(a){a&&a.stopPropagation();this.k||(this.Qp(),O(this.M(),"iv-drawer-open"),this.k=!0,O(this.context.k.Ma(),"ytp-iv-drawer-open"),this.F=z(),Jw(this.context.logger,7),D(this.A,function(a){a.Rq||(a.Rq=!0,Dw(this.context.logger,a.jb.Fa,Oy(this,!0),a.jb.j.Vp))},this))};
f.BC=function(){P(this.M(),"iv-drawer-scrolled",0<this.Od.scrollTop)};f.AC=function(a){Jw(this.context.logger,4,Py(this).j.close);a&&a.stopPropagation();this.k&&(fh(this.M(),"iv-drawer-open"),this.k=!1,fh(this.context.k.Ma(),"ytp-iv-drawer-open"),Jw(this.context.logger,10))};f.CC=function(a){if(!this.k){var b=Oy(this);if(this.j){var c=Py(this);this.Ac?Kw(this.context.logger,9,c.Fa,b,c.j.Ei):Kw(this.context.logger,12,c.Fa,b,c.j.Ei)}else Jw(this.context.logger,12);this.pp(a)}};
f.qt=function(a){if(!this.Ac){this.j!=a&&(this.j=a,Ud(this.C,a.jb.D));var b;if(b=Tw(this.M()))2==Vq(this.context.k.app).getPlayerType()?b=1==(isNaN(void 0)?this.context.k.getAdState():void 0):(b=isNaN(void 0)?this.context.k.getPlayerState():void 0,b=1==b||0==b&&0===this.context.k.getCurrentTime());if(b&&!this.Ac&&!this.k&&this.j){O(this.o,"iv-drawer-teaser-active");b=this.j.jb;this.Ac=new Hv(this.Qp,580+b.teaserDurationMs,this);this.Ac.start();var c=Oy(this);Kw(this.context.logger,8,b.Fa,c,b.j.Eq);
this.context.o.experiments.Ak&&(this.J=bh(this.C))}(!this.k||!this.D.isActive()&&this.Yk)&&Qy(this,a)}};function Qy(a,b){var c=new Uv([0,a.Od.scrollTop],[0,b.Hg.offsetTop],600,gw);a.context.j.listen(c,"animate",function(a){this.Od.scrollTop=a.y},a);a.context.j.listen(c,"finish",function(a){this.Od.scrollTop=a.y},a);c.play()}
f.Ge=function(){var a=My(this)&&!!this.A.length;Sw(this.M(),a);a&&(this.H||(Jw(this.context.logger,11),this.H=!0),D(this.A,function(a){a.Cs||(a.Cs=!0,Kw(this.context.logger,11,a.jb.Fa))},this));this.context.o.experiments.Ak&&Ry(this)};function Py(a){return a.j&&a.j.jb||a.A[0]&&a.A[0].jb}
function Ry(a){var b=a.context.o.re;if(b){var c=360*xy,b=Kc(b.width/b.height>=c/360?b.height/360:b.width/c,1,1.3),b=Math.round(10*b)/10,c=12;switch(b){case 1.1:c=13;break;case 1.2:c=14;break;case 1.3:c=15}c!==bh(a.C)&&wg(a.C,"font-size",c+"px")}}function Oy(a,b){var c;if(a.context.o.experiments.Ak){c={};var d=b?a.J:bh(a.C);d&&(c["a-fs"]=d)}return c}f.Kd=function(a,b,c,d,e,g){var h=Oy(this,!0);h&&"a-fs"in h&&(d+="&a-fs="+h["a-fs"]);Ky.I.Kd.call(this,a,b,c,d,e,g)};function Sy(a,b,c){Lw.call(this,a,b);this.annotation=c;this.isActive=!1}A(Sy,Lw);Sy.prototype.Gj=function(){Sy.I.Gj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Mw(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.hide)};function Ty(a,b,c){Sy.call(this,a,b,c);this.j=null;this.o=!1;this.yj=null;this.rd=!1;this.k=0}A(Ty,Sy);
function Uy(a){O(a.M(),"iv-branding");var b=a.annotation.data;a.k=b.image_width;a.j=I("img",{src:b.image_url,"class":"branding-img iv-click-target iv-view-target hid",width:b.image_width,height:b.image_height});var c=I("div","branding-img-container",a.j);a.M().appendChild(c);var d=I("div","iv-branding-context-name");Ud(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.annotation.o?e.innerHTML=a.annotation.o:b.num_subscribers&&Ud(e,b.num_subscribers);c=I("div","iv-branding-context-subscribe-caret");
d=I("div",["branding-context-container-inner","iv-view-target"],c,d,e);e=I("div","branding-context-container-outer",d);wg(e,"right",a.k+"px");a.M().appendChild(e);a.Md(a.M(),Vy(a.annotation),a.annotation.id,a.annotation.Fa);a.yj=new Hv(y(function(a){var b=Og(a.parentElement);(new $v(a.parentElement,[b.width,b.height],[0,0],200,fw)).play();this.rd=!1},d),500,a);Gv(a.context.j,a.M(),"mouseover",y(function(a,b,c){this.yj.stop();if(!this.rd){var d=Og(a);Mg(a,d.width);c=Math.min(d.height,c);c=Math.max(c/
2-10,0);Bg(b,d.width,c);this.rd=!0;b=9;d=Og(a);c=Og(a.parentElement);(new $v(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,fw)).play()}},d,c,b.image_height),"iv-view-target",a);Gv(a.context.j,a.M(),"mouseout",w(a.yj.start,a.yj),"iv-view-target",a)}
Ty.prototype.show=function(){if(!this.isActive){Ty.I.show.call(this);this.o||(Uy(this),this.o=!0);Dw(this.context.logger,this.annotation.Fa);Uw(this.M());this.isActive=!0;var a=this.j,b,c=Qg(a).width,d=ha(void 0)?void 0:c;b=b||0;Bg(a,d);b=new Yv(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,fw);vm(b,"begin",y(Uw,a));b.play()}};Ty.prototype.hide=function(){this.isActive&&(Vw(this.M()),this.isActive=!1)};function Wy(a,b,c,d,e,g){this.j=a;this.o=b;this.A=c;this.logger=d;this.k=e;this.Oa=g};function Xy(a){this.value=a};function Yy(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Zy={CLOSE:"close",NJ:"openUrl",PAUSE:"pause",YG:"subscribe"},$y={CLICK:"click",CLOSE:"close",DI:"hidden",iK:"rollOut",VG:"rollOver",WG:"shown"};function az(a){if(!a)return null;var b=lw(a.type,Zy),c=lw(a.trigger,$y),d=vw(hw(a.url));hw(a.subscribeData);(a=hw(a.duration))?(a=pw(a.value),a=new Xy(a)):a=null;return b?new Yy(b,c,d,a):null};function bz(a,b,c,d,e,g,h,k,l,p,u,x,L,la){this.B=a;this.A=b;this.C=c;this.D=d;this.k=e;this.H=g;this.o=h;this.textAlign=k;this.J=l;this.F=p;this.G=u;this.effects=x;this.j=L;this.K=la}
function cz(a){if(!a)return null;var b=jw(a.fgColor,"#1A1A1A"),c=jw(a.bgColor,"#FFF"),d=jw(a.borderColor,"#000"),e=ow(a.borderWidth,10,0,5,!1,0),g=ow(a.bgAlpha,10,0,1,!1,.8);ow(a.borderAlpha,10,0,1,!1,.2);ow(a.gloss,16,0,255,!1,0);var h=jw(a.highlightFontColor,"#F2F2F2"),k=ow(a.highlightWidth,10,0,5,!1,3),l=kw(a.textAlign),p=ow(a.textSize,10,3.3,30.1,!0,3.6107),u=kw(a.fontWeight),x=rw(a.padding),L=sw(a.effects),la=ow(a.cornerRadius,10,0,10,!0,0);var Z=hw(a.gradient);if(Z){a=ow(Z.x1,10,0,100,!0,0);
var fa=ow(Z.y1,10,0,100,!0,0),qa=ow(Z.x2,10,0,100,!0,100),Ne=ow(Z.y2,10,0,100,!0,100),je=jw(Z.color1,"#FFF"),Qs=jw(Z.color2,"#000"),aA=ow(Z.opacity1,10,0,100,!0,100),Z=ow(Z.opacity2,10,0,100,!0,0);a=new dz(a,fa,qa,Ne,je,Qs,aA,Z)}else a=null;return new bz(b,c,d,e,g,h,k,l,p,u,x,L,la,a)}function dz(a,b,c,d,e,g,h,k){this.B=a;this.D=b;this.C=c;this.F=d;this.j=e;this.k=g;this.o=h;this.A=k};function ez(a,b){this.j=a;this.videoId=b};var fz={vL:"xx",wL:"xy",zL:"yx",AL:"yy"};function gz(a,b,c){var d=a.D,e=a.F,g=a.j?a.j:"xy",h=hz(c,a.A,g);a=iz(c,a.o,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new mg(0==d?640*b.left*h/100:0<d?d:c.width+d-g,0==e?360*b.top*a/100:0<e?e:c.height+e-k,g,k)}function hz(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function iz(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function jz(a,b,c,d,e,g,h,k,l,p,u){this.x=a;this.y=b;this.B=c;this.h=d;this.k=e;this.C=g;this.D=h;this.F=k;this.A=l;this.o=p;this.j=u}function kz(a,b){if(!a)return null;var c=nw(a.x,0),d=nw(a.y,0),e=nw(a.w,0),g=nw(a.h,0),h=pw(a.t),k=nw(a.scaleSlope,1);return b(c,d,e,g,h,nw(a.d,0),nw(a.px,0),nw(a.py,0),nw(a.scaleSlopeX,k),nw(a.scaleSlopeY,k),lw(a.scaleDimension,fz,"xy"))}
function lz(a,b,c){c=c?lz(c,b):null;a=gz(a,new mg(a.x,a.y,a.B,a.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);c=a.clone();b&&!b.contains(a)&&(a.width<b.width?c.left=Kc(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Kc(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function mz(a){return a?kz(a,function(a,c,d,e,g,h,k,l,p,u,x){return new jz(a,c,d,e,g,h,k,l,p,u,x)}):null};function nz(a,b,c,d,e,g,h,k,l,p,u,x,L){jz.call(this,a,b,c,d,e,k,l,p,u,x,L);this.G=g;this.H=h}A(nz,jz);function oz(a){if(!a)return null;var b=nw(a.sx,0),c=nw(a.sy,0);return kz(a,function(a,e,g,h,k,l,p,u,x,L,la){return new nz(a,e,g,h,k,b,c,l,p,u,x,L,la)})};function pz(a,b,c,d){this.type=a;this.k=b;this.j=c;this.o=d}var qz={HG:"anchored",cK:"rect",qK:"shapeless"};function rz(a){if(!a)return null;var b=lw(a.type,qz,"rect"),c=qw(a.rectRegion,mz),d=qw(a.anchoredRegion,oz);a=qw(a.shapelessRegion,mz);return new pz(b,c,d,a)}function sz(a){return a.k&&a.k.length?a.k[0]:a.j&&a.j.length?a.j[0]:a.o&&a.o.length?a.o[0]:null};function tz(a,b){this.k=a;this.j=b};function uz(a,b){this.state=a;this.j=b}var vz={CLOSED:"closed",RJ:"playerControlShow",VG:"rollOver",WG:"shown"};function wz(a){if(!a)return null;var b=lw(a.state,vz);a=iw(a.ref);return b?new uz(b,a):null};function xz(a,b,c,d){this.j=a||[];this.o=b||[];this.A=c;this.k=d;this.value=!1}function yz(a){if(!a)return null;var b=qw(a.condition,wz),c=qw(a.notCondition,wz),d=mw(a.show_delay,!1);a=mw(a.hide_delay,!1);return b||c?new xz(b,c,d,a):null}function zz(a,b,c){D(a.j,y(b,!1),c);D(a.o,y(b,!0),c)};function Az(a,b,c,d,e,g,h,k,l,p,u,x,L,la,Z,fa){this.id=a;this.author=b;this.type=c;this.style=d;this.C=e;this.k=g;this.B=h||[];this.F=k||[];this.j=l;this.G=p;this.A=u;this.D=x;this.o=la;this.data=Z;this.Fa=fa}
var Bz={HG:"anchored",JG:"branding",fI:"channel",lI:"cta",MI:"highlightText",cJ:"label",TJ:"playlist",UJ:"popup",yK:"speech",YG:"subscribe",PK:"title",VIDEO:"video",qL:"vote",tL:"website"},Cz={JG:"branding",XH:"card",LI:"highlight",Ku:"image",MARKER:"marker",PAUSE:"pause",ZJ:"promotion",Rs:"survey",TEXT:"text",uL:"widget"},Dz={mL:"video_relative",SJ:"player_relative"};
function Ez(a){if(!a)return null;var b=iw(a.id),c=iw(a.author),d=lw(a.type,Cz),e=lw(a.style,Bz),g=kw(hw(a.TEXT)),h=kw(a.data),h=0!=h.length?dg(h):{},k;var l=hw(a.segment);l?(iw(l.timeRelative),k=iw(l.spaceRelative),k=(l=qw(l.movingRegion,rz))?new tz(k,l):null):k=null;var l=qw(a.action,az),p=qw(a.trigger,yz),u=cz(hw(a.appearance));u||(u=cz({}));var x=lw(a.coordinate_system,Dz,"video_relative"),L;L=(L=hw(a.image_source))?new ez(kw(L.standard_url),kw(L.video_id)):null;var la=mw(a.closeable,!0),Z=kw(a.html_blob);
a=kw(a.log_data);return b&&d?new Az(b,c,d,e,g,k,l,p,u,x,L,la,0,Z,h,a):null}function Vy(a){return(a=Fz(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}Az.prototype.showLinkIcon=function(){return Gz(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function Hz(a){return Gz(a,function(a){return"click"==a.trigger})}function Gz(a,b){return hb(a.B,b,void 0)}function Iz(a,b,c){D(a.B,b,c)}function Fz(a,b){return F(a.B,b,void 0)}function Jz(a,b,c){D(a.F,b,c)}
function Kz(a,b){E(a.F,b,void 0)}function Lz(a){return(a=Mz(a))?sz(a):null}function Mz(a){a.k?(a=a.k,a=a.j.length?a.j[0]:null):a=null;return a}function Nz(a,b){var c=Lz(a);return c&&b?iz(b,c.o,c.j?c.j:"xy"):1};function Oz(a,b,c){Sy.call(this,a,b,c);this.bj=this.k=this.A=!1;this.o=5E3;this.j=null;this.Mf=I("div","iv-promo-contents")}A(Oz,Sy);
function Pz(a){var b=a.annotation.data;a.o=b.collapse_delay_ms||a.o;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=I("div","iv-promo-img");var e=I("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration&&!b.is_live?(e=I("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=I("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=I("div","iv-promo-txt"),
g,h,k;switch(a.annotation.style){case "cta":case "website":g=I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);O(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));b.is_live&&(g=h,h=I("span",["yt-badge","iv-promo-badge-live","iv-click-target"],Of("YTP_LIVE_NOW")));O(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
I("p",null,I("strong",null,b.text_line_1)),h=I("p",null,b.text_line_2),k=I("div","iv-promo-button"),b=I("button",["yt-uix-button","yt-uix-button-primary"],I("span","yt-uix-button-content",b.button_text)),a.context.j.listen(b,"click",function(a){a.stopPropagation();Hw(this.context.logger,this.annotation.Fa,null,{contest_vote:"1"});var b=this.annotation.data;a=ud("iv-promo-txt",this.Mf);var c=ud("iv-promo-button",this.Mf),d=I("div",["iv-promo-txt","iv-click-target"]),e=I("p","iv-click-target",I("strong",
null,b.text_line_3)),b=I("p","iv-click-target",b.text_line_4);Id(d,e,b);Ld(c);Md(d,a);fh(this.M(),"iv-promo-with-button");this.Md(this.Mf,Vy(this.annotation),this.annotation.id,this.annotation.Fa)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Mf.appendChild(e);k&&a.Mf.appendChild(k);g=I("div","iv-promo-actions");h=I("div","iv-promo-expand");g.appendChild(h);a.context.j.listen(a.M(),"mouseover",a.Ds,a);a.context.j.listen(h,"touchend",function(a){a.stopPropagation();
this.Ds();this.bj=!1},a);a.context.j.listen(a.M(),"mouseout",a.B,a);h=I("div","iv-promo-close");g.appendChild(h);Qz(a,w(function(){this.hide()},a),h);eh(a.M(),c);d&&Hd(a.M(),d);Hd(a.M(),a.Mf);Hd(a.M(),g);a.Md(a.M(),Vy(a.annotation),a.annotation.id,a.annotation.Fa)}
Oz.prototype.show=function(){this.isActive||(Oz.I.show.call(this),this.A||(Pz(this),this.A=!0),Uw(this.M()),this.annotation&&this.annotation.Fa&&Dw(this.context.logger,this.annotation.Fa),fh(this.M(),"iv-promo-inactive"),this.isActive=!0,this.j&&(on(this.j),this.j=null),Rz(this),Sz(this,this.o))};Oz.prototype.hide=function(){this.isActive&&(O(this.M(),"iv-promo-inactive"),this.isActive=!1)};Oz.prototype.Ds=function(){this.bj=!0;Rz(this);Sz(this,500)};Oz.prototype.B=function(){this.bj=!1;Tz(this)};
function Tz(a){a.k||a.bj||a.j||(O(a.M(),"iv-promo-collapsed"),a.k=!0)}function Rz(a){a.k&&(fh(a.M(),"iv-promo-collapsed"),a.k=!1)}function Sz(a,b){a.j||(a.j=nn(function(){this.j&&(on(this.j),this.j=null);Tz(this)},b,a))}function Qz(a,b,c){function d(a){Iw(this.context.logger,this.annotation.Fa);b(a);a.stopPropagation()}a.context.j.listen(c,"click",w(d,a));a.context.j.listen(c,"touchend",w(d,a))};var Uz={jJ:1,kJ:2,lJ:3};function Vz(a,b,c){this.j={};this.k=!1;this.B="ivTrigger:"+a;this.o=c;zz(b,function(a,b){var c=Wz(b.state,b.j);this.o.subscribe(c,w(this.A,this,c,a));this.j[c]=a},this)}Vz.prototype.A=function(a,b,c,d){this.j[a]=b?!c:c;a=Lb(this.j,function(a){return a});this.k!=a&&(this.k=a,this.o.publish(this.B,a,d))};function Wz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Xz(a,b,c){this.o=a;this.annotation=b;this.j=c;this.k=null;this.B=this.isVisible=!1;Yz(b,a)}function Yz(a,b){Kz(a,function(c){return new Vz(a.id,c,b)})}Xz.prototype.hide=function(){this.isVisible=!1;this.o.unsubscribe("onResize",this.A,this);this.j&&this.j.hide()};Xz.prototype.show=function(){this.isVisible=!0;this.j&&this.j.show();this.o.subscribe("onResize",this.A,this)};
Xz.prototype.destroy=function(){this.o.unsubscribe("onResize",this.A,this);if(this.j){var a=this.j;a.F.removeAll();a.k&&Ld(a.k);a.o&&a.o.M()&&Ld(a.o.M())}Zz(this)};function Zz(a){a.k&&(a.k.stop(),a.k=null)}Xz.prototype.A=function(){this.j&&$z(this.j)};function bA(){};function cA(a,b,c,d,e,g,h,k){this.B=a;this.D=b;this.C=c;this.F=d;this.j=e;this.k=g;this.o=n(h)?h:null;this.A=n(k)?k:null}A(cA,bA);function dA(){this.ga=[];this.ka=[];this.zd=[]}dA.prototype.jg=null;dA.prototype.Yc=null;dA.prototype.kk=!0;var eA=[2,2,6,6,0];f=dA.prototype;f.clear=function(){this.ga.length=0;this.ka.length=0;this.zd.length=0;delete this.jg;delete this.Yc;delete this.kk;return this};function fA(a,b,c){0==bb(a.ga)?a.zd.length-=2:(a.ga.push(0),a.ka.push(1));a.zd.push(b,c);a.Yc=a.jg=[b,c]}
f.ab=function(a){var b=bb(this.ga);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ga.push(1),this.ka.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.zd.push(c,d)}this.ka[this.ka.length-1]+=b/2;this.Yc=[c,d]};f.close=function(){var a=bb(this.ga);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ga.push(4),this.ka.push(1),this.Yc=this.jg);return this};
function gA(a,b,c,d,e){var g=a.Yc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+e)*Math.PI/180),h=a.Yc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+e)*Math.PI/180);a.ga.push(3);a.ka.push(1);a.zd.push(b,c,d,e,g,h);a.kk=!1;a.Yc=[g,h]}function hA(a,b){for(var c=a.zd,d=0,e=0,g=a.ga.length;e<g;e++){var h=a.ga[e],k=eA[h]*a.ka[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ga=this.ga.concat();a.ka=this.ka.concat();a.zd=this.zd.concat();a.jg=this.jg&&this.jg.concat();a.Yc=this.Yc&&this.Yc.concat();a.kk=this.kk;return a};f.isEmpty=function(){return 0==this.ga.length};function iA(a,b){this.G=a;this.H=null==b?1:b}A(iA,bA);function jA(a,b){this.j=a;this.k=b};function kA(){}ba(kA);kA.prototype.j=0;function lA(a){U.call(this);this.K=a||od();this.wa=null;this.Se=!1;this.j=null;this.B=void 0;this.C=this.F=this.G=null}A(lA,U);f=lA.prototype;f.sE=kA.getInstance();f.getId=function(){return this.wa||(this.wa=":"+(this.sE.j++).toString(36))};f.M=function(){return this.j};f.ji=function(a){if(this.G&&this.G!=a)throw Error("Method not supported");lA.I.ji.call(this,a)};f.Yt=function(){this.j=this.K.createElement("div")};
f.yh=function(){mA(this,function(a){a.Se&&a.yh()});this.B&&this.B.removeAll();this.Se=!1};f.L=function(){this.Se&&this.yh();this.B&&(this.B.dispose(),delete this.B);mA(this,function(a){a.dispose()});this.j&&Ld(this.j);this.G=this.j=this.C=this.F=null;lA.I.L.call(this)};f.Ue=function(){return this.j};function mA(a,b){a.F&&D(a.F,b,void 0)}
f.removeChild=function(a,b){if(a){var c=v(a)?a:a.getId();a=this.C&&c?Zb(this.C,c)||null:null;if(c&&a){Yb(this.C,c);pb(this.F,a);b&&(a.yh(),a.j&&Ld(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.G=null;lA.I.ji.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function nA(a,b,c,d,e){lA.call(this,e);this.width=a;this.height=b;this.A=c||null;this.H=d||null}A(nA,lA);nA.prototype.o=null;nA.prototype.Kh=function(){return this.Se?Ng(this.M()):ha(this.width)&&ha(this.height)?new H(this.width,this.height):null};function oA(a){var b=a.Kh();return b?b.width/(a.A?new H(a.A,a.H):a.Kh()).width:0}nA.prototype.resume=function(){};function pA(a,b){U.call(this);this.Ih=a;this.Zk=b;this[jm]=!1}A(pA,U);f=pA.prototype;f.Zk=null;f.Ih=null;f.M=function(){return this.Ih};f.addEventListener=function(a,b,c,d){vm(this.Ih,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Dm(this.Ih,a,b,c,d)};f.L=function(){pA.I.L.call(this);var a=this.Ih;if(a)if(km(a))a.removeAllListeners(void 0);else if(a=ym(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)Em(d[e])&&++b}};function qA(a,b,c,d){pA.call(this,a,b);a=this.Zk;b=this.M();c?(b.setAttribute("stroke",c.k),b.setAttribute("stroke-opacity",1),c=c.j,v(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/oA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Zk;a=this.M();if(d instanceof iA)a.setAttribute("fill",d.G),a.setAttribute("fill-opacity",d.H);else if(d instanceof cA){b="lg-"+d.B+"-"+d.D+"-"+d.C+"-"+d.F+"-"+d.j+"-"+d.k;var e=rA(c,b);if(!e){var e=sA(c,"linearGradient",
{x1:d.B,y1:d.D,x2:d.C,y2:d.F,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.j;ha(d.o)&&(g+=";stop-opacity:"+d.o);g=sA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.k;ha(d.A)&&(g+=";stop-opacity:"+d.A);d=sA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=tA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}A(qA,pA);function uA(a,b){pA.call(this,a,b)}A(uA,pA);function vA(a,b){pA.call(this,a,b)}A(vA,pA);function wA(a,b,c,d){qA.call(this,a,b,c,d)}A(wA,qA);function xA(a,b){pA.call(this,a,b)}A(xA,uA);xA.prototype.clear=function(){Jd(this.M())};function yA(a,b,c,d){qA.call(this,a,b,c,d)}A(yA,wA);function zA(a,b){pA.call(this,a,b)}A(zA,vA);function AA(a,b,c,d,e){nA.call(this,a,b,c,d,e);this.k={};this.N=Wc&&!gd(526);this.J=new sn(this)}var BA;A(AA,nA);var CA=0;function sA(a,b,c){a=a.K.j.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=AA.prototype;
f.Yt=function(){var a=sA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=sA(this,"g");this.D=sA(this,"defs");this.o=new xA(b,this);a.appendChild(this.D);a.appendChild(b);this.j=a;this.A&&(this.M().setAttribute("preserveAspectRatio","none"),this.N?this.nr():this.M().setAttribute("viewBox","0 0 "+(this.A?this.A+" "+this.H:"")))};
f.nr=function(){if(this.Se){var a=this.Kh();if(0==a.width)this.M().style.visibility="hidden";else{this.M().style.visibility="";var b=a.width/this.A,a=a.height/this.H;this.o.M().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Kh=function(){if(!Vc)return this.Se?Ng(this.M()):AA.I.Kh.call(this);var a=this.width,b=this.height,c=v(a)&&-1!=a.indexOf("%"),d=v(b)&&-1!=b.indexOf("%");if(!this.Se&&(c||d))return null;var e,g;c&&(e=this.M().parentNode,g=Og(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.M().parentNode,g=g||Og(e),b=parseFloat(b)*g.height/100);return new H(a,b)};f.clear=function(){this.o.clear();Jd(this.D);this.k={}};function DA(a,b,c,d){b=sA(a,"path",{d:EA(b)});c=new yA(b,a,c,d);a.o.M().appendChild(c.M())}
function EA(a){var b=[];hA(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(" ")}function tA(a,b,c){if(b in a.k)return a.k[b];var d="_svgdef_"+CA++;c.setAttribute("id",d);a.k[b]=d;a.D.appendChild(c);return d}
function rA(a,b){return b in a.k?a.k[b]:null}f.yh=function(){AA.I.yh.call(this);this.N&&this.J.Aa(FA(),"tick",this.nr)};f.L=function(){delete this.k;delete this.D;delete this.o;this.J.dispose();delete this.J;AA.I.L.call(this)};function FA(){BA||(BA=new ln(400),BA.start());return BA};function GA(a,b,c){this.j=a;this.k=0;this.D=b;this.F=c||70;this.o=!1}GA.prototype.start=function(a){this.C=z();this.k=a;this.B=this.C+this.k;this.o=!0;Uw(this.j);Lf(this.A);this.A=Kf(w(this.G,this),this.F)};GA.prototype.stop=function(){this.o=!1;Vw(this.j);this.A&&Lf(this.A)};
GA.prototype.G=function(){if(this.o){var a=z(),b;b=0==this.k||a>=this.B?0:1-(a-this.C)/this.k;var c=ud("countdowntimer-diminishing-pieslice",this.j),d=qh("svg",this.j);!d&&this.j.querySelectorAll&&(d=this.j.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new dA,g=d/2-5;fA(e,d/2,d/2);e.ab(d/2,5);gA(e,g,g,-90,360*-b);e.ab(d/2,d/2);e.close();c.setAttribute("d",EA(e));a>=this.B&&(this.stop(),this.D&&this.D())}};function HA(){R.call(this);this.element=this.label=null;this.priority=0;this.A=this.B=!1;this.k=null}A(HA,R);HA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};HA.prototype.Aa=function(a){this.element.Aa(a)};function IA(a,b,c,d){X.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.ja="inline-block";this.H=a;this.K=this.o=this.B=null;this.A=!1;this.listen("click",this.oE);this.listen("keypress",this.pE);this.H.Af(this.element,w(this.nE,this));mv(this,"button");b&&JA(this,b);c&&this.Xa(c);d&&(this.o=d)}A(IA,X);function JA(a,b){b&&""!=b&&(a.B&&fh(a.element,a.B),a.B=b,O(a.element,b))}function KA(a,b){a.K=b;iv(a.template,"tabindex",b)}f=IA.prototype;
f.nE=function(){return this.A?null:this.o?this.o:null};f.enable=function(){this.A=!1;this.template.update({disabled:null,tabindex:this.K});fh(this.element,"ytp-disabled")};f.disable=function(){this.A=!0;this.template.update({disabled:"true",tabindex:null});O(this.element,"ytp-disabled")};f.oE=function(a){this.A&&(a.stopImmediatePropagation(),a.preventDefault())};f.pE=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Ub("click")};
f.L=function(){this.H.Gn(this.element);this.H=null;IA.I.L.call(this)};function LA(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.o=a;this.k=-1;this.j=[];if(null!=b)for(yi(this.j),this.j=[],a=0;a<b.length;a++){var d=new IA(this.o);mv(d,"radio");this.j.push(d);c?d.qa(["div",b[a]]):d.qa(b[a]);0!=a&&O(d.M(),"ytp-segmented-control-other");MA(d,a==this.k);d.listen("click",y(this.JA,a),this);d.Y(this.element)}mv(this,"radiogroup")}A(LA,X);f=LA.prototype;
f.Y=function(a,b){LA.I.Y.call(this,a,b);for(var c=0,d=0;d<this.j.length;d++)c=Math.max(c,Ng(this.j[d].M()).width);if(c)for(d=0;d<this.j.length;d++)Mg(this.j[d].M(),c)};f.Ea=function(a){this.k=a;for(var b=0;b<this.j.length;b++)MA(this.j[b],b==a)};f.getSelected=function(){return this.k};function NA(a,b){for(var c=0;c<a.j.length;c++)KA(a.j[c],b)}
function MA(a,b){var c=a.M();b?(fh(c,"ytp-segmented-control-deselected"),O(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(fh(c,"ytp-segmented-control-selected"),O(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}f.JA=function(a){a!=this.k&&(this.Ea(a),this.Ub("change"))};f.L=function(){yi(this.j);this.j=[];LA.I.L.call(this)};function OA(a){HA.call(this);this.label=Y(0,"YTP_ANNOTATIONS");this.element=new LA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);this.element.Xa(this.label);NA(this.element,2200);this.priority=3;this.Ea(1)}A(OA,HA);OA.prototype.getSelected=function(){return this.element.getSelected()};OA.prototype.Ea=function(a){this.element.Ea(a)};function PA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}PA.prototype.clone=function(){return new PA(this.start,this.end)};function QA(){this.j=!1;this.B=this.o=null}function RA(a,b,c){a.o?(Lg(a.o.M(),b,c),a.o.clear()):(b=new AA(b,c,void 0,void 0,void 0),a.o=b,a.o.Yt(),a.B=I("div"),b=a.o.M(),a.B.appendChild(b));return a.o}QA.prototype.M=function(){return this.B};QA.prototype.k=function(){};function SA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Ib(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function TA(a,b){var c;c=":"+(kA.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function UA(a,b){var c=TA(a,SA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=TA(a,SA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},SA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=TA(a,SA("feComposite",{"in":c,in2:b,operator:"in"}));return TA(a,SA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function VA(a,b){var c=TA(a,SA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=TA(a,SA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=TA(a,SA("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=TA(a,SA("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=TA(a,SA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=TA(a,SA("feComposite",{operator:"out","in":c,in2:d}));return TA(a,SA("feComposite",{operator:"over","in":b,in2:c}))}
function WA(a,b){return b}function XA(a){var b=SA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";D(a,function(a){t:{switch(a){case "bevel":a=UA;break t;case "dropshadow":a=VA;break t}a=WA}c=a(b,c)});return b}function YA(a){a=fb(a,function(a){return a in ZA});Ab(a,function(a,c){return ZA[a]-ZA[c]});return a}function $A(a){return F(a,function(a){return"dropshadow"==a})?new lg(0,7,7,0):new lg(0,0,0,0)}var ZA={bevel:1,dropshadow:2};function aB(a,b,c,d,e){b=bB(b,c,d?d.j/2+1:0);DA(a,b,d,e)}function bB(a,b,c){var d=new dA;fA(d,a.left+b+c,a.top+c);d.ab(a.left+a.width-b-c,a.top+c);gA(d,b,b,-90,90);d.ab(a.left+a.width-c,a.top+a.height-b-c);gA(d,b,b,0,90);d.ab(a.left+b+c,a.top+a.height-c);gA(d,b,b,90,90);d.ab(a.left+c,a.top+b+c);gA(d,b,b,180,90);d.close();return d}function cB(a,b,c,d){var e=a.K;e?a=new cA(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.j,e.k,e.o,e.A):(b=dB(d,a.k),a=new iA(a.A,b));return a}
function dB(a,b){return a?Math.max(b,.9):b}function eB(a,b){var c=ng(a),d=$A(b);ja(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-=NaN);return og(c)}function fB(a,b,c){if(c.length&&(b=td("g",void 0,b),b.length)){var d=YA(c);if(d){c="effects:"+(d?d.join("|"):"");var e=rA(a,c);e?a=e:(d=XA(d),a=0<d.childNodes.length?tA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function gB(){QA.call(this);this.A=0}A(gB,QA);
gB.prototype.k=function(a,b,c){var d=a.j,e=d.D,g=this.j&&Hz(a),e=(e+=g?1:0)?new jA(e,g?d.B:d.C):null;if(g=Lz(a)){var h=lz(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=Mz(a))&&a.j?a.j:null)&&a.length?a[0]:null){var l;c=c?lz(c,b):null;a=gz(k,new mg(k.G,k.H,k.B,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new Lc(a.left,a.top);c=h.clone();a=new mg(l.x,l.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),p=Math.max(c.top+c.height,a.top+a.height);c.left=Math.min(c.left,
a.left);c.top=Math.min(c.top,a.top);c.width=g-c.left;c.height=p-c.top;c=eB(c,d.effects);a=RA(this,c.width,c.height);var g=cB(d,c.width,c.height,this.j),h=new mg(h.left-c.left,h.top-c.top,h.width,h.height),u=new Lc(l.x-c.left,l.y-c.top);this.A=17*iz(b,k.o,k.j?k.j:"xy");b=d.j;k=e?e.j/2:0;l=hB(h,u);var p=this.C(h,b,u,l),x=u.x,u=u.y,L=h.width,la=h.height,Z=h.left,h=h.top,fa=new dA;fA(fa,Z+b+k,h+k);"t"==l&&(fa.ab(p.start,h+k),fa.ab(x,u),fa.ab(p.end,h+k));fa.ab(Z+L-b-k,h+k);gA(fa,b,b,-90,90);"r"==l&&(fa.ab(Z+
L-k,p.start),fa.ab(x,u),fa.ab(Z+L-k,p.end));fa.ab(Z+L-k,h+la-b-k);gA(fa,b,b,0,90);"b"==l&&(fa.ab(p.end,h+la-k),fa.ab(x,u),fa.ab(p.start,h+la-k));fa.ab(Z+b+k,h+la-k);gA(fa,b,b,90,90);"l"==l&&(fa.ab(Z+k,p.end),fa.ab(x,u),fa.ab(Z+k,p.start));fa.ab(Z+k,h+b+k);gA(fa,b,b,180,90);fa.close();DA(a,fa,e,g);if(e=this.M())O(e,"annotation-shape"),O(e,"annotation-speech-shape"),Bg(e,c.left,c.top),Lg(e,c.width,c.height),fB(a,e,d.effects)}}}};
function hB(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,g=a.left-b.x,h=Math.max(c,d,e,g);if(0>h)return"i";switch(h){case c:return"t";case d:return"r";case e:return"b";case g:return"l"}return"i"}gB.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Kc(c-a/2,d+b,d+e-a-b);return new PA(c,c+a)}return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new PA(0,0)};function iB(){QA.call(this)}A(iB,QA);iB.prototype.k=function(a,b,c){var d=Lz(a);d&&(b=lz(d,b,c),0>=b.width||0>=b.height||(a=a.j,c=eB(b,a.effects),d=RA(this,c.width,c.height),aB(d,new mg(0,0,b.width,b.height),a.j,new jA(!a.o&&this.j?1:a.o,a.A),new iA("#000",0)),b=this.M(),O(b,"annotation-shape"),Rg(b,dB(this.j,a.k)),Bg(b,c.left,c.top),Lg(b,c.width,c.height)))};function jB(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};function kB(a,b,c){QA.call(this);this.A=a||0;this.D=b||0;this.C=c||!1}A(kB,QA);function lB(a,b){var c=a.width,d=a.height,e=0,g=0;0<b&&(a.width/a.height>b?(d=a.width/b,g=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new mg(e,g,c,d)}
kB.prototype.k=function(a,b,c){var d=lz(Lz(a),b,c);if(!(0>=d.width||0>=d.height)){var e=lB(d,this.D);e.left+=d.left;e.top+=d.top;b=a.j;c=eB(e,b.effects);var g=RA(this,c.width,c.height),h=new iA("#000",0),e=lB(e,this.A);a=a.A?a.A.j?a.A.j:a.A.videoId?jB(a.A.videoId,"hqdefault.jpg"):"":"";e=sA(g,"image",{x:e.left,y:e.top,width:e.width,height:e.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});e.setAttributeNS("http://www.w3.org/1999/xlink","href",a);e=new zA(e,g);g.o.M().appendChild(e.M());
if(a=this.M()){var k=dB(this.j,b.k);Rg(a,k);if(this.C&&0<b.o){var k=new jA(b.o,b.A),d=new mg(0,0,d.width,d.height),l;l=bB(d,b.j,k.j/2+1);var p=rA(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d",EA(l));u.setAttribute("fill","#FFF");p.appendChild(u);l=tA(g,"mask",p)}e=e.M();l&&e.setAttribute("mask","url(#"+l+")");aB(g,d,b.j,k,h)}O(a,"annotation-shape");O(a,"annotation-image-shape");
Bg(a,c.left,c.top);Lg(a,c.width,c.height);fB(g,a,b.effects)}}};function mB(){QA.call(this)}A(mB,QA);mB.prototype.k=function(a,b,c){var d=Lz(a);if(d){var e=lz(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.j;c=eB(e,b.effects);var d=RA(this,c.width,c.height),g=b.D;a=this.j&&Hz(a);a=(g+=a?1:0)?new jA(g,a?b.B:b.C):null;g=new mg(0,0,e.width,e.height);e=cB(b,e.width,e.height,this.j);aB(d,g,b.j,a,e);if(a=this.M())O(a,"annotation-shape"),O(a,"annotation-popup-shape"),Bg(a,c.left,c.top),Lg(a,c.width,c.height),fB(d,a,b.effects)}}};function nB(){gB.call(this)}A(nB,gB);nB.prototype.C=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 PA(c,c+a)}return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new PA(0,0)};function oB(a,b,c,d,e){this.j=a;this.H=b;this.D=c;this.K=d;this.J=e;this.F=new Fv(this);this.G=this.o=this.B=this.A=this.C=this.k=null}function pB(a,b){var c=w(function(a,c,g){c=g?qB(this,c,w(g,this)):qB(this,c);this.F.listen(b,a,c)},a);c("mouseover","d",a.P);c("mouseout","c",a.N);c("click","a");c("touchend","a")}
function tB(a){if(a.j.D){var b;Gz(a.j,function(a){return"close"==a.type})?b=a.k:(a.B=I("div",["annotation-close-button","hid"]),ih(a.B,"annotation_id",a.j.id),a.k.appendChild(a.B),b=a.B);var c=function(a){a.stopPropagation()};a.F.listen(b,"click",qB(a,"b",c));a.F.listen(b,"touchend",qB(a,"b",c))}}
function qB(a,b,c){return w(function(a){if(this.J)c&&c(a);else if(a.target instanceof Element){var e=a.target;Vw(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ee(g,"annotation")){var h=document.createEvent("MouseEvent");h.initMouseEvent(a.type,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);g.dispatchEvent(h)}}finally{Uw(e)}}e=Qg(a.target);a=new Lc(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.K.publish(b,this.j)},a)}oB.prototype.P=function(){this.B&&Uw(this.B);this.A&&Rg(this.A,1);var a=uB(this);this.o&&(this.o.j=!0,Rg(this.k,vB(this)?1:0),a&&this.o.k(this.j,a,wB(this)))};oB.prototype.N=function(){this.B&&Vw(this.B);this.A&&Rg(this.A,0);var a=uB(this);this.o&&(this.o.j=!1,Rg(this.k,vB(this)?1:0),a&&this.o.k(this.j,a,wB(this)))};function wB(a){return a.G?Lz(a.G):null}
function $z(a){if(a.k||a.o){var b=Lz(a.j);if(b){var c=uB(a),d=wB(a);if(a.k&&c){b=lz(b,c,d);Lg(a.k,b.width,b.height);Bg(a.k,b.left,b.top);var e=a.D.Gg;if(e){var g;g=(g=Lz(a.j))&&e?hz(e,g.A,g.j?g.j:"xy"):1;var e=Nz(a.j,e),h;h=a.j.j;h.G?h=h.G:(h="speech"==a.j.style?1.6:.8,h=new lg(h,h,h,h));h=new lg(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.A&&(h.right+=1.5*c.height/100);a.k.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.j.style&&a.C&&(a.C.style.padding=
a.k.style.padding);a.A&&(g=g/e*c.height*4.2/100,g=new H(g,g),Lg(a.A,g),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*c.height/100,g=new Lc(b.width-g.width-e,b.height-g.height-e)):g=new Lc(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Bg(a.A,g));a.B&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Bg(a.B,g&&e?new Lc(b.width-9,-9):g?new Lc(b.width-9,45<b.height?9:b.height-9):e?new Lc(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new Lc(45<b.width?b.width-9-18:-9,
b.height-9):new Lc(-9,45<b.height?9:b.height-9)))}}a.o&&c&&a.o.k(a.j,c,d);if(a.k){c=a.k;d=a.j.j;c.style.color="highlightText"==a.j.style?d.H:d.B;c.style.fontSize=360*d.J*Nz(a.j,a.D.Gg)/100+"px";b=a.j.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.F&&(c.style.fontWeight=d.F);a=a.k;c=a.style.overflow;d=ud("annotation-link-icon",a);b=Tw(d);g=ud("annotation-close-button",a);e=Tw(g);d&&b&&Vw(d);g&&e&&Vw(g);var k=h="",l=ud("inner-text",a);l&&(h=l.style.overflow,
k=l.style.position,l.style.overflow="visible",l.style.position="static");a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){for(var p=bh(a),u=p,x=5,L=Math.floor(p/2);L;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(x=u,u=Math.min(u+L,p)):u=Math.max(u-L,x),L=Math.floor(L/2),a.style.fontSize=u+"px";u!=x&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=x+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=
k);g&&e&&Uw(g);d&&b&&Uw(d)}}}}
oB.prototype.show=function(){var a=this.j.j,a=(a&&0==a.k||"title"==this.j.style||"highlightText"==this.j.style||"pause"==this.j.type?!1:!0)&&!this.o,b=!this.k,c="widget"==this.j.type;if(a){var d=uB(this);if(d){var e=null;"highlight"==this.j.type||"label"==this.j.style?e=new iB:"popup"==this.j.style?e=new mB:"anchored"==this.j.style?e=new gB:"speech"==this.j.style?e=new nB:"image"==this.j.type&&("video"==this.j.style?e=new kB(yy,xy,!0):"channel"==this.j.style&&(e=new kB));e&&(e.k(this.j,d,wB(this)),
this.o=e,d=e.M())&&(Vw(d),O(d,"annotation-type-"+this.j.type.toLowerCase()),this.H(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.j.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.j.type.toLowerCase());this.k=I("div",d);this.j.C&&(this.C=I("div","inner-text"),"label"==this.j.style&&(O(this.C,"label-text"),this.C.style.backgroundColor=this.j.j.A),Ud(this.C,this.j.C),this.k.appendChild(this.C));ih(this.k,"annotation_id",this.j.id);this.H(this.k);pB(this,this.k);if(Hz(this.j)&&
"image"!=this.j.type&&this.j.showLinkIcon()){if(d=Vy(this.j))this.k.title=d.value?d.value:null;this.A=I("span","annotation-link-icon");this.k.appendChild(this.A)}tB(this);Hz(this.j)||(this.k.style.cursor="default")}c&&("subscribe"==this.j.style?ud("yt-uix-subscription-button",this.k)||(this.k.innerHTML=this.j.o):this.j.o&&(this.k.innerHTML=this.j.o));if(a||b){t:{a=this.j.k.j;if(a.length&&(a=sz(a[0]))){a=a.C;break t}a=0}this.k&&(this.k.style.zIndex=a);this.o&&this.o.M()&&(this.o.M().style.zIndex=a)}Uw(this.k);
Rg(this.k,vB(this)?1:0);$z(this);this.o&&Uw(this.o.M())};oB.prototype.hide=function(){Vw(this.k);this.o&&Vw(this.o.M())};function vB(a){return"label"!=a.j.style||a.o.j}function uB(a){var b=a.D.Gg;return b?"player_relative"==a.j.G?(a=a.D.re)?new mg(-b.left,-b.top,a.width,a.height):null:new mg(0,0,b.width,b.height):null};function xB(a){Is.call(this,a);this.Xi=!0;this.ta="iv-module";this.oc="iv";this.N=!1;this.X=!0;this.F=!1;this.A=0;this.k={};this.K={};this.H=null;this.D=new Cw(this.P,a);a=yB;this.B=new OA(Xs(this));S(this,this.B);this.B.listen("change",this.Hz,this);this.subscribe("onHideControls",this.Ez,this);this.subscribe("onShowControls",this.Gz,this);this.subscribe("onStateChange",this.Fz,this);this.subscribe("d",this.Jz,this);this.subscribe("c",this.Iz,this);this.subscribe("a",this.Cz,this);this.subscribe("b",
this.Dz,this);this.subscribe("videodatachange",this.Fk,this);var b=new dv(["div",[a.zz,"hid"],["svg",{width:"60",height:"60"},["g","",["circle","countdowntimer-background-circle",{cx:"30",cy:"30",r:"15"}],["path","countdowntimer-diminishing-pieslice",{d:"M30,30 z"}],["circle","countdowntimer-middle-dot",{cx:"30",cy:"30",r:"4"}]]]]);S(this,b);b=b.M();this.R=I("DIV",[a.Bz,"html5-stop-propagation"]);this.U=I("DIV",a.Az);this.C=null;Ls(this,I("DIV",a.yz,this.R,this.U));Ls(this,b);this.J=new GA(b,w(this.Ek,
this));this.G=this.o=null;this.O=[]}A(xB,Is);xB.B="AnnotationsModule";var yB={yz:"video-annotations",zz:"countdowntimer",Az:"video-custom-annotations",Bz:"video-legacy-annotations"};xB.A=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};xB.o=function(a){return"card"==a.type};xB.k=function(a){return xB.Ga(a)?new xB(a):null};xB.Ga=function(a){var b=a.S();return"leanback"==b.da?!1:b.ha?!0:zv(a.getVideoData(),"iv3_module")};
xB.j=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=xB.prototype;f.Ga=function(){return xB.Ga(this.j)};f.create=function(){xB.I.create.call(this);this.C=new X(["div",["ytp-player-content","ytp-iv-player-content"]]);this.C.Y(this.j.Ma());$s(this,this.B);var a=this.j.S();(1==(a.la||this.j.getVideoData().oa)||a.ha)&&this.load()};f.destroy=function(){this.C.detach();this.C.dispose();at(this,this.B);this.unsubscribe("videodatachange",this.Fk,this);xB.I.destroy.call(this)};
f.Hz=function(){var a=this.F||this.A,b=0==this.B.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.Fz=function(a){this.X=W(a.state,8);0>Bv(a,4)&&this.J.stop()};
f.load=function(){xB.I.load.call(this);var a=this.j.getVideoData(),b=w(this.Ls,this,a.videoId);Lx()&&(b=zB(this,b));var b={format:"XML",method:"GET",Pb:b},c=this.j.S().ha,d=this.j.S().ne;if(c||d)b.method="POST",b.Ab={},c&&(b.Ab.ic_xml=c),d&&(b.Ab.ic_track=d);a.xh&&(this.A++,Ej(a.xh,b));a.Zm&&(b=w(this.Ls,this,a.videoId),Lx()&&(b=zB(this,b)),b={format:"XML",method:"GET",Pb:b},this.A++,Ej(a.Zm,b));this.B.Ea(0)};
f.unload=function(){this.B.Ea(1);this.D.Ka({"iv-event":1});this.Ek();Js(this);Ib(this.k,function(a){a.destroy()});Ib(this.K,function(a){a.destroy()});this.G=null;this.o&&(this.o.destroy(),this.o=null);this.A=0;this.F=!1;this.k={};this.K={};xB.I.unload.call(this)};
function AB(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 g;if(c[e.tagName])g=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(g=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof g?g.trim():g);continue}else g=[],c[e.tagName]=g;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?g.push(e.childNodes[0].nodeValue):g.push(""):
e&&g.push(AB(a,e))}return c}
f.Ls=function(a,b){if(this.A&&!this.F&&this.j.getVideoData().videoId==a){this.A--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(zj(b)&&c){BB(this,c[0]);O(this.j.Ma(),this.ta+"-loaded");0==this.A&&(this.F=!0);var c=[],d;for(d in this.k){var e=this.k[d].annotation,g;if(e.k)if(g=e.k,g.j.length)if(g=g.j[0].k||g.j[0].j||g.j[0].o,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].k&&0>=g[h].k?null:{start:g[0].k,end:g[h].k}}else g=null;else g=null;if(h=g)if(g=1E3*h.start,
h=1E3*h.end,0==g&&(g++,h++),g==h&&h++,!(h<g)){var k={id:d};"marker"==e.type&&(k.style="ytp-chapter-marker",k.tooltip=e.C,k.visible=!0);e=new ys(g,h,k);c.push(e)}}this.ed.apply(this,c)}}};function CB(a,b){var c=DB(a,b);if(!c&&"marker"!=b.type)return null;Jz(b,function(a){a=w(this.TF,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Xz(a.P,b,c)}
function EB(a,b){var c=a.C.M(),d=xB.j(),e=null;switch(b.type){case "branding":c.appendChild(d);e=new Ty(d,FB(a),b);break;case "promotion":a.j.S().experiments.K&&"video"==b.style?(c=tj(Vy(b).value).v,d=pw(b.data.video_duration),c&&d&&(a.H={id:c,lH:d,mH:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,kH:1},a.Fk())):(c.appendChild(d),e=new Oz(d,FB(a),b))}e&&e.Gj();return e}
f.Fk=function(){if(this.H){var a=this.j.getVideoData().N;!a||1>=a.length||a[1].id==this.H.id||(vb(a,1,0,this.H),qb(a,a.length-1))}};function GB(a,b){if(!a.o){var c=a.j.S().experiments,d=2==Vq(a.j.app).getPlayerType(),c=c.R||d||!1,d=xB.j();c?(a.C.M().appendChild(d),a.o=new Ky(d,FB(a))):(a.U.appendChild(d),a.o=new gy(d,FB(a)));a.o.Gj()}a.o.zs(b)}function FB(a){a.G||(a.G=new Wy(new Fv(a),a.j.S(),a.j.getVideoData(),a.D,a.j,a.P));return a.G}
function BB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=AB(a,c[d]),g=null;try{g=Ez(e)}catch(h){}g&&(xB.A(g)?(e=EB(a,g))&&(a.K[g.id]=e):xB.o(g)?GB(a,g):(e=CB(a,g))&&(a.k[g.id]=e))}Ib(a.k,function(a){var b=a.annotation;b.k&&b.k.k&&(b=this.k[b.k.k])&&(a.j.G=b.annotation)},a)}f.Cc=function(a){xB.I.Cc.call(this,a);a=a.getId();var b=this.k[a];b&&!b.B&&(b=b.annotation,"pause"==b.type?HB(this,b):(IB(this,a),Dw(this.D,b.Fa)))};
f.Vc=function(a){xB.I.Vc.call(this,a);JB(this,a.getId())};function HB(a,b){if(a.X){var c=Fz(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.N=!0,a.publish("command_pause"),a.J.start(1E3*c.duration.value))}}function KB(a,b,c,d){d?IB(a,b,c):JB(a,b,c)}function JB(a,b,c){if(b=a.k[b])Zz(b),c&&c.k?(a=w(a.fu,a,b),b.k=new Hv(a,2E3),b.k.start()):a.fu(b)}f.fu=function(a){a&&(a.hide(),LB(this,"shown",!1,a.annotation.id),this.Ej(a.annotation,"hidden"))};
function IB(a,b,c){if(b=a.k[b])Zz(b),c&&c.A?(a=w(a.Tt,a,b),b.k=new Hv(a,2E3),b.k.start()):a.Tt(b)}f.Tt=function(a){a&&(a.show(),LB(this,"shown",!0,a.annotation.id),this.Ej(a.annotation,"shown"))};f.TF=function(a,b,c){var d=this.k[a];if(d&&b.value!=c){b.value=c;var e=!1;Jz(d.annotation,function(a){e|=a.value});KB(this,a,b,e)}};f.Cz=function(a){if(a&&a.id){var b=Vy(a);if(b){var c=w(this.Ej,this,a,"click"),d=this.j.getVideoData();if("new"==b.target||-1!=yw(b,d.videoId))c(),c=null;Hw(this.D,a.Fa,c)}}};
f.Ej=function(a,b){Iz(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e=yw(c.url,d.videoId);if(-1!=e)this.publish("command_seek",e),this.Ek();else if(d=zw(c.url,a.id,d.videoId,this.j.S()))this.pauseVideo(),window.open(d,Bw(c.url))}},this)};f.Ez=function(){LB(this,"playerControlShow",!1)};f.Gz=function(){LB(this,"playerControlShow",!0)};f.Jz=function(a){LB(this,"rollOver",!0,a.id)};f.Iz=function(a){LB(this,"rollOver",!1,a.id)};
f.Dz=function(a){if(a||a.id)this.k[a.id].B=!0,JB(this,a.id),a&&(Iw(this.D,a.Fa),this.Ej(a,"close")),LB(this,"closed",!0,a.id)};f.Ek=function(){this.J.stop();this.N&&(this.N=!1,this.publish("command_play"))};function DB(a,b){if(MB(b)){var c=b.D||Gz(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new oB(b,w(a.R.appendChild,a.R),a.j.S(),a.P,c)}return null}
function MB(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Bz)if(a.style==Bz[b])return!0;return!1}function LB(a,b,c,d){a.publish(Wz(b,d),c,d)}function zB(a,b){return w(function(){if(!this.fa()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=y.apply(window,a);this.O.push(Mx(b,void 0))}},a)}f.L=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Ox(a[b]);this.O.length=0;xB.I.L.call(this)};var NB=/^#(?:[0-9a-f]{3}){1,2}$/i,OB="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),PB=["none","raised","depressed","uniform","dropShadow"],QB=["sub","inherit","super"],RB=["left","right","center"],SB={id:0,priority:0,anchorPoint:7,rj:50,XC:80,$d:100,md:15,Fm:100,isVisible:!0,textAlign:2,Gf:0,backgroundColor:"#080808",foregroundColor:"#fff",jr:1,WC:1},TB={id:98},UB={id:99,priority:1,anchorPoint:0,rj:5,$d:5,md:2,Fm:32,textAlign:0},VB=["en_CA","en_US","es_MX","fr_CA"];var WB=[{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"}],XB=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],YB=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],ZB=[{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:WB},
{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:WB},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:XB},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:WB},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:XB},{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:YB}];var $B;function aC(a,b){ea(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;$B||($B={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"});c=$B;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function bC(a,b,c,d,e){IA.call(this,a,b,c,c);this.J=b;this.defaultTooltip=this.N=c;this.C=d||null;this.D=e||null;this.G=e||null;this.j=!1}A(bC,IA);bC.prototype.update=function(){JA(this,this.j&&this.C?this.C:this.J);this.Xa(this.j&&this.D?this.D:this.N);this.o=this.j&&this.G?this.G:this.defaultTooltip;P(this.element,"ytp-button-pressed",this.j)};function cC(a){a.j=!0;aC(a.element,!0);a.update()}function dC(a){a.j=!1;aC(a.element,!1);a.update()}function eC(a,b){a.J=b;a.update()}
bC.prototype.L=function(){this.G=this.D=this.C=null;bC.I.L.call(this)};function fC(a){bC.call(this,a,"ytp-subtitles-button",Y(0,"YTP_SUBTITLES"),"ytp-subtitles-button-active");KA(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}A(fC,bC);function gC(a){X.call(this,a)}A(gC,X);gC.prototype.Ks=function(){};gC.prototype.focus=function(){};function hC(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new dv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new dv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.M().style.background=b.option.toString(),e.unshift(d));c?e.unshift(new dv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new dv(["div","ytp-subtitles-settings-dialog-list-check"]));this.j=new IA(a);S(this,this.j);
this.j.qa(e);this.qa(this.j)}A(hC,X);hC.prototype.setEnabled=function(a){P(this.j.M(),"ytp-subtitles-settings-dialog-list-selected",a)};function iC(a){X.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.A=a;this.k=null;var b=Y(0,"YTP_DONE"),c=new IA(a,"ytp-dialog-button",b);S(this,c);c.qa(b);c.listen("click",y(this.Ub,"cancel"),this);KA(c,1400);b=Y(0,"YTP_RESET");a=new IA(a,"ytp-dialog-button",b);S(this,
a);a.qa(b);O(a.M(),"ytp-dialog-button-left");a.listen("click",y(this.Ub,"select"),this);KA(a,1300);this.o={};this.j={};this.template.update({top:jC(this,ZB),buttons:[a,c]})}A(iC,gC);
function jC(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.j={},e=a.j):(a.o={},e=a.o,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new hC(a.A,k,g,b==WB);g?(l.listen("click",w(a.Qq,a,k.options,k.option)),KA(l.j,1100)):c&&(l.listen("click",w(a.yC,a,c,k.option)),KA(l.j,1200));e[k.option]=l;l.Y(d.M())}return d}f=iC.prototype;f.Qq=function(a,b){this.template.update({sub:jC(this,a,b)});kC(this,this.o,b);kC(this,this.j,this.k[b]);lC(this.template.j["ytp-subtitles-settings-dialog-sub-level"])};
function lC(a){(a=ud("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){lC(this.template.j["ytp-subtitles-settings-dialog-top-level"])};function kC(a,b,c){Ib(b,function(a,b){a.setEnabled(b==c)},a)}f.setProperties=function(a){this.k=a;(a=ZB[0])&&a.options&&this.Qq(a.options,a.option)};f.yC=function(a,b){this.k&&(this.k[a]=b,this.Ub("change"));kC(this,this.j,b);this.focus()};
f.Ks=function(){var a=this.A.ub(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.M().style.width=b+"px";this.template.j["ytp-dialog-body"].style.height=a.height-140+"px"};f.L=function(){this.o=[];this.j=[];iC.I.L.call(this)};function mC(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.G=this.D=null;this.A=new Fv(this);this.k=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);S(this,this.k);mv(this.k,"listbox");this.j=new IA(a,"ytp-drop-down-label");S(this,this.j);this.j.listen("click",this.oy,this);this.C=new X(["div","ytp-drop-down-label-content","{{content}}"]);S(this,this.C);this.j.qa([this.C,["div","ytp-drop-down-arrow"]]);this.qa([this.k,this.j]);n(b)&&this.Sd(b);n(c)&&
this.G!=c&&(this.k.qa(c),this.G=c,nC(this));nC(this)}A(mC,X);f=mC.prototype;f.Sd=function(a){this.D!=a&&(this.C.qa(a),this.D=a,nC(this))};f.Td=function(){this.o=!1;nC(this)};f.fA=function(a){a.target&&(Sd(this.k.M(),a.target)||Sd(this.j.M(),a.target))||this.Td()};f.oy=function(){this.o=!this.o;nC(this);this.o&&this.k.M().focus()};function oC(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}f.focus=function(){this.j.M().focus()};
function nC(a){a.o?(a.k.show(),a.A.listen(window,"blur",a.Td),a.A.listen(document,"click",a.fA)):(a.k.hide(),a.A.removeAll());var b=Ng(a.j.M());a.k.M().style.bottom=b.height-1+"px";oC(a,b.width)};function pC(a,b){IA.call(this,a,"ytp-drop-down-menu-button");mv(this,"option");this.j=new X(["div","ytp-drop-down-menu-button-check"]);S(this,this.j);this.k=!!b}A(pC,IA);pC.prototype.qa=function(a){pC.I.qa.call(this,[this.j,a])};pC.prototype.Ea=function(a){P(this.element,"ytp-drop-down-menu-button-selected",a);this.k||P(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function qC(a,b){P(a.element,"ytp-drop-down-menu-button-checked",b)};function rC(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.G=a;this.B=!!d;this.o={};this.A=[];this.j=this.k=null;this.C=b;this.D=c}A(rC,X);function sC(a,b){Db(a.A,b)||(Ib(a.o,function(a){a.detach()}),a.A=[],b&&D(b,function(a){this.A.push(a);var b=tC(this,a);this.B&&qC(b,a==this.j);b.Ea(a==this.k);b.Y(this.element)},a))}rC.prototype.Ea=function(a){null!=this.k&&tC(this,this.k).Ea(!1);null!=a&&tC(this,a).Ea(!0);this.k=a;this.B||(this.j=a)};
rC.prototype.getSelected=function(){return this.k};function uC(a,b){var c=tC(a,"translate");b?c.disable():c.enable()}function vC(a,b){Ib(a.o,function(a){KA(a,b)})}function tC(a,b){var c=a.o[b.toString()];if(c)return c.qa(a.C(b)),c;c=new pC(a.G,a.B);S(a,c);a.o[b.toString()]=c;c.qa(a.C(b));c.listen("click",w(a.D,a,b));return c};function wC(a,b,c,d,e,g){HA.call(this);this.K=b;this.N=c;this.J=d;this.P=e;this.H=g;this.o={};this.o.off=Y(0,"YTP_LANGUAGE_OFF");this.o.translate=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.label=Y(0,"YTP_SUBTITLES");this.j=new rC(a,w(this.F,this),w(this.O,this));S(this,this.j);this.element=new mC(a,void 0,this.j);S(this,this.element);oC(this.element,150);this.element.Xa(this.label);this.priority=1;this.B=!0;this.D=this.C=!1;xC(this,[]);this.off()}A(wC,HA);
wC.prototype.G=function(){this.J()};function xC(a,b){for(var c=["off"],d=0;d<b.length;d++){var e=b[d],g=e.toString();a.o[g]||(a.o[g]=zt(e));c.push(g)}c.push("translate");a.D&&c.push("contribute");sC(a.j,c);uC(a.j,!a.C);c=tC(a.j,"translate");P(c.element,"ytp-drop-down-menu-button-separated",!1);P(c.element,"ytp-drop-down-menu-button-separated-above",!0);c=2500;vC(a.j,c++);c=c++;KA(a.element.j,c)}function yC(a,b){a.o[b]&&(a.j.Ea(b),a.element.Sd(a.F(b)))}wC.prototype.off=function(){yC(this,"off")};
wC.prototype.F=function(a){return this.o[a]};wC.prototype.O=function(a){this.element.Td();"off"==a?this.K():"translate"==a?this.P():"contribute"==a?this.H():this.N(a,!0)};function zC(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new IA(a,"ytp-dialog-button",c);S(this,b);b.qa(c);b.listen("click",y(this.Ub,"change"),this);KA(b,1400);var c=Y(0,"YTP_CANCEL"),d=new IA(a,"ytp-dialog-button",c);S(this,d);d.qa(c);d.listen("click",y(this.Ub,"cancel"),this);KA(d,1500);this.k=new rC(a,
w(this.Jr,this),w(this.GB,this),!0);S(this,this.k);this.k.element.style.maxHeight="100px";this.j=new mC(a,void 0,this.k);S(this,this.j);oC(this.j,200);this.j.Xa(Y(0,"YTP_TRANSLATE_DIALOG_TITLE"));this.o=null;this.template.update({content:this.j,buttons:[b,d]})}A(zC,gC);f=zC.prototype;f.Ea=function(a){this.o=a;this.j.Sd(a?this.Jr(a):null)};f.getSelected=function(){return this.o};f.GB=function(a){this.j.Td();this.Ea(a)};f.Jr=function(a){return a.Ii?a.languageName+" -- "+a.Ii:a.languageName};
f.focus=function(){this.j.focus()};function AC(a){bC.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");KA(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.k=new X(["div","{{content}}"]);S(this,this.k);this.qa(this.k);BC(this,"")}A(AC,bC);
function BC(a,b){"highres"==b?a.k.qa("ytp-settings-8k-quality-badge"):"hd2880"==b?a.k.qa("ytp-settings-5k-quality-badge"):"hd2160"==b?a.k.qa("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.k.qa("ytp-settings-hd-quality-badge"):a.k.qa("")};function CC(a){this.anchorPoint=7;this.rj=50;this.$d=100;this.XC=80;this.Gf=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.WC=this.jr=1;this.md=15;this.Fm=32;this.isVisible=!0;this.k=0;this.bold=!1;this.offset=1;this.j=3;a=a||SB;ra(this,a)};function DC(a,b){this.id=a;this.za=new CC(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.Ha=I("div",{id:"caption-window-"+this.id,"class":c});this.Yb=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Yb.innerHTML="C";this.Na=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Jh=I("div",{"class":"caption-window-transform"});this.Jh.appendChild(this.Na);this.Ha.appendChild(this.Jh);this.j=1}DC.prototype.id=0;f=DC.prototype;
f.za=null;f.uh="";f.Lc=null;f.Ha=null;f.Jh=null;f.Na=null;f.Yb=null;f.type=0;
f.bd=function(a,b){a&&ra(this.za,a);var c=this.za.charEdgeStyle,d=this.za.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.za.charEdgeColor&&(h=g=this.za.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+g+", 2px 2px 4px "+g+", 2px 2px 5px "+g;break;case 1:e="1px 1px "+g+", 2px 2px "+g+", 3px 3px "+g;break;case 2:e="1px 1px "+h+", 0 1px "+h+", -1px -1px "+g+", 0 -1px "+g;break;case 3:e="0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g}}c=this.za.fontFamily;
g="";switch(c){case 1:g='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:g='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:g='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:g='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:g='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var k=Mv(this.za.color),h=Mv(this.za.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.za.offset||1;wg(this.Na,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.za.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.za.bold?"bold":"","font-style":this.za.italic?"italic":"","text-decoration":this.za.underline?
"underline":"","vertical-align":QB[d]});b&&(this.j=b.height/360);e=Mv(this.za.windowColor);c=this.za.windowOpacity;g=this.za.fontSizeIncrement||0;1!=d&&(g*=.8);wg(this.Jh,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.j)+"px"})};f.Pj=function(){var a;this.Yb.style.fontFamily=this.Na.style.fontFamily;this.Ha.appendChild(this.Yb);a=this.Yb.offsetHeight;this.Ha.removeChild(this.Yb);return a};
f.bf=function(){this.Na&&(0!=this.id&&(Mg(this.Ha,"100%"),Mg(this.Ha,this.Na.offsetWidth+1)),EC(this),Sw(this.Ha,this.za.isVisible))};function EC(a){Bg(a.Ha,a.za.rj+"%",a.za.$d+"%");for(var b=0;8>=b;b++)fh(a.Ha,"anchor-point-"+b);O(a.Ha,"anchor-point-"+a.za.anchorPoint)}f.Zt=function(a){var b=[];D(a,function(a){a.k?b[b.length-1]+=a.j:b.push(a.j)});if(a.length){var c=a[a.length-1].nn;c&&this.bd(FC(c))}this.Ld(b.join("\n"));this.Lc=a};
f.Ld=function(a){this.uh=a=GC(a);this.Na.innerHTML=this.uh;this.Ha.style.textAlign=RB[this.za.textAlign];1==this.za.Gf?this.Na.setAttribute("dir","rtl"):this.Na.removeAttribute("dir");this.bf()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.uh,b;for(b in this.za)a+=b+" "+this.za[b]+" | ";return a};function GC(a){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>")}f.lk=function(){this.Lc=[];this.Ld("")};function HC(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=IC();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function JC(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");}
function KC(a,b){if("undefined"!=typeof a.selectSingleNode){var c=qd(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=qd(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function LC(a){if("undefined"!=typeof a.selectNodes){var b=qd(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')}if(document.implementation.hasFeature("XPath","3.0")){var b=qd(a),c=b.createNSResolver(b.documentElement);a=b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]',a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=
[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]}function IC(){var a=new 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};function MC(){this.k=[];this.j=[]};function NC(a){this.o=a.startMs||0;this.A=a.priority||0;this.durationMs=a.durationMs||0}NC.prototype.end=null;NC.prototype.start=null;NC.prototype.nb=function(){return this.o};NC.prototype.toString=function(){return this.o+", "+this.durationMs};function OC(a){NC.call(this,a);this.windowId=a.windowId||0;this.j=a.text||"";this.k=a.params.append||!1;this.nn=a.nn||null}A(OC,NC);OC.prototype.toString=function(){return this.o+", "+this.durationMs+": "+this.j};
function PC(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=1E3*parseFloat(a.getAttribute("start")||0);a.getAttribute("t")&&(c=parseInt(a.getAttribute("t"),10));var d=1E3*parseFloat(a.getAttribute("dur")||0);a.getAttribute("d")&&(d=parseFloat(a.getAttribute("d")));var e=parseInt(a.getAttribute("w"),10)||0,b={startMs:c,durationMs:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.col=parseInt(a.getAttribute("c"),
10));a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new OC(b)}function QC(a){NC.call(this,a);this.id=a.windowId||0;this.params=a.params||{};this.Vj=a.Vj||null;this.Wj=a.Wj||null;this.j="";this.k=!1;RC(this)}A(QC,NC);function SC(a){return a.params.cF?a.params.cF:a.params.vA?2:a.k?1:0}function TC(){return new QC({startMs:0,durationMs:2147483647,params:SB})}function RC(a){a.Vj&&ra(a.params,FC(a.Vj));a.Wj&&ra(a.params,FC(a.Wj))};function UC(a){MC.call(this);this.j.push(TC());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=PC(a[b]);this.k.push(d)}}A(UC,MC);function VC(a){MC.call(this);this.o={};a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10);t:{var g=this.o[e];if(d.getAttribute("t")||d.getAttribute("start")){var h=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(h=1E3*parseFloat(d.getAttribute("start")));g&&(g.nb()+g.durationMs>=h?g.durationMs=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.B=!0:g=TC();var k=
{};ra(k,g?g.params:SB);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.jH=d.getAttribute("op"));d.getAttribute("rc")&&(k.md=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.Fm=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.rj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.$d=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(k.id=parseInt(d.getAttribute("id"),
10)||0);d.getAttribute("vs")&&(k.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(k.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(k.Gf=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Gf=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.jr=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.vA=parseInt(d.getAttribute("sd"),10));g=parseInt(d.getAttribute("d"),
10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={startMs:h,durationMs:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new QC(d)}else d=null}this.o[e]=d;this.j.push(d);break;case "text":e=PC(a[b]),this.k.push(e),d=e.windowId,this.o[d]&&(d=this.o[d],e=e.j,""!=d.j&&(d.k=!0),d.j+=e)}}A(VC,MC);function WC(a){this.parent=a||null;this.j={}}function XC(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return XC(a.parent,b)}function YC(a,b,c){void 0!=c&&(a.j[b]=c)}function ZC(a,b,c){void 0!=c&&(a.j[b]=c)}function FC(a){var b=a.parent?FC(a.parent):{};ra(b,a.j);return b};function $C(a){MC.call(this);var b={Eh:{},qn:{},rn:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var g=a[e];switch(g.tagName){case "head":c=g;break;case "body":d=g}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var g=b,h=aD(e,"p"),k=void 0;h&&g.Eh[h]&&(k=g.Eh[h]);g=new WC(k);YC(g,"id",aD(e,"id"));h=bD(e,"b");void 0!=h&&(g.j.bold=h);h=bD(e,"i");void 0!=h&&(g.j.italic=h);h=bD(e,"u");void 0!=h&&(g.j.underline=h);YC(g,"charEdgeStyle",cD(e,"et"));YC(g,"offset",
cD(e,"of"));YC(g,"textType",cD(e,"tt"));ZC(g,"background",dD(e,"bc"));ZC(g,"charEdgeColor",dD(e,"ec"));ZC(g,"color",dD(e,"fc"));h=cD(e,"fs");void 0!=h&&0!=h&&YC(g,"fontFamily",h);h=aD(e,"sz");void 0!=h&&YC(g,"fontSizeIncrement",h/100-1);h=aD(e,"bo");void 0!=h&&YC(g,"backgroundOpacity",h/255);e=aD(e,"fo");void 0!=e&&YC(g,"textOpacity",e/255);e=XC(g,"id",!1);b.Eh[e]=g;break;case "ws":g=eD(b,e);e=XC(g,"id",!1);b.rn[e]=g;break;case "wp":g=fD(b,e),e=XC(g,"id",!1),b.qn[e]=g}if(d)for(c={},a=-1,d=d.childNodes,
e=0;e<d.length;e++)switch(g=d[e],g.tagName){case "w":k=gD(b,g);if(g=c[k.id])g.durationMs=k.nb()-g.nb();c[k.id]=k;this.j.push(k);break;case "p":var h=b,l=g,p={},k={startMs:aD(l,"t"),durationMs:aD(l,"d"),text:l.textContent,params:p},u=aD(l,"w");void 0!=u&&(k.windowId=u);bD(l,"a")?(k.priority=6,p.append=!0):k.priority=5;(l=aD(l,"p"))&&h.Eh[l]&&(k.nn=h.Eh[l]);h=new OC(k);k=c[h.windowId];k||(k=gD(b,g),k.id=a--,h.windowId=k.id,this.j.push(k));g=k;k=h.j;""!=g.j&&(g.k=!0);g.j+=k;this.k.push(h)}}A($C,MC);
function aD(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}function bD(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function cD(a,b){var c=aD(a,b);if(void 0!=c)return c}function dD(a,b){var c=a.getAttribute(b);if(null!=c)return NB.test(c),c}
function eD(a,b){var c=aD(b,"ws"),d;c&&a.rn[c]&&(d=a.rn[c]);c=new WC(d);YC(c,"id",aD(b,"id"));YC(c,"modeHint",cD(b,"mh"));YC(c,"textAlign",aD(b,"ju"));YC(c,"textPrintDirection",cD(b,"pd"));YC(c,"textScrollDirection",cD(b,"sd"));YC(c,"windowBorderType",cD(b,"et"));ZC(c,"windowBorderColor",dD(b,"wbc"));ZC(c,"windowColor",dD(b,"wfc"));d=aD(b,"wfo");void 0!=d&&YC(c,"windowOpacity",d/255);return c}
function fD(a,b){var c=aD(b,"wp"),d;c&&a.qn[c]&&(d=a.qn[c]);c=new WC(d);YC(c,"anchorPoint",cD(b,"ap"));YC(c,"colCount",aD(b,"cc"));YC(c,"id",aD(b,"id"));YC(c,"leftPercentage",aD(b,"ah"));YC(c,"rowCount",aD(b,"rc"));YC(c,"topPercentage",aD(b,"av"));return c}function gD(a,b){var c={windowId:aD(b,"id"),startMs:aD(b,"t"),durationMs:aD(b,"d")||2147483647,Vj:fD(a,b),Wj:eD(a,b)};return new QC(c)};function hD(a,b){MC.call(this);this.j.push(TC());for(var c=a.split(iD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(jD))e=null;else{var h=e.split(kD),k=0,l=h[k++].match(lD);l||(l=h[k++].match(lD));l?(e=mD(l[1],g),g=mD(l[3],g),h=h.slice(k).join("\n"),e=new OC({startMs:e,durationMs:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.k.push(e)}}A(hD,MC);var jD=/NOTE/,iD=/(?:\r\n|\r|\n){2,}/,kD=/\r\n|\r|\n/,lD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function mD(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+parseFloat(c[e]);return 1E3*d+b};function nD(a,b){this.j=[];this.k=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new hD(a,b||0):(c=HC(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new $C(c):new VC(c):new UC(c):null:null;c&&(this.k=c.j,this.j=c.k)};function oD(){this.k=[];this.j=[];this.o=-1}function pD(a,b){return b?a.j.concat(a.k):a.j}function qD(a,b){switch(b.A){case "asr":return rD(b,a.k);default:if(b.isDefault||0>a.o)a.o=a.j.length;return rD(b,a.j)}}function rD(a,b){return F(b,w(a.equals,a))?!1:(b.push(a),!0)};function sD(a){this.kq=!!a;this.k=new oD;this.A=[]}A(sD,R);function tD(a,b){return F(pD(a.k,!0),function(a){return a.toString()==b})}f=sD.prototype;f.Xp=function(a){var b=this.k.o,c=pD(this.k,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.Fe=function(){return null};f.seek=function(){};f.Em=function(){};f.L=function(){sD.I.L.call(this);this.Em()};function uD(a){sD.call(this,a.Di);this.o=null;this.A=a.ie}A(uD,sD);f=uD.prototype;f.Wp=function(){for(var a=[],b=pD(this.k,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:d.o,srclang:d.k,src:vD(d)};d.isDefault&&(e["default"]=1);a.push(I("track",e))}return a};f.Pn=function(a,b){var c=vD(a),d=w(function(c){this.j=null;c=new nD(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Ej(c,{format:"RAW",$a:d,withCredentials:!0});this.o&&(this.o.zn=a)};
f.An=function(a,b,c,d){if(this.o=d||null)for(b=0;b<this.o.captionTracks.length;b++)qD(this.k,this.o.captionTracks[b]);a()};function vD(a){return a.j?wj(a.B,{tlang:a.j.languageCode}):a.B}f.Fe=function(){return this.o?this.o.Vm:null};f.Xp=function(){return this.o?this.o.zn:null};f.L=function(){this.j&&this.j.abort();uD.I.L.call(this)};function wD(){this.F=1;this.C=20971520;this.B=8388608;this.j=5242880;this.pa=NaN;this.H=2;this.N=25;this.D=2097152;this.o=!1;this.k=1800;this.A=Bt.auto;this.K=!0;this.liveChunkReadahead=3;this.P=cs("xboxone");this.G=0;this.O=this.J=!1};function xD(){this.ga=[]}xD.prototype.contains=function(a){a=yb(this.ga,a);return 0<=a||0>a&&1==(-a-1)%2};xD.prototype.length=function(){return this.ga.length/2};function yD(a,b){R.call(this);this.Z=b;this.D=new xD;this.A=!0;this.F=this.j=this.B=this.C=this.k=null;this.o=0}A(yD,R);yD.prototype.L=function(){Lf(this.o);this.o=0;this.A=!0;this.j&&this.j.abort()};yD.prototype.resume=function(){this.A=!1;Lf(this.o);this.seek(this.Z.getCurrentTime());zD(this)};yD.prototype.seek=function(a){this.k=bb(this.F.Si(a).j)};function AD(a,b){a.C=b}function BD(a){var b;if(b=!a.A&&null!==a.k)b=a.k,b=b.j.Lg(b);return b&&!a.j&&!(a.k&&30<a.k.startTime-a.Z.getCurrentTime())}
function CD(a){var b;b=a.k;b=DD(b.j,b);if(!a.D.contains(b.j[0].A)){var c=ED(FD(b));a.j=Ej(c,{format:"RAW",Pb:w(a.G,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.j[0].A,e=yb(c.ga,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ga[e-1]&&e<c.ga.length&&1==c.ga[e]-d?(qb(c.ga,e),qb(c.ga,e-1)):0<e&&1==d-c.ga[e-1]?c.ga[e-1]=d:e<c.ga.length&&1==c.ga[e]-d?c.ga[e]=d:(vb(c.ga,e,0,d),vb(c.ga,e+1,0,d)))}a.k=bb(b.j)}
yD.prototype.G=function(a){null==a.responseText||400<=a.status||this.A||null===this.C||(a=new nD(a.responseText,1E3*this.B.j[0].startTime),this.C(a));this.j=this.B=null};function zD(a){a.o=Kf(w(function(){BD(this)&&CD(this)},a),1E3);BD(a)&&CD(a)};function GD(a,b){sD.call(this);this.o=a;this.j=new yD(new wD,b)}A(GD,sD);f=GD.prototype;f.Pn=function(a,b){AD(this.j,function(c){b(c,a)});this.j.F=this.o.j[a.k];this.j.resume()};f.An=function(a){qD(this.k,new wt({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};f.seek=function(a){this.j.seek(a)};f.Em=function(){var a=this.j;Lf(a.o);a.o=0;a.A=!0};f.L=function(){this.j.dispose();GD.I.L.call(this)};function HD(a,b){DC.call(this,a,b);this.Na.style.display="block";this.Na.style.padding="0";this.hc=[];var c=this.Na;fh(c,"captions-text");O(c,"caption-painton-text-rows")}A(HD,DC);f=HD.prototype;f.type=1;f.wr="";f.bo="";f.sh=!1;f.Wb=null;f.hc=null;f.Pj=function(){return this.hc[0]?this.hc[0].offsetHeight:0};function ID(a){return a.hc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.bf=function(){0!=this.id&&(Mg(this.Ha,"100%"),Mg(this.Ha,this.sh?ID(this):this.Wb.width));var a=Math.round(this.za.md*this.Pj());this.Ha.style.maxHeight=a+"px";EC(this);Sw(this.Ha,this.za.isVisible)};
f.Ld=function(a){this.lk();a=GC(a);this.sh||(this.uh=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=I("div",{"class":"caption-row-holder"}),e=I("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.bo;d.appendChild(e);e.innerHTML=a[b];this.sh||(this.Na.style.height=this.Wb.height+"px",this.Na.style.width=this.Wb.width+"px",d.style.position="absolute",d.style.top=this.Wb.sr[b]+"px",d.style.left=this.Wb.rr[b]+"px");this.Na.appendChild(d);this.hc.push(e)}this.bf()};
f.lk=function(){for(var a=0,b=this.hc.length;a<b;a++){var c=ee(this.hc[a],"caption-row-holder");Ld(c)}this.hc=[]};f.bd=function(a){HD.I.bd.call(this,a);this.bo=this.Na.style.backgroundColor;this.Na.style.backgroundColor="";a=0;for(var b=this.hc.length;a<b;a++)this.hc[a].style.backgroundColor=this.bo};function JD(a,b){DC.call(this,a,b);this.Lc=[];this.ce=[];this.Xb=[];this.Zf=new ln(433);this.Zf.stop();Q(this.Zf,"tick",w(this.jG,this))}A(JD,DC);f=JD.prototype;f.type=2;f.kG=32;f.Xb=null;f.de=0;f.ce=null;f.Zf=null;f.bf=function(){Mg(this.Ha,"100%");var a=this.Ha.offsetWidth,a=Math.min(KD(this),a);Mg(this.Ha,a+"px");Mg(this.Jh,"100%");this.Na.style.whiteSpace="nowrap";EC(this);Sw(this.Ha,this.za.isVisible)};
f.Zt=function(a){var b=a.length;if(0>=b)this.lk();else{for(var c=0;c<b&&0<=this.Lc.indexOf(a[c]);)c++;this.Lc=this.Lc.concat(a.slice(c));LD(this)}};f.lk=function(){this.Lc=[];this.Xb=[];this.de=0;this.Xb=[];this.ce=[];MD(this)};
function LD(a){if(!ND(a))if(a.de>=a.Lc.length)MD(a);else{var b=a.Xb.length-1;0>b&&(a.ce.push(0),a.de=0,a.Xb.push(""),b=0);for(var c=a.Lc.length,d=a.de;d<c;d++){var e=a.Lc[d];if("\n"==e.j){a.de++;a.ce[b]++;break}if(e.k||0==a.Xb[b].length)a.Xb[b]+=e.j,a.de++,a.ce[b]++;else break}MD(a);d<c&&!ND(a)&&(b=a.Pj(),O(a.Na,"caption-rollup"),a.Ha.style.overflow="hidden",a.Na.style.top=-b+"px",a.Zf.start())}}function ND(a){return a.Zf.enabled||dh(a.Na,"caption-rollup")}
f.jG=function(){this.Ha.style.overflow="visible";this.Na.style.top=0;this.Zf.stop();fh(this.Na,"caption-rollup");this.Xb.push("");this.ce.push(0);LD(this)};function MD(a){if(!ND(a)){for(;a.Xb.length<a.za.md;)a.Xb.unshift(""),a.ce.unshift(0);for(;a.Xb.length>a.za.md;){a.Xb.shift();var b=a.ce.shift();0<b&&(a.de-=b,a.Lc.splice(0,b))}a.Ld(a.Xb.join("\n"))}}
function KD(a){a.Yb.style.fontFamily=a.Na.style.fontFamily;a.Yb.style.fontSize=a.Na.style.fontSize;a.Na.appendChild(a.Yb);a.Yb.innerHTML="\u2014";var b=a.Yb.offsetWidth;a.Yb.innerHTML="&nbsp;";b=2*a.Yb.offsetWidth+b*a.kG;a.Na.removeChild(a.Yb);return b};function OD(a,b,c,d){sD.call(this,d);c||(c=tj(a).hl||"",c=c.split("_").join("-"));this.o=wj(a,{hl:c});this.B=b;this.C={};this.j=null}A(OD,sD);OD.prototype.Wp=function(){for(var a=[],b=pD(this.k,void 0),c=0;c<b.length;c++){var d=b[c],e=PD(this,d),e={kind:"subtitles",label:d.o,srclang:d.k,src:e};d.isDefault&&(e["default"]=1);a.push(I("track",e))}return a};
OD.prototype.Pn=function(a,b){var c=PD(this,a),d=w(function(c){this.j=null;c=new nD(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Ej(c,{format:"RAW",$a:d,withCredentials:!0})};
OD.prototype.An=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.B,fmts:Number(b||!1),vssids:1};this.kq&&(b.asrs=1);d=wj(d,b);b=w(function(b){this.j=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.k,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),u=c,x=h[l].getAttribute("lang_code"),L=h[l].getAttribute("lang_translated"),la=h[l].getAttribute("name"),Z=h[l].getAttribute("kind"),fa=h[l].getAttribute("id"),qa="true"==h[l].getAttribute("lang_default"),
Ne="true"==h[l].getAttribute("cantran"),je=h[l].getAttribute("vss_id"),p=new wt({formats:p,format:u,languageCode:x,languageName:L,name:la,kind:Z,id:fa,is_servable:!0,is_default:qa,is_translateable:Ne,vss_id:je});qD(d,p)}b=b.getElementsByTagName("target");d=b.length;for(h=0;h<d;h++)k=b[h].getAttribute("lang_code"),l=b[h].getAttribute("lang_translated"),p=b[h].getAttribute("lang_original"),u=b[h].getAttribute("id"),x="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:u,is_default:x},this.C[k.languageCode]=k.languageName,this.A.push(new vt(k))}a()},this);this.j&&this.j.abort();this.j=Ej(d,{format:"RAW",$a:b,withCredentials:!0})};function PD(a,b){var c=a.o,d={v:a.B,type:"track",lang:b.k,name:b.o,kind:b.A,fmt:b.C};b.j&&(d.tlang=b.j.languageCode);return c=wj(c,d)}OD.prototype.L=function(){this.j&&this.j.abort();OD.I.L.call(this)};function QD(a){Is.call(this,a);Nf({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_TRANSLATE_DIALOG_TITLE:"Translate...",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",
YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",
YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"});this.Xi=!0;this.na=this.U=this.oa=!1;this.Ia=new Fv(this);this.F=a.S();this.C=null;this.O=a.app.k;this.la=this.ha=null;this.ua={};this.ca=[];this.Ba=0;this.K={};this.W={};this.ma=this.xa=this.J=this.va=!1;this.ia=new DC(99,UB);this.A=this.o=this.D=null;this.Ca=!1;this.G=this.H=
0;this.X=new fC(Xs(this));S(this,this.X);this.X.listen("click",this.Uy,this);this.N=this.ta+"-mdx";this.ja=new AC(Xs(this));S(this,this.ja);O(this.ja.M(),"ytp-mdx-settings-button");this.ja.listen("click",this.fz,this);this.B=new wC(Xs(this),w(this.Yl,this),w(this.Co,this),w(this.dz,this),w(this.ez,this),w(this.Vy,this));this.R=new iC(Xs(this));S(this,this.R);this.R.listen("change",w(this.Ud,this,!0));this.R.listen("cancel",this.Ty,this);this.R.listen("select",this.pq,this);this.V=new zC(Xs(this));
S(this,this.V);this.V.listen("change",this.$y,this);this.V.listen("cancel",this.wg,this);this.subscribe("onResize",w(this.qq,this));this.subscribe("onBackgroundChange",w(this.az,this));this.subscribe("onTextOpacityChange",w(this.bz,this));this.subscribe("onWindowOpacityChange",w(this.cz,this));this.subscribe("onFontSizeIncrease",w(this.Yy,this));this.subscribe("onFontSizeDecrease",w(this.Xy,this));this.subscribe("onCaptionsToggle",w(this.Zy,this));this.subscribe("onPlaybackAudioChange",w(this.Wy,
this))}A(QD,Is);QD.prototype.ta="captions";QD.prototype.oc="cc";QD.prototype.In="subtitlesModuleData";var RD={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function SD(a){return"3"!=a.F.j?!1:!!a.O.j.textTracks}function TD(a,b,c,d,e){v(a.k[b])&&(a.k[c]=d.indexOf(a.k[b]),-1==a.k[c]&&(a.k[c]=e),delete a.k[b])}f=QD.prototype;
f.create=function(){QD.I.create.call(this);this.C=this.j.getVideoData();-1==VB.indexOf(this.F.P)&&O(this.j.Ma(),"cc-international");this.k=$b(RD);ra(this.k,Ps(this,"display-settings"));TD(this,"fontFamilyOption","fontFamily",OB,RD.fontFamily);TD(this,"charEdgeStyle","charEdgeStyle",PB,RD.charEdgeStyle);this.R.setProperties(this.k);this.la=new X(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.la.Y(this.j.Ma());this.ha=this.la.M();SD(this)||(Ys(this,this.ta,this.X),$s(this,this.B));
UD(this)&&this.load()};f.destroy=function(){this.la.detach();this.la.dispose();this.ha=null;QD.I.destroy.call(this)};function UD(a){if(a.C.captionTracks.length){var b=VD(a.j.app,1),c=b.Ws;if(b.Vm||2==c||3==c)return!0}if(1==a.F.B.cc_load_policy||1==a.C.Lp||"alwayson"==a.C.Bc("yt:cc")||SD(a))return!0;b=Ps(a,"module-enabled");return null!=b?!!b:"on"==a.C.Bc("yt:cc")}function WD(a){a.o.An(w(a.As,a),!0,SD(a)?"vtt":void 0,VD(a.j.app,1))}
f.load=function(){this.ma="alwayson"==this.C.Bc("yt:cc");this.xa="1"==this.C.A.cc_auto_caps||"1"==this.F.B.cc_auto_caps;this.B.D="1"==this.C.A.cc_contribute||"1"==this.F.B.cc_contribute;this.Ob?(Ys(this,this.N,this.ja),this.B.k=this.N):(Zs(this,this.N),this.B.k=null);QD.I.load.call(this);this.oa=!0;if(this.C.Va)this.o=new GD(this.C.k,this.j),this.subscribe("seekto",this.hp,this);else{var a=this.C.A.cc_lang_pref||this.F.B.cc_lang_pref||this.C.Bc("yt:cc_default_lang")||this.F.P,a=a&&a.split("_").join("-");
this.C.captionTracks.length?this.o=new uD(this.C):this.o=new OD(this.C.wf,this.C.videoId,a,this.C.Di)}WD(this)};f.fz=function(){this.loaded||this.load()};f.unload=function(){this.Ob&&(Zs(this,this.N),this.B.k=null,XD(this,!1),this.Kj("control_subtitles_set_track"));if(SD(this)){var a;a=td("track",void 0,void 0);for(var b=0;b<a.length;b++)Ld(a[b])}else YD(this,!1),ZD(this),this.unsubscribe("seekto",this.hp,this),this.o.dispose(),this.o=null,this.wg();this.J=this.na=this.U=this.oa=!1;QD.I.unload.call(this)};
f.Ka=function(){};
f.As=function(){this.oa=!1;if(SD(this))for(var a=this.O.j,b=this.o.Wp(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.V,b=this.o.A,sC(a.k,b),vC(a.k,1E3),iv(a.k.template,"tabindex",1E3),KA(a.j.j,1001),b.length?a.Ea(b[0]):a.Ea(null),b=this.J||UD(this)||$D(this.F),a=pD(this.o.k,!0),0<a.length){this.Ka("Caption track list loaded, found "+a.length+" tracks.");this.na=!0;xC(this.B,a);a=!1;if(b)if(b=this.o.Xp())this.va=!0,aE(this,b),a=!0;else if(this.U||bE(this),b=this.o.k.k,b.length&&(b=b[0].toString(),
this.J||this.xa))this.Co(b),a=!0;this.publish("publish_external_event","onCaptionsTrackListChanged");a||this.o.Fe()&&aE(this,this.o.Fe())}else this.Ka("No captions found."),this.unload()};function bE(a){a.U=!0;SD(a)||(a.Ud(),a.qq())}
f.OE=function(a,b){this.U||bE(this);this.va&&(this.va=!1,this.publish("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){ZD(this);this.A=b;this.Ca=mc.test(b.k);var c={trackName:b.o,trackKind:b.A};b.j?(c.trackLangCode=b.j.languageCode,c.fromLangCode=b.k):c.trackLangCode=b.k;this.log(c);if(b!=this.o.Fe()){this.J&&(c=zt(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Of("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.ha.appendChild(this.ia.Ha),this.ia.Ld(c),this.ia.bd(this.k,this.O.gb()),this.G||(this.G=M(w(this.Ep,this),2E3)));this.publish("publish_external_event","captionschanged",xt(b));cC(this.X);var c=this.B,d=!this.ma&&0<this.o.A.length;c.C=d;uC(c.j,!d);yC(this.B,b.toString());Rs(this,"module-enabled",!0);this.publish("vss_segment")}}cE(this,a.k.concat(a.j))};
function cE(a,b){a.Ka("Caption track loaded with "+b.length+" events.");var c=[];D(b,function(a){a.nb();var b;this.Ba++;b="caption"+this.Ba.toString();c.push(new ys(a.nb(),a.nb()+a.durationMs,{id:b}));this.ua[b]=a},a);a.ed.apply(a,c)}f.Cc=function(a){if(a=dE(this,a))this.ca.push(a),this.H||(this.H=M(w(this.Gi,this),0))};f.Vc=function(a){if(a=dE(this,a))pb(this.ca,a),this.H||(this.H=M(w(this.Gi,this),0))};function dE(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.ua[c]}
f.UE=function(a){if(a instanceof QC){var b=this.K[a.id];ra(a.params,this.k);RC(a);b&&b.type!=SC(a)&&(Ld(b.Ha),delete this.K[a.id],b=null);if(!b){var b=this.K,c=a.id,d;t:{d=a.id;var e=a.params;switch(SC(a)){case 1:d=new HD(d,e);break t;case 2:d=new JD(d,e);break t;default:d=new DC(d,e)}}b=b[c]=d;c=b.Ha;P(c,"captions-asr","asr"==this.A.A);null!=a.params.Gf&&(a.params.Gf=this.Ca?1:0);0==b.id?this.ha.appendChild(c):Ls(this,c)}b.bd(a.params,this.O.gb());if(1==SC(a)){b.wr=a.j;b.Wb={};b.sh=!0;b.Ld(b.wr);
b.Wb.md=b.hc.length;b.Wb.width=b.Ha.offsetWidth;b.Wb.height=b.Ha.offsetHeight;b.Wb.rr=[];b.Wb.sr=[];for(a=0;a<b.Wb.md;a++)b.Wb.sr.push(b.hc[a].offsetTop),b.Wb.rr.push(b.hc[a].offsetLeft);b.sh=!1;b.Ld(b.uh)}}else b=a.windowId,this.W[b]||(this.W[b]=[]),this.W[b].push(a)};f.qq=function(){this.U&&(this.Ud(),Ib(this.K,function(a){a.bf()},this))};
function eE(a){var b=[];Ib(a.K,function(a){a instanceof HD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.za.$d-a.za.$d});var c=fE(a.O).height,d=b[0].za.$d;D(b,function(a){a.za.$d=d;var b=Math.round(a.za.md*a.Pj());d-=Math.round(b/c*100);a.bf()},a)}}f.Ep=function(){this.G=0;Ld(this.ia.Ha)};
f.Gi=function(){this.H=0;this.U&&(Wb(this.W),this.ca.sort(function(a,b){return a.nb()==b.nb()?a.A-b.A:a.nb()-b.nb()}),D(this.ca,this.UE,this),Ib(this.K,function(a,b){this.W[b]?a.Zt(this.W[b]):(Ld(a.Ha),delete this.K[b])},this),eE(this),this.D&&this.D.bf(),this.Ka("Refreshing caption display..."))};function gE(a,b,c){if(c&&c.length){for(var d=a.k[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.k[b]=c[e].option;a.Ud(!0)}}f.az=function(){gE(this,"backgroundOpacity",XB)};
f.bz=function(){gE(this,"textOpacity",YB)};f.cz=function(){gE(this,"windowOpacity",XB)};f.Xy=function(){hE(this,-1)};f.Yy=function(){hE(this,1)};function hE(a,b){var c=a.k.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.k.fontSizeIncrement=c;a.Ud()}function ZD(a){if(a.A){a.A=null;Js(a);a.ca=[];a.ua={};a.A=null;a.Gi();dC(a.X);a.B.off();var b=a.B;b.C=!1;uC(b.j,!0);a.o.Em()}}
function aE(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.J=c),a.Ob?(a.A=b,XD(a,!0),a.Kj("control_subtitles_set_track",xt(b)),a.U||bE(a)):(a.o.Pn(b,w(a.OE,a)),a.oa=!0,yC(a.B,b.toString())))}f.Co=function(a,b){var c=tD(this.o,a);aE(this,c,b);bt(this)};f.ez=function(){this.ma||(Ms(this,this.V),bt(this))};
f.$y=function(){if(!this.ma){this.wg();var a=this.V.getSelected();if(a){var b=this.A,c=new wt;c.k=b.k;c.D=b.D;c.o=b.o;c.A=b.A;c.isDefault=!1;c.F=b.F;c.G=b.G;c.B=b.B;c.j=a;qD(this.o.k,c)&&(a=c.toString(),xC(this.B,pD(this.o.k,!0)),yC(this.B,a));aE(this,c,!0)}}};f.Ty=function(){this.wg();this.Ob&&this.A&&this.Kj("control_subtitles_set_track",xt(this.A))};f.pq=function(){delete this.k;this.k=$b(RD);this.R.setProperties(this.k);Rs(this,"display-settings",this.k);this.Ud()};
f.Ud=function(a){var b=this.O.gb();Ib(this.K,function(a){a.bd(this.k,b)},this);this.D&&this.D.bd(this.k,b);this.ia.bd(this.k,b);this.Gi();n(a)&&!a||Rs(this,"display-settings",this.k)};f.Uy=function(){this.J=!0;iE(this)};function iE(a){a.loaded?a.A&&a.A!=a.o.Fe()?a.Yl():a.As():a.load()}
f.Yl=function(){this.G&&(N(this.G),this.Ep());Rs(this,"module-enabled",!1);this.publish("vss_segment");ZD(this);bt(this);this.J=!1;this.Ob?(XD(this,!1),this.Kj("control_subtitles_set_track")):this.publish("publish_external_event","captionschanged",{});this.o.Fe()&&aE(this,this.o.Fe())};f.dz=function(){Ms(this,this.R);bt(this)};f.Vy=function(){Ns(this,this.F.A+"timedtext_video?v="+this.C.videoId);bt(this)};function jE(a){return QD.prototype.Ga(a)?new QD(a):null}
f.fg=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.k.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.Ud()),this.k.fontSizeIncrement;case "reload":b&&WD(this);break;case "stickyLoading":this.F.zb()&&Rs(this,"module-enabled",!!b);break;case "track":if(b){if(!ja(b))break;if(Vb(b)){this.Yl();break}var c=new wt(b);c.equals(this.A)||(aE(this,c,!0),yC(this.B,c.toString()))}else return this.A?xt(this.A):{};return"";case "tracklist":return this.na?E(pD(this.o.k,b&&b.includeAsr),function(a){return xt(a)}):
[];case "translationLanguages":return this.na?this.o.A:[];case "displaySettings":return b&&ja(b)&&kE(this,b),c=$b(this.k),c.fontFamilyOption=OB[c.fontFamily],c.charEdgeStyle=PB[c.charEdgeStyle],c;case "sampleSubtitles":YD(this,!!b)}};function YD(a,b){if(b&&!a.D){a.D=new DC(98,TB);a.ha.appendChild(a.D.Ha);var c=a.D,d=Y(Xs(a),"YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Ld(d));a.D.bd(a.k,a.O.gb())}else!b&&a.D&&(Ld(a.D.Ha),a.D=null)}
f.eg=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.F.zb()&&a.push("stickyLoading");return a};f.Qn=function(a,b){return a&&v(a)&&NB.test(a)?a:b};f.Rn=function(a,b){return ha(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.QE=function(a,b){if(a&&v(a)){var c=PB.indexOf(a);return-1!=c?c:b}return b};f.RE=function(a,b){if(a&&v(a)){var c=OB.indexOf(a);return-1!=c?c:b}return b};
f.SE=function(a,b){return ha(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var lE=null;function kE(a,b){if(b)if(Zb(b,"reset"))a.pq();else{if(!lE){var c={};c.color=a.Qn;c.textOpacity=a.Rn;c.background=a.Qn;c.backgroundOpacity=a.Rn;c.windowColor=a.Qn;c.windowOpacity=a.Rn;c.charEdgeStyle=a.QE;c.fontFamilyOption=a.RE;c.fontSizeIncrement=a.SE;lE=c}var c=lE,d;for(d in c)switch(d){case "fontFamilyOption":a.k.fontFamily=c[d](b[d],a.k.fontFamily);break;default:a.k[d]=c[d](b[d],a.k[d])}a.Ud($D(a.F))}}f=QD.prototype;
f.Ga=function(a){a=a.getVideoData();var b;if(b=a.Va)b=a.k,b=!(!b||null==b.j.en);return!!(a.wf||a.captionTracks.length||b)};f.oj=function(a){at(this,this.B);a?(this.B.k=this.N,Ys(this,this.N,this.ja)):(this.B.k=null,Zs(this,this.N));$s(this,this.B);a?ZD(this):this.loaded&&(this.unload(),this.load())};function XD(a,b){b?(cC(a.X),yC(a.B,a.A.toString())):(dC(a.X),a.B.off())}f.hp=function(){this.o.seek(this.j.getCurrentTime())};f.lh=function(){var a=this.A;return a?{cc:a.G}:null};
f.Zy=function(){this.J=!0;iE(this)};f.Wy=function(){this.C.captionTracks.length&&WD(this)};f.L=function(){this.Ia.removeAll();this.H&&(N(this.H),this.H=0);this.G&&(Lf(this.G),this.G=0);QD.I.L.call(this)};function mE(){if(void 0==Ut&&(Ut=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);Ut=!0}catch(b){}if(Ut){var a=Array(16),c=new Uint8Array(16);window.crypto.getRandomValues(c);for(var d=0;d<a.length;d++)a[d]=c[d]}else for(a=Array(16),c=0;16>c;c++){for(var d=z(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function nE(){for(var a=mE(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function oE(){return E(mE(),function(a){return(a&15).toString(16)}).join("")};function pE(a){Is.call(this,a);this.ta="ypc_license_checker";this.oc="ypc_license";this.C=!1;this.B=0;this.A=!1;this.k=NaN;this.D=oE();this.o=null}A(pE,Is);
var qE={LICENSE_DENIED_CANNOT_ACTIVATE_RENTAL:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",LICENSE_DENIED_NOT_SIGNED_IN:"YTP_ERROR_NOT_SIGNED_IN",LICENSE_DENIED_VIDEO_NOT_FOUND:"YTP_ERROR_VIDEO_NOT_FOUND",LICENSE_DENIED_NO_ACTIVE_PURCHASE_AGREEMENT:"YTP_ERROR_PURCHASE_REFUNDED",LICENSE_DENIED_PURCHASE_NOT_FOUND:"YTP_ERROR_PURCHASE_NOT_FOUND",LICENSE_DENIED_PURCHASE_EXPIRED:"YTP_ERROR_RENTAL_EXPIRED",LICENSE_DENIED_STREAMING_UNAVAILABLE:"YTP_ERROR_STREAMING_UNAVAILABLE",LICENSE_DENIED_ALREADY_PINNED_ON_A_DEVICE:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",
LICENSE_DENIED_CONCURRENT_PLAYBACK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",LICENSE_DENIED_TOO_MANY_STREAMS_PER_USER:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LICENSE_DENIED_TOO_MANY_STREAMS_PER_ENTITLEMENT:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",LICENSE_DENIED_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",LICENSE_DENIED_UNUSUAL_ACTIVITY:"YTP_ERROR_UNUSUAL_ACTIVITY",LICENSE_DENIED_UNKNOWN:"YTP_ERROR_RETRYABLE_ERROR",LICENSE_DENIED_PLAYBACK_CAP:"YTP_ERROR_LICENSE"};
function rE(a){return zv(a.getVideoData(),"ypc_license_checker_module")}f=pE.prototype;f.Ga=function(){return rE(this.j)};f.create=function(){pE.I.create.call(this);var a=new ys(1E3,2147483646,{priority:0});this.ed(a);this.subscribe("heartbeatparams",this.QF,this);this.subscribe("onStateChange",this.RF,this)};function sE(a){return rE(a)?new pE(a):null}f.destroy=function(){tE(this);pE.I.destroy.call(this)};f.Cc=function(){this.C=!0;uE(this,2E3)};f.QF=function(a){this.o=a;uE(this,2E3)};
f.RF=function(a){W(a.state,2)||W(a.state,64)?tE(this):(W(a.state,1)||W(a.state,8))&&uE(this,2E3)};function vE(a){var b=a.j.getVideoData();return wE(b)?!!a.o:!!b.heartbeatToken||!!b.kb}function uE(a,b){if(!a.k&&a.C&&vE(a)&&(wE(a.j.getVideoData())||!$D(a.j.S()))){var c=b;void 0==c&&(c=a.A?(c=a.j.getVideoData().ne)?c:a.o?1E3*a.o.j:6E4:1E3);a.k=M(w(a.sz,a),c)}}
f.sz=function(){var a,b,c;c=this.j.S().A;var d=this.j.getVideoData();vE(this)?(wE(d)?(b="GET",a={},c=Ke(this.o.url,{request_id:oE()}),d.F&&(c=Ke(c,{vvt:d.F})),d.C&&(c=Ke(c,{access_token:d.C}))):d.heartbeatToken?(b="GET",a={},c=Ke(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.F&&(c=Ke(c,{vvt:d.F})),d.C&&(c=Ke(c,{access_token:d.C}))):(b="POST",a={video_id:d.videoId,player_id:this.D,request_id:oE(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.j.getCurrentTime().toString(),
gid:d.No,ypc_token:d.kb},d.F&&(a.vvt=d.F),d.C&&(a.access_token=d.C),c+="ypc_license_server"),c=Ke(c,{cpn:d.ya}),Ej(c,{format:"RAW",method:b,Ab:a,timeout:3E4,$a:w(this.BA,this),onError:w(this.AA,this),He:w(this.CA,this),withCredentials:!0})):tE(this)};
f.BA=function(a){if(this.k){a=a.responseText;var b;t:if(b=a,this.j.getVideoData().heartbeatToken)b=dg(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(xE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in qE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?yE(this,"decode"):(this.B=0,this.k=NaN,1==b?(this.A=!1,b="YTP_ERROR_LICENSE",this.j.getVideoData().heartbeatToken?a=dg(a).reason||Of(b):((c=a.match(xE))?(a=parseInt(c[1],10))&&(b=et(a)):a in qE&&(b=qE[a]),a=Of(b)),Av(this.j.app.o,"heartbeat",
a,void 0)):(this.A=!0,uE(this)))}};f.AA=function(a){yE(this,"net-"+a.status)};f.CA=function(){yE(this,"timeout")};function yE(a,b){if(a.k){a.log({errorType:b});a.k=NaN;var c=++a.B,d=a.j.getVideoData().qe;c>(d?d:a.o?a.o.k:5)?(c=Of("YTP_ERROR_LICENSE"),Av(a.j.app.o,"heartbeat",c,void 0)):uE(a)}}var xE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function tE(a){a.B=0;a.k&&(N(a.k),a.k=NaN);a.A=!1};function zE(a){X.call(this,a);this.U=new T;S(this,this.U)}A(zE,X);zE.prototype.subscribe=function(a,b,c){return this.U.subscribe(a,b,c)};zE.prototype.unsubscribe=function(a,b,c){return this.U.unsubscribe(a,b,c)};zE.prototype.Lb=function(a){return this.U.Lb(a)};zE.prototype.publish=function(a,b){return this.U.publish.apply(this.U,arguments)};function AE(a,b,c){zE.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.k=a;this.Oa=b;this.B=!1}A(AE,zE);AE.prototype.create=function(){this.B=!0};AE.prototype.destroy=function(){this.B=!1};AE.prototype.$i=function(){return!1};function BE(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}A(BE,X);function CE(){X.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"]]])}A(CE,X);function DE(a,b){zE.call(this,b);this.G=a;this.videoId=null}A(DE,zE);
DE.prototype.Bi=function(a,b){this.videoId=a?a.id||a.video_id:"";P(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c,d=a.list?a.playlist_iurlhq:a.iurlhq_webp||a.iurlhq,e=a.list?a.playlist_iurlmq:a.iurlmq_webp||a.iurlmq;b&&d?c=d:!b&&e?c=e:c=jB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");d=$b(a);d.playlist_length=d.playlist_length||0;d.title=d.title||d.playlist_title;d.author=d.author||d.playlist_author;d.watch=Y(0,"YTP_WATCH_VIDEO_OR_PLAYLIST",
{TITLE:d.title});d.image=c;d.background="background-image: url("+c+")";d.duration=ov(a.length_seconds);d.episodic_title=d.title;d.episodic_index=parseInt(d.index,10)+1;d.episodic_length=d.playlist_length;this.template.update(d)}};function EE(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Y(0,"YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];DE.call(this,a,b)}A(EE,DE);function FE(a,b,c){AE.call(this,a,b,"subscribecard-endscreen");this.A=new BE;S(this,this.A);this.C=new dv(["div","ytp-channel-curtain"]);S(this,this.C);this.o=new CE;S(this,this.o);(this.j=c?new EE(this.k.app.k.k):null)&&S(this,this.j);this.hide()}A(FE,AE);
FE.prototype.create=function(){FE.I.create.call(this);Jd(this.M());this.A.Y(this.M());this.C.Y(this.M());this.o.Y(this.M());var a=this.k.getVideoData().videoId,b=this.D,c=this.k.S().Wa,d=this.k.S().pageId;a&&(a={video_id:a,html5:1,page_subscribe:1},c&&(a.authuser=c),d&&(a.pageid=d),Ej("/get_video_metadata",{method:"GET",onError:t,$a:b,Me:a,context:this}))};
FE.prototype.D=function(a,b){if(this.B){var c=b.user_info,d=this.k.getVideoData();d&&(d.iH=c.external_id);d=c.channel_banner_url;Vf(d)||(d="");var e=c.channel_logo_url||c.image_url;Vf(e)||(e="");iv(this.A.template,"banner",d);iv(this.o.template,"image",e);iv(this.o.template,"author",c.channel_title||c.username);this.j&&b.watch_next&&(this.j.Bi(b.watch_next),this.j.Y(this.M()));c=c.subscription_button_html;this.o.template.j["html5-subscribe-button-container"].innerHTML=c?c:""}};function GE(a,b){return Yh&&HE(a,"947233")||b&&HE(a,"947243")}function HE(a,b){return G(a.experiments.experimentIds,b)}function IE(a,b){return hb(wb(arguments,1),y(G,a.experiments.experimentIds))};function JE(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Y(0,"YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Y(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container"]];X.call(this,c);this.Z=b}A(JE,X);JE.prototype.o=null;JE.prototype.k=null;JE.prototype.j=null;
function KE(a){if(!a.o&&(a.o=a.template.j["ad-container"],a.Z.S().C)){var b=HE(a.Z.S(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";O(a.o,b)}return a.o}function LE(a){a.j&&(a.Z.S().C?(fh(a.j,"ad-video"),ME(a.Z.app,a.j),a.j=null):(Ld(a.j),os(a.j)))}
function NE(a){if(!a.k){if(a.Z.S().Nc){var b=Fd("button");O(b,"video-click-tracking");Id(b,Of("YTP_VISIT_ADVERTISERS_SITE"));var c=Fd("div");O(c,"video-click-tracking-container");c.appendChild(b);KE(a).appendChild(c)}else b=Fd("div"),eh(b,["video-click-tracking","ad-video"]),KE(a).appendChild(b);a.k=b}return a.k}JE.prototype.L=function(){JE.I.L.call(this);this.j&&(ME(this.Z.app,this.j),this.j=null);LE(this);Jd(KE(this));Jd(NE(this));this.k=this.o=null;delete this.Z};
function OE(a){if(!a.j){var b;b=a.Z.app;if(b.j.C){var c=Dg(b.B),d=Og(b.B);b.W=new mg(c.x,c.y,d.width,d.height);PE(b.C);ps(b.B,1);os(b.B);b=b.B}else b=QE.getTag(void 0);a.j=b;eh(a.j,["video-stream","ad-video"])}return a.j};function RE(a,b){this.type=a||"";this.id=b||""}function SE(a){return new RE(a.substr(0,2),a.substr(2))}RE.prototype.toString=function(){return this.type+this.id};function TE(a,b){X.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.j=0;this.A=null}A(TE,X);TE.prototype.B=function(a,b){N(this.j);this.context&&(this.j=lv(w(this.B,this,a,b),b),a.call(this,new Date-this.A))};TE.prototype.L=function(){N(this.j);this.context=null;TE.I.L.call(this)};function UE(a,b){TE.call(this,2*(a+2),2*(a+2));this.D=a;this.k=b;this.C=this.width/2;this.o=this.height/2}A(UE,TE);var VE=3*Math.PI/2,WE=2*Math.PI;function XE(a,b){var c=a.app.k.k,d=["span","videowall-still-info-upnext",Y(0,"YTP_PLAYLIST_UP_NEXT")],e=["span","videowall-still-info-paused",Y(0,"YTP_AUTOPLAY_PAUSED")],g=[["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Y(0,"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","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Y(0,"YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Y(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]];DE.call(this,c,
["a","videowall-still",{tabIndex:5E3,style:"{{background}}",href:"{{linkurl}}","aria-label":"{{watch}}"},["span","videowall-still-featured-label",Y(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",d,["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-cancel"]].concat([e])]]].concat(g));this.Z=
a;this.H=b;this.D={};this.A=this.B=null;this.C=0;this.k=this.o=this.j=null;this.listen("click",this.qy);this.listen("keypress",this.ry)}A(XE,DE);f=XE.prototype;
f.Bi=function(a,b){XE.I.Bi.call(this,a,b);this.D=a.session_data?qj(a.session_data,"&"):null;if((this.B=a.endscreen_autoplay_session_data?qj(a.endscreen_autoplay_session_data,"&"):null)&&!this.k){this.k=new dv(["div","videowall-still-listlabel-autoplay",["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Y(0,"YTP_AUTOPLAY")]," ",["span","videowall-still-listlabel-autoplay-countdown","{{autoplay}}"]]]);S(this,this.k);this.k.Y(this.element);var c=
new IA(this.G);S(this,c);c.listen("click",this.Hp,this);c.Xa(Y(0,"YTP_AUTOPLAY_CANCEL"));this.Z.S().experiments.j?(c.Y(this.template.j["videowall-still-info-cancel"]),JA(c,"videowall-still-info-cancel-button"),KA(c,5100)):(c.Y(this.k.j["videowall-still-listlabel-autoplay"],0),JA(c,"videowall-still-listlabel-autoplay-cancel"));c.qa(Y(0,"YTP_CANCEL"));c=new IA(this.G);S(this,c);c.listen("click",this.Hp,this);c.Y(this.template.j["videowall-still-info-bg"],0);JA(c,"videowall-still-info-close");this.Z.S().experiments.j?
this.o=new UE(44,48):this.o=new UE(40,35);S(this,this.o);O(this.o.M(),"autoplay-play-canvas");this.o.Y(this.element)}this.A=a.list;iv(this.template,"linkurl",YE(this.Z.S(),this.videoId,this.A));var d=c=!1,e=!1;"1"!=a.is_episodic?this.A&&"RD"==SE(this.A).type?e=!0:this.A&&(c=!0):d=!0;P(this.element,"videowall-still-featured",!!a.featured);P(this.element,"videowall-still-list",c);P(this.element,"videowall-still-episodic",d);P(this.element,"videowall-still-mix",e)};
f.select=function(a){ZE(this);$E(this.Z.app,this.videoId,a?this.B:this.D,this.A||void 0,void 0)};
f.En=function(){var a=z()-this.C,b=this.o,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.C,b.o,b.D+2,0,WE);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*b.k;b.context.save();b.context.fillStyle="#fff";b.context.translate(b.C-b.k/3,b.o);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(b.k/1.25,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();b.context.arc(b.C,
b.o,b.D,VE,c*WE+VE,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);iv(this.k,"autoplay",Of("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a?this.select(!0):this.j&&this.j.start()};function aF(a){a.j||(a.C=z(),a.j=new Hv(a.En,50,a),S(a,a.j),a.En(),144E5<bF(a.Z.S())&&ZE(a));O(a.element,"videowall-still-autoplay");fh(a.element,"videowall-still-autoplay-paused")}function ZE(a){a.j&&(wi(a.j),a.j=null)}
function cF(a){ZE(a);a.C=z();a.En();eh(a.element,["videowall-still-autoplay","videowall-still-autoplay-paused"])}f.Hp=function(a){a.preventDefault();dF(this)&&(this.H.log({cancelButtonClick:"1"}),this.publish("autonavchangerequest",1))};function eF(a){dF(a)&&(ZE(a),P(a.element,"videowall-still-autoplay",!1),a.element.blur(),a.publish("autonavchangerequest",1))}function dF(a){return dh(a.element,"videowall-still-autoplay")}f.qy=function(a){!1!==a.Kb.returnValue&&qv(a)&&(this.select(!1),a.preventDefault())};
f.ry=function(a){switch(a.keyCode){case 13:case 32:!1!==a.Kb.returnValue&&(this.select(),a.preventDefault())}};f.L=function(){eF(this);XE.I.L.call(this)};function fF(a,b,c){AE.call(this,a,b,"videowall-endscreen");this.H=c;this.j=[];this.A=this.o=null;this.C=!1;this.G=new Hv(y(O,this.element,"ytp-animate-tiles"),0);S(this,this.G);this.D=new dv(["div","ytp-endscreen-content"]);S(this,this.D);this.D.Y(this.element);this.hide()}A(fF,AE);fF.C=96;fF.B=54;fF.k=1;fF.j=2;f=fF.prototype;
f.create=function(){fF.I.create.call(this);var a=this.k.getVideoData();a&&(this.o=a.N);this.xf();this.Oa.subscribe("onResize",this.xf,this);this.Oa.subscribe("videodatachange",this.N,this);this.Oa.subscribe("autonavchange",this.K,this)};f.destroy=function(){this.Oa.unsubscribe("onResize",this.xf,this);this.Oa.unsubscribe("videodatachange",this.N,this);yi(this.j);this.o=[];this.j=[];fF.I.destroy.call(this)};f.$i=function(){return 1!=this.k.getVideoData().Rd};
function gF(a){a=a.k.S();return a.experiments.o&&"detailpage"==a.da}function hF(a){return gF(a)&&a.k.S().experiments.j&&a.$i()&&!a.A}
f.show=function(){fF.I.show.call(this);this.G.start();if(this.C||this.A&&this.A!=this.k.getVideoData().ya)this.A=null,this.C=!1,this.xf();var a=!this.A&&!!this.j[0].B&&gF(this)&&this.$i();gF(this)&&this.H.log({cancelButtonShow:a?"1":"0",state:this.$i()?"enabled":"disabled"});a?(2==this.k.getVideoData().Rd?aF(this.j[0]):3==this.k.getVideoData().Rd&&cF(this.j[0]),this.j[0].subscribe("autonavchangerequest",this.J,this)):this.A=this.k.getVideoData().ya};
f.hide=function(){fF.I.hide.call(this);this.B&&(this.j[0].unsubscribe("autonavchangerequest",this.J,this),eF(this.j[0]))};
f.xf=function(){if(this.o&&this.o.length){var a=this.element,b;t:{if(dh(this.k.Ma(),"ad-showing")&&(b=ud("ad-container"))){b=Og(b).height+20;break t}b=0}wg(a,"marginBottom",b+"px");var a=Og(this.element),c=fF.C,d=fF.B,e=a.width/a.height,g=c/d,h=b=0,k=Math.max(a.width/c,2),l=Math.max(a.height/d,2);hF(this)&&(k=l=Math.min(k,l));for(var p=this.o.length,u=Math.pow(fF.j,2),x=p*u,L=iF(this,0,l,k),la=iF(this,1,l,k),x=x+(Math.pow(L,2)-u),x=x+(Math.pow(la,2)-u);0<x&&(b<k||h<l);){var Z=b/fF.j,fa=h/fF.j,qa=
b<=k-fF.j&&x>=fa*u,Ne=h<=l-fF.j&&x>=Z*u;if(Z/fa*g>e&&Ne)x-=Z*u,h+=fF.j;else if(qa)x-=fa*u,b+=fF.j;else if(Ne)x-=Z*u,h+=fF.j;else break}g=!1;k=fF.j+L;x>=3*u&&6>=p*u-x&&(h>=k||b>=k)&&la<=fF.j&&(g=!0);c*=b;p=h*d;d=1;d=c/p<e?a.height/p:a.width/c;d=Math.min(d,fF.A);c*=d;p*=d;c*=Kc(a.width/c||1,1,fF.o);p*=Kc(a.height/p||1,1,fF.o);c=Math.floor(Math.min(a.width,c));p=Math.floor(Math.min(a.height,p));hF(this)&&(c=a.width);e=this.D.M();Lg(e,c,p);wg(e,{marginLeft:c/-2+"px",marginTop:p/-2+"px"});d=c+fF.k;u=p+
fF.k;c=0;x=!1;for(k=0;k<b;k++)for(l=0;l<h;l++)if(fa=la>fF.j&&1<=c&&!x?c+1:c,Z=0,g&&k>=b-fF.j&&l>=h-fF.j?Z=1:0==l%fF.j&&0==k%fF.j&&(l<L&&k<L?0==l&&0==k&&(Z=L):la>fF.j&&l>=h-la&&k>=b-la?l==h-la&&k==b-la&&(x=!0,fa=1,Z=la):Z=fF.j),0!=Z){p=this.j[c];p||(p=new XE(this.k,this.H),this.j[c]=p,qa=p.M(),e.appendChild(qa));p.Bi(this.o[fa],2<Z);var fa=Math.floor(u*l/h),qa=Math.floor(d*k/b),Ne=Math.floor(u*(l+Z)/h)-fa-fF.k,je=Math.floor(d*(k+Z)/b)-qa-fF.k;hF(this)&&(qa=0,je=a.width);Bg(p.M(),qa,fa);Lg(p.M(),je,
Ne);wg(p.M(),"transitionDelay",(l+k)/50+"s");P(p.M(),"videowall-still-mini",1==Z);P(p.M(),"videowall-still-takeover",0==c&&hF(this));c++}for(a=this.j.length-1;a>=c;a--)p=this.j[a],Ld(p.M()),wi(p);this.j.length=c}};fF.A=1.42;fF.o=1.21;fF.prototype.N=function(){var a=this.k.getVideoData().N;this.o!=a&&(this.o=a,this.xf())};
fF.prototype.K=function(a){var b=this.j[0]&&dF(this.j[0]);1==a?(this.C=!1,this.A=this.k.getVideoData().ya,b&&eF(this.j[0]),this.j[0]&&this.xf()):(this.C=!0,b&&(2==a?aF(this.j[0]):3==a&&cF(this.j[0])))};fF.prototype.J=function(a){this.K(a);this.publish("autonavchangerequest",a)};function iF(a,b,c,d){var e=a.k.S().experiments,g=a.o.length;return 0==b&&hF(a)?fF.j*Math.floor(Math.min(c,d)/fF.j):0==b&&gF(a)&&!e.j&&c>=2*fF.j&&d>2*fF.j||0==b&&c>=3*fF.j&&d>=3*fF.j&&1<=g&&1==a.o[0].episodic?2*fF.j:fF.j};function jF(a){Is.call(this,a);Nf({});this.ta="endscreen";this.oc="end";this.k=null;var b=a.S();kF(a)?this.k=new fF(this.j,this.P,this):b.yg?(a=b.experiments.F,b=new FE(this.j,this.P,a),a&&Q(b.j.M(),"click",w(this.pC,this)),this.k=b):this.k=new AE(this.j,this.P);this.k.Y(this.j.Ma())}A(jF,Is);function lF(a){return mF(a.S())&&1==Vq(a.app).getPlayerType()}function kF(a){a=a.S();return a.zc&&!a.yg}f=jF.prototype;f.Ga=function(a){return lF(a)};
f.create=function(){jF.I.create.call(this);nF(this);this.j.getVideoData().subscribe("dataupdated",this.bs,this)};f.destroy=function(){this.j.getVideoData().unsubscribe("dataupdated",this.bs,this);Js(this);this.k.B&&this.k.destroy();jF.I.destroy.call(this)};f.load=function(){jF.I.load.call(this);this.k.show();if(this.j.S().yg&&.01>Math.random()){var a=this.j.S().experiments.F;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){jF.I.unload.call(this);this.k.hide()};
f.Cc=function(a){jF.I.Cc.call(this,a);var b=this.j.getVideoData(),c=!kF(this.j)||!(!b.N||!b.N.length);this.j.S();var b=zv(b,"ypc_module"),d=oF(this.j.app);!c||b||d||(this.k.B||this.k.create(),"load"==a.getId()&&this.load())};f.Vc=function(a){"load"==a.getId()&&this.loaded&&this.unload();jF.I.Vc.call(this,a)};f.bs=function(){Js(this);nF(this)};f.pC=function(a){var b=this.k.j.videoId,b=YE(this.j.S(),b,null);Ns(this,b,a.ctrlKey)};
function nF(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new ys(b,2147483647,{id:"preload"}),c=new ys(2147483647,2147483647,{id:"load",priority:6});a.ed(b,c)}function pF(a){return lF(a)?new jF(a):null};function qF(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}A(qF,X);qF.prototype.ej=function(a){iv(this.template,"index",a+1)};function rF(a){bC.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));KA(this,3050);this.element.setAttribute("aria-haspopup",!0);this.qa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}A(rF,bC);function sF(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.j=new rF(a);this.j.Y(this.template.M());S(this,this.j);this.k=new qF;this.k.Y(this.template.M());S(this,this.k)}A(sF,X);function tF(a,b){var c=uF(a,"default.jpg");X.call(this,["div","ytp-playlist-tray-item",{tabIndex:3910,"aria-label":a.title,role:"menuitemradio"},["span","ytp-playlist-tray-item-index",b+1],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:c}],["span","ytp-playlist-tray-item-title",a.title],["span","ytp-playlist-tray-item-author",a.author]]);this.j=b;this.listen("keypress",this.k)}A(tF,X);
tF.prototype.ej=function(a){a=this.j==a;P(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};tF.prototype.k=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Ub("click")};function vF(){zE.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.j=null;this.k=[]}A(vF,zE);function wF(a,b){a.j&&a.j.unsubscribe("shuffle",a.o,a);a.j=b;a.j.subscribe("shuffle",a.o,a);a.o()}vF.prototype.o=function(){yi(this.k);this.k=[];Jd(this.element);for(var a=0;a<=this.j.uc-1;++a){var b=mr(this.j,a);b&&(b=new tF(b,a),b.ej(this.j.Ua),this.k.push(b),b.listen("click",w(this.A,this,a)),b.Y(this.element))}};vF.prototype.A=function(a){this.publish("playvideoat",a)};
vF.prototype.L=function(){yi(this.k);this.k=[];Jd(this.element);vF.I.L.call(this)};function xF(a){Is.call(this,a);var b=a.Ma();this.F=a.app.k.k;this.C=!1;this.o=this.A=null;this.D=ud("ytp-button-playlist",b);Q(this.D,"click",w(this.Bp,this));this.k=this.B=null}A(xF,Is);f=xF.prototype;f.ta="playlist";
f.create=function(){xF.I.create.call(this);yF(this,this.j.kd());this.B=new dv(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.B.Y(this.j.Ma());this.o=new vF;this.o.subscribe("playvideoat",this.oq,this);this.o.Y(this.B.M(),0);this.k=new sF(this.F);this.k.Y(ud("html5-title",void 0),0);this.k.j.listen("click",this.Bp,this);this.subscribe("fullscreentoggled",this.Bq,this);this.subscribe("videodatachange",this.Dq,this);this.subscribe("clearvideooverlays",this.Cq,this);this.Li()};
f.Li=function(){var a=this.j.xr(),b=this.k.k;null!=a?b.show():b.hide();this.k.k.ej(a);a=this.j.kd();iv(this.k.k.template,"length",a.uc)};f.destroy=function(){xF.I.destroy.call(this);yF(this,null);this.unsubscribe("fullscreentoggled",this.Bq,this);this.unsubscribe("videodatachange",this.Dq,this);this.unsubscribe("clearvideooverlays",this.Cq,this);Ld(this.B.M());this.o.dispose();this.o=null;this.B.dispose();this.B=null;Ld(this.k.M());this.k.dispose();this.k=null};
f.load=function(){this.publish("command_clear_video_overlays",!0);xF.I.load.call(this);this.C||(wF(this.o,this.A),this.C=!0);for(var a=this.o,b=0;b<a.k.length;b++)a.k[b].ej(a.j.Ua);cC(this.k.j)};f.unload=function(){xF.I.unload.call(this);this.C=!1;dC(this.k.j)};f.Cq=function(){this.loaded&&this.unload()};f.oq=function(a){this.j.Om(a);this.publish("command_clear_video_overlays",!1)};f.Bp=function(){this.loaded?this.publish("command_clear_video_overlays",!1):this.load()};
f.Bq=function(a){var b=this.j.S().da;this.loaded&&!a&&"detailpage"==b&&this.publish("command_clear_video_overlays",!1)};f.Dq=function(){yF(this,this.j.kd());this.C&&wF(this.o,this.A);this.Li()};function yF(a,b){a.A&&a.A.unsubscribe("shuffle",a.Li,a);a.A=b;a.A&&a.A.subscribe("shuffle",a.Li,a)}xF.Ga=function(a){return!!a.kd()&&!0};xF.prototype.Ga=function(a){return xF.Ga(a)};xF.prototype.Rm=function(a){return!xF.Ga(a)};xF.j=function(a){return xF.Ga(a)?new xF(a):null};
xF.prototype.L=function(){this.o.unsubscribe("playvideoat",this.oq,this);Fh(this.D);xF.I.L.call(this)};function zF(a,b){R.call(this);this.j=a;this.k=!!b}A(zF,R);function AF(a,b,c){if(c)if(a.k)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.j&&(d=BF(a.j));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Ej(d,{format:"JSON",method:"GET",context:a,timeout:600,$a:function(a,d){c(d);CF("success",{v:b})},onError:function(){CF("error",{v:b});c({})},He:function(){CF("timeout",{v:b});DF("__notfound__");c({})}})):c({})}}
function CF(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};cc(c,b);Wx(Ie(c))}zF.prototype.L=function(){this.j=null;zF.I.L.call(this)};function EF(a){R.call(this);(this.j=a)&&DF("//"+a)}A(EF,R);function BF(a){var b;(b=(b=dj("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.j?"//"+a.j:null;return b}function DF(a){var b=dj("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;bj("yt-spacecast-uri",b)};function FF(){R.call(this);this.k=this.j=null}A(FF,R);ba(FF);FF.prototype.init=function(a){this.j||(this.j=new EF(a||null),this.k=new zF(this.j))};FF.prototype.L=function(){this.k&&(this.k.dispose(),this.k=null);this.j&&(this.j.dispose(),this.j=null);FF.I.L.call(this);delete FF.Fb};function GF(a){Is.call(this,a);this.oc=this.ta="spacecast";this.k=null}A(GF,Is);f=GF.prototype;f.Ga=function(){return!!this.j.getVideoData().cb};function HF(a){return a.getVideoData().cb?new GF(a):null}f.create=function(){GF.I.create.call(this);var a=this.j.getVideoData().cb,b=FF.getInstance();b&&b.init(a);this.k=b;this.load()};f.destroy=function(){GF.I.destroy.call(this);this.k=null};
f.load=function(){GF.I.load.call(this);var a=this.j.getVideoData().videoId,b=this.k.k,c=z(),c=w(this.LC,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),CF("prefetch",{v:a})):AF(b,a,c)};f.LC=function(a,b,c){b=z()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};D(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=IF(this,BF(this.k.j),e,g))d=this.j.getVideoData(),d.$=c,JF(d),this.j.Nm("auto"),d=1}}Ks(this);Wx(Ie({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function IF(a,b,c,d){if(!b)return null;a=a.j.getVideoData();a=KF(a.ve);a=fb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=uj(b)||"",g=Number(ze(b)[4]||null)||null;return E(a,function(a){var b=K(K(Ue(Se(mf(a.url),e),g),"orig_host",vj(a.url)),"scid",c);a.url=b.toString();return Ie(a)}).join(",")};function LF(){var a=Pc,b;if(b=Xt())t:{if(navigator.plugins&&0<navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++)if(0<=navigator.plugins[b].name.indexOf("NVIDIA 3D Vision")){b=!0;break t}b=!1}if(b)t:{var c=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(c&&1<c.length&&4<=c[1]){c=document.createElement("embed");c.setAttribute("id","NvImageDetectionFFID");c.setAttribute("style","visibility: hidden");c.setAttribute("width",25);c.setAttribute("height",25);c.setAttribute("type","image/jps");
Id(document.documentElement,c);c=rd("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function MF(a){HA.call(this);this.label=Y(0,"YTP_THREED_SHORT");this.element=new LA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);this.element.Xa(this.label);NA(this.element,2100);this.priority=10;this.B=!0;this.Ea(1)}A(MF,HA);MF.prototype.G=function(){this.element.Ub("select")};MF.prototype.getSelected=function(){return this.element.getSelected()};MF.prototype.Ea=function(a){this.element.Ea(a)};function NF(a){X.call(this,["span"]);this.element.innerHTML=a}A(NF,X);function OF(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.j=new IA(a,"ytp-dialog-button",b);S(this,this.j);this.j.qa(b);b=Y(0,"YTP_CLOSE");this.k=new IA(a,"ytp-dialog-button",b);this.k.qa(b);S(this,this.k);this.template.update({content:new NF(Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.j,this.k]})}A(OF,gC);function PF(a){Is.call(this,a);Nf({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"No HTML5 3D hardware detected",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"Get $BEGIN_LINKhelp setting up HTML5 3D$END_LINK, or change 3D viewing modes.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Change 3D viewing mode"});this.k=new MF(Xs(this));S(this,this.k);this.k.Ea(1);this.k.listen("change",this.HB,this);this.k.listen("select",this.IB,this);this.o=new OF(Xs(this));S(this,this.o);this.o.j.listen("click",this.Lr,this);this.o.k.listen("click",
this.wg,this)}A(PF,Is);f=PF.prototype;f.In="threeDModuleData";f.ta="threed";f.oc="threed";f.create=function(){QF(this.j.app,void 0);$s(this,this.k);PF.I.create.call(this)};f.destroy=function(){at(this,this.k);QF(this.j.app,!0);PF.I.destroy.call(this)};function RF(a){return PF.prototype.Ga(a)?new PF(a):null}f.Ga=function(a){a=a.getVideoData();return LF()?!!a.ma||!!a.Bs:!1};
function SF(a,b){if(a.j.getVideoData().kh!=b)if(Ms(a),LF()){var c=a.j.app,d=Vq(c);d.j.j&&d.j.j.j||(d.j.kh=!d.j.kh,JF(d.j),Xq(d,"r"));QF(c)}else b&&(Ms(a,a.o),a.k.Ea(1),bt(a))}f.Lr=function(){Ns(this,"/select_3d_mode?video_id="+this.j.getVideoData().videoId)};f.HB=function(){0==this.k.getSelected()?SF(this,!0):SF(this,!1)};f.IB=function(){bt(this);this.Lr()};function TF(a){HA.call(this);this.j=2;this.label=Y(0,"YTP_THREED_SHORT");this.menu=new rC(a,w(this.o,this),w(this.C,this));S(this,this.menu);this.element=new mC(a,Y(0,"YTP_WEBGL_ANAGLYPH"),this.menu);S(this,this.element);oC(this.element,100);sC(this.menu,[0,1,2]);a=2100;vC(this.menu,a++);a=a++;KA(this.element.j,a);UF(this,this.j);this.priority=1;this.A=!0}A(TF,HA);function UF(a,b){a.j=b;a.menu.Ea(b);a.element.Sd(a.o(b))}
TF.prototype.o=function(a){switch(a){case 0:return Y(0,"YTP_OFF");case 1:return Y(0,"YTP_WEBGL_3D_2D");case 2:return Y(0,"YTP_WEBGL_3D_ANAGLYPH")}return"."};TF.prototype.C=function(a){this.element.Td();UF(this,a);this.element.Ub("change")};function VF(a,b,c){this.B=null;this.A=-1;this.o=a.getVideoData().la;0!=this.o||"LR"!=a.getVideoData().Bc("yt3d:enable")&&"true"!=a.getVideoData().Bc("yt3d:enable")||(this.o=1);this.j=new TF(a.app.k.k);this.j.listen("change",this.Oy,this);this.j.listen("change",c,this);this.k=null;this.C=!0;$s(b,this.j);S(b,this.j)}function WF(a){if(LF())return!1;a=a.getVideoData();var b;(b=1==a.la||2==a.la)||(b=a.Bc["3D"])||(a=a.Bc("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=VF.prototype;f.bk=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.ak=function(){return"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 == 2)\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  else if (mode == 0)\n    gl_FragColor = texture2D(uSplr, vTexCrd);\n  else if (mode == 1)\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n}"};
f.ck=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.A=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.A);this.k=a.getUniformLocation(b,"mode");a.uniform1i(this.k,this.j.j);var c=1==this.o;a.uniformMatrix4fv(a.getUniformLocation(b,c?"mLt":"mRt"),!1,new Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,c?"mRt":"mLt"),!1,new Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,
0,0,0,0,1]))};f.jj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.j=2;b.qj=4;this.B=b};f.kj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.B);a.vertexAttribPointer(this.A,this.B.j,a.FLOAT,!1,0,0)};f.tj=function(){};f.sj=function(){};f.uj=function(){};f.zj=function(a,b){this.C&&a.uniform1i(this.k,this.j.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.nj=function(){return!0};f.Aj=function(){return!1};f.Oy=function(){this.C=!0};f.destroy=function(a){at(a,this.j)};function XF(){this.j=new Float32Array(16);this.o=new Float32Array(16);this.k=new Float32Array(16);this.identity()}XF.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};XF.prototype.get=function(){return this.j};
function YF(a,b){for(var c=0;16>c;c+=4)a.k[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.k[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.k[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.k[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.k;a.k=c};function ZF(){this.A=new XF;this.G=this.F=this.D=null;this.B=!1;this.C=this.o=this.j=this.k=0}function $F(a){if(!a.k)return!1;for(var b in a.k.j){var c=a.k.j[b].info.video;if(c&&2==c.projectionType)return!0}return!1}f=ZF.prototype;f.bk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.ak=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float tanFOVx;uniform float tanFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tanFOVx, pos.y * tanFOVy, -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);}"};
f.ck=function(a,b){this.D=a.getUniformLocation(b,"uVMat");a.uniformMatrix4fv(this.D,!1,this.A.get());a.uniform1f(a.getUniformLocation(b,"tanFOVx"),Math.tan(.35*xy));a.uniform1f(a.getUniformLocation(b,"tanFOVy"),Math.tan(.35));this.G=a.getUniformLocation(b,"uSplr");a.uniform1i(this.G,0)};f.jj=function(a){this.F=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.F);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.kj=function(){};
f.sj=function(a){switch(a.keyCode){case 65:case 97:case 68:case 100:case 87:case 119:case 83:case 115:0==this.o&&(this.C=Date.now()),this.o=a.keyCode}};f.tj=function(){this.o=0};f.uj=function(a,b){this.k+=3.1415*a;this.j+=3.1415*b;this.B=!0};
f.zj=function(a,b,c,d){if(this.o){c=Date.now();var e=.002*(c-this.C);switch(this.o){case 65:case 97:this.k+=e;break;case 68:case 100:this.k-=e;break;case 87:case 119:this.j+=e;break;case 83:case 115:this.j-=e}this.C=c;this.B=!0}if(this.B){this.j=Kc(this.j,-1.57075,1.57075);this.A.identity();c=this.A;var g=this.j,e=Math.sin(g),g=Math.cos(g);c.o.set([1,0,0,0,0,g,e,0,0,-e,g,0,0,0,0,1]);YF(c,c.o);c=this.A;g=this.k;e=Math.sin(g);g=Math.cos(g);c.o.set([g,0,-e,0,0,1,0,0,e,0,g,0,0,0,0,1]);YF(c,c.o);a.uniformMatrix4fv(this.D,
!1,this.A.get());this.B=!1}a.clearColor(0,0,0,1);a.clear(a.DEPTH_BUFFER_BIT|a.COLOR_BUFFER_BIT);a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,d);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.F);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0)};f.nj=function(){return!1};f.Aj=function(){return 0!=this.o};f.destroy=function(){};function aG(){this.k=null;this.j=-1}f=aG.prototype;f.bk=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.ak=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.ck=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.j=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.j)};f.jj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.j=2;b.qj=4;this.k=b};f.kj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.k);a.vertexAttribPointer(this.j,this.k.j,a.FLOAT,!1,0,0)};f.tj=function(){};f.sj=function(){};f.uj=function(){};
f.zj=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.nj=function(){return!0};f.Aj=function(){return!1};f.destroy=function(){};function bG(){this.A=null;this.o=-1;this.j=43758.5453;this.k=null}f=bG.prototype;f.bk=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.ak=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nfloat noise(float n)\n{\n    return fract(sin(n) * seed);\n}\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr,\n      vec2(vTexCrd.x, 1.0 - vTexCrd.y)).xyz, 1.0);\n  float amt = 0.035;\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  float noiseL = noise(gl_FragCoord.x + gl_FragCoord.y * 2000.0) * amt;\n  col.xyz = col.xyz + noiseL;\n  gl_FragColor = col;\n}"};
f.ck=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.k=a.getUniformLocation(b,"seed");a.uniform1f(this.k,this.j);this.o=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.o)};f.jj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),a.STATIC_DRAW);b.j=2;b.qj=4;this.A=b};f.kj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.A);a.vertexAttribPointer(this.o,this.A.j,a.FLOAT,!1,0,0)};f.tj=function(){};
f.sj=function(){};f.uj=function(){};f.zj=function(a,b){this.j+=1;a.uniform1f(this.k,this.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.nj=function(){return!0};f.Aj=function(){return!1};f.destroy=function(){};function cG(a,b,c,d){this.U=c;this.o=a.app.k.j;this.G=10;this.B=!0;this.O=this.K=this.N=this.A=this.k=null;this.D=b;this.j=null;this.R=a;this.J=d;this.F=this.C=-1;this.H=!1}
function dG(a){a.k=document.createElement("canvas");if(!a.k)return 1;a.U(a.k);try{a.A=a.k.getContext("webgl")}catch(b){return 2}if(null==a.A)return 3;eG(a);var c=fG(a);if(0!=c)return c;a.k.addEventListener("click",a.uz.bind(a),!0);a.k.addEventListener("mousedown",a.vz.bind(a));a.k.addEventListener("mousemove",a.wz.bind(a));a.k.addEventListener("mouseup",a.xz.bind(a));var c=a.A,d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,
0]),c.STATIC_DRAW);a.K=d;a.j.jj(c);c=a.A;d=c.createTexture();c.bindTexture(c.TEXTURE_2D,d);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);a.N=d;c=a.A;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.K);c.vertexAttribPointer(a.P,3,c.FLOAT,!1,0,0);c.activeTexture(c.TEXTURE0);
c.bindTexture(c.TEXTURE_2D,a.N);a.j.kj(c);a.Qd();a.o.crossOrigin="use-credentials";return 0}
function fG(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.bk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.ak());b.compileShader(d);if(!b.getShaderParameter(c,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.P=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.P);a.O=e;a.j.ck(b,a.O);return 0}f=cG.prototype;f.Qd=function(){this.A&&(this.o.videoWidth||this.o.videoHeight)&&(eG(this),this.j.zj(this.A,this.o,this.K,this.N));(this.B||this.j.Aj())&&requestAnimationFrame(this.Qd.bind(this))};
function eG(a){if(0==a.G&&null!=a.o.offsetParent){if(a.j.nj())var b=a.o.offsetWidth,c=a.o.offsetHeight,d=a.o.offsetTop;else b=a.o.offsetParent.offsetWidth,d=a.o.offsetParent.offsetHeight;c=9*b/16;a.k.top=d;a.k.width=b;a.k.height=c;a.A.k=b;a.A.j=c;a.A.viewport(0,0,b,c)}}f.uz=function(a){this.H&&(a.stopPropagation(),this.H=!1)};f.vz=function(a){this.C=a.x;this.F=a.y};
f.wz=function(a){-1!=this.C&&this.j&&(this.j.uj((a.x-this.C)/this.k.width,(a.y-this.F)/this.k.height),this.C=a.x,this.F=a.y,this.H=!0,this.B||requestAnimationFrame(this.Qd.bind(this)))};f.xz=function(){this.F=this.C=-1};f.Xz=function(){this.B||requestAnimationFrame(this.Qd.bind(this));bt(this.J)};function gG(a){a.k&&(Ld(a.k),a.k=null);a.A=null;a.B=!1;a.j&&a.j.destroy(a.J);a.j=null;a.o.removeAttribute("crossorigin");a.o.hidden=!1;a.G=10};function hG(a){Is.call(this,a);this.Xi=!0;this.ta="webgl";this.subscribe("onResize",this.KC,this);this.subscribe("onKeyPress",this.IC,this);this.subscribe("onKeyDown",this.HC,this);this.subscribe("onKeyUp",this.JC,this);this.subscribe("onStateChange",this.xe,this);this.B=I("DIV",iG.GC);Ls(this,this.B);this.A=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)if(a="",WF(this.A))a="Anaglyph3D";else{var b=this.A.getVideoData();$F(b)&&this.A.S().experiments.spherical?
a="Spherical":this.A.S().experiments.C&&(a="NoOp")}this.k=new cG(this.A,a.toString(),w(this.B.appendChild,this.B),this);this.o=!1}A(hG,Is);var iG={GC:"video-annotations"};hG.j=function(a){return hG.Ga(a)?new hG(a):null};hG.prototype.Ga=function(){return hG.Ga(this.j)};hG.Ga=function(a){var b;(b=WF(a)&&a.S().experiments.na)||(b=a.getVideoData(),b=$F(b)&&a.S().experiments.spherical);return b||a.S().experiments.C?!0:!1};f=hG.prototype;f.KC=function(){this.o&&eG(this.k)};
f.IC=function(){if(this.o){var a=this.k;a.j&&(a.B||requestAnimationFrame(a.Qd.bind(a)))}};f.JC=function(a){if(this.o){var b=this.k;b.j&&(b.j.tj(a),b.B||requestAnimationFrame(b.Qd.bind(b)))}};f.HC=function(a){if(this.o){var b=this.k;b.j&&(b.j.sj(a),b.B||requestAnimationFrame(b.Qd.bind(b)))}};f.xe=function(a){if(this.o){var b=this.k,c=b.B;b.B=W(a.state,8);b.B&&!c&&requestAnimationFrame(b.Qd.bind(b))}};f.L=function(){hG.I.L.call(this)};
f.create=function(){var a=this.k;a.j=null;null!=a.D&&("Anaglyph3D"==a.D?a.j=new VF(a.R,a.J,a.Xz.bind(a)):"Spherical"==a.D?a.j=new ZF:"WhiteNoise"==a.D?a.j=new bG:"NoOp"==a.D&&(a.j=new aG));a.j&&(a.G=dG(a),0==a.G?a.o.hidden=!0:(a.R.app.o.Zh(new Dq("html5.missingapi.webgl",!1)),gG(a)));this.o=null!=this.k.j;hG.I.create.call(this)};f.destroy=function(){gG(this.k);this.o=!1;hG.I.destroy.call(this)};function jG(a){Is.call(this,a);Nf({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.o=this.k=null}A(jG,Is);f=jG.prototype;f.ta="ypc_clickwrap";f.oc="ypc-clickwrap";f.Ga=function(){return zv(this.j.getVideoData(),"ypc_clickwrap_module")};function kG(a){return zv(a.getVideoData(),"ypc_clickwrap_module")?new jG(a):null}f.create=function(){jG.I.create.call(this);this.load()};
f.load=function(){jG.I.load.call(this);this.k=new dv(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Of("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().A.ypc_clickwrap_message],["button","ytp-ypc-clickwrap-confirm",Of("YTP_YPC_START_RENTAL_BUTTON")]]);this.k.Y(this.j.Ma());S(this,this.k);this.o=this.k.j["ytp-ypc-clickwrap-confirm"];Q(this.o,"click",w(this.Zz,this))};
f.unload=function(){jG.I.unload.call(this);Fh(this.o);this.k.detach();this.k.dispose();this.k=null};f.Zz=function(){Ks(this);this.destroy()};function lG(a){a=a.A;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.B=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Vf(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.k=a.ypc_item_url;this.videoId=a.ypc_vid};function mG(){X.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);var a=this.template.j["ytp-drawer-open-button"];nv(this,this.template.j["ytp-drawer-close-button"],"click",this.hide);nv(this,a,"click",this.show);this.j=new Hv(y(fh,this.element,"ytp-drawer-closed"),0);S(this,this.j);this.qa(null);this.hide()}A(mG,X);mG.prototype.hide=function(){this.j.stop();O(this.element,"ytp-drawer-closed")};
mG.prototype.qa=function(a){a?(mG.I.qa.call(this,a),kv(this.element,"block")):kv(this.element,"none")};mG.prototype.show=function(){this.j.start()};function nG(a,b){T.call(this);this.j=new mG;S(this,this.j);this.k=document.createElement("div");O(this.k,"html5-ypc-endscreen");this.A=document.createElement("div");O(this.A,"html5-ypc-overlay");this.o=new dv(["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","{{button_label}}"]]);S(this,this.o);this.B=
this.o.j["html5-ypc-purchase"];Q(this.B,"click",w(this.C,this));Ud(this.A,b.A);var c=b.title;b.k&&(c=["a",{href:b.k,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.o.update({heading:b.B,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.Y(a)}A(nG,T);nG.prototype.L=function(){nG.I.L.call(this);this.B&&Fh(this.B);Ld(this.k);Ld(this.A)};nG.prototype.Y=function(a){this.j.Y(a);this.j.qa(this.o.M());a.appendChild(this.k)};
function oG(a){var b=a.o.M();a.k.appendChild(b);a.j.qa(null);kv(a.k,"block")}nG.prototype.C=function(){this.publish("ypcContentRequest")};function pG(a){Is.call(this,a);this.o=this.k=null;this.B=NaN;this.A=null}A(pG,Is);f=pG.prototype;f.ta="ypc";f.oc="ypc";f.Ga=function(){return zv(this.j.getVideoData(),"ypc_module")};function qG(a){return zv(a.getVideoData(),"ypc_module")?new pG(a):null}f.create=function(){pG.I.create.call(this);this.k=new lG(this.j.getVideoData());M(w(this.QB,this),0);this.A=new X(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.A.Y(this.j.Ma())};
f.destroy=function(){pG.I.destroy.call(this);this.k=null;this.A.detach();this.A.dispose();this.A=null};f.QB=function(){this.Nd&&!this.loaded&&this.load()};
f.load=function(){pG.I.load.call(this);var a=this.j.getVideoData();if(this.k.videoId&&!a.na)this.j.nq({video_id:this.k.videoId,ypc_preview:1});else{this.o=new nG(this.A.M(),this.k);this.o.subscribe("ypcContentRequest",this.Sy,this);this.k.videoId&&Hd(this.A.M(),this.o.A);if(mF(this.j.S())){var b=new ys(2147483647,2147483647,{priority:2});this.ed(b)}this.o.j.show();N(this.B);this.B=M(w(function(){this.o.j.hide()},this),1E4);this.k.videoId?a.na&&Ks(this):oG(this.o)}};
f.unload=function(){Js(this);yi(this.o);this.o=null;pG.I.unload.call(this)};f.Cc=function(a){pG.I.Cc.call(this,a);oG(this.o)};f.Vc=function(a){pG.I.Vc.call(this,a);a=this.o;kv(a.k,"none");a.j.qa(a.o.M())};f.Sy=function(){if(this.k.j)"embedded"==this.j.S().da?ex(this.k.j):dx(this.k.j);else if(this.k.offerId){var a=r("yt.www.watch.player.handleEndPreview");a&&(this.j.isFullscreen()&&fy(this.j.app),a(this.k.offerId))}};function rG(a){this.A=Math.exp(Math.log(.5)/a);this.j=this.o=0}rG.prototype.k=function(a,b){var c=Math.pow(this.A,a);this.j=b*(1-c)+c*this.j;this.o+=a};rG.prototype.B=function(){return this.j/(1-Math.pow(this.A,this.o))};function sG(a){this.k=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}sG.prototype.add=function(a){this.j=(this.j+1)%this.k.length;this.k[this.j]=a};sG.prototype.forEach=function(a){for(var b=this.j+1;b<this.k.length;b++)a(this.k[b]||0);for(b=0;b<=this.j;b++)a(this.k[b]||0)};function tG(a,b,c){this.G=0;this.D=a;this.A=b||.5;this.C=c||0;this.F="index";this.j=0;this.o=[]}tG.prototype.k=function(a,b){uG(this,"index");this.o.push({index:this.G++,weight:a,value:b});this.j+=a;for(uG(this,"index");this.j>this.D;){var c=this.j-this.D,d=this.o[0];d.weight<=c?(this.j-=d.weight,this.o.shift()):(this.j-=c,d.weight-=c)}};function vG(a,b){uG(a,"value");var c=b*a.j,d=0,e=NaN;a.o.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
tG.prototype.B=function(){return this.C?(vG(this,this.A-this.C)+vG(this,this.A)+vG(this,this.A+this.C))/3:vG(this,this.A)};function uG(a,b){a.F!=b&&(a.F=b,Cb(a.o,b))};function wG(){this.j={}}function xG(a,b){var c=a.j[b]||{Id:0,done:0,vp:0,gp:0};return a.j[b]=c};function yG(a){this.policy=a;this.j=new wG;this.o=this.C=this.D=0;this.G=new sG(100);this.F=0;this.H=z();this.B=new tG(16,.6);this.A=new rG(4);this.policy.k?this.k=new rG(17):this.k=new tG(17,.5,.1);a=dj("yt-player-bandwidth")||{};this.k.k(this.policy.j,0<a.byterate?a.byterate:13E4);0<a.delay&&this.B.k(1,Math.min(+a.delay,2));0<a.tailDelay&&this.A.k(1,+a.tailDelay);this.o=z()}function zG(a,b,c){b=Math.max(b,.05);a.k.k(b,c/b);AG(a)}
function BG(a,b,c){isNaN(c)||(a.C+=c);isNaN(b)||(a.D+=b/1E3);AG(a)}function CG(a){a=a.B.B();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function DG(a){return a.A.B()||0}function EG(a){a=a.k.B();return 0<a?a:1}function FG(a){var b={};b.delay=CG(a);b.tailDelay=DG(a);b.byterate=EG(a);return b}function GG(a){3E4<z()-a.o&&(Aq(FG(a)),a.o=z())}function AG(a){var b=z();a.H=b;500<b-a.F&&(a.G.add(1/(1/EG(a)+DG(a))),a.F=b)}function HG(a){return 4E3<=z()-a.H};function IG(){this.j=.5;this.k=!1};function JG(a,b,c,d){this.name=a;this.language=b;this.isDefault=d}JG.prototype.toString=function(){return this.name};function KG(a){this.k=a;this.B=this.A=this.C="";this.j={};this.o=""}KG.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.o="")};KG.prototype.get=function(a){LG(this);return this.j[a]||null};function MG(a){a.o||(a.o=NG(a));return a.o}function OG(a){LG(a);return Kb(a.j,function(a){return null!==a})}
function LG(a){if(a.k){var b=a.k;if(!b||-1==b.search(Af))throw Error("Untrusted URL: "+a.k);b=mf(a.k);a.C=b.Ib;a.B=b.ob+(null!=b.ld?":"+b.ld:"");var c=b.Jb;if(0==c.indexOf("/videoplayback"))a.A="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.A=c.substr(0,d),c=c.substr(d+1)):(a.A=c,c="")}d=a.j;a.j=PG(c);ra(a.j,QG(b.jq()));ra(a.j,d);a.k="";a.o=""}}
function NG(a){LG(a);var b=a.C+(a.C?"://":"//")+a.B+a.A;if(OG(a)){var c=[];Ib(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function PG(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&(c[a[b]]=a[b+1]);return c}function QG(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?b[d.substr(0,e)]=d.substr(e+1):d&&(b[d]="")}return b};function RG(a,b){this.start=a;this.end=b;this.length=b-a+1}function SG(a){a=a.split("-");return 2==a.length&&(a=new RG(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function TG(a,b){return new RG(a,a+b-1)}RG.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function UG(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""}function VG(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};function WG(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.j=a;this.sourceURL=d;this.startTime=b;this.aa=e||null};function XG(){this.ga=[]}f=XG.prototype;f.Bj=function(a){return(a=YG(this,a))?a.duration:0};f.ll=function(a){return this.Bj(a)};f.Yg=function(){return this.ga[0].j};f.Gb=function(){return this.ga[this.ga.length-1].j};f.sf=function(){return this.ga[this.ga.length-1].endTime};f.Mt=function(){return this.ga[0].startTime};f.Jt=function(){return this.ga.length};f.$j=function(){return 0};f.rh=function(a){return(a=ZG(this,a))?a.j:-1};f.bu=function(a){return YG(this,a).sourceURL};
f.Hf=function(a){return(a=YG(this,a))?a.startTime:0};f.Nn=function(){return 0<this.ga.length};function YG(a,b){var c=yb(a.ga,new WG(b,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.ga[c]:null}function ZG(a,b){var c=yb(a.ga,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ga[c]:a.ga[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=tb(a),0==this.ga.length)this.ga=a;else{var b=this.ga.length?bb(this.ga).endTime:0,c=a[0].j-this.Gb();1<c&&nb(this.ga);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.ga.push(a[c])}}};function $G(a,b){var c=jb(a.ga,function(a){return a.j>=b},a);0<c&&a.ga.splice(0,c)};function aH(a){this.j=a;this.k={};this.o=""}aH.prototype.set=function(a,b){this.j.get(a);this.k[a]=b;this.o=""};aH.prototype.get=function(a){return this.k[a]||this.j.get(a)};function bH(a,b){var c=b.indexOf("?");if(0<c){var d=QG(b.substr(c+1));Ib(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=PG(b);Ib(d,function(a,b){this.set(b,a)},a)}function ED(a){a.o||(a.o=cH(a));return a.o}
function cH(a){var b=MG(a.j),c=[];Ib(a.k,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=OG(a.j)?"&":"?";return b+a+d}function dH(a,b){var c=new KG(b);Ib(a.k,function(a,b){c.set(b,null)});return c};function eH(a){this.j=a;this.k=0;this.o=-1}var fH=0;function gH(a,b){this.index=null;this.info=b;this.j=null;this.B=this.o=!1;this.C=new eH(a)}gH.prototype.Pl=function(){return!1};gH.prototype.Sc=function(){return!1};gH.prototype.Gs=function(a){return[a]};gH.prototype.Fi=function(a){return[a]};function hH(a,b,c,d,e,g,h,k,l){this.j=b;this.aa=c;this.type=a;this.A=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.o=h||0;this.k=0<=k?k:this.aa?this.aa.length:NaN;this.F=!!l;this.aa?(this.C=this.o+this.k==this.aa.length,this.B=this.startTime+this.duration*this.o/this.aa.length,this.G=this.duration*this.k/this.aa.length):(this.C=0!=this.k,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G}function iH(a){return 1==a.type||2==a.type}
function jH(a,b){return a.j==b.j&&a.aa.start+a.o+a.k==b.aa.start+b.o}function kH(a){ab(1==a.length||ib(a,function(a){return!!a.aa}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new RG(a[0].aa.start+a[0].o,b.aa.start+b.o+b.k-1)}function lH(a){var b="i="+a.j.info.id+",s="+a.A;a.aa&&(b=b+",r="+(a.aa.start+a.o)+"-"+(a.aa.start+a.o+a.k-1));return b=b+",t="+a.B.toFixed(1)+","+(a.B+a.G).toFixed(1)};function mH(a,b){this.k=a[0].j.C;this.o=b||"";this.j=a;this.aa=this.j[0].aa&&0<this.j[0].k?kH(this.j):null}function FD(a){var b;/http[s]?:\/\//.test(a.o)?b=new aH(new KG(a.o)):(b=new aH(a.k.j),a.o&&bH(b,a.o));a.aa&&b.set("range",a.aa.toString());return b}function nH(a){if(a.aa)return a.aa.length;a=a.j[0];return Math.round(a.G*a.j.info.pa)};function oH(a,b,c,d,e){gH.call(this,a,b);this.index=e||new XG;this.A=d||null;this.D=c;this.k=!0}A(oH,gH);f=oH.prototype;f.Ci=function(){return!1};f.ct=function(){var a=new hH(1,this,this.A);return[new mH([a],this.D)]};function DD(a,b){a.Lg(b);return pH(a,b.C?b.A+1:b.A,!1)}f.Si=function(a,b){var c=this.index.rh(a);b&&(c=Math.min(this.index.Gb(),c+1));return pH(this,c,!0)};f.$p=function(a){this.j=new Uint8Array(qH(a).buffer)};f.Pl=function(){return!1};f.Sc=function(){return null!==this.j&&this.index.Nn()};
f.Lg=function(a){return 0==a.k?!0:this.index.Gb()>a.A&&this.index.Yg()<=a.A+1};f.update=function(a,b,c){this.index.append(a);$G(this.index,c);this.k=b};function pH(a,b,c){var d=a.index.bu(b),e=a.index.Hf(b),g=a.index.Bj(b);c?g=c=0:c=0<a.info.pa?a.info.pa*g:1E3;a=new hH(3,a,null,b,e,g,0,c,b==a.index.Gb()&&!a.k&&0<c);return new mH([a],d)};function rH(a,b){this.Xd=a;this.context=b};function sH(a,b,c){this.k=a;this.Xd=b;this.j=c}function tH(){this.j=[];this.k=null;this.A=0;this.o=[]}
tH.prototype.update=function(a){var b=void 0;this.k&&(b=this.k);var c=b,b=+UG(a,"timescale")||1,d=+UG(a,"startNumber")||0,e=0,g=1;c&&(e=c.Xd+c.j,g=d-c.k);c=new tH;g=0<g?0:-g+1;c.A=g;for(a=a.getElementsByTagName("S");g<a.length;g++){var h=a[g],k=+h.getAttribute("d")/b,l=new sH(d+g,e,k);c.j.push(l);var e=e+k,k=h.getAttribute("yt:cuepointTimeOffset"),p=h.getAttribute("yt:cuepointDuration"),h=h.getAttribute("yt:cuepointContext")||null;k&&p&&c.o.push(new rH(+k/b+l.Xd,h))}c.j.length&&(c.k=bb(c.j));this.A=
c.A;this.k=c.k||this.k;this.j=c.j;ub(this.o,c.o)};function uH(a){var b=a.o;a.o=[];return b};function vH(){this.A=[];this.B=!1;this.j=null;this.k={};this.o={}}function wH(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 tH:"AdaptationSet"==e.nodeName?a.k[e.attributes.mimeType.value]=new tH:"Representation"==e.nodeName&&(a.o[e.attributes.id.value]=new tH)}a.B=!0}
function xH(a,b){a.B||wH(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var g=d[e].parentNode.parentNode,h=null;"Period"==g.nodeName?h=a.j:"AdaptationSet"==g.nodeName?h=a.k[g.attributes.mimeType.value]:"Representation"==g.nodeName&&(h=a.o[g.attributes.id.value]);if(null==h)return;h.update(d[e]);ub(c,uH(h))}Bb(c,function(a){return a.Xd});ub(a.A,c)}function yH(a){a.j&&(a.j.j=[]);Ib(a.k,function(a){a.j=[]});Ib(a.o,function(a){a.j=[]})};function zH(a,b){var c=AH(a,0,1836019558);if(!c)return null;var d=AH(a,c.offset+8,1835427940),e=AH(a,c.offset+8,1953653094);if(!d||!e)return null;var g=AH(a,e.offset+8,1952868452),h=AH(a,e.offset+8,1953658222),k=AH(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=AH(a,e.offset+8,1935763823),e=AH(a,e.offset+8,1935763834);if(l){var p=BH(l),u=BH(l);if(0!=p||1!=u)return null;p=BH(l)}for(var x=BH(g),L=BH(g),la=x&2,Z=x&1?CH(g):0,fa=la?BH(g):0,qa=x&8?BH(g):0,u=x&16?BH(g):0,Ne=x&32?BH(g):0,x=BH(h),
je=x&1,Qs=x&4,aA=x&256,g=x&512,E1=x&1024,F1=x&2048,x=BH(h),G1=je?BH(h):0,H1=Qs?BH(h):0,je=[],AN=[],rB=[],sB=[],BN=0,Te=0,Xb=0;Xb<x;Xb++){var I1=aA?BH(h):qa;g&&je.push(BH(h));var yd=Ne;Qs&&0==Xb?yd=H1:E1&&(yd=BH(h));AN.push(yd);yd=F1?BH(h):0;0==Xb&&(BN=yd);rB.push(Te+yd);sB.push(Xb);Te+=I1}Ab(sB,function(a,b){return rB[a]-rB[b]});h=[];for(Xb=0;Xb<x;Xb++)h[sB[Xb]]=Xb;Te=la?4:0;Xb=16*x;yd=68+Te+k.size+Xb+(l?l.size:0)+(e?e.size:0);c=yd-c.size;qa=new DH(yd);EH(qa,yd);EH(qa,1836019558);FH(qa,d);EH(qa,yd-
24);EH(qa,1953653094);EH(qa,16+Te);EH(qa,1952868452);EH(qa,131072|(la?2:0));EH(qa,L);la&&EH(qa,fa);FH(qa,k);EH(qa,20+Xb);EH(qa,1953658222);EH(qa,16781057);EH(qa,x);EH(qa,Z+G1+c);for(Xb=Te=0;Xb<x;Xb++)k=h[Xb],d=Math.round(b*k/x),k=Math.round(b*(k+1)/x)-d,yd=d-Te+BN,EH(qa,k),EH(qa,g?je[Xb]:u),EH(qa,AN[Xb]),EH(qa,yd),Te+=k;l&&(EH(qa,l.size),EH(qa,1935763823),EH(qa,0),EH(qa,1),EH(qa,p+c));e&&FH(qa,e);return qa.data.buffer}
function AH(a,b,c){for(;GH(a,b);){var d=HH(a,b);if(d.type==c)return d;b+=d.size}return null}function HH(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new IH(a,b,c,d)}function JH(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function GH(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}function IH(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}
function BH(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}function CH(a){var b=JH(a.data,a.offset+a.j);a.j+=8;return b}IH.prototype.skip=function(a){this.j+=a};function DH(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function EH(a,b){a.data.setInt32(a.j,b);a.j+=4}function FH(a,b){for(var c=0;c+4<=b.size;)EH(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.j++,b.data.getUint8(b.offset+c++))};function KH(a,b,c,d){this.info=a;this.buffer=b;this.aa=c;this.j=d}function qH(a){return a.aa?new DataView(a.buffer,a.aa.start,a.aa.length):new DataView(a.buffer)}function LH(a){if(a.info.k!=a.aa.length)return!1;if(1==a.info.j.info.j){if(8>a.info.k||4==a.info.type)return!0;var b=qH(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.k&&1936286840==b;if(3==a.info.type&&0==a.info.o)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function MH(a){var b;if(1==a.info.j.info.j){var c=NaN,d=NaN;b=0;for(a=new DataView(a.buffer);GH(a,b);){var e=HH(a,b);if(1936286840==e.type)d=e.data.getUint32(e.offset+16);else if(1836476516==e.type)var d=e,g=d.data.getUint8(d.offset+8)?28:20,d=d.data.getUint32(d.offset+g);else 1952867444==e.type&&(c=e,c=c.data.getUint8(c.offset+8)?JH(c.data,c.offset+12):c.data.getUint32(c.offset+12));g=e.type;b=1836019558==g||1836019574==g||1953653094==g?b+8:b+e.size}b=c/d}else b=NaN;return b};function NH(){this.ka=0;this.j=new Float64Array(128);this.k=new Float64Array(128);this.A=1;this.o=!1}f=NH.prototype;f.$j=function(a){return this.j[a]};f.Hf=function(a){return this.k[a]/this.A};f.Bj=function(a){a=this.ll(a);return 0<=a?a/this.A:-1};f.ll=function(a){return a+1<this.ka||this.o?this.k[a+1]-this.k[a]:-1};f.Yg=function(){return 0};f.Gb=function(){return this.ka-1};f.sf=function(){return this.o?this.k[this.ka]/this.A:NaN};f.Mt=function(){return 0};f.Jt=function(){return this.ka};f.bu=function(){return""};
f.rh=function(a){a=yb(this.k.subarray(0,this.ka),a*this.A);return 0<=a?a:Math.max(0,-a-2)};f.Nn=function(){return 0<=this.Gb()};function OH(a){if(a.j.length<a.ka+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new Float64Array(b+1);var d=a.k;a.k=new Float64Array(b+1);for(b=0;b<a.ka+1;b++)a.j[b]=c[b],a.k[b]=d[b]}}function PH(a,b){this.k=a;this.j=0;this.o=b||0}function QH(a){for(var b=RH(a,!1);236==b;)SH(a),b=RH(a,!1);return b}
function TH(a){var b=RH(a,!0),c=a.k.byteOffset+a.j,d=Math.min(b,a.k.buffer.byteLength-c),c=new DataView(a.k.buffer,c,d),c=new PH(c,a.o+a.j);a.j+=b;return c}function UH(a){for(var b=RH(a,!0),c=VH(a),d=1;d<b;d++)c=256*c+VH(a);return c}function SH(a){var b=RH(a,!0);a.j+=b}function RH(a,b){var c=VH(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+VH(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+VH(a),e*=128;return b?c-e:c}function VH(a){return a.k.getUint8(a.j++)};function WH(a,b,c,d,e,g){gH.call(this,a,b);this.initRange=c;this.indexRange=d;this.A=null;this.index=new NH;this.k=e;this.lastModified=g}A(WH,gH);f=WH.prototype;f.Sc=function(){return!(!this.j||!this.index.Nn())};
f.ct=function(a){var b=new hH(1,this,this.initRange),c=new hH(2,this,this.indexRange),d=[],e=[b];jH(b,c)?e.push(c):(d.push(new mH([c])),a=0);isNaN(this.k)?a=0:a>this.k&&(a=this.k);b=e[e.length-1];c=b.aa.end-e[0].aa.start+1;a>c&&(a=TG(b.aa.end+1,a-c),e.push(new hH(4,this,a)));d.push(new mH(e));return d};
f.$p=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.buffer,a.aa.start,a.aa.length)}else if(2==a.info.type){if(this.A||0<=this.index.Gb())return;if(1==this.info.j){var b=this.index,c=qH(a),d=a.info.aa.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.A=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),h=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.j[0]=h+(e+d);
b.k[0]=g;b.o=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var k=c.getUint32(a,!1),h=c.getUint32(a+4,!1);a+=12;g=b;g.ka++;OH(g);g.j[g.ka]=g.j[g.ka-1]+k;g.k[g.ka]=g.k[g.ka-1]+h}}else this.A=qH(a)}if(rt(this.info)&&this.j&&this.A){c=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;g=this.A;c=new PH(c);if(440786851==QH(c)&&(SH(c),408125543==QH(c))){d=c;e=d.j;a=RH(d,!0);d.j=e;for(var c=TH(c),d=c.o+c.j,l=QH(c);357149030!=l;)SH(c),l=QH(c);c=TH(c);h=1E6;k=1E9;for(e=0;!(c.j>=
c.k.byteLength);)if(l=QH(c),2807729==l)h=UH(c);else if(2807730==l)k=UH(c);else if(17545==l){var e=c,l=RH(e,!0),p=0;4==l?p=e.k.getFloat32(e.j):8==l&&(p=e.k.getFloat64(e.j));e.j+=l;e=p}else SH(c);b.A=k/h;c=new PH(g);if(475249515==QH(c)){for(c=TH(c);!(c.j>=c.k.byteLength);)if(l=QH(c),187==l){g=TH(c);h=d;if(179!=QH(g))k=null;else if(k=UH(g),183!=QH(g))k=null;else{g=TH(g);for(l=h;!(g.j>=g.k.byteLength);)241==QH(g)?l=UH(g)+h:SH(g);k=[l,k]}g=b;h=k[0];k=k[1];OH(g);g.j[g.ka]=h;g.k[g.ka]=k;g.ka++}else SH(c);
c=a+d;a=e;OH(b);b.o=!0;b.k[b.ka]=a;b.j[b.ka]=c}}this.A=null}};function XH(a,b,c,d){for(var e=[];b<=a.index.Gb();b++){var g;g=a.index;var h=b;g=TG(g.$j(h),h+1<g.ka||g.o?g.j[h+1]-g.j[h]:-1);var h=a.index.Hf(b),k=a.index.Bj(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new hH(3,a,g,b,h,k,l,p,b==a.index.Gb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new mH(e)}
f.Gs=function(a){for(var b=this.Fi(a.info),c=[],d=a.j,e=0;e<b.length;e++){var g=TG(b[e].aa.start+b[e].o-a.info.aa.start+a.aa.start,b[e].k);c.push(new KH(b[e],a.buffer,g,d));d=!1}return c};f.Fi=function(a){for(var b=0;b<this.index.Gb()&&a.aa.start>=this.index.$j(b+1);)b++;return XH(this,b,a.aa.start,a.aa.length).j};f.Lg=function(a){return this.Sc()?!0:isNaN(this.k)?!1:a.aa.end+1<this.k};
function YH(a,b,c){a.Lg(b);if(!a.Sc())return c=TG(b.aa.end+1,c),c.end+1>a.k&&(c=new RG(c.start,a.k-1)),a=[new hH(4,b.j,c)],new mH(a);4==b.type&&(b=a.Fi(b),b=b[b.length-1]);var d=0,e=b.aa.start+b.o+b.k;3==b.type&&(d=b.A,e==b.aa.end+1&&(d+=1));return XH(a,d,e,c)}f.Si=function(a,b){var c=this.index.rh(a);b&&(c=Math.min(this.index.Gb(),c+1));return XH(this,c,this.index.$j(c),0)};f.Pl=function(){var a;if(a=this.Sc()&&!isNaN(this.k))a=this.index,a=(a.o?a.j[a.ka]:-1)!=this.k;return a};f.Ci=function(){return!0};function ZH(a,b){T.call(this);this.N=!!b;this.F=this.duration=0;this.isLive=this.B=!1;this.H=z();this.C=Infinity;this.j={};this.J=a||"";this.K=this.G=0;this.D=!1;this.k=this.A=0;this.o=null}A(ZH,T);ZH.prototype.getErrorCode=function(){return 3>this.k?"manifest.net":"manifest.net.retryexhausted"};function $H(a){return Kb(a.j,function(a){return!!a.info.A},a)}var aI=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function bI(a,b){var c=new ZH;D(a,function(a){var e=a.type,g=a.itag,h=null;ut(e)&&(h=a.size.split("x"),h=new Nt(+h[0],+h[1],+a.fps,+a.projection_type));var k=null,l=null;tt(e)&&(k=new ot,a.name&&(l=new JG(a.name,a.lang,0,"1"==a.isDefault)));a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,u=null;b&&a.drm_families&&(u={},D(a.drm_families.split(","),function(a){u[a]=b[a]}));e=new pt(g,e,k,h,l,u,p);h=SG(a.init);k=SG(a.index);l=cI(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,10);
l&&(c.j[g]=new WH(l,e,h,k,p,a))});return c}function dI(a){if(!a)return 0;var b=aI.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function cI(a,b,c){a=new KG(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",encodeURIComponent(b.mimeType.split(";")[0]));c&&a.set("signature",gt(c));return a}
function eI(a){var b=UG(a,"id"),b=b.replace(":",";");"captions"==b&&(b=UG(a,"lang"));var c=UG(a,"mimeType"),d=UG(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(UG(a,"bandwidth"),10)/8,e=null;ut(c)&&(e=new Nt(parseInt(UG(a,"width"),10),parseInt(UG(a,"height"),10),parseInt(UG(a,"frameRate"),10)));var g=null,h=null;if(tt(c)){g=new ot;var h=UG(a,"lang")||"",k=VG(a,"Role");if(k){var k=UG(k,"value")||"",l="invalid";"main"==k?l="original":"dub"==k?l="dubbed":"descriptive"==k?l="descriptive":"commentary"==
k&&(l="commentary");h="invalid"!=l&&h?new JG(UG(a,"yt:langName")||h+" - "+l,h,0,"original"==l):null}else h=null}k=null;if(a=VG(a,"ContentProtection"))if((k=a.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==k.textContent)for(k={},a=a.firstChild;null!=a;a=a.nextSibling)"yt:SystemURL"==a.nodeName&&(k[a.attributes.type.textContent]=a.textContent.trim());else k=null;return new pt(b,c,g,e,h,k,d)}
function fI(a,b,c,d){a.A=1;b=b||a.J;c={format:"RAW",method:"GET",Pb:w(a.O,a,c,d||null)};a.N&&(c.timeout=15E3);Ej(b,c)}
ZH.prototype.O=function(a,b,c){this.K=c.status;if(200<=c.status&&400>c.status){b=c.responseText;c=(new DOMParser).parseFromString(b,"text/xml").getElementsByTagName("MPD")[0];b=c.getElementsByTagName("Representation");if(0<c.getElementsByTagName("SegmentList").length){this.C=1E3*dI(UG(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.C;this.B=!0;this.F=parseInt(UG(c,"yt:earliestMediaSequence"),10);this.o||(this.o=new vH);xH(this.o,c);this.publish("refresh");for(c=0;c<b.length;c++){var d=
eI(b[c]);if(!this.j[d.id]){var e=cI(VG(b[c],"BaseURL").textContent,d),g=VG(b[c],"Initialization"),h=UG(g,"sourceURL"),g=SG(UG(g,"range"));this.j[d.id]=new oH(e,d,h,null===g?void 0:g)}for(var d=this.j[d.id],e=this.o,h=d,g=$a(h.info.mimeType,";",1)[0],h=e.o[h.info.id]||e.k[g]||e.j||null,e=wb(VG(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.A),h=h.j,g=[],k=0;k<e.length;k++)g.push(gI(e[k],h[k]));d.update(g,this.isLive,this.F)}yH(this.o)}else i:for(this.duration=dI(UG(c,"mediaPresentationDuration")),
c=0;c<b.length;c++){g=b[c];d=eI(g);h=VG(g,"BaseURL");e=cI(h.textContent,d);k=VG(g,"SegmentBase");g=SG(k.attributes.indexRange.value);k=SG(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new WH(e,d,k,g,h,NaN);if(!d)break i;this.j[d.info.id]=d}this.H=z();this.A=2;this.D=!1;this.k=0;a&&a(this);this.publish("loaded")}else this.A=3,this.D?this.k+=1:this.D=!0,b&&b(c),this.publish("load_error")};
function gI(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=SG(e):c=c+"?range="+e);return new WG(b.k,b.Xd,b.j,c,d)}function Fr(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.sf();return NaN}function hI(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.Mt();return 0}function iI(a,b){Ib(a.j,function(a){Ib(b,function(b,e){a.C.j.set(e,b)})})};function jI(a,b,c,d){this.o={};this.K=a;this.H=b;a=c.split("#");this.F=parseInt(a[0],10);this.D=parseInt(a[1],10);this.k=parseInt(a[2],10);this.Db=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.B=parseInt(a[5],10);this.A=a[6];this.C=a[7];this.J=d}f=jI.prototype;f.getHeight=function(){return this.D};f.Lf=function(){return this.k};f.isDefault=function(){return-1!=this.A.indexOf("default")};
function kI(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.K.toString()),c=c.replace("$M",b.toString());a.C&&(c=Ke(c,{sigh:a.C}));return c}function lI(a,b){var c=Math.floor(b/(a.Db*a.rows)),d=a.Db*a.rows,e=b%d,g=e%a.Db,e=Math.floor(e/a.Db),h=a.rows,k=a.vn()+1-d*c;k<d&&(h=Math.ceil(k/a.Db));return{url:kI(a,c),mF:g,Db:a.Db,row:e,rows:h,qu:a.F*a.Db,pu:a.D*h}}f.Ji=function(a){var b=this.Lf()-1;a=0==this.B?Math.round(a*this.k/this.J):Math.round(1E3*a/this.B);return Kc(a,0,b)};
f.vn=function(){return this.k-1};f.ht=function(){return this.k?0:-1};f.Nt=function(){};function mI(a,b){this.j=this.k(a,b);this.o={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}mI.prototype.k=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.A(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};mI.prototype.A=function(a,b,c,d){return new jI(a,b,c,d)};function nI(a,b){var c=a.o[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].F>=b)return a.o[b]=d;a.o[b]=c-1;return c-1}mI.prototype.B=function(){};function oI(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");jI.call(this,a,b,c,0);this.j=null;this.G=d?3:0}A(oI,jI);f=oI.prototype;f.Lf=function(){return this.j?this.j.Jt():-1};f.Ji=function(a){var b=this.rows*this.Db*this.G,c=-1,d=-1,e=this.j;e&&(c=e.Gb(),d=e.rh(a));return d>c-b?-1:d};f.vn=function(){return this.j?this.j.Gb():-1};f.ht=function(){return this.j?this.j.Yg():-1};f.Nt=function(a){this.j=a?a.index:null};function pI(a,b){this.C=b;mI.call(this,a,0)}A(pI,mI);pI.prototype.k=function(a,b){return pI.I.k.call(this,"$N|"+a,b)};pI.prototype.A=function(a,b,c){return new oI(a,b,c,this.C.isLive)};pI.prototype.B=function(a){for(var b=0;b<this.j.length;b++)this.j[b].Nt(a)};var qI={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};function rI(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Ke(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function sI(a,b){return void 0==b?a:"1"==b?!0:!1}function tI(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function uI(a,b){return void 0==b?a:Number(b)}function vI(a,b){return void 0==b?a:b.toString()}function wI(a,b){var c=vI(a,b);c&&(c=Xf(c));return c}var xI=/^([0-9\.]+)\:([0-9\.]+)$/;function yI(a){if(a&&(a=a.match(xI))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function zI(a,b){var c=Bt.auto,d=Bt[b];return d>=Bt.medium?new Dt(d,c,!1):d>=c?new Dt(c,d,!1):a};var AI={fJ:0,oI:1,VI:2};function BI(a,b,c){c=c||{};Lj(c.Wa,c.pageId,w(CI,m,a,b,c),c.onError)}
function CI(a,b,c){var d={};0===b?d.action_like_video=1:1===b?d.action_dislike_video=1:d.action_indifferent_video=1;d.video_id=a;d.plid=c.playbackId;c.playlistId&&(d.list=c.playlistId);c.Wa&&(d.authuser=c.Wa);c.pageId&&(d.pageid=c.pageId);a={screen:Ie({h:screen.height,w:screen.width,d:screen.colorDepth})};c.VF&&(a.station_id=c.VF);Ej("/watch_actions_ajax",{format:"XML",method:"POST",Me:d,Ab:a,$a:c.$a,onError:c.onError,Pb:c.Pb})};function DI(a,b){this.j=a;this.k=b}DI.prototype.getValue=function(){return this.k};DI.prototype.clone=function(){return new DI(this.j,this.k)};function EI(a){this.j=[];if(a)t:{var b,c;if(a instanceof EI){if(b=a.Ja(),c=a.La(),0>=a.Qa()){a=this.j;for(var d=0;d<b.length;d++)a.push(new DI(b[d],c[d]));break t}}else b=Qb(a),c=Pb(a);for(d=0;d<b.length;d++)FI(this,b[d],c[d])}}function FI(a,b,c){var d=a.j;d.push(new DI(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}f=EI.prototype;
f.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)nb(a);else{a[0]=a.pop();for(var a=0,b=this.j,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].j<b[g].j?h:g;if(b[g].j>e.j)break;b[a]=b[g];a=g}b[a]=e}return c.getValue()}};f.La=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};f.Ja=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.kg=function(a){return hb(this.j,function(b){return b.getValue()==a})};
f.clone=function(){return new EI(this)};f.Qa=function(){return this.j.length};f.isEmpty=function(){return mb(this.j)};f.clear=function(){nb(this.j)};function GI(){EI.call(this)}A(GI,EI);function HI(a,b){T.call(this);this.j=a;this.o=new GI;this.B={};this.A=b||""}A(HI,T);HI.prototype.k=!1;function II(a,b,c){var d;for(c=nI(a.j,c);0<=c;){d=a.j.j[c];if(d=d.o[Math.floor(b/(d.Db*d.rows))]?lI(d,b):null)return d;c--}return lI(a.j.j[0],b)}function JI(a,b,c){c=nI(a.j,c);for(var d,e;0<=c;c--)if(d=a.j.j[c],e=Math.floor(b/(d.Db*d.rows)),!d.o[e]){d=a;var g=c,h=g+"-"+e;d.B[h]||(d.B[h]=!0,FI(d.o,g,{lq:g,mq:e}))}KI(a)}
function KI(a){if(!a.k)if(a.o.isEmpty())a.k=!1;else{a.k=!0;var b=a.o.remove(),c=new Image;a.A&&(c.crossOrigin=a.A);c.src=Yf(kI(a.j.j[b.lq],b.mq));c.onload=w(a.C,a,b.lq,b.mq)}}HI.prototype.C=function(a,b){this.k=!1;var c=this.j.j[a];c.o[b]=!0;KI(this);var d,e=c.Db*c.rows;d=b*e;c=Math.min(d+e-1,c.Lf()-1);d=[d,c];this.publish("l",d[0],d[1])};function zr(a){T.call(this);this.Aq=new H(0,0);this.Ia=this.ja=!1;this.se="";this.te=this.ua=!1;this.ib={};this.captionTracks=[];this.va=[];this.ie=[];this.V=new At("und","Default","und",!0);this.Ca=0;this.Xt=new Hv(this.Wt,5E3,this);S(this,this.Xt);this.H=[];this.A={};this.keywords={};this.B={};LI(this,a)}A(zr,T);zr.D=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;zr.j=1;zr.A=-21;zr.B=18E3;zr.C="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(" ");
zr.k={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};zr.o=["www.youtube.com","manifest.googlevideo.com"];f=zr.prototype;f.adModule=!1;f.adaptiveFormats="";f.ys=null;f.allowEmbed=!0;f.yb=!1;f.xh="";f.Zm="";f.Gk=!1;f.bq=zr.j;f.Th=null;f.hs=null;f.author="";f.Uh=0;f.Di=!1;f.Lp=3;f.ws=!1;f.wf="";f.ya="";f.contentCheckOk=!1;f.oe=0;f.al=!1;f.ci=!1;f.Uk=!1;f.uf=0;f.Df=!1;f.Xo=!1;f.Sh=0;f.Ho=!1;f.sg=!1;f.Zo=!0;f.$h=!1;f.im=!1;f.hm=!1;
f.Va=!1;f.jm=!1;f.Ll=!1;f.Cd=!1;f.rq=!1;f.km=!1;f.Ry=0;f.lengthSeconds=0;f.tk=0;f.hu=!1;f.racyCheckOk=!1;f.Rd=1;f.Tl=Ft;f.Pp=0;f.Xk=!1;f.startSeconds=0;f.nk=null;f.Sn=2;f.zi=Ft;f.Bs=!1;f.kh=!1;f.ue=null;f.title="";f.ve="";f.hk=null;f.Dk="vvt";f.iu=!1;f.$o=!1;f.clipStart=0;f.clipEnd=Infinity;
function Er(a,b){var c=b||{};c.iv_invideo_url&&(a.xh=Xf(c.iv_invideo_url));c.iv_cta_url&&(a.Zm=Xf(c.iv_cta_url));c.cta_conversion_urls&&(a.Mc=c.cta_conversion_urls);a.author=vI(a.author,c.author);a.Di=sI(a.Di,c.cc_asr);var d=c.ttsurl||a.wf;d&&Sf(d)?a.wf=d:a.wf=wI(a.wf,c.ttsurl);c.caption_tracks&&c.caption_audio_tracks&&(MI(a,c.caption_tracks),a.va=KF(c.caption_audio_tracks),NI(a,c.caption_translation_languages));a.ya=vI(a.ya,c.cpn);a.subscribed=vI(a.subscribed,c.subscribed);a.Sn=tI(a.Sn,c.sentiment,
AI);a.title=vI(a.title,c.title);a.na=vI(a.na,c.ypc_preview);a.hu=sI(a.hu,c.paygated);a.iu=sI(a.iu,c.requires_purchase);c.keywords&&(a.keywords=OI(c.keywords));c.rvs&&(a.N=KF(c.rvs));a.contentCheckOk=sI(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=sI(a.racyCheckOk,"1"==c.rco);a.C=vI(a.C,c.oauth_token);D(zr.C,function(a){a in c&&(this.A[a]=c[a])},a)}
function LI(a,b){var c=b||{};a.yb="1"!=c.hlsdvr||ai||Yh&&5>Wr?!1:!0;a.Gk="1"==c.infringe||"1"==c.muted;a.$c=c.authkey;a.Wa=c.authuser;a.ya||(a.ya=c.cpn||nE());a.ty=z();a.$v=c.t;a.al=sI(a.al,c.cenchd);a.ci=sI(a.ci,c.enable_cardio);a.Uk=sI(a.Uk,c.enable_cardio_before_playback);a.uf=uI(a.uf,c.end||c.endSeconds);a.xa=vI(a.xa,c.itct);a.Zo="1"!=c.no_get_video_log;a.$h="1"==c.tmi;a.im=sI(a.im,c.noiba);a.hm="1"==c.livemonitor;a.Va="1"==c.live_playback;a.jm=sI(a.jm,c.mdx);a.Ll=sI(a.Ll,c.on3g);a.km=sI(a.km,
c.utpsa);for(var d in zr.k){var e=c[d+"_webp"]||c[d];Vf(e)&&(a.ib[zr.k[d]]=e)}a.F=vI(a.F,c.vvt);a.nz=c.osig;a.Rh=c.ptchn;a.So=c.oid;a.K=c.ptk;a.To=c.pltype;a.playbackId=c.plid;a.G=c.eventid;a.tb=c.osid;a.sv=c.vm;a.rv=c.of;a.playlistId=vI(a.playlistId,c.list);a.ep=c.pyv_view_beacon_url;a.Hw=c.pyv_quartile25_beacon_url;a.Iw=c.pyv_quartile50_beacon_url;a.Jw=c.pyv_quartile75_beacon_url;a.Gw=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=
c.ppv_remarketing_url);a.purchaseId=c.purchase_id;a.fp=c.sdetail;!a.fb&&c.session_data&&(a.fb=qj(c.session_data,"&").feature);a.pe=1==uI(a.pe?1:0,c.is_fling);a.rb=vI(a.rb,c.ctrl);a.Mb=vI(a.Mb,c.ytr);a.ke=c.ytrcc;a.$o="1"==c.skip_kansas_logging;a.yc=vI(a.yc,c.cl);a.Tl=zI(a.Tl,c.vq);a.zi=zI(a.zi,c.suggestedQuality);a.la=c.approx_threed_layout||0;a.Bs="1"==c.threed_converted;a.startSeconds=uI(a.startSeconds,c.start||c.startSeconds);a.Go=sI(a.Go,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||a.videoId;
a.Fo=vI(a.Fo,c.vss_credentials_token);a.Dk=vI(a.Dk,c.vss_credentials_token_type);PI(a,c.watermark);a.No=vI(a.No,c.ypc_gid);a.kb=vI(a.kb,c.ypc_license_session_token);a.heartbeatToken=vI(a.heartbeatToken,c.heartbeat_token);a.ne=uI(a.ne,c.heartbeat_interval);a.qe=uI(a.qe,c.heartbeat_retries);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.Xo=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ca=
c.atc);c.license_info&&(a.ys=QI(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.Ho="1"==c.autonav);c.autoplay&&(a.sg="1"==c.autoplay);c.iv_load_policy&&(a.oa=RI(c.iv_load_policy,a.oa));c.cc_load_policy&&(a.Lp=RI(c.cc_load_policy,2));"0"==c.dash&&(a.ws=!0);c.dashmpd&&(a.O=Ke(c.dashmpd,{cpn:a.ya}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O))&&(e=gt(e[1]),a.O=a.O.replace(d,"/signature/"+e));c.delay&&(a.oe=Wa(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.H.push("fresca");
c.idpj&&(a.Sh=Wa(c.idpj));c.url_encoded_fmt_stream_map&&(a.ve=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.R=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Wa(c.length_seconds));c.ldpj&&(a.tk=Wa(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.bq=SI(a));c.partnerid&&(a.X=Wa(c.partnerid));c.probe_url&&(a.probeUrl=Yf(Ke(c.probe_url,{cpn:a.ya})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(yf)&&(a.ha=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(yf)&&(a.ia=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&
(d=c.video_masthead_ad_quartile_urls,a.Ba=d.quartile_0_url,a.Fg=d.quartile_25_url,a.Wh=d.quartile_50_url,a.Vh=d.quartile_75_url,a.tg=d.quartile_100_url);c.spacecast_address&&(a.H.push("spacecast"),a.cb=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Va||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.ma=c.threed_module,a.Kw=6);c.two_stage_token&&(a.Th=c.two_stage_token);c.url_encoded_third_party_media&&(a.ue=KF(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.hs=c.watch_ajax_token);
c.ypc_module&&a.H.push("ypc");c.ypc_clickwrap_module&&a.H.push("ypc_clickwrap");a.Yo=vI(a.Yo,c.ucid);D("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.B[a]=c[a])},a);a.B.focEnabled=sI(a.B.focEnabled,c.focEnabled);a.B.rmktEnabled=sI(a.B.rmktEnabled,c.rmktEnabled);a.A=c;Er(a,c);TI(a)}function TI(a){(a.Va||a.hm)&&"1"==a.A.as3fb||!zu()||a.ws||(a.adaptiveFormats?a.k=bI(UI(a,a.adaptiveFormats),a.ys):a.O&&(a.Df=!0,a.ja=!0))}
f.Wz=function(a){this.fa()||(this.k=a,this.k.subscribe("refresh",this.lt,this),zx("mrc"),this.k&&(this.lengthSeconds=this.k.duration||Fr(this.k)||this.lengthSeconds),this.sm())};f.lt=function(){this.k.isLive||this.k.unsubscribe("refresh",this.lt,this);var a=wb(this.k.o.A,this.Ca);0<a.length&&(this.publish("cuepointupdated",a),this.Ca+=a.length)};f.sm=function(){this.fa()||(this.Df=!1,this.ua&&!VI(this)?this.publish("dataloaderror",new Dq("fmt.noneavailable",!0)):this.publish("dataloaded",this.A))};
function JF(a){if(!a.fa()){a.j=null;a.U=null;a.J=null;if(a.$){var b=UI(a,a.$);a.J=Cu(b,!1);a.j=new Kt(E(a.J,function(a){return a.getInfo()}))}!a.j&&a.k&&(a.j=Fu(a.k));if(a.j)WI(a);else{if(a.ue&&a.rq)a.J=Du(a.ue);else{b=UI(a,a.ve);if(a.R){var c=rI(a.R,a.ya,-1==a.R.indexOf("/ibw/")&&!a.Ll);b.push(c)}a.J=Cu(b,!!a.ma||a.kh)}a.J.length&&(a.j=new Kt(E(a.J,function(a){return a.getInfo()})))}a.Pp=Math.min(.8*a.lengthSeconds,180)}}function wE(a){return a.o&&a.o.A||null}
f.Bc=function(a){return v(this.keywords[a])?this.keywords[a]:null};function XI(a){a.hk||(a.A.storyboard_spec?a.hk=new mI(a.A.storyboard_spec,Wa(a.A.length_seconds)):a.A.live_storyboard_spec&&a.k&&(a.hk=new pI(a.A.live_storyboard_spec,a.k)));return a.hk}function YI(a){var b=XI(a);!a.nk&&b&&(a.nk=new HI(b),S(a,a.nk));return a.nk}function Hr(a){return a.k&&!isNaN(hI(a.k))?hI(a.k):0}function ZI(a){return!a.fa()&&!(!a.videoId&&!a.ue)}
function VI(a){return ZI(a)&&!a.Df&&!a.ja&&(!!(a.k||a.ve||a.ue||a.$||a.R)||G(a.H,"fresca")||G(a.H,"ypc"))}function $I(a,b,c){a.fa()||(a.se=b,a.ua=!!c,a.Df=!0,a.Wt())}f.Wt=function(){Ej(this.se,{format:"RAW",method:"GET",context:this,$a:this.mG,onError:this.yu});zx("vir")};
function uF(a,b){if(30==a.X){var c=a.ib["default.jpg"];return c?c:a.videoId?Ke("//docs.google.com/vt",{id:a.videoId,authuser:a.Wa,authkey:a.$c}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=a.ib[b])||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:jB(a.videoId,b)}f.mG=function(a){if(!this.fa()){var b=a.responseText;b?(this.Df=!1,a=sj(b),"fail"==a.status?this.publish("onStatusFail",a):(zx("virc"),LI(this,a),this.sm())):this.yu(a)}};
f.yu=function(a){if(!this.fa()){var b="manifest.net",c=!0,d="rc."+a.status;this.ua&&(this.te?b="manifest.net.retryexhausted":(this.te=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Xt.start()));this.publish("dataloaderror",new Dq(b,c,d))}};function SI(a){return a.perceptualLoudnessDb?(a=Math.min(zr.A-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):zr.j}function RI(a,b){var c=parseInt(a,10);return Ob(Uz,c)?c:b}
function KF(a){a=a.split(",");return a=a.map(function(a){return sj(a)})}function UI(a,b){var c=KF(b);D(c,function(a){a.url&&(a.url=Ke(a.url,{cpn:this.ya}))},a);return c}function OI(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function PI(a,b){if(b){var c=b.split(",");2<=c.length&&(a.W=c[1],Vf(a.W)&&-1==a.W.search(zr.D)||(a.W=""))}}function QI(a){a=KF(a);var b={};D(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}
function MI(a,b){for(var c=KF(b),d=0;d<c.length;d++){var e=c[d];a.captionTracks.push(new wt({wH:e.is_translatable,languageCode:e.language_code,languageName:e.name,url:e.base_url,xH:e.vss_id,kind:e.kind}))}}function NI(a,b){for(var c=KF(b),d=0;d<c.length;d++){var e=c[d];a.ie.push(new vt({languageCode:e.language_code,languageName:e.language_name}))}}
function WI(a){for(var b=a.j?a.j.audioTracks:[],b=b.concat(a.V),c=0;c<a.va.length;c++)for(var d=a.va[c],e=0;e<b.length;e++){var g=b[e];if(g.name==d.audio_track_language_name||g==a.V&&"original"==d.audio_content_type){g.languageCode=d.language_code;for(var h=d.caption_track_indices.split(","),k=0;k<h.length;k++)g.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.default_caption_track_index&&(g.zn=a.captionTracks[parseInt(d.default_caption_track_index,10)]);d.forced_caption_track_index&&(g.Vm=a.captionTracks[parseInt(d.forced_caption_track_index,
10)]);g.Ws=parseInt(d.visibility,10)}}}function zv(a,b){return!!a.A[b]}function aJ(a){return a.Va&&!a.yb}function bJ(a){return a.Va&&a.yb};function cJ(a){T.call(this);this.views=0;this.j=[];this.k=[];this.Ua=Math.max(0,a.index||0);this.Rf=!!a.loop;this.startSeconds=a.startSeconds||0;this.Yq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";a.video_id&&(this.j[this.Ua]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.A=0;if(a.list)switch(a.listType){case "user_uploads":dJ(this,a.list);break;case "user_favorites":eJ(this,a.list);break;
case "search":fJ(this,a.list);break;default:a.playlist_length&&(this.uc=a.playlist_length),this.o=SE(a.list),0==a.fetch&&a.videoList?gJ(this,a.videoList):hJ(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ua&&(this.j=[]);D(b,function(a){a&&this.j.push({video_id:a})},this);this.uc=this.j.length;b=E(this.j,function(a){return a.video_id});iJ(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.Dd=!0}else a.videoList&&gJ(this,a.videoList);lr(this,!!a.shuffle);
a.suggestedQuality&&(this.quality=a.suggestedQuality)}A(cJ,T);f=cJ.prototype;f.Rf=!1;f.startSeconds=0;f.Wr=!1;f.Ua=0;f.title="";f.uc=0;f.Yq=!1;f.Dd=!1;f.Dh=!1;f.je=null;function jJ(a){return a.Rf||a.Ua+1<a.uc}function kJ(a){var b=a.Ua+1;b>=a.uc&&(b=a.Rf?0:-1);return b}function lJ(a){var b=kJ(a);if(-1==b)return null;mJ(a,b);return mr(a,b)}function nJ(a){var b;b=a.Ua-1;0>b&&(b=a.Rf?a.uc-1:-1);if(-1==b)return null;mJ(a,b);return mr(a,a.Ua)}
function mr(a,b){var c=void 0!=b?b:a.Ua,c=a.j&&c in a.j?a.j[a.k[c]]:null,d=null;c&&(d=new zr(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.o&&(d.playlistId=a.o.toString()));return d}
function lr(a,b){a.Wr=b;var c=a.k&&null!=a.k[a.Ua]?a.k[a.Ua]:a.Ua;a.k=[];for(var d=0;d<a.j.length;d++)a.k.push(d);a.Ua=c;a.A++;if(a.Wr){c=a.k[a.Ua];for(d=1;d<a.k.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.k[d];a.k[d]=a.k[e];a.k[e]=g}for(d=0;d<a.k.length;d++)a.k[d]==c&&(a.Ua=d);a.A++}a.publish("shuffle")}function mJ(a,b){a.Ua=Kc(b,0,a.uc-1);a.startSeconds=0}
function dJ(a,b){a.Dh||(a.o=new RE("UU","PLAYER_"+b),iJ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function eJ(a,b){a.Dh||(a.o=new RE("FL","PLAYER_"+b),iJ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function fJ(a,b){if(!a.Dh){a.o=new RE("SR",b);var c={search_query:b};a.Yq&&(c.mob="1");iJ(a,"/search_ajax?style=json&embeddable=1",c)}}
function hJ(a){if(!a.Dh){var b={list:a.o},c=mr(a);c&&c.videoId&&(b.v=c.videoId);iJ(a,"/list_ajax?style=json&action_get_list=1",b)}}function iJ(a,b,c){Ej(Ke(b,c),{format:"JSON",$a:function(a,b){oJ(this,b)},onError:function(){this.publish("error")},context:a})}
function oJ(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=mr(a);a.j=[];D(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.j.push(a))},a);a.uc=a.j.length;pJ(a,c);lr(a,!1);a.Dh=!1;a.Dd=!0;a.A++;a.je&&a.je()}}function gJ(a,b){0<a.Ua&&(a.j=[]);D(b,function(a){this.j.push(a)},a);a.uc=a.j.length;a.Dd=!0}
function pJ(a,b){if(b){var c=b.videoId;if(!a.j[a.Ua]||a.j[a.Ua].video_id!=c)for(var d=0;d<a.j.length;d++)if(a.j[d].video_id==c){a.Ua=d;break}}}f.L=function(){this.je=null;yi(this.j);cJ.I.L.call(this)};function qJ(){R.call(this);this.j=[];this.C={};this.o={};this.A={};this.k=this.D=null;this.B=[];this.F=null}A(qJ,R);qJ.prototype.Er=function(a){if(this.k){var b;var c=ka(a);b=this.C[c];if(!b)if(this.k){if(b=a(this.k)){a=this.C[c]=b;for(var d in this.D)a.subscribe(d,this.D[d]);a.subscribe("command_log_timing",this.G,this);S(this,b)}}else b=null;b&&b.Ga(this.k)&&!G(this.j,b)&&(b.create(),this.j.push(b),G(this.B,b.ta)&&(b.Ob=this.F,b.oj(!!b.Ob)))}};
function rJ(a){a.j=fb(a.j,function(a){if(!this.k||a.Rm(this.k)){try{a.destroy()}catch(c){Mf(c)}return!1}return!0},a)}function sJ(a,b,c){tJ(a);a.F=b;a.B=tb(c);D(a.j,function(a){0<=db(c,a.ta)&&(a.Ob=b,a.oj(!!a.Ob))})}function tJ(a){D(a.B,function(a){if(a=$q(this,a))a.Ob=null,a.oj(!1)},a);a.F=null;a.B=[]}function uJ(a,b){if(!b)return E(a.j,function(a){return a.ta});var c=$q(a,b);return c?c.eg():[]}function $q(a,b){return F(a.j,function(a){return a.ta==b})}
qJ.prototype.H=function(a,b){D(this.j,function(c){c.publish(a,b)})};function vJ(a){var b={};D(a.j,function(a){ra(b,a.lh())});return b}qJ.prototype.G=function(a,b){ra(this.A,a||null);ra(this.o,b||null)};qJ.prototype.isAvailable=function(a){a=$q(this,a);return!(!a||!a.Xi)};function wJ(a,b,c){this.A=b;this.j=c;this.o=a}wJ.prototype.getMessage=function(){return this.A};wJ.prototype.getErrorCode=function(){return this.j};wJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.k?" Caused by: "+this.k:"")};function xJ(a,b){dm.call(this,"adError");this.o=a;this.A=b?b:null}A(xJ,dm);var yJ="acceptinvitation acceptinvitationlinear click close collapse complete creativeview engagedview exitfullscreen expand firstquartile fullscreen midpoint mute pause progress replay resume rewind skipshown skip start stop thirdquartile unmute userClose videoShareClicked videoShareShown measurable_impression viewable_impression".split(" "),zJ="acceptinvitation click collapse creativeview expand progress close".split(" ");function AJ(a,b,c){dm.call(this,a);this.A=b;this.o=null!=c?c:null}A(AJ,dm);AJ.prototype.getAd=function(){return this.A};
var BJ={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",dL:"videoClicked",sI:"engagedview",vI:"expandedChanged",STARTED:"start",Qs:"impression",pJ:"measurable_impression",Mu:"viewable_impression",PAUSED:"pause",gK:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",XG:"skipshown",wK:"skippableStateChanged",
AH:"adMetadata",zH:"adBreakReady",mJ:"log",VOLUME_CHANGED:"volumeChange",pL:"mute",gI:"companionBackfill",yL:"youTubeVideoMetadata",xL:"youTubeChannelMetadata",bL:"urlNavigationRequested"};var CJ=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],DJ=/\bocr\b/,EJ=0,FJ={};function GJ(a){return B(C(a))?!1:(new J(a)).qf().match(DJ)?!0:null!=F(CJ,function(b){return null!=a.match(b)})}
function HJ(a){if(a){var b=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=qd(b).body;var c,d=nn(function(){Em(c);Ld(b)},15E3);c=Cm(b,["load","error"],function(){nn(function(){on(d);Ld(b)},5E3)});a.appendChild(b)}}function IJ(a){if(a){var b=new Image,c=""+EJ++;FJ[c]=b;b.onload=b.onerror=function(){delete FJ[c]};b.src=a}};var JJ={"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"},KJ=["ADSENSE","ADSENSE/ADX"],LJ=["DART","DART_DFA","DART_DFP"],MJ=["FREEWHEEL"],NJ=["GDFP"],OJ={yJ:"video/mp4",AJ:"video/mpeg",nJ:"application/x-mpegURL",KJ:"video/ogg",JK:"video/3gpp",sL:"video/webm",xJ:"audio/mpeg",zJ:"audio/mp4"};var PJ=["google-developers.appspot.com","devsite.googleplex.com"],QJ=["*.googlesyndication.com"],RJ=["*.youtu.be","*.youtube.com"],SJ="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 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(" "),
TJ=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function UJ(a,b){try{var c=df(new J(b)),c=c.replace(/^www./i,"");return hb(a,function(a){return VJ(a,c)})}catch(d){return!1}}function VJ(a,b){if(B(C(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}
function WJ(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+SJ.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new J(a),Re(a,"https"),a.toString()):a};function XJ(a){window.open(WJ(a),"_blank")}function YJ(a,b,c,d,e){null!=b&&(a=ZJ(a,b));null!=c&&(B(C(c))||(b=new J(a),rf(b.j,"label")&&(K(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));null!=e&&(a=$J(a,e));a=WJ(a);null!=d&&d?HJ(a):(c=a)&&(GJ(c)?HJ(c):IJ(c))}function aK(a,b){null!=a&&D(a,function(a){YJ(a,b)})}function $J(a,b,c){if(B(C(b)))return a;var d=new J(a);return c||rf(d.j,"label")?(K(d,"ged",b),d.toString()):a}
function ZJ(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Zb(b,a),d=d.toString();if(!B(C(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})}function bK(a,b,c){if(null==a)return"";K(a,"label",b);null!=c&&K(a,"value",c.join(";"));return a.toString()};function cK(a,b){this.message=a;this.errorCode=b}cK.prototype.getErrorCode=function(){return this.errorCode};cK.prototype.getMessage=function(){return this.message};
var dK=new cK("Unable to request ads from server. Cause: {0}.",1005),eK=new cK("Unable to request ads from server due to network error.",1012),fK=new cK("Cannot parse the {0} value for the adslist response: {1}.",900),gK=new cK("Invalid usage of the API. Cause: {0}",900),hK=new cK("Unable to display one or more required companions.",602),iK=new cK("There was a problem requesting ads from the server.",1005),jK=new cK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
kK=new cK("The provided ad type: {0} is not supported.",1005),lK=new cK("The provided {0} information: {1} is invalid.",1101),mK=new cK("The response does not contain any valid ads.",1009),nK=new cK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),oK=new cK("The ad playlist response was malformed or empty.",1010),pK=new cK("The ad response was not understood and cannot be parsed.",1010),qK=new cK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),rK=new cK("The ad response contains unexpected element. Cause {0}.",1010),sK=new cK("No assets were found in the VAST ad response.",200),tK=new cK("Duplicate node in <{0}>: {1}",101),uK=new cK("The VAST response document is empty.",1009),vK=new cK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),wK=new cK("Ad request reached a timeout.",301),xK=new cK("VAST response was malformed and could not be parsed.",100),yK=new cK("VAST media file loading reached a timeout of {0} seconds.",
402),zK=new cK("Ad request could not be completed due to a network error.",301),AK=new cK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),BK=new cK("The maximum number of VAST wrappers ({0}) has been reached.",302),CK=new cK("VAST media file duration differs from the VAST response duration by {0} seconds.",202),DK=new cK("Video player received an ad with unexpected or incompatible linearity",201),EK=new cK("Unknown node in <{0}>: {1}",
101),FK=new cK("Invalid VAST resource type: {0}",101),GK=new cK("Invalid VAST version",102),HK=new cK("No additional VAST wrappers allowed.",300),IK=new cK("No Ads VAST response after one or more Wrappers",303),JK=new cK("There was an error playing the video ad.",400),KK=new cK("VMAP unsupported node in <{0}>: {1}",1010),LK=new cK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function MK(a,b,c){return NK("adLoadError",a,b||null,wb(arguments,2))}function OK(a,b,c){return NK("adPlayError",a,b||null,wb(arguments,2))}function PK(a,b,c,d,e){var g=a.apply(null,sb([c,d],wb(arguments,3)));b.T(new AJ("log",null,g))}function NK(a,b,c,d){if(c instanceof wJ)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var g=0;g<d.length;g++)b=b.replace(new RegExp("\\{"+g+"\\}","ig"),d[g]);a=new wJ(a,b,e);a.k=c;return a}
function QK(a,b,c,d){var e=OK.apply(null,sb([b,c],wb(arguments,3)));a.T(new xJ(e))};function RK(a){this.j=a}function SK(){var a=TK();return UK(a,"disableExperiments")}function UK(a,b){if(b in a.j){var c=a.j[b];if("boolean"==typeof c)return c}return!1};function VK(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function WK(){this.k="always";this.j=!1;this.A=!0;this.C=!1;this.B=null}function XK(){return YK.C}WK.prototype.getPlayerType=function(){return""};function TK(){var a=YK;if(null==a.B){var b={},c=gf(new J(Bd().location.href));if(rf(c,"tcnfp"))try{b=dg(c.get("tcnfp"))}catch(d){}a.B=new RK(b)}return a.B}var YK=new WK;var ZK={},$K="",aL=/OS (\S+) like/,bL=/Android (\S+);/;function cL(){return ad||Ma(Pc,"Mobile")}function dL(){return bd&&!cd||Ma(Pc,"iPod")}function eL(){return dL()||cd}function fL(a,b){if(null==ZK[b]){var c=gL(a);c?(c=c.replace(/_/g,"."),ZK[b]=0<=Ra(c,b)):ZK[b]=!1}return ZK[b]}function gL(a){B($K)&&(a=a.exec(Pc))&&($K=a[1]);return $K}
function hL(){var a=Pc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV")||ad&&Ma(a,"AFT"):!1}function iL(){return Ma(Pc,"PlayStation")}function jL(){return dL()||ad&&(!ad||!fL(bL,4))||!XK()&&(Ma(Pc,"CrKey")||iL()||Ma(Pc,"Roku")||hL()||Ma(Pc,"Xbox"))?!1:!0};function kL(){this.j=.05>Math.random();this.k=Math.floor(4503599627370496*Math.random())}ba(kL);function lL(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=mL(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Ib(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=nL();Re(e,a.Ib);YJ(e.toString())}}function mL(a,b){b.id="";var c=nL();b.c=a.k;b.domain=c.ob;return b}function nL(){var a=Bd(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function oL(){}f=oL.prototype;f.jE=!1;f.vt=!1;f.ks=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.GD=!1;f.Nk=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.Dw=!0;f.Ro=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.Ew=!0;f.Qo=!1;f.qp=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.Ok=!1;f.loadVideoTimeout=15E3;window.console&&"function"===typeof window.console.log&&w(window.console.log,window.console);function pL(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=z()-window.performance.timing[a],Math.round(a/1E3)):null}function qL(){this.domLoading=pL("domLoading");this.domComplete=pL("domComplete");this.unloadEventStart=pL("unloadEventStart")}qL.prototype.toString=function(){function a(a){a=Zb(c,a);null!=a?b.push(""+a):b.push("u")}var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};
function rL(a){var b={},c=new qL,d=null;null!=c.domLoading&&(d=c.domLoading);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};function sL(a){for(var b=[],c=a=Bd(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var tL=null;function uL(){this.j={};this.k=0}function vL(a,b){this.A=a;this.o=!0;this.j=b}vL.prototype.getValue=function(){return this.j};vL.prototype.G=function(){return this.o?this.k():""};vL.prototype.k=function(){return String(this.j)};function wL(a,b){vL.call(this,a,b);this.j=!!b}A(wL,vL);wL.prototype.k=function(){return this.j?"1":"0"};function xL(a){vL.call(this,"sv",a);this.j=null==a?"1":"2"}A(xL,vL);xL.prototype.k=function(){return String(this.j)};function yL(a,b){vL.call(this,a,b)}
A(yL,vL);yL.prototype.k=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)):""};function zL(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 yL("",new mg(c,b,Number(a[3])-c,Number(a[2])-b))}return new yL("",new mg(0,0,0,0))}function AL(){tL||(tL=new uL);return tL}
uL.prototype.setItem=function(a){this.j[a.A]=a};uL.prototype.getItem=function(a){return Zb(this.j,a,null)};uL.prototype.G=function(){var a=[],b;for(b in this.j){var c=this.j[b].G();c&&a.push(b+c)}return a.join("_")};function BL(a){var b=null;a&&(b=a());if(b){a=AL();a.j={};var c=new wL("ef",!0);c.o=!1;a.setItem(c);c=Bd().document;c=c.webkitVisibilityState||c.mozVisibilityState||c.visibilityState||c.msVisibilityState||"";c="hidden"!=c.toLowerCase().substring(c.length-6)?!0:!1;a.setItem(new wL("tv",c));var d;try{var e;var g=Bd().top;try{e=!!g.location.href||""===g.location.href}catch(h){e=!1}if(e){var k=sL(b);d=k&&0!=k.length?"1":"0"}else d="2"}catch(l){d="2"}a.setItem(new vL("is",d));if(c){k=e=Bd().top;"2"==d&&
(k=Bd());g=CL(b,k);a.setItem(new yL("er",g));var p;try{p=k.document&&!k.document.body?null:xd(k||window)}catch(u){p=null}a.setItem(new xL(p));p?(k=he(od(k.document)),a.setItem(new wL("sp",!!k)),p=k?new mg(k.x,k.y,p.width,p.height):null):p=null;a.setItem(new yL("vi",p));if(p&&"1"==d){d=sL(b);b=[];for(k=0;k<d.length;k++)(c=CL(d[k],e))&&b.push(c);b.push(p);p=DL(b)}EL(a,g,p)}a.k&&(d=Math.round(z()/1E3)-a.k,a.setItem(new vL("ts",d)));a.k=Math.round(z()/1E3)}else a=AL(),a.j={},a.k=Math.round(z()/1E3),a.setItem(new wL("ef",
!1));return a}function DL(a){var b=new mg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new mg(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!qg(b,a[d]))return c;return b}function CL(a,b){var c=a.getBoundingClientRect(),d=Ig(a,b);return new mg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))}
function EL(a,b,c){if(b&&c){var d;t:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var g=Math.max(b.top,c.top),h=Math.min(b.top+b.height,c.top+c.height);if(g<=h){d=new mg(d,g,e-d,h-g);break t}}d=null}e=d?d.height*d.width:0;g=d?b.height*b.width:0;d=d&&g?Math.round(e/g*100):0;a.setItem(new vL("vp",d));d&&0<d?(e=ng(b),g=ng(c),e=e.top>=g.top&&e.top<g.bottom):e=!1;a.setItem(new wL("ct",e));d&&0<d?(e=ng(b),g=ng(c),e=e.bottom<=g.bottom&&e.bottom>g.top):e=!1;a.setItem(new wL("vb",
e));d&&0<d?(e=ng(b),g=ng(c),e=e.left>=g.left&&e.left<g.right):e=!1;a.setItem(new wL("vl",e));d&&0<d?(b=ng(b),c=ng(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new wL("vr",c))}}
function FL(a,b,c){if(b&&c){b=zL(b).getValue();c=zL(c).getValue();var d=null;a.getItem("er")&&(d=a.getItem("er").getValue(),d.top+=b.top,d.left+=b.left,a.setItem(new yL("er",d)));if(a.getItem("vi")){var e=a.getItem("vi").getValue();e.top+=b.top;e.left+=b.left;var g=[];g.push(e);g.push(b);g.push(c);b=DL(g);EL(a,d,b);a.setItem(new yL("vi",c))}}};ec("m","c","s","t");function GL(a){this.j=dc.apply(null,arguments);return this}GL.prototype.set=function(a,b){this.j[a]=b};function HL(a,b){var c=Zb(a.j,"eb",0);a.j.eb=c|b}GL.prototype.get=function(a){return Zb(this.j,a,null)};GL.prototype.extend=function(a){cc(this.j,a)};GL.prototype.G=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var IL=null,JL=null;function KL(a,b){var c=0;Rb(Bd(),"ima","video","client","tagged")&&(c=1);this.o=BL(a);this.k=new GL("ta",c,"ve",2);c&&HL(this.k,1);Rb(Bd(),"ima","video","client","periscopeTag")&&HL(this.k,4);Rb(Bd(),"ima","video","client","sdkTag")&&HL(this.k,8);Rb(Bd(),"ima","video","client","jsTag")&&HL(this.k,2);b&&Zb(b,"fullscreen",!1)&&HL(this.k,16);var d=null;this.j=null;if(c&&(c=Rb(Bd(),"ima","video","client"),c.getEData)){this.j=c.getEData();if(!("getTimeSinceTagLoadSeconds"in this.j)){var e=this;this.j.extendWithDataFromTopIframe=
void 0;this.j.getTimeSinceTagLoadSeconds=function(){return Zb(e.j,"tt",null)};this.j.serialize=function(){var a="",b;for(b in e.j)"serialize"!=b&&"getTimeSinceTagLoadSeconds"!=b&&(a=a?a+("_"+b+e.j[b]):b+e.j[b]);return a}}if(d=Rb(Bd(),"ima","video","client","getLastSnapshotFromTop"))if(d=d())this.j.extendWithDataFromTopIframe(d.buckets,d.tt,d.pd),FL(this.o,d.er,d.vi);d=this.j.getTimeSinceTagLoadSeconds()}this.k.extend(rL(d))}
KL.prototype.G=function(){var a=[],b=this.k.G();b&&a.push(b);this.j&&(b=this.j.serialize())&&a.push(b);(b=this.o.G())&&a.push(b);return a.join("_")};function LL(a,b){try{return(new KL(a,b)).G()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};var ML={Lu:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",UG:"resume",SKIPPED:"skip",Mu:"viewable_impression",TG:"mute",ZG:"unmute",FULLSCREEN:"fullscreen",LG:"exitfullscreen"},NL={UNKNOWN:-1,Lu:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,UG:7,SKIPPED:8,Mu:9,TG:10,ZG:11,FULLSCREEN:12,LG:13};function OL(a){try{return!!a&&null!=a.location.href&&tg(a,"foo")}catch(b){return!1}};var PL=document,QL=window;function RL(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){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b}function SL(a){QL.google_image_requests||(QL.google_image_requests=[]);var b=QL.document.createElement("img");b.src=a;QL.google_image_requests.push(b)};function TL(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)}function UL(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var VL=!0,WL={};function XL(a,b,c,d){var e=YL,g,h=VL;try{g=b()}catch(k){try{var l=RL(k);b="";k.fileName&&(b=k.fileName);var p=-1;k.lineNumber&&(p=k.lineNumber);h=e(a,l,b,p,c)}catch(u){try{var x=RL(u);a="";u.fileName&&(a=u.fileName);c=-1;u.lineNumber&&(c=u.lineNumber);YL("pAR",x,a,c,void 0,void 0)}catch(L){ZL({context:"mRE",msg:L.toString()+"\n"+(L.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(la){}}return g}
function YL(a,b,c,d,e,g){var h={};if(e)try{e(h)}catch(k){}h.context=a;h.msg=b.substring(0,512);c&&(h.file=c);0<d&&(h.line=d.toString());h.url=PL.URL.substring(0,512);h.ref=PL.referrer.substring(0,512);$L(h);ZL(h,g);return VL}function ZL(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+aM(a),d="http"+("http:"==QL.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,d=d.substring(0,2E3);SL(d)}}catch(e){}}function $L(a){var b=a||{};TL(WL,function(a,d){b[d]=QL[a]})}
function bM(a,b,c,d,e){return function(){var g=arguments;return XL(a,function(){return b.apply(c,g)},d,e)}}function cM(a,b){return bM(a,b,void 0,void 0,void 0)}function aM(a){var b="";TL(a,function(a,d){if(0===a||a)b+="&"+d+"="+UL(a)});return b};function dM(){for(var a=QL,b=a,c=0;a!=a.parent;)a=a.parent,c++,OL(a)&&(b=a);return b};var eM=!1,fM="";function gM(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var hM=navigator.plugins["Shockwave Flash"];hM&&(eM=!0,hM.description&&(fM=gM(hM.description)));navigator.plugins["Shockwave Flash 2.0"]&&(eM=!0,fM="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var iM=navigator.mimeTypes["application/x-shockwave-flash"];(eM=iM&&iM.enabledPlugin)&&(fM=gM(iM.enabledPlugin.description))}else try{var jM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),eM=!0,fM=gM(jM.GetVariable("$version"))}catch(kM){try{jM=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),eM=!0,fM="6.0.21"}catch(lM){try{jM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),eM=!0,fM=gM(jM.GetVariable("$version"))}catch(mM){}}}var nM=eM,oM=fM;if(PL&&PL.URL)var pM=PL.URL,VL=!(pM&&(0<pM.indexOf("?google_debug")||0<pM.indexOf("&google_debug")));function qM(a,b,c,d){c=bM(d||"osd_or_lidar::"+b,c,void 0,void 0,void 0);a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c);return c};function rM(a,b){var c=a||QL;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new H(-1,-1):b?new H(c.innerWidth,c.innerHeight):xd(c||window)}catch(d){return new H(-12245933,-12245933)}}var sM=0;
function tM(){var a=uM,b=0<=vM?wM()-vM:-1,c=xM?wM()-yM:-1,d=0<=zM?wM()-zM:-1,e;if(79463068==a)return 500;947190538==a?(a=[4E3],e=[250,1E3]):947190541==a?(a=[4E3],e=[100,1E3]):(a=[2E3,4E3],e=[250,500,1E3]);var g=b;-1!=c&&c<b&&(g=c);for(var h,b=0;b<a.length;++b)if(g<a[b]){h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h}var AM=(new Date).getTime(),vM=-1,xM=!1,yM=-1,zM=-1;function wM(){return(new Date).getTime()-AM}
function BM(a){var b=[];Ib(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ea(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function CM(){var a=I("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};function DM(a,b){this.G=a||3E3;this.F=b||3E3;this.k="u";this.B=null;this.j=[];this.C=!1;this.o=-1;this.A=0}function EM(a,b,c){this.snapshot=a;this.k=b;this.j=c}
function FM(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ra(oM,"11")&&c)||Uc&&9>ed||0<a.j.length)return!1;try{var d=b.getBoundingClientRect()}catch(e){return!1}var g="DIV"==b.tagName||"INS"==b.tagName,h=qd(b),k=[];if(g){var l=CM(),d=GM(d);D(d,function(a,b){var d=new HM("e",h,c,String(b));this.j.push(d);k.push(w(d.F,d,l,a))},a);Kd(b,l,0)}else d=IM(a,d),D(d,function(a,d){var e=new HM("e",h,c,String(d));this.j.push(e);k.push(w(e.D,e,b,a))},a);var p=!0;D(k,function(a){p=p&&a()});p?(a.k="l",a.B=b,a.C=!g):
(D(a.j,function(a){a.remove()}),a.j=[]);return p}function GM(a){return[new Lc(Math.floor((a.right-a.left)/2),Math.floor((a.bottom-a.top)/2))]}function IM(a,b){var c;try{c=b||a.B.getBoundingClientRect()}catch(d){c=new lg(0,0,0,0)}var e=GM(c);D(e,function(a){a.x+=c.left;a.y+=c.top});return e}function JM(a){if(a.B&&a.C){var b=IM(a);D(b,function(a,b){this.j[b]&&KM(this.j[b],a)},a)}}function LM(a){D(a.j,function(a){a.remove()});a.j=[];a.k="d"}
function MM(a){var b=(new Date).getTime(),c=a.D?b-a.D:0,d=-1;4==a.j.length?(d=E(a.j,function(a){return NM(a,b)}),d=OM(d)):1==a.j.length&&(d=[-1,0,1,2,3,5][NM(a.j[0],b)+1]);a.A=d==a.o?a.A+c:0;c=new EM(d,a.o,c);a.o=d;a.D=b;PM(a,d);JM(a);return c}function OM(a){var b=Gb(Mb(QM));D(a,function(a){0<=a&&++b[a]});return 4==b[4]?6:3<=b[4]?5:0<b[4]?4:4==b[2]?2:4==b[1]?1:4==b[0]?0:3}function PM(a,b){0==b&&RM(a)?a.k="n":a.k="dlfcrrrr".split("")[b+1]}DM.prototype.getStatus=function(){return this.k};
function RM(a){return"n"==a.k?!0:"l"==a.k&&a.A>=a.F}
function HM(a,b,c,d){this.module=null;this.A=a;this.wa="e"==a?String(c)+"~"+String(d):"";this.j=[];this.k=-1;this.B=0;this.o=Gb(Mb(SM));this.G=Gb(Mb(QM));"e"==this.A&&(TM[this.wa]=w(this.C,this));Uc?(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="'+UM(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=VM(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var QM={ZK:-1,LOADING:0,QG:1,KG:2,aJ:3,VISIBLE:4},SM={LOADING:0,QG:1,KG:2,RK:3,JJ:4,WK:5,XK:6,VK:7,MJ:8,QK:9},TM={};
function VM(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=UM(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="hidden";e.style.opacity=0;return e}function UM(a,b){var c="//www.gstatic.com/osd/hbt.swf";"e"==a.A&&(c=Je("//www.gstatic.com/osd/hbe.swf","id",a.wa));b&&(c=Je(c,"delay","1"));return c}
HM.prototype.F=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";KM(this,b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};HM.prototype.D=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";KM(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};function KM(a,b){a.module&&!Mc(b,Dg(a.module))&&Bg(a.module,b)}
HM.prototype.remove=function(){if(this.module)try{Ld(this.module)}catch(a){}this.module=null};HM.prototype.C=function(a){this.k=a?3:4};
function NM(a,b){if("e"==a.A){var c=null;try{c=a.module.it()}catch(d){}null===c?(c=0,0<a.k&&(c=2)):c=c?3:4;++a.G[c+1];a.k=c}else{var e=Number(b),g=null;try{g=a.module.fc()}catch(h){}WM(a,g,e);c=a.j[a.j.length-1];if(null===g){if(g=e=0,0<a.k||ha(c.aj))g=e=2}else null===c.aj||c.am>=e?(e=10<=g?4:0,g=0):g>c.aj?(c=(g-c.aj)/(e-c.am)*1E3,e=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.B&&6==c&&(c=7),g=c):g=e=1;6==a.B&&(--a.o[6],4==g||8==g?++a.o[5]:++a.o[7]);++a.o[g];a.k=e;a.B=g}return a.k}
function WM(a,b,c){var d=c-1E3,e=a.j.length;D(a.j,function(a,b){a.am<=d&&(e=Math.min(e,b+1))});var g=a.j.length-e;0<g&&a.j.splice(e,g);a.j.unshift({aj:b,am:c})}q("gteh",bM("osd_or_lidar::gteh_ex",function(a,b){var c=TM[a];ia(c)&&c(b)}),void 0);function XM(a,b,c,d,e,g,h,k,l){this.j=YM.clone();this.B=this.R=0;this.cb=this.ib=this.$=-1;this.Da=[0,0,0,0,0];this.H=[0,0,0,0,0];this.F=[0,0,0,0,0];this.ha=[0,0,0,0,0];this.O=d;this.U=this.Ra=-1;this.J=e;this.yc=h||"";this.se=k||"";this.ua=function(){};this.pe=function(){};this.N=this.element=c;this.ie=0;this.Wh=-1;this.W=l||YM;this.Vh=b?-1!=b.indexOf("dcopt=anid"):!1;this.A="";this.Mc=c?String(c._avi_||""):"";this.fb=null;this.Mb="";this.C={};this.C.le=0;this.C.nt=2;this.C.Fr=3;this.k=this.Ca=null;
this.ma=!1;this.K=this.te=this.$c=null;this.la=0;this.ia=!1;this.V=null;this.ke=this.na=this.Ba=!1;this.Rh=.01>Math.random();this.ne=null;this.tb=void 0;this.tg=!1;this.xa=[];this.ja=void 0;this.rb=this.va=!1;this.D=void 0;this.kb=0;this.ca=-1;this.Ia=this.X=0;this.oa=void 0;this.o=0;this.P=!1;this.qe=5==e?.02>Math.random():Boolean(c&&c._tos_);ZM(this,a,g)}var YM=new lg(0,0,0,0);
function $M(a,b,c,d,e){if(!(0>a.O)){var g=QL.innerWidth,h=QL.innerHeight,k=new lg(Math.round(QL.mozInnerScreenY),Math.round(QL.mozInnerScreenX+g),Math.round(QL.mozInnerScreenY+h),Math.round(QL.mozInnerScreenX));c=new lg(QL.screenY+d,QL.screenX+c.width,QL.screenY+c.height,QL.screenX);e||(d=new lg(k.top-c.top,k.right-c.left,k.bottom-c.top,k.left-c.left),d.top>a.j.top?a.j=d:(a.j.right=a.j.left+g,a.j.bottom=a.j.top+h),a.R=g*h);aN(a,k,c,b,e,!0)}}
function bN(a,b,c){var d=cN(a,QL&&QL.document);if(d){c||ZM(a,QL,!0);var e=Math.floor((a.j.left+a.j.right)/2),g=Math.floor((a.j.top+a.j.bottom)/2),h=zd(document),d=d(e-h.x,g-h.y)?.5:0;aN(a,a.j,d,b,c,!0)}}function cN(a,b){dN(a);if(!a.Ca){var c=[];D(Qb(a.C),function(a){c[this.C[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.Ca=d&&w(d,b)}return a.Ca}function dN(a){a.C.e=-1;a.C.i=6;a.C.n=7;a.C.t=8}
XM.prototype.update=function(a,b,c,d,e){if(0>this.O)return null;c||ZM(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.$c),this.$c=null);Boolean(null)&&c&&(d.clearInterval(this.te),this.te=null);null!=this.V&&(c?(d.clearInterval(this.K),this.K=null,this.ia=!1):this.Ba&&!this.K&&(this.K=d.setInterval(cM("osd_or_lidar::adblock::iem_int",w(this.Fg,this,d,1E3)),1E3),this.Fg(d)));return aN(this,this.j,b,a,c,!1)};
function aN(a,b,c,d,e,g){var h=d-a.O||1,k=null;ha(c)?b=eN(a,c):(k=c,b=eN(a,b,k));a.ja||fN(a,b,h,a.Ra,g,e,k,void 0);a.Ra=e?-1:b;a.O=d;-1!=b&&(0>a.$&&(a.$=d),a.cb=d);-1==a.ib&&1E3<=Math.max(a.F[2],a.H[2])&&(a.ib=d);a.ua(a,k||YM);return a.B}
function eN(a,b,c){if(a.P&&7==a.J)return a.B=1,gN(a.B);var d=null;if(ha(b))a.B=b;else{c=new lg(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.R||c.top>=c.bottom||c.left>=c.right)return a.B=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof Lc?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ha(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.B=d/a.R}return gN(a.B)}
function gN(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.25<=a?b=3:0<a&&(b=4);return b}
function fN(a,b,c,d,e,g,h,k){e=e&&-1!=d&&2>=d;var l=-1==d||-1==b?-1:Math.max(d,b);d=e?l:d;-1!=d&&(a.Da[d]+=c);(h=h||null)?(-1!=d&&2>=d&&-1!=a.U&&(a.ha[a.U]+=c),h=100*a.R/((h.bottom-h.top)*(h.right-h.left)),a.U=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.U=-1;if(7==a.J){k=n(k)?k:hN(a);h=-1!=d&&2>=d;!h&&n(a.oa)&&0<a.oa&&(a.X+=c);a.X>a.Ia&&(a.Ia=a.X);if(h||!n(k)||0>=k)a.X=0;a.oa=n(k)?(1E3*k|0)/1E3:k}for(k=d;0<=k&&4>=k;k++)a.F[k]+=c,a.F[k]>a.H[k]&&(a.H[k]=a.F[k]);for(k=0;k<a.F.length;++k)if(k<b||g||-1==b)a.F[k]=
0}function iN(a,b,c){if(!Boolean(Boolean(a.N&&!!c&&!ai)&&!ai))return a.ma=!0,!1;var d=new DM;(c=FM(d,a.N,c))?(a.pe=b,a.k=d):a.ma=!0;return c}
XM.prototype.Fg=function(a,b){var c=cN(this,a&&a.document);if(c){ZM(this,a,!0);var d=Math.floor((this.j.left+this.j.right)/2),e=Math.floor((this.j.top+this.j.bottom)/2),g=zd(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.la+=this.ia?d:0,this.ia=!0):(this.la=0,this.ia=!1);1E3<=this.la&&(a.clearInterval(this.K),this.K=null,this.Ba=!1,this.V="v");ZM(this,a,!1)}else a.clearInterval(this.K),this.K=null,this.Ba=!1,this.V="i"};
XM.prototype.G=function(){var a=this.j,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.Da.join(","));a.push("mtos:",this.H.join(","));a.push("rs:",this.J);var b=5===this.J||6===this.J;b||(a.push("zoom:",this.ha.join(",")),a.push("ht:",this.ie));0<=this.$&&a.push("tfs:",this.$,"tls:",this.cb);a.push("vt:",this.ib);7===this.J&&a.push("qid:",this.A);this.Mc&&a.push("avi:",this.Mc);this.V&&a.push("iemv:",this.V);this.k?a.push("swf:",this.k.getStatus()):this.ma&&a.push("swf:","-");b&&(this.se&&
a.push("ord:",this.se),this.yc&&a.push("amd:",this.yc,";"),this.Vh&&a.push("anid:","1"),this.Mb&&a.push("xbid:",this.Mb));null!==this.fb&&a.push("tp:"+this.fb);null!=this.tb&&a.push("vl:"+this.tb);return a.join(",")};
function ZM(a,b,c){b=c?b:b.top;try{var d=YM.clone(),e=new Lc(0,0);a.N&&(d=a.N.getBoundingClientRect(),c||!b.frameElement)&&(e=Ig(a.N,b));var g=d.right-d.left,h=d.bottom-d.top,k=e.x+a.W.left,l=e.y+a.W.top,p=a.W.right||g,u=a.W.bottom||h;a.j=new lg(Math.round(l),Math.round(k+p),Math.round(l+u),Math.round(k))}catch(x){a.j=a.W}finally{a.C.Po=5,a.C.me=1,a.C.om=4}a.R=(a.j.bottom-a.j.top)*(a.j.right-a.j.left);2!=a.J&&3!=a.J&&6!=a.J||0!=a.R?(a.ke=!1,a.ne=null):(a.ke=!0,a.N&&a.N.parentElement&&a.Rh&&(c=a.N.parentElement.getBoundingClientRect(),
a.ne=new lg(c.top,c.right,c.bottom,c.left)))}function jN(a,b){var c=a.kb;xM||a.ja||-1==a.ca||(c+=b-a.ca);return c}function hN(a){if("as"==a.D&&ia(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.D){var c=r("ima.common.sdkVolume");if(ia(c))try{return Number(c(a.A))}catch(d){return-1}}}function kN(a,b){ub(a.xa,Gb(b-a.xa.length+1));a.xa[b]=(100*a.B|0)/100}
function lN(a){if(a.na)return{"if":0};var b=a.j.clone();b.round();var c=E(a.xa,function(a){return 100*a|0}),b={"if":mN?1:void 0,sdk:a.D?a.D:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.Da,mtos:a.H,ps:void 0,pt:c,vht:jN(a,wM()),mut:a.Ia,a:a.oa};nN&&(b.ps=[nN.width,nN.height]);a.va&&(b.ven="1");a.o&&(b.vds=a.o);oN()?b.c=(100*a.B|0)/100:b.tth=wM()-sM;return b};function pN(){return!qN()&&(Sc("iPod")||Sc("iPhone")||Sc("Android")||Sc("IEMobile"))}function qN(){return Sc("iPad")||Sc("Android")&&!Sc("Mobile")||Sc("Silk")};var rN=null,sN=null,tN=null,uN=!1,uM=void 0;function vN(){if(!uN){uN=!0;rN=rN||qM(QL,"scroll",wN,"osd_or_lidar::scroll");sN=sN||qM(QL,"resize",xN,"osd_or_lidar::resize");var a=yN,b;PL.mozVisibilityState?b="mozvisibilitychange":PL.webkitVisibilityState?b="webkitvisibilitychange":PL.visibilityState&&(b="visibilitychange");b&&(tN=tN||qM(PL,b,a,"osd_or_lidar::visibility"));yN()}}function xN(){zN(!1);wN()}function wN(){CN(DN,!1)}
function EN(){var a;FN&&(GN=rM(QL,FN));a=GN;var b=HN,c=IN;if(JN){a=b;zN(!1);var d=KN,e=d.height-a;0>=e&&(e=d.height,a=0);GN=new H(d.width,e);e=new LN;e.C=!0;e.A=GN;e.o=d;e.k=a;return e}if(c)return a=new LN,a.B=!0,a;if(MN)return a=new LN,a.D=!0,a;if(NN)return a=new LN,a.G=!0,a;t:{b=new LN;b.A=a;b.j=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=FN,g=QL||QL,g=g.top,e=a||rM(g,c),h=he(od(g.document)),d=-1==e.width||-12245933==e.width?new lg(e.width,e.width,
e.width,e.width):new lg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break t}b.F=d;b.j=!0}a=b}return a}
function CN(a,b){var c;if(!ON)if(window.clearTimeout(PN),PN=null,0==a.length)b||QN();else{var d=EN();try{var e=wM();if(d.C)for(c=0;c<a.length;c++)$M(a[c],e,d.o,d.k,b);else if(d.B)for(c=0;c<a.length;c++)bN(a[c],e,b);else if(NN)D(a,function(){});else if(d.D)D(a,function(a){if(b){if(a.k){var c=a.k;3<=c.o&&(c.o=3);a.Ra=-1}}else if(a.k&&"d"!=a.k.getStatus()){var c=MM(a.k),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];fN(a,e,c.j,d[c.k+1],!0,!1);a.Ra=e;a.ua(a,YM);7==a.J?2E3<=Math.max(a.F[2],a.H[2])&&a.k&&LM(a.k):
1E3<=Math.max(a.F[2],a.H[2])&&!a.qe&&a.k&&LM(a.k);(c=2==c.snapshot||RM(a.k))||(c=a.k,c="f"==c.k&&c.A>=c.G);c&&(a.pe(a),a.qe=!1,a.k&&LM(a.k))}});else if(d.j)for(c=0;c<a.length;c++)a[c].update(e,d.F,b,QL,mN);++RN}finally{b?D(a,function(a){a.B=0}):QN()}}}function yN(){var a=oN();if(a){if(!xM){var b=wM();yM=b;D(DN,function(a){a.kb=jN(a,b)})}xM=!0;zN(!0)}else b=wM(),xM=!1,sM=b,D(DN,function(a){0<=a.O&&(a.ca=b)});CN(DN,!a)}
function oN(){if(SN())return!0;var a;a=QL.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function QN(){QL&&(PN=QL.setTimeout(cM("osd_or_lidar::psamp_to",function(){CN(DN,!1)}),tM()))}function TN(a){return null!=F(DN,function(b){return b.element==a})}var DN=[],ON=!1,GN=null,KN=null,nN=null,PN=null,mN=!OL(QL.top),HN=0,JN=!1,IN=!1,MN=!1,NN=!1,FN=qN()||pN(),RN=0;
function UN(){var a=QL.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function zN(a){GN=rM(QL,FN);if(!a){KN=QL.outerWidth?new H(QL.outerWidth,QL.outerHeight):new H(-12245933,-12245933);a=QL;a.top!=a&&(a=a.top);var b=0,c=0,d=GN;try{var e=a.document,g=e.body,h=e.documentElement;if("CSS1Compat"==e.compatMode&&h.scrollHeight)b=h.scrollHeight!=d.height?h.scrollHeight:h.offsetHeight,c=h.scrollWidth!=d.width?h.scrollWidth:h.offsetWidth;else{var k=h.scrollHeight,l=h.scrollWidth,p=h.offsetHeight,u=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,
u=g.offsetWidth);k>d.height?k>p?(b=k,c=l):(b=p,c=u):k<p?(b=k,c=l):(b=p,c=u)}nN=new H(c,b)}catch(x){nN=new H(-12245933,-12245933)}}}function VN(){var a=WN,b=!1;D(DN,function(c,d){if(1>Math.random()){var e=iN(c,a,String(d));b=b||e}});(MN=b)&&D(DN,function(b){Boolean(b.k)||a(b)});return b}function XN(a){D(a,function(a){TN(a.element)||DN.push(a)})}function SN(){return hb(DN,function(a){return a.P})}function LN(){this.o=this.A=null;this.k=0;this.F=null;this.j=this.G=this.D=this.B=this.C=!1};function YN(a,b){return a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};var ZN=null,$N="",aO=!1;function bO(){var a=ZN||QL;if(!a)return"";var b=a.document,c=[];c.push("url="+UL(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+UL(b.referrer.substring(0,512)));b=a.location&&a.location.ancestorOrigins;if(mN&&b&&0<b.length){for(var d=[],a=b.length,e=a-1;0<=e;--e)d.push(UL(b[e]));b=d.join(",");b=b.substring(0,512);c.push("adep="+a);c.push("anc="+b)}return c.join("&")};var cO=!1,dO=!1,eO=!1;function fO(){cO=!0;try{vM=wM(),.01>Math.random()&&(eO=!0),ZN=dM(),zN(!1),UN()?(window.setTimeout(function(){},1),mN?gO():vN()):aO=!0}catch(a){throw DN=[],a;}}
function gO(){var a;if(Vc&&ha(QL.screenX)&&ha(QL.mozInnerScreenX)&&ha(QL.outerWidth)&&1>Math.random()){var b=QL.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&&(HN=a,JN=!0);a=!0}else a=!1;a?vN():(a=Uc&&gd(8)&&1>Math.random()?IN=!0:!1,a?vN():VN()?(vN(),dO=!0):(window.clearTimeout(PN),PN=null,$N="i",ON=!0))}function WN(a){if(a){if(!a.tg){var b=[];b.push("v=254v");b.push("r=fp");b.push("efm="+(dO?1:0));b.push(Ie(lN(a)));b.push(bO());b="&"+b.join("&");SL(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.tg=!0}a.na=!0}}
function hO(a,b,c){var d={};cc(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=Sb(ML,function(a){return a==e})){a={e:NL[a],hd:ON?"1":"0",v:"254v",hdr:$N||void 0};if(d.opt_offset)return a.msg="ol",BM(a);if(aO)return a.msg="ue",BM(a);b=iO(b,d);if(!b)return a.msg="nf",BM(a);cO||fO();"i"==$N&&(b.na=!0);eO&&jO(b);c=d.opt_fullscreen;n(c)&&(b.P=Boolean(c));c={};c.start=kO;c.firstquartile=lO;c.midpoint=mO;c.thirdquartile=nO;
c.complete=oO;c.metric=pO;c.pause=qO;c.resume=rO;c.skip=sO;c.viewable_impression=pO;c.mute=tO;c.unmute=uO;c.fullscreen=vO;c.exitfullscreen=wO;if(c=c[e]){d=c(b,d);if(!n(d)||v(d))return d;cc(a,d);return BM(a)}}}function kO(a,b){"i"!=$N&&(ON=!1);!dO||Boolean(a.k)||a.ma||iN(a,WN,String(db(DN,a)));xO(a,b);kN(a,0);return lN(a)}function lO(a){kN(a,1);CN([a],!oN());return lN(a)}function mO(a){kN(a,2);CN([a],!oN());return lN(a)}function nO(a){kN(a,3);CN([a],!oN());return lN(a)}
function oO(a){kN(a,4);CN([a],!oN());var b=lN(a);a.P=!1;yO(a.A);return b}function qO(a){a.kb=jN(a,wM());var b=!oN();CN([a],b);a.ja=!0;return lN(a)}function rO(a){var b=oN();a.ja&&!b&&(a.ca=wM());CN([a],!b);a.ja=!1;return lN(a)}function pO(a){return lN(a)}function sO(a){var b=!oN();CN([a],b);b=lN(a);a.P=!1;yO(a.A);return b}function tO(a){CN([a],!oN());return lN(a)}function uO(a){CN([a],!oN());return lN(a)}function vO(a){a.P=!0;CN([a],!oN());return lN(a)}
function wO(a){a.P=!1;CN([a],!oN());return lN(a)}function xO(a,b){b&&b.opt_VideoAdLength&&(a.tb=b.opt_VideoAdLength);var c=n(b)?b.opt_nativeTime:void 0;zM=c=ha(c)?c:wM();a.Da=[0,0,0,0,0];a.H=[0,0,0,0,0];a.F=[0,0,0,0,0];a.ha=[0,0,0,0,0];a.O=-1;a.$=-1;a.cb=-1;a.ie=0;a.Wh=-1;a.Ra=-1;a.U=-1;a.B=0;a.O=c;var d=!1;oN()||(d=!0,a.ca=c);CN([a],d)}function yO(a){if(v(a)){var b=jb(DN,function(b){return b.A==a});0<=b&&qb(DN,b)}}
function iO(a,b){if(b.opt_nativeMobile)return zO(a,b);if(b.opt_videoAdElement)return AO(a,b.opt_videoAdElement);var c=BO(a);return c?c:c=F(DN,function(b){return b.A==a})}function zO(a,b){var c=F(DN,function(b){return b.A==a});c||(c=new XM(window,"",null,b.opt_nativeTime,7,!1),c.D="n",c.ua=CO,XN([c]),c.A=a);return c}function AO(a,b){var c=F(DN,function(a){return a.element==b});c||(c=DO(b),c.A=a,c.D="h");return c}
function BO(a){var b=F(DN,function(b){return b.element?EO(b.element)==a:!1});if(b)return b;b=FO();b=F(b,function(b){return EO(b)==a});if(!b)return null;b=DO(b);b.D="as";GO(b);return b}function GO(a){var b=EO(a.element);v(b)&&(a.A=b)}function FO(){var a=QL.document,b=Hb(E(["embed","object"],function(b){return tb(a.getElementsByTagName(b))}));return b=fb(b,function(a){if(!a||!Qd(a))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ia(a.metricID)?!0:!1})}
function EO(a){if(!a||!a.metricID||!ia(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}
function DO(a){var b=wM(),c=YN(a,"admeta")||YN(a,"admetaDfp")||"",d=YN(a,"ord")||"",e;t:if(d){e=QL.document.getElementsByTagName("script");for(var g=new RegExp(".doubleclick.net/(N.+/)?(pf)?(ad[ijx])/.*;ord="+Na(d)),h=0;h<e.length;h++){var k=e[h];if(k&&k.src&&g.test(k.src)){e=k.src;break t}}e=QL!=QL.top&&g.test(QL.location.href)?QL.location.href:""}else e="";a=new XM(QL,e,a,b,7,mN,c,d);b=e.match(/.doubleclick.net\/(N.+\/)?(pf)?(ad[ijx])\//);a.fb=b?{adi:"adi",adj:"adj",adx:"adx"}[b[3]]:"";if(e){t:{if(e&&
(b=e.match(/\/\/.*(;u=xb[^;\?]*)/i))&&(b=b[b.length-1].split("="))&&2==b.length){b=b[1];break t}b=null}a.Mb=b}a.ua=CO;XN([a]);vN();return a}function CO(a){if(2E3<=Math.max(a.F[2],a.H[2])&&!a.va){var b="as"==a.D,c="h"==a.D,d="n"==a.D,e=r("ima.common.triggerViewEvent"),g=lN(a);g.e=9;try{var h=BM(g);c||d?ia(e)?(e(a.A,h),a.va=!0):a.o=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.va=!0):a.o=1:a.o=5}catch(k){a.o=a.o||2}}else a.o=3}
function jO(a){if(a.rb||a.na)a.o=a.o||13;else{var b="as"==a.D,c="h"==a.D;try{if(c){var d=r("ima.common.triggerMeasurableEvent");ia(d)?(d(a.A),a.rb=!0):a.o=a.o||14}else b?a.element&&a.element.triggerMeasurableEvent?(a.element.triggerMeasurableEvent(),a.rb=!0):a.o=a.o||11:a.o=a.o||15}catch(e){a.o=a.o||12}}}q("Goog_AdSense_Lidar_startMetricMeasurement",bM("lidar::startmm_ex",function(a,b){var c=b||{};if(!v(a)){var d=iO(a,c);d&&xO(d,c)}}),void 0);
q("Goog_AdSense_Lidar_stopMetricMeasurement",bM("lidar::stopmm_ex",yO),void 0);q("Goog_AdSense_Lidar_getMetric",bM("lidar::getmetric_ex",function(a){var b=F(DN,function(b){return b.A===a});if(!b)return"-1";var c={xsj:b.Da,mkdj:b.H};oN()?c.c7=(100*b.B|0)/100:c.ftr=wM()-sM;return fg(c)}),void 0);q("Goog_AdSense_Lidar_sendVastMessage",bM("lidar::handlevast_ex",hO),void 0);function HO(){U.call(this);this.j=null;this.A=new sn(this);S(this,this.A);this.B=null;this.F=new oe;this.D=new oe;this.o=null;this.k=!1}A(HO,U);var IO=null;function JO(){null!=IO||(IO=new HO);return IO}HO.prototype.destroy=function(){this.A.Aa(this.j,"activityMonitor",this.C);this.k=!1};
HO.prototype.init=function(a){if(!this.k){(this.j=a||null)&&this.A.listen(this.j,"activityMonitor",this.C);if(YK.A&&!(window.ima&&window.ima.video&&window.ima.video.client&&window.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);a=document.createElement("script");a.src=document.location.protocol+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.k=!0}};
function KO(a){if(null==a)return!1;if(dL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=LO(a);return 0>=b-a.width&&42>=c-a.height}function LO(a){return ia(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function MO(a,b){a.o=b}
function NO(a,b,c,d,e){if(a.k){e=e||{};if(d=d?a.D.get(d):YK.o)null!=e.opt_fullscreen||(e.opt_fullscreen=KO(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_offset&&a.o&&(e.opt_offset=LO(a.o));return hO(b,c,e)||""}return""}
HO.prototype.C=function(a){var b=a.qd,c=b.queryId,d={};d.timeoutId=b.timeoutId;switch(a.vc){case "getViewability":d.viewabilityString=NO(this,"metric",c)||"";this.j.send("activityMonitor","viewability",d);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var g={};g.opt_fullscreen=b.isFullscreen;b.isOverlay&&(g.opt_offset=b.overlayOffset);var h=null;"isFullscreen"in b&&(h=b.isFullscreen);d.viewabilityString=NO(this,e,c,a,g);d.engagementString=OO(this,a,h);this.j.send("activityMonitor","viewability",
d);break;case "fetchAdTagUrl":c={},c.timeoutId=b.timeoutId,a=b.osdId,h=null,"isFullscreen"in b&&(h=b.isFullscreen),c.engagementString=OO(this,a,h),this.j.send("activityMonitor","engagement",c)}};function OO(a,b,c){if(!YK.A)return"";var d=b?a.D.get(b):YK.o;a={};null!=c&&(a.fullscreen=c);return LL(function(){return d},a)}q("ima.common.sdkVolume",function(a){var b=JO();a=b.F.get(a)||b.B;return null!=a?a():-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=JO().j;d?d.send("activityMonitor","viewableImpression",c):JO().T(new AJ("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a){var b={};b.queryId=a;(a=JO().j)?a.send("activityMonitor","measurableImpression",b):JO().T(new AJ("measurable_impression",null,b))},void 0);function PO(a,b,c){if(mb(a))return null;a=fb(a,function(a){var b=a.A;return"application/x-mpegurl"==C(a.j).toLowerCase()||"progressive"==b});mb(c)||(c=E(c,function(a){return a.toLowerCase()}),a=fb(a,function(a){return G(c,C(a.j).toLowerCase())}));if(!ha(b)||0>=b)b=pN()?500:1E3;return QO(a,b)}function QO(a,b){return RO(a,b)||SO(a,b)||TO(a,b)}function RO(a,b){var c=null;D(a,function(a){var e=a.Vd,g=a.Yd;e>b||g<b||!(null==c||c.Vd>e)||(c=a)});return c}
function SO(a,b){var c=null;D(a,function(a){var e=a.Vd,g=a.Yd;g>b||(null==c||c.Yd<g?c=a:null!=c&&c.Yd==g&&c.Vd>e&&(c=a))});return c}function TO(a,b){var c=null;D(a,function(a){var e=a.Vd,g=a.Yd;if(!(e<b))if(null!=c&&c.Vd==e&&c.Yd<g)c=a;else if(null==c||c.Vd>e)c=a});return c};function UO(){U.call(this);this.C=this.F=this.H=this.D=!1;this.k=0;this.A=[];this.J=!1;this.o=0;this.B=new sn(this);this.G={}}A(UO,U);function VO(a,b){null==b||a.D||(a.j=b,WO(a),a.D=!0)}function XO(a){null!=a.j&&a.D&&(YO(a),a.D=!1,a.F=!1,a.C=!1,a.k=0,a.A=[],a.J=!1)}
function WO(a){YO(a);!(a.j instanceof U)&&"ontouchstart"in document.documentElement&&eL()?(a.G={touchstart:w(a.TD,a),touchmove:w(a.SD,a),touchend:w(a.RD,a)},Ib(a.G,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.B.listen(a.j,"click",a.gt)}function YO(a){a.B.Aa(a.j,"click",a.gt);Ib(a.G,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.G={}}f=UO.prototype;
f.TD=function(a){this.F=!0;this.k=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.H=!0);this.J=ZO(this,a.touches)||1!=a.touches.length;$O(this,a.touches)};f.SD=function(a){this.k=a.touches.length;this.C=!0};f.RD=function(a){!this.F||1!=this.k||this.C||this.H||this.J||!ZO(this,a.changedTouches)||(this.o=window.setTimeout(w(this.Fs,this),300));this.k=a.touches.length;0==this.k&&(this.C=this.F=!1,this.A=[]);this.H=!1};f.gt=function(){this.Fs()};
function $O(a,b){a.A=[];D(b,function(a){ob(this.A,a.identifier)},a)}function ZO(a,b){return hb(b,function(a){return G(this.A,a.identifier)},a)}f.Fs=function(){this.o=0;this.T(new dm("click"))};f.L=function(){XO(this);this.B.dispose();this.B=null;UO.I.L.call(this)};function aP(a,b,c,d,e,g,h,k,l){this.A=a;this.j=b;isNaN(c)&&isNaN(d)&&isNaN(e)?e=d=0:isNaN(d)&&!isNaN(e)?d=e:!isNaN(d)&&isNaN(e)?e=d:!isNaN(c)&&isNaN(d)&&isNaN(e)&&(d=e=c);this.Vd=d;this.Yd=e;this.B=h;this.k=k;this.o=l}aP.prototype.getHeight=function(){return this.B};function bP(){U.call(this)}A(bP,U);var cP={QH:"beginFullscreen",CLICK:"click",pI:"end",rI:"endFullscreen",ERROR:"error",qJ:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",vK:"skip",XG:"skipShown",Lu:"start",LK:"timeUpdate",KK:"timedMetadata",oL:"volumeChange"};bP.prototype.mr=t;bP.prototype.Nf=function(){return null};function dP(a){U.call(this);this.j=a;this.N=new Km(4);this.A=0;this.K=this.o=this.F=!1;this.H=this.Bg();this.G=this.Gd();this.O=15E3;this.J=!1}A(dP,bP);f=dP.prototype;
f.Pq=function(a,b,c){a=fb(a,function(a){var b=a.j;B(C(a.k))||"progressive"!=a.A&&"application/x-mpegurl"!=C(b).toLowerCase()?a=!1:(b=C(b).toLowerCase(),a=B(b)||ad&&fL(bL,2.3)&&-1!=b.indexOf("application/ogg")?!1:ad&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||eL()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!B(this.j.canPlayType(b)));return a},this);return PO(a,b,c)};
f.Im=function(){return fb(Pb(OJ),function(a){return!B(this.j.canPlayType(a))},this)};f.Rk=function(a){this.O=0<a.wb?a.wb:15E3};f.load=function(a){eP(this);this.j.src=a;this.j.load()};f.getVideoUrl=function(){return this.j.src};f.setVolume=function(a){this.j.volume=a};f.jd=function(){return this.j.volume};f.play=function(){this.J=!1;nn(this.j.play,0,this.j);this.P=nn(this.iE,this.O,this)};f.pause=function(){this.J=!0;this.j.pause()};
f.Ug=function(){return this.j.paused?eL()||$h?this.j.currentTime<this.j.duration:!0:!1};f.Wg=function(){return this.j.muted};f.tn=function(){dL()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};f.Gd=function(){return KO(this.j)};f.ph=function(a){var b;t:{for(b=this.N.La();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.Pf=function(a){this.j.currentTime=a};f.getCurrentTime=function(){return this.j.currentTime};f.Or=function(){return fP(this)};
f.fd=function(){return isNaN(this.j.duration)?-1:this.j.duration};f.Ne=function(){return this.j.ended};f.Bg=function(){return new H(this.j.offsetWidth,this.j.offsetHeight)};f.Xr=function(){return this.j.seeking};f.L=function(){this.Cf();this.j=null;dP.I.L.call(this)};f.Kt=function(){return this.j.error};
f.mi=function(){this.Cf();this.k=new sn(this);this.k.listen(this.j,"canplay",this.bC);this.k.listen(this.j,"ended",this.YB);this.k.listen(this.j,"webkitbeginfullscreen",this.fm);this.k.listen(this.j,"webkitendfullscreen",this.qr);this.k.listen(this.j,"pause",this.$B);this.k.listen(this.j,"playing",this.cC);this.k.listen(this.j,"timeupdate",this.dC);this.k.listen(this.j,"volumechange",this.aC);this.k.listen(this.j,"error",this.Yp);this.C=new UO;this.k.listen(this.C,"click",this.XB);VO(this.C,this.j);
this.D=new ln(1E3);this.k.listen(this.D,"tick",this.ZB);this.D.start()};f.Cf=function(){null!=this.C&&(XO(this.C),this.C=null);null!=this.D&&this.D.dispose();null!=this.k&&(this.k.dispose(),this.k=null);eP(this)};function eP(a){a.o=!1;a.F=!1;a.A=0;a.K=!1;a.N.clear();on(a.P);wi(a.B)}function gP(a){a.o||(a.o=!0,on(a.P),a.T("start"),jL()||!ad||ad&&fL(bL,3)||dL()&&(!eL()||!fL(aL,4))||a.fm())}
f.bC=function(){var a;if(a=ai)a=Pc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.K&&(this.Pf(.001),this.K=!0)};f.cC=function(){this.T("play");eL()||Zh||gP(this)};f.dC=function(){if(!this.o&&(eL()||Zh)){if(0>=this.getCurrentTime())return;if(Zh&&this.Ne()&&1==this.fd()){this.Yp();return}gP(this)}if(eL()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.Pf(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}this.N.add(this.j.currentTime);this.T("timeUpdate")};
f.aC=function(){this.T("volumeChange")};f.$B=function(){var a;this.o&&eL()&&!this.J&&2>fP(this)-this.j.currentTime?(this.B=new ln(250),this.k.listen(this.B,"tick",this.rA),this.B.start(),a=!0):a=!1;a||this.T("pause")};f.YB=function(){var a=!0;eL()&&(a=this.A>=this.j.duration-1.5);!this.F&&a&&this.T("end")};f.fm=function(){this.T("beginFullscreen")};f.qr=function(){this.T("endFullscreen")};f.Yp=function(){on(this.P);this.T("error")};f.XB=function(){this.T("click")};
f.ZB=function(){var a=this.Bg(),b=this.Gd();if(a.width!=this.H.width||a.height!=this.H.height)!this.G&&b?this.fm():this.G&&!b&&this.qr(),this.H=a,this.G=b};f.iE=function(){if(!this.o){try{lL(kL.getInstance(),16)}catch(a){}eP(this);this.T("mediaLoadTimeout")}};f.rA=function(){if(this.Ne()||!this.Ug())wi(this.B);else{var a=this.j.duration-this.j.currentTime,b=fP(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(wi(this.B),this.play())}};
function fP(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};function hP(){U.call(this);this.j=new iP;this.k=new sn(this);var a=TK();if(a){t:{if("videoElementMockDuration"in a.j&&(a=a.j.videoElementMockDuration,ha(a)))break t;a=NaN}this.duration=a}}A(hP,U);function jP(){var a=["video/mp4"],b=["video/ogg"],c=new hP;c.canPlayType=function(c){return G(a,c)?"probably":G(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}function kP(a){this.startTime=0;this.endTime=a}function iP(){this.length=0;this.j=[]}iP.prototype.start=function(a){return this.j[a].startTime};
iP.prototype.end=function(a){return this.j[a].endTime};f=hP.prototype;f.readyState=0;f.currentTime=0;f.duration=NaN;f.gg=!0;f.wu=!1;f.autoplay=!1;f.volume=1;f.muted=!1;f.src="";f.qE=1;f.playbackRate=0;f.Xc=null;f.jk=0;f.SF=4;f.$g=null;f.hj=null;
f.play=function(){this.wu&&(this.currentTime=0,this.T("timeupdate"));this.gg&&(this.gg=!1,this.T("play"),this.readyState=this.SF,2>=this.readyState?this.T("waiting"):this.T("playing"));if(null===this.Xc||this.Xc.fa())this.Xc=new ln(10),this.Xc.listen("tick",w(this.xu,this));this.jk=z();this.Xc.start();this.autoplay=!1};f.pause=function(){this.autoplay=!1;this.gg||(this.Xc.stop(),this.gg=!0,this.T("timeupdate"),this.T("pause"))};
f.load=function(){this.readyState=0;this.gg=!0;this.T("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.j;a.j.push(new kP(this.duration));a.length=a.j.length;this.T("loadedmetadata");0<this.currentTime&&this.T("timeupdate");this.T("loadeddata");this.T("canplay");this.T("canplaythrough");this.T("progress");this.playbackRate=this.qE};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.T("seeking");this.currentTime=c;this.T("seeked");this.xu();break;case "duration":this.duration=Number(b);this.T("durationchange");break;case "volume":this.volume=Number(b),this.T("volumechange")}};f.xu=function(){var a=z()-this.jk,b=this.currentTime+a/1E3;this.jk+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.T("timeupdate");this.currentTime==this.duration&&(this.wu=this.gg=!0,this.Xc.stop(),this.T("ended"))};
f.L=function(){this.Xc&&!this.Xc.fa()&&this.Xc.dispose()};f.pz=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.hj&&(this.hj.innerText=b);c&&this.$g&&(this.$g.style.backgroundColor=c)};Uc&&gd(8);function lP(){};var mP={},nP={},oP={};function pP(){throw Error("Do not instantiate directly");}pP.prototype.he=null;pP.prototype.getContent=function(){return this.content};pP.prototype.toString=function(){return this.content};function qP(a,b){var c=od().createElement("DIV"),d=rP(a(b||sP,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function rP(a){if(!ja(a))return String(a);if(a instanceof pP){if(a.Zc===mP)return a.getContent();if(a.Zc===oP)return za(a.getContent())}return"zSoyz"}var sP={};function tP(a){if(null!=a)switch(a.he){case 1:return 1;case -1:return-1;case 0:return 0}return null}function uP(){pP.call(this)}A(uP,pP);uP.prototype.Zc=mP;function vP(a){return null!=a&&a.Zc===mP?a:a instanceof Cc?wP(Ec(a),a.$f()):wP(za(String(String(a))),tP(a))}function xP(){pP.call(this)}A(xP,pP);xP.prototype.Zc={};xP.prototype.he=1;function yP(){pP.call(this)}A(yP,pP);yP.prototype.Zc=nP;yP.prototype.he=1;function zP(){pP.call(this)}A(zP,pP);zP.prototype.Zc={};zP.prototype.he=1;
function AP(){pP.call(this)}A(AP,pP);AP.prototype.Zc={};AP.prototype.he=1;function BP(a,b){this.content=String(a);this.he=null!=b?b:null}A(BP,pP);BP.prototype.Zc=oP;function CP(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var wP=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.he=d);return e}}(uP);CP(xP);CP(yP);var DP=CP(zP);CP(AP);
(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.he=d);return e}})(uP);var EP=/['()]/g;function FP(a){return"%"+a.charCodeAt(0).toString(16)}function GP(a){if(null!=a&&a.Zc===nP)return String(a).replace(HP,IP);if(a instanceof xc)return a=zc(a),String(a).replace(HP,IP);a=xa(String(a));EP.lastIndex=0;return EP.test(a)?a.replace(EP,FP):a}var JP={};
function KP(a){JP[1]||(JP[1]=new lP);var b=tP(a);if(null==b){var c=b=0,d=!1;a=hc(a+"",null!=a&&a.Zc===mP).split(nc);for(var e=0;e<a.length;e++){var g=a[e];kc.test(hc(g,void 0))?(b++,c++):lc.test(g)?d=!0:jc.test(hc(g,void 0))?c++:oc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return DP(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var LP={"\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"};function IP(a){return LP[a]}var HP=/[\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;function MP(a){var b='<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+vP(a.Cg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+vP(a.Cg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=KP(a.kf);
c=vP(c);return b+c+">"+vP(a.kf)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'}function NP(a){var b=KP(a.kf);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+vP(b)+">"+vP(a.kf)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function OP(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function PP(a){var b="";a=sa("You can skip this ad in {$xSeconds}",{xSeconds:vP(a.Oo)});return b+a}function QP(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+vP(a.Sv)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function RP(a){var b="";a=2<=a.ri&&1<=a.pi?sa("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:vP(a.pi),totalAds:vP(a.ri),timeLeft:vP(a.qi)}):sa("Ad {$timeLeft}",{timeLeft:vP(a.qi)});return b+=a};function SP(a,b){if(null==a||!Sd(qd(a),a))throw OK(lK,null,"containerElement","element");this.B=a;this.k=this.j=null;this.A=b;this.o=null;this.j=I("div",{style:"display:none;"});var c;c=TK();if(UK(c,"useVideoElementMock")){c=jP();var d=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"});ra(d,c);c.$g=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"});c.hj=I("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"});
c.$g.appendChild(c.hj);d.appendChild(c.$g);c.k.listen(c,["loadeddata","playing","pause","ended"],c.pz);c=d}else c="",d=sa("Advertisement"),c=I("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:c+d});c.setAttribute("webkit-playsinline",!0);this.k=c;this.o=I("div",{style:"position:absolute;width:100%;height:100%;"});this.B.appendChild(this.j);this.j.appendChild(this.k);this.A&&(c=I("div",{id:this.A,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),
this.j.appendChild(c));this.j.appendChild(this.o)}A(SP,R);SP.prototype.initialize=function(){cL()&&this.k.load()};SP.prototype.L=function(){Ld(this.j);SP.I.L.call(this)};SP.prototype.show=function(){var a=this.j;null!=a&&(a.style.display="block")};SP.prototype.hide=function(){var a=this.j;null!=a&&(a.style.display="none")};function TP(a){null!=a?UJ(QJ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&UJ(RJ,a)?UP(a):null:a=null;return a}function VP(a,b,c){if(null==a)return null;c=new J((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");We(c,d);return c.toString()}
function UP(a){if(B(C(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=gf(new J(a));return rf(a,"v")?a.get("v").toString():rf(a,"video_id")?a.get("video_id").toString():null};function WP(a){U.call(this);this.H="ima-chromeless-video";var b=null;null!=a&&(v(a)?this.H=a:b=a);this.J=new sn(this);this.B=null;this.o=!1;this.V=this.Bg();this.U=this.Gd();this.D=-1;this.P=!1;this.C=-1;this.k=this.N=this.F=null;this.R="";this.j=!1;this.$=null!=b;this.G=this.O=this.Z=null;this.A=void 0;this.W=null;null!=b?(this.j=!0,this.Z=b,this.A=2):(a=w(this.aw,this),XP?a():(YP.push(a),a=Fd("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}A(WP,bP);var ZP=["video/mp4","video/webm"],$P={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},YP=[],XP=!1;f=WP.prototype;f.Pq=function(a,b,c){var d=F(a,function(a){return null!==TP(a.k)});if(null!==d)return d;a=fb(a,function(a){a=C(a.j);return this.j?this.Z.canPlayType(a):G(ZP,a)},this);mb(c)||(d=PO(a,b,c));return null!=d?d:PO(a,b,[])};f.Rk=function(a){this.k=a};f.load=function(a,b){null!==a&&(this.R=a,this.j?aQ(this,a,b):(this.F=a,this.N=b))};f.getVideoUrl=function(){return this.R};
f.setVolume=function(a){this.$?this.T("volumeChange"):this.j?(a=Kc(100*a,0,100),this.Z.setVolume(a),this.C=-1,this.T("volumeChange")):this.C=a};f.jd=function(){return this.j?this.Z.getVolume()/100:this.C};
f.play=function(){if(!B(C(this.R))){if(!this.o){bQ(this);var a=15E3;null!=this.k&&0<this.k.wb&&(a=this.k.wb);this.ca=nn(this.Yz,a,this)}this.j?(this.P=!1,cQ(this),this.B=new ln(100),this.J.listen(this.B,"tick",this.Oq),this.B.start(),!this.o&&this.k&&this.k.j?this.Z.loadVideoByPlayerVars(this.W):this.Z.playVideo()):this.P=!0}};f.pause=function(){this.j&&this.o&&(cQ(this),this.Z.pauseVideo())};f.Ug=function(){return this.j?2==this.Z.getPlayerState(this.A):!1};
f.Wg=function(){return this.j?this.Z.isMuted():0==this.jd()};f.tn=function(){};f.Gd=function(){var a=YK.j?YK.o:document.getElementById(this.H);return a?KO(a):!1};f.ph=function(a){return this.j?this.Z.getCurrentTime(this.A)>=a:!1};f.Pf=function(a){this.j?this.Z.seekTo(a,!1):this.D=a};f.getCurrentTime=function(){return this.j?this.Z.getCurrentTime(this.A):-1};f.Or=function(){return this.j&&this.o?this.Z.getVideoLoadedFraction(this.A)*this.Z.getDuration(this.A):0};
f.fd=function(){return this.j&&this.o?this.Z.getDuration(this.A):-1};f.Kt=function(){return null};f.Im=function(){return Pb(OJ)};f.Ne=function(){return this.j?0==this.Z.getPlayerState(this.A):!1};f.Bg=function(){var a=YK.j?YK.o:document.getElementById(this.H);return a?new H(a.offsetWidth,a.offsetHeight):new H(0,0)};f.Xr=function(){return!1};
f.jF=function(){var a=this.Bg(),b=this.Gd();if(a.width!=this.V.width||a.height!=this.V.height)!this.U&&b?this.T("beginFullscreen"):this.U&&!b&&this.T("endFullscreen"),this.V=a,this.U=b};f.mi=function(){this.O=w(this.nu,this);this.G=w(this.Un,this);this.$&&(this.Z.addEventListener("onAdStateChange",this.G),this.Z.addEventListener("onReady",this.O),this.Z.addEventListener("onStateChange",this.G));this.K=new ln(1E3);this.J.listen(this.K,"tick",this.jF);this.K.start()};
f.Cf=function(){this.$&&(this.Z.removeEventListener("onAdStateChange",this.G),this.Z.removeEventListener("onReady",this.O),this.Z.removeEventListener("onStateChange",this.G));null!=this.K&&this.K.dispose()};f.aw=function(){var a=this.H,b={playerVars:$b($P),events:{onError:w(this.LF,this),onReady:w(this.nu,this),onAdStateChange:w(this.Un,this),onStateChange:w(this.Un,this)}},c=r("YT");this.Z=null!=c&&null!=c.Player?new c.Player(a,b):null};
function aQ(a,b,c){var d={};if(null!=a.k){var e=a.k.k;null!=e&&(d.agcid=e);e=a.k.B;null!=e&&(d.adformat=e);(e=a.k.o)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.k.C?1:3;a.k.A&&(d.noiba=1);a.k.D&&(d.utpsa=1)}e=TP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.o=!1;a.k&&a.k.j?(a.W=d,a.Z.preloadVideoByPlayerVars(a.W)):a.Z.cueVideoByPlayerVars(d)}f.LF=function(){this.T("error")};
f.nu=function(){this.j=!0;-1!=this.C&&(this.setVolume(this.C),this.C=-1);null!=this.F&&(aQ(this,this.F,this.N),this.N=this.F=null);-1!=this.D&&(this.Pf(this.D),this.D=-1);this.P&&this.play()};f.Un=function(a){switch(a.data){case 0:this.o?this.T("end"):this.T("error");break;case 1:this.o||(bQ(this),this.o=!0,this.T("start"));this.T("play");break;case 2:this.T("pause")}};function cQ(a){a.J.Aa(a.B,"tick",a.Oq);null!=a.B&&(a.B.stop(),a.B=null)}function bQ(a){null!=a.ca&&on(a.ca)}f.Oq=function(){this.T("timeUpdate")};
f.Yz=function(){this.T("mediaLoadTimeout")};f.mr=function(a,b){this.j&&this.Z.addInfoCardXml(a,b)};f.Nf=function(){if(!this.j)return null;var a=this.Z.getVideoData();return a?a.cpn:null};f.L=function(){cQ(this);bQ(this);this.Cf();this.j=!1;this.J.dispose();this.D=-1;this.N=null;this.P=!1;this.F=null;this.C=-1;this.O=this.Z=this.k=null;this.o=!1;this.R="";WP.I.L.call(this)};q("onYouTubeIframeAPIReady",function(){XP=!0;D(YP,function(a){a()});nb(YP)},window);function dQ(a){U.call(this);this.j=a||Va();this.k=[]}A(dQ,U);dQ.prototype.o=!1;dQ.prototype.connect=function(){for(this.o=!0;!mb(this.k);){var a=this.k.shift();this.sendMessage(a.name,a.type,a.data)}};dQ.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.k.push({name:a,type:b,data:c})};function eQ(a,b,c,d,e){dm.call(this,a);this.vc=b;this.qd=c;this.Uq=d;this.A=e}A(eQ,dm);eQ.prototype.getOrigin=function(){return this.A};eQ.prototype.toString=function(){return""};function fQ(a,b){dQ.call(this,b);this.A=a;this.Dc=null;this.B=new sn(this);this.logger=null;this.B.listen(Bd(),"message",this.receive)}A(fQ,dQ);function gQ(a){if(null==a||!v(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return dg(a)}catch(b){return null}}fQ.prototype.sendMessage=function(a,b,c){null!=this.Dc&&null!=this.Dc.postMessage&&this.Dc.postMessage(hQ(this,a,b,c),"*");null!=this.Dc&&null==this.Dc.postMessage&&lL(kL.getInstance(),11)};
fQ.prototype.L=function(){this.B.dispose();fQ.I.L.call(this)};fQ.prototype.receive=function(a){a=a.j;var b=gQ(a.data);if(null!=b){if(null==this.Dc)this.Dc=a.source;else if(this.Dc!=a.source)return;var c=b.channel;null!=c&&c==this.A&&(c=b.sid,null!=c&&("*"!=this.j&&c!=this.j||this.T(new eQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function hQ(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.A;return"ima://"+fg(e)};function iQ(a,b){U.call(this);this.A=a;this.o=b;this.j={};this.k=new sn(this);this.k.listen(Bd(),"message",this.B)}A(iQ,U);iQ.prototype.send=function(a){var b=a.getChannelId();this.j.hasOwnProperty(b)?this.j[b].send(a.type,a.vc,a.qd):a.getChannelId()};function jQ(a,b,c,d){a.j.hasOwnProperty(b)||(c=new fQ(b,c),a.k.listen(c,a.A,function(a){a=new kQ(a.type,a.vc,a.qd,a.Uq,a.getOrigin(),b);this.T(a)}),c.Dc=d,c.connect(),a.j[b]=c)}
iQ.prototype.L=function(){this.k.dispose();for(var a in this.j)wi(this.j[a]);iQ.I.L.call(this)};iQ.prototype.B=function(a){a=a.j;var b=gQ(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.j.hasOwnProperty(c)){var d=b.sid;jQ(this,c,d,a.source);this.T(new kQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function kQ(a,b,c,d,e,g){eQ.call(this,a,b,c,d,e);this.o=g}A(kQ,eQ);kQ.prototype.getChannelId=function(){return this.o};function lQ(){var a=r("google.ima.gptProxyInstance",Bd());if(null!=a)return a;sn.call(this);this.o=new iQ("gpt",!0);S(this,this.o);this.listen(this.o,"gpt",this.C);this.j=null;mQ()||Bd().top===Bd()||(this.j=new iQ("gpt",!1),S(this,this.j),this.listen(this.j,"gpt",this.B))}A(lQ,sn);function mQ(){return!!r("googletag.cmd",Bd())}function nQ(){var a=r("googletag.console",Bd());return null!=a?a:null}
lQ.prototype.C=function(a){var b=a.getOrigin(),c=ze("//imasdk.googleapis.com"),b=ze(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)jQ(this.j,a.getChannelId(),a.Uq,Bd().parent),null!=this.j&&this.j.send(a);else if(c=a.qd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.vc,"isGptPresent"==c?d=mQ():"isConsolePresent"==c&&(d=null!=nQ());else if(mQ())if("pubads"==b||"companionAds"==b){d=a.vc;var e,g=Bd().googletag;if(null!=g&&null!=g[b]&&(g=g[b](),null!=g&&(d=g[d],null!=d)))try{e=d.apply(g,
c)}catch(h){}d=e}else if("console"==b){if(g=a.vc,e=nQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.vc;d=Bd();if(G(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.qd.returnValue=d,this.o.send(a))}};lQ.prototype.B=function(a){this.o.send(a)};function oQ(a,b,c,d,e,g,h,k){this.B=a;this.k=b;this.o=c;this.A=h;this.C=d;this.D=e;this.wb=g;this.j=k};function pQ(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,k,l,p,u,x){if("%"==p)return"%";var L=c.shift();if("undefined"==typeof L)throw Error("[goog.string.format] Not enough arguments");arguments[0]=L;return qQ[p].apply(null,arguments)})}
var qQ={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Oa(" ",c-a.length):Oa(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=a.toFixed(e));var g;g=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=g+d);if(isNaN(c)||d.length>=c)return d;d=isNaN(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-g.length;return d=0<=b.indexOf("-",0)?g+d+Oa(" ",a):g+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return qQ.f(parseInt(a,
10),b,c,d,0,g,h,k)}};qQ.i=qQ.d;qQ.u=qQ.d;function rQ(a,b){U.call(this);this.A=new sn(this);this.F=!1;this.G=Va();this.C=new oe;var c=this.G,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+pQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});wn(this.A,c,"load",this.ox);a.appendChild(c);this.k=c;c=this.C.get("*");null==c&&(c=new fQ(this.G,"*"),this.F&&(c.Dc=Td(this.k),c.connect()),this.C.set("*",c));this.B=c;this.D=b;this.j=this.D.o;
this.o=null;this.A.listen(this.B,"mouse",this.rx);this.A.listen(this.B,"touch",this.ux);null!=this.j&&(this.A.listen(this.B,"displayContainer",this.qx),this.A.listen(this.B,"videoDisplay",this.tx),this.A.listen(this.j,Pb(cP),this.vx));var c=Bd(),d=r("google.ima.gptProxyInstance",c);null==d&&(d=new lQ,q("google.ima.gptProxyInstance",d,c))}A(rQ,U);f=rQ.prototype;
f.L=function(){this.A.dispose();null!==this.o&&(this.o.dispose(),this.o=null);me(this.C.bc(!1),function(a){a.dispose()});this.C.clear();Ld(this.k);rQ.I.L.call(this)};f.rx=function(a){var b=a.qd,c=Hg(this.k),d=document.createEvent("MouseEvent");d.initMouseEvent(a.vc,!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(!ai||eL()||0==document.webkitIsFullScreen)this.k.blur(),window.focus();this.k.dispatchEvent(d)};
function sQ(a,b){var c=Hg(a.k),d=E(b,function(a){return document.createTouch(window,this.k,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.ux=function(a){var b=a.qd,c=Hg(this.k),d=document.createEvent("TouchEvent");d.initTouchEvent(a.vc,!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,sQ(this,b.touches),sQ(this,b.targetTouches),sQ(this,b.changedTouches),b.scale,b.rotation);this.k.dispatchEvent(d)};
f.tx=function(a){if(null!=this.j){var b=a.qd;switch(a.vc){case "startTracking":this.j.mi();break;case "stopTracking":this.j.Cf();break;case "exitFullscreen":this.j.tn();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.Pf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Rk(new oQ(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.vx=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 "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.Ne();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.fd();break;case "volumeChange":a=
"volumeChange";b.volume=this.j.jd();break;default:return}this.B.send("videoDisplay",a,b)};f.qx=function(a){switch(a.vc){case "showVideo":null!=this.o?XO(this.o):(this.o=new UO,this.A.listen(this.o,"click",this.oC));VO(this.o,tQ(this.D));a=this.D;null!=a.j&&a.j.show();break;case "hide":null!==this.o&&(this.o.dispose(),this.o=null),this.D.hide()}};f.oC=function(){this.B.send("displayContainer","videoClick")};f.ox=function(){me(this.C.bc(!1),function(a){a.Dc=Td(this.k);a.connect()},this);this.F=!0};function uQ(a,b,c,d){if(null==a||!Sd(qd(a),a))throw OK(lK,null,"containerElement","element");this.A=a;var e=null!=b||null!=d,g=e,h=!1;YK.j||(eL()||ad||Ma(Pc,"CrKey")||iL()||Ma(Pc,"Roku")||hL()||Ma(Pc,"Xbox"))&&e||(cL()||Ma(Pc,"CrKey")||iL()||Ma(Pc,"Roku")||hL()||Ma(Pc,"Xbox")||(h=!0),g=!1);this.C=g;this.F=h||g&&null!=d;YK.j?a=null:(e=I("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.k=a;this.j=!this.C&&this.k&&!YK.j&&cL()?new SP(this.k,null):null;a=null;this.C?b?a=new dP(b):
d&&(a=new WP(d)):this.j&&(a=new dP(this.j.k));this.B=(this.o=a)?c||null:null;this.G=null!=this.B;lL(kL.getInstance(),8,{enabled:this.C,yt:null!=d,customClick:null!=this.B});YK.j&&(b=this.A,YK.o=b);this.D=null==this.k||YK.j?null:new rQ(this.k,this)}uQ.prototype.initialize=function(){null!=this.j&&this.j.initialize()};uQ.prototype.destroy=function(){wi(this.j);wi(this.D);wi(this.o);Ld(this.k)};uQ.prototype.hide=function(){null!=this.j&&this.j.hide()};
function tQ(a){return a.G&&a.B?a.B:null!=a.j?a.j.o:null};function vQ(a,b,c,d,e,g){var h=[];h.push(b||"");h.push(c||"");h.push(d||"");h.push(e||"");c=b="";if(null!=g){b=[];c=0;for(d=g;d&&25>c;d=d.parentNode,++c)b.push(9!=d.nodeType&&d.id||"");b=b.join();t:{if(g&&g.nodeName&&g.parentElement){c=g.nodeName.toLowerCase();d=g.parentElement.childNodes;for(var k=e=0;k<d.length;++k){var l=d[k];if(l.nodeName&&l.nodeName.toLowerCase()==c){if(g==l){c="."+e;break t}++e}}}c=""}}h.push(b,c);if(null!=a)h.push(Oe(a,"ad_type")||""),h.push(Oe(a,"videoad_start_delay")||""),
h.push(Oe(a,"sz")||""),h.push(Oe(a,"vpos")||""),h.push(Oe(a,"mridx")||""),h.push(Oe(a,"vad_type")||"");else for(a=0;8>a;++a)h.push("");h.join(":");h=h.join(":");a=h.length;if(0==a)h=0;else{g=305419896;for(b=0;b<a;b++)g^=(g<<5)+(g>>2)+h.charCodeAt(b)&4294967295;h=0<g?g:4294967296+g}return h.toString()};function wQ(){U.call(this);this.currentTime=0}A(wQ,U);function xQ(a){wQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw OK(lK,null,"content","currentTime");this.k=a;this.j=new ln(250);this.o=new sn(this);vn(this.o,this.j,"tick",this.A,this)}A(xQ,wQ);xQ.prototype.start=function(){this.j.start()};xQ.prototype.stop=function(){this.j.stop()};xQ.prototype.L=function(){xQ.I.L.call(this);this.o.dispose();this.j.dispose()};
xQ.prototype.A=function(){if("currentTime"in this.k&&!isNaN(this.k.currentTime)){var a=this.currentTime;this.currentTime=this.k.currentTime;a!=this.currentTime&&this.T(new dm("currentTimeUpdate"))}else this.T(new dm("contentWrapperError")),this.stop()};function yQ(){this.j=0;this.k=null};var zQ;
zQ={B:["BC","AD"],A:["Before Christ","Anno Domini"],D:"JFMAMJJASOND".split(""),P:"JFMAMJJASOND".split(""),C:"January February March April May June July August September October November December".split(" "),N:"January February March April May June July August September October November December".split(" "),H:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),R:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),V:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Da:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
K:"Sun Mon Tue Wed Thu Fri Sat".split(" "),U:"Sun Mon Tue Wed Thu Fri Sat".split(" "),F:"SMTWTFS".split(""),O:"SMTWTFS".split(""),J:["Q1","Q2","Q3","Q4"],G:["1st quarter","2nd quarter","3rd quarter","4th quarter"],j:["AM","PM"],k:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],X:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],o:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],NG:6,Ra:[5,6],OG:5};function AQ(a,b,c,d,e,g){v(a)?(this.o="y"==a?b:0,this.k="m"==a?b:0,this.j="d"==a?b:0,this.A="h"==a?b:0,this.B="n"==a?b:0,this.C="s"==a?b:0):(this.o=a||0,this.k=b||0,this.j=c||0,this.A=d||0,this.B=e||0,this.C=g||0)}AQ.prototype.equals=function(a){return a.o==this.o&&a.k==this.k&&a.j==this.j&&a.A==this.A&&a.B==this.B&&a.C==this.C};AQ.prototype.clone=function(){return new AQ(this.o,this.k,this.j,this.A,this.B,this.C)};
AQ.prototype.add=function(a){this.o+=a.o;this.k+=a.k;this.j+=a.j;this.A+=a.A;this.B+=a.B;this.C+=a.C};function BQ(a,b,c){ha(a)?(this.j=CQ(a,b||0,c||1),DQ(this,c||1)):ja(a)?(this.j=CQ(a.getFullYear(),a.getMonth(),a.getDate()),DQ(this,a.getDate())):(this.j=new Date(z()),this.j.setHours(0),this.j.setMinutes(0),this.j.setSeconds(0),this.j.setMilliseconds(0))}function CQ(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=BQ.prototype;f.Ht=zQ.NG;f.It=zQ.OG;
f.clone=function(){var a=new BQ(this.j);a.Ht=this.Ht;a.It=this.It;return a};f.getFullYear=function(){return this.j.getFullYear()};f.getMonth=function(){return this.j.getMonth()};f.getDate=function(){return this.j.getDate()};f.getTime=function(){return this.j.getTime()};f.set=function(a){this.j=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.o||a.k){var b=this.getMonth()+a.k+12*a.o,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;t:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break t;case 5:case 8:case 10:case 3:d=30;break t}d=31}d=Math.min(d,this.getDate());this.j.setDate(1);this.j.setFullYear(c);this.j.setMonth(b);this.j.setDate(d)}a.j&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.j),this.j.setDate(1),this.j.setFullYear(a.getFullYear()),
this.j.setMonth(a.getMonth()),this.j.setDate(a.getDate()),DQ(this,a.getDate()))};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1),Pa(this.getDate())].join("")+""};function DQ(a,b){a.getDate()!=b&&a.j.setUTCHours(a.j.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.j.valueOf()};function EQ(){this.k=this.j=null};function FQ(){this.j=GQ();this.G=-1;this.K=this.N=this.o=this.F=this.A=null;this.C=GQ();this.k=null;this.O=this.H=this.J="";this.D=this.P=this.B=null}function GQ(){return Math.floor(4503599627370496*Math.random())}var HQ=new FQ;FQ.prototype.clear=function(){this.j=GQ();this.o=this.F=this.A=null;this.C=GQ();this.k=null;this.O=this.H=this.J="";this.D=this.P=this.B=null};function IQ(a){if(YK.j)return"h.3.0.0";var b="h."+a.O;null!=a.B&&(b+="/n."+a.B,null!=a.A&&(b+="/"+a.A));return b};function JQ(a,b){this.C=a;this.B=E(b,function(a){return a.clone()});this.A="";this.j=this.o=0;this.k=!0}function KQ(a){a.A="";a.o=0;a.j=0;a.k=!0}JQ.prototype.getContent=function(){return this.A};JQ.prototype.clone=function(){var a=new JQ(this.C,this.B),b=this.o,c=this.j,d=this.k;a.A=this.A;a.o=b;a.j=c;a.k=d;return a};function LQ(){U.call(this);this.A=!1;this.impressionUrls=[]}A(LQ,U);function MQ(a){dm.call(this,a)}A(MQ,dm);function NQ(){LQ.call(this);this.F=[];this.B=!1;this.o="not_loaded";this.k=null;this.C=0;this.j=null;this.G=new pd}A(NQ,LQ);ba(NQ);function OQ(a){var b=["googletag","googletag.cmd"];return F(a,function(a){return ib(b,function(b){return!da(r(b,a))})})||null}f=NQ.prototype;f.L=function(){this.k&&this.k.dispose()};f.initialize=function(){if(!this.A){var a;var b=ge(new pd);try{r("googletag"),OQ([b,b.top]),a=!0}catch(c){a=!1}a?PQ(this):(this.A=!0,this.o="not_available")}};
function QQ(a){return a.A?E(a.F,function(a){return a.clone()}):[]}function RQ(a){a=QQ(a);return null!=a?E(a,function(a){return a.B}):void 0}function SQ(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(kf(b,"pod")||0),e=Number(kf(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(HQ.j,"","","",d,e,c)}catch(g){}}function TQ(a,b){var c=UQ(a);if(null!==c){SQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=VQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function WQ(a,b){a.D=b;a.setVideoContent("","");var c=UQ(a);SQ(c,null,!1)}function UQ(a){null==a.j&&XQ(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function VQ(a){null==a.j&&XQ(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}
f.Fp=function(){0<this.C&&z()>=this.C?(this.A=!0,YQ(this),ZQ(this)):PQ(this)};function YQ(a){a.k&&(a.k.stop(),a.k.Aa("tick",a.Fp,!1,a),a.k.dispose(),a.k=null)}
function PQ(a){var b;if(b=!a.B)XQ(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.B=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=E(d,a.zx,a)}}catch(e){a.B=!0,c=[]}a.F=c;a.B=!0}if("retrieved"!=a.o&&"not_available"!=a.o&&!da(UQ(a))){var g;b=UQ(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{g=b.getDisplayAdsCorrelator()}catch(h){g=null}else g=null;switch(g){case "not_loaded":case "not_available":a.o=g;break;default:g=Number(g),isNaN(g)?a.o="not_available":
(a.D=g,a.o="retrieved")}}a.B&&"retrieved"==a.o?(a.A=!0,YQ(a),a.T(new MQ("companions_success"))):a.B&&"not_available"==a.o?(a.A=!0,YQ(a),ZQ(a)):a.k||(a.C=z()+5E3,a.k=new ln(100),a.k.listen("tick",a.Fp,!1,a),a.k.start())}function XQ(a){var b=ge(a.G);try{a.j=OQ([b,b.top])}catch(c){a.j=null}}function ZQ(a){a.T(new MQ("companion_initialization_failed"))}f.zx=function(a){var b=E(a.adSizes,function(a){return new H(a.adWidth,a.adHeight)});return new JQ(a.slotId,b)};
f.zA=function(a){var b={};b.slotId=a.C;b.adContent=a.getContent();b.adWidth=a.o;b.adHeight=a.j;b.friendlyIframeRendering=a.k;return b};f.sendImpressionUrls=function(a){aK(this.impressionUrls,a)};function $Q(a){dm.call(this,a)}A($Q,dm);function aR(){U.call(this);this.o=[]}A(aR,U);aR.prototype.su=function(){return!0};function bR(){return new cR("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new oe)}aR.prototype.Ce=function(){return null};function dR(a){aR.call(this);this.j=a;this.C=null;this.D=!1;this.k=null;this.B=new sn;vn(this.B,this.j,["companions_success","companion_initialization_failed"],this.Pz,this);vn(this.B,this.j,"companion_display_error",this.Oz,this);this.j.A?this.D=!0:this.j.initialize()}A(dR,aR);f=dR.prototype;f.destroy=function(){null!=this.B&&this.B.dispose();this.k=null};function eR(a,b){a.k=b;a.A=!0;a.D?fR(a):(a.A=gR(hR(b),[]),a.A||(a.k=null))}
function fR(a){var b=a.k;a.k=null;if(null!=a.j)if(mb(a.o))iR(a);else if(null!=b){var c=jR(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(E(a.o,d.zA,d)),d.sendImpressionUrls()}catch(e){d.T(new MQ("companion_display_error"))}if(0<c.length&&b.ja&&(d=a.j,0!=c.length&&"GDFP"==kR(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].C);b=b.o;c=UQ(d);if(null!==c){SQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else iR(a)}function iR(a){a.T(new $Q("companion_display_error"))}f.su=function(){return this.A};
f.Pz=function(){null!=this.C&&(this.C.stop(),this.C.dispose(),this.C=null);if(null!=this.j){var a=QQ(this.j);null!=a&&(this.o=a)}this.D=!0;null!=this.k&&fR(this);this.T(new dm("initialized"))};f.Oz=function(){iR(this)};
function jR(a,b){var c=[],d=[];D(a.o,function(a){KQ(a);hb(a.B,function(d){t:{var e=lR(b);d=mR(new nR(new H(d.width,d.height)),e);if(!mb(d)&&(d=oR(d,c),null!=d)){e=d.o;if(null!=e&&0!=a.C.indexOf(e)){d=!1;break t}c.push(d);var e=d.getContent(),l=d.j.gd(),p=d.getHeight();d="IFrame"!=d.j.U;a.A=e;a.o=l;a.j=p;a.k=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=hR(b);a.A=gR(e,c);a.A||D(a.o,function(a){KQ(a)},a);return d}
function gR(a,b){if(null==a)return!0;var c=a.j;return"all"==a.k?pR(c,b):"any"==a.k?qR(c,b):!0}function hR(a){return null==a||null==a.j||isNaN(a.j.j)?null:F(rR(a,!0),function(a){a=a.j;return mb(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==sR(a[0])})}function pR(a,b){return ib(a,function(a){return G(b,a)})}function qR(a,b){return hb(a,function(a){return G(b,a)})}function oR(a,b){return F(a,function(a){return!G(b,a)})}f.Ce=function(){return this.j};function tR(a){dm.call(this,a);this.C=[];this.B={};this.o=null;this.A=!0}A(tR,dm);function uR(){this.k=new oe;this.j=.01>Math.random()&&!XK();this.o=0}ba(uR);uR.prototype.start=function(a){this.j&&this.k.set(a,z())};uR.prototype.end=function(a,b){if(this.j&&qe(this.k,a)){var c=z()-this.k.get(a),d=vR(this,a,c,b);YJ(d);this.k.remove(a);this.o+=c}};function vR(a,b,c,d){d=d||{};var e=new J("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5");d.it=b+"."+c;d.sdkv=IQ(HQ);Ib(d,function(a,b){K(e,b,a)},a);return e.toString()};function wR(a,b,c){this.C=b;this.A=c;this.B=null;this.k=new sn(this);this.H=a;this.o=this.j=null;this.D=!1}wR.prototype.start=function(a,b){this.B=a;this.G=b;xR(this);this.C.D?this.F():yn(this.k,this.C,"initialized",this.F,this)};wR.prototype.F=function(){var a=this.C.Ce(),b;b=a.A?"retrieved"!=a.o?void 0:a.D:void 0;a=RQ(a);null!=b&&(this.A.C=b);null!=a&&(this.A.D=a);yR(this)};
function yR(a){if(null===a.B)zR(a);else{var b=new J(a.B.adTagUrl),c=C(kf(b,"vid")),b=C(kf(b,"cmsid")),d=a.A.J,e=a.A.H;a.A.J=c;a.A.H=b;if(B(C(c))||B(C(b)))zR(a);else if(c==d&&b==e)zR(a);else{var g=a.C.Ce();g.setVideoContent(c,b);TQ(g,a.B);a.o=new ln(100);vn(a.k,a.o,"tick",function(){var a;t:{var b=VQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&zR(this)},a);a.o.start()}}}
function xR(a){a.j=new ln;yn(a.k,a.j,"tick",function(){zR(this)},a);mn(a.j,a.H);a.j.start()}function zR(a){null!=a.k&&(a.k.dispose(),a.k=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.o&&(a.o.stop(),a.o=null);a.D=!0;null===a.G||a.G()};function AR(){U.call(this);this.j=new oe;this.k=null;this.C=new sn(this);S(this,this.C);this.B="";this.o=null}A(AR,U);var BR=null;function CR(){null!=BR||(BR=new AR);return BR}function DR(a,b){a.o=b}function ER(a,b){if(a.k){var c=a.j,d=window.setTimeout(function(){b("");D(c.Ja(),function(a){c.get(a)===b&&c.remove(a)})},200);a.j.set(d,b);var e={};a.A&&(e.isFullscreen=a.A.Gd());e.osdId=a.B;e.timeoutId=d;a.k.send("activityMonitor","fetchAdTagUrl",e)}else b("")}
function FR(a,b,c,d){if(a.k){var e=a.j,g=window.setTimeout(function(){d("");D(e.Ja(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};a.A&&(h.isFullscreen=a.A.Gd());a.B&&(h.osdId=a.B);h.queryId=c;h.timeoutId=g;h.vastEvent=b;h.isOverlay=null!=a.o;h.isOverlay&&(h.overlayOffset=LO(a.o));a.k.send("activityMonitor","reportVastEvent",h)}else d("")}AR.prototype.destroy=function(){this.C.Aa(this.k,"activityMonitor",this.D);this.k=null};
AR.prototype.D=function(a){var b=a.qd,c=b.engagementString;switch(a.vc){case "measurableImpression":c={};c.queryId=b.queryId;CR().T(new AJ("measurable_impression",null,c));break;case "viewableImpression":c=b.viewabilityString;a={};a.queryId=b.queryId;a.viewabilityString=c;CR().T(new AJ("viewable_impression",null,a));break;case "viewability":a=b.timeoutId;window.clearTimeout(a);var d=this.j.get(a);d&&(this.j.remove(a),d(b.viewabilityString,c));break;case "engagement":if(a=b.timeoutId,window.clearTimeout(a),
d=this.j.get(a))this.j.remove(a),d(c)}};q("ima.bridge.getNativeViewability",function(a,b){CR();b({})},void 0);function GR(){};function HR(a){return MK(EK,null,a.parentNode.nodeName,a.nodeName)}function IR(a){return MK(tK,null,a.parentNode.nodeName,a.nodeName)}function JR(a,b){return null!=a?fb(Nd(a),function(a){return a.nodeName==b}):[]}function KR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function LR(a,b){if(null==a)return null;var c="";D(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=wa(c);return b?Ha(c):c}
function MR(a,b,c,d){null!=a&&D(Nd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw HR(a);})}function NR(a){return B(C(a))?NaN:Wa(C(a))}function OR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new AQ(0,0,0,Wa(c[0]),Wa(c[1]),Wa(c[2])),60*(60*(24*c.j+c.A)+c.B)+c.C}return null!=b?b:-1}function PR(a,b){if(!B(C(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function QR(a,b,c){this.k=a;this.j=c;this.o=b};function RR(a){this.o=a};function SR(a){this.o=a;this.k=this.j=!1}A(SR,RR);function TR(a,b,c){this.j=a;this.k=b;this.o=c};function UR(){this.j=new oe}function VR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];qe(a.j,c)&&(d=a.j.get(c,[]));D(b,function(a){null!=a&&ob(d,a)});a.j.set(c,d)};function WR(a,b){this.j=a;this.k=b}A(WR,GR);WR.prototype.o=function(){return new QR(this.j,null,XR(this))};
function XR(a){var b=new UR;D(Nd(Od(a.j)),function(a){switch(a.nodeName){case "Preroll":a=YR(this,a);VR(b,a,0);break;case "Midroll":var d=KR(a,"timeOffset"),e=OR(d);if(-1==e)throw MK(fK,null,"timeOffset",C(d));a=YR(this,a);VR(b,a,e);break;case "Postroll":a=YR(this,a);VR(b,a,-1);break;default:throw MK(pK,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Ja().length)throw MK(oK);return b}
function YR(a,b){var c=[];D(Nd(b),function(a){switch(a.nodeName){case "Ad":var b=C(LR(a));if(!B(b)){a=KR(a,"bumper");var g=this.k.clone();g.adTagUrl=b;b=new SR(g);b.j=null!=a;b.k="always"==a;ob(c,b)}break;default:throw MK(pK,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function ZR(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)}function $R(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=wa(d[0]),d=wa(d[1]),0<a.length&&(b[a]=d))});return b};var aS=["ai","sigh"];function bS(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?cS(a)?0:2:-1!=a.indexOf("/pagead/conversion")?cS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+IQ(HQ);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function cS(a){return ib(aS,function(b){var c=a||"";return 0<=Le(c,0,b,c.search(Me))})};function dS(a,b){this.j=a;this.k=b}function eS(a){return a.k?-1:a.j}function fS(a,b){a.k&&(a.k=!1,a.j=a.j*b/100)};function gS(){this.j=new oe}function hS(a,b){this.o=a;this.j=b}function iS(a,b){hS.call(this,"progress",a);this.k=b}A(iS,hS);function jS(a,b){D(b,function(a){var b=a.o.toLowerCase(),e=kS(this,b);e.push(a);this.j.set(b,e)},a)}function lS(a,b,c,d){b=b.toLowerCase();var e=kS(a,b);null!=d?(d=new iS(c,d),null!=d?e.push(d):e.push(new hS(b,c))):e.push(new hS(b,c));a.j.set(b,e)}function kS(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function mS(a,b){var c=kS(a,"progress");D(c,function(a){fS(a.k,b)});Ab(c,function(a,b){return eS(a.k)-eS(b.k)})}gS.prototype.isEmpty=function(){return this.j.isEmpty()};function nS(a,b){return E(kS(a,b)||[],function(a){return a.j})};function oS(a,b){var c=new gS;MR(a,"Tracking",function(a){var e=KR(a,"event"),g=bS(LR(a),b);pS(g)&&null!=e&&("progress"==e?(a=KR(a,"offset"),a=qS(a),null!=a&&lS(c,e,g,a)):lS(c,e,g))});return c}function rS(a){if(B(C(a)))return null;a=new J(a);if("thismessage"!=a.Ib||"extensions"!=a.ob)return null;a=a.Jb;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return B(C(a))?null:a}
function qS(a){if(B(C(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new dS(a,!0))):(a=OR(a),0<=a&&(b=new dS(a,!1)));return b}function pS(a){var b=!0;if(B(C(a)))b=!1;else try{new J(a)}catch(c){b=!1}return b};function sS(a,b){this.j=null!=a?a:new gS;this.D=null!=b?b:[]}function tS(a,b){var c=b.j;D(c.Ja(),function(a){jS(this.j,c.get(a))},a)}function uS(a,b){var c=nS(a.j,b);return null!=c?c:[]};function vS(){this.j="Ads by Google";this.k="http://www.google.com/adsense/support";this.o=0};function wS(a,b,c,d,e,g,h,k,l,p){sS.call(this,l,p);this.A=a;this.B=b;this.k=c;this.F=h;this.C=g;this.o=e}A(wS,sS);function xS(){}xS.prototype.parse=function(a){var b;MR(a,"config",function(a){null!=b||(b=yS(this,a))},this);return b};function yS(a,b){var c;D(Nd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new vS:null;break;case "params":null!=c&&zS(this,c,a)}},a);return c}function zS(a,b,c){D(Nd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.k=c;break;case "attribution_text":b.j=c;break;case "signals":b.o=parseInt(c,10)}},a)};function AS(){}
AS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k,l=!1;D(Nd(a),function(a){switch(a.nodeName){case "AttributionText":c=LR(a);break;case "AttributionUrl":d=LR(a);break;case "ConversionUrl":g=LR(a);break;case "CustomTracking":null!=Nd(a)&&(e=oS(a));break;case "CheckedEvents":a=Nd(a);b=E(a,function(a){return KR(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":LR(a);break;case "VisibleUrl":h=LR(a);break;case "UI":k=(new xS).parse(a);break;case "ShowYouTubeAnnotations":var u=LR(a);
l=PR(C(u),!1);case "QueryId":LR(a)}},this);null!=k||(k=new vS);return new wS(c,d,g,0,h,k,l,0,e,b)};function BS(a,b){sS.call(this,b);this.k=a}A(BS,sS);function CS(){}CS.prototype.parse=function(a){if(null==a)return null;var b;D(Nd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Nd(a)&&(b=oS(a))}});a=null;null!=b&&0<kS(b,"skip").length&&(a="Generic");return new BS(a,b)};function DS(){}DS.prototype.parse=function(a){if(null==a)return null;var b,c;D(Nd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=LR(a);break;case "CustomTracking":null!=Nd(a)&&(c=oS(a))}});return new BS(b,c)};function ES(){}ES.prototype.parse=function(a){if(null==a)return null;var b;D(Nd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Nd(a)&&(b=oS(a))}},this);return new sS(b)};function FS(a){sS.call(this);this.k=a}A(FS,sS);function GS(){}GS.prototype.parse=function(a){a=JC(a);return B(C(a))?null:new FS(a)};function HS(a){sS.call(this);this.k=a}A(HS,sS);function IS(){sS.call(this)}A(IS,sS);function JS(){}JS.prototype.j={LE:"TEMPLATE_PARAMETERS",ME:"TEMPLATE_URL"};JS.prototype.parse=function(a){if(null==a)return null;D(Nd(a),function(a){switch(a.nodeName){case this.j.LE:KS(this,a)}},this);return new IS};function KS(a,b){D(Nd(b),function(a){a.nodeName==this.j.ME&&LR(a)},a)};function LS(a,b,c,d){sS.call(this);this.o=a;this.A=b;this.B=c;this.k=d}A(LS,sS);function MS(){}MS.prototype.j={FE:"Line1",GE:"Line2",HE:"Line3",EE:"ImageUrl"};MS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;D(Nd(a),function(a){switch(a.nodeName){case this.j.FE:b=LR(a,!0);break;case this.j.GE:c=LR(a,!0);break;case this.j.HE:d=LR(a,!0);break;case this.j.EE:e=LR(a)}},this);return new LS(b,c,d,e)};function NS(a){sS.call(this);this.k=a}A(NS,sS);function OS(){}OS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Wa(a):NaN;a=isNaN(a)?-1:a;return new NS(a)};function PS(){sS.call(this)}A(PS,sS);function QS(){}QS.prototype.parse=function(a){return null!=a?new PS:null};function RS(a){sS.call(this);this.k=isNaN(a)?-1:a}A(RS,sS);function SS(){}SS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Wa(a):NaN;return new RS(a)};function TS(a,b,c,d){this.wa=a;this.j=Kc(c||0,0,1);this.k=null!=d?d:!0}TS.prototype.getId=function(){return this.wa};function US(a){this.wa=a;this.k=new oe;this.j=null}function VS(a){var b=Math.random(),c=0,d=a.k.La();D(d,function(a){c+=a.j},a);var e=1<c?c:1;a.j=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].j,g/e>=b){a.j=d[h];break}};function WS(){this.j=new oe;XS(this,41351068,.1);XS(this,41351069,.1);XS(this,41351020,.01);XS(this,41351021,.01);YS(this)}var ZS=null;function $S(){ZS||(ZS=new WS);return ZS}function XS(a,b,c){B(C("GvnExternalLayer"))||isNaN(b)||0>=b||(b=new TS(b,0,c),aT(a,"GvnExternalLayer").k.set(b.getId(),b))}function YS(a){SK()||D(a.j.La(),function(a){VS(a)},a)}
function bT(a,b,c){D(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||B(C(g))||(a=null!=c?c:!0,g=aT(this,g),b=new TS(b,0,0,a),g.j=b)},a)}function cT(a){var b=$S();return hb(b.j.La(),function(b){return!!b.j&&b.j.getId()==a})}function dT(a){var b=[];D(a.j.La(),function(a){(a=a.j)&&a.k&&b.push(a.getId())});return b.sort().join(",")}function aT(a,b){var c=a.j.get(b);null==c&&(c=new US(b),a.j.set(b,c));return c};function eT(a){if(cT(947225)){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.k=b.title,this.j=Rb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}else fT(this,a)}eT.prototype.videoCount=0;
function fT(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&hb(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.channelId=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.k=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.j=c[0].url)}}};function gT(a){if(cT(947225)){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.j="unlisted"!=a.privacyStatus}}else hT(this,a)}gT.prototype.j=!0;
function hT(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&hb(d.$t.split(":"),function(a,b,c){return"video"==a?(this.videoId=c[b+1],!0):!1},a);if(d=c.title)a.title=d.$t;if(d=c.media$group)if(d=d.yt$uploaderId)a.channelId=d.$t;c.yt$accessControl&&(c=F(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.j="denied"!=c.permission)}}};function iT(){}var jT={Ku:"Image",PG:"Flash",GG:"All"},kT={HTML:"Html",TI:"IFrame",AK:"Static",GG:"All"},lT={UI:"IgnoreSize",lK:"SelectExactMatch",mK:"SelectNearMatch"};function nR(a){if(null==a||0>=a.width||0>=a.height)throw OK(lK,null,"ad slot size",a.toString());this.k=a;this.j=new iT;this.B=mT(kT,this.j.o)?this.j.o:"All";this.A=mT(jT,this.j.creativeType)?this.j.creativeType:"All";this.D=mT(lT,this.j.A)?this.j.A:"SelectExactMatch";this.o=null!=this.j.k?this.j.k:[];this.C=ha(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90}
function mR(a,b){var c=[];D(b,function(a){!B(C(a.j.A))&&(isNaN(a.j.j)||isNaN(sR(a))||sR(a)==a.j.j)&&nT(this,a)?c.push(a):(a=oT(this,a),null!=a&&!B(C(a.j.A))&&c.push(a))},a);return c}
function nT(a,b){var c;if(c="Flash"!=b.getContentType()||nM){if(c="All"==a.B||a.B==b.j.U)c=b.getContentType(),c=null!=c?"All"==a.A||a.A==c:!0;c&&(c=b.o,c=mb(a.o)?!0:null!=c?0<=db(a.o,c):!1)}c?(c=b.j.Ec(),c="IgnoreSize"==a.D||Oc(a.k,c)?!0:"SelectNearMatch"==a.D&&(c.width>a.k.width||c.height>a.k.height||c.width<a.C/100*a.k.width||c.height<a.C/100*a.k.height?!1:!0)):c=!1;return c}function oT(a,b){var c=b.k;return null!=c?F(c,function(a){return nT(this,a)},a):null}
function mT(a,b){return null!=b&&Ob(a,b)};function pT(a){J.call(this,a);this.k=new oe;a=this.Jb;var b=a.indexOf(";"),c=null;0<=b?(Ve(this,a.substring(0,b)),c=a.substring(b+1)):Ve(this,a);qT(this,c)}A(pT,J);pT.prototype.toString=function(){return rT(this,pT.I.toString.call(this))};pT.prototype.jq=function(){return""};pT.prototype.qf=function(){return""};
function qT(a,b){B(C(b))||D(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=ya(a.substring(0,b));a=ya(a.substring(b+1));b=this.k.get(e);null!=b?G(b,a)||b.push(a):b=[C(a)];this.k.set(e,b)}},a)}function sT(a){if(B(C("ord")))return null;a=a.k.get("ord");return null!=a?a:null}function tT(a,b,c){B(C(b))||(c=E(c,C),a.k.set(b,c))}function rT(a,b){var c=[C(b)];ub(c,uT(a));return c.join(";")}
function uT(a){var b=sT(a);null!=b?B(C("ord"))||a.k.remove("ord"):b=[C(z())];var c=[];D(a.k.Ja(),function(a){D(this.k.get(a),function(b){ub(c,a+"="+b)})},a);ub(c,"ord="+b[0]);tT(a,"ord",b);return c}pT.prototype.clone=function(){return new pT(this.toString())};function vT(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Jb;return va(a.ob,"googleads.g.doubleclick.net")&&wT("/pagead/ads",b)}function xT(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==df(new J(a)):!1}function yT(a){a=a.adTagUrl;if(null==a)return!1;var b=new pT(a);a=b.ob;b=rT(b,b.Jb);return!va(a,".g.doubleclick.net")&&va(a,"doubleclick.net")&&wT("/(ad|pfad)[x|i|j]?/",b)}
function zT(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Jb;return va(a.ob,"doubleclick.net")&&wT("/gampad/ads",b)}function wT(a,b){return B(C(b))?!1:(new RegExp(a)).test(b)};function AT(){this.j=this.o=1;this.B=this.k=0;this.A=1};function BT(){this.F={};this.X="";this.Tf=new gS}BT.prototype.On=function(){return null};function CT(a,b,c){a.X=b;a.F=c}BT.prototype.zg=function(a){this.W=a};BT.prototype.getAd=function(){return this.W};function DT(a,b){var c=[],d=a.K();D(d,function(a){a=kS(a.Tf,b)||[];c=sb(a,c)},a);return c}BT.prototype.K=function(){for(var a=[this],b=this.W.k;b;){var c=ET(this,b)||ET(this,b,!0);null!=c&&a.push(c);b=b.k}return a};
function ET(a,b,c){var d=c||!1;return F(b.A,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};function FT(a,b,c,d,e,g){BT.call(this);this.$=a;this.o=b;this.k=c;this.H=tb(d);this.ha=this.ja=null;this.A=e;this.ca=tb(g);xb(this.ca,null,function(a){return a.G})}A(FT,BT);FT.prototype.Rc=function(){return this.o};function GT(a){var b=new oe,c=a.K();D(c,function(a){if(a instanceof FT){var c=a.k;D(c.Ja(),function(a){b.set(a,sb(c.get(a),b.get(a)||[]))},this)}},a);return b}
FT.prototype.getMediaUrl=function(a){var b="";hb(this.H,function(c){var d=c.k;return!B(C(a))&&a!=c.j||null==d||B(C(d))?!1:(b=d,!0)},this);return b};FT.prototype.setMediaUrl=function(a){this.ha=a};FT.prototype.On=function(){var a=F(this.H,function(a){return!B(C(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.o||"surveys"==a.o)});return null!=a?a.k:null};function HT(a,b,c){R.call(this);this.k=a;this.o=b;this.A=c;this.C=0;this.j=new sn(this);IT(this)}A(HT,R);function IT(a){a.A.forEach(function(a,c){this.j.listen(c,"mousedown",this.D);this.j.listen(c,"mouseup",this.G)},a);a.j.listen(a.o,"mouseover",a.F)}HT.prototype.D=function(){this.B=z()};
HT.prototype.G=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.k&1&&c.push("nm="+this.C);this.k&2&&c.push("nb="+this.A.get(b));if(this.k&8){var d=Hg(this.o);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.k&16&&null!=this.B&&c.push("clkt="+(z()-this.B));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};HT.prototype.F=function(){this.C++};HT.prototype.L=function(){HT.I.L.call(this);this.j.dispose()};function JT(a,b,c,d,e){BT.call(this);B(C(a))&&(a=Va()+"_ima");this.wa=C(a);this.ma=b;this.U=c;this.R=d;this.A=e;this.V=[];null!=this.R?this.Ra=JJ[this.R]||"Other":this.Ra=null}A(JT,BT);f=JT.prototype;f.getContent=function(){var a;a=this.Ue();if("outerHTML"in a)a=a.outerHTML;else{var b=qd(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.Ra};f.Ec=function(){return this.ma};f.gd=function(){return this.Ec().width};f.getHeight=function(){return this.Ec().height};
f.On=function(){return"VPAID"==this.G?this.A:null};f.Rc=function(){return this.N};function KT(a,b,c,d,e){JT.call(this,a,b,c,d,e);this.ia=-2;this.o=null;this.P=this.J=t;this.O=[];this.la=!0;this.Da=[];this.D=!1}A(KT,JT);function LT(a,b){a.o=b;null!=a.k&&null!=b&&(MT(a,a.J),NT(a,a.P))}function MT(a,b){null!=a.o&&null!=a.k&&D(a.O,function(a){this.o.Aa(a,"click",this.J);B(C(this.Rc()))||this.o.listen(a,"click",b)},a);a.J=b}function NT(a,b){null!=a.o&&null!=a.k&&(a.o.Aa(a.k,"creativeview",a.P),a.o.listen(a.k,"creativeview",b));a.P=b}
function OT(a){D(a.Da,function(a){Ld(rd(a))},a);a.Da=[]}KT.prototype.B=function(a){null==this.o||B(C(this.Rc()))||(this.o.listen(a,"click",this.J),this.O.push(a))};KT.prototype.Ue=function(){null==this.k&&(this.k=this.Ef(),Id(this.k,PT(this)));null!=this.o&&this.o.listen(this.k,"creativeview",this.P);return this.k};
function QT(a,b){var c=a.wa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.gd()+"px");B(C(c))||(d.id=c);return I("div",d,b)}KT.prototype.au=function(){return 2};
function PT(a){if(!a.la)return null;var b=DT(a,"start");ub(b,DT(a,"creativeview"));if(null!=b&&!mb(b)){var c=[];D(b,function(a){if(!B(C(a))){var b;b=od().rE("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});wg(b,{display:"block",height:"0px",width:"0px"});var g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",WJ(a.j));b.setAttribute("id",g);this.Da.push(g);ob(c,b)}},a);return c}return null}
function RT(a,b){if(null!=a.k){var c=new oe;D(a.O,function(a){c.set(a,this.au(a))},a);new HT(b,a.k,c)}}function ST(a){var b=[],c=a.K();D(c,function(a){b=sb(b,a.V)},a);return b}KT.prototype.K=function(){var a=[this],b;for(b=this.getAd().k;b;){var c=this.D?ET(this,b)||ET(this,b,!0):TT(this,b)||TT(this,b,!0);null!=c&&a.push(c);b=b.k}return a};function TT(a,b,c){var d=c||!1;return F(b.A,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};function cR(a,b,c,d,e,g,h,k,l,p,u,x,L,la,Z,fa){U.call(this);this.V=a;this.N=b;this.W=c;this.xa=d;this.O=new sn(this);UT(this);this.ia=isNaN(h)||""==h||0==h?-1:h;this.P=k?tb(k):[];this.R=l?tb(l):[];this.A=p?tb(p):[];this.$=u?tb(u):[];this.C=[];D(this.$,function(a){ub(this.C,tb(a.j))},this);this.ja=!0;this.k=this.j=null;this.D=new oe(x);this.F=null!=fa;this.ua=(this.G=null!=L)?la||!1:!1;this.va=this.tv?Z||!1:!1;this.Ca=C(L);this.Ba=C(fa);this.oa=this.o=null;this.B=new AT;this.ca=new H(0,0);this.U=String(Math.floor(1E9*
Math.random()));this.H=this.K=this.J=null;this.na=z();this.la=this.ha=0;D(sb(this.A,this.C),function(a){a.zg(this)},this);XK()&&VT(this)&&(this.C=fb(this.C,function(a){return 60>=a.getHeight()}))}A(cR,U);function WT(a){var b;b=XT(a)?ZT(a)?"2_1":"2_2":"2";return($T(a,LJ)||$T(a,NJ)?1:$T(a,KJ)?2:0)+"_"+b}function aU(a){return null!=a.N?a.N:""}function bU(a){return null!=a.k?sb(bU(a.k),a.P):a.P}function cU(a){return null!=a.k?sb(cU(a.k),a.R):a.R}f=cR.prototype;
f.getContentType=function(){var a=this.j,b="";if(null===a)return b;if(a instanceof FT)a=a.ja,null===a||(b=C(a.j));else if(a instanceof KT)switch(a.U){case "IFrame":case "Html":case "Static":b=C(a.R)}return b};function lR(a){return null!=a.k?sb(a.C,lR(a.k)):a.C}function dU(a){return null!=a.j?a.j.X:""}f.getExtension=function(a){return this.D.get(a)};function eU(a,b){a.j=b;a.ca=null!=a.j&&a.j instanceof KT?a.j.Ec():new H(0,0)}function fU(a){return a.j}
f.lE=function(a){a.o.queryId==this.U&&this.T(new AJ("measurable_impression",this,a.o))};f.mE=function(a){a.o.queryId==this.U&&this.T(new AJ("viewable_impression",this,a.o))};function gU(a){return null!=a.V?a.V:""}function hU(a){if(null==a.k)return[];var b=[gU(a.k)];ub(b,hU(a.k));return b}function iU(a){var b=hU(a).reverse();b.push(gU(a));return b}function jU(a){if(null==a.k)return[];var b=[aU(a.k)];ub(b,jU(a.k));return b}function kU(a){var b=jU(a).reverse();b.push(aU(a));return b}
function kR(a){if(null==a.k)return[a.W];var b=kR(a.k);b.push(a.W);return b}function lU(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.k?a.k:-1}function mU(a){if(-1!=a.ia)return a.ia;a=a.getExtension("pod");return null!=a&&-1!=a.k?a.k:-1}function rR(a,b){return b||null==a.k?a.$:sb(a.$,rR(a.k))}function nU(a,b){return hb(a.A,function(a){return a instanceof FT&&"linear"==b||a instanceof KT&&"nonlinear"==b?!0:!1})}function VT(a){return oU(a)?"video"==a.xa:nU(a,"linear")}
function XT(a){return null!=pU(a)}function qU(a,b){var c=pU(a);if(!c)return null;fS(c,b);return eS(c)}function pU(a){if(cT(919139)||cT(919140))return new dS(0,!1);var b=new dS(5,!1),c=rU(a);if("implicit"==c)return b;a=a.j;var d=null;null!=a&&a instanceof FT&&(d=a.A);null!=d||"explicit"!=c||(d=b);return null!=d&&XK()?b:d}
function rU(a){if(null!=F(a.D.La(),function(a){return!mb(uS(a,"skip"))}))return"implicit";var b=a.D.get("DFP");if(b instanceof BS)switch(b.k){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.j;return null==a||(a=a.Tf,null==a||mb(kS(a,"skip")))?"none":"explicit"}function sU(a){return null!=a.o&&(vT(a.o)||zT(a.o)||yT(a.o))}
function ZT(a){if(null==a.N||null==a.o)return!1;var b;(b=sU(a)||!1)&&!(b=oU(a)&&!tU(a,["ADSENSE/ADX"]))&&(tU(a,NJ)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.k:!1):b=!1);if(b||a.k&&a.k.F&&sU(a.k))return!0;a=$T(a,["ADSENSE/ADX"])||a.k&&$T(a,KJ);return XK()&&!a}f.tv=function(){return this.G};function uU(a){return null===a.j?null:a.j.Rc()}function vU(a){return null==a.j||a.j instanceof KT?-1:a.j.$}function wU(a){return null===a.j?null:a.j.On()}function oU(a){return tU(a,KJ)}
function xU(a){var b=wU(a);return tU(a,["402"])||v(b)&&!da(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.ca.height};function yU(a){return a.J}f.toString=function(){return"Ad: "+this.V};function tU(a,b){return null!=a.N?G(b,a.W):!1}function $T(a,b){for(var c=kR(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(G(b,c[d]))return!0;break}return!1}
function UT(a){var b=YK.j?JO():CR();a.O.listen(b,"measurable_impression",a.lE);a.O.listen(b,"viewable_impression",a.mE)}f.L=function(){null!=this.O&&this.O.dispose();cR.I.L.call(this)};function zU(a,b){this.j=a;this.k=b};function AU(a,b,c){this.j=a;this.k=b;this.o=c}AU.prototype.getContent=function(){return this.j.getContent()};AU.prototype.getContentType=function(){return this.j.getContentType()};AU.prototype.getHeight=function(){return this.j.getHeight()};function sR(a){a=fU(a.j.getAd());return null!=a?a.j:NaN}AU.prototype.zg=function(a){this.j.zg(a);D(this.k,function(b){b.zg(a)},this)};function BU(a,b,c){this.k=a;this.j=b;this.o=c}BU.prototype.getContentType=function(){return null!=this.j?JJ[this.j]||"Other":null};function CU(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+vP(a.wd)+'"><img src="'+vP(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+vP(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+vP(a.wd)+'" target="_blank" dir='+vP(a.dir)+">"+vP(a.title)+'</a><div class="text-description" dir='+vP(a.dir)+">"+vP(a.text)+"</div>"+(a.Es?'<a target="_blank" href="'+
vP(a.wd)+'" class="text-ad-channel">'+vP(a.Es)+"</a>":"")+"</div></div>"}
function DU(a){return'<div class="flash-container '+(a.Sf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+vP(a.wd)+'"></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="'+vP(a.width)+'" height="'+vP(a.height)+'"><param name="movie" value="'+vP(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+GP(a.wd)+
'"><embed width="'+vP(a.width)+'" height="'+vP(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+vP(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+GP(a.wd)+'"></object></div>'}function EU(a){return'<div class="image-container" id="'+vP(a.id)+'" style="width:'+vP(a.width)+";height:"+vP(a.height)+'"><a target="_blank" href="'+vP(a.wd)+'"><img src="'+vP(a.url)+'" border="0"></a></div>'};function FU(a,b,c,d){KT.call(this,a,b,"Static",c,d);this.wt=!1}A(FU,KT);FU.prototype.Ef=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:WJ(C(this.A)),width:this.gd(),height:this.getHeight(),wd:this.Rc(),Sf:this.wt||!a},a=qP(DU,a);a.style.width=this.gd()+"px";a.style.height=this.getHeight()+"px";a.id=this.wa;D(a.getElementsByTagName("object"),this.B,this);D(a.getElementsByTagName("a"),this.B,this);return a};function GU(a,b,c,d){KT.call(this,a,b,"Html",c,d)}A(GU,KT);GU.prototype.Ef=function(){var a=I("div");a.innerHTML=this.A;this.B(a);return QT(this,a)};function HU(a,b,c,d){KT.call(this,a,b,"Static",c,d)}A(HU,KT);HU.prototype.getContent=function(){var a=HU.I.getContent.call(this);this.D&&(a=a.replace('<img src=""','<img src="'+WJ(C(this.A))+'"'));return a};HU.prototype.Ef=function(){var a="";this.D||(a=WJ(C(this.A)));a={id:this.wa,url:a,wd:this.Rc(),width:this.gd()+"px",height:this.getHeight()+"px"};a=qP(EU,a);D(a.getElementsByTagName("a"),this.B,this);return a};function IU(a,b){KT.call(this,a,b,"Static","text","")}A(IU,KT);f=IU.prototype;f.Ec=function(){return new H(this.gd(),this.getHeight())};f.getHeight=function(){return 63};f.gd=function(){return null!=this.C?Qg(this.C).width:0};f.au=function(a){return dh(a,"text-image")?9:dh(a,"text-ad-channel")?1:0};
f.Ef=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.o,e="rtl";null!=d&&(e=ic.test(hc(d,void 0))?"rtl":"ltr");d={title:d,text:c.A+" "+c.B,dir:e,wd:this.Rc()};if(c=c.k)d.image=WJ(c),a=F(a.A,function(a){return a instanceof FT}),null!=a&&(d.duration=ZR(a.$));b.o&&(d.Es=b.o);this.C=qP(CU,d);D(this.C.getElementsByTagName("a"),this.B,this);this.C.id=this.wa;this.C.style.height=this.getHeight()+"px";return this.C};function JU(a,b,c,d,e){KT.call(this,a,b,c,d,e)}A(JU,KT);JU.prototype.Ef=function(){var a=C(this.A);B(C(this.Rc()))||(a=new J(a),K(a,"clickTAG",xa(this.Rc())),a=a.toString());var b=I("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.gd());b.setAttribute("src",WJ(a));this.B(b);return QT(this,b)};function KU(a,b,c){if(mb(c))return new KT(a,b,"",null,"");var d=LU(c);c=d.k;var e=d.j,d=d.o;switch(c){case "Html":return new GU(a,b,e,d);case "Static":switch(JJ[e]){case "Image":return new HU(a,b,e,d);case "Flash":return new FU(a,b,e,d);case "Text":return new IU(a,b)}}return new JU(a,b,c,e,d)}
function LU(a){var b=F(a,function(a){return"Static"==a.k&&"Flash"==JJ[a.j]}),c=F(a,function(a){return"IFrame"==a.k}),d=F(a,function(a){return"Html"==a.k}),e=F(a,function(a){return"Static"==a.k&&"Image"==JJ[a.j]}),g=F(a,function(a){return"Static"==a.k&&"Text"==JJ[a.j]});return nM&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function MU(a,b,c,d,e){var g=LU(e),h=KU(a.id,a.size,[g]);h.D=!0;h.G=a.apiFramework;h.N=b;h.j=c;d&&(h.Tf=d);pb(e,g);var k=[];D(e,function(e){e=KU(a.id,a.size,[e]);e.D=!0;e.G=a.apiFramework;e.N=b;e.j=c;d&&(e.Tf=d);k.push(new AU(e,[],a.adSlotId))});return new AU(h,k,a.adSlotId)};function NU(a,b,c,d,e,g,h){this.o=a;this.G=b;this.B=c;this.C=d;this.k=e;this.D=g;this.F=h;this.j=this.o.Ef()}NU.prototype.Ue=function(){return this.j};
NU.prototype.display=function(a){this.A=a;this.A.appendChild(this.j);a=this.j;var b=Og(this.A),b="left"==this.B?"0px":"right"==this.B?b.width-this.o.Ec().width+"px":this.B+"px",c;c=Og(this.A);c="bottom"==this.C?"0px":"top"==this.C?c.height-this.o.Ec().height+"px":c.height-this.o.Ec().height-Za(this.C)+"px";wg(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});Sg(this.j,!1)};
NU.prototype.update=function(a,b){var c=null!=this.D?eS(this.D):0;this.k=0<=this.k?this.k:b;c<=a&&c+this.k>=a?OU(this):Sg(this.j,!1)};function OU(a){"none"==a.j.style.display&&(Sg(a.j,!0),D(a.F,function(a){YJ(a)}))};function PU(a,b,c,d,e,g,h,k,l,p){b=KU("icon"+a,b,p);b.G=h;b.N=k.iconClickThrough;return new NU(b,a,c,d,e,g,l)};function QU(a){this.A=a;this.logger=null}A(QU,GR);
QU.prototype.j={eC:"Ad",an:"AdParameters",YC:"AdSystem",ZC:"AdTitle",yH:"Advertiser",tE:"AltText",tD:"ClickThrough",uD:"ClickTracking",AD:"Companion",pD:"CompanionAds",uE:"CompanionClickThrough",vE:"CompanionClickTracking",qD:"Creative",kI:"CreativeExtensions",aD:"Creatives",vD:"CustomClick",bD:"Description",mn:"Duration",ERROR:"Error",zD:"Extension",cD:"Extensions",Mj:"HTMLResource",KE:"Icon",iD:"Icons",QC:"IconClicks",IE:"IconClickThrough",JE:"IconClickTracking",RC:"IconViewTracking",Nj:"IFrameResource",
Qs:"Impression",WI:"InLine",LINEAR:"Linear",kD:"MediaFile",lD:"MediaFiles",DE:"NonLinear",rD:"NonLinearAds",vC:"NonLinearClickThrough",wC:"NonLinearClickTracking",YJ:"Pricing",Oj:"StaticResource",Rs:"Survey",UK:"Tracking",pn:"TrackingEvents",cL:"VAST",eD:"VASTAdTagURI",oD:"VideoClicks",fD:"Wrapper"};
QU.prototype.k={WE:"adSlotID",$C:"allowMultipleAds",Lj:"apiFramework",gD:"bitrate",sD:"creativeType",hD:"delivery",mn:"duration",uI:"event",dD:"followAdditionalWrappers",XE:"expandedHeight",YE:"expandedWidth",jn:"height",Fj:"id",tC:"maintainAspectRatio",jD:"maxBitrate",mD:"minBitrate",uC:"minSuggestedDuration",SC:"offset",TC:"program",BD:"required",xC:"scalable",Vr:"sequence",nD:"skipoffset",Ps:"type",VERSION:"version",ln:"width",UC:"xPosition",VC:"yPosition"};
function RU(a){if(null==a)return!1;a=Od(a);return null!=a&&"VAST"==a.nodeName}function SU(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ha(a)&&!isNaN(a)?a:0}function TU(a){var b=[],c=Od(a.A),d=SU(c);MR(c,a.j.eC,function(a){var c;c=UU(a);if(null==c)throw HR(a);var h=a.getAttribute(this.k.Fj);a=Number(a.getAttribute(this.k.Vr));c=VU(this,c,h||null,a||0);null!=c&&(c.la=d,b.push(c))},a);return b}QU.prototype.o=function(){return new QR(this.A,TU(this),null)};
function UU(a){var b=null;D(Nd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw HR(a);}});return b}
function VU(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],u=new oe,x,L=b.nodeName==a.j.fD,la=L,Z=L,fa;D(Nd(b),function(a){switch(a.nodeName){case this.j.eD:if(L){if(null!=x)throw IR(a);x=LR(a);fa=rS(x);la=PR(b.getAttribute(this.k.$C),la);Z=PR(b.getAttribute(this.k.dD),Z)}else throw HR(a);break;case this.j.YC:e=LR(a);break;case this.j.ZC:g=LR(a);break;case this.j.bD:LR(a);break;case this.j.Rs:LR(a);break;case this.j.Qs:a=LR(a);pS(a)&&h.push(bS(a));break;case this.j.ERROR:a=LR(a);k.push(bS(a));break;case this.j.aD:a=
WU(this,a);l=a.creatives;p=a.PC;break;case this.j.cD:u=XU(this,a,fa)}},a);return new cR(C(c),e,YU(e),g,0,0,d,k,h,l,p,u,x,la,Z,ZU(u))}function ZU(a){var b=null;a=a.get("AdSense");null!=a&&(a=uS(a,"vast2tracking"),null!=a&&!mb(a)&&(b=a[0]));return b}function YU(a){if(B(C(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "402":return a;default:return"UNKNOWN"}}
function $U(a){if(B(C(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function XU(a,b,c){var d=new oe;try{var e=JR(b,a.j.zD);D(e,function(a){var b=a.getAttribute(this.k.Ps);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new QS).parse(a);break;case "pod":a=(new OS).parse(a);break;case "waterfall":a=(new SS).parse(a);break;case "dart":a=(new CS).parse(a);break;case "dfp":b="DFP";a=(new DS).parse(a);break;case "adsense":b="AdSense";a=(new AS).parse(a);break;case "textad":b="TextAd";a=(new MS).parse(a);break;case "templatead":b="TemplateAd";a=(new JS).parse(a);break;
case "infocards":var b="InfoCards",e=new GS;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new GS;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=JR(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+JC(Od(a[0]))),a=new HS(e)):a=null;break;default:e=new ES,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(tS(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function WU(a,b){var c=[],d=[];MR(b,a.j.qD,function(a){var b=a.getAttribute(this.k.Vr),h;B(C(b))||(h=parseFloat(b));a.getAttribute(this.k.Fj);var k=!1;D(Nd(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw IR(a);a=aV(this,a,isNaN(h)?0:h);ub(c,a);k=!0;break;case this.j.pD:if(k)throw IR(a);a=bV(this,a,isNaN(h)?void 0:h);ub(d,a);k=!0;break;case this.j.rD:if(k)throw IR(a);a=cV(this,a,isNaN(h)?0:h);ub(c,a);k=!0}},this)},a);return{creatives:c,PC:d}}
function cV(a,b,c){var d=[],e=new gS;D(Nd(b),function(a){switch(a.nodeName){case this.j.DE:a=dV(this,a,c);null!=a&&d.push(a);break;case this.j.pn:e=oS(a);break;default:throw HR(a);}},a);0!=d.length||e.isEmpty()||(a=new KT(null,new H(-1,-1),"",null,""),a.j=c,d.push(a));D(d,function(a){e&&(a.Tf=e)});return d}
function eV(a,b){var c={};c.id=b.getAttribute(a.k.Fj);c.adSlotId=b.getAttribute(a.k.WE);c.apiFramework=b.getAttribute(a.k.Lj);var d=Wa(b.getAttribute(a.k.ln)),e=Wa(b.getAttribute(a.k.jn));c.size=new H(d,e);d=b.getAttribute(a.k.YE);e=b.getAttribute(a.k.XE);B(C(d))||B(C(e))||(c.oH=new H(Wa(d),Wa(e)));return c}
function dV(a,b,c){var d=eV(a,b);b.getAttribute(a.k.Lj);b.getAttribute(a.k.xC);b.getAttribute(a.k.tC);var e=b.getAttribute(a.k.uC),e=OR(e,-1),g=[];new oe;var h={},k="",l,p=[];D(Nd(b),function(a){switch(a.nodeName){case this.j.wC:p.push(LR(a));break;case this.j.vC:l=LR(a);break;case this.j.an:h=fV(a);k=C(LR(a));break;case this.j.Nj:case this.j.Oj:case this.j.Mj:g.push(gV(this,a));break;default:throw HR(a);}},a);a=KU(d.id,d.size,g);CT(a,k,h);a.G=d.apiFramework;a.N=l;a.V=p;a.ia=e;a.j=c;return a}
function gV(a,b){var c=KR(b,a.k.sD),d;t:switch(d=b.nodeName,d){case a.j.Oj:d="Static";break t;case a.j.Nj:d="IFrame";break t;case a.j.Mj:d="Html";break t;default:throw MK(FK,null,d);}var e=LR(b);null!=e||(e="");return new BU(d,c,e)}function bV(a,b,c){var d=[],e=$U(KR(b,a.k.BD));MR(b,a.j.AD,function(a){a=hV(this,a,c);null!=a&&d.push(a)},a);return new zU(d,e)}
function hV(a,b,c){var d=eV(a,b),e=[],g=new gS,h;D(Nd(b),function(a){switch(a.nodeName){case this.j.vE:break;case this.j.pn:g=oS(a,!0);break;case this.j.uE:h=LR(a);break;case this.j.tE:LR(a);break;case this.j.an:LR(a);break;case this.j.Nj:case this.j.Oj:case this.j.Mj:e.push(gV(this,a));break;default:throw HR(a);}},a);return mb(e)?null:MU(d,h,c,g,e)}
function aV(a,b,c){var d=new gS,e={},g="",h=[],k,l=new oe,p=[],u=[],x,L=qS(KR(b,a.k.nD));D(Nd(b),function(a){switch(a.nodeName){case this.j.iD:u=iV(this,a);break;case this.j.an:e=fV(a);g=C(LR(a));break;case this.j.mn:x=OR(LR(a),0);break;case this.j.pn:d=oS(a);break;case this.j.lD:p=jV(this,a);break;case this.j.oD:a=kV(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw HR(a);}},a);D(h,function(a){lS(d,"click",a)});a=new FT(x,k,l,p,L,u);CT(a,g,e);a.j=c;d&&(a.Tf=d);return a}
function kV(a,b){var c,d=[],e=new oe;D(Nd(b),function(a){switch(a.nodeName){case this.j.tD:c=LR(a);break;case this.j.uD:a=LR(a);d.push(a);break;case this.j.vD:var b=KR(a,this.k.Fj);null!=b||(b="");var k=e.get(b,[]);k.push(LR(a));e.set(b,k);break;default:throw HR(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function jV(a,b){var c=[];MR(b,a.j.kD,function(a){var b=KR(a,this.k.hD),g=KR(a,this.k.Ps);a.getAttribute(this.k.ln);var h=Wa(a.getAttribute(this.k.jn)),k=a.getAttribute(this.k.Lj),l=LR(a),p=NR(a.getAttribute(this.k.gD)),u=NR(a.getAttribute(this.k.mD));a=NR(a.getAttribute(this.k.jD));c.push(new aP(b,g,p,u,a,0,h,l,k))},a);return c}function iV(a,b){var c=[];MR(b,a.j.KE,function(a){a=lV(this,a);null!=a&&c.push(a)},a);return c}
function lV(a,b){var c=b.getAttribute(a.k.TC),d=KR(b,a.k.UC),e=KR(b,a.k.VC),g=Wa(b.getAttribute(a.k.ln)),h=Wa(b.getAttribute(a.k.jn)),g=new H(g,h),h=b.getAttribute(a.k.Lj),k=qS(KR(b,a.k.SC)),l=b.getAttribute(a.k.mn),l=OR(l,-1),p=[],u=[],x;D(Nd(b),function(a){switch(a.nodeName){case this.j.RC:u.push(LR(a));break;case this.j.QC:x=mV(this,a);break;case this.j.Nj:case this.j.Oj:case this.j.Mj:p.push(gV(this,a));break;default:throw HR(a);}},a);return mb(p)?null:PU(c,g,d,e,l,k,h,x,u,p)}
function mV(a,b){var c=[],d;D(Nd(b),function(a){switch(a.nodeName){case this.j.IE:d=LR(a);break;case this.j.JE:c.push(LR(a));break;default:throw HR(a);}},a);return{iconClickThrough:d,nH:c}}function fV(a){a=LR(a);return null!=a?$R(a):{}};function nV(a,b){this.k=a;this.j=b}A(nV,GR);nV.prototype.o=function(){return new QR(this.k,null,oV(this))};function pV(a){var b=LC(a);return mb(b)?[KR(a,"timeOffset")]:E(b,function(a){return KR(a,"timeOffset")})}
function oV(a){var b=new UR;D(Nd(Od(a.k)),function(a){if("vmap:AdBreak"==a.nodeName){var d=qV(this,a);a=pV(a);D(a,function(a,c){var h=OR(a);0<c&&(d=rV(this,d));if("start"==a||0==h)VR(b,d,0);else if("end"==a)VR(b,d,-1);else{if(-1==h)throw MK(fK,null,"timeOffset",C(a));VR(b,d,h)}},this)}},a);if(0==b.j.Ja().length)throw MK(mK);return b}function rV(a,b){return E(b,function(a){var b=new SR(a.o.clone());b.j=a.j;b.k=a.k;return b},a)}
function sV(a){a=KR(a,"timeOffset");var b=OR(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}
function qV(a,b){var c=[],d="",e=null,g=!1,h=!1;D(Nd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=KC(a,"vmap:VASTData/VAST")||KC(a,"vmap:VASTAdData/VAST"),!e)){var b=JR(a,"vmap:AdTagURI"),c="";b.length&&(c=C(LR(b[0])));if(B(c))throw MK(KK,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=JR(a,"vmap:Extension"),a=tV(this,a),null!=a&&(g=!0,a=KR(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=uV(a,e):B(d)||(k=vV(a,d));k&&(XK()&&(k.Ah=sV(b)),
k=new SR(k),k.j=g,k.k=g&&!h,ob(c,k));return c}function tV(a,b){return F(b,function(a){return"bumper"==KR(a,"type")},a)}function vV(a,b){var c=a.j.clone();B(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function uV(a,b){var c=a.j.clone();c.adsResponse=JC(b);c.adTagUrl="";return c};function wV(a,b){if(null!=a){var c;null!=a?(c=Od(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return uR.getInstance().j=!1,new WR(a,b);null!=a?(c=Od(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return uR.getInstance().j=!1,new nV(a,b);if(RU(a)){if(!RU(a))throw MK(pK);c=Od(a);var d=SU(c);if(1>d||3<d)throw MK(GK);c=JR(c,"Ad");if(mb(c))throw MK(uK);c=UU(c[0]);if(null==c)throw MK(xK);if(1!=JR(c,"AdSystem").length)throw MK(xK);return new QU(a)}}return null};function xV(){}f=xV.prototype;
f.clone=function(){var a=new xV;"auto"==this.Ze?a.Ze="auto":"click"==this.Ze&&(a.Ze="click");a.adTagUrl=this.adTagUrl;a.Ke=$b(this.Ke);a.adsResponse=this.adsResponse;a.Uc=$b(this.Uc);a.zt=this.zt;a.isYouTube=this.isYouTube;a.location=this.location;a.referrer=this.referrer;a.lastActivity=this.lastActivity;a.language=this.language;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;
a.sc=this.sc;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Sg=this.Sg;a.Um=this.Um;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.Ah=this.Ah;a.Xj=this.Xj;this.j&&(a.j=tb(this.j));return a};f.Ke=null;f.Uc=null;f.Ze="unknown";f.zt=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.sc=null;f.tagForChildDirectedContent=!1;f.Sg=!1;f.Um=!0;f.Ah=0;f.aq=!0;f.Xj=null;function yV(a,b){this.k=a;this.o=b;var c=a.j;XK()&&c&&bT($S(),c,!1)}function zV(a,b){"auto"!=a.k.Ze&&"click"!=a.k.Ze||b.set("vpa",a.k.Ze)}function AV(a){B(YK.getPlayerType())||(a.set("mpt",YK.getPlayerType()),B("")||a.set("mpv",""))}function BV(a,b){var c=a.o.B;null!=c&&b.set("js","ima-"+c)}function CV(a,b){b.set("osd",2);-1!=a.o.G&&b.set("frm",a.o.G)}yV.prototype.F=function(){return this.A(this.C()).toString()};function DV(a){return YK.j?"h.3.0.0":null!=a.o?IQ(a.o):null}
yV.prototype.B=function(){var a;a=1;jL()&&(a+=4);return a};function EV(){this.j=["video"]}var FV={YK:"ultrahigh",KI:"high",SG:"medium"},GV={BH:1E3,CH:1001,DH:1002,EH:1003,FH:1004,GH:1005,HH:1006},HV={RG:1,MG:2},IV={hI:"content",sK:"site",tK:"site_content"};f=EV.prototype;f.Mi="high";f.yl=!1;f.ql=1;f.rl=null;f.adType="video";f.adBlock=1;f.zl=null;f.tl=!0;f.vl=null;f.xl=null;f.Tg=null;f.experimentIds=null;f.Al=null;f.host=null;f.hostTierId=null;f.Bl=!1;f.language=null;f.Iq=null;f.Hq=null;f.Ni=1E5;f.Pi=null;f.Kq=null;f.Jq=null;f.El=0;f.Bf=null;f.Qi=null;
f.Wi=null;f.Fl=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Oi=null;f.Cl=null;f.Dl=null;f.Jl=null;f.Gl=null;f.Hl=null;f.Il=null;f.wl=null;var JV=(new Date).getTime();var KV=[202,1009],LV=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function MV(a,b,c){var d={};a=new NV(a,n(b)?b:null,n(c)?c:null);OV(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.j?b.j:900;PV(d,a);QV(d,a);RV(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=db(KV,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function SV(a,b){var c={},d=new NV(null,a,n(b)?b:null);OV(c,d);PV(c,d);QV(c,d);RV(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.j){var e=d.j.o;null!=e&&null!=e.Ke&&null!=e.Ke.video_start_delay?(e=e.Ke.video_start_delay,0==e?c["[BREAK_TYPE]"]="1":-1==e?c["[BREAK_TYPE]"]="3":(c["[BREAK_TYPE]"]="2",c["[MIDROLL_POS]"]=e)):(e=d.j.B,c["[BREAK_TYPE]"]=0==e.k?"1":-1==e.k?"3":"2",c["[SLOT_POS]"]=e.j-1,0<e.B&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.B)))}TV(c,d);UV(c,d);d=a.na;
for(e=a;null!=e;)d=e.ha+","+d,e=e.k;c["[RWT]"]=d;return c}function NV(a,b,c){this.error=a;this.j=b;this.display=c}function VV(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function OV(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():""}}}
function UV(a,b){a["[AD_CPN]"]={toString:function(){return b.display.Nf()}};a["[AD_MT]"]={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}}}function PV(a,b){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.j&&(a["[VIEWABILITY]"]={toString:function(){var a;YK.j?(a=JO(),a=NO(a,"metric",b.j.U)):(CR(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function QV(a,b){if(null!=b.j&&null!=b.j.o&&null!=b.j.o.Uc&&XK()){var c=b.j.o.Uc;D(LV,function(b){b in c&&(a[b]=c[b])})}}
function RV(a,b){if(null!=b.j){a["[AD_ID]"]=iU(b.j);a["[AD_SYS]"]=kU(b.j);a["[AD_V]"]={toString:function(){return null!=b.display?TP(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=WT(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])}}
function TV(a,b){null!=b.j&&(a["[AD_LEN]"]={toString:function(){var a=vU(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.jd()).toString():""}})};var WV={PG:"flash",Ku:"image",xK:"skippablevideo",zK:"standardvideo",BK:"staticimage",TEXT:"text",VIDEO:"video"},XV=["flash","image","staticimage"],YV=[new H(200,200),new H(250,250),new H(300,250),new H(336,280),new H(450,50),new H(468,60),new H(480,70),new H(728,90)];
function ZV(a,b){var c=null!=b.linearAdSlotHeight?b.linearAdSlotHeight:0,d=null!=b.nonLinearAdSlotHeight?b.nonLinearAdSlotHeight:0;a.set("sz",Math.max(null!=b.linearAdSlotWidth?b.nonLinearAdSlotWidth:0,null!=b.nonLinearAdSlotWidth?b.nonLinearAdSlotWidth:0)+"x"+Math.max(c,d))}
function $V(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;var d=window;try{c=d.history.length}catch(e){c=0}b.u_his=c;b.u_java=navigator.javaEnabled();window.screen&&(b.u_h=window.screen.height,b.u_w=window.screen.width,b.u_ah=window.screen.availHeight,b.u_aw=window.screen.availWidth,b.u_cd=window.screen.colorDepth);navigator.plugins&&(b.u_nplug=navigator.plugins.length);navigator.mimeTypes&&(b.u_nmime=navigator.mimeTypes.length);for(var g in b)a.set(g,b[g]);a.set("dt",JV)}
function aW(a){if(a.Uc&&a.Uc["[LACT]"]){var b=a.Uc["[LACT]"].toString();if(b)return Za(b)}return a.lastActivity}function bW(a,b,c){var d=new oe;d.set("ad_type",b.adType);nM&&d.set("flash",oM);ZV(d,a);cW(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",dW(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));eW(d,c);d.set("lact",aW(a));d.set("videoad_start_delay",a.Ah);$V(d);fW(a,d,!0);return d}
function fW(a,b,c){B(C(a.referrer))||(a=a.referrer,c&&(a=xa(a)),gW("ref",a,b))}function hW(a,b){var c=null!=b?b.split("_"):a;D(c,function(a){if(!Ob(WV,a))throw MK(lK,null,"ad_type",String(b));});if(!jL()){var d=[];D(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw MK(kK,null,"skippablevideo");return d}return c}function iW(a,b){return null!=b?b.split(/[+, ]/):a}
function dW(a,b,c){a.o&&(c=Math.min(c,90));var d=[];D(YV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}function jW(a,b){return null==b||isNaN(b)?a:Number(b)}function kW(a,b){return null!=b?String(b):null!=a?a:null}function lW(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a}function mW(a,b,c){return null!=b&&Ob(c,b)?b:a}function cW(a){return hb(XV,function(b){return G(a.j,b)})}
function eW(a,b){nM?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.o;null!=c&&0<c.length&&(c=c[0].B,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function gW(a,b,c){null!=b&&c.set(a,b)};function nW(a,b,c){yV.call(this,a,b);b=new EV;a=gf(new J(a.adTagUrl));b.zl=mW(b.zl,a.get("cust_age"),GV);b.Mi=mW(b.Mi,a.get("adsafe"),FV);b.j=hW(b.j,a.get("ad_type"));b.adType=b.j.join("_");b.ql=jW(b.ql,a.get("videoad_start_delay"));b.rl=kW(b.rl,a.get("slotname"));b.yl=lW(b.yl,a.get("adtest"));b.tl=lW(b.tl,a.get("scs"));b.vl=kW(b.vl,a.get("alternate_ad_url"));b.channels=iW(b.channels,a.get("channel"));b.xl=jW(b.xl,a.get("cpm"));b.Tg=kW(b.Tg,a.get("description_url"));b.experimentIds=kW(b.experimentIds,
a.get("eid"));b.Al=mW(b.Al,a.get("cust_gender"),HV);b.o=lW(b.o,a.get("overlay"));b.host=kW(b.host,a.get("host"));b.k=iW(b.k,a.get("h_ch"));b.hostTierId=jW(b.hostTierId,a.get("ht_id"));b.Bl=lW(b.Bl,a.get("lsv"));var d;null!=this.k.language?d=this.k.language:(d=m.navigator||null,d=VK(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=kW(e,d);var g;null!=d&&!B(C(d))&&(g=VK(d));b.language=kW(b.language,g);b.Iq=jW(b.Iq,a.get("linearAdSlotWidth"));
b.Hq=jW(b.Hq,a.get("linearAdSlotHeight"));b.Ni=jW(b.Ni,a.get("max_ad_duration"));b.El=jW(b.El,a.get("min_ad_duration"));b.Pi=jW(b.Pi,a.get("sdmax"));b.Kq=jW(b.Kq,a.get("nonLinearAdSlotWidth"));b.Jq=jW(b.Jq,a.get("nonLinearAdSlotHeight"));b.Bf=kW(b.Bf,a.get("client"));b.Qi=kW(b.Qi,a.get("t_pyv"));b.Wi=jW(b.Wi,a.get("sdki"));b.tagForChildDirectedTreatment=jW(b.tagForChildDirectedTreatment,a.get("tfcd"));b.Fl=mW(b.Fl,a.get("targeting"),IV);b.Oi=jW(b.Oi,a.get("video_format"));b.Cl=jW(b.Cl,a.get("video_cpm"));
b.Dl=kW(b.Dl,a.get("loeid"));b.Jl=kW(b.Jl,a.get("yt_pt"));b.Gl=kW(b.Gl,a.get("ytdevice"));b.Hl=kW(b.Hl,a.get("ytdevicever"));b.Il=kW(b.Il,a.get("dbp"));b.A=kW(b.A,a.get("ms"));b.adBlock=jW(b.adBlock,a.get("adBlock"));b.url=kW(b.url,a.get("url"));b.wl=kW(b.wl,a.get("avo"));this.j=b;this.G=c;B(C(this.j.experimentIds))||(c=this.j.experimentIds.split(","),bT($S(),c))}A(nW,yV);var oW=["skippablevideo","standardvideo","video"];nW.prototype.D={wy:"allow",xy:"exclude",fK:"require"};
nW.prototype.B=function(){var a=nW.I.B.call(this);this.j.Wi&&(a+=this.j.Wi&2);return a};nW.prototype.A=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ja();D(c,function(c){K(b,c,a.get(c))});return b};
nW.prototype.C=function(){var a=new oe;a.set("sdkv",DV(this));a.set("sdki",this.B().toString(16));a.set("video_product_type",null!=this.j.Bf?XK()?5:0==this.j.Bf.lastIndexOf("ca-games-",0)?4:0==this.j.Bf.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.o.j);a.set("client",this.j.Bf);XK()&&!B(C(this.j.url))?a.set("url",this.j.url):a.set("url",this.k.location?this.k.location:this.k.referrer);null!=this.k.sc&&a.set("adk",this.k.sc);a.set("num_ads",pW(this));a.set("channel",qW(this));a.set("ad_type",
this.j.adType);cT(41351020)?a.set("output","xml_vast3"):a.set("output","xml_vast2");this.j.yl&&a.set("adtest","on");nM&&a.set("flash",oM);gW("alternate_ad_url",this.j.vl,a);gW("cpm",this.j.xl,a);ZV(a,this.k);XK()||Ob(FV,this.j.Mi)&&a.set("adsafe",this.j.Mi);this.j.host&&(a.set("host",this.j.host),gW("ht_id",this.j.hostTierId,a),null!=this.j.k&&gW("h_ch",this.j.k.join("+"),a));gW("hl",this.j.language,a);gW("cust_age",this.j.zl,a);gW("cust_gender",this.j.Al,a);-1!=this.j.tagForChildDirectedTreatment&&
gW("tfcd",this.j.tagForChildDirectedTreatment,a);gW("slotname",this.j.rl,a);var b=dT($S());B(C(b))||a.set("eid",b);$V(a);b=this.j.Tg;if(null!=b){var c;c=this.o;null==c.o&&(c.o=new yQ);c=c.o;var d;null!=b&&c.k!=b?(c.j=1,c.k=b):c.j=null!=b?c.j+1:1;d=c.j;1!=d&&a.set("ad_block",d);d=this.o;null==d.K&&(d.K=new EQ);d=d.K;var e=b!=this.o.N;(c=0==c.j%100||e)||(c=36E5<(null===d.j?0:(new BQ).getTime()-d.j));c&&(d.j=null,d.k=null);this.o.N=b;b=d.k;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");
b=this.j.ql;a.set("videoad_start_delay",null!=b?b:1);BV(this,a);CV(this,a);zV(this,a);cW(this.j)&&(a.set("ea","0"),null!=this.k.nonLinearAdSlotWidth&&null!=this.k.nonLinearAdSlotHeight&&a.set("image_size",dW(this.j,this.k.nonLinearAdSlotWidth,this.k.nonLinearAdSlotHeight)));rW(this)&&a.set("video_format",null!=this.j.Oi&&XK()?this.j.Oi:$h&&0<=Ra(Zt,6)||Vh&&0<=Ra(Zt,4)||ad&&fL(bL,2.3)?43:18);b=null!=this.j.Qi?this.j.Qi:G(this.j.adType.split("_"),"text")?this.D.wy:this.D.xy;a.set("t_pyv",b);gW("min_ad_duration",
this.j.El,a);0<this.j.Ni&&a.set("max_ad_duration",sW(this.j.Ni,pW(this)));0<this.j.Pi&&a.set("sdmax",sW(this.j.Pi,pW(this)));eW(a,this.G);XK()&&(b=TP(this.j.Tg),null!=b&&a.set("video_doc_id","yt_"+b));gW("description_url",this.j.Tg,a);XK()&&(gW("lact",aW(this.k),a),gW("loeid",this.j.Dl,a),gW("lsv",this.j.Bl,a),this.j.tl||gW("scs","false",a),gW("targeting",this.j.Fl,a),gW("video_cpm",this.j.Cl,a),gW("yt_pt",this.j.Jl,a),gW("ytdevice",this.j.Gl,a),gW("ytdevicever",this.j.Hl,a),gW("dbp",this.j.Il,a),
gW("avo",this.j.wl,a));gW("ms",this.j.A,a);AV(a);fW(this.k,a,!1);null!=this.k.Ke&&gW("loc",this.k.Ke.page_location,a);return a};function rW(a){return hb(oW,function(a){return G(this.j.j,a)},a)}function pW(a){return XK()?1:G(a.j.adType.split("_"),"text")?3:1}function qW(a){a=a.j.channels?a.j.channels:[];xb(a);a=wb(a,0,30);return a.join("+")}function sW(a,b){return Math.round(1.1*(a||0)+0*b)};function tW(a,b){yV.call(this,a,b)}A(tW,yV);tW.prototype.A=function(a){var b=new J(this.k.adTagUrl);D(a.Ja(),function(c){B(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};tW.prototype.C=function(){var a=new oe;a.set("sdkv",DV(this));CV(this,a);zV(this,a);AV(a);null!=this.k.sc&&a.set("adk",this.k.sc);return a};function uW(a,b){yV.call(this,a,b)}A(uW,yV);uW.prototype.C=function(){return null};
uW.prototype.A=function(){var a=new pT(this.k.adTagUrl),b=DV(this);b&&tT(a,"dc_sdkv",[b]);(b=this.B().toString(16))&&tT(a,"dc_sdki",[b]);(b=this.o.F)&&tT(a,"dc_submodel",[b]);null!=this.k.sc&&tT(a,"dc_adk",[this.k.sc]);b=new oe;BV(this,b);CV(this,b);zV(this,b);AV(b);qe(b,"js")&&tT(a,"dc_js",[b.get("js")]);qe(b,"msid")&&tT(a,"dc_msid",[b.get("msid")]);qe(b,"frm")&&tT(a,"dc_frm",[b.get("frm")]);qe(b,"osd")&&(tT(a,"osd",[b.get("osd")]),tT(a,"dc_osd",[b.get("osd")]));tT(a,"dcmt",["text/xml"]);qe(b,"vpa")&&
tT(a,"vpa",[b.get("vpa")]);qe(b,"mpt")&&tT(a,"mpt",[b.get("mpt")]);qe(b,"mpv")&&tT(a,"mpv",[b.get("mpv")]);return a};function vW(a){yV.call(this,a,null)}A(vW,yV);vW.prototype.A=function(a){return new J(a.get("adTagUrl"))};vW.prototype.F=function(){return C(this.C().get("adTagUrl"))};vW.prototype.C=function(){var a=new oe;a.set("adTagUrl",this.k.adTagUrl);a.set("adsResponse",this.k.adsResponse);return a};function wW(a){yV.call(this,a,null)}A(wW,yV);wW.prototype.A=function(a){return new J(a.get("adTagUrl"))};wW.prototype.C=function(){var a=new oe;a.set("adTagUrl",this.k.adTagUrl);a.set("adsResponse",this.k.adsResponse);return a};function xW(a,b){yV.call(this,a,b)}A(xW,yV);xW.prototype.A=function(a){var b=new J(this.k.adTagUrl);D(a.Ja(),function(c){B(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};
xW.prototype.C=function(){var a=new oe;a.set("sdkv",DV(this));a.set("sdki",this.B().toString(16));a.set("correlator",this.o.C);a.set("scor",this.o.j);null!=this.k.sc&&a.set("adk",this.k.sc);BV(this,a);CV(this,a);zV(this,a);AV(a);var b=this.o.k;null!=b&&(this.o.k=null,a.set("fbidx",b));b=this.o.P;null!=b&&a.set("ppid",b);var b="null",c=this.o.A;null!=c?b=c:yW(this.k.location)?b=this.k.location:yW(this.k.referrer)&&(b=this.k.referrer);a.set("url",b);b=this.o.F;null!=b&&a.set("submodel",b);b=this.o.D;
null!=b&&(b=zW(b),a.set("ciu_szs",b));a.set("impl","");return a};function yW(a){if(B(C(a)))return!1;a=new J(a);if(!a.Ib||"http"!=a.Ib&&"https"!=a.Ib)return!1;a=a.ob;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}function zW(a){var b=[];D(a,function(a){0<a.length&&b.push(E(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function AW(a,b,c){yV.call(this,a,b);this.G=B(C(a.youTubeAdType));a=new EV;a.j=hW(a.j,this.k.youTubeAdType);a.adType=a.j.join("_");a.experimentIds=kW(a.experimentIds,this.k.youTubeExperimentIds);this.j=a;this.D=c;B(C(this.j.experimentIds))||(c=this.j.experimentIds.split(","),bT($S(),c))}A(AW,xW);AW.prototype.A=function(a){a=AW.I.A.call(this,a);this.G||BW(this,a);return a};function CW(a){var b=bW(a.k,a.j,a.D);b.set("sdkv",DV(a));b.set("sdki",a.B().toString(16));return b}
function BW(a,b){var c=CW(a),d=E(c.Ja(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});K(b,"afvparams",d.join("&"))};function DW(a,b,c){yV.call(this,a,b);this.G=B(C(a.youTubeAdType));a=new EV;a.j=hW(a.j,this.k.youTubeAdType);a.adType=a.j.join("_");a.experimentIds=kW(a.experimentIds,this.k.youTubeExperimentIds);this.j=a;this.D=c;B(C(this.j.experimentIds))||(c=this.j.experimentIds.split(","),bT($S(),c))}A(DW,uW);DW.prototype.A=function(a){a=DW.I.A.call(this,a);this.G||EW(this,a);return a};function FW(a){var b=bW(a.k,a.j,a.D);b.set("sdkv",DV(a));b.set("sdki",a.B().toString(16));return b}
function EW(a,b){var c=FW(a),d=E(c.Ja(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});tT(b,"afvparams",[xa(d.join("&"))])};function GW(a,b){var c;!yT(a)&&!zT(a)||B(C(a.youTubeAdType))||null==a.adTagUrl||-1==a.adTagUrl.search("afvbase=")?yT(a)?c=new uW(a,HQ):vT(a)?c=new nW(a,HQ,b):zT(a)?c=new xW(a,HQ):xT(a)?c=new tW(a,HQ):(c=a.adTagUrl,null!=c?(c=df(new J(c)),c=va(c,".fwmrm.net")):c=!1,c=c?new vW(a):new wW(a)):c=yT(a)?new DW(a,HQ,b):new AW(a,HQ,b);return c};function HW(a){a=fb(a,function(a){return 0<mU(a)});Ab(a,function(a,c){return mU(a)-mU(c)});return a}function IW(a){return fb(a,function(a){return-1==mU(a)})};function JW(a){this.j=a};function KW(){this.j=0}function LW(a,b,c,d,e,g){var h=w(function(a){d(a,Error(zn(a)))},a),k=w(function(a){6==a?MW(this,b,!1,c,h,e,g):h(a)},a);MW(a,b,!0,c,k,e,g)}
function MW(a,b,c,d,e,g,h){var k=new io;k.O=c;lo(k,NW(g));var l=new sn,p=w(function(){l.dispose();k.dispose()},a);c=w(function(){e(k.k);p()},a);yn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=On(k);try{a=HC(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=IC())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);yn(l,k,["error","timeout"],c,a);var u;"POST"==h&&(b=new J(b),u=b.j.toString(),We(b,""),b=b.toString());a.j=z();k.send(WJ(b),h,u)};function OW(a,b,c){var d=null,e=c+b;D(a.A,function(g){if("true"!=g.F.rm||tU(a,MJ)){var h;if(h=g instanceof KT)0==c&&0==b||g instanceof IU?h=!0:(h=g.Ec(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Ec().height+b-g.Ec().width,"Flash"!=g.getContentType()||nM))if(null==d)d=g,e=h;else if(h==e&&g.j<d.j||h<e)d=g,e=h}else h=SV(a),aK(cU(a),h),(h=a.o)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)});eU(a,d)}
function PW(a){var b=null;D(a.A,function(a){a instanceof FT&&(null===b||a.j<b.j)&&(b=a)});eU(a,b)};function QW(a,b,c,d){this.A=a;this.G=b;this.ads=0<this.A.length?this.A:this.G;this.C=c;this.B=this.J=!0;this.k=-1;this.j=null;this.D=0;this.N=d;this.logger=null}QW.prototype.sd=function(){return null!=this.j&&this.j.sd()?!0:0<this.ads.length&&this.k<this.ads.length-1};function RW(a,b,c){null!=a.j?SW(a,b,c):a.sd()?TW(a,b,w(function(a){this.sd()&&301!=a.getErrorCode()?RW(this,b,c):c(a)},a)):c(new wJ("adLoadError","The ad source contains no more ads.",1005))}
QW.prototype.H=function(a,b){return this.B?0<a.length?a:b:wb(b,0,1)};QW.prototype.o=function(a,b,c){var d;if(!(d=null!=a.j)){var e=this.C;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;oU(a)&&!a.G?nU(a,"nonlinear")?OW(a,d,e):PW(a):nU(a,"linear")?PW(a):nU(a,"nonlinear")&&OW(a,d,e);d=null!=a.j}d?(this.D++,b(a)):(b=mb(a.A)?MK(xK):VT(a)?MK(sK):MK(AK),d=MV(b,a),aK(a.P,d),c(b))};
QW.prototype.F=function(a,b,c){var d=this.C.clone();d.adsResponse="";d.adTagUrl=a.Ca;d.sc=vQ(d.adTagUrl,d.linearAdSlotWidth,d.linearAdSlotHeight,d.nonLinearAdSlotWidth,d.nonLinearAdSlotHeight,d.Xj);UW(this,a,d,b,c)};function VW(a,b,c,d){var e=a.C.clone();e.adsResponse="";e.adTagUrl=b.Ba;UW(a,b,e,c,d)}
function UW(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.k,null!=g&&(c.adsResponse=g));a.N.o(c,w(function(a){if(a instanceof QW){var c=this.B&&b.ua,g=b.va,p;for(p in a.ads)a.ads[p].k=b;a.B=c;a.ads=a.H(a.A,a.G);a.k=-1;a.J=g;d(a)}else a instanceof JW?e(new wJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new wJ("adLoadError","Unknown ad source.",2))},a),e)}function WW(a){var b=0;for(a=a.k;null!=a;)a=a.k,b++;return b}
function SW(a,b,c){a.j.sd()?RW(a.j,w(function(a){this.o(a,b,w(function(a){this.sd()?RW(this,b,c):c(a)},this))},a),w(function(a){XW(this.ads[this.k],a);this.j=null;301==a.getErrorCode()?c(a):this.sd()?RW(this,b,c):c(a)},a)):(0==a.j.D&&XW(a.ads[a.k],MK(IK)),a.j=null,RW(a,b,c))}function XW(a,b){1012==b.getErrorCode()&&(b=MK(zK));var c=MV(b,a);aK(a.P,c)}
function TW(a,b,c){a.k++;var d=a.ads[a.k];d.G||d.F?d.F?VW(a,d,w(function(a){this.j=a;RW(this,b,c)},a),w(function(a){a=YW(a);XW(d,a);c(a)},a)):4<=WW(d)?(a=MK(BK,null,"4"),XW(d,a),c(a)):a.J?a.F(d,w(function(a){this.j=a;RW(this,b,c)},a),w(function(a){a=YW(a);XW(d,a);c(a)},a)):c(MK(HK)):a.o(d,b,c)}function YW(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=MK(IK)}return a};function ZW(a,b,c,d){QW.call(this,[],a,b,c);this.K=d}A(ZW,QW);ZW.prototype.sd=function(){return null!=this.j&&this.j.sd()?!0:0<this.ads.length&&this.k<this.ads.length-1&&0==this.D};ZW.prototype.H=function(a,b){return b};ZW.prototype.o=function(a,b,c){var d=-1,d=null==this.j?lU(a):lU(this.ads[this.k]);this.K.k=d;ZW.I.o.call(this,a,b,c)};ZW.prototype.F=function(a,b,c){this.K.k=-1;ZW.I.F.call(this,a,b,c)};function $W(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.wb=e}$W.prototype.o=function(a,b,c){B(C(a.adsResponse))?zT(a)&&null!=this.j&&!this.j.D?this.j.start(a,w(function(){aX(this,a,b,c)},this)):aX(this,a,b,c):bX(this,a,b,c)};function bX(a,b,c,d){var e;try{e=HC(b.adsResponse)}catch(g){d(MK(pK,g));return}null!=e?cX(a,e,b,c,d):d(MK(pK))}
function aX(a,b,c,d){var e;if(e=null!=b.adTagUrl){t:{try{ya(b.adTagUrl)}catch(g){e=!1;break t}e=!0}e=!e}e?d(MK(jK,null,b.adTagUrl)):YK.A?ER(CR(),w(a.k,a,b,c,d)):a.k(b,c,d)}
$W.prototype.k=function(a,b,c,d){var e=GW(a,this.B).F(),e=$J(e,d,!0);d=a.Sg&&UJ(TJ,e)?"POST":"GET";LW(this.A,e,w(function(d){cX(this,d,a,b,c)},this),w(function(b,d){var e;e=8==b?MK(wK):5==b||6==b?MK(eK):MK(iK,d);c(e);e="third_party";vT(a)?e="adsense":yT(a)?e="dart":zT(a)&&(e="xfp");e={rt:e,ec:b};lL(kL.getInstance(),18,e,!0)},this),this.wb,d);dX(a)};function dX(a){var b="third_party";vT(a)?b="adsense":yT(a)?b="dart":zT(a)?b="xfp":xT(a)&&(b="dbm");a={rt:b};lL(kL.getInstance(),17,a,!0)}
function cX(a,b,c,d,e){var g;try{var h=wV(b,c);if(!h)throw MK(pK);g=h.o();eX(a,g,c,d)}catch(k){k instanceof wJ?e(k):e(MK(qK,k))}}function eX(a,b,c,d){var e=b.j;if(null!=e)d(new JW(e));else{var g=b.o;if(null==g)throw MK(uK);D(g,function(a){a.o=c;a.ha=this.A.j;XK()&&(a.oa=b.k)},a);e=HW(g);g=IW(g);0<g.length&&0<=lU(g[0])?d(new ZW(g,c,a,a.C)):d(new QW(e,g,c,a))}};function fX(){this.j=8E3+z()}function NW(a){var b=z();a=a.j-b;return 0<a?a:0};function gX(a,b){this.j=a;this.k=b;YK.j&&JO().init();var c;t:{try{c=window.top.location.href}catch(d){c=2;break t}c=null!=c?c==window.document.location.href?0:1:2}HQ.G=c}function hX(a,b,c,d){var e=null;null!=a.j&&(e=new wR(1E3,a.j,a.k));(new $W(a.k,new KW,a.j,e,new fX)).o(b,w(function(a){a instanceof JW?c(a):iX(this,a,c,d)},a),d)}
function iX(a,b,c,d){var e=[],g=w(function(a,b){a.sd()?RW(a,w(function(b){e.push(b);g(a,null)},this),w(function(b){301==b.getErrorCode()?d(MK(wK)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=MK(mK)),1012==b.getErrorCode()&&(b=MK(zK)),d(b))},a);g(b,null)};function jX(a){this.k=a;this.j=new To}function kX(a,b,c,d){var e=w(function(a){c(a);Wo(this.j);lX(this)},a),g=w(function(a){d(a);Wo(this.j);lX(this)},a);Vo(a.j,w(function(){hX(this.k,b,e,g)},a));lX(a)}function lX(a){1==a.j.Qa()?(a=a.j,Uo(a),a=bb(a.j),null!=a&&a()):a.j.Qa()};function mX(a,b,c){U.call(this);this.A=new jX(new gX(b,c));this.k=b;this.j=!0;this.o=c}A(mX,U);function nX(a,b,c){if(a.j){var d=null!=c?c:{};uR.getInstance().end("rtr");uR.getInstance().start("vl");kX(a.A,b,w(function(a){oX(this,a,d)},a),w(function(a){pX(this,a,d)},a))}}function qX(a,b,c){if(!a.j){var d=null!=c?c:{};kX(a.A,b,w(function(a){oX(this,a,d)},a),w(function(a){pX(this,a,d)},a))}}
function oX(a,b,c){if(a.j)b instanceof JW?(b=new rX(b.j,a),b.C=a.k,a.T(new sX(b,c))):(b=tX(b),b.C=a.k,null!=b?(a.T(new sX(b,c)),uR.getInstance().end("vl")):pX(a,MK(sK,null),c));else if(b instanceof JW)pX(a,MK(dK,null,"Unsupported ad format."),c);else{var d=new tR("adsLoaderSdkAdLoaded");d.C=b;d.B=c;a.T(d)}}function pX(a,b,c){a.j?("always"==YK.k&&null!=a.k&&eR(a.k,bR()),a.T(new xJ(b,c))):(c=new tR("adsLoaderSdkAdError"),c.o=b,a.T(c))};var uX={NORMAL:"normal",FULLSCREEN:"fullscreen"};function vX(){return'<div class="close-padding"><div class="close-button"></div></div>'}function wX(){return'<div class="recall-button"></div>'}function xX(a){return'<a target="_blank" href="'+vP(a.url)+'" class="attribution-button">'+vP(a.text)+"</a>"};function yX(a,b){this.G=a;this.j=I("div",{"class":"controls"});this.P=b||t;this.Wc=new sn(this)}A(yX,R);f=yX.prototype;f.rd=!1;f.bt=1E3;f.rs=30;f.Pr=45E3;f.Qr=15E3;f.cu=!1;function zX(a){var b=I("div",{"class":"container"});Pw(b,"opacity 0.4s");a.Wc.listen(b,"mouseover",a.BE);a.Wc.listen(b,"mouseout",a.CE);b.appendChild(a.j);return b}f.co=function(){var a=zX(this);this.j.appendChild(this.G);this.display(this.G);this.play();return a};f.M=function(){null==this.J&&(this.J=this.co());return this.J};
f.play=function(){null==this.k&&(this.k=nn(function(){this.rd||(this.hide(),this.cu=!0);this.k=null},this.cu?this.Qr:this.Pr,this))};f.stop=function(){null!=this.k&&(on(this.k),this.k=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){Rg(this.M(),1);null!=this.o&&(on(this.o),this.o=null)};f.hide=function(){Rg(this.M(),this.rs/100);null==this.o&&(this.o=nn(function(){this.P();this.o=null},400,this))};
f.BE=function(){this.show();this.rd=!0;this.C=nn(function(){this.rd&&this.stop();this.C=null},this.bt,this)};f.CE=function(){null!=this.C&&(on(this.C),this.C=null);this.rd&&this.play();this.rd=!1};f.L=function(){yX.I.L.call(this);this.stop();wi(this.Wc)};function AX(a,b){this.H=a;this.N=new oe;this.K=15E3;this.D=I("span");yX.call(this,a[0],b);this.j.appendChild(this.D)}A(AX,yX);
AX.prototype.co=function(){var a=zX(this);O(a,"container-rotator");this.F=I("div");this.j.appendChild(this.F);D(this.H,function(a,c){O(a,"container-highlight");var d=63/this.H.length*(c+.5)-5,e=I("div",{id:Va(),"class":"container-selector"});e.style.top=d+"px";this.Wc.listen(e,"click",function(a){BX(this,a.target)});this.N.set(e.id,a);this.D.appendChild(e)},this);BX(this,Od(this.D));this.play();return a};
AX.prototype.play=function(){null==this.A&&(this.A=new ln(this.K),this.Wc.listen(this.A,"tick",this.O));AX.I.play.call(this);this.A.start()};AX.prototype.stop=function(){null!=this.A&&this.A.stop();AX.I.stop.call(this)};AX.prototype.O=function(){var a=this.B;BX(this,(void 0!=a.nextElementSibling?a.nextElementSibling:Pd(a.nextSibling))||Od(this.B.parentNode))};function BX(a,b){a.B&&fh(a.B,"container-active");O(b,"container-active");var c=a.N.get(b.id);Md(c,a.F);a.B=b;a.F=c;a.display(c)};function CX(a,b){yX.call(this,a[0],b);this.A=a;O(this.j,"container-stack")}A(CX,yX);CX.prototype.hide=t;CX.prototype.co=function(){var a=zX(this);D(this.A,function(a){O(a,"container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function DX(){R.call(this);this.D="";this.k=new gS;this.o=new oe;this.A=[];this.F=!1;this.j={};this.C=-1;this.B=[]}A(DX,R);function EX(a,b){if(YK.j){var c=NO(JO(),b.type,a.D);a.G(b.type,c)}else FR(CR(),b.type,a.D,w(a.G,a,b.type))}
DX.prototype.G=function(a,b,c){null!=b&&VV(this.j,b);if("impression"==a&&!this.F&&null!=this.A&&0<this.A.length){var d=G(this.B,"impression");FX(this,this.A,"",d);this.F=!0}t:switch(a){case "click":d=!0;break t;case "complete":d=!qe(this.o,a)&&!qe(this.o,"skip");break t;default:d=!qe(this.o,a)}if(d){var d=G(this.B,a),e=nS(this.k,a);0<e.length&&(FX(this,e,b,d,c),this.o.set(a,!0))}};function GX(a,b){null!=b&&D(b,function(a){G(this.B,a)||this.B.push(a)},a)}
function FX(a,b,c,d,e){D(b,function(a){YJ(a,this.j,c,d,e)},a)};function HX(a){U.call(this);this.ads=a;this.G=null;this.J="normal";this.o=this.volume=null;this.k=new oL;this.ja=!1;this.content={};this.B=new DX;this.O=!1;D(a,function(){});D(a,function(b,c){var d=b.B;d.o=a.length;var e=c+1;d.j=e;d.A=e})}A(HX,U);function IX(a){if(JX(a)){if(XT(a.G)&&!jL())throw OK(kK,null,"skippablevideo");return a.G}throw OK(gK,null,"An ad has not been selected.");}function JX(a){return null!==a.G}f=HX.prototype;
f.Vg=function(){var a=db(this.ads,this.G);-1!=a&&++a<this.ads.length?this.G=this.ads[a]:this.G=null};f.ir=function(){if(!JX(this)){if(mb(this.ads))throw OK(sK);this.G=this.ads[0];if(null==this.G.j)throw MK(sK);}};f.ra=function(a){JX(this)?this.T(new AJ(a,IX(this))):this.T(new AJ(a,null))};function KX(a){null==a.F&&(a.F=new sn(a));return a.F}function LX(a,b){if(null!=a.C&&(wn(KX(a),a.C,"companion_display_error",function(){}),eR(a.C,b),!a.C.su()))throw OK(hK);}
f.destroy=function(){YK.j&&(JO().B=null);this.dispose()};f.L=function(){JX(this)&&(eU(this.G,null),this.G=null);wi(this.F);this.F=null;wi(this.C);this.C=null;this.O=!1;HX.I.L.call(this)};f.Ie=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){MX(this);this.Zj(a);this.ja=!0;this.mk()};f.mk=function(){this.ra("loaded")};f.sendImpressionUrls=function(a){JX(this)&&XK()&&aK(cU(IX(this)),a)};f.Rl=function(){};
f.Qc=function(a,b,c){if(!this.O){if(null==a)throw OK(lK,null,"displayContainer");if(null!=c){var d=new dk(Qb(this.k));if(!xe(Qb(c),d.contains,d))throw OK(lK,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.k;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);NX(c.mimeTypes);ha(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);cc(d,c)}this.content=b;this.o=a;this.ir();YK.j&&(a=JO(),b=w(this.gr,this),a.B=b);this.O=!0}};
f.jf=function(a){D(cU(a),function(a){ob(this.B.A,a)},this)};f.ze=function(a,b){D(b,function(b){b=DT(a,b);jS(this.B.k,b)},this)};f.ni=function(a){if(a instanceof FT){var b=GT(a);D(b.Ja(),function(a){var d=b.get(a);D(d,function(b){lS(this.B.k,a,b)},this)},this)}};function OX(a,b){EX(a.B,new dm(b))}f.gc=function(a){EX(this.B,new dm(a));this.ra(a)};f.getRemainingTime=function(){return-1};f.Hh=t;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){MX(this);if(!this.ja)throw MK(gK,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.gr=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&QK(this,lK,null,"volume",String(a));this.volume=a};f.Zj=function(a){if(!Ob(uX,a))throw OK(lK,null,"view mode",a);this.J=a};f.setMediaUrl=function(){};function MX(a){if(!a.O)throw OK(gK,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Vq=function(){return null};f.Nf=function(){return null};function NX(a){if(!ea(a))throw OK(gK,null,"adsRenderingSettings.mimeTypes should be an array");var b=sb(Pb(OJ),Pb(JJ));D(a,function(a){if(!G(b,a))throw OK(gK,null,"Invalid or unsuppoted mime type "+a);})};function PX(a){HX.call(this,a);this.A=null;this.V=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.N=!1;this.P=[]}A(PX,HX);f=PX.prototype;f.start=function(){PX.I.start.call(this);this.o.xi();this.A=this.o.Jf();if(null!=this.A){Jd(this.A);var a=this.Wm();YK.j?MO(JO(),a):DR(CR(),a);this.A.appendChild(a);QX(this);D(this.P,function(a){a()});nb(this.P);this.N=!0;this.ra("start")}};f.Hh=function(){PX.I.Hh.call(this);QX(this)};
f.L=function(){wi(this.j);this.o=this.j=null;this.N=!1;YK.j?JO().o=null:CR().o=null;null!=this.A&&(Jd(this.A),this.A=null);PX.I.L.call(this)};function RX(a,b){var c=ST(b);D(c,function(a){lS(this.B.k,"click",a)},a)}
f.Wm=function(){var a=fU(IX(this));if(null==a)throw a=OK(sK),SX(this,a),a;LT(a,KX(this));MT(a,this.UD);try{LX(this,IX(this))}catch(b){throw SX(this,b),b;}var c=IX(this),d=SV(c);this.B.j=d;c.j&&(this.jf(c),(c=c.j)&&this.ze(c,zJ));RX(this,a);this.N?this.gc("impression"):this.P.push(w(this.gc,this,"impression"));return TX(this,[a.Ue()])};f.us=function(a,b){return new yX(a[0],b)};
function TX(a,b){null!=a.j&&a.j.stop();a.j=a.us(b,w(a.ts,a));var c=a.j.M();if(YK.j){var d=I("style",{type:"text/css"},'.close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{text-shadow:1px 1px 1px rgba(0,0,0,0.75);margin:5px;margin-right:20px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.phone .videoAdUiAttribution{font-size:14px}.videoAdUi.blazer.phone .videoAdUiSkipButton{padding:6px 0}.videoAdUi.blazer.phone .videoAdUiSkipIcon{margin-left:6px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}');c.appendChild(d)}P(c,
"autoalign",a.k.ks);P(c,"viewmode-fullscreen","fullscreen"==a.J);c.appendChild(a.V);KX(a).listen(c,"click",em);(JX(a)&&oU(IX(a))||a.k.useStyledNonLinearAds)&&a.Am(a.j.j);return c}f.Am=function(a){var b=KX(this);this.U=qP(wX);b.listen(this.U,"click",this.UF);var c=qP(vX);b.listen(c,"click",this.Cn);a.appendChild(c)};function QX(a){if(null!=a.j){var b=Og(a.o.Jf()),c=Og(Od(a.j.j));if(c.width>b.width||c.height>b.height)throw b=OK(nK,null),SX(a,b),a.stop(),b;}}
function SX(a,b){var c=MV(b,IX(a)),d=bU(IX(a));aK(d,c)}f.UD=function(a){this.gc("click");em(a)};f.Cn=function(){this.ts();this.ra("userClose");OX(this,"close")};f.ts=function(){this.j.stop();var a=fU(IX(this));null!=a&&OT(a);Md(this.U,this.j.j)};f.UF=function(a){em(a);this.j.show();this.j.play();Md(this.j.j,this.U);nn(function(){Sg(this.V,!1)},500,this);Sg(this.V,!0)};function UX(a){PX.call(this,a);this.D=!1;this.K=this.W=null;mb(a)||null==a[0].o||(this.W=a[0].o,kf(new J(this.W.adTagUrl),"channel"))}A(UX,PX);f=UX.prototype;f.us=function(a,b){if(this.D||null==b)b=t;var c;XK()&&this.D?c=new yX(a[0],b):"fullscreen"==this.J?c=new CX(a):1<a.length?(c=new AX(a),c.K=15E3):c=new yX(a[0],b);c.bt=100;this.D&&(c.rs=30);c.Pr=45E3;c.Qr=6E3;P(c.j,"scalable",this.D);P(c.M(),"yt-text-overlay",XK()&&this.D);return c};
f.gF=function(a){var b=a.j;null!=b?(null==this.R&&(this.R=a.getExtension("AdSense").C),NT(b,y(this.OD,a,b)),MT(b,y(this.ND,a,b)),b.la=!1,"Text"==b.getContentType()&&(this.D=!0),this.K.push(b)):(b=MK(sK),b=MV(b,a),aK(bU(a),b))};f.Qc=function(a,b,c){UX.I.Qc.call(this,a,b,c);this.k.ks=!0;null!=this.ads[0]&&0<lR(this.ads[0]).length?LX(this,this.ads[0]):XK()&&this.ra("companionBackfill")};
f.Wm=function(){null==this.K&&(this.K=[],D(this.ads,this.gF,this));if(0==this.K.length)throw OK(sK);var a=[];D(this.K,function(b){LT(b,KX(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.wt=!0);a.push(b.Ue());RT(b,this.R.o)},this);if(0==a.length)throw OK(sK);return TX(this,a)};f.Cn=function(a){UX.I.Cn.call(this,a);D(this.K,function(a){var c=SV(a.getAd());this.B.j=c;this.ze(a,["close"]);OX(this,"close");this.B=new DX},this)};
f.Am=function(a){UX.I.Am.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.A,b=b.B,c=qP(xX,{text:null!=c?c:this.R.j,url:null!=b?b:this.R.k});a.appendChild(c)};f.OD=function(a,b){this.N?this.vu(a,b):this.P.push(w(this.vu,this,a,b));NT(b,t)};f.vu=function(a,b){var c=SV(a);this.B.j=c;this.jf(a);this.ze(b,["creativeview"]);OX(this,"impression");OX(this,"creativeview");this.B=new DX};
f.ND=function(a,b,c){c=Kg(c);a=a.getExtension("AdSense");a=new J(a.k);var d=b.gd();isNaN(d)&&(d=Ng(b.Ue()).width);var e=b.getHeight();isNaN(e)&&(e=Ng(b.Ue()).height);b=$S();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.J,"sdkv=h.0.0.0","eids="+dT(b)];b=bK(a,"elementclick",b);YJ(b);this.ra("click")};f.Zj=function(a){this.J!=a&&(UX.I.Zj.call(this,a),null!=this.A&&(Jd(this.A),a=this.Wm(),this.A.appendChild(a)),this.ra("expandedChanged"))};function VX(a){AJ.call(this,"adMetadata",a)}A(VX,AJ);var WX={};q("adsense.mobileads.afmanotify.receiveMessage",function(a,b){if(WX.hasOwnProperty(a))for(var c=WX[a],d=0;d<c.length;++d){var e=c[d];e.callback.call(e.object,a,b)}},void 0);new oe;function XX(a,b,c){var d=t,e;cT(947225)?(e=new J("https://www.googleapis.com/youtube/v3/videos"),K(e,"id",a),K(e,"part","snippet,status"),K(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus")):e=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=w(b,c),d=w(d,c));YX(new io,e,b,d)}
function ZX(a,b,c){var d=t,e;cT(947225)?(e=new J("https://www.googleapis.com/youtube/v3/channels"),K(e,"id",a),K(e,"part","snippet,statistics"),K(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount")):e=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=w(b,c),d=w(d,c));YX(new io,e,b,d)}
function YX(a,b,c,d){$X(b);lo(a,2E3);var e=new sn(a);wn(e,a,"success",function(a){a=a.target;var b;b=a.j?dg(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});wn(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.k&&(b=Error(zn(a.k)));d(b);e.dispose();a.dispose()});a.send(b)}function $X(a){cT(947225)?K(a,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0"):(K(a,"alt","json"),K(a,"v","2"))};function aY(a,b,c,d,e){Iv.call(this);this.k=a;this.B=b;this.C=c;this.o=d;this.D=ea(e)?e:[e]}A(aY,Iv);f=aY.prototype;f.play=function(){if(this.mb())return!1;this.ac();this.Sb("play");this.startTime=z();this.j=1;if(Rw())return wg(this.k,this.C),this.A=nn(this.GA,void 0,this),!0;this.Nl(!1);return!1};f.GA=function(){Og(this.k);Pw(this.k,this.D);wg(this.k,this.o);this.A=nn(w(this.Nl,this,!1),1E3*this.B)};f.stop=function(){this.mb()&&this.Nl(!0)};
f.Nl=function(a){Qw(this.k,"");on(this.A);wg(this.k,this.o);this.endTime=z();this.j=0;if(a)this.onStop();else this.Pb();this.Fc()};f.L=function(){this.stop();aY.I.L.call(this)};f.pause=function(){};function bY(a,b,c,d){return new aY(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Tp:0})};function cY(a,b){U.call(this);this.o=a;this.N=0;this.G=!1;this.k=1;this.j=this.U=this.J=this.O=this.A=null;this.B=new sn(this);this.R=!1;this.W=this.V=this.P=0;this.C=this.F=this.D=null;this.K=!1;this.H=new UO;this.o.D&&(this.B.listen(b,"touchstart",this.Qv),this.B.listen(b,"touchmove",this.Pv),this.B.listen(b,"touchend",this.Ov));this.A=qP(OP);this.O=ud("videoAdUiPreSkipButton",this.A);this.J=ud("videoAdUiPreSkipText",this.O);this.U=ud("videoAdUiPreSkipThumbnail",this.O);Ud(this.J,PP({Oo:dY(this)}));
var c=this.o.X,c=(B(C(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.o.showContentThumbnail&&!B(C(c))){var d=Fd("img");d.setAttribute("src",c);O(d,"videoAdUiPreSkipThumbnailImage");this.U.appendChild(d)}else O(this.J,"videoAdUiPreSkipTextOnly");this.o.D?c="\u00ab Swipe to Skip":(c="",d=sa("Skip Ad \u00bb"),c=c+d,d=new RegExp(Na("\u00bb"),""),c=c.replace(d,""),c=wa(c));this.j=qP(QP,{Sv:c});Sg(this.A,!1);b.appendChild(this.A);Sg(this.j,!1);Rg(this.j,0);b.appendChild(this.j);this.B.listen(this.H,
"click",this.Rv);VO(this.H,this.j)}A(cY,U);f=cY.prototype;f.L=function(){null!=this.D&&(this.D.dispose(),this.D=null);null!=this.F&&(this.F.dispose(),this.F=null);eY(this);null!=this.A&&(Ld(this.A),this.A=null);null!=this.j&&(Ld(this.j),this.j=null);this.H.dispose();this.H=null;this.B.dispose();this.B=null;this.K=!1;cY.I.L.call(this)};
f.update=function(a,b){this.N=b;if(!(0>=this.N||null==this.o.skipOffset||0>eS(this.o.skipOffset))){var c=eS(this.o.skipOffset);c>=this.N||3==this.k||(0>a?this.k=1:a<=c?(2!=this.k&&(fY(this,0),bY(this.A,"ease-out",0,1).play(),Sg(this.A,!0)),this.k=2):(3!=this.k&&(Sg(this.j,!0),this.F=new aY(this.A,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Tp:0}),this.D=bY(this.j,"ease-out",0,1),this.F.play(),this.D.play(),this.B.listen(Rd(this.j),
"mouseover",this.yy),this.B.listen(Rd(this.j),"mouseout",this.Up),this.Up()),this.k=3,this.T("skipshown")))}2==this.k&&fY(this,a)};f.skip=function(){return null==this.o.skipOffset||3!=this.k||this.G?!1:(this.G=!0,this.T("PUBLISHER_INVOKED_SKIP"),!0)};f.Qv=function(a){var b=a.j;3==this.k&&1==b.touches.length&&(this.R=!0,this.W=b.touches[0].pageX,a.preventDefault())};
f.Pv=function(a){var b=a.j;3==this.k&&1==b.touches.length&&this.R&&(b=b.touches[0].pageX,this.P=this.V-b,this.V=b,b=this.W-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};f.Ov=function(){this.R=!1;if(3==this.k){var a=Ng(Rd(this.j));if(parseInt(this.j.style.right,10)+4*this.P>.25*a.width&&0<this.P){Sg(this.j,!1);this.G=!0;this.T("skip");return}}this.j.style.right=0};function dY(a){return null!=a.o.skipOffset&&-1!=eS(a.o.skipOffset)?eS(a.o.skipOffset):-1}
function fY(a,b){var c=dY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+ZR(c));c=PP({Oo:d});Ud(a.J,c)}}f.Rv=function(a){XK()||a.stopPropagation();3!=this.k||this.G||(this.G=!0,this.T("skip"))};f.Up=function(){null==this.C&&(this.C=nn(function(){this.K=!0;bY(this.j,"ease-in",1,.5).play();this.C=null},this.K?5E3:15E3,this))};f.yy=function(){Rg(this.j,1);eY(this)};function eY(a){null!=a.C&&(on(a.C),a.C=null)};function gY(a,b,c){U.call(this);this.j=a;this.V=c;this.O=this.P=this.N=this.F=this.D=this.K=this.k=null;this.U=!1;this.G=this.A=this.C=this.R=this.J=this.H=this.B=null;this.o=new sn(this);this.W=[];this.k=qP(this.j.C,{kf:this.j.kf,Cg:this.j.Cg});this.o.listen(this.k,"touchmove",this.Vv);this.J=ud("videoAdUiProgress",this.k);this.R=ud("videoAdUiBuffer",this.k);this.K=ud("videoAdUiAttribution",this.k);this.D=ud("videoAdUiAuthorIcon",this.k);this.F=ud("videoAdUiAuthorName",this.k);this.N=ud("videoAdUiLearnMore",
this.k);this.P=ud("videoAdUiLearnMoreText",this.k);this.G=ud("videoAdUiShare",this.k);this.B=ud("videoAdUiTitle",this.k);this.H=ud("videoAdUiTopBar",this.k);this.O=ud("videoAdUiBottomBar",this.k);null!=this.D&&this.o.listen(this.D,"click",this.Tv);null!=this.F&&this.o.listen(this.F,"click",this.Uv);null!=this.N&&this.o.listen(this.N,"click",this.Wv);null!=this.P&&this.o.listen(this.P,"click",this.Mk);null!=this.G&&this.o.listen(this.G,"click",this.Yv);null!=this.B&&this.o.listen(this.B,"click",this.Zv);
null!=this.H&&this.o.listen(this.k,"mouseover",this.Xv);null!=this.j.skipOffset&&(this.A=new cY(this.j,this.k),this.A.ji(this));400>=(parseInt(zg(b,"width"),10)||b.width)&&O(this.k,"videoAdUi-mobile");this.j.F&&(O(this.k,"blazer"),window.settings&&window.settings.isTablet?O(this.k,"tablet"):O(this.k,"phone"));this.j.D&&O(this.k,"videoAdUi-swipeable");Sg(this.k,!1);b.appendChild(this.k);this.j.o||(this.C=I("div",{style:"width:100%;height:100%"}),this.k.appendChild(this.C));hY(this)}A(gY,U);f=gY.prototype;
f.show=function(){null!=this.k&&Sg(this.k,!0)};f.skip=function(){var a;if(a=null!=this.A)a=this.A,a=null!=a.o.skipOffset&&3==a.k;return a?this.A.skip():!1};f.L=function(){null!=this.k&&(Ld(this.k),this.k=null);null!=this.A&&(this.A.dispose(),this.A=null);this.C=null;this.o.dispose();this.o=null;this.U=!1;gY.I.L.call(this)};
f.update=function(a,b,c,d,e){this.U=!0;null!=this.k&&(null!=this.K&&iY(this,a,c,d,e),null!=this.J&&Mg(this.J,a/c*100+"%"),null!=this.R&&Mg(this.R,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.A&&(fS(this.j.skipOffset,c),this.A.update(a,c)),this.j.B&&0<c&&5>c-a&&O(this.H,"videoAdUiTopBarNoFade"),D(this.W,function(b){b.update(a,c)},this))};function jY(a,b){a.W=b;D(b,function(a){a.display(this.k)},a)}
function hY(a){var b=a.j.N&&(a.V>a.j.U||0==a.V),c=b&&a.j.O,d=b&&a.j.R,e=b&&a.j.k,g=b&&a.j.K,b=b&&a.j.B,h=a.j.J&&a.j.j,k="0px";null!=a.B&&(Sg(a.B,b),null!=a.D&&Sg(a.D,c),null!=a.F&&Sg(a.F,d),null!=a.N&&Sg(a.N,e),null!=a.G&&(Sg(a.G,g),g&&a.T("videoShareShown")),null!=a.H&&Sg(a.H,b||c||d||e));null!=a.K&&kY(a);null!=a.J&&(Sg(a.J,h),h&&(k=zg(a.J,"height")));null!=a.O&&wg(a.O,"bottom",k);null!=a.P&&Sg(a.P,a.j.o)}
function iY(a,b,c,d,e){var g=RP({qi:"",pi:0,ri:0});a.j.j&&a.j.H&&(b=ZR(c-b),g=RP({qi:a.j.F?" \u2022 "+b:": ("+b+")",pi:d,ri:e}));Ud(a.K,g);kY(a)}function kY(a){Sg(a.K,a.j.A&&(!a.j.j||a.U))}f.Tv=function(){this.T("videoAuthorIconClicked")};f.Uv=function(){this.T("videoAuthorClicked")};f.Wv=function(){this.T("videoLearnMoreClicked")};f.Yv=function(){this.T("videoShareClicked")};f.Zv=function(){this.T("videoTitleClicked")};f.Vv=function(a){a.preventDefault()};
f.Mk=function(){this.j.G?this.T("click"):this.T("videoClicked")};f.Xv=function(){O(this.H,"videoAdUiTopBarTransitions")};function lY(){this.kf=RP({qi:"",pi:0,ri:0});var a="",b=sa("Learn More {$suffix}",{suffix:vP("")});this.Cg=a+b;this.skipOffset=null;this.U=6E3;this.H=this.j=this.G=this.A=!0;this.K=this.J=this.k=!1;this.N=!0;this.B=this.R=this.O=this.P=this.o=!1;this.C=null;this.D=hm&&cT(0);this.showContentThumbnail=!0;this.F=!1}
function mY(a,b,c,d){var e=new lY;e.o=a;e.Da=b;e.skipOffset=c;e.X=null!=d?d.contentId:null;e.C=MP;e.Ra=VP(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function nY(a){dm.call(this,a)}A(nY,dm);function oY(a){U.call(this);this.B=a;this.H=new oe;this.F=-1;this.J=!1}A(oY,U);function pY(a){this.k=!1;this.j=a.Wg();this.volume=a.jd()}pY.prototype.muted=function(a,b){return!this.j&&a||0<this.volume&&0==b};f=oY.prototype;f.L=function(){qY(this);oY.I.L.call(this)};function qY(a){null!=a.k&&a.k.dispose();null!=a.j&&a.j.Cf();null!=a.C&&a.C.dispose();a.C=null;null!=a.D&&a.D.dispose();a.D=null;a.H.clear();a.F=-1;a.J=!1}
function rY(a,b,c){if(!c||null==a.H.get(b)){a.H.set(b,!0);t:{if(a.o&&a.o.j.k){if("click"==b)break t;"videoLearnMoreClicked"==b&&EX(a.B,new dm("click"))}EX(a.B,new dm(b))}a.T(b)}}f.rw=function(){rY(this,"measurable_impression",!1)};f.Cw=function(a){a=a.o;a=VV(this.B.j,null!=a?a.viewabilityString:null);this.B.j=a;rY(this,"viewable_impression",!1)};
f.mw=function(){var a=this.j.fd();if(-1!=a){this.j.ph(.25*a)&&rY(this,"firstquartile",!0);this.j.ph(.5*a)&&rY(this,"midpoint",!0);this.j.ph(.75*a)&&rY(this,"thirdquartile",!0);var b=this.B,c=this.j.getCurrentTime();0>b.C&&(mS(b.k,a),b.C=0);for(var a=kS(b.k,"progress"),d=b.C;d<a.length;d++){var e=a[d];if(eS(e.k)>c)break;b.C=d+1;YJ(e.j,b.j)}}sY(this)};function sY(a){0>a.F||a.J||!a.j.ph(a.F)&&!a.j.Ne()||(a.J=!0,rY(a,"engagedview",!0),a.T(new nY("viewCount")))}
f.lw=function(){rY(this,"impression",!0);rY(this,"creativeview",!0);null!=this.G||null!=this.o||this.k.listen(this.j,"click",this.um);null!=this.G&&(this.C=new UO,this.k.listen(this.C,"click",this.um,!1),VO(this.C,this.G));null!=this.o&&(this.D=new UO,this.k.listen(this.D,"click",this.um,!1),VO(this.D,this.o));rY(this,"start",!0);(this.j.Wg()||0==this.j.jd())&&rY(this,"mute",!1)};
f.ow=function(){var a=this.j.Wg(),b=this.j.jd(),c=this.A;c.j&&!a||!a&&0==c.volume&&0<b?rY(this,"unmute",!1):this.A.muted(a,b)&&rY(this,"mute",!1);this.A.j=a;this.A.volume=b};f.jw=function(){this.j.Ne()?(sY(this),rY(this,"complete",!0)):this.j.Ug()&&!this.j.Xr()&&(this.A.k=!0,rY(this,"pause",!1))};f.kw=function(){this.A.k&&(this.A.k=!1,rY(this,"resume",!1))};f.ew=function(){sY(this);rY(this,"complete",!0)};f.um=function(){rY(this,"click",!1)};f.gw=function(){rY(this,"error",!1)};
f.iw=function(){rY(this,"mediaLoadTimeout",!1)};f.bp=function(){rY(this,"skipshown",!0)};f.uw=function(){rY(this,"videoAuthorIconClicked",!1)};f.tw=function(){rY(this,"videoAuthorClicked",!1)};f.ww=function(){rY(this,"videoClicked",!1)};f.xw=function(){rY(this,"videoLearnMoreClicked",!1)};f.yw=function(){rY(this,"videoShareClicked",!1)};f.zw=function(){rY(this,"videoShareShown",!0)};f.Bw=function(){rY(this,"videoTitleClicked",!1)};f.ap=function(){rY(this,"skip",!0)};
f.sw=function(){rY(this,"skip",!0)};f.hw=function(){rY(this,"fullscreen",!1)};f.qw=function(){rY(this,"exitfullscreen",!1)};function tY(a){HX.call(this,a);this.A=null;this.D=new oY(this.B);this.R=this.V=this.U=this.N=!1;this.P=1;this.K=null}A(tY,HX);f=tY.prototype;f.L=function(){uY(this);var a=!1;null!=this.o&&(a=this.o.un(),this.o.hide(),this.o=null);this.N&&(this.N=!1,this.j.Ug()||this.j.Ne()||this.j.pause(),eL()&&!a&&(this.j.Pf(.001),this.j.load("","")),dL()&&this.j.Gd()&&!a&&this.j.tn(),this.ra("contentResumeRequested"),this.ra("allAdsCompleted"));tY.I.L.call(this)};
function uY(a){wi(a.A);a.A=null;wi(a.D);wi(a.B);wi(a.G);a.U=!1;a.R=!1}function vY(a){a.Vg();JX(a)?a.start():a.stop()}f.Vg=function(){uY(this);tY.I.Vg.call(this);JX(this)&&(this.B=new DX,this.D=new oY(this.B))};
f.PB=function(a,b,c){if(!this.U){this.U=!0;var d=TP(b);if(this.k.useVideoAdUi){var e=a.getExtension("AdSense"),g=this.k.Nk&&((null===b?!1:"modules"==(new J(b)).qf().toLowerCase())||null!=e&&e.F),h=!0,k=!0;if(cT(909720)||XT(a)&&30<vU(a)&&cT(909721))k=h=!1;var l=-1!=vU(a)&&0!=vU(a)&&7>=vU(a)?null:pU(a);if(XK()){var e=this.k,p=B(C(uU(a)))?!1:this.k.Ro;$T(a,KJ);d=mY(g,d,l,e);d.k=p;d.J=k;d.H=h;d.F=e.Ok;d.G=e.Dw;d.K=e.useShareButton;d.P=e.Ew;d.U=0;e.Ok&&(e="",p=sa("Visit Advertiser"),d.Cg=e+p)}else $T(a,
KJ)||!B(C(a.J))?(d=mY(g,d,l,this.k),d.C=NP):(d=mY(g,d,l,this.k),d.N=!1,d.A=!1,d.j=!1);e=this.o.Tk();null===e?e=document.body:(Jd(e),p=I("style",{type:"text/css"},'.close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{text-shadow:1px 1px 1px rgba(0,0,0,0.75);margin:5px;margin-right:20px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.phone .videoAdUiAttribution{font-size:14px}.videoAdUi.blazer.phone .videoAdUiSkipButton{padding:6px 0}.videoAdUi.blazer.phone .videoAdUiSkipIcon{margin-left:6px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}'),
e.appendChild(p));p=1E3*vU(IX(this));this.A=new gY(d,e,p);e=d.Da;null!=e&&(IX(this).J=e,d.P&&wY(this,e));e=[];d.A&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.k.Qo&&(IX(this).J=d,wY(this,d));d=this.D;e=this.j;p=this.o.Sk();g=this.A;qY(d);d.B.D=a.U;d.j=e;d.o=g||null;d.j.mi();d.A=new pY(d.j);d.G=p||null;d.k=new sn(d);d.k.listen(a,"measurable_impression",d.rw);d.k.listen(a,"viewable_impression",d.Cw);d.k.listen(d.j,"timeUpdate",d.mw);d.k.listen(d.j,"volumeChange",d.ow);d.k.listen(d.j,
"pause",d.jw);d.k.listen(d.j,"play",d.kw);d.k.listen(d.j,"end",d.ew);d.k.listen(d.j,"beginFullscreen",d.hw);d.k.listen(d.j,"endFullscreen",d.qw);d.k.listen(d.j,"skip",d.ap);d.k.listen(d.j,"skipShown",d.bp);d.k.listen(d.j,"start",d.lw);d.k.listen(d.j,"error",d.gw);d.k.listen(d.j,"mediaLoadTimeout",d.iw);null!=d.o&&(d.k.listen(d.o,"videoAuthorIconClicked",d.uw),d.k.listen(d.o,"videoAuthorClicked",d.tw),d.k.listen(d.o,"videoClicked",d.ww),d.k.listen(d.o,"videoLearnMoreClicked",d.xw),d.k.listen(d.o,"videoTitleClicked",
d.Bw),d.k.listen(d.o,"videoShareClicked",d.yw),d.k.listen(d.o,"videoShareShown",d.zw),d.k.listen(d.o,"skipshown",d.bp),d.k.listen(d.o,"skip",d.ap),d.k.listen(d.o,"PUBLISHER_INVOKED_SKIP",d.sw));KX(this).listen(this.D,"engagedview",this.ad);KX(this).listen(this.D,"videoAuthorIconClicked",this.ad);KX(this).listen(this.D,"videoAuthorClicked",this.ad);KX(this).listen(this.D,"videoClicked",this.ad);KX(this).listen(this.D,"videoLearnMoreClicked",this.ad);KX(this).listen(this.D,"videoShareClicked",this.ad);
KX(this).listen(this.D,"videoShareShown",this.ad);KX(this).listen(this.D,"videoTitleClicked",this.ad);KX(this).listen(this.j,"timeUpdate",this.Aw);KX(this).listen(this.j,"volumeChange",this.dw);this.jf(a);d=SV(a,this.j);this.B.j=d;d=a.j;null!=d&&d instanceof FT&&(this.ze(d,yJ),this.ni(d),d=KX(this),vn(d,this.D,"error",this.bw,this),vn(d,this.D,"mediaLoadTimeout",this.cw,this));xY(this,a);XT(a)&&(this.D.F=30);this.j.Rk(yY(this,a));this.j.load(b,c)}};
f.$z=function(a,b,c){this.V||(this.V=!0,this.ra("contentPauseRequested"));if(cT(41351068)&&(this.o.Eg(),"4.4.4"==(ad?gL(bL):""))){tY.prototype.lu.call(this,a,b,c);return}this.lu(a,b,c)};
f.lu=function(a,b,c){this.N=!0;this.PB(a,b,c);this.setVolume(this.P);this.A&&(B(C(zY(a)))?(b=this.A,null!=b.C&&(b.o.Aa(b.C,"click",b.Mk),wg(b.C,"cursor","default"))):(b=this.A,null!=b.C&&(b.o.listen(b.C,"click",b.Mk),wg(b.C,"cursor","pointer"))),b=a.j.ca,mb(b)||jY(this.A,b),this.A.show());cT(41351068)||this.o.Eg();try{LX(this,a)}catch(d){AY(this,hK,d);return}uR.getInstance().end("pi");uR.getInstance().start("bt");this.j.play()};function BY(a,b,c,d){b=kS(b.j,c);mb(b)||(a[d]=b[0].j)}
function CY(a,b,c){b=c.getExtension(b);null!=b&&(BY(a,b,"annotation_click","cta_annotation_clicked"),BY(a,b,"annotation_close","cta_annotation_closed"),BY(a,b,"annotation_start","cta_annotation_shown"))}function yY(a,b){var c=oU(b)&&!b.G?gU(b):null,d=XT(b)&&!ZT(b),e=null!=a.A&&a.k.Nk&&a.A.j.o,g=b.o,h=WT(b),k;a.A?(k={},CY(k,"AdSense",b),CY(k,"dart",b),CY(k,"DFP",b)):k=null;return new oQ(h,c,k,e,d,a.k.loadVideoTimeout,g?g.tagForChildDirectedContent:!1,!1)}
function DY(a){var b=0;D(a.ads,function(a){!EY(a)||XK()&&0!=b||b++},a);var c=1;D(a.ads,function(a){var e=a.B;e.o=b;EY(a)&&(e.j=c,e.A=c,c++)},a)}function EY(a){a=a.j;return null!=a&&a instanceof FT}function FY(a){return hb(a.ads,function(a){return hb(GY(a),function(a){return!B(C(TP(a.k)))})},a)}function zY(a){var b=a.k;return b&&b.F&&(b=b.A,!mb(b)&&b[0]instanceof FT)?b[0].Rc():uU(a)}function GY(a){var b=a.k;if(b&&b.F&&(b=b.A,!mb(b)&&b[0]instanceof FT))return b[0].H;b=a.j;return EY(a)?b.H:[]}
function HY(a,b){if(kL.getInstance().j){var c=new dk,d=!1;D(GY(b),function(a){c.add(a.j);"VPAID"==a.o&&(d=!0)},a);var e=a.j.Im(),e={aid:gU(b),mt:c.La().join(","),smt:e.join(","),hvp:d,st:kR(b).join(",")};lL(kL.getInstance(),28,e)}}function IY(a,b,c){try{var d=E(a,function(a){return a.Yd}),e=E(a,function(a){return a.j}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Yd,selmt:null===c?"":c.j,nat:!1};lL(kL.getInstance(),22,g)}catch(h){}}f.mk=function(){DY(this);this.ra("loaded");this.T(new VX(IX(this)))};
f.Qc=function(a,b,c){tY.I.Qc.call(this,a,b,c);a=FY(this);this.j=this.o.mj(a);t:{if(JX(this)&&(b=this.G.getExtension("InfoCards"),b=null!=b?b.k:null,null!=b))break t;b=""}t:{if(JX(this)&&(c=this.G.getExtension("InfoCardsTracking"),c=null!=c?c.k:null,null!=c))break t;c=""}a&&(b||c)&&this.j.mr(b,c)};f.skip=function(){JX(this)&&XT(IX(this))&&(null!=this.A?this.A.skip():(OX(this,"skip"),JY(this)))};f.Rl=function(){this.gc("skipshown")};
f.start=function(){tY.I.start.call(this);uR.getInstance().start("pi");try{var a=IX(this),b;if(!EY(a))throw OK(DK);var c=a.j,d=c.ha;if(B(C(d))){var e=GY(a),g=this.j.Pq(e,this.k.bitrate,this.k.mimeTypes||[],null!=a&&(XK()||this.o.Ti()||this.o.ym()&&ad));IY(e,this.k.bitrate,g);if(null!=g)b=c.ja=g;else{try{HY(this,a)}catch(h){}throw OK(vK);}}else b=new aP("","",0,0,0,0,0,d,"");this.K=b;nn(w(tY.prototype.$z,this,a,this.K.k,this.K.j))}catch(k){KY(this,k),this.Vg(),JX(this)?(PK(OK,this,JK,k,void 0),this.start()):
(this.N?PK(OK,this,JK,k,void 0):(null!=this.C&&eR(this.C,bR()),QK(this,JK,k)),this.stop())}};f.gr=function(){MX(this);return this.j.Wg()?0:this.j.jd()};f.setVolume=function(a){MX(this);this.N?this.j.setVolume(a):this.P=a};
f.setMediaUrl=function(a){MX(this);var b;if(b=JX(this))b=null!=IX(this).o;if(b){b=IX(this);var c=b.o.location,d;if(d=null!=c)(d=UJ(PJ,c))||(d=df(new J(c)),d=null!=d?va(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?UJ(RJ,c):!1);(d||XK())&&null!=b.j&&b.j instanceof FT&&b.j.setMediaUrl(a)}};f.pause=function(){MX(this);this.j.pause()};f.resume=function(){MX(this);this.j.play()};
f.getRemainingTime=function(){MX(this);var a=this.j.fd(),b=this.j.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.Nf=function(){return this.j.Nf()};f.bw=function(){AY(this,JK,OK(JK,this.j.Kt()))};f.cw=function(){AY(this,yK,OK(yK,null,(this.k.loadVideoTimeout/1E3).toString()))};function AY(a,b,c){KY(a,c);a.Vg();JX(a)?(PK(OK,a,b,c,void 0),a.start()):(QK(a,b,c),a.stop())}function KY(a,b){var c=OK(JK,b),c=MV(c,IX(a),a.j),d=bU(IX(a));aK(d,c)}
function LY(a){if(YK.j){var b=zY(IX(a));null!=b&&XJ(b)}a.ra("click")}function xY(a,b){var c=b;do c.D.forEach(function(a){D(yJ,function(b){var c=kS(a.j,b);mb(c)||MY(this,b,c)},this);GX(this.B,a.D)},a),c=c.k;while(c)}function MY(a,b,c){D(c,function(a){lS(this.B.k,a.o,a.j)},a);NY(a,b)}function NY(a,b){Ob(BJ,b)&&vn(KX(a),a.D,b,a.ad,a)}
f.ad=function(a){switch(a.type){case "start":a=uR.getInstance();if(a.j){var b={};if(null!=this.K){var c=df(new J(this.K.k));if(null!=c){var c=$a(c,".",10),d=c.length;2<=d&&(b.dn=c[d-2]+"."+c[d-1])}b.br=this.K.Vd;b.mt=this.K.j}a.end("bt",b)}a=uR.getInstance();a.j&&(b=vR(a,"ff",a.o),YJ(b),a.o=0);this.ra("start");break;case "impression":this.ra("impression");break;case "pause":this.ra("pause");break;case "resume":this.ra("resume");break;case "firstquartile":this.ra("firstquartile");break;case "midpoint":this.ra("midpoint");
break;case "thirdquartile":this.ra("thirdquartile");break;case "complete":this.ra("complete");vY(this);break;case "click":this.A&&this.A.j.k?this.j.Ug()?this.resume():this.pause():LY(this);break;case "engagedview":b=IX(this);a=b.J;ZT(b)&&!XK()&&!this.o.Ti()&&a&&(b=this.j.getCurrentTime(),c=this.j.fd(),d=new J("//s.youtube.com/s"),K(d,"ns","yt"),K(d,"el","adunit"),K(d,"docid",a),K(d,"eurl",document.URL),K(d,"len",c.toFixed(2)),K(d,"tv","1"),K(d,"ps","trueview-instream"),K(d,"st",b.toFixed(2)),K(d,
"et",b.toFixed(2)),K(d,"rt",b.toFixed(2)),YJ(d.toString()));this.ra("engagedview");break;case "videoAuthorIconClicked":OY(this);break;case "videoAuthorClicked":OY(this);break;case "videoClicked":this.ra("videoClicked");break;case "videoLearnMoreClicked":this.j.pause();LY(this);break;case "videoShareClicked":a=IX(this).K;null!=a&&(a=a.videoId,b=this.k.baseYouTubeUrl,B(C(a))?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"watch"),c=b.j,c.set("v",a),We(b,c),b.Of="action=share",a=b.toString()),null!=
a&&(XJ(a),a=PY(this),null!=a&&(a=bK(a,"sharebuttonclicked",void 0),YJ(a))));break;case "videoShareShown":a=PY(this);null!=a&&(a=bK(a,"sharebuttondisplayed",void 0),YJ(a));break;case "videoTitleClicked":a=IX(this);b=a.K;null!=b&&(a=VP(b.videoId,null!=pU(a),this.k.baseYouTubeUrl),null!==a&&(this.j.pause(),XJ(a)));break;case "skipshown":this.ra("skippableStateChanged");break;case "skip":JY(this)}};
function PY(a){var b=IX(a).getExtension("AdSense");if(!(b=null!=b?new J(b.k):null))t:{if(a=fU(IX(a)))if(a=DT(a,"start"),!mb(a)){b=new J(a[0].j);break t}b=null}return b}function JY(a){nn(function(){this.ra("skip");vY(this)},0,a)}f.jf=function(a){tY.I.jf.call(this,a);NY(this,"impression")};f.ze=function(a,b){tY.I.ze.call(this,a,b);D(b,function(a){NY(this,a)},this)};f.ni=function(a){tY.I.ni.call(this,a);a instanceof FT&&(a=GT(a),D(a.Ja(),function(a){NY(this,a)},this))};
f.getMediaUrl=function(){if(!JX(this))return null;var a=IX(this);if(!EY(a))throw OK(DK);a=a.j.H;return mb(a)?null:a[0].k};f.Aw=function(){var a=this.j.fd(),b=this.j.Or(),c=this.j.getCurrentTime(),d=0,e=0;JX(this)&&(e=IX(this),d=e.B.j,e=e.B.o);if(null!=this.A&&0<=a&&0<=c){var g;if(g=!this.R)g=3==IX(this).la;if(g){g=this.j.fd();var h=vU(IX(this));g=Math.abs(g-h);2<g&&(g=OK(CK,null,Number(g).toFixed(2)),g=MV(g,IX(this),this.j),h=bU(IX(this)),aK(h,g));this.R=!0}this.A.update(c,b,a,d,e)}};
f.dw=function(){var a=this.j.jd();a!=this.P&&(this.P=a,this.ra("volumeChange"),0==a&&this.ra("mute"))};
function wY(a,b){XX(b,function(a){a=new gT(a);yU(IX(this))==a.videoId&&(QY(this,a),!B(C(a.channelId))&&a.j&&ZX(a.channelId,function(a){a=new eT(a);if(null!=this.A){var b=this.A,c=a.k;b.j.R=!B(C(c));b.j.V=c;if(null!=b.F){var c="",h=sa("by {$userDisplayName}",{userDisplayName:""+b.j.V});Ud(b.F,(new BP(c+h,void 0)).getContent())}hY(b);b=this.A;c=a.j;b.j.O=!B(C(c));null!=b.D&&(h=Fd("img"),h.setAttribute("src",c),O(h,"videoAdUiAuthorIconImage"),b.D.appendChild(h),null!=b.B&&O(b.B,"videoAdUiTitleWithAuthorIcon"));
hY(b)}IX(this).H=a;this.ra("youTubeChannelMetadata");if(a=this.A)a=IX(this),b=a.K,a=XK()&&mb(lR(a))&&null!=a.H&&null!=b&&b.j;if(a){a=IX(this);KX(this).listen(window,"message",this.Hy);var b=IX(this),c=b.H.channelId,h=WT(b),k=this.k.contentId,l=this.k.baseYouTubeUrl,l=new J((null!=l?l:"//www.youtube.com/")+"ad_companion"),p=l.j;p.set("adformat",h);p.set("p",c);p.set("render","video_wall_companion");k&&p.set("content",k);c=new JU("1",new H(300,250),"IFrame",null,l.toString());c.zg(b);c.D=!0;a.C=[new AU(c,
[],null)];LX(this,a)}},this))},a)}f.Hy=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=IX(this);var c=encodeURIComponent(C(uU(a)))+","+encodeURIComponent(PY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=uU(a)?210:185}else"pause-video"==b.data&&this.pause()};
function QY(a,b){if(null!=a.A&&b.j){var c=a.A,d=b.title;c.j.B=!B(C(d));c.j.title=d;ic.test(hc(c.j.title,void 0));null!=c.B&&Ud(c.B,c.j.title);hY(c);c=a.A;if(null!=c.G){var c=c.G,d="",e=sa("Share");Ud(c,d+e)}}IX(a).K=b;a.ra("youTubeVideoMetadata")}function OY(a){var b;b=IX(a).H;if(null!=b){b=b.channelId;var c=a.k.baseYouTubeUrl;b=B(C(b))?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.j.pause(),XJ(b))}};function RY(a){this.j=a}f=RY.prototype;f.Sk=function(){return this.j.Sk()};f.Tk=function(){return this.j.Tk()};f.Jf=function(){return this.j.Jf()};f.mj=function(a){return this.j.mj(a)};f.un=function(){return this.j.un()};f.ym=function(){return this.j.ym()};f.Ti=function(){return this.j.Ti()};f.hide=t;f.Eg=t;f.xi=t;function SY(a,b,c,d,e,g,h){U.call(this);this.A=this.C=0;this.D=a;this.Jd=b;this.W=c;this.B=null;this.N=d;this.O=g;this.K=YK.k;this.j=null;this.U="normal";this.J=null;this.G=e;this.o=[];this.V=this.R=this.H=!1;this.P=h;TY(this)}A(SY,U);f=SY.prototype;f.init=function(a,b,c){UY(this,c);null==this.F&&(this.F=new sn(this),vn(this.F,this.N,"adsLoaderSdkAdLoaded",this.FF,this),vn(this.F,this.N,"adsLoaderSdkAdError",this.EF,this));VY(this)};
f.start=function(){this.H=!0;WY(this);0<this.o.length?XY(this):("always"==YK.k&&null!=this.P&&eR(this.P,bR()),PK(MK,this,mK,void 0,void 0),0==this.Jd&&this.T("contentResumeRequested"),YY(this))};f.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);this.G.hide();ZY(this);YK.k=this.K;this.H=!1};f.getCurrentAd=function(){return this.A<this.o.length?this.o[this.A].j[0]:null};f.mb=function(){return this.H};f.pause=function(){null!=this.j&&this.j.pause()};
f.resume=function(){null!=this.j&&this.j.resume()};f.skip=function(){null!=this.j&&this.j.skip()};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.J=a,null!=this.j&&this.j.setVolume(this.J))};function UY(a,b){null!=b&&(a.U=b);null!=a.j&&(a.j.Zj(b),a.j.Hh())}function TY(a){D(a.D,function(a){a=new J(a.o.adTagUrl);var c=kf(a,"max_ad_duration");n(c)||kf(a,"pmxd")})}
f.FF=function(a){YK.k=this.K;var b=a.C;mb(b)||(a=a.B,a.j&&D(b,function(a){a.ja=!1},this),ob(this.o,new TR(b,a.j,a.k)));this.C++;VY(this)};f.EF=function(a){a=a.o;YK.k=this.K;a.getMessage();PK(MK,this,mK,void 0,void 0);this.C++;VY(this)};function VY(a){a.C<a.D.length&&null!=a.D[a.C]&&!(2<=a.o.length-a.A)?$Y(a):a.R||(a.T("adBreakInitialized"),a.R=!0)}function $Y(a){var b=a.D[a.C];YK.k="on_master_ad";qX(a.N,b.o,b)}
function WY(a){null==a.Jd||hb(a.o,function(a){return!a.k})||(a.o=fb(a.o,function(a){return!(a.k&&!a.o)}))}
function XY(a){if(a.A<a.o.length){var b=a.o[a.A];ZY(a);try{var c=b.j,b=null;if(VT(c[0]))a.O.qp&&(c=wb(c,0,1)),b=new tY(c);else{var d=c[0];if(null!=d&&nU(d,"nonlinear"))b=new PX(c);else throw Error("No valid creative type found.");}b.C=a.P;b.Qc(new RY(a.G),{currentTime:0},a.O);a.j=b;if(null==a.j)throw Error("The current ads manager is not defined");null!=a.k&&(a.k.dispose(),a.k=null);a.k=new sn(a);var e=a.j;vn(a.k,e,"adError",a.gx,a);vn(a.k,e,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.hx,a);a.k.listen(e,["allAdsCompleted"],t);vn(a.k,e,"contentPauseRequested",a.bx,a);vn(a.k,e,"contentResumeRequested",a.fx,a);if(aZ(a.j)){var g;g=fU(IX(a.j)).ia;g=0<g?g:15;null!=a.B&&a.B.dispose();a.B=new ln(1E3*g);yn(a.k,a.B,"tick",a.ix,a)}a.j.init(a.U);null!=a.J&&a.j.setVolume(a.J);if(aZ(a.j))a.T("contentResumeRequested"),a.G.hide(),a.G.xi(),a.j.start(),null!=a.B&&a.B.start();else{var h=a.j;if(null!=h&&h instanceof tY)a.G.Eg(),a.j.start();else throw Error("Unknown ads manager type.");}}catch(k){a.A++,
XY(a)}a.C<a.D.length&&null!=a.D[a.C]&&$Y(a)}else a.T("contentResumeRequested"),YY(a)}function ZY(a){null!=a.B&&(a.B.dispose(),a.B=null);null!=a.k&&(a.k.dispose(),a.k=null);null!=a.j&&(a.j.destroy(),a.j=null)}f.ix=function(){ZY(this);YY(this)};f.gx=function(){this.A++;XY(this)};f.fx=function(){this.A++;XY(this)};f.bx=function(){this.V||(this.T("contentPauseRequested"),this.V=!0)};function aZ(a){return null!=a&&a instanceof PX}function YY(a){a.H=!1;a.T("allAdsCompleted")}
f.hx=function(a){bZ(this,a.type,a.getAd());this.T(a)};function bZ(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;D(a.o,function(a,b){var g=a.j;db(g,c);d+=g.length;b<this.A&&(e+=g.length)},a);b=c.B;var g=e+b.A;b.o=d+(a.D.length-a.C);b.j=g;b.k=a.W;b.B=a.Jd}};function cZ(a){dm.call(this,a);this.o=null}A(cZ,dm);function dZ(a,b,c){U.call(this);this.k=a;this.j=[];this.C=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.F=null!=c&&ha(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.o=null;this.A=!1;eZ(this,b)}A(dZ,U);function fZ(a){this.j=a;this.o=this.k=!1}function gZ(a){null!=a.o&&(a.o.dispose(),a.o=null);a.k.stop();a.A=!1}function hZ(a){if(a.A){var b=F(a.j,function(a){return-1==a.j},a);null!=b&&iZ(a,!0,b)}}
function eZ(a,b){D(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Fb(this.j,new fZ(a),function(a,b){return zb(a.j,b.j)})},a)}dZ.prototype.B=function(){if(this.A){var a=this.k.currentTime;if(isNaN(a)||0>a)jZ(this);else{var b=kZ(this,a);this.C?D(b,function(a){iZ(this,!0,a)},this):iZ(this,!0,bb(b));iZ(this,!1,lZ(this,a))}}};function kZ(a,b){for(var c=[],d=0;d<a.j.length;d++){var e=a.j[d];-1!=e.j&&e.j<=b&&ob(c,e)}return c}
function lZ(a,b){for(var c=0;c<a.j.length;c++){var d=a.j[c];if(-1!=d.j&&b>=d.j-a.F&&b<d.j&&!a.j[c].k)return d}return null}dZ.prototype.D=function(){jZ(this)};function jZ(a){a.T(new cZ("contentTrackingError"))}function iZ(a,b,c){if(null!=c){if(!c.k){var d=new cZ("requestAds");d.o=c.j;a.T(d);c.k=!0}b&&!c.o&&(b=new cZ("playAds"),b.o=c.j,a.T(b),c.o=!0)}};function mZ(a,b){R.call(this);this.o=a;this.k=-1;this.j=b}A(mZ,R);function nZ(a,b){if(0==b.Jd||0>=a.j||0>=a.k)return!1;var c=z()/1E3,d=b.Jd-a.o.currentTime;0<d&&(c+=d);return c-a.k<=a.j};function rX(a,b){HX.call(this,[]);this.P=a;this.H=new oe;this.A=this.j=null;this.W=new To;this.D=null;this.N=b;this.U=this.V=!1;this.K=null;this.$=this.ca=-1;this.R=null}A(rX,HX);f=rX.prototype;
f.Qc=function(a,b,c){null!=this.A&&(gZ(this.A),this.A.dispose(),this.A=null);rX.I.Qc.call(this,a,b,c);c=this.P.j.Ja();b=new xQ(b);this.A=new dZ(b,c,{prefetch:4});D(c,function(b,c){if(isNaN(b))throw MK(fK,null,"timeOffset",b+"");var g=ha(b)&&!isNaN(b)?this.P.j.get(b,[]):[];if(!mb(g)){g=new SY(g,b,0==b||-1==b?b:c,this.N,a,this.k,this.C);if(qe(this.H,b))throw MK(rK,null,"Multiple ad breaks cannot share same ad play time.");this.H.set(b,g)}},this);this.K=bb(c);hb(c,function(a){if(-1==a)return this.K=
a,!0;this.K=this.K<a?a:this.K;return!1},this)};
f.init=function(a){rX.I.init.call(this,a);null!=this.A&&(oZ(this),a=KX(this),vn(a,this.A,"requestAds",this,this),vn(a,this.A,"playAds",this,this),vn(a,this.A,"contentTrackingError",this,this),vn(a,this.A,"adBreakReady",this.Fy,this),vn(a,this.N,"contentComplete",this.Gy,this),this.N.j=!1,a=this.A,a.A||(null==a.o&&(a.o=new sn(a)),a.o.listen(a.k,"currentTimeUpdate",a.B,!1),a.o.listen(a.k,"contentWrapperError",a.D,!1)),a.k.start(),a.A=!0,this.A.B(),a=ha(0)&&!isNaN(0)?this.P.j.get(0,[]):[],mb(a)&&this.ra("contentResumeRequested"))};
f.mk=function(){this.Ie();this.T(new VX(null))};f.destroy=function(){this.dispose()};f.L=function(){this.N.j=!0;if(0<this.H.Qa()){var a=this.H.La();D(a,this.Cj,this);this.H.clear()}oZ(this);pZ(this);null!=this.o&&(this.o.hide(),this.o=null);rX.I.L.call(this)};f.start=function(){rX.I.start.call(this)};f.stop=function(){null!=this.j&&this.j.destroy()};f.pause=function(){null!=this.j&&this.j.pause()};f.resume=function(){null!=this.j&&this.j.resume()};f.skip=function(){null!=this.j&&this.j.skip()};
f.setVolume=function(a){rX.I.setVolume.call(this,a);null!=this.j&&this.j.setVolume(a)};f.Hh=function(){rX.I.Hh.call(this);var a=xd(window);this.ca=a.width;this.$=a.height;null!=this.j&&UY(this.j,this.J)};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.Ie=function(){return this.P.j.Ja()};f.getCurrentAd=function(){return null!=this.j?this.j.getCurrentAd():null};f.ir=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(Vo(this.W,a),qZ(this))};
function oZ(a){null!=a.F&&(a.F.dispose(),a.F=null);a.V=!1;null!=a.A&&gZ(a.A)}
function qZ(a){if(null==a.D){var b=Wo(a.W);if(null!=b){a.D=b;var c=a.H.get(a.D.o);null==c?(a.D=null,qZ(a)):"requestAds"!=b.type&&"playAds"!=b.type?(a.D=null,qZ(a)):null!=a.R&&nZ(a.R,c)?(a.D=null,qZ(a)):"requestAds"==b.type?(b=KX(a),vn(b,c,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),a.T,a),vn(b,c,"allAdsCompleted",a.Tr,a),vn(b,c,"contentPauseRequested",a.Rr,a),vn(b,c,"contentResumeRequested",a.Sr,a),vn(b,c,"adBreakInitialized",
a.Ur,a),c.init(a.ca,a.$,a.J)):"playAds"==b.type&&(null!=a.j&&a.j.mb()&&a.Cj(a.j),a.j=c,a.j.setVolume(a.volume),UY(a.j,a.J),a.j.start())}}}
f.Cj=function(a){a.destroy();this.H.remove(a.Jd);this.j=null;null!=this.F&&(this.F.Aa(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.T,!1,this),this.F.Aa(a,"allAdsCompleted",this.Tr,!1,this),this.F.Aa(a,"contentPauseRequested",this.Rr,!1,this),this.F.Aa(a,"contentResumeRequested",this.Sr,!1,this),this.F.Aa(a,"adBreakInitialized",this.Ur,!1,this))};
f.Gy=function(a){this.V=!0;-1==this.K?a.A=!1:XK()&&0!=this.H.La().length||rZ(this);hZ(this.A)};f.Fy=function(a){var b=a.o;-1==b?nn(function(){var a=this.H.get(b);a&&this.Cj(a);XK()&&0!=this.H.La().length||rZ(this)},500,this):0==b&&nn(function(){this.ra("contentResumeRequested")},100,this);this.T(new AJ("adBreakReady",null,{pH:b}))};f.Tr=function(a){this.Cj(a.target);(0==this.H.La().length||!XK()&&this.V)&&rZ(this);this.D=null;qZ(this)};
function rZ(a){a.U||(a.U=!0,a.N.j=!0,a.ra("allAdsCompleted"),-1==a.K&&pZ(a))}function pZ(a){HQ.clear();null!=a.C&&(a=a.C.Ce(),null!=a&&WQ(a,HQ.j))}f.Rr=function(){var a=this.A;a.k.stop();a.A=!1;this.ra("contentPauseRequested")};f.Sr=function(){this.ra("contentResumeRequested");if(!this.U){var a=this.A;a.k.start();a.A=!0}this.D=null};f.Ur=function(){this.D=null;qZ(this)};f.ra=function(a){var b=null;null!=this.j&&(b=this.j.getCurrentAd());this.T(new AJ(a,b))};
f.Vq=function(a,b){return this.R=new mZ(a,b)};function sZ(a){HX.call(this,a);this.W=this.V=this.P=!1;this.N=[];this.U=Va();this.j=null;this.A=!0;this.R=-1;this.K=1}A(sZ,HX);f=sZ.prototype;
f.init=function(a){sZ.I.init.call(this,a);a=wU(IX(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.k.contentId&&(a=Qe(a,"v",this.k.contentId))}a=C(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Ib&&Re(c,"https");a=We(c,a||"",void 0).toString()}this.D=I("iframe",{src:WJ(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
KX(this).listen(window,"message",this.dE);KX(this).listen(this.D,"load",this.bE);KX(this).listen(this.D,"error",this.cE);this.o.Jf().appendChild(this.D)};f.Qc=function(a,b,c){sZ.I.Qc.call(this,a,b,c);this.A=fU(IX(this))instanceof FT;this.j=a.mj(!1);KX(this).listen(this.j,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.PD)};f.stop=function(){this.o.hide();sZ.I.stop.call(this)};
f.start=function(){sZ.I.start.call(this);var a=IX(this),b=SV(a,this.j);this.B.j=b;if(b=a.j)this.jf(a),this.ze(b,yJ),this.ni(b);this.j.mi();this.o.xi();this.D.style.opacity=1;this.W=!0;this.A&&this.ra("contentPauseRequested");tZ(this)};f.pause=function(){uZ(this,"pauseAd")};f.resume=function(){uZ(this,"resumeAd")};f.setVolume=function(a){sZ.I.setVolume.call(this,a);uZ(this,"setAdVolume",{value:a})};
f.L=function(){var a=this.o.Jf();null!=a&&Jd(a);this.A&&this.ra("contentResumeRequested");this.ra("allAdsCompleted");this.P=!1;this.N=[];sZ.I.L.call(this)};f.mk=function(){};
f.bE=function(){var a=this.j.Im();mb(a)&&(a=this.k.mimeTypes);vZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=dU(IX(this)),b=C(uU(IX(this))),b={desiredBitrate:this.k.bitrate,creativeData:a,viewMode:this.J,clickThroughUrl:b};wU(IX(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.k.surveyCreativeData&&(b.creativeData=this.k.surveyCreativeData);vZ(this,"initAd",b);D(this.N,function(a){vZ(this,a.type,a.params)},
this);this.P=!0;this.N=[]};function uZ(a,b,c){a.P?vZ(a,b,c):a.N.push({type:b,params:c})}function vZ(a,b,c){null!=a.D?(null!=c||(c={}),c.session=a.U,c.type=b,a.D.contentWindow.postMessage(fg(c),"*")):(wZ(a,LK,null),a.stop())}
f.dE=function(a){a=a.j;if(a.source==this.D.contentWindow&&(a=dg(a.data),a.session==this.U&&v(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.o.Eg();this.j.getVideoUrl()!=a.src&&this.j.load(a.src,a.mimetype);this.j.play();break;case "pause":this.j.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.A||(on(this.R),ha(a)&&-1!=a||(a=30),this.R=nn(this.JB,1E3*a,this));break;case "AdClickThru":OX(this,"click");this.ra("click");break;case "AdError":wZ(this,LK,null);this.stop();
break;case "AdExpandedChange":this.ra("expandedChanged");break;case "AdImpression":this.ra("impression");break;case "AdLinearChange":a=a.isLinear;!this.A&&a?(this.ra("contentPauseRequested"),on(this.R)):!a&&this.A&&(this.ra("contentResumeRequested"),this.A=a,uZ(this,"getAdRemainingTime"));this.A=a;break;case "AdLoaded":this.V=!0;tZ(this);this.gc("loaded");break;case "AdPaused":this.gc("pause");break;case "AdPlaying":this.gc("resume");break;case "AdRemainingTimeChange":this.A||uZ(this,"getAdRemainingTime");
break;case "AdSkipped":this.gc("skip");break;case "AdStarted":OX(this,"impression");OX(this,"creativeview");this.ra("start");break;case "AdStopped":OX(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.A?OX(this,"acceptinvitationlinear"):OX(this,"acceptinvitation");break;case "AdUserMinimize":OX(this,"collapse");break;case "AdUserClose":this.gc("userClose");break;case "AdVideoComplete":this.gc("complete");break;case "AdVideoFirstQuartile":this.gc("firstquartile");break;case "AdVideoMidpoint":this.gc("midpoint");
break;case "AdVideoStart":OX(this,"start");break;case "AdVideoThirdQuartile":this.gc("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.K&&this.ra("volumeChange");0==a&&0!=this.K?(OX(this,"mute"),this.ra("mute")):0==this.K&&0!=a&&OX(this,"unmute");this.K=a;this.j.setVolume(a);break;case "Ping":YJ(a.url)}};f.cE=function(a){wZ(this,sK,a);this.stop()};function wZ(a,b,c){var d=OK(b,c),d=MV(d,IX(a)),e=bU(IX(a));aK(e,d);QK(a,b,c)}
f.PD=function(a){switch(a.type){case "timeUpdate":a=this.j.fd();var b=this.j.getCurrentTime();vZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":xZ(this,"ended");break;case "mediaLoadTimeout":xZ(this,"stalled");break;default:xZ(this,a.type)}};function xZ(a,b){vZ(a,"wrapperCall",{messageType:b})}function tZ(a){a.V&&a.W&&(uZ(a,"startAd"),a.A||uZ(a,"getAdRemainingTime"))}f.JB=function(){uZ(this,"stopAd")};function yZ(){}function tX(a){if(!mb(a)){var b=a[0],c=xU(b)&&XK();switch(null!=wU(b)&&c?"vpaid":oU(b)&&nU(b,"nonlinear")?"overlay":nU(b,"linear")?"video":nU(b,"nonlinear")?"overlay":null){case "overlay":return oU(b)?new UX(a):new PX(a);case "video":return new tY(a);case "vpaid":return new sZ(a)}}return null};function zZ(a){U.call(this);this.k=a;a=new dR(new NQ);this.j=new mX(new yZ,a,HQ);this.j.listen("adsManagerLoaded",this.T,!1,this);this.j.listen("adError",this.T,!1,this);this.j.listen("adLoadError",this.T,!1,this)}A(zZ,U);function AZ(a,b,c){var d;try{d=window.top.location.href}catch(e){d=window.location.href}b.location=d;b.referrer=window.document.referrer;b.sc=vQ(b.adTagUrl,b.linearAdSlotWidth,b.linearAdSlotHeight,b.nonLinearAdSlotWidth,b.nonLinearAdSlotHeight,a.k.A);b.Um=a.k.F;nX(a.j,b,c)}
zZ.prototype.L=function(){null!=this.j&&(this.j.Aa("adsManagerLoaded",this.T),this.j.Aa("adError",this.T),this.j.Aa("adLoadError",this.T),this.j=null);zZ.I.L.call(this)};function BZ(a,b){yr.call(this,a,b)}A(BZ,yr);f=BZ.prototype;f.Qm=function(){Gq(this.app,!0,this.playerType);this.app.Ed(this.playerType)};f.pauseVideo=function(){this.app.pauseVideo(this.playerType)};f.Au=function(a,b,c){Gq(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.ff(d.getCurrentTime()+a,b,c,e)};f.gh=function(a,b){Gq(this.app,!0,this.playerType);this.app.ff(a,b,void 0,this.playerType)};f.Sl=function(){Rq(this.app,this.playerType)};function CZ(a){this.app=a;Is.call(this,a.lc)}A(CZ,Is);CZ.prototype.getAdState=function(){return-1};CZ.prototype.subscribe=function(a,b,c){return CZ.I.subscribe.call(this,a,b,c)};function DZ(a,b,c){this.A=a;this.j=b||"";this.k=c||null;this.o=!1}function EZ(a,b,c){var d;if(d=Dx("grc",a.j))Fx(a.j),d=!0;d?(a.span(b,"grc",c),a.A.experiments.k&&!Dx(b,a.j)&&zx(b,c)):Dx(b,a.j)||(zx(b,c,a.j),a.A.experiments.k&&"new_playback"==a.j&&zx(b,c))}DZ.prototype.info=function(a,b){Ex(a,b,this.j)};DZ.prototype.span=function(a,b,c){var d=this.j,e=Fx(d).span,d=Ax(d);b in d&&(e[a]=(c||z())-d[b])};
function FZ(a){var b=a.A;if(!b.$||"detailpage"!=b.da&&"leanback"!=b.da&&("embedded"!=b.da||!b.W&&!b.experiments.D)||a.o)return NaN;a.o=!0;If("TIMING_ACTION")||Gf("TIMING_ACTION",a.A.na);if(a.k){var b=a.k.A,c;for(c in b)zx(c,b[c],a.j);c=a.k.o;for(var d in c)Ex(d,c[d],a.j)}if(d=rh("visibilityState",document)){c=-1;switch(d){case "hidden":c=0;break;case "visible":c=1;break;case "prerender":c=2;break;case "unloaded":c=3}Ex("yt_vis",c,a.j)}Ex("yt_pt","html5",a.j);if(Dx("_start",a.j))return d=Cx(a.j),a.A.experiments.k&&
"new_playback"==a.j&&(a.j="",a.o=!1,FZ(a),a.j="new_playback"),d;a.k&&(a=a.k,a.A={},a.o={});return NaN}vg("hidden",window.document);function GZ(a,b){a=!!a;q("_lactCookie",a,window);if(null==r("_lact",window)){if(a&&b){var c;c=kk.get("ACTIVITY","-1");q("_lact",parseInt(c,10),window)}else q("_lact",-1,window),Dr();Q(document,"keypress",Dr);Q(document,"mousedown",Dr);Q(document,"mouseup",Dr)}}function Dr(){var a=r("_lact",window);null==a&&(GZ(),a=r("_lact",window));var b=z();q("_lact",b,window);r("_lactCookie",window)&&1E3<=b-a&&lk("ACTIVITY",""+b)}function HZ(){var a=r("_lact",window);return null==a?-1:Math.max(z()-a,0)};var IZ={IJ:"0",LJ:"1",IG:"2",CJ:"3"};var JZ={dK:"red",WHITE:"white",RH:"blue"};function KZ(a){this.experimentIds=(a||"").split(",");var b={};D(this.experimentIds,function(a){b[a]=!0});this.G=!!b["913424"];this.B=!!b["932250"];this.la=!!b["945066"];this.D=!!b["945069"];this.ia=!!b["945074"];this.U=!!b["945089"];this.X=!!b["945090"];this.ja=!!b["934048"];this.ha=!!b["945093"];this.ca=!!b["945094"];this.oa=!!b["945097"];this.ma=!!b["945099"];this.Da=!!b["927845"];this.A=!!b["936926"];this.F=!!b["913430"];this.W=!!b["927877"];this.o=!!b["913436"]||!!b["934933"]||!!b["934934"]||
!!b["934936"]||!!b["934937"]||!!b["934938"]||!!b["934939"]||!!b["934941"]||!!b["934942"]||!!b["934943"]||!!b["934944"]||!!b["934945"]||!!b["934946"]||!!b["934947"]||!!b["934948"]||!!b["934949"]||!!b["934950"]||!!b["934951"]||!!b["934952"]||!!b["934953"]||!!b["934954"]||!!b["913444"]||!!b["937225"]||!!b["937226"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"];this.j=!!b["934947"]||!!b["913444"]||
!!b["937226"]||!!b["934953"]||!!b["934954"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"];this.K=!!b["953500"];this.$=!!b["941004"];this.na=!!b["951502"];this.spherical=!!b["951503"];this.C=!!b["951506"];this.V=!!b["930676"]||!!b["930677"];this.R=!!b["943603"]||!!b["943604"]||!!b["943605"]||!!b["943606"]||!!b["943607"]||!!b["943610"]||!!b["900718"];this.pv=!!b["943610"];this.Ak=!!b["943605"];this.qv=
!!b["943606"];this.P=!!b["909722"];this.N=!!b["939977"]||!!b["930678"];this.H=!!b["957105"];this.J=!!b["959800"];this.Ra=!!b["937222"];this.O=!!b["939945"];this.k=!!b["922317"]};var LZ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},MZ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},NZ="blogger books docs google-live play picasaweb".split(" ");
function OZ(a){R.call(this);a=$b(a);this.B={};this.experiments=new KZ(a.fexp);this.xa=a.forced_experiments||null;this.origin=vI(this.origin,a.origin);this.G=vI("",a.loaderUrl);var b=document.location.toString();this.Mb=(this.H=!!b&&-1!=b.search(uf))?vI("",a.loaderUrl):document.location.toString();"adunit"==a.el?Wf(this.G)?this.da="adunit":this.da="embedded":this.da=a.el||this.da;GZ("detailpage"==this.da,a.autonav);var b=null,c=a.ps;!c||G(NZ,c)&&!this.zb()||(b=c);this.k=b;switch(this.da){case "adunit":this.Do=
!1;break;case "detailpage":this.nc=!0;break;case "profilepage":this.yg=!0}switch(this.k){case "blazer":this.nc=this.ii=!1;this.$=!0;break;case "blogger":this.gf=this.nc=this.zc=this.mc=this.lf=this.we=!1;this.Oc="bl";break;case "books":this.zc=this.mc=this.lf=this.we=!1;this.nc=!0;this.gf=!1;this.Oc="gb";break;case "docs":this.gf=this.nc=this.zc=this.mc=this.lf=this.we=!1;this.Oc="gd";break;case "google-live":this.gf=this.nc=this.zc=this.mc=this.lf=this.we=!1;this.Oc="gl";break;case "play":this.nc=
this.zc=!1;this.Oc="gp";break;case "native":this.ii=!1;break;case "picasaweb":this.gf=this.nc=this.zc=this.mc=this.lf=this.we=!1;this.Oc="pw";break;case "touch":this.ii=!1}this.Nb=this.zb()&&G(NZ,this.k);this.o={};this.o.c="web";this.o.cver="html5";this.o.cplayer="UNIPLAYER";this.K=!(!Wt().defaultPlaybackRate||Tc&&!cs("chrome")||Yh||Xh||cs("android")||cs("silk"));a.use_media_volume?b=!1:(b=Wt(),c=b.muted,b.muted=!c,b=b.muted!=c);this.tb=b;this.Mc=Zh;this.te=(Yh||Xh||ai)&&"blazer"!=this.k&&!$D(this);
this.Ik=sI("adunit"!=this.da&&"detailpage"!=this.da&&!this.Nb,a.showinfo);this.isMobile=sI("blazer"==this.k,a.is_html5_mobile_device);this.J=sI(!1,a.playsinline);b=this.isMobile&&Pt&&2.3>=Ot;c=Xh&&!this.J||!b&&sI("native"==this.k,a.use_native_controls)?"3":"1";this.j="0"!=a.controls?c:"0";this.Nc=sI("blazer"==this.k||"touch"==this.k,a.use_tablet_controls);this.ma="1"!=this.j?"0":this.Nc?"blazer"==this.k?"3":"1":tI("2",a.autohide,IZ);this.color=tI("red",a.color,JZ);this.Ca="3"==this.j||sI(!1,a.modestbranding)&&
"red"==this.color;if(c=sI(!1,a.nologo))var c=this.H?this.G:document.location.toString(),d=!!c&&-1!=c.search(Cf),c=Uf(c)||d;this.ie=c;c=!this.Ca&&"1"==this.j;this.$c="embedded"==this.da&&!this.Ik&&!this.Nb&&!c&&!0;this.se=this.yc=b;this.C=!Xh;this.va=this.H||!1;if(this.experiments.V)b="detailpage"!=this.da?this.Mb.substring(0,128):"";else if(b=vI("",a.eurl),"detailpage"==this.da||"unknown"==b||"undefined"==b)b="";this.F=b;this.ua=!!a.disableCast;this.Ba=a.videostats_playback_base_url&&a.videostats_playback_base_url.split("/")[2];
this.autoplay=sI(!1,a.autoplay)&&"blazer"!=this.k;this.kb=sI(!1,a.autoplayoverride);this.Ia=this.autoplay||"detailpage"==this.da;b=this.kb||!this.isMobile&&!cs("nintendo wiiu");this.W=this.Ia&&b;b="detailpage"==this.da&&"blazer"==this.k;this.ia=sI(!0,a.fs)&&(b||Hh());this.ke=!!a.airplay_data_id;this.A=((b=(b=a.BASE_YT_URL)&&b.match(sf))?b[0]:"")||"/";this.rb=((b=a.gdatabaseurl)&&-1!=b.search(vf)?a.gdatabaseurl:null)||"//gdata.youtube.com/";this.Wa=vI(this.Wa,a.authuser);this.N=vI(this.N,a.content_v);
this.Jk=sI(this.Jk,a.disablekb);this.oi=sI(this.oi,a.edu_mode);this.R=vI(this.R,a.framer);this.la=tI(this.la,a.iv_load_policy,Uz);this.P=vI(this.P,a.hl);this.Uo=sI(this.Uo,a.bwlogging);this.Fd=sI(this.Fd,a.player_wide);this.fi=sI(this.fi,a.privembed);this.V=uI(this.V,a.live_chunk_readahead||a.hls_live_chunk_readahead);this.Wo=sI(this.Wo,a.loop);this.Vo=sI(this.Vo,a.on3g);this.pageId=vI(this.pageId,a.pageid);this.Pk=zI(this.Pk,a.vq);this.pk=vI(this.pk,a.playerapiid);this.fb=vI(this.fb,a.cr);this.mc=
sI(this.mc,a.logwatch);this.Kk=sI(this.Kk,a.canplaylive);this.zc=sI(this.zc,a.rel);this.nc=sI(this.nc,a.enablesizebutton);this.hi=sI(this.hi,a.ss);this.theme=vI(this.theme,a.theme);this.zb()&&(this.Bk=sI(this.Bk,a.retryneterr));"3"==this.j&&(this.la=3);this.useSsl=sI(this.useSsl,a.ssl);if(this.ai=sI(this.ai,a.ssl_stream))this.useSsl=!0;this.Nc&&(this.theme="dark");b=this.xg;if(c=a.video_container_override)d=c.split("x"),2==d.length&&(c=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(c)||isNaN(d)||0>=
c*d?b:new H(c,d));this.xg=b;this.qe=vI(this.qe,a.attrib);this.pe=vI(this.pe,a.sk);this.protocol=this.useSsl?"https":"http";this.ok=sI("0"!=this.j,a.store_user_volume);this.Hd=sI(this.Hd,a.use_media_volume);PZ(this,a);this.B=a}A(OZ,R);var QZ={SH:"cbrand",UH:"cbr",VH:"cbrver",XI:"c",ZI:"cver",YI:"cplayer",vJ:"cmodel",EJ:"cnetwork",OJ:"cos",PJ:"cosver",QJ:"cplatform"};f=OZ.prototype;f.mf=null;f.Wa="";f.Jk=!1;f.oi=!1;f.ii=!0;f.da="detailpage";f.Uo=!1;f.Za=!1;f.gs=!1;f.Fd=!1;f.we=!0;f.fi=!1;f.lf=!0;
f.rg=!1;f.Wo=!1;f.Pk=Ft;f.pk="";f.Vo=!1;f.pageId="";f.Bk=!1;f.mc=!1;f.Kk=!0;f.ok=!0;f.Hd=!1;f.Do=!0;f.zc=!0;f.yg=!1;f.nc=!1;f.gf=!0;f.hi=!1;f.useSsl=!1;f.ai=!1;f.re=null;f.xg=null;f.Gg=null;f.xb=null;f.Oc="yt";function cr(a,b){a.oa=b.get("d",a.oa);a.ca=b.get("f",a.ca)}
function PZ(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in LZ&&c in MZ?MZ[c]+"_"+LZ[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);d&&5==d.length&&(d=d[3],d=6==d||7==d||8==d||10==d,a.zb()||d)&&(a.D=c,a.B.adformat=b.adformat,d||(a.da="adunit"))}a.mf=(b&&b.adpings?sj(b.adpings):null)||a.mf;c=b.agcid;a.ib=c;a.B.agcid=c;c=b.feature;a.O=c;a.B.feature=c;c=b.referrer;a.referrer=c;a.B.referrer=c;a.searchQuery=b.q;for(var e in QZ)c=QZ[e],d=b[c],void 0!=d&&(a.o[c]=d);a.mc=sI(a.mc,b.logwatch);
a.userAge=uI(a.userAge,b.user_age);a.U=vI(a.U,b.user_display_image);Vf(a.U)||(a.U="");a.ja=vI(a.ja,b.user_display_name);a.cb=vI(a.cb,b.user_gender);a.X=vI(a.X,b.eventid);a.na=vI(a.na,b.csi_page_type);a.$=sI(a.$,b.enablecsi)}
function RZ(a,b,c){switch(b.X){case 38:return a=b.videoId.indexOf(":"),Ke("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.nz});case 30:return c="//docs.google.com/",a.A!=OZ.prototype.A&&(c=a.A),Ke(c+"get_video_info",{docid:b.videoId,authuser:b.Wa,authkey:b.$c,eurl:a.F});case 33:return Ke("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.ya,eurl:a.F,ps:a.k,el:a.da,hl:a.P,list:b.playlistId,
agcid:a.ib,sts:16451,lact:SZ(a)?HZ():"-1"};a.xa&&(d.forced_experiments=a.xa);b.F?d.vvt=b.F:b.C&&(d.access_token=b.C);a.D&&(d.adformat=a.D);b.oa&&(d.iv_load_policy=b.oa);b.xa&&(d.itct=b.xa);b.sg&&(d.autoplay="1");b.im&&(d.noiba="1");b.jm&&(d.mdx="1");b.ke&&(d.ytrcc=b.ke);b.km&&(d.utpsa="1");b.pe&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.na&&(d.ypc_preview="1");b.Cd&&(d.splay="1");a.N&&(d.content_v=a.N);b.hm&&(d.livemonitor=1);a.Wa&&(d.authuser=a.Wa);a.pageId&&(d.pageid=
a.pageId);a.X&&(d.ei=a.X);a.ai&&(d.ssl_stream="1");a.H&&(d.iframe="1");b.Th&&(d.tst=b.Th);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");ra(d,a.o);return Ke(a.A+"get_video_info",d)}}function TZ(a){return a.oi?"//s.youtubeeducation.com/":a.lf?a.Ba?"//"+a.Ba+"/":"//s.youtube.com/":"//video.google.com/"}function UZ(a){return a.referrer?a.referrer.slice(0,128):""}f.getVideoUrl=function(a,b,c){return YE(this,a.videoId,a.playlistId,b,c)};
function VZ(a){return"www.youtube-nocookie.com"==window.location.host||a.oi?"www.youtube.com":window.location.host}function YE(a,b,c,d,e){b={v:b,list:c};d&&ra(b,d);a=Ke(a.protocol+"://"+VZ(a)+"/watch",b);if(e){d="";d="!"=="#".charAt(1)?"#".substr(0,2):"#";b="#";"#"==b.charAt(0)&&(b="!"==b.charAt(1)?b.substr(2):b.substr(1));b=sj(b);for(var g in e)b[g]=e[g];e=d+Ie(b);a=a+e}return a}
function WZ(a,b){if("play"!=a.k)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.G,v:b.videoId,p:"movies_playback"};b.o&&(c.fmt=b.o.id);b.ya&&(c.cpn=b.ya);b.X&&(c.partnerid=b.X);return Ke("//support.google.com/googleplay/",c)}
function XZ(a){var b={};if(!a.xb)return b;a.xb.webkitDecodedFrameCount&&(b.hmewdfc=a.xb.webkitDecodedFrameCount,b.hmewdrop=a.xb.webkitDroppedFrameCount,b.hmewvdbc=a.xb.webkitVideoDecodedByteCount,b.hmewadbc=a.xb.webkitAudioDecodedByteCount);a.xb.mozParsedFrames&&(b.hmempf=a.xb.mozParsedFrames,b.hmemdf=a.xb.mozDecodedFrames,b.hmempresented=a.xb.mozPresentedFrames,b.hmempainted=a.xb.mozPaintedFrames,b.hmempaintdelay=a.xb.mozPaintDelay);return b}function bF(){return HZ()}
function SZ(a){return a.experiments.P?"detailpage"==a.da||"leanback"==a.da:!0}function mF(a){return"leanback"==a.da||a.Nb||!a.zc&&!a.yg?!1:!0}function tr(a){return"detailpage"!=a.da&&"embedded"!=a.da&&"profilepage"!=a.da?!1:!0}f.zb=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(tf))&&!this.H;return a&&this.H&&Uf(this.G)||b};function Oq(a){var b=null!=a.G&&0==a.G.search("^https?://www.youtube.com");return"detailpage"==a.da||"profilepage"==a.da||b}
function $D(a){return es()||"tv"==a.o.cplatform}f.L=function(){this.xb=null;OZ.I.L.call(this)};function YZ(a,b){this.j=a;this.k=b;this.o=1}function ZZ(a,b,c,d){d/=a.o;var e=DG(a.j)+1/EG(a.j),g;g=Math.max(.9*(d-3),CG(a.j)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.k.H,Math.min(a.k.N,c));a=Math.max(a.k.D,Math.ceil(a.k.H*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function $Z(a){var b=EG(a.j);a=CG(a.j)+1048576*DG(a.j);return b*Math.min(1,1048576/(b*a))}function a_(a){return $Z(a)/a.o};function b_(a,b,c){this.j=a;this.video=b;this.reason=c};function c_(a,b,c,d){this.N=a;this.P=b;this.F=c;this.D=d;this.o=this.G=this.j=null;this.B="i";this.J=-1;this.C=this.A=null;this.k=[];this.H=this.K=0;this.O=null}function d_(a,b,c){"m"==c&&Ht(a.j)&&!Ht(b)&&(c="a");if("m"==c&&Ht(b))return a.B=c,e_(a,b),f_(a),a.o=g_(a),new b_(h_(a),a.o,c);var d=a.j.equals(b);if("m"==a.B&&Ht(a.j)&&d)return null;"r"!=c||d||(a.J=-1);e_(a,b);b=g_(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new b_(h_(a),b,c)}a.B=c;return null}
function i_(a,b){j_(a);a.O=b;a.H=z();a.J=-1;e_(a,a.j)}function j_(a){return!!a.H&&9E4>=z()-a.H}function h_(a){k_(a);return a.A}function g_(a){k_(a);return a.C}function l_(a){var b=a.B;a.B="a";a.J=z();return new b_(a.G,a.o,b)}
function k_(a){if(Ht(a.j)||!(8E3>z()-a.J)){a.H&&!j_(a)&&(a.H=0,e_(a,a.j));f_(a);var b=a_(a.N);if(Ht(a.j))a.C=a.F.j[a.k[a.k.length-1].id];else{for(var c=Math.min(a.K,a.k.length-1),d=b/1.05-a.A.info.pa;0<c&&!(a.k[c].pa<=d);c--);for(b=b/1.15-a.A.info.pa;c<a.k.length-1&&!(a.k[c+1].pa>=b);c++);a.K=c;a.C=a.F.j[a.k[c].id]}}}
function e_(a,b){a.j=b;var c=a.D.k;if(!Ht(a.j)&&(c=fb(c,function(a){return a.pa>this.P.pa?!1:!this.F.j[a.id].B},a),j_(a))){var c=fb(c,function(a){return a.id!=this.O.id},a),d=fb(c,function(a){a=qt(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.D.k);c=fb(c,a.j.A,a.j);c.length||(c=[a.D.k[0]]);c.sort(function(a,b){return a.pa-b.pa});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(qb(c,d),d--):1.15*e.pa>g.pa&&(qb(c,d-1),d--)}a.k=c}
function m_(a){var b=F(a.D.j,function(a){return!!a.Te&&a.Te.isDefault}),b=b||a.D.j[0];a.A=a.F.j[b.id];f_(a)}function f_(a){if(!a.A.info.Te&&(a.A=a.F.j[a.D.j[0].id],1<a.D.j.length)){var b=!1;if(Ht(a.j))b=240>a.j.j;else{for(b=0;b+1<a.k.length&&"tiny"==a.k[b].video.quality;)b++;var c=a_(a.N)/1.15,b=a.A.info.pa+a.k[b].pa>c}b&&(a.A=a.F.j[a.D.j[1].id])}}
function n_(a){var b=a_(a.N)/1.05-a.A.info.pa,c=lb(a.k,function(a){return this.P.A&&this.P.A<Bt[a.video.quality]?!1:a.pa<b},a);0>c&&(c=0);a.K=c;a.C=a.F.j[a.k[c].id]};function o_(){this.j=this.k=!1}o_.prototype.start=function(){this.k=!0};function p_(a,b){this.G=a;this.o=b;this.pendingRequests_=[];this.j=[];this.A=this.k=null;this.B=0;this.pa=b.info.pa;this.D=this.F=!1;this.C=new o_}function q_(a,b){a.pendingRequests_.push(b);a.k=bb(b.info.j);a.B+=nH(b.info)}function r_(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.B-=nH(b.info);a.B+=bb(b.B).buffer.byteLength;D(b.B,a.J,a)}}
p_.prototype.J=function(a){if(4==a.info.type){var b=a.info.j.Gs(a);a.info==this.k&&(this.k=bb(b).info);D(b,this.J,this)}else 3==a.info.type&&this.j.push(a)};function s_(a){var b=qH(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function t_(a,b){if(a.F)return a.j[0].aa;var c=a.o.info.k,d=a.o.Ci();if(a.j[0].info.B>=b)return null;var e;for(e=1;e<a.j.length;e++){var g=a.j[e].buffer!=a.j[e-1].buffer;if(a.j[e].info.B>b||g||a.G.J)break}e--;var g=a.j[e].aa.end,h=a.j[e].info.D-b;if(d&&c&&0<=a.G.F&&h>a.G.F){c=Math.floor((b-a.j[e].info.B)/a.j[e].info.G*a.j[e].info.k);if(0==c)return null;g=a.j[e].aa.start+c-1}return new RG(a.j[0].j?0:a.j[0].aa.start,g)}
function u_(a,b){for(var c;a.j.length;){if(a.j[0].aa.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].aa.start+1,e=Math.min(e,c.info.k),g=new hH(c.info.type,c.info.j,c.info.aa,c.info.A,c.info.startTime,c.info.duration,c.info.o,e,!1);d=TG(c.aa.start,e);g=new KH(g,c.buffer,d,c.j);e=new hH(c.info.type,c.info.j,c.info.aa,c.info.A,c.info.startTime,c.info.duration,c.info.o+e,c.info.k-e,c.info.F);d=new RG(d.end+1,c.aa.end);d=[g,new KH(e,c.buffer,d,!1)];c=d[0];a.j[0]=d[1]}else c=a.j.shift();d=a;g=c.info;d.A=
g;d.F&&d.A.C&&(d.F=!1);d.pa=Math.max(d.pa,g.j.info.pa);if(c.aa.end==b.end)break}a.j.length&&c.buffer==a.j[0].buffer||(a.B-=c.buffer.byteLength)}function v_(a,b){var c=w_(a,b);if(0<=c)return c;a.k=a.o.Si(b).j[0];x_(a)&&(a.A=null);return a.k.startTime}
function y_(a,b){z_(a);if(a.o.info.video&&a.A&&!a.A.C&&b){var c=jb(a.j,function(a){return a.info.C});a.j=wb(a.j,0,c+1);a.F=!0}else a.j=[];if(a.j.length)for(a.B=a.j[0].buffer.byteLength,c=1;c<a.j.length;c++)a.j[c].buffer!=a.j[c-1].buffer&&(a.B+=a.j[c].buffer.byteLength);else a.B=0}function A_(a){a.C.k||a.C.start();y_(a,!1);x_(a)&&(a.A=null)}
function B_(a,b){for(var c=0;c<a.pendingRequests_.length&&b!==a.pendingRequests_[c];c++);if(c==a.pendingRequests_.length)b.dispose();else{for(;c<a.pendingRequests_.length;)a.H(a.pendingRequests_.pop());3==b.info.j[0].type?(c=b.info.j[0],c=new hH(c.type,c.j,c.aa,c.A,c.startTime,0,c.o,0,!1),a.k=c):a.k=null}}function C_(a){return hb(a.j,function(a){return a.info.C})}function x_(a){return!!a.A&&a.A.F}
function D_(a){var b=[];a.A&&b.push(a.A);D(a.j,function(a){b.push(a.info)});D(a.pendingRequests_,function(a){D(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.k&&a.k!=bb(b)&&b.push(a.k);return b}function E_(a){if(!a.k||!a.k.k)return!1;a=D_(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].B-a[b-1].D)))return!1;return!0}
function w_(a,b){if(E_(a)){var c;t:{c=D_(a);for(var d=0;d<c.length;d++)if(c[d].B<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function F_(a){return hb(a.pendingRequests_,function(a){return 3<=a.state})}function G_(a){return!(!a.k||!a.o.Sc()||a.k.j==a.o)}function H_(a){return G_(a)&&a.k.j.info.pa<a.o.info.pa}p_.prototype.H=function(a){a.dispose();this.B-=nH(a.info)};function z_(a){D(a.pendingRequests_,a.H,a);a.pendingRequests_=[];a.k=null}
function I_(a){return!!a.k&&a.k.A<a.o.index.Yg()};function J_(a,b,c){this.D=a;this.info=b;this.timing=c;this.state=1;this.j=this.B=null;this.F=this.A=this.G=0;this.o=NaN;this.C=this.k=this.H=null;this.J=0}J_.k=!1;J_.j=1E4;function K_(a){a.k?(a=a.k.j,LG(a),a=a.B):a="";return a}f=J_.prototype;f.getErrorCode=function(){return this.C};function L_(a){var b;b=a.timing;b={rt:((z()-b.o)/1E3).toFixed(2),lb:b.k,pt:(b.N/1E3).toFixed(2),pb:b.K};b.shost=K_(a);a.J&&(b.rc=a.J.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&M_(this);N_(this,2);var c;(c=!this.D.O)||(c=this.info.k,c=this.G>c.o&&1<=c.k);c?c=!1:(c=K_(this),c=ac(xG(this.timing.j.j,c)),c=2<=c.Id&&0==c.done&&(0<c.vp||0<c.gp));if(c||b&&2<=this.A){b=this.info.k;if(!(this.G<=b.o)){b.k++;b.o=fH-1;c=MG(b.j);var d=new J(c);d.ob.match("\\.googlevideo\\.com$")?(Se(d,"redirector.googlevideo.com"),c=d.toString()):d.ob.match("r[1-9].*\\.c\\.youtube\\.com$")?(Se(d,"www.youtube.com"),
c=d.toString()):c=Xf(c);b.j=new KG(c);b.j.set("cmo",encodeURIComponent("pf="+b.k))}this.A=0}else if(b){this.A++;a=J_.j*(.5+Math.random());1==this.A&&(a=2E3);M(w(this.dm,this),a);return}a?this.dm():M(w(this.dm,this),0)};
f.dm=function(){if(!this.fa()){this.G=fH++;this.k=FD(this.info);this.A&&this.k.set("playerretry",this.A.toString());var a=ED(this.k);this.j=new XMLHttpRequest;try{this.j.open("GET",a)}catch(b){this.C="net.ssl";N_(this,6);return}this.j.responseType="arraybuffer";this.j.withCredentials=!0;a=w(this.Pw,this);this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();this.F=0;var a=this.timing,c=K_(this);a.G=c;xG(a.j.j,c).Id+=1;a.o=z();a.C=a.o;a.k=0;a.H=!1;a.J=!1;a.B=0;a.F=
FG(a.j);O_(a);a.N=a.D-a.o;this.j.addEventListener("progress",w(this.Qw,this),!1);0<this.D.k&&(this.o=M(w(this.dp,this),this.D.k));this.k.get("itag");this.k.get("range");Math.round(this.info.j[0].B);Math.round(bb(this.info.j).D);z()}};f.Qw=function(a){if(!this.fa()){this.j&&(this.J=this.j.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:z();20>c-b.C||P_(b,c,a);b=this.timing;b.k>b.P&&8192<b.k&&3>this.state&&N_(this,3)}};
f.Pw=function(a){var b=this.j;if(!this.fa()&&a.target==b){this.o&&(N(this.o),this.o=NaN);this.J=b.status;a=!1;400<=b.status?(a=!0,this.C="net.badstatus"):null==b.response&&(a=!0,this.C="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)))&&-1!=c.search(Af))break t;c=""}if(c){var b=this.info.k,d=this.k;d.j===b.j&&(b.j=dH(d,c));N_(this,4)}else if(this.info.aa&&b.byteLength!=this.info.aa.length)a=!0,this.C="fmt.unparseable";else{c=this.info.j;
if(1==c.length&&!c[0].aa){var d=c[0],e=TG(0,b.byteLength),d=new hH(d.type,d.j,e,d.A,d.startTime,d.duration,d.o,e.length,d.F);c[0]=d}for(var d=[],e=0,g=!1,h=!1,k=0;k<c.length;k++){var l=c[k],p=b,u=TG(e,l.k),x=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.k):(g=new Uint8Array(b,e,e+l.k),p=(new Uint8Array(g)).buffer),u=TG(0,l.k),g=!0;else if(3==l.type||4==l.type)x=g&&!h,h=!0;d.push(new KH(l,p,u,x));e+=l.k}this.B=d;c=this.timing;d=z();b=b.byteLength;c.H||(c.H=!0,xG(c.j.j,c.G).done+=1,d=d>c.o&&4E12>d?d:z(),
P_(c,d,b),e=(d-c.o)/1E3,!c.J&&8192<=c.k&&zG(c.j,e,b),8192<=c.k&&(e=c.j,h=c.B,b=Math.max(b,8192),e.A.k(1,h/b),GG(e)),BG(c.j,d-c.o,c.k),c.A&&(c.A=!1));z();N_(this,5)}}a&&(M_(this),N_(this,6),a=this.timing,z(),xG(a.j.j,a.G).gp+=1)}};function M_(a){if(2>a.A)a=!0;else{var b=a.info.k;a=!(a.G>b.o&&1<=b.k)}return a}function N_(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.H&&a.H(a)}
f.dp=function(){this.o=NaN;if(!this.fa()){var a=z(),b=!1;if(8192<=this.timing.k){var c=this.timing.D;O_(this.timing);this.timing.D-c>=.8*this.D.k?(this.F++,b=5<=this.F):this.F=0}else b=this.timing,b=5E3<a-(b.o+1E3*b.F.delay);if(b){b=this.timing;a=a>b.o&&4E12>a?a:z();b.B+=(a-b.C)/1E3;var c=b.j,d=b.K,e=b.B,d=Math.max(d,8192);c.A.k(1,e/d);GG(c);BG(b.j,a-b.o,b.k);xG(b.j.j,b.G).vp+=1;Q_(this);this.C="net.timeout";N_(this,6)}else this.o=M(w(this.dp,this),this.D.k)}};f.fa=function(){return-1==this.state};
f.dispose=function(){iH(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.o=!1);N_(this,-1);this.H=this.B=null;Q_(this);N(this.o);this.o=NaN};function Q_(a){if(a.j){var b=a.j;a.j=null;b.abort()}a=a.timing;a.A&&(a.A=!1)};function R_(a,b,c){this.j=a;this.K=b;this.P=c;this.k=this.C=this.o=NaN;this.J=this.H=this.A=!1;this.B=0;this.D=this.N=NaN}function P_(a,b,c){if(a.A){var d=(b-a.C)/1E3,e=c-a.k;0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&zG(a.j,.05,e)):zG(a.j,d,e),a.J=!0)}else 8192<=c&&(d=a.j,d.B.k(1,(b-a.o)/1E3),GG(d),a.A=!0);a.C=b;a.k=c}function O_(a){var b=a.K-a.k,b=1E3*(b*a.F.tailDelay+b/a.F.byterate),c=z(),b=8192<=a.k?b+c:b+Math.max(c,a.o+1E3*a.F.delay);a.D=b};function S_(a,b,c,d){T.call(this);this.F=a;this.D=b;this.C=c;this.k=this.o=null;this.H=new YZ(a,b);this.j=null;this.B=new c_(this.H,b,this.C,d);this.A=this.ha=this.ja=this.V=this.W=NaN;this.K=!1;this.O=NaN;this.$=0;this.G=!1;this.ia={};this.R="";this.ca=!1;this.X=this.J=0}A(S_,T);S_.B=!1;S_.j=2/24;S_.k=1E3;S_.A=1E4;S_.o=.2;f=S_.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.B;d.B="i";e_(d,b);m_(d);d.G=d.A;n_(d);d.o=d.C;b=l_(d);this.o=new p_(this.D,b.j);this.k=new p_(this.D,b.video);this.publish("videoformatchange",b);this.A=a;c?(this.G=!0,T_(this)):U_(this)};function U_(a){0==a.A&&(a.o.o.o||V_(a,a.o,!0),a.k.o.o||V_(a,a.k,!0));a.seek(a.A);W_(a,"gv")}f.resume=function(){this.G&&(this.G=!1)};
f.HA=function(a){this.resume();this.j=a;ku(a)&&(a.j.addEventListener("updateend",w(this.tc,this),!1),a.k.addEventListener("updateend",w(this.tc,this),!1));W_(this,"msa");this.U&&this.N&&Px();this.tc();this.ja=Kf(w(this.tc,this),S_.A)};function X_(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",w(a.tc,a),!1),a.j.k.removeEventListener("updateend",w(a.tc,a),!1));a.j=null;a.G=!0;a.o&&(y_(a.k,!1),y_(a.o,!1))}function Y_(a){a.j&&iu(a.j)&&X_(a)}
function Z_(a,b,c){if(!b.C.k||!c.remove)return!1;if(c.updating)return!0;if(!b.C.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.C.j=!0;b=b.C;b.k=!1;b.j=!1;a.publish("seekrequired");return!1}
function $_(a,b,c){if(a.G)return!1;if(!b.k){if(!b.o.Sc())return b.o.o||V_(a,b,!1),!1;v_(b,a.A)}var d=b.pendingRequests_.length+c.pendingRequests_.length;(F_(b)||F_(c)||a.C.isLive)&&--d;if(2<=d+1)return!1;d=b.k;4==d.type&&d.j.Sc()&&(b.k=bb(d.j.Fi(d)),d=b.k);!d.F&&!d.j.Lg(d)||d.j.info.k&&4==d.type?a=!1:H_(b)&&!a.D.o?a=!0:(!(c=d.F||b.B+c.B>a.D.j||!!(c.k&&!c.k.F&&c.k.D<d.D))&&(c=3==d.type)&&(d=d.D,b=a0(a,b,!0),Ht(a.B.j)||(c=(z()-a.$)/1E3,b=Math.min(b,30+2*c)),c=d>a.A+b),a=c?!1:!0);return a}
function b0(a,b,c){if(!a.j||hu(a.j)||ku(a.j)){var d=a.A,e;e=a.H;c=ZZ(e,b.o.info.pa,c.o.info.pa,0);e=CG(e.j)+c*DG(e.j)+c/EG(e.j);e=Math.max(e,e+5-c/b.o.info.pa);d=d+e;a=a.B;t:{a=!a.o||!a.C||a.o.info.pa>=a.C.info.pa?!1:a.C.info.video.width>1.6*a.o.info.video.width?!0:"r"==a.B;if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.j[0].startTime<=d)break t;z_(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].buffer==c.buffer||(b.B-=c.buffer.byteLength));
b.pendingRequests_.length?b.k=bb(b.pendingRequests_[b.pendingRequests_.length-1].info.j):b.j.length?b.k=bb(b.j).info:b.k=b.A;a&&b.k&&d<b.k.startTime&&(b.k=b.o.Si(d,!0).j[0])}}}
function c0(a,b,c){$_(a,b,c);var d=b.k;if(b.k.j.Sc()){H_(b)&&!a.D.o&&(b0(a,b,c),b.k||v_(b,a.A));var d=b.k,e=d.D-a.A,g=!d.aa||0==d.k&&0==d.o?0:d.aa.length-(d.o+d.k);G_(b)&&(H_(b)||25>=e)&&0==g&&(g=d.startTime+S_.j,d.k&&(g+=d.duration),v_(b,g),d=b.k);d.j.Ci()?(c=ZZ(a.H,d.j.info.pa,c.o.info.pa,e),e=G_(b),c=YH(d.j,d,c),c.aa&&1<c.j.length&&(e?c=YH(d.j,d,c.j[0].k):(e=c.j[c.j.length-1],g=e.k/c.aa.length,!e.C&&.4>g&&(c=YH(d.j,d,c.aa.length-e.k)))),d=c):d=DD(d.j,d)}else d.j.Ci()?(c=ZZ(a.H,b.o.info.pa,c.o.info.pa,
0),d=YH(d.j,d,c)):d=DD(d.j,d);q_(b,d0(a,d))}function d0(a,b){if(3==b.j[b.j.length-1].type){var c;t:{c=a.B;var d=b.j[0].j;if(d.info.video){if(c.o!=d){c.o=d;c=l_(c);break t}}else c.G=d;c=null}c&&a.publish("videoformatchange",c)}c=nH(b);var d=a.F,e=a.H,g=Math.min(2.5,CG(e.j)),e=$Z(e);c=new J_(a.D,b,new R_(d,c,c-g*e));d=w(a.oB,a);c.H=d;c.start();return c}
f.oB=function(a){if(!this.fa()&&3<=a.state){var b=a.info.j[0].j,c=!this.U&&b.info.video,d=!this.N&&b.info.k;4==a.state?(c?W_(this,"vrr"):d&&W_(this,"arr"),a.start()):5==a.state?(c?(this.U=a.k?ED(a.k):"",Rx()):d&&(this.N=a.k?ED(a.k):""),D(a.B,function(a){iH(a.info)&&a.info.j.$p(a)}),ib(a.B,function(a){return LH(a)})&&!a.B[0].info.j.Pl()?this.tc():this.Ae(!0,"fmt.unparseable",L_(a))):3==a.state?(this.tc(),c&&Rx()):6==a.state&&M_(a)?(this.Ae(!1,a.getErrorCode(),L_(a)),(c=b.info.video&&0<a.A&&90&&!j_(this.B))&&
i_(this.B,b.info),6==a.state&&"net.timeout"==a.C||c?(B_(b.info.video?this.k:this.o,a),this.tc()):a.start()):iH(a.info.j[0])?(b.B=!0,this.tc()):this.Ae(!0,"net.retryexhausted",L_(a))}};function e0(a){if(isNaN(a.W)){var b=w(a.tc,a);a.W=M(b,0)}}function T_(a){if(isNaN(a.V)){var b=w(function(){this.V=NaN;this.tc()},a);a.V=M(b,S_.k)}}
f.tc=function(){this.W=NaN;Y_(this);if(this.j&&!ju(this.j))if(this.C.isLive)Infinity!=this.O&&(this.O=Infinity,this.j.nf(Infinity));else if(!isFinite(this.O)){var a=Math.floor(Math.max(this.o.o.index.sf(),this.k.o.index.sf()));0<a&&(this.j.nf(a),this.O=a)}if(!this.fa())if(a=this.C,z()-a.H>=a.C){if(3==this.C.A&&(this.Ae(!(3>this.C.k),this.C.getErrorCode(),{rc:this.C.K.toString()}),!(3>this.C.k)))return;a=this.C;if(3!=a.A||z()-a.G>=1E3*Math.pow(2,a.k))if(a=this.C,1!=a.A){var b;t:{var c=a.j;for(b in c){b=
c[b];break t}b=void 0}b=Ke(a.J,{start_seq:(b.index.Gb()+1).toString()});a.G=z();fI(a,b)}T_(this)}else if(this.C.isLive&&(I_(this.k)||I_(this.o))&&(b=f0(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)T_(this);else if(Y_(this),r_(this.k),r_(this.o),this.o.o.o||(!this.G||HG(this.F)?U_(this):T_(this)),!this.j||Z_(this,this.o,this.j.j)||Z_(this,this.k,this.j.k)||((b=g0(this,this.k,this.j.k))&&!this.J&&(this.J=z(),W_(this,"vda"),this.X&&Rx()),a=Tr(this.j.k.buffered,this.A+
S_.j),isNaN(a)&&!x_(this.k)&&this.j.j.buffered.length||(x_(this.k)&&(a=NaN),a=g0(this,this.o,this.j.j,a),b|=a,a&&!this.X&&(this.X=z(),W_(this,"ada"),this.J&&Rx())),x_(this.k)&&x_(this.o)&&hu(this.j)&&!ju(this.j)&&(a=this.j,hu(a)&&a.o.endOfStream(),a=this.F,Aq(FG(a)),a.o=z()),b&&!ku(this.j)&&e0(this)),h0(this,this.k,g_(this.B)),h0(this,this.o,h_(this.B)),this.k.o.B||this.o.o.B)this.Ae(!0,"net.retryexhausted");else{b=this.J?z()-this.J:0;if(this.ca||b>=this.D.G)$_(this,this.k,this.o)&&c0(this,this.k,
this.o),$_(this,this.o,this.k)&&c0(this,this.o,this.k);this.D.K&&this.R&&!this.G&&HG(this.F)&&(b=this.R,this.R="",a=uj(b),Ej(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:w(this.Ae,this,!1,"pathprobe.net",{shost:a})}))}};
function g0(a,b,c,d){if(c.updating)return!0;var e=b.j.length?b.j[0]:null;if(!e)return!1;!b.A||b.A.C||jH(b.A,e.info)||(b.A=null,hu(a.j)&&c.abort(),c.j=null);var g;if(g=a.C.isLive){var h;b.j.length&&1==b.j[0].info.j.info.j&&0==b.j[0].info.o&&8<b.j[0].info.k&&3==b.j[0].info.type?(h=qH(b.j[0]),h=!!AH(h,0,1718909296)):h=!1;g=h}h=!(!b.G.J||!b.j.length||1!=b.j[0].info.j.info.j||0!=b.j[0].info.o)&&!a.C.B;if(g)c.j=null;else{if(g=h||!e.j)g=e.info.j.j,c.j==g?g=!1:(i0(a,c,g),c.j=g,a.publish("initsegment",c.j),
g=c.updating);if(g)return!0}g=a0(a,b,!1);g=a.A+g;0<=d&&(g=Math.min(g,d));d=t_(b,g);if(!d)return!1;if(h){if(s_(b))return!1;var k;t:{s_(b);h=b.j[0];var l=qH(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.j[1];if(p.aa.length+l.byteLength<g){k=null;break t}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.aa.start,h.aa.length);k.set(l);l=new Uint8Array(p.buffer,p.aa.start,g-h.aa.length);k.set(l,h.aa.length);l=new DataView(k.buffer)}var u=h.info.j.index.ll(h.info.A);(l=zH(l,u))?(k?(u_(b,h.aa),u_(b,TG(p.aa.start,
g-h.aa.length))):u_(b,TG(h.aa.start,g)),k=l):k=null}if(k)return i0(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,d.start,d.length);a.C.B&&3==e.info.type&&ha(c.timestampOffset)&&(p=0,p=a.D.P&&!b.D?-MH(e):-(MH(e)-e.info.startTime),Math.abs(c.timestampOffset-p)>S_.o&&(b.A&&b.A.A+1==e.info.A&&(p=Tr(c.buffered,b.A.startTime)-MH(e)),c.timestampOffset=p));if(!i0(a,c,k))return A_(b),!0;a.C.B&&a.D.P&&!b.D||u_(b,d);b.D||(b.D=!0);e.j&&(c.j=e.info.j.j,a.publish("initsegment",c.j));return!0}
function i0(a,b,c){if(ku(a.j))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!iu(a.j)}function a0(a,b,c){var d;d=Ht(a.B.j)&&!a.D.o?b.o.info.k?10485760:62914560:b.o.info.k?a.D.B:a.D.C;c&&(d+=a.D.j);return d/(Ht(a.B.j)?b.k?b.k.j.info.pa:b.o.info.pa:b.pa)}function f0(a){if(a.C.isLive){var b=Math.max(a.k.o.index.Yg(),a.k.o.index.Gb()-a.D.liveChunkReadahead);return a.k.o.index.Hf(b)}return Math.floor(Math.min(a.o.o.index.sf(),a.k.o.index.sf()))}
f.seek=function(a){if(!this.fa()){Y_(this);this.$=z();this.k.o=g_(this.B);var b=j0(this,this.k,a,this.j&&this.j.k);this.o.o=h_(this.B);var c=j0(this,this.o,b,this.j&&this.j.j);this.A=Math.max(a,b,c);this.K=!0;e0(this)}};
function j0(a,b,c,d){if(b.o.Sc())if(d){var e=Tr(d.buffered,c),g=NaN,h=b.A;h&&(g=Tr(d.buffered,h.j.index.Hf(h.A)));if(e==g&&E_(b))return c;d=w_(b,c);if(0<=d)return d;y_(b,!0);b.o.info.video&&b.A&&!b.A.C&&!C_(b)&&(d=b.A,b.j.length&&(d=bb(b.j).info),d=b.k||d,d=YH(d.j,d,d.aa.length-(d.k+d.o)),q_(b,d0(a,d)));if(isNaN(e))return v_(b,c);v_(b,e+S_.j)}else v_(b,c);else b.o.o||V_(a,b,!1),0!=c&&z_(b);return c}function h0(a,b,c){b.o!=c&&(b.o=c,c.o||V_(a,b,!1))}
function V_(a,b,c){var d=r("ytplayer.playback_delay");d?(a.Ae(!1,"playback.delay",{ms:d}),a.ha=M(w(a.mu,a,b,c),d)):a.mu(b,c);b.o.o=!0}f.mu=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.o.info.pa)));c=a.o.ct(c);D(c,function(b){var c=d0(this,b);!iH(b.j[b.j.length-1])&&q_(a,c)},this)};f.L=function(){X_(this);this.o&&(z_(this.o),z_(this.k));Lf(this.ja);N(this.ha);this.k=this.o=null;S_.I.L.call(this)};
f.Ae=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.publish("error",new Dq(b,a,d));a&&(this.j&&hu(this.j)&&(a=this.j,hu(a)&&a.o.endOfStream("network")),this.dispose())};
S_.prototype.getDebugInfo=function(){var a={lct:this.A.toFixed(3),lsk:this.K,lmf:Ht(this.B.j),lbw:EG(this.F).toFixed(3),lhd:CG(this.F).toFixed(3),ltd:(1E9*DG(this.F)).toFixed(3),laa:this.o.A?lH(this.o.A):"",lva:this.k.A?lH(this.k.A):"",lar:this.o.k?lH(this.o.k):"",lvr:this.k.k?lH(this.k.k):""};this.j&&!iu(this.j)&&(a.lab=Rr(this.j.j.buffered),a.lvb=Rr(this.j.k.buffered));return a};function W_(a,b,c){a.ia[b]=c?window.performance.timing.navigationStart+c:z()};function k0(a,b,c,d){R.call(this);this.o=a;this.H=b;this.C=c;this.j=d;this.B="";this.k=this.D=this.F=this.G=null;this.A=new cu(this);S(this,this.A);this.j&&(du(this.A,this.j,["message","mskeymessage"],this.Ap),du(this.A,this.j,["error","mskeyerror"],this.zp),du(this.A,this.j,["ready","mskeyadded"],this.yp))}A(k0,R);f=k0.prototype;f.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.D=c;this.k=d};f.Ap=function(a){this.G.call(this.k,a)};
f.zp=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.F.call(this.k,b,a)};f.yp=function(a){this.D.call(this.k,a)};f.update=function(a){this.j?this.j.update(a):this.o.addKey?this.o.addKey(this.H.j,a,this.C,this.B):this.o.webkitAddKey(this.H.j,a,this.C,this.B)};f.L=function(){this.o=null;k0.I.L.call(this)};function l0(a,b){R.call(this);this.j=a;this.A=b;this.C={};this.o=null;this.B=new cu(this);S(this,this.B);lt()||(du(this.B,this.j,["keymessage","webkitkeymessage"],this.G),du(this.B,this.j,["keyerror","webkitkeyerror"],this.F),du(this.B,this.j,["keyadded","webkitkeyadded"],this.D));this.k=null}A(l0,R);function m0(a){a.k=new (lt())(a.A.j);a.j&&(a.j.msSetMediaKeys?a.j.msSetMediaKeys(a.k):a.j.setMediaKeys(a.k))}
function n0(a,b){var c=a.C[b.sessionId];!c&&a.o&&(c=a.o,a.o=null,c.B=b.sessionId,a.C[b.sessionId]=c);return c}l0.prototype.G=function(a){var b=n0(this,a);b&&b.Ap(a)};l0.prototype.F=function(a){var b=n0(this,a);b&&b.zp(a)};l0.prototype.D=function(a){var b=n0(this,a);b&&b.yp(a)};l0.prototype.L=function(){this.j=null;l0.I.L.call(this)};function o0(a,b,c){this.url=a;this.j=b;this.k=c};function p0(a,b,c){this.j=a;this.headers=b;this.message=c};function q0(a,b,c,d,e){R.call(this);this.H=a;this.k=d;this.k.subscribe("oauthtoken",this.Ip,this);this.B={session_id:e};Cr(this,a.o);this.j=[];this.A=this.D=this.G=!1;var g;try{var h=c.j;if(lt()){b.k||m0(b);var k=c.k||"video/mp4",l;if("com.microsoft.playready"==b.A.j){var p=new Uint8Array(270);for(a=0;135>a;a++)p[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);l=b.k.createSession(k,h,p)}else l=
b.k.createSession(k,h);g=new k0(null,null,null,l)}else b.j.generateKeyRequest?b.j.generateKeyRequest(b.A.j,h):b.j.webkitGenerateKeyRequest(b.A.j,h),b.o=new k0(b.j,b.A,h,null),g=b.o}catch(u){b="g",u instanceof DOMException&&(b+=u.code),this.k.publish("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.o=g)this.o.setCallbacks(this.Ml,this.Ay,this.zy,this),S(this,this.o)}A(q0,R);f=q0.prototype;f.Ip=function(a){this.F=a};
function Cr(a,b){if(Sf(b)){for(var c in a.B)b=Qe(b,c,a.B[c]);a.C=b}else r0(a,"drm.net","u")}f.start=function(){this.fa()||(this.G=!0,this.j.length&&this.Ml(this.j.shift()))};
f.Ml=function(a){if(!this.fa()){var b=a.defaultURL||a.destinationURL;this.A&&b&&Cr(this,b);if(this.G){a=a.message;if("com.microsoft.playready"==this.H.j){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);b=(new DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=Uint8Array;b=b.childNodes[0].data;if(!IL)for(IL={},JL={},c=0;65>c;c++)IL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),JL[IL[c]]=c,62<=c&&(JL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=JL,d=[],e=0;e<b.length;){var g=c[b.charAt(e++)],h=e<b.length?c[b.charAt(e)]:0;++e;var k=e<b.length?c[b.charAt(e)]:64;++e;var l=e<b.length?c[b.charAt(e)]:64;++e;if(null==g||null==h||null==k||null==l)throw Error();d.push(g<<2|h>>4);64!=k&&(d.push(h<<4&240|k>>2),64!=l&&d.push(k<<6&192|l))}a=new a(d)}a={format:"RAW",method:"POST",oz:a,responseType:"arraybuffer",withCredentials:!0,$a:this.qz,onError:this.Mp,context:this};b=this.C;this.F&&(b=Qe(b,"access_token",this.F));Ej(b,a)}else this.j.push(a),
this.D||(this.D=!0,this.k.publish("newsession",this))}};f.zy=function(){this.fa()||(this.A||(this.k.publish("sessionready"),this.A=!0),this.j.length&&this.Ml(this.j.shift()))};
f.qz=function(a){if(!this.fa())if(0!=a.status&&a.response){t:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];qb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e)for(var d=Za(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new p0(d,g,a.subarray(b));break t}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.j?r0(this,"drm.auth","f"+a.j,et(a.j)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new o0(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.k.publish("newlicense",b,c),this.o.update(a.message)):r0(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Mp(a)};f.Ay=function(a,b){this.fa()||r0(this,"drm.keyerror","s"+a+"."+b)};f.Mp=function(a){r0(this,"drm.net","r"+a.status)};
function r0(a,b,c,d){a.fa()||a.k.publish("licenseerror",b,c,d);a.dispose()}f.L=function(){this.k=null;q0.I.L.call(this)};function s0(a,b){this.j=a;this.k=b||null};function t0(a,b){T.call(this);this.G=a;this.j=b;this.subscribe("newlicense",this.Mw,this);this.subscribe("newsession",this.Nw,this);this.subscribe("sessionready",this.Ow,this);this.N=oE();this.A=null;this.F={};this.k=[];this.o=Et;this.K=new l0("com.microsoft.playready"==b.j?null:a,b);S(this,this.K);this.C=new l0(a,b);S(this,this.C);this.D=2;this.H=new cu(this);S(this,this.H);this.B=!1;this.J=null;du(this.H,this.G,lt()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Lw)}A(t0,T);f=t0.prototype;
f.Lw=function(a){u0(this,new s0(a.initData,a.contentType),!0)};
function u0(a,b,c){if(!(a.fa()||"com.microsoft.playready"==a.j.j^!c||(c=b.j,a.B&&"widevine"==a.j.k))){var d=String.fromCharCode.apply(String,c);if(!a.F[d]){a.F[d]=!0;d="clearkey"==a.j.k;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){t:{for(var e=new DataView(c.buffer),d=0;d<e.byteLength;){var g=e.getUint32(d,!1);if(1886614376!=e.getUint32(d+4,!1))break;if(1477738184==e.getUint32(d+12,!1)&&69420633==e.getUint32(d+16,!1)&&2464609580==e.getUint32(d+20,!1)&&1558758348==e.getUint32(d+24,!1)){e=e.getUint32(d+
28,!1);if(16!=e)break;c=c.subarray(d+32,d+32+e);break t}d+=g}c=null}if(!c)return}a.k.push(b);1<a.k.length||(v0(a,b),a.B=!0)}}}function v0(a,b){var c=new q0(a.j,a.K,b,a,a.N);c.Ip(a.A);S(a,c)}f.Mw=function(a,b){a&&G(a,"HD")&&!Gt(this.o)&&"com.microsoft.playready"!=this.j.j&&(this.o=Ft,this.publish("qualitychange"));b&&!this.J&&(this.J=b,this.publish("heartbeatparams",b))};f.Nw=function(){this.fa()||(this.k.shift(),this.k.length&&v0(this,this.k[0]))};f.Ow=function(){this.D--;0==this.D&&m0(this.C)};
f.L=function(){this.G=null;this.k=[];t0.I.L.call(this)};function w0(a){this.k={};this.k.c1a=w(this.A,this);this.k.c3a=w(this.B,this);(this.j=a)&&this.j.ca?this.o=sj(this.j.ca):this.o=[]}w0.prototype.A=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};w0.prototype.B=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Wa(a.c3a))};function x0(a,b,c){this.j=a;this.reason=b;this.k=c};function y0(a,b){this.j=a;this.k=b}function z0(a,b){return It(It(a.j.Pk,b.Tl),b.zi)}
function A0(a,b){var c;c=!!b.j.j;var d;Xh&&!a.j.J&&(d=window.screen&&window.screen.width?new H(window.screen.width,window.screen.height):null);d||(d=a.j.xg?a.j.xg.clone():a.k.gb());(Xh||Yc||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.j.k;if(d.length){for(var g=0;g<d.length&&!(e=d[g].video,null===c||.85*e.width<c.width&&.85*e.height<c.height);g++);e=Wq("auto",e.quality,!1)}else e=Ft;c=e.j;es()&&(c=Math.max(c,Bt.hd1080));if(d=(cs("armv7")||cs("android"))&&!$D(a.j))d=b.j.k[0],d="9"==d.o||"("==
d.o;d&&(c=Math.min(c,Bt.large));c=Math.max(c,Bt.medium);e.j!=c&&(e=new Dt(e.k,c,e.o));return e};function B0(){this.A=this.j=NaN;this.o=this.k=!1}function us(a,b,c,d){if(d=1<d)a.o=!0;if(a.k)b!=a.j&&(a.k=!1);else if(0<b&&a.j==b)return c-a.A>(d||!a.o?1500:400);a.j=b;a.A=c;return!1};function C0(){this.k=0;this.j=this.B=this.o=this.A=NaN};var D0={};function E0(a){this.k=a;this.j=0;this.B=NaN;this.o=0;this.ga=[];this.A=F0(this.k);this.C=this.D=0}function G0(a){a.A.startTime=a.o;a.A.endTime=a.j;a.ga.length&&bb(a.ga).isEmpty()?a.ga[a.ga.length-1]=a.A:a.ga.length&&a.A.isEmpty()||a.ga.push(a.A);a.D+=a.j-a.o;a.A=F0(a.k);a.o=a.j}function H0(a){return a.D+a.k.o()-a.o}function I0(a){a.ga.length&&a.j==a.o||G0(a);var b=a.ga;a.ga=[];return b}
E0.prototype.update=function(){var a=this.k.o()||0,b=J0(this.k);if(a!=this.j||K0(this,a,b)){if(a<this.j||a-this.j>b-this.B+.5||K0(this,a,b))G0(this),this.o=a;this.B=b;this.j=a}};function K0(a,b,c){c-=a.B;return b==a.j&&.5<c};function L0(a,b){this.j=b;this.A=!1;this.k=a}L0.prototype.o=function(){return{ps:this.j.k,el:this.j.da}};L0.prototype.send=function(){this.A||(bg(Ke(this.j.A+"set_awesome",this.o())),this.A=!0)};function M0(a,b,c){L0.call(this,b,c);this.B=a}A(M0,L0);
M0.prototype.o=function(){var a=M0.I.o.call(this);ra(a,this.j.o);var b=Kc(this.k.Uh/this.k.lengthSeconds,0,1);ra(a,{html5:"1",video_id:this.k.videoId,eurl:this.j.F,framer:this.j.R,feature:this.j.O,list:this.k.playlistId,w:b,l:this.k.lengthSeconds,plid:this.k.playbackId,ei:this.k.G,access_token:this.k.C,tpmt:H0(this.B),cpn:this.k.ya});this.j.D&&(a.adformat=this.j.D);this.j.referrer&&(a.referrer=UZ(this.j));this.j.autoplay&&(a.autoplay="1");this.j.Wa&&(a.authuser=this.j.Wa);this.j.pageId&&(a.pageid=
this.j.pageId);this.k.Cd&&(a.splay="1");this.k.subscribed&&(a.subscribed=this.k.subscribed);ra(a,M0.I.o.call(this));ra(a,this.j.o);return a};function N0(a){R.call(this);this.j=a;this.o={};this.N=NaN;this.B=new Hv(this.Fw,3E4,this);S(this,this.B);this.C=new Hv(this.ti,100,this);S(this,this.C);this.k="N";this.A=0;this.P=NaN;this.H=0;this.G=this.R="";this.F=this.J=0;this.K=this.D=!1}A(N0,R);var O0={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function P0(a,b,c,d){var e=a.o[b];e||(e=[],a.o[b]=e);a=0<=d?d:J0(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}f=N0.prototype;
f.ti=function(a){a=a||J0(this.j);var b=this.j.D();if(!isNaN(this.O)&&!isNaN(b.o)){var c=b.o-this.O;0<c&&P0(this,"bwm",[c,(b.B-this.U).toFixed(3)],a)}this.O=b.o;this.U=b.B;isNaN(b.j)||P0(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.k)||(c=b.k,b.A<c&&(c=b.A),this.P!=c&&(P0(this,"bh",[c.toFixed(3)],a),this.P=c),this.j.k.experiments.B&&3>c&&("PL"==this.k||"B"==this.k)&&this.C.start());P0(this,"cmt",[this.j.o()],a)};
function Q0(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.ya;b.ei=a.j.j.G;b.el=a.j.k.da;b.docid=a.j.j.videoId;b.ns=a.j.k.Oc;b.fexp=a.j.k.experiments.experimentIds.toString();b.cl=a.j.j.yc;a.j.k.D&&(b.adformat=a.j.k.D);a.j.j.Va&&(b.live=a.j.j.yb?"dvr":"live");b.html5="1";return b}
f.Ig=function(a){if(!this.fa()&&!Vb(this.o)){this.C.isActive()||this.ti(a);a=XZ(this.j.k).hmewdrop;a>this.H&&P0(this,"df",[a-this.H]);this.H=a;a=Q0(this);cc(a,this.j.k.o);a=Ke(TZ(this.j.k)+"api/stats/qoe",a);for(var b in this.o)a+="&"+b+"="+this.o[b].join(",");bg(a);this.o={};this.B.start()}};f.vf=function(){P0(this,"vps",["N"]);this.j.j.Ia&&(this.o.cat=["preload"]);this.N=Kf(w(this.Ig,this),1E4);this.B.start()};
f.onError=function(a,b){var c=this.j.o(),c=[a,c.toFixed(3)];b&&c.push(b);var d=J0(this.j);P0(this,"error",c,d);this.ti(d)};f.Fw=function(){"PL"==this.k&&(P0(this,"vps",[this.k]),this.Ig())};f.L=function(){N0.I.L.call(this);Lf(this.N)};function R0(a,b,c,d){this.N=b;this.segments=[];this.experimentIds=[];this.J=!1;this.k="watchtime"==c;this.$="playback"==c;this.W="delayplay"==c;this.ma=(this.H="atr"==c)?"/api/stats/"+c:TZ(b)+"api/stats/"+c;d&&(this.Jo=d.fs,d.rtn&&(this.ug=d.rtn),this.k?(this.kb=d.state,0<d.rti&&(this.di=d.rti)):(this.ca=d.mos,this.ha=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.B=d.allowed),d.ex_ads&&(this.G=d.ex_ads)),d.autonav&&(this.gi=d.autonav));this.na=b.D;this.autoplay=b.autoplay;this.ua=b.N;this.va=
$b(b.o);this.xa=b.F;this.Ba=b.da;this.experimentIds=b.experiments.experimentIds;this.O=b.P;this.Io=b.Oc;this.referrer=b.referrer;this.R=b.fb;this.o=b.O;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.V=b.cb;this.la=HZ();this.autoplay=a.sg||this.autoplay;this.gi=a.Ho||this.gi;this.X=a.Th;this.oa=a.ya;this.j=a.Fo;this.F=a.Dk;this.A=a.Uh;this.P=a.oe;a.o&&(this.Ra=a.o.id,a.D&&a.D.id!=this.Ra&&(this.D=a.D.id));this.Ko=a.Cd;this.Ia=a.Sh;a.Va&&(this.ja=a.yb?"dvr":"live");this.fb=a.tk;this.playbackId=
a.playbackId;this.Ca=a.G;this.playlistId=a.playlistId;this.o=a.fb||this.o;this.U=a.rb;this.Da=a.Mb;this.rb=a.Go;this.subscribed=a.subscribed;this.tb=a.yc;this.videoId=a.videoId;this.Mb=a.sv;this.cb=a.tb;this.ib=a.rv}f=R0.prototype;f.gi=!1;f.autoplay=!1;f.Qy=!1;f.Eo=!1;f.Jo=!1;f.Xw=!1;f.Ko=!1;f.Io="yt";f.di=null;f.ug=null;
f.send=function(){if(!this.J){var a=S0(this),a=Ke(this.ma,a);this.H?this.C&&Ej(a,{method:"POST",Ab:{atr:this.C}}):!this.N.experiments.H&&xj()&&this.j?Ej(a,{headers:{Authorization:"CredentialTransfer type="+this.F+",token="+this.j}}):bg(a);this.J=!0}};
function S0(a){var b={ns:a.Io,el:a.Ba,cpn:a.oa,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.pf(a.A),plid:a.playbackId,ei:a.Ca,fmt:a.Ra,fs:a.Jo?"1":"0",rt:a.pf(a.ia),of:a.ib,adformat:a.na,content_v:a.ua,euri:a.xa,subscribed:a.subscribed,lact:a.la,live:a.ja,cl:a.tb,mos:a.ca,q:a.searchQuery,osid:a.cb,state:a.kb,vm:a.Mb,volume:a.ha};ra(b,a.va);a.gi&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Eo&&(b["final"]="1");a.Ko&&(b.splay="1");a.P&&(b.delay=a.P);a.O&&(b.hl=a.O);a.R&&(b.cr=a.R);n(a.userAge)&&
a.V&&(b.uga=a.V+a.userAge);n(a.K)&&(b.len=a.pf(a.K));!a.k&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.ug&&(b.rtn=a.pf(a.ug));a.o&&(b.feature=a.o);a.playlistId&&(b.list=a.playlistId);a.U&&(b.ctrl=a.U);a.Da&&(b.ytr=a.Da);a.rb&&(b.ssrt="1");a.D&&(b.afmt=a.D);a.k?(b.idpj=a.Ia,b.ldpj=a.fb,null!=a.di&&(b.rti=a.pf(a.di))):(n(a.adType)&&(b.at=a.adType),n(a.B)&&(b.allowed=a.B),n(a.G)&&(b.ex_ads=a.G));(a.$||a.W)&&a.X&&(b.tst=a.X);a.k&&(b.st=T0(a,E(a.segments,function(a){return a.startTime})),
b.et=T0(a,E(a.segments,function(a){return a.endTime})));hb(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=T0(a,E(a.segments,function(a){return a.visibilityState})));hb(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=T0(a,E(a.segments,function(a){return a.playbackRate})));hb(a.segments,function(a){return"-"!=a.Qk})&&(b.cc=E(a.segments,function(a){return a.Qk}).join(","));a.N.experiments.H&&xj()&&a.j&&(b.ctt=a.j,b.cttype=a.F);return b}f.pf=function(a){return(1*a.toFixed(3)).toString()};
function T0(a,b){return E(b,a.pf).join(",")};function U0(a){R.call(this);this.j=a;this.A=new N0(a);S(this,this.A);this.k=new E0(a);this.C="paused";this.D=NaN;this.H=[10,10,10,40];this.J=this.G=0;this.P=this.F=this.N=this.K=this.o=!1;this.B=NaN;this.O=new M0(this.k,this.j.j,this.j.k)}A(U0,R);function V0(a,b,c){var d=J0(a.j);c=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.D=M(w(a.QD,a,c,b),d);return c}f=U0.prototype;
f.QD=function(a,b){if(!this.fa()){this.D=NaN;this.k.update();var c=I0(this.k),d=W0(this,c);b&&(d.di=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.ug=V0(this,!0,a));d.send();this.J++}};function X0(a,b){var c=Y0(a.j);ra(c,{state:a.C});c=new R0(a.j.j,a.j.k,b,c);c.A=a.j.o();c.K=a.j.C();c.ia=J0(a.j);c.segments=[F0(a.j)];return c}function W0(a,b){var c=X0(a,"watchtime");c.segments=b;c.A=a.k.j;return c}function Z0(a){a.k.update();return W0(a,I0(a.k))}
function $0(a){var b=a.j.k;a=a.j.j;var c=a.fb||b.O,c={ns:b.Oc,html5:"1",el:b.da,ps:b.k,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.rb||void 0,ytr:a.Mb||void 0,list:a.playlistId,d:b.oa,f:b.ca};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function a1(a){a.j.j.remarketingUrl&&!a.F&&(bg(a.j.j.remarketingUrl),a.F=!0);a.j.j.ppvRemarketingUrl&&!a.P&&(bg(a.j.j.ppvRemarketingUrl),a.P=!0);a.j.j.remarketingUrl||b1(a)}f.vf=function(){this.A.vf()};
f.onError=function(a,b){this.A.onError(a,b)};
function c1(a,b){if(!a.fa()){W(b.state,2)?(a.C="paused",0<Bv(b,2)&&a.o&&Z0(a).send()):W(b.state,8)?(a.C="playing",a.o&&isNaN(a.D)&&V0(a,!1)):a.C="paused";var c=a.A,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=O0[xs(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.k){var g=e,h=J0(c.j);if(!(h<c.A)){if("PL"==c.k)c.F+=h-c.A;else if("B"==c.k&&c.D&&(c.D=!1,c.J+=h-c.A,!c.K&&10<=c.J&&180>=c.F)){c.j.F();if(!c.fa()){var k=Q0(c);k.qoealert="1";k=Ke(TZ(c.j.k)+"api/stats/qoe",k);
bg(k)}c.K=!0}"B"!=g||"PL"!=c.k&&"PB"!=c.k||(c.D=!0);c.A=h}!c.j.k.experiments.B||"B"!=e&&"PB"!=e?P0(c,"cmt",[c.j.o().toFixed(3)]):c.ti();P0(c,"vps",[e]);c.k=e}if(W(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(W(d,2)||W(d,128))&&c.Ig();a.B&&W(b.state,128)&&(a.ki("error-100"),N(a.B))}}function d1(a){a.B=Kf(w(a.ki,a,"heartbeat"),3E4)}
f.ki=function(a){var b=this.j.k,c=this.j.j,d={ns:b.Oc,el:b.da,eurl:b.F,fmt:c.o?c.o.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.ya,ei:c.G,ps:b.k,noflv:1,st:this.j.o(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.$h&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=H0(this.k));ra(d,b.o);bg(Ke("//www.youtube.com/live_204",d))};f.L=function(){U0.I.L.call(this);N(this.D);this.D=NaN;var a=this.k;Lf(a.C);a.C=NaN};U0.prototype.getDebugInfo=function(){return S0(X0(this,"playback"))};
function b1(a){if(!a.F){a.j.j.B.eventLabel=a.j.k.da;a.j.j.B.playerStyle=a.j.k.k;a.j.j.ha&&(a.j.j.B.feature="pyv");a.j.j.B.vid=a.j.j.videoId;a.j.j.B.isAd=!("adunit"!=a.j.k.da&&!a.j.j.ha);var b=a.j.j.B;b&&b.uid&&(D0[b.uid]=b);t:{var c=a.j.j.B.uid;if(!c){b=If("CONVERSION_CONFIG_DICT");if(!b)break t;c=b.uid||null;if(!c)break t}i:{b=If("CONVERSION_CONFIG_DICT");if(v(c)&&(c=c?24==c.length&&"UC"==c.slice(0,2)?c.substr(2):22==c.length?c:null:null,!b||b.uid!=c)&&(b=D0[c],!b||b.uid!=c))break i;var d;if(b&&
b.baseUrl&&b.uid){var e=b.rmktEnabled,c=b.focEnabled&&(!b.isAd||!1);if(e||c){var g={};if(e){e={utuid:b.uid,type:"view",client_name:"html5"};b.vid&&(e.utvid=b.vid);b.eventLabel&&(e.el=b.eventLabel);b.playerStyle&&(e.ps=b.playerStyle);b.feature&&(e.feature=b.feature);b.ppe&&(e.ppe=b.ppe);b.subscribed&&(e.subscribed=b.subscribed);b.engaged&&(e.engaged=b.engaged);var h=[];for(d in e)h.push(encodeURIComponent(d)+"="+encodeURIComponent(e[d]));d=h.join(";");g.data=d}c&&(g.label="followon_view",g.foc_id=
b.uid,g.r=Math.round(1E4*Math.random()));d=Ke(b.baseUrl,g)}else d=null}else d=null;d&&bg(d)}}a.F=!0}};function e1(){this.endTime=this.startTime=-1;this.Qk="-";this.playbackRate=1;this.visibilityState=0}e1.prototype.isEmpty=function(){return this.endTime==this.startTime};function f1(a,b,c,d,e,g,h,k){this.j=a;this.k=b;this.B=c;this.C=d;this.o=e;this.D=g;this.G=h;this.F=k||function(){};this.A=-1}function J0(a){var b=window.performance&&window.performance.now?window.performance.now():z();0>a.A&&(a.A=b);return Math.round(b-a.A)/1E3}
function Y0(a){var b=a.B();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));a.ma&&(c.threed=a.Kw);c.plid=a.playbackId;c.ei=a.G;c.list=a.playlistId;c.cpn=a.ya;a.videoId&&(c.v=a.videoId);a.Gk&&(c.infringe=1);a.Cd&&(c.splay=1);a.Va&&(c.live=a.yb?"dvr":"live");a.sg&&(c.autoplay=1);a.fp&&(c.sdetail=a.fp);a.X&&(c.partnerid=a.X);a.tb&&(c.osid=a.tb);ra(b,c);return b}
function F0(a){var b=new e1;b.Qk=a.B().cc||"-";var c=a.k;b.playbackRate=c.xb&&c.xb.playbackRate||1;(c=rh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.k.Za?b.visibilityState=2:a.k.gs&&(b.visibilityState=1);return b};function g1(a,b){this.state=a;this.j=b}function Bv(a,b){return W(a.state,b)&&!W(a.j,b)?1:!W(a.state,b)&&W(a.j,b)?-1:0};function h1(a,b,c,d){T.call(this);this.ua=new B0;this.F=c;this.oa=d;this.D=new Bs(w(this.getCurrentTime,this),w(this.uv,this),w(this.getPlayerState,this),w(this.mb,this));S(this,this.D);this.V=NaN;this.K=this.G=null;this.C=a;this.ia=new y0(a,this.oa);this.la=!1;this.H=this.o=null;this.N=[];this.U=new o_;this.O=new o_;this.Ca=this.ma=!1;this.na=NaN;this.A=new qs;this.Ia=b;this.X=this.$=null;this.J=NaN;this.W=new Fv(this);this.j=new zr;this.k=this.R=null;this.ja=NaN;this.B=null;this.xa=!1;this.ca=0;
this.Ba=null;this.ha=!1}A(h1,T);function xr(a){Lx()?Ox(a.ca):N(a.ca)}f=h1.prototype;f.L=function(){N(this.ja);Lf(this.na);wr(this);i1(this);xr(this);PE(this);yi(this.X,this.W,this.j);this.W=this.K=null;this.ha=!1};
function j1(a,b,c){a.N.length=0;var d=a.U;d.k=!1;d.j=!1;d=a.O;d.k=!1;d.j=!1;a.V=NaN;a.J=NaN;a.R=null;a.xa=!1;a.k&&os(a.k);k1(a);wr(a);i1(a);xr(a);wi(a.j);d=a.D;d.wi=!1;d.Id=!1;Gs(d);d.j.j=[];d.k=[];d.qc();d.B=null;if(2==a.Ia||Wf(a.C.G))b.rq=!0;b.Rd=a.j.Rd;a.j=b;a.j.subscribe("dataupdated",a.kz,a);a.j.subscribe("dataloaded",a.sq,a);a.j.subscribe("dataloaderror",a.Zh,a);a.j.subscribe("onStatusFail",a.jz,a);b.uf&&b.uf>b.startSeconds&&(b=b.uf,a.K&&(a.D.Dg(a.K),a.K=null),a.K=new ys(1E3*b,2147483646),a.K.Oa.subscribe("onEnter",
a.hf,a),Cs(a.D,[a.K]));wr(a);a.j.ue||(c=new f1(a.j,a.C,c,w(a.Pc,a),w(a.getCurrentTime,a),w(a.hz,a),w(a.oa.ub,a.oa),w(a.iz,a)),a.B=new U0(c));a.ha=!1;l1(a,"newdata");m1(a,new qs)}function wr(a){if(a.B){var b=a.B;if(!b.fa()&&b.o){b.C="paused";var c=Z0(b);c.Eo=!0;c.send();c=b.A;"PL"==c.k&&(c.k="N");P0(c,"vps",[c.k]);c.Ig();N(b.B);b.dispose()}wi(a.B);a.B=null}}f.getVideoData=function(){return this.j};f.S=function(){return this.C};function n1(a){return!(!a.j.j||!a.j.j.k.length)}
function o1(a){if(ZI(a.j))return!0;Av(a,"api.invalidparam");return!1}function p1(a,b){a.ma=!!b;o1(a)&&!a.U.k&&(a.U.start(),a.B&&a.B.vf(),a.sq())}
f.sq=function(){if(VI(this.j))VI(this.j),this.U.j=!0,this.N=tb(this.j.H),JF(this.j),n1(this)&&(this.j.yb&&(q1(this,this.j.lengthSeconds),r1(this,!0)),this.j.j.j&&s1(this),Xq(this,"i")),l1(this,"dataloaded"),this.O.k&&t1(this);else if(this.j.ja){var a=this.j,b=this.C.experiments.U;a.ja=!1;var c=a.O,d=uj(c),c=0>zr.o.indexOf(d)?Xf(c):Yf(c),d=w(a.Wz,a),a=w(a.sm,a);fI(new ZH(c,b),c,d,a);zx("mrs")}else this.j.Df||(b=RZ(this.C,this.j,this.oa.ub()),$I(this.j,b,this.C.experiments.ia))};
function u1(a){p1(a);o1(a)&&!W(a.A,128)&&(a.O.k||(a.O.start(),m1(a,vs(a.A,8))),t1(a))}function t1(a){if(!(a.O.j||!a.U.j||W(a.A,128)||a.N.length||(a.D.Id||a.D.vf(),a.N.length||0<Or(a.D.j,-2147483648).length))){if(a.o){var b=a.o;a.Ca=!!b.N&&!!b.U}a.O.j=!0;a.j.Va&&v1(a,Infinity,!0);a.B&&(b=a.B,b.j.j.ci&&b.j.j.Uk&&(b.ki("connected"),d1(b)));a.publish("playbackready",a)}}f.hf=function(a){this.pauseVideo();a=0==a?new qs:new qs(14);m1(this,a)};
function w1(a,b,c,d){a.j.o=c;a.j.D=d||c;if(a.B){var e=a.j,g=A0(a.ia,e),e=F(e.j.k,w(g.A,g)),e=new x0(c,b,e?e.id:"");d&&"i"==b&&x1(a,b,d);d=a.B.A;c=J0(d.j);P0(d,"vfs",[e.j.id,e.k,d.R,e.reason],c);d.R=e.j.id;e=d.j.G();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],1<window.devicePixelRatio&&e.push(window.devicePixelRatio),P0(d,"view",e,c));P0(d,"vps",[d.k],c);d.Ig(c)}a.publish("internalvideoformatchange",a.j,"m"==b)}
function x1(a,b,c){a.j.D=c;if(a.B){var d=a.B.A;c=new x0(c,b,"");var e=J0(d.j);c.j.id!=d.G&&(P0(d,"afs",[c.j.id,d.G,c.reason],e),d.G=c.j.id)}"i"!=b&&a.publish("internalaudioformatchange",a.j,"m"==b)}function Av(a,b,c,d){if(Ob(ct,c))var e=c;else var g=c;m1(a,ts(a.A,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));xr(a);i1(a);y1(a)}function z1(a,b){a.N=a.N.filter(function(a){return b!=a});a.O.k&&t1(a)}f.mb=function(){return W(this.A,8)&&!W(this.A,64)&&!W(this.A,2)};f.getPlayerState=function(){return this.A};
f.getPlayerType=function(){return this.Ia};function A1(a,b){a.k&&PE(a);a.k=b;B1(a)}function PE(a){a.H=null;a.o&&(e0(a.o),a.o.G=!0);a.k&&(a.B&&a.U.k&&W(a.A,64)&&C1(a),k1(a),a.W.removeAll(),os(a.k),a.k=null)}
function D1(a){u1(a);W(a.A,64)&&m1(a,vs(a.A,8));if(a.O.j&&a.k)if(a.j.j){var b;if(a.j.j.j)J1(a),b=a.Ba,a.o.resume();else{i1(a);b=a.j.U.k;var c=a.j,d={};c.K&&(d.ptk=c.K,d.oid=c.So,d.ptchn=c.Rh,d.pltype=c.To);ra(b.k,d);ra(b.k,{c:a.C.o.c,cver:a.C.o.cver})}a.k.nd!=b?K1(a,b):(aJ(a.j)&&ls(a.k)&&v1(a,Infinity,!0),ms(a.k))}else Av(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Yq(a){if(!a.j.j)return[];var b=L1(a);a=Lt(a.j.j,b);a.length&&(a=a.concat(["auto"]));return a}
function M1(a){return It(It(z0(a.ia,a.j),A0(a.ia,a.j)),L1(a))}function L1(a){return a.j.al?Ft:a.G?a.G.o:n1(a)&&a.j.j.j&&$H(a.j.k)?Et:Ft}function Xq(a,b,c){if(!a.fa()&&!W(a.A,128)&&(c&&(a.j.zi=c),n1(a))){"m"==b&&c&&Gt(c)&&(b="a");var d=M1(a);a.j.j.j?"i"!=b&&(c=a.o,c.fa()||((d=d_(c.B,d,b))&&c.publish("videoformatchange",d),h0(c,c.k,g_(c.B)),Ht(c.B.j)&&"m"==b&&A_(c.k),H_(c.k)&&b0(c,c.k,c.o),e0(c))):(a.j.U=Eu(a.j.J,d),w1(a,b,a.j.U.getInfo()));a.mb()&&D1(a)}}
function N1(a){var b=a.getVideoData().D;if(!b)return a.getVideoData().V;var c=F(a.j.j?a.j.j.audioTracks:[],function(a){return a.id==b.id});return c?c:a.getVideoData().V}
function s1(a){iI(a.j.k,{c:a.C.o.c,cver:a.C.o.cver});var b=a.C,c=new wD;if(ds()||b.experiments.la)c.J=!0;ds()&&(c.F=-1);0<=b.V&&(c.liveChunkReadahead=b.V);b.experiments.W&&(c.G=300);b.experiments.oa&&(c.O=!0);if($D(b)){var d=b.experiments;c.C=8388608;c.B=524288;c.j=2097152;c.D=1048576;c.H=1.5;c.N=15;c.o=!0;c.K=!1;c.G=0;c.A=Bt.hd720;bs()&&!d.ja&&(c.pa=44E4);cs("(ps4; leanback shell)")&&(c.pa=562500)}es()&&(c.C=20971520,c.B=1572864,c.pa=812500,c.j=20971520,c.k=1E3);var d=b.xg||new H(window.screen.width,
window.screen.height),e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.C=52428800,c.B=5242880,c.j=20971520,c.D=8388608,c.A=Bt.auto);b.experiments.X&&(c.pa=NaN);b.experiments.ha&&(c.j=1.5*c.D);a.o=new S_(a.$,c,a.j.k,a.j.j);a.o.subscribe("initsegment",a.Kv,a);a.o.subscribe("videoformatchange",a.Mv,a);a.o.subscribe("audioformatchange",a.Lv,a);a.o.subscribe("error",a.Zh,a);a.o.subscribe("seekrequired",a.Nv,a);b=G(a.N,"spacecast")||a.ma;a.o.initialize(a.j.startSeconds,M1(a),b);a.j.probeUrl&&
(a.o.R=a.j.probeUrl);if(a.N.length||a.ma)a.o.G=!0;a.ma&&C1(a)}function C1(a){var b=new g1(new qs(4),a.A);c1(a.B,b)}function i1(a){a.o&&(a.o.dispose(),a.o=null);a.H&&(a.H.dispose(),a.H=null)}
function J1(a){if(!a.H){a.o?a.o.seek(a.getCurrentTime()):s1(a);a.H=new eu(a.k,a.j.lengthSeconds,a.j.j.k[0].mimeType,a.j.j.j[0].mimeType);try{var b=gu(a.H)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);Av(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ba=new mu(b,!0);fu(a.H,w(a.o.HA,a.o))}}
f.Kv=function(a){if(this.G){var b=this.G;if("com.microsoft.playready"==b.j.j){for(var c=new Uint8Array(0),d=new DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var g=d.getUint32(e);if(1>g)break;var h=d.getUint32(e+4);if(1836019574==h)e+=8;else{if(1886614376==h){var h=a.subarray(e,e+g),k=new Uint8Array(c.length+h.length);k.set(c);k.set(h,c.length);c=k}e+=g}}a=c;0!=a.length&&u0(b,new s0(a),!1)}}};f.Mv=function(a){w1(this,a.reason,a.video.info,a.j.info);var b=XI(this.j);b&&b.B(a.video)};
f.Lv=function(a){x1(this,a.reason,a.j.info)};f.Zh=function(a){if(a.k)Av(this,a.errorCode,void 0,a.j);else{var b;if(b=this.C.experiments.A&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.j,b=z()-b.ty>zr.B;if(this.B&&(this.B.onError(a.errorCode,a.j),b))this.B.onError("staleconfig");b&&this.publish("signatureexpired")}};f.pauseVideo=function(a){W(this.A,64)&&!a&&m1(this,ws(this.A,8));this.k&&(a&&!W(this.A,128)&&m1(this,vs(this.A,256)),this.k.pauseVideo())};
function y1(a){a.pauseVideo(!0);a.k&&(k1(a),a.H&&(a.H.dispose(),a.H=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.J=NaN,ns(a.k),W(a.A,128)||m1(a,ts(a.A)))}function v1(a,b,c,d){if(a.k&&a.O.j){b=Kc(b||0,Hr(a.j),O1(a));b>=O1(a)?r1(a,!0):r1(a,!1);a.j.startSeconds=b;a.J=b;var e=a.ua;e.j=b;e.k=!0;c?a.Ri():(P1(a),d&&(a.X||(a.X=new Hv(a.Ri,d,a)),a.X.start()),Q1(a,!0));a.K&&b>a.j.uf&&(a.D.Dg(a.K),a.K=null);b<a.Pc()&&m1(a,ws(a.A,2));a.publish("seekto",a,b)}else a.j.startSeconds=b||0}
function P1(a){W(a.A,32)||(m1(a,vs(a.A,32)),W(a.A,8)&&a.pauseVideo(!0),a.publish("beginseeking",a))}f.Ri=function(){if(!isNaN(this.J)&&this.k){var a=this.Pc();!this.j.Va&&this.J>=Math.floor(a)?(this.J=a,this.publish("endseeking",this),this.pauseVideo(!0),this.hf()):(this.o&&this.o.seek(this.J),ks(this.k,this.J))}this.X&&(this.X.dispose(),this.X=null);W(this.A,32)&&(m1(this,vs(ws(this.A,32),16)),this.publish("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.J))return this.J;var a=0;this.k&&1<=this.k.readyState?a=this.k.getCurrentTime():this.j&&(a=this.j.Uh||this.j.startSeconds||0);return a};f.Pc=function(){return aJ(this.j)?Infinity:this.j&&this.j.lengthSeconds?this.j.lengthSeconds:O1(this)?O1(this):0};
f.hz=function(){var a=new C0;if(this.$&&this.o){var b=this.$;a.o=b.C;a.B=b.D;a.j=EG(b);b=this.o;b.j&&!iu(b.j)&&(a.k=Vr(b.j.k.buffered,b.A),a.A=Vr(b.j.j.buffered,b.A));a.j=$Z(b.H);EG(b.F);CG(b.F);DG(b.F)}else this.k&&(a.k=Vr(this.k.buffered,this.getCurrentTime()));return a};function R1(a){if(a.k)if(aJ(a.j))a=1;else if(bJ(a.j))if(a.la)a=0;else{var b=a.k;a=(0<Ur(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Pc()}else a=Zq(a.k);else a=0;return a}
h1.prototype.getDebugInfo=function(a){var b={};a&&(this.B?ra(b,this.B.getDebugInfo()):this.j&&(b.cpn=this.j.ya),this.k&&ra(b,this.k.getDebugInfo()),this.o&&ra(b,this.o.getDebugInfo()),W(this.A,128)&&(b.debug_error=this.A.j),(this.N.length||0<Or(this.D.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.j.videoId;return b};f=h1.prototype;f.kz=function(){if(this.G){var a=this.G,b=this.j.C;a.A=b;a.publish("oauthtoken",b)}l1(this)};
f.jz=function(a){Av(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};function l1(a,b){a.publish("internalvideodatachange",b||"dataupdated",a,a.j)}function B1(a){D("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.W.listen(this.k,a,this.VE)},a)}
f.VE=function(a){var b=a.target;if(b==this.k&&b.currentSrc){switch(a.type){case "error":if(this.C.Bk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(w(function(){this.k&&(this.j.U&&this.k.load(),D1(this))},this),500);if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":if(!this.j.yb||this.j.k&&!this.j.k.isLive)b=b.duration||0,(!this.H||isFinite(b)&&0<b)&&1!=b&&q1(this,b);break;case "ratechange":this.o&&(this.o.H.o=Math.max(1,this.k.playbackRate));this.D.vf();
break;case "ended":m1(this,ts(this.A,4));this.Lk();break;case "loadedmetadata":this.j.startSeconds&&(this.k.currentTime=this.j.startSeconds),this.C.te&&this.j.startSeconds&&(this.V=this.j.startSeconds,this.pauseVideo(!0));case "loadstart":Lf(this.na);this.bl()||(this.na=Kf(w(this.bl,this),100));break;case "progress":this.V&&this.k.seekable.length&&this.k.seekable.end(0)>this.V&&(this.k.currentTime=this.V,this.V=NaN,this.va=this.W.listen(this.k,"canplay",this.ax));case "suspend":Q1(this);this.publish("onLoadProgress",
this,R1(this));break;case "seeked":S1(this);break;case "seeking":this.o&&this.o.seek(b.currentTime);break;case "playing":zx("plev",void 0,this.F.j);break;case "timeupdate":this.xa=!0;this.bl();S1(this);Q1(this);this.publish("onVideoProgress",this,b.getCurrentTime());break;case "waiting":if(this.C.experiments.ma&&0<b.played.length&&0==b.buffered.length&&0<b.currentTime&&5>b.currentTime&&this.o)return}this.publish("videoelementevent",a);a=rs(this.A,a,this.ua);m1(this,a)}};
f.bl=function(){var a=this.k;a&&this.xa&&!this.j.Xk&&!Dx("vfp",this.F.j)&&2<=a.readyState&&!a.ended&&0<Ur(a.buffered)&&zx("vfp",void 0,this.F.j);if((a=this.k)&&!this.j.Xk&&0<(a.duration||0)&&(!Dx("pbr",this.F.j)&&ls(a)&&2<=a.readyState&&0<Ur(a.buffered)&&EZ(this.F,"pbr"),0<a.getCurrentTime())){Lf(this.na);N(this.ja);this.j.Xk=!0;T1(this);if(this.B){a=this.B;if(!a.o){var b=X0(a,"playback");a.H=[10+a.j.j.Sh,10,10,40+a.j.j.tk-a.j.j.Sh,40];var c=a.k;Lf(c.C);c.C=NaN;c.C=Kf(w(c.update,c),100);c.B=J0(c.k);
c.A=F0(c.k);b.ug=V0(a,!0);b.Xw=!0;b.send();!a.j.k.mc||a.j.k.fi||a.o||(b=a.j.k,c=a.j.j,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.ya,plid:c.playbackId,ei:c.G,referrer:UZ(b),eurl:b.F,framer:b.R,feature:b.O,fmt:c.o?c.o.id:0,ptk:c.K,skl:c.$o,access_token:c.C,ucid:c.Yo},ra(b,$0(a)),delete b.fexp,b=Ke(a.j.k.A+"user_watch",b),bg(b));a.j.j.K&&(b=a.j.k,c=a.j.j,b=Ke(b.A+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.ya,plid:c.playbackId,ei:c.G,ptk:c.K,oid:c.So,ptchn:c.Rh,pltype:c.To,content_v:b.N}),bg(b));
if(a.j.j.Zo&&a.j.k.we&&!a.o){var b=a.j.k,c=a.j.j,d={noflv:1,video_id:c.videoId,cpn:c.ya,el:b.da,ps:b.k,referrer:UZ(b),eurl:b.F,framer:b.R,fmt:c.o?c.o.id:0,ptk:c.K,subscribed:c.subscribed,t:c.$v};b.autoplay&&(d.autoplay="1");c.Cd&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.$h&&(d.tmi="1");b=Ke(a.j.k.A+"get_video",d);bg(b)}a.j.j.ci&&(a.ki("playback"),a.B||d1(a));a.j.j.oe||a1(a);a.o=!0;a=a.k;a.j=a.k.o();a.B=J0(a.k);.5<a.j-a.o&&(a.o=a.j)}M(w(this.Lk,this),4500)}this.publish("playbackstarted");
this.o&&(this.o.ca=!0);Lx()&&Px();return!0}return!1};
function T1(a){var b=z(),c=a.getCurrentTime(),d=a.j;if(!Dx("pbs",a.F.j)){var e=1E3*(c-d.startSeconds);0>e&&(e=0);EZ(a.F,"pbs",b-e);wx.measure&&wx.getEntriesByName&&(wx.getEntriesByName("mark_navigation_requested")[0]?wx.measure("measure_above_the_fold","mark_navigation_requested"):wx.measure("measure_above_the_fold"))}d.videoId&&a.F.info("docid",d.videoId);d.G&&a.F.info("ei",d.G);d.ya&&a.F.info("cpn",d.ya);0<d.startSeconds&&a.F.info("start",d.startSeconds.toString());a.k&&ls(a.k)&&a.F.info("paused",
1);d.o?a.F.info("fmt",d.o.id):a.F.info("fmt","-1");d.Ia&&a.F.info("yt_pre",a.Ca?"2":"1");a.C.Za&&a.F.info("yt_fs","1");a.F.info("tds",Math.round(R1(a)*a.Pc()).toString());a.F.info("cmt",c.toFixed(3));if(a.o){b=a.o;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.U),c.length&&(c=c[0],W_(b,"vri",c.fetchStart),W_(b,"vdns",c.domainLookupEnd),W_(b,"vreq",c.requestStart),W_(b,"fvb",c.responseStart),W_(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.N),
c.length&&(c=c[0],W_(b,"ari",c.fetchStart),W_(b,"adns",c.domainLookupEnd),W_(b,"areq",c.requestStart),W_(b,"avb",c.responseStart),W_(b,"arc",c.responseEnd)));var b=b.ia,g;for(g in b)zx(g,b[g],a.F.j)}}f.ax=function(){this.va&&(this.W.Aa(this.va),this.va=void 0,ms(this.k))};
function Q1(a,b){if(a.k&&a.j){var c=a.getCurrentTime();if(c<Hr(a.j))v1(a,O1(a),!0);else{if(a.o){var d=a.o;if(d.j){d.resume();if(d.K&&!iu(d.j)){var e=d.A<=c&&c<d.A+10,g=0<=Sr(d.j.j.buffered,d.A+S_.j)&&0<=Sr(d.j.k.buffered,d.A+S_.j);e&&g&&(d.K=!1)}d.K||(d.A=c);T_(d)}}bJ(a.j)&&c>a.Pc()&&(d=a.Pc(),0==d&&(d=c),q1(a,1.2*d));5<c&&(a.j.startSeconds=c);(d=Lx())?Ox(a.ca):N(a.ca);ls(a.k)||(e=w(a.Py,a),a.ca=a.k.played&&0==a.k.played.length?d?Mx(e,100):M(e,100):d?Mx(e,500):M(e,500));a.j.Uh=c;!b&&a.mb()&&a.B&&
(d=a.B,d.k.update(),d.j.j.lengthSeconds&&d.j.j.oe&&!d.N&&H0(d.k)>=d.j.j.oe&&(d.o&&d.j.j.oe&&(e=X0(d,"delayplay"),e.Qy=!0,e.send(),d.N=!0),a1(d)),e=d.O,!e.A&&e.j.we&&!e.j.fi&&e.k.lengthSeconds&&H0(e.B)>=e.k.Pp&&d.O.send());a.publish("progresssync",a,b);a.j.Ry=c}}}f.Py=function(){if(this.k){var a=this.getCurrentTime();if(W(this.A,8)&&us(this.ua,a,Date.now(),Vr(this.k.buffered,a))){var b=this.Pc();b&&1>Math.abs(b-a)?this.hf():m1(this,vs(this.A,1))}Q1(this)}};
function m1(a,b){var c=a.A;if(b.k!=c.k||b.j!=c.j){c=new g1(b,a.A);a.A=b;0>Bv(c,8)&&(N(a.ja),r1(a,!1));0<Bv(c,32)&&r1(a,!1);bJ(a.j)&&W(c.state,2)&&(q1(a,a.getCurrentTime()),Q1(a,!0));a.B&&c1(a.B,c);var d=a.D;if(d.Id&&!d.wi)if(Gs(d),W(c.state,2)){d.B=null;for(var e=[],g=0;g<d.k.length;g++){var h=d.k[g];h.active&&2147483647>h.end&&e.push(h)}g=Or(d.j,2147483646);g=g.concat(Pr(d.j,2147483646));e=Fs(d,e).concat(Es(d,g));Hs(d,e)}else W(c.state,16)?(d.o=Ds(d),d.A.stop(),d.A.start(),d.qc()):(d.A.stop(),W(c.j,
16)?(d.o=Ds(d),null!=Qr(d.j,Math.max(d.o-2E3,0))&&(d.Og=nn(w(d.qc,d)))):d.qc());a.publish("statechange",c)}}f.iz=function(){this.j.Va||this.publish("connectionissue")};f.Nv=function(){ks(this.k,Math.max(0,this.k.currentTime+.1))};function S1(a){W(a.A,2)||W(a.A,32)||(a.J=NaN)}function r1(a,b){a.j.yb&&a.la!=b&&(a.la=b,a.publish("liveviewshift",b))}function K1(a,b){U1(a,b);a.C.Mc?M(w(function(){ms(this.k)},a),0):ms(a.k)}
function U1(a,b){zx("vta",void 0,a.F.j);is(a.k,b);a.H&&!b.j&&(a.H=null);if(wE(a.j)){var c=wE(a.j);if(c&&!a.G&&a.k){var d=a.j.o.mimeType;if(c=nt(a.k,d,c)){a.G=new t0(a.k,c);a.G.subscribe("newsession",a.My,a);a.G.subscribe("licenseerror",a.Iy,a);a.G.subscribe("qualitychange",a.Jy,a);a.G.subscribe("heartbeatparams",a.Ly,a);var e=a.G,g=a.j.C;e.A=g;e.publish("oauthtoken",g);S(a,a.G);a.k.canPlayType(d,c.j)}else Av(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.H&&Rx();N(a.ja);a.ja=M(w(a.Ky,
a),15E3)}function k1(a){a.G&&(a.G.dispose(),a.G=null)}f.My=function(a){var b={};ra(b,this.C.o);b.cpn=this.j.ya;this.j.F&&(b.vvt=this.j.F);this.C.Wa&&(b.authuser=this.C.Wa);this.C.pageId&&(b.pageid=this.C.pageId);cc(a.B,b);Cr(a,a.C);this.publish("newlicensesession",a)};f.Iy=function(a,b,c){Av(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Jy=function(){Xq(this,"r");l1(this)};f.Ly=function(a){this.publish("heartbeatparams",a)};f.Ky=function(){if(this.B)this.B.onError("qoe.start15s");this.publish("loadsofttimeout")};
function q1(a,b){a.j.lengthSeconds!=b&&(a.j.lengthSeconds=b,l1(a))}f.Lk=function(){if(!this.ha){var a=new w0(this.j),b;"c1a"in a.o?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)M(w(this.Lk,this),4500);else{var c;if(a.j&&a.j.ca){b=[a.j.ca];for(c in a.k)if(a.o[c]&&a.k[c]){var d=a.k[c](a.o);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.K||(b=X0(a,"atr"),b.C=c,b.send(),a.K=!0),this.ha=!0)}}};
function O1(a){if(!a.k)return 0;if(a.o){var b=f0(a.o);return Math.max(b,Hr(a.j))}a=a.k;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}f.uv=function(){return this.k?this.k.playbackRate:1};var V1={XJ:0,WJ:-1,qI:-2};function W1(a){this.j=a}f=W1.prototype;f.Sk=function(){return tQ(this.j)};f.Tk=function(){return this.j.A};f.Jf=function(){return this.j.A};f.mj=function(){var a=this.j.o;return null!=a?a:new WP};f.Eg=function(){var a=this.j;null!=a.j&&a.j.show()};f.xi=function(){};f.un=function(){return this.j.C};f.ym=function(){return!1};f.Ti=function(){return this.j.F};f.hide=function(){};function sX(a,b){dm.call(this,"adsManagerLoaded");this.o=a;this.A=b}A(sX,dm);function X1(a,b,c,d){a.o.Qc(new W1(b),c,d);return a.o};function Y1(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function Z1(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ia(a.getMessage)?a.getMessage():a.message,d=La(c||"",50),b.error_message=d)}}function $1(a,b){if(a){var c=gU(a);if(c){var d=hU(a)||[];b.ad_id=sb(d,c).join(",");if(c=aU(a))d=jU(a)||[],b.ad_sys=sb(d,c).join(",");xU(a)?b.survey=1:XT(a)&&(b.skip=1)}}}
function a2(a,b){if(a[b])return Y1(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return Y1(a[d]);return!1}function b2(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};function c2(a,b,c,d){this.A=a;this.B=b;this.j=c;this.C=d}c2.prototype.o="";c2.prototype.k="";function d2(a){var b={};b.l_ns=a.B;b.l_state=a.C;b.sst=a.A;b.sidx=0;a.o&&(b.at=a.o);a.k&&(b.ad_id=a.k);return b};var e2=!1;function f2(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"}function g2(){var a=r("window.google_show_companion_ad");ia(a)?a():e2=!0}function h2(){var a=r("yt.www.watch.ads.setCompanion");a&&a()}function i2(a){var b=r("yt.www.watch.ads.showForcedMpu");b&&b(a)}Fi("showCompanionAdLoaded",function(){e2&&(g2(),e2=!1)});function j2(a,b){this.k=a;this.j=b}function k2(a){return a.j-a.k}function l2(a,b){return a.k+b*k2(a)}function m2(a,b){return k2(a)?Kc((b-a.k)/k2(a),0,1):Infinity};function n2(a,b,c){R.call(this);this.o=a;c||(o2(this,!0),a.hide());this.B=b;this.j=null;this.A=!1;this.k=new Hv(this.nm,0,this);S(this,this.k)}A(n2,R);f=n2.prototype;f.show=function(a,b){this.A=!!a;1==this.j||2==this.j||3==this.j&&a||(4==this.j||3==this.j?a||(this.o.show(),o2(this,!1),this.j=null,this.k.stop()):(o2(this,!this.A),this.j=1,b?this.k.start(b):this.nm()))};f.hide=function(){3!=this.j&&(1==this.j||2==this.j?(this.o.hide(),this.j=null,this.k.stop()):(o2(this,!0),this.j=3,this.k.start(this.B)))};
f.nm=function(){switch(this.j){case 1:this.o.show();this.j=2;this.k.start(10);break;case 2:o2(this,this.A);this.A?(this.j=3,this.k.start(this.B)):this.j=null;break;case 3:this.o.hide();o2(this,!1);this.j=4;this.k.start(0);break;case 4:this.j=null}};function o2(a,b){var c=a.o.M();b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}f.stop=function(){for(;null!=this.j&&4!=this.j;)this.k.stop(),this.nm()};f.L=function(){this.o.fa()||this.o.M().removeAttribute("aria-hidden");n2.I.L.call(this)};function p2(a,b,c,d){var e=Math.min(c/(b.qu/b.Db),d/(b.pu/b.rows)),g=b.qu*e,e=b.pu*e,g=Math.floor(g/b.Db)*b.Db,e=Math.floor(e/b.rows)*b.rows,h=g/b.Db,k=e/b.rows,l=Math.floor((c-h)/2);c=Math.ceil((c-h)/2);var p=Math.floor((d-k)/2);d=b.mF*h*-1;var u=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=p+"px";a.marginTop=h;a.marginBottom=h;a.marginLeft=l+"px";a.marginRight=c+"px";a.backgroundImage="url("+b.url+")";a.backgroundPosition=d+"px "+u+"px";a.backgroundSize=g+"px "+e+"px"};function q2(){this.k=this.j=null}function Y(a,b,c){return Of(b,c,void 0)}f=q2.prototype;f.Af=function(a,b){this.j&&this.j.Af(a,b)};f.Ag=function(a,b,c){this.j&&this.j.Ag(a,b,c)};f.Gn=function(a){this.j&&this.j.Gn(a)};f.ub=function(){return this.k.ub()};f.gb=function(){return this.k.gb()};function r2(a,b){T.call(this);this.A=!!b;this.k=a;this.j=new Fv(this);this.o=this.B=null;b&&Wc&&a.setAttribute("draggable","true");s2(this)}A(r2,T);function s2(a){a.o=null;a.B=null;a.j.listen(a.k,t2("over"),a.xA);a.j.listen(a.k,"touchstart",a.yA)}f=r2.prototype;
f.xA=function(a){this.j.removeAll();this.j.listen(this.k,t2("move"),this.Zr);this.j.listen(this.k,t2("out"),this.$r);this.A&&this.j.listen(this.k,t2("down"),this.Yr);this.publish("hoverstart",wh(a),xh(a),a.target);this.publish("hovermove",wh(a),xh(a),a.target)};f.Zr=function(a){this.o&&wh(this.o)==wh(a)&&xh(this.o)==xh(a)&&this.o.relatedTarget==a.target||this.publish("hovermove",wh(a),xh(a),a.target);this.o=null};
f.$r=function(a){a.relatedTarget&&Sd(this.k,a.relatedTarget)?(this.o=a,this.publish("hovermove",wh(a),xh(a),a.relatedTarget)):(this.j.removeAll(),s2(this),this.publish("hoverend",wh(a),xh(a),a.relatedTarget))};
f.Yr=function(a){ha(a.button)&&0!=a.button||(this.j.removeAll(),this.j.listen(document,t2("move"),this.xD),this.j.listen(document,t2("up"),this.yD),Wc?this.j.listen(this.k,"dragstart",this.wD):a.preventDefault(),this.publish("dragstart",wh(a),xh(a),a.target),this.publish("dragmove",wh(a),xh(a),a.target))};f.wD=function(a){a.preventDefault()};f.xD=function(a){var b=a.target==document?null:a.target;this.publish("hovermove",wh(a),xh(a),b);this.publish("dragmove",wh(a),xh(a),b)};
f.yD=function(a){this.j.removeAll();a.target&&Sd(this.k,a.target)?(this.j.listen(this.k,t2("move"),this.Zr),this.j.listen(this.k,t2("out"),this.$r),this.j.listen(this.k,t2("down"),this.Yr),this.publish("dragend",wh(a),xh(a),a.target)):(s2(this),this.publish("dragend",wh(a),xh(a),a.target),this.publish("hoverend",wh(a),xh(a),a.target))};
f.yA=function(a){var b=a.changedTouches[0];b&&(this.j.removeAll(),this.j.listen(this.k,"touchmove",this.FA),this.j.listen(this.k,"touchend",this.pr),this.j.listen(this.k,"touchcancel",this.pr),this.B=b.identifier,this.publish("hoverstart",b.pageX,b.pageY,a.target),this.publish("hovermove",b.pageX,b.pageY,a.target),this.A&&(this.publish("dragstart",b.pageX,b.pageY,a.target),this.publish("dragmove",b.pageX,b.pageY,a.target)))};
f.FA=function(a){var b=u2(this,a);b&&(a.preventDefault(),this.publish("hovermove",b.pageX,b.pageY,a.target),this.A&&this.publish("dragmove",b.pageX,b.pageY,a.target))};f.pr=function(a){var b=u2(this,a);b&&(a.preventDefault(),this.j.removeAll(),s2(this),this.A&&this.publish("dragend",b.pageX,b.pageY,a.target),this.publish("hoverend",b.pageX,b.pageY,a.target))};function u2(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.B)return d}return null}
function t2(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.L=function(){this.j.removeAll();r2.I.L.call(this)};function v2(a,b,c,d){this.width=b;this.k=c;this.B=d;this.j=b-c-d;this.A=Kc(a-c,0,this.j);this.position=this.A+c;this.o=this.A/this.j};function w2(){X.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.o=this.template.j["ytp-progress-tooltip-arrow"];this.j=-1;this.ja="";this.k=new j2(0,0);this.hide()}A(w2,X);
f=w2.prototype;f.Yi=!1;f.Qe=null;f.Xg=null;f.disable=function(){this.Yi=!0};f.show=function(){this.Yi||w2.I.show.call(this)};function x2(a){fh(a.M(),"with-thumbnail");a.Qe=null;a.Xg=null;a.template.j["ytp-progress-tooltip-thumbnail"].removeAttribute("style")}f.mz=function(a,b){a<=this.j&&this.j<=b&&y2(this)};function y2(a){var b=II(a.Xg,a.j,108);p2(a.template.j["ytp-progress-tooltip-thumbnail"],b,108,60)}f.L=function(){this.o=this.Xg=this.Qe=null;w2.I.L.call(this)};function z2(a,b){var c;c=a.ub().width;var d=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":Of("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-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-load-progress"],["div","ytp-hover-progress"],
["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],["div","html5-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","html5-clip-marker","yt-uix-tooltip"],{title:Of("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Of("YTP_TOOLTIP_CLIP_MARKER")}]];
zE.call(this,d);this.A=c;this.D=1;this.o=this.fb=this.J=0;this.Ia=!1;this.K=this.X=0;this.ia=this.template.j["html5-ad-progress-list"];this.tb=this.template.j["ytp-marker-progress-list"];this.Ba=this.template.j["ytp-marker-crenellation-list"];this.H={};this.R={};this.P=Infinity;this.$=this.template.j["ytp-clip-end"];this.ma=new r2(this.$,!0);S(this,this.ma);this.ma.subscribe("hoverstart",this.Mo,this);this.ma.subscribe("hoverend",this.Lo,this);nv(this,this.$,"click",this.Hk);this.la=this.template.j["ytp-clip-end-exclude"];
this.Ca=this.template.j["ytp-clip-start-exclude"];this.O=0;this.ca=this.template.j["ytp-clip-start"];this.na=new r2(this.ca,!0);S(this,this.na);this.na.subscribe("hoverstart",this.Mo,this);this.na.subscribe("hoverend",this.Lo,this);nv(this,this.ca,"click",this.Hk);this.va=this.template.j["ytp-unloaded-progress"];this.ha=this.template.j["ytp-load-progress"];this.G=0;this.xa=this.template.j["ytp-play-progress"];this.B=0;this.N=this.template.j["html5-progress-bar"];this.k=this.C=null;this.V=new X(["div",
"html5-scrubber-button"]);S(this,this.V);this.V.Y(this.N);this.rb=this.template.j["ytp-scrubber-pull-indicator"];this.cb=0;this.oa=!1;this.ua=new Lc;this.j=new j2(0,0);this.ib=!1;this.W=b;A2(this)}A(z2,zE);f=z2.prototype;f.oF=function(){this.k&&this.k.show()};
f.qF=function(a,b,c){var d=Hg(this.M()),e=B2(this).j,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=m2(this.j,Number(c.getAttribute("data-position")))*e+Hg(this.N).x);this.ua.x=a-d.x;this.ua.y=b-d.y;b=this.ib?this.j.j:0;d=B2(this);this.k&&(a=this.k,a.Yi||(c=50,a.Qe?(c=108,g&&(c*=2)):g&&(c=108),a.M().style.padding="2px",a.M().style.width=c+"px",e=c/2+2,e=(new v2(d.position,d.width,e,e)).position-e,a.M().style.left=e+"px",a.o.style.left=Kc(d.position,0,d.width)-e-5+"px",d=l2(a.k,d.o),a.qa(ov(d-b),
"timestamp"),a.Qe&&(b=nI(a.Qe,c),b=a.Qe.j[b].Ji(d),0<b&&b!=a.j&&(a.j=b,y2(a))),g?(O(a.M(),"with-text"),a.qa(g,"text")):fh(a.M(),"with-text")))};f.pF=function(){this.k&&this.k.hide()};f.nF=function(a,b,c){a=C2(this);this.cb=a.k-B2(this).o*(a.k+a.B);this.k&&this.k.hide();this.o&&(Lf(this.o),this.o=0);this.fb=b;this.oa=!0;this.publish("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.rF=function(){this.X=0;fh(this.M(),"ytp-pull-ui");fh(this.M(),"ytp-pulling");if(0<this.J){var a=z(),b=this.J,c=B2(this).position;this.o&&Lf(this.o);this.o=lv(w(this.Ms,this,a,b,c),0)}this.k&&this.k.show();this.oa=!1;this.publish("endseeking")};f.Ms=function(a,b,c){var d;d=(z()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.B*this.A-c);if(0>d||1<d)d=1;D2(this,(1-d)*b,e,this.B);this.o=1>d?lv(w(this.Ms,this,a,b,c),0):0};
function D2(a,b,c,d){b=Kc(b,0,40);a.J=b;var e=a.D,g=Math.max(k2(a.j)/a.A,1);a.D=b/40*(g-1)+1;b=a.A*a.D;a.K=Kc(d*b-c,0,b-a.A);e!=a.D&&A2(a)}
f.sF=function(a,b){var c=!1,d=!1,e=B2(this);3600<=k2(this.j)&&(D2(this,this.fb-b-10,e.position,e.o),d=!0,c=4<this.J,e=B2(this));P(this.M(),"ytp-pull-ui",d);c&&O(this.M(),"ytp-pulling");c=0;e.k&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);!this.o||c&&c==this.X||N(this.o);c&&(this.o=lv(w(this.Rp,this,z(),this.K),0));this.X=c;this.publish("seekto",l2(this.j,e.o),!1)};
f.Rp=function(a,b){if(this.X){var c=this.A*(this.D-1);this.K=Kc(b+this.X*(z()-a)*.3,0,c);A2(this);this.publish("seekto",l2(this.j,B2(this).o),!1);0<this.K&&this.K<c&&(this.o=lv(w(this.Rp,this,a,b),0))}};
function A2(a){var b=B2(a),c=Nd(a.Ba),d=0;if(8<a.J)for(var e=(-b.k+b.width)/b.j*(k2(a.j)/60),g=Math.ceil(-b.k/b.j*(k2(a.j)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Ba.appendChild(h));d++;h.className=0==g%60?"ytp-60m-progress":0==g%30?"ytp-30m-progress":0==g%15?"ytp-15m-progress":"ytp-1m-progress";h.style.left=60*g/k2(a.j)*b.j+"px"}for(e=c.length-1;e>=d;e--)Ld(c[e]);c=(-b.k+b.width)/b.j;a.qa(ov(l2(a.j,-b.k/b.j)),"boundTimeLeft");a.qa(ov(l2(a.j,c)),"boundTimeRight");a.N.style.width=
b.j+"px";a.M().style.height=a.J+(a.W?20:8)+"px";b=b.k;wg(a.N,"transform",b?"translatex("+b+"px)":"");a.V.M().style.height=a.J+(a.W?12:6)+"px";for(var k in a.H)E2(a,a.H[k],a.R[k]);F2(a);G2(a,a.B,a.G)}function H2(a){var b=Math.floor(a.j.j),c=Math.floor(l2(a.j,a.B));a.template.update({ariamin:Math.floor(a.j.k),ariamax:b,arianow:c,arianowtext:Of("YTP_PROGRESS_LABEL",{PLAY_PROGRESS:c,DURATION:b})})}
function B2(a){var b=a.ua.x;if(a.oa)var c=a.W?32:16,b=(b+a.cb-c/2)/(a.A-c)*a.A;c=a.A*a.D;b=Kc(b,0,a.A);return new v2(b,a.A,-a.K,-(c-a.K-a.A))}function C2(a){var b=a.W?32:16,c=a.A*a.D;return new v2(a.B*(c-b)+b/2,c,b/2,b/2)}
function G2(a,b,c){if(b<a.O||b>a.P)a.Hk();else{a.B=b;a.G=Math.max(a.B,c);H2(a);var d=m2(a.j,a.O),e=m2(a.j,a.P),g=Kc(b,d,e);c=a.Ia?1:Kc(c,d,e);var h=g;g<e&&(h=a.A*a.D,h=(g*h-g)/h);a.xa.style.left=pv(d)+"%";wg(a.xa,"transform","scalex("+(h-d)+")");wg(a.V.M(),"transformOrigin",pv(b)+"%");b=C2(a).position+"px";a.V.M().style.left=b;a.rb.style.left=b;a.ha.style.left=pv(d)+"%";wg(a.ha,"transform","scalex("+(c-d)+")");a.va.style.left=pv(d)+"%";wg(a.va,"transform","scalex("+(e-d)+")")}}
function F2(a){var b=a.O>a.j.k,c=0<a.j.j&&a.P<a.j.j;P(a.M(),"ytp-clip-start-enabled",b);P(a.M(),"ytp-clip-end-enabled",c);b=b?m2(a.j,a.O):0;c=c?m2(a.j,a.P):1;a.ca.style.left=pv(b)+"%";a.$.style.left=pv(c)+"%";a.Ca.style.width=pv(b)+"%";a.la.style.left=pv(c)+"%";a.la.style.width=pv(1-c)+"%"}f.Mo=function(){O(this.M(),"ytp-clip-hover")};f.Lo=function(){fh(this.M(),"ytp-clip-hover")};f.Hk=function(){this.O=0;this.P=Infinity;F2(this);G2(this,this.B,this.G)};
function E2(a,b,c){var d=B2(a).j,e=m2(a.j,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=zs(b);var g=a/2,d=Kc(e,g,d-g)-g;break;default:a=Math.min(Math.min(m2(a.j,b.end/1E3)*d,d)-e,zs(b)),d=Kc(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function I2(a,b){D(b,function(a){if(a.visible){var b=a.getId();if(!this.H[b]){var e=document.createElement("div");a.tooltip&&(e.setAttribute("data-tooltip",a.tooltip),e.setAttribute("data-position",a.start/1E3));this.H[b]=a;this.R[b]=e;E2(this,a,e);"ytp-chapter-marker"==a.style?this.tb.appendChild(e):this.ia.appendChild(e)}}else J2(this,a)},a)}function K2(a,b){D(b,function(a){J2(this,a)},a)}function J2(a,b){var c=b.getId();a.H[c]==b&&(Ld(a.R[c]),delete a.H[c],delete a.R[c])}
function L2(a,b){b?a.C||(a.C=new r2(a.N,!0),a.C.subscribe("hoverstart",a.oF,a),a.C.subscribe("hovermove",a.qF,a),a.C.subscribe("hoverend",a.pF,a),a.C.subscribe("dragstart",a.nF,a),a.C.subscribe("dragmove",a.sF,a),a.C.subscribe("dragend",a.rF,a)):a.C&&(a.C.dispose(),a.C=null)}f.L=function(){this.o&&(N(this.o),this.o=0);L2(this,!1);this.ha=this.ca=this.Ca=this.$=this.la=this.ia=null;this.R={};this.va=this.N=this.xa=null;this.W=!1;z2.I.L.call(this)};function M2(a,b,c,d){T.call(this);this.j=a;this.type=b+"_"+c;this.k=d;this.o=null;this.J=c}A(M2,T);M2.prototype.B=function(){return this.type};M2.prototype.getCurrentAd=function(){return this.k?this.k.getCurrentAd():null};function N2(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=t;this.skipTime=0;this.videoUrl=this.videoId=""};function O2(a){this.j=a}var P2=[1,2];function Q2(a){switch(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}
function R2(a){switch(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}};function S2(a,b){this.j=a;this.A=b}S2.prototype.B=null;S2.prototype.k=NaN;function T2(a,b,c){a.j.publish("AD_LOGGING_EVENT",b,c)}function U2(a){V2(a);var b=W2(a);if(a.o){var c=X2(a.A),d=a.o.y-c.top,d=Math.round(a.o.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}T2(a,15,b)}function Y2(a){V2(a);var b=W2(a);if(isNaN(a.k))V2(a);else{var c=z()-a.k;b.ad_stl=c}T2(a,4,b)}function Z2(a){V2(a);var b=W2(a),c=a.j.Mn();c?b.ad_fmt=c:V2(a);T2(a,5,b)}
function $2(a){var b=W2(a),c=a.j.Mn();c?b.ad_fmt=c:V2(a);T2(a,14,b)}function W2(a){var b={},c=a.j.o,d=a.j.gj(),e=a.j.bm();$1(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=uj(e),b.ad_dom=c,a.A.ea.A&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.k?e.k.Nf():null)&&(b.ad_cpn=e);b.at=a.j.B();return b}function V2(a){a.B||(a.B="InstreamAdDisplay ("+a.j.B()+")")};function a3(a,b,c,d,e,g){M2.call(this,b,a,2,c);this.j.subscribe("onVolumeChange",this.fq,this);this.j.subscribe("control_toggle_play_pause",this.gq,this);this.j.subscribe("control_play",this.Vl,this);this.j.subscribe("control_pause",this.Ul,this);this.H=d;this.C=new S2(this,this.j);this.A=new Fv(this);this.G=this.D=!1;this.F=0;this.N=e;this.K=!!g}A(a3,M2);a3.j=2E3;f=a3.prototype;f.Vb=null;f.dg=!1;f.eh=null;f.bh=null;f.fh=null;
f.show=function(){this.C.k=z();var a;if(a=this.H){var b=tj(a),b=b.v||b.video_id;if(!b){var c=Ce(ze(a)[5]||null).match(/^\/watch\/([^\/]*)$/i);c&&(b=c[1])}b||(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),null!=a&&1<a.length&&(b=a[1]));a=b?new zr({video_id:b,dash:"0"}):null}else a=null;this.o=a;var d;a=new N2;a.isSkippable=this.N;a.skip=w(this.Ny,this);a.skipShown=w(this.k.Rl,this.k);if(b=this.getCurrentAd())a.clickThroughUrl=uU(b)||"",a.skipTime=qU(b,vU(b))||0;this.o?(this.o.Cd=!0,d={video_id:this.o.videoId},
a.videoId=this.o.videoId,this.o.subscribe("onStatusFail",this.iq,this),this.o.subscribe("dataloaded",this.hq,this),b=this.j.S(),b=$b(b.B),b.autoplay="1",b=new OZ(b),b.da="adunit",b.D=this.type,b=RZ(b,this.o,this.j.app.k.ub()),$I(this.o,b)):(this.H&&(a.videoUrl=this.H),b3(this));this.D||(c3(this.j,-1,d,a),this.xp())};f.Ny=function(){this.j.A.o.T("skip")};function d3(a){a.o&&(a.o.unsubscribe("onStatusFail",a.iq,a),a.o.unsubscribe("dataloaded",a.hq,a))}
f.hq=function(){d3(this);JF(this.o);var a=new y0(this.j.S(),this.j.app.k),b=this.o;b.j&&b.j.k.length?(a=Eu(this.o.J,A0(a,this.o)))?(a=a.k)?(a=new J(js(a)),a.j.set("autoplay","1"),this.k.setMediaUrl(a.toString()),b3(this)):e3(this,Error("Failed to determine ad media resource.")):e3(this,Error("Failed to determine ad media format.")):e3(this,Error("No selectable formats."))};
function b3(a){if(Xh||2.2<=Ot&&3>Ot||(Xh||Yh)&&!ai){var b=z()-a.C.k,b=a3.j-b;a.F=M(w(a.as,a),Math.max(0,b));O(a.j.Ma(),"ad-interstitial-showing")}else a.as()}
f.as=function(){f3(this);this.Vb=g3(this.j,!0);this.fh=this.j.Ma();if(this.j.ea.D)Ld(ud("video-ad-status-bar"));else{var a=this.j.Ma();this.eh=ud("video-ad-time-left",a);var a=ud("html5-ad-progress-list",a),b=Fd("div");O(b,"ytp-ad-progress");a.appendChild(b);this.bh=b;this.A.listen(this.Vb,"timeupdate",this.eA)}eh(this.fh,["ad-showing","ad-interrupting"]);this.A.listen(NE(this.j.k),"mouseup",this.cA);this.A.listen(this.Vb,"waiting",this.xp);this.j.subscribe("onResize",this.pm,this);try{this.A.listen(this.k,
"adError",this.bA);this.A.listen(this.k,"click",this.aA);this.A.listen(this.k,"complete",this.zm);this.A.listen(this.k,"pause",this.Sq);this.A.listen(this.k,"start",this.Tq);this.A.listen(this.k,"skip",this.dA);this.pm();var c=this.j,d=c.k,e=h3(c);d.Z.S().C&&(Lg(d.j,e),Bg(d.j,0,0));this.K||this.k.start()}catch(g){e3(this,g)}};f.Tq=function(){this.dg=!0;this.D=!1;this.G||(this.G=!0,Y2(this.C),i3(this.j,1));Ws(this.j,!0);c3(this.j,1);this.publish("adPlay",this)};
f.Sq=function(){this.dg=!1;Ws(this.j,!1);c3(this.j,2)};f.dA=function(){$2(this.C);this.zm()};f.zm=function(){this.D||(Z2(this.C),this.dg=!1,this.D=!0,this.G=!1,c3(this.j,0),i3(this.j,0),this.publish("adEnd",this))};f.bA=function(a){e3(this,a.o)};function e3(a,b){a.dg=!1;a.D=!0;c3(a.j,0);a.publish("adError",b)}f.iq=function(){d3(this);e3(this,Error("Request to get video data failed."))};f.aA=function(){U2(this.C);this.publish("select")};f.cA=function(a){a=new Lc(wh(a),xh(a));this.C.o=a};
f.eA=function(a){var b=ov(this.k.getRemainingTime());this.eh.innerHTML=b;b=this.gj()?this.Vb.getCurrentTime()/this.gj():0;b=pv(b);this.bh.style.width=b+"%";this.Vb.ended&&M(w(this.zm,this,a),50)};f.xp=function(){!this.dg&&this.G||c3(this.j,3)};
f.L=function(){this.j.unsubscribe("control_toggle_play_pause",this.gq,this);this.j.unsubscribe("control_play",this.Vl,this);this.j.unsubscribe("control_pause",this.Ul,this);this.j.unsubscribe("onResize",this.pm,this);this.j.unsubscribe("onVolumeChange",this.fq,this);this.A.removeAll();d3(this);this.K||this.k.destroy();this.Vb&&(LE(this.j.k),this.Vb=null);f3(this);this.eh&&(this.eh.innerHTML="",this.eh=null);this.bh&&(Ld(this.bh),this.bh=null);this.fh&&(gh(this.fh,["ad-showing","ad-interrupting"]),
this.fh=null);this.D=!0;a3.I.L.call(this)};function f3(a){a.F&&(N(a.F),a.F=0,fh(a.j.Ma(),"ad-interstitial-showing"))}f.gj=function(){return this.Vb?this.Vb.duration||0:null};f.Mn=function(){return null};f.bm=function(){return this.Vb&&this.Vb.currentSrc?this.Vb.currentSrc:null};f.fq=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Kc(a/100,0,1),this.k.setVolume(a))};f.gq=function(){this.dg?this.Ul():this.Vl()};f.Vl=function(){this.Vb&&(this.k.resume(),this.Tq())};
f.Ul=function(){this.Vb&&(this.k.pause(),this.Sq())};f.pm=function(){KE(this.j.k)&&Lg(KE(this.j.k),h3(this.j))};function j3(){this.o=!1;this.k=0;this.j=""};function k3(a,b,c,d,e){M2.call(this,b,a,2,c);this.j.subscribe("control_toggle_play_pause",this.Dp,this);this.j.subscribe("control_play",this.jl,this);this.j.subscribe("control_pause",this.il,this);this.F=new S2(this,this.j);this.A=new Fv(this);this.C=l3(b);this.C.subscribe("statechange",this.xe,this);this.C.subscribe("internalvideodatachange",this.Cp,this);this.D=this.G=!1;this.K=d;this.H=!!e}A(k3,M2);f=k3.prototype;f.Dj=!1;f.Qg=null;f.Pg=null;f.Rg=null;
f.show=function(){var a=this.j,b=l3(a);m3(a.app,b);this.F.k=z();this.Rg=this.j.Ma();this.C.subscribe("progresssync",this.Gp,this);this.j.ea.D?Ld(ud("video-ad-status-bar")):(a=this.j.Ma(),this.Qg=ud("video-ad-time-left",a),a=ud("html5-ad-progress-list",a),b=Fd("div"),O(b,"ytp-ad-progress"),a.appendChild(b),this.Pg=b);eh(this.Rg,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.pl,this);try{this.A.listen(this.k,"adError",this.Uz),this.A.listen(this.k,"click",this.Tz),this.A.listen(this.k,
"complete",this.Qz),this.A.listen(this.k,"engagedview",this.Rz),this.A.listen(this.k,"pause",this.Lq),this.A.listen(this.k,"start",this.Mq),this.A.listen(this.k,"skip",this.Vz),this.A.listen(this.k,"youTubeChannelMetadata",this.Sz),this.pl(),this.H||this.k.start()}catch(c){n3(this,c)}};
f.Cp=function(a,b,c){if("newdata"==a&&this.o!=c){a={video_id:c.videoId};b=new N2;b.isSkippable=this.K;b.skip=w(this.k.skip,this.k);b.skipShown=w(this.k.Rl,this.k);var d=this.getCurrentAd();d&&(b.clickThroughUrl=uU(d)||"",b.skipTime=qU(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.bm()||"");c3(this.j,-1,a,b)}this.o=c};f.xe=function(a){a=a.state;W(a,128)&&n3(this,Error(a.j.message||"Video player error."))};
f.Mq=function(){this.Dj=!0;this.D=!1;if(!this.G){this.G=!0;Y2(this.F);i3(this.j,1);var a=this.j.S();this.j.ea.D&&"3"==a.j&&(a=this.j.app.k,"3"==a.app.S().j&&(a.j.controls=!1))}c3(this.j,1);this.publish("adPlay",this)};f.Lq=function(){this.Dj&&(this.Dj=!1,c3(this.j,2))};f.Qz=function(){this.D||(Z2(this.F),o3(this),this.D=this.G=!1)};
function o3(a){var b=new j3;b.o=a.D;b.k=z();a.o&&a.o.ya&&(b.j=a.o.ya);y1(l3(a.j));c3(a.j,0,b);i3(a.j,0);a.publish("adEnd",a);b=a.j.S();a.j.ea.D&&"3"==b.j&&(a=a.j.app.k,"3"==a.app.S().j&&(a.j.controls=!0))}f.Rz=function(){var a=this.F;a.j.publish("AD_LOGGING_EVENT",777,W2(a))};f.Vz=function(){this.D=!0;$2(this.F);o3(this)};
f.Sz=function(){var a=this.getCurrentAd();if(a){var b=a.K;if((a=a.H)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.k;c.channelVideoCount=a.videoCount;this.j.publish("publish_external_event","onAdMetadataAvailable",c)}}};f.Uz=function(a){var b={};try{b.error_code=a.o.getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}var d=this.F;V2(d);var e=W2(d);b&&ra(e,b);e.ad_error=32;T2(d,7,e);n3(this,a.o)};
function n3(a,b){a.C.hf();c3(a.j,0);a.publish("adError",b)}f.Tz=function(){U2(this.F);this.k.pause();this.publish("select")};f.Gp=function(){var a=this.j.j.Ng();this.j.ea.D||(this.Qg.innerHTML=ov(a.duration-a.current),a=pv(a.current/a.duration),this.Pg.style.width=a+"%")};
f.L=function(){this.j.unsubscribe("control_toggle_play_pause",this.Dp,this);this.j.unsubscribe("control_play",this.jl,this);this.j.unsubscribe("control_pause",this.il,this);this.j.unsubscribe("onResize",this.pl,this);this.A.removeAll();this.C.subscribe("statechange",this.xe,this);this.C.unsubscribe("internalvideodatachange",this.Cp,this);this.C.unsubscribe("progresssync",this.Gp,this);this.H||this.k.destroy();this.Qg&&(this.Qg.innerHTML="",this.Qg=null);this.Pg&&(Ld(this.Pg),this.Pg=null);this.Rg&&
(gh(this.Rg,["ad-showing","ad-interrupting"]),this.Rg=null);this.D=!1;var a=this.j;if(a.o){var b=a.app,a=a.o;p3(b);a!=b.o&&m3(b,b.o)}k3.I.L.call(this)};f.gj=function(){return this.C.Pc()};f.Mn=function(){return this.o&&this.o.o?this.o.o.mimeType:null};f.bm=function(){return this.o&&this.o.U?js(this.o.U.k):null};f.Dp=function(){this.Dj?this.il():this.jl()};f.jl=function(){this.k.resume();this.Mq()};f.il=function(){this.k.pause();this.Lq()};f.pl=function(){Lg(KE(this.j.k),h3(this.j))};function q3(a,b){this.o=a;this.k=b}function r3(a,b,c){a.o.publish("AD_LOGGING_EVENT",b,c)}function s3(a){var b={};$1(a.o.getCurrentAd(),b);a.B&&a.j&&(b.ot=a.j-a.B);var c;c=a.k.isFullscreen()?2:a.k.S().Fd?1:0;b.ad_ps=c;b.at=a.o.B();return b};function t3(a,b,c,d){M2.call(this,b,a,1,c);this.C=new q3(this,b);this.A=new Fv(this);this.D=!!d}A(t3,M2);f=t3.prototype;f.od=null;f.gm=!1;
f.show=function(){if(!this.gm||!u3(this.j)){var a=this.j.Ma();O(a,"ad-showing");this.od=KE(this.j.k);a=this.k.getCurrentAd().getHeight();this.od.style.height=Cg(a,!0);O(this.od,"ad-overlay");this.A.listen(this.od,"mouseup",this.Nz);try{this.A.listen(this.k,"userClose",this.Kz);this.A.listen(this.k,"click",this.Mz);this.A.listen(this.k,"adError",this.Lz);v3(this,"normal");this.D||this.k.start();var b=this.C;b.B=z();var c=s3(b);r3(b,3,c);this.j.subscribe("onResize",this.fj,this);this.j.subscribe("onStateChange",
this.tq,this);this.publish("adEnd",this)}catch(d){this.publish("adError",d)}}};f.L=function(){this.A.removeAll();this.j.unsubscribe("onResize",this.fj,this);this.j.unsubscribe("onStateChange",this.tq,this);var a=this.j.Ma();fh(a,"ad-showing");this.k&&(this.D||this.k.destroy(),this.k=null);this.od&&fh(this.od,"ad-overlay");this.od=null;this.gm=!1;t3.I.L.call(this)};
f.Kz=function(){this.od&&this.k&&this.k.getCurrentAd()&&(this.od.style.height=Cg(0,!0));this.gm=!0;var a=this.C;a.j=z();var b=s3(a);r3(a,6,b)};f.Mz=function(){this.j.pauseVideo();var a=this.C;a.j=z();var b=s3(a);if(a.A){var c=X2(a.k),d=a.A.y-c.top,d=Math.round(a.A.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}r3(a,100,b)};f.Nz=function(a){this.C.A=a.target==a.currentTarget?null:new Lc(a.pageX,a.pageY)};f.Lz=function(a){this.publish("adError",a.o)};
f.tq=function(a){W(a.state,16)&&v3(this,"normal")};function v3(a,b){a.F!=b&&(a.F=b)}f.fj=function(){};function w3(a,b,c,d){R.call(this);this.N=a;this.k=b.j;this.F=b;this.J=b.getId();this.j=c;this.o=d;this.B=new c2(this.k,this.Ee(),c,d);this.C=null;this.K=new sn(this);this.A=new sn(this)}A(w3,R);w3.j="rm";w3.k=10;w3.C=200;w3.A=200;w3.B=190;w3.o=100;f=w3.prototype;f.Wl=null;
f.load=function(){var a;a=this.j;a=a.ea.A?h3(a):a.app.k.k.ub();var b;this.j.ea.j?b=!1:(b=0<(this.o&3)?w3.B:w3.A,b=a.width<w3.C||a.height<b);if(b){b=this.B;var c=d2(b);c.ck_wh=a.width+"x"+a.height;x3(b.j,14,c);h2();this.Je(Error("The player size is too small."))}else if(this.C=this.j.rf){a=this.B;y3(a.j,9,d2(a));a=new xV;(b=this.j.ea.serverPrefetchedVast)&&0<(this.o&3)?(a.adsResponse=b,this.j.ea.serverPrefetchedVast=void 0):a.adTagUrl=this.Ff();b=h3(this.j);a.linearAdSlotWidth=b.width;a.linearAdSlotHeight=
b.height;a.nonLinearAdSlotWidth=b.width;a.nonLinearAdSlotHeight=w3.o;a.aq=SZ(this.j.S());a.j=this.j.S().experiments.experimentIds;if(b=a.aq?bF(this.j.S()):-1)a.lastActivity=b;this.j.ea.tagForChildDirected&&(a.tagForChildDirectedContent=!0);HE(this.j.S(),"937420")&&(a.Sg=!0);b=rr(this.j.app);a.Uc={"[CONTENT_V]":b.videoId,"[CPN]":b.ya,"[LACT]":z3(this)};SZ(this.j.S())||(a.Uc["[LACT]"]="-1");this.C.listen("adsManagerLoaded",this.Kp,!1,this);this.C.listen("adError",this.Jp,!1,this);this.Ki(this.C,a)}};
f.$m=function(){var a=new oL,b=this.j.ea,c=this.j.S();a.baseYouTubeUrl=c.A;a.contentId=rr(this.j.app).videoId;a.Nk=HE(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.D;a.youTubeAdNamespace=this.Ee();b.O&&(a.Qo=!0,a.GD=!0,a.showContentThumbnail=!1,a.Ok=!0,a.Ro=!0,a.useShareButton=!1);return a};f.Ee=function(){return this.N};function A3(a){var b=w3.k;a.k=b;a.B.A=b}
function B3(a,b){a.Wl=b;a.B.o=b.B()}function C3(a,b){var c=r("yt.www.watch.ads.setAdId");c&&c(b);a.B.k=b}function D3(a){a=a.k;return 0==a||-1==a?a:1E3*a}function z3(a){var b=a.j;return{toString:function(){return null==b||b.fa()?b=null:bF(b.S()).toString()}}}
f.Kp=function(a){if(a.A===this){zx("aml");try{var b=this.$m(),c=a.o}catch(d){this.Zd(d);return}this.A.listen(c,"companionBackfill",w(this.FC,this,c));this.A.listen(c,"loaded",w(this.EC,this,c));this.A.listen(c,"adError",w(this.DC,this,c));this.A.listen(c,"allAdsCompleted",t);this.A.listen(c,"contentPauseRequested",t);this.A.listen(c,"contentResumeRequested",t);c=X1(a,this.j.A,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Zd(e)}}};
f.EC=function(a,b){this.A.removeAll();var c=b.getAd(),d=VT(c),e=this.B,g=d2(e);g.ad_man=d?"instream":"overlay";y3(e.j,12,g);e=a.getMediaUrl();switch(d?this.jh(a,c,e):this.Wd(a,c)){case 0:E3(this.F,this.Wl,this.k);break;case 1:a.destroy();this.Je(Error("Unable to create a display state."));break;case 2:c=this.B;x3(c.j,21,d2(c));a.destroy();this.Je(Error("Fallback to next ad."));break;default:a.destroy()}};f.DC=function(a,b){this.A.removeAll();a.destroy();this.Zd(b.o)};
f.Jp=function(a){var b=a.o;"adLoadError"==b.o&&a.A===this&&this.Zd(b)};f.FC=function(){g2()};f.jh=function(a,b,c){C3(this,gU(b));var d;this.j.ea.P?d=new k3(this.Ee(),this.j,a,XT(b)):d=new a3(this.Ee(),this.j,a,c,XT(b));B3(this,d);return 0};f.Wd=function(a,b){C3(this,gU(b));B3(this,new t3(this.Ee(),this.j,a));return 0};f.Zd=function(a){if(a){var b=this.B,c=d2(b);a&&Z1(a,c);x3(b.j,32,c);this.Je(a)}};f.Je=function(){F3(this.F)};
f.L=function(){this.C&&(this.C.Aa("adsManagerLoaded",this.Kp,!1,this),this.C.Aa("adError",this.Jp,!1,this));this.K.removeAll();this.A.removeAll();w3.I.L.call(this)};f.Ki=function(a,b){try{AZ(a,b,this),zx("ar")}catch(c){this.Zd(c)}};function G3(a){this.j=a};function H3(a){M2.call(this,a,2,3,null);this.A=this.C=0}A(H3,M2);H3.prototype.show=function(){var a=r("yt.www.watch.ads.loadAfc");a&&a();this.publish("adEnd",this);this.C=Kf(w(this.D,this),1E3)};H3.prototype.L=function(){I3(this);H3.I.L.call(this)};function I3(a){a.C&&(Lf(a.C),a.A=0)}H3.prototype.D=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.B();10<=this.A||!a?(I3(this),this.publish("AD_LOGGING_EVENT",2,b)):a()&&(I3(this),this.publish("AD_LOGGING_EVENT",3,b))};function J3(a,b,c){w3.call(this,2,a,b,c);this.D=new G3(this.j.ea);f2()}A(J3,w3);J3.prototype.$m=function(){var a=J3.I.$m.call(this);a.vt=0==this.J;a.jE=u3(this.j)?a.vt:!0;return a};J3.prototype.Ff=function(){var a;var b=this.D;a=D3(this);(b=4==this.o&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(0==b.lastIndexOf("http:",0)&&(b=b.substr(5)),a=wj(b,{videoad_start_delay:a})):a="";return a};
J3.prototype.Wd=function(a,b){if(this.j.ea.j)return 1;0==this.k&&(A3(this),y3(this.j,1));return J3.I.Wd.call(this,a,b)};J3.prototype.Je=function(a){var b=this.j.ea;b.j?J3.I.Je.call(this,a):b.ia||this.o&4?(B3(this,new H3(this.j)),E3(this.F,this.Wl,this.k)):J3.I.Je.call(this,a)};function K3(a,b){if(a){this.Fu=a;this.Cu=b;var c,d=this.Fu,e=d.indexOf(";sz=");c=qj(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{nG:d[0],oG:d[1],pG:c})this.Bu=c.nG,this.Du=c.oG,this.Eu=c.pG}}f=K3.prototype;f.Fu="";f.Bu="";f.Cu=!1;f.fo="";f.Du="";f.Eu=null;
f.vj=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x361"));b&12&&d.push("480x70");var e=[],g,h;b&12&&(e.push("300x250"),g="watch-channel-brand-div",h=1);0<(b&3)&&(e.push("300x60"),g="watch-longform-ad",h=1);var k=ac(this.Eu);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.Cu&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.fo||(this.fo=Math.floor(999999999*Math.random()).toString());
k.ord=this.fo;d&&d.length&&Yb(k,"sz");e=rj(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.Bu,"pfadx",this.Du,";",e,"?"].join("")};function L3(a){this.j=a?a:""}L3.prototype.vj=function(a,b){if(b&1){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new J(this.j),g=e.j,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.j};function M3(a,b,c){t3.call(this,1,a,b,c)}A(M3,t3);M3.prototype.fj=function(){};M3.prototype.B=function(){return"1_3"};function N3(a,b,c){w3.call(this,1,a,b,c);a=this.j.ea;this.P=a.vg?new L3(a.adTag):new K3(a.adTag,a.ha)}A(N3,w3);N3.prototype.Ff=function(){return this.P.vj(this.k,this.o)};
N3.prototype.Wd=function(a,b){C3(this,gU(b));var c=null!=b.j?b.j.F:{};if(a2(c,w3.j))return 1==this.o||u3(this.j)||h2(),a.sendImpressionUrls(),this.j.ea.bi?(B3(this,new H3(this.j)),0):2;if(a2(c,"blockAllAds"))return a.sendImpressionUrls(),B3(this,new M3(this.j,a)),0;if(a2(c,"hideMaster"))return B3(this,new M3(this.j,a)),0;if(this.j.ea.j)return 1;B3(this,new t3(this.Ee(),this.j,a));return 0};function O3(a,b,c,d){N3.call(this,a,b,c|d);this.H=c;this.G=d;this.D=null;f2()}A(O3,N3);var P3={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=O3.prototype;f.Ff=function(){if(this.j.ea.vg){var a=new L3(this.j.ea.dynamicAllocationAdTag);return a.vj(this.k,this.H)}a=new K3(this.j.ea.dynamicAllocationAdTag,this.j.ea.ha);return a.vj(this.k,this.H)};
f.Ki=function(a,b){if(this.G){b.youTubeAdType=b2(this.G);var c=this.j.ea.$;c&&(b.youTubeExperimentIds=c);b.Ah=D3(this)}O3.I.Ki.call(this,a,b)};f.jh=function(a,b,c){Q3(this,a);return 1!=this.D&&2!=this.D?1:O3.I.jh.call(this,a,b,c)};f.Wd=function(a,b){Q3(this,a);switch(this.D){case 1:return O3.I.Wd.call(this,a,b);case 2:var c;this.j.ea.j?c=1:(0==this.k&&(A3(this),y3(this.j,1)),C3(this,gU(b)),B3(this,new t3(2,this.j,a)),c=0);return c;default:return 1}};f.Ee=function(){return this.D||0};
function Q3(a,b){var c=b.getCurrentAd(),d=jU(c);d.unshift(aU(c));for(c=0;c<d.length;++c){var e=P3[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0};function R3(a,b){var c=b.ea;this.D=c.Ba;var d=0,c=c.ja.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);w3.call(this,2,a,b,d)}A(R3,w3);R3.k="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";R3.o="43";
R3.j=function(a){var b=new Hu;Ej(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,He:function(){Iu(b,Error(a+" timed out"))},onError:function(c){Iu(b,Error("Problem loading "+a+" with status code "+c.status))},$a:function(a){Mu(b);Ku(b,!0,a)}});return b};R3.prototype.Ff=function(){return""};
R3.prototype.Ki=function(a,b){var c=this.o;c&1||c&4||c&8?this.D?c&8?i2(this.D):("goo.gl"==uj(this.D)?(c=R3.j(R3.k+this.D),Ou(c,function(a){a=dg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new J(a.longUrl);K(a,"video_format",R3.o);return R3.j(a.toString())},this)):c=R3.j(this.D),Ou(c,function(c){b.adsResponse=c.responseText;AZ(a,b,this)},this),Pu(c,null,this.Zd,this)):this.Zd(Error("Invalid empty URL")):this.Zd(Error("Invalid request type: "+
c))};function S3(a,b,c,d){this.j=a;this.A=c;this.o=d;this.B=b;Xh||Yh?this.k="html5_ios":Zh?this.k="html5_android":bs()?this.k="html5_ps3":"leanback"==this.A.da?(a=(Rb(window,"environment","brand")||"").toLowerCase(),this.k="roku"==a||"bskyb"==a?"roku":"html5_tv_leanback"):T3(this)?this.k="html5_desktop":this.k="html5"}var U3="kyvDG3GPNY0 F_HOziu_duk T8uOdgwGUvc Ojs8LzuieSI JzTfd-RlK4M bfHSqiuB_QA b2nJxZl0xEk Bj9O5BESM1o tu3C_TjRpGM FQYmOyuKtwg FEWg27qS_aY 9_edKusM2j0 SbL08XsN9rk u31pf-9Rsjc 64J_K7R7Bu8 wDzg2Eh-TiQ qERY1A8AnM0 B5uvc8NhkwI".split(" ");
function T3(a){return G(U3,a.j.V)||IE(a.A,"952600","952605")&&!a.j.cb};function V3(a,b){t3.call(this,4,a,b)}A(V3,t3);V3.prototype.fj=function(){};V3.prototype.B=function(){return"4_3"};function W3(a,b,c){w3.call(this,4,a,b,c);this.D=new S3(this.j.ea,rr(this.j.app).lengthSeconds,this.j.S(),c)}A(W3,w3);
W3.prototype.Ff=function(){var a;var b=this.D;if(b.j.X&&b.j.V){a={};var c="youtube_watch_"+b.k;a.nw="10613";a.asnw=b.j.X;a.ssnw=b.j.X;a.caid=b.j.V;a.vdur=b.B;a.csid=c;a.resp="vast2";c={};isNaN(b.j.na)||(c._fw_d_001=b.j.na);b.j.ua&&(c._fw_d_002=b.j.ua);b.j.ma&&(c["_fwu:10613:lang"]=b.j.ma);b.j.ca&&(c._fw_dbp=b.j.ca);b.j.oa&&(c._fw_distributorvideoassetid=b.j.oa);c._fw_yt_type=b.j.B?"short":"long";if(T3(b)){a.prof="10613:10613_youtube_html5_2014";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt+emcr";
var d="",e;b.o&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=rj(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"},d+=rj(e,"&")+";");b.o&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=rj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=rj(e,"&")+";");b.o&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=rj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+rj(a,"&")+
";"+rj(c,"&")+";"+b}else{d="10613:10613_youtube_"+b.k.split("_")[0];a.prof="10613:10613_youtube_"+b.k;a.crtp="vast2s";a.flag="+emcr";e={ptgt:"a",slid:"preroll"};var g="";b.j.C&&!b.j.o?g=";linear-skippable":!b.j.C&&b.j.o&&(g=";video");e.slau="preroll"+g;e.w="480";e.h="360";e.tpos="0";e.tpcl="preroll";e.envp=d;e.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+rj(a,"&")+";"+rj(c,"&")+";"+rj(e,"&")}}else a="";return a};W3.prototype.jh=function(a,b){return 0!=this.k?1:W3.I.jh.call(this,a,b,null)};
W3.prototype.Wd=function(a,b){var c=null!=b.j?b.j.F:{};if(a2(c,w3.j))return this.F.A=$b(a),2;if(this.j.ea.j)return 1;if(a2(c,"hideMaster")){if(a.C&&a.C.Ce()){var c=a.C.Ce(),d;d=a.getCurrentAd();if(XK()){var e=d.R;d.R=[];d=e}else d=[];c.impressionUrls=d}B3(this,new V3(this.j,a));return 0}return W3.I.Wd.call(this,a,b)};function X3(a,b,c){w3.call(this,13,a,b,c)}A(X3,w3);var Y3=[{Tm:4,size:"480x70",Kr:"300x250"},{Tm:1,size:"480x360",Kr:"300x60"}];
X3.prototype.Ff=function(){var a=new J(this.j.ea.ib,!0),b=this.o,c=Y3.filter(function(a){return(b&a.Tm)==a.Tm}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Kr}).join(",");K(a,"ciu_szs",c);c=4==(this.o&4);1==(this.o&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.k?c="preroll":-1==this.k&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function Z3(a,b,c){this.o=a;this.j=b;this.k=c||0}Z3.prototype.create=function(a,b){switch(this.o){case 1:return new J3(a,b,this.j);case 2:return new N3(a,b,this.j);case 3:return new O3(a,b,this.j,this.k);case 5:return new W3(a,b,this.j);case 4:return new R3(a,b);case 6:return new X3(a,b,this.j);default:return null}};function $3(a){return 0<((a.j|a.k)&3)};function a4(a,b,c,d,e){T.call(this);this.wa=b;this.o=a;this.j=c;this.B=d;this.A=this.k=null;this.C=!!e;this.D=NaN}A(a4,T);f=a4.prototype;f.tm=!0;f.vb=!1;f.isVisible=!0;f.Tc="unloaded";f.Bm=!1;f.nb=function(){return 0==this.j?b4(this)&&c4(this)?-2147483648:0:-1==this.j||-2==this.j?2147483647:1E3*this.j};function d4(a){return 0==a.j||-2==a.j?!1:ib(a.B,function(a){switch(a.o){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function b4(a){return"loaded"==a.Tc||"error"==a.Tc}
function c4(a){if(!b4(a))throw Error("Preroll status is undefined before ad load.");return 0==a.j&&a.vb}function F3(a){a.Tc="loading";0==a.j&&!hb(a.B,$3)&&Ks(a.o);if(a.C)a.Tc="loaded",a.vb=!0,e4(a);else{var b=a.B.shift();if(b){0==a.j&&f4(a.o,"nl");b=b.create(a,a.o);S(a,b);var c=r("ytplayer.playback_delay");c?a.D=M(w(b.load,b),c):b.load()}else y3(a.o,2,g4(a,{})),h4(a,!1),a.Tc="error",e4(a)}}f.getId=function(){return this.wa};
function i4(a){a.k&&(a.k.unsubscribe("adEnd",a.Ot,a),a.k.unsubscribe("adError",a.Rt,a),a.k.unsubscribe("AD_LOGGING_EVENT",a.Pt,a),a.k.unsubscribe("select",a.Qt,a))}function E3(a,b,c){a.k=b;a.j=c;S(a,a.k);0==a.wa&&(a.o.C.at=a.k.B());a.k instanceof a3||a.k instanceof k3?a.vb=!0:a.k instanceof H3?a.isVisible=!1:a.k instanceof V3?a.isVisible=!1:a.k instanceof M3&&(a.isVisible=!1);a.Tc="loaded";e4(a)}function e4(a){a.publish("adBreakComplete",a)}
f.show=function(){this.Bm?this.k instanceof t3&&v3(this.k,"normal"):(this.Bm=!0,(this.k instanceof a3||this.k instanceof k3)&&f4(this.o,"bs"),this.k.subscribe("adEnd",this.Ot,this),this.k.subscribe("adError",this.Rt,this),this.k.subscribe("AD_LOGGING_EVENT",this.Pt,this),this.k.subscribe("select",this.Qt,this),this.k.show(),h4(this,!0))};function h4(a,b){a.A&&(a.A.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.A.dispose(),a.A=null)}
f.Ot=function(){if(this.vb){i4(this);var a=this.o;if(a.ea.la&&!a.Ol){var b=a.S().A;bg(b+"mac_204?action_fcts=1");a.Ol=!0}}e4(this)};f.Rt=function(a){if(a){var b={};Z1(a,b);g4(this,b);x3(this.o,32,b)}i4(this);e4(this)};f.Pt=function(a,b){g4(this,b);y3(this.o,a,b)};f.Qt=function(){this.tm=!1};function g4(a,b){b.sst=a.j;b.sidx=0;return b}f.L=function(){i4(this);this.k=null;null!=this.A&&(this.A.dispose(),this.A=null);N(this.D);a4.I.L.call(this)};function j4(a){this.By=a}function k4(a){try{var b=HC(a).getElementsByTagName("AdBreak"),c=E(b,function(a){a=a.getAttribute("time");return Wa(a)});return new j4(c)}catch(d){return new j4([0])}};function l4(a){var b=0;if(a.J||a.H)a.J&&(b|=1),a.H&&(b|=2);var c=0;a.B&&(a.G&&(a.afvMergeEnabled&&b?b|=4:c=4),b||(b=c,c=0));a=new oe;a.set(3,b);a.set(4,c);return a}
function m4(a){var b=[];if(a.Da)return b.push(new Z3(4,0)),b;if(a.R){var c=0;if(a.o||a.C)c|=1;a.F&&(c|=4);a.U&&(c|=8);b.push(new Z3(5,c))}a.Ck&&(c=0,a.o&&(c|=1),a.F&&a.B&&(c|=4),b.push(new Z3(6,c)));c=0;a.K&&(a.o&&(c|=1),a.C&&(c|=2),a.F&&a.B&&(c|=4),a.U&&a.B&&(c|=8));var d=l4(a);a.fb&&c&&d.get(3)?b.push(new Z3(3,c,d.get(3))):(c&&b.push(new Z3(2,c)),d.get(3)&&b.push(new Z3(1,d.get(3))));d.get(4)&&b.push(new Z3(1,d.get(4)));return b};function n4(a){this.j=a};function o4(a,b){this.N=a;this.O=this.N.isMobile;this.A="leanback"==this.N.da;this.j=this.O||this.A;this.D=!this.A&&!(Xh&&!a.J);this.P=a.C&&(!this.j||this.A)||this.O&&!(Xh&&!a.J);this.apply(b);if(this.C&&!this.P)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var p4={RG:"m",MG:"f"};f=o4.prototype;
f.apply=function(a){var b=Y1(a.instream),c=Y1(a.trueview),d=Y1(a.aftv);this.Ra=a.ad_slots;this.W=a.ad_breaks;this.adFlags=a.ad_flags||0;this.$=a.cafe_experiment_id;this.adTag=a.ad_tag;this.tb=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.xa=q4(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.na=parseInt(a.ad_age,10);this.amsBaseTag=a.ams_base_tag;this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;this.Ca=a.cid;this.oa=a.docid||a.video_id||a.videoId;
this.dynamicAllocationAdTag=a.dynamic_allocation_ad_tag;this.excludedAds=a.excluded_ads;this.fadeInDurationMilliseconds=parseInt(a.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=parseInt(a.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=parseInt(a.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=parseInt(a.fade_out_start_milliseconds,10)||0;this.ja=a.force_ad_type;this.Ba=a.force_ad_url;this.ua=Sb(p4,function(b){return b==a.ad_gender});this.ca=
a.dbp;this.bi=Y1(a.afc_rm_fallback);this.ha=!!a.mpu;this.G=Y1(a.afv)&&!this.j;this.H=d&&c;this.J=d&&b&&!Y1(a.no_afv_instream);this.K=Y1(a.dclk);this.vg=Y1(a.gpt_migration);this.va=1==a.livestream;this.Da=Y1(a.forced_ad)&&!this.j;this.R=1==parseInt(a.tpas_ad_type_id,10);this.rb=!!a.fqsf;this.o=b;this.F=Y1(a.invideo)&&!this.j;this.U=Y1(a.mpu)&&!this.j;this.cb=G(this.xa,"yt_mabv");this.la=Y1(a.shortform);this.B=Y1(a.sffb);this.Ck=Y1(a.xfp);this.ib=a.xfp_tag;this.Bo=HE(this.N,"961401");b=GE(this.N,this.A);
this.Ao=(!this.j||b)&&!this.R;this.C=c;this.ma=a.ad_language_iso639_2;c=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(c)&&(c=2E3);this.maxDynamicAllocationAdTagLength=c;this.k=parseInt(a.midroll_freqcap,10);isNaN(this.k)&&(this.k=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=Y1(a.tag_for_child_directed);this.serverPrefetchedVast=a.server_prefetched_vast;
this.surveyCreativeData=a.surveyCreativeData;this.ia=d&&this.B&&!this.G;this.Ia=this.G||this.ia;this.kb=parseInt(a.ad_device,10);this.V=a.tpas_video_id;this.X=a.tpas_partner_id;this.vmap=a.vmap;this.fb=r4(this);this.Nb=this.N.Nb};
function r4(a){if(B(C(a.dynamicAllocationAdTag)))return!1;var b=(a.o||a.C)&&a.K;a.B&&a.K&&(b=b||a.F||a.U);if(!b)return!1;b=a.H||a.J;if(!(b||a.B&&a.G))return!1;if(a.serverPrefetchedVast)return!0;var c=a.dynamicAllocationAdTag.length+330+(a.vg?25:102);window.document.referrer&&(c+=xa("ref="+xa(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}function q4(a){if(B(C(a)))return[];a=kf(new J(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;
f.Ao=!0;f.Bo=!1;f.bi=!1;f.vg=!1;f.Ck=!1;f.showContentThumbnail=!0;function s4(a){R.call(this);this.j=a;this.k=0;this.B={};a=a.ea;this.C=a.fadeInDurationMilliseconds;this.D=a.fadeInStartMilliseconds;this.o=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.Sp()}A(s4,R);f=s4.prototype;f.Sp=function(){this.j.subscribe("beginseeking",this.ek,this)};f.Zs=function(a,b){return a.vb&&0<a.j?b+this.A+this.o:b};f.Ys=function(a,b){return a.vb&&-1!=a.j&&2147483646!=b&&2147483647!=b?b+this.A+this.o:b};
f.Xs=function(a){if(a.vb&&0<a.j&&!(0>=this.o)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=a.nb()+this.A,b=new ys(c,c+this.o-1,b);this.B[a.getId()]=b;this.j.ed(b)}};function t4(a,b){a.B[b]&&(a.j.Hi(a.B[b]),delete a.B[b])}f.Op=function(a){a.vb&&0<a.j&&(t4(this,a.getId()),this.ek())};f.ek=function(){this.k&&(N(this.k),this.k=0);var a=g3(this.j,!1);a.volume=Jq(this.j.app)/100;wg(a,"transition","");wg(a,"opacity","1")};
f.Nq=function(a){var b=a.nb()+this.A+this.o,b=50>=1E3*this.j.j.getCurrentTime()-b;a.vb&&0<a.j&&b&&(a=.001*(a.nb()+this.D),this.j.publish("command_seek",a),0>=this.C||(a=g3(this.j,!1),wg(a,"opacity","0"),a.volume=0,M(w(this.pB,this),0)))};f.pB=function(){var a=g3(this.j,!1);wg(a,"transition","opacity "+String(this.C)+"ms linear");wg(a,"opacity","1");u4(this,a,this.C,1)};function u4(a,b,c,d){0>=c||(a.k&&N(a.k),c=z()+c,a.k=0==d?lv(w(a.du,a,b,c,100),0):lv(w(a.Ss,a,b,c,100),0))}
f.du=function(a,b,c){if(this.k){var d=Math.max(1,b-z()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.k=0<d?lv(w(this.du,this,a,b,c),c):0}};f.Ss=function(a,b,c){if(this.k){var d=Math.max(1,b-z()),e=Jq(this.j.app)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.k=d<e?lv(w(this.Ss,this,a,b,c),c):0}};f.L=function(){this.ek();this.j.unsubscribe("beginseeking",this.ek,this)};function v4(a){s4.call(this,a)}A(v4,s4);f=v4.prototype;f.Sp=t;f.Zs=function(a,b){return b};f.Ys=function(a,b){return b};f.Xs=t;f.Op=t;f.Nq=t;f.L=t;function w4(a,b){return b?new s4(a):new v4(a)};function x4(a,b,c){R.call(this);this.j=a;this.C=b;this.o=c;this.B=this.k=-1;this.o&&0<this.j.ea.k&&this.j.subscribe("endseeking",this.A,this)}A(x4,R);function y4(a,b){z4(a);0<b&&(a.B=M(w(a.A,a),1E3*b))}function z4(a){-1!=a.B&&(N(a.B),a.B=-1)}
x4.prototype.A=function(){var a=this.j.ea.k;if(this.o&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ib(this.C.o,function(a){if(a.isVisible&&!(0>=A4(this,a))){var g;g=a.getId();g=this.C.B[g];if(A4(this,a)>b){var l=!B4(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=A4(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&C4(this.j,c);if(d){var g=0;0<this.k&&(g=z()/1E3-this.k);y4(this,a-g-e+2)}else z4(this)}};
function B4(a,b){if(!a.o||!(0<b.j)&&-1!=b.j)return!1;var c=a.j.ea.k;if(0>=c||0>=a.k)return!1;var d=z()/1E3,e=A4(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.k<=c}function A4(a,b){return-1==b.j?a.j.j.getVideoData().lengthSeconds:b.j}x4.prototype.L=function(){z4(this)};function D4(a,b){R.call(this);this.k=b;this.C=[];this.o={};this.B={};this.j=a;var c=a.ea,d=!c.va&&hb(this.k,function(a){return 0<a.j||-1==a.j});this.F=new x4(this.j,this,d);c=c.applyFadeOnMidrolls&&(c.o||c.C)&&hb(this.k,function(a){return 0<a.j});this.A=w4(this.j,c);this.N=hb(this.k,function(a){return 0==a.j})}A(D4,R);f=D4.prototype;f.Hb=null;function E4(a){a.C.length||(a.C=fb(a.k,function(a){return"unloaded"==a.Tc}),0==a.C.length?Ks(a.j):(a.N||Ks(a.j),F4(a)))}
function F4(a){if(a.C.length){var b=a.C.shift();b.subscribe("adBreakComplete",a.Qf,a);F3(b)}}f.Qf=function(a){a.unsubscribe("adBreakComplete",this.Qf,this);M(w(this.zG,this,a),0)};
f.zG=function(a){var b=db(this.k,a),c=this.k[b+1],b=this.k[b-1],d=2147483646;-2==a.j||-1==a.j?d=2147483647:c&&2147483647!=c.j&&(d=c.nb()-1);0==a.wa&&(f4(this.j,"bl"),c4(a)||f4(this.j,"fb"));if(c="loaded"!=a.Tc||0==a.wa&&c4(a)&&c&&1E3*this.j.j.getCurrentTime()>c.nb()){if(b&&b4(b)){var e=b.nb();e>d&&(d=e);G4(this,b);H4(this,b,d)}}else this.o[a.getId()]=a,H4(this,a,d);Ks(this.j);c&&this.ye(a);Mb(this.o)==this.k.length&&this.F.A();F4(this)};
function H4(a,b,c){var d=b.nb();if(!isNaN(d)){var e={};e.priority=-2!=b.j?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.A.Zs(b,d);c=a.A.Ys(b,c);c=new ys(d,c,e);a.B[b.getId()]=c;a.j.ed(c);a.A.Xs(b)}}function G4(a,b){var c=b.getId();a.B[c]&&(t4(a.A,c),a.j.Hi(a.B[c]),delete a.B[c])}f.ye=function(a){a.unsubscribe("adBreakComplete",this.Qf,this);this.Hb&&a==this.Hb&&(this.Hb=null);G4(this,a);pb(this.k,a);delete this.o[a.getId()];wi(a)};f.Ai=function(a){return this.o[a]};
f.nl=function(a){if(a.vb){if(-1!=a.j&&a.tm){var b=this.j;I4(b);Vs(b);this.A.Nq(a)}else c4(a)&&!a.tm?(b=this.j,I4(b),Vs(b)):(I4(this.j),Ws(this.j,!1));this.ye(a);a=this.F;a.o&&0<a.j.ea.k&&(a.k=z()/1E3,a.A())}else a.isVisible||this.ye(a)};f.L=function(){wi(this.A);wi(this.F);D(this.k,this.ye,this);D4.I.L.call(this)};function J4(a,b,c){D4.call(this,a,b);this.H=[];this.J=[];this.D=[];this.P=c;this.G=0;this.K=a.ea.k;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],d4(c)){var d=new a4(c.o,c.wa,c.j,c.B,!0);b[a]=d;this.H.push(c)}this.N||this.zf()}A(J4,D4);f=J4.prototype;
f.Ai=function(a){a=J4.I.Ai.call(this,a);if(!a)return null;if(!a.C)return a;var b;b=null;if(this.D.length){var c=b=this.D.shift();c.j=a.j;c.wa=a.getId()}b&&"loaded"==b.Tc?(a.unsubscribe("adBreakComplete",this.Qf,this),this.o[a.getId()]=b,this.k[this.k.indexOf(a)]=b,wi(a)):(this.zf(),b&&(wi(b),b=null),this.ye(a));b&&!b.vb&&this.zf();return b};f.Qf=function(a){0!=a.j||"loaded"==a.Tc&&a.vb||this.zf();J4.I.Qf.call(this,a)};
f.nl=function(a){a.vb&&10<this.K?(K4(this),this.G=M(w(this.zf,this),1E3*(this.K-10))):this.zf();J4.I.nl.call(this,a)};f.zf=function(){for(K4(this);this.H.length&&this.J.length+this.D.length<this.P;){var a=this.H.shift();a.subscribe("adBreakComplete",this.ou,this);this.J.push(a);F3(a)}};f.ou=function(a){a.unsubscribe("adBreakComplete",this.ou,this);pb(this.J,a);this.D.push(a)};f.L=function(){K4(this);D(this.J,wi);D(this.D,wi);D(this.H,wi);J4.I.L.call(this)};function K4(a){a.G&&N(a.G);a.G=0};function L4(a,b){D4.call(this,a,b);this.J=a;this.D=[];this.O=1}A(L4,D4);L4.prototype.getVideoData=function(){return null};L4.prototype.K=function(a){this.D.push(a);a.unsubscribe("adBreakComplete",this.K,this)};
L4.prototype.H=function(){if(null!=this.Hb&&0<this.D.length){var a=this.D.shift();delete this.o[a.j];var b=Math.floor((new Date).getTime()/1E3)-this.P;this.P=null;a.unsubscribe("adBreakComplete",this.H,this);this.ye(a);this.Hb=null}a=this.J;I4(a);Vs(a);isFinite(b)&&v1(this.G,this.G.getCurrentTime()+b)};function M4(a,b){this.F=a;this.Z=b;this.D=z();this.j=a.ea;this.A={};this.C=new O2(a);var c=[];this.j.R&&this.j.o&&c.push("4_2");this.j.Ck&&(this.j.o&&c.push("13_2"),this.j.F&&c.push("13_1"));this.j.K&&(this.j.o&&c.push("1_2"),this.j.C&&c.push("1_2_1"),this.j.F&&c.push("1_1"),this.j.U&&c.push("1_3"));this.j.H&&c.push("2_2_1");this.j.J&&c.push("2_2");this.j.G&&c.push("2_1");(this.j.Ia||this.j.bi)&&c.push("2_3");this.o=c.join(",");this.k="";this.A.allowed=this.o;(c=this.j.excludedAds)&&(this.A.ex_ads=
c)}M4.prototype.B=0;function N4(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;D(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function O4(a,b,c){R.call(this);this.j=a;this.o=b;this.D=c;this.A=this.C=-1;this.k=P4(this.o.Ie());a=this.o.Ie();a.length&&(a=a[a.length-1],-1==a&&this.j.ed(this.k[a]));0<this.j.ea.k&&this.j.subscribe("endseeking",this.B,this)}A(O4,R);function Q4(a,b){R4(a);0<b&&(a.A=M(w(a.B,a),1E3*b))}function R4(a){-1!=a.A&&(N(a.A),a.A=-1)}function S4(a){a.k||(a.k=P4(a.o.Ie()));C4(a.j,Pb(a.k))}
function P4(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?2147483647:1E3*e;b[d]=new ys(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new ys(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
O4.prototype.B=function(){var a=this.j.ea.k;if(!(0>=a)&&this.k){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;D(this.o.Ie(),function(a){var g=this.k[a];if(g){var l=this.o.H.get(a);l&&l.Jd>b?(a=!nZ(this.D,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.Jd-b,g<e&&(e=g,d=l))):!l||l.mb()?(this.j.Hi(g),delete this.k[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&C4(this.j,c);if(d){var g=0;0<this.C&&(g=z()/1E3-this.C);Q4(this,a-g-e+2)}else R4(this)}};
O4.prototype.L=function(){O4.I.L.call(this);R4(this)};function T4(a){R.call(this);this.j=a;this.A=null;this.C=new sn(this);this.o=new sn(this)}A(T4,R);f=T4.prototype;f.Ta=null;f.Ui=null;f.Bb=null;f.ic=null;f.Vi=null;function U4(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);D(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,g;"end"==b?(e="post",g=-1):(e="mid",g=N4(b).toString());var h={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":g};a.innerHTML=a.innerHTML.replace(/\[[A-Z_]+\]/g,function(a){return h[a]||a})});return a}
function V4(a){var b=HC(a),c=b.childNodes[0];if(!c)return a;var d=F(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=F(d.childNodes,function(a){return"Extensions"==a.localName});var e=F(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;D(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=U4(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return JC(b)}return a}
f.load=function(a){if(this.A=this.j.rf){var b=new xV;b.adsResponse=V4(a);a=h3(this.j);b.linearAdSlotWidth=a.width;b.linearAdSlotHeight=a.height;b.nonLinearAdSlotWidth=a.width;b.nonLinearAdSlotHeight=100;b.j=this.j.S().experiments.experimentIds;b.Xj=this.j.A.A;if(a=bF(this.j.S()))b.lastActivity=a;this.j.ea.tagForChildDirected&&(b.tagForChildDirectedContent=!0);HE(this.j.S(),"937420")&&(b.Sg=!0);a=l4(this.j.ea);b.youTubeAdType=b2(a.get(3));if(a=this.j.ea.$)b.youTubeExperimentIds=a;a=rr(this.j.app);
var c=this.j;b.Uc={"[CONTENT_V]":a.videoId,"[CPN]":a.ya,"[LACT]":{toString:function(){return null==c||c.fa()?c=null:bF(c.S()).toString()}}};this.A.listen("adsManagerLoaded",this.Xq,!1,this);this.A.listen("adError",this.Wq,!1,this);try{AZ(this.A,b,this)}catch(d){}}};function W4(a){var b=new oL;b.baseYouTubeUrl=a.j.S().A;b.contentId=rr(a.j.app).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.j.ea.D;b.showContentThumbnail=a.j.ea.showContentThumbnail;b.qp=!0;return b}
f.Xq=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:w(function(){return this.j.j.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:w(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=W4(this);this.Ta=X1(a,this.j.A,b,c)}catch(d){return}if(this.Vi=this.Ta.Vq(b,this.j.ea.k)){this.Ui=new O4(this.j,this.Ta,this.Vi);S4(this.Ui);G(this.Ta.Ie(),0)||X4(this);this.o.listen(this.Ta,"companionBackfill",w(this.nA,
this));this.o.listen(this.Ta,"loaded",w(this.mA,this));this.o.listen(this.Ta,"adError",w(this.lA,this));this.o.listen(this.Ta,"start",w(this.kA,this));this.o.listen(this.Ta,"complete",w(this.jA,this));this.o.listen(this.Ta,"contentPauseRequested",w(this.oA,this));this.o.listen(this.Ta,"contentResumeRequested",w(this.pA,this));this.o.listen(this.Ta,"allAdsCompleted",t);try{this.Ta.init("normal"),this.Ta.start()}catch(e){this.Ta.destroy(),this.k=null}}}};
f.oA=function(a){this.Bb&&this.Bb.dispose();(this.ic=a.getAd())&&VT(this.ic)&&(a=Y4(this.ic),this.j.ea.P?this.Bb=new k3(a,this.j,this.Ta,XT(this.ic),!0):this.Bb=new a3(a,this.j,this.Ta,this.Ta.getMediaUrl(),XT(this.ic),!0),Z4(this.j),this.Bb.show())};
function $4(a,b){var c=null!=b.j?b.j.F:{};if(a2(c,w3.j)&&a.j.ea.bi)return a.Bb=new H3(a.j),a.Bb.show(),!1;if(a2(c,"blockAllAds"))return a.Ta.sendImpressionUrls(),a.Bb=new M3(a.j,a.Ta,!0),!1;if(a2(c,"hideMaster"))return a.Bb=new M3(a.j,a.Ta,!0),!1;a.Bb=new t3(Y4(b),a.j,a.Ta,!0);a.Bb.show();return!0}
f.pA=function(a){this.Bb&&this.Bb.dispose();X4(this);if(this.j.j.getCurrentTime()<this.j.j.getVideoData().lengthSeconds){var b=this.j;I4(b);Vs(b)}a=a.getAd();b=!0;a&&a!==this.ic&&!VT(a)&&(b=$4(this,a));if(this.ic&&VT(this.ic)||a&&a!==this.ic&&!VT(a)&&b)b=this.Vi,0<b.j&&(b.k=z()/1E3),b=this.Ui,0<b.j.ea.k&&(b.C=z()/1E3,b.B());S4(this.Ui);this.ic=a};f.kA=function(a){if((a=a.getAd())&&this.Bb){a=Y4(a);var b=this.Bb;b.type=a+"_"+b.J;2==a&&f2();g2()}};
f.jA=function(a){VT(a.getAd())||this.ic!==a.getAd()||(this.Bb&&this.Bb.dispose(),this.ic=null)};f.mA=function(a){a.getAd().B.k||VT(a.getAd())||X4(this)};f.lA=function(){};f.Wq=function(){};f.nA=function(){g2()};f.L=function(){this.A&&(this.A.Aa("adsManagerLoaded",this.Xq,!1,this),this.A.Aa("adError",this.Wq,!1,this));this.C.removeAll();this.o.removeAll();this.B=!1;this.Ta&&(this.Ta.destroy(),this.Ta=null);T4.I.L.call(this)};
function Y4(a){switch(aU(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function X4(a){a.B||(Ks(a.j),a.B=!0)};function a5(a){CZ.call(this,a);YK.j=!0;YK.A=!1;YK.C=!0;this.A=null;this.D={};this.C={at:"0"};this.k=new JE(0,this.j);Kr(this.j,this.k.M());this.F=this.o=null;this.B=-1}A(a5,CZ);f=a5.prototype;f.ta="ad";f.oc="ad";f.Be=null;f.Ya=null;f.ea=null;f.Ol=!1;f.Hn=!1;f.rf=null;f.tf=null;a5.Ga=function(a){return!!a.lc.getVideoData().adModule};f=a5.prototype;f.Ga=function(){return a5.Ga(this.app)};
f.create=function(){a5.I.create.call(this);f4(this,"i");this.ea=new o4(this.S(),this.j.getVideoData().A||{});this.Be=new M4(this,this.j);this.Ol=!1;if(this.rf)this.rf.j.o.C=GQ();else{var a=this.ea.D?void 0:NE(this.k);if(this.ea.P){var b=new BZ(this.app,2),c=KE(this.k);b.j||(b.j=$b(b.ef),b.j.addEventListener=w(b.Cy,b),b.j.removeEventListener=w(b.Ey,b));this.A=new uQ(c,void 0,a,b.j)}else{b=g3(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.A=new uQ(KE(this.k),b,a,
void 0)}a=this.A;b=a.k;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.D&&(a=a.D,a.k.width="100%",a.k.height="100%");this.rf=new zZ(this.A)}if(!this.ea.vmap||this.ea.Da||this.ea.vg){a=new n4(this);t:{b=[];try{var d=a.j.ea,e;if(d.Ao){var g;if(d.W)g=k4(d.W);else{var h;if(d.Ra){var k=E(d.Ra.split(","),Wa);h=new j4(k)}else h=new j4([0]);g=h}e=g}else e=new j4([0]);for(var l=e.By,d=0;d<l.length;d++){var p=new a4(a.j,d,l[d],m4(a.j.ea));b.push(p)}}catch(u){}finally{break t}}l=
b;f4(this,"bd");p=this.ea;d=p.midrollPrefetchSize;this.Ya=p.va&&p.Bo?new L4(this,l):0<d?new J4(this,l,d):new D4(this,l);E4(this.Ya)}else this.tf=new T4(this),this.tf.load(this.ea.vmap);l={};l.allowed=this.Be.o;Os(this,{},l)};f.destroy=function(){this.Hn&&I4(this);if(this.o){var a=this.app,b=this.o;p3(a);b!=a.o&&m3(a,a.o)}yi(this.Ya,this.o,this.tf);this.Be=this.tf=this.o=this.Ya=null;LE(this.k);e2=!1;this.Nd&&a5.I.destroy.call(this)};f.S=function(){return this.app.S()};
f.isFullscreen=function(){return this.j.isFullscreen()||this.ea.A};
function y3(a,b,c){a=a.Be;c=c||{};var d=(z()-a.D)/1E3;c.art=d;d=a.F.S();d.O&&(c.feature=d.ca);c.ad_flags=a.j.adFlags;(d=a.j.Ca)&&(c.cid=d);c.mt=a.Z.getCurrentTime();(d=HZ())&&(c.lact=d);(d=a.Z.Mg())&&(c.len=d);a.j.rb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.k=c.at;b=a.C;t:{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 t}a=c&&c.ad_event?R2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var g;c.sst&&(g=c.sst);"2_1"==e&&
10==g&&(c.sst=0);e={};e.device=b.j.ea.kb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var h in c){g=e;a=h;var d=c[h],k=c;switch(a){case "at":g.format=d;k.survey?g.format+="_3":k.skip&&(g.format+="_1");break;case "sst":0==d?g.break_type=1:-1==d||-2==V1?g.break_type=3:(g.break_type=2,g.m_pos=d);break;case "trsp":g.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_cpn":case "ad_sys":g[a]=d;break;case "ad_len":g[a]=Math.round(1E3*d);break;case "ad_error":g.error_code=Q2(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=R2(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}h=l3(b.j);c=rr(b.j.app);e.cpn=c.ya;e.content_v=c.videoId;e.mt=Math.round(1E3*h.getCurrentTime());e.ei=c.G;e.lact=bF(b.j.S());h=X2(b.j);e.p_w=h.width;e.p_h=h.height;e.rt=(new Date).getTime();c=ve(e);if("undefined"==typeof c)throw Error("Keys are undefined");h=new Ye(null,0,void 0);g=ue(e);for(a=0;a<c.length;a++)d=c[a],k=g[a],ea(k)?jf(h,d,k):h.add(d,k);c=b.j.S().A+
"api/stats/ads";c=new J(c);We(c,h);bg(c.toString());h=e.event;c=-1!=P2.indexOf(h);g=b.j.ea.amsBaseTag;b=IE(b.j.S(),"932015","932016");c&&!B(C(g))&&b&&(b=new J(g),c=b.j,c.set("ad_break_id",Zb(e,"m_pos","0")),c.set("ad_slot_id",Zb(e,"slot_pos","0")),c.set("ad_break_rel_start_time",Zb(e,"m_pos","0")),c.set("ad_break_type",Zb(e,"break_type","")),c.set("rel_time",Zb(e,"mt","")),c.set("wall_time",Zb(e,"rt","")),2==h&&(c.set("served",Zb(e,"format","")),c.set("ad_id",Zb(e,"ad_id","")),c.set("ad_len",Zb(e,
"ad_len",""))),bg(b.toString()))}}function x3(a,b,c){c=c||{};c.ad_error=b;y3(a,7,c)}f.lh=function(){var a;if(this.Be){a=this.Be;var b={allowed:a.o};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.k&&(b.at=a.k);a=b}else a=a5.I.lh.call(this);return a};f.Ma=function(){return this.j.Ma()};function b5(a){return a.Ya instanceof L4?a.Ya:null}function g3(a,b){var c;if(b){c=a.k;var d=OE(c);c.Z.S().C||Rd(d)||KE(c).appendChild(d);c=d}else c=a.k,c=c.Z.S().C?c.Z.app.k.j:OE(c);return c}
function l3(a){if(!a.o){var b=$b(a.S().B);b.autoplay="1";b=new OZ(b);b.da="adunit";var c=g3(a,!1);b.xb=c;a.o=new h1(b,2,new DZ(b,""),a.app.k)}return a.o}f.getVideoData=function(){return this.F};function X2(a){return a.ea.A?(a=h3(a),new mg(0,0,a.width,a.height)):Qg(a.Ma())}function h3(a){return a.app.k.eu()}function Z4(a){a.Hn=!0;a.publish("command_redirect_controls",a,["play_pause"],void 0);Ss(a,["seek"]);a.S().Hd&&Ss(a,["audio"]);a.tf||a.pauseVideo()}
function I4(a){LE(a.k);a.Hn=!1;Us(a);Ts(a,["seek"]);a.S().Hd&&Ts(a,["audio"])}f.getAdState=function(){return this.B};function i3(a,b){switch(b){case 1:a.B=1;a.publish("publish_external_event","onAdStart");break;case 0:a.B=0,a.publish("publish_external_event","onAdEnd")}}function c3(a,b,c,d){d&&a.publish("publish_external_event","onAdInfoChange",d);a.publish("publish_external_event","onAdStateChange",b,g3(a,!1),c)}
f.Cc=function(a){a5.I.Cc.call(this,a);var b=parseInt(a.getId(),10);if(this.Ya&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.Ya,d=c.Ai(b);if(d&&!B4(c.F,d)&&(c=c.A,d.vb)){var e=g3(c.j,!1),d=Math.max(0,d.nb()+c.A+c.o-1E3*c.j.j.getCurrentTime());wg(e,"transition","opacity "+String(d)+"ms linear");wg(e,"opacity","0");u4(c,e,d,0)}}else if(d=this.Ya,n(b)&&(c=d.Ai(b)))d.Hb==c&&!c.vb&&c.isVisible?c.show():(d.Hb&&d.ye(d.Hb),B4(d.F,c)?(d.Hb=null,c=d.B[c.getId()],c.visible||(c.visible=!0,C4(d.j,[c]))):
(d.Hb=c,c.subscribe("adBreakComplete",d.nl,d),c.vb&&Z4(d.j),d.A.Op(c),c.show()));!isNaN(b)&&0>b&&this.tf&&(b=this.rf.j,d=new tR("contentComplete"),b.T(d),d.A&&(b.o.clear(),null!=b.k&&(d=b.k.Ce(),null!=d&&WQ(d,b.o.j))));"livead"===a.getId()&&null!=b5(this)&&(b=b5(this),a=a.start,Math.round(a),n(b.o[a])||(d=b.O++,d=new a4(b.J,d,a,m4(b.J.ea),!1),b.o[a]=d,d.subscribe("adBreakComplete",b.K,b),F3(d)))};
f.Vc=function(a){a5.I.Vc.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.j.getCurrentTime();this.Ya&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(c=this.Ya,(b=c.o[b])&&c.Hb==b&&!b.vb&&b.isVisible&&b.Bm&&b.k instanceof t3&&v3(b.k,"fullscreen"));"livead"===a.getId()&&null!=b5(this)&&1E3*this.j.getCurrentTime()>=a.start&&(this.Hi(a),a=b5(this),null==a.Hb&&0<a.D.length?(b=a.D[0],a.P=Math.ceil(z()/1E3),b.subscribe("adBreakComplete",a.H,a),a.Hb=b,b.show()):a.H())};
function f4(a,b){var c=b;"nl"==b&&(c=a.Be,c.B++,c=c.B.toString());a.D[c]=z();"bs"!=c&&"fb"!=c||Os(a,a.D,a.C)}function C4(a,b){a.publish("command_update_cuerange_markers",b,a.j.getPlayerType())}function u3(a){return Boolean(a.ea.B&&a.Ya&&1<a.Ya.k.length)}f.fe=function(a){this.publish(a)};
f.$w=function(a){var b=b5(this);if(null!=b&&null!=b.G){var c=b5(this).G.getCurrentTime();D(a,function(a){a.Xd-10>c&&(a=new ys(1E3*Math.floor(c+Math.random()*(a.Xd-10-c)),1E3*a.Xd,{id:"livead",priority:2}),this.ed(a))},this)}};
f.fg=function(a){switch(a){case "addata":var b=this.ea;return{adTag:b.adTag,adTest:b.tb,forceAdType:b.ja,isAfvSkippableInstreamEnabled:b.H,isAfvStandardInstreamEnabled:b.J,isBlazer:b.O,isDoubleClickEnabled:b.K,isForcedAd:b.Da,isFreeWheelEnabled:b.R,isHouseBrandPlayer:b.Nb,isLeanback:b.A,isShortform:b.la,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.Ya instanceof J4?this.Ya:null,null!=b?b.K:0;case "breakscount":return this.Ya?
this.Ya.k.length:0;case "displaystate":return b=null,this.Ya&&this.Ya.Hb&&(b=this.Ya.Hb.k),{adFormat:b instanceof M2?b.J:!1,adSkipped:b instanceof k3?b.D:!1,hasVideoStarted:b instanceof k3?b.G:!1,skippable:b instanceof k3?b.K:!1};case "getContentVideoData":return b=rr(this.app),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.$h,partnerTrackingToken:b.K,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.Ya){a=this.Ya.o;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].vb});
return c}return 0}};f.eg=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function c5(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>':
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>';
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}A(c5,X);function d5(a){this.k=a||30;TE.call(this,this.k,this.k);this.C=this.width/2;this.o=this.height/2;this.D=0;this.context.translate(this.C,this.o);this.hide()}A(d5,TE);d5.prototype.show=function(){d5.I.show.call(this);var a=this.G;this.A=new Date;this.B(a,125)};
d5.prototype.G=function(){this.context.clearRect(-this.C,-this.o,this.width,this.height);for(var a=this.D++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.k,e=d*Math.cos(c),c=d*Math.sin(c),d=(b+1)/9;this.context.beginPath();this.context.arc(e,c,4/30*this.k,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};d5.prototype.hide=function(){N(this.j);d5.I.hide.call(this)};function e5(a,b,c){zE.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail"],["div","","{{largeplaybutton}}"],["div","ytp-remote-display-controls",["div",["ytp-remote-display-error","html5-center-overlay"],["div","ytp-remote-display-error-icon"],["p","ytp-remote-display-error-text","{{error}}"],["div","","{{reconnectbutton}}"]],["div","","{{loadingicon}}"]],["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}}"]],["div","ytp-remote-display-watch-while",["div","","{{maximizebutton}}"]]]);this.A=c;this.B=this.template.j["ytp-remote-display-thumbnail"];this.j=this.k=this.o=null;f5(this,a,b)}A(e5,zE);function g5(a){h5(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));i5(a,2)}function j5(a,b){h5(a,Y(0,"YTP_MDX_STATUS_ERROR"));iv(a.template,"error",b);i5(a,0)}
function i5(a,b){var c=a.template.j["ytp-remote-display-error"],d=a.template.j["ytp-remote-display-status"];Vw(c);Vw(d);a.o.hide();a.j.hide();a.k.hide();switch(b){case 0:Uw(d);Uw(c);break;case 1:Uw(d);break;case 2:Uw(d);a.j.show();break;case 3:a.o.show()}}
function f5(a,b,c){var d=b.j.S();a.o=new c5(d.isMobile,d.Nb);S(a,a.o);a.j=new d5(60);O(a.j.element,"html5-video-loader");O(a.j.element,"html5-center-overlay");O(a.j.element,"ytp-scalable-icon-grow");S(a,a.j);a.k=new IA(a.A,"ytp-button-remote-reconnect");a.k.qa(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));S(a,a.k);d=new IA(a.A,"ytp-button-remote-maximize");d.qa(["div",["html5-center-overlay","ytp-button-remote-maximize-icon"]]);S(a,d);b=b.j.getVideoData();a.B.style.backgroundImage=b.videoId?"url("+uF(b,
"hqdefault.jpg")+")":"";iv(a.template,"largeplaybutton",a.o);iv(a.template,"reconnectbutton",a.k);iv(a.template,"loadingicon",a.j);iv(a.template,"maximizebutton",d);a.k.listen("click",function(){this.publish("reconnect-button-click")},a);d.listen("click",function(a){a.stopPropagation();this.publish("maximize-button-click")},a);g5(a);iv(a.template,"receiver",c)}function h5(a,b){iv(a.template,"statustext",b)};function k5(a,b,c){R.call(this);this.k=a;a.subscribe("onVolumeChange",this.ip,this);this.G=w(this.Uw,this);a.j.addEventListener("onCaptionsTrackListChanged",this.G);this.B=!1;this.o=b;b.subscribe("reconnect-button-click",this.kp,this);b.subscribe("maximize-button-click",this.jp,this);this.j=c;c.subscribe("proxyStateChange",this.lp,this);c.subscribe("remotePlayerChange",this.Vk,this);c.subscribe("remoteQueueChange",this.Wk,this);this.J=new qs;this.D=this.C=NaN;this.H=0;this.A={};this.F=new pn(this.Vw,
1E3,this);S(this,this.F);this.K=0;a=this.k.j.yi("captions","track");Vb(a)||l5(this,a);this.Wk();this.Vk()}A(k5,R);f=k5.prototype;
f.L=function(){m5(this,new qs);n5(this);o5(this);this.k.unsubscribe("onVolumeChange",this.ip,this);this.k.j.removeEventListener("onCaptionsTrackListChanged",this.G);xi(this.o)||(this.o.unsubscribe("reconnect-button-click",this.kp,this),this.o.unsubscribe("maximize-button-click",this.jp,this));xi(this.j)||(this.j.unsubscribe("proxyStateChange",this.lp,this),this.j.unsubscribe("remotePlayerChange",this.Vk,this),this.j.unsubscribe("remoteQueueChange",this.Wk,this));p5(this,this.A);this.j=this.o=this.k=
null};f.iF=function(a,b){2==this.j.o||(q5(this)?this.ID.apply(this,arguments):this.o.o.F&&this.HD.apply(this,arguments))};function r5(a,b){var c=a.k.j.getVideoData().lengthSeconds;a.k.publish("command_progress",b,c)}f.HD=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":s5(this,this.k.j.getCurrentTime());break;case "control_seek":s5(this,c[0])}};
f.ID=function(a,b){if(1081==kp(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":kp(this.j).mb()?t5(this):u5(this);break;case "control_play":u5(this);break;case "control_pause":t5(this);break;case "control_seek":this.K=c[0];qn(this.F);break;case "control_subtitles_set_track":l5(this,c[0])}};
f.ip=function(a){if(q5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=kp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};f.Uw=function(){Vb(this.A)||p5(this,this.A);this.B=!1};f.kp=function(){o5(this);this.j.A.reconnect();g5(this.o)};f.jp=function(){var a=this.k,b={video_id:a.j.getVideoData().videoId},b=new zr(b),b=a.app.lc.S().getVideoUrl(b,{});Ns(a,b)};f.lp=function(a,b){o5(this);2==b&&this.Fq()};
f.Vk=function(){if(q5(this)){n5(this);var a=kp(this.j);switch(a.j){case 1:v5(this);m5(this,new qs(8));break;case 3:m5(this,new qs(1));break;case 0:m5(this,new qs(2));this.F.stop();var b=this.k.j;(b=Vq(b.app,b.playerType||1))&&b.hf(!0);r5(this,this.k.j.getVideoData().lengthSeconds);break;case 2:m5(this,new qs(4));r5(this,dp(a));break;case -1:m5(this,new qs);break;case -1E3:m5(this,new qs(128,{}))}0==this.H&&(b=this.k.j,(b=Vq(b.app,b.playerType||1))&&b.hf(!1));this.H=a.j;a=kp(this.j).o;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,p5(this,a));a=kp(this.j);-1==a.volume||Math.round(this.k.j.wq())==a.volume&&this.k.j.xq()==a.muted||(this.k.j.setVolume(a.volume),a.muted?this.k.j.yq():this.k.j.zq())}else w5(this)};function w5(a){a.o.o.F||(r5(a,0),n5(a),m5(a,new qs));"detailpage"!=a.k.app.lc.S().da&&i5(a.o,3)}f.Wk=function(){q5(this)||w5(this)};
function l5(a,b){if(q5(a)&&!a.B){if(b){var c={style:a.k.j.yi("captions","displaySettings")};cc(c,b);a.j.lm(x5(a),c)}else a.j.lm(x5(a),null);a.A=kp(a.j).o}}function t5(a){a.j.pause();var b=kp(a.j);r5(a,dp(b));n5(a);m5(a,new qs(4))}function u5(a){a.j.play();v5(a);m5(a,new qs(8))}function s5(a,b){var c=a.k.j.kd();c?rp(a.j,x5(a),b,c.Ua,a.k.j.getVideoData().playlistId):rp(a.j,x5(a),b);m5(a,new qs(1))}
function p5(a,b){if(b){var c=a.k.j.yi("captions","tracklist",{kq:1});c&&c.length?(c=F(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.k.j.ar("captions","track",c)):(a.k.j.Zq("captions"),a.B=!0)}else a.k.j.dr("captions")}f.Vw=function(){var a=this.K;n5(this);r5(this,a);-1==kp(this.j).j?s5(this,a):this.j.xt(a);m5(this,new qs(1))};function q5(a){return bp(kp(a.j))==x5(a)}function x5(a){return a.k.j.getVideoData().videoId}
function v5(a){n5(a);if(!a.j.fa()){var b=kp(a.j);b.mb()&&m5(a,new qs(8));r5(a,dp(b));a.C=M(w(function(){v5(this)},a),500)}}function n5(a){N(a.C);a.C=NaN}f.Fq=function(){o5(this);n5(this);var a=this.j.A.getReconnectTimeout();if(2!=this.j.o||isNaN(a))g5(this.o);else{var b=this.o;j5(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:ov(a/1E3)}));b.k.show();this.D=M(w(this.Fq,this),1E3)}};function o5(a){N(a.D);a.D=NaN}
function m5(a,b){o5(a);var c=a.J;a.J=b;var d=a.o;h5(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));i5(d,1);W(b,1)&&(d=a.o,h5(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),i5(d,2));W(b,128)&&j5(a.o,Of("YTP_MDX_PLAYER_ERROR"));d=a.k;Ws(d,W(b,8));d.app.publish("presentingplayerstatechange",new g1(b,c))};function y5(a){CZ.call(this,a);this.N=a.k.k;this.B={key:Pj(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.A=this.o=null;this.H=[];this.J=this.K=this.k=null;this.O=[this.B];this.F=this.B;this.D=new bC(this.N,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");S(this,this.D);KA(this.D,6950);this.D.listen("click",this.iA,this);this.D.M().id="remote_button";this.C=new rC(this.N,w(this.gA,this),w(this.hA,this));O(this.C.M(),"ytp-drop-down-background");S(this,this.C);this.G=new HA;this.G.label=
Y(0,"YTP_MDX_TITLE");this.G.element=this.C;this.G.k=this.ta;S(this,this.G);this.C.Xa(this.G.label)}A(y5,CZ);var z5=["play_pause","seek"],A5=["captions"];f=y5.prototype;f.ta="remote";f.oc="remote";f.Ga=function(){return this.app.lc.S().rg};
f.create=function(){y5.I.create.call(this);this.H.push(Fi("yt-remote-before-disconnect",this.zC,this));this.H.push(Fi("yt-remote-connection-change",this.os,this));this.os();Ys(this,this.ta,this.D);$s(this,this.G);var a=this.j.app.J;this.F&&this.F!=this.B&&1!=a&&3!=a&&this.load()};f.destroy=function(){Hi(this.H);this.H.length=0;wi(this.k);this.k=null;y5.I.destroy.call(this)};
f.load=function(){if(!this.loaded){y5.I.load.call(this);eC(this.D,"ytp-remote-button-active");this.A=new e5(this,this.F.name,this.N);Kr(this.j,this.A.M());this.k&&(this.o=new k5(this,this.A,this.k));this.j.Sl();this.publish("command_redirect_controls",this,z5,A5);var a=uq();if(0!=a){var b=this.k?bp(kp(this.k)):null;b&&b!=this.j.getVideoData().videoId||M(w(function(){this.publish("command_progress",a,void 0)},this),0)}}};
f.unload=function(){this.loaded&&(eC(this.D,"ytp-remote-button"),this.C.Ea(this.B),Us(this),yi(this.o,this.A),this.A=this.o=null,y5.I.unload.call(this))};f.L=function(){this.destroy();yi(this.o,this.A,this.k);this.k=this.A=this.o=null;y5.I.L.call(this)};f.fe=function(a,b){this.o&&this.o.iF.apply(this.o,arguments)};
function sr(a,b,c){var d=c||a.B;b.unshift(a.B);a.O=b||[a.B];d=F(b,function(a){return a.key==d.key});B5(a,b);a.C.Ea(d);a.F=d||a.B;a.A&&iv(a.A.template,"receiver",d.name);a.publish("publish_external_event","onMdxReceiversChange")}f.zC=function(a){1==a&&(this.K=this.k?kp(this.k):null);this.J=a};
f.os=function(){var a=wq();a?(this.k=a,this.J=this.K=null,this.load(),this.o||(this.o=new k5(this,this.A,this.k))):(wi(this.k),this.k=null,this.loaded&&1==this.J&&(this.unload(),(a=this.K)&&bp(a)==this.j.getVideoData().videoId?this.j.gh(dp(a)):this.j.gh(0)))};f.hA=function(a){bt(this);a!=this.C.getSelected()&&(this.C.Ea(a),C5(this,a))};
function C5(a,b){a.F=b||a.B;if(b.key==a.B.key)pq();else{var c=0,d="",e=a.j.kd();e&&(c=e.Ua,d=a.j.getVideoData().playlistId);if(e=a.j.kd()){for(var g=[],h=0;h<e.uc;h++)g[h]=mr(e,h).videoId;e=g}else e=[a.j.getVideoData().videoId];c={videoIds:e,listId:d,videoId:a.j.getVideoData().videoId,index:c,currentTime:a.j.getCurrentTime()};mq(b,c);a.A&&iv(a.A.template,"receiver",b.name);wi(a.o);a.o=null;a.load()}}function B5(a,b){D(b,function(a){a.toString=function(){return a.key}},a);sC(a.C,b)}
f.iA=function(a){var b=dq();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Cl())};f.gA=function(a){return a.name};f.fg=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.O;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?Cl():C5(this,b)),this.F;case "castSelector":var c=dq(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&Cl();return c}};
f.eg=function(){return["casting","receivers","currentReceiver","castSelector"]};function D5(a){this.addEventListener=w(a.addEventListener,a);this.removeEventListener=w(a.removeEventListener,a);this.dispatchEvent=w(a.dispatchEvent,a)}
function E5(a,b,c){T.call(this);this.D=a;this.K=w(b,null);this.G=c;this.j=0;this.A=new Lc(NaN,NaN);b=c?4E3:3E3;this.B=new Hv(y(this.Cb,1,!1),b,this);S(this,this.B);this.C=new Hv(y(this.Cb,2,!1),b,this);S(this,this.C);c||(this.o=Q(a,"mouseover",w(this.np,this)),this.H=Q(a,"mousemove",w(this.Ww,this)),this.J=Q(a,"mouseleave",w(this.Tw,this)));this.F=Vc?Q(a,"keypress",w(this.Sw,this)):Q(a,"focusin",w(this.Rw,this));this.k=Q(a,"mousedown",w(this.mp,this));this.Cb(130,!0)}A(E5,T);f=E5.prototype;
f.Ww=function(a){a=new Lc(wh(a),xh(a));Mc(a,this.A)||(this.A=a,this.Cb(2,!0))};f.Tw=function(){this.Cb(2,!1)};f.np=function(a){var b=new Lc(wh(a),xh(a));Mc(b,this.A)||(this.A=b,this.j&2&&this.K(a.target)&&(this.Cb(4,!0),Ch(this.o),this.o=Q(this.D,"mouseout",w(this.fC,this))))};f.fC=function(){this.Cb(4,!1);Ch(this.o);this.o=Q(this.D,"mouseover",w(this.np,this))};f.Sw=function(){this.Cb(1,!0)};f.Rw=function(){this.Cb(1,!0)};
f.mp=function(){var a=8;this.G&&(a|=2);this.Cb(a,!0);Ch(this.k);this.k=Q(document,"mouseup",w(this.TE,this))};f.TE=function(){this.Cb(8,!1);Ch(this.k);this.k=Q(this.D,"mousedown",w(this.mp,this))};f.Cb=function(a,b){var c=!this.j;b?(this.j|=a,a&1&&this.B.start(),a&2&&this.C.start()):(this.j&=~a,a&1&&this.B.stop(),a&2&&this.C.stop());var d=!this.j;c!=d&&this.publish("autohideupdate",d)};f.L=function(){Ch(this.o);Ch(this.H);Ch(this.J);Ch(this.F);Ch(this.k);E5.I.L.call(this)};function F5(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.o=a;this.k=b;this.j=new NF("");S(this,this.j);iv(this.template,"sparkline_container",this.j)}A(F5,X);function G5(a){X.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);nv(this,this.template.j["html5-video-info-panel-close"],
"click",this.hide);this.k=new F5(200,14);S(this,this.k);iv(this.template,"bandwidth_sparkline",this.k);this.o=new Hv(this.A,500,this);S(this,this.o);this.j=a}A(G5,X);G5.prototype.show=function(){G5.I.show.call(this);this.A()};G5.prototype.hide=function(){G5.I.hide.call(this);this.o.stop()};
G5.prototype.A=function(){var a=Vq(this.j),b=this.j.getVideoData(),c=this.j.qg(),d=this.j.k.j,e=this.j.S(),g;g=this.j;if(g.ma){var h=[];g.ma.G.forEach(w(h.push,h));g=h}else g=[0];var h=(a=a.G?a.G.j:null)&&a.k,k=b.videoId,l=b.ya,p=b.ya?"":"display:none",u;t:{if(b.ve&&(u=b.ve.match(/url=(https?)/))&&2==u.length){u=u[1];break t}u=""}c={video_id:k,cpn:l,cpn_style:p,mime:"",dash:"no",stream_type:u||e.protocol,decoded_frames:c.hmewdfc||c.hmemdf||"-",dropped_frames:c.hmewdrop||"-",parsed_frames:c.hmempf||
"-",presented_frames:c.hmempresented||"-",video_bytes_decoded:c.hmewvdbc||"-",audio_bytes_decoded:c.hmewadbc||"-",painted_frames:c.hmempainted||"-",paint_delay:c.hmempaintdelay||"-",dimensions:d.clientWidth+" x "+d.clientHeight+(window.devicePixelRatio?" * "+window.devicePixelRatio:""),resolution:d.videoWidth+" x "+d.videoHeight,volume:Math.round(Jq(this.j))+"%",bandwidth_kbps:(8*bb(g)/1024).toFixed(0)+" Kbps",drm_style:h?"":"display:none",drm:h?a.k+" / "+a.j:""};b.o&&(d=st(b.o)?"yes":"no",d+=" ("+
b.o.id,b.D&&st(b.o)&&(d+="/"+b.D.id),c.dash=d+")",c.mime=b.o.mimeType,b=b.o.video.fps,1<b&&(c.resolution+="@"+b));d=this.k;b=d.j;e=Math.max.apply(Math,g)||1;a=[];for(h=0;h<g.length;h++)a.push(h/g.length*d.o+","+d.k*(1-g[h]/e));g='<svg width="'+d.o+'" height="'+d.k+'" viewbox="0 0 '+d.o+" "+d.k+'"><g><polyline stroke="white" fill="none" points="'+a.join(" ")+'"/></g></svg>';b.element.innerHTML=g;this.template.update(c);this.o.start()};function H5(a){var b=["div","html5-video-container"],c=["div","html5-video-player",{tabindex:-1,id:a.U.attrs.id},b];b.push(["div","html5-video-content"]);zE.call(this,c);ih(this.element,"version",a.U.assets.js);this.app=a;this.ia=null;this.o=this.template.j["html5-video-container"];this.J=new mg(0,0,0,0);this.j=null;this.W=new mg(0,0,0,0);this.la=this.template.j["html5-video-content"];this.ua=this.Ba=0;this.X=null;this.R=0;this.ha=null;b=a.S();this.Ca=b.va||"blazer"==b.k;this.N=new G5(a);S(this,this.N);
this.N.Y(this.element);this.k=new q2;this.xm();Nf({YTP_ADVERTISEMENT:"Advertisement",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_HEADER_TEXT:"In this video",YTP_DRAWER_POLL_SUBMIT:"Submit",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",
YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC:"An error occurred, please try again later.",YTP_ERROR_GENERIC_WITH_LINK_2:"An error occurred, please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",
YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYLIST:"Playlist",
YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_WITH_PLAYLIST:"Share with playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",YTP_THREED_SHORT:"3D",YTP_THEATER_MODE:"Theater mode",
YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",
YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",
YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",
YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",
YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",
YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",
YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",
YTP_PROGRESS_LABEL:"$PLAY_PROGRESS of $DURATION seconds",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH"});this.wm()}A(H5,zE);f=H5.prototype;f.wm=function(){this.app.subscribe("initializingmode",this.wG,this);this.app.subscribe("videoplayerreset",this.yG,this);this.app.subscribe("videodatachange",this.xG,this);this.app.subscribe("presentingplayerstatechange",this.Tn,this)};f.initialize=function(a){this.ia=rd(a);this.Y(this.ia)};
f.wG=function(){this.W=new mg(0,0,0,0);this.J=new mg(0,0,0,0)};f.addClass=function(a){eh(this.element,arguments)};f.removeClass=function(a){gh(this.element,arguments)};
f.qk=function(){var a=this.app.S();this.addClass("el-"+a.da);this.addClass("ps-"+a.k);P(this.element,"html5-native-controls","3"==a.j);P(this.element,"html5-mobile",a.isMobile);this.wh(!0);a.C||this.addClass("tag-pool-enabled");a.Nb&&this.addClass("house-brand");this.Ca?this.X=Q(window,"resize",w(this.Hj,this)):(a=Lx()?w(this.qC,this):w(this.Hj,this),this.X=Kf(a,250))};f.wh=function(a){var b=this.app.S();P(this.element,"ytp-no-controls",!a||"0"==b.j)};
f.qC=function(){this.R&&Ox(this.R);this.R=Nx(w(this.Hj,this),0)};f.Hj=function(){Oc(this.gb(),rg(this.J))||this.Xf()};f.Xf=function(){if(this.j){var a=this.gb();if(!a.isEmpty()){var b=!Oc(a,rg(this.J)),c=I5(this);b&&(this.J.width=a.width,this.J.height=a.height,this.Bh(a));(c||b)&&this.publish("resize")}}};f.Bh=function(){};f.rk=function(){};f.xG=function(a,b){this.dk(b)};f.yG=function(a){a.getVideoData()&&this.dk(a.getVideoData())};
f.dk=function(a){if(this.j){var b=this.app.S();as&&(this.j.setAttribute("x-webkit-airplay","allow"),b.ke&&this.j.setAttribute("data-youtube-id",a.videoId),a.title?this.j.setAttribute("title",a.title):this.j.removeAttribute("title"));b.se&&(this.j.poster=a.videoId?uF(a,"default.jpg"):"")}b=a.Bc("yt:bgcolor");this.o.style.backgroundColor=b?b:"";this.Ba=yI(a.Bc("yt:stretch"));a=a.Bc("yt:crop");this.ua="fullwidth"==a?Infinity:yI(a)};f.If=function(){};f.Km=function(){};
f.ub=function(){var a=this.app.S();return a.va||a.Za?new H(window.innerWidth,window.innerHeight):new H(this.element.clientWidth,this.element.clientHeight)};f.gb=function(){return this.ub()};f.eu=function(){return this.gb()};function fE(a){return a.j?new H(0<a.j.style.width.indexOf("px")?parseInt(a.j.style.width,10):a.j.clientWidth,0<a.j.style.height.indexOf("px")?parseInt(a.j.style.height,10):a.j.clientHeight):new H(0,0)}function J5(a){return a.j?new H(a.j.videoWidth,a.j.videoHeight):new H(0,0)}
function K5(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.Ba||L5(c),a=a.ua||c,d=L5(b),d=a>d?new H(b.width,b.width/(isFinite(a)?a:c)):a<d?new H(b.height*a,b.height):b.clone(),e||(c>a?d.width=d.height*c:c<a&&(d.height=d.width/c))):(e=c.clone(),d=e.scale(e.width/e.height>b.width/b.height?b.width/e.width:b.height/e.height));return new mg((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function L5(a){return 1>Math.abs(xy*a.height-a.width)||1>Math.abs(xy/a.width-a.height)?xy:a.width/a.height}
function M5(a){return"3"!=a.app.S().j&&!J5(a).isEmpty()}function I5(a){var b=J5(a),c=a.gb(),d=1,e=M5(a),g=!1,h;e?(h=K5(a,c,b,e,!1),d=L5(new H(h.width,h.height))/L5(b),h=new mg(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new mg(0,0,c.width,c.height);pg(a.W,h)||(a.W=h,Lg(a.j,rg(h)),Bg(a.j,new Lc(h.left,h.top)),g=!0);b=K5(a,c,b,e);pg(a.J,b)||(a.J=b,Lg(a.la,b.width,b.height),Bg(a.la,b.left,b.top),g=!0);wg(a.j,"transform",1==d?"none":"scaleX("+d+")");return g}f.zk=function(){};
f.xm=function(){this.k.k=this};f.Tn=function(){};f.L=function(){this.X&&(this.Ca?Ch(this.X):Lf(this.X),this.R&&Ox(this.R));this.ha&&Ch(this.ha);this.N.hide();this.j=this.o=this.ia=null;H5.I.L.call(this)};function N5(a,b,c){R.call(this);this.B=Q(a,"click",w(this.H,this));this.C=Q(a,"dblclick",w(this.F,this));this.G=b;this.o=c;this.k=new Hv(this.D,200,this);S(this,this.k);this.j=!0;this.A=null}A(N5,R);N5.prototype.H=function(a){this.k.isActive()?(this.k.stop(),this.o(a),this.j=!1):(this.A=a,this.k.start(),this.j=!0)};N5.prototype.F=function(a){this.j&&this.o(a)};N5.prototype.D=function(){this.G(this.A);this.j=!0};N5.prototype.L=function(){Ch(this.B);Ch(this.C);N5.I.L.call(this)};var O5=new H(1720,980),P5=new H(1294,630),Q5=new H(640,560),R5=new H(1320,870),S5={ao:new H(1280,720),j:new H(960,540),$n:new H(854,480),uu:new H(640,360),tu:new H(426,240)},T5={ao:new H(1280,750),j:new H(960,570),$n:new H(854,510),uu:new H(640,390),tu:new H(426,270)};
function U5(a,b){var c=new H(window.innerWidth,window.innerHeight),d=b&&!a.experiments.N?T5:S5;return a.Fd?c.width>=R5.width&&c.height>=R5.height?d.ao.clone():d.$n.clone():c.width>=O5.width&&c.height>=O5.height?d.ao.clone():c.width>=P5.width&&c.height>=P5.height?d.$n.clone():!a.experiments.O||c.width>=Q5.width?d.uu.clone():d.tu.clone()};function V5(a){X.call(this,["div","ytp-action-buttons"]);this.shareButton=new IA(a,"ytp-button-share",Y(0,"YTP_SHARE"));S(this,this.shareButton);this.shareButton.Y(this.element);KA(this.shareButton,3400);this.j=new IA(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));S(this,this.j);this.j.Y(this.element);KA(this.j,3300);ih(this.j.M(),"tooltip-below","1");a.Ag(this.j.M(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.likeButton=new IA(a,"ytp-button-like",Y(0,"YTP_LIKE"));S(this,this.likeButton);this.likeButton.Y(this.element);
KA(this.likeButton,3200);ih(this.likeButton.M(),"tooltip-below","1");a.Ag(this.likeButton.M(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}A(V5,X);function W5(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==Ag(h,"position")||(k=Hg(h),l||(l=(l=Tg(h))&&Vc?-h.scrollLeft:!l||Uc&&gd("8")||"visible"==Ag(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Nc(k,new Lc(l,h.scrollTop))))}h=k||new Lc;k=Qg(a);(l=Gg(a))&&qg(k,og(l));var l=od(a),p=od(c);if(l.j!=p.j){var u=l.j.body,p=Ig(u,ge(p)),p=Nc(p,Hg(u));!Uc||hd(9)||fe(l)||(p=Nc(p,he(l)));k.left+=p.x;k.top+=p.y}a=X5(a,b);b=new Lc(a&
2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);b=Nc(b,h);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);if(e=Gg(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;Y5(b,c,d,g,e,197,void 0)}
function Y5(a,b,c,d,e,g,h){a=a.clone();var k=X5(b,c);c=Og(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);g&&(e?(d=a,k=h,l=0,65==(g&65)&&(d.x<e.left||d.x>=e.right)&&(g&=-2),132==(g&132)&&(d.y<e.top||d.y>=e.bottom)&&(g&=-5),d.x<e.left&&g&1&&(d.x=e.left,l|=1),d.x<e.left&&d.x+k.width>e.right&&g&16&&(k.width=Math.max(k.width-(d.x+k.width-e.right),0),l|=4),d.x+k.width>e.right&&g&1&&(d.x=
Math.max(e.right-k.width,e.left),l|=1),g&2&&(l=l|(d.x<e.left?16:0)|(d.x+k.width>e.right?32:0)),d.y<e.top&&g&4&&(d.y=e.top,l|=2),d.y<=e.top&&d.y+k.height<e.bottom&&g&32&&(k.height=Math.max(k.height-(e.top-d.y),0),d.y=e.top,l|=8),d.y>=e.top&&d.y+k.height>e.bottom&&g&32&&(k.height=Math.max(k.height-(d.y+k.height-e.bottom),0),l|=8),d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2),g&8&&(l=l|(d.y<e.top?64:0)|(d.y+k.height>e.bottom?128:0)),e=l):e=256,l=e);e=new mg(0,0,0,0);e.left=
a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(Bg(b,new Lc(e.left,e.top)),h=rg(e),Oc(c,h)||(c=h,e=qd(b),h=fe(od(e)),!Uc||gd("10")||h&&gd("8")?(b=b.style,Vc?b.MozBoxSizing="border-box":Wc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(e=b.style,h?(Uc?(h=Vg(b,"paddingLeft"),g=Vg(b,"paddingRight"),a=Vg(b,"paddingTop"),d=Vg(b,"paddingBottom"),h=new lg(a,g,d,h)):(h=zg(b,"paddingLeft"),g=zg(b,"paddingRight"),a=zg(b,
"paddingTop"),d=zg(b,"paddingBottom"),h=new lg(parseFloat(a),parseFloat(g),parseFloat(d),parseFloat(h))),b=Yg(b),e.pixelWidth=c.width-b.left-h.left-h.right-b.right,e.pixelHeight=c.height-b.top-h.top-h.bottom-b.bottom):(e.pixelWidth=c.width,e.pixelHeight=c.height))))}function X5(a,b){return(b&4&&Tg(a)?b^2:b)&-5};function Z5(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.j=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);S(this,this.j);Xc&&this.j.M().removeAttribute("readonly");this.j.listen("click",this.o,this);var b=Y(0,"YTP_CLOSE");this.k=new IA(a,"ytp-dialog-button",b);this.k.qa(b);S(this,this.k);this.template.update({content:this.j,buttons:this.k});this.listen("contextmenu",
this.A)}A(Z5,gC);Z5.prototype.A=function(a){a.stopPropagation()};Z5.prototype.o=function(){this.j.M().select()};function $5(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Y(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Y(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.Z=a;this.Z.subscribe("internalvideodatachange",this.or,this);this.o=new Fv(this);this.o.listen(b,"contextmenu",
this.AB);this.j=new Fv(this);this.k=new Z5(c);S(this,this.k);this.k.k.listen("click",this.zB,this);a={sB:this.CB,tB:this.DB,uB:w(this.Ir,this,!1),vB:w(this.Ir,this,!0),xB:this.EB,yB:this.FB,wB:this.BB};for(var d in a)a6(this,d,a[d]);this.hide()}A($5,X);f=$5.prototype;f.zB=function(){this.Z.k.If()};function b6(a,b){var c=a.k;c.j.M().value=b;c.j.M().focus();M(w(c.o,c),100);a.Z.k.If(a.k)}
function a6(a,b,c){a.o.listen(a.template.j[rv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();c6(this.Z,"contextmenu."+a)})}f.or=function(a,b){Sw(this.template.j["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.Ir=function(a){b6(this,dr(this.Z,a))};f.DB=function(){b6(this,fr(this.Z))};f.BB=function(a){d6(this.Z,a.target.getAttribute("href"))};
f.EB=function(){var a=Vq(this.Z);a&&a.Zh(new Dq("feedback",!1));var a=this.Z.S(),b=!0;"detailpage"==a.da&&(b=r("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.Z.pauseVideo(),window.open(WZ(a,this.Z.getVideoData())))};f.CB=function(){b6(this,er(this.Z,!0))};f.FB=function(){this.Z.k.N.show()};f.AB=function(a){a.preventDefault();var b=wh(a);a=xh(a);var c=Gg(document.body);Y5(new Lc(b,a),this.element,0,null,c,5);this.show()};f.eE=function(a){!1===a.Kb.returnValue||this.hide()};
f.show=function(){this.F||(this.j.removeAll(),this.j.listen(window,"blur",this.hide),this.j.listen(document,"click",this.fE),this.j.listen(document,"contextmenu",this.eE),$5.I.show.call(this))};f.fE=function(a){2==a.button||a.target&&Sd(this.element,a.target)||this.hide()};f.hide=function(){$5.I.hide.call(this);this.j.removeAll()};f.L=function(){this.o.removeAll();this.j.removeAll();this.Z.unsubscribe("internalvideodatachange",this.or,this);this.Z=null;$5.I.L.call(this)};function e6(){var a=["button","ytp-button-share-more",{tabIndex:3800},["div",["ytp-button-share-more-icon","yt-uix-button-icon-new-window"]],["span","ytp-button-share-more-content",Y(0,"YTP_MORE")]];X.call(this,a)}A(e6,X);function f6(a,b,c,d){IA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);O(this.element,"share-service-icon-sharebar");KA(this,3700)}A(f6,IA);function g6(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.j=this.template.j["ytp-share-url"]}A(g6,X);g6.prototype.focus=function(){this.j.focus();this.j.select()};g6.prototype.L=function(){this.j=null;g6.I.L.call(this)};function h6(a,b){var c=["div","share-bar",["div","share-bar-content"],["div","share-bar-playlist",["input",["ytp-share-bar-checkbox","ytp-share-bar-checked"],{type:"checkbox",checked:"checked"}],["div","share-bar-playlist-message",Y(0,"YTP_SHARE_WITH_PLAYLIST")]]];zE.call(this,c);this.o=b;this.B=a;this.shareUrl=null;this.A=[];this.k=this.j=null;this.closeButton=new IA(this.B,"yt-uix-button-icon-share-bar-close",Y(0,"YTP_CLOSE"),Y(0,"YTP_CLOSE"));this.closeButton.Y(this.template.j["share-bar-content"]);
KA(this.closeButton,3900)}A(h6,zE);function i6(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.k?a.k.videoId:void 0};a.o.Wa&&(b.authuser=a.o.Wa);a.o.pageId&&(b.pageid=a.o.pageId);var c;j6(a)?(c=ud("ytp-share-bar-checkbox"),c=!c||dh(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=j6(a));Ej("/share_ajax",{context:a,method:"GET",onError:a.D,$a:a.G,Me:b})}
h6.prototype.G=function(a,b){if(!this.fa()){k6(this);var c=this.template.j["share-bar-content"];this.shareUrl=new g6;S(this,this.shareUrl);vd(this.shareUrl.j,{value:b.url_short});this.shareUrl.Y(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new f6(this.B,d[e].name,d[e].sname,d[e].img);S(this,g);g.Y(c);g.listen("click",y(fx,d[e].url,{}));this.A.push(g)}this.j=new e6;S(this,this.j);this.j.listen("click",w(this.H,this,b.more));this.j.Y(c);nv(this,this.template.j["ytp-share-bar-checkbox"],
"click",this.C,this);this.publish("menu_show")}};h6.prototype.D=function(){};h6.prototype.H=function(a){ex(a)};function j6(a){return a.k?a.k.playlistId:void 0}h6.prototype.C=function(){var a=ud("ytp-share-bar-checkbox");hh(a,"ytp-share-bar-checked");i6(this)};function k6(a){a.shareUrl&&(a.shareUrl.detach(),a.shareUrl=null);a.j&&(a.j.detach(),a.j=null);D(a.A,function(a){Ld(a.M())});a.A=[]};function l6(a,b){var c=["div","html5-info-bar",["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["a","html5-title-logo",{tabIndex:3550,href:"{{logolink}}","aria-label":Y(0,"YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]]];zE.call(this,c);this.o=b;this.C=a;this.k=null;nv(this,this.template.j["html5-title-text"],"click",this.kr);c=this.template.j["html5-title-logo"];ih(c,"tooltip",Y(0,"YTP_URL_NAVIGATE"));
ih(c,"tooltip-below","1");a.Af(c);nv(this,c,"click",this.kr);c=this.template.j["html5-title"];this.actionButtons=new V5(this.C);S(this,this.actionButtons);this.actionButtons.Y(c,1);this.actionButtons.shareButton.listen("click",this.Hm,this);this.j=null}A(l6,zE);f=l6.prototype;f.update=function(a){this.k=a;if(this.j){var b=this.j;b.k=a;i6(b)}b=a.title||"";a=this.o.getVideoUrl(a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.kr=function(a){qv(a)&&(this.Ou(),a.preventDefault())};
f.Ou=function(){this.Pu()};function m6(a){return dh(a.element,"show-share")}f.Hm=function(){n6(this,!m6(this))};function n6(a,b){if(b&&!a.j){a.j=new h6(a.C,a.o);var c=a.j;c.k=a.k;i6(c);a.j.Y(a.template.j["html5-info-bar"]);a.j.closeButton.listen("click",a.Hm,a);a.j.subscribe("menu_show",w(a.lr,a))}P(a.element,"show-share",b);P(a.element,"share-with-playlist",b&&!!j6(a.j));a.lr()}f.lr=function(){m6(this)&&this.j.shareUrl&&this.j.shareUrl.M().focus()};f.St=function(a){ex(a)};f.Pu=function(){this.St(this.o.getVideoUrl(this.k))};
f.L=function(){this.k=this.o=null;l6.I.L.call(this)};function o6(a,b){l6.call(this,a,b.S());this.Z=b;this.B=2;this.A=!1;this.actionButtons.likeButton.listen("click",this.ED,this);this.actionButtons.j.listen("click",this.DD,this)}A(o6,l6);f=o6.prototype;f.update=function(a){o6.I.update.call(this,a);p6(this,a.Sn);a=!(!a||!a.hs||this.Z.A);var b=!this.Z.S().hi;P(this.element,"ytp-can-share",b);P(this.element,"ytp-can-sentiment",a)};f.Hm=function(){this.publish("share-click")};f.Ou=function(){this.publish("title-click")};f.ED=function(){q6(this,0)};
f.DD=function(){q6(this,1)};function q6(a,b){if(!a.A&&(a.B==b&&(b=2),p6(a,b),a.k)){if("detailpage"!=a.o.da){a.A=!0;var c={playbackId:a.k.playbackId,$a:w(function(){this.A=!1},a),onError:w(function(){this.A=!1},a),Wa:a.o.Wa,pageId:a.o.pageId};BI(a.k.videoId,b,c)}a.Z.publish("RATE_SENTIMENT",{videoId:a.k.videoId,sentiment:b})}}function p6(a,b){a.B=b;P(a.element,"sentiment-like",0==b);P(a.element,"sentiment-dislike",1==b)}f.St=function(a){d6(this.Z,a)};f.Pu=function(){r6(this.Z)};
f.L=function(){this.Z=null;o6.I.L.call(this)};function s6(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Y(0,"YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_DONE");this.j=new IA(a,"ytp-dialog-button",b);this.j.qa(b);S(this,this.j);KA(this.j,1400);this.j.listen("click",this.k,this);this.template.update({content:t6(),buttons:this.j})}A(s6,gC);
function t6(){var a=[{key:"K",message:Y(0,"YTP_PLAY_PAUSE")},{key:"J",message:Y(0,"YTP_SEEK_BACK")},{key:"L",message:Y(0,"YTP_SEEK_FORWARD")},{key:"0-9",message:Y(0,"YTP_SEEK_PERCENT")},{key:">",message:Y(0,"YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Y(0,"YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Y(0,"YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Y(0,"YTP_TOGGLE_MUTE")}],b=[];D(a,function(a){a=new X(["p",null,a.key+": "+a.message]);b.push(a)});return b}s6.prototype.k=function(){this.Ub("done")};
s6.prototype.focus=function(){this.element.focus()};function u6(a,b,c,d,e,g,h,k){this.B=[];D(Hb(b),function(b){this.B.push(Q(a,b,w(this.mx,this)))},this);D(Hb(d),function(b){this.B.push(Q(a,b,w(this.lx,this)))},this);this.C=g||null;this.H=c;this.G=h||0;this.o=0;this.A=!1;this.F=e;this.D=k||0;this.j=0;this.k=!1}f=u6.prototype;f.mx=function(a){N(this.j);this.j=0;this.o=M(w(this.KD,this,a),this.G)};f.lx=function(a){N(this.o);this.o=0;this.j=M(w(this.FD,this,a),this.D)};f.KD=function(a){this.k||this.A||(this.A=!0,this.H.call(this.C||m,a))};
f.FD=function(a){!this.k&&this.A&&(this.A=!1,this.F.call(this.C||m,a))};f.dispose=function(){this.k=!0;N(this.o);N(this.j);Ch(this.B)};f.fa=function(){return this.k};function v6(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.j=this.template.j["ytp-tooltip-body"]}A(v6,X);v6.prototype.hide=function(){v6.I.hide.call(this);Bg(this.j,0)};v6.prototype.L=function(){Jd(this.j);this.j=null;v6.I.L.call(this)};function w6(a,b){R.call(this);this.j={};this.fn=a;this.k=b}A(w6,R);
w6.prototype.Af=function(a,b){var c,d=new u6(a,"mouseover",function(){if(this.fn){var d=new v6;d.Y(this.fn);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||kh(a,"tooltip")||"";if(v(d)){var g=Gd(d),d=Fd("span");d.className="ytp-text-tooltip";d.appendChild(g)}iv(c.template,"content",d);var g=!!kh(a,"tooltip-below"),d=c,h=Og(a),h=new Lc(h.width/2,g?h.height:0),k=Hg(a),h=new Lc(k.x+h.x,k.y+h.y),g=!!g;P(d.element,"ytp-tooltip-below",g);if(k=Fg(d.element))var l=Hg(k),p=Yg(k),h=Nc(h,new Lc(l.x+p.left,l.y+
p.top));Y5(h,d.element,g?1:0);d.show();var p=Og(d.j),g=p.width/2*-1,u=xd(window),x=zd(document),h=x.x,u=u.width+x.x,x=h,L=u;k&&(k=Og(k),x=l.x,L=k.width+l.x);k=Hg(d.j);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,x)?g-=l-Math.max(h,x):k>Math.min(u,L)&&(g-=k-Math.min(u,L));Bg(d.j,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),wi(c),c=null)},this,10,50);this.j[ka(a)]=d};
w6.prototype.Ag=function(a,b,c){var d=this.k;this.Af(a,function(){if(d){var a="detailpage"==d.da;if(!d.ja||a)return c}else return c;var g=d.ja,h=d.U,a=Fd("div");O(a,"ytp-identity-tooltip");var k=Fd("img");k.src=h;h=Fd("span");g=Gd(Of(b,{USER_NAME:g}));Id(h,g);Id(a,k,h);return a})};w6.prototype.Gn=function(a){a=ka(a);wi(this.j[a]);this.j[a]=null};w6.prototype.L=function(){this.k=this.fn=null;for(var a in this.j)wi(this.j[a]);this.j={};w6.I.L.call(this)};function x6(){this.j=[];this.k=[]}ba(x6);var QE=r("yt.player.utils.VideoTagPool.instance_")||x6.getInstance();q("yt.player.utils.VideoTagPool.instance_",QE,void 0);f=x6.prototype;f.Ts=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=y6(this);this.j.push(c)}}};function y6(a,b){var c=document.createElement("video");ra(c,hs);Q(c,"loadeddata",w(c.ZE,c));Q(c,"volumechange",w(c.$E,c));Xh&&6<=Wr&&Q(c,"webkitbeginfullscreen",w(c.play,c));b||is(c);a.k.push(c);return c}
f.hH=function(a){return this.j.length?this.j.pop():y6(this,a)};f.cH=function(a){a&&G(this.k,a)&&(os(a),Fh(a),pb(this.k,a))};f.Us=function(a){return this.j.length>=(a||1)};f.$G=function(){this.j=[];this.Us(4)?D(this.k,function(a){is(a);this.j.push(a)},this):this.Ts(4)};x6.prototype.fillPool=x6.prototype.Ts;x6.prototype.getTag=x6.prototype.hH;x6.prototype.releaseTag=x6.prototype.cH;x6.prototype.hasTags=x6.prototype.Us;x6.prototype.activateTags=x6.prototype.$G;function z6(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.j=new n2(this,500);S(this,this.j)}A(z6,X);function A6(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.k=a;this.j=null}A(A6,X);A6.prototype.show=function(){A6.I.show.call(this);B6(this);this.j.focus()};A6.prototype.hide=function(){A6.I.hide.call(this);var a=Rd(this.element);a&&a.focus()};function B6(a){if(a.j){a.j.Ks();var b=a.k.ub(),c=Ng(a.j.M());a=a.j;b=new Lc(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.M().style.marginLeft=b.x+"px";a.M().style.marginTop=b.y+"px"}}
A6.prototype.L=function(){this.j=null;A6.I.L.call(this)};function C6(a,b){TE.call(this,a,b);this.C=null;this.D=this.G=this.o=this.k=0;O(this.element,"ytp-tv-static");D6(this,a,b)}A(C6,TE);function E6(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}
function D6(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),g=e.getImageData(0,0,b,c),h=b*c,k=0;k<h;k++){var l=4*k;g.data[l]=g.data[l+1]=g.data[l+2]=Math.floor(35*Math.random());g.data[l+3]=255}e.putImageData(g,0,0);a.C=d;a.G=E6(b);a.D=E6(c/10);a.context.scale(1.5,1.5)}}C6.prototype.show=function(){C6.I.show.call(this);var a=this.H;this.A=new Date;this.B(a,75)};
C6.prototype.H=function(){var a=1-1/1.5;this.k=(this.k+this.G)%(this.width*a);this.o=(this.o+this.D)%(this.height*a);this.context.drawImage(this.C,-1*this.k,-1*this.o)};C6.prototype.hide=function(){N(this.j);C6.I.hide.call(this)};function F6(){X.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.ja="table";this.k=[];if(void 0==Vt){var a=document.createElement("canvas");Vt=!(!a.getContext||!a.getContext("2d"))}Vt&&(this.j=new C6(1,1),this.j.Y(this.element,0),S(this,this.j))}A(F6,X);F6.prototype.show=function(){F6.I.show.call(this);G6(this);this.j&&this.j.show()};F6.prototype.hide=function(){F6.I.hide.call(this);this.j&&this.j.hide()};
function G6(a){a.j&&D6(a.j,a.element.clientWidth,a.element.clientHeight)}F6.prototype.L=function(){Ch(this.k);this.k=[];F6.I.L.call(this)};function H6(a){zE.call(this,["div","html5-storyboard",["div","html5-storyboard-filmstrip",["img","html5-storyboard-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-storyboard-lens",["img","html5-storyboard-lens-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}],["span","html5-storyboard-lens-timestamp"]]]);this.G=!1;this.B=new pn(this.nx,250,this);S(this,this.B);this.Pd=a;this.j=this.template.j["html5-storyboard-filmstrip"];
this.D=this.template.j["html5-storyboard-lens"];this.H=this.template.j["html5-storyboard-lens-thumbnail"];this.J=this.template.j["html5-storyboard-lens-timestamp"];this.A=this.template.j["html5-storyboard-thumbnail"];Ld(this.A);this.k=0;this.o=new j2(0,0);this.C=!1;this.hide()}A(H6,zE);f=H6.prototype;f.uq=!1;f.Pd=0;f.Kl=0;f.kl=0;f.jt=10;f.Qb=0;f.Qj=0;f.Bn=0;f.$b=null;f.Pe=null;f.disable=function(){this.uq=!0};
f.lz=function(){for(var a=this.j.cloneNode(!0),b=this.$b.j[0].vn(),c,d,e=this.$b.j[0].ht();e<=b;e++)d=this.A.cloneNode(!1),c=II(this.Pe,e,this.Qb),p2(d,c,this.Qb,this.Qj),a.appendChild(d);Md(a,this.j);this.j=a};f.Zp=function(a,b){Sg(this.j,!1);for(var c,d,e=a;e<=b;e++)if(d=this.j.children[e])c=II(this.Pe,e,this.Qb),p2(d,c,this.Qb,this.Qj);Sg(this.j,!0)};function I6(a,b){if(b!=a.Bn){var c=II(a.Pe,b,2*a.Qb),d=Math.round(2*a.Qb),e=Math.round(2*a.Qj);p2(a.H,c,d,e);a.Bn=b}}
f.nx=function(){for(var a=this.Kl,b=Math.max(Math.floor(a/this.Qb),0),a=Math.min(Math.ceil((a+this.Pd)/this.Qb),this.$b.j[0].Lf()-1);b<=a;b++)JI(this.Pe,b,2*this.Qb)};function J6(a,b){a.jt=Math.min(10,Math.ceil(a.Pd/72));a.Qb=Math.floor(a.Pd/a.jt);a.Qj=.555*a.Qb;a.kl=a.Qb*a.$b.j[0].Lf();Mg(a.j,a.kl);var c=Math.round(2*a.Qb),d=.555*c+12;Lg(a.D,c,d);Bg(a.D,(a.Pd-c)/2);c=d+20;a.M().style.height=Cg(c,!0);b&&(a.Zp(0,a.$b.j[0].Lf()-1),I6(a,a.Bn),a.G=!0)}f.show=function(){this.$b&&H6.I.show.call(this)};
f.L=function(){this.Pe=this.$b=null;Ox(this.k);H6.I.L.call(this)};function K6(a){X.call(this,["div","html5-storyboard-framepreview",["img","html5-storyboard-framepreview-img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]]);this.D=this.template.j["html5-storyboard-framepreview-img"];this.C=a;this.j=this.C.gb();this.o=this.k=null;this.A=0;this.B=new j2(0,0);this.hide()}A(K6,X);function L6(a){var b=II(a.o,a.A,a.j.width);p2(a.D,b,a.j.width,a.j.height);JI(a.o,a.A,a.j.width)}K6.prototype.show=function(){this.k&&K6.I.show.call(this)};function M6(a,b,c){X.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.k=a;this.j=null;c&&(this.j=new c5(a,b),S(this,this.j),this.j.Y(this.element))}A(M6,X);
function N6(a,b){if(b&&b.videoId){var c;if(!a.k){var d=a.element.clientWidth,e=a.element.clientHeight;if(900<d||600<e)c=uF(b,"maxresdefault.jpg");!c&&(430<d||320<e)&&(c=uF(b,"sddefault.jpg")||uF(b,"hqdefault.jpg"))}c||(c=uF(b,"default.jpg"));a.element.style.backgroundImage="url("+c+")"}else a.element.style.backgroundImage=""};var O6={},P6="ontouchstart"in document;function Q6(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return de(c,function(a){return dh(a,b)},!0,d)}
function R6(a){var b="mouseover"==a.type&&"mouseenter"in O6||"mouseout"==a.type&&"mouseleave"in O6,c=a.type in O6||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=O6[b],d;for(d in c.kc){var e=Q6(b,d,a.target);e&&!de(a.relatedTarget,function(a){return a==e},!0)&&c.publish(d,e,b,a)}}if(b=O6[a.type])for(d in b.kc)(e=Q6(a.type,d,a.target))&&b.publish(d,e,a.type,a)}}Q(document,"blur",R6,!0);Q(document,"change",R6,!0);Q(document,"click",R6);
Q(document,"focus",R6,!0);Q(document,"mouseover",R6);Q(document,"mouseout",R6);Q(document,"mousedown",R6);Q(document,"keydown",R6);Q(document,"keyup",R6);Q(document,"keypress",R6);Q(document,"cut",R6);Q(document,"paste",R6);P6&&(Q(document,"touchstart",R6),Q(document,"touchend",R6),Q(document,"touchcancel",R6));function S6(){this.A={};this.Vn=[]}function T6(a,b){return"yt-uix"+(a.jo?"-"+a.jo:"")+(b?"-"+b:"")}S6.prototype.init=t;S6.prototype.dispose=t;function U6(a,b,c){var d=T6(a,void 0),e=w(c,a);b in O6||(O6[b]=new zi);O6[b].subscribe(d,e);a.A[c]=e}S6.prototype.k=function(a,b,c){var d=kh(a,b);if(d&&(d=r(d))){var e=wb(arguments,2);vb(e,0,0,a);d.apply(null,e)}};function V6(a,b){ih(a,"tooltip-text",b)}S6.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[jh(b)]:a.removeAttribute("data-"+b))};function W6(){S6.call(this);this.j={}}A(W6,S6);ba(W6);f=W6.prototype;f.jo="tooltip";f.gk=0;f.register=function(){U6(this,"mouseover",this.Hu);U6(this,"mouseout",this.fk);U6(this,"click",this.fk);U6(this,"touchstart",this.vG);U6(this,"touchend",this.Ju);U6(this,"touchcancel",this.Ju)};f.dispose=function(){for(var a in this.j)this.fk(this.j[a]);this.j={}};
f.Hu=function(a){if(!(this.gk&&1E3>z()-this.gk)){var b=parseInt(kh(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),N(b));var b=w(function(){X6(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(kh(a,"tooltip-show-delay"),10)||0,b=M(b,c);ih(a,"tooltip-show-timer",b.toString());a.title&&(V6(a,Y6(a)),a.title="");b=ka(a).toString();this.j[b]=a}};
f.fk=function(a){var b=parseInt(kh(a,"tooltip-show-timer"),10);b&&(N(b),this.removeData(a,"tooltip-show-timer"));b=w(function(){Z6(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=M(b,50);ih(a,"tooltip-hide-timer",b.toString());if(b=kh(a,"tooltip-text"))a.title=b;b=ka(a).toString();delete this.j[b]};f.vG=function(a,b,c){this.gk=0;a=Q6(b,T6(this),c.changedTouches[0].target);this.Hu(a)};f.Ju=function(a,b,c){this.gk=z();a=Q6(b,T6(this),c.changedTouches[0].target);this.fk(a)};
function $6(a,b){V6(a,b);var c=kh(a,"content-id");if(c=rd(c))c.innerHTML=b}function Y6(a){return kh(a,"tooltip-text")||a.title}
function X6(a,b){if(b){var c=Y6(b);if(c){var d=rd(a7(a,b));if(!d){d=document.createElement("div");d.id=a7(a,b);d.className=T6(a,"tip");var e=document.createElement("div");e.className=T6(a,"tip-body");var g=document.createElement("div");g.className=T6(a,"tip-arrow");var h=document.createElement("div");h.className=T6(a,"tip-content");var k=b7(a,b),l=a7(a,b,"content");h.id=l;ih(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Ih()||document.body).appendChild(d);
$6(b,c);(c=parseInt(kh(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",O(h,T6(a,"normal-wrap")));h=dh(b,T6(a,"reverse"));c7(a,b,d,e,k,h)||c7(a,b,d,e,k,!h);var p=T6(a,"tip-visible");M(function(){O(d,p)},0)}}}}
function c7(a,b,c,d,e,g){P(c,T6(a,"tip-reverse"),g);a=0;g&&(a=1);var h=Og(b);g=new Lc((h.width-10)/2,g?h.height:0);var k=Hg(b);Y5(new Lc(k.x+g.x,k.y+g.y),c,a);var k=xd(window),l=Kg(c);c=Og(d);var p=Math.floor(c.width/2);a=!!(k.height<l.y+h.height);h=!!(l.y<h.height);g=!!(l.x<p);k=!!(k.width<l.x+p);l=(c.width+3)/-2- -5;b=kh(b,"force-tooltip-direction");if("left"==b||g)l=-5;else if("right"==b||k)l=20-c.width-3;b=Math.floor(l)+"px";d.style.left=b;e&&(e.style.left=b,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(a||h)}function Z6(a,b){if(b){var c=rd(a7(a,b));c&&(d7(c),Ld(c),a.removeData(b,"content-id"))}}function a7(a,b,c){a=T6(a)+nh(b);c&&(a+="-"+c);return a}function b7(a,b){var c=null;Zc&&dh(b,T6(a,"masked"))&&((c=rd("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Uw(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=T6(a,"tip-mask")));return c}
function d7(a){var b=rd("yt-uix-tooltip-shared-mask"),c=b&&de(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Vw(b),document.body.appendChild(b))};function e7(a,b){gh(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&O(a,b);Z6(W6.getInstance(),a)};function f7(a){HA.call(this);this.o=null;this.j=new rC(a,w(this.C,this),w(this.D,this));S(this,this.j);this.label=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new mC(a,void 0,this.j);S(this,this.element);oC(this.element,100);this.element.Xa(this.label);this.priority=0;this.A=!0}A(f7,HA);function g7(a,b){a.o!=b&&(a.o=b,a.j.Ea(b),a.element.Sd(a.C(b)))}f7.prototype.C=function(a){return a.name};f7.prototype.D=function(a){this.element.Td();g7(this,a);this.element.Ub("change")};function h7(a){HA.call(this);this.label=Y(0,"YTP_AUTOPLAY");this.element=new LA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);this.element.Xa(this.label);NA(this.element,2050);this.priority=4;this.Ea(0)}A(h7,HA);h7.prototype.getSelected=function(){return this.element.getSelected()};h7.prototype.Ea=function(a){this.element.Ea(a)};function i7(a){IA.call(this,a);KA(this,6900);j7(this)}A(i7,IA);function j7(a){JA(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");a.Xa(b);a.o=b};function k7(a,b,c){X.call(this,["div","ytp-menu-container",{tabIndex:-1,role:"menu","aria-labelledby":b},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.A=a;this.o=c||!1;this.j=[];this.k=[]}A(k7,X);f=k7.prototype;f.add=function(a){for(var b=this.j.length,c=0;c<this.j.length;c++){if(this.j[c]==a)return;if(c<b&&this.j[c].priority<a.priority){b=c;break}}vb(this.j,b,0,a);l7(this)};f.remove=function(a){pb(this.j,a);l7(this)};
function l7(a){yi(a.k);a.k=[];var b,c,d=[],e=1==a.j.length||a.o;e&&a.j.length&&(c=new X(["div","ytp-menu-row",["div","ytp-menu-cell",a.j[0].label]]),d.push(c));var g=!1;for(b=0;b<a.j.length;b++)g=g||a.j[b].B;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.j.length;b++){var k=a.j[b];c=k.A;c=e?!g||c?new X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.A?new X(["div",
"ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.qa(k.element);c.qa(m7(a,k),"more");d.push(c)}a.qa(d)}function m7(a,b){if(b.B){var c=Y(0,"YTP_OPTIONS"),d=new IA(a.A,"ytp-menu-more-options",c);KA(d,2700);d.qa(c);a.k.push(d);d.listen("click",b.G,b);return d}return null}f.focus=function(){this.M().focus()};
f.qj=function(){return this.j.length};f.L=function(){this.j=[];l7(this);k7.I.L.call(this)};function n7(a){IA.call(this,a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));KA(this,6051)}A(n7,IA);function o7(a){IA.call(this,a);KA(this,6E3);p7(this)}A(o7,IA);function p7(a){JA(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");a.Xa(b)};function q7(a){IA.call(this,a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));KA(this,6050)}A(q7,IA);function r7(a){HA.call(this);this.D=this.F="unknown";this.H={};this.label=Y(0,"YTP_QUALITY_TITLE");this.o=new rC(a,w(this.C,this),w(this.J,this),!0);S(this,this.o);this.j=NaN;this.element=new mC(a,void 0,this.o);S(this,this.element);oC(this.element,100);this.element.Xa(this.label);this.priority=-1;this.A=!0}A(r7,HA);r7.prototype.Yn=function(){return this.F};
function s7(a,b,c){a.F=b;a.D=c;a.o.Ea(c);var d=a.o;null!=d.j&&qC(tC(d,d.j),!1);null!=b&&qC(tC(d,b),!0);d.j=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:t7(a,b)}),b=new NF(b)):b=a.C(b);isNaN(a.j)||(Lx()?Ox(a.j):N(a.j));Lx()?a.j=Nx(w(a.element.Sd,a.element,b),0):a.j=M(w(a.element.Sd,a.element,b),0)}function t7(a,b){var c=Bt[b],c=c?c+"p":Of("YTP_AUTO"),d=a.H[b];return d&&30<d?c+d.toString():c}
r7.prototype.C=function(a){var b=["span","",t7(this,a)],c;"highres"==a?c="8K":"hd2880"==a?c="5K":"hd2160"==a?c="4K":0==a.indexOf("hd")&&(c="HD");c&&(b.push(" "),b.push(["sup","",c]));return new dv(b)};r7.prototype.J=function(a){this.element.Td();if("auto"!=this.D||"auto"!=a)s7(this,a,a),this.element.Ub("change")};r7.prototype.L=function(){Lx()?Ox(this.j):N(this.j);r7.I.L.call(this)};function u7(a){bC.call(this,a,"ytp-size-toggle-large",Y(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",Y(0,"YTP_DEFAULT_VIEW"));KA(this,6800)}A(u7,bC);u7.prototype.update=function(){u7.I.update.call(this);this.element.removeAttribute("aria-pressed")};function v7(a){HA.call(this);this.o=2;this.label=Y(0,"YTP_SPEED_TITLE");this.j=new rC(a,w(this.C,this),w(this.D,this));S(this,this.j);this.element=new mC(a,void 0,this.j);S(this,this.element);oC(this.element,100);this.element.Xa(this.label);w7(this,this.o);this.priority=1;this.A=!0}A(v7,HA);function w7(a,b){a.o=b;a.j.Ea(b);a.element.Sd(a.C(b))}v7.prototype.C=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};v7.prototype.D=function(a){this.element.Td();w7(this,a);this.element.Ub("change")};function x7(){X.call(this,["div",["ytp-time-display","html5-control"],{"aria-hidden":"true"},["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.liveBadge=this.template.j["ytp-time-live-badge"]}A(x7,X);x7.prototype.nf=function(a){iv(this.template,"duration",ov(a))};function y7(a,b,c){P(a.element,"ytp-time-liveonly",b&&!c);P(a.element,"ytp-time-live",b&&c)}
x7.prototype.L=function(){this.liveBadge=null;x7.I.L.call(this)};function z7(a,b){this.C=a;X.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:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.j=new IA(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));S(this,this.j);this.j.Y(this.element,0);KA(this.j,6100);this.A=this.template.j["ytp-volume-panel"];this.o=this.template.j["ytp-volume-slider"];
this.B=this.template.j["ytp-volume-slider-foreground"];this.k=b}A(z7,X);z7.prototype.Xa=function(a){this.j.Xa(a)};
z7.prototype.setVolume=function(a,b){var c=Y(0,b?"YTP_UNMUTE":"YTP_MUTE");this.j.o=c;var c=Math.round(a),d=c+"% "+Y(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Y(0,"YTP_SCREENREADER_VOLUME_MUTED"):"");this.Xa(Y(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y(0,"YTP_SCREENREADER_CONTROL_TOGGLE"));iv(this.template,"valuenow",c);iv(this.template,"valuetext",d);c="max";b||0==a?c="off":20>a?c="min":40>a?c="quiet":60>a?c="normal":80>a&&(c="loud");ih(this.j.M(),"value",c);c=(this.k?
85:54)-(this.k?7:5);d=b?0:a;0>=d?c=0:100<=d||(d=(c-0)*d/100,c=0>=d?0:d>=c?c:0+Math.round(d));this.B.style.left=c+"px"};function A7(a,b,c){zE.call(this,["div","html5-video-controls"]);this.xa=a;this.na=new Fv(this);this.D={};this.B=null;this.W=new Fv(this);this.la=-1;this.ia=null;this.va=c;this.ca=new z2(a,b);S(this,this.ca);this.ca.Y(this.element);c=new dv(["div","html5-player-chrome"]);S(this,c);c.Y(this.element);c=c.M();this.ha=this.R=!1;this.X=new q7(a);S(this,this.X);this.X.listen("click",y(this.publish,"previousvideo"),this);this.X.Y(c);this.A=new o7(a);S(this,this.A);this.A.Y(c);this.A.listen("click",this.Gv,
this);this.$=new n7(a);S(this,this.$);this.$.listen("click",y(this.publish,"nextvideo"),this);this.$.Y(c);var d=new dv(["span","ytp-volume-hover-area"]);S(this,d);d.Y(c);this.j=new z7(a,b);S(this,this.j);this.j.Y(d.M());this.j.j.listen("click",this.Hv,this);this.V=new r2(this.j.o,!0);S(this,this.V);this.V.subscribe("dragstart",this.Dv,this);this.V.subscribe("dragmove",this.Cv,this);this.V.subscribe("dragend",this.Bv,this);this.C=new x7;S(this,this.C);this.C.Y(d.M());this.na.listen(this.C.liveBadge,
"click",y(this.publish,"seekto",Infinity));this.ua=new r2(this.j.M());S(this,this.ua);this.ua.subscribe("hoverstart",this.Jv,this);this.oa=new r2(d.M());S(this,this.oa);this.oa.subscribe("hoverend",this.Iv,this);this.J=new i7(a);S(this,this.J);this.J.Y(c);this.J.listen("click",this.Av,this);this.o=new u7(a);S(this,this.o);this.o.hide();this.o.Y(c);this.o.listen("click",this.yv,this);this.H=new IA(a,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));S(this,this.H);KA(this.H,
6700);this.H.Y(c);this.H.listen("click",this.Fv,this);this.K=new AC(a);S(this,this.K);B7(this,"__default__",this.K,this.H.M());this.ma=new IA(a,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));KA(this.ma,6400);this.ma.Y(c);S(this,this.ma);this.k=new IA(a,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));a.Ag(this.k.M(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));this.k.Y(c);KA(this.k,6300);this.k.Xa(Y(0,"YTP_WATCH_LATER"));S(this,this.k);this.k.listen("click",this.Ev,this);this.G=
new r7(a);S(this,this.G);this.G.listen("change",this.xv,this);this.P=new v7(a);S(this,this.P);this.P.listen("change",this.zv,this);this.N=new f7(a);S(this,this.N);this.N.listen("change",this.vv,this);this.O=new h7(a);S(this,this.O);this.O.listen("change",this.wv,this)}A(A7,zE);f=A7.prototype;f.qB="__default__";f.Ql=!1;f.disable=function(a){C7(this,a,!0)};f.enable=function(a){C7(this,a,!1)};
function C7(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":P(a.element,"disabled-control-audio",c);break;case "play_pause":var e=a.A;c?e.disable():e.enable();break;case "seek":P(a.element,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.la!=a||this.ia!=b)this.j.setVolume(a,b),this.la=a,this.ia=b};f.nf=function(a){this.C.nf(a)};f.Hv=function(){this.publish("mutetoggled")};
function D7(a,b){if(b){if(a.Ql){var c=a.A;JA(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.A,JA(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");c.Xa(d)}else p7(a.A)}function E7(a){var b=a.$;a.R||a.ha?b.show():b.hide();b=a.X;a.R?b.show():b.hide()}f.Gv=function(){this.publish("playpausetoggled")};f.Jv=function(){O(this.j.M(),"ytp-volume-control-hover")};f.Iv=function(){fh(this.j.M(),"ytp-volume-control-hover")};f.Dv=function(){O(this.j.M(),"ytp-volume-slider-active");this.publish("volumechangestart")};
f.Cv=function(a){a=(a-Hg(this.j.o).x)/(this.j.k?85:54)*100;a={volume:Kc(a,0,100),muted:!1};this.publish("volumechanged",a)};f.Bv=function(){fh(this.j.M(),"ytp-volume-slider-active");this.publish("volumechangeend");this.j.A.blur()};f.Av=function(){this.publish("fullscreentoggled")};function F7(a,b){var c=a.D[b.k||"__default__"].menu;c&&c.add(b)}function G7(a,b){var c=a.D[b.k||"__default__"].menu;c&&c.remove(b)}
function B7(a,b,c,d){if(!a.D[b]){if("remote"==b)Kd(Rd(a.K.M()),c.M(),0);else{var e=c.M();d=d||a.K.M();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}e=c.listen("click",y(a.lF,b),a);c.M().getAttribute("aria-label");d=c.M().id;d=new k7(a.xa,d,"__default__"!=b);d.hide();d.Y(a.element);a.D[b]={menu:d,button:c,kF:e}}}function H7(a,b){var c=a.D[b];c&&(c.button.detach(),c.button.Aa(c.kF),c.menu.dispose(),delete a.D[b])}
f.Ev=function(){var a=this.k.M();if(!dh(a,"html5-async-progress")){var b=dh(a,"html5-async-success");e7(a,"html5-async-progress");this.publish("watchlater",b)}};f.Fv=function(){this.publish("watchonyoutube")};f.rB=function(a){a.target&&(Sd(this.B.button.M(),a.target)||Sd(this.B.menu.M(),a.target))||this.Kf()};f.Kf=function(){this.publish("menu_show")};f.lF=function(a){var b=this.D[a];b&&b.menu.qj()&&(b.button.j?this.Kf():this.publish("menu_show",a))};
f.vv=function(){this.publish("audiotrackchanged",this.N.o);this.Kf()};f.xv=function(){var a=this.G.Yn();this.publish("qualitychanged",a);this.publish("controlclick","quality-"+a);this.Kf()};f.yv=function(){var a=this.o;a.j?dC(a):cC(a);this.o.M().focus();this.publish("sizechangerequested",1==this.o.j)};f.zv=function(){var a=this.P.o;this.publish("speedchanged",a);this.publish("controlclick","speed-"+a);this.Kf()};f.wv=function(){this.publish("autonavchangerequest",0==this.O.getSelected()?2:1)};
f.fy=function(a){var b=a.target;a=b==this.A.M()?"playpause":b==this.j?"volume":b==this.C?"time":b==this.K?"settings":b==this.k?"watchlater":b==this.H?"youtube":b==this.J.M()?"fullscreen":b==this.o?"size":a.target.className;this.publish("controlclick",a)};f.focus=function(){this.A.M().focus()};f.L=function(){this.na.removeAll();this.W.removeAll();this.B=null;for(var a in this.D)H7(this,a);this.va||(this.la=-1,this.ia=null);A7.I.L.call(this)};function I7(a){J7("add_to_watch_later_list",a)}function K7(a){J7("delete_from_watch_later_list",a)}function J7(a,b){Ej("/playlist_video_ajax?action_"+a+"=1",{method:"POST",Me:{feature:b.rH||null,authuser:b.Wa||null,pageid:b.pageId||null},Ab:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.sH||null,delete_from_playlists:b.tH||null,add_to_playlists:b.qH||null,plid:If("PLAYBACK_ID")||null},context:b.context,onError:b.onError,$a:b.$a,Pb:b.Pb})};function L7(a,b){R.call(this);this.G=a;this.D=[];this.H=b;this.F=[]}A(L7,R);function M7(a,b,c){a.D.push(a.G.subscribe(b,c,a))}function N7(a,b,c){a.F.push(a.H.subscribe(b,c,a))}function O7(a){for(var b=0;b<a.D.length;b++)a.G.Lb(a.D[b]);for(b=0;b<a.F.length;b++)a.H.Lb(a.F[b])}L7.prototype.L=function(){O7(this);L7.I.L.call(this)};function P7(a,b,c,d){L7.call(this,a,b);this.C=!1;this.B=a;this.j=b;this.A=c;this.k=0;this.o=d;a=a.S();a.color&&O(this.j.N,a.color);a.ii&&(a=this.j,a.k=new w2,a.k.Y(a.M()),S(a,a.k));Q7(this)}A(P7,L7);
function Q7(a){O7(a);a.C=!0;M7(a,"cuerangesadded",a.xF);M7(a,"cuerangesremoved",a.yF);M7(a,"cuerangemarkersupdated",a.wF);M7(a,"progresssync",a.dq);M7(a,"resize",a.AF);M7(a,"seekto",a.CF);M7(a,"videodatachange",a.DF);M7(a,"videoplayerreset",a.cq);M7(a,"videoready",a.BF);N7(a,"beginseeking",a.vF);N7(a,"endseeking",a.zF);N7(a,"seekto",a.uF)}f=P7.prototype;f.xF=function(a){I2(this.j,a)};f.yF=function(a){K2(this.j,a)};f.wF=function(a){I2(this.j,a)};
f.AF=function(a){var b=this.j;b.A=a.width;A2(b);b=this.A;b.j=b.C.gb();b.k&&b.o&&L6(b);b=this.o;a=a.width;!b.$b||b.Pd==a&&b.G||(b.Pd=a,J6(b,!0))};f.CF=function(a){var b=this.B.lc.Ng();a=m2(new j2(b.seekableStart,b.seekableEnd),a);b=this.j;G2(b,n(a)?a:b.B,n(void 0)?void 0:b.G);b=this.o;if(b.$b){b.Kl=b.kl*a-b.Pd/2;Bg(b.j,-1*b.Kl);var c=l2(b.o,a),d=nI(b.$b,b.Qb),d=b.$b.j[d].Ji(c);I6(b,d);Ud(b.J,ov(b.C?c-b.o.j:c));qn(b.B)}b=this.A;b.k&&b.o&&(a=l2(b.B,a),c=nI(b.k,b.j.width),b.A=b.k.j[c].Ji(a),L6(b))};
f.cq=function(a){if(1!=a.getPlayerType()){if(!this.C)return;O7(this);this.C=!1;M7(this,"videoplayerreset",this.cq)}else if(!this.C){Q7(this);var b=this.j;Jd(b.ia);b.H={};b.R={};I2(this.j,a.D.j.j||[])}this.j.k&&x2(this.j.k);this.k&&(N(this.k),this.k=0);this.o.hide();this.A.hide();this.dq()};
f.DF=function(a,b){var c=new j2(0,b.lengthSeconds),d=this.j;d.j=c;H2(d);A2(d);this.j.k&&(this.j.k.k=c);this.o.o=c;this.A.B=c;c=this.j;c.O=b.clipStart;F2(c);G2(c,c.B,c.G);c=this.j;c.P=b.clipEnd;F2(c);G2(c,c.B,c.G);c=this.j;d=!!b.$;c.Ia=d;P(c.ha,"ytp-fast-load",d)};
f.BF=function(a){if(this.j.k){var b=this.j.k;b.Yi||(XI(a)?(O(b.M(),"with-thumbnail"),b.Qe=XI(a),b.Xg=YI(a),b.Xg.subscribe("l",b.mz,b)):x2(b))}b=this.o;b.A&&Jd(b.j);fh(b.M(),"enabled");Ox(b.k);b.$b=XI(a);b.Pe=YI(a);b.C=a.Va;b.$b&&!b.uq&&(O(b.M(),"enabled"),b.Pe.subscribe("l",b.Zp,b),J6(b),Ox(b.k),b.k=Nx(w(b.lz,b)));b=this.A;b.k=XI(a);b.o=YI(a);this.j.ib=a.yb;L2(this.j,!aJ(a))};
f.dq=function(a,b){var c=this.B.lc.Ng(),d=n(a)?a:c.current,e=new j2(c.seekableStart,n(b)?b:c.seekableEnd),c=m2(e,c.loaded),d=m2(e,d),g=this.j;g.j=e;H2(g);A2(g);g=this.j;G2(g,n(d)?d:g.B,n(c)?c:g.G);this.j.k&&(this.j.k.k=e);this.o.o=e;this.A.B=e};f.vF=function(a){P1(this.B.o);null==a||isNaN(a)||this.B.Yh("chaptermarker",{position:a});this.k&&N(this.k);this.k=M(w(this.aE,this),200)};f.zF=function(){this.B.o.Ri();this.o.hide();this.A.hide();this.k&&(N(this.k),this.k=0)};
f.uF=function(a,b){Hq(this.B,a,b)};f.aE=function(){this.o.show();this.A.show()};f.L=function(){P7.I.L.call(this)};function R7(a,b,c,d){L7.call(this,a,b);M7(this,"applicationplayerstatechange",this.Ax);M7(this,"controlsdisabled",this.Ex);M7(this,"controlsenabled",this.Fx);M7(this,"liveviewshift",this.Ix);M7(this,"fullscreentoggled",this.Hx);M7(this,"presentingplayerstatechange",this.Rx);M7(this,"progresssync",this.ny);M7(this,"videoplayerreset",this.my);M7(this,"videodatachange",this.ly);M7(this,"onPlaybackQualityChange",this.Ux);M7(this,"onVolumeChange",this.$x);M7(this,"menu_button_add",this.Jx);M7(this,"menu_button_remove",
this.Kx);M7(this,"menu_item_add",this.Lx);M7(this,"menu_item_remove",this.Mx);M7(this,"menu_show",this.jy);M7(this,"onPlaybackRateChange",this.Qx);M7(this,"onPlaylistUpdate",this.Sx);M7(this,"autonavchange",this.iy);N7(this,"fullscreentoggled",this.Gx);N7(this,"mutetoggled",this.Nx);N7(this,"nextvideo",this.Ox);N7(this,"playpausetoggled",this.Px);N7(this,"previousvideo",this.Tx);N7(this,"qualitychanged",this.Vx);N7(this,"audiotrackchanged",this.Bx);N7(this,"seekto",this.ky);N7(this,"sizechangerequested",
this.Wx);N7(this,"speedchanged",this.Xx);N7(this,"volumechanged",this.ay);N7(this,"volumechangestart",this.Zx);N7(this,"volumechangeend",this.Yx);N7(this,"watchlater",this.by);N7(this,"watchonyoutube",this.ey);N7(this,"controlclick",this.Cx);N7(this,"showdialog",this.gy);N7(this,"menu_show",w(a.Oh,a));N7(this,"autonavchangerequest",this.hy);this.j=a;this.k=b;this.o=NaN;this.A=new P7(a,b.ca,c,d);S(this,this.A);a=a.S();a.nc&&(b=this.k,this.j.S().Fd?cC(b.o):dC(b.o),b.o.show());a.gf||this.k.k.hide();
a.ia&&this.k.J.show();a.K&&(b=this.k,c=b.P,sC(c.j,this.j.j.K?Tq:[1]),d=2300,vC(c.j,d++),d=d++,KA(c.element.j,d),F7(b,b.P));if(a.experiments.G)for(b=this.k,c=[b.A,b.j,b.C,b.k,b.H,b.J,b.K,b.o],d=0;d<c.length;d++)b.na.listen(c[d].M(),"click",b.fy,b);Oq(a)&&this.k.H.hide()}A(R7,L7);f=R7.prototype;f.Ex=function(a){this.k.disable(a)};f.Fx=function(a){this.k.enable(a)};f.Ix=function(a){P(this.k.C.element,"ytp-time-live-dvr",!a)};
f.Hx=function(a){var b=this.k;this.j.S();a?(a=b.J,JA(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),a.Xa(b),a.o=b):j7(b.J);S7(this)};f.Rx=function(a){W(a.state,2)||(0<Bv(a,8)?D7(this.k,!0):0>Bv(a,8)?D7(this.k,!1):0>Bv(a,2)&&D7(this.k,W(a.state,8)));0>Bv(a,16)&&T7(this,this.j.getCurrentTime())};f.Ax=function(a){if(W(a.state,2)&&!oF(this.j)){a=this.k.A;JA(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");a.Xa(b)}};
f.my=function(a){U7(this)&&(T7(this,a.getCurrentTime()),e7(this.k.k.M()),w7(this.k.P,1),a.getVideoData()&&V7(this,a.getVideoData()))};f.ly=function(a,b){U7(this)&&V7(this,b)};function S7(a){a.j.A?(a=a.k,a.R=!0):(a=a.k,a.R=!1);E7(a)}function W7(a){var b=a.j.S();!b.experiments.o||b.isMobile||a.j.A||"detailpage"!=b.da?(a=a.k,G7(a,a.O)):(a=a.k,F7(a,a.O))}
function V7(a,b){a.k.nf(b.lengthSeconds);var c=Vq(a.j),d=a.k,e=Yq(c),g=c.j.j?Mt(c.j.j):{},h=d.G;h.H=g;sC(h.o,e);vC(h.o,2600);KA(h.element.j,2601);e.length?F7(d,d.G):G7(d,d.G);d=a.k;e=Uq(a.j);g=X7(a.j);s7(d.G,e,g);BC(d.K,e);d=a.k;c=c.j.j?c.j.j.audioTracks:[];sC(d.N.j,c);1<c.length?F7(d,d.N):G7(d,d.N);(c=VD(a.j))&&g7(a.k.N,c);c=a.k;d=b.Va;e=b.yb;c.Ql=d&&!e;y7(c.C,d,e);W(a.j.getPlayerState(),2)||D7(a.k,W(a.j.getPlayerState(),8));S7(a);W7(a)}
f.Ux=function(a){if(U7(this)){var b=this.k,c=X7(this.j);s7(b.G,a,c);BC(b.K,a)}};f.$x=function(a){this.k.setVolume(a.volume,a.muted)};f.Lx=function(a){F7(this.k,a)};f.Mx=function(a){G7(this.k,a)};f.Jx=function(a,b){B7(this.k,a,b)};f.Kx=function(a){H7(this.k,a)};
f.jy=function(a){if(a==A7.prototype.qB&&this.j.D.isAvailable("captions")){var b=$q(this.j.D,"captions");b&&!b.loaded&&b.load()}b=this.k;b.W.removeAll();b.B&&(document.activeElement&&Sd(b.B.menu.M(),document.activeElement)&&Rd(b.element).focus(),b.B.menu.hide(),dC(b.B.button),b.B=null);if(a){var c=b.D[a];c&&(b.publish("showdialog"),b.B=c,cC(c.button),c.menu.show(),c.menu.focus(),b.W.listen(window,"blur",b.Kf),b.W.listen(document,"click",b.rB))}this.j.publish("onAutonavPauseRequest",!!a)};
f.ny=function(a){T7(this,n(a)?a:this.j.lc.Ng().current)};f.Gx=function(){Pq(this.j,!this.j.S().Za)};f.Nx=function(){this.j.H.muted?Lq(this.j):Kq(this.j)};f.Ox=function(){ir(this.j)};f.Px=function(){Y7(this.j)};f.Tx=function(){jr(this.j)};f.Vx=function(a){Ir(this.j,a,1)};f.Bx=function(a){var b=Vq(this.j,1);if(b&&!b.fa()&&!W(b.A,128)&&b.j.j.j&&(b=b.o,!b.fa())){var c=b.B;a=a.id;c.B="m";c.A=c.F.j[a];c.G=h_(c);b.publish("audioformatchange",new b_(c.G,c.o,c.B));h0(b,b.o,h_(b.B));A_(b.o);e0(b)}};f.gy=function(a){this.j.wk(a)};
f.ky=function(a){Hq(this.j,a,!0)};f.Wx=function(a){var b=this.j;Pq(b,!1);a!=b.j.Fd&&(b.j.Fd=a,b.publish("SIZE_CLICKED",a))};f.Xx=function(a){Sq(this.j,a)};f.Zx=function(){this.o=Jq(this.j)};f.ay=function(a){Z7(this.j,a)};f.Yx=function(){Jq(this.j)||Z7(this.j,{muted:!0,volume:this.o})};f.ey=function(){r6(this.j)};f.Cx=function(a){c6(this.j,a)};f.by=function(a){(a?K7:I7).call(this,$7(this,a?this.EG:this.FG))};f.Qx=function(a){w7(this.k.P,a)};f.Sx=function(){S7(this);W7(this)};
f.iy=function(a){var b=this.k;b.ha=1!=a;E7(b);b.O.Ea(b.ha?0:1)};f.hy=function(a){this.j.publish("onAutonavChangeRequest",1!=a)};function $7(a,b){return{videoIds:rr(a.j).videoId,Wa:a.j.S().Wa,pageId:a.j.S().pageId,$a:b,onError:a.kE,context:a}}f.FG=function(){var a=this.k.k.M();e7(a,"html5-async-success");this.j.publish("WATCH_LATER_VIDEO_ADDED")};f.EG=function(){e7(this.k.k.M());this.j.publish("WATCH_LATER_VIDEO_REMOVED")};
f.kE=function(a,b){var c=b&&b.error_message,d=this.k.k.M();e7(d,"html5-async-error");if(c){var e=W6.getInstance(),g=Y6(d);$6(d,c);X6(e,d);V6(d,g)}};function U7(a){return 1==Vq(a.j).getPlayerType()}function T7(a,b){if(U7(a)&&(iv(a.k.C.template,"current",ov(b)),14400<b&&a.j.getVideoData().yb)){var c=a.k;c.Ql=!0;y7(c.C,!0,!1)}};var a8={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function b8(a){H5.call(this,a);this.oa=this.$=this.ca=this.G=this.xa=this.B=null;a=a.S();if("1"==a.j){this.G=new A7(this.k,a.Nc,a.experiments.Da);S(this,this.G);this.G.Y(this.element);this.ca=new K6(this.k);var b=this.ca.M();this.o.appendChild(b);S(this,this.ca);this.$=new H6(this.k.ub().width);this.$.Y(this.G.ca.M(),0);S(this,this.$);this.oa=new R7(this.app,this.G,this.ca,this.$);S(this,this.oa)}this.K=new d5(60);S(this,this.K);O(this.K.element,"html5-video-loader");O(this.K.element,"html5-center-overlay");
O(this.K.element,"ytp-scalable-icon-grow");this.K.Y(this.o);this.Ia=new X(["div","ytp-clickguard"]);S(this,this.Ia);this.Ia.Y(this.element);this.O=new M6(a.isMobile,a.Nb,a.Do);S(this,this.O);this.O.Y(this.o);this.O.listen("click",this.wx,this);this.V=new z6;S(this,this.V);this.V.Y(this.o);this.na=null;this.H=new E5(new D5(this.element),w(this.xx,this),a.Nc);this.H.subscribe("autohideupdate",w(this.yx,this));this.va=!0;this.A=new A6(this.k);S(this,this.A);this.A.hide();this.A.Y(this.element)}
A(b8,H5);f=b8.prototype;f.wm=function(){b8.I.wm.call(this);this.app.subscribe("appstatechange",this.MF,this);this.app.subscribe("initializingmode",this.NF,this);this.app.subscribe("onDetailedError",this.OF,this);this.app.subscribe("clearvideooverlays",this.Wn,this);this.app.subscribe("menu_show",this.PF,this)};f.qk=function(){b8.I.qk.call(this);this.Zn(this.app.S());this.Xn()};f.xx=function(a){if(Sd(this.o,a))return!1;for(;!a||!Zd(a);){if(!a||a==this.element)return!1;a=Rd(a)}return!0};
f.yx=function(a){P(this.element,"ytp-block-autohide",!a);this.app.Sa(a?"onHideControls":"onShowControls")};f.Zn=function(a){a.theme&&this.addClass(a.theme+"-theme");(a.Ca||"0"==a.j)&&this.addClass("modest-branding");a.hi&&this.addClass("html5-hide-share");a.tb||this.addClass("html5-hide-volume");a.Nc&&(this.addClass("html5-tablet"),O(document.body,"html5-tablet-body"));c8(this)&&this.addClass("ideal-aspect");!this.H.j||this.addClass("ytp-block-autohide")};
f.wh=function(a){b8.I.wh.call(this,a);var b=this.app.S();P(this.element,"hide-info-bar",!a||!b.Ik);var c=a8[b.ma];a&&"1"==b.j?eh(this.element,c):gh(this.element,c)};f.Bh=function(a){b8.I.Bh.call(this,a);d8(this,a);this.B&&G6(this.B);P(this.element,"ideal-aspect",c8(this));this.A.F&&B6(this.A)};f.rk=function(){b8.I.rk.call(this);d8(this,this.gb())};f.MF=function(a){(this.va=2==a)?(this.addClass("cued-mode"),N6(this.O,this.app.getVideoData())):this.removeClass("cued-mode")};
f.Tn=function(a){b8.I.Tn.call(this,a);if(this.element){W(a.state,2)&&N6(this.O,this.app.getVideoData());this.H.Cb(128,!(W(a.state,8)&&!W(a.state,32)&&!W(a.state,2)));var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}G(b,"ended-mode")&&((c=e8())&&c.autoPlay||oF(this.app))&&pb(b,"ended-mode");this.na&&gh(this.element,this.na);
eh(this.element,b);this.na=b;b=Vq(this.app);!W(b.A,1)||W(b.A,2)||W(b.A,4)||2==b.getPlayerType()?this.K.hide():this.K.show();0>Bv(a,64)&&f8(this.app)}};f.Xn=function(){this.app.S().Nc&&(nv(this,this.element,"gesturechange",this.LD),nv(this,this.element,"gestureend",this.MD));as?this.o.onclick=w(function(a){this.wn(new th(a))},this):this.xn();var a,b=w(function(){var b=this.j;b&&(is(b),QE.fillPool(4),this.Aa(a))},this);a=nv(this,this.element,"click",b,void 0,!0)};
f.xn=function(){nv(this,this.o,"click",this.wn);nv(this,this.o,"dblclick",this.ku)};f.wx=function(){var a=this.app.S();a.experiments.J&&"embedded"==a.da&&a.isMobile&&(!Xh||a.J)&&Pq(this.app,!0);g8(this);Y7(this.app)};f.wn=function(a){ee(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.app.S().j&&(g8(this),Y7(this.app)));c6(this.app,"screenclick")};f.ku=function(a){6!=this.app.J&&this.app.S().ia&&(!ee(a.target,"html5-stop-propagation")&&fy(this.app),c6(this.app,"screendoubleclick"))};
f.LD=function(a){var b=a.scale,c=this.app.S().Za;b*(c?-1:1)>(c?-.7:1.3)&&fy(this.app);a.preventDefault()};f.MD=function(a){a=a.scale;var b=this.app.S().Za;a*(b?-1:1)>(b?-.9:1.1)&&fy(this.app)};function c8(a){a=new H(a.element.clientWidth,a.element.clientHeight);a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.If=function(a){if(a){var b=this.A;b.j=a;b.qa(a);this.A.show();this.H.Cb(32,!0)}else a=this.A,a.j=null,a.qa(null),this.A.hide(),this.H.Cb(32,!1)};
f.PF=function(a){P(this.element,"ytp-menu-shown",!!a);this.H.Cb(64,!!a)};
f.OF=function(a){if(this.element){this.B||(this.B=new F6,this.B.Y(this.element),S(this,this.B));var b=this.app.S(),c=a.message,d="embedded"==b.da,e=a.messageKey,g;a=!1;"YTP_ERROR_GENERIC"!=e||b.Nb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e?(g="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||b.Nb||(g="/html5",e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(g="//support.google.com/youtube/?p=player_error1",e="YTP_ERROR_GENERIC_WITH_LINK_2",b=this.app.S(),
b.experiments.$&&Oq(b)&&(a=!0));g&&(c=Of(e,{BEGIN_LINK:'<br/><a href="'+g+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));d=this.B;Ch(d.k);d.k=[];iv(d.template,"content",new NF(c));if(a)for(c=this.B,a=w(this.PE,this),d=c.element.getElementsByTagName("a"),g=0;g<d.length;g++)c.k.push(Q(d[g],"click",a));this.B.show()}};f.PE=function(a){var b=r("yt.player.exports.feedbackShowArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.app.getVideoData().ya};b(3037019,"player_error",c)||a.preventDefault()};
f.gb=function(){var a=this.app.S();return"0"==a.j||"3"==a.j||"1"==a.ma&&(a=Vq(this.app),!a||2!=a.getPlayerType())?this.ub():new H(this.o.clientWidth,this.o.clientHeight)};f.NF=function(){this.B&&this.B.hide()};function g8(a){var b=Vq(a.app).getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.Va&&!c.yb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;d&&iv(a.template,"icon",d);a.j.show(!0)}
f.Xf=function(){var a=this.app.S();ih(document.documentElement,"player-size",a.Za?"fullscreen":a.Fd?"large":"small");b8.I.Xf.call(this)};f.Wn=function(a){this.H.Cb(16,a)};
function d8(a,b){if(!b.isEmpty()){var c=b.width,d=b.height,e=0,g=0;c/d>480/360?(e=d,g=360):(e=c,g=480);for(var c=Kc(e/g,.5,1),d=sd("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++){var k=1==c?"":"scale("+c+")";wg(d[h],"transform",k)}c=Kc(e/g*.33,.5,1);d=sd("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)k=1==c?"":"scale("+c+")",wg(d[h],"transform",k)}}f.zk=function(a){this.G&&D7(this.G,a)};
f.L=function(){this.H.dispose();Fh(this.element);Ld(this.xa);b8.I.L.call(this);this.O=this.V=this.xa=null};function h8(a){b8.call(this,a);this.P=new X(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Y(0,"YTP_WATERMARK")}]);S(this,this.P);this.P.hide();this.P.Y(this.element);this.P.listen("click",this.vr,this);this.C=new $5(this.app,this.element,this.k);S(this,this.C);this.C.Y(document.body);a.S().Nb&&O(this.C.M(),"house-brand");this.ma=null;this.D=new o6(this.k,this.app);this.D.Y(this.element);S(this,this.D);
this.D.subscribe("title-click",w(this.vr,this));this.D.subscribe("share-click",w(this.KA,this));this.ur(h8.k/h8.j)}A(h8,b8);h8.k=3E4;h8.j=50;f=h8.prototype;f.oh=null;f.ur=function(a){var b;if(!(b=0>=a)){b=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==zg(b,"display");Ld(b);b=c}b?0>=a&&Mf(Error("Warning: Player CSS missing.")):M(w(this.ur,this,a-1),h8.j)};f.Zn=function(a){h8.I.Zn.call(this,a);i8(this);a.nc&&this.Xf()};
function i8(a){P(a.element,"ytp-tiny-mode",290>a.ub().width)}f.xn=function(){this.app.S().ia?this.ma||(this.ma=new N5(this.o,w(this.wn,this),w(this.ku,this)),S(this,this.ma)):h8.I.xn.call(this)};f.dk=function(a){h8.I.dk.call(this,a);this.D&&this.D.update(a);var b=this.app;if(b.j.ie?0:b.getVideoData().W||b.j.$c){if(a=a.W)this.P.M().src=a;this.P.show()}};
f.Xn=function(){h8.I.Xn.call(this);var a=this.app.S();a.Nc||(nv(this,this.element,"mousedown",this.HF,void 0,!0),nv(this,this.element,"keydown",this.GF,void 0,!0));a.Jk||(nv(this,this.element,"keypress",this.JF),nv(this,this.element,"keydown",this.IF),nv(this,this.element,"keyup",this.KF))};f.GF=function(a){var b=!1;switch(a.keyCode){case 32:case 13:if(b=a.target)a=a.target,b="BUTTON"==a.tagName||"A"==a.tagName||"button"==a.getAttribute("role");break;case 9:b=!0}b&&O(this.element,"ytp-keyboard-focus")};
f.HF=function(){fh(this.element,"ytp-keyboard-focus")};
f.JF=function(a){var b=!1===a.Kb.returnValue,c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.publish("playpausetoggled",!0),b=!0),178==c&&(Nq(this.app),b=!0);98==c&&(this.app.Gc("onBackgroundChange"),b=!0);111==c&&(this.app.Gc("onTextOpacityChange"),b=!0);119==c&&(this.app.Gc("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.Gc("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.Gc("onFontSizeDecrease"),b=!0;99==c&&(this.app.Gc("onCaptionsToggle"),b=!0);102==c&&(fy(this.app),b=!0);109==c&&
(this.app.H.muted?Lq(this.app):Kq(this.app),b=!0);32==c&&(g8(this),Y7(this.app),b=!0);48<=c&&57>=c&&(Hq(this.app,(c-48)/10*Iq(this.app)),b=!0);if(60==c||62==c){var b=this.app.j.K?Tq:[1],d=b.indexOf(this.app.ja);60==c&&0<d?Sq(this.app,b[d-1]):62==c&&d<b.length-1&&Sq(this.app,b[d+1]);b=!0}if(d=63==c)d=this.app.S(),d=d.experiments.Ra?!Oq(d)||d.Za:!0;d&&(this.oh||(this.oh=new s6(this.k),S(this,this.oh),this.oh.listen("done",this.Xl,this)),this.A.F?this.Xl():this.If(this.oh),b=!0);b&&a.preventDefault()}this.app.Gc("onKeyPress",
a);this.app.S().zb()&&this.app.Qh("onKeyPress",{keyCode:c,handled:b})};
f.IF=function(a){var b=!1===a.Kb.returnValue,c=a.keyCode;if(!b){if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,Z7(b,{volume:b.H.volume+5,muted:!1});else if(40==c)b=this.app,Z7(b,{volume:b.H.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;Hq(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,Hq(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Hq(this.app,0),b=!0);35==c&&(Hq(this.app,Infinity),b=!0);27==c&&(Ih()?(Pq(this.app,!1),b=!0):this.C&&this.C.F?
(this.C.hide(),b=!0):"1"==this.app.S().j&&null!=this.G.B?(this.app.Oh(),b=!0):this.A.F&&(this.Xl(),b=!0));b&&a.preventDefault()}this.app.Gc("onKeyDown",a);this.app.S().zb()&&this.app.Qh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.S().Za})};f.KF=function(a){this.app.Gc("onKeyUp",a)};f.vr=function(){r6(this.app)};
f.KA=function(){if("detailpage"==this.app.S().da){Pq(this.app,!1);var a=this.app,b=a.getVideoData();a.publish("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.j.da})}else a=!m6(this.D),this.app.uk(a),a&&n6(this.D,!0)};f.Wn=function(a){h8.I.Wn.call(this,a);n6(this.D,!1)};f.Xl=function(){this.If()};f.Km=function(a){h8.I.Km.call(this,a);this.C&&(a?this.C.Y(this.M()):this.C.Y(document.body),this.C.hide());a&&"1"==this.app.S().j&&this.G.focus()};
f.Bh=function(a){h8.I.Bh.call(this,a);i8(this)};f.xm=function(){h8.I.xm.call(this);if(!this.app.S().isMobile){var a=new w6(this.element,this.app.S());S(this,a);this.k.j=a;var b=sd("ytp-tooltip-anchor",this.element);D(b,function(b){a.Af(b)})}};f.ub=function(){var a=this.app.S();return"detailpage"!=a.da||a.Za?h8.I.ub.call(this):U5(a,!0)};f.gb=function(){var a=this.app.S();return"detailpage"!=a.da||a.Za?h8.I.gb.call(this):U5(a)};
f.eu=function(){var a=this.gb();"1"==this.app.S().j&&(a=a.clone(),a.height+=3);return a};var qr={"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};function j8(a,b){T.call(this);var c=b;c instanceof Jh||(c=new Jh(c));this.U=c;this.j=new OZ(this.U.args||{});S(this,this.j);this.k=new h8(this);S(this,this.k);this.k.subscribe("resize",this.kv,this);this.J=1;this.va={};this.V=null;this.H=this.j.ok?zq():{volume:100,muted:!1};this.Mc=this.j.zb()?new yr(this,1):new Eq(this,1);S(this,this.Mc);this.tb=new Jr(this);S(this,this.tb);this.lc=new Jr(this,1);S(this,this.lc);this.$=this.B=null;this.la={};c=new IG;$D(this.j)&&(c.k=!0,c.j=.1);this.ma=new yG(c);
this.xa={internalvideodatachange:this.Qu,liveviewshift:this.hv,playbackready:this.Ru,playbackstarted:this.Su,statechange:this.Tu,signatureexpired:this.dv};var c=new qJ,d=this.tb;c.k!=d&&(rJ(c),c.C={},c.k=d);d={};d.loaded=w(this.qo,this);d.unloaded=w(this.ro,this);d.command_pause=k8(this.pauseVideo,this);d.command_play=k8(this.Ed,this);d.command_seek=k8(this.ff,this);d.command_disable_controls=w(this.pg,this);d.command_enable_controls=w(this.Ph,this);d.command_redirect_controls=w(this.vo,this);d.command_stop_redirect_controls=
w(this.Xh,this);d.command_redirected_show_is_playing=w(this.k.zk,this.k);d.command_progress=w(this.xk,this);d.command_add_cuerange=w(this.uo,this);d.command_remove_cuerange=w(this.wo,this);d.command_remove_cuerange_all=w(this.to,this);d.command_preroll_ready=w(this.xo,this);d.command_update_cuerange_markers=w(this.yo,this);d.command_show_dialog=w(this.wk,this);d.command_clear_video_overlays=w(this.uk,this);d.command_navigate_to_url=w(this.vk,this);d.command_log=w(this.Yh,this);d.publish_external_event=
w(this.Qh,this);d.module_menu_button_add=w(this.lo,this);d.module_menu_button_remove=w(this.no,this);d.module_menu_item_add=w(this.oo,this);d.module_menu_item_remove=w(this.po,this);d.module_menu_show=w(this.Oh,this);d.vss_segment=w(this.ov,this);c.D=d;this.D=c;S(this,this.D);this.K=new DZ(this.j,"",this.D);c=new h1(this.j,1,this.K,this.k);l8(this,c,this.xa);this.o=c;this.o.$=this.ma;this.Mb={beginseeking:this.Vu,endseeking:this.Xu,internalaudioformatchange:this.Uu,internalvideodatachange:this.mv,
internalvideoformatchange:this.ev,progresssync:this.av,seekto:this.lv,onLoadProgress:this.Zu,onVideoProgress:this.fv,newlicensesession:this.iv,playbackready:this.$u,statechange:this.jv,connectionissue:this.Wu,heartbeatparams:this.gv,videoelementevent:this.nv};this.N=this.C=null;this.Ca=this.na=-1;this.G=this.F=null;this.O={};this.W=null;this.X={};this.ha=null;this.ib=0;this.ua=!1;this.R=!0;this.ia=this.A=null;this.ja=1;this.yc=this.ca=this.Ba=null;this.cb=this.fb=!1;this.oa=null;this.kb=0;this.$c=
!1;this.rb=null;this.Ia=0;c=new zr(this.U.args);if(ZI(c)){j1(this.o,c,w(this.qg,this));if("detailpage"==this.j.da){var d=c.videoId,e=dj("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}ej("yt-player-restore-playhead");(this.j.W||this.j.Ia&&this.j.experiments.ca)&&p1(this.o)}EZ(this.K,"fs");this.k.initialize(a);this.k.qk();c=this.Mc;d=this.k.M();c.Bd=d;for(var g in c.ef)c.Bd[g]=c.ef[g];for(g in c.og)c.Bd[g]=c.og[g];g=w(this.Yu,this);c=document;"onfullscreenchange"in c?d="fullscreenchange":
(d=mh+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.Ba=d?Q(c,d,g):null;this.yc=Q(window,"resize",w(this.cv,this));c=this.U.args;if(Xt()){m8(this);g=rr(this);d=this.k.gb();this.j.re=d;this.Sa("onVolumeChange",this.H);"detailpage"==this.j.da?Br(this,g):c&&(c.playlist||c.list||c.api)&&(n8(this,c),ZI(g)||(c=this.A,d=w(this.zo,this),c.je=d,c.Dd&&M(c.je,0)));if(c=this.U.args.jsapicallback)ia(c)||(c=r(c)),c&&k8(w(c,m,this.j.pk),m);this.j.ua||(Wp("embedded"==
this.j.da),this.j.rg=tr(this.j)&&!mb(dq()));m3(this,this.o);this.j.W&&ZI(g)?o8(this):"leanback"!=this.j.da&&p8(this)}else Av(this.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.k.rk();c6(this,"init")}A(j8,T);j8.k="defaultcontext";j8.j={};j8.create=function(a,b){try{var c=j8.o(a);if(j8.j[c]){try{j8.j[c].dispose()}catch(d){Mf(d)}j8.j[c]=null}var e=new j8(a,b);vi(e,function(){j8.j[c]=null});return j8.j[c]=e}catch(g){throw Mf(g),g;}};
j8.o=function(a){return v(a)?a:"player"+ka(a)};
function m8(a){a.B=QE.getTag(!0);a.$=a.B;a.C&&A1(a.C,a.B);ps(a.B,a.ja);a.j.Hd?(a.ca&&Ch(a.ca),a.ca=Q(a.B,"volumechange",w(a.gz,a),!1)):a.B.setVolume(a.H.volume,a.H.muted);var b=a.k;b.j=a.B;b.j.parentNode||Kd(b.o,b.j,0);b.W=new mg(0,0,0,0);I5(b);O(b.j,"video-stream");O(b.j,"html5-main-video");var c=b.app.S();"3"==c.j&&b.j.setAttribute("controls",!0);c.J&&b.j.setAttribute("webkit-playsinline","");c.yc&&(b.ha=Q(b.j,"click",w(b.j.play,b.j)));a.j.xb=a.B;is(a.B)}
function q8(a){if(a.B){a.ca&&(Ch(a.ca),a.ca=null);a.C&&PE(a.C);var b=a.k;b.j&&(Ld(b.j),b.j=null);a.j.xb=null;QE.releaseTag(a.B);a.B=null}}function ME(a,b){a.j.C?(a.W&&(Bg(a.B,a.W.left,a.W.top),Lg(a.B,rg(a.W)),a.W=null),os(a.B),PE(a.C),A1(a.C,a.B),ps(a.B,a.ja)):QE.releaseTag(b)}function m3(a,b){if(a.C!=b){a.C&&(rJ(a.D),p3(a));if(b!=a.o){var c=b.getPlayerType();a.la[c]=b}a.C=b;b.$=a.ma;a.B&&A1(b,a.B);l8(a,b,a.Mb);r8(a,b,b.getVideoData());b.U.j&&s8(a,"dataloaded",b,b.getVideoData())}}
function l8(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function p3(a){PE(a.C);var b=a.C,c=a.Mb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.C;b!=a.o&&(c=b.getPlayerType(),a.la[c]==b&&delete a.la[c]);a.C=null}f=j8.prototype;f.subscribe=function(a,b,c){return j8.I.subscribe.call(this,a,b,c)};function Vq(a,b){return b?1==b?a.o:a.la[b]||null:a.C}function t8(a){var b=a.D,c=[xB.k,pF,Ev,HF,jE,RF,hG.j,kG,sE,qG];c.push(xF.j);D(c,b.Er,b);a.publish("videoready",a.getVideoData())}
f.Ru=function(){u8(this)||v8(this,5)};f.$u=function(a){u8(this)||(w8(this),a=a.getPlayerState(),W(a,8)&&!W(a,2)&&this.Ed())};function vr(a){!a.G&&a.lc.S().rg&&(a.G=new y5(a),x8(a,a.G));if(a.G){var b=jq();sr(a.G,dq(),b);var c=a.G;c&&!c.Nd&&c.Ga(a.lc)&&c.create();b&&a.G.load()}}
function x8(a,b){S(a,b);b.subscribe("loaded",a.qo,a);b.subscribe("unloaded",a.ro,a);b.subscribe("command_pause",k8(a.pauseVideo,a));b.subscribe("command_play",k8(a.Ed,a));b.subscribe("command_seek",k8(a.ff,a));b.subscribe("command_disable_controls",a.pg,a);b.subscribe("command_enable_controls",a.Ph,a);b.subscribe("command_redirect_controls",a.vo,a);b.subscribe("command_stop_redirect_controls",a.Xh,a);b.subscribe("command_redirected_show_is_playing",a.k.zk,a.k);b.subscribe("command_progress",a.xk,
a);b.subscribe("command_add_cuerange",a.uo,a);b.subscribe("command_remove_cuerange",a.wo,a);b.subscribe("command_remove_cuerange_all",a.to,a);b.subscribe("command_update_cuerange_markers",a.yo,a);b.subscribe("command_preroll_ready",a.xo,a);b.subscribe("command_show_dialog",a.wk,a);b.subscribe("command_clear_video_overlays",a.uk,a);b.subscribe("command_log",a.Yh,a);b.subscribe("command_navigate_to_url",a.vk,a);b.subscribe("publish_external_event",a.Qh,a);b.subscribe("module_menu_button_add",a.lo,a);
b.subscribe("module_menu_button_remove",a.no,a);b.subscribe("module_menu_item_add",a.oo,a);b.subscribe("module_menu_item_remove",a.po,a);b.subscribe("module_menu_show",a.Oh,a);b.subscribe("command_log_timing",a.D.G,a.D)}function ur(a){a&&a.Nd&&a.destroy()}f.Sa=function(a,b){this.publish.apply(this,arguments);this.Gc.apply(this,arguments)};f.ig=function(a,b){var c=tb(arguments);this.j.zb()&&this.C&&c.push(this.C.getPlayerType());this.publish.apply(this,c)};f.canPlayType=function(a){return!!Wt().canPlayType(a)};
f.S=function(){return this.j};f.getVideoData=function(){return this.C.getVideoData()};function rr(a){return a.o.getVideoData()}f.qg=function(){var a=XZ(this.j);ra(a,vJ(this.D));this.F&&ra(a,this.F.lh());a.fs=this.j.Za;a.volume=Math.round(Jq(this));a.mos=this.H.muted?1:0;return a};f.wk=function(a){this.k.If(a)};function p8(a){a.publish("initializingmode");v8(a,2)}
function o8(a){if(W(a.getPlayerState(),128))return!1;a.publish("initializingmode");m3(a,a.o);v8(a,3);var b;(b=!a.j.C)||(r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(q8(a),m8(a),A1(a.o,a.B));u1(a.o);if(W(a.getPlayerState(),128))return!1;y8(a,3);return a.$c=!0}function u8(a){return tr(a.j)&&!!jq()}function k8(a,b){return function(){var c=Array.prototype.slice.call(arguments);M(function(){a.apply(b||this,c)},0)}}
f.vk=function(a,b){b?d6(this,a):(window.ytspf||{}).enabled?spf.navigate(a):dx(a)};f.Yh=function(a,b,c){var d=Vq(this);b.event=a;this.j.Za&&(b.fs=1);d.B&&(a=d.B,b.rt=J0(a.j).toFixed(3),ra(b,Y0(a.j)),ra(b,$0(a)),delete b.fexp,b=wj(a.j.k.A+"player_204",b),bg(b,c))};function Sq(a,b){if(!isNaN(b)&&a.B){var c=1,c=a.j.K?Tq:[1],c=1>b?F(c,function(a){return a>=b}):kb(c,function(a){return a<=b});a.ja!=c&&(a.ja=c,a.o==a.C&&ps(a.B,c),a.publish("onPlaybackRateChange",c))}}
function Uq(a,b){var c=Vq(a,b);return c&&c.getVideoData().o?c.getVideoData().o.video.quality:"unknown"}function VD(a,b){var c=Vq(a,b);return c?N1(c):a.getVideoData().V}function X7(a){return(a=Vq(a,void 0))?Jt(z0(a.ia,a.j)):"unknown"}function Ir(a,b,c,d){if(a=Vq(a,c))b=Wq(b,d||b,!0),Xq(a,"m",b)}f.getCurrentTime=function(a){return(a=Vq(this,a))?a.getCurrentTime():0};function Iq(a,b){var c=Vq(a,b);return c?c.Pc():0}
function er(a,b){var c=a.o.getDebugInfo(b);if(a.C&&a.C!=a.o){var d=a.C.getDebugInfo(b),e;for(e in d)c["ad_"+e]=d[e]}c.debug_playbackQuality=Uq(a);c.debug_date=(new Date).toString();delete c.uga;return fg(c)}
function QF(a,b){var c=a.getVideoData(),d=!!c.ma||!!c.kh||!b;d&&a.B.setAttribute("mozStereoMode","1");LF()&&(a.B.setAttribute("mozStereoMode",d?"1":"0"),c=qI[d?c.la:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Id(document.documentElement,d),Gh(d,"3DModeEvent"))}f.getPlayerState=function(a){return(a=Vq(this,a||1))&&a.getPlayerState()};
f.nv=function(a){var b=a.target;switch(a.type){case "loadedmetadata":EZ(this.K,"fvb");this.ib=M(w(this.k.Xf,this.k),16);break;case "loadstart":EZ(this.K,"gv");break;case "progress":case "timeupdate":EZ(this.K,"1pb"),2<=Ur(b.buffered)&&EZ(this.K,"l2s")}};f.iv=function(a){if(this.cb){var b=this.kb.toString();this.kb++;this.oa[b]=a;a={request:tb(a.j[0]?a.j[0].message:null),sessionId:b,system:a.H.j,url:a.C};this.publish("onNewLicenseSession",a)}else a.start()};
f.Zu=function(a,b){this.ig("onLoadProgress",b)};f.fv=function(a,b){this.ig("onVideoProgress",b)};f.av=function(){this.xk()};f.xk=function(a,b){this.publish("progresssync",a,b)};
f.Tu=function(a){var b;if(b=0<Bv(a,2))this.A&&("embedded"==this.j.da||this.j.Za)&&oF(this)?(ir(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),W(a.j,32)&&this.o.Ri(),this.j.isMobile&&Pq(this,!1));W(a.state,128)&&(b=a.state,Rq(this),b=b.j,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Of(b.messageKey)),this.publish("onError",qr[b.errorCode]||5),this.publish("onDetailedError",b));this.publish("applicationplayerstatechange",a);W(a.state,2)&&(a=this.getVideoData(),a.Va&&
!a.yb&&this.pg(["play_pause"]))};f.jv=function(a){!W(a.state,32)&&0>Bv(a,16)&&(!W(a.state,8)||this.B.ended&&!W(a.state,2)||this.Ed());this.publish("presentingplayerstatechange",a);this.Gc("onStateChange",a);y8(this,xs(a.state))};function z8(a){ur(a.F);ur(a.G);a.fb=!1;var b=[],c;for(c in a.O)Qq(a,c)&&b.push(c);a.O={};0<b.length&&a.publish("controlsenabled",b);a.Xh();a.va={};a=a.K;b=a.k;b.A={};b.o={};a.o=!1}function r8(a,b){rJ(a.D);Sq(a,1);a.Sa("videoplayerreset",b)}
function s8(a,b,c,d){if(a.B){if("dataloaded"==b)if(PZ(c.S(),d.A),a.C==a.o){a.j.ua||Wp("embedded"==a.j.da);var e=u8(a),g;if(g=!e)g=rr(a).Xo&&!a.j.isMobile;if(g){var h="YTP_DEVICE_FALLBACK";Xc||cs("iemobile")||cs("xbox")&&cs("trident")||cs("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Av(a.o,"html5.unsupportedads",h,void 0)}else if(g=rr(a),!(g.k||g.ve||g.ue||g.$||g.R)||e||n1(a.o)){VI(g);e&&v8(a,6);e=!1;!a.F&&a5.Ga(a)&&(a.F=new a5(a),a.F&&x8(a,a.F),e=!0);try{(h=a.F)&&!h.Nd&&h.Ga(a.lc)&&
h.create()}catch(k){Mf(k),a.o&&z1(a.o,"ad")}e&&(e=a.F,g=rr(a),h=Vq(a),g.subscribe("cuepointupdated",e.$w,e),e.F=g,e=b5(e),null!=e&&(e.G=h));vr(a);t8(a)}else Av(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else t8(a);1==c.getPlayerType()&&(a.getVideoData().Gk?(a.V=$b(a.H),a.pg(["audio"]),h=a.B,h.$k=!0,h.muted=!0):(Qq(a,"audio")&&a.Ph(["audio"]),a.B.$k=!1,a.V&&(Z7(a,a.V),a.V=null)),h=a.getVideoData(),h.Va&&!a.j.Kk?Av(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):
h.Va&&!h.yb?a.pg(["seek"]):a.Ph(["seek"]),d.ha||d.Ba||d.B.focEnabled||d.B.rmktEnabled||a.j.mf)&&(h=a.getVideoData(),e=1E3*h.lengthSeconds,A8(a,"part2viewed",1,e),A8(a,"engagedview",Math.max(1,1E3*h.oe),e),A8(a,"videoplaytime25",.25*e,e),A8(a,"videoplaytime50",.5*e,e),A8(a,"videoplaytime75",.75*e,e),A8(a,"videoplaytime100",e,2147483647),A8(a,"conversionview",e,2147483647));a.Sa("videodatachange",b,d,c.getPlayerType())}}f.Qu=function(a){"newdata"==a&&z8(this)};
f.Uu=function(a,b){var c=this.C.getVideoData();a==c&&this.Sa("onPlaybackAudioChange",VD(this).name,b)};f.mv=function(a,b,c){"newdata"==a?r8(this,b):s8(this,a,b,c)};f.ev=function(a,b){var c=this.C.getVideoData();a==c&&this.publish("onPlaybackQualityChange",a.o.video.quality,b)};
function Br(a,b){if(b.playlistId){var c=e8();if(c&&0<=c.index){var d=[];D(c.videoIds,function(a){if(a=c.videoData?c.videoData[a]:void 0)a.video_id=a.id,a.author=a.zu,d.push(a)});n8(a,{videoList:d,loop:c.autoPlay,index:c.index,list:c.list,playlist_title:c.listTitle,playlist_description:c.listDescription,author:c.author,fetch:0});a.ia&&B8(a,a.ia)}else n8(a,{videoList:[b.videoId],list:b.playlistId,fetch:0}),a.ia=null}}
function n8(a,b){if(a.A){a.A.unsubscribe("error",a.Gr,a);wi(a.A);a.A=null;var c=$q(a.D,"playlist");if(c){var d=a.D;if(!d.k||c.Rm(d.k))c.destroy(),pb(d.j,c)}}b&&(a.A=new cJ(b),a.A.subscribe("error",a.Gr,a),a.D&&(c=a.D,D([xF.j],c.Er,c)))}f.Gr=function(){n8(this,null)};function A8(a,b,c,d){b in a.va||(c=new ys(c,d,{id:b,priority:1}),c.Oa.subscribe("onEnter",a.ju,a),c.Oa.subscribe("onExit",a.ju,a),Cs(a.o.D,[c]),a.va[b]=c)}
f.ju=function(a){var b=a.getId(),c=rr(this);if("part2viewed"==b)c.ep&&bg(c.ep),c.Ba&&bg(c.Ba);else if("conversionview"==b){var d=this.o;d.B&&b1(d.B)}else"engagedview"==b&&bg(c.ha);c.ia&&(d=a.getId(),d=wj(c.ia,{label:d}),bg(d));switch(b){case "videoplaytime25":c.Fg&&bg(c.Fg);bg(c.Hw);break;case "videoplaytime50":c.Wh&&bg(c.Wh);bg(c.Iw);break;case "videoplaytime75":c.Vh&&bg(c.Vh);bg(c.Jw);break;case "videoplaytime100":c.tg&&bg(c.tg),bg(c.Gw)}this.j.mf&&this.j.mf[a.getId()]&&(b=this.j.mf[a.getId()],
c=B(C(b))?!1:-1!=b.search(zf)||-1!=b.search(xf),bg(b,void 0,c));this.o.D.Dg(a)};function v8(a,b){b!=a.J&&(2==b&&(y8(a,-1),y8(a,5)),a.J=b,a.publish("appstatechange",b))}function y8(a,b){a.C&&2==a.C.getPlayerType()?a.Ca!=b&&(a.Ca=b,a.ig("onAdStateChange",b)):a.na!=b&&(a.na=b,a.ig("onStateChange",b))}function c6(a,b){a.j.experiments.G&&a.Yh("controlclicked",{controlClicked:b})}f.ff=function(a,b,c,d){b=0!=b;if(d=Vq(this,d))2==this.J&&o8(this),v1(d,a,b,c)};
f.lv=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?o8(this):this.Sa("seekto",b)};f.Vu=function(){this.Sa("beginseeking")};f.Xu=function(){this.Sa("endseeking")};function Jq(a){return a.H.volume}f.setVolume=function(a){var b=this.H;b.volume=a;Z7(this,b)};
function Z7(a,b){a.H=b;b.volume=Kc(b.volume,0,100);if(a.j.ok&&!a.j.Hd){var c={};c.volume=isNaN(b.volume)?zq().volume:Kc(b.volume,0,100);c.muted=void 0==b.muted?zq().muted:b.muted;bj("yt-player-volume",c,2592E3)}Qq(a,"audio")?a.V&&(a.V=$b(b),a.Sa("onVolumeChange",b)):(w8(a),a.j.Hd||a.Sa("onVolumeChange",b))}function Kq(a){var b=a.H;b.muted=!0;Z7(a,b)}function Lq(a){var b=a.H;b.muted=!1;5>b.volume&&(b.volume=5);Z7(a,b)}
function ar(a,b,c){b.list=b.list||null;b=new zr(b);rr(a).playlistId!=b.playlistId&&n8(a,null);"detailpage"==a.j.da&&Br(a,b);return C8(a,b,c)}function Ar(a,b){a.N&&a.N.getVideoData().videoId==b.videoId||(b.Ia=!0,a.N||(a.N=new h1(a.j,1,a.K,a.k),a.N.$=a.ma),j1(a.N,b,w(a.qg,a)),p1(a.N,!0))}
function C8(a,b,c){if(!Dx("_start",a.K.j)){var d=a.K.j;Ex("yt_sts","p",d);zx("_start",void 0,d);a.K.info("srt",0)}if(a.N&&a.N.getVideoData().videoId==b.videoId){d=a.N;a.N=null;b=d;c=a.o;var e=a.xa,g;for(g in e)c.unsubscribe(g,e[g],a);a.o.dispose();a.o=b;l8(a,b,a.xa);z8(a)}else{d=Vq(a,c);if(!d)return!1;N(a.ib);Rq(a,c);j1(d,b,w(a.qg,a))}if(!o1(d))return!1;if(d==a.o)return v8(a,1),o8(a);u1(d);return!0}function Gq(a,b,c){c=Vq(a,c);b&&c==a.o&&(c.getVideoData().Cd=!0)}
function br(a,b,c){b.list=b.list||null;D8(a,new zr(b),c)}function D8(a,b,c){var d=Vq(a,c);d&&(Rq(a,c),j1(d,b,w(a.qg,a)),o1(d)&&(PZ(d.S(),b.A),d==a.o&&(v8(a,1),p8(a))))}function $E(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.j.Za||"detailpage"!=a.j.da?(c=a.K,e=c.k,e.A={},e.o={},c.o=!1,Jx(a.K.j),xx(),d?(a.R=!1,hr(a,b,void 0,void 0,void 0)):ar(a,b,1)):(d=new zr(b),d=a.j.getVideoUrl(d,{}),(c||{}).lact=HZ(),r("yt.player.exports.navigate")(d,c,!0),a.vk(d,e))}
function hr(a,b,c,d,e){if(ja(b)&&!ea(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var g=c[e];b[g]&&(d[g]=b[g])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},v(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;n8(a,b);b=a.A;a=w(a.zo,a);b.je=a;b.Dd&&M(b.je,0)}f.zo=function(){var a=mr(this.A);if(this.getVideoData().sg||!this.R){var b=this.getVideoData().Cd,a=C8(this,a);b&&Gq(this,a)}else a&&D8(this,a)};
function oF(a){var b=e8();return!(!a.A||!jJ(a.A)||b&&!b.autoPlay)}function ir(a){if(a.A)"detailpage"!=a.j.da||a.j.Za?a.A.Dd?jJ(a.A)&&C8(a,lJ(a.A),1):(lJ(a.A),a.R=!1):B8(a,"yt.www.watch.lists.next");else if(1!=a.getVideoData().Rd&&Vq(a,1).getVideoData().N){var b=Vq(a,1).getVideoData().N[0],c=b.id||b.video_id||"",d=b.session_data?qj(b.session_data,"&"):null;$E(a,c,d,b.list||void 0)}}
function jr(a){if(a.A)if("detailpage"!=a.j.da||a.j.Za)if(a.A.Dd){var b=a.A;(b.Rf||0<=b.Ua-1)&&C8(a,nJ(a.A),1)}else nJ(a.A),a.R=!1;else B8(a,"yt.www.watch.lists.prev")}function B8(a,b){var c=r(b);c?(c(),a.ia=null):a.ia=b}function kr(a,b){a.A&&(a.A.Dd?C8(a,mr(a.A,b),1):a.R=!1,mJ(a.A,b))}function e8(){var a=r("yt.www.watch.lists.getState");return a?a():null}function nr(a){return a.A&&a.A.o?a.A.o.toString():null}
function fr(a){var b=rr(a),c=a.k.ub();a="//"+VZ(a.j)+"/embed/"+b.videoId;b.playlistId&&(a=Ke(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+za(a)+'" frameborder="0" allowfullscreen></iframe>'}function dr(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Iq(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return a.j.getVideoUrl(rr(a),null,c)}
function gr(a,b,c,d,e,g){b={id:b};"chapter"==g?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||(b.style="ytp-ad-progress",b.visible=!0);c=new ys(1E3*c,1E3*d,b);c.Oa.subscribe("onEnter",a.dF,a);c.Oa.subscribe("onExit",a.eF,a);Cs(a.o.D,[c]);a.publish("cuerangesadded",[c]);return!0}f.dF=function(a){this.publish("onCueRangeEnter",a.getId())};f.eF=function(a){this.publish("onCueRangeExit",a.getId())};f.uo=function(a,b){var c=Vq(this,b);c&&(Cs(c.D,a),this.publish("cuerangesadded",a))};
f.wo=function(a,b){var c=Vq(this,b);c&&(c.D.Dg.apply(c.D,a),this.publish("cuerangesremoved",a))};f.to=function(a,b){var c=Vq(this,b);if(c){for(var c=c.D,d=[],e=c.j.j,g=e.length-1;0<=g;g--){var h=e[g];if(h.namespace==a){var k=c.k.indexOf(h);0<=k&&c.k.splice(k,1);var k=c.j.j,l=yb(k,h,Mr);0<=l&&qb(k,l);d.push(h)}}c.qc();this.publish("cuerangesremoved",d)}};f.yo=function(a){this.publish("cuerangemarkersupdated",a)};f.xo=function(a,b){var c=Vq(this,b);c&&z1(c,a)};
f.Su=function(){E8(this,FZ(this.K));if(!this.fb&&"detailpage"==this.j.da){this.fb=!0;var a=this.o;if(a.R&&a.R.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.ya;b.ad_cpn=a.R.j;var d=z()-a.R.k;a.R.o?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 g in b)"_"!=g.charAt(0)&&(a[g]=b[g]);b=If("TIMING_INFO")||{};"e"in b&&
(a.e=b.e);"ei"in b&&(a.ei=b.ei);Ix(a)}}if(this.ua&&(b=this.o,b.B))b.B.onError("html5.reboot");this.ua=!1;this.j.experiments.D&&oF(this)&&(b=mr(this.A,kJ(this.A)))&&Ar(this,b)};function E8(a,b){if(!isNaN(b)&&0<b&&a.o){var c=a.o;c.B&&0<b&&(c.B.A.o.aft=[b])}}f.qo=function(a){"remote"==a?(2==this.J&&o8(this),v8(this,6),ur(this.F)):this.ig("onApiChange")};f.ro=function(a){"remote"!=a||u8(this)||(this.Ed(),this.pauseVideo());this.ig("onApiChange")};
f.gz=function(){if(!Qq(this,"audio")){var a={volume:100*this.B.volume,muted:this.B.muted};this.H=$b(a);this.Sa("onVolumeChange",a)}};function w8(a){var b=a.j.Hd?zr.j:a.getVideoData().bq;a.B.setVolume(a.H.volume*b,a.H.muted)}f.Yu=function(){F8(this,Ih()?1:0)};
function F8(a,b){var c=!!b,d=!!a.Ia!=c;a.Ia=b;if(d){a.k.Km(c);if("detailpage"==a.j.da&&!c&&(d=rr(a),If("VIDEO_ID")!=d.videoId)){var e=a.getCurrentTime(),g={};g[d.videoId]=e;bj("yt-player-restore-playhead",g,172800);a.pauseVideo()}zx("fsc",void 0,a.K.j);a.j.Za=c;a.k.Xf();a.Sa("fullscreentoggled",c);c={fullscreen:c,videoId:rr(a).videoId};nr(a)&&(c.listId=nr(a));a.publish("onFullscreenChange",c)}}f.kv=function(){f8(this)};f.cv=function(){2!=this.Ia&&F8(this,Ih()?1:0)};
f.uk=function(a){this.Sa("clearvideooverlays",!!a)};f.lo=function(a,b){this.Sa("menu_button_add",a,b)};f.no=function(a){this.Sa("menu_button_remove",a)};f.oo=function(a){this.Sa("menu_item_add",a)};f.po=function(a){this.Sa("menu_item_remove",a)};f.Oh=function(a){this.Sa("menu_show",a)};f.ov=function(a){(a=Vq(this,a))&&a.B&&G0(a.B.k)};f.hv=function(a){this.Sa("liveviewshift",a)};
f.Qh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(EZ(this.K,"vr"),T1(this.C),E8(this,FZ(this.K)));0==c&&e&&(this.o.R=e);var g=this.j;"leanback"==g.da&&g.zb()&&(0==c?this.$=this.B:this.$=d,this.publish("onAdStateChange",c,e.video_id))}else this.publish.apply(this,arguments)};f.Gc=function(a,b){this.D.H.apply(this.D,arguments);this.F&&this.F.publish.apply(this.F,arguments);this.G&&this.G.publish.apply(this.G,arguments)};
f.Ed=function(a){(a=Vq(this,a))&&(2==this.J?o8(this):W(a.getPlayerState(),2)?this.ff(0):D1(a))};f.pauseVideo=function(a){(a=Vq(this,a))&&a.pauseVideo()};function Rq(a,b){var c=Vq(a,b);c&&1!=a.J&&2!=a.J&&(rJ(a.D),y1(c),1==b&&ur(a.F))}function Mq(a,b){if(!Qq(a,"play_pause")){var c=a.X.play_pause?a.ha:null;c?c.fe("control_play"):a.Ed(b)}}function Nq(a,b){if(!Qq(a,"play_pause")){var c=a.X.play_pause?a.ha:null;c?c.fe("control_pause"):a.pauseVideo(b)}}
function Y7(a){var b;if(b=!Qq(a,"play_pause"))(b=!a.j.Nc||2!=a.J)||(b=QE.hasTags(void 0));b&&((b=a.X.play_pause?a.ha:null)?b.fe("control_toggle_play_pause"):(b=Vq(a,void 0))&&(W(b.A,8)&&!W(b.A,2)?a.pauseVideo(void 0):a.Ed(void 0)))}function Hq(a,b,c,d,e){if(!Qq(a,"seek")){var g=a.X.seek?a.ha:null;g?g.fe("control_seek",b):a.ff(b,c,d,e)}}
function Pq(a,b){if(a.j.Za!=b)if(Hh())if(b){var c=a.k.M(),d=sh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=sh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else F8(a,b?2:0)}function fy(a){Pq(a,!a.j.Za)}function d6(a,b){Pq(a,!1);a.pauseVideo();ex(b)}function r6(a){var b=a.getVideoData();"detailpage"==a.j.da&&a.j.Za&&If("VIDEO_ID")==b.videoId?Pq(a,!1):d6(a,dr(a,!0))}f.getAdState=function(){return this.F?this.F.getAdState():-1};
function f8(a){var b=a.k.gb();a.j.re=b;if(a.B){b=!1;if(0!=a.B.readyState&&a.C){var c=new H(a.B.videoWidth,a.B.videoHeight),d=a.getVideoData();Oc(d.Aq,c)||(d.Aq=c,b=!0)}c=a.k;c=K5(c,c.gb(),J5(c),M5(c),void 0);pg(a.rb,c)||(a.rb=c,a.j.Gg=c,b=!0);b&&(a.C&&Xq(a.C,"r"),a.publish("resize",a.k.ub()),a.Sa("onResize"))}}function Qq(a,b){return!(!a.O[b]||!a.O[b].length)}
f.pg=function(a,b){b=b||j8.k;var c=[];D(a,function(a){this.O[a]?0>this.O[a].indexOf(b)&&this.O[a].push(b):(this.O[a]=[b],c.push(a))},this);0<c.length&&this.publish("controlsdisabled",c)};f.Ph=function(a,b){b=b||j8.k;var c=[];D(a,function(a){if(Qq(this,a)){var e=this.O[a].indexOf(b);0<=e&&this.O[a].splice(e,1);0==this.O[a].length&&c.push(a)}},this);0<c.length&&this.publish("controlsenabled",c)};f.vo=function(a,b,c){this.Xh();this.ha=a;b&&D(b,function(a){this.X[a]=!0},this);c&&sJ(this.D,a,c)};
f.Xh=function(){this.ha=null;this.X={};tJ(this.D)};function or(a,b,c,d){if(a.j.zb()){if(a.F&&b==a.F.ta)return a.F.fg(c,d);if(a.G&&b==a.G.ta)return a.G.fg(c,d)}c=b&&c?(a=$q(a.D,b))?a.fg(c,d):null:null;return c}function pr(a,b){if(!b){var c=uJ(a.D);a.j.zb()&&(a.F&&c.push(a.F.ta),a.G&&c.push(a.G.ta));return c}if(a.j.zb()){if(a.F&&b==a.F.ta)return a.F.eg();if(a.G&&b==a.G.ta)return a.G.eg()}return uJ(a.D,b)}
f.dv=function(){if(this.j.experiments.A&&!this.ua){this.ua=!0;var a=this.getVideoData(),b=Vq(this).getCurrentTime();ar(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Wu=function(){this.Sa("CONNECTION_ISSUE")};f.gv=function(a){this.Sa("heartbeatparams",a)};f.L=function(){aq();this.o.dispose();this.N&&this.N.dispose();q8(this);this.Ba&&Ch(this.Ba);Ch(this.yc);yi(Pb(this.la),this.A);this.$=null;N(this.ib);j8.I.L.call(this)};function G8(){S6.call(this);this.j=[];this.o={}}A(G8,S6);ba(G8);f=G8.prototype;f.jo="button";f.Vf=null;f.register=function(){U6(this,"click",this.rG);U6(this,"keydown",this.tG);U6(this,"keypress",this.uG);this.Vn.push(Fi("page-scroll",this.sG,this))};f.rG=function(a){a&&!a.disabled&&(H8(this,a),this.click(a))};
f.tG=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=I8(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b},e;d(b)?e=b:e=Vd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.DG:"table"==e&&(g=this.CG);g&&J8(this,a,b,c,w(g,this))}}};f.sG=function(){var a=this.o;if(0!=Mb(a))for(var b in a){var c=a[b],d=ee(c.activeButtonNode||c.parentNode,T6(this));if(void 0==d||void 0==c)break;K8(this,d,c,!0)}};
function J8(a,b,c,d,e){var g=Tw(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=L8(a,c))?(b=Od(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Gh(b,"click")):h&&M8(a,b):g?27==d.keyCode?(L8(a,c),M8(a,b)):e(b,c,d):(a=dh(b,T6(a,"reverse"))?38:40,d.keyCode==a&&(Gh(b,"click"),d.preventDefault()))}f.uG=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=I8(this,a),Tw(a)&&c.preventDefault())};function L8(a,b){var c=T6(a,"menu-item-highlight"),d=ud(c,b);d&&fh(d,c);return d}
function N8(a,b,c){O(c,T6(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=T6(a,"item-id-"+ka(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.CG=function(a,b,c){var d=L8(this,b);b=qh("table",b);var e=qh("tr",b),e=td("td",null,e).length;b=td("td",null,b);d=O8(d,b,e,c);-1!=d&&(N8(this,a,b[d]),c.preventDefault())};f.DG=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=L8(this,b);b=fb(td("li",null,b),Tw);d=O8(d,b,1,c);N8(this,a,b[d]);c.preventDefault()}};
function O8(a,b,c,d){var e=b.length;a=db(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),--a):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}function P8(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=T6(a,"menu-mask"),b.iframeMask=c);return c}
function K8(a,b,c,d){var e=ee(b,T6(a,"group")),g=!!kh(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Qg(b);if(dh(b,T6(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}dh(b,"flip")&&(dh(b,T6(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;kh(b,"button-has-sibling-menu")?p=Fg(e):kh(b,"button-menu-root-container")&&(p=Q8(b));Uc&&!gd("8")&&(p=null);var u;p&&(u=Qg(p),u=new lg(-u.top,u.left,u.top,-u.left));p=new Lc(0,1);dh(b,T6(a,"center-menu"))&&(p.x-=Math.round((Og(c).width-Og(b).width)/
2));d&&(p.y+=zd(document).y);if(a=P8(a,b))b=Og(c),a.style.width=b.width+"px",a.style.height=b.height+"px",W5(e,g,a,h,p,u),d&&(d=rd(a))&&d.style&&("position"in Ww?a=Ww.position:(a=vg("position",document.body.style),Ww.position=a),a&&(d.style[a]="fixed"));W5(e,g,c,h,p,u)}function Q8(a){if(kh(a,"button-menu-root-container")){var b=kh(a,"button-menu-root-container");return ee(a,b)}return document.body}
f.gu=function(a){if(a){var b=I8(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;kh(a,"button-has-sibling-menu")?c=a.parentNode:c=Q8(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=P8(this,a);d&&c.appendChild(d);(c=!!kh(a,"button-menu-fixed"))&&(this.o[nh(a).toString()]=b);K8(this,a,b,c);Ji("yt-uix-button-menu-before-show",a,b);Uw(b);this.k(a,"button-menu-action",
!0);O(a,T6(this,"active"));b=w(this.Mr,this,a,!1);c=w(this.Mr,this,a,!0);d=w(this.KB,this,a,void 0);this.Vf&&I8(this,this.Vf)==I8(this,a)||this.Vf&&M8(this,this.Vf);Ii("yt-uix-button-menu-show",a);Ch(this.j);this.j=[Q(document,"click",c),Q(document,"contextmenu",b),Q(window,"resize",d)];this.Vf=a}}};
function M8(a,b){if(b){var c=I8(a,b);if(c){a.Vf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Vw(c);a.k(b,"button-menu-action",!1);var d=P8(a,b),e=nh(c).toString();delete a.o[e];M(function(){d&&d.parentNode&&d.parentNode.removeChild(d);c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=ee(b,T6(a,"group")),g=[T6(a,"active")];
e&&g.push(T6(a,"group-active"));gh(b,g);Ii("yt-uix-button-menu-hide",b);Ch(a.j);a.j.length=0}}f.KB=function(a,b){var c=I8(this,a);if(c){b&&(c.innerHTML=b);var d=!!kh(a,"button-menu-fixed");K8(this,a,c,d)}};f.getContent=function(a){return ud(T6(this,"content"),a)};
f.Mr=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ee(c,T6(this));if(d){var d=I8(this,d),e=I8(this,a);if(d==e)return}var d=ee(c,T6(this,"menu")),e=d==I8(this,a),g=dh(c,T6(this,"menu-item")),h=dh(c,T6(this,"menu-close"));if(!d||e&&(g||h))if(M8(this,a),d&&b&&kh(a,"button-menu-indicate-selected")){if(a=ud(T6(this,"content"),a))md&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],be(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),md||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),Ud(a,b);R8(this,d,c)}};function R8(a,b,c){var d=T6(a,"menu-item-selected");a=sd(d,b);D(a,function(a){fh(a,d)});O(c.parentNode,d)}function I8(a,b){if(!b.widgetMenu){var c=kh(b,"button-menu-id"),c=c&&rd(c),d=T6(a,"menu");c?eh(c,[d,T6(a,"menu-external")]):c=ud(d,b);b.widgetMenu=c}return b.widgetMenu}
function H8(a,b){if(kh(b,"button-toggle")){var c=ee(b,T6(a,"group")),d=T6(a,"toggled"),e=dh(b,d);if(c&&kh(c,"button-toggle-group")){var g=kh(c,"button-toggle-group"),c=sd(T6(a),c);D(c,function(a){a!=b||"optional"==g&&e?(fh(a,d),a.removeAttribute("aria-pressed")):(O(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),hh(b,d)}}
f.click=function(a){if(I8(this,a)){var b=I8(this,a),c=ee(b.activeButtonNode||b.parentNode,T6(this));c&&c!=a?(M8(this,c),M(w(this.gu,this,a),1)):Tw(b)?M8(this,a):this.gu(a);a.focus()}this.k(a,"button-action")};var S8=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",S8,void 0);function T8(a){a=a.getInstance();var b=T6(a);b in S8||(a.register(),a.Vn.push(Fi("yt-uix-init-"+b,a.init,a)),a.Vn.push(Fi("yt-uix-dispose-"+b,a.dispose,a)),S8[b]=a)};T8(G8);T8(W6);r("yt.tracking.share")||q("yt.tracking.share",Xx,void 0);r("yt.net.ping")||q("yt.net.ping.send",bg,void 0);r("yt.window.popup")||(q("yt.window.popup",fx,void 0),q("yt.window.open",ex,void 0));q("yt.player.Application.create",j8.create,void 0);var U8=r("ytcsi.tick"),V8=r("ytcsi.info");U8&&(U8("pe"),window.performance&&window.performance.now&&V8("h5jse",window.performance.now()));})();
