Files
mediacms/static/lib/video-js/7.20.2/video.min.js
T

2 lines
566 KiB
JavaScript
Raw Normal View History

2022-09-07 12:33:11 +03:00
/*! For license information please see video.min.js.LICENSE.txt */
2025-07-08 06:06:31 +03:00
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojs=t()}(this,function(){"use strict";for(var e,t="7.20.2",i={},n=function(e,t){return i[e]=i[e]||[],t&&(i[e]=i[e].concat(t)),i[e]},r=function(e,t){return!((t=n(e).indexOf(t))<=-1||(i[e]=i[e].slice(),i[e].splice(t,1),0))},a={prefixed:!0},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],o=s[0],u=0;u<s.length;u++)if(s[u][1]in document){e=s[u];break}if(e){for(var l=0;l<e.length;l++)a[o[l]]=e[l];a.prefixed=e[0]!==o[0]}var c=[],d=function e(t){function i(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r("log",n,t)}var n="info",r=function(e,t){return function(i,n,r){var a,s=t.levels[n];n=new RegExp("^("+s+")$"),"log"!==i&&r.unshift(i.toUpperCase()+":"),r.unshift(e+":"),c&&(c.push([].concat(r)),a=c.length-1e3,c.splice(0,0<a?a:0)),!window.console||(a=(a=window.console[i])||"debug"!==i?a:window.console.info||window.console.log)&&s&&n.test(i)&&a[Array.isArray(r)?"apply":"call"](window.console,r)}}(t,i);return i.createLogger=function(i){return e(t+": "+i)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(i.history=function(){return c?[].concat(c):[]}).filter=function(e){return(c||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){c&&(c.length=0)},i.history.disable=function(){null!==c&&(c.length=0,c=null)},i.history.enable=function(){null===c&&(c=[])},i.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("error",n,t)},i.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("warn",n,t)},i.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("debug",n,t)},i}("VIDEOJS"),h=d.createLogger,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var m=f(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}e.exports=t}),g=Object.prototype.toString,y=function(e){return b(e)?Object.keys(e):[]};function v(e,t){y(e).forEach(function(i){return t(e[i],i)})}function _(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Object.assign?m.apply(void 0,[e].concat(i)):(i.forEach(function(t){t&&v(t,function(t,i){e[i]=t})}),e)}function b(e){return!!e&&"object"==typeof e}function T(e){return b(e)&&"[object Object]"===g.call(e)&&e.constructor===Object}function S(e,t){if(!e||!t)return"";if("function"!=typeof window.getComputedStyle)return"";var i;try{i=window.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}var w=window.navigator&&window.navigator.userAgent||"",E=(Ot=/AppleWebKit\/([\d.]+)/i.exec(w))?parseFloat(Ot.pop()):null,k=/iPod/i.test(w),C=(Mt=w.match(/OS (\d+)_/i))&&Mt[1]?Mt[1]:null,I=/Android/i.test(w),x=function(){var e=w.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&p