c.height?m>p?(d=m,e=n):(d=p,e=q):mb.u?!1:a.jb.j?!1:typeof a.qdtypeof b.qd?!1:a.qdc++;){if(a===b)return!0;try{if(a=g.rh(a)||a){var d=$g(a),e=d&&gh(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
+iia=function(a,b,c){if(!a||!b)return!1;b=rl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Ik(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Bha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=$g(c))&&b.defaultView&&b.defaultView.frameElement)&&hia(b,a);var d=a===c;a=!d&&a&&vh(a,function(e){return e===c});
+return!(b||d||a)};
+jia=function(a,b,c,d){return Ol().B?!1:0>=pl(a)||0>=a.getHeight()?!0:c&&d?wha(208,function(){return iia(a,b,c)}):!1};
+mm=function(a,b,c){g.K.call(this);this.position=kia.clone();this.kD=this.yC();this.QI=-2;this.Z4=Date.now();this.QS=-1;this.lastUpdateTime=b;this.cD=null;this.sy=!1;this.sD=null;this.opacity=-1;this.requestSource=c;this.VI=function(){};
+this.gT=function(){};
+this.Bi=new Iga;this.Bi.bq=a;this.Bi.j=a;this.Wp=!1;this.Lr={fJ:null,dJ:null};this.yS=!0;this.xA=null;this.Qv=this.BZ=!1;Yk().I++;this.Eg=this.PH();this.NS=-1;this.Ce=null;this.hasCompleted=this.yZ=!1;this.featureSet=new uk;Hga(this.featureSet);lia(this);1==this.requestSource?wk(this.featureSet,"od",1):wk(this.featureSet,"od",0)};
+lia=function(a){a=a.Bi.bq;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:mia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+vda()):!!a.getAttribute("data-"+vda());b&&(Ol().u=!0)};
+nm=function(a,b){b!=a.Qv&&(a.Qv=b,a=Ol(),b?a.I++:0c?0:a};
+pia=function(a,b,c){if(a.Ce){a.Ce.qp();var d=a.Ce.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.sD=new g.Gg(h.left-f.left,h.top-f.top)}f=a.sE()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.WO(d);a.cD=d;a.Fa(f,b,c,!1,h,e,d.J)}};
+qia=function(a){if(a.sy&&a.xA){var b=1==xk(a.featureSet,"od"),c=Ol().j,d=a.xA,e=a.Ce?a.Ce.getName():"ns",f=new g.Qg(pl(c),c.getHeight());c=a.sE();a={E4:e,sD:a.sD,S5:f,sE:c,Id:a.Eg.Id,G5:b};if(b=d.u){b.qp();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.Gg(h.left-f.left,h.top-f.top),l=new g.Qg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={E4:b.getName(),sD:h,S5:l,sE:c,G5:!1,Id:e}}else c=null;c&&bia(d,a,c)}};
+ria=function(a,b,c){b&&(a.VI=b);c&&(a.gT=c)};
+g.om=function(){};
+g.pm=function(a){return{value:a,done:!1}};
+sia=function(){this.C=this.j=this.B=this.u=this.D=0};
+tia=function(a){var b={};var c=g.Wa()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
+uia=function(){pk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
+qm=function(a){return Ml(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.W;var d=c-a.W,e=0;0<=d?(a.Y+=b,a.Ea+=Math.max(b-d,0),e=Math.min(d,a.Y)):a.La+=Math.abs(d);0!=d&&(a.Y=0);-1==a.Ra&&0=a.B/2:0=a.va:!1:!1};
+Gia=function(a){var b=Ll(a.Eg.Id,2),c=a.wg.B,d=a.Eg,e=Lm(a),f=Km(e.C),h=Km(e.I),l=Km(d.volume),m=Ll(e.J,2),n=Ll(e.Y,2),p=Ll(d.Id,2),q=Ll(e.ra,2),v=Ll(e.va,2);d=Ll(d.Ui,2);a=a.Np().clone();a.round();e=im(e,!1);return{R5:b,fz:c,lD:f,hD:h,Rx:l,mD:m,iD:n,Id:p,nD:q,jD:v,Ui:d,position:a,qD:e}};
+Iia=function(a,b){Hia(a.j,b,function(){return{R5:0,fz:void 0,lD:-1,hD:-1,Rx:-1,mD:-1,iD:-1,Id:-1,nD:-1,jD:-1,Ui:-1,position:void 0,qD:[]}});
+a.j[b]=Gia(a)};
+Hia=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])};
+Zm=function(a){a=void 0===a?Dk:a;Wl.call(this,new Sl(a,2))};
+$m=function(){var a=gja();Sl.call(this,Dk.top,a,"geo")};
+gja=function(){Yk();var a=Ol();return a.B||a.u?0:2};
+hja=function(){};
+an=function(){this.done=!1;this.j={IW:0,AN:0,s3a:0,wO:0,pI:-1,DX:0,CX:0,EX:0,B4:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new Rl(this)};
+cn=function(){var a=bn;a.I||(a.I=!0,ija(a,function(){return a.C.apply(a,g.t(g.za.apply(0,arguments)))}),a.C())};
+jja=function(){Rk(hja);var a=Rk(Um);null!=a.j&&a.j.j?Pha(a.j.j):Ol().update(Dk)};
+dn=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{jja();var d=jl();Yk().D=d;if(null!=Rk(Um).j)for(var e=0;eg.uf(uja).length?null:Qk(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===vja[d[0]]||!vja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
+xja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?fm(b.j,a.j):fm(b.u,a.j);case "tos":return a.u?em(b.j,a.j):em(b.u,a.j)}return 0};
+kn=function(a,b,c,d){Dm.call(this,b,d);this.J=a;this.N=c};
+yja=function(){};
+ln=function(){};
+mn=function(){};
+nn=function(a){Dm.call(this,"fully_viewable_audible_half_duration_impression",a)};
+on=function(a){this.j=a};
+pn=function(a,b){Dm.call(this,a,b)};
+qn=function(a){Em.call(this,"measurable_impression",a)};
+rn=function(){on.apply(this,arguments)};
+sn=function(a,b,c){Gm.call(this,a,b,c)};
+tn=function(a){a=void 0===a?Dk:a;Wl.call(this,new Sl(a,2))};
+un=function(a,b,c){Gm.call(this,a,b,c)};
+vn=function(a){a=void 0===a?Dk:a;Wl.call(this,new Sl(a,2))};
+wn=function(){Sl.call(this,Dk,2,"mraid");this.Ea=0;this.Y=this.ra=!1;this.J=null;this.u=Aha(this.B);this.C.j=new ol(0,0,0,0);this.Ha=!1};
+xn=function(a,b,c){a.Bq("addEventListener",b,c)};
+Cja=function(a){Yk().C=!!a.Bq("isViewable");xn(a,"viewableChange",zja);"loading"===a.Bq("getState")?xn(a,"ready",Aja):Bja(a)};
+Bja=function(a){"string"===typeof a.u.ql.AFMA_LIDAR?(a.ra=!0,Dja(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
+Dja=function(a){a.Y=!1;var b=1==xk(Yk().featureSet,"rmmt"),c=!!a.Bq("isViewable");(b?!c:1)&&Tk().setTimeout(hl(524,function(){a.Y||(Eja(a),il(540,Error()),a.J="mt",a.fail("w"))}),500);
+Fja(a);xn(a,a.u.ql.AFMA_LIDAR,Gja)};
+Fja=function(a){var b=1==xk(Yk().featureSet,"sneio"),c=void 0!==a.u.ql.AFMA_LIDAR_EXP_1,d=void 0!==a.u.ql.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.ql.AFMA_LIDAR_EXP_2=!0);c&&(a.u.ql.AFMA_LIDAR_EXP_1=!b)};
+Eja=function(a){a.Bq("removeEventListener",a.u.ql.AFMA_LIDAR,Gja);a.ra=!1};
+Hja=function(a,b){if("loading"===a.Bq("getState"))return new g.Qg(-1,-1);b=a.Bq(b);if(!b)return new g.Qg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Qg(-1,-1):new g.Qg(a,b)};
+Aja=function(){try{var a=Rk(wn);a.Bq("removeEventListener","ready",Aja);Bja(a)}catch(b){il(541,b)}};
+Gja=function(a,b){try{var c=Rk(wn);c.Y=!0;var d=a?new ol(a.y,a.x+a.width,a.y+a.height,a.x):new ol(0,0,0,0);var e=jl(),f=Ql();var h=new sl(e,f,c);h.j=d;h.volume=b;c.Rp(h)}catch(l){il(542,l)}};
+zja=function(a){var b=Yk(),c=Rk(wn);a&&!b.C&&(b.C=!0,c.Ha=!0,c.J&&c.fail("w",!0))};
+yn=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.eZ,a.firstquartile=this.ZY,a.midpoint=this.bZ,a.thirdquartile=this.fZ,a.complete=this.WY,a.error=this.XY,a.pause=this.SJ,a.resume=this.iS,a.skip=this.dZ,a.viewable_impression=this.Gm,a.mute=this.Vw,a.unmute=this.Vw,a.fullscreen=this.aZ,a.exitfullscreen=this.YY,a.fully_viewable_audible_half_duration_impression=this.Gm,a.measurable_impression=this.Gm,a.abandon=this.SJ,a.engagedview=this.Gm,a.impression=this.Gm,a.creativeview=
+this.Gm,a.progress=this.Vw,a.custom_metric_viewable=this.Gm,a.bufferstart=this.SJ,a.bufferfinish=this.iS,a.audio_measurable=this.Gm,a.audio_audible=this.Gm,a);a={};this.N=(a.overlay_resize=this.cZ,a.abandon=this.hI,a.close=this.hI,a.collapse=this.hI,a.overlay_unmeasurable_impression=function(b){return Om(b,"overlay_unmeasurable_impression",Ql())},a.overlay_viewable_immediate_impression=function(b){return Om(b,"overlay_viewable_immediate_impression",Ql())},a.overlay_unviewable_impression=function(b){return Om(b,
+"overlay_unviewable_impression",Ql())},a.overlay_viewable_end_of_session_impression=function(b){return Om(b,"overlay_viewable_end_of_session_impression",Ql())},a);
+Yk().u=3;Ija(this);this.B=!1};
+zn=function(a,b,c,d){b=a.gA(null,d,!0,b);b.C=c;$ia([b],a.B);return b};
+Jja=function(a,b,c){Cga(b);var d=a.j;g.tc(b,function(e){var f=g.Pk(e.criteria,function(h){var l=wja(h);if(null==l)h=null;else if(h=new tja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=waa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
+Nl(f,function(h){return null==h})||Eia(c,new kn(e.id,e.event,f,d))})};
+Kja=function(){var a=[],b=Yk();a.push(Rk($m));xk(b.featureSet,"mvp_lv")&&a.push(Rk(wn));b=[new tn,new vn];b.push(new Vm(a));b.push(new Zm(Dk));return b};
+Lja=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=jl(),c=Yk(),d=Ol();kl=b;c.B=79463069;"o"!==a.u&&(oja=Sga(Dk));if(cha()){bn.j.AN=0;bn.j.pI=jl()-b;var e=Kja(),f=Rk(Um);f.u=e;bja(f,function(){An()})?bn.done||(kja(),Tl(f.j.j,a),cn()):d.B?An():cn()}else Bn=!0}catch(h){throw Sm.reset(),h;
+}}};
+Gn=function(a){bn.u.cancel();Fn=a;bn.done=!0};
+Hn=function(a){if(a.u)return a.u;var b=Rk(Um).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
+In=function(a,b,c){if(null==a.j)return b.ax|=4,!1;a=Mja(a.j,c,b);b.ax|=a;return 0==a};
+An=function(){var a=[new Zm(Dk)],b=Rk(Um);b.u=a;bja(b,function(){Gn("i")})?bn.done||(kja(),cn()):Gn("i")};
+Nja=function(a,b){if(!a.Cb){var c=Om(a,"start",Ql());c=a.TJ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="933";null!==fn&&(d.v=fn);ri(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
+b=pja();ri(b,function(e,f){return d[e]=encodeURIComponent(f)});
+b="//pagead2.googlesyndication.com/pagead/gen_204?"+Zl(Yl(new Xl,d));$ha(b);a.Cb=!0}};
+Jn=function(a,b,c){dn(bn,[a],!Ql());Iia(a,c);4!=c&&Hia(a.ra,c,a.yC);return Om(a,b,Ql())};
+Ija=function(a){nja(function(){var b=Oja();null!=a.u&&(b.sdk=a.u);var c=Rk(Um);null!=c.j&&(b.avms=c.j.getName());return b})};
+Pja=function(a,b,c,d){if(a.B)var e=Rm(Sm,b);else e=Wia(Sm,c),null!==e&&e.ah!==b&&(a.ly(e),e=null);e||(b=a.gA(c,jl(),!1,b),0==Sm.u.length&&(Yk().B=79463069),aja([b]),e=b,e.C=Hn(a),d&&(e.Ua=d));return e};
+Qja=function(a){g.tc(Sm.j,function(b){3==b.uh&&a.ly(b)})};
+Rja=function(a,b){var c=a[b];void 0!==c&&0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
+Aka=function(a){if(!a)return qg;var b=document.createElement("div").style;wka(a).forEach(function(c){var d=g.kf&&c in xka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");eb(d,"--")||eb(d,"var")||(c=vka(yka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=tka(c),null!=c&&vka(zka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
+return pda(g.fg("Output of CSS sanitizer"),b.cssText||"")};
+wka=function(a){g.Oa(a)?a=g.cc(a):(a=g.uf(a),g.Zb(a,"cssText"));return a};
+g.wo=function(a){var b,c=b=0,d=!1;a=a.split(Bka);for(var e=0;eg.Wa()};
+g.Go=function(a){this.j=a};
+Lka=function(){};
+Ho=function(){};
+Io=function(a){this.j=a};
+Jo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
+Mka=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
+Lo=function(a,b){this.u=a;this.j=null;if(g.Dc&&!g.Ac(9)){Ko||(Ko=new g.po);this.j=Ko.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Ko.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
+Mo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Nka[b]})};
+No=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
+Oo=function(a,b){this.u=a;this.j=b+"::"};
+g.Po=function(a){var b=new Jo;return b.isAvailable()?a?new Oo(b,a):b:null};
+Qo=function(a,b){this.j=a;this.qd=b};
+Ro=function(a){this.j=[];if(a)a:{if(a instanceof Ro){var b=a.Tn();a=a.Rj();if(0>=this.j.length){for(var c=this.j,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
+So=function(){Ro.apply(this,arguments)};
+To=function(){};
+Pka=function(){var a=g.za.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.t(g.za.apply(0,arguments))))}})};
+Qka=function(){var a=g.za.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
+c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.t(g.za.apply(1,arguments))))}};
+d=a.map(function(h){return h(f)});
+e=Pka.apply(null,g.t(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
+Uo=function(){return Math.random().toString(36).substring(7).split("").join(".")};
+Rka=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Vo}))throw Error('Reducer "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Uo()}))throw Error('Reducer "'+
+b+"\" returned undefined when probed with a random type. Don't try to handle "+(Vo+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
+Ska=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
+function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;p===n&&(p=n.slice());p.push(w);return function(){if(y){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
+y=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
+function h(w){if("object"!==typeof w||null===w)var y=!1;else{for(y=w;null!==Object.getPrototypeOf(y);)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(w)===y}if(!y)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}y=n=p;for(var A=0;Anew Date("01 January 1970 00:00:04 GMT")/1E3&&((0,c[20])((0,c[20])((0,c[99])(c[54],c[18]),c[37],c[54],c[94]),c[33],c[62],c[23],(0,c[93])()),1)||((0,c[20])((0,c[24])(c[49],c[43]),c[64],c[75]),c[64])(c[59]),5=c[9]&&(4=c[39]||(0,c[0])(c[19])&&-6720+Math.pow(1,2)- -6719)&&(0,c[46])(c[59],c[30],(0,c[64])()),2=c[88]&&((0,c[53])((0,c[105])(c[19],c[63]),c[37],(0,c[33])((0,c[20421-163*Math.pow(5,3)])(c[75],c[17],(0,c[97])()),
+c[50],c[19],c[90]),c[47],c[44]),1)||((0,c[95])(c[61],c[18]),c[91])((0,c[91])((0,c[104])(c[77],c[65],(0,c[48])()),c[56],c[102],c[19]),c[64],c[102])}catch(d){(0,c[104])(c[77],c[23],(0,c[15])())}finally{(c[32]<=Math.pow(2,4)+-38280- -38268||((0,c[104])(c[75+102%Math.pow(5,2)],c[28],(0,c[16])()),0))&&(0,c[1])(c[26],c[62])}try{c[97]>Math.pow(7,1)+24990+-24993&&(4=c[104]?(0,c[22])((0,c[1])((0,c[5])(c[13],c[44]),c[76],c[12],c[75]),c[2],(0,c[0])(((0,c[82])(c[12]),(0,c[98])(c[72],c[12])),c[106],(0,c[31])(c[63],c[35])>(0,c[102])(c[-120*Math.pow(7,2)+5969],c[82]),c[12],c[10]),c[29],c[21]):(0,c[81])((0,c[40])(c[10],c[11],(0,c[20])()),c[53],(0,c[new Date("31 December 1969 13:15:53 -1045")/1E3])((0,c[53])((0,c[12])(c[26]),
+c[35],c[10],c[275%Math.pow(new Date("1969-12-31T17:00:02.000-07:00")/1E3,5)+9]),c[40],c[67],c[74],(0,c[21])()),(0,c[53])((0,c[35])(c[42],c[104]),c[35],c[67],c[48]),(0,c[86])(c[Math.pow(5,5)+17176+-20291],c[51]),c[49],c[64],c[42]),6>=c[58]&&(c[24]<=new Date("12/31/1969 16:00:04 PST")/1E3?(0,c[53])((0,c[53])((0,c[35])(c[10],c[43]),c[86],c[42],c[5]),c[86],c[18],c[44]):(0,c[53])((0,c[53])((0,c[86])(c[18],c[100]),c[104],c[11],c[85]),c[108],c[new Date("12/31/1969 17:00:20 PDT")/1E3],c[77]))}catch(d){(0,c[39])(c[9],
+c[75],(0,c[105])()),(0,c[44])(c[8],c[28]),(0,c[39])(c[15+Math.pow(7,3)-292],c[93],(0,c[19])())}finally{1>=c[2]&&((((0,c[11])(c[17]),c[52])((0,c[39])(c[9],c[94],(0,c[107])()),c[39],c[9],c[5],(0,c[95])()),c[34])(c[9],c[15]),[])||(0,c[52])((((0,c[85])(c[28],c[108]),c[57])(c[13],c[30]),c[100])(c[30],c[14]),c[64],c[30],c[101])}try{9>=c[198-Math.pow(5,4)- -443]&&(0,c[44])((0,c[92])(c[54]),c[9],(0,c[48])(c[26],c[55]),c[71],c[51])}catch(d){(0,c[73])(c[46],c[7864400-240*Math.pow(8,5)],(0,c[Math.pow(6,1)%195-
+-11])())}}catch(d){return"enhanced_except_k5YB7On-_w8_"+a}return b.join("")};
+g.Yo=function(a){this.name=a};
+Zo=function(a){g.J.call(this,a)};
+$o=function(a){g.J.call(this,a)};
+ap=function(a){g.J.call(this,a)};
+bp=function(a){g.J.call(this,a)};
+cp=function(a){g.J.call(this,a,-1,Xka)};
+dp=function(a){g.J.call(this,a,-1,Yka)};
+ep=function(a){g.J.call(this,a)};
+fp=function(a){g.J.call(this,a)};
+gp=function(a){g.J.call(this,a)};
+hp=function(a){g.J.call(this,a)};
+ip=function(a){g.J.call(this,a)};
+jp=function(a){g.J.call(this,a)};
+kp=function(a){g.J.call(this,a)};
+lp=function(a){g.J.call(this,a)};
+mp=function(a){g.J.call(this,a,-1,Zka)};
+np=function(a){g.J.call(this,a,-1,$ka)};
+op=function(a){g.J.call(this,a)};
+pp=function(a){g.J.call(this,a)};
+rp=function(a){g.J.call(this,a)};
+sp=function(a){g.J.call(this,a)};
+tp=function(a){g.J.call(this,a)};
+up=function(a){g.J.call(this,a)};
+vp=function(a){g.J.call(this,a,-1,ala)};
+wp=function(a){g.J.call(this,a)};
+xp=function(a){g.J.call(this,a)};
+yp=function(a){g.J.call(this,a)};
+zp=function(a){g.J.call(this,a)};
+Ap=function(a){g.J.call(this,a)};
+Bp=function(a){g.J.call(this,a)};
+Cp=function(a){g.J.call(this,a)};
+Dp=function(a){g.J.call(this,a)};
+Ep=function(a){g.J.call(this,a)};
+Fp=function(a){g.J.call(this,a)};
+Gp=function(a){g.J.call(this,a)};
+Hp=function(a){g.J.call(this,a)};
+Ip=function(a){g.J.call(this,a)};
+Jp=function(a){g.J.call(this,a,-1,bla)};
+Kp=function(a){g.J.call(this,a)};
+Lp=function(a){g.J.call(this,a)};
+Mp=function(a){g.J.call(this,a)};
+Np=function(a){g.J.call(this,a)};
+Op=function(a){g.J.call(this,a,-1,dla)};
+Pp=function(a){g.J.call(this,a)};
+Qp=function(a){g.J.call(this,a)};
+Rp=function(a){g.J.call(this,a)};
+Sp=function(a){g.J.call(this,a)};
+Tp=function(a){g.J.call(this,a)};
+Up=function(a){g.J.call(this,a)};
+Vp=function(a){g.J.call(this,a)};
+Wp=function(a){g.J.call(this,a)};
+Xp=function(a){g.J.call(this,a)};
+Yp=function(a){g.J.call(this,a)};
+Zp=function(a){g.J.call(this,a)};
+$p=function(a){g.J.call(this,a)};
+aq=function(a){g.J.call(this,a)};
+bq=function(a){g.J.call(this,a)};
+cq=function(a){g.J.call(this,a)};
+fla=function(a){g.J.call(this,a,-1,ela)};
+g.dq=function(a){g.J.call(this,a,-1,gla)};
+eq=function(a){g.J.call(this,a,-1,hla)};
+fq=function(a){g.J.call(this,a)};
+gq=function(a){g.J.call(this,a,-1,ila)};
+hq=function(a){g.J.call(this,a,-1,jla)};
+iq=function(a){g.J.call(this,a)};
+jq=function(a){g.J.call(this,a)};
+kq=function(a){g.J.call(this,a)};
+lq=function(a){g.J.call(this,a)};
+mq=function(a){g.J.call(this,a)};
+nq=function(a){g.J.call(this,a)};
+oq=function(a){g.J.call(this,a)};
+pq=function(a){g.J.call(this,a)};
+qq=function(a){g.J.call(this,a)};
+rq=function(a){g.J.call(this,a)};
+sq=function(a){g.J.call(this,a,-1,kla)};
+tq=function(a){g.J.call(this,a,-1,lla)};
+uq=function(a){g.J.call(this,a)};
+vq=function(a){g.J.call(this,a,-1,mla)};
+wq=function(a){g.J.call(this,a)};
+xq=function(a){g.J.call(this,a,-1,nla)};
+yq=function(a){g.J.call(this,a,-1,ola)};
+zq=function(a){g.J.call(this,a,-1,pla)};
+Aq=function(a){g.J.call(this,a)};
+Bq=function(a){g.J.call(this,a,-1,qla)};
+Cq=function(a){g.J.call(this,a)};
+Dq=function(a){g.J.call(this,a)};
+Eq=function(a){g.J.call(this,a)};
+Fq=function(a){g.J.call(this,a)};
+Gq=function(a){g.J.call(this,a)};
+Hq=function(a){g.J.call(this,a)};
+Iq=function(a){g.J.call(this,a)};
+Jq=function(a){g.J.call(this,a)};
+Kq=function(a){g.J.call(this,a)};
+Lq=function(a){g.J.call(this,a)};
+Mq=function(a){g.J.call(this,a)};
+Nq=function(a){g.J.call(this,a)};
+Oq=function(a){g.J.call(this,a)};
+Pq=function(a){g.J.call(this,a)};
+Qq=function(a){g.J.call(this,a)};
+Rq=function(a){g.J.call(this,a)};
+Sq=function(a){g.J.call(this,a)};
+Tq=function(a){g.J.call(this,a)};
+Uq=function(a){g.J.call(this,a)};
+Vq=function(a){g.J.call(this,a)};
+Wq=function(a){g.J.call(this,a)};
+Xq=function(a){g.J.call(this,a)};
+Yq=function(a){g.J.call(this,a)};
+Zq=function(a){g.J.call(this,a,-1,rla)};
+$q=function(a){g.J.call(this,a,-1,sla)};
+ar=function(a){g.J.call(this,a,-1,tla)};
+br=function(a){g.J.call(this,a)};
+cr=function(a){g.J.call(this,a)};
+dr=function(a){g.J.call(this,a)};
+er=function(a){g.J.call(this,a)};
+fr=function(a){g.J.call(this,a)};
+gr=function(a){g.J.call(this,a)};
+hr=function(a){g.J.call(this,a)};
+ir=function(a){g.J.call(this,a,-1,ula)};
+jr=function(a){g.J.call(this,a,-1,vla)};
+kr=function(a){g.J.call(this,a)};
+lr=function(a){g.J.call(this,a)};
+mr=function(a){g.J.call(this,a)};
+nr=function(a){g.J.call(this,a)};
+or=function(a){g.J.call(this,a)};
+pr=function(a){g.J.call(this,a)};
+qr=function(a){g.J.call(this,a)};
+rr=function(a){g.J.call(this,a)};
+sr=function(a){g.J.call(this,a)};
+tr=function(a){g.J.call(this,a,-1,wla)};
+ur=function(a){g.J.call(this,a,-1,xla)};
+vr=function(a){g.J.call(this,a)};
+wr=function(a){g.J.call(this,a)};
+xr=function(a){g.J.call(this,a,-1,yla)};
+yr=function(a){g.J.call(this,a)};
+zr=function(a){g.J.call(this,a,-1,zla)};
+Ar=function(a){g.J.call(this,a)};
+Br=function(a){g.J.call(this,a)};
+Cr=function(a){g.J.call(this,a)};
+Dr=function(a){g.J.call(this,a)};
+Er=function(a){g.J.call(this,a,-1,Ala)};
+Fr=function(a){g.J.call(this,a,-1,Bla)};
+Gr=function(a){g.J.call(this,a)};
+Hr=function(a){g.J.call(this,a)};
+Ir=function(a){g.J.call(this,a)};
+Jr=function(a){g.J.call(this,a)};
+Kr=function(a){g.J.call(this,a)};
+Lr=function(a){g.J.call(this,a)};
+Mr=function(a){g.J.call(this,a)};
+Nr=function(a){g.J.call(this,a)};
+Or=function(a){g.J.call(this,a)};
+Pr=function(a){g.J.call(this,a)};
+Qr=function(a){g.J.call(this,a,-1,Cla)};
+Rr=function(a){g.J.call(this,a)};
+Sr=function(a){g.J.call(this,a)};
+Tr=function(a){g.J.call(this,a)};
+Ur=function(a){g.J.call(this,a,-1,Dla)};
+Vr=function(a){g.J.call(this,a)};
+Wr=function(a){g.J.call(this,a)};
+Xr=function(a){g.J.call(this,a)};
+Yr=function(a){g.J.call(this,a)};
+Zr=function(a){g.J.call(this,a)};
+$r=function(a){g.J.call(this,a)};
+as=function(a){g.J.call(this,a)};
+bs=function(a){g.J.call(this,a)};
+cs=function(a){g.J.call(this,a)};
+ds=function(a){g.J.call(this,a)};
+fs=function(a){g.J.call(this,a)};
+gs=function(a){g.J.call(this,a)};
+hs=function(a){g.J.call(this,a)};
+is=function(a){g.J.call(this,a)};
+js=function(a){g.J.call(this,a)};
+ks=function(a){g.J.call(this,a)};
+ls=function(a){g.J.call(this,a)};
+ms=function(a){g.J.call(this,a)};
+ns=function(a){g.J.call(this,a)};
+os=function(a){g.J.call(this,a)};
+ps=function(a){g.J.call(this,a)};
+qs=function(a){g.J.call(this,a)};
+rs=function(a){g.J.call(this,a)};
+ts=function(a){g.J.call(this,a)};
+us=function(a){g.J.call(this,a)};
+vs=function(a){g.J.call(this,a)};
+ws=function(a){g.J.call(this,a,-1,Ela)};
+xs=function(a){g.J.call(this,a,-1,Fla)};
+ys=function(a){g.J.call(this,a)};
+zs=function(a){g.J.call(this,a)};
+As=function(a){g.J.call(this,a)};
+Bs=function(a){g.J.call(this,a)};
+Cs=function(a){g.J.call(this,a)};
+Ds=function(a){g.J.call(this,a)};
+Es=function(a){g.J.call(this,a)};
+Fs=function(a){g.J.call(this,a)};
+Gs=function(a){g.J.call(this,a)};
+Hs=function(a){g.J.call(this,a)};
+Is=function(a){g.J.call(this,a)};
+Js=function(a){g.J.call(this,a)};
+Ks=function(a){g.J.call(this,a,-1,Gla)};
+Ls=function(a){g.J.call(this,a)};
+Ms=function(a){g.J.call(this,a)};
+Ns=function(a){g.J.call(this,a)};
+Os=function(a){g.J.call(this,a)};
+Ps=function(a){g.J.call(this,a)};
+Qs=function(a){g.J.call(this,a)};
+Rs=function(a){g.J.call(this,a)};
+Ss=function(a){g.J.call(this,a)};
+Ts=function(a){g.J.call(this,a)};
+Us=function(a){g.J.call(this,a)};
+Vs=function(a){g.J.call(this,a)};
+Ws=function(a){g.J.call(this,a)};
+Xs=function(a){g.J.call(this,a)};
+Ys=function(a){g.J.call(this,a)};
+Zs=function(a){g.J.call(this,a)};
+at=function(a){g.J.call(this,a)};
+bt=function(a){g.J.call(this,a)};
+ct=function(a){g.J.call(this,a)};
+dt=function(a){g.J.call(this,a)};
+et=function(a){g.J.call(this,a)};
+ft=function(a){g.J.call(this,a)};
+gt=function(a){g.J.call(this,a)};
+ht=function(a){g.J.call(this,a)};
+jt=function(a){g.J.call(this,a)};
+kt=function(a){g.J.call(this,a)};
+Hla=function(a){g.J.call(this,a)};
+lt=function(a){g.J.call(this,a)};
+mt=function(a){g.J.call(this,a,-1,Ila)};
+nt=function(a){g.J.call(this,a)};
+Jla=function(a,b){F(a,as,1,b)};
+ot=function(a){g.J.call(this,a)};
+Kla=function(a,b){F(a,as,1,b)};
+pt=function(a){g.J.call(this,a,-1,Lla)};
+Mla=function(a,b){F(a,as,2,b)};
+qt=function(a){g.J.call(this,a)};
+rt=function(a){g.J.call(this,a)};
+tt=function(a){g.J.call(this,a)};
+ut=function(a){g.J.call(this,a)};
+vt=function(a){g.J.call(this,a)};
+wt=function(a){g.J.call(this,a,-1,Nla)};
+xt=function(a){g.J.call(this,a)};
+zt=function(a){g.J.call(this,a,-1,Ola)};
+Bt=function(a,b){Jd(a,68,At,b)};
+At=function(a){g.J.call(this,a)};
+Ct=function(a){g.J.call(this,a)};
+Dt=function(a){g.J.call(this,a,-1,Pla)};
+Et=function(a){g.J.call(this,a,-1,Qla)};
+Ft=function(a){g.J.call(this,a)};
+Gt=function(a){g.J.call(this,a)};
+Ht=function(a){g.J.call(this,a)};
+It=function(a){g.J.call(this,a,-1,Rla)};
+Jt=function(a){g.J.call(this,a)};
+Kt=function(a){g.J.call(this,a,-1,Sla)};
+Lt=function(a){g.J.call(this,a)};
+Mt=function(a){g.J.call(this,a)};
+Nt=function(a){g.J.call(this,a)};
+Ot=function(a){g.J.call(this,a,-1,Tla)};
+Pt=function(a){g.J.call(this,a)};
+Qt=function(a){g.J.call(this,a)};
+Rt=function(a){g.J.call(this,a,-1,Ula)};
+St=function(a){g.J.call(this,a)};
+Tt=function(a){g.J.call(this,a)};
+Ut=function(a){g.J.call(this,a)};
+Vt=function(a){g.J.call(this,a)};
+Wt=function(a){g.J.call(this,a,442)};
+Xt=function(a){g.J.call(this,a)};
+Yt=function(a){g.J.call(this,a)};
+Zt=function(a){g.J.call(this,a,-1,Vla)};
+Wla=function(){return g.Ha("yt.ads.biscotti.lastId_")||""};
+Xla=function(a){g.Fa("yt.ads.biscotti.lastId_",a)};
+au=function(){var a=arguments;1m.status,v=500<=m.status&&600>m.status;if(n||q||v)p=pma(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
+b.method,d,b.headers,b.responseType,b.withCredentials);
+d=b.timeout||0;if(b.onTimeout&&0=m||403===vu(p.xhr))return Jh(new Du("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0=f)rna(a,m,w,h,y,b.join(),e),l=y;B.Ma(2);break;case 3:return B.return(Promise.reject(l))}})};
+rna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Wv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Qv("QUOTA_EXCEEDED",{dbName:Vv(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Wv&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Qv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),sna(a,!1,d,f,b,h.tag),Pv(e)):sna(a,!0,d,
+f,b,h.tag)};
+sna=function(a,b,c,d,e,f){Qv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
+hw=function(a){this.j=a};
+g.nw=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
+tna=function(a,b){return g.ow(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
+g.vna=function(a,b){return"getAll"in IDBObjectStore.prototype?g.ew(a.j.getAll(b,void 0)):una(a,b)};
+una=function(a,b){var c=[];return g.ow(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
+xna=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.ew(a.j.getAllKeys(void 0,void 0)):wna(a)};
+wna=function(a){var b=[];return g.yna(a,{query:void 0},function(c){b.push(c.BC());return c.continue()}).then(function(){return b})};
+g.lw=function(a,b,c){return g.ew(a.j.put(b,c))};
+g.ow=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return pw(a).then(function(d){return fw(d,c)})};
+g.yna=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return gw(a).then(function(e){return fw(e,c)})};
+mw=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
+b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
+b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.Wv;for(var f=b.j.objectStoreNames,h=[],l=0;l=B},A);
+A.done.catch(function(B){e(B)})}catch(B){e(B)}});
+h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())});
+w.addEventListener("close",function(){Qv("IDB_UNEXPECTEDLY_CLOSED",{dbName:Vv(a),dbVersion:w.version});n&&n()});
+d(f())});
+h.addEventListener("error",function(){e(h.error)});
+l&&h.addEventListener("blocked",function(){l()})})};
+Cna=function(a,b,c){c=void 0===c?{}:c;return Bna(a,b,c)};
+rw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.z(function(h){if(1==h.j)return g.ra(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,mna(c),4);
+if(2!=h.j)return g.ua(h,0);f=g.va(h);throw $v(f,a,"",-1);})};
+Dna=function(a){return new Promise(function(b){bna(function(){b()},a)})};
+tw=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500};
+Ena=function(a,b){return new g.Wv("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
+g.vw=function(a,b){if(!b)throw g.aw("openWithToken",Vv(a.name));return a.open()};
+Fna=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,g.vw(ww,b),2);c=d.u;return d.return(g.kw(c,["databases"],{Ub:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.lw(f,a).then(function(){})})}))})};
+xw=function(a,b){var c;return g.z(function(d){if(1==d.j)return a?g.x(d,g.vw(ww,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
+Gna=function(a,b){var c,d;return g.z(function(e){return 1==e.j?(c=[],g.x(e,g.vw(ww,b),2)):3!=e.j?(d=e.u,g.x(e,g.kw(d,["databases"],{Ub:!0,mode:"readonly"},function(f){c.length=0;return g.ow(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
+Hna=function(a){return Gna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
+Ina=function(){var a,b,c,d;return g.z(function(e){switch(e.j){case 1:a=Iv();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(Wu&&Tu()&&!Uu()||g.yw)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.ra(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
+return g.x(e,Fna(d,zw),4);case 4:return g.x(e,xw("yt-idb-test-do-not-use",zw),5);case 5:return e.return(!0);case 2:return g.va(e),e.return(!1)}})};
+Jna=function(){if(void 0!==Aw)return Aw;Ov=!0;return Aw=Ina().then(function(a){Ov=!1;var b;if(null!=(b=Hv())&&b.j){var c;b={hasSucceededOnce:(null==(c=Iv())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Hv())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
+Bw=function(){return g.Ha("ytglobal.idbToken_")||void 0};
+g.Cw=function(){var a=Bw();return a?Promise.resolve(a):Jna().then(function(b){(b=b?zw:void 0)&&g.Fa("ytglobal.idbToken_",b);return b})};
+Kna=function(a){if(!g.Tv())throw a=new g.Wv("AUTH_INVALID",{dbName:a}),Pv(a),a;var b=g.Sv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
+Lna=function(a,b,c,d){var e,f,h,l,m,n;return g.z(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.x(p,g.Cw(),2);case 2:h=p.u;if(!h)throw l=g.aw("openDbImpl",a,b),g.T("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Pv(l),l;Uv(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Kna(a);g.ra(p,3);return g.x(p,Fna(m,h),5);case 5:return g.x(p,Cna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.va(p),g.ra(p,7),g.x(p,xw(m.actualName,
+h),9);case 9:g.ua(p,8);break;case 7:g.va(p);case 8:throw n;}})};
+Mna=function(a,b,c){c=void 0===c?{}:c;return Lna(a,b,!1,c)};
+Nna=function(a,b,c){c=void 0===c?{}:c;return Lna(a,b,!0,c)};
+Ona=function(a,b){b=void 0===b?{}:b;var c,d;return g.z(function(e){if(1==e.j)return g.x(e,g.Cw(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Uv(a);d=Kna(a);return g.x(e,rw(d.actualName,b),3)}return g.x(e,xw(d.actualName,c),0)})};
+Pna=function(a,b,c){a=a.map(function(d){return g.z(function(e){return 1==e.j?g.x(e,rw(d.actualName,b),2):g.x(e,xw(d.actualName,c),0)})});
+return Promise.all(a).then(function(){})};
+Qna=function(){var a=void 0===a?{}:a;var b,c;return g.z(function(d){if(1==d.j)return g.x(d,g.Cw(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Uv("LogsDatabaseV2");return g.x(d,Hna(b),3)}c=d.u;return g.x(d,Pna(c,a,b),0)})};
+Rna=function(a,b){b=void 0===b?{}:b;var c;return g.z(function(d){if(1==d.j)return g.x(d,g.Cw(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Uv(a);return g.x(d,rw(a,b),3)}return g.x(d,xw(a,c),0)})};
+Ew=function(a){this.AB=this.Ue=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
+this.Pv=function(){};
+this.now=Date.now;this.oy=!1;var b;this.MS=null!=(b=a.MS)?b:100;var c;this.lS=null!=(c=a.lS)?c:1;var d;this.eS=null!=(d=a.eS)?d:2592E6;var e;this.WR=null!=(e=a.WR)?e:12E4;var f;this.kS=null!=(f=a.kS)?f:5E3;var h;this.Te=null!=(h=a.Te)?h:void 0;this.YB=!!a.YB;var l;this.KB=null!=(l=a.KB)?l:.1;var m;this.PD=null!=(m=a.PD)?m:10;a.handleError&&(this.handleError=a.handleError);a.Pv&&(this.Pv=a.Pv);a.oy&&(this.oy=a.oy);a.AB&&(this.AB=a.AB);this.fb=a.fb;this.ll=a.ll;this.dg=a.dg;this.Uf=a.Uf;this.No=a.No;
+this.OJ=a.OJ;this.jJ=a.jJ;Dw(this)&&(!this.fb||this.fb("networkless_logging"))&&Sna(this)};
+Sna=function(a){Dw(a)&&!a.oy&&(a.Ue=!0,a.YB&&Math.random()<=a.KB&&a.dg.rX(a.Te),Tna(a),a.Uf.mf()&&a.CA(),a.Uf.Na(a.OJ,a.CA.bind(a)),a.Uf.Na(a.jJ,a.TN.bind(a)))};
+Fw=function(a,b){var c,d;return g.z(function(e){switch(e.j){case 1:if(!Dw(a))throw c=g.aw("immediateSend"),c;if(void 0===b.id){e.Ma(2);break}return g.x(e,a.dg.RZ(b.id,a.Te),3);case 3:(d=e.u)?b=d:a.Pv(Error("The request cannot be found in the database."));case 2:if(Una(a,b,a.eS)){e.Ma(4);break}a.Pv(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ma(5);break}return g.x(e,a.dg.vv(b.id,a.Te),5);case 5:return e.return();case 4:b.skipRetry||(b=Vna(a,b));if(!b){e.Ma(0);
+break}if(!b.skipRetry||void 0===b.id){e.Ma(8);break}return g.x(e,a.dg.vv(b.id,a.Te),8);case 8:a.No(b.url,b.options,!!b.skipRetry),g.pa(e)}})};
+Vna=function(a,b){if(!Dw(a))throw g.aw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
+b.options.onError=function(e,f){var h,l,m;return g.z(function(n){switch(n.j){case 1:h=Wna(f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.PD)){n.Ma(2);break}if(!a.Uf.nA){n.Ma(3);break}return g.x(n,a.Uf.nA(),3);case 3:if(a.Uf.mf()){n.Ma(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ma(6);break}return g.x(n,a.dg.oK(b.id,a.Te,!1),6);case 6:return n.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&
+!h&&a.potentialEsfErrorCounter>a.PD)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ma(8);break}return b.sendCount=c?!1:!0};
+Tna=function(a){if(!Dw(a))throw g.aw("retryQueuedRequests");a.dg.XO("QUEUED",a.Te).then(function(b){b&&!Una(a,b,a.WR)?a.ll.Fh(function(){return g.z(function(c){if(1==c.j)return void 0===b.id?c.Ma(2):g.x(c,a.dg.oK(b.id,a.Te),2);Tna(a);g.pa(c)})}):a.Uf.mf()&&a.CA()})};
+Gw=function(a,b){a.yT&&!a.Uf.mf()?a.yT(b):a.handleError(b)};
+Dw=function(a){return!!a.Te||a.AB};
+Wna=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
+Hw=function(a,b){this.version=a;this.args=b};
+Iw=function(a,b){this.topic=a;this.j=b};
+Kw=function(a,b){var c=Jw();c&&c.publish.call(c,a.toString(),a,b)};
+Yna=function(a,b,c){var d=Jw();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ha("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Lw[e])try{if(h&&a instanceof Iw&&a!=f)try{var m=a.j,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Kq){var p=new m;m.Kq=p.version}var q=m.Kq}catch(v){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
+g.cc(n.args))}catch(v){throw v.message="yt.pubsub2.Data.deserialize(): "+v.message,v;}}catch(v){throw v.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+v.message,v;}b.call(c||window,h)}catch(v){g.gu(v)}},Xna[a.toString()]?g.Fv()?g.Vn.Fh(l):g.xu(l,0):l())});
+Lw[e]=!0;Mw[a.toString()]||(Mw[a.toString()]=[]);Mw[a.toString()].push(e);return e};
+Ow=function(a,b,c){var d=Yna(a,function(e){b.apply(c,arguments);Nw(d)},c);
+return d};
+Nw=function(a){var b=Jw();b&&("number"===typeof a&&(a=[a]),g.tc(a,function(c){b.unsubscribeByKey(c);delete Lw[c]}))};
+Jw=function(){return g.Ha("ytPubsub2Pubsub2Instance")};
+Pw=function(a,b){tw.call(this,a,b);this.options=b;Uv(a)};
+Zna=function(a,b){var c;return function(){c||(c=new Pw(a,b));return c}};
+g.Qw=function(a,b){return Zna(a,b)};
+$na=function(){if(Rw)return Rw();var a={};Rw=g.Qw("LogsDatabaseV2",{iq:(a.LogsRequestsStore={Jn:2},a),Mw:!1,upgrade:function(b,c,d){c(2)&&g.iw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.nw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&jw(b,"sapisid");c(9)&&jw(b,"SWHealthLog")},
+version:9});return Rw()};
+Sw=function(a){return g.vw($na(),a)};
+Tw=function(a,b){var c,d,e,f;return g.z(function(h){if(1==h.j)return c={startTime:(0,g.U)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,Sw(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,g.pna(d,"LogsRequestsStore",e),3);f=h.u;c.g5=(0,g.U)();aoa(c);return h.return(f)})};
+boa=function(a,b){var c,d,e,f,h,l,m;return g.z(function(n){if(1==n.j)return c={startTime:(0,g.U)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,Sw(b),2);if(3!=n.j)return d=n.u,e=g.Q("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.U)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,g.kw(d,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(p){return g.qw(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"===
+a&&(m.status="QUEUED",q.update(m)))})}),3);
+c.g5=(0,g.U)();aoa(c);return n.return(m)})};
+coa=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,Sw(b),2);c=d.u;return d.return(g.kw(c,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.lw(f,h).then(function(){return h})})}))})};
+Uw=function(a,b,c){c=void 0===c?!0:c;var d;return g.z(function(e){if(1==e.j)return g.x(e,Sw(b),2);d=e.u;return e.return(g.kw(d,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.lw(h,l).then(function(){return l})):g.cw.resolve(void 0)})}))})};
+Vw=function(a,b){var c;return g.z(function(d){if(1==d.j)return g.x(d,Sw(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
+doa=function(a){var b,c;return g.z(function(d){if(1==d.j)return g.x(d,Sw(a),2);b=d.u;c=(0,g.U)()-2592E6;return g.x(d,g.kw(b,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){return g.ow(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
+eoa=function(){g.z(function(a){return g.x(a,Qna(),0)})};
+aoa=function(a){g.T("nwl_csi_killswitch")||.01>=Math.random()&&Kw("nwl_transaction_latency_payload",a)};
+goa=function(a){return g.vw(foa(),a)};
+hoa=function(a){var b,c;g.z(function(d){if(1==d.j)return g.x(d,goa(a),2);b=d.u;c=(0,g.U)()-2592E6;return g.x(d,g.kw(b,["SWHealthLog"],{mode:"readwrite",Ub:!0},function(e){return g.ow(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
+ioa=function(a){var b;return g.z(function(c){if(1==c.j)return g.x(c,goa(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})};
+g.Ww=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Qu()){if(a){a=g.lg(g.mg(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");h.m3a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 "));h.l3a&&(a=a.replace(/(\r\n|\n|\r)/g,"
"));h.n3a&&(a=a.replace(/(\t+)/g,'$1'));h=xg(a);a=g.Tg(g.fi(g.wg(h).toString()))}g.fb(a)||
+(h=lh("IFRAME",{src:'javascript:""',style:"display:none"}),$g(h).body.appendChild(h))}}else if(e)Bu(a,b,"POST",e,d);else if(g.Q("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Bu(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Aga({url:a});if(l.B&&l.u||l.C){var m=mi(g.pi(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==yi(a,"ri"));break b}}catch(p){}n=!1}n?joa(a)?(b&&b(),h=!0):h=!1:h=!1;h||koa(a,b)}};
+joa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
+koa=function(a,b){var c=new Image,d=""+loa++;Xw[d]=c;c.onload=c.onerror=function(){b&&Xw[d]&&b();delete Xw[d]};
+c.src=a};
+Yw=function(){this.j=new Map;this.u=!1};
+Zw=function(){if(!Yw.j){var a=g.Ha("yt.networkRequestMonitor.instance")||new Yw;g.Fa("yt.networkRequestMonitor.instance",a);Yw.j=a}return Yw.j};
+dx=function(){cx||(cx=new zv("yt.offline"));return cx};
+moa=function(a){if(g.T("offline_error_handling")){var b=dx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);dx().set("errors",b,2592E3,!0)}};
+ex=function(){g.Uf.call(this);var a=this;this.u=!1;this.j=ika();this.j.Na("networkstatus-online",function(){if(a.u&&g.T("offline_error_handling")){var b=dx().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Rv(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.gu(d)}dx().set("errors",{},2592E3,!0)}}})};
+noa=function(){if(!ex.j){var a=g.Ha("yt.networkStatusManager.instance")||new ex;g.Fa("yt.networkStatusManager.instance",a);ex.j=a}return ex.j};
+g.fx=function(a){a=void 0===a?{}:a;g.Uf.call(this);var b=this;this.j=this.D=0;this.u=noa();var c=g.Ha("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.VD?(this.VD=a.VD,c("networkstatus-online",function(){ooa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ooa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
+ooa=function(a,b){a.VD?a.j?(g.Vn.Tk(a.D),a.D=g.Vn.Fh(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.U)())},a.VD-((0,g.U)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.U)()):a.dispatchEvent(b)};
+gx=function(){Ew.call(this,{dg:{rX:doa,vv:Vw,XO:boa,RZ:coa,oK:Uw,set:Tw},Uf:poa(),handleError:g.gu,Pv:iu,No:qoa,now:g.U,yT:moa,ll:g.Ev(),OJ:"publicytnetworkstatus-online",jJ:"publicytnetworkstatus-offline",YB:!0,KB:.1,PD:g.cu("potential_esf_error_limit",10),fb:g.T,oy:!(g.Tv()&&"www.youtube-nocookie.com"!==g.qi(document.location.toString()))});this.u=new g.Xi;g.T("networkless_immediately_drop_all_requests")&&eoa();Rna("LogsDatabaseV2")};
+hx=function(){var a=g.Ha("yt.networklessRequestController.instance");a||(a=new gx,g.Fa("yt.networklessRequestController.instance",a),g.T("networkless_logging")&&g.Cw().then(function(b){a.Te=b;Sna(a);a.u.resolve();a.YB&&Math.random()<=a.KB&&a.Te&&hoa(a.Te);g.T("networkless_immediately_drop_sw_health_store")&&roa(a)}));
+return a};
+roa=function(a){var b;g.z(function(c){if(!a.Te)throw b=g.aw("clearSWHealthLogsDb"),b;return c.return(ioa(a.Te).catch(function(d){a.handleError(d)}))})};
+qoa=function(a,b,c){g.T("use_cfr_monitor")&&soa(a,b);if(g.T("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.U)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.U)())}c&&0===Object.keys(b).length?g.Ww(a):g.Cu(a,b)};
+poa=function(){ix||(ix=new g.fx({MZ:!0,XX:!0}));return ix};
+soa=function(a,b){var c=b.onError?b.onError:function(){};
+b.onError=function(e,f){Zw().requestComplete(a,!1);c(e,f)};
+var d=b.onSuccess?b.onSuccess:function(){};
+b.onSuccess=function(e,f){Zw().requestComplete(a,!0);d(e,f)}};
+toa=function(a,b){function c(d){var e=jx().mf();if(!kx()||!d||e&&g.T("vss_networkless_bypass_write"))lx(a,b);else{var f={url:a,options:b,timestamp:(0,g.U)(),status:"NEW",sendCount:0};Tw(f,d).then(function(h){f.id=h;jx().mf()&&mx(f)}).catch(function(h){mx(f);
+nx(h)})}}
+b=void 0===b?{}:b;g.T("skip_is_supported_killswitch")?g.Cw().then(function(d){c(d)}):c(Bw())};
+ox=function(a,b,c){function d(e){if(kx()&&e){var f={url:a,options:b,timestamp:(0,g.U)(),status:"NEW",sendCount:0};g.T("nwl_skip_retry")&&(f.skipRetry=c);if(jx().mf()||g.T("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var h=b.onError?b.onError:function(){};
+b.onError=function(l,m){return g.z(function(n){if(1==n.j)return g.x(n,Tw(f,e).catch(function(p){nx(p)}),2);
+h(l,m);g.pa(n)})}}lx(a,b,f.skipRetry)}else Tw(f,e).catch(function(l){lx(a,b,g.T("nwl_skip_retry")&&c);
+nx(l)})}else lx(a,b,g.T("nwl_skip_retry")&&c)}
+b=void 0===b?{}:b;g.T("skip_is_supported_killswitch")?g.Cw().then(function(e){d(e)}):d(Bw())};
+px=function(a,b){function c(d){if(kx()&&d){var e={url:a,options:b,timestamp:(0,g.U)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
+e.options.onSuccess=function(m,n){g.T("use_cfr_monitor")&&Zw().requestComplete(e.url,!0);void 0!==e.id?Vw(e.id,d):f=!0;g.T("vss_network_hint")&&jx().Co(!0);h(m,n)};
+if(g.T("use_cfr_monitor")){var l=b.onError?b.onError:function(){};
+e.options.onError=function(m,n){Zw().requestComplete(e.url,!1);l(m,n)}}lx(e.url,e.options);
+Tw(e,d).then(function(m){e.id=m;f&&Vw(e.id,d)}).catch(function(m){nx(m)})}else lx(a,b)}
+b=void 0===b?{}:b;g.T("skip_is_supported_killswitch")?g.Cw().then(function(d){c(d)}):c(Bw())};
+uoa=function(){var a=Bw();if(!a)throw g.aw("throttleSend");qx||(qx=g.Vn.Fh(function(){var b;return g.z(function(c){if(1==c.j)return g.x(c,boa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.x(c,mx(b),3):(g.Vn.Tk(qx),qx=0,c.return());qx&&(qx=0,uoa());g.pa(c)})},100))};
+mx=function(a){var b,c,d;return g.z(function(e){switch(e.j){case 1:b=Bw();if(!b)throw c=g.aw("immediateSend"),c;if(void 0===a.id){e.Ma(2);break}return g.x(e,coa(a.id,b),3);case 3:(d=e.u)?a=d:iu(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.U)()-f)){e.Ma(4);break}iu(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ma(5);break}return g.x(e,Vw(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=voa(a));
+f=a;if(g.T("use_request_time_ms_header")){var h;if(null==f?0:null==(h=f.options)?0:h.headers)f.options.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.U)()))}else{var l,m;if(null==f?0:null==(l=f.options)?0:null==(m=l.postParams)?0:m.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.U)())}a=f;if(!a){e.Ma(0);break}if(!a.skipRetry||void 0===a.id){e.Ma(8);break}return g.x(e,Vw(a.id,b),8);case 8:lx(a.url,a.options,!!a.skipRetry),g.pa(e)}})};
+voa=function(a){var b=Bw();if(!b)throw g.aw("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){};
+a.options.onError=function(e,f){var h,l,m;return g.z(function(n){switch(n.j){case 1:g.T("use_cfr_monitor")&&Zw().requestComplete(a.url,!1);h=Wna(f);if(!(g.T("nwl_consider_error_code")&&h||!g.T("nwl_consider_error_code")&&woa()<=g.cu("potential_esf_error_limit",10))){n.Ma(2);break}if(g.T("skip_checking_network_on_cfr_failure")&&(!g.T("skip_checking_network_on_cfr_failure")||Zw().isEndpointCFR(a.url))){n.Ma(3);break}return g.x(n,jx().nA(),3);case 3:if(jx().mf()){n.Ma(2);break}c(e,f);if(!g.T("nwl_consider_error_code")||
+void 0===(null==(l=a)?void 0:l.id)){n.Ma(6);break}return g.x(n,Uw(a.id,b,!1),6);case 6:return n.return();case 2:if(g.T("nwl_consider_error_code")&&!h&&woa()>g.cu("potential_esf_error_limit",10))return n.return();g.Ha("ytNetworklessLoggingInitializationOptions")&&rx.potentialEsfErrorCounter++;sx++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ma(8);break}return 1>a.sendCount?g.x(n,Uw(a.id,b),12):g.x(n,Vw(a.id,b),8);case 12:g.Vn.Fh(function(){jx().mf()&&uoa()},5E3);
+case 8:c(e,f),g.pa(n)}})};
+var d=a.options.onSuccess?a.options.onSuccess:function(){};
+a.options.onSuccess=function(e,f){var h;return g.z(function(l){if(1==l.j)return g.T("use_cfr_monitor")&&Zw().requestComplete(a.url,!0),void 0===(null==(h=a)?void 0:h.id)?l.Ma(2):g.x(l,Vw(a.id,b),2);g.T("vss_network_hint")&&jx().Co(!0);d(e,f);g.pa(l)})};
+return a};
+jx=function(){if(g.T("use_new_nwl"))return poa();tx||(tx=new g.fx({MZ:!0,XX:!0}));return tx};
+nx=function(a){jx().mf()?g.gu(a):moa(a)};
+lx=function(a,b,c){c&&0===Object.keys(b).length?g.Ww(a):g.Cu(a,b)};
+kx=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?rx.isNwlInitialized:!1};
+woa=function(){return g.Ha("ytNetworklessLoggingInitializationOptions")?rx.potentialEsfErrorCounter:sx};
+g.ux=function(a){this.config_=null;a?this.config_=a:Sma()&&(this.config_=g.xv())};
+g.vx=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.yQ.bypassNetworkless?(f.method="POST",d.yQ.writeThenSend?g.T("use_new_nwl_wts")?hx().writeThenSend(n,f):toa(n,f):g.T("use_new_nwl_saw")?hx().sendAndWrite(n,f):px(n,f)):g.T("web_all_payloads_via_jspb")?g.Cu(n,f):(f.method="POST",f.postParams||(f.postParams={}),g.Cu(n,f))}catch(q){if("InvalidAccessError"==q.name)iu(Error("An extension is blocking network request."));else throw q;}}
+!g.Q("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&iu(new g.Rv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Rv("innertube xhrclient not ready",b,c,d),g.gu(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
+onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
+onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
+onError:function(p,q){if(d.onError)d.onError(q)},
+onFetchError:function(p){if(d.onError)d.onError(p)},
+timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.FP;h&&(c=h);h=ana(a.config_.GP||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.uI&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=ou(""+c+b,l);g.T("use_new_nwl")&&hx().Ue||!g.T("use_new_nwl")&&
+kx()?Jna().then(function(p){e(p)}):e(!1)};
+xoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=wx+"VisibilityState";if(b in a)return a[b]};
+xx=function(a,b){var c;Nl(a,function(d){c=b[d];return!!c});
+return c};
+yx=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in yoa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
+if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}};
+zoa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
+Aoa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Bf(zx,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Pa(e[4])&&g.Pa(d)&&g.Ff(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
+g.Ax=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Aoa(a,b,c,d);if(e)return e;e=++Boa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new yx(l);if(!vh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new yx(l);
+l.currentTarget=a;return c.call(a,l)};
+h=hu(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Coa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);zx[e]=[a,b,c,h,d];return e};
+Doa=function(a,b){var c=document.body||document;return g.Ax(c,"click",function(d){var e=vh(d.target,function(f){return f===c||b(f)},!0);
+e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
+g.Bx=function(a){a&&("string"==typeof a&&(a=[a]),g.tc(a,function(b){if(b in zx){var c=zx[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Coa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete zx[b]}}))};
+g.Cx=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
+Dx=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Cx(a)};
+Ex=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
+Fx=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.Gg(b,c)};
+g.Gx=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
+g.Hx=function(a){a=a||window.event;return!1===a.returnValue||a.LP&&a.LP()};
+g.Ix=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
+Eoa=function(a){return Doa(a,function(b){return g.go(b,"ytp-ad-has-logging-urls")})};
+g.Foa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ax(a,b,function(){g.Bx(e);c.apply(a,arguments)},d)};
+Jx=function(a){for(var b in zx)zx[b][0]==a&&g.Bx(b)};
+Kx=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.Y=g.Ax(window,"mousemove",(0,g.Ta)(this.V,this));this.N=g.yu((0,g.Ta)(this.W,this),25)};
+Nx=function(){var a={},b=void 0===a.n3?!1:a.n3;a=void 0===a.YX?!0:a.YX;if(null==g.Ha("_lact",window)){var c=parseInt(g.Q("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Lx();g.Ax(document,"keydown",Lx);g.Ax(document,"keyup",Lx);g.Ax(document,"mousedown",Lx);g.Ax(document,"mouseup",Lx);b?g.Ax(window,"touchmove",function(){Mx("touchmove",200)},{passive:!0}):(g.Ax(window,"resize",function(){Mx("resize",200)}),a&&g.Ax(window,"scroll",function(){Mx("scroll",
+200)}));
+new Kx(function(){Mx("mouse",100)});
+g.Ax(document,"touchstart",Lx,{passive:!0});g.Ax(document,"touchend",Lx,{passive:!0})}};
+Mx=function(a,b){Ox[a]||(Ox[a]=!0,g.Vn.Fh(function(){Lx();Ox[a]=!1},b))};
+Lx=function(){null==g.Ha("_lact",window)&&(Nx(),g.Ha("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ha("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ha("ytglobal.ytUtilActivityCallback_"))&&a()};
+Px=function(){var a=g.Ha("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
+g.Ux=function(a,b,c){var d=g.Qx();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Rx[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
+try{g.Sx[a]?h():g.xu(h,0)}catch(l){g.gu(l)}},c);
+Rx[e]=!0;Tx[a]||(Tx[a]=[]);Tx[a].push(e);return e}return 0};
+g.Vx=function(a){var b=g.Qx();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.tc(a,function(c){b.unsubscribeByKey(c);delete Rx[c]}))};
+g.Wx=function(a,b){var c=g.Qx();return c?c.publish.apply(c,arguments):!1};
+Hoa=function(a){var b=g.Qx();if(b)if(b.clear(a),a)Goa(a);else for(var c in Tx)Goa(c)};
+g.Qx=function(){return g.C.ytPubsubPubsubInstance};
+Goa=function(a){Tx[a]&&(a=Tx[a],g.tc(a,function(b){Rx[b]&&delete Rx[b]}),a.length=0)};
+Xx=function(a){this.policy=a;this.store=[];this.j={}};
+Joa=function(a,b){var c=Object.keys(b),d="THIS_KEY_FIELD_NOT_FILLED",e="THIS_KEY_FIELD_NOT_FILLED",f="THIS_KEY_FIELD_NOT_FILLED";c=g.r(c);for(var h=c.next();!h.done;h=c.next())h=h.value,"auth"===h?d=Ioa(b.auth):"isJspb"===h?e=JSON.stringify(b.isJspb):"cttAuthInfo"===h&&(f=Ioa(b.cttAuthInfo));b=[];d=[d,e,f];a=g.r(Object.keys(a.j));for(e=a.next();!e.done;e=a.next()){e=e.value;f=e.split("/");c=!0;for(h=0;h=a?Yx({writeThenSend:!0},g.T("flush_only_full_queue")?c:void 0,d):10<=f-h&&(Noa(d),d?gy.B=f:hy.B=f)};
+Ooa=function(a,b){g.T("web_all_payloads_via_jspb")&&iu(new g.Rv("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){$x(a);var c=ay(a),d=new Map;d.set(c,[a.payload]);b&&(fy=new b);return new g.Fh(function(e,f){fy&&fy.isReady()?iy(d,fy,e,f,{bypassNetworkless:!0},!0):e()})}};
+Poa=function(a,b){if("log_event"===a.endpoint){$x(void 0,a);var c=ay(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(fy=new b);return new g.Fh(function(e){fy&&fy.isReady()?jy(d,fy,e,{bypassNetworkless:!0},!0):e()})}};
+ay=function(a,b){var c="";if(a.jy)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Yt;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.zd(d,2,ky,c.playlistId);ly[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),my[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
+Yx=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&g.T("web_all_payloads_via_jspb")&&iu(new g.Rv("transport.flushLogs called for JSON in JSPB only experiment"));new g.Fh(function(d,e){c?(g.zu(gy.u),g.zu(gy.j),gy.j=0):(g.zu(hy.u),g.zu(hy.j),hy.j=0);if(fy&&fy.isReady())if(g.T("use_new_in_memory_storage")){var f=a,h=c,l=fy;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=Zx().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),jy(m,l,d,f)):(m=Zx().extractMatchingEntries({isJspb:h,
+cttAuthInfo:b}),n.set(b,m),iy(n,l,d,e,f));else if(h){e=g.r(Object.keys(by));for(h=e.next();!h.done;h=e.next())n=h.value,h=Zx().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0Zoa&&(a=1);au("BATCH_CLIENT_COUNTER",a);return a};
+Roa=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
+Woa=function(a,b,c){if(c.Nf())var d=1;else if(c.getPlaylistId())d=2;else return;F(a,Yt,4,c);a=a.getContext()||new hq;c=Bd(a,gq,3)||new gq;var e=new fq;e.setToken(b);g.D(e,1,d);Jd(c,12,fq,e);F(a,gq,3,c)};
+Voa=function(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=nz(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=nz(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
+Kra=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(Aua,""),c=c.replace(Bua,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Cua(a,b,c)};
+Cua=function(a,b,c){c=void 0===c?null:c;var d=Dua(a),e=document.getElementById(d),f=e&&zra(e),h=e&&!f;f?b&&b():(b&&(f=g.Ux(d,b),b=""+g.Ra(b),Eua[b]=f),h||(e=Fua(a,d,function(){zra(e)||(yra(e,"loaded","true"),g.Wx(d),g.xu(g.Va(Hoa,d),0))},c)))};
+Fua=function(a,b,c,d){d=void 0===d?null:d;var e=g.mh("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
+e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
+d&&e.setAttribute("nonce",d);g.ej(e,g.ig(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
+Dua=function(a){var b=document.createElement("a");g.zg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xg(a)};
+Wz=function(a){var b=g.za.apply(1,arguments);if(!Uz(a)||b.some(function(d){return!Uz(d)}))throw Error("Only objects may be merged.");
+b=g.r(b);for(var c=b.next();!c.done;c=b.next())Vz(a,c.value);return a};
+Vz=function(a,b){for(var c in b)if(Uz(b[c])){if(c in a&&!Uz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Vz(a[c],b[c])}else if(Xz(b[c])){if(c in a&&!Xz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Gua(a[c],b[c])}else a[c]=b[c];return a};
+Gua=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Uz(c)?a.push(Vz({},c)):Xz(c)?a.push(Gua([],c)):a.push(c);return a};
+Uz=function(a){return"object"===typeof a&&!Array.isArray(a)};
+Xz=function(a){return"object"===typeof a&&Array.isArray(a)};
+Yz=function(a,b,c,d,e,f){g.K.call(this);this.Qb=a;this.Ab=b;this.Hd=c;this.Qa=d;this.u=e;this.j=f};
+Jua=function(a,b,c){c.Rw?(Zz(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Hua(a.u,b)):Iua(a.j,c.In,b.slotId,c.ssdaiAdsConfig)};
+Lua=function(a,b,c,d,e){var f=a.Qa.get().Gf(1);Zz(a.Qb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Kua(a.Hd.get(),c,d,f.clientPlaybackNonce,f.iO,f.daiEnabled,f,e)},b)};
+aA=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!$z(a.Aa,c.value))return!1;return!0};
+bA=function(a,b){this.Uo=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
+dA=function(a){(void 0!==Fma()?Jh(Error("Biscotti id is disabled")):Eu("//googleads.g.doubleclick.net/pagead/id",ov)).then(function(){cA(!1,a)},function(b){"Biscotti id is disabled"===b.message?cA(!1,a.concat(" known failure")):(g.rz("Failed fetching bid when "+a),cA(!0,a))})};
+cA=function(a,b){g.Mv("biscottiBasedDetection",{detected:a,source:b})};
+Nua=function(a){Mua=void 0===a?!1:a};
+eA=function(a,b,c,d,e){d=void 0===d?{}:d;Mua&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Rv(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.rz(a)}};
+fA=function(a,b,c,d,e,f,h){g.K.call(this);this.Qb=a;this.Hd=b;this.mG=c;this.Da=d;this.j=e;this.Qa=f;this.Ba=h};
+gA=function(){this.u=new Map;this.j=new Map;this.B=new Map};
+hA=function(a,b){if(g.Q("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.xz(16)};
+iA=function(a,b,c){if(g.Q("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.xz(16)};
+jA=function(a,b){if(g.Q("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.xz(16)};
+kA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
+Oua=function(a,b,c,d){this.B=a;this.jf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
+lA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.rz(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
+mA=function(a,b){return b&&b.test(a)?!0:!1};
+nA=function(a){return(a=Pua&&Pua.exec(a))?a[0]:""};
+oA=function(a){var b=void 0===b?!1:b;return lA(mA(a,Qua),a,b,"Trusted Stream URL")};
+g.pA=function(a){var b=void 0===b?!1:b;return lA(mA(a,Rua),a,b,"Trusted Image URL")};
+Tua=function(a){var b=void 0===b?!1:b;return lA(mA(a,Sua),a,b,"Trusted Promoted Video Domain URL")};
+Vua=function(a){var b=void 0===b?!1:b;return lA(mA(a,Uua),a,b,"Drm Licensor URL")};
+Xua=function(a,b){b=void 0===b?!1:b;return lA(mA(a,Wua),a,b,"Captions URL")};
+Yua=function(a){a=new g.Cj(a);g.Dj(a,document.location.protocol);g.Ej(a,document.location.hostname);document.location.port&&g.Fj(a,document.location.port);return a.toString()};
+qA=function(a){a=new g.Cj(a);g.Dj(a,document.location.protocol);return a.toString()};
+g.sA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Zua++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||rA.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Od(d.thumbnails,function(e){return g.pA(e.url)})}):null;
+this.visible=this.visible;this.style=this.style;this.start=this.start};
+$ua=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
+ava=function(a,b){switch(a.style){case rA.CHAPTER_MARKER:return b?8:5;case rA.AD_MARKER:return 6;case rA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
+g.tA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
+g.uA=function(a){return"crn_"+a};
+g.vA=function(a){return"crx_"+a};
+wA=function(a,b,c,d,e){g.sA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
+xA=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
+bva=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
+cva=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new zo(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new zo(Math.max(0,b.B-b.j),0x7ffffffffffff):new zo(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new zo(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
+b.jf;a=1E3*d.startSecs;if(c){if(ae)return new BA("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={dn:new zo(a,e),UD:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.yv=new zo(a,e)}return d;default:return new BA("AdPlacementKind not supported in convertToRange.",
+{kind:e,adPlacementConfig:a})}};
+CA=function(a,b){Hw.call(this,1,arguments);this.timer=b};
+eva=function(a,b){Hw.call(this,1,arguments);this.j=a;this.timer=b};
+fva=function(){this.timing={};this.clearResourceTimings=function(){};
+this.webkitClearResourceTimings=function(){};
+this.mozClearResourceTimings=function(){};
+this.msClearResourceTimings=function(){};
+this.oClearResourceTimings=function(){}};
+gva=function(a){var b=DA(a);if(b.aft)return b.aft;a=g.Q((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d1E5*Math.random()&&(c=new g.Rv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.rz(c)),!0):!1};
+VA=function(a){iva(a);xva();a||(g.Q("TIMING_ACTION")&&au("PREVIOUS_ACTION",g.Q("TIMING_ACTION")),au("TIMING_ACTION",""))};
+ZA=function(a,b){b=void 0===b?{}:b;WA(a);PA(a);VA(a);IA(a).useGel=!0;OA(a||"").info.actionType=a;b.cttAuthInfo&&(IA(a).cttAuthInfo=b.cttAuthInfo);au(a+"TIMING_ACTION",a);XA("_start",b.startTime,a);b={actionType:QA(a)};var c=g.Bz();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);YA(b,a);HA(!0,a)};
+g.$A=function(a,b,c,d){null!==b&&(JA(c)[a]=b,(a=wva(a,b,c))&&YA(a,c,d))};
+YA=function(a,b,c){if(!g.T("web_csi_via_jspb")||(void 0===c?0:c))c=OA(b||""),Wz(c.info,a),Wz(LA(b),a),c=MA(b),b=IA(b).cttAuthInfo,SA().info(a,c,b);else{c=new zt;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=GA()&&0c.duration?d:c},{duration:0}))&&0xma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
+rB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
+g.sB=function(a,b){this.id=a;this.Ic=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
+tB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
+g.vB=function(a,b,c,d){return new tB(g.uB[a]||0,g.uB[b]||0,c,d)};
+wB=function(a){var b=g.uB.auto;return a.u===b&&a.j===b};
+yB=function(a){return xB[a.j||a.u]||"auto"};
+Fva=function(a,b){b=g.uB[b];return a.u<=b&&(!a.j||a.j>=b)};
+zB=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Ic&&!a.has(c.Ic.id)){var d=new g.sB(c.id,c.Ic);a.add(c.Ic.id);this.audioTracks.push(d)}}};
+Iva=function(a,b,c,d,e){var f={},h=new Set,l={};if(AB(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(d=c.j[m],l[d.info.j]=[d.info]);return l}if(a.V){var n={};for(q in c.j)if(c.j.hasOwnProperty(q)){var p=c.j[q].info;m=p.j;n[m]=n[m]||[];n[m].push(p)}var q=g.r(Object.keys(n));for(m=q.next();!m.done;m=q.next())BB(a,n[m.value],[]);q={};p=g.r(Object.keys(n));for(m=p.next();!m.done;m=p.next()){m=m.value;for(var v=g.r(n[m]),w=v.next();!w.done;w=v.next()){w=w.value;var y=w.itag,A=void 0,B=m+"_"+((null==(A=w.video)?
+void 0:A.fps)||0);q.hasOwnProperty(B)?!0===q[B]?l[m].push(w):f[y]=q[B]:(A=CB(a,w,b,c.isLive,!1,h),!0!==A?(f[y]=A,"disablevp9hfr"===A&&(q[B]="disablevp9hfr")):(l[m]=l[m]||[],l[m].push(w),q[B]=!0))}}}else{q=!1;if(a.Yb)for(p in c.j)if(c.j.hasOwnProperty(p)&&(m=c.j[p].info,DB(m)&&m.Td&&m.video&&1440<=m.video.j&&32a.J)return"max"+a.J;if(a.N&&b.video&&b.video.jm&&(q=d));"9"===q&&l.h&&(d=JB(l["9"]),JB(l.h)>1.5*d&&(q="h"));a.Kb&&c.isLive&&"("===q&&l.H&&1440>JB(l["("])&&(q="H");h&&e({vfmly:HB(q)});c=l[q];if(!c.length)return h&&e({novfmly:HB(q)}),Hu();
+BB(a,c,b);return Iu(new zB(c,b))};
+BB=function(a,b,c,d){d=void 0===d?[]:d;g.mc(b,function(e,f){var h=f.Pb-e.Pb;if(a.V&&!e.isVideo())return h;var l=f.video.height*f.video.width-e.video.height*e.video.width;!l&&d&&0c&&(a=a.filter(function(d){if(32a.getLastSegmentNumber())a.segments=[];else{var c=Rb(a.segments,function(d){return d.Ia>=b},a);
+0c&&(c=a.totalLength-b);a.focus(b);if(!XB(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);WB(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
+YB=function(a,b,c){a=dwa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
+ewa=function(a){a=YB(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce&&bf)fC[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;fC[e++]=55296|f>>10;f=56320|f&1023}fC[e++]=f}}f=String.fromCharCode.apply(String,fC);
+1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
+iC=function(a,b){var c;if(null==(c=hC)?0:c.encodeInto)return b=hC.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
+gwa=function(a){if(hC)return hC.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=iC(a,b);b.lengthc&&(b=b.subarray(0,c));return b};
+jC=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
+kC=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
+lC=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
+mC=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
+nC=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
+oC=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
+pC=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;ca.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.j.byteLength};
+LC=function(a,b,c){var d=new FC(c);if(!HC(d,a))return!1;d=IC(d);if(!JC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=KC(d,!0);d=a+(d.start+d.pos-b)+e;d=9b;b++)c=256*c+QC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+QC(a),d*=128;return b?c-d:c};
+NC=function(a){var b=KC(a,!0);a.pos+=b};
+zwa=function(a){if(!JC(a,440786851,!0))return null;var b=a.pos;KC(a,!1);var c=KC(a,!0)+a.pos-b;a.pos=b+c;if(!JC(a,408125543,!1))return null;KC(a,!0);if(!JC(a,357149030,!0))return null;var d=a.pos;KC(a,!1);var e=KC(a,!0)+a.pos-d;a.pos=d+e;if(!JC(a,374648427,!0))return null;var f=a.pos;KC(a,!1);var h=KC(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
+l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
+RC=function(a){var b=a.pos;a.pos=0;var c=1E6;HC(a,[408125543,357149030,2807729])&&(c=MC(a));a.pos=b;return c};
+Awa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!SC(a)||!JC(a,160))return a.pos=c,NaN;KC(a,!0);var d=a.pos;if(!JC(a,161))return a.pos=c,NaN;KC(a,!0);QC(a);var e=QC(a)<<8|QC(a);a.pos=d;if(!JC(a,155))return a.pos=c,NaN;d=MC(a);a.pos=c;return(e+d)*b/1E9};
+SC=function(a){if(!Bwa(a)||!JC(a,524531317))return!1;KC(a,!0);return!0};
+Bwa=function(a){if(a.Uv()){if(!JC(a,408125543))return!1;KC(a,!0)}return!0};
+HC=function(a,b){for(var c=0;cd.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=XC(a,b);c=WC(c,NB(a));return c.timedOut+c.j+ +(b.Vl&&!c.C)b.jm?1E3*Math.pow(b.Gi,c-b.jm):0;return 0===b?!0:a.J+b<(0,g.U)()};
+ZC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new Hwa(a)};
+$C=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)};
+aD=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
+bD=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new aD(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0=b.range.start+b.Gb&&a.range.start+a.Gb+a.u<=b.range.start+b.Gb+b.u:a.Ia===b.Ia&&a.Gb>=b.Gb&&(a.Gb+a.u<=b.Gb+b.u||b.Ae)};
+Swa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Sf()?(a=a.j.Dw(a),Nl(a,function(c){return Swa(c,b)})):a.Ia===b.Ia&&!!b.u&&b.Gb+b.u>a.Gb&&b.Gb+b.u<=a.Gb+a.u};
+oD=function(a,b){var c=b.Ia;a.D="updateWithSegmentInfo";a.Ia=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Lwa(a)};
+pD=function(a,b){this.j=a;this.N=this.B=null;this.D=this.Of=NaN;this.I=this.requestId=null;this.u=a[0].j.u;this.C=b||"";if(this.j[0].range&&0=c.C&&b<=c.B)return!0;return!1};
+uD=function(a,b,c,d,e,f){f=void 0===f?0:f;ZC.call(this,a,b,d,void 0);this.I=c;this.zk=f;this.index=e||new SB};
+Ywa=function(a,b,c,d,e){this.Ia=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
+vD=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
+wD=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new RB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
+DD=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
+ED=function(a){a.offsets.lengthe)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
+ID=function(a,b){b=void 0===b?!1:b;var c=pxa(a);a=b?0:a.info.I;return c||a};
+pxa=function(a){g.HD(a.info.j.info)||a.info.j.info.We();if(a.u&&6===a.info.type)return a.u.zk;if(g.HD(a.info.j.info)){var b=GD(a);var c=0;b=g.EC(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=rwa(d.value),c+=d.XK[0]/d.cL;c=c||NaN;if(!(0<=c))a:{c=GD(a);b=a.info.j.j;for(var e=d=0,f=0;zC(c,d);){var h=AC(c,d);if(1836476516===h.type)e=g.wC(h);else if(1836019558===h.type){!e&&b&&(e=xC(b));if(!e){c=NaN;break a}var l=yC(h.data,h.dataOffset,1953653094),m=e,n=yC(l.data,l.dataOffset,1952868452);
+l=yC(l.data,l.dataOffset,1953658222);var p=mC(n);mC(n);p&2&&mC(n);n=p&8?mC(n):0;var q=mC(l),v=q&1;p=q&4;var w=q&256,y=q&512,A=q&1024;q&=2048;var B=nC(l);v&&mC(l);p&&mC(l);for(var E=v=0;E=c+d)break}e.length||g.qz(new g.Rv("b189619593",""+b,""+c,""+d));return new pD(e)};
+LD=function(a,b,c,d){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d};
+txa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
+ND=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||MD(a,b);this.j=g.uB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.uB[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
+RD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1};
+iE=function(a,b){return 0<=hE(a,b)};
+xxa=function(a,b){if(!a)return NaN;b=hE(a,b);return 0<=b?a.start(b):NaN};
+jE=function(a,b){if(!a)return NaN;b=hE(a,b);return 0<=b?a.end(b):NaN};
+kE=function(a){return a&&a.length?a.end(a.length-1):NaN};
+yxa=function(a,b){a=jE(a,b);return 0<=a?a-b:0};
+lE=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return fE(d,e)};
+mE=function(a,b,c,d){g.cz.call(this);var e=this;this.Wd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.qP={error:function(){!e.isDisposed()&&e.isActive&&e.X("error",e)},
+updateend:function(){!e.isDisposed()&&e.isActive&&e.X("updateend",e)}};
+g.dz(this.Wd,this.qP);this.PA=this.isActive};
+nE=function(a,b,c,d,e){g.cz.call(this);var f=this;this.kc=a;this.Jf=b;this.id=c;this.containerType=d;this.isVideo=e;this.TP=this.bD=this.Je=null;this.appendWindowStart=this.timestampOffset=0;this.PN=fE([],[]);this.CB=!1;this.kA=zxa?[]:void 0;this.Sc=function(l){return f.X(l.type,f)};
+var h;if(null==(h=this.kc)?0:h.addEventListener)this.kc.addEventListener("updateend",this.Sc),this.kc.addEventListener("error",this.Sc)};
+oE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
+pE=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
+qE=function(a,b,c){c=void 0===c?!1:c;g.K.call(this);this.mediaSource=a;this.Jf=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.YD(this);g.M(this,this.events);this.yz=new pE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Jf.webkitMediaSourceURL,!0);a=this.mediaSource||this.Jf;az(this.events,a,["sourceopen","webkitsourceopen"],this.n2);az(this.events,a,["sourceclose","webkitsourceclose"],this.m2)};
+Axa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
+Bxa=function(a,b){rE(a)?g.Dh(function(){b(a)}):a.callback=b};
+rE=function(a){try{return"open"===sE(a)}catch(b){return!1}};
+sE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Jf.webkitSourceState){case a.Jf.SOURCE_OPEN:return"open";case a.Jf.SOURCE_ENDED:return"ended";default:return"closed"}};
+tE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
+Cxa=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Wd:a.j,f=a.u.isView()?a.u.Wd:a.u,h=new qE(a.mediaSource,a.Jf,!0);h.yz=a.yz;e=new mE(e,b,c,d);b=new mE(f,b,c,d);h.j=e;h.u=b;g.M(h,e);g.M(h,b);rE(a)||a.j.pE(a.j.wd());return h};
+Dxa=function(a,b){return uE(function(c,d){return g.Fu(c,d,4,1E3)},a,b)};
+g.Exa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=eC(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.I&&a.isLivePlayback;a.qa=Number(vD(c,zE(a,"earliestMediaSequence")))||0;if(d=Date.parse($wa(vD(c,zE(a,"mpdResponseTime")))))a.N=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Od(c.getElementsByTagName("Period"),a.X2,a);a.state=2;a.X("loaded");Vxa(a)}return a}).Wi(function(c){if(c instanceof Du){var d=c.xhr;
+a.Fg=d.status}a.state=3;a.X("loaderror");return Jh(d)})};
+Xxa=function(a,b,c){return Wxa(new vE(a,b,c),a)};
+AE=function(a){return a.isLive&&(0,g.U)()-a.W>=a.I};
+Vxa=function(a){var b=a.I;isFinite(b)&&(AE(a)?a.refresh():(b=Math.max(0,a.W+b-(0,g.U)()),a.B||(a.B=new g.Zn(a.refresh,b,a),g.M(a,a.B)),a.B.start(b)))};
+Yxa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
+BE=function(a){return a.yc?a.yc-(a.D||a.timestampOffset):0};
+CE=function(a){return a.Kb?a.Kb-(a.D||a.timestampOffset):0};
+DE=function(a){if(!isNaN(a.V))return a.V;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ea&&(a.V=b);return b}if(a.isLive&&(d=b[c],d.zk))return d.zk}return NaN};
+Zxa=function(a,b){a=Cca(a.j,function(d){return d.index.isLoaded()});
+if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c(0,g.U)()-1E3*a))return 0;a=g.Qz("yt-player-quality");if("string"===typeof a){if(a=g.uB[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;yma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return TD(h)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
+c=c.videoInfos[0].video;e=Math.min(JE("1",c.fps),JE("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=JE("1",30),b.perfCap30=c,a=Math.min(a,c),c=JE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
+ME=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ya=this.keySystemAccess=null;this.Tt=this.Ut=-1;this.Hk=null;this.B="";this.C=!!d&&d.fb("edge_nonprefixed_eme");this.B=d?g.LE(d,"html5_hdcp_probing_stream_url"):""};
+OE=function(a){return a.C?!1:!a.keySystemAccess&&!!NE()&&"com.microsoft.playready"===a.keySystem};
+PE=function(a){return"com.microsoft.playready"===a.keySystem};
+QE=function(a){return!a.keySystemAccess&&!!NE()&&"com.apple.fps.1_0"===a.keySystem};
+RE=function(a){return"com.youtube.fairplay"===a.keySystem};
+g.SE=function(a){return"fairplay"===a.flavor};
+NE=function(){var a=window,b=a.MSMediaKeys;Tu()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
+UE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.bE&&!g.Qu())return Bo("45");if(g.yw||g.Dc)return a.fb("edge_nonprefixed_eme");if(g.pB)return Bo("47");if(g.Zv){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.TE(a,"html5_safari_desktop_eme_min_version"))return Bo(a)}return!0};
+qya=function(a,b,c,d){var e=Ru(),f=(c=e||c&&Tu())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.t(f),g.t(VE.playready)):[].concat(g.t(VE.playready),g.t(f))};
+WE=function(a,b,c,d,e){d=void 0===d?!1:d;g.K.call(this);this.experiments=b;this.useCobaltWidevine=d;this.ma=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c)};
+sya=function(a,b){a.callback=b;a.B=[];UE(a.experiments)?XE(a):rya(a)};
+XE=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=tya(a,c);navigator.requestMediaKeySystemAccess(b,d).then(hu(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(PE(c)){e=ZD();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.j[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())uya(a,c,h.value);if(e.videoCapabilities)for(e=
+g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())uya(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),XE(a)):a.callback(a.B)}}),hu(function(){a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;
+a.D||a.j.shift();XE(a)}))}};
+uya=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
+tya=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};PE(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.bE&&Ou("windows nt")&&!a.K("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
+f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&(Zu()||Pu())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
+rya=function(a){if(NE()&&g.Zv)a.B.push(new ME("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=vya(),c=g.Ub(a.j,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
+c&&a.B.push(a.u[c]);a.j=[]}a.callback(a.B)};
+vya=function(){var a=NE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=ZD();
+return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
+wya=function(){this.j=0};
+xya=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=ju(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
+g.TE=function(a,b){return Number(a.flags[b])||0};
+g.LE=function(a,b){return(a=a.flags[b])?a.toString():""};
+zya=function(a){return yya.then(a)};
+YE=function(a,b,c){this.experiments=a;this.Y=b;this.ra=void 0===c?!1:c;this.J=!!g.Ha("cast.receiver.platform.canDisplayType");this.I={};this.V=!1;this.u=new Map;this.N=!0;this.D=!this.experiments.fb("html5_disable_protected_hdr");this.j=this.B=!1;this.W=this.experiments.fb("html5_disable_vp9_encrypted");a=g.Ha("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
+Lva=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.We()&&Ru()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(TD(b)&&a.V)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(FB(a,GB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24=f&&f>d&&!0===Lva(a,e,c)&&(d=f)}return d};
+g.$E=function(a,b){b=void 0===b?!1:b;return ZE(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(ZD(),"application/x-mpegURL")?!0:!1};
+Cya=function(a){Bya(function(){for(var b=g.r(Object.keys(GB)),c=b.next();!c.done;c=b.next())FB(a,GB[c.value])})};
+FB=function(a,b){b.name in a.I||(a.I[b.name]=Dya(a,b));return a.I[b.name]};
+Dya=function(a,b){if(a.C)return!!a.C[b.name];if(b===GB.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===GB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',
+a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
+Eya=function(a){a.N=!1;a.j=!0};
+Fya=function(a){a.B||(a.B=!0,a.j=!0)};
+Gya=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).nY);a.u.set(b,{nY:c+1,jS:Math.pow(2,c+1)});a.j=!0};
+aF=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Hya(a)}};
+Iya=function(a){a.j||(Bya(function(){Hya(a)}),a.j=!0)};
+Hya=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.U)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Fu(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.U)();5b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);dF=new Uint8Array(256);eF=cF(256);fF=cF(256);gF=cF(256);hF=cF(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;dF[f]=e;b=e<<1^(e>>7&&283);var h=b^e;eF[f]=b<<24|e<<16|e<<8|h;fF[f]=h<<24|eF[f]>>>8;gF[f]=e<<24|fF[f]>>>8;hF[f]=e<<24|gF[f]>>>8}Jya=!0}e=cF(44);for(c=0;4>c;c++)e[c]=
+a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(dF[a>>16&255]^d)<<24|dF[a>>8&255]<<16|dF[a&255]<<8|dF[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
+Kya=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.j=16};
+Lya=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=eF[c>>>24]^fF[d>>16&255]^gF[e>>8&255]^hF[f&255]^b[n++],l=eF[d>>>24]^fF[e>>16&255]^gF[f>>8&255]^hF[c&255]^b[n++],m=eF[e>>>24]^fF[f>>16&255]^gF[c>>8&255]^hF[d&255]^b[n++],f=eF[f>>>24]^fF[c>>16&255]^gF[d>>8&255]^hF[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=dF[c>>>24]^h>>>24;a[1]=dF[d>>16&255]^h>>16&255;a[2]=dF[e>>8&255]^
+h>>8&255;a[3]=dF[f&255]^h&255;h=b[41];a[4]=dF[d>>>24]^h>>>24;a[5]=dF[e>>16&255]^h>>16&255;a[6]=dF[f>>8&255]^h>>8&255;a[7]=dF[c&255]^h&255;h=b[42];a[8]=dF[e>>>24]^h>>>24;a[9]=dF[f>>16&255]^h>>16&255;a[10]=dF[c>>8&255]^h>>8&255;a[11]=dF[d&255]^h&255;h=b[43];a[12]=dF[f>>>24]^h>>>24;a[13]=dF[c>>16&255]^h>>16&255;a[14]=dF[d>>8&255]^h>>8&255;a[15]=dF[e&255]^h&255};
+lF=function(){if(!jF&&!g.yw){if(kF)return kF;var a;kF=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=kF)?0:b.importKey)&&(null==(c=kF)?0:c.sign)&&(null==(d=kF)?0:d.encrypt))return kF;kF=void 0}};
+g.mF=function(a){this.C=a};
+g.nF=function(a){this.u=a};
+oF=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
+Mya=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],v,w,y,A=0;64>A;)16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=q+pF[A]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=v+w,l+=v,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=
+d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=p+pF[A]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=v+w,h+=v,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=n+pF[A]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
+~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=v+w,f+=v,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(v=d[A-2],w=d[A-15],y=d[A-7]+d[A-16]+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[A]=y),v=m+pF[A]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+v,e=v+w,A++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
+l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
+Oya=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Nya(a);return b};
+Nya=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
+Pya=function(a){this.j=a};
+Qya=function(a,b,c){a=new oF(a.j);a.update(b);a.update(c);b=Oya(a);a.update(a.D);a.update(b);b=Oya(a);a.reset();return b};
+Rya=function(a){this.u=a};
+Sya=function(a,b,c,d){var e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(a.j){m.Ma(2);break}e=a;return g.x(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.x(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
+Tya=function(a,b,c){a.B||(a.B=new Pya(a.u));return Qya(a.B,b,c)};
+Uya=function(a,b,c){var d,e;return g.z(function(f){if(1==f.j){d=lF();if(!d)return f.return(Tya(a,b,c));g.ra(f,3);return g.x(f,Sya(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.va(f);g.rz(e);jF=!0;return f.return(Tya(a,b,c))})};
+rF=function(){this.B=this.j=0;this.u=Array.from({length:qF.length}).fill(0)};
+Vya=function(){};
+Wya=function(a){this.name=a;this.startTimeMs=(0,g.U)();this.j=!1};
+Xya=function(){this.profiles=new Vya};
+sF=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new rF),a.profiles[b].dh(c,d))};
+tF=function(){};
+uF=function(){g.mF.apply(this,arguments)};
+vF=function(){g.nF.apply(this,arguments)};
+Yya=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
+Zya=function(a){a.u||(a.u=new uF(a.j));return a.u};
+wF=function(a){try{return Ec(a)}catch(b){return null}};
+$ya=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?wF(b.clientKey):null;var c=b.encryptedClientKey?wF(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.U)():null;a&&c&&d&&(this.j=new Yya(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=wF(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
+xF=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
+yF=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;aNumber(d.get("dhmu",e.toString())));this.Ul=e;this.va=eE();this.fm=g.LF;this.Bk=ev(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.jh=!(!b||!b.embedsEnablePfpImaIntegration||
+this.K("embeds_pfp_ima_integration_killswitch"));this.ra=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.pfpChazalUi=this.jh||ev(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.K("embeds_pfp_chazal_ui_killswitch"));var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.Jk=g.MF(this)&&!this.Bk||ev(!NF(this)&&!OF(this)&&!this.D,h);this.Fk=b?!!b.mobileIphoneSupportsInlinePlayback:ev(!1,a.playsinline);h=this.isMobile&&PF&&null!=QF&&0=QF;e=b?b.useNativeControls:
+a.use_native_controls;this.I=g.MF(this)&&this.isMobile;d=this.isMobile&&!this.I;e=RF(this)||!h&&ev(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.cf=this.isMobile;this.color=fv("red",b?b.progressBarColor:a.color,mza);this.Zl="3"===this.controlsType||ev(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Yb=!this.u;this.Kk=(e=!this.Yb&&!OF(this)&&!this.N&&!this.D&&!NF(this))&&!this.Zl&&"1"===this.controlsType;this.Nc=g.SF(this)&&e&&"0"===
+this.controlsType&&!this.Kk;this.im=this.cm=h;this.yc=("3"===this.controlsType||this.isMobile||ev(!1,a.use_media_volume))&&!this.I;this.Nk=TF&&!g.yc(601)?!1:!0;this.Tl=this.u||!1;this.He=OF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=hv("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.C||ev(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.Eb=this.K("enable_cast_for_web_unplugged")&&g.UF(this)&&h||this.K("enable_cast_on_music_web")&&
+g.VF(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&(OF(this)||g.SF(this)||g.WF(this))&&!g.XF(this);this.hm=cE()||dE();l=b?!!b.supportsAutoplayOverride:ev(!1,a.autoplayoverride);this.Ki=!this.isMobile&&!Ou("nintendo wiiu")&&!Ou("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:ev(!1,a.mutedautoplay);h=this.K("embeds_enable_muted_autoplay")&&g.MF(this);this.bf=l&&h&&this.va&&!RF(this);l=(OF(this)||NF(this))&&"blazer"===this.playerStyle;this.oi=b?!!b.disableFullscreen:!ev(!0,a.fs);this.gb=!this.oi&&
+(l||g.Wy());this.nk=this.K("uniplayer_block_pip")&&(Pu()&&Bo(58)&&!Zu()||Wu);l=g.MF(this)&&!this.Bk;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Mc=l||ev(!this.D,m);this.Ik=ev(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=Zu()&&0=QF?"_top":"_blank";this.Pe=g.WF(this);this.Gi=ev("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m="ga";break;case "books":m=
+"gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Ha=m;this.authUser=hv("",b?b.authorizedUserIndex:a.authuser);this.Ld=g.MF(this)&&(this.Ya||!vma()||this.Ak);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.Jl=((m=!this.Ld)||!!this.authUser&&
+m)&&ev(!this.N,this.C?n:void 0);this.Ng=b?b.isMobileDevice||!!b.disableKeyboardControls:ev(!1,a.disablekb);this.loop=ev(!1,a.loop);this.pageId=hv("",!this.K("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.gm=ev(!0,a.canplaylive);this.Cb=ev(!1,a.livemonitor);this.disableSharing=ev(this.D,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),
+m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.Qg(n,m))):n=null;this.Ok=n;this.mute=b?!!b.startMuted:ev(!1,a.mute);this.storeUserVolume=!this.mute&&ev("0"!==this.controlsType,b&&!this.K("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:fv(void 0,n,YF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":hv("",a.cc_lang_pref);n=fv(2,b?b.captionsLanguageLoadPolicy:
+a.cc_load_policy,YF);"3"===this.controlsType&&2===n&&(n=3);this.eb=n;this.pg=b?b.hl||"en_US":hv("en_US",a.hl);this.region=b?b.contentRegion||"US":hv("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":hv("en",a.host_language);this.Kl=!this.Ya&&Math.random()Math.random();this.Di=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new $ya(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.K("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.Fd=
+new gza;g.M(this,this.Fd);this.pk=ev(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.Q("DATASYNC_ID");this.Xl=g.Q("LOGGED_IN",!1);this.rg=(null==b?void 0:b.allowWoffleManagement)||!1;this.bk=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.K("html5_high_res_logging")?this.V=2:1>4096*Math.random()&&(this.V=1);this.K("html5_ping_queue")&&(this.Ei=new aF);this.og=g.TE(this.experiments,"html5_defer_ad_module_ms");this.Vj=g.TE(this.experiments,"html5_defer_modules_delay_time_millis")};
+$F=function(a,b,c){c=void 0===c?!1:c;a.Cd=hv(a.Cd,b.video_id);a.Ra=hv(a.Ra,b.eventid);a.Ra&&(vz=a.Ra);for(var d=[],e=g.r(Object.keys(qza)),f=e.next();!f.done;f=e.next()){f=qza[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0y.width*y.height*y.fps)y=G}else v.push(G)}else l[E]="disdrmhfr";w.reduce(function(O,
+L){return L.zg().isEncrypted()&&O},!0)&&(q=p);
+e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.K("html5_native_audio_track_switching");w.push(Eza(v,c,d,f,"93",y,p,n,m,"auto",e,q,A,B));Object.entries(l).length&&h(l);return DG(a.j,w,fG(a,b))};
+Eza=function(a,b,c,d,e,f,h,l,m,n,p,q,v,w){for(var y=0,A="",B=g.r(a),E=B.next();!E.done;E=B.next())E=E.value,A||(A=E.itag),E.audioChannels&&E.audioChannels>y&&(y=E.audioChannels,A=E.itag);e=new RD(e,"application/x-mpegURL",{audio:new LD(0,y),video:new ND(f,h,l,null,void 0,n,void 0,v),Td:q,xQ:A});a=new uza(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new FG(e,a,m)};
+Bza=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
+Dza=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Td===b.Td&&!e.audioChannels)return d}return""};
+Cza=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
+GG=function(a,b){this.j=a;this.u=b};
+Gza=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.LB(h.url,!0);if(h.s){var l=h.sp,m=Uva(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=WD(h.type,h.quality,h.itag,h.width,h.height);e.push(new GG(h,f))}}return DG(a.j,e,fG(a,b))};
+HG=function(a,b){this.j=a;this.u=b};
+Hza=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=WD(e.type,"medium","0");d.push(new HG(f,e.url))}return DG(a.j,d,fG(a,b))};
+Iza=function(a){return["OK","LIVE_STREAM_OFFLINE"].includes(a.status)};
+g.IG=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
+g.KG=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.JG(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
+g.LG=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
+g.JG=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
+Mza=function(a,b,c,d){a||(a=b&&Jza.hasOwnProperty(b)&&Kza.hasOwnProperty(b)?Kza[b]+"_"+Jza[b]:void 0);b=a;if(!b)return null;a=b.match(Lza);if(!a||5!==a.length)return null;if(a=b.match(Lza)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
+MG=function(a,b){for(var c={},d=g.r(Object.keys(Nza)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.pA(f)&&(c[Nza[e]]=f)}return c};
+NG=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
+a.sort(function(l,m){return l.width-m.width||l.height-m.height});
+for(var c=g.r(Object.keys(Oza)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Oza[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Pza(h.url);g.pA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Pza(a.url),g.pA(a)&&(b["maxresdefault.jpg"]=a));return b};
+Pza=function(a){return a.startsWith("//")?"https:"+a:a};
+Rza=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Qza[a];return null};
+OG=function(a){return a&&a.baseUrl||""};
+PG=function(a){a=g.nu(a);for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
+Sza=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.cj=b)};
+Uza=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Tza(d.baseUrl);if(!e)return;d=new g.IG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.zA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.GG=b.audioTracks||[];a.UN=b.defaultAudioTrackIndex||0;a.HG=b.translationLanguages?g.Pk(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.zA(f.languageName)}}):
+[];
+a.IB=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
+Xza=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.av(h,Vza);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.av(h,Wza))return Object.assign({is_yto_interstitial:!0},lu(h))});
+d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Fl:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Fl:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
+Fl:0===f?5:7})}}};
+Yza=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
+Zza=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
+cAa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=g.av(a,$za)||a.signatureCipher)?
+(c=lu(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=c);(c=a.projectionType)&&(b.projection_type=c);(c=a.stereoLayout)&&(b.stereo_layout=aAa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=c);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(QG[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec=
+c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=Rza(a))&&(b.eotf=c);(c=a.colorInfo)&&(c=c.primaries)&&(c=bAa[c])&&(b.primaries=c);a.isDrc&&(b.drc="1");return g.ui(b)};
+RG=function(a,b){this.type=a||"";this.id=b||""};
+g.SG=function(a){return new RG(a.substr(0,2),a.substr(2))};
+g.TG=function(a,b){this.Oa=a;this.author="";this.vy=null;this.playlistLength=0;this.zE=this.sessionData=null;this.Zf={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=ju(a,"&");var c;this.zE=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Zf=MG(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new RG("UU","PLAYER_"+c)).toString();break;
+default:if(a=b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.SG(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
+g.UG=function(a,b){this.Oa=a;this.kp=this.author="";this.vy=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ls=this.lengthText="";this.sessionData=null;this.Zf={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.kp=b.kp||"";if(a=b.endscreen_autoplay_session_data)this.vy=ju(a,"&");this.wy=b.wy;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
+b.lengthText||"";this.Ls=b.Ls||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=ju(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Zf=MG(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
+dAa=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,h,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(h=f.sets)?void 0:null==(l=h[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=g.av(m,g.VG))&&(a.JN=e)}else if(c){var n,p;(e=null==(m=c.nextButton)?void 0:null==(n=m.buttonRenderer)?void 0:null==(p=n.navigationEndpoint)?void 0:p.clickTrackingParams)&&(d.itct=e)}d.itct||(d.feature="related-auto");a.vy=d};
+eAa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
+WG=function(){var a=fAa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Pka.apply(null,[Qka.apply(null,g.t(b))].concat(g.t(c)));this.store=Ska(a,void 0,b)};
+g.XG=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.t(h),g.t(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(h)&&g.Pa(h))d[f]=g.XG(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Rv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,d3a:h,Ja:l}),g.qz(b),a}return d};
+YG=function(a){this.j=a;this.pos=0;this.u=-1};
+ZG=function(a){var b=aC(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=aC(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
+$G=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=ZG(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:ZG(a);break;case 1:a.pos+=8;break;case 2:d=ZG(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
+aH=function(a,b){if($G(a,b))return ZG(a)};
+gAa=function(a,b){if($G(a,b))return!!ZG(a)};
+bH=function(a,b){if($G(a,b)){b=ZG(a);var c=YB(a.j,a.pos,b);a.pos+=b;return c}};
+cH=function(a,b){if(a=bH(a,b))return g.gC(a)};
+hAa=function(a,b,c){if(a=bH(a,b))return c(new YG(new TB([a])))};
+dH=function(a,b){a=a instanceof Uint8Array?new TB([a]):a;return b(new YG(a))};
+iAa=function(){this.pos=0;this.u=[];this.j=new Uint8Array(4096);this.view=new DataView(this.j.buffer)};
+eH=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;cd;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(eH(a,4);127>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
+gH=function(a,b,c){void 0!==c&&(fH(a,b<<3|0),fH(a,c))};
+hH=function(a,b,c){void 0!==c&&gH(a,b,c?1:0)};
+iH=function(a,b,c){void 0!==c&&(fH(a,b<<3|2),b=c.length,fH(a,b),eH(a,b),a.j.set(c,a.pos),a.pos+=b)};
+jH=function(a,b,c){void 0!==c&&(jAa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),eH(a,1.2*c.length),b=iC(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(eH(a,b),b=iC(c,a.j.subarray(a.pos))),a.pos+=b,kAa(a))};
+jAa=function(a,b,c){c=void 0===c?2:c;fH(a,b<<3|2);a.u.push(a.pos);a.u.push(c);a.pos+=c};
+kAa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
+kH=function(a,b,c,d,e){c&&(jAa(a,b,void 0===e?3:e),d(a,c),kAa(a))};
+lH=function(a,b){var c=new iAa;b(c,a);return new Uint8Array(c.j.buffer,0,c.pos)};
+g.mH=function(a){var b=new YG(new TB([Ec(decodeURIComponent(a))]));a=cH(b,2);b=aH(b,4);var c=lAa[b];if("undefined"===typeof c)throw a=new g.Rv("Failed to recognize field number",{name:"EntityKeyHelperError",I2a:b}),g.qz(a),a;return{cY:b,entityType:c,entityId:a}};
+g.nH=function(a,b){var c=new iAa;iH(c,2,gwa(a));a=mAa[b];if("undefined"===typeof a)throw b=new g.Rv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.qz(b),b;gH(c,4,a);gH(c,5,1);b=new Uint8Array(c.j.buffer,0,c.pos);return encodeURIComponent(g.Bc(b))};
+oH=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
+nAa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.XG(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
+oAa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.qz(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.qz(new g.Rv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.sf(e.payload);
+return oH(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.mH(e).entityType;l=oH(d,m,e)}catch(q){if(q instanceof Error)g.qz(new g.Rv("Failed to deserialize entity key",{entityKey:e,originalMessage:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.qz(new g.Rv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.sf(e.payload);var n,p;return nAa(d,l,e.entityKey,e.payload[l],
+null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
+case "REPLACE_ENTITY":var c=b.payload;return oH(a,c.entityType,c.key,c.bY);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return oH(h,e,l,f[l])},d)},a);
+case "UPDATE_ENTITY":return c=b.payload,nAa(a,c.entityType,c.key,c.bY,c.X2a);default:return a}};
+qAa=function(a,b){var c=g.Ha("ytDebugData.callbacks");c||(c={},g.Fa("ytDebugData.callbacks",c));if(g.T("web_dd_iu")||pAa.includes(a))c[a]=b};
+pH=function(a){this.j=new Fo(a)};
+rAa=function(){if(void 0===qH){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Po(g.Sv()+"::yt-player"))){qH=new pH(a);break a}qH=void 0}}return qH};
+g.rH=function(){var a=rAa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
+g.sAa=function(a){var b=rAa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
+g.sH=function(a){return g.rH()[a]||0};
+g.tH=function(a,b){var c=g.rH();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.sAa(c))};
+g.uH=function(a){return g.z(function(b){return b.return(g.vw(tAa(),a))})};
+xH=function(a,b,c,d,e,f,h,l,m){var n,p,q,v,w,y;return g.z(function(A){switch(A.j){case 1:return n=g.sH(a),4===n?A.return(4):g.x(A,g.Cw(),2);case 2:p=A.u;if(!p)throw g.aw("wiac");if(!m||void 0===l){A.Ma(3);break}return g.x(A,uAa(m,l),4);case 4:l=A.u;case 3:return q=c.lastModified||"0",g.x(A,g.uH(p),5);case 5:return v=A.u,g.ra(A,6),vH++,g.x(A,g.kw(v,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ub:!0},function(B){if(void 0!==h&&void 0!==l){var E=""+a+"|"+b.id+"|"+q+"|"+String(h).padStart(10,
+"0");E=g.lw(B.objectStore("media"),l,E)}else E=g.cw.resolve(void 0);var G=vAa(a,b.isVideo()),H=vAa(a,!b.isVideo()),I={fmts:wAa(d),format:c||{}};G=g.lw(B.objectStore("index"),I,G);var O=-1===d.downloadedEndTime;I=O?B.objectStore("index").get(H):g.cw.resolve(void 0);var L={fmts:"music",format:{}};B=O&&e&&!b.isVideo()?g.lw(B.objectStore("index"),L,H):g.cw.resolve(void 0);return f?g.cw.all([B,I,E,G]).then(function(P){P=g.r(P);P.next();P=P.next().value;vH--;var S=g.sH(a);if(4!==S&&O&&e||void 0!==P&&g.wH(P.fmts))S=
+1,g.tH(a,S);return S}):g.cw.all([I,
+E,G]).then(function(P){P=g.r(P).next().value;vH--;var S=g.sH(a);4!==S&&O&&void 0!==P&&g.wH(P.fmts)&&(S=1,g.tH(a,S));return S})}),8);
+case 8:return A.return(A.u);case 6:w=g.va(A);vH--;y=g.sH(a);if(4===y)return A.return(y);g.tH(a,4);throw w;}})};
+g.xAa=function(a){var b,c;return g.z(function(d){if(1==d.j)return g.x(d,g.Cw(),2);if(3!=d.j){b=d.u;if(!b)throw g.aw("ri");return g.x(d,g.uH(b),3)}c=d.u;return d.return(g.kw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.vna(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
+AAa=function(a,b,c,d,e){var f,h,l;return g.z(function(m){if(1==m.j)return g.x(m,g.Cw(),2);if(3!=m.j){f=m.u;if(!f)throw g.aw("rc");return g.x(m,g.uH(f),3)}h=m.u;l=g.kw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Ub:yAa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
+return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return zAa(e,n)}).catch(function(n){throw new g.Rv("Error while reading chunk: "+n.name+", "+n.message);
+})):m.return(l)})};
+g.wH=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
+vAa=function(a,b){return""+a+"|"+(b?"v":"a")};
+wAa=function(a){var b={};return ku((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
+CAa=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.BAa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
+return c};
+DAa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.QA=wF(a.ustreamerConfig)||void 0)};
+yH=function(a){g.cz.call(this);this.j=null;this.B=new So;this.j=null;this.J=new Set;this.D=a||""};
+EAa=function(a,b,c){for(c=zH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(AH(d,b))&&(d=g.BH(d,b)))return d;c--}return g.BH(a.levels[0],b)};
+GAa=function(a,b,c){c=zH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=AH(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.enqueue(f,{bQ:f,rQ:e}))}FAa(a)};
+FAa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=HAa(a,b)}};
+HAa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.bQ].pe(b.rQ);c.onload=function(){var d=b.bQ,e=b.rQ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);FAa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.jB()-1);e=[e,d];a.X("l",e[0],e[1])};
+return c};
+g.CH=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
+AH=function(a,b){return Math.floor(b/(a.columns*a.rows))};
+g.BH=function(a,b){b>=a.DF()&&a.Cu();var c=AH(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Cu()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
+EH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.CH.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
+FH=function(a,b,c,d){DH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;aMath.random()){for(var Hh=!1,Ee=g.r(a.suggestions),sg=Ee.next();!sg.done;sg=Ee.next())if(sg.value.videoId===Qc.videoId){Hh=!0;break}Hh||g.rz(new g.Rv("Autonav video not in endscreen",
+{empty:!a.suggestions.length}))}a.Pk=Qc;a.K("web_player_decouple_autonav")||(a.suggestions[0]=Qc)}null!=nc.countDownSecs&&(a.TR=1E3*nc.countDownSecs);null!=nc.countDownSecsForFullscreen&&(a.UI=0<=nc.countDownSecsForFullscreen?1E3*nc.countDownSecsForFullscreen:-1);var Mg;a.X4=null==(Mg=nc.cancelButton)?void 0:Mg.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Zf=NG(a.watchNextResponse.currentVideoThumbnail));if(!a.K("player_parse_profile_picture_from_watch_next_killswitch")){var Ng,aj,
+jh,hf,Vc,wf=null==(Ng=a.watchNextResponse)?void 0:null==(aj=Ng.contents)?void 0:null==(jh=aj.twoColumnWatchNextResults)?void 0:null==(hf=jh.results)?void 0:null==(Vc=hf.results)?void 0:Vc.contents;if(wf&&wf[1]){var xf,Og,tg,Db,bj=null==(xf=wf[1].videoSecondaryInfoRenderer)?void 0:null==(Og=xf.owner)?void 0:null==(tg=Og.videoOwnerRenderer)?void 0:null==(Db=tg.thumbnail)?void 0:Db.thumbnails;bj&&bj.length&&(a.profilePicture=bj[bj.length-1].url)}}var ji=a.watchNextResponse.onResponseReceivedEndpoints;
+if(ji)for(var Uk=g.r(ji),Kj=Uk.next();!Kj.done;Kj=Uk.next()){var kh=Kj.value;g.av(kh,SH)&&(a.aN=g.av(kh,SH));var zf=g.av(kh,mBa),cj=void 0;a.K("web_key_moments_markers")&&(null==(cj=zf)?0:cj.entityKeys)&&(a.Pq=zf.entityKeys,zf.visibleOnLoadKeys&&(a.visibleOnLoadKeys=zf.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var Cn=g.TH.getState().entities,Lj=g.nH("visibility_override","markersVisibilityOverrideEntity");var Id=Cn.markersVisibilityOverrideEntity?Cn.markersVisibilityOverrideEntity[Lj]||
+null:null;var Pg=a.videoId||jv(b);a.Dd=(null==Id?void 0:Id.videoId)===Pg&&(null==Id?0:Id.visibilityOverrideMarkersKey)?Id.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.t(a.Dd))}}};
+PH=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
+UH=function(a){return!!(a.B&&a.B.videoInfos&&a.B.videoInfos.length)};
+XH=function(a){if(a.K("html5_single_format_policy")&&a.Ed)return a.Ed;var b=a.Ea,c=!!a.j&&a.j.nf,d=a.Oa,e=a.yI(),f=VH(a),h=a.CH,l=a.isOtf(),m=a.sG(),n=a.Cb,p=a.qg,q=new oya(d);if(xG(d)||d.K("html5_logging_format_selection"))q.B=!0;q.eb=f;q.Ea=h&&d.C;q.qg=p;Ou("windows nt 5.1")&&!g.pB&&(q.j=!0);if(f=e)f=d.K("disable_html5_ambisonic_audio")||!(g.sG(d)||d.K("html5_enable_spherical")||d.K("html5_enable_spherical3d"))?!1:sza(d);f&&(q.Ya=!0);b&&(q.j=!0,q.yc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0);
+n&&(q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.La=b||l;FB(d.j,GB.CHANNELS)&&(d.K("html5_enable_aac51")&&(q.ra=!0),d.K("html5_enable_ac3")&&(q.D=!0),d.K("html5_enable_eac3")&&(q.I=!0),d.K("html5_enable_ac3_gapless")&&(q.Ha=!0));d.K("html5_block_8k_hfr")&&(q.ub=!0);q.J=g.TE(d.experiments,"html5_max_selectable_quality_ordinal");q.N=g.TE(d.experiments,"html5_min_selectable_quality_ordinal");!d.K("html5_kaios_hd_killswitch")&&JF&&(q.Lc=480);if(c||e)q.gb=!1;q.Cb=!1;
+c=KE(d,q.u);0c&&(oE()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+oE(),q.W=c);2160<=c&&(q.qa=!0);mya()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.zc=!1);q.sG=m;q.Ua=g.yw||$u()&&!m?!1:!0;q.va=d.K("html5_format_hybridization");q.Kb=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Ru()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.Ea&&
+a.isAd()&&(a.Rr&&(q.Y=a.Rr),a.jr&&(q.C=a.jr));q.Ra=a.isLivePlayback&&WH(a)&&a.Oa.K("html5_drm_live_audio_51");return a.Ed=q};
+nBa=function(a){XA("drm_pb_s",void 0,a.va);a.Ya||a.j&&IB(a.j);var b={};a.j&&(b=Iva(XH(a),a.Oa.j,a.j,function(c){return a.X("ctmp","fmtflt",c)},!0));
+b=new WE(b,a.Oa.experiments,a.SP,a.useCobaltWidevine?Ru()?YH(a):!1:!1,function(c,d){a.ma(c,d)});
+g.M(a,b);a.Rl=!1;a.qa=!0;sya(b,function(c){XA("drm_pb_f",void 0,a.va);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ya=a.Ya;e.Ut=a.Ut;e.Tt=a.Tt;break;case "widevine":e.Hk=a.Hk}a.ju=c;if(0p&&(p=w.zg().audio.numChannels)}2=a.B.videoInfos.length)&&(b=UD(a.B.videoInfos[0]),b!=("fairplay"==a.N.flavor)))for(c=g.r(a.ju),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.N=d;break}};
+bI=function(a,b){a.zc=b;yBa(a,new zB(g.Pk(a.zc,function(c){return c.zg()})))};
+zBa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Oa.deviceParams.c,cver:a.Oa.deviceParams.cver};a.Rq&&(b.ptk=a.Rq,b.oid=a.iN,b.ptchn=a.hN,b.pltype=a.jN,a.Ot&&(b.m=a.Ot));return b};
+g.cI=function(a){return MH(a)&&a.Ya?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Td||null};
+ABa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.zA(b.text):a.paidContentOverlayText};
+dI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Yg(b.durationMs):a.paidContentOverlayDurationMs};
+eI=function(a){var b="";if(a.iF)return a.iF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.xf?"post":a.Li?"window":"live");return b};
+g.fI=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
+gI=function(a){return!!(a.gb||a.adaptiveFormats||a.Bk||a.Ak||a.hlsvp)};
+IH=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.Wb(a.W,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.qa&&(gI(a)||g.Wb(a.W,"heartbeat")||b)};
+$H=function(a,b){a=mu(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
+hBa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.av(b,QH))?void 0:c.navigationEndpoint)||(null==(d=g.av(b,QH))?void 0:d.command);e&&(a.Yl=!!g.av(e,BBa))};
+LAa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Jh=c);if(a.Jh){if(c=a.Jh.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.Jh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Ua=d,a.C=!0,a.Oa.K("embeds_web_enable_epm_dni_parity_fix")&&
+(a.Oa.W="EMBEDDED_PLAYER_MODE_PFP")):(a.Ua="",a.C=!1,a.Oa.K("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.Oa.W&&(a.Oa.W="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.Zf=NG(d),a.sampledThumbnailColor=d.sampledThumbnailColor;(d=g.av(null==c?void 0:c.videoDetails,CBa))&&kBa(a,b,d);if(d=g.av(null==c?void 0:c.videoDetails,DBa))a.EL=d.title,a.DL=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.zi=!!c.addToWatchLaterButton;hBa(a,c.shareButton);var e,
+f;if(d=g.av(null==c?void 0:null==(e=c.playButton)?void 0:null==(f=e.buttonRenderer)?void 0:f.navigationEndpoint,g.VG))$Aa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Yg(c.videoDurationSeconds));c.webPlayerActionsPorting&&Zza(a,c.webPlayerActionsPorting);if(e=g.av(null==c?void 0:c.playlist,EBa)){f=[];c=Number(e.currentIndex);if(e.contents){d=0;for(var h=e.contents.length;d(b?parseInt(b[1],10):NaN);c=a.Oa;c=("TVHTML5_CAST"===aG(c)||"TVHTML5"===aG(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Oa.deviceParams.ctheme;!a.rg&&(c||rza(a.Oa))&&
+!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.rg=!0);return a.Oa.deviceIsAudioOnly||a.rg&&a.Oa.C};
+OBa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
+vI=function(a){return!(!a.Jl||!a.Oa.C)&&!!a.adaptiveFormats};
+PBa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
+YAa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.sH(b);return b&&!a.Jl};
+g.wI=function(a){if(!a.j||!a.u||!a.D)return!1;var b=a.j.j;return!!b[a.u.id]&&OB(b[a.u.id].u.j)&&!!b[a.D.id]&&OB(b[a.D.id].u.j)};
+FBa=function(a){return(a=a.Kl)&&a.showError?a.showError:!1};
+ZH=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")};
+QBa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
+QAa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.nu=new eAa(b));if(b=b.video_masthead_ad_quartile_urls)a.TF=b.quartile_0_url,a.qN=b.quartile_25_url,a.rN=b.quartile_50_url,a.sN=b.quartile_75_url,a.pN=b.quartile_100_url,a.mu=b.quartile_0_urls,a.WF=b.quartile_25_urls,a.XF=b.quartile_50_urls,a.YF=b.quartile_75_urls,a.VF=b.quartile_100_urls};
+LH=function(a,b){return b?ZE(a.Oa.j)?!0:xI&&5>yI?!1:!0:!1};
+PAa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
+Tza=function(a){if(a){if(Xua(a))return a;a=Yua(a);if(Xua(a,!0))return a}return""};
+g.RBa=function(a){return a.captionsLanguagePreference||a.Oa.captionsLanguagePreference||g.fI(a,"yt:cc_default_lang")||a.Oa.pg};
+zI=function(a){return!!(a.K("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
+g.AI=function(a){if(a.K("web_player_decouple_autonav")){var b;return a.Pk||(null==(b=a.suggestions)?void 0:b[0])||null}var c;return(null==(c=a.suggestions)?void 0:c[0])||null};
+BI=function(a,b){this.j=a;this.W=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.V=this.N=0};
+SBa=function(a){return CI(a)&&1==a.getPlayerState(2)};
+CI=function(a){a=a.Fc();return void 0!==a&&2==a.getPlayerType()};
+DI=function(a){a=a.R();return bG(a)&&!g.nG(a)&&"desktop-polymer"==a.playerStyle};
+EI=function(a,b){var c=a.R();RF(c)||"3"!=c.controlsType||a.Za().oA(b)};
+GI=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.j=e;this.u=f;this.id=FI(a)};
+FI=function(a){return a+(":"+(To.getInstance().j++).toString(36))};
+HI=function(a){this.U=a};
+TBa=function(a,b){if(0===b||1===b&&(a.U.isMobile&&g.Zv?0:a.U.isMobile||g.nG(a.U)||g.cG(a.U)||dG(a.U)||!g.Zv))return!0;a=g.eh("video-ads");return null!=a&&"none"!==Bl(a,"display")};
+UBa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
+case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
+II=function(){g.cz.call(this);var a=this;this.j={};g.cf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
+KI=function(){if(null===JI){JI=new II;Rk(On).u="b";var a=Rk(On),b="h"==Hn(a)||"b"==Hn(a),c=!(Yk(),!1);b&&c&&(a.D=!0,a.I=new Pia)}return JI};
+VBa=function(a,b,c){a.j[b]=c};
+WBa=function(){};
+LI=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
+c=0;for(a+=1;a=c*a.u.fF||d)&&iJ(a,"first_quartile");(b>=c*a.u.ZF||d)&&iJ(a,"midpoint");(b>=c*a.u.bG||d)&&iJ(a,"third_quartile")};
+oCa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.fF||d)&&iJ(a,"unmuted_first_quartile");(b>=c*a.u.ZF||d)&&iJ(a,"unmuted_midpoint");(b>=c*a.u.bG||d)&&iJ(a,"unmuted_third_quartile")};
+mJ=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;iJ(a,b)};
+lCa=function(a,b,c){if(0m.I&&m.Zi()}};
+xCa=function(a,b){if(a.J&&a.W){a.W=!1;var c=a.B.j;if(DJ(c)){var d=c.slot;c=c.layout;b=vCa(b);a=g.r(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;GJ(e.j(),f,h,l);wCa(e.j(),f)}}else g.rz(Error("adMessageRenderer is not augmented on termination"))}};
+vCa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.rz(Error("AdNotify abandoned")),"abandoned";default:return g.rz(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
+g.HJ=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={WE:c.WE},e=d.next())e=e.value,c.WE=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.WE}}(c));
+return a};
+IJ=function(a,b,c,d){this.j=a;this.C=b;this.u=$I(c);this.B=d};
+yCa=function(a){for(var b={},c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
+zCa=function(a,b,c,d){new IJ(a,b,c,d)};
+JJ=function(a,b,c,d,e,f,h,l,m){vJ.call(this,a,b,c,d,e,1);var n=this;this.UC=!0;this.J=m;this.B=b;this.D=f;this.W=new $y(this);g.M(this,this.W);this.I=new g.Zn(function(){n.Jm("load_timeout")},1E4);
+g.M(this,this.I);this.V=h};
+ACa=function(a){if(a.V&&(a.G.R().experiments.fb("enable_topsoil_wta_for_halftime")||a.G.R().experiments.fb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.qz(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.qz(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
+MJ=function(a,b){if(null!==a.J){var c=BCa(a);a=g.r(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(CCa(d,e,[],!1),DCa(d.B(),d.u),ECa(d.B(),d.u),FCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}GJ(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;KJ(e.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Md);for(f=e.next();!f.done;f=e.next())f.value.vj(h);wCa(d.B(),
+d.u)}d.Da.get().G.R().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&LJ(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
+NJ=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
+BCa=function(a){if(a=a.B.j.elementId)return a;g.qz(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
+GCa=function(a){function b(h,l){h=a.h3;var m=Object.assign({},{});m.FINAL=ZI(Xf("1"));m.SLOT_POS=ZI(Xf("0"));return bJ(h,aJ(m),l)}
+function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
+m=a.mL(l,p);l=h(l,p,m,n);g.M(l,m);return l}}}
+var d=c(function(h,l,m){return new yJ(a.G,h,l,m,a.Ay,a.bb)}),e=c(function(h,l,m){return new FJ(a.G,h,l,m,a.Ay,a.bb,a.il,a.zo)}),f=c(function(h,l,m){return new BJ(a.G,h,l,m,a.Ay,a.bb)});
+this.JW=new tCa({create:function(h,l){var m=bJ(b(h,l),aJ(fCa(h)));l=a.mL(h,m);h=new JJ(a.G,h,m,l,a.Ay,a.bb,a.daiEnabled,function(){return new zCa(a.bb,m,a.G,a.jk)},a.Ao,a.oh);
+g.M(h,l);return h}},d,e,f)};
+OJ=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
+HCa=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{FX:new zo(b,c),uZ:new kA(b,c-b,a.context,a.identifier,a.event,a.j)}};
+PJ=function(){this.j=[]};
+QJ=function(a,b,c){var d=g.kc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
+ICa=function(){this.j=new PJ};
+RJ=function(a){this.j=a};
+JCa=function(a){a=[a,a.C].filter(function(d){return!!d});
+for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
+KCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
+LCa=function(a,b,c){a.j&&SJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
+MCa=function(a,b){a.j&&SJ({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.VW}})};
+NCa=function(a,b){SJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
+SJ=function(a){g.Mv("adsClientStateChange",a)};
+TJ=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Ue=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
+PCa=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.I);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.Ue=!0,(a.G.K("send_csi_info_for_ad_to_video_killswitch")||lB("_start",a.actionType))&&
+OCa(a)))};
+OCa=function(a){if(a.Ue)if(a.G.K("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)VA("video_to_ad");else if(a.G.K("web_csi_via_jspb")){var b=new zt;g.D(b,21,QCa(a.B));g.D(b,7,4);var c=new wt;g.D(c,8,2);F(b,wt,22,c);g.D(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.D(b,76,a.contentCpn),a.videoId&&g.D(b,78,a.videoId)):(a.adCpn&&g.D(b,76,a.adCpn),a.adVideoId&&g.D(b,78,a.adVideoId));c=Ava(a.actionType);a.adFormat&&!c&&g.D(b,
+12,a.adFormat);a.contentCpn&&g.D(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.D(b,28,a.adCpn);a.adVideoId&&g.D(b,20,a.adVideoId);kB(b,a.actionType)}else b={adBreakType:RCa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=
+a.adVideoId)),c=Ava(a.actionType),a.adFormat&&!c&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),YA(b,a.actionType)};
+RCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
+QCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
+g.TCa=function(a){return(a=SCa[a.toString()])?a:"LICENSE"};
+UJ=function(){var a=this;this.j=this.u=qaa;this.promise=new g.Fh(function(b,c){a.u=b;a.j=c})};
+VJ=function(){g.K.call(this);this.u=null;this.N=this.J=!1;this.D=new g.Uf;g.M(this,this.D)};
+WJ=function(a){a=a.Qy();return 1>a.length?NaN:a.end(a.length-1)};
+UCa=function(a){!a.B&&Axa()&&(a.C?a.C.then(function(){return UCa(a)}):a.Hf()||(a.B=a.ls()))};
+VCa=function(a,b,c){a.Hn()||a.getCurrentTime()>b||10d.length||(d[0]in yDa&&(f.clientName=yDa[d[0]]),d[1]in zDa&&(f.platform=zDa[d[1]]),f.applicationState=h,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
+g.YL=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
+ZL=function(a,b,c,d,e,f,h){GL.call(this,a,b,{F:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()};
+$L=function(a,b,c,d,e){EL.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
+aM=function(a,b){this.u=a;this.j=b};
+bM=function(a){return a.j-a.u};
+cM=function(a,b){return a.u+b*bM(a)};
+dM=function(a,b,c){return bM(a)?g.Cg((b-a.u)/bM(a),0,1):null!=c?c:Infinity};
+eM=function(a,b){g.ZK.call(this,{F:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{F:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.M(this,this.u);this.xc=this.ya("ytp-ad-persistent-progress-bar");this.j=-1;this.P(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
+fM=function(a,b,c,d,e,f,h){$K.call(this,a,b,{F:"div",L:"ytp-ad-player-overlay",S:[{F:"div",L:"ytp-ad-player-overlay-flyout-cta"},{F:"div",L:"ytp-ad-player-overlay-instream-info"},{F:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",L:"ytp-ad-player-overlay-progress-bar"},{F:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.N=h;this.D=this.ya("ytp-ad-player-overlay-flyout-cta");this.api.R().K("web_rounded_thumbnails")&&this.api.R().K("web_modern_ads")&&
+this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.B=this.ya("ytp-ad-player-overlay-instream-info");this.C=null;zFa(this)&&(a=lh("div"),g.ho(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new $L(this.api,this.bb,this.layoutId,this.j,this.Wa),c.xa(a),c.init(FI("ad-title"),{text:b.title},this.macros),g.M(this,c)),this.C=a);this.I=this.ya("ytp-ad-player-overlay-skip-or-preview");
+this.va=this.ya("ytp-ad-player-overlay-progress-bar");this.W=this.ya("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.M(this,this.u);this.hide()};
+zFa=function(a){a=a.api.R();return g.VF(a)&&a.isMobile};
+BFa=function(a,b){var c=void 0===c?!0:c;var d=g.Q("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.qi(window.location.href);e&&d.push(e);e=g.qi(a);if(g.Wb(d,e)||!e&&eb(a,"/"))if(g.T("autoescape_tempdata_url")&&(d=document.createElement("a"),g.zg(d,a),a=d.href),a&&(a=Dea(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Bz()},b)),f){var f=parseInt(f,10);isFinite(f)&&0a};
+iGa=function(a,b){a.program&&(2===g.VM.state?0:YM(b.y3))&&(mB("bg_i",void 0,"player_att"),g.VM.initialize(a,function(){var c=a.serverEnvironment;mB("bg_l",void 0,"player_att");XM=(0,g.U)();for(var d=0;dv.length)){q={applicationState:q?
+"INACTIVE":"ACTIVE",clientFormFactor:vGa[v[1]]||"UNKNOWN_FORM_FACTOR",clientName:wGa[v[0]]||"UNKNOWN_INTERFACE",clientVersion:v[2]||"",platform:xGa[v[1]]||"UNKNOWN_PLATFORM"};v=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(B){g.rz(B)}w&&(v={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:v,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext=
+{mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=m;m=b.width;0d&&(d=-(d+1));g.ph(a,b,d);b.setAttribute("data-layer",String(c))};
+g.BN=function(a){var b=a.R();if(!b.rd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!zI(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.C&&f;return!c.ypcPreview&&
+(!d||e)&&!g.Wb(c.W,"ypc")&&!a&&(!g.MF(b)||f)};
+UGa=function(a){a=g.oN(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.JL)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ma("iqss",{trigger:d},!0),!0):!1};
+g.CN=function(a,b,c,d){d=void 0===d?!1:d;g.ZK.call(this,b);var e=this;this.G=a;this.va=d;this.J=new g.YD(this);this.V=new g.JL(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
+g.M(this,this.J);g.M(this,this.V)};
+VGa=function(a){a.u&&(document.activeElement&&g.sh(a.element,document.activeElement)&&(uh(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.bz(a.J);a.N=void 0};
+DN=function(a,b,c){a.qh()?a.Ib():a.od(b,c)};
+EN=function(a,b,c,d){d=new g.X({F:"div",Ca:["ytp-linked-account-popup-button"],Z:d,T:{role:"button",tabindex:"0"}});b=new g.X({F:"div",L:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{F:"div",L:"ytp-linked-account-popup-title",Z:b},{F:"div",L:"ytp-linked-account-popup-description",Z:c},{F:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.CN.call(this,a,{F:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.M(this,this.dialog);
+d.Na("click",function(){e.Ib()});
+g.M(this,d);g.AN(this.G,this.element,4);this.hide()};
+g.FN=function(a,b,c,d){g.ZK.call(this,a);this.priority=b;c&&this.Ig(c);d&&this.Sd(d)};
+g.GN=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{F:c?"a":"div",Ca:b,T:a,S:[{F:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{F:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{F:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
+HN=function(a,b){a.Ja("icon",b)};
+IN=function(a){g.FN.call(this,g.GN({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),1);var b=this;this.G=a;this.u=this.j=!1;this.ib=a.Em();a.Ai(this.element,this,!0);this.P(this.G,"settingsMenuVisibilityChanged",function(c){b.lc(c)});
+this.P(this.G,"videodatachange",this.C);this.Na("click",this.onClick);this.C()};
+JN=function(a){return a?g.zA(a):""};
+KN=function(a){g.K.call(this);this.api=a};
+LN=function(a){KN.call(this,a);var b=this;kN(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
+kN(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
+a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
+a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new IN(b.api);g.M(b,b.menuItem)})};
+MN=function(a,b){g.FN.call(this,g.GN({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Na("click",this.onClick)};
+NN=function(a){MN.call(this,"Cinematic lighting",12);var b=this;this.G=a;this.j=!1;this.ib=a.Em();HN(this,{F:"svg",S:[{F:"path",T:{d:"M4,21H3V3h1V21z M8,15H6v2h2V15z M8,11H6v2h2V11z M8,7H6v2h2V7z M18,15h-2v2h2V15z M8,19H6v2h2V19z M18,19h-2v2h2V19z M18,11h-2v2h2V11z M18,7h-2v2h2V7z M8,3H6v2h2V3z M18,3h-2v2h2V3z M21,3h-1v18h1V3z",fill:"white"}}]});this.subscribe("select",function(c){uv(g.rv.getInstance(),192,!0);var d=WGa();c!==d&&(d=g.rv.getInstance(),uv(0,190,c),d.save(),b.G.Ka("cinematicSettingsToggleChange",
+c))},this)};
+WGa=function(){g.rv.getInstance();return g.tv(0,192)?g.tv(0,190):!0};
+ON=function(a){KN.call(this,a);var b=this;this.j=!1;var c;this.K("web_cinematic_watch_settings")&&(null==(c=a.R().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new NN(b.api);g.M(b,b.menuItem);b.menuItem.Fa(b.j)}),kN(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
+YGa=function(a){KN.call(this,a);var b=this;this.events=new g.YD(a);g.M(this,this.events);this.K("enable_precise_embargos")&&(this.events.P(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Af("embargo",1);(null==c?0:c.cueRanges)&&XGa(b,c)}),this.events.P(a,g.uA("embargo"),function(){b.api.fg("heartbeat.stop",2,"This video isn't available in your current playback area")}))};
+ZGa=function(a){function b(d){return void 0!==(null==d?void 0:d.embargo)}
+var c;return null==(c=a.onEnter)?void 0:c.some(b)};
+XGa=function(a,b){if(null==b?0:zI(b)){var c;null==(c=b.cueRanges)||c.filter(function(d){return ZGa(d)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
+d=f+Number(null==(h=d.duration)?void 0:h.seconds);a.api.addUtcCueRange("embargo",f,d,"embargo",!1)})}};
+PN=function(a){KN.call(this,a);var b=this;kN(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
+$Ga=function(a,b,c){var d=[],e=b?156595:151874;a=g.r(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
+QN=function(a){KN.call(this,a);var b=this;this.useLivingRoomPoToken=!1;var c;this.useLivingRoomPoToken=!(null==(c=a.R().webPlayerContextConfig)||!c.useLivingRoomPoToken);this.K("html5_generate_session_po_token")&&!this.useLivingRoomPoToken&&(this.K("html5_webpo_idle_priority_job")?g.Cv(g.Ev(),function(){aHa(b)}):aHa(this));
+a.EK(this)};
+aHa=function(a){var b=a.api.R(),c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN",d=a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";c=g.cG(b)?c:d;a.K("html5_placeholder_po_tokens")&&(c="2ZCPXHYZSpebQXqOYNtj");try{if(a.j=vga({fh:c,onError:function(f){g.rz(f)}}),!a.K("html5_generate_content_po_token")){a.j.ready().then(function(){bHa(a)});
+var e=g.TE(b.experiments,"html5_session_po_token_interval_time_ms");0=a.length?0:b};
+iHa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
+g.XN=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.HH(a.Oa,b),g.M(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
+YN=function(a,b){a.index=g.Cg(b,0,a.length-1);a.startSeconds=0};
+ZN=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.XN(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.u++;a.j&&a.j()}};
+lHa=function(a,b){var c,d,e,f,h,l;return g.z(function(m){if(1==m.j){c=g.EM();var n=a.R(),p={context:g.eN(a)};n.K("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.T("parse_video_id_from_serialized_embedded_player_response_killswitch")){var v=b.embedded_player_response;v&&(q=JSON.parse(v))}if(q){var w,y,A,B,
+E,G,H;q=(null==(w=q)?void 0:null==(y=w.embedPreview)?void 0:null==(A=y.thumbnailPreviewRenderer)?void 0:null==(B=A.playButton)?void 0:null==(E=B.buttonRenderer)?void 0:null==(G=E.navigationEndpoint)?void 0:null==(H=G.watchEndpoint)?void 0:H.videoId)||null}else q=null}w=(w=q)?w:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var I;"user_uploads"===A?I={username:y}:I={playlistId:y};jHa(n,w,b,I);p.playlistRequest=I}else b.playlist?(I={templistVideoIds:b.playlist.toString().split(",")},jHa(n,
+w,b,I),p.playlistRequest=I):w&&(I={videoId:w},n&&(I.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=I);d=p;e=g.pM(kHa);g.ra(m,2);return g.x(m,g.AK(c,d,e),4)}if(2!=m.j)return f=m.u,h=a.R(),b.raw_embedded_player_response=f,h.K("embeds_pfl_cue_killswitch")||(h.W=kv(b,g.MF(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.W),m.return(new g.HH(h,b));l=g.va(m);g.qz(l);return m.return(a)})};
+jHa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
+g.aO=function(a,b){$N.get(a);$N.set(a,b)};
+g.bO=function(a){g.cz.call(this);this.loaded=!1;this.player=a};
+mHa=function(){this.u=[];this.j=[]};
+g.cO=function(a,b){return b?a.j.concat(a.u):a.j};
+g.dO=function(a,b){switch(b.kind){case "asr":nHa(b,a.u);break;default:nHa(b,a.j)}};
+nHa=function(a,b){g.Ub(b,function(c){return a.equals(c)})||b.push(a)};
+g.eO=function(a){g.K.call(this);this.U=a;this.u=new mHa;this.C=[]};
+g.fO=function(a,b,c){g.eO.call(this,a);this.audioTrack=c;this.j=null;this.C=b.HG};
+oHa=function(){this.Xi=!1};
+pHa=function(a){a=void 0===a?{}:a;var b=void 0===a.Mm?!1:a.Mm,c=new oHa;c.Xi=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
+g.qHa=function(a){this.Oa=a;this.C=new oHa;this.Yl=this.Xl=!1;this.Kl=2;this.I=20971520;this.W=8388608;this.D=120;this.yc=3145728;this.Ha=62914560;this.zc=10485760;this.Rl=g.TE(this.Oa.experiments,"html5_min_readbehind_secs");this.Ju=g.TE(this.Oa.experiments,"html5_min_readbehind_cap_secs");this.Iu=g.TE(this.Oa.experiments,"html5_max_readbehind_secs");this.Jx=this.Oa.K("html5_trim_future_discontiguous_ranges");this.Pb=NaN;this.ir=this.pk=this.Sq=2;this.Ra=2097152;this.gr=1048576;this.gb=!1;this.Bw=
+1800;this.Ll=this.Il=5;this.va=15;this.Pe=1;this.u=1.15;this.B=1.05;this.Ak=1;this.Ul=!0;this.ra=!1;this.jr=.8;this.Mk=this.eb=!1;this.Mc=6;this.V=this.Yb=!1;this.Ed=0;this.Sl=this.Oa.K("html5_new_min_startup_smooth_logic");this.Nc=0;this.ju=this.Oa.K("html5_append_init_while_paused");this.Zl=g.TE(this.Oa.experiments,"html5_post_interrupt_readahead");this.Vl=!1;this.rd=5E3;this.Qq=100;this.cf=10;this.Lu=g.TE(this.Oa.experiments,"html5_offline_failure_retry_limit")||2;this.Mt=g.TE(this.Oa.experiments,
+"html5_ssdai_failure_retry_limit")||3;this.Hk=this.Oa.experiments.fb("html5_clone_original_for_fallback_location");this.Ot=this.Oa.experiments.fb("html5_ssdai_reset_on_video_only_killswitch");this.jm=1;this.Gi=1.6;this.Kb=!1;this.Y=.5;this.Kd=2;this.Fd=this.Vt=0;this.Oq=1.5;this.Pq=this.Ki=.5;this.og=15;this.Qk=1;this.Hs=this.Bd=!1;this.Jl=0;this.On=this.St=this.Ok=this.gm=this.Wl=!1;this.hm=0;this.zi=2;this.wt=this.Fk=!1;this.rg=0;this.qa=this.Ut=this.oi=!1;this.Mx=this.Oa.K("html5_webm_init_skipping");
+this.jh=!1;this.Ya=!0;this.Ne=this.Dd=this.fm=this.Ua=!1;this.Ik=!0;this.Ei=!1;this.j="";this.Gu=1048576;this.He=[];this.Hu=this.Oa.K("html5_woffle_resume");this.Cb=!0;this.Nk=this.Vj=this.Oe=!1;this.vg=46800;this.Gs=this.Bk=this.rk=this.im=this.Eh=this.Lc=!1;this.N=0;this.Jk="";this.Fu=this.Oa.K("html5_disable_codec_for_playback_on_error");this.bk=this.fu=this.Kk=this.Di=!1;this.qg=0;this.Pu=Uu();this.gt=this.Pk=!1;this.mu=this.Oa.K("html5_skip_buffer_check_seek_to_head");this.Ld=!1;this.Rr=!this.Oa.K("html5_reset_media_stream_discontinuity_killswitch");
+this.nk=!1;this.Ng=8192;this.La=this.Cd=!1;this.xs=1;this.Kx=this.Oa.K("html5_onesie_live");this.Lx=this.Oa.K("html5_onesie_premieres");this.Js=this.Oa.K("html5_seek_for_index_reset_killswitch");this.Mu=g.TE(this.Oa.experiments,"html5_onesie_live_ttl_secs")||8;this.Tl=g.TE(this.Oa.experiments,"html5_attach_num_random_bytes_to_bandaid");this.Qu=this.Oa.K("html5_self_init_consolidation");this.Tt=this.Oa.K("html5_stream_metadata");this.Eb=this.Oa.K("html5_onesie_ads");this.nu=this.Oa.K("html5_live_partial_response_resumable");
+this.pg=this.Oa.K("html5_ssdai_log_ad_transition_info");this.Ou=g.TE(this.Oa.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Nu=this.Oa.K("html5_onesie_nonzero_playback_start");this.bf=this.Oa.K("html5_ssdai_use_post_for_media")&&this.Oa.K("gab_return_sabr_ssdai_config");this.Rq=this.Oa.K("html5_use_post_for_media");this.Li=this.Oa.K("html5_ssdai_enable_new_seek_logic");this.Ru=this.Oa.K("html5_skip_ssdai_ad_init");this.useUmp=this.Oa.K("html5_use_ump");this.Ix=this.Oa.K("html5_skip_stitched_info_on_segment_placeholder_killswitch");
+this.Ea=this.J=!1;this.ub=this.Oa.K("html5_enable_atv_offline");this.cm=this.Oa.K("html5_prefer_drc")};
+rHa=function(a,b){1080Math.random()){var B=new g.Rv("Unable to load player module",b,document.location&&document.location.origin);g.qz(B)}yh(e);v&&v(A)};
+var w=m,y=w.onreadystatechange;w.onreadystatechange=function(A){switch(w.readyState){case "loaded":case "complete":yh(f)}y&&y(A)};
+l&&((h=a.G.R().cspNonce)&&m.setAttribute("nonce",h),g.ej(m,g.ig(b)),h=g.bh("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.cf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
+uO=function(a,b,c){g.df.call(this,b,a);this.j=c};
+g.vO=function(a){VJ.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new uO(b,c.type,c))}};
+xO=function(a,b,c,d,e){g.cz.call(this);var f=this;this.target=a;this.HB=b;this.u=0;this.I=!1;this.C=new g.Gg(NaN,NaN);this.j=new g.YD(this);this.qa=this.B=this.J=null;g.M(this,this.j);b=d||e?4E3:3E3;this.V=new g.Zn(function(){wO(f,1,!1)},b,this);
+g.M(this,this.V);this.W=new g.Zn(function(){wO(f,2,!1)},b,this);
+g.M(this,this.W);this.Y=new g.Zn(function(){wO(f,512,!1)},b,this);
+g.M(this,this.Y);this.ra=c&&0=c.width||!c.height||0>=c.height||g.pA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
+NHa=function(a){var b=a.G.zb();b=b.isCued()||b.isError()?"none":g.fK(b)?"playing":"paused";a.mediaSession.playbackState=b};
+LO=function(a){g.X.call(this,{F:"div",L:"ytp-paid-content-overlay",T:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Zd=this.j=null;var b=a.R();a.K("enable_new_paid_product_placement")&&!g.oG(b)?(this.u=new g.X({F:"a",L:"ytp-paid-content-overlay-link",T:{href:"{{href}}",target:"_blank"},S:[{F:"div",L:"ytp-paid-content-overlay-icon",Z:"{{icon}}"},{F:"div",L:"ytp-paid-content-overlay-text",Z:"{{text}}"},{F:"div",L:"ytp-paid-content-overlay-chevron",Z:"{{chevron}}"}]}),
+this.P(this.u.element,"click",this.onClick)):this.u=new g.X({F:"div",Ca:["ytp-button","ytp-paid-content-overlay-text"],Z:"{{text}}"});this.C=new g.JL(this.u,250,!1,100);g.M(this,this.u);this.u.xa(this.element);g.M(this,this.C);this.G.Ai(this.element,this);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"presentingplayerstatechange",this.bd)};
+PHa=function(a,b){var c=ABa(b),d=dI(b);b.vg&&a.G.Km()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.bo(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&OHa(a,d,c,b)):c&&d&&OHa(a,d,c,b))};
+OHa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Zn(a.Ib,b,a);g.M(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.av(e,g.RH))?void 0:l.url;a.G.xk(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",T:{fill:"none",height:"100%",viewBox:"0 0 24 24",
+width:"100%"},S:[{F:"path",T:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
+fill:"white"}}]}:null,chevron:h?g.dL():null})};
+QHa=function(a,b){a.j&&(g.W(b,8)&&a.B?(a.B=!1,a.od(),a.j.start()):(g.W(b,2)||g.W(b,64))&&a.videoId&&(a.videoId=null))};
+MO=function(a){g.X.call(this,{F:"div",L:"ytp-spinner",S:[CO(),{F:"div",L:"ytp-spinner-message",Z:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ya("ytp-spinner-message");this.j=new g.Zn(this.show,500,this);g.M(this,this.j);this.P(a,"presentingplayerstatechange",this.onStateChange);this.P(a,"playbackstalledatstart",this.u);this.Qc(a.zb())};
+NO=function(a){var b=g.LE(a.R().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Ca:["ytp-unmute-icon"],S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
+{F:"div",Ca:["ytp-unmute-text"],Z:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Ca:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.CN.call(this,a,{F:"button",Ca:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{F:"div",L:"ytp-unmute-inner",S:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.rb(this.element,this,51663);this.P(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.P(a,"presentingplayerstatechange",
+this.wh);this.Na("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.MF(this.api.R());g.YK(this,a);a&&RHa(this);this.B=a};
+RHa=function(a){a.j||(a.j=!0,a.api.Ta(a.element,!0))};
+g.PO=function(a){g.YD.call(this);var b=this;this.api=a;this.YI=!1;this.Tm=null;this.SB=!1;this.vf=null;this.VG=this.EE=!1;this.jL=this.lL=null;this.WP=NaN;this.iL=this.py=!1;this.Dz=0;this.jG=[];this.PJ=!1;this.MC={height:0,width:0};var c=a.R(),d=a.Za();this.MC=a.getPlayerSize();this.IN=new g.Zn(this.mJ,0,this);g.M(this,this.IN);g.XF(c)||(this.Mn=new g.zO(a),g.M(this,this.Mn),g.AN(a,this.Mn.element,4));if(SHa(this)){var e=new MO(a);g.M(this,e);e=e.element;g.AN(a,e,4)}var f=a.getVideoData();this.Xd=
+new xO(d,function(l){return b.HB(l)},f,c.cf,qG(c));
+g.M(this,this.Xd);this.Xd.subscribe("autohideupdate",this.ul,this);if(!c.disablePaidContentOverlay){var h=new LO(a);g.M(this,h);g.AN(a,h.element,4)}this.IE=new NO(a);g.M(this,this.IE);g.AN(this.api,this.IE.element,2);this.lI=this.api.isMutedByMutedAutoplay();this.P(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.AE=new g.Zn(this.Sw,200,this);g.M(this,this.AE);this.KI=f.videoId;this.fS=new g.Zn(function(){b.Dz=0},350);
+g.M(this,this.fS);this.XB=new g.Zn(function(){b.iL||OO(b)},350,this);
+g.M(this,this.XB);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.ho(f,"ytp-color-white")}g.XF(c)&&g.ho(f,"ytp-music-player");!a.K("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new JO(a),g.M(this,f));this.P(a,"appresize",this.xb);this.P(a,"presentingplayerstatechange",this.wh);this.P(a,"videodatachange",this.onVideoDataChange);this.P(a,"videoplayerreset",this.q1);this.P(a,"autonavvisibility",
+function(){b.vn()});
+this.P(a,"sizestylechange",function(){b.vn()});
+this.P(d,"click",this.Q1,this);this.P(d,"dblclick",this.R1,this);c.gb&&(this.P(d,"gesturechange",this.S1,this),this.P(d,"gestureend",this.T1,this));this.fq=[d.Zx];this.Mn&&this.fq.push(this.Mn.element);e&&this.fq.push(e)};
+QO=function(a,b){if(!b)return!1;var c=a.api.Qd();if(c.er()&&(c=c.tf())&&g.sh(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()};
+SHa=function(a){a=Pu()&&67<=wma()&&!a.api.R().I;return!Ou("tizen")&&!JF&&!a&&!0};
+TO=function(a,b){b=void 0===b?2:b;g.cz.call(this);this.api=a;this.j=null;this.Sc=new $y(this);g.M(this,this.Sc);this.u=yFa;this.Sc.P(this.api,"presentingplayerstatechange",this.bd);this.j=this.Sc.P(this.api,"progresssync",this.Wb);this.Fl=b;1===this.Fl&&this.Wb()};
+UO=function(a){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-back-button"],S:[{F:"div",L:"ytp-arrow-back-icon",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{F:"path",T:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Nb:!0,T:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.YK(this,a.R().showBackButton);this.Na("click",this.onClick)};
+g.VO=function(a){g.X.call(this,{F:"div",S:[{F:"div",L:"ytp-bezel-text-wrapper",S:[{F:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{F:"div",L:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},S:[{F:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.G=a;this.u=new g.Zn(this.show,10,this);this.j=new g.Zn(this.hide,500,this);g.M(this,this.u);g.M(this,this.j);this.hide()};
+XO=function(a,b,c){if(0>=b){c=mL();b="muted";var d=0}else c=c?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
+fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";WO(a,c,b,d+"%")};
+WHa=function(a,b){b=b?{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.HJ("Speed is $RATE",{RATE:String(c)});WO(a,b,d,c+"x")};
+XHa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";WO(a,GHa(),b)};
+WO=function(a,b,c,d){d=void 0===d?"":d;a.Ja("label",void 0===c?"":c);qG(a.G.R())?a.Ja("icon",null):a.Ja("icon",b);g.bo(a.j);a.u.start();a.Ja("title",d);g.N(a.element,"ytp-bezel-text-hide",!d)};
+ZO=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"span",L:"ytp-cards-button-icon-default",S:[{F:"div",L:"ytp-cards-button-icon",S:[a.R().K("player_new_info_card_format")?WEa():{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
+{F:"div",L:"ytp-cards-button-title",Z:"Info"}]},{F:"span",L:"ytp-cards-button-icon-shopping",S:[{F:"div",L:"ytp-cards-button-icon",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",L:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{F:"path",L:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
+"fill-opacity":"1"}},{F:"path",L:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{F:"div",
+L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.JL(this,250,!0,100);g.M(this,this.u);g.N(this.C,"ytp-show-cards-title",g.MF(a.R()));this.hide();this.Na("click",this.onClicked);this.Na("mouseover",this.J0);YO(this,!0)};
+YO=function(a,b){b?a.j=g.$O(a.B.pc(),a.element):(a.j=a.j,a.j(),a.j=null)};
+aP=function(a,b,c){g.X.call(this,{F:"div",L:"ytp-cards-teaser",S:[{F:"div",L:"ytp-cards-teaser-box"},{F:"div",L:"ytp-cards-teaser-text",S:a.R().K("player_new_info_card_format")?[{F:"button",L:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},S:[WEa()]},{F:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"},{F:"button",L:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},S:[g.eL()]}]:[{F:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.G=a;this.V=
+b;this.Gh=c;this.C=new g.JL(this,250,!1,250);this.j=null;this.J=new g.Zn(this.X0,300,this);this.I=new g.Zn(this.W0,2E3,this);this.D=[];this.u=null;this.N=new g.Zn(function(){d.element.style.margin="0"},250);
+this.onClickCommand=this.B=null;g.M(this,this.C);g.M(this,this.J);g.M(this,this.I);g.M(this,this.N);a.R().K("player_new_info_card_format")?(g.ho(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.P(this.ya("ytp-cards-teaser-close-button"),"click",this.ek),this.P(this.ya("ytp-cards-teaser-info-icon"),"click",this.ZK),this.P(this.ya("ytp-cards-teaser-label"),"click",this.ZK)):this.Na("click",this.ZK);this.P(c.element,"mouseover",this.RM);this.P(c.element,"mouseout",this.QM);this.P(a,"cardsteasershow",
+this.w2);this.P(a,"cardsteaserhide",this.Ib);this.P(a,"cardstatechange",this.hT);this.P(a,"presentingplayerstatechange",this.hT);this.P(a,"appresize",this.yL);this.P(a,"onShowControls",this.yL);this.P(a,"onHideControls",this.uX);this.Na("mouseenter",this.tV)};
+cP=function(a){g.X.call(this,{F:"button",Ca:[bP.BUTTON,bP.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{F:"div",L:bP.TITLE_NOTIFICATIONS_ON,T:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.iL()]},{F:"div",L:bP.TITLE_NOTIFICATIONS_OFF,T:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{F:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{F:"path",T:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
+this.api=a;this.j=!1;a.rb(this.element,this,36927);this.Na("click",this.onClick,this);this.Ja("pressed",!1);this.Ja("label","Get notified about every new video")};
+YHa=function(a,b){a.j=b;a.element.classList.toggle(bP.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.hG:c.gG)?(a=a.api.Cm())?uM(a,b):g.gu(Error("No innertube service available when updating notification preferences.")):g.gu(Error("No update preferences command available.")):g.gu(Error("No video data when updating notification preferences."))};
+g.eP=function(a,b,c,d,e,f,h,l,m,n,p,q,v){v=void 0===v?null:v;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=q.R();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.SF(w)||g.WF(w))c.target=w.J;g.X.call(this,{F:"div",Ca:["ytp-button","ytp-sb"],S:[{F:"a",L:"ytp-sb-subscribe",T:c,S:[{F:"div",L:"ytp-sb-text",S:[{F:"div",L:"ytp-sb-icon"},a]},b?{F:"div",L:"ytp-sb-count",Z:b}:""]}]});f&&g.ho(this.element,
+"ytp-sb-classic");this.channelId=h;this.j=v}else{p=w.userDisplayName&&g.SF(w)&&!w.K("subscribe_tooltipkillswitch");g.X.call(this,{F:"div",Ca:["ytp-button","ytp-sb"],S:[{F:"div",L:"ytp-sb-subscribe",T:p?{title:g.HJ("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":uG(w),"data-tooltip-opaque":String(g.MF(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{F:"div",L:"ytp-sb-text",S:[{F:"div",L:"ytp-sb-icon"},a]},b?
+{F:"div",L:"ytp-sb-count",Z:b}:""]},{F:"div",L:"ytp-sb-unsubscribe",T:p?{title:g.HJ("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":uG(w),"data-tooltip-opaque":String(g.MF(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{F:"div",L:"ytp-sb-text",S:[{F:"div",L:"ytp-sb-icon"},c]},d?{F:"div",L:"ytp-sb-count",Z:d}:""]}]});var y=this;this.channelId=h;this.j=v;var A=this.ya("ytp-sb-subscribe"),B=this.ya("ytp-sb-unsubscribe");
+f&&g.ho(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var H=y.channelId;if(m||n){var I={c:H};if(q.R().K("embeds_botguard_with_subscribe_killswitch"))I="";else{var O;g.VM.isInitialized()&&(O=jGa(I));I=O||""}if(O=q.getVideoData())if(O=O.subscribeCommand){var L=q.Cm();L?(uM(L,O,{botguardResponse:I,feature:m}),q.Ka("SUBSCRIBE",H)):g.gu(Error("No innertube service available when updating subscriptions."))}else g.gu(Error("No subscribe command in videoData."));else g.gu(Error("No video data available when updating subscription."))}B.focus();
+B.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")},G=function(){var H=y.channelId;
+if(m||n){var I=q.getVideoData();uM(q.Cm(),I.unsubscribeCommand,{feature:m});q.Ka("UNSUBSCRIBE",H)}A.focus();A.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
+this.P(A,"click",E);this.P(B,"click",G);this.P(A,"keypress",function(H){13===H.keyCode&&E(H)});
+this.P(B,"keypress",function(H){13===H.keyCode&&G(H)});
+this.P(q,"SUBSCRIBE",this.u);this.P(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.pc(),dP(this.tooltip),g.cf(this,g.$O(this.tooltip,A)),g.cf(this,g.$O(this.tooltip,B)))}else g.ho(A,"ytp-sb-disabled"),g.ho(B,"ytp-sb-disabled")}};
+fP=function(a,b){g.X.call(this,{F:"div",L:"ytp-title-channel",S:[{F:"div",L:"ytp-title-beacon"},{F:"a",L:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:a.R().J,"aria-label":"{{channelLogoLabel}}"}},{F:"div",L:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{F:"div",L:"ytp-title-expanded-heading",S:[{F:"div",L:"ytp-title-expanded-title",S:[{F:"a",Z:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:a.R().J,tabIndex:"{{channelTitleFocusable}}"}}]},{F:"div",
+L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ya("ytp-title-channel");this.j=this.ya("ytp-title-channel-logo");this.C=this.ya("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.MF(this.api.R());a.rb(this.j,this,36925);this.D&&ZHa(this);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",this.Fa);this.Fa()};
+ZHa=function(a){var b=a.api.R(),c=a.api.getVideoData();if(!b.Ld){var d=b.authUser?null:DFa(),e=new g.eP("Subscribe",null,"Subscribed",null,!0,!1,c.Ek,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.M(a,e);e.xa(a.C);a.api.rb(e.element,a,36926);e.hide();a.P(e.element,"click",function(){a.api.qb(e.element)});
+var f=new cP(a.api);a.u=f;g.M(a,f);f.xa(a.C);f.hide();a.P(a.api,"SUBSCRIBE",function(){c.rk&&f.show()});
+a.P(a.api,"UNSUBSCRIBE",function(){c.rk&&(f.hide(),YHa(f,!1))})}a.Ja("flyoutUnfocusable","true");
+a.Ja("channelTitleFocusable","-1");b.isMobile||b.Ak?a.P(a.j,"click",function(h){$Ha(a)&&(h.preventDefault(),a.isExpanded()?a.NG():a.uH());a.api.qb(a.j)}):(a.P(a.channel,"mouseenter",a.uH),a.P(a.channel,"mouseleave",a.NG),a.P(a.channel,"focusin",a.uH),a.P(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.NG()}),a.P(a.j,"click",function(){a.api.qb(a.j)}));
+a.B=new g.Zn(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Ta(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Ta(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
+g.M(a,a.B);a.P(a.channel,aIa,function(){bIa(a)});
+a.P(a.api,"onHideControls",a.nK);a.P(a.api,"appresize",a.nK);a.P(a.api,"fullscreentoggled",a.nK)};
+bIa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
+$Ha=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
+cIa=function(a,b){var c={};a.api.R().ra&&g.bN(c,a.api.R().loaderUrl);return g.wi(b,g.aN(c,"emb_ch_name_ex"))};
+gP=function(a,b,c,d,e,f){var h={F:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",L:"ytp-panel-header",S:[{F:"div",Ca:["ytp-panel-back-button-container"],S:[{T:{"aria-label":"Back to previous menu"},F:"button",Ca:["ytp-button",l]}]},{T:{tabindex:"0"},F:"span",Ca:[m],S:[c]}]};if(e){var p="ytp-panel-options";n.S.push({F:"button",Ca:["ytp-button",p],S:[d]})}h.S=[n]}d=!1;f&&(f={F:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.ZK.call(this,
+h);this.content=b;d&&h.S?b.xa(this.element,h.S.length-1):b.xa(this.element);this.uP=!1;this.tP=d;c&&(c=this.ya(l),m=this.ya(m),this.P(c,"click",this.JQ),this.P(m,"click",this.JQ),this.uP=!0,e&&(p=this.ya(p),this.P(p,"click",e)));b.subscribe("size-change",this.PQ,this);this.P(a,"fullscreentoggled",this.PQ);g.N(this.element,"ytp-panel-min-width-killswitch",a.R().K("player_panel_min_width_killswitch"));this.G=a};
+dIa=function(a,b){var c=new g.ZK({F:"div",L:"ytp-multi-item-panel"});a.content.xa(c.element);b.xa(c.element);a.content=c;c.xa(a.element);g.M(a,c)};
+g.hP=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.ZK({F:"div",L:"ytp-panel-menu",T:h});gP.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.M(this,this.menuItems)};
+g.iP=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.EJ,a);a.items=[];g.oh(a.menuItems.element);a.menuItems.X("size-change")};
+eIa=function(a,b){return b.priority-a.priority};
+jP=function(a){var b=g.GN({"aria-haspopup":"true"});g.FN.call(this,b,a);this.Na("keydown",this.j)};
+kP=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
+lP=function(a,b){g.X.call(this,{F:"div",L:"ytp-user-info-panel",T:{"aria-label":"User info"},S:a.R().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{F:"div",L:"ytp-user-info-panel-icon",Z:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",S:[{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},Z:"{{watchingAsUsername}}"},{F:"div",L:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Z:"{{watchingAsEmail}}"}]}]:[{F:"div",L:"ytp-user-info-panel-icon",
+Z:"{{icon}}"},{F:"div",L:"ytp-user-info-panel-content",S:[{F:"div",S:[{F:"text",T:{tabIndex:"{{userInfoFocusable}}"},Z:"Signed out"}]},{F:"div",L:"ytp-user-info-panel-login",S:[{F:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Z:a.R().Ld?"":"Sign in on YouTube"}]}]}]});this.Sa=a;this.j=b;a.R().authUser||a.R().Ld||(a=this.ya("ytp-user-info-panel-login"),this.P(a,"click",this.vV));this.closeButton=new g.X({F:"button",Ca:["ytp-collapse","ytp-button"],T:{title:"Close"},S:[g.bFa()]});this.closeButton.xa(this.element);
+g.M(this,this.closeButton);this.P(window,"blur",this.hide);this.P(document,"click",this.uV);this.Fa()};
+mP=function(a,b,c,d){g.hP.call(this,a);this.ib=c;this.Ec=d;this.getVideoUrl=new jP(6);this.dl=new jP(5);this.Zk=new jP(4);this.Ob=new jP(3);this.iA=new g.FN(g.GN({href:"{{href}}",target:this.G.R().J},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.FN(g.GN(),1,"Stats for nerds");this.qv=new g.ZK({F:"div",Ca:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},Z:"{{text}}"});this.jO=new gP(this.G,this.qv);this.KA=this.Tp=null;g.MF(this.G.R())&&(this.yk=new g.FN(g.GN(),
+8,"Account"),g.M(this,this.yk),this.Bc(this.yk,!0),this.yk.Na("click",this.f2,this),a.rb(this.yk.element,this.yk,137682));this.G.R().Mk&&(this.Xj=new MN("Loop",7),g.M(this,this.Xj),this.Bc(this.Xj,!0),this.Xj.Na("click",this.Q0,this),a.rb(this.Xj.element,this.Xj,28661));g.M(this,this.getVideoUrl);this.Bc(this.getVideoUrl,!0);this.getVideoUrl.Na("click",this.G0,this);a.rb(this.getVideoUrl.element,this.getVideoUrl,28659);g.M(this,this.dl);this.Bc(this.dl,!0);this.dl.Na("click",this.H0,this);a.rb(this.dl.element,
+this.dl,28660);g.M(this,this.Zk);this.Bc(this.Zk,!0);this.Zk.Na("click",this.F0,this);a.rb(this.Zk.element,this.Zk,28658);g.M(this,this.Ob);this.Bc(this.Ob,!0);this.Ob.Na("click",this.E0,this);g.M(this,this.iA);this.Bc(this.iA,!0);this.iA.Na("click",this.M1,this);g.M(this,this.showVideoInfo);this.Bc(this.showVideoInfo,!0);this.showVideoInfo.Na("click",this.g2,this);g.M(this,this.qv);this.qv.Na("click",this.t0,this);g.M(this,this.jO);b=document.queryCommandSupported&&document.queryCommandSupported("copy");
+43<=Gb("Chromium")&&(b=!0);40>=Gb("Firefox")&&(b=!1);b&&(this.Tp=new g.X({F:"textarea",L:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.M(this,this.Tp),this.Tp.xa(this.element));var e;null==(e=this.yk)||HN(e,ZEa());var f;null==(f=this.Xj)||HN(f,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});HN(this.Ob,{F:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",
+T:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
+fill:"white","fill-rule":"evenodd"}}]});HN(this.iA,{F:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{F:"path",T:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
+fill:"white","fill-rule":"evenodd"}}]});HN(this.showVideoInfo,VEa());this.P(a,"onLoopChange",this.onLoopChange);this.P(a,"videodatachange",this.onVideoDataChange);fIa(this);this.GK(this.G.getVideoData())};
+oP=function(a,b){var c=!1;if(a.Tp){var d=a.Tp.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.ib.Ib():(a.qv.Sd(b,"text"),g.nP(a.ib,a.jO),DO(a.qv.element),a.Tp&&(a.Tp=null,fIa(a)));return c};
+fIa=function(a){var b=!!a.Tp;a.Ob.Ig(b?"Copy debug info":"Get debug info");kP(a.Ob,!b);a.Zk.Ig(b?"Copy embed code":"Get embed code");kP(a.Zk,!b);a.getVideoUrl.Ig(b?"Copy video URL":"Get video URL");kP(a.getVideoUrl,!b);a.dl.Ig(b?"Copy video URL at current time":"Get video URL at current time");kP(a.dl,!b);HN(a.Zk,b?TEa():null);HN(a.getVideoUrl,b?gL():null);HN(a.dl,b?gL():null)};
+g.pP=function(a,b){g.CN.call(this,a,{F:"div",Ca:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.C=null;this.rB=this.maxWidth=0;this.size=new g.Qg(0,0);this.Na("keydown",this.wV)};
+gIa=function(a){var b=a.j[a.j.length-1];if(b){g.Il(a.element,a.maxWidth||"100%",a.rB||"100%");b.G.R().K("player_panel_min_width_killswitch")&&g.yl(b.element,"minWidth","250px");g.yl(b.element,"width","");g.yl(b.element,"height","");g.yl(b.element,"maxWidth","100%");g.yl(b.element,"maxHeight","100%");g.yl(b.content.element,"height","");var c=g.Jl(b.element);c.width+=1;c.height+=1;g.yl(b.element,"width",c.width+"px");g.yl(b.element,"height",c.height+"px");g.yl(b.element,"maxWidth","");g.yl(b.element,
+"maxHeight","");var d=0;b.uP&&(d=b.ya("ytp-panel-header"),d=g.Jl(d).height);var e=0;b.tP&&(e=b.ya("ytp-panel-footer"),g.yl(e,"width",c.width+"px"),e=g.Jl(e).height);g.yl(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];qP(a,b,c,!0)}};
+qP=function(a,b,c,d){hIa(a);b&&(b.unsubscribe("size-change",a.Zw,a),b.unsubscribe("back",a.Ti,a));c.subscribe("size-change",a.Zw,a);c.subscribe("back",a.Ti,a);if(a.tb){g.ho(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.xa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;gIa(a);g.Il(a.element,e);a.C=new g.Zn(function(){iIa(a,b,c,d)},20,a);
+a.C.start()}else c.xa(a.element),b&&b.detach()};
+iIa=function(a,b,c,d){a.C.dispose();a.C=null;g.ho(a.element,"ytp-popup-animating");d?(g.ho(b.element,"ytp-panel-animate-forward"),g.jo(c.element,"ytp-panel-animate-back")):(g.ho(b.element,"ytp-panel-animate-back"),g.jo(c.element,"ytp-panel-animate-forward"));g.Il(a.element,a.size);a.I=new g.Zn(function(){g.jo(a.element,"ytp-popup-animating");b.detach();g.ko(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
+a.I.start()};
+hIa=function(a){a.C&&g.ao(a.C);a.I&&g.ao(a.I)};
+g.sP=function(a,b,c){g.pP.call(this,a);this.qa=b;this.Ec=c;this.B=new g.YD(this);this.W=new g.Zn(this.D2,1E3,this);this.Y=this.D=null;g.M(this,this.B);g.M(this,this.W);a.rb(this.element,this,28656);g.ho(this.element,"ytp-contextmenu");jIa(this);this.hide()};
+jIa=function(a){g.bz(a.B);if("gvn"!==a.G.R().playerStyle){var b=a.G.Za();a.B.P(b,"contextmenu",a.o0);a.B.P(b,"touchstart",a.yV,null,!0);a.B.P(b,"touchmove",a.rR,null,!0);a.B.P(b,"touchend",a.rR,null,!0)}};
+kIa=function(a){a.G.isFullscreen()?g.AN(a.G,a.element,10):a.xa(document.body)};
+g.tP=function(a,b,c){c=void 0===c?240:c;g.X.call(this,{F:"button",Ca:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{F:"div",L:"ytp-copylink-title",Z:"Copy link",T:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.pc();b=a.R();dP(this.tooltip);g.N(this.element,"ytp-show-copylink-title",g.MF(b)&&!g.XF(b));a.rb(this.element,this,86570);this.Na("click",
+this.onClick);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",this.Fa);this.P(a,"appresize",this.Fa);this.Fa();g.cf(this,g.$O(this.tooltip,this.element))};
+lIa=function(a){a.Ja("icon",bL());if(a.api.R().isMobile)uP(a.tooltip,a.element,"Link copied to clipboard");else{a.Ja("title-attr","Link copied to clipboard");vP(a.tooltip);uP(a.tooltip,a.element);var b=a.Na("mouseleave",function(){a.uc(b);a.Fa();a.tooltip.Nj()})}};
+mIa=function(a,b){return g.z(function(c){if(1==c.j)return g.ra(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.va(c);var d=c.return,e=!1,f=g.mh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Wu){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
+return d.call(c,e)})};
+wP=function(){g.X.call(this,{F:"div",L:"ytp-doubletap-ui",S:[{F:"div",Ca:["ytp-seek-info-container","ytp-seek-static-circle"],S:[{F:"div",L:"ytp-seek-arrows-container",S:[{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"},{F:"span",L:"ytp-seek-base-arrow"}]},{F:"div",L:"ytp-seek-tooltip",S:[{F:"div",L:"ytp-chapter-seek-text",Z:"{{chapterSeekText}}"},{F:"div",L:"ytp-seek-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.u=new g.Zn(this.show,10,this);this.j=new g.Zn(this.hide,700,this);
+g.M(this,this.u);g.M(this,this.j);this.hide()};
+xP=function(a){g.X.call(this,{F:"div",L:"ytp-doubletap-ui-legacy",S:[{F:"div",L:"ytp-doubletap-fast-forward-ve"},{F:"div",L:"ytp-doubletap-rewind-ve"},{F:"div",L:"ytp-doubletap-static-circle",S:[{F:"div",L:"ytp-doubletap-ripple"}]},{F:"div",L:"ytp-doubletap-overlay-a11y"},{F:"div",L:"ytp-doubletap-seek-info-container",S:[{F:"div",L:"ytp-doubletap-arrows-container",S:[{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"},{F:"span",L:"ytp-doubletap-base-arrow"}]},{F:"div",
+L:"ytp-doubletap-tooltip",S:[{F:"div",L:"ytp-chapter-seek-text-legacy",Z:"{{seekText}}"},{F:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.Zn(this.show,10,this);this.u=new g.Zn(this.hide,700,this);this.j=this.ya("ytp-doubletap-static-circle");g.M(this,this.B);g.M(this,this.u);this.hide();this.C=this.ya("ytp-doubletap-fast-forward-ve");this.D=this.ya("ytp-doubletap-rewind-ve");this.G.rb(this.C,this,28240);this.G.rb(this.D,this,28239);this.G.Ta(this.C,!0);this.G.Ta(this.D,
+!0)};
+nIa=function(a,b){b=g.HJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ja("seekTime",b)};
+yP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
+zP=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
+oIa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&bd;e={Wo:e.Wo},f++){e.Wo=c[f];a:switch(e.Wo.img||e.Wo.iconId){case "facebook":var h={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
+fill:"#39579b"}}]};break a;case "twitter":h={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
+fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.X({F:"a",Ca:["ytp-share-panel-service-button","ytp-button"],T:{href:e.Wo.url,target:"_blank",title:e.Wo.sname||e.Wo.serviceName},S:[h]}),h.Na("click",function(m){return function(n){if(g.YL(n)){var p=m.Wo.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var v=q;v||(v={});q=window;var w=p instanceof kg?p:g.mg("undefined"!=typeof p.href?p.href:String(p));var y=void 0!==self.crossOriginIsolated,
+A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);var B="unsafe-url"===A;A=v.noreferrer;if(y&&A){if(B)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");A=!1}p=v.target||p.target;y=[];for(var E in v)switch(E){case "width":case "height":case "top":case "left":y.push(E+"="+v[E]);break;case "target":case "noopener":case "noreferrer":break;default:y.push(E+"="+(v[E]?1:0))}E=y.join(",");Lb()&&
+q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(v=g.mh("A"),g.zg(v,w),v.target=p,A&&(v.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),v.dispatchEvent(w),q={}):A?(q=Ag("",q,p,E),w=g.lg(w),q&&(g.rG&&g.ib(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.yg(g.fg("b/12014412, meta tag with sanitized URL"),''),(v=q.document)&&
+v.write&&(v.write(g.wg(w)),v.close()))):((q=Ag(w,q,p,E))&&v.noopener&&(q.opener=null),q&&v.noreferrer&&(q.opener=null));q&&(q.opener||(q.opener=window),q.focus());g.Gx(n)}}}(e)),g.cf(h,g.$O(a.tooltip,h.element)),a.j.push(h),d++)}var l=b.more||b.moreLink;
+b=new g.X({F:"a",Ca:["ytp-share-panel-service-button","ytp-button"],S:[{F:"span",L:"ytp-share-panel-service-button-more",S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{F:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
+fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],T:{href:l,target:"_blank",title:"More"}});b.Na("click",function(m){g.BO(l,a.api,m)&&a.api.Ka("SHARE_CLICKED")});
+g.cf(b,g.$O(a.tooltip,b.element));a.j.push(b);a.Ja("buttons",a.j)};
+zIa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.af(c);a.j=[]};
+UP=function(a,b,c){c=void 0===c?!0:c;g.X.call(this,{F:"div",L:"ytp-suggested-action"});var d=this;this.G=a;this.eb=b;this.Ra=this.J=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ha=new g.Zn(function(){d.badge.element.style.width=""},200,this);
+this.W=new g.Zn(function(){SP(d);TP(d)},200,this);
+this.dismissButton=new g.X({F:"button",Ca:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.M(this,this.dismissButton);this.I=new g.X({F:"div",L:"ytp-suggested-action-badge-expanded-content-container",S:[{F:"label",L:"ytp-suggested-action-badge-title",Z:"{{badgeLabel}}"},this.dismissButton]});g.M(this,this.I);this.badge=new g.X({F:"button",Ca:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{F:"div",L:"ytp-suggested-action-badge-icon"}:
+"",this.I]});g.M(this,this.badge);this.badge.xa(this.element);this.N=new g.JL(this.badge,250,!1,100);g.M(this,this.N);this.qa=new g.JL(this.I,250,!1,100);g.M(this,this.qa);this.La=new g.Xn(this.x4,null,this);g.M(this,this.La);this.Y=new g.Xn(this.aY,null,this);g.M(this,this.Y);g.M(this,this.Ha);g.M(this,this.W);this.G.Ai(this.badge.element,this.badge,!0);this.G.Ai(this.dismissButton.element,this.dismissButton,!0);this.P(this.G,"onHideControls",function(){d.j=!1;TP(d);SP(d);d.Dj()});
+this.P(this.G,"onShowControls",function(){d.j=!0;TP(d);SP(d);d.Dj()});
+this.P(this.badge.element,"click",this.nJ);this.P(this.dismissButton.element,"click",this.oJ);this.P(this.G,"pageTransition",this.CV);this.P(this.G,"appresize",this.Dj);this.P(this.G,"fullscreentoggled",this.C0);this.P(this.G,"cardstatechange",this.g0);this.P(this.G,"annotationvisibility",this.A5,this);this.P(this.G,"offlineslatestatechange",this.B5,this)};
+SP=function(a){g.N(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
+TP=function(a,b){var c=a.J||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.Y.stop(),a.Ha.stop(),a.La.start()):(g.YK(a.I,a.expanded),g.N(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),BIa(a))};
+BIa=function(a){a.C&&a.G.Ta(a.badge.element,a.uA());a.D&&a.G.Ta(a.dismissButton.element,a.uA()&&(a.J||a.j||!a.u))};
+CIa=function(a){var b=a.text||"";g.th(g.eh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ua?a.Ua:"")};
+DIa=function(a,b){b?a.D&&a.G.qb(a.dismissButton.element):a.C&&a.G.qb(a.badge.element)};
+VP=function(a,b){UP.call(this,a,b);var c=this;this.V=this.va=this.Ea=!1;this.P(this.G,g.uA("shopping_overlay_visible"),function(){c.zf(!0)});
+this.P(this.G,g.vA("shopping_overlay_visible"),function(){c.zf(!1)});
+this.P(this.G,g.uA("shopping_overlay_expanded"),function(){c.J=!0;TP(c)});
+this.P(this.G,g.vA("shopping_overlay_expanded"),function(){c.J=!1;TP(c)});
+this.P(this.G,"changeProductsInVideoVisibility",this.t1);this.P(this.G,"videodatachange",this.onVideoDataChange);this.P(this.G,"paidcontentoverlayvisibilitychange",this.j1)};
+WP=function(a){a.G.Af("shopping_overlay_visible");a.G.Af("shopping_overlay_expanded")};
+XP=function(a){g.CN.call(this,a,{F:"button",Ca:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{F:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Zn(function(){b.hide()},5E3);
+this.Kd=this.bf=NaN;g.M(this,this.j);this.I=function(){b.show()};
+this.D=function(){b.hide()};
+this.C=function(){var c=b.G.getCurrentTime();c>b.bf/1E3&&c=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+v+"px/"+l+"px "+m+"px"};
+g.dQ=function(a){g.X.call(this,{F:"div",L:"ytp-storyboard-framepreview",S:[{F:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.ya("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.YD(this);this.j=new g.JL(this,100);g.M(this,this.events);g.M(this,this.j);this.P(this.api,"presentingplayerstatechange",this.bd)};
+eQ=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.P(a.api,"videodatachange",function(){eQ(a,a.api.Ii())}),a.events.P(a.api,"progresssync",a.Vd),a.events.P(a.api,"appresize",a.D)),a.B=NaN,fQ(a),a.j.show(200)):(c&&g.bz(a.events),a.j.hide(),a.j.stop())};
+fQ=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.Za().getPlayerSize(),e=zH(b,d.width);c=IAa(b,e,c);c!==a.B&&(a.B=c,GAa(b,c,d.width),b=EAa(b,c,d.width),HIa(a.C,b,d.width,d.height))};
+gQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-fullerscreen-edu-button","ytp-button"],S:[{F:"div",Ca:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{F:"div",Ca:["ytp-fullerscreen-edu-chevron"],S:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Sa=a;this.B=b;this.j=new g.JL(this,250,void 0,100);this.C=this.u=!1;a.rb(this.element,this,61214);this.B=b;g.M(this,this.j);this.P(a,
+"fullscreentoggled",this.Fa);this.P(a,"presentingplayerstatechange",this.Fa);this.Na("click",this.onClick);this.Fa()};
+g.hQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-fullscreen-button","ytp-button"],T:{title:"{{title}}"},Z:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.$O(this.u.pc(),this.element);this.B=new g.Zn(this.pX,2E3,this);g.M(this,this.B);this.P(a,"fullscreentoggled",this.wk);this.P(a,"presentingplayerstatechange",this.Fa);this.Na("click",this.onClick);g.Wy()&&(b=this.G.Za(),this.P(b,Bra(),this.xJ),this.P(b,Zy(document),this.Eo));a.R().gb||a.R().I||this.disable();a.rb(this.element,this,
+139117);this.Fa();this.wk(a.isFullscreen())};
+iQ=function(a,b,c){bQ.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.P(a,g.vA("timedMarkerCueRange"),this.Wb);this.P(a,"updatemarkervisibility",this.updateVideoData)};
+IIa=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.Dd;if(c)for(a=a.C.Nc,c=g.r(c),b=c.next();!b.done;b=c.next())if(b=a[b.value])return b};
+jQ=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[$Ea()]});this.G=a;this.visible=!1;this.Na("click",this.onClick);this.P(a,"fullscreentoggled",this.Fa);this.Ja("title",EO(a,"Miniplayer","i"));g.cf(this,g.$O(b.pc(),this.element));a.rb(this.element,this,62946);this.Fa()};
+kQ=function(a,b,c){g.X.call(this,{F:"button",Ca:["ytp-multicam-button","ytp-button"],T:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
+fill:"#fff"}}]}]});var d=this;this.G=a;this.j=!1;this.u=new g.Zn(this.B,400,this);this.tooltip=b.pc();dP(this.tooltip);g.M(this,this.u);this.Na("click",function(){DN(c,d.element,!1)});
+this.P(a,"presentingplayerstatechange",function(){d.Fa(!1)});
+this.P(a,"videodatachange",this.onVideoDataChange);this.Fa(!0);g.cf(this,g.$O(this.tooltip,this.element))};
+lQ=function(a){g.CN.call(this,a,{F:"div",L:"ytp-multicam-menu",T:{role:"dialog"},S:[{F:"div",L:"ytp-multicam-menu-header",S:[{F:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{F:"button",Ca:["ytp-multicam-menu-close","ytp-button"],T:{"aria-label":"Close"},S:[g.eL()]}]}]},{F:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.YD(this);this.items=this.ya("ytp-multicam-menu-items");this.j=[];g.M(this,this.B);a=this.ya("ytp-multicam-menu-close");this.P(a,"click",this.Ib);this.hide()};
+mQ=function(){g.K.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Xn(this.j,null,this);g.M(this,this.delay)};
+JIa=function(a,b){if("path"===b.F)return b.T.d;if(b.S)for(var c=0;c=l)break}a.D=e;a.frameCount=b.jB();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)e=
+void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.j.pop())||d.dispose();for(;a.j.length<
+c.length;)d=new wQ,a.j.push(new wQ),g.M(a,d);c=g.r(c.entries());for(d=c.next();!d.done;d=c.next())e=g.r(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.yl(a.j[d].element,"transform","translateX("+e%b.rows*160*a.scale+"px)"),a.j[d].xa(a.thumbnails[f].element);a.W=!0}}};
+vQ=function(a,b){a.update({seekTime:g.XL(b)});var c=160*a.scale;b=b-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
+YIa=function(a){return-((a.B.offsetWidth||160*(a.frameCount-1)*a.scale)-a.C/2)};
+WIa=function(){g.X.call(this,{F:"div",L:"ytp-fine-scrubbing-thumbnail"})};
+wQ=function(){g.X.call(this,{F:"div",L:"ytp-fine-scrubbing-chapter-title",S:[{F:"div",L:"ytp-fine-scrubbing-chapter-title-content",Z:"{{chapterTitle}}"}]})};
+$Ia=function(a){g.X.call(this,{F:"div",L:"ytp-heat-map-chapter",S:[{F:"svg",L:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{F:"defs",S:[{F:"clipPath",T:{id:"{{id}}"},S:[{F:"path",L:"ytp-heat-map-path",T:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",L:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",
+height:"100%",x:"0",y:"0"}},{F:"rect",L:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.ya("ytp-heat-map-svg");this.D=this.ya("ytp-heat-map-path");this.C=this.ya("ytp-heat-map-graph");this.B=this.ya("ytp-heat-map-play");this.u=this.ya("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Ra(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
+bJa=function(a,b,c,d){d=void 0===d?!1:d;b=new aJa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
+aJa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
+xQ=function(){g.X.call(this,{F:"div",L:"ytp-chapter-hover-container",S:[{F:"div",L:"ytp-progress-bar-padding"},{F:"div",L:"ytp-progress-list",S:[{F:"div",Ca:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",L:"ytp-progress-linear-live-buffer"},{F:"div",L:"ytp-load-progress"},{F:"div",L:"ytp-hover-progress"},{F:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.ya("ytp-progress-linear-live-buffer");this.B=this.ya("ytp-ad-progress-list");
+this.D=this.ya("ytp-load-progress");this.I=this.ya("ytp-play-progress");this.u=this.ya("ytp-hover-progress");this.j=this.ya("ytp-chapter-hover-container")};
+yQ=function(a,b){g.yl(a.j,"width",b)};
+zQ=function(a,b){g.yl(a.j,"margin-right",b+"px")};
+AQ=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
+cJa=function(){this.B=this.position=this.C=this.j=this.D=this.u=this.width=NaN};
+BQ=function(){g.X.call(this,{F:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
+g.DQ=function(a,b){g.ZK.call(this,{F:"div",L:"ytp-progress-bar-container",T:{"aria-disabled":"true"},S:[{F:"div",Ca:["ytp-heat-map-container"],S:[{F:"div",L:"ytp-heat-map-edu"}]},{F:"div",Ca:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{F:"div",L:"ytp-chapters-container"},{F:"div",L:"ytp-marker-crenellation-list"},{F:"div",L:"ytp-timed-markers-container"},
+{F:"div",L:"ytp-clip-start-exclude"},{F:"div",L:"ytp-clip-end-exclude"},{F:"div",L:"ytp-scrubber-container",S:[{F:"div",Ca:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{F:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",Ca:["ytp-fine-scrubbing-container"],S:[{F:"div",L:"ytp-fine-scrubbing-edu"}]},{F:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{F:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{F:"div",L:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},
+{F:"div",L:"ytp-clip-end",T:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=a;this.Pe=!1;this.D=this.rg=0;this.Ya=1;this.Ld=this.V=0;this.J=null;this.va=this.Bd=0;this.gb=this.ya("ytp-marker-crenellation-list");this.Ra={};this.Mc={};this.clipEnd=Infinity;this.yc=this.ya("ytp-clip-end");this.Dd=new g.gz(this.yc,!0);this.bf=this.ya("ytp-clip-end-exclude");this.Ng=this.ya("ytp-clip-start-exclude");this.clipStart=0;this.zc=this.ya("ytp-clip-start");this.Ed=new g.gz(this.zc,!0);this.Y=this.Eb=
+0;this.xc=this.ya("ytp-progress-bar");this.Yb={};this.Nc={};this.Cd=this.ya("ytp-chapters-container");this.vg=this.ya("ytp-timed-markers-container");this.j=[];this.N=[];this.Oe={};this.cf=null;this.eb=-1;this.Kb=this.Ea=0;this.W=null;this.He=this.ya("ytp-scrubber-button");this.jh=this.ya("ytp-scrubber-container");this.Cb=new g.Gg;this.pg=new cJa;this.B=new aM(0,0);this.sb=null;this.C=this.rd=!1;this.qg=null;this.ub=this.ya("ytp-fine-scrubbing-container");this.qa=this.ya("ytp-heat-map-container");
+this.Fd=this.ya("ytp-heat-map-edu");this.og=this.ya("ytp-fine-scrubbing-edu");this.I=[];this.La=this.Kd=this.Ha=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.pc();g.cf(this,g.$O(this.tooltip,this.yc));g.M(this,this.Dd);this.Dd.subscribe("hoverstart",this.MQ,this);this.Dd.subscribe("hoverend",this.LQ,this);this.P(this.yc,"click",this.aE);g.cf(this,g.$O(this.tooltip,this.zc));g.M(this,this.Ed);this.Ed.subscribe("hoverstart",this.MQ,this);this.Ed.subscribe("hoverend",this.LQ,this);this.P(this.zc,
+"click",this.aE);dJa(this);this.P(a,"resize",this.xb);this.P(a,"presentingplayerstatechange",this.HV);this.P(a,"videodatachange",this.Qp);this.P(a,"videoplayerreset",this.OY);this.P(a,"cuerangesadded",this.lT);this.P(a,"cuerangesremoved",this.B3);this.P(a,"cuerangemarkersupdated",this.lT);this.P(a,"onLoopRangeChange",this.UM);this.P(a,"innertubeCommand",this.onClickCommand);this.P(a,g.uA("timedMarkerCueRange"),this.B2);this.P(a,"updatemarkervisibility",this.jT);this.updateVideoData(a.getVideoData(),
+!0);this.UM(a.getLoopRange());CQ(this)&&(this.u||(this.u=new tQ(this.api,this.tooltip,this.D),this.u.xa(this.ub),g.M(this,this.u),this.P(this.u.dismissButton,"click",this.EO),this.P(this.u.playButton,"click",this.zH),this.P(this.u.element,"dblclick",this.zH)),g.ho(this.api.getRootNode(),"ytp-fine-scrubbing-exp"));a=this.api.R();g.MF(a)&&a.isMobile&&a.K("embeds_web_enable_progress_bar_context_menu_fix")&&g.ho(this.element,"ytp-no-contextmenu");this.api.rb(this.qa,this,139609,!0);this.api.rb(this.Fd,
+this,140127,!0);this.api.rb(this.og,this,151179,!0);this.api.rb(this.gb,this,145078,!0)};
+dJa=function(a){if(0===a.j.length){var b=new xQ;a.j.push(b);g.M(a,b);b.xa(a.Cd,0)}for(;1=f&&B<=h&&d.push(v)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,v=p.j[q-1];void 0!==v&&0a.Kb&&(a.Kb=m/f),d=!0)}c++}}return d};
+KQ=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.K("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:zI(d))&&b.airingStart&&b.airingEnd?iJa(a,b.airingStart,b.airingEnd):iJa(a,b.seekableStart,b.seekableEnd);d=dM(c,b.loaded,0);b=dM(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;LQ(a,b,d);e&&MQ(a);jJa(a)}}};
+iJa=function(a,b,c){return NQ(a)?new aM(Math.max(b,a.sb.startTimeMs/1E3),Math.min(c,a.sb.endTimeMs/1E3)):new aM(b,c)};
+kJa=function(a,b){var c;!a.api.K("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.sb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[zP(a.j,b.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!1)),a.sb&&(b=a.j[zP(a.j,a.sb.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.N(d.j,"ytp-exp-chapter-hover-container",!a.sb)}))};
+PQ=function(a,b){var c=cM(a.B,b.B);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ea)};
+mJa=function(a,b,c,d){b=g.Cg(b,0,a.C?60:40);a.V=b;var e=a.Ya;a.Ya=b/(a.C?60:40)*(Math.max(bM(a.B)/a.D,1)-1)+1;b=a.D*a.Ya;a.va=g.Cg(d*b-c,0,b-a.D);e!==a.Ya&&MQ(a)};
+MQ=function(a){if(1!==a.j.length||CQ(a))a.He.style.removeProperty("height");else{var b=JQ(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Fda(a.gb),f=0;if(a.V>.2*(a.C?60:40)){for(var h=d*(bM(a.B)/60),l=Math.ceil(c*(bM(a.B)/60));l=f;c--)g.qh(e[c]);a.element.style.height=a.V+(a.C?8:5)+"px";a.X("height-change",a.V);a.He.style.height=a.V+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Ra));for(f=e.next();!f.done;f=e.next())nJa(a,f.value);QQ(a);LQ(a,a.Y,a.Eb)};
+JQ=function(a){var b=a.Cb.x,c=a.D*a.Ya;b=g.Cg(b,0,a.D);a.pg.update(b,a.D,-a.va,-(c-a.va-a.D));return a.pg};
+RQ=function(a){return(a.C?135:90)-(a.C?54:48)};
+LQ=function(a,b,c){a.Y=b;a.Eb=c;var d=JQ(a),e=a.B.j,f=cM(a.B,a.Y),h=g.HJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.XL(f,!0),DURATION:g.XL(e,!0)}),l=zP(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.sb&&2!==a.api.getPresentingPlayerType()&&(e=a.sb.startTimeMs/1E3,f=a.sb.endTimeMs/1E3);e=dM(a.B,e,0);l=dM(a.B,f,1);h=a.api.getVideoData();f=g.Cg(b,e,l);c=(null==h?0:g.wI(h))?1:g.Cg(c,e,
+l);b=IQ(a,b,d);g.yl(a.jh,"transform","translateX("+b+"px)");SQ(a,d,e,f,"PLAY_PROGRESS");(null==h?0:zI(h))?(b=a.api.getProgressState().seekableEnd)&&SQ(a,d,f,dM(a.B,b),"LIVE_BUFFER"):SQ(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
+SQ=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ea*(a.C?3:2),l=c*h;c=OQ(a,l);var m=d*h;h=OQ(a,m);"HOVER_PROGRESS"===e&&(h=OQ(a,b.j*d,!0),m=b.j*d-oJa(a,b.j*d)*(a.C?3:2));b=Math.max(l-pJa(a,c),0);for(d=c;d=a.j.length)return a.D;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
+IQ=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.u};
+oJa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
+g.UQ=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.rg=b;a.D=c;a.C=d;CQ(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);MQ(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.GQ(a);a.u&&(a.u.C=a.D,f&&CQ(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.ub.style.height=c+"px",g.yl(a.qa,"transform","translateY("+-d+"px)"),g.yl(a.xc,"transform","translateY("+-d+"px)")),XIa(a.u)))};
+QQ=function(a){var b=!!a.sb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.sb?(c=a.sb.startTimeMs/1E3,d=a.sb.endTimeMs/1E3):(e=c>a.B.u,f=0a.Y);g.N(a.He,"ytp-scrubber-button-hover",c===d&&1=this.settingsMenu.DE&&(c.showMiniplayerButton&&!a.R().K("web_player_pip")&&(this.D=new jQ(a,b),g.M(this,this.D),this.D.xa(e.element)),this.W.xa(e.element),l.cG||this.W.hide(),c.Kb||(l=new CR(a,b),g.M(this,l),l.xa(e.element)),c.Eb&&(l=new WQ(a,b,this.settingsMenu),g.M(this,l),l.xa(e.element)),c.Hk&&(c=new YP(a,b),g.M(this,
+c),c.xa(e.element)));g.M(this,this.Ha);this.Ha.xa(e.element);g.M(this,this.ye);this.P(a,"appresize",this.xb);this.P(a,"fullscreentoggled",this.xb);this.P(a,"presentingplayerstatechange",this.KF);this.P(a,"videodatachange",this.onVideoDataChange);this.xb()};
+IJa=function(a,b){a.G.zb().isCued()||b?b&&(a.Y.hide(),a.ra.hide(),a.muteButton&&a.muteButton.lc(!1),a.C&&a.C.lc(!1),a.D&&a.D.lc(!1),a.B.pc().Nj(a.j.element)):b||(a.Y.show(),a.ra.show(),a.muteButton&&a.muteButton.lc(!0),a.C&&a.C.lc(!0),a.D&&a.D.lc(!0),a.ul())};
+JJa=function(a){var b=a.G.Za().getPlayerSize().width;return Math.max(b-2*NR(a),100)};
+NR=function(a){var b=a.B.Qf();return 12*(a.G.getVideoData().C?0:b?2:1)};
+OR=function(a){var b=a.B.Qf()?72:50;a=a.G.R();g.lG(a)&&(b=62,g.SF(a)&&(b=54));return b};
+PR=function(a,b){UP.call(this,a,b,!1);var c=this;this.P(this.G,"videodatachange",this.onVideoDataChange);this.P(this.G,g.uA("suggested_action_button_visible"),function(){c.zf(!0)});
+this.P(this.G,g.vA("suggested_action_button_visible"),function(){c.zf(!1)})};
+QR=function(a){a.G.Af("suggested_action_button_visible")};
+SR=function(a){var b={F:"div",L:RR.SUBTEXT,S:[{F:"a",L:RR.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]};a.R().B&&(b={F:"div",L:RR.SUBTEXT,S:[{F:"span",L:RR.CHANNEL_NAME,Z:"{{channelName}}"}]});g.X.call(this,{F:"div",L:RR.TITLE,S:[{F:"div",L:RR.TEXT,S:[{F:"a",Ca:[RR.LINK,RR.SESSIONLINK],T:{target:a.R().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Z:"{{title}}"},b]}]});this.api=a;this.j=null;this.link=this.ya(RR.LINK);
+a.rb(this.element,this,23851);this.P(a,"videodatachange",this.Fa);this.P(a,"videoplayerreset",this.Fa);this.Fa()};
+KJa=function(a){a.Ja("channelLink","");a.Ja("channelName","");a.Ja("channelTitleFocusable","-1")};
+g.TR=function(a,b){g.X.call(this,{F:"div",S:[{F:"div",L:"ytp-tooltip-text-wrapper",T:{"aria-hidden":"{{ariaHidden}}"},S:[{F:"div",L:"ytp-tooltip-edu",S:[{F:"svg",T:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",T:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{F:"span",Z:"{{eduText}}"}]},{F:"div",L:"ytp-tooltip-image"},{F:"div",L:"ytp-tooltip-title",S:[{F:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{F:"g",
+S:[{F:"rect",T:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",S:[{F:"g",S:[{F:"polygon",T:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{F:"polygon",T:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{F:"path",T:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{F:"span",Z:"{{title}}"}]},{F:"span",L:"ytp-tooltip-text",
+Z:"{{text}}"}]},{F:"div",L:"ytp-tooltip-bg",S:[{F:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.Ea=b;this.env=this.api.R();this.va=this.env.isMobile;this.bg=this.ya("ytp-tooltip-bg");this.image=this.ya("ytp-tooltip-image");this.text=this.ya("ytp-tooltip-text");this.title=this.ya("ytp-tooltip-title");this.V=function(d){(d=Ex(d))&&g.sh(c.u,d)||c.Ol()};
+this.C=function(d){3===c.type&&c.Ol();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.V),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.V),LJa(c,d,2))};
+this.W=function(){c.Ol()};
+this.u=null;this.D=new g.JL(this,100);this.type=null;this.N=!1;this.j=null;this.B=NaN;this.I="";this.LF=this.api.Za().getPlayerSize().width;this.J=!0;this.scale=1;this.Y=new g.Zn(this.JZ,250,this);this.qa=new g.Zn(this.Ol,5E3,this);g.M(this,this.D);g.M(this,this.Y);g.M(this,this.qa);IF&&(a=this.ya("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
+dP=function(a){a.element.setAttribute("aria-live","polite")};
+HJa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:UR(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.J=b};
+OJa=function(a,b,c,d,e,f,h,l,m){if(!a.va||a.env.I){3===a.type&&a.Ol();1!==a.type&&(g.fo(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.Ii(),a.j&&a.j.subscribe("l",a.VQ,a));a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.N(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.N(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=zH(a.j,160*a.scale),a.env.K("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=IAa(a.j,d,c));MJa(a,d);
+if(l)switch(c=g.Jl(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}NJa(a,!!e,b,f)}};
+g.VR=function(a){1===a.type&&a.Ol()};
+g.$O=function(a,b){if(a.va)return function(){};
+b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Ol();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
+uP=function(a,b,c){if(a.type)if(3===a.type)a.Ol();else return;LJa(a,b,3,c)};
+LJa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Rv("showElementTooltip called with non-element.",b.toString()),g.qz(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.N=!!d;d?a.I=d:(a.I=b.getAttribute("title"),b.removeAttribute("title"));g.fo(a.element,"ytp-tooltip");a.env.K("web_rounded_containers")&&g.ho(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});
+g.N(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.N(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.W);a.J&&(UR(a),a.D.show(0))}};
+UR=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.u;a.Ja("text",b);var d=c.getAttribute("data-duration");a.update({title:a.I,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.io(a.element,["ytp-text-detail","ytp-preview"]);
+g.N(a.element,"ytp-has-duration",!!d)}else a.Ja("text",a.I),g.ko(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);NJa(a,!!b)};
+NJa=function(a,b,c,d){var e=Math.min(a.LF,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ea.nt(a.element,a.u,c,1===a.type,d);a.element.style.top?g.ho(a.element,"ytp-bottom"):a.element.style.bottom&&g.ho(a.element,"ytp-top");3===a.type&&a.qa.start()};
+vP=function(a){a.u&&!a.N&&a.u.hasAttribute("title")&&(a.I=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.J&&UR(a))};
+MJa=function(a,b){g.N(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=EAa(a.j,a.B,b);HIa(a.bg,d,b,c,!0);a.Y.start()}};
+PJa=function(a){var b=a.u;3===a.type&&a.qa.stop();a.api.removeEventListener("appresize",a.W);a.N||b.setAttribute("title",a.I);a.I="";a.u=null};
+g.WR=function(a,b){g.X.call(this,{F:"button",Ca:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MF(a.R()))},S:[{F:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{F:"div",L:"ytp-watch-later-title",Z:"Watch later"}]});this.G=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.pc();dP(this.tooltip);a.rb(this.element,this,28665);this.Na("click",this.onClick,this);this.P(a,"videoplayerreset",this.RV);this.P(a,
+"appresize",this.sB);this.P(a,"videodatachange",this.sB);this.P(a,"presentingplayerstatechange",this.sB);this.sB();a=this.G.R();var c=g.Qz("yt-player-watch-later-pending");a.u&&c?(jya(),QJa(this)):this.Fa(2);g.N(this.element,"ytp-show-watch-later-title",g.MF(a));g.cf(this,g.$O(b.pc(),this.element))};
+RJa=function(a,b){g.jM(function(){jya({videoId:b});window.location.reload()},"wl_button",g.gG(a.G.R()))};
+QJa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Fa(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Cm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Fa(2);a.G.R().C&&a.G.Ka("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
+a.isRequestPending=!1;a.Fa(1);a.G.R().isMobile&&uP(a.tooltip,a.element);a.G.R().C&&a.G.Ka("WATCH_LATER_VIDEO_ADDED")};
+uM(c,b).then(d,function(){a.isRequestPending=!1;SJa(a,"An error occurred. Please try again later.")})}};
+SJa=function(a,b){a.Fa(4,b);a.G.R().C&&a.G.Ka("WATCH_LATER_ERROR",b)};
+TJa=function(a,b){var c=a.G.R();if(b!==a.icon){switch(b){case 3:var d=CO();break;case 1:d=bL();break;case 2:d={F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.K("watch_later_iconchange_killswitch")?{F:"svg",T:{height:"100%",version:"1.1",
+viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,L:"ytp-svg-fill",T:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{F:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{F:"path",Nb:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ja("icon",d);a.icon=b}};
+YR=function(a){g.PO.call(this,a);var b=this;this.RC=(this.As=g.MF(this.api.R()))&&(this.api.R().isMobile||Zu()||Xu());this.LG=48;this.MG=69;this.wm=null;this.gq=[];this.Ec=new g.VO(this.api);this.qy=this.api.K("web_player_deprecate_double_tap_ux")?new wP:new xP(this.api);this.Aj=new g.X({F:"div",L:"ytp-chrome-top"});this.HA=[];this.tooltip=new g.TR(this.api,this);this.backButton=this.uw=null;this.channelAvatar=new fP(this.api,this);this.title=new SR(this.api,this);this.di=new g.VK({F:"div",L:"ytp-chrome-top-buttons"});
+this.Hh=this.shareButton=this.Yi=null;this.Gh=new ZO(this.api,this,this.Aj.element);this.overflowButton=this.yh=null;this.Lf="1"===this.api.R().controlsType?new MR(this.api,this,this.Xd):null;this.contextMenu=new g.sP(this.api,this,this.Ec);this.AG=!1;this.iC=new g.X({F:"div",T:{tabindex:"0"}});this.hC=new g.X({F:"div",T:{tabindex:"0"}});this.aA=null;this.V2=this.YI=this.SB=!1;var c=a.Za(),d=a.R(),e=a.getVideoData();this.As&&(g.ho(a.getRootNode(),"ytp-embed"),g.ho(a.getRootNode(),"ytp-embed-playlist"),
+this.RC&&(g.ho(a.getRootNode(),"ytp-embed-overlays-autohide"),g.ho(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.LG=60,this.MG=89);this.api.R().isMobile&&(g.ho(a.getRootNode(),"ytp-mobile"),this.api.R().I&&g.ho(a.getRootNode(),"ytp-embed-mobile-exp"));this.Jh=e&&e.Jh;g.M(this,this.Ec);g.AN(a,this.Ec.element,4);g.M(this,this.qy);g.AN(a,this.qy.element,4);e=new g.X({F:"div",L:"ytp-gradient-top"});g.M(this,e);g.AN(a,e.element,1);this.hL=new g.JL(e,250,!0,100);g.M(this,this.hL);g.M(this,
+this.Aj);g.AN(a,this.Aj.element,1);this.gL=new g.JL(this.Aj,250,!0,100);g.M(this,this.gL);g.M(this,this.tooltip);g.AN(a,this.tooltip.element,4);var f=new IP(a);g.M(this,f);g.AN(a,f.element,5);f.subscribe("show",function(m){b.Ap(f,m)});
+this.HA.push(f);this.uw=new JP(a,this,f);g.M(this,this.uw);d.showBackButton&&(this.backButton=new UO(a),g.M(this,this.backButton),this.backButton.xa(this.Aj.element));this.As||this.uw.xa(this.Aj.element);this.channelAvatar.xa(this.Aj.element);g.M(this,this.channelAvatar);g.M(this,this.title);this.title.xa(this.Aj.element);g.M(this,this.di);this.di.xa(this.Aj.element);d.B||(this.Yi=new g.WR(a,this),g.M(this,this.Yi),this.Yi.xa(this.di.element));var h=new g.RP(a,this);g.M(this,h);g.AN(a,h.element,5);
+h.subscribe("show",function(m){b.Ap(h,m)});
+this.HA.push(h);d.B||(this.shareButton=new g.QP(a,this,h),g.M(this,this.shareButton),this.shareButton.xa(this.di.element),this.Hh=new g.tP(a,this),g.M(this,this.Hh),this.Hh.xa(this.di.element));d.Sl&&(e=new XP(a),g.M(this,e),g.AN(a,e.element,4));this.As&&this.uw.xa(this.di.element);g.M(this,this.Gh);this.Gh.xa(this.di.element);d.B||(e=new aP(a,this,this.Gh),g.M(this,e),e.xa(this.di.element));this.yh=new FP(a,this);g.M(this,this.yh);g.AN(a,this.yh.element,5);this.yh.subscribe("show",function(){b.Ap(b.yh,
+b.yh.qh())});
+this.HA.push(this.yh);this.overflowButton=new EP(a,this,this.yh);g.M(this,this.overflowButton);this.overflowButton.xa(this.di.element);this.Lf&&g.M(this,this.Lf);"3"===d.controlsType&&(e=new PP(a,this),g.M(this,e),g.AN(a,e.element,9));g.M(this,this.contextMenu);this.contextMenu.subscribe("show",this.qT,this);e=new eM(a,new TO(a));g.M(this,e);g.AN(a,e.element,4);this.iC.Na("focus",this.tY,this);g.M(this,this.iC);this.hC.Na("focus",this.uY,this);g.M(this,this.hC);var l;(this.uo=d.cf?null:new g.BP(a,
+c,this.contextMenu,this.Xd,this.Ec,this.qy,function(){return b.Wk()},null==(l=this.Lf)?void 0:l.xc))&&g.M(this,this.uo);
+this.As||(this.wS=new VP(this.api,this),g.M(this,this.wS),g.AN(a,this.wS.element,4));this.IS=new PR(this.api,this);g.M(this,this.IS);g.AN(a,this.IS.element,4);this.fq.push(this.Ec.element);this.P(a,"fullscreentoggled",this.Eo);this.P(a,"offlineslatestatechange",function(){b.api.kz()&&wO(b.Xd,128,!1)});
+this.P(a,"cardstatechange",function(){b.Dk()});
+this.P(a,"resize",this.q0);this.P(a,"showpromotooltip",this.S0)};
+UJa=function(a){var b=a.api.R(),c=g.W(a.api.zb(),128);return b.u&&c&&!a.api.isFullscreen()};
+ZR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Bl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=ZR(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexa;a++){var b=g.mh("VIDEO");b.load();iS.push(new g.vO(b))}};
+fKa=function(){};
+g.jS=function(a,b,c,d){d=void 0===d?!1:d;VJ.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
+gKa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.B;if(a.gj()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.Qd())&&a.isView()&&(a=a.mediaElement);if(a&&12h&&(e=h-200,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Sa.addEventListener(g.uA("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.sA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,
+oS(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,oS(b)+l));f=Zxa(e,h)||d;f!==d&&a.j.ma("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().cf=!0;d.getVideoData().Ea=!0;g.rS(d,!0);e={};a.u&&(e=g.sS(a.u.hc.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.ma("queued",e);0!==b&&d.seekTo(b+.01,{ys:!0,fL:3,re:"videoqueuer_queued"});a.B=new kS(a.N,a.app.Fc(),a.j,c);c=a.B;Infinity!==c.status.status&&(mS(c,1),c.j.subscribe("internalvideodatachange",c.zr,c),
+c.u.subscribe("internalvideodatachange",c.zr,c),c.j.subscribe("mediasourceattached",c.zr,c),c.u.subscribe("statechange",c.bd,c),c.j.subscribe("newelementrequired",c.aR,c),c.zr());return a.C};
+pKa=function(a){var b,c,d;g.z(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&tS(a.app.Fc(),!0,!1);b=null;if(!a.B){e.Ma(2);break}g.ra(e,3);return g.x(e,lKa(a.B),5);case 5:g.ua(e,2);break;case 3:b=c=g.va(e);case 2:if(!a.j)return e.return();g.lS.gK("vqsp",function(){uS(a.app,a.j)});
+g.lS.gK("vqpv",function(){a.app.playVideo()});
+b&&rKa(a.j,b.message);d=a.C;qS(a);return e.return(d.resolve(void 0))}})};
+qS=function(a){if(a.u){var b=a.u;a.app.Sa.removeEventListener(g.uA("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Kf("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.oN(a.app,1)&&a.j!==a.app.Fc()&&a.j.dispose();a.j=null;a.J=!1};
+sKa=function(){var a=xoa();return!(!a||"visible"===a)};
+uKa=function(a){var b=tKa();b&&document.addEventListener(b,a,!1)};
+vKa=function(a){var b=tKa();b&&document.removeEventListener(b,a,!1)};
+tKa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[wx+"VisibilityState"])return"";a=wx+"visibilitychange"}return a};
+vS=function(){g.cz.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.zf()};
+uKa(this.C);this.D=this.getVisibilityState(this.Bg(),this.isFullscreen(),this.wf(),this.isInline(),this.Vv(),this.Sv())};
+wKa=function(a,b){var c;if(b.lG)for(c=0;ch&&(AS(a,{reason:"enterTime_greater_than_return",Ac:f,Vc:h}),n))return"";var q=1E3*p.getMinSeekableTime();if(f<
+q&&(AS(a,{reason:"enterTime_less_than_minSeekableTime",Ac:f,h3a:q}),n))return"";p=1E3*p.getDuration();if(h>p&&(AS(a,{reason:"parent_return_greater_than_content_duration",Vc:h,f3a:p}),n))return"";p=null;if(n)for(n=g.r(a.D),q=n.next();!q.done;q=n.next()){q=q.value;if(f>=q.Ac&&fq.Ac||h===q.Ac)return BS(a,b.video_id||"",f,h,q),"";f===q.Vc&&(p=q)}else n=g.kc(a.D,{Vc:f},function(w,y){return w.Vc-y.Vc}),0<=n&&(p=a.D[n],p.Vc>f&&BS(a,b.video_id||"",f,h,p));
+if(m&&p)for(n=g.r(a.Ra.entries()),q=n.next();!q.done;q=n.next()){var v=g.r(q.value);q=v.next().value;v=v.next().value;if(v.identifier===m.identifier){a.Ra.splice(q,1);break}}else if(m&&a.U.K("web_player_ss_timeout_skip_ads"))return a.oa.ma("sdai",{rejectAttl:1}),l&&!Nl(a.rd,function(w){return w===l})&&(a.oa.ma("sdai",{rejectAdBreakAttl:1}),a.rd.push(l)),a.U.K("web_player_stop_timer_for_timedout_ab_killswitch")||CS(a),"";
+m="ss_childplayback_"+BKa++;b.cpn||(b.cpn=g.xz(16));n=b.cpn;b=new g.HH(a.U,b);b.Dc=m;c={Dc:m,playerType:d,durationMs:e,Ac:f,Vc:h,cpn:n,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.sc(a.D,c,function(w,y){return w.Ac-y.Ac});
+a.u.set(n,c);a.zc.set(m,c);a.oa.ma("sdai",{attlDone:h-f,acpn:n});l?c.Jj=l:p?c.Jj=p.Jj:c.Jj=c.cpn;if(f=c.Jj)(d=a.N.get(f))?(d.push(c),g.mc(d,function(w,y){return w.Ac-y.Ac})):a.N.set(f,[c]);
+a.ra.isActive()&&(a.Y=!1,a.ra.stop(),xS(a),a.Yy(!0));return m};
+DS=function(a,b,c){return a.U.experiments.fb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
+DKa=function(a,b,c){return new g.sA(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
+ES=function(a){return{cpn:a.oa.getVideoData().clientPlaybackNonce,durationMs:0,Ac:0,playerType:1,Vc:0,videoData:a.oa.getVideoData(),errorCount:0}};
+HS=function(a,b,c){var d=a.I,e=ES(a),f=a.J;a.J="";var h=b.hg-c.hg;.5d?-1*(d+2):d;return 0<=d&&(a=a.D[d],a.Vc>=c)?{qm:a,Ss:b}:{qm:void 0,Ss:b}};
+JS=function(a,b){var c="";yS(a)?(c=b/1E3-a.Un(),c=a.oa.Lv(c)):(b=EKa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
+EKa=function(a,b){a=g.r(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
+wS=function(a,b){var c=a.Kb||a.api.Fc().getPlayerState();KS(a,!0);var d=b;a.U.K("web_player_ssdai_seek_without_offset_killswitch")&&(d=IS(a,b).Ss);a.oa.seekTo(d);a=a.api.Fc();b=a.getPlayerState();g.fK(c)&&!g.fK(b)?a.playVideo():g.W(c,4)&&!g.W(b,4)&&a.pauseVideo()};
+KS=function(a,b){a.yc=NaN;a.Lc.stop();a.gb&&b&&LS(a.gb);a.Kb=null;a.gb=null};
+MS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=[],h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,(l.Ace)&&f.push(l);a.D=f;d=b;e=c;f=g.r(a.C.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.oa.removeCueRange(h),a.C.delete(h.getId()),a.oa.ma("sdai",{rmAdCR:1}));d=IS(a,b/1E3);b=d.qm;d=d.Ss;b&&(d=1E3*d-b.Ac,e=b.Ac+d,b.durationMs=d,b.Vc=e,FKa(a,b));if(b=IS(a,c/1E3).qm){var m;d="playback_timelinePlaybackId_"+b.Dc+"_video_id_"+(null==
+(m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Ac+"_parentReturnTimeMs_"+b.Vc;a.vz("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
+GKa=function(a){a.qa.clear();a.Ua.clear();a.va.clear();a.C.clear();a.B=[];a.D=[];a.u.clear();a.zc.clear();a.N.clear();a.Ha.clear();a.Eb=[];a.W=null;a.Fd.clear();a.Ra=[];a.Mc=[];a.Dd=[];a.rd=[];a.Ea=[];a.Cd.clear();a.Ed.clear();a.Cb.clear();a.ub.clear();a.isLiveNow=!0;a.Y=!1;a.j=void 0;a.eb=0;a.Ya=!0;a.I=!1;a.Oj=0;a.V=null;a.Bd=0;a.Nc=!1;a.yp=!1;a.J=""};
+FKa=function(a,b){var c=a.C.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Ac+b.durationMs:d.end===c.start&&(d.end=b.Ac);c.start=b.Ac;c.end=b.Ac+b.durationMs}};
+IKa=function(a,b,c,d,e){if(!a.yp)if(g.HKa(a,c))a.La&&a.oa.ma("sdai",{gdu:"undec",seg:c,itag:e});else return NS(a,b,c,d)};
+NS=function(a,b,c,d){var e=a.Ha.get(c);if(!e){b+=a.Un();b=IS(a,b,1);var f;a.U.K("web_player_keep_decorating_last_chunk_killswitch")||b.qm||2!==(null==(f=OS(a,c-1,null!=d?d:2))?void 0:f.Ox)?e=b.qm:e=a.Ha.get(c-1)}return e};
+JKa=function(a){if(a.Ea.length)for(var b=g.r(a.Ea),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.r(a.C.values());for(b=c.next();!b.done;b=c.next())a.oa.removeCueRange(b.value);c=g.r(a.B);for(b=c.next();!b.done;b=c.next())a.oa.removeCueRange(b.value);a.C.clear();a.B=[];a.qa.clear();a.Ua.clear();a.va.clear();a.j||(a.Ya=!0)};
+OS=function(a,b,c){if(1===c&&a.qa.has(b))return a.qa.get(b);if(2===c&&a.Ua.has(b))return a.Ua.get(b);if(3===c&&a.va.has(b))return a.va.get(b)};
+PS=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;KKa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.oa.removeCueRange(e);if(a.Ea.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else KKa(a,b,c)};
+KKa=function(a,b,c){b=DKa(b,c);c=!0;g.sc(a.B,b,function(h,l){return h.start-l.start});
+for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.oa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.oa.addCueRange(b),b=a.oa.zy("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
+QS=function(a,b,c){if(void 0===c||!c){c=g.r(a.Eb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Eb.push(new yKa(b))}};
+g.HKa=function(a,b){a=g.r(a.Eb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
+BS=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",b3a:b,Ac:c,Vc:d,E2a:e.Dc,F2a:(null==(f=e.videoData)?void 0:f.videoId)||"",B2a:e.durationMs,C2a:e.Ac,D2a:e.Vc};AS(a,b)};
+AS=function(a,b){a=a.oa;a.ma("timelineerror",b);a.yd(new zG("dai.timelineerror",b))};
+LKa=function(a,b){var c=[];a=a.N.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
+MKa=function(a,b,c){var d=0;a=a.N.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
+NKa=function(a,b){var c=[];a=a.N.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
+OKa=function(a,b){var c=0;a=a.N.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Vc!==b.Ac&&c++;return c};
+PKa=function(a,b,c){var d=!1;if(c&&(c=a.N.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Vc!==e.Ac&&(e=e.cpn,b===e&&(d=!0),d&&!a.Ed.has(e)&&(a.oa.ma("sdai",{decoratedAd:e}),a.Ed.add(e)))}};
+xS=function(a){a.La&&a.oa.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Bd)+"_isTimeout_"+a.Y})};
+AKa=function(a,b,c){if(a.Ra.length)for(var d={},e=g.r(a.Ra),f=e.next();!f.done;d={Lq:d.Lq},f=e.next()){d.Lq=f.value;f=1E3*d.Lq.startSecs;var h=1E3*d.Lq.durationSecs+f;if(b>f&&bf&&cf)return SS(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.getMinSeekableTime();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
+m.wd(),SS(a,m,h,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ac&&eq.Ac)return SS(a,"overlappingReturn",h,l),"";if(f===q.Ac)return SS(a,"outOfOrder",h,l),"";e===q.Vc&&(n=q)}h="cs_childplayback_"+RKa++;l={Od:TS(d,!0),Cl:Infinity,target:null};var v={Dc:h,playerVars:b,playerType:c,durationMs:d,Ac:e,Vc:f,Cp:l};a.u=a.u.concat(v).sort(function(A,B){return A.Ac-B.Ac});
+n?SKa(a,n,{Od:TS(n.durationMs,!0),Cl:a.U.K("timeline_manager_transition_killswitch")?Infinity:n.Cp.Cl,target:v}):(b={Od:TS(e,!1),Cl:e,target:v},a.I.set(b.Od,b),m.addCueRange(b.Od));b=!0;if(a.j===a.api.Fc()&&(m=1E3*m.getCurrentTime(),m>=v.Ac&&mb)break;if(f>b)return{qm:d,Ss:b-e};c=f-d.Vc/1E3}return{qm:null,Ss:b-c}};
+QKa=function(a,b){var c=a.D||a.api.Fc().getPlayerState();XS(a,!0);b=a.U.K("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.al();var d=WS(a,b);b=d.qm;d=d.Ss;var e=b&&!US(a,b)||!b&&a.j!==a.api.Fc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||VS(a);b?TKa(a,b,d,c):YS(a,d,c)};
+YS=function(a,b,c){var d=a.j,e=a.api.Fc();d!==e&&a.api.Io();d.seekTo(b,{re:"application_timelinemanager"});YKa(a,c)};
+TKa=function(a,b,c,d){var e=US(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.HH(a.U,b.playerVars);f.Dc=b.Dc;a.api.aq(f,b.playerType)}f=a.api.Fc();e||f.addCueRange(b.Cp.Od);f.seekTo(c,{re:"application_timelinemanager"});YKa(a,d)};
+YKa=function(a,b){a=a.api.Fc();var c=a.getPlayerState();g.fK(b)&&!g.fK(c)?a.playVideo():g.W(b,4)&&!g.W(c,4)&&a.pauseVideo()};
+XS=function(a,b){a.V=NaN;a.N.stop();a.C&&b&&LS(a.C);a.D=null;a.C=null};
+US=function(a,b){a=a.api.Fc();return!!a&&a.getVideoData().Dc===b.Dc};
+ZKa=function(a){var b=a.u.find(function(e){return US(a,e)});
+if(b){var c=a.api.Fc();VS(a);var d=new g.$J(8);b=XKa(a,b)/1E3;YS(a,b,d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
+ZS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.r(a.I),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Cl>=d&&l.target&&l.target.Vc<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.r(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ac>=d&&l.Vc<=e){var m=a;m.J===l&&VS(m);US(m,l)&&m.api.Io()}else f.push(l);a.u=f;d=WS(a,b/1E3);b=d.qm;d=d.Ss;b&&(d*=1E3,$Ka(a,b,d,b.Vc===b.Ac+b.durationMs?b.Ac+d:b.Vc));(b=WS(a,c/1E3).qm)&&
+SS(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Dc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ac+" parentReturnTimeMs="+b.Vc+"}.Child playbacks can only have duration updated not their start."))};
+$Ka=function(a,b,c,d){b.durationMs=c;b.Vc=d;d={Od:TS(c,!0),Cl:c,target:null};SKa(a,b,d);US(a,b)&&1E3*a.api.Fc().getCurrentTime()>c&&(b=XKa(a,b)/1E3,c=a.api.Fc().getPlayerState(),YS(a,b,c))};
+SS=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
+bLa=function(a){a&&"web"!==a&&aLa.includes(a)};
+bT=function(a,b){g.K.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Zn(function(){$S(c);aT(c)});
+g.M(this,this.j)};
+dT=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())cT(a,d.value,b);a.data=[];aT(a)};
+$S=function(a){var b=(0,g.U)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
+oT=function(a){g.X.call(this,{F:"div",Ca:["html5-video-player"],T:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{F:"div",L:g.nT.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var b=this;this.app=a;this.Zx=this.ya(g.nT.VIDEO_CONTAINER);this.xw=new g.vl(0,0,0,0);this.Jb=null;this.RD=new g.vl(0,0,0,0);this.YH=this.bJ=this.aJ=NaN;this.JC=this.OD=this.XJ=this.ZN=!1;this.QG=NaN;this.BI=!1;this.wz=null;this.wJ=function(){b.element.focus()};
+this.AD=function(){b.app.Sa.X("playerUnderlayVisibilityChange","visible");b.Jb.classList.remove(g.nT.VIDEO_CONTAINER_TRANSITIONING);b.Jb.removeEventListener(iLa,b.AD);b.Jb.removeEventListener("transitioncancel",b.AD)};
+var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
+this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
+var e=a.R();e.transparentBackground&&this.hp("ytp-transparent");"0"===e.controlsType&&this.hp("ytp-hide-controls");g.ho(this.element,"ytp-exp-bottom-control-flexbox");e.K("html5_player_bottom_linear_gradient")&&g.ho(this.element,"ytp-linear-gradient-bottom-experiment");e.K("enable_new_paid_product_placement")&&!g.oG(e)&&g.ho(this.element,"ytp-exp-ppp-update");qG(e)&&g.ho(this.element,"ytp-exp-hybrid-controls");yra(this.element,"version",jLa(a));this.xS=!1;this.Cy=new g.Qg(NaN,NaN);kLa(this);this.P(a.Sa,
+"onMutedAutoplayChange",this.onMutedAutoplayChange)};
+kLa=function(a){function b(){a.Jb&&pT(a);qT(a)!==a.BI&&a.resize()}
+function c(h,l){a.Qp(h,l)}
+function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
+function e(){a.RD=new g.vl(0,0,0,0);a.xw=new g.vl(0,0,0,0)}
+var f=a.app.Sa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.cf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
+lLa=function(a){var b=g.oN(a.app);if(b=b?b.getVideoData():null){if(g.kI(b)||g.lI(b)||g.nI(b))return 16/9;if(UH(b)&&b.B.j)return a=b.B.videoInfos[0].video,rT(a.width,a.height)}return(a=a.Jb)?rT(a.videoWidth,a.videoHeight):16/9};
+mLa=function(a,b,c,d){var e=c,f=rT(b.width,b.height);a.ZN?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(sT*b-a)||1>Math.abs(sT/a-b)?sT:a/b};
+qT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.oN(a.app);if(!b||b.Km())return!1;var c=a.app.Sa.zb();a=!g.W(c,2)||!a.app.R().K("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ea;b=g.W(c,1024);return c&&a&&!b&&!c.isCued()};
+pT=function(a){var b="3"===a.app.R().controlsType&&!a.JC&&qT(a)&&!a.app.Bz||!1;a.Jb.controls=b;a.Jb.tabIndex=b?0:-1;b?a.Jb.removeEventListener("focus",a.wJ):a.app.R().K("disable_focus_redirect")||a.Jb.addEventListener("focus",a.wJ)};
+nLa=function(a){var b=a.Ji(),c=1,d=!1,e=mLa(a,b,a.getVideoAspectRatio()),f=a.app.R(),h=f.K("enable_desktop_player_underlay"),l=Vu(),m=g.TE(f.experiments,"player_underlay_min_player_width");m=h&&a.XJ&&a.getPlayerSize().width>m;if(qT(a)){var n=lLa(a);var p=isNaN(n)||g.yw||tT&&g.Zv||m;Wu&&!g.yc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.vl(p,0,b.width,b.height)):p=new g.vl(0,
+0,b.width,b.height):(c=e.aspectRatio/n,p=new g.vl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Zv&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.xS)a.Jb.style.display="";a.BI=!0}else{p=-b.height;Wu?p*=window.devicePixelRatio:g.rG&&(p-=window.screen.height);p=new g.vl(0,p,b.width,b.height);if(l||a.xS)a.Jb.style.display="none";a.BI=!1}wl(a.RD,
+p)||(a.RD=p,g.UF(f)?(a.Jb.style.setProperty("width",p.width+"px","important"),a.Jb.style.setProperty("height",p.height+"px","important")):g.Il(a.Jb,p.getSize()),d=new g.Gg(p.left,p.top),g.El(a.Jb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.vl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);wl(a.xw,b)||(a.xw=b,d=!0);g.yl(a.Jb,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.OD&&(m&&(a.Jb.addEventListener(iLa,a.AD),a.Jb.addEventListener("transitioncancel",a.AD),a.Jb.classList.add(g.nT.VIDEO_CONTAINER_TRANSITIONING)),
+a.OD=m,a.app.Sa.X("playerUnderlayVisibilityChange",a.OD?"transitioning":"hidden"));return d};
+oLa=function(){this.csn=g.Bz();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
+pLa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
+qLa=function(a){if(a.csn!==g.Bz())if("UNDEFINED_CSN"===a.csn)a.csn=g.Bz();else{var b=g.Bz(),c=g.Az();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Fz(void 0,b,c,[e])}if(b)for(a=g.r(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Gz(b,c)}};
+uT=function(a,b,c,d,e){g.X.call(this,{F:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"};
+vT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.mh("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.j*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c=h&&a.ua.seekCount?(a.seekCount++,a.Ga.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:h,duration:l,isVideo:c}),a.seek(a.u)):(a.Ga.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ga.oa.seekTo(h+.1,{ys:!0,re:"chunkSelectorSynchronizeMedia",jp:!0})))}})};
+wLa=function(a,b,c){if(!a.Cg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.u);return(AD(c,a.j.Xe)||b.Ia===a.j.Xe)&&dc||c===a.B)&&!isNaN(a.D)?a.D:b};
+FLa=function(a,b,c,d){ELa(a.I,d,c,b);ELa(a.va,d,c,b);EE(a.N,d,!0);EE(a.N,d,!1);a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
+GLa=function(a,b){if(a.j){var c=a.j.jf.durationSecs-(b.startTime+a.J-a.j.jf.startSecs);0>=c||(c=new kA(a.j.jf.startSecs-(isNaN(a.J)?0:a.J),c,a.j.jf.context,a.j.jf.identifier,"stop",a.j.jf.j+1E3*b.duration),a.ma("cuepointdiscontinuity",{segNum:b.Ia}),HT(a,c,b.Ia))}};
+IT=function(a,b,c){a.u!==b&&(a.ma("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
+JT=function(a,b,c,d){(void 0===d?0:d)?IT(a,1,"sk2h"):0b)return!0;a.Y.clear()}return!1};
+OLa=function(a,b){return new KT(a.J,a.B,b||a.j.reason)};
+LLa=function(a){a.Ha?a.Ha=!1:a.V=(0,g.U)();a.N=!1;return new KT(a.J,a.B,a.j.reason)};
+PLa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&TD(f)&&f.video.j>a.policy.N,l=e<=a.policy.N?TD(d):DB(d);if(!f||h||l)c[e]=d}return c};
+LT=function(a,b){a.j=b;var c=a.I.videoInfos;if(!a.j.isLocked()){var d=(0,g.U)();c=g.wm(c,function(q){if(q.Pb>this.policy.Pb)return!1;var v=this.C.j[q.id],w=v.info.j;return this.policy.Fu&&this.Ra.has(w)||this.Y.get(q.id)>d||4=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos);
+var e=g.wm(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.Kk&&tT&&g.Zv&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
+if(0c.SA.video.width?(g.Yb(e,b),b--):OT(a,c.RA)*a.policy.u>OT(a,c.SA)&&(g.Yb(e,b-1),b--);c=e[e.length-1];a.Ya=!!a.B&&!!a.B.info&&a.B.info.j!==c.j;a.D=e;rHa(a.policy,c)};
+ILa=function(a,b){b?a.u=a.C.j[b]:(b=g.Ub(a.I.j,function(c){return!!c.Ic&&c.Ic.isDefault}),a.policy.cm&&!b&&(b=g.Ub(a.I.j,function(c){return c.audio.j})),b=b||a.I.j[0],a.u=a.C.j[b.id]);
+MT(a)};
+QLa=function(a,b){for(var c=0;c+1d};
+MT=function(a){if(!a.u||!a.policy.j&&!a.u.info.Ic){var b=a.I.j;a.u&&a.policy.cm&&(b=b.filter(function(e){return e.audio.j===a.u.info.audio.j}),b.length||(b=a.I.j));
+a.u=a.C.j[b[0].id];if(1a.j.j:QLa(a,a.u);c&&(a.u=a.C.j[g.Qb(b).id])}}};
+NT=function(a){a.policy.Di&&(a.Ea=a.Ea||new g.Zn(function(){a.policy.Di&&a.B&&!QT(a)&&1===Math.floor(10*Math.random())?(PT(a,a.B),a.N=!0):a.Ea.start()},6E4),g.$n(a.Ea));
+if(!a.nextVideo||!a.policy.j)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Qb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=AT(a.ra),d=OT(a,a.u.info),e=c/a.policy.B-d;0=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.j;return"Adapt to: "+vxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
+f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
+a.videoIndex=b}};
+JLa=function(a){var b=a.policy.B,c=AT(a.ra),d=c/b-OT(a,a.u.info);b=g.Vb(a.D,function(e){return OT(this,e)b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+vxa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
+KLa=function(a){if(a.eb.length){var b=a.eb,c=function(d,e){if("f"===d.info.j||b.includes($C(d,a.C.nf,a.Ga.Nf(),a.policy.Eb)))return d;for(var f={},h=0;ha.policy.Ed&&(c*=1.5);return c};
+RLa=function(a,b){a=Cca(a.C.j,function(c){return c.info.itag===b});
+if(!a)throw Error("Itag "+b+" from server not known.");return a};
+SLa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(Mxa(a.C)){for(var c=Math.max(0,a.videoIndex-2);c=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0aU.length&&aU.push(m)}v=
+void 0}m=v;if(null!==m){var w=m;break a}}catch(y){}}c+=e}w=null}catch(y){w=null}}if(null!=w)for(b=g.md(w,7),null==b||a.We||(a.cryptoPeriodIndex=b),b=g.md(w,10),null!=b&&0=a.j.totalLength)throw Error();return aC(a.j,a.offset++)};
+eMa=function(a,b){b=void 0===b?!1:b;var c=dU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=dU(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+dU(a),d*=128;return b?c:c-d};
+gU=function(a,b,c){var d=this;this.Ga=a;this.policy=b;this.I=c;this.logger=new g.eT("dash");this.u=[];this.j=null;this.Y=-1;this.N=0;this.qa=NaN;this.V=0;this.B=NaN;this.Ea=this.Ha=0;this.Ua=-1;this.va=this.C=this.D=this.ra=null;this.Ya=this.Ra=NaN;this.J=this.W=this.La=this.eb=null;this.gb=!1;this.timestampOffset=0;if(this.policy.j){var e=this.I,f=this.policy.j;this.J=new ST(this.policy,e,function(h,l,m){eU(a,new bU(d.policy.j,2,{Zz:new dMa(f,h,e.info,l,m)}))});
+this.J.N.promise.then(function(h){d.J=null;1===h&&eU(a,new bU(d.policy.j,h))},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
+h instanceof ZT&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),fU(d),eU(a,new bU(d.policy.j,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ga.ma("dldbwerr",{em:l}),fU(d),eU(a,new bU(d.policy.j,4,{LC:!0})))})}};
+fMa=function(a){return a.u.length?a.u[0]:null};
+hU=function(a){return a.u.length?a.u[a.u.length-1]:null};
+jMa=function(a,b,c){if(a.C){var d=a.C.Gb+a.C.u;if(0=a.Y&&0===a.N){var f=a.j.j,
+h=-1;e=-1;if(c){for(var l=0;l+8e&&(h=-1)}else{f=new cU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=eMa(p,!0),v=eMa(p,!1);var w=q;var y=v}catch(B){y=w=-1}p=w;var A=y;if(!(0h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+A);if(160===p){0>h&&(e=h=f.getOffset()+
+A);break}f.skip(A)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.N=e-h}if(a.Y>d)break;a.Y?(d=hMa(a,a.Y),d.D&&iMa(a,d),gMa(a,b,d),lU(a,d),a.Y=0):a.N&&(d=hMa(a,0>a.N?Infinity:a.N),a.N-=d.j.totalLength,lU(a,d))}}a.j&&a.j.info.Ae&&(lU(a,a.j),a.j=null)};
+kU=function(a,b){!b.info.j.Wm()&&0===b.info.Gb&&(g.HD(b.info.j.info)||b.info.j.info.We())&&rxa(b);if(1===b.info.type)try{iMa(a,b),kMa(a,b)}catch(d){g.qz(d);var c=mD(b.info);c.hms="1";a.Ga.handleError("fmt.unparseable",c||{},1)}b.info.j.eI(b);a.J&&WLa(a.J,b)};
+fU=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
+lMa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
+a.j&&(b+=a.j.j.totalLength);return b};
+mU=function(a){return g.Pk(a.u,function(b){return b.info})};
+hMa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=kxa(c,b);a.j=c[1];return c[0]};
+iMa=function(a,b){var c=GD(b);if(SD(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new FC(c);HC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;DB(d)&&!SD(d)&&(d=GD(b),(new FC(d)).Uv(),LC([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.HD(d.info)?d.B=qwa(c):d.info.We()&&(d.B=xwa(c))));b.info.j.info.We()&&
+b.info.isVideo()&&(c=GD(b),(new FC(c)).Uv(),LC([408125543,374648427,174,224],30320,c)&&LC([408125543,374648427,174,224],21432,c));if(a.policy.Pu&&b.info.j.info.We()){c=GD(b);var e=new FC(c);if(HC(e,[408125543,374648427,174,29637])){d=KC(e,!0);e=e.start+e.pos;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=nC(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.ra&&!!a.ra.I.C)if(b=c.info.isVideo())b=qxa(c),h=a.ra,nU?(l=1/b,b=oU(a,b)>=oU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&mMa(c)&&(b=a.ra,nU?(l=qxa(c),h=1/l,l=oU(a,l),b=oU(b)+h-l):b=b.getDuration()-
+a.getDuration(),b=1+b/c.info.duration,pwa(GD(c),b))}else{h=!1;a.D||(rxa(c),c.u&&(a.D=c.u,h=!0,e=c.info,f=c.u.j,e.D="updateWithEmsg",e.Ia=f,e=c.u,e.C&&(a.I.index.u=!e.C),e=c.info.j.info,f=GD(c),g.HD(e)?DC(f,1701671783):e.We()&&LC([408125543],307544935,f)));a:{if(f=e=ID(c,a.policy.La))f=c.info.j.info.We()&&160===aC(c.j,0);if(f)a.V+=e,a.B=a.policy.Cd?a.B+e:NaN;else{if(a.policy.wt){if(f=d=a.Ga.jp(mxa(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Cd&&isNaN(a.Ra)){g.rz(new g.Rv("Missing duration while processing previous chunk",
+nD(c.info)));iU(a,"m");break a}var n=d-a.B;m=n-a.Ea;var p=c.info.Ia,q=a.va?a.va.Ia:-1,v=a.Ya,w=a.Ra;var y=a.policy.rg&&n>a.policy.rg;var A=a.policy.qg&&Math.abs(m)>a.policy.qg;if(1E-4y&&p>a.Ua)&&E&&(p=Math.max(.95,Math.min(1.05,(e-(A-n))/e)),pwa(GD(c),p),p=ID(c,a.policy.La),B=e-p,e=p));a.Ea=n+B;a.policy.V&&(d!==f||B)&&(n=null==(l=a.D)?void 0:tC(l),a.Ga.ma("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Ia,originalStartTime:d,rewrittenStartTime:f,startTimeAdjustment:f-d,segDrift:(1E3*m).toFixed(),originalDuration:e+B,rewrittenDuration:e,
+durationAdjustment:B}))}}else f=isNaN(a.B)?c.info.startTime:a.B;nxa(c,f)?(isNaN(a.qa)&&(a.qa=f),a.V+=e,a.B=f+e):(l=mD(c.info),l.smst="1",a.Ga.handleError("fmt.unparseable",l||{},1))}}a.va=c.info;a.Ra=pxa(c);0<=c.C&&(a.Ya=c.C);if(h&&a.D){h=nMa(a,!0);oD(c.info,h);a.j&&oD(a.j.info,h);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())oD(l.value,h);(c.info.Ae||a.j&&a.j.info.Ae)&&6!==c.info.type||(a.W=h,b=a.Ga,b.j.isManifestless&&oMa(b,h,null,!!a.I.info.video),a.policy.Ld||pMa(a))}}kMa(a,c);a.timestampOffset&&
+oxa(c,a.timestampOffset)};
+lU=function(a,b){if(b.info.Ae){a.eb=b.info;if(a.D){var c=a.D,d=nMa(a,!1),e=null;if(a.D.cz()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=tC(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
+m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new $La(e,f,h,l,g.lwa(c),g.mwa(c))}a.Ga.DJ(a.I,d,e);a.W||a.policy.Ld||pMa(a);a.W=null}jU(a)}a.J&&WLa(a.J,b);if(c=hU(a))if(c=lxa(c,b,a.policy.rk)){a.u.pop();a.u.push(c);return}a.u.push(b)};
+jU=function(a){a.j=null;a.Y=-1;a.N=0;a.D=null;a.qa=NaN;a.V=0;a.W=null};
+iU=function(a,b){b={rst4disc:b,cd:a.Ea.toFixed(3),sq:a.va?a.va.Ia:-1};a.B=NaN;a.Ea=0;a.Ua=-1;a.va=null;a.Ya=NaN;a.Ra=NaN;a.La=null;a.Ga.ma("mdstm",b)};
+kMa=function(a,b){if(a.I.info.Td){if(b.info.j.info.We()){var c=new FC(GD(b));if(HC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=KC(c,!0);c=16!==d?null:PC(c,d)}else c=null;d="webm"}else b.info.J=YLa(GD(b)),c=ZLa(b.info.J),d="cenc";c&&c.length&&(c=new $T(c,d),c.We=b.info.j.info.We(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ga.jw(c))}};
+pMa=function(a){var b=a.D,c=jwa(b);c&&(c.startSecs+=a.qa,a.Ga.CJ(a.I,c,b.j,b.cz()))};
+nMa=function(a,b){var c,d=a.D;if(c=jwa(d))c.startSecs+=a.qa;return new RB(d.j,a.qa,b?d.zk:a.V,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
+mMa=function(a){return a.info.j.Wm()&&a.info.Ia===a.info.j.index.getLastSegmentNumber()};
+oU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.C&&b&&(b+=a.I.C.j);return b+a.getDuration()};
+qMa=function(a,b){0>b||(a.u.forEach(function(c){oxa(c,b)}),a.timestampOffset=b)};
+pU=function(a,b){this.info=a;this.callback=b;this.state=1;this.HC=!1;this.Ko=0;this.jt=!1;this.Fe=this.lastError=null};
+rMa=function(a){return g.Od(a.info.j,function(b){return 3===b.type})};
+qU=function(a,b){this.j=a;this.u=0;this.B=null;this.sf=[];this.C=null;(this.length=b?b:0)?1!==this.j.length||this.j[0].u||(this.j[0].u=this.length):1===this.j.length||g.Od(this.j,function(c){return!!c.range})};
+rU=function(a,b,c){a.B&&(UB(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=0,l=g.r(a.j),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(iD(m)&&!c&&a.u+b.totalLength-h=b&&(e.u.pop(),e.B-=ID(l,e.policy.La),f=l.info)}f&&(e.C=0c?FT(a,d):a.u=a.j.fp(b-1,!1).j[0]};
+EU=function(a,b){var c;for(c=0;c=a.V:c};
+AMa=function(a){var b;return zU(a)||!(null==(b=hU(a.C))||!hD(b.info))};
+yU=function(a){var b=[],c=vU(a);c&&b.push(c);b=g.ac(b,mU(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),h=f.next();!h.done;e={du:e.du},h=f.next())e.du=h.value,d.HC&&(b=g.wm(b,function(l){return function(m){return!Rwa(m,l.du)}}(e))),(jD(e.du)||4===e.du.type)&&b.push(e.du)}a.u&&!Mwa(a.u,g.Qb(b),a.u.j.Wm())&&b.push(a.u);
+return b};
+xMa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:xMa(a,c?b:0)?a[b].startTime:NaN};
+FU=function(a){return!(!a.u||a.u.j===a.j)};
+BMa=function(a){return FU(a)&&a.j.Sf()&&a.u.j.info.Pbb&&a.Bb)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return be?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=LU(a)?d+b:d+Math.max(b,c);a.V=d};
+NU=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
+PU=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.V=d;this.status=0;this.response=void 0;this.N=this.u=0;this.I=this.J=!1;this.errorMessage="";this.Y=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.fn=f.body.getReader(),e.isDisposed()?e.fn.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.nw(),UMa(e));
+else e.onDone()};
+this.W=function(f){var h=(0,g.U)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.fn=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.U)(),10c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=aC(a,b++);else if(2===c)c=aC(a,b++),a=aC(a,b++),a=(c&63)+64*a;else if(3===c){c=aC(a,b++);var d=aC(a,b++);a=aC(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=aC(a,b++);d=aC(a,b++);var e=aC(a,b++);a=aC(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),XB(a,c,4)?a=cwa(a).getUint32(c-a.B,!0):(d=aC(a,c+2)+256*aC(a,c+3),a=aC(a,c)+256*(aC(a,c+1)+
+256*d)),b+=5;return[a,b]};
+QU=function(a){this.callbacks=a;this.j=new TB};
+RU=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.lw(f)};
+a=hu(function(f){d.onDone(f)});
+this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",hu(function(f){d.Vd(f)}),!1)};
+XMa=function(a,b){gH(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(fH(a,112),fH(a,c<<1^c>>31));gH(a,16,b.GZ);gH(a,18,b.xX);gH(a,19,b.wX);gH(a,21,b.A4);gH(a,23,b.eX);gH(a,34,b.visibility);kH(a,38,b.mediaCapabilities,WMa,3);gH(a,39,b.a5);gH(a,40,b.xO);hH(a,46,b.TX)};
+YMa=function(a){for(var b=[];$G(a,2);)b.push(ZG(a));return{zG:b.length?b:void 0,videoId:cH(a,3),AL:aH(a,4)}};
+WMa=function(a,b){var c;if(b.zL)for(c=0;ca.policy.Jl||a.jt&&!a.policy.Tt?0:qB())?rB()?new GU(c,a.policy.C,a.timing,b):new PU(c,a.policy.C,a.timing,b):new RU(c,a.timing,b)};
+XU=function(a,b,c,d,e,f,h,l,m,n,p,q){g.K.call(this);this.Ga=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.Pm=e;this.B=f;this.timing=h;this.I=l;this.schedule=m;this.j=n;this.D=p;this.Y=q;this.ra=!1;this.cA="";this.C=this.nj=null;this.N="";this.V=0;this.Of=NaN;this.qa=!1;this.u=null;this.W=NaN;this.J=0;this.logger=new g.eT("dash");0f&&(c=d.j.Bu(d,e-h.u)))),d=c):(0>d.Ia&&(c=mD(d),c.pr=""+b.B.length,a.Ga.Cg()&&(c.sk="1"),c.snss=d.D,a.Ga.ma("nosq",c)),d=h.Cx(d));if(a.policy.J)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Wm()?(c=zT(a.I,b.j.info.Pb,c.j.info.Pb,0),d=d.j.Bu(d,c)):d=d.j.Cx(d);if(a.u)if(e=d.j[0].j.info.id,
+c=a.B,h=d.j[0].Ia,c=0>h&&!isNaN(c.B)?c.B:h,h=DLa(a.B,d.j[0].C,c),f=b===a.audioTrack?1:2,l=d.j[0].j.info.itag,a.policy.bf)e=a.u.Uy(h,c,e,f),0>c&&(a.policy.Ot||2===f)&&JT(a.B,0,0,!0),e&&(a.Ga.ma("sdai",{ssdaiinfo:"1",length:e.length,itag:l,sg:c,st:h.toFixed(3)}),d.N=e);else if(e=a.u.Am(h,c,e,f),0>c&&(a.policy.Ot||2===f)&&JT(a.B,0,0,!0),e){h={decurl_itag:l,sg:c,st:h.toFixed(3)};if(a.policy.gt&&b.isRequestPending(c-1)){a.Ga.ma("sdai",{wt_daistate_on_sg:c-1});return}a.Ga.ma("sdai",h);e&&(d.B=new g.LB(e))}a.policy.Bk&&
+-1!==d.j[0].Ia&&d.j[0].Ia=a.policy.Qk)return bV(a,"toomany"),!1;if(!a.policy.Wl&&0=a.policy.Kl)return bV(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Sf()&&(b.u=g.Qb(d.j.Dw(d)),d=b.u);if(!hD(d)&&!d.j.ep(d))return bV(a,"notready"),!1;var e=a.j.xf||a.j.C;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber();
+e=Math.min(e,f);if(0=e)return b.V=e,c.V=e,bV(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return bV(a,"toomanyaudio"),!1;if(BMa(b)&&!a.policy.gb)return bV(a,""),!0;if(hD(d))return bV(a,"eos"),!1;if(AU(b)&&AU(b)+AU(c)>a.policy.yc)return bV(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.B;f=!!(c.u&&!hD(c.u)&&c.u.BoNa(a,b))return bV(a,"maxtime;"+d.B.toFixed(3)+";"+oNa(a,b)),!1;if((b=b.kc)&&b.isLocked())return bV(a,"locked"),!1;bV(a,"");return!0};
+bV=function(a,b){a.policy.pg&&a.u&&(a.N=b)};
+oNa=function(a,b){var c=a.B;c=c.j?c.j.jf:null;if(a.policy.J&&c)return c.startSecs+c.durationSecs+15;b=ZU(a.Ga,b,!0);!a.Ga.je.j.isLocked()&&0a.Ga.getCurrentTime())return c.start/1E3;return Infinity};
+cV=function(a,b,c){a:if(b=b.info,b.B)c=null;else{var d=b.j[0];if(b.range)var e=cD(b.range.start,Math.min(4096,qD(b)));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.u.C.get("defrag")||"1"===b.u.C.get("otf")){c=null;break a}e=cD(0,4096)}e=new pD([new dD(5,d.j,e,"createProbeRequestInfo"+d.D,d.Ia)],b.C);e.I=c;e.B=b.B;c=e}c&&aV(a,c)};
+aV=function(a,b){qNa(a.Ga,b);var c=Uwa(b);c={wi:a.schedule,Xk:c,ED:rLa(a.I,c),Ln:iD(b.j[0]),jo:OB(b.u.j),mH:a.policy.V};a.nj&&(c.Ia=b.j[0].Ia,c.Of=b.Of,c.nj=a.nj);var d={Cr:Vwa(b,a.Ga.getCurrentTime()),Vz:a.policy.Bd&&sD(b)&&b.j[0].j.info.video?SLa(a.D):void 0,yA:a.policy.J,poToken:a.Ga.UH(),Ws:a.Ga.AC(),cA:a.cA};return new VU(a.policy,b,c,a.Pm,function(e,f){try{a:{a.policy.pg&&a.u&&(a.C=e);var h=e.info.j[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Ko||!(!a.Ga.mediaSource||
+a.Ga.isSuspended||3=n)cV(a,e,!1),a.qa=!0;else{var p=a.policy.zi;if(p&&!(mf){if(a.policy.Yb){var y=Object.assign(IU(e.timing),{rst:""+e.state,strm:""+e.xhr.Qw(),d:SMa(e.timing)});a.Ga.ma("rqs",y)}e.rS&&a.Ga.ma("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var A=
+a.timing,B=e.info.j[0].j,E=!A.D&&B.info.video,G=!A.u&&B.info.audio;3===e.state?E?A.tick("vrr"):G&&A.tick("arr"):4===e.state?E?(A.D=e.pe(),g.Ev(),Gv(4)):G&&(A.u=e.pe()):e.Es()&&E&&(g.Ev(),Gv(4));if(3===e.state){EU(l,e);sD(e.info)&&dV(a,l,h,!0);if(a.u){var H=e.info.Am();H&&a.u.Tj(e.info.j[0].Ia,h.info.id,H)}a.Ga.Ij()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var I=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;I&&I instanceof VU&&I.Ko&&mNa(I,!0)}e.dispose()}else{if(!e.isFailed()&&
+e.jt&&2<=e.state&&3!==e.state){var O=e.xhr.getResponseHeader("X-Response-Itag");if(O){var L=RLa(a.D,O),P=qD(e.info);if(P){var S=P-L.OH();L.D=!0;e.info.j[0].j.D=!1;var ca=L.Mp(S);e.info=ca;if(e.Fe){var R=e.Fe,na=ca.j;R.j=na;var sa=na[0].range,Aa=new TB;for(f=0;fqa.B&&(qa.B=NaN,qa.D=NaN),qa.j&&qa.j.Ia===nb.j[0].Ia){var Ua=qa.j,$a=Ua.jf;Sb.mq($a)&&"predictStart"!==$a.event?Ua.cz?IT(qa,4,"cue"):(qa.B=nb.j[0].Ia,qa.D=nb.j[0].C,qa.ma("sdai",{joinad:qa.u,sg:qa.B,st:qa.D.toFixed(3)}),qa.W=Date.now(),IT(qa,2,"join"),Sb.aI(Ua.jf)):IT(qa,5,"nogab")}else 1===qa.u&&
+IT(qa,5,"noad")}}else if(a.policy.ra&&e.ww()&&!e.isComplete()&&!eV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Nv(e);a.Ga.Ij();if(a.policy.rd&&e.isComplete()&&e.canRetry()&&YC(e.info.u,a.policy,a.Pm)){var bc=a.Pm;var Sa=NB(e.info.u.j);var ab=WC(bc,Sa);ab.B+a.policy.rd*Gwa(ab,a.policy,!0)>(0,g.U)()||cV(a,e,!1)}}}}}}catch(tb){L=a.ra?1:0,a.ra=!0,e=AG(L),L=BG(tb,L),a.Ga.handleError(L.errorCode,L.details,L.severity),e||a.Ga.dj()}},d)};
+eV=function(a,b){try{var c=b.info.j[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.J=0;d.J&&(b.isDisposed(),b.isComplete()||b.ww(),d.J=!1);b.IH()&&a.Ga.MB.lh(1,b.IH());var e=b.sC(),f=b.SO(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.mm&&(e&&(m.Om=Math.max(m.Om,e)),f&&(m.Zn=Math.max(m.Zn||0,f)))}}if(b.info.Ln()&&!rD(b.info))for(var n=g.r(b.Nw()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var v=a.timing;v.qa||(v.qa=(0,g.U)(),SN("vis_r",
+v.qa,v.j))}else{var w=a.timing;w.J||(w.J=(0,g.U)(),SN("ais_r",w.J,w.j))}kU(d.C,q)}xU(d,a.Ga.getCurrentTime());var y=!!d.Gg();if(y&&b instanceof CT)if(c.info.Um()){var A=a.timing;A.W||(A.W=(0,g.U)(),SN("oafs_rp",A.W,A.j))}else{var B=a.timing;B.Y||(B.Y=(0,g.U)(),SN("ovfs_rp",B.Y,B.j))}return y}catch(E){return b=b.Cv(),b.origin="hrhs",rNa(a.Ga,E,b),!1}};
+sNa=function(a){var b=a.videoTrack.j.index;a.nj=new GMa({On:a.policy.On,Xi:a.policy.C.Xi,Zh:b.Zh,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
+Yr:function(){return b.Yr()}})};
+dV=function(a,b,c,d){if(!(c.Sf()||c.Yv()||c.D)&&Jwa(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.I;var e=c.info;d=sLa(d,e.video?d.policy.Sq:d.policy.pk,e.Pb)}else d=0;d=c.Mp(d);a=aV(a,d);rD(d)&&wU(b,a);c.D=!0}};
+tNa=function(a,b,c,d,e){this.Ga=a;this.policy=b;this.schedule=c;this.fv=d;this.V=e;this.W=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.N=NaN};
+uNa=function(a,b,c,d,e){return b.Kb&&b.qa&&3===Tva(b)?new tNa(a,b,c,d,e):null};
+vNa=function(a,b){if(a.policy.Ut){var c=b.info.Pb,d=DF(a.schedule);b=b.index.Zh;c=Math.max(1,d/c);a.N=Math.round(1E3*Math.max(((c-1)*b+a.policy.Y)/c,b-a.policy.Kd))}};
+yNa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Ki,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Kd&&!a.B;if(!f&&!c&&wNa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.fv.Nh()||0)-a.J.u-a.policy.Y;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){fV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Fd;d1E3*a.policy.Mu){a.ma("ombttl",{});return}if(a.j.Xe&&a.j.C||!a.policy.Lx&&a.j.isPremiere)return}e=a.Nf();if(a.V&&sU(a.V,$C(c,d,e,a.policy.Eb))){d=$C(c,d,e,a.policy.Eb);e=BNa(a.V,d);var f;if(!a.j.nf||!a.policy.Kx){if(!c.indexRange||!c.initRange)return;var h=c.indexRange.length+c.initRange.length,l=CNa(a.V,d);if(!l){a.ma("ombooo",{});return}h=l-h;if(0(0,g.U)()-d.V;var e=d.nextVideo&&3*OT(d,d.nextVideo.info)=b&&BU(c,!0)>=b;else{var f=0;c=mU(c.C).concat(mU(d.C));c=g.r(c);for(d=c.next();!d.done;d=c.next())f+=d.value.u;f/=e;b=fe*(10-f)/AT(b)}}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ia:-1));if(f)return a.policy.Li&&a.D.Cg()&&nV(a),!1;oV(a,b,c,d.info);if(a.j.u&&0===d.info.Gb){if(null==c.Jp()){e=vU(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;he)||(a.policy.Lc&&(!d.info.Gb||d.info.Ae||10>d.info.C)&&a.ma("sba",c.Ob({as:nD(d.info)})),e=d.D||d.B?d.info.j.j:null,f=d.j,d.B&&(f=new TB([]),UB(f,d.B),UB(f,d.j)),
+f=YB(f),c=KNa(a,c,f,d.info,e),"s"===c?(a.va=0,a=!0):("i"===c||"x"===c?LNa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.I=Math.floor(.8*e.I),e.Ha=Math.floor(.8*e.Ha),e.D=Math.floor(.8*e.D)):(e=a.policy,e.W=Math.floor(.8*e.W),e.zc=Math.floor(.8*e.zc),e.D=Math.floor(.8*e.D)),PT(a.je,d.info.j)),mV(a.oa,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.Vi(d);return!0};
+LNa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!QT(a.je)&&PT(a.je,d.j)):"i"===c&&(15>a.va?(a.va++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=mD(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:sE(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
+oMa=function(a,b,c,d,e){var f=a.j,h=!1,l=-1;for(p in f.j){var m=VD(f.j[p].info.mimeType)||f.j[p].info.isVideo();if(d===m)if(h=f.j[p].index,AD(h,b.Ia)){m=b;var n=h.zm(m.Ia);n&&n.startTime!==m.startTime?(h.segments=[],h.CF(m),h=!0):h=!1;h&&(l=b.Ia)}else h.CF(b),h=!0}if(0<=l){var p={};f.X("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}zLa(a.D,b,d,h);a.u.DJ(b,c,d,e)};
+oV=function(a,b,c,d){b=vU(b);!b||b.Ae||kD(b,d)||c.abort();!c.Jy()||oE()?c.vL(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Jy()&&a.ma("ctu",{ct:oE(),prev_c:c.Jy(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.Ik&&b&&(d=0+b.duration,b=-b.j,0===c.oC()&&d===c.FH()||c.BK(0,d),b!==c.wd()&&(c.pE(b),nU&&qMa(a.audioTrack.C,c.VH())))};
+pV=function(a,b,c){c.info.j.Sf();var d=c.info.j.j;if(!d||!b.GB()||b.Jp()===d)return!1;var e=d,f=b.tC();if(a.policy.Ei&&f&&b.isView()&&g.HD(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=vwa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ma("fenc",{})}f=null;(h=c.info.j.Mp(0))&&(f=h.j[0]);a.policy.Lc&&a.ma("sbi",b.Ob({as:nD(c.info)}));a.policy.bk&&b.abort();d=KNa(a,b,e,f,d);if("s"!==d)return LNa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.ra||(a.ra=
+(0,g.U)(),SN("vis_a",a.ra,a.j))):(a=a.timing,a.I||(a.I=(0,g.U)(),SN("ais_a",a.I,a.j)));return b.Ph()};
+KNa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:gE(b.yg()).replace(/,/g,"_"),message:g.Cc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},zNa()),a.handleError("player.exception",b),"q";g.qz(f)}return"u"}return a.mediaSource.Rf()?"m":"s"};
+eU=function(a,b){a.oa.wD(b)};
+ZU=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.W:a.policy.I;!a.policy.gb&&a.je.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.zc:a.policy.Ha));c&&(d+=a.policy.yc);c=a.je.j.isLocked()?b.u?b.u.j.info.Pb:b.j.info.Pb:b.Pb*a.policy.Ak;d/=c;0=b&&ANa(a,d.startTime,!1)});
+return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new zV(null,null,null,null,a)};
+BV=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
+qOa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a-c),c=new tV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new DV(a.fb("disable_license_delay"),!a.fb("h5_widevine_keyrotationagent_optimization_killswitch"),
+b,this);break a;default:c=null}if(this.D=c)g.M(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.DN,this),this.D.subscribe("log_qoe",this.ji,this);UE(this.U.experiments);this.ji({cks:this.j.zg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.B&&(this.La=new CV(this.videoData.Ya,this.U.experiments),g.M(this,this.La))};
+vOa=function(a){var b=a.C.attach();b?b.then(hu(function(){wOa(a)}),hu(function(c){if(!a.isDisposed()){g.gu(c);
+var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.X("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ji({mdkrdy:1}),a.V=!0);
+a.W&&(b=a.W.attach())};
+yOa=function(a,b,c){a.Ha=!0;c=new $T(b,c);a.U.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));xOa(a,c)};
+xOa=function(a,b){if(!a.isDisposed()){a.ji({onInitData:1});if(a.U.K("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.ji({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.qa&&!a.videoData.isLivePlayback)HV(a);else{if(!(a.U.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.We)){a.qa=!0;c=b.cryptoPeriodIndex;var d=b.j;bMa(b);b.We||(d&&b.j!==d?a.X("ctmp","cpsmm",
+{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.X("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.X("widevine_set_need_key_info",b)}}else a.DN(b)}};
+wOa=function(a){if(!a.isDisposed())if(a.U.K("html5_drm_set_server_cert")&&!g.cG(a.U)){var b=a.C.setServerCertificate();b?b.then(hu(function(c){xG(a.U)&&a.X("ctmp","ssc",{success:c})}),hu(function(c){a.X("ctmp","ssce",{n:c.name,
+m:c.message})})).then(hu(function(){IV(a)})):IV(a)}else IV(a)};
+IV=function(a){a.isDisposed()||(a.V=!0,a.ji({onmdkrdy:1}),HV(a))};
+zOa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")};
+HV=function(a){if(a.Ha&&a.V&&!a.ra){for(;a.B.length;){var b=a.B[0],c=zOa(a)?cMa(b):g.Bc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}bMa(b);break}a.B.length&&a.createSession(a.B[0])}};
+AOa=function(a){var b;if(b=g.Qu()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.gC(b),a.X("ctmp","drm",{metrics:b}))};
+KV=function(a){g.K.call(this);var b=this;this.oa=a;this.Oa=this.oa.R();this.videoData=this.oa.getVideoData();this.qz=0;this.D=this.u=!1;this.C=0;this.B=g.TE(this.Oa.experiments,"html5_delayed_retry_count");this.j=new g.Zn(function(){JV(b.oa)},g.TE(this.Oa.experiments,"html5_delayed_retry_delay_ms"));
+g.M(this,this.j)};
+MV=function(a,b,c){var d=a.videoData.u,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.oa.Wg.D&&d&&"22"===d.itag)return a.oa.Wg.D=!0,a.yd("qoe.restart",{reason:"fmt.unplayable.22"}),LV(a.oa),!0;var f=!1,h=a.qz+3E4<(0,g.U)()||a.j.isActive();if(a.Oa.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.yd("auth",c),!0;var l;if(l=!h)l=a.oa.Pp(),l=!!(l.wf()||l.isInline()||l.isBackground()||
+l.Vv()||l.Sv());l&&(c.nonfg="paused",h=!0,a.oa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:Kva(e)||Jva(e))&&(Gya(a.Oa.j,e.j),c.acfallexp=e.j,f=h=!0);!h&&0=a.Oa.ub)return!1;b.exiled=""+a.Oa.ub;a.yd("qoe.start15s",b);a.oa.X("playbackstalledatstart");return!0};
+EOa=function(a){if("GAME_CONSOLE"!==a.Oa.deviceParams.cplatform)try{window.close()}catch(b){}};
+COa=function(a){return a.u?!0:"yt"!==a.Oa.Ha?!1:a.videoData.La?25>a.videoData.Yb:!a.videoData.Yb};
+DOa=function(a){if(!a.u){a.u=!0;var b=a.oa.getPlayerState();b=g.W(b,4)||b.isSuspended();a.oa.Jo();b&&!vI(a.videoData)||a.oa.X("signatureexpired")}};
+FOa=function(a,b){if((a=a.oa.Qd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.ag();b.details.merr=c?c.toString():"0";b.details.msg=a.kf()}};
+HOa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.u)return!1;b.details.sts="19219";if(COa(a))return AG(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new zG("qoe.restart",b)),a.yd(b.errorCode,b.details),DOa(a),!0;6048E5<(0,g.U)()-a.Oa.Ne&&GOa(a,"signature");return!1};
+GOa=function(a,b){try{window.location.reload();a.yd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.Oa.K("tvhtml5_retire_old_players")&&g.cG(a.Oa)&&EOa(a)};
+IOa=function(a,b){var c=a.Oa.j;c.D=!1;c.j=!0;a.yd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});JV(a.oa,!0)};
+JOa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
+NV=function(a,b,c){this.U=a;this.vA=b;this.oa=c;this.V=this.I=this.J=this.u=this.j=this.C=this.N=this.B=0;this.playbackRate=1;this.D=!1};
+OV=function(a,b,c){!a.U.K("html5_tv_ignore_capable_constraint")&&g.cG(a.U)&&(c=c.compose(KOa(a,b)));return c};
+LOa=function(a,b){var c=!0,d=a.playbackRate;if(a.K("html5_cap_quality_for_tv_hfr")){var e;c=PV(a,null==(e=b.j)?void 0:e.videoInfos);d=a.oa.getPlaybackRate()}return 1(0,g.U)()-a.C?0:f||0h?a.u+1:0;h=g.TE(a.U.experiments,"html5_displayed_frame_rate_downgrade_threshold");if(0h||!e||g.cG(a.U))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;OOa(a,b.videoData.u);a.oa.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},QOa()));return!0};
+SOa=function(a,b){return 0>=g.TE(a.U.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new tB(0,d,!1,"b")};
+UOa=function(a){a=a.oa.Pp();return a.isInline()?new tB(0,480,!1,"v"):a.isBackground()&&60e?(c&&(d=VOa(a,c,d)),new tB(0,d,!1,"e")):GH};
+VOa=function(a,b,c){if(a.K("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.sS(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.hK(a.playerState)&&!g.W(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
+SV=function(a,b){b?ZOa.test(a):(a=g.nu(a),Object.keys(a).includes("cpn"))};
+TV=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(qu(a)&&ru()){if(h){var n;2!==(null==(n=$Oa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=$Oa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.Q("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
+d:g.Q("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Q("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&ZOa.test(a)&&(l.withCredentials=!0)}0a.J.BQ+100&&a.J){var d=a.J,e=d.isAd;c=1E3*c-d.BQ;a.va=1E3*b-d.R3-c-d.z3;if(!a.j.videoData.K("web_player_dai_csi_killswitch")){c=(0,g.U)()-c;b=a.va;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};!d.K("web_player_csi_ctt_killswitch")&&d.I&&(h.cttAuthInfo={token:d.I,videoId:d.videoId});h.startTime=c-b;ZA(f,h);YA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
+f);XA("pbs",c,f)}else c=a.j.oa.ej(),c.J!==d.clientPlaybackNonce?(c.I=d.clientPlaybackNonce,c.B=b):g.rz(new g.Rv("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.ma("gllat",{l:a.va.toFixed(),prev_ad:+e});delete a.J}};
+ZV=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.sS(a.j);var c=a.j.oa.Ry();if(!isNaN(a.Y)&&!isNaN(c.j)){var d=c.j-a.Y;0a.u)&&2=e&&(g.qz(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.U.K("html5_validate_yt_now")),c=b();
+a.j=function(){return Math.round(b()-c)/1E3};
+a.oa.IJ()}return a.j};
+bPa=function(a){if(navigator.connection&&navigator.connection.type)return xPa[navigator.connection.type]||xPa.other;if(g.cG(a.U)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
+dW=function(a){var b=new vPa;b.C=a.hj().cc||"-";b.playbackRate=a.oa.getPlaybackRate();var c=a.oa.getVisibilityState();0!==c&&(b.visibilityState=c);a.U.Bd&&(b.u=1);c=a.oa.getAudioTrack();c.Ic&&c.Ic.id&&"und"!==c.Ic.id&&(b.B=c.Ic.id);b.connectionType=bPa(a);b.volume=a.hj().volume;b.muted=a.hj().muted;b.clipId=a.hj().clipid||"-";b.j=a.videoData.aQ||"-";return b};
+g.sW=function(a){g.K.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.nh=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Ak&&(this.j=new jW(this.u),g.M(this,this.j),this.qoe=new g.WV(this.u),g.M(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.nh=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.nh,this.j));this.C=new QV(this.u,function(c){b.ma("h5h",c)});
+g.M(this,this.C)};
+yPa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.nh){var b;null!=(b=a.B.get(a.nh))&&eW(b.u)}else a.j&&eW(a.j.u)};
+zPa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Zd&&(b.Zd="N");var c=g.sS(b.j);g.VV(b,c,"vps",[b.Zd]);b.I||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.I=!0);xG(b.j.U)&&b.ma("finalized",{});b.qa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())qW(c.value);else a.j&&qW(a.j);a.dispose()};
+APa=function(a,b){a.j&&uPa(a.j,b)};
+BPa=function(a){if(!a.j)return null;var b=kW(a.j,"atr");return function(c){a.j&&uPa(a.j,c,b)}};
+CPa=function(a,b,c,d){c.adFormat=c.Mc;var e=b.oa;b=new jW(new rW(c,b.U,{getDuration:function(){return c.lengthSeconds},
+getCurrentTime:function(){return e.getCurrentTime()},
+gj:function(){return e.gj()},
+Ry:function(){return e.Ry()},
+getPlayerSize:function(){return e.getPlayerSize()},
+getAudioTrack:function(){return c.getAudioTrack()},
+getPlaybackRate:function(){return e.getPlaybackRate()},
+Ty:function(){return e.Ty()},
+getVisibilityState:function(){return e.getVisibilityState()},
+ej:function(){return e.ej()},
+IJ:function(){e.IJ()},
+Mz:function(){e.Mz()}},b.hj));
+b.C=d;g.M(a,b);return b};
+DPa=function(){this.Cr=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
+EPa=function(){this.j=g.tA;this.array=[]};
+GPa=function(a,b,c){var d=[];for(b=FPa(a,b);bc)break}return d};
+HPa=function(a,b){var c=[];a=g.r(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
+IPa=function(a){return a.array.slice(FPa(a,0x7ffffffffffff),a.array.length)};
+FPa=function(a,b){a=lc(a.array,function(c){return b-c.start||1});
+return 0>a?-(a+1):a};
+JPa=function(a,b){var c=NaN;a=g.r(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
+NPa=function(a,b){this.videoData=a;this.j=b};
+OPa=function(a,b,c){return xBa(b,c).then(function(){return Iu(new NPa(b,b.B))},function(d){d instanceof Error&&iu(d);
+var e=$D('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=aE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.$E(a.j,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:!!b.adaptiveFormats,d:!!b.gb,drm:WH(b),f18:0<=b.Bk.indexOf("itag=18"),c18:e};b.j&&(WH(b)?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=aE('video/mp4; codecs="avc1.42001E"'),
+e.cVP9=aE('video/webm; codecs="vp9"'));b.N&&(e.drmsys=b.N.keySystem,f=0,b.N.j&&(f=Object.keys(b.N.j).length),e.drmst=f);return new zG(d,e,h)})};
+PPa=function(a){this.D=a;this.B=this.u=0;this.C=new hT(50)};
+xW=function(a,b,c){g.cz.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new QPa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Cb?c.u=3:g.iI(a)&&(c.u=2);b.fb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=pBa(a);c.D=2===d||-1===d;c.D&&(c.Y++,21530001===aI(a)&&(c.I=g.TE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Ou("trident/")||Ou("edge/"))c.B=Math.max(c.B,g.TE(b,"html5_platform_minimum_readahead_seconds")||
+3);g.TE(b,"html5_minimum_readahead_seconds")&&(c.B=g.TE(b,"html5_minimum_readahead_seconds"));g.TE(b,"html5_maximum_readahead_seconds")&&(c.V=g.TE(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.C=!0);g.TE(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.TE(b,"html5_allowable_liveness_drift_chunks"));g.TE(b,"html5_readahead_ratelimit")&&(c.W=g.TE(b,"html5_readahead_ratelimit"));switch(aI(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.fb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
+c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Cb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(aI(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=wW(this,b)};
+RPa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===pBa(a.videoData)&&--c;return yW(a)*c};
+zW=function(a,b){var c=a.al(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*yW(a);return b>=c-a};
+SPa=function(a,b,c){b=zW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
+TPa=function(a,b){b=zW(a,b);a.D!==b&&a.X("livestatusshift",b);a.D=b};
+yW=function(a){return a.videoData.j?DE(a.videoData.j)||5:5};
+wW=function(a,b){b=Math.max(Math.max(a.policy.Y,Math.ceil(a.policy.B/yW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.V/yW(a))),b)};
+QPa=function(){this.Y=1;this.B=0;this.V=Infinity;this.W=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.N=!1};
+CW=function(a){g.K.call(this);this.oa=a;this.U=this.oa.R();this.C=this.j=0;this.B=new g.Zn(this.D,1E3,this);this.va=new AW({delayMs:g.TE(this.U.experiments,"html5_seek_timeout_delay_ms")});this.V=new AW({delayMs:g.TE(this.U.experiments,"html5_long_rebuffer_threshold_ms")});this.Ea=BW(this,"html5_seek_set_cmt");this.Y=BW(this,"html5_seek_jiggle_cmt");this.ra=BW(this,"html5_seek_new_elem");this.Ua=BW(this,"html5_unreported_seek_reseek");this.J=BW(this,"html5_long_rebuffer_jiggle_cmt");this.N=new AW({delayMs:2E4});
+this.I=BW(this,"html5_ads_preroll_lock_timeout");this.Ha=new AW({delayMs:g.TE(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tv:!this.U.K("html5_report_slow_ads_as_error")});this.La=new AW({delayMs:g.TE(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tv:!this.U.K("html5_skip_slow_buffering_ad")});this.qa=BW(this,"html5_seek_over_discontinuities");this.Ra=new AW({delayMs:g.TE(this.U.experiments,"html5_slow_start_timeout_delay_ms")});this.W=BW(this,"html5_slow_start_no_media_source");
+this.u={};g.M(this,this.B)};
+BW=function(a,b){var c=g.TE(a.U.experiments,b+"_delay_ms");a=a.U.K(b+"_cfl");return new AW({delayMs:c,tv:a})};
+UPa=function(a,b,c,d,e,f,h){var l=hE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1b.fE,c=b.j&&c-b.j>b.jK||f?b.B=!0:!1):c=!1,c&&(l=Object.assign({},a.Ob(b),l),l.wn=h,l.we=e,l.wsuc=d,a.oa.ma("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
+AW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.jK?1E3:b.jK,d=void 0===b.fE?3E4:b.fE;b=void 0===b.tv?!1:b.tv;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.jK=c;this.fE=d;this.tv=b};
+VPa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.U)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
+FW=function(a){g.K.call(this);var b=this;this.oa=a;this.U=this.oa.R();this.videoData=this.oa.getVideoData();this.policy=new WPa(this.U);this.W=new CW(this.oa);this.playbackData=null;this.La=new g.YD;this.I=this.u=this.Ga=this.mediaElement=null;this.j=NaN;this.C=0;this.qa=NaN;this.B=null;this.va=NaN;this.D=this.J=null;this.V=this.N=!1;this.ra=new g.Zn(function(){XPa(b,!1)},2E3);
+this.Ya=new g.Zn(function(){EW(b)});
+this.Ha=new g.Zn(function(){b.N=!0;YPa(b)});
+this.timestampOffset=0;this.Ra=!0;this.Ea=0;this.Ua=NaN;this.Y=new g.Zn(function(){var c=b.U.Fd;c.j+=1E4/36E5;c.j-c.B>1/6&&(fza(c),c.B=c.j);b.Y.start()},1E4);
+g.M(this,this.W);g.M(this,this.La);g.M(this,this.ra);g.M(this,this.Ha);g.M(this,this.Ya);g.M(this,this.Y)};
+ZPa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new PPa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(OH(a.videoData)&&a.Ga){var c=a.Ga.MB.Nh()||0;break a}if(a.videoData.j){c=a.videoData.j.N;break a}}c=0}return c}),a.u=new xW(a.videoData,a.U.experiments,function(){return a.Pd(!0)}));
+a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.u&&cd.C||g.Wa()-d.I=a.Pd()-.1)a.j=a.Pd(),a.B.resolve(a.Pd()),tS(a.oa);else try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);
+a.W.j=c;a.va=c;a.C=a.j}catch(d){}}};
+eQa=function(a){if(!a.mediaElement||0===a.mediaElement.aj()||0a;a++)TW[a]=255>=a?9:7;UW.length=32;UW.fill(5);VW.length=286;VW.fill(0);for(a=261;285>a;a++)VW[a]=Math.floor((a-261)/4);WW[257]=3;for(a=258;285>a;a++){var b=WW[a-1];b+=1<a;a++)XW[a]=3>=a?0:Math.floor((a-2)/2);for(a=YW[0]=1;30>a;a++)b=YW[a-1],b+=1<a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C};
+rQa=function(a,b,c){b=$W(b);c=$W(c);for(var d=a.data,e=a.C,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(aX(a,7);0>c;)c=b[ZW(a,1)-c];return c>>4};
+ZW=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<>=b;a.j-=b;return c};
+aX=function(a,b){a.j-=b;a.register>>=b};
+$W=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
+uQa=function(a){var b,c,d,e,f,h,l;return g.z(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.sQa(new g.oQa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new TB([]);case 2:return g.x(m,d.read(),4);case 4:f=m.u;h=f.value;if(l=f.done){m.Ma(3);break}e.append(h);m.Ma(2);break;case 3:return m.return(YB(e))}})};
+wQa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=vQa[d]||0;a.j&&e>a.j||c.push(d)}return c};
+zQa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.t(xQa[c]||[]));b.K("html5_early_media_for_drm")&&a.push.apply(a,g.t(yQa[c]||[]))};
+EQa=function(a,b){var c=XH(a),d=a.R().j;if(bX&&!d.j)return bX;for(var e=[],f=[],h={},l=g.r(AQa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=BQa(p);!q||!q.video||TD(q)&&!c.qa&&q.video.j>c.W||(n?e.push(p):(q=CB(c,q,d),!0===q?(n=!0,e.push(p)):h[p]=q))}e&&zQa(e,a)}l=g.r(CQa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=DQa(m))&&p.audio)if(p=CB(c,p,d),!0===p){f.push(m);break}else h[m]=
+p;f&&zQa(f,a)}c.B&&b("orfmts",h);bX={video:e,audio:f};d.j=!1;return bX};
+BQa=function(a){var b=FQa[QD[a]],c=GQa[a];if(!c||!b)return null;var d=new ND(c.width,c.height,c.fps);b=Oxa(b,d);return new RD(a,b,{video:d,Pb:c.bitrate/8})};
+DQa=function(a){var b=FQa[QD[a]],c=HQa[a];return c&&b?new RD(a,b,{audio:new LD(c.audioSampleRate,c.numChannels)}):null};
+IQa=function(a){this.Gd=a;this.logger=new g.eT("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new QW(this)};
+cX=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].sP||nQa(a.queue,c)};
+JQa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.HJ(b,a.C).then(function(e){var f=a.Gd;f.Rc("oprr");f.playerResponse=e;f.XI||(f.Cw=!1);dX(f)},function(e){a.Gd.fail(e)});
+break;case 2:a.Rc("ormk");b=YB(b);a.queue.decrypt(b);break;default:d=!0}a.Gd.jj&&a.Gd.ma("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
+KQa=function(a,b,c){var d=aC(b,0);a.Gd.jj&&a.Gd.ma("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).So,d=a.B[d]||null)&&(a.To(a.j[d].Um?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))};
+NQa=function(a,b,c,d){var e={},f=HE(0);f&&(e.GZ=f,e.lastManualDirection=gya(),f=zua()||0,0Math.random())try{g.rz(new g.Rv("b/152131571",btoa(d)))}catch(A){}return y.return(Promise.reject(new zG(v,{backend:"gvi"},w)))}})};
+gRa=function(a,b){var c,d,e,f,h,l,m,n,p,q,v,w,y,A;return g.z(function(B){if(1==B.j)return a.fetchType="gvi",c=a.R(),(f=nGa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=pu(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),h={},c.sendVisitorIdHeader&&a.visitorData&&(h["X-Goog-Visitor-Id"]=a.visitorData),(l=g.LE(c.experiments,"debug_sherlog_username"))&&(h["X-Youtube-Sherlog-Username"]=l),0v.u&&3!==v.j.oa.getVisibilityState()&&RV(v);q.qoe&&(q=q.qoe,q.Ha&&0>q.B&&q.j.U.Kd&&
+cW(q));p.Ga&&hX(p);p.U.Ul&&!p.videoData.backgroundable&&p.mediaElement&&!p.Bg()&&(p.isBackground()&&p.mediaElement.mB()?(p.ma("bgmobile",{suspend:1}),p.Jo(!0)):p.isBackground()||iX(p)&&p.ma("bgmobile",{resume:1}))};
+this.Ih=new tW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,v){q!==g.uA("endcr")||g.W(p.playerState,32)||tS(p);
+e(q,v,p.playerType)});
+g.M(this,this.Ih);g.M(this,this.jd);kRa(this,m);this.videoData.subscribe("dataupdated",this.M2,this);this.videoData.subscribe("dataloaded",this.KG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.hK,this);lRa(this);uKa(this.zf);this.visibility.subscribe("visibilitystatechange",this.zf)};
+kRa=function(a,b){if(2===a.playerType||a.U.Wl)b.TL=!0;var c=Mza(b.Mc,b.Mu,a.U.u,a.U.C);c&&(b.adFormat=c);2===a.playerType&&(b.cn=!0);if(a.isFullscreen()||a.U.u)c=g.Qz("yt-player-autonavstate"),b.autonavState=c||(a.U.u?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&kX(a,b.endSeconds)};
+nRa=function(a){if(a.videoData.Ea){var b=a.Qg.Fc();a.videoData.jr=a.videoData.jr||(null==b?void 0:b.JH());a.videoData.Rr=a.videoData.Rr||(null==b?void 0:b.KH())}(b=FBa(a.videoData))||(b=a.videoData,b=!(b.bk?Iza(b.bk):1));b&&(b=a.videoData.errorDetail,a.fg("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Vk||void 0));1===a.playerType&&lX.isActive()&&a.SD.start();a.videoData.qg=a.getUserAudio51Preference();a.K("html5_generate_content_po_token")&&mRa(a)};
+lRa=function(a){!a.hc||a.hc.isDisposed();a.hc=new g.sW(new rW(a.videoData,a.U,a,function(){return a.Qg.hj()}))};
+pJ=function(a){return a.mediaElement&&a.mediaElement.er()?a.mediaElement.tf():null};
+mX=function(a){if(a.videoData.isValid())return!0;a.fg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
+g.rS=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.hc;RV(c.C);c.qoe&&cW(c.qoe)}a.Yp=b;!mX(a)||a.Fo.started?g.cG(a.U)&&a.videoData.isLivePlayback&&a.Fo.started&&!a.Fo.isFinished()&&!a.Yp&&a.KG():(a.Fo.start(),b=a.hc,g.sS(b.u),b.qoe&&dPa(b.qoe),a.KG())};
+oRa=function(a){var b=a.videoData;jRa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=BG(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.fg("auth",2,unescape(a.videoData.errorReason),yG(c.details),a.videoData.errorDetail,a.videoData.Vk||void 0):a.handleError(c))})};
+zKa=function(a,b){a.kd=b;a.Ga&&NNa(a.Ga,new g.rV(b))};
+pRa=function(a){if(!g.W(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.hk=g.cc(a.videoData.W)),gI(a.videoData)){a.Bb.tick("bpd_s");nX(a).then(function(){a.Bb.tick("bpd_c");if(!a.isDisposed()){a.Yp&&(a.Sb(bK(bK(a.playerState,512),1)),iX(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&kX(a,c.endSeconds);a.Fo.finished=!0;oX(a,"dataloaded");a.Go.started&&pX(a);XOa(a.Wg,a.Ke)}});
+a.K("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Ld.toFixed(3)},!0);var b=QBa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);a.vG()}else oX(a,"dataloaded")};
+nX=function(a){qX(a);a.Ke=null;var b=OPa(a.U,a.videoData,a.Bg());a.Uz=b;a.Uz.then(function(c){qRa(a,c)},function(c){a.isDisposed()||(c=BG(c),a.visibility.isBackground()?(rX(a,"vp_none_avail"),a.Uz=null,a.Fo.reset()):(a.Fo.finished=!0,a.fg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yG(c.details))))});
+return b};
+LV=function(a){nX(a).then(function(){return iX(a)});
+g.fK(a.playerState)&&a.playVideo()};
+qRa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Ke=b;ZPa(a.jd,a.Ke);if(a.videoData.isLivePlayback){var c=(a.K("html5_onesie_ads")?fLa(a.Qg.Qs,a.videoData.videoId):!!a.videoData.Nk)||a.Ga&&!isNaN(a.Ga.Y);c=a.K("html5_onesie_live")&&c;0GF(b.U.Fd,"sticky-lifetime")?"auto":xB[HE()]:d=xB[HE()],d=g.vB("auto",d,!1,"s");if(wB(d)){d=KOa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.r(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;yma()&&!g.cG(b.U)&&DB(c.j.videoInfos[0])&&
+(f=Math.min(f,g.uB.large));d=e.call(d,new tB(0,f,!1,"o"));e=d.compose;f=4320;!b.U.isMobile||g.SF(b.U)||Vu()||b.U.K("hls_for_vod")||(f=b.U.K("mweb_default_hd720")?g.uB.hd720:g.uB.medium);(h=g.TE(b.U.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Ah&&!c.videoData.Td&&(f=Math.min(f,h));h=g.TE(b.U.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.TE(b.U.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.r(l.videoInfos),
+m=l.next();!m.done;m=l.next())if(32