(function(){var m,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this; function ca(a,b){if(b){for(var c=ba,d=a.split("."),e=0;e>>0),ia=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)} function ka(a,b,c){if(!a)throw Error();if(2c?null:r(a)?a.charAt(c):a[c]} function oa(a){return Array.prototype.concat.apply([],arguments)} function pa(a){var b=a.length;if(0/g,ya=/"/g,za=/'/g,Aa=/\x00/g,Ba=/[\x00&<>"']/;var H;a:{var Ca=p.navigator;if(Ca){var Da=Ca.userAgent;if(Da){H=Da;break a}}H=""};function I(){this.a="";this.b=Ea} var Ea={};function J(a){var b=new I;b.a=a;return b} J("");var K=J("");J("
");function Fa(a){var b=new G;b.a=F instanceof E&&F.constructor===E&&F.b===ta?F.a:"type_error:Const";a.src=(b instanceof G&&b.constructor===G&&b.b===ua?b.a:"type_error:TrustedResourceUrl").toString()} ;function Ga(a){p.setTimeout(function(){throw a;},0)} var Ha; function Ia(){var a=p.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==H.indexOf("Presto")&&(a=function(){var e=document.createElement("IFRAME");e.style.display="none";Fa(e);document.documentElement.appendChild(e);var h=e.contentWindow;e=h.document;e.open();e.write(K instanceof I&&K.constructor===I&&K.b===Ea?K.a:"type_error:SafeHtml");e.close();var f="callImmediate"+Math.random(),g="file:"==h.location.protocol?"*":h.location.protocol+"//"+ h.location.host;e=z(function(k){if(("*"==g||k.origin==g)&&k.data==f)this.port1.onmessage()},this); h.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){h.postMessage(f,g)}}}); if("undefined"!==typeof a&&-1==H.indexOf("Trident")&&-1==H.indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.G;c.G=null;e()}}; return function(e){d.next={G:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var h=document.createElement("SCRIPT"); h.onreadystatechange=function(){h.onreadystatechange=null;h.parentNode.removeChild(h);h=null;e();e=null}; document.documentElement.appendChild(h)}:function(e){p.setTimeout(e,0)}} ;function Ja(){this.b=this.a=null} var La=new qa(function(){return new Ka},function(a){a.reset()}); Ja.prototype.add=function(a,b){var c=La.get();c.set(a,b);this.b?this.b.next=c:this.a=c;this.b=c}; Ja.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 Ka(){this.next=this.b=this.a=null} Ka.prototype.set=function(a,b){this.a=a;this.b=b;this.next=null}; Ka.prototype.reset=function(){this.next=this.b=this.a=null};function Ma(a){L||Na();Oa||(L(),Oa=!0);Pa.add(a,void 0)} var L;function Na(){if(p.Promise&&p.Promise.resolve){var a=p.Promise.resolve(void 0);L=function(){a.then(Qa)}}else L=function(){var b=Qa,c; !(c="function"!=w(p.setImmediate))&&(c=p.Window&&p.Window.prototype)&&(c=-1==H.indexOf("Edge")&&p.Window.prototype.setImmediate==p.setImmediate);c?(Ha||(Ha=Ia()),Ha(b)):p.setImmediate(b)}} var Oa=!1,Pa=new Ja;function Qa(){for(var a;a=Pa.remove();){try{a.a.call(a.b)}catch(c){Ga(c)}var b=La;b.g(a);100>b.b&&(b.b++,a.next=b.a,b.a=a)}Oa=!1} ;function M(){this.f=this.f;this.g=this.g} M.prototype.f=!1;M.prototype.dispose=function(){this.f||(this.f=!0,this.B())}; M.prototype.B=function(){if(this.g)for(;this.g.length;)this.g.shift()()};function Ra(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 h=e.getElementsByClassName(a);return h}h=e.getElementsByTagName("*");if(a){var f={};for(c=d=0;e=h[c];c++){var g=e.className,k;if(k="function"==typeof g.split)k=0<=ma(g.split(/\s+/),a);k&&(f[d++]=e)}f.length=d;return f}return h} function Sa(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} ;var Ta=p.JSON.stringify;function N(a){M.call(this);this.j=1;this.h=[];this.i=0;this.a=[];this.b={};this.o=!!a} B(N,M);m=N.prototype;m.subscribe=function(a,b,c){var d=this.b[a];d||(d=this.b[a]=[]);var e=this.j;this.a[e]=a;this.a[e+1]=b;this.a[e+2]=c;this.j=e+3;d.push(e);return e}; function Ua(a,b,c){var d=O;if(a=d.b[a]){var e=d.a;(a=na(a,function(h){return e[h+1]==b&&e[h+2]==c}))&&d.F(a)}} m.F=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]=ha;else{if(c){var d=ma(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}; m.I=function(a,b){var c=this.b[a];if(c){for(var d=Array(arguments.length-1),e=1,h=arguments.length;eq)l=null;else{n=l.indexOf("&",q);if(0>n||n>u)n=u;q+=k.length+1;l=decodeURIComponent(l.substr(q,n-q).replace(/\+/g, " "))}null===l||(g[k]=l)}); c.src=W(a.b,"host")+a.A()+"?"+Za(g);return c} m.H=function(){this.a&&this.a.contentWindow?this.D({event:"listening"}):window.clearInterval(this.f)}; function vb(a){tb(a.b,a,a.h);a.f=kb(z(a.H,a));jb(a.a,"load",z(function(){window.clearInterval(this.f);this.f=kb(z(this.H,this))},a))} function xb(a,b){a.o[b]||(a.o[b]=!0,yb(a,"addEventListener",[b]))} m.D=function(a){a.id=this.h;a.channel="widget";a=Ta(a);var b=this.b;var c=Xa(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)for(c=0;c")&&(c=c.replace(xa,">")),-1!=c.indexOf('"')&&(c=c.replace(ya,""")),-1!=c.indexOf("'")&&(c=c.replace(za,"'")),-1!=c.indexOf("\x00")&&(c=c.replace(Aa,"�")));a=''; return a}; m.getOptions=function(a){return this.l.namespaces?a?this.l[a].options||[]:this.l.namespaces||[]:[]}; m.getOption=function(a,b){if(this.l.namespaces&&a&&b)return this.l[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];X.call(this,a,c,"thumbnail")} B(Z,X);function Eb(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 Z(a,b)}}} Z.prototype.A=function(){return"/embed/"+W(this.b,"videoId")}; Z.prototype.w=function(){return{player:0,thumb_width:W(this.b,"thumbWidth"),thumb_height:W(this.b,"thumbHeight"),thumb_align:W(this.b,"thumbAlign")}}; Z.prototype.u=function(a,b){Z.K.u.call(this,a,b?b.info:void 0)};A("YT.PlayerState.UNSTARTED",-1);A("YT.PlayerState.ENDED",0);A("YT.PlayerState.PLAYING",1);A("YT.PlayerState.PAUSED",2);A("YT.PlayerState.BUFFERING",3);A("YT.PlayerState.CUED",5);A("YT.get",function(a){return R[a]}); A("YT.scan",pb);A("YT.subscribe",function(a,b,c){O.subscribe(a,b,c);ob[a]=!0;for(var d in R)wb(R[d],a)}); A("YT.unsubscribe",function(a,b,c){Ua(a,b,c)}); A("YT.Player",Y);A("YT.Thumbnail",Z);X.prototype.destroy=X.prototype.destroy;X.prototype.setSize=X.prototype.setSize;X.prototype.getIframe=X.prototype.P;X.prototype.addEventListener=X.prototype.addEventListener;Y.prototype.getVideoEmbedCode=Y.prototype.getVideoEmbedCode;Y.prototype.getOptions=Y.prototype.getOptions;Y.prototype.getOption=Y.prototype.getOption;nb.push(function(a){a=qb("player",a);C(a,Bb)}); nb.push(function(){var a=qb("thumbnail");C(a,Eb)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||pb();var Fb=t("onYTReady");Fb&&Fb();var Gb=t("onYouTubeIframeAPIReady");Gb&&Gb();var Hb=t("onYouTubePlayerAPIReady");Hb&&Hb();}).call(this);