(function(){var k,l=this;function m(a){return"string"==typeof a} function n(a){a=a.split(".");for(var b=l,c=0;c>>0),w=0;function ba(a,b,c){return a.call.apply(a.bind,arguments)} function ca(a,b,c){if(!a)throw Error();if(2c?null:m(a)?a.charAt(c):a[c]} function fa(a){return Array.prototype.concat.apply([],arguments)} function ha(a){var b=a.length;if(0/g,ma=/"/g,na=/'/g,oa=/\x00/g,pa=/[\x00&<>"']/;var E;a:{var qa=l.navigator;if(qa){var ra=qa.userAgent;if(ra){E=ra;break a}}E=""};function sa(a){var b=F,c;for(c in b)if(a.call(void 0,b[c],c,b))return c} ;function ta(a){l.setTimeout(function(){throw a;},0)} var G; function ua(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==E.indexOf("Presto")&&(a=function(){var e=document.createElement("IFRAME");e.style.display="none";e.src="";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write("");e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=x(function(p){if(("*"==h||p.origin==h)&& p.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&&-1==E.indexOf("Trident")&&-1==E.indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.F;c.F=null;e()}}; return function(e){d.next={F:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var f=document.createElement("SCRIPT"); f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null}; document.documentElement.appendChild(f)}:function(e){l.setTimeout(e,0)}} ;function H(){this.b=this.a=null} var va=new ia(function(){return new I},function(a){a.reset()}); H.prototype.add=function(a,b){var c=va.get();c.set(a,b);this.b?this.b.next=c:this.a=c;this.b=c}; H.prototype.remove=function(){var a=null;this.a&&(a=this.a,this.a=this.a.next,this.a||(this.b=null),a.next=null);return a}; function I(){this.next=this.b=this.a=null} I.prototype.set=function(a,b){this.a=a;this.b=b;this.next=null}; I.prototype.reset=function(){this.next=this.b=this.a=null};function wa(a){J||xa();K||(J(),K=!0);ya.add(a,void 0)} var J;function xa(){if(l.Promise&&l.Promise.resolve){var a=l.Promise.resolve(void 0);J=function(){a.then(za)}}else J=function(){var b=za,c; !(c="function"!=q(l.setImmediate))&&(c=l.Window&&l.Window.prototype)&&(c=-1==E.indexOf("Edge")&&l.Window.prototype.setImmediate==l.setImmediate);c?(G||(G=ua()),G(b)):l.setImmediate(b)}} var K=!1,ya=new H;function za(){for(var a;a=ya.remove();){try{a.a.call(a.b)}catch(c){ta(c)}var b=va;b.g(a);100>b.b&&(b.b++,a.next=b.a,b.a=a)}K=!1} ;function L(){this.f=this.f;this.g=this.g} L.prototype.f=!1;L.prototype.dispose=function(){this.f||(this.f=!0,this.A())}; L.prototype.A=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function Aa(a,b){var c,d;var e=document;e=b||e;if(e.querySelectorAll&&e.querySelector&&a)return e.querySelectorAll(a?"."+a:"");if(a&&e.getElementsByClassName){var f=e.getElementsByClassName(a);return f}f=e.getElementsByTagName("*");if(a){var g={};for(c=d=0;e=f[c];c++){var h=e.className,p;if(p="function"==typeof h.split)p=0<=C(h.split(/\s+/),a);p&&(g[d++]=e)}g.length=d;return g}return f} function Ba(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;var Ca=l.JSON.stringify;function M(a){L.call(this);this.m=1;this.h=[];this.i=0;this.a=[];this.b={};this.o=!!a} z(M,L);k=M.prototype;k.subscribe=function(a,b,c){var d=this.b[a];d||(d=this.b[a]=[]);var e=this.m;this.a[e]=a;this.a[e+1]=b;this.a[e+2]=c;this.m=e+3;d.push(e);return e}; function Da(a,b,c){var d=N;if(a=d.b[a]){var e=d.a;(a=ea(a,function(f){return e[f+1]==b&&e[f+2]==c}))&&d.D(a)}} k.D=function(a){var b=this.a[a];if(b){var c=this.b[b];if(0!=this.i)this.h.push(a),this.a[a+1]=aa;else{if(c){var d=C(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}delete this.a[a];delete this.a[a+1];delete this.a[a+2]}}return!!b}; k.H=function(a,b){var c=this.b[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;er)u=null;else{A=u.indexOf("&",r);if(0>A||A>X)A=X;r+=p.length+1;u=decodeURIComponent(u.substr(r,A-r).replace(/\+/g, " "))}null===u||(h[p]=u)}); c.src=U(a.b,"host")+a.w()+"?"+Ia(h);return c} k.G=function(){this.a&&this.a.contentWindow?this.C({event:"listening"}):window.clearInterval(this.f)}; function db(a){bb(a.b,a,a.h);a.f=Ua(x(a.G,a));Ta(a.a,"load",x(function(){window.clearInterval(this.f);this.f=Ua(x(this.G,this))},a))} function fb(a,b){a.o[b]||(a.o[b]=!0,W(a,"addEventListener",[b]))} k.C=function(a){a.id=this.h;a.channel="widget";a=Ca(a);var b=this.b;var c=Ga(this.a.src);b=0==c.indexOf("https:")?[c]:b.a?[c.replace("http:","https:")]:b.f?[c]:[c,c.replace("http:","https:")];if(!this.a.contentWindow)throw Error("The YouTube player is not attached to the DOM.");for(c=0;c")&&(c=c.replace(la,">")),-1!=c.indexOf('"')&&(c=c.replace(ma,""")),-1!=c.indexOf("'")&&(c=c.replace(na,"'")),-1!=c.indexOf("\x00")&&(c=c.replace(oa,"�")));a=''; return a}; k.getOptions=function(a){return this.j.namespaces?a?this.j[a].options||[]:this.j.namespaces||[]:[]}; k.getOption=function(a,b){if(this.j.namespaces&&a&&b)return this.j[a][b]};function Z(a,b){var c={title:"Thumbnail",videoId:"",width:120,height:68};if(b)for(var d in b)c[d]=b[d];V.call(this,a,c,"thumbnail")} z(Z,V);function lb(a){if("iframe"!=a.tagName.toLowerCase()){var b=S(a,"videoid");if(b){b={videoId:b,events:{}};b.width=S(a,"width");b.height=S(a,"height");b.thumbWidth=S(a,"thumb-width");b.thumbHeight=S(a,"thumb-height");b.thumbAlign=S(a,"thumb-align");var c=S(a,"onclick");c&&(b.events.onClick=c);new Z(a,b)}}} Z.prototype.w=function(){return"/embed/"+U(this.b,"videoId")}; Z.prototype.v=function(){return{player:0,thumb_width:U(this.b,"thumbWidth"),thumb_height:U(this.b,"thumbHeight"),thumb_align:U(this.b,"thumbAlign")}}; Z.prototype.s=function(a,b){Z.J.s.call(this,a,b?b.info:void 0)};y("YT.PlayerState.UNSTARTED",-1);y("YT.PlayerState.ENDED",0);y("YT.PlayerState.PLAYING",1);y("YT.PlayerState.PAUSED",2);y("YT.PlayerState.BUFFERING",3);y("YT.PlayerState.CUED",5);y("YT.get",function(a){return Q[a]}); y("YT.scan",Ya);y("YT.subscribe",function(a,b,c){N.subscribe(a,b,c);Xa[a]=!0;for(var d in Q)eb(Q[d],a)}); y("YT.unsubscribe",function(a,b,c){Da(a,b,c)}); y("YT.Player",Y);y("YT.Thumbnail",Z);V.prototype.destroy=V.prototype.destroy;V.prototype.setSize=V.prototype.setSize;V.prototype.getIframe=V.prototype.K;V.prototype.addEventListener=V.prototype.addEventListener;Y.prototype.getVideoEmbedCode=Y.prototype.getVideoEmbedCode;Y.prototype.getOptions=Y.prototype.getOptions;Y.prototype.getOption=Y.prototype.getOption;R.push(function(a){a=Za("player",a);D(a,ib)}); R.push(function(){var a=Za("thumbnail");D(a,lb)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||Ya();var mb=n("onYTReady");mb&&mb();var nb=n("onYouTubeIframeAPIReady");nb&&nb();var ob=n("onYouTubePlayerAPIReady");ob&&ob();}).call(this);