iking-web-ui-pro 0.2.38 → 0.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKPreviewFile/ik.index.es.js +12 -7
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +405 -406
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IKSearch/style.css +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +188 -189
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.umd.js +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +14 -9
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.umd.js +2 -2
- package/dist/IkApprovalProcessDetail/style.css +1 -0
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +917 -901
- package/dist/IkCalendar/ik.index.umd.js +1 -0
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +12 -7
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +255 -250
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +601 -584
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +423 -424
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +23 -24
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +1 -0
- package/dist/IkSchedule/ik.index.es.js +691 -674
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +1 -0
- package/dist/IkUploadImage/ik.index.es.js +410 -405
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +11576 -11550
- package/dist/index.umd.js +89 -89
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcessDetail/style.css +0 -1
- package/dist/IKCalendar/ik.index.umd.js +0 -1
|
@@ -913,13 +913,13 @@ const Fi = [
|
|
|
913
913
|
size: "size",
|
|
914
914
|
...r.field
|
|
915
915
|
})), l = se({}), u = se(!1), c = (g) => {
|
|
916
|
-
var
|
|
916
|
+
var v, y;
|
|
917
917
|
l.value = {
|
|
918
918
|
...g,
|
|
919
919
|
name: g.name,
|
|
920
920
|
url: ht(
|
|
921
921
|
t.value,
|
|
922
|
-
g
|
|
922
|
+
(g == null ? void 0 : g.url) || ((y = (v = g == null ? void 0 : g.response) == null ? void 0 : v.data) == null ? void 0 : y.id) || (g == null ? void 0 : g.id)
|
|
923
923
|
)
|
|
924
924
|
}, r.isOnlyOfficePreview && (u.value = !0), n("handPreview", l.value);
|
|
925
925
|
}, h = (g) => {
|
|
@@ -930,13 +930,17 @@ const Fi = [
|
|
|
930
930
|
),
|
|
931
931
|
g[s.value.name] || g.attachmentName
|
|
932
932
|
);
|
|
933
|
-
}, d = Y(() => ni.isNumber(r.width) ? `${r.width}px` : r.width), p = Y(() => r.list.map((g) =>
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
933
|
+
}, d = Y(() => ni.isNumber(r.width) ? `${r.width}px` : r.width), p = Y(() => r.list.map((g) => {
|
|
934
|
+
var y;
|
|
935
|
+
const v = g[s.value.name] || g.attachmentName;
|
|
936
|
+
return {
|
|
937
|
+
...g,
|
|
938
|
+
name: v,
|
|
939
|
+
size: g[s.value.size] || (g == null ? void 0 : g.fileSize) || (g == null ? void 0 : g.attachmentSize),
|
|
940
|
+
suffix: g[s.value.suffix] || (g == null ? void 0 : g.attachmentSuffix) || ((y = v.split(".")) == null ? void 0 : y.at(-1))
|
|
941
|
+
};
|
|
942
|
+
}));
|
|
943
|
+
return (g, v) => {
|
|
940
944
|
var C, b, w;
|
|
941
945
|
const y = rt("tmplate");
|
|
942
946
|
return E(), P(
|
|
@@ -1080,7 +1084,7 @@ const Fi = [
|
|
|
1080
1084
|
)) : ee("v-if", !0),
|
|
1081
1085
|
j(S(to), {
|
|
1082
1086
|
show: u.value,
|
|
1083
|
-
"onUpdate:show":
|
|
1087
|
+
"onUpdate:show": v[0] || (v[0] = (L) => u.value = L),
|
|
1084
1088
|
loadUrl: S(t),
|
|
1085
1089
|
file: l.value,
|
|
1086
1090
|
onlyofficeServer: ((b = S(e)) == null ? void 0 : b.serverUrl) || a.onlyofficeServer,
|
|
@@ -1142,7 +1146,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1142
1146
|
office: !1,
|
|
1143
1147
|
video: !1
|
|
1144
1148
|
}), s = (u) => {
|
|
1145
|
-
var c, h, d, p, g,
|
|
1149
|
+
var c, h, d, p, g, v, y;
|
|
1146
1150
|
try {
|
|
1147
1151
|
const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, w = (h = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : h.toLowerCase(), L = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
|
|
1148
1152
|
if (i.value = {
|
|
@@ -1161,7 +1165,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1161
1165
|
editorConfig: {
|
|
1162
1166
|
...((p = o.onlyOfficeConfig) == null ? void 0 : p.editorConfig) || {},
|
|
1163
1167
|
customization: {
|
|
1164
|
-
...((
|
|
1168
|
+
...((v = (g = o.onlyOfficeConfig) == null ? void 0 : g.editorConfig) == null ? void 0 : v.customization) || {},
|
|
1165
1169
|
review: {
|
|
1166
1170
|
reviewDisplay: "final"
|
|
1167
1171
|
}
|
|
@@ -1175,6 +1179,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1175
1179
|
...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
|
|
1176
1180
|
},
|
|
1177
1181
|
documentType: br(w)
|
|
1182
|
+
// document_fileType: getFileTypes(suffix),
|
|
1178
1183
|
};
|
|
1179
1184
|
return;
|
|
1180
1185
|
}
|
|
@@ -2087,7 +2092,7 @@ const No = {
|
|
|
2087
2092
|
name: "original",
|
|
2088
2093
|
icon: Oi(Hs)
|
|
2089
2094
|
}
|
|
2090
|
-
}, i = a, n = r, { t: s } = kr(), l = wn("image-viewer"), { nextZIndex: u } = Cr(), c = se(), h = se([]), d = ur(), p = se(!0), g = se(i.initialIndex),
|
|
2095
|
+
}, i = a, n = r, { t: s } = kr(), l = wn("image-viewer"), { nextZIndex: u } = Cr(), c = se(), h = se([]), d = ur(), p = se(!0), g = se(i.initialIndex), v = cr(e.CONTAIN), y = se({
|
|
2091
2096
|
scale: 1,
|
|
2092
2097
|
deg: 0,
|
|
2093
2098
|
offsetX: 0,
|
|
@@ -2113,7 +2118,7 @@ const No = {
|
|
|
2113
2118
|
transform: `scale(${N}) rotate(${G}deg) translate(${_e}px, ${Le}px)`,
|
|
2114
2119
|
transition: ye ? "transform .3s" : ""
|
|
2115
2120
|
};
|
|
2116
|
-
return
|
|
2121
|
+
return v.value.name === e.CONTAIN.name && (Ht.maxWidth = Ht.maxHeight = "100%"), Ht;
|
|
2117
2122
|
});
|
|
2118
2123
|
function J() {
|
|
2119
2124
|
ne(), n("close");
|
|
@@ -2187,8 +2192,8 @@ const No = {
|
|
|
2187
2192
|
function Ii() {
|
|
2188
2193
|
if (p.value)
|
|
2189
2194
|
return;
|
|
2190
|
-
const N = t(e), G = Object.values(e), X =
|
|
2191
|
-
|
|
2195
|
+
const N = t(e), G = Object.values(e), X = v.value.name, ye = ((G == null ? void 0 : G.findIndex((_e) => _e.name === X)) + 1) % N.length;
|
|
2196
|
+
v.value = e[N[ye]], xi();
|
|
2192
2197
|
}
|
|
2193
2198
|
function Bt(N) {
|
|
2194
2199
|
const G = i.urlList.length;
|
|
@@ -2376,7 +2381,7 @@ const No = {
|
|
|
2376
2381
|
),
|
|
2377
2382
|
j(S(Ae), { onClick: Ii }, {
|
|
2378
2383
|
default: Q(() => [
|
|
2379
|
-
(E(), pe(hr(
|
|
2384
|
+
(E(), pe(hr(v.value.icon)))
|
|
2380
2385
|
]),
|
|
2381
2386
|
_: 1
|
|
2382
2387
|
/* STABLE */
|
|
@@ -2546,7 +2551,7 @@ function Vo() {
|
|
|
2546
2551
|
return !1;
|
|
2547
2552
|
}
|
|
2548
2553
|
}
|
|
2549
|
-
function
|
|
2554
|
+
function m(a) {
|
|
2550
2555
|
if (a === void 0)
|
|
2551
2556
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2552
2557
|
return a;
|
|
@@ -2556,7 +2561,7 @@ function pi(a, o) {
|
|
|
2556
2561
|
return o;
|
|
2557
2562
|
if (o !== void 0)
|
|
2558
2563
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2559
|
-
return
|
|
2564
|
+
return m(a);
|
|
2560
2565
|
}
|
|
2561
2566
|
function D(a) {
|
|
2562
2567
|
var o = Vo();
|
|
@@ -2673,10 +2678,10 @@ var In = { exports: {} };
|
|
|
2673
2678
|
var c = r ? r + u : u, h = this._events[c];
|
|
2674
2679
|
return h ? h.fn ? 1 : h.length : 0;
|
|
2675
2680
|
}, s.prototype.emit = function(u, c, h, d, p, g) {
|
|
2676
|
-
var
|
|
2677
|
-
if (!this._events[
|
|
2681
|
+
var v = r ? r + u : u;
|
|
2682
|
+
if (!this._events[v])
|
|
2678
2683
|
return !1;
|
|
2679
|
-
var y = this._events[
|
|
2684
|
+
var y = this._events[v], C = arguments.length, b, w;
|
|
2680
2685
|
if (y.fn) {
|
|
2681
2686
|
switch (y.once && this.removeListener(u, y.fn, void 0, !0), C) {
|
|
2682
2687
|
case 1:
|
|
@@ -2733,8 +2738,8 @@ var In = { exports: {} };
|
|
|
2733
2738
|
if (g.fn)
|
|
2734
2739
|
g.fn === c && (!d || g.once) && (!h || g.context === h) && n(this, p);
|
|
2735
2740
|
else {
|
|
2736
|
-
for (var
|
|
2737
|
-
(g[
|
|
2741
|
+
for (var v = 0, y = [], C = g.length; v < C; v++)
|
|
2742
|
+
(g[v].fn !== c || d && !g[v].once || h && g[v].context !== h) && y.push(g[v]);
|
|
2738
2743
|
y.length ? this._events[p] = y.length === 1 ? y[0] : y : n(this, p);
|
|
2739
2744
|
}
|
|
2740
2745
|
return this;
|
|
@@ -3233,7 +3238,7 @@ function Qo(a, o, r) {
|
|
|
3233
3238
|
var ne = t, ue = e;
|
|
3234
3239
|
return t = e = void 0, u = z, n = a.apply(ue, ne), n;
|
|
3235
3240
|
}
|
|
3236
|
-
function
|
|
3241
|
+
function v(z, ne) {
|
|
3237
3242
|
return p ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(z)) : setTimeout(z, ne);
|
|
3238
3243
|
}
|
|
3239
3244
|
function y(z) {
|
|
@@ -3242,7 +3247,7 @@ function Qo(a, o, r) {
|
|
|
3242
3247
|
clearTimeout(z);
|
|
3243
3248
|
}
|
|
3244
3249
|
function C(z) {
|
|
3245
|
-
return u = z, s =
|
|
3250
|
+
return u = z, s = v(L, o), c ? g(z) : n;
|
|
3246
3251
|
}
|
|
3247
3252
|
function b(z) {
|
|
3248
3253
|
var ne = z - l, ue = z - u, ce = o - ne;
|
|
@@ -3256,7 +3261,7 @@ function Qo(a, o, r) {
|
|
|
3256
3261
|
var z = Date.now();
|
|
3257
3262
|
if (w(z))
|
|
3258
3263
|
return M(z);
|
|
3259
|
-
s =
|
|
3264
|
+
s = v(L, b(z));
|
|
3260
3265
|
}
|
|
3261
3266
|
function M(z) {
|
|
3262
3267
|
return s = void 0, d && t ? g(z) : (t = e = void 0, n);
|
|
@@ -3277,9 +3282,9 @@ function Qo(a, o, r) {
|
|
|
3277
3282
|
if (s === void 0)
|
|
3278
3283
|
return C(l);
|
|
3279
3284
|
if (h)
|
|
3280
|
-
return s =
|
|
3285
|
+
return s = v(L, o), g(l);
|
|
3281
3286
|
}
|
|
3282
|
-
return s === void 0 && (s =
|
|
3287
|
+
return s === void 0 && (s = v(L, o)), n;
|
|
3283
3288
|
}
|
|
3284
3289
|
return J.cancel = U, J.flush = R, J.pending = te, J;
|
|
3285
3290
|
}
|
|
@@ -3456,12 +3461,12 @@ var Gi = {
|
|
|
3456
3461
|
g[b] = r.ext[b];
|
|
3457
3462
|
}), g;
|
|
3458
3463
|
} else if (arguments.length > 1) {
|
|
3459
|
-
for (var
|
|
3464
|
+
for (var v = {
|
|
3460
3465
|
playerVersion: ai,
|
|
3461
3466
|
domain: document.domain
|
|
3462
3467
|
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
|
|
3463
|
-
|
|
3464
|
-
return
|
|
3468
|
+
v[y[C]] = arguments[C];
|
|
3469
|
+
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3465
3470
|
}
|
|
3466
3471
|
}
|
|
3467
3472
|
), de = "play", vi = "playing", $e = "ended", ot = "pause", pt = "error", Ot = "seeking", xe = "seeked", he = "timeupdate", vt = "waiting", Se = "canplay", ra = "canplaythrough", Ue = "durationchange", Dn = "volumechange", Ie = "loadeddata", sa = "loadedmetadata", On = "ratechange", Rn = "progress", mi = "loadstart", Ke = "emptied", oa = "stalled", aa = "suspend", la = "abort", ua = "bufferedChange", yi = "focus", Fn = "blur", _i = "ready", Mn = "urlNull", Ge = "autoplay_started", ki = "autoplay_was_prevented", Rt = "complete", Tt = "replay", Ci = "destroy", Ft = "urlchange", li = "download_speed_change", Nn = "leaveplayer", Bn = "enterplayer", Hn = "loading", be = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", wi = "definition_change", ca = "before_definition_change", ui = "after_definition_change", fa = "SEI_PARSED", ha = "retry", Be = "video_resize", ci = "pip_change", Un = "rotate", zn = "screenShot", xt = "playnext", Vn = "shortcut", jn = "xglog", It = "user_action", Mt = "reset", Wn = "source_error", Gn = "source_success", da = "switch_subtitle", $n = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Kn = {
|
|
@@ -5131,8 +5136,8 @@ var Oa = function(o, r) {
|
|
|
5131
5136
|
o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, ve(l)), (e = o.config.ignores).push.apply(e, ve(c)), Object.keys(d).map(function(y) {
|
|
5132
5137
|
o.config.icons[y] || (o.config.icons[y] = d[y]);
|
|
5133
5138
|
});
|
|
5134
|
-
var
|
|
5135
|
-
g.push.apply(g, ve(
|
|
5139
|
+
var v = o.config.i18n || [];
|
|
5140
|
+
g.push.apply(g, ve(v)), o.config.i18n = g;
|
|
5136
5141
|
}, Ra = /* @__PURE__ */ function(a) {
|
|
5137
5142
|
A(r, a);
|
|
5138
5143
|
var o = D(r);
|
|
@@ -5141,13 +5146,13 @@ var Oa = function(o, r) {
|
|
|
5141
5146
|
x(this, r);
|
|
5142
5147
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
5143
5148
|
i[n] = arguments[n];
|
|
5144
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
5145
|
-
var l =
|
|
5149
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseEnter", function(s) {
|
|
5150
|
+
var l = m(t), u = l.player, c = l.playerConfig;
|
|
5146
5151
|
c.closeControlsBlur && u.focus({
|
|
5147
5152
|
autoHide: !1
|
|
5148
5153
|
});
|
|
5149
|
-
}), _(
|
|
5150
|
-
var l =
|
|
5154
|
+
}), _(m(t), "onMouseLeave", function(s) {
|
|
5155
|
+
var l = m(t), u = l.player;
|
|
5151
5156
|
u.focus();
|
|
5152
5157
|
}), t;
|
|
5153
5158
|
}
|
|
@@ -5549,14 +5554,14 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5549
5554
|
var e;
|
|
5550
5555
|
x(this, r);
|
|
5551
5556
|
var i = f.deepMerge(nn(), t);
|
|
5552
|
-
e = o.call(this, i), _(
|
|
5557
|
+
e = o.call(this, i), _(m(e), "canPlayFunc", function() {
|
|
5553
5558
|
if (e.config) {
|
|
5554
|
-
var g = e.config,
|
|
5555
|
-
H.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (
|
|
5559
|
+
var g = e.config, v = g.autoplay, y = g.defaultPlaybackRate;
|
|
5560
|
+
H.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (v || e._useAutoplay) && e.mediaPlay(), e.off(Se, e.canPlayFunc), e.removeClass(k.ENTER);
|
|
5556
5561
|
}
|
|
5557
|
-
}), _(
|
|
5562
|
+
}), _(m(e), "onFullscreenChange", function(g, v) {
|
|
5558
5563
|
var y = function() {
|
|
5559
|
-
f.setTimeout(
|
|
5564
|
+
f.setTimeout(m(e), function() {
|
|
5560
5565
|
e.resize();
|
|
5561
5566
|
}, 100);
|
|
5562
5567
|
}, C = f.getFullScreenEl();
|
|
@@ -5573,12 +5578,12 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5573
5578
|
}]
|
|
5574
5579
|
});
|
|
5575
5580
|
var b = ia(C, e.playerId, We);
|
|
5576
|
-
if (
|
|
5581
|
+
if (v || C && (C === e._fullscreenEl || b))
|
|
5577
5582
|
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5578
5583
|
else if (e.fullscreen) {
|
|
5579
5584
|
y();
|
|
5580
|
-
var w =
|
|
5581
|
-
if (M.needFullscreenScroll ? (window.scrollTo(L.left, L.top), f.setTimeout(
|
|
5585
|
+
var w = m(e), L = w._fullScreenOffset, M = w.config;
|
|
5586
|
+
if (M.needFullscreenScroll ? (window.scrollTo(L.left, L.top), f.setTimeout(m(e), function() {
|
|
5582
5587
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
5583
5588
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
5584
5589
|
e.removeClass(k.FULLSCREEN);
|
|
@@ -5588,11 +5593,11 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5588
5593
|
}
|
|
5589
5594
|
e._fullscreenEl = null, e.emit(be, !1);
|
|
5590
5595
|
}
|
|
5591
|
-
}), _(
|
|
5596
|
+
}), _(m(e), "_onWebkitbeginfullscreen", function(g) {
|
|
5592
5597
|
e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
|
|
5593
|
-
}), _(
|
|
5598
|
+
}), _(m(e), "_onWebkitendfullscreen", function(g) {
|
|
5594
5599
|
e.onFullscreenChange(g, !1);
|
|
5595
|
-
}), Xn(
|
|
5600
|
+
}), Xn(m(e), Ha), e.config = i, e._pluginInfoId = f.generateSessionId(), qo(m(e));
|
|
5596
5601
|
var n = e.constructor.defaultPreset;
|
|
5597
5602
|
if (e.config.presets.length) {
|
|
5598
5603
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5634,7 +5639,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5634
5639
|
});
|
|
5635
5640
|
p || (h.defaultDefinition = h.list[0].definition, p = h.list[0]), e.config.url = p.url, e.curDefinition = p;
|
|
5636
5641
|
}
|
|
5637
|
-
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ie.onPluginsReady(
|
|
5642
|
+
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ie.onPluginsReady(m(e)), e.getInitDefinition(), e.setState(V.READY), f.setTimeout(m(e), function() {
|
|
5638
5643
|
e.emit(_i);
|
|
5639
5644
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < V.ATTACHED) && e.start(), e;
|
|
5640
5645
|
}
|
|
@@ -5670,13 +5675,13 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5670
5675
|
}
|
|
5671
5676
|
var p = this.config.isMobileSimulateMode === "mobile" ? "mobile" : B.device;
|
|
5672
5677
|
if (this.addClass("".concat(k.DEFAULT, " ").concat(k.INACTIVE, " xgplayer-").concat(p, " ").concat(this.config.controls ? "" : k.NO_CONTROLS)), this.config.autoplay ? this.addClass(k.ENTER) : this.addClass(k.NO_START), this.config.fluid) {
|
|
5673
|
-
var g = this.config,
|
|
5674
|
-
(typeof
|
|
5678
|
+
var g = this.config, v = g.width, y = g.height;
|
|
5679
|
+
(typeof v != "number" || typeof y != "number") && (v = 600, y = 337.5);
|
|
5675
5680
|
var C = {
|
|
5676
5681
|
width: "100%",
|
|
5677
5682
|
height: "0",
|
|
5678
5683
|
"max-width": "100%",
|
|
5679
|
-
"padding-top": "".concat(y * 100 /
|
|
5684
|
+
"padding-top": "".concat(y * 100 / v, "%")
|
|
5680
5685
|
};
|
|
5681
5686
|
Object.keys(C).forEach(function(R) {
|
|
5682
5687
|
i.root.style[R] = C[R];
|
|
@@ -5889,8 +5894,8 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5889
5894
|
this.__startTime = l;
|
|
5890
5895
|
var u = this.paused && !this.isError;
|
|
5891
5896
|
return this.src = s, new Promise(function(c, h) {
|
|
5892
|
-
var d = function(
|
|
5893
|
-
n.off("timeupdate", p), n.off("canplay", p), h(
|
|
5897
|
+
var d = function(v) {
|
|
5898
|
+
n.off("timeupdate", p), n.off("canplay", p), h(v);
|
|
5894
5899
|
}, p = function() {
|
|
5895
5900
|
n.duration > 0 && n.__startTime > 0 && (n.currentTime = n.__startTime, n.__startTime = -1), u && n.pause(), n.off("error", d), c(!0);
|
|
5896
5901
|
};
|
|
@@ -6023,8 +6028,8 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6023
6028
|
key: "resetState",
|
|
6024
6029
|
value: function() {
|
|
6025
6030
|
var e = this, i = k.NOT_ALLOW_AUTOPLAY, n = k.PLAYING, s = k.NO_START, l = k.PAUSED, u = k.REPLAY, c = k.ENTER, h = k.ENDED, d = k.ERROR, p = k.LOADING, g = [i, n, s, l, u, c, h, d, p];
|
|
6026
|
-
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, g.forEach(function(
|
|
6027
|
-
e.removeClass(
|
|
6031
|
+
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, g.forEach(function(v) {
|
|
6032
|
+
e.removeClass(v);
|
|
6028
6033
|
}), this.addClass(k.NO_START), this.emit(Mt);
|
|
6029
6034
|
}
|
|
6030
6035
|
}, {
|
|
@@ -6369,13 +6374,13 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6369
6374
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
6370
6375
|
var h = {
|
|
6371
6376
|
rotate: u
|
|
6372
|
-
}, d = 0, p = 0, g = 1,
|
|
6373
|
-
if (
|
|
6374
|
-
g = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = g, d = i > 0 ? (100 - s) / 2 - i : 0, h.y =
|
|
6375
|
-
else if (
|
|
6377
|
+
}, d = 0, p = 0, g = 1, v = Math.abs(u / 90), y = this.root, C = this.innerContainer, b = y.offsetWidth, w = C ? C.offsetHeight : y.offsetHeight, L = w, M = b;
|
|
6378
|
+
if (v % 2 === 0)
|
|
6379
|
+
g = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = g, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = v === 2 ? 0 - d : d, p = n > 0 ? (100 - l) / 2 - n : 0, h.x = v === 2 ? 0 - p : p, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(L, "px");
|
|
6380
|
+
else if (v % 2 === 1) {
|
|
6376
6381
|
M = w, L = b;
|
|
6377
6382
|
var U = w - b;
|
|
6378
|
-
p = -U / 2 / M * 100, h.x =
|
|
6383
|
+
p = -U / 2 / M * 100, h.x = v === 3 ? p + i / 2 : p - i / 2, d = U / 2 / L * 100, h.y = v === 3 ? d + n / 2 : d - n / 2, h.scale = g, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(L, "px");
|
|
6379
6384
|
}
|
|
6380
6385
|
var R = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
6381
6386
|
this.media.style.transform = R, this.media.style.webkitTransform = R;
|
|
@@ -6426,12 +6431,12 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6426
6431
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
|
|
6427
6432
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
6428
6433
|
this._videoHeight = l, this._videoWidth = s;
|
|
6429
|
-
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, p = i.width, g = i.height - d,
|
|
6430
|
-
c === "auto" && y >
|
|
6434
|
+
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, p = i.width, g = i.height - d, v = parseInt(s / l * 1e3, 10), y = parseInt(p / g * 1e3, 10), C = p, b = g, w = {};
|
|
6435
|
+
c === "auto" && y > v || c === "fixWidth" ? (b = p / v * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && y < v || c === "fixHeight") && (C = v * g / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(M) {
|
|
6431
6436
|
e.root.style[M] = w[M];
|
|
6432
|
-
}), (h === "fillHeight" && y <
|
|
6437
|
+
}), (h === "fillHeight" && y < v || h === "fillWidth" && y > v) && this.setAttribute("data-xgfill", "cover");
|
|
6433
6438
|
var L = {
|
|
6434
|
-
videoScale:
|
|
6439
|
+
videoScale: v,
|
|
6435
6440
|
vWidth: C,
|
|
6436
6441
|
vHeight: b,
|
|
6437
6442
|
cWidth: C,
|
|
@@ -6756,43 +6761,43 @@ var Oe = {
|
|
|
6756
6761
|
x(this, r);
|
|
6757
6762
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
6758
6763
|
i[n] = arguments[n];
|
|
6759
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
6764
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onTimeupdate", function() {
|
|
6760
6765
|
t._state.isTimeUpdate = !0, t._state.autoplayStart && (H.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
|
|
6761
|
-
}), _(
|
|
6766
|
+
}), _(m(t), "_onAutoplayStart", function() {
|
|
6762
6767
|
H.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
|
|
6763
|
-
}), _(
|
|
6768
|
+
}), _(m(t), "_onReset", function() {
|
|
6764
6769
|
t._state = {
|
|
6765
6770
|
autoplayStart: !1,
|
|
6766
6771
|
isFFLoading: !1,
|
|
6767
6772
|
isTimeUpdate: !1,
|
|
6768
6773
|
isFFSend: !1,
|
|
6769
6774
|
isLs: !1
|
|
6770
|
-
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = re(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(
|
|
6771
|
-
}), _(
|
|
6775
|
+
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = re(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(m(t), t._waitTimer), t._waittTimer && f.clearTimeout(m(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
|
|
6776
|
+
}), _(m(t), "_onSeeking", function() {
|
|
6772
6777
|
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = re(), t.emitLog(Oe.SEEK_START, {
|
|
6773
6778
|
start: re()
|
|
6774
6779
|
}));
|
|
6775
|
-
}), _(
|
|
6780
|
+
}), _(m(t), "_onSeeked", function() {
|
|
6776
6781
|
t.suspendSeekingStatus("seeked");
|
|
6777
|
-
}), _(
|
|
6782
|
+
}), _(m(t), "_onWaitingLoadStart", function() {
|
|
6778
6783
|
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = re(), t.fixedWaitingStart = re(), t._waitType = 1, t.emitLog(Oe.WAIT_START, {
|
|
6779
6784
|
fixedStart: t.fixedWaitingStart,
|
|
6780
6785
|
start: t.waitingStart,
|
|
6781
6786
|
type: 1,
|
|
6782
6787
|
endType: "loadstart"
|
|
6783
6788
|
}));
|
|
6784
|
-
}), _(
|
|
6785
|
-
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = re(), t._waitTimer = f.setTimeout(
|
|
6786
|
-
t._isWaiting && (t.waitingStart = re(), f.clearTimeout(
|
|
6789
|
+
}), _(m(t), "_onWaiting", function() {
|
|
6790
|
+
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = re(), t._waitTimer = f.setTimeout(m(t), function() {
|
|
6791
|
+
t._isWaiting && (t.waitingStart = re(), f.clearTimeout(m(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Oe.WAIT_START, {
|
|
6787
6792
|
fixedStart: t.fixedWaitingStart,
|
|
6788
6793
|
start: t.waitingStart,
|
|
6789
6794
|
type: t._waitType,
|
|
6790
6795
|
endType: t._waitType === 2 ? "seek" : "playing"
|
|
6791
6796
|
}));
|
|
6792
6797
|
}, 200));
|
|
6793
|
-
}), _(
|
|
6798
|
+
}), _(m(t), "_onError", function() {
|
|
6794
6799
|
t.suspendSeekingStatus("error"), t.suspendWaitingStatus("error");
|
|
6795
|
-
}), _(
|
|
6800
|
+
}), _(m(t), "_onPlaying", function() {
|
|
6796
6801
|
t._isWaiting && t.suspendWaitingStatus("playing");
|
|
6797
6802
|
}), t;
|
|
6798
6803
|
}
|
|
@@ -7136,11 +7141,11 @@ var Ga = /* @__PURE__ */ function(a) {
|
|
|
7136
7141
|
var o = D(r);
|
|
7137
7142
|
function r(t) {
|
|
7138
7143
|
var e;
|
|
7139
|
-
return x(this, r), e = o.call(this, t), _(
|
|
7144
|
+
return x(this, r), e = o.call(this, t), _(m(e), "onPlayerReset", function() {
|
|
7140
7145
|
e.autoPlayStart = !1;
|
|
7141
7146
|
var i = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7142
7147
|
e.setAttr("data-state", "play"), f.removeClass(e.root, i), e.show();
|
|
7143
|
-
}), _(
|
|
7148
|
+
}), _(m(e), "onAutoplayStart", function() {
|
|
7144
7149
|
if (!e.autoPlayStart) {
|
|
7145
7150
|
var i = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7146
7151
|
f.addClass(e.root, i), e.autoPlayStart = !0, e.onPlayPause("play");
|
|
@@ -7435,8 +7440,8 @@ function cn(a) {
|
|
|
7435
7440
|
var i = Si[e], n = o[i], s = parseFloat(n);
|
|
7436
7441
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
7437
7442
|
}
|
|
7438
|
-
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, p = r.borderTopWidth + r.borderBottomWidth, g = t,
|
|
7439
|
-
|
|
7443
|
+
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, p = r.borderTopWidth + r.borderBottomWidth, g = t, v = un(o.width);
|
|
7444
|
+
v !== !1 && (r.width = v + (g ? 0 : l + d));
|
|
7440
7445
|
var y = un(o.height);
|
|
7441
7446
|
return y !== !1 && (r.height = y + (g ? 0 : u + p)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + p), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
7442
7447
|
}
|
|
@@ -7671,18 +7676,18 @@ var Xt = {
|
|
|
7671
7676
|
var o = D(r);
|
|
7672
7677
|
function r(t) {
|
|
7673
7678
|
var e;
|
|
7674
|
-
x(this, r), e = o.call(this, t), _(
|
|
7679
|
+
x(this, r), e = o.call(this, t), _(m(e), "onCancelClick", function(s) {
|
|
7675
7680
|
e.exitMini(), e.isClose = !0;
|
|
7676
|
-
}), _(
|
|
7677
|
-
var l =
|
|
7681
|
+
}), _(m(e), "onCenterClick", function(s) {
|
|
7682
|
+
var l = m(e), u = l.player;
|
|
7678
7683
|
u.paused ? u.play() : u.pause();
|
|
7679
|
-
}), _(
|
|
7684
|
+
}), _(m(e), "onScroll", function(s) {
|
|
7680
7685
|
if (!(!window.scrollY && window.scrollY !== 0 || Math.abs(window.scrollY - e.pos.scrollY) < 50)) {
|
|
7681
7686
|
var l = parseInt(f.getCss(e.player.root, "height"));
|
|
7682
7687
|
l += e.config.scrollTop, e.pos.scrollY = window.scrollY, window.scrollY > l + 5 ? !e.isMini && !e.isClose && e.getMini() : window.scrollY <= l && (e.isMini && e.exitMini(), e.isClose = !1);
|
|
7683
7688
|
}
|
|
7684
7689
|
}), e.isMini = !1, e.isClose = !1;
|
|
7685
|
-
var i =
|
|
7690
|
+
var i = m(e), n = i.config;
|
|
7686
7691
|
return e.pos = {
|
|
7687
7692
|
left: n.left < 0 ? window.innerWidth - n.width - 20 : n.left,
|
|
7688
7693
|
top: n.top < 0 ? window.innerHeight - n.height - 20 : n.top,
|
|
@@ -7828,17 +7833,17 @@ var Xt = {
|
|
|
7828
7833
|
x(this, r);
|
|
7829
7834
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
7830
7835
|
i[n] = arguments[n];
|
|
7831
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
7832
|
-
var l =
|
|
7836
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseMove", function(s) {
|
|
7837
|
+
var l = m(t), u = l.player, c = l.playerConfig;
|
|
7833
7838
|
u.isActive || (u.focus({
|
|
7834
7839
|
autoHide: !c.closeDelayBlur
|
|
7835
7840
|
}), !c.closeFocusVideoFocus && u.media.focus());
|
|
7836
|
-
}), _(
|
|
7837
|
-
var l =
|
|
7841
|
+
}), _(m(t), "onMouseEnter", function(s) {
|
|
7842
|
+
var l = m(t), u = l.playerConfig, c = l.player;
|
|
7838
7843
|
!u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
|
|
7839
7844
|
autoHide: !1
|
|
7840
7845
|
}) : c.focus(), t.emit(Bn);
|
|
7841
|
-
}), _(
|
|
7846
|
+
}), _(m(t), "onMouseLeave", function(s) {
|
|
7842
7847
|
var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
|
|
7843
7848
|
!u && !h && (c ? t.player.focus({
|
|
7844
7849
|
autoHide: !0,
|
|
@@ -7846,24 +7851,24 @@ var Xt = {
|
|
|
7846
7851
|
}) : t.player.blur({
|
|
7847
7852
|
ignorePaused: !0
|
|
7848
7853
|
})), t.emit(Nn);
|
|
7849
|
-
}), _(
|
|
7850
|
-
var l =
|
|
7854
|
+
}), _(m(t), "onVideoClick", function(s) {
|
|
7855
|
+
var l = m(t), u = l.player, c = l.playerConfig;
|
|
7851
7856
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
7852
|
-
t._clickCount && (t._clickCount--, Te(
|
|
7857
|
+
t._clickCount && (t._clickCount--, Te(m(t), qt[0], function(h, d) {
|
|
7853
7858
|
t.switchPlayPause(d.e);
|
|
7854
7859
|
}, {
|
|
7855
7860
|
e: s,
|
|
7856
7861
|
paused: u.paused
|
|
7857
7862
|
}), clearTimeout(t.clickTimer), t.clickTimer = null);
|
|
7858
7863
|
}, 300));
|
|
7859
|
-
}), _(
|
|
7860
|
-
var l =
|
|
7864
|
+
}), _(m(t), "onVideoDblClick", function(s) {
|
|
7865
|
+
var l = m(t), u = l.player, c = l.playerConfig;
|
|
7861
7866
|
if (!(c.closeVideoDblclick || !s.target || s.target !== u.media && s.target !== u.media.__canvas)) {
|
|
7862
7867
|
if (!c.closeVideoClick && t._clickCount < 2) {
|
|
7863
7868
|
t._clickCount = 0;
|
|
7864
7869
|
return;
|
|
7865
7870
|
}
|
|
7866
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Te(
|
|
7871
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Te(m(t), qt[1], function(h, d) {
|
|
7867
7872
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
7868
7873
|
props: "fullscreen",
|
|
7869
7874
|
from: u.fullscreen,
|
|
@@ -8081,8 +8086,8 @@ var Ze = {
|
|
|
8081
8086
|
var o = D(r);
|
|
8082
8087
|
function r(t) {
|
|
8083
8088
|
var e;
|
|
8084
|
-
return x(this, r), e = o.call(this, t), _(
|
|
8085
|
-
var n =
|
|
8089
|
+
return x(this, r), e = o.call(this, t), _(m(e), "onTouchStart", function(i) {
|
|
8090
|
+
var n = m(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = e.getTouche(i);
|
|
8086
8091
|
if (h && !l.disableGesture && e.duration > 0 && !s.ended) {
|
|
8087
8092
|
u.isStart = !0, e.timer && clearTimeout(e.timer), f.checkIsFunction(c.disableSwipeHandler) && c.disableSwipeHandler(), e.find(".xg-dur").innerHTML = f.format(e.duration);
|
|
8088
8093
|
var d = e.root.getBoundingClientRect();
|
|
@@ -8090,21 +8095,21 @@ var Ze = {
|
|
|
8090
8095
|
var p = parseInt(h.pageX - u.left, 10), g = parseInt(h.pageY - u.top, 10);
|
|
8091
8096
|
u.x = s.rotateDeg === 90 ? g : p, u.y = s.rotateDeg === 90 ? p : g, u.scopeL = l.scopeL * u.width, u.scopeR = (1 - l.scopeR) * u.width, u.scopeM1 = u.width * (1 - l.scopeM) / 2, u.scopeM2 = u.width - u.scopeM1;
|
|
8092
8097
|
}
|
|
8093
|
-
}), _(
|
|
8094
|
-
var n = e.getTouche(i), s =
|
|
8098
|
+
}), _(m(e), "onTouchMove", function(i) {
|
|
8099
|
+
var n = e.getTouche(i), s = m(e), l = s.pos, u = s.config, c = s.player;
|
|
8095
8100
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
8096
|
-
var h = u.miniMoveStep, d = u.hideControlsActive, p = parseInt(n.pageX - l.left, 10), g = parseInt(n.pageY - l.top, 10),
|
|
8097
|
-
if (Math.abs(
|
|
8098
|
-
var C =
|
|
8099
|
-
if (w === -1 && (w = e.checkScope(
|
|
8101
|
+
var h = u.miniMoveStep, d = u.hideControlsActive, p = parseInt(n.pageX - l.left, 10), g = parseInt(n.pageY - l.top, 10), v = c.rotateDeg === 90 ? g : p, y = c.rotateDeg === 90 ? p : g;
|
|
8102
|
+
if (Math.abs(v - l.x) > h || Math.abs(y - l.y) > h) {
|
|
8103
|
+
var C = v - l.x, b = y - l.y, w = l.scope;
|
|
8104
|
+
if (w === -1 && (w = e.checkScope(v, y, C, b, l), w === 0 && (d ? c.blur() : c.focus({
|
|
8100
8105
|
autoHide: !1
|
|
8101
8106
|
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = w), w === -1 || w > 0 && !u.gestureY || w === 0 && !u.gestureX)
|
|
8102
8107
|
return;
|
|
8103
|
-
e.executeMove(C, b, w, l.width, l.height), l.x =
|
|
8108
|
+
e.executeMove(C, b, w, l.width, l.height), l.x = v, l.y = y;
|
|
8104
8109
|
}
|
|
8105
8110
|
}
|
|
8106
|
-
}), _(
|
|
8107
|
-
var n =
|
|
8111
|
+
}), _(m(e), "onTouchEnd", function(i) {
|
|
8112
|
+
var n = m(e), s = n.player, l = n.pos, u = n.playerConfig;
|
|
8108
8113
|
if (setTimeout(function() {
|
|
8109
8114
|
s.getPlugin("progress") && s.getPlugin("progress").resetSeekState();
|
|
8110
8115
|
}, 10), !!l.isStart) {
|
|
@@ -8112,9 +8117,9 @@ var Ze = {
|
|
|
8112
8117
|
var c = e.config, h = c.disableGesture, d = c.gestureX;
|
|
8113
8118
|
!h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ze.AUTO);
|
|
8114
8119
|
}
|
|
8115
|
-
}), _(
|
|
8120
|
+
}), _(m(e), "onRootTouchMove", function(i) {
|
|
8116
8121
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
8117
|
-
}), _(
|
|
8122
|
+
}), _(m(e), "onRootTouchEnd", function(i) {
|
|
8118
8123
|
e.pos.scope > -1 && e.onTouchEnd(i);
|
|
8119
8124
|
}), e.pos = {
|
|
8120
8125
|
isStart: !1,
|
|
@@ -8520,20 +8525,20 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8520
8525
|
x(this, r);
|
|
8521
8526
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
8522
8527
|
i[n] = arguments[n];
|
|
8523
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
8528
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBodyKeyDown", function(s) {
|
|
8524
8529
|
if (t.player) {
|
|
8525
|
-
var l = s || window.event, u = l.keyCode, c =
|
|
8526
|
-
if (g ||
|
|
8530
|
+
var l = s || window.event, u = l.keyCode, c = m(t), h = c._keyState, d = c.player, p = t.config, g = p.disable, v = p.disableBodyTrigger, y = p.isIgnoreUserActive;
|
|
8531
|
+
if (g || v || !(d.isUserActive || y) || dn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
|
|
8527
8532
|
h.isBodyKeyDown = !1;
|
|
8528
8533
|
return;
|
|
8529
8534
|
}
|
|
8530
8535
|
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !dn(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
|
|
8531
8536
|
}
|
|
8532
|
-
}), _(
|
|
8537
|
+
}), _(m(t), "onBodyKeyUp", function(s) {
|
|
8533
8538
|
t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
|
|
8534
|
-
}), _(
|
|
8539
|
+
}), _(m(t), "onKeydown", function(s) {
|
|
8535
8540
|
if (t.player) {
|
|
8536
|
-
var l = s || window.event, u =
|
|
8541
|
+
var l = s || window.event, u = m(t), c = u._keyState;
|
|
8537
8542
|
if (!l.repeat) {
|
|
8538
8543
|
if (t.config.disable || t.config.disableRootTrigger || l.metaKey || l.altKey || l.ctrlKey)
|
|
8539
8544
|
return;
|
|
@@ -8541,7 +8546,7 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8541
8546
|
}
|
|
8542
8547
|
c.isKeyDown && t.handleKeyDown(l);
|
|
8543
8548
|
}
|
|
8544
|
-
}), _(
|
|
8549
|
+
}), _(m(t), "onKeyup", function(s) {
|
|
8545
8550
|
t.player && (t.player.root.removeEventListener("keyup", t.onKeyup), t.handleKeyUp(s));
|
|
8546
8551
|
}), t;
|
|
8547
8552
|
}
|
|
@@ -8670,14 +8675,14 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8670
8675
|
value: function(e) {
|
|
8671
8676
|
var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l, p = e.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
|
|
8672
8677
|
h + p <= d ? h = h + p : h = d;
|
|
8673
|
-
var g = f.getCurrentTimeByOffset(h, c),
|
|
8678
|
+
var g = f.getCurrentTimeByOffset(h, c), v = {
|
|
8674
8679
|
currentTime: {
|
|
8675
8680
|
from: n,
|
|
8676
8681
|
to: g
|
|
8677
8682
|
}
|
|
8678
8683
|
};
|
|
8679
8684
|
this.emitUserAction(e, "seek", {
|
|
8680
|
-
props:
|
|
8685
|
+
props: v
|
|
8681
8686
|
}), this.player.currentTime = g;
|
|
8682
8687
|
}
|
|
8683
8688
|
}, {
|
|
@@ -8747,8 +8752,8 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8747
8752
|
var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable, p = u.pressAction, g = u.disablePress;
|
|
8748
8753
|
if (h === e) {
|
|
8749
8754
|
if (!d && !(n && g)) {
|
|
8750
|
-
var
|
|
8751
|
-
typeof
|
|
8755
|
+
var v = n && p || c;
|
|
8756
|
+
typeof v == "function" ? c(i, this.player, n) : typeof v == "string" && typeof this[v] == "function" && this[v](i, this.player, n), this.emit(Vn, q({
|
|
8752
8757
|
key: s[l],
|
|
8753
8758
|
target: i.target,
|
|
8754
8759
|
isPress: n
|
|
@@ -9057,8 +9062,8 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9057
9062
|
var o = D(r);
|
|
9058
9063
|
function r(t) {
|
|
9059
9064
|
var e;
|
|
9060
|
-
return x(this, r), e = o.call(this, t), _(
|
|
9061
|
-
var s =
|
|
9065
|
+
return x(this, r), e = o.call(this, t), _(m(e), "onMoveOnly", function(i, n) {
|
|
9066
|
+
var s = m(e), l = s.pos, u = s.config, c = s.player, h = n;
|
|
9062
9067
|
if (i) {
|
|
9063
9068
|
f.event(i);
|
|
9064
9069
|
var d = f.getEventPos(i, c.zoom), p = c.rotateDeg === 90 ? d.clientY : d.clientX;
|
|
@@ -9067,18 +9072,18 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9067
9072
|
l.moving = !0, l.x = p, h = e.computeTime(i, p);
|
|
9068
9073
|
}
|
|
9069
9074
|
e.triggerCallbacks("dragmove", h, i), e._updateInnerFocus(h);
|
|
9070
|
-
}), _(
|
|
9075
|
+
}), _(m(e), "onBodyClick", function(i) {
|
|
9071
9076
|
e.pos.isLocked && (e.pos.isLocked = !1, i.preventDefault(), i.stopPropagation());
|
|
9072
|
-
}), _(
|
|
9077
|
+
}), _(m(e), "_mouseDownHandler", function(i, n) {
|
|
9073
9078
|
e._state.time = n.currentTime, e.updateWidth(n.currentTime, n.seekTime, n.percent, 0), e._updateInnerFocus(n);
|
|
9074
|
-
}), _(
|
|
9075
|
-
var s =
|
|
9079
|
+
}), _(m(e), "_mouseUpHandler", function(i, n) {
|
|
9080
|
+
var s = m(e), l = s.pos;
|
|
9076
9081
|
l.moving && e.updateWidth(n.currentTime, n.seekTime, n.percent, 2);
|
|
9077
|
-
}), _(
|
|
9078
|
-
var s =
|
|
9082
|
+
}), _(m(e), "_mouseMoveHandler", function(i, n) {
|
|
9083
|
+
var s = m(e), l = s._state, u = s.pos, c = s.config, h = s.player;
|
|
9079
9084
|
l.time < n.currentTime ? n.forward = !0 : n.forward = !1, l.time = n.currentTime, u.isDown && !u.moving && (u.moving = !0, c.isPauseMoving && h.pause(), e.triggerCallbacks("dragstart", n, i), e.emitUserAction("drag", "dragstart", n)), e.updateWidth(n.currentTime, n.seekTime, n.percent, 1), e.triggerCallbacks("dragmove", n, i), e._updateInnerFocus(n);
|
|
9080
|
-
}), _(
|
|
9081
|
-
var n =
|
|
9085
|
+
}), _(m(e), "onMouseDown", function(i) {
|
|
9086
|
+
var n = m(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom), p = l.rotateDeg === 90 ? d.clientY : d.clientX;
|
|
9082
9087
|
if (!(l.isMini || c.closeMoveSeek || !h.allowSeekAfterEnded && l.ended)) {
|
|
9083
9088
|
if (!l.duration && !l.isPlaying) {
|
|
9084
9089
|
l.play();
|
|
@@ -9089,20 +9094,20 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9089
9094
|
}), e.isProgressMoving = !0, f.addClass(e.progressBtn, "active");
|
|
9090
9095
|
var g = e.computeTime(i, p);
|
|
9091
9096
|
g.prePlayTime = s.prePlayTime, e._mouseDownHandlerHook(i, g);
|
|
9092
|
-
var
|
|
9093
|
-
return
|
|
9097
|
+
var v = i.type;
|
|
9098
|
+
return v === "touchstart" ? (e.root.addEventListener("touchmove", e.onMouseMove), e.root.addEventListener("touchend", e.onMouseUp), e.root.addEventListener("touchcancel", e.onMouseUp)) : (e.unbind("mousemove", e.onMoveOnly), document.addEventListener("mousemove", e.onMouseMove, !1), document.addEventListener("mouseup", e.onMouseUp, !1)), !0;
|
|
9094
9099
|
}
|
|
9095
|
-
}), _(
|
|
9096
|
-
var n =
|
|
9100
|
+
}), _(m(e), "onMouseUp", function(i) {
|
|
9101
|
+
var n = m(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = n._state;
|
|
9097
9102
|
i.stopPropagation(), i.preventDefault(), f.checkIsFunction(c.enableSwipeHandler) && c.enableSwipeHandler(), f.checkIsFunction(l.onMoveEnd) && l.onMoveEnd(), f.event(i), f.removeClass(e.progressBtn, "active");
|
|
9098
9103
|
var d = e.computeTime(i, u.x);
|
|
9099
9104
|
d.prePlayTime = h.prePlayTime, u.moving ? (e.triggerCallbacks("dragend", d, i), e.emitUserAction("drag", "dragend", d)) : (e.triggerCallbacks("click", d, i), e.emitUserAction("click", "click", d)), e._mouseUpHandlerHook(i, d), u.moving = !1, u.isDown = !1, u.x = 0, u.y = 0, u.isLocked = !0, h.prePlayTime = 0, h.time = 0;
|
|
9100
9105
|
var p = i.type;
|
|
9101
|
-
p === "touchend" || p === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(
|
|
9106
|
+
p === "touchend" || p === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(m(e), function() {
|
|
9102
9107
|
e.resetSeekState();
|
|
9103
9108
|
}, 1), s.focus();
|
|
9104
|
-
}), _(
|
|
9105
|
-
var n =
|
|
9109
|
+
}), _(m(e), "onMouseMove", function(i) {
|
|
9110
|
+
var n = m(e), s = n._state, l = n.pos, u = n.player, c = n.config;
|
|
9106
9111
|
f.checkTouchSupport() && i.preventDefault(), f.event(i);
|
|
9107
9112
|
var h = f.getEventPos(i, u.zoom), d = u.rotateDeg === 90 ? h.clientY : h.clientX, p = Math.abs(l.x - d);
|
|
9108
9113
|
if (!(l.moving && p < c.miniMoveStep || !l.moving && p < c.miniStartStep)) {
|
|
@@ -9110,20 +9115,20 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9110
9115
|
var g = e.computeTime(i, d);
|
|
9111
9116
|
g.prePlayTime = s.prePlayTime, e._mouseMoveHandlerHook(i, g);
|
|
9112
9117
|
}
|
|
9113
|
-
}), _(
|
|
9118
|
+
}), _(m(e), "onMouseOut", function(i) {
|
|
9114
9119
|
e.triggerCallbacks("mouseout", null, i);
|
|
9115
|
-
}), _(
|
|
9120
|
+
}), _(m(e), "onMouseOver", function(i) {
|
|
9116
9121
|
e.triggerCallbacks("mouseover", null, i);
|
|
9117
|
-
}), _(
|
|
9118
|
-
var n =
|
|
9122
|
+
}), _(m(e), "onMouseEnter", function(i) {
|
|
9123
|
+
var n = m(e), s = n.player, l = n.pos;
|
|
9119
9124
|
if (!(l.isDown || l.isEnter || s.isMini || !s.config.allowSeekAfterEnded && s.ended)) {
|
|
9120
9125
|
l.isEnter = !0, e.bind("mousemove", e.onMoveOnly), e.bind("mouseleave", e.onMouseLeave), f.event(i);
|
|
9121
9126
|
var u = f.getEventPos(i, s.zoom), c = s.rotateDeg === 90 ? u.clientY : u.clientX, h = e.computeTime(i, c);
|
|
9122
9127
|
e.triggerCallbacks("mouseenter", h, i), e.focus();
|
|
9123
9128
|
}
|
|
9124
|
-
}), _(
|
|
9129
|
+
}), _(m(e), "onMouseLeave", function(i) {
|
|
9125
9130
|
e.triggerCallbacks("mouseleave", null, i), e.unlock(), e._updateInnerFocus(null);
|
|
9126
|
-
}), _(
|
|
9131
|
+
}), _(m(e), "onVideoResize", function() {
|
|
9127
9132
|
var i = e.pos, n = i.x, s = i.isDown, l = i.isEnter;
|
|
9128
9133
|
if (l && !s) {
|
|
9129
9134
|
var u = e.computeTime(null, n);
|
|
@@ -9323,16 +9328,16 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9323
9328
|
value: function(e, i) {
|
|
9324
9329
|
var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d, p, g = i;
|
|
9325
9330
|
n.rotateDeg === 90 ? (d = u, p = c) : (d = l, p = h);
|
|
9326
|
-
var
|
|
9327
|
-
|
|
9328
|
-
var y =
|
|
9331
|
+
var v = g - p;
|
|
9332
|
+
v = v > d ? d : v < 0 ? 0 : v;
|
|
9333
|
+
var y = v / d;
|
|
9329
9334
|
y = y < 0 ? 0 : y > 1 ? 1 : y;
|
|
9330
9335
|
var C = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(C, n.timeSegments);
|
|
9331
9336
|
return {
|
|
9332
9337
|
percent: y,
|
|
9333
9338
|
currentTime: C,
|
|
9334
9339
|
seekTime: b,
|
|
9335
|
-
offset:
|
|
9340
|
+
offset: v,
|
|
9336
9341
|
width: d,
|
|
9337
9342
|
left: p,
|
|
9338
9343
|
e
|
|
@@ -9471,11 +9476,11 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9471
9476
|
x(this, r);
|
|
9472
9477
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9473
9478
|
i[n] = arguments[n];
|
|
9474
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
9479
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onMouseenter", function(s) {
|
|
9475
9480
|
t.emit("icon_mouseenter", {
|
|
9476
9481
|
pluginName: t.pluginName
|
|
9477
9482
|
});
|
|
9478
|
-
}), _(
|
|
9483
|
+
}), _(m(t), "_onMouseLeave", function(s) {
|
|
9479
9484
|
t.emit("icon_mouseleave", {
|
|
9480
9485
|
pluginName: t.pluginName
|
|
9481
9486
|
});
|
|
@@ -9668,7 +9673,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9668
9673
|
x(this, r);
|
|
9669
9674
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9670
9675
|
i[n] = arguments[n];
|
|
9671
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
9676
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onOrientationChange", function(s) {
|
|
9672
9677
|
t.player.fullscreen && t.config.rotateFullscreen && (window.orientation === 90 || window.orientation === -90 ? t.player.setRotateDeg(0) : t.player.setRotateDeg(90));
|
|
9673
9678
|
}), t;
|
|
9674
9679
|
}
|
|
@@ -9954,20 +9959,20 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9954
9959
|
x(this, r);
|
|
9955
9960
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
9956
9961
|
i[n] = arguments[n];
|
|
9957
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
9962
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onDurationChange", function() {
|
|
9958
9963
|
t.updateSegments();
|
|
9959
9964
|
var s = t.player, l = s.currentTime, u = s.timeSegments;
|
|
9960
9965
|
if (t._checkIfEnabled(u)) {
|
|
9961
9966
|
var c = f.getIndexByTime(l, u), h = f.getOffsetCurrentTime(l, u, c);
|
|
9962
9967
|
t.player.offsetCurrentTime = h, t.changeIndex(c, u);
|
|
9963
9968
|
}
|
|
9964
|
-
}), _(
|
|
9969
|
+
}), _(m(t), "_onLoadedData", function() {
|
|
9965
9970
|
var s = t.player.timeSegments;
|
|
9966
9971
|
if (t._checkIfEnabled(s)) {
|
|
9967
9972
|
var l = f.getOffsetCurrentTime(0, s);
|
|
9968
9973
|
t.player.offsetCurrentTime = l, t.changeIndex(0, s), t.curPos.start > 0 && (t.player.currentTime = t.curPos.start);
|
|
9969
9974
|
}
|
|
9970
|
-
}), _(
|
|
9975
|
+
}), _(m(t), "_onTimeupdate", function() {
|
|
9971
9976
|
var s = t.player, l = s.currentTime, u = s.timeSegments;
|
|
9972
9977
|
if (t._checkIfEnabled(u)) {
|
|
9973
9978
|
var c = u.length;
|
|
@@ -9976,11 +9981,11 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9976
9981
|
h !== t.curIndex && t.changeIndex(h, u);
|
|
9977
9982
|
var d = f.getOffsetCurrentTime(l, u, h);
|
|
9978
9983
|
if (t.player.offsetCurrentTime = d, !!t.curPos) {
|
|
9979
|
-
var p = t.curPos, g = p.start,
|
|
9980
|
-
l < g ? t.player.currentTime = g : l >
|
|
9984
|
+
var p = t.curPos, g = p.start, v = p.end;
|
|
9985
|
+
l < g ? t.player.currentTime = g : l > v && h >= c - 1 && t.player.pause();
|
|
9981
9986
|
}
|
|
9982
9987
|
}
|
|
9983
|
-
}), _(
|
|
9988
|
+
}), _(m(t), "_onSeeking", function() {
|
|
9984
9989
|
var s = t.player, l = s.currentTime, u = s.timeSegments;
|
|
9985
9990
|
if (t._checkIfEnabled(u))
|
|
9986
9991
|
if (l < u[0].start)
|
|
@@ -9994,7 +9999,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9994
9999
|
h >= 0 && (t.player.currentTime = h);
|
|
9995
10000
|
}
|
|
9996
10001
|
}
|
|
9997
|
-
}), _(
|
|
10002
|
+
}), _(m(t), "_onPlay", function() {
|
|
9998
10003
|
var s = t.player, l = s.currentTime, u = s.timeSegments;
|
|
9999
10004
|
t._checkIfEnabled(u) && l >= u[u.length - 1].end && (t.player.currentTime = u[0].start);
|
|
10000
10005
|
}), t;
|
|
@@ -10113,35 +10118,35 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10113
10118
|
x(this, r);
|
|
10114
10119
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10115
10120
|
i[n] = arguments[n];
|
|
10116
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
10117
|
-
var l =
|
|
10121
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBarMousedown", function(s) {
|
|
10122
|
+
var l = m(t), u = l.player, c = t.find(".xgplayer-bar");
|
|
10118
10123
|
f.event(s);
|
|
10119
10124
|
var h = c.getBoundingClientRect(), d = f.getEventPos(s, u.zoom), p = h.height - (d.clientY - h.top);
|
|
10120
10125
|
if (d.h = p, d.barH = h.height, t.pos = d, !(p < -2))
|
|
10121
10126
|
return t.updateVolumePos(p, s), document.addEventListener("mouseup", t.onBarMouseUp), t._d.isStart = !0, !1;
|
|
10122
|
-
}), _(
|
|
10123
|
-
var l =
|
|
10127
|
+
}), _(m(t), "onBarMouseMove", function(s) {
|
|
10128
|
+
var l = m(t), u = l._d;
|
|
10124
10129
|
if (u.isStart) {
|
|
10125
|
-
var c =
|
|
10130
|
+
var c = m(t), h = c.pos, d = c.player;
|
|
10126
10131
|
s.preventDefault(), s.stopPropagation(), f.event(s);
|
|
10127
10132
|
var p = f.getEventPos(s, d.zoom);
|
|
10128
10133
|
u.isMoving = !0;
|
|
10129
10134
|
var g = h.h - p.clientY + h.clientY;
|
|
10130
10135
|
g > h.barH || t.updateVolumePos(g, s);
|
|
10131
10136
|
}
|
|
10132
|
-
}), _(
|
|
10137
|
+
}), _(m(t), "onBarMouseUp", function(s) {
|
|
10133
10138
|
f.event(s), document.removeEventListener("mouseup", t.onBarMouseUp);
|
|
10134
|
-
var l =
|
|
10139
|
+
var l = m(t), u = l._d;
|
|
10135
10140
|
u.isStart = !1, u.isMoving = !1;
|
|
10136
|
-
}), _(
|
|
10141
|
+
}), _(m(t), "onMouseenter", function(s) {
|
|
10137
10142
|
t._d.isActive = !0, t.focus(), t.emit("icon_mouseenter", {
|
|
10138
10143
|
pluginName: t.pluginName
|
|
10139
10144
|
});
|
|
10140
|
-
}), _(
|
|
10145
|
+
}), _(m(t), "onMouseleave", function(s) {
|
|
10141
10146
|
t._d.isActive = !1, t.unFocus(100, !1, s), t.emit("icon_mouseleave", {
|
|
10142
10147
|
pluginName: t.pluginName
|
|
10143
10148
|
});
|
|
10144
|
-
}), _(
|
|
10149
|
+
}), _(m(t), "onVolumeChange", function(s) {
|
|
10145
10150
|
if (t.player) {
|
|
10146
10151
|
var l = t.player, u = l.muted, c = l.volume;
|
|
10147
10152
|
t._d.isMoving || (t.find(".xgplayer-drag").style.height = u || c === 0 ? "4px" : "".concat(c * 100, "%"), t.config.showValueLabel && t.updateVolumeValue()), t.animate(u, c);
|
|
@@ -10352,13 +10357,13 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10352
10357
|
this.player.videoRotateDeg = e;
|
|
10353
10358
|
return;
|
|
10354
10359
|
}
|
|
10355
|
-
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, p = c && i ? c.offsetHeight : u.offsetHeight, g = s,
|
|
10356
|
-
(e === 0.75 || e === 0.25) && (g = "".concat(p, "px"),
|
|
10360
|
+
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, p = c && i ? c.offsetHeight : u.offsetHeight, g = s, v = l, y = 0, C = 0;
|
|
10361
|
+
(e === 0.75 || e === 0.25) && (g = "".concat(p, "px"), v = "".concat(d, "px"), y = -(p - d) / 2, C = -(d - p) / 2);
|
|
10357
10362
|
var b = "translate(".concat(y, "px,").concat(C, "px) rotate(").concat(e, "turn)"), w = {
|
|
10358
10363
|
transformOrigin: "center center",
|
|
10359
10364
|
transform: b,
|
|
10360
10365
|
webKitTransform: b,
|
|
10361
|
-
height:
|
|
10366
|
+
height: v,
|
|
10362
10367
|
width: g
|
|
10363
10368
|
}, L = i ? h : u, M = i ? n.getPlugin("poster") : null;
|
|
10364
10369
|
Object.keys(w).map(function(U) {
|
|
@@ -10439,7 +10444,7 @@ var Je = {
|
|
|
10439
10444
|
x(this, r);
|
|
10440
10445
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
10441
10446
|
i[n] = arguments[n];
|
|
10442
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
10447
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "switchPIP", function(s) {
|
|
10443
10448
|
if (!t.isPIPAvailable())
|
|
10444
10449
|
return !1;
|
|
10445
10450
|
s.stopPropagation && s.stopPropagation(), t.isPip ? (t.exitPIP(), t.emitUserAction(s, "change_pip", {
|
|
@@ -10537,7 +10542,7 @@ var Je = {
|
|
|
10537
10542
|
documentPictureInPicture.requestWindow(u).then(function(h) {
|
|
10538
10543
|
var d = s.docPiPNode, p = s.docPiPStyle;
|
|
10539
10544
|
e.enterPIPCallback();
|
|
10540
|
-
var g = d || i.root,
|
|
10545
|
+
var g = d || i.root, v = g.parentElement, y = g.previousSibling, C = g.nextSibling;
|
|
10541
10546
|
e.copyStyleIntoPiPWindow(h);
|
|
10542
10547
|
var b = document.createElement("style");
|
|
10543
10548
|
if (b.append("body{padding:0; margin:0;}"), p) {
|
|
@@ -10548,7 +10553,7 @@ var Je = {
|
|
|
10548
10553
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
10549
10554
|
`);
|
|
10550
10555
|
h.document.head.append(b), h.document.body.append(g), h.addEventListener("pagehide", function(L) {
|
|
10551
|
-
|
|
10556
|
+
v && (C ? v.insertBefore(g, C) : y ? v.insertBefore(g, y.nextSibling) : v.appendChild(g)), e.leavePIPCallback();
|
|
10552
10557
|
}, {
|
|
10553
10558
|
once: !0
|
|
10554
10559
|
});
|
|
@@ -10645,8 +10650,8 @@ var xl = /* @__PURE__ */ function(a) {
|
|
|
10645
10650
|
var o = D(r);
|
|
10646
10651
|
function r(t) {
|
|
10647
10652
|
var e;
|
|
10648
|
-
return x(this, r), e = o.call(this, t), _(
|
|
10649
|
-
var n =
|
|
10653
|
+
return x(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10654
|
+
var n = m(e), s = n.player;
|
|
10650
10655
|
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(xt, e.idx + 1)) : (e.nextHandler(), s.emit(xt));
|
|
10651
10656
|
}), e.idx = -1, e;
|
|
10652
10657
|
}
|
|
@@ -10716,7 +10721,7 @@ var xl = /* @__PURE__ */ function(a) {
|
|
|
10716
10721
|
return function r(t, e, i) {
|
|
10717
10722
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(R) {
|
|
10718
10723
|
return String(R);
|
|
10719
|
-
}, p = n.Blob || n.MozBlob || n.WebKitBlob || d, g = e || "download",
|
|
10724
|
+
}, p = n.Blob || n.MozBlob || n.WebKitBlob || d, g = e || "download", v, y;
|
|
10720
10725
|
if (p = p.call ? p.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (g = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
|
|
10721
10726
|
var C = new XMLHttpRequest();
|
|
10722
10727
|
return C.open("GET", c, !0), C.responseType = "blob", C.onload = function(R) {
|
|
@@ -10739,7 +10744,7 @@ var xl = /* @__PURE__ */ function(a) {
|
|
|
10739
10744
|
w[b] = u.charCodeAt(b);
|
|
10740
10745
|
u = new p([w], { type: l });
|
|
10741
10746
|
}
|
|
10742
|
-
|
|
10747
|
+
v = u instanceof p ? u : new p([u], { type: l });
|
|
10743
10748
|
function M(R) {
|
|
10744
10749
|
var te = R.split(/[:;,]/), J = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, ne = z(te.pop()), ue = ne.length, ce = 0, we = new Uint8Array(ue);
|
|
10745
10750
|
for (ce; ce < ue; ++ce)
|
|
@@ -10763,19 +10768,19 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10763
10768
|
}, 333);
|
|
10764
10769
|
}
|
|
10765
10770
|
if (navigator.msSaveBlob)
|
|
10766
|
-
return navigator.msSaveBlob(
|
|
10771
|
+
return navigator.msSaveBlob(v, g);
|
|
10767
10772
|
if (n.URL)
|
|
10768
|
-
U(n.URL.createObjectURL(
|
|
10773
|
+
U(n.URL.createObjectURL(v), !0);
|
|
10769
10774
|
else {
|
|
10770
|
-
if (typeof
|
|
10775
|
+
if (typeof v == "string" || v.constructor === d)
|
|
10771
10776
|
try {
|
|
10772
|
-
return U("data:" + l + ";base64," + n.btoa(
|
|
10777
|
+
return U("data:" + l + ";base64," + n.btoa(v));
|
|
10773
10778
|
} catch {
|
|
10774
|
-
return U("data:" + l + "," + encodeURIComponent(
|
|
10779
|
+
return U("data:" + l + "," + encodeURIComponent(v));
|
|
10775
10780
|
}
|
|
10776
10781
|
y = new FileReader(), y.onload = function(R) {
|
|
10777
10782
|
U(this.result);
|
|
10778
|
-
}, y.readAsDataURL(
|
|
10783
|
+
}, y.readAsDataURL(v);
|
|
10779
10784
|
}
|
|
10780
10785
|
return !0;
|
|
10781
10786
|
};
|
|
@@ -10805,7 +10810,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10805
10810
|
var o = D(r);
|
|
10806
10811
|
function r(t) {
|
|
10807
10812
|
var e;
|
|
10808
|
-
return x(this, r), e = o.call(this, t), _(
|
|
10813
|
+
return x(this, r), e = o.call(this, t), _(m(e), "download", function(i) {
|
|
10809
10814
|
if (!e.isLock) {
|
|
10810
10815
|
e.emitUserAction(i, "download");
|
|
10811
10816
|
var n = e.playerConfig.url, s = "";
|
|
@@ -10938,13 +10943,13 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10938
10943
|
type: "image/png"
|
|
10939
10944
|
}, l = this.config, u = this.player, c = s.quality || l.quality, h = s.type || l.type;
|
|
10940
10945
|
return new Promise(function(d, p) {
|
|
10941
|
-
var g = null,
|
|
10946
|
+
var g = null, v;
|
|
10942
10947
|
if (u.media.canvas)
|
|
10943
10948
|
g = u.media.canvas;
|
|
10944
10949
|
else {
|
|
10945
|
-
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), g = n.canvas,
|
|
10950
|
+
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), g = n.canvas, v = n.canvasCtx;
|
|
10946
10951
|
var y = u.media.videoWidth / u.media.videoHeight, C = g.width / g.height, b = 0, w = 0, L = u.media.videoWidth, M = u.media.videoHeight, U, R, te, J;
|
|
10947
|
-
y > C ? (te = g.width, J = g.width / y, U = 0, R = Math.round((g.height - J) / 2)) : y === C ? (te = g.width, J = g.height, U = 0, R = 0) : y < C && (te = g.height * y, J = g.height, U = Math.round((g.width - te) / 2), R = 0),
|
|
10952
|
+
y > C ? (te = g.width, J = g.width / y, U = 0, R = Math.round((g.height - J) / 2)) : y === C ? (te = g.width, J = g.height, U = 0, R = 0) : y < C && (te = g.height * y, J = g.height, U = Math.round((g.width - te) / 2), R = 0), v.drawImage(u.media, b, w, L, M, U, R, te, J);
|
|
10948
10953
|
}
|
|
10949
10954
|
var z = g.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
10950
10955
|
z = z.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(z);
|
|
@@ -11086,21 +11091,21 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11086
11091
|
var o = D(r);
|
|
11087
11092
|
function r(t) {
|
|
11088
11093
|
var e;
|
|
11089
|
-
return x(this, r), e = o.call(this, t), _(
|
|
11094
|
+
return x(this, r), e = o.call(this, t), _(m(e), "onEnter", function(i) {
|
|
11090
11095
|
i.stopPropagation(), e.emit("icon_mouseenter", {
|
|
11091
11096
|
pluginName: e.pluginName
|
|
11092
11097
|
}), e.switchActiveState(i);
|
|
11093
|
-
}), _(
|
|
11098
|
+
}), _(m(e), "switchActiveState", function(i) {
|
|
11094
11099
|
i.stopPropagation();
|
|
11095
11100
|
var n = e.config.toggleMode;
|
|
11096
11101
|
n === Qe.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
11097
|
-
}), _(
|
|
11102
|
+
}), _(m(e), "onLeave", function(i) {
|
|
11098
11103
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
11099
11104
|
pluginName: e.pluginName
|
|
11100
11105
|
}), e.config.listType !== ke.SIDE && e.isActive && e.toggle(!1);
|
|
11101
|
-
}), _(
|
|
11106
|
+
}), _(m(e), "onListEnter", function(i) {
|
|
11102
11107
|
e.enterType = 2;
|
|
11103
|
-
}), _(
|
|
11108
|
+
}), _(m(e), "onListLeave", function(i) {
|
|
11104
11109
|
e.enterType = 0, e.isActive && e.toggle(!1);
|
|
11105
11110
|
}), e.isIcons = !1, e.isActive = !1, e.curValue = null, e.curIndex = 0, e;
|
|
11106
11111
|
}
|
|
@@ -11193,8 +11198,8 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11193
11198
|
config: {
|
|
11194
11199
|
data: e || [],
|
|
11195
11200
|
className: Rl(s.listType, s.position),
|
|
11196
|
-
onItemClick: function(
|
|
11197
|
-
n.onItemClick(
|
|
11201
|
+
onItemClick: function(v, y) {
|
|
11202
|
+
n.onItemClick(v, y);
|
|
11198
11203
|
},
|
|
11199
11204
|
domEventType: je ? "touch" : "mouse"
|
|
11200
11205
|
},
|
|
@@ -11873,7 +11878,7 @@ var et = {
|
|
|
11873
11878
|
var o = D(r);
|
|
11874
11879
|
function r(t) {
|
|
11875
11880
|
var e;
|
|
11876
|
-
return x(this, r), e = o.call(this, t), _(
|
|
11881
|
+
return x(this, r), e = o.call(this, t), _(m(e), "onMousemove", function(i) {
|
|
11877
11882
|
if (!e.config.disable) {
|
|
11878
11883
|
if (f.hasClass(i.target, "xg-spot-content") && e.config.isHideThumbnailHover) {
|
|
11879
11884
|
e.player.plugins.progress.onMouseLeave(i);
|
|
@@ -11881,20 +11886,20 @@ var et = {
|
|
|
11881
11886
|
}
|
|
11882
11887
|
(e._state.f || f.hasClass(i.target, "xg-spot-content")) && (f.event(i), i.stopPropagation());
|
|
11883
11888
|
}
|
|
11884
|
-
}), _(
|
|
11889
|
+
}), _(m(e), "onMousedown", function(i) {
|
|
11885
11890
|
e.config.disable || (e._state.f || f.hasClass(i.target, "xg-spot-content")) && (f.event(i), i.stopPropagation());
|
|
11886
|
-
}), _(
|
|
11891
|
+
}), _(m(e), "onMouseup", function(i) {
|
|
11887
11892
|
if (e.isDrag) {
|
|
11888
11893
|
var n = e.player.plugins.progress;
|
|
11889
11894
|
n && n.pos && (n.onMouseUp(i), !n.pos.isEnter && n.onMouseLeave(i));
|
|
11890
11895
|
}
|
|
11891
|
-
}), _(
|
|
11896
|
+
}), _(m(e), "onDotMouseLeave", function(i) {
|
|
11892
11897
|
if (!e.config.disable) {
|
|
11893
11898
|
e._curDot.removeEventListener("mouseleave", e.onDotMouseLeave), e.blurDot(i.target), e._curDot = null;
|
|
11894
11899
|
var n = e.player.plugins.progress;
|
|
11895
11900
|
n && n.enableBlur(), e.show();
|
|
11896
11901
|
}
|
|
11897
|
-
}), _(
|
|
11902
|
+
}), _(m(e), "onProgressMouseOver", function(i, n) {
|
|
11898
11903
|
if (!e.config.disable && f.hasClass(n.target, "xgplayer-spot") && !e._curDot) {
|
|
11899
11904
|
e._curDot = n.target, e.focusDot(n.target), e._curDot.children.length > 0 && e.hide();
|
|
11900
11905
|
var s = e.player.plugins.progress;
|
|
@@ -12207,7 +12212,7 @@ var et = {
|
|
|
12207
12212
|
this.interval = Math.round(this.player.duration / l);
|
|
12208
12213
|
var p = Math.ceil(e / this.interval);
|
|
12209
12214
|
p = p > l ? l : p;
|
|
12210
|
-
var g = p < u * c ? 0 : Math.ceil(p / (u * c)) - 1,
|
|
12215
|
+
var g = p < u * c ? 0 : Math.ceil(p / (u * c)) - 1, v = p - g * (c * u), y = v > 0 ? Math.ceil(v / c) - 1 : 0, C = v > 0 ? v - y * c - 1 : 0, b = 0, w = 0;
|
|
12211
12216
|
if (i && n) {
|
|
12212
12217
|
var L = i / n;
|
|
12213
12218
|
L < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
|
|
@@ -12289,8 +12294,8 @@ var Wl = /* @__PURE__ */ function(a) {
|
|
|
12289
12294
|
x(this, r);
|
|
12290
12295
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12291
12296
|
i[n] = arguments[n];
|
|
12292
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
12293
|
-
var s = t.player.ended, l =
|
|
12297
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onTimeupdate", function() {
|
|
12298
|
+
var s = t.player.ended, l = m(t), u = l.offsetDuration, c = t.currentTime;
|
|
12294
12299
|
c = f.adjustTimeByDuration(c, u, s), t.update({
|
|
12295
12300
|
played: c
|
|
12296
12301
|
}, u);
|
|
@@ -12392,11 +12397,11 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12392
12397
|
x(this, r);
|
|
12393
12398
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12394
12399
|
i[n] = arguments[n];
|
|
12395
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
12400
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onLoadedData", function(s) {
|
|
12396
12401
|
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(he, t.renderOnTimeupdate), t.on(he, t.renderOnTimeupdate));
|
|
12397
|
-
}), _(
|
|
12402
|
+
}), _(m(t), "onVisibilitychange", function(s) {
|
|
12398
12403
|
document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
|
|
12399
|
-
}), _(
|
|
12404
|
+
}), _(m(t), "renderOnTimeupdate", function(s) {
|
|
12400
12405
|
if (t._frameCount > 0)
|
|
12401
12406
|
t.renderOnce(), t._frameCount--;
|
|
12402
12407
|
else {
|
|
@@ -12404,11 +12409,11 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12404
12409
|
var l = t.config.startInterval;
|
|
12405
12410
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12406
12411
|
}
|
|
12407
|
-
}), _(
|
|
12412
|
+
}), _(m(t), "start", function(s, l) {
|
|
12408
12413
|
var u = t.player.video, c = Gl(), h = t.checkVideoIsSupport(u);
|
|
12409
|
-
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === tt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(
|
|
12410
|
-
}), _(
|
|
12411
|
-
t.frameId && (t._loopType === "timer" ? f.clearTimeout(
|
|
12414
|
+
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === tt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(m(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
12415
|
+
}), _(m(t), "stop", function() {
|
|
12416
|
+
t.frameId && (t._loopType === "timer" ? f.clearTimeout(m(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
12412
12417
|
}), t;
|
|
12413
12418
|
}
|
|
12414
12419
|
return I(r, [{
|
|
@@ -12669,7 +12674,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12669
12674
|
x(this, r);
|
|
12670
12675
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12671
12676
|
i[n] = arguments[n];
|
|
12672
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
12677
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "_recordUserActions", function(s) {
|
|
12673
12678
|
var l = t._getTime(), u = Object.assign({}, s, {
|
|
12674
12679
|
msg: s.msg || s.action
|
|
12675
12680
|
});
|
|
@@ -12678,11 +12683,11 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12678
12683
|
}, l), {}, {
|
|
12679
12684
|
payload: u
|
|
12680
12685
|
}));
|
|
12681
|
-
}), _(
|
|
12686
|
+
}), _(m(t), "_onReset", function() {
|
|
12682
12687
|
t.reset();
|
|
12683
|
-
}), _(
|
|
12688
|
+
}), _(m(t), "_recordInfo", function(s) {
|
|
12684
12689
|
t.info(s);
|
|
12685
|
-
}), _(
|
|
12690
|
+
}), _(m(t), "_downloadStats", function() {
|
|
12686
12691
|
var s = t.getStats(), l = new Blob([JSON.stringify(s)], {
|
|
12687
12692
|
type: "application/json"
|
|
12688
12693
|
}), u = window.URL.createObjectURL(l), c = document.createElement("a");
|
|
@@ -12813,8 +12818,8 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12813
12818
|
x(this, r);
|
|
12814
12819
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12815
12820
|
i[n] = arguments[n];
|
|
12816
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
12817
|
-
var s =
|
|
12821
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onGapJump", function() {
|
|
12822
|
+
var s = m(t), l = s.player, u = s.config;
|
|
12818
12823
|
if (l.media.readyState !== HTMLMediaElement.HAVE_NOTHING) {
|
|
12819
12824
|
if (l.media.seeking) {
|
|
12820
12825
|
if (!t.seekingEventReceived)
|
|
@@ -12825,15 +12830,15 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12825
12830
|
var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3, p = l.media.currentTime, g = t._getIndex(c, p, d);
|
|
12826
12831
|
if (!(g === null || g === 0)) {
|
|
12827
12832
|
console.log("GapJump bufferRange ", c.start(g), c.end(g));
|
|
12828
|
-
var
|
|
12829
|
-
if (!(
|
|
12830
|
-
var C =
|
|
12831
|
-
C < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ?
|
|
12833
|
+
var v = c.start(g) + 0.1, y = l.media.duration;
|
|
12834
|
+
if (!(v > y)) {
|
|
12835
|
+
var C = v - p, b = C <= h;
|
|
12836
|
+
C < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? v + 0.1 : v), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", g, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", p - l.media.currentTime), v !== 0.08 && l && l.emit("log", {
|
|
12832
12837
|
type: "oneevent",
|
|
12833
12838
|
end_type: "gap",
|
|
12834
12839
|
vid: l.config.vid,
|
|
12835
12840
|
ext: {
|
|
12836
|
-
video_postion: Math.floor(
|
|
12841
|
+
video_postion: Math.floor(v * 1e3)
|
|
12837
12842
|
}
|
|
12838
12843
|
}));
|
|
12839
12844
|
}
|
|
@@ -12903,11 +12908,11 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12903
12908
|
x(this, r);
|
|
12904
12909
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12905
12910
|
i[n] = arguments[n];
|
|
12906
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
12907
|
-
var s =
|
|
12911
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "onWaiting", function() {
|
|
12912
|
+
var s = m(t), l = s.config;
|
|
12908
12913
|
t.jumpCnt > l.jumpCntMax || t.timer || l.useWaitingTimeoutJump === !1 || (t.timer = setTimeout(t.onJump, l.waitingTime * 1e3));
|
|
12909
|
-
}), _(
|
|
12910
|
-
var s =
|
|
12914
|
+
}), _(m(t), "onJump", function() {
|
|
12915
|
+
var s = m(t), l = s.player, u = s.config;
|
|
12911
12916
|
if (clearTimeout(t.timer), t.timer = null, !(t.jumpCnt > u.jumpCntMax || u.useWaitingTimeoutJump === !1) && !(l.media.paused && l.media.currentTime !== 0 && t.hasPlayed)) {
|
|
12912
12917
|
t.jumpSize = u.jumpSize * (t.jumpCnt + 1), t.jumpCnt === u.jumpSize && t.jumpSize < 6 && (t.jumpSize = 6);
|
|
12913
12918
|
var c = l.currentTime + t.jumpSize, h = l.media.duration;
|
|
@@ -12949,7 +12954,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12949
12954
|
x(this, r);
|
|
12950
12955
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
12951
12956
|
i[n] = arguments[n];
|
|
12952
|
-
return t = o.call.apply(o, [this].concat(i)), _(
|
|
12957
|
+
return t = o.call.apply(o, [this].concat(i)), _(m(t), "getSpeed", function() {
|
|
12953
12958
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it;
|
|
12954
12959
|
if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
|
|
12955
12960
|
return 0;
|
|
@@ -12957,47 +12962,47 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12957
12962
|
return t.speedListCache[s].map(function(u) {
|
|
12958
12963
|
l += u;
|
|
12959
12964
|
}), Math.floor(l / t.speedListCache[s].length);
|
|
12960
|
-
}), _(
|
|
12965
|
+
}), _(m(t), "startTimer", function() {
|
|
12961
12966
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12962
|
-
}), _(
|
|
12967
|
+
}), _(m(t), "initSpeedList", function() {
|
|
12963
12968
|
t.speedListCache = {}, Ct.forEach(function(s) {
|
|
12964
12969
|
t.speedListCache[s] = [];
|
|
12965
12970
|
});
|
|
12966
|
-
}), _(
|
|
12971
|
+
}), _(m(t), "_onRealSpeedChange", function(s) {
|
|
12967
12972
|
s.speed && t.appendList(s.speed, s.type || it);
|
|
12968
|
-
}), _(
|
|
12973
|
+
}), _(m(t), "testSpeed", function() {
|
|
12969
12974
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
12970
12975
|
var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, h = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
12971
12976
|
if (!(t.cnt >= c)) {
|
|
12972
12977
|
t.cnt++;
|
|
12973
12978
|
try {
|
|
12974
|
-
var p = (/* @__PURE__ */ new Date()).getTime(), g = null,
|
|
12975
|
-
t.xhr =
|
|
12979
|
+
var p = (/* @__PURE__ */ new Date()).getTime(), g = null, v = new XMLHttpRequest();
|
|
12980
|
+
t.xhr = v, v.open("GET", d);
|
|
12976
12981
|
var y = {}, C = Math.floor(Math.random() * 10);
|
|
12977
12982
|
y.Range = "bytes=" + C + "-" + (u + C), y && Object.keys(y).forEach(function(b) {
|
|
12978
|
-
|
|
12979
|
-
}),
|
|
12980
|
-
if (
|
|
12983
|
+
v.setRequestHeader(b, y[b]);
|
|
12984
|
+
}), v.onreadystatechange = function() {
|
|
12985
|
+
if (v.readyState === 4) {
|
|
12981
12986
|
t.xhr = null, g = (/* @__PURE__ */ new Date()).getTime();
|
|
12982
|
-
var b =
|
|
12987
|
+
var b = v.getResponseHeader("Content-Length") / 1024 * 8, w = Math.round(b * 1e3 / (g - p));
|
|
12983
12988
|
t.appendList(w), t.timer = setTimeout(t.testSpeed, h);
|
|
12984
12989
|
}
|
|
12985
|
-
},
|
|
12990
|
+
}, v.send();
|
|
12986
12991
|
} catch (b) {
|
|
12987
12992
|
console.error(b);
|
|
12988
12993
|
}
|
|
12989
12994
|
}
|
|
12990
12995
|
}
|
|
12991
|
-
}), _(
|
|
12996
|
+
}), _(m(t), "appendList", function(s) {
|
|
12992
12997
|
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : it;
|
|
12993
12998
|
if (!(!t.speedListCache || !t.speedListCache[l])) {
|
|
12994
12999
|
var u = t.config.saveSpeedMax;
|
|
12995
13000
|
t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
|
|
12996
|
-
var c =
|
|
13001
|
+
var c = m(t), h = c.player;
|
|
12997
13002
|
h && (l === it ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
|
|
12998
13003
|
}
|
|
12999
|
-
}), _(
|
|
13000
|
-
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it, l = t.getSpeed(s), u =
|
|
13004
|
+
}), _(m(t), "updateSpeed", function() {
|
|
13005
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it, l = t.getSpeed(s), u = m(t), c = u.player;
|
|
13001
13006
|
if (c)
|
|
13002
13007
|
if (s === it)
|
|
13003
13008
|
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(li, {
|
|
@@ -13126,8 +13131,8 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13126
13131
|
value: function(e, i, n, s) {
|
|
13127
13132
|
var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime, p = l.buffered;
|
|
13128
13133
|
if (!(u || c || h < 4)) {
|
|
13129
|
-
var g = this._checkBuffer(d, p),
|
|
13130
|
-
|
|
13134
|
+
var g = this._checkBuffer(d, p), v = g.enoughBuffer, y = g.buffers;
|
|
13135
|
+
v && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
|
|
13131
13136
|
currentTime: d,
|
|
13132
13137
|
buffers: y,
|
|
13133
13138
|
curDecodedFrames: e,
|
|
@@ -13276,7 +13281,7 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13276
13281
|
});
|
|
13277
13282
|
});
|
|
13278
13283
|
}), (p, g) => {
|
|
13279
|
-
const
|
|
13284
|
+
const v = rt("el-icon");
|
|
13280
13285
|
return u.value ? (E(), pe(_n, {
|
|
13281
13286
|
key: 0,
|
|
13282
13287
|
to: "body"
|
|
@@ -13320,7 +13325,7 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13320
13325
|
onClick: d
|
|
13321
13326
|
},
|
|
13322
13327
|
[
|
|
13323
|
-
j(
|
|
13328
|
+
j(v, { onClick: d }, {
|
|
13324
13329
|
default: Q(() => [
|
|
13325
13330
|
j(S(bn))
|
|
13326
13331
|
]),
|
|
@@ -13425,10 +13430,10 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13425
13430
|
(E(!0), P(
|
|
13426
13431
|
Ee,
|
|
13427
13432
|
null,
|
|
13428
|
-
ft(r.value, (g,
|
|
13433
|
+
ft(r.value, (g, v) => (E(), P(
|
|
13429
13434
|
"div",
|
|
13430
13435
|
{
|
|
13431
|
-
key:
|
|
13436
|
+
key: v,
|
|
13432
13437
|
class: "files-item",
|
|
13433
13438
|
style: oe({
|
|
13434
13439
|
width: o.fileWidth,
|
|
@@ -13477,8 +13482,8 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13477
13482
|
(E(!0), P(
|
|
13478
13483
|
Ee,
|
|
13479
13484
|
null,
|
|
13480
|
-
ft(r.value, (g,
|
|
13481
|
-
key:
|
|
13485
|
+
ft(r.value, (g, v) => (E(), P("div", {
|
|
13486
|
+
key: v,
|
|
13482
13487
|
class: "preview-img"
|
|
13483
13488
|
}, [
|
|
13484
13489
|
j(h, {
|