1)ytcfg.d()[a[0]]=a[1];else for(var k in a[0])ytcfg.d()[k]=a[0][k]}}; window.ytcfg.set(‘EMERGENCY_BASE_URL’, ‘/error_204?tx3djserrorx26levelx3dERRORx26client.namex3d1x26client.versionx3d2.20210422.04.00’);]]>=5)return;window.unhandledErrorCount+=1;window.unhandledErrorMessages[message]=true;var img=new Image;window.emergencyTimeoutImg=img;img.onload=img.onerror=function(){delete window.emergencyTimeoutImg}; var combinedLineAndColumn=err.lineNumber;if(!isNaN(err[“columnNumber”]))combinedLineAndColumn+=”:”+err[“columnNumber”];var stack=err.stack||””;var values={“msg”:message,”type”:err.name,”client.params”:”unhandled window error”,”file”:err.fileName,”line”:combinedLineAndColumn,”stack”:stack.substr(0,500)};var thirdPartyScript=!err.fileName||err.fileName===””;var replaced=stack.replace(/https://www.youtube.com//g,””);if(replaced.match(/https?://[^/]+//))thirdPartyScript=true;else if(stack.indexOf(“trapProp”)>= 0&&stack.indexOf(“trapChain”)>=0)thirdPartyScript=true;else if(message.indexOf(“redefine non-configurable”)>=0&&message.indexOf(“userAgent”)>=0)thirdPartyScript=true;var baseUrl=window[“ytcfg”].get(“EMERGENCY_BASE_URL”,”https://www.youtube.com/error_204?t=jserror&level=ERROR”);var unsupported=message.indexOf(“window.customElements is undefined”)>=0;if(thirdPartyScript||unsupported)baseUrl=baseUrl.replace(“level=ERROR”,”level=WARNING”);var parts=[baseUrl];for(var key in values){var value=values[key]; if(value)parts.push(key+”=”+encodeURIComponent(value))}img.src=parts.join(“&”)}; (function(){function _getExtendedNativePrototype(tag){var p=this._nativePrototypes[tag];if(!p){p=Object.create(this.getNativePrototype(tag));var p$=Object.getOwnPropertyNames(window[“Polymer”].Base);for(var i=0,n=undefined;i
>>0),A=0;function B(a,b){this.width=a;this.height=b} B.prototype.aspectRatio=function(){return this.width/this.height}; B.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; B.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; B.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function C(){var a=document;var b=”DIV”;”application/xhtml+xml”===a.contentType&&(b=b.toLowerCase());return a.createElement(b)} ;var D=new WeakMap;function E(a,b){a=[a];for(var d=b.length-1;0<=d;--d)a.push(typeof b[d],b[d]);return a.join("x0B")} ;function F(a,b,d){if(b instanceof B)d=b.height,b=b.width;else if(void 0==d)throw Error("missing height argument");a.style.width=G(b);a.style.height=G(d)} function G(a){"number"==typeof a&&(a=Math.round(a)+"px");return a} ;var H=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{},I=["yt","config_"],J=x;I[0]in J||"undefined"==typeof J.execScript||J.execScript("var "+I[0]);for(var K;I.length&&(K=I.shift());)I.length||void 0===H?J[K]&&J[K]!==Object.prototype[K]?J=J[K]:J=J[K]={}:J[K]=H;function L(a){var b={};return a in H?H[a]:b} ;function M(a){var b=L("EXPERIMENTS_FORCED_FLAGS");a=void 0!==b[a]?b[a]:L("EXPERIMENT_FLAGS")[a];return"string"===typeof a&&"false"===a?!1:!!a} ;var N=function(a,b){function d(g){g=u(g);g.next();g=v(g);return b(f,g)} b=void 0===b?E:b;var f=y(a);return function(g){for(var k=[],e=0;e=1550-N()&&800<=a.height)f=!P(b)||1550<=a.width?f-432:f-382,P(b)&&(f-=N());else if(1E3=a.width&&P(b)?g=357:M("kevlar_watch_feed_big_thumbs")&&(g=382);f-=g;P(b)&&(f-=N())}else f-=48;f=Math.min(f,1280);var k=f*b;g=240;d&&(g=380);if(!(.5624>b)){var e=1327;M(“kevlar_watch_split_pane”)&&(e+=N());630>a.height&&657<=a.width||630<=a.height&&1E3<=a.width&&a.width
Source