filesbox/web/dist/design/designstatic/chatroom/video/alt/video.novtt.js

147 lines
216 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
/**
* @license
* Video.js 5.8.7 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/(function(wt){if(typeof exports=="object"&&typeof module!="undefined")module.exports=wt();else if(typeof define=="function"&&define.amd)define([],wt);else{var Et;typeof window!="undefined"?Et=window:typeof global!="undefined"?Et=global:typeof self!="undefined"?Et=self:Et=this,Et.videojs=wt()}})(function(){var wt,Et,Mt;return function t(S,a,c){function i(f,p){if(!a[f]){if(!S[f]){var u=typeof require=="function"&&require;if(!p&&u)return u(f,!0);if(b)return b(f,!0);var o=new Error("Cannot find module '"+f+"'");throw o.code="MODULE_NOT_FOUND",o}var r=a[f]={exports:{}};S[f][0].call(r.exports,function(e){var y=S[f][1][e];return i(y||e)},r,r.exports,t,S,a,c)}return a[f].exports}for(var b=typeof require=="function"&&require,d=0;d<c.length;d++)i(c[d]);return i}({1:[function(t,S,a){(function(c){var i=typeof c!="undefined"?c:typeof window!="undefined"?window:{},b=t("min-document");if(typeof document!="undefined")S.exports=document;else{var d=i["__GLOBAL_DOCUMENT_CACHE@4"];d||(d=i["__GLOBAL_DOCUMENT_CACHE@4"]=b),S.exports=d}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":3}],2:[function(t,S,a){(function(c){typeof window!="undefined"?S.exports=window:typeof c!="undefined"?S.exports=c:typeof self!="undefined"?S.exports=self:S.exports={}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],3:[function(t,S,a){},{}],4:[function(t,S,a){var c=t("../internal/getNative"),i=c(Date,"now"),b=i||function(){return new Date().getTime()};S.exports=b},{"../internal/getNative":20}],5:[function(t,S,a){var c=t("../lang/isObject"),i=t("../date/now"),b="Expected a function",d=Math.max;function f(p,u,o){var r,e,y,n,h,s,T,g=0,_=!1,l=!0;if(typeof p!="function")throw new TypeError(b);if(u=u<0?0:+u||0,o===!0){var m=!0;l=!1}else c(o)&&(m=!!o.leading,_="maxWait"in o&&d(+o.maxWait||0,u),l="trailing"in o?!!o.trailing:l);function w(){s&&clearTimeout(s),e&&clearTimeout(e),g=0,e=s=T=void 0}function v(E,J){J&&clearTimeout(J),e=s=T=void 0,E&&(g=i(),y=p.apply(h,r),!s&&!e&&(r=h=void 0))}function x(){var E=u-(i()-n);E<=0||E>u?v(T,e):s=setTimeout(x,E)}function k(){v(l,s)}function D(){if(r=arguments,n=i(),h=this,T=l&&(s||!m),_===!1)var E=m&&!s;else{!e&&!m&&(g=n);var J=_-(n-g),R=J<=0||J>_;R?(e&&(e=clearTimeout(e)),g=n,y=p.apply(h,r)):e||(e=setTimeout(k,J))}return R&&s?s=clearTimeout(s):!s&&u!==_&&(s=setTimeout(x,u)),E&&(R=!0,y=p.apply(h,r)),R&&!s&&!e&&(r=h=void 0),y}return D.cancel=w,D}S.exports=f},{"../date/now":4,"../lang/isObject":33}],6:[function(t,S,a){var c="Expected a function",i=Math.max;function b(d,f){if(typeof d!="function")throw new TypeError(c);return f=i(f===void 0?d.length-1:+f||0,0),function(){for(var p=arguments,u=-1,o=i(p.length-f,0),r=Array(o);++u<o;)r[u]=p[f+u];switch(f){case 0:return d.call(this,r);case 1:return d.call(this,p[0],r);case 2:return d.call(this,p[0],p[1],r)}var e=Array(f+1);for(u=-1;++u<f;)e[u]=p[u];return e[f]=r,d.apply(this,e)}}S.exports=b},{}],7:[function(t,S,a){var c=t("./debounce"),i=t("../lang/isObject"),b="Expected a function";function d(f,p,u){var o=!0,r=!0;if(typeof f!="function")throw new TypeError(b);return u===!1?o=!1:i(u)&&(o="leading"in u?!!u.leading:o,r="trailing"in u?!!u.trailing:r),c(f,p,{leading:o,maxWait:+p,trailing:r})}S.exports=d},{"../lang/isObject":33,"./debounce":5}],8:[function(t,S,a){function c(i,b){var d=-1,f=i.length;for(b||(b=Array(f));++d<f;)b[d]=i[d];return b}S.exports=c},{}],9:[function(t,S,a){function c(i,b){for(var d=-1,f=i.length;++d<f&&b(i[d],d,i)!==!1;);return i}S.exports=c},{}],10:[function(t,S,a){function c(i,b,d){d||(d={});for(var f=-1,p=b.length;++f<p;){var u=b[f];d[u]=i[u]}return d}S.exports=c},{}],11:[function(t,S,a){var c=t("./createBaseFor"),i=c();S.exports=i},{"./createBaseFor":18}],12:[function(t,S,a){var c=t("./baseFor"),i=t("../object/keysIn");function b(d,f){return c(d,f,i)}S.exports=b},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,S,a){var c=t("./arrayEach"),i=t("./baseMergeDeep"),b=t("../lang/isArray"),d=t("./isArrayLike"),f=t(".
`),function(p){var u=p.indexOf(":"),o=c(p.slice(0,u)).toLowerCase(),r=c(p.slice(u+1));typeof f[o]=="undefined"?f[o]=r:b(f[o])?f[o].push(r):f[o]=[f[o],r]}),f}},{"for-each":59,trim:60}],62:[function(t,S,a){S.exports=i;var c=Object.prototype.hasOwnProperty;function i(){for(var b={},d=0;d<arguments.length;d++){var f=arguments[d];for(var p in f)c.call(f,p)&&(b[p]=f[p])}return b}},{}],63:[function(t,S,a){"use strict";a.__esModule=!0;function c(r){return r&&r.__esModule?r:{default:r}}function i(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function b(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var d=t("./button.js"),f=c(d),p=t("./component.js"),u=c(p),o=function(r){b(e,r);function e(y,n){i(this,e),r.call(this,y,n)}return e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(f.default);o.prototype.controlText_="Play Video",u.default.registerComponent("BigPlayButton",o),a.default=o,S.exports=a.default},{"./button.js":64,"./component.js":67}],64:[function(t,S,a){"use strict";a.__esModule=!0;function c(w){if(w&&w.__esModule)return w;var v={};if(w!=null)for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(v[x]=w[x]);return v.default=w,v}function i(w){return w&&w.__esModule?w:{default:w}}function b(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function d(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(w,v):w.__proto__=v)}var f=t("./clickable-component.js"),p=i(f),u=t("./component"),o=i(u),r=t("./utils/events.js"),e=c(r),y=t("./utils/fn.js"),n=c(y),h=t("./utils/log.js"),s=i(h),T=t("global/document"),g=i(T),_=t("object.assign"),l=i(_),m=function(w){d(v,w);function v(x,k){b(this,v),w.call(this,x,k)}return v.prototype.createEl=function(){var k=arguments.length<=0||arguments[0]===void 0?"button":arguments[0],D=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],E=arguments.length<=2||arguments[2]===void 0?{}:arguments[2];D=l.default({className:this.buildCSSClass()},D),k!=="button"&&s.default.warn("Creating a Button with an HTML element of "+k+" is deprecated; use ClickableComponent instead."),E=l.default({type:"button","aria-live":"polite"},E);var J=o.default.prototype.createEl.call(this,k,D,E);return this.createControlTextEl(J),J},v.prototype.addChild=function(k){var D=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],E=this.constructor.name;return s.default.warn("Adding an actionable (user controllable) child to a Button ("+E+") is not supported; use a ClickableComponent instead."),o.default.prototype.addChild.call(this,k,D)},v.prototype.handleKeyPress=function(k){k.which===32||k.which===13||w.prototype.handleKeyPress.call(this,k)},v}(p.default);o.default.registerComponent("Button",m),a.default=m,S.exports=a.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":133,"./utils/fn.js":134,"./utils/log.js":137,"global/document":1,"object.assign":45}],65:[function(t,S,a){"use strict";a.__esModule=!0;function c(w){if(w&&w.__esModule)return w;var v={};if(w!=null)for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(v[x]=w[x]);return v.default=w,v}function i(w){return w&&w.__esModule?w:{default:w}}function b(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function d(w,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);w.prototype=Object.create(v&&v.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.se
.`+Z+` {
width: `+C+`px;
height: `+U+`px;
}
.`+Z+`.vjs-fluid {
padding-top: `+et*100+`%;
}
`)},N.prototype.loadTech_=function(C,U){this.tech_&&this.unloadTech_(),C!=="Html5"&&this.tag&&(St.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=C,this.isReady_=!1;var X=W.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:U,playerId:this.id(),techId:this.id()+"_"+C+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[C.toLowerCase()]);this.tag&&(X.tag=this.tag),U&&(this.currentType_=U.type,U.src===this.cache_.src&&this.cache_.currentTime>0&&(X.startTime=this.cache_.currentTime),this.cache_.src=U.src);var Z=St.default.getTech(C);Z||(Z=p.default.getComponent(C)),this.tech_=new Z(X),this.tech_.ready(g.bind(this,this.handleTechReady_),!0),Y.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(C!=="Html5"||!this.tag)&&s.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},N.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=Y.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},N.prototype.tech=function(C){if(C&&C.IWillNotUseThisInPlugins)return this.tech_;var U=`
Please make sure that you are not using this inside of a plugin.
To disable this alert and error, please pass in an object with
\`IWillNotUseThisInPlugins\` to the \`tech\` method. See
https://github.com/videojs/video.js/issues/2617 for more info.
`;throw e.default.alert(U),new Error(U)},N.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},N.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},N.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},N.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},N.prototype.hasStarted=function(C){return C!==void 0?(this.hasStarted_!==C&&(this.hasStarted_=C,C?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},N.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},N.prototype.handleTechWaiting_=function(){var C=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return C.removeClass("vjs-waiting")})},N.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},N.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},N.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},N.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},N.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},N.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},N.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},N.prototype.handleTechProgress_=function(){this.trigger("progress")},N.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},N.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},N.prototype.handleTechClick_=function(C){C.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},N.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},N.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},N.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},N.prototype.handleTechTouchEnd_=function(C){C.preventDefault()},N.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},N.prototype.handleStageClick_=function(){this.reportUserActivity()},N.prototype.handleTechFullscreenChange_=function(C,U){U&&this.isFullscreen(U.isFullscreen),this.trigger("fullscreenchange")},N.prototype.handleTechError_=function(){var C=this.tech_.error();this.error(C&&C.code)},N.prototype.handleTechSuspend_=function(){this.trigger("suspend")},N.prototype.handleTechAbort_=function(){this.trigger("abort")},N.prototype.handleTechEmptied_=function(){this.trigger("emptied")},N.prototype.handleTechStalled_=function(){this.trigger("stalled")},N.prototype.handleTechLoadedMetaData_=function(){this
<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> <!-- vjs-fg-color -->
<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> <!-- vjs-bg-color -->
<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> <!-- vjs-window-color -->
</div> <!-- vjs-tracksettings -->
<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> <!-- vjs-font-percent -->
<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> <!-- vjs-edge-style -->
<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> <!-- vjs-font-family -->
</div>
</div>
<div class="vjs-tracksettings-controls">
<button class="vjs-default-button">Defaults</button>
<button class="vjs-done-button">Done</button>
</div>`;return v}a.default=_,S.exports=a.default},{"../component":67,"../utils/events.js":133,"../utils/fn.js":134,"../utils/log.js":137,"global/window":2,"safe-json-parse/tuple":54}],128:[function(t,S,a){"use strict";a.__esModule=!0;function c(j){if(j&&j.__esModule)return j;var L={};if(j!=null)for(var A in j)Object.prototype.hasOwnProperty.call(j,A)&&(L[A]=j[A]);return L.default=j,L}function i(j){return j&&j.__esModule?j:{default:j}}function b(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function d(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(j,L):j.__proto__=L)}var f=t("./text-track-cue-list"),p=i(f),u=t("../utils/fn.js"),o=c(u),r=t("../utils/guid.js"),e=c(r),y=t("../utils/browser.js"),n=c(y),h=t("./text-track-enums"),s=c(h),T=t("../utils/log.js"),g=i(T),_=t("../event-target"),l=i(_),m=t("global/document"),w=i(m),v=t("global/window"),x=i(v),k=t("../utils/url.js"),D=t("xhr"),E=i(D),J=function(L,A){var O=new x.default.WebVTT.Parser(x.default,x.default.vttjs,x.default.WebVTT.StringDecoder());O.oncue=function(P){A.addCue(P)},O.onparsingerror=function(P){g.default.error(P)},O.onflush=function(){A.trigger({type:"loadeddata",target:A})},O.parse(L),O.flush()},R=function(L,A){var O={uri:L},P=k.isCrossOrigin(L);P&&(O.cors=P),E.default(O,o.bind(this,function(M,I,W){if(M)return g.default.error(M,I);A.loaded_=!0,typeof x.default.WebVTT!="function"?A.tech_&&function(){var $=function(){return J(W,A)};A.tech_.on("vttjsloaded",$),A.tech_.on("vttjserror",function(){g.default.error("vttjs failed to load, stopping trying to process "+A.src),A.tech_.off("vttjsloaded",$)})}():J(W,A)}))},F=function(j){d(L,j);function L(){var A=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(b(this,L),j.call(this),!A.tech)throw new Error("A tech was not provided.");var O=this;if(n.IS_IE8){O=w.default.createElement("custom");for(var P in L.prototype)P!=="constructor"&&(O[P]=L.prototype[P])}O.tech_=A.tech;var M=s.TextTrackMode[A.mode]||"disabled",I=s.TextTrackKind[A.kind]||"subtitles",W=A.label||"",$=A.language||A.srclang||"",z=A.id||"vjs_text_track_"+e.newGUID();(I==="metadata"||I==="chapters")&&(M="hidden"),O.cues_=[],O.activeCues_=[];var Q=new p.default(O.cues_),Y=new p.default(O.activeCues_),nt=!1,lt=o.bind(O,function(){this.activeCues,nt&&(this.trigger("cuechange"),nt=!1)});if(M!=="disabled"&&O.tech_.on("timeupdate",lt),Object.defineProperty(O,"kind",{get:function(){return I},set:function(){}}),Object.defineProperty(O,"label",{get:function(){return W},set:function(){}}),Object.defineProperty(O,"language",{get:function(){return $},set:function(){}}),Object.defineProperty(O,"id",{get:function(){return z},set:function(){}}),Object.defineProperty(O,"mode",{get:function(){return M},set:function(yt){!s.TextTrackMode[yt]||(M=yt,M==="showing"&&this.tech_.on("timeupdate",lt),this.trigger("modechange"))}}),Object.defineProperty(O,"cues",{get:function(){return this.loaded_?Q:null},set:function(){}}),Object.defineProperty(O,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return Y;for(var yt=this.tech_.currentTime(),gt=[],B=0,V=this.cues.length;B<V;B++){var K=this.cues[B];(K.startTime<=yt&&K.endTime>=yt||K.startTime===K.endTime&&K.startTime<=yt&&K.startTime+.5>=yt)&&gt.push(K)}if(nt=!1,gt.length!==this.activeCues_.length)nt=!0;else for(var B=0;B<gt.length;B++)this.activeCues_.indexOf(gt[B])===-1&&(nt=!0);return this.activeCues_=gt,Y.setCues_(this.activeCues_),Y},set:function(){}}),A.src?(O.src=A.src,R(A.src,O)):O.loaded_=!0,n.IS_IE8)return O}return L.prototype.addCue=function(O){var P=this.tech_.textTracks();if(P)for(var M=0;M<P.length;M++)P[M]!==this&&P[M].removeCue(O);this.cues_.push(O),this.cues.setCues_(this.cues_)},L.prototype.removeCue=function(O){for(var P=!1,M=0,I=this.cues_.length;M<I;M++){var W=this.cues_[M];W===O&&(this.cues_.splice(M
has been deprecated. Use the third argument instead.
createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
has been deprecated. Use the third argument instead.
createEl(type, properties, attributes). Attempting to set `," to ","."]);function i(B){if(B&&B.__esModule)return B;var V={};if(B!=null)for(var K in B)Object.prototype.hasOwnProperty.call(B,K)&&(V[K]=B[K]);return V.default=B,V}function b(B){return B&&B.__esModule?B:{default:B}}function d(B,V){return B.raw=V,B}var f=t("global/document"),p=b(f),u=t("global/window"),o=b(u),r=t("./guid.js"),e=i(r),y=t("./log.js"),n=b(y),h=t("tsml"),s=b(h);function T(B){return typeof B=="string"&&/\S/.test(B)}function g(B){if(/\s/.test(B))throw new Error("class has illegal whitespace characters")}function _(B){return new RegExp("(^|\\s)"+B+"($|\\s)")}function l(B){return function(V,K){return T(V)?(T(K)&&(K=p.default.querySelector(K)),(z(K)?K:p.default)[B](V)):p.default[B](null)}}function m(B){return B.indexOf("#")===0&&(B=B.slice(1)),p.default.getElementById(B)}function w(){var B=arguments.length<=0||arguments[0]===void 0?"div":arguments[0],V=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],K=arguments.length<=2||arguments[2]===void 0?{}:arguments[2],rt=p.default.createElement(B);return Object.getOwnPropertyNames(V).forEach(function(it){var ut=V[it];it.indexOf("aria-")!==-1||it==="role"||it==="type"?(n.default.warn(s.default(c,it,ut)),rt.setAttribute(it,ut)):rt[it]=ut}),Object.getOwnPropertyNames(K).forEach(function(it){var ut=K[it];rt.setAttribute(it,K[it])}),rt}function v(B,V){typeof B.textContent=="undefined"?B.innerText=V:B.textContent=V}function x(B,V){V.firstChild?V.insertBefore(B,V.firstChild):V.appendChild(B)}var k={},D="vdata"+new Date().getTime();function E(B){var V=B[D];return V||(V=B[D]=e.newGUID()),k[V]||(k[V]={}),k[V]}function J(B){var V=B[D];return V?!!Object.getOwnPropertyNames(k[V]).length:!1}function R(B){var V=B[D];if(!!V){delete k[V];try{delete B[D]}catch(K){B.removeAttribute?B.removeAttribute(D):B[D]=null}}}function F(B,V){return B.classList?B.classList.contains(V):(g(V),_(V).test(B.className))}function j(B,V){return B.classList?B.classList.add(V):F(B,V)||(B.className=(B.className+" "+V).trim()),B}function L(B,V){return B.classList?B.classList.remove(V):(g(V),B.className=B.className.split(/\s+/).filter(function(K){return K!==V}).join(" ")),B}function A(B,V,K){var rt=F(B,V);if(typeof K=="function"&&(K=K(B,V)),typeof K!="boolean"&&(K=!rt),K!==rt)return K?j(B,V):L(B,V),B}function O(B,V){Object.getOwnPropertyNames(V).forEach(function(K){var rt=V[K];rt===null||typeof rt=="undefined"||rt===!1?B.removeAttribute(K):B.setAttribute(K,rt===!0?"":rt)})}function P(B){var V,K,rt,it,ut;if(V={},K=",autoplay,controls,loop,muted,default,",B&&B.attributes&&B.attributes.length>0){rt=B.attributes;for(var G=rt.length-1;G>=0;G--)it=rt[G].name,ut=rt[G].value,(typeof B[it]=="boolean"||K.indexOf(","+it+",")!==-1)&&(ut=ut!==null),V[it]=ut}return V}function M(){p.default.body.focus(),p.default.onselectstart=function(){return!1}}function I(){p.default.onselectstart=function(){return!0}}function W(B){var V=void 0;if(B.getBoundingClientRect&&B.parentNode&&(V=B.getBoundingClientRect()),!V)return{left:0,top:0};var K=p.default.documentElement,rt=p.default.body,it=K.clientLeft||rt.clientLeft||0,ut=o.default.pageXOffset||rt.scrollLeft,G=V.left+ut-it,_t=K.clientTop||rt.clientTop||0,bt=o.default.pageYOffset||rt.scrollTop,q=V.top+bt-_t;return{left:Math.round(G),top:Math.round(q)}}function $(B,V){var K={},rt=W(B),it=B.offsetWidth,ut=B.offsetHeight,G=rt.top,_t=rt.left,bt=V.pageY,q=V.pageX;return V.changedTouches&&(q=V.changedTouches[0].pageX,bt=V.changedTouches[0].pageY),K.y=Math.max(0,Math.min(1,(G-bt+ut)/ut)),K.x=Math.max(0,Math.min(1,(q-_t)/it)),K}function z(B){return!!B&&typeof B=="object"&&B.nodeType===1}function Q(B){return!!B&&typeof B=="object"&&B.nodeType===3}function Y(B){for(;B.firstChild;)B.removeChild(B.firstChild);return B}function nt(B){return typeof B=="function"&&(B=B()),(Array.isArray(B)?B:[B]).map(function(V){if(typeof V=="function"&&(V=V()),z(V)||Q(V))return V;if(typeof V=="string"&&/\S/.test(V))return p.default.createTextNode(V)}).filter(function(V){return V})}function lt(B,V){return nt(V).forEach(function(K){return
.video-js {
width: 300px;
height: 150px;
}
.vjs-fluid {
padding-top: 56.25%
}
`)}p.autoSetupTimeout(1,G),G.VERSION="5.8.7",G.options=g.default.prototype.options_,G.getPlayers=function(){return g.default.players},G.players=st.default(g.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),G.getComponent=e.default.getComponent,G.registerComponent=function(q,at){V.default.isTech(at)&&A.default.warn("The "+q+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),e.default.registerComponent.call(e.default,q,at)},G.getTech=V.default.getTech,G.registerTech=V.default.registerTech,G.browser=I,G.TOUCH_ENABLED=I.TOUCH_ENABLED,G.extend=Q.default,G.mergeOptions=w.default,G.bind=x.bind,G.plugin=l.default,G.addLanguage=function(q,at){var mt;return q=(""+q).toLowerCase(),nt.default(G.options.languages,(mt={},mt[q]=at,mt))[q]},G.log=A.default,G.createTimeRange=G.createTimeRanges=R.createTimeRanges,G.formatTime=j.default,G.parseUrl=$.parseUrl,G.isCrossOrigin=$.isCrossOrigin,G.EventTarget=n.default,G.on=s.on,G.one=s.one,G.off=s.off,G.trigger=s.trigger,G.xhr=gt.default,G.TextTrack=D.default,G.isEl=P.isEl,G.isTextNode=P.isTextNode,G.createEl=P.createEl,G.hasClass=P.hasElClass,G.addClass=P.addElClass,G.removeClass=P.removeElClass,G.toggleClass=P.toggleElClass,G.setAttributes=P.setElAttributes,G.getAttributes=P.getElAttributes,G.emptyEl=P.emptyEl,G.appendContent=P.appendContent,G.insertContent=P.insertContent,typeof wt=="function"&&wt.amd?wt("videojs",[],function(){return G}):typeof a=="object"&&typeof S=="object"&&(S.exports=G),a.default=G,S.exports=a.default},{"../../src/js/utils/merge-options.js":138,"./component":67,"./event-target":99,"./extend.js":100,"./player":108,"./plugins.js":109,"./setup":113,"./tech/flash.js":116,"./tech/html5.js":117,"./tech/tech.js":119,"./tracks/text-track.js":128,"./utils/browser.js":129,"./utils/create-deprecation-proxy.js":131,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/format-time.js":135,"./utils/log.js":137,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/url.js":142,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[143])(143)});