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