iking-web-ui-pro 0.2.45 → 0.2.46
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 +352 -353
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +2 -1
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +111 -98
- 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 +359 -360
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.umd.js +44 -44
- package/dist/IkApprovalProcessDetail/style.css +1 -0
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +4 -3
- package/dist/{IKCalendar → IkCalendar}/ik.index.umd.js +1 -1
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +299 -300
- package/dist/IkDescription/ik.index.umd.js +44 -44
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -308
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +13 -19
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +2 -1
- package/dist/IkPageFull/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/ik.index.es.js +2 -1
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +343 -344
- package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +77 -78
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +8802 -8740
- package/dist/IkTinymce/ik.index.umd.js +38 -38
- package/dist/IkTinymce/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +333 -334
- package/dist/IkUploadFile/ik.index.umd.js +46 -46
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +378 -378
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12343 -12329
- package/dist/index.umd.js +109 -109
- package/dist/src/components/IkApprovalProcess/index.d.ts +9 -0
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcessDetail/style.css +0 -1
- package/dist/IkOnlyOffice/style.css +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as De, withCtx as Z, createTextVNode as
|
|
2
|
-
import { ikColor as gr, paramType as Pi, _ as
|
|
1
|
+
import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as De, withCtx as Z, createTextVNode as Xt, toDisplayString as qt, createVNode as K, unref as P, mergeModels as vt, useModel as si, ref as Ce, h as er, mergeProps as tr, createSlots as ir, renderSlot as Je, getCurrentScope as nr, onScopeDispose as rr, watch as at, markRaw as Ii, effectScope as sr, shallowRef as ar, nextTick as ai, onMounted as or, Teleport as vn, Transition as mn, withModifiers as lr, Fragment as Zt, resolveDynamicComponent as ur, renderList as cr, withDirectives as fr, vShow as hr, reactive as dr } from "vue";
|
|
2
|
+
import { ikColor as gr, paramType as Pi, _ as Ot, buildUUID as yn } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as pr, useNamespace as _n, useZIndex as vr, ElIcon as Ie, EVENT_CODE as We } from "element-plus";
|
|
4
4
|
const et = (o, a) => {
|
|
5
5
|
if (o.install = (r) => {
|
|
@@ -9,7 +9,7 @@ const et = (o, a) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(a))
|
|
10
10
|
o[r] = t;
|
|
11
11
|
return o;
|
|
12
|
-
},
|
|
12
|
+
}, Jt = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", Li = (o, a) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
14
|
const r = (i = o == null ? void 0 : o.response) != null && i.data ? Ai((s = (n = o == null ? void 0 : o.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = o.raw) == null ? void 0 : l.type) || Ai(o[a.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
@@ -251,7 +251,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
251
251
|
]));
|
|
252
252
|
}
|
|
253
253
|
}), Mr = Or;
|
|
254
|
-
const
|
|
254
|
+
const oi = (o, a) => {
|
|
255
255
|
const r = o.__vccOpts || o;
|
|
256
256
|
for (const [t, e] of a)
|
|
257
257
|
r[t] = e;
|
|
@@ -512,8 +512,8 @@ const xt = (o, a) => {
|
|
|
512
512
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
513
513
|
}, {
|
|
514
514
|
default: Z(() => [
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
Xt(
|
|
516
|
+
qt(r.value.title),
|
|
517
517
|
1
|
|
518
518
|
/* TEXT */
|
|
519
519
|
)
|
|
@@ -524,7 +524,7 @@ const xt = (o, a) => {
|
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
526
|
});
|
|
527
|
-
const Kr = /* @__PURE__ */
|
|
527
|
+
const Kr = /* @__PURE__ */ oi(Gr, [["__scopeId", "data-v-52806adf"]]), kn = et(Kr), Yr = /* @__PURE__ */ Q({
|
|
528
528
|
__name: "CloseIcon",
|
|
529
529
|
props: {
|
|
530
530
|
showBg: {
|
|
@@ -555,7 +555,7 @@ const Kr = /* @__PURE__ */ xt(Gr, [["__scopeId", "data-v-52806adf"]]), kn = et(K
|
|
|
555
555
|
));
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
|
-
const $r = /* @__PURE__ */
|
|
558
|
+
const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { class: "base-header" }, qr = /* @__PURE__ */ Q({
|
|
559
559
|
__name: "IkBaseDialog",
|
|
560
560
|
props: /* @__PURE__ */ vt({
|
|
561
561
|
title: { default: "" },
|
|
@@ -576,7 +576,7 @@ const $r = /* @__PURE__ */ xt(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { cl
|
|
|
576
576
|
}),
|
|
577
577
|
emits: ["update:modelValue"],
|
|
578
578
|
setup(o) {
|
|
579
|
-
const a = o, r =
|
|
579
|
+
const a = o, r = si(o, "modelValue"), t = Ce(a.fullscreen), e = () => {
|
|
580
580
|
t.value = !t.value;
|
|
581
581
|
}, i = Q({
|
|
582
582
|
setup() {
|
|
@@ -600,8 +600,8 @@ const $r = /* @__PURE__ */ xt(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { cl
|
|
|
600
600
|
}), ir({
|
|
601
601
|
icon: Z(() => [
|
|
602
602
|
Je(n.$slots, "title", {}, () => [
|
|
603
|
-
|
|
604
|
-
|
|
603
|
+
Xt(
|
|
604
|
+
qt(n.title),
|
|
605
605
|
1
|
|
606
606
|
/* TEXT */
|
|
607
607
|
)
|
|
@@ -610,8 +610,8 @@ const $r = /* @__PURE__ */ xt(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { cl
|
|
|
610
610
|
header: Z(() => [
|
|
611
611
|
j("div", Xr, [
|
|
612
612
|
Je(n.$slots, "header", {}, () => [
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
Xt(
|
|
614
|
+
qt(n.title),
|
|
615
615
|
1
|
|
616
616
|
/* TEXT */
|
|
617
617
|
)
|
|
@@ -996,40 +996,39 @@ const rs = /* @__PURE__ */ Q({
|
|
|
996
996
|
/* STYLE */
|
|
997
997
|
));
|
|
998
998
|
}
|
|
999
|
-
});
|
|
1000
|
-
const ss = /* @__PURE__ */ xt(rs, [["__scopeId", "data-v-98d51ef9"]]), as = et(ss);
|
|
999
|
+
}), ss = et(rs);
|
|
1001
1000
|
var Oi;
|
|
1002
|
-
const bn = typeof window < "u",
|
|
1001
|
+
const bn = typeof window < "u", as = (o) => typeof o == "string", os = () => {
|
|
1003
1002
|
};
|
|
1004
1003
|
bn && ((Oi = window == null ? void 0 : window.navigator) != null && Oi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1005
1004
|
function wn(o) {
|
|
1006
1005
|
return typeof o == "function" ? o() : P(o);
|
|
1007
1006
|
}
|
|
1008
|
-
function
|
|
1007
|
+
function ls(o) {
|
|
1009
1008
|
return o;
|
|
1010
1009
|
}
|
|
1011
|
-
function
|
|
1010
|
+
function us(o) {
|
|
1012
1011
|
return nr() ? (rr(o), !0) : !1;
|
|
1013
1012
|
}
|
|
1014
|
-
function
|
|
1013
|
+
function cs(o) {
|
|
1015
1014
|
var a;
|
|
1016
1015
|
const r = wn(o);
|
|
1017
1016
|
return (a = r == null ? void 0 : r.$el) != null ? a : r;
|
|
1018
1017
|
}
|
|
1019
|
-
const
|
|
1018
|
+
const fs = bn ? window : void 0;
|
|
1020
1019
|
function ct(...o) {
|
|
1021
1020
|
let a, r, t, e;
|
|
1022
|
-
if (
|
|
1023
|
-
return
|
|
1021
|
+
if (as(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = fs) : [a, r, t, e] = o, !a)
|
|
1022
|
+
return os;
|
|
1024
1023
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1025
1024
|
const i = [], n = () => {
|
|
1026
1025
|
i.forEach((c) => c()), i.length = 0;
|
|
1027
|
-
}, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [
|
|
1026
|
+
}, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [cs(a), wn(e)], ([c, h]) => {
|
|
1028
1027
|
n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, h))));
|
|
1029
1028
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1030
1029
|
l(), n();
|
|
1031
1030
|
};
|
|
1032
|
-
return
|
|
1031
|
+
return us(u), u;
|
|
1033
1032
|
}
|
|
1034
1033
|
const Mi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ni = "__vueuse_ssr_handlers__";
|
|
1035
1034
|
Mi[Ni] = Mi[Ni] || {};
|
|
@@ -1037,15 +1036,15 @@ var Fi;
|
|
|
1037
1036
|
(function(o) {
|
|
1038
1037
|
o.UP = "UP", o.RIGHT = "RIGHT", o.DOWN = "DOWN", o.LEFT = "LEFT", o.NONE = "NONE";
|
|
1039
1038
|
})(Fi || (Fi = {}));
|
|
1040
|
-
var
|
|
1039
|
+
var hs = Object.defineProperty, Bi = Object.getOwnPropertySymbols, ds = Object.prototype.hasOwnProperty, gs = Object.prototype.propertyIsEnumerable, Hi = (o, a, r) => a in o ? hs(o, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[a] = r, ps = (o, a) => {
|
|
1041
1040
|
for (var r in a || (a = {}))
|
|
1042
|
-
|
|
1041
|
+
ds.call(a, r) && Hi(o, r, a[r]);
|
|
1043
1042
|
if (Bi)
|
|
1044
1043
|
for (var r of Bi(a))
|
|
1045
|
-
|
|
1044
|
+
gs.call(a, r) && Hi(o, r, a[r]);
|
|
1046
1045
|
return o;
|
|
1047
1046
|
};
|
|
1048
|
-
const
|
|
1047
|
+
const vs = {
|
|
1049
1048
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1050
1049
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1051
1050
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1071,10 +1070,10 @@ const ms = {
|
|
|
1071
1070
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1072
1071
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1073
1072
|
};
|
|
1074
|
-
|
|
1075
|
-
linear:
|
|
1076
|
-
},
|
|
1077
|
-
const
|
|
1073
|
+
ps({
|
|
1074
|
+
linear: ls
|
|
1075
|
+
}, vs);
|
|
1076
|
+
const ms = {
|
|
1078
1077
|
/**
|
|
1079
1078
|
* @description preview link list.
|
|
1080
1079
|
*/
|
|
@@ -1144,15 +1143,15 @@ const ys = {
|
|
|
1144
1143
|
crossorigin: {
|
|
1145
1144
|
type: ["anonymous", "use-credentials", ""]
|
|
1146
1145
|
}
|
|
1147
|
-
},
|
|
1146
|
+
}, ys = {
|
|
1148
1147
|
close: () => !0,
|
|
1149
1148
|
switch: (o) => Pi.isNumber(o),
|
|
1150
1149
|
rotate: (o) => Pi.isNumber(o)
|
|
1151
|
-
},
|
|
1150
|
+
}, _s = ["src", "crossorigin"], Cs = /* @__PURE__ */ Q({
|
|
1152
1151
|
name: "ElImageViewer",
|
|
1153
1152
|
__name: "IkImageViewer",
|
|
1154
|
-
props:
|
|
1155
|
-
emits:
|
|
1153
|
+
props: ms,
|
|
1154
|
+
emits: ys,
|
|
1156
1155
|
setup(o, { expose: a, emit: r }) {
|
|
1157
1156
|
const t = (D) => Object.keys(D), e = {
|
|
1158
1157
|
CONTAIN: {
|
|
@@ -1185,17 +1184,17 @@ const ys = {
|
|
|
1185
1184
|
let ve = $ / D, xe = he / D;
|
|
1186
1185
|
const it = V * Math.PI / 180, Si = Math.cos(it), xi = Math.sin(it);
|
|
1187
1186
|
ve = ve * Si + xe * xi, xe = xe * Si - $ / D * xi;
|
|
1188
|
-
const
|
|
1187
|
+
const Rt = {
|
|
1189
1188
|
transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${xe}px)`,
|
|
1190
1189
|
transition: pe ? "transform .3s" : ""
|
|
1191
1190
|
};
|
|
1192
|
-
return y.value.name === e.CONTAIN.name && (
|
|
1191
|
+
return y.value.name === e.CONTAIN.name && (Rt.maxWidth = Rt.maxHeight = "100%"), Rt;
|
|
1193
1192
|
});
|
|
1194
1193
|
function q() {
|
|
1195
1194
|
ie(), n("close");
|
|
1196
1195
|
}
|
|
1197
1196
|
function F() {
|
|
1198
|
-
const D =
|
|
1197
|
+
const D = Ot.throttle(($) => {
|
|
1199
1198
|
switch ($.code) {
|
|
1200
1199
|
case We.esc:
|
|
1201
1200
|
i.closeOnPressEscape && q();
|
|
@@ -1216,7 +1215,7 @@ const ys = {
|
|
|
1216
1215
|
Fe("zoomOut");
|
|
1217
1216
|
break;
|
|
1218
1217
|
}
|
|
1219
|
-
}), V =
|
|
1218
|
+
}), V = Ot.throttle(($) => {
|
|
1220
1219
|
const he = $.deltaY || $.deltaX;
|
|
1221
1220
|
Fe(he < 0 ? "zoomIn" : "zoomOut", {
|
|
1222
1221
|
zoomRate: i.zoomRate,
|
|
@@ -1240,7 +1239,7 @@ const ys = {
|
|
|
1240
1239
|
if (g.value || D.button !== 0 || !c.value)
|
|
1241
1240
|
return;
|
|
1242
1241
|
m.value.enableTransition = !1;
|
|
1243
|
-
const { offsetX: V, offsetY: $ } = m.value, he = D.pageX, pe = D.pageY, ve =
|
|
1242
|
+
const { offsetX: V, offsetY: $ } = m.value, he = D.pageX, pe = D.pageY, ve = Ot.throttle((it) => {
|
|
1244
1243
|
m.value = {
|
|
1245
1244
|
...m.value,
|
|
1246
1245
|
offsetX: V + it.pageX - he,
|
|
@@ -1266,15 +1265,15 @@ const ys = {
|
|
|
1266
1265
|
const D = t(e), V = Object.values(e), $ = y.value.name, pe = ((V == null ? void 0 : V.findIndex((ve) => ve.name === $)) + 1) % D.length;
|
|
1267
1266
|
y.value = e[D[pe]], bi();
|
|
1268
1267
|
}
|
|
1269
|
-
function
|
|
1268
|
+
function Dt(D) {
|
|
1270
1269
|
const V = i.urlList.length;
|
|
1271
1270
|
p.value = (D + V) % V;
|
|
1272
1271
|
}
|
|
1273
1272
|
function Ti() {
|
|
1274
|
-
b.value && !i.infinite ||
|
|
1273
|
+
b.value && !i.infinite || Dt(p.value - 1);
|
|
1275
1274
|
}
|
|
1276
1275
|
function Ei() {
|
|
1277
|
-
B.value && !i.infinite ||
|
|
1276
|
+
B.value && !i.infinite || Dt(p.value + 1);
|
|
1278
1277
|
}
|
|
1279
1278
|
function Fe(D, V = {}) {
|
|
1280
1279
|
if (g.value)
|
|
@@ -1306,7 +1305,7 @@ const ys = {
|
|
|
1306
1305
|
m.value.enableTransition = xe;
|
|
1307
1306
|
}
|
|
1308
1307
|
return at(O, () => {
|
|
1309
|
-
|
|
1308
|
+
ai(() => {
|
|
1310
1309
|
const D = h.value[0];
|
|
1311
1310
|
D != null && D.complete || (g.value = !0);
|
|
1312
1311
|
});
|
|
@@ -1319,7 +1318,7 @@ const ys = {
|
|
|
1319
1318
|
/**
|
|
1320
1319
|
* @description manually switch image
|
|
1321
1320
|
*/
|
|
1322
|
-
setActiveItem:
|
|
1321
|
+
setActiveItem: Dt
|
|
1323
1322
|
}), (D, V) => (N(), De(vn, { to: "body" }, [
|
|
1324
1323
|
K(mn, {
|
|
1325
1324
|
name: "viewer-fade",
|
|
@@ -1367,7 +1366,7 @@ const ys = {
|
|
|
1367
1366
|
),
|
|
1368
1367
|
ae(" ARROW "),
|
|
1369
1368
|
w.value ? ae("v-if", !0) : (N(), W(
|
|
1370
|
-
|
|
1369
|
+
Zt,
|
|
1371
1370
|
{ key: 0 },
|
|
1372
1371
|
[
|
|
1373
1372
|
j(
|
|
@@ -1500,7 +1499,7 @@ const ys = {
|
|
|
1500
1499
|
},
|
|
1501
1500
|
[
|
|
1502
1501
|
(N(!0), W(
|
|
1503
|
-
|
|
1502
|
+
Zt,
|
|
1504
1503
|
null,
|
|
1505
1504
|
cr(D.urlList, ($, he) => fr((N(), W("img", {
|
|
1506
1505
|
ref_for: !0,
|
|
@@ -1513,7 +1512,7 @@ const ys = {
|
|
|
1513
1512
|
onLoad: oe,
|
|
1514
1513
|
onError: le,
|
|
1515
1514
|
onMousedown: ke
|
|
1516
|
-
}, null, 46,
|
|
1515
|
+
}, null, 46, _s)), [
|
|
1517
1516
|
[hr, he === p.value]
|
|
1518
1517
|
])),
|
|
1519
1518
|
128
|
|
@@ -1534,7 +1533,7 @@ const ys = {
|
|
|
1534
1533
|
})
|
|
1535
1534
|
]));
|
|
1536
1535
|
}
|
|
1537
|
-
}),
|
|
1536
|
+
}), ks = et(Cs);
|
|
1538
1537
|
function Ui(o, a) {
|
|
1539
1538
|
var r = Object.keys(o);
|
|
1540
1539
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1598,19 +1597,19 @@ function S(o, a) {
|
|
|
1598
1597
|
}
|
|
1599
1598
|
}), Object.defineProperty(o, "prototype", {
|
|
1600
1599
|
writable: !1
|
|
1601
|
-
}), a &&
|
|
1600
|
+
}), a && Qt(o, a);
|
|
1602
1601
|
}
|
|
1603
1602
|
function I(o) {
|
|
1604
1603
|
return I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
1605
1604
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
1606
1605
|
}, I(o);
|
|
1607
1606
|
}
|
|
1608
|
-
function
|
|
1609
|
-
return
|
|
1607
|
+
function Qt(o, a) {
|
|
1608
|
+
return Qt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
1610
1609
|
return t.__proto__ = e, t;
|
|
1611
|
-
},
|
|
1610
|
+
}, Qt(o, a);
|
|
1612
1611
|
}
|
|
1613
|
-
function
|
|
1612
|
+
function bs() {
|
|
1614
1613
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1615
1614
|
return !1;
|
|
1616
1615
|
if (typeof Proxy == "function")
|
|
@@ -1635,7 +1634,7 @@ function ci(o, a) {
|
|
|
1635
1634
|
return v(o);
|
|
1636
1635
|
}
|
|
1637
1636
|
function x(o) {
|
|
1638
|
-
var a =
|
|
1637
|
+
var a = bs();
|
|
1639
1638
|
return function() {
|
|
1640
1639
|
var t = I(o), e;
|
|
1641
1640
|
if (a) {
|
|
@@ -1646,14 +1645,14 @@ function x(o) {
|
|
|
1646
1645
|
return ci(this, e);
|
|
1647
1646
|
};
|
|
1648
1647
|
}
|
|
1649
|
-
function
|
|
1648
|
+
function ws(o, a) {
|
|
1650
1649
|
for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = I(o), o !== null); )
|
|
1651
1650
|
;
|
|
1652
1651
|
return o;
|
|
1653
1652
|
}
|
|
1654
1653
|
function L() {
|
|
1655
1654
|
return typeof Reflect < "u" && Reflect.get ? L = Reflect.get.bind() : L = function(a, r, t) {
|
|
1656
|
-
var e =
|
|
1655
|
+
var e = ws(a, r);
|
|
1657
1656
|
if (e) {
|
|
1658
1657
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
1659
1658
|
return i.get ? i.get.call(arguments.length < 3 ? a : t) : i.value;
|
|
@@ -1661,38 +1660,38 @@ function L() {
|
|
|
1661
1660
|
}, L.apply(this, arguments);
|
|
1662
1661
|
}
|
|
1663
1662
|
function de(o) {
|
|
1664
|
-
return
|
|
1663
|
+
return Ts(o) || Es(o) || Ss(o) || xs();
|
|
1665
1664
|
}
|
|
1666
|
-
function
|
|
1665
|
+
function Ts(o) {
|
|
1667
1666
|
if (Array.isArray(o))
|
|
1668
|
-
return
|
|
1667
|
+
return ei(o);
|
|
1669
1668
|
}
|
|
1670
|
-
function
|
|
1669
|
+
function Es(o) {
|
|
1671
1670
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
1672
1671
|
return Array.from(o);
|
|
1673
1672
|
}
|
|
1674
|
-
function
|
|
1673
|
+
function Ss(o, a) {
|
|
1675
1674
|
if (o) {
|
|
1676
1675
|
if (typeof o == "string")
|
|
1677
|
-
return
|
|
1676
|
+
return ei(o, a);
|
|
1678
1677
|
var r = Object.prototype.toString.call(o).slice(8, -1);
|
|
1679
1678
|
if (r === "Object" && o.constructor && (r = o.constructor.name), r === "Map" || r === "Set")
|
|
1680
1679
|
return Array.from(o);
|
|
1681
1680
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
1682
|
-
return
|
|
1681
|
+
return ei(o, a);
|
|
1683
1682
|
}
|
|
1684
1683
|
}
|
|
1685
|
-
function
|
|
1684
|
+
function ei(o, a) {
|
|
1686
1685
|
(a == null || a > o.length) && (a = o.length);
|
|
1687
1686
|
for (var r = 0, t = new Array(a); r < a; r++)
|
|
1688
1687
|
t[r] = o[r];
|
|
1689
1688
|
return t;
|
|
1690
1689
|
}
|
|
1691
|
-
function
|
|
1690
|
+
function xs() {
|
|
1692
1691
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1693
1692
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1694
1693
|
}
|
|
1695
|
-
function
|
|
1694
|
+
function Is(o, a) {
|
|
1696
1695
|
if (typeof o != "object" || o === null)
|
|
1697
1696
|
return o;
|
|
1698
1697
|
var r = o[Symbol.toPrimitive];
|
|
@@ -1705,7 +1704,7 @@ function Ps(o, a) {
|
|
|
1705
1704
|
return (a === "string" ? String : Number)(o);
|
|
1706
1705
|
}
|
|
1707
1706
|
function Tn(o) {
|
|
1708
|
-
var a =
|
|
1707
|
+
var a = Is(o, "string");
|
|
1709
1708
|
return typeof a == "symbol" ? a : String(a);
|
|
1710
1709
|
}
|
|
1711
1710
|
var En = { exports: {} };
|
|
@@ -1821,37 +1820,37 @@ var En = { exports: {} };
|
|
|
1821
1820
|
})(En);
|
|
1822
1821
|
var Sn = En.exports;
|
|
1823
1822
|
const xn = /* @__PURE__ */ li(Sn);
|
|
1824
|
-
var
|
|
1823
|
+
var Ps = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Mt = {
|
|
1825
1824
|
info: "color: #525252; background-color: #90ee90;",
|
|
1826
1825
|
error: "color: #525252; background-color: red;",
|
|
1827
1826
|
warn: "color: #525252; background-color: yellow; "
|
|
1828
|
-
},
|
|
1827
|
+
}, Nt = "%c[xgplayer]", M = {
|
|
1829
1828
|
config: {
|
|
1830
|
-
debug:
|
|
1829
|
+
debug: Ps ? 3 : 0
|
|
1831
1830
|
},
|
|
1832
1831
|
logInfo: function(a) {
|
|
1833
1832
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1834
1833
|
e[i - 1] = arguments[i];
|
|
1835
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
1834
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [Nt, Mt.info, a].concat(e));
|
|
1836
1835
|
},
|
|
1837
1836
|
logWarn: function(a) {
|
|
1838
1837
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
1839
1838
|
e[i - 1] = arguments[i];
|
|
1840
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
1839
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [Nt, Mt.warn, a].concat(e));
|
|
1841
1840
|
},
|
|
1842
1841
|
logError: function(a) {
|
|
1843
1842
|
var r;
|
|
1844
1843
|
if (!(this.config.debug < 1)) {
|
|
1845
1844
|
for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
1846
1845
|
i[n - 1] = arguments[n];
|
|
1847
|
-
(r = console)[t].apply(r, [
|
|
1846
|
+
(r = console)[t].apply(r, [Nt, Mt.error, a].concat(i));
|
|
1848
1847
|
}
|
|
1849
1848
|
}
|
|
1850
1849
|
};
|
|
1851
|
-
function
|
|
1850
|
+
function Ls(o) {
|
|
1852
1851
|
o.logInfo = M.logInfo.bind(o), o.logWarn = M.logWarn.bind(o), o.logError = M.logError.bind(o);
|
|
1853
1852
|
}
|
|
1854
|
-
var
|
|
1853
|
+
var As = /* @__PURE__ */ function() {
|
|
1855
1854
|
function o(a) {
|
|
1856
1855
|
T(this, o), this.bufferedList = a;
|
|
1857
1856
|
}
|
|
@@ -2097,7 +2096,7 @@ f.setStyleFromCsstext = function(o, a) {
|
|
|
2097
2096
|
o.style[t] = a[t];
|
|
2098
2097
|
});
|
|
2099
2098
|
};
|
|
2100
|
-
function
|
|
2099
|
+
function Ds(o, a) {
|
|
2101
2100
|
for (var r = 0, t = a.length; r < t; r++)
|
|
2102
2101
|
if (o.indexOf(a[r]) > -1)
|
|
2103
2102
|
return !0;
|
|
@@ -2111,7 +2110,7 @@ f.filterStyleFromText = function(o) {
|
|
|
2111
2110
|
return t.map(function(n) {
|
|
2112
2111
|
if (n) {
|
|
2113
2112
|
var s = n.split(":");
|
|
2114
|
-
s.length > 1 && (
|
|
2113
|
+
s.length > 1 && (Ds(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2115
2114
|
}
|
|
2116
2115
|
}), o.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2117
2116
|
o.style[n] = i[n];
|
|
@@ -2176,7 +2175,7 @@ f.getBuffered2 = function(o) {
|
|
|
2176
2175
|
}
|
|
2177
2176
|
else
|
|
2178
2177
|
e = r;
|
|
2179
|
-
return new
|
|
2178
|
+
return new As(e);
|
|
2180
2179
|
};
|
|
2181
2180
|
f.getEventPos = function(o) {
|
|
2182
2181
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2300,7 +2299,7 @@ function In(o) {
|
|
|
2300
2299
|
var a = re(o);
|
|
2301
2300
|
return o !== null && (a === "object" || a === "function");
|
|
2302
2301
|
}
|
|
2303
|
-
function
|
|
2302
|
+
function Rs(o, a, r) {
|
|
2304
2303
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2305
2304
|
if (typeof o != "function")
|
|
2306
2305
|
throw new TypeError("Expected a function");
|
|
@@ -2359,21 +2358,21 @@ function Os(o, a, r) {
|
|
|
2359
2358
|
}
|
|
2360
2359
|
return q.cancel = z, q.flush = A, q.pending = ee, q;
|
|
2361
2360
|
}
|
|
2362
|
-
function
|
|
2361
|
+
function Os(o, a, r) {
|
|
2363
2362
|
var t = !0, e = !0;
|
|
2364
2363
|
if (typeof o != "function")
|
|
2365
2364
|
throw new TypeError("Expected a function");
|
|
2366
|
-
return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
2365
|
+
return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Rs(o, a, {
|
|
2367
2366
|
leading: t,
|
|
2368
2367
|
trailing: e,
|
|
2369
2368
|
maxWait: a
|
|
2370
2369
|
});
|
|
2371
2370
|
}
|
|
2372
|
-
function
|
|
2371
|
+
function Ms() {
|
|
2373
2372
|
var o = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
2374
2373
|
return o === "zh-cn" && (o = "zh"), o;
|
|
2375
2374
|
}
|
|
2376
|
-
function
|
|
2375
|
+
function Ns(o, a, r) {
|
|
2377
2376
|
if (o) {
|
|
2378
2377
|
var t = o.getAttribute(r);
|
|
2379
2378
|
return !!(t && t === a && (o.tagName === "VIDEO" || o.tagName === "AUDIO"));
|
|
@@ -2382,7 +2381,7 @@ function Fs(o, a, r) {
|
|
|
2382
2381
|
var zi = {
|
|
2383
2382
|
android: /(Android)\s([\d.]+)/,
|
|
2384
2383
|
ios: /(Version)\/([\d.]+)/
|
|
2385
|
-
},
|
|
2384
|
+
}, Fs = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], R = {
|
|
2386
2385
|
get device() {
|
|
2387
2386
|
var o = R.os;
|
|
2388
2387
|
return o.isPc ? "pc" : "mobile";
|
|
@@ -2445,7 +2444,7 @@ var zi = {
|
|
|
2445
2444
|
if (this.supportResult)
|
|
2446
2445
|
return this.supportResult;
|
|
2447
2446
|
var r = document.createElement("video");
|
|
2448
|
-
return typeof r.canPlayType == "function" &&
|
|
2447
|
+
return typeof r.canPlayType == "function" && Fs.map(function(t) {
|
|
2449
2448
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (a.isSupport = !0, a.mime += "||".concat(t));
|
|
2450
2449
|
}), this.supportResult = a, r = null, a;
|
|
2451
2450
|
},
|
|
@@ -2484,7 +2483,7 @@ var zi = {
|
|
|
2484
2483
|
return Promise.resolve(r);
|
|
2485
2484
|
}
|
|
2486
2485
|
}
|
|
2487
|
-
},
|
|
2486
|
+
}, ti = "3.0.18", ji = {
|
|
2488
2487
|
1: "media",
|
|
2489
2488
|
2: "media",
|
|
2490
2489
|
3: "media",
|
|
@@ -2514,7 +2513,7 @@ var zi = {
|
|
|
2514
2513
|
var e = r.mediaError ? r.mediaError : a.media.error || {}, i = a.duration, n = a.currentTime, s = a.ended, l = a.src, u = a.currentSrc, c = a.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
|
|
2515
2514
|
Wi[g] && (g = Wi[g]);
|
|
2516
2515
|
var p = {
|
|
2517
|
-
playerVersion:
|
|
2516
|
+
playerVersion: ti,
|
|
2518
2517
|
currentTime: n,
|
|
2519
2518
|
duration: i,
|
|
2520
2519
|
ended: s,
|
|
@@ -2533,33 +2532,33 @@ var zi = {
|
|
|
2533
2532
|
}), p;
|
|
2534
2533
|
} else if (arguments.length > 1) {
|
|
2535
2534
|
for (var y = {
|
|
2536
|
-
playerVersion:
|
|
2535
|
+
playerVersion: ti,
|
|
2537
2536
|
domain: document.domain
|
|
2538
2537
|
}, m = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
2539
2538
|
y[m[k]] = arguments[k];
|
|
2540
2539
|
return y.ex = t ? (t[arguments[0]] || {}).msg : "", y;
|
|
2541
2540
|
}
|
|
2542
2541
|
}
|
|
2543
|
-
), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error",
|
|
2542
|
+
), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", xt = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay", Bs = "canplaythrough", Me = "durationchange", Pn = "volumechange", Se = "loadeddata", Hs = "loadedmetadata", Ln = "ratechange", An = "progress", hi = "loadstart", ze = "emptied", Us = "stalled", Vs = "suspend", zs = "abort", js = "bufferedChange", di = "focus", Dn = "blur", gi = "ready", Rn = "urlNull", Ue = "autoplay_started", pi = "autoplay_was_prevented", It = "complete", yt = "replay", vi = "destroy", Pt = "urlchange", ii = "download_speed_change", On = "leaveplayer", Mn = "enterplayer", Nn = "loading", be = "fullscreen_change", _t = "cssFullscreen_change", Ct = "mini_state_change", mi = "definition_change", Ws = "before_definition_change", ni = "after_definition_change", Gs = "SEI_PARSED", Ks = "retry", Re = "video_resize", ri = "pip_change", Fn = "rotate", Bn = "screenShot", kt = "playnext", Hn = "shortcut", Un = "xglog", bt = "user_action", Lt = "reset", Vn = "source_error", zn = "source_success", Ys = "switch_subtitle", jn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Wn = {
|
|
2544
2543
|
STATS_INFO: "stats_info",
|
|
2545
2544
|
STATS_DOWNLOAD: "stats_download",
|
|
2546
2545
|
STATS_RESET: "stats_reset"
|
|
2547
2546
|
}, Gn = "fps_stuck";
|
|
2548
|
-
const
|
|
2547
|
+
const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2549
2548
|
__proto__: null,
|
|
2550
|
-
ABORT:
|
|
2551
|
-
AFTER_DEFINITION_CHANGE:
|
|
2549
|
+
ABORT: zs,
|
|
2550
|
+
AFTER_DEFINITION_CHANGE: ni,
|
|
2552
2551
|
AUTOPLAY_PREVENTED: pi,
|
|
2553
2552
|
AUTOPLAY_STARTED: Ue,
|
|
2554
|
-
BEFORE_DEFINITION_CHANGE:
|
|
2555
|
-
BUFFER_CHANGE:
|
|
2553
|
+
BEFORE_DEFINITION_CHANGE: Ws,
|
|
2554
|
+
BUFFER_CHANGE: js,
|
|
2556
2555
|
CANPLAY: Te,
|
|
2557
|
-
CANPLAY_THROUGH:
|
|
2558
|
-
COMPLETE:
|
|
2556
|
+
CANPLAY_THROUGH: Bs,
|
|
2557
|
+
COMPLETE: It,
|
|
2559
2558
|
CSS_FULLSCREEN_CHANGE: _t,
|
|
2560
2559
|
DEFINITION_CHANGE: mi,
|
|
2561
2560
|
DESTROY: vi,
|
|
2562
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
2561
|
+
DOWNLOAD_SPEED_CHANGE: ii,
|
|
2563
2562
|
DURATION_CHANGE: Me,
|
|
2564
2563
|
EMPTIED: ze,
|
|
2565
2564
|
ENDED: Ve,
|
|
@@ -2569,12 +2568,12 @@ const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2569
2568
|
FULLSCREEN_CHANGE: be,
|
|
2570
2569
|
LEAVE_PLAYER: On,
|
|
2571
2570
|
LOADED_DATA: Se,
|
|
2572
|
-
LOADED_METADATA:
|
|
2571
|
+
LOADED_METADATA: Hs,
|
|
2573
2572
|
LOADING: Nn,
|
|
2574
2573
|
LOAD_START: hi,
|
|
2575
2574
|
MINI_STATE_CHANGE: Ct,
|
|
2576
2575
|
PAUSE: tt,
|
|
2577
|
-
PIP_CHANGE:
|
|
2576
|
+
PIP_CHANGE: ri,
|
|
2578
2577
|
PLAY: fe,
|
|
2579
2578
|
PLAYER_BLUR: Dn,
|
|
2580
2579
|
PLAYER_FOCUS: di,
|
|
@@ -2584,22 +2583,22 @@ const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2584
2583
|
RATE_CHANGE: Ln,
|
|
2585
2584
|
READY: gi,
|
|
2586
2585
|
REPLAY: yt,
|
|
2587
|
-
RESET:
|
|
2588
|
-
RETRY:
|
|
2586
|
+
RESET: Lt,
|
|
2587
|
+
RETRY: Ks,
|
|
2589
2588
|
ROTATE: Fn,
|
|
2590
2589
|
SCREEN_SHOT: Bn,
|
|
2591
2590
|
SEEKED: Ee,
|
|
2592
|
-
SEEKING:
|
|
2593
|
-
SEI_PARSED:
|
|
2591
|
+
SEEKING: xt,
|
|
2592
|
+
SEI_PARSED: Gs,
|
|
2594
2593
|
SHORTCUT: Hn,
|
|
2595
2594
|
SOURCE_ERROR: Vn,
|
|
2596
2595
|
SOURCE_SUCCESS: zn,
|
|
2597
|
-
STALLED:
|
|
2596
|
+
STALLED: Us,
|
|
2598
2597
|
STATS_EVENTS: Wn,
|
|
2599
|
-
SUSPEND:
|
|
2600
|
-
SWITCH_SUBTITLE:
|
|
2598
|
+
SUSPEND: Vs,
|
|
2599
|
+
SWITCH_SUBTITLE: Ys,
|
|
2601
2600
|
TIME_UPDATE: ce,
|
|
2602
|
-
URL_CHANGE:
|
|
2601
|
+
URL_CHANGE: Pt,
|
|
2603
2602
|
URL_NULL: Rn,
|
|
2604
2603
|
USER_ACTION: bt,
|
|
2605
2604
|
VIDEO_EVENTS: jn,
|
|
@@ -2608,10 +2607,10 @@ const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2608
2607
|
WAITING: ut,
|
|
2609
2608
|
XGLOG: Un
|
|
2610
2609
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2611
|
-
function
|
|
2610
|
+
function Ft(o, a) {
|
|
2612
2611
|
!this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
|
|
2613
2612
|
}
|
|
2614
|
-
function
|
|
2613
|
+
function Xs(o, a) {
|
|
2615
2614
|
return function(r, t) {
|
|
2616
2615
|
var e = {
|
|
2617
2616
|
player: a,
|
|
@@ -2636,17 +2635,17 @@ function qs(o, a) {
|
|
|
2636
2635
|
a._rate = a.media && a.media.playbackRate;
|
|
2637
2636
|
}
|
|
2638
2637
|
if (o === "durationchange" && (a._duration = a.media.duration), o === "volumechange" && (e.isMutedChange = a._lastMuted !== a.muted, a._lastMuted = a.muted), o === "error" && (e.error = t || a.video.error), a.mediaEventMiddleware[o]) {
|
|
2639
|
-
var n =
|
|
2638
|
+
var n = Ft.bind(a, o, e);
|
|
2640
2639
|
try {
|
|
2641
2640
|
a.mediaEventMiddleware[o].call(a, e, n);
|
|
2642
2641
|
} catch (s) {
|
|
2643
|
-
throw
|
|
2642
|
+
throw Ft.call(a, o, e), s;
|
|
2644
2643
|
}
|
|
2645
2644
|
} else
|
|
2646
|
-
|
|
2645
|
+
Ft.call(a, o, e);
|
|
2647
2646
|
};
|
|
2648
2647
|
}
|
|
2649
|
-
var
|
|
2648
|
+
var qs = /* @__PURE__ */ function(o) {
|
|
2650
2649
|
S(r, o);
|
|
2651
2650
|
var a = x(r);
|
|
2652
2651
|
function r(t) {
|
|
@@ -2690,7 +2689,7 @@ var Zs = /* @__PURE__ */ function(o) {
|
|
|
2690
2689
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
2691
2690
|
this._evHandlers || (this._evHandlers = jn.map(function(n) {
|
|
2692
2691
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
2693
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
2692
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Xs(n, e));
|
|
2694
2693
|
})), this._evHandlers.forEach(function(n) {
|
|
2695
2694
|
var s = Object.keys(n)[0];
|
|
2696
2695
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3000,7 +2999,7 @@ var Zs = /* @__PURE__ */ function(o) {
|
|
|
3000
2999
|
},
|
|
3001
3000
|
set: function(e) {
|
|
3002
3001
|
if (this.media) {
|
|
3003
|
-
if (this.emit(
|
|
3002
|
+
if (this.emit(Pt, e), this.emit(ut), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
3004
3003
|
this.onWaiting();
|
|
3005
3004
|
return;
|
|
3006
3005
|
}
|
|
@@ -3064,7 +3063,7 @@ var Zs = /* @__PURE__ */ function(o) {
|
|
|
3064
3063
|
L(I(r.prototype), "removeAllListeners", this).call(this);
|
|
3065
3064
|
}
|
|
3066
3065
|
}]), r;
|
|
3067
|
-
}(xn),
|
|
3066
|
+
}(xn), Zs = /* @__PURE__ */ function() {
|
|
3068
3067
|
function o() {
|
|
3069
3068
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3070
3069
|
name: "xgplayer",
|
|
@@ -3240,7 +3239,7 @@ function we(o, a, r) {
|
|
|
3240
3239
|
} else
|
|
3241
3240
|
return r.call.apply(r, [o, o].concat(e));
|
|
3242
3241
|
}
|
|
3243
|
-
function
|
|
3242
|
+
function Bt(o, a) {
|
|
3244
3243
|
M.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
|
|
3245
3244
|
}
|
|
3246
3245
|
var Oe = /* @__PURE__ */ function() {
|
|
@@ -3307,7 +3306,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3307
3306
|
value: function(r, t) {
|
|
3308
3307
|
var e = this;
|
|
3309
3308
|
if (!r || !t || !this.player) {
|
|
3310
|
-
|
|
3309
|
+
Bt(this.pluginName, "plugin.on(event, callback)");
|
|
3311
3310
|
return;
|
|
3312
3311
|
}
|
|
3313
3312
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3319,7 +3318,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3319
3318
|
value: function(r, t) {
|
|
3320
3319
|
var e = this;
|
|
3321
3320
|
if (!r || !t || !this.player) {
|
|
3322
|
-
|
|
3321
|
+
Bt(this.pluginName, "plugin.once(event, callback)");
|
|
3323
3322
|
return;
|
|
3324
3323
|
}
|
|
3325
3324
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3331,7 +3330,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3331
3330
|
value: function(r, t) {
|
|
3332
3331
|
var e = this;
|
|
3333
3332
|
if (!r || !t || !this.player) {
|
|
3334
|
-
|
|
3333
|
+
Bt(this.pluginName, "plugin.off(event, callback)");
|
|
3335
3334
|
return;
|
|
3336
3335
|
}
|
|
3337
3336
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3428,40 +3427,40 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3428
3427
|
return "pluginName";
|
|
3429
3428
|
}
|
|
3430
3429
|
}]), o;
|
|
3431
|
-
}(),
|
|
3430
|
+
}(), Js = 9;
|
|
3432
3431
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
3433
3432
|
var Ge = Element.prototype;
|
|
3434
3433
|
Ge.matches = Ge.matchesSelector || Ge.mozMatchesSelector || Ge.msMatchesSelector || Ge.oMatchesSelector || Ge.webkitMatchesSelector;
|
|
3435
3434
|
}
|
|
3436
|
-
function
|
|
3437
|
-
for (; o && o.nodeType !==
|
|
3435
|
+
function Qs(o, a) {
|
|
3436
|
+
for (; o && o.nodeType !== Js; ) {
|
|
3438
3437
|
if (typeof o.matches == "function" && o.matches(a))
|
|
3439
3438
|
return o;
|
|
3440
3439
|
o = o.parentNode;
|
|
3441
3440
|
}
|
|
3442
3441
|
}
|
|
3443
|
-
var
|
|
3444
|
-
function
|
|
3445
|
-
var i =
|
|
3442
|
+
var ea = Qs, ta = ea;
|
|
3443
|
+
function Ht(o, a, r, t, e) {
|
|
3444
|
+
var i = na.apply(this, arguments);
|
|
3446
3445
|
return o.addEventListener(r, i, e), {
|
|
3447
3446
|
destroy: function() {
|
|
3448
3447
|
o.removeEventListener(r, i, e);
|
|
3449
3448
|
}
|
|
3450
3449
|
};
|
|
3451
3450
|
}
|
|
3452
|
-
function
|
|
3453
|
-
return typeof o.addEventListener == "function" ?
|
|
3454
|
-
return
|
|
3451
|
+
function ia(o, a, r, t, e) {
|
|
3452
|
+
return typeof o.addEventListener == "function" ? Ht.apply(null, arguments) : typeof r == "function" ? Ht.bind(null, document).apply(null, arguments) : (typeof o == "string" && (o = document.querySelectorAll(o)), Array.prototype.map.call(o, function(i) {
|
|
3453
|
+
return Ht(i, a, r, t, e);
|
|
3455
3454
|
}));
|
|
3456
3455
|
}
|
|
3457
|
-
function
|
|
3456
|
+
function na(o, a, r, t) {
|
|
3458
3457
|
return function(e) {
|
|
3459
|
-
e.delegateTarget =
|
|
3458
|
+
e.delegateTarget = ta(e.target, a), e.delegateTarget && t.call(o, e);
|
|
3460
3459
|
};
|
|
3461
3460
|
}
|
|
3462
|
-
var
|
|
3463
|
-
const qi = /* @__PURE__ */ li(
|
|
3464
|
-
var
|
|
3461
|
+
var ra = ia;
|
|
3462
|
+
const qi = /* @__PURE__ */ li(ra);
|
|
3463
|
+
var sa = {
|
|
3465
3464
|
CONTROLS: "controls",
|
|
3466
3465
|
ROOT: "root"
|
|
3467
3466
|
}, G = {
|
|
@@ -3478,13 +3477,13 @@ var aa = {
|
|
|
3478
3477
|
ICON_DISABLE: "xg-icon-disable",
|
|
3479
3478
|
ICON_HIDE: "xg-icon-hide"
|
|
3480
3479
|
};
|
|
3481
|
-
function
|
|
3480
|
+
function Ut(o) {
|
|
3482
3481
|
return o ? o.indexOf && /^(?:http|data:|\/)/.test(o) : !1;
|
|
3483
3482
|
}
|
|
3484
|
-
function
|
|
3483
|
+
function aa(o, a) {
|
|
3485
3484
|
return re(o) === "object" && o.class && typeof o.class == "string" ? "".concat(a, " ").concat(o.class) : a;
|
|
3486
3485
|
}
|
|
3487
|
-
function
|
|
3486
|
+
function oa(o, a) {
|
|
3488
3487
|
return re(o) === "object" && o.attr && re(o.attr) === "object" && Object.keys(o.attr).map(function(r) {
|
|
3489
3488
|
a[r] = o.attr[r];
|
|
3490
3489
|
}), a;
|
|
@@ -3495,8 +3494,8 @@ function Ji(o, a) {
|
|
|
3495
3494
|
return f.addClass(o, r), Object.keys(t).map(function(n) {
|
|
3496
3495
|
o.setAttribute(n, t[n]);
|
|
3497
3496
|
}), o;
|
|
3498
|
-
if (
|
|
3499
|
-
return t.src =
|
|
3497
|
+
if (Ut(o) || Ut(o.url))
|
|
3498
|
+
return t.src = Ut(o) ? o : o.url || "", i = f.createDom(o.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
3500
3499
|
if (typeof o == "function")
|
|
3501
3500
|
try {
|
|
3502
3501
|
return i = o(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -3507,14 +3506,14 @@ function Ji(o, a) {
|
|
|
3507
3506
|
}
|
|
3508
3507
|
return typeof o == "string" ? f.createDomFromHtml(o, t, r) : (M.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3509
3508
|
}
|
|
3510
|
-
function
|
|
3509
|
+
function la(o, a) {
|
|
3511
3510
|
var r = a.config.icons || a.playerConfig.icons;
|
|
3512
3511
|
Object.keys(o).map(function(t) {
|
|
3513
3512
|
var e = o[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
3514
|
-
r && r[t] && (i =
|
|
3513
|
+
r && r[t] && (i = aa(r[t], i), n = oa(r[t], n), s = Ji(r[t], t, i, n, a.pluginName)), !s && e && (s = Ji(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
|
|
3515
3514
|
});
|
|
3516
3515
|
}
|
|
3517
|
-
function
|
|
3516
|
+
function ua(o, a) {
|
|
3518
3517
|
Object.keys(o).map(function(r) {
|
|
3519
3518
|
Object.defineProperty(a.langText, r, {
|
|
3520
3519
|
get: function() {
|
|
@@ -3538,9 +3537,9 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3538
3537
|
var i = e.root, n = null;
|
|
3539
3538
|
this.icons = {}, this.root = null, this.parent = null;
|
|
3540
3539
|
var s = this.registerIcons() || {};
|
|
3541
|
-
|
|
3540
|
+
la(s, this), this.langText = {};
|
|
3542
3541
|
var l = this.registerLanguageTexts() || {};
|
|
3543
|
-
|
|
3542
|
+
ua(l, this);
|
|
3544
3543
|
var u = "";
|
|
3545
3544
|
try {
|
|
3546
3545
|
u = this.render();
|
|
@@ -3809,7 +3808,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3809
3808
|
}, {
|
|
3810
3809
|
key: "ROOT_TYPES",
|
|
3811
3810
|
get: function() {
|
|
3812
|
-
return
|
|
3811
|
+
return sa;
|
|
3813
3812
|
}
|
|
3814
3813
|
}, {
|
|
3815
3814
|
key: "POSITIONS",
|
|
@@ -3817,7 +3816,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3817
3816
|
return G;
|
|
3818
3817
|
}
|
|
3819
3818
|
}]), r;
|
|
3820
|
-
}(Oe),
|
|
3819
|
+
}(Oe), ca = /* @__PURE__ */ function() {
|
|
3821
3820
|
function o() {
|
|
3822
3821
|
var a = this;
|
|
3823
3822
|
if (T(this, o), _(this, "__trigger", function(r) {
|
|
@@ -3827,7 +3826,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3827
3826
|
a.__runHandler(r[e].target);
|
|
3828
3827
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
3829
3828
|
try {
|
|
3830
|
-
this.observer = new window.ResizeObserver(
|
|
3829
|
+
this.observer = new window.ResizeObserver(Os(this.__trigger, 100, {
|
|
3831
3830
|
trailing: !0
|
|
3832
3831
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
3833
3832
|
} catch (r) {
|
|
@@ -3882,17 +3881,17 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3882
3881
|
}
|
|
3883
3882
|
}]), o;
|
|
3884
3883
|
}(), st = null;
|
|
3885
|
-
function
|
|
3886
|
-
return st || (st = new
|
|
3884
|
+
function fa(o, a) {
|
|
3885
|
+
return st || (st = new ca()), st.addObserver(o, a), st;
|
|
3887
3886
|
}
|
|
3888
|
-
function
|
|
3887
|
+
function ha(o, a) {
|
|
3889
3888
|
st.unObserver(o, a);
|
|
3890
3889
|
}
|
|
3891
3890
|
var te = {
|
|
3892
3891
|
pluginGroup: {},
|
|
3893
3892
|
init: function(a) {
|
|
3894
3893
|
var r = a._pluginInfoId;
|
|
3895
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver &&
|
|
3894
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && fa(a.root, function() {
|
|
3896
3895
|
a.resize();
|
|
3897
3896
|
}), this.pluginGroup[r] = {
|
|
3898
3897
|
_originalOptions: a.config || {},
|
|
@@ -4078,7 +4077,7 @@ var te = {
|
|
|
4078
4077
|
destroy: function(a) {
|
|
4079
4078
|
var r = a._pluginInfoId;
|
|
4080
4079
|
if (this.pluginGroup[r]) {
|
|
4081
|
-
|
|
4080
|
+
ha(a.root);
|
|
4082
4081
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4083
4082
|
var n = i[e];
|
|
4084
4083
|
this.unRegister(r, n);
|
|
@@ -4164,7 +4163,7 @@ function Qi() {
|
|
|
4164
4163
|
ignores: [],
|
|
4165
4164
|
whitelist: [],
|
|
4166
4165
|
inactive: 3e3,
|
|
4167
|
-
lang:
|
|
4166
|
+
lang: Ms(),
|
|
4168
4167
|
controls: !0,
|
|
4169
4168
|
marginControls: !1,
|
|
4170
4169
|
fullscreenTarget: null,
|
|
@@ -4200,7 +4199,7 @@ function Qi() {
|
|
|
4200
4199
|
}
|
|
4201
4200
|
};
|
|
4202
4201
|
}
|
|
4203
|
-
var
|
|
4202
|
+
var da = function(a, r) {
|
|
4204
4203
|
var t, e, i;
|
|
4205
4204
|
r.preset && r.options ? i = new r.preset(r.options, a.config) : i = new r({}, a.config);
|
|
4206
4205
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
|
|
@@ -4209,7 +4208,7 @@ var ga = function(a, r) {
|
|
|
4209
4208
|
});
|
|
4210
4209
|
var y = a.config.i18n || [];
|
|
4211
4210
|
p.push.apply(p, de(y)), a.config.i18n = p;
|
|
4212
|
-
},
|
|
4211
|
+
}, ga = /* @__PURE__ */ function(o) {
|
|
4213
4212
|
S(r, o);
|
|
4214
4213
|
var a = x(r);
|
|
4215
4214
|
function r() {
|
|
@@ -4370,7 +4369,7 @@ var ga = function(a, r) {
|
|
|
4370
4369
|
};
|
|
4371
4370
|
}
|
|
4372
4371
|
}]), r;
|
|
4373
|
-
}(U),
|
|
4372
|
+
}(U), pa = {
|
|
4374
4373
|
LANG: "en",
|
|
4375
4374
|
TEXT: {
|
|
4376
4375
|
ERROR_TYPES: {
|
|
@@ -4465,7 +4464,7 @@ function $n() {
|
|
|
4465
4464
|
ue.textKeys[o] = o;
|
|
4466
4465
|
});
|
|
4467
4466
|
}
|
|
4468
|
-
function
|
|
4467
|
+
function va(o, a) {
|
|
4469
4468
|
var r = [];
|
|
4470
4469
|
if (a || (a = ue), !!a.lang) {
|
|
4471
4470
|
f.typeOf(o) !== "Array" ? r = Object.keys(o).map(function(i) {
|
|
@@ -4488,7 +4487,7 @@ function yi(o, a) {
|
|
|
4488
4487
|
r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), $n();
|
|
4489
4488
|
}
|
|
4490
4489
|
}
|
|
4491
|
-
function
|
|
4490
|
+
function ma(o) {
|
|
4492
4491
|
var a, r = {
|
|
4493
4492
|
lang: {},
|
|
4494
4493
|
langKeys: [],
|
|
@@ -4497,7 +4496,7 @@ function ya(o) {
|
|
|
4497
4496
|
};
|
|
4498
4497
|
return ot(r.lang, ue.lang), (a = r.langKeys).push.apply(a, de(ue.langKeys)), ot(r.textKeys, ue.textKeys), r;
|
|
4499
4498
|
}
|
|
4500
|
-
yi(
|
|
4499
|
+
yi(pa);
|
|
4501
4500
|
var Qe = {
|
|
4502
4501
|
get textKeys() {
|
|
4503
4502
|
return ue.textKeys;
|
|
@@ -4511,9 +4510,9 @@ var Qe = {
|
|
|
4511
4510
|
o[a] = ue.lang[a];
|
|
4512
4511
|
}), ue.lang["zh-cn"] && (o.zh = ue.lang["zh-cn"] || {}), o;
|
|
4513
4512
|
},
|
|
4514
|
-
extend:
|
|
4513
|
+
extend: va,
|
|
4515
4514
|
use: yi,
|
|
4516
|
-
init:
|
|
4515
|
+
init: ma
|
|
4517
4516
|
}, H = {
|
|
4518
4517
|
INITIAL: 1,
|
|
4519
4518
|
READY: 2,
|
|
@@ -4523,7 +4522,7 @@ var Qe = {
|
|
|
4523
4522
|
RUNNING: 6,
|
|
4524
4523
|
ENDED: 7,
|
|
4525
4524
|
DESTROYED: 8
|
|
4526
|
-
}, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {},
|
|
4525
|
+
}, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Vt = null, Xn = /* @__PURE__ */ function(o) {
|
|
4527
4526
|
S(r, o);
|
|
4528
4527
|
var a = x(r);
|
|
4529
4528
|
function r() {
|
|
@@ -4606,11 +4605,11 @@ var Qe = {
|
|
|
4606
4605
|
}], [{
|
|
4607
4606
|
key: "getInstance",
|
|
4608
4607
|
value: function() {
|
|
4609
|
-
return
|
|
4608
|
+
return Vt || (Vt = new r()), Vt;
|
|
4610
4609
|
}
|
|
4611
4610
|
}]), r;
|
|
4612
4611
|
}(Sn.EventEmitter);
|
|
4613
|
-
function
|
|
4612
|
+
function ya(o) {
|
|
4614
4613
|
for (var a = Object.keys(se), r = 0; r < a.length; r++) {
|
|
4615
4614
|
var t = se[a[r]];
|
|
4616
4615
|
if (t.root === o)
|
|
@@ -4618,7 +4617,7 @@ function _a(o) {
|
|
|
4618
4617
|
}
|
|
4619
4618
|
return null;
|
|
4620
4619
|
}
|
|
4621
|
-
var
|
|
4620
|
+
var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /* @__PURE__ */ function(o) {
|
|
4622
4621
|
S(r, o);
|
|
4623
4622
|
var a = x(r);
|
|
4624
4623
|
function r(t) {
|
|
@@ -4648,7 +4647,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4648
4647
|
to: !1
|
|
4649
4648
|
}]
|
|
4650
4649
|
});
|
|
4651
|
-
var w =
|
|
4650
|
+
var w = Ns(k, e.playerId, He);
|
|
4652
4651
|
if (y || k && (k === e._fullscreenEl || w))
|
|
4653
4652
|
m(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4654
4653
|
else if (e.fullscreen) {
|
|
@@ -4668,7 +4667,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4668
4667
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4669
4668
|
}), _(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4670
4669
|
e.onFullscreenChange(p, !1);
|
|
4671
|
-
}), Kn(v(e),
|
|
4670
|
+
}), Kn(v(e), _a), e.config = i, e._pluginInfoId = f.generateSessionId(), Ls(v(e));
|
|
4672
4671
|
var n = e.constructor.defaultPreset;
|
|
4673
4672
|
if (e.config.presets.length) {
|
|
4674
4673
|
var s = e.config.presets.indexOf("default");
|
|
@@ -4697,7 +4696,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4697
4696
|
}, e._offsetInfo = {
|
|
4698
4697
|
currentTime: -1,
|
|
4699
4698
|
duration: 0
|
|
4700
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
4699
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4701
4700
|
isActiveLocked: !1
|
|
4702
4701
|
}, e.instManager = Pe;
|
|
4703
4702
|
var l = e._initDOM();
|
|
@@ -4729,7 +4728,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4729
4728
|
msg: "container id can't be empty"
|
|
4730
4729
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4731
4730
|
}
|
|
4732
|
-
var s =
|
|
4731
|
+
var s = ya(this.root);
|
|
4733
4732
|
s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(He, this.playerId), (e = Pe) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
|
|
4734
4733
|
var l = this.constructor.XgVideoProxy;
|
|
4735
4734
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -4739,7 +4738,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4739
4738
|
this.attachVideoEvents(c), this.media = c;
|
|
4740
4739
|
}
|
|
4741
4740
|
if (this.media.setAttribute(He, this.playerId), this.config.controls) {
|
|
4742
|
-
var h = this.config.controls.root || null, d = te.register(this,
|
|
4741
|
+
var h = this.config.controls.root || null, d = te.register(this, ga, {
|
|
4743
4742
|
root: h
|
|
4744
4743
|
});
|
|
4745
4744
|
this.controls = d;
|
|
@@ -4808,7 +4807,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4808
4807
|
M.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
|
|
4809
4808
|
var l = this.config.startTime;
|
|
4810
4809
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Te, this.canPlayFunc), (!this.hasStart || this.state < H.ATTACHED) && te.afterInit(this), this.hasStart = !0, this.setState(H.ATTACHED), f.setTimeout(this, function() {
|
|
4811
|
-
i.emit(
|
|
4810
|
+
i.emit(It);
|
|
4812
4811
|
}, 0);
|
|
4813
4812
|
}
|
|
4814
4813
|
}
|
|
@@ -4847,7 +4846,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
4847
4846
|
value: function() {
|
|
4848
4847
|
var e = this;
|
|
4849
4848
|
this.config.presets.forEach(function(i) {
|
|
4850
|
-
|
|
4849
|
+
da(e, i);
|
|
4851
4850
|
});
|
|
4852
4851
|
}
|
|
4853
4852
|
}, {
|
|
@@ -5079,11 +5078,11 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
5079
5078
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5080
5079
|
}, e));
|
|
5081
5080
|
l && l.then ? l.then(function() {
|
|
5082
|
-
n.emit(
|
|
5081
|
+
n.emit(ni, {
|
|
5083
5082
|
from: i,
|
|
5084
5083
|
to: e
|
|
5085
5084
|
});
|
|
5086
|
-
}) : this.emit(
|
|
5085
|
+
}) : this.emit(ni, {
|
|
5087
5086
|
from: i,
|
|
5088
5087
|
to: e
|
|
5089
5088
|
});
|
|
@@ -5101,7 +5100,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
5101
5100
|
var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, h, d, g];
|
|
5102
5101
|
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(y) {
|
|
5103
5102
|
e.removeClass(y);
|
|
5104
|
-
}), this.addClass(C.NO_START), this.emit(
|
|
5103
|
+
}), this.addClass(C.NO_START), this.emit(Lt);
|
|
5105
5104
|
}
|
|
5106
5105
|
}, {
|
|
5107
5106
|
key: "reset",
|
|
@@ -5627,7 +5626,7 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
5627
5626
|
}, {
|
|
5628
5627
|
key: "version",
|
|
5629
5628
|
get: function() {
|
|
5630
|
-
return
|
|
5629
|
+
return ti;
|
|
5631
5630
|
}
|
|
5632
5631
|
}, {
|
|
5633
5632
|
key: "playerId",
|
|
@@ -5809,10 +5808,10 @@ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /
|
|
|
5809
5808
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
5810
5809
|
}
|
|
5811
5810
|
}]), r;
|
|
5812
|
-
}(
|
|
5813
|
-
_(
|
|
5814
|
-
_(
|
|
5815
|
-
|
|
5811
|
+
}(qs);
|
|
5812
|
+
_(At, "defaultPreset", null);
|
|
5813
|
+
_(At, "XgVideoProxy", null);
|
|
5814
|
+
At.instManager = Xn.getInstance();
|
|
5816
5815
|
function ne() {
|
|
5817
5816
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5818
5817
|
}
|
|
@@ -5824,7 +5823,7 @@ var Le = {
|
|
|
5824
5823
|
WAIT_END: "waitingEnd",
|
|
5825
5824
|
SEEK_START: "seekStart",
|
|
5826
5825
|
SEEK_END: "seekEnd"
|
|
5827
|
-
},
|
|
5826
|
+
}, Ca = /* @__PURE__ */ function(o) {
|
|
5828
5827
|
S(r, o);
|
|
5829
5828
|
var a = x(r);
|
|
5830
5829
|
function r() {
|
|
@@ -5883,11 +5882,11 @@ var Le = {
|
|
|
5883
5882
|
e.vt = ne(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
5884
5883
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
5885
5884
|
M.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Le.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
5886
|
-
}), this.on(
|
|
5885
|
+
}), this.on(xt, this._onSeeking), this.on(Ee, this._onSeeked), this.on(vi, function() {
|
|
5887
5886
|
e.endState("destroy");
|
|
5888
|
-
}), this.on(
|
|
5887
|
+
}), this.on(Pt, function() {
|
|
5889
5888
|
e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5890
|
-
}), this.on([fi, Te], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(
|
|
5889
|
+
}), this.on([fi, Te], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(Lt, function() {
|
|
5891
5890
|
M.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5892
5891
|
});
|
|
5893
5892
|
}
|
|
@@ -5975,13 +5974,13 @@ var Le = {
|
|
|
5975
5974
|
}
|
|
5976
5975
|
}]), r;
|
|
5977
5976
|
}(U);
|
|
5978
|
-
function
|
|
5977
|
+
function ka() {
|
|
5979
5978
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
5980
5979
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
5981
5980
|
</svg>
|
|
5982
5981
|
`, "image/svg+xml").firstChild;
|
|
5983
5982
|
}
|
|
5984
|
-
var
|
|
5983
|
+
var ba = /* @__PURE__ */ function(o) {
|
|
5985
5984
|
S(r, o);
|
|
5986
5985
|
var a = x(r);
|
|
5987
5986
|
function r() {
|
|
@@ -5991,7 +5990,7 @@ var wa = /* @__PURE__ */ function(o) {
|
|
|
5991
5990
|
key: "registerIcons",
|
|
5992
5991
|
value: function() {
|
|
5993
5992
|
return {
|
|
5994
|
-
replay:
|
|
5993
|
+
replay: ka
|
|
5995
5994
|
};
|
|
5996
5995
|
}
|
|
5997
5996
|
}, {
|
|
@@ -6064,7 +6063,7 @@ var wa = /* @__PURE__ */ function(o) {
|
|
|
6064
6063
|
};
|
|
6065
6064
|
}
|
|
6066
6065
|
}]), r;
|
|
6067
|
-
}(U),
|
|
6066
|
+
}(U), wa = /* @__PURE__ */ function(o) {
|
|
6068
6067
|
S(r, o);
|
|
6069
6068
|
var a = x(r);
|
|
6070
6069
|
function r() {
|
|
@@ -6101,7 +6100,7 @@ var wa = /* @__PURE__ */ function(o) {
|
|
|
6101
6100
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6102
6101
|
}), this.config.hideCanplay ? (this.once(ce, function() {
|
|
6103
6102
|
e.onTimeUpdate();
|
|
6104
|
-
}), this.on(
|
|
6103
|
+
}), this.on(Pt, function() {
|
|
6105
6104
|
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ce, function() {
|
|
6106
6105
|
e.onTimeUpdate();
|
|
6107
6106
|
});
|
|
@@ -6189,7 +6188,7 @@ function Ci() {
|
|
|
6189
6188
|
`, "image/svg+xml").firstChild;
|
|
6190
6189
|
}
|
|
6191
6190
|
var ye = {};
|
|
6192
|
-
function
|
|
6191
|
+
function Ta(o, a) {
|
|
6193
6192
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6194
6193
|
start: null,
|
|
6195
6194
|
end: null
|
|
@@ -6207,7 +6206,7 @@ function rn(o) {
|
|
|
6207
6206
|
window.clearTimeout(ye[a].id), delete ye[a];
|
|
6208
6207
|
});
|
|
6209
6208
|
}
|
|
6210
|
-
var
|
|
6209
|
+
var Ea = /* @__PURE__ */ function(o) {
|
|
6211
6210
|
S(r, o);
|
|
6212
6211
|
var a = x(r);
|
|
6213
6212
|
function r(t) {
|
|
@@ -6236,7 +6235,7 @@ var Sa = /* @__PURE__ */ function(o) {
|
|
|
6236
6235
|
e.onPlayPause("play");
|
|
6237
6236
|
}), this.on(tt, function() {
|
|
6238
6237
|
e.onPlayPause("pause");
|
|
6239
|
-
}), this.on(
|
|
6238
|
+
}), this.on(Lt, function() {
|
|
6240
6239
|
e.onPlayerReset();
|
|
6241
6240
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6242
6241
|
pre: function(l) {
|
|
@@ -6299,7 +6298,7 @@ var Sa = /* @__PURE__ */ function(o) {
|
|
|
6299
6298
|
key: "animate",
|
|
6300
6299
|
value: function(e) {
|
|
6301
6300
|
var i = this;
|
|
6302
|
-
this._animateId =
|
|
6301
|
+
this._animateId = Ta("pauseplay", 400, {
|
|
6303
6302
|
start: function() {
|
|
6304
6303
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6305
6304
|
},
|
|
@@ -6382,7 +6381,7 @@ var Sa = /* @__PURE__ */ function(o) {
|
|
|
6382
6381
|
};
|
|
6383
6382
|
}
|
|
6384
6383
|
}]), r;
|
|
6385
|
-
}(U),
|
|
6384
|
+
}(U), Sa = /* @__PURE__ */ function(o) {
|
|
6386
6385
|
S(r, o);
|
|
6387
6386
|
var a = x(r);
|
|
6388
6387
|
function r() {
|
|
@@ -6482,7 +6481,7 @@ function an(o) {
|
|
|
6482
6481
|
return r && a;
|
|
6483
6482
|
}
|
|
6484
6483
|
var ki = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], qn = ki.length;
|
|
6485
|
-
function
|
|
6484
|
+
function xa() {
|
|
6486
6485
|
for (var o = {
|
|
6487
6486
|
width: 0,
|
|
6488
6487
|
height: 0,
|
|
@@ -6496,15 +6495,15 @@ function Ia() {
|
|
|
6496
6495
|
}
|
|
6497
6496
|
return o;
|
|
6498
6497
|
}
|
|
6499
|
-
function
|
|
6498
|
+
function Ia(o) {
|
|
6500
6499
|
var a = window.getComputedStyle(o);
|
|
6501
6500
|
return a;
|
|
6502
6501
|
}
|
|
6503
6502
|
function on(o) {
|
|
6504
6503
|
if (typeof o == "string" && (o = document.querySelector(o)), !(!o || re(o) !== "object" || !o.nodeType)) {
|
|
6505
|
-
var a =
|
|
6504
|
+
var a = Ia(o);
|
|
6506
6505
|
if (a.display === "none")
|
|
6507
|
-
return
|
|
6506
|
+
return xa();
|
|
6508
6507
|
var r = {};
|
|
6509
6508
|
r.width = o.offsetWidth, r.height = o.offsetHeight;
|
|
6510
6509
|
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < qn; e++) {
|
|
@@ -6517,14 +6516,14 @@ function on(o) {
|
|
|
6517
6516
|
return m !== !1 && (r.height = m + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
6518
6517
|
}
|
|
6519
6518
|
}
|
|
6520
|
-
function
|
|
6519
|
+
function zt(o, a) {
|
|
6521
6520
|
for (var r = 0; r < o.length; r++) {
|
|
6522
6521
|
var t = o[r];
|
|
6523
6522
|
if (t.identifier === a)
|
|
6524
6523
|
return t;
|
|
6525
6524
|
}
|
|
6526
6525
|
}
|
|
6527
|
-
var
|
|
6526
|
+
var jt = {
|
|
6528
6527
|
START: "dragStart",
|
|
6529
6528
|
MOVE: "dragMove",
|
|
6530
6529
|
ENDED: "dragEnded"
|
|
@@ -6532,7 +6531,7 @@ var Wt = {
|
|
|
6532
6531
|
mousedown: ["mousemove", "mouseup"],
|
|
6533
6532
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
6534
6533
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
6535
|
-
},
|
|
6534
|
+
}, Pa = /* @__PURE__ */ function(o) {
|
|
6536
6535
|
S(r, o);
|
|
6537
6536
|
var a = x(r);
|
|
6538
6537
|
function r(t) {
|
|
@@ -6635,19 +6634,19 @@ var Wt = {
|
|
|
6635
6634
|
}, {
|
|
6636
6635
|
key: "ontouchmove",
|
|
6637
6636
|
value: function(e) {
|
|
6638
|
-
var i =
|
|
6637
|
+
var i = zt(e.changedTouches, this.touchIdentifier);
|
|
6639
6638
|
i && this.dragMove(e, i);
|
|
6640
6639
|
}
|
|
6641
6640
|
}, {
|
|
6642
6641
|
key: "ontouchend",
|
|
6643
6642
|
value: function(e) {
|
|
6644
|
-
var i =
|
|
6643
|
+
var i = zt(e.changedTouches, this.touchIdentifier);
|
|
6645
6644
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
6646
6645
|
}
|
|
6647
6646
|
}, {
|
|
6648
6647
|
key: "ontouchcancel",
|
|
6649
6648
|
value: function(e) {
|
|
6650
|
-
var i =
|
|
6649
|
+
var i = zt(e.changedTouches, this.touchIdentifier);
|
|
6651
6650
|
i && this.dragCancel(e, i);
|
|
6652
6651
|
}
|
|
6653
6652
|
}, {
|
|
@@ -6662,12 +6661,12 @@ var Wt = {
|
|
|
6662
6661
|
}, {
|
|
6663
6662
|
key: "dragRealStart",
|
|
6664
6663
|
value: function(e, i) {
|
|
6665
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
6664
|
+
this.isDragging = !0, this.animate(), this.emit(jt.START, this.startPos);
|
|
6666
6665
|
}
|
|
6667
6666
|
}, {
|
|
6668
6667
|
key: "dragEnd",
|
|
6669
6668
|
value: function(e, i) {
|
|
6670
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
6669
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(jt.ENDED)), this.presetInfo());
|
|
6671
6670
|
}
|
|
6672
6671
|
}, {
|
|
6673
6672
|
key: "_dragPointerMove",
|
|
@@ -6683,7 +6682,7 @@ var Wt = {
|
|
|
6683
6682
|
value: function(e, i) {
|
|
6684
6683
|
if (e = e || window.event, !!this.isDown) {
|
|
6685
6684
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
6686
|
-
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(
|
|
6685
|
+
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(jt.MOVE, this.position);
|
|
6687
6686
|
}
|
|
6688
6687
|
}
|
|
6689
6688
|
}, {
|
|
@@ -6742,7 +6741,7 @@ var Wt = {
|
|
|
6742
6741
|
return parseInt(e, 10);
|
|
6743
6742
|
}
|
|
6744
6743
|
}]), r;
|
|
6745
|
-
}(xn),
|
|
6744
|
+
}(xn), La = /* @__PURE__ */ function(o) {
|
|
6746
6745
|
S(r, o);
|
|
6747
6746
|
var a = x(r);
|
|
6748
6747
|
function r(t) {
|
|
@@ -6798,7 +6797,7 @@ var Wt = {
|
|
|
6798
6797
|
i.controls.registerPlugin(sn, s, sn.pluginName);
|
|
6799
6798
|
}
|
|
6800
6799
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
6801
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
6800
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Pa(this.player.root, {
|
|
6802
6801
|
handle: this.root
|
|
6803
6802
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
6804
6803
|
}
|
|
@@ -6896,7 +6895,7 @@ var Wt = {
|
|
|
6896
6895
|
mouseenter: "onMouseEnter",
|
|
6897
6896
|
mouseleave: "onMouseLeave",
|
|
6898
6897
|
mousemove: "onMouseMove"
|
|
6899
|
-
},
|
|
6898
|
+
}, Wt = ["videoClick", "videoDbClick"], Gt = /* @__PURE__ */ function(o) {
|
|
6900
6899
|
S(r, o);
|
|
6901
6900
|
var a = x(r);
|
|
6902
6901
|
function r() {
|
|
@@ -6925,7 +6924,7 @@ var Wt = {
|
|
|
6925
6924
|
}), _(v(t), "onVideoClick", function(s) {
|
|
6926
6925
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
6927
6926
|
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() {
|
|
6928
|
-
t._clickCount && (t._clickCount--, we(v(t),
|
|
6927
|
+
t._clickCount && (t._clickCount--, we(v(t), Wt[0], function(h, d) {
|
|
6929
6928
|
t.switchPlayPause(d.e);
|
|
6930
6929
|
}, {
|
|
6931
6930
|
e: s,
|
|
@@ -6939,7 +6938,7 @@ var Wt = {
|
|
|
6939
6938
|
t._clickCount = 0;
|
|
6940
6939
|
return;
|
|
6941
6940
|
}
|
|
6942
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), we(v(t),
|
|
6941
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), we(v(t), Wt[1], function(h, d) {
|
|
6943
6942
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
6944
6943
|
props: "fullscreen",
|
|
6945
6944
|
from: u.fullscreen,
|
|
@@ -6956,7 +6955,7 @@ var Wt = {
|
|
|
6956
6955
|
key: "afterCreate",
|
|
6957
6956
|
value: function() {
|
|
6958
6957
|
var e = this;
|
|
6959
|
-
this._clickCount = 0,
|
|
6958
|
+
this._clickCount = 0, Wt.map(function(n) {
|
|
6960
6959
|
e.__hooks[n] = null;
|
|
6961
6960
|
});
|
|
6962
6961
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7012,12 +7011,12 @@ var Wt = {
|
|
|
7012
7011
|
TOUCH_MOVE: "touchmove",
|
|
7013
7012
|
TOUCH_START: "touchstart",
|
|
7014
7013
|
TOUCH_END: "touchend"
|
|
7015
|
-
},
|
|
7014
|
+
}, Aa = {
|
|
7016
7015
|
start: "touchstart",
|
|
7017
7016
|
end: "touchend",
|
|
7018
7017
|
move: "touchmove",
|
|
7019
7018
|
cancel: "touchcancel"
|
|
7020
|
-
},
|
|
7019
|
+
}, Da = {
|
|
7021
7020
|
start: "mousedown",
|
|
7022
7021
|
end: "mouseup",
|
|
7023
7022
|
move: "mousemove",
|
|
@@ -7026,7 +7025,7 @@ var Wt = {
|
|
|
7026
7025
|
function un(o) {
|
|
7027
7026
|
return o && o.length > 0 ? o[o.length - 1] : null;
|
|
7028
7027
|
}
|
|
7029
|
-
function
|
|
7028
|
+
function Ra() {
|
|
7030
7029
|
return {
|
|
7031
7030
|
pressDelay: 600,
|
|
7032
7031
|
dbClickDelay: 200,
|
|
@@ -7036,7 +7035,7 @@ function Oa() {
|
|
|
7036
7035
|
needPreventDefault: !0
|
|
7037
7036
|
};
|
|
7038
7037
|
}
|
|
7039
|
-
var
|
|
7038
|
+
var Oa = /* @__PURE__ */ function() {
|
|
7040
7039
|
function o(a) {
|
|
7041
7040
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7042
7041
|
eventType: "touch"
|
|
@@ -7057,9 +7056,9 @@ var Ma = /* @__PURE__ */ function() {
|
|
|
7057
7056
|
start: !1,
|
|
7058
7057
|
x: 0,
|
|
7059
7058
|
y: 0
|
|
7060
|
-
}, this.config =
|
|
7059
|
+
}, this.config = Ra(), Object.keys(t).map(function(e) {
|
|
7061
7060
|
r.config[e] = t[e];
|
|
7062
|
-
}), this.root = a, this.events = t.eventType === "mouse" ?
|
|
7061
|
+
}), this.root = a, this.events = t.eventType === "mouse" ? Da : Aa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7063
7062
|
}
|
|
7064
7063
|
return E(o, [{
|
|
7065
7064
|
key: "_initEvent",
|
|
@@ -7138,7 +7137,7 @@ var Ma = /* @__PURE__ */ function() {
|
|
|
7138
7137
|
}
|
|
7139
7138
|
}]), o;
|
|
7140
7139
|
}();
|
|
7141
|
-
function
|
|
7140
|
+
function Ma() {
|
|
7142
7141
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7143
7142
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7144
7143
|
<path opacity="0.54"
|
|
@@ -7152,7 +7151,7 @@ var Ke = {
|
|
|
7152
7151
|
SEEKING: "seeking",
|
|
7153
7152
|
PLAYBACK: "playbackrate",
|
|
7154
7153
|
LIGHT: ""
|
|
7155
|
-
},
|
|
7154
|
+
}, Kt = ["videoClick", "videoDbClick"], Na = /* @__PURE__ */ function(o) {
|
|
7156
7155
|
S(r, o);
|
|
7157
7156
|
var a = x(r);
|
|
7158
7157
|
function r(t) {
|
|
@@ -7224,7 +7223,7 @@ var Ke = {
|
|
|
7224
7223
|
value: function() {
|
|
7225
7224
|
return {
|
|
7226
7225
|
seekTipIcon: {
|
|
7227
|
-
icon:
|
|
7226
|
+
icon: Ma,
|
|
7228
7227
|
class: "xg-seek-pre"
|
|
7229
7228
|
}
|
|
7230
7229
|
};
|
|
@@ -7233,13 +7232,13 @@ var Ke = {
|
|
|
7233
7232
|
key: "afterCreate",
|
|
7234
7233
|
value: function() {
|
|
7235
7234
|
var e = this;
|
|
7236
|
-
|
|
7235
|
+
Kt.map(function(d) {
|
|
7237
7236
|
e.__hooks[d] = null;
|
|
7238
7237
|
});
|
|
7239
7238
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7240
7239
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
7241
7240
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7242
|
-
this.touch = new
|
|
7241
|
+
this.touch = new Oa(this.root, {
|
|
7243
7242
|
eventType: l,
|
|
7244
7243
|
needPreventDefault: !this.config.disableGesture
|
|
7245
7244
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -7416,7 +7415,7 @@ var Ke = {
|
|
|
7416
7415
|
key: "onClick",
|
|
7417
7416
|
value: function(e) {
|
|
7418
7417
|
var i = this, n = this.player;
|
|
7419
|
-
we(this,
|
|
7418
|
+
we(this, Kt[0], function(s, l) {
|
|
7420
7419
|
i.clickHandler(l.e);
|
|
7421
7420
|
}, {
|
|
7422
7421
|
e,
|
|
@@ -7427,7 +7426,7 @@ var Ke = {
|
|
|
7427
7426
|
key: "onDbClick",
|
|
7428
7427
|
value: function(e) {
|
|
7429
7428
|
var i = this, n = this.player;
|
|
7430
|
-
we(this,
|
|
7429
|
+
we(this, Kt[1], function(s, l) {
|
|
7431
7430
|
i.dbClickHandler(l.e);
|
|
7432
7431
|
}, {
|
|
7433
7432
|
e,
|
|
@@ -7581,7 +7580,7 @@ var Ke = {
|
|
|
7581
7580
|
}
|
|
7582
7581
|
}]), r;
|
|
7583
7582
|
}(U);
|
|
7584
|
-
function
|
|
7583
|
+
function Fa(o) {
|
|
7585
7584
|
o.preventDefault(), o.returnValue = !1;
|
|
7586
7585
|
}
|
|
7587
7586
|
function cn(o) {
|
|
@@ -7830,7 +7829,7 @@ var fn = /* @__PURE__ */ function(o) {
|
|
|
7830
7829
|
isPress: n
|
|
7831
7830
|
}, this.keyCodeMap[s[l]]));
|
|
7832
7831
|
}
|
|
7833
|
-
|
|
7832
|
+
Fa(i), i.stopPropagation();
|
|
7834
7833
|
break;
|
|
7835
7834
|
}
|
|
7836
7835
|
}
|
|
@@ -7872,13 +7871,13 @@ var fn = /* @__PURE__ */ function(o) {
|
|
|
7872
7871
|
}
|
|
7873
7872
|
}]), r;
|
|
7874
7873
|
}(Oe);
|
|
7875
|
-
function
|
|
7874
|
+
function Ba() {
|
|
7876
7875
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7877
7876
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
7878
7877
|
</svg>
|
|
7879
7878
|
`, "image/svg+xml").firstChild;
|
|
7880
7879
|
}
|
|
7881
|
-
var
|
|
7880
|
+
var Ha = /* @__PURE__ */ function(o) {
|
|
7882
7881
|
S(r, o);
|
|
7883
7882
|
var a = x(r);
|
|
7884
7883
|
function r() {
|
|
@@ -7888,7 +7887,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
7888
7887
|
key: "registerIcons",
|
|
7889
7888
|
value: function() {
|
|
7890
7889
|
return {
|
|
7891
|
-
loadingIcon:
|
|
7890
|
+
loadingIcon: Ba
|
|
7892
7891
|
};
|
|
7893
7892
|
}
|
|
7894
7893
|
}, {
|
|
@@ -7917,7 +7916,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
7917
7916
|
};
|
|
7918
7917
|
}
|
|
7919
7918
|
}]), r;
|
|
7920
|
-
}(U),
|
|
7919
|
+
}(U), Ua = [{
|
|
7921
7920
|
tag: "xg-cache",
|
|
7922
7921
|
className: "xgplayer-progress-cache",
|
|
7923
7922
|
styleKey: "cachedColor"
|
|
@@ -7925,7 +7924,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
7925
7924
|
tag: "xg-played",
|
|
7926
7925
|
className: "xgplayer-progress-played",
|
|
7927
7926
|
styleKey: "playedColor"
|
|
7928
|
-
}],
|
|
7927
|
+
}], Va = /* @__PURE__ */ function() {
|
|
7929
7928
|
function o(a) {
|
|
7930
7929
|
T(this, o), this.fragments = a.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
7931
7930
|
percent: 1
|
|
@@ -8112,7 +8111,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
8112
8111
|
var l = f.createDom("xg-inner", "", {
|
|
8113
8112
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8114
8113
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8115
|
-
return r.root.appendChild(l),
|
|
8114
|
+
return r.root.appendChild(l), Ua.forEach(function(u) {
|
|
8116
8115
|
l.appendChild(f.createDom(u.tag, "", {
|
|
8117
8116
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8118
8117
|
}, u.className));
|
|
@@ -8128,7 +8127,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
8128
8127
|
}(), hn = {
|
|
8129
8128
|
POINT: "inner-focus-point",
|
|
8130
8129
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8131
|
-
},
|
|
8130
|
+
}, za = /* @__PURE__ */ function(o) {
|
|
8132
8131
|
S(r, o);
|
|
8133
8132
|
var a = x(r);
|
|
8134
8133
|
function r(t) {
|
|
@@ -8258,7 +8257,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
8258
8257
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8259
8258
|
}
|
|
8260
8259
|
});
|
|
8261
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8260
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new Va(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8262
8261
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8263
8262
|
}));
|
|
8264
8263
|
}
|
|
@@ -8568,7 +8567,7 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
8568
8567
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
8569
8568
|
}
|
|
8570
8569
|
}]), r;
|
|
8571
|
-
}(U),
|
|
8570
|
+
}(U), ja = /* @__PURE__ */ function(o) {
|
|
8572
8571
|
S(r, o);
|
|
8573
8572
|
var a = x(r);
|
|
8574
8573
|
function r() {
|
|
@@ -8656,14 +8655,14 @@ var Ua = /* @__PURE__ */ function(o) {
|
|
|
8656
8655
|
}
|
|
8657
8656
|
}]), r;
|
|
8658
8657
|
}(je);
|
|
8659
|
-
function
|
|
8658
|
+
function Wa() {
|
|
8660
8659
|
return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8661
8660
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8662
8661
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
8663
8662
|
</g>
|
|
8664
8663
|
</svg>`, "image/svg+xml").firstChild;
|
|
8665
8664
|
}
|
|
8666
|
-
var
|
|
8665
|
+
var Ga = /* @__PURE__ */ function(o) {
|
|
8667
8666
|
S(r, o);
|
|
8668
8667
|
var a = x(r);
|
|
8669
8668
|
function r() {
|
|
@@ -8682,7 +8681,7 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
8682
8681
|
value: function() {
|
|
8683
8682
|
return {
|
|
8684
8683
|
screenBack: {
|
|
8685
|
-
icon:
|
|
8684
|
+
icon: Wa,
|
|
8686
8685
|
class: "xg-fullscreen-back"
|
|
8687
8686
|
}
|
|
8688
8687
|
};
|
|
@@ -8724,19 +8723,19 @@ var Ka = /* @__PURE__ */ function(o) {
|
|
|
8724
8723
|
}
|
|
8725
8724
|
}]), r;
|
|
8726
8725
|
}(U);
|
|
8727
|
-
function
|
|
8726
|
+
function Ka() {
|
|
8728
8727
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8729
8728
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
8730
8729
|
</svg>
|
|
8731
8730
|
`, "image/svg+xml").firstChild;
|
|
8732
8731
|
}
|
|
8733
|
-
function
|
|
8732
|
+
function Ya() {
|
|
8734
8733
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8735
8734
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
8736
8735
|
</svg>
|
|
8737
8736
|
`, "image/svg+xml").firstChild;
|
|
8738
8737
|
}
|
|
8739
|
-
var
|
|
8738
|
+
var $a = /* @__PURE__ */ function(o) {
|
|
8740
8739
|
S(r, o);
|
|
8741
8740
|
var a = x(r);
|
|
8742
8741
|
function r() {
|
|
@@ -8771,7 +8770,7 @@ var Xa = /* @__PURE__ */ function(o) {
|
|
|
8771
8770
|
var u = e.find(".xg-tips");
|
|
8772
8771
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8773
8772
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8774
|
-
plugin:
|
|
8773
|
+
plugin: Ga,
|
|
8775
8774
|
options: {
|
|
8776
8775
|
config: {
|
|
8777
8776
|
onClick: function(u) {
|
|
@@ -8787,11 +8786,11 @@ var Xa = /* @__PURE__ */ function(o) {
|
|
|
8787
8786
|
value: function() {
|
|
8788
8787
|
return {
|
|
8789
8788
|
fullscreen: {
|
|
8790
|
-
icon:
|
|
8789
|
+
icon: Ka,
|
|
8791
8790
|
class: "xg-get-fullscreen"
|
|
8792
8791
|
},
|
|
8793
8792
|
exitFullscreen: {
|
|
8794
|
-
icon:
|
|
8793
|
+
icon: Ya,
|
|
8795
8794
|
class: "xg-exit-fullscreen"
|
|
8796
8795
|
}
|
|
8797
8796
|
};
|
|
@@ -8872,7 +8871,7 @@ var Xa = /* @__PURE__ */ function(o) {
|
|
|
8872
8871
|
};
|
|
8873
8872
|
}
|
|
8874
8873
|
}]), r;
|
|
8875
|
-
}(je),
|
|
8874
|
+
}(je), Xa = /* @__PURE__ */ function(o) {
|
|
8876
8875
|
S(r, o);
|
|
8877
8876
|
var a = x(r);
|
|
8878
8877
|
function r(t) {
|
|
@@ -9022,7 +9021,7 @@ var Xa = /* @__PURE__ */ function(o) {
|
|
|
9022
9021
|
};
|
|
9023
9022
|
}
|
|
9024
9023
|
}]), r;
|
|
9025
|
-
}(U),
|
|
9024
|
+
}(U), qa = /* @__PURE__ */ function(o) {
|
|
9026
9025
|
S(r, o);
|
|
9027
9026
|
var a = x(r);
|
|
9028
9027
|
function r() {
|
|
@@ -9078,7 +9077,7 @@ var Xa = /* @__PURE__ */ function(o) {
|
|
|
9078
9077
|
return E(r, [{
|
|
9079
9078
|
key: "afterCreate",
|
|
9080
9079
|
value: function() {
|
|
9081
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Me, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(
|
|
9080
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Me, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(xt, this._onSeeking), this.on(fe, this._onPlay);
|
|
9082
9081
|
}
|
|
9083
9082
|
}, {
|
|
9084
9083
|
key: "setConfig",
|
|
@@ -9160,28 +9159,28 @@ var Xa = /* @__PURE__ */ function(o) {
|
|
|
9160
9159
|
}
|
|
9161
9160
|
}]), r;
|
|
9162
9161
|
}(Oe);
|
|
9163
|
-
function
|
|
9162
|
+
function Za() {
|
|
9164
9163
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9165
9164
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9166
9165
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9167
9166
|
</svg>
|
|
9168
9167
|
`, "image/svg+xml").firstChild;
|
|
9169
9168
|
}
|
|
9170
|
-
function
|
|
9169
|
+
function Ja() {
|
|
9171
9170
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9172
9171
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9173
9172
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9174
9173
|
</svg>
|
|
9175
9174
|
`, "image/svg+xml").firstChild;
|
|
9176
9175
|
}
|
|
9177
|
-
function
|
|
9176
|
+
function Qa() {
|
|
9178
9177
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9179
9178
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9180
9179
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
9181
9180
|
</svg>
|
|
9182
9181
|
`, "image/svg+xml").firstChild;
|
|
9183
9182
|
}
|
|
9184
|
-
var
|
|
9183
|
+
var eo = /* @__PURE__ */ function(o) {
|
|
9185
9184
|
S(r, o);
|
|
9186
9185
|
var a = x(r);
|
|
9187
9186
|
function r() {
|
|
@@ -9229,15 +9228,15 @@ var to = /* @__PURE__ */ function(o) {
|
|
|
9229
9228
|
value: function() {
|
|
9230
9229
|
return {
|
|
9231
9230
|
volumeSmall: {
|
|
9232
|
-
icon:
|
|
9231
|
+
icon: Ja,
|
|
9233
9232
|
class: "xg-volume-small"
|
|
9234
9233
|
},
|
|
9235
9234
|
volumeLarge: {
|
|
9236
|
-
icon:
|
|
9235
|
+
icon: Za,
|
|
9237
9236
|
class: "xg-volume"
|
|
9238
9237
|
},
|
|
9239
9238
|
volumeMuted: {
|
|
9240
|
-
icon:
|
|
9239
|
+
icon: Qa,
|
|
9241
9240
|
class: "xg-volume-mute"
|
|
9242
9241
|
}
|
|
9243
9242
|
};
|
|
@@ -9376,7 +9375,7 @@ var to = /* @__PURE__ */ function(o) {
|
|
|
9376
9375
|
}
|
|
9377
9376
|
}]), r;
|
|
9378
9377
|
}(U);
|
|
9379
|
-
function
|
|
9378
|
+
function to() {
|
|
9380
9379
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
9381
9380
|
<g clip-path="url(#clip0)">
|
|
9382
9381
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -9390,7 +9389,7 @@ function io() {
|
|
|
9390
9389
|
</svg>
|
|
9391
9390
|
`, "image/svg+xml").firstChild;
|
|
9392
9391
|
}
|
|
9393
|
-
var
|
|
9392
|
+
var io = /* @__PURE__ */ function(o) {
|
|
9394
9393
|
S(r, o);
|
|
9395
9394
|
var a = x(r);
|
|
9396
9395
|
function r(t) {
|
|
@@ -9453,7 +9452,7 @@ var no = /* @__PURE__ */ function(o) {
|
|
|
9453
9452
|
key: "registerIcons",
|
|
9454
9453
|
value: function() {
|
|
9455
9454
|
return {
|
|
9456
|
-
rotate:
|
|
9455
|
+
rotate: to
|
|
9457
9456
|
};
|
|
9458
9457
|
}
|
|
9459
9458
|
}, {
|
|
@@ -9486,14 +9485,14 @@ var no = /* @__PURE__ */ function(o) {
|
|
|
9486
9485
|
}
|
|
9487
9486
|
}]), r;
|
|
9488
9487
|
}(je);
|
|
9489
|
-
function
|
|
9488
|
+
function no() {
|
|
9490
9489
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9491
9490
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9492
9491
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
9493
9492
|
fill="white" />
|
|
9494
9493
|
</svg>`, "image/svg+xml").firstChild;
|
|
9495
9494
|
}
|
|
9496
|
-
function
|
|
9495
|
+
function ro() {
|
|
9497
9496
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9498
9497
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9499
9498
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -9507,7 +9506,7 @@ var Ye = {
|
|
|
9507
9506
|
PIP: "picture-in-picture",
|
|
9508
9507
|
INLINE: "inline",
|
|
9509
9508
|
FULLSCREEN: "fullscreen"
|
|
9510
|
-
},
|
|
9509
|
+
}, so = /* @__PURE__ */ function(o) {
|
|
9511
9510
|
S(r, o);
|
|
9512
9511
|
var a = x(r);
|
|
9513
9512
|
function r() {
|
|
@@ -9538,7 +9537,7 @@ var Ye = {
|
|
|
9538
9537
|
key: "afterCreate",
|
|
9539
9538
|
value: function() {
|
|
9540
9539
|
var e = this;
|
|
9541
|
-
this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ye.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(
|
|
9540
|
+
this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ye.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(It, function() {
|
|
9542
9541
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9543
9542
|
}));
|
|
9544
9543
|
}
|
|
@@ -9547,11 +9546,11 @@ var Ye = {
|
|
|
9547
9546
|
value: function() {
|
|
9548
9547
|
return {
|
|
9549
9548
|
pipIcon: {
|
|
9550
|
-
icon:
|
|
9549
|
+
icon: no,
|
|
9551
9550
|
class: "xg-get-pip"
|
|
9552
9551
|
},
|
|
9553
9552
|
pipIconExit: {
|
|
9554
|
-
icon:
|
|
9553
|
+
icon: ro,
|
|
9555
9554
|
class: "xg-exit-pip"
|
|
9556
9555
|
}
|
|
9557
9556
|
};
|
|
@@ -9570,9 +9569,9 @@ var Ye = {
|
|
|
9570
9569
|
var n = i.paused;
|
|
9571
9570
|
f.setTimeout(e, function() {
|
|
9572
9571
|
!n && i.mediaPlay();
|
|
9573
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
9572
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(ri, !1);
|
|
9574
9573
|
}, this.enterPIPCallback = function(n) {
|
|
9575
|
-
i.emit(
|
|
9574
|
+
i.emit(ri, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
9576
9575
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
9577
9576
|
var s = i.media.webkitPresentationMode;
|
|
9578
9577
|
e.pMode === Ye.FULLSCREEN && s !== Ye.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ye.PIP ? e.enterPIPCallback(n) : s === Ye.INLINE && e.leavePIPCallback(n);
|
|
@@ -9710,13 +9709,13 @@ var Ye = {
|
|
|
9710
9709
|
}
|
|
9711
9710
|
}]), r;
|
|
9712
9711
|
}(je);
|
|
9713
|
-
function
|
|
9712
|
+
function ao() {
|
|
9714
9713
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9715
9714
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
9716
9715
|
</svg>
|
|
9717
9716
|
`, "image/svg+xml").firstChild;
|
|
9718
9717
|
}
|
|
9719
|
-
var
|
|
9718
|
+
var oo = /* @__PURE__ */ function(o) {
|
|
9720
9719
|
S(r, o);
|
|
9721
9720
|
var a = x(r);
|
|
9722
9721
|
function r(t) {
|
|
@@ -9735,7 +9734,7 @@ var lo = /* @__PURE__ */ function(o) {
|
|
|
9735
9734
|
key: "registerIcons",
|
|
9736
9735
|
value: function() {
|
|
9737
9736
|
return {
|
|
9738
|
-
playNext:
|
|
9737
|
+
playNext: ao
|
|
9739
9738
|
};
|
|
9740
9739
|
}
|
|
9741
9740
|
}, {
|
|
@@ -9857,9 +9856,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
9857
9856
|
};
|
|
9858
9857
|
});
|
|
9859
9858
|
})(Zn);
|
|
9860
|
-
var
|
|
9861
|
-
const
|
|
9862
|
-
function
|
|
9859
|
+
var lo = Zn.exports;
|
|
9860
|
+
const uo = /* @__PURE__ */ li(lo);
|
|
9861
|
+
function co() {
|
|
9863
9862
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9864
9863
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9865
9864
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -9876,7 +9875,7 @@ function fo() {
|
|
|
9876
9875
|
</svg>
|
|
9877
9876
|
`, "image/svg+xml").firstChild;
|
|
9878
9877
|
}
|
|
9879
|
-
var
|
|
9878
|
+
var fo = /* @__PURE__ */ function(o) {
|
|
9880
9879
|
S(r, o);
|
|
9881
9880
|
var a = x(r);
|
|
9882
9881
|
function r(t) {
|
|
@@ -9887,7 +9886,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
9887
9886
|
var n = e.playerConfig.url, s = "";
|
|
9888
9887
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
9889
9888
|
var l = e.getAbsoluteURL(s);
|
|
9890
|
-
|
|
9889
|
+
uo(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
9891
9890
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
9892
9891
|
}, 300);
|
|
9893
9892
|
}
|
|
@@ -9906,7 +9905,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
9906
9905
|
key: "registerIcons",
|
|
9907
9906
|
value: function() {
|
|
9908
9907
|
return {
|
|
9909
|
-
download:
|
|
9908
|
+
download: co
|
|
9910
9909
|
};
|
|
9911
9910
|
}
|
|
9912
9911
|
}, {
|
|
@@ -9948,7 +9947,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
9948
9947
|
};
|
|
9949
9948
|
}
|
|
9950
9949
|
}]), r;
|
|
9951
|
-
}(je),
|
|
9950
|
+
}(je), ho = /* @__PURE__ */ function(o) {
|
|
9952
9951
|
S(r, o);
|
|
9953
9952
|
var a = x(r);
|
|
9954
9953
|
function r() {
|
|
@@ -10074,7 +10073,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10074
10073
|
};
|
|
10075
10074
|
}
|
|
10076
10075
|
}]), r;
|
|
10077
|
-
}(je),
|
|
10076
|
+
}(je), go = /* @__PURE__ */ function() {
|
|
10078
10077
|
function o(a) {
|
|
10079
10078
|
T(this, o), this.config = a.config, this.parent = a.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
|
|
10080
10079
|
var r = this.config.maxHeight;
|
|
@@ -10154,7 +10153,7 @@ var ho = /* @__PURE__ */ function(o) {
|
|
|
10154
10153
|
CLICK: "click",
|
|
10155
10154
|
HOVER: "hover"
|
|
10156
10155
|
};
|
|
10157
|
-
function
|
|
10156
|
+
function po(o, a) {
|
|
10158
10157
|
return o === me.SIDE ? a === G.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10159
10158
|
}
|
|
10160
10159
|
var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
@@ -10268,7 +10267,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10268
10267
|
var c = {
|
|
10269
10268
|
config: {
|
|
10270
10269
|
data: e || [],
|
|
10271
|
-
className:
|
|
10270
|
+
className: po(s.listType, s.position),
|
|
10272
10271
|
onItemClick: function(y, m) {
|
|
10273
10272
|
n.onItemClick(y, m);
|
|
10274
10273
|
},
|
|
@@ -10278,7 +10277,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10278
10277
|
};
|
|
10279
10278
|
if (this.config.isShowIcon) {
|
|
10280
10279
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === me.MIDDLE ? d - 50 : d;
|
|
10281
|
-
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
10280
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new go(c), this.changeCurrentText(), this.show();
|
|
10282
10281
|
}
|
|
10283
10282
|
this._resizeList();
|
|
10284
10283
|
}
|
|
@@ -10329,7 +10328,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10329
10328
|
};
|
|
10330
10329
|
}
|
|
10331
10330
|
}]), r;
|
|
10332
|
-
}(U),
|
|
10331
|
+
}(U), vo = /* @__PURE__ */ function(o) {
|
|
10333
10332
|
S(r, o);
|
|
10334
10333
|
var a = x(r);
|
|
10335
10334
|
function r(t) {
|
|
@@ -10430,7 +10429,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10430
10429
|
});
|
|
10431
10430
|
}
|
|
10432
10431
|
}]), r;
|
|
10433
|
-
}(St),
|
|
10432
|
+
}(St), mo = /* @__PURE__ */ function(o) {
|
|
10434
10433
|
S(r, o);
|
|
10435
10434
|
var a = x(r);
|
|
10436
10435
|
function r(t) {
|
|
@@ -10523,13 +10522,13 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10523
10522
|
}
|
|
10524
10523
|
}]), r;
|
|
10525
10524
|
}(St);
|
|
10526
|
-
function
|
|
10525
|
+
function yo() {
|
|
10527
10526
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10528
10527
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10529
10528
|
</svg>
|
|
10530
10529
|
`, "image/svg+xml").firstChild;
|
|
10531
10530
|
}
|
|
10532
|
-
function
|
|
10531
|
+
function _o() {
|
|
10533
10532
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10534
10533
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10535
10534
|
</svg>
|
|
@@ -10589,11 +10588,11 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10589
10588
|
value: function() {
|
|
10590
10589
|
return {
|
|
10591
10590
|
cssFullscreen: {
|
|
10592
|
-
icon:
|
|
10591
|
+
icon: yo,
|
|
10593
10592
|
class: "xg-get-cssfull"
|
|
10594
10593
|
},
|
|
10595
10594
|
exitCssFullscreen: {
|
|
10596
|
-
icon:
|
|
10595
|
+
icon: _o,
|
|
10597
10596
|
class: "xg-exit-cssfull"
|
|
10598
10597
|
}
|
|
10599
10598
|
};
|
|
@@ -10629,7 +10628,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10629
10628
|
};
|
|
10630
10629
|
}
|
|
10631
10630
|
}]), r;
|
|
10632
|
-
}(je),
|
|
10631
|
+
}(je), Co = /* @__PURE__ */ function(o) {
|
|
10633
10632
|
S(r, o);
|
|
10634
10633
|
var a = x(r);
|
|
10635
10634
|
function r() {
|
|
@@ -10690,7 +10689,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10690
10689
|
return "error";
|
|
10691
10690
|
}
|
|
10692
10691
|
}]), r;
|
|
10693
|
-
}(U),
|
|
10692
|
+
}(U), ko = /* @__PURE__ */ function(o) {
|
|
10694
10693
|
S(r, o);
|
|
10695
10694
|
var a = x(r);
|
|
10696
10695
|
function r() {
|
|
@@ -10920,7 +10919,7 @@ var pn = {
|
|
|
10920
10919
|
return r.find('xg-spot[data-id="'.concat(a, '"]'));
|
|
10921
10920
|
}
|
|
10922
10921
|
};
|
|
10923
|
-
function
|
|
10922
|
+
function bo(o) {
|
|
10924
10923
|
var a = o.config, r = o.player;
|
|
10925
10924
|
Object.keys(pn).map(function(e) {
|
|
10926
10925
|
o[e] = pn[e].bind(o);
|
|
@@ -10944,7 +10943,7 @@ var Xe = {
|
|
|
10944
10943
|
click: "onProgressClick",
|
|
10945
10944
|
mouseover: "onProgressMouseOver",
|
|
10946
10945
|
mouseenter: "onProgressMouseOver"
|
|
10947
|
-
},
|
|
10946
|
+
}, wo = /* @__PURE__ */ function(o) {
|
|
10948
10947
|
S(r, o);
|
|
10949
10948
|
var a = x(r);
|
|
10950
10949
|
function r(t) {
|
|
@@ -10995,7 +10994,7 @@ var Xe = {
|
|
|
10995
10994
|
n.seekTime && e.player.seek(n.seekTime);
|
|
10996
10995
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
10997
10996
|
e.setTimeContent(f.format(i));
|
|
10998
|
-
}),
|
|
10997
|
+
}), bo(this), this.on(Me, function() {
|
|
10999
10998
|
e.show();
|
|
11000
10999
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11001
11000
|
}
|
|
@@ -11219,7 +11218,7 @@ var Xe = {
|
|
|
11219
11218
|
};
|
|
11220
11219
|
}
|
|
11221
11220
|
}]), r;
|
|
11222
|
-
}(U),
|
|
11221
|
+
}(U), To = /* @__PURE__ */ function(o) {
|
|
11223
11222
|
S(r, o);
|
|
11224
11223
|
var a = x(r);
|
|
11225
11224
|
function r(t) {
|
|
@@ -11354,10 +11353,10 @@ var Xe = {
|
|
|
11354
11353
|
}
|
|
11355
11354
|
}]), r;
|
|
11356
11355
|
}(U);
|
|
11357
|
-
function
|
|
11356
|
+
function Yt(o) {
|
|
11358
11357
|
return o ? "background:".concat(o, ";") : "";
|
|
11359
11358
|
}
|
|
11360
|
-
var
|
|
11359
|
+
var Eo = /* @__PURE__ */ function(o) {
|
|
11361
11360
|
S(r, o);
|
|
11362
11361
|
var a = x(r);
|
|
11363
11362
|
function r() {
|
|
@@ -11414,9 +11413,9 @@ var So = /* @__PURE__ */ function(o) {
|
|
|
11414
11413
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
11415
11414
|
if (n) {
|
|
11416
11415
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
11417
|
-
cached:
|
|
11418
|
-
played:
|
|
11419
|
-
progress:
|
|
11416
|
+
cached: Yt(i.cachedColor),
|
|
11417
|
+
played: Yt(i.playedColor),
|
|
11418
|
+
progress: Yt(i.progressColor),
|
|
11420
11419
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
11421
11420
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
11422
11421
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -11445,14 +11444,14 @@ var So = /* @__PURE__ */ function(o) {
|
|
|
11445
11444
|
FRAME_RATE: "framerate",
|
|
11446
11445
|
POSTER: "poster"
|
|
11447
11446
|
};
|
|
11448
|
-
function
|
|
11447
|
+
function So() {
|
|
11449
11448
|
try {
|
|
11450
11449
|
return parseInt(window.performance.now(), 10);
|
|
11451
11450
|
} catch {
|
|
11452
11451
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
11453
11452
|
}
|
|
11454
11453
|
}
|
|
11455
|
-
function
|
|
11454
|
+
function xo() {
|
|
11456
11455
|
try {
|
|
11457
11456
|
var o = document.createElement("canvas").getContext;
|
|
11458
11457
|
return !!o;
|
|
@@ -11460,7 +11459,7 @@ function Io() {
|
|
|
11460
11459
|
return !1;
|
|
11461
11460
|
}
|
|
11462
11461
|
}
|
|
11463
|
-
var dt = null,
|
|
11462
|
+
var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
11464
11463
|
S(r, o);
|
|
11465
11464
|
var a = x(r);
|
|
11466
11465
|
function r() {
|
|
@@ -11481,7 +11480,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11481
11480
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11482
11481
|
}
|
|
11483
11482
|
}), _(v(t), "start", function(s, l) {
|
|
11484
|
-
var u = t.player.video, c =
|
|
11483
|
+
var u = t.player.video, c = So(), h = t.checkVideoIsSupport(u);
|
|
11485
11484
|
!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 === qe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
11486
11485
|
}), _(v(t), "stop", function() {
|
|
11487
11486
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -11501,7 +11500,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11501
11500
|
x: 0,
|
|
11502
11501
|
y: 0,
|
|
11503
11502
|
pi: 0
|
|
11504
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== qe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(
|
|
11503
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== qe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(It, function() {
|
|
11505
11504
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
11506
11505
|
}), s !== qe.POSTER && (s !== qe.FIRST_FRAME && (this.on(ze, function() {
|
|
11507
11506
|
e.stop();
|
|
@@ -11654,7 +11653,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11654
11653
|
}, {
|
|
11655
11654
|
key: "isSupport",
|
|
11656
11655
|
get: function() {
|
|
11657
|
-
return typeof dt == "boolean" || (dt =
|
|
11656
|
+
return typeof dt == "boolean" || (dt = xo()), dt;
|
|
11658
11657
|
}
|
|
11659
11658
|
}, {
|
|
11660
11659
|
key: "supportCanvasFilter",
|
|
@@ -11662,7 +11661,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11662
11661
|
return !(R.browser === "safari" || R.browser === "firefox");
|
|
11663
11662
|
}
|
|
11664
11663
|
}]), r;
|
|
11665
|
-
}(U),
|
|
11664
|
+
}(U), Po = {
|
|
11666
11665
|
LANG: "zh-cn",
|
|
11667
11666
|
TEXT: {
|
|
11668
11667
|
ERROR_TYPES: {
|
|
@@ -11737,7 +11736,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11737
11736
|
FORWARD: "快进中",
|
|
11738
11737
|
LIVE_TIP: "直播"
|
|
11739
11738
|
}
|
|
11740
|
-
}, rt = "info",
|
|
11739
|
+
}, rt = "info", $t = Wn, Lo = /* @__PURE__ */ function(o) {
|
|
11741
11740
|
S(r, o);
|
|
11742
11741
|
var a = x(r);
|
|
11743
11742
|
function r() {
|
|
@@ -11776,7 +11775,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11776
11775
|
}, {
|
|
11777
11776
|
key: "afterCreate",
|
|
11778
11777
|
value: function() {
|
|
11779
|
-
this.reset(), this.on(bt, this._recordUserActions), this.on(
|
|
11778
|
+
this.reset(), this.on(bt, this._recordUserActions), this.on($t.STATS_INFO, this._recordInfo), this.on($t.STATS_DOWNLOAD, this._downloadStats), this.on($t.STATS_RESET, this._onReset);
|
|
11780
11779
|
}
|
|
11781
11780
|
}, {
|
|
11782
11781
|
key: "destroy",
|
|
@@ -11924,7 +11923,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11924
11923
|
var e = this, i = this.config.useGapJump;
|
|
11925
11924
|
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(ut, this.onGapJump), this.on(fe, function() {
|
|
11926
11925
|
e.hasPlayed = !0;
|
|
11927
|
-
}), this.on(
|
|
11926
|
+
}), this.on(xt, function() {
|
|
11928
11927
|
e.seekingEventReceived = !0;
|
|
11929
11928
|
}));
|
|
11930
11929
|
}
|
|
@@ -11971,7 +11970,7 @@ var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
|
11971
11970
|
}]), r;
|
|
11972
11971
|
}(U);
|
|
11973
11972
|
Qn.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
11974
|
-
var
|
|
11973
|
+
var Ao = /* @__PURE__ */ function(o) {
|
|
11975
11974
|
S(r, o);
|
|
11976
11975
|
var a = x(r);
|
|
11977
11976
|
function r() {
|
|
@@ -12017,7 +12016,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12017
12016
|
};
|
|
12018
12017
|
}
|
|
12019
12018
|
}]), r;
|
|
12020
|
-
}(U), Ze = "cdn", gt = ["cdn"],
|
|
12019
|
+
}(U), Ze = "cdn", gt = ["cdn"], Do = /* @__PURE__ */ function(o) {
|
|
12021
12020
|
S(r, o);
|
|
12022
12021
|
var a = x(r);
|
|
12023
12022
|
function r() {
|
|
@@ -12076,13 +12075,13 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12076
12075
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12077
12076
|
if (c)
|
|
12078
12077
|
if (s === Ze)
|
|
12079
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12078
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(ii, {
|
|
12080
12079
|
speed: l,
|
|
12081
12080
|
realTimeSpeed: c.realTimeSpeed
|
|
12082
12081
|
}));
|
|
12083
12082
|
else {
|
|
12084
12083
|
var h = t.getSpeedName("avg", s);
|
|
12085
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
12084
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(ii, {
|
|
12086
12085
|
speed: l,
|
|
12087
12086
|
realTimeSpeed: c.realTimeSpeed
|
|
12088
12087
|
}));
|
|
@@ -12143,7 +12142,7 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12143
12142
|
};
|
|
12144
12143
|
}
|
|
12145
12144
|
}]), r;
|
|
12146
|
-
}(U),
|
|
12145
|
+
}(U), Ro = /* @__PURE__ */ function(o) {
|
|
12147
12146
|
S(r, o);
|
|
12148
12147
|
var a = x(r);
|
|
12149
12148
|
function r() {
|
|
@@ -12253,24 +12252,24 @@ var Do = /* @__PURE__ */ function(o) {
|
|
|
12253
12252
|
}
|
|
12254
12253
|
}]), r;
|
|
12255
12254
|
}(U);
|
|
12256
|
-
Qe.use(
|
|
12257
|
-
var
|
|
12255
|
+
Qe.use(Po);
|
|
12256
|
+
var Oo = /* @__PURE__ */ E(function o(a, r) {
|
|
12258
12257
|
var t, e, i;
|
|
12259
12258
|
T(this, o);
|
|
12260
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12261
|
-
this.plugins = [
|
|
12259
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [qa, za, Eo, wo, Xa], u = [].concat(l, [ja, $a, io, oo, vo, mo, fo, ho, eo, so]), c = [ba, wa, Ea, Ha, Sa, Co, ko, To, La];
|
|
12260
|
+
this.plugins = [Lo, Ca].concat(de(u), c, [Qn, Ao]);
|
|
12262
12261
|
var h = n ? "mobile" : R.device;
|
|
12263
12262
|
switch (h) {
|
|
12264
12263
|
case "pc":
|
|
12265
|
-
(t = this.plugins).push.apply(t, [fn,
|
|
12264
|
+
(t = this.plugins).push.apply(t, [fn, Gt, dn, Do, Ro]);
|
|
12266
12265
|
break;
|
|
12267
12266
|
case "mobile":
|
|
12268
|
-
(e = this.plugins).push.apply(e, [
|
|
12267
|
+
(e = this.plugins).push.apply(e, [Na]);
|
|
12269
12268
|
break;
|
|
12270
12269
|
default:
|
|
12271
|
-
(i = this.plugins).push.apply(i, [fn,
|
|
12270
|
+
(i = this.plugins).push.apply(i, [fn, Gt, dn]);
|
|
12272
12271
|
}
|
|
12273
|
-
(R.os.isIpad || h === "pc") && this.plugins.push(
|
|
12272
|
+
(R.os.isIpad || h === "pc") && this.plugins.push(Io), R.os.isIpad && this.plugins.push(Gt), this.ignores = [], this.i18n = [];
|
|
12274
12273
|
}), ge = /* @__PURE__ */ function(o) {
|
|
12275
12274
|
S(r, o);
|
|
12276
12275
|
var a = x(r);
|
|
@@ -12278,18 +12277,18 @@ var Mo = /* @__PURE__ */ E(function o(a, r) {
|
|
|
12278
12277
|
return T(this, r), a.apply(this, arguments);
|
|
12279
12278
|
}
|
|
12280
12279
|
return E(r);
|
|
12281
|
-
}(
|
|
12282
|
-
_(ge, "defaultPreset",
|
|
12280
|
+
}(At);
|
|
12281
|
+
_(ge, "defaultPreset", Oo);
|
|
12283
12282
|
_(ge, "Util", f);
|
|
12284
12283
|
_(ge, "Sniffer", R);
|
|
12285
12284
|
_(ge, "Errors", mt);
|
|
12286
|
-
_(ge, "Events",
|
|
12285
|
+
_(ge, "Events", $s);
|
|
12287
12286
|
_(ge, "Plugin", U);
|
|
12288
12287
|
_(ge, "BasePlugin", Oe);
|
|
12289
12288
|
_(ge, "I18N", Qe);
|
|
12290
12289
|
_(ge, "STATE_CLASS", C);
|
|
12291
12290
|
_(ge, "InstManager", Xn);
|
|
12292
|
-
const
|
|
12291
|
+
const Mo = ["id"], No = /* @__PURE__ */ Q({
|
|
12293
12292
|
name: "ElImageViewer",
|
|
12294
12293
|
__name: "Player",
|
|
12295
12294
|
props: /* @__PURE__ */ vt({
|
|
@@ -12318,7 +12317,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12318
12317
|
}, ["update:modelValue"]),
|
|
12319
12318
|
setup(o, { emit: a }) {
|
|
12320
12319
|
let r = null;
|
|
12321
|
-
const t = o, { cLoadUrl: e } = Fr(t), i = J(() =>
|
|
12320
|
+
const t = o, { cLoadUrl: e } = Fr(t), i = J(() => Jt(e.value, t.url)), n = {
|
|
12322
12321
|
width: "100%",
|
|
12323
12322
|
height: "100%",
|
|
12324
12323
|
// 是否自动播放
|
|
@@ -12339,12 +12338,12 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12339
12338
|
}, s = J(() => ({
|
|
12340
12339
|
...n,
|
|
12341
12340
|
...t.config
|
|
12342
|
-
})), l = a, u =
|
|
12341
|
+
})), l = a, u = si(o, "modelValue"), c = yn(), h = _n("image-viewer");
|
|
12343
12342
|
function d() {
|
|
12344
12343
|
l("close"), u.value = !1, r.destroy();
|
|
12345
12344
|
}
|
|
12346
12345
|
return at(() => u.value, (g) => {
|
|
12347
|
-
g &&
|
|
12346
|
+
g && ai(() => {
|
|
12348
12347
|
r = new ge({
|
|
12349
12348
|
id: c,
|
|
12350
12349
|
url: i.value,
|
|
@@ -12387,7 +12386,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12387
12386
|
class: Y(P(h).e("canvas"))
|
|
12388
12387
|
},
|
|
12389
12388
|
[
|
|
12390
|
-
j("div", { id: P(c) }, null, 8,
|
|
12389
|
+
j("div", { id: P(c) }, null, 8, Mo),
|
|
12391
12390
|
ae(" CLOSE "),
|
|
12392
12391
|
j(
|
|
12393
12392
|
"span",
|
|
@@ -12424,7 +12423,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
|
12424
12423
|
};
|
|
12425
12424
|
}
|
|
12426
12425
|
});
|
|
12427
|
-
const
|
|
12426
|
+
const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(Fo), Ho = /* @__PURE__ */ Q({
|
|
12428
12427
|
__name: "IkPreviewFileDialog",
|
|
12429
12428
|
props: /* @__PURE__ */ vt({
|
|
12430
12429
|
file: {
|
|
@@ -12461,7 +12460,7 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12461
12460
|
}),
|
|
12462
12461
|
emits: ["update:show"],
|
|
12463
12462
|
setup(o) {
|
|
12464
|
-
const a = o, r =
|
|
12463
|
+
const a = o, r = si(o, "show"), t = J(() => ({
|
|
12465
12464
|
name: "name",
|
|
12466
12465
|
url: "url",
|
|
12467
12466
|
suffix: "suffix",
|
|
@@ -12478,7 +12477,7 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12478
12477
|
if (i.value = {
|
|
12479
12478
|
...u,
|
|
12480
12479
|
name: u[t.value.name],
|
|
12481
|
-
url:
|
|
12480
|
+
url: Jt(a.loadUrl, w)
|
|
12482
12481
|
}, u && Li(u, t.value) === "image") {
|
|
12483
12482
|
n.image = !0;
|
|
12484
12483
|
return;
|
|
@@ -12500,7 +12499,7 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12500
12499
|
document: {
|
|
12501
12500
|
key: yn(),
|
|
12502
12501
|
title: B,
|
|
12503
|
-
url:
|
|
12502
|
+
url: Jt(a.loadUrl, w),
|
|
12504
12503
|
fileType: b,
|
|
12505
12504
|
...((m = a.onlyOfficeConfig) == null ? void 0 : m.document) || {}
|
|
12506
12505
|
},
|
|
@@ -12514,7 +12513,7 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12514
12513
|
}
|
|
12515
12514
|
};
|
|
12516
12515
|
at([r, a.file], ([u, c]) => {
|
|
12517
|
-
u &&
|
|
12516
|
+
u && ai(() => {
|
|
12518
12517
|
s(a.file);
|
|
12519
12518
|
});
|
|
12520
12519
|
});
|
|
@@ -12524,10 +12523,10 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12524
12523
|
return (u, c) => {
|
|
12525
12524
|
var h, d, g;
|
|
12526
12525
|
return r.value ? (N(), W(
|
|
12527
|
-
|
|
12526
|
+
Zt,
|
|
12528
12527
|
{ key: 0 },
|
|
12529
12528
|
[
|
|
12530
|
-
(h = i.value) != null && h.url && n.image ? (N(), De(P(
|
|
12529
|
+
(h = i.value) != null && h.url && n.image ? (N(), De(P(ks), {
|
|
12531
12530
|
key: 0,
|
|
12532
12531
|
onClose: c[0] || (c[0] = (p) => l()),
|
|
12533
12532
|
ref: "previewImgRef",
|
|
@@ -12535,9 +12534,9 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12535
12534
|
teleported: "",
|
|
12536
12535
|
"z-index": 9999
|
|
12537
12536
|
}, null, 8, ["url-list"])) : ae("v-if", !0),
|
|
12538
|
-
ae('
|
|
12537
|
+
ae(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
12539
12538
|
ae(" 文档类 "),
|
|
12540
|
-
K(P(
|
|
12539
|
+
K(P(Bo), {
|
|
12541
12540
|
modelValue: n.video,
|
|
12542
12541
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
|
|
12543
12542
|
url: (g = i.value) == null ? void 0 : g.url
|
|
@@ -12560,7 +12559,7 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12560
12559
|
default: Z(() => {
|
|
12561
12560
|
var p;
|
|
12562
12561
|
return [
|
|
12563
|
-
K(P(
|
|
12562
|
+
K(P(ss), {
|
|
12564
12563
|
"config-options": e.value,
|
|
12565
12564
|
"document-server-url": ((p = o.onlyOfficeConfig) == null ? void 0 : p.serverUrl) || o.onlyofficeServer
|
|
12566
12565
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -12576,8 +12575,8 @@ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(B
|
|
|
12576
12575
|
};
|
|
12577
12576
|
}
|
|
12578
12577
|
});
|
|
12579
|
-
const
|
|
12578
|
+
const jo = et(Ho);
|
|
12580
12579
|
export {
|
|
12581
|
-
|
|
12582
|
-
|
|
12580
|
+
jo as IkPreviewFileDialog,
|
|
12581
|
+
jo as default
|
|
12583
12582
|
};
|