mediacms/static/lib/video-js/7.7.5/video.js

2 wiersze
459 KiB
JavaScript
Czysty Zwykły widok Historia

/*! For license information please see video.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("global/window"),require("global/document")):"function"==typeof define&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,(function(e,t){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var i="7.7.5",n=[],r=function t(i){var r,s="info",a=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r("log",s,t)};return r=function(t,i){return function(r,s,a){var o=i.levels[s],u=new RegExp("^("+o+")$");if("log"!==r&&a.unshift(r.toUpperCase()+":"),a.unshift(t+":"),n){n.push([].concat(a));var l=n.length-1e3;n.splice(0,l>0?l:0)}if(e.console){var c=e.console[r];c||"debug"!==r||(c=e.console.info||e.console.log),c&&o&&u.test(r)&&c[Array.isArray(a)?"apply":"call"](e.console,a)}}}(i,a),a.createLogger=function(e){return t(i+": "+e)},a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:s},a.level=function(e){if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');s=e}return s},(a.history=function(){return n?[].concat(n):[]}).filter=function(e){return(n||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},a.history.clear=function(){n&&(n.length=0)},a.history.disable=function(){null!==n&&(n.length=0,n=null)},a.history.enable=function(){null===n&&(n=[])},a.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("error",s,t)},a.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("warn",s,t)},a.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("debug",s,t)},a}("VIDEOJS"),s=r.createLogger;function a(e,t){return e(t={exports:{}},t.exports),t.exports}var o=a((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},t.apply(this,arguments)}e.exports=t})),u=Object.prototype.toString,l=function(e){return d(e)?Object.keys(e):[]};function c(e,t){l(e).forEach((function(i){return t(e[i],i)}))}function h(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Object.assign?o.apply(void 0,[e].concat(i)):(i.forEach((function(t){t&&c(t,(function(t,i){e[i]=t}))})),e)}function d(e){return!!e&&"object"==typeof e}function p(e){return d(e)&&"[object Object]"===u.call(e)&&e.constructor===Object}function f(t,i){if(!t||!i)return"";if("function"==typeof e.getComputedStyle){var n=e.getComputedStyle(t);return n?n.getPropertyValue(i)||n[i]:""}return""}function m(e){return"string"==typeof e&&Boolean(e.trim())}function g(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function v(){return t===e.document}function y(e){return d(e)&&1===e.nodeType}function _(){try{return e.parent!==e.self}catch(e){return!0}}function b(e){return function(i,n){if(!m(i))return t[e](null);m(n)&&(n=t.querySelector(n));var r=y(n)?n:t;return r[e]&&r[e](i)}}function T(e,i,n,s){void 0===e&&(e="div"),void 0===i&&(i={}),void 0===n&&(n={});var a=t.createElement(e);return Object.getOwnPropertyNames(i).forEach((function(e){var t=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(r.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),a.setAttribute(e,t)):"textContent"===e?S(a,t):a[e]!==t&&(a[e]=t)})),Object.getOwnPropertyNames(n).forEach((function(e){a.setAttribute(e,n[e])})),s&&H(a,s),a}function S(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function k(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function C(e,t){return g(t),e.classList?e.classList.contains(t):(i=t,new RegExp("(^|\\s)"+i+"($|\\s)")).te