(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var q;function aa(a){var b=0;return function(){return b=f}}); t("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ja(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h=f}}); function Ma(a,b){a instanceof String&&(a+="");var c=0,d={next:function(){if(cf&&(f=Math.max(f+e,0));f>>0),Wa=0;function Xa(a,b,c){return a.call.apply(a.bind,arguments)} function Ya(a,b,c){if(!a)throw Error();if(2c?null:"string"===typeof a?a.charAt(c):a[c]} function jb(a){return Array.prototype.concat.apply([],arguments)} function kb(a){var b=a.length;if(0/g,zb=/"/g,Ab=/'/g,Bb=/\x00/g,Cb=/[\x00&<>"']/;var H;a:{var Db=A.navigator;if(Db){var Eb=Db.userAgent;if(Eb){H=Eb;break a}}H=""}function I(a){return-1!=H.indexOf(a)} ;function Fb(){} ;var Gb=I("Opera"),Hb=I("Trident")||I("MSIE"),Ib=I("Edge"),Jb=I("Gecko")&&!(-1!=H.toLowerCase().indexOf("webkit")&&!I("Edge"))&&!(I("Trident")||I("MSIE"))&&!I("Edge"),Kb=-1!=H.toLowerCase().indexOf("webkit")&&!I("Edge");function Lb(){var a=A.document;return a?a.documentMode:void 0} var Ub;a:{var Vb="",Wb=function(){var a=H;if(Jb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ib)return/Edge\/([\d\.]+)/.exec(a);if(Hb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Kb)return/WebKit\/(\S+)/.exec(a);if(Gb)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); Wb&&(Vb=Wb?Wb[1]:"");if(Hb){var Xb=Lb();if(null!=Xb&&Xb>parseFloat(Vb)){Ub=String(Xb);break a}}Ub=Vb}var Yb=Ub,Zb;if(A.document&&Hb){var $b=Lb();Zb=$b?$b:parseInt(Yb,10)||void 0}else Zb=void 0;var ac=Zb;var bc=I("iPhone")&&!I("iPod")&&!I("iPad")||I("iPod"),cc=I("iPad");var dc={},ec=null;var J=window;function fc(a){var b=B("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||A.$googDebugFname||b}catch(g){e="Not available",c=!0}b=gc(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(null== c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,hc[c])c=hc[c];else{c=String(c);if(!hc[c]){var f=/function\s+([^\(]+)/m.exec(c);hc[c]=f?f[1]:"[Anonymous]"}c=hc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack= b;return a} function gc(a,b){b||(b={});b[ic(a)]=!0;var c=a.stack||"",d=a.Ca;d&&!b[ic(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=gc(d,b));return c} function ic(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack} var hc={};function jc(a){this.f=a||{cookie:""}} q=jc.prototype;q.isEnabled=function(){return navigator.cookieEnabled}; q.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Ja;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.U}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===h&&(h=-1);c=f?";domain="+f:"";g=g?";path="+g:"";d=d?";secure":"";h=0>h?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(C()+1E3*h)).toUTCString();this.f.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+e:"")}; q.get=function(a,b){for(var c=a+"=",d=(this.f.cookie||"").split(";"),e=0,f;ep;p+=4)r[p/4]=n[p]<<24|n[p+1]<<16|n[p+2]<<8|n[p+3];for(p=16;80>p;p++)n=r[p-3]^r[p-8]^r[p-14]^r[p-16],r[p]=(n<<1|n>>>31)&4294967295;n=e[0];var v=e[1],w=e[2],F=e[3],Ta=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var ia=F^v&(w^F);var Ca=1518500249}else ia=v^w^F,Ca=1859775393;else 60>p?(ia=v&w|F&(v|w),Ca=2400959708):(ia=v^w^F,Ca=3395469782);ia=((n<<5|n>>>27)&4294967295)+ia+Ta+Ca+r[p]&4294967295;Ta=F;F=w;w=(v<<30|v>>>2)&4294967295;v=n;n=ia}e[0]=e[0]+n&4294967295;e[1]=e[1]+ v&4294967295;e[2]=e[2]+w&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+Ta&4294967295} function c(n,r){if("string"===typeof n){n=unescape(encodeURIComponent(n));for(var p=[],v=0,w=n.length;vl?c(h,56-l):c(h,64-(l-56));for(var p=63;56<=p;p--)f[p]=r&255,r>>>=8;b(f);for(p=r=0;5>p;p++)for(var v=24;0<=v;v-=8)n[r++]=e[p]>>v&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,da:function(){for(var n=d(),r="",p=0;pa&&0===a%1&&this.g[a]!=b&&(this.g[a]=b,this.f=-1)}; Kc.prototype.get=function(a){return!!this.g[a]}; function Lc(a){-1==a.f&&(a.f=hb(a.g,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.f} ;function Mc(a,b){this.h=a;this.i=b;this.g=0;this.f=null} Mc.prototype.get=function(){if(0a.g&&(a.g++,b.next=a.f,a.f=b)} ;function Oc(a){A.setTimeout(function(){throw a;},0)} var Pc;function Qc(){var a=A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!I("Presto")&&(a=function(){var e=nc();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Za(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!I("Trident")&&!I("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.S;c.S=null;e()}}; return function(e){d.next={S:e};d=d.next;b.port2.postMessage(0)}}return function(e){A.setTimeout(e,0)}} ;function Rc(){this.g=this.f=null} var Tc=new Mc(function(){return new Sc},function(a){a.reset()}); Rc.prototype.add=function(a,b){var c=Tc.get();c.set(a,b);this.g?this.g.next=c:this.f=c;this.g=c}; Rc.prototype.remove=function(){var a=null;this.f&&(a=this.f,this.f=this.f.next,this.f||(this.g=null),a.next=null);return a}; function Sc(){this.next=this.scope=this.f=null} Sc.prototype.set=function(a,b){this.f=a;this.scope=b;this.next=null}; Sc.prototype.reset=function(){this.next=this.scope=this.f=null};function Uc(a,b){Vc||Wc();Xc||(Vc(),Xc=!0);Yc.add(a,b)} var Vc;function Wc(){if(A.Promise&&A.Promise.resolve){var a=A.Promise.resolve(void 0);Vc=function(){a.then(Zc)}}else Vc=function(){var b=Zc; !Ra(A.setImmediate)||A.Window&&A.Window.prototype&&!I("Edge")&&A.Window.prototype.setImmediate==A.setImmediate?(Pc||(Pc=Qc()),Pc(b)):A.setImmediate(b)}} var Xc=!1,Yc=new Rc;function Zc(){for(var a;a=Yc.remove();){try{a.f.call(a.scope)}catch(b){Oc(b)}Nc(Tc,a)}Xc=!1} ;function td(){this.g=-1} ;function ud(){this.g=64;this.f=[];this.l=[];this.m=[];this.i=[];this.i[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.f[0];c=a.f[1];var g=a.f[2],h=a.f[3],k=a.f[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708): (f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.f[0]=a.f[0]+b&4294967295;a.f[1]=a.f[1]+c&4294967295;a.f[2]=a.f[2]+g&4294967295;a.f[3]=a.f[3]+h&4294967295;a.f[4]=a.f[4]+k&4294967295} ud.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.g,d=0,e=this.l,f=this.h;dthis.h?this.update(this.i,56-this.h):this.update(this.i,this.g-(this.h-56));for(var c=this.g-1;56<=c;c--)this.l[c]=b&255,b/=256;vd(this,this.l);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.f[c]>>d&255,++b;return a};var wd="StopIteration"in A?A.StopIteration:{message:"StopIteration",stack:""};function xd(){} xd.prototype.next=function(){throw wd;}; xd.prototype.B=function(){return this}; function yd(a){if(a instanceof xd)return a;if("function"==typeof a.B)return a.B(!1);if(Qa(a)){var b=0,c=new xd;c.next=function(){for(;;){if(b>=a.length)throw wd;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function zd(a,b){if(Qa(a))try{G(a,b,void 0)}catch(c){if(c!==wd)throw c;}else{a=yd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==wd)throw c;}}} function Ad(a){if(Qa(a))return kb(a);a=yd(a);var b=[];zd(a,function(c){b.push(c)}); return b} ;function Bd(a,b){this.h={};this.f=[];this.i=this.g=0;var c=arguments.length;if(12*this.g&&Dd(this),!0):!1}; function Dd(a){if(a.g!=a.f.length){for(var b=0,c=0;b=d.f.length)throw wd;var f=d.f[b++];return a?f:d.h[f]}; return e};var Fd=A.JSON.stringify;function N(a){this.f=0;this.m=void 0;this.i=this.g=this.h=null;this.j=this.l=!1;if(a!=Oa)try{var b=this;a.call(void 0,function(c){Gd(b,2,c)},function(c){Gd(b,3,c)})}catch(c){Gd(this,3,c)}} function Hd(){this.next=this.context=this.onRejected=this.g=this.f=null;this.h=!1} Hd.prototype.reset=function(){this.context=this.onRejected=this.g=this.f=null;this.h=!1}; var Id=new Mc(function(){return new Hd},function(a){a.reset()}); function Jd(a,b,c){var d=Id.get();d.g=a;d.onRejected=b;d.context=c;return d} function Kd(a){if(a instanceof N)return a;var b=new N(Oa);Gd(b,2,a);return b} function Ld(a){return new N(function(b,c){c(a)})} N.prototype.then=function(a,b,c){return Md(this,Ra(a)?a:null,Ra(b)?b:null,c)}; N.prototype.$goog_Thenable=!0;function Nd(a,b){return Md(a,null,b,void 0)} N.prototype.cancel=function(a){if(0==this.f){var b=new Od(a);Uc(function(){Pd(this,b)},this)}}; function Pd(a,b){if(0==a.f)if(a.h){var c=a.h;if(c.g){for(var d=0,e=null,f=null,g=c.g;g&&(g.h||(d++,g.f==a&&(e=g),!(e&&1C())ee.prototype.remove.call(this,a);else return b}};function fe(){} ;function ge(){} E(ge,fe);ge.prototype.clear=function(){var a=Ad(this.B(!0)),b=this;G(a,function(c){b.remove(c)})};function he(a){this.f=a} E(he,ge);q=he.prototype;q.isAvailable=function(){if(!this.f)return!1;try{return this.f.setItem("__sak","1"),this.f.removeItem("__sak"),!0}catch(a){return!1}}; q.set=function(a,b){try{this.f.setItem(a,b)}catch(c){if(0==this.f.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; q.get=function(a){a=this.f.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.f.removeItem(a)}; q.B=function(a){var b=0,c=this.f,d=new xd;d.next=function(){if(b>=c.length)throw wd;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; q.clear=function(){this.f.clear()}; q.key=function(a){return this.f.key(a)};function ie(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a} E(ie,he);function je(a,b){this.g=a;this.f=null;if(Hb&&!(9<=Number(ac))){ke||(ke=new Bd);this.f=ke.get(a);this.f||(b?this.f=document.getElementById(b):(this.f=document.createElement("userdata"),this.f.addBehavior("#default#userData"),document.body.appendChild(this.f)),ke.set(a,this.f));try{this.f.load(this.g)}catch(c){this.f=null}}} E(je,ge);var le={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},ke=null;function me(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return le[b]})} q=je.prototype;q.isAvailable=function(){return!!this.f}; q.set=function(a,b){this.f.setAttribute(me(a),b);ne(this)}; q.get=function(a){a=this.f.getAttribute(me(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.f.removeAttribute(me(a));ne(this)}; q.B=function(a){var b=0,c=this.f.XMLDocument.documentElement.attributes,d=new xd;d.next=function(){if(b>=c.length)throw wd;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; q.clear=function(){for(var a=this.f.XMLDocument.documentElement,b=a.attributes.length;0c&&(c=b.length),f=b.indexOf("?"),0>f||f>c?(f=c,e=""):e=b.substring(f+1,c),b=[b.substr(0,f),e,b.substr(c)],c=b[1],b[1]=a?c?c+"&"+a:a:c,a=b[0]+(b[1]?"?"+b[1]:"")+b[2]):a=b;return a+d} ;var Ie={};function Je(a){return Ie[a]||(Ie[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))} ;var Ke={},Le=[],Zd=new O,Me={};function Ne(){for(var a=u(Le),b=a.next();!b.done;b=a.next())b=b.value,b()} function Oe(a,b){b||(b=document);var c=kb(b.getElementsByTagName("yt:"+a));var d="yt-"+a;var e=b||document;d=e.querySelectorAll&&e.querySelector?e.querySelectorAll("."+d):mc(d,b);d=kb(d);return jb(c,d)} function S(a,b){var c;"yt:"==a.tagName.toLowerCase().substr(0,3)?c=a.getAttribute(b):c=a?a.dataset?a.dataset[Je(b)]:a.getAttribute("data-"+b):null;return c} function Pe(a,b){Zd.P.apply(Zd,arguments)} ;function Qe(a){this.g=a||{};this.h=this.f=!1;a=document.getElementById("www-widgetapi-script");if(this.f=!!("https:"==document.location.protocol||a&&0==a.src.indexOf("https:"))){a=[this.g,window.YTConfig||{}];for(var b=0;bMf&&(d=1);pe("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Nf&&Of&&V("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Nf,roundtripMs:String(Of)});Nf=c;Of=0}} function bg(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}]} ;var eg=A.ytLoggingGelSequenceIdObj_||{};D("ytLoggingGelSequenceIdObj_",eg);function fg(a){var b=gg;a=void 0===a?B("yt.ads.biscotti.lastId_")||"":a;b=Object.assign(hg(b),ig(b));b.ca_type="image";a&&(b.bid=a);return b} function hg(a){var b={};b.dt=Ec;b.flash="0";a:{try{var c=a.f.top.location.href}catch(f){a=2;break a}a=c?c===a.g.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?J:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!J.navigator&&"unknown"!==typeof J.navigator.javaEnabled&&!!J.navigator.javaEnabled&&J.navigator.javaEnabled();J.screen&&(b.u_h=J.screen.height,b.u_w=J.screen.width,b.u_ah=J.screen.availHeight,b.u_aw=J.screen.availWidth,b.u_cd=J.screen.colorDepth); J.navigator&&J.navigator.plugins&&(b.u_nplug=J.navigator.plugins.length);J.navigator&&J.navigator.mimeTypes&&(b.u_nmime=J.navigator.mimeTypes.length);return b} function ig(a){var b=a.f;try{var c=b.screenX;var d=b.screenY}catch(n){}try{var e=b.outerWidth;var f=b.outerHeight}catch(n){}try{var g=b.innerWidth;var h=b.innerHeight}catch(n){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,g,h];c=a.f.top;try{var k=(c||window).document,l="CSS1Compat"==k.compatMode?k.documentElement:k.body;var m=(new lc(l.clientWidth,l.clientHeight)).round()}catch(n){m=new lc(-12245933,-12245933)}k=m;m={};l=new Kc;A.SVGElement&& A.document.createElementNS&&l.set(0);c=zc();c["allow-top-navigation-by-user-activation"]&&l.set(1);c["allow-popups-to-escape-sandbox"]&&l.set(2);A.crypto&&A.crypto.subtle&&l.set(3);A.TextDecoder&&A.TextEncoder&&l.set(4);l=Lc(l);m.bc=l;m.bih=k.height;m.biw=k.width;m.brdim=b.join();a=a.g;return m.vis={visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0,m.wgl=!!J.WebGLRenderingContext,m} var gg=new function(){var a=window.document;this.f=window;this.g=a}; D("yt.ads_.signals_.getAdSignalsString",function(a){return Fe(fg(a))});C();var jg="XMLHttpRequest"in A?function(){return new XMLHttpRequest}:null; function kg(){if(!jg)return null;var a=jg();return"open"in a?a:null} ;var lg={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},mg="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" "), ng=!1; function og(a,b){b=void 0===b?{}:b;if(!c)var c=window.location.href;var d=a.match(pc)[1]||null,e=K(a);d&&e?(d=c,c=a.match(pc),d=d.match(pc),c=c[3]==d[3]&&c[1]==d[1]&&c[4]==d[4]):c=e?K(c)==e&&(Number(c.match(pc)[4]||null)||null)==(Number(a.match(pc)[4]||null)||null):!0;d=V("web_ajax_ignore_global_headers_if_set");for(var f in lg)e=R(lg[f]),!e||!c&&K(a)||d&&void 0!==b[f]||(b[f]=e);if(c||!K(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||!K(a))&&(f="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone: null)&&(b["X-YouTube-Time-Zone"]=f);if(c||!K(a))b["X-YouTube-Ad-Signals"]=Fe(fg(void 0));return b} function pg(a){var b=window.location.search,c=K(a),d=qc(a.match(pc)[5]||null);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Ge(b),f={};G(mg,function(g){e[g]&&(f[g]=e[g])}); return He(a,f||{},!1)} function qg(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=rg(a,b);var d=sg(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(g){if(!e){e=!0;f&&window.clearTimeout(f);var h=g.ok,k=function(l){l=l||{};var m=b.context||A;h?b.onSuccess&&b.onSuccess.call(m,l,g):b.onError&&b.onError.call(m,l,g);b.N&&b.N.call(m,l,g)}; "JSON"==(b.format||"JSON")&&(h||400<=g.status&&500>g.status)?g.json().then(k,function(){k(null)}):k(null)}}); b.X&&0k.status,r=500<=k.status&&600>k.status;if(l||n||r)m=vg(a,c,k,b.Da);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(m&&m.return_code,10);break a;case "RAW":l=!0;break a}l=!!m}m=m|| {};n=b.context||A;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.N&&b.N.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); if(b.H&&0f;f++){var g=d.concat(e[f].split(""));dc[f]=g;for(var h=0;h>2;l=(l&3)<<4|m>>4;m=(m&15)<<2|k>>6;k&=63;g||(k=64,f||(m=64));d.push(c[h],c[l],c[m]||"",c[k]||"")}a.hash=d.join("")}return a} function Dg(a){a=Cg(a);var b=new ud;b.update(JSON.stringify(a,Object.keys(a).sort()));a=b.digest();b="";for(var c=0;cMath.round(W())-d.requestTime)){var e=d.authState,f=Cg(Bg(!1));qb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(W())),dg(a,d.method,e,{}));delete b[c]}}Gg().set("requests",b,86400,!0)}} ;function Kg(){} ;var Lg=bc||cc;function Mg(a){if(!a)throw Error();throw a;} function Ng(a){return a} function Og(a){var b=this;this.g=a;this.state={status:"PENDING"};this.f=[];this.onRejected=[];this.g(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=u(b.f);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED", reason:c};c=u(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})} function Pg(){return new Og(function(a){a(void 0)})} Og.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Ng,e=null!==b&&void 0!==b?b:Mg;return new Og(function(f,g){"PENDING"===c.state.status?(c.f.push(function(){Qg(c,c,d,f,g)}),c.onRejected.push(function(){Rg(c,c,e,f,g)})):"FULFILLED"===c.state.status?Qg(c,c,d,f,g):"REJECTED"===c.state.status&&Rg(c,c,e,f,g)})}; function Sg(a,b){a.then(void 0,b)} function Qg(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof Og?Tg(a,b,f,d,e):d(f)}catch(g){e(g)}} function Rg(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof Og?Tg(a,b,f,d,e):d(f)}catch(g){e(g)}} function Tg(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Og?Tg(a,b,f,d,e):d(f)},function(f){e(f)})} ;function Ug(){var a=Error.call(this,"Transaction was aborted");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,Ug.prototype)} sa(Ug,Error);function Vg(a){return a instanceof DOMException?"VersionError"===a.name:"DOMError"in self&&a instanceof DOMError?"VersionError"===a.name:a instanceof Object&&"message"in a?"An attempt was made to open a database using a lower version than the existing version."===a.message:!1} function Wg(a,b){return new Og(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(g){a=g;e()},d):c()} e()})} ;function Xg(a){return new N(function(b,c){function d(){c(a.error);f()} function e(){b(a.result);f()} function f(){a.removeEventListener("success",e);a.removeEventListener("error",d)} a.addEventListener("success",e);a.addEventListener("error",d)})} function X(a){return new Og(function(b,c){function d(){c(a.error);f()} function e(){b(a.result);f()} function f(){a.removeEventListener("success",e);a.removeEventListener("error",d)} a.addEventListener("success",e);a.addEventListener("error",d)})} ;function Yg(a){this.f=a} q=Yg.prototype;q.add=function(a,b,c){return Zg(this,[a],"readwrite",function(d){return $g(d,a).add(b,c)})}; q.clear=function(a){return Zg(this,[a],"readwrite",function(b){return $g(b,a).clear()})}; q.close=function(){this.f.close()}; q.count=function(a,b){return Zg(this,[a],"readonly",function(c){return $g(c,a).count(b)})}; function ah(a,b,c){a=a.f.createObjectStore(b,c);return new bh(a)} q["delete"]=function(a,b){return Zg(this,[a],"readwrite",function(c){return $g(c,a)["delete"](b)})}; q.get=function(a,b){return Zg(this,[a],"readwrite",function(c){return $g(c,a).get(b)})}; function ch(a,b){return Zg(a,["databases"],"readwrite",function(c){return dh($g(c,"databases"),b,void 0)})} function Zg(a,b,c,d){c=void 0===c?"readonly":c;return new N(function(e,f){var g=a.f.transaction(b,c),h=new eh(g,b);Sg(d(h).then(function(k){Nd(fh(h).then(function(){e(k)}),function(l){f(l)})}),function(k){f(k)})})} function bh(a){this.f=a} q=bh.prototype;q.add=function(a,b){var c=b?this.f.add(a,b):this.f.add(a);return X(c)}; q.clear=function(){return X(this.f.clear()).then(function(){})}; q.count=function(a){a=a?this.f.count(a):this.f.count();return X(a)}; q["delete"]=function(a){return X(this.f["delete"](a))}; q.get=function(a){return X(this.f.get(a))}; q.index=function(a){return new gh(this.f.index(a))}; q.getName=function(){return this.f.name}; function dh(a,b,c){a=c?a.f.put(b,c):a.f.put(b);return X(a)} function eh(a){var b=this;this.f=a;this.g=new Map;this.aborted=!1;this.done=new N(function(c,d){b.f.addEventListener("complete",function(){c()}); b.f.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.f.error)}); b.f.addEventListener("abort",function(){var e=b.f.error;e?("QuotaExceededError"===e.name?ue(Error("The current transaction exceeded its quota limitations.")):"UnknownError"===e.name&&ue(Error("The current transaction may have failed because of exceeding quota limitations.")),d(e)):d(new Ug)})})} eh.prototype.abort=function(){this.f.abort();this.aborted=!0}; function fh(a){var b=a.f;b.commit&&!a.aborted&&b.commit();return a.done} function $g(a,b){var c=a.f.objectStore(b),d=a.g.get(c);d||(d=new bh(c),a.g.set(c,d));return d} function gh(a){this.f=a} gh.prototype.count=function(a){a=a?this.f.count(a):this.f.count();return X(a)}; gh.prototype.get=function(a){return X(this.f.get(a))}; function hh(a,b,c){var d=b.query;b=b.direction;a=d&&b?a.f.openCursor(d,b):d?a.f.openCursor(d):a.f.openCursor();return ih(a).then(function(e){return Wg(e,c)})} function jh(a,b){this.request=a;this.f=b} function ih(a){return X(a).then(function(b){return null===b?null:new jh(a,b)})} jh.prototype["delete"]=function(){return X(this.f["delete"]()).then(function(){})}; jh.prototype.update=function(a){return X(this.f.update(a))};function kh(a,b,c){function d(){m||(m=new Yg(f.result));return m} var e=eh;var f=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var g=c.blocked,h=c.blocking,k=c.f,l=c.upgrade,m;l&&f.addEventListener("upgradeneeded",function(n){if(null===n.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");var r=d(),p=new e(f.transaction);l(r,n.oldVersion,n.newVersion,p)}); g&&f.addEventListener("blocked",function(){g()}); return Xg(f).then(function(n){h&&n.addEventListener("versionchange",function(){h(d())}); k&&n.addEventListener("close",function(){k()}); return d()})} function lh(a,b,c){c=void 0===c?{}:c;return kh(a,b,c)} ;var mh,nh,oh=["getAll","getAllKeys","getKey","openKeyCursor"],ph=["getAll","getAllKeys","getKey","openKeyCursor"];function qh(){var a;if(a=Lg)a=/WebKit\/([0-9]+)/.exec(H),a=!!(a&&600<=parseInt(a[1],10));a&&(a=/WebKit\/([0-9]+)/.exec(H),a=!(a&&602<=parseInt(a[1],10)));return a&&!V("ytidb_allow_on_ios_safari_v8_and_v9")?!1:!!self.indexedDB} function rh(){return new Promise(function(a){setTimeout(a,50)})} function sh(){return L(this,function b(){var c,d,e;return y(b,function(f){switch(f.f){case 1:if(!qh())return f["return"](!1);wa(f);d=!1;return x(f,lh("yt-idb-test-do-not-use",void 0,{blocking:function(){d=!0;c&&(c.close(),c=void 0)}}),5); case 5:return c=f.g,e=lh("yt-idb-test-do-not-use",c.f.version+1).then(function(g){try{g.close()}catch(h){}}),x(f,Promise.race([e, rh()]),6);case 6:return f["return"](d);case 3:Ba(f);if(c)try{c.close()}catch(g){}Da(f);break;case 2:return xa(f),f["return"](!1)}})})} function th(){return void 0!==mh?Kd(mh):new N(function(a){sh().then(function(b){mh=b;a(b)})})} function uh(){return void 0!==nh?Kd(nh):th().then(function(a){if(!a)return!1;var b=u(oh);for(a=b.next();!a.done;a=b.next())if(!IDBObjectStore.prototype[a.value])return!1;b=u(ph);for(a=b.next();!a.done;a=b.next())if(!IDBIndex.prototype[a.value])return!1;return IDBObjectStore.prototype.getKey?!0:!1}).then(function(a){return nh=a})} ;var vh;function wh(){function a(b){b.close();vh=void 0} vh||(vh=Nd(lh("YtIdbMeta",1,{blocking:a,upgrade:function(b,c){1>c&&ah(b,"databases",{keyPath:"actualName"})}}),function(b){return Vg(b)?lh("YtIdbMeta",void 0,{blocking:a}):Ld(b)})); return vh} function xh(a){return wh().then(function(b){return b.get("databases",a.actualName).then(function(c){if(c?a.actualName!==c.actualName||a.publicName!==c.publicName||a.userIdentifier!==c.userIdentifier||a.signedIn!==c.signedIn:1)return ch(b,a)})})} function yh(a){return wh().then(function(b){return b["delete"]("databases",a)})} ;function zh(a){try{var b={actualName:"LogsDataBase",publicName:"LogsDataBase",userIdentifier:void 0,signedIn:!1}}catch(c){return Ld(c)}return Nd(xh(b).then(function(){return a(b)}),function(c){return Nd(yh(b.actualName),function(){}).then(function(){return Ld(c)})})} function Ah(a,b){b=void 0===b?{}:b;return zh(function(c){return lh(c.actualName,a,b)})} ;var Bh;function Ch(){return L(this,function b(){return y(b,function(c){if(!Bh)try{Bh=Ah(1,{upgrade:function(d,e){1>e&&(ah(d,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}).f.createIndex("newRequest",["status","authHash","timestamp"],{unique:!1}),ah(d,"sapisid"))}})}catch(d){if(!Vg(d))return te(d),c["return"](Promise.reject(d)); Bh=Ah()}return c["return"](Bh)})})} function Dh(a){return L(this,function c(){var d,e,f;return y(c,function(g){if(1==g.f)return x(g,Eh(),2);if(3!=g.f)return d=g.g,x(g,Ch(),3);e=g.g;f=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),authHash:d});return g["return"](e.add("LogsRequestsStore",f))})})} function Fh(){return L(this,function b(){var c,d,e,f,g,h;return y(b,function(k){switch(k.f){case 1:return x(k,Eh(),2);case 2:return c=k.g,d=["NEW",c,0],e=["NEW",c,W()],f=IDBKeyRange.bound(d,e),x(k,Ch(),3);case 3:return g=k.g,h=void 0,x(k,Zg(g,["LogsRequestsStore"],"readwrite",function(l){return hh($g(l,"LogsRequestsStore").index("newRequest"),{query:f,direction:"prev"},function(m){m.f.value&&(h=m.f.value,h.status="QUEUED",m.update(h))})}),4); case 4:return k["return"](h)}})})} function Gh(a){return L(this,function c(){var d;return y(c,function(e){if(1==e.f)return x(e,Ch(),2);d=e.g;return e["return"](Zg(d,["LogsRequestsStore"],"readwrite",function(f){var g=$g(f,"LogsRequestsStore");return g.get(a).then(function(h){if(h)return h.status="QUEUED",dh(g,h).then(function(){return h})})}))})})} function Hh(a){return L(this,function c(){var d;return y(c,function(e){if(1==e.f)return x(e,Ch(),2);d=e.g;return e["return"](Zg(d,["LogsRequestsStore"],"readwrite",function(f){var g=$g(f,"LogsRequestsStore");return g.get(a).then(function(h){return h?(h.status="NEW",h.sendCount+=1,dh(g,h).then(function(){return h})):Pg()})}))})})} function Ih(){return L(this,function b(){var c,d;return y(b,function(e){if(1==e.f)return x(e,Ch(),2);if(3!=e.f)return c=e.g,x(e,c.count("LogsRequestsStore"),3);d=e.g;return e["return"](!d)})})} function Jh(a){return L(this,function c(){var d;return y(c,function(e){if(1==e.f)return x(e,Ch(),2);d=e.g;return e["return"](d["delete"]("LogsRequestsStore",a))})})} function Eh(){return L(this,function b(){var c;return y(b,function(d){if(1==d.f){Kg.f||(Kg.f=new Kg);var e={};var f=Jc([]);f&&(e.Authorization=f,e["X-Goog-AuthUser"]=R("SESSION_INDEX",0),"INNERTUBE_HOST_OVERRIDE"in Q||(e["X-Origin"]=window.location.origin),V("pageid_as_header_web")&&"DELEGATED_SESSION_ID"in Q&&(e["X-Goog-PageId"]=R("DELEGATED_SESSION_ID")));e=Kd(e);return x(d,e,2)}c=d.g;return d["return"](Dg(c))})})} ;var Kh=Ue("network_polling_interval",3E4);function Lh(){this.i=0;this.f=window.navigator.onLine;Mh(this);Nh(this)} function Oh(){Lh.f||(Lh.f=new Lh);return Lh.f} function Ph(a){var b=Qh,c=Rh;(new N(function(d){a.g=d})).then(function(){b(); c&&(a.h=c)}); Sh(a)} function Nh(a){window.addEventListener("online",function(){a.f=!0;a.g&&a.g()})} function Mh(a){window.addEventListener("offline",function(){a.f=!1;a.h&&a.h()})} function Sh(a){a.i||(Th(a),window.navigator.onLine&&a.g&&a.g())} function Th(a){a.i=We(function(){window.navigator.onLine?(!1===a.f&&te(Error("NetworkStatusManager missed online event.")),a.f=!0,a.g&&a.g()):(!0===a.f&&te(Error("NetworkStatusManager missed offline event.")),a.f=!1,a.h&&a.h());Th(a)},Kh)} ;var Uh=Ue("networkless_throttle_timeout")||100,Vh=Ue("networkless_retry_attempts")||1,Wh=0;function Xh(a,b){b=void 0===b?{}:b;Yh().then(function(c){if(c&&!V("networkless_bypass_write")){var d={url:a,options:b,timestamp:W(),status:"NEW",sendCount:0};Dh(d).then(function(e){d.id=e;e=Oh();e.f&&!V("networkless_always_offline")?Zh(d):Ph(e)})["catch"](function(e){Zh(d); te(e)})}else tg(a,b)})} function Qh(){Wh||(Wh=Xe(function(){Zh();Wh=0;Qh()},1,Uh))} function Rh(){var a=Wh;if(!isNaN(a)){var b=B("yt.scheduler.instance.cancelJob");b?b(a):window.clearTimeout(a)}Wh=0} function Zh(a){L(this,function c(){var d=this,e,f,g,h;return y(c,function(k){switch(k.f){case 1:e=d;if(!a)return x(k,Fh(),6);if(!a.id){k.v(3);break}return x(k,Gh(a.id),5);case 5:a=k.g;if(!a)throw Error("The request cannot be found in the database.");k.v(3);break;case 6:if(a=k.g){k.v(3);break}return x(k,Ih(),8);case 8:return(f=k.g)&&Rh(),k["return"]();case 3:if($h(a))g=a.options.onError?a.options.onError:function(){},h=a.options.onSuccess?a.options.onSuccess:function(){},a.options.onError=function(l, m){return L(e,function r(){return y(r,function(p){if(1==p.f)return a&&a.id?a.sendCountMath.random()&&ue(new ai("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var e=new ai("innertube xhrclient not ready",b,c,d);te(e);e.sampleWeight=0;throw e;}var f={headers:{"Content-Type":"application/json"},method:"POST",u:c,Z:"JSON",H:function(){d.H()}, X:d.H,onSuccess:function(n,r){if(d.onSuccess)d.onSuccess(r)}, W:function(n){if(d.onSuccess)d.onSuccess(n)}, onError:function(n,r){if(d.onError)d.onError(r)}, Ia:function(n){if(d.onError)d.onError(n)}, timeout:d.timeout,withCredentials:!0},g="";(e=a.f.ja)&&(g=e);var h=a.f.la||!1,k=Bg(h,g,d);Object.assign(f.headers,k);f.headers.Authorization&&!g&&(f.headers["x-origin"]=window.location.origin);e="/youtubei/"+a.f.innertubeApiVersion+"/"+b;var l={alt:"json"};a.f.ka&&f.headers.Authorization||(l.key=a.f.innertubeApiKey);var m=He(""+g+e,l||{},!0);Yh().then(function(n){if(d.retry&&V("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=g){if(V("networkless_gel")&&!n||!V("networkless_gel"))var r=Hg(b, c,k,h);if(r){var p=f.onSuccess,v=f.W;f.onSuccess=function(w,F){Ig(r);p(w,F)}; c.W=function(w,F){Ig(r);v(w,F)}}}try{V("use_fetch_for_op_xhr")?qg(m,f):V("networkless_gel")&&d.retry?(f.method="POST",Xh(m,f)):(f.method="POST",f.u||(f.u={}),tg(m,f))}catch(w){if("InvalidAccessError"==w.name)r&&(Ig(r),r=0),ue(Error("An extension is blocking network request.")); else throw w;}r&&We(function(){Jg(a)},5E3)})} ;var ci=[{V:function(a){return"Cannot read property '"+a.key+"'"}, O:{TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/, groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{V:function(a){return"Cannot call '"+a.key+"'"}, O:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./, groups:["key"]}]}}];function di(){this.f=[];this.g=[]} var ei;var fi=new Set,gi=0,hi=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];function ii(a,b,c,d){c+="."+a;a=String(JSON.stringify(b)).substr(0,500);d[c]=a;return c.length+a.length} ;function Y(a,b,c){this.l=this.f=this.g=null;this.j=Ua(this);this.h=0;this.s=!1;this.m=[];this.i=null;this.A=c;this.F={};c=document;if(a="string"===typeof a?c.getElementById(a):a)if(c="iframe"==a.tagName.toLowerCase(),b.host||(b.host=c?rc(a.src):"https://www.youtube.com"),this.g=new Qe(b),c||(b=ji(this,a),this.l=a,(c=a.parentNode)&&c.replaceChild(b,a),a=b),this.f=a,this.f.id||(this.f.id="widget"+Ua(this.f)),Ke[this.f.id]=this,window.postMessage){this.i=new O;ki(this);b=T(this.g,"events");for(var d in b)b.hasOwnProperty(d)&& this.addEventListener(d,b[d]);for(var e in Me)li(this,e)}} q=Y.prototype;q.setSize=function(a,b){this.f.width=a;this.f.height=b;return this}; q.ma=function(){return this.f}; q.aa=function(a){this.I(a.event,a)}; q.addEventListener=function(a,b){var c=b;"string"==typeof b&&(c=function(){window[b].apply(window,arguments)}); if(!c)return this;this.i.subscribe(a,c);mi(this,a);return this}; function li(a,b){var c=b.split(".");if(2==c.length){var d=c[1];a.A==c[0]&&mi(a,d)}} q.destroy=function(){this.f.id&&(Ke[this.f.id]=null);var a=this.i;a&&"function"==typeof a.dispose&&a.dispose();if(this.l){a=this.f;var b=a.parentNode;b&&b.replaceChild(this.l,a)}else(a=this.f)&&a.parentNode&&a.parentNode.removeChild(a);Se&&(Se[this.j]=null);this.g=null;a=this.f;for(var c in pb)pb[c][0]==a&&Ae(c);this.l=this.f=null}; q.K=function(){return{}}; function ni(a,b,c){c=c||[];c=Array.prototype.slice.call(c);b={event:"command",func:b,args:c};a.s?a.R(b):a.m.push(b)} q.I=function(a,b){if(!this.i.h){var c={target:this,data:b};this.i.P(a,c);Pe(this.A+"."+a,c)}}; function ji(a,b){for(var c=document.createElement("iframe"),d=b.attributes,e=0,f=d.length;en)l=null;else{r=l.indexOf("&",n);if(0>r||r>m)r=m;n+=k.length+1;l=decodeURIComponent(l.substr(n,r-n).replace(/\+/g, " "))}null!==l&&(h[k]=l)}); c.src=T(a.g,"host")+a.L()+"?"+tc(h);return c} q.Y=function(){this.f&&this.f.contentWindow?this.R({event:"listening"}):window.clearInterval(this.h)}; function ki(a){Re(a.g,a,a.j);a.h=Ee(Za(a.Y,a));Ce(a.f,"load",Za(function(){window.clearInterval(this.h);this.h=Ee(Za(this.Y,this))},a))} function mi(a,b){a.F[b]||(a.F[b]=!0,ni(a,"addEventListener",[b]))} q.R=function(a){a.id=this.j;a.channel="widget";var b=Fd(a),c=this.g,d=rc(this.f.src||"");var e=0==d.indexOf("https:")?[d]:c.f?[d.replace("http:","https:")]:c.h?[d]:[d,d.replace("http:","https:")];if(this.f.contentWindow)for(var f=0;f=Gi?Xf():10<=Ff-Sf&&(Zf(),Sf=Ff);Xf()}}var qd,Aa=qa,gb=Aa.params||{},ra={na:{a:"logerror",t:"jserror", type:Aa.name,msg:Aa.message.substr(0,250),line:Aa.lineNumber,level:m,"client.name":gb.name},u:{url:R("PAGE_NAME",window.location.href),file:Aa.fileName},method:"POST"};gb.version&&(ra["client.version"]=gb.version);if(ra.u){Aa.stack&&(ra.u.stack=Aa.stack);for(var Gf=u(Object.keys(gb)),rd=Gf.next();!rd.done;rd=Gf.next()){var Hf=rd.value;ra.u["client."+Hf]=gb[Hf]}if(qd=R("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var If=u(Object.keys(qd)),sd=If.next();!sd.done;sd=If.next()){var Jf=sd.value; ra.u[Jf]=qd[Jf]}var Kf=R("SERVER_NAME",void 0),Lf=R("SERVER_VERSION",void 0);Kf&&Lf&&(ra.u["server.name"]=Kf,ra.u["server.version"]=Lf)}tg(R("ECATCHER_REPORT_HOST","")+"/error_204",ra);fi.add(qa.message);gi++}}}}}else throw Ka;}else console&&console.warn&&console.warn("The YouTube player is not attached to the DOM. API calls should be made after the onReady event. See more: https://developers.google.com/youtube/iframe_api_reference#Events")};function oi(a){return(0===a.search("cue")||0===a.search("load"))&&"loadModule"!==a} function pi(a){return 0===a.search("get")||0===a.search("is")} ;function Z(a,b){if(!a)throw Error("YouTube player element ID required.");var c={title:"video player",videoId:"",width:640,height:360};if(b)for(var d in b)c[d]=b[d];Y.call(this,a,c,"player");this.C={};this.playerInfo={}} sa(Z,Y);q=Z.prototype;q.L=function(){return"/embed/"+T(this.g,"videoId")}; q.K=function(){var a=T(this.g,"playerVars");if(a){var b={},c;for(c in a)b[c]=a[c];a=b}else a={};window!=window.top&&document.referrer&&(a.widget_referrer=document.referrer.substring(0,256));if(c=T(this.g,"embedConfig")){if(Sa(c))try{c=JSON.stringify(c)}catch(d){console.error("Invalid embed config JSON",d)}a.embed_config=c}return a}; q.aa=function(a){var b=a.event;a=a.info;switch(b){case "apiInfoDelivery":if(Sa(a))for(var c in a)this.C[c]=a[c];break;case "infoDelivery":qi(this,a);break;case "initialDelivery":window.clearInterval(this.h);this.playerInfo={};this.C={};ri(this,a.apiInterface);qi(this,a);break;default:this.I(b,a)}}; function qi(a,b){if(Sa(b))for(var c in b)a.playerInfo[c]=b[c]} function ri(a,b){G(b,function(c){this[c]||("getCurrentTime"==c?this[c]=function(){var d=this.playerInfo.currentTime;if(1==this.playerInfo.playerState){var e=(C()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;0")&&(c=c.replace(yb,">")),-1!=c.indexOf('"')&&(c=c.replace(zb,""")),-1!=c.indexOf("'")&&(c=c.replace(Ab,"'")),-1!=c.indexOf("\x00")&&(c=c.replace(Bb,"�")));return''}; q.getOptions=function(a){return this.C.namespaces?a?this.C[a].options||[]:this.C.namespaces||[]:[]}; q.getOption=function(a,b){if(this.C.namespaces&&a&&b)return this.C[a][b]}; function si(a){if("iframe"!=a.tagName.toLowerCase()){var b=S(a,"videoid");b&&(b={videoId:b,width:S(a,"width"),height:S(a,"height")},new Z(a,b))}} ;function Hi(a,b){var c={title:"Thumbnail",videoId:"",width:120,height:68};if(b)for(var d in b)c[d]=b[d];Y.call(this,a,c,"thumbnail")} sa(Hi,Y);Hi.prototype.L=function(){return"/embed/"+T(this.g,"videoId")}; Hi.prototype.K=function(){return{player:0,thumb_width:T(this.g,"thumbWidth"),thumb_height:T(this.g,"thumbHeight"),thumb_align:T(this.g,"thumbAlign")}}; Hi.prototype.I=function(a,b){Y.prototype.I.call(this,a,b?b.info:void 0)}; function Ii(a){if("iframe"!=a.tagName.toLowerCase()){var b=S(a,"videoid");if(b){b={videoId:b,events:{},width:S(a,"width"),height:S(a,"height"),thumbWidth:S(a,"thumb-width"),thumbHeight:S(a,"thumb-height"),thumbAlign:S(a,"thumb-align")};var c=S(a,"onclick");c&&(b.events.onClick=c);new Hi(a,b)}}} ;D("YT.PlayerState.UNSTARTED",-1);D("YT.PlayerState.ENDED",0);D("YT.PlayerState.PLAYING",1);D("YT.PlayerState.PAUSED",2);D("YT.PlayerState.BUFFERING",3);D("YT.PlayerState.CUED",5);D("YT.get",function(a){return Ke[a]}); D("YT.scan",Ne);D("YT.subscribe",function(a,b,c){Zd.subscribe(a,b,c);Me[a]=!0;for(var d in Ke)li(Ke[d],a)}); D("YT.unsubscribe",function(a,b,c){Yd(a,b,c)}); D("YT.Player",Z);D("YT.Thumbnail",Hi);Y.prototype.destroy=Y.prototype.destroy;Y.prototype.setSize=Y.prototype.setSize;Y.prototype.getIframe=Y.prototype.ma;Y.prototype.addEventListener=Y.prototype.addEventListener;Z.prototype.getVideoEmbedCode=Z.prototype.getVideoEmbedCode;Z.prototype.getOptions=Z.prototype.getOptions;Z.prototype.getOption=Z.prototype.getOption;Le.push(function(a){a=Oe("player",a);G(a,si)}); Le.push(function(){var a=Oe("thumbnail");G(a,Ii)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Ne();var Ji=A.onYTReady;Ji&&Ji();var Ki=A.onYouTubeIframeAPIReady;Ki&&Ki();var Li=A.onYouTubePlayerAPIReady;Li&&Li();}).call(this);