(function(){var g,aa=aa||{},m=this;function n(a){a=a.split(".");for(var b=m,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function ba(){}function da(a){a.getInstance=function(){return a.Wc?a.Wc:a.Wc=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 p(a){return void 0!==a}function q(a){return"array"==ea(a)}function fa(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==ea(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(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 t(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return t.apply(null,arguments)}
function u(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var v=Date.now||function(){return+new Date};function w(a,b){var c=a.split("."),d=m;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function y(a,b){function c(){}c.prototype=b.prototype;a.w=b.prototype;a.prototype=new c}
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 t.apply(null,c)}return t(this,a)};var na;function oa(a){return decodeURIComponent(a.replace(/\+/g," "))}function pa(a){if(!qa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ra,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(sa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ta,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ua,"&quot;"));return a}var ra=/&/g,sa=/</g,ta=/>/g,ua=/\"/g,qa=/[&<>\"]/;
function va(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var k=d[h]||"",l=e[h]||"",r=RegExp("(\\d*)(\\D*)","g"),K=RegExp("(\\d*)(\\D*)","g");do{var U=r.exec(k)||["","",""],x=K.exec(l)||["","",""];if(0==U[0].length&&0==x[0].length)break;c=((0==U[1].length?0:parseInt(U[1],10))<(0==x[1].length?0:parseInt(x[1],10))?-1:(0==U[1].length?0:parseInt(U[1],10))>(0==x[1].length?
0:parseInt(x[1],10))?1:0)||((0==U[2].length)<(0==x[2].length)?-1:(0==U[2].length)>(0==x[2].length)?1:0)||(U[2]<x[2]?-1:U[2]>x[2]?1:0)}while(0==c)}return c}function wa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b};var z=Array.prototype,xa=z.indexOf?function(a,b,c){return z.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(s(a))return s(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},A=z.forEach?function(a,b,c){z.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ya=z.filter?function(a,b,c){return z.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=s(a)?
a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[f++]=l)}return e},B=z.map?function(a,b,c){return z.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=s(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},za=z.some?function(a,b,c){return z.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},Aa=z.every?function(a,b,c){return z.every.call(a,b,c)}:function(a,b,c){for(var d=
a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};function Ba(a,b){var c=Ca(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function Ca(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function C(a,b){return 0<=xa(a,b)}function Da(a){return 0==a.length}function Ea(){var a=Fa;if(!q(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ga(a,b){C(a,b)||a.push(b)}
function Ha(a,b){var c=xa(a,b),d;(d=0<=c)&&z.splice.call(a,c,1);return d}function Ia(a,b){var c=Ca(a,b,void 0);0<=c&&z.splice.call(a,c,1)}function Ja(a){return z.concat.apply(z,arguments)}function Ka(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 La(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(q(d)||(e=fa(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,h=d.length,k=0;k<h;k++)a[f+k]=d[k];else a.push(d)}}function Ma(a,b,c,d){return z.splice.apply(a,Na(arguments,1))}function Na(a,b,c){return 2>=arguments.length?z.slice.call(a,b):z.slice.call(a,b,c)}function Oa(a,b){z.sort.call(a,b||Pa)}
function Qa(a,b,c){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Ra;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Pa(a,b){return a>b?1:a<b?-1:0}function Ra(a,b){return a===b};function Sa(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]}function Ta(a,b){for(var c=Sa(a),d=Na(arguments,1),e=c,f=0;f<d.length;f++)C(e,d[f])||e.push(d[f]);c=c.join(" ");a.className=c}function Ua(a,b){var c=Sa(a),d=Na(arguments,1),c=Va(c,d).join(" ");a.className=c}function Va(a,b){return ya(a,function(a){return!C(b,a)})}function Wa(a,b,c){c?Ta(a,b):Ua(a,b)};function D(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0}D.prototype.clone=function(){return new D(this.x,this.y)};D.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};D.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};D.prototype.scale=function(a,b){var c=ga(b)?b:a;this.x*=a;this.y*=c;return this};function Xa(a,b){this.width=a;this.height=b}Xa.prototype.clone=function(){return new Xa(this.width,this.height)};Xa.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Xa.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};Xa.prototype.scale=function(a,b){var c=ga(b)?b:a;this.width*=a;this.height*=c;return this};function Ya(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Za(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function $a(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function ab(a){var b=bb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function cb(a){for(var b in a)return!1;return!0}function db(a){var b={},c;for(c in a)b[c]=a[c];return b}var eb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function fb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<eb.length;f++)c=eb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var gb,hb,ib,jb,kb,lb;function mb(){return m.navigator?m.navigator.userAgent:null}function nb(){return m.navigator}jb=ib=hb=gb=!1;var ob;if(ob=mb()){var pb=nb();gb=0==ob.lastIndexOf("Opera",0);hb=!gb&&(-1!=ob.indexOf("MSIE")||-1!=ob.indexOf("Trident"));ib=!gb&&-1!=ob.indexOf("WebKit");jb=!gb&&!ib&&!hb&&"Gecko"==pb.product}var qb=gb,E=hb,rb=jb,sb=ib,tb=nb(),ub=tb&&tb.platform||"";kb=-1!=ub.indexOf("Mac");lb=-1!=ub.indexOf("Win");var vb=!!nb()&&-1!=(nb().appVersion||"").indexOf("X11");
function wb(){var a=m.document;return a?a.documentMode:void 0}var xb;t:{var yb="",zb;if(qb&&m.opera)var Ab=m.opera.version,yb="function"==typeof Ab?Ab():Ab;else if(rb?zb=/rv\:([^\);]+)(\)|;)/:E?zb=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:sb&&(zb=/WebKit\/(\S+)/),zb)var Bb=zb.exec(mb()),yb=Bb?Bb[1]:"";if(E){var Cb=wb();if(Cb>parseFloat(yb)){xb=String(Cb);break t}}xb=yb}var Db=xb,Eb={};function F(a){return Eb[a]||(Eb[a]=0<=va(Db,a))}function Fb(a){return E&&Gb>=a}
var Hb=m.document,Gb=Hb&&E?wb()||("CSS1Compat"==Hb.compatMode?parseInt(Db,10):5):void 0;var Ib=!rb&&!E||E&&Fb(9)||rb&&F("1.9.1");E&&F("9");function Jb(a){return a?new Kb(Lb(a)):na||(na=new Kb)}function Mb(a){return G(a)}function G(a){var b=document;return s(a)?b.getElementById(a):a}function Nb(a){var b=document;return b.querySelectorAll&&b.querySelector?b.querySelectorAll("."+a):b.getElementsByClassName?b.getElementsByClassName(a):Ob(a)}
function Ob(a){var b,c,d,e;b=document;if(b.querySelectorAll&&b.querySelector&&a)return b.querySelectorAll(""+(a?"."+a:""));if(a&&b.getElementsByClassName){var f=b.getElementsByClassName(a);return f}f=b.getElementsByTagName("*");if(a){e={};for(c=d=0;b=f[c];c++){var h=b.className;"function"==typeof h.split&&C(h.split(/\s+/),a)&&(e[d++]=b)}e.length=d;return e}return f}function Pb(a){return"CSS1Compat"==a.compatMode}function Qb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Rb(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}function Sb(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}function Lb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Tb(a){var b=Ub.ee;return b?Vb(a,function(a){return!b||C(Sa(a),b)},!0):null}
function Vb(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function Kb(a){this.b=a||m.document||document}Kb.prototype.createElement=function(a){return this.b.createElement(a)};function Wb(a){var b=a.b;a=!sb&&Pb(b)?b.documentElement:b.body||b.documentElement;b=b.parentWindow||b.defaultView;return E&&F("10")&&b.pageYOffset!=a.scrollTop?new D(a.scrollLeft,a.scrollTop):new D(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}
Kb.prototype.appendChild=function(a,b){a.appendChild(b)};Kb.prototype.getChildren=function(a){return Ib&&void 0!=a.children?a.children:ya(a.childNodes,function(a){return 1==a.nodeType})};Kb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function Xb(a,b,c){a.dataset?a.dataset[Yb(b)]=c:a.setAttribute("data-"+b,c)}function H(a,b){return a.dataset?a.dataset[Yb(b)]:a.getAttribute("data-"+b)}var Zb={};function Yb(a){return Zb[a]||(Zb[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var $b=n("yt.dom.getNextId_");if(!$b){$b=function(){return++ac};w("yt.dom.getNextId_",$b);var ac=0}function bc(a,b){if(a in b)return b[a];var c=a.charAt(0).toUpperCase()+a.substr(1);if("moz"+c in b)return b["moz"+c];if("ms"+c in b)return b["ms"+c];if("o"+c in b)return b["o"+c];if("webkit"+c in b)return b["webkit"+c]}function cc(){var a=document,b;za(["fullscreenElement","fullScreenElement"],function(c){b=bc(c,a);return!!b});return b};var dc=window.yt&&window.yt.config_||{};w("yt.config_",dc);var ec=window.yt&&window.yt.tokens_||{};w("yt.tokens_",ec);var fc=window.yt&&window.yt.msgs_||{};w("yt.msgs_",fc);function gc(a){hc(dc,arguments)}function I(a){return a in dc?dc[a]:void 0}function ic(a){hc(ec,arguments)}function jc(){return"subscription_ajax"in ec?ec.subscription_ajax:void 0}function J(a,b){ha(a)&&(a=kc(a));return window.setTimeout(a,b)}function lc(a){window.clearTimeout(a)}
function kc(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw mc(b),b;}}:a}function mc(a){if(window&&window.yterr){var b=n("yt.www.errors.log");b?b(a):(b=I("ERRORS")||[],b.push(a),gc("ERRORS",b))}}function nc(a,b,c){var d=b||{};if(a=a in fc?fc[a]:c)for(var e in d)a=a.replace(RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function hc(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 oc="Microsoft Internet Explorer"==navigator.appName;function pc(a){if(a=a||window.event){for(var b in a)b in qc||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Jb=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}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)}}g=pc.prototype;g.Jb=null;g.type="";g.target=null;g.relatedTarget=null;g.currentTarget=null;g.data=null;g.source=null;g.keyCode=0;g.charCode=0;g.altKey=!1;g.ctrlKey=!1;g.shiftKey=!1;g.clientX=0;g.clientY=0;g.wheelDeltaX=0;g.wheelDeltaY=0;g.rotation=0;g.scale=1;
g.preventDefault=function(){this.Jb.returnValue=!1;this.Jb.preventDefault&&this.Jb.preventDefault()};var qc={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var bb=n("yt.events.listeners_")||{};w("yt.events.listeners_",bb);var rc=n("yt.events.counter_")||{count:0};w("yt.events.counter_",rc);function sc(a,b,c,d){return ab(function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function L(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=sc(a,b,c,d);if(e)return e;var e=++rc.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=f?function(d){d=new pc(d);if(!Vb(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new pc(b);b.currentTarget=a;return c.call(a,b)};h=kc(h);bb[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",
h,d):"mouseleave"==b&&f?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 tc(a){a&&("string"==typeof a&&(a=[a]),A(a,function(a){if(a in bb){var c=bb[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete bb[a]}}))};function uc(){}uc.prototype.p=!1;uc.prototype.dispose=function(){this.p||(this.p=!0,this.u())};function vc(a,b){a.va||(a.va=[]);a.va.push(t(b,void 0))}uc.prototype.u=function(){if(this.va)for(;this.va.length;)this.va.shift()()};function wc(a){a&&"function"==typeof a.dispose&&a.dispose()};function M(){this.b=[];this.N={}}y(M,uc);g=M.prototype;g.zc=1;g.Ab=0;g.I=function(a,b,c){var d=this.N[a];d||(d=this.N[a]=[]);var e=this.zc;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.zc=e+3;d.push(e);return e};g.Aa=function(a,b,c){if(a=this.N[a]){var d=this.b;if(a=Ba(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.ka(a)}return!1};
g.ka=function(a){if(0!=this.Ab)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.N[b];c&&Ha(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};g.q=function(a,b){var c=this.N[a];if(c){this.Ab++;for(var d=Na(arguments,1),e=0,f=c.length;e<f;e++){var h=c[e];this.b[h+1].apply(this.b[h+2],d)}this.Ab--;if(this.g&&0==this.Ab)for(;c=this.g.pop();)this.ka(c);return 0!=e}return!1};
g.clear=function(a){if(a){var b=this.N[a];b&&(A(b,this.ka,this),delete this.N[a])}else this.b.length=0,this.N={}};g.na=function(a){if(a){var b=this.N[a];return b?b.length:0}a=0;for(b in this.N)a+=this.na(b);return a};g.u=function(){M.w.u.call(this);delete this.b;delete this.N;delete this.g};var xc=n("yt.pubsub.instance_")||new M;M.prototype.subscribe=M.prototype.I;M.prototype.unsubscribeByKey=M.prototype.ka;M.prototype.publish=M.prototype.q;M.prototype.clear=M.prototype.clear;w("yt.pubsub.instance_",xc);function N(a,b,c){var d=yc();return d?d.subscribe(a,function(){var d=arguments;try{zc&&Ac[a]?b.apply(c||m,d):J(function(){b.apply(c||m,d)},0)}catch(f){mc(f)}},c):0}
function Bc(a){var b=yc();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),A(a,function(a){b.unsubscribeByKey(a)}))}function O(a,b){var c=yc();return c?c.publish.apply(c,arguments):!1}function Cc(a){var b=yc();b&&b.clear(a)}function yc(){return n("yt.pubsub.instance_")}var zc=!!I("SYNCHRONOUS_PUBSUB"),Ac={};function Dc(a,b,c,d,e){var f="";a&&(f+=a+":");b&&(f=f+"//"+b);c&&(f+=c);d&&(f+="?"+d);e&&(f+="#"+e);return f}var Ec=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Fc(a){if(Gc){Gc=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Hc(c))&&c!=b.hostname)throw Gc=!0,Error();}}return a.match(Ec)}var Gc=sb;function Hc(a){return(a=Fc(a)[3]||null)&&decodeURIComponent(a)}
function Ic(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 Jc(a,b,c){if(q(b))for(var d=0;d<b.length;d++)Jc(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}function Kc(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Jc(b[c],b[c+1],a);return a}function Lc(a,b){for(var c in b)Jc(c,b[c],a);return a}
function Mc(a,b){return Ic(2==arguments.length?Kc([a],arguments[1],0):Kc([a],arguments,1))};function Nc(a,b){var c=Mc("/signin?context=popup","next",document.location.protocol+"//"+document.domain+"/post_login");b&&(c=Mc(c,"feature",b));if(c=window.open(c,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var d=N("LOGGED_IN",function(b){Bc(I("LOGGED_IN_PUBSUB_KEY"));a(b)});gc("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-375)/2,(screen.height-440)/2)}}w("yt.pubsub.publish",O);function Oc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}g=Oc.prototype;g.clone=function(){return new Oc(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof Oc?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};
g.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};g.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};g.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Pc(a,b){var c=Lb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Qc(a,b){return Pc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Rc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}E&&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 Sc(a){if(E&&!Fb(8))return a.offsetParent;var b=Lb(a),c=Qc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Qc(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 Tc(a){var b,c=Lb(a),d=Qc(a,"position"),e=rb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new D(0,0),h;b=c?Lb(c):document;(h=!E)||(h=Fb(9))||(h=Jb(b),h=Pb(h.b));h=h?b.documentElement:b.body;if(a==h)return f;if(a.getBoundingClientRect)b=Rc(a),a=Wb(Jb(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=
e.offsetLeft;f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(sb&&"fixed"==Qc(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(qb||sb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Sc(e))&&e!=c.body&&e!=h;)f.x-=e.scrollLeft,qb&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Uc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function Vc(a){var b=Wc;if("none"!=Qc(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}function Wc(a){var b=a.offsetWidth,c=a.offsetHeight,d=sb&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new Xa(b,c):(a=Rc(a),new Xa(a.right-a.left,a.bottom-a.top))}
function Xc(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 Yc(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Xc(a,c):0}var Zc={thin:2,medium:4,thick:6};
function $c(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 Zc?Zc[c]:Xc(a,c)}var ad=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function bd(a,b){(a=G(a))&&a.style&&(a.style.display=b?"":"none",Wa(a,"hid",!b))}function cd(a){A(arguments,function(a){bd(a,!0)})}function dd(a){A(arguments,function(a){bd(a,!1)})};var ed={},fd="ontouchstart"in document;function gd(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Vb(c,function(a){return C(Sa(a),b)},!0,d)}
function P(a){var b="mouseover"==a.type&&"mouseenter"in ed||"mouseout"==a.type&&"mouseleave"in ed,c=a.type in ed||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=ed[b],d;for(d in c.N){var e=gd(b,d,a.target);e&&!Vb(a.relatedTarget,function(a){return a==e},!0)&&c.q(d,e,b,a)}}if(b=ed[a.type])for(d in b.N)(e=gd(a.type,d,a.target))&&b.q(d,e,a.type,a)}}L(document,"blur",P,!0);L(document,"change",P,!0);L(document,"click",P);L(document,"focus",P,!0);
L(document,"mouseover",P);L(document,"mouseout",P);L(document,"mousedown",P);L(document,"keydown",P);L(document,"keyup",P);L(document,"keypress",P);L(document,"cut",P);L(document,"paste",P);fd&&(L(document,"touchstart",P),L(document,"touchend",P),L(document,"touchcancel",P));var hd=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};w("yt.uix.widgets_",hd);function id(){this.b={}}id.prototype.g=!!eval("/*@cc_on!@*/false");id.prototype.Xc=function(){return!0};function jd(a,b,c){var d=Q(a,void 0),e=t(c,a);b in ed||(ed[b]=new M);ed[b].I(d,e);a.b[c]=e}function kd(a,b){Xb(a,"tooltip-text",b)}id.prototype.removeData=function(a,b){a.dataset?delete a.dataset[Yb(b)]:a.removeAttribute("data-"+b)};function Q(a,b){return"yt-uix"+(a.dc?"-"+a.dc:"")+(b?"-"+b:"")};function ld(){this.b={}}y(ld,id);da(ld);g=ld.prototype;g.dc="tooltip";g.Ib=0;g.register=function(){jd(this,"mouseover",this.Kc);jd(this,"mouseout",this.cc);jd(this,"click",this.cc);jd(this,"touchstart",this.$d);jd(this,"touchend",this.Pc);jd(this,"touchcancel",this.Pc)};g.Xc=function(){return!(this.g&&0==Db.indexOf("6"))};
g.Kc=function(a){if(!(this.Ib&&1E3>v()-this.Ib)){var b=parseInt(H(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),lc(b));var b=t(function(){md(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(H(a,"tooltip-show-delay"),10)||0,b=J(b,c);Xb(a,"tooltip-show-timer",b.toString());a.title&&(kd(a,H(a,"tooltip-text")||a.title),a.title="")}};
g.cc=function(a){var b=parseInt(H(a,"tooltip-show-timer"),10);b&&(lc(b),this.removeData(a,"tooltip-show-timer"));b=t(function(){if(a){var b=Mb(nd(this,a));b&&(od(b),b&&b.parentNode&&b.parentNode.removeChild(b),this.removeData(a,"content-id"))}this.removeData(a,"tooltip-hide-timer")},this);b=J(b,50);Xb(a,"tooltip-hide-timer",b.toString());if(b=H(a,"tooltip-text"))a.title=b};g.$d=function(a,b){this.Ib=0;var c=gd(b,Q(this),null[0].target);this.Kc(c)};
g.Pc=function(a,b){this.Ib=v();var c=gd(b,Q(this),null[0].target);this.cc(c)};function pd(a,b){kd(a,b);var c=H(a,"content-id");if(c=G(c))c.innerHTML=b}
function md(a,b){if(b){var c=H(b,"tooltip-text")||b.title;if(c){var d=Mb(nd(a,b));if(!d){d=document.createElement("div");d.id=nd(a,b);d.className=Q(a,"tip");var e=document.createElement("div");e.className=Q(a,"tip-body");var f=document.createElement("div");f.className=Q(a,"tip-arrow");var h=document.createElement("div");h.className=Q(a,"tip-content");var k=qd(a,b),l=nd(a,b,"content");h.id=l;Xb(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(f);(cc()||document.body).appendChild(d);
pd(b,c);(c=parseInt(H(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",Ta(h,Q(a,"normal-wrap")));h=C(Sa(b),Q(a,"reverse"));rd(a,b,d,e,k,h)||rd(a,b,d,e,k,!h);var r=Q(a,"tip-visible");J(function(){Ta(d,r)},0)}}}}
function rd(a,b,c,d,e,f){Wa(c,Q(a,"tip-reverse"),f);var h=0;f&&(h=1);a=Vc(b);f=new D((a.width-10)/2,f?a.height:0);var k=Tc(b);var k=new D(k.x+f.x,k.y+f.y),k=k.clone(),l=(h&4&&"rtl"==Qc(c,"direction")?h^2:h)&-5;f=Vc(c);h=f.clone();0!=l&&(l&2&&(k.x-=h.width+0),l&1&&(k.y-=h.height+0));var r=k,l=rb&&(kb||vb)&&F("1.9");r instanceof D?(k=r.x,r=r.y):(k=r,r=void 0);c.style.left=Uc(k,l);c.style.top=Uc(r,l);if(!(f==h||f&&h&&f.width==h.width&&f.height==h.height))if(f=Jb(Lb(c)),k=Pb(f.b),!E||k&&F("8"))f=c.style,
rb?f.MozBoxSizing="border-box":sb?f.WebkitBoxSizing="border-box":f.boxSizing="border-box",f.width=Math.max(h.width,0)+"px",f.height=Math.max(h.height,0)+"px";else if(f=c.style,k){if(E)var k=Yc(c,"paddingLeft"),l=Yc(c,"paddingRight"),r=Yc(c,"paddingTop"),K=Yc(c,"paddingBottom"),k=new Oc(r,l,K,k);else k=Pc(c,"paddingLeft"),l=Pc(c,"paddingRight"),r=Pc(c,"paddingTop"),K=Pc(c,"paddingBottom"),k=new Oc(parseFloat(r),parseFloat(l),parseFloat(K),parseFloat(k));if(E&&!Fb(9))var l=$c(c,"borderLeft"),r=$c(c,
"borderRight"),K=$c(c,"borderTop"),U=$c(c,"borderBottom"),l=new Oc(K,r,U,l);else l=Pc(c,"borderLeftWidth"),r=Pc(c,"borderRightWidth"),K=Pc(c,"borderTopWidth"),U=Pc(c,"borderBottomWidth"),l=new Oc(parseFloat(K),parseFloat(r),parseFloat(U),parseFloat(l));f.pixelWidth=h.width-l.left-k.left-k.right-l.right;f.pixelHeight=h.height-l.top-k.top-k.bottom-l.bottom}else f.pixelWidth=h.width,f.pixelHeight=h.height;var h=window.document,h=Pb(h)?h.documentElement:h.body,h=new Xa(h.clientWidth,h.clientHeight),x;
if(1==c.nodeType){c.getBoundingClientRect?(f=Rc(c),f=new D(f.left,f.top)):(f=Wb(Jb(c)),k=Tc(c),f=new D(k.x-f.x,k.y-f.y));if(rb&&!F(12)){var ca;E?ca="-ms-transform":sb?ca="-webkit-transform":qb?ca="-o-transform":rb&&(ca="-moz-transform");ca&&(x=Qc(c,ca));x||(x=Qc(c,"transform"));c=x?(c=x.match(ad))?new D(parseFloat(c[1]),parseFloat(c[2])):new D(0,0):new D(0,0);c=new D(f.x+c.x,f.y+c.y)}else c=f;x=c}else ca=ha(c.Fd),x=c,c.targetTouches?x=c.targetTouches[0]:ca&&c.hb.targetTouches&&(x=c.hb.targetTouches[0]),
x=new D(x.clientX,x.clientY);c=Vc(d);f=Math.floor(c.width/2);e&&(e.style.left="3px",e.style.height=c.height+"px",e.style.width=c.width+"px");e=!!(h.height<x.y+a.height);a=!!(x.y<a.height);ca=!!(x.x<f);x=!!(h.width<x.x+f);h=(c.width+3)/-2- -5;b=H(b,"force-tooltip-direction");if("left"==b||ca)h=-5;else if("right"==b||x)h=20-c.width-3;d.style.left=Math.floor(h)+"px";return!(e||a)}function nd(a,b,c){a=Q(a);var d=b.__yt_uid_key;d||(d=$b(),b.__yt_uid_key=d);b=a+d;c&&(b+="-"+c);return b}
function qd(a,b){var c=null;lb&&C(Sa(b),Q(a,"masked"))&&((c=G("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),cd(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Q(a,"tip-mask")));return c}function od(a){var b=G("yt-uix-tooltip-shared-mask"),c=b&&Vb(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),dd(b),document.body.appendChild(b))};function sd(){this.b={};this.h=[]}y(sd,id);da(sd);sd.prototype.dc="subscription-button";
sd.prototype.register=function(){jd(this,"click",this.Fc);this.h.push(N("subscription-subscribe-loading",this.Hc,this),N("subscription-subscribe-loaded",this.Gc,this),N("subscription-unsubscirbe-loading",this.Hc,this),N("subscription-unsubscribe-loaded",this.Gc,this),N("subscription-subscribe-success",this.Qd,this),N("subscription-unsubscribe-success",this.Rd,this),N("subscription-enable-ypc",this.Pd,this),N("subscription-disable-ypc",this.Od,this))};
var Ub={Jc:"hover-enabled",Ud:"yt-uix-button-subscribe",Vd:"yt-uix-button-subscribed",le:"ypc-enabled",ee:"yt-uix-button-subscription-container",fe:"yt-subscription-button-disabled-mask-container"},R={ne:"channel-external-id",Wd:"subscriber-count-show-when-subscribed",Xd:"subscriber-count-tooltip",Yd:"subscriber-count-title",oe:"href",Sc:"is-subscribed",pe:"parent-url",qe:"sessionlink",Zd:"style-type",Tc:"subscription-id",re:"target",ae:"ypc-enabled",Nc:"ypc-item-type",Mc:"ypc-item-id",Oc:"ypc-offers-url"};
g=sd.prototype;g.Fc=function(a){var b=H(a,"href"),c=!!jc();if(b)a=H(a,"target")||"_self",window.open(b,a);else if(c){var b=H(a,"channel-external-id"),c=H(a,"sessionlink"),d;if(H(a,"ypc-enabled")){d=H(a,R.Nc);var e=H(a,R.Mc),f=H(a,R.Oc);d={itemType:d,itemId:e,offersUrl:f,subscriptionElement:a}}else d=null;e=H(a,"parent-url");H(a,"is-subscribed")?(f=H(a,"subscription-id"),O("subscription-unsubscribe",b,f,d,a,c,e)):O("subscription-subscribe",b,d,a,c,e)}else td(this,a)};
g.Hc=function(a){this.Qa(a,this.Qc,!0)};g.Gc=function(a){this.Qa(a,this.Qc,!1)};g.Qd=function(a,b){this.Qa(a,this.Rc,!0,b)};g.Rd=function(a){this.Qa(a,this.Rc,!1)};g.Pd=function(a){this.Qa(a,this.ce)};g.Od=function(a){this.Qa(a,this.be)};g.Rc=function(a,b,c){b?(Xb(a,R.Sc,"true"),c&&Xb(a,R.Tc,c)):(this.removeData(a,R.Sc),this.removeData(a,R.Tc));ud(a)};g.Qc=function(a,b){var c;c=Tb(a);Wa(c,Ub.fe,b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function ud(a){var b=H(a,R.Zd),c=!!H(a,"is-subscribed"),b="-"+b,d=Ub.Vd+b;Wa(a,Ub.Ud+b,!c);Wa(a,d,c);H(a,R.Xd)&&!H(a,R.Wd)&&(b=Q(ld.getInstance()),Wa(a,b,!c),a.title=c?"":H(a,R.Yd));c?J(function(){Ta(a,Ub.Jc)},1E3):Ua(a,Ub.Jc)}g.ce=function(a){var b=!!H(a,R.Nc),c=!!H(a,R.Mc),d=!!H(a,R.Oc);!H(a,"ypc-enabled")&&b&&c&&d&&(Ta(a,"ypc-enabled"),Xb(a,R.ae,"true"))};g.be=function(a){H(a,"ypc-enabled")&&(Ua(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};
function vd(a,b){var c=Nb(Q(a));return ya(c,function(a){return b==H(a,"channel-external-id")},a)}g.ge=function(a,b,c){var d=Na(arguments,2);A(a,function(a){b.apply(this,Ja(a,d))},this)};g.Qa=function(a,b,c){var d=vd(this,a),d=Ja([d],Na(arguments,1));this.ge.apply(this,d)};function td(a,b){var c=t(function(a){a.subscription_ajax&&ic("subscription_ajax",a.subscription_ajax);this.Fc(b)},a);Nc(c,"sub_button")};var wd="StopIteration"in m?m.StopIteration:Error("StopIteration");function xd(){}xd.prototype.next=function(){throw wd;};xd.prototype.Y=function(){return this};function yd(a){if(a instanceof xd)return a;if("function"==typeof a.Y)return a.Y(!1);if(fa(a)){var b=0,c=new xd;c.next=function(){for(;;){if(b>=a.length)throw wd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function zd(a,b,c){if(fa(a))try{A(a,b,c)}catch(d){if(d!==wd)throw d;}else{a=yd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==wd)throw e;}}}function Ad(a){if(fa(a))return Ka(a);a=yd(a);var b=[];zd(a,function(a){b.push(a)});return b};function Bd(a,b){this.g={};this.b=[];this.i=this.h=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 Bd?(c=a.ha(),d=a.Z()):(c=$a(a),d=Za(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}g=Bd.prototype;g.na=function(){return this.h};g.Z=function(){Cd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};g.ha=function(){Cd(this);return this.b.concat()};
g.equals=function(a,b){if(this===a)return!0;if(this.h!=a.na())return!1;var c=b||Dd;Cd(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Dd(a,b){return a===b}g.clear=function(){this.g={};this.i=this.h=this.b.length=0};g.remove=function(a){return Ed(this.g,a)?(delete this.g[a],this.h--,this.i++,this.b.length>2*this.h&&Cd(this),!0):!1};
function Cd(a){if(a.h!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Ed(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.h!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Ed(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}g.get=function(a,b){return Ed(this.g,a)?this.g[a]:b};g.set=function(a,b){Ed(this.g,a)||(this.h++,this.b.push(a),this.i++);this.g[a]=b};g.clone=function(){return new Bd(this)};
g.Y=function(a){Cd(this);var b=0,c=this.b,d=this.g,e=this.i,f=this,h=new xd;h.next=function(){for(;;){if(e!=f.i)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw wd;var h=c[b++];return a?h:d[h]}};return h};function Ed(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Fd(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 Gd(a){return eval("("+a+")")}function S(a){return Hd(new Id(void 0),a)}function Id(a){this.b=a}
function Hd(a,b){var c=[];Jd(a,b,c);return c.join("")}
function Jd(a,b,c){switch(typeof b){case "string":Kd(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(q(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],Jd(a,a.b?a.b.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),Kd(f,c),c.push(":"),
Jd(a,a.b?a.b.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var Ld={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Md=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Kd(a,b){b.push('"',a.replace(Md,function(a){if(a in Ld)return Ld[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Ld[a]=e+b.toString(16)}),'"')};function Nd(a){var b=[];Ya(a,function(a,d){var e=encodeURIComponent(String(d)),f;f=q(a)?a:[a];A(f,function(a){""==a?b.push(e):b.push(e+"="+encodeURIComponent(String(a)))})});return b.join("&")}function Od(a){"?"==a.charAt(0)&&(a=a.substr(1));a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length){var f=oa(e[0]||""),e=oa(e[1]||"");f in b?q(b[f])?La(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b}function Pd(a){a=Lc([],a);a[0]="";return a.join("")}
var Qd=Hc;function Rd(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=Od(d[1]||""),e;for(e in b)d[e]=b[e];return Ic(Lc([a],d))+c}function Sd(a){a=Qd(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 Td=null;"undefined"!=typeof XMLHttpRequest?Td=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Td=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Ud(a,b,c,d,e,f,h){var k=Td&&Td();if("open"in k){k.onreadystatechange=function(){4==(k&&"readyState"in k?k.readyState:0)&&b&&kc(b)(k)};c=(c||"GET").toUpperCase();d=d||"";k.open(c,a,!0);f&&(k.responseType=f);h&&(k.withCredentials=!0);f="POST"==c;if(e=Vd(a,e))for(var l in e)k.setRequestHeader(l,e[l]),"content-type"==l.toLowerCase()&&(f=!1);f&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k.send(d);return k}}
function Vd(a,b){b=b||{};var c;if(c=I("PAGE_CL"))if(c=I("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Fc(a)[1]||null;var e=Qd(a);c&&e?(c=d,d=Fc(a),c=Fc(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?Qd(d)==e&&(Number(Fc(d)[4]||null)||null)==(Number(Fc(a)[4]||null)||null):!0;c=d||Wd(a)}c&&(b["X-YouTube-Page-CL"]=I("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=I("PAGE_BUILD_TIMESTAMP"));return b}
function Wd(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=I("CORS_HEADER_WHITELIST")||{};a=Qd(a);if(!a)return!0;var d=c[a];return d?Aa(b,function(a){return C(d,a)}):!1}
function Xd(a,b){var c=b.format||"JSON";b.je&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=b.Ic;d&&(a=Rd(a,d));var e=b.ke||"";(d=b.ea)&&s(e)&&(e=Od(e),fb(e,d),e=Pd(e));var f=!1,h,k=Ud(a,function(a){if(!f){f=!0;h&&lc(h);var d;t:switch(a&&"status"in a?a.status:-1){case 0:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:d=!0;break t;default:d=!1}var e=null;if(d||400<=a.status&&500>a.status)e=Yd(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||{},k=b.da||m;d?b.onSuccess&&b.onSuccess.call(k,a,e):b.onError&&b.onError.call(k,a,e);b.Gb&&b.Gb.call(k,a,e)}},b.method,e,b.headers,b.responseType,b.withCredentials);b.Sd&&0<b.timeout&&(h=J(function(){f||(f=!0,k.abort(),lc(h),b.Sd.call(b.da||m,k))},b.timeout))}
function Yd(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=Gd(d));break;case "XML":if(d=(d=b.responseXML)?Zd(d):null)c={},A(d.getElementsByTagName("*"),function(a){c[a.tagName]=$d(a)})}return c}function Zd(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function $d(a){var b="";A(a.childNodes,function(a){b+=a.nodeValue});return b};var ae=!1,be="",ce=null,de=null;function ee(a){be=a;a=Od(a);void 0!==a&&(a=a.c1a,void 0!==a&&(ce=new botguard.bg(a)))}function fe(a){ce&&ce.invoke(a)}function ge(a){1==a?null===ce&&(a=de.getAtc())&&(ee(a),setTimeout(function(){null==ce||ae||he()},2E4)):0!=a||null==ce||ae||he()}function he(){var a=be;fe(function(b){b={"x-at-p":a+"&"+Nd({r1a:b})};Xd("/at_p",{method:"POST",headers:b});ae=!0})};function ie(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||db(je);this.assets=a.assets||{};this.attrs=a.attrs||db(ke);this.params=a.params||db(le);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}var je={enablejsapi:1},ke={},le={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
function me(a){a instanceof ie||(a=new ie(a));return a}ie.prototype.clone=function(){var a=new ie,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=db(c):a[b]=c}return a};function ne(){this.b=v()}var oe=new ne;ne.prototype.set=function(a){this.b=a};ne.prototype.get=function(){return this.b};function pe(a){this.h=a||"";this.i=oe}pe.prototype.g=!0;pe.prototype.b=!1;function qe(a){return 10>a?"0"+a:String(a)}function re(a,b){var c=(a.i-b)/1E3,d=c.toFixed(3),e=0;if(1>c)e=2;else for(;100>c;)e++,c*=10;for(;0<e--;)d=" "+d;return d}function se(a){pe.call(this,a)}y(se,pe);
function te(a,b){var c=[];c.push(a.h," ");if(a.g){var d=new Date(b.i);c.push("[",qe(d.getFullYear()-2E3)+qe(d.getMonth()+1)+qe(d.getDate())+" "+qe(d.getHours())+":"+qe(d.getMinutes())+":"+qe(d.getSeconds())+"."+qe(Math.floor(d.getMilliseconds()/10)),"] ")}c.push("[",re(b,a.i.get()),"s] ");c.push("[",b.h,"] ");c.push(b.getMessage());a.b&&b.g&&c.push("\n",b.b);c.push("\n");return c.join("")};function ue(a,b,c,d,e){"number"==typeof e||ve++;this.i=d||v();this.j=a;this.p=b;this.h=c;delete this.g;delete this.b}ue.prototype.g=null;ue.prototype.b=null;var ve=0;ue.prototype.getMessage=function(){return this.p};function we(a){a&&(this.id=a.id||"",this.name=pa(a.name||""),this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}g=we.prototype;g.id="";g.name="";g.activityId="";g.status="UNKNOWN";g.Uc=function(){return{key:this.id,name:this.name}};function xe(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}g.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function ye(a){a=a||[];return"["+B(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function ze(a){this.b=a}var Ae=/\s*;\s*/;g=ze.prototype;g.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');p(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(v()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
g.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(Ae),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d};g.ha=function(){return Be(this).keys};g.Z=function(){return Be(this).Jd};g.na=function(){return this.b.cookie?(this.b.cookie||"").split(Ae).length:0};g.clear=function(){for(var a=Be(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
function Be(a){a=(a.b.cookie||"").split(Ae);for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,Jd:c}}var Ce=new ze(document);Ce.g=3950;function De(a,b,c){Ce.set(""+a,b,c,"/","youtube.com")};function Ee(){};function Fe(){}y(Fe,Ee);Fe.prototype.na=function(){var a=0;zd(this.Y(!0),function(){a++});return a};Fe.prototype.clear=function(){var a=Ad(this.Y(!0)),b=this;A(a,function(a){b.remove(a)})};function Ge(a){this.b=a}y(Ge,Fe);g=Ge.prototype;g.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};g.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.b.getItem(a);if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.b.removeItem(a)};
g.na=function(){return this.b.length};g.Y=function(a){var b=0,c=this.b,d=new xd;d.next=function(){if(b>=c.length)throw wd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.b.clear()};g.key=function(a){return this.b.key(a)};function He(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}y(He,Ge);function Ie(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}y(Ie,Ge);function Je(a){this.b=a;this.j=new Id}Je.prototype.set=function(a,b){p(b)?this.b.set(a,Hd(this.j,b)):this.b.remove(a)};Je.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return Fd(b)}catch(d){throw"Storage: Invalid value was encountered";}};Je.prototype.remove=function(a){this.b.remove(a)};function Ke(a){Je.call(this,a)}y(Ke,Je);function Le(a){this.data=a}function Me(a){return!p(a)||a instanceof Le?a:new Le(a)}function Ne(a){a=a.data;if(!p(a))throw"Storage: Invalid value was encountered";return a}Ke.prototype.set=function(a,b){Ke.w.set.call(this,a,Me(b))};Ke.prototype.g=function(a){a=Ke.w.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Ke.prototype.get=function(a){return(a=this.g(a))?Ne(a):void 0};function Oe(a){Je.call(this,a)}y(Oe,Ke);function Pe(a){var b=a.creation;a=a.expiration;return!!a&&a<v()||!!b&&b>v()}Oe.prototype.set=function(a,b,c){if(b=Me(b)){if(c){if(c<v()){Oe.prototype.remove.call(this,a);return}b.expiration=c}b.creation=v()}Oe.w.set.call(this,a,b)};Oe.prototype.g=function(a,b){var c=Oe.w.g.call(this,a);if(c)if(!b&&Pe(c))Oe.prototype.remove.call(this,a);else return c};function Qe(a){Je.call(this,a)}y(Qe,Oe);function Re(a,b,c){var d=[];zd(b,function(a){var b;try{b=Qe.prototype.g.call(this,a,!0)}catch(h){if("Storage: Invalid value was encountered"==h){c&&d.push(a);return}throw h;}if(!p(b))d.push(a);else if(Pe(b))d.push(a);else if(c)try{Ne(b)}catch(k){if("Storage: Invalid value was encountered"==k)d.push(a);else throw k;}},a);return d}function Se(a,b,c){b=Re(a,b,c);A(b,function(a){Qe.prototype.remove.call(this,a)},a);return b}
Qe.prototype.h=function(a){Se(this,this.b.Y(!0),a)};function T(a,b,c){var d=c&&0<c?c:0;c=d?v()+1E3*d:0;if((d=d?Te:Ue)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function V(a){if(!Ue&&!Te||!window.JSON)return null;var b;try{b=Ue.get(a),b=s(b)?b:Te.get(a)}catch(c){return null}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(d){}return b}function Ve(a){Ue&&Ue.remove(a);Te&&Te.remove(a)}var Te,We=new He;Te=We.isAvailable()?new Qe(We):null;var Ue,Xe=new Ie;Ue=Xe.isAvailable()?new Qe(Xe):null;function Ye(a){a&&(this.name=pa(a.name),this.P=a.screenId,this.T=a.loungeToken,this.M=a.dialId||"")}g=Ye.prototype;g.name="";g.P="";g.T="";g.M="";g.Uc=function(){return{key:this.P,name:this.name}};g.toString=function(){var a=this.T?this.T.slice(-6):"null";return"{name:"+this.name+",screenId:"+this.P+",loungeToken:..."+a+",dialId:"+this.M+"}"};function Ze(a){return a?a.toString():"null"}function $e(a){a=a||[];return"["+B(a,function(a){return Ze(a)}).join(",")+"]"};function af(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})}function bf(a,b){return Ba(a,function(a){return a.key==b})}function cf(a){return B(a,function(a){return a.Uc()})}function df(a){return B(a,function(a){return xe(a)})}function ef(a){return B(a,function(a){return new we(a)})}function ff(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function gf(a,b){return Ba(a,function(a){return a.id==b})}
function hf(a){return B(a,function(a){return{name:a.name,screenId:a.P,loungeToken:a.T,dialId:a.M}})}function jf(a){return B(a,function(a){return new Ye(a)})}function kf(a,b){return a||b?a&&b?a.P==b.P:!1:!0}function lf(a,b){return a||b?a&&b?a.P==b.P&&a.T==b.T&&a.name==b.name&&a.M==b.M:!1:!0}function mf(a,b){return Ba(a,function(a){return kf(a,b)})}function nf(a,b){return Ba(a,function(a){return b==a.P||b==a.M})};function of(){var a=pf(),b=qf();C(a,b);if(rf()){var c=a,d;d=Pa;for(var e=0,f=c.length,h;e<f;){var k=e+f>>1,l;l=d(b,c[k]);0<l?e=k+1:(f=k,h=!l)}d=h?e:~e;0>d&&Ma(c,-(d+1),0,b)}a=sf(a);Da(a)?Ce.remove("remote_sid","/","youtube.com"):De("remote_sid",a.join(","))}function pf(){var a=V("yt-remote-connected-devices")||[];Oa(a);return a}function sf(a){if(Da(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return B(a,function(a,b){return 0==b?a:a.substring(c.length)})}
function tf(a){T("yt-remote-connected-devices",a,86400)}function qf(){if(uf)return uf;var a=V("yt-remote-device-id");a||(a=af(),T("yt-remote-device-id",a,31536E3));for(var b=pf(),c=1,d=a;C(b,d);)c++,d=a+"#"+c;return uf=d}function rf(){return V("yt-remote-session-screen-id")}
function vf(a){5<a.length&&(a=a.slice(a.length-5));var b=B(wf(),function(a){return a.loungeToken}),c=B(a,function(a){return a.loungeToken});Aa(c,function(a){return!C(b,a)})&&T("yt-remote-lounge-token-expiration",!0,86400);T("yt-remote-local-screens",a,31536E3)}function wf(){return V("yt-remote-local-screens")||[]}function xf(){return V("yt-remote-online-screens")||[]}function yf(a){T("yt-remote-online-dial-devices",a,30)}function zf(){return V("yt-remote-online-dial-devices")||[]}
function Af(a,b){a?T("yt-remote-session-video-id",a):Ve("yt-remote-session-video-id");b?T("yt-remote-session-list-id",b):Ve("yt-remote-session-list-id")}function Bf(a){a||(Ve("yt-remote-session-screen-id"),Ve("yt-remote-session-video-id"),Ve("yt-remote-session-list-id"));of();a=pf();Ha(a,qf());tf(a)}var uf="";function Cf(a){if("function"==typeof a.Z)return a.Z();if(s(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Za(a)}function Df(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(fa(a)||s(a))A(a,b,c);else{var d;if("function"==typeof a.ha)d=a.ha();else if("function"!=typeof a.Z)if(fa(a)||s(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=$a(a);else d=void 0;for(var e=Cf(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};function Ef(a){return Ff(a||arguments.callee.caller,[])}
function Ff(a,b){var c=[];if(C(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Gf(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Gf(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(Ff(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Gf(a){if(Hf[a])return Hf[a];a=String(a);if(!Hf[a]){var b=/function ([^\(]+)/.exec(a);Hf[a]=b?b[1]:"[Anonymous]"}return Hf[a]}var Hf={};function If(a){this.g=a}If.prototype.b=null;function Jf(a,b){this.name=a;this.value=b}Jf.prototype.toString=function(){return this.name};var Kf=new Jf("SHOUT",1200),Lf=new Jf("SEVERE",1E3),Mf=new Jf("WARNING",900),Nf=new Jf("INFO",800);g=If.prototype;g.Gd=function(){};g.Id=function(){return!1};g.getChildren=function(){this.b||(this.b={});return this.b};g.log=function(){};
g.Hd=function(a,b,c){var d=new ue(a,String(b),this.g);if(c){d.g=c;var e;var f=arguments.callee.caller;try{var h;var k=n("window.location.href");if(s(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};else{var l,r,K=!1;try{l=c.lineNumber||c.line||"Not available"}catch(U){l="Not available",K=!0}try{r=c.fileName||c.filename||c.sourceURL||m.$googDebugFname||k}catch(x){r="Not available",K=!0}h=!K&&c.lineNumber&&c.fileName&&c.stack&&c.message&&c.name?c:{message:c.message||
"Not available",name:c.name||"UnknownError",lineNumber:l,fileName:r,stack:c.stack||"Not available"}}e="Message: "+pa(h.message)+'\nUrl: <a href="view-source:'+h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+pa(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+pa(Ef(f)+"-> ")}catch(ca){e="Exception trying to expose exception! You win, we lose. "+ca}d.b=e}return d};g.info=function(){};var Of={},Pf=null;function Qf(){Pf||(Pf=new If(""),Of[""]=Pf)}
function Rf(a){Qf();var b;if(!(b=Of[a])){b=new If(a);var c=a.lastIndexOf("."),d=a.substr(c+1);Rf(a.substr(0,c)).getChildren()[d]=b;Of[a]=b}return b};function Sf(){t(this.i,this);this.b=new se;this.b.g=!1;this.g=this.b.b=!1;this.h="";this.j={}}function Tf(){var a=Uf;!0!=a.g&&(Qf(),a.g=!0)}Sf.prototype.i=function(a){if(!this.j[a.h]){var b=te(this.b,a),c=Vf;if(c)switch(a.j){case Kf:Wf(c,"info",b);break;case Lf:Wf(c,"error",b);break;case Mf:Wf(c,"warn",b);break;default:Wf(c,"debug",b)}else window.opera?window.opera.postError(b):this.h+=b}};var Uf=null,Vf=window.console;function Wf(a,b,c){if(a[b])a[b](c);else a.log(c)};var Xf=null,Yf=null,Zf=Array(50),$f=-1,ag=!1;function bg(a){var b=($f+1)%50;$f=b;Zf[b]=a;ag||(ag=49==b)}function cg(a){var b=Zf;if(b[0]){var c=$f,d=ag?c:-1;do{var d=(d+1)%50,e=b[d];A(a,function(a){a(e)})}while(d!=c);Zf=Array(50);$f=-1;ag=!1}}
function dg(){var a=eg,b=n("yt.mdx.remote.debug.logger_"),c=n("yt.mdx.remote.debug.handlers_");b&&c||(Uf||(Uf=new Sf),-1!=window.location.href.indexOf("Debug=true")&&Tf(),Tf(),Uf.b.b=!0,(b=n("yt.mdx.remote.debug.logger_"))||(b=Rf("yt.mdx.remote")),Xf=b,If.prototype.log=If.prototype.log,If.prototype.getLogRecord=If.prototype.Hd,If.prototype.addHandler=If.prototype.Gd,If.prototype.removeHandler=If.prototype.Id,w("yt.mdx.remote.debug.logger_",Xf),Yf=n("yt.mdx.remote.debug.handlers_")||[],w("yt.mdx.remote.debug.handlers_",
Yf),n("yt.mdx.remote.debug.logger_"),c=n("yt.mdx.remote.debug.handlers_"));c&&(c.push(a),cg(c))}function fg(a,b,c){var d=n("yt.mdx.remote.debug.logger_"),e=n("yt.mdx.remote.debug.handlers_");if(d){if(d.log(a,b+": "+c,void 0),e&&!Da(e)){cg(e);var f=d.getLogRecord(a,b+": "+c,void 0);A(e,function(a){a(f)})}}else e&&!Da(e)||bg(new ue(a,String(c),"yt.mdx.remote"))};function gg(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function hg(a){fg(Nf,"CAST",a)}function eg(a){var b=ig();b&&b.logMessage&&(a=te(jg,a),b.logMessage(a))}
function kg(){if(!lg&&(Da(Fa)&&La(Fa,zf()),gg())){var a=ig();a?(a.removeReceiverListener("YouTube",mg),a.addReceiverListener("YouTube",mg),hg("API initialized in the other binary")):(a=new cast.Api,ng(a),a.addReceiverListener("YouTube",mg),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){J(function(){window.location.reload(!0)},1E3)}),jg=new se,jg.g=!1,jg.b=!1,dg(),hg("API initialized"));lg=!0}}function og(a){var b=Ca(Fa,function(b){return b.id==a.id});0<=b&&(Fa[b]=xe(a))}
function mg(a){hg("Updating receivers: "+S(a));pg(a);O("yt-remote-cast-device-list-update",qg());A(qg(),function(a){rg(a.id)});A(a,function(a){a.isTabProjected&&(a=sg(a.id),hg("Detected device: "+a.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event."),O("yt-remote-cast-device-tab-projected",a.id))})}
function tg(a,b){hg("Updating "+a+" activity status: "+S(b));var c=sg(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),og(c),O("yt-remote-cast-device-status-update",c)):hg("Device not found")}function qg(){kg();return ef(Fa)}
function pg(a){a=B(a,function(a){var c={id:a.id,name:a.name};if(a=sg(a.id))c.activityId=a.activityId,c.status=a.status;return c});Ea();La(Fa,a)}function sg(a){var b=qg();return Ba(b,function(b){return b.id==a})||null}function rg(a){var b=sg(a),c=ig();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");tg(a,b)})}
function ug(a,b,c,d){kg();var e=sg(a),f=ig();if(f&&e){var h=new cast.Receiver(e.id,e.name),h=new cast.LaunchRequest("YouTube",h);h.parameters="pairingCode="+b;h.description=new cast.LaunchDescription;h.description.text=document.title;c&&(h.parameters+="&v="+c,d&&(h.parameters+="&t="+Math.round(d)),h.description.url="http://i.ytimg.com/vi/"+c+"/default.jpg");"UNKNOWN"!=e.status&&(e.status="UNKNOWN",og(e),O("yt-remote-cast-device-status-update",e));hg("Sending a cast launch request with params: "+h.parameters);
f.launch(h,u(tg,a))}else hg("No cast API or no cast device. Dropping cast launch.")}function vg(a){kg();var b=sg(a),c=ig();c&&b&&b.activityId?(hg("Stopping cast activity"),c.stopActivity(b.activityId,u(tg,a))):hg("Dropping cast activity stop")}function ig(){return n("yt.mdx.remote.castapi.api_")}function ng(a){w("yt.mdx.remote.castapi.api_",a)}var jg=null,lg=!1,Fa=n("yt.mdx.remote.castapi.devices_")||[];w("yt.mdx.remote.castapi.devices_",Fa);function wg(a,b){var c;if(a instanceof wg)this.ya=p(b)?b:a.ya,xg(this,a.Oa),this.Cb=a.Cb,yg(this,a.Na),zg(this,a.fb),this.gb=a.gb,Ag(this,a.b.clone()),this.Bb=a.Bb;else if(a&&(c=Fc(String(a)))){this.ya=!!b;xg(this,c[1]||"",!0);var d=c[2]||"";this.Cb=d?decodeURIComponent(d):"";yg(this,c[3]||"",!0);zg(this,c[4]);this.gb=(d=c[5]||"")?decodeURIComponent(d):"";Ag(this,c[6]||"",!0);this.Bb=(c=c[7]||"")?decodeURIComponent(c):""}else this.ya=!!b,this.b=new Bg(null,0,this.ya)}g=wg.prototype;g.Oa="";g.Cb="";
g.Na="";g.fb=null;g.gb="";g.Bb="";g.ya=!1;g.toString=function(){var a=[],b=this.Oa;b&&a.push(Cg(b,Dg),":");if(b=this.Na){a.push("//");var c=this.Cb;c&&a.push(Cg(c,Dg),"@");a.push(encodeURIComponent(String(b)));b=this.fb;null!=b&&a.push(":",String(b))}if(b=this.gb)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(Cg(b,"/"==b.charAt(0)?Eg:Fg));(b=this.b.toString())&&a.push("?",b);(b=this.Bb)&&a.push("#",Cg(b,Gg));return a.join("")};g.clone=function(){return new wg(this)};
function xg(a,b,c){a.Oa=c?b?decodeURIComponent(b):"":b;a.Oa&&(a.Oa=a.Oa.replace(/:$/,""))}function yg(a,b,c){a.Na=c?b?decodeURIComponent(b):"":b}function zg(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.fb=b}else a.fb=null}function Ag(a,b,c){b instanceof Bg?(a.b=b,Hg(a.b,a.ya)):(c||(b=Cg(b,Ig)),a.b=new Bg(b,0,a.ya))}function W(a,b,c){a.b.set(b,c)}function Jg(a,b,c){q(c)||(c=[String(c)]);Kg(a.b,b,c)}
function Lg(a){W(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36));return a}function Mg(a,b,c,d){var e=new wg(null,void 0);a&&xg(e,a);b&&yg(e,b);c&&zg(e,c);d&&(e.gb=d);return e}function Cg(a,b){return s(a)?encodeURI(a).replace(b,Ng):null}function Ng(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Dg=/[#\/\?@]/g,Fg=/[\#\?:]/g,Eg=/[\#\?]/g,Ig=/[\#\?@]/g,Gg=/#/g;
function Bg(a,b,c){this.b=a||null;this.g=!!c}function Og(a){if(!a.A&&(a.A=new Bd,a.O=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=oa(e);e=Pg(a,e);a.add(e,f?oa(f):"")}}g=Bg.prototype;g.A=null;g.O=null;g.na=function(){Og(this);return this.O};g.add=function(a,b){Og(this);this.b=null;a=Pg(this,a);var c=this.A.get(a);c||this.A.set(a,c=[]);c.push(b);this.O++;return this};
g.remove=function(a){Og(this);a=Pg(this,a);return Ed(this.A.g,a)?(this.b=null,this.O-=this.A.get(a).length,this.A.remove(a)):!1};g.clear=function(){this.A=this.b=null;this.O=0};function Qg(a,b){Og(a);b=Pg(a,b);return Ed(a.A.g,b)}g.ha=function(){Og(this);for(var a=this.A.Z(),b=this.A.ha(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.Z=function(a){Og(this);var b=[];if(s(a))Qg(this,a)&&(b=Ja(b,this.A.get(Pg(this,a))));else{a=this.A.Z();for(var c=0;c<a.length;c++)b=Ja(b,a[c])}return b};g.set=function(a,b){Og(this);this.b=null;a=Pg(this,a);Qg(this,a)&&(this.O-=this.A.get(a).length);this.A.set(a,[b]);this.O++;return this};g.get=function(a,b){var c=a?this.Z(a):[];return 0<c.length?String(c[0]):b};function Kg(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.A.set(Pg(a,b),Ka(c)),a.O+=c.length)}
g.toString=function(){if(this.b)return this.b;if(!this.A)return"";for(var a=[],b=this.A.ha(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Z(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.b=a.join("&")};g.clone=function(){var a=new Bg;a.b=this.b;this.A&&(a.A=this.A.clone(),a.O=this.O);return a};function Pg(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}
function Hg(a,b){b&&!a.g&&(Og(a),a.b=null,Df(a.A,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Kg(this,e,a))},a));a.g=b};var Rg="corp.google.com googleplex.com youtube.com youtube-nocookie.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com play.google.com googlevideo.com".split(" ");function Sg(a){return RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+Rg.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i").test(a)};function Tg(){var a={volume:100,muted:!1,nonNormalized:100},b=V("yt-player-volume");if(!b){var c=new He;c.isAvailable()&&(b=(new Je(c)).get("yt-player-volume"))}b=b||{};a.volume=isNaN(b.volume)?100:Math.min(Math.max(b.volume,0),100);a.nonNormalized=isNaN(b.nonNormalized)?a.volume:b.nonNormalized;a.muted=void 0==b.muted?!1:b.muted;return a}
function Ug(a){var b=V("yt-player-autoplay-token")||{},c=V("yt-player-autoplay-token")||{};p(void 0)?c[a]=void 0:delete c[a];T("yt-player-autoplay-token",c,300);return b[a]};function Vg(){var a;if(a=Ce.get("PREF",void 0)){a=unescape(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Wg[d]=c.toString())}}}da(Vg);var Wg=n("yt.prefs.UserPrefs.prefs_")||{};w("yt.prefs.UserPrefs.prefs_",Wg);function Xg(a){if(/^f([1-9][0-9]*)$/.test(a))throw"ExpectedRegexMatch: "+a;}function Yg(a){if(!/^\w+$/.test(a))throw"ExpectedRegexMismatch: "+a;}Vg.prototype.get=function(a,b){Yg(a);Xg(a);var c=void 0!==Wg[a]?Wg[a].toString():null;return null!=c?c:b?b:""};
Vg.prototype.set=function(a,b){Yg(a);Xg(a);if(null==b)throw"ExpectedNotNull";Wg[a]=b.toString()};Vg.prototype.remove=function(a){Yg(a);Xg(a);delete Wg[a]};Vg.prototype.clear=function(){Wg={}};function Zg(){this.b=[];$g(this)}da(Zg);g=Zg.prototype;g.Q=0;g.Ba=0;g.ib=0;g.ac="";g.oa=0;g.load=function(a){3<=this.oa?a(this):this.b.push(a)};g.getVersion=function(){return[this.Q,this.Ba,this.ib]};function ah(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.Q>b[0]||a.Q==b[0]&&a.Ba>b[1]||a.Q==b[0]&&a.Ba==b[1]&&a.ib>=b[2]}
function bh(a){return-1<a.ac.indexOf("Gnash")&&-1==a.ac.indexOf("AVM2")||9==a.Q&&1==a.Ba||9==a.Q&&0==a.Ba&&1==a.ib?!1:9<=a.Q}
function $g(a){if(3>a.oa)if(1>a.oa){var b=n("window.navigator.plugins"),c=n("window.navigator.mimeTypes"),b=b&&b["Shockwave Flash"],c=c&&c["application/x-shockwave-flash"],c=b&&c&&c.enabledPlugin&&b.description||"";if(b=c){var d=b.indexOf("Shockwave Flash");0<=d&&(b=b.substr(d+15));for(var d=b.split(" "),e="",b="",f=0,h=d.length;f<h;f++)if(e)if(b)break;else b=d[f];else e=d[f];e=e.split(".");d=parseInt(e[0],10)||0;e=parseInt(e[1],10)||0;f=0;if("r"==b.charAt(0)||"d"==b.charAt(0))f=parseInt(b.substr(1),
10)||0;b=[d,e,f]}else b=[0,0,0];a.ac=c;c=b;a.Q=c[0];a.Ba=c[1];a.ib=c[2];a.oa=1;0<a.Q?ch(a):$g(a)}else 2>a.oa?dh(a):ch(a)}g.Vc=function(a){a?(a=a.split(" ")[1].split(","),a=[parseInt(a[0],10)||0,parseInt(a[1],10)||0,parseInt(a[2],10)||0]):a=[0,0,0];this.Q=a[0];this.Ba=a[1];this.ib=a[2];this.oa=2;0<this.Q?ch(this):$g(this)};function ch(a){if(3>a.oa){a.oa=3;for(var b=0,c=a.b.length;b<c;b++)a.b[b](a);a.b=[]}}
function dh(a){function b(){if(c&&"GetVariable"in c)try{d=c.GetVariable("$version")}catch(a){d=""}d||10<=l?(e&&f&&e.removeChild(f),k(d||"")):(l++,J(b,10))}var c,d,e,f;if(oc){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(h){c=null}c||a.Vc("")}else e=document.getElementsByTagName("body")[0],f=document.createElement("object"),f.setAttribute("type","application/x-shockwave-flash"),c=e.appendChild(f);var k=t(a.Vc,a),l=0;J(b,0)};function eh(a,b,c){if((a=G(a))&&b&&c){c=me(c);var d=db(c.attrs);d.tabindex=0;var e=db(c.params);e.flashvars=Pd(c.args);if(oc){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;b=document.createElement("object");for(var f in d)b.setAttribute(f,d[f]);for(f in e)d=document.createElement("param"),d.setAttribute("name",f),d.setAttribute("value",e[f]),b.appendChild(d)}else{d.type="application/x-shockwave-flash";d.src=b;b=document.createElement("embed");b.setAttribute("name",d.id);for(f in d)b.setAttribute(f,
d[f]);for(f in e)b.setAttribute(f,e[f])}e=document.createElement("div");e.appendChild(b);a.innerHTML=e.innerHTML}}function fh(a,b){a=G(a);b=me(b);if(window!=window.top){var c=null;document.referrer&&(c=document.referrer.substring(0,128));b.args.framer=c}gh(function(c){ah(c,b.minVersion)||I("IS_OPERA_MINI")?(c=hh(b,c),eh(a,c,b)):ih(a,b,c)})}
function jh(a,b,c){if(a&&a.attrs&&a.attrs.id){a=me(a);var d=!!b,e=G(a.attrs.id),f=e?e.parentNode:null;if(e&&f){if(window!=window.top){var h=null;if(document.referrer){var k=document.referrer.substring(0,128);Sd(k)||(h=k)}else h="unknown";h&&(d=!0,a.args.framer=h)}gh(function(b){if(ah(b,a.minVersion)||I("IS_OPERA_MINI")){var h=hh(a,b),k="";-1<navigator.userAgent.indexOf("Sony/COM2")||(k=e.getAttribute("src")||e.movie);(k!=h||d)&&eh(f,h,a);(lb?ah(b,11,2):kb?ah(b,11,3):bh(b))||(b=G("flash10-promo-div"),
Vg.getInstance(),h=void 0!==Wg["f"+(Math.floor(107/31)+1)]?Wg["f"+(Math.floor(107/31)+1)].toString():null,h=!!(((null!=h&&/^[A-Fa-f0-9]+$/.test(h)?parseInt(h,16):null)||0)&16384),b&&!h&&cd(b))}else ih(f,a,b);c&&c()})}else J(function(){jh(a,b,c)},50)}}
function ih(a,b,c){0==c.Q&&b.fallback?b.fallback():0==c.Q&&b.fallbackMessage?b.fallbackMessage():a.innerHTML='<div id="flash-upgrade">'+nc("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 hh(a,b){return bh(b)&&a.url||(-1<navigator.userAgent.indexOf("Sony/COM2")&&!ah(b,9,1,58)?!1:!0)&&a.urlV9As2||a.urlV8||a.url}
function gh(a){Zg.getInstance().load(function(b){Vg.getInstance().set("fv",b.getVersion().join("."));var c;c=[];for(var d in Wg)c.push(d+"="+escape(Wg[d]));c=c.join("&");De("PREF",c,63072E3);a(b)})};function kh(a,b){lh(a,b)}function lh(a,b){var c="js-"+wa(a),d=document.getElementById(c),e=d&&H(d,"loaded"),f=d&&!e;e?b&&b():(b&&N(c,b),f||(d=mh(a,c,function(){H(d,"loaded")||(Xb(d,"loaded","true"),O(c),Cc(c))})))}
function mh(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 nh(a){var b="css-"+wa(a),c=document.getElementById(b),d=c&&H(c,"loaded");d||c&&!d||(c=oh(a,b,function(){H(c,"loaded")||(Xb(c,"loaded","true"),O(b),Cc(b))}))}function oh(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};var ph;var qh=mb(),qh=qh.toLowerCase();if(-1!=qh.indexOf("android")){var rh=qh.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(rh)ph=Number(rh[1]);else{var sh={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},th=qh.match("("+$a(sh).join("|")+")");ph=th?sh[th[0]]:0}}else ph=void 0;var uh;function vh(){if(2.2==ph)return!0;var a;a=n("yt.player.utils.videoElement_");a||(a=document.createElement("video"),w("yt.player.utils.videoElement_",a));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 wh(a){this.i={};this.g={};this.h={};this.b=xh(this,a)}y(wh,uc);function xh(a,b,c){var d=0,e;e=b[d++];e=document.createElement(e);if(s(b[d])||q(b[d])||null===b[d]){var f=b[d++];q(f)&&(f=f.join(" "));if(f=yh(a,e,"className",f))zh(a,e,"className",f),Ah(a,f,e)}for(;d<b.length;d++){var h=b[d];if(q(h))xh(a,h,e);else if(ia(h)){var f=a,k=e,l=void 0;for(l in h)h[l]&&zh(f,k,l,yh(f,k,l,h[l]))}else s(h)&&zh(a,e,"child",yh(a,e,"child",h))}c&&c.appendChild(e);return e}wh.prototype.Fb=function(){return this.b};
function Ah(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Ah(a,d[b],c);else a.i[b]=c}wh.prototype.rb=function(a,b){p(b)?a.insertBefore(this.b,a.childNodes[b]||null):a.appendChild(this.b)};wh.prototype.Sb=function(){var a=this.b;a&&a.parentNode&&a.parentNode.removeChild(a)};function yh(a,b,c,d){return s(d)&&"{{"==d.substr(0,2)?(a.g[d]=[b,c],null):d}
function zh(a,b,c,d){if("child"==c){Qb(b);if(!q(d)||q(d)&&s(d[0]))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];null===f||(!f.nodeType||1!=f.nodeType&&3!=f.nodeType?q(f)&&s(f[0])?c.push(xh(a,f)):f.Fb?c.push(f.Fb()):c.push(document.createTextNode(String(f.toString()))):c.push(f))}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"className"==c?b.className=d:null===d?b.removeAttribute(c):b.setAttribute(c,d.toString())}wh.prototype.u=function(){this.i={};this.g={};this.h={};this.Sb();this.b=null;wh.w.u.call(this)};function Bh(a){this.template=new wh(a);vc(this,u(wc,this.template));this.element=this.template.Fb();this.i=[];this.g={}}y(Bh,uc);g=Bh.prototype;g.Fb=function(){return this.element};g.rb=function(a,b){this.template.rb(a,b)};g.Sb=function(){this.template.Sb()};g.listen=function(a,b,c,d,e){a=L(a,b,t(c,d||this));this.i.push(a);s(e)&&(this.g[e]?this.g[e].push(a):this.g[e]=[a]);return a};g.bb=function(a){tc(a)};
g.addEventListener=function(a,b,c){this.element.addEventListener?this.element.addEventListener(a,b,c):this.element.attachEvent&&this.element.attachEvent("on"+a,b)};g.removeEventListener=function(a,b,c){this.element.removeEventListener?this.element.removeEventListener(a,b,c):this.element.detachEvent&&this.element.detachEvent("on"+a,b)};g.u=function(){this.bb(this.i);this.element=null;Bh.w.u.call(this)};function Ch(a){Bh.call(this,["span"]);this.element.innerHTML=a}y(Ch,Bh);var Dh=!!m.DOMTokenList,Eh=Dh?function(a){return a.classList}:function(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]},Fh=Dh?function(a,b){return a.classList.contains(b)}:function(a,b){return C(Eh(a),b)},Gh=Dh?function(a,b){a.classList.add(b)}:function(a,b){Fh(a,b)||(a.className+=0<a.className.length?" "+b:b)};function Hh(a,b){Bh.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.da=this.element.getContext("2d")}y(Hh,Bh);Hh.prototype.u=function(){lc(0);this.da=null;Hh.w.u.call(this)};function Ih(a,b){Hh.call(this,a,b);Gh(this.element,"ytp-tv-static");if(a&&b){this.width=this.element.width=a;this.height=this.element.height=b;var c=document.createElement("canvas");c.width=a;c.height=b;for(var c=c.getContext("2d"),d=c.getImageData(0,0,a,b),e=a*b,f=0;f<e;f++){var h=4*f;d.data[h]=d.data[h+1]=d.data[h+2]=Math.floor(35*Math.random());d.data[h+3]=255}c.putImageData(d,0,0);this.da.scale(1.5,1.5)}}y(Ih,Hh);function Jh(){Bh.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.b=[];if(void 0==uh){var a=document.createElement("canvas");uh=!(!a.getContext||!a.getContext("2d"))}uh&&(this.h=new Ih(1,1),this.h.rb(this.element,0),vc(this,u(wc,this.h)))}y(Jh,Bh);Jh.prototype.u=function(){tc(this.b);this.b=[];Jh.w.u.call(this)};function Kh(a,b){var c=Hc(a);if(c==Hc(window.location.href)||!c&&0==a.lastIndexOf("/",0)){var c=Fc(a),c=Dc(null,null,c[5],c[6],c[7]),d=c.indexOf("#");if(c=0>d?c:c.substr(0,d))c="s_tempdata-"+wa(c),d=b?Pd(b):"",De(c,d,5)}};function Lh(a,b){this.ga=a;this.t=b;this.k=!1;this.g={};this.R=this.o=null;this.D=new M;vc(this,u(wc,this.D));this.j={};this.i=this.aa=this.Fa=this.h=this.b=null;this.qa=!1;this.ba={};this.kb=["onReady"];this.Ta=0;Mh(this);this.Ua("onVolumeChange",t(this.ad,this));this.Ua("onError",t(this.$c,this));this.Ua("onTabOrderChange",t(this.Yc,this));this.Ua("onNavigate",t(this.Zc,this))}y(Lh,uc);function Nh(a,b){a.p||(Oh(a,b),a.Mb(),a.k&&Ph(a))}
function Oh(a,b){a.b=b.clone();a.h=a.b.attrs.id||a.h;"video-player"==a.h&&(a.h=a.t,a.b.attrs.id=a.t);a.ga.id==a.h&&(a.h=a.h+"-player",a.b.attrs.id=a.h);a.Fa=a.b.args.el;var c;(c=a.b.args.eurl)||(c=document.location.toString(),c=-1!=c.indexOf("/embed/")?document.referrer&&document.referrer.substring(0,128)||"unknown":c);a.b.args.eurl=c;a.b.args.enablejsapi="1";a.b.args.playerapiid=a.t;vh()&&(Qh()||a.b.assets.js)||(a.b.args.html5_unavailable="1",a.b.disable.html5=!0);a.b.fallback=t(a.Nb,a);a.aa||(a.aa=
Rh(a,a.b.args.jsapicallback||"onYouTubePlayerReady"));a.b.args.jsapicallback=null;if(c=a.b.attrs.width)a.ga.style.width=Uc(Number(c)||c,!0);if(c=a.b.attrs.height)a.ga.style.height=Uc(Number(c)||c,!0);a.ga.style.overflow="hidden"}function Ph(a){a.b.loaded||(a.b.loaded=!0,"0"!=a.b.args.autoplay?a.g.loadVideoByPlayerVars(a.b.args):a.g.cueVideoByPlayerVars(a.b.args))}g=Lh.prototype;
g.Nb=function(a){var b=G(this.h);a=me(a||this.b);var c=!0;if("flash"==this.i)a.disable.flash=!0,"html5"==Sh(this)&&(c=!1);else if("html5"==this.i){var d=G(this.h);d.stopVideo&&d.stopVideo();a.disable.flash?c=!1:(a.args.autoplay=1,a.args.html5_unavailable="1",a.disable.html5=!0,b.logFallback())}c&&(Oh(this,a),this.Mb())};
g.Mb=function(a){if(!this.p){if(!a){a=!!this.b.disable.html5;var b=!!this.b.disable.flash;a=!this.b.html5&&!b||a?b?"unsupported":"flash":"html5"}("flash"==a?this.yd:"html5"==a?this.zd:this.Bd).call(this)}};function Qh(){return n("yt.player.Application")}
g.zd=function(){if(!this.qa){var a=this.b.clone();if("html5"==Sh(this))this.i="html5",this.k||this.Va();else{Th(this);this.i="html5";this.b.loaded=!0;var b=function(){new (Qh())(this.ga,a);this.Va()};this.qa=!0;Qh()?b.call(this):(kh(this.b.assets.js,t(b,this)),nh(this.b.assets.css))}}};g.yd=function(){this.i="flash";var a=this.b.clone();a.attrs.width=a.attrs.width||"100%";a.attrs.height=a.attrs.height||"100%";"flash"==Sh(this)?this.k||jh(a,!1,t(this.Va,this)):(this.b.loaded=!0,fh(this.ga,a),this.Va())};
g.Va=function(){var a=G(this.h);if(a&&a.getApiInterface)if(this.qa=!1,a.isNotServable&&a.isNotServable())this.Nb(a.getUpdatedConfigurationData());else{Mh(this);this.k=!0;a=G(this.h);a.addEventListener&&(this.o=t(a.addEventListener,a));a.removeEventListener&&(this.R=t(a.removeEventListener,a));for(var b=a.getApiInterface(),b=b.concat(a.getInternalApiInterface()),c=0;c<b.length;c++){var d=b[c];this.g[d]||(this.g[d]=t(a[d],a))}for(var e in this.j)this.o(e,this.j[e]);Ph(this);this.aa&&this.aa(this.g);
this.D.q("onReady",this.g)}else this.Ta=J(t(this.Va,this),50)};function Mh(a){a.k=!1;if(a.R)for(var b in a.j)a.R(b,a.j[b]);a.o=null;a.R=null;for(var c in a.g)a.g[c]=null;a.g.addEventListener=t(a.Ua,a);a.g.removeEventListener=t(a.Ld,a);a.g.destroy=t(a.dispose,a);a.g.getPlayerType=t(a.Kd,a);a.g.writePlayer=t(a.Mb,a);a.g.isReady=t(a.Md,a)}g.Md=function(){return this.k};
g.Ua=function(a,b){var c=Rh(this,b);if(c){if(!C(this.kb,a)&&!this.j[a]){var d=Uh(this,a);this.o&&this.o(a,d)}this.D.I(a,c);"onReady"==a&&this.k&&J(u(c,this.g),0)}};g.Ld=function(a,b){var c=Rh(this,b);c&&this.D.Aa(a,c)};function Rh(a,b){var c=b;if("string"==typeof b){if(a.ba[b])return a.ba[b];c=function(){var a=n(b);a&&a.apply(m,arguments)};a.ba[b]=c}return c?c:null}function Uh(a,b){var c="ytPlayer"+b+a.t;a.j[b]=c;m[c]=function(c){J(function(){a.p||a.D.q(b,c)},0)};return c}
g.Yc=function(a){a=a?Sb:Rb;for(var b=a(document.activeElement);b&&(1!=b.nodeType||(b.focus(),b!=document.activeElement));)b=a(b)};g.Zc=function(a){var b=I("EVENT_ID");b&&Kh(a.url,{ei:b,feature:a.feature})};g.ad=function(a){var b={};b.volume=isNaN(a.volume)?Tg().volume:Math.min(Math.max(a.volume,0),100);b.nonNormalized=a.nonNormalized;b.muted=void 0==a.muted?Tg().muted:a.muted;T("yt-player-volume",b,2592E3)};g.$c=function(a){var b=G(this.h);5==a&&this.Nb(b.getUpdatedConfigurationData())};
g.Bd=function(){Th(this);this.i="unsupported";var a=nc("PLAYER_FALLBACK_OVERRIDE");if(!a){var a=nc("PLAYER_FALLBACK",void 0,'The 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=nc("QUICKTIME_FALLBACK",void 0,'The 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>'))}var b=
new Jh,c=a,a="embedded"==this.Fa;tc(b.b);b.b=[];var d=b.template,c=new Ch(c);if(c!=d.h.content){var e=d.g["{{content}}"];e&&(d.h.content=c,zh(d,e[0],e[1],c))}if(a)for(a=b.element.getElementsByTagName("a"),d=0;d<a.length;d++)a[d].setAttribute("target","_blank");b.rb(this.ga)};g.Kd=function(){return this.i||Sh(this)};function Sh(a){return(a=G(a.h))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}function Th(a){a.cancel();Mh(a);a.i=null;var b=G(a.h);b&&b.destroy&&b.destroy();Qb(a.ga)}
g.cancel=function(){this.b.assets.js&&Cc("js-"+wa(this.b.assets.js));lc(this.Ta)};g.u=function(){Th(this);this.ba=null;for(var a in this.j)m[this.j[a]]=null;this.g=null;this.b&&(this.b=this.b.fallback=null);Lh.w.u.call(this)};var Vh={};function Wh(a,b){a=G(a);if(!a)return null;b=me(b);var c="player"+(a[ja]||(a[ja]=++ka)),d=Vh[c];if(d&&I("PLAYER_SYNCHRONOUS_EMBED"))return Nh(d,b),d.g;d||(d=new Lh(a,c),Vh[c]=d,O("player-added",d.g),vc(d,u(Xh,d)));J(function(){Nh(d,b)},0);return d.g}function Yh(){for(var a in Vh){var b=Vh[a];b&&b.cancel()}}function Zh(a){if(a=G(a))a="player"+(a[ja]||(a[ja]=++ka)),(a=Vh[a])&&a.dispose()}function Xh(a){Vh[a.t]=null}
function $h(a){a=G(a);if(!a)return null;a="player"+(a[ja]||(a[ja]=++ka));return(a=Vh[a])?a.g:null}var ai=n("yt.player.embed")||Wh;w("yt.player.embed",ai);var bi=n("yt.player.destroy")||Zh;w("yt.player.destroy",bi);var ci=n("yt.player.cancelAll")||Yh;w("yt.player.cancelAll",ci);var di=n("yt.player.getPlayerByElement")||$h;w("yt.player.getPlayerByElement",di);function ei(){var a=jf(xf()),b=ef(zf()),b=ya(b,function(b){return!nf(a,b.id)});return cf(Ja(a,b))};function fi(a,b){this.type=a;this.currentTarget=this.target=b}g=fi.prototype;g.dispose=function(){};g.Da=!1;g.defaultPrevented=!1;g.yc=!0;g.preventDefault=function(){this.defaultPrevented=!0;this.yc=!1};function gi(a){gi[" "](a);return a}gi[" "]=ba;var hi=!E||Fb(9),ii=E&&!F("9");!sb||F("528");rb&&F("1.9b")||E&&F("8")||qb&&F("9.5")||sb&&F("528");rb&&!F("8")||E&&F("9");function ji(a,b){a&&this.init(a,b)}y(ji,fi);g=ji.prototype;g.target=null;g.relatedTarget=null;g.clientX=0;g.clientY=0;g.keyCode=0;g.charCode=0;g.ctrlKey=!1;g.altKey=!1;g.shiftKey=!1;g.hb=null;
g.init=function(a,b){var c=this.type=a.type;fi.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(rb){var e;t:{try{gi(d.nodeName);e=!0;break t}catch(f){}e=!1}e||(d=null)}}else"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.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.hb=a;a.defaultPrevented&&this.preventDefault();delete this.Da};g.preventDefault=function(){ji.w.preventDefault.call(this);var a=this.hb;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ii)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};g.Fd=function(){return this.hb};var ki="closure_listenable_"+(1E6*Math.random()|0);function li(a){try{return!(!a||!a[ki])}catch(b){return!1}}var mi=0;function ni(a,b,c,d,e){this.za=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Db=e;this.key=++mi;this.removed=this.zb=!1}function oi(a){a.removed=!0;a.za=null;a.proxy=null;a.src=null;a.Db=null};function pi(a){this.src=a;this.b={};this.g=0}pi.prototype.add=function(a,b,c,d,e){var f=this.b[a];f||(f=this.b[a]=[],this.g++);var h=qi(f,b,d,e);-1<h?(a=f[h],c||(a.zb=!1)):(a=new ni(b,this.src,a,!!d,e),a.zb=c,f.push(a));return a};pi.prototype.remove=function(a,b,c,d){if(!(a in this.b))return!1;var e=this.b[a];b=qi(e,b,c,d);return-1<b?(oi(e[b]),z.splice.call(e,b,1),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function ri(a,b){var c=b.type;if(!(c in a.b))return!1;var d=Ha(a.b[c],b);d&&(oi(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}pi.prototype.removeAll=function(a){var b=0,c;for(c in this.b)if(!a||c==a){for(var d=this.b[c],e=0;e<d.length;e++)++b,oi(d[e]);delete this.b[c];this.g--}return b};function si(a,b,c,d,e){a=a.b[b];b=-1;a&&(b=qi(a,c,d,e));return-1<b?a[b]:null}function qi(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.za==b&&f.capture==!!c&&f.Db==d)return e}return-1};var ti="closure_lm_"+(1E6*Math.random()|0),ui={},vi=0;function wi(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)wi(a,b[f],c,d,e);return null}c=xi(c);if(li(a))a=a.listen(b,c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,h=yi(a);h||(a[ti]=h=new pi(a));c=h.add(b,c,!1,d,e);c.proxy||(d=zi(),c.proxy=d,d.src=a,d.za=c,a.addEventListener?a.addEventListener(b,d,f):a.attachEvent(b in ui?ui[b]:ui[b]="on"+b,d),vi++);a=c}return a}
function zi(){var a=Ai,b=hi?function(c){return a.call(b.src,b.za,c)}:function(c){c=a.call(b.src,b.za,c);if(!c)return c};return b}function Bi(a,b,c,d,e){if(q(b))for(var f=0;f<b.length;f++)Bi(a,b[f],c,d,e);else c=xi(c),li(a)?a.bb(b,c,d,e):a&&(a=yi(a))&&(b=si(a,b,c,!!d,e))&&Ci(b)}
function Ci(a){if(ga(a)||!a||a.removed)return!1;var b=a.src;if(li(b))return ri(b.la,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(c in ui?ui[c]:ui[c]="on"+c,d);vi--;(c=yi(b))?(ri(c,a),0==c.g&&(c.src=null,b[ti]=null)):oi(a);return!0}function Di(a,b,c,d){var e=1;if(a=yi(a))if(b=a.b[b])for(b=Ka(b),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.removed&&(e&=!1!==Ei(f,d))}return Boolean(e)}
function Ei(a,b){var c=a.za,d=a.Db||a.src;a.zb&&Ci(a);return c.call(d,b)}
function Ai(a,b){if(a.removed)return!0;if(!hi){var c=b||n("window.event"),d=new ji(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.Da&&0<=k;k--)d.currentTarget=c[k],e&=Di(c[k],f,!0,d);for(k=0;!d.Da&&k<c.length;k++)d.currentTarget=c[k],e&=Di(c[k],f,!1,d)}return e}return Ei(a,new ji(b,this))}
function yi(a){a=a[ti];return a instanceof pi?a:null}var Fi="__closure_events_fn_"+(1E9*Math.random()>>>0);function xi(a){return ha(a)?a:a[Fi]||(a[Fi]=function(b){return a.handleEvent(b)})};function Gi(){this.la=new pi(this);this.Td=this}y(Gi,uc);Gi.prototype[ki]=!0;g=Gi.prototype;g.$b=null;g.addEventListener=function(a,b,c,d){wi(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){Bi(this,a,b,c,d)};
function X(a,b){var c,d=a.$b;if(d){c=[];for(var e=1;d;d=d.$b)c.push(d),++e}var d=a.Td,e=b,f=e.type||e;if(s(e))e=new fi(e,d);else if(e instanceof fi)e.target=e.target||d;else{var h=e,e=new fi(f,d);fb(e,h)}var h=!0,k;if(c)for(var l=c.length-1;!e.Da&&0<=l;l--)k=e.currentTarget=c[l],h=Hi(k,f,!0,e)&&h;e.Da||(k=e.currentTarget=d,h=Hi(k,f,!0,e)&&h,e.Da||(h=Hi(k,f,!1,e)&&h));if(c)for(l=0;!e.Da&&l<c.length;l++)k=e.currentTarget=c[l],h=Hi(k,f,!1,e)&&h}
g.u=function(){Gi.w.u.call(this);this.la&&this.la.removeAll(void 0);this.$b=null};g.listen=function(a,b,c,d){return this.la.add(String(a),b,!1,c,d)};g.bb=function(a,b,c,d){return this.la.remove(String(a),b,c,d)};function Hi(a,b,c,d){b=a.la.b[String(b)];if(!b)return!0;b=Ka(b);for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var k=h.za,l=h.Db||h.src;h.zb&&ri(a.la,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.yc};function Ii(a,b){this.g=new Id(a);this.b=b?Gd:Fd}Ii.prototype.stringify=function(a){return Hd(this.g,a)};Ii.prototype.parse=function(a){return this.b(a)};function Ji(){};function Ki(a,b){Gi.call(this);this.b=a||1;this.g=b||m;this.h=t(this.hd,this);this.i=v()}y(Ki,Gi);g=Ki.prototype;g.ja=!1;g.S=null;function Li(a,b){a.b=b;a.S&&a.ja?(a.stop(),a.start()):a.S&&a.stop()}g.hd=function(){if(this.ja){var a=v()-this.i;0<a&&a<0.8*this.b?this.S=this.g.setTimeout(this.h,this.b-a):(this.S&&(this.g.clearTimeout(this.S),this.S=null),X(this,"tick"),this.ja&&(this.S=this.g.setTimeout(this.h,this.b),this.i=v()))}};
g.start=function(){this.ja=!0;this.S||(this.S=this.g.setTimeout(this.h,this.b),this.i=v())};g.stop=function(){this.ja=!1;this.S&&(this.g.clearTimeout(this.S),this.S=null)};g.u=function(){Ki.w.u.call(this);this.stop();delete this.g};function Mi(a,b,c){if(ha(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)};function Ni(a,b,c){this.i=a;this.h=b;this.g=c;this.b=t(this.gd,this)}y(Ni,uc);g=Ni.prototype;g.Eb=!1;g.La=null;g.stop=function(){this.La&&(m.clearTimeout(this.La),this.La=null,this.Eb=!1)};g.u=function(){Ni.w.u.call(this);this.stop()};g.gd=function(){this.La=null;this.Eb&&(this.Eb=!1,Oi(this))};function Oi(a){a.La=Mi(a.b,a.h);a.i.call(a.g)};function Pi(a){this.g=a;this.b={}}y(Pi,uc);var Qi=[];g=Pi.prototype;g.listen=function(a,b,c,d,e){q(b)||(Qi[0]=b,b=Qi);for(var f=0;f<b.length;f++){var h=wi(a,b[f],c||this.handleEvent,d||!1,e||this.g||this);if(!h)break;this.b[h.key]=h}return this};g.bb=function(a,b,c,d,e){if(q(b))for(var f=0;f<b.length;f++)this.bb(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.g||this,c=xi(c),d=!!d,b=li(a)?si(a.la,String(b),c,d,e):a?(a=yi(a))?si(a,b,c,d,e):null:null,b&&(Ci(b),delete this.b[b.key]);return this};
g.removeAll=function(){Ya(this.b,Ci);this.b={}};g.u=function(){Pi.w.u.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Ri(){}Ri.prototype.b=null;var Si;function Ti(){}y(Ti,Ri);function Ui(a){return(a=Vi(a))?new ActiveXObject(a):new XMLHttpRequest}function Wi(a){var b={};Vi(a)&&(b[0]=!0,b[1]=!0);return b}
function Vi(a){if(!a.g&&"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.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}Si=new Ti;function Xi(a,b,c,d,e){this.g=a;this.b=b;this.j=c;this.h=d;this.i=e||1;this.o=45E3;this.k=new Pi(this);this.p=new Ki;Li(this.p,250)}g=Xi.prototype;g.pa=null;g.V=!1;g.Ma=null;g.Xb=null;g.Sa=null;g.Ja=null;g.fa=null;g.J=null;g.Ga=null;g.C=null;g.Ya=0;g.W=null;g.Ha=null;g.ra=null;g.Ra=-1;g.fc=!0;g.ua=!1;g.Kb=0;g.mb=null;function Yi(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}}
var Zi={},$i={};g=Xi.prototype;g.setTimeout=function(a){this.o=a};function aj(a,b,c){a.Ja=1;a.fa=Lg(b.clone());a.Ga=c;a.t=!0;bj(a,null)}function cj(a,b,c,d,e){a.Ja=1;a.fa=Lg(b.clone());a.Ga=null;a.t=c;e&&(a.fc=!1);bj(a,d)}
function bj(a,b){a.Sa=v();dj(a);a.J=a.fa.clone();Jg(a.J,"t",a.i);a.Ya=0;a.C=a.g.Ob(a.g.pb()?b:null);0<a.Kb&&(a.mb=new Ni(t(a.gc,a,a.C),a.Kb));a.k.listen(a.C,"readystatechange",a.cd);var c=a.pa?db(a.pa):{};a.Ga?(a.Ha="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.C.send(a.J,a.Ha,a.Ga,c)):(a.Ha="GET",a.fc&&!sb&&(c.Connection="close"),a.C.send(a.J,a.Ha,null,c));a.g.U(1);var d=a.Ga;if(d)for(var c="",d=d.split("&"),e=0;e<d.length;e++){var f=d[e].split("=");if(1<f.length)var h=f[0],f=f[1],
k=h.split("_"),c=2<=k.length&&"type"==k[1]?c+(h+"="+f+"&"):c+(h+"=redacted&")}else c=null;a.b.info("XMLHTTP REQ ("+a.h+") [attempt "+a.i+"]: "+a.Ha+"\n"+a.J+"\n"+c)}g.cd=function(a){a=a.target;var b=this.mb;b&&3==ej(a)?(this.b.info("Throttling readystatechange."),b.La?b.Eb=!0:Oi(b)):this.gc(a)};
g.gc=function(a){try{if(a==this.C)t:{var b=ej(this.C),c=this.C.i,d=fj(this.C);if(E&&!Fb(10)||sb&&!F("420+")){if(4>b)break t}else if(3>b||3==b&&!qb&&!gj(this.C))break t;this.ua||4!=b||7==c||(8==c||0>=d?this.g.U(3):this.g.U(2));hj(this);var e=fj(this.C);this.Ra=e;var f=gj(this.C);f||this.b.info("No response text for uri "+this.J+" status "+e);this.V=200==e;this.b.info("XMLHTTP RESP ("+this.h+") [ attempt "+this.i+"]: "+this.Ha+"\n"+this.J+"\n"+b+" "+e);this.V?(4==b&&ij(this),this.t?(jj(this,b,f),qb&&
this.V&&3==b&&(this.k.listen(this.p,"tick",this.bd),this.p.start())):(kj(this.b,this.h,f,null),lj(this,f)),this.V&&!this.ua&&(4==b?this.g.nb(this):(this.V=!1,dj(this)))):(this.ra=400==e&&0<f.indexOf("Unknown SID")?3:0,Y(),ij(this),mj(this))}}catch(h){this.b.info("Failed call to OnXmlHttpReadyStateChanged_"),this.C&&gj(this.C)&&gj(this.C)}finally{}};
function jj(a,b,c){for(var d=!0;!a.ua&&a.Ya<c.length;){var e=nj(a,c);if(e==$i){4==b&&(a.ra=4,Y(),d=!1);kj(a.b,a.h,null,"[Incomplete Response]");break}else if(e==Zi){a.ra=4;Y();kj(a.b,a.h,c,"[Invalid Chunk]");d=!1;break}else kj(a.b,a.h,e,null),lj(a,e)}4==b&&0==c.length&&(a.ra=1,Y(),d=!1);a.V=a.V&&d;d||(kj(a.b,a.h,c,"[Invalid Chunked Response]"),ij(a),mj(a))}g.bd=function(){var a=ej(this.C),b=gj(this.C);this.Ya<b.length&&(hj(this),jj(this,a,b),this.V&&4!=a&&dj(this))};
function nj(a,b){var c=a.Ya,d=b.indexOf("\n",c);if(-1==d)return $i;c=Number(b.substring(c,d));if(isNaN(c))return Zi;d+=1;if(d+c>b.length)return $i;var e=b.substr(d,c);a.Ya=d+c;return e}
function oj(a,b){a.Sa=v();dj(a);var c=b?window.location.hostname:"";a.J=a.fa.clone();W(a.J,"DOMAIN",c);W(a.J,"t",a.i);try{a.W=new ActiveXObject("htmlfile")}catch(d){ij(a);a.ra=7;Y();mj(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.W.open();a.W.write(e);a.W.close();a.W.parentWindow.m=t(a.dd,a);a.W.parentWindow.d=t(a.lc,a,!0);a.W.parentWindow.rpcClose=t(a.lc,a,!1);c=a.W.createElement("div");a.W.parentWindow.document.body.appendChild(c);c.innerHTML=
'<iframe src="'+a.J+'"></iframe>';a.b.info("TRIDENT REQ ("+a.h+") [ attempt "+a.i+"]: GET\n"+a.J);a.g.U(1)}g.dd=function(a){pj(t(this.ie,this,a),0)};g.ie=function(a){if(!this.ua){var b=this.b;b.info("TRIDENT TEXT ("+this.h+"): "+qj(b,a));hj(this);lj(this,a);dj(this)}};g.lc=function(a){pj(t(this.he,this,a),0)};g.he=function(a){this.ua||(this.b.info("TRIDENT TEXT ("+this.h+"): "+a?"success":"failure"),ij(this),this.V=a,this.g.nb(this),this.g.U(4))};g.cancel=function(){this.ua=!0;ij(this)};
function dj(a){a.Xb=v()+a.o;rj(a,a.o)}function rj(a,b){if(null!=a.Ma)throw Error("WatchDog timer not null");a.Ma=pj(t(a.de,a),b)}function hj(a){a.Ma&&(m.clearTimeout(a.Ma),a.Ma=null)}g.de=function(){this.Ma=null;var a=v();0<=a-this.Xb?(this.b.info("TIMEOUT: "+this.J),2!=this.Ja&&this.g.U(3),ij(this),this.ra=2,Y(),mj(this)):rj(this,this.Xb-a)};function mj(a){a.g.Cc()||a.ua||a.g.nb(a)}
function ij(a){hj(a);wc(a.mb);a.mb=null;a.p.stop();a.k.removeAll();if(a.C){var b=a.C;a.C=null;sj(b);b.dispose()}a.W&&(a.W=null)}function lj(a,b){try{a.g.Dc(a,b),a.g.U(4)}catch(c){}};function tj(){}function kj(a,b,c,d){a.info("XMLHTTP TEXT ("+b+"): "+qj(a,c)+(d?" "+d:""))}function uj(a,b){a.info(b)}tj.prototype.info=function(){};function qj(a,b){if(!b||"y2f%"==b)return b;try{var c=Gd(b);if(c)for(var d=0;d<c.length;d++)if(q(c[d])){var e=c[d];if(!(2>e.length)){var f=e[1];if(q(f)&&!(1>f.length)){var h=f[0];if("noop"!=h&&"stop"!=h)for(var k=1;k<f.length;k++)f[k]=""}}}return S(c)}catch(l){return a.info("Exception parsing expected JS array - probably was not JS"),b}};function vj(a,b,c,d,e){uj(new tj,"TestLoadImageWithRetries: "+e);if(0==d)c(!1);else{var f=e||0;d--;wj(a,b,function(e){e?c(!0):m.setTimeout(function(){vj(a,b,c,d,f)},f)})}}
function wj(a,b,c){var d=new tj;d.info("TestLoadImage: loading "+a);var e=new Image;e.onload=function(){try{d.info("TestLoadImage: loaded"),xj(e),c(!0)}catch(a){}};e.onerror=function(){try{d.info("TestLoadImage: error"),xj(e),c(!1)}catch(a){}};e.onabort=function(){try{d.info("TestLoadImage: abort"),xj(e),c(!1)}catch(a){}};e.ontimeout=function(){try{d.info("TestLoadImage: timeout"),xj(e),c(!1)}catch(a){}};m.setTimeout(function(){if(e.ontimeout)e.ontimeout()},b);e.src=a}
function xj(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function yj(a,b){this.b=a;this.g=b;this.h=new Ii(null,!0)}g=yj.prototype;g.Qb=null;g.K=null;g.ub=!1;g.mc=null;g.tb=null;g.Vb=null;g.Wb=null;g.L=null;g.wa=-1;g.$a=null;g.Za=null;g.connect=function(a){this.Wb=a;a=zj(this.b,this.Wb);Y();this.mc=v();var b=this.b.t;null!=b?(this.$a=b[0],(this.Za=b[1])?(this.L=1,Aj(this)):(this.L=2,Bj(this))):(Jg(a,"MODE","init"),this.K=new Xi(this,this.g,void 0,void 0,void 0),this.K.pa=this.Qb,cj(this.K,a,!1,null,!0),this.L=0)};
function Aj(a){var b=Cj(a.b,a.Za,"/mail/images/cleardot.gif");Lg(b);vj(b.toString(),5E3,t(a.Dd,a),3,2E3);a.U(1)}g.Dd=function(a){if(a)this.L=2,Bj(this);else{Y();var b=this.b;b.b.info("Test Connection Blocked");b.$=b.ma.wa;Dj(b,9)}a&&this.U(2)};
function Bj(a){a.g.info("TestConnection: starting stage 2");var b=a.b.va;if(null!=b)a.g.info("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),Y(),b?(Y(),Ej(a.b,a,!1)):(Y(),Ej(a.b,a,!0));else if(a.K=new Xi(a,a.g,void 0,void 0,void 0),a.K.pa=a.Qb,b=Fj(a.b,a.$a,a.Wb),Y(),!E||Fb(10))Jg(b,"TYPE","xmlhttp"),cj(a.K,b,!1,a.$a,!1);else{Jg(b,"TYPE","html");var c=a.K;a=Boolean(a.$a);c.Ja=3;c.fa=Lg(b.clone());oj(c,a)}}g.Ob=function(a){return this.b.Ob(a)};g.Cc=function(){return!1};
g.Dc=function(a,b){this.wa=a.Ra;if(0==this.L)if(this.g.info("TestConnection: Got data for stage 1"),b){try{var c=this.h.parse(b)}catch(d){Gj(this.b,this);return}this.$a=c[0];this.Za=c[1]}else this.g.info("TestConnection: Null responseText"),Gj(this.b,this);else if(2==this.L)if(this.ub)Y(),this.Vb=v();else if("11111"==b){if(Y(),this.ub=!0,this.tb=v(),c=this.tb-this.mc,!E||Fb(10)||500>c)this.wa=200,this.K.cancel(),this.g.info("Test connection succeeded; using streaming connection"),Y(),Ej(this.b,this,
!0)}else Y(),this.tb=this.Vb=v(),this.ub=!1};
g.nb=function(){this.wa=this.K.Ra;if(!this.K.V)this.g.info("TestConnection: request failed, in state "+this.L),0==this.L?Y():2==this.L&&Y(),Gj(this.b,this);else if(0==this.L)this.g.info("TestConnection: request complete for initial check"),this.Za?(this.L=1,Aj(this)):(this.L=2,Bj(this));else if(2==this.L){this.g.info("TestConnection: request complete for stage 2");var a=!1;(a=!E||Fb(10)?this.ub:200>this.Vb-this.tb?!1:!0)?(this.g.info("Test connection succeeded; using streaming connection"),Y(),Ej(this.b,
this,!0)):(this.g.info("Test connection failed; not using streaming"),Y(),Ej(this.b,this,!1))}};g.pb=function(){return this.b.pb()};g.U=function(a){this.b.U(a)};function Hj(a){Gi.call(this);this.headers=new Bd;this.j=a||null;this.g=!1;this.aa=this.b=null;this.Ta=this.D="";this.i=0;this.k="";this.h=this.Fa=this.t=this.qa=!1;this.o=0;this.R=null;this.kb="";this.ba=this.ec=!1}y(Hj,Gi);var Ij=/^https?$/i,Jj=["POST","PUT"];g=Hj.prototype;
g.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+a);b=b?b.toUpperCase():"GET";this.D=a;this.k="";this.i=0;this.Ta=b;this.qa=!1;this.g=!0;this.b=this.j?Ui(this.j):Ui(Si);this.aa=this.j?this.j.b||(this.j.b=Wi(this.j)):Si.b||(Si.b=Wi(Si));this.b.onreadystatechange=t(this.hc,this);try{Ji(Kj(this,"Opening Xhr")),this.Fa=!0,this.b.open(b,a,!0),this.Fa=!1}catch(e){Ji(Kj(this,"Error opening Xhr: "+e.message));Lj(this,e);return}a=c||
"";var f=this.headers.clone();d&&Df(d,function(a,b){f.set(b,a)});d=Ba(f.ha(),Mj);c=m.FormData&&a instanceof m.FormData;!C(Jj,b)||d||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Df(f,function(a,b){this.b.setRequestHeader(b,a)},this);this.kb&&(this.b.responseType=this.kb);"withCredentials"in this.b&&(this.b.withCredentials=this.ec);try{Nj(this),0<this.o&&(this.ba=E&&F(9)&&ga(this.b.timeout)&&p(this.b.ontimeout),Ji(Kj(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+
this.ba)),this.ba?(this.b.timeout=this.o,this.b.ontimeout=t(this.ic,this)):this.R=Mi(this.ic,this.o,this)),Ji(Kj(this,"Sending request")),this.t=!0,this.b.send(a),this.t=!1}catch(h){Ji(Kj(this,"Send error: "+h.message)),Lj(this,h)}};function Mj(a){return"content-type"==a.toLowerCase()}g.ic=function(){"undefined"!=typeof aa&&this.b&&(this.k="Timed out after "+this.o+"ms, aborting",this.i=8,Kj(this,this.k),X(this,"timeout"),sj(this,8))};
function Lj(a,b){a.g=!1;a.b&&(a.h=!0,a.b.abort(),a.h=!1);a.k=b;a.i=5;Oj(a);Pj(a)}function Oj(a){a.qa||(a.qa=!0,X(a,"complete"),X(a,"error"))}function sj(a,b){a.b&&a.g&&(Kj(a,"Aborting"),a.g=!1,a.h=!0,a.b.abort(),a.h=!1,a.i=b||7,X(a,"complete"),X(a,"abort"),Pj(a))}g.u=function(){this.b&&(this.g&&(this.g=!1,this.h=!0,this.b.abort(),this.h=!1),Pj(this,!0));Hj.w.u.call(this)};g.hc=function(){this.p||(this.Fa||this.t||this.h?Qj(this):this.Nd())};g.Nd=function(){Qj(this)};
function Qj(a){if(a.g&&"undefined"!=typeof aa)if(a.aa[1]&&4==ej(a)&&2==fj(a))Kj(a,"Local request error detected and ignored");else if(a.t&&4==ej(a))Mi(a.hc,0,a);else if(X(a,"readystatechange"),4==ej(a)){Kj(a,"Request complete");a.g=!1;try{var b=fj(a),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var f=Fc(String(a.D))[1]||null;if(!f&&self.location)var h=self.location.protocol,f=h.substr(0,h.length-1);e=!Ij.test(f?
f.toLowerCase():"")}c=e}if(c)X(a,"complete"),X(a,"success");else{a.i=6;var k;try{k=2<ej(a)?a.b.statusText:""}catch(l){k=""}a.k=k+" ["+fj(a)+"]";Oj(a)}}finally{Pj(a)}}}function Pj(a,b){if(a.b){Nj(a);var c=a.b,d=a.aa[0]?ba:null;a.b=null;a.aa=null;b||X(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Nj(a){a.b&&a.ba&&(a.b.ontimeout=null);ga(a.R)&&(m.clearTimeout(a.R),a.R=null)}function ej(a){return a.b?a.b.readyState:0}function fj(a){try{return 2<ej(a)?a.b.status:-1}catch(b){return-1}}
function gj(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Kj(a,b){return b+" ["+a.Ta+" "+a.D+" "+fj(a)+"]"};function Rj(a,b,c){this.o=a||null;this.g=1;this.h=[];this.i=[];this.b=new tj;this.p=new Ii(null,!0);this.t=b||null;this.va=null!=c?c:null}function Sj(a,b){this.b=a;this.map=b;this.da=null}g=Rj.prototype;g.cb=null;g.H=null;g.B=null;g.Lb=null;g.lb=null;g.jc=null;g.qb=null;g.Xa=0;g.jd=0;g.F=null;g.ia=null;g.ca=null;g.xa=null;g.ma=null;g.jb=null;g.Ea=-1;g.qc=-1;g.$=-1;g.Wa=0;g.Ka=0;g.ta=8;var Tj=new Gi;function Uj(a){fi.call(this,"statevent",a)}y(Uj,fi);function Vj(a){fi.call(this,"timingevent",a)}
y(Vj,fi);function Wj(a){fi.call(this,"serverreachability",a)}y(Wj,fi);g=Rj.prototype;g.connect=function(a,b,c,d,e){this.b.info("connect()");Y();this.Lb=b;this.cb=c||{};d&&p(e)&&(this.cb.OSID=d,this.cb.OAID=e);this.b.info("connectTest_()");this.ma=new yj(this,this.b);this.ma.Qb=null;this.ma.h=this.p;this.ma.connect(a)};
g.disconnect=function(){this.b.info("disconnect()");Xj(this);if(3==this.g){var a=this.Xa++,b=this.lb.clone();W(b,"SID",this.j);W(b,"RID",a);W(b,"TYPE","terminate");Yj(this,b);a=new Xi(this,this.b,this.j,a,void 0);a.Ja=2;a.fa=Lg(b.clone());(new Image).src=a.fa;a.Sa=v();dj(a)}Zj(this)};
function Xj(a){if(a.ma){var b=a.ma;b.K&&(b.K.cancel(),b.K=null);b.wa=-1;a.ma=null}a.B&&(a.B.cancel(),a.B=null);a.ca&&(m.clearTimeout(a.ca),a.ca=null);ak(a);a.H&&(a.H.cancel(),a.H=null);a.ia&&(m.clearTimeout(a.ia),a.ia=null)}g.Cc=function(){return 0==this.g};function bk(a){var b=0;a.B&&b++;a.H&&b++;return b}function ck(a){a.H||a.ia||(a.ia=pj(t(a.tc,a),0),a.Wa=0)}
g.tc=function(a){this.ia=null;this.b.info("startForwardChannel_");if(1==this.g){if(!a){this.b.info("open_()");this.Xa=Math.floor(1E5*Math.random());a=this.Xa++;var b=new Xi(this,this.b,"",a,void 0);b.pa=null;var c=dk(this),d=this.lb.clone();W(d,"RID",a);this.o&&W(d,"CVER",this.o);Yj(this,d);aj(b,d,c);this.H=b;this.g=2}}else 3==this.g&&(a?ek(this,a):0==this.h.length?this.b.info("startForwardChannel_ returned: nothing to send"):this.H||(ek(this),this.b.info("startForwardChannel_ finished, sent request")))};
function ek(a,b){var c,d;b?6<a.ta?(a.h=a.i.concat(a.h),a.i.length=0,c=a.Xa-1,d=dk(a)):(c=b.h,d=b.Ga):(c=a.Xa++,d=dk(a));var e=a.lb.clone();W(e,"SID",a.j);W(e,"RID",c);W(e,"AID",a.Ea);Yj(a,e);c=new Xi(a,a.b,a.j,c,a.Wa+1);c.pa=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.H=c;aj(c,e,d)}function Yj(a,b){if(a.F){var c=a.F.Lc(a);c&&Df(c,function(a,c){W(b,c,a)})}}
function dk(a){var b=Math.min(a.h.length,1E3),c=["count="+b],d;6<a.ta&&0<b?(d=a.h[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.h[e].b,h=a.h[e].map,f=6>=a.ta?e:f-d;try{Df(h,function(a,b){c.push("req"+f+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+f+"_type="+encodeURIComponent("_badmap"))}}a.i=a.i.concat(a.h.splice(0,b));return c.join("&")}function fk(a){a.B||a.ca||(a.k=1,a.ca=pj(t(a.xc,a),0),a.Ka=0)}
function gk(a){if(a.B||a.ca||3<=a.Ka)return!1;a.b.info("Going to retry GET");a.k++;a.ca=pj(t(a.xc,a),hk(a,a.Ka));a.Ka++;return!0}
g.xc=function(){this.ca=null;this.b.info("Creating new HttpRequest");this.B=new Xi(this,this.b,this.j,"rpc",this.k);this.B.pa=null;this.B.Kb=0;var a=this.jc.clone();W(a,"RID","rpc");W(a,"SID",this.j);W(a,"CI",this.jb?"0":"1");W(a,"AID",this.Ea);Yj(this,a);if(!E||Fb(10))W(a,"TYPE","xmlhttp"),cj(this.B,a,!0,this.qb,!1);else{W(a,"TYPE","html");var b=this.B,c=Boolean(this.qb);b.Ja=3;b.fa=Lg(a.clone());oj(b,c)}this.b.info("New Request created")};
function Ej(a,b,c){a.b.info("Test Connection Finished");a.jb=c;a.$=b.wa;a.b.info("connectChannel_()");a.Cd(1,0);a.lb=zj(a,a.Lb);ck(a)}function Gj(a,b){a.b.info("Test Connection Failed");a.$=b.wa;Dj(a,2)}
g.Dc=function(a,b){if(0!=this.g&&(this.B==a||this.H==a))if(this.$=a.Ra,this.H==a&&3==this.g)if(7<this.ta){var c;try{c=this.p.parse(b)}catch(d){c=null}if(q(c)&&3==c.length){var e=c;if(0==e[0])t:if(this.b.info("Server claims our backchannel is missing."),this.ca)this.b.info("But we are currently starting the request.");else{if(this.B)if(this.B.Sa+3E3<this.H.Sa)ak(this),this.B.cancel(),this.B=null;else break t;gk(this);Y()}else this.qc=e[1],c=this.qc-this.Ea,0<c&&(e=e[2],this.b.info(e+" bytes (in "+
c+" arrays) are outstanding on the BackChannel"),37500>e&&this.jb&&0==this.Ka&&!this.xa&&(this.xa=pj(t(this.ed,this),6E3)))}else this.b.info("Bad POST response data returned"),Dj(this,11)}else"y2f%"!=b&&(this.b.info("Bad data returned - missing/invald magic cookie"),Dj(this,11));else if(this.B==a&&ak(this),!/^[\s\xa0]*$/.test(b))for(c=this.p.parse(b),q(c),e=0;e<c.length;e++){var f=c[e];this.Ea=f[0];f=f[1];2==this.g?"c"==f[0]?(this.j=f[1],this.qb=f[2],f=f[3],null!=f?this.ta=f:this.ta=6,this.g=3,this.F&&
this.F.oc(this),this.jc=Fj(this,this.qb,this.Lb),fk(this)):"stop"==f[0]&&Dj(this,7):3==this.g&&("stop"==f[0]?Dj(this,7):"noop"!=f[0]&&this.F&&this.F.nc(this,f),this.Ka=0)}};g.ed=function(){null!=this.xa&&(this.xa=null,this.B.cancel(),this.B=null,gk(this),Y())};function ak(a){null!=a.xa&&(m.clearTimeout(a.xa),a.xa=null)}
g.nb=function(a){this.b.info("Request complete");var b;if(this.B==a)ak(this),this.B=null,b=2;else if(this.H==a)this.H=null,b=1;else return;this.$=a.Ra;if(0!=this.g)if(a.V)1==b?(v(),X(Tj,new Vj(Tj)),ck(this),this.i.length=0):fk(this);else{var c=a.ra;if(3==c||7==c||0==c&&0<this.$)this.b.info("Not retrying due to error type");else{this.b.info("Maybe retrying, last error: "+Yi(c,this.$));var d;if(d=1==b)this.H||this.ia?d=!1:1==this.g||2<=this.Wa?d=!1:(this.b.info("Going to retry POST"),this.ia=pj(t(this.tc,
this,a),hk(this,this.Wa)),this.Wa++,d=!0);if(d||2==b&&gk(this))return;this.b.info("Exceeded max number of retries")}this.b.info("Error: HTTP request failed");switch(c){case 1:Dj(this,5);break;case 4:Dj(this,10);break;case 3:Dj(this,6);break;case 7:Dj(this,12);break;default:Dj(this,2)}}};function hk(a,b){var c=5E3+Math.floor(1E4*Math.random());a.F||(a.b.info("Inactive channel"),c*=2);return c*b}g.Cd=function(a){if(!C(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};
function Dj(a,b){a.b.info("Error code "+b);if(2==b||9==b){var c=null;a.F&&(c=null);var d=t(a.Ed,a);c||(c=new wg("//www.google.com/images/cleardot.gif"),Lg(c));wj(c.toString(),1E4,d)}else Y();ik(a,b)}g.Ed=function(a){a?(this.b.info("Successfully pinged google.com"),Y()):(this.b.info("Failed to ping google.com"),Y(),ik(this,8))};function ik(a,b){a.b.info("HttpChannel: error - "+b);a.g=0;a.F&&a.F.uc(a,b);Zj(a);Xj(a)}
function Zj(a){a.g=0;a.$=-1;if(a.F)if(0==a.i.length&&0==a.h.length)a.F.Tb(a);else{a.b.info("Number of undelivered maps, pending: "+a.i.length+", outgoing: "+a.h.length);var b=Ka(a.i),c=Ka(a.h);a.i.length=0;a.h.length=0;a.F.Tb(a,b,c)}}function zj(a,b){var c=Cj(a,null,b);a.b.info("GetForwardChannelUri: "+c);return c}function Fj(a,b,c){b=Cj(a,a.pb()?b:null,c);a.b.info("GetBackChannelUri: "+b);return b}
function Cj(a,b,c){var d=c instanceof wg?c.clone():new wg(c,void 0);if(""!=d.Na)b&&yg(d,b+"."+d.Na),zg(d,d.fb);else var e=window.location,d=Mg(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.cb&&Df(a.cb,function(a,b){W(d,b,a)});W(d,"VER",a.ta);Yj(a,d);return d}g.Ob=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Hj;a.ec=!1;return a};
function pj(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}g.U=function(){X(Tj,new Wj(Tj))};function Y(){X(Tj,new Uj(Tj))}g.pb=function(){return!(!E||Fb(10))};function jk(){}g=jk.prototype;g.oc=function(){};g.nc=function(){};g.uc=function(){};g.Tb=function(){};g.Lc=function(){return{}};function kk(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.Bc=a.user||"")}g=kk.prototype;g.id="";g.name="";g.app="";g.type="REMOTE_CONTROL";g.Bc="";g.equals=function(a){return a?this.id==a.id:!1};function lk(a,b){this.action=a;this.params=b||null};function mk(){this.o=new M;vc(this,u(wc,this.o))}y(mk,uc);mk.prototype.I=function(a,b,c){return this.p?0:this.o.I(a,b,c)};mk.prototype.Aa=function(a,b,c){return this.p?!1:this.o.Aa(a,b,c)};mk.prototype.ka=function(a){return this.p?!1:this.o.ka(a)};mk.prototype.q=function(a,b){return this.p?!1:this.o.q.apply(this.o,arguments)};function nk(a,b){Ki.call(this);if(ha(a))b&&(a=t(a,b));else if(a&&ha(a.handleEvent))a=t(a.handleEvent,a);else throw Error("Invalid listener argument");this.o=a;wi(this,"tick",t(this.k,this));this.stop();Li(this,5E3+2E4*Math.random())}y(nk,Ki);nk.prototype.j=0;nk.prototype.k=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Li(this,a)}this.o()};nk.prototype.start=function(){nk.w.start.call(this);this.j=v()+this.b};nk.prototype.stop=function(){this.j=0;nk.w.stop.call(this)};function ok(a,b){this.p=a;this.j=b;this.h=new M;this.g=new nk(this.fd,this);this.b=null}y(ok,jk);g=ok.prototype;g.ob="";g.ab=0;g.xb=0;g.Pb=function(){};g.I=function(a,b,c){return this.h.I(a,b,c)};g.Aa=function(a,b,c){return this.h.Aa(a,b,c)};g.ka=function(a){return this.h.ka(a)};g.q=function(a,b){return this.h.q.apply(this.h,arguments)};
g.connect=function(a,b,c){if(!this.b||2!=this.b.g){this.ob="";this.g.stop();this.i=a||null;this.ab=b||0;a=this.p+"/test";b=this.p+"/bind";var d=new Rj("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.F=null);d.F=this;this.b=d;e?(3!=e.g&&0==bk(e)||this.Pb("Unexpected state on old channel when reconnecting: "+e.g),this.b.connect(a,b,this.j,e.j,e.Ea)):c?this.b.connect(a,b,this.j,c.sessionId,c.arrayId):this.b.connect(a,b,this.j)}};
g.disconnect=function(a){this.xb=a||0;this.g.stop();this.b&&0!=this.b.g&&this.b.disconnect();this.xb=0};g.sendMessage=function(a,b){if(!this.b||0==this.b.g||2!=this.b.g&&3!=this.b.g&&!this.g.ja)this.Pb("Ignoring message: "+a);else{var c={_sc:a};b&&fb(c,b);var d=this.b;if(0==d.g)throw Error("Invalid operation: sending map when state is closed");1E3==d.h.length&&S(c);d.h.push(new Sj(d.jd++,c));2!=d.g&&3!=d.g||ck(d)}};
g.oc=function(){var a=this.g;a.stop();Li(a,5E3+2E4*Math.random());this.i=null;this.ab=0;this.q("handlerOpened")};g.uc=function(a,b){var c=2==b&&401==this.b.$;4==b||c||(6==b&&(c=this.g,c.stop(),Li(c,500)),this.g.start());this.q("handlerError",b)};g.Tb=function(){this.g.ja||this.q("handlerClosed")};g.Lc=function(){var a={v:2};this.ob&&(a.gsessionid=this.ob);0!=this.ab&&(a.ui=""+this.ab);0!=this.xb&&(a.ui=""+this.xb);this.i&&fb(a,this.i);return a};
g.nc=function(a,b){"S"==b[0]?this.ob=b[1]:this.h.q("handlerMessage",new lk(b[0],b[1]))};function pk(a,b){(a.j.loungeIdToken=b)||a.g.stop()}g.fd=function(){this.g.stop();0!=bk(this.b)?this.g.start():this.connect(this.i,this.ab)};function qk(a,b){ok.call(this,a,b)}y(qk,ok);qk.prototype.Pb=function(){};function rk(){this.b=[];this.index=-1;sk(this)}function sk(a){a.volume=-1;a.muted=!1;a.i=null;a.g=-1;a.h=null;v()}function Z(a){return a.b[a.index]}function tk(a,b){var c=a.index;a.index=xa(a.b,b);c!=a.index&&sk(a)}function uk(a,b,c){c=c||Z(a);if(Qa(a.b,b)&&c==Z(a))return!1;a.b=Ka(b);tk(a,c);return!0}rk.prototype.add=function(a,b){return a&&!C(this.b,a)?(!b||-1<this.index&&this.index>=this.b.length-1?this.b.push(a):this.b.splice(this.index+1,0,a),!0):!1};
rk.prototype.remove=function(a){var b=Z(this);return Ha(this.b,a)?(this.index=xa(this.b,b),!0):!1};function vk(){mk.call(this);this.X=jf(wf());this.log_("Initializing local screens: "+$e(this.X));this.wb=[];this.Ub=null;this.g=[];this.b=[];this.yb(qg());this.log_("Initializing DIAL devices: "+ye(this.b));var a=jf(xf());wk(this,a);this.log_("Initializing online screens: "+$e(this.g));N("yt-remote-cast-device-list-update",this.yb,this);N("yt-remote-cast-device-status-update",this.od,this);this.Yb();a=t(this.Yb,this);ha(a)&&(a=kc(a));window.setInterval(a,1E4)}y(vk,mk);
var xk=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g=vk.prototype;g.eb=NaN;g.log_=function(a){fg(Nf,"RM",a)};function yk(a){var b=navigator.userAgent;if(0<=b.search("MSIE")&&(b=b.match(/MSIE ([\d.]+)/)[1],0>va(b,"10.0")))return a;b=Fc(document.location.href);return Dc("https",b[3],a)}g.q=function(a,b){if(this.p)return!1;this.log_("Firing "+a);return this.o.q.apply(this.o,arguments)};g.Yb=function(){var a=qg();Da(a)||this.yb(a);a=zk(this);Da(a)||(V("yt-remote-lounge-token-expiration")?Ak(this,a):Bk(this))};
g.vb=function(){var a=zk(this),b=ya(a,function(a){return!!mf(this.g,a)},this);wk(this,b);this.yb(qg());this.q("managedScreenChange",a)};function Ck(a,b){return ya(b,function(a){return a.M?(a=gf(this.b,a.M),!!a&&"RUNNING"==a.status):!0},a)}
g.yb=function(a){var b=!1;A(a,function(a){var c=nf(this.X,a.id);c&&c.name!=a.name&&(this.log_("Renaming screen id "+c.id+" from "+c.name+" to "+a.name),c.name=a.name,b=!0)},this);b&&(this.log_("Renaming due to DIAL."),Dk(this));yf(df(a));var c=!Qa(this.b,a,ff);c&&this.log_("Updating DIAL devices: "+ye(this.b)+" to "+ye(a));this.b=a;wk(this,this.g);c&&this.q("onlineReceiverChange")};
g.od=function(a){var b=gf(this.b,a.id);b&&(this.log_("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.activityId+" to activityId: "+a.activityId),b.activityId=a.activityId,b.status=a.status,yf(df(this.b)));wk(this,this.g)};function wk(a,b,c){b=Ck(a,b);var d=!Qa(a.g,b,lf);!d&&!c||Da(b)||(c=hf(b),T("yt-remote-online-screens",c,60));d&&(a.log_("Updating online screens: "+$e(a.g)+" -> "+$e(b)),a.g=b,a.q("onlineReceiverChange"))}
function Ak(a,b){var c=[],d={};A(b,function(a){a.T&&(d[a.T]=a,c.push(a.T))});var e={method:"POST",ea:{lounge_token:c.join(",")},da:a,onSuccess:function(a,b){var c=[];A(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Ub?Ek(this,this.Ub):null;e&&!mf(c,e)&&c.push(e);wk(this,c,!0)}};Xd(yk("/api/lounge/pairing/get_screen_availability"),e)}
function Bk(a){var b=zk(a),c=B(b,function(a){return a.P});Da(c)||(a.log_("Updating lounge tokens for: "+S(c)),Xd(yk("/api/lounge/pairing/get_lounge_token_batch"),{ea:{screen_ids:c.join(",")},method:"POST",da:a,onSuccess:function(a,c){Fk(this,c.screens||[]);this.X=ya(this.X,function(a){return!!a.T});Dk(this);Ak(this,b)}}))}function Fk(a,b){A(Ja(a.X,a.wb),function(a){var d=Ba(b,function(b){return a.P==b.screenId});d&&(a.T=d.loungeToken)})}
function Dk(a){var b=jf(wf());Qa(a.X,b,lf)||(a.log_("Saving local screens: "+$e(b)+" to "+$e(a.X)),vf(hf(a.X)),a.vb())}function Gk(a,b,c){var d=Ca(b,function(a){return kf(c,a)}),e=0>d?!0:!1;0>d?b.push(c):b[d]=c;mf(a.g,c)||a.g.push(c);return e}
g.wc=function(a,b,c){var d=!1;b>=xk.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=gf(this.b,a);if(!e)this.log_("Pairing DIAL device "+a+" with "+c+" failed: no device for "+a),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.log_("Pairing DIAL device "+a+" with "+c+" failed: launch error on "+a),d=!0;d?(Hk(this),this.q("screenPair",null)):Xd(yk("/api/lounge/pairing/get_screen"),{method:"POST",ea:{pairing_code:c},da:this,onSuccess:function(a,b){Hk(this);
var d=new Ye(b.screen);d.name=e.name;d.M=e.id;var l=Gk(this,this.X,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Ze(d));Dk(this);this.q("screenPair",d);this.log_("Pairing "+c+" succeeded.");this.q("screenPair",d)},onError:function(){this.log_("Polling pairing code: "+c);lc(this.eb);this.eb=J(t(this.wc,this,a,b+1,c),xk[b])}})};function Ik(a,b,c,d,e){Hk(a);gf(a.b,b)?(c||(c=af(),ug(b,c,d,e)),a.eb=J(t(a.wc,a,b,0,c),xk[0])):a.log_("No DIAL device with id: "+b)}
function Hk(a){lc(a.eb);a.eb=NaN}function Ek(a,b){var c=nf(zk(a),b);a.log_("Found screen: "+Ze(c)+" with key: "+b);return c}function Jk(a,b){var c=nf(a.g,b);a.log_("Found online screen: "+Ze(c)+" with key: "+b);return c}function Kk(a,b){var c=gf(a.b,b);if(!c){var d=nf(a.X,b);d&&(c=gf(a.b,d.M))}a.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+b);return c}function zk(a){return Ja(a.wb,ya(a.X,function(a){return!mf(this.wb,a)},a))}
function Lk(a){var b=yk("/api/lounge/screens");Xd(b,{method:"GET",da:a,withCredentials:!0,onSuccess:function(a,b){this.wb=B(Za(b),function(a){return new Ye(a)});this.log_("Load account screens successfully.");this.Yb();this.vb();this.q("accountScreenLoad")},onError:function(){fg(Mf,"RM","Load account screens failed.")}})};function Mk(a,b){mk.call(this);Te&&Te.h();of();Rf("goog.net.BrowserChannel");this.h=new vk;var c=qf();this.i=new qk("/api/lounge/bc",{device:"REMOTE_CONTROL",id:c,name:a,app:b});this.b=null;this.t=[];this.i.I("handlerOpened",this.nd,this);this.i.I("handlerClosed",this.kd,this);this.i.I("handlerError",this.ld,this);this.i.I("handlerMessage",this.md,this);this.h.I("managedScreenChange",this.vb,this);this.log_("Initializing with device id = "+c+", name = "+a+", app = "+b)}y(Mk,mk);g=Mk.prototype;
g.Ia=NaN;g.Rb=NaN;g.Hb=NaN;g.log_=function(a){fg(Nf,"RC",a)};function Nk(a){var b=rf();return b?Ek(a.h,b):null}function Ok(a,b){"connectionError"==b&&Ve("yt-remote-session-screen-id");a.log_("Firing "+b);a.q(b,"connectionOpened"==b);a.D=null}function Pk(a){lc(a.Hb);a.Hb=J(t(function(){this.q("playlistChange");this.Hb=NaN},a),2E3)}function Qk(a,b){"playerChange"==b&&isNaN(NaN)&&a.q("playerChange");"playlistChange"==b&&isNaN(a.Hb)&&a.q("playlistChange")}
function Rk(a,b){b?(a.log_("Changing current screen id from: "+a.j+" to "+b.P),a.j=b.P,pk(a.i,b.T)):(a.log_("Removing current screen id: "+a.j),a.j="",pk(a.i,""))}g.connect=function(a){this.log_("Connecting to the receiver: "+S(a));var b=Jk(this.h,a.key);b?Sk(this,b):(a=Kk(this.h,a.key))?Tk(this,a):J(t(function(){Ok(this,"connectionError")},this),0)};function Uk(a){a=a||0;5>=a&&(a=0);return a}
function Sk(a,b){a.log_("Connecting to screen: "+Ze(b));var c=Nk(a);c&&!kf(b,c)?a.disconnect():Vk(a);a.b=null;Rk(a,b);c={};if(a.g){c.videoIds=Z(a.g);c.videoId=Z(a.g);var d=a.D?a.D.currentTime:a.g.b();c.currentTime=Uk(d)}cb(c)?a.log_("Connecting with empty params"):a.log_("Connecting with setPlaylist and params: "+S(c));a.g?Af(Z(a.g),""):Af("","");a.i.connect(cb(c)?{}:{method:"setPlaylist",params:S(c)},1,V("yt-remote-session-browser-channel"));a.b=new rk;cb(c)||(a.b.b=c.videoIds.split(","),tk(a.b,
c.videoId));Wk(a)}function Tk(a,b){a.log_("Connecting to DIAL device: "+(b?b.toString():"null"));Xk(a);Yk(a);var c=a.D?a.D.pairingCode:"";c?Ik(a.h,b.id,c):a.g?Ik(a.h,b.id,"",Z(a.g),a.g.b()):Ik(a.h,b.id,"");a.k=b.id;a.h.I("screenPair",a.sc,a)}g.sc=function(a){this.log_("Paired with a DIAL screen: "+Ze(a));Xk(this);a?Sk(this,a):(this.k="",Ok(this,"connectionError"))};g.disconnect=function(){this.log_("Disconnecting with user intent.");Yk(this);Bf();this.i.disconnect(1)};
function Zk(a){return Ba(a.t,function(a){return"REMOTE_CONTROL"==a.type})}function Yk(a){Hk(a.h);var b=Zk(a);b?(a.log_("Did not stop DIAL device, because another remote is connected: "+S(b?{id:b.id,name:b.name,app:b.app,type:b.type,user:b.Bc}:null)),a.k=""):(b=a.j?Ek(a.h,a.j):null,a.k?(a.log_("Stopping DIAL device: "+a.k),vg(a.k),a.k=""):b&&b.M&&(a.log_("Stopping DIAL device: "+b.M),vg(b.M)))}function Vk(a){a.log_("Disconnecting from screen.");a.i.disconnect(2)}
function $k(a,b,c){c?a.log_("Sending: action="+b+", params="+S(c)):a.log_("Sending: action="+b);isNaN(al(a))?a.i.sendMessage(b,c):a.log_("Action = "+b+" was ignored due to reconnecting.")}function bl(a,b,c,d,e){e=Uk(e);$k(a,"setPlaylist",{videoIds:c.join(","),videoId:b,videoSources:B(c,function(){return d}),currentTime:e});v();uk(a.b,c,b);Pk(a)}g.kc=function(){$k(this,"getNowPlaying")};function cl(a){a=a.i.b;return!!a&&3==a.g}
function Wk(a){dl(a);a.Ia=J(t(function(){dl(this);Rk(this,null);this.k="";this.b=null;this.log_("Connecting timeout");Ok(this,"connectionError");Bf();this.i.disconnect(1)},a),1E4)}function dl(a){lc(a.Ia);a.Ia=NaN}function el(a){lc(a.Rb);a.Rb=NaN}function Xk(a){a.h.Aa("screenPair",a.sc,a)}
g.nd=function(){this.log_("Channel opened");var a=this.j;T("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!this.i.b.jb,sessionId:this.i.b.j,arrayId:this.i.b.Ea});T("yt-remote-session-screen-id",a);var a=pf(),b=qf();C(a,b)||a.push(b);tf(a);of();if(this.g)if(this.g.p()&&!this.g.g())this.log_("Wait for playlist data to be loaded.");else{var c=V("yt-remote-session-video-id"),d=V("yt-remote-session-list-id"),a=Z(this.g),e=this.g.g();Af(a,e);this.log_("Watch context changed: videoId from "+
c+" to "+a+" listId from "+d+" to "+e);var f=!1,b=!1;a&&a!=c&&(f=!0);e&&e!=d&&(b=!0);f?(c=this.g.i()[this.g.j()],d=this.g.b(),b?bl(this,a,this.g.h(),c,d):(b=Uk(d),this.b.add(a,!0)&&$k(this,"insertVideo",{videoId:a,videoSource:c}),v(),tk(this.b,a),Pk(this),b=Math.floor(b),$k(this,"setVideo",{currentTime:b,videoId:a}))):b&&(a=this.g.h(),b=this.g.i(),$k(this,"updatePlaylist",{videoIds:a.join(","),videoSources:b.join(",")}),uk(this.b,a),Pk(this))}};
function fl(a){Bf(!0);el(a);a.h.Ub=null;Rk(a,null);a.k=""}g.kd=function(){this.log_("Channel closed");var a=!!this.j&&isNaN(this.Ia);fl(this);a&&Ok(this,"connectionClosed")};g.ld=function(a){isNaN(al(this))?this.log_("Channel error: "+a+" without reconnection"):this.log_("Channel error: "+a+" with reconnection in "+al(this)+" ms");!isNaN(al(this))||fl(this);dl(this);Ok(this,"connectionError")};
function gl(a,b){switch(b.action){case "loungeStatus":var c=Fd(b.params.devices);a.t=B(c,function(a){return new kk(a)});break;case "loungeScreenDisconnected":Ia(a.t,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new kk(Fd(b.params.device));Ba(a.t,function(a){return a.equals(d)})||Ga(a.t,d);break;case "remoteDisconnected":d=new kk(Fd(b.params.device)),Ia(a.t,function(a){return a.equals(d)})}}
function hl(a,b){var c=!1;if("loungeStatus"==b.action)c=!!Ba(a.t,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;c!=(cl(a)&&!!a.j&&isNaN(a.Ia))&&(c?(dl(a),Ok(a,"connectionOpened"),a.kc()):a.disconnect())}function al(a){return a.i.g.ja?a.i.g.j-v():NaN}
g.md=function(a){a.params?this.log_("Received: action="+a.action+", params="+S(a.params)):this.log_("Received: action="+a.action);gl(this,a);hl(this,a);if(cl(this)&&this.j&&isNaN(this.Ia)){var b=!1,c=!1,d,e,f,h,k,l,r;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,p(a.params.currentError)&&(r=Fd(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==
Z(this.b)&&(delete a.params.videoId,cb(a.params)?this.b.i=null:this.b.i=a.params,Qk(this,"playerChange"));else if(Z(this.b)||'"onStateChange"'!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d?d!=Z(this.b)&&(b=!0):d=Z(this.b):(tk(this.b,""),b=!0),e&&(e=e.split(","),uk(this.b,e,d)&&(b=!0))):(uk(this.b,[]),b=!0),this.b.add(d)&&$k(this,"getPlaylist"),d&&tk(this.b,d),b&&Qk(this,"playlistChange"),p(f)&&(b=parseInt(f,10),
b=isNaN(b)?-1:b,-1==b&&-1E3==this.b.g&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.b.g,this.b.g=b,d=null,-1E3==b&&(d=this.b.h||"unknown",r&&(d=r.reason||d)),c=c||this.b.h!=d,this.b.h=d,1==this.b.g?(el(this),this.Rb=J(t(this.kc,this),2E4)):el(this)),"onError"!=a.action||-1!=this.b.g&&-1E3!=this.b.g||(a=Fd(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Z(this.b)&&(this.b.g=-1E3,this.b.h=a[0].reason||"unknown",c=!0)),h&&(v(),c=!0),p(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.b.volume!=
b,this.b.volume=b),p(l)&&(l="true"==l,c=c||this.b.muted!=l,this.b.muted=l)),c&&Qk(this,"playerChange")}};g.vb=function(){!this.j||this.j&&Ek(this.h,this.j)?Nk(this)||Bf():(this.log_("Dropping current screen with id: "+this.j),this.disconnect(),this.b=null)};function il(){Mk.call(this,"Desktop","youtube-desktop");L(window,"unload",t(this.R,this));L(window,"beforeunload",t(this.R,this))}y(il,Mk);da(il);il.prototype.R=function(){Vk(this)};var jl=null,kl=NaN;function ll(){Da(xf())&&Da(zf())||ml();var a;if(V("yt-remote-delayed-connect-key"))a=!0;else{a=rf();var b=jf(xf());a=!!nf(b,a)}a&&(a=jl,"html5"!=a.getPlayerType()&&a.writePlayer("html5"))}
function nl(a){var b=ei();if(bf(b,a)&&(b=jl,"html5"!=b.getPlayerType())){var c=b.getVideoData().video_id,d=b.getCurrentTime(),e=il.getInstance(),d=Uk(d),f={key:a,videoId:c,currentTime:d};e.log_("Setting the delayed connect data: "+S(f));!Jk(e.h,a)&&(a=Kk(e.h,a))&&(e=af(),f.pairingCode=e,ug(a.id,e,c,d));T("yt-remote-delayed-connect-key",f);b.writePlayer("html5")}}function ml(){var a=jl;a.updateRemoteReceivers&&a.updateRemoteReceivers(ei())};var ol={},pl=0;function ql(a){if(a){var b=new Image,c=""+pl++;ol[c]=b;b.onload=b.onerror=function(){delete ol[c]};b.src=a;b=eval("null")}};function rl(){var a=sl().tick,b=sl().span,c=sl().info,d=n("yt.timing.reportbuilder_");if(d){if(d=d.apply(null,[a,b,c,void 0]))tl(d),ul()}else{var d={v:2,s:"youtube",action:I("TIMING_ACTION")},e=I("TIMING_INFO")||{},f;for(f in e)c[f]=e[f];f=c.srt;delete c.srt;if(!f&&0!==f)try{var h=(window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance).timing;f=h.responseStart-h.navigationStart}catch(k){c.pt&&(f=c.pt)}if(f||0===f)c.srt=f;a.aft||(a.aft=a.vr&&a.cl&&a.cl>a.vr?a.cl:
a.vr?a.vr:a.ol);a.aft&&a.plev&&(a.aft=Math.min(a.aft,a.plev));a.vr&&a.gv&&(b.vl=Math.round(a.vr-a.gv));for(var l in c)"_"!=l.charAt(0)&&(d[l]=c[l]);c={};h=[];l=a._start;for(var r in a)"_"!=r.charAt(0)&&(f=Math.max(Math.round(a[r]-l),0),c[r]=f,h.push(r+"."+f));d.rt=h.join(",");a={};r=[];for(var K in b)"_"!=K.charAt(0)&&(a[K]=b[K],r.push(K+"."+b[K]));d.it=r.join(",");tl(d);(b=n("ytdebug.logTiming"))&&b(d,c,a);ul()}}
function tl(a){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];ql(b+"?"+c.substring(1))}function sl(){return n("ytcsi.data_")||ul()}function ul(){var a={tick:{},span:{},info:{}};w("ytcsi.data_",a);return a};var vl;var wl=mb(),xl=wl.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!xl||2>xl.length)vl=void 0;else{var yl=wl.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);vl=yl&&6==yl.length?Number(yl[5].replace("_",".")):0}0<=vl&&0<=mb().search("Safari")&&mb().search("Version");function zl(a){return 24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null}
function Al(a,b){var c=I("CONVERSION_CONFIG_DICT");if(c){if(s(b)){var d=zl(b);if(c.uid!=d)return}var e="followon_"+a;if(c.baseUrl&&c.uid){var f=c.rmktEnabled,d=c.focEnabled&&!c.isAd;if(f||d){e={label:d?e:"default"};if(f){f={utuid:c.uid,type:a};c.vid&&(f.utvid=c.vid);c.eventLabel&&(f.el=c.eventLabel);c.playerStyle&&(f.ps=c.playerStyle);c.feature&&(f.feature=c.feature);c.ppe&&(f.ppe=c.ppe);var h,k=[];for(h in f)k.push(encodeURIComponent(h)+"="+encodeURIComponent(f[h]));h=k.join(";");e.data=h}d&&"view"==
a&&c.vid&&c.uid&&(c.oeid||c.ieid)&&(c.oeid&&(e.oeid=c.oeid),c.ieid&&(e.ieid=c.ieid),e.evid=c.vid);d&&(e.foc_id=c.uid);c=Ic(Lc([c.baseUrl],e))}else c=null}else c=null;c&&ql(c)}};function Bl(a){return(0==a.search("cue")||0==a.search("load"))&&"loadModule"!=a}function Cl(a,b,c){s(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 Dl(a)}
function Dl(a,b,c){if(ia(a)){b="autoplayToken endSeconds startSeconds mediaContentUrl suggestedQuality videoId".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 El(a,b,c,d){if(ia(a)&&!q(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}c={index:b,startSeconds:c,suggestedQuality:d};s(a)&&16==a.length?c.list="PL"+a:c.playlist=a;return c};function Fl(a,b){this.source=null;this.i=a||null;this.origin="*";this.o=window.document.location.protocol+"//"+window.document.location.hostname;this.p=b;this.h=this.b=this.g=this.j=null;L(window,"message",t(this.k,this))}
Fl.prototype.k=function(a){var b=this.p||I("POST_MESSAGE_ORIGIN")||this.o;if("*"==b||a.origin==b)if(!this.i||a.source==this.i)if(this.source=a.source,this.origin="null"==a.origin?this.origin:a.origin,a=a.data,s(a)){try{a=Fd(a)}catch(c){return}this.j=a.id;switch(a.event){case "listening":this.b&&(this.b(),this.b=null);break;case "command":this.g&&(this.h&&!C(this.h,a.func)||this.g(a.func,a.args))}}};Fl.prototype.sendMessage=function(a){this.source&&(a.id=this.j,a=S(a),this.source.postMessage(a,this.origin))};function Gl(){var a=this.g=new Fl,b=t(this.xd,this);a.g=b;a.h=null;this.h=[];this.o=!1;this.k=(a=I("POST_MESSAGE_ORIGIN"))&&Sg(a)?a:null;this.i={}}g=Gl.prototype;g.xd=function(a,b){if(this.k&&this.k!=this.g.origin)this.dispose();else if("addEventListener"==a&&b){var c=b[0];this.i[c]||"onReady"==c||(this.addEventListener(c,Hl(this,c)),this.i[c]=!0)}else this.Ac(a,b)};g.Ac=function(){};function Hl(a,b){return t(function(a){this.sendMessage(b,a)},a)}g.addEventListener=function(){};
g.pd=function(){this.o=!0;this.sendMessage("initialDelivery",this.Zb());this.sendMessage("onReady");A(this.h,this.Ec,this);this.h=[]};g.Zb=function(){return null};function Il(a,b){a.sendMessage("infoDelivery",b)}g.Ec=function(a){this.o?this.g.sendMessage(a):this.h.push(a)};g.sendMessage=function(a,b){this.Ec({event:a,info:void 0==b?null:b})};g.dispose=function(){this.g=null};function Jl(a){Gl.call(this);this.b=a;this.j={};this.p={};this.b.addEventListener("onReady",t(this.qd,this));this.b.addEventListener("onVideoProgress",t(this.vd,this));this.b.addEventListener("onVolumeChange",t(this.wd,this));this.b.addEventListener("onApiChange",t(this.rd,this));this.b.addEventListener("onPlaybackQualityChange",t(this.sd,this));this.b.addEventListener("onPlaybackRateChange",t(this.td,this));this.b.addEventListener("onStateChange",t(this.ud,this))}y(Jl,Gl);
function Kl(a,b){var c=Ug(b.video_id||b.videoId);c&&(b.autoplayToken=c);Ya(a.j,function(a,c){if(b[c]){var f=this.p[a];f&&(b[a]=f)}},a)}g=Jl.prototype;
g.Ac=function(a,b){if(this.b[a]){b=b||[];if(0<b.length&&Bl(a)){var c;c=b;if(ia(c[0])&&!q(c[0]))c=c[0];else{var d={};switch(a){case "loadVideoById":case "cueVideoById":d=Dl.apply(window,c);break;case "loadVideoByUrl":case "cueVideoByUrl":d=Cl.apply(window,c);break;case "loadPlaylist":case "cuePlaylist":d=El.apply(window,c)}c=d}Kl(this,c);b.length=1;b[0]=c}this.b[a].apply(this.b,b);Bl(a)&&Il(this,this.Zb())}};g.qd=function(){var a=t(this.pd,this);this.g.b=a};
g.addEventListener=function(a,b){this.b.addEventListener(a,b)};g.Zb=function(){var a=this.b.getApiInterface();Ha(a,"getVideoData");for(var b={apiInterface:a},c=0,d=a.length;c<d;c++){var e=a[c];if(0==e.search("get")||0==e.search("is")){var f;f=e;var h=0;0==f.search("get")?h=3:0==f.search("is")&&(h=2);f=f.charAt(h).toLowerCase()+f.substr(h+1);try{var k=this.b[e]();b[f]=k}catch(l){}}}b.videoData={video_id:this.b.getVideoData().video_id};return b};
g.ud=function(a){Il(this,{playerState:a,currentTime:this.b.getCurrentTime(),duration:this.b.getDuration(),videoData:{video_id:this.b.getVideoData().video_id},videoStartBytes:0,videoBytesTotal:this.b.getVideoBytesTotal(),videoLoadedFraction:this.b.getVideoLoadedFraction(),playbackQuality:this.b.getPlaybackQuality(),availableQualityLevels:this.b.getAvailableQualityLevels(),videoUrl:this.b.getVideoUrl(),playlist:this.b.getPlaylist(),playlistIndex:this.b.getPlaylistIndex()})};
g.sd=function(a){Il(this,{playbackQuality:a})};g.td=function(a){Il(this,{playbackRate:a})};g.rd=function(){for(var a=this.b.getOptions(),b={namespaces:a},c=0,d=a.length;c<d;c++){var e=a[c],f=this.b.getOptions(e);b[e]={options:f};for(var h=0,k=f.length;h<k;h++){var l=f[h],r=this.b.getOption(e,l);b[e][l]=r}}this.sendMessage("apiInfoDelivery",b)};g.wd=function(){Il(this,{muted:this.b.isMuted(),volume:this.b.getVolume()})};
g.vd=function(a){Il(this,{currentTime:a,videoBytesLoaded:this.b.getVideoBytesLoaded(),videoLoadedFraction:this.b.getVideoLoadedFraction()})};function Ll(a,b){Je.call(this,a);this.i=b}y(Ll,Qe);function Ml(a){var b=[];zd(a.b.Y(!0),function(a){if("bounded-collectable-storage"!=a){var d;try{d=this.g(a,!0)}catch(e){if("Storage: Invalid value was encountered"==e)return;throw e;}b.push({key:a,vc:d.creation})}},a);Oa(b,function(a,b){return a.vc-b.vc});return B(b,function(a){return a.key})}function Nl(a,b){var c=Ll.w.get.call(a,"bounded-collectable-storage")||null;c&&q(c)||(c=b?Ml(a):[]);return c}
function Ol(a,b){Ll.w.set.call(a,"bounded-collectable-storage",b)}function Pl(a,b){if(0==b.length)return Ka(a);for(var c=[],d=0,e=0;e<b.length&&d<a.length;){for(var f=b[e];d<a.length&&a[d]!=f;)c.push(a[d]),++d;++e}return Ja(c,Na(a,d+1))}function Ql(a,b,c){if(b.length<=c)return Ka(b);c=Na(b,0,b.length-c);A(c,function(a){Ll.w.remove.call(this,a)},a);return Pl(b,c)}Ll.prototype.h=function(a){var b=Nl(this,!0);a=Se(this,b,a);b=Pl(b,a);Ol(this,b)};
Ll.prototype.set=function(a,b,c){Ll.w.set.call(this,a,b,c);c=Nl(this,!0);Ha(c,a);p(b)&&(c.push(a),c.length>=this.i&&(a=Se(this,c),c=Pl(c,a),c=Ql(this,c,this.i)));Ol(this,c)};Ll.prototype.remove=function(a){Ll.w.remove.call(this,a);var b=Nl(this,!1);p(b)&&(Ha(b,a),Ol(this,b))};function Rl(a,b){if(E&&!Fb(9)){Sl||(Sl=new Bd);this.G=Sl.get(a);this.G||(b?this.G=document.getElementById(b):(this.G=document.createElement("userdata"),this.G.addBehavior("#default#userData"),document.body.appendChild(this.G)),Sl.set(a,this.G));this.bc=a;try{this.G.load(this.bc)}catch(c){this.G=null}}}y(Rl,Fe);var Tl={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Sl=null;g=Rl.prototype;g.G=null;g.bc=null;
function Ul(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return Tl[a]})}g.isAvailable=function(){return!!this.G};g.set=function(a,b){this.G.setAttribute(Ul(a),b);Vl(this)};g.get=function(a){a=this.G.getAttribute(Ul(a));if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.G.removeAttribute(Ul(a));Vl(this)};g.na=function(){return Wl(this).attributes.length};
g.Y=function(a){var b=0,c=Wl(this).attributes,d=new xd;d.next=function(){if(b>=c.length)throw wd;var d;d=c[b++];if(a)return decodeURIComponent(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){for(var a=Wl(this),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Vl(this)};function Vl(a){try{a.G.save(a.bc)}catch(b){throw"Storage mechanism: Quota exceeded";}}
function Wl(a){return a.G.XMLDocument.documentElement};function Xl(a,b){this.Pa=a;this.Ca=b+"::"}y(Xl,Fe);g=Xl.prototype;g.Pa=null;g.Ca="";g.set=function(a,b){this.Pa.set(this.Ca+a,b)};g.get=function(a){return this.Pa.get(this.Ca+a)};g.remove=function(a){this.Pa.remove(this.Ca+a)};g.Y=function(a){var b=this.Pa.Y(!0),c=this,d=new xd;d.next=function(){for(var d=b.next();d.substr(0,c.Ca.length)!=c.Ca;)d=b.next();return a?d.substr(c.Ca.length):c.Pa.get(d)};return d};var Yl,Zl=[];function $l(a,b){var c=zl(b);if(c){var d;i:{if(null==Yl){d=new He;(d=d.isAvailable()?new Xl(d,"aid"):null)||(d=new Rl("aid"),d=d.isAvailable()?d:null);if(!d){d=null;break i}Yl=new Ll(d,50)}d=Yl}d?(d=d.get(c),d=ia(d)?d:null):d=null;d&&(c=Ic(Lc(["//www.gstatic.com/youtube/followonevent/l"],{foc_id:c,aid:d.aid||"!aid",label:"followon_"+a})))&&ql(c)}};var am=!1,$=[];function bm(a,b,c,d,e){b?am?O("subscription-external-subscribe",a,b,null,d,e):O("ypc-delayedloader-load",function(){O("ypc-init-subscription",b)}):cm(a,c,d,e)}function dm(a,b,c,d,e,f){c?am?O("subscription-external-unsubscribe",a,b,c,null,e,f):O("ypc-delayedloader-load",function(){O("ypc-subscription-cancel",c)}):em(a,b,d,e,f)}
function fm(a){if(a.length){var b=Ma(a,0,40);O("subscription-batch-subscribe-loading",b);gm("subscription-subscribe-loading",b);var c={};c.session_token=jc();c.a=b.join(",");var d=function(){O("subscription-batch-subscribe-loaded",b);gm("subscription-subscribe-loaded",b)};Xd("/subscription_ajax?action_create_subscription_to_all=1",{method:"POST",ea:c,onSuccess:function(c,f){d();var h=f.response,k=h.id;if(q(k)&&k.length==b.length){var l={};A(k,function(a,c){l[b[c]]=a});O("subscription-batch-subscribe-success",
l);Ya(l,function(a,b){O("subscription-subscribe-success",b,a)});(h=h.guide_notification_html_content)&&O("guide-add-subscription",h);a.length&&fm(a)}},onError:function(){d();O("subscription-batch-subscribe-failure",b);gm("subscription-subscribe-failure",b)}})}}
function hm(a){if(!cb(a)){var b=$a(a),c=Ma(b,0,40),d=[];A(c,function(b){d.push(a[b])});var e={};A(b,function(b){e[b]=a[b]});O("subscription-batch-unsubscribe-loading",c);gm("subscription-unsubscirbe-loading",c);b={};b.session_token=jc();b.s=d.join(",");var f=function(){O("subscription-batch-unsubscribe-loaded",c);gm("subscription-unsubscribe-loaded",c)};Xd("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",ea:b,onSuccess:function(){f();O("subscription-batch-unsubscribe-success",c);
gm("subscription-unsubscribe-success",c);cb(e)||hm(e)},onError:function(){f();O("subscription-batch-unsubscribe-failure",c);gm("subscription-unsubscribe-failure",c)}})}}function im(a,b,c){jm(a,b,null,c)}function km(a,b,c){jm(a,null,b,c)}function lm(a,b,c){mm(a,b,null,c)}function nm(a,b,c){mm(a,null,b,c)}function om(a,b,c,d){jm(a,b,c,d)}function pm(a,b,c,d){a=a.subscriptionElement||null;(b=b.subscriptionId)&&O("subscription-subscribe-success",d,b,a)}
function qm(a,b){Ya(a,function(a,b){O("subscription-subscribe-success",b,a)});O("guide-add-subscription",b)}function rm(a,b){O("subscription-unsubscribe-success",a.itemId,a.subscriptionElement||null);b&&(O("subscription-batch-unsubscribe-success",b),gm("subscription-unsubscribe-success",b),gm("subscription-enable-ypc",b))}
function cm(a,b,c,d){O("subscription-subscribe-loading",a);var e={};e.c=a;d&&(e.eurl=d);d={};d.session_token=jc();var f=I("PLAYBACK_ID");f&&(d.plid=f);c&&sm("/subscription_ajax?action_create_subscription_to_channel=1",e,c);Xd("/subscription_ajax?action_create_subscription_to_channel=1",{method:"POST",Ic:e,ea:d,onSuccess:function(c,d){var e=d.response;O("subscription-subscribe-success",a,e.id,b);e.show_feed_privacy_dialog&&O("SHOW-FEED-PRIVACY-SUBSCRIBE-DIALOG",a);(e=e.guide_notification_html_content)&&
O("guide-add-subscription",e)},onError:function(){O("subscription-subscribe-failure",a)},Gb:function(){O("subscription-subscribe-loaded",a)}});Al("subscribe",a)}
function em(a,b,c,d,e){O("subscription-unsubscirbe-loading",a);var f={};e&&(f.eurl=e);e={};e.session_token=jc();e.s=b;(b=I("PLAYBACK_ID"))&&(e.plid=b);d&&sm("/subscription_ajax?action_remove_subscriptions=1",{},d);Xd("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",Ic:f,ea:e,onSuccess:function(){O("subscription-unsubscribe-success",a,c)},onError:function(){O("subscription-unsubscribe-failure",a)},Gb:function(){O("subscription-unsubscribe-loaded",a)}});Al("unsubscribe",a)}
function jm(a,b,c,d){if(null!==b||null!==c){O("subscription-prefs-loading",a);var e={};e.session_token=jc();e.subscription_id=a;null===b||(e.email_on_upload=b);null===c||(e.uploads_only=c);Xd("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",ea:e,onSuccess:function(){O("subscription-prefs-success",a)},onError:function(){d&&d();O("subscription-prefs-failure",a)},Gb:function(){O("subscription-prefs-loaded",a)}})}}
function mm(a,b,c,d){if(a.length&&(null!==b||null!==c)){var e=Ma(a,0,40);O("subscription-batch-prefs-loading",e);var f={};f.session_token=jc();f.s=e.join(",");null===b||(f.email_on_upload=b);null===c||(f.uploads_only=c);var h=function(){O("subscription-batch-prefs-loaded",e)};Xd("/subscription_ajax?action_update_subscription_preferences_batch=1",{method:"POST",ea:f,onSuccess:function(){h();O("subscription-batch-prefs-success",e);a.length&&mm(a,b,c,d)},onError:function(){h();d&&d();O("subscription-batch-prefs-failure",
e)}})}}function gm(a,b){A(b,function(b){O(a,b)})}function sm(a,b,c){a=Rd(a,b);c=Od(c);Kh(a,c)};var tm=null,um=null,vm={cc_load_policy:"cc3_module",threed_load_policy:"threed_module",streaminglib_load_policy:"streaminglib_module"},wm=!1;function xm(a){var b={};Ya(vm,function(c){a.args[c]&&(b[c]=a.args[c],delete a.args[c])});return b};w("yt.setAjaxToken",ic);w("yt.setConfig",gc);w("yt.setMsg",function(a){hc(fc,arguments)});w("yt.embed.openLoginDialog",function(){Nc(function(a){if(tm.onLoginDialogSuccess)tm.onLoginDialogSuccess(a)})});
w("writeEmbed",function(){var a=new ie(I("PLAYER_CONFIG"));a.args.el="embedded";if(a.args.autoplay){var b=Ug(a.args.video_id||a.args.videoId);b&&(a.args.autoplay_token=b)}I("CUED_AUTOPLAY")&&(a.args.autoplay=1);tm=ai("player",a);var b=um=new Jl(tm),c=xm(a);b.j=vm;b.p=c;b=a.args.eurl||"";c=I("POST_MESSAGE_ORIGIN");wm=-1<b.indexOf(c)&&Sg(c)&&Sg(b)&&"0"==a.args.enablecastapi;wm="1"==a.args.enablecastapi||lg&&cast.isNonRelease&&"0"!=a.args.enablecastapi?!1:!0;wm||(b=tm,kg(),jl=b,jl.addEventListener("onReady",
ll),jl.addEventListener("onRemoteReceiverSelected",nl),b=il.getInstance().h,b.I("onlineReceiverChange",ml),a.args.has_mdx_screens&&Lk(b));I("PL_ATT")&&(de=tm,de.addEventListener("onStateChange",ge))});
L(window,"load",function(){sl().tick.ol=v();var a=I("TIMING_ACTION"),b=!!I("TIMING_WFF"),c=sl().tick;a&&c._start&&(b&&c.vr?rl():b||!c.ol&&!c.aft||rl());am=!0;$.push(N("subscription-subscribe",bm));$.push(N("subscription-unsubscribe",dm));am||($.push(N("subscription-external-subscribe",bm)),$.push(N("subscription-external-unsubscribe",dm)),$.push(N("subscription-batch-subscribe",fm)),$.push(N("subscription-batch-unsubscribe",hm)),$.push(N("subscription-pref-email",im)),$.push(N("subscription-pref-uploads",
km)),$.push(N("subscription-prefs",om)),$.push(N("subscription-batch-pref-email",lm)),$.push(N("subscription-batch-pref-uploads",nm)),$.push(N("ypc-purchase-success",pm)),$.push(N("ypc-subscription-cancel-success",rm)),$.push(N("ypc-guide-sync-success",qm)),Zl.push(N("subscription-subscribe-success",u($l,"subscribe")),N("subscription-unsubscribe-success",u($l,"unsubscribe")),N("player-subscribe",u($l,"subscribe")),N("player-unsubscribe",u($l,"unsubscribe"))))});
L(window,"unload",function(){I("PL_ATT")&&(ae||null==ce||he(),de.removeEventListener("onStateChange",ge),de=ce=null,ae=!1);$&&(Bc($),$=[],am=!1);Bc(Zl);Zl=[];if(!wm){Bc(kl);kl=NaN;var a=il.getInstance().h;a&&a.Aa("onlineReceiverChange",ml);jl&&(jl.removeEventListener("onRemoteReceiverSelected",nl),jl.removeEventListener("onReady",ll),jl=null);if(a=ig()){hg("API disposed");var b=eg,c=n("yt.mdx.remote.debug.handlers_");Ha(c,b);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ba);a.removeReceiverListener("YouTube",
mg);ng(null)}lg=!1}um.dispose();tm.destroy()});var ym=sd.getInstance(),zm=Q(ym);zm in hd||!ym.Xc()||(ym.register(),hd[zm]=ym);})();
