1/* youtube-background v1.0.15 | https://github.com/stamat/youtube-background | MIT License */ 2(()=>{function c(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function n(t,e){if(t.classList){const i=e.split(" ");for(var s=0;s<i.length;s++){const a=i[s];t.classList.add(a)}return}c(t,className)||(t.className+=" "+className)}function l(t,e){if(t.classList){t.classList.remove(e);return}t.className=t.className.replace(new RegExp("\\b"+e+"\\b","g"),"")}function f(){let t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t}function w(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}function y(t){const e=t.split(/\s?:\s?/i),s=16/9;if(e.length<2)return s;const i=parseInt(e[0],10),a=parseInt(e[1],10);return isNaN(i)||isNaN(a)?s:i/a}function b(t,e,s,i){let a={};if(!t)a=e;else for(let p in e)t.hasOwnProperty(p)||(a[p]=e[p]);if(!s)return a;for(let p in a){let o;if(i instanceof Array)for(var r=0;r<i.length;r++){const d=s.getAttribute(i[r]+p);if(d){o=d;break}}else o=s.getAttribute(i+p);o!=null&&(o=o==="false"?!1:o,o=/^\d+$/.test(o)?parseInt(o,10):o,o=/^\d+\.\d+$/.test(o)?parseFloat(o):o,a[p]=o)}return a}var v=document.createElement("script");v.src="https://www.youtube.com/player_api";var C=document.getElementsByTagName("script")[0];C.parentNode.insertBefore(v,C);function h(t,e,s,i){this.is_mobile=f(),this.element=t,this.ytid=s,this.uid=i,this.player=null,this.buttons={},this.state={},this.state.play=!1,this.state.mute=!1,this.params={};const a={pause:!1,"play-button":!1,"mute-button":!1,autoplay:!0,muted:!0,loop:!0,mobile:!0,"load-background":!0,resolution:"16:9",onStatusChange:function(){},"inline-styles":!0,"fit-box":!1,offset:200,"start-at":0,"end-at":0,poster:null};this.__init__=function(){this.ytid&&(this.params=b(e,a,this.element,["data-ytbg-","data-vbg-"]),this.params.pause&&(this.params["play-button"]=this.params.pause),this.params.resolution_mod=y(this.params.resolution),this.state.playing=this.params.autoplay,this.state.muted=this.params.muted,this.buildHTML(),console.log(this.is_mobile),!(this.is_mobile&&!this.params.mobile)&&(this.injectPlayer(),this.params["play-button"]&&this.generateActionButton({name:"play",className:"play-toggle",innerHtml:'<i class="fa"></i>',initialState:!1,stateClassName:"paused",condition_parameter:"autoplay",stateChildClassNames:["fa-pause-circle","fa-play-circle"],actions:["play","pause"]}),this.params["mute-button"]&&this.generateActionButton({name:"mute",className:"mute-toggle",innerHtml:'<i class="fa"></i>',initialState:!0,stateClassName:"muted",condition_parameter:"muted",stateChildClassNames:["fa-volume-up","fa-volume-mute"],actions:["unmute","mute"]})))},this.__init__()}h.prototype.initYTPlayer=function(){const t=this;window.hasOwnProperty("YT")&&(this.player=new YT.Player(this.uid,{events:{onReady:function(e){t.onVideoPlayerReady(e)},onStateChange:function(e){t.onVideoStateChange(e)},onError:function(e){}}}))},h.prototype.seekTo=function(t){t>0&&this.player.seekTo(t,!0)},h.prototype.onVideoPlayerReady=function(t){this.params.autoplay&&(this.seekTo(this.params["start-at"]),this.player.playVideo()),this.iframe.style.opacity=1},h.prototype.onVideoStateChange=function(t){t.data===0&&this.params.loop&&(this.seekTo(this.params["start-at"]),this.player.playVideo()),t.data===-1&&this.params.autoplay&&(this.seekTo(this.params["start-at"]),this.player.playVideo(),this.element.dispatchEvent(new CustomEvent("video-background-play",{bubbles:!0,detail:this}))),this.params.onStatusChange(t)}
2,h.prototype.injectPlayer=function(){this.iframe=document.createElement("iframe"),this.iframe.setAttribute("frameborder",0),this.iframe.setAttribute("allow","autoplay; mute");let t=`https://www.youtube.com/embed/${this.ytid}?&enablejsapi=1&disablekb=1&controls=0&rel=0&iv_load_policy=3&cc_load_policy=0&playsinline=1&showinfo=0&modestbranding=1&fs=0`;if(this.params.muted&&(t+="&mute=1"),this.params.autoplay&&(t+="&autoplay=1"),this.params.loop&&(t+="&loop=1"),this.params["end-at"]>0&&(t+=`&end=${this.params["end-at"]}`),this.iframe.src=t,this.uid&&(this.iframe.id=this.uid),this.params["inline-styles"]&&(this.iframe.style.top="50%",this.iframe.style.left="50%",this.iframe.style.transform="translateX(-50%) translateY(-50%)",this.iframe.style.position="absolute",this.iframe.style.opacity=0),this.element.appendChild(this.iframe),this.params["fit-box"])this.iframe.style.width="100%",this.iframe.style.height="100%";else{let e=function(){const i=s.iframe.parentNode.offsetHeight+s.params.offset,a=s.iframe.parentNode.offsetWidth+s.params.offset,r=s.params.resolution_mod;r>a/i?(s.iframe.style.width=i*r+"px",s.iframe.style.height=i+"px"):(s.iframe.style.width=a+"px",s.iframe.style.height=a/r+"px")};const s=this;window.hasOwnProperty("ResizeObserver")?new ResizeObserver(()=>{window.requestAnimationFrame(e)}).observe(this.element):window.addEventListener("resize",()=>{window.requestAnimationFrame(e)}),e()}},h.prototype.buildHTML=function(){const t=this.element.parentNode;n(this.element,"youtube-background video-background");const e={height:"100%",width:"100%","z-index":"0",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0};if(this.params["mute-button"]||(e["pointer-events"]="none"),(this.params["load-background"]||this.params.poster)&&(this.params["load-background"]&&(e["background-image"]="url(https://img.youtube.com/vi/"+this.ytid+"/maxresdefault.jpg)"),this.params.poster&&(e["background-image"]=this.params.poster),e["background-size"]="cover",e["background-repeat"]="no-repeat",e["background-position"]="center"),this.params["inline-styles"]){for(let s in e)this.element.style[s]=e[s];["absolute","fixed","relative","sticky"].indexOf(t.style.position)||(t.style.position="relative")}if(this.params["play-button"]||this.params["mute-button"]){const s=document.createElement("div");s.className="video-background-controls",s.style.position="absolute",s.style.top="10px",s.style.right="10px",s.style["z-index"]=2,this.controls_element=s,t.appendChild(s)}return this.element},h.prototype.play=function(){if(this.buttons.hasOwnProperty("play")){const t=this.buttons.play;l(t.element,t.button_properties.stateClassName),n(t.element.firstChild,t.button_properties.stateChildClassNames[0]),l(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.params["start-at"]&&this.player.getCurrentTime()<this.params["start-at"]&&this.seekTo(this.params["start-at"]),this.player.playVideo(),this.element.dispatchEvent(new CustomEvent("video-background-play",{bubbles:!0,detail:this})))},h.prototype.pause=function(){if(this.buttons.hasOwnProperty("play")){const t=this.buttons.play;n(t.element,t.button_properties.stateClassName),l(t.element.firstChild,t.button_properties.stateChildClassNames[0]),n(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.pauseVideo(),this.element.dispatchEvent(new CustomEvent("video-background-pause",{bubbles:!0,detail:this})))},h.prototype.unmute=function(){if(this.buttons.hasOwnProperty("mute")){const t=this.buttons.mute;l(t.element,t.button_properties.stateClassName),n(t.element.firstChild,t.button_properties.stateChildClassNames[0]),l(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.unMute(),this.element.dispatchEvent(new CustomEvent("video-background-unmute",{bubbles:!0,detail:this})))},h.prototype.mute=function(){if(this.buttons.hasOwnProperty("mute")){const t=this.buttons.mute;n(t.element,t.button_properties.stateClassName),l(t.element.firstChild,t.button_properties.stateChildClassNames[0]),n(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.mute(),this.element.dispatchEvent(new CustomEvent("video-background-mute",{bubbles:!0,detail:this})))},h.prototype.generateActionButton=function(t){const e=document.createElement("button");e.className=t.className,e.innerHTML=t.innerHtml,n(e.firstChild,t.stateChildClassNames[0]),this.params[t.condition_parameter]===t.initialState&&(n(e,t.stateClassName),l(e.firstChild,t.stateChildClassNames[0]),n(e.firstChild,t.stateChildClassNames[1]));const s=this;e.addEventListener("click",function(i){c(this,t.stateClassName)?(s.state[t.name]=!1,s[t.actions[0]]()):(s.state[t.name]=!0,s[t.actions[1]]())}),this.buttons[t.name]={element:e,button_properties:t},this.controls_element.appendChild(e)};function g(t,e,s,i){this.is_mobile=f(),this.element=t,this.vid=s,this.uid=i,this.player=null,this.buttons={},this.state={},this.state.play=!1,this.state.mute=!1,this.params={};const a={autoplay:!0,muted:!0,loop:!0,mobile:!0,resolution:"16:9","inline-styles":!0,"fit-box":!1,offset:200,"start-at":0,poster:null};this.__init__=function(){this.vid&&(this.params=b(e,a,this.element,["data-ytbg-","data-vbg-"]),this.params.pause&&(this.params["play-button"]=this.params.pause),this.params.resolution_mod=y(this.params.resolution),this.state.playing=this.params.autoplay,this.state.muted=this.params.muted,this.buildHTML(),this.injectPlayer())},this.__init__()}g.prototype.injectPlayer=function(){this.iframe=document.createElement("iframe"),this.iframe.setAttribute("frameborder",0),this.iframe.setAttribute("allow",["auto
2play; mute"]);let t="https://player.vimeo.com/video/"+this.vid+"?background=1&controls=0";if(this.params.muted&&(t+="&muted=1"),this.params.autoplay&&(t+="&autoplay=1"),this.params.loop&&(t+="&loop=1&autopause=0"),this.params["start-at"]&&(t+="#t="+this.params["start-at"]+"s"),this.iframe.src=t,this.uid&&(this.iframe.id=this.uid),(this.params["load-background"]||this.params.poster)&&(this.params.poster&&(wrapper_styles["background-image"]=this.params.poster),wrapper_styles["background-size"]="cover",wrapper_styles["background-repeat"]="no-repeat",wrapper_styles["background-position"]="center"),this.params["inline-styles"]&&(this.iframe.style.top="50%",this.iframe.style.left="50%",this.iframe.style.transform="translateX(-50%) translateY(-50%)",this.iframe.style.position="absolute",this.iframe.style.opacity=1),this.element.appendChild(this.iframe),this.params["fit-box"])this.iframe.style.width="100%",this.iframe.style.height="100%";else{const e=this,s=function(){const i=e.iframe.parentNode.offsetHeight+e.params.offset,a=e.iframe.parentNode.offsetWidth+e.params.offset,r=e.params.resolution_mod;r>a/i?(e.iframe.style.width=i*r+"px",e.iframe.style.height=i+"px"):(e.iframe.style.width=a+"px",e.iframe.style.height=a/r+"px")};window.hasOwnProperty("ResizeObserver")?new ResizeObserver(()=>{window.requestAnimationFrame(s)}).observe(this.element):window.addEventListener("resize",()=>{window.requestAnimationFrame(s)}),s()}},g.prototype.buildHTML=function(){const t=this.element.parentNode;n(this.element,"youtube-background");const e={height:"100%",width:"100%","z-index":"0",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0};if((this.params["load-background"]||this.params.poster)&&(this.params.poster&&(e["background-image"]=this.params.poster),e["background-size"]="cover",e["background-repeat"]="no-repeat",e["background-position"]="center"),this.params["mute-button"]||(e["pointer-events"]="none"),this.params["load-background"]&&(e["background-size"]="cover",e["background-repeat"]="no-repeat",e["background-position"]="center"),this.params["inline-styles"]){for(let s in e)this.element.style[s]=e[s];["absolute","fixed","relative","sticky"].indexOf(t.style.position)||(t.style.position="relative")}return this.element};function u(t,e,s,i){this.is_mobile=f(),this.element=t,this.link=s.link,this.ext=s.id,this.uid=i,this.player=null,this.buttons={},this.state={},this.state.play=!1,this.state.mute=!1,this.params={};const a={ogv:"video/ogg",ogm:"video/ogg",ogg:"video/ogg",avi:"video/avi",mp4:"video/mp4",webm:"video/webm"},r={pause:!1,"play-button":!1,"mute-button":!1,autoplay:!0,muted:!0,loop:!0,mobile:!0,resolution:"16:9","inline-styles":!0,"fit-box":!1,offset:200,poster:null};this.__init__=function(){!this.link||!this.ext||(this.mime=a[this.ext.toLowerCase()],this.params=b(e,r,this.element,["data-ytbg-","data-vbg-"]),this.params.pause&&(this.params["play-button"]=this.params.pause),this.params.resolution_mod=y(this.params.resolution),this.state.playing=this.params.autoplay,this.state.muted=this.params.muted,this.buildHTML(),this.injectPlayer(),this.params["play-button"]&&this.generateActionButton({name:"play",className:"play-toggle",innerHtml:'<i class="fa"></i>',initialState:!1,stateClassName:"paused",condition_parameter:"autoplay",stateChildClassNames:["fa-pause-circle","fa-play-circle"],actions:["play","pause"]}),this.params["mute-button"]&&this.generateActionButton({name:"mute",className:"mute-toggle",innerHtml:'<i class="fa"></i>',initialState:!0,stateClassName:"muted",condition_parameter:"muted",stateChildClassNames:["fa-volume-up","fa-volume-mute"],actions:["unmute","mute"]}))},this.__init__()}u.prototype.seekTo=function(t){if(this.player.hasOwnProperty("fastSeek")){this.player.fastSeek(t);return}this.player.currentTime=t},u.prototype.injectPlayer=function(){this.player=document.createElement("video"),this.player.muted=this.params.muted,this.player.autoplay=this.params.autoplay,this.player.loop=this.params.loop,this.player.playsinline=!0,this.player.setAttribute("id",this.uid),this.params["inline-styles"]&&(this.player.style.top="50%",this.player.style.left="50%",this.player.style.transform="translateX(-50%) translateY(-50%)",this.player.style.position="absolute",this.player.style.opacity=0,this.player.addEventListener("canplay",s=>{s.target.style.opacity=1}));const t=this,e=document.createElement("source");if(e.setAttribute("src",this.link),e.setAttribute("type",this.mime),this.player.appendChild(e),this.element.appendChild(this.player),this.params["fit-box"])this.player.style.width="100%",this.player.style.height="100%";else{let s=function(){const i=t.player.parentNode.offsetHeight+t.params.offset,a=t.player.parentNode.offsetWidth+t.params.offset,r=t.params.resolution_mod;r>a/i?(t.player.style.width=i*r+"px",t.player.style.height=i+"px"):(t.player.style.width=a+"px",t.player.style.height=a/r+"px")};window.hasOwnProperty("ResizeObserver")?new ResizeObserver(()=>{window.requestAnimationFrame(s)}).observe(this.element):window.addEventListener("resize",()=>{window.requestAnimationFrame(s)}),s()}},u.prototype.buildHTML=function(){const t=this.element.parentNode;n(this.element,"video-background");const e={height:"100%",width:"100%","z-index":"0",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0};if(this.params["mute-button"]||(e["pointer-events"]="none"),(this.params["load-background"]||this.params.poster)&&(this.params.poster&&(e["background-image"]=`url('${this.params.poster}')`),e["background-size"]="cover",e["background-repeat"]="no-repeat",e["background-position"]="center"),this.params["inline-styles"]){for(let s in e)this.element.style[s]=e[s];["absolute","fixed","relative","sticky"].indexOf(t.style.position)||(t.style.position="relative")}if(this.params["play-button"]||this.params["mute-button"]){const s=document.createElement("div");s.className="video-background-controls",s.style.position="absolute",s.style.top="10px",s.style.right="10px",s.style["z-index"]=2,this.controls_element=s,t.appendChild(s)}return this.element},u.prototype.play=function(){if(this.buttons.hasOwnProperty("play")){const t=this.buttons.play;l(t.element,t.button_properties.stateClassName),n(t.element.firstChild,t.button_properties.stateChildClassNames[0]),l(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.play(),this.element.dispatchEvent(new CustomEvent("video-background-play",{bubbles:!0,detail:this})))},u.prototype.pause=function(){if(this.buttons.hasOwnProperty("play")){const t=this.buttons.play;n(t.element,t.button_properties.stateClassName),l(t.element.firstChild,t.button_properties.stateChildClassNames[0]),n(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.pause(),this.element.dispatchEvent(new CustomEvent("video-background-pause",{bubbles:!0,detail:this})))},u.prototype.unmute=function(){if(this.buttons.hasOwnProperty("mute")){const t=this.buttons.mute;l(t.element,t.button_properties.stateClassName),n(t.element.firstChild,t.button_properties.stateChildClassNames[0]),l(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.muted=!1,this.element.dispatchEvent(new CustomEvent("video-background-unmute",{bubbles:!0,detail:this})))},u.prototype.mute=function(){if(this.buttons.hasOwnProperty("mute")){const t=this.buttons.mute;n(t.element,t.button_properties.stateClassName),l(t.element.firstChild,t.button_properties.stateChildClassNames[0]),n(t.element.firstChild,t.button_properties.stateChildClassNames[1])}this.player&&(this.player.muted=!0,this.element.dispatchEvent(new CustomEvent("video-background-mute",{bubbles:!0,detail:this})))},u.prototype.generateActionButton=function(t){const e=document.createElement("button");e.className=t.className,e.innerHTML=t.innerHtml,n(e.firstChild,t.stateChildClassNames[0]),this.params[t.condition_parameter]===t.initialState&&(n(e,t.stateClassName),l(e.firstChild,t.stateChildClassNames[0]),n(e.firstChild,t.stateChildClassNames[1]));const s=this;e.addEventListener("click",function(i){c(this,t.stateClassName)?(s.state[t.name]=!1,s[t.actions[0]]()):(s.state[t.name]=!0,s[t.actions[1]]())}),this.buttons[t.name]={element:e,button_properties:t},this.controls_element.appendChild(e)};function m(t,e){this.elements=t,typeof t=="string"&&(this.elements=document.querySelectorAll(t)),this.index={},this.re={},this.re.YOUTUBE=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i,this.re.VIMEO=/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i,this.re.VIDEO=/\/[^\/]+\.(mp4|ogg|ogv|ogm|webm|avi)\s?$/i,this.__init__=function(){for(let i=0;i<this.elements.length;i++){const a=this.elements[i],r=a.getAttribute("data-youtube")||a.getAttribute("data-vbg"),p=this.getVidID(r);if(!p)continue;const o=this.generateUID(p.id);if(o)switch(p.type){case"YOUTUBE":const d=new h(a,e,p.id,o);this.index[o]=d;break;case"VIMEO":const _=new g(a,e,p.id,o);this.index[o]=_;break;case"VIDEO":const k=new u(a,e,p,o);this.index[o]=k;break}}var s=this;this.initYTPlayers()},this.__init__()}m.prototype.getVidID=function(t){if(t!=null)for(let e in this.re){const s=t.match(this.re[e]);if(s&&s.length)return this.re[e].lastIndex=0,{id:s[1],type:e,regex_pts:s,link:t}}return null},m.prototype.generateUID=function(t){let e=t+"-"+w(0,9999);for(;this.index.hasOwnProperty(e);)e=t+"-"+w(0,9999);return e},m.prototype.pauseVideos=function(){for(let t in this.index)this.index[t].pause()},m.prototype.playVideos=function(){for(let t in this.index)this.index[t].play()},m.prototype.initYTPlayers=function(t){const e=this;window.onYouTubeIframeAPIReady=function(){for(let s in e.index)e.index[s]instanceof h&&e.index[s].initYTPlayer();t&&setTimeout(t,100)},window.hasOwnProperty("YT")&&window.YT.loaded&&window.onYouTubeIframeAPIReady()},typeof jQuery=="function"&&function(t){t.fn.youtube_background=function(e){const s=t(this);return new m(this,e),s}}
2(jQuery),window.VideoBackgrounds=m})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.