Skip to content

Instantly share code, notes, and snippets.

@moay
Last active March 23, 2017 10:52
Show Gist options
  • Save moay/e927d44f994e10c44b6b to your computer and use it in GitHub Desktop.
Save moay/e927d44f994e10c44b6b to your computer and use it in GitHub Desktop.
Drop-in replacement for sublime video player based on video.js and magnificpopup
// CONFIG
var flash_fallback = "https://mysite.com/path/to/video-js.swf";
var language = "en";
function initializePlayer(){var css='@charset "utf-8";.vjs-default-skin{color:#ccc}@font-face{font-family:VideoJS;src:url(font/vjs.eot);src:url(font/vjs.eot?#iefix) format(\'embedded-opentype\'),url(font/vjs.woff) format(\'woff\'),url(font/vjs.ttf) format(\'truetype\'),url(font/vjs.svg#icomoon) format(\'svg\');font-weight:400;font-style:normal}.vjs-default-skin .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;background-color:#333;background-color:rgba(51,51,51,.9)}.vjs-default-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-default-skin .vjs-slider-handle{position:absolute;left:0;top:0}.vjs-default-skin .vjs-slider-handle:before{content:"e009";font-family:VideoJS;font-size:1em;line-height:1;text-align:center;text-shadow:0 0 1em #fff;position:absolute;top:0;left:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.vjs-default-skin .vjs-control-bar{display:none;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#07141e;background-color:rgba(7,20,30,.7)}.vjs-default-skin.vjs-has-started .vjs-control-bar{display:block;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-default-skin.vjs-controls-disabled .vjs-control-bar,.vjs-default-skin.vjs-error .vjs-control-bar,.vjs-default-skin.vjs-using-native-controls .vjs-control-bar{display:none}.vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media screen{.vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-default-skin .vjs-control{outline:0;position:relative;float:left;text-align:center;margin:0;padding:0;height:3em;width:4em}.vjs-default-skin .vjs-control:before{font-family:VideoJS;font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-default-skin .vjs-control:focus:before,.vjs-default-skin .vjs-control:hover:before{text-shadow:0 0 1em #fff}.vjs-default-skin .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-default-skin .vjs-play-control{width:5em;cursor:pointer}.vjs-default-skin .vjs-play-control:before{content:"e001"}.vjs-default-skin.vjs-playing .vjs-play-control:before{content:"e002"}.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content{width:4em;left:-2em;list-style:none}.vjs-default-skin .vjs-mute-control,.vjs-default-skin .vjs-volume-menu-button{cursor:pointer;float:right}.vjs-default-skin .vjs-mute-control:before,.vjs-default-skin .vjs-volume-menu-button:before{content:"e006"}.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before{content:"e003"}.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before{content:"e004"}.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before{content:"e005"}.vjs-default-skin .vjs-volume-control{width:5em;float:right}.vjs-default-skin .vjs-volume-bar{width:5em;height:.6em;margin:1.1em auto 0}.vjs-default-skin .vjs-volume-level{position:absolute;top:0;left:0;height:.5em;width:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 #66a8cc}.vjs-default-skin .vjs-volume-bar .vjs-volume-handle{width:.5em;height:.5em;left:4.5em}.vjs-default-skin .vjs-volume-handle:before{font-size:.9em;top:-.2em;left:-.2em;width:1em;height:1em}.vjs-default-skin .vjs-volume-menu-button .vjs-menu{display:block;width:0;height:0;border-top-color:transparent}.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content{height:0;width:0}.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing,.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu{border-top-color:rgba(7,40,50,.5)}.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content,.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{height:2.9em;width:10em}.vjs-default-skin .vjs-progress-control{position:absolute;left:0;right:0;width:auto;font-size:.3em;height:1em;top:-1em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin:hover .vjs-progress-control{font-size:.9em;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-default-skin .vjs-progress-holder{height:100%}.vjs-default-skin .vjs-progress-holder .vjs-load-progress,.vjs-default-skin .vjs-progress-holder .vjs-load-progress div,.vjs-default-skin .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0}.vjs-default-skin .vjs-play-progress{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 #66a8cc}.vjs-default-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.2)}.vjs-default-skin .vjs-load-progress div{background:#787878;background:rgba(255,255,255,.1)}.vjs-default-skin .vjs-seek-handle{width:1.5em;height:100%}.vjs-default-skin .vjs-seek-handle:before{padding-top:.1em}.vjs-default-skin.vjs-live .vjs-progress-control,.vjs-default-skin.vjs-live .vjs-time-controls,.vjs-default-skin.vjs-live .vjs-time-divider{display:none}.vjs-default-skin.vjs-live .vjs-live-display{display:block}.vjs-default-skin .vjs-live-display{display:none;font-size:1em;line-height:3em}.vjs-default-skin .vjs-time-controls{font-size:1em;line-height:3em}.vjs-default-skin .vjs-current-time,.vjs-default-skin .vjs-duration{float:left}.vjs-default-skin .vjs-remaining-time{display:none;float:left}.vjs-time-divider{float:left;line-height:3em}.vjs-default-skin .vjs-fullscreen-control{width:3.8em;cursor:pointer;float:right}.vjs-default-skin .vjs-fullscreen-control:before{content:"e000"}.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before{content:"e00b"}.vjs-default-skin .vjs-big-play-button{left:.5em;top:.5em;font-size:3em;display:block;z-index:2;position:absolute;width:4em;height:2.6em;text-align:center;vertical-align:middle;cursor:pointer;opacity:1;background-color:#07141e;background-color:rgba(7,20,30,.7);border:.1em solid #3b4249;-webkit-border-radius:.8em;-moz-border-radius:.8em;border-radius:.8em;-webkit-box-shadow:0 0 1em rgba(255,255,255,.25);-moz-box-shadow:0 0 1em rgba(255,255,255,.25);box-shadow:0 0 1em rgba(255,255,255,.25);-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-2.1em;top:50%;margin-top:-1.4000000000000001em}.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button,.vjs-default-skin.vjs-has-started .vjs-big-play-button,.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-default-skin .vjs-big-play-button:focus,.vjs-default-skin:hover .vjs-big-play-button{outline:0;border-color:#fff;background-color:#505050;background-color:rgba(50,50,50,.75);-webkit-box-shadow:0 0 3em #fff;-moz-box-shadow:0 0 3em #fff;box-shadow:0 0 3em #fff;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-default-skin .vjs-big-play-button:before{content:"e001";font-family:VideoJS;line-height:2.6em;text-shadow:.05em .05em .1em #000;text-align:center;position:absolute;left:0;width:100%;height:100%}.vjs-error .vjs-big-play-button,.vjs-error-display{display:none}.vjs-error .vjs-error-display{display:block;position:absolute;left:0;top:0;width:100%;height:100%}.vjs-error .vjs-error-display:before{content:\'X\';font-family:Arial;font-size:4em;color:#666;line-height:1;text-shadow:.05em .05em .1em #000;text-align:center;vertical-align:middle;position:absolute;left:0;top:50%;margin-top:-.5em;width:100%}.vjs-error-display div{position:absolute;bottom:1em;right:0;left:0;font-size:1.4em;text-align:center;padding:3px;background:#000;background:rgba(0,0,0,.5)}.vjs-error-display a,.vjs-error-display a:visited{color:#F4A460}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;font-size:4em;line-height:1;width:1em;height:1em;margin-left:-.5em;margin-top:-.5em;opacity:.75}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-error .vjs-loading-spinner{display:none;-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}.vjs-default-skin .vjs-loading-spinner:before{content:"e01e";font-family:VideoJS;position:absolute;top:0;left:0;width:1em;height:1em;text-align:center;text-shadow:0 0 .1em #000}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.vjs-default-skin .vjs-menu-button{float:right;cursor:pointer}.vjs-default-skin .vjs-menu{display:none;position:absolute;bottom:0;left:0;width:0;height:0;margin-bottom:3em;border-left:2em solid transparent;border-right:2em solid transparent;border-top:1.55em solid #000;border-top-color:rgba(7,40,50,.5)}.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;position:absolute;width:10em;bottom:1.5em;max-height:15em;overflow:auto;left:-5em;background-color:#07141e;background-color:rgba(7,20,30,.7);-webkit-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);-moz-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);box-shadow:-.2em -.2em .3em rgba(255,255,255,.2)}.vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing,.vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:block}.vjs-default-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:none}.vjs-default-skin .vjs-menu-button ul li{list-style:none;margin:0;padding:.3em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-default-skin .vjs-menu-button ul li.vjs-selected{background-color:#000}.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover,.vjs-default-skin .vjs-menu-button ul li:focus,.vjs-default-skin .vjs-menu-button ul li:hover{outline:0;color:#111;background-color:#fff;background-color:rgba(255,255,255,.75);-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-default-skin .vjs-subtitles-button:before{content:"e00c"}.vjs-default-skin .vjs-captions-button:before{content:"e008"}.vjs-default-skin .vjs-chapters-button:before{content:"e00c"}.vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content{width:24em;left:-12em}.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js{background-color:#000;position:relative;padding:0;font-size:10px;vertical-align:middle;font-weight:400;font-style:normal;font-family:Arial,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js:-moz-full-screen{position:absolute}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0;width:100%!important;height:100%!important}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0;width:100%}.video-js.vjs-has-started .vjs-poster{display:none}.video-js.vjs-audio.vjs-has-started .vjs-poster{display:block}.video-js.vjs-controls-disabled .vjs-poster,.video-js.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-text-track-display{position:absolute;top:0;left:0;bottom:3em;right:0;pointer-events:none}.vjs-caption-settings{position:relative;top:1em;background-color:#000;opacity:.75;color:#FFF;margin:0 auto;padding:.5em;height:15em;font-family:Arial,Helvetica,sans-serif;font-size:12px;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-controls:after,.vjs-caption-settings .vjs-tracksettings-font:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}.vjs-hidden{display:none!important}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:2em;color:#ccc;background-color:#333;font-size:1.8em;font-family:Arial,sans-serif;text-align:center;width:30em;height:15em;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#F4A460}.vjs-sublime-skin{color:#fff}.vjs-sublime-skin .vjs-control:focus,.vjs-sublime-skin .vjs-poster:focus{outline:0}.vjs-sublime-skin .vjs-big-play-button{line-height:50px;margin:0;opacity:1;position:absolute;top:0;left:0;height:100%;width:100%;z-index:2;transition:background-color .5s ease;-moz-transition:background-color .5s ease;-webkit-transition:background-color .5s ease;background-color:rgba(0,0,0,.2)}.vjs-sublime-skin .vjs-big-play-button:hover{background-color:transparent}.vjs-sublime-skin .vjs-big-play-button:before{border-color:transparent transparent transparent #fff;border-style:solid;border-width:25px 0 25px 50px;content:"";display:block;margin:-25px;opacity:1;position:absolute;top:50%;left:50%;width:50px;cursor:pointer;transition-property:all;transition-duration:.5s}.vjs-sublime-skin .vjs-big-play-button:before:hover{border-width:28px 0 28px 56px;margin:-28px;top:50%;left:50%;width:56px;transition-property:all;transition-duration:.5s}.vjs-sublime-skin.vjs-controls-disabled .vjs-big-play-button,.vjs-sublime-skin.vjs-has-started .vjs-big-play-button,.vjs-sublime-skin.vjs-using-native-controls .vjs-big-play-button{opacity:0;pointer-events:none}.vjs-sublime-skin .vjs-control-bar{height:50px;opacity:0;pointer-events:none;position:absolute;right:0;bottom:0;left:0;z-index:2}.vjs-sublime-skin .vjs-yt-control-bar{top:0}@media(min-width:1000px){.vjs-sublime-skin .vjs-yt-control-bar{bottom:0;top:auto}}@media(min-width:1000px){.vjs-sublime-skin .vjs-control-bar{width:80%;left:10%}}@media(min-width:1200px){.vjs-sublime-skin .vjs-control-bar{width:70%;left:15%}}@media(min-width:1600px){.vjs-sublime-skin .vjs-control-bar{width:60%;left:20%}}.vjs-sublime-skin.vjs-has-started .vjs-control-bar{opacity:1;pointer-events:auto;-webkit-transition:opacity 100ms cubic-bezier(.455,.03,.515,.955);-moz-transition:opacity 100ms cubic-bezier(.455,.03,.515,.955);transition:opacity 100ms cubic-bezier(.455,.03,.515,.955)}.vjs-sublime-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:0;-webkit-transition:opacity 1s cubic-bezier(.455,.03,.515,.955);-moz-transition:opacity 1s cubic-bezier(.455,.03,.515,.955);transition:opacity 1s cubic-bezier(.455,.03,.515,.955)}.vjs-sublime-skin.vjs-controls-disabled .vjs-control-bar,.vjs-sublime-skin.vjs-has-started .vjs-poster,.vjs-sublime-skin.vjs-using-native-controls .vjs-control-bar{display:none}.vjs-sublime-skin .vjs-progress-control{position:absolute;top:0;right:130px;bottom:0;left:50px}.vjs-sublime-skin .vjs-yt-control-bar .vjs-progress-control{right:200px;left:100px}.vjs-sublime-skin.vjs-single-resolution .vjs-progress-control{right:95px}.vjs-sublime-skin .vjs-progress-control .vjs-progress-holder{cursor:pointer;height:20px;margin-top:-10px;position:absolute;top:50%;right:0;left:0}.vjs-sublime-skin .vjs-progress-control .vjs-progress-holder:after{background-color:rgba(255,255,255,.3);border-radius:2px;content:"";display:block;height:4px;margin-top:-2px;position:absolute;top:50%;right:0;left:0}.vjs-sublime-skin .vjs-progress-control .vjs-play-progress{background-color:rgba(255,255,255,.7);border-radius:2px;height:4px;margin-top:-2px;position:absolute;top:50%;right:0;left:0}.vjs-sublime-skin .vjs-play-control{cursor:pointer;margin-top:-8px;position:absolute;top:50%;left:20px;height:16px;width:15px}.vjs-sublime-skin .vjs-play-control:before{border-color:transparent transparent transparent #fff;border-style:solid;border-width:8px 0 8px 15px;content:"";display:block}.vjs-sublime-skin.vjs-playing .vjs-play-control:after,.vjs-sublime-skin.vjs-playing .vjs-play-control:before{background-color:#fff;border:none;content:"";display:block;height:100%;position:absolute;top:0;bottom:0;left:0;width:6px}.vjs-sublime-skin.vjs-playing .vjs-play-control:after{left:auto;right:0}.vjs-sublime-skin .vjs-fullscreen-control{border:3px solid #fff;box-sizing:border-box;cursor:pointer;margin-top:-7px;position:absolute;top:50%;right:20px;height:14px;width:22px}.vjs-sublime-skin.vjs-fullscreen .vjs-fullscreen-control{background:#fff}.vjs-sublime-skin.vjs-fullscreen .vjs-fullscreen-control:after{background:#000;content:"";display:block;position:absolute;bottom:0;left:0;height:5px;width:5px}.vjs-sublime-skin .vjs-volume-control{cursor:pointer;margin-top:-7px;position:absolute;top:50%;right:55px;height:14px;width:22px}.vjs-sublime-skin .vjs-volume-bar{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC);background-size:22px 14px;height:100%;width:100%}.vjs-sublime-skin .vjs-volume-level{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC);background-size:22px 14px;height:100%}.vjs-sublime-skin .vjs-captions-button,.vjs-sublime-skin .vjs-current-time,.vjs-sublime-skin .vjs-duration,.vjs-sublime-skin .vjs-fullscreen-control .vjs-control-text,.vjs-sublime-skin .vjs-hidden,.vjs-sublime-skin .vjs-live-controls,.vjs-sublime-skin .vjs-load-progress,.vjs-sublime-skin .vjs-mute-control,.vjs-sublime-skin .vjs-play-control .vjs-control-content,.vjs-sublime-skin .vjs-play-progress .vjs-control-text,.vjs-sublime-skin .vjs-playback-rate,.vjs-sublime-skin .vjs-remaining-time,.vjs-sublime-skin .vjs-slider-handle,.vjs-sublime-skin .vjs-subtitles-button,.vjs-sublime-skin .vjs-time-divider,.vjs-sublime-skin .vjs-volume-handle{display:none}.video-js{background-color:#000;padding:0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.video-js .vjs-tech{position:absolute;top:0;left:0;height:100%;width:100%}.video-js:-moz-full-screen{position:absolute}.video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0;width:100%!important;height:100%!important}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}body.vjs-full-window{height:100%;margin:0;overflow-y:auto;padding:0}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;height:100%;margin:0;padding:0;position:relative;width:100%}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0;width:100%}.video-js.vjs-using-native-controls .vjs-poster{display:none}.video-js.vjs-fullscreen,.video-js.vjs-responsive .vjs-tech{padding-top:0!important}.vjs-quality-button,.vjs-res-button{float:right;padding-top:50px}.vjs-quality-button .vjs-control-content,.vjs-res-button .vjs-control-content{height:20px}ul li.vjs-menu-title.vjs-quality-menu-title:hover,ul li.vjs-menu-title.vjs-res-menu-title:hover{cursor:default;background-color:transparent;color:#CCC;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.vjs-quality-button .vjs-control-text,.vjs-res-button .vjs-control-text{width:auto;height:20px;clip:auto}.vjs-sublime-skin .vjs-quality-button,.vjs-sublime-skin .vjs-res-button{position:absolute;bottom:50%;font-size:19px;right:88px;margin-bottom:-6px;cursor:pointer}.vjs-sublime-skin .vjs-quality-button{margin-bottom:0}.vjs-menu{display:none}.vjs-quality-button:hover .vjs-menu,.vjs-res-button:hover .vjs-menu{display:block}.vjs-menu-content{position:absolute;list-style:none;background-color:#000;background-color:rgba(0,0,0,.7);padding:10px;border-radius:10px;left:0;bottom:19px;margin-left:-8px}.vjs-menu-content li{font-size:14px}.vjs-menu-content li:first-child{display:none}',head=document.head||document.getElementsByTagName("head")[0],style=document.createElement("style");style.type="text/css",style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css)),head.appendChild(style),window.HELP_IMPROVE_VIDEOJS=!1,!function(){function m(){return function(){}}function n(t){return function(){return this[t]}}function q(t){return function(){return t}}function t(e,i,o){if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),t.Aa[e])return i&&t.log.warn('Player "'+e+'" is already initialised. Options will not be applied.'),o&&t.Aa[e].I(o),t.Aa[e];e=t.m(e)}if(!e||!e.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return e.player||new t.Player(e,i,o)}function v(e,i,o,s){t.wc.forEach(o,function(t){e(i,t,s)})}function F(e,i){var o,s;o=Array.prototype.slice.call(i),s=m(),s=window.console||{log:s,warn:s,error:s},e?o.unshift(e.toUpperCase()+":"):e="log",t.log.history.push(o),o.unshift("VIDEOJS:"),s[e].apply?s[e].apply(s,o):s[e](o.join(" "))}function G(t){t.r("vjs-lock-showing")}function ca(e,i,o,s){return o!==b?((o===j||t.ke(o))&&(o=0),e.c.style[i]=-1!==(""+o).indexOf("%")||-1!==(""+o).indexOf("px")?o:"auto"===o?"":o+"px",s||e.o("resize"),e):e.c?(o=e.c.style[i],s=o.indexOf("px"),-1!==s?parseInt(o.slice(0,s),10):parseInt(e.c["offset"+t.ua(i)],10)):0}function da(e){var i,o,s,n,r,a,u,c;i=0,o=j,e.b("touchstart",function(e){1===e.touches.length&&(o=t.i.copy(e.touches[0]),i=(new Date).getTime(),n=f)}),e.b("touchmove",function(t){1<t.touches.length?n=l:o&&(a=t.touches[0].pageX-o.pageX,u=t.touches[0].pageY-o.pageY,c=Math.sqrt(a*a+u*u),c>10&&(n=l))}),r=function(){n=l},e.b("touchleave",r),e.b("touchcancel",r),e.b("touchend",function(t){o=j,n===f&&(s=(new Date).getTime()-i,200>s&&(t.preventDefault(),this.o("tap")))})}function ea(e,i){var o,s,n,r;return o=e.c,s=t.Yd(o),r=n=o.offsetWidth,o=e.handle,e.options().vertical?(r=s.top,s=i.changedTouches?i.changedTouches[0].pageY:i.pageY,o&&(o=o.m().offsetHeight,r+=o/2,n-=o),Math.max(0,Math.min(1,(r-s+n)/n))):(n=s.left,s=i.changedTouches?i.changedTouches[0].pageX:i.pageX,o&&(o=o.m().offsetWidth,n+=o/2,r-=o),Math.max(0,Math.min(1,(s-n)/r)))}function fa(e,i){e.ba(i),i.b("click",t.bind(e,function(){G(this)}))}function ga(t){t.Ha=f,t.xa.p("vjs-lock-showing"),t.c.setAttribute("aria-pressed",f),t.H&&0<t.H.length&&t.H[0].m().focus()}function H(t){t.Ha=l,G(t.xa),t.c.setAttribute("aria-pressed",l)}function ia(e){var i,o,s={sources:[],tracks:[]};if(i=t.Na(e),o=i["data-setup"],o!==j&&t.i.D(i,t.JSON.parse(o||"{}")),t.i.D(s,i),e.hasChildNodes()){var n,r;for(e=e.childNodes,n=0,r=e.length;r>n;n++)i=e[n],o=i.nodeName.toLowerCase(),"source"===o?s.sources.push(t.Na(i)):"track"===o&&s.tracks.push(t.Na(i))}return s}function ka(e,i,o){e.h&&(e.wa=l,e.h.dispose(),e.h=l),"Html5"!==i&&e.L&&(t.f.Mb(e.L),e.L=j),e.Ua=i,e.wa=l;var s=t.i.D({source:o,parentEl:e.c},e.q[i.toLowerCase()]);o&&(e.Gc=o.type,o.src==e.K.src&&0<e.K.currentTime&&(s.startTime=e.K.currentTime),e.K.src=o.src),e.h=new window.videojs[i](e,s),e.h.I(function(){this.d.Wa()})}function la(t,e){e!==b&&t.Nc!==e&&((t.Nc=e)?(t.p("vjs-has-started"),t.o("firstplay")):t.r("vjs-has-started"))}function N(e,i,o){if(e.h&&!e.h.wa)e.h.I(function(){this[i](o)});else try{e.h[i](o)}catch(s){throw t.log(s),s}}function M(e,i){if(e.h&&e.h.wa)try{return e.h[i]()}catch(o){throw e.h[i]===b?t.log("Video.js: "+i+" method not defined for "+e.Ua+" playback technology.",o):"TypeError"==o.name?(t.log("Video.js: "+i+" unavailable on "+e.Ua+" playback technology element.",o),e.h.wa=l):t.log(o),o}}function ma(t,e){var i=t.selectSource(e);i?i.h===t.Ua?t.src(i.source):ka(t,i.h,i.source):(t.setTimeout(function(){this.error({code:4,message:this.v(this.options().notSupportedMessage)})},0),t.Wa())}function ja(t,e){return e!==b?(t.Pc=!!e,t):t.Pc}function na(t){return t.k().h&&t.k().h.featuresPlaybackRate&&t.k().options().playbackRates&&0<t.k().options().playbackRates.length}function qa(){var t=T[U],e=t.charAt(0).toUpperCase()+t.slice(1);ra["set"+e]=function(e){return this.c.vjs_setProperty(t,e)}}function sa(t){ra[t]=function(){return this.c.vjs_getProperty(t)}}function P(e,i){var o=e.Va.length;""+o in e||Object.defineProperty(e,o,{get:function(){return this.Va[o]}}),i.addEventListener("modechange",t.bind(e,function(){this.o("change")})),e.Va.push(i),e.o({type:"addtrack",T:i})}function Q(t,e){for(var i,o=0,s=t.length;s>o;o++)if(i=t[o],i===e){t.Va.splice(o,1);break}t.o({type:"removetrack",T:e})}function W(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function X(t){var e;return t.Ke?e=t.Ke[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function Y(t,e){var i,o;if(e){for(i=0;i<t.options.length&&(o=t.options[i],!(o.value===e));i++);t.selectedIndex=i}}function $(t,e){var i=t.split("."),o=ya;!(i[0]in o)&&o.execScript&&o.execScript("var "+i[0]);for(var s;i.length&&(s=i.shift());)i.length||e===b?o=o[s]?o[s]:o[s]={}:o[s]=e}var b=void 0,f=!0,j=null,l=!1,s;document.createElement("video"),document.createElement("audio"),document.createElement("track");var videojs=window.videojs=t;t.ic="4.12",t.vd="https:"==document.location.protocol?"https://":"http://",t.VERSION="4.12.7",t.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:2e3,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.If||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},"GENERATED_CDN_VSN"!==t.ic&&(videojs.options.flash.swf=t.vd+"vjs.zencdn.net/"+t.ic+"/video-js.swf"),t.Jd=function(e,i){return t.options.languages[e]=t.options.languages[e]!==b?t.$.ya(t.options.languages[e],i):i,t.options.languages},t.Aa={},"function"==typeof define&&define.amd?define("videojs",[],function(){return videojs}):"object"==typeof exports&&"object"==typeof module&&(module.exports=videojs),t.Ea=t.CoreObject=m(),t.Ea.extend=function(e){var i,o;e=e||{},i=e.init||e.l||this.prototype.init||this.prototype.l||m(),o=function(){i.apply(this,arguments)},o.prototype=t.i.create(this.prototype),o.prototype.constructor=o,o.extend=t.Ea.extend,o.create=t.Ea.create;for(var s in e)e.hasOwnProperty(s)&&(o.prototype[s]=e[s]);return o},t.Ea.create=function(){var e=t.i.create(this.prototype);return this.apply(e,arguments),e},t.b=function(e,i,o){if(t.i.isArray(i))return v(t.b,e,i,o);var s=t.getData(e);s.G||(s.G={}),s.G[i]||(s.G[i]=[]),o.s||(o.s=t.s++),s.G[i].push(o),s.ca||(s.disabled=l,s.ca=function(i){if(!s.disabled){i=t.Pb(i);var o=s.G[i.type];if(o)for(var o=o.slice(0),n=0,r=o.length;r>n&&!i.Rc();n++)o[n].call(e,i)}}),1==s.G[i].length&&(e.addEventListener?e.addEventListener(i,s.ca,l):e.attachEvent&&e.attachEvent("on"+i,s.ca))},t.n=function(e,i,o){if(t.Mc(e)){var s=t.getData(e);if(s.G){if(t.i.isArray(i))return v(t.n,e,i,o);if(i){var n=s.G[i];if(n){if(o){if(o.s)for(s=0;s<n.length;s++)n[s].s===o.s&&n.splice(s--,1)}else s.G[i]=[];t.Ac(e,i)}}else for(n in s.G)i=n,s.G[i]=[],t.Ac(e,i)}}},t.Ac=function(e,i){var o=t.getData(e);0===o.G[i].length&&(delete o.G[i],e.removeEventListener?e.removeEventListener(i,o.ca,l):e.detachEvent&&e.detachEvent("on"+i,o.ca)),t.ib(o.G)&&(delete o.G,delete o.ca,delete o.disabled),t.ib(o)&&t.cd(e)},t.Pb=function(t){function e(){return f}function i(){return l}if(!t||!t.Vb){var o=t||window.event;t={};for(var s in o)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&("returnValue"==s&&o.preventDefault||(t[s]=o[s]));if(t.target||(t.target=t.srcElement||document),t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement,t.preventDefault=function(){o.preventDefault&&o.preventDefault(),t.returnValue=l,t.ie=e,t.defaultPrevented=f},t.ie=i,t.defaultPrevented=l,t.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),t.cancelBubble=f,t.Vb=e},t.Vb=i,t.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),t.Rc=e,t.stopPropagation()},t.Rc=i,t.clientX!=j){s=document.documentElement;var n=document.body;t.pageX=t.clientX+(s&&s.scrollLeft||n&&n.scrollLeft||0)-(s&&s.clientLeft||n&&n.clientLeft||0),t.pageY=t.clientY+(s&&s.scrollTop||n&&n.scrollTop||0)-(s&&s.clientTop||n&&n.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!=j&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t},t.o=function(e,i){var o=t.Mc(e)?t.getData(e):{},s=e.parentNode||e.ownerDocument;return"string"==typeof i&&(i={type:i,target:e}),i=t.Pb(i),o.ca&&o.ca.call(e,i),s&&!i.Vb()&&i.bubbles!==l?t.o(s,i):s||i.defaultPrevented||(o=t.getData(i.target),!i.target[i.type])||(o.disabled=f,"function"==typeof i.target[i.type]&&i.target[i.type](),o.disabled=l),!i.defaultPrevented},t.N=function(e,i,o){function s(){t.n(e,i,s),o.apply(this,arguments)}return t.i.isArray(i)?v(t.N,e,i,o):(s.s=o.s=o.s||t.s++,void t.b(e,i,s))};var w=Object.prototype.hasOwnProperty;t.e=function(e,i){var o;return i=i||{},o=document.createElement(e||"div"),t.i.da(i,function(t,e){-1!==t.indexOf("aria-")||"role"==t?o.setAttribute(t,e):o[t]=e}),o},t.ua=function(t){return t.charAt(0).toUpperCase()+t.slice(1)
},t.i={},t.i.create=Object.create||function(t){function e(){}return e.prototype=t,new e},t.i.da=function(t,e,i){for(var o in t)w.call(t,o)&&e.call(i||this,o,t[o])},t.i.D=function(t,e){if(!e)return t;for(var i in e)w.call(e,i)&&(t[i]=e[i]);return t},t.i.Rd=function(e,i){var o,s,n;e=t.i.copy(e);for(o in i)w.call(i,o)&&(s=e[o],n=i[o],e[o]=t.i.jb(s)&&t.i.jb(n)?t.i.Rd(s,n):i[o]);return e},t.i.copy=function(e){return t.i.D({},e)},t.i.jb=function(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object},t.i.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.ke=function(t){return t!==t},t.bind=function(e,i,o){function s(){return i.apply(e,arguments)}return i.s||(i.s=t.s++),s.s=o?o+"_"+i.s:i.s,s},t.ta={},t.s=1,t.expando="vdata"+(new Date).getTime(),t.getData=function(e){var i=e[t.expando];return i||(i=e[t.expando]=t.s++),t.ta[i]||(t.ta[i]={}),t.ta[i]},t.Mc=function(e){return e=e[t.expando],!(!e||t.ib(t.ta[e]))},t.cd=function(e){var i=e[t.expando];if(i){delete t.ta[i];try{delete e[t.expando]}catch(o){e.removeAttribute?e.removeAttribute(t.expando):e[t.expando]=j}}},t.ib=function(t){for(var e in t)if(t[e]!==j)return l;return f},t.Oa=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},t.p=function(e,i){t.Oa(e,i)||(e.className=""===e.className?i:e.className+" "+i)},t.r=function(e,i){var o,s;if(t.Oa(e,i)){for(o=e.className.split(" "),s=o.length-1;s>=0;s--)o[s]===i&&o.splice(s,1);e.className=o.join(" ")}},t.A=t.e("video");var x=document.createElement("track");x.Wb="captions",x.hd="en",x.label="English",t.A.appendChild(x),t.P=navigator.userAgent,t.Cd=/iPhone/i.test(t.P),t.Bd=/iPad/i.test(t.P),t.Dd=/iPod/i.test(t.P),t.Ad=t.Cd||t.Bd||t.Dd;var aa=t,y,z=t.P.match(/OS (\d+)_/i);y=z&&z[1]?z[1]:b,aa.kf=y,t.zd=/Android/i.test(t.P);var ba=t,B,C=t.P.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),D,E;C?(D=C[1]&&parseFloat(C[1]),E=C[2]&&parseFloat(C[2]),B=D&&E?parseFloat(C[1]+"."+C[2]):D?D:j):B=j,ba.hc=B,t.Ed=t.zd&&/webkit/i.test(t.P)&&2.3>t.hc,t.jc=/Firefox/i.test(t.P),t.lf=/Chrome/i.test(t.P),t.oa=/MSIE\s8\.0/.test(t.P),t.Eb=!!("ontouchstart"in window||window.xd&&document instanceof window.xd),t.wd="backgroundSize"in t.A.style,t.ed=function(e,i){t.i.da(i,function(t,i){i===j||"undefined"==typeof i||i===l?e.removeAttribute(t):e.setAttribute(t,i===f?"":i)})},t.Na=function(t){var e,i,o,s;if(e={},t&&t.attributes&&0<t.attributes.length){i=t.attributes;for(var n=i.length-1;n>=0;n--)o=i[n].name,s=i[n].value,("boolean"==typeof t[o]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+o+","))&&(s=s!==j?f:l),e[o]=s}return e},t.vf=function(t,e){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,"").getPropertyValue(e):t.currentStyle&&(i=t["client"+e.substr(0,1).toUpperCase()+e.substr(1)]+"px"),i},t.Ub=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},t.cb={},t.m=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),document.getElementById(t)},t.Ma=function(t,e){e=e||t;var i=Math.floor(t%60),o=Math.floor(t/60%60),s=Math.floor(t/3600),n=Math.floor(e/60%60),r=Math.floor(e/3600);return(isNaN(t)||1/0===t)&&(s=o=i="-"),s=s>0||r>0?s+":":"",s+(((s||n>=10)&&10>o?"0"+o:o)+":")+(10>i?"0"+i:i)},t.Ld=function(){document.body.focus(),document.onselectstart=q(l)},t.af=function(){document.onselectstart=q(f)},t.trim=function(t){return(t+"").replace(/^\s+|\s+$/g,"")},t.round=function(t,e){return e||(e=0),Math.round(t*Math.pow(10,e))/Math.pow(10,e)},t.Lb=function(t,e){return{length:1,start:function(){return t},end:function(){return e}}},t.Me=function(e){try{var i=window.localStorage||l;i&&(i.volume=e)}catch(o){22==o.code||1014==o.code?t.log("LocalStorage Full (VideoJS)",o):18==o.code?t.log("LocalStorage not allowed (VideoJS)",o):t.log("LocalStorage Error (VideoJS)",o)}},t.$d=function(e){return e.match(/^https?:\/\//)||(e=t.e("div",{innerHTML:'<a href="'+e+'">x</a>'}).firstChild.href),e},t.Ee=function(e){var i,o,s,n;n="protocol hostname port pathname search hash host".split(" "),o=t.e("a",{href:e}),(s=""===o.host&&"file:"!==o.protocol)&&(i=t.e("div"),i.innerHTML='<a href="'+e+'"></a>',o=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(i)),e={};for(var r=0;r<n.length;r++)e[n[r]]=o[n[r]];return"http:"===e.protocol&&(e.host=e.host.replace(/:80$/,"")),"https:"===e.protocol&&(e.host=e.host.replace(/:443$/,"")),s&&document.body.removeChild(i),e},t.log=function(){F(j,arguments)},t.log.history=[],t.log.error=function(){F("error",arguments)},t.log.warn=function(){F("warn",arguments)},t.Yd=function(e){var i,o;return e.getBoundingClientRect&&e.parentNode&&(i=e.getBoundingClientRect()),i?(e=document.documentElement,o=document.body,{left:t.round(i.left+(window.pageXOffset||o.scrollLeft)-(e.clientLeft||o.clientLeft||0)),top:t.round(i.top+(window.pageYOffset||o.scrollTop)-(e.clientTop||o.clientTop||0))}):{left:0,top:0}},t.wc={},t.wc.forEach=function(e,i,o){if(t.i.isArray(e)&&i instanceof Function)for(var s=0,n=e.length;n>s;++s)i.call(o||t,e[s],s,e);return e},t.ff=function(e,i){var o,s,n,r,a,l,u;"string"==typeof e&&(e={uri:e}),videojs.$.ya({method:"GET",timeout:45e3},e),i=i||m(),l=function(){window.clearTimeout(a),i(j,s,s.response||s.responseText)},u=function(t){window.clearTimeout(a),t&&"string"!=typeof t||(t=Error(t)),i(t,s)},o=window.XMLHttpRequest,"undefined"==typeof o&&(o=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(i){}throw Error("This browser does not support XMLHttpRequest.")}),s=new o,s.uri=e.uri,o=t.Ee(e.uri),n=window.location,o.protocol+o.host===n.protocol+n.host||!window.XDomainRequest||"withCredentials"in s?(r="file:"==o.protocol||"file:"==n.protocol,s.onreadystatechange=function(){if(4===s.readyState){if(s.Ye)return u("timeout");200===s.status||r&&0===s.status?l():u()}},e.timeout&&(a=window.setTimeout(function(){4!==s.readyState&&(s.Ye=f,s.abort())},e.timeout))):(s=new window.XDomainRequest,s.onload=l,s.onerror=u,s.onprogress=m(),s.ontimeout=m());try{s.open(e.method||"GET",e.uri,f)}catch(c){return void u(c)}e.withCredentials&&(s.withCredentials=f),e.responseType&&(s.responseType=e.responseType);try{s.send()}catch(p){u(p)}},t.$={},t.$.ya=function(e,i){var o,s,n;e=t.i.copy(e);for(o in i)i.hasOwnProperty(o)&&(s=e[o],n=i[o],e[o]=t.i.jb(s)&&t.i.jb(n)?t.$.ya(s,n):i[o]);return e},t.z=m(),s=t.z.prototype,s.bb={},s.b=function(e,i){var o=this.addEventListener;this.addEventListener=Function.prototype,t.b(this,e,i),this.addEventListener=o},s.addEventListener=t.z.prototype.b,s.n=function(e,i){t.n(this,e,i)},s.removeEventListener=t.z.prototype.n,s.N=function(e,i){t.N(this,e,i)},s.o=function(e){var i=e.type||e;"string"==typeof e&&(e={type:i}),e=t.Pb(e),this.bb[i]&&this["on"+i]&&this["on"+i](e),t.o(this,e)},s.dispatchEvent=t.z.prototype.o,t.a=t.Ea.extend({l:function(e,i,o){if(this.d=e,this.q=t.i.copy(this.q),i=this.options(i),this.Pa=i.id||i.el&&i.el.id,this.Pa||(this.Pa=(e.id&&e.id()||"no_player")+"_component_"+t.s++),this.te=i.name||j,this.c=i.el||this.e(),this.R=[],this.fb={},this.gb={},this.Oc(),this.I(o),i.dd!==l){var s,n;this.k().reportUserActivity&&(s=t.bind(this.k(),this.k().reportUserActivity),this.b("touchstart",function(){s(),this.clearInterval(n),n=this.setInterval(s,250)}),e=function(){s(),this.clearInterval(n)},this.b("touchmove",s),this.b("touchend",e),this.b("touchcancel",e))}}}),s=t.a.prototype,s.dispose=function(){if(this.o({type:"dispose",bubbles:l}),this.R)for(var e=this.R.length-1;e>=0;e--)this.R[e].dispose&&this.R[e].dispose();this.gb=this.fb=this.R=j,this.n(),this.c.parentNode&&this.c.parentNode.removeChild(this.c),t.cd(this.c),this.c=j},s.d=f,s.k=n("d"),s.options=function(e){return e===b?this.q:this.q=t.$.ya(this.q,e)},s.e=function(e,i){return t.e(e,i)},s.v=function(t){var e=this.d.language(),i=this.d.languages();return i&&i[e]&&i[e][t]?i[e][t]:t},s.m=n("c"),s.va=function(){return this.B||this.c},s.id=n("Pa"),s.name=n("te"),s.children=n("R"),s.ae=function(t){return this.fb[t]},s.ea=function(t){return this.gb[t]},s.ba=function(e,i){var o,s;return"string"==typeof e?(s=e,i=i||{},o=i.componentClass||t.ua(s),i.name=s,o=new window.videojs[o](this.d||this,i)):o=e,this.R.push(o),"function"==typeof o.id&&(this.fb[o.id()]=o),(s=s||o.name&&o.name())&&(this.gb[s]=o),"function"==typeof o.el&&o.el()&&this.va().appendChild(o.el()),o},s.removeChild=function(t){if("string"==typeof t&&(t=this.ea(t)),t&&this.R){for(var e=l,i=this.R.length-1;i>=0;i--)if(this.R[i]===t){e=f,this.R.splice(i,1);break}e&&(this.fb[t.id()]=j,this.gb[t.name()]=j,(e=t.m())&&e.parentNode===this.va()&&this.va().removeChild(t.m()))}},s.Oc=function(){var e,i,o,s,n,r;if(e=this,i=e.options(),o=i.children)if(r=function(t,o){i[t]!==b&&(o=i[t]),o!==l&&(e[t]=e.ba(t,o))},t.i.isArray(o))for(var a=0;a<o.length;a++)s=o[a],"string"==typeof s?(n=s,s={}):n=s.name,r(n,s);else t.i.da(o,r)},s.V=q(""),s.b=function(e,i,o){var s,n,r;return"string"==typeof e||t.i.isArray(e)?t.b(this.c,e,t.bind(this,i)):(s=t.bind(this,o),r=this,n=function(){r.n(e,i,s)},n.s=s.s,this.b("dispose",n),o=function(){r.n("dispose",n)},o.s=s.s,e.nodeName?(t.b(e,i,s),t.b(e,"dispose",o)):"function"==typeof e.b&&(e.b(i,s),e.b("dispose",o))),this},s.n=function(e,i,o){return!e||"string"==typeof e||t.i.isArray(e)?t.n(this.c,e,i):(o=t.bind(this,o),this.n("dispose",o),e.nodeName?(t.n(e,i,o),t.n(e,"dispose",o)):(e.n(i,o),e.n("dispose",o))),this},s.N=function(e,i,o){var s,n,r;return"string"==typeof e||t.i.isArray(e)?t.N(this.c,e,t.bind(this,i)):(s=t.bind(this,o),n=this,r=function(){n.n(e,i,r),s.apply(this,arguments)},r.s=s.s,this.b(e,i,r)),this},s.o=function(e){return t.o(this.c,e),this},s.I=function(t){return t&&(this.wa?t.call(this):(this.nb===b&&(this.nb=[]),this.nb.push(t))),this},s.Wa=function(){this.wa=f;var t=this.nb;if(t&&0<t.length){for(var e=0,i=t.length;i>e;e++)t[e].call(this);this.nb=[],this.o("ready")}},s.Oa=function(e){return t.Oa(this.c,e)},s.p=function(e){return t.p(this.c,e),this},s.r=function(e){return t.r(this.c,e),this},s.show=function(){return this.r("vjs-hidden"),this},s.Y=function(){return this.p("vjs-hidden"),this},s.width=function(t,e){return ca(this,"width",t,e)},s.height=function(t,e){return ca(this,"height",t,e)},s.Td=function(t,e){return this.width(t,f).height(e)},s.setTimeout=function(e,i){function o(){this.clearTimeout(s)}e=t.bind(this,e);var s=setTimeout(e,i);return o.s="vjs-timeout-"+s,this.b("dispose",o),s},s.clearTimeout=function(t){function e(){}return clearTimeout(t),e.s="vjs-timeout-"+t,this.n("dispose",e),t},s.setInterval=function(e,i){function o(){this.clearInterval(s)}e=t.bind(this,e);var s=setInterval(e,i);return o.s="vjs-interval-"+s,this.b("dispose",o),s},s.clearInterval=function(t){function e(){}return clearInterval(t),e.s="vjs-interval-"+t,this.n("dispose",e),t},t.w=t.a.extend({l:function(e,i){t.a.call(this,e,i),da(this),this.b("tap",this.u),this.b("click",this.u),this.b("focus",this.lb),this.b("blur",this.kb)}}),s=t.w.prototype,s.e=function(e,i){var o;return i=t.i.D({className:this.V(),role:"button","aria-live":"polite",tabIndex:0},i),o=t.a.prototype.e.call(this,e,i),i.innerHTML||(this.B=t.e("div",{className:"vjs-control-content"}),this.Jb=t.e("span",{className:"vjs-control-text",innerHTML:this.v(this.sa)||"Need Text"}),this.B.appendChild(this.Jb),o.appendChild(this.B)),o},s.V=function(){return"vjs-control "+t.a.prototype.V.call(this)},s.u=m(),s.lb=function(){t.b(document,"keydown",t.bind(this,this.ka))},s.ka=function(t){(32==t.which||13==t.which)&&(t.preventDefault(),this.u())},s.kb=function(){t.n(document,"keydown",t.bind(this,this.ka))},t.U=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.Kd=this.ea(this.q.barName),this.handle=this.ea(this.q.handleName),this.b("mousedown",this.mb),this.b("touchstart",this.mb),this.b("focus",this.lb),this.b("blur",this.kb),this.b("click",this.u),this.b(e,"controlsvisible",this.update),this.b(e,this.Yc,this.update)}}),s=t.U.prototype,s.e=function(e,i){return i=i||{},i.className+=" vjs-slider",i=t.i.D({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),t.a.prototype.e.call(this,e,i)},s.mb=function(e){e.preventDefault(),t.Ld(),this.p("vjs-sliding"),this.b(document,"mousemove",this.la),this.b(document,"mouseup",this.za),this.b(document,"touchmove",this.la),this.b(document,"touchend",this.za),this.la(e)},s.la=m(),s.za=function(){t.af(),this.r("vjs-sliding"),this.n(document,"mousemove",this.la),this.n(document,"mouseup",this.za),this.n(document,"touchmove",this.la),this.n(document,"touchend",this.za),this.update()},s.update=function(){if(this.c){var e,i=this.Sb(),o=this.handle,s=this.Kd;if(("number"!=typeof i||i!==i||0>i||1/0===i)&&(i=0),e=i,o){e=this.c.offsetWidth;var n=o.m().offsetWidth;e=n?n/e:0,i*=1-e,e=i+e/2,o.m().style.left=t.round(100*i,2)+"%"}s&&(s.m().style.width=t.round(100*e,2)+"%")}},s.lb=function(){this.b(document,"keydown",this.ka)},s.ka=function(t){37==t.which||40==t.which?(t.preventDefault(),this.jd()):(38==t.which||39==t.which)&&(t.preventDefault(),this.kd())},s.kb=function(){this.n(document,"keydown",this.ka)},s.u=function(t){t.stopImmediatePropagation(),t.preventDefault()},t.ha=t.a.extend(),t.ha.prototype.defaultValue=0,t.ha.prototype.e=function(e,i){return i=i||{},i.className+=" vjs-slider-handle",i=t.i.D({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"</span>"},i),t.a.prototype.e.call(this,"div",i)},t.pa=t.a.extend(),t.pa.prototype.e=function(){var e=this.options().Cc||"ul";return this.B=t.e(e,{className:"vjs-menu-content"}),e=t.a.prototype.e.call(this,"div",{append:this.B,className:"vjs-menu"}),e.appendChild(this.B),t.b(e,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),e},t.M=t.w.extend({l:function(e,i){t.w.call(this,e,i),this.selected(i.selected)}}),t.M.prototype.e=function(e,i){return t.w.prototype.e.call(this,"li",t.i.D({className:"vjs-menu-item",innerHTML:this.v(this.q.label)},i))},t.M.prototype.u=function(){this.selected(f)},t.M.prototype.selected=function(t){t?(this.p("vjs-selected"),this.c.setAttribute("aria-selected",f)):(this.r("vjs-selected"),this.c.setAttribute("aria-selected",l))},t.O=t.w.extend({l:function(e,i){t.w.call(this,e,i),this.update(),this.b("keydown",this.ka),this.c.setAttribute("aria-haspopup",f),this.c.setAttribute("role","button")}}),s=t.O.prototype,s.update=function(){var t=this.Ja();this.xa&&this.removeChild(this.xa),this.xa=t,this.ba(t),this.H&&0===this.H.length?this.Y():this.H&&1<this.H.length&&this.show()},s.Ha=l,s.Ja=function(){var e=new t.pa(this.d);if(this.options().title&&e.va().appendChild(t.e("li",{className:"vjs-menu-title",innerHTML:t.ua(this.options().title),We:-1})),this.H=this.createItems())for(var i=0;i<this.H.length;i++)fa(e,this.H[i]);return e},s.Ia=m(),s.V=function(){return this.className+" vjs-menu-button "+t.w.prototype.V.call(this)},s.lb=m(),s.kb=m(),s.u=function(){this.N("mouseout",t.bind(this,function(){G(this.xa),this.c.blur()})),this.Ha?H(this):ga(this)},s.ka=function(t){32==t.which||13==t.which?(this.Ha?H(this):ga(this),t.preventDefault()):27==t.which&&(this.Ha&&H(this),t.preventDefault())},t.J=function(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&t.i.D(this,e),this.message||(this.message=t.J.Sd[this.code]||"")},t.J.prototype.code=0,t.J.prototype.message="",t.J.prototype.status=j,t.J.hb="MEDIA_ERR_CUSTOM MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_ERR_ENCRYPTED".split(" "),t.J.Sd={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."};for(var I=0;I<t.J.hb.length;I++)t.J[t.J.hb[I]]=I,t.J.prototype[t.J.hb[I]]=I;var J,ha,K,L;for(J=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],ha=J[0],L=0;L<J.length;L++)if(J[L][1]in document){K=J[L];break}if(K)for(t.cb.Rb={},L=0;L<K.length;L++)t.cb.Rb[ha[L]]=K[L];t.Player=t.a.extend({l:function(e,i,o){this.L=e,e.id=e.id||"vjs_video_"+t.s++,this.Xe=e&&t.Na(e),i=t.i.D(ia(e),i),this.Tc=i.language||t.options.language,this.ne=i.languages||t.options.languages,this.K={},this.Zc=i.poster||"",this.Kb=!!i.controls,e.controls=l,i.dd=l,ja(this,"audio"===this.L.nodeName.toLowerCase()),t.a.call(this,this,i,o),this.p(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),ja(this)&&this.p("vjs-audio"),t.Aa[this.Pa]=this,i.plugins&&t.i.da(i.plugins,function(t,e){this[t](e)},this);var s,n,r,a,u;s=t.bind(this,this.reportUserActivity),this.b("mousedown",function(){s(),this.clearInterval(n),n=this.setInterval(s,250)}),this.b("mousemove",function(t){(t.screenX!=a||t.screenY!=u)&&(a=t.screenX,u=t.screenY,s())}),this.b("mouseup",function(){s(),this.clearInterval(n)}),this.b("keydown",s),this.b("keyup",s),this.setInterval(function(){if(this.Da){this.Da=l,this.userActive(f),this.clearTimeout(r);var t=this.options().inactivityTimeout;t>0&&(r=this.setTimeout(function(){this.Da||this.userActive(l)},t))}},250)}}),s=t.Player.prototype,s.language=function(t){return t===b?this.Tc:(this.Tc=t,this)},s.languages=n("ne"),s.q=t.options,s.dispose=function(){this.o("dispose"),this.n("dispose"),t.Aa[this.Pa]=j,this.L&&this.L.player&&(this.L.player=j),this.c&&this.c.player&&(this.c.player=j),this.h&&this.h.dispose(),t.a.prototype.dispose.call(this)},s.e=function(){var e,i=this.c=t.a.prototype.e.call(this,"div"),o=this.L;return o.removeAttribute("width"),o.removeAttribute("height"),e=t.Na(o),t.i.da(e,function(t){"class"==t?i.className=e[t]:i.setAttribute(t,e[t])}),o.id+="_html5_api",o.className="vjs-tech",o.player=i.player=this,this.p("vjs-paused"),this.width(this.q.width,f),this.height(this.q.height,f),o.ge=o.networkState,o.parentNode&&o.parentNode.insertBefore(i,o),t.Ub(o,i),this.c=i,this.b("loadstart",this.xe),this.b("waiting",this.De),this.b(["canplay","canplaythrough","playing","ended"],this.Ce),this.b("seeking",this.Ae),this.b("seeked",this.ze),this.b("ended",this.ue),this.b("play",this.$b),this.b("firstplay",this.ve),this.b("pause",this.Zb),this.b("progress",this.ye),this.b("durationchange",this.Wc),this.b("fullscreenchange",this.we),i},s.xe=function(){this.r("vjs-ended"),this.error(j),this.paused()?la(this,l):this.o("firstplay")},s.Nc=l,s.$b=function(){this.r("vjs-ended"),this.r("vjs-paused"),this.p("vjs-playing"),la(this,f)},s.De=function(){this.p("vjs-waiting")},s.Ce=function(){this.r("vjs-waiting")},s.Ae=function(){this.p("vjs-seeking")},s.ze=function(){this.r("vjs-seeking")},s.ve=function(){this.q.starttime&&this.currentTime(this.q.starttime),this.p("vjs-has-started")},s.Zb=function(){this.r("vjs-playing"),this.p("vjs-paused")},s.ye=function(){1==this.bufferedPercent()&&this.o("loadedalldata")},s.ue=function(){this.p("vjs-ended"),this.q.loop?(this.currentTime(0),this.play()):this.paused()||this.pause()},s.Wc=function(){var t=M(this,"duration");t&&(0>t&&(t=1/0),this.duration(t),1/0===t?this.p("vjs-live"):this.r("vjs-live"))},s.we=function(){this.isFullscreen()?this.p("vjs-fullscreen"):this.r("vjs-fullscreen")},s.play=function(){return N(this,"play"),this},s.pause=function(){return N(this,"pause"),this},s.paused=function(){return M(this,"paused")===l?l:f},s.currentTime=function(t){return t!==b?(N(this,"setCurrentTime",t),this):this.K.currentTime=M(this,"currentTime")||0},s.duration=function(t){return t!==b?(this.K.duration=parseFloat(t),this):(this.K.duration===b&&this.Wc(),this.K.duration||0)},s.remainingTime=function(){return this.duration()-this.currentTime()},s.buffered=function(){var e=M(this,"buffered");return e&&e.length||(e=t.Lb(0,0)),e},s.bufferedPercent=function(){var t,e,i=this.duration(),o=this.buffered(),s=0;if(!i)return 0;for(var n=0;n<o.length;n++)t=o.start(n),e=o.end(n),e>i&&(e=i),s+=e-t;return s/i},s.volume=function(e){return e!==b?(e=Math.max(0,Math.min(1,parseFloat(e))),this.K.volume=e,N(this,"setVolume",e),t.Me(e),this):(e=parseFloat(M(this,"volume")),isNaN(e)?1:e)},s.muted=function(t){return t!==b?(N(this,"setMuted",t),this):M(this,"muted")||l},s.Ta=function(){return M(this,"supportsFullScreen")||l},s.Qc=l,s.isFullscreen=function(t){return t!==b?(this.Qc=!!t,this):this.Qc},s.isFullScreen=function(e){return t.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")'),this.isFullscreen(e)},s.requestFullscreen=function(){var e=t.cb.Rb;return this.isFullscreen(f),e?(t.b(document,e.fullscreenchange,t.bind(this,function(){this.isFullscreen(document[e.fullscreenElement]),this.isFullscreen()===l&&t.n(document,e.fullscreenchange,arguments.callee),this.o("fullscreenchange")})),this.c[e.requestFullscreen]()):this.h.Ta()?N(this,"enterFullScreen"):(this.Jc(),this.o("fullscreenchange")),this},s.requestFullScreen=function(){return t.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")'),this.requestFullscreen()},s.exitFullscreen=function(){var e=t.cb.Rb;return this.isFullscreen(l),e?document[e.exitFullscreen]():this.h.Ta()?N(this,"exitFullScreen"):(this.Nb(),this.o("fullscreenchange")),this},s.cancelFullScreen=function(){return t.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()"),this.exitFullscreen()},s.Jc=function(){this.je=f,this.Ud=document.documentElement.style.overflow,t.b(document,"keydown",t.bind(this,this.Kc)),document.documentElement.style.overflow="hidden",t.p(document.body,"vjs-full-window"),this.o("enterFullWindow")},s.Kc=function(t){27===t.keyCode&&(this.isFullscreen()===f?this.exitFullscreen():this.Nb())},s.Nb=function(){this.je=l,t.n(document,"keydown",this.Kc),document.documentElement.style.overflow=this.Ud,t.r(document.body,"vjs-full-window"),this.o("exitFullWindow")},s.selectSource=function(e){for(var i=0,o=this.q.techOrder;i<o.length;i++){var s=t.ua(o[i]),n=window.videojs[s];if(n){if(n.isSupported())for(var r=0,a=e;r<a.length;r++){var u=a[r];if(n.canPlaySource(u))return{source:u,h:s}}}else t.log.error('The "'+s+'" tech is undefined. Skipped browser support check for that tech.')}return l},s.src=function(e){return e===b?M(this,"src"):(t.i.isArray(e)?ma(this,e):"string"==typeof e?this.src({src:e}):e instanceof Object&&(e.type&&!window.videojs[this.Ua].canPlaySource(e)?ma(this,[e]):(this.K.src=e.src,this.Gc=e.type||"",this.I(function(){window.videojs[this.Ua].prototype.hasOwnProperty("setSource")?N(this,"setSource",e):N(this,"src",e.src),"auto"==this.q.preload&&this.load(),this.q.autoplay&&this.play()}))),this)},s.load=function(){return N(this,"load"),this},s.currentSrc=function(){return M(this,"currentSrc")||this.K.src||""},s.Qd=function(){return this.Gc||""},s.Qa=function(t){return t!==b?(N(this,"setPreload",t),this.q.preload=t,this):M(this,"preload")},s.autoplay=function(t){return t!==b?(N(this,"setAutoplay",t),this.q.autoplay=t,this):M(this,"autoplay")},s.loop=function(t){return t!==b?(N(this,"setLoop",t),this.q.loop=t,this):M(this,"loop")},s.poster=function(t){return t===b?this.Zc:(t||(t=""),this.Zc=t,N(this,"setPoster",t),this.o("posterchange"),this)},s.controls=function(t){return t!==b?(t=!!t,this.Kb!==t&&((this.Kb=t)?(this.r("vjs-controls-disabled"),this.p("vjs-controls-enabled"),this.o("controlsenabled")):(this.r("vjs-controls-enabled"),this.p("vjs-controls-disabled"),this.o("controlsdisabled"))),this):this.Kb},t.Player.prototype.ec,s=t.Player.prototype,s.usingNativeControls=function(t){return t!==b?(t=!!t,this.ec!==t&&((this.ec=t)?(this.p("vjs-using-native-controls"),this.o("usingnativecontrols")):(this.r("vjs-using-native-controls"),this.o("usingcustomcontrols"))),this):this.ec},s.ja=j,s.error=function(e){return e===b?this.ja:e===j?(this.ja=e,this.r("vjs-error"),this):(this.ja=e instanceof t.J?e:new t.J(e),this.o("error"),this.p("vjs-error"),t.log.error("(CODE:"+this.ja.code+" "+t.J.hb[this.ja.code]+")",this.ja.message,this.ja),this)},s.ended=function(){return M(this,"ended")},s.seeking=function(){return M(this,"seeking")},s.Da=f,s.reportUserActivity=function(){this.Da=f},s.dc=f,s.userActive=function(t){return t!==b?(t=!!t,t!==this.dc&&((this.dc=t)?(this.Da=f,this.r("vjs-user-inactive"),this.p("vjs-user-active"),this.o("useractive")):(this.Da=l,this.h&&this.h.N("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.r("vjs-user-active"),this.p("vjs-user-inactive"),this.o("userinactive"))),this):this.dc},s.playbackRate=function(t){return t!==b?(N(this,"setPlaybackRate",t),this):this.h&&this.h.featuresPlaybackRate?M(this,"playbackRate"):1},s.Pc=l,s.networkState=function(){return M(this,"networkState")},s.readyState=function(){return M(this,"readyState")},s.textTracks=function(){return this.h&&this.h.textTracks()},s.Z=function(){return this.h&&this.h.remoteTextTracks()},s.addTextTrack=function(t,e,i){return this.h&&this.h.addTextTrack(t,e,i)},s.ia=function(t){return this.h&&this.h.addRemoteTextTrack(t)},s.Ba=function(t){this.h&&this.h.removeRemoteTextTrack(t)},t.ub=t.a.extend(),t.ub.prototype.q={wf:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},liveDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{},subtitlesButton:{},captionsButton:{},chaptersButton:{}}},t.ub.prototype.e=function(){return t.e("div",{className:"vjs-control-bar"})},t.kc=t.a.extend({l:function(e,i){t.a.call(this,e,i)}}),t.kc.prototype.e=function(){var e=t.a.prototype.e.call(this,"div",{className:"vjs-live-controls vjs-control"});return this.B=t.e("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.v("Stream Type")+"</span>"+this.v("LIVE"),"aria-live":"off"}),e.appendChild(this.B),e},t.nc=t.w.extend({l:function(e,i){t.w.call(this,e,i),this.b(e,"play",this.$b),this.b(e,"pause",this.Zb)}}),s=t.nc.prototype,s.sa="Play",s.V=function(){return"vjs-play-control "+t.w.prototype.V.call(this)},s.u=function(){this.d.paused()?this.d.play():this.d.pause()},s.$b=function(){this.r("vjs-paused"),this.p("vjs-playing"),this.c.children[0].children[0].innerHTML=this.v("Pause")},s.Zb=function(){this.r("vjs-playing"),this.p("vjs-paused"),this.c.children[0].children[0].innerHTML=this.v("Play")},t.vb=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.b(e,"timeupdate",this.ga)}}),t.vb.prototype.e=function(){var e=t.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.B=t.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00',"aria-live":"off"}),e.appendChild(this.B),e},t.vb.prototype.ga=function(){var e=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.B.innerHTML='<span class="vjs-control-text">'+this.v("Current Time")+"</span> "+t.Ma(e,this.d.duration())},t.wb=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.b(e,"timeupdate",this.ga),this.b(e,"loadedmetadata",this.ga)}}),t.wb.prototype.e=function(){var e=t.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.B=t.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.v("Duration Time")+"</span> 0:00","aria-live":"off"}),e.appendChild(this.B),e},t.wb.prototype.ga=function(){var e=this.d.duration();e&&(this.B.innerHTML='<span class="vjs-control-text">'+this.v("Duration Time")+"</span> "+t.Ma(e))},t.tc=t.a.extend({l:function(e,i){t.a.call(this,e,i)}}),t.tc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t.Db=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.b(e,"timeupdate",this.ga)}}),t.Db.prototype.e=function(){var e=t.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.B=t.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.v("Remaining Time")+"</span> -0:00","aria-live":"off"}),e.appendChild(this.B),e},t.Db.prototype.ga=function(){this.d.duration()&&(this.B.innerHTML='<span class="vjs-control-text">'+this.v("Remaining Time")+"</span> -"+t.Ma(this.d.remainingTime()))},t.Za=t.w.extend({l:function(e,i){t.w.call(this,e,i)}}),t.Za.prototype.sa="Fullscreen",t.Za.prototype.V=function(){return"vjs-fullscreen-control "+t.w.prototype.V.call(this)},t.Za.prototype.u=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.Jb.innerHTML=this.v("Fullscreen")):(this.d.requestFullscreen(),this.Jb.innerHTML=this.v("Non-Fullscreen"))},t.Cb=t.a.extend({l:function(e,i){t.a.call(this,e,i)}}),t.Cb.prototype.q={children:{seekBar:{}}},t.Cb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.qc=t.U.extend({l:function(e,i){t.U.call(this,e,i),this.b(e,"timeupdate",this.Ca),e.I(t.bind(this,this.Ca))}}),s=t.qc.prototype,s.q={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},s.Yc="timeupdate",s.e=function(){return t.U.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},s.Ca=function(){var e=this.d.ob?this.d.K.currentTime:this.d.currentTime();this.c.setAttribute("aria-valuenow",t.round(100*this.Sb(),2)),this.c.setAttribute("aria-valuetext",t.Ma(e,this.d.duration()))},s.Sb=function(){return this.d.currentTime()/this.d.duration()},s.mb=function(e){t.U.prototype.mb.call(this,e),this.d.ob=f,this.d.p("vjs-scrubbing"),this.df=!this.d.paused(),this.d.pause()},s.la=function(t){t=ea(this,t)*this.d.duration(),t==this.d.duration()&&(t-=.1),this.d.currentTime(t)},s.za=function(e){t.U.prototype.za.call(this,e),this.d.ob=l,this.d.r("vjs-scrubbing"),this.df&&this.d.play()},s.kd=function(){this.d.currentTime(this.d.currentTime()+5)},s.jd=function(){this.d.currentTime(this.d.currentTime()-5)},t.zb=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.b(e,"progress",this.update)}}),t.zb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.v("Loaded")+"</span>: 0%</span>"})},t.zb.prototype.update=function(){var e,i,o,s,n=this.d.buffered();e=this.d.duration();var r,a=this.d;for(r=a.buffered(),a=a.duration(),r=r.end(r.length-1),r>a&&(r=a),a=this.c.children,this.c.style.width=100*(r/e||0)+"%",e=0;e<n.length;e++)i=n.start(e),o=n.end(e),(s=a[e])||(s=this.c.appendChild(t.e())),s.style.left=100*(i/r||0)+"%",s.style.width=100*((o-i)/r||0)+"%";for(e=a.length;e>n.length;e--)this.c.removeChild(a[e-1])},t.mc=t.a.extend({l:function(e,i){t.a.call(this,e,i)}}),t.mc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.v("Progress")+"</span>: 0%</span>"})},t.$a=t.ha.extend({l:function(e,i){t.ha.call(this,e,i),this.b(e,"timeupdate",this.ga)}}),t.$a.prototype.defaultValue="00:00",t.$a.prototype.e=function(){return t.ha.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})},t.$a.prototype.ga=function(){var e=this.d.ob?this.d.K.currentTime:this.d.currentTime();
this.c.innerHTML='<span class="vjs-control-text">'+t.Ma(e,this.d.duration())+"</span>"},t.Gb=t.a.extend({l:function(e,i){t.a.call(this,e,i),e.h&&e.h.featuresVolumeControl===l&&this.p("vjs-hidden"),this.b(e,"loadstart",function(){e.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}}),t.Gb.prototype.q={children:{volumeBar:{}}},t.Gb.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})},t.Fb=t.U.extend({l:function(e,i){t.U.call(this,e,i),this.b(e,"volumechange",this.Ca),e.I(t.bind(this,this.Ca))}}),s=t.Fb.prototype,s.Ca=function(){this.c.setAttribute("aria-valuenow",t.round(100*this.d.volume(),2)),this.c.setAttribute("aria-valuetext",t.round(100*this.d.volume(),2)+"%")},s.q={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},s.Yc="volumechange",s.e=function(){return t.U.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},s.la=function(t){this.d.muted()&&this.d.muted(l),this.d.volume(ea(this,t))},s.Sb=function(){return this.d.muted()?0:this.d.volume()},s.kd=function(){this.d.volume(this.d.volume()+.1)},s.jd=function(){this.d.volume(this.d.volume()-.1)},t.uc=t.a.extend({l:function(e,i){t.a.call(this,e,i)}}),t.uc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t.Hb=t.ha.extend(),t.Hb.prototype.defaultValue="00:00",t.Hb.prototype.e=function(){return t.ha.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},t.qa=t.w.extend({l:function(e,i){t.w.call(this,e,i),this.b(e,"volumechange",this.update),e.h&&e.h.featuresVolumeControl===l&&this.p("vjs-hidden"),this.b(e,"loadstart",function(){e.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")})}}),t.qa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.v("Mute")+"</span></div>"})},t.qa.prototype.u=function(){this.d.muted(this.d.muted()?l:f)},t.qa.prototype.update=function(){var e=this.d.volume(),i=3;for(0===e||this.d.muted()?i=0:.33>e?i=1:.67>e&&(i=2),this.d.muted()?this.c.children[0].children[0].innerHTML!=this.v("Unmute")&&(this.c.children[0].children[0].innerHTML=this.v("Unmute")):this.c.children[0].children[0].innerHTML!=this.v("Mute")&&(this.c.children[0].children[0].innerHTML=this.v("Mute")),e=0;4>e;e++)t.r(this.c,"vjs-vol-"+e);t.p(this.c,"vjs-vol-"+i)},t.Fa=t.O.extend({l:function(e,i){t.O.call(this,e,i),this.b(e,"volumechange",this.ef),e.h&&e.h.featuresVolumeControl===l&&this.p("vjs-hidden"),this.b(e,"loadstart",function(){e.h.featuresVolumeControl===l?this.p("vjs-hidden"):this.r("vjs-hidden")}),this.p("vjs-menu-button")}}),t.Fa.prototype.Ja=function(){var e=new t.pa(this.d,{Cc:"div"}),i=new t.Fb(this.d,this.q.volumeBar);return i.b("focus",function(){e.p("vjs-lock-showing")}),i.b("blur",function(){G(e)}),e.ba(i),e},t.Fa.prototype.u=function(){t.qa.prototype.u.call(this),t.O.prototype.u.call(this)},t.Fa.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.v("Mute")+"</span></div>"})},t.Fa.prototype.ef=t.qa.prototype.update,t.oc=t.O.extend({l:function(e,i){t.O.call(this,e,i),this.sd(),this.rd(),this.b(e,"loadstart",this.sd),this.b(e,"ratechange",this.rd)}}),s=t.oc.prototype,s.sa="Playback Rate",s.className="vjs-playback-rate",s.e=function(){var e=t.O.prototype.e.call(this);return this.Sc=t.e("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.Sc),e},s.Ja=function(){var e=new t.pa(this.k()),i=this.k().options().playbackRates;if(i)for(var o=i.length-1;o>=0;o--)e.ba(new t.Bb(this.k(),{rate:i[o]+"x"}));return e},s.Ca=function(){this.m().setAttribute("aria-valuenow",this.k().playbackRate())},s.u=function(){for(var t=this.k().playbackRate(),e=this.k().options().playbackRates,i=e[0],o=0;o<e.length;o++)if(e[o]>t){i=e[o];break}this.k().playbackRate(i)},s.sd=function(){na(this)?this.r("vjs-hidden"):this.p("vjs-hidden")},s.rd=function(){na(this)&&(this.Sc.innerHTML=this.k().playbackRate()+"x")},t.Bb=t.M.extend({Cc:"button",l:function(e,i){var o=this.label=i.rate,s=this.$c=parseFloat(o,10);i.label=o,i.selected=1===s,t.M.call(this,e,i),this.b(e,"ratechange",this.update)}}),t.Bb.prototype.u=function(){t.M.prototype.u.call(this),this.k().playbackRate(this.$c)},t.Bb.prototype.update=function(){this.selected(this.k().playbackRate()==this.$c)},t.pc=t.w.extend({l:function(e,i){t.w.call(this,e,i),this.update(),e.b("posterchange",t.bind(this,this.update))}}),s=t.pc.prototype,s.dispose=function(){this.k().n("posterchange",this.update),t.w.prototype.dispose.call(this)},s.e=function(){var e=t.e("div",{className:"vjs-poster",tabIndex:-1});return t.wd||(this.Ob=t.e("img"),e.appendChild(this.Ob)),e},s.update=function(){var t=this.k().poster();this.ma(t),t?this.show():this.Y()},s.ma=function(t){var e;this.Ob?this.Ob.src=t:(e="",t&&(e='url("'+t+'")'),this.c.style.backgroundImage=e)},s.u=function(){this.d.play()},t.lc=t.a.extend({l:function(e,i){t.a.call(this,e,i)}}),t.lc.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},t.sb=t.w.extend(),t.sb.prototype.e=function(){return t.w.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"></span>',"aria-label":"play video"})},t.sb.prototype.u=function(){this.d.play()},t.xb=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.update(),this.b(e,"error",this.update)}}),t.xb.prototype.e=function(){var e=t.a.prototype.e.call(this,"div",{className:"vjs-error-display"});return this.B=t.e("div"),e.appendChild(this.B),e},t.xb.prototype.update=function(){this.k().error()&&(this.B.innerHTML=this.v(this.k().error().message))};var O;t.j=t.a.extend({l:function(e,i,o){i=i||{},i.dd=l,t.a.call(this,e,i,o),this.featuresProgressEvents||this.re(),this.featuresTimeupdateEvents||this.se(),this.fe(),this.featuresNativeTextTracks||this.Vd(),this.he()}}),s=t.j.prototype,s.fe=function(){var t,e;t=this.k(),e=function(){t.controls()&&!t.usingNativeControls()&&this.Id()},this.I(e),this.b(t,"controlsenabled",e),this.b(t,"controlsdisabled",this.He),this.I(function(){this.networkState&&0<this.networkState()&&this.k().o("loadstart")})},s.Id=function(){var t;this.b("mousedown",this.u),this.b("touchstart",function(){t=this.d.userActive()}),this.b("touchmove",function(){t&&this.k().reportUserActivity()}),this.b("touchend",function(t){t.preventDefault()}),da(this),this.b("tap",this.Be)},s.He=function(){this.n("tap"),this.n("touchstart"),this.n("touchmove"),this.n("touchleave"),this.n("touchcancel"),this.n("touchend"),this.n("click"),this.n("mousedown")},s.u=function(t){0===t.button&&this.k().controls()&&(this.k().paused()?this.k().play():this.k().pause())},s.Be=function(){this.k().userActive(!this.k().userActive())},s.re=function(){this.Uc=f,this.$e()},s.qe=function(){this.Uc=l,this.ld()},s.$e=function(){this.Ge=this.setInterval(function(){var t=this.k().bufferedPercent();this.Md!=t&&this.k().o("progress"),this.Md=t,1===t&&this.ld()},500)},s.ld=function(){this.clearInterval(this.Ge)},s.se=function(){var t=this.d;this.Yb=f,this.b(t,"play",this.pd),this.b(t,"pause",this.rb),this.N("timeupdate",function(){this.featuresTimeupdateEvents=f,this.Vc()})},s.Vc=function(){var t=this.d;this.Yb=l,this.rb(),this.n(t,"play",this.pd),this.n(t,"pause",this.rb)},s.pd=function(){this.Fc&&this.rb(),this.Fc=this.setInterval(function(){this.k().o("timeupdate")},250)},s.rb=function(){this.clearInterval(this.Fc),this.k().o("timeupdate")},s.dispose=function(){this.Uc&&this.qe(),this.Yb&&this.Vc(),t.a.prototype.dispose.call(this)},s.bc=function(){this.Yb&&this.k().o("timeupdate")},s.he=function(){function e(){var t=o.ea("textTrackDisplay");t&&t.C()}var i,o=this.d;(i=this.textTracks())&&(i.addEventListener("removetrack",e),i.addEventListener("addtrack",e),this.b("dispose",t.bind(this,function(){i.removeEventListener("removetrack",e),i.removeEventListener("addtrack",e)})))},s.Vd=function(){var e,i,o,s=this.d;window.WebVTT||(o=document.createElement("script"),o.src=s.options()["vtt.js"]||"../node_modules/vtt.js/dist/vtt.js",s.m().appendChild(o),window.WebVTT=f),(i=this.textTracks())&&(e=function(){var e,i,o;for(o=s.ea("textTrackDisplay"),o.C(),e=0;e<this.length;e++)i=this[e],i.removeEventListener("cuechange",t.bind(o,o.C)),"showing"===i.mode&&i.addEventListener("cuechange",t.bind(o,o.C))},i.addEventListener("change",e),this.b("dispose",t.bind(this,function(){i.removeEventListener("change",e)})))},s.textTracks=function(){return this.d.od=this.d.od||new t.F,this.d.od},s.Z=function(){return this.d.ad=this.d.ad||new t.F,this.d.ad},O=function(e,i,o,s,n){var r=e.textTracks();return n=n||{},n.kind=i,o&&(n.label=o),s&&(n.language=s),n.player=e.d,e=new t.t(n),P(r,e),e},t.j.prototype.addTextTrack=function(t,e,i){if(!t)throw Error("TextTrack kind is required but was not provided");return O(this,t,e,i)},t.j.prototype.ia=function(t){return t=O(this,t.kind,t.label,t.language,t),P(this.Z(),t),{T:t}},t.j.prototype.Ba=function(t){Q(this.textTracks(),t),Q(this.Z(),t)},t.j.prototype.fd=m(),t.j.prototype.featuresVolumeControl=f,t.j.prototype.featuresFullscreenResize=l,t.j.prototype.featuresPlaybackRate=l,t.j.prototype.featuresProgressEvents=l,t.j.prototype.featuresTimeupdateEvents=l,t.j.prototype.featuresNativeTextTracks=l,t.j.gc=function(e){e.Ra=function(t,i){var o=e.gd;o||(o=e.gd=[]),i===b&&(i=o.length),o.splice(i,0,t)},e.pb=function(t){for(var i,o=e.gd||[],s=0;s<o.length;s++)if(i=o[s].eb(t))return o[s];return j},e.zc=function(t){var i=e.pb(t);return i?i.eb(t):""},e.prototype.Sa=function(i){var o=e.pb(i);return o||(e.S?o=e.S:t.log.error("No source hander found for the current source.")),this.Ka(),this.n("dispose",this.Ka),this.Ec=i,this.cc=o.Tb(i,this),this.b("dispose",this.Ka),this},e.prototype.Ka=function(){this.cc&&this.cc.dispose&&this.cc.dispose()}},t.media={},t.f=t.j.extend({l:function(e,i,o){var s,n,r;for((i.nativeCaptions===l||i.nativeTextTracks===l)&&(this.featuresNativeTextTracks=l),t.j.call(this,e,i,o),o=t.f.yb.length-1;o>=0;o--)this.b(t.f.yb[o],this.Wd);if((i=i.source)&&(this.c.currentSrc!==i.src||e.L&&3===e.L.ge)&&this.Sa(i),this.c.hasChildNodes()){for(o=this.c.childNodes,s=o.length,i=[];s--;)n=o[s],r=n.nodeName.toLowerCase(),"track"===r&&(this.featuresNativeTextTracks?P(this.Z(),n.track):i.push(n));for(o=0;o<i.length;o++)this.c.removeChild(i[o])}if(this.featuresNativeTextTracks&&this.b("loadstart",t.bind(this,this.ee)),t.Eb&&e.options().nativeControlsForTouch===f){var a,u,c,p;a=this,u=this.k(),i=u.controls(),a.c.controls=!!i,c=function(){a.c.controls=f},p=function(){a.c.controls=l},u.b("controlsenabled",c),u.b("controlsdisabled",p),i=function(){u.n("controlsenabled",c),u.n("controlsdisabled",p)},a.b("dispose",i),u.b("usingcustomcontrols",i),u.usingNativeControls(f)}e.I(function(){this.src()&&this.L&&this.q.autoplay&&this.paused()&&(delete this.L.poster,this.play())}),this.Wa()}}),s=t.f.prototype,s.dispose=function(){t.f.Mb(this.c),t.j.prototype.dispose.call(this)},s.e=function(){var e,i,o,s=this.d,n=s.L;if(!n||this.movingMediaElementInDOM===l){if(n?(o=n.cloneNode(l),t.f.Mb(n),n=o,s.L=j):(n=t.e("video"),o=videojs.$.ya({},s.Xe),(!t.Eb||s.options().nativeControlsForTouch!==f)&&delete o.controls,t.ed(n,t.i.D(o,{id:s.id()+"_html5_api","class":"vjs-tech"}))),n.player=s,s.q.qd)for(o=0;o<s.q.qd.length;o++)e=s.q.qd[o],i=document.createElement("track"),i.Wb=e.Wb,i.label=e.label,i.hd=e.hd,i.src=e.src,"default"in e&&i.setAttribute("default","default"),n.appendChild(i);t.Ub(n,s.m())}for(e=["autoplay","preload","loop","muted"],o=e.length-1;o>=0;o--){i=e[o];var r={};"undefined"!=typeof s.q[i]&&(r[i]=s.q[i]),t.ed(n,r)}return n},s.ee=function(){for(var t,e=this.c.querySelectorAll("track"),i=e.length,o={captions:1,subtitles:1};i--;)(t=e[i].T)&&t.kind in o&&!e[i]["default"]&&(t.mode="disabled")},s.Wd=function(t){"error"==t.type&&this.error()?this.k().error(this.error().code):(t.bubbles=l,this.k().o(t))},s.play=function(){this.c.play()},s.pause=function(){this.c.pause()},s.paused=function(){return this.c.paused},s.currentTime=function(){return this.c.currentTime},s.bc=function(e){try{this.c.currentTime=e}catch(i){t.log(i,"Video is not ready. (Video.js)")}},s.duration=function(){return this.c.duration||0},s.buffered=function(){return this.c.buffered},s.volume=function(){return this.c.volume},s.Se=function(t){this.c.volume=t},s.muted=function(){return this.c.muted},s.Oe=function(t){this.c.muted=t},s.width=function(){return this.c.offsetWidth},s.height=function(){return this.c.offsetHeight},s.Ta=function(){return"function"!=typeof this.c.webkitEnterFullScreen||!/Android/.test(t.P)&&/Chrome|Mac OS X 10.5/.test(t.P)?l:f},s.Ic=function(){var t=this.c;"webkitDisplayingFullscreen"in t&&this.N("webkitbeginfullscreen",function(){this.d.isFullscreen(f),this.N("webkitendfullscreen",function(){this.d.isFullscreen(l),this.d.o("fullscreenchange")}),this.d.o("fullscreenchange")}),t.paused&&t.networkState<=t.jf?(this.c.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},s.Xd=function(){this.c.webkitExitFullScreen()},s.src=function(t){return t===b?this.c.src:void this.ma(t)},s.ma=function(t){this.c.src=t},s.load=function(){this.c.load()},s.currentSrc=function(){return this.c.currentSrc},s.poster=function(){return this.c.poster},s.fd=function(t){this.c.poster=t},s.Qa=function(){return this.c.Qa},s.Qe=function(t){this.c.Qa=t},s.autoplay=function(){return this.c.autoplay},s.Le=function(t){this.c.autoplay=t},s.controls=function(){return this.c.controls},s.loop=function(){return this.c.loop},s.Ne=function(t){this.c.loop=t},s.error=function(){return this.c.error},s.seeking=function(){return this.c.seeking},s.ended=function(){return this.c.ended},s.playbackRate=function(){return this.c.playbackRate},s.Pe=function(t){this.c.playbackRate=t},s.networkState=function(){return this.c.networkState},s.readyState=function(){return this.c.readyState},s.textTracks=function(){return this.featuresNativeTextTracks?this.c.textTracks:t.j.prototype.textTracks.call(this)},s.addTextTrack=function(e,i,o){return this.featuresNativeTextTracks?this.c.addTextTrack(e,i,o):t.j.prototype.addTextTrack.call(this,e,i,o)},s.ia=function(e){if(!this.featuresNativeTextTracks)return t.j.prototype.ia.call(this,e);var i=document.createElement("track");return e=e||{},e.kind&&(i.kind=e.kind),e.label&&(i.label=e.label),(e.language||e.srclang)&&(i.srclang=e.language||e.srclang),e["default"]&&(i["default"]=e["default"]),e.id&&(i.id=e.id),e.src&&(i.src=e.src),this.m().appendChild(i),i.track.mode="metadata"===i.T.kind?"hidden":"disabled",i.onload=function(){var t=i.track;2<=i.readyState&&("metadata"===t.kind&&"hidden"!==t.mode?t.mode="hidden":"metadata"!==t.kind&&"disabled"!==t.mode&&(t.mode="disabled"),i.onload=j)},P(this.Z(),i.T),i},s.Ba=function(e){if(!this.featuresNativeTextTracks)return t.j.prototype.Ba.call(this,e);var i,o;for(Q(this.Z(),e),i=this.m().querySelectorAll("track"),o=0;o<i.length;o++)if(i[o]===e||i[o].track===e){i[o].parentNode.removeChild(i[o]);break}},t.f.isSupported=function(){try{t.A.volume=.5}catch(e){return l}return!!t.A.canPlayType},t.j.gc(t.f),t.f.S={},t.f.S.eb=function(e){function i(e){try{return t.A.canPlayType(e)}catch(i){return""}}return e.type?i(e.type):e.src?(e=(e=e.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i))&&e[1],i("video/"+e)):""},t.f.S.Tb=function(t,e){e.ma(t.src)},t.f.S.dispose=m(),t.f.Ra(t.f.S),t.f.Od=function(){var e=t.A.volume;return t.A.volume=e/2+.1,e!==t.A.volume},t.f.Nd=function(){var e=t.A.playbackRate;return t.A.playbackRate=e/2+.1,e!==t.A.playbackRate},t.f.Ve=function(){var e;return(e=!!t.A.textTracks)&&0<t.A.textTracks.length&&(e="number"!=typeof t.A.textTracks[0].mode),e&&t.jc&&(e=l),e},t.f.prototype.featuresVolumeControl=t.f.Od(),t.f.prototype.featuresPlaybackRate=t.f.Nd(),t.f.prototype.movingMediaElementInDOM=!t.Ad,t.f.prototype.featuresFullscreenResize=f,t.f.prototype.featuresProgressEvents=f,t.f.prototype.featuresNativeTextTracks=t.f.Ve();var S,oa=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,pa=/^video\/mp4/i;t.f.Xc=function(){4<=t.hc&&(S||(S=t.A.constructor.prototype.canPlayType),t.A.constructor.prototype.canPlayType=function(t){return t&&oa.test(t)?"maybe":S.call(this,t)}),t.Ed&&(S||(S=t.A.constructor.prototype.canPlayType),t.A.constructor.prototype.canPlayType=function(t){return t&&pa.test(t)?"maybe":S.call(this,t)})},t.f.bf=function(){var e=t.A.constructor.prototype.canPlayType;return t.A.constructor.prototype.canPlayType=S,S=j,e},t.f.Xc(),t.f.yb="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" "),t.f.Mb=function(t){if(t){for(t.player=j,t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);if(t.removeAttribute("src"),"function"==typeof t.load)try{t.load()}catch(e){}}},t.g=t.j.extend({l:function(e,i,o){t.j.call(this,e,i,o);var s=i.source;o=e.id()+"_flash_api";var n=e.q,n=t.i.D({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:n.autoplay,preload:n.Qa,loop:n.loop,muted:n.muted},i.flashVars),r=t.i.D({wmode:"opaque",bgcolor:"#000000"},i.params);o=t.i.D({id:o,name:o,"class":"vjs-tech"},i.attributes),s&&this.I(function(){this.Sa(s)}),t.Ub(this.c,i.parentEl),i.startTime&&this.I(function(){this.load(),this.play(),this.currentTime(i.startTime)}),t.jc&&this.I(function(){this.b("mousemove",function(){this.k().o({type:"mousemove",bubbles:l})})}),e.b("stageclick",e.reportUserActivity),this.c=t.g.Hc(i.swf,this.c,n,r,o)}}),s=t.g.prototype,s.dispose=function(){t.j.prototype.dispose.call(this)},s.play=function(){this.c.vjs_play()},s.pause=function(){this.c.vjs_pause()},s.src=function(t){return t===b?this.currentSrc():this.ma(t)},s.ma=function(e){if(e=t.$d(e),this.c.vjs_src(e),this.d.autoplay()){var i=this;this.setTimeout(function(){i.play()},0)}},t.g.prototype.setCurrentTime=function(e){this.oe=e,this.c.vjs_setProperty("currentTime",e),t.j.prototype.bc.call(this)},t.g.prototype.currentTime=function(){return this.seeking()?this.oe||0:this.c.vjs_getProperty("currentTime")},t.g.prototype.currentSrc=function(){return this.Ec?this.Ec.src:this.c.vjs_getProperty("currentSrc")},t.g.prototype.load=function(){this.c.vjs_load()},t.g.prototype.poster=function(){this.c.vjs_getProperty("poster")},t.g.prototype.setPoster=m(),t.g.prototype.buffered=function(){return t.Lb(0,this.c.vjs_getProperty("buffered"))},t.g.prototype.Ta=q(l),t.g.prototype.Ic=q(l);var ra=t.g.prototype,T="rtmpConnection rtmpStream preload defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),ta="error networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight".split(" "),U;for(U=0;U<T.length;U++)sa(T[U]),qa();for(U=0;U<ta.length;U++)sa(ta[U]);t.g.isSupported=function(){return 10<=t.g.version()[0]},t.j.gc(t.g),t.g.S={},t.g.S.eb=function(e){return e.type&&e.type.replace(/;.*/,"").toLowerCase()in t.g.Zd?"maybe":""},t.g.S.Tb=function(t,e){e.ma(t.src)},t.g.S.dispose=m(),t.g.Ra(t.g.S),t.g.Zd={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},t.g.onReady=function(e){var i;(i=(e=t.m(e))&&e.parentNode&&e.parentNode.player)&&(e.player=i,t.g.checkReady(i.h))},t.g.checkReady=function(e){e.m()&&(e.m().vjs_getProperty?e.Wa():this.setTimeout(function(){t.g.checkReady(e)},50))},t.g.onEvent=function(e,i){t.m(e).player.o(i)},t.g.onError=function(e,i){var o=t.m(e).player,s="FLASH: "+i;o.error("srcnotfound"==i?{code:4,message:s}:s)},t.g.version=function(){var t="0,0,0";try{t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return t.split(",")},t.g.Hc=function(e,i,o,s,n){e=t.g.ce(e,o,s,n),e=t.e("div",{innerHTML:e}).childNodes[0],o=i.parentNode,i.parentNode.replaceChild(e,i),e[t.expando]=i[t.expando];var r=o.childNodes[0];return setTimeout(function(){r.style.display="block"},1e3),e},t.g.ce=function(e,i,o,s){var n="",r="",a="";return i&&t.i.da(i,function(t,e){n+=t+"="+e+"&"}),o=t.i.D({movie:e,flashvars:n,allowScriptAccess:"always",allowNetworking:"all"},o),t.i.da(o,function(t,e){r+='<param name="'+t+'" value="'+e+'" />'}),s=t.i.D({data:e,width:"100%",height:"100%"},s),t.i.da(s,function(t,e){a+=t+'="'+e+'" '}),'<object type="application/x-shockwave-flash" '+a+">"+r+"</object>"},t.g.Ue={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.g.Hf=function(t,e){return t+"&"+e},t.g.Te=function(t){var e={Bc:"",md:""};if(!t)return e;var i,o=t.indexOf("&");return-1!==o?i=o+1:(o=i=t.lastIndexOf("/")+1,0===o&&(o=i=t.length)),e.Bc=t.substring(0,o),e.md=t.substring(i,t.length),e},t.g.me=function(e){return e in t.g.Ue},t.g.Gd=/^rtmp[set]?:\/\//i,t.g.le=function(e){return t.g.Gd.test(e)},t.g.ac={},t.g.ac.eb=function(e){return t.g.me(e.type)||t.g.le(e.src)?"maybe":""},t.g.ac.Tb=function(e,i){var o=t.g.Te(e.src);i.setRtmpConnection(o.Bc),i.setRtmpStream(o.md)},t.g.Ra(t.g.ac),t.Fd=t.a.extend({l:function(e,i,o){if(t.a.call(this,e,i,o),e.q.sources&&0!==e.q.sources.length)e.src(e.q.sources);else for(i=0,o=e.q.techOrder;i<o.length;i++){var s=t.ua(o[i]),n=window.videojs[s];if(n&&n.isSupported()){ka(e,s);break}}}}),t.rc={disabled:"disabled",hidden:"hidden",showing:"showing"},t.Hd={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},t.t=function(e){var i,o,s,n,r,a,u,c,p,d,h;if(e=e||{},!e.player)throw Error("A player was not provided.");if(i=this,t.oa)for(h in i=document.createElement("custom"),t.t.prototype)i[h]=t.t.prototype[h];return i.d=e.player,s=t.rc[e.mode]||"disabled",n=t.Hd[e.kind]||"subtitles",r=e.label||"",a=e.language||e.srclang||"",o=e.id||"vjs_text_track_"+t.s++,("metadata"===n||"chapters"===n)&&(s="hidden"),i.X=[],i.Ga=[],u=new t.W(i.X),c=new t.W(i.Ga),d=l,p=t.bind(i,function(){this.activeCues,d&&(this.trigger("cuechange"),d=l)}),"disabled"!==s&&i.d.b("timeupdate",p),Object.defineProperty(i,"kind",{get:function(){return n},set:Function.prototype}),Object.defineProperty(i,"label",{get:function(){return r},set:Function.prototype}),Object.defineProperty(i,"language",{get:function(){return a},set:Function.prototype}),Object.defineProperty(i,"id",{get:function(){return o},set:Function.prototype}),Object.defineProperty(i,"mode",{get:function(){return s},set:function(e){t.rc[e]&&(s=e,"showing"===s&&this.d.b("timeupdate",p),this.o("modechange"))}}),Object.defineProperty(i,"cues",{get:function(){return this.Xb?u:j},set:Function.prototype}),Object.defineProperty(i,"activeCues",{get:function(){var t,e,i,o,s;if(!this.Xb)return j;if(0===this.cues.length)return c;for(o=this.d.currentTime(),t=0,e=this.cues.length,i=[];e>t;t++)s=this.cues[t],s.startTime<=o&&s.endTime>=o?i.push(s):s.startTime===s.endTime&&s.startTime<=o&&s.startTime+.5>=o&&i.push(s);if(d=l,i.length!==this.Ga.length)d=f;else for(t=0;t<i.length;t++)-1===ua.call(this.Ga,i[t])&&(d=f);return this.Ga=i,c.qb(this.Ga),c},set:Function.prototype}),e.src?va(e.src,i):i.Xb=f,t.oa?i:void 0},t.t.prototype=t.i.create(t.z.prototype),t.t.prototype.constructor=t.t,t.t.prototype.bb={cuechange:"cuechange"},t.t.prototype.vc=function(t){var e=this.d.textTracks(),i=0;if(e)for(;i<e.length;i++)e[i]!==this&&e[i].bd(t);this.X.push(t),this.cues.qb(this.X)},t.t.prototype.bd=function(t){for(var e,i=0,o=this.X.length,s=l;o>i;i++)e=this.X[i],e===t&&(this.X.splice(i,1),s=f);s&&this.Dc.qb(this.X)};var va,V,ua;va=function(e,i){t.ff(e,t.bind(this,function(e,o,s){return e?t.log.error(e):(i.Xb=f,void V(s,i))}))},V=function(e,i){if("function"!=typeof window.WebVTT)window.setTimeout(function(){V(e,i)},25);else{var o=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder());o.oncue=function(t){i.vc(t)},o.onparsingerror=function(e){t.log.error(e)},o.parse(e),o.flush()}},ua=function(t,e){var i;if(this==j)throw new TypeError('"this" is null or not defined');var o=Object(this),s=o.length>>>0;if(0===s)return-1;if(i=+e||0,1/0===Math.abs(i)&&(i=0),i>=s)return-1;for(i=Math.max(i>=0?i:s-Math.abs(i),0);s>i;){if(i in o&&o[i]===t)return i;i++}return-1},t.F=function(e){var i,o=this,s=0;if(t.oa)for(i in o=document.createElement("custom"),t.F.prototype)o[i]=t.F.prototype[i];for(e=e||[],o.Va=[],Object.defineProperty(o,"length",{get:function(){return this.Va.length}});s<e.length;s++)P(o,e[s]);return t.oa?o:void 0},t.F.prototype=t.i.create(t.z.prototype),t.F.prototype.constructor=t.F,t.F.prototype.bb={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var wa in t.F.prototype.bb)t.F.prototype["on"+wa]=j;t.F.prototype.de=function(t){for(var e,i=0,o=this.length,s=j;o>i;i++)if(e=this[i],e.id===t){s=e;break}return s},t.W=function(e){var i,o=this;if(t.oa)for(i in o=document.createElement("custom"),t.W.prototype)o[i]=t.W.prototype[i];return t.W.prototype.qb.call(o,e),Object.defineProperty(o,"length",{get:n("pe")}),t.oa?o:void 0},t.W.prototype.qb=function(t){var e=this.length||0,i=0,o=t.length;if(this.X=t,this.pe=t.length,t=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.X[t]}})},o>e)for(i=e;o>i;i++)t.call(this,i)},t.W.prototype.be=function(t){for(var e,i=0,o=this.length,s=j;o>i;i++)if(e=this[i],e.id===t){s=e;break}return s},t.ra=t.a.extend({l:function(e,i,o){t.a.call(this,e,i,o),e.b("loadstart",t.bind(this,this.Ze)),e.I(t.bind(this,function(){if(e.h&&e.h.featuresNativeTextTracks)this.Y();else{var i,o,s;for(e.b("fullscreenchange",t.bind(this,this.C)),o=e.q.tracks||[],i=0;i<o.length;i++)s=o[i],this.d.ia(s)}}))}}),t.ra.prototype.Ze=function(){this.d.h&&this.d.h.featuresNativeTextTracks?this.Y():this.show()},t.ra.prototype.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-text-track-display"})},t.ra.prototype.Pd=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.c)};var xa={xf:"monospace",Df:"sans-serif",Ff:"serif",yf:'"Andale Mono", "Lucida Console", monospace',zf:'"Courier New", monospace',Bf:"sans-serif",Cf:"serif",of:'"Comic Sans MS", Impact, fantasy',Ef:'"Monotype Corsiva", cursive',Gf:'"Andale Mono", "Lucida Console", monospace, sans-serif'};if(t.ra.prototype.C=function(){var t,e=this.d.textTracks(),i=0;if(this.Pd(),e)for(;i<e.length;i++)t=e[i],"showing"===t.mode&&this.cf(t)},t.ra.prototype.cf=function(t){if("function"==typeof window.WebVTT&&t.activeCues){for(var e,i=0,o=this.d.textTrackSettings.Lc(),s=[];i<t.activeCues.length;i++)s.push(t.activeCues[i]);for(window.WebVTT.processCues(window,t.activeCues,this.c),i=s.length;i--;){if(t=s[i].pf,o.color&&(t.firstChild.style.color=o.color),o.nd)try{t.firstChild.style.color=W(o.color||"#fff",o.nd)}catch(n){}if(o.backgroundColor&&(t.firstChild.style.backgroundColor=o.backgroundColor),o.yc)try{t.firstChild.style.backgroundColor=W(o.backgroundColor||"#000",o.yc)}catch(r){}if(o.fc)if(o.ud)try{t.style.backgroundColor=W(o.fc,o.ud)}catch(a){}else t.style.backgroundColor=o.fc;o.La&&("dropshadow"===o.La?t.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===o.La?t.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===o.La?t.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===o.La&&(t.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),o.Qb&&1!==o.Qb&&(e=window.Af(t.style.fontSize),t.style.fontSize=e*o.Qb+"px",t.style.height="auto",t.style.top="auto",t.style.bottom="2px"),o.fontFamily&&"default"!==o.fontFamily&&("small-caps"===o.fontFamily?t.firstChild.style.fontVariant="small-caps":t.firstChild.style.fontFamily=xa[o.fontFamily])}}},t.aa=t.M.extend({l:function(e,i){var o,s,n=this.T=i.track,r=e.textTracks();r&&(o=t.bind(this,function(){var e,i,o,s="showing"===this.T.mode;if(this instanceof t.Ab)for(s=f,i=0,o=r.length;o>i;i++)if(e=r[i],e.kind===this.T.kind&&"showing"===e.mode){s=l;break}this.selected(s)}),r.addEventListener("change",o),e.b("dispose",function(){r.removeEventListener("change",o)})),i.label=n.label||n.language||"Unknown",i.selected=n["default"]||"showing"===n.mode,t.M.call(this,e,i),r&&r.onchange===b&&this.b(["tap","click"],function(){if("object"!=typeof window.yd)try{s=new window.yd("change")}catch(t){}s||(s=document.createEvent("Event"),s.initEvent("change",f,f)),r.dispatchEvent(s)})}}),t.aa.prototype.u=function(){var e,i=this.T.kind,o=this.d.textTracks(),s=0;if(t.M.prototype.u.call(this),o)for(;s<o.length;s++)e=o[s],e.kind===i&&(e.mode=e===this.T?"showing":"disabled")},t.Ab=t.aa.extend({l:function(e,i){i.track={kind:i.kind,player:e,label:i.kind+" off","default":l,mode:"disabled"},t.aa.call(this,e,i),this.selected(f)}}),t.tb=t.aa.extend({l:function(e,i){i.track={kind:i.kind,player:e,label:i.kind+" settings","default":l,mode:"disabled"},t.aa.call(this,e,i),this.p("vjs-texttrack-settings")}}),t.tb.prototype.u=function(){this.k().ea("textTrackSettings").show()},t.Q=t.O.extend({l:function(e,i){var o,s;t.O.call(this,e,i),o=this.d.textTracks(),1>=this.H.length&&this.Y(),o&&(s=t.bind(this,this.update),o.addEventListener("removetrack",s),o.addEventListener("addtrack",s),this.d.b("dispose",function(){o.removeEventListener("removetrack",s),o.removeEventListener("addtrack",s)}))}}),t.Q.prototype.Ia=function(){var e,i,o=[];if(this instanceof t.na&&(!this.k().h||!this.k().h.featuresNativeTextTracks)&&o.push(new t.tb(this.d,{kind:this.fa})),o.push(new t.Ab(this.d,{kind:this.fa})),i=this.d.textTracks(),!i)return o;for(var s=0;s<i.length;s++)e=i[s],e.kind===this.fa&&o.push(new t.aa(this.d,{track:e}));return o},t.na=t.Q.extend({l:function(e,i,o){t.Q.call(this,e,i,o),this.c.setAttribute("aria-label","Captions Menu")}}),t.na.prototype.fa="captions",t.na.prototype.sa="Captions",t.na.prototype.className="vjs-captions-button",t.na.prototype.update=function(){var e=2;t.Q.prototype.update.call(this),this.k().h&&this.k().h.featuresNativeTextTracks&&(e=1),this.H&&this.H.length>e?this.show():this.Y()},t.ab=t.Q.extend({l:function(e,i,o){t.Q.call(this,e,i,o),this.c.setAttribute("aria-label","Subtitles Menu")}}),t.ab.prototype.fa="subtitles",t.ab.prototype.sa="Subtitles",t.ab.prototype.className="vjs-subtitles-button",t.Xa=t.Q.extend({l:function(e,i,o){t.Q.call(this,e,i,o),this.c.setAttribute("aria-label","Chapters Menu")}}),s=t.Xa.prototype,s.fa="chapters",s.sa="Chapters",s.className="vjs-chapters-button",s.Ia=function(){var e,i,o=[];if(i=this.d.textTracks(),!i)return o;for(var s=0;s<i.length;s++)e=i[s],e.kind===this.fa&&o.push(new t.aa(this.d,{track:e}));return o},s.Ja=function(){for(var e,i,o=this.d.textTracks()||[],s=0,n=o.length,r=this.H=[];n>s;s++)if(e=o[s],e.kind==this.fa){if(e.Dc){i=e;break}e.mode="hidden",window.setTimeout(t.bind(this,function(){this.Ja()}),100)}if(o=this.xa,o===b&&(o=new t.pa(this.d),o.va().appendChild(t.e("li",{className:"vjs-menu-title",innerHTML:t.ua(this.fa),We:-1}))),i){e=i.cues;for(var a,s=0,n=e.length;n>s;s++)a=e[s],a=new t.Ya(this.d,{track:i,cue:a}),r.push(a),o.ba(a);this.ba(o)}return 0<this.H.length&&this.show(),o},t.Ya=t.M.extend({l:function(e,i){var o=this.T=i.track,s=this.cue=i.cue,n=e.currentTime();i.label=s.text,i.selected=s.startTime<=n&&n<s.endTime,t.M.call(this,e,i),o.addEventListener("cuechange",t.bind(this,this.update))}}),t.Ya.prototype.u=function(){t.M.prototype.u.call(this),this.d.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.Ya.prototype.update=function(){var t=this.cue,e=this.d.currentTime();this.selected(t.startTime<=e&&e<t.endTime)
},t.sc=t.a.extend({l:function(e,i){t.a.call(this,e,i),this.Y(),t.b(this.m().querySelector(".vjs-done-button"),"click",t.bind(this,function(){this.Je(),this.Y()})),t.b(this.m().querySelector(".vjs-default-button"),"click",t.bind(this,function(){this.m().querySelector(".vjs-fg-color > select").selectedIndex=0,this.m().querySelector(".vjs-bg-color > select").selectedIndex=0,this.m().querySelector(".window-color > select").selectedIndex=0,this.m().querySelector(".vjs-text-opacity > select").selectedIndex=0,this.m().querySelector(".vjs-bg-opacity > select").selectedIndex=0,this.m().querySelector(".vjs-window-opacity > select").selectedIndex=0,this.m().querySelector(".vjs-edge-style select").selectedIndex=0,this.m().querySelector(".vjs-font-family select").selectedIndex=0,this.m().querySelector(".vjs-font-percent select").selectedIndex=2,this.C()})),t.b(this.m().querySelector(".vjs-fg-color > select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-bg-color > select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".window-color > select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-text-opacity > select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-bg-opacity > select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-window-opacity > select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-font-percent select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-edge-style select"),"change",t.bind(this,this.C)),t.b(this.m().querySelector(".vjs-font-family select"),"change",t.bind(this,this.C)),e.options().persistTextTrackSettings&&this.Ie()}}),s=t.sc.prototype,s.e=function(){return t.a.prototype.e.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings"><div class="vjs-tracksettings-colors"><div class="vjs-fg-color vjs-tracksetting"><label class="vjs-label">Foreground</label><select><option value="">---</option><option value="#FFF">White</option><option value="#000">Black</option><option value="#F00">Red</option><option value="#0F0">Green</option><option value="#00F">Blue</option><option value="#FF0">Yellow</option><option value="#F0F">Magenta</option><option value="#0FF">Cyan</option></select><span class="vjs-text-opacity vjs-opacity"><select><option value="">---</option><option value="1">Opaque</option><option value="0.5">Semi-Opaque</option></select></span></div><div class="vjs-bg-color vjs-tracksetting"><label class="vjs-label">Background</label><select><option value="">---</option><option value="#FFF">White</option><option value="#000">Black</option><option value="#F00">Red</option><option value="#0F0">Green</option><option value="#00F">Blue</option><option value="#FF0">Yellow</option><option value="#F0F">Magenta</option><option value="#0FF">Cyan</option></select><span class="vjs-bg-opacity vjs-opacity"><select><option value="">---</option><option value="1">Opaque</option><option value="0.5">Semi-Transparent</option><option value="0">Transparent</option></select></span></div><div class="window-color vjs-tracksetting"><label class="vjs-label">Window</label><select><option value="">---</option><option value="#FFF">White</option><option value="#000">Black</option><option value="#F00">Red</option><option value="#0F0">Green</option><option value="#00F">Blue</option><option value="#FF0">Yellow</option><option value="#F0F">Magenta</option><option value="#0FF">Cyan</option></select><span class="vjs-window-opacity vjs-opacity"><select><option value="">---</option><option value="1">Opaque</option><option value="0.5">Semi-Transparent</option><option value="0">Transparent</option></select></span></div></div><div class="vjs-tracksettings-font"><div class="vjs-font-percent vjs-tracksetting"><label class="vjs-label">Font Size</label><select><option value="0.50">50%</option><option value="0.75">75%</option><option value="1.00" selected>100%</option><option value="1.25">125%</option><option value="1.50">150%</option><option value="1.75">175%</option><option value="2.00">200%</option><option value="3.00">300%</option><option value="4.00">400%</option></select></div><div class="vjs-edge-style vjs-tracksetting"><label class="vjs-label">Text Edge Style</label><select><option value="none">None</option><option value="raised">Raised</option><option value="depressed">Depressed</option><option value="uniform">Uniform</option><option value="dropshadow">Dropshadow</option></select></div><div class="vjs-font-family vjs-tracksetting"><label class="vjs-label">Font Family</label><select><option value="">Default</option><option value="monospaceSerif">Monospace Serif</option><option value="proportionalSerif">Proportional Serif</option><option value="monospaceSansSerif">Monospace Sans-Serif</option><option value="proportionalSansSerif">Proportional Sans-Serif</option><option value="casual">Casual</option><option value="script">Script</option><option value="small-caps">Small Caps</option></select></div></div></div><div class="vjs-tracksettings-controls"><button class="vjs-default-button">Defaults</button><button class="vjs-done-button">Done</button></div>'})},s.Lc=function(){var t,e,i,o,s,n,r,a,l,u;t=this.m(),s=X(t.querySelector(".vjs-edge-style select")),n=X(t.querySelector(".vjs-font-family select")),r=X(t.querySelector(".vjs-fg-color > select")),i=X(t.querySelector(".vjs-text-opacity > select")),a=X(t.querySelector(".vjs-bg-color > select")),e=X(t.querySelector(".vjs-bg-opacity > select")),l=X(t.querySelector(".window-color > select")),o=X(t.querySelector(".vjs-window-opacity > select")),t=window.parseFloat(X(t.querySelector(".vjs-font-percent > select"))),e={backgroundOpacity:e,textOpacity:i,windowOpacity:o,edgeStyle:s,fontFamily:n,color:r,backgroundColor:a,windowColor:l,fontPercent:t};for(u in e)(""===e[u]||"none"===e[u]||"fontPercent"===u&&1===e[u])&&delete e[u];return e},s.Re=function(t){var e=this.m();Y(e.querySelector(".vjs-edge-style select"),t.La),Y(e.querySelector(".vjs-font-family select"),t.fontFamily),Y(e.querySelector(".vjs-fg-color > select"),t.color),Y(e.querySelector(".vjs-text-opacity > select"),t.nd),Y(e.querySelector(".vjs-bg-color > select"),t.backgroundColor),Y(e.querySelector(".vjs-bg-opacity > select"),t.yc),Y(e.querySelector(".window-color > select"),t.fc),Y(e.querySelector(".vjs-window-opacity > select"),t.ud),(t=t.Qb)&&(t=t.toFixed(2)),Y(e.querySelector(".vjs-font-percent > select"),t)},s.Ie=function(){var t;try{t=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(e){}t&&this.Re(t)},s.Je=function(){var e;if(this.d.options().persistTextTrackSettings){e=this.Lc();try{t.ib(e)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e))}catch(i){}}},s.C=function(){var t=this.d.ea("textTrackDisplay");t&&t.C()},"undefined"!=typeof window.JSON&&"function"==typeof window.JSON.parse)t.JSON=window.JSON;else{t.JSON={};var Z=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;t.JSON.parse=function(a,c){function d(t,e){var i,o,s=t[e];if(s&&"object"==typeof s)for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(o=d(s,i),o!==b?s[i]=o:delete s[i]);return c.call(t,e,s)}var e;if(a=String(a),Z.lastIndex=0,Z.test(a)&&(a=a.replace(Z,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data")}}t.xc=function(){var e,i,o,s;e=document.getElementsByTagName("video"),i=document.getElementsByTagName("audio");var n=[];if(e&&0<e.length)for(o=0,s=e.length;s>o;o++)n.push(e[o]);if(i&&0<i.length)for(o=0,s=i.length;s>o;o++)n.push(i[o]);if(n&&0<n.length)for(o=0,s=n.length;s>o;o++){if(!(i=n[o])||!i.getAttribute){t.Ib();break}i.player===b&&(e=i.getAttribute("data-setup"),e!==j&&videojs(i))}else t.td||t.Ib()},t.Ib=function(){setTimeout(t.xc,1)},"complete"===document.readyState?t.td=f:t.N(window,"load",function(){t.td=f}),t.Ib(),t.Fe=function(e,i){t.Player.prototype[e]=i};var ya=this;$("videojs",t),$("_V_",t),$("videojs.options",t.options),$("videojs.players",t.Aa),$("videojs.TOUCH_ENABLED",t.Eb),$("videojs.cache",t.ta),$("videojs.Component",t.a),t.a.prototype.player=t.a.prototype.k,t.a.prototype.options=t.a.prototype.options,t.a.prototype.init=t.a.prototype.l,t.a.prototype.dispose=t.a.prototype.dispose,t.a.prototype.createEl=t.a.prototype.e,t.a.prototype.contentEl=t.a.prototype.va,t.a.prototype.el=t.a.prototype.m,t.a.prototype.addChild=t.a.prototype.ba,t.a.prototype.getChild=t.a.prototype.ea,t.a.prototype.getChildById=t.a.prototype.ae,t.a.prototype.children=t.a.prototype.children,t.a.prototype.initChildren=t.a.prototype.Oc,t.a.prototype.removeChild=t.a.prototype.removeChild,t.a.prototype.on=t.a.prototype.b,t.a.prototype.off=t.a.prototype.n,t.a.prototype.one=t.a.prototype.N,t.a.prototype.trigger=t.a.prototype.o,t.a.prototype.triggerReady=t.a.prototype.Wa,t.a.prototype.show=t.a.prototype.show,t.a.prototype.hide=t.a.prototype.Y,t.a.prototype.width=t.a.prototype.width,t.a.prototype.height=t.a.prototype.height,t.a.prototype.dimensions=t.a.prototype.Td,t.a.prototype.ready=t.a.prototype.I,t.a.prototype.addClass=t.a.prototype.p,t.a.prototype.removeClass=t.a.prototype.r,t.a.prototype.hasClass=t.a.prototype.Oa,t.a.prototype.buildCSSClass=t.a.prototype.V,t.a.prototype.localize=t.a.prototype.v,t.a.prototype.setInterval=t.a.prototype.setInterval,t.a.prototype.setTimeout=t.a.prototype.setTimeout,$("videojs.EventEmitter",t.z),t.z.prototype.on=t.z.prototype.b,t.z.prototype.addEventListener=t.z.prototype.addEventListener,t.z.prototype.off=t.z.prototype.n,t.z.prototype.removeEventListener=t.z.prototype.removeEventListener,t.z.prototype.one=t.z.prototype.N,t.z.prototype.trigger=t.z.prototype.o,t.z.prototype.dispatchEvent=t.z.prototype.dispatchEvent,t.Player.prototype.ended=t.Player.prototype.ended,t.Player.prototype.enterFullWindow=t.Player.prototype.Jc,t.Player.prototype.exitFullWindow=t.Player.prototype.Nb,t.Player.prototype.preload=t.Player.prototype.Qa,t.Player.prototype.remainingTime=t.Player.prototype.remainingTime,t.Player.prototype.supportsFullScreen=t.Player.prototype.Ta,t.Player.prototype.currentType=t.Player.prototype.Qd,t.Player.prototype.requestFullScreen=t.Player.prototype.requestFullScreen,t.Player.prototype.requestFullscreen=t.Player.prototype.requestFullscreen,t.Player.prototype.cancelFullScreen=t.Player.prototype.cancelFullScreen,t.Player.prototype.exitFullscreen=t.Player.prototype.exitFullscreen,t.Player.prototype.isFullScreen=t.Player.prototype.isFullScreen,t.Player.prototype.isFullscreen=t.Player.prototype.isFullscreen,t.Player.prototype.textTracks=t.Player.prototype.textTracks,t.Player.prototype.remoteTextTracks=t.Player.prototype.Z,t.Player.prototype.addTextTrack=t.Player.prototype.addTextTrack,t.Player.prototype.addRemoteTextTrack=t.Player.prototype.ia,t.Player.prototype.removeRemoteTextTrack=t.Player.prototype.Ba,$("videojs.MediaLoader",t.Fd),$("videojs.TextTrackDisplay",t.ra),$("videojs.ControlBar",t.ub),$("videojs.Button",t.w),$("videojs.PlayToggle",t.nc),$("videojs.FullscreenToggle",t.Za),$("videojs.BigPlayButton",t.sb),$("videojs.LoadingSpinner",t.lc),$("videojs.CurrentTimeDisplay",t.vb),$("videojs.DurationDisplay",t.wb),$("videojs.TimeDivider",t.tc),$("videojs.RemainingTimeDisplay",t.Db),$("videojs.LiveDisplay",t.kc),$("videojs.ErrorDisplay",t.xb),$("videojs.Slider",t.U),$("videojs.ProgressControl",t.Cb),$("videojs.SeekBar",t.qc),$("videojs.LoadProgressBar",t.zb),$("videojs.PlayProgressBar",t.mc),$("videojs.SeekHandle",t.$a),$("videojs.VolumeControl",t.Gb),$("videojs.VolumeBar",t.Fb),$("videojs.VolumeLevel",t.uc),$("videojs.VolumeMenuButton",t.Fa),$("videojs.VolumeHandle",t.Hb),$("videojs.MuteToggle",t.qa),$("videojs.PosterImage",t.pc),$("videojs.Menu",t.pa),$("videojs.MenuItem",t.M),$("videojs.MenuButton",t.O),$("videojs.PlaybackRateMenuButton",t.oc),$("videojs.ChaptersTrackMenuItem",t.Ya),$("videojs.TextTrackButton",t.Q),$("videojs.TextTrackMenuItem",t.aa),$("videojs.OffTextTrackMenuItem",t.Ab),$("videojs.CaptionSettingsMenuItem",t.tb),t.O.prototype.createItems=t.O.prototype.Ia,t.Q.prototype.createItems=t.Q.prototype.Ia,t.Xa.prototype.createItems=t.Xa.prototype.Ia,$("videojs.SubtitlesButton",t.ab),$("videojs.CaptionsButton",t.na),$("videojs.ChaptersButton",t.Xa),$("videojs.MediaTechController",t.j),t.j.withSourceHandlers=t.j.gc,t.j.prototype.featuresVolumeControl=t.j.prototype.uf,t.j.prototype.featuresFullscreenResize=t.j.prototype.qf,t.j.prototype.featuresPlaybackRate=t.j.prototype.rf,t.j.prototype.featuresProgressEvents=t.j.prototype.sf,t.j.prototype.featuresTimeupdateEvents=t.j.prototype.tf,t.j.prototype.setPoster=t.j.prototype.fd,t.j.prototype.textTracks=t.j.prototype.textTracks,t.j.prototype.remoteTextTracks=t.j.prototype.Z,t.j.prototype.addTextTrack=t.j.prototype.addTextTrack,t.j.prototype.addRemoteTextTrack=t.j.prototype.ia,t.j.prototype.removeRemoteTextTrack=t.j.prototype.Ba,$("videojs.Html5",t.f),t.f.Events=t.f.yb,t.f.isSupported=t.f.isSupported,t.f.canPlaySource=t.f.zc,t.f.patchCanPlayType=t.f.Xc,t.f.unpatchCanPlayType=t.f.bf,t.f.prototype.setCurrentTime=t.f.prototype.bc,t.f.prototype.setVolume=t.f.prototype.Se,t.f.prototype.setMuted=t.f.prototype.Oe,t.f.prototype.setPreload=t.f.prototype.Qe,t.f.prototype.setAutoplay=t.f.prototype.Le,t.f.prototype.setLoop=t.f.prototype.Ne,t.f.prototype.enterFullScreen=t.f.prototype.Ic,t.f.prototype.exitFullScreen=t.f.prototype.Xd,t.f.prototype.playbackRate=t.f.prototype.playbackRate,t.f.prototype.setPlaybackRate=t.f.prototype.Pe,t.f.registerSourceHandler=t.f.Ra,t.f.selectSourceHandler=t.f.pb,t.f.prototype.setSource=t.f.prototype.Sa,t.f.prototype.disposeSourceHandler=t.f.prototype.Ka,t.f.prototype.textTracks=t.f.prototype.textTracks,t.f.prototype.remoteTextTracks=t.f.prototype.Z,t.f.prototype.addTextTrack=t.f.prototype.addTextTrack,t.f.prototype.addRemoteTextTrack=t.f.prototype.ia,t.f.prototype.removeRemoteTextTrack=t.f.prototype.Ba,$("videojs.Flash",t.g),t.g.isSupported=t.g.isSupported,t.g.canPlaySource=t.g.zc,t.g.onReady=t.g.onReady,t.g.embed=t.g.Hc,t.g.version=t.g.version,t.g.prototype.setSource=t.g.prototype.Sa,t.g.registerSourceHandler=t.g.Ra,t.g.selectSourceHandler=t.g.pb,t.g.prototype.setSource=t.g.prototype.Sa,t.g.prototype.disposeSourceHandler=t.g.prototype.Ka,$("videojs.TextTrack",t.t),$("videojs.TextTrackList",t.F),$("videojs.TextTrackCueList",t.W),$("videojs.TextTrackSettings",t.sc),t.t.prototype.id=t.t.prototype.id,t.t.prototype.label=t.t.prototype.label,t.t.prototype.kind=t.t.prototype.Wb,t.t.prototype.mode=t.t.prototype.mode,t.t.prototype.cues=t.t.prototype.Dc,t.t.prototype.activeCues=t.t.prototype.nf,t.t.prototype.addCue=t.t.prototype.vc,t.t.prototype.removeCue=t.t.prototype.bd,t.F.prototype.getTrackById=t.F.prototype.de,t.W.prototype.getCueById=t.F.prototype.be,$("videojs.CaptionsTrack",t.gf),$("videojs.SubtitlesTrack",t.mf),$("videojs.ChaptersTrack",t.hf),$("videojs.autoSetup",t.xc),$("videojs.plugin",t.Fe),$("videojs.createTimeRange",t.Lb),$("videojs.util",t.$),t.$.mergeOptions=t.$.ya,t.addLanguage=t.Jd}(),videojs.options.flash.swf=flash_fallback,!function(t,e){"use strict";t.videojs_hotkeys={version:"0.2.5"};var i=function(t){var e=this,i={volumeStep:.1,seekStep:5,enableMute:!0,enableFullscreen:!0,enableNumbers:!0};t=t||{};var o=t.volumeStep||i.volumeStep,s=t.seekStep||i.seekStep,n=t.enableMute||i.enableMute,r=t.enableFullscreen||i.enableFullscreen,a=t.enableNumbers||i.enableNumbers;e.el().hasAttribute("tabIndex")||e.el().setAttribute("tabIndex","-1"),e.on("play",function(){var t=e.el().querySelector(".iframeblocker");t&&""==t.style.display&&(t.style.display="block",t.style.bottom="39px")});var l=function(t){var i=t.which;if(e.controls()){var l=document.activeElement;if(l==e.el()||l==e.el().querySelector(".vjs-tech")||l==e.el().querySelector(".vjs-control-bar")||l==e.el().querySelector(".iframeblocker"))switch(i){case 32:t.preventDefault(),e.paused()?e.play():e.pause();break;case 37:t.preventDefault();var u=e.currentTime()-s;e.currentTime()<=s&&(u=0),e.currentTime(u);break;case 39:t.preventDefault(),e.currentTime(e.currentTime()+s);break;case 40:t.preventDefault(),e.volume(e.volume()-o);break;case 38:t.preventDefault(),e.volume(e.volume()+o);break;case 77:n&&e.muted(e.muted()?!1:!0);break;case 70:r&&(e.isFullscreen()?e.exitFullscreen():e.requestFullscreen());break;default:if((i>47&&59>i||i>95&&106>i)&&a){var c=48;i>95&&(c=96);var p=i-c;t.preventDefault(),e.currentTime(e.duration()*p*.1)}}}},u=function(t){if(e.controls()){var i=t.relatedTarget||t.toElement||document.activeElement;(i==e.el()||i==e.el().querySelector(".vjs-tech")||i==e.el().querySelector(".iframeblocker"))&&r&&(e.isFullscreen()?e.exitFullscreen():e.requestFullscreen())}};return e.on("keydown",l),e.on("dblclick",u),this};e.plugin("hotkeys",i)}(window,window.videojs),!function(t){var e={res_label:function(t){return/^\d+$/.test(t)?t+"p":t}};t.ResolutionMenuItem=t.MenuItem.extend({call_count:0,init:function(i,o){o.label=e.res_label(o.res),o.selected=o.res.toString()===i.getCurrentRes().toString(),t.MenuItem.call(this,i,o),this.resolution=o.res,this.on(["click","tap"],this.onClick),i.on("changeRes",t.bind(this,function(){this.selected(this.resolution==i.getCurrentRes()?!0:!1),this.call_count=0}))}}),t.ResolutionMenuItem.prototype.onClick=function(){this.call_count>0||(this.player().changeRes(this.resolution),this.call_count++)},t.ResolutionTitleMenuItem=t.MenuItem.extend({init:function(e,i){t.MenuItem.call(this,e,i),this.off("click")}}),t.ResolutionSelector=t.MenuButton.extend({init:function(e,i){e.availableRes=i.available_res,t.MenuButton.call(this,e,i),this.el().firstChild.firstChild.innerHTML=i.buttonText}}),t.ResolutionSelector.prototype.className="vjs-res-button",t.ResolutionSelector.prototype.createItems=function(){var e,i=this.player(),o=[];o.push(new t.ResolutionTitleMenuItem(i,{el:t.Component.prototype.createEl("li",{className:"vjs-menu-title vjs-res-menu-title",innerHTML:i.localize("Quality")})}));for(e in i.availableRes)"length"!=e&&o.push(new t.ResolutionMenuItem(i,{res:e}));return o.sort(function(t,e){return"undefined"==typeof t.resolution?-1:parseInt(e.resolution)-parseInt(t.resolution)}),o},t.plugin("resolutionSelector",function(i){if(this.el().firstChild.canPlayType){for(var o,s,n,r=this,a=r.options().sources,l=a.length,u=t.util.mergeOptions({default_res:"",force_types:!1},i||{}),c={length:0},p=u.default_res&&"string"==typeof u.default_res?u.default_res.split(","):[];l>0;)l--,a[l]["data-res"]&&(s=a[l]["data-res"],"object"!=typeof c[s]&&(c[s]=[],c.length++),c[s].push(a[l]));if(u.force_types)for(s in c)if("length"!=s){for(l=u.force_types.length,found_types=0;l>0;)for(l--,o=c[s].length;o>0;)if(o--,u.force_types[l]===c[s][o].type){found_types++;break}found_types<u.force_types.length&&(delete c[s],c.length--)}if(!(c.length<2)){for(l=0;l<p.length;l++)if(c[p[l]]){r.src(c[p[l]]),r.currentRes=p[l];break}"function"!=typeof r.localize&&(r.localize=function(t){return t}),r.getCurrentRes=function(){if("undefined"!=typeof r.currentRes)return r.currentRes;try{return res=r.options().sources[0]["data-res"]}catch(t){return""}},r.changeRes=function(t){var i,o,s=r.el().firstChild,n=r.paused(),a=r.currentTime();if(r.getCurrentRes()!=t&&r.availableRes&&r.availableRes[t]){if("none"==s.preload&&(s.preload="metadata"),r.src(r.availableRes[t]).one("loadedmetadata",function(){r.currentTime(a),r.addClass("vjs-has-started"),n||r.play()}),r.currentRes=t,r.controlBar.resolutionSelector)for(i=r.controlBar.resolutionSelector.el().firstChild.children,o=i.length;o>0;)if(o--,"vjs-control-text"==i[o].className){i[o].innerHTML=e.res_label(t);break}r.trigger("changeRes")}},s=r.getCurrentRes(),s&&(s=e.res_label(s)),n=new t.ResolutionSelector(r,{buttonText:r.localize(s||"Quality"),available_res:c}),r.controlBar.resolutionSelector=r.controlBar.addChild(n)}}})}(videojs),!function(){function t(t,e,i){t.addEventListener?t.addEventListener(e,i,!0):t.attachEvent(e,i)}function e(t,e){if("undefined"==typeof t)return!1;var i="innerText"in t?"innerText":"textContent";try{t[i]=e}catch(o){t.setAttribute("innerText",e)}}videojs.Youtube=videojs.MediaTechController.extend({init:function(t,i,o){if(this.player_=t,this.featuresProgressEvents=!1,this.featuresTimeupdateEvents=!1,this.featuresPlaybackRate=!0,this.featuresNativeTextTracks=!0,videojs.MediaTechController.call(this,t,i,o),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),this.isAndroid=/(Android)/g.test(navigator.userAgent),this.playVideoIsAllowed=!(this.isIos||this.isAndroid),(this.isIos||this.isAndroid)&&(this.player_.options().autoplay=!1),"undefined"!=typeof i.source)for(var s in i.source)i.source.hasOwnProperty(s)&&(t.options()[s]=i.source[s]);this.player_.options().playbackRates=[],this.userQuality=videojs.Youtube.convertQualityName(t.options().quality),this.playerEl_=t.el(),this.playerEl_.className+=" vjs-youtube",this.qualityButton=document.createElement("div"),this.qualityButton.setAttribute("class","vjs-quality-button vjs-menu-button vjs-control"),this.qualityButton.setAttribute("tabindex",0);var n=document.createElement("div");n.setAttribute("class","vjs-control-content"),this.qualityButton.appendChild(n),this.qualityTitle=document.createElement("span"),this.qualityTitle.setAttribute("class","vjs-control-text"),n.appendChild(this.qualityTitle),"undefined"!==t.options().quality&&e(this.qualityTitle,t.options().quality||"auto");var r=document.createElement("div");if(r.setAttribute("class","vjs-menu"),n.appendChild(r),this.qualityMenuContent=document.createElement("ul"),this.qualityMenuContent.setAttribute("class","vjs-menu-content"),r.appendChild(this.qualityMenuContent),this.id_=this.player_.id()+"_youtube_api",this.el_=videojs.Component.prototype.createEl("iframe",{id:this.id_,className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0}),this.el_.setAttribute("allowFullScreen",""),this.playerEl_.insertBefore(this.el_,this.playerEl_.firstChild),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var a=Number(RegExp.$1);this.addIframeBlocker(a)}else/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent)||(this.el_.className+=" onDesktop",this.addIframeBlocker());this.parseSrc(t.options().src),this.playOnReady=this.player_.options().autoplay&&this.playVideoIsAllowed,this.forceHTML5=!("undefined"!=typeof this.player_.options().forceHTML5&&this.player_.options().forceHTML5!==!0),this.updateIframeSrc();var l=this;t.ready(function(){if(l.player_.options().controls){var e=l.playerEl_.querySelectorAll(".vjs-control-bar")[0];e&&e.appendChild(l.qualityButton)}l.playOnReady&&!l.player_.options().ytcontrols&&("undefined"!=typeof l.player_.loadingSpinner&&l.player_.loadingSpinner.show(),"undefined"!=typeof l.player_.bigPlayButton&&l.player_.bigPlayButton.hide()),t.trigger("loadstart")}),this.on("dispose",function(){this.ytplayer&&this.ytplayer.destroy(),this.player_.options().ytcontrols||this.player_.off("waiting",this.bindedWaiting),this.playerEl_.querySelectorAll(".vjs-poster")[0].style.backgroundImage="none",this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.qualityButton.parentNode&&this.qualityButton.parentNode.removeChild(this.qualityButton),"undefined"!=typeof this.player_.loadingSpinner&&this.player_.loadingSpinner.hide(),"undefined"!=typeof this.player_.bigPlayButton&&this.player_.bigPlayButton.hide(),this.iframeblocker&&this.playerEl_.removeChild(this.iframeblocker)})}}),videojs.Youtube.prototype.loadThumbnailUrl=function(t,e){var i="https://img.youtube.com/vi/"+t+"/maxresdefault.jpg",o="https://img.youtube.com/vi/"+t+"/0.jpg";try{var s=new Image;s.onload=function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120)return void this.onerror()}else if(this.height<=90||this.width<=120)return void this.onerror();e(i)},s.onerror=function(){e(o)},s.src=i}catch(n){e(o)}},videojs.Youtube.prototype.updateIframeSrc=function(){var t="undefined"==typeof this.player_.options().ytFullScreenControls||this.player_.options().ytFullScreenControls?1:0,e={enablejsapi:1,iv_load_policy:3,playerapiid:this.id(),disablekb:1,modestbranding:1,wmode:"transparent",controls:this.player_.options().ytcontrols?1:0,fs:t,html5:this.player_.options().forceHTML5?1:null,playsinline:this.player_.options().playsInline?1:0,showinfo:0,rel:0,autoplay:this.playOnReady?1:0,loop:this.player_.options().loop?1:0,list:this.playlistId,vq:this.userQuality,origin:window.location.protocol+"//"+window.location.host},i="file:"===window.location.protocol||"app:"===window.location.protocol;i&&delete e.origin;for(var o in e)!e.hasOwnProperty(o)||"undefined"!=typeof e[o]&&null!==e[o]||delete e[o];var s=this;if(this.videoId||this.playlistId){if(this.el_.src="https://www.youtube.com/embed/"+(this.videoId||"videoseries")+"?"+videojs.Youtube.makeQueryString(e),this.player_.options().ytcontrols?this.player_.controls(!1):!this.videoId||"undefined"!=typeof this.player_.poster()&&0!==this.player_.poster().length||setTimeout(function(){s.loadThumbnailUrl(s.videoId,function(t){s.player_.poster(t)})},100),this.bindedWaiting=function(){s.onWaiting()},this.player_.on("waiting",this.bindedWaiting),videojs.Youtube.apiReady)this.loadYoutube();else if(videojs.Youtube.loadingQueue.push(this),!videojs.Youtube.apiLoading){var n=document.createElement("script");n.onerror=function(t){s.onError(t)},n.src="https://www.youtube.com/iframe_api";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r),videojs.Youtube.apiLoading=!0}}else this.el_.src="about:blank",setTimeout(function(){s.triggerReady()},500)},videojs.Youtube.prototype.onWaiting=function(){"undefined"!=typeof this.player_.bigPlayButton&&this.player_.bigPlayButton.hide()},videojs.Youtube.prototype.addIframeBlocker=function(e){this.iframeblocker=videojs.Component.prototype.createEl("div"),this.iframeblocker.className="iframeblocker",this.iframeblocker.style.position="absolute",this.iframeblocker.style.left=0,this.iframeblocker.style.right=0,this.iframeblocker.style.top=0,this.iframeblocker.style.bottom=0,e&&9>e?this.iframeblocker.style.opacity=.01:this.iframeblocker.style.background="rgba(255, 255, 255, 0.01)";var i=this;t(this.iframeblocker,"mousemove",function(t){i.player_.userActive()||i.player_.userActive(!0),t.stopPropagation(),t.preventDefault()}),t(this.iframeblocker,"click",function(){i.paused()?i.play():i.pause()}),this.playerEl_.insertBefore(this.iframeblocker,this.el_.nextSibling)},videojs.Youtube.prototype.parseSrc=function(t){if(this.srcVal=t,t){var e=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,i=t.match(e);this.videoId=i&&11===i[2].length?i[2]:null;var o=/[?&]list=([^#\&\?]+)/;i=t.match(o),null!==i&&i.length>1?this.playlistId=i[1]:this.playlistId&&delete this.playlistId;var s=/[?&]vq=([^#\&\?]+)/;i=t.match(s),null!==i&&i.length>1&&(this.userQuality=i[1],videojs.Youtube.appendQualityLabel(this.qualityTitle,this.userQuality))}},videojs.Youtube.prototype.src=function(t){if("undefined"!=typeof t){if(this.parseSrc(t),"about:blank"===this.el_.src)return void this.updateIframeSrc();if(delete this.defaultQuality,null!==this.videoId){this.player_.options().autoplay&&this.playVideoIsAllowed?this.ytplayer.loadVideoById({videoId:this.videoId,suggestedQuality:this.userQuality}):this.ytplayer.cueVideoById({videoId:this.videoId,suggestedQuality:this.userQuality});var e=this;this.loadThumbnailUrl(this.videoId,function(t){e.playerEl_.querySelectorAll(".vjs-poster")[0].style.backgroundImage="url("+t+")",e.player_.poster(t)})}}return this.srcVal},videojs.Youtube.prototype.load=function(){},videojs.Youtube.prototype.play=function(){null!==this.videoId&&(this.player_.options().ytcontrols||this.player_.trigger("waiting"),this.isReady_?(this.ytplayer.setVolume(100*this.player_.volume()),this.volumeVal>0?this.ytplayer.unMute():this.ytplayer.mute(),this.playVideoIsAllowed&&this.ytplayer.playVideo()):this.playOnReady=!0)},videojs.Youtube.prototype.pause=function(){this.ytplayer&&this.ytplayer.pauseVideo()},videojs.Youtube.prototype.paused=function(){return this.ytplayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:!0},videojs.Youtube.prototype.currentTime=function(){return this.ytplayer&&this.ytplayer.getCurrentTime?this.ytplayer.getCurrentTime():0},videojs.Youtube.prototype.setCurrentTime=function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.ytplayer.seekTo(t,!0),this.player_.trigger("timeupdate"),this.player_.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(this.checkSeekedInPauseInterval=setInterval(videojs.bind(this,function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.player_.trigger("timeupdate"),this.player_.trigger("seeked"),this.isSeeking=!1,clearInterval(this.checkSeekedInPauseInterval)):clearInterval(this.checkSeekedInPauseInterval)}),250))},videojs.Youtube.prototype.playbackRate=function(){return this.ytplayer&&this.ytplayer.getPlaybackRate?this.ytplayer.getPlaybackRate():1},videojs.Youtube.prototype.setPlaybackRate=function(t){if(this.ytplayer&&this.ytplayer.setPlaybackRate){this.ytplayer.setPlaybackRate(t);var e=this;setTimeout(function(){e.player_.trigger("ratechange")},100)}},videojs.Youtube.prototype.duration=function(){return this.ytplayer&&this.ytplayer.getDuration?this.ytplayer.getDuration():0},videojs.Youtube.prototype.currentSrc=function(){return this.srcVal},videojs.Youtube.prototype.ended=function(){return this.ytplayer?this.lastState===YT.PlayerState.ENDED:!1},videojs.Youtube.prototype.volume=function(){return this.ytplayer&&isNaN(this.volumeVal)&&(this.volumeVal=this.ytplayer.getVolume()/100,this.volumeVal=isNaN(this.volumeVal)?1:this.volumeVal,this.player_.volume(this.volumeVal)),this.volumeVal},videojs.Youtube.prototype.setVolume=function(t){"undefined"!=typeof t&&t!==this.volumeVal&&(this.ytplayer.setVolume(100*t),this.volumeVal=t,this.player_.trigger("volumechange"))},videojs.Youtube.prototype.muted=function(){return this.mutedVal},videojs.Youtube.prototype.setMuted=function(t){t?(this.storedVolume=this.volumeVal,this.ytplayer.mute(),this.player_.volume(0)):(this.ytplayer.unMute(),this.player_.volume(this.storedVolume)),this.mutedVal=t,this.player_.trigger("volumechange")},videojs.Youtube.prototype.buffered=function(){if(this.ytplayer&&this.ytplayer.getVideoBytesLoaded){var t=this.ytplayer.getVideoBytesLoaded(),e=this.ytplayer.getVideoBytesTotal();if(!t||!e)return 0;var i=this.ytplayer.getDuration(),o=t/e*i,s=this.ytplayer.getVideoStartBytes()/e*i;return videojs.createTimeRange(s,s+o)}return videojs.createTimeRange(0,0)},videojs.Youtube.prototype.supportsFullScreen=function(){return"function"!=typeof this.el_.webkitEnterFullScreen||!/Android/.test(videojs.USER_AGENT)&&/Chrome|Mac OS X 10.5/.test(videojs.USER_AGENT)?!1:!0},videojs.Youtube.isSupported=function(){return!0},videojs.Youtube.canPlaySource=function(t){return"video/youtube"===t.type},videojs.Youtube.canControlVolume=function(){return!0},videojs.Youtube.loadingQueue=[],videojs.Youtube.prototype.loadYoutube=function(){var t=this;this.ytplayer=new YT.Player(this.id_,{events:{onReady:function(e){e.target.vjsTech.onReady(),t.player_.trigger("ratechange")},onStateChange:function(t){t.target.vjsTech.onStateChange(t.data)},onPlaybackQualityChange:function(t){t.target.vjsTech.onPlaybackQualityChange(t.data)},onError:function(t){t.target.vjsTech.onError(t.data)}}}),this.ytplayer.vjsTech=this},videojs.Youtube.makeQueryString=function(t){var e=["modestbranding=1"];for(var i in t)t.hasOwnProperty(i)&&e.push(i+"="+t[i]);return e.join("&")},window.onYouTubeIframeAPIReady=function(){for(var t;t=videojs.Youtube.loadingQueue.shift();)t.loadYoutube();
videojs.Youtube.loadingQueue=[],videojs.Youtube.apiReady=!0},videojs.Youtube.prototype.onReady=function(){if(this.isReady_=!0,this.triggerReady(),this.player_.options().playbackRates=this.ytplayer.getAvailablePlaybackRates(),this.player_.controlBar.playbackRateMenuButton.update(),this.player_.trigger("loadedmetadata"),this.player_.trigger("durationchange"),this.player_.trigger("timeupdate"),"undefined"==typeof this.player_.loadingSpinner||this.isIos||this.isAndroid||this.player_.loadingSpinner.hide(),this.player_.options().muted&&this.setMuted(!0),!this.videoId&&this.playlistId){this.videoId=this.ytplayer.getPlaylist()[0];var t=this;this.loadThumbnailUrl(this.videoId,function(e){t.player_.poster(e)})}this.playOnReady&&(this.playOnReady=!1,this.play())},videojs.Youtube.prototype.updateCaptions=function(){this.ytplayer.loadModule("captions"),this.ytplayer.loadModule("cc");var t=this.ytplayer.getOptions(),e=t.indexOf("captions")>=0?"captions":t.indexOf("cc")>=0?"cc":null;if(null!==e&&!this.tracked_){var i=this.ytplayer.getOption(e,"tracklist");if(i&&i.length>0){for(var o,s=0;s<i.length;s++)o=this.addTextTrack("captions",i[s].displayName,i[s].languageCode);var n=this;this.textTracks().on("change",function(){for(var t=null,i=0;i<this.length;i++)if("showing"===this[i].mode){t=this[i].language;break}null!==t?n.ytplayer.setOption(e,"track",{languageCode:t}):n.ytplayer.setOption(e,"track",{})}),this.tracked_=!0}}},videojs.Youtube.prototype.updateQualities=function(){function e(e){t(e,"click",function(){var t=this.getAttribute("data-val");o.ytplayer.setPlaybackQuality(t),o.userQuality=t,videojs.Youtube.appendQualityLabel(o.qualityTitle,t);var e=o.qualityMenuContent.querySelector(".vjs-selected");e&&videojs.Youtube.removeClass(e,"vjs-selected"),videojs.Youtube.addClass(this,"vjs-selected")})}var i=this.ytplayer.getAvailableQualityLevels(),o=this;if(i.indexOf(this.userQuality)<0&&videojs.Youtube.appendQualityLabel(o.qualityTitle,this.defaultQuality),0===i.length)this.qualityButton.style.display="none";else{for(this.qualityButton.style.display="";this.qualityMenuContent.hasChildNodes();)this.qualityMenuContent.removeChild(this.qualityMenuContent.lastChild);for(var s=0;s<i.length;++s){var n=document.createElement("li");n.setAttribute("class","vjs-menu-item"),n.setAttribute("data-val",i[s]),videojs.Youtube.appendQualityLabel(n,i[s]),i[s]===this.quality&&videojs.Youtube.addClass(n,"vjs-selected"),e(n),this.qualityMenuContent.appendChild(n)}}},videojs.Youtube.prototype.onStateChange=function(t){if(t!==this.lastState){switch(t){case-1:this.player_.trigger("durationchange");break;case YT.PlayerState.ENDED:var e=!0;this.playlistId&&!this.player_.options().loop&&(e=0===this.ytplayer.getPlaylistIndex()),e&&(this.player_.options().ytcontrols||(this.playerEl_.querySelectorAll(".vjs-poster")[0].style.display="block","undefined"!=typeof this.player_.bigPlayButton&&this.player_.bigPlayButton.show()),this.player_.trigger("pause"),this.player_.trigger("ended"));break;case YT.PlayerState.PLAYING:this.playerEl_.querySelectorAll(".vjs-poster")[0].style.display="none",this.playVideoIsAllowed=!0,this.updateQualities(),this.updateCaptions(),this.player_.trigger("timeupdate"),this.player_.trigger("durationchange"),this.player_.trigger("playing"),this.player_.trigger("play"),this.isSeeking&&(this.player_.trigger("seeked"),this.isSeeking=!1);break;case YT.PlayerState.PAUSED:this.player_.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.options().ytcontrols||this.player_.trigger("waiting");break;case YT.PlayerState.CUED:}this.lastState=t}},videojs.Youtube.convertQualityName=function(t){switch(t){case"144p":return"tiny";case"240p":return"small";case"360p":return"medium";case"480p":return"large";case"720p":return"hd720";case"1080p":return"hd1080";case"1440p":return"hd1440";case"2160p":return"hd2160"}return"auto"},videojs.Youtube.parseQualityName=function(t){switch(t){case"tiny":return"144p";case"small":return"240p";case"medium":return"360p";case"large":return"480p";case"hd720":return"720p";case"hd1080":return"1080p";case"hd1440":return"1440p";case"hd2160":return"2160p"}return"auto"},videojs.Youtube.appendQualityLabel=function(t,i){e(t,videojs.Youtube.parseQualityName(i));var o=document.createElement("span");switch(o.setAttribute("class","vjs-hd-label"),i){case"hd720":case"hd1080":case"hd1440":e(o,"HD"),t.appendChild(o);break;case"hd2160":e(o,"4K"),t.appendChild(o)}},videojs.Youtube.prototype.onPlaybackQualityChange=function(t){if("undefined"!=typeof this.defaultQuality||(this.defaultQuality=t,"undefined"==typeof this.userQuality)){switch(this.quality=t,videojs.Youtube.appendQualityLabel(this.qualityTitle,t),t){case"medium":this.player_.videoWidth=480,this.player_.videoHeight=360;break;case"large":this.player_.videoWidth=640,this.player_.videoHeight=480;break;case"hd720":this.player_.videoWidth=960,this.player_.videoHeight=720;break;case"hd1080":this.player_.videoWidth=1440,this.player_.videoHeight=1080;break;case"highres":this.player_.videoWidth=1920,this.player_.videoHeight=1080;break;case"small":this.player_.videoWidth=320,this.player_.videoHeight=240;break;case"tiny":this.player_.videoWidth=144,this.player_.videoHeight=108;break;default:this.player_.videoWidth=0,this.player_.videoHeight=0}this.player_.trigger("ratechange")}},videojs.Youtube.prototype.onError=function(t){this.player_.error(t)},videojs.Youtube.addClass=function(t,e){-1===(" "+t.className+" ").indexOf(" "+e+" ")&&(t.className=""===t.className?e:t.className+" "+e)},videojs.Youtube.removeClass=function(t,e){var i,o;if(-1!==t.className.indexOf(e)){for(i=t.className.split(" "),o=i.length-1;o>=0;o--)i[o]===e&&i.splice(o,1);t.className=i.join(" ")}};var i=document.createElement("style"),o=" .vjs-youtube .vjs-poster { background-size: 100%!important; }.vjs-youtube .vjs-poster, .vjs-youtube .vjs-loading-spinner, .vjs-youtube .vjs-big-play-button, .vjs-youtube .vjs-text-track-display{ pointer-events: none !important; }.vjs-youtube.vjs-user-active .iframeblocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-tech.onDesktop { pointer-events: none; }.vjs-quality-button > div:first-child > span:first-child { position:relative;top:7px }";i.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i),i.styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length>>>0,i=Number(arguments[1])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=e);e>i;i++)if(i in this&&this[i]===t)return i;return-1})}();var VimeoState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3};videojs.Vimeo=videojs.MediaTechController.extend({init:function(t,e,i){if(videojs.MediaTechController.call(this,t,e,i),"undefined"!=typeof e.source)for(var o in e.source)t.options()[o]=e.source[o];if(this.player_=t,this.player_el_=document.getElementById(this.player_.id()),"undefined"!=typeof e.source)for(var o in e.source)t.options()[o]=e.source[o];this.player_.controls(!1),this.id_=this.player_.id()+"_vimeo_api",this.el_=videojs.Component.prototype.createEl("iframe",{id:this.id_,className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0,webkitAllowFullScreen:"true",mozallowfullscreen:"true",allowFullScreen:"true"}),this.player_el_.insertBefore(this.el_,this.player_el_.firstChild),this.baseUrl=document.location.protocol+"//player.vimeo.com/video/",this.vimeo={},this.vimeoInfo={};var s=this;this.el_.onload=function(){s.onLoad()},this.startMuted=t.options().muted,this.src(t.options().src)}}),videojs.Vimeo.prototype.dispose=function(){this.vimeo.api("unload"),delete this.vimeo,this.el_.parentNode.removeChild(this.el_),videojs.MediaTechController.prototype.dispose.call(this)},videojs.Vimeo.prototype.src=function(t){this.isReady_=!1;var e=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,i=t.match(e);i&&(this.videoId=i[5]);var o={api:1,byline:0,portrait:0,show_title:0,show_byline:0,show_portait:0,fullscreen:1,player_id:this.id_,autoplay:this.player_.options().autoplay?1:0,loop:this.player_.options().loop?1:0};this.el_.src=this.baseUrl+this.videoId+"?"+videojs.Vimeo.makeQueryString(o)},videojs.Vimeo.prototype.load=function(){},videojs.Vimeo.prototype.play=function(){this.vimeo.api("play")},videojs.Vimeo.prototype.pause=function(){this.vimeo.api("pause")},videojs.Vimeo.prototype.paused=function(){return this.vimeoInfo.state!==VimeoState.PLAYING&&this.vimeoInfo.state!==VimeoState.BUFFERING},videojs.Vimeo.prototype.currentTime=function(){return this.vimeoInfo.time||0},videojs.Vimeo.prototype.setCurrentTime=function(t){this.vimeo.api("seekTo",t),this.player_.trigger("timeupdate")},videojs.Vimeo.prototype.duration=function(){return this.vimeoInfo.duration||0},videojs.Vimeo.prototype.buffered=function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration||0)},videojs.Vimeo.prototype.volume=function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},videojs.Vimeo.prototype.setVolume=function(t){this.vimeo.api("setvolume",t),this.vimeoInfo.volume=t,this.player_.trigger("volumechange")},videojs.Vimeo.prototype.currentSrc=function(){return this.el_.src},videojs.Vimeo.prototype.muted=function(){return this.vimeoInfo.muted||!1},videojs.Vimeo.prototype.setMuted=function(t){t?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=t,this.player_.trigger("volumechange")},videojs.Vimeo.prototype.onReady=function(){this.isReady_=!0,this.triggerReady(),this.startMuted&&(this.setMuted(!0),this.startMuted=!1)},videojs.Vimeo.prototype.onLoad=function(){this.vimeo.api&&(this.vimeo.api("unload"),delete this.vimeo),this.vimeo=$f(this.el_),this.vimeoInfo={state:VimeoState.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:this.baseUrl+this.videoId,error:null};var t=this;this.vimeo.addEvent("ready",function(){t.onReady(),t.vimeo.addEvent("loadProgress",function(e){t.onLoadProgress(e)}),t.vimeo.addEvent("playProgress",function(e){t.onPlayProgress(e)}),t.vimeo.addEvent("play",function(){t.onPlay()}),t.vimeo.addEvent("pause",function(){t.onPause()}),t.vimeo.addEvent("finish",function(){t.onFinish()}),t.vimeo.addEvent("seek",function(e){t.onSeek(e)})})},videojs.Vimeo.prototype.onLoadProgress=function(t){var e=!this.vimeoInfo.duration;this.vimeoInfo.duration=t.duration,this.vimeoInfo.buffered=t.percent,this.player_.trigger("progress"),e&&this.player_.trigger("durationchange")},videojs.Vimeo.prototype.onPlayProgress=function(t){this.vimeoInfo.time=t.seconds,this.player_.trigger("timeupdate")},videojs.Vimeo.prototype.onPlay=function(){this.vimeoInfo.state=VimeoState.PLAYING,this.player_.trigger("play")},videojs.Vimeo.prototype.onPause=function(){this.vimeoInfo.state=VimeoState.PAUSED,this.player_.trigger("pause")},videojs.Vimeo.prototype.onFinish=function(){this.vimeoInfo.state=VimeoState.ENDED,this.player_.trigger("ended")},videojs.Vimeo.prototype.onSeek=function(t){this.vimeoInfo.time=t.seconds,this.player_.trigger("timeupdate"),this.player_.trigger("seeked")},videojs.Vimeo.prototype.onError=function(t){this.player_.error=t,this.player_.trigger("error")},videojs.Vimeo.isSupported=function(){return!0},videojs.Vimeo.prototype.supportsFullScreen=function(){return!1},videojs.Vimeo.canPlaySource=function(t){return"video/vimeo"==t.type},videojs.Vimeo.makeQueryString=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e.join("&")};var Froogaloop=function(){function t(e){return new t.fn.init(e)}function e(t,e,i){if(!i||!i.contentWindow||!i.contentWindow.postMessage)return!1;var o=i.getAttribute("src").split("?")[0],s=JSON.stringify({method:t,value:e});"//"===o.substr(0,2)&&(o=window.location.protocol+o),i.contentWindow.postMessage(s,o)}function i(t){var e,i;try{e=JSON.parse(t.data),i=e.event||e.method}catch(o){}if("ready"!=i||u||(u=!0),t.origin!=c)return!1;var n=e.value,r=e.data,a=""===a?null:e.player_id,l=s(i,a),p=[];return l?(void 0!==n&&p.push(n),r&&p.push(r),a&&p.push(a),p.length>0?l.apply(null,p):l.call()):!1}function o(t,e,i){i?(l[i]||(l[i]={}),l[i][t]=e):l[t]=e}function s(t,e){return e&&l[e]?l[e][t]:l[t]}function n(t,e){if(e&&l[e]){if(!l[e][t])return!1;l[e][t]=null}else{if(!l[t])return!1;l[t]=null}return!0}function r(t){"//"===t.substr(0,2)&&(t=window.location.protocol+t);for(var e=t.split("/"),i="",o=0,s=e.length;s>o&&3>o;o++)i+=e[o],2>o&&(i+="/");return i}function a(t){return!!(t&&t.constructor&&t.call&&t.apply)}var l={},u=!1,c=(Array.prototype.slice,"");return t.fn=t.prototype={element:null,init:function(t){return"string"==typeof t&&(t=document.getElementById(t)),this.element=t,c=r(this.element.getAttribute("src")),this},api:function(t,i){if(!this.element||!t)return!1;var s=this,n=s.element,r=""!==n.id?n.id:null,l=a(i)?null:i,u=a(i)?i:null;return u&&o(t,u,r),e(t,l,n),s},addEvent:function(t,i){if(!this.element)return!1;var s=this,n=s.element,r=""!==n.id?n.id:null;return o(t,i,r),"ready"!=t?e("addEventListener",t,n):"ready"==t&&u&&i.call(null,r),s},removeEvent:function(t){if(!this.element)return!1;var i=this,o=i.element,s=""!==o.id?o.id:null,r=n(t,s);"ready"!=t&&r&&e("removeEventListener",t,o)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",i,!1):window.attachEvent("onmessage",i),window.Froogaloop=window.$f=t}();videojs.addLanguage("de",{Play:"Wiedergabe",Pause:"Pause","Current Time":"Aktueller Zeitpunkt","Duration Time":"Dauer","Remaining Time":"Verbleibende Zeit","Stream Type":"Streamtyp",LIVE:"LIVE",Loaded:"Geladen",Progress:"Status",Fullscreen:"Vollbild","Non-Fullscreen":"Kein Vollbild",Mute:"Ton aus",Unmuted:"Ton ein","Playback Rate":"Wiedergabegeschwindigkeit",Subtitles:"Untertitel","subtitles off":"Untertitel aus",Captions:"Untertitel","captions off":"Untertitel aus",Chapters:"Kapitel","You aborted the video playback":"Sie haben die Videowiedergabe abgebrochen.","A network error caused the video download to fail part-way.":"Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.","The video could not be loaded, either because the server or network failed or because the format is not supported.":"Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.","The video playback was aborted due to a corruption problem or because the video used features your browser did not support.":"Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.","No compatible source was found for this video.":"Für dieses Video wurde keine kompatible Quelle gefunden."}),$("video.sublime, video.afterglow").each(function(){"none"!==$(this).css("display")&&createPlayer($(this))}),$("a.sublime, a.afterglow").length>0&&(loadScript("https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/jquery.magnific-popup.min.js",function(){$("a.sublime, a.afterglow").each(function(){playerid=$(this).attr("href"),$link=$(this),$link.magnificPopup({src:playerid,type:"inline"}).on("mfpOpen",function(){var t=$.magnificPopup.instance.content;$.magnificPopup.instance.embeddedPlayer=void 0!=t.attr("data-youtube-id")||void 0!=t.attr("data-vimeo-id"),$.magnificPopup.instance.originalSources=t.find("source"),$.magnificPopup.instance.originalWidth=$.magnificPopup.instance.content.attr("width"),$.magnificPopup.instance.originalHeight=$.magnificPopup.instance.content.attr("height"),t.css("display","block").addClass("responsive").addClass("opened").attr("autoplay","true"),createPlayer(t).ready(function(){$('[class^="vjs-"]').addClass("mfp-prevent-close")})}).on("mfpBeforeClose",function(){if(currentid=$.magnificPopup.instance.content.attr("id"),!$.magnificPopup.instance.embeddedPlayer){var t=videojs(currentid);t.pause(),t.isFullscreen&&t.exitFullscreen()}}).on("mfpClose",function(){currentid=$.magnificPopup.instance.content.attr("id"),playerid=currentid.substring(0,currentid.length-10),$.magnificPopup.instance.embeddedPlayer||videojs(playerid).dispose(),$.magnificPopup.instance.content.attr("id",playerid).removeClass("vjs-tech").removeAttr("src").removeAttr("style").removeAttr("autoplay").attr("width",$.magnificPopup.instance.originalWidth).attr("height",$.magnificPopup.instance.originalHeight).append($.magnificPopup.instance.originalSources)})})}),loadcssfile("https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/magnific-popup.min.css","css"))}function createPlayer(t){if(t.find("source").length>1&&t.find("source").each(function(){void 0===$(this).attr("data-res")&&($(this).attr("data-quality")?$(this).attr("data-res",$(this).attr("data-quality")):$(this).attr("data-res","SD"))}),t.addClass("video-js").addClass("vjs-sublime-skin").addClass("afterglow").removeClass("sublime"),(t.hasClass("responsive")||"fit"===t.attr("data-autoresize"))&&t.addClass("vjs-responsive"),t.find('source[data-quality="hd"]').attr("data-res","HD"),"true"===t.attr("data-autoplay")||"true"===t.attr("autoplay"))var e=t.attr("data-autoplay")||t.attr("autoplay");else var e=!1;if(t.attr("data-preload")||t.attr("preload"))var i=t.attr(t.attr("data-preload")?"data-preload":"preload");else var i="auto";if((t.attr("data-poster")||t.attr("poster"))&&"none"!==t.css("display"))var o=t.attr(t.attr("data-poster")?"data-poster":"poster");else var o=!1;var s={controls:!0,autoplay:e,preload:i,poster:o};if(void 0!==language&&""!==language&&(s.language=language),void 0!==t.attr("data-youtube-id")&&""!==t.attr("data-youtube-id")&&(s.src="https://youtu.be/"+t.attr("data-youtube-id"),s.techOrder=["youtube","html5","flash"]),void 0!==t.attr("data-vimeo-id")&&""!==t.attr("data-vimeo-id")&&(s.src="https://vimeo.com/"+t.attr("data-vimeo-id"),s.techOrder=["vimeo","html5","flash"]),t.hasClass("vjs-responsive")){var n=t.attr("height")/t.attr("width");t.css("padding-top",100*n+"%"),t.attr("width","auto"),t.attr("height","auto")}var r=videojs(t.get(0),s,function(){s.autoplay&&this.play(),$.inArray("youtube",this.options().techOrder)>-1&&$(".vjs-control-bar").addClass("vjs-yt-control-bar"),$.inArray("vimeo",this.options().techOrder)>-1&&$(".vjs-control-bar").addClass("vjs-vm-control-bar"),this.hotkeys(),t.find("source").length>1?this.resolutionSelector():t.parent().addClass("vjs-single-resolution")});return r}function loadScript(t,e){var i=document.createElement("script");i.type="text/javascript",void 0!==e&&(i.readyState?i.onreadystatechange=function(){("loaded"==i.readyState||"complete"==i.readyState)&&(i.onreadystatechange=null,e())}:i.onload=function(){e()}),i.src=t,document.getElementsByTagName("head")[0].appendChild(i)}function loadcssfile(t,e){if("css"==e){var i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",t)}"undefined"!=typeof i&&document.getElementsByTagName("head")[0].appendChild(i)}window.jQuery?initializePlayer():loadScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js",function(){initializePlayer()});
@moay
Copy link
Author

moay commented Mar 23, 2017

This is outdated, view afterglowplayer.com for the final version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment