(function(){var f,aa=aa||{},m=this;function p(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&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function t(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 ba(){}function ca(a){a.getInstance=function(){return a.Zo?a.Zo:a.Zo=new a}}
function ea(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 fa(a){return null===a}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function ia(a){return"number"==typeof a}function ja(a){return"function"==ea(a)}function ka(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function la(a){return a[ma]||(a[ma]=++na)}
var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(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 x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return x.apply(null,arguments)}function ra(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 sa(a,b){for(var c in b)a[c]=b[c]}var y=Date.now||function(){return+new Date};function ta(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return d in b?b[d]:a}));return a}
function z(a,b){function c(){}c.prototype=b.prototype;a.J=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,g){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}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 x.apply(null,c)}return x(this,a)};function ua(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}z(ua,Error);ua.prototype.name="CustomError";var va;function wa(a,b){return 0==a.lastIndexOf(b,0)}function xa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function ya(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function A(a){return/^[\s\xa0]*$/.test(a)}var za=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Aa(a){return encodeURIComponent(String(a))}
function Ba(a){return decodeURIComponent(a.replace(/\+/g," "))}function Ca(a){if(!Da.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ea,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Fa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ga,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ha,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ia,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ja,"&#0;"));return a}var Ea=/&/g,Fa=/</g,Ga=/>/g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=/[\x00&<>"']/;
function Ka(a){return La(a,"&")?"document"in m?Ma(a):Na(a):a}function Ma(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Oa,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 Na(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 Oa=/&([^;\s<&]+);?/g;function La(a,b){return-1!=a.indexOf(b)}function Pa(a,b){return La(a.toLowerCase(),b.toLowerCase())}function Qa(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function Ra(a,b){return Array(b+1).join(a)}function Sa(a){a=p(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Ra("0",Math.max(0,2-b))+a}function B(a){return null==a?"":String(a)}function Ta(a){return Array.prototype.join.call(arguments,"")}
function Ua(a,b){for(var c=0,d=za(String(a)).split("."),e=za(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",n=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var v=n.exec(k)||["","",""],s=r.exec(l)||["","",""];if(0==v[0].length&&0==s[0].length)break;c=Va(0==v[1].length?0:parseInt(v[1],10),0==s[1].length?0:parseInt(s[1],10))||Va(0==v[2].length,0==s[2].length)||Va(v[2],s[2])}while(0==c)}return c}function Va(a,b){return a<b?-1:a>b?1:0}
function Wa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Xa=2147483648*Math.random()|0;function Ya(){return"goog_"+Xa++}function Za(a){var b=Number(a);return 0==b&&A(a)?NaN:b}function $a(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function ab(a){var b=u(void 0)?Qa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
function bb(a){isFinite(a)&&(a=String(a));return u(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};function cb(){};function db(a){return a[a.length-1]}
var eb=Array.prototype,fb=eb.indexOf?function(a,b,c){return eb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(u(a))return u(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},gb=eb.lastIndexOf?function(a,b,c){return eb.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(u(a))return u(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},C=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},hb=eb.filter?function(a,b,c){return eb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=u(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},ib=eb.map?function(a,b,c){return eb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=u(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=
b.call(c,g[h],h,a));return e},jb=eb.reduce?function(a,b,c,d){d&&(b=x(b,d));return eb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;C(a,function(c,h){e=b.call(d,e,c,h,a)});return e},kb=eb.some?function(a,b,c){return eb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},lb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(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 D(a,b,c){b=nb(a,b,c);return 0>b?null:u(a)?a.charAt(b):a[b]}function nb(a,b,c){for(var d=a.length,e=u(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 ob(a,b){var c=pb(a,b,void 0);return 0>c?null:u(a)?a.charAt(c):a[c]}function pb(a,b,c){for(var d=u(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 E(a,b){return 0<=fb(a,b)}function qb(a){return 0==a.length}
function rb(a){if(!ga(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function sb(a,b){E(a,b)||a.push(b)}function tb(a,b){var c=fb(a,b),d;(d=0<=c)&&ub(a,c);return d}function ub(a,b){eb.splice.call(a,b,1)}function vb(a){return eb.concat.apply(eb,arguments)}function wb(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 xb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ga(d)||(e=ha(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var g=a.length,h=d.length,k=0;k<h;k++)a[g+k]=d[k];else a.push(d)}}function yb(a,b,c,d){eb.splice.apply(a,zb(arguments,1))}function zb(a,b,c){return 2>=arguments.length?eb.slice.call(a,b):eb.slice.call(a,b,c)}
function Ab(a,b,c){b=b||a;c=c||function(){return ka(h)?"o"+la(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 Bb(a,b,c){c=c||Cb;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 Db(a,b){a.sort(b||Cb)}function Eb(a,b){var c=Cb;Db(a,function(a,e){return c(b(a),b(e))})}function Fb(a,b){Eb(a,function(a){return a[b]})}
function Gb(a,b){if(!ha(a)||!ha(b)||a.length!=b.length)return!1;for(var c=a.length,d=Hb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Cb(a,b){return a>b?1:a<b?-1:0}function Hb(a,b){return a===b}function Ib(a,b,c){c=Bb(a,b,c);0>c&&yb(a,-(c+1),0,b)}function Jb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ga(d))for(var e=0;e<d.length;e+=8192)for(var g=zb(d,e,e+8192),g=Jb.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Kb(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 Lb(a){return eval("("+a+")")}function Mb(a){var b=[];Nb(new Ob,a,b);return b.join("")}function Ob(){}
function Nb(a,b,c){switch(typeof b){case "string":Pb(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(ga(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),Nb(a,b[g],c),e=",";c.push("]");break}c.push("{");d="";for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(g=b[e],"function"!=typeof g&&(c.push(d),Pb(e,c),c.push(":"),Nb(a,g,c),d=","));c.push("}");
break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var Qb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Rb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;function Pb(a,b){b.push('"',a.replace(Rb,function(a){if(a in Qb)return Qb[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Qb[a]=e+b.toString(16)}),'"')};function Sb(a,b,c){return Math.min(Math.max(a,b),c)};function F(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0}f=F.prototype;f.clone=function(){return new F(this.x,this.y)};function Tb(a,b){return new F(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=ia(b)?b:a;this.x*=a;this.y*=c;return this};function Ub(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=Ub.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new Ub(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof Ub?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=ia(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function G(a,b){this.width=a;this.height=b}function Vb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(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=ia(b)?b:a;this.width*=a;this.height*=c;return this};function Wb(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Wb.prototype;f.clone=function(){return new Wb(this.left,this.top,this.width,this.height)};function Xb(a){return new Wb(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Yb(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}
f.contains=function(a){return a instanceof Wb?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 Zb(a){return new G(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=ia(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function $b(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function ac(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function bc(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function cc(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function dc(a){var b=0,c;for(c in a)b++;return b}function ec(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function fc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function gc(a,b){for(var c=ha(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);return a}function hc(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function ic(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function jc(a){for(var b in a)return!1;return!0}function kc(a){for(var b in a)delete a[b]}function lc(a,b){b in a&&delete a[b]}function mc(a,b,c){return b in a?a[b]:c}function nc(a){var b={},c;for(c in a)b[c]=a[c];return b}
function oc(a){var b=ea(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=oc(a[c]);return b}return a}var pc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function qc(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<pc.length;g++)c=pc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}
function rc(a){var b=arguments.length;if(1==b&&ga(arguments[0]))return rc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};function sc(a){sc[" "](a);return a}sc[" "]=ba;function tc(a,b){try{return sc(a[b]),!0}catch(c){}return!1};var uc;t:{var vc=m.navigator;if(vc){var wc=vc.userAgent;if(wc){uc=wc;break t}}uc=""}function xc(a){return La(uc,a)};var yc,zc,Ac,Cc,Dc;function Ec(){return m.navigator||null}var Fc=xc("Opera")||xc("OPR"),H=xc("Trident")||xc("MSIE"),Gc=xc("Gecko")&&!Pa(uc,"WebKit")&&!(xc("Trident")||xc("MSIE")),Hc=Pa(uc,"WebKit"),Ic=Hc&&xc("Mobile"),Jc=Ec(),Kc=Jc&&Jc.platform||"";yc=La(Kc,"Mac");zc=La(Kc,"Win");var Lc=uc;Ac=!!Lc&&La(Lc,"Android");Cc=!!Lc&&La(Lc,"iPhone");Dc=!!Lc&&La(Lc,"iPad");var Mc=Ec(),Nc=!!Mc&&La(Mc.appVersion||"","X11");function Oc(){var a=m.document;return a?a.documentMode:void 0}
var Pc=function(){var a="",b;if(Fc&&m.opera)return a=m.opera.version,ja(a)?a():a;Gc?b=/rv\:([^\);]+)(\)|;)/:H?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Hc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(uc))?a[1]:"");return H&&(b=Oc(),b>parseFloat(a))?String(b):a}(),Qc={};function Rc(a){return Qc[a]||(Qc[a]=0<=Ua(Pc,a))}var Sc=m.document,Tc=Sc&&H?Oc()||("CSS1Compat"==Sc.compatMode?parseInt(Pc,10):5):void 0;var Uc=!H||H&&9<=Tc,Vc=!Gc&&!H||H&&H&&9<=Tc||Gc&&Rc("1.9.1");H&&Rc("9");var Wc=H||Fc||Hc;function Xc(a){return a?new Yc(Zc(a)):va||(va=new Yc)}function $c(a){return u(a)?document.getElementById(a):a}function ad(a){var b=document;return u(a)?b.getElementById(a):a}function bd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):cd("*",a,b)}function I(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=cd("*",a,b)[0];return d||null}
function cd(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&&E(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function dd(a,b){$b(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in ed?a.setAttribute(ed[d],b):wa(d,"aria-")||wa(d,"data-")?a.setAttribute(d,b):a[d]=b})}var ed={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 fd(a){a=a.document;a=gd(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function hd(a){var b=id(a);a=a.parentWindow||a.defaultView;return H&&Rc("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function id(a){return!Hc&&gd(a)?a.documentElement:a.body||a.documentElement}function jd(a){return a?a.parentWindow||a.defaultView:window}function J(a,b,c){return kd(document,arguments)}
function kd(a,b){var c=b[0],d=b[1];if(!Uc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ca(d.name),'"');if(d.type){c.push(' type="',Ca(d.type),'"');var e={};qc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(u(d)?c.className=d:ga(d)?c.className=d.join(" "):dd(c,d));2<b.length&&ld(a,c,b,2);return c}function ld(a,b,c,d){function e(c){c&&b.appendChild(u(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ha(g)||ka(g)&&0<g.nodeType?e(g):C(md(g)?wb(g):g,e)}}
function nd(a){return document.createElement(a)}function gd(a){return"CSS1Compat"==a.compatMode}function od(a,b){a.appendChild(b)}function pd(a,b){ld(Zc(a),a,arguments,1)}function qd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function rd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function sd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function td(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function ud(a){return Vc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function vd(a){return void 0!=a.firstElementChild?a.firstElementChild:wd(a.firstChild)}function wd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function xd(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}
function yd(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}function zd(a){var b;if(Wc&&!(H&&Rc("9")&&!Rc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ka(b)&&1==b.nodeType?b:null}
function Ad(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 Zc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Bd(a){return a.contentWindow||jd(a.contentDocument||a.contentWindow.document)}
function Cd(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{qd(a);var c=Zc(a);a.appendChild(c.createTextNode(String(b)))}}function md(a){if(a&&"number"==typeof a.length){if(ka(a))return"function"==typeof a.item||"string"==typeof a.item;if(ja(a))return"function"==typeof a.item}return!1}
function Ed(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return Fd(a,function(a){return(!d||a.nodeName==d)&&(!c||u(a.className)&&E(a.className.split(/\s+/),c))})}function Fd(a,b,c){for(var d=null==c,e=0;a&&(d||e<=c);){if(b(a))return a;a=a.parentNode;e++}return null}function Yc(a){this.g=a||m.document||document}f=Yc.prototype;f.M=function(a){return u(a)?this.g.getElementById(a):a};f.setProperties=dd;f.lw=function(a,b,c){return kd(this.g,arguments)};f.createElement=function(a){return this.g.createElement(a)};
function Gd(a){return gd(a.g)}function Hd(a){a=a.g;return a.parentWindow||a.defaultView}function Id(a){return hd(a.g)}f.appendChild=od;f.append=pd;f.contains=Ad;function Jd(){return Hc?"Webkit":Gc?"Moz":H?"ms":Fc?"O":null}function Kd(){return Hc?"-webkit":Gc?"-moz":H?"-ms":Fc?"-o":null}function Ld(a,b){if(b&&a in b)return a;var c=Jd();return c?(c=c.toLowerCase(),c+=ab(a),!p(b)||c in b?c:null):null};function Md(a,b,c){if(u(b))(b=Nd(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=Nd(c,d);g&&(c.style[g]=e)}}function Nd(a,b){var c=$a(b);if(void 0===a.style[c]){var d=Jd()+ab(c);if(void 0!==a.style[d])return d}return c}function Od(a,b){var c=Zc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Pd(a,b){return Od(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Qd(a,b,c){var d,e=Gc&&(yc||Nc)&&Rc("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Rd(d,e);a.style.top=Rd(b,e)}function Sd(a){return new F(a.offsetLeft,a.offsetTop)}function Td(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}H&&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 Ud(a){if(H&&!(H&&8<=Tc))return a.offsetParent;var b=Zc(a),c=Pd(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Pd(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 Vd(a){for(var b=new Ub(0,Infinity,Infinity,0),c=Xc(a),d=c.g.body,e=c.g.documentElement,g=id(c.g);a=Ud(a);)if(!(H&&0==a.clientWidth||Hc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Pd(a,"overflow")){var h=Wd(a),k;k=a;if(Gc&&!Rc("1.9")){var l=parseFloat(Od(k,"borderLeftWidth"));if(Xd(k))var n=k.offsetWidth-k.clientWidth-l-parseFloat(Od(k,"borderRightWidth")),l=l+n;k=new F(l,parseFloat(Od(k,"borderTopWidth")))}else k=new F(k.clientLeft,k.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=fd(Hd(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 Wd(a){var b,c=Zc(a),d=Pd(a,"position"),e=Gc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Zc(c):document;h=!H||H&&9<=Tc||Gd(Xc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Td(a),a=Id(Xc(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=
b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(Hc&&"fixed"==Pd(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Fc||Hc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Ud(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,Fc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}function Yd(a,b){var c=new F(0,0),d=jd(Zc(a)),e=a;do{var g=d==b?Wd(e):Zd(e);c.x+=g.x;c.y+=g.y}while(d&&d!=b&&(e=d.frameElement)&&(d=d.parent));return c}
function Zd(a){var b;if(a.getBoundingClientRect)b=Td(a),b=new F(b.left,b.top);else{b=Id(Xc(a));var c=Wd(a);b=new F(c.x-b.x,c.y-b.y)}if(Gc&&!Rc(12)){i:{c=$a("transform");if(void 0===a.style[c]&&(c=Jd()+ab(c),void 0!==a.style[c])){c=Kd()+"-transform";break i}c="transform"}a=(a=Pd(a,c)||Pd(a,"transform"))?(a=a.match($d))?new F(parseFloat(a[1]),parseFloat(a[2])):new F(0,0):new F(0,0);a=new F(b.x+a.x,b.y+a.y)}else a=b;return a}
function ae(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");be(a,b);a.style.height=Rd(c,!0)}function Rd(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function be(a,b){a.style.width=Rd(b,!0)}function ce(a){return de(a)}
function de(a){var b=ee;if("none"!=Pd(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 ee(a){var b=a.offsetWidth,c=a.offsetHeight,d=Hc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Td(a),new G(a.right-a.left,a.bottom-a.top))}function fe(a){var b=Wd(a);a=de(a);return new Wb(b.x,b.y,a.width,a.height)}
function ge(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 he(a,b){a.style.display=b?"":"none"}function Xd(a){return"rtl"==Pd(a,"direction")}function ie(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 je(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ie(a,c):0}var ke={thin:2,medium:4,thick:6};function le(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 ke?ke[c]:ie(a,c)}var me=/[^\d]+$/,ne={cm:1,"in":1,mm:1,pc:1,pt:1},oe={em:1,ex:1};
function pe(a){var b=Pd(a,"fontSize"),c;c=(c=b.match(me))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(H){if(c in ne)return ie(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in oe)return a=a.parentNode,c=Pd(a,"fontSize"),ie(a,b==c?"1em":b)}c=J("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;sd(c);return b}var $d=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;var qe="StopIteration"in m?m.StopIteration:Error("StopIteration");function re(){}re.prototype.next=function(){throw qe;};re.prototype.Lb=function(){return this};function se(a){if(a instanceof re)return a;if("function"==typeof a.Lb)return a.Lb(!1);if(ha(a)){var b=0,c=new re;c.next=function(){for(;;){if(b>=a.length)throw qe;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function te(a,b,c){if(ha(a))try{C(a,b,c)}catch(d){if(d!==qe)throw d;}else{a=se(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==qe)throw e;}}}function ue(a){if(ha(a))return wb(a);a=se(a);var b=[];te(a,function(a){b.push(a)});return b};function ve(a,b){this.j={};this.g=[];this.k=this.ba=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 ve?(c=a.Ea(),d=a.La()):(c=fc(a),d=ec(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=ve.prototype;f.Ma=function(){return this.ba};f.La=function(){we(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.j[this.g[b]]);return a};f.Ea=function(){we(this);return this.g.concat()};
function xe(a,b){return ye(a.j,b)}f.Tf=function(a){for(var b=0;b<this.g.length;b++){var c=this.g[b];if(ye(this.j,c)&&this.j[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ba!=a.Ma())return!1;var c=b||ze;we(this);for(var d,e=0;d=this.g[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function ze(a,b){return a===b}f.isEmpty=function(){return 0==this.ba};f.clear=function(){this.j={};this.k=this.ba=this.g.length=0};
f.remove=function(a){return ye(this.j,a)?(delete this.j[a],this.ba--,this.k++,this.g.length>2*this.ba&&we(this),!0):!1};function we(a){if(a.ba!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];ye(a.j,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.ba!=a.g.length){for(var e={},c=b=0;b<a.g.length;)d=a.g[b],ye(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}}f.get=function(a,b){return ye(this.j,a)?this.j[a]:b};f.set=function(a,b){ye(this.j,a)||(this.ba++,this.g.push(a),this.k++);this.j[a]=b};
f.forEach=function(a,b){for(var c=this.Ea(),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 ve(this)};f.Lb=function(a){we(this);var b=0,c=this.g,d=this.j,e=this.k,g=this,h=new re;h.next=function(){for(;;){if(e!=g.k)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw qe;var h=c[b++];return a?h:d[h]}};return h};function ye(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ae(a){return"function"==typeof a.Ma?a.Ma():ha(a)||u(a)?a.length:dc(a)}function Be(a){if("function"==typeof a.La)return a.La();if(u(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return ec(a)}function Ce(a){if("function"==typeof a.Ea)return a.Ea();if("function"!=typeof a.La){if(ha(a)||u(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return fc(a)}}
function De(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ha(a)||u(a))C(a,b,void 0);else for(var c=Ce(a),d=Be(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function Ee(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ha(a)||u(a))return lb(a,b,c);for(var d=Ce(a),e=Be(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Fe(a,b,c,d,e,g,h){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);g&&(k+="?"+g);h&&(k+="#"+h);return k}var Ge=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function He(a){if(Ie){Ie=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Je(c))&&c!=b.hostname)throw Ie=!0,Error();}}return a.match(Ge)}var Ie=Hc;function Ke(a){return a?decodeURI(a):a}function Je(a){return Ke(He(a)[3]||null)}
function Le(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 Me(a,b,c){if(ga(b))for(var d=0;d<b.length;d++)Me(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Aa(b))}function Ne(a,b){for(var c in b)Me(c,b[c],a);return a}function Oe(a){a=Ne([],a);a[0]="";return a.join("")}function Pe(a,b){return Le(Ne([a],b))}
function Qe(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 Re=/#|$/,Se=/[?&]($|#)/;function Te(a,b,c){for(var d=a.search(Re),e=0,g,h=[];0<=(g=Qe(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(Se,"$1"),"&",b];null!=c&&a.push("=",Aa(c));return Le(a)};function K(a,b){var c;a instanceof K?(this.Ld=p(b)?b:a.Ld,Ue(this,a.kb),this.Kd=a.Kd,Ve(this,a.$a),We(this,a.Ie),Ye(this,a.rb),Ze(this,a.g.clone()),this.we=a.Ze()):a&&(c=He(String(a)))?(this.Ld=!!b,Ue(this,c[1]||"",!0),this.Kd=$e(c[2]||""),Ve(this,c[3]||"",!0),We(this,c[4]),Ye(this,c[5]||"",!0),Ze(this,c[6]||"",!0),this.we=$e(c[7]||"")):(this.Ld=!!b,this.g=new af(null,0,this.Ld))}f=K.prototype;f.kb="";f.Kd="";f.$a="";f.Ie=null;f.rb="";f.we="";f.Ld=!1;
f.toString=function(){var a=[],b=this.kb;b&&a.push(bf(b,cf,!0),":");if(b=this.$a){a.push("//");var c=this.Kd;c&&a.push(bf(c,cf,!0),"@");a.push(Aa(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Ie;null!=b&&a.push(":",String(b))}if(b=this.rb)this.$a&&"/"!=b.charAt(0)&&a.push("/"),a.push(bf(b,"/"==b.charAt(0)?df:ef,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Ze())&&a.push("#",bf(b,ff));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.kb;c?Ue(b,a.kb):c=!!a.Kd;c?b.Kd=a.Kd:c=!!a.$a;c?Ve(b,a.$a):c=null!=a.Ie;var d=a.rb;if(c)We(b,a.Ie);else if(c=!!a.rb){if("/"!=d.charAt(0))if(this.$a&&!this.rb)d="/"+d;else{var e=b.rb.lastIndexOf("/");-1!=e&&(d=b.rb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(La(e,"./")||La(e,"/.")){for(var d=wa(e,"/"),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?Ye(b,d):c=""!==a.g.toString();c?Ze(b,$e(a.g.toString())):c=!!a.we;c&&(b.we=a.Ze());return b};f.clone=function(){return new K(this)};function Ue(a,b,c){a.kb=c?$e(b,!0):b;a.kb&&(a.kb=a.kb.replace(/:$/,""))}function gf(a){return a.$a}function Ve(a,b,c){a.$a=c?$e(b,!0):b}function We(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ie=b}else a.Ie=null}function Ye(a,b,c){a.rb=c?$e(b,!0):b}
function Ze(a,b,c){b instanceof af?(a.g=b,hf(a.g,a.Ld)):(c||(b=bf(b,jf)),a.g=new af(b,0,a.Ld));return a}function kf(a){return a.g}function lf(a,b,c){a.g.set(b,c)}function mf(a,b){return a.g.get(b)}f.Ze=function(){return this.we};function $e(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function bf(a,b,c){return u(a)?(a=encodeURI(a).replace(b,nf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function nf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
var cf=/[#\/\?@]/g,ef=/[\#\?:]/g,df=/[\#\?]/g,jf=/[\#\?@]/g,ff=/#/g;function af(a,b,c){this.g=a||null;this.j=!!c}function of(a){if(!a.Qa&&(a.Qa=new ve,a.ba=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=Ba(e);e=pf(a,e);a.add(e,g?Ba(g):"")}}f=af.prototype;f.Qa=null;f.ba=null;f.Ma=function(){of(this);return this.ba};
f.add=function(a,b){of(this);this.g=null;a=pf(this,a);var c=this.Qa.get(a);c||this.Qa.set(a,c=[]);c.push(b);this.ba++;return this};f.remove=function(a){of(this);a=pf(this,a);return xe(this.Qa,a)?(this.g=null,this.ba-=this.Qa.get(a).length,this.Qa.remove(a)):!1};f.clear=function(){this.Qa=this.g=null;this.ba=0};f.isEmpty=function(){of(this);return 0==this.ba};function qf(a,b){of(a);b=pf(a,b);return xe(a.Qa,b)}f.Tf=function(a){var b=this.La();return E(b,a)};
f.Ea=function(){of(this);for(var a=this.Qa.La(),b=this.Qa.Ea(),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){of(this);var b=[];if(u(a))qf(this,a)&&(b=vb(b,this.Qa.get(pf(this,a))));else{a=this.Qa.La();for(var c=0;c<a.length;c++)b=vb(b,a[c])}return b};f.set=function(a,b){of(this);this.g=null;a=pf(this,a);qf(this,a)&&(this.ba-=this.Qa.get(a).length);this.Qa.set(a,[b]);this.ba++;return this};
f.get=function(a,b){var c=a?this.La(a):[];return 0<c.length?String(c[0]):b};function rf(a,b,c){a.remove(b);0<c.length&&(a.g=null,a.Qa.set(pf(a,b),wb(c)),a.ba+=c.length)}f.toString=function(){if(this.g)return this.g;if(!this.Qa)return"";for(var a=[],b=this.Qa.Ea(),c=0;c<b.length;c++)for(var d=b[c],e=Aa(d),d=this.La(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Aa(d[g]));a.push(h)}return this.g=a.join("&")};
f.clone=function(){var a=new af;a.g=this.g;this.Qa&&(a.Qa=this.Qa.clone(),a.ba=this.ba);return a};function pf(a,b){var c=String(b);a.j&&(c=c.toLowerCase());return c}function hf(a,b){b&&!a.j&&(of(a),a.g=null,a.Qa.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),rf(this,e,a))},a));a.j=b};function sf(a){if(a.classList)return a.classList;a=a.className;return u(a)&&a.match(/\S+/g)||[]}function tf(a,b){return a.classList?a.classList.contains(b):E(sf(a),b)}function L(a,b){a.classList?a.classList.add(b):tf(a,b)||(a.className+=0<a.className.length?" "+b:b)}function uf(a,b){if(a.classList)C(b,function(b){L(a,b)});else{var c={};C(sf(a),function(a){c[a]=!0});C(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function vf(a,b){a.classList?a.classList.remove(b):tf(a,b)&&(a.className=hb(sf(a),function(a){return a!=b}).join(" "))}function wf(a,b){a.classList?C(b,function(b){vf(a,b)}):a.className=hb(sf(a),function(a){return!E(b,a)}).join(" ")}function xf(a,b,c){c?L(a,b):vf(a,b)};function yf(a,b,c){a&&(a.dataset?a.dataset[zf(b)]=c:a.setAttribute("data-"+b,c))}function Af(a,b){return a?a.dataset?a.dataset[zf(b)]:a.getAttribute("data-"+b):null}var Bf={};function zf(a){return Bf[a]||(Bf[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var Cf=Hc?"webkit":Gc?"moz":H?"ms":Fc?"o":"",Df=t("yt.dom.getNextId_");if(!Df){Df=function(){return++Ef};q("yt.dom.getNextId_",Df,void 0);var Ef=0}function Ff(a,b){if(a in b)return b[a];var c=Cf+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Gf(a,b){var c;kb(a,function(a){c=Ff(a,b);return!!c});return c}function Hf(a){xf(document.body,"hide-players",!0);a&&xf(a,"preserve-players",!0)}
function If(){xf(document.body,"hide-players",!1);var a=bd("preserve-players");C(a,function(a){vf(a,"preserve-players")})};var Jf=window.yt&&window.yt.config_||{};q("yt.config_",Jf,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Kf=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Kf,void 0);function Lf(a){Mf(Jf,arguments)}function Nf(a,b){return a in Jf?Jf[a]:b}function M(a,b){ja(a)&&(a=Of(a));return window.setTimeout(a,b)}function Pf(a,b){ja(a)&&(a=Of(a));return window.setInterval(a,b)}function Qf(a){window.clearTimeout(a)}function Rf(a){window.clearInterval(a)}
function Of(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Sf(b),b;}}:a}function Sf(a,b){var c=t("yt.www.errors.log");c?c(a,b):(c=Nf("ERRORS")||[],c.push([a,b]),Lf("ERRORS",c))}function Tf(a){Mf(Kf,arguments)}function Uf(a,b,c){var d=b||{};if(a=a in Kf?Kf[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
ta=function(a,b){var c=b||{},d=a in Kf?Kf[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 Mf(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 Vf="Microsoft Internet Explorer"==navigator.appName;function Wf(a){if(a=a||window.event){for(var b in a)b in Xf||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.ic=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.g=a.pageX;this.j=a.pageY}}function Yf(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.g=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.j=a.clientY+b}}f=Wf.prototype;f.ic=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.ic.returnValue=!1;this.ic.preventDefault&&this.ic.preventDefault()};f.stopPropagation=function(){this.ic.cancelBubble=!0;this.ic.stopPropagation&&this.ic.stopPropagation()};
f.stopImmediatePropagation=function(){this.ic.cancelBubble=!0;this.ic.stopImmediatePropagation&&this.ic.stopImmediatePropagation()};var Xf={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Zf=t("yt.events.listeners_")||{};q("yt.events.listeners_",Zf,void 0);var $f=t("yt.events.counter_")||{count:0};q("yt.events.counter_",$f,void 0);function ag(a,b,c,d){return ic(Zf,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function bg(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=ag(a,b,c,d);if(e)return e;var e=++$f.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Wf(d);if(!Fd(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Wf(b);b.currentTarget=a;return c.call(a,b)};h=Of(h);Zf[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 cg(a,b){var c;c=bg(a,"playing",function(){dg(c);b.apply(a,arguments)},void 0)}function eg(a,b,c,d){return fg(a,b,c,function(a){return tf(a,d)})}
function fg(a,b,c,d){var e=a||document;return bg(e,b,function(a){var b=Fd(a.target,function(a){return a===e||d(a)});b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function dg(a){a&&("string"==typeof a&&(a=[a]),C(a,function(a){if(a in Zf){var c=Zf[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 Zf[a]}}))}function gg(a){for(var b in Zf)Zf[b][0]==a&&dg(b)};function hg(){return!!Gf(["fullscreenEnabled","fullScreenEnabled"],document)}function ig(){return Gf(["fullscreenElement","fullScreenElement"],document)};function jg(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||nc(kg);this.assets=a.assets||{};this.attrs=a.attrs||nc(lg);this.params=a.params||nc(mg);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 kg={enablejsapi:1},lg={},mg={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
function ng(a){a instanceof jg||(a=new jg(a));return a}jg.prototype.clone=function(){var a=new jg,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=nc(c):a[b]=c}return a};var og,pg,qg,rg,sg,tg,ug;ug=tg=sg=rg=qg=pg=og=!1;var vg=uc;vg&&(-1!=vg.indexOf("Firefox")?og=!0:-1!=vg.indexOf("Camino")?pg=!0:-1!=vg.indexOf("iPad")?rg=!0:-1!=vg.indexOf("iPhone")||-1!=vg.indexOf("iPod")?qg=!0:-1!=vg.indexOf("Chrome")?tg=!0:-1!=vg.indexOf("Android")?sg=!0:-1!=vg.indexOf("Safari")&&(ug=!0));var wg=og,xg=pg,yg=qg,zg=rg,Ag=sg,Bg=tg,Cg=ug;y();function N(){this.Ta=this.Ta;this.ua=this.ua}N.prototype.Ta=!1;N.prototype.fa=function(){return this.Ta};N.prototype.dispose=function(){this.Ta||(this.Ta=!0,this.K())};function O(a,b){Dg(a,ra(Eg,b))}function Dg(a,b){a.ua||(a.ua=[]);a.ua.push(p(void 0)?x(b,void 0):b)}N.prototype.K=function(){if(this.ua)for(;this.ua.length;)this.ua.shift()()};function Eg(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Fg(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?Fg.apply(null,d):Eg(d)}};function Gg(){N.call(this);this.g=[];this.Db={}}z(Gg,N);f=Gg.prototype;f.Yn=1;f.ph=0;f.subscribe=function(a,b,c){var d=this.Db[a];d||(d=this.Db[a]=[]);var e=this.Yn;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.Yn=e+3;d.push(e);return e};f.unsubscribe=function(a,b,c){if(a=this.Db[a]){var d=this.g;if(a=D(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Ec(a)}return!1};
f.Ec=function(a){if(0!=this.ph)return this.j||(this.j=[]),this.j.push(a),!1;var b=this.g[a];if(b){var c=this.Db[b];c&&tb(c,a);delete this.g[a];delete this.g[a+1];delete this.g[a+2]}return!!b};f.publish=function(a,b){var c=this.Db[a];if(c){this.ph++;for(var d=zb(arguments,1),e=0,g=c.length;e<g;e++){var h=c[e];this.g[h+1].apply(this.g[h+2],d)}this.ph--;if(this.j&&0==this.ph)for(;c=this.j.pop();)this.Ec(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.Db[a];b&&(C(b,this.Ec,this),delete this.Db[a])}else this.g.length=0,this.Db={}};f.Ma=function(a){if(a){var b=this.Db[a];return b?b.length:0}a=0;for(b in this.Db)a+=this.Ma(b);return a};f.K=function(){Gg.J.K.call(this);delete this.g;delete this.Db;delete this.j};var Hg=t("yt.pubsub.instance_")||new Gg;Gg.prototype.subscribe=Gg.prototype.subscribe;Gg.prototype.unsubscribeByKey=Gg.prototype.Ec;Gg.prototype.publish=Gg.prototype.publish;Gg.prototype.clear=Gg.prototype.clear;q("yt.pubsub.instance_",Hg,void 0);var Ig=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Ig,void 0);var Jg=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Jg,void 0);var Kg=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Kg,void 0);
var Lg=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Lg,void 0);function Mg(a,b,c){var d=Ng();if(d){var e=d.subscribe(a,function(){if(!Lg||Lg!=e){var d=arguments,h=function(){Ig[e]&&b.apply(c||window,d)};try{Kg[a]?h():M(h,0)}catch(k){Sf(k)}}},c);Ig[e]=!0;Jg[a]||(Jg[a]=[]);Jg[a].push(e);return e}return 0}function Og(a){var b=Ng();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),C(a,function(a){b.unsubscribeByKey(a);delete Ig[a]}))}
function Pg(a,b){var c=Ng();return c?c.publish.apply(c,arguments):!1}function Qg(a){Jg[a]&&(a=Jg[a],C(a,function(a){Ig[a]&&delete Ig[a]}),a.length=0)}function Rg(a){var b=Ng();if(b)if(b.clear(a),a)Qg(a);else for(var c in Jg)Qg(c)}function Ng(){return t("yt.pubsub.instance_")};function Sg(){};function Tg(){}z(Tg,Sg);Tg.prototype.Ma=function(){var a=0;te(this.Lb(!0),function(){a++});return a};Tg.prototype.clear=function(){var a=ue(this.Lb(!0)),b=this;C(a,function(a){b.remove(a)})};function Ug(a){this.g=a}z(Ug,Tg);f=Ug.prototype;f.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.g.getItem(a);if(!u(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.g.removeItem(a)};
f.Ma=function(){return this.g.length};f.Lb=function(a){var b=0,c=this.g,d=new re;d.next=function(){if(b>=c.length)throw qe;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!u(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.g.clear()};f.key=function(a){return this.g.key(a)};function Vg(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a}z(Vg,Ug);function Wg(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a}z(Wg,Ug);function Xg(a){this.g=a}Xg.prototype.set=function(a,b){p(b)?this.g.set(a,Mb(b)):this.g.remove(a)};Xg.prototype.get=function(a){var b;try{b=this.g.get(a)}catch(c){return}if(null!==b)try{return Kb(b)}catch(d){throw"Storage: Invalid value was encountered";}};Xg.prototype.remove=function(a){this.g.remove(a)};function Yg(a){this.g=a}z(Yg,Xg);function Zg(a){this.data=a}function $g(a){return!p(a)||a instanceof Zg?a:new Zg(a)}Yg.prototype.set=function(a,b){Yg.J.set.call(this,a,$g(b))};Yg.prototype.j=function(a){a=Yg.J.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Yg.prototype.get=function(a){if(a=this.j(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function ah(a){this.g=a}z(ah,Yg);ah.prototype.set=function(a,b,c){if(b=$g(b)){if(c){if(c<y()){ah.prototype.remove.call(this,a);return}b.expiration=c}b.creation=y()}ah.J.set.call(this,a,b)};ah.prototype.j=function(a,b){var c=ah.J.j.call(this,a);if(c){var d;if(d=!b){d=c.creation;var e=c.expiration;d=!!e&&e<y()||!!d&&d>y()}if(d)ah.prototype.remove.call(this,a);else return c}};function bh(a){this.g=a}z(bh,ah);function ch(a,b,c){var d=c&&0<c?c:0;c=d?y()+1E3*d:0;if((d=d?dh:eh)&&window.JSON){u(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function fh(a){if(!eh&&!dh||!window.JSON)return null;var b;try{b=eh.get(a)}catch(c){}if(!u(b))try{b=dh.get(a)}catch(d){}if(!u(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}var dh,gh=new Vg;dh=gh.isAvailable()?new bh(gh):null;var eh,hh=new Wg;eh=hh.isAvailable()?new bh(hh):null;function ih(a){var b=a.type;if(!p(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 p(a.value)?a.value:null}};function jh(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=Ba(h[0]||""),h=Ba(h[1]||"");k in d?ga(d[k])?xb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function kh(a,b){var c=[];$b(a,function(a,b){var g=Aa(b),h;ga(a)?h=a:h=[a];C(h,function(a){""==a?c.push(g):c.push(g+"="+Aa(a))})});return c.join(b)}function lh(a){"?"==a.charAt(0)&&(a=a.substr(1));return jh(a,"&")}
function mh(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),lh(1<a.length?a[1]:a[0])):{}}var nh=Je;function oh(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=lh(d[1]||""),e;for(e in b)d[e]=b[e];return Pe(a,d)+c}function ph(){var a;a||(a=document.location.href);a=He(a)[1]||null;return null!==a&&"https"==a}
function qh(a){a=nh(a);a=null===a?null:a.split(".").reverse();return(null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:-nocookie)?$/)?!0:!1)||(null===a?!1:"google"==a[1]?!0:"google"==a[2]?"au"==a[0]&&"com"==a[1]?!0:"uk"==a[0]&&"co"==a[1]?!0:!1:!1)};var rh=null;"undefined"!=typeof XMLHttpRequest?rh=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(rh=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function sh(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 th(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Of(b)(l)}var l=rh&&rh();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=uh(a,e))for(var n in e)l.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(g=!1);g&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function uh(a,b){b=b||{};for(var c in vh){var d=Nf(vh[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=He(e)[1]||null,k=nh(e);h&&k?(e=He(e),g=He(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?nh(g)==k&&(Number(He(g)[4]||null)||null)==(Number(He(e)[4]||null)||null):!0;e||(e=c,g=Nf("CORS_HEADER_WHITELIST")||{},e=(h=nh(a))?(g=g[h])?E(g,e):!1:!0)}e&&(b[c]=d)}return b}function wh(a,b){var c=Nf("XSRF_TOKEN");b.method="POST";b.Ib||(b.Ib={});b.Ib[Nf("XSRF_FIELD_NAME")]=c;xh(a,b)}
function yh(a,b){var c=Nf("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.xy&&(!nh(a)||nh(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ib&&b.Ib[c])}
function xh(a,b){var c=b.format||"JSON";b.wy&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Nf("XSRF_FIELD_NAME"),e=Nf("XSRF_TOKEN"),g=b.Pn;g&&(g[d]&&delete g[d],a=oh(a,g));var h=b.Rr||"",g=b.Ib;yh(a,b)&&(g||(g={}),g[d]=e);g&&u(h)&&(d=lh(h),qc(d,g),h=Oe(d));var k=!1,l,n=th(a,function(a){if(!k){k=!0;l&&Qf(l);var d=sh(a),e=null;if(d||400<=a.status&&500>a.status)e=zh(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.mc&&b.mc.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.nc&&b.nc.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.Oj&&0<b.timeout&&(l=M(function(){k||(k=!0,n.abort(),Qf(l),b.Oj.call(b.context||m,n))},b.timeout));return n}
function zh(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=Lb(d));break;case "XML":if(d=(d=b.responseXML)?Ah(d):null)c={},C(d.getElementsByTagName("*"),function(a){c[a.tagName]=Bh(a)})}return c}function Ah(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Bh(a){var b="";C(a.childNodes,function(a){b+=a.nodeValue});return b}
var vh={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Ch(){N.call(this);this.N=new Gg;O(this,this.N)}z(Ch,N);Ch.prototype.subscribe=function(a,b,c){return this.fa()?0:this.N.subscribe(a,b,c)};Ch.prototype.unsubscribe=function(a,b,c){return this.fa()?!1:this.N.unsubscribe(a,b,c)};Ch.prototype.Ec=function(a){return this.fa()?!1:this.N.Ec(a)};Ch.prototype.publish=function(a,b){return this.fa()?!1:this.N.publish.apply(this.N,arguments)};function Dh(a,b){this.Le=a;this.Nd=b+"::"}z(Dh,Tg);f=Dh.prototype;f.Le=null;f.Nd="";f.set=function(a,b){this.Le.set(this.Nd+a,b)};f.get=function(a){return this.Le.get(this.Nd+a)};f.remove=function(a){this.Le.remove(this.Nd+a)};f.Lb=function(a){var b=this.Le.Lb(!0),c=this,d=new re;d.next=function(){for(var d=b.next();d.substr(0,c.Nd.length)!=c.Nd;)d=b.next();return a?d.substr(c.Nd.length):c.Le.get(d)};return d};function Eh(a){this.g=a}var Fh=/\s*;\s*/;f=Eh.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+'"');p(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(y()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(Fh),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=p(this.get(a));this.set(a,"",0,b,c);return d};f.Ea=function(){return Gh(this).keys};f.La=function(){return Gh(this).values};f.isEmpty=function(){return!this.g.cookie};f.Ma=function(){return this.g.cookie?(this.g.cookie||"").split(Fh).length:0};
f.Tf=function(a){for(var b=Gh(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=Gh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function Gh(a){a=(a.g.cookie||"").split(Fh);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 Hh=new Eh(document);Hh.j=3950;function Ih(a,b,c){Hh.set(""+a,b,c,"/","_old_youtube.com")}function Jh(a,b){return Hh.get(""+a,b)};var Kh=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Kh,void 0);function Lh(a){this.g=new ve;if(a){a=Be(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function Mh(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+la(a):b.substr(0,1)+a}f=Lh.prototype;f.Ma=function(){return this.g.Ma()};f.add=function(a){this.g.set(Mh(a),a)};f.removeAll=function(a){a=Be(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.g.remove(Mh(a))};f.clear=function(){this.g.clear()};f.isEmpty=function(){return this.g.isEmpty()};
f.contains=function(a){return xe(this.g,Mh(a))};f.La=function(){return this.g.La()};f.clone=function(){return new Lh(this)};f.equals=function(a){return this.Ma()==Ae(a)&&Nh(this,a)};function Nh(a,b){var c=Ae(b);if(a.Ma()>c)return!1;!(b instanceof Lh)&&5<c&&(b=new Lh(b));return Ee(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.Tf?c.Tf(a):ha(c)||u(c)?E(c,a):hc(c,a)})}f.Lb=function(){return this.g.Lb(!1)};function Oh(){};function Ph(){this.g=y()}new Ph;Ph.prototype.set=function(a){this.g=a};Ph.prototype.reset=function(){this.set(y())};Ph.prototype.get=function(){return this.g};function Qh(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.j=!1;this.In=!0}Qh.prototype.K=function(){};Qh.prototype.dispose=function(){};Qh.prototype.stopPropagation=function(){this.j=!0};Qh.prototype.preventDefault=function(){this.defaultPrevented=!0;this.In=!1};function Rh(a){a.stopPropagation()};var Sh=!H||H&&9<=Tc,Th=H&&!Rc("9");!Hc||Rc("528");Gc&&Rc("1.9b")||H&&Rc("8")||Fc&&Rc("9.5")||Hc&&Rc("528");Gc&&!Rc("8")||H&&Rc("9");var Uh="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function Vh(a,b){Qh.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.g=this.state=null;a&&this.init(a,b)}z(Vh,Qh);f=Vh.prototype;
f.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?Gc&&(tc(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=
a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){Vh.J.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};f.preventDefault=function(){Vh.J.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Th)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};
f.ev=function(){return this.g};f.K=function(){};var Wh="closure_listenable_"+(1E6*Math.random()|0);function Xh(a){return!(!a||!a[Wh])}var Yh=0;function Zh(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Be=!!d;this.Wb=e;this.key=++Yh;this.removed=this.oh=!1}function $h(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Wb=null};function ai(a){this.src=a;this.g={};this.j=0}ai.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.g[g];a||(a=this.g[g]=[],this.j++);var h=bi(a,b,d,e);-1<h?(b=a[h],c||(b.oh=!1)):(b=new Zh(b,this.src,g,!!d,e),b.oh=c,a.push(b));return b};ai.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=bi(e,b,c,d);return-1<b?($h(e[b]),ub(e,b),0==e.length&&(delete this.g[a],this.j--),!0):!1};
function ci(a,b){var c=b.type;if(!(c in a.g))return!1;var d=tb(a.g[c],b);d&&($h(b),0==a.g[c].length&&(delete a.g[c],a.j--));return d}ai.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.g)if(!a||c==a){for(var d=this.g[c],e=0;e<d.length;e++)++b,$h(d[e]);delete this.g[c];this.j--}return b};function di(a,b,c,d,e){a=a.g[b.toString()];b=-1;a&&(b=bi(a,c,d,e));return-1<b?a[b]:null}
function bi(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Be==!!c&&g.Wb==d)return e}return-1};var ei="closure_lm_"+(1E6*Math.random()|0),fi={},gi=0;function hi(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)hi(a,b[g],c,d,e);return null}c=ii(c);return Xh(a)?a.listen(b,c,d,e):ji(a,b,c,!1,d,e)}function ji(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=ki(a);k||(a[ei]=k=new ai(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=li();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(mi(b.toString()),d);gi++;return c}
function li(){var a=ni,b=Sh?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 oi(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)oi(a,b[g],c,d,e);return null}c=ii(c);return Xh(a)?a.Dc.add(String(b),c,!0,d,e):ji(a,b,c,!0,d,e)}function pi(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)pi(a,b[g],c,d,e);else c=ii(c),Xh(a)?a.ya(b,c,d,e):a&&(a=ki(a))&&(b=di(a,b,c,!!d,e))&&qi(b)}
function qi(a){if(ia(a)||!a||a.removed)return!1;var b=a.src;if(Xh(b))return ci(b.Dc,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Be):b.detachEvent&&b.detachEvent(mi(c),d);gi--;(c=ki(b))?(ci(c,a),0==c.j&&(c.src=null,b[ei]=null)):$h(a);return!0}function mi(a){return a in fi?fi[a]:fi[a]="on"+a}function ri(a,b,c,d){var e=1;if(a=ki(a))if(b=a.g[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Be==c&&!g.removed&&(e&=!1!==si(g,d))}return Boolean(e)}
function si(a,b){var c=a.listener,d=a.Wb||a.src;a.oh&&qi(a);return c.call(d,b)}
function ni(a,b){if(a.removed)return!0;if(!Sh){var c=b||t("window.event"),d=new Vh(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.j&&0<=k;k--)d.currentTarget=c[k],e&=ri(c[k],g,!0,d);for(k=0;!d.j&&k<c.length;k++)d.currentTarget=c[k],e&=ri(c[k],g,!1,d)}return e}return si(a,new Vh(b,this))}
function ki(a){a=a[ei];return a instanceof ai?a:null}var ti="__closure_events_fn_"+(1E9*Math.random()>>>0);function ii(a){if(ja(a))return a;a[ti]||(a[ti]=function(b){return a.handleEvent(b)});return a[ti]};function P(){N.call(this);this.Dc=new ai(this);this.ka=this;this.W=null}z(P,N);P.prototype[Wh]=!0;f=P.prototype;f.ng=function(a){this.W=a};f.addEventListener=function(a,b,c,d){hi(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){pi(this,a,b,c,d)};
f.T=function(a){var b,c=this.W;if(c){b=[];for(var d=1;c;c=c.W)b.push(c),++d}c=this.ka;d=a.type||a;if(u(a))a=new Qh(a,c);else if(a instanceof Qh)a.target=a.target||c;else{var e=a;a=new Qh(d,c);qc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.j&&0<=h;h--)g=a.currentTarget=b[h],e=ui(g,d,!0,a)&&e;a.j||(g=a.currentTarget=c,e=ui(g,d,!0,a)&&e,a.j||(e=ui(g,d,!1,a)&&e));if(b)for(h=0;!a.j&&h<b.length;h++)g=a.currentTarget=b[h],e=ui(g,d,!1,a)&&e;return e};
f.K=function(){P.J.K.call(this);this.removeAllListeners();this.W=null};f.listen=function(a,b,c,d){return this.Dc.add(String(a),b,!1,c,d)};f.ya=function(a,b,c,d){return this.Dc.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Dc?this.Dc.removeAll(a):0};
function ui(a,b,c,d){b=a.Dc.g[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.Be==c){var k=h.listener,l=h.Wb||h.src;h.oh&&ci(a.Dc,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.In};function vi(a){this.j=0;this.k=a||100;this.g=[]}f=vi.prototype;f.add=function(a){var b=this.g[this.j];this.g[this.j]=a;this.j=(this.j+1)%this.k;return b};f.get=function(a){a=wi(this,a);return this.g[a]};f.set=function(a,b){a=wi(this,a);this.g[a]=b};f.Ma=function(){return this.g.length};f.isEmpty=function(){return 0==this.g.length};f.clear=function(){this.j=this.g.length=0};f.La=function(){for(var a=this.Ma(),b=this.Ma(),c=[],a=this.Ma()-a;a<b;a++)c.push(this.get(a));return c};
f.Ea=function(){for(var a=[],b=this.Ma(),c=0;c<b;c++)a[c]=c;return a};f.Tf=function(a){for(var b=this.Ma(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function wi(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.k?b:(a.j+Number(b))%a.k};function xi(a){m.setTimeout(function(){throw a;},0)}var yi;
function zi(){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=x(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&&!xc("Trident")&&!xc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.Yo;c.Yo=null;a()}};return function(a){d.next={Yo: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 Ai(a,b){Bi||Ci();Di||(Bi(),Di=!0);Ei.push(new Fi(a,b))}var Bi;function Ci(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Bi=function(){a.then(Gi)}}else Bi=function(){var a=Gi;!ja(m.setImmediate)||m.Window&&m.Window.prototype.setImmediate==m.setImmediate?(yi||(yi=zi()),yi(a)):m.setImmediate(a)}}var Di=!1,Ei=[];function Gi(){for(;Ei.length;){var a=Ei;Ei=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.g.call(c.scope)}catch(d){xi(d)}}}Di=!1}
function Fi(a,b){this.g=a;this.scope=b};function Hi(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Ii(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Ji(a,b){this.j=0;this.B=void 0;this.g=this.k=null;this.o=this.A=!1;try{var c=this;a.call(b,function(a){Ki(c,2,a)},function(a){Ki(c,3,a)})}catch(d){Ki(this,3,d)}}function Li(a){return new Ji(function(b){b(a)})}function Mi(){var a=Ni;return new Ji(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(ra(g,k),h);else b(e)})}Ji.prototype.then=function(a,b,c){return Oi(this,ja(a)?a:null,ja(b)?b:null,c)};Hi(Ji);
Ji.prototype.cancel=function(a){0==this.j&&Ai(function(){var b=new Pi(a);Qi(this,b)},this)};function Qi(a,b){if(0==a.j)if(a.k){var c=a.k;if(c.g){for(var d=0,e=-1,g=0,h;h=c.g[g];g++)if(h=h.Ef)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.j&&1==d?Qi(c,b):(d=c.g.splice(e,1)[0],Ri(c,d,3,b)))}}else Ki(a,3,b)}function Si(a,b){a.g&&a.g.length||2!=a.j&&3!=a.j||Ti(a);a.g||(a.g=[]);a.g.push(b)}
function Oi(a,b,c,d){var e={Ef:null,uo:null,vo:null};e.Ef=new Ji(function(a,h){e.uo=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){h(n)}}:a;e.vo=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Pi?h(b):a(e)}catch(n){h(n)}}:h});e.Ef.k=a;Si(a,e);return e.Ef}Ji.prototype.C=function(a){this.j=0;Ki(this,2,a)};Ji.prototype.D=function(a){this.j=0;Ki(this,3,a)};
function Ki(a,b,c){if(0==a.j){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Ii(c)){a.j=1;c.then(a.C,a.D,a);return}if(ka(c))try{var d=c.then;if(ja(d)){Ui(a,c,d);return}}catch(e){b=3,c=e}}a.B=c;a.j=b;Ti(a);3!=b||c instanceof Pi||Vi(a,c)}}function Ui(a,b,c){function d(b){g||(g=!0,a.D(b))}function e(b){g||(g=!0,a.C(b))}a.j=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function Ti(a){a.A||(a.A=!0,Ai(a.F,a))}
Ji.prototype.F=function(){for(;this.g&&this.g.length;){var a=this.g;this.g=[];for(var b=0;b<a.length;b++)Ri(this,a[b],this.j,this.B)}this.A=!1};function Ri(a,b,c,d){if(2==c)b.uo(d);else{if(b.Ef)for(;a&&a.o;a=a.k)a.o=!1;b.vo(d)}}function Vi(a,b){a.o=!0;Ai(function(){a.o&&Wi.call(null,b)})}var Wi=xi;function Pi(a){ua.call(this,a)}z(Pi,ua);Pi.prototype.name="cancel";function Xi(a,b){P.call(this);this.g=a||1;this.j=b||m;this.k=x(this.Ht,this);this.o=y()}z(Xi,P);f=Xi.prototype;f.enabled=!1;f.Nb=null;function Yi(a,b){a.g=b;a.Nb&&a.enabled?(a.stop(),a.start()):a.Nb&&a.stop()}f.Ht=function(){if(this.enabled){var a=y()-this.o;0<a&&a<.8*this.g?this.Nb=this.j.setTimeout(this.k,this.g-a):(this.Nb&&(this.j.clearTimeout(this.Nb),this.Nb=null),this.T("tick"),this.enabled&&(this.Nb=this.j.setTimeout(this.k,this.g),this.o=y()))}};
f.start=function(){this.enabled=!0;this.Nb||(this.Nb=this.j.setTimeout(this.k,this.g),this.o=y())};f.stop=function(){this.enabled=!1;this.Nb&&(this.j.clearTimeout(this.Nb),this.Nb=null)};f.K=function(){Xi.J.K.call(this);this.stop();delete this.j};function Zi(a,b,c){if(ja(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function $i(a){m.clearTimeout(a)};function aj(a){N.call(this);this.o=a;this.j={}}z(aj,N);var bj=[];f=aj.prototype;f.listen=function(a,b,c,d){return cj(this,a,b,c,d)};function dj(a,b,c,d,e){cj(a,b,c,d,!1,e)}function cj(a,b,c,d,e,g){ga(c)||(c&&(bj[0]=c.toString()),c=bj);for(var h=0;h<c.length;h++){var k=hi(b,c[h],d||a.handleEvent,e||!1,g||a.o||a);if(!k)break;a.j[k.key]=k}return a}function ej(a,b,c,d){fj(a,b,c,d,void 0)}function gj(a,b,c,d,e){fj(a,b,c,d,!1,e)}
function fj(a,b,c,d,e,g){if(ga(c))for(var h=0;h<c.length;h++)fj(a,b,c[h],d,e,g);else(b=oi(b,c,d||a.handleEvent,e,g||a.o||a))&&(a.j[b.key]=b)}f.ya=function(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)this.ya(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.o||this,c=ii(c),d=!!d,b=Xh(a)?di(a.Dc,String(b),c,d,e):a?(a=ki(a))?di(a,b,c,d,e):null:null,b&&(qi(b),delete this.j[b.key]);return this};f.removeAll=function(){$b(this.j,qi);this.j={}};f.K=function(){aj.J.K.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function hj(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 ij(){}ij.prototype.g=null;function jj(a){var b;(b=a.g)||(b={},kj(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};var lj;function mj(){}z(mj,ij);function nj(a){return(a=kj(a))?new ActiveXObject(a):new XMLHttpRequest}function kj(a){if(!a.j&&"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.j=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.j}lj=new mj;function oj(a){P.call(this);this.headers=new ve;this.I=a||null;this.j=!1;this.H=this.g=null;this.O=this.D="";this.k=0;this.B="";this.o=this.L=this.C=this.N=!1;this.A=0;this.F=null;this.P="";this.G=this.R=!1}z(oj,P);var pj=/^https?$/i,qj=["POST","PUT"];function rj(a,b){a.A=Math.max(0,b)}f=oj.prototype;
f.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+a);b=b?b.toUpperCase():"GET";this.D=a;this.B="";this.k=0;this.O=b;this.N=!1;this.j=!0;this.g=this.I?nj(this.I):nj(lj);this.H=this.I?jj(this.I):jj(lj);this.g.onreadystatechange=x(this.kl,this);try{Oh(sj(this,"Opening Xhr")),this.L=!0,this.g.open(b,String(a),!0),this.L=!1}catch(e){Oh(sj(this,"Error opening Xhr: "+e.message));tj(this,e);return}a=c||"";var g=this.headers.clone();
d&&De(d,function(a,b){g.set(b,a)});d=D(g.Ea(),uj);c=m.FormData&&a instanceof m.FormData;!E(qj,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.g.setRequestHeader(b,a)},this);this.P&&(this.g.responseType=this.P);"withCredentials"in this.g&&(this.g.withCredentials=this.R);try{vj(this),0<this.A&&(this.G=wj(this.g),Oh(sj(this,"Will abort after "+this.A+"ms if incomplete, xhr2 "+this.G)),this.G?(this.g.timeout=this.A,this.g.ontimeout=x(this.hb,
this)):this.F=Zi(this.hb,this.A,this)),Oh(sj(this,"Sending request")),this.C=!0,this.g.send(a),this.C=!1}catch(h){Oh(sj(this,"Send error: "+h.message)),tj(this,h)}};function wj(a){return H&&Rc(9)&&ia(a.timeout)&&p(a.ontimeout)}function uj(a){return"content-type"==a.toLowerCase()}
f.hb=function(){"undefined"!=typeof aa&&this.g&&(this.B="Timed out after "+this.A+"ms, aborting",this.k=8,sj(this,this.B),this.T("timeout"),this.g&&this.j&&(sj(this,"Aborting"),this.j=!1,this.o=!0,this.g.abort(),this.o=!1,this.k=8,this.T("complete"),this.T("abort"),xj(this)))};function tj(a,b){a.j=!1;a.g&&(a.o=!0,a.g.abort(),a.o=!1);a.B=b;a.k=5;yj(a);xj(a)}function yj(a){a.N||(a.N=!0,a.T("complete"),a.T("error"))}
f.K=function(){this.g&&(this.j&&(this.j=!1,this.o=!0,this.g.abort(),this.o=!1),xj(this,!0));oj.J.K.call(this)};f.kl=function(){this.fa()||(this.L||this.C||this.o?zj(this):this.bx())};f.bx=function(){zj(this)};
function zj(a){if(a.j&&"undefined"!=typeof aa)if(a.H[1]&&4==Aj(a)&&2==a.getStatus())sj(a,"Local request error detected and ignored");else if(a.C&&4==Aj(a))Zi(a.kl,0,a);else if(a.T("readystatechange"),4==Aj(a)){sj(a,"Request complete");a.j=!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=He(String(a.D))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!pj.test(g?g.toLowerCase():"")}d=e}if(d)a.T("complete"),a.T("success");else{a.k=6;var k;try{k=2<Aj(a)?a.g.statusText:""}catch(l){k=""}a.B=k+" ["+a.getStatus()+"]";yj(a)}}finally{xj(a)}}}function xj(a,b){if(a.g){vj(a);var c=a.g,d=a.H[0]?ba:null;a.g=null;a.H=null;b||a.T("ready");try{c.onreadystatechange=d}catch(e){}}}function vj(a){a.g&&a.G&&(a.g.ontimeout=null);ia(a.F)&&($i(a.F),a.F=null)}f.isActive=function(){return!!this.g};function Aj(a){return a.g?a.g.readyState:0}
f.getStatus=function(){try{return 2<Aj(this)?this.g.status:-1}catch(a){return-1}};function sj(a,b){return b+" ["+a.O+" "+a.D+" "+a.getStatus()+"]"};new P;function Bj(){this.g=[];this.j=[]}function Cj(a){qb(a.g)&&(a.g=a.j,a.g.reverse(),a.j=[])}function Dj(a,b){a.j.push(b)}function Ej(a){Cj(a);return a.g.pop()}f=Bj.prototype;f.Ma=function(){return this.g.length+this.j.length};f.isEmpty=function(){return qb(this.g)&&qb(this.j)};f.clear=function(){this.g=[];this.j=[]};f.contains=function(a){return E(this.g,a)||E(this.j,a)};f.remove=function(a){var b=gb(this.g,a);if(0>b)return tb(this.j,a);ub(this.g,b);return!0};
f.La=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);for(var c=this.j.length,b=0;b<c;++b)a.push(this.j[b]);return a};var Fj=/^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\/)/,Gj=/^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]+)?([\/\?\#]|$)/,
Hj=/^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\//,Ij=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Jj=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Kj=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,
Lj=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Nj=/^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]+)?([\/\?\#]|$)/,Oj=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|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]+)?([\/\?\#]|$))/,
Pj=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Qj=/^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|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 Rj="corp.google.com googleplex.com _old_youtube.com _old_youtube-nocookie.com youtubeeducation.com borg.google.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com survey.g.doubleclick.net _old_youtube.googleapis.com vevo.com".split(" "),Sj="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net tpc.googlesyndication.com/pagead/gadgets studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),
Tj="";function Uj(a){return a&&a==Tj?!0:Vj(a,Rj)?(Tj=a,!0):!1}function Wj(a){var b=!!a&&-1!=a.search(Hj),c=-1!=a.indexOf("/embed/");b!=c&&Sf(Error(a+" behavior is not consistent"));return c}function Xj(a){var b=!!a&&-1!=a.search(Qj),c=Uj(a)||Vj(a,Sj);b!=c&&Sf(Error(a+" behavior is not consistent"));return c}function Yj(a){var b=!!a&&-1!=a.search(Oj),c=Vj(a,Sj);c&&!b&&Sf(Error(a+" behavior is not consistent"));return c}
function Vj(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}function Zj(a){a=new K(a);Ue(a,document.location.protocol);Ve(a,document.location.hostname);document.location.port&&We(a,document.location.port);return a.toString()}function ak(a){a=new K(a);Ue(a,document.location.protocol);return a.toString()};var bk={},ck=0,dk=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",dk,void 0);function ek(a,b,c){a&&(c?a&&(a=J("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Zc(a).body.appendChild(a)):fk(a,b))}function fk(a,b){var c=new Image,d=""+ck++;bk[d]=c;c.onload=c.onerror=function(){b&&bk[d]&&b();delete bk[d]};c.src=a;c=eval("null")};function gk(a,b,c){N.call(this);this.g=a;this.o=b||0;this.j=c;this.k=x(this.It,this)}z(gk,N);f=gk.prototype;f.pa=0;f.K=function(){gk.J.K.call(this);this.stop();delete this.g;delete this.j};f.start=function(a){this.stop();this.pa=Zi(this.k,p(a)?a:this.o)};f.stop=function(){this.isActive()&&$i(this.pa);this.pa=0};f.isActive=function(){return 0!=this.pa};f.It=function(){this.pa=0;this.g&&this.g.call(this.j)};var hk={ma:function(a){a.reverse()},kT:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},uU:function(a,b){a.splice(0,b)}};function ik(a){a=a.split("");hk.kT(a,15);hk.kT(a,2);hk.uU(a,1);hk.ma(a,78);hk.uU(a,3);hk.ma(a,29);return a.join("")};function jk(){};var kk={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",272:"9",302:"9",303:"9",308:"9",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",277:"("};function lk(a,b,c,d,e,g,h){this.id=""+a;this.g=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.ha=h||0;this.j=c||null;this.video=d||null;this.A=e||null;this.k=g||null;this.o=kk[this.id.split(";")[0]]||""}function mk(a){return 2==a.g}function nk(a){return!(a.j&&a.video)}function ok(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function pk(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function qk(a,b,c,d){this.name=a;this.language=b;this.g=d}qk.prototype.toString=function(){return this.name};var rk={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function sk(a,b,c,d,e){this.width=a;this.height=b;if(!e)t:{for(e=2;e<tk.length;e++){var g=uk[tk[e]];if(a>g[0]&&b>=g[1]||a>=g[0]&&b>g[1]){e=tk[e-1];break t}}e="tiny"}this.quality=e;this.fps=c||0;this.g=d||0}var tk="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),uk={auto:[0,0],tiny:[256,144],light:[426,240],small:[426,240],medium:[640,360],large:[854,480],hd720:[1280,720],hd1080:[1920,1080],hd1440:[2560,1440],highres:[3840,2160]};function vk(a,b){this.start=a;this.end=b;this.length=b-a+1}function wk(a){a=a.split("-");return 2==a.length&&(a=new vk(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function xk(a,b){return new vk(a,a+b-1)}vk.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function yk(a,b){var c=He(a),d=c[6];if(d&&(d=d.match(new RegExp("(^|&)"+b+"=([^&]*)&?"))))return decodeURIComponent(d[2]);if(c=c[5])for(c=c.split("/"),c[c.length-1]||c.pop(),d=c.length-2;0<d;d-=2)if(c[d]==b)return decodeURIComponent(c[d+1])}
function zk(a,b){var c=He(a),d=c[6];d&&(d=d.replace(new RegExp("(^|&)"+b+"=[^&]*&?"),"$1"),"&"==d.charAt(d.length-1)&&(d=d.substring(0,d.length-1)));var e=c[5];if(e){e=e.split("/");e[e.length-1]||e.pop();for(var g=e.length-2;0<g;g-=2)if(e[g]==b){e.splice(g,2);break}e=e.join("/")}return Fe(c[1],c[2],c[3],c[4],e,d,c[7])}
function Ak(a,b,c){a=He(a);var d=!1,e=a[6];if(e){var g=new RegExp("((^|&)"+b+"=)[^&]*");0<=e.search(g)&&(e=e.replace(g,"$1"+c),d=!0)}if(g=a[5]){g=g.split("/");g[g.length-1]||g.pop();for(var h=g.length-2;0<h;h-=2)if(g[h]==b){g[h+1]=c;d=!0;break}g=g.join("/")}d||(e=e?e+"&"+b+"="+c:b+"="+c);return Fe(a[1],a[2],a[3],a[4],g,e,a[7])}function Bk(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=Ak(c,d,b[d]));return c};function Ck(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.g=a;this.sourceURL=d;this.startTime=b;this.V=e||null};function Dk(){this.$=[]}f=Dk.prototype;f.fh=function(a){return(a=Ek(this,a))?a.duration:0};f.Vi=function(a){return this.fh(a)};f.uh=function(){return this.$[0].g};f.yb=function(){return this.$[this.$.length-1].g};f.ae=function(){return this.$[this.$.length-1].endTime};f.eo=function(){return this.$[0].startTime};f.wh=function(){return 0};f.nh=function(a){return(a=Fk(this,a))?a.g:-1};f.Bo=function(a){return Ek(this,a).sourceURL};f.ve=function(a){return(a=Ek(this,a))?a.startTime:0};
f.dk=function(){return 0<this.$.length};function Ek(a,b){var c=Bb(a.$,new Ck(b,0,0,""),function(a,b){return a.g-b.g});return 0<=c?a.$[c]:null}function Fk(a,b){var c=Bb(a.$,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.$[c]:a.$[Math.max(0,-c-2)]}f.append=function(a){0!=a.length&&(a=wb(a),0==this.$.length?this.$=a:(1!=a[0].g-this.yb()&&rb(this.$),xb(this.$,a)))};function Gk(a,b){var c=nb(a.$,function(a){return a.g>=b},a);0<c&&a.$.splice(0,c)};function Hk(a){this.g=a;this.j=0;this.k=-1}var Ik=0;function Jk(a,b){this.index=null;this.info=b;this.g=null;this.A=this.k=!1;this.B=new Hk(a)}Jk.prototype.Yi=function(){return!1};Jk.prototype.Qb=function(){return!1};Jk.prototype.On=function(a){return[a]};Jk.prototype.Bg=function(a){return[a]};function Kk(a,b,c,d,e,g,h,k,l){this.g=b;this.V=c;this.type=a;this.o=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.k=h||0;this.j=0<=k?k:this.V?this.V.length:NaN;this.D=!!l;this.V?(this.B=this.k+this.j==this.V.length,this.A=this.startTime+this.duration*this.k/this.V.length,this.F=this.duration*this.j/this.V.length):(this.B=0!=this.j,this.A=this.startTime,this.F=this.duration);this.C=this.A+this.F}function Lk(a){return 1==a.type||2==a.type}
function Mk(a,b){return a.g==b.g&&a.V.start+a.k+a.j==b.V.start+b.k}function Nk(a){cb(1==a.length||lb(a,function(a){return!!a.V}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new vk(a[0].V.start+a[0].k,b.V.start+b.k+b.j-1)}function Ok(a){var b="i="+a.g.info.id+",s="+a.o;a.V&&(b=b+",r="+(a.V.start+a.k)+"-"+(a.V.start+a.k+a.j-1));return b=b+",t="+a.A.toFixed(1)+","+(a.A+a.F).toFixed(1)};function Pk(a,b){this.k=a[0].g.B;this.j=b||"";this.g=a;this.V=this.g[0].V&&0<this.g[0].j?Nk(this.g):null}function Qk(a){var b;if(nh(a.j))b=a.j;else{b=a.k.g;var c=a.j;if(c){b=b.split("?");var c=c.split("?"),d=[];b[1]&&d.push(b[1]);c[1]&&d.push(c[1]);d=d.join("&");b=b[0];c[0]&&(b=b+"/"+c[0]);b=d?b+"?"+d:b}}return a.V?Ak(b,"range",a.V.toString()):b}function Rk(a){if(a.V)return a.V.length;a=a.g[0];return Math.round(a.F*a.g.info.ha)};function Sk(a,b,c,d,e){Jk.call(this,a,b);this.index=e||new Dk;this.o=d||null;this.C=c;this.j=!0}z(Sk,Jk);f=Sk.prototype;f.Wi=function(){return!1};f.bn=function(){var a=new Kk(1,this,this.o);return[new Pk([a],this.C)]};function Tk(a,b){a.kf(b);return Uk(a,b.B?b.o+1:b.o,!1)}f.Dg=function(a,b){var c=this.index.nh(a);b&&(c=Math.min(this.index.yb(),c+1));return Uk(this,c,!0)};f.Pl=function(a){this.g=new Uint8Array(Vk(a).buffer)};f.Yi=function(){return!1};f.Qb=function(){return null!==this.g&&this.index.dk()};
f.kf=function(a){return this.index.yb()>a.o&&this.index.uh()<=a.o+1};f.update=function(a,b,c){this.index.append(a);Gk(this.index,c);this.j=b};function Uk(a,b,c){var d=a.index.Bo(b),e=a.index.ve(b),g=a.index.fh(b);c?g=c=0:c=0<a.info.ha?a.info.ha*g:1E3;a=new Kk(3,a,null,b,e,g,0,c,b==a.index.yb()&&!a.j&&0<c);return new Pk([a],d)};function Wk(a,b){var c=Xk(a,0,1836019558);if(!c)return null;var d=Xk(a,c.offset+8,1835427940),e=Xk(a,c.offset+8,1953653094);if(!d||!e)return null;var g=Xk(a,e.offset+8,1952868452),h=Xk(a,e.offset+8,1953658222),k=Xk(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=Xk(a,e.offset+8,1935763823),e=Xk(a,e.offset+8,1935763834);if(l){var n=Yk(l),r=Yk(l);if(0!=n||1!=r)return null;n=Yk(l)}for(var v=Yk(g),s=Yk(g),w=v&2,R=v&1?Zk(g):0,da=w?Yk(g):0,oa=v&8?Yk(g):0,r=v&16?Yk(g):0,Mj=v&32?Yk(g):0,v=Yk(h),
Xe=v&1,gn=v&4,Vs=v&256,g=v&512,FN=v&1024,GN=v&2048,v=Yk(h),HN=Xe?Yk(h):0,IN=gn?Yk(h):0,Xe=[],fB=[],Ws=[],Xs=[],gB=0,Dd=0,mb=0;mb<v;mb++){var JN=Vs?Yk(h):oa;g&&Xe.push(Yk(h));var Bc=Mj;gn&&0==mb?Bc=IN:FN&&(Bc=Yk(h));fB.push(Bc);Bc=GN?Yk(h):0;0==mb&&(gB=Bc);Ws.push(Dd+Bc);Xs.push(mb);Dd+=JN}Db(Xs,function(a,b){return Ws[a]-Ws[b]});h=[];for(mb=0;mb<v;mb++)h[Xs[mb]]=mb;Dd=w?4:0;mb=16*v;Bc=68+Dd+k.size+mb+(l?l.size:0)+(e?e.size:0);c=Bc-c.size;oa=new $k(Bc);al(oa,Bc);al(oa,1836019558);bl(oa,d);al(oa,Bc-
24);al(oa,1953653094);al(oa,16+Dd);al(oa,1952868452);al(oa,131072|(w?2:0));al(oa,s);w&&al(oa,da);bl(oa,k);al(oa,20+mb);al(oa,1953658222);al(oa,16781057);al(oa,v);al(oa,R+HN+c);for(mb=Dd=0;mb<v;mb++)k=h[mb],d=Math.round(b*k/v),k=Math.round(b*(k+1)/v)-d,Bc=d-Dd+gB,al(oa,k),al(oa,g?Xe[mb]:r),al(oa,fB[mb]),al(oa,Bc),Dd+=k;l&&(al(oa,l.size),al(oa,1935763823),al(oa,0),al(oa,1),al(oa,n+c));e&&bl(oa,e);return oa.data.buffer}
function Xk(a,b,c){for(;cl(a,b);){var d=dl(a,b);if(d.type==c)return d;b+=d.size}return null}function dl(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new el(a,b,c,d)}function fl(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function cl(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 el(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.g=8}
function Yk(a){var b=a.data.getInt32(a.offset+a.g);a.g+=4;return b}function Zk(a){var b=fl(a.data,a.offset+a.g);a.g+=8;return b}el.prototype.skip=function(a){this.g+=a};function $k(a){this.data=new DataView(new ArrayBuffer(a));this.g=0}function al(a,b){a.data.setInt32(a.g,b);a.g+=4}function bl(a,b){for(var c=0;c+4<=b.size;)al(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};function gl(a,b,c,d){this.info=a;this.buffer=b;this.V=c;this.g=d}function Vk(a){return a.V?new DataView(a.buffer,a.V.start,a.V.length):new DataView(a.buffer)}function hl(a){if(a.info.j!=a.V.length)return!1;if(1==a.info.g.info.g){if(8>a.info.j||4==a.info.type)return!0;var b=Vk(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.j&&1936286840==b;if(3==a.info.type&&0==a.info.k)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function il(a){var b;if(1==a.info.g.info.g){var c=NaN,d=NaN;b=0;for(a=new DataView(a.buffer);cl(a,b);){var e=dl(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)?fl(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 jl(){this.ba=0;this.g=new Float64Array(128);this.j=new Float64Array(128);this.o=1;this.k=!1}f=jl.prototype;f.wh=function(a){return this.g[a]};f.ve=function(a){return this.j[a]/this.o};f.fh=function(a){a=this.Vi(a);return 0<=a?a/this.o:-1};f.Vi=function(a){return a+1<this.ba||this.k?this.j[a+1]-this.j[a]:-1};f.uh=function(){return 0};f.yb=function(){return this.ba-1};f.ae=function(){return this.k?this.j[this.ba]/this.o:NaN};f.eo=function(){return 0};f.Bo=function(){return""};
f.nh=function(a){a=Bb(this.j.subarray(0,this.ba),a*this.o);return 0<=a?a:Math.max(0,-a-2)};f.dk=function(){return 0<=this.yb()};function kl(a){if(a.g.length<a.ba+1){var b=2*a.g.length,b=b+2,c=a.g;a.g=new Float64Array(b+1);var d=a.j;a.j=new Float64Array(b+1);for(b=0;b<a.ba+1;b++)a.g[b]=c[b],a.j[b]=d[b]}}function ll(a,b){this.j=a;this.g=0;this.k=b||0}function ml(a){for(var b=nl(a,!1);236==b;)ol(a),b=nl(a,!1);return b}
function pl(a){var b=nl(a,!0),c=a.j.byteOffset+a.g,d=Math.min(b,a.j.buffer.byteLength-c),c=new DataView(a.j.buffer,c,d),c=new ll(c,a.k+a.g);a.g+=b;return c}function ql(a){for(var b=nl(a,!0),c=rl(a),d=1;d<b;d++)c=(c<<8)+rl(a);return c}function ol(a){var b=nl(a,!0);a.g+=b}function nl(a,b){var c=rl(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+rl(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+rl(a),e*=128;return b?c-e:c}function rl(a){return a.j.getUint8(a.g++)};function sl(a,b,c,d,e,g){Jk.call(this,a,b);this.initRange=c;this.indexRange=d;this.o=null;this.index=new jl;this.j=e;this.lastModified=g}z(sl,Jk);f=sl.prototype;f.Qb=function(){return!(!this.g||!this.index.dk())};
f.bn=function(a){var b=new Kk(1,this,this.initRange),c=new Kk(2,this,this.indexRange),d=[],e=[b];Mk(b,c)?e.push(c):(d.push(new Pk([c])),a=0);isNaN(this.j)?a=0:a>this.j&&(a=this.j);b=e[e.length-1];c=b.V.end-e[0].V.start+1;a>c&&(a=xk(b.V.end+1,a-c),e.push(new Kk(4,this,a)));d.push(new Pk(e));return d};
f.Pl=function(a){if(1==a.info.type){if(this.g)return;this.g=new Uint8Array(a.buffer,a.V.start,a.V.length)}else if(2==a.info.type){if(this.o||0<=this.index.yb())return;if(1==this.info.g){var b=this.index,c=Vk(a),d=a.info.V.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.o=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=(c.getUint32(a,!1)<<32)+c.getUint32(a+4,!1),h=(c.getUint32(a+8,!1)<<32)+c.getUint32(a+12,!1),a+=16);b.g[0]=h+(e+d);b.j[0]=g;b.k=
!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.ba++;kl(g);g.g[g.ba]=g.g[g.ba-1]+k;g.j[g.ba]=g.j[g.ba-1]+h}}else this.o=Vk(a)}if(mk(this.info)&&this.g&&this.o){c=new DataView(this.g.buffer,this.g.byteOffset,this.g.byteLength);b=this.index;g=this.o;c=new ll(c);if(440786851==ml(c)&&(ol(c),408125543==ml(c))){d=c;e=d.g;a=nl(d,!0);d.g=e;for(var c=pl(c),d=c.k+c.g,l=ml(c);357149030!=l;)ol(c),l=ml(c);c=pl(c);h=1E6;k=1E9;for(e=0;!(c.g>=c.j.byteLength);)if(l=
ml(c),2807729==l)h=ql(c);else if(2807730==l)k=ql(c);else if(17545==l){var e=c,l=nl(e,!0),n=0;4==l?n=e.j.getFloat32(e.g):8==l&&(n=e.j.getFloat64(e.g));e.g+=l;e=n}else ol(c);b.o=k/h;c=new ll(g);if(475249515==ml(c)){for(c=pl(c);!(c.g>=c.j.byteLength);)if(l=ml(c),187==l){g=pl(c);h=d;if(179!=ml(g))k=null;else if(k=ql(g),183!=ml(g))k=null;else{g=pl(g);for(l=h;!(g.g>=g.j.byteLength);)241==ml(g)?l=ql(g)+h:ol(g);k=[l,k]}g=b;h=k[0];k=k[1];kl(g);g.g[g.ba]=h;g.j[g.ba]=k;g.ba++}else ol(c);c=a+d;a=e;kl(b);b.k=
!0;b.j[b.ba]=a;b.g[b.ba]=c}}this.o=null}};function tl(a,b,c,d){for(var e=[];b<=a.index.yb();b++){var g;g=a.index;var h=b;g=xk(g.wh(h),h+1<g.ba||g.k?g.g[h+1]-g.g[h]:-1);var h=a.index.ve(b),k=a.index.fh(b),l=Math.max(0,c-g.start),n=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Kk(3,a,g,b,h,k,l,n,b==a.index.yb()&&l+n==g.length));if(g.start+l+n>=c+d)break}return new Pk(e)}
f.On=function(a){for(var b=this.Bg(a.info),c=[],d=a.g,e=0;e<b.length;e++){var g=xk(b[e].V.start+b[e].k-a.info.V.start+a.V.start,b[e].j);c.push(new gl(b[e],a.buffer,g,d));d=!1}return c};f.Bg=function(a){for(var b=0;b<this.index.yb()&&a.V.start>=this.index.wh(b+1);)b++;return tl(this,b,a.V.start,a.V.length).g};f.kf=function(a){return this.Qb()?!0:isNaN(this.j)?!1:a.V.end+1<this.j};
function ul(a,b,c){a.kf(b);if(!a.Qb())return c=xk(b.V.end+1,c),c.end+1>a.j&&(c=new vk(c.start,a.j-1)),a=[new Kk(4,b.g,c)],new Pk(a);4==b.type&&(b=a.Bg(b),b=b[b.length-1]);var d=0,e=b.V.start+b.k+b.j;3==b.type&&(d=b.o,e==b.V.end+1&&(d+=1));return tl(a,d,e,c)}f.Dg=function(a,b){var c=this.index.nh(a);b&&(c=Math.min(this.index.yb(),c+1));return tl(this,c,this.index.wh(c),0)};f.Yi=function(){var a;if(a=this.Qb()&&!isNaN(this.j))a=this.index,a=(a.k?a.g[a.ba]:-1)!=this.j;return a};f.Wi=function(){return!0};function vl(a,b,c){this.j=b;this.g=c;this.k=a}function wl(a){Ch.call(this);this.D=this.duration=0;this.isLive=this.o=!1;this.G=y();this.B=Infinity;this.g={};this.H=a||"";this.I=this.F=0;this.A=null;this.C=!1;this.j=this.k=0}z(wl,Ch);wl.prototype.getErrorCode=function(){return 3>this.j?"manifest.net":"manifest.net.retryexhausted"};function xl(a){return bc(a.g,function(a){return!!a.info.k},a)}var yl=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function zl(a,b){var c=new wl;C(a,function(a){var e=a.type,g=a.itag,h=null;pk(e)&&(h=a.size.split("x"),h=new sk(+h[0],+h[1],+a.fps));var k=null,l=null;ok(e)&&(k=new jk,a.name&&(l=new qk(a.name,a.lang,0,"1"==a.isDefault)));a.xtags&&(g=a.itag+";"+a.xtags);var n=parseInt(a.bitrate,10)/8,r=null;b&&a.drm_families&&(r={},C(a.drm_families.split(","),function(a){r[a]=b[a]}));e=new lk(g,e,k,h,l,r,n);h=wk(a.init);k=wk(a.index);l=Al(a.url,e,a.s);n=parseInt(a.clen,10);a=parseInt(a.lmt,10);l&&(c.g[g]=new sl(l,
e,h,k,n,a))});return c}function Bl(a){if(!a)return 0;var b=yl.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function Cl(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 Dl(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 Al(a,b,c){if(!a||-1==a.search(Nj))return"";var d={alr:"yes",ratebypass:"yes"};yk(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=ik(c));return Bk(a,d)}
function El(a){var b=Cl(a,"id"),b=b.replace(":",";");"captions"==b&&(b=Cl(a,"lang"));var c=Cl(a,"mimeType"),d=Cl(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(Cl(a,"bandwidth"),10)/8,e=null;pk(c)&&(e=new sk(parseInt(Cl(a,"width"),10),parseInt(Cl(a,"height"),10),parseInt(Cl(a,"frameRate"),10)));var g=null,h=null;if(ok(c)){g=new jk;var h=Cl(a,"lang")||"",k=Dl(a,"Role");if(k){var k=Cl(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 qk(Cl(a,"yt:langName")||h+" - "+l,h,0,"original"==l):null}else h=null}k=null;if(a=Dl(a,"ContentProtection"))if((k=a.attributes.schemeIdUri)&&"http://_old_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 lk(b,c,g,e,h,k,d)}
function Fl(a,b,c,d){a.k=1;b=b||a.H;a={format:"RAW",method:"GET",nc:x(a.L,a,c,d||null)};xh(b,a)}
wl.prototype.L=function(a,b,c){this.I=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.B=1E3*Bl(Cl(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.B;this.o=!0;this.D=parseInt(Cl(c,"yt:earliestMediaSequence"),10);var d=c.getElementsByTagName("SegmentTimeline")[0];c=[];var e=+Cl(d,"timescale")||1,g=this.isLive?
+Cl(d,"startNumber"):0,h=0,k=1;null!=this.A&&(k=this.A,h=k.j+k.g,k=g-k.k);d=d.getElementsByTagName("S");for(k=0<k?0:-k+1;k<d.length;k++){var l=d[k].getAttribute("d")/e;c.push(new vl(g+k,h,l));h+=l}0<c.length&&(this.A=db(c));for(e=0;e<b.length;e++){g=El(b[e]);this.g[g.id]||(h=Al(Dl(b[e],"BaseURL").textContent,g),k=Dl(b[e],"Initialization"),d=Cl(k,"sourceURL"),k=wk(Cl(k,"range")),this.g[g.id]=new Sk(h,g,d,null===k?void 0:k));h=c;d=Dl(b[e],"SegmentList").getElementsByTagName("SegmentURL");if(h&&0!=h.length){k=
[];for(l=d.length-h.length;l<d.length;l++){var n=h[l],r=n.k,v=n.j,n=n.g,s=d[l],w=s.getAttribute("media"),R=null,s=s.getAttribute("mediaRange");null!=s&&(0<=parseInt(s.split("-")[1],10)?R=wk(s):w=w+"?range="+s);k.push(new Ck(r,v,n,w,R))}h=k}else h=[];this.g[g.id].update(h,this.isLive,this.D)}}else i:for(this.duration=Bl(Cl(c,"mediaPresentationDuration")),c=0;c<b.length;c++){d=b[c];e=El(d);h=Dl(d,"BaseURL");g=Al(h.textContent,e);k=Dl(d,"SegmentBase");d=wk(k.attributes.indexRange.value);k=wk(k.getElementsByTagName("Initialization")[0].attributes.range.value);
h=parseInt(h.getAttribute("yt:contentLength"),10);e=new sl(g,e,k,d,h,NaN);if(!e)break i;this.g[e.info.id]=e}this.G=y();this.k=2;this.C=!1;this.j=0;a&&a(this);this.publish("loaded")}else this.k=3,this.C?this.j+=1:this.C=!0,b&&b(c),this.publish("load_error")};function Gl(a){for(var b in a.g)if(a.g[b].index)return a.g[b].index.ae();return NaN}function Hl(a){for(var b in a.g)if(a.g[b].index)return a.g[b].index.eo();return 0}function Il(a,b){$b(a.g,function(a){a=a.B;a.g=Bk(a.g,b)})};function Jl(a,b,c){this.j=a||0;this.g=b||0;this.k=c}Jl.prototype.equals=function(a){return this.j==a.j&&this.g==a.g&&this.k==a.k};function Kl(a,b,c){return new Jl(rk[a]||0,rk[b]||0,c)}var Ll=Kl("auto","large",!1),Ml=Kl("auto","auto",!1);function Nl(a){var b=rk.auto;return a.j==b&&a.g==b}function Ol(a){return a.k&&!!a.j&&a.j==a.g}
function Pl(a,b){if(b.k&&Nl(b))return Ml;if(b.k||Nl(a))return b;if(a.k||Nl(b))return a;var c=a.j&&b.j?Math.max(a.j,b.j):a.j||b.j,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g,c=Math.min(c,d);return c==a.j&&d==a.g?a:new Jl(c,d,!1)}Jl.prototype.o=function(a){if(!a.video)return!1;a=rk[a.video.quality];return this.j<=a&&(!this.g||this.g>=a)};function Ql(a,b){this.j=a;this.g=b||null}function Rl(a,b){var c=b||Ml,c=hb(a.j,x(c.o,c)),c=ib(c,function(a){return a.video.quality});Ab(c);return c};function Sl(a,b,c){a=c.split("#");this.k=parseInt(a[1],10);this.rows=parseInt(a[4],10);this.j=a[6]}Sl.prototype.getHeight=function(){return this.k};Sl.prototype.g=function(){};function Tl(a,b){this.g=this.j(a,b);1<this.g.length&&-1!=this.g[0].j.indexOf("default")&&this.g.splice(0,1)}Tl.prototype.j=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.k(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};Tl.prototype.k=function(a,b,c){return new Sl(0,0,c)};Tl.prototype.o=function(){};function Ul(a,b,c){a=c.split("#");c=[a[1],a[2],0,a[3],a[4],-1,a[0],""].join("#");Sl.call(this,0,0,c)}z(Ul,Sl);Ul.prototype.g=function(){};function Vl(a){Tl.call(this,a,0)}z(Vl,Tl);Vl.prototype.j=function(a,b){return Vl.J.j.call(this,"$N|"+a,b)};Vl.prototype.k=function(a,b,c){return new Ul(0,0,c)};Vl.prototype.o=function(a){for(var b=0;b<this.g.length;b++)this.g[b].g(a)};var Wl={AB:1,BB:2,CB:3};var Xl,Yl;var Zl=uc,Zl=Zl.toLowerCase();if(La(Zl,"android")){var $l=Zl.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if($l)Xl=Number($l[1]);else{var am={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},bm=Zl.match("("+fc(am).join("|")+")");Xl=bm?am[bm[0]]:0}}else Xl=void 0;Yl=0<=Xl;var cm=yg||zg;function dm(){return em("(ps3; leanback shell)")}function fm(){return em("safari/")&&em(" version/8")}function em(a){var b=uc;return b?0<=b.toLowerCase().indexOf(a):!1};var gm;function hm(){var a=t("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function im(){if(2.2==Xl)return!0;var a=hm();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 jm(){if(void 0==gm&&(gm=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);gm=!0}catch(b){}if(gm){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=y(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function km(){for(var a=jm(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function lm(){return ib(jm(),function(a){return(a&15).toString(16)}).join("")};function mm(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Pe(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function Q(a,b){return void 0==b?a:"1"==b?!0:!1}function nm(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function om(a,b){return void 0==b?a:Number(b)}function S(a,b){return void 0==b?a:b.toString()}function pm(a,b){var c=S(a,b);c&&(c=Zj(c));return c}var qm=/^([0-9\.]+)\:([0-9\.]+)$/;function rm(a){if(a&&(a=a.match(qm))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function sm(a,b){var c=rk.auto,d=rk[b];return d>=rk.medium?new Jl(d,c,!1):d>=c?new Jl(c,d,!1):a};var tm,um,vm;var wm=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},xm=x(wm.clearResourceTimings||wm.webkitClearResourceTimings||wm.mozClearResourceTimings||wm.msClearResourceTimings||wm.oClearResourceTimings||ba,wm),ym=wm.mark?function(a){wm.mark(a)}:ba;function zm(a,b,c){Am(c).tick[a]=b||y();b||ym(a)}function Bm(a,b){var c=Am(b).tick;return a in c}function Cm(a,b,c){Am(c).info[a]=b}
function Dm(a){Nf("EXP_DEFER_CSI_PING")&&(Qf(vm),um=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];ek(b+"?"+c.substring(1))}function Em(a){um&&(a&&(um.yt_fss=a),Dm(um))}function Am(a){return t("ytcsi."+(a||"")+"data_")||Fm(a)}function Fm(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var Gm,Hm;var Im=uc,Jm=Im.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Jm||2>Jm.length)Gm=void 0;else{var Km=Im.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Gm=Km&&6==Km.length?Number(Km[5].replace("_",".")):0}(Hm=0<=Gm)&&0<=uc.search("Safari")&&uc.search("Version");var Lm={zB:0,VA:1,pB:2};var Mm=[.25,.5,1,1.25,1.5,2];function Nm(a,b,c){this.errorCode=a;this.j=b;this.g=c||""};function Om(a){this.experimentIds=(a||"").split(",");var b={};C(this.experimentIds,function(a){b[a]=!0});this.N=!!b["930401"];this.ja=!!b["913424"];this.o=!!b["932250"];this.Ta=!!b["945066"];this.B=!!b["945069"];this.O=!!b["945071"]||!!b["945072"];this.P=!!b["945073"];this.aa=!!b["945074"];this.da=!!b["945078"];this.F=!!b["945079"];this.C=!!b["945080"];this.g=!!b["945081"];this.G=!!b["945082"];this.D=!!b["945083"];this.j=!!b["938697"];this.k=!!b["936926"];this.Y=!!b["927877"];this.W=!!b["939937"];
this.L=!!b["953500"];this.A=!!b["907259"];this.I=!!b["953903"]||!!b["953910"]||!!b["953912"]||!!b["953911"];this.spherical=!!b["951503"];this.U=!!b["930676"]||!!b["930677"];this.R=!!b["943603"]||!!b["943604"]||!!b["943605"]||!!b["943606"]||!!b["943607"];this.ua=!!b["909722"];this.Z=!!b["934040"];this.H=!!b["957105"]};function Pm(a,b,c){this.j=a;this.g=b;this.k=c}var Qm={playready:["com._old_youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},Rm=["widevine","playready"];function Sm(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}
function Tm(a,b,c){var d,e=Sm();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<Rm.length;g++){var h=Rm[g];if(c[h])for(var k=Qm[h],l=0;l<k.length;l++){var n=k[l];if(d(b,n)||0==b.indexOf("audio/mp4")&&"widevine"==h&&a.canPlayType(b)&&a.canPlayType('video/mp4; codecs="avc1"',n))return new Pm(h,n,c[h])}}return null};function Um(a){return(a=a.exec(uc))?a[1]:""}var Vm=function(){if(wg)return Um(/Firefox\/([0-9.]+)/);if(H||Fc)return Pc;if(Bg)return Um(/Chrome\/([0-9.]+)/);if(Cg)return Um(/Version\/([0-9.]+)/);if(yg||zg){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(uc))return a[1]+"."+a[2]}else{if(Ag)return(a=Um(/Android\s+([0-9.]+)/))?a:Um(/Version\/([0-9.]+)/);if(xg)return Um(/Camino\/([0-9.]+)/)}return""}();function Wm(a,b){this.g=a;this.k=b;this.o=0;Object.defineProperty(this,"timestampOffset",{get:this.cv,set:this.dv});Object.defineProperty(this,"buffered",{get:this.av})}f=Wm.prototype;f.append=function(a){this.g.webkitSourceAppend(this.k,a)};f.abort=function(){this.g.webkitSourceAbort(this.k)};f.av=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new Xm:this.g.webkitSourceBuffered(this.k)};f.cv=function(){return this.o};
f.dv=function(a){this.o=a;this.g.webkitSourceTimestampOffset(this.k,a)};function Xm(){this.length=0};function Ym(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.j=NaN;this.k=0;Object.defineProperty(this,"duration",{get:this.ou,set:this.ru});Object.defineProperty(this,"readyState",{get:this.pu});this.g.addEventListener("webkitsourceclose",x(this.qu,this),!0)}f=Ym.prototype;f.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};f.Su=function(){return this.g.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.k++).toString();this.g.webkitSourceAddId(b,a);a=new Wm(this.g,b);this.sourceBuffers.push(a);return a};f.pu=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};f.endOfStream=function(a){var b=this.g.EOS_NO_ERROR;"network"==a?b=this.g.EOS_NETWORK_ERR:"decode"==a&&(b=this.g.EOS_DECODE_ERR);this.g.webkitSourceEndOfStream(b)};f.qu=function(){rb(this.sourceBuffers)};
f.ou=function(){return this.j};f.ru=function(a){this.j=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};function Zm(a){this.o=[];this.G=a||null}function $m(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}Zm.prototype.listen=function(a,b,c){c=x(c,this.G||this);a.addEventListener(b,c,!1);this.o.push(a,b,c)};Zm.prototype.removeAll=function(){if(this.o)for(;this.o.length;){var a=this.o.shift(),b=this.o.shift(),c=this.o.shift();a.removeEventListener&&a.removeEventListener(b,c)}};Zm.prototype.fa=function(){return null===this.o};Zm.prototype.dispose=function(){this.removeAll();this.o=null};function an(a,b,c,d){Zm.call(this);this.k=this.g=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Ym(a);this.B="";this.C=null;$m(this,this.j,["sourceopen","webkitsourceopen"],ra(this.F,d,c));$m(this,this.j,["sourceclose","webkitsourceclose"],this.D)}z(an,Zm);function bn(a,b){a.C=b}function cn(a){if(!a.B){var b;b=a.j;b=b.Su?b.g.webkitMediaSourceURL:window.URL.createObjectURL(b);a.B=b}return a.B}
function dn(a){return"open"==a.j.readyState}function en(a){return"closed"==a.j.readyState}function fn(a){return a.g.updating||a.k.updating}function hn(a){return a.g?!!a.g.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}an.prototype.F=function(a,b){isNaN(this.A)||(this.j.duration=this.A,this.A=NaN,this.g=this.j.addSourceBuffer(a),this.k=this.j.addSourceBuffer(b),this.C&&(this.C(this),this.C=null))};an.prototype.D=function(){this.dispose()};
an.prototype.dispose=function(){var a=this.B;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.B="";an.J.dispose.call(this)};function jn(a){if(/opus/.test(a)&&Bg&&!(0<=Ua(Vm,"38")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!em("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!hm().canPlayType(a)};function kn(a,b){this.k=a;this.g=b;this.j={}}function ln(a){return a.g?a.k:Pe(a.k,a.j)};function mn(a,b){this.g=new kn(a,!1);this.Je=b}var nn="9h8(H*".split(""),on="h98(H*".split(""),pn="oMavAV".split("");mn.prototype.getInfo=function(){return this.Je};var qn={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},rn={"application/x-mpegURL":"maybe"},sn={"application/x-mpegURL":"maybe"};
function tn(a,b){if(!im())return[];var c=un(a,b);a=!c.length&&b?un(a,!1):c;for(var d={},c=hm(),e=0;e<a.length;e++){var g=a[e];if(vn(c,g.getInfo().mimeType)&&!wn(g)){var h=g.Je.video.quality;if(!d[h]||mk(d[h].getInfo()))d[h]=g}}var k=[];C(tk,function(a){(g=d[a])&&k.push(g)});return k}function vn(a,b){var c;if(!(c=a.canPlayType(b))){var d;zg?d=sn[b]:2.2==Xl?d=qn[b]:em("android")&&em("chrome")&&(d=rn[b]);c=d||""}return c}function wn(a){return a.Je.id in xn||dm()&&"5"==a.Je.id}
function yn(){return em("android")&&em("chrome")&&!Rc(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var xn={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function zn(a){var b=[];C(a,function(a){a.url&&b.push(An(a.url,a.type,"medium","0"))});return b}function An(a,b,c,d,e){var g=new jk,h=uk[c];h||(c="small",h=uk.small);c=new sk(h[0],h[1],0,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new mn(a,new lk(d,b,g,c))}
function un(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=Gc&&0!=e.Je.video.g)g=1==e.getInfo().g;g||0!=e.Je.video.g==b&&c.push(e)}return c}function Bn(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||ik(e.s);e.url=oh(e.url,{signature:g})}e.url&&c.push(An(e.url,e.type,e.quality,e.itag,e.stereo3d))}return tn(c,!!b)}function Cn(a){a=zn(a);return tn(a,!1)}
function Dn(a,b){if(!b.g)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(rk[d.video.quality]<=b.g)return a[c]}return a[a.length-1]}
function En(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.g)if(264!=e&&138!=e){var g=a.g[e];if(jn(g.info.mimeType)){if(g.info.k){d||(d=hm());if(!Tm(d,g.info.mimeType,g.info.k))continue;if(261==g.info.id&&(dm()||!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=nn;if(em("cros armv7")||em("windows nt 5.1"))a=on;d=D(a,b);a=D(pn,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},
g=jb(c["9"],e,0),jb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];Db(d,function(a,b){return b.video.width-a.video.width||b.ha-a.ha});Db(a,function(a,b){return b.ha-a.ha});return new Ql(d,a)};function Fn(a){Ch.call(this);this.Ba=new G(0,0);this.ta=this.U=!1;this.cb="";this.fb=this.ja=!1;this.zo=new gk(this.yo,5E3,this);O(this,this.zo);this.L=[];this.o={};this.keywords={};this.A={};Gn(this,a)}z(Fn,Ch);Fn.B=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Fn.g=1;Fn.k=-21;Fn.o=18E3;Fn.A="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(" ");
Fn.j=["www._old_youtube.com","manifest.googlevideo.com"];f=Fn.prototype;f.jj=!1;f.adaptiveFormats="";f.ln=null;f.Yv=!0;f.wb=!1;f.Jf="";f.Lj="";f.Ph=!1;f.Bm=Fn.g;f.$f=null;f.$v=null;f.author="";f.fg=0;f.yi=!1;f.un=3;f.jn=!1;f.ke="";f.xa="";f.contentCheckOk=!1;f.ad=0;f.ji=!1;f.jg=!1;f.bi=!1;f.de=0;f.se=!1;f.Qk=!1;f.Zf=0;f.nk=!1;f.Ne=!1;f.Nk=!0;f.ig=!1;f.fj=!1;f.oi=!1;f.Sa=!1;f.gj=!1;f.pj=!1;f.Hc=!1;f.nl=!1;f.hj=!1;f.Br=0;f.lengthSeconds=0;f.Hh=0;f.ro=!1;f.racyCheckOk=!1;f.cj=!1;f.xj=Ml;f.Ll=0;f.gi=!1;
f.startSeconds=0;f.to=2;f.Xd=Ml;f.Zv=!1;f.gd=null;f.title="";f.Sd="";f.xh=null;f.Jh="vvt";f.mi=!1;f.Ok=!1;f.clipStart=0;f.clipEnd=Infinity;
function Hn(a,b){var c=b||{};c.iv_invideo_url&&(a.Jf=Zj(c.iv_invideo_url));c.iv_cta_url&&(a.Lj=Zj(c.iv_cta_url));c.cta_conversion_urls&&(a.Ra=c.cta_conversion_urls);a.author=S(a.author,c.author);a.yi=Q(a.yi,c.cc_asr);var d=c.ttsurl||a.ke;d&&Uj(d)?a.ke=d:a.ke=pm(a.ke,c.ttsurl);a.xa=S(a.xa,c.cpn);a.subscribed=S(a.subscribed,c.subscribed);a.to=nm(a.to,c.sentiment,Lm);a.title=S(a.title,c.title);a.Sm=S(a.Sm,c.ypc_preview);a.ro=Q(a.ro,c.paygated);a.mi=Q(a.mi,c.requires_purchase);c.keywords&&(a.keywords=
In(c.keywords));c.rvs&&(a.Ju=Jn(c.rvs));a.contentCheckOk=Q(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Q(a.racyCheckOk,"1"==c.rco);a.B=S(a.B,c.oauth_token);C(Fn.A,function(a){a in c&&(this.o[a]=c[a])},a)}
function Gn(a,b){var c=b||{};a.wb="1"!=c.hlsdvr||Cg||zg&&5>Gm?!1:!0;a.Ph="1"==c.infringe||"1"==c.muted;a.eb=c.authkey;a.Fb=c.authuser;a.xa||(a.xa=c.cpn||km());a.Vp=y();a.Dp=c.t;a.ji=Q(a.ji,c.cenchd);a.jg=Q(a.jg,c.enable_cardio);a.bi=Q(a.bi,c.enable_cardio_before_playback);a.de=om(a.de,c.end||c.endSeconds);a.ka=S(a.ka,c.itct);a.Nk="1"!=c.no_get_video_log;a.ig="1"==c.tmi;a.fj=Q(a.fj,c.noiba);a.oi="1"==c.livemonitor;a.Sa="1"==c.live_playback;a.gj=Q(a.gj,c.mdx);a.pj=Q(a.pj,c.on3g);a.hj=Q(a.hj,c.utpsa);
a.Jc=c.iurlmaxres_webp||c.iurlmaxres;a.C=S(a.C,c.vvt);a.Kr=c.osig;a.Vf=c.ptchn;a.Wf=c.oid;a.I=c.ptk;a.Xf=c.pltype;a.D=c.plid;a.F=c.eventid;a.Ca=c.osid;a.$o=c.of;a.playlistId=S(a.playlistId,c.list);a.Yf=c.pyv_view_beacon_url;a.jr=c.pyv_quartile25_beacon_url;a.kr=c.pyv_quartile50_beacon_url;a.lr=c.pyv_quartile75_beacon_url;a.ir=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.sm=c.sdetail;!a.wa&&c.session_data&&(a.wa=jh(c.session_data,"&").feature);a.Yb=1==om(a.Yb?1:0,c.is_fling);a.Ia=S(a.Ia,c.ctrl);a.Ka=S(a.Ka,c.ytr);a.Qn=c.iurlsd_webp||c.iurlsd;a.Ok="1"==c.skip_kansas_logging;a.Ja=S(a.Ja,c.cl);a.xj=sm(a.xj,c.vq);a.Xd=sm(a.Xd,c.suggestedQuality);a.ry=c.approx_threed_layout||0;a.Zv="1"==c.threed_converted;a.thumbnailUrl=c.iurl_webp||c.iurl;a.startSeconds=om(a.startSeconds,c.start||c.startSeconds);a.mk=Q(a.mk,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||a.videoId;
a.lk=S(a.lk,c.vss_credentials_token);a.Jh=S(a.Jh,c.vss_credentials_token_type);Kn(a,c.watermark);a.El=S(a.El,c.ypc_gid);a.Fl=S(a.Fl,c.ypc_license_session_token);a.heartbeatToken=S(a.heartbeatToken,c.heartbeat_token);a.ub=om(a.ub,c.heartbeat_interval);a.vb=om(a.vb,c.heartbeat_retries);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.jj=!0,"1"==c.ad_preroll&&a.L.push("ad")):"1"!=c.supported_without_ads&&(a.Qk=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.W=c.atc);
c.license_info&&(a.ln=Ln(c.license_info));c.allow_embed&&(a.Yv="1"==c.allow_embed);c.autonav&&(a.nk="1"==c.autonav);c.autoplay&&(a.Ne="1"==c.autoplay);c.iv_load_policy&&(a.aa=Mn(c.iv_load_policy,a.aa));c.cc_load_policy&&(a.un=Mn(c.cc_load_policy,2));"0"==c.dash&&(a.jn=!0);if(c.dashmpd){a.O=Pe(c.dashmpd,{cpn:a.xa});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=ik(e[1]),a.O=a.O.replace(d,"/signature/"+e))}c.delay&&(a.ad=Za(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.L.push("fresca");
c.idpj&&(a.Zf=Za(c.idpj));c.url_encoded_fmt_stream_map&&(a.Sd=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.R=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Za(c.length_seconds));c.ldpj&&(a.Hh=Za(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Bm=Nn(a));c.partnerid&&(a.da=Za(c.partnerid));c.probe_url&&(a.probeUrl=ak(Pe(c.probe_url,{cpn:a.xa})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Kj)&&(a.Y=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Kj)&&(a.Z=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&
(d=c.video_masthead_ad_quartile_urls,a.oa=d.quartile_0_url,a.Gc=d.quartile_25_url,a.Pd=d.quartile_50_url,a.Qd=d.quartile_75_url,a.Ic=d.quartile_100_url);c.spacecast_address&&(a.L.push("spacecast"),a.qy=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Sa||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.Sk=c.threed_module,a.ys=6);c.two_stage_token&&(a.$f=c.two_stage_token);c.url_encoded_third_party_media&&(a.gd=Jn(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.$v=c.watch_ajax_token);
c.ypc_module&&a.L.push("ypc");a.Mk=S(a.Mk,c.ucid);C("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.A[a]=c[a])},a);a.A.focEnabled=Q(a.A.focEnabled,c.focEnabled);a.A.rmktEnabled=Q(a.A.rmktEnabled,c.rmktEnabled);a.o=c;Hn(a,c);On(a)}function On(a){(a.Sa||a.oi)&&"1"==a.o.as3fb||!yn()||a.jn||(a.adaptiveFormats?a.j=zl(Pn(a,a.adaptiveFormats),a.ln):a.O&&(a.se=!0,a.U=!0))}
f.zt=function(a){this.fa()||(this.j=a,zm("mrc"),this.j&&(this.lengthSeconds=this.j.duration||Gl(this.j)||this.lengthSeconds),this.tj())};f.tj=function(){this.fa()||(this.se=!1,this.ja&&!Qn(this)?this.publish("dataloaderror",new Nm("fmt.noneavailable",!0)):this.publish("dataloaded",this.o))};
function Rn(a,b){if(!a.fa()){a.k=null;a.P=null;a.H=null;if(a.Aa){var c=Pn(a,a.Aa);a.H=Bn(c,!1);a.k=new Ql(ib(a.H,function(a){return a.getInfo()}))}!a.k&&a.j&&(a.k=En(a.j));if(!a.k){if(a.gd&&a.nl)a.H=Cn(a.gd);else{c=Pn(a,a.Sd);!em("(ps4; leanback shell)")||b&&b.Z||(c=[]);if(a.R){var d=mm(a.R,a.xa,!a.pj);c.push(d)}a.H=Bn(c,!!a.Sk||!1)}a.H.length&&(a.k=new Ql(ib(a.H,function(a){return a.getInfo()})))}a.Ll=Math.min(.8*a.lengthSeconds,180)}}function Sn(a){return a.g&&a.g.k||null}
function Tn(a,b){return u(a.keywords[b])?a.keywords[b]:null}function Un(a){return a.j&&!isNaN(Hl(a.j))?Hl(a.j):0}function Vn(a){return!a.fa()&&!(!a.videoId&&!a.gd)}function Qn(a){return Vn(a)&&!a.se&&!a.U&&(!!(a.j||a.Sd||a.gd||a.Aa||a.R)||E(a.L,"fresca")||E(a.L,"ypc"))}function Wn(a,b,c){a.fa()||(a.cb=b,a.ja=!!c,a.se=!0,a.yo())}f.yo=function(){xh(this.cb,{format:"RAW",method:"GET",context:this,mc:this.Kx,onError:this.Jo});zm("vir")};
f.Kx=function(a){if(!this.fa()){var b=a.responseText;b?(this.se=!1,a=lh(b),"fail"==a.status?this.publish("onStatusFail",a):(zm("virc"),Gn(this,a),this.tj())):this.Jo(a)}};f.Jo=function(a){if(!this.fa()){var b="manifest.net",c=!0,d="rc."+a.status;this.ja&&(this.fb?b="manifest.net.retryexhausted":(this.fb=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.zo.start()));this.publish("dataloaderror",new Nm(b,c,d))}};
function Nn(a){return a.perceptualLoudnessDb?(a=Math.min(Fn.k-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):Fn.g}function Mn(a,b){var c=parseInt(a,10);return hc(Wl,c)?c:b}function Jn(a){a=a.split(",");return a=a.map(function(a){return lh(a)})}function Pn(a,b){var c=Jn(b);C(c,function(a){a.url&&(a.url=Pe(a.url,{cpn:this.xa}))},a);return c}function In(a){var b={};C(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}
function Kn(a,b){if(b){var c=b.split(",");2<=c.length&&(a.gg=c[1],-1!=a.gg.search(Fn.B)&&(a.gg=""))}}function Ln(a){a=Jn(a);var b={};C(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function Xn(a,b){return!!a.o[b]}function Yn(a){return a.Sa&&!a.wb}function Zn(a){return a.Sa&&a.wb};function $n(a,b){this.type=a||"";this.id=b||""}function ao(a){return new $n(a.substr(0,2),a.substr(2))}$n.prototype.toString=function(){return this.type+this.id};function bo(a){Ch.call(this);this.views=0;this.g=[];this.j=[];this.Ha=Math.max(0,a.index||0);this.Ae=!!a.loop;this.startSeconds=a.startSeconds||0;this.an="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";a.video_id&&(this.g[this.Ha]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);if(a.list)switch(a.listType){case "user_uploads":co(this,a.list);break;case "user_favorites":eo(this,a.list);break;case "search":fo(this,
a.list);break;default:a.playlist_length&&(this.Ub=a.playlist_length),this.k=ao(a.list),0==a.fetch&&a.videoList?go(this,a.videoList):ho(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ha&&(this.g=[]);C(b,function(a){a&&this.g.push({video_id:a})},this);this.Ub=this.g.length;b=ib(this.g,function(a){return a.video_id});io(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.Qc=!0}else a.videoList&&go(this,a.videoList);jo(this,!!a.shuffle);a.suggestedQuality&&
(this.quality=a.suggestedQuality)}z(bo,Ch);f=bo.prototype;f.Ae=!1;f.startSeconds=0;f.Ln=!1;f.Ha=0;f.title="";f.Ub=0;f.an=!1;f.Qc=!1;f.Mf=!1;f.qd=null;function ko(a){return a.Ae||a.Ha+1<a.Ub}function lo(a){var b=a.Ha+1;b>=a.Ub&&(b=a.Ae?0:-1);return b}function mo(a){var b=lo(a);if(-1==b)return null;no(a,b);return oo(a,b)}function po(a){if(0>--a.Ha)if(a.Ae)a.Ha=a.Ub-1;else return null;no(a,a.Ha);return oo(a,a.Ha)}
function oo(a,b){var c=void 0!=b?b:a.Ha,c=a.g&&c in a.g?a.g[a.j[c]]:null,d=null;c&&(d=new Fn(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.k&&(d.playlistId=a.k.toString()));return d}function jo(a,b){a.Ln=b;var c=a.j&&null!=a.j[a.Ha]?a.j[a.Ha]:a.Ha;a.j=[];for(var d=0;d<a.g.length;d++)a.j.push(d);a.Ha=c;if(a.Ln){c=a.j[a.Ha];for(d=1;d<a.j.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.j[d];a.j[d]=a.j[e];a.j[e]=g}for(d=0;d<a.j.length;d++)a.j[d]==c&&(a.Ha=d)}a.publish("shuffle")}
function no(a,b){a.Ha=Sb(b,0,a.Ub-1);a.startSeconds=0}function co(a,b){a.Mf||(a.k=new $n("UU","PLAYER_"+b),io(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function eo(a,b){a.Mf||(a.k=new $n("FL","PLAYER_"+b),io(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function fo(a,b){if(!a.Mf){a.k=new $n("SR",b);var c={search_query:b};a.an&&(c.mob="1");io(a,"/search_ajax?style=json&embeddable=1",c)}}
function ho(a){if(!a.Mf){var b={list:a.k},c=oo(a);c&&c.videoId&&(b.v=c.videoId);io(a,"/list_ajax?style=json&action_get_list=1",b)}}function io(a,b,c){xh(Pe(b,c),{format:"JSON",mc:function(a,b){qo(this,b)},context:a})}function qo(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=oo(a);a.g=[];C(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.g.push(a))},a);a.Ub=a.g.length;ro(a,c);jo(a,!1);a.Mf=!1;a.Qc=!0;a.qd&&a.qd()}}
function go(a,b){0<a.Ha&&(a.g=[]);C(b,function(a){this.g.push(a)},a);a.Ub=a.g.length;a.Qc=!0}function ro(a,b){if(b){var c=b.videoId;if(!a.g[a.Ha]||a.g[a.Ha].video_id!=c)for(var d=0;d<a.g.length;d++)if(a.g[d].video_id==c){a.Ha=d;break}}}f.K=function(){this.qd=null;Fg(this.g);bo.J.K.call(this)};function so(a){var b={};b.volume=isNaN(a.volume)?to().volume:Sb(a.volume,0,100);b.muted=void 0==a.muted?to().muted:a.muted;ch("yt-player-volume",b,2592E3)}function to(){var a={volume:100,muted:!1},b=fh("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Sb(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function uo(a){ch("yt-player-bandwidth",a,2592E3)};function vo(a,b,c){u(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 wo(a)}function wo(a,b,c){if(ka(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 xo(a,b){N.call(this);this.app=a;this.Pc=null;this.Td={};this.af={};this.o={};this.k={};this.j=null;this.g=b;T(this,"cueVideoById",this.Es);T(this,"loadVideoById",this.oj);T(this,"cueVideoByUrl",this.Fs);T(this,"loadVideoByUrl",this.Zs);T(this,"playVideo",this.Yg);T(this,"pauseVideo",this.pauseVideo);T(this,"stopVideo",this.Am);T(this,"clearVideo",this.Cs);T(this,"getVideoBytesLoaded",this.Qs);T(this,"getVideoBytesTotal",this.Rs);T(this,"getVideoLoadedFraction",this.vj);T(this,"getVideoStartBytes",
this.Ts);T(this,"cuePlaylist",this.Ds);T(this,"loadPlaylist",this.xm);T(this,"nextVideo",this.ym);T(this,"previousVideo",this.zm);T(this,"playVideoAt",this.uj);T(this,"setShuffle",this.qt);T(this,"setLoop",this.gt);T(this,"getPlaylist",this.pe);T(this,"getPlaylistIndex",this.um);T(this,"getPlaylistId",this.vm);T(this,"loadModule",this.Ys);T(this,"unloadModule",this.wt);T(this,"setOption",this.jt);T(this,"getOption",this.Ls);T(this,"getOptions",this.Ms);T(this,"mute",this.$s);T(this,"unMute",this.vt);
T(this,"isMuted",this.Ws);T(this,"setVolume",this.setVolume);T(this,"getVolume",this.Us);T(this,"seekTo",this.Zg);T(this,"getPlayerState",this.getPlayerState);T(this,"getPlaybackRate",this.Os);T(this,"setPlaybackRate",this.lt);T(this,"getAvailablePlaybackRates",this.Hs);T(this,"getPlaybackQuality",this.Ns);T(this,"setPlaybackQuality",this.kt);T(this,"getAvailableQualityLevels",this.Is);T(this,"getCurrentTime",this.getCurrentTime);T(this,"getDuration",this.pf);T(this,"addEventListener",this.addEventListener);
T(this,"removeEventListener",this.removeEventListener);T(this,"getVideoUrl",this.getVideoUrl);T(this,"getDebugText",this.Js);T(this,"getVideoEmbedCode",this.Ss);T(this,"getVideoData",this.getVideoData);T(this,"addCueRange",this.wm);T(this,"removeCueRange",this.bt);T(this,"setSize",this.tt);T(this,"getApiInterface",this.Gs);T(this,"destroy",this.destroy);T(this,"showVideoInfo",this.ut);T(this,"hideVideoInfo",this.Vs);yo(this,"getInternalApiInterface",this.Ks);yo(this,"getAdState",this.getAdState);
yo(this,"isNotServable",this.Xs);yo(this,"getUpdatedConfigurationData",this.Ps);yo(this,"updateRemoteReceivers",this.xt);yo(this,"sendAbandonmentPing",this.ct);yo(this,"setAutonav",this.ft);yo(this,"setMinimized",this.ht);yo(this,"channelSubscribed",ba);yo(this,"channelUnsubscribed",ba)}z(xo,N);function T(a,b,c){a.Td[b]=x(c,a)}function yo(a,b,c){a.af[b]=x(c,a)}f=xo.prototype;f.Gs=function(){return fc(this.Td)};f.Ks=function(){return fc(this.af)};f.M=function(){return this.Pc};
f.addEventListener=function(a,b){if(u(b)){var c=function(){t(b).apply(window,arguments)};this.o[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};f.Lp=function(a,b){var c=u(b)?a+b:a+la(b);if(!this.k[c]){var d;u(b)?d=function(){t(b).apply(window,arguments)}:d=b;var e=x(function(a){d({target:this.j,data:a})},this);this.k[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(u(b)){var c=this.o[b];lc(this.o,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
f.Mp=function(a,b){var c=u(b)?a+b:a+la(b),d=this.k[c];d&&(this.removeEventListener(a,d),lc(this.k,c))};f.getPlayerState=function(){return this.app.ka};f.Zg=function(a,b){zo(this.app,!0,this.g);Ao(this.app,a,b,void 0,this.g)};f.getCurrentTime=function(){var a=this.app.O;return a&&Bo(this.app).j!=a?a.getCurrentTime():this.app.getCurrentTime(this.g)};f.pf=function(){var a=this.app.O;return a?a.duration||0:Co(this.app,1)};f.Us=function(){return this.app.F.volume};f.setVolume=function(a){this.app.setVolume(a)};
f.Ws=function(){return this.app.F.muted};f.$s=function(){var a=this.app,b=a.F;b.muted=!0;Do(a,b)};f.vt=function(){var a=this.app,b=a.F;b.muted=!1;5>b.volume&&(b.volume=5);Do(a,b)};f.Yg=function(){zo(this.app,!0,this.g);Eo(this.app,this.g)};f.pauseVideo=function(){var a=this.app,b=this.g;if(!Fo(a,"play_pause")){var c=a.Y.play_pause?a.da:null;c?c.He("control_pause"):a.pauseVideo(b)}};
f.Am=function(){var a=this.app,b=this.g,c=a.g,d=null!=c.D&&0==c.D.search("^https?://www._old_youtube.com");("detailpage"==c.ea||"profilepage"==c.ea||d)&&Go(a,!1);Fo(a,"play_pause")||Ho(a,b)};f.Cs=function(){};f.Os=function(){return this.app.aa};f.lt=function(a){Io(this.app,a)};f.Hs=function(){return this.app.g.Ja?Mm:[1]};f.Ns=function(){return Jo(this.app,this.g)};f.kt=function(a){var b=this.app,c=Bo(b,this.g);c&&(b=b.g.H,"mobile"!=b&&"tablet"!=b&&(a=Kl(a,a,!0),Ko(c,"p",a)))};
f.Is=function(){var a=Bo(this.app,this.g);if(a)if(a.g.k){var b=Lo(a),a=Rl(a.g.k,b);a.length&&(a=a.concat(["auto"]))}else a=[];else a=[];return a};f.Qs=function(){return this.vj()};f.Rs=function(){return 1};f.vj=function(){return Mo(this.app.O)};f.Ts=function(){return 0};f.tt=function(){this.app.k.yg()};f.ft=function(a){var b=this.app;b.getVideoData().cj=a;b.Oa("autonavchange",a)};f.ht=function(a){this.app.g.vn=a};f.Ys=function(a){this.app.D.isAvailable(a)&&(a=No(this.app.D,a))&&!a.loaded&&a.load()};
f.wt=function(a){this.app.D.isAvailable(a)&&(a=No(this.app.D,a))&&a.loaded&&a.unload()};f.oj=function(a,b,c){a=Oo(this.app,wo(a,b,c),this.g);zo(this.app,a,this.g)};f.Es=function(a,b,c){Po(this.app,wo(a,b,c),this.g)};f.Zs=function(a,b,c){a=vo(a,b,c);b=Oo(this.app,a,this.g);zo(this.app,b,this.g);b=this.app;(a=kf(new K(a.mediaContentUrl)))&&Qo(b.g,a)};f.Fs=function(a,b,c){b=vo(a,b,c);Po(this.app,b,this.g);a=this.app;(b=kf(new K(b.mediaContentUrl)))&&Qo(a.g,b)};
f.getVideoUrl=function(){var a=this.app;return a.g.getVideoUrl(Ro(a),null,null)};f.Js=function(){var a=this.app,b=a.j.getDebugInfo(void 0);b.debug_playbackQuality=Jo(a);b.debug_date=(new Date).toString();delete b.uga;return Mb(b)};f.Ss=function(){return""};f.wm=function(a,b,c){return So(this.app,a,b,c)};f.bt=function(a){t:{for(var b=this.app,c=b.j.C.o||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Na.clear();b.j.C.lf(e);b.publish("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};
f.xm=function(a,b,c,d){var e=this.app;e.P=!1;To(e,a,b,c,d);zo(this.app,!0,this.g)};f.Ds=function(a,b,c,d){var e=this.app;e.P=!0;To(e,a,b,c,d)};f.ym=function(){Uo(this.app);zo(this.app,!0,this.g)};f.zm=function(){Vo(this.app);zo(this.app,!0,this.g)};f.uj=function(a){Wo(this.app,a);zo(this.app,!0,this.g)};f.qt=function(a){var b=this.app;b.A&&jo(b.A,a)};f.gt=function(a){var b=this.app;b.A&&(b.A.Ae=a)};f.pe=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.Ub;c++){var d=oo(a,c);d&&b.push(d.videoId)}return b};
f.um=function(){var a;a=this.app;a=a.A?a.A.Ha:null;return null==a?-1:a};f.vm=function(){return Xo(this.app)};f.jt=function(a,b,c){return Yo(this.app,a,b,c)};f.Ls=function(a,b,c){return Yo(this.app,a,b,c)};f.Ms=function(a){var b;b=this.app;a?b=b.C&&a==b.C.va?b.C.yh():Zo(b.D,a):(a=Zo(b.D),b.C&&a.push(b.C.va),b=a);return b};f.getVideoData=function(){var a=Bo(this.app,this.g),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.vm();b&&(a.list=b);return a};
f.ut=function(){var a=this.app.k;a.j&&(a.j.show(),a.Wn(),Rf(a.I),a.I=Pf(x(a.Wn,a),500))};f.Vs=function(){this.app.k.Zh()};f.getAdState=function(){return this.app.getAdState()};f.Xs=function(){var a=this.app.getPlayerState();return!(!a||!U(a,128)||5!=$o[a.g.errorCode])};f.Ps=function(){var a=this.app,b=a.S.clone(),c=b.args,a=Ro(a),d=nc(a.o);!a.Sa&&0<a.startSeconds&&(d.start=a.startSeconds);sa(c,d);return b};f.xt=function(){};f.destroy=function(){this.app.dispose()};
f.ct=function(){var a=Bo(this.app);a&&!U(a.getPlayerState(),128)&&(ap(a),bp(a))};f.K=function(){if(this.Pc){for(var a in this.Td)this.Pc[a]=null;for(a in this.af)this.Pc[a]=null;this.Pc=null}this.o=this.k=null;xo.J.K.call(this)};function cp(a,b){xo.call(this,a,b);T(this,"addInfoCardXml",this.tx);T(this,"cueVideoByPlayerVars",this.ux);T(this,"loadVideoByPlayerVars",this.zx);T(this,"preloadVideoByPlayerVars",this.Ax);T(this,"seekBy",this.Ko);T(this,"enableLicenseIntercept",this.vx);T(this,"updatePlaylist",this.Gx);T(this,"resumeLicenseSession",this.Bx);T(this,"updateLastActiveTime",this.Fx);T(this,"updateVideoData",this.Hx);T(this,"getStoryboardFormat",this.xx);T(this,"getProgressState",this.Tn);T(this,"hideUserInterface",
this.yx);T(this,"showUserInterface",this.Ex);T(this,"getHousebrandProperties",this.wx);T(this,"setPlaybackQualityRange",this.Cx);T(this,"getCurrentPlaylistSequence",this.rx)}z(cp,xo);f=cp.prototype;f.wm=function(a,b,c,d,e){return So(this.app,a,b,c,d,e)};f.tx=function(a,b){var c=this.app;c.g.oa=a;c.g.Gc=b};f.ux=function(a){Po(this.app,a,this.g)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ba:b.ka};f.zx=function(a){Oo(this.app,a,this.g)};
f.Ax=function(a){var b=this.app,c=this.g;c&&1!=c||b.H&&b.H.getVideoData().videoId==a.videoId||(a=new Fn(a),dp(b,a))};f.Yg=function(){Eo(this.app,this.g)};f.Zg=function(a,b){Ao(this.app,a,b,void 0,this.g)};f.xm=function(a,b,c,d){var e=this.app;e.P=!1;To(e,a,b,c,d)};f.ym=function(){Uo(this.app)};f.zm=function(){Vo(this.app)};f.uj=function(a){Wo(this.app,a)};f.Ko=function(a,b,c){var d=this.app,e=this.g;Ao(d,d.getCurrentTime()+a,b,c,e)};f.vx=function(){var a=this.app;a.Ja||(a.Ja=!0,a.oa={})};
f.Gx=function(){var a=this.app;ep(a);a.Oa("onPlaylistUpdate")};f.Bx=function(a,b){var c=this.app,d=c.oa[a];d&&(fp(d,b),d.start(),delete c.oa[a])};f.Fx=function(){gp()};f.Hx=function(a){var b=Bo(this.app,this.g||1);b&&(b=b.g,Hn(b,a),b.publish("dataupdated"))};f.xx=function(){var a=this.app.getVideoData();return a.o.storyboard_spec||a.o.live_storyboard_spec};f.yx=function(){hp(this.app.k,!1)};f.Ex=function(){hp(this.app.k,!0)};f.wx=function(){var a=this.app.X();return{tg:a.tg,xb:a.xb(),Gb:a.Gb}};
f.getVideoData=function(){var a=cp.J.getVideoData.call(this),b=Bo(this.app,this.g),b=b?b.getVideoData():{};a.cpn=b.xa;a.isLive=b.Sa;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):cp.J.getCurrentTime.call(this)};f.pf=function(a){return a?Co(this.app,a):cp.J.pf.call(this)};
f.Tn=function(){var a=this.app.getVideoData(),b=a.Sa&&!a.wb?this.getCurrentTime():a.j&&!isNaN(Gl(a.j))?Gl(a.j):a.lengthSeconds,c=!a.Sa||a.wb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.pf(),k;k=(k=Bo(this.app,void 0))?ip(k.j):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:Un(a)}};f.vj=function(a){var b=this.app;return(b.B&&2==b.B.getPlayerType())==(2==a)?Mo(b.O):0};
f.Cx=function(a,b){var c=Bo(this.app,this.g);if(c){var d=Kl(a,b||a,!0);Ko(c,"m",d)}};f.rx=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.j&&b.Sa){var c=b.j.g[b.g.id];c&&c.index?(b=c.index.nh(a),c=c.index.ve(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};function jp(a,b){cp.call(this,a,b)}z(jp,cp);f=jp.prototype;f.getPlayerType=function(){return this.g};f.oj=function(a,b,c){Oo(this.app,wo(a,b,c),this.g)};f.Yg=function(){Eo(this.app,this.g)};f.Zg=function(a,b){Ao(this.app,a,b,void 0,this.g)};function kp(a){return a.app.k.element}f.X=function(){return this.app.X()};f.pe=function(){return this.app.A};f.getVideoData=function(){var a=Bo(this.app,this.g);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.X().ib};function lp(a,b){this.start=a;this.end=b;this.g=la(this)}function mp(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.g!=b.g?a.g-b.g:0}lp.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)};lp.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function np(){this.g=[]}function op(a,b){for(var c=[],d=0;d<a.g.length;++d){var e=a.g[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function pp(a,b,c){for(var d=[],e=0;e<a.g.length;++e){var g=a.g[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function qp(a,b){for(var c=[],d=0;d<a.g.length;++d){var e=a.g[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(Cb);return c[0]};function rp(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 sp(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 tp(a,b){var c=sp(a,b);return 0<=c?a.end(c):NaN}function up(a){return a&&a.length?a.end(a.length-1):NaN}function vp(a,b){var c=tp(a,b);return 0<=c?c-b:0};function wp(){}var xp=Hm&&4>Gm?.1:0,yp=new wp;f=wp.prototype;f.wc=null;f.pi=!1;function zp(a,b){var c="";b&&(a.wc=b,c=ln(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.g||a.load())}function Ap(a,b){0<a.readyState&&(a.currentTime=Math.max(xp,b))}f.getCurrentTime=function(){return this.currentTime||0};function ip(a){return 0<up(a.buffered)&&a.duration?tp(a.buffered,a.currentTime):0}function Mo(a){var b=a.duration||0;return Infinity==b?1:b?ip(a)/b:0}function Bp(a){return a.paused||a.ended}
function Cp(a){a.ended&&Ap(a,0);!a.hasAttribute("src")&&a.wc&&(a.src=ln(a.wc),a.wc.g||a.load());a.play();Hm&&7<=Gm&&cg(a,x(function(){M(x(this.Zn,this,this.currentTime,0),500)},a))}f.Zn=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),M(x(this.Zn,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Dp(a){a.currentSrc&&(cm&&Ap(a,0),qd(a),a.removeAttribute("src"),a.load(),a.wc&&a.wc.g&&(a.wc=null))}function Ep(a){Dp(a);a.wc=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Fp(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.Yw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.Zw=function(){this.pi&&!this.muted&&(this.muted=!0)};
wp.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:rp(this.played),vbu:rp(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 Gp(a,b){this.j=a||64;this.g=b||null}
function Hp(a,b,c,d){if(U(a,128))return a;var e=a.j,g=a.g,h=b.target;switch(b.type){case "ended":if(0>=h.networkState||!h.src)break;e=14;g=null;break;case "pause":U(a,256)?e^=256:U(a,32)||U(a,2)||(e=4,U(a,1)&&U(a,8)&&(e|=1),g=null);break;case "playing":e=8;d&&U(a,1)&&(e|=1);g=null;break;case "abort":if(64==e)break;case "error":t:if((b=h.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&&(g=b,e|=128);break;case "canplay":e&=-2;break;case "progress":U(a,8)&&Ip(c,h)&&(e|=1);break;case "seeked":e&=-17;d||(e&=-2);break;case "seeking":e|=16;0>=vp(h.buffered,h.currentTime)&&(e|=1);e&=-3;break;case "waiting":U(a,2)||(e|=1);break;case "timeupdate":U(a,16)||(e=Ip(c,h)?e|1:e&-2);1<h.readyState&&0<h.currentTime&&(e&=-65);break;default:return a}return Jp(a,e,g)}
function Ip(a,b){if(!a)return!1;var c=vp(b.buffered,b.currentTime);return Kp(a,b.currentTime,y(),c)}function Jp(a,b,c){return b==a.j&&c==a.g||b&128&&!c||b&2&&b&16?a:new Gp(b,c)}function Lp(a,b){return Jp(a,a.j|b)}function Mp(a,b){return Jp(a,a.j&~b)}function U(a,b){return!!(a.j&b)}function Np(a){return U(a,128)?-1:U(a,2)?0:U(a,1)&&!U(a,32)?3:U(a,64)?-1:U(a,8)?1:U(a,4)?2:-1};function Op(a,b,c){lp.call(this,a,b);a=c||{};this.pa=a.id||"";void 0!=a.priority&&(this.Sf=a.priority);this.namespace=a.namespace||"";this.Na=new Gg;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}z(Op,lp);f=Op.prototype;f.pa="";f.Sf=7;f.active=!0;f.visible=!1;f.style="ytp-ad-progress";f.Na=null;f.namespace="";f.getId=function(){return this.pa};function Pp(a,b){return a.start==b.start?a.Sf==b.Sf?0:a.Sf<b.Sf?-1:1:a.start<b.start?-1:1};function Qp(a,b,c){Ch.call(this);this.D=a;this.C=b;this.F=c;this.A=new Xi(250);hi(this.A,"tick",this.Jb,!1,this);O(this,this.A);this.o=[];this.g=[];this.j=new np}z(Qp,Ch);f=Qp.prototype;f.Cg=!1;f.ef=!1;f.mj=!1;f.lj=!1;f.mf=null;f.Pg=function(a){this.Jb();C(arguments,function(a){this.o.push(a);var c=this.j.g;!c.length||0<mp(a,c[c.length-1])?c.push(a):Ib(c,a,mp);this.publish("onAdd",a)},this);this.Jb()};f.lf=function(a){C(arguments,function(a){a=this.o.indexOf(a);0<=a&&Rp(this,a)},this);this.Jb()};
function Rp(a,b){var c=a.o.splice(b,1)[0],d=a.j.g,e=Bb(d,c,mp);0<=e&&ub(d,e);b=a.g.indexOf(c);0<=b&&a.g.splice(b,1);a.publish("onRemove",c)}f.qf=function(){this.k=Sp(this);this.ef=!0;this.Jb()};f.reset=function(){this.ef=this.Cg=!1;Tp(this);for(var a=this.o.length-1;0<=a;a--)Rp(this,a);this.Jb();this.B=null};function Up(a,b){var c=[];if(!b.length)return c;b.sort(Pp);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.g.indexOf(e)&&(a.g.push(e),c.push(["onEnter",e]))}return c}
function Vp(a,b){var c=[];if(!b.length)return c;b.sort(Pp);for(var d=0;d<b.length;d++){var e=b[d],g=a.g.indexOf(e);0>g||(a.g.splice(g,1),c.push(["onExit",e]))}return c}
f.Jb=function(){this.lj=!0;if(!this.mj)for(var a=3;this.lj&&a;){this.lj=!1;this.mj=!0;if(this.ef&&!this.Cg){Tp(this);for(var b=Sp(this),c=[],d=[],e=0;e<this.g.length;e++){var g=this.g[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(Vp(this,d));d=op(this.j,b);e=this.C();!U(e,48)&&b>this.k&&(d=d.concat(pp(this.j,this.k,b)));c=c.concat(Up(this,d));this.k=b;!this.Cg&&this.B&&(c.unshift(["onLockBlockExit",this.B]),this.B=null,U(e,2)&&(this.k=2147483647));this.F()&&(b=qp(this.j,this.k),null!=b&&(this.mf=
Zi(x(this.Jb,this),b-this.k)));Wp(this,c)}this.mj=!1;a--}};function Wp(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.Na.publish.apply(e.Na,d)}}function Tp(a){null!=a.mf&&($i(a.mf),a.mf=null)}function Sp(a){return U(a.C(),2)?2147483647:1E3*a.D()}f.K=function(){pi(this.A,"tick",this.Jb,!1,this);Tp(this);this.B=this.j=this.g=this.o=null;Qp.J.K.call(this)};function Xp(a){Ch.call(this);this.g=a;if(this.Ka){a="yt-html5-player-modules::"+this.Ka;var b=new Vg;if(a=b.isAvailable()?a?new Dh(b,a):b:null)this.Z=new Xg(a)}}z(Xp,Ch);f=Xp.prototype;f.va="";f.xe="";f.ce=!1;f.loaded=!1;f.aj=!1;f.jb=null;f.jf=function(a){var b=wb(arguments),c=x(this.Dd,this),d=x(this.Ee,this);C(b,function(a){a.namespace=this.va;a.Na.subscribe("onEnter",c);a.Na.subscribe("onExit",d)},this);this.publish("command_add_cuerange",b,this.g.getPlayerType())};
f.cw=function(a){var b=wb(arguments);this.publish("command_remove_cuerange",b,this.g.getPlayerType())};function Yp(a){a.publish("command_remove_cuerange_all",a.va,a.g.getPlayerType())}function Zp(a){a.publish("command_preroll_ready",a.va,a.g.getPlayerType())}function $p(a,b){L(b,a.va);a.g.app.k.A.M().appendChild(b)}function aq(a,b){a.publish("command_show_dialog",b)}f.kg=function(){aq(this)};f.create=function(){this.ce||(this.Va(this.g),L(kp(this.g),this.va+"-created"),this.ce=!0)};
f.destroy=function(){this.loaded&&this.unload();vf(kp(this.g),this.va+"-created");this.ce=!1};f.load=function(){this.loaded=!0;L(kp(this.g),this.va+"-loaded");this.publish("loaded",this.va)};f.unload=function(){this.loaded=!1;vf(kp(this.g),this.va+"-loaded");this.publish("unloaded",this.va)};f.Dd=function(){};f.Ee=function(){};f.He=function(){};f.log=function(a){this.publish("command_log",this.xe,a)};
function bq(a,b,c){var d={},e;for(e in b)d[a.va+"_"+e]=b[e];b={};for(var g in c)b[a.va+"_"+g]=c[g];a.publish("command_log_timing",d,b)}f.tf=function(){return null};function cq(a,b){if(!a.Z)return null;var c;try{c=a.Z.get(b)}catch(d){a.Z&&a.Z.remove(b)}return c}function dq(a,b,c){if(a.Z)try{a.Z.set(b,c)}catch(d){}}function eq(a,b){a.publish("command_disable_controls",b,a.va)}function fq(a,b){a.publish("command_enable_controls",b,a.va)}
function gq(a){a.publish("command_play",!1,a.g.getPlayerType())}f.pauseVideo=function(){this.publish("command_pause",!1,this.g.getPlayerType())};function hq(a,b){a.publish("command_redirected_show_is_playing",b)}function iq(a){return a.g.app.k.R}function jq(a,b,c){a.publish("module_menu_button_add",b,c)}function kq(a,b){a.publish("module_menu_button_remove",b)}function lq(a,b){a.publish("module_menu_item_add",b)}function mq(a,b){a.publish("module_menu_item_remove",b)}
function nq(a){a.publish("module_menu_show")}f.Ah=function(){};f.yh=function(){return[]};f.Va=function(){return!1};f.Hj=function(){return!0};f.zh=function(a,b){this.jb&&this.jb.He&&this.jb.He.apply(this.jb,arguments)};f.Vg=function(){};var oq={Pz:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",Qz:"ERROR_AUTHENTICATION_EXPIRED",Rz:"ERROR_AUTHENTICATION_MALFORMED",Sz:"ERROR_AUTHENTICATION_MISSING",Uz:"ERROR_BAD_REQUEST",Yz:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",eA:"ERROR_CGI_PARAMS_MALFORMED",fA:"ERROR_CGI_PARAMS_MISSING",UA:"YTP_DEVICE_FALLBACK",bB:"YTP_ERROR_LICENSE",eB:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",gB:"YTP_ERROR_GEO_FAILURE",lB:"YTP_ERROR_GENERIC",mB:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uB:"YTP_ERROR_INVALID_DRM_MESSAGE",
yB:"LEARN_MORE",NB:"YTP_ERROR_NOT_SIGNED_IN",XB:"YTP_ERROR_PURCHASE_NOT_FOUND",YB:"YTP_ERROR_PURCHASE_REFUNDED",aC:"YTP_ERROR_RENTAL_EXPIRED",$z:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",aA:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",cA:"YTP_ERROR_CAST_TOKEN_FAILED",bA:"YTP_ERROR_CAST_TOKEN_EXPIRED",dA:"YTP_ERROR_CAST_TOKEN_MALFORMED",hC:"YTP_ERROR_SERVER_ERROR",tC:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",uC:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",vC:"YTP_ERROR_STREAMING_NOT_ALLOWED",wC:"YTP_ERROR_STREAMING_UNAVAILABLE",
dC:"YTP_ERROR_RETRYABLE_ERROR",BC:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",AC:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",FC:"YTP_ERROR_UNSUPPORTED_DEVICE",HC:"YTP_ERROR_UNUSUAL_ACTIVITY",LC:"YTP_ERROR_VIDEO_FORBIDDEN",MC:"YTP_ERROR_VIDEO_NOT_FOUND"},pq={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 qq(a){return(a=pq[a.toString()])?a:"YTP_ERROR_LICENSE"};var rq={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 sq(a,b){this.A=[];this.H=a;this.G=b||null;this.o=this.g=!1;this.k=void 0;this.F=this.I=this.C=!1;this.B=0;this.j=null;this.D=0}f=sq.prototype;f.cancel=function(a){if(this.g)this.k instanceof sq&&this.k.cancel();else{if(this.j){var b=this.j;delete this.j;a?b.cancel(a):(b.D--,0>=b.D&&b.cancel())}this.H?this.H.call(this.G,this):this.F=!0;this.g||this.Df(new tq)}};f.wl=function(a,b){this.C=!1;uq(this,a,b)};function uq(a,b,c){a.g=!0;a.k=c;a.o=!b;vq(a)}
function wq(a){if(a.g){if(!a.F)throw new xq;a.F=!1}}f.Lo=function(a){wq(this);uq(this,!0,a)};f.Df=function(a){wq(this);uq(this,!1,a)};function yq(a,b,c){zq(a,b,null,c)}function zq(a,b,c,d){a.A.push([b,c,d]);a.g&&vq(a)}f.then=function(a,b,c){var d,e,g=new Ji(function(a,b){d=a;e=b});zq(this,d,function(a){a instanceof tq?g.cancel():e(a)});return g.then(a,b,c)};Hi(sq);function Aq(a){return kb(a.A,function(a){return ja(a[1])})}
function vq(a){if(a.B&&a.g&&Aq(a)){var b=a.B,c=Bq[b];c&&(m.clearTimeout(c.pa),delete Bq[b]);a.B=0}a.j&&(a.j.D--,delete a.j);for(var b=a.k,d=c=!1;a.A.length&&!a.C;){var e=a.A.shift(),g=e[0],h=e[1],e=e[2];if(g=a.o?h:g)try{var k=g.call(e||a.G,b);p(k)&&(a.o=a.o&&(k==b||k instanceof Error),a.k=b=k);Ii(b)&&(d=!0,a.C=!0)}catch(l){b=l,a.o=!0,Aq(a)||(c=!0)}}a.k=b;d&&(k=x(a.wl,a,!0),d=x(a.wl,a,!1),b instanceof sq?(zq(b,k,d),b.I=!0):b.then(k,d));c&&(b=new Cq(b),Bq[b.pa]=b,a.B=b.pa)}
function xq(){ua.call(this)}z(xq,ua);xq.prototype.message="Deferred has already fired";xq.prototype.name="AlreadyCalledError";function tq(){ua.call(this)}z(tq,ua);tq.prototype.message="Deferred was canceled";tq.prototype.name="CanceledError";function Cq(a){this.pa=m.setTimeout(x(this.j,this),0);this.g=a}Cq.prototype.j=function(){delete Bq[this.pa];throw this.g;};var Bq={};function Dq(a,b){var c=b||{},d=c.document||document,e=nd("SCRIPT"),g={Ro:e,hb:void 0},h=new sq(Eq,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Fq(e,!0);h.Df(new Gq(1,"Timeout reached for loading script "+a))},l),g.hb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Fq(e,c.fv||!1,k),h.Lo(null))};e.onerror=function(){Fq(e,!0,k);h.Df(new Gq(0,"Error while loading script "+a))};dd(e,{type:"text/javascript",charset:"UTF-8",
src:a});Hq(d).appendChild(e);return h}function Hq(a){var b=a.getElementsByTagName("HEAD");return!b||qb(b)?a.documentElement:b[0]}function Eq(){if(this&&this.Ro){var a=this.Ro;a&&"SCRIPT"==a.tagName&&Fq(a,!0,this.hb)}}function Fq(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){sd(a)},0)}function Gq(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}z(Gq,ua);function Iq(a,b){this.j=new K(a);this.g=b?b:"callback";this.hb=5E3}var Jq=0;
Iq.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Jq++).toString(36)+y().toString(36);m._callbacks_||(m._callbacks_={});var e=this.j.clone();if(a)for(var g in a)if(!a.hasOwnProperty||a.hasOwnProperty(g)){var h=e,k=g,l=a[g];ga(l)||(l=[String(l)]);rf(h.g,k,l)}b&&(m._callbacks_[d]=Kq(d,b),b=this.g,g="_callbacks_."+d,ga(g)||(g=[String(g)]),rf(e.g,b,g));b=Dq(e.toString(),{timeout:this.hb,fv:!0});zq(b,null,Lq(d,a,c),void 0);return{pa:d,Gn:b}};
Iq.prototype.cancel=function(a){a&&(a.Gn&&a.Gn.cancel(),a.pa&&Mq(a.pa,!1))};function Lq(a,b,c){return function(){Mq(a,!1);c&&c(b)}}function Kq(a,b){return function(c){Mq(a,!0);b.apply(void 0,arguments)}}function Mq(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ba)};function Nq(a){this.g=a;a=null;a=Oq(this.g);a="("+a.join("|")+")";a=ya("__%s__",a);this.k=new RegExp(a,"g");this.j={}}var Pq=/__([a-z]+(?:_[a-z]+)*)__/g;function Oq(a){var b=[],c={};a.replace(Pq,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function Qq(a,b){var c=x(function(a,c){return Ca(b[c]||this.j[c]||"")},a);return a.g.replace(a.k,c)};function Rq(a,b){Ch.call(this);this.k=Qq(new Nq(b),{video_id:a});this.g=new Xi(15E3+Math.floor(3E4*Math.random()));hi(this.g,"tick",x(this.j,this));this.j();this.g.start()}z(Rq,Ch);Rq.prototype.K=function(){this.g.dispose();Rq.J.K.call(this)};Rq.prototype.j=function(){(new Iq(this.k)).send(null,x(this.A,this),x(this.o,this))};Rq.prototype.A=function(a){this.publish("payload",a);Yi(this.g,15E3+Math.floor(3E4*Math.random()))};
Rq.prototype.o=function(){this.publish("error");var a=this.g.g;192E4>a&&Yi(this.g,2*a)};function Sq(a){N.call(this);this.g={};this.k={};this.o={};this.j=Tq(this,a)}z(Sq,N);
function Tq(a,b,c){var d=0,e=nd(b[d++]);if(u(b[d])||ga(b[d])||null===b[d]){var g=b[d++];ga(g)&&(g=g.join(" "));if(g=Uq(a,e,"className",g))Vq(a,e,"className",g),Wq(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ga(h))Tq(a,h,e);else if(ka(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&Vq(g,k,l,Uq(g,k,l,h[l]))}else u(h)&&(g=Uq(a,e,"child",h),null!=g&&e.appendChild(document.createTextNode(String(g))))}c&&c.appendChild(e);return e}f=Sq.prototype;f.M=function(){return this.j};
function Wq(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Wq(a,d[b],c);else a.g[b]=c}f.Ua=function(a,b){p(b)?rd(a,this.j,b):a.appendChild(this.j)};f.rf=function(){sd(this.j)};function Uq(a,b,c,d){return u(d)&&"{{"==d.substr(0,2)?(a.k[d]=[b,c],null):d}f.update=function(a){for(var b in a)Xq(this,b,a[b])};function Xq(a,b,c){if(c!=a.o[b]){var d=a.k["{{"+b+"}}"];d&&(a.o[b]=c,Vq(a,d[0],d[1],c))}}function Yq(a){return ga(a)&&u(a[0])}
function Vq(a,b,c,d){if("child"==c){qd(b);if(!ga(d)||Yq(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ia(g)||u(g)||ka(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Yq(g)?c.push(Tq(a,g)):g.M?c.push(g.M()):c.push(document.createTextNode(String(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.K=function(){this.g={};this.k={};this.o={};this.rf();delete this.j;Sq.J.K.call(this)};function Zq(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 $q(){this.k=new Sq(["div","html5-fresca-module",["div","html5-fresca-band-slate",["hgroup","html5-fresca-message",["h2","html5-fresca-heading","{{heading}}"],["h3","html5-fresca-subheading","{{subheading}}"],["h4","html5-fresca-long-test","{{long_text}}"]],["span","html5-fresca-countdown","{{countdown}}"]]]);O(this,this.k);this.j=this.k.g["html5-fresca-module"];L(this.j,"html5-stop-propagation");this.o=0;this.g=null}z($q,N);$q.prototype.M=function(){return this.j};
$q.prototype.update=function(a){this.B&&this.g.state==a.state&&this.g.startTime==a.startTime&&this.g.imageUrl==a.imageUrl&&this.g.messageText.join()==a.messageText.join()||(this.g=a,this.j.style.backgroundImage=this.g.imageUrl||"none",a=this.g.getMessage(),this.k.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.A())};function ar(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?Uf("YTP_FRESCA_STARTING_SOON_MESSAGE"):Zq(a-b)}
$q.prototype.A=function(){var a;a=this.g;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;xf(this.j,"html5-fresca-show-countdown",a);a&&(this.k.update({countdown:ar(this.g.startTime)}),Qf(this.o),this.o=M(x(this.A,this),1E3))};$q.prototype.K=function(){Qf(this.o);this.j=null;$q.J.K.call(this)};function br(a){this.messageText=[];this.g=!1;a&&cr(this,a)}br.prototype.state=-1;function dr(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function cr(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=rq[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=ib(d,function(a){return a.$t}));if(c=c.entry)a.g=0<=nb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}br.prototype.getMessage=function(){return this.messageText.length?this.messageText:er(this)};
function er(a){switch(a.state){case 6:return a.g?[]:[Uf("YTP_FRESCA_STAND_BY_MESSAGE"),Uf("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Uf("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Uf("YTP_FRESCA_EVENT_OVER_MESSAGE"),Uf("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Uf("YTP_FRESCA_STAND_BY_MESSAGE")]}};function fr(a){Xp.call(this,a);Tf({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."})}z(fr,Xp);f=fr.prototype;f.va="fresca";f.xe="fresca";f.Xg=!1;f.Cf=!1;f.Va=function(){return Xn(this.g.getVideoData(),"fresca_module")};
f.create=function(a){fr.J.create.call(this);if(vn(hm(),"application/x-mpegURL")||yn()){this.Xg=this.Cf=!1;eq(this,["play_pause","seek"]);this.k=new $q;var b=this.k.M();this.g.app.k.k.appendChild(b);this.o=a||new Rq(this.g.getVideoData().videoId,this.g.X().Xk+(this.g.X(),"feeds/api/users/live/broadcasts/__video_id__/states?v=2&alt=json-in-script"));this.o.subscribe("payload",this.As,this);this.o.subscribe("error",this.zs,this);this.subscribe("onStateChange",this.pm,this)}else gr(this.g.app.j,"fmt.noneavailable",
"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};f.destroy=function(){this.unsubscribe("onStateChange",this.pm,this);Fg(this.o,this.k);fr.J.destroy.call(this)};f.pm=function(a){this.j&&(this.Xg=U(a.state,2),(hr(a,16)||this.Xg)&&ir(this,this.j))};f.zs=function(){this.Cf||(jr(this,new br),ir(this,this.j))};f.As=function(a){jr(this,new br(a));a=this.g.getVideoData();6!=this.j.state||a.R||a.O?ir(this,this.j):this.g.oj(a.videoId)};
function ir(a,b){var c=6>b.state;!c&&a.g.app.j.ka&&(b.imageUrl||b.messageText.length)&&(c=!0);a.Xg&&!a.g.X().lc&&(c=!0);b.g||(c=!0);if(!a.Cf)switch(b.state){case 6:b.g&&(a.Cf=!0,fq(a,["play_pause","seek"]),Zp(a));break;case 8:case 7:c=a.Cf=!0}c&&a.k.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function kr(a){return Xn(a.getVideoData(),"fresca_module")?new fr(a):null}function jr(a,b){a.j!=b&&(a.j=b,a.g.X().xb()&&a.publish("publish_external_event","onFrescaStateChange",dr(a.j)))};function lr(a){this.kk=a||window;this.Me=[]}f=lr.prototype;f.kk=null;f.Me=null;f.listen=function(a,b,c,d){c=x(c,d||this.kk);a=bg(a,b,c);this.Me.push(a);return a};function mr(a,b,c,d,e,g){d=x(d,g||a.kk);b=eg(b,c,d,e);a.Me.push(b)}f.ya=function(a){dg(a);tb(this.Me,a)};f.removeAll=function(){dg(this.Me);this.Me=[]};function nr(){P.call(this);this.g=0;this.endTime=this.startTime=null}z(nr,P);f=nr.prototype;f.Vb=function(){this.mb("begin")};f.yc=function(){this.mb("end")};f.nc=function(){this.mb("finish")};f.onStop=function(){this.mb("stop")};f.mb=function(a){this.T(a)};function or(){nr.call(this);this.j=[]}z(or,nr);or.prototype.add=function(a){E(this.j,a)||(this.j.push(a),hi(a,"finish",this.o,!1,this))};or.prototype.remove=function(a){tb(this.j,a)&&pi(a,"finish",this.o,!1,this)};or.prototype.K=function(){C(this.j,function(a){a.dispose()});this.j.length=0;or.J.K.call(this)};function pr(){or.call(this);this.k=0}z(pr,or);
pr.prototype.play=function(a){if(0==this.j.length)return!1;if(a||0==this.g)this.k=0,this.Vb();else if(1==this.g)return!1;this.mb("play");-1==this.g&&this.mb("resume");var b=-1==this.g&&!a;this.startTime=y();this.endTime=null;this.g=1;C(this.j,function(c){b&&-1!=c.g||c.play(a)});return!0};pr.prototype.pause=function(){1==this.g&&(C(this.j,function(a){1==a.g&&a.pause()}),this.g=-1,this.mb("pause"))};
pr.prototype.stop=function(a){C(this.j,function(b){0==b.g||b.stop(a)});this.g=0;this.endTime=y();this.onStop();this.yc()};pr.prototype.o=function(){this.k++;this.k==this.j.length&&(this.endTime=y(),this.g=0,this.nc(),this.yc())};var qr=/#(.)(.)(.)/;function rr(a){if(!sr.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(qr,"#$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 sr=/^#(?:[0-9a-f]{3}){1,2}$/i;var tr={},ur=null;function vr(a){a=la(a);delete tr[a];jc(tr)&&ur&&ur.stop()}function wr(){ur||(ur=new gk(function(){xr()},20));var a=ur;a.isActive()||a.start()}function xr(){var a=y();$b(tr,function(b){yr(b,a)});jc(tr)||wr()};function zr(a,b,c,d){nr.call(this);if(!ga(a)||!ga(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.o=a;this.B=b;this.duration=c;this.A=d;this.j=[]}z(zr,nr);f=zr.prototype;f.Hn=0;f.hc=0;f.Ij=null;
f.play=function(a){if(a||0==this.g)this.hc=0,this.j=this.o;else if(1==this.g)return!1;vr(this);this.startTime=a=y();-1==this.g&&(this.startTime-=this.duration*this.hc);this.endTime=this.startTime+this.duration;this.Ij=this.startTime;this.hc||this.Vb();this.mb("play");-1==this.g&&this.mb("resume");this.g=1;var b=la(this);b in tr||(tr[b]=this);wr();yr(this,a);return!0};f.stop=function(a){vr(this);this.g=0;a&&(this.hc=1);Ar(this,this.hc);this.onStop();this.yc()};
f.pause=function(){1==this.g&&(vr(this),this.g=-1,this.mb("pause"))};f.K=function(){0==this.g||this.stop(!1);this.mb("destroy");zr.J.K.call(this)};f.destroy=function(){this.dispose()};function yr(a,b){a.hc=(b-a.startTime)/(a.endTime-a.startTime);1<=a.hc&&(a.hc=1);a.Hn=1E3/(b-a.Ij);a.Ij=b;Ar(a,a.hc);1==a.hc?(a.g=0,vr(a),a.nc(),a.yc()):1==a.g&&a.$j()}function Ar(a,b){ja(a.A)&&(b=a.A(b));a.j=Array(a.o.length);for(var c=0;c<a.o.length;c++)a.j[c]=(a.B[c]-a.o[c])*b+a.o[c]}f.$j=function(){this.mb("animate")};
f.mb=function(a){this.T(new Br(a,this))};function Br(a,b){Qh.call(this,a);this.x=b.j[0];this.y=b.j[1];this.duration=b.duration;this.fps=b.Hn;this.state=b.g}z(Br,Qh);function Cr(a,b,c,d,e){zr.call(this,b,c,d,e);this.element=a}z(Cr,zr);Cr.prototype.k=ba;Cr.prototype.$j=function(){this.k();Cr.J.$j.call(this)};Cr.prototype.yc=function(){this.k();Cr.J.yc.call(this)};Cr.prototype.Vb=function(){this.k();Cr.J.Vb.call(this)};function Dr(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Cr.apply(this,arguments)}z(Dr,Cr);
Dr.prototype.k=function(){this.element.style.left=Math.round(this.j[0])+"px";this.element.style.top=Math.round(this.j[1])+"px"};function Er(a,b,c,d){Dr.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}z(Er,Dr);Er.prototype.Vb=function(){this.o=[this.element.offsetLeft,this.element.offsetTop];Er.J.Vb.call(this)};function Fr(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Cr.apply(this,arguments)}z(Fr,Cr);
Fr.prototype.k=function(){this.element.style.width=Math.round(this.j[0])+"px";this.element.style.height=Math.round(this.j[1])+"px"};function Gr(a,b,c,d,e){Cr.call(this,a,[b],[c],d,e)}z(Gr,Cr);Gr.prototype.k=function(){this.element.style.width=Math.round(this.j[0])+"px"};function Hr(a,b,c,d,e){ia(b)&&(b=[b]);ia(c)&&(c=[c]);Cr.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}z(Hr,Cr);Hr.prototype.k=function(){ge(this.element,this.j[0])};
Hr.prototype.show=function(){this.element.style.display=""};Hr.prototype.hide=function(){this.element.style.display="none"};function Ir(a,b,c){Hr.call(this,a,1,0,b,c)}z(Ir,Hr);Ir.prototype.Vb=function(){this.show();Ir.J.Vb.call(this)};Ir.prototype.yc=function(){this.hide();Ir.J.yc.call(this)};function Jr(a,b,c){Hr.call(this,a,0,1,b,c)}z(Jr,Hr);Jr.prototype.Vb=function(){this.show();Jr.J.Vb.call(this)};function Kr(a){return Math.pow(a,3)}function Lr(a){return 1-Math.pow(1-a,3)}function Mr(a){return 3*a*a-2*a*a*a};function Nr(a){return ga(a)&&a.length?a[0]:a}function Or(a){var b=/.+/;return u(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Pr(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 Qr(a){return u(a)?a:""}function Rr(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Sr(a,b){return"true"==a||"false"==a?"true"==a:b}function Tr(a,b){return u(a)?parseFloat(a):b}
function Ur(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Sb(a,c,d);if(a>=c&&a<=d)return a}return g}function Vr(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;C(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function Wr(a,b){if(null==a)return null;if(ha(a)){var c=[];C(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Xr(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new Ub(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 Yr(a){function b(a){return hb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Zr(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var $r={oA:"current",MB:"new"};function as(a){if(!a)return null;var b=Qr(a.value);if(!b||null==mh(b))return null;var c=Rr(a.target,$r,"current");return null==c?null:new Zr(b,c,Sr(a.show_link_icon,!0))}function bs(a){return a.value?a.value:null};function cs(a){if(!a)return!1;var b=ds(a);return("com"==b[0]&&"_old_youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function ds(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function es(a,b){if("new"==a.target)return-1;var c=bs(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!cs(c))||(d=Ke(He(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=mh(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=lh(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 fs(a,b,c,d){(a=bs(a))?cs(a)?d=oh(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=ds(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=ra(gs,d.pageId,d.Fb),a=new K(a),Ye(a,d(a.rb)),d=a.toString()):d=a):d=null;return d}function gs(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 hs(a){return a.target?"new"==a.target?"_blank":"_top":cs(bs(a))?"_top":"_blank"};function is(a,b){this.k=a;this.j=b;this.g={}}function js(a,b,c,d){if(b){var e=ks(a,b);a.g[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;qc(e,c||{});b=wb(d||[]);30==e["a-type"]&&(c=ls(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);ms(a,e,b)}}function ns(a,b,c,d,e){if(b){var g=ks(a,b);g["iv-event"]=3;g["i-time"]=a.g[b]||"";qc(g,d||{});b=wb(e||[]);30==g["a-type"]&&(d=ls(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);ms(a,g,b,c)}}
function os(a,b,c,d){if(b){var e=ks(a,b);e["iv-event"]=4;e["i-time"]=a.g[b]||"";qc(e,c||{});b=wb(d||[]);30==e["a-type"]&&(c=ls(a,e["a-id"],"cta_annotation_closed"))&&b.push(c);ms(a,e,b)}}function ps(a,b,c){b&&(b=ks(a,b),b["iv-event"]=8,ms(a,b,c))}function qs(a,b){if(b){var c=ks(a,b);c["iv-event"]=9;c["a-type"]=50;ms(a,c,void 0)}}function rs(a,b,c){b&&(b=ks(a,b),b["iv-event"]=9,ms(a,b,c))}
function ls(a,b,c){a=a.j.getVideoData();if(a.Ra){if((c=a.Ra[c])&&-1!=c.search(Kj))return a=Aa("[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.Z)return oh(a.Z,{label:c,value:"a_id="+b});return""}function ms(a,b,c,d){function e(){g--;!g&&d&&d()}var g=1;C(c||[],function(a){g++;ek(a,e)});a.pd(b,e)}
function ks(a,b){var c={},d=new af(b);C(d.Ea(),function(a){c[a]=escape(d.get(a,""))});c["p-time"]=a.j.getCurrentTime().toFixed(2);c.ps=a.j.X().g;return c}is.prototype.pd=function(a,b){this.k.publish("command_log","iv",a,b)};function ss(a,b){this.R=a;this.context=b;this.O=this.N=this.H=null;this.D=0}function ts(a,b,c,d,e,g){b=new Op(b,c,{id:d});b.namespace="iv-module";e&&b.Na.subscribe("onEnter",e,a);g&&b.Na.subscribe("onExit",g,a);a.context.Na.publish("command_add_cuerange",[b],a.context.j.getPlayerType())}f=ss.prototype;f.gh=function(){this.context.Na.subscribe("onResize",this.wd,this)};f.M=function(){return this.R};
f.Rc=function(a,b,c,d,e){mr(this.context.g,a,"click",ra(this.ie,a,b,c,d,e||[]),"iv-click-target",this);mr(this.context.g,a,"touchend",ra(this.ie,a,b,c,d,e||[]),"iv-click-target",this)};f.ie=function(a,b,c,d,e,g){g.stopPropagation();g.preventDefault();var h=fs(b,c,this.context.o.videoId);a=x(function(){this.context.j.pauseVideo();window.open(h,hs(b))},this);cs(bs(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=y()-this.D;ns(this.context.logger,d,a,c,e);return!1};f.show=function(){this.D=y()};
f.hide=function(){};f.destroy=function(){sd(this.M())};function us(a){if(!a.O){var b;b=a.M();b=Ed(b,null,"html5-video-player");a.O=b}return a.O}
function vs(a){var b=a.context.k.Mc;if(!b)return null;var c=a.context.k.fe||new Wb(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=I("html5-video-container",us(a)));g=a.N;if(!g)return null;g=35-(parseInt(Od(g,"bottom"),10)||0);var h;a.H||(a.H=I("html5-info-bar",us(a)));(h=a.H)&&a.context.k.Fq&&"none"!=Od(h,"display")&&(d+=de(h).height);return new Ub(d,b.width-c.left,e-g,-c.left)}f.wd=function(){};var ws=rc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var xs=/<[^>]*>|&[^;]+;/g;function ys(a,b){return b?a.replace(xs,""):a}
var zs=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),As=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Bs=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]"),Cs=/^http:\/\/.*/,Ds=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Es=
/\s+/,Fs=/\d/;function Gs(){this.g=Hs}Gs.prototype.Gh=!0;Gs.prototype.Fh=function(){return""};Gs.prototype.toString=function(){return"Const{}"};function Is(a){return a instanceof Gs&&a.constructor===Gs&&a.g===Hs?"":"type_error:Const"}var Hs={};function Js(){this.g="";this.j=Ks}Js.prototype.Gh=!0;var Ks={};Js.prototype.Fh=function(){return this.g};function Ls(a){var b=new Js;b.g=a;return b}var Ms=Ls(""),Ns=/^[-.%_!# a-zA-Z0-9]+$/;function Os(){this.g=Ps}Os.prototype.Gh=!0;Os.prototype.Fh=function(){return""};Os.prototype.Uo=!0;Os.prototype.Lf=function(){return 1};function Qs(a){return a instanceof Os&&a.constructor===Os&&a.g===Ps?"":"type_error:SafeUrl"}var Ps={};function Rs(){this.g="";this.k=Ss;this.j=null}Rs.prototype.Uo=!0;Rs.prototype.Lf=function(){return this.j};Rs.prototype.Gh=!0;Rs.prototype.Fh=function(){return this.g};function Ts(a){return a instanceof Rs&&a.constructor===Rs&&a.k===Ss?a.g:"type_error:SafeHtml"}var Us=/^[a-zA-Z0-9-]+$/,Ys=rc("action","cite","data","formaction","href","manifest","poster","src"),Zs=rc("link","script","style");
function $s(a){function b(a){if(ga(a))C(a,b);else{if(!(a instanceof Rs)){var g=null;a.Uo&&(g=a.Lf());a=at(Ca(a.Gh?a.Fh():String(a)),g)}d+=Ts(a);a=a.Lf();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";C(arguments,b);return at(d,c)}var Ss={};function at(a,b){var c=new Rs;c.g=a;c.j=b;return c}at("",0);function bt(a,b){ga(b)||(b=[b]);var c=ib(b,function(a){return u(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Nl+"s"});ct(a,c.join(","))}
var dt=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(H)return Rc("10.0");var a=document.createElement("div"),b=Kd(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Us.test("div"))throw Error("Invalid tag name <div>.");if("div"in Zs)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!Us.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof
Gs)g=Is(g);else if("style"==e.toLowerCase()){if(!ka(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof Js)){var h="",k=void 0;for(k in g){if(!/^[-_a-zA-Z0-9]+$/.test(k))throw Error("Name allows only [-_a-zA-Z0-9], got: "+k);var l=g[k];null!=l&&(l instanceof Gs?l=Is(l):Ns.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?Ls(h):Ms}h=void 0;h=g instanceof Js&&g.constructor===Js&&g.j===Ks?g.g:"type_error:SafeStyle";g=h}else{if(/^on/i.test(e))throw Error('Attribute "'+
e+'" requires goog.string.Const value, "'+g+'" given.');if(g instanceof Os)g=Qs(g);else if(e.toLowerCase()in Ys)throw Error('Attribute "'+e+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');}b+=" "+e+'="'+Ca(String(g))+'"'}}e=void 0;p(e)?ga(e)||(e=[e]):e=[];!0===ws.div?b+=">":(d=$s(e),b+=">"+Ts(d)+"</div>",d=d.Lf());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=at(b,d);a.innerHTML=Ts(b);a=a.firstChild;b=a.style[$a("transition")];return""!=("undefined"!==typeof b?
b:a.style[Nd(a,"transition")]||"")});function ct(a,b){Md(a,"transition",b)};function et(a,b){(a=$c(a))&&a.style&&(he(a,b),xf(a,"hid",!b))}function ft(a){return(a=$c(a))?!("none"==a.style.display||tf(a,"hid")):!1}function gt(a){C(arguments,function(a){et(a,!0)})}function ht(a){C(arguments,function(a){et(a,!1)})}var it={};function jt(a,b,c){if((a=$c(a))&&a.style){if(b in it)b=it[b];else{var d=Ld(b,document.body.style);b=it[b]=d}b&&(a.style[b]=c)}};function kt(a,b,c){this.id=a;this.type=b.card_type;this.C=b.teaser_text||b.title;this.B=b.teaser_image_url||b.image_url;this.teaserDurationMs=b.teaser_duration_ms||4E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.qa=c;a=b.tracking||{};this.g={tm:a.impression,click:a.click,close:a.close,Wl:a.teaser_impression,zl:a.teaser_click}};function lt(a,b,c){kt.call(this,a,b,c);this.k=b.banner_image_url;this.D=b.image_url;this.o=b.g_plus_url;this.title=b.title;this.description=b.description;this.j=b.meta_info;this.A=b.html_blobs;this.url=as({target:"new",value:b.url})}z(lt,kt);function mt(a,b,c){kt.call(this,a,b,c);this.A=b.profile_image_url;this.o=b.intro;this.k=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.j=b.meta_info;this.url=as({target:"new",value:b.url})}z(mt,kt);function nt(a,b,c){kt.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.description=b.description;this.options=b.options}z(nt,kt);function ot(a,b,c){kt.call(this,a,b,c);this.imageUrl=b.image_url;this.k=b.button_icon_url;this.title=b.title;this.description=b.description;this.o=b.custom_message;this.url=as({target:"new",value:b.url})}z(ot,kt);function pt(a,b,c){ot.call(this,a,b,c);this.F=b.ypc_item_type;this.D=b.ypc_item_id;this.A=b.ypc_flow_type}z(pt,ot);function qt(a,b,c){kt.call(this,a,b,c);this.D=b.profile_image_url;this.A=b.intro;this.o=b.image_url;this.k=b.video_duration;this.title=b.title;this.j=b.meta_info;this.description=b.description;this.url=as({target:"new",value:b.url})}z(qt,kt);function V(a){N.call(this);this.template=new Sq(a);O(this,this.template);this.element=this.template.M();this.L="block";this.W=[]}z(V,N);f=V.prototype;f.M=function(){return this.element};f.Ua=function(a,b){this.template.Ua(a,b)};f.rf=function(){this.template.rf()};f.Xa=function(a,b){Xq(this.template,b||"content",a)};f.show=function(){var a=this.element;a&&(a.style.display=this.L);this.element.removeAttribute("aria-hidden")};
f.hide=function(){var a=this.element;a&&(a.style.display="none");this.element.setAttribute("aria-hidden","true")};function rt(a,b){a.element.setAttribute("role",b)}function st(a,b){a.element.setAttribute("aria-label",b)}f.Uc=function(a){var b=this.element;if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(a,!0,!0);b.dispatchEvent(c)}else c=document.createEventObject(),b.fireEvent("on"+a,c)};f.listen=function(a,b,c){return tt(this,this.element,a,b,c)};
function tt(a,b,c,d,e){b=bg(b,c,x(d,e||a),void 0);a.W.push(b);return b}f.ya=function(a){dg(a)};f.K=function(){this.ya(this.W);delete this.element;V.J.K.call(this)};H&&8<=document.documentMode||Gc&&Rc("1.9.2")||Hc&&Rc("532.1");window.history.pushState&&(!Hc||Hc&&Rc("534.11"));function ut(a,b){if(window.spf){var c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),g=d+6;-1<d&&-1<e&&e>g&&(c=a.substring(g,e),c=c.replace(vt,""),c=c.replace(wt,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else xt(a,b)}function xt(a,b){var c=zt(a),d=document.getElementById(c),e=d&&Af(d,"loaded"),g=d&&!e;if(e)b&&b();else{if(b){var e=Mg(c,b),h=""+la(b);At[h]=e}g||(d=Bt(a,c,function(){Af(d,"loaded")||(yf(d,"loaded","true"),Pg(c),M(ra(Rg,c),0))}))}}
function Bt(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 zt(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Wa(a)}
var vt=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,wt=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,At={};function Ct(a,b){if(window.spf){var c=a.match(Dt);spf.style.load(a,c?c[1]:"",b)}else Et(a,b)}function Et(a,b){var c=Ft(a),d=document.getElementById(c),e=d&&Af(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Mg(c,b),la(b)),g||(d=Gt(a,c,function(){Af(d,"loaded")||(yf(d,"loaded","true"),Pg(c),M(ra(Rg,c),0))})))}
function Gt(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 Ft(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Wa(a)}var Dt=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function Ht(){return!!t("yt.scheduler.instance")}function It(a,b){void 0===b&&(b=NaN);var c=t("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):M(a,b||0)}function Jt(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):Qf(a)}function Kt(){var a=t("yt.scheduler.instance.start");a&&(Bm("jsp")&&!Bm("jsr")&&zm("jsr"),Qf(Lt),a())}var Lt=0;function Mt(){var a=t("yt.scheduler.instance.pause");a&&(a(),Bm("jsp")||zm("jsp"),Qf(Lt),Lt=M(Kt,800))};var Nt=t("yt.pubsub2.instance_")||new Gg;Gg.prototype.subscribe=Gg.prototype.subscribe;Gg.prototype.unsubscribeByKey=Gg.prototype.Ec;Gg.prototype.publish=Gg.prototype.publish;Gg.prototype.clear=Gg.prototype.clear;q("yt.pubsub2.instance_",Nt,void 0);var Ot=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Ot,void 0);var Pt=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Pt,void 0);var Qt=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Qt,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);function Rt(a){(window.ytspf||{}).enabled?spf.navigate(a):window.location=Pe(a,{})+""}function St(a,b,c){var d=Nf("EVENT_ID");d&&(b||(b={}),b.ei||(b.ei=d));if(b&&(d=Je(a),d==Je(window.location.href)||!d&&wa(a,"/"))){var d=He(a),d=Fe(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#");if(d=0>e?d:d.substr(0,e))d="s_tempdata-"+Wa(d),b=b?Oe(b):"",Ih(d,b,5)}if(c)return!1;Rt(a);return!0};var Ni=[],Tt=!1;function Ut(a,b,c){if(Nf("LOGGED_IN"))Vt(function(){t("yt.www.ypc.checkout.showYpcOverlay")(a,b,c)});else{var d=Wt({ypc_it:a,ypc_ii:b,ypc_ft:c});window.location=Pe(d,{})+""}}function Xt(a){Tt||(C(Nf("YPC_LOADER_CALLBACKS"),function(a){(a=t(a))&&a()}),Tt=!0);a&&a()}function Wt(a){a=oh(window.location.href,a);var b=Nf("YPC_SIGNIN_URL"),c=mh(b)["continue"],c=oh(c,{next:a});return oh(b,{"continue":c})}
function Vt(a){if(!Ni.length){var b=Nf("YPC_LOADER_CSS");Ni.push(new Ji(function(a){Ct(b,a)}));var c=Nf("YPC_LOADER_JS");Ni.push(new Ji(function(a){ut(c,a)}));var d=Nf("YPC_LOADER_CONFIGS");Ni.push(new Ji(function(a){xh(d,{mc:function(b,c){Lf(c.configs);Tf(c.messages);a()}})}))}Mi().then(function(){Xt(a)})};function Yt(a){this.g=a}
function Zt(a,b){var c=$t(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.k&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.k+");"}]);var e=b.o?["a","iv-card-gplus",{href:b.o,target:"_blank",title:Uf("YTP_ON_GOOGLE_PLUS")}]:null,c=new V(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.D}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div",["iv-blob-subscribe","iv-card-subscribe"],
""],["p","",b.description]]]),g=c.M();g&&$b(b.A,function(a,b){var c=bd(b,g);C(c,function(b){b.innerHTML=a})},c);return c}
function au(a,b){var c=$t(a,b.url,b.id),d=["ul","iv-card-meta-info"];C(b.j,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.A+");"},b.o],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.k}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Uf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],
["h2","",b.title],d]]];return new V(c)}
function bu(a,b){var c=$t(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.k&&(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.k}]]);return new V(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],["p","",b.description],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",
b.o]]]])}function cu(a,b,c){var d=bu(a,b),e=d.M();mr(a.g.g,e,"click",ra(a.k,b,c),"iv-click-target",a);return d}
function du(a,b){var c=$t(a,b.url,b.id),d=["ul","iv-card-meta-info"];C(b.j,function(a){d.push(["li","",a])});return new V(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.D+");"},b.A],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.o}],["span","iv-card-video-duration",b.k]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
function eu(a,b){var c=["ul","yt-uix-form-list-option"];xb(c,ib(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 V(["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();mr(a.g.g,d,"click",ra(a.j,b),"iv-card-option",a);mr(a.g.g,d,"touchend",ra(a.j,b),"iv-card-option",a);return c}Yt.prototype.j=function(a,b){b.stopPropagation();b.preventDefault();var c={poll_id:a.id,index:Af(b.currentTarget,"index")};wh(this.g.o.Jf,{Pn:{action_poll_vote:1},Ib:c})};
Yt.prototype.k=function(a,b,c){c.stopPropagation();c.preventDefault();Nf("YPC_LOADER_ENABLED")?(this.g.j.pauseVideo(),this.g.j.isFullscreen()&&(b=this.g.j.app,Go(b,!b.g.ib)),this.g.Na.publish("external_overlay_activated"),ns(this.g.logger,a.qa),Ut(a.F,a.D,a.A)):b(c.target,a.url,a.id,a.qa,a.g.click,c)};function $t(a,b,c){return b?fs(b,c,a.g.o.videoId,a.g.k):null};function fu(a,b){ss.call(this,a,b);this.ua=!1;this.G=J("div",["iv-cards-thumbnails","hid"]);this.P=J("button",void 0,J("div"));this.A=J("div","iv-cards-background",J("div"),this.P);this.rd=J("div");this.o=J("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.rd,J("button",{type:"button"},J("div")));this.j=J("div","iv-cards-details");this.B=new Yt(this.context);this.g=[];this.L=null;this.I=0;this.k=-1;this.zb=null;this.F=this.C=!1;L(this.M(),"iv-cards");ts(this,1E3*this.context.o.lengthSeconds-
1200,2147483647,"",this.Nq);this.context.j.addEventListener("onStateChange",x(this.Ye,this));this.context.j.addEventListener("onAdStateChange",x(this.Ye,this))}z(fu,ss);var gu={associated:ot,channel:lt,fundraising:ot,merch:ot,playlist:mt,poll:nt,product:ot,tip:pt,video:qt};function hu(a,b){return new Er(a,[b,a.offsetTop],200,Mr)}function iu(a,b,c){a=new Ir(a,200,Mr);b&&oi(a,"end",b,!1,c);return a}
function ju(a){var b=new Jr(a,200,Mr);oi(b,"end",ra(function(a,b){Md(a,"opacity","");b.target.K()},a));return b}
function ku(a){he(a.A,!1);a.M().appendChild(a.A);hi(a.A,"click",a.Qg,!1,a);hi(a.A,"touchend",a.Qg,!1,a);a.M().appendChild(a.G);he(a.j,!1);a.M().appendChild(a.j);a.M().appendChild(a.o);lu(a);a.context.g.listen(a.o,"click",a.Lm,a);a.context.g.listen(a.o,"touchend",a.Lm,a);a.context.g.listen(a.o,"mouseover",function(){mu(this);this.zb&&this.zb.Ed.stop()},a);a.context.g.listen(a.o,"mouseout",function(){this.zb&&this.zb.Ed.start(200)},a);a.context.Na.subscribe("external_overlay_activated",a.Qg,a);nu(a,
vs(a))}f=fu.prototype;f.En=function(a){var b=a&&a.data&&a.data.card_type;b&&gu[b]&&this.add(new gu[b](a.id,a.data,a.qa))};
f.add=function(a){this.ua||(ku(this),this.ua=!0);var b=(new V(["button",{type:"button",style:"background-image: url("+a.B+");"}])).M();he(b,!1);var c,d;switch(a.type){case "associated":case "fundraising":case "merch":case "product":if(c=bu(this.B,a))d=c.M(),this.Rc(d,a.url,a.id,a.qa,a.g.click);break;case "tip":(c=cu(this.B,a,x(this.ie,this)))&&(d=c.M());break;case "video":if(c=du(this.B,a))d=c.M(),this.Rc(d,a.url,a.id,a.qa,a.g.click);break;case "playlist":if(c=au(this.B,a))d=c.M(),this.Rc(d,a.url,
a.id,a.qa,a.g.click);break;case "channel":if(c=Zt(this.B,a))d=c.M(),this.Rc(d,a.url,a.id,a.qa,a.g.click);break;case "poll":(c=eu(this.B,a))&&(d=c.M())}if(d){var e={Za:a,df:d,cf:b},g=Bb(this.g,e,function(a,b){return a.Za.startMs-b.Za.startMs});0>g&&(g=-(g+1));yb(this.g,g,0,e);rd(this.G,b,g);1<this.g.length&&gt(this.G);c.Ua(this.j,g);c=ra(this.Bu,e);this.context.g.listen(b,"click",c,this);this.context.g.listen(d,"click",c,this);this.context.g.listen(b,"touchend",c,this);this.context.g.listen(d,"touchend",
c,this);ts(this,a.startMs,a.endMs,a.id,ra(this.Cu,a),this.Du);nu(this,vs(this))}};f.ie=function(a,b,c,d,e,g){Ed(a,"article","iv-card-active")?fu.J.ie.call(this,a,b,c,d,e,g):g.preventDefault()};f.Bu=function(a,b){var c=nb(this.g,function(b){return b===a});ou(this,c,!0);Ed(b.target,"button","yt-uix-button")||b.stopPropagation()};f.Cu=function(){++this.I;pu(this)?mu(this):this.F=!0;vf(this.o,"iv-cards-notif-inactive")};f.Du=function(){--this.I;0==this.I&&L(this.o,"iv-cards-notif-inactive")};
function qu(a,b){if(!a.zb){a.wd();var c=new V(["div","",["span","",b.C],["span","iv-card-image",{style:"background-image: url("+b.B+");"}]]);a.rd.innerHTML="";pd(a.rd,ud(c.M()))}}function mu(a){if(!a.zb){var b=ru(a);if(!(0>b)){var c=a.g[b].Za;qu(a,c);be(a.rd,"");var d=a.rd.offsetWidth;(new Gr(a.rd,0,d,400,Mr)).play();ps(a.context.logger,c.qa,c.g.Wl);a.zb={Ed:new gk(function(){this.zb&&((new Gr(this.rd,d,0,200,Mr)).play(),this.zb=null)},c.teaserDurationMs,a),Jl:b};a.zb.Ed.start()}}}
function lu(a){a.wd();ju(a.o)}
f.Lm=function(a){a&&a.stopPropagation();if(!this.C){a=new pr;ae(this.M(),this.context.k.Mc);for(var b=0;b<this.g.length;++b){var c=this.g[b].cf;a.add(ju(c));ge(c,0);he(c,!0);a.add(hu(c,b*(c.offsetWidth+15)))}a.add(iu(this.o));a.add(ju(this.A));for(b=0;b<this.g.length;++b)a.add(ju(this.g[b].df));this.C=!0;oi(a,"end",this.Kl,!1,this);a.play();this.D=y();this.j.style.width=445*this.g.length+"px";he(this.j,!0);ge(this.j,1);this.wd();a=this.zb?this.zb.Jl:Math.max(0,ru(this));ou(this,a,!1);a=this.g[a].Za;
this.zb?rs(this.context.logger,a.qa,a.g.zl):qs(this.context.logger,a.qa);this.L=this.context.g.listen(this.M(),"keydown",this.rr,this)}};f.Kl=function(){this.C=!1};f.rr=function(a){switch(a.keyCode){case 27:this.Qg();a.preventDefault();break;case 37:0<this.k&&ou(this,this.k-1,!0);a.preventDefault();break;case 39:this.k+1<this.g.length&&ou(this,this.k+1,!0);a.preventDefault();break;case 9:ou(this,this.k+1<this.g.length?this.k+1:0,!0),a.preventDefault()}return!1};
f.Qg=function(a){a&&a.stopPropagation();if(!this.C){var b=new pr;C(this.g,function(a){b.add(iu(a.cf));b.add(hu(a.cf,0))});b.add(iu(this.A));b.add(ju(this.o));b.add(iu(this.j,function(){ae(this.M(),"","")},this));this.C=!0;oi(b,"end",this.Kl,!1,this);b.play();a={};a.interval=y()-this.D;var c=this.g[this.k];c&&os(this.context.logger,c.Za.qa,a,c.Za.g.close);this.L&&this.context.g.ya(this.L)}};f.Nq=function(){"none"!=this.j.style.display&&this.context.j.pauseVideo()};
function ou(a,b,c){var d=a.g[b];a.P.focus();if(a.k!=b){if(0<=a.k){var e=a.g[a.k];vf(e.cf,"yt-uix-button-toggled");vf(e.df,"iv-card-active")}a.k=b;L(d.cf,"yt-uix-button-toggled");L(d.df,"iv-card-active");hu(a.j,su(a).x).play();b={};b.nav=c?"1":"0";js(a.context.logger,d.Za.qa,b,d.Za.g.tm)}}function su(a){var b=vs(a),c=b.right-b.left,b=b.bottom-b.top,d=de(a.j);return new F(445*-(isNaN(void 0)?a.k||0:NaN)+(c-445)/2,(b-d.height+(1<a.g.length?63:0))/2)}
f.wd=function(){var a=vs(this);a&&(nu(this,a),ft(this.j)&&(ae(this.M(),this.context.k.Mc),Qd(this.j,su(this))),Qd(this.M(),a.left,a.top))};f.Ye=function(a){pu(this,a)&&this.F&&(this.F=!1,mu(this))};function nu(a,b){var c=(b?445<b.right-b.left&&243<b.bottom-b.top:!1)&&!!a.g.length;et(a.M(),c)}function pu(a,b){return 2==Bo(a.context.j.app).getPlayerType()?1==(isNaN(b)?a.context.j.getAdState():b):1==(isNaN(b)?a.context.j.getPlayerState():b)}
function ru(a){var b=1E3*a.context.j.getCurrentTime();return pb(a.g,function(a){return a.Za.startMs<=b&&b<a.Za.endMs})};function tu(a,b,c){this.g=a;this.o=b;this.j=c}function uu(a,b){var c=vu(a,b.url,b.id),c=["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.D+");"}],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],wu(b),["div","iv-blob-subscribe"]]],c=new V(c),d=c.M();$b(b.A,function(a,b){var c=bd(b,d);C(c,function(b){b.innerHTML=a})},c);xu(a,d,b);return c}
function yu(a,b){var c=vu(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],["img",{src:b.k,alt:""}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Uf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],wu(b)]],c=new V(c),d=c.M();xu(a,d,b);return c}
function zu(a,b){var c=["ul","yt-uix-form-list-option"];xb(c,ib(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",
Uf("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new V(c),d=c.M();mr(a.g.g,d,"click",ra(a.k,b),"yt-uix-button",a);return c}function Au(a,b){var c=vu(a,b.url,b.id),c=new V(["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+");"}],["div",["iv-card-content","iv-click-target"],["h2","",b.title],["a",{href:c},b.o]]]),d=c.M();xu(a,d,b);return c}function Bu(a,b){var c=Au(a,b),d=c.M();mr(a.g.g,d,"click",ra(a.A,b),"iv-click-target",a);return c}
function Cu(a,b){var c=vu(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],["img",{src:b.o,alt:""}],["span","iv-card-video-duration",b.k]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],wu(b)]],c=new V(c),d=c.M();xu(a,d,b);return c}function wu(a){var b=["ul","iv-card-meta-info"];C(a.j,function(a){b.push(["li","",a])});return b}
tu.prototype.k=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;t:{if(d=b.currentTarget.form.elements.radio){if(d.type){d=ih(d);break t}for(var e=0;e<d.length;e++){var g=ih(d[e]);if(g){d=g;break t}}}d=null}wh(this.g.o.Jf,{Pn:{action_poll_vote:1},Ib:{poll_id:c,index:d}})};
tu.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();if(Nf("YPC_LOADER_ENABLED")){this.g.j.pauseVideo();if(this.g.j.isFullscreen()){var c=this.g.j.app;Go(c,!c.g.ib)}this.g.Na.publish("external_overlay_activated");ns(this.g.logger,a.qa,a.g.click);Ut(a.F,a.D,a.A)}else this.j(b.target,a.url,a.id,a.qa,a.g.click,b)};function vu(a,b,c){return b?fs(b,c,a.g.o.videoId,a.g.k):null}function xu(a,b,c){a.o(b,c.url,c.id,c.qa,c.g.click)};function Du(a,b){ss.call(this,a,b);this.g=this.C=!1;this.xi=!0;this.A=new tu(b,x(this.Rc,this),x(this.ie,this));var c=["header","iv-drawer-header",Uf("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]];this.B=(new V(c)).M();this.xd=(new V(["section","iv-drawer"])).M();this.j=(new V(["div","iv-drawer-teaser",["div","iv-drawer-teaser-text"],["button","",["span"]]])).M();this.F=I("iv-drawer-teaser-text",this.j);this.Rb=null;this.k=[];this.o=-1;ts(this,1E3*b.o.lengthSeconds-1200,2147483647,
"",this.fr)}z(Du,ss);var Eu={associated:ot,channel:lt,fundraising:ot,merch:ot,playlist:mt,poll:nt,product:ot,tip:pt,video:qt};
function Fu(a){uf(a.M(),["html5-stop-propagation","iv-drawer-manager"]);a.M().appendChild(a.j);a.M().appendChild(a.B);a.M().appendChild(a.xd);mr(a.context.g,a.B,"click",a.Gu,"iv-drawer-close-button",a);a.context.g.listen(a.xd,"scroll",a.Hu,a);a.context.g.listen(a.j,"click",a.Iu,a);a.context.g.listen(a.j,"mouseover",function(){this.Rb&&this.Rb.Ed.stop()},a);a.context.g.listen(a.j,"mouseout",function(){this.Rb&&this.Rb.Ed.start()},a);a.context.Na.subscribe("onHideControls",function(){this.xi=!0},a);
a.context.Na.subscribe("onShowControls",function(){this.xi=!1},a);a.context.Na.subscribe("external_overlay_activated",a.Gj,a)}f=Du.prototype;f.En=function(a){var b=a&&a.data&&a.data.card_type;b&&Eu[b]&&this.add(new Eu[b](a.id,a.data,a.qa))};
f.add=function(a){this.C||(Fu(this),this.C=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=Au(this.A,a);break;case "tip":b=Bu(this.A,a);break;case "video":b=Cu(this.A,a);break;case "playlist":b=yu(this.A,a);break;case "channel":b=uu(this.A,a);break;case "poll":b=zu(this.A,a)}if(b){c=b.M();c={Za:a,df:c};var d=Bb(this.k,c,function(a,b){return a.Za.startMs-b.Za.startMs});0>d&&(d=-(d+1));yb(this.k,d,0,c);b.Ua(this.xd,d);ts(this,a.startMs,a.startMs+1,a.id,
ra(this.Jw,c));this.wd()}};function Gu(a){if(!(a.Rb||a.g||0>a.o)){L(a.j,"iv-drawer-teaser-active");var b=a.k[a.o].Za;a.Rb={Ed:new gk(a.gm,b.endMs-b.startMs,a),Jl:a.o};a.Rb.Ed.start();b=Hu(a);ps(a.context.logger,b.qa,b.g.Wl)}}f.gm=function(){this.Rb&&(vf(this.j,"iv-drawer-teaser-active"),this.Rb=null)};f.Gj=function(a){a&&a.stopPropagation();vf(this.M(),"iv-drawer-open");this.g=!1;var b=Hu(this);a=this.context.logger;if(b=b.qa)b=ks(a,b),b["iv-event"]=10,b["a-type"]=51,ms(a,b,void 0)};
f.Hu=function(){xf(this.M(),"iv-drawer-scrolled",0<this.xd.scrollTop)};f.Gu=function(a){var b=Hu(this),c=this.context.logger,d=b.qa,b=b.g.close;d&&(d=ks(c,d),d["iv-event"]=4,d["a-type"]=51,ms(c,d,b));this.Gj(a)};
f.Iu=function(a){var b=Hu(this);if(this.g){var c=this.context.logger;if(b=b.qa)b=ks(c,b),b["iv-event"]=4,b["a-type"]=50,ms(c,b,void 0);this.Gj(a)}else if(this.Rb?rs(this.context.logger,b.qa,b.g.zl):qs(this.context.logger,b.qa),a&&a.stopPropagation(),this.gm(),L(this.M(),"iv-drawer-open"),this.g=!0,this.D=y(),c=Hu(this),a=this.context.logger,c=c.qa)c=ks(a,c),c["iv-event"]=7,c["a-type"]=51,ms(a,c,void 0)};f.fr=function(){this.g&&this.context.j.pauseVideo()};
f.Jw=function(a){if(!this.Rb){var b=nb(this.k,function(b){return b===a});this.o!=b&&(this.o=b,Cd(this.F,a.Za.C));(2==Bo(this.context.j.app).getPlayerType()?1==(isNaN(void 0)?this.context.j.getAdState():void 0):1==(isNaN(void 0)?this.context.j.getPlayerState():void 0))&&Gu(this);this.g&&!this.xi||Iu(this,b)}};
function Iu(a,b){var c=new zr([0,a.xd.scrollTop],[0,a.k[b].df.offsetTop],600,Lr);a.context.g.listen(c,"animate",function(a){this.xd.scrollTop=a.y},a);a.context.g.listen(c,"finish",function(a){this.xd.scrollTop=a.y},a);c.play();a.g&&(c=Hu(a),js(a.context.logger,c.qa,c.g.tm))}f.wd=function(){var a;a=this.M();(a=Ed(a,null,"ytp-iv-player-content"))?(a=de(a),a=185<a.width&&185<a.height):a=!1;a=a&&!!this.k.length;et(this.M(),a)};function Hu(a){var b=Math.max(0,a.o);return a.k[b].Za};function Ju(a,b,c){ss.call(this,a,b);this.annotation=c;this.isActive=!1}z(Ju,ss);Ju.prototype.gh=function(){Ju.J.gh.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&ts(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.hide)};function Ku(a,b,c){Ju.call(this,a,b,c);this.g=null;this.k=!1;this.eh=null;this.Ac=!1;this.j=0}z(Ku,Ju);
function Lu(a){L(a.M(),"iv-branding");var b=a.annotation.data;a.j=b.image_width;a.g=J("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=J("div","branding-img-container",a.g);a.M().appendChild(c);var d=J("div","iv-branding-context-name");Cd(d,b.channel_name);var e=J("div","iv-branding-context-subscribe");a.annotation.k?e.innerHTML=a.annotation.k:b.num_subscribers&&Cd(e,b.num_subscribers);c=J("div","iv-branding-context-subscribe-caret");
d=J("div",["branding-context-container-inner","iv-view-target"],c,d,e);e=J("div","branding-context-container-outer",d);Md(e,"right",a.j+"px");a.M().appendChild(e);a.Rc(a.M(),Mu(a.annotation),a.annotation.id,a.annotation.qa);a.eh=new gk(ra(function(a){var b=de(a.parentElement);(new Fr(a.parentElement,[b.width,b.height],[0,0],200,Kr)).play();this.Ac=!1},d),500,a);mr(a.context.g,a.M(),"mouseover",ra(function(a,b,c){this.eh.stop();if(!this.Ac){var d=de(a);be(a,d.width);c=Math.min(d.height,c);c=Math.max(c/
2-10,0);Qd(b,d.width,c);this.Ac=!0;b=9;d=de(a);c=de(a.parentElement);(new Fr(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Kr)).play()}},d,c,b.image_height),"iv-view-target",a);mr(a.context.g,a.M(),"mouseout",x(a.eh.start,a.eh),"iv-view-target",a)}
Ku.prototype.show=function(){if(!this.isActive){Ku.J.show.call(this);this.k||(Lu(this),this.k=!0);js(this.context.logger,this.annotation.qa);gt(this.M());this.isActive=!0;var a=this.g,b,c=fe(a).width,d=ia(void 0)?void 0:c;b=b||0;Qd(a,d);b=new Dr(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Kr);hi(b,"begin",ra(gt,a));b.play()}};Ku.prototype.hide=function(){this.isActive&&(ht(this.M()),this.isActive=!1)};function Nu(a,b,c,d,e,g){this.g=a;this.k=b;this.o=c;this.logger=d;this.j=e;this.Na=g};function Ou(a){this.value=a};function Pu(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Qu={CLOSE:"close",PB:"openUrl",PAUSE:"pause",gy:"subscribe"},Ru={CLICK:"click",CLOSE:"close",hB:"hidden",eC:"rollOut",ey:"rollOver",fy:"shown"};function Su(a){if(!a)return null;var b=Rr(a.type,Qu),c=Rr(a.trigger,Ru),d=as(Nr(a.url));Nr(a.subscribeData);(a=Nr(a.duration))?(a=Vr(a.value),a=new Ou(a)):a=null;return b?new Pu(b,c,d,a):null};function Tu(a,b,c,d,e,g,h,k,l,n,r,v,s,w){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.I=l;this.F=n;this.G=r;this.g=v;this.j=s;this.N=w}
function Uu(a){if(!a)return null;var b=Pr(a.fgColor,"#1A1A1A"),c=Pr(a.bgColor,"#FFF"),d=Pr(a.borderColor,"#000"),e=Ur(a.borderWidth,10,0,5,!1,0),g=Ur(a.bgAlpha,10,0,1,!1,.8);Ur(a.borderAlpha,10,0,1,!1,.2);Ur(a.gloss,16,0,255,!1,0);var h=Pr(a.highlightFontColor,"#F2F2F2"),k=Ur(a.highlightWidth,10,0,5,!1,3),l=Qr(a.textAlign),n=Ur(a.textSize,10,3.3,30.1,!0,3.6107),r=Qr(a.fontWeight),v=Xr(a.padding),s=Yr(a.effects),w=Ur(a.cornerRadius,10,0,10,!0,0);var R=Nr(a.gradient);if(R){a=Ur(R.x1,10,0,100,!0,0);
var da=Ur(R.y1,10,0,100,!0,0),oa=Ur(R.x2,10,0,100,!0,100),Mj=Ur(R.y2,10,0,100,!0,100),Xe=Pr(R.color1,"#FFF"),gn=Pr(R.color2,"#000"),Vs=Ur(R.opacity1,10,0,100,!0,100),R=Ur(R.opacity2,10,0,100,!0,0);a=new Vu(a,da,oa,Mj,Xe,gn,Vs,R)}else a=null;return new Tu(b,c,d,e,g,h,k,l,n,r,v,s,w,a)}function Vu(a,b,c,d,e,g,h,k){this.A=a;this.C=b;this.B=c;this.D=d;this.g=e;this.j=g;this.k=h;this.o=k};function Wu(a,b){this.g=a;this.videoId=b};var Xu={WC:"xx",XC:"xy",aD:"yx",bD:"yy"};function Yu(a,b,c){var d=a.C,e=a.D,g=a.g?a.g:"xy",h=Zu(c,a.o,g);a=$u(c,a.k,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new Wb(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 Zu(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function $u(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function av(a,b,c,d,e,g,h,k,l,n,r){this.x=a;this.y=b;this.A=c;this.h=d;this.j=e;this.B=g;this.C=h;this.D=k;this.o=l;this.k=n;this.g=r}function bv(a,b){if(!a)return null;var c=Tr(a.x,0),d=Tr(a.y,0),e=Tr(a.w,0),g=Tr(a.h,0),h=Vr(a.t),k=Tr(a.scaleSlope,1);return b(c,d,e,g,h,Tr(a.d,0),Tr(a.px,0),Tr(a.py,0),Tr(a.scaleSlopeX,k),Tr(a.scaleSlopeY,k),Rr(a.scaleDimension,Xu,"xy"))}
function cv(a,b,c){c=c?cv(c,b):null;a=Yu(a,new Wb(a.x,a.y,a.A,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=Sb(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Sb(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function dv(a){return a?bv(a,function(a,c,d,e,g,h,k,l,n,r,v){return new av(a,c,d,e,g,h,k,l,n,r,v)}):null};function ev(a,b,c,d,e,g,h,k,l,n,r,v,s){av.call(this,a,b,c,d,e,k,l,n,r,v,s);this.F=g;this.G=h}z(ev,av);function fv(a){if(!a)return null;var b=Tr(a.sx,0),c=Tr(a.sy,0);return bv(a,function(a,e,g,h,k,l,n,r,v,s,w){return new ev(a,e,g,h,k,b,c,l,n,r,v,s,w)})};function gv(a,b,c,d){this.type=a;this.j=b;this.g=c;this.k=d}var hv={Rx:"anchored",ZB:"rect",iC:"shapeless"};function iv(a){if(!a)return null;var b=Rr(a.type,hv,"rect"),c=Wr(a.rectRegion,dv),d=Wr(a.anchoredRegion,fv);a=Wr(a.shapelessRegion,dv);return new gv(b,c,d,a)}function jv(a){return a.j&&a.j.length?a.j[0]:a.g&&a.g.length?a.g[0]:a.k&&a.k.length?a.k[0]:null};function kv(a,b){this.j=a;this.g=b};function lv(a,b){this.state=a;this.g=b}var mv={CLOSED:"closed",QB:"playerControlShow",ey:"rollOver",fy:"shown"};function nv(a){if(!a)return null;var b=Rr(a.state,mv);a=Or(a.ref);return b?new lv(b,a):null};function ov(a,b,c,d){this.g=a||[];this.k=b||[];this.o=c;this.j=d;this.value=!1}function pv(a){if(!a)return null;var b=Wr(a.condition,nv),c=Wr(a.notCondition,nv),d=Sr(a.show_delay,!1);a=Sr(a.hide_delay,!1);return b||c?new ov(b,c,d,a):null}function qv(a,b,c){C(a.g,ra(b,!1),c);C(a.k,ra(b,!0),c)};function rv(a,b,c,d,e,g,h,k,l,n,r,v,s,w,R,da){this.id=a;this.author=b;this.type=c;this.style=d;this.B=e;this.j=g;this.A=h||[];this.D=k||[];this.g=l;this.F=n;this.o=r;this.C=v;this.k=w;this.data=R;this.qa=da}
var sv={Rx:"anchored",Sx:"branding",gA:"channel",nA:"cta",kB:"highlightText",xB:"label",SB:"playlist",TB:"popup",pC:"speech",gy:"subscribe",zC:"title",VIDEO:"video",QC:"vote",SC:"website"},tv={Sx:"branding",Zz:"card",jB:"highlight",Vo:"image",MARKER:"marker",PAUSE:"pause",WB:"promotion",Vj:"survey",TEXT:"text",TC:"widget"},uv={NC:"video_relative",RB:"player_relative"};
function vv(a){if(!a)return null;var b=Or(a.id),c=Or(a.author),d=Rr(a.type,tv),e=Rr(a.style,sv),g=Qr(Nr(a.TEXT)),h=Qr(a.data),h=0!=h.length?Kb(h):{},k;var l=Nr(a.segment);l?(Or(l.timeRelative),k=Or(l.spaceRelative),k=(l=Wr(l.movingRegion,iv))?new kv(k,l):null):k=null;var l=Wr(a.action,Su),n=Wr(a.trigger,pv),r=Uu(Nr(a.appearance));r||(r=Uu({}));var v=Rr(a.coordinate_system,uv,"video_relative"),s;s=(s=Nr(a.image_source))?new Wu(Qr(s.standard_url),Qr(s.video_id)):null;var w=Sr(a.closeable,!0),R=Qr(a.html_blob);
a=Qr(a.log_data);return b&&d?new rv(b,c,d,e,g,k,l,n,r,v,s,w,0,R,h,a):null}function Mu(a){return(a=wv(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}rv.prototype.showLinkIcon=function(){return xv(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function yv(a){return xv(a,function(a){return"click"==a.trigger})}function xv(a,b){return kb(a.A,b,void 0)}function zv(a,b,c){C(a.A,b,c)}function wv(a,b){return D(a.A,b,void 0)}function Av(a,b,c){C(a.D,b,c)}
function Bv(a,b){ib(a.D,b,void 0)}function Cv(a){return(a=Dv(a))?jv(a):null}function Dv(a){a.j?(a=a.j,a=a.g.length?a.g[0]:null):a=null;return a}function Ev(a,b){var c=Cv(a);return c&&b?$u(b,c.k,c.g?c.g:"xy"):1};function Fv(a,b,c){Ju.call(this,a,b,c);this.Sg=this.j=this.o=!1;this.k=5E3;this.g=null;this.ue=J("div","iv-promo-contents")}z(Fv,Ju);
function Gv(a){var b=a.annotation.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=J("div","iv-promo-img");var e=J("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration&&!b.is_live?(e=J("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=J("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=J("div","iv-promo-txt"),
g,h,k;switch(a.annotation.style){case "cta":case "website":g=J("p","iv-click-target",J("strong",null,b.text_line_1));h=J("p",["iv-promo-link","iv-click-target"],b.text_line_2);L(e,"iv-click-target");break;case "playlist":case "video":g=J("p","iv-click-target",b.text_line_1);h=J("p","iv-click-target",J("strong",null,b.text_line_2));b.is_live&&(g=h,h=J("span",["yt-badge","iv-promo-badge-live","iv-click-target"],Uf("YTP_LIVE_NOW")));L(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
J("p",null,J("strong",null,b.text_line_1)),h=J("p",null,b.text_line_2),k=J("div","iv-promo-button"),b=J("button",["yt-uix-button","yt-uix-button-primary"],J("span","yt-uix-button-content",b.button_text)),a.context.g.listen(b,"click",function(a){a.stopPropagation();ns(this.context.logger,this.annotation.qa,null,{contest_vote:"1"});var b=this.annotation.data;a=I("iv-promo-txt",this.ue);var c=I("iv-promo-button",this.ue),d=J("div",["iv-promo-txt","iv-click-target"]),e=J("p","iv-click-target",J("strong",
null,b.text_line_3)),b=J("p","iv-click-target",b.text_line_4);pd(d,e,b);sd(c);td(d,a);vf(this.M(),"iv-promo-with-button");this.Rc(this.ue,Mu(this.annotation),this.annotation.id,this.annotation.qa)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.ue.appendChild(e);k&&a.ue.appendChild(k);g=J("div","iv-promo-actions");h=J("div","iv-promo-expand");g.appendChild(h);a.context.g.listen(a.M(),"mouseover",a.Cn,a);a.context.g.listen(h,"touchend",function(a){a.stopPropagation();
this.Cn();this.Sg=!1},a);a.context.g.listen(a.M(),"mouseout",a.A,a);h=J("div","iv-promo-close");g.appendChild(h);Hv(a,x(function(){this.hide()},a),h);uf(a.M(),c);d&&od(a.M(),d);od(a.M(),a.ue);od(a.M(),g);a.Rc(a.M(),Mu(a.annotation),a.annotation.id,a.annotation.qa)}
Fv.prototype.show=function(){this.isActive||(Fv.J.show.call(this),this.o||(Gv(this),this.o=!0),gt(this.M()),this.annotation&&this.annotation.qa&&js(this.context.logger,this.annotation.qa),vf(this.M(),"iv-promo-inactive"),this.isActive=!0,this.g&&($i(this.g),this.g=null),Iv(this),Jv(this,this.k))};Fv.prototype.hide=function(){this.isActive&&(L(this.M(),"iv-promo-inactive"),this.isActive=!1)};Fv.prototype.Cn=function(){this.Sg=!0;Iv(this);Jv(this,500)};Fv.prototype.A=function(){this.Sg=!1;Kv(this)};
function Kv(a){a.j||a.Sg||a.g||(L(a.M(),"iv-promo-collapsed"),a.j=!0)}function Iv(a){a.j&&(vf(a.M(),"iv-promo-collapsed"),a.j=!1)}function Jv(a,b){a.g||(a.g=Zi(function(){this.g&&($i(this.g),this.g=null);Kv(this)},b,a))}function Hv(a,b,c){function d(a){os(this.context.logger,this.annotation.qa);b(a);a.stopPropagation()}a.context.g.listen(c,"click",x(d,a));a.context.g.listen(c,"touchend",x(d,a))};function Lv(a,b,c){this.g={};this.j=!1;this.A="ivTrigger:"+a;this.k=c;qv(b,function(a,b){var c=Mv(b.state,b.g);this.k.subscribe(c,x(this.o,this,c,a));this.g[c]=a},this)}Lv.prototype.o=function(a,b,c,d){this.g[a]=b?!c:c;a=cc(this.g,function(a){return a});this.j!=a&&(this.j=a,this.k.publish(this.A,a,d))};function Mv(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Nv(a,b,c){this.k=a;this.annotation=b;this.g=c;this.j=null;this.A=this.isVisible=!1;Ov(b,a)}function Ov(a,b){Bv(a,function(c){return new Lv(a.id,c,b)})}Nv.prototype.hide=function(){this.isVisible=!1;this.k.unsubscribe("onResize",this.o,this);this.g&&this.g.hide()};Nv.prototype.show=function(){this.isVisible=!0;this.g&&this.g.show();this.k.subscribe("onResize",this.o,this)};
Nv.prototype.destroy=function(){this.k.unsubscribe("onResize",this.o,this);if(this.g){var a=this.g;a.D.removeAll();a.j&&sd(a.j);a.k&&a.k.M()&&sd(a.k.M())}Pv(this)};function Pv(a){a.j&&(a.j.stop(),a.j=null)}Nv.prototype.o=function(){this.g&&Qv(this.g)};function Rv(){};function Sv(a,b,c,d,e,g,h,k){this.A=a;this.C=b;this.B=c;this.D=d;this.g=e;this.j=g;this.k=p(h)?h:null;this.o=p(k)?k:null}z(Sv,Rv);function Tv(){this.$=[];this.ba=[];this.Fc=[]}Tv.prototype.Ke=null;Tv.prototype.jc=null;Tv.prototype.Ch=!0;var Uv=[2,2,6,6,0];f=Tv.prototype;f.clear=function(){this.$.length=0;this.ba.length=0;this.Fc.length=0;delete this.Ke;delete this.jc;delete this.Ch;return this};function Vv(a,b,c){0==db(a.$)?a.Fc.length-=2:(a.$.push(0),a.ba.push(1));a.Fc.push(b,c);a.jc=a.Ke=[b,c]}
f.Pa=function(a){var b=db(this.$);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.$.push(1),this.ba.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Fc.push(c,d)}this.ba[this.ba.length-1]+=b/2;this.jc=[c,d]};f.close=function(){var a=db(this.$);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.$.push(4),this.ba.push(1),this.jc=this.Ke);return this};
function Wv(a,b,c,d,e){var g=a.jc[0]-b*Math.cos(d*Math.PI/180),h=a.jc[1]-c*Math.sin(d*Math.PI/180),g=g+b*Math.cos((d+e)*Math.PI/180),h=h+c*Math.sin((d+e)*Math.PI/180);a.$.push(3);a.ba.push(1);a.Fc.push(b,c,d,e,g,h);a.Ch=!1;a.jc=[g,h]}function Xv(a,b){for(var c=a.Fc,d=0,e=0,g=a.$.length;e<g;e++){var h=a.$[e],k=Uv[h]*a.ba[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.$=this.$.concat();a.ba=this.ba.concat();a.Fc=this.Fc.concat();a.Ke=this.Ke&&this.Ke.concat();a.jc=this.jc&&this.jc.concat();a.Ch=this.Ch;return a};f.isEmpty=function(){return 0==this.$.length};function Yv(a,b){this.F=a;this.G=null==b?1:b}z(Yv,Rv);function Zv(a,b){this.g=a;this.j=b};function $v(){}ca($v);$v.prototype.g=0;function aw(a){P.call(this);this.I=a||Xc();this.pa=null;this.Fd=!1;this.g=null;this.A=void 0;this.B=this.D=this.F=null}z(aw,P);f=aw.prototype;f.rw=$v.getInstance();f.getId=function(){return this.pa||(this.pa=":"+(this.rw.g++).toString(36))};f.M=function(){return this.g};f.ng=function(a){if(this.F&&this.F!=a)throw Error("Method not supported");aw.J.ng.call(this,a)};f.xo=function(){this.g=this.I.createElement("div")};
f.Hf=function(){bw(this,function(a){a.Fd&&a.Hf()});this.A&&this.A.removeAll();this.Fd=!1};f.K=function(){this.Fd&&this.Hf();this.A&&(this.A.dispose(),delete this.A);bw(this,function(a){a.dispose()});this.g&&sd(this.g);this.F=this.g=this.B=this.D=null;aw.J.K.call(this)};f.fc=function(){return this.g};function bw(a,b){a.D&&C(a.D,b,void 0)}
f.removeChild=function(a,b){if(a){var c=u(a)?a:a.getId();a=this.B&&c?mc(this.B,c)||null:null;if(c&&a){lc(this.B,c);tb(this.D,a);b&&(a.Hf(),a.g&&sd(a.g));c=a;if(null==c)throw Error("Unable to set parent component");c.F=null;aw.J.ng.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function cw(a,b,c,d,e){aw.call(this,e);this.width=a;this.height=b;this.o=c||null;this.G=d||null}z(cw,aw);cw.prototype.k=null;cw.prototype.Qf=function(){return this.Fd?ce(this.M()):ia(this.width)&&ia(this.height)?new G(this.width,this.height):null};function dw(a){var b=a.Qf();return b?b.width/(a.o?new G(a.o,a.G):a.Qf()).width:0}cw.prototype.resume=function(){};function ew(a,b){P.call(this);this.Of=a;this.qi=b;this[Wh]=!1}z(ew,P);f=ew.prototype;f.qi=null;f.Of=null;f.M=function(){return this.Of};f.addEventListener=function(a,b,c,d){hi(this.Of,a,b,c,d)};f.removeEventListener=function(a,b,c,d){pi(this.Of,a,b,c,d)};f.K=function(){ew.J.K.call(this);var a=this.Of;if(a)if(Xh(a))a.removeAllListeners(void 0);else if(a=ki(a)){var b=0,c;for(c in a.g)for(var d=a.g[c].concat(),e=0;e<d.length;++e)qi(d[e])&&++b}};function fw(a,b,c,d){ew.call(this,a,b);a=this.qi;b=this.M();c?(b.setAttribute("stroke",c.j),b.setAttribute("stroke-opacity",1),c=c.g,u(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/dw(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.qi;a=this.M();if(d instanceof Yv)a.setAttribute("fill",d.F),a.setAttribute("fill-opacity",d.G);else if(d instanceof Sv){b="lg-"+d.A+"-"+d.C+"-"+d.B+"-"+d.D+"-"+d.g+"-"+d.j;var e=gw(c,b);if(!e){var e=hw(c,"linearGradient",
{x1:d.A,y1:d.C,x2:d.B,y2:d.D,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.g;ia(d.k)&&(g+=";stop-opacity:"+d.k);g=hw(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.j;ia(d.o)&&(g+=";stop-opacity:"+d.o);d=hw(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=iw(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}z(fw,ew);function jw(a,b){ew.call(this,a,b)}z(jw,ew);function kw(a,b){ew.call(this,a,b)}z(kw,ew);function lw(a,b,c,d){fw.call(this,a,b,c,d)}z(lw,fw);function mw(a,b){ew.call(this,a,b)}z(mw,jw);mw.prototype.clear=function(){qd(this.M())};function nw(a,b,c,d){fw.call(this,a,b,c,d)}z(nw,lw);function ow(a,b){ew.call(this,a,b)}z(ow,kw);function pw(a,b,c,d,e){cw.call(this,a,b,c,d,e);this.j={};this.N=Hc&&!Rc(526);this.H=new aj(this)}var qw;z(pw,cw);var rw=0;function hw(a,b,c){a=a.I.g.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=pw.prototype;
f.xo=function(){var a=hw(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=hw(this,"g");this.C=hw(this,"defs");this.k=new mw(b,this);a.appendChild(this.C);a.appendChild(b);this.g=a;this.o&&(this.M().setAttribute("preserveAspectRatio","none"),this.N?this.Tm():this.M().setAttribute("viewBox","0 0 "+(this.o?this.o+" "+this.G:"")))};
f.Tm=function(){if(this.Fd){var a=this.Qf();if(0==a.width)this.M().style.visibility="hidden";else{this.M().style.visibility="";var b=a.width/this.o,a=a.height/this.G;this.k.M().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Qf=function(){if(!Gc)return this.Fd?ce(this.M()):pw.J.Qf.call(this);var a=this.width,b=this.height,c=u(a)&&-1!=a.indexOf("%"),d=u(b)&&-1!=b.indexOf("%");if(!this.Fd&&(c||d))return null;var e,g;c&&(e=this.M().parentNode,g=de(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.M().parentNode,g=g||de(e),b=parseFloat(b)*g.height/100);return new G(a,b)};f.clear=function(){this.k.clear();qd(this.C);this.j={}};function sw(a,b,c,d){b=hw(a,"path",{d:tw(b)});c=new nw(b,a,c,d);a.k.M().appendChild(c.M())}
function tw(a){var b=[];Xv(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 iw(a,b,c){if(b in a.j)return a.j[b];var d="_svgdef_"+rw++;c.setAttribute("id",d);a.j[b]=d;a.C.appendChild(c);return d}
function gw(a,b){return b in a.j?a.j[b]:null}f.Hf=function(){pw.J.Hf.call(this);this.N&&this.H.ya(uw(),"tick",this.Tm)};f.K=function(){delete this.j;delete this.C;delete this.k;this.H.dispose();delete this.H;pw.J.K.call(this)};function uw(){qw||(qw=new Xi(400),qw.start());return qw};function vw(a,b,c){this.g=a;this.j=0;this.C=b;this.D=c||70;this.k=!1}vw.prototype.start=function(a){this.B=y();this.j=a;this.A=this.B+this.j;this.k=!0;gt(this.g);Rf(this.o);this.o=Pf(x(this.F,this),this.D)};vw.prototype.stop=function(){this.k=!1;ht(this.g);this.o&&Rf(this.o)};
vw.prototype.F=function(){if(this.k){var a=y(),b;b=0==this.j||a>=this.A?0:1-(a-this.B)/this.j;var c=I("countdowntimer-diminishing-pieslice",this.g),d;d=cd("svg",null,this.g);d=d.length?d[0]:null;!d&&this.g.querySelectorAll&&(d=this.g.querySelectorAll("svg"),d=d.length?d[0]:null);d=parseInt(d.getAttribute("width"),10);var e=new Tv,g=d/2-5;Vv(e,d/2,d/2);e.Pa(d/2,5);Wv(e,g,g,-90,360*-b);e.Pa(d/2,d/2);e.close();c.setAttribute("d",tw(e));a>=this.A&&(this.stop(),this.C&&this.C())}};function ww(){N.call(this);this.element=this.label=null;this.priority=0;this.k=null}z(ww,N);ww.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};ww.prototype.ya=function(a){this.element.ya(a)};function xw(a,b,c,d){V.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.L="inline-block";this.G=this.o=this.A=null;this.k=!1;this.listen("click",this.ow);this.listen("keypress",this.qw);x(this.mw,this);rt(this,"button");b&&yw(this,b);c&&st(this,c);d&&(this.o=d)}z(xw,V);function yw(a,b){b&&""!=b&&(a.A&&vf(a.element,a.A),a.A=b,L(a.element,b))}function zw(a,b){a.G=b;Xq(a.template,"tabindex",b)}f=xw.prototype;
f.mw=function(){return this.k?null:this.o?this.o:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.G});vf(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});L(this.element,"ytp-disabled")};f.ow=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};f.qw=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Uc("click")};f.K=function(){xw.J.K.call(this)};function Aw(a,b,c){V.call(this,["div","ytp-segmented-control"]);this.j=-1;this.g=[];if(null!=b)for(Fg(this.g),this.g=[],a=0;a<b.length;a++){var d=new xw;rt(d,"radio");this.g.push(d);c?d.Xa(["div",b[a]]):d.Xa(b[a]);0!=a&&L(d.M(),"ytp-segmented-control-other");Bw(d,a==this.j);d.listen("click",ra(this.k,a),this);d.Ua(this.element)}rt(this,"radiogroup")}z(Aw,V);
Aw.prototype.Ua=function(a,b){Aw.J.Ua.call(this,a,b);for(var c=0,d=0;d<this.g.length;d++)c=Math.max(c,ce(this.g[d].M()).width);if(c)for(d=0;d<this.g.length;d++)be(this.g[d].M(),c)};function Cw(a,b){a.j=b;for(var c=0;c<a.g.length;c++)Bw(a.g[c],c==b)}Aw.prototype.getSelected=function(){return this.j};
function Bw(a,b){var c=a.M();b?(vf(c,"ytp-segmented-control-deselected"),L(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(vf(c,"ytp-segmented-control-selected"),L(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}Aw.prototype.k=function(a){a!=this.j&&(Cw(this,a),this.Uc("change"))};Aw.prototype.K=function(){Fg(this.g);this.g=[];Aw.J.K.call(this)};function Dw(){ww.call(this);this.label=Ew(0,"YTP_ANNOTATIONS");this.element=new Aw(0,[Ew(0,"YTP_ON"),Ew(0,"YTP_OFF")]);O(this,this.element);st(this.element,this.label);for(var a=this.element,b=0;b<a.g.length;b++)zw(a.g[b],2200);this.priority=3;Cw(this.element,1)}z(Dw,ww);Dw.prototype.getSelected=function(){return this.element.getSelected()};function Fw(a,b){this.start=a<b?a:b;this.end=a<b?b:a}Fw.prototype.clone=function(){return new Fw(this.start,this.end)};function Gw(){this.g=!1;this.A=this.k=null}function Hw(a,b,c){a.k?(ae(a.k.M(),b,c),a.k.clear()):(b=new pw(b,c,void 0,void 0,void 0),a.k=b,a.k.xo(),a.A=J("div"),b=a.k.M(),a.A.appendChild(b));return a.k}Gw.prototype.M=function(){return this.A};Gw.prototype.j=function(){};function Iw(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&$b(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function Jw(a,b){var c;c=":"+($v.getInstance().g++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function Kw(a,b){var c=Jw(a,Iw("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=Jw(a,Iw("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},Iw("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=Jw(a,Iw("feComposite",{"in":c,in2:b,operator:"in"}));return Jw(a,Iw("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function Lw(a,b){var c=Jw(a,Iw("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=Jw(a,Iw("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=Jw(a,Iw("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=Jw(a,Iw("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=Jw(a,Iw("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=Jw(a,Iw("feComposite",{operator:"out","in":c,in2:d}));return Jw(a,Iw("feComposite",{operator:"over","in":b,in2:c}))}
function Mw(a,b){return b}function Nw(a){var b=Iw("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";C(a,function(a){t:{switch(a){case "bevel":a=Kw;break t;case "dropshadow":a=Lw;break t}a=Mw}c=a(b,c)});return b}function Ow(a){a=hb(a,function(a){return a in Pw});Db(a,function(a,c){return Pw[a]-Pw[c]});return a}function Qw(a){return D(a,function(a){return"dropshadow"==a})?new Ub(0,7,7,0):new Ub(0,0,0,0)}var Pw={bevel:1,dropshadow:2};function Rw(a,b,c,d,e){b=Sw(b,c,d?d.g/2+1:0);sw(a,b,d,e)}function Sw(a,b,c){var d=new Tv;Vv(d,a.left+b+c,a.top+c);d.Pa(a.left+a.width-b-c,a.top+c);Wv(d,b,b,-90,90);d.Pa(a.left+a.width-c,a.top+a.height-b-c);Wv(d,b,b,0,90);d.Pa(a.left+b+c,a.top+a.height-c);Wv(d,b,b,90,90);d.Pa(a.left+c,a.top+b+c);Wv(d,b,b,180,90);d.close();return d}function Tw(a,b,c,d){var e=a.N;e?a=new Sv(e.A*b/100,e.C*c/100,e.B*b/100,e.D*c/100,e.g,e.j,e.k,e.o):(b=Uw(d,a.k),a=new Yv(a.A,b));return a}
function Uw(a,b){return a?Math.max(b,.9):b}function Vw(a,b){var c=new Ub(a.top,a.left+a.width,a.top+a.height,a.left),d=Qw(b);ka(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 Xb(c)}
function Ww(a,b,c){if(c.length&&(b=cd("g",void 0,b),b.length)){var d=Ow(c);if(d){c="effects:"+(d?d.join("|"):"");var e=gw(a,c);e?a=e:(d=Nw(d),a=0<d.childNodes.length?iw(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function Xw(){Gw.call(this);this.o=0}z(Xw,Gw);
Xw.prototype.j=function(a,b,c){var d=a.g,e=d.D,g=this.g&&yv(a),e=(e+=g?1:0)?new Zv(e,g?d.B:d.C):null;if(g=Cv(a)){var h=cv(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=Dv(a))&&a.g?a.g:null)&&a.length?a[0]:null){var l;c=c?cv(c,b):null;a=Yu(k,new Wb(k.F,k.G,k.A,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new F(a.left,a.top);c=h.clone();a=new Wb(l.x,l.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),n=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=n-c.top;c=Vw(c,d.g);a=Hw(this,c.width,c.height);var g=Tw(d,c.width,c.height,this.g),h=new Wb(h.left-c.left,h.top-c.top,h.width,h.height),r=new F(l.x-c.left,l.y-c.top);this.o=17*$u(b,k.k,k.g?k.g:"xy");b=d.j;k=e?e.g/2:0;l=Yw(h,r);var n=this.B(h,b,r,l),v=r.x,r=r.y,s=h.width,w=h.height,R=h.left,h=h.top,da=new Tv;Vv(da,R+b+k,h+k);"t"==l&&(da.Pa(n.start,h+k),da.Pa(v,r),da.Pa(n.end,h+k));da.Pa(R+s-b-k,h+k);Wv(da,b,b,-90,90);"r"==l&&(da.Pa(R+s-
k,n.start),da.Pa(v,r),da.Pa(R+s-k,n.end));da.Pa(R+s-k,h+w-b-k);Wv(da,b,b,0,90);"b"==l&&(da.Pa(n.end,h+w-k),da.Pa(v,r),da.Pa(n.start,h+w-k));da.Pa(R+b+k,h+w-k);Wv(da,b,b,90,90);"l"==l&&(da.Pa(R+k,n.end),da.Pa(v,r),da.Pa(R+k,n.start));da.Pa(R+k,h+b+k);Wv(da,b,b,180,90);da.close();sw(a,da,e,g);if(e=this.M())L(e,"annotation-shape"),L(e,"annotation-speech-shape"),Qd(e,c.left,c.top),ae(e,c.width,c.height),Ww(a,e,d.g)}}}};
function Yw(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"}Xw.prototype.B=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Sb(c-a/2,d+b,d+e-a-b);return new Fw(c,c+a)}return"t"==d||"b"==d?e(this.o,c.x,a.left,a.width):"l"==d||"r"==d?e(this.o,c.y,a.top,a.height):new Fw(0,0)};function Zw(){Gw.call(this)}z(Zw,Gw);Zw.prototype.j=function(a,b,c){var d=Cv(a);d&&(b=cv(d,b,c),0>=b.width||0>=b.height||(a=a.g,c=Vw(b,a.g),d=Hw(this,c.width,c.height),Rw(d,new Wb(0,0,b.width,b.height),a.j,new Zv(!a.o&&this.g?1:a.o,a.A),new Yv("#000",0)),b=this.M(),L(b,"annotation-shape"),ge(b,Uw(this.g,a.k)),Qd(b,c.left,c.top),ae(b,c.width,c.height)))};var $w=window.location.protocol+"//i.ytimg.com/";function ax(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.Jc)return b.Jc;if((430<a||320<c)&&b.Qn)return b.Qn}return b.thumbnailUrl?b.thumbnailUrl:bx(b.videoId)}function cx(a,b){return b.thumbnailUrl?b.thumbnailUrl:b.videoId?Pe("//docs.google.com/vt",{id:b.videoId,authuser:b.Fb,authkey:b.eb}):"//docs.google.com/images/doclist/cleardot.gif"}
function bx(a,b){return($w+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function dx(a,b,c){Gw.call(this);this.o=a||0;this.C=b||0;this.B=c||!1}z(dx,Gw);function ex(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 Wb(e,g,c,d)}
dx.prototype.j=function(a,b,c){var d=cv(Cv(a),b,c);if(!(0>=d.width||0>=d.height)){var e=ex(d,this.C);e.left+=d.left;e.top+=d.top;b=a.g;c=Vw(e,b.g);var g=Hw(this,c.width,c.height),h=new Yv("#000",0),e=ex(e,this.o);a=a.o?a.o.g?a.o.g:a.o.videoId?bx(a.o.videoId,"hqdefault.jpg"):"":"";e=hw(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 ow(e,g);g.k.M().appendChild(e.M());
if(a=this.M()){var k=Uw(this.g,b.k);ge(a,k);if(this.B&&0<b.o){var k=new Zv(b.o,b.A),d=new Wb(0,0,d.width,d.height),l;l=Sw(d,b.j,k.g/2+1);var n=gw(g,"mask");if(n)l=n;else{var n=document.createElementNS("http://www.w3.org/2000/svg","mask"),r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",tw(l));r.setAttribute("fill","#FFF");n.appendChild(r);l=iw(g,"mask",n)}e=e.M();l&&e.setAttribute("mask","url(#"+l+")");Rw(g,d,b.j,k,h)}L(a,"annotation-shape");L(a,"annotation-image-shape");
Qd(a,c.left,c.top);ae(a,c.width,c.height);Ww(g,a,b.g)}}};function fx(){Gw.call(this)}z(fx,Gw);fx.prototype.j=function(a,b,c){var d=Cv(a);if(d){var e=cv(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.g;c=Vw(e,b.g);var d=Hw(this,c.width,c.height),g=b.D;a=this.g&&yv(a);a=(g+=a?1:0)?new Zv(g,a?b.B:b.C):null;g=new Wb(0,0,e.width,e.height);e=Tw(b,e.width,e.height,this.g);Rw(d,g,b.j,a,e);if(a=this.M())L(a,"annotation-shape"),L(a,"annotation-popup-shape"),Qd(a,c.left,c.top),ae(a,c.width,c.height),Ww(d,a,b.g)}}};function gx(){Xw.call(this)}z(gx,Xw);gx.prototype.B=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 Fw(c,c+a)}return"t"==d||"b"==d?e(this.o,c.x,a.left,a.width):"l"==d||"r"==d?e(this.o,c.y,a.top,a.height):new Fw(0,0)};function hx(a,b,c,d,e){this.g=a;this.G=b;this.C=c;this.I=d;this.H=e;this.D=new lr(this);this.F=this.k=this.A=this.o=this.B=this.j=null}function ix(a,b){var c=x(function(a,c,g){c=g?jx(this,c,x(g,this)):jx(this,c);this.D.listen(b,a,c)},a);c("mouseover","d",a.L);c("mouseout","c",a.N);c("click","a");c("touchend","a")}
function kx(a){if(a.g.C){var b;xv(a.g,function(a){return"close"==a.type})?b=a.j:(a.A=J("div",["annotation-close-button","hid"]),yf(a.A,"annotation_id",a.g.id),a.j.appendChild(a.A),b=a.A);var c=function(a){a.stopPropagation()};a.D.listen(b,"click",jx(a,"b",c));a.D.listen(b,"touchend",jx(a,"b",c))}}
function jx(a,b,c){return x(function(a){if(this.H)c&&c(a);else if(a.target instanceof Element){var e=a.target;ht(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(Ed(g,null,"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{gt(e)}}e=fe(a.target);a=new F(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.I.publish(b,this.g)},a)}hx.prototype.L=function(){this.A&&gt(this.A);this.o&&ge(this.o,1);var a=lx(this);this.k&&(this.k.g=!0,ge(this.j,mx(this)?1:0),a&&this.k.j(this.g,a,nx(this)))};hx.prototype.N=function(){this.A&&ht(this.A);this.o&&ge(this.o,0);var a=lx(this);this.k&&(this.k.g=!1,ge(this.j,mx(this)?1:0),a&&this.k.j(this.g,a,nx(this)))};function nx(a){return a.F?Cv(a.F):null}
function Qv(a){if(a.j||a.k){var b=Cv(a.g);if(b){var c=lx(a),d=nx(a);if(a.j&&c){b=cv(b,c,d);ae(a.j,b.width,b.height);Qd(a.j,b.left,b.top);var e=a.C.fe;if(e){var g;g=(g=Cv(a.g))&&e?Zu(e,g.o,g.g?g.g:"xy"):1;var e=Ev(a.g,e),h;h=a.g.g;h.G?h=h.G:(h="speech"==a.g.style?1.6:.8,h=new Ub(h,h,h,h));h=new Ub(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.o&&(h.right+=1.5*c.height/100);a.j.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.g.style&&a.B&&(a.B.style.padding=
a.j.style.padding);a.o&&(g=g/e*c.height*4.2/100,g=new G(g,g),ae(a.o,g),"highlight"==a.g.type||"label"==a.g.style?(e=1.5*c.height/100,g=new F(b.width-g.width-e,b.height-g.height-e)):g=new F(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Qd(a.o,g));a.A&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Qd(a.A,g&&e?new F(b.width-9,-9):g?new F(b.width-9,45<b.height?9:b.height-9):e?new F(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new F(45<b.width?b.width-9-18:-9,b.height-
9):new F(-9,45<b.height?9:b.height-9)))}}a.k&&c&&a.k.j(a.g,c,d);if(a.j){c=a.j;d=a.g.g;c.style.color="highlightText"==a.g.style?d.H:d.B;c.style.fontSize=360*d.I*Ev(a.g,a.C.fe)/100+"px";b=a.g.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.F&&(c.style.fontWeight=d.F);a=a.j;c=a.style.overflow;d=I("annotation-link-icon",a);b=ft(d);g=I("annotation-close-button",a);e=ft(g);d&&b&&ht(d);g&&e&&ht(g);var k=h="",l=I("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 n=pe(a),r=n,v=5,s=Math.floor(n/2);s;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(v=r,r=Math.min(r+s,n)):r=Math.max(r-s,v),s=Math.floor(s/2),a.style.fontSize=r+"px";r!=v&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=v+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=k);g&&e&&gt(g);
d&&b&&gt(d)}}}}
hx.prototype.show=function(){var a=this.g.g,a=(a&&0==a.k||"title"==this.g.style||"highlightText"==this.g.style||"pause"==this.g.type?!1:!0)&&!this.k,b=!this.j,c="widget"==this.g.type;if(a){var d=lx(this);if(d){var e=null;"highlight"==this.g.type||"label"==this.g.style?e=new Zw:"popup"==this.g.style?e=new fx:"anchored"==this.g.style?e=new Xw:"speech"==this.g.style?e=new gx:"image"==this.g.type&&("video"==this.g.style?e=new dx(4/3,16/9,!0):"channel"==this.g.style&&(e=new dx));e&&(e.j(this.g,d,nx(this)),
this.k=e,d=e.M())&&(ht(d),L(d,"annotation-type-"+this.g.type.toLowerCase()),this.G(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.g.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.g.type.toLowerCase());this.j=J("div",d);this.g.B&&(this.B=J("div","inner-text"),"label"==this.g.style&&(L(this.B,"label-text"),this.B.style.backgroundColor=this.g.g.A),Cd(this.B,this.g.B),this.j.appendChild(this.B));yf(this.j,"annotation_id",this.g.id);this.G(this.j);ix(this,this.j);if(yv(this.g)&&
"image"!=this.g.type&&this.g.showLinkIcon()){if(d=Mu(this.g))this.j.title=bs(d);this.o=J("span","annotation-link-icon");this.j.appendChild(this.o)}kx(this);yv(this.g)||(this.j.style.cursor="default")}c&&("subscribe"==this.g.style?I("yt-uix-subscription-button",this.j)||(this.j.innerHTML=this.g.k):this.g.k&&(this.j.innerHTML=this.g.k));if(a||b){t:{a=this.g.j.g;if(a.length&&(a=jv(a[0]))){a=a.B;break t}a=0}this.j&&(this.j.style.zIndex=a);this.k&&this.k.M()&&(this.k.M().style.zIndex=a)}gt(this.j);ge(this.j,
mx(this)?1:0);Qv(this);this.k&&gt(this.k.M())};hx.prototype.hide=function(){ht(this.j);this.k&&ht(this.k.M())};function mx(a){return"label"!=a.g.style||a.k.g}function lx(a){var b=a.C.fe;return b?"player_relative"==a.g.F?(a=a.C.Mc)?new Wb(-b.left,-b.top,a.width,a.height):null:new Wb(0,0,b.width,b.height):null};function ox(a){Xp.call(this,a);this.aj=!0;this.va="iv-module";this.xe="iv";this.L=!1;this.W=!0;this.D=!1;this.o=0;this.j={};this.H={};this.F=null;this.C=new is(this.N,a);a=px;this.A=new Dw(iq(this));O(this,this.A);this.A.listen("change",this.cs,this);this.subscribe("onHideControls",this.$r,this);this.subscribe("onShowControls",this.bs,this);this.subscribe("onStateChange",this.as,this);this.subscribe("d",this.gs,this);this.subscribe("c",this.ds,this);this.subscribe("a",this.Yr,this);this.subscribe("b",
this.Zr,this);this.subscribe("videodatachange",this.Sh,this);var b=new Sq(["div",[a.Vr,"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"}]]]]);O(this,b);b=b.M();this.P=J("DIV",[a.Xr,"html5-stop-propagation"]);this.R=J("DIV",a.Wr);this.B=null;$p(this,J("DIV",a.Ur,this.P,this.R));$p(this,b);this.G=new vw(b,x(this.Th,
this));this.k=null;this.O=[];this.I=null}z(ox,Xp);ox.A="AnnotationsModule";var px={Ur:"video-annotations",Vr:"countdowntimer",Wr:"video-custom-annotations",Xr:"video-legacy-annotations"};ox.o=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};ox.k=function(a){return"card"==a.type};ox.j=function(a){return ox.Va(a)?new ox(a):null};ox.Va=function(a){var b=a.X();return"leanback"==b.ea?!1:b.oa?!0:Xn(a.getVideoData(),"iv3_module")};
ox.g=function(){return J("div",["annotation","annotation-type-custom","hid"])};f=ox.prototype;f.Va=function(){return ox.Va(this.g)};f.create=function(){ox.J.create.call(this);this.B=new V(["div",["ytp-player-content","ytp-iv-player-content"]]);this.B.Ua(kp(this.g));lq(this,this.A);var a=this.g.X();(1==(a.ta||this.g.getVideoData().aa)||a.oa)&&this.load()};f.destroy=function(){this.B.rf();this.B.dispose();mq(this,this.A);this.unsubscribe("videodatachange",this.Sh,this);ox.J.destroy.call(this)};
f.cs=function(){var a=this.D||this.o,b=0==this.A.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.as=function(a){this.W=U(a.state,8);0>hr(a,4)&&this.G.stop()};
f.load=function(){ox.J.load.call(this);var a=this.g.getVideoData(),b=x(this.Fn,this,a.videoId);Ht()&&(b=qx(this,b));var b={format:"XML",method:"GET",nc:b},c=this.g.X().oa,d=this.g.X().Gc;if(c||d)b.method="POST",b.Ib={},c&&(b.Ib.ic_xml=c),d&&(b.Ib.ic_track=d);a.Jf&&(this.o++,xh(a.Jf,b));a.Lj&&(b=x(this.Fn,this,a.videoId),Ht()&&(b=qx(this,b)),b={format:"XML",method:"GET",nc:b},this.o++,xh(a.Lj,b));Cw(this.A.element,0)};
f.unload=function(){Cw(this.A.element,1);this.C.pd({"iv-event":1});this.Th();Yp(this);$b(this.j,function(a){a.destroy()});$b(this.H,function(a){a.destroy()});this.k&&(this.k.destroy(),this.k=null);this.o=0;this.D=!1;this.j={};this.H={};ox.J.unload.call(this)};
function rx(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(rx(a,e))}return c}
f.Fn=function(a,b){if(this.o&&!this.D&&this.g.getVideoData().videoId==a){this.o--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(sh(b)&&c){sx(this,c[0]);L(kp(this.g),this.va+"-loaded");0==this.o&&(this.D=!0);var c=[],d;for(d in this.j){var e=this.j[d].annotation,g;if(e.j)if(g=e.j,g.g.length)if(g=g.g[0].j||g.g[0].g||g.g[0].k,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].j&&0>=g[h].j?null:{start:g[0].j,end:g[h].j}}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.B,k.visible=!0);e=new Op(g,h,k);c.push(e)}}this.jf.apply(this,c)}}};function tx(a,b){var c=ux(a,b);if(!c&&"marker"!=b.type)return null;Av(b,function(a){a=x(this.qx,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Nv(a.N,b,c)}
function vx(a,b){var c=a.B.M(),d=ox.g(),e=null;switch(b.type){case "branding":c.appendChild(d);e=new Ku(d,wx(a),b);break;case "promotion":a.g.X().experiments.L&&"video"==b.style?(c=mh(Mu(b).value).v,d=Vr(b.data.video_duration),c&&d&&(a.F={id:c,ny:d,oy:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,my:1},a.Sh())):(c.appendChild(d),e=new Fv(d,wx(a),b))}e&&e.gh();return e}
f.Sh=function(){if(this.F){var a=this.g.getVideoData().Ju;!a||1>=a.length||a[1].id==this.F.id||(yb(a,1,0,this.F),ub(a,a.length-1))}};function xx(a,b){if(!a.k){var c=wx(a),d=c.k.experiments.R&&!0,e=ox.g();d?(a.B.M().appendChild(e),a.k=new Du(e,c)):(a.R.appendChild(e),a.k=new fu(e,c));a.k.gh()}a.k.En(b)}function wx(a){a.I||(a.I=new Nu(new lr(a),a.g.X(),a.g.getVideoData(),a.C,a.g,a.N));return a.I}
function sx(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=rx(a,c[d]),g=null;try{g=vv(e)}catch(h){}g&&(ox.o(g)?(e=vx(a,g))&&(a.H[g.id]=e):ox.k(g)?xx(a,g):(e=tx(a,g))&&(a.j[g.id]=e))}$b(a.j,function(a){var b=a.annotation;b.j&&b.j.j&&(b=this.j[b.j.j])&&(a.g.F=b.annotation)},a)}f.Dd=function(a){ox.J.Dd.call(this,a);a=a.getId();var b=this.j[a];b&&!b.A&&(b=b.annotation,"pause"==b.type?yx(this,b):(zx(this,a),js(this.C,b.qa)))};
f.Ee=function(a){ox.J.Ee.call(this,a);Ax(this,a.getId())};function yx(a,b){if(a.W){var c=wv(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.L=!0,a.publish("command_pause"),a.G.start(1E3*c.duration.value))}}function Bx(a,b,c,d){d?zx(a,b,c):Ax(a,b,c)}function Ax(a,b,c){if(b=a.j[b])Pv(b),c&&c.j?(a=x(a.Do,a,b),b.j=new gk(a,2E3),b.j.start()):a.Do(b)}f.Do=function(a){a&&(a.hide(),Cx(this,"shown",!1,a.annotation.id),Dx(this,a.annotation,"hidden"))};
function zx(a,b,c){if(b=a.j[b])Pv(b),c&&c.o?(a=x(a.oo,a,b),b.j=new gk(a,2E3),b.j.start()):a.oo(b)}f.oo=function(a){a&&(a.show(),Cx(this,"shown",!0,a.annotation.id),Dx(this,a.annotation,"shown"))};f.qx=function(a,b,c){var d=this.j[a];if(d&&b.value!=c){b.value=c;var e=!1;Av(d.annotation,function(a){e|=a.value});Bx(this,a,b,e)}};f.Yr=function(a){if(a&&a.id){var b=Mu(a);if(b){var c=x(function(){Dx(this,a,"click")},this);cs(bs(b))&&"new"!=b.target||(c(),c=null);ns(this.C,a.qa,c)}}};
function Dx(a,b,c){zv(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.g.getVideoData(),g=es(a.url,e.videoId);if(-1!=g)this.publish("command_seek",g),this.Th();else if(e=fs(a.url,b.id,e.videoId,this.g.X()))this.pauseVideo(),window.open(e,hs(a.url))}},a)}f.$r=function(){Cx(this,"playerControlShow",!1)};f.bs=function(){Cx(this,"playerControlShow",!0)};f.gs=function(a){Cx(this,"rollOver",!0,a.id)};f.ds=function(a){Cx(this,"rollOver",!1,a.id)};
f.Zr=function(a){if(a||a.id)this.j[a.id].A=!0,Ax(this,a.id),a&&(os(this.C,a.qa),Dx(this,a,"close")),Cx(this,"closed",!0,a.id)};f.Th=function(){this.G.stop();this.L&&(this.L=!1,this.publish("command_play"))};function ux(a,b){if(Ex(b)){var c=b.C||xv(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new hx(b,x(a.P.appendChild,a.P),a.g.X(),a.N,c)}return null}
function Ex(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in sv)if(a.style==sv[b])return!0;return!1}function Cx(a,b,c,d){a.publish(Mv(b,d),c,d)}function qx(a,b){return x(function(){if(!this.fa()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=ra.apply(window,a);this.O.push(It(b,void 0))}},a)}f.K=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Jt(a[b]);this.O.length=0;ox.J.K.call(this)};var Fx=/^#(?:[0-9a-f]{3}){1,2}$/i,Gx="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),Hx=["none","raised","depressed","uniform","dropShadow"],Ix=["sub","inherit","super"],Jx=["left","right","center"],Kx={id:0,priority:0,anchorPoint:7,ah:50,pv:80,Xc:100,vc:15,Aj:100,isVisible:!0,textAlign:2,re:0,backgroundColor:"#080808",foregroundColor:"#fff",Mm:1,ov:1},Lx={id:98},Mx={id:99,priority:1,anchorPoint:0,ah:5,Xc:5,vc:2,Aj:32,textAlign:0},Nx=["CA","MX","US"];var Ox=[{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"}],Px=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],Qx=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],Rx=[{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:Ox},
{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:Ox},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:Px},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:Ox},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:Px},{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:Qx}];var Sx;function Tx(a,b){ga(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;Sx||(Sx={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=Sx;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function Ux(a,b,c,d,e){xw.call(this,0,b,c,c);this.j=b;this.I=this.H=c;this.C=d||null;this.D=e||null;this.F=e||null;this.g=!1}z(Ux,xw);Ux.prototype.update=function(){yw(this,this.g&&this.C?this.C:this.j);st(this,this.g&&this.D?this.D:this.H);this.o=this.g&&this.F?this.F:this.I;xf(this.element,"ytp-button-pressed",this.g)};Ux.prototype.K=function(){this.F=this.D=this.C=null;Ux.J.K.call(this)};function Vx(){Ux.call(this,0,"ytp-subtitles-button",Ew(0,"YTP_SUBTITLES"),"ytp-subtitles-button-active");zw(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}z(Vx,Ux);function Wx(a){V.call(this,a)}z(Wx,V);Wx.prototype.focus=function(){};function Xx(a,b,c,d){V.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);a=b.text||(b.message?Ew(0,b.message):"");a=[new Sq(["div","ytp-subtitles-settings-dialog-list-text",a])];d&&(d=new Sq(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.M().style.background=b.option,a.unshift(d));c?a.unshift(new Sq(["div","ytp-subtitles-settings-dialog-list-caret"])):a.unshift(new Sq(["div","ytp-subtitles-settings-dialog-list-check"]));this.g=new xw;O(this,this.g);this.g.Xa(a);this.Xa(this.g)}
z(Xx,V);Xx.prototype.setEnabled=function(a){xf(this.g.M(),"ytp-subtitles-settings-dialog-list-selected",a)};function Yx(){V.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.j=null;var a=Ew(0,"YTP_DONE"),b=new xw(0,"ytp-dialog-button",a);O(this,b);b.Xa(a);b.listen("click",ra(this.Uc,"cancel"),this);zw(b,1400);var a=Ew(0,"YTP_RESET"),c=new xw(0,"ytp-dialog-button",a);O(this,
c);c.Xa(a);L(c.M(),"ytp-dialog-button-left");c.listen("click",ra(this.Uc,"select"),this);zw(c,1300);this.k={};this.g={};this.template.update({top:Zx(this,Rx),buttons:[c,b]})}z(Yx,Wx);
function Zx(a,b,c){var d=new V(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;p(c)?(a.g={},e=a.g):(a.k={},e=a.k,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new Xx(0,k,g,b==Ox);g?(l.listen("click",x(a.Zm,a,k.options,k.option)),zw(l.g,1100)):c&&(l.listen("click",x(a.Tv,a,c,k.option)),zw(l.g,1200));e[k.option]=l;l.Ua(d.M())}return d}f=Yx.prototype;f.Zm=function(a,b){this.template.update({sub:Zx(this,a,b)});$x(this,this.k,b);$x(this,this.g,this.j[b]);ay(this.template.g["ytp-subtitles-settings-dialog-sub-level"])};
function ay(a){(a=I("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){ay(this.template.g["ytp-subtitles-settings-dialog-top-level"])};function $x(a,b,c){$b(b,function(a,b){a.setEnabled(b==c)},a)}f.setProperties=function(a){this.j=a;(a=Rx[0])&&a.options&&this.Zm(a.options,a.option)};f.Tv=function(a,b){this.j&&(this.j[a]=b,this.Uc("change"));$x(this,this.g,b);this.focus()};f.K=function(){this.k=[];this.g=[];Yx.J.K.call(this)};function by(a,b,c){V.call(this,["div","ytp-drop-down","{{content}}"]);this.k=!1;this.C=0;this.F=this.D=null;this.B=new lr(this);this.j=new V(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);O(this,this.j);rt(this.j,"listbox");this.g=new xw(0,"ytp-drop-down-label");O(this,this.g);this.g.listen("click",this.G,this);this.A=new V(["div","ytp-drop-down-label-content","{{content}}"]);O(this,this.A);this.g.Xa([this.A,["div","ytp-drop-down-arrow"]]);this.Xa([this.j,this.g]);p(b)&&cy(this,b);p(c)&&
this.F!=c&&(this.j.Xa(c),this.F=c,dy(this));dy(this)}z(by,V);function cy(a,b){a.D!=b&&(a.A.Xa(b),a.D=b,dy(a))}by.prototype.o=function(){this.k=!1;dy(this)};by.prototype.H=function(a){a.target&&(Ad(this.j.M(),a.target)||Ad(this.g.M(),a.target))||this.o()};by.prototype.G=function(){this.k=!this.k;dy(this);this.k&&this.j.M().focus()};function ey(a,b){b>a.C&&(a.C=b,a.element.style.minWidth=a.C+"px")}by.prototype.focus=function(){this.g.M().focus()};
function dy(a){a.k?(a.j.show(),a.B.listen(window,"blur",a.o),a.B.listen(document,"click",a.H)):(a.j.hide(),a.B.removeAll());var b=ce(a.g.M());a.j.M().style.bottom=b.height-1+"px";ey(a,b.width)};function fy(a,b){xw.call(this,0,"ytp-drop-down-menu-button");rt(this,"option");this.g=new V(["div","ytp-drop-down-menu-button-check"]);O(this,this.g);this.j=!!b}z(fy,xw);fy.prototype.Xa=function(a){fy.J.Xa.call(this,[this.g,a])};function gy(a,b){xf(a.element,"ytp-drop-down-menu-button-selected",b);a.j||xf(a.element,"ytp-drop-down-menu-button-checked",b);a.element.setAttribute("aria-checked",b)};function hy(a,b,c,d){V.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.o=!!d;this.j={};this.k=[];this.A=this.g=null;this.B=b;this.C=c}z(hy,V);function iy(a,b){Gb(a.k,b)||($b(a.j,function(a){a.rf()}),a.k=[],b&&C(b,function(a){this.k.push(a);var b=jy(this,a);this.o&&xf(b.element,"ytp-drop-down-menu-button-checked",a==this.A);gy(b,a==this.g);b.Ua(this.element)},a))}hy.prototype.getSelected=function(){return this.g};
function ky(a,b){var c=jy(a,"translate");b?c.disable():c.enable()}function ly(a,b){$b(a.j,function(a){zw(a,b)})}function jy(a,b){var c=a.j[b.toString()];if(c)return c.Xa(a.B(b)),c;c=new fy(0,a.o);O(a,c);a.j[b.toString()]=c;c.Xa(a.B(b));c.listen("click",x(a.C,a,b));return c};function my(a,b,c,d,e,g){ww.call(this);this.D=b;this.F=c;this.G=e;this.C=g;this.j={};this.j.off=Ew(0,"YTP_LANGUAGE_OFF");this.j.translate=Ew(0,"YTP_TRANSLATE_MENU_ITEM");this.j.contribute=Ew(0,"YTP_CONTRIBUTE_MENU_ITEM");this.label=Ew(0,"YTP_SUBTITLES");this.g=new hy(0,x(this.B,this),x(this.H,this));O(this,this.g);this.element=new by(0,void 0,this.g);O(this,this.element);ey(this.element,150);st(this.element,this.label);this.priority=1;this.A=this.o=!1;ny(this,[]);this.off()}z(my,ww);
function ny(a,b){for(var c=["off"],d=0;d<b.length;d++){var e=b[d],g=e.toString();a.j[g]||(a.j[g]=oy(e));c.push(g)}c.push("translate");a.A&&c.push("contribute");iy(a.g,c);ky(a.g,!a.o);c=jy(a.g,"translate");xf(c.element,"ytp-drop-down-menu-button-separated",!1);xf(c.element,"ytp-drop-down-menu-button-separated-above",!0);c=2500;ly(a.g,c++);c=c++;zw(a.element.g,c)}function py(a,b){if(a.j[b]){var c=a.g;null!=c.g&&gy(jy(c,c.g),!1);null!=b&&gy(jy(c,b),!0);c.g=b;c.o||(c.A=b);cy(a.element,a.B(b))}}
my.prototype.off=function(){py(this,"off")};my.prototype.B=function(a){return this.j[a]};my.prototype.H=function(a){this.element.o();"off"==a?this.D():"translate"==a?this.G():"contribute"==a?this.C():this.F(a,!0)};function qy(){var a=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Ew(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];V.call(this,a);var b=Ew(0,"YTP_DISMISS"),a=new xw(0,"ytp-dialog-button",b);O(this,a);a.Xa(b);a.listen("click",ra(this.Uc,"change"),this);zw(a,1400);var b=Ew(0,"YTP_CANCEL"),c=new xw(0,"ytp-dialog-button",b);O(this,c);c.Xa(b);c.listen("click",ra(this.Uc,"cancel"),this);zw(c,1500);this.j=new hy(0,
x(this.k,this),x(this.A,this),!0);O(this,this.j);this.j.element.style.maxHeight="100px";this.g=new by(0,void 0,this.j);O(this,this.g);ey(this.g,200);st(this.g,Ew(0,"YTP_TRANSLATE_DIALOG_TITLE"));this.o=null;this.template.update({content:this.g,buttons:[a,c]})}z(qy,Wx);function ry(a,b){a.o=b;cy(a.g,b?a.k(b):null)}qy.prototype.getSelected=function(){return this.o};qy.prototype.A=function(a){this.g.o();ry(this,a)};qy.prototype.k=function(a){return a.languageName+" -- "+a.wi};qy.prototype.focus=function(){this.g.focus()};function sy(){Ux.call(this,0,"ytp-settings-button",Ew(0,"YTP_SETTINGS"),"ytp-settings-button-active");zw(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.B=new V(["div","{{content}}"]);O(this,this.B);this.Xa(this.B);this.B.Xa("")}z(sy,Ux);function ty(a){this.anchorPoint=7;this.ah=50;this.Xc=100;this.pv=80;this.re=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.ov=this.Mm=1;this.vc=15;this.Aj=32;this.isVisible=!0;this.j=0;this.bold=!1;this.offset=1;this.g=3;a=a||Kx;sa(this,a)};function uy(a,b){this.id=a;this.ra=new ty(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.za=J("div",{id:"caption-window-"+this.id,"class":c});this.tb=J("span",{"class":"captions-text",style:"visibility: hidden"});this.tb.innerHTML="C";this.Da=J("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Pf=J("div",{"class":"caption-window-transform"});this.Pf.appendChild(this.Da);this.za.appendChild(this.Pf);this.g=1}uy.prototype.id=0;f=uy.prototype;
f.ra=null;f.xf="";f.Xb=null;f.za=null;f.Pf=null;f.Da=null;f.tb=null;f.type=0;
f.uc=function(a,b){a&&sa(this.ra,a);var c=this.ra.charEdgeStyle,d=this.ra.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.ra.charEdgeColor&&(h=g=this.ra.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.ra.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=rr(this.ra.color),h=rr(this.ra.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.ra.offset||1;Md(this.Da,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.ra.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.ra.bold?"bold":"","font-style":this.ra.italic?"italic":"","text-decoration":this.ra.underline?
"underline":"","vertical-align":Ix[d]});b&&(this.g=b.height/360);e=rr(this.ra.windowColor);c=this.ra.windowOpacity;g=this.ra.fontSizeIncrement||0;1!=d&&(g*=.8);Md(this.Pf,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.g)+"px"})};f.lh=function(){var a;this.tb.style.fontFamily=this.Da.style.fontFamily;this.za.appendChild(this.tb);a=this.tb.offsetHeight;this.za.removeChild(this.tb);return a};
f.Md=function(){this.Da&&(0!=this.id&&(be(this.za,"100%"),be(this.za,this.Da.offsetWidth+1)),vy(this),et(this.za,this.ra.isVisible))};function vy(a){Qd(a.za,a.ra.ah+"%",a.ra.Xc+"%");for(var b=0;8>=b;b++)vf(a.za,"anchor-point-"+b);L(a.za,"anchor-point-"+a.ra.anchorPoint)}f.wo=function(a){var b=[];C(a,function(a){a.j?b[b.length-1]+=a.g:b.push(a.g)});if(a.length){var c=a[a.length-1].Tj;c&&this.uc(wy(c))}this.Sc(b.join("\n"));this.Xb=a};
f.Sc=function(a){this.xf=a=xy(a);this.Da.innerHTML=this.xf;this.za.style.textAlign=Jx[this.ra.textAlign];1==this.ra.re?this.Da.setAttribute("dir","rtl"):this.Da.removeAttribute("dir");this.Md()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.xf,b;for(b in this.ra)a+=b+" "+this.ra[b]+" | ";return a};function xy(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.Dh=function(){this.Xb=[];this.Sc("")};function yy(){this.B=1;this.A=20971520;this.o=8388608;this.g=5242880;this.ha=NaN;this.F=2;this.N=25;this.D=2097152;this.k=!1;this.j=1800;this.rg=rk.auto;this.I=!0;this.liveChunkReadahead=3;this.L=em("xboxone");this.O=this.H=!1;this.C=0;this.G=!1};function zy(){this.$=[]}zy.prototype.contains=function(a){a=Bb(this.$,a);return 0<=a||0>a&&1==(-a-1)%2};zy.prototype.length=function(){return this.$.length/2};function Ay(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=By();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function Cy(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 Dy(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Zc(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=Zc(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function Ey(a){if("undefined"!=typeof a.selectNodes){var b=Zc(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=Zc(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 By(){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 Fy(){this.j=[];this.g=[]};function Gy(a){this.k=a.startMs||0;this.o=a.priority||0;this.durationMs=a.durationMs||0}Gy.prototype.ab=function(){return this.k};Gy.prototype.toString=function(){return this.k+", "+this.durationMs};function Hy(a){Gy.call(this,a);this.windowId=a.windowId||0;this.g=a.text||"";this.j=a.params.append||!1;this.Tj=a.Tj||null}z(Hy,Gy);Hy.prototype.toString=function(){return this.k+", "+this.durationMs+": "+this.g};
function Iy(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 Hy(b)}function Jy(a){Gy.call(this,a);this.id=a.windowId||0;this.params=a.params||{};this.qh=a.qh||null;this.rh=a.rh||null;this.g="";this.j=!1;Ky(this)}z(Jy,Gy);function Ly(a){return a.params.$w?a.params.$w:a.params.Jt?2:a.j?1:0}function My(){return new Jy({startMs:0,durationMs:2147483647,params:Kx})}function Ky(a){a.qh&&sa(a.params,wy(a.qh));a.rh&&sa(a.params,wy(a.rh))};function Ny(a){Fy.call(this);this.g.push(My());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=Iy(a[b]);this.j.push(d)}}z(Ny,Fy);function Oy(a){Fy.call(this);this.k={};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.k[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.ab()+g.durationMs>=h?g.durationMs=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.A=!0:g=My();var k=
{};sa(k,g?g.params:Kx);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.ly=d.getAttribute("op"));d.getAttribute("rc")&&(k.vc=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.Aj=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.ah=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.Xc=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.re=1,0==parseInt(d.getAttribute("pd"),10)&&(k.re=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.Mm=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.Jt=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 Jy(d)}else d=null}this.k[e]=d;this.g.push(d);break;case "text":e=Iy(a[b]),this.j.push(e),d=e.windowId,this.k[d]&&(d=this.k[d],e=e.g,""!=d.g&&(d.j=!0),d.g+=e)}}z(Oy,Fy);function Py(a){this.parent=a||null;this.g={}}function Qy(a,b,c){var d=a.g[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return Qy(a.parent,b)}function Ry(a,b,c){void 0!=c&&(a.g[b]=c)}function Sy(a,b,c){void 0!=c&&(a.g[b]=c)}function wy(a){var b=a.parent?wy(a.parent):{};sa(b,a.g);return b};function Ty(a){Fy.call(this);var b={Kf:{},Wj:{},Xj:{}},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=Uy(e,"p"),k=void 0;h&&g.Kf[h]&&(k=g.Kf[h]);g=new Py(k);Ry(g,"id",Uy(e,"id"));h=Vy(e,"b");void 0!=h&&(g.g.bold=h);h=Vy(e,"i");void 0!=h&&(g.g.italic=h);h=Vy(e,"u");void 0!=h&&(g.g.underline=h);Ry(g,"charEdgeStyle",Wy(e,"et"));Ry(g,"offset",
Wy(e,"of"));Ry(g,"textType",Wy(e,"tt"));Sy(g,"background",Xy(e,"bc"));Sy(g,"charEdgeColor",Xy(e,"ec"));Sy(g,"color",Xy(e,"fc"));h=Wy(e,"fs");void 0!=h&&0!=h&&Ry(g,"fontFamily",h);h=Uy(e,"sz");void 0!=h&&Ry(g,"fontSizeIncrement",h/100-1);h=Uy(e,"bo");void 0!=h&&Ry(g,"backgroundOpacity",h/255);e=Uy(e,"fo");void 0!=e&&Ry(g,"textOpacity",e/255);e=Qy(g,"id",!1);b.Kf[e]=g;break;case "ws":g=Yy(b,e);e=Qy(g,"id",!1);b.Xj[e]=g;break;case "wp":g=Zy(b,e),e=Qy(g,"id",!1),b.Wj[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=$y(b,g);if(g=c[k.id])g.durationMs=k.ab()-g.ab();c[k.id]=k;this.g.push(k);break;case "p":var h=b,l=g,n={},k={startMs:Uy(l,"t"),durationMs:Uy(l,"d"),text:l.textContent,params:n},r=Uy(l,"w");void 0!=r&&(k.windowId=r);Vy(l,"a")?(k.priority=6,n.append=!0):k.priority=5;(l=Uy(l,"p"))&&h.Kf[l]&&(k.Tj=h.Kf[l]);h=new Hy(k);k=c[h.windowId];k||(k=$y(b,g),k.id=a--,h.windowId=k.id,this.g.push(k));g=k;k=h.g;""!=g.g&&(g.j=!0);g.g+=k;this.j.push(h)}}z(Ty,Fy);
function Uy(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}function Vy(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function Wy(a,b){var c=Uy(a,b);if(void 0!=c)return c}function Xy(a,b){var c=a.getAttribute(b);if(null!=c)return Fx.test(c),c}
function Yy(a,b){var c=Uy(b,"ws"),d;c&&a.Xj[c]&&(d=a.Xj[c]);c=new Py(d);Ry(c,"id",Uy(b,"id"));Ry(c,"modeHint",Wy(b,"mh"));Ry(c,"textAlign",Uy(b,"ju"));Ry(c,"textPrintDirection",Wy(b,"pd"));Ry(c,"textScrollDirection",Wy(b,"sd"));Ry(c,"windowBorderType",Wy(b,"et"));Sy(c,"windowBorderColor",Xy(b,"wbc"));Sy(c,"windowColor",Xy(b,"wfc"));d=Uy(b,"wfo");void 0!=d&&Ry(c,"windowOpacity",d/255);return c}
function Zy(a,b){var c=Uy(b,"wp"),d;c&&a.Wj[c]&&(d=a.Wj[c]);c=new Py(d);Ry(c,"anchorPoint",Wy(b,"ap"));Ry(c,"colCount",Uy(b,"cc"));Ry(c,"id",Uy(b,"id"));Ry(c,"leftPercentage",Uy(b,"ah"));Ry(c,"rowCount",Uy(b,"rc"));Ry(c,"topPercentage",Uy(b,"av"));return c}function $y(a,b){var c={windowId:Uy(b,"id"),startMs:Uy(b,"t"),durationMs:Uy(b,"d")||2147483647,qh:Zy(a,b),rh:Yy(a,b)};return new Jy(c)};function az(a){this.g=a.languageCode;this.languageName=a.languageName||null;this.wi=a.languageOriginal||null;this.id=a.id||null;this.j=a.is_default||!1}az.prototype.toString=function(){return this.g+"_"+this.languageName+"_"+this.wi+"_"+this.id+"_"+this.j};function bz(a){a=a||{};this.G=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.G.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.A=Math.max(d,this.A))}this.j=a.languageCode||"";this.B=a.languageName;this.k=a.kind||"";this.o=a.name;this.pa=a.id;this.H=a.is_servable;this.C=a.is_default;this.D=a.is_translateable;this.F=a.vss_id||"";this.g=null;a.translationLanguage&&(this.g=new az(a.translationLanguage))}
function cz(a){var b={format:a.A,languageCode:a.j,languageName:a.B,displayName:oy(a),kind:a.k,name:a.o,id:a.pa,is_servable:a.H,is_default:a.C,is_translateable:a.D};a.g&&(a=a.g,b.translationLanguage={languageCode:a.g,languageName:a.languageName,languageOriginal:a.wi,id:a.id,is_default:a.j});return b}function oy(a){var b=[a.B];if("asr"==a.k){var c=Uf("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.o&&b.push(" - ",a.o);a.g&&b.push(" >> ",a.g.languageName);return b.join("")}
bz.prototype.toString=function(){var a=[this.j,": ",this.o," (",this.k,")"];this.g&&a.push(" >> ",this.g.g);return a.join("")};bz.prototype.equals=function(a){if(!a)return!1;var b=this.g,c=a.g;if(b&&c){if(b.g!=c.g)return!1}else if(b||c)return!1;return this.j==a.j&&this.o==a.o&&this.k==a.k};function dz(a,b){Fy.call(this);this.g.push(My());for(var c=a.split(ez),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(fz))e=null;else{var h=e.split(gz),k=0,l=h[k++].match(hz);l||(l=h[k++].match(hz));l?(e=iz(l[1],g),g=iz(l[3],g),h=h.slice(k).join("\n"),e=new Hy({startMs:e,durationMs:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.j.push(e)}}z(dz,Fy);var fz=/NOTE/,ez=/[\r\n|\r|\n]{2,}/,gz=/\r\n|\r|\n/,hz=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function iz(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 jz(a,b){this.g=[];this.j=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new dz(a,b||0):(c=Ay(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new Ty(c):new Oy(c):new Ny(c):null:null;c&&(this.j=c.g,this.g=c.j)};function kz(a,b){N.call(this);this.na=a;this.g=b;this.D=new zy;this.o=!0;this.F=this.A=this.B=this.C=this.j=null;this.k=0}z(kz,N);kz.prototype.K=function(){Rf(this.k);this.k=0;this.o=!0;this.A&&this.A.abort()};kz.prototype.resume=function(){this.o=!1;Rf(this.k);this.seek(this.g.getCurrentTime());lz(this)};kz.prototype.seek=function(a){this.j=db(this.F.Dg(a).g)};function mz(a,b){a.C=b}
function nz(a){var b;if(b=!a.o&&null!==a.j)b=a.j,b=b.g.kf(b);return b&&!a.A&&!(a.j&&30<a.j.startTime-a.g.getCurrentTime())}
function oz(a){var b;b=a.j;b=Tk(b.g,b);if(!a.D.contains(b.g[0].o)){a.A=xh(Qk(b),{format:"RAW",nc:x(a.G,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.g[0].o,e=Bb(c.$,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.$[e-1]&&e<c.$.length&&1==c.$[e]-d?(ub(c.$,e),ub(c.$,e-1)):0<e&&1==d-c.$[e-1]?c.$[e-1]=d:e<c.$.length&&1==c.$[e]-d?c.$[e]=d:(yb(c.$,e,0,d),yb(c.$,e+1,0,d)))}a.j=db(b.g)}
kz.prototype.G=function(a){null==a.responseText||400<=a.status||this.o||null===this.C||(a=new jz(a.responseText,1E3*this.B.g[0].startTime),this.C(a));this.A=this.B=null};function lz(a){a.k=Pf(x(function(){nz(this)&&oz(this)},a),1E3);nz(a)&&oz(a)};function pz(){this.j=[];this.g=[];this.k=-1}function qz(a,b){return b?a.g.concat(a.j):a.g}function rz(a,b){switch(b.k){case "asr":return sz(b,a.j);default:if(b.C||0>a.k)a.k=a.g.length;return sz(b,a.g)}}function sz(a,b){return D(b,x(a.equals,a))?!1:(b.push(a),!0)};function tz(a){this.B=!!a;this.g=new pz;this.k=[]}z(tz,N);function uz(a,b){return D(qz(a.g,!0),function(a){return a.toString()==b})}tz.prototype.seek=function(){};tz.prototype.dj=function(){};tz.prototype.K=function(){tz.J.K.call(this);this.dj()};function vz(a,b){tz.call(this);this.o=a;this.j=new kz(new yy,b)}z(vz,tz);f=vz.prototype;f.$n=function(a,b){mz(this.j,function(c){b(c,a)});this.j.F=this.o.g[a.j];this.j.resume()};f.Ho=function(a){rz(this.g,new bz({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.dj=function(){var a=this.j;Rf(a.k);a.k=0;a.o=!0};f.K=function(){this.j.dispose();vz.J.K.call(this)};function wz(a,b){uy.call(this,a,b);this.Da.style.display="block";this.Da.style.padding="0";this.Ab=[];var c=this.Da;vf(c,"captions-text");L(c,"caption-painton-text-rows")}z(wz,uy);f=wz.prototype;f.type=1;f.hm="";f.ik="";f.wf=!1;f.nb=null;f.Ab=null;f.lh=function(){return this.Ab[0]?this.Ab[0].offsetHeight:0};function xz(a){return a.Ab.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Md=function(){0!=this.id&&(be(this.za,"100%"),be(this.za,this.wf?xz(this):this.nb.width));var a=Math.round(this.ra.vc*this.lh());this.za.style.maxHeight=a+"px";vy(this);et(this.za,this.ra.isVisible)};
f.Sc=function(a){this.Dh();a=xy(a);this.wf||(this.xf=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=J("div",{"class":"caption-row-holder"}),e=J("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.ik;d.appendChild(e);e.innerHTML=a[b];this.wf||(this.Da.style.height=this.nb.height+"px",this.Da.style.width=this.nb.width+"px",d.style.position="absolute",d.style.top=this.nb.fm[b]+"px",d.style.left=this.nb.dm[b]+"px");this.Da.appendChild(d);this.Ab.push(e)}this.Md()};
f.Dh=function(){for(var a=0,b=this.Ab.length;a<b;a++){var c=Ed(this.Ab[a],null,"caption-row-holder");sd(c)}this.Ab=[]};f.uc=function(a){wz.J.uc.call(this,a);this.ik=this.Da.style.backgroundColor;this.Da.style.backgroundColor="";a=0;for(var b=this.Ab.length;a<b;a++)this.Ab[a].style.backgroundColor=this.ik};function yz(a,b){uy.call(this,a,b);this.Xb=[];this.Yc=[];this.qb=[];this.Fe=new Xi(433);this.Fe.stop();bg(this.Fe,"tick",x(this.Ix,this))}z(yz,uy);f=yz.prototype;f.type=2;f.Jx=32;f.qb=null;f.Zc=0;f.Yc=null;f.Fe=null;f.Md=function(){be(this.za,"100%");var a=this.za.offsetWidth,a=Math.min(zz(this),a);be(this.za,a+"px");be(this.Pf,"100%");this.Da.style.whiteSpace="nowrap";vy(this);et(this.za,this.ra.isVisible)};
f.wo=function(a){var b=a.length;if(0>=b)this.Dh();else{for(var c=0;c<b&&0<=this.Xb.indexOf(a[c]);)c++;this.Xb=this.Xb.concat(a.slice(c));Az(this)}};f.Dh=function(){this.Xb=[];this.qb=[];this.Zc=0;this.qb=[];this.Yc=[];Bz(this)};
function Az(a){if(!Cz(a))if(a.Zc>=a.Xb.length)Bz(a);else{var b=a.qb.length-1;0>b&&(a.Yc.push(0),a.Zc=0,a.qb.push(""),b=0);for(var c=a.Xb.length,d=a.Zc;d<c;d++){var e=a.Xb[d];if("\n"==e.g){a.Zc++;a.Yc[b]++;break}if(e.j||0==a.qb[b].length)a.qb[b]+=e.g,a.Zc++,a.Yc[b]++;else break}Bz(a);d<c&&!Cz(a)&&(b=a.lh(),L(a.Da,"caption-rollup"),a.za.style.overflow="hidden",a.Da.style.top=-b+"px",a.Fe.start())}}function Cz(a){return a.Fe.enabled||tf(a.Da,"caption-rollup")}
f.Ix=function(){this.za.style.overflow="visible";this.Da.style.top=0;this.Fe.stop();vf(this.Da,"caption-rollup");this.qb.push("");this.Yc.push(0);Az(this)};function Bz(a){if(!Cz(a)){for(;a.qb.length<a.ra.vc;)a.qb.unshift(""),a.Yc.unshift(0);for(;a.qb.length>a.ra.vc;){a.qb.shift();var b=a.Yc.shift();0<b&&(a.Zc-=b,a.Xb.splice(0,b))}a.Sc(a.qb.join("\n"))}}
function zz(a){a.tb.style.fontFamily=a.Da.style.fontFamily;a.tb.style.fontSize=a.Da.style.fontSize;a.Da.appendChild(a.tb);a.tb.innerHTML="\u2014";var b=a.tb.offsetWidth;a.tb.innerHTML="&nbsp;";b=2*a.tb.offsetWidth+b*a.Jx;a.Da.removeChild(a.tb);return b};function Dz(a,b,c,d){tz.call(this,d);c||(c=mh(a).hl||"",c=c.split("_").join("-"));this.o=oh(a,{hl:c});this.A=b;this.C={};this.j=null}z(Dz,tz);Dz.prototype.$n=function(a,b){var c=Ez(this,a),d=x(function(c){this.j=null;c=new jz(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=xh(c,{format:"RAW",mc:d,withCredentials:!0})};
Dz.prototype.Ho=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.A,fmts:Number(b||!1),vssids:1};this.B&&(b.asrs=1);d=oh(d,b);b=x(function(b){this.j=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.g,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var n=h[l].getAttribute("formats"),r=c,v=h[l].getAttribute("lang_code"),s=h[l].getAttribute("lang_translated"),w=h[l].getAttribute("name"),R=h[l].getAttribute("kind"),da=h[l].getAttribute("id"),oa="true"==h[l].getAttribute("lang_default"),
Mj="true"==h[l].getAttribute("cantran"),Xe=h[l].getAttribute("vss_id"),n=new bz({formats:n,format:r,languageCode:v,languageName:s,name:w,kind:R,id:da,is_servable:!0,is_default:oa,is_translateable:Mj,vss_id:Xe});rz(d,n)}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"),n=b[h].getAttribute("lang_original"),r=b[h].getAttribute("id"),v="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:n,
id:r,is_default:v},this.C[k.languageCode]=k.languageName,this.k.push(new az(k))}a()},this);this.j&&this.j.abort();this.j=xh(d,{format:"RAW",mc:b,withCredentials:!0})};function Ez(a,b){var c=a.o,d={v:a.A,type:"track",lang:b.j,name:b.o,kind:b.k,fmt:b.A};b.g&&(d.tlang=b.g.g);return c=oh(c,d)}Dz.prototype.K=function(){this.j&&this.j.abort();Dz.J.K.call(this)};function Fz(a){Xp.call(this,a);Tf({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.aj=!0;this.Aa=this.R=this.oa=!1;this.Ra=new lr(this);this.D=a.X();this.B=null;this.O=a.app.k;this.ja=null;this.wa={};this.aa=[];this.Ja=0;this.I={};this.Y={};this.ta=this.Ca=this.H=this.Ba=!1;this.ka=new uy(99,Mx);this.o=this.A=this.C=null;this.Ia=!1;this.F=this.G=0;this.W=
new Vx(iq(this));O(this,this.W);this.W.listen("click",this.au,this);this.L=this.va+"-mdx";this.da=new sy(iq(this));O(this,this.da);L(this.da.M(),"ytp-mdx-settings-button");this.da.listen("click",this.lu,this);this.k=new my(iq(this),x(this.Wm,this),x(this.Lk,this),x(this.ju,this),x(this.ku,this),x(this.bu,this));this.P=new Yx(iq(this));O(this,this.P);this.P.listen("change",x(this.Kc,this,!0));this.P.listen("cancel",this.Zt,this);this.P.listen("select",this.Vl,this);this.U=new qy(iq(this));O(this,this.U);
this.U.listen("change",this.fu,this);this.U.listen("cancel",this.kg,this);this.subscribe("onResize",x(this.Xm,this));this.subscribe("onBackgroundChange",x(this.gu,this));this.subscribe("onTextOpacityChange",x(this.hu,this));this.subscribe("onWindowOpacityChange",x(this.iu,this));this.subscribe("onFontSizeIncrease",x(this.du,this));this.subscribe("onFontSizeDecrease",x(this.cu,this));this.subscribe("onCaptionsToggle",x(this.eu,this))}z(Fz,Xp);Fz.prototype.va="captions";Fz.prototype.xe="cc";
Fz.prototype.Ka="subtitlesModuleData";var Gz={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function Hz(a){return"3"!=a.D.j?!1:!!a.O.g.textTracks}function Iz(a,b,c,d,e){u(a.j[b])&&(a.j[c]=d.indexOf(a.j[b]),-1==a.j[c]&&(a.j[c]=e),delete a.j[b])}f=Fz.prototype;
f.create=function(){Fz.J.create.call(this);this.B=this.g.getVideoData();-1==Nx.indexOf(this.D.wa)&&L(kp(this.g),"cc-international");this.j=nc(Gz);sa(this.j,cq(this,"display-settings"));Iz(this,"fontFamilyOption","fontFamily",Gx,Gz.fontFamily);Iz(this,"charEdgeStyle","charEdgeStyle",Hx,Gz.charEdgeStyle);this.P.setProperties(this.j);this.ja=kp(this.g);Hz(this)||(jq(this,this.va,this.W),lq(this,this.k));Jz(this)&&this.load()};f.destroy=function(){this.ja=null;mq(this,this.k);kq(this,this.va);Fz.J.destroy.call(this)};
function Jz(a){if(1==a.D.k.cc_load_policy||1==a.B.un||"alwayson"==Tn(a.B,"yt:cc")||Hz(a))return!0;var b=cq(a,"module-enabled");return null!=b?!!b:"on"==Tn(a.B,"yt:cc")}function Kz(a){a.A.Ho(x(a.Eo,a),!0,Hz(a)?"vtt":void 0)}
f.load=function(){this.ta="alwayson"==Tn(this.B,"yt:cc");this.Ca="1"==this.B.o.cc_auto_caps||"1"==this.D.k.cc_auto_caps;this.k.A="1"==this.B.o.cc_contribute||"1"==this.D.k.cc_contribute;this.jb?(jq(this,this.L,this.da),this.k.k=this.L):(kq(this,this.L),this.k.k=null);Fz.J.load.call(this);this.oa=!0;if(this.B.Sa)this.A=new vz(this.B.j,this.g),this.subscribe("seekto",this.yl,this);else{var a=this.B.o.cc_lang_pref||this.D.k.cc_lang_pref||Tn(this.B,"yt:cc_default_lang")||this.D.Z,a=a&&a.split("_").join("-");
this.A=new Dz(this.B.ke,this.B.videoId,a,this.B.yi)}Kz(this)};f.lu=function(){this.loaded||this.load()};f.unload=function(){this.jb&&(kq(this,this.L),this.k.k=null,Lz(this,!1),this.zh("control_subtitles_set_track"));if(Hz(this))for(var a=cd("track",void 0,void 0),b=0;b<a.length;b++)sd(a[b]);else Mz(this,!1),Nz(this),this.unsubscribe("seekto",this.yl,this),this.A.dispose(),this.A=null,this.kg();this.H=this.Aa=this.R=this.oa=!1;Fz.J.unload.call(this)};f.pd=function(){};
f.Eo=function(){this.oa=!1;if(Hz(this)){for(var a=this.O.g,b=this.A,c=[],d=qz(b.g,void 0),e=0;e<d.length;e++){var g=d[e],h=Ez(b,g),h={kind:"subtitles",label:g.o,srclang:g.j,src:h};g.C&&(h["default"]=1);c.push(J("track",h))}for(b=0;b<c.length;b++)a.appendChild(c[b])}else a=this.U,c=this.A.k,iy(a.j,c),ly(a.j,1E3),Xq(a.j.template,"tabindex",1E3),zw(a.g.g,1001),c.length?ry(a,c[0]):ry(a,null),a=this.H||Jz(this)||!0,c=qz(this.A.g,!0),0<c.length?(this.pd("Caption track list loaded, found "+c.length+" tracks."),
this.Aa=!0,ny(this.k,c),a&&(c=this.A,a=c.g.k,c=qz(c.g,!0),(a=0>a?null:c[a])?(this.Ba=!0,Oz(this,a)):(this.R||Pz(this),a=this.A.g.j,a.length&&(a=a[0].toString(),(this.H||this.Ca)&&this.Lk(a)))),this.publish("publish_external_event","onCaptionsTrackListChanged")):(this.pd("No captions found."),mq(this,this.k),kq(this,this.va),this.unload())};function Pz(a){a.R=!0;Hz(a)||(a.Kc(),a.Xm())}
f.Dw=function(a,b){this.R||Pz(this);this.Ba&&(this.Ba=!1,this.publish("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.o||!b.equals(this.o))){Nz(this);this.o=b;this.Ia=Ds.test(b.j);var c={trackName:b.o,trackKind:b.k};b.g?(c.trackLangCode=b.g.g,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);this.H&&(c=oy(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Uf("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.ja.appendChild(this.ka.za),this.ka.Sc(c),this.ka.uc(this.j,this.O.gb()),this.F||(this.F=M(x(this.Yl,this),2E3)));this.publish("publish_external_event","captionschanged",cz(b));c=this.W;c.j="ytp-subtitles-button-active";c.update();c=this.k;c.o=!0;ky(c.g,!1);py(this.k,b.toString());dq(this,"module-enabled",!0);this.publish("vss_segment")}Qz(this,a.j.concat(a.g))};
function Qz(a,b){a.pd("Caption track loaded with "+b.length+" events.");var c=[];C(b,function(a){a.ab();var b;this.Ja++;b="caption"+this.Ja.toString();c.push(new Op(a.ab(),a.ab()+a.durationMs,{id:b}));this.wa[b]=a},a);a.jf.apply(a,c)}f.Dd=function(a){if(a=Rz(this,a))this.aa.push(a),this.G||(this.G=M(x(this.Jg,this),0))};f.Ee=function(a){if(a=Rz(this,a))tb(this.aa,a),this.G||(this.G=M(x(this.Jg,this),0))};function Rz(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.wa[c]}
f.Mw=function(a){if(a instanceof Jy){var b=this.I[a.id];sa(a.params,this.j);Ky(a);b&&b.type!=Ly(a)&&(sd(b.za),delete this.I[a.id],b=null);if(!b){var b=this.I,c=a.id,d;t:{d=a.id;var e=a.params;switch(Ly(a)){case 1:d=new wz(d,e);break t;case 2:d=new yz(d,e);break t;default:d=new uy(d,e)}}b=b[c]=d;c=b.za;xf(c,"captions-asr","asr"==this.o.k);null!=a.params.re&&(a.params.re=this.Ia?1:0);0==b.id?this.ja.appendChild(c):$p(this,c)}b.uc(a.params,this.O.gb());if(1==Ly(a)){b.hm=a.g;b.nb={};b.wf=!0;b.Sc(b.hm);
b.nb.vc=b.Ab.length;b.nb.width=b.za.offsetWidth;b.nb.height=b.za.offsetHeight;b.nb.dm=[];b.nb.fm=[];for(a=0;a<b.nb.vc;a++)b.nb.fm.push(b.Ab[a].offsetTop),b.nb.dm.push(b.Ab[a].offsetLeft);b.wf=!1;b.Sc(b.xf)}}else b=a.windowId,this.Y[b]||(this.Y[b]=[]),this.Y[b].push(a)};f.Xm=function(){this.R&&(this.Kc(),$b(this.I,function(a){a.Md()},this))};
function Sz(a){var b=[];$b(a.I,function(a){a instanceof wz&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.ra.Xc-a.ra.Xc});var c=Tz(a.O).height,d=b[0].ra.Xc;C(b,function(a){a.ra.Xc=d;var b=Math.round(a.ra.vc*a.lh());d-=Math.round(b/c*100);a.Md()},a)}}f.Yl=function(){this.F=0;sd(this.ka.za)};
f.Jg=function(){this.G=0;this.R&&(kc(this.Y),this.aa.sort(function(a,b){return a.ab()==b.ab()?a.o-b.o:a.ab()-b.ab()}),C(this.aa,this.Mw,this),$b(this.I,function(a,b){this.Y[b]?a.wo(this.Y[b]):(sd(a.za),delete this.I[b])},this),Sz(this),this.C&&this.C.Md(),this.pd("Refreshing caption display..."))};function Uz(a,b,c){if(c&&c.length){for(var d=a.j[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.j[b]=c[e].option;a.Kc(!0)}}f.gu=function(){Uz(this,"backgroundOpacity",Px)};
f.hu=function(){Uz(this,"textOpacity",Qx)};f.iu=function(){Uz(this,"windowOpacity",Px)};f.cu=function(){Vz(this,-1)};f.du=function(){Vz(this,1)};function Vz(a,b){var c=a.j.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.j.fontSizeIncrement=c;a.Kc()}function Nz(a){if(a.o){a.o=null;Yp(a);a.aa=[];a.wa={};a.o=null;a.Jg();var b=a.W;b.j="ytp-subtitles-button";b.update();a.k.off();b=a.k;b.o=!1;ky(b.g,!0);a.A.dj()}}
function Oz(a,b,c){!b||a.o&&b.equals(a.o)||(null!=c&&(a.H=c),a.jb?(a.o=b,Lz(a,!0),a.zh("control_subtitles_set_track",cz(b)),a.R||Pz(a)):(a.A.$n(b,x(a.Dw,a)),a.oa=!0,py(a.k,b.toString())))}f.Lk=function(a,b){var c=uz(this.A,a);Oz(this,c,b);nq(this)};f.ku=function(){this.ta||(aq(this,this.U),nq(this))};
f.fu=function(){if(!this.ta){this.kg();var a=this.U.getSelected();if(a){var b=this.o,c=new bz;c.j=b.j;c.B=b.B;c.o=b.o;c.k=b.k;c.C=!1;c.D=b.D;c.F=b.F;c.g=a;rz(this.A.g,c)&&(a=c.toString(),ny(this.k,qz(this.A.g,!0)),py(this.k,a));Oz(this,c,!0)}}};f.Zt=function(){this.kg();this.jb&&this.o&&this.zh("control_subtitles_set_track",cz(this.o))};f.Vl=function(){delete this.j;this.j=nc(Gz);this.P.setProperties(this.j);dq(this,"display-settings",this.j);this.Kc()};
f.Kc=function(a){var b=this.O.gb();$b(this.I,function(a){a.uc(this.j,b)},this);this.C&&this.C.uc(this.j,b);this.ka.uc(this.j,b);this.Jg();p(a)&&!a||dq(this,"display-settings",this.j)};f.au=function(){this.H=!0;Wz(this)};function Wz(a){a.loaded?a.o?a.Wm():a.Eo():a.load()}f.Wm=function(){this.F&&(Qf(this.F),this.Yl());dq(this,"module-enabled",!1);this.publish("vss_segment");Nz(this);nq(this);this.H=!1;this.jb&&(Lz(this,!1),this.zh("control_subtitles_set_track"))};f.ju=function(){aq(this,this.P);nq(this)};
f.bu=function(){this.publish("command_navigate_to_url",this.D.Ya+"timedtext_video?v="+this.B.videoId,void 0);nq(this)};function Xz(a){return Fz.prototype.Va(a)?new Fz(a):null}
f.Ah=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.j.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.Kc()),this.j.fontSizeIncrement;case "reload":b&&Kz(this);break;case "stickyLoading":this.D.xb()&&dq(this,"module-enabled",!!b);break;case "track":if(b){if(!ka(b))break;var c=new bz(b);c.equals(this.o)||(Oz(this,c,!0),py(this.k,c.toString()))}else return this.o?cz(this.o):{};return"";case "tracklist":return this.Aa?ib(qz(this.A.g,b&&b.includeAsr),function(a){return cz(a)}):[];case "displaySettings":return b&&
ka(b)&&Yz(this,b),c=nc(this.j),c.fontFamily=Gx[c.fontFamily],c.charEdgeStyle=Hx[c.charEdgeStyle],c;case "sampleSubtitles":Mz(this,!!b)}};function Mz(a,b){if(b&&!a.C){a.C=new uy(98,Lx);a.ja.appendChild(a.C.za);var c=a.C,d=Ew(iq(a),"YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Sc(d));a.C.uc(a.j,a.O.gb())}else!b&&a.C&&(sd(a.C.za),a.C=null)}f.yh=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.xb()&&a.push("stickyLoading");return a};
f.gk=function(a,b){return a&&u(a)&&Fx.test(a)?a:b};f.hk=function(a,b){return ia(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.Sw=function(a,b){if(a&&u(a)){var c=Hx.indexOf(a);return-1!=c?c:b}return b};f.Tw=function(a,b){if(a&&u(a)){var c=Gx.indexOf(a);return-1!=c?c:b}return b};f.Uw=function(a,b){return ia(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var Zz=null;
function Yz(a,b){if(b)if(mc(b,"reset"))a.Vl();else{if(!Zz){var c={};c.color=a.gk;c.textOpacity=a.hk;c.background=a.gk;c.backgroundOpacity=a.hk;c.windowColor=a.gk;c.windowOpacity=a.hk;c.charEdgeStyle=a.Sw;c.fontFamilyOption=a.Tw;c.fontSizeIncrement=a.Uw;Zz=c}var c=Zz,d;for(d in c)switch(d){case "fontFamilyOption":a.j.fontFamily=c[d](b[d],a.j.fontFamily);break;default:a.j[d]=c[d](b[d],a.j[d])}a.Kc(!0)}}f=Fz.prototype;f.Va=function(a){return!!a.getVideoData().ke};
f.Vg=function(a){mq(this,this.k);a?(this.k.k=this.L,jq(this,this.L,this.da)):(this.k.k=null,kq(this,this.L));lq(this,this.k);a?Nz(this):this.loaded&&(this.unload(),this.load())};function Lz(a,b){if(b){var c=a.W;c.j="ytp-subtitles-button-active";c.update();py(a.k,a.o.toString())}else c=a.W,c.j="ytp-subtitles-button",c.update(),a.k.off()}f.yl=function(){this.A.seek(this.g.getCurrentTime())};f.tf=function(){var a=this.o;return a?{cc:a.F}:null};f.eu=function(){this.H=!0;Wz(this)};
f.K=function(){this.Ra.removeAll();this.G&&(Qf(this.G),this.G=0);this.F&&(Rf(this.F),this.F=0);Fz.J.K.call(this)};function $z(a){Xp.call(this,a);this.va="ypc_license_checker";this.xe="ypc_license";this.B=!1;this.A=0;this.o=!1;this.j=NaN;this.C=lm();this.k=null}z($z,Xp);
var aA={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 bA(a){return Xn(a.getVideoData(),"ypc_license_checker_module")}f=$z.prototype;f.Va=function(){return bA(this.g)};f.create=function(){$z.J.create.call(this);var a=new Op(1E3,2147483646,{priority:0});this.jf(a);this.subscribe("heartbeatparams",this.kx,this);this.subscribe("onStateChange",this.lx,this)};function cA(a){return bA(a)?new $z(a):null}f.Dd=function(){this.B=!0;dA(this,6E4)};f.kx=function(a){this.k=a;dA(this,6E4)};
f.lx=function(a){U(a.state,2)?(this.A=0,this.j&&(Qf(this.j),this.j=NaN),this.o=!1):(U(a.state,1)||U(a.state,8))&&dA(this,6E4)};function dA(a,b){if(!a.j&&a.B){var c=a.g.getVideoData();if(!Sn(c)||a.k)(c=Sn(c))||(a.g.X(),c=!1),c&&(c=b,void 0==c&&(c=a.o?(c=a.g.getVideoData().ub)?c:a.k?1E3*a.k.g:6E4:1E3),a.j=M(x(a.hs,a),c))}}
f.hs=function(){var a,b,c;c=this.g.X().Ya;var d=this.g.getVideoData();Sn(d)?(b="GET",a={},c=Pe(this.k.url,{request_id:lm()}),d.C&&(c=Pe(c,{vvt:d.C})),d.B&&(c=Pe(c,{access_token:d.B}))):d.heartbeatToken?(b="GET",a={},c=Pe(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.C&&(c=Pe(c,{vvt:d.C})),d.B&&(c=Pe(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:lm(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.g.getCurrentTime().toString(),
gid:d.El,ypc_token:d.Fl},d.C&&(a.vvt=d.C),d.B&&(a.access_token=d.B),c+="ypc_license_server");c=Pe(c,{cpn:d.xa});xh(c,{format:"RAW",method:b,Ib:a,timeout:3E4,mc:x(this.Qu,this),onError:x(this.Pu,this),Oj:x(this.Ru,this),withCredentials:!0})};
f.Qu=function(a){if(this.j){a=a.responseText;var b;t:if(b=a,this.g.getVideoData().heartbeatToken)b=Kb(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(eA);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in aA?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?fA(this,"decode"):(this.A=0,this.j=NaN,1==b?(this.o=!1,b="YTP_ERROR_LICENSE",this.g.getVideoData().heartbeatToken?a=Kb(a).reason||Uf(b):((c=a.match(eA))?(a=parseInt(c[1],10))&&(b=qq(a)):a in aA&&(b=aA[a]),a=Uf(b)),gr(this.g.app.j,"heartbeat",
a,void 0)):(this.o=!0,dA(this)))}};f.Pu=function(a){fA(this,"net-"+a.status)};f.Ru=function(){fA(this,"timeout")};function fA(a,b){if(a.j){a.log({errorType:b});a.j=NaN;var c=++a.A,d=a.g.getVideoData().vb;c>(d?d:a.k?a.k.j:5)?(c=Uf("YTP_ERROR_LICENSE"),gr(a.g.app.j,"heartbeat",c,void 0)):dA(a)}}var eA=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function gA(a){V.call(this,a);this.B=new Ch;O(this,this.B)}z(gA,V);gA.prototype.subscribe=function(a,b,c){return this.B.subscribe(a,b,c)};gA.prototype.unsubscribe=function(a,b,c){return this.B.unsubscribe(a,b,c)};gA.prototype.Ec=function(a){return this.B.Ec(a)};gA.prototype.publish=function(a,b){return this.B.publish.apply(this.B,arguments)};function hA(a,b){return E(a.experiments.experimentIds,b)}function iA(a,b){return kb(zb(arguments,1),ra(E,a.experiments.experimentIds))};function jA(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Ew(0,"YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Ew(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"]];V.call(this,c);this.g=b}z(jA,V);jA.prototype.k=null;jA.prototype.o=null;jA.prototype.j=null;
function kA(a){if(!a.k&&(a.k=a.template.g["ad-container"],a.g.X().o)){var b=hA(a.g.X(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";L(a.k,b)}return a.k}function lA(a){a.j&&(a.g.X().o?(vf(a.j,"ad-video"),mA(a.g.app,a.j),a.j=null):(sd(a.j),Ep(a.j)))}
function nA(a){if(!a.o){if(a.g.X().Ka){var b=nd("button");L(b,"video-click-tracking");pd(b,Uf("YTP_VISIT_ADVERTISERS_SITE"));var c=nd("div");L(c,"video-click-tracking-container");c.appendChild(b);kA(a).appendChild(c)}else b=nd("div"),uf(b,["video-click-tracking","ad-video"]),kA(a).appendChild(b);a.o=b}return a.o}jA.prototype.K=function(){jA.J.K.call(this);this.j&&(mA(this.g.app,this.j),this.j=null);lA(this);qd(kA(this));qd(nA(this));this.o=this.k=null;delete this.g};
function oA(a){if(!a.j){var b;b=a.g.app;if(b.g.o){var c=Sd(b.o),d=de(b.o);b.W=new Wb(c.x,c.y,d.width,d.height);pA(b.B);Fp(b.o,1);Ep(b.o);b=b.o}else b=qA.getTag(void 0);a.j=b;uf(a.j,["video-stream","ad-video"])}return a.j};function rA(){V.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}z(rA,V);rA.prototype.Tg=function(a){Xq(this.template,"index",a+1)};function sA(){Ux.call(this,0,"ytp-button-expand",Ew(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Ew(0,"YTP_ST_COLLAPSE"));zw(this,3050);this.element.setAttribute("aria-haspopup",!0);this.Xa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Ew(0,"YTP_PLAYLIST")]])}z(sA,Ux);function tA(){V.call(this,["div","ytp-playlist-tray-controller"]);this.g=new sA;this.g.Ua(this.template.M());O(this,this.g);this.j=new rA;this.j.Ua(this.template.M());O(this,this.j)}z(tA,V);function uA(a,b){var c=bx(a.videoId,"default.jpg");V.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.g=b;this.listen("keypress",this.j)}z(uA,V);
uA.prototype.Tg=function(a){a=this.g==a;xf(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};uA.prototype.j=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Uc("click")};function vA(){gA.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.g=null;this.j=[]}z(vA,gA);function wA(a,b){a.g&&a.g.unsubscribe("shuffle",a.k,a);a.g=b;a.g.subscribe("shuffle",a.k,a);a.k()}vA.prototype.k=function(){Fg(this.j);this.j=[];qd(this.element);for(var a=0;a<=this.g.Ub-1;++a){var b=oo(this.g,a);b&&(b=new uA(b,a),b.Tg(this.g.Ha),this.j.push(b),b.listen("click",x(this.o,this,a)),b.Ua(this.element))}};vA.prototype.o=function(a){this.publish("playvideoat",a)};
vA.prototype.K=function(){Fg(this.j);this.j=[];qd(this.element);vA.J.K.call(this)};function xA(a){Xp.call(this,a);a=kp(a);this.B=!1;this.k=this.o=null;this.C=I("ytp-button-playlist",a);bg(this.C,"click",x(this.Hl,this));this.j=this.A=null}z(xA,Xp);f=xA.prototype;f.va="playlist";
f.create=function(){xA.J.create.call(this);yA(this,this.g.pe());this.A=new Sq(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.A.Ua(kp(this.g));this.k=new vA;this.k.subscribe("playvideoat",this.bm,this);this.k.Ua(this.A.M(),0);this.j=new tA;this.j.Ua(I("html5-title",void 0),0);this.j.g.listen("click",this.Hl,this);this.subscribe("fullscreentoggled",this.Em,this);this.subscribe("videodatachange",this.Gm,this);this.subscribe("clearvideooverlays",this.Fm,this);this.Ng()};
f.Ng=function(){var a=this.g.um(),b=this.j.j;null!=a?b.show():b.hide();this.j.j.Tg(a);a=this.j.j;b=this.g.pe();Xq(a.template,"length",b.Ub)};f.destroy=function(){xA.J.destroy.call(this);yA(this,null);this.unsubscribe("fullscreentoggled",this.Em,this);this.unsubscribe("videodatachange",this.Gm,this);this.unsubscribe("clearvideooverlays",this.Fm,this);sd(this.A.M());this.k.dispose();this.k=null;this.A.dispose();this.A=null;sd(this.j.M());this.j.dispose();this.j=null};
f.load=function(){this.publish("command_clear_video_overlays",!0);xA.J.load.call(this);this.B||(wA(this.k,this.o),this.B=!0);for(var a=this.k,b=0;b<a.j.length;b++)a.j[b].Tg(a.g.Ha);a=this.j.g;a.g=!0;Tx(a.element,!0);a.update()};f.unload=function(){xA.J.unload.call(this);this.B=!1;var a=this.j.g;a.g=!1;Tx(a.element,!1);a.update()};f.Fm=function(){this.loaded&&this.unload()};f.bm=function(a){this.g.uj(a);this.publish("command_clear_video_overlays",!1)};
f.Hl=function(){this.loaded?this.publish("command_clear_video_overlays",!1):this.load()};f.Em=function(a){var b=this.g.X().ea;this.loaded&&!a&&"detailpage"==b&&this.publish("command_clear_video_overlays",!1)};f.Gm=function(){yA(this,this.g.pe());this.B&&wA(this.k,this.o);this.Ng()};function yA(a,b){a.o&&a.o.unsubscribe("shuffle",a.Ng,a);a.o=b;a.o&&a.o.subscribe("shuffle",a.Ng,a)}xA.Va=function(a){return!!a.pe()};xA.prototype.Va=function(a){return xA.Va(a)};xA.prototype.Hj=function(a){return!xA.Va(a)};
xA.g=function(a){return xA.Va(a)?new xA(a):null};xA.prototype.K=function(){this.k.unsubscribe("playvideoat",this.bm,this);gg(this.C);xA.J.K.call(this)};function zA(){var a=Jh("PREF");if(a)for(var a=unescape(a).split("&"),b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(AA[d]=c.toString())}}ca(zA);var AA=t("yt.prefs.UserPrefs.prefs_")||{};q("yt.prefs.UserPrefs.prefs_",AA,void 0);function BA(a){if(/^f([1-9][0-9]*)$/.test(a))throw"ExpectedRegexMatch: "+a;}function CA(a){if(!/^\w+$/.test(a))throw"ExpectedRegexMismatch: "+a;}function DA(a){return void 0!==AA[a]?AA[a].toString():null}
zA.prototype.get=function(a,b){CA(a);BA(a);var c=DA(a);return null!=c?c:b?b:""};zA.prototype.set=function(a,b){CA(a);BA(a);if(null==b)throw"ExpectedNotNull";AA[a]=b.toString()};zA.prototype.remove=function(a){CA(a);BA(a);delete AA[a]};zA.prototype.clear=function(){AA={}};var EA={},FA="ontouchstart"in document;function GA(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Fd(c,function(a){return tf(a,b)},d)}
function HA(a){var b="mouseover"==a.type&&"mouseenter"in EA||"mouseout"==a.type&&"mouseleave"in EA,c=a.type in EA||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=EA[b],d;for(d in c.Db){var e=GA(b,d,a.target);e&&!Fd(a.relatedTarget,function(a){return a==e})&&c.publish(d,e,b,a)}}if(b=EA[a.type])for(d in b.Db)(e=GA(a.type,d,a.target))&&b.publish(d,e,a.type,a)}}bg(document,"blur",HA,!0);bg(document,"change",HA,!0);bg(document,"click",HA);
bg(document,"focus",HA,!0);bg(document,"mouseover",HA);bg(document,"mouseout",HA);bg(document,"mousedown",HA);bg(document,"keydown",HA);bg(document,"keyup",HA);bg(document,"keypress",HA);bg(document,"cut",HA);bg(document,"paste",HA);FA&&(bg(document,"touchstart",HA),bg(document,"touchend",HA),bg(document,"touchcancel",HA));function IA(){}f=IA.prototype;f.Jd=function(a){return Ed(a,null,JA(this))};function JA(a,b){return"yt-uix"+(a.g?"-"+a.g:"")+(b?"-"+b:"")}f.init=ba;f.dispose=ba;f.fx=function(a,b,c){var d=this.Eb(a,b);if(d&&(d=t(d))){var e=zb(arguments,2);yb(e,0,0,a);d.apply(null,e)}};f.Eb=function(a,b){return Af(a,b)};function KA(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var n="HTML"==k.tagName||"BODY"==k.tagName;n&&"static"==Pd(k,"position")||(l=Wd(k),n||(n=(n=Xd(k))&&Gc?-k.scrollLeft:!n||H&&Rc("8")||"visible"==Pd(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Tb(l,new F(n,k.scrollTop))))}k=l||new F;l=fe(a);if(n=Vd(a)){var r=Xb(n),n=Math.max(l.left,r.left),v=Math.min(l.left+l.width,r.left+r.width);if(n<=v){var s=Math.max(l.top,r.top),r=Math.min(l.top+l.height,r.top+r.height);s<=r&&(l.left=
n,l.top=s,l.width=v-n,l.height=r-s)}}n=Xc(a);s=Xc(c);n.g!=s.g&&(v=n.g.body,s=Yd(v,Hd(s)),s=Tb(s,Wd(v)),!H||H&&9<=Tc||Gd(n)||(s=Tb(s,Id(n))),l.left+=s.x,l.top+=s.y);a=LA(a,b);b=new F(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Tb(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var w;h&&(w=Vd(c))&&(w.top-=k.y,w.right-=k.x,w.bottom-=k.y,w.left-=k.x);e=w;w=b.clone();b=LA(c,d);d=de(c);a=d.clone();w=w.clone();a=a.clone();k=0;if(g||0!=b)b&2?w.x-=a.width+(g?g.right:0):g&&(w.x+=g.left),b&1?w.y-=
a.height+(g?g.bottom:0):g&&(w.y+=g.top);h&&(e?(g=w,b=a,k=0,65==(h&65)&&(g.x<e.left||g.x>=e.right)&&(h&=-2),132==(h&132)&&(g.y<e.top||g.y>=e.bottom)&&(h&=-5),g.x<e.left&&h&1&&(g.x=e.left,k|=1),g.x<e.left&&g.x+b.width>e.right&&h&16&&(b.width=Math.max(b.width-(g.x+b.width-e.right),0),k|=4),g.x+b.width>e.right&&h&1&&(g.x=Math.max(e.right-b.width,e.left),k|=1),h&2&&(k=k|(g.x<e.left?16:0)|(g.x+b.width>e.right?32:0)),g.y<e.top&&h&4&&(g.y=e.top,k|=2),g.y<=e.top&&g.y+b.height<e.bottom&&h&32&&(b.height=Math.max(b.height-
(e.top-g.y),0),g.y=e.top,k|=8),g.y>=e.top&&g.y+b.height>e.bottom&&h&32&&(b.height=Math.max(b.height-(g.y+b.height-e.bottom),0),k|=8),g.y+b.height>e.bottom&&h&4&&(g.y=Math.max(e.bottom-b.height,e.top),k|=2),h&8&&(k=k|(g.y<e.top?64:0)|(g.y+b.height>e.bottom?128:0)),h=k):h=256,k=h);g=new Wb(0,0,0,0);g.left=w.x;g.top=w.y;g.width=a.width;g.height=a.height;h=k;h&496||(Qd(c,new F(g.left,g.top)),a=Zb(g),Vb(d,a)||(g=a,d=Zc(c),e=Gd(Xc(d)),!H||Rc("10")||e&&Rc("8")?(c=c.style,Gc?c.MozBoxSizing="border-box":Hc?
c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(g.width,0)+"px",c.height=Math.max(g.height,0)+"px"):(d=c.style,e?(H?(e=je(c,"paddingLeft"),w=je(c,"paddingRight"),a=je(c,"paddingTop"),b=je(c,"paddingBottom"),e=new Ub(a,w,b,e)):(e=Od(c,"paddingLeft"),w=Od(c,"paddingRight"),a=Od(c,"paddingTop"),b=Od(c,"paddingBottom"),e=new Ub(parseFloat(a),parseFloat(w),parseFloat(b),parseFloat(e))),!H||H&&9<=Tc?(w=Od(c,"borderLeftWidth"),a=Od(c,"borderRightWidth"),b=Od(c,"borderTopWidth"),
c=Od(c,"borderBottomWidth"),c=new Ub(parseFloat(b),parseFloat(a),parseFloat(c),parseFloat(w))):(w=le(c,"borderLeft"),a=le(c,"borderRight"),b=le(c,"borderTop"),c=le(c,"borderBottom"),c=new Ub(b,a,c,w)),d.pixelWidth=g.width-c.left-e.left-e.right-c.right,d.pixelHeight=g.height-c.top-e.top-e.bottom-c.bottom):(d.pixelWidth=g.width,d.pixelHeight=g.height))));return h}function LA(a,b){return(b&4&&Xd(a)?b^2:b)&-5};function MA(){}z(MA,IA);f=MA.prototype;f.Jd=function(a){var b=IA.prototype.Jd.call(this,a);return b?b:a};f.Eb=function(a,b){var c=MA.J.Eb.call(this,a,b);return c?c:(c=MA.J.Eb.call(this,a,"card-config"))&&(c=t(c))&&c[b]?c[b]:null};
f.show=function(a){var b=this.Jd(a);if(b){L(b,JA(this,"active"));var c=NA(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;OA(this,a,c);var d=JA(this,"card-visible"),e=this.Eb(a,"card-delegate-show")&&this.Eb(b,"card-action");this.fx(b,"card-action",a);this.k=a;ht(c);M(x(function(){e||(gt(c),Pg("yt-uix-card-show",b,a,c));PA(c);L(c,d);Pg("yt-uix-kbd-nav-move-in-to",c)},this),10)}}};
function NA(a,b,c){var d=c||b,e=JA(a,"card");c=a.fc(d);var g=$c(QA(a,d));if(g)return a=I(JA(a,"card-body"),g),Ad(a,c)||(sd(c),a.appendChild(c)),g;g=document.createElement("div");g.id=QA(a,d);g.className=e;(d=a.Eb(d,"card-class"))&&uf(g,d.split(/\s+/));d=document.createElement("div");d.className=JA(a,"card-border");b=a.Eb(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var h=document.createElement("div");h.className=
JA(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;sd(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g}function QA(a,b){var c=JA(a,"card"),d=b.__yt_uid_key;d||(d=Df(),b.__yt_uid_key=d);return c+d}
function OA(a,b,c){var d=a.Eb(b,"orientation")||"horizontal",e=a.Eb(b,"position"),g=!!a.Eb(b,"force-position"),h=a.Eb(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,n,r;l&&k?(r=7,n=4):l&&!k?(r=6,n=5):!l&&k?(r=5,n=6):(r=4,n=7);var v=Xd(document.body),e=Xd(b);v!=e&&(r^=2);var s;d?(e=b.offsetHeight/2-12,s=new F(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,s=new F(b.offsetWidth+6,-12));var w=de(c),e=Math.min(e,(d?w.height:w.width)-24-6);6>e&&
(e=6,d?s.y+=12-b.offsetHeight/2:s.x+=12-b.offsetWidth/2);var R=null;g||(R=10);w=JA(a,"card-flip");a=JA(a,"card-reverse");xf(c,w,l);xf(c,a,k);R=KA(b,r,c,n,s,null,R);!g&&R&&(R&48&&(l=!l,r^=2,n^=2),R&192&&(k=!k,r^=1,n^=1),xf(c,w,l),xf(c,a,k),KA(b,r,c,n,s));h&&(b=parseInt(c.style.top,10),g=hd(document).y,jt(c,"position","fixed"),jt(c,"top",b-g+"px"));v&&(c.style.right="",b=fe(c),b.left=b.left||parseInt(c.style.left,10),g=fd(window),c.style.left="",c.style.right=g.width-b.left-b.width+"px");b=I("yt-uix-card-body-arrow",
c);g=I("yt-uix-card-border-arrow",c);d=d?k?"top":"bottom":!v&&l||v&&!l?"left":"right";b.setAttribute("style","");g.setAttribute("style","");b.style[d]=e+"px";g.style[d]=e+"px";k=I("yt-uix-card-arrow",c);l=I("yt-uix-card-arrow-background",c);k&&l&&(c="right"==d?de(c).width-e-13:e+11,e=c/Math.sqrt(2),k.style.left=c+"px",k.style.marginLeft="1px",l.style.marginLeft=-e+"px",l.style.marginTop=e+"px")}
f.hide=function(a){if(a=this.Jd(a)){var b=$c(QA(this,a));b&&(vf(a,JA(this,"active")),vf(b,JA(this,"card-visible")),ht(b),this.k=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(sd(b.cardMask),b.cardMask=null))}};function RA(a){a.k&&a.hide(a.k)}f.ew=function(a,b){var c=this.Jd(a);if(c){if(b){var d=this.fc(c);if(!d)return;d.innerHTML=b}tf(c,JA(this,"active"))&&(c=NA(this,a,c),OA(this,a,c),gt(c),PA(c))}};f.isActive=function(a){return(a=this.Jd(a))?tf(a,JA(this,"active")):!1};
f.fc=function(a){var b=a.cardContentNode;if(!b){var c=JA(this,"content"),d=JA(this,"card-content");(b=(b=this.Eb(a,"card-id"))?$c(b):I(c,a))||(b=document.createElement("div"));var e=b;vf(e,c);L(e,d);a.cardContentNode=b}return b};
function PA(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',uf(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";document.body.appendChild(b)};function SA(){this.j={};this.o={}}z(SA,MA);ca(SA);SA.prototype.g="clickcard";SA.prototype.show=function(a){SA.J.show.call(this,a);var b=this.Jd(a);if(!Af(b,"click-outside-persists")){var c=la(a);if(this.j[c])return;var b=bg(document,"click",x(this.A,this,a)),d=bg(window,"blur",x(this.A,this,a));this.j[c]=[b,d]}a=bg(window,"resize",x(this.ew,this,a,void 0));this.o[c]=a};
SA.prototype.hide=function(a){SA.J.hide.call(this,a);a=la(a);var b=this.j[a];b&&(dg(b),this.j[a]=null);if(b=this.o[a])dg(b),this.o[a]=null};SA.prototype.A=function(a,b){Ed(b.target,null,"yt-uix"+(this.g?"-"+this.g:"")+"-card")||this.hide(a)};function TA(){}z(TA,MA);ca(TA);TA.prototype.g="hovercard";function UA(a,b,c,d){this.g=a;this.B=!1;this.k=new Gg;this.C=eg(this.g,"click",x(this.Sr,this),"yt-dialog-dismiss");VA(this);this.D=b;this.G=c;this.F=d;this.o=this.A=null}var WA={LOADING:"loading",Tx:"content",UC:"working"};function VA(a){a=I("yt-dialog-fg-content",a.g);var b=[];$b(WA,function(a){b.push("yt-dialog-show-"+a)});wf(a,b);L(a,"yt-dialog-show-content")}f=UA.prototype;
f.show=function(){if(!this.fa()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();if(!this.F){this.j||(this.j=$c("yt-dialog-bg"),this.j||(this.j=nd("div"),this.j.id="yt-dialog-bg",this.j.className="yt-dialog-bg",document.body.appendChild(this.j)));var a;t:{var b=window,c=b.document;a=0;if(c){a=c.body;var d=c.documentElement;if(!d||!a){a=0;break t}b=fd(b).height;if(gd(c)&&d.scrollHeight)a=d.scrollHeight!=b?d.scrollHeight:d.offsetHeight;else{var c=d.scrollHeight,
e=d.offsetHeight;d.clientHeight!=e&&(c=a.scrollHeight,e=a.offsetHeight);a=c>b?c>e?c:e:c<e?c:e}}}this.j.style.height=a+"px";gt(this.j)}Hf(this.g);a=XA(this);YA(a);this.D||(this.A=bg(document,"keydown",x(this.ws,this)));a=this.g;d=Mg("player-added",this.vs,this);yf(a,"player-ready-pubsub-key",d);this.G&&(this.o=bg(document,"click",x(this.xs,this)));gt(this.g);L(document.body,"yt-dialog-active");RA(SA.getInstance());RA(TA.getInstance())}};
function ZA(){var a=bd("yt-dialog");return kb(a,function(a){return ft(a)})}f.vs=function(){Hf(this.g)};function XA(a){var b=cd("iframe",null,a.g);C(b,function(a){var b=Af(a,"onload");b&&(b=t(b))&&bg(a,"load",b);if(b=Af(a,"src"))a.src=b},a);return wb(b)}function YA(a){C(document.getElementsByTagName("iframe"),function(b){-1==fb(a,b)&&L(b,"iframe-hid")})}function $A(){var a=bd("iframe-hid");C(a,function(a){vf(a,"iframe-hid")})}
f.Sr=function(a){a=a.currentTarget;a.disabled||(a=Af(a,"action")||"",aB(this,a))};
function aB(a,b){if(!a.fa()){a.k.publish("pre-all");a.k.publish("pre-"+b);ht(a.g);RA(SA.getInstance());RA(TA.getInstance());ZA()||(ht(a.j),vf(document.body,"yt-dialog-active"),If(),$A());a.A&&(dg(a.A),a.A=null);a.o&&(dg(a.o),a.o=null);var c=a.g;if(c){var d=Af(c,"player-ready-pubsub-key");d&&(Og(d),c&&(c.dataset?delete c.dataset[zf("player-ready-pubsub-key")]:c.removeAttribute("data-player-ready-pubsub-key")))}a.k.publish("post-all");Pg("yt-ui-dialog-hide-complete",a);"cancel"==b&&Pg("yt-ui-dialog-cancelled",
a);a.k&&a.k.publish("post-"+b)}}f.ws=function(a){M(x(function(){27==a.keyCode&&aB(this,"cancel")},this),0)};f.xs=function(a){"yt-dialog-base"==a.target.className&&aB(this,"cancel")};f.fa=function(){return this.B};f.dispose=function(){ft(this.g)&&aB(this,"dispose");dg(this.C);this.k.dispose();this.k=null;this.B=!0};q("yt.ui.Dialog",UA,void 0);function bB(a){V.call(this,["span"]);this.element.innerHTML=a}z(bB,V);function cB(a){this.o=Math.exp(Math.log(.5)/a);this.g=this.k=0}cB.prototype.j=function(a,b){var c=Math.pow(this.o,a);this.g=b*(1-c)+c*this.g;this.k+=a};cB.prototype.A=function(){return this.g/(1-Math.pow(this.o,this.k))};function dB(a){this.j=window.Float32Array?new Float32Array(a):Array(a);this.g=a-1}dB.prototype.add=function(a){this.g=(this.g+1)%this.j.length;this.j[this.g]=a};dB.prototype.forEach=function(a){for(var b=this.g+1;b<this.j.length;b++)a(this.j[b]||0);for(b=0;b<=this.g;b++)a(this.j[b]||0)};function eB(a,b,c){this.F=0;this.C=a;this.o=b||.5;this.B=c||0;this.D="index";this.g=0;this.k=[]}eB.prototype.j=function(a,b){hB(this,"index");this.k.push({index:this.F++,weight:a,value:b});this.g+=a;for(hB(this,"index");this.g>this.C;){var c=this.g-this.C,d=this.k[0];d.weight<=c?(this.g-=d.weight,this.k.shift()):(this.g-=c,d.weight-=c)}};function iB(a,b){hB(a,"value");var c=b*a.g,d=0,e=NaN;a.k.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
eB.prototype.A=function(){return this.B?(iB(this,this.o-this.B)+iB(this,this.o)+iB(this,this.o+this.B))/3:iB(this,this.o)};function hB(a,b){a.D!=b&&(a.D=b,Fb(a.k,b))};function jB(a){this.policy=a;this.j=this.A=this.B=0;this.D=new dB(100);this.C=0;this.F=y();this.o=new eB(16,.6);this.k=new cB(4);this.policy.j?this.g=new cB(17):this.g=new eB(17,.5,.1);a=fh("yt-player-bandwidth")||{};this.g.j(this.policy.g,0<a.byterate?a.byterate:13E4);0<a.delay&&this.o.j(1,Math.min(+a.delay,2));0<a.tailDelay&&this.k.j(1,+a.tailDelay);this.j=y()}function kB(a,b,c){b=Math.max(b,.05);a.g.j(b,c/b);lB(a)}function mB(a,b,c){isNaN(c)||(a.A+=c);isNaN(b)||(a.B+=b/1E3);lB(a)}
function nB(a){a=a.o.A();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function oB(a){return a.k.A()||0}function pB(a){a=a.g.A();return 0<a?a:1}function qB(a){var b={};b.delay=nB(a);b.tailDelay=oB(a);b.byterate=pB(a);return b}function rB(a){1E4<y()-a.j&&(uo(qB(a)),a.j=y())}function lB(a){var b=y();a.F=b;500<b-a.C&&(a.D.add(1/(1/pB(a)+oB(a))),a.C=b)}function sB(a){return 4E3<=y()-a.F};function tB(){this.g=.5;this.j=!1};function uB(){N.call(this);this.g=[];this.B={};this.k={};this.A={};this.j=this.C=null;this.o=[];this.D=null}z(uB,N);uB.prototype.cn=function(a){if(this.j){var b;var c=la(a);b=this.B[c];if(!b)if(this.j){if(b=a(this.j)){a=this.B[c]=b;for(var d in this.C)a.subscribe(d,this.C[d]);a.subscribe("command_log_timing",this.F,this);O(this,b)}}else b=null;b&&b.Va(this.j)&&!E(this.g,b)&&(b.create(),this.g.push(b),E(this.o,b.va)&&(b.jb=this.D,b.Vg(!!b.jb)))}};
function vB(a){a.g=hb(a.g,function(a){if(!this.j||a.Hj(this.j)){try{a.destroy()}catch(c){Sf(c)}return!1}return!0},a)}function wB(a,b,c){xB(a);a.D=b;a.o=wb(c);C(a.g,function(a){0<=fb(c,a.va)&&(a.jb=b,a.Vg(!!a.jb))})}function xB(a){C(a.o,function(a){if(a=No(this,a))a.jb=null,a.Vg(!1)},a);a.D=null;a.o=[]}function Zo(a,b){if(!b)return ib(a.g,function(a){return a.va});var c=No(a,b);return c?c.yh():[]}function No(a,b){return D(a.g,function(a){return a.va==b})}
uB.prototype.G=function(a,b){C(this.g,function(c){c.publish(a,b)})};function yB(a){var b={};C(a.g,function(a){sa(b,a.tf())});return b}uB.prototype.F=function(a,b){sa(this.A,a||null);sa(this.k,b||null)};uB.prototype.isAvailable=function(a){return(a=No(this,a))?a.aj:!1};function zB(a){this.g={};for(var b=0;b<a.length;b++){var c=a[b];this.g[c.g]=c}}function AB(a){a=ec(a.g);Db(a,function(a,c){return a.g-c.g});return a};function BB(a,b,c){this.k=a;this.g=b;this.o=!!c.Hd;this.j=c.ia};function CB(){this.Ob={};this.j=this.Bb().g;this.g=null}f=CB.prototype;f.Bb=function(){var a=this.constructor,b;if(!(b=a.To)){var c;b=a.Ox;var d=[];for(c in b)0!=c&&d.push(new BB(a,c,b[c]));c=new zB(d);b=a.To=c}return b};f.get=function(a,b){a.k.Bb();this.Bb();var c;c=a.g;var d=DB(this,c);c=this.j[c].o?d[b||0]:d;return c};f.set=function(a,b){a.k.Bb();this.Bb();EB(this,a.g,b)};f.add=function(a,b){a.k.Bb();this.Bb();FB(this,a.g,b)};
f.clear=function(a){a.k.Bb();this.Bb();a=a.g;delete this.Ob[a];this.g&&delete this.g[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=AB(this.Bb()),c=0;c<b.length;c++){var d=b[c],e=d.g;if(null!=this.Ob[e]!=(null!=a.Ob[e]))return!1;if(null!=this.Ob[e]){var g=11==d.j||10==d.j,h=DB(this,e),e=DB(a,e);if(d.o){if(h.length!=e.length)return!1;for(d=0;d<h.length;d++){var k=h[d],l=e[d];if(g?!k.equals(l):k!=l)return!1}}else if(g?!h.equals(e):h!=e)return!1}}return!0};
function GB(a,b){for(var c=AB(a.Bb()),d=0;d<c.length;d++){var e=c[d],g=e.g;if(null!=b.Ob[g]){a.g&&delete a.g[e.g];var h=11==e.j||10==e.j;if(e.o)for(var e=DB(b,g)||[],k=0;k<e.length;k++)FB(a,g,h?e[k].clone():e[k]);else e=DB(b,g),h?(h=DB(a,g))?GB(h,e):EB(a,g,e.clone()):EB(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.Ob={},a.g&&(a.g={}),GB(a,this));return a};function DB(a,b){var c=a.Ob[b];return null==c?null:c}function EB(a,b,c){a.Ob[b]=c;a.g&&(a.g[b]=c)}
function FB(a,b,c){a.Ob[b]||(a.Ob[b]=[]);a.Ob[b].push(c);a.g&&delete a.g[b]}function HB(a,b){a.Ox=b;a.Bb=function(){return a.To||(new a).Bb()}};function IB(){CB.apply(this)}z(IB,CB);function JB(){CB.apply(this)}z(JB,CB);HB(IB,{0:{name:"MessageDetails",Od:"logs_proto.MessageDetails"},1:{name:"may_appear_in",Hd:!0,ia:11,type:JB}});HB(JB,{0:{name:"Type",cD:IB,Od:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,ia:9,type:String},2:{name:"log_type",required:!0,ia:9,type:String}});var KB={Ty:0,sA:1,DA:2,Sy:3,az:4,pA:5,BA:6,yA:7,zA:8,AA:9,wA:10,xA:11,cz:12,bz:13,Ry:14,Ly:15,rA:20,FA:21,Ky:22,tA:23,EA:24,CA:25,Yy:30,GA:31,Xy:32,Zy:33,vA:40,uA:41,dz:42,ez:43,My:50,Py:51,Uy:52,Vy:53,Wy:54,Hy:55,Iy:56,$y:57,Qy:58,Oy:60,Ny:61,Jy:70,qA:80,fz:90};function LB(){CB.apply(this)}z(LB,CB);function MB(){CB.apply(this)}z(MB,CB);function NB(){CB.apply(this)}z(NB,CB);function OB(){CB.apply(this)}z(OB,CB);function PB(){CB.apply(this)}z(PB,CB);function QB(){CB.apply(this)}z(QB,CB);
QB.prototype.hasFeature=function(){return null!=this.Ob[7]};
HB(LB,{0:{name:"YtAdType",Od:"video.YtAdType"},1:{name:"ad_namespace",required:!0,ia:14,defaultValue:0,type:{Gz:0,WA:1,Hz:2,OA:3,fB:4,TA:5,SA:6,LA:7,QA:8,MA:9,NA:10,RA:11,KA:12,VC:13}},2:{name:"ad_format",required:!0,ia:14,defaultValue:0,type:{Cz:0,vB:1,tB:2,LB:3,JC:4,wB:5,qB:6,sB:7,$C:8,aB:9}},3:{name:"ad_invideo",ia:14,defaultValue:0,type:{Ez:0,iA:1,jA:2,kA:3,PA:4,hA:5,Xz:6}},4:{name:"invideo_autoplay",ia:14,defaultValue:0,type:{Tz:0,ay:1}},5:{name:"ad_instream",ia:14,defaultValue:0,type:{Dz:0,
DC:1,GC:2,Vj:3,Wz:4}},6:{name:"ad_instream_long",ia:8,type:Boolean}});HB(MB,{0:{name:"AdId",Od:"video.AdId"},1:{name:"ad_network",ia:14,defaultValue:1,type:{OTHER:1,Fy:2}},2:{name:"ad_network_name",ia:9,type:String},3:{name:"ad_id",required:!0,ia:9,type:String}});
HB(NB,{0:{name:"YtAdEvent",Od:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,ia:14,defaultValue:0,type:{nz:0,vz:1,oz:2,yz:3,pz:4,qz:5,kz:6,iz:7,HA:8,gz:9,wz:10,xz:11,hz:12,JA:13,zz:14,lz:15,IA:16,mz:17,jz:18,Az:100,Bz:101,sz:130,rz:131,uz:132}},2:{name:"wall_time",required:!0,ia:2,type:Number},3:{name:"media_time",required:!0,ia:2,type:Number},4:{name:"logentry_time_usec",required:!0,ia:3,type:String},5:{name:"ad_error_type",ia:14,defaultValue:0,type:KB}});
HB(OB,{0:{name:"YtAdSlot",Od:"video.YtAdSlot"},1:{name:"slot_time",required:!0,ia:2,type:Number},2:{name:"ad_type",required:!0,ia:11,type:LB},3:{name:"ad_events",Hd:!0,ia:11,type:NB},4:{name:"ad_video_duration",ia:2,type:Number},5:{name:"ad_id",ia:9,type:String},6:{name:"slot_index",ia:5,type:Number}});
HB(PB,{0:{name:"YtVideoMetadata",Od:"video.YtVideoMetadata"},1:{name:"content_owner_ids",Hd:!0,ia:9,type:String},2:{name:"video_duration_seconds",ia:2,type:Number},3:{name:"all_content_owner_ids",ia:9,type:String}});
HB(QB,{0:{name:"YtWatchAdInfo",Od:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,ia:9,type:String},2:{name:"allowed_ads",Hd:!0,ia:11,type:LB},3:{name:"ad_slots",Hd:!0,ia:11,type:OB},4:{name:"ps",ia:9,type:String},5:{name:"el",ia:9,type:String},6:{name:"country",ia:9,type:String},7:{name:"feature",ia:9,type:String},8:{name:"blocked",ia:8,type:Boolean},9:{name:"plid",ia:9,type:String},10:{name:"video_metadata",ia:11,type:PB},11:{name:"experiment_id",Hd:!0,ia:3,type:String},12:{name:"ad_flags",
ia:4,type:String},13:{name:"all_experiment_ids",ia:9,type:String},14:{name:"no_ads_returned",ia:8,type:Boolean},15:{name:"ad_errors",Hd:!0,ia:14,defaultValue:0,type:KB},16:{name:"ad_slot_with_event",ia:11,type:OB}});function RB(a,b){cp.call(this,a,b)}z(RB,cp);f=RB.prototype;f.Yg=function(){zo(this.app,!0,this.g);this.app.fd(this.g)};f.pauseVideo=function(){this.app.pauseVideo(this.g)};f.Ko=function(a,b,c){zo(this.app,!0,this.g);var d=this.app,e=this.g;d.Rd(d.getCurrentTime()+a,b,c,e)};f.Zg=function(a,b){zo(this.app,!0,this.g);this.app.Rd(a,b,void 0,this.g)};f.Am=function(){Ho(this.app,this.g)};function SB(a){this.app=a;Xp.call(this,a.cg)}z(SB,Xp);SB.prototype.getAdState=function(){return-1};SB.prototype.subscribe=function(a,b,c){return SB.J.subscribe.call(this,a,b,c)};function TB(a,b,c){this.o=a;this.g=b||"";this.j=c||null;this.k=!1}function UB(a,b){var c;if(c=Bm("grc",a.g))Am(a.g),c=!0;if(c){var d=a.g;c=Am(d).span;d=Am(d).tick;"grc"in d&&(c[b]=y()-d.grc)}else Bm(b,a.g)||zm(b,void 0,a.g)}TB.prototype.reset=function(){Fm(this.g);xm()};TB.prototype.info=function(a,b){Cm(a,b,this.g)};
function VB(a){var b=a.o;if(!b.ja||"detailpage"!=b.ea&&"leanback"!=b.ea&&("embedded"!=b.ea||!b.Uf&&!b.experiments.B)||a.k)return NaN;a.k=!0;Nf("TIMING_ACTION")||Lf("TIMING_ACTION",a.o.Aa);if(a.j){var b=a.j.A,c;for(c in b)zm(c,b[c],a.g);c=a.j.k;for(var d in c)Cm(d,c[d],a.g);d=a.j;d.A={};d.k={}}if(d=Ff("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}Cm("yt_vis",c,a.g)}Cm("yt_pt","html5",a.g);var e;if(Bm("_start",
a.g)){a=a.g;b=Am(a).tick;d=Am(a).span;var g=Am(a).info;if(c=t("yt.timing.reportbuilder_")){if(c=c(b,d,g,a))Dm(c),Fm(a),xm();e=NaN}else{c={v:2,s:"_old_youtube",action:Nf("TIMING_ACTION")};if(wm.now&&wm.timing){var h=wm.timing.navigationStart+wm.now(),h=Math.round(y()-h);g.yt_hrd=h}var h=Nf("TIMING_INFO")||{},k;for(k in h)g[k]=h[k];k=g.srt;delete g.srt;var l;k||0===k||(l=wm.timing||{},k=Math.max(0,l.responseStart-l.navigationStart),isNaN(k)&&g.pt&&(k=g.pt));if(k||0===k)g.srt=k;g.h5jse&&(h=window.location.protocol+
t("ytplayer.config.assets.js"),(h=wm.getEntriesByName?wm.getEntriesByName(h)[0]:null)?g.h5jse=Math.round(g.h5jse-h.responseEnd):delete g.h5jse);h=!1;b.aft||(b.pbr&&b.pbs>b.pbr?(b.aft=b.pbr,h=!0):b.pbs?(b.aft=b.pbs,h=!0):b.vr?(b.aft=b.vr,h=!0):b.aft=b.ol);b.gv&&h&&(d.vl=Math.round(b.aft-b.gv));h=b._start;if(!tm){l||(l=wm.timing||{});var n;i:if(n=l,n.msFirstPaint)n=Math.max(0,n.msFirstPaint);else{var r=window.chrome;if(r&&(r=r.loadTimes,ja(r))){var r=r(),v=1E3*Math.min(r.requestTime||Infinity,r.startLoadTime||
Infinity),v=Infinity===v?0:n.navigationStart-v;n=Math.max(0,Math.round(1E3*r.firstPaintTime+v)||0);break i}n=0}0<n&&n>h&&(b.fpt=n);n=l.redirectEnd-l.redirectStart;0<n&&(d.rtime_=n);n=l.domainLookupEnd-l.domainLookupStart;0<n&&(d.dns_=n);n=l.connectEnd-l.connectStart;0<n&&(d.tcp_=n);n=l.connectEnd-l.secureConnectionStart;l.secureConnectionStart&&0<n&&(d.stcp_=n);n=l.responseStart-l.requestStart;0<n&&(d.req_=n);n=l.responseEnd-l.responseStart;0<n&&(d.rcv_=n);tm=!0}for(var s in g)"_"!=s.charAt(0)&&(c[s]=
g[s]);s={};l=[];for(var w in b)"_"!=w.charAt(0)&&(n=Math.max(Math.round(b[w]-h),0),s[w]=n,l.push(w+"."+n));c.rt=l.join(",");w={};l=[];for(e in d)"_"!=e.charAt(0)&&(w[e]=d[e],l.push(e+"."+d[e]));c.it=l.join(",");(e=t("ytdebug.logTiming"))&&e(c,s,w);Fm(a);xm();Nf("EXP_DEFER_CSI_PING")?(Em(),um=c,vm=M(Em,0)):Dm(c);e=s.aft+(k||0)}}else e=NaN;return e}Ld("hidden",window.document);function WB(a,b){a=!!a;q("_lactCookie",a,window);if(null==t("_lact",window)){if(a&&b){var c=Jh("ACTIVITY","-1");q("_lact",parseInt(c,10),window)}else q("_lact",-1,window),gp();bg(document,"keypress",gp);bg(document,"mousedown",gp);bg(document,"mouseup",gp)}}function gp(){var a=t("_lact",window);null==a&&(WB(),a=t("_lact",window));var b=y();q("_lact",b,window);t("_lactCookie",window)&&1E3<=b-a&&Ih("ACTIVITY",""+b)}function XB(){var a=t("_lact",window);return null==a?-1:Math.max(y()-a,0)};var YB={$B:"red",WHITE:"white"};var ZB={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},$B={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},aC="blogger books docs google-live play picasaweb".split(" ");
function bC(a){N.call(this);a=nc(a);this.k={};this.experiments=new Om(a.fexp);this.Ia=a.forced_experiments||null;this.origin=S(this.origin,a.origin);this.D=S("",a.loaderUrl);this.fb=(this.F=Wj(document.location.toString()))?S("",a.loaderUrl):document.location.toString();"adunit"==a.el?Yj(this.D)?this.ea="adunit":this.ea="embedded":this.ea=a.el||this.ea;WB("detailpage"==this.ea,a.autonav);var b=null,c=a.ps;!c||E(aC,c)&&!this.xb()||(b=c);this.g=b;switch(this.ea){case "detailpage":this.bc=!0}switch(this.g){case "blazer":this.bc=
this.autoplay=!1;this.ja=!0;break;case "blogger":this.bc=this.lc=this.Gb=this.ee=this.kd=!1;this.Zb="bl";break;case "books":this.lc=this.Gb=this.ee=this.kd=!1;this.bc=!0;this.Zb="gb";break;case "docs":this.bc=this.lc=this.Gb=this.ee=this.kd=!1;this.Zb="gd";break;case "google-live":this.bc=this.lc=this.Gb=this.ee=this.kd=!1;this.Zb="gl";break;case "play":this.bc=this.lc=!1;this.Zb="gp";break;case "picasaweb":this.bc=this.lc=this.Gb=this.ee=this.kd=!1,this.Zb="pw"}this.tg=this.xb()&&E(aC,this.g);this.Ja=
!(!hm().defaultPlaybackRate||Fc||zg||yg||em("android")||em("silk"));a.use_media_volume||(b=hm(),b.muted=!b.muted);this.ub=Ag;this.vb=(zg||yg||Cg)&&"blazer"!=this.g&&!1;this.Fq=Q("adunit"!=this.ea&&"detailpage"!=this.ea&&!this.tg,a.showinfo);this.B=Q("blazer"==this.g,a.is_html5_mobile_device);this.L=Q(!1,a.playsinline);b=this.B&&Yl&&2.3>=Xl;c=yg&&!this.L||!b&&Q("native"==this.g,a.use_native_controls)?"3":"1";this.j="0"!=a.controls?c:"0";this.Ka=Q("blazer"==this.g||"touch"==this.g,a.use_tablet_controls);
this.color=nm("red",a.color,YB);Q(!1,a.nologo)&&((c=this.F?this.D:document.location.toString())&&c.search(Pj),Xj(c));this.Yb=this.cb=b;this.o=!yg;this.Ca=this.F||!0;if(this.experiments.U)b="detailpage"!=this.ea?this.fb.substring(0,128):"";else if(b=S("",a.eurl),c=!this.experiments.W,"detailpage"==this.ea||c&&"unknown"==b||"undefined"==b)b="";this.C=b;b=Q(this.fl,a.fs);this.fl="detailpage"==this.ea&&"blazer"==this.g?b:b&&hg();this.Fb=S(this.Fb,a.authuser);this.autoplay=Q(this.autoplay,a.autoplay);
this.ni=Q(this.ni,a.autoplayoverride);this.G=S(this.G,a.content_v);this.Zk=Q(this.Zk,a.disablekb);this.Ag=Q(this.Ag,a.edu_mode);this.N=S(this.N,a.framer);this.ta=nm(this.ta,a.iv_load_policy,Wl);this.Z=S(this.Z,a.hl);this.$k=Q(this.$k,a.bwlogging);this.sg=Q(this.sg,a.player_wide);this.lg=Q(this.lg,a.privembed);this.da=om(this.da,a.live_chunk_readahead||a.hls_live_chunk_readahead);this.il=Q(this.il,a.loop);this.al=Q(this.al,a.on3g);this.pageId=S(this.pageId,a.pageid);this.ki=sm(this.ki,a.vq);this.Qh=
S(this.Qh,a.playerapiid);this.wa=S(this.wa,a.cr);this.Gb=Q(this.Gb,a.logwatch);this.Rh=Q(this.Rh,a.canplaylive);this.lc=Q(this.lc,a.rel);this.bc=Q(this.bc,a.enablesizebutton);this.bl=Q(this.bl,a.ss);this.theme=S(this.theme,a.theme);this.xb()&&(this.Wh=Q(this.Wh,a.retryneterr));"3"==this.j&&(this.ta=3);this.useSsl=Q(this.useSsl,a.ssl);if(this.og=Q(this.og,a.ssl_stream))this.useSsl=!0;this.Ka&&(this.theme="dark");b=this.Re;if(c=a.video_container_override){var 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 G(c,d))}this.Re=b;this.Pd=S(this.Pd,a.attrib);this.Qd=S(this.Qd,a.sk);this.protocol=this.useSsl?"https":"http";this.Ih=Q("0"!=this.j,a.store_user_volume);this.Nc=Q(this.Nc,a.use_media_volume);if(b=a.BASE_YT_URL)if(b=(b=b&&b.match(Fj))?b[0]:"")this.Ya=b;(b=a.gdatabaseurl)&&b&&-1!=b.search(Ij)&&(this.Xk=b);cC(this,a);b=this.autoplay||"detailpage"==this.ea;c=!0;this.B&&(c=!1);em("nintendo wiiu")&&(c=!1);this.ni&&(c=!0);this.Uf=b&&c;this.k=a}
z(bC,N);f=bC.prototype;f.Ud=null;f.fl=!0;f.Fb="";f.autoplay=!1;f.ni=!1;f.Ya="/";f.Xk="//gdata._old_youtube.com/";f.bd="web";f.ed="html5";f.Zk=!1;f.Ag=!1;f.ea="detailpage";f.$k=!1;f.ib=!1;f.vn=!1;f.sg=!1;f.kd=!0;f.lg=!1;f.ee=!0;f.il=!1;f.ki=Ml;f.Qh="";f.Kh="";f.al=!1;f.pageId="";f.Wh=!1;f.Uf=!1;f.Gb=!1;f.Rh=!0;f.Ih=!0;f.Nc=!1;f.lc=!0;f.bc=!1;f.bl=!1;f.useSsl=!1;f.og=!1;f.Mc=null;f.Re=null;f.mn=null;f.fe=null;f.Fa=null;f.Zb="yt";function Qo(a,b){a.Ba=b.get("d",a.Ba);a.ka=b.get("f",a.ka)}
function cC(a,b){a.A=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in ZB&&c in $B?$B[c]+"_"+ZB[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.xb()||d)&&(a.A=c,a.k.adformat=b.adformat,d||(a.ea="adunit"))}a.Ud=(b&&b.adpings?lh(b.adpings):null)||a.Ud;c=b.agcid;a.eb=c;a.k.agcid=c;c=b.feature;a.I=c;a.k.feature=c;c=b.referrer;a.referrer=c;a.k.referrer=c;a.searchQuery=b.q;a.O=S(a.O,b.cbrand);a.P=S(a.P,b.cbr);a.R=S(a.R,b.cbrver);a.bd=S(a.bd,
b.c);a.ed=S(a.ed,b.cver);a.deviceModel=S(a.deviceModel,b.cmodel);a.W=S(a.W,b.cnetwork);a.U=S(a.U,b.cos);a.Y=S(a.Y,b.cosver);a.H=S(a.H,b.cplatform);a.Gb=Q(a.Gb,b.logwatch);a.userAge=om(a.userAge,b.user_age);a.Jc=S(a.Jc,b.user_display_image);a.Ic=S(a.Ic,b.user_display_name);a.Ra=S(a.Ra,b.user_gender);a.aa=S(a.aa,b.eventid);a.Aa=S(a.Aa,b.csi_page_type);a.ja=Q(a.ja,b.enablecsi)}
function dC(a){var b={};b.c=a.bd;a.ed&&(b.cver=a.ed);a.H&&(b.cplatform=a.H);a.O&&(b.cbrand=a.O);a.deviceModel&&(b.cmodel=a.deviceModel);a.W&&(b.cnetwork=a.W);a.P&&(b.cbr=a.P);a.R&&(b.cbrver=a.R);a.U&&(b.cos=a.U);a.Y&&(b.cosver=a.Y);return b}
function eC(a,b,c){switch(b.da){case 38:return a=b.videoId.indexOf(":"),Pe("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Kr});case 30:return c="//docs.google.com/",a.Ya!=bC.prototype.Ya&&(c=a.Ya),Pe(c+"get_video_info",{docid:b.videoId,authuser:b.Fb,authkey:b.eb,eurl:a.C});case 33:return Pe("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.xa,eurl:a.C,ps:a.g,el:a.ea,hl:a.Z,list:b.playlistId,
agcid:a.eb,sts:16374,lact:fC(a)?XB():"-1"};a.Ia&&(d.forced_experiments=a.Ia);b.C?d.vvt=b.C:b.B&&(d.access_token=b.B);a.A&&(d.adformat=a.A);b.aa&&(d.iv_load_policy=b.aa);b.ka&&(d.itct=b.ka);b.Ne&&(d.autoplay="1");b.fj&&(d.noiba="1");b.gj&&(d.mdx="1");b.hj&&(d.utpsa="1");b.Yb&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.Sm&&(d.ypc_preview="1");b.Hc&&(d.splay="1");a.G&&(d.content_v=a.G);b.oi&&(d.livemonitor=1);a.Fb&&(d.authuser=a.Fb);a.pageId&&(d.pageid=a.pageId);a.aa&&
(d.ei=a.aa);a.og&&(d.ssl_stream="1");a.F&&(d.iframe="1");b.$f&&(d.tst=b.$f);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");sa(d,dC(a));return Pe(a.Ya+"get_video_info",d)}}function gC(a){return a.Ag?"//s.youtubeeducation.com/":a.ee?"//s._old_youtube.com/":"//video.google.com/"}function hC(a){return a.referrer?a.referrer.slice(0,128):""}
f.getVideoUrl=function(a,b,c){a={v:a.videoId,list:a.playlistId};b&&sa(a,b);b=Pe(this.protocol+"://"+("www._old_youtube-nocookie.com"==window.location.host||this.Ag?"www._old_youtube.com":window.location.host)+"/watch",a);if(c){a="";a="!"=="#".charAt(1)?"#".substr(0,2):"#";var d;d="#";"#"==d.charAt(0)&&(d="!"==d.charAt(1)?d.substr(2):d.substr(1));d=lh(d);for(var e in c)d[e]=c[e];c=a+Oe(d);b=b+c}return b};
function iC(a){var b={};if(!a.Fa)return b;a.Fa.webkitDecodedFrameCount&&(b.hmewdfc=a.Fa.webkitDecodedFrameCount,b.hmewdrop=a.Fa.webkitDroppedFrameCount,b.hmewvdbc=a.Fa.webkitVideoDecodedByteCount,b.hmewadbc=a.Fa.webkitAudioDecodedByteCount);a.Fa.mozParsedFrames&&(b.hmempf=a.Fa.mozParsedFrames,b.hmemdf=a.Fa.mozDecodedFrames,b.hmempresented=a.Fa.mozPresentedFrames,b.hmempainted=a.Fa.mozPaintedFrames,b.hmempaintdelay=a.Fa.mozPaintDelay);return b}function jC(){return XB()}
function fC(a){return a.experiments.ua?"detailpage"==a.ea||"leanback"==a.ea:!0}f.xb=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(Gj))&&!this.F;return a&&this.F&&Xj(this.D)||b};f.K=function(){this.Fa=null;bC.J.K.call(this)};function kC(a,b,c){this.C=a;this.L=b;this.H=c;this.k=[];this.j=[];this.D=this.A=this.B=this.G=-1;this.g=null;this.o=0}var lC={redirectStart:"rs",fetchStart:"fs",domainLookupEnd:"dle",connectStart:"cs",secureConnectStart:"scs",requestStart:"rqs",responseStart:"rss",responseEnd:"rse"};
function mC(a){return a.experiments.da||a.experiments.F||a.experiments.C||a.experiments.G||a.experiments.g||a.experiments.D||a.experiments.j?!("http:"!=window.location.protocol&&!a.experiments.j||!window.performance||!window.performance.now||!window.performance.getEntriesByName||fh("yt-ssl-debug")):!1}
kC.prototype.start=function(){if(!fh("yt-ssl-debug")){var a=new XMLHttpRequest;a.open("GET",this.C);a.addEventListener("progress",x(this.N,this));a.addEventListener("loadend",x(this.I,this));a.timeout=15E3;this.G=window.performance.now();ch("yt-ssl-debug",{sent:!0},1800);a.send()}};kC.prototype.N=function(a){this.j.length&&this.j[0]==a.loaded||(this.k.push(window.performance.now()),this.j.push(a.loaded))};
kC.prototype.I=function(a){a=a.target;this.B=window.performance.now();this.D=a.status;this.A=a.responseText?a.responseText.length:-1;this.F()};function nC(a,b){if(!a.length)return"0";for(var c=[],d=a[0],e=1;6>e&&e<a.length;e++){var g=Math.round((a[e]-d)/b);c.push(g);d+=g*b}for(e=Math.max(6,a.length-6);e<a.length;e++)g=Math.round((a[e]-d)/b),c.push(g),d+=g*b;return c.join(",")}
function oC(a){var b={event:"ssldebug",target:a.L,cpn:a.H,rc:a.D.toString(),rt:(a.B-a.G).toFixed(0)};a.k.length&&(b.rts=nC(a.k,1),b.lbs=nC(a.j,1024));0<a.A&&(b.clen=a.A);a.g&&sa(b,ac(a.g,function(a){return a.toFixed(0)}));return b}
kC.prototype.F=function(){var a;if(a=4>this.o){var b;a=window.performance.getEntriesByName(this.C);if(a.length){a=a[0];var c=a.startTime;this.g={};for(b in lC){var d=lC[b];0<a[b]&&(this.g[d]=a[b]-c)}b=!0}else b=!1;a=!b}if(a)this.o+=1,M(x(this.F,this),100);else{b=oC(this);a=[];for(var e in b)a.push(e+"="+b[e]);e="http://www._old_youtube.com/gen_204?"+a.join("&");ek(e)}};function pC(a,b){this.g=a;this.na=b;this.j=1}function qC(a,b,c,d){d/=a.j;var e=oB(a.g)+1/pB(a.g),g;g=Math.max(.9*(d-3),nB(a.g)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.na.F,Math.min(a.na.N,c));a=Math.max(a.na.D,Math.ceil(a.na.F*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function rC(a){var b=pB(a.g);a=nB(a.g)+1048576*oB(a.g);return b*Math.min(1,1048576/(b*a))}function sC(a){return rC(a)/a.j};function tC(a,b,c){this.g=a;this.video=b;this.reason=c};function uC(a,b,c,d){this.N=a;this.na=b;this.D=c;this.A=d;this.k=this.H=this.g=null;this.C="i";this.G=-1;this.B=this.o=null;this.j=[];this.F=this.I=0;this.L=null}function vC(a,b,c){"m"==c&&Ol(a.g)&&!Ol(b)&&(c="a");if("m"==c&&Ol(b))return a.C=c,wC(a,b),xC(a),a.k=yC(a),new tC(zC(a),a.k,c);var d=a.g.equals(b);if("m"==a.C&&Ol(a.g)&&d)return null;"r"!=c||d||(a.G=-1);wC(a,b);b=yC(a);if("r"==c&&!d&&b==a.k)return a.k=b,new tC(zC(a),b,c);a.C=c;return null}
function AC(a,b){BC(a);a.L=b;a.F=y();a.G=-1;wC(a,a.g)}function BC(a){return!!a.F&&9E4>=y()-a.F}function zC(a){CC(a);return a.o}function yC(a){CC(a);return a.B}function DC(a){var b=a.C;a.C="a";a.G=y();return new tC(a.H,a.k,b)}
function CC(a){if(Ol(a.g)||!(8E3>y()-a.G)){a.F&&!BC(a)&&(a.F=0,wC(a,a.g));xC(a);var b=rC(a.N);if(Ol(a.g))a.B=a.D.g[a.j[a.j.length-1].id];else{for(var c=Math.min(a.I,a.j.length-1),d=b/1.05-a.o.info.ha;0<c&&!(a.j[c].ha<=d);c--);for(b=b/1.15-a.o.info.ha;c<a.j.length-1&&!(a.j[c+1].ha>=b);c++);a.I=c;a.B=a.D.g[a.j[c].id]}}}
function wC(a,b){a.g=b;var c=a.A.j;if(!Ol(a.g)&&(c=hb(c,function(a){return a.ha>this.na.ha?!1:!this.D.g[a.id].A},a),BC(a))){var c=hb(c,function(a){return a.id!=this.L.id},a),d=hb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.A.j);c=hb(c,a.g.o,a.g);c.length||(c=[a.A.j[0]]);c.sort(function(a,b){return a.ha-b.ha});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(ub(c,d),d--):1.15*e.ha>g.ha&&(ub(c,d-1),d--)}a.j=c}
function EC(a){var b=D(a.A.g,function(a){return!!a.A&&a.A.g}),b=b||a.A.g[0];a.o=a.D.g[b.id];xC(a)}function xC(a){if(!a.o.info.A&&(a.o=a.D.g[a.A.g[0].id],a.na.H&&1<a.A.g.length)){var b=!1;if(Ol(a.g))b=240>a.g.g;else{for(b=0;b+1<a.j.length&&"tiny"==a.j[b].video.quality;)b++;b=a.o.info.ha+a.j[b].ha>rC(a.N)}b&&(a.o=a.D.g[a.A.g[1].id])}}
function FC(a){var b=sC(a.N)/1.05-a.o.info.ha,c=pb(a.j,function(a){return this.na.rg&&this.na.rg<rk[a.video.quality]?!1:a.ha<b},a);0>c&&(c=0);a.I=c;a.B=a.D.g[a.j[c].id]};function GC(){this.g=this.j=!1}GC.prototype.start=function(){this.j=!0};GC.prototype.reset=function(){this.g=this.j=!1};function HC(a,b){this.na=a;this.j=b;this.pendingRequests_=[];this.g=[];this.o=this.k=null;this.A=0;this.ha=b.info.ha;this.C=this.D=!1;this.B=new GC}function IC(a,b){a.pendingRequests_.push(b);a.k=db(b.info.g);a.A+=Rk(b.info)}function JC(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.A-=Rk(b.info);a.A+=db(b.o).buffer.byteLength;C(b.o,a.G,a)}}
HC.prototype.G=function(a){if(4==a.info.type){var b=a.info.g.On(a);a.info==this.k&&(this.k=db(b).info);C(b,this.G,this)}else 3==a.info.type&&this.g.push(a)};function KC(a){var b=Vk(a.g[0]);return b.getInt32(0)>b.byteLength&&1==a.g.length}
function LC(a,b){if(a.D)return a.g[0].V;var c=a.j.info.j;if(a.g[0].info.A>=b)return null;var d;for(d=1;d<a.g.length;d++){var e=a.g[d].buffer!=a.g[d-1].buffer;if(a.g[d].info.A>b||e||a.na.G)break}d--;var e=a.g[d].V.end,g=a.g[d].info.C-b;if(c&&0<=a.na.B&&g>a.na.B){c=Math.floor((b-a.g[d].info.A)/a.g[d].info.F*a.g[d].info.j);if(0==c)return null;e=a.g[d].V.start+c-1}return new vk(a.g[0].g?0:a.g[0].V.start,e)}
function MC(a,b){for(var c;a.g.length;){if(a.g[0].V.end>b.end){var d;c=a.g[0];var e=b.end-a.g[0].V.start+1,e=Math.min(e,c.info.j),g=new Kk(c.info.type,c.info.g,c.info.V,c.info.o,c.info.startTime,c.info.duration,c.info.k,e,!1);d=xk(c.V.start,e);g=new gl(g,c.buffer,d,c.g);e=new Kk(c.info.type,c.info.g,c.info.V,c.info.o,c.info.startTime,c.info.duration,c.info.k+e,c.info.j-e,c.info.D);d=new vk(d.end+1,c.V.end);d=[g,new gl(e,c.buffer,d,!1)];c=d[0];a.g[0]=d[1]}else c=a.g.shift();d=a;g=c.info;d.o=g;d.D&&
d.o.B&&(d.D=!1);d.ha=Math.max(d.ha,g.g.info.ha);if(c.V.end==b.end)break}a.g.length&&c.buffer==a.g[0].buffer||(a.A-=c.buffer.byteLength)}function NC(a){a.pendingRequests_.length?a.k=db(a.pendingRequests_[a.pendingRequests_.length-1].info.g):a.g.length?a.k=db(a.g).info:a.k=a.o}function OC(a,b){var c=PC(a,b);if(0<=c)return c;a.k=a.j.Dg(b).g[0];QC(a)&&(a.o=null);return a.k.startTime}
function RC(a,b){SC(a);if(a.j.info.video&&a.o&&!a.o.B&&b){var c=nb(a.g,function(a){return a.info.B});a.g=zb(a.g,0,c+1);a.D=!0}else a.g=[];if(a.g.length)for(a.A=a.g[0].buffer.byteLength,c=1;c<a.g.length;c++)a.g[c].buffer!=a.g[c-1].buffer&&(a.A+=a.g[c].buffer.byteLength);else a.A=0}function TC(a){a.B.j||a.B.start();RC(a,!1);QC(a)&&(a.o=null)}
function UC(a){var b=!1,c;for(c=0;c<a.pendingRequests_.length;c++)if(7==a.pendingRequests_[c].state){b=!0;break}if(b){for(;c<a.pendingRequests_.length;)a.F(a.pendingRequests_.pop());NC(a)}}function VC(a){return kb(a.g,function(a){return a.info.B})}function QC(a){return!!a.o&&a.o.D}function WC(a){var b=[];a.o&&b.push(a.o);C(a.g,function(a){b.push(a.info)});C(a.pendingRequests_,function(a){C(a.info.g,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.k&&a.k!=db(b)&&b.push(a.k);return b}
function XC(a){if(!a.k||!a.k.j)return!1;a=WC(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].A-a[b-1].C)))return!1;return!0}function PC(a,b){if(XC(a)){var c;t:{c=WC(a);for(var d=0;d<c.length;d++)if(c[d].A<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function YC(a){return kb(a.pendingRequests_,function(a){return 3<=a.state})}function ZC(a){return!!(a.k&&a.j.Qb()&&a.k.g!=a.j&&a.k.g.info.ha<a.j.info.ha)}
HC.prototype.F=function(a){Lk(a.info.g[0])||a.dispose();this.A-=Rk(a.info)};function SC(a){C(a.pendingRequests_,a.F,a);a.pendingRequests_=[];a.k=null}function $C(a){return!!a.k&&a.k.o<a.j.index.uh()};function aD(a,b,c){this.na=a;this.info=b;this.timing=c;this.state=1;this.g=this.o=null;this.G=NaN;this.B=this.k=0;this.j=NaN;this.C=null;this.F="";this.A=null;this.D=0}aD.j=!1;aD.g=1E4;f=aD.prototype;f.getErrorCode=function(){return this.A};function bD(a){var b;b=a.timing;b={rt:((y()-b.j)/1E3).toFixed(2),lb:b.g,pt:(b.I/1E3).toFixed(2),pb:b.H};b.shost=nh(a.F)||"";a.D&&(b.rc=a.D.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&cD(this);dD(this,2);if(b){if(2>this.k){this.k++;a=aD.g*(.5+Math.random());1==this.k&&(a=2E3);M(x(this.Dj,this),a);return}b=this.info.k;if(!(this.G<=b.k)){b.j++;b.k=Ik-1;var c=b.g,d=new K(c);d.$a.match("\\.googlevideo\\.com$")?(Ve(d,"redirector.googlevideo.com"),c=d.toString()):d.$a.match("r[1-9].*\\.c\\._old_youtube\\.com$")?(Ve(d,"www._old_youtube.com"),c=d.toString()):c=Zj(c);b.g=Ak(c,"cmo",encodeURIComponent("pf="+b.j))}this.k=
0}a?this.Dj():M(x(this.Dj,this),0)};
f.Dj=function(){if(!this.fa()){this.G=Ik++;var a;a=Qk(this.info);a=Ak(a,"keepalive","yes");this.k&&(a=Ak(a,"playerretry",this.k.toString()));this.F=a;this.g=new XMLHttpRequest;try{this.g.open("GET",a)}catch(b){this.A="net.ssl";dD(this,6);return}this.g.responseType="arraybuffer";this.g.withCredentials=!0;var c=x(this.pr,this);this.g.addEventListener("load",c,!1);this.g.addEventListener("error",c,!1);this.g.send();this.B=0;c=this.timing;c.j=y();c.B=c.j;c.g=0;c.F=!1;c.G=!1;c.A=0;c.D=qB(c.k);eD(c);c.I=
c.C-c.j;this.g.addEventListener("progress",x(this.qr,this),!1);0<this.na.j&&(this.j=M(x(this.Dl,this),this.na.j));yk(a,"itag");yk(a,"range");Math.round(this.info.g[0].A);Math.round(db(this.info.g).C);y()}};f.qr=function(a){if(!this.fa()){this.g&&(this.D=this.g.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.j&&4E12>c?c:y();20>c-b.B||fD(b,c,a);b=this.timing;b.g>b.N&&8192<b.g&&3>this.state&&dD(this,3)}};
f.pr=function(a){var b=this.g;if(!this.fa()&&a.target==b){this.j&&(Qf(this.j),this.j=NaN);this.D=b.status;a=!1;400<=b.status?(a=!0,this.A="net.badstatus"):null==b.response&&(a=!0,this.A="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(Nj))break t;c=""}if(c){c=zk(c,"keepalive");c=zk(c,"playerretry");b=this.info;if(b.j){var d=b.j;if(d){var e=d.split("?");if(0<e.length)for(var g=e[0].split("/"),d=0;d<g.length;d+=2)c=
zk(c,g[d]);if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=zk(c,e[d].split("=")[0])}}c=zk(c,"range");b.k.g=c;dD(this,4)}else if(this.info.V&&b.byteLength!=this.info.V.length)a=!0,this.A="fmt.unparseable";else{c=this.info.g;1!=c.length||c[0].V||(d=c[0],e=xk(0,b.byteLength),d=new Kk(d.type,d.g,e,d.o,d.startTime,d.duration,d.k,e.length,d.D),c[0]=d);for(var d=[],e=0,h=!1,g=!1,k=0;k<c.length;k++){var l=c[k],n=b,r=xk(e,l.j),v=!1;if(1==l.type)b.slice?n=b.slice(e,e+l.j):(h=new Uint8Array(b,e,e+l.j),
n=(new Uint8Array(h)).buffer),r=xk(0,l.j),h=!0;else if(3==l.type||4==l.type)v=h&&!g,g=!0;d.push(new gl(l,n,r,v));e+=l.j}this.o=d;c=this.timing;d=y();b=b.byteLength;c.F||(c.F=!0,d=d>c.j&&4E12>d?d:y(),fD(c,d,b),e=(d-c.j)/1E3,!c.G&&8192<=c.g&&kB(c.k,e,b),8192<=c.g&&(e=c.k,g=c.A,b=Math.max(b,8192),e.k.j(1,g/b),rB(e)),mB(c.k,d-c.j,c.g),c.o&&(c.o=!1));y();dD(this,5)}}a&&(cD(this),dD(this,6))}};function cD(a){if(2>a.k)a=!0;else{var b=a.info.k;a=!(a.G>b.k&&1<=b.j)}return a}
function dD(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.o&&(c.o=!1)}a.C&&a.C(a)}
f.Dl=function(){this.j=NaN;if(!this.fa()){var a=y(),b=!1;if(8192<=this.timing.g){var c=this.timing.C;eD(this.timing);this.timing.C-c>=.8*this.na.j?(this.B++,b=5<=this.B):this.B=0}else b=this.timing,b=5E3<a-(b.j+1E3*b.D.delay);if(b){b=this.timing;a=a>b.j&&4E12>a?a:y();b.A+=(a-b.B)/1E3;var c=b.k,d=b.H,e=b.A,d=Math.max(d,8192);c.k.j(1,e/d);rB(c);mB(b.k,a-b.j,b.g);gD(this);this.A="net.timeout";dD(this,Lk(this.info.g[0])?6:7)}else this.j=M(x(this.Dl,this),this.na.j)}};f.fa=function(){return-1==this.state};
f.dispose=function(){dD(this,-1);this.C=this.o=null;gD(this);Qf(this.j);this.j=NaN};function gD(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.o&&(a.o=!1)};function hD(a,b,c){this.k=a;this.H=b;this.N=c;this.g=this.B=this.j=NaN;this.G=this.F=this.o=!1;this.A=0;this.C=this.I=NaN}function fD(a,b,c){if(a.o){var d=(b-a.B)/1E3,e=c-a.g;0<e&&(.2<d||1024>e?(a.A+=d,.2<d&&kB(a.k,.05,e)):kB(a.k,d,e),a.G=!0)}else 8192<=c&&(d=a.k,d.o.j(1,(b-a.j)/1E3),rB(d),a.o=!0);a.B=b;a.g=c}function eD(a){var b=a.H-a.g,b=1E3*(b*a.D.tailDelay+b/a.D.byterate),c=y(),b=8192<=a.g?b+c:b+Math.max(c,a.j+1E3*a.D.delay);a.C=b};function iD(a,b,c,d){Ch.call(this);this.C=a;this.na=b;this.B=c;this.j=this.k=null;this.F=new pC(a,b);this.g=null;this.A=new uC(this.F,b,this.B,d);this.o=this.aa=this.R=this.W=NaN;this.G=!1;this.L=NaN;this.Y=0;this.D=!1;this.da={};this.O="";this.Ue=null;this.Z=!1;this.U=this.I=0}z(iD,Ch);iD.A=!1;iD.g=2/24;iD.j=1E3;iD.k=1E4;iD.o=1;f=iD.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.A;d.C="i";wC(d,b);EC(d);d.H=d.o;FC(d);d.k=d.B;b=DC(d);this.k=new HC(this.na,b.g);this.j=new HC(this.na,b.video);this.publish("formatchange",b);this.o=a;c?(this.D=!0,jD(this)):kD(this)};function kD(a){0==a.o&&(a.k.j.k||lD(a,a.k,!0),a.j.j.k||lD(a,a.j,!0));a.seek(a.o);mD(a,"gv")}f.resume=function(){this.D&&(this.D=!1)};
f.Vt=function(a){this.resume();this.g=a;hn(a)&&(a.g.addEventListener("updateend",x(this.Kb,this),!1),a.k.addEventListener("updateend",x(this.Kb,this),!1));mD(this,"msa");this.na.O&&this.P&&this.H&&Kt();this.Kb();this.aa=Pf(x(this.Kb,this),iD.k)};function nD(a){a.g&&a.g.g&&a.g.g.removeEventListener&&(a.g.g.removeEventListener("updateend",x(a.Kb,a),!1),a.g.k.removeEventListener("updateend",x(a.Kb,a),!1));a.g=null;a.D=!0;a.k&&(RC(a.j,!1),RC(a.k,!1))}function oD(a){a.g&&en(a.g)&&nD(a)}
function pD(a,b,c){if(!b.B.j||!c.remove)return!1;if(c.updating)return!0;if(!b.B.g&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.B.g=!0;b.B.reset();a.publish("seekrequired");return!1}
function qD(a,b,c){if(a.D)return!1;if(!b.k){if(!b.j.Qb())return b.j.k||lD(a,b,!1),!1;OC(b,a.o)}var d=b.pendingRequests_.length+c.pendingRequests_.length;(YC(b)||YC(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.k;4==d.type&&d.g.Qb()&&(b.k=db(d.g.Bg(d)),d=b.k);!d.D&&!d.g.kf(d)||d.g.info.j&&4==d.type?a=!1:ZC(b)&&!a.na.k?a=!0:(!(c=d.D||b.A+c.A>a.na.g||!!(c.k&&!c.k.D&&c.k.C<d.C))&&(c=3==d.type)&&(d=d.C,b=rD(a,b,!0),Ol(a.A.g)||(c=(y()-a.Y)/1E3,b=Math.min(b,30+2*c)),c=d>a.o+b),a=c?!1:!0);return a}
function sD(a,b,c){if(!a.g||dn(a.g)||hn(a.g)){var d=a.o,e;e=a.F;c=qC(e,b.j.info.ha,c.j.info.ha,0);e=nB(e.g)+c*oB(e.g)+c/pB(e.g);e=Math.max(e,e+5-c/b.j.info.ha);d=d+e;a=a.A;t:{a=!!(a.k&&a.B&&a.k.info.ha<a.B.info.ha&&"r"==a.C);if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.g[0].startTime<=d)break t;SC(b)}for(e=b.g.length-1;0<=e;e--)c=b.g[e],c.info.startTime>d&&(b.g.pop(),b.g.length&&b.g[e-1].buffer==c.buffer||(b.A-=c.buffer.byteLength));NC(b);a&&b.k&&d<b.k.startTime&&(b.k=b.j.Dg(d,!0).g[0])}}}
function tD(a,b,c){qD(a,b,c);var d=b.k;if(b.k.g.Qb()){ZC(b)&&!a.na.k&&(sD(a,b,c),b.k||OC(b,a.o));var d=b.k,e=d.C-a.o,g;(g=b.j.Qb()&&b.k.g!=b.j)&&!ZC(b)&&(g=15>=e);var h=!d.V||0==d.j&&0==d.k?0:d.V.length-(d.k+d.j);g&&0==h&&(g=d.startTime+iD.g,d.j&&(g+=d.duration),OC(b,g),d=b.k,g=!1);d.g.Wi()?(c=qC(a.F,d.g.info.ha,c.j.info.ha,e),e=g,c=ul(d.g,d,c),c.V&&1<c.g.length&&(e?c=ul(d.g,d,c.g[0].j):(e=c.g[c.g.length-1],g=e.j/c.V.length,!e.B&&.4>g&&(c=ul(d.g,d,c.V.length-e.j)))),d=c):d=Tk(d.g,d)}else d.g.Wi()?
(c=qC(a.F,b.j.info.ha,c.j.info.ha,0),d=ul(d.g,d,c)):d=Tk(d.g,d);IC(b,uD(a,d))}function uD(a,b){if(3==b.g[b.g.length-1].type){var c;t:{c=a.A;var d=b.g[0].g;if(d.info.video){if(c.k!=d){c.k=d;c=DC(c);break t}}else c.H=d;c=null}c&&a.publish("formatchange",c)}c=Rk(b);var d=a.C,e=a.F,g=Math.min(2.5,nB(e.g)),e=rC(e);c=new aD(a.na,b,new hD(d,c,c-g*e));d=x(a.Au,a);c.C=d;c.start();return c}
f.Au=function(a){if(!this.fa()&&3<=a.state){var b=a.info.g[0].g,c=!this.P&&b.info.video,d=!this.H&&b.info.j;6==a.state&&cD(a)?(this.nd(!1,a.getErrorCode(),bD(a)),b.info.video&&0<a.k&&!BC(this.A)?(AC(this.A,b.info),SC(this.j),Lk(a.info.g[0])&&lD(this,this.j,!1),this.Kb()):a.start()):4==a.state?(c?mD(this,"vrr"):d&&mD(this,"arr"),a.start()):5==a.state?(c?(this.P=a.F,Mt()):d&&(this.H=a.F),C(a.o,function(a){Lk(a.info)&&a.info.g.Pl(a)}),lb(a.o,function(a){return hl(a)})&&!a.o[0].info.g.Yi()?this.Kb():
this.nd(!0,"fmt.unparseable",bD(a))):7==a.state?(this.nd(!1,a.getErrorCode(),bD(a)),vD(this)):3==a.state?(this.Kb(),c&&Mt()):Lk(a.info.g[0])?(b.A=!0,this.Kb()):this.nd(!0,"net.retryexhausted",bD(a))}};function vD(a){if(isNaN(a.W)){var b=x(a.Kb,a);a.W=M(b,0)}}function jD(a){if(isNaN(a.R)){var b=x(function(){this.R=NaN;this.Kb()},a);a.R=M(b,iD.j)}}
f.Kb=function(){this.W=NaN;oD(this);if(this.g&&!fn(this.g))if(this.B.isLive){if(Infinity!=this.L){this.L=Infinity;var a=this.g;dn(a)?a.j.duration=Infinity:a.A=Infinity}}else if(!isFinite(this.L)&&(a=Math.floor(Math.max(this.k.j.index.ae(),this.j.j.index.ae())),0<a)){var b=this.g;dn(b)?b.j.duration=a:b.A=a;this.L=a}if(!this.fa())if(a=this.B,y()-a.G>=a.B){if(3==this.B.k&&(this.nd(!(3>this.B.j),this.B.getErrorCode(),{rc:this.B.I.toString()}),!(3>this.B.j)))return;a=this.B;if(3!=a.k||y()-a.F>=1E3*Math.pow(2,
a.j))if(a=this.B,1!=a.k){var c;t:{b=a.g;for(c in b){c=b[c];break t}c=void 0}c=Ak(a.H,"start_seq",(c.index.yb()+1).toString());a.F=y();Fl(a,c)}jD(this)}else if(this.B.isLive&&($C(this.j)||$C(this.k))&&(c=wD(this),isNaN(c)||this.seek(c)),"prerender"==window.document.webkitVisibilityState)jD(this);else if(oD(this),JC(this.j),JC(this.k),UC(this.j),UC(this.k),this.k.j.k||(!this.D||sB(this.C)?kD(this):jD(this)),!this.g||pD(this,this.k,this.g.g)||pD(this,this.j,this.g.k)||((c=xD(this,this.j,this.g.k))&&
!this.I&&(this.I=y(),mD(this,"vda")),a=tp(this.g.k.buffered,this.o+iD.g),isNaN(a)&&!QC(this.j)&&this.g.g.buffered.length||(QC(this.j)&&(a=NaN),a=xD(this,this.k,this.g.g,a),c|=a,a&&!this.U&&(this.U=y(),mD(this,"ada"))),QC(this.j)&&QC(this.k)&&dn(this.g)&&!fn(this.g)&&(a=this.g,dn(a)&&a.j.endOfStream(),a=this.C,uo(qB(a)),a.j=y()),c&&!hn(this.g)&&vD(this)),yD(this,this.j,yC(this.A)),yD(this,this.k,zC(this.A)),this.j.j.A||this.k.j.A)this.nd(!0,"net.retryexhausted");else{c=this.I?y()-this.I:0;if(this.Z||
c>=this.na.C)qD(this,this.j,this.k)&&tD(this,this.j,this.k),qD(this,this.k,this.j)&&tD(this,this.k,this.j);this.na.I&&(this.O||this.Ue)&&!this.D&&sB(this.C)&&(this.Ue?(this.Ue.start(),this.Ue=null):(c=this.O,this.O="",a=nh(c),xh(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.nd,this,!1,"pathprobe.net",{shost:a})})))}};
function xD(a,b,c,d){if(c.updating)return!0;var e=b.g.length?b.g[0]:null;if(!e)return!1;!b.o||b.o.B||Mk(b.o,e.info)||(b.o=null,dn(a.g)&&c.abort(),c.j=null);var g=!(!b.na.G||!b.g.length||1!=b.g[0].info.g.info.g||0!=b.g[0].info.k),h;if(h=g||!e.g)h=e.info.g.g,c.j==h?h=!1:(zD(a,c,h),c.j=h,a.publish("initsegment",c.j),h=c.updating);if(h)return!0;h=rD(a,b,!1);h=a.o+h;0<=d&&(h=Math.min(h,d));d=LC(b,h);if(!d)return!1;if(g){if(KC(b))return!1;var k;t:{KC(b);var g=b.g[0],l=Vk(g);h=l.getInt32(0);if(h>l.byteLength){var n=
b.g[1];if(n.V.length+l.byteLength<h){k=null;break t}k=new Uint8Array(h);l=new Uint8Array(g.buffer,g.V.start,g.V.length);k.set(l);l=new Uint8Array(n.buffer,n.V.start,h-g.V.length);k.set(l,g.V.length);l=new DataView(k.buffer)}var r=g.info.g.index.Vi(g.info.o);(l=Wk(l,r))?(k?(MC(b,g.V),MC(b,xk(n.V.start,h-g.V.length))):MC(b,xk(g.V.start,h)),k=l):k=null}if(k)return zD(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,d.start,d.length);a.B.o&&3==e.info.type&&ia(c.timestampOffset)&&(n=0,n=a.na.L&&!b.C?
-il(e):-(il(e)-e.info.startTime),Math.abs(c.timestampOffset-n)>iD.o&&(c.timestampOffset=n));if(!zD(a,c,k))return TC(b),!0;a.B.o&&a.na.L&&!b.C||MC(b,d);b.C||(b.C=!0);e.g&&(c.j=e.info.g.g,a.publish("initsegment",c.j));return!0}function zD(a,b,c){if(hn(a.g))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!en(a.g)}function rD(a,b,c){var d;d=Ol(a.A.g)&&!a.na.k?b.j.info.j?10485760:62914560:b.j.info.j?a.na.o:a.na.A;c&&(d+=a.na.g);return d/(Ol(a.A.g)?b.k?b.k.g.info.ha:b.j.info.ha:b.ha)}
function wD(a){if(a.B.isLive){var b=Math.max(a.j.j.index.uh(),a.j.j.index.yb()-a.na.liveChunkReadahead);return a.j.j.index.ve(b)}return Math.floor(Math.min(a.k.j.index.ae(),a.j.j.index.ae()))}f.seek=function(a){if(!this.fa()){oD(this);this.Y=y();this.j.j=yC(this.A);var b=AD(this,this.j,a,this.g&&this.g.k);this.k.j=zC(this.A);var c=AD(this,this.k,b,this.g&&this.g.g);this.o=Math.max(a,b,c);this.G=!0;vD(this)}};
function AD(a,b,c,d){if(b.j.Qb())if(d){var e=tp(d.buffered,c),g=NaN,h=b.o;h&&(g=tp(d.buffered,h.g.index.ve(h.o)));if(e==g&&XC(b))return c;d=PC(b,c);if(0<=d)return d;RC(b,!0);b.j.info.video&&b.o&&!b.o.B&&!VC(b)&&(d=b.o,b.g.length&&(d=db(b.g).info),d=b.k||d,d=ul(d.g,d,d.V.length-(d.j+d.k)),IC(b,uD(a,d)));if(isNaN(e))return OC(b,c);OC(b,e+iD.g)}else OC(b,c);else b.j.k||lD(a,b,!1),0!=c&&SC(b);return c}function yD(a,b,c){b.j!=c&&(b.j=c,c.k||lD(a,b,!1))}
function lD(a,b,c){var d=c?65536:0;c&&!isNaN(2)&&(d=Math.floor(Math.max(d,2*b.j.info.ha)));c=b.j.bn(d);C(c,function(a){var c=uD(this,a);!Lk(a.g[a.g.length-1])&&IC(b,c)},a);b.j.k=!0}f.K=function(){nD(this);this.k&&(SC(this.k),SC(this.j));Rf(this.aa);this.j=this.k=null;iD.J.K.call(this)};f.nd=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.publish("error",new Nm(b,a,d));a&&(this.g&&dn(this.g)&&(a=this.g,dn(a)&&a.j.endOfStream("network")),this.dispose())};
iD.prototype.getDebugInfo=function(){var a={lct:this.o.toFixed(3),lsk:this.G,lmf:Ol(this.A.g),lbw:pB(this.C).toFixed(3),lhd:nB(this.C).toFixed(3),ltd:(1E9*oB(this.C)).toFixed(3),laa:this.k.o?Ok(this.k.o):"",lva:this.j.o?Ok(this.j.o):"",lar:this.k.k?Ok(this.k.k):"",lvr:this.j.k?Ok(this.j.k):""};this.g&&!en(this.g)&&(a.lab=rp(this.g.g.buffered),a.lvb=rp(this.g.k.buffered));return a};function mD(a,b,c){a.da[b]=c?window.performance.timing.navigationStart+c:y()};function BD(a,b,c,d){N.call(this);this.k=a;this.G=b;this.B=c;this.g=d;this.A="";this.j=this.C=this.D=this.F=null;this.o=new Zm(this);O(this,this.o);this.g&&($m(this.o,this.g,["message","mskeymessage"],this.tl),$m(this.o,this.g,["error","mskeyerror"],this.rl),$m(this.o,this.g,["ready","mskeyadded"],this.ql))}z(BD,N);f=BD.prototype;f.setCallbacks=function(a,b,c,d){this.F=a;this.D=b;this.C=c;this.j=d};f.tl=function(a){this.F.call(this.j,a)};
f.rl=function(a){var b;this.g?(b=this.g.error.code,a=this.g.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.D.call(this.j,b,a)};f.ql=function(a){this.C.call(this.j,a)};f.update=function(a){this.g?this.g.update(a):this.k.addKey?this.k.addKey(this.G.g,a,this.B,this.A):this.k.webkitAddKey(this.G.g,a,this.B,this.A)};f.K=function(){this.k=null;BD.J.K.call(this)};function CD(a,b){N.call(this);this.g=a;this.o=b;this.B={};this.k=null;this.A=new Zm(this);O(this,this.A);Sm()||($m(this.A,this.g,["keymessage","webkitkeymessage"],this.F),$m(this.A,this.g,["keyerror","webkitkeyerror"],this.D),$m(this.A,this.g,["keyadded","webkitkeyadded"],this.C));this.j=null}z(CD,N);function DD(a){a.j=new (Sm())(a.o.g);a.g&&(a.g.msSetMediaKeys?a.g.msSetMediaKeys(a.j):a.g.setMediaKeys(a.j))}
function ED(a,b){var c=a.B[b.sessionId];!c&&a.k&&(c=a.k,a.k=null,c.A=b.sessionId,a.B[b.sessionId]=c);return c}CD.prototype.F=function(a){var b=ED(this,a);b&&b.tl(a)};CD.prototype.D=function(a){var b=ED(this,a);b&&b.rl(a)};CD.prototype.C=function(a){var b=ED(this,a);b&&b.ql(a)};CD.prototype.K=function(){this.g=null;CD.J.K.call(this)};var FD=null,GD=null;function HD(a,b,c){this.url=a;this.g=b;this.j=c};function ID(a,b,c){this.g=a;this.headers=b;this.message=c};function JD(a,b,c,d,e){N.call(this);this.G=a;this.j=d;this.j.subscribe("oauthtoken",this.Gl,this);this.A={session_id:e};fp(this,a.k);this.g=[];this.o=this.C=this.F=!1;var g;try{var h=c.g;if(Sm()){b.j||DD(b);var k=c.j||"video/mp4",l;if("com.microsoft.playready"==b.o.g){var n=new Uint8Array(270);for(a=0;135>a;a++)n[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);l=b.j.createSession(k,h,n)}else l=
b.j.createSession(k,h);g=new BD(null,null,null,l)}else b.g.generateKeyRequest?b.g.generateKeyRequest(b.o.g,h):b.g.webkitGenerateKeyRequest(b.o.g,h),b.k=new BD(b.g,b.o,h,null),g=b.k}catch(r){b="g",r instanceof DOMException&&(b+=r.code),this.j.publish("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.k=g)this.k.setCallbacks(this.Ti,this.ur,this.sr,this),O(this,this.k)}z(JD,N);f=JD.prototype;f.Gl=function(a){this.D=a};
function fp(a,b){if(Uj(b)){for(var c in a.A)b=Te(b,c,a.A[c]);a.B=b}else KD(a,"drm.net","u")}f.start=function(){this.fa()||(this.F=!0,this.g.length&&this.Ti(this.g.shift()))};
f.Ti=function(a){if(!this.fa()){var b=a.defaultURL||a.destinationURL;this.o&&b&&fp(this,b);if(this.F){a=a.message;if("com.microsoft.playready"==this.G.g){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(!FD)for(FD={},GD={},c=0;65>c;c++)FD[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),GD[FD[c]]=c,62<=c&&(GD["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=GD,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",Rr:a,responseType:"arraybuffer",withCredentials:!0,mc:this.Tr,onError:this.Il,context:this};b=this.B;this.D&&(b=Te(b,"access_token",this.D));xh(b,a)}else this.g.push(a),
this.C||(this.C=!0,this.j.publish("newsession",this))}};f.sr=function(){this.fa()||(this.o||(this.j.publish("sessionready"),this.o=!0),this.g.length&&this.Ti(this.g.shift()))};
f.Tr=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];ub(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=bb(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new ID(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.g?KD(this,"drm.auth","f"+a.g,qq(a.g)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new HD(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.j.publish("newlicense",b,c),this.k.update(a.message)):KD(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Il(a)};f.ur=function(a,b){this.fa()||KD(this,"drm.keyerror","s"+a+"."+b)};f.Il=function(a){KD(this,"drm.net","r"+a.status)};
function KD(a,b,c,d){a.fa()||a.j.publish("licenseerror",b,c,d);a.dispose()}f.K=function(){this.j=null;JD.J.K.call(this)};function LD(a,b){this.g=a;this.j=b||null};function MD(a,b){Ch.call(this);this.F=a;this.g=b;this.subscribe("newlicense",this.Hq,this);this.subscribe("newsession",this.Iq,this);this.subscribe("sessionready",this.Jq,this);this.L=lm();this.o=null;this.D={};this.j=[];this.k=Ll;this.I=new CD("com.microsoft.playready"==b.g?null:a,b);O(this,this.I);this.B=new CD(a,b);O(this,this.B);this.C=2;this.G=new Zm(this);O(this,this.G);this.A=!1;this.H=null;$m(this.G,this.F,Sm()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Gq)}z(MD,Ch);f=MD.prototype;
f.Gq=function(a){ND(this,new LD(a.initData,a.contentType),!0)};
function ND(a,b,c){if(!(a.fa()||"com.microsoft.playready"==a.g.g^!c||(c=b.g,a.A&&"widevine"==a.g.j))){var d=String.fromCharCode.apply(String,c);if(!a.D[d]){a.D[d]=!0;d="clearkey"==a.g.j;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.j.push(b);1<a.j.length||(OD(a,b),a.A=!0)}}}function OD(a,b){var c=new JD(a.g,a.I,b,a,a.L);c.Gl(a.o);O(a,c)}f.Hq=function(a,b){a&&E(a,"HD")&&!Nl(this.k)&&"com.microsoft.playready"!=this.g.g&&(this.k=Ml,this.publish("qualitychange"));b&&!this.H&&(this.H=b,this.publish("heartbeatparams",b))};f.Iq=function(){this.fa()||(this.j.shift(),this.j.length&&OD(this,this.j[0]))};f.Jq=function(){this.C--;0==this.C&&DD(this.B)};
f.K=function(){this.F=null;this.j=[];MD.J.K.call(this)};function PD(a){this.j={};this.j.c1a=x(this.o,this);this.j.c3a=x(this.A,this);(this.g=a)&&this.g.W?this.k=lh(this.g.W):this.k=[]}PD.prototype.o=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};PD.prototype.A=function(a){a=Za(a.c3a);return"r3a="+Math.floor(this.g.lengthSeconds%a)};function QD(a,b,c){this.g=a;this.reason=b;this.j=c};var RD=new G(1720,980),SD=new G(1294,630),TD=new G(1320,870),UD={Vm:new G(1280,720),g:new G(960,540),Um:new G(854,480),Xt:new G(640,360)};function VD(a){this.g=a}
function WD(a,b){var c;c=!!b.k.g;var d;if(a.g.Re)d=a.g.Re.clone();else if("web"==a.g.bd.toLowerCase()&&("detailpage"==a.g.ea||"adunit"==a.g.ea)){d=a.g;var e=new G(window.innerWidth,window.innerHeight);d=d.ib?e:d.sg?e.width>=TD.width&&e.height>=TD.height?UD.Vm.clone():UD.Um.clone():e.width>=RD.width&&e.height>=RD.height?UD.Vm.clone():e.width>=SD.width&&e.height>=SD.height?UD.Um.clone():UD.Xt.clone();d=d.clone()}d||(yg&&!a.g.L?d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):
null:a.g.Mc&&(d=a.g.Mc.clone()));d?((yg||yc||c)&&d.scale(window.devicePixelRatio||1),c=d):c=new G(640,360);var g;d=b.k.j;if(d.length){for(e=0;e<d.length&&!(g=d[e].video,null===c||.99*g.width<c.width&&.99*g.height<c.height);e++);g=Kl("auto",g.quality,!1)}else g=Ml;c=g.g;Bg&&em("crkey")&&(c=Math.max(c,rk.hd1080));em("armv7")||em("android");c=Math.max(c,rk.medium);g.g!=c&&(g=new Jl(g.j,c,g.k));return g};function XD(){this.o=this.g=NaN;this.k=this.j=!1}function Kp(a,b,c,d){if(d=1<d)a.k=!0;if(a.j)b!=a.g&&(a.j=!1);else if(0<b&&a.g==b)return c-a.o>(d||!a.k?1500:400);a.g=b;a.o=c;return!1};function YD(){this.j=0;this.g=this.A=this.k=this.o=NaN};var ZD={};function $D(a){this.j=a;this.g=0;this.A=NaN;this.k=0;this.$=[];this.o=aE(this.j);this.B=this.C=0}function bE(a){a.o.startTime=a.k;a.o.endTime=a.g;a.$.length&&db(a.$).isEmpty()?a.$[a.$.length-1]=a.o:a.$.length&&a.o.isEmpty()||a.$.push(a.o);a.C+=a.g-a.k;a.o=aE(a.j);a.k=a.g}function cE(a){return a.C+a.j.k()-a.k}function dE(a){a.$.length&&a.g==a.k||bE(a);var b=a.$;a.$=[];return b}
$D.prototype.update=function(){var a=this.j.k()||0,b=eE(this.j);if(a!=this.g||fE(this,a,b)){if(a<this.g||a-this.g>b-this.A+.5||fE(this,a,b))bE(this),this.k=a;this.A=b;this.g=a}};function fE(a,b,c){c-=a.A;return b==a.g&&.5<c};function gE(a,b){this.g=b;this.o=!1;this.j=a}gE.prototype.k=function(){return{ps:this.g.g,el:this.g.ea}};gE.prototype.send=function(){this.o||(ek(Pe(this.g.Ya+"set_awesome",this.k())),this.o=!0)};function hE(a,b,c){gE.call(this,b,c);this.A=a}z(hE,gE);
hE.prototype.k=function(){var a=hE.J.k.call(this);sa(a,dC(this.g));var b=Sb(this.j.fg/this.j.lengthSeconds,0,1);sa(a,{html5:"1",video_id:this.j.videoId,eurl:this.g.C,framer:this.g.N,feature:this.g.I,list:this.j.playlistId,w:b,l:this.j.lengthSeconds,plid:this.j.D,ei:this.j.F,access_token:this.j.B,tpmt:cE(this.A),cpn:this.j.xa});this.g.A&&(a.adformat=this.g.A);this.g.referrer&&(a.referrer=hC(this.g));this.g.autoplay&&(a.autoplay="1");this.g.Fb&&(a.authuser=this.g.Fb);this.g.pageId&&(a.pageid=this.g.pageId);
this.j.Hc&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);sa(a,hE.J.k.call(this));sa(a,dC(this.g));return a};function iE(a){N.call(this);this.g=a;this.k={};this.I=NaN;this.A=new gk(this.Eq,3E4,this);O(this,this.A);this.B=new gk(this.di,100,this);O(this,this.B);this.j="N";this.o=0;this.N=NaN;this.F=0;this.L="";this.D=this.G=0;this.H=this.C=!1}z(iE,N);var jE={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function kE(a,b,c,d){var e=a.k[b];e||(e=[],a.k[b]=e);a=0<=d?d:eE(a.g);e.push(a.toFixed(3)+":"+c.join(":"))}f=iE.prototype;
f.di=function(a){a=a||eE(this.g);var b=this.g.C();if(!isNaN(this.O)&&!isNaN(b.k)){var c=b.k-this.O;0<c&&kE(this,"bwm",[c,(b.A-this.P).toFixed(3)],a)}this.O=b.k;this.P=b.A;isNaN(b.g)||kE(this,"bwe",[b.g.toFixed(0)],a);isNaN(b.j)||(c=b.j,b.o<c&&(c=b.o),this.N!=c&&(kE(this,"bh",[c.toFixed(3)],a),this.N=c),this.g.j.experiments.o&&3>c&&("PL"==this.j||"B"==this.j)&&this.B.start());kE(this,"cmt",[this.g.k()],a)};
function lE(a){var b={event:"streamingstats"};if(a.g.g.g){b.fmt=a.g.g.g.id;var c=a.g.g.G;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.g.g.xa;b.ei=a.g.g.F;b.el=a.g.j.ea;b.docid=a.g.g.videoId;b.ns=a.g.j.Zb;b.fexp=a.g.j.experiments.experimentIds.toString();b.cl=a.g.g.Ja;a.g.j.A&&(b.adformat=a.g.j.A);a.g.g.Sa&&(b.live=a.g.g.wb?"dvr":"live");b.html5="1";return b}
f.bf=function(a){if(!this.fa()&&!jc(this.k)){this.B.isActive()||this.di(a);a=iC(this.g.j).hmewdrop;a>this.F&&kE(this,"df",[a-this.F]);this.F=a;a=lE(this);qc(a,dC(this.g.j));a=Pe(gC(this.g.j)+"api/stats/qoe",a);for(var b in this.k)a+="&"+b+"="+this.k[b].join(",");ek(a);this.k={};this.A.start()}};f.qf=function(){kE(this,"vps",["N"]);this.g.g.ta&&(this.k.cat=["preload"]);this.I=Pf(x(this.bf,this),1E4);this.A.start()};
f.onError=function(a,b){var c=this.g.k(),c=[a,c.toFixed(3)];b&&c.push(b);kE(this,"error",c)};f.Eq=function(){"PL"==this.j&&(kE(this,"vps",[this.j]),this.bf())};f.K=function(){iE.J.K.call(this);Rf(this.I)};function mE(a,b,c,d){this.O=b;this.g=[];this.experimentIds=[];this.N=!1;this.k="watchtime"==c;this.da="playback"==c;this.Ta="delayplay"==c;this.Aa=(this.I="atr"==c)?"/api/stats/"+c:gC(b)+"api/stats/"+c;d&&(this.Ik=d.fs,d.rtn&&(this.Oe=d.rtn),this.k?(this.Xf=d.state,0<d.rti&&(this.dg=d.rti)):(this.ja=d.mos,this.oa=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.C=d.allowed),d.ex_ads&&(this.H=d.ex_ads)),d.autonav&&(this.hg=d.autonav));this.Ba=b.A;this.autoplay=b.autoplay;this.Ia=b.G;this.Ka=b.O;
this.Ja=b.P;this.Ra=b.R;this.eb=b.bd;this.fb=b.ed;this.deviceModel=b.deviceModel;this.cb=b.W;this.ub=b.U;this.vb=b.Y;this.Yb=b.H;this.Jc=b.C;this.Gc=b.ea;this.experimentIds=b.experiments.experimentIds;this.ua=b.Z;this.Hk=b.Zb;this.referrer=b.referrer;this.R=b.wa;this.o=b.I;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.Z=b.Ra;this.wa=XB();!a.g||a.Ba.isEmpty();this.autoplay=a.Ne||this.autoplay;this.hg=a.nk||this.hg;this.Y=a.$f;this.Ca=a.xa;this.j=a.lk;this.A=a.Jh;this.B=a.fg;this.P=a.ad;
a.g&&(this.aa=a.g.id,a.G&&a.G.id!=this.aa&&(this.G=a.G.id));this.Jk=a.Hc;this.Pd=a.Zf;a.Sa&&(this.ka=a.wb?"dvr":"live");this.Qd=a.Hh;this.D=a.D;this.Ic=a.F;this.playlistId=a.playlistId;this.o=a.wa||this.o;this.W=a.Ia;this.U=a.Ka;this.Yf=a.mk;this.subscribed=a.subscribed;this.gg=a.Ja;this.videoId=a.videoId;this.Vf=a.Ca;this.Wf=a.$o}f=mE.prototype;f.hg=!1;f.autoplay=!1;f.Ar=!1;f.Rk=!1;f.Ik=!1;f.fq=!1;f.Jk=!1;f.Hk="yt";f.dg=null;f.Oe=null;
f.send=function(){if(!this.N){var a=nE(this),a=Pe(this.Aa,a);this.I?this.F&&xh(a,{method:"POST",Ib:{atr:this.F}}):!this.O.experiments.H&&ph()&&this.j?xh(a,{headers:{Authorization:"CredentialTransfer type="+this.A+",token="+this.j}}):ek(a);this.N=!0}};
function nE(a){var b={ns:a.Hk,el:a.Gc,cpn:a.Ca,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.Zd(a.B),plid:a.D,ei:a.Ic,fmt:a.aa,fs:a.Ik?"1":"0",rt:a.Zd(a.ta),c:a.eb,cver:a.fb,of:a.Wf,adformat:a.Ba,content_v:a.Ia,euri:a.Jc,subscribed:a.subscribed,lact:a.wa,live:a.ka,cplatform:a.Yb,cbrand:a.Ka,cmodel:a.deviceModel,cnetwork:a.cb,cbr:a.Ja,cbrver:a.Ra,cos:a.ub,cosver:a.vb,cl:a.gg,mos:a.ja,q:a.searchQuery,osid:a.Vf,state:a.Xf,volume:a.oa};a.hg&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Rk&&(b["final"]=
"1");a.Jk&&(b.splay="1");a.P&&(b.delay=a.P);a.ua&&(b.hl=a.ua);a.R&&(b.cr=a.R);p(a.userAge)&&a.Z&&(b.uga=a.Z+a.userAge);p(a.L)&&(b.len=a.Zd(a.L));!a.k&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.Oe&&(b.rtn=a.Zd(a.Oe));a.o&&(b.feature=a.o);a.playlistId&&(b.list=a.playlistId);a.W&&(b.ctrl=a.W);a.U&&(b.ytr=a.U);a.Yf&&(b.ssrt="1");a.G&&(b.afmt=a.G);a.k?(b.idpj=a.Pd,b.ldpj=a.Qd,null!=a.dg&&(b.rti=a.Zd(a.dg))):(p(a.adType)&&(b.at=a.adType),p(a.C)&&(b.allowed=a.C),p(a.H)&&(b.ex_ads=
a.H));(a.da||a.Ta)&&a.Y&&(b.tst=a.Y);a.k&&(b.st=oE(a,ib(a.g,function(a){return a.startTime})),b.et=oE(a,ib(a.g,function(a){return a.endTime})));kb(a.g,function(a){return 0!=a.visibilityState})&&(b.vis=oE(a,ib(a.g,function(a){return a.visibilityState})));kb(a.g,function(a){return 1!=a.playbackRate})&&(b.rate=oE(a,ib(a.g,function(a){return a.playbackRate})));kb(a.g,function(a){return"-"!=a.Vh})&&(b.cc=ib(a.g,function(a){return a.Vh}).join(","));a.O.experiments.H&&ph()&&(a.j&&(b.ctt=a.j),a.A&&(b.cttype=
a.A));return b}f.Zd=function(a){return(1*a.toFixed(3)).toString()};function oE(a,b){return ib(b,a.Zd).join(",")};function pE(a){N.call(this);this.g=a;this.o=new iE(a);O(this,this.o);this.j=new $D(a);this.B="paused";this.C=NaN;this.G=[10,10,10,40];this.H=this.F=0;this.L=this.D=this.N=this.I=this.k=!1;this.A=NaN;this.O=new hE(this.j,this.g.g,this.g.j)}z(pE,N);function qE(a,b,c){var d=eE(a.g);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.G[a.F];a.F+1<a.G.length&&a.F++;c=c+e;d=1E3*(c-d);a.C=M(x(a.Wv,a,c,b),d);return c}f=pE.prototype;
f.Wv=function(a,b){if(!this.fa()){this.C=NaN;this.j.update();var c=dE(this.j),d=rE(this,c);b&&(d.dg=a);var e=400<this.H;!(1<c.length)&&c[0].isEmpty()||e||(d.Oe=qE(this,!0,a));d.send();this.H++}};function sE(a,b){var c=tE(a.g);sa(c,{state:a.B});c=new mE(a.g.g,a.g.j,b,c);c.B=a.g.k();c.L=a.g.B();c.ta=eE(a.g);c.g=[aE(a.g)];return c}function rE(a,b){var c=sE(a,"watchtime");c.g=b;c.B=a.j.g;return c}function uE(a){a.j.update();return rE(a,dE(a.j))}
function vE(a){var b=a.g.j;a=a.g.g;var c=a.wa||b.I,c={ns:b.Zb,html5:"1",el:b.ea,ps:b.g,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.Ia||void 0,ytr:a.Ka||void 0,list:a.playlistId,d:b.Ba,f:b.ka};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function wE(a){a.g.g.remarketingUrl&&!a.D&&(ek(a.g.g.remarketingUrl),a.D=!0);a.g.g.ppvRemarketingUrl&&!a.L&&(ek(a.g.g.ppvRemarketingUrl),a.L=!0);a.g.g.remarketingUrl||xE(a)}f.qf=function(){this.o.qf()};
f.onError=function(a,b){this.o.onError(a,b)};
function yE(a,b){if(!a.fa()){U(b.state,2)?(a.B="paused",0<hr(b,2)&&a.k&&uE(a).send()):U(b.state,8)?(a.B="playing",a.k&&isNaN(a.C)&&qE(a,!1)):a.B="paused";var c=a.o,d=b.state,e;e=b.state;if(U(e,128))e="ER";else if(U(e,16)||U(e,32))e="S";else{var g=jE[Np(e)];"B"==g&&U(e,4)&&(g="PB");e=g}if(e!=c.j){var g=e,h=eE(c.g);if(!(h<c.o)){if("PL"==c.j)c.D+=h-c.o;else if("B"==c.j&&c.C&&(c.C=!1,c.G+=h-c.o,!c.H&&10<=c.G&&180>=c.D)){c.g.D();if(!c.fa()){var k=lE(c);k.qoealert="1";k=Pe(gC(c.g.j)+"api/stats/qoe",k);
ek(k)}c.H=!0}"B"!=g||"PL"!=c.j&&"PB"!=c.j||(c.C=!0);c.o=h}!c.g.j.experiments.o||"B"!=e&&"PB"!=e?kE(c,"cmt",[c.g.k().toFixed(3)]):c.di();kE(c,"vps",[e]);c.j=e}if(U(d,128))c.onError(d.g.errorCode,d.g.errorDetail);(U(d,2)||U(d,128))&&c.bf();a.A&&U(b.state,128)&&(a.mg("error-100"),Qf(a.A))}}function zE(a){a.A=Pf(x(a.mg,a,"heartbeat"),3E4)}
f.mg=function(a){var b=this.g.j,c=this.g.g,d={ns:b.Zb,el:b.ea,eurl:b.C,fmt:c.g?c.g.id:0,html5:1,list:c.playlistId,plid:c.D,cpn:c.xa,ei:c.F,ps:b.g,noflv:1,st:this.g.k(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.ig&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=cE(this.j));sa(d,dC(b));ek(Pe("//www._old_youtube.com/live_204",d))};f.K=function(){pE.J.K.call(this);Qf(this.C);this.C=NaN;var a=this.j;Rf(a.B);a.B=NaN};pE.prototype.getDebugInfo=function(){return nE(sE(this,"playback"))};
function xE(a){if(!a.D){a.g.g.A.eventLabel=a.g.j.ea;a.g.g.A.playerStyle=a.g.j.g;a.g.g.Y&&(a.g.g.A.feature="pyv");a.g.g.A.vid=a.g.g.videoId;a.g.g.A.isAd=!("adunit"!=a.g.j.ea&&!a.g.g.Y);var b=a.g.g.A;b&&b.uid&&(ZD[b.uid]=b);t:{var c=a.g.g.A.uid;if(!c){b=Nf("CONVERSION_CONFIG_DICT");if(!b)break t;c=b.uid||null;if(!c)break t}i:{b=Nf("CONVERSION_CONFIG_DICT");if(u(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=ZD[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=Pe(b.baseUrl,g)}else d=null}else d=null;d&&ek(d)}}a.D=!0}};function AE(){this.endTime=this.startTime=-1;this.Vh="-";this.playbackRate=1;this.visibilityState=0}AE.prototype.isEmpty=function(){return this.endTime==this.startTime};function BE(a,b,c,d,e,g,h){this.g=a;this.j=b;this.A=c;this.B=d;this.k=e;this.C=g;this.D=h||function(){};this.o=-1}function eE(a){var b=window.performance&&window.performance.now?window.performance.now():y();0>a.o&&(a.o=b);return Math.round(b-a.o)/1E3}
function tE(a){var b=a.A();a=a.g;var c={};a.g&&(c.fmt=a.g.id,a.G&&a.G.id!=a.g.id&&(c.afmt=a.G.id));a.Sk&&(c.threed=a.ys);c.plid=a.D;c.ei=a.F;c.list=a.playlistId;c.cpn=a.xa;a.videoId&&(c.v=a.videoId);a.Ph&&(c.infringe=1);a.Hc&&(c.splay=1);a.Sa&&(c.live=a.wb?"dvr":"live");a.Ne&&(c.autoplay=1);a.sm&&(c.sdetail=a.sm);a.da&&(c.partnerid=a.da);a.Ca&&(c.osid=a.Ca);sa(b,c);return b}
function aE(a){var b=new AE;b.Vh=a.A().cc||"-";var c=a.j;b.playbackRate=c.Fa&&c.Fa.playbackRate||1;(c=Ff("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.j.ib?b.visibilityState=2:a.j.vn&&(b.visibilityState=1);return b};function CE(a,b){this.state=a;this.g=b}function hr(a,b){return U(a.state,b)&&!U(a.g,b)?1:!U(a.state,b)&&U(a.g,b)?-1:0};function DE(a,b,c,d){Ch.call(this);this.wa=new XD;this.D=c;this.Ra=d;this.C=new Qp(x(this.getCurrentTime,this),x(this.getPlayerState,this),x(this.Oh,this));O(this,this.C);this.U=NaN;this.I=this.F=null;this.B=a;this.Ba=new VD(a);this.ka=!1;this.G=this.k=null;this.L=[];this.R=new GC;this.O=new GC;this.Ia=this.oa=!1;this.ta=NaN;this.A=new Gp;this.Ja=b;this.W=this.Z=null;this.H=NaN;this.Y=new lr(this);this.g=new Fn;this.j=this.P=null;this.da=NaN;this.o=null;this.Ca=!1;this.aa=0;this.Ka=null;this.ja=!1}
z(DE,Ch);function bp(a){Ht()?Jt(a.aa):Qf(a.aa)}f=DE.prototype;f.K=function(){Qf(this.da);Rf(this.ta);ap(this);EE(this);bp(this);pA(this);Fg(this.W,this.Y,this.g);this.Y=this.I=null;this.ja=!1};
function FE(a,b,c){a.L.length=0;a.R.reset();a.O.reset();a.U=NaN;a.H=NaN;a.P=null;a.Ca=!1;a.j&&Ep(a.j);GE(a);ap(a);EE(a);bp(a);Eg(a.g);a.C.reset();if(2==a.Ja||Yj(a.B.D))b.nl=!0;b.cj=a.g.cj;a.g=b;a.g.subscribe("dataupdated",a.Hr,a);a.g.subscribe("dataloaded",a.Ul,a);a.g.subscribe("dataloaderror",a.Pk,a);a.g.subscribe("onStatusFail",a.Gr,a);b.de&&b.de>b.startSeconds&&(b=b.de,a.I&&(a.C.lf(a.I),a.I=null),a.I=new Op(1E3*b,2147483646),a.I.Na.subscribe("onEnter",a.xg,a),a.C.Pg(a.I));ap(a);a.g.gd||(c=new BE(a.g,
a.B,c,x(a.$b,a),x(a.getCurrentTime,a),x(a.Dr,a),x(a.Er,a)),a.o=new pE(c));a.ja=!1;HE(a,"newdata");IE(a,new Gp)}function ap(a){if(a.o){var b=a.o;if(!b.fa()&&b.k){b.B="paused";var c=uE(b);c.Rk=!0;c.send();c=b.o;"PL"==c.j&&(c.j="N");kE(c,"vps",[c.j]);c.bf();Qf(b.A);b.dispose()}Eg(a.o);a.o=null}}f.getVideoData=function(){return this.g};f.X=function(){return this.B};function JE(a){return!(!a.g.k||!a.g.k.j.length)}function KE(a){if(Vn(a.g))return!0;gr(a,"api.invalidparam");return!1}
function LE(a,b){a.oa=!!b;KE(a)&&!a.R.j&&(a.R.start(),a.o&&a.o.qf(),a.Ul())}
f.Ul=function(){if(Qn(this.g))Qn(this.g),this.R.g=!0,this.L=wb(this.g.L),Rn(this.g,this.B.experiments),JE(this)&&(this.g.wb&&(ME(this,this.g.lengthSeconds),NE(this,!0)),this.g.k.g&&OE(this),Ko(this,"i")),HE(this,"dataloaded"),this.O.j&&PE(this);else if(this.g.U){var a=this.g;a.U=!1;var b=a.O,c=nh(b),b=0>Fn.j.indexOf(c)?Zj(b):ak(b),c=x(a.zt,a),a=x(a.tj,a);Fl(new wl(b),b,c,a);zm("mrs")}else this.g.se||(a=eC(this.B,this.g,this.Ra.he()),Wn(this.g,a,this.B.experiments.aa))};
function QE(a){LE(a);KE(a)&&!U(a.A,128)&&(a.O.j||(a.O.start(),IE(a,Lp(a.A,8))),PE(a))}function PE(a){if(!(a.O.g||!a.R.g||U(a.A,128)||a.L.length||(a.C.ef||a.C.qf(),a.L.length||0<op(a.C.j,-2147483648).length))){if(a.k){var b=a.k;a.Ia=!!b.H&&!!b.P}a.O.g=!0;a.g.Sa&&RE(a,Infinity,!0);a.o&&(b=a.o,b.g.g.jg&&b.g.g.bi&&(b.mg("connected"),zE(b)));a.publish("playbackready",a)}}f.xg=function(a){this.pauseVideo();a=0==a?new Gp:new Gp(14);IE(this,a)};
function SE(a,b,c,d){a.g.g=c;a.g.G=d||c;if(a.o){d=a.g;var e=WD(a.Ba,d),e=D(d.k.j,x(e.o,e));d=a.o.o;e=new QD(c,b,e?e.id:"");c=eE(d.g);kE(d,"vfs",[e.g.id,e.j,d.L,e.reason],c);d.L=e.g.id;e=d.g.j;e=e.Fa?new G(0<e.Fa.style.width.indexOf("px")?parseInt(e.Fa.style.width,10):e.Fa.clientWidth,0<e.Fa.style.height.indexOf("px")?parseInt(e.Fa.style.height,10):e.Fa.clientHeight):new G(Number.NaN,Number.NaN);0<e.width&&0<e.height&&kE(d,"view",[Math.round(e.width),Math.round(e.height)],c);kE(d,"vps",[d.j],c);d.bf(c)}a.publish("internalvideoformatchange",
a.g,"m"==b)}function gr(a,b,c,d){if(hc(oq,c))var e=c;else var g=c;IE(a,Jp(a.A,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));EE(a);TE(a)}function UE(a,b){a.L=a.L.filter(function(a){return b!=a});a.O.j&&PE(a)}f.Oh=function(){return U(this.A,8)&&!U(this.A,64)&&!U(this.A,2)};f.getPlayerState=function(){return this.A};f.getPlayerType=function(){return this.Ja};function VE(a,b){a.j&&pA(a);a.j=b;WE(a)}
function pA(a){a.G=null;a.k&&(vD(a.k),a.k.D=!0);a.j&&(a.o&&a.R.j&&U(a.A,64)&&XE(a),GE(a),a.Y.removeAll(),Ep(a.j),a.j=null)}
function YE(a){QE(a);U(a.A,64)&&IE(a,Lp(a.A,8));if(a.O.g&&a.j)if(a.g.k){var b;if(a.g.k.g)ZE(a),b=a.Ka,a.k.resume();else{EE(a);b=a.g.P.g;var c=a.g,d={};c.I&&(d.ptk=c.I,d.oid=c.Wf,d.ptchn=c.Vf,d.pltype=c.Xf);sa(b.j,d);sa(b.j,{c:a.B.bd,cver:a.B.ed})}a.j.wc!=b?$E(a,b):(Yn(a.g)&&Bp(a.j)&&RE(a,Infinity,!0),Cp(a.j))}else gr(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function aF(a){var b;b=a.g;b=Pl(Pl(a.Ba.g.ki,b.xj),b.Xd);return Pl(Pl(b,WD(a.Ba,a.g)),Lo(a))}
function Lo(a){return a.g.ji?Ml:a.F?a.F.k:JE(a)&&a.g.k.g&&xl(a.g.j)?Ll:Ml}function Ko(a,b,c){if(!a.fa()&&!U(a.A,128)&&(c&&(a.g.Xd=c),JE(a))){"m"==b&&c&&Nl(c)&&(b="a");var d=aF(a);a.g.k.g?"i"!=b&&(c=a.k,c.fa()||((d=vC(c.A,d,b))&&c.publish("formatchange",d),yD(c,c.j,yC(c.A)),Ol(c.A.g)&&"m"==b&&TC(c.j),ZC(c.j)&&sD(c,c.j,c.k),vD(c))):(a.g.P=Dn(a.g.H,d),SE(a,b,a.g.P.getInfo()));a.Oh()&&YE(a)}}
function OE(a){Il(a.g.j,{c:a.B.bd,cver:a.B.ed});var b=a.B,c=new yy;if(fm()||b.experiments.Ta)c.G=!0;fm()&&(c.B=-1);0<=b.da&&(c.liveChunkReadahead=b.da);b.experiments.Y&&(c.C=300);b.experiments.O&&(c.H=!0);b.experiments.I&&(c.O=!0);c.A=8388608;c.o=524288;c.g=2097152;c.D=1048576;c.F=1.5;c.N=15;c.k=!0;c.I=!1;c.C=0;c.rg=rk.hd720;dm()&&(c.ha=44E4);Bg&&em("crkey")&&(c.A=20971520,c.o=1572864,c.g=20971520,c.j=1E3);var b=b.Re||new G(window.screen.width,window.screen.height),d=window.devicePixelRatio||1;2560<=
b.width*d&&1440<=b.height*d&&(c.A=52428800,c.o=5242880,c.g=20971520,c.D=8388608,c.rg=rk.auto);a.k=new iD(a.Z,c,a.g.j,a.g.k);a.k.subscribe("initsegment",a.bq,a);a.k.subscribe("formatchange",a.cq,a);a.k.subscribe("error",a.Pk,a);a.k.subscribe("seekrequired",a.dq,a);c=E(a.L,"spacecast")||a.oa;a.k.initialize(a.g.startSeconds,aF(a),c);a.g.probeUrl&&(a.k.O=a.g.probeUrl);if(mC(a.B)){var c=a.k,b=a.B,e=a.g;mC(b);var g;b.experiments.F&&b.Kh?(d="https:"+b.Kh,g="thisplayer"):b.experiments.C?(d="https://www._old_youtube.com/get_video_info?video_id="+
e.videoId,g="thispage"):b.experiments.G&&e.probeUrl?(d=e.probeUrl.replace(/^http:/,"https:"),g="videogoodput"):b.experiments.g?(d="https://s.ytimg.com/yts/jsbin/html5player-en_US-vfl-ZO7j_/html5player.js",g="nobust"):b.experiments.D?(d="https://s.ytimg.com/yts/jsbin/html5player-en_US-vfl-ZO7j_/html5player.js".replace("https:","http:"),g="http"):b.experiments.j?(d=window.location.protocol+"//www._old_youtube.com/watch?v="+e.videoId,g="watch"):(d="https://s.ytimg.com/yts/jsbin/html5player-en_US-vfl-ZO7j_/html5player.js",
g="fixedplayer");e=e.xa;b.experiments.g||(d=Pe(d,{cpn:e}));c.Ue=new kC(d,g,e)}if(a.L.length||a.oa)a.k.D=!0;a.oa&&XE(a)}function XE(a){var b=new CE(new Gp(4),a.A);yE(a.o,b)}function EE(a){a.k&&(a.k.dispose(),a.k=null);a.G&&(a.G.dispose(),a.G=null)}
function ZE(a){if(!a.G){a.k?a.k.seek(a.getCurrentTime()):OE(a);a.G=new an(a.j,a.g.lengthSeconds,a.g.k.j[0].mimeType,a.g.k.g[0].mimeType);try{var b=cn(a.G)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);gr(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ka=new kn(b,!0);bn(a.G,x(a.k.Vt,a.k))}}
f.bq=function(a){if(this.F){var b=this.F;if("com.microsoft.playready"==b.g.g){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&&ND(b,new LD(a),!1)}}};
f.cq=function(a){SE(this,a.reason,a.video.info,a.g.info);var b;b=this.g;b.xh||(b.o.storyboard_spec?b.xh=new Tl(b.o.storyboard_spec,Za(b.o.length_seconds)):b.o.live_storyboard_spec&&(b.xh=new Vl(b.o.live_storyboard_spec)));(b=b.xh)&&b.o(a.video)};
f.Pk=function(a){if(a.j)gr(this,a.errorCode,void 0,a.g);else{var b;if(b=this.B.experiments.k&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.g,b=y()-b.Vp>Fn.o;if(this.o&&(this.o.onError(a.errorCode,a.g),b))this.o.onError("staleconfig");b&&this.publish("signatureexpired")}};f.pauseVideo=function(a){U(this.A,64)&&!a&&IE(this,Mp(this.A,8));this.j&&(a&&!U(this.A,128)&&IE(this,Lp(this.A,256)),this.j.pauseVideo())};
function TE(a){a.pauseVideo(!0);a.j&&(GE(a),a.G&&(a.G.dispose(),a.G=null),a.g&&(a.g.startSeconds=a.getCurrentTime()),a.H=NaN,Dp(a.j),U(a.A,128)||IE(a,Jp(a.A)))}
function RE(a,b,c,d){if(a.j&&a.O.g){b=Sb(b||0,Un(a.g),bF(a));b>=bF(a)?NE(a,!0):NE(a,!1);a.g.startSeconds=b;a.H=b;var e=a.wa;e.g=b;e.j=!0;c?a.sj():(U(a.A,32)||(IE(a,Lp(a.A,32)),U(a.A,8)&&a.pauseVideo(!0),a.publish("beginseeking",a)),d&&(a.W||(a.W=new gk(a.sj,d,a)),a.W.start()),cF(a,!0));a.I&&b>a.g.de&&(a.C.lf(a.I),a.I=null);b<a.$b()&&IE(a,Mp(a.A,2));a.publish("seekto",a,b)}else a.g.startSeconds=b||0}
f.sj=function(){if(!isNaN(this.H)&&this.j){var a=this.$b();!this.g.Sa&&this.H>=Math.floor(a)?(this.H=a,this.publish("endseeking",this),this.pauseVideo(!0),this.xg()):(this.k&&this.k.seek(this.H),Ap(this.j,this.H))}this.W&&(this.W.dispose(),this.W=null);U(this.A,32)&&(IE(this,Lp(Mp(this.A,32),16)),this.publish("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.H))return this.H;var a=0;this.j&&1<=this.j.readyState?a=this.j.getCurrentTime():this.g&&(a=this.g.fg||this.g.startSeconds||0);return a};f.$b=function(){return Yn(this.g)?Infinity:this.g&&this.g.lengthSeconds?this.g.lengthSeconds:bF(this)?bF(this):0};
f.Dr=function(){var a=new YD;if(this.Z&&this.k){var b=this.Z;a.k=b.A;a.A=b.B;a.g=pB(b);b=this.k;b.g&&!en(b.g)&&(a.j=vp(b.g.k.buffered,b.o),a.o=vp(b.g.g.buffered,b.o));a.g=rC(b.F);pB(b.C);nB(b.C);oB(b.C)}else this.j&&(a.j=vp(this.j.buffered,this.getCurrentTime()));return a};function dF(a){if(a.j)if(Yn(a.g))a=1;else if(Zn(a.g))if(a.ka)a=0;else{var b=a.j;a=(0<up(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.$b()}else a=Mo(a.j);else a=0;return a}
DE.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&sa(b,this.o.getDebugInfo()),this.j&&sa(b,this.j.getDebugInfo()),this.k&&sa(b,this.k.getDebugInfo()),U(this.A,128)&&(b.debug_error=this.A.g),(this.L.length||0<op(this.C.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.g.videoId;return b};f=DE.prototype;f.Hr=function(){if(this.F){var a=this.F,b=this.g.B;a.o=b;a.publish("oauthtoken",b)}HE(this)};f.Gr=function(a){gr(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};
function HE(a,b){a.publish("internalvideodatachange",b||"dataupdated",a,a.g)}function WE(a){C("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.Y.listen(this.j,a,this.Rw)},a)}
f.Rw=function(a){var b=a.target;if(b==this.j&&b.currentSrc){switch(a.type){case "error":if(this.B.Wh&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(x(function(){this.j&&(this.g.P&&this.j.load(),YE(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.g.wb||this.g.j&&!this.g.j.isLive)b=b.duration||0,(!this.G||isFinite(b)&&0<b)&&1!=b&&ME(this,b);break;case "ratechange":this.k&&(this.k.F.j=Math.max(1,this.j.playbackRate));break;
case "ended":IE(this,Jp(this.A,4));this.ai();break;case "loadedmetadata":this.g.startSeconds&&(this.j.currentTime=this.g.startSeconds),this.B.vb&&this.g.startSeconds&&(this.U=this.g.startSeconds,this.pauseVideo(!0));case "loadstart":Rf(this.ta);this.ti()||(this.ta=Pf(x(this.ti,this),100));break;case "progress":this.U&&this.j.seekable.length&&this.j.seekable.end(0)>this.U&&(this.j.currentTime=this.U,this.U=NaN,this.Aa=this.Y.listen(this.j,"canplay",this.Wq));case "suspend":cF(this);this.publish("onLoadProgress",
this,dF(this));break;case "seeked":eF(this);break;case "seeking":this.k&&this.k.seek(b.currentTime);break;case "playing":zm("plev",void 0,this.D.g);break;case "timeupdate":this.Ca=!0,this.ti(),eF(this),cF(this),this.publish("onVideoProgress",this,b.getCurrentTime())}this.publish("videoelementevent",a);a=Hp(this.A,a,this.wa,this.B.experiments.P);IE(this,a)}};
f.ti=function(){var a=this.j;a&&this.Ca&&!this.g.gi&&!Bm("vfp",this.D.g)&&2<=a.readyState&&!a.ended&&0<up(a.buffered)&&zm("vfp",void 0,this.D.g);if((a=this.j)&&!this.g.gi&&0<(a.duration||0)&&(!Bm("pbr",this.D.g)&&Bp(a)&&2<=a.readyState&&0<up(a.buffered)&&zm("pbr",void 0,this.D.g),0<a.getCurrentTime())){Rf(this.ta);Qf(this.da);this.g.gi=!0;fF(this);if(this.o){a=this.o;if(!a.k){var b=sE(a,"playback");a.G=[10+a.g.g.Zf,10,10,40+a.g.g.Hh-a.g.g.Zf,40];var c=a.j;Rf(c.B);c.B=NaN;c.B=Pf(x(c.update,c),100);
c.A=eE(c.j);c.o=aE(c.j);b.Oe=qE(a,!0);b.fq=!0;b.send();!a.g.j.Gb||a.g.j.lg||a.k||(b=a.g.j,c=a.g.g,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.xa,plid:c.D,ei:c.F,referrer:hC(b),eurl:b.C,framer:b.N,feature:b.I,fmt:c.g?c.g.id:0,ptk:c.I,skl:c.Ok,access_token:c.B,ucid:c.Mk},sa(b,vE(a)),delete b.fexp,b=Pe(a.g.j.Ya+"user_watch",b),ek(b));a.g.g.I&&(b=a.g.j,c=a.g.g,b=Pe(b.Ya+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.xa,plid:c.D,ei:c.F,ptk:c.I,oid:c.Wf,ptchn:c.Vf,pltype:c.Xf,content_v:b.G}),ek(b));
if(a.g.g.Nk&&a.g.j.kd&&!a.k){var b=a.g.j,c=a.g.g,d={noflv:1,video_id:c.videoId,cpn:c.xa,el:b.ea,ps:b.g,referrer:hC(b),eurl:b.C,framer:b.N,fmt:c.g?c.g.id:0,ptk:c.I,subscribed:c.subscribed,t:c.Dp};b.autoplay&&(d.autoplay="1");c.Hc&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.ig&&(d.tmi="1");b=Pe(a.g.j.Ya+"get_video",d);ek(b)}a.g.g.jg&&(a.mg("playback"),a.A||zE(a));a.g.g.ad||wE(a);a.k=!0;a=a.j;a.g=a.j.k();a.A=eE(a.j);.5<a.g-a.k&&(a.k=a.g)}M(x(this.ai,this),4500)}this.publish("playbackstarted");
this.k&&(this.k.Z=!0);Ht()&&Kt();return!0}return!1};
function fF(a){var b=y(),c=a.getCurrentTime(),d=a.g;if(!Bm("pbs",a.D.g)){var e=1E3*(c-d.startSeconds);0>e&&(e=0);zm("pbs",b-e,a.D.g);wm.measure&&wm.getEntriesByName&&(wm.getEntriesByName("mark_navigation_requested")[0]?wm.measure("measure_above_the_fold","mark_navigation_requested"):wm.measure("measure_above_the_fold"))}d.videoId&&a.D.info("docid",d.videoId);d.F&&a.D.info("ei",d.F);d.xa&&a.D.info("cpn",d.xa);0<d.startSeconds&&a.D.info("start",d.startSeconds.toString());a.j&&Bp(a.j)&&a.D.info("paused",
1);d.g?a.D.info("fmt",d.g.id):a.D.info("fmt","-1");d.ta&&a.D.info("yt_pre",a.Ia?"2":"1");a.B.ib&&a.D.info("yt_fs","1");a.D.info("tds",Math.round(dF(a)*a.$b()).toString());a.D.info("cmt",c.toFixed(3));if(a.k){b=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.P),c.length&&(c=c[0],mD(b,"vri",c.fetchStart),mD(b,"vdns",c.domainLookupEnd),mD(b,"vreq",c.requestStart),mD(b,"fvb",c.responseStart),mD(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.H),
c.length&&(c=c[0],mD(b,"ari",c.fetchStart),mD(b,"adns",c.domainLookupEnd),mD(b,"areq",c.requestStart),mD(b,"avb",c.responseStart),mD(b,"arc",c.responseEnd)));var b=b.da,g;for(g in b)zm(g,b[g],a.D.g)}}f.Wq=function(){this.Aa&&(this.Y.ya(this.Aa),this.Aa=void 0,Cp(this.j))};
function cF(a,b){if(a.j&&a.g){var c=a.getCurrentTime();if(c<Un(a.g))RE(a,bF(a),!0);else{if(a.k){var d=a.k;if(d.g){d.resume();if(d.G&&!en(d.g)){var e=d.o<=c&&c<d.o+10,g=0<=sp(d.g.g.buffered,d.o+iD.g)&&0<=sp(d.g.k.buffered,d.o+iD.g);e&&g&&(d.G=!1)}d.G||(d.o=c);jD(d)}}Zn(a.g)&&c>a.$b()&&(d=a.$b(),0==d&&(d=c),ME(a,1.2*d));5<c&&(a.g.startSeconds=c);(d=Ht())?Jt(a.aa):Qf(a.aa);Bp(a.j)||(e=x(a.zr,a),a.aa=a.j.played&&0==a.j.played.length?d?It(e,100):M(e,100):d?It(e,500):M(e,500));a.g.fg=c;!b&&a.Oh()&&a.o&&
(d=a.o,d.j.update(),d.g.g.lengthSeconds&&d.g.g.ad&&!d.N&&cE(d.j)>=d.g.g.ad&&(d.k&&d.g.g.ad&&(e=sE(d,"delayplay"),e.Ar=!0,e.send(),d.N=!0),wE(d)),e=d.O,!e.o&&e.g.kd&&!e.g.lg&&e.j.lengthSeconds&&cE(e.A)>=e.j.Ll&&d.O.send());a.publish("progresssync",a,b);a.g.Br=c}}}f.zr=function(){if(this.j){if(U(this.A,8)&&Kp(this.wa,this.getCurrentTime(),Date.now(),vp(this.j.buffered,this.j.getCurrentTime()))){var a=this.$b();a&&1>Math.abs(a-this.j.currentTime)?this.xg():IE(this,Lp(this.A,1))}cF(this)}};
function IE(a,b){var c=a.A;if(b.j!=c.j||b.g!=c.g){c=new CE(b,a.A);a.A=b;0>hr(c,8)&&(Qf(a.da),NE(a,!1));0<hr(c,32)&&NE(a,!1);Zn(a.g)&&U(c.state,2)&&(ME(a,a.getCurrentTime()),cF(a,!0));a.o&&yE(a.o,c);var d=a.C;if(d.ef&&!d.Cg)if(Tp(d),U(c.state,2)){d.B=null;for(var e=[],g=0;g<d.g.length;g++){var h=d.g[g];h.active&&2147483647>h.end&&e.push(h)}g=op(d.j,2147483646);g=g.concat(pp(d.j,2147483646));e=Vp(d,e).concat(Up(d,g));Wp(d,e)}else U(c.state,16)?(d.k=Sp(d),d.A.stop(),d.A.start(),d.Jb()):(d.A.stop(),U(c.g,
16)?(d.k=Sp(d),null!=qp(d.j,Math.max(d.k-2E3,0))&&(d.mf=Zi(x(d.Jb,d)))):d.Jb());a.publish("statechange",c)}}f.Er=function(){this.g.Sa||this.publish("connectionissue")};f.dq=function(){Ap(this.j,Math.max(0,this.j.currentTime+.1))};function eF(a){U(a.A,2)||U(a.A,32)||(a.H=NaN)}function NE(a,b){a.g.wb&&a.ka!=b&&(a.ka=b,a.publish("liveviewshift",b))}
function $E(a,b){zm("vta",void 0,a.D.g);zp(a.j,b);a.G&&!b.g&&(a.G=null);Sn(a.g)&&gF(a);a.B.experiments.I&&a.G&&Mt();Qf(a.da);a.da=M(x(a.mu,a),15E3);a.B.ub?M(x(function(){Cp(this.j)},a),0):Cp(a.j)}
function gF(a){var b=Sn(a.g);if(b&&!a.F&&a.j)if(b=Tm(a.j,a.g.g.mimeType,b)){a.F=new MD(a.j,b);a.F.subscribe("newsession",a.Ut,a);a.F.subscribe("licenseerror",a.Rt,a);a.F.subscribe("qualitychange",a.St,a);a.F.subscribe("heartbeatparams",a.Tt,a);var b=a.F,c=a.g.B;b.o=c;b.publish("oauthtoken",c);O(a,a.F)}else gr(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function GE(a){a.F&&(a.F.dispose(),a.F=null)}
f.Ut=function(a){var b=dC(this.B);b.cpn=this.g.xa;this.g.C&&(b.vvt=this.g.C);this.B.Fb&&(b.authuser=this.B.Fb);this.B.pageId&&(b.pageid=this.B.pageId);qc(a.A,b);fp(a,a.B);this.publish("newlicensesession",a)};f.Rt=function(a,b,c){gr(this,a,p(c)?c:"YTP_ERROR_LICENSE",b)};f.St=function(){Ko(this,"r");HE(this)};f.Tt=function(a){this.publish("heartbeatparams",a)};f.mu=function(){if(this.o)this.o.onError("qoe.start15s");this.publish("loadsofttimeout")};
function ME(a,b){a.g.lengthSeconds!=b&&(a.g.lengthSeconds=b,HE(a))}f.ai=function(){if(!this.ja){var a=new PD(this.g),b;"c1a"in a.k?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)M(x(this.ai,this),4500);else{var c;if(a.g&&a.g.W){b=[a.g.W];for(c in a.j)if(a.k[c]&&a.j[c]){var d=a.j[c](a.k);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.o&&(a=this.o,a.I||(b=sE(a,"atr"),b.F=c,b.send(),a.I=!0),this.ja=!0)}}};
function bF(a){if(!a.j)return 0;if(a.k){var b=wD(a.k);return Math.max(b,Un(a.g))}a=a.j;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0};function hF(){this.k=!1;this.j=0;this.g=""};function iF(a,b,c){this.o=b;this.g=c;this.k=a}iF.prototype.getMessage=function(){return this.o};iF.prototype.getErrorCode=function(){return this.g};iF.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.j?" Caused by: "+this.j:"")};function jF(a,b){Qh.call(this,"adError");this.k=a;this.o=b?b:null}z(jF,Qh);var kF="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 viewable_impression".split(" "),lF="acceptinvitation click collapse creativeview expand progress close".split(" ");function mF(a,b,c){Qh.call(this,a);this.o=b;this.k=null!=c?c:null}z(mF,Qh);mF.prototype.getAd=function(){return this.o};
var nF={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",$A:"engagedview",dB:"expandedChanged",STARTED:"start",Kn:"impression",Xo:"viewable_impression",PAUSED:"pause",cC:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",oC:"skipshown",mC:"skippableStateChanged",Fz:"adMetadata",Gy:"adBreakReady",
DB:"log",VOLUME_CHANGED:"volumeChange",PC:"mute",lA:"companionBackfill",ZC:"youTubeVideoMetadata",YC:"youTubeChannelMetadata",IC:"urlNavigationRequested"};var oF=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www._old_youtube.com/gen_204\\?a=sul"],pF=0,qF={};function rF(a){return A(B(a))?!1:null!=D(oF,function(b){return null!=a.match(b)})}
function sF(a){if(a){var b=J("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=Zc(b).body;var c,d=Zi(function(){qi(c);sd(b)},15E3);c=oi(b,["load","error"],function(){Zi(function(){$i(d);sd(b)},5E3)});a.appendChild(b)}}function tF(a){if(a){var b=new Image,c=""+pF++;qF[c]=b;b.onload=b.onerror=function(){delete qF[c]};b.src=a}};var uF={"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"},vF=["ADSENSE","ADSENSE/ADX"],wF=["DART","DART_DFA","DART_DFP"],xF=["FREEWHEEL"],yF=["GDFP"],zF={IB:"video/mp4",KB:"video/mpeg",EB:"application/x-mpegURL",OB:"video/ogg",xC:"video/3gpp",RC:"video/webm",HB:"audio/mpeg",JB:"audio/mp4"};var AF=["google-developers.appspot.com","devsite.googleplex.com"],BF=["*.googlesyndication.com"],CF=["*.youtu.be","*._old_youtube.com"],DF="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 _old_youtube.com ytimg.com".split(" "),
EF=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function FF(a,b){try{var c=gf(new K(b)),c=c.replace(/^www./i,"");return kb(a,function(a){return GF(a,c)})}catch(d){return!1}}function GF(a,b){if(A(B(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 HF(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+DF.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new K(a),Ue(a,"https"),a.toString()):a};function IF(a){window.open(HF(a),"_blank")}function JF(a,b,c){null!=b&&(a=KF(a,b));null!=c&&(A(B(c))||(b=new K(a),qf(b.g,"label")&&(lf(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));(c=a=HF(a))&&(rF(c)?sF(c):tF(c))}function LF(a,b){null!=a&&C(a,function(a){JF(a,b)})}function KF(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=mc(b,a),d=d.toString();if(!A(B(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})}
function MF(a,b,c){if(null==a)return"";lf(a,"label",b);null!=c&&lf(a,"value",c.join(";"));return a.toString()};function NF(a,b){this.message=a;this.errorCode=b}NF.prototype.getErrorCode=function(){return this.errorCode};NF.prototype.getMessage=function(){return this.message};
var OF=new NF("Unable to request ads from server. Cause: {0}.",1005),PF=new NF("Unable to request ads from server due to network error.",1012),QF=new NF("Cannot parse the {0} value for the adslist response: {1}.",900),RF=new NF("Invalid usage of the API. Cause: {0}",900),SF=new NF("Unable to display one or more required companions.",602),TF=new NF("There was a problem requesting ads from the server.",1005),UF=new NF("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
VF=new NF("The provided ad type: {0} is not supported.",1005),WF=new NF("The provided {0} information: {1} is invalid.",1101),XF=new NF("The response does not contain any valid ads.",1009),YF=new NF("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),ZF=new NF("The ad playlist response was malformed or empty.",1010),$F=new NF("The ad response was not understood and cannot be parsed.",1010),aG=new NF("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),bG=new NF("The ad response contains unexpected element. Cause {0}.",1010),cG=new NF("No assets were found in the VAST ad response.",200),dG=new NF("Duplicate node in <{0}>: {1}",101),eG=new NF("The VAST response document is empty.",1009),fG=new NF("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),gG=new NF("Ad request reached a timeout.",301),hG=new NF("VAST response was malformed and could not be parsed.",100),iG=new NF("VAST media file loading reached a timeout of {0} seconds.",
402),jG=new NF("Ad request could not be completed due to a network error.",301),kG=new NF("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),lG=new NF("The maximum number of VAST wrappers ({0}) has been reached.",302),mG=new NF("VAST media file duration differs from the VAST response duration by {0} seconds.",202),nG=new NF("Video player received an ad with unexpected or incompatible linearity",201),oG=new NF("Unknown node in <{0}>: {1}",
101),pG=new NF("Invalid VAST resource type: {0}",101),qG=new NF("Invalid VAST version",102),rG=new NF("No additional VAST wrappers allowed.",300),sG=new NF("No Ads VAST response after one or more Wrappers",303),tG=new NF("There was an error playing the video ad.",400),uG=new NF("VMAP unsupported node in <{0}>: {1}",1010),vG=new NF("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function W(a,b,c){return wG("adLoadError",a,b||null,zb(arguments,2))}function xG(a,b,c){return wG("adPlayError",a,b||null,zb(arguments,2))}function yG(a,b,c,d,e){var g=a.apply(null,vb([c,d],zb(arguments,3)));b.T(new mF("log",null,g))}function wG(a,b,c,d){if(c instanceof iF)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 iF(a,b,e);a.j=c;return a}
function zG(a,b,c,d){var e=xG.apply(null,vb([b,c],zb(arguments,3)));a.T(new jF(e))};function AG(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var X=new function(){this.k="always";this.g=this.j=!1};var BG={},CG="",DG=/OS (\S+) like/,EG=/Android (\S+);/;function FG(){return Ac||Pa(uc,"Mobile")}function GG(){return Cc&&!Dc||Pa(uc,"iPod")}function HG(){return GG()||Dc}function IG(a,b){if(null==BG[b]){var c=JG(a);c?(c=c.replace(/_/g,"."),BG[b]=0<=Ua(c,b)):BG[b]=!1}return BG[b]}function JG(a){A(CG)&&(a=a.exec(uc))&&(CG=a[1]);return CG}
function KG(){var a=uc;return a?Pa(a,"AppleTV")||Pa(a,"GoogleTV")||Pa(a,"HbbTV")||Pa(a,"NetCast.TV")||Pa(a,"POV_TV")||Pa(a,"SMART-TV")||Pa(a,"SmartTV")||Ac&&Pa(a,"AFT"):!1}function LG(){return GG()&&FG()&&Pa(uc,"Safari")||Ac&&(!Ac||!IG(EG,4))||!X.g&&(Pa(uc,"CrKey")||Pa(uc,"PlayStation")||Pa(uc,"Roku")||KG()||Pa(uc,"Xbox"))?!1:!0};function MG(){this.j=.05>Math.random();this.g=Math.floor(4503599627370496*Math.random())}ca(MG);function NG(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=OG(a,c);var e=new K("http://pagead2.googlesyndication.com/pagead/gen_204");$b(c,function(a,b){lf(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=PG();Ue(e,a.kb);JF(e.toString())}}function OG(a,b){b.id="";var c=PG();b.c=a.g;b.domain=c.$a;return b}function PG(){var a=jd(),b=document;return new K(a.parent==a?a.location.href:b.referrer)};function QG(){}f=QG.prototype;f.gw=!1;f.Vn=!1;f.wn=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.Xv=!1;f.ci=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.Wk=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.Uk=!1;f.jl=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.Vk=!1;f.loadVideoTimeout=15E3;function RG(a){try{return!!a&&null!=a.location.href&&tc(a,"foo")}catch(b){return!1}};var SG=document,Y=window;function TG(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 UG(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)};var VG=!0,WG={};function XG(a,b,c,d){var e=YG,g,h=VG;try{g=b()}catch(k){try{var l=TG(k);b="";k.fileName&&(b=k.fileName);var n=-1;k.lineNumber&&(n=k.lineNumber);h=e(a,l,b,n,c)}catch(r){try{var v=TG(r);a="";r.fileName&&(a=r.fileName);c=-1;r.lineNumber&&(c=r.lineNumber);YG("pAR",v,a,c,void 0,void 0)}catch(s){ZG({context:"mRE",msg:s.toString()+"\n"+(s.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(w){}}return g}
function YG(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=SG.URL.substring(0,512);h.ref=SG.referrer.substring(0,512);$G(h);ZG(h,g);return VG}
function ZG(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+aH(a),d="http"+("http:"==Y.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,c=d=d.substring(0,2E3);Y.google_image_requests||(Y.google_image_requests=[]);var e=Y.document.createElement("img");e.src=c;Y.google_image_requests.push(e)}}catch(g){}}function $G(a){var b=a||{};UG(WG,function(a,d){b[d]=Y[a]})}
function bH(a,b,c,d,e){return function(){var g=arguments;return XG(a,function(){return b.apply(c,g)},d,e)}}function cH(a,b){return bH(a,b,void 0,void 0,void 0)}function aH(a){var b="";UG(a,function(a,d){if(0===a||a)b+="&"+d+"="+("function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a))});return b};function dH(){for(var a=Y,b=0;a!=a.parent;)a=a.parent,b++,RG(a)};var eH={Wo:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",by:"resume",SKIPPED:"skip",Xo:"viewable_impression",$x:"mute",hy:"unmute",FULLSCREEN:"fullscreen",Ux:"exitfullscreen"},fH={UNKNOWN:-1,Wo:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,by:7,SKIPPED:8,Xo:9,$x:10,hy:11,FULLSCREEN:12,Ux:13};var gH=!1,hH="";function iH(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var jH=navigator.plugins["Shockwave Flash"];jH&&(gH=!0,jH.description&&(hH=iH(jH.description)));navigator.plugins["Shockwave Flash 2.0"]&&(gH=!0,hH="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var kH=navigator.mimeTypes["application/x-shockwave-flash"];(gH=kH&&kH.enabledPlugin)&&(hH=iH(kH.enabledPlugin.description))}else try{var lH=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),gH=!0,hH=iH(lH.GetVariable("$version"))}catch(mH){try{lH=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),gH=!0,hH="6.0.21"}catch(nH){try{lH=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),gH=!0,hH=iH(lH.GetVariable("$version"))}catch(oH){}}}var pH=gH,qH=hH;if(SG&&SG.URL)var rH=SG.URL,VG=!(rH&&(0<rH.indexOf("?google_debug")||0<rH.indexOf("&google_debug")));function sH(a,b,c,d){c=bH(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};var tH={};q("gteh",bH("osd_or_lidar::gteh_ex",function(a,b){var c=tH[a];ja(c)&&c(b)}),void 0);function uH(a,b){var c=a||Y;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new G(-1,-1):b?new G(c.innerWidth,c.innerHeight):fd(c||window)}catch(d){return new G(-12245933,-12245933)}}var vH=0;function wH(){var a=0<=xH?yH()-xH:-1,b=zH?yH()-AH:-1,c=0<=BH?yH()-BH:-1,d,e;d=[2E3,4E3];e=[250,500,1E3];var g=a;-1!=b&&b<a&&(g=b);for(var h,a=0;a<d.length;++a)if(g<d[a]){h=e[a];break}void 0===h&&(h=e[d.length]);return-1!=c&&1500<c&&4E3>c?500:h}var CH=(new Date).getTime(),xH=-1,zH=!1,AH=-1,BH=-1;
function yH(){return(new Date).getTime()-CH}function DH(a){var b=[];$b(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ga(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")};function EH(a,b,c,d,e,g,h,k,l){this.g=FH.clone();this.j=this.I=0;this.eb=this.fb=this.Ba=-1;this.W=[0,0,0,0,0];this.H=[0,0,0,0,0];this.o=[0,0,0,0,0];this.da=[0,0,0,0,0];this.G=d;this.N=this.wa=-1;this.ua=e;this.Ja=function(){};this.oa=this.element=c;this.vb=0;this.ub=-1;this.P=l||FH;this.B="";this.Jc=null;this.Gc="";this.k={};this.k.le=0;this.k.nt=2;this.k.Fr=3;this.A=this.Ra=this.Ia=this.ka=null;this.Z=0;this.Y=!1;this.ja=null;this.Yb=this.Ka=this.ta=!1;this.Ic=void 0;this.Ta=[];this.U=void 0;this.aa=
!1;this.D=void 0;this.Ca=0;this.R=-1;this.Aa=this.L=0;this.O=void 0;this.C=0;this.F=!1;GH(this,a,g)}var FH=new Ub(0,0,0,0);
function HH(a,b,c,d,e){if(!(0>a.G)){var g=Y.innerWidth,h=Y.innerHeight,k=new Ub(Math.round(Y.mozInnerScreenY),Math.round(Y.mozInnerScreenX+g),Math.round(Y.mozInnerScreenY+h),Math.round(Y.mozInnerScreenX));c=new Ub(Y.screenY+d,Y.screenX+c.width,Y.screenY+c.height,Y.screenX);e||(d=new Ub(k.top-c.top,k.right-c.left,k.bottom-c.top,k.left-c.left),d.top>a.g.top?a.g=d:(a.g.right=a.g.left+g,a.g.bottom=a.g.top+h),a.I=g*h);IH(a,k,c,b,e,!0)}}
function JH(a,b,c){var d=KH(a,Y&&Y.document);if(d){c||GH(a,Y,!0);var e=Math.floor((a.g.left+a.g.right)/2),g=Math.floor((a.g.top+a.g.bottom)/2),h=hd(document),d=d(e-h.x,g-h.y)?.5:0;IH(a,a.g,d,b,c,!0)}}function KH(a,b){LH(a);if(!a.ka){var c=[];C(fc(a.k),function(a){c[this.k[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.ka=d&&x(d,b)}return a.ka}function LH(a){a.k.e=-1;a.k.i=6;a.k.n=7;a.k.t=8}
EH.prototype.update=function(a,b,c,d,e){if(0>this.G)return null;c||GH(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.Ia),this.Ia=null);Boolean(null)&&c&&(d.clearInterval(this.Ra),this.Ra=null);null!=this.ja&&(c?(d.clearInterval(this.A),this.A=null,this.Y=!1):this.ta&&!this.A&&(this.A=d.setInterval(cH("osd_or_lidar::adblock::iem_int",x(this.cb,this,d,1E3)),1E3),this.cb(d)));return IH(this,this.g,b,a,c,!1)};
function IH(a,b,c,d,e,g){var h=d-a.G||1,k=null;ia(c)?b=MH(a,c):(k=c,b=MH(a,b,k));if(!a.U){c=b;var l=a.wa,n=k;g=g&&-1!=l&&2>=l;var r=-1==l||-1==c?-1:Math.max(l,c);g=g?r:l;-1!=g&&(a.W[g]+=h);(n=n||null)?(-1!=g&&2>=g&&-1!=a.N&&(a.da[a.N]+=h),n=100*a.I/((n.bottom-n.top)*(n.right-n.left)),a.N=20<=n?0:10<=n?1:5<=n?2:2.5<=n?3:4):a.N=-1;if(7==a.ua){n=NH(a);l=-1!=g&&2>=g;!l&&p(a.O)&&0<a.O&&(a.L+=h);a.L>a.Aa&&(a.Aa=a.L);if(l||!p(n)||0>=n)a.L=0;a.O=n}for(n=g;0<=n&&4>=n;n++)a.o[n]+=h,a.o[n]>a.H[n]&&(a.H[n]=a.o[n]);
for(n=0;n<a.o.length;++n)if(n<c||e||-1==c)a.o[n]=0}a.wa=e?-1:b;a.G=d;-1!=b&&(0>a.Ba&&(a.Ba=d),a.eb=d);-1==a.fb&&1E3<=Math.max(a.o[2],a.H[2])&&(a.fb=d);a.Ja(a,k||FH);return a.j}
function MH(a,b,c){if(a.F&&7==a.ua)return a.j=1,OH(a.j);var d=null;if(ia(b))a.j=b;else{c=new Ub(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.I||c.top>=c.bottom||c.left>=c.right)return a.j=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof F?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ia(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.j=d/a.I}return OH(a.j)}
function OH(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}
EH.prototype.cb=function(a,b){var c=KH(this,a&&a.document);if(c){GH(this,a,!0);var d=Math.floor((this.g.left+this.g.right)/2),e=Math.floor((this.g.top+this.g.bottom)/2),g=hd(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.Z+=this.Y?d:0,this.Y=!0):(this.Z=0,this.Y=!1);1E3<=this.Z&&(a.clearInterval(this.A),this.A=null,this.ta=!1,this.ja="v");GH(this,a,!1)}else a.clearInterval(this.A),this.A=null,this.ta=!1,this.ja="i"};
function GH(a,b,c){b=c?b:b.top;try{var d=FH.clone(),e=new F(0,0);a.oa&&(d=a.oa.getBoundingClientRect(),e=Yd(a.oa,b));var g=d.right-d.left,h=d.bottom-d.top,k=e.x+a.P.left,l=e.y+a.P.top,n=a.P.right||g,r=a.P.bottom||h;a.g=new Ub(Math.round(l),Math.round(k+n),Math.round(l+r),Math.round(k))}catch(v){a.g=a.P}finally{a.k.Po=5,a.k.me=1,a.k.om=4}a.I=(a.g.bottom-a.g.top)*(a.g.right-a.g.left);a.Yb=2!=a.ua&&3!=a.ua&&6!=a.ua||0!=a.I?!1:!0}function PH(a,b){var c=a.Ca;zH||a.U||-1==a.R||(c+=b-a.R);return c}
function NH(a){if("as"==a.D&&ja(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.D&&(a=t("ima.common.sdkVolume"),ja(a)))try{return Number(a())}catch(c){return-1}}function QH(a,b){for(var c=b-a.Ta.length+1,d=[],e=0;e<c;e++)d[e]=0;xb(a.Ta,d);a.Ta[b]=(100*a.j|0)/100}
function RH(a){if(a.Ka)return{"if":0};var b=a.g.clone();b.round();var c=ib(a.Ta,function(a){return 100*a|0}),b={"if":SH?1:void 0,sdk:a.D?a.D:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.W,mtos:a.H,ps:void 0,pt:c,vht:PH(a,yH()),mut:a.Aa};TH&&(b.ps=[TH.width,TH.height]);a.aa&&(b.ven="1");a.C&&(b.vds=a.C);UH()?b.c=(100*a.j|0)/100:b.tth=yH()-vH;return b};function VH(){return!WH()&&(xc("iPod")||xc("iPhone")||xc("Android")||xc("IEMobile"))}function WH(){return xc("iPad")||xc("Android")&&!xc("Mobile")||xc("Silk")};var XH=null,YH=null,ZH=null,$H=!1;function aI(){if(!$H){$H=!0;XH=XH||sH(Y,"scroll",bI,"osd_or_lidar::scroll");YH=YH||sH(Y,"resize",cI,"osd_or_lidar::resize");var a=dI,b;SG.mozVisibilityState?b="mozvisibilitychange":SG.webkitVisibilityState?b="webkitvisibilitychange":SG.visibilityState&&(b="visibilitychange");b&&(ZH=ZH||sH(SG,b,a,"osd_or_lidar::visibility"));dI()}}function cI(){eI(!1);bI()}function bI(){fI(gI,!1)}
function hI(){iI&&(jI=uH(Y,iI));var a=jI,b=kI,c=lI;if(mI){a=b;eI(!1);var d=nI,e=d.height-a;0>=e&&(e=d.height,a=0);jI=new G(d.width,e);e=new oI;e.B=!0;e.o=jI;e.k=d;e.j=a;return e}if(c)return a=new oI,a.A=!0,a;if(pI)return a=new oI,a.C=!0,a;if(qI)return a=new oI,a.F=!0,a;t:{b=new oI;b.o=a;b.g=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=iI,g=Y||Y,g=g.top,e=a||uH(g,c),h=Id(Xc(g.document)),d=-1==e.width||-12245933==e.width?new Ub(e.width,e.width,e.width,
e.width):new Ub(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break t}b.D=d;b.g=!0}a=b}return a}function fI(a,b){if(!rI)if(window.clearTimeout(sI),sI=null,0==a.length)b||tI();else{var c=hI();try{var d=yH();if(c.B)for(var e=0;e<a.length;e++)HH(a[e],d,c.k,c.j,b);else if(c.A)for(e=0;e<a.length;e++)JH(a[e],d,b);else if(qI)C(a,function(){});else if(c.C)C(a,function(){});else if(c.g)for(e=0;e<a.length;e++)a[e].update(d,c.D,b,Y,SH);++uI}finally{b?C(a,function(a){a.j=0}):tI()}}}
function dI(){var a=UH();if(a){if(!zH){var b=yH();AH=b;C(gI,function(a){a.Ca=PH(a,b)})}zH=!0;eI(!0)}else b=yH(),zH=!1,vH=b,C(gI,function(a){0<=a.G&&(a.R=b)});fI(gI,!a)}function UH(){if(vI())return!0;var a;a=Y.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function tI(){Y&&(sI=Y.setTimeout(cH("osd_or_lidar::psamp_to",function(){fI(gI,!1)}),wH()))}
function wI(a){return null!=D(gI,function(b){return b.element==a})}var gI=[],rI=!1,jI=null,nI=null,TH=null,sI=null,SH=!RG(Y.top),kI=0,mI=!1,lI=!1,pI=!1,qI=!1,iI=WH()||VH(),uI=0;function xI(){var a=Y.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function eI(a){jI=uH(Y,iI);if(!a){nI=Y.outerWidth?new G(Y.outerWidth,Y.outerHeight):new G(-12245933,-12245933);a=Y;a.top!=a&&(a=a.top);var b=0,c=0,d=jI;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,n=h.offsetHeight,r=h.offsetWidth;h.clientHeight!=n&&(k=g.scrollHeight,l=g.scrollWidth,n=g.offsetHeight,
r=g.offsetWidth);k>d.height?k>n?(b=k,c=l):(b=n,c=r):k<n?(b=k,c=l):(b=n,c=r)}TH=new G(c,b)}catch(v){TH=new G(-12245933,-12245933)}}}function yI(a){C(a,function(a){wI(a.element)||gI.push(a)})}function vI(){return kb(gI,function(a){return a.F})}function oI(){this.k=this.o=null;this.j=0;this.D=null;this.g=this.F=this.C=this.A=this.B=!1};function zI(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 AI="",BI=!1;var CI=!1;function DI(){CI=!0;try{xH=yH(),dH(),eI(!1),xI()?(window.setTimeout(function(){},1),SH?EI():aI()):BI=!0}catch(a){throw gI=[],a;}}
function EI(){var a;if(Gc&&ia(Y.screenX)&&ia(Y.mozInnerScreenX)&&ia(Y.outerWidth)&&1>Math.random()){var b=Y.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&&(kI=a,mI=!0);a=!0}else a=!1;a?aI():(a=H&&Rc(8)&&1>Math.random()?lI=!0:!1,a?aI():(window.clearTimeout(sI),sI=null,AI="i",rI=!0))}
function FI(a,b,c){CI||DI();var d={};qc(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0},c||{});var e=a.toLowerCase();if(a=ic(eH,function(a){return a==e})){a={e:fH[a],hd:rI?"1":"0",v:"237v",hdr:AI||void 0,a:void 0};if(BI)return a.msg="ue",DH(a);b=GI(b,d);if(!b)return a.msg="nf",DH(a);"i"==AI&&(b.Ka=!0);c=d.opt_fullscreen;p(c)&&(b.F=Boolean(c));a.a=NH(b);p(b.O)&&(a.la=b.O);c={};c.start=HI;c.firstquartile=II;c.midpoint=JI;c.thirdquartile=KI;c.complete=LI;c.metric=MI;c.pause=
NI;c.resume=OI;c.skip=PI;c.viewable_impression=MI;c.mute=QI;c.unmute=RI;c.fullscreen=SI;c.exitfullscreen=TI;if(c=c[e]){d=c(b,d);if(!p(d)||u(d))return d;qc(a,d);return DH(a)}}}function HI(a,b){"i"!=AI&&(rI=!1);UI(a,b);QH(a,0);return RH(a)}function II(a){QH(a,1);fI([a],!UH());return RH(a)}function JI(a){QH(a,2);fI([a],!UH());return RH(a)}function KI(a){QH(a,3);fI([a],!UH());return RH(a)}function LI(a){QH(a,4);fI([a],!UH());var b=RH(a);a.F=!1;VI(a.B);return b}
function NI(a){a.Ca=PH(a,yH());var b=!UH();fI([a],b);a.U=!0;return RH(a)}function OI(a){var b=UH();a.U&&!b&&(a.R=yH());fI([a],!b);a.U=!1;return RH(a)}function MI(a){return RH(a)}function PI(a){var b=!UH();fI([a],b);b=RH(a);a.F=!1;VI(a.B);return b}function QI(a){fI([a],!UH());return RH(a)}function RI(a){fI([a],!UH());return RH(a)}function SI(a){a.F=!0;fI([a],!UH());return RH(a)}function TI(a){a.F=!1;fI([a],!UH());return RH(a)}
function UI(a,b){b&&b.opt_VideoAdLength&&(a.Ic=b.opt_VideoAdLength);var c=yH();BH=c;a.W=[0,0,0,0,0];a.H=[0,0,0,0,0];a.o=[0,0,0,0,0];a.da=[0,0,0,0,0];a.G=-1;a.Ba=-1;a.eb=-1;a.vb=0;a.ub=-1;a.wa=-1;a.N=-1;a.j=0;a.G=c;var d=!1;UH()||(d=!0,a.R=c);fI([a],d)}function VI(a){if(u(a)){var b=nb(gI,function(b){return b.B==a});0<=b&&ub(gI,b)}}function GI(a,b){if(b.opt_videoAdElement)return WI(a,b.opt_videoAdElement);var c=XI(a);return c?c:c=D(gI,function(b){return b.B==a})}
function WI(a,b){var c=D(gI,function(a){return a.element==b});c||(c=YI(b),c.B=a,c.D="h");return c}function XI(a){var b=D(gI,function(b){return b.element?ZI(b.element)==a:!1});if(b)return b;b=$I();b=D(b,function(b){return ZI(b)==a});if(!b)return null;b=YI(b);b.D="as";aJ(b);return b}function aJ(a){var b=ZI(a.element);u(b)&&(a.B=b)}
function $I(){var a=Y.document,b=Jb(ib(["embed","object"],function(b){return wb(a.getElementsByTagName(b))}));return b=hb(b,function(a){if(!a||!ka(a)||1!=a.nodeType)return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ja(a.metricID)?!0:!1})}function ZI(a){if(!a||!a.metricID||!ja(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}
function YI(a){var b=yH();zI(a,"admeta")||zI(a,"admetaDfp");var c=zI(a,"ord")||"",d;t:if(c){d=Y.document.getElementsByTagName("script");for(var c=new RegExp(".doubleclick.net/(N.+/)?(pf)?(ad[ijx])/.*;ord="+Qa(c)),e=0;e<d.length;e++){var g=d[e];if(g&&g.src&&c.test(g.src)){d=g.src;break t}}d=Y!=Y.top&&c.test(Y.location.href)?Y.location.href:""}else d="";a=new EH(Y,0,a,b,7,SH);b=d.match(/.doubleclick.net\/(N.+\/)?(pf)?(ad[ijx])\//);a.Jc=b?{adi:"adi",adj:"adj",adx:"adx"}[b[3]]:"";if(d){t:{if(d&&(b=d.match(/\/\/.*(;u=xb[^;\?]*)/i))&&
(b=b[b.length-1].split("="))&&2==b.length){b=b[1];break t}b=null}a.Gc=b}a.Ja=bJ;yI([a]);aI();return a}function bJ(a){if(2E3<=Math.max(a.o[2],a.H[2])&&!a.aa){var b="as"==a.D,c="h"==a.D,d=t("ima.common.triggerViewEvent"),e=RH(a);e.e=9;try{var g=DH(e);c?ja(d)?(d(a.B,g),a.aa=!0):a.C=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(g),a.aa=!0):a.C=1:a.C=5}catch(h){a.C=a.C||2}}else a.C=3}
q("Goog_AdSense_Lidar_startMetricMeasurement",bH("lidar::startmm_ex",function(a,b){var c=b||{};if(!u(a)){var d=GI(a,c);d&&UI(d,c)}}),void 0);q("Goog_AdSense_Lidar_stopMetricMeasurement",bH("lidar::stopmm_ex",VI),void 0);q("Goog_AdSense_Lidar_getMetric",bH("lidar::getmetric_ex",function(a){var b=D(gI,function(b){return b.B===a});if(!b)return"-1";var c={xsj:b.W,mkdj:b.H};UH()?c.c7=(100*b.j|0)/100:c.ftr=yH()-vH;return Mb(c)}),void 0);
q("Goog_AdSense_Lidar_sendVastMessage",bH("lidar::handlevast_ex",FI),void 0);function cJ(){P.call(this);this.g=null;this.A=new aj(this);O(this,this.A);this.C=new ve;this.o=null;this.k=!1}z(cJ,P);var dJ=null;function eJ(){null!=dJ||(dJ=new cJ);return dJ}cJ.prototype.j=null;cJ.prototype.destroy=function(){this.A.ya(this.g,"activityMonitor",this.B);this.k=!1};cJ.prototype.init=function(a){this.k||((this.g=a||null)&&this.A.listen(this.g,"activityMonitor",this.B),this.k=!0)};
function fJ(a){if(null==a)return!1;if(GG()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=gJ(a);return 0>=b-a.width&&42>=c-a.height}function gJ(a){return ja(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}
function hJ(a,b,c,d,e,g){if(a.k){var h={};if(d=d?a.C.get(d):X.o)h.opt_videoAdElement=d,h.opt_fullscreen=fJ(d);e&&(h.opt_fullscreen=e);g?h.opt_offset=g:a.o&&(h.opt_offset=gJ(a.o));return FI(b,c,h)||""}return""}
cJ.prototype.B=function(a){var b=a.zc,c=b.queryId,d={};d.timeoutId=b.timeoutId;switch(a.Mb){case "getViewability":d.viewabilityString=hJ(this,"metric",c)||"";this.g.send("activityMonitor","viewability",d);break;case "reportVastEvent":d.viewabilityString=hJ(this,b.vastEvent,c,b.osdId,b.isFullscreen,b.isOverlay?{left:b.left,top:b.top,width:b.width,height:b.height}:void 0),this.g.send("activityMonitor","viewability",d)}};
q("ima.common.sdkVolume",function(){var a=-1;null!=eJ().j&&(a=eJ().j());return a},void 0);q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d;(d=eJ().g)?d.send("activityMonitor","viewableImpression",c):eJ().T(new mF("viewable_impression",null,c))},void 0);function iJ(a,b,c){if(qb(a))return null;a=hb(a,function(a){var b=a.k;return"application/x-mpegurl"==B(a.g).toLowerCase()||"progressive"==b});qb(c)||(c=ib(c,function(a){return a.toLowerCase()}),a=hb(a,function(a){return E(c,B(a.g).toLowerCase())}));if(!ia(b)||0>=b)b=VH()?500:1E3;return jJ(a,b)}function jJ(a,b){return kJ(a,b)||lJ(a,b)||mJ(a,b)}function kJ(a,b){var c=null;C(a,function(a){var e=a.Gd,g=a.Vc;e>b||g<b||!(null==c||c.Gd>e)||(c=a)});return c}
function lJ(a,b){var c=null;C(a,function(a){var e=a.Gd,g=a.Vc;g>b||(null==c||c.Vc<g?c=a:null!=c&&c.Vc==g&&c.Gd>e&&(c=a))});return c}function mJ(a,b){var c=null;C(a,function(a){var e=a.Gd,g=a.Vc;if(!(e<b))if(null!=c&&c.Gd==e&&c.Vc<g)c=a;else if(null==c||c.Gd>e)c=a});return c};function nJ(){P.call(this);this.o=this.C=this.B=!1;this.g=0;this.j=[];this.D=!1;this.A={}}z(nJ,P);function oJ(a,b){null==b||a.B||(a.k=b,pJ(a),a.B=!0)}function qJ(a){null!=a.k&&a.B&&(rJ(a),a.B=!1,a.C=!1,a.o=!1,a.g=0,a.j=[],a.D=!1)}function pJ(a){rJ(a);a.A=a.k instanceof P||!HG()?{click:x(a.Nw,a)}:{touchstart:x(a.Qw,a),touchmove:x(a.Pw,a),touchend:x(a.Ow,a)};$b(a.A,function(a,c){this.k.addEventListener(c,a,!1)},a)}function rJ(a){$b(a.A,function(a,c){this.k.removeEventListener(c,a,!1)},a);a.A={}}f=nJ.prototype;
f.Qw=function(a){this.C=!0;this.g=a.touches.length;this.D=sJ(this,a.touches)||1!=a.touches.length;tJ(this,a.touches)};f.Pw=function(a){this.o=!0;this.g=a.touches.length};f.Ow=function(a){this.C&&1==this.g&&!this.o&&!this.D&&sJ(this,a.changedTouches)&&this.T(new Qh("click"));this.g=a.touches.length;0==this.g&&(this.o=this.C=!1,this.j=[])};f.Nw=function(){this.T(new Qh("click"))};function tJ(a,b){a.j=[];C(b,function(a){sb(this.j,a.identifier)},a)}
function sJ(a,b){return kb(b,function(a){return E(this.j,a.identifier)},a)}f.K=function(){qJ(this);nJ.J.K.call(this)};function uJ(a,b,c,d,e,g,h,k,l){this.k=a;this.g=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.Gd=d;this.Vc=e;this.A=h;this.j=k;this.o=l}uJ.prototype.getHeight=function(){return this.A};function vJ(){P.call(this)}z(vJ,P);var wJ={Vz:"beginFullscreen",CLICK:"click",XA:"end",ZA:"endFullscreen",ERROR:"error",FB:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",lC:"skip",Wo:"start",yC:"timeUpdate",OC:"volumeChange"};vJ.prototype.Ym=ba;function xJ(a){P.call(this);this.g=a;this.N=new vi(4);this.D=this.O=0;this.I=this.k=this.C=!1;this.G=this.Xe();this.F=this.jd();this.P=15E3;this.H=!1}z(xJ,vJ);f=xJ.prototype;
f.Pm=function(a,b,c){a=hb(a,function(a){var b=a.g;A(B(a.j))||"progressive"!=a.k&&"application/x-mpegurl"!=B(b).toLowerCase()?a=!1:(b=B(b).toLowerCase(),a=A(b)||Ac&&IG(EG,2.3)&&La(b,"application/ogg")?!1:Ac&&(La(b,"video/mp4")||La(b,"video/3gpp"))||HG()&&(La(b,"application/x-mpegurl")||La(b,"application/vnd.apple.mpegurl"))?!0:!A(this.g.canPlayType(b)));return a},this);return iJ(a,b,c)};f.zn=function(){return hb(ec(zF),function(a){return!A(this.g.canPlayType(a))},this)};
f.fi=function(a){this.P=0<a.hb?a.hb:15E3};f.load=function(a){yJ(this);this.g.src=a;this.g.load()};f.getVideoUrl=function(){return this.g.src};f.setVolume=function(a){this.g.volume=a};f.tc=function(){return this.g.volume};f.play=function(){this.H=!1;Zi(this.g.play,0,this.g);this.L=Zi(this.dw,this.P,this)};f.pause=function(){this.H=!0;this.g.pause()};f.uf=function(){return this.g.paused?HG()||Bg?this.g.currentTime<this.g.duration:!0:!1};f.sf=function(){return this.g.muted};
f.Yj=function(){GG()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};f.jd=function(){return fJ(this.g)};f.Gf=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.je=function(a){this.g.currentTime=a};f.getCurrentTime=function(){return this.g.currentTime};f.Dn=function(){return zJ(this)};f.oc=function(){return isNaN(this.g.duration)?-1:this.g.duration};f.ud=function(){return this.g.ended};
f.Xe=function(){return new G(this.g.offsetWidth,this.g.offsetHeight)};f.pn=function(){return this.g.seeking};f.K=function(){this.$d();this.g=null;xJ.J.K.call(this)};f.co=function(){return this.g.error};
f.ug=function(){this.$d();this.j=new aj(this);this.j.listen(this.g,"canplay",this.xu);this.j.listen(this.g,"ended",this.tu);this.j.listen(this.g,"webkitbeginfullscreen",this.ej);this.j.listen(this.g,"webkitendfullscreen",this.Qm);this.j.listen(this.g,"pause",this.vu);this.j.listen(this.g,"playing",this.yu);this.j.listen(this.g,"timeupdate",this.zu);this.j.listen(this.g,"volumechange",this.wu);this.j.listen(this.g,"error",this.Ml);this.A=new nJ;this.j.listen(this.A,"click",this.su);oJ(this.A,this.g);
this.B=new Xi(1E3);this.j.listen(this.B,"tick",this.uu);this.B.start()};f.$d=function(){null!=this.A&&(qJ(this.A),this.A=null);null!=this.B&&this.B.dispose();null!=this.j&&(this.j.dispose(),this.j=null);yJ(this)};function yJ(a){a.k=!1;a.I=!1;a.N.clear();$i(a.L);Eg(a.o)}function AJ(a){a.k||(a.k=!0,$i(a.L),a.T("start"),LG()||!Ac||Ac&&IG(EG,3)||GG()&&(!HG()||!IG(DG,4))||a.ej())}f.xu=function(){var a;if(a=Cg)a=uc,a=!(a&&(Pa(a,"SMART-TV")||Pa(a,"SmartTV")));a&&!this.I&&(this.je(.001),this.I=!0)};
f.yu=function(){this.T("play");HG()||Ag||AJ(this)};f.zu=function(){if(!this.k&&(HG()||Ag)){if(0>=this.getCurrentTime())return;if(Ag&&this.ud()&&1==this.oc()){this.Ml();return}AJ(this)}if(HG()){if(!this.C&&1.5<this.getCurrentTime()-this.O){this.C=!0;this.je(this.D);return}this.O=this.getCurrentTime();this.C=!1;this.getCurrentTime()>this.D&&(this.D=this.getCurrentTime())}this.N.add(this.g.currentTime);this.T("timeUpdate")};f.wu=function(){this.T("volumeChange")};
f.vu=function(){var a;this.k&&HG()&&!this.H&&2>zJ(this)-this.g.currentTime?(this.o=new Xi(250),this.j.listen(this.o,"tick",this.Bs),this.o.start(),a=!0):a=!1;a||this.T("pause")};f.tu=function(){var a=!0;HG()&&(a=this.D>=this.g.duration-1.5);!this.C&&a&&this.T("end")};f.ej=function(){this.T("beginFullscreen")};f.Qm=function(){this.T("endFullscreen")};f.Ml=function(){$i(this.L);this.T("error")};f.su=function(){this.T("click")};
f.uu=function(){var a=this.Xe(),b=this.jd();if(a.width!=this.G.width||a.height!=this.G.height)!this.F&&b?this.ej():this.F&&!b&&this.Qm(),this.G=a,this.F=b};f.dw=function(){if(!this.k){try{NG(MG.getInstance(),16)}catch(a){}yJ(this);this.T("mediaLoadTimeout")}};f.Bs=function(){if(this.ud()||!this.uf())Eg(this.o);else{var a=this.g.duration-this.g.currentTime,b=zJ(this)-this.g.currentTime;0<b&&(2<=b||2>a)&&(Eg(this.o),this.play())}};
function zJ(a){for(var b=a.g.buffered.length-1;0<=b;){if(a.g.buffered.start(b)<=a.g.currentTime)return a.g.buffered.end(b);b--}return 0};function BJ(a,b){if(null==a||!Ad(Zc(a),a))throw xG(WF,null,"containerElement","element");this.A=a;this.j=this.g=null;this.o=b;this.k=null;this.g=J("div",{style:"display:none;"});var c=J("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;"});c.setAttribute("webkit-playsinline",!0);this.j=c;this.k=J("div",{style:"position:absolute;width:100%;height:100%;"});this.A.appendChild(this.g);this.g.appendChild(this.j);this.o&&(c=J("div",{id:this.o,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),
this.g.appendChild(c));this.g.appendChild(this.k)}z(BJ,N);BJ.prototype.initialize=function(){FG()&&this.j.load()};BJ.prototype.dispose=function(){sd(this.g)};BJ.prototype.show=function(){var a=this.g;null!=a&&(a.style.display="block")};BJ.prototype.hide=function(){var a=this.g;null!=a&&(a.style.display="none")};function CJ(a){null!=a?FF(BF,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&FF(CF,a)?DJ(a):null:a=null;return a}function EJ(a,b,c){if(null==a)return null;c=new K((null!=c?c:"//www._old_youtube.com/")+"watch");var d=c.g;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");Ze(c,d);return c.toString()}
function DJ(a){if(A(B(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=kf(new K(a));return qf(a,"v")?a.get("v").toString():qf(a,"video_id")?a.get("video_id").toString():null};function FJ(a){P.call(this);this.H="ima-chromeless-video";var b=null;null!=a&&(u(a)?this.H=a:b=a);this.I=new aj(this);this.B=null;this.o=!1;this.Y=this.Xe();this.U=this.jd();this.D=-1;this.O=!1;this.C=-1;this.k=this.L=this.F=null;this.R="";this.j=!1;this.aa=null!=b;this.G=this.P=this.g=null;this.A=void 0;this.Z=null;null!=b?(this.j=!0,this.g=b,this.A=2):(a=x(this.aq,this),GJ?a():(HJ.push(a),a=nd("script"),a.src="https://www._old_youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}z(FJ,vJ);var IJ=["video/mp4","video/webm"],JJ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},HJ=[],GJ=!1;f=FJ.prototype;f.Pm=function(a,b,c){var d=D(a,function(a){return null!==CJ(a.j)});return null!==d||!qb(c)&&(c=hb(c,function(a){return E(IJ,a)}),d=iJ(a,b,c),null!==d)?d:D(a,function(a){return E(IJ,a.g)})};f.fi=function(a){this.k=a};f.load=function(a,b){null!==a&&(this.R=a,this.j?KJ(this,a,b):(this.F=a,this.L=b))};f.getVideoUrl=function(){return this.R};
f.setVolume=function(a){this.aa?this.T("volumeChange"):this.j?(a=Sb(100*a,0,100),this.g.setVolume(a),this.C=-1,this.T("volumeChange")):this.C=a};f.tc=function(){return this.j?this.g.getVolume()/100:this.C};
f.play=function(){if(!A(B(this.R))){if(!this.o){LJ(this);var a=15E3;null!=this.k&&0<this.k.hb&&(a=this.k.hb);this.da=Zi(this.Ir,a,this)}this.j?(this.O=!1,MJ(this),this.B=new Xi(100),this.I.listen(this.B,"tick",this.Xl),this.B.start(),!this.o&&this.k&&this.k.g?this.g.loadVideoByPlayerVars(this.Z):this.g.playVideo()):this.O=!0}};f.pause=function(){this.j&&this.o&&(MJ(this),this.g.pauseVideo())};f.uf=function(){return this.j?2==this.g.getPlayerState(this.A):!1};
f.sf=function(){return this.j?this.g.isMuted():0==this.tc()};f.Yj=function(){};f.jd=function(){var a=X.j?X.o:document.getElementById(this.H);return a?fJ(a):!1};f.Gf=function(a){return this.j?this.g.getCurrentTime(this.A)>=a:!1};f.je=function(a){this.j?this.g.seekTo(a,!1):this.D=a};f.getCurrentTime=function(){return this.j?this.g.getCurrentTime(this.A):-1};f.Dn=function(){return this.j&&this.o?this.g.getVideoLoadedFraction(this.A)*this.g.getDuration(this.A):0};
f.oc=function(){return this.j&&this.o?this.g.getDuration(this.A):-1};f.co=function(){return null};f.zn=function(){return ec(zF)};f.ud=function(){return this.j?0==this.g.getPlayerState(this.A):!1};f.Xe=function(){var a=X.j?X.o:document.getElementById(this.H);return a?new G(a.offsetWidth,a.offsetHeight):new G(0,0)};f.pn=function(){return!1};
f.aw=function(){var a=this.Xe(),b=this.jd();if(a.width!=this.Y.width||a.height!=this.Y.height)!this.U&&b?this.T("beginFullscreen"):this.U&&!b&&this.T("endFullscreen"),this.Y=a,this.U=b};f.ug=function(){this.P=x(this.Sn,this);this.G=x(this.bk,this);this.aa&&(this.g.addEventListener("onAdStateChange",this.G),this.g.addEventListener("onReady",this.P),this.g.addEventListener("onStateChange",this.G));this.N=new Xi(1E3);this.I.listen(this.N,"tick",this.aw);this.N.start()};
f.$d=function(){this.aa&&(this.g.removeEventListener("onAdStateChange",this.G),this.g.removeEventListener("onReady",this.P),this.g.removeEventListener("onStateChange",this.G));null!=this.N&&this.N.dispose()};f.aq=function(){var a=this.H,b={playerVars:nc(JJ),events:{onError:x(this.kw,this),onReady:x(this.Sn,this),onAdStateChange:x(this.bk,this),onStateChange:x(this.bk,this)}},c=t("YT");this.g=null!=c&&null!=c.Player?new c.Player(a,b):null};
function KJ(a,b,c){var d={};if(null!=a.k){var e=a.k.j;null!=e&&(d.agcid=e);e=a.k.A;null!=e&&(d.adformat=e);(e=a.k.k)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.k.B?1:3;a.k.o&&(d.noiba=1);a.k.C&&(d.utpsa=1)}e=CJ(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.g?(a.Z=d,a.g.preloadVideoByPlayerVars(a.Z)):a.g.cueVideoByPlayerVars(d)}f.kw=function(){this.T("error")};
f.Sn=function(){this.j=!0;-1!=this.C&&(this.setVolume(this.C),this.C=-1);null!=this.F&&(KJ(this,this.F,this.L),this.L=this.F=null);-1!=this.D&&(this.je(this.D),this.D=-1);this.O&&this.play()};f.bk=function(a){switch(a.data){case 0:this.o?this.T("end"):this.T("error");break;case 1:this.o||(LJ(this),this.o=!0,this.T("start"));this.T("play");break;case 2:this.T("pause")}};function MJ(a){a.I.ya(a.B,"tick",a.Xl);null!=a.B&&(a.B.stop(),a.B=null)}function LJ(a){null!=a.da&&$i(a.da)}f.Xl=function(){this.T("timeUpdate")};
f.Ir=function(){this.T("mediaLoadTimeout")};f.Ym=function(a,b){this.j&&this.g.addInfoCardXml(a,b)};f.K=function(){MJ(this);LJ(this);this.$d();this.j=!1;this.I.dispose();this.D=-1;this.L=null;this.O=!1;this.F=null;this.C=-1;this.P=this.g=this.k=null;this.o=!1;this.R="";FJ.J.K.call(this)};q("onYouTubeIframeAPIReady",function(){GJ=!0;C(HJ,function(a){a()});rb(HJ)},window);function NJ(a){P.call(this);this.g=a||Ya();this.j=[]}z(NJ,P);NJ.prototype.k=!1;NJ.prototype.connect=function(){for(this.k=!0;!qb(this.j);){var a=this.j.shift();this.sendMessage(a.name,a.type,a.data)}};NJ.prototype.send=function(a,b,c){this.k?this.sendMessage(a,b,c):this.j.push({name:a,type:b,data:c})};function OJ(a,b,c,d,e){Qh.call(this,a);this.Mb=b;this.zc=c;this.Cm=d;this.o=e}z(OJ,Qh);OJ.prototype.getOrigin=function(){return this.o};OJ.prototype.toString=function(){return""};function PJ(a,b){NJ.call(this,b);this.o=a;this.Sb=null;this.A=new aj(this);this.logger=null;this.A.listen(jd(),"message",this.receive)}z(PJ,NJ);function QJ(a){if(null==a||!u(a)||!wa(a,"ima://"))return null;a=a.substr(6);try{return Kb(a)}catch(b){return null}}PJ.prototype.sendMessage=function(a,b,c){null!=this.Sb&&null!=this.Sb.postMessage&&this.Sb.postMessage(RJ(this,a,b,c),"*");null!=this.Sb&&null==this.Sb.postMessage&&NG(MG.getInstance(),11)};PJ.prototype.K=function(){this.A.dispose();PJ.J.K.call(this)};
PJ.prototype.receive=function(a){a=a.g;var b=QJ(a.data);if(null!=b){if(null==this.Sb)this.Sb=a.source;else if(this.Sb!=a.source)return;var c=b.channel;null!=c&&c==this.o&&(c=b.sid,null!=c&&("*"!=this.g&&c!=this.g||this.T(new OJ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function RJ(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.g;e.channel=a.o;return"ima://"+Mb(e)};function SJ(a,b){P.call(this);this.o=a;this.k=b;this.g={};this.j=new aj(this);this.j.listen(jd(),"message",this.A)}z(SJ,P);SJ.prototype.send=function(a){var b=a.getChannelId();this.g.hasOwnProperty(b)?this.g[b].send(a.type,a.Mb,a.zc):a.getChannelId()};function TJ(a,b,c,d){a.g.hasOwnProperty(b)||(c=new PJ(b,c),a.j.listen(c,a.o,function(a){a=new UJ(a.type,a.Mb,a.zc,a.Cm,a.getOrigin(),b);this.T(a)}),c.Sb=d,c.connect(),a.g[b]=c)}
SJ.prototype.K=function(){this.j.dispose();for(var a in this.g)Eg(this.g[a]);SJ.J.K.call(this)};SJ.prototype.A=function(a){a=a.g;var b=QJ(a.data);if(null!=b){var c=b.channel;if(this.k&&!this.g.hasOwnProperty(c)){var d=b.sid;TJ(this,c,d,a.source);this.T(new UJ(b.name,b.type,b.data||{},d,a.origin,c))}}};function UJ(a,b,c,d,e,g){OJ.call(this,a,b,c,d,e);this.k=g}z(UJ,OJ);UJ.prototype.getChannelId=function(){return this.k};function VJ(){var a=t("google.ima.gptProxyInstance",jd());if(null!=a)return a;aj.call(this);this.k=new SJ("gpt",!0);O(this,this.k);this.listen(this.k,"gpt",this.B);this.g=null;WJ()||jd().top===jd()||(this.g=new SJ("gpt",!1),O(this,this.g),this.listen(this.g,"gpt",this.A))}z(VJ,aj);function WJ(){return!!t("googletag.cmd",jd())}function XJ(){var a=t("googletag.console",jd());return null!=a?a:null}
VJ.prototype.B=function(a){var b=a.getOrigin(),c=He("//imasdk.googleapis.com"),b=He(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)TJ(this.g,a.getChannelId(),a.Cm,jd().parent),null!=this.g&&this.g.send(a);else if(c=a.zc,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Mb,"isGptPresent"==c?d=WJ():"isConsolePresent"==c&&(d=null!=XJ());else if(WJ())if("pubads"==b||"companionAds"==b){d=a.Mb;var e,g=jd().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.Mb,e=XJ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.Mb;d=jd();if(E(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}p(d)&&(a.zc.returnValue=d,this.k.send(a))}};VJ.prototype.A=function(a){this.k.send(a)};function YJ(a,b,c,d,e,g,h,k){this.A=a;this.j=b;this.k=c;this.o=h;this.B=d;this.C=e;this.hb=g;this.g=k};function ZJ(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,n,r,v){if("%"==n)return"%";var s=c.shift();if("undefined"==typeof s)throw Error("[goog.string.format] Not enough arguments");arguments[0]=s;return $J[n].apply(null,arguments)})}
var $J={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Ra(" ",c-a.length):Ra(" ",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+Ra(" ",a):g+Ra(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return $J.f(parseInt(a,
10),b,c,d,0,g,h,k)}};$J.i=$J.d;$J.u=$J.d;function aK(a,b){P.call(this);this.o=new aj(this);this.D=!1;this.F=Ya();this.B=new ve;var c=this.F,c=J("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+ZJ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});ej(this.o,c,"load",this.Xq);a.appendChild(c);this.j=c;c=this.B.get("*");null==c&&(c=new PJ(this.F,"*"),this.D&&(c.Sb=Bd(this.j),c.connect()),this.B.set("*",c));this.A=c;this.C=b;this.g=this.C.k;
this.k=null;this.o.listen(this.A,"mouse",this.Zq);this.o.listen(this.A,"touch",this.dr);null!=this.g&&(this.o.listen(this.A,"displayContainer",this.Yq),this.o.listen(this.A,"videoDisplay",this.ar),this.o.listen(this.g,ec(wJ),this.er));var c=jd(),d=t("google.ima.gptProxyInstance",c);null==d&&(d=new VJ,q("google.ima.gptProxyInstance",d,c))}z(aK,P);f=aK.prototype;
f.K=function(){this.o.dispose();null!==this.k&&(this.k.dispose(),this.k=null);te(this.B.Lb(!1),function(a){a.dispose()});this.B.clear();sd(this.j);aK.J.K.call(this)};f.Zq=function(a){var b=a.zc,c=Wd(this.j),d=document.createEvent("MouseEvent");d.initMouseEvent(a.Mb,!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(!Cg||HG()||0==document.webkitIsFullScreen)this.j.blur(),window.focus();this.j.dispatchEvent(d)};
function bK(a,b){var c=Wd(a.j),d=ib(b,function(a){return document.createTouch(window,this.j,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.dr=function(a){var b=a.zc,c=Wd(this.j),d=document.createEvent("TouchEvent");d.initTouchEvent(a.Mb,!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,bK(this,b.touches),bK(this,b.targetTouches),bK(this,b.changedTouches),b.scale,b.rotation);this.j.dispatchEvent(d)};
f.ar=function(a){if(null!=this.g){var b=a.zc;switch(a.Mb){case "startTracking":this.g.ug();break;case "stopTracking":this.g.$d();break;case "exitFullscreen":this.g.Yj();break;case "play":this.g.play();break;case "pause":this.g.pause();break;case "load":this.g.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.g.je(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.g.fi(new YJ(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.er=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.g.ud();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.g.getCurrentTime();b.duration=this.g.oc();break;case "volumeChange":a=
"volumeChange";b.volume=this.g.tc();break;default:return}this.A.send("videoDisplay",a,b)};f.Yq=function(a){switch(a.Mb){case "showVideo":null!=this.k?qJ(this.k):(this.k=new nJ,this.o.listen(this.k,"click",this.Fu));oJ(this.k,cK(this.C));a=this.C;null!=a.g&&a.g.show();break;case "hide":null!==this.k&&(this.k.dispose(),this.k=null),this.C.hide()}};f.Fu=function(){this.A.send("displayContainer","videoClick")};f.Xq=function(){te(this.B.Lb(!1),function(a){a.Sb=Bd(this.j);a.connect()},this);this.D=!0};function dK(a,b,c,d){if(null==a||!Ad(Zc(a),a))throw xG(WF,null,"containerElement","element");this.C=a;var e=null!=b||null!=d,g=e,h;(h=X.j)||(h=(HG()||Ac||Pa(uc,"CrKey")||Pa(uc,"PlayStation")||Pa(uc,"Roku")||KG()||Pa(uc,"Xbox"))&&e);h||(g=!1);this.D=(this.A=g)&&null!=d;X.j?a=null:(e=J("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.j=a;this.g=!this.A&&this.j&&!X.j&&FG()?new BJ(this.j,null):null;a=null;this.A?b?a=new xJ(b):d&&(a=new FJ(d)):this.g&&(a=new xJ(this.g.j));this.o=
(this.k=a)?c||null:null;this.F=null!=this.o;NG(MG.getInstance(),8,{enabled:this.A,yt:null!=d,customClick:null!=this.o});X.j&&(b=this.C,X.o=b);this.B=null==this.j||X.j?null:new aK(this.j,this)}dK.prototype.initialize=function(){null!=this.g&&this.g.initialize()};dK.prototype.destroy=function(){Eg(this.g);Eg(this.B);Eg(this.k);sd(this.j)};dK.prototype.hide=function(){null!=this.g&&this.g.hide()};function cK(a){return a.F&&a.o?a.o:null!=a.g?a.g.k:null};function eK(){P.call(this);this.currentTime=0}z(eK,P);function fK(a){eK.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw xG(WF,null,"content","currentTime");this.j=a;this.g=new Xi(250);this.k=new aj(this);dj(this.k,this.g,"tick",this.o,this)}z(fK,eK);fK.prototype.start=function(){this.g.start()};fK.prototype.stop=function(){this.g.stop()};fK.prototype.K=function(){fK.J.K.call(this);this.k.dispose();this.g.dispose()};
fK.prototype.o=function(){if("currentTime"in this.j&&!isNaN(this.j.currentTime)){var a=this.currentTime;this.currentTime=this.j.currentTime;a!=this.currentTime&&this.T(new Qh("currentTimeUpdate"))}else this.T(new Qh("contentWrapperError")),this.stop()};function gK(){this.reset()}gK.prototype.reset=function(){this.g=0;this.j=null};var hK;
hK={A:["BC","AD"],o:["Before Christ","Anno Domini"],C:"JFMAMJJASOND".split(""),L:"JFMAMJJASOND".split(""),B:"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(" "),G:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),P:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),U:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),R:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
I:"Sun Mon Tue Wed Thu Fri Sat".split(" "),ua:"Sun Mon Tue Wed Thu Fri Sat".split(" "),D:"SMTWTFS".split(""),O:"SMTWTFS".split(""),H:["Q1","Q2","Q3","Q4"],F:["1st quarter","2nd quarter","3rd quarter","4th quarter"],g:["AM","PM"],j:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],W:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],k:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Wx:6,Y:[5,6],Xx:5};function iK(a,b,c,d,e,g){u(a)?(this.k="y"==a?b:0,this.j="m"==a?b:0,this.g="d"==a?b:0,this.o="h"==a?b:0,this.A="n"==a?b:0,this.B="s"==a?b:0):(this.k=a||0,this.j=b||0,this.g=c||0,this.o=d||0,this.A=e||0,this.B=g||0)}iK.prototype.equals=function(a){return a.k==this.k&&a.j==this.j&&a.g==this.g&&a.o==this.o&&a.A==this.A&&a.B==this.B};iK.prototype.clone=function(){return new iK(this.k,this.j,this.g,this.o,this.A,this.B)};
iK.prototype.add=function(a){this.k+=a.k;this.j+=a.j;this.g+=a.g;this.o+=a.o;this.A+=a.A;this.B+=a.B};function jK(a,b,c){ia(a)?(this.g=kK(a,b||0,c||1),lK(this,c||1)):ka(a)?(this.g=kK(a.getFullYear(),a.getMonth(),a.getDate()),lK(this,a.getDate())):(this.g=new Date(y()),this.g.setHours(0),this.g.setMinutes(0),this.g.setSeconds(0),this.g.setMilliseconds(0))}function kK(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=jK.prototype;f.ao=hK.Wx;f.bo=hK.Xx;
f.clone=function(){var a=new jK(this.g);a.ao=this.ao;a.bo=this.bo;return a};f.getFullYear=function(){return this.g.getFullYear()};f.getMonth=function(){return this.g.getMonth()};f.getDate=function(){return this.g.getDate()};f.getTime=function(){return this.g.getTime()};f.set=function(a){this.g=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.k||a.j){var b=this.getMonth()+a.j+12*a.k,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.g.setDate(1);this.g.setFullYear(c);this.g.setMonth(b);this.g.setDate(d)}a.g&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.g),this.g.setDate(1),this.g.setFullYear(a.getFullYear()),
this.g.setMonth(a.getMonth()),this.g.setDate(a.getDate()),lK(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(),Sa(this.getMonth()+1),Sa(this.getDate())].join("")+""};function lK(a,b){a.getDate()!=b&&a.g.setUTCHours(a.g.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.g.valueOf()};function mK(){this.j=this.g=null}mK.prototype.reset=function(){this.j=this.g=null};function nK(){this.g=oK();this.D=-1;this.I=this.N=this.k=this.C=this.o=null;this.H=oK();this.j=null;this.O=this.F=this.G="";this.B=this.L=this.A=null}function oK(){return Math.floor(4503599627370496*Math.random())}var pK=new nK;nK.prototype.clear=function(){this.g=oK();this.k=this.C=this.o=null;this.H=oK();this.j=null;this.O=this.F=this.G="";this.B=this.L=this.A=null};function qK(a){if(X.j)return"h.3.0.0";var b="h."+a.O;null!=a.A&&(b+="/n."+a.A,null!=a.o&&(b+="/"+a.o));return b};function rK(a,b){this.B=a;this.A=ib(b,function(a){return a.clone()});this.o="";this.g=this.k=0;this.j=!0}function sK(a){a.o="";a.k=0;a.g=0;a.j=!0}rK.prototype.getContent=function(){return this.o};rK.prototype.clone=function(){var a=new rK(this.B,this.A),b=this.k,c=this.g,d=this.j;a.o=this.o;a.k=b;a.g=c;a.j=d;return a};function tK(){P.call(this);this.o=!1;this.impressionUrls=[]}z(tK,P);function uK(a){Qh.call(this,a)}z(uK,Qh);function vK(){tK.call(this);this.D=[];this.A=!1;this.k="not_loaded";this.j=null;this.B=0;this.g=null;this.F=new Yc}z(vK,tK);ca(vK);function wK(a){var b=["googletag","googletag.cmd"];return D(a,function(a){return lb(b,function(b){return!fa(t(b,a))})})||null}f=vK.prototype;f.K=function(){this.j&&this.j.dispose()};f.initialize=function(){if(!this.o){var a;var b=Hd(new Yc);try{t("googletag"),wK([b,b.top]),a=!0}catch(c){a=!1}a?xK(this):(this.o=!0,this.k="not_available")}};
function yK(a){return a.o?ib(a.D,function(a){return a.clone()}):[]}function zK(a){a=yK(a);return null!=a?ib(a,function(a){return a.A}):void 0}function AK(a,b,c){var d=0,e=0;null!=b&&(b=new K(b.adTagUrl),d=Number(mf(b,"pod")||0),e=Number(mf(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(pK.g,"","","",d,e,c)}catch(g){}}function BK(a,b){var c=CK(a);if(null!==c){AK(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=DK(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function EK(a,b){a.C=b;a.setVideoContent("","");var c=CK(a);AK(c,null,!1)}function CK(a){null==a.g&&FK(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.companionAds?a.g.googletag.companionAds():null}function DK(a){null==a.g&&FK(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.pubads?a.g.googletag.pubads():null}
f.Cl=function(){0<this.B&&y()>=this.B?(this.o=!0,GK(this),HK(this)):xK(this)};function GK(a){a.j&&(a.j.stop(),a.j.ya("tick",a.Cl,!1,a),a.j.dispose(),a.j=null)}
function xK(a){var b;if(b=!a.A)FK(a),b=null!=a.g&&null!=a.g.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.g)a.A=!0,c=[];else{var d=a.g.googleGetCompanionAdSlots();c=ib(d,a.gr,a)}}catch(e){a.A=!0,c=[]}a.D=c;a.A=!0}if("retrieved"!=a.k&&"not_available"!=a.k&&!fa(CK(a))){var g;b=CK(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.k=g;break;default:g=Number(g),isNaN(g)?a.k="not_available":
(a.C=g,a.k="retrieved")}}a.A&&"retrieved"==a.k?(a.o=!0,GK(a),a.T(new uK("companions_success"))):a.A&&"not_available"==a.k?(a.o=!0,GK(a),HK(a)):a.j||(a.B=y()+5E3,a.j=new Xi(100),a.j.listen("tick",a.Cl,!1,a),a.j.start())}function FK(a){var b=Hd(a.F);try{a.g=wK([b,b.top])}catch(c){a.g=null}}function HK(a){a.T(new uK("companion_initialization_failed"))}f.gr=function(a){var b=ib(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new rK(a.slotId,b)};
f.Pt=function(a){var b={};b.slotId=a.B;b.adContent=a.getContent();b.adWidth=a.k;b.adHeight=a.g;b.friendlyIframeRendering=a.j;return b};f.sendImpressionUrls=function(a){LF(this.impressionUrls,a)};function IK(a){Qh.call(this,a)}z(IK,Qh);function JK(){P.call(this);this.k=[]}z(JK,P);JK.prototype.Io=function(){return!0};function KK(){return new LK("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new ve)}JK.prototype.od=function(){return null};function MK(a){JK.call(this);this.g=a;this.B=null;this.C=!1;this.j=null;this.A=new aj;dj(this.A,this.g,["companions_success","companion_initialization_failed"],this.ts,this);dj(this.A,this.g,"companion_display_error",this.rs,this);this.g.o?this.C=!0:this.g.initialize()}z(MK,JK);f=MK.prototype;f.destroy=function(){null!=this.A&&this.A.dispose();this.j=null};function NK(a,b){a.j=b;a.o=!0;a.C?OK(a):(a.o=PK(QK(b),[]),a.o||(a.j=null))}
function OK(a){var b=a.j;a.j=null;if(null!=a.g)if(qb(a.k))RK(a);else if(null!=b){var c=SK(a,b),d=a.g;try{d.g.googleSetCompanionAdContents(ib(a.k,d.Pt,d)),d.sendImpressionUrls()}catch(e){d.T(new uK("companion_display_error"))}if(0<c.length&&b.da&&(d=a.g,0!=c.length&&"GDFP"==TK(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].B);b=b.k;c=CK(d);if(null!==c){AK(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else RK(a)}function RK(a){a.T(new IK("companion_display_error"))}f.Io=function(){return this.o};
f.ts=function(){null!=this.B&&(this.B.stop(),this.B.dispose(),this.B=null);if(null!=this.g){var a=yK(this.g);null!=a&&(this.k=a)}this.C=!0;null!=this.j&&OK(this);this.T(new Qh("initialized"))};f.rs=function(){RK(this)};
function SK(a,b){var c=[],d=[];C(a.k,function(a){sK(a);kb(a.A,function(d){t:{var e=UK(b);d=VK(new WK(new G(d.width,d.height)),e);if(!qb(d)&&(d=XK(d,c),null!=d)){e=d.k;if(null!=e&&0!=a.B.indexOf(e)){d=!1;break t}c.push(d);var e=d.getContent(),l=d.g.sc(),n=d.getHeight();d="IFrame"!=d.g.ua;a.o=e;a.k=l;a.g=n;a.j=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=QK(b);a.o=PK(e,c);a.o||C(a.k,function(a){sK(a)},a);return d}
function PK(a,b){if(null==a)return!0;var c=a.g;return"all"==a.j?YK(c,b):"any"==a.j?ZK(c,b):!0}function QK(a){return null==a||null==a.g||isNaN(a.g.g)?null:D($K(a,!0),function(a){a=a.g;return qb(a)?!1:isNaN(a[0].g.g)?!1:a[0].g.g==aL(a[0])})}function YK(a,b){return lb(a,function(a){return E(b,a)})}function ZK(a,b){return kb(a,function(a){return E(b,a)})}function XK(a,b){return D(a,function(a){return!E(b,a)})}f.od=function(){return this.g};function bL(a){Qh.call(this,a);this.B=[];this.A={};this.k=null;this.o=!0}z(bL,Qh);function cL(a,b,c){this.B=b;this.o=c;this.A=null;this.j=new aj(this);this.G=a;this.k=this.g=null;this.C=!1}cL.prototype.start=function(a,b){this.A=a;this.F=b;dL(this);this.B.C?this.D():gj(this.j,this.B,"initialized",this.D,this)};cL.prototype.D=function(){var a=this.B.od(),b;b=a.o?"retrieved"!=a.k?void 0:a.C:void 0;a=zK(a);null!=b&&(this.o.H=b);null!=a&&(this.o.B=a);eL(this)};
function eL(a){if(null===a.A)fL(a);else{var b=new K(a.A.adTagUrl),c=B(mf(b,"vid")),b=B(mf(b,"cmsid")),d=a.o.G,e=a.o.F;a.o.G=c;a.o.F=b;if(A(B(c))||A(B(b)))fL(a);else if(c==d&&b==e)fL(a);else{var g=a.B.od();g.setVideoContent(c,b);BK(g,a.A);a.k=new Xi(100);dj(a.j,a.k,"tick",function(){var a;t:{var b=DK(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&fL(this)},a);a.k.start()}}}
function dL(a){a.g=new Xi;gj(a.j,a.g,"tick",function(){fL(this)},a);Yi(a.g,a.G);a.g.start()}function fL(a){null!=a.j&&(a.j.dispose(),a.j=null);null!=a.g&&(a.g.stop(),a.g=null);null!=a.k&&(a.k.stop(),a.k=null);a.C=!0;null===a.F||a.F()};function gL(){};function hL(a){return W(oG,null,a.parentNode.nodeName,a.nodeName)}function iL(a){return W(dG,null,a.parentNode.nodeName,a.nodeName)}function jL(a,b){return null!=a?hb(ud(a),function(a){return a.nodeName==b}):[]}function kL(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function Z(a,b){if(null==a)return null;var c="";C(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=za(c);return b?Ka(c):c}
function lL(a,b,c,d){null!=a&&C(ud(a),function(a){if(a.nodeName==b)c.call(d,a);else throw hL(a);})}function mL(a){return A(B(a))?NaN:Za(B(a))}function nL(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new iK(0,0,0,Za(c[0]),Za(c[1]),Za(c[2])),60*(60*(24*c.g+c.o)+c.A)+c.B}return null!=b?b:-1}function oL(a,b){if(!A(B(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function pL(a,b,c){this.j=a;this.g=c;this.k=b};function qL(a){this.k=a};function rL(a){this.k=a;this.j=this.g=!1}z(rL,qL);function sL(a,b,c){this.g=a;this.j=b;this.k=c};function tL(){this.g=new ve}function uL(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];xe(a.g,c)&&(d=a.g.get(c,[]));C(b,function(a){null!=a&&sb(d,a)});a.g.set(c,d)};function vL(a,b){this.g=a;this.j=b}z(vL,gL);vL.prototype.k=function(){return new pL(this.g,null,wL(this))};function wL(a){var b=new tL;C(ud(vd(a.g)),function(a){switch(a.nodeName){case "Preroll":a=xL(this,a);uL(b,a,0);break;case "Midroll":var d=kL(a,"timeOffset"),e=nL(d);if(-1==e)throw W(QF,null,"timeOffset",B(d));a=xL(this,a);uL(b,a,e);break;case "Postroll":a=xL(this,a);uL(b,a,-1);break;default:throw W($F,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.g.Ea().length)throw W(ZF);return b}
function xL(a,b){var c=[];C(ud(b),function(a){switch(a.nodeName){case "Ad":var b=B(Z(a));if(!A(b)){a=kL(a,"bumper");var g=this.j.clone();g.adTagUrl=b;b=new rL(g);b.g=null!=a;b.j="always"==a;sb(c,b)}break;default:throw W($F,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function yL(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 zL(a){var b={};C(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=za(d[0]),d=za(d[1]),0<a.length&&(b[a]=d))});return b};var AL=["ai","sigh"];function BL(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?La(a,"/pagead/adview")?CL(a)?0:2:La(a,"/pagead/conversion")?CL(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+qK(pK);var d=a.indexOf("&adurl=");c=-1!=d?Ta(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function CL(a){return lb(AL,function(b){var c=a||"";return 0<=Qe(c,0,b,c.search(Re))})};function DL(a,b){this.g=a;this.j=b}function EL(a){return a.j?-1:a.g}function FL(a,b){a.j&&(a.j=!1,a.g=a.g*b/100)};function GL(){this.g=new ve}function HL(a,b){this.k=a;this.g=b}function IL(a,b){HL.call(this,"progress",a);this.j=b}z(IL,HL);function JL(a,b){C(b,function(a){var b=a.k.toLowerCase(),e=KL(this,b);e.push(a);this.g.set(b,e)},a)}function LL(a,b,c,d){b=b.toLowerCase();var e=KL(a,b);null!=d?(d=new IL(c,d),null!=d?e.push(d):e.push(new HL(b,c))):e.push(new HL(b,c));a.g.set(b,e)}function KL(a,b){return null!=b?a.g.get(b.toLowerCase())||[]:[]}
function ML(a,b){var c=KL(a,"progress");C(c,function(a){FL(a.j,b)});Db(c,function(a,b){return EL(a.j)-EL(b.j)})}GL.prototype.isEmpty=function(){return this.g.isEmpty()};function NL(a,b){return ib(KL(a,b)||[],function(a){return a.g})};function OL(a,b){var c=new GL;lL(a,"Tracking",function(a){var e=kL(a,"event"),g=BL(Z(a),b);PL(g)&&null!=e&&("progress"==e?(a=kL(a,"offset"),a=QL(a),null!=a&&LL(c,e,g,a)):LL(c,e,g))});return c}function RL(a){if(A(B(a)))return null;a=new K(a);if("thismessage"!=a.kb||"extensions"!=a.$a)return null;a=a.rb;if(!wa(a,"/"))return null;a=a.substr(1);return A(B(a))?null:a}
function QL(a){if(A(B(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new DL(a,!0))):(a=nL(a),0<=a&&(b=new DL(a,!1)));return b}function PL(a){var b=!0;if(A(B(a)))b=!1;else try{new K(a)}catch(c){b=!1}return b};function SL(a){this.g=null!=a?a:new GL}function TL(a,b){var c=b.g;C(c.Ea(),function(a){JL(this.g,c.get(a))},a)}function UL(a,b){var c=NL(a.g,b);return null!=c?c:[]};function VL(){this.g="Ads by Google";this.j="http://www.google.com/adsense/support";this.k=0};function WL(a,b,c,d,e,g,h,k,l){SL.call(this,l);this.o=a;this.A=b;this.j=c;this.k=e;this.B=g;this.C=h}z(WL,SL);function XL(){}XL.prototype.parse=function(a){var b;lL(a,"config",function(a){null!=b||(b=YL(this,a))},this);return b};function YL(a,b){var c;C(ud(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new VL:null;break;case "params":null!=c&&ZL(this,c,a)}},a);return c}function ZL(a,b,c){C(ud(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.j=c;break;case "attribution_text":b.g=c;break;case "signals":b.k=parseInt(c,10)}},a)};function $L(){}
$L.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;C(ud(a),function(a){switch(a.nodeName){case "AttributionText":b=Z(a);break;case "AttributionUrl":c=Z(a);break;case "ConversionUrl":e=Z(a);break;case "CustomTracking":null!=ud(a)&&(d=OL(a));break;case "PreviousAdInformation":Z(a);break;case "VisibleUrl":g=Z(a);break;case "UI":h=(new XL).parse(a);break;case "ShowYouTubeAnnotations":var n=Z(a);k=oL(B(n),!1);case "QueryId":Z(a)}},this);null!=h||(h=new VL);return new WL(b,c,e,0,
g,h,k,0,d)};function aM(a,b){SL.call(this,b);this.j=a}z(aM,SL);function bM(){}bM.prototype.parse=function(a){if(null==a)return null;var b;C(ud(a),function(a){switch(a.nodeName){case "CustomTracking":null!=ud(a)&&(b=OL(a))}});a=null;null!=b&&0<KL(b,"skip").length&&(a="Generic");return new aM(a,b)};function cM(){}cM.prototype.parse=function(a){if(null==a)return null;var b,c;C(ud(a),function(a){switch(a.nodeName){case "SkippableAdType":b=Z(a);break;case "CustomTracking":null!=ud(a)&&(c=OL(a))}});return new aM(b,c)};function dM(){}dM.prototype.parse=function(a){if(null==a)return null;var b;C(ud(a),function(a){switch(a.nodeName){case "CustomTracking":null!=ud(a)&&(b=OL(a))}},this);return new SL(b)};function eM(a){SL.call(this);this.j=a}z(eM,SL);function fM(){}fM.prototype.parse=function(a){a=Cy(a);return A(B(a))?null:new eM(a)};function gM(a){SL.call(this);this.j=a}z(gM,SL);function hM(){SL.call(this)}z(hM,SL);function iM(){}iM.prototype.g={Hw:"TEMPLATE_PARAMETERS",Iw:"TEMPLATE_URL"};iM.prototype.parse=function(a){if(null==a)return null;C(ud(a),function(a){switch(a.nodeName){case this.g.Hw:jM(this,a)}},this);return new hM};function jM(a,b){C(ud(b),function(a){a.nodeName==this.g.Iw&&Z(a)},a)};function kM(a,b,c,d){SL.call(this);this.k=a;this.o=b;this.A=c;this.j=d}z(kM,SL);function lM(){}lM.prototype.g={Aw:"Line1",Bw:"Line2",Cw:"Line3",zw:"ImageUrl"};lM.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;C(ud(a),function(a){switch(a.nodeName){case this.g.Aw:b=Z(a,!0);break;case this.g.Bw:c=Z(a,!0);break;case this.g.Cw:d=Z(a,!0);break;case this.g.zw:e=Z(a)}},this);return new kM(b,c,d,e)};function mM(a){SL.call(this);this.j=a}z(mM,SL);function nM(){}nM.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Za(a):NaN;a=isNaN(a)?-1:a;return new mM(a)};function oM(){SL.call(this)}z(oM,SL);function pM(){}pM.prototype.parse=function(a){return null!=a?new oM:null};function qM(a){SL.call(this);this.j=isNaN(a)?-1:a}z(qM,SL);function rM(){}rM.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Za(a):NaN;return new qM(a)};function sM(a,b,c,d){this.pa=a;this.g=Sb(c||0,0,1);this.j=null!=d?d:!0}sM.prototype.getId=function(){return this.pa};function tM(a){this.pa=a;this.j=new ve;this.g=null}function uM(a){var b=Math.random(),c=0,d=a.j.La();C(d,function(a){c+=a.g},a);var e=1<c?c:1;a.g=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].g,g/e>=b){a.g=d[h];break}};function vM(){this.g=new ve;wM(this,41351021,.1);wM(this,41351022,.1);wM(this,41351068,.01);wM(this,41351069,.01);xM(this)}var yM=null;function zM(){yM||(yM=new vM);return yM}function wM(a,b,c){A(B("GvnExternalLayer"))||isNaN(b)||0>=b||(b=new sM(b,0,c),AM(a,"GvnExternalLayer").j.set(b.getId(),b))}function xM(a){C(a.g.La(),function(a){uM(a)},a)}function BM(a,b,c){C(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||A(B(g))||(a=null!=c?c:!0,g=AM(this,g),b=new sM(b,0,0,a),g.g=b)},a)}
function CM(a){var b=zM();return kb(b.g.La(),function(b){return!!b.g&&b.g.getId()==a})}function DM(a){var b=[];C(a.g.La(),function(a){(a=a.g)&&a.j&&b.push(a.getId())});return b.sort().join(",")}function AM(a,b){var c=a.g.get(b);null==c&&(c=new tM(b),a.g.set(b,c));return c};function EM(a){if(CM(947225)){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.j=b.title,this.g=gc(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}else FM(this,a)}EM.prototype.videoCount=0;
function FM(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&kb(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.j=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.g=c[0].url)}}};function GM(a){if(CM(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.g="unlisted"!=a.privacyStatus}}else HM(this,a)}GM.prototype.g=!0;
function HM(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&kb(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=D(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.g="denied"!=c.permission)}}};function IM(){}var JM={Vo:"Image",Yx:"Flash",Qx:"All"},KM={HTML:"Html",nB:"IFrame",rC:"Static",Qx:"All"},LM={oB:"IgnoreSize",fC:"SelectExactMatch",gC:"SelectNearMatch"};function MM(){P.call(this);this.j=new ve;this.k=null;this.A=new aj(this);O(this,this.A);this.g=null;this.o=!1}z(MM,P);var NM=null;function OM(){null!=NM||(NM=new MM);return NM}MM.prototype.init=function(a){this.o||(this.k=a,this.A.listen(this.k,"activityMonitor",this.B),this.o=!0)};
function PM(a,b,c,d){if(a.o){var e=a.j,g=window.setTimeout(function(){d("");C(e.Ea(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};h.isFullscreen=a.C.jd();h.osdId=a.D;h.queryId=c;h.timeoutId=g;h.vastEvent=b;h.isOverlay=null!=a.g;a.g&&(b=gJ(a.g),h.left=b.left,h.top=b.top,h.width=b.width,h.height=b.height);a.k.send("activityMonitor","reportVastEvent",h)}else d("")}MM.prototype.destroy=function(){this.A.ya(this.k,"activityMonitor",this.B);this.o=!1};
MM.prototype.B=function(a){var b=a.zc,c=b.viewabilityString;switch(a.Mb){case "viewableImpression":a={};a.queryId=b.queryId;a.viewabilityString=c;OM().T(new mF("viewable_impression",null,a));break;case "viewability":if(b=b.timeoutId,window.clearTimeout(b),a=this.j.get(b))this.j.remove(b),a(c)}};function WK(a){if(null==a||0>=a.width||0>=a.height)throw xG(WF,null,"ad slot size",a.toString());this.j=a;this.g=new IM;this.A=QM(KM,this.g.k)?this.g.k:"All";this.o=QM(JM,this.g.creativeType)?this.g.creativeType:"All";this.C=QM(LM,this.g.o)?this.g.o:"SelectExactMatch";this.k=null!=this.g.j?this.g.j:[];this.B=ia(this.g.g)&&0<this.g.g&&100>=this.g.g?this.g.g:90}
function VK(a,b){var c=[];C(b,function(a){!A(B(a.g.o))&&(isNaN(a.g.g)||isNaN(aL(a))||aL(a)==a.g.g)&&RM(this,a)?c.push(a):(a=SM(this,a),null!=a&&!A(B(a.g.o))&&c.push(a))},a);return c}
function RM(a,b){var c;if(c="Flash"!=b.getContentType()||pH){if(c="All"==a.A||a.A==b.g.ua)c=b.getContentType(),c=null!=c?"All"==a.o||a.o==c:!0;c&&(c=b.k,c=qb(a.k)?!0:null!=c?0<=fb(a.k,c):!1)}c?(c=b.g.Tb(),c="IgnoreSize"==a.C||Vb(a.j,c)?!0:"SelectNearMatch"==a.C&&(c.width>a.j.width||c.height>a.j.height||c.width<a.B/100*a.j.width||c.height<a.B/100*a.j.height?!1:!0)):c=!1;return c}function SM(a,b){var c=b.j;return null!=c?D(c,function(a){return RM(this,a)},a):null}
function QM(a,b){return null!=b&&hc(a,b)};function TM(a){K.call(this,a);this.j=new ve;a=this.rb;var b=a.indexOf(";"),c=null;0<=b?(Ye(this,a.substring(0,b)),c=a.substring(b+1)):Ye(this,a);UM(this,c)}z(TM,K);TM.prototype.toString=function(){return VM(this,TM.J.toString.call(this))};TM.prototype.Ze=function(){return""};function UM(a,b){A(B(b))||C(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Ba(a.substring(0,b));a=Ba(a.substring(b+1));b=this.j.get(e);null!=b?E(b,a)||b.push(a):b=[B(a)];this.j.set(e,b)}},a)}
function WM(a){if(A(B("ord")))return null;a=a.j.get("ord");return null!=a?a:null}function XM(a,b,c){A(B(b))||(c=ib(c,B),a.j.set(b,c))}function VM(a,b){var c=[B(b)];xb(c,YM(a));return c.join(";")}function YM(a){var b=WM(a);null!=b?A(B("ord"))||a.j.remove("ord"):b=[B(y())];var c=[];C(a.j.Ea(),function(a){C(this.j.get(a),function(b){xb(c,a+"="+b)})},a);xb(c,"ord="+b[0]);XM(a,"ord",b);return c}TM.prototype.clone=function(){return new TM(this.toString())};function ZM(a){a=a.adTagUrl;if(null==a)return!1;a=new K(a);var b=a.rb;return xa(a.$a,"googleads.g.doubleclick.net")&&$M("/pagead/ads",b)}function aN(a){a=a.adTagUrl;if(null==a)return!1;a=new K(a);var b=a.rb;return xa(a.$a,"doubleclick.net")&&$M("/gampad/ads",b)}function bN(a){a=a.adTagUrl;if(null==a)return!1;var b=new TM(a);a=b.$a;b=VM(b,b.rb);return!xa(a,".g.doubleclick.net")&&xa(a,"doubleclick.net")&&$M("/(ad|pfad)[x|i|j]?/",b)}
function cN(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==gf(new K(a)):!1}function $M(a,b){return A(B(b))?!1:(new RegExp(a)).test(b)};function dN(){this.g=this.k=1;this.A=this.j=0;this.o=1};function eN(){this.D={};this.W="";this.De=new GL}eN.prototype.fk=function(){return null};function fN(a,b,c){a.W=b;a.D=c}eN.prototype.Se=function(a){this.Z=a};eN.prototype.getAd=function(){return this.Z};function gN(a,b){var c=[],d=a.I();C(d,function(a){a=KL(a.De,b)||[];c=vb(a,c)},a);return c}eN.prototype.I=function(){for(var a=[this],b=this.Z.j;b;){var c=hN(this,b)||hN(this,b,!0);null!=c&&a.push(c);b=b.j}return a};
function hN(a,b,c){var d=c||!1;return D(b.o,function(a){var b=a.g==this.g;return a instanceof this.constructor&&(d||b)},a)};function iN(a,b,c,d,e,g){eN.call(this);this.aa=a;this.k=b;this.j=c;this.G=wb(d);this.da=this.oa=null;this.o=e;this.Ta=wb(g);Ab(this.Ta,null,function(a){return a.F})}z(iN,eN);iN.prototype.qc=function(){return this.k};function jN(a){var b=new ve,c=a.I();C(c,function(a){if(a instanceof iN){var c=a.j;C(c.Ea(),function(a){b.set(a,vb(c.get(a),b.get(a)||[]))},this)}},a);return b}
iN.prototype.getMediaUrl=function(a){var b="";kb(this.G,function(c){var d=c.j;return!A(B(a))&&a!=c.g||null==d||A(B(d))?!1:(b=d,!0)},this);return b};iN.prototype.setMediaUrl=function(a){this.da=a};iN.prototype.fk=function(){var a=D(this.G,function(a){return!A(B(a.g))&&-1!=a.g.indexOf("javascript")&&("VPAID"==a.o||"surveys"==a.o)});return null!=a?a.j:null};function kN(a,b,c){N.call(this);this.j=a;this.k=b;this.o=c;this.B=0;this.g=new aj(this);lN(this)}z(kN,N);function lN(a){a.o.forEach(function(a,c){this.g.listen(c,"mousedown",this.C);this.g.listen(c,"mouseup",this.F)},a);a.g.listen(a.k,"mouseover",a.D)}kN.prototype.C=function(){this.A=y()};
kN.prototype.F=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.j&1&&c.push("nm="+this.B);this.j&2&&c.push("nb="+this.o.get(b));if(this.j&8){var d=Wd(this.k);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.j&16&&null!=this.A&&c.push("clkt="+(y()-this.A));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};kN.prototype.D=function(){this.B++};kN.prototype.K=function(){kN.J.K.call(this);this.g.dispose()};function mN(a,b,c,d,e){eN.call(this);A(B(a))&&(a=Ya()+"_ima");this.pa=B(a);this.ta=b;this.ua=c;this.P=d;this.o=e;this.U=[];null!=this.P?this.Y=uF[this.P]||"Other":this.Y=null}z(mN,eN);f=mN.prototype;f.getContent=function(){var a;a=this.fc();if("outerHTML"in a)a=a.outerHTML;else{var b=Zc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.Y};f.Tb=function(){return this.ta};f.sc=function(){return this.Tb().width};f.getHeight=function(){return this.Tb().height};
f.fk=function(){return"VPAID"==this.F?this.o:null};f.qc=function(){return this.N};function nN(a,b,c,d,e){mN.call(this,a,b,c,d,e);this.ja=-2;this.k=null;this.L=this.H=ba;this.O=[];this.ka=!0;this.R=[];this.C=!1}z(nN,mN);function oN(a,b){a.k=b;null!=a.j&&null!=b&&(pN(a,a.H),qN(a,a.L))}function pN(a,b){null!=a.k&&null!=a.j&&C(a.O,function(a){this.k.ya(a,"click",this.H);A(B(this.qc()))||this.k.listen(a,"click",b)},a);a.H=b}function qN(a,b){null!=a.k&&null!=a.j&&(a.k.ya(a.j,"creativeview",a.L),a.k.listen(a.j,"creativeview",b));a.L=b}
function rN(a){C(a.R,function(a){sd($c(a))},a);a.R=[]}nN.prototype.A=function(a){null==this.k||A(B(this.qc()))||(this.k.listen(a,"click",this.H),this.O.push(a))};nN.prototype.fc=function(){null==this.j&&(this.j=this.qe(),pd(this.j,sN(this)));null!=this.k&&this.k.listen(this.j,"creativeview",this.L);return this.j};
function tN(a,b){var c=a.pa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.sc()+"px");A(B(c))||(d.id=c);return J("div",d,b)}nN.prototype.Ao=function(){return 2};
function sN(a){if(!a.ka)return null;var b=gN(a,"start");xb(b,gN(a,"creativeview"));if(null!=b&&!qb(b)){var c=[];C(b,function(a){if(!A(B(a))){var b;b=Xc().lw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Md(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",HF(a.g));b.setAttribute("id",g);this.R.push(g);sb(c,b)}},a);return c}return null}
function uN(a,b){if(null!=a.j){var c=new ve;C(a.O,function(a){c.set(a,this.Ao(a))},a);new kN(b,a.j,c)}}function vN(a){var b=[],c=a.I();C(c,function(a){b=vb(b,a.U)},a);return b}nN.prototype.I=function(){var a=[this],b;for(b=this.getAd().j;b;){var c=this.C?hN(this,b)||hN(this,b,!0):wN(this,b)||wN(this,b,!0);null!=c&&a.push(c);b=b.j}return a};function wN(a,b,c){var d=c||!1;return D(b.o,function(a){var b=a.g==this.g;return this instanceof a.constructor&&(d||b)},a)};function LK(a,b,c,d,e,g,h,k,l,n,r,v,s,w,R,da){P.call(this);this.U=a;this.I=b;this.P=c;this.Ca=d;this.Y=new aj(this);this.Y.listen(X.j?eJ():OM(),"viewable_impression",this.Ep);this.ja=isNaN(h)||""==h||0==h?-1:h;this.N=k?wb(k):[];this.L=l?wb(l):[];this.o=n?wb(n):[];this.R=r?wb(r):[];this.B=[];C(this.R,function(a){xb(this.B,wb(a.g))},this);this.da=!0;this.j=this.g=null;this.C=new ve(v);this.O=null!=da;this.ta=(this.D=null!=s)?w||!1:!1;this.wa=this.Fp?R||!1:!1;this.Aa=B(s);this.Ba=B(da);this.oa=this.k=
null;this.A=new dN;this.aa=new G(0,0);this.Z=String(Math.floor(1E9*Math.random()));this.F=this.H=this.G=null;C(vb(this.o,this.B),function(a){a.Se(this)},this);X.g&&xN(this)&&(this.B=hb(this.B,function(a){return 60>=a.getHeight()}))}z(LK,P);function yN(a){var b;b=zN(a)?AN(a)?"2_1":"2_2":"2";return(BN(a,wF)||BN(a,yF)?1:BN(a,vF)?2:0)+"_"+b}function CN(a){return null!=a.I?a.I:""}function DN(a){return null!=a.j?vb(DN(a.j),a.N):a.N}function EN(a){return null!=a.j?vb(EN(a.j),a.L):a.L}f=LK.prototype;
f.getContentType=function(){var a=this.g,b="";if(null===a)return b;if(a instanceof iN)a=a.oa,null===a||(b=B(a.g));else if(a instanceof nN)switch(a.ua){case "IFrame":case "Html":case "Static":b=B(a.P)}return b};function UK(a){return null!=a.j?vb(a.B,UK(a.j)):a.B}function KN(a){return null!=a.g?a.g.W:""}f.getExtension=function(a){return this.C.get(a)};function LN(a,b){a.g=b;a.aa=null!=a.g&&a.g instanceof nN?a.g.Tb():new G(0,0)}function MN(a){return a.g}
f.Ep=function(a){a.k.queryId==this.Z&&this.T(new mF("viewable_impression",this,a.k))};function NN(a){return null!=a.U?a.U:""}function ON(a){if(null==a.j)return[];var b=[NN(a.j)];xb(b,ON(a.j));return b}function PN(a){var b=ON(a).reverse();b.push(NN(a));return b}function QN(a){if(null==a.j)return[];var b=[CN(a.j)];xb(b,QN(a.j));return b}function RN(a){var b=QN(a).reverse();b.push(CN(a));return b}function TK(a){if(null==a.j)return[a.P];var b=TK(a.j);b.push(a.P);return b}
function SN(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.j?a.j:-1}function TN(a){if(-1!=a.ja)return a.ja;a=a.getExtension("pod");return null!=a&&-1!=a.j?a.j:-1}function $K(a,b){return b||null==a.j?a.R:vb(a.R,$K(a.j))}function UN(a,b){return kb(a.o,function(a){return a instanceof iN&&"linear"==b||a instanceof nN&&"nonlinear"==b?!0:!1})}function xN(a){return VN(a)?"video"==a.Ca:UN(a,"linear")}function zN(a){return null!=WN(a)}
function XN(a,b){var c=WN(a);if(!c)return null;FL(c,b);return EL(c)}function WN(a){if(CM(919139)||CM(919140))return new DL(0,!1);var b=new DL(5,!1),c=YN(a);if("implicit"==c)return b;a=a.g;var d=null;null!=a&&a instanceof iN&&(d=a.o);null!=d||"explicit"!=c||(d=b);return null!=d&&X.g?b:d}
function YN(a){if(null!=D(a.C.La(),function(a){return!qb(UL(a,"skip"))}))return"implicit";var b=a.C.get("DFP");if(b instanceof aM)switch(b.j){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.g;return null==a||(a=a.De,null==a||qb(KL(a,"skip")))?"none":"explicit"}function ZN(a){return null!=a.k&&(ZM(a.k)||aN(a.k)||bN(a.k))}
function AN(a){if(null==a.I||null==a.k)return!1;var b;(b=ZN(a)||!1)&&!(b=VN(a)&&!$N(a,["ADSENSE/ADX"]))&&($N(a,yF)?(b=a.C.get("DFP"),b=null!=b?"InstreamSelect"==b.j:!1):b=!1);if(b||a.j&&a.j.O&&ZN(a.j))return!0;a=BN(a,["ADSENSE/ADX"])||a.j&&BN(a,vF);return X.g&&!a}f.Fp=function(){return this.D};function aO(a){return null===a.g?null:a.g.qc()}function bO(a){return null==a.g||a.g instanceof nN?-1:a.g.aa}function cO(a){return null===a.g?null:a.g.fk()}function VN(a){return $N(a,vF)}f.getHeight=function(){return this.aa.height};
function dO(a){return a.G}f.toString=function(){return"Ad: "+this.U};function $N(a,b){return null!=a.I?E(b,a.P):!1}function BN(a,b){for(var c=TK(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(E(b,c[d]))return!0;break}return!1}f.K=function(){null!=this.Y&&this.Y.dispose();LK.J.K.call(this)};function eO(a,b){this.g=a;this.j=b};function fO(a,b,c){this.g=a;this.j=b;this.k=c}fO.prototype.getContent=function(){return this.g.getContent()};fO.prototype.getContentType=function(){return this.g.getContentType()};fO.prototype.getHeight=function(){return this.g.getHeight()};function aL(a){a=MN(a.g.getAd());return null!=a?a.g:NaN}fO.prototype.Se=function(a){this.g.Se(a);C(this.j,function(b){b.Se(a)},this)};function gO(a,b,c){this.j=a;this.g=b;this.k=c}gO.prototype.getContentType=function(){return null!=this.g?uF[this.g]||"Other":null};H&&Rc(8);function hO(){};var iO={},jO={},kO={};function lO(){throw Error("Do not instantiate directly");}lO.prototype.$c=null;lO.prototype.getContent=function(){return this.content};lO.prototype.toString=function(){return this.content};function mO(a,b){var c=Xc().createElement("DIV"),d=nO(a(b||oO,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function nO(a){if(!ka(a))return String(a);if(a instanceof lO){if(a.kc===iO)return a.getContent();if(a.kc===kO)return Ca(a.getContent())}return"zSoyz"}var oO={};function pO(a){if(null!=a)switch(a.$c){case 1:return 1;case -1:return-1;case 0:return 0}return null}function qO(){lO.call(this)}z(qO,lO);qO.prototype.kc=iO;function rO(a){return null!=a&&a.kc===iO?a:a instanceof Rs?sO(Ts(a),a.Lf()):sO(Ca(String(String(a))),pO(a))}function tO(){lO.call(this)}z(tO,lO);tO.prototype.kc={};tO.prototype.$c=1;function uO(){lO.call(this)}z(uO,lO);uO.prototype.kc=jO;uO.prototype.$c=1;function vO(){lO.call(this)}z(vO,lO);vO.prototype.kc={};vO.prototype.$c=1;
function wO(){lO.call(this)}z(wO,lO);wO.prototype.kc={};wO.prototype.$c=1;function xO(a,b){this.content=String(a);this.$c=null!=b?b:null}z(xO,lO);xO.prototype.kc=kO;function yO(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var sO=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.$c=d);return e}}(qO);yO(tO);yO(uO);var zO=yO(vO);yO(wO);
(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.$c=d);return e}})(qO);var AO=/['()]/g;function BO(a){return"%"+a.charCodeAt(0).toString(16)}function CO(a){if(null!=a&&a.kc===jO)return String(a).replace(DO,EO);if(a instanceof Os)return a=Qs(a),String(a).replace(DO,EO);a=Aa(String(a));AO.lastIndex=0;return AO.test(a)?a.replace(AO,BO):a}var FO={};
function GO(a){FO[1]||(FO[1]=new hO);var b=pO(a);if(null==b){var c=b=0,d=!1;a=ys(a+"",null!=a&&a.kc===iO).split(Es);for(var e=0;e<a.length;e++){var g=a[e];Bs.test(ys(g,void 0))?(b++,c++):Cs.test(g)?d=!0:As.test(ys(g,void 0))?c++:Fs.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return zO(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var HO={"\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 EO(a){return HO[a]}var DO=/[\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 IO(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+rO(a.Cc)+'"><img src="'+rO(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+rO(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+rO(a.Cc)+'" target="_blank" dir='+rO(a.dir)+">"+rO(a.title)+'</a><div class="text-description" dir='+rO(a.dir)+">"+rO(a.text)+"</div>"+(a.Bn?'<a target="_blank" href="'+
rO(a.Cc)+'" class="text-ad-channel">'+rO(a.Bn)+"</a>":"")+"</div></div>"}
function JO(a){return'<div class="flash-container '+(a.Be?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+rO(a.Cc)+'"></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="'+rO(a.width)+'" height="'+rO(a.height)+'"><param name="movie" value="'+rO(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+CO(a.Cc)+
'"><embed width="'+rO(a.width)+'" height="'+rO(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+rO(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+CO(a.Cc)+'"></object></div>'}function KO(a){return'<div class="image-container" id="'+rO(a.id)+'" style="width:'+rO(a.width)+";height:"+rO(a.height)+'"><a target="_blank" href="'+rO(a.Cc)+'"><img src="'+rO(a.url)+'" border="0"></a></div>'};function LO(a,b,c,d){nN.call(this,a,b,"Static",c,d);this.Un=!1}z(LO,nN);LO.prototype.qe=function(){var a=this.F,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:HF(B(this.o)),width:this.sc(),height:this.getHeight(),Cc:this.qc(),Be:this.Un||!a},a=mO(JO,a);a.style.width=this.sc()+"px";a.style.height=this.getHeight()+"px";a.id=this.pa;C(a.getElementsByTagName("object"),this.A,this);C(a.getElementsByTagName("a"),this.A,this);return a};function MO(a,b,c,d){nN.call(this,a,b,"Html",c,d)}z(MO,nN);MO.prototype.qe=function(){var a=J("div");a.innerHTML=this.o;this.A(a);return tN(this,a)};function NO(a,b,c,d){nN.call(this,a,b,"Static",c,d)}z(NO,nN);NO.prototype.getContent=function(){var a=NO.J.getContent.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+HF(B(this.o))+'"'));return a};NO.prototype.qe=function(){var a="";this.C||(a=HF(B(this.o)));a={id:this.pa,url:a,Cc:this.qc(),width:this.sc()+"px",height:this.getHeight()+"px"};a=mO(KO,a);C(a.getElementsByTagName("a"),this.A,this);return a};function OO(a,b){nN.call(this,a,b,"Static","text","")}z(OO,nN);f=OO.prototype;f.Tb=function(){return new G(this.sc(),this.getHeight())};f.getHeight=function(){return 63};f.sc=function(){return null!=this.B?fe(this.B).width:0};f.Ao=function(a){return tf(a,"text-image")?9:tf(a,"text-ad-channel")?1:0};
f.qe=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.k,e="rtl";null!=d&&(e=zs.test(ys(d,void 0))?"rtl":"ltr");d={title:d,text:c.o+" "+c.A,dir:e,Cc:this.qc()};if(c=c.j)d.image=HF(c),a=D(a.o,function(a){return a instanceof iN}),null!=a&&(d.duration=yL(a.aa));b.k&&(d.Bn=b.k);this.B=mO(IO,d);C(this.B.getElementsByTagName("a"),this.A,this);this.B.id=this.pa;this.B.style.height=this.getHeight()+"px";return this.B};function PO(a,b,c,d,e){nN.call(this,a,b,c,d,e)}z(PO,nN);PO.prototype.qe=function(){var a=B(this.o);A(B(this.qc()))||(a=new K(a),lf(a,"clickTAG",Aa(this.qc())),a=a.toString());var b=J("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.sc());b.setAttribute("src",HF(a));this.A(b);return tN(this,b)};function QO(a,b,c){if(qb(c))return new nN(a,b,"",null,"");var d=RO(c);c=d.j;var e=d.g,d=d.k;switch(c){case "Html":return new MO(a,b,e,d);case "Static":switch(uF[e]){case "Image":return new NO(a,b,e,d);case "Flash":return new LO(a,b,e,d);case "Text":return new OO(a,b)}}return new PO(a,b,c,e,d)}
function RO(a){var b=D(a,function(a){return"Static"==a.j&&"Flash"==uF[a.g]}),c=D(a,function(a){return"IFrame"==a.j}),d=D(a,function(a){return"Html"==a.j}),e=D(a,function(a){return"Static"==a.j&&"Image"==uF[a.g]}),g=D(a,function(a){return"Static"==a.j&&"Text"==uF[a.g]});return pH&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function SO(a,b,c,d,e){var g=RO(e),h=QO(a.id,a.size,[g]);h.C=!0;h.F=a.apiFramework;h.N=b;h.g=c;d&&(h.De=d);tb(e,g);var k=[];C(e,function(e){e=QO(a.id,a.size,[e]);e.C=!0;e.F=a.apiFramework;e.N=b;e.g=c;d&&(e.De=d);k.push(new fO(e,[],a.adSlotId))});return new fO(h,k,a.adSlotId)};function TO(a,b,c,d,e,g,h){this.k=a;this.F=b;this.A=c;this.B=d;this.j=e;this.C=g;this.D=h;this.g=this.k.qe()}TO.prototype.fc=function(){return this.g};
TO.prototype.display=function(a){this.o=a;this.o.appendChild(this.g);a=this.g;var b=de(this.o),b="left"==this.A?"0px":"right"==this.A?b.width-this.k.Tb().width+"px":this.A+"px",c;c=de(this.o);c="bottom"==this.B?"0px":"top"==this.B?c.height-this.k.Tb().height+"px":c.height-this.k.Tb().height-bb(this.B)+"px";Md(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});he(this.g,!1)};
TO.prototype.update=function(a,b){var c=null!=this.C?EL(this.C):0;this.j=0<=this.j?this.j:b;c<=a&&c+this.j>=a?UO(this):he(this.g,!1)};function UO(a){"none"==a.g.style.display&&(he(a.g,!0),C(a.D,function(a){JF(a)}))};function VO(a,b,c,d,e,g,h,k,l,n){b=QO("icon"+a,b,n);b.F=h;b.N=k.iconClickThrough;return new TO(b,a,c,d,e,g,l)};function WO(a){this.o=a;this.logger=null}z(WO,gL);
WO.prototype.g={Eu:"Ad",Nj:"AdParameters",qv:"AdSystem",rv:"AdTitle",Ey:"Advertiser",sw:"AltText",Mv:"ClickThrough",Nv:"ClickTracking",Qv:"Companion",Jv:"CompanionAds",tw:"CompanionClickThrough",uw:"CompanionClickTracking",Kv:"Creative",mA:"CreativeExtensions",tv:"Creatives",Ov:"CustomClick",uv:"Description",Sj:"Duration",ERROR:"Error",Pv:"Extension",vv:"Extensions",ih:"HTMLResource",Gw:"Icon",Bv:"Icons",hv:"IconClicks",Ew:"IconClickThrough",Fw:"IconClickTracking",iv:"IconViewTracking",jh:"IFrameResource",
Kn:"Impression",rB:"InLine",LINEAR:"Linear",Dv:"MediaFile",Ev:"MediaFiles",yw:"NonLinear",Lv:"NonLinearAds",Mu:"NonLinearClickThrough",Nu:"NonLinearClickTracking",VB:"Pricing",kh:"StaticResource",Vj:"Survey",CC:"Tracking",Uj:"TrackingEvents",KC:"VAST",xv:"VASTAdTagURI",Hv:"VideoClicks",yv:"Wrapper"};
WO.prototype.j={Vw:"adSlotID",sv:"allowMultipleAds",hh:"apiFramework",zv:"bitrate",Iv:"creativeType",Av:"delivery",Sj:"duration",cB:"event",wv:"followAdditionalWrappers",Ww:"expandedHeight",Xw:"expandedWidth",Qj:"height",Jj:"id",Ku:"maintainAspectRatio",Cv:"maxBitrate",Fv:"minBitrate",Lu:"minSuggestedDuration",jv:"offset",kv:"program",Rv:"required",Ou:"scalable",nn:"sequence",Gv:"skipoffset",Jn:"type",VERSION:"version",Rj:"width",lv:"xPosition",mv:"yPosition"};
function XO(a){if(null==a)return!1;a=vd(a);return null!=a&&"VAST"==a.nodeName}function YO(a){var b=[];lL(vd(a.o),a.g.Eu,function(a){var d;d=ZO(a);if(null==d)throw hL(a);var e=a.getAttribute(this.j.Jj);a=Number(a.getAttribute(this.j.nn));d=$O(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}WO.prototype.k=function(){return new pL(this.o,YO(this),null)};function ZO(a){var b=null;C(ud(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw hL(a);}});return b}
function $O(a,b,c,d){var e,g,h=[],k=[],l=[],n=[],r=new ve,v,s=b.nodeName==a.g.yv,w=s,R=s,da;C(ud(b),function(a){switch(a.nodeName){case this.g.xv:if(s){if(null!=v)throw iL(a);v=Z(a);da=RL(v);w=oL(b.getAttribute(this.j.sv),w);R=oL(b.getAttribute(this.j.wv),R)}else throw hL(a);break;case this.g.qv:e=Z(a);break;case this.g.rv:g=Z(a);break;case this.g.uv:Z(a);break;case this.g.Vj:Z(a);break;case this.g.Kn:a=Z(a);PL(a)&&h.push(BL(a));break;case this.g.ERROR:a=Z(a);k.push(BL(a));break;case this.g.tv:a=
aP(this,a);l=a.creatives;n=a.nv;break;case this.g.vv:r=bP(this,a,da)}},a);return new LK(B(c),e,cP(e),g,0,0,d,k,h,l,n,r,v,w,R,dP(r))}function dP(a){var b=null;a=a.get("AdSense");null!=a&&(a=UL(a,"vast2tracking"),null!=a&&!qb(a)&&(b=a[0]));return b}function cP(a){if(A(B(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 eP(a){if(A(B(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function bP(a,b,c){var d=new ve;try{var e=jL(b,a.g.Pv);C(e,function(a){var b=a.getAttribute(this.j.Jn);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new pM).parse(a);break;case "pod":a=(new nM).parse(a);break;case "waterfall":a=(new rM).parse(a);break;case "dart":a=(new bM).parse(a);break;case "dfp":b="DFP";a=(new cM).parse(a);break;case "adsense":b="AdSense";a=(new $L).parse(a);break;case "textad":b="TextAd";a=(new lM).parse(a);break;case "templatead":b="TemplateAd";a=(new iM).parse(a);break;
case "infocards":var b="InfoCards",e=new fM;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new fM;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=jL(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+Cy(vd(a[0]))),a=new gM(e)):a=null;break;default:e=new dM,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(TL(e,a.g),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function aP(a,b){var c=[],d=[];lL(b,a.g.Kv,function(a){var b=a.getAttribute(this.j.nn),h;A(B(b))||(h=parseFloat(b));var k=!1;C(ud(a),function(a){switch(a.nodeName){case this.g.LINEAR:if(k)throw iL(a);a=fP(this,a,isNaN(h)?0:h);xb(c,a);k=!0;break;case this.g.Jv:if(k)throw iL(a);a=gP(this,a,isNaN(h)?void 0:h);xb(d,a);k=!0;break;case this.g.Lv:if(k)throw iL(a);a=hP(this,a,isNaN(h)?0:h);xb(c,a);k=!0}},this)},a);return{creatives:c,nv:d}}
function hP(a,b,c){var d=[],e=new GL;C(ud(b),function(a){switch(a.nodeName){case this.g.yw:a=iP(this,a,c);null!=a&&d.push(a);break;case this.g.Uj:e=OL(a);break;default:throw hL(a);}},a);0!=d.length||e.isEmpty()||(a=new nN(null,new G(-1,-1),"",null,""),a.g=c,d.push(a));C(d,function(a){e&&(a.De=e)});return d}
function jP(a,b){var c={};c.id=b.getAttribute(a.j.Jj);c.adSlotId=b.getAttribute(a.j.Vw);c.apiFramework=b.getAttribute(a.j.hh);var d=Za(b.getAttribute(a.j.Rj)),e=Za(b.getAttribute(a.j.Qj));c.size=new G(d,e);d=b.getAttribute(a.j.Xw);e=b.getAttribute(a.j.Ww);A(B(d))||A(B(e))||(c.uy=new G(Za(d),Za(e)));return c}
function iP(a,b,c){var d=jP(a,b);b.getAttribute(a.j.hh);b.getAttribute(a.j.Ou);b.getAttribute(a.j.Ku);var e=b.getAttribute(a.j.Lu),e=nL(e,-1),g=[];new ve;var h={},k="",l,n=[];C(ud(b),function(a){switch(a.nodeName){case this.g.Nu:n.push(Z(a));break;case this.g.Mu:l=Z(a);break;case this.g.Nj:h=kP(a);k=B(Z(a));break;case this.g.jh:case this.g.kh:case this.g.ih:g.push(lP(this,a));break;default:throw hL(a);}},a);a=QO(d.id,d.size,g);fN(a,k,h);a.F=d.apiFramework;a.N=l;a.U=n;a.ja=e;a.g=c;return a}
function lP(a,b){var c=kL(b,a.j.Iv),d;t:switch(d=b.nodeName,d){case a.g.kh:d="Static";break t;case a.g.jh:d="IFrame";break t;case a.g.ih:d="Html";break t;default:throw W(pG,null,d);}var e=Z(b);null!=e||(e="");return new gO(d,c,e)}function gP(a,b,c){var d=[],e=eP(kL(b,a.j.Rv));lL(b,a.g.Qv,function(a){a=mP(this,a,c);null!=a&&d.push(a)},a);return new eO(d,e)}
function mP(a,b,c){var d=jP(a,b),e=[],g=new GL,h;C(ud(b),function(a){switch(a.nodeName){case this.g.uw:break;case this.g.Uj:g=OL(a,!0);break;case this.g.tw:h=Z(a);break;case this.g.sw:Z(a);break;case this.g.Nj:Z(a);break;case this.g.jh:case this.g.kh:case this.g.ih:e.push(lP(this,a));break;default:throw hL(a);}},a);return qb(e)?null:SO(d,h,c,g,e)}
function fP(a,b,c){var d=new GL,e={},g="",h=[],k,l=new ve,n=[],r=[],v,s=QL(kL(b,a.j.Gv));C(ud(b),function(a){switch(a.nodeName){case this.g.Bv:r=nP(this,a);break;case this.g.Nj:e=kP(a);g=B(Z(a));break;case this.g.Sj:v=nL(Z(a),0);break;case this.g.Uj:d=OL(a);break;case this.g.Ev:n=oP(this,a);break;case this.g.Hv:a=pP(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw hL(a);}},a);C(h,function(a){LL(d,"click",a)});a=new iN(v,k,l,n,s,r);fN(a,g,e);a.g=c;d&&(a.De=d);return a}
function pP(a,b){var c,d=[],e=new ve;C(ud(b),function(a){switch(a.nodeName){case this.g.Mv:c=Z(a);break;case this.g.Nv:a=Z(a);d.push(a);break;case this.g.Ov:var b=kL(a,this.j.Jj);null!=b||(b="");var k=e.get(b,[]);k.push(Z(a));e.set(b,k);break;default:throw hL(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function oP(a,b){var c=[];lL(b,a.g.Dv,function(a){var b=kL(a,this.j.Av),g=kL(a,this.j.Jn);Za(a.getAttribute(this.j.Rj));var h=Za(a.getAttribute(this.j.Qj)),k=a.getAttribute(this.j.hh),l=Z(a),n=mL(a.getAttribute(this.j.zv)),r=mL(a.getAttribute(this.j.Fv));a=mL(a.getAttribute(this.j.Cv));c.push(new uJ(b,g,n,r,a,0,h,l,k))},a);return c}function nP(a,b){var c=[];lL(b,a.g.Gw,function(a){a=qP(this,a);null!=a&&c.push(a)},a);return c}
function qP(a,b){var c=b.getAttribute(a.j.kv),d=kL(b,a.j.lv),e=kL(b,a.j.mv),g=Za(b.getAttribute(a.j.Rj)),h=Za(b.getAttribute(a.j.Qj)),g=new G(g,h),h=b.getAttribute(a.j.hh),k=QL(kL(b,a.j.jv)),l=b.getAttribute(a.j.Sj),l=nL(l,-1),n=[],r=[],v;C(ud(b),function(a){switch(a.nodeName){case this.g.iv:r.push(Z(a));break;case this.g.hv:v=rP(this,a);break;case this.g.jh:case this.g.kh:case this.g.ih:n.push(lP(this,a));break;default:throw hL(a);}},a);return qb(n)?null:VO(c,g,d,e,l,k,h,v,r,n)}
function rP(a,b){var c=[],d;C(ud(b),function(a){switch(a.nodeName){case this.g.Ew:d=Z(a);break;case this.g.Fw:c.push(Z(a));break;default:throw hL(a);}},a);return{iconClickThrough:d,ty:c}}function kP(a){a=Z(a);return null!=a?zL(a):{}};function sP(a,b){this.j=a;this.g=b}z(sP,gL);sP.prototype.k=function(){return new pL(this.j,null,tP(this))};function uP(a){var b=Ey(a);return qb(b)?[kL(a,"timeOffset")]:ib(b,function(a){return kL(a,"timeOffset")})}
function tP(a){var b=new tL;C(ud(vd(a.j)),function(a){if("vmap:AdBreak"==a.nodeName){var d=vP(this,a);a=uP(a);C(a,function(a,c){var h=nL(a);0<c&&(d=wP(this,d));if("start"==a||0==h)uL(b,d,0);else if("end"==a)uL(b,d,-1);else{if(-1==h)throw W(QF,null,"timeOffset",B(a));uL(b,d,h)}},this)}},a);if(0==b.g.Ea().length)throw W(XF);return b}function wP(a,b){return ib(b,function(a){var b=new rL(a.k.clone());b.g=a.g;b.j=a.j;return b},a)}
function vP(a,b){var c=[],d="",e=null,g=!1,h=!1;C(ud(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=Dy(a,"vmap:VASTData/VAST")||Dy(a,"vmap:VASTAdData/VAST"),!e)){var b=jL(a,"vmap:AdTagURI"),c="";b.length&&(c=B(Z(b[0])));if(A(c))throw W(uG,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=jL(a,"vmap:Extension"),a=xP(this,a),null!=a&&(g=!0,a=kL(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=yP(a,e):A(d)||(k=zP(a,d));k&&(k=new rL(k),k.g=g,k.j=
g&&!h,sb(c,k));return c}function xP(a,b){return D(b,function(a){return"bumper"==kL(a,"type")},a)}function zP(a,b){var c=a.g.clone();A(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function yP(a,b){var c=a.g.clone();c.adsResponse=Cy(b);c.adTagUrl="";return c};function AP(a,b){if(null!=a){var c;null!=a?(c=vd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new vL(a,b);null!=a?(c=vd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new sP(a,b);if(XO(a)){if(!XO(a))throw W($F);c=vd(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ia(d)?d:0);if(1>d||3<d)throw W(qG);c=jL(c,"Ad");if(qb(c))throw W(eG);c=ZO(c[0]);if(null==c)throw W(hG);if(1!=jL(c,"AdSystem").length)throw W(hG);return new WO(a)}}return null};function BP(){}f=BP.prototype;
f.clone=function(){var a=new BP;"auto"==this.Id?a.Id="auto":"click"==this.Id&&(a.Id="click");a.adTagUrl=this.adTagUrl;a.Cd=nc(this.Cd);a.adsResponse=this.adsResponse;a.gc=nc(this.gc);a.Xn=this.Xn;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.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Ff=this.Ff;a.mh=this.mh;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;this.g&&(a.g=wb(this.g));return a};f.Cd=null;f.gc=null;f.Id="unknown";f.Xn=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.Ff=!1;f.mh=!0;f.youTubeVideoAdStartDelay=0;f.Rm=!0;function CP(a,b){this.j=a;this.k=b;var c=a.g;X.g&&c&&BM(zM(),c,!1)}function DP(a,b){"auto"!=a.j.Id&&"click"!=a.j.Id||b.set("vpa",a.j.Id)}function EP(a,b){var c=a.k.A;null!=c&&b.set("js","ima-"+c)}function FP(a,b){b.set("osd",2);-1!=a.k.D&&b.set("frm",a.k.D)}function GP(a){return a.o(a.B())}function HP(a){return X.j?"h.3.0.0":null!=a.k?qK(a.k):null}CP.prototype.A=function(){var a=0;this.j.mh&&(a+=1);LG()&&(a+=4);return a};function IP(){this.g=["video"]}var JP={EC:"ultrahigh",iB:"high",GB:"medium"},KP={Iz:1E3,Jz:1001,Kz:1002,Lz:1003,Mz:1004,Nz:1005,Oz:1006},LP={Zx:1,Vx:2},MP={Tx:"content",jC:"site",kC:"site_content"};f=IP.prototype;f.Eg="high";f.Gi=!1;f.zi=1;f.Ai=null;f.adType="video";f.adBlock=1;f.Bi=null;f.Hi=null;f.Ci=!0;f.Di=null;f.Fi=null;f.nf=null;f.experimentIds=null;f.Ii=null;f.host=null;f.hostTierId=null;f.Ji=!1;f.language=null;f.jm=null;f.im=null;f.Fg=1E5;f.Hg=null;f.lm=null;f.km=null;f.Mi=0;f.oe=null;
f.Ig=null;f.Og=null;f.Ni=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Gg=null;f.Ki=null;f.Li=null;f.Ri=null;f.Oi=null;f.Pi=null;f.Qi=null;f.Ei=null;var NP=(new Date).getTime();var OP=[202,1009],PP=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function QP(a,b,c){var d={};a=new RP(a,p(b)?b:null,p(c)?c:null);SP(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.g?b.g:900;TP(d,a);UP(d,a);VP(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=fb(OP,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function WP(a,b){var c={},d=new RP(null,a,p(b)?b:null);SP(c,d);TP(c,d);UP(c,d);VP(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.g){var e=d.g.k;null!=e&&null!=e.Cd&&null!=e.Cd.video_start_delay?(e=e.Cd.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.g.A,c["[BREAK_TYPE]"]=0==e.j?"1":-1==e.j?"3":"2",c["[SLOT_POS]"]=e.g-1,0<e.A&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.A)))}XP(c,d);return c}
function RP(a,b,c){this.error=a;this.g=b;this.display=c}function YP(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function SP(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 TP(a,b){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.g&&(a["[VIEWABILITY]"]={toString:function(){var a;X.j?(a=eJ(),a=hJ(a,"metric",b.g.Z)):(OM(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}function UP(a,b){if(null!=b.g&&null!=b.g.k&&null!=b.g.k.gc&&X.g){var c=b.g.k.gc;C(PP,function(b){b in c&&(a[b]=c[b])})}}
function VP(a,b){if(null!=b.g){a["[AD_ID]"]=PN(b.g);a["[AD_SYS]"]=RN(b.g);a["[AD_V]"]={toString:function(){return null!=b.display?CJ(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=yN(b.g).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 XP(a,b){null!=b.g&&(a["[AD_LEN]"]={toString:function(){var a=bO(b.g);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.tc()).toString():""}})};var ZP={Yx:"flash",Vo:"image",nC:"skippablevideo",qC:"standardvideo",sC:"staticimage",TEXT:"text",VIDEO:"video"},$P=["flash","image","staticimage"],aQ=[new G(200,200),new G(250,250),new G(300,250),new G(336,280),new G(450,50),new G(468,60),new G(480,70),new G(728,90)];
function bQ(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 cQ(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",NP)}
function dQ(a){if(a.gc&&a.gc["[LACT]"]){var b=a.gc["[LACT]"].toString();if(b)return bb(b)}return a.lastActivity}function eQ(a,b,c){var d=new ve;d.set("ad_type",b.adType);pH&&d.set("flash",qH);bQ(d,a);fQ(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",gQ(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));hQ(d,c);d.set("lact",dQ(a));d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);cQ(d);iQ(a,d,!0);return d}
function iQ(a,b,c){A(B(a.referrer))||(a=a.referrer,c&&(a=Aa(a)),jQ("ref",a,b))}function kQ(a,b){var c=null!=b?b.split("_"):a;C(c,function(a){if(!hc(ZP,a))throw W(WF,null,"ad_type",String(b));});if(!LG()){var d=[];C(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw W(VF,null,"skippablevideo");return d}return c}function lQ(a,b){return null!=b?b.split(/[+, ]/):a}
function gQ(a,b,c){a.k&&(c=Math.min(c,90));var d=[];C(aQ,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}function mQ(a,b){return null==b||isNaN(b)?a:Number(b)}function nQ(a,b){return null!=b?String(b):null!=a?a:null}function oQ(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 pQ(a,b,c){return null!=b&&hc(c,b)?b:a}function fQ(a){return kb($P,function(b){return E(a.g,b)})}
function hQ(a,b){pH?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.k;null!=c&&0<c.length&&(c=c[0].A,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function jQ(a,b,c){null!=b&&c.set(a,b)};function qQ(a,b,c){CP.call(this,a,b);b=new IP;a=kf(new K(a.adTagUrl));b.Hi=pQ(b.Hi,a.get("cust_age"),KP);b.Eg=pQ(b.Eg,a.get("adsafe"),JP);b.g=kQ(b.g,a.get("ad_type"));b.adType=b.g.join("_");b.zi=mQ(b.zi,a.get("videoad_start_delay"));b.Ai=nQ(b.Ai,a.get("slotname"));b.Gi=oQ(b.Gi,a.get("adtest"));b.Bi=nQ(b.Bi,a.get("afi_url"));b.Ci=oQ(b.Ci,a.get("scs"));b.Di=nQ(b.Di,a.get("alternate_ad_url"));b.channels=lQ(b.channels,a.get("channel"));b.Fi=mQ(b.Fi,a.get("cpm"));b.nf=nQ(b.nf,a.get("description_url"));
b.experimentIds=nQ(b.experimentIds,a.get("eid"));b.Ii=pQ(b.Ii,a.get("cust_gender"),LP);b.k=oQ(b.k,a.get("overlay"));b.host=nQ(b.host,a.get("host"));b.j=lQ(b.j,a.get("h_ch"));b.hostTierId=mQ(b.hostTierId,a.get("ht_id"));b.Ji=oQ(b.Ji,a.get("lsv"));var d;null!=this.j.language?d=this.j.language:(d=Ec(),d=AG(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=nQ(e,d);var g;null!=d&&!A(B(d))&&(g=AG(d));b.language=nQ(b.language,g);b.jm=
mQ(b.jm,a.get("linearAdSlotWidth"));b.im=mQ(b.im,a.get("linearAdSlotHeight"));b.Fg=mQ(b.Fg,a.get("max_ad_duration"));b.Mi=mQ(b.Mi,a.get("min_ad_duration"));b.Hg=mQ(b.Hg,a.get("sdmax"));b.lm=mQ(b.lm,a.get("nonLinearAdSlotWidth"));b.km=mQ(b.km,a.get("nonLinearAdSlotHeight"));b.oe=nQ(b.oe,a.get("client"));b.Ig=nQ(b.Ig,a.get("t_pyv"));b.Og=mQ(b.Og,a.get("sdki"));b.tagForChildDirectedTreatment=mQ(b.tagForChildDirectedTreatment,a.get("tfcd"));b.Ni=pQ(b.Ni,a.get("targeting"),MP);b.Gg=mQ(b.Gg,a.get("video_format"));
b.Ki=mQ(b.Ki,a.get("video_cpm"));b.Li=nQ(b.Li,a.get("loeid"));b.Ri=nQ(b.Ri,a.get("yt_pt"));b.Oi=nQ(b.Oi,a.get("ytdevice"));b.Pi=nQ(b.Pi,a.get("ytdevicever"));b.Qi=nQ(b.Qi,a.get("dbp"));b.o=nQ(b.o,a.get("ms"));b.adBlock=mQ(b.adBlock,a.get("adBlock"));b.url=nQ(b.url,a.get("url"));b.Ei=nQ(b.Ei,a.get("avo"));this.g=b;this.D=c;A(B(this.g.experimentIds))||(c=this.g.experimentIds.split(","),BM(zM(),c))}z(qQ,CP);var rQ=["skippablevideo","standardvideo","video"];qQ.prototype.C={mr:"allow",nr:"exclude",bC:"require"};
function sQ(a){return null!=a.g.channels?-1<a.g.channels.indexOf("afitc"):!1}qQ.prototype.A=function(){var a=qQ.J.A.call(this);this.g.Og&&(a+=this.g.Og&2);return a};qQ.prototype.o=function(a){var b=new K("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ea();C(c,function(c){lf(b,c,a.get(c))});return b};
qQ.prototype.B=function(){var a=new ve;a.set("sdkv",HP(this));a.set("sdki",this.A().toString(16));a.set("video_product_type",null!=this.g.oe?X.g?5:sQ(this)?7:wa(this.g.oe,"ca-games-")?4:wa(this.g.oe,"ca-video-")?0:-1:-1);a.set("correlator",this.k.g);a.set("client",this.g.oe);X.g&&!A(B(this.g.url))?a.set("url",this.g.url):a.set("url",this.j.location?this.j.location:this.j.referrer);a.set("num_ads",tQ(this));a.set("channel",uQ(this));a.set("ad_type",this.g.adType);a.set("output","xml_vast2");this.g.Gi&&
a.set("adtest","on");pH&&a.set("flash",qH);jQ("alternate_ad_url",this.g.Di,a);jQ("cpm",this.g.Fi,a);bQ(a,this.j);X.g||hc(JP,this.g.Eg)&&a.set("adsafe",this.g.Eg);this.g.host&&(a.set("host",this.g.host),jQ("ht_id",this.g.hostTierId,a),null!=this.g.j&&jQ("h_ch",this.g.j.join("+"),a));jQ("hl",this.g.language,a);jQ("cust_age",this.g.Hi,a);jQ("cust_gender",this.g.Ii,a);-1!=this.g.tagForChildDirectedTreatment&&jQ("tfcd",this.g.tagForChildDirectedTreatment,a);sQ(this)?jQ("afi_url",this.g.Bi,a):jQ("slotname",
this.g.Ai,a);var b=DM(zM());A(B(b))||a.set("eid",b);cQ(a);b=this.g.nf;if(null!=b){var c,d;d=this.k;null==d.k&&(d.k=new gK);d=d.k;sQ(this)?c=this.g.adBlock:(null!=b&&d.j!=b?(d.g=1,d.j=b):d.g=null!=b?d.g+1:1,c=d.g);1!=c&&a.set("ad_block",c);c=this.k;null==c.I&&(c.I=new mK);c=c.I;var e=b!=this.k.N;(d=0==d.g%100||e)||(d=36E5<(null===c.g?0:(new jK).getTime()-c.g));d&&c.reset();this.k.N=b;b=c.j;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.g.zi;a.set("videoad_start_delay",null!=b?
b:1);EP(this,a);FP(this,a);DP(this,a);fQ(this.g)&&(a.set("ea","0"),null!=this.j.nonLinearAdSlotWidth&&null!=this.j.nonLinearAdSlotHeight&&a.set("image_size",gQ(this.g,this.j.nonLinearAdSlotWidth,this.j.nonLinearAdSlotHeight)));vQ(this)&&a.set("video_format",null!=this.g.Gg&&X.g?this.g.Gg:Bg&&0<=Ua(Vm,6)||wg&&0<=Ua(Vm,4)||Ac&&IG(EG,2.3)?43:18);b=null!=this.g.Ig?this.g.Ig:E(this.g.adType.split("_"),"text")?this.C.mr:this.C.nr;a.set("t_pyv",b);jQ("min_ad_duration",this.g.Mi,a);0<this.g.Fg&&a.set("max_ad_duration",
wQ(this.g.Fg,tQ(this)));0<this.g.Hg&&a.set("sdmax",wQ(this.g.Hg,tQ(this)));hQ(a,this.D);X.g&&(b=CJ(this.g.nf),null!=b&&a.set("video_doc_id","yt_"+b));jQ("description_url",this.g.nf,a);X.g&&(jQ("lact",dQ(this.j),a),jQ("loeid",this.g.Li,a),jQ("lsv",this.g.Ji,a),this.g.Ci||jQ("scs","false",a),jQ("targeting",this.g.Ni,a),jQ("video_cpm",this.g.Ki,a),jQ("yt_pt",this.g.Ri,a),jQ("ytdevice",this.g.Oi,a),jQ("ytdevicever",this.g.Pi,a),jQ("dbp",this.g.Qi,a),jQ("avo",this.g.Ei,a));jQ("ms",this.g.o,a);iQ(this.j,
a,!1);null!=this.j.Cd&&jQ("loc",this.j.Cd.page_location,a);return a};function vQ(a){return kb(rQ,function(a){return E(this.g.g,a)},a)}function tQ(a){return sQ(a)||X.g?1:E(a.g.adType.split("_"),"text")?3:1}function uQ(a){a=a.g.channels?a.g.channels:[];Ab(a);a=zb(a,0,30);return a.join("+")}function wQ(a,b){return Math.round(1.1*(a||0)+0*b)};function xQ(a,b){CP.call(this,a,b)}z(xQ,CP);xQ.prototype.o=function(a){var b=new K(this.j.adTagUrl);C(a.Ea(),function(c){A(a.get(c))?b.g.remove(c):lf(b,c,a.get(c))});return b};xQ.prototype.B=function(){var a=new ve;a.set("sdkv",HP(this));FP(this,a);DP(this,a);return a};function yQ(a,b){CP.call(this,a,b)}z(yQ,CP);yQ.prototype.B=function(){return null};
yQ.prototype.o=function(){var a=new TM(this.j.adTagUrl),b=HP(this);b&&XM(a,"dc_sdkv",[b]);(b=this.A().toString(16))&&XM(a,"dc_sdki",[b]);(b=this.k.C)&&XM(a,"dc_submodel",[b]);b=new ve;EP(this,b);FP(this,b);DP(this,b);xe(b,"js")&&XM(a,"dc_js",[b.get("js")]);xe(b,"msid")&&XM(a,"dc_msid",[b.get("msid")]);xe(b,"frm")&&XM(a,"dc_frm",[b.get("frm")]);xe(b,"osd")&&(XM(a,"osd",[b.get("osd")]),XM(a,"dc_osd",[b.get("osd")]));xe(b,"vpa")&&XM(a,"vpa",[b.get("vpa")]);return a};function zQ(a){CP.call(this,a,null)}z(zQ,CP);zQ.prototype.o=function(a){return new K(a.get("adTagUrl"))};zQ.prototype.B=function(){var a=new ve;a.set("adTagUrl",this.j.adTagUrl);a.set("adsResponse",this.j.adsResponse);return a};function AQ(a,b){CP.call(this,a,b)}z(AQ,CP);AQ.prototype.o=function(a){var b=new K(this.j.adTagUrl);C(a.Ea(),function(c){A(a.get(c))?b.g.remove(c):lf(b,c,a.get(c))});return b};
AQ.prototype.B=function(){var a=new ve;a.set("sdkv",HP(this));a.set("sdki",this.A().toString(16));a.set("correlator",this.k.H);a.set("scor",this.k.g);EP(this,a);FP(this,a);DP(this,a);var b=this.k.j;null!=b&&(this.k.j=null,a.set("fbidx",b));b=this.k.L;null!=b&&a.set("ppid",b);var b="null",c=this.k.o;null!=c?b=c:(c=this.j.location,A(B(c))?c=!1:(c=new K(c),!c.kb||"http"!=c.kb&&"https"!=c.kb?c=!1:(c=c.$a,c=-1==c.indexOf(".")||c.match(/^[\.0-9]*$/)?!1:!0)),c&&(b=this.j.location));a.set("url",b);b=this.k.C;
null!=b&&a.set("submodel",b);b=this.k.B;null!=b&&(b=BQ(b),a.set("ciu_szs",b));a.set("impl","");return a};function BQ(a){var b=[];C(a,function(a){0<a.length&&b.push(ib(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function CQ(a,b,c){CP.call(this,a,b);this.D=A(B(a.youTubeAdType));a=new IP;a.g=kQ(a.g,this.j.youTubeAdType);a.adType=a.g.join("_");a.experimentIds=nQ(a.experimentIds,this.j.youTubeExperimentIds);this.g=a;this.C=c;A(B(this.g.experimentIds))||(c=this.g.experimentIds.split(","),BM(zM(),c))}z(CQ,AQ);CQ.prototype.o=function(a){a=CQ.J.o.call(this,a);this.D||DQ(this,a);return a};function EQ(a){var b=eQ(a.j,a.g,a.C);b.set("sdkv",HP(a));b.set("sdki",a.A().toString(16));return b}
function DQ(a,b){var c=EQ(a),d=ib(c.Ea(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});lf(b,"afvparams",d.join("&"))};function FQ(a,b,c){CP.call(this,a,b);this.D=A(B(a.youTubeAdType));a=new IP;a.g=kQ(a.g,this.j.youTubeAdType);a.adType=a.g.join("_");a.experimentIds=nQ(a.experimentIds,this.j.youTubeExperimentIds);this.g=a;this.C=c;A(B(this.g.experimentIds))||(c=this.g.experimentIds.split(","),BM(zM(),c))}z(FQ,yQ);FQ.prototype.o=function(a){a=FQ.J.o.call(this,a);this.D||GQ(this,a);return a};function HQ(a){var b=eQ(a.j,a.g,a.C);b.set("sdkv",HP(a));b.set("sdki",a.A().toString(16));return b}
function GQ(a,b){var c=HQ(a),d=ib(c.Ea(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});XM(b,"afvparams",[Aa(d.join("&"))])};function IQ(a,b){return!bN(a)&&!aN(a)||A(B(a.youTubeAdType))?bN(a)?new yQ(a,pK):ZM(a)?new qQ(a,pK,b):aN(a)?new AQ(a,pK):cN(a)?new xQ(a,pK):new zQ(a):bN(a)?new FQ(a,pK,b):new CQ(a,pK,b)};function JQ(a){a=hb(a,function(a){return 0<TN(a)});Db(a,function(a,c){return TN(a)-TN(c)});return a}function KQ(a){return hb(a,function(a){return-1==TN(a)})};function LQ(a){this.g=a};function MQ(){}function NQ(a,b,c,d,e,g){var h=x(function(a){d(a,Error(hj(a)))},a),k=x(function(a){6==a?OQ(this,b,!1,c,h,e,g):h(a)},a);OQ(a,b,!0,c,k,e,g)}
function OQ(a,b,c,d,e,g,h){var k=new oj;k.R=c;rj(k,PQ(g));var l=new aj,n=x(function(){l.dispose();k.dispose()},a);c=x(function(){e(k.k);n()},a);gj(l,k,"success",function(){var a;try{a=k.g?k.g.responseXML:null}catch(b){a=null}if(null==a){var c;try{c=k.g?k.g.responseText:""}catch(e){c=""}try{a=Ay(c)}catch(g){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=By())){a.appendChild(a.createNode(1,
"parsererror",""));break t}throw Error("Your browser does not support creating new documents");}}}d(a);n()},a);gj(l,k,["error","timeout"],c,a);var r;"POST"==h&&(a=new K(b),r=a.g.toString(),Ze(a,""),b=a.toString());k.send(HF(b),h,r)};function QQ(a,b,c){var d=null,e=c+b;C(a.o,function(g){if("true"!=g.D.rm||$N(a,xF)){var h;if(h=g instanceof nN)0==c&&0==b||g instanceof OO?h=!0:(h=g.Tb(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Tb().height+b-g.Tb().width,"Flash"!=g.getContentType()||pH))if(null==d)d=g,e=h;else if(h==e&&g.g<d.g||h<e)d=g,e=h}else h=WP(a),LF(EN(a),h),(h=a.k)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)});LN(a,d)}
function RQ(a){var b=null;C(a.o,function(a){a instanceof iN&&(null===b||a.g<b.g)&&(b=a)});LN(a,b)};function SQ(a,b,c,d){this.o=a;this.F=b;this.ads=0<this.o.length?this.o:this.F;this.B=c;this.A=this.H=!0;this.j=-1;this.g=null;this.C=0;this.N=d;this.logger=null}SQ.prototype.Bc=function(){return null!=this.g&&this.g.Bc()?!0:0<this.ads.length&&this.j<this.ads.length-1};function TQ(a,b,c){null!=a.g?UQ(a,b,c):a.Bc()?VQ(a,b,x(function(a){this.Bc()&&301!=a.getErrorCode()?TQ(this,b,c):c(a)},a)):c(new iF("adLoadError","The ad source contains no more ads.",1005))}
SQ.prototype.G=function(a,b){return this.A?0<a.length?a:b:zb(b,0,1)};SQ.prototype.k=function(a,b,c){var d;if(!(d=null!=a.g)){var e=this.B;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;VN(a)&&!a.D?UN(a,"nonlinear")?QQ(a,d,e):RQ(a):UN(a,"linear")?RQ(a):UN(a,"nonlinear")&&QQ(a,d,e);d=null!=a.g}d?(this.C++,b(a)):(b=qb(a.o)?W(hG):xN(a)?W(cG):W(kG),d=QP(b,a),LF(a.N,d),c(b))};SQ.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.Aa;WQ(this,a,d,b,c)};
function XQ(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.Ba;WQ(a,b,e,c,d)}function WQ(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.j,null!=g&&(c.adsResponse=g));a.N.j(c,x(function(a){if(a instanceof SQ){var c=this.A&&b.ta,g=b.wa,n;for(n in a.ads)a.ads[n].j=b;a.A=c;a.ads=a.G(a.o,a.F);a.j=-1;a.H=g;d(a)}else a instanceof LQ?e(new iF("adLoadError","Ad source cannot contain playlist response.",2)):e(new iF("adLoadError","Unknown ad source.",2))},a),e)}
function YQ(a){var b=0;for(a=a.j;null!=a;)a=a.j,b++;return b}function UQ(a,b,c){a.g.Bc()?TQ(a.g,x(function(a){this.k(a,b,x(function(a){this.Bc()?TQ(this,b,c):c(a)},this))},a),x(function(a){ZQ(this.ads[this.j],a);this.g=null;301==a.getErrorCode()?c(a):this.Bc()?TQ(this,b,c):c(a)},a)):(0==a.g.C&&ZQ(a.ads[a.j],W(sG)),a.g=null,TQ(a,b,c))}function ZQ(a,b){1012==b.getErrorCode()&&(b=W(jG));var c=QP(b,a);LF(a.N,c)}
function VQ(a,b,c){a.j++;var d=a.ads[a.j];d.D||d.O?d.O?XQ(a,d,x(function(a){this.g=a;TQ(this,b,c)},a),x(function(a){a=$Q(a);ZQ(d,a);c(a)},a)):4<=YQ(d)?(a=W(lG,null,"4"),ZQ(d,a),c(a)):a.H?a.D(d,x(function(a){this.g=a;TQ(this,b,c)},a),x(function(a){a=$Q(a);ZQ(d,a);c(a)},a)):c(W(rG)):a.k(d,b,c)}function $Q(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=W(sG)}return a};function aR(a,b,c,d){SQ.call(this,[],a,b,c);this.I=d}z(aR,SQ);aR.prototype.Bc=function(){return null!=this.g&&this.g.Bc()?!0:0<this.ads.length&&this.j<this.ads.length-1&&0==this.C};aR.prototype.G=function(a,b){return b};aR.prototype.k=function(a,b,c){var d=-1,d=null==this.g?SN(a):SN(this.ads[this.j]);this.I.j=d;aR.J.k.call(this,a,b,c)};aR.prototype.D=function(a,b,c){this.I.j=-1;aR.J.D.call(this,a,b,c)};function bR(a,b,c,d,e){this.o=a;this.A=b;this.k=c;this.g=d;this.hb=e}bR.prototype.j=function(a,b,c){A(B(a.adsResponse))?aN(a)&&null!=this.g&&!this.g.C?this.g.start(a,x(function(){cR(this,a,b,c)},this)):cR(this,a,b,c):dR(this,a,b,c)};function dR(a,b,c,d){var e;try{e=Ay(b.adsResponse)}catch(g){d(W($F,g));return}null!=e?eR(a,e,b,c,d):d(W($F))}
function cR(a,b,c,d){var e;if(e=null!=b.adTagUrl){t:{try{Ba(b.adTagUrl)}catch(g){e=!1;break t}e=!0}e=!e}if(e)d(W(UF,null,b.adTagUrl));else{e=GP(IQ(b,a.k)).toString();var h=b.Ff&&FF(EF,e)?"POST":"GET";NQ(a.A,e,x(function(a){eR(this,a,b,c,d)},a),x(function(a,c){var e;e=8==a?W(gG):5==a||6==a?W(PF):W(TF,c);d(e);e="third_party";ZM(b)?e="adsense":bN(b)?e="dart":aN(b)&&(e="xfp");e={rt:e,ec:a};NG(MG.getInstance(),18,e,!0)},a),a.hb,h);fR(b)}}
function fR(a){var b="third_party";ZM(a)?b="adsense":bN(a)?b="dart":aN(a)?b="xfp":cN(a)&&(b="dbm");a={rt:b};NG(MG.getInstance(),17,a,!0)}function eR(a,b,c,d,e){var g;try{var h=AP(b,c);if(!h)throw W($F);g=h.k();gR(a,g,c,d)}catch(k){k instanceof iF?e(k):e(W(aG,k))}}function gR(a,b,c,d){var e=b.g;if(null!=e)d(new LQ(e));else{var g=b.k;if(null==g)throw W(eG);C(g,function(a){a.k=c;X.g&&(a.oa=b.j)});e=JQ(g);g=KQ(g);0<g.length&&0<=SN(g[0])?d(new aR(g,c,a,a.o)):d(new SQ(e,g,c,a))}};function hR(a){this.g=a+y()}hR.prototype.reset=function(a){this.g=a+y()};function PQ(a){var b=y();a=a.g-b;return 0<a?a:0};function iR(a,b){this.g=a;this.j=b;X.j&&eJ().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}pK.D=c}function jR(a,b,c,d){var e=null;null!=a.g&&(e=new cL(1E3,a.g,a.j));(new bR(a.j,new MQ,a.g,e,new hR(8E3))).j(b,x(function(a){a instanceof LQ?c(a):kR(this,a,c,d)},a),d)}
function kR(a,b,c,d){var e=[],g=x(function(a,b){a.Bc()?TQ(a,x(function(b){e.push(b);g(a,null)},this),x(function(b){301==b.getErrorCode()?d(W(gG)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=W(XF)),1012==b.getErrorCode()&&(b=W(jG)),d(b))},a);g(b,null)};function lR(a){this.j=a;this.g=new Bj}function mR(a,b,c,d){var e=x(function(a){c(a);Ej(this.g);nR(this)},a),g=x(function(a){d(a);Ej(this.g);nR(this)},a);Dj(a.g,x(function(){jR(this.j,b,e,g)},a));nR(a)}function nR(a){1==a.g.Ma()?(a=a.g,Cj(a),a=db(a.g),null!=a&&a()):a.g.Ma()};function oR(a,b,c){P.call(this);this.j=new lR(new iR(b,c));this.g=b;this.sd=!0;this.k=c}z(oR,P);function pR(a,b,c){if(a.sd){var d=null!=c?c:{};qR.getInstance().start("vl");mR(a.j,b,x(function(a){rR(this,a,d)},a),x(function(a){sR(this,a,d)},a))}}function tR(a,b,c){if(!a.sd){var d=null!=c?c:{};mR(a.j,b,x(function(a){rR(this,a,d)},a),x(function(a){sR(this,a,d)},a))}}
function rR(a,b,c){if(a.sd)b instanceof LQ?(b=new uR(b.g,a),b.B=a.g,a.T(new vR(b,c))):(qR.getInstance().end("vl"),b=wR(b),b.B=a.g,null!=b?a.T(new vR(b,c)):sR(a,W(cG,null),c));else if(b instanceof LQ)sR(a,W(OF,null,"Unsupported ad format."),c);else{var d=new bL("adsLoaderSdkAdLoaded");d.B=b;d.A=c;a.T(d)}}function sR(a,b,c){a.sd?("always"==X.k&&null!=a.g&&NK(a.g,KK()),a.T(new jF(b,c))):(c=new bL("adsLoaderSdkAdError"),c.k=b,a.T(c))};var xR={NORMAL:"normal",FULLSCREEN:"fullscreen"};function yR(){return'<div class="close-padding"><div class="close-button"></div></div>'}function zR(a){return'<div class="recall-button '+(a.ix?"auto-hide":"")+'"></div>'}function AR(a){return'<a target="_blank" href="'+rO(a.url)+'" class="attribution-button">'+rO(a.text)+"</a>"};function BR(a,b){this.B=a;this.g=J("div",{"class":"controls"});this.O=b||ba;this.Wb=new aj(this)}z(BR,N);f=BR.prototype;f.Ac=!1;f.Rn=1E3;f.yn=30;f.qn=45E3;f.rn=15E3;f.Co=!1;function CR(a){var b=J("div",{"class":"container"});bt(b,"opacity 0.4s");a.Wb.listen(b,"mouseover",a.ww);a.Wb.listen(b,"mouseout",a.xw);b.appendChild(a.g);return b}f.Bh=function(){var a=CR(this);this.g.appendChild(this.B);this.display(this.B);this.play();return a};f.M=function(){null==this.H&&(this.H=this.Bh());return this.H};
f.play=function(){null==this.j&&(this.j=Zi(function(){this.Ac||(this.hide(),this.Co=!0);this.j=null},this.Co?this.rn:this.qn,this))};f.stop=function(){null!=this.j&&($i(this.j),this.j=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){ge(this.M(),1);null!=this.k&&($i(this.k),this.k=null)};f.hide=function(){ge(this.M(),this.yn/100);null==this.k&&(this.k=Zi(function(){this.O();this.k=null},400,this))};
f.ww=function(){this.show();this.Ac=!0;this.C=Zi(function(){this.Ac&&this.stop();this.C=null},this.Rn,this)};f.xw=function(){null!=this.C&&($i(this.C),this.C=null);this.Ac&&this.play();this.Ac=!1};f.K=function(){BR.J.K.call(this);this.stop();Eg(this.Wb)};function DR(a,b){this.G=a;this.L=new ve;this.N=15E3;this.D=J("span");BR.call(this,a[0],b);this.g.appendChild(this.D)}z(DR,BR);
DR.prototype.Bh=function(){var a=CR(this);L(a,"container-rotator");this.F=J("div");this.g.appendChild(this.F);C(this.G,function(a,c){L(a,"container-highlight");var d=63/this.G.length*(c+.5)-5,e=J("div",{id:Ya(),"class":"container-selector"});e.style.top=d+"px";this.Wb.listen(e,"click",function(a){ER(this,a.target)});this.L.set(e.id,a);this.D.appendChild(e)},this);ER(this,vd(this.D));this.play();return a};
DR.prototype.play=function(){null==this.o&&(this.o=new Xi(this.N),this.Wb.listen(this.o,"tick",this.P));DR.J.play.call(this);this.o.start()};DR.prototype.stop=function(){null!=this.o&&this.o.stop();DR.J.stop.call(this)};DR.prototype.P=function(){var a=this.A;ER(this,(void 0!=a.nextElementSibling?a.nextElementSibling:wd(a.nextSibling))||vd(this.A.parentNode))};function ER(a,b){a.A&&vf(a.A,"container-active");L(b,"container-active");var c=a.L.get(b.id);td(c,a.F);a.A=b;a.F=c;a.display(c)};function FR(a,b){BR.call(this,a,b)}z(FR,BR);BR.prototype.I=!1;FR.prototype.Bh=function(){var a=CR(this);L(a,"container-slider");this.g.appendChild(this.B);this.Wb.listen(this.g,"click",this.o);this.play();return a};FR.prototype.show=function(){this.display(this.B);GR(this);vf(this.M(),"hidden")};FR.prototype.hide=function(){GR(this);L(this.M(),"hidden")};FR.prototype.o=function(a){0!=Sd(this.g).y&&(a.preventDefault(),a.stopPropagation())};function GR(a){a.I?L(a.M(),"animated"):a.I=!0};function HR(a,b){BR.call(this,a[0],b);this.o=a;L(this.g,"container-stack")}z(HR,BR);HR.prototype.hide=ba;HR.prototype.Bh=function(){var a=CR(this);C(this.o,function(a){L(a,"container-highlight");this.g.appendChild(a);this.display(a)},this);this.play();return a};function IR(){N.call(this);this.B="";this.j=new GL;this.k=new ve;this.o=[];this.C=!1;this.g={};this.A=-1}z(IR,N);function JR(a,b){if(X.j){var c=hJ(eJ(),b.type,a.B);a.D(b.type,c)}else PM(OM(),b.type,a.B,x(a.D,a,b.type))}
IR.prototype.D=function(a,b){null!=b&&YP(this.g,b);"impression"==a&&!this.C&&null!=this.o&&0<this.o.length&&(KR(this,this.o),this.C=!0);var c;t:switch(a){case "click":c=!0;break t;case "complete":c=!xe(this.k,a)&&!xe(this.k,"skip");break t;default:c=!xe(this.k,a)}c&&(c=NL(this.j,a),0<c.length&&(KR(this,c,b),this.k.set(a,!0)))};function KR(a,b,c){C(b,function(a){JF(a,this.g,c)},a)};function LR(a){P.call(this);this.ads=a;this.F=null;this.H="normal";this.o=this.volume=null;this.j=new QG;this.da=!1;this.content={};this.A=new IR;this.L=!1;C(a,function(){});C(a,function(b,c){var d=b.A;d.k=a.length;var e=c+1;d.g=e;d.o=e})}z(LR,P);function $(a){if(MR(a)){if(zN(a.F)&&!LG())throw xG(VF,null,"skippablevideo");return a.F}throw xG(RF,null,"An ad has not been selected.");}function MR(a){return null!==a.F}f=LR.prototype;
f.vf=function(){var a=fb(this.ads,this.F);-1!=a&&++a<this.ads.length?this.F=this.ads[a]:this.F=null};f.no=function(){if(!MR(this)){if(qb(this.ads))throw xG(cG);this.F=this.ads[0];if(null==this.F.g)throw W(cG);}};f.ga=function(a){MR(this)?this.T(new mF(a,$(this))):this.T(new mF(a,null))};function NR(a){null==a.D&&(a.D=new aj(a));return a.D}function OR(a,b){if(null!=a.B&&(ej(NR(a),a.B,"companion_display_error",function(){}),NK(a.B,b),!a.B.Io()))throw xG(SF);}
f.destroy=function(){X.j&&(eJ().j=null);this.dispose()};f.K=function(){MR(this)&&(LN(this.F,null),this.F=null);Eg(this.D);this.D=null;Eg(this.B);this.B=null;this.L=!1;LR.J.K.call(this)};f.zd=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){PR(this);this.sh(a);this.da=!0;this.Eh()};f.Eh=function(){this.ga("loaded")};f.sendImpressionUrls=function(a){MR(this)&&X.g&&LF(EN($(this)),a)};f.Xi=function(){};
f.ac=function(a,b,c){if(!this.L){if(null==a)throw xG(WF,null,"displayContainer");if(null!=c){var d=new Lh(fc(this.j));if(!Ee(fc(c),d.contains,d))throw xG(WF,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.j;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);QR(c.mimeTypes);ia(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);qc(d,c)}this.content=b;this.o=a;this.no();X.j&&(a=eJ(),b=x(this.lo,this),a.j=b);this.L=!0}};
f.be=function(a){C(EN(a),function(a){sb(this.A.o,a)},this)};f.md=function(a,b){C(b,function(b){b=gN(a,b);JL(this.A.j,b)},this)};f.vg=function(a){if(a instanceof iN){var b=jN(a);C(b.Ea(),function(a){var d=b.get(a);C(d,function(b){LL(this.A.j,a,b)},this)},this)}};function RR(a,b){JR(a.A,new Qh(b))}function SR(a,b){JR(a.A,new Qh(b));a.ga(b)}f.getRemainingTime=function(){return-1};f.Nf=ba;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){PR(this);if(!this.da)throw W(RF,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.lo=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&zG(this,WF,null,"volume",String(a));this.volume=a};f.sh=function(a){if(!hc(xR,a))throw xG(WF,null,"view mode",a);this.H=a};f.setMediaUrl=function(){};function PR(a){if(!a.L)throw xG(RF,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Dm=function(){return null};function QR(a){if(!ga(a))throw xG(RF,null,"adsRenderingSettings.mimeTypes should be an array");var b=vb(ec(zF),ec(uF));C(a,function(a){if(!E(b,a))throw xG(RF,null,"Invalid or unsuppoted mime type "+a);})};function TR(a){LR.call(this,a);this.k=null;this.R=!1;this.P=J("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"})}z(TR,LR);f=TR.prototype;f.start=function(){TR.J.start.call(this);this.o.zg();this.k=this.o.te();if(null!=this.k){qd(this.k);var a=this.nj();X.j?eJ().o=a:OM().g=a;this.k.appendChild(a);UR(this);this.ga("start")}};f.Nf=function(){TR.J.Nf.call(this);UR(this)};
f.K=function(){Eg(this.g);this.o=this.g=null;X.j?eJ().o=null:OM().g=null;null!=this.k&&(qd(this.k),this.k=null);TR.J.K.call(this)};function VR(a,b){var c=vN(b);C(c,function(a){LL(this.A.j,"click",a)},a)}f.nj=function(){var a=MN($(this));if(null==a)throw a=xG(cG),WR(this,a),a;oN(a,NR(this));pN(a,this.bw);try{OR(this,$(this))}catch(b){throw WR(this,b),b;}var c=$(this),d=WP(c);this.A.g=d;c.g&&(this.be(c),(c=c.g)&&this.md(c,lF));VR(this,a);SR(this,"impression");return XR(this,[a.fc()])};
f.An=function(a,b){return new BR(a[0],b)};
function XR(a,b){null!=a.g&&a.g.stop();a.g=a.An(b,x(a.xn,a));var c=a.g.M();if(X.j){var d=J("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%}.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}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.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}.afi .text-title{text-decoration:none}.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}.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}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative}.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{margin:5px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.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)}xf(c,
"autoalign",a.j.wn);xf(c,"viewmode-fullscreen","fullscreen"==a.H);c.appendChild(a.P);NR(a).listen(c,"click",Rh);(MR(a)&&VN($(a))||a.j.useStyledNonLinearAds)&&a.wj(a.g.g);return c}f.wj=function(a){var b=NR(this);this.O=mO(zR,{ix:this.R});b.listen(this.O,"click",this.jx);var c=mO(yR);b.listen(c,"click",this.ak);a.appendChild(c)};function UR(a){if(null!=a.g){var b=de(a.o.te()),c=de(vd(a.g.g));if(c.width>b.width||c.height>b.height)throw b=xG(YF,null),WR(a,b),a.stop(),b;}}
function WR(a,b){var c=QP(b,$(a)),d=DN($(a));LF(d,c)}f.bw=function(a){SR(this,"click");Rh(a)};f.ak=function(){this.xn();this.ga("userClose");RR(this,"close")};f.xn=function(){this.g.stop();var a=MN($(this));null!=a&&rN(a);td(this.O,this.g.g)};f.jx=function(a){Rh(a);this.g.show();this.g.play();td(this.g.g,this.O);Zi(function(){he(this.P,!1)},500,this);he(this.P,!0)};function YR(a){TR.call(this,a);this.C=!1;this.I=this.U=null;!qb(a)&&null!=a[0].k&&(this.U=a[0].k,a=mf(new K(this.U.adTagUrl),"channel"),this.If=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.R=!0)}z(YR,TR);f=YR.prototype;f.If=!1;
f.An=function(a,b){if(this.C||null==b)b=ba;var c;this.If?c=new FR(a[0]):X.g&&this.C?c=new BR(a[0],b):"fullscreen"==this.H?c=new HR(a):1<a.length?(c=new DR(a),c.N=15E3):c=new BR(a[0],b);c.Rn=100;this.C&&(c.yn=30);c.qn=this.If?1E4:45E3;c.rn=6E3;xf(c.g,"scalable",this.C);xf(c.M(),"afi",this.If);xf(c.M(),"yt-text-overlay",X.g&&this.C);return c};
f.ax=function(a){var b=a.g;null!=b?(null==this.N&&(this.N=a.getExtension("AdSense").B),qN(b,ra(this.Vv,a,b)),pN(b,ra(this.Uv,a,b)),b.ka=!1,"Text"==b.getContentType()&&(this.C=!0),this.I.push(b)):(b=W(cG),b=QP(b,a),LF(DN(a),b))};f.ac=function(a,b,c){YR.J.ac.call(this,a,b,c);this.j.wn=!0;null!=this.ads[0]&&0<UK(this.ads[0]).length?OR(this,this.ads[0]):X.g&&this.ga("companionBackfill")};
f.nj=function(){null==this.I&&(this.I=[],C(this.ads,this.ax,this));if(0==this.I.length)throw xG(cG);var a=[];C(this.I,function(b){oN(b,NR(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Un=!0);a.push(b.fc());uN(b,this.N.k)},this);if(0==a.length)throw xG(cG);return XR(this,a)};f.ak=function(a){YR.J.ak.call(this,a);C(this.I,function(a){var c=WP(a.getAd());this.A.g=c;this.md(a,["close"]);RR(this,"close");this.A=new IR},this)};
f.wj=function(a){YR.J.wj.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.o,b=b.A,c=mO(AR,{text:null!=c?c:this.N.g,url:null!=b?b:this.N.j});a.appendChild(c)};f.Vv=function(a,b){var c=WP(a);this.A.g=c;this.be(a);this.md(b,["creativeview"]);RR(this,"impression");RR(this,"creativeview");this.A=new IR;qN(b,ba)};
f.Uv=function(a,b,c){if(1==c.nodeType)c=Zd(c);else{var d=ja(c.ev),e=c;c.targetTouches&&c.targetTouches.length?e=c.targetTouches[0]:d&&c.g.targetTouches&&c.g.targetTouches.length&&(e=c.g.targetTouches[0]);c=new F(e.clientX,e.clientY)}a=a.getExtension("AdSense");a=new K(a.j);d=b.sc();isNaN(d)&&(d=ce(b.fc()).width);e=b.getHeight();isNaN(e)&&(e=ce(b.fc()).height);b=zM();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.H,"sdkv=h.0.0.0","eids="+DM(b)];b=MF(a,"elementclick",b);JF(b);this.ga("click")};
f.sh=function(a){this.H!=a&&(YR.J.sh.call(this,a),null!=this.k&&(qd(this.k),a=this.nj(),this.k.appendChild(a)),this.ga("expandedChanged"))};function ZR(a){mF.call(this,"adMetadata",a)}z(ZR,mF);var $R={};q("adsense.mobileads.afmanotify.receiveMessage",function(a,b){if($R.hasOwnProperty(a))for(var c=$R[a],d=0;d<c.length;++d){var e=c[d];e.callback.call(e.object,a,b)}},void 0);new ve;function qR(){this.g=new ve;this.j=.01>Math.random()&&!X.g}ca(qR);qR.prototype.start=function(a){this.j&&this.g.set(a,y())};qR.prototype.end=function(a){if(this.j&&xe(this.g,a)){var b=y()-this.g.get(a);JF("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5&it="+a+"."+b);this.g.remove(a)}};function aS(a,b,c){var d=ba,e;CM(947225)?(e=new K("https://www.googleapis.com/_old_youtube/v3/videos"),lf(e,"id",a),lf(e,"part","snippet,status"),lf(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus")):e=new K("https://gdata._old_youtube.com/feeds/api/videos/"+a);null!=c&&(b=x(b,c),d=x(d,c));bS(new oj,e,b,d)}
function cS(a,b,c){var d=ba,e;CM(947225)?(e=new K("https://www.googleapis.com/_old_youtube/v3/channels"),lf(e,"id",a),lf(e,"part","snippet,statistics"),lf(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount")):e=new K("https://gdata._old_youtube.com/feeds/api/channels/"+a);null!=c&&(b=x(b,c),d=x(d,c));bS(new oj,e,b,d)}
function bS(a,b,c,d){dS(b);rj(a,2E3);var e=new aj(a);ej(e,a,"success",function(a){a=a.target;var b;b=a.g?Kb(a.g.responseText):void 0;c(b||{});e.dispose();a.dispose()});ej(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.k&&(b=Error(hj(a.k)));d(b);e.dispose();a.dispose()});a.send(b)}function dS(a){CM(947225)?lf(a,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0"):(lf(a,"alt","json"),lf(a,"v","2"))};function eS(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">'+rO(a.We)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+rO(a.We)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=GO(a.Yd);
c=rO(c);return b+c+">"+rO(a.Yd)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'}function fS(a){var b=GO(a.Yd);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+rO(b)+">"+rO(a.Yd)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function gS(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function hS(a){var b="";a=ta("You can skip this ad in {$xSeconds}",{xSeconds:rO(a.Tk)});return b+a}function iS(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+rO(a.$p)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function jS(a){var b="";a=1>=a.qg?ta("Ad {$timeLeft}",{timeLeft:rO(a.pg)}):ta("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:rO(a.$h),totalAds:rO(a.qg),timeLeft:rO(a.pg)});return b+=a};function kS(a,b,c,d,e){nr.call(this);this.j=a;this.A=b;this.B=c;this.k=d;this.C=ga(e)?e:[e]}z(kS,nr);f=kS.prototype;f.play=function(){if(1==this.g)return!1;this.Vb();this.mb("play");this.startTime=y();this.g=1;if(dt())return Md(this.j,this.B),this.o=Zi(this.Wt,void 0,this),!0;this.Ui(!1);return!1};f.Wt=function(){de(this.j);bt(this.j,this.C);Md(this.j,this.k);this.o=Zi(x(this.Ui,this,!1),1E3*this.A)};f.stop=function(){1==this.g&&this.Ui(!0)};
f.Ui=function(a){ct(this.j,"");$i(this.o);Md(this.j,this.k);this.endTime=y();this.g=0;if(a)this.onStop();else this.nc();this.yc()};f.K=function(){this.stop();kS.J.K.call(this)};f.pause=function(){};function lS(a,b,c,d){return new kS(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Nl:0})};function mS(a,b){P.call(this);this.S=a;this.H=0;this.D=!1;this.j=1;this.g=this.O=this.F=this.N=this.k=null;this.o=new aj(this);this.L=!1;this.R=this.P=this.I=0;this.A=this.C=this.B=null;this.G=!1;this.S.A&&(this.o.listen(b,"touchstart",this.Yp),this.o.listen(b,"touchmove",this.Xp),this.o.listen(b,"touchend",this.Wp));this.k=mO(gS);this.N=I("videoAdUiPreSkipButton",this.k);this.F=I("videoAdUiPreSkipText",this.N);this.O=I("videoAdUiPreSkipThumbnail",this.N);Cd(this.F,hS({Tk:nS(this)}));var c=this.S.U,
c=(A(B(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.S.showContentThumbnail&&!A(B(c))){var d=nd("img");d.setAttribute("src",c);L(d,"videoAdUiPreSkipThumbnailImage");this.O.appendChild(d)}else L(this.F,"videoAdUiPreSkipTextOnly");this.S.A?c="\u00ab Swipe to Skip":(c="",d=ta("Skip Ad \u00bb"),c=c+d,d=new RegExp(Qa("\u00bb"),""),c=c.replace(d,""),c=za(c));this.g=mO(iS,{$p:c});he(this.k,!1);b.appendChild(this.k);he(this.g,!1);ge(this.g,0);b.appendChild(this.g);this.o.listen(this.g,"click",
this.Zp)}z(mS,P);f=mS.prototype;f.K=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);oS(this);null!=this.k&&(sd(this.k),this.k=null);null!=this.g&&(sd(this.g),this.g=null);this.o.dispose();this.o=null;this.G=!1;mS.J.K.call(this)};
f.update=function(a,b){this.H=b;if(!(0>=this.H||null==this.S.skipOffset||0>EL(this.S.skipOffset))){var c=EL(this.S.skipOffset);c>=this.H||3==this.j||(0>a?this.j=1:a<=c?(2!=this.j&&(pS(this,0),lS(this.k,"ease-out",0,1).play(),he(this.k,!0)),this.j=2):(3!=this.j&&(he(this.g,!0),this.C=new kS(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Nl:0}),this.B=lS(this.g,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(zd(this.g),
"mouseover",this.yr),this.o.listen(zd(this.g),"mouseout",this.Ol),this.Ol()),this.j=3,this.T("skipshown")))}2==this.j&&pS(this,a)};f.skip=function(){return null==this.S.skipOffset||3!=this.j||this.D?!1:(this.D=!0,this.T("PUBLISHER_INVOKED_SKIP"),!0)};f.Yp=function(a){var b=a.g;3==this.j&&1==b.touches.length&&(this.L=!0,this.R=b.touches[0].pageX,a.preventDefault())};
f.Xp=function(a){var b=a.g;3==this.j&&1==b.touches.length&&this.L&&(b=b.touches[0].pageX,this.I=this.P-b,this.P=b,b=this.R-b,0<b&&(this.g.style.right=b+"px"),a.preventDefault())};f.Wp=function(){this.L=!1;if(3==this.j){var a=ce(zd(this.g));if(parseInt(this.g.style.right,10)+4*this.I>.25*a.width&&0<this.I){he(this.g,!1);this.D=!0;this.T("skip");return}}this.g.style.right=0};function nS(a){return null!=a.S.skipOffset&&-1!=EL(a.S.skipOffset)?EL(a.S.skipOffset):-1}
function pS(a,b){var c=nS(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+yL(c));c=hS({Tk:d});Cd(a.F,c)}}f.Zp=function(a){X.g||a.stopPropagation();3!=this.j||this.D||(this.D=!0,this.T("skip"))};f.Ol=function(){null==this.A&&(this.A=Zi(function(){this.G=!0;lS(this.g,"ease-in",1,.5).play();this.A=null},this.G?5E3:15E3,this))};f.yr=function(){ge(this.g,1);oS(this)};function oS(a){null!=a.A&&($i(a.A),a.A=null)};function qS(a,b,c){P.call(this);this.S=a;this.R=c;this.L=this.N=this.I=this.C=this.B=this.H=this.g=null;this.P=!1;this.D=this.k=this.A=this.O=this.G=this.F=this.o=null;this.j=new aj(this);this.U=[];this.g=mO(this.S.C,{Yd:this.S.Yd,We:this.S.We});this.j.listen(this.g,"touchmove",this.Qp);this.G=I("videoAdUiProgress",this.g);this.O=I("videoAdUiBuffer",this.g);this.H=I("videoAdUiAttribution",this.g);this.B=I("videoAdUiAuthorIcon",this.g);this.C=I("videoAdUiAuthorName",this.g);this.I=I("videoAdUiLearnMore",
this.g);this.N=I("videoAdUiLearnMoreText",this.g);this.D=I("videoAdUiShare",this.g);this.o=I("videoAdUiTitle",this.g);this.F=I("videoAdUiTopBar",this.g);this.L=I("videoAdUiBottomBar",this.g);null!=this.B&&this.j.listen(this.B,"click",this.Op);null!=this.C&&this.j.listen(this.C,"click",this.Pp);null!=this.I&&this.j.listen(this.I,"click",this.Rp);null!=this.N&&this.j.listen(this.N,"click",this.Yh);null!=this.D&&this.j.listen(this.D,"click",this.Tp);null!=this.o&&this.j.listen(this.o,"click",this.Up);
null!=this.F&&this.j.listen(this.g,"mouseover",this.Sp);null!=this.S.skipOffset&&(this.k=new mS(this.S,this.g),this.k.ng(this));400>=(parseInt(Od(b,"width"),10)||b.width)&&L(this.g,"videoAdUi-mobile");this.S.R&&(L(this.g,"blazer"),window.settings&&window.settings.isTablet?L(this.g,"tablet"):L(this.g,"phone"));this.S.A&&L(this.g,"videoAdUi-swipeable");he(this.g,!1);b.appendChild(this.g);this.S.F&&!this.S.o&&(this.A=J("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));rS(this)}
z(qS,P);f=qS.prototype;f.show=function(){null!=this.g&&he(this.g,!0)};f.skip=function(){var a;if(a=null!=this.k)a=this.k,a=null!=a.S.skipOffset&&3==a.j;return a?this.k.skip():!1};f.K=function(){null!=this.g&&(sd(this.g),this.g=null);null!=this.k&&(this.k.dispose(),this.k=null);this.A=null;this.j.dispose();this.j=null;this.P=!1;qS.J.K.call(this)};
f.update=function(a,b,c,d,e){this.P=!0;null!=this.g&&(null!=this.H&&sS(this,a,c,d,e),null!=this.G&&be(this.G,a/c*100+"%"),null!=this.O&&be(this.O,b/c*100+"%"),0<c&&null!=this.S.skipOffset&&null!=this.k&&(FL(this.S.skipOffset,c),this.k.update(a,c)),this.S.B&&0<c&&5>c-a&&L(this.F,"videoAdUiTopBarNoFade"),C(this.U,function(b){b.update(a,c)},this))};function tS(a,b){a.U=b;C(b,function(a){a.display(this.g)},a)}
function rS(a){var b=a.S.N&&(a.R>a.S.ua||0==a.R),c=b&&a.S.O,d=b&&a.S.P,e=b&&a.S.k,g=b&&a.S.I,b=b&&a.S.B,h=a.S.H&&a.S.g,k="0px";null!=a.o&&(he(a.o,b),null!=a.B&&he(a.B,c),null!=a.C&&he(a.C,d),null!=a.I&&he(a.I,e),null!=a.D&&(he(a.D,g),g&&a.T("videoShareShown")),null!=a.F&&he(a.F,b||c||d||e));null!=a.H&&uS(a);null!=a.G&&(he(a.G,h),h&&(k=Od(a.G,"height")));null!=a.L&&Md(a.L,"bottom",k);null!=a.N&&he(a.N,a.S.o)}
function sS(a,b,c,d,e){var g=jS({pg:"",$h:0,qg:0});a.S.g&&a.S.G&&(b=yL(c-b),g=jS({pg:a.S.D?" \u2022 "+b:": ("+b+")",$h:d,qg:e}));Cd(a.H,g);uS(a)}function uS(a){he(a.H,a.S.j&&(!a.S.g||a.P))}f.Op=function(){this.T("videoAuthorIconClicked")};f.Pp=function(){this.T("videoAuthorClicked")};f.Rp=function(){this.T("videoLearnMoreClicked")};f.Tp=function(){this.T("videoShareClicked")};f.Up=function(){this.T("videoTitleClicked")};f.Qp=function(a){a.preventDefault()};f.Yh=function(){this.T("click")};
f.Sp=function(){L(this.F,"videoAdUiTopBarTransitions")};function vS(){this.Yd=jS({pg:"",$h:0,qg:0});var a="",b=ta("Learn More {$suffix}",{suffix:rO("")});this.We=a+b;this.skipOffset=null;this.ua=6E3;this.G=this.g=this.F=this.j=!0;this.k=!1;this.H=!0;this.I=this.Y=!1;this.N=!0;this.o=!1;this.L=!0;this.B=this.P=this.O=!1;this.C=null;this.A=!1;this.showContentThumbnail=!0;this.R=this.D=!1}
function wS(a,b,c,d,e,g,h,k,l,n){var r=new vS;r.W=b;r.D=n;r.U=null!=d?d.contentId:null;r.Y=n;r.F=!0;r.k=e;r.H=g;r.I=h;r.o=a;r.L=k;r.skipOffset=c;r.C=eS;r.R=n;r.aa=EJ(b,null!=c,d.baseYouTubeUrl);n&&(a="",b=ta("Visit Advertiser"),r.We=a+b);r.A=Uh&&CM(0);r.G=l;r.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return r};function xS(a){Qh.call(this,a)}z(xS,Qh);function yS(a){P.call(this);this.A=a;this.G=new ve;this.D=-1;this.H=!1}z(yS,P);function zS(a){this.j=!1;this.g=a.sf();this.volume=a.tc()}zS.prototype.muted=function(a,b){return!this.g&&a||0<this.volume&&0==b};f=yS.prototype;f.K=function(){AS(this);yS.J.K.call(this)};function AS(a){null!=a.j&&a.j.dispose();null!=a.g&&a.g.$d();null!=a.B&&a.B.dispose();a.B=null;null!=a.C&&a.C.dispose();a.C=null;a.G.clear();a.D=-1;a.H=!1}
function BS(a,b,c){if(!c||null==a.G.get(b)){a.G.set(b,!0);t:{if(a.k&&a.k.S.k){if("click"==b)break t;"videoLearnMoreClicked"==b&&JR(a.A,new Qh("click"))}JR(a.A,new Qh(b))}a.T(b)}}f.Dq=function(a){a=a.k;a=YP(this.A.g,null!=a?a.viewabilityString:null);this.A.g=a;BS(this,"viewable_impression",!1)};
f.qq=function(){var a=this.g.oc();if(-1!=a){this.g.Gf(.25*a)&&BS(this,"firstquartile",!0);this.g.Gf(.5*a)&&BS(this,"midpoint",!0);this.g.Gf(.75*a)&&BS(this,"thirdquartile",!0);var b=this.A,c=this.g.getCurrentTime();0>b.A&&(ML(b.j,a),b.A=0);for(var a=KL(b.j,"progress"),d=b.A;d<a.length;d++){var e=a[d];if(EL(e.j)>c)break;b.A=d+1;JF(e.g,b.g)}}CS(this)};function CS(a){0>a.D||a.H||!a.g.Gf(a.D)&&!a.g.ud()||(a.H=!0,BS(a,"engagedview",!0),a.T(new xS("viewCount")))}
f.pq=function(){BS(this,"impression",!0);BS(this,"creativeview",!0);null!=this.F||null!=this.k||this.j.listen(this.g,"click",this.us);null!=this.F&&(this.B=new nJ,this.j.listen(this.B,"click",this.nm,!1),oJ(this.B,this.F));null!=this.k&&(this.C=new nJ,this.j.listen(this.C,"click",this.nm,!1),oJ(this.C,this.k));BS(this,"start",!0);(this.g.sf()||0==this.g.tc())&&BS(this,"mute",!1)};
f.rq=function(){var a=this.g.sf(),b=this.g.tc(),c=this.o;c.g&&!a||!a&&0==c.volume&&0<b?BS(this,"unmute",!1):this.o.muted(a,b)&&BS(this,"mute",!1);this.o.g=a;this.o.volume=b};f.nq=function(){this.g.ud()?(CS(this),BS(this,"complete",!0)):this.g.uf()&&!this.g.pn()&&(this.o.j=!0,BS(this,"pause",!1))};f.oq=function(){this.o.j&&(this.o.j=!1,BS(this,"resume",!1))};f.jq=function(){CS(this);BS(this,"complete",!0)};f.nm=function(){BS(this,"click",!1)};f.kq=function(){BS(this,"error",!1)};
f.mq=function(){BS(this,"mediaLoadTimeout",!1)};f.uq=function(){BS(this,"skipshown",!0)};f.xq=function(){BS(this,"videoAuthorIconClicked",!1)};f.wq=function(){BS(this,"videoAuthorClicked",!1)};f.yq=function(){BS(this,"videoLearnMoreClicked",!1)};f.zq=function(){BS(this,"videoShareClicked",!1)};f.Aq=function(){BS(this,"videoShareShown",!0)};f.Cq=function(){BS(this,"videoTitleClicked",!1)};f.Yk=function(){BS(this,"skip",!0)};f.tq=function(){BS(this,"skip",!0)};f.us=function(){BS(this,"click",!1)};
f.lq=function(){BS(this,"fullscreen",!1)};f.sq=function(){BS(this,"exitfullscreen",!1)};function DS(a){LR.call(this,a);this.k=null;this.C=new yS(this.A);this.O=this.R=this.P=this.I=!1;this.N=1}z(DS,LR);f=DS.prototype;f.K=function(){ES(this);var a=!1;null!=this.o&&(a=this.o.Zj(),this.o.hide(),this.o=null);this.I&&(this.I=!1,this.g.uf()||this.g.ud()||this.g.pause(),HG()&&!a&&(this.g.je(.001),this.g.load("","")),GG()&&this.g.jd()&&!a&&this.g.Yj(),this.ga("contentResumeRequested"),this.ga("allAdsCompleted"));DS.J.K.call(this)};
function ES(a){Eg(a.k);a.k=null;Eg(a.C);Eg(a.A);Eg(a.F);a.P=!1;a.O=!1}function FS(a){a.vf();MR(a)?a.start():a.stop()}f.vf=function(){ES(this);DS.J.vf.call(this);MR(this)&&(this.A=new IR,this.C=new yS(this.A))};
f.Jr=function(a,b,c){if(!this.P){this.P=!0;var d=CJ(b);if(this.j.useVideoAdUi){var e=a.getExtension("AdSense"),e=this.j.ci&&((null===b?!1:"modules"==(new K(b)).Ze().toLowerCase())||null!=e&&e.C),g=!0,h=!0;if(CM(909720)||zN(a)&&30<bO(a)&&CM(909721))h=g=!1;if(X.g){var k=A(B(aO(a)))?!1:this.j.Wk,d=wS(e,d,WN(a),this.j,k,h,this.j.useShareButton,!0,g,this.j.Vk);d.ua=0}else BN(a,vF)||!A(B(a.G))?(g=WN(a),d=wS(e,d,g,this.j,!1,!1,!1,!1,!0,!1),d.C=fS,d.j=!0,d.g=!0):(g=WN(a),d=wS(e,d,g,this.j,!1,!1,!1,!1,!0,
!1),d.N=!1,d.j=!1,d.g=!1);e=d;g=this.o.ii();null===g?g=document.body:(qd(g),h=J("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%}.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}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.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}.afi .text-title{text-decoration:none}.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}.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}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative}.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{margin:5px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.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}'),
g.appendChild(h));h=1E3*bO($(this));this.k=new qS(e,g,h);g=e.W;null!=g&&($(this).G=g,e.L&&GS(this,g));e=[];d.j&&e.push("adAttribution");d.g&&e.push("countdown")}else d&&this.j.Uk&&($(this).G=d,GS(this,d));d=this.C;e=this.g;g=this.o.hi();h=this.k;AS(d);d.A.B=a.Z;d.g=e;d.k=h||null;d.g.ug();d.o=new zS(d.g);d.F=g||null;d.j=new aj(d);d.j.listen(a,"viewable_impression",d.Dq);d.j.listen(d.g,"timeUpdate",d.qq);d.j.listen(d.g,"volumeChange",d.rq);d.j.listen(d.g,"pause",d.nq);d.j.listen(d.g,"play",d.oq);d.j.listen(d.g,
"end",d.jq);d.j.listen(d.g,"beginFullscreen",d.lq);d.j.listen(d.g,"endFullscreen",d.sq);d.j.listen(d.g,"skip",d.Yk);d.j.listen(d.g,"start",d.pq);d.j.listen(d.g,"error",d.kq);d.j.listen(d.g,"mediaLoadTimeout",d.mq);null!=d.k&&(d.j.listen(d.k,"videoAuthorIconClicked",d.xq),d.j.listen(d.k,"videoAuthorClicked",d.wq),d.j.listen(d.k,"videoLearnMoreClicked",d.yq),d.j.listen(d.k,"videoTitleClicked",d.Cq),d.j.listen(d.k,"videoShareClicked",d.zq),d.j.listen(d.k,"videoShareShown",d.Aq),d.j.listen(d.k,"skipshown",
d.uq),d.j.listen(d.k,"skip",d.Yk),d.j.listen(d.k,"PUBLISHER_INVOKED_SKIP",d.tq));NR(this).listen(this.C,"engagedview",this.Oc);NR(this).listen(this.C,"videoAuthorIconClicked",this.Oc);NR(this).listen(this.C,"videoAuthorClicked",this.Oc);NR(this).listen(this.C,"videoLearnMoreClicked",this.Oc);NR(this).listen(this.C,"videoShareClicked",this.Oc);NR(this).listen(this.C,"videoShareShown",this.Oc);NR(this).listen(this.C,"videoTitleClicked",this.Oc);NR(this).listen(this.g,"timeUpdate",this.Bq);NR(this).listen(this.g,
"volumeChange",this.iq);this.be(a);d=WP(a,this.g);this.A.g=d;d=a.g;null!=d&&d instanceof iN&&(this.md(d,kF),this.vg(d),d=NR(this),dj(d,this.C,"error",this.gq,this),dj(d,this.C,"mediaLoadTimeout",this.hq,this));HS(this,a);zN(a)&&(this.C.D=30);this.g.fi(IS(this,a));this.g.load(b,c)}};f.Qt=function(a,b,c){this.R||(this.R=!0,this.ga("contentPauseRequested"));if(CM(41351068)&&(this.o.$e(),"4.4.4"==(Ac?JG(EG):""))){DS.prototype.Fo.call(this,a,b,c);return}this.Fo(a,b,c)};
f.Fo=function(a,b,c){this.I=!0;this.Jr(a,b,c);this.setVolume(this.N);this.k&&(A(B(aO(a)))?(b=this.k,null!=b.A&&(b.j.ya(b.A,"click",b.Yh),Md(b.A,"cursor","default"))):(b=this.k,null!=b.A&&(b.j.listen(b.A,"click",b.Yh),Md(b.A,"cursor","pointer"))),b=a.g.Ta,qb(b)||tS(this.k,b),this.k.show());CM(41351068)||this.o.$e();try{OR(this,a)}catch(d){JS(this,SF,d);return}this.g.play()};function KS(a,b,c,d){b=KL(b.g,c);qb(b)||(a[d]=b[0].g)}
function LS(a,b,c){b=c.getExtension(b);null!=b&&(KS(a,b,"annotation_click","cta_annotation_clicked"),KS(a,b,"annotation_close","cta_annotation_closed"),KS(a,b,"annotation_start","cta_annotation_shown"))}function IS(a,b){var c=VN(b)&&!b.D?NN(b):null,d=zN(b)&&!AN(b),e=null!=a.k&&a.j.ci&&a.k.S.o,g=b.k,h=yN(b),k;a.k?(k={},LS(k,"AdSense",b),LS(k,"dart",b),LS(k,"DFP",b)):k=null;return new YJ(h,c,k,e,d,a.j.loadVideoTimeout,g?g.tagForChildDirectedContent:!1,!1)}
function MS(a){var b=0;C(a.ads,function(a){NS(a)&&b++},a);var c=1;C(a.ads,function(a){var e=a.A;e.k=b;NS(a)&&(e.g=c,e.o=c,c++)},a)}function NS(a){a=a.g;return null!=a&&a instanceof iN}function OS(a){return kb(a.ads,function(a){return kb(PS(a),function(a){return!A(B(CJ(a.j)))})},a)}function PS(a){var b=a.j;if(b&&b.O&&(b=b.o,!qb(b)&&b[0]instanceof iN))return b[0].G;b=a.g;return NS(a)?b.G:[]}
function QS(a,b,c){try{var d=ib(a,function(a){return a.Vc}),e=ib(a,function(a){return a.g}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Vc,selmt:null===c?"":c.g,nat:!1};NG(MG.getInstance(),22,g)}catch(h){}}f.Eh=function(){MS(this);this.ga("loaded");this.T(new ZR($(this)))};
f.ac=function(a,b,c){DS.J.ac.call(this,a,b,c);a=OS(this);this.g=this.o.Wg(a);t:{if(MR(this)&&(b=this.F.getExtension("InfoCards"),b=null!=b?b.j:null,null!=b))break t;b=""}t:{if(MR(this)&&(c=this.F.getExtension("InfoCardsTracking"),c=null!=c?c.j:null,null!=c))break t;c=""}a&&(b||c)&&this.g.Ym(b,c)};f.skip=function(){MR(this)&&zN($(this))&&(null!=this.k?this.k.skip():(RR(this,"skip"),RS(this)))};f.Xi=function(){SR(this,"skipshown")};
f.start=function(){DS.J.start.call(this);try{var a=$(this),b;if(!NS(a))throw xG(nG);var c=a.g,d=c.da;if(A(B(d))){var e=PS(a),g=this.g.Pm(e,this.j.bitrate,this.j.mimeTypes||[],null!=a&&(X.g||this.o.Mg()));QS(e,this.j.bitrate,g);if(null!=g)b=c.oa=g;else throw xG(fG);}else b=new uJ("","",0,0,0,0,0,d,"");Zi(x(DS.prototype.Qt,this,a,b.j,b.g))}catch(h){SS(this,h),this.vf(),MR(this)?(yG(xG,this,tG,h,void 0),this.start()):(this.I?yG(xG,this,tG,h,void 0):(null!=this.B&&NK(this.B,KK()),zG(this,tG,h)),this.stop())}};
f.lo=function(){PR(this);return this.g.sf()?0:this.g.tc()};f.setVolume=function(a){PR(this);this.I?this.g.setVolume(a):this.N=a};f.setMediaUrl=function(a){PR(this);var b;if(b=MR(this))b=null!=$(this).k;if(b){b=$(this);var c=b.k.location,d;if(d=null!=c)(d=FF(AF,c))||(d=gf(new K(c)),d=null!=d?xa(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?FF(CF,c):!1);(d||X.g)&&null!=b.g&&b.g instanceof iN&&b.g.setMediaUrl(a)}};f.pause=function(){PR(this);this.g.pause()};
f.resume=function(){PR(this);this.g.play()};f.getRemainingTime=function(){PR(this);var a=this.g.oc(),b=this.g.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.gq=function(){JS(this,tG,xG(tG,this.g.co()))};f.hq=function(){JS(this,iG,xG(iG,null,(this.j.loadVideoTimeout/1E3).toString()))};function JS(a,b,c){SS(a,c);a.vf();MR(a)?(yG(xG,a,b,c,void 0),a.start()):(zG(a,b,c),a.stop())}function SS(a,b){var c=xG(tG,b),c=QP(c,$(a),a.g),d=DN($(a));LF(d,c)}
function TS(a){if(X.j){var b=aO($(a));null!=b&&IF(b)}a.ga("click")}function HS(a,b){var c=b;do c.C.forEach(function(a){C(kF,function(b){var c=KL(a.g,b);qb(c)||US(this,b,c)},this)},a),c=c.j;while(c)}function US(a,b,c){C(c,function(a){LL(this.A.j,a.k,a.g)},a);VS(a,b)}function VS(a,b){hc(nF,b)&&dj(NR(a),a.C,b,a.Oc,a)}
f.Oc=function(a){switch(a.type){case "start":qR.getInstance().end("ff");this.ga("start");break;case "impression":this.ga("impression");break;case "pause":this.ga("pause");break;case "resume":this.ga("resume");break;case "firstquartile":this.ga("firstquartile");break;case "midpoint":this.ga("midpoint");break;case "thirdquartile":this.ga("thirdquartile");break;case "complete":this.ga("complete");FS(this);break;case "click":this.k&&this.k.S.k?this.g.uf()?this.resume():this.pause():TS(this);break;case "engagedview":var b=
$(this);a=b.G;if(AN(b)&&!X.g&&!this.o.Mg()&&a){var b=this.g.getCurrentTime(),c=this.g.oc(),d=new K("//s._old_youtube.com/s");lf(d,"ns","yt");lf(d,"el","adunit");lf(d,"docid",a);lf(d,"eurl",document.URL);lf(d,"len",c.toFixed(2));lf(d,"tv","1");lf(d,"ps","trueview-instream");lf(d,"st",b.toFixed(2));lf(d,"et",b.toFixed(2));lf(d,"rt",b.toFixed(2));JF(d.toString())}this.ga("engagedview");break;case "videoAuthorIconClicked":WS(this);break;case "videoAuthorClicked":WS(this);break;case "videoLearnMoreClicked":this.g.pause();
TS(this);break;case "videoShareClicked":a=$(this).H;null!=a&&(a=a.videoId,b=this.j.baseYouTubeUrl,A(B(a))?a=null:(b=new K((null!=b?b:"//www._old_youtube.com/")+"watch"),c=b.g,c.set("v",a),Ze(b,c),b.we="action=share",a=b.toString()),null!=a&&(IF(a),a=XS(this),null!=a&&(a=MF(a,"sharebuttonclicked",void 0),JF(a))));break;case "videoShareShown":a=XS(this);null!=a&&(a=MF(a,"sharebuttondisplayed",void 0),JF(a));break;case "videoTitleClicked":a=$(this);b=a.H;null!=b&&(a=EJ(b.videoId,null!=WN(a),this.j.baseYouTubeUrl),
null!==a&&(this.g.pause(),IF(a)));break;case "skipshown":this.ga("skippableStateChanged");break;case "skip":RS(this)}};function XS(a){var b=$(a).getExtension("AdSense");if(!(b=null!=b?new K(b.j):null))t:{if(a=MN($(a)))if(a=gN(a,"start"),!qb(a)){b=new K(a[0].g);break t}b=null}return b}function RS(a){Zi(function(){this.ga("skip");FS(this)},0,a)}f.be=function(a){DS.J.be.call(this,a);VS(this,"impression")};f.md=function(a,b){DS.J.md.call(this,a,b);C(b,function(a){VS(this,a)},this)};
f.vg=function(a){DS.J.vg.call(this,a);a instanceof iN&&(a=jN(a),C(a.Ea(),function(a){VS(this,a)},this))};f.getMediaUrl=function(){if(!MR(this))return null;var a=$(this);if(!NS(a))throw xG(nG);a=a.g.G;return qb(a)?null:a[0].j};
f.Bq=function(){var a=this.g.oc(),b=this.g.Dn(),c=this.g.getCurrentTime(),d=0,e=0;MR(this)&&(e=$(this),d=e.A.g,e=e.A.k);if(null!=this.k&&0<=a&&0<=c){if(!this.O){var g=this.g.oc(),h=bO($(this)),g=Math.abs(g-h);2<g&&(g=xG(mG,null,Number(g).toFixed(2)),g=QP(g,$(this),this.g),h=DN($(this)),LF(h,g));this.O=!0}this.k.update(c,b,a,d,e)}};f.iq=function(){var a=this.g.tc();a!=this.N&&(this.N=a,this.ga("volumeChange"),0==a&&this.ga("mute"))};
function GS(a,b){aS(b,function(a){a=new GM(a);dO($(this))==a.videoId&&(YS(this,a),!A(B(a.channelId))&&a.g&&cS(a.channelId,function(a){a=new EM(a);if(null!=this.k){var b=this.k,c=a.j;b.S.P=!A(B(c));b.S.Z=c;if(null!=b.C){var c="",h=ta("by {$userDisplayName}",{userDisplayName:""+b.S.Z});Cd(b.C,(new xO(c+h,void 0)).getContent())}rS(b);b=this.k;c=a.g;b.S.O=!A(B(c));null!=b.B&&(h=nd("img"),h.setAttribute("src",c),L(h,"videoAdUiAuthorIconImage"),b.B.appendChild(h),null!=b.o&&L(b.o,"videoAdUiTitleWithAuthorIcon"));
rS(b)}$(this).F=a;this.ga("youTubeChannelMetadata");if(a=this.k)a=$(this),b=a.H,a=X.g&&qb(UK(a))&&null!=a.F&&null!=b&&b.g;if(a){a=$(this);NR(this).listen(window,"message",this.or);var b=$(this),c=b.F.channelId,h=yN(b),k=this.j.contentId,l=this.j.baseYouTubeUrl,l=new K((null!=l?l:"//www._old_youtube.com/")+"ad_companion"),n=l.g;n.set("adformat",h);n.set("p",c);n.set("render","video_wall_companion");k&&n.set("content",k);c=new PO("1",new G(300,250),"IFrame",null,l.toString());c.Se(b);c.C=!0;a.B=[new fO(c,
[],null)];OR(this,a)}},this))},a)}f.or=function(a){var b=a.g;if("companion-setup-complete"==b.data){a=$(this);var c=encodeURIComponent(B(aO(a)))+","+encodeURIComponent(XS(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=aO(a)?210:185}else"pause-video"==b.data&&this.pause()};
function YS(a,b){if(null!=a.k&&b.g){var c=a.k,d=b.title;c.S.B=!A(B(d));c.S.title=d;zs.test(ys(c.S.title,void 0));null!=c.o&&Cd(c.o,c.S.title);rS(c);c=a.k;if(null!=c.D){var c=c.D,d="",e=ta("Share");Cd(c,d+e)}}$(a).H=b;a.ga("youTubeVideoMetadata")}function WS(a){var b;b=$(a).F;if(null!=b){b=b.channelId;var c=a.j.baseYouTubeUrl;b=A(B(b))?null:(null!=c?c:"//www._old_youtube.com/")+"channel/UC"+b;null!==b&&(a.g.pause(),IF(b))}};function ZS(a){this.g=a}f=ZS.prototype;f.hi=function(){return this.g.hi()};f.ii=function(){return this.g.ii()};f.te=function(){return this.g.te()};f.Wg=function(a){return this.g.Wg(a)};f.Zj=function(){return this.g.Zj()};f.Mg=function(){return this.g.Mg()};f.hide=ba;f.$e=ba;f.zg=ba;function $S(a,b,c,d,e,g,h){P.call(this);this.o=this.B=0;this.C=a;this.Lc=b;this.Y=c;this.A=null;this.N=d;this.O=g;this.I=X.k;this.g=null;this.R="normal";this.H=null;this.F=e;this.k=[];this.U=this.P=this.G=!1;this.L=h;aT(this)}z($S,P);f=$S.prototype;f.init=function(a,b,c){bT(this,c);null==this.D&&(this.D=new aj(this),dj(this.D,this.N,"adsLoaderSdkAdLoaded",this.hx,this),dj(this.D,this.N,"adsLoaderSdkAdError",this.gx,this));cT(this)};
f.start=function(){this.G=!0;dT(this);0<this.k.length?eT(this):("always"==X.k&&null!=this.L&&NK(this.L,KK()),yG(W,this,XF,void 0,void 0),0==this.Lc&&this.T("contentResumeRequested"),fT(this))};f.destroy=function(){null!=this.D&&(this.D.dispose(),this.D=null);this.F.hide();gT(this);X.k=this.I;this.G=!1};f.getCurrentAd=function(){return this.o<this.k.length?this.k[this.o].g[0]:null};f.pause=function(){null!=this.g&&this.g.pause()};f.resume=function(){null!=this.g&&this.g.resume()};
f.skip=function(){null!=this.g&&this.g.skip()};f.getRemainingTime=function(){return null!=this.g?this.g.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.H=a,null!=this.g&&this.g.setVolume(this.H))};function bT(a,b){null!=b&&(a.R=b);null!=a.g&&(a.g.sh(b),a.g.Nf())}function aT(a){C(a.C,function(a){a=new K(a.k.adTagUrl);var c=mf(a,"max_ad_duration");p(c)||mf(a,"pmxd")})}
f.hx=function(a){X.k=this.I;var b=a.B;qb(b)||(a=a.A,a.g&&C(b,function(a){a.da=!1},this),sb(this.k,new sL(b,a.g,a.j)));this.B++;cT(this)};f.gx=function(a){a=a.k;X.k=this.I;a.getMessage();yG(W,this,XF,void 0,void 0);this.B++;cT(this)};function cT(a){a.B<a.C.length&&null!=a.C[a.B]&&!(2<=a.k.length-a.o)?hT(a):a.P||(a.T("adBreakInitialized"),a.P=!0)}function hT(a){var b=a.C[a.B];X.k="on_master_ad";tR(a.N,b.k,b)}
function dT(a){null==a.Lc||kb(a.k,function(a){return!a.j})||(a.k=hb(a.k,function(a){return!(a.j&&!a.k)}))}
function eT(a){if(a.o<a.k.length){var b=a.k[a.o];gT(a);try{var c=b.g,b=null;if(xN(c[0]))a.O.jl&&(c=zb(c,0,1)),b=new DS(c);else{var d=c[0];if(null!=d&&UN(d,"nonlinear"))b=new TR(c);else throw Error("No valid creative type found.");}b.B=a.L;b.ac(new ZS(a.F),{currentTime:0},a.O);a.g=b;if(null==a.g)throw Error("The current ads manager is not defined");null!=a.j&&(a.j.dispose(),a.j=null);a.j=new aj(a);var e=a.g;dj(a.j,e,"adError",a.Qq,a);dj(a.j,e,"click start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.Rq,a);a.j.listen(e,["allAdsCompleted"],ba);dj(a.j,e,"contentPauseRequested",a.Oq,a);dj(a.j,e,"contentResumeRequested",a.Pq,a);if(iT(a.g)){var g;g=MN($(a.g)).ja;g=0<g?g:15;null!=a.A&&a.A.dispose();a.A=new Xi(1E3*g);gj(a.j,a.A,"tick",a.Sq,a)}a.g.init(a.R);null!=a.H&&a.g.setVolume(a.H);if(iT(a.g))a.T("contentResumeRequested"),a.F.hide(),a.F.zg(),a.g.start(),null!=a.A&&a.A.start();else{var h=a.g;if(null!=h&&h instanceof DS)a.F.$e(),a.g.start();else throw Error("Unknown ads manager type.");}}catch(k){a.o++,
eT(a)}a.B<a.C.length&&null!=a.C[a.B]&&hT(a)}else a.T("contentResumeRequested"),fT(a)}function gT(a){null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.dispose(),a.j=null);null!=a.g&&(a.g.destroy(),a.g=null)}f.Sq=function(){gT(this);fT(this)};f.Qq=function(){this.o++;eT(this)};f.Pq=function(){this.o++;eT(this)};f.Oq=function(){this.U||(this.T("contentPauseRequested"),this.U=!0)};function iT(a){return null!=a&&a instanceof TR}function fT(a){a.G=!1;a.T("allAdsCompleted")}
f.Rq=function(a){jT(this,a.type,a.getAd());this.T(a)};function jT(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;C(a.k,function(a,b){var g=a.g;fb(g,c);d+=g.length;b<this.o&&(e+=g.length)},a);b=c.A;var g=e+b.o;b.k=d+(a.C.length-a.B);b.g=g;b.j=a.Y;b.A=a.Lc}};function kT(a){Qh.call(this,a);this.k=null}z(kT,Qh);function lT(a,b,c){P.call(this);this.j=a;this.g=[];this.B=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.D=null!=c&&ia(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.k=null;this.o=!1;mT(this,b)}z(lT,P);function nT(a){this.g=a;this.k=this.j=!1}function oT(a){null!=a.k&&(a.k.dispose(),a.k=null);a.j.stop();a.o=!1}function pT(a){if(a.o){var b=D(a.g,function(a){return-1==a.g},a);null!=b&&qT(a,!0,b)}}
function mT(a,b){C(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Ib(this.g,new nT(a),function(a,b){return Cb(a.g,b.g)})},a)}lT.prototype.A=function(){if(this.o){var a=this.j.currentTime;if(isNaN(a)||0>a)rT(this);else{var b=sT(this,a);this.B?C(b,function(a){qT(this,!0,a)},this):qT(this,!0,db(b));qT(this,!1,tT(this,a))}}};function sT(a,b){for(var c=[],d=0;d<a.g.length;d++){var e=a.g[d];-1!=e.g&&e.g<=b&&sb(c,e)}return c}
function tT(a,b){for(var c=0;c<a.g.length;c++){var d=a.g[c];if(-1!=d.g&&b>=d.g-a.D&&b<d.g&&!a.g[c].j)return d}return null}lT.prototype.C=function(){rT(this)};function rT(a){a.T(new kT("contentTrackingError"))}function qT(a,b,c){if(null!=c){if(!c.j){var d=new kT("requestAds");d.k=c.g;a.T(d);c.j=!0}b&&!c.k&&(b=new kT("playAds"),b.k=c.g,a.T(b),c.k=!0)}};function uT(a,b){N.call(this);this.k=a;this.j=-1;this.g=b}z(uT,N);function vT(a,b){if(0==b.Lc||0>=a.g||0>=a.j)return!1;var c=y()/1E3,d=b.Lc-a.k.currentTime;0<d&&(c+=d);return c-a.j<=a.g};function uR(a,b){LR.call(this,[]);this.P=a;this.G=new ve;this.k=this.g=null;this.Y=new Bj;this.C=null;this.N=b;this.U=this.O=!1;this.I=null;this.Z=this.aa=-1;this.R=null}z(uR,LR);f=uR.prototype;
f.ac=function(a,b,c){null!=this.k&&(oT(this.k),this.k.dispose(),this.k=null);uR.J.ac.call(this,a,b,c);c=this.P.g.Ea();b=new fK(b);this.k=new lT(b,c,{prefetch:4});C(c,function(b,c){if(isNaN(b))throw W(QF,null,"timeOffset",b+"");var g=ia(b)&&!isNaN(b)?this.P.g.get(b,[]):[];if(!qb(g)){g=new $S(g,b,0==b||-1==b?b:c,this.N,a,this.j,this.B);if(xe(this.G,b))throw W(bG,null,"Multiple ad breaks cannot share same ad play time.");this.G.set(b,g)}},this);this.I=db(c);kb(c,function(a){if(-1==a)return this.I=a,
!0;this.I=this.I<a?a:this.I;return!1},this)};
f.init=function(a){uR.J.init.call(this,a);null!=this.k&&(wT(this),a=NR(this),dj(a,this.k,"requestAds",this,this),dj(a,this.k,"playAds",this,this),dj(a,this.k,"contentTrackingError",this,this),dj(a,this.k,"adBreakReady",this.wr,this),dj(a,this.N,"contentComplete",this.xr,this),this.N.sd=!1,a=this.k,a.o||(null==a.k&&(a.k=new aj(a)),a.k.listen(a.j,"currentTimeUpdate",a.A,!1),a.k.listen(a.j,"contentWrapperError",a.C,!1)),a.j.start(),a.o=!0,this.k.A(),a=ia(0)&&!isNaN(0)?this.P.g.get(0,[]):[],qb(a)&&this.ga("contentResumeRequested"))};
f.Eh=function(){this.zd();this.T(new ZR(null))};f.destroy=function(){this.dispose()};f.K=function(){this.N.sd=!0;if(0<this.G.Ma()){var a=this.G.La();C(a,this.yj,this);this.G.clear()}wT(this);xT(this);null!=this.o&&(this.o.hide(),this.o=null);uR.J.K.call(this)};f.start=function(){uR.J.start.call(this)};f.stop=function(){null!=this.g&&this.g.destroy()};f.pause=function(){null!=this.g&&this.g.pause()};f.resume=function(){null!=this.g&&this.g.resume()};f.skip=function(){null!=this.g&&this.g.skip()};
f.setVolume=function(a){uR.J.setVolume.call(this,a);null!=this.g&&this.g.setVolume(a)};f.Nf=function(){uR.J.Nf.call(this);var a=fd(window);this.aa=a.width;this.Z=a.height;null!=this.g&&bT(this.g,this.H)};f.getRemainingTime=function(){return null!=this.g?this.g.getRemainingTime():-1};f.zd=function(){return this.P.g.Ea()};f.getCurrentAd=function(){return null!=this.g?this.g.getCurrentAd():null};f.no=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(Dj(this.Y,a),yT(this))};
function wT(a){null!=a.D&&(a.D.dispose(),a.D=null);a.O=!1;null!=a.k&&oT(a.k)}
function yT(a){if(null==a.C){var b=Ej(a.Y);if(null!=b){a.C=b;var c=a.G.get(a.C.k);null==c?(a.C=null,yT(a)):"requestAds"!=b.type&&"playAds"!=b.type?(a.C=null,yT(a)):null!=a.R&&vT(a.R,c)?(a.C=null,yT(a)):"requestAds"==b.type?(b=NR(a),dj(b,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),a.T,a),dj(b,c,"allAdsCompleted",a.gn,a),dj(b,c,"contentPauseRequested",a.en,a),dj(b,c,"contentResumeRequested",a.fn,a),dj(b,c,"adBreakInitialized",
a.hn,a),c.init(a.aa,a.Z,a.H)):"playAds"==b.type&&(null!=a.g&&a.g.G&&a.yj(a.g),a.g=c,a.g.setVolume(a.volume),bT(a.g,a.H),a.g.start())}}}
f.yj=function(a){a.destroy();this.G.remove(a.Lc);this.g=null;null!=this.D&&(this.D.ya(a,"click start pause firstquartile midpoint thirdquartile complete loaded adMetadata".split(" "),this.T,!1,this),this.D.ya(a,"allAdsCompleted",this.gn,!1,this),this.D.ya(a,"contentPauseRequested",this.en,!1,this),this.D.ya(a,"contentResumeRequested",this.fn,!1,this),this.D.ya(a,"adBreakInitialized",this.hn,!1,this))};f.xr=function(a){this.O=!0;-1==this.I?a.o=!1:zT(this);pT(this.k)};
f.wr=function(a){a=a.k;-1==a?Zi(function(){zT(this)},500,this):0==a&&Zi(function(){this.ga("contentResumeRequested")},100,this);this.T(new mF("adBreakReady",null,{vy:a}))};f.gn=function(a){this.yj(a.target);(0==this.G.La().length||this.O)&&zT(this);this.C=null;yT(this)};function zT(a){a.U||(a.U=!0,a.N.sd=!0,a.ga("allAdsCompleted"),-1==a.I&&xT(a))}function xT(a){pK.clear();null!=a.B&&(a=a.B.od(),null!=a&&EK(a,pK.g))}f.en=function(){var a=this.k;a.j.stop();a.o=!1;this.ga("contentPauseRequested")};
f.fn=function(){this.ga("contentResumeRequested");if(!this.O){var a=this.k;a.j.start();a.o=!0}this.C=null};f.hn=function(){this.C=null;yT(this)};f.ga=function(a){var b=null;null!=this.g&&(b=this.g.getCurrentAd());this.T(new mF(a,b))};f.Dm=function(a,b){return this.R=new uT(a,b)};function AT(a){LR.call(this,a);this.Y=this.U=this.O=!1;this.N=[];this.R=Ya();this.g=null;this.k=!0;this.P=-1;this.I=1}z(AT,LR);f=AT.prototype;
f.init=function(a){AT.J.init.call(this,a);a=cO($(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.j.contentId&&(a=Te(a,"v",this.j.contentId))}a=B(a)}else{var b=new K(a),c=new K("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.kb&&Ue(c,"https");a=Ze(c,a||"",void 0).toString()}this.C=J("iframe",{src:HF(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
NR(this).listen(window,"message",this.jw);NR(this).listen(this.C,"load",this.hw);NR(this).listen(this.C,"error",this.iw);this.o.te().appendChild(this.C)};f.ac=function(a,b,c){AT.J.ac.call(this,a,b,c);this.k=MN($(this))instanceof iN;this.g=a.Wg(!1);NR(this).listen(this.g,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.Sv)};f.stop=function(){this.o.hide();AT.J.stop.call(this)};
f.start=function(){AT.J.start.call(this);var a=$(this),b=WP(a,this.g);this.A.g=b;if(b=a.g)this.be(a),this.md(b,kF),this.vg(b);this.g.ug();this.o.zg();this.C.style.opacity=1;this.Y=!0;this.k&&this.ga("contentPauseRequested");BT(this)};f.pause=function(){CT(this,"pauseAd")};f.resume=function(){CT(this,"resumeAd")};f.setVolume=function(a){AT.J.setVolume.call(this,a);CT(this,"setAdVolume",{value:a})};
f.K=function(){var a=this.o.te();null!=a&&qd(a);this.k&&this.ga("contentResumeRequested");this.ga("allAdsCompleted");this.O=!1;this.N=[];AT.J.K.call(this)};f.Eh=function(){};
f.hw=function(){var a=this.g.zn();qb(a)&&(a=this.j.mimeTypes);DT(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=KN($(this)),b=B(aO($(this))),b={desiredBitrate:this.j.bitrate,creativeData:a,viewMode:this.H,clickThroughUrl:b};cO($(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.j.surveyCreativeData&&(b.creativeData=this.j.surveyCreativeData);DT(this,"initAd",b);C(this.N,function(a){DT(this,a.type,a.params)},
this);this.O=!0;this.N=[]};function CT(a,b,c){a.O?DT(a,b,c):a.N.push({type:b,params:c})}function DT(a,b,c){null!=a.C?(null!=c||(c={}),c.session=a.R,c.type=b,a.C.contentWindow.postMessage(Mb(c),"*")):(ET(a,vG,null),a.stop())}
f.jw=function(a){a=a.g;if(a.source==this.C.contentWindow&&(a=Kb(a.data),a.session==this.R&&u(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.o.$e();this.g.getVideoUrl()!=a.src&&this.g.load(a.src,a.mimetype);this.g.play();break;case "pause":this.g.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.k||($i(this.P),ia(a)&&-1!=a||(a=30),this.P=Zi(this.nu,1E3*a,this));break;case "AdClickThru":RR(this,"click");this.ga("click");break;case "AdError":ET(this,vG,null);this.stop();
break;case "AdExpandedChange":this.ga("expandedChanged");break;case "AdImpression":this.ga("impression");break;case "AdLinearChange":a=a.isLinear;!this.k&&a?(this.ga("contentPauseRequested"),$i(this.P)):!a&&this.k&&(this.ga("contentResumeRequested"),this.k=a,CT(this,"getAdRemainingTime"));this.k=a;break;case "AdLoaded":this.U=!0;BT(this);SR(this,"loaded");break;case "AdPaused":SR(this,"pause");break;case "AdPlaying":SR(this,"resume");break;case "AdRemainingTimeChange":this.k||CT(this,"getAdRemainingTime");
break;case "AdSkipped":SR(this,"skip");break;case "AdStarted":RR(this,"impression");RR(this,"creativeview");this.ga("start");break;case "AdStopped":RR(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.k?RR(this,"acceptinvitationlinear"):RR(this,"acceptinvitation");break;case "AdUserMinimize":RR(this,"collapse");break;case "AdUserClose":SR(this,"userClose");break;case "AdVideoComplete":SR(this,"complete");break;case "AdVideoFirstQuartile":SR(this,"firstquartile");break;case "AdVideoMidpoint":SR(this,
"midpoint");break;case "AdVideoStart":RR(this,"start");break;case "AdVideoThirdQuartile":SR(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.I&&this.ga("volumeChange");0==a&&0!=this.I?(RR(this,"mute"),this.ga("mute")):0==this.I&&0!=a&&RR(this,"unmute");this.I=a;this.g.setVolume(a);break;case "Ping":JF(a.url)}};f.iw=function(a){ET(this,cG,a);this.stop()};function ET(a,b,c){var d=xG(b,c),d=QP(d,$(a)),e=DN($(a));LF(e,d);zG(a,b,c)}
f.Sv=function(a){switch(a.type){case "timeUpdate":a=this.g.oc();var b=this.g.getCurrentTime();DT(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":FT(this,"ended");break;case "mediaLoadTimeout":FT(this,"stalled");break;default:FT(this,a.type)}};function FT(a,b){DT(a,"wrapperCall",{messageType:b})}function BT(a){a.U&&a.Y&&(CT(a,"startAd"),a.k||CT(a,"getAdRemainingTime"))}f.nu=function(){CT(this,"stopAd")};function GT(){}function wR(a){if(!qb(a)){var b=a[0],c=cO(b),c=($N(b,["402"])||u(c)&&!fa(c.match("//s0.2mdn.net/instream/html5/survey/survey.html")))&&X.g;switch(null!=cO(b)&&c?"vpaid":VN(b)&&UN(b,"nonlinear")?"overlay":UN(b,"linear")?"video":UN(b,"nonlinear")?"overlay":null){case "overlay":return VN(b)?new YR(a):new TR(a);case "video":return new DS(a);case "vpaid":return new AT(a)}}return null};function HT(a){P.call(this);this.j=a;a=new MK(new vK);this.g=new oR(new GT,a,pK);this.g.listen("adsManagerLoaded",this.T,!1,this);this.g.listen("adError",this.T,!1,this);this.g.listen("adLoadError",this.T,!1,this)}z(HT,P);function IT(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.mh=a.j.D;pR(a.g,b,c)}
HT.prototype.K=function(){null!=this.g&&(this.g.ya("adsManagerLoaded",this.T),this.g.ya("adError",this.T),this.g.ya("adLoadError",this.T),this.g=null);HT.J.K.call(this)};var JT={UB:0,ay:-1,YA:-2};function KT(a){this.g=a}f=KT.prototype;f.hi=function(){return cK(this.g)};f.ii=function(){return this.g.C};f.te=function(){return this.g.C};f.Wg=function(){var a=this.g.k;return null!=a?a:new FJ};f.$e=function(){var a=this.g;null!=a.g&&a.g.show()};f.zg=function(){};f.Zj=function(){return this.g.A};f.Mg=function(){return this.g.D};f.hide=function(){};function vR(a,b){Qh.call(this,"adsManagerLoaded");this.k=a;this.o=b}z(vR,Qh);function LT(a,b,c,d){a.k.ac(new KT(b),c,d);return a.k};function MT(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function NT(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ja(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function OT(a,b){if(a){var c=NN(a);if(c){var d=ON(a)||[];b.ad_id=vb(d,c).join(",");if(c=CN(a))d=QN(a)||[],b.ad_sys=vb(d,c).join(",");zN(a)&&(b.skip=1)}}}
function PT(a,b){if(a[b])return MT(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return MT(a[d]);return!1};function QT(a,b,c,d){this.o=a;this.A=b;this.g=c;this.B=d}QT.prototype.k="";QT.prototype.j="";function RT(a){var b={};b.l_ns=a.A;b.l_state=a.B;b.sst=a.o;b.sidx=0;a.k&&(b.at=a.k);a.j&&(b.ad_id=a.j);return b};var ST=!1;function TT(){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 UT(){var a=t("window.google_show_companion_ad");ja(a)?a():ST=!0}function VT(){var a=t("yt.www.watch.ads.setCompanion");a&&a()}function WT(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)}Mg("showCompanionAdLoaded",function(){ST&&(UT(),ST=!1)});function XT(a,b,c,d){Ch.call(this);this.g=a;this.type=b+"_"+c;this.j=d;this.k=null;this.H=c}z(XT,Ch);XT.prototype.A=function(){return this.type};XT.prototype.getCurrentAd=function(){return this.j?this.j.getCurrentAd():null};function ZT(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=ba;this.skipTime=0;this.videoUrl=this.videoId=""};function $T(a){this.g=a}var aU=[1,2];function bU(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 cU(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 dU(a,b){this.g=a;this.A=b}dU.prototype.o=null;dU.prototype.j=NaN;function eU(a,b,c){a.g.publish("AD_LOGGING_EVENT",b,c)}function fU(a){gU(a);var b=hU(a);if(a.k){var c=iU(a.A),d=a.k.y-c.top,d=Math.round(a.k.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}eU(a,15,b)}function jU(a){gU(a);var b=hU(a);if(isNaN(a.j))gU(a);else{var c=y()-a.j;b.ad_stl=c}eU(a,4,b)}function kU(a){gU(a);var b=hU(a),c=a.g.ek();c?b.ad_fmt=c:gU(a);eU(a,5,b)}
function lU(a){var b=hU(a),c=a.g.ek();c?b.ad_fmt=c:gU(a);eU(a,14,b)}function hU(a){var b={},c=a.g.k,d=a.g.bh(),e=a.g.zj();OT(a.g.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=nh(e),b.ad_dom=c,b.ad_v_url=e.substr(0,512));b.at=a.g.A();return b}function gU(a){a.o||(a.o="InstreamAdDisplay ("+a.g.A()+")")};function mU(a,b,c,d,e,g){XT.call(this,b,a,2,c);this.g.subscribe("onVolumeChange",this.Ql,this);this.g.subscribe("control_toggle_play_pause",this.Rl,this);this.g.subscribe("control_play",this.$i,this);this.g.subscribe("control_pause",this.Zi,this);this.G=d;this.B=new dU(this,this.g);this.o=new lr(this);this.F=this.C=!1;this.D=0;this.L=e;this.I=!!g}z(mU,XT);mU.g=2E3;f=mU.prototype;f.ob=null;f.Ge=!1;f.zf=null;f.yf=null;f.Af=null;
f.show=function(){this.B.j=y();var a;if(a=this.G){var b=mh(a),b=b.v||b.video_id;if(!b){var c=Ke(He(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 Fn({video_id:b,dash:"0"}):null}else a=null;this.k=a;var d;a=new ZT;a.isSkippable=this.L;a.skip=x(this.Cr,this);a.skipShown=x(this.j.Xi,this.j);if(b=this.getCurrentAd())a.clickThroughUrl=aO(b)||"",a.skipTime=XN(b,bO(b))||0;this.k?(this.k.Hc=!0,d={video_id:this.k.videoId},
a.videoId=this.k.videoId,this.k.subscribe("onStatusFail",this.Sl,this),this.k.subscribe("dataloaded",this.Tl,this),b=this.g.X(),b=new bC(b.k),b.ea="adunit",b.autoplay=!0,b.A=this.type,b=eC(b,this.k,this.g.app.k.he()),Wn(this.k,b)):(this.G&&(a.videoUrl=this.G),nU(this));this.C||(oU(this.g,-1,d,a),this.xl())};f.Cr=function(){this.g.o.k.T("skip")};function pU(a){a.k&&(a.k.unsubscribe("onStatusFail",a.Sl,a),a.k.unsubscribe("dataloaded",a.Tl,a))}
f.Tl=function(){pU(this);Rn(this.k);var a=new VD(this.g.X()),b=this.k;b.k&&b.k.j.length?(a=Dn(this.k.H,WD(a,this.k)))?(a=a.g)?(a=new K(ln(a)),a.g.set("autoplay","1"),this.j.setMediaUrl(a.toString()),nU(this)):qU(this,Error("Failed to determine ad media resource.")):qU(this,Error("Failed to determine ad media format.")):qU(this,Error("No selectable formats."))};
function nU(a){if(yg||2.2<=Xl&&3>Xl||(yg||zg)&&!Cg){var b=y()-a.B.j,b=mU.g-b;a.D=M(x(a.tn,a),Math.max(0,b));L(kp(a.g.g),"ad-interstitial-showing")}else a.tn()}
f.tn=function(){rU(this);this.ob=sU(this.g,!0);this.Af=kp(this.g.g);if(this.g.ca.A)sd(I("video-ad-status-bar"));else{var a=kp(this.g.g);this.zf=I("video-ad-time-left",a);var a=I("html5-ad-progress-list",a),b=nd("div");L(b,"ytp-ad-progress");a.appendChild(b);this.yf=b;this.o.listen(this.ob,"timeupdate",this.Ot)}uf(this.Af,["ad-showing","ad-interrupting"]);this.o.listen(nA(this.g.j),"mouseup",this.Mt);this.o.listen(this.ob,"waiting",this.xl);this.g.subscribe("onResize",this.kj,this);try{this.o.listen(this.j,
"adError",this.Lt);this.o.listen(this.j,"click",this.Kt);this.o.listen(this.j,"complete",this.qj);this.o.listen(this.j,"pause",this.Nm);this.o.listen(this.j,"start",this.Om);this.o.listen(this.j,"skip",this.Nt);this.kj();var c=this.g,d=c.j,e=tU(c);d.g.X().o&&(ae(d.j,e),Qd(d.j,0,0));this.I||this.j.start()}catch(g){qU(this,g)}};f.Om=function(){this.Ge=!0;this.C=!1;this.F||(this.F=!0,jU(this.B),uU(this.g,1));hq(this.g,!0);oU(this.g,1);this.publish("adPlay",this)};
f.Nm=function(){this.Ge=!1;hq(this.g,!1);oU(this.g,2)};f.Nt=function(){lU(this.B);this.qj()};f.qj=function(){this.C||(kU(this.B),this.Ge=!1,this.C=!0,this.F=!1,oU(this.g,0),uU(this.g,0),this.publish("adEnd",this))};f.Lt=function(a){qU(this,a.k)};function qU(a,b){a.Ge=!1;a.C=!0;oU(a.g,0);a.publish("adError",b)}f.Sl=function(){pU(this);qU(this,Error("Request to get video data failed."))};f.Kt=function(){fU(this.B);this.publish("select")};
f.Mt=function(a){p(a.g)||Yf(a);var b=a.g;p(a.j)||Yf(a);this.B.k=new F(b,a.j)};f.Ot=function(a){var b=Zq(this.j.getRemainingTime());this.zf.innerHTML=b;b=this.bh()?this.ob.getCurrentTime()/this.bh():0;b=Math.round(1E3*b)/10;this.yf.style.width=b+"%";this.ob.ended&&M(x(this.qj,this,a),50)};f.xl=function(){!this.Ge&&this.F||oU(this.g,3)};
f.K=function(){this.g.unsubscribe("control_toggle_play_pause",this.Rl,this);this.g.unsubscribe("control_play",this.$i,this);this.g.unsubscribe("control_pause",this.Zi,this);this.g.unsubscribe("onResize",this.kj,this);this.g.unsubscribe("onVolumeChange",this.Ql,this);this.o.removeAll();pU(this);this.I||this.j.destroy();this.ob&&(lA(this.g.j),this.ob=null);rU(this);this.zf&&(this.zf.innerHTML="",this.zf=null);this.yf&&(sd(this.yf),this.yf=null);this.Af&&(wf(this.Af,["ad-showing","ad-interrupting"]),
this.Af=null);this.C=!0;mU.J.K.call(this)};function rU(a){a.D&&(Qf(a.D),a.D=0,vf(kp(a.g.g),"ad-interstitial-showing"))}f.bh=function(){return this.ob?this.ob.duration||0:null};f.ek=function(){return null};f.zj=function(){return this.ob&&this.ob.currentSrc?this.ob.currentSrc:null};f.Ql=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Sb(a/100,0,1),this.j.setVolume(a))};f.Rl=function(){this.Ge?this.Zi():this.$i()};f.$i=function(){this.ob&&(this.j.resume(),this.Om())};
f.Zi=function(){this.ob&&(this.j.pause(),this.Nm())};f.kj=function(){kA(this.g.j)&&ae(kA(this.g.j),tU(this.g))};function vU(a,b,c,d,e){XT.call(this,b,a,2,c);this.g.subscribe("control_toggle_play_pause",this.Bl,this);this.g.subscribe("control_play",this.vi,this);this.g.subscribe("control_pause",this.ui,this);this.C=new dU(this,this.g);this.o=new lr(this);this.B=wU(b);this.B.subscribe("statechange",this.Ye,this);this.B.subscribe("internalvideodatachange",this.Al,this);this.D=this.F=!1;this.I=d;this.G=!!e}z(vU,XT);f=vU.prototype;f.Rg=!1;f.gf=null;f.ff=null;f.hf=null;
f.show=function(){var a=this.g;xU(a.app,wU(a));this.C.j=y();this.hf=kp(this.g.g);this.B.subscribe("progresssync",this.ll,this);if(this.g.ca.A)sd(I("video-ad-status-bar"));else{a=kp(this.g.g);this.gf=I("video-ad-time-left",a);var a=I("html5-ad-progress-list",a),b=nd("div");L(b,"ytp-ad-progress");a.appendChild(b);this.ff=b}uf(this.hf,["ad-showing","ad-interrupting"]);this.g.subscribe("onResize",this.ri,this);try{this.o.listen(this.j,"adError",this.Pr),this.o.listen(this.j,"click",this.Or),this.o.listen(this.j,
"complete",this.Lr),this.o.listen(this.j,"engagedview",this.Mr),this.o.listen(this.j,"pause",this.Zl),this.o.listen(this.j,"start",this.$l),this.o.listen(this.j,"skip",this.Qr),this.o.listen(this.j,"youTubeChannelMetadata",this.Nr),this.ri(),this.G||this.j.start()}catch(c){yU(this,c)}};
f.Al=function(a,b,c){if("newdata"==a&&this.k!=c){a={video_id:c.videoId};b=new ZT;b.isSkippable=this.I;b.skip=x(this.j.skip,this.j);b.skipShown=x(this.j.Xi,this.j);var d=this.getCurrentAd();d&&(b.clickThroughUrl=aO(d)||"",b.skipTime=XN(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.zj()||"");oU(this.g,-1,a,b)}this.k=c};f.Ye=function(a){a=a.state;U(a,128)&&yU(this,Error(a.g.message||"Video player error."))};
f.$l=function(){this.Rg=!0;this.D=!1;if(!this.F){this.F=!0;jU(this.C);uU(this.g,1);var a=this.g.X();this.g.ca.A&&"3"==a.j&&(a=this.g.app.k,"3"==a.app.X().j&&(a.g.controls=!1))}oU(this.g,1);this.publish("adPlay",this)};f.Zl=function(){this.Rg&&(this.Rg=!1,oU(this.g,2))};f.Lr=function(){kU(this.C);zU(this);this.D=this.F=!1};
function zU(a){var b=new hF;b.k=a.D;b.j=y();a.k&&a.k.xa&&(b.g=a.k.xa);TE(wU(a.g));oU(a.g,0,b);uU(a.g,0);a.publish("adEnd",a);b=a.g.X();a.g.ca.A&&"3"==b.j&&(a=a.g.app.k,"3"==a.app.X().j&&(a.g.controls=!0))}f.Mr=function(){var a=this.C;a.g.publish("AD_LOGGING_EVENT",777,hU(a))};f.Qr=function(){this.D=!0;lU(this.C);zU(this)};
f.Nr=function(){var a=this.getCurrentAd();if(a){var b=a.H;if((a=a.F)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.g;c.channelTitle=a.j;c.channelVideoCount=a.videoCount;this.g.publish("publish_external_event","onAdMetadataAvailable",c)}}};f.Pr=function(a){var b={};b.error_code=a.k.getErrorCode();var c=this.C;gU(c);var d=hU(c);b&&sa(d,b);d.ad_error=32;eU(c,7,d);yU(this,a.k)};function yU(a,b){a.B.xg();oU(a.g,0);a.publish("adError",b)}f.Or=function(){fU(this.C);this.j.pause();this.publish("select")};
f.ll=function(){var a=this.g.g.Tn();this.g.ca.A||(this.gf.innerHTML=Zq(a.duration-a.current),a=Math.round(a.current/a.duration*1E3)/10,this.ff.style.width=a+"%")};
f.K=function(){this.g.unsubscribe("control_toggle_play_pause",this.Bl,this);this.g.unsubscribe("control_play",this.vi,this);this.g.unsubscribe("control_pause",this.ui,this);this.g.unsubscribe("onResize",this.ri,this);this.o.removeAll();this.B.subscribe("statechange",this.Ye,this);this.B.unsubscribe("internalvideodatachange",this.Al,this);this.B.unsubscribe("progresssync",this.ll,this);var a=this.g;if(a.k){var b=a.app,a=a.k;AU(b);a!=b.j&&xU(b,b.j)}this.G||this.j.destroy();this.gf&&(this.gf.innerHTML=
"",this.gf=null);this.ff&&(sd(this.ff),this.ff=null);this.hf&&(wf(this.hf,["ad-showing","ad-interrupting"]),this.hf=null);this.D=!1;vU.J.K.call(this)};f.bh=function(){return this.B.$b()};f.ek=function(){return this.k&&this.k.g?this.k.g.mimeType:null};f.zj=function(){return this.k&&this.k.P?ln(this.k.P.g):null};f.Bl=function(){this.Rg?this.ui():this.vi()};f.vi=function(){this.j.resume();this.$l()};f.ui=function(){this.j.pause();this.Zl()};f.ri=function(){ae(kA(this.g.j),tU(this.g))};function BU(a,b){this.j=a;this.g=b}function CU(a,b,c){a.j.publish("AD_LOGGING_EVENT",b,c)}function DU(a){var b={};OT(a.j.getCurrentAd(),b);a.A&&a.o&&(b.ot=a.o-a.A);var c;c=a.g.isFullscreen()?2:a.g.X().sg?1:0;b.ad_ps=c;b.at=a.j.A();return b};function EU(a,b,c,d){XT.call(this,b,a,1,c);this.B=new BU(this,b);this.o=new lr(this);this.C=!!d}z(EU,XT);f=EU.prototype;f.xc=null;f.ij=!1;
f.show=function(){if(!this.ij||!FU(this.g)){var a=kp(this.g.g);L(a,"ad-showing");this.xc=kA(this.g.j);a=this.j.getCurrentAd().getHeight();this.xc.style.height=Rd(a,!0);L(this.xc,"ad-overlay");this.o.listen(this.xc,"mouseup",this.ms);try{this.o.listen(this.j,"userClose",this.os);this.o.listen(this.j,"click",this.ls);this.o.listen(this.j,"adError",this.ks);GU(this,"normal");this.C||this.j.start();var b=this.B;b.A=y();var c=DU(b);CU(b,3,c);this.g.subscribe("onResize",this.Ug,this);this.g.subscribe("onStateChange",
this.am,this);this.publish("adEnd",this)}catch(d){this.publish("adError",d)}}};f.K=function(){this.o.removeAll();this.g.unsubscribe("onResize",this.Ug,this);this.g.unsubscribe("onStateChange",this.am,this);var a=kp(this.g.g);vf(a,"ad-showing");this.j&&(this.C||this.j.destroy(),this.j=null);this.xc&&vf(this.xc,"ad-overlay");this.xc=null;this.ij=!1;EU.J.K.call(this)};
f.os=function(){this.xc&&this.j&&this.j.getCurrentAd()&&(this.xc.style.height=Rd(0,!0));this.ij=!0;var a=this.B;a.o=y();var b=DU(a);CU(a,6,b)};f.ls=function(){this.g.pauseVideo();var a=this.B;a.o=y();var b=DU(a);if(a.k){var c=iU(a.g),d=a.k.y-c.top,d=Math.round(a.k.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}CU(a,100,b)};f.ms=function(a){this.B.k=a.target==a.currentTarget?null:new F(a.pageX,a.pageY)};f.ks=function(a){this.publish("adError",a.k)};
f.am=function(a){U(a.state,16)&&GU(this,"normal")};function GU(a,b){a.D!=b&&(a.D=b)}f.Ug=function(){};function HU(a,b,c,d){N.call(this);this.I=a;this.j=b.g;this.D=b;this.N=b.getId();this.g=c;this.k=d;this.A=new QT(this.j,this.yd(),c,d);this.B=null;this.H=new aj(this);this.o=new aj(this)}z(HU,N);HU.g="rm";HU.j=10;HU.B=200;HU.o=200;HU.A=190;HU.k=100;f=HU.prototype;f.bj=null;
f.load=function(){var a;a=tU(this.g);var b;this.g.ca.g?b=!1:(b=0<(this.k&3)?HU.A:HU.o,b=a.width<HU.B||a.height<b);if(b){b=this.A;var c=RT(b);c.ck_wh=a.width+"x"+a.height;IU(b.g,14,c);VT();this.Bd(Error("The player size is too small."))}else if(this.B=this.g.Ve){a=this.A;JU(a.g,9,RT(a));a=new BP;(b=this.g.ca.serverPrefetchedVast)&&0<(this.k&3)?(a.adsResponse=b,this.g.ca.serverPrefetchedVast=void 0):a.adTagUrl=this.Ce();b=tU(this.g);a.linearAdSlotWidth=b.width;a.linearAdSlotHeight=b.height;a.nonLinearAdSlotWidth=
b.width;a.nonLinearAdSlotHeight=HU.k;a.Rm=fC(this.g.X());a.g=this.g.X().experiments.experimentIds;if(b=a.Rm?jC(this.g.X()):-1)a.lastActivity=b;this.g.ca.tagForChildDirected&&(a.tagForChildDirectedContent=!0);hA(this.g.X(),"937420")&&(a.Ff=!0);b=Ro(this.g.app);a.gc={"[CONTENT_V]":b.videoId,"[CPN]":b.xa,"[LACT]":KU(this)};fC(this.g.X())||(a.gc["[LACT]"]="-1");this.B.listen("adsManagerLoaded",this.Im,!1,this);this.B.listen("adError",this.Hm,!1,this);this.$g(this.B,a)}};
f.Mj=function(){var a=new QG,b=this.g.ca,c=this.g.X();a.baseYouTubeUrl=c.Ya;a.contentId=Ro(this.g.app).videoId;a.ci=hA(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.A;a.youTubeAdNamespace=this.yd();b.N&&(a.Uk=!0,a.Xv=!0,a.showContentThumbnail=!1,a.Vk=!0,a.Wk=!0,a.useShareButton=!1);return a};f.yd=function(){return this.I};function LU(a){var b=HU.j;a.j=b;a.A.o=b}
function MU(a,b){a.bj=b;a.A.k=b.A()}function NU(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.A.j=b}function OU(a){a=a.j;return 0==a||-1==a?a:1E3*a}function KU(a){var b=a.g;return{toString:function(){return null==b||b.fa()?b=null:jC(b.X()).toString()}}}
f.Im=function(a){if(a.o===this){zm("aml");try{var b=this.Mj(),c=a.k}catch(d){this.Wc(d);return}this.o.listen(c,"companionBackfill",x(this.$u,this,c));this.o.listen(c,"loaded",x(this.Zu,this,c));this.o.listen(c,"adError",x(this.Yu,this,c));this.o.listen(c,"allAdsCompleted",ba);this.o.listen(c,"contentPauseRequested",ba);this.o.listen(c,"contentResumeRequested",ba);c=LT(a,this.g.o,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Wc(e)}}};
f.Zu=function(a,b){this.o.removeAll();var c=b.getAd(),d=xN(c),e=this.A,g=RT(e);g.ad_man=d?"instream":"overlay";JU(e.g,12,g);e=a.getMediaUrl();switch(d?this.Bf(a,c,e):this.Tc(a,c)){case 0:PU(this.D,this.bj,this.j);break;case 1:a.destroy();this.Bd(Error("Unable to create a display state."));break;case 2:c=this.A;IU(c.g,21,RT(c));a.destroy();this.Bd(Error("Fallback to next ad."));break;default:a.destroy()}};f.Yu=function(a,b){this.o.removeAll();a.destroy();this.Wc(b.k)};
f.Hm=function(a){var b=a.k;"adLoadError"==b.k&&a.o===this&&this.Wc(b)};f.$u=function(){UT()};f.Bf=function(a,b,c){NU(this,NN(b));var d;this.g.ca.I?d=new vU(this.yd(),this.g,a,zN(b)):d=new mU(this.yd(),this.g,a,c,zN(b));MU(this,d);return 0};f.Tc=function(a,b){NU(this,NN(b));MU(this,new EU(this.yd(),this.g,a));return 0};f.Wc=function(a){if(a){var b=this.A,c=RT(b);a&&NT(a,c);IU(b.g,32,c);this.Bd(a)}};f.Bd=function(){QU(this.D)};
f.K=function(){this.B&&(this.B.ya("adsManagerLoaded",this.Im,!1,this),this.B.ya("adError",this.Hm,!1,this));this.H.removeAll();this.o.removeAll();HU.J.K.call(this)};f.$g=function(a,b){try{IT(a,b,this),zm("ar")}catch(c){this.Wc(c)}};function RU(a){this.g=a};function SU(a){XT.call(this,a,2,3,null);this.o=this.B=0}z(SU,XT);SU.prototype.show=function(){var a=t("yt.www.watch.ads.loadAfc");a&&a();this.publish("adEnd",this);this.B=Pf(x(this.C,this),1E3)};SU.prototype.K=function(){TU(this);SU.J.K.call(this)};function TU(a){a.B&&(Rf(a.B),a.o=0)}SU.prototype.C=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.o++;var b={};b.at=this.A();10<=this.o||!a?(TU(this),this.publish("AD_LOGGING_EVENT",2,b)):a()&&(TU(this),this.publish("AD_LOGGING_EVENT",3,b))};function UU(a,b,c){HU.call(this,2,a,b,c);this.C=new RU(this.g.ca);TT()}z(UU,HU);UU.prototype.Mj=function(){var a=UU.J.Mj.call(this);a.Vn=0==this.N;a.gw=FU(this.g)?a.Vn:!0;return a};UU.prototype.Ce=function(){var a;var b=this.C;a=OU(this);(b=4==this.k&&b.g.afvInvideoAdTag?b.g.afvInvideoAdTag:b.g.afvAdTag)?(wa(b,"http:")&&(b=b.substr(5)),a=oh(b,{videoad_start_delay:a})):a="";return a};
UU.prototype.Tc=function(a,b){if(this.g.ca.g)return 1;0==this.j&&(LU(this),JU(this.g,1));return UU.J.Tc.call(this,a,b)};UU.prototype.Bd=function(a){var b=this.g.ca;b.g?UU.J.Bd.call(this,a):b.ka||this.k&4?(MU(this,new SU(this.g)),PU(this.D,this.bj,this.j)):UU.J.Bd.call(this,a)};function VU(a,b){if(a){this.So=a;this.No=b;var c,d=this.So,e=d.indexOf(";sz=");c=jh(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{Lx:d[0],Mx:d[1],Nx:c})this.Mo=c.Lx,this.Oo=c.Mx,this.Qo=c.Nx}}f=VU.prototype;f.So="";f.Mo="";f.No=!1;f.jk="";f.Oo="";f.Qo=null;
f.dh=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=oc(this.Qo);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.No&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.jk||(this.jk=Math.floor(999999999*Math.random()).toString());
k.ord=this.jk;d&&d.length&&lc(k,"sz");e=kh(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.Mo,"pfadx",this.Oo,";",e,"?"].join("")};function WU(a){this.g=a?a:""}WU.prototype.dh=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 K(this.g),g=e.g,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.g};function XU(a,b,c){EU.call(this,1,a,b,c)}z(XU,EU);XU.prototype.Ug=function(){};XU.prototype.A=function(){return"1_3"};function YU(a,b,c){HU.call(this,1,a,b,c);a=this.g.ca;this.L=a.wg?new WU(a.adTag):new VU(a.adTag,a.ja)}z(YU,HU);YU.prototype.Ce=function(){return this.L.dh(this.j,this.k)};
YU.prototype.Tc=function(a,b){NU(this,NN(b));var c=null!=b.g?b.g.D:{};if(PT(c,HU.g))return 1==this.k||FU(this.g)||VT(),a.sendImpressionUrls(),this.g.ca.Uh?(MU(this,new SU(this.g)),0):2;if(PT(c,"blockAllAds"))return a.sendImpressionUrls(),MU(this,new XU(this.g,a)),0;if(PT(c,"hideMaster"))return MU(this,new XU(this.g,a)),0;if(this.g.ca.g)return 1;MU(this,new EU(this.yd(),this.g,a));return 0};function ZU(a,b,c,d){YU.call(this,a,b,c|d);this.G=c;this.F=d;this.C=null;TT()}z(ZU,YU);var $U={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=ZU.prototype;f.Ce=function(){if(this.g.ca.wg){var a=new WU(this.g.ca.dynamicAllocationAdTag);return a.dh(this.j,this.G)}a=new VU(this.g.ca.dynamicAllocationAdTag,this.g.ca.ja);return a.dh(this.j,this.G)};
f.$g=function(a,b){if(this.F){var c=this.F,d="";c&2&&c&1?d="video":c&2?d="skippablevideo":c&1&&(d="standardvideo");c&4&&(d&&(d+="_"),d+="text_image_flash");b.youTubeAdType=d;if(c=this.g.ca.Ka)b.youTubeExperimentIds=c;b.youTubeVideoAdStartDelay=OU(this)}ZU.J.$g.call(this,a,b)};f.Bf=function(a,b,c){aV(this,a);return 1!=this.C&&2!=this.C?1:ZU.J.Bf.call(this,a,b,c)};
f.Tc=function(a,b){aV(this,a);switch(this.C){case 1:return ZU.J.Tc.call(this,a,b);case 2:var c;this.g.ca.g?c=1:(0==this.j&&(LU(this),JU(this.g,1)),NU(this,NN(b)),MU(this,new EU(2,this.g,a)),c=0);return c;default:return 1}};f.yd=function(){return this.C||0};function aV(a,b){var c=b.getCurrentAd(),d=QN(c);d.unshift(CN(c));for(c=0;c<d.length;++c){var e=$U[d[c].toUpperCase()];if(e){a.C=e;return}}a.C=0};function bV(a,b){var c=b.ca;this.C=c.eb;var d=0,c=c.Ta.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);HU.call(this,2,a,b,d)}z(bV,HU);bV.j="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";bV.k="43";bV.g=function(a){var b=new sq;xh(a,{format:"RAW",method:"GET",timeout:5E3,Oj:function(){b.Df(Error(a+" timed out"))},onError:function(c){b.Df(Error("Problem loading "+a+" with status code "+c.status))},mc:function(a){b.Lo(a)}});return b};
bV.prototype.Ce=function(){return""};
bV.prototype.$g=function(a,b){var c=this.k;c&1||c&4||c&8?this.C?c&8?WT(this.C):("goo.gl"==nh(this.C)?(c=bV.g(bV.j+this.C),yq(c,function(a){a=Kb(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new K(a.longUrl);lf(a,"video_format",bV.k);return bV.g(a.toString())},this)):c=bV.g(this.C),yq(c,function(c){b.adsResponse=c.responseText;IT(a,b,this)},this),zq(c,null,this.Wc,this)):this.Wc(Error("Invalid empty URL")):this.Wc(Error("Invalid request type: "+
c))};function cV(a,b,c,d){this.g=a;this.o=c;this.k=d;this.A=b;yg||zg?this.j="html5_ios":Ag?this.j="html5_android":dm()?this.j="html5_ps3":"leanback"==this.o.ea?this.j="html5_tv_leanback":dV(this)?this.j="html5_desktop":this.j="html5"}var eV="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 dV(a){return E(eV,a.g.ua)||hA(a.o,"952600")&&!a.g.Ca};function fV(a,b){EU.call(this,4,a,b)}z(fV,EU);fV.prototype.Ug=function(){};fV.prototype.A=function(){return"4_3"};function gV(a,b,c){HU.call(this,4,a,b,c);this.C=new cV(this.g.ca,Ro(this.g.app).lengthSeconds,this.g.X(),c)}z(gV,HU);
gV.prototype.Ce=function(){var a;var b=this.C;if(b.g.P&&b.g.ua){a={};var c="youtube_watch_"+b.j;a.nw="10613";a.asnw=b.g.P;a.ssnw=b.g.P;a.caid=b.g.ua;a.vdur=b.A;a.csid=c;a.resp="vast2";c={};isNaN(b.g.Y)||(c._fw_d_001=b.g.Y);b.g.da&&(c._fw_d_002=b.g.da);b.g.Aa&&(c["_fwu:10613:lang"]=b.g.Aa);b.g.aa&&(c._fw_dbp=b.g.aa);b.g.Z&&(c._fw_distributorvideoassetid=b.g.Z);c._fw_yt_type=b.g.o?"short":"long";if(dV(b)){a.prof="10613:10613_youtube_html5_2014";a.crtp="_old_youtube";a.flag="+slcb+qtcb+amcb+exvt";var d="",
e;b.k&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=kh(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"},d+=kh(e,"&")+";");b.k&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=kh(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=kh(e,"&")+";");b.k&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=kh(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+kh(a,"&")+";"+kh(c,
"&")+";"+b}else{d="10613:10613_youtube_"+b.j.split("_")[0];a.prof="10613:10613_youtube_"+b.j;a.crtp="vast2s";a.flag="+emcr";e={ptgt:"a",slid:"preroll"};var g="";b.g.B&&!b.g.k?g=";linear-skippable":!b.g.B&&b.g.k&&(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?"+kh(a,"&")+";"+kh(c,"&")+";"+kh(e,"&")}}else a="";return a};gV.prototype.Bf=function(a,b){return 0!=this.j?1:gV.J.Bf.call(this,a,b,null)};
gV.prototype.Tc=function(a,b){var c=null!=b.g?b.g.D:{};if(PT(c,HU.g))return this.D.o=nc(a),2;if(this.g.ca.g)return 1;if(PT(c,"hideMaster")){if(a.B&&a.B.od()){var c=a.B.od(),d;d=a.getCurrentAd();if(X.g){var e=d.L;d.L=[];d=e}else d=[];c.impressionUrls=d}MU(this,new fV(this.g,a));return 0}return gV.J.Tc.call(this,a,b)};function hV(a,b,c){HU.call(this,13,a,b,c)}z(hV,HU);var iV=[{Fj:4,size:"480x70",$m:"300x250"},{Fj:1,size:"480x360",$m:"300x60"}];
hV.prototype.Ce=function(){var a=new K(this.g.ca.Ia,!0),b=this.k,c=iV.filter(function(a){return(b&a.Fj)==a.Fj}),d=c.map(function(a){return a.size}).join("|");lf(a,"sz",d);c=c.map(function(a){return a.$m}).join(",");lf(a,"ciu_szs",c);c=4==(this.k&4);1==(this.k&1)?(c||lf(a,"vad_type","linear"),c="midroll",0==this.j?c="preroll":-1==this.j&&(c="postroll"),lf(a,"vpos",c)):c&&lf(a,"vad_type","nonlinear");return a.toString()};function jV(a,b,c){this.k=a;this.g=b;this.j=c||0}jV.prototype.create=function(a,b){switch(this.k){case 1:return new UU(a,b,this.g);case 2:return new YU(a,b,this.g);case 3:return new ZU(a,b,this.g,this.j);case 5:return new gV(a,b,this.g);case 4:return new bV(a,b);case 6:return new hV(a,b,this.g);default:return null}};function kV(a){return 0<((a.g|a.j)&3)};function lV(a,b,c,d,e){Ch.call(this);this.pa=b;this.k=a;this.g=c;this.A=d;this.o=this.j=null;this.B=!!e}z(lV,Ch);f=lV.prototype;f.rj=!0;f.Hb=!1;f.isVisible=!0;f.dc="unloaded";f.Ej=!1;f.ab=function(){return 0==this.g?mV(this)&&nV(this)?-2147483648:0:-1==this.g||-2==this.g?2147483647:1E3*this.g};function oV(a){return 0==a.g||-2==a.g?!1:lb(a.A,function(a){switch(a.k){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function mV(a){return"loaded"==a.dc||"error"==a.dc}
function nV(a){if(!mV(a))throw Error("Preroll status is undefined before ad load.");return 0==a.g&&a.Hb}function QU(a){a.dc="loading";0==a.g&&!kb(a.A,kV)&&Zp(a.k);if(a.B)a.dc="loaded",a.Hb=!0,pV(a);else{var b=a.A.shift();b?(0==a.g&&qV(a.k,"nl"),b=b.create(a,a.k),O(a,b),b.load()):(JU(a.k,2,rV(a,{})),sV(a,!1),a.dc="error",pV(a))}}f.getId=function(){return this.pa};
function tV(a){a.j&&(a.j.unsubscribe("adEnd",a.ho,a),a.j.unsubscribe("adError",a.jo,a),a.j.unsubscribe("AD_LOGGING_EVENT",a.ko,a),a.j.unsubscribe("select",a.fo,a))}function PU(a,b,c){a.j=b;a.g=c;O(a,a.j);0==a.pa&&(a.k.B.at=a.j.A());a.j instanceof mU||a.j instanceof vU?a.Hb=!0:a.j instanceof SU?a.isVisible=!1:a.j instanceof fV?a.isVisible=!1:a.j instanceof XU&&(a.isVisible=!1);a.dc="loaded";pV(a)}function pV(a){a.publish("adBreakComplete",a)}
f.show=function(){this.Ej?this.j instanceof EU&&GU(this.j,"normal"):(this.Ej=!0,(this.j instanceof mU||this.j instanceof vU)&&qV(this.k,"bs"),this.j.subscribe("adEnd",this.ho,this),this.j.subscribe("adError",this.jo,this),this.j.subscribe("AD_LOGGING_EVENT",this.ko,this),this.j.subscribe("select",this.fo,this),this.j.show(),sV(this,!0))};function sV(a,b){a.o&&(a.o.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.o.dispose(),a.o=null)}
f.ho=function(){if(this.Hb){tV(this);var a=this.k;if(a.ca.wa&&!a.Xh){var b=a.X().Ya;ek(b+"mac_204?action_fcts=1");a.Xh=!0}}pV(this)};f.jo=function(a){if(a){var b={};NT(a,b);rV(this,b);IU(this.k,32,b)}tV(this);pV(this)};f.ko=function(a,b){rV(this,b);JU(this.k,a,b)};f.fo=function(){this.rj=!1};function rV(a,b){b.sst=a.g;b.sidx=0}f.K=function(){tV(this);this.j=null;null!=this.o&&(this.o.dispose(),this.o=null);lV.J.K.call(this)};function uV(a){this.Np=a}function vV(a){try{var b=Ay(a).getElementsByTagName("AdBreak"),c=ib(b,function(a){a=a.getAttribute("time");return Za(a)});return new uV(c)}catch(d){return new uV([0])}};function wV(a){this.g=a};function xV(a,b){this.R=a;this.g=(this.N=this.R.B)||!0;this.A=!1;this.I=a.o&&(!this.g||!0)||this.N&&!(yg&&!a.L);this.apply(b);if(this.B&&!this.I)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var yV={Zx:"m",Vx:"f"};f=xV.prototype;
f.apply=function(a){var b=MT(a.instream),c=MT(a.trueview),d=MT(a.aftv);this.W=a.ad_slots;this.U=a.ad_breaks;this.adFlags=a.ad_flags||0;this.Ka=a.cafe_experiment_id;this.adTag=a.ad_tag;this.Ja=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.Ba=zV(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.Y=parseInt(a.ad_age,10);this.amsBaseTag=a.ams_base_tag;this.Ra=a.cid;this.Z=a.docid||a.video_id||a.videoId;this.dynamicAllocationAdTag=a.dynamic_allocation_ad_tag;
this.excludedAds=a.excluded_ads;this.Ta=a.force_ad_type;this.eb=a.force_ad_url;this.da=ic(yV,function(b){return b==a.ad_gender});this.aa=a.dbp;this.Uh=MT(a.afc_rm_fallback);this.ja=!!a.mpu;this.D=MT(a.afv)&&!this.g;this.F=d&&c;this.G=d&&b&&!MT(a.no_afv_instream);this.H=MT(a.dclk);this.wg=MT(a.gpt_migration);this.ta=1==a.livestream;this.oa=MT(a.forced_ad)&&!this.g;this.L=1==parseInt(a.tpas_ad_type_id,10);this.ub=!!a.fqsf;this.k=b;this.C=MT(a.invideo)&&!this.g;this.O=MT(a.mpu)&&!this.g;this.Ca=E(this.Ba,
"yt_mabv");this.wa=MT(a.shortform);this.o=MT(a.sffb);this.Nh=MT(a.xfp);this.Ia=a.xfp_tag;this.Kk=!this.g&&!this.L;this.B=c;this.Aa=a.ad_language_iso639_2;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.maxDynamicAllocationAdTagLength=b;this.j=parseInt(a.midroll_freqcap,10);isNaN(this.j)&&(this.j=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=
MT(a.tag_for_child_directed);this.serverPrefetchedVast=a.server_prefetched_vast;this.surveyCreativeData=a.surveyCreativeData;this.ka=d&&this.o&&!this.D;this.fb=this.D||this.ka;this.vb=parseInt(a.ad_device,10);this.ua=a.tpas_video_id;this.P=a.tpas_partner_id;this.vmap=a.vmap;this.cb=AV(this)};
function AV(a){if(A(B(a.dynamicAllocationAdTag)))return!1;var b=(a.k||a.B)&&a.H;a.o&&a.H&&(b=b||a.C||a.O);if(!b)return!1;b=a.F||a.G;if(!(b||a.o&&a.D))return!1;if(a.serverPrefetchedVast)return!0;var c=a.dynamicAllocationAdTag.length+330+(a.wg?25:102);window.document.referrer&&(c+=Aa("ref="+Aa(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}function zV(a){if(A(B(a)))return[];a=mf(new K(a),"channel");return null!=a?a.split("+"):[]}f.Kk=!0;f.Uh=!1;f.wg=!1;
f.Nh=!1;f.showContentThumbnail=!0;function BV(a,b,c){N.call(this);this.g=a;this.B=b;this.k=c;this.A=this.j=-1;this.k&&0<this.g.ca.j&&this.g.subscribe("endseeking",this.o,this)}z(BV,N);function CV(a,b){DV(a);0<b&&(a.A=M(x(a.o,a),1E3*b))}function DV(a){-1!=a.A&&(Qf(a.A),a.A=-1)}
BV.prototype.o=function(){var a=this.g.ca.j;if(this.k&&!(0>=a)){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;$b(this.B.k,function(a){if(a.isVisible&&!(0>=EV(this,a))){var g;g=a.getId();g=this.B.A[g];if(EV(this,a)>b){var l=!FV(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=EV(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&GV(this.g,c);if(d){var g=0;0<this.j&&(g=y()/1E3-this.j);CV(this,a-g-e+2)}else DV(this)}};
function FV(a,b){if(!a.k||!(0<b.g)&&-1!=b.g)return!1;var c=a.g.ca.j;if(0>=c||0>=a.j)return!1;var d=y()/1E3,e=EV(a,b)-a.g.g.getCurrentTime();0<e&&(d+=e);return d-a.j<=c}function EV(a,b){return-1==b.g?a.g.g.getVideoData().lengthSeconds:b.g}BV.prototype.K=function(){DV(this)};function HV(a,b){N.call(this);this.j=b;this.C=[];this.k={};this.A={};this.g=a;var c=!a.ca.ta&&kb(this.j,function(a){return 0<a.g||-1==a.g});this.G=new BV(this.g,this,c);this.I=kb(this.j,function(a){return 0==a.g})}z(HV,N);f=HV.prototype;f.Pb=null;function IV(a){a.C.length||(a.C=hb(a.j,function(a){return"unloaded"==a.dc}),0==a.C.length?Zp(a.g):(a.I||Zp(a.g),JV(a)))}function JV(a){if(a.C.length){var b=a.C.shift();b.subscribe("adBreakComplete",a.ze,a);QU(b)}}
f.ze=function(a){a.unsubscribe("adBreakComplete",this.ze,this);M(x(this.Px,this,a),0)};
f.Px=function(a){var b=fb(this.j,a),c=this.j[b+1],b=this.j[b-1],d=2147483646;-2==a.g||-1==a.g?d=2147483647:c&&2147483647!=c.g&&(d=c.ab()-1);0==a.pa&&(qV(this.g,"bl"),nV(a)||qV(this.g,"fb"));if(c="loaded"!=a.dc||0==a.pa&&nV(a)&&c&&1E3*this.g.g.getCurrentTime()>c.ab()){if(b&&mV(b)){var e=b.ab();e>d&&(d=e);KV(this,b);LV(this,b,d)}}else this.k[a.getId()]=a,LV(this,a,d);Zp(this.g);c&&this.ne(a);dc(this.k)==this.j.length&&this.G.o();JV(this)};
function LV(a,b,c){var d=b.ab();if(!isNaN(d)){var e={};e.priority=-2!=b.g?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new Op(d,c,e);a.A[b.getId()]=c;a.g.jf(c)}}function KV(a,b){a.A[b.getId()]&&(a.g.cw(a.A[b.getId()]),delete a.A[b.getId()])}f.ne=function(a){a.unsubscribe("adBreakComplete",this.ze,this);this.Pb&&a==this.Pb&&(this.Pb=null);KV(this,a);tb(this.j,a);delete this.k[a.getId()];Eg(a)};f.Si=function(a){return this.k[a]};
f.Bj=function(a){if(a.Hb){if(-1!=a.g&&a.rj){var b=this.g;MV(b);gq(b)}else nV(a)&&!a.rj?(b=this.g,MV(b),gq(b)):(MV(this.g),hq(this.g,!1));this.ne(a)}else a.isVisible||this.ne(a);a=this.G;a.k&&0<a.g.ca.j&&(a.j=y()/1E3,a.o())};f.K=function(){Eg(this.G);C(this.j,this.ne,this);HV.J.K.call(this)};function NV(a,b,c){HV.call(this,a,b);this.D=[];this.F=[];this.B=[];this.N=c;this.o=null;this.H=a.ca.j;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],oV(c)){var d=new lV(c.k,c.pa,c.g,c.A,!0);b[a]=d;this.D.push(c)}this.I||this.ge()}z(NV,HV);f=NV.prototype;
f.Si=function(a){a=NV.J.Si.call(this,a);if(!a)return null;if(!a.B)return a;var b;b=null;if(this.B.length){var c=b=this.B.shift();c.g=a.g;c.pa=a.getId()}b&&"loaded"==b.dc?(a.unsubscribe("adBreakComplete",this.ze,this),this.k[a.getId()]=b,this.j[this.j.indexOf(a)]=b,Eg(a)):(this.ge(),b&&(Eg(b),b=null),this.ne(a));b&&!b.Hb&&this.ge();return b};f.ze=function(a){0!=a.g||"loaded"==a.dc&&a.Hb||this.ge();NV.J.ze.call(this,a)};
f.Bj=function(a){a.Hb&&10<this.H?(ia(this.o)&&Qf(this.o),this.o=M(x(this.ge,this),1E3*(this.H-10))):this.ge();NV.J.Bj.call(this,a)};f.ge=function(){for(this.o=null;this.D.length&&this.F.length+this.B.length<this.N;){var a=this.D.shift();a.subscribe("adBreakComplete",this.qo,this);this.F.push(a);QU(a)}};f.qo=function(a){a.unsubscribe("adBreakComplete",this.qo,this);tb(this.F,a);this.B.push(a)};f.K=function(){ia(this.o)&&(Qf(this.o),this.o=null);C(this.F,Eg);C(this.B,Eg);C(this.D,Eg);NV.J.K.call(this)};function OV(a,b){this.D=a;this.g=b;this.F=y();this.j=a.ca;this.A={};this.C=new $T(a);var c=[];this.j.L&&this.j.k&&c.push("4_2");this.j.Nh&&(this.j.k&&c.push("13_2"),this.j.C&&c.push("13_1"));this.j.H&&(this.j.k&&c.push("1_2"),this.j.B&&c.push("1_2_1"),this.j.C&&c.push("1_1"),this.j.O&&c.push("1_3"));this.j.F&&c.push("2_2_1");this.j.G&&c.push("2_2");this.j.D&&c.push("2_1");(this.j.fb||this.j.Uh)&&c.push("2_3");this.o=c.join(",");this.k="";this.A.allowed=this.o;(c=this.j.excludedAds)&&(this.A.ex_ads=
c)}OV.prototype.B=0;function PV(a,b,c){N.call(this);this.g=a;this.k=b;this.C=c;this.o=this.B=-1;this.j=QV(this.k.zd());a=this.k.zd();a.length&&(a=a[a.length-1],-1==a&&this.g.jf(this.j[a]));0<this.g.ca.j&&this.g.subscribe("endseeking",this.A,this)}z(PV,N);function RV(a,b){SV(a);0<b&&(a.o=M(x(a.A,a),1E3*b))}function SV(a){-1!=a.o&&(Qf(a.o),a.o=-1)}function TV(a){a.j||(a.j=QV(a.k.zd()));GV(a.g,ec(a.j))}
function QV(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 Op(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new Op(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
PV.prototype.A=function(){var a=this.g.ca.j;if(!(0>=a)&&this.j){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;C(this.k.zd(),function(a){var g=this.j[a];if((a=this.k.G.get(a))&&a.Lc>b){var l=!vT(this.C,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=a.Lc-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))},this);0<c.length&&GV(this.g,c);if(d){var g=0;0<this.B&&(g=y()/1E3-this.B);RV(this,a-g-e+2)}else SV(this)}};PV.prototype.K=function(){PV.J.K.call(this);SV(this)};function UV(a){N.call(this);this.g=a;this.o=null;this.B=new aj(this);this.k=new aj(this)}z(UV,N);f=UV.prototype;f.Ga=null;f.Kg=null;f.bb=null;f.Cb=null;f.Lg=null;function VV(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);C(a.getElementsByTagName("VASTAdTagURI"),function(a){var e=a.innerHTML,e="end"==b?e.replace("[POSITION]","post"):e.replace("[POSITION]","mid");a.innerHTML=e.replace("[INDEX]",c.toString())});return a}
function WV(a){var b=Ay(a),c=b.childNodes[0];if(!c)return a;var d=D(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=D(d.childNodes,function(a){return"Extensions"==a.localName});var e=D(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;C(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=VV(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return Cy(b)}return a}
f.load=function(a){if(this.o=this.g.Ve){var b=new BP;b.adsResponse=WV(a);a=tU(this.g);b.linearAdSlotWidth=a.width;b.linearAdSlotHeight=a.height;b.nonLinearAdSlotWidth=a.width;b.nonLinearAdSlotHeight=100;if(a=jC(this.g.X()))b.lastActivity=a;this.g.ca.tagForChildDirected&&(b.tagForChildDirectedContent=!0);hA(this.g.X(),"937420")&&(b.Ff=!0);a=Ro(this.g.app);var c=this.g;b.gc={"[CONTENT_V]":a.videoId,"[CPN]":a.xa,"[LACT]":{toString:function(){return null==c||c.fa()?c=null:jC(c.X()).toString()}}};this.o.listen("adsManagerLoaded",
this.Km,!1,this);this.o.listen("adError",this.Jm,!1,this);try{IT(this.o,b,this)}catch(d){}}};function XV(a){var b=new QG;b.baseYouTubeUrl=a.g.X().Ya;b.contentId=Ro(a.g.app).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.g.ca.A;b.showContentThumbnail=a.g.ca.showContentThumbnail;b.jl=!0;return b}
f.Km=function(a){if(a.o===this){var b={};Object.defineProperty(b,"currentTime",{get:x(function(){return this.g.g.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:x(function(){return this.g.g.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=XV(this);this.Ga=LT(a,this.g.o,b,c)}catch(d){return}if(this.Lg=this.Ga.Dm(b,this.g.ca.j)){this.Kg=new PV(this.g,this.Ga,this.Lg);TV(this.Kg);E(this.Ga.zd(),0)||YV(this);this.k.listen(this.Ga,"companionBackfill",x(this.Et,
this));this.k.listen(this.Ga,"loaded",x(this.Dt,this));this.k.listen(this.Ga,"adError",x(this.Ct,this));this.k.listen(this.Ga,"start",x(this.Bt,this));this.k.listen(this.Ga,"complete",x(this.At,this));this.k.listen(this.Ga,"contentPauseRequested",x(this.Ft,this));this.k.listen(this.Ga,"contentResumeRequested",x(this.Gt,this));this.k.listen(this.Ga,"allAdsCompleted",ba);try{this.Ga.init("normal"),this.Ga.start()}catch(e){this.Ga.destroy(),this.j=null}}}};
f.Ft=function(a){this.bb&&this.bb.dispose();(this.Cb=a.getAd())&&xN(this.Cb)&&(a=ZV(this.Cb),this.g.ca.I?this.bb=new vU(a,this.g,this.Ga,zN(this.Cb),!0):this.bb=new mU(a,this.g,this.Ga,this.Ga.getMediaUrl(),zN(this.Cb),!0),$V(this.g),this.bb.show())};
f.Gt=function(a){this.bb&&this.bb.dispose();YV(this);if(this.g.g.getCurrentTime()<this.g.g.getVideoData().lengthSeconds){var b=this.g;MV(b);gq(b)}a=a.getAd();b=!0;if(a&&a!==this.Cb&&!xN(a)){var c=null!=a.g?a.g.D:{};PT(c,"blockAllAds")?(this.Ga.sendImpressionUrls(),this.bb=new XU(this.g,this.Ga,!0),b=!1):PT(c,"hideMaster")?(this.bb=new XU(this.g,this.Ga,!0),b=!1):(this.bb=new EU(ZV(a),this.g,this.Ga,!0),this.bb.show())}if(this.Cb&&xN(this.Cb)||a&&a!==this.Cb&&!xN(a)&&b)b=this.Lg,0<b.g&&(b.j=y()/1E3),
b=this.Kg,0<b.g.ca.j&&(b.B=y()/1E3,b.A());TV(this.Kg);this.Cb=a};f.Bt=function(a){if((a=a.getAd())&&this.bb){a=ZV(a);var b=this.bb;b.type=a+"_"+b.H;2==a&&TT();UT()}};f.At=function(a){xN(a.getAd())||this.Cb!==a.getAd()||(this.bb&&this.bb.dispose(),this.Cb=null)};f.Dt=function(a){a.getAd().A.j||xN(a.getAd())||YV(this)};f.Ct=function(){};f.Jm=function(){};f.Et=function(){UT()};
f.K=function(){this.o&&(this.o.ya("adsManagerLoaded",this.Km,!1,this),this.o.ya("adError",this.Jm,!1,this));this.B.removeAll();this.k.removeAll();this.A=!1;this.Ga&&(this.Ga.destroy(),this.Ga=null);UV.J.K.call(this)};function ZV(a){a=CN(a).toUpperCase();return"ADSENSE"==a?2:"DOUBLECLICK"==a?1:"FREEWHEEL"==a?4:"XFP"==a?13:0}function YV(a){a.A||(Zp(a.g),a.A=!0)};function aW(a){SB.call(this,a);X.j=!0;X.g=!0;this.o=null;this.C={};this.B={at:"0"};this.j=new jA(0,this.g);a=this.j.M();this.g.app.k.k.appendChild(a);this.k=null;this.A=-1}z(aW,SB);f=aW.prototype;f.va="ad";f.xe="ad";f.ld=null;f.Wa=null;f.ca=null;f.Xh=!1;f.ck=!1;f.Ve=null;f.Vd=null;aW.Va=function(a){return!!a.cg.getVideoData().jj};f=aW.prototype;f.Va=function(){return aW.Va(this.app)};
f.create=function(){aW.J.create.call(this);qV(this,"i");this.ca=new xV(this.X(),this.g.getVideoData().o||{});this.ld=new OV(this,this.g);this.Xh=!1;if(!this.Ve){var a=this.ca.A?void 0:nA(this.j);if(this.ca.I){var b=new RB(this.app,2),c=kA(this.j);b.j||(b.j=nc(b.Td),b.j.addEventListener=x(b.Lp,b),b.j.removeEventListener=x(b.Mp,b));this.o=new dK(c,void 0,a,b.j)}else{b=sU(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.o=new dK(kA(this.j),b,a,void 0)}a=this.o;b=a.j;
null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.B&&(a=a.B,a.j.width="100%",a.j.height="100%");this.Ve=new HT(this.o)}if(this.ca.vmap)this.Vd=new UV(this),this.Vd.load(this.ca.vmap);else{a=new wV(this);t:{b=[];try{var d=a.g.ca,e;if(d.Kk){var g;if(d.U)g=vV(d.U);else{var h;if(d.W){var k=ib(d.W.split(","),Za);h=new uV(k)}else h=new uV([0]);g=h}e=g}else e=new uV([0]);for(var l=e.Np,d=0;d<l.length;d++){var n=a.g;e=d;var r=l[d],v;var s=a.g.ca;g=[];if(s.oa)g.push(new jV(4,
0));else{if(s.L){h=0;if(s.k||s.B)h|=1;s.C&&(h|=4);s.O&&(h|=8);g.push(new jV(5,h))}s.Nh&&(h=0,s.k&&(h|=1),s.C&&s.o&&(h|=4),g.push(new jV(6,h)));h=0;s.H&&(s.k&&(h|=1),s.B&&(h|=2),s.C&&s.o&&(h|=4),s.O&&s.o&&(h|=8));k=0;if(s.G||s.F)s.G&&(k|=1),s.F&&(k|=2);c=0;s.o&&(s.D&&(s.afvMergeEnabled&&k?k|=4:c=4),k||(k=c,c=0));s.cb&&h&&k?g.push(new jV(3,h,k)):(h&&g.push(new jV(2,h)),k&&g.push(new jV(1,k)));c&&g.push(new jV(1,c))}v=g;var w=new lV(n,e,r,v);b.push(w)}}catch(R){}finally{break t}}l=b;qV(this,"bd");n=
this.ca;r=n.midrollPrefetchSize;this.Wa=!n.ta&&0<r?new NV(this,l,r):new HV(this,l);IV(this.Wa)}l={};l.allowed=this.ld.o;bq(this,{},l)};f.destroy=function(){this.ck&&MV(this);if(this.k){var a=this.app,b=this.k;AU(a);b!=a.j&&xU(a,a.j)}Fg(this.Wa,this.k,this.Vd);this.ld=this.Vd=this.k=this.Wa=null;lA(this.j);ST=!1;this.ce&&aW.J.destroy.call(this)};f.X=function(){return this.app.X()};f.isFullscreen=function(){return this.g.isFullscreen()||!0};
function JU(a,b,c){a=a.ld;c=c||{};var d=(y()-a.F)/1E3;c.art=d;d=a.D.X();d.I&&(c.feature=d.ka);c.ad_flags=a.j.adFlags;(d=a.j.Ra)&&(c.cid=d);c.mt=a.g.getCurrentTime();(d=XB())&&(c.lact=d);(d=a.g.pf())&&(c.len=d);a.j.ub&&(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?cU(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.g.ca.vb;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.skip&&(g.format+="_1");break;case "sst":0==d?g.break_type=1:-1==d||-2==JT?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_sys":g[a]=d;break;case "ad_len":g[a]=Math.round(1E3*d);break;case "ad_error":g.error_code=bU(d);break;case "error_code":g.ima_error=d;case "error_message":g.error_msg=
d;break;case "ad_event":g.event=cU(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}h=wU(b.g);c=Ro(b.g.app);e.cpn=c.xa;e.content_v=c.videoId;e.mt=Math.round(1E3*h.getCurrentTime());e.ei=c.F;e.lact=jC(b.g.X());h=iU(b.g);e.p_w=h.width;e.p_h=h.height;e.rt=(new Date).getTime();c=Ce(e);if("undefined"==typeof c)throw Error("Keys are undefined");h=new af(null,0,void 0);g=Be(e);for(a=0;a<c.length;a++)d=c[a],k=g[a],ga(k)?rf(h,d,k):h.add(d,k);c=b.g.X().Ya+"api/stats/ads";c=new K(c);
Ze(c,h);ek(c.toString());h=e.event;c=-1!=aU.indexOf(h);g=b.g.ca.amsBaseTag;b=iA(b.g.X(),"932015","932016");c&&!A(B(g))&&b&&(b=new K(g),c=b.g,c.set("ad_break_id",mc(e,"m_pos","0")),c.set("ad_slot_id",mc(e,"slot_pos","0")),c.set("ad_break_rel_start_time",mc(e,"m_pos","0")),c.set("ad_break_type",mc(e,"break_type","")),c.set("rel_time",mc(e,"mt","")),c.set("wall_time",mc(e,"rt","")),2==h&&(c.set("served",mc(e,"format","")),c.set("ad_id",mc(e,"ad_id","")),c.set("ad_len",mc(e,"ad_len",""))),ek(b.toString()))}}
function IU(a,b,c){c=c||{};c.ad_error=b;JU(a,7,c)}f.tf=function(){var a;if(this.ld){a=this.ld;var b={allowed:a.o};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.k&&(b.at=a.k);a=b}else a=aW.J.tf.call(this);return a};function sU(a,b){var c;if(b){c=a.j;var d=oA(c);c.g.X().o||zd(d)||kA(c).appendChild(d);c=d}else c=a.j,c=c.g.X().o?c.g.app.k.g:oA(c);return c}function wU(a){if(!a.k){var b=new bC(a.X().k);b.ea="adunit";b.autoplay=!0;var c=sU(a,!1);b.Fa=c;a.k=new DE(b,2,new TB(b,""),a.app.k)}return a.k}
function iU(a){a=tU(a);return new Wb(0,0,a.width,a.height)}function tU(a){return a.app.k.gb()}function $V(a){a.ck=!0;a.publish("command_redirect_controls",a,["play_pause"],void 0);eq(a,["seek"]);a.X().Nc&&eq(a,["audio"]);a.Vd||a.pauseVideo()}function MV(a){lA(a.j);a.ck=!1;a.publish("command_stop_redirect_controls");fq(a,["seek"]);a.X().Nc&&fq(a,["audio"])}f.getAdState=function(){return this.A};
function uU(a,b){switch(b){case 1:a.A=1;a.publish("publish_external_event","onAdStart");break;case 0:a.A=0,a.publish("publish_external_event","onAdEnd")}}function oU(a,b,c,d){d&&a.publish("publish_external_event","onAdInfoChange",d);a.publish("publish_external_event","onAdStateChange",b,sU(a,!1),c)}
f.Dd=function(a){aW.J.Dd.call(this,a);a=parseInt(a.getId(),10);if(this.Wa&&!isNaN(a)){var b=this.Wa;if(p(a)){var c=b.Si(a);c&&(b.Pb==c&&!c.Hb&&c.isVisible?c.show():(b.Pb&&b.ne(b.Pb),FV(b.G,c)?(b.Pb=null,c=b.A[c.getId()],c.visible||(c.visible=!0,GV(b.g,[c]))):(b.Pb=c,c.subscribe("adBreakComplete",b.Bj,b),c.Hb&&$V(b.g),c.show())))}}!isNaN(a)&&0>a&&this.Vd&&(a=this.Ve.g,b=new bL("contentComplete"),a.T(b),b.o&&(a.k.clear(),null!=a.g&&(b=a.g.od(),null!=b&&EK(b,a.k.g))))};
f.Ee=function(a){aW.J.Ee.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.g.getCurrentTime();this.Wa&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.Wa,(b=a.k[b])&&a.Pb==b&&!b.Hb&&b.isVisible&&b.Ej&&b.j instanceof EU&&GU(b.j,"fullscreen"))};function qV(a,b){var c=b;"nl"==b&&(c=a.ld,c.B++,c=c.B.toString());a.C[c]=y();"bs"!=c&&"fb"!=c||bq(a,a.C,a.B)}function GV(a,b){a.publish("command_update_cuerange_markers",b,a.g.getPlayerType())}
function FU(a){return Boolean(a.ca.o&&a.Wa&&1<a.Wa.j.length)}f.He=function(a){this.publish(a)};
f.Ah=function(a){switch(a){case "addata":var b=this.ca;return{adTag:b.adTag,adTest:b.Ja,forceAdType:b.Ta,isAfvSkippableInstreamEnabled:b.F,isAfvStandardInstreamEnabled:b.G,isBlazer:b.N,isDoubleClickEnabled:b.H,isForcedAd:b.oa,isFreeWheelEnabled:b.L,isHouseBrandPlayer:b.R.tg,isLeanback:!0,isShortform:b.wa,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return this.Wa?this.Wa.H:0;case "breakscount":return this.Wa?this.Wa.j.length:0;case "displaystate":return b=
null,this.Wa&&this.Wa.Pb&&(b=this.Wa.Pb.j),{adFormat:b instanceof XT?b.H:!1,adSkipped:b instanceof vU?b.D:!1,hasVideoStarted:b instanceof vU?b.F:!1,skippable:b instanceof vU?b.I:!1};case "getContentVideoData":return b=Ro(this.app),{adModule:b.jj,isGetVideoThirdPartyOnly:b.ig,partnerTrackingToken:b.I,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.Wa){a=this.Wa.k;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].Hb});return c}return 0}};
f.yh=function(){var a=[];this.X().xb()&&a.push.apply(a,"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" "));return a};function bW(){this.g=null}function Ew(a,b){return Uf(b,void 0,void 0)}bW.prototype.he=function(){return this.g.he()};bW.prototype.gb=function(){return this.g.gb()};function cW(a,b){V.call(this,["span","","{{sparkline_container}}"]);this.k=a;this.j=b;this.g=new bB("");O(this,this.g);Xq(this.template,"sparkline_container",this.g)}z(cW,V);function dW(){V.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}}"]]]]]);this.closeButton=this.template.g["html5-video-info-panel-close"];
this.g=new cW(200,14);O(this,this.g);Xq(this.template,"bandwidth_sparkline",this.g)}z(dW,V);
dW.prototype.update=function(a){a.dimensions=a.video_element_width+" x "+a.video_element_height;1<a.device_pixel_ratio&&(a.dimensions+=" * "+a.device_pixel_ratio);a.resolution=a.video_width+" x "+a.video_height;1<a.video_fps&&(a.resolution+="@"+a.video_fps);a.volume+="%";a.drm_flavor?(a.drm_style="",a.drm=a.drm_flavor+" / "+a.drm_key_system):(a.drm_style="display:none",a.drm="");var b=a.bandwidth_history;a.bandwidth_kbps=(8*db(b)/1024).toFixed(0)+" Kbps";for(var c=this.g,d=c.g,e=Math.max.apply(Math,
b)||1,g=[],h=0;h<b.length;h++)g.push(h/b.length*c.k+","+c.j*(1-b[h]/e));b='<svg width="'+c.k+'" height="'+c.j+'" viewbox="0 0 '+c.k+" "+c.j+'"><g><polyline stroke="white" fill="none" points="'+g.join(" ")+'"/></g></svg>';d.element.innerHTML=b;a.cpn_style=a.cpn?"":"display:none";this.template.update(a)};dW.prototype.K=function(){this.closeButton=null;dW.J.K.call(this)};function eW(a){gA.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.k=this.H=null;this.o=new Wb(0,0,0,0);this.g=null;this.F=new Wb(0,0,0,0);this.A=null;this.N=this.P=0;this.D=null;this.C=0;this.G=null;a=a.X();this.O=a.Ca||"blazer"==a.g;this.I=0;this.j=null;this.R=new bW;this.app.subscribe("initializingmode",this.Kq,this);this.app.subscribe("videoplayerreset",this.Mq,this);this.app.subscribe("videodatachange",this.Lq,this)}z(eW,gA);f=eW.prototype;
f.initialize=function(a){this.H=$c(a);this.element.setAttribute("id",this.app.S.attrs.id);yf(this.element,"version",this.app.S.assets.js);this.element.style.display="none";this.Ua(this.H);Tf({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_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",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_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_MORE_INFO:"More info",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"});this.publish("templateready")};f.Kq=function(){this.F=new Wb(0,0,0,0);this.o=new Wb(0,0,0,0)};f.addClass=function(a){uf(this.element,arguments)};
f.Cj=function(a){this.g=a;this.F=new Wb(0,0,0,0);this.g.parentNode||rd(this.k,this.g,0);L(this.g,"video-stream");L(this.g,"html5-main-video");a=this.app.X();"3"==a.j&&this.g.setAttribute("controls",!0);a.L&&this.g.setAttribute("webkit-playsinline","");this.g.setAttribute("x-webkit-airplay","allow");a.cb&&(this.G=bg(this.g,"click",x(this.g.play,this.g)))};function hp(a,b){var c=a.app.X();xf(a.element,"ytp-no-controls",!b||"0"==c.j)}
f.Tq=function(){this.C&&Jt(this.C);var a=x(this.yg,this);this.C=It(a,0)};f.yg=function(){Vb(this.gb(),Zb(this.o))||this.Kj()};
f.Kj=function(){if(this.g){var a=this.gb();if(!a.isEmpty()){var b=!Vb(a,Zb(this.o)),c=fW(this),d=this.gb(),e=1,g=gW(this),h=!1,k;g?(k=hW(this,d,c,g,!1),e=iW(new G(k.width,k.height))/iW(c),k=new Wb(k.left+k.width/2*(1-1/e),k.top,k.width/e,k.height)):k=new Wb(0,0,d.width,d.height);Yb(this.F,k)||(this.F=k,ae(this.g,Zb(k)),Qd(this.g,new F(k.left,k.top)),h=!0);c=hW(this,d,c,g);Yb(this.o,c)||(this.o=c,ae(this.A.M(),c.width,c.height),Qd(this.A.M(),c.left,c.top),h=!0);jt(this.g,"transform",1==e?"none":"scaleX("+
e+")");b&&(this.o.width=a.width,this.o.height=a.height);(h||b)&&this.publish("resize")}}};f.Lq=function(a,b){jW(this,b)};f.Mq=function(a){a.getVideoData()&&jW(this,a.getVideoData())};
function jW(a,b){if(a.g){a.g.setAttribute("data-_old_youtube-id",b.videoId);cm&&(b.title?a.g.setAttribute("title",b.title):a.g.removeAttribute("title"));var c=a.app.X();if(c.Yb){var d=a.g;if(b.videoId){var e;switch(b.da){case 30:e=cx;break;default:e=ax}c=e(a.g,b,c.B)}else c="";d.poster=c}}d=Tn(b,"yt:bgcolor");a.k.style.backgroundColor=d?d:"";a.P=rm(Tn(b,"yt:stretch"));d=Tn(b,"yt:crop");a.N="fullwidth"==d?Infinity:rm(d)}
f.he=function(){var a=this.app.X();return a.Ca||a.ib?new G(window.innerWidth,window.innerHeight):new G(this.element.clientWidth,this.element.clientHeight)};f.gb=function(){return this.he()};function Tz(a){return a.g?new G(0<a.g.style.width.indexOf("px")?parseInt(a.g.style.width,10):a.g.clientWidth,0<a.g.style.height.indexOf("px")?parseInt(a.g.style.height,10):a.g.clientHeight):new G(0,0)}function fW(a){return a.g?new G(a.g.videoWidth,a.g.videoHeight):new G(0,0)}
function kW(a){return hW(a,a.gb(),fW(a),gW(a),void 0)}function hW(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.P||iW(c),a=a.N||c,d=iW(b),d=a>d?new G(b.width,b.width/(isFinite(a)?a:c)):a<d?new G(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 Wb((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}
function iW(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:a.width/a.height}function gW(a){return"3"!=a.app.X().j&&!fW(a).isEmpty()}f.Gk=function(){};
f.Wn=function(){var a=Bo(this.app),b=this.app.getVideoData(),c=this.app.Qe(),d=this.g,e=this.app.X(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,n=window.devicePixelRatio,r=b.xa,v=Math.round(this.app.F.volume),s;t:{if(b.Sd&&(s=b.Sd.match(/url=(https?)/))&&2==s.length){s=s[1];break t}s=""}e=s||e.protocol;s=this.app;if(s.ja){var w=[];s.ja.D.forEach(x(w.push,w));s=w}else s=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:n,
cpn:r,mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:v,stream_type:e,bandwidth_history:s,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||"-"};b.g&&(g=nk(b.g)?"yes":"no",g+=" ("+b.g.id,b.G&&nk(b.g)&&(g+="/"+b.G.id),c.dash=g+")",c.mime=b.g.mimeType,c.video_fps=b.g.video.fps);
if(a=a.F?a.F.g:null)c.drm_flavor=a.j,c.drm_key_system=a.g;this.j.update(c)};f.Zh=function(){this.j&&(Rf(this.I),this.j.hide())};f.K=function(){this.D&&(this.O?dg(this.D):Rf(this.D),this.C&&Jt(this.C));this.G&&dg(this.G);this.Zh();this.j&&gg(this.j.closeButton);this.A=this.g=this.k=this.H=null;eW.J.K.call(this)};q("yt.pubsub.publish",Pg,void 0);function lW(){this.g=[];this.j=[]}ca(lW);var qA=t("yt.player.utils.VideoTagPool.instance_")||lW.getInstance();q("yt.player.utils.VideoTagPool.instance_",qA,void 0);f=lW.prototype;f.Mn=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++){var c=mW(this);this.g.push(c)}}};function mW(a,b){var c=document.createElement("video");sa(c,yp);bg(c,"loadeddata",x(c.Yw,c));bg(c,"volumechange",x(c.Zw,c));yg&&6<=Gm&&bg(c,"webkitbeginfullscreen",x(c.play,c));b||zp(c);a.j.push(c);return c}
f.ky=function(a){return this.g.length?this.g.pop():mW(this,a)};f.jy=function(a){a&&E(this.j,a)&&(Ep(a),gg(a),tb(this.j,a))};f.Nn=function(a){return this.g.length>=(a||1)};f.iy=function(){this.g=[];this.Nn(4)?C(this.j,function(a){zp(a);this.g.push(a)},this):this.Mn(4)};lW.prototype.fillPool=lW.prototype.Mn;lW.prototype.getTag=lW.prototype.ky;lW.prototype.releaseTag=lW.prototype.jy;lW.prototype.hasTags=lW.prototype.Nn;lW.prototype.activateTags=lW.prototype.iy;function nW(a){eW.call(this,a)}z(nW,eW);nW.prototype.gb=function(){return new G(window.innerWidth,window.innerHeight)};nW.prototype.Cj=function(a){a.style.width=window.innerWidth+"px";a.style.height=window.innerHeight+"px";a.parentNode||rd(this.k,a,0);nW.J.Cj.call(this,a)};var $o={"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 oW(a,b){Ch.call(this);this.S=ng(b);this.g=new bC(this.S.args||{});O(this,this.g);this.S.assets&&(this.g.Kh=this.S.assets.js);this.k=new nW(this);O(this,this.k);this.k.subscribe("templateready",this.pp,this);this.k.subscribe("resize",this.yp,this);this.L=1;this.wa={};this.R=null;this.F=this.g.Ih?to():{volume:100,muted:!1};this.vb=this.g.xb()?new cp(this,1):new xo(this,1);O(this,this.vb);this.fb=new jp(this);O(this,this.fb);this.cg=new jp(this,1);O(this,this.cg);this.O=this.o=null;this.Z={};
var c=new tB;c.j=!0;c.g=.1;this.ja=new jB(c);this.Aa={internalvideodatachange:this.ap,liveviewshift:this.ip,playbackready:this.bp,playbackstarted:this.dp,statechange:this.ep,signatureexpired:this.np};var c=new uB,d=this.fb;c.j!=d&&(vB(c),c.B={},c.j=d);d={};d.loaded=x(this.vk,this);d.unloaded=x(this.wk,this);d.command_pause=pW(this.pauseVideo,this);d.command_play=pW(this.fd,this);d.command_seek=pW(this.Rd,this);d.command_disable_controls=x(this.Pe,this);d.command_enable_controls=x(this.eg,this);d.command_redirect_controls=
x(this.Bk,this);d.command_stop_redirect_controls=x(this.ag,this);d.command_redirected_show_is_playing=x(this.k.Gk,this.k);d.command_progress=x(this.Lh,this);d.command_add_cuerange=x(this.zk,this);d.command_remove_cuerange=x(this.Ck,this);d.command_remove_cuerange_all=x(this.yk,this);d.command_preroll_ready=x(this.Dk,this);d.command_update_cuerange_markers=x(this.Fk,this);d.command_show_dialog=x(this.Ek,this);d.command_clear_video_overlays=x(this.ok,this);d.command_navigate_to_url=x(this.Ak,this);
d.command_log=x(this.Mh,this);d.publish_external_event=x(this.xk,this);d.module_menu_button_add=x(this.pk,this);d.module_menu_button_remove=x(this.qk,this);d.module_menu_item_add=x(this.rk,this);d.module_menu_item_remove=x(this.tk,this);d.module_menu_show=x(this.uk,this);d.vss_segment=x(this.Cp,this);c.C=d;this.D=c;O(this,this.D);this.G=new TB(this.g,"",this.D);c=new DE(this.g,1,this.G,this.k);qW(this,c,this.Aa);this.j=c;this.j.Z=this.ja;O(this,this.j);this.cb={beginseeking:this.fp,endseeking:this.hp,
internalvideodatachange:this.Ap,internalvideoformatchange:this.qp,progresssync:this.mp,seekto:this.zp,onLoadProgress:this.jp,onVideoProgress:this.vp,newlicensesession:this.xp,playbackready:this.kp,statechange:this.lp,connectionissue:this.gp,heartbeatparams:this.wp,videoelementevent:this.Bp};this.H=this.B=null;this.Ba=this.ka=-1;this.C=null;this.I={};this.W=null;this.Y={};this.da=null;this.Ra=0;this.ta=!1;this.P=!0;this.A=null;this.aa=1;this.ub=this.U=this.Ca=null;this.Ja=this.Ka=!1;this.oa=null;this.eb=
0;this.Yb=!1;this.Ia=0;c=new Fn(this.S.args);if(Vn(c)){FE(this.j,c,x(this.Qe,this));if("detailpage"==this.g.ea){var d=c.videoId,e=fh("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}eh&&eh.remove("yt-player-restore-playhead");dh&&dh.remove("yt-player-restore-playhead");this.g.Uf&&LE(this.j)}UB(this.G,"fs");this.k.initialize(a);this.g.experiments.ja&&this.Mh("controlclicked",{controlClicked:"init"})}z(oW,Ch);oW.j="defaultcontext";oW.g={};
oW.create=function(a,b){try{var c=oW.k(a);if(oW.g[c]){try{oW.g[c].dispose()}catch(d){Sf(d)}oW.g[c]=null}var e=new oW(a,b);Dg(e,function(){oW.g[c]=null});return oW.g[c]=e}catch(g){throw Sf(g),g;}};oW.k=function(a){return u(a)?a:"player"+la(a)};function rW(a){a.o=qA.getTag(!0);a.O=a.o;a.B&&VE(a.B,a.o);Fp(a.o,a.aa);a.g.Nc?(a.U&&dg(a.U),a.U=bg(a.o,"volumechange",x(a.Yt,a),!1)):a.o.setVolume(a.F.volume,a.F.muted);a.k.Cj(a.o);a.g.Fa=a.o;zp(a.o)}
function sW(a){if(a.o){a.U&&(dg(a.U),a.U=null);a.B&&pA(a.B);var b=a.k;b.g&&(sd(b.g),b.g=null);a.g.Fa=null;qA.releaseTag(a.o);a.o=null}}function mA(a,b){a.g.o?(a.W&&(Qd(a.o,a.W.left,a.W.top),ae(a.o,Zb(a.W)),a.W=null),Ep(a.o),pA(a.B),VE(a.B,a.o),Fp(a.o,a.aa)):qA.releaseTag(b)}function xU(a,b){if(a.B!=b){a.B&&(vB(a.D),AU(a));if(b!=a.j){var c=b.getPlayerType();a.Z[c]=b}a.B=b;b.Z=a.ja;a.o&&VE(b,a.o);qW(a,b,a.cb);tW(a,b,b.getVideoData());b.R.g&&uW(a,"dataloaded",b,b.getVideoData())}}
function qW(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function AU(a){pA(a.B);var b=a.B,c=a.cb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.B;b!=a.j&&(c=b.getPlayerType(),a.Z[c]==b&&delete a.Z[c]);a.B=null}f=oW.prototype;f.subscribe=function(a,b,c){return oW.J.subscribe.call(this,a,b,c)};function Bo(a,b){return b?1==b?a.j:a.Z[b]||null:a.B}function vW(a){var b=a.D,c=[kr,Xz,cA];a.g.experiments.N&&c.push(ox.j);C(c,b.cn,b);a.publish("videoready",a.getVideoData())}f.bp=function(){wW(this,5)};
f.kp=function(a){xW(this);a=a.getPlayerState();U(a,8)&&!U(a,2)&&this.fd()};function yW(a){a&&a.ce&&a.destroy()}f.Oa=function(a,b){this.publish.apply(this,arguments);this.Go.apply(this,arguments)};f.Rf=function(a,b){var c=wb(arguments);this.g.xb()&&this.B&&c.push(this.B.getPlayerType());this.publish.apply(this,c)};f.X=function(){return this.g};f.getVideoData=function(){return this.B.getVideoData()};function Ro(a){return a.j.getVideoData()}
f.Qe=function(){var a=iC(this.g);sa(a,yB(this.D));this.C&&sa(a,this.C.tf());a.fs=this.g.ib;a.volume=Math.round(this.F.volume);a.mos=this.F.muted?1:0;return a};f.Ek=function(){};
f.pp=function(){var a=this.k;a.R.g=a;var b=a.app.X();a.addClass("el-"+b.ea);a.addClass("ps-"+b.g);xf(a.element,"html5-native-controls","3"==b.j);xf(a.element,"html5-mobile",b.B);hp(a,!0);b.o||a.addClass("tag-pool-enabled");a.element.style.display="";b=new Sq(["div","html5-video-container"]);O(a,b);b.Ua(a.element);a.k=b.M();a.A=new Sq(["div","html5-video-content"]);O(a,a.A);a.A.Ua(a.k);a.j=new dW;a.j.Ua(a.element);tt(a,a.j.closeButton,"click",a.Zh);O(a,a.j);a.O?a.D=bg(window,"resize",x(a.yg,a)):(b=
Ht()?x(a.Tq,a):x(a.yg,a),a.D=Pf(b,250));a=this.vb;a.Pc=this.k.element;for(var c in a.Td)a.Pc[c]=a.Td[c];for(c in a.af)a.Pc[c]=a.af[c];c=x(this.Uq,this);a=document;"onfullscreenchange"in a?b="fullscreenchange":(b=Cf+"fullscreenchange",b="on"+b in a?b:null);"msfullscreenchange"==b&&(b="MSFullscreenChange");this.Ca=b?bg(a,b,c):null;this.ub=bg(window,"resize",x(this.Vq,this));a=this.S.args;if(im()){rW(this);c=Ro(this);b=this.k.gb();this.g.Mc=b;this.Oa("onVolumeChange",this.F);"detailpage"==this.g.ea?
ep(this):a&&(a.playlist||a.list||a.api)&&(zW(this,a),Vn(c)||(a=this.A,b=x(this.pl,this),a.qd=b,a.Qc&&M(a.qd,0)));if(a=this.S.args.jsapicallback)ja(a)||(a=t(a)),a&&pW(x(a,m,this.g.Qh),m);xU(this,this.j);this.g.Uf&&Vn(c)?AW(this):"leanback"!=this.g.ea&&BW(this)}else gr(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};function BW(a){a.publish("initializingmode");wW(a,2)}
function AW(a){if(!U(a.getPlayerState(),128)){a.publish("initializingmode");xU(a,a.j);wW(a,3);var b;(b=!a.g.o)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(sW(a),rW(a),VE(a.j,a.o));QE(a.j);CW(a,3);a.Yb=!0}}function pW(a,b){return function(){var c=Array.prototype.slice.call(arguments);M(function(){a.apply(b||this,c)},0)}}
f.Ak=function(a,b){if(b){Go(this,!1);this.pauseVideo();var c;c||(c={});var d=window,e="undefined"!=typeof a.href?a.href:String(a),g=c.target||a.target,h=[],k;for(k in c)switch(k){case "width":case "height":case "top":case "left":h.push(k+"="+c[k]);break;case "target":case "noreferrer":break;default:h.push(k+"="+(c[k]?1:0))}h=h.join(",");if(c.noreferrer){if(c=d.open("",g,h))H&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=Ca(e),c.document.write('<META HTTP-EQUIV="refresh" content="0; url='+
e+'">'),c.document.close()}else d.open(e,g,h)}else Rt(a)};f.Mh=function(a,b,c){var d=Bo(this);b.event=a;this.g.ib&&(b.fs=1);d.o&&(a=d.o,b.rt=eE(a.g).toFixed(3),sa(b,tE(a.g)),sa(b,vE(a)),delete b.fexp,b=oh(a.g.j.Ya+"player_204",b),ek(b,c))};function Io(a,b){if(!isNaN(b)&&a.o){var c=1,c=a.g.Ja?Mm:[1],c=1>b?D(c,function(a){return a>=b}):ob(c,function(a){return a<=b});a.aa!=c&&(a.aa=c,a.j==a.B&&Fp(a.o,c),a.publish("onPlaybackRateChange",c))}}
function Jo(a,b){var c=Bo(a,b);return c&&c.getVideoData().g?c.getVideoData().g.video.quality:"unknown"}f.getCurrentTime=function(a){return(a=Bo(this,a))?a.getCurrentTime():0};function Co(a,b){var c=Bo(a,b);return c?c.$b():0}f.getPlayerState=function(a){return(a=Bo(this,a||1))&&a.getPlayerState()};
f.Bp=function(a){var b=a.target;switch(a.type){case "loadedmetadata":UB(this.G,"fvb");this.Ra=M(x(this.k.Kj,this.k),16);break;case "loadstart":UB(this.G,"gv");break;case "progress":case "timeupdate":UB(this.G,"1pb"),2<=up(b.buffered)&&UB(this.G,"l2s")}};f.xp=function(a){if(this.Ja){var b=this.eb.toString();this.eb++;this.oa[b]=a;a={request:wb(a.g[0]?a.g[0].message:null),sessionId:b,system:a.G.g,url:a.B};this.publish("onNewLicenseSession",a)}else a.start()};
f.jp=function(a,b){this.Rf("onLoadProgress",b)};f.vp=function(a,b){this.Rf("onVideoProgress",b)};f.mp=function(){this.Lh()};f.Lh=function(a,b){this.publish("progresssync",a,b)};
f.ep=function(a){var b;if(b=0<hr(a,2))this.A&&("embedded"==this.g.ea||this.g.ib)&&DW(this)?(Uo(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),U(a.g,32)&&this.j.sj(),this.g.B&&Go(this,!1));U(a.state,128)&&(b=a.state,Ho(this),b=b.g,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Uf(b.messageKey)),this.publish("onError",$o[b.errorCode]||5),this.publish("onDetailedError",b));this.publish("applicationplayerstatechange",a);U(a.state,2)&&(a=this.getVideoData(),a.Sa&&!a.wb&&
this.Pe(["play_pause"]))};f.lp=function(a){!U(a.state,32)&&0>hr(a,16)&&(!U(a.state,8)||this.o.ended&&!U(a.state,2)||this.fd());this.publish("presentingplayerstatechange",a);this.Go("onStateChange",a);CW(this,Np(a.state))};function EW(a){yW(a.C);a.Ka=!1;var b=[],c;for(c in a.I)Fo(a,c)&&b.push(c);a.I={};0<b.length&&a.publish("controlsenabled",b);a.ag();a.wa={};a=a.G;b=a.j;b.A={};b.k={};a.k=!1}function tW(a,b){vB(a.D);Io(a,1);a.Oa("videoplayerreset",b)}
function uW(a,b,c,d){if(a.o){if("dataloaded"==b)if(cC(c.X(),d.o),a.B==a.j)if(Ro(a).Qk&&!a.g.B){var e="YTP_DEVICE_FALLBACK";Ic||em("iemobile")||em("xbox")&&em("trident")||em("nintendo wiiu")||(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");gr(a.j,"html5.unsupportedads",e,void 0)}else{var g=Ro(a);if(!(g.j||g.Sd||g.gd||g.Aa||g.R)||JE(a.j))if(g.mi)gr(a.j,"html5.nopurchaseflow","YTP_ERROR_PURCHASE_NOT_FOUND",void 0);else{Qn(g);g=aW.Va;!a.C&&g(a)&&(a.C=new aW(a),a.C&&(g=a.C,O(a,g),g.subscribe("loaded",
a.vk,a),g.subscribe("unloaded",a.wk,a),g.subscribe("command_pause",pW(a.pauseVideo,a)),g.subscribe("command_play",pW(a.fd,a)),g.subscribe("command_seek",pW(a.Rd,a)),g.subscribe("command_disable_controls",a.Pe,a),g.subscribe("command_enable_controls",a.eg,a),g.subscribe("command_redirect_controls",a.Bk,a),g.subscribe("command_stop_redirect_controls",a.ag,a),g.subscribe("command_redirected_show_is_playing",a.k.Gk,a.k),g.subscribe("command_progress",a.Lh,a),g.subscribe("command_add_cuerange",a.zk,a),
g.subscribe("command_remove_cuerange",a.Ck,a),g.subscribe("command_remove_cuerange_all",a.yk,a),g.subscribe("command_update_cuerange_markers",a.Fk,a),g.subscribe("command_preroll_ready",a.Dk,a),g.subscribe("command_show_dialog",a.Ek,a),g.subscribe("command_clear_video_overlays",a.ok,a),g.subscribe("command_log",a.Mh,a),g.subscribe("command_navigate_to_url",a.Ak,a),g.subscribe("publish_external_event",a.xk,a),g.subscribe("module_menu_button_add",a.pk,a),g.subscribe("module_menu_button_remove",a.qk,
a),g.subscribe("module_menu_item_add",a.rk,a),g.subscribe("module_menu_item_remove",a.tk,a),g.subscribe("module_menu_show",a.uk,a),g.subscribe("command_log_timing",a.D.F,a.D)));try{(e=a.C)&&!e.ce&&e.Va(a.cg)&&e.create()}catch(h){Sf(h),a.j&&UE(a.j,"ad")}vW(a)}else gr(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else vW(a);1==c.getPlayerType()&&(a.getVideoData().Ph?(a.R=nc(a.F),a.Pe(["audio"]),e=a.o,e.pi=!0,e.muted=!0):(Fo(a,"audio")&&a.eg(["audio"]),a.o.pi=!1,a.R&&(Do(a,
a.R),a.R=null)),e=a.getVideoData(),e.Sa&&!a.g.Rh?gr(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):e.Sa&&!e.wb?a.Pe(["seek"]):a.eg(["seek"]),d.Y||d.oa||d.A.focEnabled||d.A.rmktEnabled||a.g.Ud)&&(e=a.getVideoData(),g=1E3*e.lengthSeconds,FW(a,"part2viewed",1,g),FW(a,"engagedview",Math.max(1,1E3*e.ad),g),FW(a,"videoplaytime25",.25*g,g),FW(a,"videoplaytime50",.5*g,g),FW(a,"videoplaytime75",.75*g,g),FW(a,"videoplaytime100",g,2147483647),FW(a,"conversionview",g,2147483647));a.Oa("videodatachange",
b,d,c.getPlayerType())}}f.ap=function(a){"newdata"==a&&EW(this)};f.Ap=function(a,b,c){"newdata"==a?tW(this,b):uW(this,a,b,c)};f.qp=function(a,b){var c=this.B.getVideoData();a==c&&this.publish("onPlaybackQualityChange",a.g.video.quality,b)};
function ep(a){var b=GW();if(b&&0<=b.index){var c=[];C(b.videoIds,function(a){if(a=b.videoData?b.videoData[a]:void 0)a.video_id=a.id,c.push(a)});zW(a,{videoList:c,loop:b.autoPlay,index:b.index,list:b.list,playlist_title:b.listTitle,playlist_description:b.listDescription,author:b.author,fetch:0})}}function zW(a,b){if(a.A){Eg(a.A);a.A=null;var c=No(a.D,"playlist");if(c){var d=a.D;if(!d.j||c.Hj(d.j))c.destroy(),tb(d.g,c)}}b&&(a.A=new bo(b),a.D&&(c=a.D,C([xA.g],c.cn,c)))}
function FW(a,b,c,d){b in a.wa||(c=new Op(c,d,{id:b,priority:1}),c.Na.subscribe("onEnter",a.po,a),c.Na.subscribe("onExit",a.po,a),a.j.C.Pg(c),a.wa[b]=c)}
f.po=function(a){var b=a.getId(),c=Ro(this);"part2viewed"==b?(c.Yf&&ek(c.Yf),c.oa&&ek(c.oa)):"conversionview"==b?xE(this.j.o):"engagedview"==b&&ek(c.Y);if(c.Z){var d;d=a.getId();d=oh(c.Z,{label:d});ek(d)}switch(b){case "videoplaytime25":c.Gc&&ek(c.Gc);ek(c.jr);break;case "videoplaytime50":c.Pd&&ek(c.Pd);ek(c.kr);break;case "videoplaytime75":c.Qd&&ek(c.Qd);ek(c.lr);break;case "videoplaytime100":c.Ic&&ek(c.Ic),ek(c.ir)}this.g.Ud&&this.g.Ud[a.getId()]&&(b=this.g.Ud[a.getId()],c=A(B(b))?!1:-1!=b.search(Lj)||
-1!=b.search(Jj),ek(b,void 0,c));this.j.C.lf(a)};function wW(a,b){b!=a.L&&(2==b&&(CW(a,-1),CW(a,5)),a.L=b,a.publish("appstatechange",b))}function CW(a,b){a.B&&2==a.B.getPlayerType()?a.Ba!=b&&(a.Ba=b,a.Rf("onAdStateChange",b)):a.ka!=b&&(a.ka=b,a.Rf("onStateChange",b))}f.Rd=function(a,b,c,d){(d=Bo(this,d))&&RE(d,a,0!=b,c)};f.zp=function(a,b){var c=a.getVideoData();if(1==this.L||2==this.L)c.startSeconds=b;2==this.L?AW(this):this.Oa("seekto",b)};f.fp=function(){this.Oa("beginseeking")};f.hp=function(){this.Oa("endseeking")};
f.setVolume=function(a){var b=this.F;b.volume=a;Do(this,b)};function Do(a,b){a.F=b;b.volume=Sb(b.volume,0,100);a.g.Ih&&!a.g.Nc&&so(b);Fo(a,"audio")?a.R&&(a.R=nc(b),a.Oa("onVolumeChange",b)):(xW(a),a.g.Nc||a.Oa("onVolumeChange",b))}function Oo(a,b,c){b.list=b.list||null;b=new Fn(b);Ro(a).playlistId!=b.playlistId&&zW(a,null);b.playlistId&&"detailpage"==a.g.ea&&ep(a);return HW(a,b,void 0,void 0,c)}
function dp(a,b){a.H&&a.H.getVideoData().videoId==b.videoId||(b.ta=!0,a.H||(a.H=new DE(a.g,1,a.G,a.k),a.H.Z=a.ja,O(a,a.H)),FE(a.H,b,x(a.Qe,a)),LE(a.H,!0))}
function HW(a,b,c,d,e){if(!Bm("_start",a.G.g)){var g=a.G.g;Cm("yt_sts","p",g);zm("_start",void 0,g);a.G.info("srt",0)}if(a.H&&a.H.getVideoData().videoId==b.videoId){g=a.H;a.H=null;b=g;c=a.j;d=a.Aa;for(var h in d)c.unsubscribe(h,d[h],a);a.j.dispose();a.j=b;qW(a,b,a.Aa);EW(a)}else{g=Bo(a,e);if(!g)return!1;Qf(a.Ra);void 0!=c&&(b.startSeconds=c);b.Xd=sm(b.Xd,d);Ho(a,e);FE(g,b,x(a.Qe,a))}if(!KE(g))return!1;g==a.j?(wW(a,1),AW(a)):QE(g);return!0}function IW(a,b){var c=HW(a,b,void 0);zo(a,c,void 0)}
function zo(a,b,c){c=Bo(a,c);b&&c==a.j&&(c.getVideoData().Hc=!0)}function Po(a,b,c){b.list=b.list||null;JW(a,new Fn(b),c)}function JW(a,b,c){var d=Bo(a,c);d&&(Ho(a,c),FE(d,b,x(a.Qe,a)),KE(d)&&(cC(d.X(),b.o),d==a.j&&(wW(a,1),BW(a))))}
function To(a,b,c,d,e){if(ka(b)&&!ga(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},u(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;zW(a,b);b=a.A;a=x(a.pl,a);b.qd=a;b.Qc&&M(b.qd,0)}f.pl=function(){var a=oo(this.A);this.getVideoData().Ne||!this.P?this.getVideoData().Hc?IW(this,a):HW(this,a):a&&JW(this,a)};
function DW(a){var b=GW();return!(!a.A||!ko(a.A)||b&&!b.autoPlay)}function Uo(a){a.A&&(a.g.experiments.A&&"detailpage"==a.g.ea&&!a.g.ib?t("yt.www.watch.lists.next")():a.A.Qc?ko(a.A)&&HW(a,mo(a.A)):(mo(a.A),a.P=!1))}function Vo(a){if(a.A)if(a.g.experiments.A&&"detailpage"==a.g.ea&&!a.g.ib)t("yt.www.watch.lists.prev")();else if(a.A.Qc){var b=a.A;(b.Ae||0<=b.Ha-1)&&HW(a,po(a.A))}else po(a.A),a.P=!1}function Wo(a,b){a.A&&(a.A.Qc?IW(a,oo(a.A,b)):a.P=!1,no(a.A,b))}
function GW(){var a=t("yt.www.watch.lists.getState");return a?a():null}function Xo(a){return a.A&&a.A.k?a.A.k.toString():null}function So(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 Op(1E3*c,1E3*d,b);c.Na.subscribe("onEnter",a.Kw,a);c.Na.subscribe("onExit",a.Lw,a);a.j.C.Pg(c);a.publish("cuerangesadded",[c]);return!0}f.Kw=function(a){this.publish("onCueRangeEnter",a.getId())};
f.Lw=function(a){this.publish("onCueRangeExit",a.getId())};f.zk=function(a,b){var c=Bo(this,b);c&&(c.C.Pg.apply(c.C,a),this.publish("cuerangesadded",a))};f.Ck=function(a,b){var c=Bo(this,b);c&&(c.C.lf.apply(c.C,a),this.publish("cuerangesremoved",a))};f.yk=function(a,b){var c=Bo(this,b);if(c){for(var c=c.C,d=c.o.length-1;0<=d;d--)c.o[d].namespace==a&&Rp(c,d);c.Jb()}};f.Fk=function(a){this.publish("cuerangemarkersupdated",a)};f.Dk=function(a,b){var c=Bo(this,b);c&&UE(c,a)};
f.dp=function(){KW(this,VB(this.G));if(!this.Ka&&"detailpage"==this.g.ea){this.Ka=!0;var a=this.j;if(a.P&&a.P.g){var b={},c={};a.g.videoId&&(b.docid=a.g.videoId);a.g.D&&(b.plid=a.g.D);b.cpn=a.g.xa;b.ad_cpn=a.P.g;var d=y()-a.P.j;a.P.k?c.astv=d:c.actv=d;a={v:2,s:"_old_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=Nf("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&
(a.ei=b.ei);Dm(a)}}if(this.ta&&(b=this.j,b.o))b.o.onError("html5.reboot");this.ta=!1;this.g.experiments.B&&DW(this)&&(b=oo(this.A,lo(this.A)))&&dp(this,b)};function KW(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.o.k.aft=[b])}}f.vk=function(a){"remote"==a?(2==this.L&&AW(this),wW(this,6),yW(this.C)):this.Rf("onApiChange")};f.wk=function(a){"remote"==a&&(this.fd(),this.pauseVideo())};
f.Yt=function(){if(!Fo(this,"audio")){var a={volume:100*this.o.volume,muted:this.o.muted};this.F=nc(a);this.Oa("onVolumeChange",a)}};function xW(a){var b=a.g.Nc?Fn.g:a.getVideoData().Bm;a.o.setVolume(a.F.volume*b,a.F.muted)}f.Uq=function(){LW(this,ig()?1:0)};
function LW(a,b){var c=!!b,d=!!a.Ia!=c;a.Ia=b;if(d){if("detailpage"==a.g.ea&&!c&&(d=Ro(a),Nf("VIDEO_ID")!=d.videoId)){var e=a.getCurrentTime(),g={};g[d.videoId]=e;ch("yt-player-restore-playhead",g,172800);a.pauseVideo()}zm("fsc",void 0,a.G.g);a.g.ib=c;a.k.Kj();a.Oa("fullscreentoggled",c);c={fullscreen:c,videoId:Ro(a).videoId};Xo(a)&&(c.listId=Xo(a));a.publish("onFullscreenChange",c)}}
f.yp=function(){var a=this.k.gb();this.g.Mc=a;if(this.o){a=!1;if(0!=this.o.readyState&&this.B){var b=new G(this.o.videoWidth,this.o.videoHeight),c=this.getVideoData();Vb(c.Ba,b)||(c.Ba=b,a=!0)}b=kW(this.k);Yb(this.g.mn,b)||(this.g.mn=b,a=!0);b=kW(this.k);Yb(this.g.fe,b)||(this.g.fe=b,a=!0);a&&(this.B&&Ko(this.B,"r"),this.publish("resize",this.k.he()),this.Oa("onResize"))}};f.Vq=function(){2!=this.Ia&&LW(this,ig()?1:0)};f.ok=function(a){this.Oa("clearvideooverlays",!!a)};
f.pk=function(a,b){this.Oa("menu_button_add",a,b)};f.qk=function(a){this.Oa("menu_button_remove",a)};f.rk=function(a){this.Oa("menu_item_add",a)};f.tk=function(a){this.Oa("menu_item_remove",a)};f.uk=function(a){this.Oa("menu_show",a)};f.Cp=function(a){(a=Bo(this,a))&&a.o&&bE(a.o.j)};f.ip=function(a){this.Oa("liveviewshift",a)};
f.xk=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(UB(this.G,"vr"),fF(this.B),KW(this,VB(this.G)));0==c&&e&&(this.j.P=e);var g=this.g;"leanback"==g.ea&&g.xb()&&(0==c?this.O=this.o:this.O=d,this.publish("onAdStateChange",c,e.video_id))}else this.publish.apply(this,arguments)};f.Go=function(a,b){this.D.G.apply(this.D,arguments);this.C&&this.C.publish.apply(this.C,arguments)};
f.fd=function(a){(a=Bo(this,a))&&(2==this.L?AW(this):U(a.getPlayerState(),2)?this.Rd(0):YE(a))};f.pauseVideo=function(a){(a=Bo(this,a))&&a.pauseVideo()};function Ho(a,b){var c=Bo(a,b);c&&1!=a.L&&2!=a.L&&(TE(c),1==b&&yW(a.C))}function Eo(a,b){if(!Fo(a,"play_pause")){var c=a.Y.play_pause?a.da:null;c?c.He("control_play"):a.fd(b)}}function Ao(a,b,c,d,e){if(!Fo(a,"seek")){var g=a.Y.seek?a.da:null;g?g.He("control_seek",b):a.Rd(b,c,d,e)}}
function Go(a,b){if(a.g.ib!=b)if(hg())if(b){var c=a.k.element,d=Gf(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Gf(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else LW(a,b?2:0)}f.getAdState=function(){return this.C?this.C.getAdState():-1};function Fo(a,b){return!(!a.I[b]||!a.I[b].length)}
f.Pe=function(a,b){b=b||oW.j;var c=[];C(a,function(a){this.I[a]?0>this.I[a].indexOf(b)&&this.I[a].push(b):(this.I[a]=[b],c.push(a))},this);0<c.length&&this.publish("controlsdisabled",c)};f.eg=function(a,b){b=b||oW.j;var c=[];C(a,function(a){if(Fo(this,a)){var e=this.I[a].indexOf(b);0<=e&&this.I[a].splice(e,1);0==this.I[a].length&&c.push(a)}},this);0<c.length&&this.publish("controlsenabled",c)};f.Bk=function(a,b,c){this.ag();this.da=a;b&&C(b,function(a){this.Y[a]=!0},this);c&&wB(this.D,a,c)};
f.ag=function(){this.da=null;this.Y={};xB(this.D)};function Yo(a,b,c,d){c=a.C&&b==a.C.va?a.C.Ah(c,d):b&&c?(a=No(a.D,b))?a.Ah(c,d):null:null;return c}f.np=function(){if(this.g.experiments.k&&!this.ta){this.ta=!0;var a=this.getVideoData(),b=Bo(this).getCurrentTime();Oo(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.gp=function(){this.Oa("CONNECTION_ISSUE")};f.wp=function(a){this.Oa("heartbeatparams",a)};
f.K=function(){sW(this);this.Ca&&dg(this.Ca);dg(this.ub);Fg(ec(this.Z),this.A);this.O=null;Qf(this.Ra);oW.J.K.call(this)};function MW(){return!1}function NW(){return null};function OW(a){this.j=a;this.g=null;var b=this;a.then(function(a){b.g=a})}function PW(a,b){var c=b||{},d=QW().then(function(b){return b(a,{apiKey:c.yy||c.apiKey,environment:c.zy||c.environment,helpCenterPath:c.Ay||c.helpCenterPath,locale:c.locale||c.locale,productData:c.By||c.productData,receiverUri:c.Cy||c.receiverUri,theme:c.theme||c.theme,window:c.window||c.window})});return new OW(d)}var RW=null;
function QW(){if(RW)return RW;var a=t("help.service.Lazy.create");return a?RW=Li(a):RW=(new Ji(function(a,c){var d=document.createElement("script");d.async=!0;d.src="https://www.gstatic.com/inproduct_help/service/lazy.min.js";d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||a(null)};d.onerror=c;(document.head||document.getElementsByTagName("head")[0]).appendChild(d)})).then(function(){var a=t("help.service.Lazy.create");if(!a)throw Error("Failed to load help.service.Lazy.create from https://www.gstatic.com/inproduct_help/service/lazy.min.js");
return a})}OW.prototype.k=function(a){SW(this,"startFeedback",arguments)};OW.prototype.o=function(a){SW(this,"startHelp",arguments)};function SW(a,b,c){a.j.then(function(a){a[b].apply(a,c)})};function TW(){this.k=this.j=this.g=0;this.o="";var a=t("window.navigator.plugins"),b=t("window.navigator.mimeTypes"),a=a&&a["Shockwave Flash"],b=b&&b["application/x-shockwave-flash"],b=a&&b&&b.enabledPlugin&&a.description||"";if(a=b){var c=a.indexOf("Shockwave Flash");0<=c&&(a=a.substr(c+15));for(var c=a.split(" "),d="",a="",e=0,g=c.length;e<g;e++)if(d)if(a)break;else a=c[e];else d=c[e];d=d.split(".");c=parseInt(d[0],10)||0;d=parseInt(d[1],10)||0;e=0;if("r"==a.charAt(0)||"d"==a.charAt(0))e=parseInt(a.substr(1),
10)||0;a=[c,d,e]}else a=[0,0,0];this.o=b;b=a;this.g=b[0];this.j=b[1];this.k=b[2];if(0>=this.g){var h,k,l,n;if(Vf)try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(r){h=null}else l=document.body,n=document.createElement("object"),n.setAttribute("type","application/x-shockwave-flash"),h=l.appendChild(n);if(h&&"GetVariable"in h)try{k=h.GetVariable("$version")}catch(v){k=""}l&&n&&l.removeChild(n);(h=k||"")?(h=h.split(" ")[1].split(","),h=[parseInt(h[0],10)||0,parseInt(h[1],10)||0,parseInt(h[2],
10)||0]):h=[0,0,0];this.g=h[0];this.j=h[1];this.k=h[2]}}ca(TW);TW.prototype.getVersion=function(){return[this.g,this.j,this.k]};function UW(a,b,c,d){b="string"==typeof b?b.split("."):[b,c,d];b[0]=parseInt(b[0],10)||0;b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return a.g>b[0]||a.g==b[0]&&a.j>b[1]||a.g==b[0]&&a.j==b[1]&&a.k>=b[2]}function VW(a){return-1<a.o.indexOf("Gnash")&&-1==a.o.indexOf("AVM2")||9==a.g&&1==a.j||9==a.g&&0==a.j&&1==a.k?!1:9<=a.g}
function WW(a){return zc?!UW(a,11,2):yc?!UW(a,11,3):!VW(a)};var XW={};function YW(a){var b=Nf("FEEDBACK_LOCALE_LANGUAGE"),c=Nf("FEEDBACK_LOCALE_EXTRAS",{});a?qc(XW,a):qc(XW,c);try{var d,e=t("yt.player.getPlayerByElement");(d=e?e("player-api"):null)&&d.pauseVideo&&d.pauseVideo();var g=TW.getInstance();XW.flashVersion=g.getVersion().join(".");d&&(XW.playback_id=d.getVideoData().cpn)}catch(h){}return{helpCenterPath:"/_old_youtube",locale:b,productData:XW}}
function ZW(){var a=Nf("SESSION_INDEX"),b=Nf("FEEDBACK_BUCKET_ID"),c={abuseLink:"https://support.google.com/_old_youtube/bin/answer.py?answer=140536",customZIndex:"2000000005"};a&&(c.authuser=a+"");b&&(c.bucket=b);return c}function $W(a,b){try{var c=(a||"59")+"",d=YW(b),e=ZW();PW(c,d).k(e);return!1}catch(g){return!0}}
function aX(a,b,c,d){var e;d=(d||"59")+"";c=YW(c);a={context:b,anchor:void 0,enableSendFeedback:!0,trackingParam:void 0,defaultHelpArticleId:a};qc(a,ZW());try{PW(d,c).o(a),e=!1}catch(g){e=!0}return e};function bX(a,b,c){if(b){a=u(a)?ad(a):a;c=ng(c);var d=nc(c.attrs);d.tabindex=0;var e=nc(c.params);e.flashvars=Oe(c.args);if(Vf){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;b=document.createElement("object");for(var g in d)b.setAttribute(g,d[g]);for(g in e)d=document.createElement("param"),d.setAttribute("name",g),d.setAttribute("value",e[g]),b.appendChild(d)}else{d.type="application/x-shockwave-flash";d.src=b;b=document.createElement("embed");b.setAttribute("name",d.id);for(g in d)b.setAttribute(g,
d[g]);for(g in e)b.setAttribute(g,e[g])}e=document.createElement("div");e.appendChild(b);a.innerHTML=e.innerHTML}}
function cX(a,b,c){if(a&&a.attrs&&a.attrs.id){a=ng(a);var d=!!b,e=$c(a.attrs.id),g=e?e.parentNode:null;if(e&&g){if(window!=window.top){var h=null;if(document.referrer){var k=document.referrer.substring(0,128);qh(k)||(h=k)}else h="unknown";h&&(d=!0,a.args.framer=h)}h=dX();if(UW(h,a.minVersion)){var k=eX(a,h),l="";-1<navigator.userAgent.indexOf("Sony/COM2")||(l=e.getAttribute("src")||e.movie);(l!=k||d)&&bX(g,k,a);WW(h)&&fX()}else gX(g,a,h);c&&c()}else M(function(){cX(a,b,c)},50)}}
function gX(a,b,c){0==c.g&&b.fallback?b.fallback():0==c.g&&b.fallbackMessage?b.fallbackMessage():a.innerHTML='<div id="flash-upgrade">'+Uf("FLASH_UPGRADE",void 0,'You need to upgrade your Adobe Flash Player to watchthis video. <br> <a href="http://get.adobe.com/flashplayer/">Download it from Adobe.</a>')+"</div>"}function eX(a,b){return VW(b)&&a.url||(-1<navigator.userAgent.indexOf("Sony/COM2")&&!UW(b,9,1,58)?!1:!0)&&a.urlV9As2||a.urlV8||a.url}
function dX(){var a=TW.getInstance();zA.getInstance().set("fv",a.getVersion().join("."));var b;b=[];for(var c in AA)b.push(c+"="+escape(AA[c]));b=b.join("&");Ih("PREF",b,63072E3);return a}function fX(){var a=$c("flash10-promo-div"),b;zA.getInstance();b=DA("f"+(Math.floor(107/31)+1));b=!!(((null!=b&&/^[A-Fa-f0-9]+$/.test(b)?parseInt(b,16):null)||0)&16384);a&&!b&&gt(a)};function hX(a,b){N.call(this);this.o=this.Te=a;this.F=b;this.B=!1;this.g={};this.I=this.D=null;this.G=new Gg;O(this,this.G);this.k={};this.A=this.L=this.j=this.P=this.S=null;this.H=!1;this.O=this.C=null;this.N={};this.Y=["onReady"];this.R=null;this.U=0;this.W=!!Nf("PLAYER_PERSISTENCE_REFACTOR");iX(this);this.Wd("onVolumeChange",x(this.Hp,this));this.Wd("onError",x(this.Kp,this));this.Wd("onTabOrderChange",x(this.Gp,this));this.Wd("WATCH_LATER_VIDEO_ADDED",x(this.Ip,this));this.Wd("WATCH_LATER_VIDEO_REMOVED",
x(this.Jp,this))}z(hX,N);f=hX.prototype;f.getId=function(){return this.F};f.Pj=function(a,b){this.fa()||(jX(this,a),kX(this,b),this.B&&lX(this))};
function jX(a,b){a.P=b;a.S=b.clone();a.j=a.S.attrs.id||a.j;"video-player"==a.j&&(a.j=a.F,a.S.attrs.id=a.F);a.o.id==a.j&&(a.j=a.j+"-player",a.S.attrs.id=a.j);var c=a.S.args,d;(d=a.S.args.eurl)||(d=document.location.toString(),d=Wj(d)?document.referrer&&document.referrer.substring(0,128)||"unknown":d);c.eurl=d;a.S.args.enablejsapi="1";a.S.args.playerapiid=a.F;a.L||(a.L=mX(a,a.S.args.jsapicallback||"onYouTubePlayerReady"));a.S.args.jsapicallback=null;(c=a.S.attrs.width)&&be(a.o,Number(c)||c);if(c=a.S.attrs.height)a.o.style.height=
Rd(Number(c)||c,!0);a.o.style.overflow="hidden"}f.Tu=function(){return this.P};function lX(a){a.S.loaded||(a.S.loaded=!0,"0"!=a.S.args.autoplay?a.g.loadVideoByPlayerVars(a.S.args):a.g.cueVideoByPlayerVars(a.S.args))}function nX(a){if(!p(a.S.disable.flash)){var b=a.S.disable,c;c=UW(dX(),a.S.minVersion);b.flash=!c}return!a.S.disable.flash}
function oX(a){var b=pX(a);b&&b.stopVideo&&b.stopVideo();if(nX(a)){var c=a.S;b&&b.getUpdatedConfigurationData&&(b=ng(b.getUpdatedConfigurationData()),b.args.video_id==c.args.video_id&&(c=b));c.args.autoplay=1;c.args.html5_unavailable="1";jX(a,c);kX(a,"flash")}}
function kX(a,b){if(!a.fa()){if(!b){var c;if(!(c=!a.S.html5&&nX(a))){if(!p(a.S.disable.html5)){if(c=im())c=qX(a)||a.S.assets.js;a.S.disable.html5=!c;c||(a.S.args.html5_unavailable="1")}c=!!a.S.disable.html5}b=c?nX(a)?"flash":"unsupported":"html5"}("flash"==b?a.mx:"html5"==b?a.nx:a.ox).call(a)}}function qX(a){var b=!0;if(a.W){var c=pX(a);c&&a.S&&(a=a.S,b=Af(c,"version")==a.assets.js)}return b&&!!t("yt.player.Application.create")}
f.nx=function(){if(!this.H){var a=!0;this.W&&(a=qX(this));a&&"html5"==rX(this)?(this.A="html5",this.B||this.ye()):(sX(this),this.A="html5",a&&this.O?(this.Te.appendChild(this.O),this.ye()):(this.S.loaded=!0,this.C=x(function(){var a=this.Te,c=this.S.clone();t("yt.player.Application.create")(a,c);this.ye()},this),this.H=!0,qX(this)?this.C():(ut(this.S.assets.js,this.C),Ct(this.S.assets.css))))}};
f.mx=function(){var a=this.S.clone();a.attrs.width=a.attrs.width||"100%";a.attrs.height=a.attrs.height||"100%";if("flash"==rX(this))this.A="flash",this.B||cX(a,!1,x(this.ye,this));else{sX(this);this.A="flash";this.S.loaded=!0;var b=this.Te,b=u(b)?ad(b):b,a=ng(a);if(window!=window.top){var c=null;document.referrer&&(c=document.referrer.substring(0,128));a.args.framer=c}c=dX();UW(c,a.minVersion)?(c=eX(a,c),bX(b,c,a)):gX(b,a,c);this.ye()}};
function pX(a){var b=$c(a.j);!b&&a.o&&a.o.querySelector&&(b=a.o.querySelector("#"+a.j));return b}
f.ye=function(){var a=pX(this),b=!1;try{a&&a.getApiInterface&&a.getApiInterface()&&(b=!0)}catch(c){}if(b)if(this.H=!1,a.isNotServable&&a.isNotServable())oX(this);else{iX(this);this.B=!0;a=pX(this);a.addEventListener&&(this.D=tX(this,a,"addEventListener"));a.removeEventListener&&(this.I=tX(this,a,"removeEventListener"));for(var b=a.getApiInterface(),b=b.concat(a.getInternalApiInterface()),d=0;d<b.length;d++){var e=b[d];this.g[e]||(this.g[e]=tX(this,a,e))}for(var g in this.k)this.D(g,this.k[g]);lX(this);
this.L&&this.L(this.g);this.G.publish("onReady",this.g)}else this.U=M(x(this.ye,this),50)};function tX(a,b,c){var d=b[c];return function(){try{return a.R=null,d.apply(b,arguments)}catch(e){"Bad NPObject as private data!"!=e.message&&(e.message+=" ("+c+")",a.R=e,Sf(e,"WARNING"))}}}
function iX(a){a.B=!1;if(a.I)for(var b in a.k)a.I(b,a.k[b]);a.D=null;a.I=null;for(var c in a.g)a.g[c]=null;a.g.addEventListener=x(a.Wd,a);a.g.removeEventListener=x(a.Wu,a);a.g.destroy=x(a.dispose,a);a.g.getLastError=x(a.Uu,a);a.g.getPlayerType=x(a.Vu,a);a.g.getCurrentVideoConfig=x(a.Tu,a);a.g.loadNewVideoConfig=x(a.Pj,a);a.g.isReady=x(a.Xu,a)}f.Xu=function(){return this.B};
f.Wd=function(a,b){if(!this.fa()){var c=mX(this,b);if(c){if(!E(this.Y,a)&&!this.k[a]){var d=uX(this,a);this.D&&this.D(a,d)}this.G.subscribe(a,c);"onReady"==a&&this.B&&M(ra(c,this.g),0)}}};f.Wu=function(a,b){if(!this.fa()){var c=mX(this,b);c&&this.G.unsubscribe(a,c)}};function mX(a,b){var c=b;if("string"==typeof b){if(a.N[b])return a.N[b];c=function(){var a=t(b);a&&a.apply(m,arguments)};a.N[b]=c}return c?c:null}
function uX(a,b){var c="ytPlayer"+b+a.F;a.k[b]=c;m[c]=function(c){M(function(){a.fa()||a.G.publish(b,c)},0)};return c}f.Gp=function(a){a=a?yd:xd;for(var b=a(document.activeElement);b&&(1!=b.nodeType||(b.focus(),b!=document.activeElement));)b=a(b)};f.Hp=function(a){so(a)};f.Kp=function(a){5==a&&oX(this)};f.Ip=function(a){Pg("WATCH_LATER_VIDEO_ADDED",a)};f.Jp=function(a){Pg("WATCH_LATER_VIDEO_REMOVED",a)};
f.ox=function(){sX(this);this.A="unsupported";var a='Adobe Flash Player or an HTML5 supported browser is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="/html5">Learn more about upgrading to an HTML5 browser</a>',b=navigator.userAgent.match(/Version\/(\d).*Safari/);b&&5<=parseInt(b[1],10)&&(a='Adobe Flash Player or QuickTime is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/"> Get the latest Flash Player</a> <br> <a href="http://www.apple.com/quicktime/download/">Get the latest version of QuickTime</a>');
b=this.S.messages.player_fallback||a;a=$c("player-unavailable");if($c("unavailable-submessage")&&a){$c("unavailable-submessage").innerHTML=b;var b=I("icon",a),c;if(c=b)c=b?b.dataset?zf("icon")in b.dataset:b.hasAttribute?!!b.hasAttribute("data-icon"):!!b.getAttribute("data-icon"):!1;c&&(b.src=Af(b,"icon"));vf(a,"hid");L($c("player"),"off-screen-trigger")}};f.Vu=function(){return this.A||rX(this)};f.Uu=function(){return this.R};
function rX(a){return(a=pX(a))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}function sX(a){zm("dcp");a.cancel();iX(a);a.A=null;a.S&&(a.S.loaded=!1);var b=pX(a);"html5"==rX(a)?a.O=b:b&&b.destroy&&b.destroy();qd(a.Te)}f.cancel=function(){if(this.C){var a=this.C;this.S.assets.js&&a&&(a=""+la(a),(a=At[a])&&Og(a))}Qf(this.U);this.H=!1};f.K=function(){sX(this);this.N=null;for(var a in this.k)m[this.k[a]]=null;this.g=null;delete this.Te;delete this.o;this.S&&(this.P=this.S=this.S.fallback=null);hX.J.K.call(this)};var vX={},wX="player_uid_"+(1E9*Math.random()>>>0);function xX(a,b){a=u(a)?ad(a):a;b=ng(b);var c=wX+"_"+la(a),d=vX[c];if(d)return d.Pj(b),d.g;d=new hX(a,c);vX[c]=d;Pg("player-added",d.g);Dg(d,ra(yX,d));M(function(){d.Pj(b)},0);return d.g}function zX(){for(var a in vX){var b=vX[a];b&&b.cancel()}}function AX(a){if(a=$c(a))a=wX+"_"+la(a),(a=vX[a])&&a.dispose()}function yX(a){vX[a.getId()]=null}function BX(a){a=$c(a);if(!a)return null;var b=wX+"_"+la(a),c=vX[b];c||(c=new hX(a,b),vX[b]=c);return c.g};var CX=t("yt.abuse.botguardInitialized")||MW;q("yt.abuse.botguardInitialized",CX,void 0);var DX=t("yt.abuse.invokeBotguard")||NW;q("yt.abuse.invokeBotguard",DX,void 0);var EX=t("yt.player.exports.navigate")||St;q("yt.player.exports.navigate",EX,void 0);var FX=t("yt.player.embed")||xX;q("yt.player.embed",FX,void 0);var GX=t("yt.player.destroy")||AX;q("yt.player.destroy",GX,void 0);var HX=t("yt.player.cancelAll")||zX;q("yt.player.cancelAll",HX,void 0);var IX=t("yt.player.getPlayerByElement")||BX;
q("yt.player.getPlayerByElement",IX,void 0);var JX=t("yt.player.exports.feedbackStart")||$W;q("yt.player.exports.feedbackStart",JX,void 0);var KX=t("yt.player.exports.feedbackShowArticle")||aX;q("yt.player.exports.feedbackShowArticle",KX,void 0);var LX=t("yt.util.activity.init")||WB;q("yt.util.activity.init",LX,void 0);var MX=t("yt.util.activity.getTimeSinceActive")||XB;q("yt.util.activity.getTimeSinceActive",MX,void 0);var NX=t("yt.util.activity.setTimestamp")||gp;
q("yt.util.activity.setTimestamp",NX,void 0);q("yt.player.Application.create",oW.create,void 0);})();