(function(){'use strict';var n;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); q("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0),la=0;function ma(a,b,c){return a.call.apply(a.bind,arguments)} function na(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}} function B(a,b,c){B=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ma:na;return B.apply(null,arguments)} function C(a,b){a=a.split(".");var c=x;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function oa(a,b){function c(){} c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.O=function(d,e,h){for(var l=Array(arguments.length-2),g=2;g=0&&Array.prototype.splice.call(a,b,1)} function ra(a){return Array.prototype.concat.apply([],arguments)} function sa(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.j();return a};var ua=/&/g,va=//g,xa=/"/g,ya=/'/g,za=/\x00/g,Aa=/[\x00&<>"']/;function Ba(){var a=x.navigator;return a&&(a=a.userAgent)?a:""} ;/* SPDX-License-Identifier: Apache-2.0 */ function E(a){this.g=a} E.prototype.toString=function(){return this.g}; var Ca=new E("about:invalid#zClosurez");function F(a){this.J=a} function G(a){return new F(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var Da=[G("data"),G("http"),G("https"),G("mailto"),G("ftp"),new F(function(a){return/^[^:]*([/?#]|$)/.test(a)})]; function Ea(a){var b=b===void 0?Da:b;a:if(b=b===void 0?Da:b,!(a instanceof E)){for(var c=0;c")!=-1&&(a=a.replace(wa,">")),a.indexOf('"')!=-1&&(a=a.replace(xa,""")),a.indexOf("'")!=-1&&(a=a.replace(ya,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(za,"�")));return a} ;function Ka(){var a=document;var b="IFRAME";a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)} ;var K;function La(){var a=x.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&Ba().indexOf("Presto")==-1&&(a=function(){var e=Ka();e.style.display="none";document.documentElement.appendChild(e);var h=e.contentWindow;e=h.document;e.open();e.close();var l="callImmediate"+Math.random(),g=h.location.protocol=="file:"?"*":h.location.protocol+"//"+h.location.host;e=B(function(f){if((g=="*"||f.origin==g)&&f.data==l)this.port1.onmessage()},this); h.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){h.postMessage(l,g)}}}); if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.C;c.C=null;e()}}; return function(e){d.next={C:e};d=d.next;b.port2.postMessage(0)}}return function(e){x.setTimeout(e,0)}} ;function Ma(a){x.setTimeout(function(){throw a;},0)} ;function L(){this.h=this.g=null} L.prototype.add=function(a,b){var c=Na.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; L.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var Na=new ta(function(){return new M},function(a){return a.reset()}); function M(){this.next=this.scope=this.g=null} M.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; M.prototype.reset=function(){this.next=this.scope=this.g=null};var N,O=!1,Oa=new L;function Pa(a){N||Qa();O||(N(),O=!0);Oa.add(a,void 0)} function Qa(){if(x.Promise&&x.Promise.resolve){var a=x.Promise.resolve(void 0);N=function(){a.then(Ra)}}else N=function(){var b=Ra; typeof x.setImmediate!=="function"||x.Window&&x.Window.prototype&&x.Window.prototype.setImmediate==x.setImmediate?(K||(K=La()),K(b)):x.setImmediate(b)}} function Ra(){for(var a;a=Oa.remove();){try{a.g.call(a.scope)}catch(c){Ma(c)}var b=Na;b.l(a);b.h<100&&(b.h++,a.next=b.g,b.g=a)}O=!1} ;function P(){this.j=this.j;this.l=this.l} P.prototype.j=!1;P.prototype.dispose=function(){this.j||(this.j=!0,this.A())}; P.prototype.addOnDisposeCallback=function(a,b){this.j?b!==void 0?a.call(b):a():(this.l||(this.l=[]),this.l.push(b!==void 0?B(a,b):a))}; P.prototype.A=function(){if(this.l)for(;this.l.length;)this.l.shift()()};function Q(a){P.call(this);this.u=1;this.o=[];this.s=0;this.g=[];this.h={};this.v=!!a} oa(Q,P);n=Q.prototype;n.subscribe=function(a,b,c){var d=this.h[a];d||(d=this.h[a]=[]);var e=this.u;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.u=e+3;d.push(e);return e}; function Sa(a,b,c){var d=R;if(a=d.h[a]){var e=d.g;(a=a.find(function(h){return e[h+1]==b&&e[h+2]==c}))&&d.B(a)}} n.B=function(a){var b=this.g[a];if(b){var c=this.h[b];this.s!=0?(this.o.push(a),this.g[a+1]=function(){}):(c&&qa(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b}; n.F=function(a,b){var c=this.h[a];if(c){for(var d=Array(arguments.length-1),e=1,h=arguments.length;e0&&this.s==0)for(;c=this.o.pop();)this.B(c)}}return e!=0}return!1}; function Ta(a,b,c){Pa(function(){a.apply(b,c)})} n.clear=function(a){if(a){var b=this.h[a];b&&(b.forEach(this.B,this),delete this.h[a])}else this.g.length=0,this.h={}}; n.A=function(){Q.G.A.call(this);this.clear();this.o.length=0};var Ua=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Va(a){var b=a.match(Ua);a=b[1];var c=b[2],d=b[3];b=b[4];var e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e} function Wa(a,b,c){if(Array.isArray(b))for(var d=0;d=0&&mk)r=k;m+=g.length+1;f=decodeURIComponent(f.slice(m,r!==-1?r:0).replace(/\+/g," "))}f!==null&&(l[g]=f)}); a=""+V(a.h,"host")+("/embed/"+V(a.h,"videoId"))+"?"+Xa(l);ib.yt_embedsEnableIframeSrcWithIntent?(Ia(c,Ea(a)),c.sandbox.add("allow-presentation","allow-top-navigation")):c.src=a;return c} n.D=function(){this.g&&this.g.contentWindow?this.sendMessage({event:"listening"}):clearInterval(this.j)}; function kb(a){cb(a.h,a,a.id);a.j=setInterval(a.D.bind(a),250);a.g&&(a.v=function(){clearInterval(a.j);a.j=setInterval(a.D.bind(a),250)},a.g.addEventListener("load",a.v))} function mb(a,b){a.H[b]||(a.H[b]=!0,Z(a,"addEventListener",[b]))} n.sendMessage=function(a){a.id=this.id;a.channel="widget";a=JSON.stringify(a);var b=[Va(this.g.src||"").replace("http:","https:")];if(this.g.contentWindow)for(var c=0;c0||console&&console.warn&&console.warn(d);else throw d;}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 nb(a){var b=V(a.h,"playerVars");if(b){var c={},d;for(d in b)c[d]=b[d];b=c}else b={};window!==window.top&&document.referrer&&(b.widget_referrer=document.referrer.substring(0,256));if(a=V(a.h,"embedConfig")){if(z(a))try{a=JSON.stringify(a)}catch(e){console.error("Invalid embed config JSON",e)}b.embed_config=a}return b} function eb(a,b){if(z(b)){for(var c in b)b.hasOwnProperty(c)&&(a.playerInfo[c]=b[c]);a.playerInfo.hasOwnProperty("videoData")&&(b=a.playerInfo.videoData,b.hasOwnProperty("title")&&b.title?(b=b.title,b!==a.videoTitle&&(a.videoTitle=b,a.g.setAttribute("title",b))):(a.videoTitle="",a.g.setAttribute("title","YouTube "+V(a.h,"title"))))}} function fb(a,b){D(b,function(c){this[c]||(c==="getCurrentTime"?this[c]=function(){var d=this.playerInfo.currentTime;if(this.playerInfo.playerState===1){var e=(Date.now()/1E3-this.playerInfo.currentTimeLastUpdated_)*this.playerInfo.playbackRate;e>0&&(d+=Math.min(e,1))}return d}:gb(c)?this[c]=function(){this.playerInfo={}; this.m={};Z(this,c,arguments);return this}:hb(c)?this[c]=function(){var d=0; c.search("get")===0?d=3:c.search("is")===0&&(d=2);return this.playerInfo[c.charAt(d).toLowerCase()+c.substr(d+1)]}:this[c]=function(){Z(this,c,arguments); return this})},a)} n.getVideoEmbedCode=function(){var a=V(this.h,"host")+("/embed/"+V(this.h,"videoId")),b=Number(V(this.h,"width")),c=Number(V(this.h,"height"));if(isNaN(b)||isNaN(c))throw Error("Invalid width or height property");b=Math.floor(b);c=Math.floor(c);var d=this.videoTitle;a=Ja(a);d=Ja(d!=null?d:"YouTube video player");return'')}; n.getOptions=function(a){return this.m.namespaces?a?this.m[a]?this.m[a].options||[]:[]:this.m.namespaces||[]:[]}; n.getOption=function(a,b){if(this.m.namespaces&&a&&b&&this.m[a])return this.m[a][b]}; function ob(a){if(a.tagName.toLowerCase()!=="iframe"){var b=U(a,"videoid");b&&(b={videoId:b,width:U(a,"width"),height:U(a,"height")},new Y(a,b))}} ;C("YT.PlayerState.UNSTARTED",-1);C("YT.PlayerState.ENDED",0);C("YT.PlayerState.PLAYING",1);C("YT.PlayerState.PAUSED",2);C("YT.PlayerState.BUFFERING",3);C("YT.PlayerState.CUED",5);C("YT.get",function(a){return S[a]}); C("YT.scan",$a);C("YT.subscribe",function(a,b,c){R.subscribe(a,b,c);T[a]=!0;for(var d in S)S.hasOwnProperty(d)&&lb(S[d],a)}); C("YT.unsubscribe",function(a,b,c){Sa(a,b,c)}); C("YT.Player",Y);Y.prototype.destroy=Y.prototype.destroy;Y.prototype.setSize=Y.prototype.setSize;Y.prototype.getIframe=Y.prototype.getIframe;Y.prototype.addEventListener=Y.prototype.addEventListener;Y.prototype.getVideoEmbedCode=Y.prototype.getVideoEmbedCode;Y.prototype.getOptions=Y.prototype.getOptions;Y.prototype.getOption=Y.prototype.getOption; Za.push(function(a){var b=a;b||(b=document);a=sa(b.getElementsByTagName("yt:player"));var c=b||document;if(c.querySelectorAll&&c.querySelector)b=c.querySelectorAll(".yt-player");else{var d;c=document;b=b||c;if(b.querySelectorAll&&b.querySelector)b=b.querySelectorAll(".yt-player");else if(b.getElementsByClassName){var e=b.getElementsByClassName("yt-player");b=e}else{e=b.getElementsByTagName("*");var h={};for(c=d=0;b=e[c];c++){var l=b.className,g;if(g=typeof l.split=="function")g=pa(l.split(/\s+/), "yt-player")>=0;g&&(h[d++]=b)}h.length=d;b=h}}b=sa(b);D(ra(a,b),ob)}); typeof YTConfig!=="undefined"&&YTConfig.parsetags&&YTConfig.parsetags!=="onload"||$a();var pb=x.onYTReady;pb&&pb();var qb=x.onYouTubeIframeAPIReady;qb&&qb();var rb=x.onYouTubePlayerAPIReady;rb&&rb();}).call(this);