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AY,CACjE,UAAW,KAAK,MAAM,UACtB,MAAO,GACN,KAAK,MAAM,cAChB,IAvDiE,GAAY,EAAqB,EAAY,UAAW,GAAiB,GAAa,EAAqB,EAAa,GA0DpL,CACT,CA/BA,CA+BE,EAA2B,WAE7B,EAAe,UAAY,CAQzB,cAAe,EAA4B,EAAE,KAW7C,wBAAyB,EAA4B,EAAE,KASvD,mBAAoB,EAA4B,EAAE,KAMlD,sBAAuB,EAA4B,EAAE,KAKrD,aAAc,EAA4B,EAAE,OAQ5C,MAAO,EAA4B,EAAE,OAKrC,UAAW,EAA4B,EAAE,QAE3C,EAAe,aAAe,CAC5B,eAAe,EACf,yBAAyB,GAEY,EAA6B,QAAI,CAEjE,GAEP","file":"/npm/pistock-player@1.2.2/dist/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/pistock-player@1.2.2/dist/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"prop-types\"), require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"react-video-cover\", [\"prop-types\", \"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"react-video-cover\"] = factory(require(\"prop-types\"), require(\"react\"));\n\telse\n\t\troot[\"react-video-cover\"] = factory(root[\"prop-types\"], root[\"react\"]);\n})(global, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 2);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__1__;\n\n/***/ }),\n/* 2 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n\n// EXTERNAL MODULE: external \"react\"\nvar external_react_ = __webpack_require__(1);\nvar external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);\n\n// EXTERNAL MODULE: external \"prop-types\"\nvar external_prop_types_ = __webpack_require__(0);\nvar external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);\n\n// CONCATENATED MODULE: ./lib/VideoCoverFallback.js\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n\n\n\nvar VideoCoverFallback_VideoCoverFallback =\n/*#__PURE__*/\nfunction (_Component) {\n  _inherits(VideoCoverFallback, _Component);\n\n  function VideoCoverFallback(props) {\n    var _this;\n\n    _classCallCheck(this, VideoCoverFallback);\n\n    _this = _possibleConstructorReturn(this, _getPrototypeOf(VideoCoverFallback).call(this, props));\n    _this.state = {\n      innerRatio: undefined,\n      outerRatio: undefined\n    };\n    _this.updateContainerRatio = _this.updateContainerRatio.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n    _this.updateVideoRatio = _this.updateVideoRatio.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n    _this.initEventListeners = _this.initEventListeners.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n    _this.removeEventListeners = _this.removeEventListeners.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n    return _this;\n  }\n\n  _createClass(VideoCoverFallback, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.updateContainerRatio();\n\n      if (typeof this.props.onFallbackDidMount === 'function') {\n        this.props.onFallbackDidMount(this.updateContainerRatio);\n      }\n\n      if (this.props.remeasureOnWindowResize) {\n        this.initEventListeners();\n      }\n    }\n  }, {\n    key: \"componentWillReceiveProps\",\n    value: function componentWillReceiveProps(nextProps) {\n      if (nextProps.remeasureOnWindowResize !== this.props.remeasureOnWindowResize) {\n        if (nextProps.remeasureOnWindowResize) {\n          this.initEventListeners();\n        } else {\n          this.removeEventListeners();\n        }\n      }\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      this.removeEventListeners();\n\n      if (typeof this.props.onFallbackWillUnmount === 'function') {\n        this.props.onFallbackWillUnmount();\n      }\n    }\n  }, {\n    key: \"updateContainerRatio\",\n    value: function updateContainerRatio() {\n      if (this.containerRef) {\n        var _this$containerRef$ge = this.containerRef.getBoundingClientRect(),\n            width = _this$containerRef$ge.width,\n            height = _this$containerRef$ge.height;\n\n        this.setState({\n          outerRatio: width / height\n        });\n      }\n    }\n  }, {\n    key: \"updateVideoRatio\",\n    value: function updateVideoRatio(width, height) {\n      this.setState({\n        innerRatio: width / height\n      });\n    }\n  }, {\n    key: \"initEventListeners\",\n    value: function initEventListeners() {\n      window.addEventListener('resize', this.updateContainerRatio);\n    }\n  }, {\n    key: \"removeEventListeners\",\n    value: function removeEventListeners() {\n      window.removeEventListener('resize', this.updateContainerRatio);\n    }\n    /**\n     * We can get the width and height of a video after it has started loading.\n     * Then we can compare the aspect ratio of the video to that of it's surrounding container.\n     * That is all we need to determine if the video fills the container vertically or horizontally.\n     * In the other dimension we just have to maintain the original aspect-ratio.\n     */\n\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this2 = this;\n\n      var _this$state = this.state,\n          innerRatio = _this$state.innerRatio,\n          outerRatio = _this$state.outerRatio;\n      var style = {\n        width: innerRatio > outerRatio ? 'auto' : '100%',\n        height: innerRatio > outerRatio ? '100%' : 'auto',\n\n        /* the following is for centering the video.\n        There has to be some better solution?!\n        any help is very much appreciated :) */\n        position: 'absolute',\n        top: '-9999px',\n        bottom: '-9999px',\n        left: '-9999px',\n        right: '-9999px',\n        margin: 'auto'\n      };\n\n      var outerStyle = _objectSpread({\n        width: '100%',\n        height: '100%'\n      }, this.props.style, {\n        position: 'relative',\n        overflow: 'hidden'\n      });\n\n      return external_react_default.a.createElement(\"div\", {\n        style: outerStyle,\n        ref: function ref(_ref) {\n          _this2.containerRef = _ref;\n        },\n        className: this.props.className\n      }, external_react_default.a.createElement(\"video\", _extends({\n        onLoadedData: function onLoadedData(event) {\n          _this2.updateVideoRatio(event.target.videoWidth, event.target.videoHeight);\n        },\n        style: style\n      }, this.props.videoOptions)));\n    }\n  }]);\n\n  return VideoCoverFallback;\n}(external_react_[\"Component\"]);\n\nVideoCoverFallback_VideoCoverFallback.propTypes = {\n  style: external_prop_types_default.a.object,\n  onFallbackDidMount: external_prop_types_default.a.func,\n  onFallbackWillUnmount: external_prop_types_default.a.func,\n  videoOptions: external_prop_types_default.a.object,\n  forceFallback: external_prop_types_default.a.bool,\n  remeasureOnWindowResize: external_prop_types_default.a.bool,\n  className: external_prop_types_default.a.string\n};\n/* harmony default export */ var lib_VideoCoverFallback = (VideoCoverFallback_VideoCoverFallback);\n// CONCATENATED MODULE: ./lib/index.js\nfunction lib_typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { lib_typeof = function _typeof(obj) { return typeof obj; }; } else { lib_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return lib_typeof(obj); }\n\nfunction lib_extends() { lib_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return lib_extends.apply(this, arguments); }\n\nfunction lib_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { lib_defineProperty(target, key, source[key]); }); } return target; }\n\nfunction lib_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction lib_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction lib_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction lib_createClass(Constructor, protoProps, staticProps) { if (protoProps) lib_defineProperties(Constructor.prototype, protoProps); if (staticProps) lib_defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction lib_possibleConstructorReturn(self, call) { if (call && (lib_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return lib_assertThisInitialized(self); }\n\nfunction lib_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction lib_getPrototypeOf(o) { lib_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return lib_getPrototypeOf(o); }\n\nfunction lib_inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) lib_setPrototypeOf(subClass, superClass); }\n\nfunction lib_setPrototypeOf(o, p) { lib_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return lib_setPrototypeOf(o, p); }\n\n\n\n\n/*\n * this component is a simple wrapper around <video/> that displays the video filling\n * the container, while preserving it's aspect ratio\n * this is analogous to background-size: cover for background images\n * and very easy to achieve with the css property object-fit: cover\n * unfortunately object-fit is not implemented in IE so a fallback will be used\n *\n * IF YOU DO NOT HAVE TO SUPPORT IE, you probably do not need this component\n * just have a look at the styles for the non-fallback implementation\n */\n\nvar lib_VideoCover =\n/*#__PURE__*/\nfunction (_Component) {\n  lib_inherits(VideoCover, _Component);\n\n  function VideoCover() {\n    lib_classCallCheck(this, VideoCover);\n\n    return lib_possibleConstructorReturn(this, lib_getPrototypeOf(VideoCover).apply(this, arguments));\n  }\n\n  lib_createClass(VideoCover, [{\n    key: \"render\",\n    value: function render() {\n      var style = lib_objectSpread({\n        width: '100%',\n        height: '100%'\n      }, this.props.style, {\n        objectFit: 'cover'\n      });\n\n      if (this.props.forceFallback || typeof window !== 'undefined' && /MSIE|Trident|Edge/.test(window.navigator.userAgent)) {\n        return external_react_default.a.createElement(lib_VideoCoverFallback, this.props);\n      }\n\n      return external_react_default.a.createElement(\"video\", lib_extends({\n        className: this.props.className,\n        style: style\n      }, this.props.videoOptions));\n    }\n  }]);\n\n  return VideoCover;\n}(external_react_[\"Component\"]);\n\nlib_VideoCover.propTypes = {\n  /**\n   * This component will use object-fit: cover if available,\n   * that is in all modern browsers except IE.\n   * This prop forces use of the fallback. This is helpful during troubleshooting,\n   * but apart from that you should not use it.\n   * default: false\n   */\n  forceFallback: external_prop_types_default.a.bool,\n\n  /**\n   * If set, an event listener on window-resize is added when the Fallback is used.\n   * It will re-evaluate the aspect-ratio and update the styles if necessary.\n   * This has no effect if the fallback is not used.\n   * The classic example where it makes sense to use this is when using a background video.\n   * If you need to react to different events to re-measure the aspect-ratio\n   * please see the onFallbackDidMount prop.\n   * default: false\n   */\n  remeasureOnWindowResize: external_prop_types_default.a.bool,\n\n  /**\n   * Will be executed when the Fallback is mounted.\n   * The only parameter is a function, which can be used to force a re-measuring,\n   * for example after the size of the surrounding container has changed.\n   * Please note that this will only be invoked if the fallback is used, that is in IE.\n   * See ResizableCoverExample for an example implementation.\n   */\n  onFallbackDidMount: external_prop_types_default.a.func,\n\n  /**\n   * Will be executed before the Fallback unmounts.\n   * You probably want to use this to clear any event-listeners added in onFallbackDidMount.\n   */\n  onFallbackWillUnmount: external_prop_types_default.a.func,\n\n  /**\n   * All members of videoOptions will be passed as props to the <video/>.\n   */\n  videoOptions: external_prop_types_default.a.object,\n\n  /**\n   * Additional styles which will be merged with those defined by this component.\n   * Please note that some styles are not possible to override, in particular:\n   *   - object-fit: cover (when the fallback is not used)\n   *   - position: relative and overflow: hidden (when the fallback is used)\n   */\n  style: external_prop_types_default.a.object,\n\n  /**\n   * Use this to set a custom className.\n   */\n  className: external_prop_types_default.a.string\n};\nlib_VideoCover.defaultProps = {\n  forceFallback: false,\n  remeasureOnWindowResize: false\n};\n/* harmony default export */ var lib = __webpack_exports__[\"default\"] = (lib_VideoCover);\n\n/***/ })\n/******/ ]);\n});"]}