fulan-editor
Version:
An open source react editor based on draft-Js and ant design, good support HTML, markdown and Draft Raw format.
931 lines (865 loc) • 439 kB
JavaScript
/**
* @license
* Video.js 5.13.2 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Version 2.0
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
*/
!function (a) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = a(); else if ("function" == typeof define && define.amd) define([], a); else {
var b;
b = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, b.videojs = a()
}
}(function () {
var a;
return function b(a, c, d) {
function e(g, h) {
if (!c[g]) {
if (!a[g]) {
var i = "function" == typeof require && require;
if (!h && i)return i(g, !0);
if (f)return f(g, !0);
var j = new Error("Cannot find module '" + g + "'");
throw j.code = "MODULE_NOT_FOUND", j
}
var k = c[g] = {exports: {}};
a[g][0].call(k.exports, function (b) {
var c = a[g][1][b];
return e(c ? c : b)
}, k, k.exports, b, a, c, d)
}
return c[g].exports
}
for (var f = "function" == typeof require && require, g = 0; g < d.length; g++)e(d[g]);
return e
}({
1: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(2), i = d(h), j = a(5), k = d(j), l = function (a) {
function b() {
return e(this, b), f(this, a.apply(this, arguments))
}
return g(b, a), b.prototype.buildCSSClass = function () {
return "vjs-big-play-button"
}, b.prototype.handleClick = function () {
this.player_.play()
}, b
}(i["default"]);
l.prototype.controlText_ = "Play Video", k["default"].registerComponent("BigPlayButton", l), c["default"] = l
}, {2: 2, 5: 5}],
2: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(3), i = d(h), j = a(5), k = d(j), l = a(86), m = d(l), n = a(138), o = d(n), p = function (a) {
function b() {
return e(this, b), f(this, a.apply(this, arguments))
}
return g(b, a), b.prototype.createEl = function () {
var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "button", b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
b = (0, o["default"])({className: this.buildCSSClass()}, b), "button" !== a && (m["default"].warn("Creating a Button with an HTML element of " + a + " is deprecated; use ClickableComponent instead."), b = (0, o["default"])({tabIndex: 0}, b), c = (0, o["default"])({role: "button"}, c)), c = (0, o["default"])({
type: "button",
"aria-live": "polite"
}, c);
var d = k["default"].prototype.createEl.call(this, a, b, c);
return this.createControlTextEl(d), d
}, b.prototype.addChild = function (a) {
var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, c = this.constructor.name;
return m["default"].warn("Adding an actionable (user controllable) child to a Button (" + c + ") is not supported; use a ClickableComponent instead."), k["default"].prototype.addChild.call(this, a, b)
}, b.prototype.enable = function () {
a.prototype.enable.call(this), this.el_.removeAttribute("disabled")
}, b.prototype.disable = function () {
a.prototype.disable.call(this), this.el_.setAttribute("disabled", "disabled")
}, b.prototype.handleKeyPress = function (b) {
32 !== b.which && 13 !== b.which && a.prototype.handleKeyPress.call(this, b)
}, b
}(i["default"]);
k["default"].registerComponent("Button", p), c["default"] = p
}, {138: 138, 3: 3, 5: 5, 86: 86}],
3: [function (a, b, c) {
"use strict";
function d(a) {
if (a && a.__esModule)return a;
var b = {};
if (null != a)for (var c in a)Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
return b["default"] = a, b
}
function e(a) {
return a && a.__esModule ? a : {"default": a}
}
function f(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function g(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function h(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var i = a(5), j = e(i), k = a(81), l = d(k), m = a(82), n = d(m), o = a(83), p = d(o), q = a(86), r = e(q), s = a(94), t = e(s), u = a(138), v = e(u), w = function (a) {
function b(c, d) {
f(this, b);
var e = g(this, a.call(this, c, d));
return e.emitTapEvents(), e.enable(), e
}
return h(b, a), b.prototype.createEl = function () {
var b = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "div", c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
c = (0, v["default"])({
className: this.buildCSSClass(),
tabIndex: 0
}, c), "button" === b && r["default"].error("Creating a ClickableComponent with an HTML element of " + b + " is not supported; use a Button instead."), d = (0, v["default"])({
role: "button",
"aria-live": "polite"
}, d), this.tabIndex_ = c.tabIndex;
var e = a.prototype.createEl.call(this, b, c, d);
return this.createControlTextEl(e), e
}, b.prototype.createControlTextEl = function (a) {
return this.controlTextEl_ = l.createEl("span", {className: "vjs-control-text"}), a && a.appendChild(this.controlTextEl_), this.controlText(this.controlText_, a), this.controlTextEl_
}, b.prototype.controlText = function (a) {
var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this.el();
if (!a)return this.controlText_ || "Need Text";
var c = this.localize(a);
return this.controlText_ = a, this.controlTextEl_.innerHTML = c, b.setAttribute("title", c), this
}, b.prototype.buildCSSClass = function () {
return "vjs-control vjs-button " + a.prototype.buildCSSClass.call(this)
}, b.prototype.enable = function () {
return this.removeClass("vjs-disabled"), this.el_.setAttribute("aria-disabled", "false"), "undefined" != typeof this.tabIndex_ && this.el_.setAttribute("tabIndex", this.tabIndex_), this.on("tap", this.handleClick), this.on("click", this.handleClick), this.on("focus", this.handleFocus), this.on("blur", this.handleBlur), this
}, b.prototype.disable = function () {
return this.addClass("vjs-disabled"), this.el_.setAttribute("aria-disabled", "true"), "undefined" != typeof this.tabIndex_ && this.el_.removeAttribute("tabIndex"), this.off("tap", this.handleClick), this.off("click", this.handleClick), this.off("focus", this.handleFocus), this.off("blur", this.handleBlur), this
}, b.prototype.handleClick = function () {
}, b.prototype.handleFocus = function () {
n.on(t["default"], "keydown", p.bind(this, this.handleKeyPress))
}, b.prototype.handleKeyPress = function (b) {
32 === b.which || 13 === b.which ? (b.preventDefault(), this.handleClick(b)) : a.prototype.handleKeyPress && a.prototype.handleKeyPress.call(this, b)
}, b.prototype.handleBlur = function () {
n.off(t["default"], "keydown", p.bind(this, this.handleKeyPress))
}, b
}(j["default"]);
j["default"].registerComponent("ClickableComponent", w), c["default"] = w
}, {138: 138, 5: 5, 81: 81, 82: 82, 83: 83, 86: 86, 94: 94}],
4: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(2), i = d(h), j = a(5), k = d(j), l = function (a) {
function b(c, d) {
e(this, b);
var g = f(this, a.call(this, c, d));
return g.controlText(d && d.controlText || g.localize("Close")), g
}
return g(b, a), b.prototype.buildCSSClass = function () {
return "vjs-close-button " + a.prototype.buildCSSClass.call(this)
}, b.prototype.handleClick = function () {
this.trigger({type: "close", bubbles: !1})
}, b
}(i["default"]);
k["default"].registerComponent("CloseButton", l), c["default"] = l
}, {2: 2, 5: 5}],
5: [function (a, b, c) {
"use strict";
function d(a) {
if (a && a.__esModule)return a;
var b = {};
if (null != a)for (var c in a)Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
return b["default"] = a, b
}
function e(a) {
return a && a.__esModule ? a : {"default": a}
}
function f(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
c.__esModule = !0;
var g = a(95), h = e(g), i = a(81), j = d(i), k = a(83), l = d(k), m = a(85), n = d(m), o = a(82), p = d(o), q = a(86), r = e(q), s = a(91), t = e(s), u = a(87), v = e(u), w = function () {
function a(b, c, d) {
if (f(this, a), !b && this.play ? this.player_ = b = this : this.player_ = b, this.options_ = (0, v["default"])({}, this.options_), c = this.options_ = (0, v["default"])(this.options_, c), this.id_ = c.id || c.el && c.el.id, !this.id_) {
var e = b && b.id && b.id() || "no_player";
this.id_ = e + "_component_" + n.newGUID()
}
this.name_ = c.name || null, c.el ? this.el_ = c.el : c.createEl !== !1 && (this.el_ = this.createEl()), this.children_ = [], this.childIndex_ = {}, this.childNameIndex_ = {}, c.initChildren !== !1 && this.initChildren(), this.ready(d), c.reportTouchActivity !== !1 && this.enableTouchActivity()
}
return a.prototype.dispose = function () {
if (this.trigger({
type: "dispose",
bubbles: !1
}), this.children_)for (var a = this.children_.length - 1; a >= 0; a--)this.children_[a].dispose && this.children_[a].dispose();
this.children_ = null, this.childIndex_ = null, this.childNameIndex_ = null, this.off(), this.el_.parentNode && this.el_.parentNode.removeChild(this.el_), j.removeElData(this.el_), this.el_ = null
}, a.prototype.player = function () {
return this.player_
}, a.prototype.options = function (a) {
return r["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"), a ? (this.options_ = (0, v["default"])(this.options_, a), this.options_) : this.options_
}, a.prototype.el = function () {
return this.el_
}, a.prototype.createEl = function (a, b, c) {
return j.createEl(a, b, c)
}, a.prototype.localize = function (a) {
var b = this.player_.language && this.player_.language(), c = this.player_.languages && this.player_.languages();
if (!b || !c)return a;
var d = c[b];
if (d && d[a])return d[a];
var e = b.split("-")[0], f = c[e];
return f && f[a] ? f[a] : a
}, a.prototype.contentEl = function () {
return this.contentEl_ || this.el_
}, a.prototype.id = function () {
return this.id_
}, a.prototype.name = function () {
return this.name_
}, a.prototype.children = function () {
return this.children_
}, a.prototype.getChildById = function (a) {
return this.childIndex_[a]
}, a.prototype.getChild = function (a) {
if (a)return a = (0, t["default"])(a), this.childNameIndex_[a]
}, a.prototype.addChild = function (b) {
var c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.children_.length, e = void 0, f = void 0;
if ("string" == typeof b) {
f = (0, t["default"])(b), c || (c = {}), c === !0 && (r["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."), c = {});
var g = c.componentClass || f;
c.name = f;
var h = a.getComponent(g);
if (!h)throw new Error("Component " + g + " does not exist");
if ("function" != typeof h)return null;
e = new h(this.player_ || this, c)
} else e = b;
if (this.children_.splice(d, 0, e), "function" == typeof e.id && (this.childIndex_[e.id()] = e), f = f || e.name && e.name(), f && (this.childNameIndex_[f] = e), "function" == typeof e.el && e.el()) {
var i = this.contentEl().children, j = i[d] || null;
this.contentEl().insertBefore(e.el(), j)
}
return e
}, a.prototype.removeChild = function (a) {
if ("string" == typeof a && (a = this.getChild(a)), a && this.children_) {
for (var b = !1, c = this.children_.length - 1; c >= 0; c--)if (this.children_[c] === a) {
b = !0, this.children_.splice(c, 1);
break
}
if (b) {
this.childIndex_[a.id()] = null, this.childNameIndex_[a.name()] = null;
var d = a.el();
d && d.parentNode === this.contentEl() && this.contentEl().removeChild(a.el())
}
}
}, a.prototype.initChildren = function () {
var b = this, c = this.options_.children;
c && !function () {
var d = b.options_, e = function (a) {
var c = a.name, e = a.opts;
if (void 0 !== d[c] && (e = d[c]), e !== !1) {
e === !0 && (e = {}), e.playerOptions = b.options_.playerOptions;
var f = b.addChild(c, e);
f && (b[c] = f)
}
}, f = void 0, g = a.getComponent("Tech");
f = Array.isArray(c) ? c : Object.keys(c), f.concat(Object.keys(b.options_).filter(function (a) {
return !f.some(function (b) {
return "string" == typeof b ? a === b : a === b.name
})
})).map(function (a) {
var d = void 0, e = void 0;
return "string" == typeof a ? (d = a, e = c[d] || b.options_[d] || {}) : (d = a.name, e = a), {
name: d,
opts: e
}
}).filter(function (b) {
var c = a.getComponent(b.opts.componentClass || (0, t["default"])(b.name));
return c && !g.isTech(c)
}).forEach(e)
}()
}, a.prototype.buildCSSClass = function () {
return ""
}, a.prototype.on = function (a, b, c) {
var d = this;
return "string" == typeof a || Array.isArray(a) ? p.on(this.el_, a, l.bind(this, b)) : !function () {
var e = a, f = b, g = l.bind(d, c), h = function () {
return d.off(e, f, g)
};
h.guid = g.guid, d.on("dispose", h);
var i = function () {
return d.off("dispose", h)
};
i.guid = g.guid, a.nodeName ? (p.on(e, f, g), p.on(e, "dispose", i)) : "function" == typeof a.on && (e.on(f, g), e.on("dispose", i))
}(), this
}, a.prototype.off = function (a, b, c) {
if (!a || "string" == typeof a || Array.isArray(a)) p.off(this.el_, a, b); else {
var d = a, e = b, f = l.bind(this, c);
this.off("dispose", f), a.nodeName ? (p.off(d, e, f), p.off(d, "dispose", f)) : (d.off(e, f), d.off("dispose", f))
}
return this
}, a.prototype.one = function (a, b, c) {
var d = this, e = arguments;
return "string" == typeof a || Array.isArray(a) ? p.one(this.el_, a, l.bind(this, b)) : !function () {
var f = a, g = b, h = l.bind(d, c), i = function j() {
d.off(f, g, j), h.apply(null, e)
};
i.guid = h.guid, d.on(f, g, i)
}(), this
}, a.prototype.trigger = function (a, b) {
return p.trigger(this.el_, a, b), this
}, a.prototype.ready = function (a) {
var b = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
return a && (this.isReady_ ? b ? a.call(this) : this.setTimeout(a, 1) : (this.readyQueue_ = this.readyQueue_ || [], this.readyQueue_.push(a))), this
}, a.prototype.triggerReady = function () {
this.isReady_ = !0, this.setTimeout(function () {
var a = this.readyQueue_;
this.readyQueue_ = [], a && a.length > 0 && a.forEach(function (a) {
a.call(this)
}, this), this.trigger("ready")
}, 1)
}, a.prototype.$ = function (a, b) {
return j.$(a, b || this.contentEl())
}, a.prototype.$$ = function (a, b) {
return j.$$(a, b || this.contentEl())
}, a.prototype.hasClass = function (a) {
return j.hasElClass(this.el_, a)
}, a.prototype.addClass = function (a) {
return j.addElClass(this.el_, a), this
}, a.prototype.removeClass = function (a) {
return j.removeElClass(this.el_, a), this
}, a.prototype.toggleClass = function (a, b) {
return j.toggleElClass(this.el_, a, b), this
}, a.prototype.show = function () {
return this.removeClass("vjs-hidden"), this
}, a.prototype.hide = function () {
return this.addClass("vjs-hidden"), this
}, a.prototype.lockShowing = function () {
return this.addClass("vjs-lock-showing"), this
}, a.prototype.unlockShowing = function () {
return this.removeClass("vjs-lock-showing"), this
}, a.prototype.getAttribute = function (a) {
return j.getAttribute(this.el_, a)
}, a.prototype.setAttribute = function (a, b) {
return j.setAttribute(this.el_, a, b), this
}, a.prototype.removeAttribute = function (a) {
return j.removeAttribute(this.el_, a), this
}, a.prototype.width = function (a, b) {
return this.dimension("width", a, b)
}, a.prototype.height = function (a, b) {
return this.dimension("height", a, b)
}, a.prototype.dimensions = function (a, b) {
return this.width(a, !0).height(b)
}, a.prototype.dimension = function (a, b, c) {
if (void 0 !== b)return null !== b && b === b || (b = 0), ("" + b).indexOf("%") !== -1 || ("" + b).indexOf("px") !== -1 ? this.el_.style[a] = b : "auto" === b ? this.el_.style[a] = "" : this.el_.style[a] = b + "px", c || this.trigger("resize"), this;
if (!this.el_)return 0;
var d = this.el_.style[a], e = d.indexOf("px");
return e !== -1 ? parseInt(d.slice(0, e), 10) : parseInt(this.el_["offset" + (0, t["default"])(a)], 10)
}, a.prototype.currentDimension = function (a) {
var b = 0;
if ("width" !== a && "height" !== a)throw new Error("currentDimension only accepts width or height value");
if ("function" == typeof h["default"].getComputedStyle) {
var c = h["default"].getComputedStyle(this.el_);
b = c.getPropertyValue(a) || c[a]
}
if (b = parseFloat(b), 0 === b) {
var d = "offset" + (0, t["default"])(a);
b = this.el_[d]
}
return b
}, a.prototype.currentDimensions = function () {
return {width: this.currentDimension("width"), height: this.currentDimension("height")}
}, a.prototype.currentWidth = function () {
return this.currentDimension("width")
}, a.prototype.currentHeight = function () {
return this.currentDimension("height")
}, a.prototype.emitTapEvents = function () {
var a = 0, b = null, c = 10, d = 200, e = void 0;
this.on("touchstart", function (c) {
1 === c.touches.length && (b = {
pageX: c.touches[0].pageX,
pageY: c.touches[0].pageY
}, a = (new Date).getTime(), e = !0)
}), this.on("touchmove", function (a) {
if (a.touches.length > 1) e = !1; else if (b) {
var d = a.touches[0].pageX - b.pageX, f = a.touches[0].pageY - b.pageY, g = Math.sqrt(d * d + f * f);
g > c && (e = !1)
}
});
var f = function () {
e = !1
};
this.on("touchleave", f), this.on("touchcancel", f), this.on("touchend", function (c) {
if (b = null, e === !0) {
var f = (new Date).getTime() - a;
f < d && (c.preventDefault(), this.trigger("tap"))
}
})
}, a.prototype.enableTouchActivity = function () {
if (this.player() && this.player().reportUserActivity) {
var a = l.bind(this.player(), this.player().reportUserActivity), b = void 0;
this.on("touchstart", function () {
a(), this.clearInterval(b), b = this.setInterval(a, 250)
});
var c = function (c) {
a(), this.clearInterval(b)
};
this.on("touchmove", a), this.on("touchend", c), this.on("touchcancel", c)
}
}, a.prototype.setTimeout = function (a, b) {
a = l.bind(this, a);
var c = h["default"].setTimeout(a, b), d = function () {
this.clearTimeout(c)
};
return d.guid = "vjs-timeout-" + c, this.on("dispose", d), c
}, a.prototype.clearTimeout = function (a) {
h["default"].clearTimeout(a);
var b = function () {
};
return b.guid = "vjs-timeout-" + a, this.off("dispose", b), a
}, a.prototype.setInterval = function (a, b) {
a = l.bind(this, a);
var c = h["default"].setInterval(a, b), d = function () {
this.clearInterval(c)
};
return d.guid = "vjs-interval-" + c, this.on("dispose", d), c
}, a.prototype.clearInterval = function (a) {
h["default"].clearInterval(a);
var b = function () {
};
return b.guid = "vjs-interval-" + a, this.off("dispose", b), a
}, a.registerComponent = function (b, c) {
if (b)return b = (0, t["default"])(b), a.components_ || (a.components_ = {}), a.components_[b] = c, c
}, a.getComponent = function (b) {
if (b)return b = (0, t["default"])(b), a.components_ && a.components_[b] ? a.components_[b] : h["default"] && h["default"].videojs && h["default"].videojs[b] ? (r["default"].warn("The " + b + " component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"), h["default"].videojs[b]) : void 0
}, a.extend = function (b) {
b = b || {}, r["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");
var c = b.init || b.init || this.prototype.init || this.prototype.init || function () {
}, d = function () {
c.apply(this, arguments)
};
d.prototype = Object.create(this.prototype), d.prototype.constructor = d, d.extend = a.extend;
for (var e in b)b.hasOwnProperty(e) && (d.prototype[e] = b[e]);
return d
}, a
}();
w.registerComponent("Component", w), c["default"] = w
}, {81: 81, 82: 82, 83: 83, 85: 85, 86: 86, 87: 87, 91: 91, 95: 95}],
6: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(36), i = d(h), j = a(5), k = d(j), l = a(7), m = d(l), n = function (a) {
function b(c) {
var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
e(this, b), d.tracks = c.audioTracks && c.audioTracks();
var g = f(this, a.call(this, c, d));
return g.el_.setAttribute("aria-label", "Audio Menu"), g
}
return g(b, a), b.prototype.buildCSSClass = function () {
return "vjs-audio-button " + a.prototype.buildCSSClass.call(this)
}, b.prototype.createItems = function () {
var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], b = this.player_.audioTracks && this.player_.audioTracks();
if (!b)return a;
for (var c = 0; c < b.length; c++) {
var d = b[c];
a.push(new m["default"](this.player_, {track: d, selectable: !0}))
}
return a
}, b
}(i["default"]);
n.prototype.controlText_ = "Audio Track", k["default"].registerComponent("AudioTrackButton", n), c["default"] = n
}, {36: 36, 5: 5, 7: 7}],
7: [function (a, b, c) {
"use strict";
function d(a) {
if (a && a.__esModule)return a;
var b = {};
if (null != a)for (var c in a)Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
return b["default"] = a, b
}
function e(a) {
return a && a.__esModule ? a : {"default": a}
}
function f(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function g(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function h(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var i = a(48), j = e(i), k = a(5), l = e(k), m = a(83), n = d(m), o = function (a) {
function b(c, d) {
f(this, b);
var e = d.track, h = c.audioTracks();
d.label = e.label || e.language || "Unknown", d.selected = e.enabled;
var i = g(this, a.call(this, c, d));
return i.track = e, h && !function () {
var a = n.bind(i, i.handleTracksChange);
h.addEventListener("change", a), i.on("dispose", function () {
h.removeEventListener("change", a)
})
}(), i
}
return h(b, a), b.prototype.handleClick = function (b) {
var c = this.player_.audioTracks();
if (a.prototype.handleClick.call(this, b), c)for (var d = 0; d < c.length; d++) {
var e = c[d];
e.enabled = e === this.track
}
}, b.prototype.handleTracksChange = function (a) {
this.selected(this.track.enabled)
}, b
}(j["default"]);
l["default"].registerComponent("AudioTrackMenuItem", o), c["default"] = o
}, {48: 48, 5: 5, 83: 83}],
8: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(5), i = d(h);
a(12), a(32), a(33), a(35), a(34), a(10), a(18), a(9), a(38), a(40), a(11), a(25), a(27), a(29), a(24), a(6), a(13), a(21);
var j = function (a) {
function b() {
return e(this, b), f(this, a.apply(this, arguments))
}
return g(b, a), b.prototype.createEl = function () {
return a.prototype.createEl.call(this, "div", {
className: "vjs-control-bar",
dir: "ltr"
}, {role: "group"})
}, b
}(i["default"]);
j.prototype.options_ = {children: ["playToggle", "volumeMenuButton", "currentTimeDisplay", "timeDivider", "durationDisplay", "progressControl", "liveDisplay", "remainingTimeDisplay", "customControlSpacer", "playbackRateMenuButton", "chaptersButton", "descriptionsButton", "subtitlesButton", "captionsButton", "audioTrackButton", "fullscreenToggle"]}, i["default"].registerComponent("ControlBar", j), c["default"] = j
}, {
10: 10,
11: 11,
12: 12,
13: 13,
18: 18,
21: 21,
24: 24,
25: 25,
27: 27,
29: 29,
32: 32,
33: 33,
34: 34,
35: 35,
38: 38,
40: 40,
5: 5,
6: 6,
9: 9
}],
9: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(2), i = d(h), j = a(5), k = d(j), l = function (a) {
function b(c, d) {
e(this, b);
var g = f(this, a.call(this, c, d));
return g.on(c, "fullscreenchange", g.handleFullscreenChange), g
}
return g(b, a), b.prototype.buildCSSClass = function () {
return "vjs-fullscreen-control " + a.prototype.buildCSSClass.call(this)
}, b.prototype.handleFullscreenChange = function () {
this.player_.isFullscreen() ? this.controlText("Non-Fullscreen") : this.controlText("Fullscreen")
}, b.prototype.handleClick = function () {
this.player_.isFullscreen() ? this.player_.exitFullscreen() : this.player_.requestFullscreen()
}, b
}(i["default"]);
l.prototype.controlText_ = "Fullscreen", k["default"].registerComponent("FullscreenToggle", l), c["default"] = l
}, {2: 2, 5: 5}],
10: [function (a, b, c) {
"use strict";
function d(a) {
if (a && a.__esModule)return a;
var b = {};
if (null != a)for (var c in a)Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
return b["default"] = a, b
}
function e(a) {
return a && a.__esModule ? a : {"default": a}
}
function f(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function g(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function h(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var i = a(5), j = e(i), k = a(81), l = d(k), m = function (a) {
function b(c, d) {
f(this, b);
var e = g(this, a.call(this, c, d));
return e.updateShowing(), e.on(e.player(), "durationchange", e.updateShowing), e
}
return h(b, a), b.prototype.createEl = function () {
var b = a.prototype.createEl.call(this, "div", {className: "vjs-live-control vjs-control"});
return this.contentEl_ = l.createEl("div", {
className: "vjs-live-display",
innerHTML: '<span class="vjs-control-text">' + this.localize("Stream Type") + "</span>" + this.localize("LIVE")
}, {"aria-live": "off"}), b.appendChild(this.contentEl_), b
}, b.prototype.updateShowing = function () {
this.player().duration() === 1 / 0 ? this.show() : this.hide()
}, b
}(j["default"]);
j["default"].registerComponent("LiveDisplay", m), c["default"] = m
}, {5: 5, 81: 81}],
11: [function (a, b, c) {
"use strict";
function d(a) {
if (a && a.__esModule)return a;
var b = {};
if (null != a)for (var c in a)Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
return b["default"] = a, b
}
function e(a) {
return a && a.__esModule ? a : {"default": a}
}
function f(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function g(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function h(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var i = a(2), j = e(i), k = a(5), l = e(k), m = a(81), n = d(m), o = function (a) {
function b(c, d) {
f(this, b);
var e = g(this, a.call(this, c, d));
return e.on(c, "volumechange", e.update), c.tech_ && c.tech_.featuresVolumeControl === !1 && e.addClass("vjs-hidden"), e.on(c, "loadstart", function () {
this.update(), c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
}), e
}
return h(b, a), b.prototype.buildCSSClass = function () {
return "vjs-mute-control " + a.prototype.buildCSSClass.call(this)
}, b.prototype.handleClick = function () {
this.player_.muted(!this.player_.muted())
}, b.prototype.update = function () {
var a = this.player_.volume(), b = 3;
0 === a || this.player_.muted() ? b = 0 : a < .33 ? b = 1 : a < .67 && (b = 2);
var c = this.player_.muted() ? "Unmute" : "Mute";
this.controlText() !== c && this.controlText(c);
for (var d = 0; d < 4; d++)n.removeElClass(this.el_, "vjs-vol-" + d);
n.addElClass(this.el_, "vjs-vol-" + b)
}, b
}(j["default"]);
o.prototype.controlText_ = "Mute", l["default"].registerComponent("MuteToggle", o), c["default"] = o
}, {2: 2, 5: 5, 81: 81}],
12: [function (a, b, c) {
"use strict";
function d(a) {
return a && a.__esModule ? a : {"default": a}
}
function e(a, b) {
if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
}
function f(a, b) {
if (!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !b || "object" != typeof b && "function" != typeof b ? a : b
}
function g(a, b) {
if ("function" != typeof b && null !== b)throw new TypeError("Super expression must either be null or a function, not " + typeof b);
a.prototype = Object.create(b && b.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
}
c.__esModule = !0;
var h = a(2), i = d(h), j = a(5), k = d(j), l = function (a) {
function b(c, d) {
e(this, b);
var g = f(this, a.call(this, c, d));
return g.on(c, "play", g.handlePlay), g.on(c, "pause", g.handlePause), g
}
return g(b, a), b.prototype.buildCSSClass = function () {
return "vjs-play-control " + a.prototype.buildCSSClass.call(this)
}, b.prototype.handleClick = function () {
this.player_.paused() ? this.player_.play() : this.player_.pause()
}, b.prototype.handlePlay = function () {
this.removeClass("vjs-paused"), this.addClass("vjs-playing"), this.controlText("Pause")
}, b.prototype.handlePause = function () {
this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.controlText("Play")
}, b
}(i["default"]);
l.prototype.controlText_ = "Play", k["default"].registerComponent("PlayToggle", l), c["default"] = l
}, {2: 2, 5: 5}],
13: [function (a, b, c) {
"use strict";
function d(a) {
if (a && a.__esModule)return a;
var b = {};
if (null != a)for (var c in a)Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
return b["default"] = a, b
}
function e(a) {
return a && a.__esModule ? a : {"default": a}
}
function f(a, b) {
if (!(a instan