File indexing completed on 2024-12-29 05:25:48

0001 (window.webpackJsonp=window.webpackJsonp||[]).push([[2],[,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(58)()},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var a;
0002 /*!
0003   Copyright (c) 2017 Jed Watson.
0004   Licensed under the MIT License (MIT), see
0005   http://jedwatson.github.io/classnames
0006 */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var o=typeof a;if("string"===o||"number"===o)e.push(a);else if(Array.isArray(a)&&a.length){var i=r.apply(null,a);i&&e.push(i)}else if("object"===o)for(var l in a)n.call(a,l)&&a[l]&&e.push(l)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e}},function(e,t,n){var a=n(80);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){var a=n(80),r=n(22);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?r(e):t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var a=n(127);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},,,,,,function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.formatTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Math.floor(e%60),a=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),i=Math.floor(t/3600);(u(e)||e===1/0)&&(r="-",a="-",n="-");return r=r>0||i>0?"".concat(r,":"):"",a="".concat((r||o>=10)&&a<10?"0".concat(a):a,":"),n=n<10?"0".concat(n):n,r+a+n},t.isVideoChild=function(e){if(e.props&&e.props.isVideoChild)return!0;return"source"===e.type||"track"===e.type},t.mergeAndSortChildren=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=l.default.Children.toArray(t),u=(n.order,(0,i.default)(n,["order"]));return r.filter((function(e){return!e.props.disabled})).concat(e.filter((function(e){return!d(r,(function(t){return s(t,e)}))}))).map((function(t){var n=d(e,(function(e){return s(e,t)})),a=n?n.props:{},r=(0,o.default)({},u,a,t.props);return l.default.cloneElement(t,r,t.props.children)})).sort((function(e,t){return(e.props.order||a)-(t.props.order||a)}))},t.deprecatedWarning=function(e,t){console.warn("WARNING: ".concat(e," will be deprecated soon! Please use ").concat(t," instead."))},t.throttle=function(e,t){var n=arguments,a=!1;return function(){a||(e.apply(void 0,(0,r.default)(n)),a=!0,setTimeout((function(){a=!1}),t))}},t.mediaProperties=void 0;var r=a(n(87)),o=a(n(32)),i=a(n(57)),l=a(n(0)),u=Number.isNaN||function(e){return e!=e};var d=function(e,t){return e.filter(t)[0]},s=function(e,t){var n=e.type,a=t.type;return"string"==typeof n||"string"==typeof a?n===a:"function"==typeof n&&"function"==typeof a&&n.displayName===a.displayName};t.mediaProperties=["error","src","srcObject","currentSrc","crossOrigin","networkState","preload","buffered","readyState","seeking","currentTime","duration","paused","defaultPlaybackRate","playbackRate","played","seekable","ended","autoplay","loop","mediaGroup","controller","controls","volume","muted","defaultMuted","audioTracks","videoTracks","textTracks","width","height","videoWidth","videoHeight","poster"]},,function(e,t,n){var a=n(56);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}},,,,,,,,,,,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},n.apply(this,arguments)}e.exports=n},,,,,function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.handleFullscreenChange=function(e){return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:e}},t.activate=function(e){return{type:"video-react/PLAYER_ACTIVATE",activity:e}},t.userActivate=function(e){return{type:"video-react/USER_ACTIVATE",activity:e}},t.play=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"play",source:""};return this.video.play(),{type:o,operation:e}},t.pause=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"pause",source:""};return this.video.pause(),{type:o,operation:e}},t.togglePlay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"toggle-play",source:""};return this.video.togglePlay(),{type:o,operation:e}},t.seek=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"seek",source:""};return this.video.seek(e),{type:o,operation:t}},t.forward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"forward-".concat(e),source:""};return this.video.forward(e),{type:o,operation:t}},t.replay=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"replay-".concat(e),source:""};return this.video.replay(e),{type:o,operation:t}},t.changeRate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"change-rate",source:""};return this.video.playbackRate=e,{type:o,operation:t}},t.changeVolume=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:"change-volume",source:""},n=e;e<0&&(n=0);e>1&&(n=1);return this.video.volume=n,{type:o,operation:t}},t.mute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{action:e?"muted":"unmuted",source:""};return this.video.muted=e,{type:o,operation:t}},t.toggleFullscreen=function(e){if(r.default.enabled)return r.default.isFullscreen?r.default.exit():r.default.request(this.rootElement),{type:o,operation:{action:"toggle-fullscreen",source:""}};return{type:"video-react/FULLSCREEN_CHANGE",isFullscreen:!e.isFullscreen}},t.USER_ACTIVATE=t.PLAYER_ACTIVATE=t.FULLSCREEN_CHANGE=t.OPERATE=void 0;var r=a(n(82)),o="video-react/OPERATE";t.OPERATE=o;t.FULLSCREEN_CHANGE="video-react/FULLSCREEN_CHANGE";t.PLAYER_ACTIVATE="video-react/PLAYER_ACTIVATE";t.USER_ACTIVATE="video-react/USER_ACTIVATE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findElPosition=r,t.getPointerPosition=function(e,t){var n={},a=r(e),o=e.offsetWidth,i=e.offsetHeight,l=a.top,u=a.left,d=t.pageY,s=t.pageX;t.changedTouches&&(s=t.changedTouches[0].pageX,d=t.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(l-d+i)/i)),n.x=Math.max(0,Math.min(1,(s-u)/o)),n},t.blurNode=function(e){var t=(0,a.findDOMNode)(e);t&&t.blur&&t.blur()},t.focusNode=function(e){var t=(0,a.findDOMNode)(e);t&&t.focus&&t.focus()},t.hasClass=function(e,t){for(var n=e.className.split(" "),a=0;a<n.length;a++)if(n[a].toLowerCase()===t.toLowerCase())return!0;return!1};var a=n(3);function r(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=document,a=n.body,r=n.documentElement,o=r.clientLeft||a.clientLeft||0,i=window.pageXOffset||a.scrollLeft,l=t.left+i-o,u=r.clientTop||a.clientTop||0,d=window.pageYOffset||a.scrollTop,s=t.top+d-u;return{left:Math.round(l),top:Math.round(s)}}},,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var a=n(126);e.exports=function(e,t){if(null==e)return{};var n,r,o=a(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";var a=n(59);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleLoadStart=function(e){return{type:"video-react/LOAD_START",videoProps:e}},t.handleCanPlay=function(e){return{type:"video-react/CAN_PLAY",videoProps:e}},t.handleWaiting=function(e){return{type:"video-react/WAITING",videoProps:e}},t.handleCanPlayThrough=function(e){return{type:"video-react/CAN_PLAY_THROUGH",videoProps:e}},t.handlePlaying=function(e){return{type:"video-react/PLAYING",videoProps:e}},t.handlePlay=function(e){return{type:a,videoProps:e}},t.handlePause=function(e){return{type:r,videoProps:e}},t.handleEnd=function(e){return{type:o,videoProps:e}},t.handleSeeking=function(e){return{type:"video-react/SEEKING",videoProps:e}},t.handleSeeked=function(e){return{type:"video-react/SEEKED",videoProps:e}},t.handleDurationChange=function(e){return{type:"video-react/DURATION_CHANGE",videoProps:e}},t.handleTimeUpdate=function(e){return{type:"video-react/TIME_UPDATE",videoProps:e}},t.handleVolumeChange=function(e){return{type:"video-react/VOLUME_CHANGE",videoProps:e}},t.handleProgressChange=function(e){return{type:"video-react/PROGRESS_CHANGE",videoProps:e}},t.handleRateChange=function(e){return{type:"video-react/RATE_CHANGE",videoProps:e}},t.handleSuspend=function(e){return{type:"video-react/SUSPEND",videoProps:e}},t.handleAbort=function(e){return{type:i,videoProps:e}},t.handleEmptied=function(e){return{type:"video-react/EMPTIED",videoProps:e}},t.handleStalled=function(e){return{type:"video-react/STALLED",videoProps:e}},t.handleLoadedMetaData=function(e){return{type:"video-react/LOADED_META_DATA",videoProps:e}},t.handleLoadedData=function(e){return{type:"video-react/LOADED_DATA",videoProps:e}},t.handleResize=function(e){return{type:"video-react/RESIZE",videoProps:e}},t.handleError=function(e){return{type:l,videoProps:e}},t.handleSeekingTime=function(e){return{type:"video-react/SEEKING_TIME",time:e}},t.handleEndSeeking=function(e){return{type:"video-react/END_SEEKING",time:e}},t.ERROR=t.RESIZE=t.LOADED_DATA=t.LOADED_META_DATA=t.STALLED=t.EMPTIED=t.ABORT=t.SUSPEND=t.RATE_CHANGE=t.PROGRESS_CHANGE=t.VOLUME_CHANGE=t.TIME_UPDATE=t.DURATION_CHANGE=t.END_SEEKING=t.SEEKING_TIME=t.SEEKED=t.SEEKING=t.END=t.PAUSE=t.PLAY=t.PLAYING=t.CAN_PLAY_THROUGH=t.WAITING=t.CAN_PLAY=t.LOAD_START=void 0;t.LOAD_START="video-react/LOAD_START";t.CAN_PLAY="video-react/CAN_PLAY";t.WAITING="video-react/WAITING";t.CAN_PLAY_THROUGH="video-react/CAN_PLAY_THROUGH";t.PLAYING="video-react/PLAYING";var a="video-react/PLAY";t.PLAY=a;var r="video-react/PAUSE";t.PAUSE=r;var o="video-react/END";t.END=o;t.SEEKING="video-react/SEEKING";t.SEEKED="video-react/SEEKED";t.SEEKING_TIME="video-react/SEEKING_TIME";t.END_SEEKING="video-react/END_SEEKING";t.DURATION_CHANGE="video-react/DURATION_CHANGE";t.TIME_UPDATE="video-react/TIME_UPDATE";t.VOLUME_CHANGE="video-react/VOLUME_CHANGE";t.PROGRESS_CHANGE="video-react/PROGRESS_CHANGE";t.RATE_CHANGE="video-react/RATE_CHANGE";t.SUSPEND="video-react/SUSPEND";var i="video-react/ABORT";t.ABORT=i;t.EMPTIED="video-react/EMPTIED";t.STALLED="video-react/STALLED";t.LOADED_META_DATA="video-react/LOADED_META_DATA";t.LOADED_DATA="video-react/LOADED_DATA";t.RESIZE="video-react/RESIZE";var l="video-react/ERROR";t.ERROR=l},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=n(3),p=r(n(17)),v=a(n(51)),y={className:c.default.string,onMouseDown:c.default.func,onMouseMove:c.default.func,stepForward:c.default.func,stepBack:c.default.func,sliderActive:c.default.func,sliderInactive:c.default.func,onMouseUp:c.default.func,onFocus:c.default.func,onBlur:c.default.func,onClick:c.default.func,getPercent:c.default.func,vertical:c.default.bool,children:c.default.node,label:c.default.string,valuenow:c.default.string,valuetext:c.default.string},m=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleMouseDown=a.handleMouseDown.bind((0,d.default)(a)),a.handleMouseMove=a.handleMouseMove.bind((0,d.default)(a)),a.handleMouseUp=a.handleMouseUp.bind((0,d.default)(a)),a.handleFocus=a.handleFocus.bind((0,d.default)(a)),a.handleBlur=a.handleBlur.bind((0,d.default)(a)),a.handleClick=a.handleClick.bind((0,d.default)(a)),a.handleKeyPress=a.handleKeyPress.bind((0,d.default)(a)),a.stepForward=a.stepForward.bind((0,d.default)(a)),a.stepBack=a.stepBack.bind((0,d.default)(a)),a.calculateDistance=a.calculateDistance.bind((0,d.default)(a)),a.getProgress=a.getProgress.bind((0,d.default)(a)),a.renderChildren=a.renderChildren.bind((0,d.default)(a)),a.state={active:!1},a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentWillUnmount",value:function(){document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),document.removeEventListener("keydown",this.handleKeyPress,!0)}},{key:"getProgress",value:function(){var e=this.props.getPercent;if(!e)return 0;var t=e();return("number"!=typeof t||t<0||t===1/0)&&(t=0),t}},{key:"handleMouseDown",value:function(e){var t=this.props.onMouseDown;document.addEventListener("mousemove",this.handleMouseMove,!0),document.addEventListener("mouseup",this.handleMouseUp,!0),document.addEventListener("touchmove",this.handleMouseMove,!0),document.addEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!0}),this.props.sliderActive&&this.props.sliderActive(e),this.handleMouseMove(e),t&&t(e)}},{key:"handleMouseMove",value:function(e){var t=this.props.onMouseMove;t&&t(e)}},{key:"handleMouseUp",value:function(e){var t=this.props.onMouseUp;document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("mouseup",this.handleMouseUp,!0),document.removeEventListener("touchmove",this.handleMouseMove,!0),document.removeEventListener("touchend",this.handleMouseUp,!0),this.setState({active:!1}),this.props.sliderInactive&&this.props.sliderInactive(e),t&&t(e)}},{key:"handleFocus",value:function(e){document.addEventListener("keydown",this.handleKeyPress,!0),this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){document.removeEventListener("keydown",this.handleKeyPress,!0),this.props.onBlur&&this.props.onBlur(e)}},{key:"handleClick",value:function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)}},{key:"handleKeyPress",value:function(e){37===e.which||40===e.which?(e.preventDefault(),e.stopPropagation(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),e.stopPropagation(),this.stepForward())}},{key:"stepForward",value:function(){this.props.stepForward&&this.props.stepForward()}},{key:"stepBack",value:function(){this.props.stepBack&&this.props.stepBack()}},{key:"calculateDistance",value:function(e){var t=(0,h.findDOMNode)(this),n=v.getPointerPosition(t,e);return this.props.vertical?n.y:n.x}},{key:"renderChildren",value:function(){var e=this.getProgress(),t="".concat((100*e).toFixed(2),"%");return f.default.Children.map(this.props.children,(function(n){return f.default.cloneElement(n,{progress:e,percentage:t})}))}},{key:"render",value:function(){var e=this.props,t=e.vertical,n=e.label,a=e.valuenow,r=e.valuetext;return f.default.createElement("div",{className:(0,p.default)(this.props.className,{"video-react-slider-vertical":t,"video-react-slider-horizontal":!t,"video-react-sliding":this.state.active},"video-react-slider"),tabIndex:"0",role:"slider",onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,"aria-label":n||"","aria-valuenow":a||"","aria-valuetext":r||"","aria-valuemin":0,"aria-valuemax":100},this.renderChildren())}}]),t}(f.Component);t.default=m,m.propTypes=y,m.displayName="Slider"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p=r(n(108)),v={player:c.default.object,actions:c.default.object,rates:c.default.array,className:c.default.string},y=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleSelectItem=a.handleSelectItem.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleSelectItem",value:function(e){var t=this.props,n=t.rates,a=t.actions;e>=0&&e<n.length&&a.changeRate(n[e])}},{key:"render",value:function(){var e=this.props,t=e.rates,n=e.player,a=t.map((function(e){return{label:"".concat(e,"x"),value:e}})),r=t.indexOf(n.playbackRate)||0;return f.default.createElement(p.default,{className:(0,h.default)("video-react-playback-rate",this.props.className),onSelectItem:this.handleSelectItem,items:a,selectedIndex:r},f.default.createElement("span",{className:"video-react-control-text"},"Playback Rate"),f.default.createElement("div",{className:"video-react-playback-rate-value"},"".concat(n.playbackRate.toFixed(2),"x")))}}]),t}(f.Component);y.propTypes=v,y.defaultProps={rates:[2,1.5,1.25,1,.5,.25]},y.displayName="PlaybackRateMenuButton";var m=y;t.default=m},,,,,,,,,,,,,,,,,function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{player:(0,r.default)(e.player,t),operation:(0,o.default)(e.operation,t)}},t.operationReducer=t.playerReducer=void 0;var r=a(n(133)),o=a(n(134));var i=r.default;t.playerReducer=i;var l=o.default;t.operationReducer=l},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(18)),o=a(n(19)),i=new(function(){function e(){(0,r.default)(this,e)}return(0,o.default)(e,[{key:"request",value:function(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},{key:"exit",value:function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}},{key:"addEventListener",value:function(e){document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e)}},{key:"removeEventListener",value:function(e){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}},{key:"isFullscreen",get:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}},{key:"enabled",get:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}}]),e}());t.default=i},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p={actions:c.default.object,player:c.default.object,position:c.default.string,className:c.default.string},v=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){}},{key:"handleClick",value:function(){this.props.actions.play()}},{key:"render",value:function(){var e=this.props,t=e.player,n=e.position;return f.default.createElement("button",{className:(0,h.default)("video-react-big-play-button","video-react-big-play-button-".concat(n),this.props.className,{"big-play-button-hide":t.hasStarted||!t.currentSrc}),type:"button","aria-live":"polite",tabIndex:"0",onClick:this.handleClick},f.default.createElement("span",{className:"video-react-control-text"},"Play Video"))}}]),t}(f.Component);t.default=v,v.propTypes=p,v.defaultProps={position:"left"},v.displayName="BigPlayButton"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l={player:r.default.object,className:r.default.string};function u(e){var t=e.player,n=e.className;return t.error?null:o.default.createElement("div",{className:(0,i.default)("video-react-loading-spinner",n)})}u.propTypes=l,u.displayName="LoadingSpinner"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l={poster:r.default.string,player:r.default.object,actions:r.default.object,className:r.default.string};function u(e){var t=e.poster,n=e.player,a=e.actions,r=e.className;return!t||n.hasStarted?null:o.default.createElement("div",{className:(0,i.default)("video-react-poster",r),style:{backgroundImage:'url("'.concat(t,'")')},onClick:function(){n.paused&&a.play()}})}u.propTypes=l,u.displayName="PosterImage";var d=u;t.default=d},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(32)),i=r(n(18)),l=r(n(19)),u=r(n(21)),d=r(n(23)),s=r(n(22)),c=r(n(24)),f=r(n(15)),h=a(n(0)),p=r(n(17)),v=n(30),y={actions:f.default.object,player:f.default.object,children:f.default.any,startTime:f.default.number,loop:f.default.bool,muted:f.default.bool,autoPlay:f.default.bool,playsInline:f.default.bool,src:f.default.string,poster:f.default.string,className:f.default.string,preload:f.default.oneOf(["auto","metadata","none"]),crossOrigin:f.default.string,onLoadStart:f.default.func,onWaiting:f.default.func,onCanPlay:f.default.func,onCanPlayThrough:f.default.func,onPlaying:f.default.func,onEnded:f.default.func,onSeeking:f.default.func,onSeeked:f.default.func,onPlay:f.default.func,onPause:f.default.func,onProgress:f.default.func,onDurationChange:f.default.func,onError:f.default.func,onSuspend:f.default.func,onAbort:f.default.func,onEmptied:f.default.func,onStalled:f.default.func,onLoadedMetadata:f.default.func,onLoadedData:f.default.func,onTimeUpdate:f.default.func,onRateChange:f.default.func,onVolumeChange:f.default.func,onResize:f.default.func},m=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,u.default)(this,(0,d.default)(t).call(this,e))).video=null,n.play=n.play.bind((0,s.default)(n)),n.pause=n.pause.bind((0,s.default)(n)),n.seek=n.seek.bind((0,s.default)(n)),n.forward=n.forward.bind((0,s.default)(n)),n.replay=n.replay.bind((0,s.default)(n)),n.toggleFullscreen=n.toggleFullscreen.bind((0,s.default)(n)),n.getProperties=n.getProperties.bind((0,s.default)(n)),n.renderChildren=n.renderChildren.bind((0,s.default)(n)),n.handleLoadStart=n.handleLoadStart.bind((0,s.default)(n)),n.handleCanPlay=n.handleCanPlay.bind((0,s.default)(n)),n.handleCanPlayThrough=n.handleCanPlayThrough.bind((0,s.default)(n)),n.handlePlay=n.handlePlay.bind((0,s.default)(n)),n.handlePlaying=n.handlePlaying.bind((0,s.default)(n)),n.handlePause=n.handlePause.bind((0,s.default)(n)),n.handleEnded=n.handleEnded.bind((0,s.default)(n)),n.handleWaiting=n.handleWaiting.bind((0,s.default)(n)),n.handleSeeking=n.handleSeeking.bind((0,s.default)(n)),n.handleSeeked=n.handleSeeked.bind((0,s.default)(n)),n.handleFullscreenChange=n.handleFullscreenChange.bind((0,s.default)(n)),n.handleError=n.handleError.bind((0,s.default)(n)),n.handleSuspend=n.handleSuspend.bind((0,s.default)(n)),n.handleAbort=n.handleAbort.bind((0,s.default)(n)),n.handleEmptied=n.handleEmptied.bind((0,s.default)(n)),n.handleStalled=n.handleStalled.bind((0,s.default)(n)),n.handleLoadedMetaData=n.handleLoadedMetaData.bind((0,s.default)(n)),n.handleLoadedData=n.handleLoadedData.bind((0,s.default)(n)),n.handleTimeUpdate=n.handleTimeUpdate.bind((0,s.default)(n)),n.handleRateChange=n.handleRateChange.bind((0,s.default)(n)),n.handleVolumeChange=n.handleVolumeChange.bind((0,s.default)(n)),n.handleDurationChange=n.handleDurationChange.bind((0,s.default)(n)),n.handleProgress=(0,v.throttle)(n.handleProgress.bind((0,s.default)(n)),250),n.handleKeypress=n.handleKeypress.bind((0,s.default)(n)),n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.forceUpdate()}},{key:"getProperties",value:function(){var e=this;return this.video?v.mediaProperties.reduce((function(t,n){return t[n]=e.video[n],t}),{}):null}},{key:"play",value:function(){var e=this.video.play();void 0!==e&&e.catch((function(){})).then((function(){}))}},{key:"pause",value:function(){var e=this.video.pause();void 0!==e&&e.catch((function(){})).then((function(){}))}},{key:"load",value:function(){this.video.load()}},{key:"addTextTrack",value:function(){var e;(e=this.video).addTextTrack.apply(e,arguments)}},{key:"canPlayType",value:function(){var e;(e=this.video).canPlayType.apply(e,arguments)}},{key:"togglePlay",value:function(){this.video.paused?this.play():this.pause()}},{key:"seek",value:function(e){try{this.video.currentTime=e}catch(e){}}},{key:"forward",value:function(e){this.seek(this.video.currentTime+e)}},{key:"replay",value:function(e){this.forward(-e)}},{key:"toggleFullscreen",value:function(){var e=this.props,t=e.player;e.actions.toggleFullscreen(t)}},{key:"handleLoadStart",value:function(){var e=this.props,t=e.actions,n=e.onLoadStart;t.handleLoadStart(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleCanPlay",value:function(){var e=this.props,t=e.actions,n=e.onCanPlay;t.handleCanPlay(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleCanPlayThrough",value:function(){var e=this.props,t=e.actions,n=e.onCanPlayThrough;t.handleCanPlayThrough(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handlePlaying",value:function(){var e=this.props,t=e.actions,n=e.onPlaying;t.handlePlaying(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handlePlay",value:function(){var e=this.props,t=e.actions,n=e.onPlay;t.handlePlay(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handlePause",value:function(){var e=this.props,t=e.actions,n=e.onPause;t.handlePause(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleDurationChange",value:function(){var e=this.props,t=e.actions,n=e.onDurationChange;t.handleDurationChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleProgress",value:function(){var e=this.props,t=e.actions,n=e.onProgress;this.video&&t.handleProgressChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleEnded",value:function(){var e=this.props,t=e.loop,n=e.player,a=e.actions,r=e.onEnded;t?(this.seek(0),this.play()):n.paused||this.pause(),a.handleEnd(this.getProperties()),r&&r.apply(void 0,arguments)}},{key:"handleWaiting",value:function(){var e=this.props,t=e.actions,n=e.onWaiting;t.handleWaiting(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleSeeking",value:function(){var e=this.props,t=e.actions,n=e.onSeeking;t.handleSeeking(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleSeeked",value:function(){var e=this.props,t=e.actions,n=e.onSeeked;t.handleSeeked(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleFullscreenChange",value:function(){}},{key:"handleSuspend",value:function(){var e=this.props,t=e.actions,n=e.onSuspend;t.handleSuspend(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleAbort",value:function(){var e=this.props,t=e.actions,n=e.onAbort;t.handleAbort(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleEmptied",value:function(){var e=this.props,t=e.actions,n=e.onEmptied;t.handleEmptied(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleStalled",value:function(){var e=this.props,t=e.actions,n=e.onStalled;t.handleStalled(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleLoadedMetaData",value:function(){var e=this.props,t=e.actions,n=e.onLoadedMetadata,a=e.startTime;a&&a>0&&(this.video.currentTime=a),t.handleLoadedMetaData(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleLoadedData",value:function(){var e=this.props,t=e.actions,n=e.onLoadedData;t.handleLoadedData(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleTimeUpdate",value:function(){var e=this.props,t=e.actions,n=e.onTimeUpdate;t.handleTimeUpdate(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleRateChange",value:function(){var e=this.props,t=e.actions,n=e.onRateChange;t.handleRateChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleVolumeChange",value:function(){var e=this.props,t=e.actions,n=e.onVolumeChange;t.handleVolumeChange(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleError",value:function(){var e=this.props,t=e.actions,n=e.onError;t.handleError(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleResize",value:function(){var e=this.props,t=e.actions,n=e.onResize;t.handleResize(this.getProperties()),n&&n.apply(void 0,arguments)}},{key:"handleKeypress",value:function(){}},{key:"renderChildren",value:function(){var e=this,t=(0,o.default)({},this.props,{video:this.video});return this.video?h.default.Children.toArray(this.props.children).filter(v.isVideoChild).map((function(n){var a;if("string"==typeof n.type){if("source"===n.type){var r=(a=(0,o.default)({},n.props)).onError;a.onError=function(){r&&r.apply(void 0,arguments),e.handleError.apply(e,arguments)}}}else a=t;return h.default.cloneElement(n,a)})):null}},{key:"render",value:function(){var e=this,t=this.props,n=t.loop,a=t.poster,r=t.preload,o=t.src,i=t.autoPlay,l=t.playsInline,u=t.muted,d=t.crossOrigin,s=t.videoId;return h.default.createElement("video",{className:(0,p.default)("video-react-video",this.props.className),id:s,crossOrigin:d,ref:function(t){e.video=t},muted:u,preload:r,loop:n,playsInline:l,autoPlay:i,poster:a,src:o,onLoadStart:this.handleLoadStart,onWaiting:this.handleWaiting,onCanPlay:this.handleCanPlay,onCanPlayThrough:this.handleCanPlayThrough,onPlaying:this.handlePlaying,onEnded:this.handleEnded,onSeeking:this.handleSeeking,onSeeked:this.handleSeeked,onPlay:this.handlePlay,onPause:this.handlePause,onProgress:this.handleProgress,onDurationChange:this.handleDurationChange,onError:this.handleError,onSuspend:this.handleSuspend,onAbort:this.handleAbort,onEmptied:this.handleEmptied,onStalled:this.handleStalled,onLoadedMetadata:this.handleLoadedMetaData,onLoadedData:this.handleLoadedData,onTimeUpdate:this.handleTimeUpdate,onRateChange:this.handleRateChange,onVolumeChange:this.handleVolumeChange,tabIndex:"-1"},this.renderChildren())}},{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){e>1&&(e=1),e<0&&(e=0),this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),t}(h.Component);t.default=m,m.propTypes=y,m.displayName="Video"},function(e,t,n){var a=n(135),r=n(136),o=n(137),i=n(138);e.exports=function(e){return a(e)||r(e)||o(e)||i()}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p={manager:c.default.object,className:c.default.string},v=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).timer=null,e.manager.subscribeToOperationStateChange(a.handleStateChange.bind((0,d.default)(a))),a.state={hidden:!0,operation:{}},a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleStateChange",value:function(e,t){var n=this;e.count!==t.count&&"shortcut"===e.operation.source&&(this.timer&&(clearTimeout(this.timer),this.timer=null),this.setState({hidden:!1,count:e.count,operation:e.operation}),this.timer=setTimeout((function(){n.setState({hidden:!0}),n.timer=null}),500))}},{key:"render",value:function(){if("shortcut"!==this.state.operation.source)return null;var e=this.state.hidden?{display:"none"}:null;return f.default.createElement("div",{className:(0,h.default)({"video-react-bezel":!0,"video-react-bezel-animation":this.state.count%2==0,"video-react-bezel-animation-alt":this.state.count%2==1},this.props.className),style:e,role:"status","aria-label":this.state.operation.action},f.default.createElement("div",{className:(0,h.default)("video-react-bezel-icon","video-react-bezel-icon-".concat(this.state.operation.action))}))}}]),t}(f.Component);t.default=v,v.propTypes=p,v.displayName="Bezel"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(56)),o=a(n(87)),i=a(n(18)),l=a(n(19)),u=a(n(21)),d=a(n(23)),s=a(n(22)),c=a(n(24)),f=n(0),h=a(n(15)),p=n(51),v={clickable:h.default.bool,dblclickable:h.default.bool,manager:h.default.object,actions:h.default.object,player:h.default.object,shortcuts:h.default.array},y=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,u.default)(this,(0,d.default)(t).call(this,e,n))).defaultShortcuts=[{keyCode:32,handle:a.togglePlay},{keyCode:75,handle:a.togglePlay},{keyCode:70,handle:a.toggleFullscreen},{keyCode:37,handle:function(e,t){e.hasStarted&&t.replay(5,{action:"replay-5",source:"shortcut"})}},{keyCode:74,handle:function(e,t){e.hasStarted&&t.replay(10,{action:"replay-10",source:"shortcut"})}},{keyCode:39,handle:function(e,t){e.hasStarted&&t.forward(5,{action:"forward-5",source:"shortcut"})}},{keyCode:76,handle:function(e,t){e.hasStarted&&t.forward(10,{action:"forward-10",source:"shortcut"})}},{keyCode:36,handle:function(e,t){e.hasStarted&&t.seek(0)}},{keyCode:35,handle:function(e,t){e.hasStarted&&t.seek(e.duration)}},{keyCode:38,handle:function(e,t){var n=e.volume+.05;n>1&&(n=1),t.changeVolume(n,{action:"volume-up",source:"shortcut"})}},{keyCode:40,handle:function(e,t){var n=e.volume-.05;n<0&&(n=0);var a=n>0?"volume-down":"volume-off";t.changeVolume(n,{action:a,source:"shortcut"})}},{keyCode:190,shift:!0,handle:function(e,t){var n=e.playbackRate;n>=1.5?n=2:n>=1.25?n=1.5:n>=1?n=1.25:n>=.5?n=1:n>=.25?n=.5:n>=0&&(n=.25),t.changeRate(n,{action:"fast-forward",source:"shortcut"})}},{keyCode:188,shift:!0,handle:function(e,t){var n=e.playbackRate;n<=.5?n=.25:n<=1?n=.5:n<=1.25?n=1:n<=1.5?n=1.25:n<=2&&(n=1.5),t.changeRate(n,{action:"fast-rewind",source:"shortcut"})}}],a.shortcuts=(0,o.default)(a.defaultShortcuts),a.mergeShortcuts=a.mergeShortcuts.bind((0,s.default)(a)),a.handleKeyPress=a.handleKeyPress.bind((0,s.default)(a)),a.handleClick=a.handleClick.bind((0,s.default)(a)),a.handleDoubleClick=a.handleDoubleClick.bind((0,s.default)(a)),a}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.mergeShortcuts(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),document.addEventListener("dblclick",this.handleDoubleClick)}},{key:"componentDidUpdate",value:function(e){e.shortcuts!==this.props.shortcuts&&this.mergeShortcuts()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),document.removeEventListener("dblclick",this.handleDoubleClick)}},{key:"mergeShortcuts",value:function(){var e=function(e){var t=e.keyCode,n=void 0===t?0:t,a=e.ctrl,r=void 0!==a&&a,o=e.shift,i=void 0!==o&&o,l=e.alt,u=void 0!==l&&l;return"".concat(n,":").concat(r,":").concat(i,":").concat(u)},t=this.defaultShortcuts.reduce((function(t,n){return Object.assign(t,(0,r.default)({},e(n),n))}),{}),n=(this.props.shortcuts||[]).reduce((function(t,n){var a=n.keyCode,o=n.handle;return a&&"function"==typeof o?Object.assign(t,(0,r.default)({},e(n),n)):t}),t),a=function(e){var t=0;return["ctrl","shift","alt"].forEach((function(n){e[n]&&t++})),t};this.shortcuts=Object.keys(n).map((function(e){return n[e]})).sort((function(e,t){return a(t)-a(e)}))}},{key:"togglePlay",value:function(e,t){e.paused?t.play({action:"play",source:"shortcut"}):t.pause({action:"pause",source:"shortcut"})}},{key:"toggleFullscreen",value:function(e,t){t.toggleFullscreen(e)}},{key:"handleKeyPress",value:function(e){var t=this.props,n=t.player,a=t.actions;if(n.isActive&&(!document.activeElement||!((0,p.hasClass)(document.activeElement,"video-react-control")||(0,p.hasClass)(document.activeElement,"video-react-menu-button-active")||(0,p.hasClass)(document.activeElement,"video-react-big-play-button")))){var r=e.keyCode||e.which,o=e.ctrlKey||e.metaKey,i=e.shiftKey,l=e.altKey,u=this.shortcuts.filter((function(e){return!(!e.keyCode||e.keyCode-r!=0)&&!(void 0!==e.ctrl&&e.ctrl!==o||void 0!==e.shift&&e.shift!==i||void 0!==e.alt&&e.alt!==l)}))[0];u&&(u.handle(n,a),e.preventDefault())}}},{key:"canBeClicked",value:function(e,t){return!(!e.isActive||"VIDEO"!==t.target.nodeName||4!==e.readyState)}},{key:"handleClick",value:function(e){var t=this.props,n=t.player,a=t.actions,r=t.clickable;this.canBeClicked(n,e)&&r&&this.togglePlay(n,a)}},{key:"handleDoubleClick",value:function(e){var t=this.props,n=t.player,a=t.actions,r=t.dblclickable;this.canBeClicked(n,e)&&r&&this.toggleFullscreen(n,a)}},{key:"render",value:function(){return null}}]),t}(f.Component);t.default=y,y.propTypes=v,y.defaultProps={clickable:!0,dblclickable:!0},y.displayName="Shortcut"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(57)),i=r(n(18)),l=r(n(19)),u=r(n(21)),d=r(n(23)),s=r(n(22)),c=r(n(24)),f=r(n(15)),h=a(n(0)),p=r(n(17)),v=r(n(92)),y=r(n(97)),m=r(n(98)),g=r(n(100)),b=r(n(101)),k=r(n(102)),E=r(n(103)),P=r(n(104)),C=r(n(105)),T=r(n(106)),S=r(n(63)),N=n(30),w={children:f.default.any,autoHide:f.default.bool,autoHideTime:f.default.number,disableDefaultControls:f.default.bool,disableCompletely:f.default.bool,className:f.default.string},O=function(e){function t(e){var n;return(0,i.default)(this,t),(n=(0,u.default)(this,(0,d.default)(t).call(this,e))).getDefaultChildren=n.getDefaultChildren.bind((0,s.default)(n)),n.getFullChildren=n.getFullChildren.bind((0,s.default)(n)),n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"getDefaultChildren",value:function(){return[h.default.createElement(y.default,{key:"play-toggle",order:1}),h.default.createElement(T.default,{key:"volume-menu-button",order:4}),h.default.createElement(E.default,{key:"current-time-display",order:5.1}),h.default.createElement(C.default,{key:"time-divider",order:5.2}),h.default.createElement(P.default,{key:"duration-display",order:5.3}),h.default.createElement(v.default,{key:"progress-control",order:6}),h.default.createElement(b.default,{key:"fullscreen-toggle",order:8})]}},{key:"getFullChildren",value:function(){return[h.default.createElement(y.default,{key:"play-toggle",order:1}),h.default.createElement(g.default,{key:"replay-control",order:2}),h.default.createElement(m.default,{key:"forward-control",order:3}),h.default.createElement(T.default,{key:"volume-menu-button",order:4}),h.default.createElement(E.default,{key:"current-time-display",order:5}),h.default.createElement(C.default,{key:"time-divider",order:6}),h.default.createElement(P.default,{key:"duration-display",order:7}),h.default.createElement(v.default,{key:"progress-control",order:8}),h.default.createElement(k.default,{key:"remaining-time-display",order:9}),h.default.createElement(S.default,{rates:[1,1.25,1.5,2],key:"playback-rate",order:10}),h.default.createElement(b.default,{key:"fullscreen-toggle",order:11})]}},{key:"getChildren",value:function(){var e=h.default.Children.toArray(this.props.children),t=this.props.disableDefaultControls?[]:this.getDefaultChildren(),n=this.props,a=(n.className,(0,o.default)(n,["className"]));return(0,N.mergeAndSortChildren)(t,e,a)}},{key:"render",value:function(){var e=this.props,t=e.autoHide,n=e.className,a=e.disableCompletely,r=this.getChildren();return a?null:h.default.createElement("div",{className:(0,p.default)("video-react-control-bar",{"video-react-control-bar-auto-hide":t},n)},r)}}]),t}(h.Component);t.default=O,O.propTypes=w,O.defaultProps={autoHide:!0,disableCompletely:!1},O.displayName="ControlBar"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(45)),i=r(n(18)),l=r(n(19)),u=r(n(21)),d=r(n(23)),s=r(n(22)),c=r(n(24)),f=r(n(15)),h=a(n(0)),p=n(3),v=r(n(17)),y=a(n(51)),m=r(n(93)),g={player:f.default.object,className:f.default.string},b=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,u.default)(this,(0,d.default)(t).call(this,e,n))).state={mouseTime:{time:null,position:0}},a.handleMouseMoveThrottle=a.handleMouseMove.bind((0,s.default)(a)),a}return(0,c.default)(t,e),(0,l.default)(t,[{key:"handleMouseMove",value:function(e){if(e.pageX){var t=this.props.player.duration,n=(0,p.findDOMNode)(this.seekBar),a=y.getPointerPosition(n,e).x*t,r=e.pageX-y.findElPosition(n).left;this.setState({mouseTime:{time:a,position:r}})}}},{key:"render",value:function(){var e=this,t=this.props.className;return h.default.createElement("div",{onMouseMove:this.handleMouseMoveThrottle,className:(0,v.default)("video-react-progress-control video-react-control",t)},h.default.createElement(m.default,(0,o.default)({mouseTime:this.state.mouseTime,ref:function(t){e.seekBar=t}},this.props)))}}]),t}(h.Component);t.default=b,b.propTypes=g,b.displayName="ProgressControl"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p=r(n(62)),v=r(n(94)),y=r(n(95)),m=r(n(96)),g=n(30),b={player:c.default.object,mouseTime:c.default.object,actions:c.default.object,className:c.default.string},k=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).getPercent=a.getPercent.bind((0,d.default)(a)),a.getNewTime=a.getNewTime.bind((0,d.default)(a)),a.stepForward=a.stepForward.bind((0,d.default)(a)),a.stepBack=a.stepBack.bind((0,d.default)(a)),a.handleMouseDown=a.handleMouseDown.bind((0,d.default)(a)),a.handleMouseMove=a.handleMouseMove.bind((0,d.default)(a)),a.handleMouseUp=a.handleMouseUp.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"getPercent",value:function(){var e=this.props.player,t=e.currentTime,n=(e.seekingTime||t)/e.duration;return n>=1?1:n}},{key:"getNewTime",value:function(e){var t=this.props.player.duration,n=this.slider.calculateDistance(e)*t;return n===t?n-.1:n}},{key:"handleMouseDown",value:function(){}},{key:"handleMouseUp",value:function(e){var t=this.props.actions,n=this.getNewTime(e);t.seek(n),t.handleEndSeeking(n)}},{key:"handleMouseMove",value:function(e){var t=this.props.actions,n=this.getNewTime(e);t.handleSeekingTime(n)}},{key:"stepForward",value:function(){this.props.actions.forward(5)}},{key:"stepBack",value:function(){this.props.actions.replay(5)}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=n.currentTime,r=n.seekingTime,o=n.duration,i=n.buffered,l=t.mouseTime,u=r||a;return f.default.createElement(p.default,{ref:function(t){e.slider=t},label:"video progress bar",className:(0,h.default)("video-react-progress-holder",this.props.className),valuenow:(100*this.getPercent()).toFixed(2),valuetext:(0,g.formatTime)(u,o),onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,getPercent:this.getPercent,stepForward:this.stepForward,stepBack:this.stepBack},f.default.createElement(y.default,{buffered:i,currentTime:u,duration:o}),f.default.createElement(m.default,{duration:o,mouseTime:l}),f.default.createElement(v.default,{currentTime:u,duration:o}))}}]),t}(f.Component);t.default=k,k.propTypes=b,k.displayName="SeekBar"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l=n(30),u={currentTime:r.default.number,duration:r.default.number,percentage:r.default.string,className:r.default.string};function d(e){var t=e.currentTime,n=e.duration,a=e.percentage,r=e.className;return o.default.createElement("div",{"data-current-time":(0,l.formatTime)(t,n),className:(0,i.default)("video-react-play-progress video-react-slider-bar",r),style:{width:a}},o.default.createElement("span",{className:"video-react-control-text"},"Progress: ".concat(a)))}d.propTypes=u,d.displayName="PlayProgressBar"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l={duration:r.default.number,buffered:r.default.object,className:r.default.string};function u(e){var t=e.buffered,n=e.duration,a=e.className;if(!t||!t.length)return null;var r=t.end(t.length-1),l={};function u(e,t){var n=e/t||0;return"".concat(100*(n>=1?1:n),"%")}r>n&&(r=n),l.width=u(r,n);for(var d=[],s=0;s<t.length;s++){var c=t.start(s),f=t.end(s),h=o.default.createElement("div",{style:{left:u(c,r),width:u(f-c,r)},key:"part-".concat(s)});d.push(h)}return 0===d.length&&(d=null),o.default.createElement("div",{style:l,className:(0,i.default)("video-react-load-progress",a)},o.default.createElement("span",{className:"video-react-control-text"},"Loaded: 0%"),d)}u.propTypes=l,u.displayName="LoadProgressBar"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l=n(30);function u(e){var t=e.duration,n=e.mouseTime,a=e.className,r=e.text;if(!n.time)return null;var u=r||(0,l.formatTime)(n.time,t);return o.default.createElement("div",{className:(0,i.default)("video-react-mouse-display",a),style:{left:"".concat(n.position,"px")},"data-current-time":u})}u.propTypes={duration:r.default.number,mouseTime:r.default.object,className:r.default.string},u.displayName="MouseTimeDisplay";var d=u;t.default=d},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p={actions:c.default.object,player:c.default.object,className:c.default.string},v=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.actions;e.player.paused?t.play():t.pause()}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=t.className,r=n.paused?"Play":"Pause";return f.default.createElement("button",{ref:function(t){e.button=t},className:(0,h.default)(a,{"video-react-play-control":!0,"video-react-control":!0,"video-react-button":!0,"video-react-paused":n.paused,"video-react-playing":!n.paused}),type:"button",tabIndex:"0",onClick:this.handleClick},f.default.createElement("span",{className:"video-react-control-text"},r))}}]),t}(f.Component);t.default=v,v.propTypes=p,v.displayName="PlayToggle"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,a(n(99)).default)("forward");r.displayName="ForwardControl";var o=r;t.default=o},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h={actions:c.default.object,className:c.default.string,seconds:c.default.oneOf([5,10,30])},p={seconds:10};t.default=function(e){var t=function(t){function n(e,t){var a;return(0,o.default)(this,n),(a=(0,l.default)(this,(0,u.default)(n).call(this,e,t))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(n,t),(0,i.default)(n,[{key:"handleClick",value:function(){var t=this.props,n=t.actions,a=t.seconds;"forward"===e?n.forward(a):n.replay(a)}},{key:"render",value:function(){var t=this,n=this.props,a=n.seconds,r=n.className,o=["video-react-control","video-react-button","video-react-icon"];return o.push("video-react-icon-".concat(e,"-").concat(a),"video-react-".concat(e,"-control")),r&&o.push(r),f.default.createElement("button",{ref:function(e){t.button=e},className:o.join(" "),type:"button",onClick:this.handleClick},f.default.createElement("span",{className:"video-react-control-text"},"".concat(e," ").concat(a," seconds")))}}]),n}(f.Component);return t.propTypes=h,t.defaultProps=p,t}},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,a(n(99)).default)("replay");r.displayName="ReplayControl";var o=r;t.default=o},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p={actions:c.default.object,player:c.default.object,className:c.default.string},v=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.player;e.actions.toggleFullscreen(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=t.className;return f.default.createElement("button",{className:(0,h.default)(a,{"video-react-icon-fullscreen-exit":n.isFullscreen,"video-react-icon-fullscreen":!n.isFullscreen},"video-react-fullscreen-control video-react-control video-react-button video-react-icon"),ref:function(t){e.button=t},type:"button",tabIndex:"0",onClick:this.handleClick},f.default.createElement("span",{className:"video-react-control-text"},"Non-Fullscreen"))}}]),t}(f.Component);t.default=v,v.propTypes=p,v.displayName="FullscreenToggle"},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l=n(30),u={player:r.default.object,className:r.default.string};function d(e){var t=e.player,n=t.currentTime,a=t.duration,r=e.className,u=a-n,d=(0,l.formatTime)(u);return o.default.createElement("div",{className:(0,i.default)("video-react-remaining-time video-react-time-control video-react-control",r)},o.default.createElement("div",{className:"video-react-remaining-time-display","aria-live":"off"},o.default.createElement("span",{className:"video-react-control-text"},"Remaining Time "),"-".concat(d)))}d.propTypes=u,d.displayName="RemainingTimeDisplay";var s=d;t.default=s},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l=n(30),u={player:r.default.object,className:r.default.string};function d(e){var t=e.player,n=t.currentTime,a=t.duration,r=e.className,u=(0,l.formatTime)(n,a);return o.default.createElement("div",{className:(0,i.default)("video-react-current-time video-react-time-control video-react-control",r)},o.default.createElement("div",{className:"video-react-current-time-display","aria-live":"off"},o.default.createElement("span",{className:"video-react-control-text"},"Current Time "),u))}d.propTypes=u,d.displayName="CurrentTimeDisplay";var s=d;t.default=s},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l=n(30),u={player:r.default.object,className:r.default.string};function d(e){var t=e.player.duration,n=e.className,a=(0,l.formatTime)(t);return o.default.createElement("div",{className:(0,i.default)(n,"video-react-duration video-react-time-control video-react-control")},o.default.createElement("div",{className:"video-react-duration-display","aria-live":"off"},o.default.createElement("span",{className:"video-react-control-text"},"Duration Time "),a))}d.propTypes=u,d.displayName="DurationDisplay";var s=d;t.default=s},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l={separator:r.default.string,className:r.default.string};function u(e){var t=e.separator,n=e.className,a=t||"/";return o.default.createElement("div",{className:(0,i.default)("video-react-time-control video-react-time-divider",n),dir:"ltr"},o.default.createElement("div",null,o.default.createElement("span",null,a)))}u.propTypes=l,u.displayName="TimeDivider"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(45)),i=r(n(18)),l=r(n(19)),u=r(n(21)),d=r(n(23)),s=r(n(22)),c=r(n(24)),f=r(n(15)),h=a(n(0)),p=r(n(17)),v=r(n(139)),y=r(n(141)),m={player:f.default.object,actions:f.default.object,vertical:f.default.bool,className:f.default.string,alwaysShowVolume:f.default.bool},g=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,u.default)(this,(0,d.default)(t).call(this,e,n))).state={active:!1},a.handleClick=a.handleClick.bind((0,s.default)(a)),a.handleFocus=a.handleFocus.bind((0,s.default)(a)),a.handleBlur=a.handleBlur.bind((0,s.default)(a)),a}return(0,c.default)(t,e),(0,l.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.player;e.actions.mute(!t.muted)}},{key:"handleFocus",value:function(){this.setState({active:!0})}},{key:"handleBlur",value:function(){this.setState({active:!1})}},{key:"render",value:function(){var e=this.props,t=e.vertical,n=e.player,a=e.className,r=!t,i=this.volumeLevel;return h.default.createElement(v.default,{className:(0,p.default)(a,{"video-react-volume-menu-button-vertical":t,"video-react-volume-menu-button-horizontal":!t,"video-react-vol-muted":n.muted,"video-react-vol-0":0===i&&!n.muted,"video-react-vol-1":1===i,"video-react-vol-2":2===i,"video-react-vol-3":3===i,"video-react-slider-active":this.props.alwaysShowVolume||this.state.active,"video-react-lock-showing":this.props.alwaysShowVolume||this.state.active},"video-react-volume-menu-button"),onClick:this.handleClick,inline:r},h.default.createElement(y.default,(0,o.default)({onFocus:this.handleFocus,onBlur:this.handleBlur},this.props)))}},{key:"volumeLevel",get:function(){var e=this.props.player,t=e.volume,n=e.muted,a=3;return 0===t||n?a=0:t<.33?a=1:t<.67&&(a=2),a}}]),t}(h.Component);g.propTypes=m,g.defaultProps={vertical:!1},g.displayName="VolumeMenuButton";var b=g;t.default=b},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(45)),i=r(n(32)),l=r(n(18)),u=r(n(19)),d=r(n(21)),s=r(n(23)),c=r(n(22)),f=r(n(24)),h=r(n(15)),p=a(n(0)),v=r(n(17)),y={tagName:h.default.string,onClick:h.default.func.isRequired,onFocus:h.default.func,onBlur:h.default.func,className:h.default.string},m=function(e){function t(e,n){var a;return(0,l.default)(this,t),(a=(0,d.default)(this,(0,s.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,c.default)(a)),a.handleFocus=a.handleFocus.bind((0,c.default)(a)),a.handleBlur=a.handleBlur.bind((0,c.default)(a)),a.handleKeypress=a.handleKeypress.bind((0,c.default)(a)),a}return(0,f.default)(t,e),(0,u.default)(t,[{key:"handleKeypress",value:function(e){32!==e.which&&13!==e.which||(e.preventDefault(),this.handleClick(e))}},{key:"handleClick",value:function(e){(0,this.props.onClick)(e)}},{key:"handleFocus",value:function(e){document.addEventListener("keydown",this.handleKeypress),this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){document.removeEventListener("keydown",this.handleKeypress),this.props.onBlur&&this.props.onBlur(e)}},{key:"render",value:function(){var e=this.props.tagName,t=(0,i.default)({},this.props);return delete t.tagName,delete t.className,p.default.createElement(e,(0,o.default)({className:(0,v.default)(this.props.className),role:"button",tabIndex:"0",onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},t))}}]),t}(p.Component);t.default=m,m.propTypes=y,m.defaultProps={tagName:"div"},m.displayName="ClickableComponent"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p=r(n(143)),v=r(n(144)),y=r(n(107)),m={inline:c.default.bool,items:c.default.array,className:c.default.string,onSelectItem:c.default.func,children:c.default.any,selectedIndex:c.default.number},g=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).state={active:!1,activateIndex:e.selectedIndex||0},a.commitSelection=a.commitSelection.bind((0,d.default)(a)),a.activateMenuItem=a.activateMenuItem.bind((0,d.default)(a)),a.handleClick=a.handleClick.bind((0,d.default)(a)),a.renderMenu=a.renderMenu.bind((0,d.default)(a)),a.handleFocus=a.handleFocus.bind((0,d.default)(a)),a.handleBlur=a.handleBlur.bind((0,d.default)(a)),a.handleUpArrow=a.handleUpArrow.bind((0,d.default)(a)),a.handleDownArrow=a.handleDownArrow.bind((0,d.default)(a)),a.handleEscape=a.handleEscape.bind((0,d.default)(a)),a.handleReturn=a.handleReturn.bind((0,d.default)(a)),a.handleTab=a.handleTab.bind((0,d.default)(a)),a.handleKeyPress=a.handleKeyPress.bind((0,d.default)(a)),a.handleSelectItem=a.handleSelectItem.bind((0,d.default)(a)),a.handleIndexChange=a.handleIndexChange.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentDidUpdate",value:function(e){e.selectedIndex!==this.props.selectedIndex&&this.activateMenuItem(this.props.selectedIndex)}},{key:"commitSelection",value:function(e){this.setState({activateIndex:e,active:!1}),this.handleIndexChange(e)}},{key:"activateMenuItem",value:function(e){this.setState({activateIndex:e}),this.handleIndexChange(e)}},{key:"handleIndexChange",value:function(e){(0,this.props.onSelectItem)(e)}},{key:"handleClick",value:function(){this.setState((function(e){return{active:!e.active}}))}},{key:"handleFocus",value:function(){document.addEventListener("keydown",this.handleKeyPress)}},{key:"handleBlur",value:function(){this.setState({active:!1}),document.removeEventListener("keydown",this.handleKeyPress)}},{key:"handleUpArrow",value:function(e){var t=this.props.items;if(this.state.active){e.preventDefault();var n=this.state.activateIndex-1;n<0&&(n=t.length?t.length-1:0),this.activateMenuItem(n)}}},{key:"handleDownArrow",value:function(e){var t=this.props.items;if(this.state.active){e.preventDefault();var n=this.state.activateIndex+1;n>=t.length&&(n=0),this.activateMenuItem(n)}}},{key:"handleTab",value:function(e){this.state.active&&(e.preventDefault(),this.commitSelection(this.state.activateIndex))}},{key:"handleReturn",value:function(e){e.preventDefault(),this.state.active?this.commitSelection(this.state.activateIndex):this.setState({active:!0})}},{key:"handleEscape",value:function(){this.setState({active:!1,activateIndex:0})}},{key:"handleKeyPress",value:function(e){27===e.which?this.handleEscape(e):9===e.which?this.handleTab(e):13===e.which?this.handleReturn(e):38===e.which?this.handleUpArrow(e):40===e.which&&this.handleDownArrow(e)}},{key:"handleSelectItem",value:function(e){this.commitSelection(e)}},{key:"renderMenu",value:function(){var e=this;if(!this.state.active)return null;var t=this.props.items;return f.default.createElement(p.default,null,t.map((function(t,n){return f.default.createElement(v.default,{item:t,index:n,onSelectItem:e.handleSelectItem,activateIndex:e.state.activateIndex,key:"item-".concat(n++)})})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.inline,a=t.className;return f.default.createElement(y.default,{className:(0,h.default)(a,{"video-react-menu-button-inline":!!n,"video-react-menu-button-popup":!n,"video-react-menu-button-active":this.state.active},"video-react-control video-react-button video-react-menu-button"),role:"button",tabIndex:"0",ref:function(t){e.menuButton=t},onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur},this.props.children,this.renderMenu())}}]),t}(f.Component);t.default=g,g.propTypes=m,g.displayName="MenuButton"},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Player",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Video",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"BigPlayButton",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"LoadingSpinner",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"PosterImage",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Bezel",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Shortcut",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"ControlBar",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"PlayToggle",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"ForwardControl",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"ReplayControl",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"FullscreenToggle",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"ProgressControl",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"SeekBar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"PlayProgressBar",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"LoadProgressBar",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"MouseTimeDisplay",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"VolumeMenuButton",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"PlaybackRateMenuButton",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"PlaybackRate",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"RemainingTimeDisplay",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"CurrentTimeDisplay",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"DurationDisplay",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"TimeDivider",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"MenuButton",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"playerReducer",{enumerable:!0,get:function(){return j.playerReducer}}),Object.defineProperty(t,"operationReducer",{enumerable:!0,get:function(){return j.operationReducer}}),t.videoActions=t.playerActions=void 0;var o=r(n(125)),i=r(n(86)),l=r(n(83)),u=r(n(84)),d=r(n(85)),s=r(n(62)),c=r(n(89)),f=r(n(90)),h=r(n(91)),p=r(n(97)),v=r(n(98)),y=r(n(100)),m=r(n(101)),g=r(n(92)),b=r(n(93)),k=r(n(94)),E=r(n(95)),P=r(n(96)),C=r(n(106)),T=r(n(63)),S=r(n(146)),N=r(n(102)),w=r(n(103)),O=r(n(104)),M=r(n(105)),A=r(n(108)),_=a(n(50));t.playerActions=_;var D=a(n(61));t.videoActions=D;var j=n(81)},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(32)),i=r(n(56)),l=r(n(57)),u=r(n(18)),d=r(n(19)),s=r(n(21)),c=r(n(23)),f=r(n(22)),h=r(n(24)),p=r(n(15)),v=a(n(0)),y=r(n(17)),m=r(n(128)),g=r(n(83)),b=r(n(84)),k=r(n(85)),E=r(n(86)),P=r(n(89)),C=r(n(90)),T=r(n(91)),S=a(n(145)),N=n(51),w=n(30),O=r(n(82)),M={children:p.default.any,width:p.default.oneOfType([p.default.string,p.default.number]),height:p.default.oneOfType([p.default.string,p.default.number]),fluid:p.default.bool,muted:p.default.bool,playsInline:p.default.bool,aspectRatio:p.default.string,className:p.default.string,videoId:p.default.string,startTime:p.default.number,loop:p.default.bool,autoPlay:p.default.bool,src:p.default.string,poster:p.default.string,preload:p.default.oneOf(["auto","metadata","none"]),onLoadStart:p.default.func,onWaiting:p.default.func,onCanPlay:p.default.func,onCanPlayThrough:p.default.func,onPlaying:p.default.func,onEnded:p.default.func,onSeeking:p.default.func,onSeeked:p.default.func,onPlay:p.default.func,onPause:p.default.func,onProgress:p.default.func,onDurationChange:p.default.func,onError:p.default.func,onSuspend:p.default.func,onAbort:p.default.func,onEmptied:p.default.func,onStalled:p.default.func,onLoadedMetadata:p.default.func,onLoadedData:p.default.func,onTimeUpdate:p.default.func,onRateChange:p.default.func,onVolumeChange:p.default.func,store:p.default.object},A=function(e){function t(e){var n;return(0,u.default)(this,t),(n=(0,s.default)(this,(0,c.default)(t).call(this,e))).controlsHideTimer=null,n.video=null,n.manager=new m.default(e.store),n.actions=n.manager.getActions(),n.manager.subscribeToPlayerStateChange(n.handleStateChange.bind((0,f.default)(n))),n.getStyle=n.getStyle.bind((0,f.default)(n)),n.handleResize=n.handleResize.bind((0,f.default)(n)),n.getChildren=n.getChildren.bind((0,f.default)(n)),n.handleMouseMove=(0,w.throttle)(n.handleMouseMove.bind((0,f.default)(n)),250),n.handleMouseDown=n.handleMouseDown.bind((0,f.default)(n)),n.startControlsTimer=n.startControlsTimer.bind((0,f.default)(n)),n.handleFullScreenChange=n.handleFullScreenChange.bind((0,f.default)(n)),n.handleKeyDown=n.handleKeyDown.bind((0,f.default)(n)),n.handleFocus=n.handleFocus.bind((0,f.default)(n)),n.handleBlur=n.handleBlur.bind((0,f.default)(n)),n}return(0,h.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){this.handleResize(),window.addEventListener("resize",this.handleResize),O.default.addEventListener(this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),O.default.removeEventListener(this.handleFullScreenChange),this.controlsHideTimer&&window.clearTimeout(this.controlsHideTimer)}},{key:"getDefaultChildren",value:function(e){var t=this;return[v.default.createElement(E.default,{ref:function(e){t.video=e,t.manager.video=t.video},key:"video",order:0},e),v.default.createElement(k.default,{key:"poster-image",order:1}),v.default.createElement(b.default,{key:"loading-spinner",order:2}),v.default.createElement(P.default,{key:"bezel",order:3}),v.default.createElement(g.default,{key:"big-play-button",order:4}),v.default.createElement(T.default,{key:"control-bar",order:5}),v.default.createElement(C.default,{key:"shortcut",order:99})]}},{key:"getChildren",value:function(e){e.className;var t=e.children,n=(0,l.default)(e,["className","children"]),a=v.default.Children.toArray(this.props.children).filter((function(e){return!(0,w.isVideoChild)(e)})),r=this.getDefaultChildren(t);return(0,w.mergeAndSortChildren)(r,a,n)}},{key:"setWidthOrHeight",value:function(e,t,n){var a;"string"==typeof n?"auto"===n?a="auto":n.match(/\d+%/)&&(a=n):"number"==typeof n&&(a="".concat(n,"px")),Object.assign(e,(0,i.default)({},t,a))}},{key:"getStyle",value:function(){var e,t,n=this.props,a=n.fluid,r=n.aspectRatio,o=n.height,i=n.width,l=this.manager.getState().player,u={},d=(void 0!==r&&"auto"!==r?r:l.videoWidth?"".concat(l.videoWidth,":").concat(l.videoHeight):"16:9").split(":"),s=d[1]/d[0];return e=void 0!==i?i:void 0!==o?o/s:l.videoWidth||400,t=void 0!==o?o:e*s,a?u.paddingTop="".concat(100*s,"%"):(this.setWidthOrHeight(u,"width",e),this.setWidthOrHeight(u,"height",t)),u}},{key:"getState",value:function(){return this.manager.getState()}},{key:"play",value:function(){this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"load",value:function(){this.video.load()}},{key:"addTextTrack",value:function(){var e;(e=this.video).addTextTrack.apply(e,arguments)}},{key:"canPlayType",value:function(){var e;(e=this.video).canPlayType.apply(e,arguments)}},{key:"seek",value:function(e){this.video.seek(e)}},{key:"forward",value:function(e){this.video.forward(e)}},{key:"replay",value:function(e){this.video.replay(e)}},{key:"toggleFullscreen",value:function(){this.video.toggleFullscreen()}},{key:"subscribeToStateChange",value:function(e){return this.manager.subscribeToPlayerStateChange(e)}},{key:"handleResize",value:function(){}},{key:"handleFullScreenChange",value:function(e){e.target===this.manager.rootElement&&this.actions.handleFullscreenChange(O.default.isFullscreen)}},{key:"handleMouseDown",value:function(){this.startControlsTimer()}},{key:"handleMouseMove",value:function(){this.startControlsTimer()}},{key:"handleKeyDown",value:function(){this.startControlsTimer()}},{key:"startControlsTimer",value:function(){var e=this,t=3e3;v.default.Children.forEach(this.props.children,(function(e){if(v.default.isValidElement(e)&&e.type===T.default){var n=e.props.autoHideTime;"number"==typeof n&&(t=n)}})),this.actions.userActivate(!0),clearTimeout(this.controlsHideTimer),this.controlsHideTimer=setTimeout((function(){e.actions.userActivate(!1)}),t)}},{key:"handleStateChange",value:function(e,t){e.isFullscreen!==t.isFullscreen&&(this.handleResize(),(0,N.focusNode)(this.manager.rootElement)),this.forceUpdate()}},{key:"handleFocus",value:function(){this.actions.activate(!0)}},{key:"handleBlur",value:function(){this.actions.activate(!1)}},{key:"render",value:function(){var e=this,t=this.props.fluid,n=this.manager.getState().player,a=n.paused,r=n.hasStarted,i=n.waiting,l=n.seeking,u=n.isFullscreen,d=n.userActivity,s=(0,o.default)({},this.props,{player:n,actions:this.actions,manager:this.manager,store:this.manager.store,video:this.video?this.video.video:null}),c=this.getChildren(s);return v.default.createElement("div",{className:(0,y.default)({"video-react-controls-enabled":!0,"video-react-has-started":r,"video-react-paused":a,"video-react-playing":!a,"video-react-waiting":i,"video-react-seeking":l,"video-react-fluid":t,"video-react-fullscreen":u,"video-react-user-inactive":!d,"video-react-user-active":d,"video-react-workinghover":!S.IS_IOS},"video-react",this.props.className),style:this.getStyle(),ref:function(t){e.manager.rootElement=t},role:"region",onTouchStart:this.handleMouseDown,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:"-1"},c)}},{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"volume",get:function(){return this.video.volume},set:function(e){this.video.volume=e}},{key:"videoWidth",get:function(){return this.video.videoWidth}},{key:"videoHeight",get:function(){return this.video.videoHeight}}]),t}(v.Component);t.default=A,A.contextTypes={store:p.default.object},A.propTypes=M,A.defaultProps={fluid:!0,muted:!1,playsInline:!1,preload:"auto",aspectRatio:"auto"},A.displayName="Player"},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(32)),i=r(n(18)),l=r(n(19)),u=n(129),d=r(n(81)),s=a(n(50)),c=a(n(61)),f=function(){function e(t){(0,i.default)(this,e),this.store=t||(0,u.createStore)(d.default),this.video=null,this.rootElement=null}return(0,l.default)(e,[{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=(0,o.default)({},s,c);return Object.keys(n).filter((function(e){return"function"==typeof n[e]})).reduce((function(a,r){var o;return a[r]=(o=n[r],function(){var n=o.apply(e,arguments);void 0!==n&&t(n)}),a}),{})}},{key:"getState",value:function(){return this.store.getState()}},{key:"subscribeToStateChange",value:function(e,t){t||(t=this.getState.bind(this));var n=t();return this.store.subscribe((function(){var a=t();if(a!==n){var r=n;n=a,e(a,r)}}))}},{key:"subscribeToOperationStateChange",value:function(e){var t=this;return this.subscribeToStateChange(e,(function(){return t.getState().operation}))}},{key:"subscribeToPlayerStateChange",value:function(e){var t=this;return this.subscribeToStateChange(e,(function(){return t.getState().player}))}}]),e}();t.default=f},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return o})),n.d(t,"applyMiddleware",(function(){return y})),n.d(t,"bindActionCreators",(function(){return c})),n.d(t,"combineReducers",(function(){return d})),n.d(t,"compose",(function(){return v})),n.d(t,"createStore",(function(){return l}));var a=n(130),r=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+r(),REPLACE:"@@redux/REPLACE"+r(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+r()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(l)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,d=t,s=[],c=s,f=!1;function h(){c===s&&(c=s.slice())}function p(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return d}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),c.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var n=c.indexOf(e);c.splice(n,1),s=null}}}function y(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,d=u(d,e)}finally{f=!1}for(var t=s=c,n=0;n<t.length;n++){(0,t[n])()}return e}function m(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");u=e,y({type:o.REPLACE})}function g(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[a.a]=function(){return this},e}return y({type:o.INIT}),(r={dispatch:y,subscribe:v,getState:p,replaceReducer:m})[a.a]=g,r}function u(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function d(e){for(var t=Object.keys(e),n={},a=0;a<t.length;a++){var r=t[a];0,"function"==typeof e[r]&&(n[r]=e[r])}var i,l=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var a=!1,r={},o=0;o<l.length;o++){var d=l[o],s=n[d],c=e[d],f=s(c,t);if(void 0===f){var h=u(d,t);throw new Error(h)}r[d]=f,a=a||f!==c}return(a=a||l.length!==Object.keys(e).length)?r:e}}function s(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return s(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var a in e){var r=e[a];"function"==typeof r&&(n[a]=s(r,t))}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return p({},n,{dispatch:a=v.apply(void 0,o)(n.dispatch)})}}}},function(e,t,n){"use strict";(function(e,a){var r,o=n(132);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:a;var i=Object(o.a)(r);t.a=i}).call(this,n(60),n(131)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";function a(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.USER_ACTIVATE:return(0,r.default)({},e,{userActivity:t.activity});case i.PLAYER_ACTIVATE:return(0,r.default)({},e,{isActive:t.activity});case i.FULLSCREEN_CHANGE:return(0,r.default)({},e,{isFullscreen:!!t.isFullscreen});case o.SEEKING_TIME:return(0,r.default)({},e,{seekingTime:t.time});case o.END_SEEKING:return(0,r.default)({},e,{seekingTime:0});case o.LOAD_START:return(0,r.default)({},e,t.videoProps,{hasStarted:!1,ended:!1});case o.CAN_PLAY:return(0,r.default)({},e,t.videoProps,{waiting:!1});case o.WAITING:return(0,r.default)({},e,t.videoProps,{waiting:!0});case o.CAN_PLAY_THROUGH:case o.PLAYING:return(0,r.default)({},e,t.videoProps,{waiting:!1});case o.PLAY:return(0,r.default)({},e,t.videoProps,{ended:!1,paused:!1,autoPaused:!1,waiting:!1,hasStarted:!0});case o.PAUSE:return(0,r.default)({},e,t.videoProps,{paused:!0});case o.END:return(0,r.default)({},e,t.videoProps,{ended:!0});case o.SEEKING:return(0,r.default)({},e,t.videoProps,{seeking:!0});case o.SEEKED:return(0,r.default)({},e,t.videoProps,{seeking:!1});case o.ERROR:return(0,r.default)({},e,t.videoProps,{error:"UNKNOWN ERROR",ended:!0});case o.DURATION_CHANGE:case o.TIME_UPDATE:case o.VOLUME_CHANGE:case o.PROGRESS_CHANGE:case o.RATE_CHANGE:case o.SUSPEND:case o.ABORT:case o.EMPTIED:case o.STALLED:case o.LOADED_META_DATA:case o.LOADED_DATA:case o.RESIZE:return(0,r.default)({},e,t.videoProps);default:return e}};var r=a(n(32)),o=n(61),i=n(50),l={currentSrc:null,duration:0,currentTime:0,seekingTime:0,buffered:null,waiting:!1,seeking:!1,paused:!0,autoPaused:!1,ended:!1,playbackRate:1,muted:!1,volume:1,readyState:0,networkState:0,videoWidth:0,videoHeight:0,hasStarted:!1,userActivity:!0,isActive:!1,isFullscreen:!1}},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.OPERATE:return(0,r.default)({},e,{count:e.count+1,operation:(0,r.default)({},e.operation,t.operation)});default:return e}};var r=a(n(32)),o=n(50),i={count:0,operation:{action:"",source:""}}},function(e,t,n){var a=n(88);e.exports=function(e){if(Array.isArray(e))return a(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var a=n(88);e.exports=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=a(n(45)),o=a(n(32)),i=a(n(15)),l=a(n(0)),u=a(n(17)),d=a(n(107)),s=a(n(140)),c={inline:i.default.bool,onClick:i.default.func.isRequired,onFocus:i.default.func,onBlur:i.default.func,className:i.default.string};function f(e){var t=e.inline,n=e.className,a=(0,o.default)({},e);return delete a.children,delete a.inline,delete a.className,l.default.createElement(d.default,(0,r.default)({className:(0,u.default)(n,{"video-react-menu-button-inline":!!t,"video-react-menu-button-popup":!t},"video-react-control video-react-button video-react-menu-button")},a),l.default.createElement(s.default,e))}f.propTypes=c,f.defaultProps={inline:!0},f.displayName="PopupButton"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h={player:c.default.object,children:c.default.any},p=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e=this.props.children;return f.default.createElement("div",{className:"video-react-menu",onClick:this.handleClick},f.default.createElement("div",{className:"video-react-menu-content"},e))}}]),t}(f.Component);t.default=p,p.propTypes=h,p.displayName="Popup"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(45)),i=r(n(18)),l=r(n(19)),u=r(n(21)),d=r(n(23)),s=r(n(22)),c=r(n(24)),f=r(n(15)),h=a(n(0)),p=r(n(17)),v=r(n(62)),y=r(n(142)),m={actions:f.default.object,player:f.default.object,className:f.default.string,onFocus:f.default.func,onBlur:f.default.func},g=function(e){function t(e,n){var a;return(0,i.default)(this,t),(a=(0,u.default)(this,(0,d.default)(t).call(this,e,n))).state={percentage:"0%"},a.handleMouseMove=a.handleMouseMove.bind((0,s.default)(a)),a.handlePercentageChange=a.handlePercentageChange.bind((0,s.default)(a)),a.checkMuted=a.checkMuted.bind((0,s.default)(a)),a.getPercent=a.getPercent.bind((0,s.default)(a)),a.stepForward=a.stepForward.bind((0,s.default)(a)),a.stepBack=a.stepBack.bind((0,s.default)(a)),a.handleFocus=a.handleFocus.bind((0,s.default)(a)),a.handleBlur=a.handleBlur.bind((0,s.default)(a)),a.handleClick=a.handleClick.bind((0,s.default)(a)),a}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){}},{key:"getPercent",value:function(){var e=this.props.player;return e.muted?0:e.volume}},{key:"checkMuted",value:function(){var e=this.props,t=e.player,n=e.actions;t.muted&&n.mute(!1)}},{key:"handleMouseMove",value:function(e){var t=this.props.actions;this.checkMuted();var n=this.slider.calculateDistance(e);t.changeVolume(n)}},{key:"stepForward",value:function(){var e=this.props,t=e.player,n=e.actions;this.checkMuted(),n.changeVolume(t.volume+.1)}},{key:"stepBack",value:function(){var e=this.props,t=e.player,n=e.actions;this.checkMuted(),n.changeVolume(t.volume-.1)}},{key:"handleFocus",value:function(e){this.props.onFocus&&this.props.onFocus(e)}},{key:"handleBlur",value:function(e){this.props.onBlur&&this.props.onBlur(e)}},{key:"handlePercentageChange",value:function(e){e!==this.state.percentage&&this.setState({percentage:e})}},{key:"handleClick",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.player,a=t.className,r=(100*n.volume).toFixed(2);return h.default.createElement(v.default,(0,o.default)({ref:function(t){e.slider=t},label:"volume level",valuenow:r,valuetext:"".concat(r,"%"),onMouseMove:this.handleMouseMove,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,sliderActive:this.handleFocus,sliderInactive:this.handleBlur,getPercent:this.getPercent,onPercentageChange:this.handlePercentageChange,stepForward:this.stepForward,stepBack:this.stepBack},this.props,{className:(0,p.default)(a,"video-react-volume-bar video-react-slider-bar")}),h.default.createElement(y.default,this.props))}}]),t}(h.Component);g.propTypes=m,g.displayName="VolumeBar";var b=g;t.default=b},function(e,t,n){"use strict";var a=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(15)),o=a(n(0)),i=a(n(17)),l={percentage:r.default.string,vertical:r.default.bool,className:r.default.string};function u(e){var t=e.percentage,n=e.vertical,a=e.className,r={};return n?r.height=t:r.width=t,o.default.createElement("div",{className:(0,i.default)(a,"video-react-volume-level"),style:r},o.default.createElement("span",{className:"video-react-control-text"}))}u.propTypes=l,u.defaultProps={percentage:"100%",vertical:!1},u.displayName="VolumeLevel";var d=u;t.default=d},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h={children:c.default.any},p=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){return f.default.createElement("div",{className:"video-react-menu video-react-lock-showing",role:"presentation",onClick:this.handleClick},f.default.createElement("ul",{className:"video-react-menu-content"},this.props.children))}}]),t}(f.Component);t.default=p,p.propTypes=h,p.displayName="Menu"},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(22)),s=r(n(24)),c=r(n(15)),f=a(n(0)),h=r(n(17)),p={item:c.default.object,index:c.default.number,activateIndex:c.default.number,onSelectItem:c.default.func},v=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,l.default)(this,(0,u.default)(t).call(this,e,n))).handleClick=a.handleClick.bind((0,d.default)(a)),a}return(0,s.default)(t,e),(0,i.default)(t,[{key:"handleClick",value:function(){var e=this.props,t=e.index;(0,e.onSelectItem)(t)}},{key:"render",value:function(){var e=this.props,t=e.item,n=e.index,a=e.activateIndex;return f.default.createElement("li",{className:(0,h.default)({"video-react-menu-item":!0,"video-react-selected":n===a}),role:"menuitem",onClick:this.handleClick},t.label,f.default.createElement("span",{className:"video-react-control-text"}))}}]),t}(f.Component);t.default=v,v.propTypes=p,v.displayName="MenuItem"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_IOS=t.IS_IPOD=t.IS_IPHONE=t.IS_IPAD=void 0;var a="undefined"!=typeof window&&window.navigator?window.navigator.userAgent:"",r=/iPad/i.test(a);t.IS_IPAD=r;var o=/iPhone/i.test(a)&&!r;t.IS_IPHONE=o;var i=/iPod/i.test(a);t.IS_IPOD=i;var l=o||r||i;t.IS_IOS=l},function(e,t,n){"use strict";var a=n(20),r=n(16);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(18)),i=r(n(19)),l=r(n(21)),u=r(n(23)),d=r(n(24)),s=a(n(0)),c=r(n(63)),f=n(30),h=function(e){function t(e,n){var a;return(0,o.default)(this,t),a=(0,l.default)(this,(0,u.default)(t).call(this,e,n)),(0,f.deprecatedWarning)("PlaybackRate","PlaybackRateMenuButton"),a}return(0,d.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){return s.default.createElement(c.default,this.props)}}]),t}(s.Component);t.default=h,h.displayName="PlaybackRate"}]]);