PageSourceSearch

https://three0303.com/assets/js/vender/js-player-module-youtube.js

js three0303.com collected 2026-10-09 03:42:14 UTC 24,264 bytes, 2 lines download raw bytes

1!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(window,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";function n(e,t,i=!0){if(!e)return!1;for(let i in t){new RegExp("({{.?"+i+".?}})","g");let n=new RegExp("{{.?("+i+").?}}","g");e.match(n);let a=RegExp.$1;e=e.replace(n,t[a])}i&&(e=e.replace(/({{.*}})/g,""));let n="";return n=e,n}i.r(t),i.d(t,"PLAYER_MODULE_YOUTUBE",(function(){return m}));var a=function(e){try{return e instanceof HTMLElement}catch(e){return!1}},s=function(e){var t=void 0;if(!Array.isArray(e)&&!e.length||function(e){try{return"string"==typeof e}catch(e){return!1}}(e))t=a(e)?Array(e):Array.prototype.slice.call(document.querySelectorAll(e));else{if(!a(e[0]))return!1;t=Array.prototype.slice.call(e)}return t},l=function(e,t){s(e).map((function(e,i){e.classList.add(t)}))},o=function(e,t){s(e).map((function(e,i){e.classList.remove(t)}))},r=function(e,t){s(e).map((function(e,i){e.innerHTML=t}))},u=function(e,t,i){e===window?window.addEventListener(t,i):s(e).map((function(e,n){e.addEventListener(t,i)}))},h='\n<iframe id="{{ player_id }}" type="text/html" width="{{ width }}" height="{{ height }}"\n  src="//www.youtube.com/embed/{{ videoid }}?enablejsapi=1&origin={{ origin }}"\n  frameborder="0">\n</iframe>',y='\n  <div class="display_time">00:00</div>\n  <div class="display_time_now">00:00</div>\n  <div class="display_time_total">00:00</div>\n  <div class="display_time_par">0%</div>\n  <button class="btn_play btn">play</button>\n  <button class="btn_pause btn">pause</button>\n  <button class="btn_stop btn">stop</button>\n  <button class="btn_mute btn">mute</button>\n  <button class="btn_full btn">full screen</button>\n  <div class="seekbar_time"><div class="seekbar_time_bg"></div><span></span></div>\n  <div class="seekbar_vol"><div class="seekbar_vol_bg"></div><span></span></div>\n  <button class="btn_volon btn">volume on</button>\n  <button class="btn_voloff btn">volume off</button>\n  <div class="display_poster"><img src="" alt=""></div>\n  <div class="display_poster_background"></div>\n  <div class="display_name"></div>\n',d="\n#{{ id }} {\n  position: relative;\n}\n#{{ id }} .on {\n  display: none;\n}\n#{{ id }} .off {\n  display: block;\n}\n#{{ id }} .btn_play {\n  width: 120px;\n  display: block;\n  cursor: pointer;\n}\n#{{ id }} .btn_play.active {\n  display: none;\n}\n#{{ id }} .btn_play:hover .on {\n  display: block;\n}\n#{{ id }} .btn_play:hover .off {\n  display: none;\n}\n#{{ id }} .btn_pause {\n  width: 120px;\n  display: none;\n  cursor: pointer;\n}\n#{{ id }} .btn_pause.active {\n  display: block;\n}\n#{{ id }} .btn_pause:hover .on {\n  display: block;\n}\n#{{ id }} .btn_pause:hover .off {\n  display: none;\n}\n#{{ id }} .btn_stop {\n  width: 120px;\n  cursor: pointer;\n}\n#{{ id }} .btn_stop.active {\n  display: block;\n}\n#{{ id }} .btn_stop:hover .on {\n  display: block;\n}\n#{{ id }} .btn_stop:hover .off {\n  display: none;\n}\n#{{ id }} .btn_mute {\n  width: 120px;\n  cursor: pointer;\n}\n#{{ id }} .btn_mute.active .on {\n  display: block;\n}\n#{{ id }} .btn_mute.active .off {\n  display: none;\n}\n#{{ id }} .seekbar_vol {\n  width: 100%;\n  height: 13px;\n  padding: 4px 0;\n  position: relative;\n  cursor: pointer;\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}\n#{{ id }} .seekbar_vol .seekbar_vol_bg {\n  width: 100%;\n  height: 5px;\n  background: #ddd;\n  position: absolute;\n  top: 0;\n  left: 0;\n  margin: 4px 0;\n}\n#{{ id }} .seekbar_vol span {\n  display: block;\n  width: 0%;\n  height: 100%;\n  background: #666;\n  position: relative;\n  transition: all .1s ease 0s;\n}\n#{{ id }} .seekbar_time {\n  width: 100%;\n  height: 13px;\n  padding: 4px 0;\n  position: relative;\n  cursor: pointer;\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n}\n#{{ id }} .seekbar_time .seekbar_time_bg {\n  width: 100%;\n  height: 5px;\n  background: #ddd;\n  position: absolute;\n  top: 0;\n  left: 0;\n  margin: 4px 0;\n}\n#{{ id }} .seekbar_time span {\n  display: block;\n  width: 0%;\n  height: 100%;\n  background: #666;\n  position: relative;\n  transition: all .1s ease 0s;\n}\n#{{ id }} .display_poster img {\n  max-width: 100%;\n}\n",p=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
1return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
2/*! JS PLAYER MODULE YOUTUBE (JavaScript Library) v0.4.6 Copyright yama-dev Licensed MIT */var m=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(this,e),this.PlayerChangeSeekingFlg=!1,this.PlayerChangeLoadFlg=!0,!i.id||!i.videoid)return console.log("Inadequate parameters (id, videoid)"),!1;this.CONFIG={mode:i.mode||"movie",responsive:!0===i.responsive,id:i.id||"pmy",player_id:i.id+"_player"||!1,player_id_wrap:i.id+"_player_wrap"||!1,player_ui_id:i.id+"_ui"||!1,player_style_id:i.id+"_style"||!1,videoid:i.videoid||"",width:i.width||"",height:i.height||"",volume:i.volume||100,ui_clickable:!1!==i.ui_clickable,muted:!0===i.muted,loop:i.loop||!1,playlist:i.playlist||[i.videoid],playerVars:{fs:1,rel:0,wmode:"transparent",enablejsapi:1,html5:1,iv_load_policy:3,disablekb:1,autoplay:0,loop:0,controls:0,modestbranding:1,playsinline:1},ui_default_parts:!1!==i.ui_default_parts,ui_default_css:!1!==i.ui_default_css,stop_outfocus:!0===i.stop_outfocus,poster:i.poster||"//i.ytimg.com/vi/"+i.videoid+"/maxresdefault.jpg",add_style:i.add_style||"",classname_active:"is-active",classname_playing:"is-playing"},this.STATE={playlist:this.CONFIG.playlist,playlist_index:0},i.playerVars&&Object.assign(this.CONFIG.playerVars,i.playerVars),i.on||(i.on={}),this.on={Play:i.on.Play||"",PlayPrep:i.on.PlayPrep||"",Pause:i.on.Pause||"",Stop:i.on.Stop||"",End:i.on.End||"",StopAll:i.on.StopAll||"",Change:i.on.Change||"",PlayerPlay:i.on.PlayerPlay||"",PlayerPause:i.on.PlayerPause||"",PlayerEnded:i.on.PlayerEnded||"",PlayerBuffering:i.on.PlayerBuffering||"",PlayerCued:i.on.PlayerCued||""},this.Player=null,this.$playerElem=s("#"+this.CONFIG.id),this.playerHtml=h,this.playerUiHtml=y,this.playerCss=d,this.playerCssOption="",this.playerHtml=n(this.playerHtml,this.CONFIG),this.playerCss=n(this.playerCss,this.CONFIG),"audio"==this.CONFIG.mode&&(this.CONFIG.width=1,this.CONFIG.height=1,this.playerCssOption+="#"+this.CONFIG.player_id+" { opacity: 0; }"),this.CONFIG.responsive&&(this.playerCssOption+="\n        #"+this.CONFIG.player_id_wrap+" {\n          position: relative;\n          width: 100%;\n          height: 0;\n          padding-bottom: 56.25%;\n          overflow: hidden;\n        }\n        #"+this.CONFIG.player_id_wrap+" iframe {\n          width: 100%;\n          height: 100%;\n          position: absolute;\n          top: 0;\n          left: 0;\n        }\n      "),this.CONFIG.ui_clickable||(this.playerCssOption+="\n        #"+this.CONFIG.player_id_wrap+" {\n          position: relative;\n        }\n        #"+this.CONFIG.player_id_wrap+"::after {\n          content: '';\n          position: absolute;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: 100%;\n        }\n      "),this.CONFIG.add_style&&(this.playerCssOption+=this.CONFIG.add_style),"complete"==document.readyState?this.BuildPlayer():document.addEventListener("DOMContentLoaded",(function(e){t.BuildPlayer()}))}return p(e,[{key:"BuildPlayer",value:function(){var e=document.createElement("div");e.id=this.CONFIG.player_ui_id,e.innerHTML=this.playerUiHtml,this.CONFIG.ui_default_parts&&(s("#"+this.CONFIG.id+" #"+this.CONFIG.player_ui_id).length||this.$playerElem[0].insertBefore(e,this.$playerElem[0].firstElementChild));var t=document.createElement("div"),i=document.createElement("div");t.id=this.CONFIG.player_id,i.id=this.CONFIG.player_id_wrap,s("#"+this.CONFIG.id+" iframe").length?(t.innerHTML=this.playerHtml,i.appendChild(t),this.$playerElem[0].insertBefore(i,this.$playerElem[0].firstElementChild)):(i.appendChild(t),this.$playerElem[0].insertBefore(i,this.$playerElem[0].firstElementChild));var n=document.createElement("style");n.id=this.CONFIG.player_style_id,this.CONFIG.ui_default_css?(n.innerHTML=this.playerCss,n.innerHTML+=this.playerCssOption,s("#"+this.CONFIG.id+" #"+this.CONFIG.player_style_id).length||this.$playerElem[0].appendChild(n)):(n.innerHTML=this.playerCssOption,s("#"+this.CONFIG.id+" #"+this.CONFIG.player_style_id).length||this.$playerElem[0].appendChild(n)),this.CheckYouTubeApiScript()}},{key:"CheckYouTubeApiScript",value:function(){var e=this;if(window.YT)this.CheckYouTubeApiInstance();else{var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i),t.onload=function(){e.CheckYouTubeApiInstance()}}}},{key:"CheckYouTubeApiInstance",value:function(){var e=this,t=0,i=setInterval((function(){t>=100?(clearInterval(i),console.log("ERROR: not movie loaded.")):t++,YT.loaded&&(clearInterval(i),e.YouTubeApiInstance())}),10)}},{key:"YouTubeApiInstance",value:function(){var e=this,t=this;this.Player=new YT.Player(""+this.CONFIG.player_id,{width:this.CONFIG.width,height:this.CONFIG.height,videoId:this.STATE.playlist[this.STATE.playlist_index],playerVars:this.CONFIG.playerVars,events:{onReady:function(e){t.SetPlayer()},onStateChange:function(t){t.data==YT.PlayerState.PLAYING&&(l(e.$playerElem,e.CONFIG.classname_active),e.ClassOn(),e.on.PlayerPlay&&"function"==typeof e.on.PlayerPlay&&e.on.PlayerPlay(e.Player,e.CONFIG)),t.data==YT.PlayerState.ENDED&&(e.Player.stopVideo(),e.ClassOff(),e.on.PlayerEnded&&"function"==typeof e.on.PlayerEnded&&e.on.PlayerEnded(e.Player,e.CONFIG),e.STATE.playlist_index+1==e.STATE.playlist.length?(e.STATE.playlist_index=0,e.CONFIG.loop&&(e.Player.clearVideo(),e.Player.loadVideoById(e.STATE.playlist[e.STATE.playlist_index],0,"large"),e.SetPoster(),e.Player.playVideo())):(e.STATE.playlist_index++,e.Player.clearVideo(),e.Player.loadVideoById(e.STATE.playlist[e.STATE.playlist_index],0,"large"),e.SetPoster(),e.Player.playVideo())),t.data==YT.PlayerState.PAUSED&&(e.ClassOff(),e.on.PlayerPause&&"function"==typeof e.on.PlayerPause&&e.on.PlayerPause(e.Player,e.CONFIG)),t.data==YT.PlayerState.BUFFERING&&(l(e.$playerElem,e.CONFIG.classname_active),e.on.PlayerBuffer
2ing&&"function"==typeof e.on.PlayerBuffering&&e.on.PlayerBuffering(e.Player,e.CONFIG)),t.data==YT.PlayerState.CUED&&(o(e.$playerElem,e.CONFIG.classname_active),e.on.PlayerCued&&"function"==typeof e.on.PlayerCued&&e.on.PlayerCued(e.Player,e.CONFIG)),e.Update()},onError:function(e){console.log(e)}}})}},{key:"SetPlayer",value:function(){this.CONFIG.muted&&this.Player.mute(),this.CONFIG.playerVars.autoplay&&this.Player.playVideo(),this.CacheElement(),this.SetVolume(),this.SetPoster(),this.EventPlay(),this.EventPause(),this.EventStop(),this.EventChangeVideo(),this.EventFullscreen(),this.EventMute(),this.EventVolon(),this.EventVoloff(),this.EventSeekbarVol(),this.EventSeekbarTime(),this.WatchPlayer(),this.AddGlobalObject()}},{key:"WatchPlayer",value:function(){var e=this,t=0;requestAnimationFrame((function i(){if(requestAnimationFrame(i),++t%3!=0)return!1;var n=e.Player.getPlayerState();-1!==n&&2!==n&&5!==n&&(e.Update(),e.$uiSeekbarVolCover.length&&(1==e.Player.isMuted()?e.$uiSeekbarVolCover[0].style.width="0%":0==e.Player.isMuted()&&(e.$uiSeekbarVolCover[0].style.width=e.Player.getVolume()+"%")))}))}},{key:"AddGlobalObject",value:function(){void 0===window.PLAYER_MODULE_YOUTUBE_PLATLIST?(window.PLAYER_MODULE_YOUTUBE_PLATLIST=[],window.PLAYER_MODULE_YOUTUBE_PLATLIST.push({Player:this.Player,id:this.CONFIG.id,player_id:this.CONFIG.player_id})):window.PLAYER_MODULE_YOUTUBE_PLATLIST.push({Player:this.Player,id:this.CONFIG.id,player_id:this.CONFIG.player_id})}},{key:"CacheElement",value:function(){this.$playerElem=s("#"+this.CONFIG.id),this.$playerElemMain=s("#"+this.CONFIG.id+" #"+this.CONFIG.player_id),this.$playerElemMainWrap=s("#"+this.CONFIG.id+" #"+this.CONFIG.player_id_wrap),this.$uiBtnPlay=s("#"+this.CONFIG.id+" .btn_play"),this.$uiBtnStop=s("#"+this.CONFIG.id+" .btn_stop"),this.$uiBtnPause=s("#"+this.CONFIG.id+" .btn_pause"),this.$uiBtnMute=s("#"+this.CONFIG.id+" .btn_mute"),this.$uiBtnVolon=s("#"+this.CONFIG.id+" .btn_volon"),this.$uiBtnVoloff=s("#"+this.CONFIG.id+" .btn_voloff"),this.$uiBtnFull=s("#"+this.CONFIG.id+" .btn_full"),this.$uiDisplayTime=s("#"+this.CONFIG.id+" .display_time"),this.$uiDisplayTimeNow=s("#"+this.CONFIG.id+" .display_time_now"),this.$uiDisplayTimeTotal=s("#"+this.CONFIG.id+" .display_time_total"),this.$uiDisplayTimeDown=s("#"+this.CONFIG.id+" .display_time_down"),this.$uiDisplayTimePar=s("#"+this.CONFIG.id+" .display_time_par"),this.$uiDisplayPoster=s("#"+this.CONFIG.id+" .display_poster"),this.$uiDisplayPosterBg=s("#"+this.CONFIG.id+" .display_poster_background"),this.$uiDisplayName=s("#"+this.CONFIG.id+" .display_name"),this.$uiSeekbarVol=s("#"+this.CONFIG.id+" .seekbar_vol"),this.$uiSeekbarVolBg=s("#"+this.CONFIG.id+" .seekbar_vol .seekbar_vol_bg"),this.$uiSeekbarVolCover=s("#"+this.CONFIG.id+" .seekbar_vol span"),this.$uiSeekbarTime=s("#"+this.CONFIG.id+" .seekbar_time"),this.$uiSeekbarTimeBg=s("#"+this.CONFIG.id+" .seekbar_time .seekbar_time_bg"),this.$uiSeekbarTimeCover=s("#"+this.CONFIG.id+" .seekbar_time span"),this.$uiBtnChange=s("#"+this.CONFIG.id+" .btn_change"),this.$uiBtnChangeDisplayTime=s("#"+this.CONFIG.id+" .display_time"),this.$uiBtnChangeDisplayTimeDown=s("#"+this.CONFIG.id+" .display_time_down"),this.$uiBtnDataId=s("[data-PMY-id]")}},{key:"EventPlay",value:function(){var e=this;this.$uiBtnPlay.length&&u(this.$uiBtnPlay,"click",(function(t){1!=e.Player.getPlayerState()?e.Play():e.Pause()}))}},{key:"EventPause",value:function(){var e=this;this.$uiBtnPause.length&&u(this.$uiBtnPause,"click",(function(t){e.Pause()}))}},{key:"EventStop",value:function(){var e=this;this.$uiBtnStop.length&&u(this.$uiBtnStop,"click",(function(t){e.Stop()})),u(window,"blur",(function(t){e.CONFIG.stop_outfocus&&e.Stop()}))}},{key:"EventMute",value:function(){var e=this;this.$uiBtnMute.length&&u(this.$uiBtnMute,"click",(function(t){e.Mute()}))}},{key:"EventVolon",value:function(){var e=this;this.$uiBtnVolon.length&&u(this.$uiBtnVolon,"click",(function(t){e.Player.setVolume(e.CONFIG.volume),o(e.$uiBtnVolon,e.CONFIG.classname_playing)}))}},{key:"EventVoloff",value:function(){var e=this;this.$uiBtnVoloff.length&&u(this.$uiBtnVoloff,"click",(function(t){e.Player.setVolume(0),l(e.$uiBtnVoloff,e.CONFIG.classname_playing)}))}},{key:"EventSeekbarVol",value:function(){var e=this;if(this.$uiSeekbarVol.length){var t=!1;this.$uiSeekbarVolCover.length&&(1==this.Player.isMuted()?this.$uiSeekbarVolCover[0].style.width="0%":0==this.Player.isMuted()&&(this.$uiSeekbarVolCover[0].style.width=this.Player.getVolume()+"%")),u(this.$uiSeekbarVol,"mousedown",(function(i){t=!0;var n=i.currentTarget.clientWidth,a=i.currentTarget.getBoundingClientRect().left,s=(i.pageX-a)/n*100;e.Player.setVolume(s),e.Player.unMute(),e.CONFIG.volume=s})),u(this.$uiSeekbarVol,"mouseleave",(function(e){t=!1})),u(this.$uiSeekbarVol,"mouseup",(function(e){t=!1})),u(this.$uiSeekbarVol,"mousemove",(function(i){if(!0===t){var n=i.currentTarget.clientWidth,a=i.currentTarget.getBoundingClientRect().left,s=(i.pageX-a)/n*100;e.Player.unMute(),e.Player.setVolume(s),e.CONFIG.volume=s}}))}}},{key:"EventSeekbarTime",value:function(){var e=this;if(this.$uiSeekbarTime.length){var t=0;u(this.$uiSeekbarTime,"mousedown",(function(i){e.PlayerChangeSeekingFlg=!0;var n=i.currentTarget.clientWidth,a=i.currentTarget.getBoundingClientRect().left,s=(i.pageX-a)/n;t=e.Player.getDuration()*s,e.$uiSeekbarTimeCover[0].style.width=100*s+"%"})),u(this.$uiSeekbarTime,"mouseleave",(function(i){e.PlayerChangeSeekingFlg&&(e.Player.seekTo(t,!0),setTimeout((function(){e.Play(),e.PlayerChangeSeekingFlg=!1}),100))})),u(this.$uiSeekbarTime,"mouseup",(function(i){e.PlayerChangeSeekingFlg&&(e.Player.seekTo(t,!0),setTimeout((function(){e.Play(),e.PlayerChangeSeekingFlg=!1}),100))})),u(this.$uiSeekbarTime,"mousemove",(function(i){if(e.PlayerChangeSeekingFlg){var n=i.currentTarget.clientWidth,a=i.currentTarget.getBoundingClientRect().left,s=(i.pageX-a)/n;t=e.Player.getDuration()*s,e.$uiSeekbarTimeCover[0].style.width=100*s+"%",e.Player.seekTo(t,!0)}}))}}},{key:"EventChangeVideo",value:function(){var e=this;this.$uiBtnChange.length&&u(this.$uiBtnChange,"click",(function(t){var i=t.currentTarget.dataset.pmyId;e.Change(i)}))}},{key:"EventFullscreen",value:function(){var e=this;this.$uiBtnFull.length&&u(this.$uiBtnFull,"click",(function(t){e.Fullscreen()}))}},{key:"Fullscreen",value:function(){document.body.requestFullscreen?document.body.requestFullscreen():document.body.msRequestFullscreen?document.body.msRequestFullscreen():document.body.mozRequestFullScreen?document.body.mozRequestFullScreen():document.body.webkitRequestFullscreen&&document.body.webkitRequestFullscreen()}},{key:"ClassOn",value:function(){var e=this;l(this.$playerElem,this.CONFIG.classname_playing),this.$uiBtnPlay.length&&l(this.$uiBtnPlay,this.CONFIG.classname_playing),this.$uiBtnPause.length&&l(this.$uiBtnPause,this.CONFIG.classname_playing),this.$uiBtnDataId.length&&this.$uiBtnDataId.map((function(t,i){e.CONFIG.videoid==t.getAttribute("data-PMY-id")&&l(t,e.CONFIG.classname_playing)}))}},{key:"ClassOff",value:function(){o(this.$playerElem,this.CONFIG.classname_playing),this.$uiBtnPlay.length&&o(this.$uiBtnPlay,this.CONFIG.classname_playing),this.$uiBtnPause.length&&o(this.$uiBtnPause,this.CONFIG.classname_playing),this.$uiBtnDataId.length&&o(this.$uiBtnDataId,this.CONFIG.classname_playing)}},{key:"Update",value:function(){this.PlayerChangeSeekingFlg||(this.PlayerChangeLoadFlg?(this.$ui
2DisplayTime.length&&r(this.$uiDisplayTime,this.GetTime()+"/"+this.GetTimeMax()),this.$uiDisplayTimeNow.length&&r(this.$uiDisplayTimeNow,this.GetTime()),this.$uiDisplayTimeTotal.length&&r(this.$uiDisplayTimeTotal,this.GetTimeMax()),this.$uiDisplayTimeDown.length&&r(this.$uiDisplayTimeDown,this.GetTimeDown()),this.$uiBtnChangeDisplayTime.length&&r(this.$uiBtnChangeDisplayTime,this.GetTime()+"/"+this.GetTimeMax()),this.$uiBtnChangeDisplayTimeDown.length&&r(this.$uiBtnChangeDisplayTimeDown,this.GetTimeDown()),this.$uiDisplayTimePar.length&&r(this.$uiDisplayTimePar,this.GetTimePar()),this.$uiSeekbarTimeCover.length&&(this.$uiSeekbarTimeCover[0].style.width=this.GetTimePar())):(this.$uiDisplayTime.length&&r(this.$uiDisplayTime,"00:00"),this.$uiDisplayTimeNow.length&&r(this.$uiDisplayTimeNow,"00:00"),this.$uiDisplayTimeTotal.length&&r(this.$uiDisplayTimeTotal,"00:00"),this.$uiDisplayTimeDown.length&&r(this.$uiDisplayTimeDown,"00:00"),this.$uiBtnChangeDisplayTime.length&&r(this.$uiBtnChangeDisplayTime,"00:00"),this.$uiBtnChangeDisplayTimeDown.length&&r(this.$uiBtnChangeDisplayTimeDown,"00:00"),this.$uiDisplayTimePar.length&&r(this.$uiDisplayTimePar,"0%"),this.$uiSeekbarTimeCover.length&&(this.$uiSeekbarTimeCover[0].style.width="0%")))}},{key:"Play",value:function(e){this.$uiBtnPlay.length&&(1!=this.Player.getPlayerState()?(this.on.PlayPrep&&"function"==typeof this.on.PlayPrep&&this.on.PlayPrep(this,this.Player),this.Player.playVideo(),this.ClassOn(),!this.on.Play&&e&&(this.on.Play=e),this.on.Play&&"function"==typeof this.on.Play&&this.on.Play(this.Player,this.CONFIG)):(this.Pause(),this.ClassOff()))}},{key:"Stop",value:function(e){this.Player.stopVideo(),this.ClassOff(),!this.on.Stop&&e&&(this.on.Stop=e),this.on.Stop&&"function"==typeof this.on.Stop&&this.on.Stop(this.Player,this.CONFIG)}},{key:"Pause",value:function(e){this.Player.pauseVideo(),this.ClassOff(),!this.on.Pause&&e&&(this.on.Pause=e),this.on.Pause&&"function"==typeof this.on.Pause&&this.on.Pause(this.Player,this.CONFIG)}},{key:"Mute",value:function(){this.Player.isMuted()?(this.CONFIG.muted=!1,this.Player.unMute(),this.Player.setVolume(this.CONFIG.volume),this.$uiSeekbarVolCover.length&&(this.$uiSeekbarVolCover[0].style.width="0%"),o(this.$uiBtnMute,this.CONFIG.classname_playing)):(this.CONFIG.muted=!0,this.Player.mute(),this.Player.setVolume(0),l(this.$uiBtnMute,this.CONFIG.classname_playing))}},{key:"Change",value:function(e,t){var i=this;if(""==e||null==e||null==e)return!1;this.CONFIG.videoid!==e?(this.PlayerChangeLoadFlg=!1,this.CONFIG.videoid=e,this.Player.loadVideoById(e,0),this.ClassOff(),this.Player.mute(),this.Player.clearVideo(),this.SetPoster(),setTimeout((function(){i.ClassOn(),i.CONFIG.playerVars.autoplay&&i.Player.playVideo(),i.CONFIG.muted?i.Player.mute():i.Player.unMute()}),100),setTimeout((function(){i.PlayerChangeLoadFlg=!0,!i.on.Change&&t&&(i.on.Change=t),i.on.Change&&"function"==typeof i.on.Change&&i.on.Change(i.Player,i.CONFIG)}),300)):(this.Play(),!this.on.Change&&t&&(this.on.Change=t),this.on.Change&&"function"==typeof this.on.Change&&this.on.Change(this.Player,this.CONFIG))}},{key:"PauseAll",value:function(e){window.PLAYER_MODULE_YOUTUBE_PLATLIST.map((function(e,t){e.Player.pauseVideo()})),!this.on.PauseAll&&e&&(this.on.PauseAll=e),this.on.PauseAll&&"function"==typeof this.on.PauseAll&&this.on.PauseAll(this.Player,this.CONFIG)}},{key:"StopAll",value:function(e){window.PLAYER_MODULE_YOUTUBE_PLATLIST.map((function(e,t){e.Player.stopVideo()})),!this.on.StopAll&&e&&(this.on.StopAll=e),this.on.StopAll&&"function"==typeof this.on.StopAll&&this.on.StopAll(this.Player,this.CONFIG)}},{key:"GetTime",value:function(){function e(e){return"number"==typeof e&&(e=String(e)),e<10?"0"+e:e>=10?e:void 0}var t=e(Math.floor(this.Player.getCurrentTime()/60)),i=e(Math.floor(this.Player.getCurrentTime()%60));return isFinite(i)&&isFinite(t)?t+":"+i:"00:00"}},{key:"GetTimeDown",value:function(){function e(e){return"number"==typeof e&&(e=String(e)),e<10?"0"+e:e>=10?e:void 0}var t=this.Player.getDuration()-this.Player.getCurrentTime(),i=e(Math.floor(t/60)),n=e(Math.floor(t%60));return isFinite(n)&&isFinite(i)?i+":"+n:"00:00"}},{key:"GetTimeMax",value:function(){function e(e){return"number"==typeof e&&(e=String(e)),e<10?"0"+e:e>=10?e:void 0}return e(Math.floor(this.Player.getDuration()/60))+":"+e(Math.floor(this.Player.getDuration()%60))}},{key:"GetTimeRatio",value:function(){return Math.floor(this.Player.getCurrentTime()/this.Player.getDuration()*1e3)/1e3}},{key:"GetTimePar",value:function(){var e=Math.floor(this.Player.getCurrentTime()/this.Player.getDuration()*1e3)/10;return isFinite(e)?e+"%":"0%"}},{key:"SetVolume",value:function(e){this.CONFIG.volume=e||this.CONFIG.volume,this.Player.setVolume(this.CONFIG.volume)}},{key:"SetPoster",value:function(){0!=this.CONFIG.poster&&(this.CONFIG.poster="//i.ytimg.com/vi/"+this.STATE.playlist[this.STATE.playlist_index]+"/maxresdefault.jpg"),this.$uiDisplayPoster.length&&("audio"==this.CONFIG.mode?r(this.$ui
2DisplayPoster,""):r(this.$uiDisplayPoster,'<img src="'+this.CONFIG.poster+'" alt="">')),this.$uiDisplayPosterBg.length&&"audio"!=this.CONFIG.mode&&(this.$uiDisplayPosterBg[0].style.backgroundImage="url("+this.CONFIG.poster+")")}},{key:"Destroy",value:function(){this.Player.destroy()}}]),e}()}])}));

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.