1 line
2.0 MiB
JavaScript
1 line
2.0 MiB
JavaScript
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.videojs=t()}(this,function(){var e="7.2.4",t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t){return e(t={exports:{}},t.exports),t.exports}var r,n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},a={},s=Object.freeze({default:a}),o=s&&a||s,u=void 0!==t?t:"undefined"!=typeof window?window:{};"undefined"!=typeof document?r=document:(r=u["__GLOBAL_DOCUMENT_CACHE@4"])||(r=u["__GLOBAL_DOCUMENT_CACHE@4"]=o);var l=r,d=void 0,c="info",h=[],f=function(e,t){var i=d.levels[c],r=new RegExp("^("+i+")$");if("log"!==e&&t.unshift(e.toUpperCase()+":"),h&&h.push([].concat(t)),t.unshift("VIDEOJS:"),n.console){var a=n.console[e];a||"debug"!==e||(a=n.console.info||n.console.log),a&&i&&r.test(e)}};(d=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];f("log",t)}).levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:c},d.level=function(e){if("string"==typeof e){if(!d.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');c=e}return c},d.history=function(){return h?[].concat(h):[]},d.history.clear=function(){h&&(h.length=0)},d.history.disable=function(){null!==h&&(h.length=0,h=null)},d.history.enable=function(){null===h&&(h=[])},d.error=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return f("error",t)},d.warn=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return f("warn",t)},d.debug=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return f("debug",t)};var p=d;function m(e){return e.replace(/\n\r?\s*/g,"")}var g=function(e){for(var t="",i=0;i<arguments.length;i++)t+=m(e[i])+(arguments[i+1]||"");return t},v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w=function(e,t){return e.raw=t,e},E=Object.prototype.toString,T=function(e){return k(e)?Object.keys(e):[]};function S(e,t){T(e).forEach(function(i){return t(e[i],i)})}function A(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[e].concat(i)):(i.forEach(function(t){t&&S(t,function(t,i){e[i]=t})}),e)}function k(e){return!!e&&"object"===(void 0===e?"undefined":v(e))}function R(e){return k(e)&&"[object Object]"===E.call(e)&&e.constructor===Object}function M(e,t){if(!e||!t)return"";if("function"==typeof n.getComputedStyle){var i=n.getComputedStyle(e);return i?i[t]:""}return""}var O=w(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function C(e){return"string"==typeof e&&/\S/.test(e)}function D(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function I(){return l===n.document}function L(e){return k(e)&&1===e.nodeType}function x(){try{return n.pare
|