ik-next-ui 0.0.13 → 0.0.14
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/IkApprovalProcess/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +1 -1
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +694 -656
- package/dist/IkBaseDialog/ik-next-ui.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +154 -116
- package/dist/IkCollapseCard/ik-next-ui.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +163 -125
- package/dist/IkDescription/ik-next-ui.css +1 -1
- package/dist/IkDescription/ik.index.es.js +506 -468
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +709 -671
- package/dist/IkIconPicker/ik-next-ui.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +180 -142
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +418 -380
- package/dist/IkPickerUser/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +644 -606
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +658 -620
- package/dist/IkRadioGroup/ik-next-ui.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +140 -102
- package/dist/IkSideText/ik-next-ui.css +1 -1
- package/dist/IkSideText/ik.index.es.js +131 -93
- package/dist/IkSvgIcon/ik-next-ui.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +139 -101
- package/dist/IkUploadFile/ik-next-ui.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +776 -736
- package/dist/IkUploadImage/ik-next-ui.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +261 -223
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +140 -102
- package/dist/Provider/ik.index.es.js +1 -1
- package/dist/build/version.json.d.ts +1 -1
- package/dist/ik-next-ui.css +2 -2
- package/dist/index.es.js +3044 -3043
- package/dist/index.umd.js +67 -67
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +1 -0
- package/dist/src/iking-ui/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ke, computed as Q, openBlock as T, createElementBlock as x, createElementVNode as w, inject as Et, ref as ye, Fragment as se, createCommentVNode as P, renderList as Me, normalizeStyle as le, toDisplayString as J, unref as I, normalizeClass as ie, createBlock as oe, withModifiers as tt, renderSlot as Ne, createVNode as K, useModel as Qr, reactive as dl, watch as Dt, nextTick as Ot, withCtx as re, mergeModels as Ft, resolveComponent as Mt, h as xu, mergeProps as gl, createSlots as Iu, createTextVNode as _t, markRaw as Ia, effectScope as Pu, shallowRef as Au, onMounted as pl, Teleport as vl, Transition as ml, resolveDynamicComponent as Lu, withDirectives as Ru, vShow as Du } from "vue";
|
|
2
2
|
import { paramType as Gr, ikFile as Ou, buildUUID as yl, _ as Ii, ikDate as Fu } from "iking-utils-pro";
|
|
3
3
|
import { Icon as Pa } from "@iconify/vue";
|
|
4
4
|
import { UseImage as Aa } from "@vueuse/components";
|
|
5
5
|
import { useEventListener as Jt } from "@vueuse/core";
|
|
6
|
-
import { useLocale as Mu, useNamespace as _l, useZIndex as Nu, ElIcon as
|
|
6
|
+
import { useLocale as Mu, useNamespace as _l, useZIndex as Nu, ElIcon as qe, EVENT_CODE as ht } from "element-plus";
|
|
7
7
|
import { ScaleToOriginal as Bu, FullScreen as Hu, Close as bl, ArrowLeft as Uu, ArrowRight as ju, ZoomOut as zu, ZoomIn as Vu, RefreshLeft as qu, RefreshRight as Gu } from "@element-plus/icons-vue";
|
|
8
|
-
const
|
|
8
|
+
const Ae = (a, s) => (a.install = (r) => {
|
|
9
9
|
for (const t of [a, ...Object.values({})])
|
|
10
10
|
r.component(t.name, t);
|
|
11
11
|
}, a);
|
|
@@ -257,7 +257,7 @@ const ni = (a, s) => {
|
|
|
257
257
|
"p-id": "7515",
|
|
258
258
|
width: "200",
|
|
259
259
|
height: "200"
|
|
260
|
-
}, sc = /* @__PURE__ */
|
|
260
|
+
}, sc = /* @__PURE__ */ ke({
|
|
261
261
|
__name: "IkFileIcon",
|
|
262
262
|
props: {
|
|
263
263
|
type: {
|
|
@@ -278,7 +278,7 @@ const ni = (a, s) => {
|
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
280
|
setup(a) {
|
|
281
|
-
const s = a, r =
|
|
281
|
+
const s = a, r = Q(() => s.file ? ni(s.file, s.fields) : s.type);
|
|
282
282
|
return (t, e) => r.value === "image" ? (T(), x("svg", Ku, [...e[0] || (e[0] = [
|
|
283
283
|
w(
|
|
284
284
|
"path",
|
|
@@ -637,7 +637,7 @@ const ni = (a, s) => {
|
|
|
637
637
|
)
|
|
638
638
|
])]));
|
|
639
639
|
}
|
|
640
|
-
}), Ra =
|
|
640
|
+
}), Ra = Ae(sc), pi = (a, s) => {
|
|
641
641
|
const r = a.__vccOpts || a;
|
|
642
642
|
for (const [t, e] of s)
|
|
643
643
|
r[t] = e;
|
|
@@ -808,7 +808,7 @@ const ni = (a, s) => {
|
|
|
808
808
|
"flv",
|
|
809
809
|
"tls"
|
|
810
810
|
], ea = (a) => {
|
|
811
|
-
const s = Et("loadUrl"), r =
|
|
811
|
+
const s = Et("loadUrl"), r = Q(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = Et("uploadUrl"), e = Q(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = Et("token"), n = Q(() => a.token || (i == null ? void 0 : i.value)), o = Et("onlyofficeConfig"), l = Q(() => a.onlyofficeConfig || (o == null ? void 0 : o.value)), u = Et("userInfo"), c = Q(() => a.userInfo || (u == null ? void 0 : u.value)), f = [...Da, ...Da.map((d) => d.toLocaleUpperCase())];
|
|
812
812
|
return {
|
|
813
813
|
cLoadUrl: r,
|
|
814
814
|
cUploadUrl: e,
|
|
@@ -841,7 +841,7 @@ const ni = (a, s) => {
|
|
|
841
841
|
key: 0,
|
|
842
842
|
class: "size",
|
|
843
843
|
style: { "padding-right": "20px", "white-space": "nowrap" }
|
|
844
|
-
}, mc = ["onClick"], yc = { class: "text" }, _c = { class: "fileName" }, bc = { class: "size" }, kc = /* @__PURE__ */
|
|
844
|
+
}, mc = ["onClick"], yc = { class: "text" }, _c = { class: "fileName" }, bc = { class: "size" }, kc = /* @__PURE__ */ ke({
|
|
845
845
|
__name: "IkPreviewFile",
|
|
846
846
|
props: {
|
|
847
847
|
list: {
|
|
@@ -942,7 +942,7 @@ const ni = (a, s) => {
|
|
|
942
942
|
},
|
|
943
943
|
emits: ["handPreview", "download", "close"],
|
|
944
944
|
setup(a, { emit: s }) {
|
|
945
|
-
const r = a, t =
|
|
945
|
+
const r = a, t = Q(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = ea(r), o = s, l = Q(() => ({
|
|
946
946
|
name: "name",
|
|
947
947
|
url: "url",
|
|
948
948
|
suffix: "suffix",
|
|
@@ -968,7 +968,7 @@ const ni = (a, s) => {
|
|
|
968
968
|
);
|
|
969
969
|
}, p = (v) => {
|
|
970
970
|
o("close", v);
|
|
971
|
-
}, g =
|
|
971
|
+
}, g = Q(() => Gr.isNumber(r.width) ? `${r.width}px` : r.width), m = Q(() => r.list.map((v) => {
|
|
972
972
|
var b;
|
|
973
973
|
const C = v[l.value.name] || v.attachmentName;
|
|
974
974
|
return {
|
|
@@ -992,11 +992,11 @@ const ni = (a, s) => {
|
|
|
992
992
|
t.value === "simple" ? (T(!0), x(
|
|
993
993
|
se,
|
|
994
994
|
{ key: 0 },
|
|
995
|
-
|
|
995
|
+
Me(m.value, (E, L) => (T(), x("div", {
|
|
996
996
|
class: "iking-privew-annex simple",
|
|
997
997
|
key: L,
|
|
998
998
|
onClick: (z) => f(E),
|
|
999
|
-
style:
|
|
999
|
+
style: le({ width: g.value })
|
|
1000
1000
|
}, [
|
|
1001
1001
|
w("div", cc, [
|
|
1002
1002
|
w(
|
|
@@ -1020,19 +1020,19 @@ const ni = (a, s) => {
|
|
|
1020
1020
|
class: ie(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1021
1021
|
},
|
|
1022
1022
|
[
|
|
1023
|
-
a.showDownloadBtn ? (T(),
|
|
1023
|
+
a.showDownloadBtn ? (T(), oe(I(it), {
|
|
1024
1024
|
key: 0,
|
|
1025
1025
|
name: "iksvg_daochu",
|
|
1026
1026
|
onClick: tt((z) => d(E), ["stop"]),
|
|
1027
1027
|
size: 20
|
|
1028
1028
|
}, null, 8, ["onClick"])) : P("v-if", !0),
|
|
1029
|
-
I(n).includes(E.suffix) && a.showPreviewBtn ? (T(),
|
|
1029
|
+
I(n).includes(E.suffix) && a.showPreviewBtn ? (T(), oe(I(it), {
|
|
1030
1030
|
key: 1,
|
|
1031
1031
|
name: "iksvg_yulan",
|
|
1032
1032
|
size: 20,
|
|
1033
1033
|
onClick: tt((z) => f(E), ["stop"])
|
|
1034
1034
|
}, null, 8, ["onClick"])) : P("v-if", !0),
|
|
1035
|
-
|
|
1035
|
+
Ne(v.$slots, "operation", {
|
|
1036
1036
|
data: { ...E, findex: L }
|
|
1037
1037
|
})
|
|
1038
1038
|
],
|
|
@@ -1050,17 +1050,17 @@ const ni = (a, s) => {
|
|
|
1050
1050
|
(T(!0), x(
|
|
1051
1051
|
se,
|
|
1052
1052
|
null,
|
|
1053
|
-
|
|
1053
|
+
Me(m.value, (E, L) => (T(), x("div", {
|
|
1054
1054
|
class: "iking-privew-annex simple-icon",
|
|
1055
1055
|
key: L,
|
|
1056
1056
|
onClick: (z) => f(E),
|
|
1057
|
-
style:
|
|
1057
|
+
style: le({ width: g.value })
|
|
1058
1058
|
}, [
|
|
1059
1059
|
w("div", gc, [
|
|
1060
1060
|
P(" 若为默认40,则simple-icon设置为20,否则设置为iconSize "),
|
|
1061
1061
|
K(I(Ra), {
|
|
1062
1062
|
file: E,
|
|
1063
|
-
style:
|
|
1063
|
+
style: le({
|
|
1064
1064
|
height: `${a.iconSize === 40 ? 20 : a.iconSize}px`,
|
|
1065
1065
|
marginRight: "10px"
|
|
1066
1066
|
}),
|
|
@@ -1071,7 +1071,7 @@ const ni = (a, s) => {
|
|
|
1071
1071
|
"div",
|
|
1072
1072
|
{
|
|
1073
1073
|
class: "flex",
|
|
1074
|
-
style:
|
|
1074
|
+
style: le({ width: `calc(100% - ${a.iconSize + 10}px)` })
|
|
1075
1075
|
},
|
|
1076
1076
|
[
|
|
1077
1077
|
w(
|
|
@@ -1093,14 +1093,14 @@ const ni = (a, s) => {
|
|
|
1093
1093
|
/* STYLE */
|
|
1094
1094
|
)
|
|
1095
1095
|
]),
|
|
1096
|
-
a.showDownloadBtn ? (T(),
|
|
1096
|
+
a.showDownloadBtn ? (T(), oe(I(it), {
|
|
1097
1097
|
key: 0,
|
|
1098
1098
|
name: "iksvg_daochu",
|
|
1099
1099
|
size: 20,
|
|
1100
1100
|
title: "下载",
|
|
1101
1101
|
onClick: tt((z) => d(E), ["stop"])
|
|
1102
1102
|
}, null, 8, ["onClick"])) : P("v-if", !0),
|
|
1103
|
-
I(n).includes(E.suffix) && a.showPreviewBtn ? (T(),
|
|
1103
|
+
I(n).includes(E.suffix) && a.showPreviewBtn ? (T(), oe(I(it), {
|
|
1104
1104
|
key: 1,
|
|
1105
1105
|
name: "iksvg_yulan",
|
|
1106
1106
|
size: 20,
|
|
@@ -1122,14 +1122,14 @@ const ni = (a, s) => {
|
|
|
1122
1122
|
(T(!0), x(
|
|
1123
1123
|
se,
|
|
1124
1124
|
null,
|
|
1125
|
-
|
|
1125
|
+
Me(m.value, (E, L) => {
|
|
1126
1126
|
var z;
|
|
1127
1127
|
return T(), x(
|
|
1128
1128
|
"div",
|
|
1129
1129
|
{
|
|
1130
1130
|
class: ie(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
1131
1131
|
key: L,
|
|
1132
|
-
style:
|
|
1132
|
+
style: le({
|
|
1133
1133
|
marginBottom: L == ((z = a.list) == null ? void 0 : z.length) - 1 ? "0" : "10px",
|
|
1134
1134
|
width: g.value
|
|
1135
1135
|
})
|
|
@@ -1141,7 +1141,7 @@ const ni = (a, s) => {
|
|
|
1141
1141
|
}, [
|
|
1142
1142
|
K(I(Ra), {
|
|
1143
1143
|
file: E,
|
|
1144
|
-
style:
|
|
1144
|
+
style: le({ height: `${a.iconSize}px` }),
|
|
1145
1145
|
class: "ikui-w-auto",
|
|
1146
1146
|
fields: l.value
|
|
1147
1147
|
}, null, 8, ["file", "style", "fields"]),
|
|
@@ -1167,7 +1167,7 @@ const ni = (a, s) => {
|
|
|
1167
1167
|
class: ie(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
1168
1168
|
},
|
|
1169
1169
|
[
|
|
1170
|
-
a.showDownloadBtn ? (T(),
|
|
1170
|
+
a.showDownloadBtn ? (T(), oe(I(it), {
|
|
1171
1171
|
key: 0,
|
|
1172
1172
|
name: "iksvg_daochu",
|
|
1173
1173
|
onClick: tt((G) => d(E), ["stop"]),
|
|
@@ -1175,7 +1175,7 @@ const ni = (a, s) => {
|
|
|
1175
1175
|
size: a.showBg ? "default" : 20,
|
|
1176
1176
|
title: "下载"
|
|
1177
1177
|
}, null, 8, ["onClick", "bg", "size"])) : P("v-if", !0),
|
|
1178
|
-
I(n).includes(E.suffix) && a.showPreviewBtn ? (T(),
|
|
1178
|
+
I(n).includes(E.suffix) && a.showPreviewBtn ? (T(), oe(I(it), {
|
|
1179
1179
|
key: 1,
|
|
1180
1180
|
name: "iksvg_yulan",
|
|
1181
1181
|
bg: a.showBg,
|
|
@@ -1183,7 +1183,7 @@ const ni = (a, s) => {
|
|
|
1183
1183
|
title: "预览",
|
|
1184
1184
|
onClick: tt((G) => f(E), ["stop"])
|
|
1185
1185
|
}, null, 8, ["bg", "size", "onClick"])) : P("v-if", !0),
|
|
1186
|
-
|
|
1186
|
+
Ne(v.$slots, "operation", {
|
|
1187
1187
|
data: { ...E, findex: L }
|
|
1188
1188
|
})
|
|
1189
1189
|
],
|
|
@@ -1223,7 +1223,7 @@ const ni = (a, s) => {
|
|
|
1223
1223
|
);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
}), Cc =
|
|
1226
|
+
}), Cc = Ae(kc), Tc = { class: "head-logo" }, wc = ["src"], Sc = { class: "text-preview-container" }, Ec = { class: "text-preview-header" }, xc = { class: "file-name" }, Ic = { class: "text-preview-content" }, Pc = /* @__PURE__ */ ke({
|
|
1227
1227
|
__name: "IkPreviewFileDialog",
|
|
1228
1228
|
props: /* @__PURE__ */ Ft({
|
|
1229
1229
|
file: {
|
|
@@ -1260,7 +1260,7 @@ const ni = (a, s) => {
|
|
|
1260
1260
|
}),
|
|
1261
1261
|
emits: /* @__PURE__ */ Ft(["close"], ["update:show"]),
|
|
1262
1262
|
setup(a, { emit: s }) {
|
|
1263
|
-
const r = a, t = s, e = Qr(a, "show"), i =
|
|
1263
|
+
const r = a, t = s, e = Qr(a, "show"), i = Q(() => ({
|
|
1264
1264
|
name: "name",
|
|
1265
1265
|
url: "url",
|
|
1266
1266
|
suffix: "suffix",
|
|
@@ -1343,7 +1343,7 @@ const ni = (a, s) => {
|
|
|
1343
1343
|
se,
|
|
1344
1344
|
{ key: 0 },
|
|
1345
1345
|
[
|
|
1346
|
-
(v = o.value) != null && v.url && u.image ? (T(),
|
|
1346
|
+
(v = o.value) != null && v.url && u.image ? (T(), oe(I(Th), {
|
|
1347
1347
|
key: 0,
|
|
1348
1348
|
onClose: m[0] || (m[0] = (k) => d()),
|
|
1349
1349
|
ref: "previewImgRef",
|
|
@@ -1353,7 +1353,7 @@ const ni = (a, s) => {
|
|
|
1353
1353
|
}, null, 8, ["url-list"])) : P("v-if", !0),
|
|
1354
1354
|
P(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1355
1355
|
P(" 文档类 "),
|
|
1356
|
-
K(I(
|
|
1356
|
+
K(I(Dg), {
|
|
1357
1357
|
modelValue: u.video,
|
|
1358
1358
|
"onUpdate:modelValue": m[1] || (m[1] = (k) => u.video = k),
|
|
1359
1359
|
url: (b = o.value) == null ? void 0 : b.url,
|
|
@@ -1384,7 +1384,7 @@ const ni = (a, s) => {
|
|
|
1384
1384
|
alt: ""
|
|
1385
1385
|
}, null, 8, wc)
|
|
1386
1386
|
]),
|
|
1387
|
-
K(I(
|
|
1387
|
+
K(I(yh), {
|
|
1388
1388
|
"config-options": n.value,
|
|
1389
1389
|
"document-server-url": ((E = a.onlyOfficeConfig) == null ? void 0 : E.serverUrl) || a.onlyofficeServer
|
|
1390
1390
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1441,15 +1441,54 @@ const ni = (a, s) => {
|
|
|
1441
1441
|
)) : P("v-if", !0);
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
}), Ac =
|
|
1444
|
+
}), Ac = Ae(Pc);
|
|
1445
1445
|
function Cl(a) {
|
|
1446
1446
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1447
1447
|
}
|
|
1448
|
-
const Lc = {
|
|
1448
|
+
const Lc = /* @__PURE__ */ ke({
|
|
1449
|
+
__name: "index",
|
|
1450
|
+
props: {
|
|
1451
|
+
effect: {
|
|
1452
|
+
type: String,
|
|
1453
|
+
default: "dark"
|
|
1454
|
+
},
|
|
1455
|
+
content: {
|
|
1456
|
+
type: String,
|
|
1457
|
+
default: ""
|
|
1458
|
+
},
|
|
1459
|
+
text: {
|
|
1460
|
+
type: String,
|
|
1461
|
+
default: ""
|
|
1462
|
+
},
|
|
1463
|
+
placement: {
|
|
1464
|
+
type: String,
|
|
1465
|
+
default: "top"
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
setup(a) {
|
|
1469
|
+
const s = a, r = Q(() => s.effect);
|
|
1470
|
+
return (t, e) => {
|
|
1471
|
+
const i = Mt("el-tooltip");
|
|
1472
|
+
return T(), oe(i, {
|
|
1473
|
+
class: "gl-tooltip",
|
|
1474
|
+
effect: r.value,
|
|
1475
|
+
content: a.text || a.content,
|
|
1476
|
+
placement: a.placement,
|
|
1477
|
+
enterable: !1
|
|
1478
|
+
}, {
|
|
1479
|
+
default: re(() => [
|
|
1480
|
+
Ne(t.$slots, "default")
|
|
1481
|
+
]),
|
|
1482
|
+
_: 3
|
|
1483
|
+
/* FORWARDED */
|
|
1484
|
+
}, 8, ["effect", "content", "placement"]);
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
}), Rc = Ae(Lc), Dc = {
|
|
1449
1488
|
key: 2,
|
|
1450
1489
|
class: "shrink-0 size-inherit",
|
|
1451
1490
|
"aria-hidden": "true"
|
|
1452
|
-
},
|
|
1491
|
+
}, Oc = ["xlink:href"], Fc = ["xlink:href"], Mc = ["size"], Nc = ["xlink:href"], Bc = ["xlink:href"], Hc = /* @__PURE__ */ ke({
|
|
1453
1492
|
name: "IkSvgIcon",
|
|
1454
1493
|
__name: "index",
|
|
1455
1494
|
props: {
|
|
@@ -1472,7 +1511,7 @@ const Lc = {
|
|
|
1472
1511
|
},
|
|
1473
1512
|
emits: ["click"],
|
|
1474
1513
|
setup(a, { emit: s }) {
|
|
1475
|
-
const r = a, t = s, e =
|
|
1514
|
+
const r = a, t = s, e = Q(() => r.danger ? "danger" : r.error ? "error" : r.type), i = Q(() => {
|
|
1476
1515
|
if (!r.name)
|
|
1477
1516
|
return;
|
|
1478
1517
|
const d = (p) => /^\.{1,2}\//.test(p) || p.startsWith("/") || p.includes("/");
|
|
@@ -1485,14 +1524,14 @@ const Lc = {
|
|
|
1485
1524
|
function o() {
|
|
1486
1525
|
return r.size ? n[r.size] || r.size : 18;
|
|
1487
1526
|
}
|
|
1488
|
-
const l =
|
|
1527
|
+
const l = Q(() => {
|
|
1489
1528
|
const d = o(), p = typeof d == "number" ? `${d}px` : d;
|
|
1490
1529
|
return {
|
|
1491
1530
|
width: p,
|
|
1492
1531
|
height: p,
|
|
1493
1532
|
fontSize: p
|
|
1494
1533
|
};
|
|
1495
|
-
}), u =
|
|
1534
|
+
}), u = Q(() => {
|
|
1496
1535
|
const p = `${Number.parseInt(o()) + 8}px`;
|
|
1497
1536
|
return {
|
|
1498
1537
|
width: p,
|
|
@@ -1502,7 +1541,7 @@ const Lc = {
|
|
|
1502
1541
|
function c(d) {
|
|
1503
1542
|
r.onClick ? r.onClick(d) : t("click", d);
|
|
1504
1543
|
}
|
|
1505
|
-
const f =
|
|
1544
|
+
const f = Q(() => {
|
|
1506
1545
|
if (i.value !== "two-color-svg")
|
|
1507
1546
|
return {};
|
|
1508
1547
|
const d = {};
|
|
@@ -1523,8 +1562,7 @@ const Lc = {
|
|
|
1523
1562
|
return r.active && e.value !== "default" && !r.deepColor && !r.shallowColor && r.colorMode === "auto" && (d["--ik-icon-deep-color"] = `var(--ik-icon-${e.value}-deep-active)`, d["--ik-icon-shallow-color"] = `var(--ik-icon-${e.value}-shallow-active)`), d;
|
|
1524
1563
|
});
|
|
1525
1564
|
return (d, p) => {
|
|
1526
|
-
var
|
|
1527
|
-
const g = Mt("IkTooltip");
|
|
1565
|
+
var g;
|
|
1528
1566
|
return T(), x(
|
|
1529
1567
|
"i",
|
|
1530
1568
|
{
|
|
@@ -1538,51 +1576,51 @@ const Lc = {
|
|
|
1538
1576
|
a.unMargin ? "un-margin" : "margin",
|
|
1539
1577
|
a.hover ? "is-hover" : ""
|
|
1540
1578
|
)),
|
|
1541
|
-
style:
|
|
1579
|
+
style: le(a.showBg ? u.value : l.value),
|
|
1542
1580
|
onClick: c
|
|
1543
1581
|
},
|
|
1544
1582
|
[
|
|
1545
|
-
a.title ? (T(),
|
|
1583
|
+
a.title ? (T(), oe(I(Rc), {
|
|
1546
1584
|
key: 0,
|
|
1547
1585
|
text: a.title
|
|
1548
1586
|
}, {
|
|
1549
1587
|
default: re(() => {
|
|
1550
|
-
var
|
|
1588
|
+
var m;
|
|
1551
1589
|
return [
|
|
1552
1590
|
i.value === "unocss" ? (T(), x(
|
|
1553
1591
|
"i",
|
|
1554
1592
|
{
|
|
1555
1593
|
key: 0,
|
|
1556
|
-
class: ie(["iconfont shrink-0 size-inherit", `${a.name} ${(
|
|
1557
|
-
style:
|
|
1594
|
+
class: ie(["iconfont shrink-0 size-inherit", `${a.name} ${(m = a.name) == null ? void 0 : m.split("_")[0]}`]),
|
|
1595
|
+
style: le({ ...f.value, ...a.showBg ? l.value : {} })
|
|
1558
1596
|
},
|
|
1559
1597
|
null,
|
|
1560
1598
|
6
|
|
1561
1599
|
/* CLASS, STYLE */
|
|
1562
|
-
)) : i.value === "iconify" ? (T(),
|
|
1600
|
+
)) : i.value === "iconify" ? (T(), oe(I(Pa), {
|
|
1563
1601
|
key: 1,
|
|
1564
1602
|
icon: a.name,
|
|
1565
1603
|
class: "shrink-0 size-inherit"
|
|
1566
|
-
}, null, 8, ["icon"])) : i.value === "svg" ? (T(), x("svg",
|
|
1604
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (T(), x("svg", Dc, [
|
|
1567
1605
|
w("use", {
|
|
1568
1606
|
"xlink:href": `#icon-${a.name}`
|
|
1569
|
-
}, null, 8,
|
|
1607
|
+
}, null, 8, Oc)
|
|
1570
1608
|
])) : i.value === "two-color-svg" ? (T(), x(
|
|
1571
1609
|
"svg",
|
|
1572
1610
|
{
|
|
1573
1611
|
key: 3,
|
|
1574
1612
|
class: "two-color-icon shrink-0 size-inherit",
|
|
1575
|
-
style:
|
|
1613
|
+
style: le(f.value),
|
|
1576
1614
|
"aria-hidden": "true"
|
|
1577
1615
|
},
|
|
1578
1616
|
[
|
|
1579
1617
|
w("use", {
|
|
1580
1618
|
"xlink:href": `#${a.name}`
|
|
1581
|
-
}, null, 8,
|
|
1619
|
+
}, null, 8, Fc)
|
|
1582
1620
|
],
|
|
1583
1621
|
4
|
|
1584
1622
|
/* STYLE */
|
|
1585
|
-
)) : i.value === "img" ? (T(),
|
|
1623
|
+
)) : i.value === "img" ? (T(), oe(I(Aa), {
|
|
1586
1624
|
key: 4,
|
|
1587
1625
|
src: a.name,
|
|
1588
1626
|
class: "shrink-0"
|
|
@@ -1620,13 +1658,13 @@ const Lc = {
|
|
|
1620
1658
|
"i",
|
|
1621
1659
|
{
|
|
1622
1660
|
key: 0,
|
|
1623
|
-
class: ie(["iconfont shrink-0 size-inherit", `${a.name} ${(
|
|
1624
|
-
style:
|
|
1661
|
+
class: ie(["iconfont shrink-0 size-inherit", `${a.name} ${(g = a.name) == null ? void 0 : g.split("_")[0]}`]),
|
|
1662
|
+
style: le({ ...f.value, ...a.showBg ? l.value : {} })
|
|
1625
1663
|
},
|
|
1626
1664
|
null,
|
|
1627
1665
|
6
|
|
1628
1666
|
/* CLASS, STYLE */
|
|
1629
|
-
)) : i.value === "iconify" ? (T(),
|
|
1667
|
+
)) : i.value === "iconify" ? (T(), oe(I(Pa), {
|
|
1630
1668
|
key: 1,
|
|
1631
1669
|
icon: a.name,
|
|
1632
1670
|
class: "shrink-0 size-inherit"
|
|
@@ -1638,23 +1676,23 @@ const Lc = {
|
|
|
1638
1676
|
}, [
|
|
1639
1677
|
w("use", {
|
|
1640
1678
|
"xlink:href": `#icon-${a.name}`
|
|
1641
|
-
}, null, 8,
|
|
1642
|
-
], 8,
|
|
1679
|
+
}, null, 8, Nc)
|
|
1680
|
+
], 8, Mc)) : i.value === "two-color-svg" ? (T(), x(
|
|
1643
1681
|
"svg",
|
|
1644
1682
|
{
|
|
1645
1683
|
key: 3,
|
|
1646
1684
|
class: "two-color-icon shrink-0 size-inherit",
|
|
1647
|
-
style:
|
|
1685
|
+
style: le(f.value),
|
|
1648
1686
|
"aria-hidden": "true"
|
|
1649
1687
|
},
|
|
1650
1688
|
[
|
|
1651
1689
|
w("use", {
|
|
1652
1690
|
"xlink:href": `#${a.name}`
|
|
1653
|
-
}, null, 8,
|
|
1691
|
+
}, null, 8, Bc)
|
|
1654
1692
|
],
|
|
1655
1693
|
4
|
|
1656
1694
|
/* STYLE */
|
|
1657
|
-
)) : i.value === "img" ? (T(),
|
|
1695
|
+
)) : i.value === "img" ? (T(), oe(I(Aa), {
|
|
1658
1696
|
key: 4,
|
|
1659
1697
|
src: a.name,
|
|
1660
1698
|
class: "shrink-0"
|
|
@@ -1690,7 +1728,7 @@ const Lc = {
|
|
|
1690
1728
|
);
|
|
1691
1729
|
};
|
|
1692
1730
|
}
|
|
1693
|
-
}),
|
|
1731
|
+
}), Uc = /* @__PURE__ */ pi(Hc, [["__scopeId", "data-v-c202da9d"]]), it = Ae(Uc), jc = /* @__PURE__ */ ke({
|
|
1694
1732
|
__name: "CloseIcon",
|
|
1695
1733
|
props: {
|
|
1696
1734
|
showBg: {
|
|
@@ -1720,7 +1758,7 @@ const Lc = {
|
|
|
1720
1758
|
/* CLASS */
|
|
1721
1759
|
));
|
|
1722
1760
|
}
|
|
1723
|
-
}),
|
|
1761
|
+
}), zc = /* @__PURE__ */ pi(jc, [["__scopeId", "data-v-739899b1"]]), Vc = { class: "base-header" }, qc = /* @__PURE__ */ ke({
|
|
1724
1762
|
__name: "IkBaseDialog",
|
|
1725
1763
|
props: /* @__PURE__ */ Ft({
|
|
1726
1764
|
title: { default: "" },
|
|
@@ -1742,9 +1780,9 @@ const Lc = {
|
|
|
1742
1780
|
}),
|
|
1743
1781
|
emits: ["update:modelValue"],
|
|
1744
1782
|
setup(a) {
|
|
1745
|
-
const s = a, r = Qr(a, "modelValue"), t = ye(s.fullscreen), e =
|
|
1783
|
+
const s = a, r = Qr(a, "modelValue"), t = ye(s.fullscreen), e = ke({
|
|
1746
1784
|
setup() {
|
|
1747
|
-
return () => xu(
|
|
1785
|
+
return () => xu(zc, {
|
|
1748
1786
|
showBg: s.showCloseBg,
|
|
1749
1787
|
fullscreen: s.fullscreen
|
|
1750
1788
|
});
|
|
@@ -1752,7 +1790,7 @@ const Lc = {
|
|
|
1752
1790
|
});
|
|
1753
1791
|
return (i, n) => {
|
|
1754
1792
|
const o = Mt("el-dialog");
|
|
1755
|
-
return T(),
|
|
1793
|
+
return T(), oe(o, gl({
|
|
1756
1794
|
modelValue: r.value,
|
|
1757
1795
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => r.value = l),
|
|
1758
1796
|
"align-center": ""
|
|
@@ -1764,7 +1802,7 @@ const Lc = {
|
|
|
1764
1802
|
"modal-class": "baseDialog"
|
|
1765
1803
|
}), Iu({
|
|
1766
1804
|
icon: re(() => [
|
|
1767
|
-
|
|
1805
|
+
Ne(i.$slots, "title", {}, () => [
|
|
1768
1806
|
_t(
|
|
1769
1807
|
J(a.title),
|
|
1770
1808
|
1
|
|
@@ -1773,8 +1811,8 @@ const Lc = {
|
|
|
1773
1811
|
])
|
|
1774
1812
|
]),
|
|
1775
1813
|
header: re(() => [
|
|
1776
|
-
w("div",
|
|
1777
|
-
|
|
1814
|
+
w("div", Vc, [
|
|
1815
|
+
Ne(i.$slots, "header", {}, () => [
|
|
1778
1816
|
_t(
|
|
1779
1817
|
J(a.title),
|
|
1780
1818
|
1
|
|
@@ -1784,7 +1822,7 @@ const Lc = {
|
|
|
1784
1822
|
])
|
|
1785
1823
|
]),
|
|
1786
1824
|
default: re(() => [
|
|
1787
|
-
|
|
1825
|
+
Ne(i.$slots, "default")
|
|
1788
1826
|
]),
|
|
1789
1827
|
_: 2
|
|
1790
1828
|
/* DYNAMIC */
|
|
@@ -1792,15 +1830,15 @@ const Lc = {
|
|
|
1792
1830
|
i.$slots.footer ? {
|
|
1793
1831
|
name: "footer",
|
|
1794
1832
|
fn: re(() => [
|
|
1795
|
-
|
|
1833
|
+
Ne(i.$slots, "footer")
|
|
1796
1834
|
]),
|
|
1797
1835
|
key: "0"
|
|
1798
1836
|
} : void 0
|
|
1799
1837
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
1800
1838
|
};
|
|
1801
1839
|
}
|
|
1802
|
-
}), Oa =
|
|
1803
|
-
function
|
|
1840
|
+
}), Oa = Ae(qc);
|
|
1841
|
+
function Gc(a, s, r, t) {
|
|
1804
1842
|
function e(i) {
|
|
1805
1843
|
return i instanceof r ? i : new r(function(n) {
|
|
1806
1844
|
n(i);
|
|
@@ -1827,7 +1865,7 @@ function Vc(a, s, r, t) {
|
|
|
1827
1865
|
u((t = t.apply(a, [])).next());
|
|
1828
1866
|
});
|
|
1829
1867
|
}
|
|
1830
|
-
function
|
|
1868
|
+
function Wc(a, s) {
|
|
1831
1869
|
var r = { label: 0, sent: function() {
|
|
1832
1870
|
if (i[0] & 1) throw i[1];
|
|
1833
1871
|
return i[1];
|
|
@@ -1887,9 +1925,9 @@ function qc(a, s) {
|
|
|
1887
1925
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1888
1926
|
}
|
|
1889
1927
|
}
|
|
1890
|
-
var
|
|
1891
|
-
return
|
|
1892
|
-
return
|
|
1928
|
+
var $c = function(a, s) {
|
|
1929
|
+
return Gc(void 0, void 0, void 0, function() {
|
|
1930
|
+
return Wc(this, function(r) {
|
|
1893
1931
|
return [2, new Promise(function(t, e) {
|
|
1894
1932
|
try {
|
|
1895
1933
|
if (window.DocsAPI)
|
|
@@ -1923,11 +1961,11 @@ var Gc = function(a, s) {
|
|
|
1923
1961
|
e.removeAttribute("loading"), t(i);
|
|
1924
1962
|
}, e.setAttribute("loading", ""), e;
|
|
1925
1963
|
}, Zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1926
|
-
function
|
|
1964
|
+
function Kc(a) {
|
|
1927
1965
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1928
1966
|
}
|
|
1929
1967
|
var Ai, Ma;
|
|
1930
|
-
function
|
|
1968
|
+
function Yc() {
|
|
1931
1969
|
if (Ma) return Ai;
|
|
1932
1970
|
Ma = 1;
|
|
1933
1971
|
function a() {
|
|
@@ -1958,7 +1996,7 @@ function vi() {
|
|
|
1958
1996
|
return Ri = s, Ri;
|
|
1959
1997
|
}
|
|
1960
1998
|
var Di, Ha;
|
|
1961
|
-
function
|
|
1999
|
+
function Xc() {
|
|
1962
2000
|
if (Ha) return Di;
|
|
1963
2001
|
Ha = 1;
|
|
1964
2002
|
var a = vi(), s = Array.prototype, r = s.splice;
|
|
@@ -1972,7 +2010,7 @@ function Kc() {
|
|
|
1972
2010
|
return Di = t, Di;
|
|
1973
2011
|
}
|
|
1974
2012
|
var Oi, Ua;
|
|
1975
|
-
function
|
|
2013
|
+
function Jc() {
|
|
1976
2014
|
if (Ua) return Oi;
|
|
1977
2015
|
Ua = 1;
|
|
1978
2016
|
var a = vi();
|
|
@@ -1983,7 +2021,7 @@ function Yc() {
|
|
|
1983
2021
|
return Oi = s, Oi;
|
|
1984
2022
|
}
|
|
1985
2023
|
var Fi, ja;
|
|
1986
|
-
function
|
|
2024
|
+
function Zc() {
|
|
1987
2025
|
if (ja) return Fi;
|
|
1988
2026
|
ja = 1;
|
|
1989
2027
|
var a = vi();
|
|
@@ -1993,7 +2031,7 @@ function Xc() {
|
|
|
1993
2031
|
return Fi = s, Fi;
|
|
1994
2032
|
}
|
|
1995
2033
|
var Mi, za;
|
|
1996
|
-
function
|
|
2034
|
+
function Qc() {
|
|
1997
2035
|
if (za) return Mi;
|
|
1998
2036
|
za = 1;
|
|
1999
2037
|
var a = vi();
|
|
@@ -2007,7 +2045,7 @@ var Ni, Va;
|
|
|
2007
2045
|
function mi() {
|
|
2008
2046
|
if (Va) return Ni;
|
|
2009
2047
|
Va = 1;
|
|
2010
|
-
var a =
|
|
2048
|
+
var a = Yc(), s = Xc(), r = Jc(), t = Zc(), e = Qc();
|
|
2011
2049
|
function i(n) {
|
|
2012
2050
|
var o = -1, l = n == null ? 0 : n.length;
|
|
2013
2051
|
for (this.clear(); ++o < l; ) {
|
|
@@ -2018,7 +2056,7 @@ function mi() {
|
|
|
2018
2056
|
return i.prototype.clear = a, i.prototype.delete = s, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, Ni = i, Ni;
|
|
2019
2057
|
}
|
|
2020
2058
|
var Bi, qa;
|
|
2021
|
-
function
|
|
2059
|
+
function ef() {
|
|
2022
2060
|
if (qa) return Bi;
|
|
2023
2061
|
qa = 1;
|
|
2024
2062
|
var a = mi();
|
|
@@ -2028,7 +2066,7 @@ function Zc() {
|
|
|
2028
2066
|
return Bi = s, Bi;
|
|
2029
2067
|
}
|
|
2030
2068
|
var Hi, Ga;
|
|
2031
|
-
function
|
|
2069
|
+
function tf() {
|
|
2032
2070
|
if (Ga) return Hi;
|
|
2033
2071
|
Ga = 1;
|
|
2034
2072
|
function a(s) {
|
|
@@ -2038,7 +2076,7 @@ function Qc() {
|
|
|
2038
2076
|
return Hi = a, Hi;
|
|
2039
2077
|
}
|
|
2040
2078
|
var Ui, Wa;
|
|
2041
|
-
function
|
|
2079
|
+
function nf() {
|
|
2042
2080
|
if (Wa) return Ui;
|
|
2043
2081
|
Wa = 1;
|
|
2044
2082
|
function a(s) {
|
|
@@ -2047,7 +2085,7 @@ function ef() {
|
|
|
2047
2085
|
return Ui = a, Ui;
|
|
2048
2086
|
}
|
|
2049
2087
|
var ji, $a;
|
|
2050
|
-
function
|
|
2088
|
+
function rf() {
|
|
2051
2089
|
if ($a) return ji;
|
|
2052
2090
|
$a = 1;
|
|
2053
2091
|
function a(s) {
|
|
@@ -2063,7 +2101,7 @@ function wl() {
|
|
|
2063
2101
|
return zi = a, zi;
|
|
2064
2102
|
}
|
|
2065
2103
|
var Vi, Ya;
|
|
2066
|
-
function
|
|
2104
|
+
function Le() {
|
|
2067
2105
|
if (Ya) return Vi;
|
|
2068
2106
|
Ya = 1;
|
|
2069
2107
|
var a = wl(), s = typeof self == "object" && self && self.Object === Object && self, r = a || s || Function("return this")();
|
|
@@ -2073,11 +2111,11 @@ var qi, Xa;
|
|
|
2073
2111
|
function ta() {
|
|
2074
2112
|
if (Xa) return qi;
|
|
2075
2113
|
Xa = 1;
|
|
2076
|
-
var a =
|
|
2114
|
+
var a = Le(), s = a.Symbol;
|
|
2077
2115
|
return qi = s, qi;
|
|
2078
2116
|
}
|
|
2079
2117
|
var Gi, Ja;
|
|
2080
|
-
function
|
|
2118
|
+
function af() {
|
|
2081
2119
|
if (Ja) return Gi;
|
|
2082
2120
|
Ja = 1;
|
|
2083
2121
|
var a = ta(), s = Object.prototype, r = s.hasOwnProperty, t = s.toString, e = a ? a.toStringTag : void 0;
|
|
@@ -2094,7 +2132,7 @@ function nf() {
|
|
|
2094
2132
|
return Gi = i, Gi;
|
|
2095
2133
|
}
|
|
2096
2134
|
var Wi, Za;
|
|
2097
|
-
function
|
|
2135
|
+
function sf() {
|
|
2098
2136
|
if (Za) return Wi;
|
|
2099
2137
|
Za = 1;
|
|
2100
2138
|
var a = Object.prototype, s = a.toString;
|
|
@@ -2107,7 +2145,7 @@ var $i, Qa;
|
|
|
2107
2145
|
function yi() {
|
|
2108
2146
|
if (Qa) return $i;
|
|
2109
2147
|
Qa = 1;
|
|
2110
|
-
var a = ta(), s =
|
|
2148
|
+
var a = ta(), s = af(), r = sf(), t = "[object Null]", e = "[object Undefined]", i = a ? a.toStringTag : void 0;
|
|
2111
2149
|
function n(o) {
|
|
2112
2150
|
return o == null ? o === void 0 ? e : t : i && i in Object(o) ? s(o) : r(o);
|
|
2113
2151
|
}
|
|
@@ -2137,17 +2175,17 @@ function Sl() {
|
|
|
2137
2175
|
return Yi = n, Yi;
|
|
2138
2176
|
}
|
|
2139
2177
|
var Xi, is;
|
|
2140
|
-
function
|
|
2178
|
+
function of() {
|
|
2141
2179
|
if (is) return Xi;
|
|
2142
2180
|
is = 1;
|
|
2143
|
-
var a =
|
|
2181
|
+
var a = Le(), s = a["__core-js_shared__"];
|
|
2144
2182
|
return Xi = s, Xi;
|
|
2145
2183
|
}
|
|
2146
2184
|
var Ji, ns;
|
|
2147
|
-
function
|
|
2185
|
+
function lf() {
|
|
2148
2186
|
if (ns) return Ji;
|
|
2149
2187
|
ns = 1;
|
|
2150
|
-
var a =
|
|
2188
|
+
var a = of(), s = (function() {
|
|
2151
2189
|
var t = /[^.]+$/.exec(a && a.keys && a.keys.IE_PROTO || "");
|
|
2152
2190
|
return t ? "Symbol(src)_1." + t : "";
|
|
2153
2191
|
})();
|
|
@@ -2177,10 +2215,10 @@ function El() {
|
|
|
2177
2215
|
return Zi = r, Zi;
|
|
2178
2216
|
}
|
|
2179
2217
|
var Qi, as;
|
|
2180
|
-
function
|
|
2218
|
+
function uf() {
|
|
2181
2219
|
if (as) return Qi;
|
|
2182
2220
|
as = 1;
|
|
2183
|
-
var a = Sl(), s =
|
|
2221
|
+
var a = Sl(), s = lf(), r = Bt(), t = El(), e = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, n = Function.prototype, o = Object.prototype, l = n.toString, u = o.hasOwnProperty, c = RegExp(
|
|
2184
2222
|
"^" + l.call(u).replace(e, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2185
2223
|
);
|
|
2186
2224
|
function f(d) {
|
|
@@ -2192,7 +2230,7 @@ function of() {
|
|
|
2192
2230
|
return Qi = f, Qi;
|
|
2193
2231
|
}
|
|
2194
2232
|
var en, ss;
|
|
2195
|
-
function
|
|
2233
|
+
function cf() {
|
|
2196
2234
|
if (ss) return en;
|
|
2197
2235
|
ss = 1;
|
|
2198
2236
|
function a(s, r) {
|
|
@@ -2204,7 +2242,7 @@ var tn, os;
|
|
|
2204
2242
|
function at() {
|
|
2205
2243
|
if (os) return tn;
|
|
2206
2244
|
os = 1;
|
|
2207
|
-
var a =
|
|
2245
|
+
var a = uf(), s = cf();
|
|
2208
2246
|
function r(t, e) {
|
|
2209
2247
|
var i = s(t, e);
|
|
2210
2248
|
return a(i) ? i : void 0;
|
|
@@ -2215,7 +2253,7 @@ var nn, ls;
|
|
|
2215
2253
|
function ia() {
|
|
2216
2254
|
if (ls) return nn;
|
|
2217
2255
|
ls = 1;
|
|
2218
|
-
var a = at(), s =
|
|
2256
|
+
var a = at(), s = Le(), r = a(s, "Map");
|
|
2219
2257
|
return nn = r, nn;
|
|
2220
2258
|
}
|
|
2221
2259
|
var rn, us;
|
|
@@ -2226,7 +2264,7 @@ function _i() {
|
|
|
2226
2264
|
return rn = s, rn;
|
|
2227
2265
|
}
|
|
2228
2266
|
var an, cs;
|
|
2229
|
-
function
|
|
2267
|
+
function ff() {
|
|
2230
2268
|
if (cs) return an;
|
|
2231
2269
|
cs = 1;
|
|
2232
2270
|
var a = _i();
|
|
@@ -2236,7 +2274,7 @@ function uf() {
|
|
|
2236
2274
|
return an = s, an;
|
|
2237
2275
|
}
|
|
2238
2276
|
var sn, fs;
|
|
2239
|
-
function
|
|
2277
|
+
function hf() {
|
|
2240
2278
|
if (fs) return sn;
|
|
2241
2279
|
fs = 1;
|
|
2242
2280
|
function a(s) {
|
|
@@ -2246,7 +2284,7 @@ function cf() {
|
|
|
2246
2284
|
return sn = a, sn;
|
|
2247
2285
|
}
|
|
2248
2286
|
var on, hs;
|
|
2249
|
-
function
|
|
2287
|
+
function df() {
|
|
2250
2288
|
if (hs) return on;
|
|
2251
2289
|
hs = 1;
|
|
2252
2290
|
var a = _i(), s = "__lodash_hash_undefined__", r = Object.prototype, t = r.hasOwnProperty;
|
|
@@ -2261,7 +2299,7 @@ function ff() {
|
|
|
2261
2299
|
return on = e, on;
|
|
2262
2300
|
}
|
|
2263
2301
|
var ln, ds;
|
|
2264
|
-
function
|
|
2302
|
+
function gf() {
|
|
2265
2303
|
if (ds) return ln;
|
|
2266
2304
|
ds = 1;
|
|
2267
2305
|
var a = _i(), s = Object.prototype, r = s.hasOwnProperty;
|
|
@@ -2272,7 +2310,7 @@ function hf() {
|
|
|
2272
2310
|
return ln = t, ln;
|
|
2273
2311
|
}
|
|
2274
2312
|
var un, gs;
|
|
2275
|
-
function
|
|
2313
|
+
function pf() {
|
|
2276
2314
|
if (gs) return un;
|
|
2277
2315
|
gs = 1;
|
|
2278
2316
|
var a = _i(), s = "__lodash_hash_undefined__";
|
|
@@ -2283,10 +2321,10 @@ function df() {
|
|
|
2283
2321
|
return un = r, un;
|
|
2284
2322
|
}
|
|
2285
2323
|
var cn, ps;
|
|
2286
|
-
function
|
|
2324
|
+
function vf() {
|
|
2287
2325
|
if (ps) return cn;
|
|
2288
2326
|
ps = 1;
|
|
2289
|
-
var a =
|
|
2327
|
+
var a = ff(), s = hf(), r = df(), t = gf(), e = pf();
|
|
2290
2328
|
function i(n) {
|
|
2291
2329
|
var o = -1, l = n == null ? 0 : n.length;
|
|
2292
2330
|
for (this.clear(); ++o < l; ) {
|
|
@@ -2297,10 +2335,10 @@ function gf() {
|
|
|
2297
2335
|
return i.prototype.clear = a, i.prototype.delete = s, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, cn = i, cn;
|
|
2298
2336
|
}
|
|
2299
2337
|
var fn, vs;
|
|
2300
|
-
function
|
|
2338
|
+
function mf() {
|
|
2301
2339
|
if (vs) return fn;
|
|
2302
2340
|
vs = 1;
|
|
2303
|
-
var a =
|
|
2341
|
+
var a = vf(), s = mi(), r = ia();
|
|
2304
2342
|
function t() {
|
|
2305
2343
|
this.size = 0, this.__data__ = {
|
|
2306
2344
|
hash: new a(),
|
|
@@ -2311,7 +2349,7 @@ function pf() {
|
|
|
2311
2349
|
return fn = t, fn;
|
|
2312
2350
|
}
|
|
2313
2351
|
var hn, ms;
|
|
2314
|
-
function
|
|
2352
|
+
function yf() {
|
|
2315
2353
|
if (ms) return hn;
|
|
2316
2354
|
ms = 1;
|
|
2317
2355
|
function a(s) {
|
|
@@ -2324,7 +2362,7 @@ var dn, ys;
|
|
|
2324
2362
|
function bi() {
|
|
2325
2363
|
if (ys) return dn;
|
|
2326
2364
|
ys = 1;
|
|
2327
|
-
var a =
|
|
2365
|
+
var a = yf();
|
|
2328
2366
|
function s(r, t) {
|
|
2329
2367
|
var e = r.__data__;
|
|
2330
2368
|
return a(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
@@ -2332,7 +2370,7 @@ function bi() {
|
|
|
2332
2370
|
return dn = s, dn;
|
|
2333
2371
|
}
|
|
2334
2372
|
var gn, _s;
|
|
2335
|
-
function
|
|
2373
|
+
function _f() {
|
|
2336
2374
|
if (_s) return gn;
|
|
2337
2375
|
_s = 1;
|
|
2338
2376
|
var a = bi();
|
|
@@ -2343,7 +2381,7 @@ function mf() {
|
|
|
2343
2381
|
return gn = s, gn;
|
|
2344
2382
|
}
|
|
2345
2383
|
var pn, bs;
|
|
2346
|
-
function
|
|
2384
|
+
function bf() {
|
|
2347
2385
|
if (bs) return pn;
|
|
2348
2386
|
bs = 1;
|
|
2349
2387
|
var a = bi();
|
|
@@ -2353,7 +2391,7 @@ function yf() {
|
|
|
2353
2391
|
return pn = s, pn;
|
|
2354
2392
|
}
|
|
2355
2393
|
var vn, ks;
|
|
2356
|
-
function
|
|
2394
|
+
function kf() {
|
|
2357
2395
|
if (ks) return vn;
|
|
2358
2396
|
ks = 1;
|
|
2359
2397
|
var a = bi();
|
|
@@ -2363,7 +2401,7 @@ function _f() {
|
|
|
2363
2401
|
return vn = s, vn;
|
|
2364
2402
|
}
|
|
2365
2403
|
var mn, Cs;
|
|
2366
|
-
function
|
|
2404
|
+
function Cf() {
|
|
2367
2405
|
if (Cs) return mn;
|
|
2368
2406
|
Cs = 1;
|
|
2369
2407
|
var a = bi();
|
|
@@ -2374,10 +2412,10 @@ function bf() {
|
|
|
2374
2412
|
return mn = s, mn;
|
|
2375
2413
|
}
|
|
2376
2414
|
var yn, Ts;
|
|
2377
|
-
function
|
|
2415
|
+
function Tf() {
|
|
2378
2416
|
if (Ts) return yn;
|
|
2379
2417
|
Ts = 1;
|
|
2380
|
-
var a =
|
|
2418
|
+
var a = mf(), s = _f(), r = bf(), t = kf(), e = Cf();
|
|
2381
2419
|
function i(n) {
|
|
2382
2420
|
var o = -1, l = n == null ? 0 : n.length;
|
|
2383
2421
|
for (this.clear(); ++o < l; ) {
|
|
@@ -2388,10 +2426,10 @@ function kf() {
|
|
|
2388
2426
|
return i.prototype.clear = a, i.prototype.delete = s, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, yn = i, yn;
|
|
2389
2427
|
}
|
|
2390
2428
|
var _n, ws;
|
|
2391
|
-
function
|
|
2429
|
+
function wf() {
|
|
2392
2430
|
if (ws) return _n;
|
|
2393
2431
|
ws = 1;
|
|
2394
|
-
var a = mi(), s = ia(), r =
|
|
2432
|
+
var a = mi(), s = ia(), r = Tf(), t = 200;
|
|
2395
2433
|
function e(i, n) {
|
|
2396
2434
|
var o = this.__data__;
|
|
2397
2435
|
if (o instanceof a) {
|
|
@@ -2405,10 +2443,10 @@ function Cf() {
|
|
|
2405
2443
|
return _n = e, _n;
|
|
2406
2444
|
}
|
|
2407
2445
|
var bn, Ss;
|
|
2408
|
-
function
|
|
2446
|
+
function Sf() {
|
|
2409
2447
|
if (Ss) return bn;
|
|
2410
2448
|
Ss = 1;
|
|
2411
|
-
var a = mi(), s =
|
|
2449
|
+
var a = mi(), s = ef(), r = tf(), t = nf(), e = rf(), i = wf();
|
|
2412
2450
|
function n(o) {
|
|
2413
2451
|
var l = this.__data__ = new a(o);
|
|
2414
2452
|
this.size = l.size;
|
|
@@ -2416,7 +2454,7 @@ function Tf() {
|
|
|
2416
2454
|
return n.prototype.clear = s, n.prototype.delete = r, n.prototype.get = t, n.prototype.has = e, n.prototype.set = i, bn = n, bn;
|
|
2417
2455
|
}
|
|
2418
2456
|
var kn, Es;
|
|
2419
|
-
function
|
|
2457
|
+
function Ef() {
|
|
2420
2458
|
if (Es) return kn;
|
|
2421
2459
|
Es = 1;
|
|
2422
2460
|
function a(s, r) {
|
|
@@ -2427,7 +2465,7 @@ function wf() {
|
|
|
2427
2465
|
return kn = a, kn;
|
|
2428
2466
|
}
|
|
2429
2467
|
var Cn, xs;
|
|
2430
|
-
function
|
|
2468
|
+
function xf() {
|
|
2431
2469
|
if (xs) return Cn;
|
|
2432
2470
|
xs = 1;
|
|
2433
2471
|
var a = at(), s = (function() {
|
|
@@ -2443,7 +2481,7 @@ var Tn, Is;
|
|
|
2443
2481
|
function xl() {
|
|
2444
2482
|
if (Is) return Tn;
|
|
2445
2483
|
Is = 1;
|
|
2446
|
-
var a =
|
|
2484
|
+
var a = xf();
|
|
2447
2485
|
function s(r, t, e) {
|
|
2448
2486
|
t == "__proto__" && a ? a(r, t, {
|
|
2449
2487
|
configurable: !0,
|
|
@@ -2482,7 +2520,7 @@ function ki() {
|
|
|
2482
2520
|
return Sn = r, Sn;
|
|
2483
2521
|
}
|
|
2484
2522
|
var En, Ls;
|
|
2485
|
-
function
|
|
2523
|
+
function If() {
|
|
2486
2524
|
if (Ls) return En;
|
|
2487
2525
|
Ls = 1;
|
|
2488
2526
|
function a(s, r) {
|
|
@@ -2502,7 +2540,7 @@ function Ht() {
|
|
|
2502
2540
|
return xn = a, xn;
|
|
2503
2541
|
}
|
|
2504
2542
|
var In, Ds;
|
|
2505
|
-
function
|
|
2543
|
+
function Pf() {
|
|
2506
2544
|
if (Ds) return In;
|
|
2507
2545
|
Ds = 1;
|
|
2508
2546
|
var a = yi(), s = Ht(), r = "[object Arguments]";
|
|
@@ -2512,10 +2550,10 @@ function xf() {
|
|
|
2512
2550
|
return In = t, In;
|
|
2513
2551
|
}
|
|
2514
2552
|
var Pn, Os;
|
|
2515
|
-
function
|
|
2553
|
+
function Af() {
|
|
2516
2554
|
if (Os) return Pn;
|
|
2517
2555
|
Os = 1;
|
|
2518
|
-
var a =
|
|
2556
|
+
var a = Pf(), s = Ht(), r = Object.prototype, t = r.hasOwnProperty, e = r.propertyIsEnumerable, i = a(/* @__PURE__ */ (function() {
|
|
2519
2557
|
return arguments;
|
|
2520
2558
|
})()) ? a : function(n) {
|
|
2521
2559
|
return s(n) && t.call(n, "callee") && !e.call(n, "callee");
|
|
@@ -2530,7 +2568,7 @@ function na() {
|
|
|
2530
2568
|
return An = a, An;
|
|
2531
2569
|
}
|
|
2532
2570
|
var Pt = { exports: {} }, Ln, Ms;
|
|
2533
|
-
function
|
|
2571
|
+
function Lf() {
|
|
2534
2572
|
if (Ms) return Ln;
|
|
2535
2573
|
Ms = 1;
|
|
2536
2574
|
function a() {
|
|
@@ -2542,12 +2580,12 @@ Pt.exports;
|
|
|
2542
2580
|
var Ns;
|
|
2543
2581
|
function Pl() {
|
|
2544
2582
|
return Ns || (Ns = 1, (function(a, s) {
|
|
2545
|
-
var r =
|
|
2583
|
+
var r = Le(), t = Lf(), e = s && !s.nodeType && s, i = e && !0 && a && !a.nodeType && a, n = i && i.exports === e, o = n ? r.Buffer : void 0, l = o ? o.isBuffer : void 0, u = l || t;
|
|
2546
2584
|
a.exports = u;
|
|
2547
2585
|
})(Pt, Pt.exports)), Pt.exports;
|
|
2548
2586
|
}
|
|
2549
2587
|
var Rn, Bs;
|
|
2550
|
-
function
|
|
2588
|
+
function Rf() {
|
|
2551
2589
|
if (Bs) return Rn;
|
|
2552
2590
|
Bs = 1;
|
|
2553
2591
|
var a = 9007199254740991, s = /^(?:0|[1-9]\d*)$/;
|
|
@@ -2568,7 +2606,7 @@ function Al() {
|
|
|
2568
2606
|
return Dn = s, Dn;
|
|
2569
2607
|
}
|
|
2570
2608
|
var On, Us;
|
|
2571
|
-
function
|
|
2609
|
+
function Df() {
|
|
2572
2610
|
if (Us) return On;
|
|
2573
2611
|
Us = 1;
|
|
2574
2612
|
var a = yi(), s = Al(), r = Ht(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", l = "[object Function]", u = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", p = "[object Set]", g = "[object String]", m = "[object WeakMap]", v = "[object ArrayBuffer]", C = "[object DataView]", b = "[object Float32Array]", k = "[object Float64Array]", R = "[object Int8Array]", E = "[object Int16Array]", L = "[object Int32Array]", z = "[object Uint8Array]", G = "[object Uint8ClampedArray]", V = "[object Uint16Array]", A = "[object Uint32Array]", F = {};
|
|
@@ -2605,17 +2643,17 @@ function aa() {
|
|
|
2605
2643
|
})(At, At.exports)), At.exports;
|
|
2606
2644
|
}
|
|
2607
2645
|
var Mn, Vs;
|
|
2608
|
-
function
|
|
2646
|
+
function Of() {
|
|
2609
2647
|
if (Vs) return Mn;
|
|
2610
2648
|
Vs = 1;
|
|
2611
|
-
var a =
|
|
2649
|
+
var a = Df(), s = ra(), r = aa(), t = r && r.isTypedArray, e = t ? s(t) : a;
|
|
2612
2650
|
return Mn = e, Mn;
|
|
2613
2651
|
}
|
|
2614
2652
|
var Nn, qs;
|
|
2615
2653
|
function Ll() {
|
|
2616
2654
|
if (qs) return Nn;
|
|
2617
2655
|
qs = 1;
|
|
2618
|
-
var a =
|
|
2656
|
+
var a = If(), s = Af(), r = na(), t = Pl(), e = Rf(), i = Of(), n = Object.prototype, o = n.hasOwnProperty;
|
|
2619
2657
|
function l(u, c) {
|
|
2620
2658
|
var f = r(u), d = !f && s(u), p = !f && !d && t(u), g = !f && !d && !p && i(u), m = f || d || p || g, v = m ? a(u.length, String) : [], C = v.length;
|
|
2621
2659
|
for (var b in u)
|
|
@@ -2651,17 +2689,17 @@ function Rl() {
|
|
|
2651
2689
|
return Hn = a, Hn;
|
|
2652
2690
|
}
|
|
2653
2691
|
var Un, $s;
|
|
2654
|
-
function
|
|
2692
|
+
function Ff() {
|
|
2655
2693
|
if ($s) return Un;
|
|
2656
2694
|
$s = 1;
|
|
2657
2695
|
var a = Rl(), s = a(Object.keys, Object);
|
|
2658
2696
|
return Un = s, Un;
|
|
2659
2697
|
}
|
|
2660
2698
|
var jn, Ks;
|
|
2661
|
-
function
|
|
2699
|
+
function Mf() {
|
|
2662
2700
|
if (Ks) return jn;
|
|
2663
2701
|
Ks = 1;
|
|
2664
|
-
var a = sa(), s =
|
|
2702
|
+
var a = sa(), s = Ff(), r = Object.prototype, t = r.hasOwnProperty;
|
|
2665
2703
|
function e(i) {
|
|
2666
2704
|
if (!a(i))
|
|
2667
2705
|
return s(i);
|
|
@@ -2686,14 +2724,14 @@ var Vn, Xs;
|
|
|
2686
2724
|
function oa() {
|
|
2687
2725
|
if (Xs) return Vn;
|
|
2688
2726
|
Xs = 1;
|
|
2689
|
-
var a = Ll(), s =
|
|
2727
|
+
var a = Ll(), s = Mf(), r = Dl();
|
|
2690
2728
|
function t(e) {
|
|
2691
2729
|
return r(e) ? a(e) : s(e);
|
|
2692
2730
|
}
|
|
2693
2731
|
return Vn = t, Vn;
|
|
2694
2732
|
}
|
|
2695
2733
|
var qn, Js;
|
|
2696
|
-
function
|
|
2734
|
+
function Nf() {
|
|
2697
2735
|
if (Js) return qn;
|
|
2698
2736
|
Js = 1;
|
|
2699
2737
|
var a = ki(), s = oa();
|
|
@@ -2703,7 +2741,7 @@ function Ff() {
|
|
|
2703
2741
|
return qn = r, qn;
|
|
2704
2742
|
}
|
|
2705
2743
|
var Gn, Zs;
|
|
2706
|
-
function
|
|
2744
|
+
function Bf() {
|
|
2707
2745
|
if (Zs) return Gn;
|
|
2708
2746
|
Zs = 1;
|
|
2709
2747
|
function a(s) {
|
|
@@ -2716,10 +2754,10 @@ function Mf() {
|
|
|
2716
2754
|
return Gn = a, Gn;
|
|
2717
2755
|
}
|
|
2718
2756
|
var Wn, Qs;
|
|
2719
|
-
function
|
|
2757
|
+
function Hf() {
|
|
2720
2758
|
if (Qs) return Wn;
|
|
2721
2759
|
Qs = 1;
|
|
2722
|
-
var a = Bt(), s = sa(), r =
|
|
2760
|
+
var a = Bt(), s = sa(), r = Bf(), t = Object.prototype, e = t.hasOwnProperty;
|
|
2723
2761
|
function i(n) {
|
|
2724
2762
|
if (!a(n))
|
|
2725
2763
|
return r(n);
|
|
@@ -2734,14 +2772,14 @@ var $n, eo;
|
|
|
2734
2772
|
function la() {
|
|
2735
2773
|
if (eo) return $n;
|
|
2736
2774
|
eo = 1;
|
|
2737
|
-
var a = Ll(), s =
|
|
2775
|
+
var a = Ll(), s = Hf(), r = Dl();
|
|
2738
2776
|
function t(e) {
|
|
2739
2777
|
return r(e) ? a(e, !0) : s(e);
|
|
2740
2778
|
}
|
|
2741
2779
|
return $n = t, $n;
|
|
2742
2780
|
}
|
|
2743
2781
|
var Kn, to;
|
|
2744
|
-
function
|
|
2782
|
+
function Uf() {
|
|
2745
2783
|
if (to) return Kn;
|
|
2746
2784
|
to = 1;
|
|
2747
2785
|
var a = ki(), s = la();
|
|
@@ -2753,9 +2791,9 @@ function Bf() {
|
|
|
2753
2791
|
var Lt = { exports: {} };
|
|
2754
2792
|
Lt.exports;
|
|
2755
2793
|
var io;
|
|
2756
|
-
function
|
|
2794
|
+
function jf() {
|
|
2757
2795
|
return io || (io = 1, (function(a, s) {
|
|
2758
|
-
var r =
|
|
2796
|
+
var r = Le(), t = s && !s.nodeType && s, e = t && !0 && a && !a.nodeType && a, i = e && e.exports === t, n = i ? r.Buffer : void 0, o = n ? n.allocUnsafe : void 0;
|
|
2759
2797
|
function l(u, c) {
|
|
2760
2798
|
if (c)
|
|
2761
2799
|
return u.slice();
|
|
@@ -2766,7 +2804,7 @@ function Hf() {
|
|
|
2766
2804
|
})(Lt, Lt.exports)), Lt.exports;
|
|
2767
2805
|
}
|
|
2768
2806
|
var Yn, no;
|
|
2769
|
-
function
|
|
2807
|
+
function zf() {
|
|
2770
2808
|
if (no) return Yn;
|
|
2771
2809
|
no = 1;
|
|
2772
2810
|
function a(s, r) {
|
|
@@ -2778,7 +2816,7 @@ function Uf() {
|
|
|
2778
2816
|
return Yn = a, Yn;
|
|
2779
2817
|
}
|
|
2780
2818
|
var Xn, ro;
|
|
2781
|
-
function
|
|
2819
|
+
function Vf() {
|
|
2782
2820
|
if (ro) return Xn;
|
|
2783
2821
|
ro = 1;
|
|
2784
2822
|
function a(s, r) {
|
|
@@ -2803,7 +2841,7 @@ var Zn, so;
|
|
|
2803
2841
|
function ua() {
|
|
2804
2842
|
if (so) return Zn;
|
|
2805
2843
|
so = 1;
|
|
2806
|
-
var a =
|
|
2844
|
+
var a = Vf(), s = Ol(), r = Object.prototype, t = r.propertyIsEnumerable, e = Object.getOwnPropertySymbols, i = e ? function(n) {
|
|
2807
2845
|
return n == null ? [] : (n = Object(n), a(e(n), function(o) {
|
|
2808
2846
|
return t.call(n, o);
|
|
2809
2847
|
}));
|
|
@@ -2811,7 +2849,7 @@ function ua() {
|
|
|
2811
2849
|
return Zn = i, Zn;
|
|
2812
2850
|
}
|
|
2813
2851
|
var Qn, oo;
|
|
2814
|
-
function
|
|
2852
|
+
function qf() {
|
|
2815
2853
|
if (oo) return Qn;
|
|
2816
2854
|
oo = 1;
|
|
2817
2855
|
var a = ki(), s = ua();
|
|
@@ -2850,7 +2888,7 @@ function Nl() {
|
|
|
2850
2888
|
return ir = i, ir;
|
|
2851
2889
|
}
|
|
2852
2890
|
var nr, fo;
|
|
2853
|
-
function
|
|
2891
|
+
function Gf() {
|
|
2854
2892
|
if (fo) return nr;
|
|
2855
2893
|
fo = 1;
|
|
2856
2894
|
var a = ki(), s = Nl();
|
|
@@ -2871,7 +2909,7 @@ function Bl() {
|
|
|
2871
2909
|
return rr = r, rr;
|
|
2872
2910
|
}
|
|
2873
2911
|
var ar, go;
|
|
2874
|
-
function
|
|
2912
|
+
function Wf() {
|
|
2875
2913
|
if (go) return ar;
|
|
2876
2914
|
go = 1;
|
|
2877
2915
|
var a = Bl(), s = ua(), r = oa();
|
|
@@ -2881,7 +2919,7 @@ function qf() {
|
|
|
2881
2919
|
return ar = t, ar;
|
|
2882
2920
|
}
|
|
2883
2921
|
var sr, po;
|
|
2884
|
-
function
|
|
2922
|
+
function $f() {
|
|
2885
2923
|
if (po) return sr;
|
|
2886
2924
|
po = 1;
|
|
2887
2925
|
var a = Bl(), s = Nl(), r = la();
|
|
@@ -2891,38 +2929,38 @@ function Gf() {
|
|
|
2891
2929
|
return sr = t, sr;
|
|
2892
2930
|
}
|
|
2893
2931
|
var or, vo;
|
|
2894
|
-
function
|
|
2932
|
+
function Kf() {
|
|
2895
2933
|
if (vo) return or;
|
|
2896
2934
|
vo = 1;
|
|
2897
|
-
var a = at(), s =
|
|
2935
|
+
var a = at(), s = Le(), r = a(s, "DataView");
|
|
2898
2936
|
return or = r, or;
|
|
2899
2937
|
}
|
|
2900
2938
|
var lr, mo;
|
|
2901
|
-
function
|
|
2939
|
+
function Yf() {
|
|
2902
2940
|
if (mo) return lr;
|
|
2903
2941
|
mo = 1;
|
|
2904
|
-
var a = at(), s =
|
|
2942
|
+
var a = at(), s = Le(), r = a(s, "Promise");
|
|
2905
2943
|
return lr = r, lr;
|
|
2906
2944
|
}
|
|
2907
2945
|
var ur, yo;
|
|
2908
|
-
function
|
|
2946
|
+
function Xf() {
|
|
2909
2947
|
if (yo) return ur;
|
|
2910
2948
|
yo = 1;
|
|
2911
|
-
var a = at(), s =
|
|
2949
|
+
var a = at(), s = Le(), r = a(s, "Set");
|
|
2912
2950
|
return ur = r, ur;
|
|
2913
2951
|
}
|
|
2914
2952
|
var cr, _o;
|
|
2915
|
-
function
|
|
2953
|
+
function Jf() {
|
|
2916
2954
|
if (_o) return cr;
|
|
2917
2955
|
_o = 1;
|
|
2918
|
-
var a = at(), s =
|
|
2956
|
+
var a = at(), s = Le(), r = a(s, "WeakMap");
|
|
2919
2957
|
return cr = r, cr;
|
|
2920
2958
|
}
|
|
2921
2959
|
var fr, bo;
|
|
2922
2960
|
function ca() {
|
|
2923
2961
|
if (bo) return fr;
|
|
2924
2962
|
bo = 1;
|
|
2925
|
-
var a =
|
|
2963
|
+
var a = Kf(), s = ia(), r = Yf(), t = Xf(), e = Jf(), i = yi(), n = El(), o = "[object Map]", l = "[object Object]", u = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", p = n(a), g = n(s), m = n(r), v = n(t), C = n(e), b = i;
|
|
2926
2964
|
return (a && b(new a(new ArrayBuffer(1))) != d || s && b(new s()) != o || r && b(r.resolve()) != u || t && b(new t()) != c || e && b(new e()) != f) && (b = function(k) {
|
|
2927
2965
|
var R = i(k), E = R == l ? k.constructor : void 0, L = E ? n(E) : "";
|
|
2928
2966
|
if (L)
|
|
@@ -2942,7 +2980,7 @@ function ca() {
|
|
|
2942
2980
|
}), fr = b, fr;
|
|
2943
2981
|
}
|
|
2944
2982
|
var hr, ko;
|
|
2945
|
-
function
|
|
2983
|
+
function Zf() {
|
|
2946
2984
|
if (ko) return hr;
|
|
2947
2985
|
ko = 1;
|
|
2948
2986
|
var a = Object.prototype, s = a.hasOwnProperty;
|
|
@@ -2953,17 +2991,17 @@ function Xf() {
|
|
|
2953
2991
|
return hr = r, hr;
|
|
2954
2992
|
}
|
|
2955
2993
|
var dr, Co;
|
|
2956
|
-
function
|
|
2994
|
+
function Qf() {
|
|
2957
2995
|
if (Co) return dr;
|
|
2958
2996
|
Co = 1;
|
|
2959
|
-
var a =
|
|
2997
|
+
var a = Le(), s = a.Uint8Array;
|
|
2960
2998
|
return dr = s, dr;
|
|
2961
2999
|
}
|
|
2962
3000
|
var gr, To;
|
|
2963
3001
|
function fa() {
|
|
2964
3002
|
if (To) return gr;
|
|
2965
3003
|
To = 1;
|
|
2966
|
-
var a =
|
|
3004
|
+
var a = Qf();
|
|
2967
3005
|
function s(r) {
|
|
2968
3006
|
var t = new r.constructor(r.byteLength);
|
|
2969
3007
|
return new a(t).set(new a(r)), t;
|
|
@@ -2971,7 +3009,7 @@ function fa() {
|
|
|
2971
3009
|
return gr = s, gr;
|
|
2972
3010
|
}
|
|
2973
3011
|
var pr, wo;
|
|
2974
|
-
function
|
|
3012
|
+
function eh() {
|
|
2975
3013
|
if (wo) return pr;
|
|
2976
3014
|
wo = 1;
|
|
2977
3015
|
var a = fa();
|
|
@@ -2982,7 +3020,7 @@ function Zf() {
|
|
|
2982
3020
|
return pr = s, pr;
|
|
2983
3021
|
}
|
|
2984
3022
|
var vr, So;
|
|
2985
|
-
function
|
|
3023
|
+
function th() {
|
|
2986
3024
|
if (So) return vr;
|
|
2987
3025
|
So = 1;
|
|
2988
3026
|
var a = /\w*$/;
|
|
@@ -2993,7 +3031,7 @@ function Qf() {
|
|
|
2993
3031
|
return vr = s, vr;
|
|
2994
3032
|
}
|
|
2995
3033
|
var mr, Eo;
|
|
2996
|
-
function
|
|
3034
|
+
function ih() {
|
|
2997
3035
|
if (Eo) return mr;
|
|
2998
3036
|
Eo = 1;
|
|
2999
3037
|
var a = ta(), s = a ? a.prototype : void 0, r = s ? s.valueOf : void 0;
|
|
@@ -3003,7 +3041,7 @@ function eh() {
|
|
|
3003
3041
|
return mr = t, mr;
|
|
3004
3042
|
}
|
|
3005
3043
|
var yr, xo;
|
|
3006
|
-
function
|
|
3044
|
+
function nh() {
|
|
3007
3045
|
if (xo) return yr;
|
|
3008
3046
|
xo = 1;
|
|
3009
3047
|
var a = fa();
|
|
@@ -3014,10 +3052,10 @@ function th() {
|
|
|
3014
3052
|
return yr = s, yr;
|
|
3015
3053
|
}
|
|
3016
3054
|
var _r, Io;
|
|
3017
|
-
function
|
|
3055
|
+
function rh() {
|
|
3018
3056
|
if (Io) return _r;
|
|
3019
3057
|
Io = 1;
|
|
3020
|
-
var a = fa(), s =
|
|
3058
|
+
var a = fa(), s = eh(), r = th(), t = ih(), e = nh(), i = "[object Boolean]", n = "[object Date]", o = "[object Map]", l = "[object Number]", u = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", p = "[object ArrayBuffer]", g = "[object DataView]", m = "[object Float32Array]", v = "[object Float64Array]", C = "[object Int8Array]", b = "[object Int16Array]", k = "[object Int32Array]", R = "[object Uint8Array]", E = "[object Uint8ClampedArray]", L = "[object Uint16Array]", z = "[object Uint32Array]";
|
|
3021
3059
|
function G(V, A, F) {
|
|
3022
3060
|
var ae = V.constructor;
|
|
3023
3061
|
switch (A) {
|
|
@@ -3054,7 +3092,7 @@ function ih() {
|
|
|
3054
3092
|
return _r = G, _r;
|
|
3055
3093
|
}
|
|
3056
3094
|
var br, Po;
|
|
3057
|
-
function
|
|
3095
|
+
function ah() {
|
|
3058
3096
|
if (Po) return br;
|
|
3059
3097
|
Po = 1;
|
|
3060
3098
|
var a = Bt(), s = Object.create, r = /* @__PURE__ */ (function() {
|
|
@@ -3073,17 +3111,17 @@ function nh() {
|
|
|
3073
3111
|
return br = r, br;
|
|
3074
3112
|
}
|
|
3075
3113
|
var kr, Ao;
|
|
3076
|
-
function
|
|
3114
|
+
function sh() {
|
|
3077
3115
|
if (Ao) return kr;
|
|
3078
3116
|
Ao = 1;
|
|
3079
|
-
var a =
|
|
3117
|
+
var a = ah(), s = Ml(), r = sa();
|
|
3080
3118
|
function t(e) {
|
|
3081
3119
|
return typeof e.constructor == "function" && !r(e) ? a(s(e)) : {};
|
|
3082
3120
|
}
|
|
3083
3121
|
return kr = t, kr;
|
|
3084
3122
|
}
|
|
3085
3123
|
var Cr, Lo;
|
|
3086
|
-
function
|
|
3124
|
+
function oh() {
|
|
3087
3125
|
if (Lo) return Cr;
|
|
3088
3126
|
Lo = 1;
|
|
3089
3127
|
var a = ca(), s = Ht(), r = "[object Map]";
|
|
@@ -3093,14 +3131,14 @@ function ah() {
|
|
|
3093
3131
|
return Cr = t, Cr;
|
|
3094
3132
|
}
|
|
3095
3133
|
var Tr, Ro;
|
|
3096
|
-
function
|
|
3134
|
+
function lh() {
|
|
3097
3135
|
if (Ro) return Tr;
|
|
3098
3136
|
Ro = 1;
|
|
3099
|
-
var a =
|
|
3137
|
+
var a = oh(), s = ra(), r = aa(), t = r && r.isMap, e = t ? s(t) : a;
|
|
3100
3138
|
return Tr = e, Tr;
|
|
3101
3139
|
}
|
|
3102
3140
|
var wr, Do;
|
|
3103
|
-
function
|
|
3141
|
+
function uh() {
|
|
3104
3142
|
if (Do) return wr;
|
|
3105
3143
|
Do = 1;
|
|
3106
3144
|
var a = ca(), s = Ht(), r = "[object Set]";
|
|
@@ -3110,21 +3148,21 @@ function oh() {
|
|
|
3110
3148
|
return wr = t, wr;
|
|
3111
3149
|
}
|
|
3112
3150
|
var Sr, Oo;
|
|
3113
|
-
function
|
|
3151
|
+
function ch() {
|
|
3114
3152
|
if (Oo) return Sr;
|
|
3115
3153
|
Oo = 1;
|
|
3116
|
-
var a =
|
|
3154
|
+
var a = uh(), s = ra(), r = aa(), t = r && r.isSet, e = t ? s(t) : a;
|
|
3117
3155
|
return Sr = e, Sr;
|
|
3118
3156
|
}
|
|
3119
3157
|
var Er, Fo;
|
|
3120
|
-
function
|
|
3158
|
+
function fh() {
|
|
3121
3159
|
if (Fo) return Er;
|
|
3122
3160
|
Fo = 1;
|
|
3123
|
-
var a =
|
|
3124
|
-
Z[V] = Z[A] = Z[ve] = Z[
|
|
3125
|
-
function $t(X, ut, ct, wu, Kt,
|
|
3161
|
+
var a = Sf(), s = Ef(), r = Il(), t = Nf(), e = Uf(), i = jf(), n = zf(), o = qf(), l = Gf(), u = Wf(), c = $f(), f = ca(), d = Zf(), p = rh(), g = sh(), m = na(), v = Pl(), C = lh(), b = Bt(), k = ch(), R = oa(), E = la(), L = 1, z = 2, G = 4, V = "[object Arguments]", A = "[object Array]", F = "[object Boolean]", ae = "[object Date]", pe = "[object Error]", Re = "[object Function]", zt = "[object GeneratorFunction]", Vt = "[object Map]", Tt = "[object Number]", wt = "[object Object]", qt = "[object RegExp]", De = "[object Set]", H = "[object String]", $ = "[object Symbol]", ne = "[object WeakMap]", ve = "[object ArrayBuffer]", Te = "[object DataView]", we = "[object Float32Array]", xe = "[object Float64Array]", Ze = "[object Int8Array]", Gt = "[object Int16Array]", Wt = "[object Int32Array]", St = "[object Uint8Array]", ku = "[object Uint8ClampedArray]", Cu = "[object Uint16Array]", Tu = "[object Uint32Array]", Z = {};
|
|
3162
|
+
Z[V] = Z[A] = Z[ve] = Z[Te] = Z[F] = Z[ae] = Z[we] = Z[xe] = Z[Ze] = Z[Gt] = Z[Wt] = Z[Vt] = Z[Tt] = Z[wt] = Z[qt] = Z[De] = Z[H] = Z[$] = Z[St] = Z[ku] = Z[Cu] = Z[Tu] = !0, Z[pe] = Z[Re] = Z[ne] = !1;
|
|
3163
|
+
function $t(X, ut, ct, wu, Kt, ze) {
|
|
3126
3164
|
var de, Yt = ut & L, Xt = ut & z, Su = ut & G;
|
|
3127
|
-
if (ct && (de = Kt ? ct(X, wu, Kt,
|
|
3165
|
+
if (ct && (de = Kt ? ct(X, wu, Kt, ze) : ct(X)), de !== void 0)
|
|
3128
3166
|
return de;
|
|
3129
3167
|
if (!b(X))
|
|
3130
3168
|
return X;
|
|
@@ -3133,7 +3171,7 @@ function uh() {
|
|
|
3133
3171
|
if (de = d(X), !Yt)
|
|
3134
3172
|
return n(X, de);
|
|
3135
3173
|
} else {
|
|
3136
|
-
var ft = f(X), Sa = ft ==
|
|
3174
|
+
var ft = f(X), Sa = ft == Re || ft == zt;
|
|
3137
3175
|
if (v(X))
|
|
3138
3176
|
return i(X, Yt);
|
|
3139
3177
|
if (ft == wt || ft == V || Sa && !Kt) {
|
|
@@ -3145,33 +3183,33 @@ function uh() {
|
|
|
3145
3183
|
de = p(X, ft, Yt);
|
|
3146
3184
|
}
|
|
3147
3185
|
}
|
|
3148
|
-
|
|
3149
|
-
var Ea =
|
|
3186
|
+
ze || (ze = new a());
|
|
3187
|
+
var Ea = ze.get(X);
|
|
3150
3188
|
if (Ea)
|
|
3151
3189
|
return Ea;
|
|
3152
|
-
|
|
3153
|
-
de.add($t(
|
|
3154
|
-
}) : C(X) && X.forEach(function(
|
|
3155
|
-
de.set(Qe, $t(
|
|
3190
|
+
ze.set(X, de), k(X) ? X.forEach(function(Ve) {
|
|
3191
|
+
de.add($t(Ve, ut, ct, Ve, X, ze));
|
|
3192
|
+
}) : C(X) && X.forEach(function(Ve, Qe) {
|
|
3193
|
+
de.set(Qe, $t(Ve, ut, ct, Qe, X, ze));
|
|
3156
3194
|
});
|
|
3157
3195
|
var Eu = Su ? Xt ? c : u : Xt ? E : R, xa = wa ? void 0 : Eu(X);
|
|
3158
|
-
return s(xa || X, function(
|
|
3159
|
-
xa && (Qe =
|
|
3196
|
+
return s(xa || X, function(Ve, Qe) {
|
|
3197
|
+
xa && (Qe = Ve, Ve = X[Qe]), r(de, Qe, $t(Ve, ut, ct, Qe, X, ze));
|
|
3160
3198
|
}), de;
|
|
3161
3199
|
}
|
|
3162
3200
|
return Er = $t, Er;
|
|
3163
3201
|
}
|
|
3164
3202
|
var xr, Mo;
|
|
3165
|
-
function
|
|
3203
|
+
function hh() {
|
|
3166
3204
|
if (Mo) return xr;
|
|
3167
3205
|
Mo = 1;
|
|
3168
|
-
var a =
|
|
3206
|
+
var a = fh(), s = 1, r = 4;
|
|
3169
3207
|
function t(e) {
|
|
3170
3208
|
return a(e, s | r);
|
|
3171
3209
|
}
|
|
3172
3210
|
return xr = t, xr;
|
|
3173
3211
|
}
|
|
3174
|
-
var
|
|
3212
|
+
var dh = hh(), gh = /* @__PURE__ */ Kc(dh), ha = ke({
|
|
3175
3213
|
name: "DocumentEditor",
|
|
3176
3214
|
props: {
|
|
3177
3215
|
id: {
|
|
@@ -3231,7 +3269,7 @@ var fh = ch(), hh = /* @__PURE__ */ Wc(fh), ha = Se({
|
|
|
3231
3269
|
var a = this, s, r = this.documentServerUrl;
|
|
3232
3270
|
r.endsWith("/") || (r += "/");
|
|
3233
3271
|
var t = "".concat(r, "web-apps/apps/api/documents/api.js");
|
|
3234
|
-
this.shardkey && (typeof this.shardkey == "boolean" ? t += "?shardkey=".concat((s = this.config.document) === null || s === void 0 ? void 0 : s.key) : t += "?shardkey=".concat(this.shardkey)),
|
|
3272
|
+
this.shardkey && (typeof this.shardkey == "boolean" ? t += "?shardkey=".concat((s = this.config.document) === null || s === void 0 ? void 0 : s.key) : t += "?shardkey=".concat(this.shardkey)), $c(t, "onlyoffice-api-script").then(function() {
|
|
3235
3273
|
return a.onLoad();
|
|
3236
3274
|
}).catch(function() {
|
|
3237
3275
|
a.onError(-2);
|
|
@@ -3280,7 +3318,7 @@ var fh = ch(), hh = /* @__PURE__ */ Wc(fh), ha = Se({
|
|
|
3280
3318
|
return;
|
|
3281
3319
|
}
|
|
3282
3320
|
!((s = window == null ? void 0 : window.DocEditor) === null || s === void 0) && s.instances || (window.DocEditor = { instances: {} });
|
|
3283
|
-
var t =
|
|
3321
|
+
var t = gh(this.config), e = {
|
|
3284
3322
|
documentType: this.documentType,
|
|
3285
3323
|
events: {
|
|
3286
3324
|
onAppReady: this.onAppReady,
|
|
@@ -3349,13 +3387,13 @@ var fh = ch(), hh = /* @__PURE__ */ Wc(fh), ha = Se({
|
|
|
3349
3387
|
}
|
|
3350
3388
|
}
|
|
3351
3389
|
});
|
|
3352
|
-
const
|
|
3353
|
-
function
|
|
3354
|
-
return T(), x("div", { id: a.id }, null, 8,
|
|
3390
|
+
const ph = ["id"];
|
|
3391
|
+
function vh(a, s, r, t, e, i) {
|
|
3392
|
+
return T(), x("div", { id: a.id }, null, 8, ph);
|
|
3355
3393
|
}
|
|
3356
|
-
ha.render =
|
|
3394
|
+
ha.render = vh;
|
|
3357
3395
|
ha.__file = "src/components/DocumentEditor.vue";
|
|
3358
|
-
const
|
|
3396
|
+
const mh = /* @__PURE__ */ ke({
|
|
3359
3397
|
__name: "IkOnlyOffice",
|
|
3360
3398
|
props: {
|
|
3361
3399
|
// 文件服务器的服务的地址
|
|
@@ -3387,7 +3425,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3387
3425
|
return (e, i) => (T(), x(
|
|
3388
3426
|
"div",
|
|
3389
3427
|
{
|
|
3390
|
-
style:
|
|
3428
|
+
style: le({ height: s.officeHeight })
|
|
3391
3429
|
},
|
|
3392
3430
|
[
|
|
3393
3431
|
K(I(ha), {
|
|
@@ -3402,7 +3440,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3402
3440
|
/* STYLE */
|
|
3403
3441
|
));
|
|
3404
3442
|
}
|
|
3405
|
-
}),
|
|
3443
|
+
}), yh = Ae(mh), _h = {
|
|
3406
3444
|
/**
|
|
3407
3445
|
* @description preview link list.
|
|
3408
3446
|
*/
|
|
@@ -3472,15 +3510,15 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3472
3510
|
crossorigin: {
|
|
3473
3511
|
type: ["anonymous", "use-credentials", ""]
|
|
3474
3512
|
}
|
|
3475
|
-
},
|
|
3513
|
+
}, bh = {
|
|
3476
3514
|
close: () => !0,
|
|
3477
3515
|
switch: (a) => Gr.isNumber(a),
|
|
3478
3516
|
rotate: (a) => Gr.isNumber(a)
|
|
3479
|
-
},
|
|
3517
|
+
}, kh = ["src", "crossorigin"], Ch = /* @__PURE__ */ ke({
|
|
3480
3518
|
name: "ElImageViewer",
|
|
3481
3519
|
__name: "IkImageViewer",
|
|
3482
|
-
props:
|
|
3483
|
-
emits:
|
|
3520
|
+
props: _h,
|
|
3521
|
+
emits: bh,
|
|
3484
3522
|
setup(a, { expose: s, emit: r }) {
|
|
3485
3523
|
const t = (H) => Object.keys(H), e = {
|
|
3486
3524
|
CONTAIN: {
|
|
@@ -3497,25 +3535,25 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3497
3535
|
offsetX: 0,
|
|
3498
3536
|
offsetY: 0,
|
|
3499
3537
|
enableTransition: !1
|
|
3500
|
-
}), C = ye(i.zIndex ?? u()), b =
|
|
3538
|
+
}), C = ye(i.zIndex ?? u()), b = Q(() => {
|
|
3501
3539
|
const { urlList: H } = i;
|
|
3502
3540
|
return H.length <= 1;
|
|
3503
|
-
}), k =
|
|
3541
|
+
}), k = Q(() => g.value === 0), R = Q(() => g.value === i.urlList.length - 1), E = Q(() => i.urlList[g.value]), L = Q(() => [
|
|
3504
3542
|
l.e("btn"),
|
|
3505
3543
|
l.e("prev"),
|
|
3506
3544
|
l.is("disabled", !i.infinite && k.value)
|
|
3507
|
-
]), z =
|
|
3545
|
+
]), z = Q(() => [
|
|
3508
3546
|
l.e("btn"),
|
|
3509
3547
|
l.e("next"),
|
|
3510
3548
|
l.is("disabled", !i.infinite && R.value)
|
|
3511
|
-
]), G =
|
|
3512
|
-
const { scale: H, deg: $, offsetX: ne, offsetY: ve, enableTransition:
|
|
3513
|
-
let
|
|
3549
|
+
]), G = Q(() => {
|
|
3550
|
+
const { scale: H, deg: $, offsetX: ne, offsetY: ve, enableTransition: Te } = v.value;
|
|
3551
|
+
let we = ne / H, xe = ve / H;
|
|
3514
3552
|
const Ze = $ * Math.PI / 180, Gt = Math.cos(Ze), Wt = Math.sin(Ze);
|
|
3515
|
-
|
|
3553
|
+
we = we * Gt + xe * Wt, xe = xe * Gt - ne / H * Wt;
|
|
3516
3554
|
const St = {
|
|
3517
|
-
transform: `scale(${H}) rotate(${$}deg) translate(${
|
|
3518
|
-
transition:
|
|
3555
|
+
transform: `scale(${H}) rotate(${$}deg) translate(${we}px, ${xe}px)`,
|
|
3556
|
+
transition: Te ? "transform .3s" : ""
|
|
3519
3557
|
};
|
|
3520
3558
|
return m.value.name === e.CONTAIN.name && (St.maxWidth = St.maxHeight = "100%"), St;
|
|
3521
3559
|
});
|
|
@@ -3539,7 +3577,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3539
3577
|
break;
|
|
3540
3578
|
// UP_ARROW
|
|
3541
3579
|
case ht.up:
|
|
3542
|
-
|
|
3580
|
+
De("zoomIn");
|
|
3543
3581
|
break;
|
|
3544
3582
|
// RIGHT_ARROW
|
|
3545
3583
|
case ht.right:
|
|
@@ -3547,12 +3585,12 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3547
3585
|
break;
|
|
3548
3586
|
// DOWN_ARROW
|
|
3549
3587
|
case ht.down:
|
|
3550
|
-
|
|
3588
|
+
De("zoomOut");
|
|
3551
3589
|
break;
|
|
3552
3590
|
}
|
|
3553
3591
|
}), $ = Ii.throttle((ne) => {
|
|
3554
3592
|
const ve = ne.deltaY || ne.deltaX;
|
|
3555
|
-
|
|
3593
|
+
De(ve < 0 ? "zoomIn" : "zoomOut", {
|
|
3556
3594
|
zoomRate: i.zoomRate,
|
|
3557
3595
|
enableTransition: !1
|
|
3558
3596
|
});
|
|
@@ -3570,16 +3608,16 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3570
3608
|
function pe(H) {
|
|
3571
3609
|
p.value = !1, H.target.alt = o("el.image.error");
|
|
3572
3610
|
}
|
|
3573
|
-
function
|
|
3611
|
+
function Re(H) {
|
|
3574
3612
|
if (p.value || H.button !== 0 || !c.value) return;
|
|
3575
3613
|
v.value.enableTransition = !1;
|
|
3576
|
-
const { offsetX: $, offsetY: ne } = v.value, ve = H.pageX,
|
|
3614
|
+
const { offsetX: $, offsetY: ne } = v.value, ve = H.pageX, Te = H.pageY, we = Ii.throttle((Ze) => {
|
|
3577
3615
|
v.value = {
|
|
3578
3616
|
...v.value,
|
|
3579
3617
|
offsetX: $ + Ze.pageX - ve,
|
|
3580
|
-
offsetY: ne + Ze.pageY -
|
|
3618
|
+
offsetY: ne + Ze.pageY - Te
|
|
3581
3619
|
};
|
|
3582
|
-
}), xe = Jt(document, "mousemove",
|
|
3620
|
+
}), xe = Jt(document, "mousemove", we);
|
|
3583
3621
|
Jt(document, "mouseup", () => {
|
|
3584
3622
|
xe();
|
|
3585
3623
|
}), H.preventDefault();
|
|
@@ -3595,8 +3633,8 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3595
3633
|
}
|
|
3596
3634
|
function Vt() {
|
|
3597
3635
|
if (p.value) return;
|
|
3598
|
-
const H = t(e), $ = Object.values(e), ne = m.value.name,
|
|
3599
|
-
m.value = e[H[
|
|
3636
|
+
const H = t(e), $ = Object.values(e), ne = m.value.name, Te = (($ == null ? void 0 : $.findIndex((we) => we.name === ne)) + 1) % H.length;
|
|
3637
|
+
m.value = e[H[Te]], zt();
|
|
3600
3638
|
}
|
|
3601
3639
|
function Tt(H) {
|
|
3602
3640
|
const $ = i.urlList.length;
|
|
@@ -3608,9 +3646,9 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3608
3646
|
function qt() {
|
|
3609
3647
|
R.value && !i.infinite || Tt(g.value + 1);
|
|
3610
3648
|
}
|
|
3611
|
-
function
|
|
3649
|
+
function De(H, $ = {}) {
|
|
3612
3650
|
if (p.value) return;
|
|
3613
|
-
const { minScale: ne, maxScale: ve } = i, { zoomRate:
|
|
3651
|
+
const { minScale: ne, maxScale: ve } = i, { zoomRate: Te, rotateDeg: we, enableTransition: xe } = {
|
|
3614
3652
|
zoomRate: i.zoomRate,
|
|
3615
3653
|
rotateDeg: 90,
|
|
3616
3654
|
enableTransition: !0,
|
|
@@ -3619,19 +3657,19 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3619
3657
|
switch (H) {
|
|
3620
3658
|
case "zoomOut":
|
|
3621
3659
|
v.value.scale > ne && (v.value.scale = Number.parseFloat(
|
|
3622
|
-
(v.value.scale /
|
|
3660
|
+
(v.value.scale / Te).toFixed(3)
|
|
3623
3661
|
));
|
|
3624
3662
|
break;
|
|
3625
3663
|
case "zoomIn":
|
|
3626
3664
|
v.value.scale < ve && (v.value.scale = Number.parseFloat(
|
|
3627
|
-
(v.value.scale *
|
|
3665
|
+
(v.value.scale * Te).toFixed(3)
|
|
3628
3666
|
));
|
|
3629
3667
|
break;
|
|
3630
3668
|
case "clockwise":
|
|
3631
|
-
v.value.deg +=
|
|
3669
|
+
v.value.deg += we, n("rotate", v.value.deg);
|
|
3632
3670
|
break;
|
|
3633
3671
|
case "anticlockwise":
|
|
3634
|
-
v.value.deg -=
|
|
3672
|
+
v.value.deg -= we, n("rotate", v.value.deg);
|
|
3635
3673
|
break;
|
|
3636
3674
|
}
|
|
3637
3675
|
v.value.enableTransition = xe;
|
|
@@ -3651,7 +3689,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3651
3689
|
* @description manually switch image
|
|
3652
3690
|
*/
|
|
3653
3691
|
setActiveItem: Tt
|
|
3654
|
-
}), (H, $) => (T(),
|
|
3692
|
+
}), (H, $) => (T(), oe(vl, { to: "body" }, [
|
|
3655
3693
|
K(ml, {
|
|
3656
3694
|
name: "viewer-fade",
|
|
3657
3695
|
appear: ""
|
|
@@ -3664,7 +3702,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3664
3702
|
ref: c,
|
|
3665
3703
|
tabindex: -1,
|
|
3666
3704
|
class: ie(I(l).e("wrapper")),
|
|
3667
|
-
style:
|
|
3705
|
+
style: le({ zIndex: C.value })
|
|
3668
3706
|
},
|
|
3669
3707
|
[
|
|
3670
3708
|
w(
|
|
@@ -3685,7 +3723,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3685
3723
|
onClick: V
|
|
3686
3724
|
},
|
|
3687
3725
|
[
|
|
3688
|
-
K(I(
|
|
3726
|
+
K(I(qe), null, {
|
|
3689
3727
|
default: re(() => [
|
|
3690
3728
|
K(I(bl))
|
|
3691
3729
|
]),
|
|
@@ -3708,7 +3746,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3708
3746
|
onClick: wt
|
|
3709
3747
|
},
|
|
3710
3748
|
[
|
|
3711
|
-
K(I(
|
|
3749
|
+
K(I(qe), null, {
|
|
3712
3750
|
default: re(() => [
|
|
3713
3751
|
K(I(Uu))
|
|
3714
3752
|
]),
|
|
@@ -3726,7 +3764,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3726
3764
|
onClick: qt
|
|
3727
3765
|
},
|
|
3728
3766
|
[
|
|
3729
|
-
K(I(
|
|
3767
|
+
K(I(qe), null, {
|
|
3730
3768
|
default: re(() => [
|
|
3731
3769
|
K(I(ju))
|
|
3732
3770
|
]),
|
|
@@ -3754,8 +3792,8 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3754
3792
|
class: ie(I(l).e("actions__inner"))
|
|
3755
3793
|
},
|
|
3756
3794
|
[
|
|
3757
|
-
K(I(
|
|
3758
|
-
onClick: $[1] || ($[1] = (ne) =>
|
|
3795
|
+
K(I(qe), {
|
|
3796
|
+
onClick: $[1] || ($[1] = (ne) => De("zoomOut"))
|
|
3759
3797
|
}, {
|
|
3760
3798
|
default: re(() => [
|
|
3761
3799
|
K(I(zu))
|
|
@@ -3763,8 +3801,8 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3763
3801
|
_: 1
|
|
3764
3802
|
/* STABLE */
|
|
3765
3803
|
}),
|
|
3766
|
-
K(I(
|
|
3767
|
-
onClick: $[2] || ($[2] = (ne) =>
|
|
3804
|
+
K(I(qe), {
|
|
3805
|
+
onClick: $[2] || ($[2] = (ne) => De("zoomIn"))
|
|
3768
3806
|
}, {
|
|
3769
3807
|
default: re(() => [
|
|
3770
3808
|
K(I(Vu))
|
|
@@ -3781,9 +3819,9 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3781
3819
|
2
|
|
3782
3820
|
/* CLASS */
|
|
3783
3821
|
),
|
|
3784
|
-
K(I(
|
|
3822
|
+
K(I(qe), { onClick: Vt }, {
|
|
3785
3823
|
default: re(() => [
|
|
3786
|
-
(T(),
|
|
3824
|
+
(T(), oe(Lu(m.value.icon)))
|
|
3787
3825
|
]),
|
|
3788
3826
|
_: 1
|
|
3789
3827
|
/* STABLE */
|
|
@@ -3797,8 +3835,8 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3797
3835
|
2
|
|
3798
3836
|
/* CLASS */
|
|
3799
3837
|
),
|
|
3800
|
-
K(I(
|
|
3801
|
-
onClick: $[3] || ($[3] = (ne) =>
|
|
3838
|
+
K(I(qe), {
|
|
3839
|
+
onClick: $[3] || ($[3] = (ne) => De("anticlockwise"))
|
|
3802
3840
|
}, {
|
|
3803
3841
|
default: re(() => [
|
|
3804
3842
|
K(I(qu))
|
|
@@ -3806,8 +3844,8 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3806
3844
|
_: 1
|
|
3807
3845
|
/* STABLE */
|
|
3808
3846
|
}),
|
|
3809
|
-
K(I(
|
|
3810
|
-
onClick: $[4] || ($[4] = (ne) =>
|
|
3847
|
+
K(I(qe), {
|
|
3848
|
+
onClick: $[4] || ($[4] = (ne) => De("clockwise"))
|
|
3811
3849
|
}, {
|
|
3812
3850
|
default: re(() => [
|
|
3813
3851
|
K(I(Gu))
|
|
@@ -3833,18 +3871,18 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3833
3871
|
(T(!0), x(
|
|
3834
3872
|
se,
|
|
3835
3873
|
null,
|
|
3836
|
-
|
|
3874
|
+
Me(H.urlList, (ne, ve) => Ru((T(), x("img", {
|
|
3837
3875
|
ref_for: !0,
|
|
3838
|
-
ref: (
|
|
3876
|
+
ref: (Te) => f.value[ve] = Te,
|
|
3839
3877
|
key: ne,
|
|
3840
3878
|
src: ne,
|
|
3841
|
-
style:
|
|
3879
|
+
style: le(G.value),
|
|
3842
3880
|
class: ie(I(l).e("img")),
|
|
3843
3881
|
crossorigin: H.crossorigin,
|
|
3844
3882
|
onLoad: ae,
|
|
3845
3883
|
onError: pe,
|
|
3846
|
-
onMousedown:
|
|
3847
|
-
}, null, 46,
|
|
3884
|
+
onMousedown: Re
|
|
3885
|
+
}, null, 46, kh)), [
|
|
3848
3886
|
[Du, ve === g.value]
|
|
3849
3887
|
])),
|
|
3850
3888
|
128
|
|
@@ -3854,7 +3892,7 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3854
3892
|
2
|
|
3855
3893
|
/* CLASS */
|
|
3856
3894
|
),
|
|
3857
|
-
|
|
3895
|
+
Ne(H.$slots, "default")
|
|
3858
3896
|
],
|
|
3859
3897
|
6
|
|
3860
3898
|
/* CLASS, STYLE */
|
|
@@ -3865,8 +3903,8 @@ const ph = /* @__PURE__ */ Se({
|
|
|
3865
3903
|
})
|
|
3866
3904
|
]));
|
|
3867
3905
|
}
|
|
3868
|
-
}),
|
|
3869
|
-
function
|
|
3906
|
+
}), Th = Ae(Ch);
|
|
3907
|
+
function wh(a, s) {
|
|
3870
3908
|
var r = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
3871
3909
|
if (r != null) {
|
|
3872
3910
|
var t, e, i, n, o = [], l = !0, u = !1;
|
|
@@ -3962,7 +4000,7 @@ function Wr(a, s) {
|
|
|
3962
4000
|
return t.__proto__ = e, t;
|
|
3963
4001
|
}, Wr(a, s);
|
|
3964
4002
|
}
|
|
3965
|
-
function
|
|
4003
|
+
function Sh() {
|
|
3966
4004
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
3967
4005
|
return !1;
|
|
3968
4006
|
if (typeof Proxy == "function")
|
|
@@ -3987,7 +4025,7 @@ function da(a, s) {
|
|
|
3987
4025
|
return y(a);
|
|
3988
4026
|
}
|
|
3989
4027
|
function N(a) {
|
|
3990
|
-
var s =
|
|
4028
|
+
var s = Sh();
|
|
3991
4029
|
return function() {
|
|
3992
4030
|
var t = B(a), e;
|
|
3993
4031
|
if (s) {
|
|
@@ -3998,35 +4036,35 @@ function N(a) {
|
|
|
3998
4036
|
return da(this, e);
|
|
3999
4037
|
};
|
|
4000
4038
|
}
|
|
4001
|
-
function
|
|
4039
|
+
function Eh(a, s) {
|
|
4002
4040
|
for (; !Object.prototype.hasOwnProperty.call(a, s) && (a = B(a), a !== null); )
|
|
4003
4041
|
;
|
|
4004
4042
|
return a;
|
|
4005
4043
|
}
|
|
4006
4044
|
function U() {
|
|
4007
4045
|
return typeof Reflect < "u" && Reflect.get ? U = Reflect.get.bind() : U = function(s, r, t) {
|
|
4008
|
-
var e =
|
|
4046
|
+
var e = Eh(s, r);
|
|
4009
4047
|
if (e) {
|
|
4010
4048
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
4011
4049
|
return i.get ? i.get.call(arguments.length < 3 ? s : t) : i.value;
|
|
4012
4050
|
}
|
|
4013
4051
|
}, U.apply(this, arguments);
|
|
4014
4052
|
}
|
|
4015
|
-
function
|
|
4016
|
-
return
|
|
4053
|
+
function xh(a, s) {
|
|
4054
|
+
return Ph(a) || wh(a, s) || Hl(a, s) || Rh();
|
|
4017
4055
|
}
|
|
4018
4056
|
function Ee(a) {
|
|
4019
|
-
return
|
|
4057
|
+
return Ih(a) || Ah(a) || Hl(a) || Lh();
|
|
4020
4058
|
}
|
|
4021
|
-
function
|
|
4059
|
+
function Ih(a) {
|
|
4022
4060
|
if (Array.isArray(a))
|
|
4023
4061
|
return $r(a);
|
|
4024
4062
|
}
|
|
4025
|
-
function
|
|
4063
|
+
function Ph(a) {
|
|
4026
4064
|
if (Array.isArray(a))
|
|
4027
4065
|
return a;
|
|
4028
4066
|
}
|
|
4029
|
-
function
|
|
4067
|
+
function Ah(a) {
|
|
4030
4068
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
4031
4069
|
return Array.from(a);
|
|
4032
4070
|
}
|
|
@@ -4047,15 +4085,15 @@ function $r(a, s) {
|
|
|
4047
4085
|
t[r] = a[r];
|
|
4048
4086
|
return t;
|
|
4049
4087
|
}
|
|
4050
|
-
function
|
|
4088
|
+
function Lh() {
|
|
4051
4089
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4052
4090
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4053
4091
|
}
|
|
4054
|
-
function
|
|
4092
|
+
function Rh() {
|
|
4055
4093
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4056
4094
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4057
4095
|
}
|
|
4058
|
-
function
|
|
4096
|
+
function Dh(a, s) {
|
|
4059
4097
|
if (typeof a != "object" || a === null)
|
|
4060
4098
|
return a;
|
|
4061
4099
|
var r = a[Symbol.toPrimitive];
|
|
@@ -4068,11 +4106,11 @@ function Lh(a, s) {
|
|
|
4068
4106
|
return (s === "string" ? String : Number)(a);
|
|
4069
4107
|
}
|
|
4070
4108
|
function Ul(a) {
|
|
4071
|
-
var s =
|
|
4109
|
+
var s = Dh(a, "string");
|
|
4072
4110
|
return typeof s == "symbol" ? s : String(s);
|
|
4073
4111
|
}
|
|
4074
4112
|
var Ir = { exports: {} }, Ho;
|
|
4075
|
-
function
|
|
4113
|
+
function Oh() {
|
|
4076
4114
|
return Ho || (Ho = 1, (function(a) {
|
|
4077
4115
|
var s = Object.prototype.hasOwnProperty, r = "~";
|
|
4078
4116
|
function t() {
|
|
@@ -4178,15 +4216,15 @@ function Rh() {
|
|
|
4178
4216
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, a.exports = o;
|
|
4179
4217
|
})(Ir)), Ir.exports;
|
|
4180
4218
|
}
|
|
4181
|
-
var jl =
|
|
4219
|
+
var jl = Oh();
|
|
4182
4220
|
const zl = /* @__PURE__ */ Cl(jl);
|
|
4183
|
-
var
|
|
4221
|
+
var Fh = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Pr = {
|
|
4184
4222
|
info: "color: #525252; background-color: #90ee90;",
|
|
4185
4223
|
error: "color: #525252; background-color: red;",
|
|
4186
4224
|
warn: "color: #525252; background-color: yellow; "
|
|
4187
4225
|
}, Ar = "%c[xgplayer]", q = {
|
|
4188
4226
|
config: {
|
|
4189
|
-
debug:
|
|
4227
|
+
debug: Fh ? 3 : 0
|
|
4190
4228
|
},
|
|
4191
4229
|
logInfo: function(s) {
|
|
4192
4230
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -4207,10 +4245,10 @@ var Dh = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
4207
4245
|
}
|
|
4208
4246
|
}
|
|
4209
4247
|
};
|
|
4210
|
-
function
|
|
4248
|
+
function Mh(a) {
|
|
4211
4249
|
a.logInfo = q.logInfo.bind(a), a.logWarn = q.logWarn.bind(a), a.logError = q.logError.bind(a);
|
|
4212
4250
|
}
|
|
4213
|
-
var
|
|
4251
|
+
var Nh = /* @__PURE__ */ (function() {
|
|
4214
4252
|
function a(s) {
|
|
4215
4253
|
D(this, a), this.bufferedList = s;
|
|
4216
4254
|
}
|
|
@@ -4455,7 +4493,7 @@ h.setStyleFromCsstext = function(a, s) {
|
|
|
4455
4493
|
a.style[t] = s[t];
|
|
4456
4494
|
});
|
|
4457
4495
|
};
|
|
4458
|
-
function
|
|
4496
|
+
function Bh(a, s) {
|
|
4459
4497
|
for (var r = 0, t = s.length; r < t; r++)
|
|
4460
4498
|
if (a.indexOf(s[r]) > -1)
|
|
4461
4499
|
return !0;
|
|
@@ -4469,7 +4507,7 @@ h.filterStyleFromText = function(a) {
|
|
|
4469
4507
|
return t.map(function(n) {
|
|
4470
4508
|
if (n) {
|
|
4471
4509
|
var o = n.split(":");
|
|
4472
|
-
o.length > 1 && (
|
|
4510
|
+
o.length > 1 && (Bh(o[0], s) ? e[o[0]] = o[1] : i[o[0]] = o[1]);
|
|
4473
4511
|
}
|
|
4474
4512
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
4475
4513
|
a.style[n] = i[n];
|
|
@@ -4534,7 +4572,7 @@ h.getBuffered2 = function(a) {
|
|
|
4534
4572
|
}
|
|
4535
4573
|
else
|
|
4536
4574
|
e = r;
|
|
4537
|
-
return new
|
|
4575
|
+
return new Nh(e);
|
|
4538
4576
|
};
|
|
4539
4577
|
h.getEventPos = function(a) {
|
|
4540
4578
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -4658,7 +4696,7 @@ function Vl(a) {
|
|
|
4658
4696
|
var s = fe(a);
|
|
4659
4697
|
return a !== null && (s === "object" || s === "function");
|
|
4660
4698
|
}
|
|
4661
|
-
function
|
|
4699
|
+
function Hh(a, s, r) {
|
|
4662
4700
|
var t, e, i, n, o, l, u = 0, c = !1, f = !1, d = !0, p = !s && s !== 0 && typeof window.requestAnimationFrame == "function";
|
|
4663
4701
|
if (typeof a != "function")
|
|
4664
4702
|
throw new TypeError("Expected a function");
|
|
@@ -4705,8 +4743,8 @@ function Nh(a, s, r) {
|
|
|
4705
4743
|
return o !== void 0;
|
|
4706
4744
|
}
|
|
4707
4745
|
function V() {
|
|
4708
|
-
for (var A = Date.now(), F = k(A), ae = arguments.length, pe = new Array(ae),
|
|
4709
|
-
pe[
|
|
4746
|
+
for (var A = Date.now(), F = k(A), ae = arguments.length, pe = new Array(ae), Re = 0; Re < ae; Re++)
|
|
4747
|
+
pe[Re] = arguments[Re];
|
|
4710
4748
|
if (t = pe, e = this, l = A, F) {
|
|
4711
4749
|
if (o === void 0)
|
|
4712
4750
|
return C(l);
|
|
@@ -4717,21 +4755,21 @@ function Nh(a, s, r) {
|
|
|
4717
4755
|
}
|
|
4718
4756
|
return V.cancel = L, V.flush = z, V.pending = G, V;
|
|
4719
4757
|
}
|
|
4720
|
-
function
|
|
4758
|
+
function Uh(a, s, r) {
|
|
4721
4759
|
var t = !0, e = !0;
|
|
4722
4760
|
if (typeof a != "function")
|
|
4723
4761
|
throw new TypeError("Expected a function");
|
|
4724
|
-
return Vl(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
4762
|
+
return Vl(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Hh(a, s, {
|
|
4725
4763
|
leading: t,
|
|
4726
4764
|
trailing: e,
|
|
4727
4765
|
maxWait: s
|
|
4728
4766
|
});
|
|
4729
4767
|
}
|
|
4730
|
-
function
|
|
4768
|
+
function jh() {
|
|
4731
4769
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
4732
4770
|
return a === "zh-cn" && (a = "zh"), a;
|
|
4733
4771
|
}
|
|
4734
|
-
function
|
|
4772
|
+
function zh(a, s, r) {
|
|
4735
4773
|
if (a) {
|
|
4736
4774
|
var t = a.getAttribute(r);
|
|
4737
4775
|
return !!(t && t === s && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -4741,7 +4779,7 @@ var Lr = {
|
|
|
4741
4779
|
android: /(Android)\s([\d.]+)/,
|
|
4742
4780
|
harmony: /(OpenHarmony|HarmonyOS)\s([\d.]+)/,
|
|
4743
4781
|
ios: /(Version)\/([\d.]+)/
|
|
4744
|
-
},
|
|
4782
|
+
}, Vh = ["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", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], j = {
|
|
4745
4783
|
get device() {
|
|
4746
4784
|
var a = j.os;
|
|
4747
4785
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -4807,7 +4845,7 @@ var Lr = {
|
|
|
4807
4845
|
if (this.supportResult)
|
|
4808
4846
|
return this.supportResult;
|
|
4809
4847
|
var r = document.createElement("video");
|
|
4810
|
-
return typeof r.canPlayType == "function" &&
|
|
4848
|
+
return typeof r.canPlayType == "function" && Vh.map(function(t) {
|
|
4811
4849
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (s.isSupport = !0, s.mime += "||".concat(t));
|
|
4812
4850
|
}), this.supportResult = s, r = null, s;
|
|
4813
4851
|
},
|
|
@@ -4902,42 +4940,42 @@ var Lr = {
|
|
|
4902
4940
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
4903
4941
|
}
|
|
4904
4942
|
}
|
|
4905
|
-
),
|
|
4943
|
+
), Ce = "play", Ci = "playing", st = "ended", Ct = "pause", Ut = "error", Ti = "seeking", He = "seeked", be = "timeupdate", jt = "waiting", Be = "canplay", qh = "canplaythrough", je = "durationchange", ql = "volumechange", Ue = "loadeddata", Gh = "loadedmetadata", Gl = "ratechange", Wl = "progress", ga = "loadstart", ot = "emptied", Wh = "stalled", $h = "suspend", Kh = "abort", Yh = "bufferedChange", pa = "focus", $l = "blur", va = "ready", Kl = "urlNull", rt = "autoplay_started", ma = "autoplay_was_prevented", wi = "complete", ai = "replay", ya = "destroy", Si = "urlchange", Yr = "download_speed_change", Yl = "leaveplayer", Xl = "enterplayer", Jl = "loading", Fe = "fullscreen_change", si = "cssFullscreen_change", oi = "mini_state_change", _a = "definition_change", Xh = "before_definition_change", Xr = "after_definition_change", Jh = "SEI_PARSED", Zh = "retry", Ye = "video_resize", Jr = "pip_change", Zl = "rotate", Ql = "screenShot", li = "playnext", eu = "shortcut", tu = "xglog", ui = "user_action", Ei = "reset", iu = "source_error", nu = "source_success", Qh = "switch_subtitle", ru = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], au = {
|
|
4906
4944
|
STATS_INFO: "stats_info",
|
|
4907
4945
|
STATS_DOWNLOAD: "stats_download",
|
|
4908
4946
|
STATS_RESET: "stats_reset"
|
|
4909
4947
|
}, su = "fps_stuck";
|
|
4910
|
-
const
|
|
4948
|
+
const ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4911
4949
|
__proto__: null,
|
|
4912
|
-
ABORT:
|
|
4950
|
+
ABORT: Kh,
|
|
4913
4951
|
AFTER_DEFINITION_CHANGE: Xr,
|
|
4914
4952
|
AUTOPLAY_PREVENTED: ma,
|
|
4915
4953
|
AUTOPLAY_STARTED: rt,
|
|
4916
|
-
BEFORE_DEFINITION_CHANGE:
|
|
4917
|
-
BUFFER_CHANGE:
|
|
4918
|
-
CANPLAY:
|
|
4919
|
-
CANPLAY_THROUGH:
|
|
4954
|
+
BEFORE_DEFINITION_CHANGE: Xh,
|
|
4955
|
+
BUFFER_CHANGE: Yh,
|
|
4956
|
+
CANPLAY: Be,
|
|
4957
|
+
CANPLAY_THROUGH: qh,
|
|
4920
4958
|
COMPLETE: wi,
|
|
4921
4959
|
CSS_FULLSCREEN_CHANGE: si,
|
|
4922
4960
|
DEFINITION_CHANGE: _a,
|
|
4923
4961
|
DESTROY: ya,
|
|
4924
4962
|
DOWNLOAD_SPEED_CHANGE: Yr,
|
|
4925
|
-
DURATION_CHANGE:
|
|
4963
|
+
DURATION_CHANGE: je,
|
|
4926
4964
|
EMPTIED: ot,
|
|
4927
4965
|
ENDED: st,
|
|
4928
4966
|
ENTER_PLAYER: Xl,
|
|
4929
4967
|
ERROR: Ut,
|
|
4930
4968
|
FPS_STUCK: su,
|
|
4931
|
-
FULLSCREEN_CHANGE:
|
|
4969
|
+
FULLSCREEN_CHANGE: Fe,
|
|
4932
4970
|
LEAVE_PLAYER: Yl,
|
|
4933
|
-
LOADED_DATA:
|
|
4934
|
-
LOADED_METADATA:
|
|
4971
|
+
LOADED_DATA: Ue,
|
|
4972
|
+
LOADED_METADATA: Gh,
|
|
4935
4973
|
LOADING: Jl,
|
|
4936
4974
|
LOAD_START: ga,
|
|
4937
4975
|
MINI_STATE_CHANGE: oi,
|
|
4938
4976
|
PAUSE: Ct,
|
|
4939
4977
|
PIP_CHANGE: Jr,
|
|
4940
|
-
PLAY:
|
|
4978
|
+
PLAY: Ce,
|
|
4941
4979
|
PLAYER_BLUR: $l,
|
|
4942
4980
|
PLAYER_FOCUS: pa,
|
|
4943
4981
|
PLAYING: Ci,
|
|
@@ -4947,19 +4985,19 @@ const Zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4947
4985
|
READY: va,
|
|
4948
4986
|
REPLAY: ai,
|
|
4949
4987
|
RESET: Ei,
|
|
4950
|
-
RETRY:
|
|
4988
|
+
RETRY: Zh,
|
|
4951
4989
|
ROTATE: Zl,
|
|
4952
4990
|
SCREEN_SHOT: Ql,
|
|
4953
|
-
SEEKED:
|
|
4991
|
+
SEEKED: He,
|
|
4954
4992
|
SEEKING: Ti,
|
|
4955
|
-
SEI_PARSED:
|
|
4993
|
+
SEI_PARSED: Jh,
|
|
4956
4994
|
SHORTCUT: eu,
|
|
4957
4995
|
SOURCE_ERROR: iu,
|
|
4958
4996
|
SOURCE_SUCCESS: nu,
|
|
4959
|
-
STALLED:
|
|
4997
|
+
STALLED: Wh,
|
|
4960
4998
|
STATS_EVENTS: au,
|
|
4961
|
-
SUSPEND:
|
|
4962
|
-
SWITCH_SUBTITLE:
|
|
4999
|
+
SUSPEND: $h,
|
|
5000
|
+
SWITCH_SUBTITLE: Qh,
|
|
4963
5001
|
TIME_UPDATE: be,
|
|
4964
5002
|
URL_CHANGE: Si,
|
|
4965
5003
|
URL_NULL: Kl,
|
|
@@ -4973,7 +5011,7 @@ const Zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4973
5011
|
function Rr(a, s) {
|
|
4974
5012
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, s.error) : this.emit(a, s));
|
|
4975
5013
|
}
|
|
4976
|
-
function
|
|
5014
|
+
function td(a, s) {
|
|
4977
5015
|
return function(r, t) {
|
|
4978
5016
|
var e = {
|
|
4979
5017
|
player: s,
|
|
@@ -5008,7 +5046,7 @@ function Qh(a, s) {
|
|
|
5008
5046
|
Rr.call(s, a, e);
|
|
5009
5047
|
};
|
|
5010
5048
|
}
|
|
5011
|
-
var
|
|
5049
|
+
var id = /* @__PURE__ */ (function(a) {
|
|
5012
5050
|
M(r, a);
|
|
5013
5051
|
var s = N(r);
|
|
5014
5052
|
function r(t) {
|
|
@@ -5052,7 +5090,7 @@ var ed = /* @__PURE__ */ (function(a) {
|
|
|
5052
5090
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
5053
5091
|
this._evHandlers || (this._evHandlers = ru.map(function(n) {
|
|
5054
5092
|
var o = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
5055
|
-
return typeof e[o] == "function" && e.on(n, e[o]), _({}, n,
|
|
5093
|
+
return typeof e[o] == "function" && e.on(n, e[o]), _({}, n, td(n, e));
|
|
5056
5094
|
})), this._evHandlers.forEach(function(n) {
|
|
5057
5095
|
var o = Object.keys(n)[0];
|
|
5058
5096
|
i.addEventListener(o, n[o], !1);
|
|
@@ -5426,7 +5464,7 @@ var ed = /* @__PURE__ */ (function(a) {
|
|
|
5426
5464
|
U(B(r.prototype), "removeAllListeners", this).call(this);
|
|
5427
5465
|
}
|
|
5428
5466
|
}]), r;
|
|
5429
|
-
})(zl),
|
|
5467
|
+
})(zl), nd = /* @__PURE__ */ (function() {
|
|
5430
5468
|
function a() {
|
|
5431
5469
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
5432
5470
|
name: "xgplayer",
|
|
@@ -5504,7 +5542,7 @@ var ed = /* @__PURE__ */ (function(a) {
|
|
|
5504
5542
|
t.clear();
|
|
5505
5543
|
}
|
|
5506
5544
|
}]), a;
|
|
5507
|
-
})(), zo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Vo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"],
|
|
5545
|
+
})(), zo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Vo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ke = "data-xgplayerid";
|
|
5508
5546
|
function Qt(a, s, r) {
|
|
5509
5547
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
5510
5548
|
e[i - 3] = arguments[i];
|
|
@@ -5531,7 +5569,7 @@ function ci(a, s) {
|
|
|
5531
5569
|
}
|
|
5532
5570
|
if (this.__hooks && this.__hooks[a])
|
|
5533
5571
|
try {
|
|
5534
|
-
var n =
|
|
5572
|
+
var n = Se.apply(void 0, [this, a, s].concat(Array.prototype.slice.call(arguments)));
|
|
5535
5573
|
n ? n.then ? n.then(function(o) {
|
|
5536
5574
|
o !== !1 && Qt.apply(void 0, [e, s, r.next].concat(Ee(t)));
|
|
5537
5575
|
}).catch(function(o) {
|
|
@@ -5599,7 +5637,7 @@ function lu(a) {
|
|
|
5599
5637
|
function uu(a) {
|
|
5600
5638
|
a.__hooks = null;
|
|
5601
5639
|
}
|
|
5602
|
-
function
|
|
5640
|
+
function Se(a, s, r) {
|
|
5603
5641
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
5604
5642
|
e[i - 3] = arguments[i];
|
|
5605
5643
|
if (a.__hooks && Array.isArray(a.__hooks[s])) {
|
|
@@ -5822,7 +5860,7 @@ var Xe = /* @__PURE__ */ (function() {
|
|
|
5822
5860
|
}
|
|
5823
5861
|
}]), a;
|
|
5824
5862
|
})(), Or, $o;
|
|
5825
|
-
function
|
|
5863
|
+
function rd() {
|
|
5826
5864
|
if ($o) return Or;
|
|
5827
5865
|
$o = 1;
|
|
5828
5866
|
var a = 9;
|
|
@@ -5840,10 +5878,10 @@ function id() {
|
|
|
5840
5878
|
return Or = r, Or;
|
|
5841
5879
|
}
|
|
5842
5880
|
var Fr, Ko;
|
|
5843
|
-
function
|
|
5881
|
+
function ad() {
|
|
5844
5882
|
if (Ko) return Fr;
|
|
5845
5883
|
Ko = 1;
|
|
5846
|
-
var a =
|
|
5884
|
+
var a = rd();
|
|
5847
5885
|
function s(e, i, n, o, l) {
|
|
5848
5886
|
var u = t.apply(this, arguments);
|
|
5849
5887
|
return e.addEventListener(n, u, l), {
|
|
@@ -5864,12 +5902,12 @@ function nd() {
|
|
|
5864
5902
|
}
|
|
5865
5903
|
return Fr = r, Fr;
|
|
5866
5904
|
}
|
|
5867
|
-
var
|
|
5868
|
-
const Yo = /* @__PURE__ */ Cl(
|
|
5869
|
-
var
|
|
5905
|
+
var sd = ad();
|
|
5906
|
+
const Yo = /* @__PURE__ */ Cl(sd);
|
|
5907
|
+
var od = {
|
|
5870
5908
|
CONTROLS: "controls",
|
|
5871
5909
|
ROOT: "root"
|
|
5872
|
-
},
|
|
5910
|
+
}, ee = {
|
|
5873
5911
|
ROOT: "root",
|
|
5874
5912
|
ROOT_LEFT: "rootLeft",
|
|
5875
5913
|
ROOT_RIGHT: "rootRight",
|
|
@@ -5885,10 +5923,10 @@ var ad = {
|
|
|
5885
5923
|
function Mr(a) {
|
|
5886
5924
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
5887
5925
|
}
|
|
5888
|
-
function
|
|
5926
|
+
function ld(a, s) {
|
|
5889
5927
|
return fe(a) === "object" && a.class && typeof a.class == "string" ? "".concat(s, " ").concat(a.class) : s;
|
|
5890
5928
|
}
|
|
5891
|
-
function
|
|
5929
|
+
function ud(a, s) {
|
|
5892
5930
|
return fe(a) === "object" && a.attr && fe(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
5893
5931
|
s[r] = a.attr[r];
|
|
5894
5932
|
}), s;
|
|
@@ -5911,14 +5949,14 @@ function Jo(a, s) {
|
|
|
5911
5949
|
}
|
|
5912
5950
|
return typeof a == "string" ? h.createDomFromHtml(a, t, r) : (q.logWarn("warn>>icons.".concat(s, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
5913
5951
|
}
|
|
5914
|
-
function
|
|
5952
|
+
function cd(a, s) {
|
|
5915
5953
|
var r = s.config.icons || s.playerConfig.icons;
|
|
5916
5954
|
Object.keys(a).map(function(t) {
|
|
5917
5955
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, o = null;
|
|
5918
|
-
r && r[t] && (i =
|
|
5956
|
+
r && r[t] && (i = ld(r[t], i), n = ud(r[t], n), o = Jo(r[t], t, i, n, s.pluginName)), !o && e && (o = Jo(e.icon ? e.icon : e, n, i, {}, s.pluginName)), s.icons[t] = o;
|
|
5919
5957
|
});
|
|
5920
5958
|
}
|
|
5921
|
-
function
|
|
5959
|
+
function fd(a, s) {
|
|
5922
5960
|
Object.keys(a).map(function(r) {
|
|
5923
5961
|
Object.defineProperty(s.langText, r, {
|
|
5924
5962
|
get: function() {
|
|
@@ -5942,9 +5980,9 @@ var Y = /* @__PURE__ */ (function(a) {
|
|
|
5942
5980
|
var i = e.root, n = null;
|
|
5943
5981
|
this.icons = {}, this.root = null, this.parent = null, this.extraEls = [];
|
|
5944
5982
|
var o = this.registerIcons() || {};
|
|
5945
|
-
|
|
5983
|
+
cd(o, this), this.langText = {};
|
|
5946
5984
|
var l = this.registerLanguageTexts() || {};
|
|
5947
|
-
|
|
5985
|
+
fd(l, this);
|
|
5948
5986
|
var u = "";
|
|
5949
5987
|
try {
|
|
5950
5988
|
u = this.render();
|
|
@@ -6212,15 +6250,15 @@ var Y = /* @__PURE__ */ (function(a) {
|
|
|
6212
6250
|
}, {
|
|
6213
6251
|
key: "ROOT_TYPES",
|
|
6214
6252
|
get: function() {
|
|
6215
|
-
return
|
|
6253
|
+
return od;
|
|
6216
6254
|
}
|
|
6217
6255
|
}, {
|
|
6218
6256
|
key: "POSITIONS",
|
|
6219
6257
|
get: function() {
|
|
6220
|
-
return
|
|
6258
|
+
return ee;
|
|
6221
6259
|
}
|
|
6222
6260
|
}]), r;
|
|
6223
|
-
})(Xe),
|
|
6261
|
+
})(Xe), hd = /* @__PURE__ */ (function() {
|
|
6224
6262
|
function a() {
|
|
6225
6263
|
var s = this;
|
|
6226
6264
|
if (D(this, a), _(this, "__trigger", function(r) {
|
|
@@ -6230,7 +6268,7 @@ var Y = /* @__PURE__ */ (function(a) {
|
|
|
6230
6268
|
s.__runHandler(r[e].target);
|
|
6231
6269
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
6232
6270
|
try {
|
|
6233
|
-
this.observer = new window.ResizeObserver(
|
|
6271
|
+
this.observer = new window.ResizeObserver(Uh(this.__trigger, 100, {
|
|
6234
6272
|
trailing: !0
|
|
6235
6273
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
6236
6274
|
} catch (r) {
|
|
@@ -6242,7 +6280,7 @@ var Y = /* @__PURE__ */ (function(a) {
|
|
|
6242
6280
|
value: function(r, t) {
|
|
6243
6281
|
if (this.observer) {
|
|
6244
6282
|
this.observer.observe(r);
|
|
6245
|
-
for (var e = r.getAttribute(
|
|
6283
|
+
for (var e = r.getAttribute(Ke), i = this.__handlers, n = -1, o = 0; o < i.length; o++)
|
|
6246
6284
|
i[o] && r === i[o].target && (n = o);
|
|
6247
6285
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
6248
6286
|
target: r,
|
|
@@ -6287,10 +6325,10 @@ var Y = /* @__PURE__ */ (function(a) {
|
|
|
6287
6325
|
}
|
|
6288
6326
|
}]), a;
|
|
6289
6327
|
})(), Rt = null;
|
|
6290
|
-
function
|
|
6291
|
-
return Rt || (Rt = new
|
|
6328
|
+
function dd(a, s) {
|
|
6329
|
+
return Rt || (Rt = new hd()), Rt.addObserver(a, s), Rt;
|
|
6292
6330
|
}
|
|
6293
|
-
function
|
|
6331
|
+
function gd(a, s) {
|
|
6294
6332
|
var r;
|
|
6295
6333
|
(r = Rt) === null || r === void 0 || r.unObserver(a, s);
|
|
6296
6334
|
}
|
|
@@ -6298,7 +6336,7 @@ var ce = {
|
|
|
6298
6336
|
pluginGroup: {},
|
|
6299
6337
|
init: function(s) {
|
|
6300
6338
|
var r = s._pluginInfoId;
|
|
6301
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), s._pluginInfoId = r), !s.config.closeResizeObserver &&
|
|
6339
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), s._pluginInfoId = r), !s.config.closeResizeObserver && dd(s.root, function() {
|
|
6302
6340
|
s.resize();
|
|
6303
6341
|
}), this.pluginGroup[r] = {
|
|
6304
6342
|
_originalOptions: s.config || {},
|
|
@@ -6484,7 +6522,7 @@ var ce = {
|
|
|
6484
6522
|
destroy: function(s) {
|
|
6485
6523
|
var r = s._pluginInfoId;
|
|
6486
6524
|
if (this.pluginGroup[r]) {
|
|
6487
|
-
|
|
6525
|
+
gd(s.root);
|
|
6488
6526
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
6489
6527
|
var n = i[e];
|
|
6490
6528
|
this.unRegister(r, n);
|
|
@@ -6570,7 +6608,7 @@ function Zo() {
|
|
|
6570
6608
|
ignores: [],
|
|
6571
6609
|
whitelist: [],
|
|
6572
6610
|
inactive: 3e3,
|
|
6573
|
-
lang:
|
|
6611
|
+
lang: jh(),
|
|
6574
6612
|
controls: !0,
|
|
6575
6613
|
marginControls: !1,
|
|
6576
6614
|
fullscreenTarget: null,
|
|
@@ -6606,7 +6644,7 @@ function Zo() {
|
|
|
6606
6644
|
}
|
|
6607
6645
|
};
|
|
6608
6646
|
}
|
|
6609
|
-
var
|
|
6647
|
+
var pd = function(s, r) {
|
|
6610
6648
|
var t, e, i;
|
|
6611
6649
|
r.preset && r.options ? i = new r.preset(r.options, s.config) : i = new r({}, s.config);
|
|
6612
6650
|
var n = i, o = n.plugins, l = o === void 0 ? [] : o, u = n.ignores, c = u === void 0 ? [] : u, f = n.icons, d = f === void 0 ? {} : f, p = n.i18n, g = p === void 0 ? [] : p;
|
|
@@ -6615,7 +6653,7 @@ var dd = function(s, r) {
|
|
|
6615
6653
|
});
|
|
6616
6654
|
var m = s.config.i18n || [];
|
|
6617
6655
|
g.push.apply(g, Ee(m)), s.config.i18n = g;
|
|
6618
|
-
},
|
|
6656
|
+
}, vd = /* @__PURE__ */ (function(a) {
|
|
6619
6657
|
M(r, a);
|
|
6620
6658
|
var s = N(r);
|
|
6621
6659
|
function r() {
|
|
@@ -6711,16 +6749,16 @@ var dd = function(s, r) {
|
|
|
6711
6749
|
if (!i.root) {
|
|
6712
6750
|
var l = i.position ? i.position : i.config && i.config.position ? i.config.position : o.position;
|
|
6713
6751
|
switch (l) {
|
|
6714
|
-
case
|
|
6752
|
+
case ee.CONTROLS_LEFT:
|
|
6715
6753
|
i.root = this.left;
|
|
6716
6754
|
break;
|
|
6717
|
-
case
|
|
6755
|
+
case ee.CONTROLS_RIGHT:
|
|
6718
6756
|
i.root = this.right;
|
|
6719
6757
|
break;
|
|
6720
|
-
case
|
|
6758
|
+
case ee.CONTROLS_CENTER:
|
|
6721
6759
|
i.root = this.center;
|
|
6722
6760
|
break;
|
|
6723
|
-
case
|
|
6761
|
+
case ee.CONTROLS:
|
|
6724
6762
|
i.root = this.root;
|
|
6725
6763
|
break;
|
|
6726
6764
|
default:
|
|
@@ -6776,7 +6814,7 @@ var dd = function(s, r) {
|
|
|
6776
6814
|
};
|
|
6777
6815
|
}
|
|
6778
6816
|
}]), r;
|
|
6779
|
-
})(Y),
|
|
6817
|
+
})(Y), md = {
|
|
6780
6818
|
LANG: "en",
|
|
6781
6819
|
TEXT: {
|
|
6782
6820
|
ERROR_TYPES: {
|
|
@@ -6871,7 +6909,7 @@ function cu() {
|
|
|
6871
6909
|
_e.textKeys[a] = a;
|
|
6872
6910
|
});
|
|
6873
6911
|
}
|
|
6874
|
-
function
|
|
6912
|
+
function yd(a, s) {
|
|
6875
6913
|
var r = [];
|
|
6876
6914
|
if (s || (s = _e), !!s.lang) {
|
|
6877
6915
|
h.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -6894,7 +6932,7 @@ function ba(a, s) {
|
|
|
6894
6932
|
r === "zh" && (r = "zh-cn"), s.lang[r] ? Nt(s.lang[r], t) : (s.langKeys.push(r), s.lang[r] = t), cu();
|
|
6895
6933
|
}
|
|
6896
6934
|
}
|
|
6897
|
-
function
|
|
6935
|
+
function _d(a) {
|
|
6898
6936
|
var s, r = {
|
|
6899
6937
|
lang: {},
|
|
6900
6938
|
langKeys: [],
|
|
@@ -6903,7 +6941,7 @@ function md(a) {
|
|
|
6903
6941
|
};
|
|
6904
6942
|
return Nt(r.lang, _e.lang), (s = r.langKeys).push.apply(s, Ee(_e.langKeys)), Nt(r.textKeys, _e.textKeys), r;
|
|
6905
6943
|
}
|
|
6906
|
-
ba(
|
|
6944
|
+
ba(md);
|
|
6907
6945
|
var bt = {
|
|
6908
6946
|
get textKeys() {
|
|
6909
6947
|
return _e.textKeys;
|
|
@@ -6917,9 +6955,9 @@ var bt = {
|
|
|
6917
6955
|
a[s] = _e.lang[s];
|
|
6918
6956
|
}), _e.lang["zh-cn"] && (a.zh = _e.lang["zh-cn"] || {}), a;
|
|
6919
6957
|
},
|
|
6920
|
-
extend:
|
|
6958
|
+
extend: yd,
|
|
6921
6959
|
use: ba,
|
|
6922
|
-
init:
|
|
6960
|
+
init: _d
|
|
6923
6961
|
}, W = {
|
|
6924
6962
|
INITIAL: 1,
|
|
6925
6963
|
READY: 2,
|
|
@@ -7015,7 +7053,7 @@ var bt = {
|
|
|
7015
7053
|
}
|
|
7016
7054
|
}]), r;
|
|
7017
7055
|
})(jl.EventEmitter);
|
|
7018
|
-
function
|
|
7056
|
+
function bd(a) {
|
|
7019
7057
|
for (var s = Object.keys(ge), r = 0; r < s.length; r++) {
|
|
7020
7058
|
var t = ge[s[r]];
|
|
7021
7059
|
if (t.root === a)
|
|
@@ -7023,7 +7061,7 @@ function yd(a) {
|
|
|
7023
7061
|
}
|
|
7024
7062
|
return null;
|
|
7025
7063
|
}
|
|
7026
|
-
var
|
|
7064
|
+
var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, Ge = null, xi = /* @__PURE__ */ (function(a) {
|
|
7027
7065
|
M(r, a);
|
|
7028
7066
|
var s = N(r);
|
|
7029
7067
|
function r(t) {
|
|
@@ -7033,7 +7071,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7033
7071
|
n = s.call(this, o), _(y(n), "canPlayFunc", function() {
|
|
7034
7072
|
if (n.config) {
|
|
7035
7073
|
var v = n.config, C = v.autoplay, b = v.defaultPlaybackRate;
|
|
7036
|
-
q.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = b, (C || n._useAutoplay) && n.mediaPlay(), n.off(
|
|
7074
|
+
q.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = b, (C || n._useAutoplay) && n.mediaPlay(), n.off(Be, n.canPlayFunc), n.removeClass(S.ENTER);
|
|
7037
7075
|
}
|
|
7038
7076
|
}), _(y(n), "onFullscreenChange", function(v, C) {
|
|
7039
7077
|
var b = function() {
|
|
@@ -7053,9 +7091,9 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7053
7091
|
to: !1
|
|
7054
7092
|
}]
|
|
7055
7093
|
});
|
|
7056
|
-
var R =
|
|
7094
|
+
var R = zh(k, n.playerId, Ke);
|
|
7057
7095
|
if (C || k && (k === n._fullscreenEl || R))
|
|
7058
|
-
b(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, k, S.FULLSCREEN), n.emit(
|
|
7096
|
+
b(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, k, S.FULLSCREEN), n.emit(Fe, !0, n._fullScreenOffset), n.cssfullscreen && n.exitCssFullscreen();
|
|
7059
7097
|
else if (n.fullscreen) {
|
|
7060
7098
|
b();
|
|
7061
7099
|
var E = y(n), L = E._fullScreenOffset, z = E.config;
|
|
@@ -7067,13 +7105,13 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7067
7105
|
var G = n._fullscreenEl;
|
|
7068
7106
|
!G && (n.root.contains(v.target) || v.target === n.root) && (G = v.target), n.recoverFullStyle(n.root, G, S.FULLSCREEN);
|
|
7069
7107
|
}
|
|
7070
|
-
n._fullscreenEl = null, n.emit(
|
|
7108
|
+
n._fullscreenEl = null, n.emit(Fe, !1);
|
|
7071
7109
|
}
|
|
7072
7110
|
}), _(y(n), "_onWebkitbeginfullscreen", function(v) {
|
|
7073
7111
|
n._fullscreenEl = n.media, n.onFullscreenChange(v, !0);
|
|
7074
7112
|
}), _(y(n), "_onWebkitendfullscreen", function(v) {
|
|
7075
7113
|
n.onFullscreenChange(v, !1);
|
|
7076
|
-
}), lu(y(n),
|
|
7114
|
+
}), lu(y(n), kd), n.config = o, n._pluginInfoId = h.generateSessionId(), Mh(y(n));
|
|
7077
7115
|
var l = n.constructor.defaultPreset;
|
|
7078
7116
|
if (n.config.presets.length) {
|
|
7079
7117
|
var u = n.config.presets.indexOf("default");
|
|
@@ -7101,9 +7139,9 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7101
7139
|
}, n._offsetInfo = {
|
|
7102
7140
|
currentTime: -1,
|
|
7103
7141
|
duration: 0
|
|
7104
|
-
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = bt.init(n._pluginInfoId), j.os.isAndroid && j.osVersion > 0 && j.osVersion < 6 && (n.config.autoplay = !1), n.database = new
|
|
7142
|
+
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = bt.init(n._pluginInfoId), j.os.isAndroid && j.osVersion > 0 && j.osVersion < 6 && (n.config.autoplay = !1), n.database = new nd(), n.isUserActive = !1, n._onceSeekCanplay = null, n._isPauseBeforeSeek = 0, n.innerStates = {
|
|
7105
7143
|
isActiveLocked: !1
|
|
7106
|
-
}, n.instManager =
|
|
7144
|
+
}, n.instManager = Ge;
|
|
7107
7145
|
var c = n._initDOM();
|
|
7108
7146
|
if (!c)
|
|
7109
7147
|
return console.error(new Error("can't find the dom which id is ".concat(n.config.id, " or this.config.el does not exist"))), da(n);
|
|
@@ -7133,9 +7171,9 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7133
7171
|
msg: "container id can't be empty"
|
|
7134
7172
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
7135
7173
|
}
|
|
7136
|
-
var o =
|
|
7137
|
-
if (o && (q.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute(
|
|
7138
|
-
var l = this.config.controls.root || null, u = ce.register(this,
|
|
7174
|
+
var o = bd(this.root);
|
|
7175
|
+
if (o && (q.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute(Ke, this.playerId), this.media.setAttribute(Ke, this.playerId), (e = Ge) === null || e === void 0 || e.add(this), ce.init(this), this._initBaseDoms(), this.config.controls) {
|
|
7176
|
+
var l = this.config.controls.root || null, u = ce.register(this, vd, {
|
|
7139
7177
|
root: l
|
|
7140
7178
|
});
|
|
7141
7179
|
this.controls = u;
|
|
@@ -7175,9 +7213,9 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7175
7213
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
7176
7214
|
}), zo.forEach(function(i) {
|
|
7177
7215
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
7178
|
-
}), j.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(
|
|
7216
|
+
}), j.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ue, this.resize), this.playFunc = function() {
|
|
7179
7217
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
7180
|
-
}, this.once(
|
|
7218
|
+
}, this.once(Ce, this.playFunc);
|
|
7181
7219
|
}
|
|
7182
7220
|
}, {
|
|
7183
7221
|
key: "_unbindEvents",
|
|
@@ -7185,7 +7223,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7185
7223
|
var e = this;
|
|
7186
7224
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), zo.forEach(function(i) {
|
|
7187
7225
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
7188
|
-
}), this.playFunc && this.off(
|
|
7226
|
+
}), this.playFunc && this.off(Ce, this.playFunc), this.off(Be, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
7189
7227
|
}
|
|
7190
7228
|
}, {
|
|
7191
7229
|
key: "_clearUserTimer",
|
|
@@ -7203,7 +7241,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7203
7241
|
var l = this.media.readyState;
|
|
7204
7242
|
q.logInfo("_startInit readyState", l), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (j.os.isIpad || j.os.isPhone) && this.mediaPlay());
|
|
7205
7243
|
var u = this.config.startTime;
|
|
7206
|
-
this.__startTime = u > 0 ? u : -1, this.config.startTime = 0, l >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(
|
|
7244
|
+
this.__startTime = u > 0 ? u : -1, this.config.startTime = 0, l >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Be, this.canPlayFunc), (!this.hasStart || this.state < W.ATTACHED) && ce.afterInit(this), this.hasStart = !0, this.setState(W.ATTACHED), h.setTimeout(this, function() {
|
|
7207
7245
|
i.emit(wi);
|
|
7208
7246
|
}, 0);
|
|
7209
7247
|
}
|
|
@@ -7243,7 +7281,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7243
7281
|
value: function() {
|
|
7244
7282
|
var e = this;
|
|
7245
7283
|
this.config.presets.forEach(function(i) {
|
|
7246
|
-
|
|
7284
|
+
pd(e, i);
|
|
7247
7285
|
});
|
|
7248
7286
|
}
|
|
7249
7287
|
}, {
|
|
@@ -7251,13 +7289,13 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7251
7289
|
value: function(e) {
|
|
7252
7290
|
var i = null;
|
|
7253
7291
|
switch (e) {
|
|
7254
|
-
case
|
|
7292
|
+
case ee.ROOT_RIGHT:
|
|
7255
7293
|
this.rightBar || (this.rightBar = h.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
|
|
7256
7294
|
break;
|
|
7257
|
-
case
|
|
7295
|
+
case ee.ROOT_LEFT:
|
|
7258
7296
|
this.leftBar || (this.leftBar = h.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
7259
7297
|
break;
|
|
7260
|
-
case
|
|
7298
|
+
case ee.ROOT_TOP:
|
|
7261
7299
|
this.topBar || (this.topBar = h.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && h.addClass(this.topBar, S.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
7262
7300
|
break;
|
|
7263
7301
|
default:
|
|
@@ -7425,7 +7463,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7425
7463
|
key: "play",
|
|
7426
7464
|
value: function() {
|
|
7427
7465
|
var e = this;
|
|
7428
|
-
return this.removeClass(S.PAUSED),
|
|
7466
|
+
return this.removeClass(S.PAUSED), Se(this, "play", function() {
|
|
7429
7467
|
return e.mediaPlay();
|
|
7430
7468
|
});
|
|
7431
7469
|
}
|
|
@@ -7433,7 +7471,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7433
7471
|
key: "pause",
|
|
7434
7472
|
value: function() {
|
|
7435
7473
|
var e = this;
|
|
7436
|
-
|
|
7474
|
+
Se(this, "pause", function() {
|
|
7437
7475
|
U(B(r.prototype), "pause", e).call(e);
|
|
7438
7476
|
});
|
|
7439
7477
|
}
|
|
@@ -7443,7 +7481,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7443
7481
|
var n = this;
|
|
7444
7482
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
7445
7483
|
var o = this.config, l = o.isSeekedPlay, u = o.seekedStatus, c = i || (l ? "play" : u);
|
|
7446
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
7484
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(He, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
7447
7485
|
switch (n.removeClass(S.ENTER), n.isSeeking = !1, c) {
|
|
7448
7486
|
case "play":
|
|
7449
7487
|
n.play();
|
|
@@ -7455,7 +7493,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7455
7493
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
7456
7494
|
}
|
|
7457
7495
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
7458
|
-
}, this.once(
|
|
7496
|
+
}, this.once(He, this._onceSeekCanplay), this.state < W.RUNNING ? (this.removeClass(S.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
7459
7497
|
}
|
|
7460
7498
|
}
|
|
7461
7499
|
}, {
|
|
@@ -7497,7 +7535,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7497
7535
|
value: function() {
|
|
7498
7536
|
this.load(), this.reloadFunc = function() {
|
|
7499
7537
|
this.play();
|
|
7500
|
-
}, this.once(
|
|
7538
|
+
}, this.once(Ue, this.reloadFunc);
|
|
7501
7539
|
}
|
|
7502
7540
|
}, {
|
|
7503
7541
|
key: "resetState",
|
|
@@ -7527,7 +7565,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7527
7565
|
value: function() {
|
|
7528
7566
|
var e, i = this, n = this.innerContainer, o = this.root, l = this.media;
|
|
7529
7567
|
if (!(!o || !l)) {
|
|
7530
|
-
if (this.hasStart = !1, this._useAutoplay = !1, o.removeAttribute(
|
|
7568
|
+
if (this.hasStart = !1, this._useAutoplay = !1, o.removeAttribute(Ke), l.removeAttribute(Ke), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ya), (e = Ge) === null || e === void 0 || e.remove(this), ce.destroy(this), uu(this), U(B(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
7531
7569
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
7532
7570
|
n.removeChild(u[c]);
|
|
7533
7571
|
!n && l instanceof window.Node && o.contains(l) && !this.config.remainMediaAfterDestroy && o.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -7545,8 +7583,8 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7545
7583
|
key: "replay",
|
|
7546
7584
|
value: function() {
|
|
7547
7585
|
var e = this;
|
|
7548
|
-
this.removeClass(S.ENDED), this.currentTime = 0, this.isSeeking = !1,
|
|
7549
|
-
e.once(
|
|
7586
|
+
this.removeClass(S.ENDED), this.currentTime = 0, this.isSeeking = !1, Se(this, "replay", function() {
|
|
7587
|
+
e.once(He, function() {
|
|
7550
7588
|
var i = e.mediaPlay();
|
|
7551
7589
|
i && i.catch && i.catch(function(n) {
|
|
7552
7590
|
console.log(n);
|
|
@@ -7558,11 +7596,11 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7558
7596
|
key: "retry",
|
|
7559
7597
|
value: function() {
|
|
7560
7598
|
var e = this;
|
|
7561
|
-
this.removeClass(S.ERROR), this.addClass(S.LOADING),
|
|
7599
|
+
this.removeClass(S.ERROR), this.addClass(S.LOADING), Se(this, "retry", function() {
|
|
7562
7600
|
var i = e.currentTime, n = e.config.url, o = h.isMSE(e.media) ? {
|
|
7563
7601
|
url: n
|
|
7564
7602
|
} : e.preProcessUrl(n);
|
|
7565
|
-
e.src = o.url, !e.config.isLive && (e.currentTime = i), e.once(
|
|
7603
|
+
e.src = o.url, !e.config.isLive && (e.currentTime = i), e.once(Be, function() {
|
|
7566
7604
|
e.mediaPlay();
|
|
7567
7605
|
});
|
|
7568
7606
|
});
|
|
@@ -7570,12 +7608,12 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7570
7608
|
}, {
|
|
7571
7609
|
key: "changeFullStyle",
|
|
7572
7610
|
value: function(e, i, n, o) {
|
|
7573
|
-
e && (o || (o = S.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, o), i.setAttribute(
|
|
7611
|
+
e && (o || (o = S.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, o), i.setAttribute(Ke, this.playerId)));
|
|
7574
7612
|
}
|
|
7575
7613
|
}, {
|
|
7576
7614
|
key: "recoverFullStyle",
|
|
7577
7615
|
value: function(e, i, n, o) {
|
|
7578
|
-
o || (o = S.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, o), i.removeAttribute(
|
|
7616
|
+
o || (o = S.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, o), i.removeAttribute(Ke));
|
|
7579
7617
|
}
|
|
7580
7618
|
}, {
|
|
7581
7619
|
key: "getFullscreen",
|
|
@@ -7636,7 +7674,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7636
7674
|
var i = e ? "".concat(S.INNER_FULLSCREEN, " ").concat(S.CSS_FULLSCREEN) : S.CSS_FULLSCREEN;
|
|
7637
7675
|
this.changeFullStyle(this.root, e, i);
|
|
7638
7676
|
var n = this.config.fullscreen, o = n === void 0 ? {} : n, l = o.useCssFullscreen === !0 || typeof o.useCssFullscreen == "function" && o.useCssFullscreen();
|
|
7639
|
-
l && (this.fullscreen = !0, this.emit(
|
|
7677
|
+
l && (this.fullscreen = !0, this.emit(Fe, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(si, !0);
|
|
7640
7678
|
}
|
|
7641
7679
|
}, {
|
|
7642
7680
|
key: "exitCssFullscreen",
|
|
@@ -7646,7 +7684,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7646
7684
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
7647
7685
|
else {
|
|
7648
7686
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, o = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
7649
|
-
o ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(
|
|
7687
|
+
o ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Fe, !1)) : this.removeClass(e);
|
|
7650
7688
|
}
|
|
7651
7689
|
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(si, !1);
|
|
7652
7690
|
}
|
|
@@ -7658,13 +7696,13 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7658
7696
|
var i = e ? "".concat(S.INNER_FULLSCREEN, " ").concat(S.ROTATE_FULLSCREEN) : S.ROTATE_FULLSCREEN;
|
|
7659
7697
|
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, S.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style");
|
|
7660
7698
|
var n = Math.abs(window.orientation) === 90 || Math.abs(screen.orientation.angle) === 90;
|
|
7661
|
-
this.root.style.width = n ? "".concat(window.innerWidth, "px") : "".concat(window.innerHeight, "px"), this.emit(
|
|
7699
|
+
this.root.style.width = n ? "".concat(window.innerWidth, "px") : "".concat(window.innerHeight, "px"), this.emit(Fe, !0);
|
|
7662
7700
|
}
|
|
7663
7701
|
}, {
|
|
7664
7702
|
key: "exitRotateFullscreen",
|
|
7665
7703
|
value: function(e) {
|
|
7666
7704
|
var i = this._fullscreenEl !== this.root ? "".concat(S.INNER_FULLSCREEN, " ").concat(S.ROTATE_FULLSCREEN) : S.ROTATE_FULLSCREEN;
|
|
7667
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i, S.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(
|
|
7705
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, S.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Fe, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
7668
7706
|
}
|
|
7669
7707
|
}, {
|
|
7670
7708
|
key: "setRotateDeg",
|
|
@@ -7741,7 +7779,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7741
7779
|
key: "onLoadeddata",
|
|
7742
7780
|
value: function() {
|
|
7743
7781
|
var e = this;
|
|
7744
|
-
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(
|
|
7782
|
+
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(je, function() {
|
|
7745
7783
|
e._seekToStartTime();
|
|
7746
7784
|
}));
|
|
7747
7785
|
}
|
|
@@ -7905,7 +7943,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
7905
7943
|
key: "playNext",
|
|
7906
7944
|
value: function(e) {
|
|
7907
7945
|
var i = this;
|
|
7908
|
-
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0,
|
|
7946
|
+
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Se(this, "playnext", function() {
|
|
7909
7947
|
i.start(), i.emit(li, e);
|
|
7910
7948
|
});
|
|
7911
7949
|
}
|
|
@@ -8157,7 +8195,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
8157
8195
|
value: function() {
|
|
8158
8196
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
8159
8197
|
i[n] = arguments[n];
|
|
8160
|
-
return
|
|
8198
|
+
return Se.call.apply(Se, [this].concat(Array.prototype.slice.call(arguments)));
|
|
8161
8199
|
}
|
|
8162
8200
|
}, {
|
|
8163
8201
|
key: "useHooks",
|
|
@@ -8187,7 +8225,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
8187
8225
|
key: "setUserActive",
|
|
8188
8226
|
value: function(e, i) {
|
|
8189
8227
|
var n;
|
|
8190
|
-
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n =
|
|
8228
|
+
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Ge) === null || n === void 0 || n.setActive(this.playerId, e);
|
|
8191
8229
|
}
|
|
8192
8230
|
}], [{
|
|
8193
8231
|
key: "debugger",
|
|
@@ -8200,22 +8238,22 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
8200
8238
|
}, {
|
|
8201
8239
|
key: "instManager",
|
|
8202
8240
|
get: function() {
|
|
8203
|
-
return
|
|
8241
|
+
return Ge;
|
|
8204
8242
|
},
|
|
8205
8243
|
set: function(e) {
|
|
8206
|
-
|
|
8244
|
+
Ge = e;
|
|
8207
8245
|
}
|
|
8208
8246
|
}, {
|
|
8209
8247
|
key: "getCurrentUserActivePlayerId",
|
|
8210
8248
|
value: function() {
|
|
8211
8249
|
var e;
|
|
8212
|
-
return (e =
|
|
8250
|
+
return (e = Ge) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
8213
8251
|
}
|
|
8214
8252
|
}, {
|
|
8215
8253
|
key: "setCurrentUserActive",
|
|
8216
8254
|
value: function(e, i) {
|
|
8217
8255
|
var n;
|
|
8218
|
-
(n =
|
|
8256
|
+
(n = Ge) === null || n === void 0 || n.setActive(e, i);
|
|
8219
8257
|
}
|
|
8220
8258
|
}, {
|
|
8221
8259
|
key: "isHevcSupported",
|
|
@@ -8238,7 +8276,7 @@ var _d = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, xi = /
|
|
|
8238
8276
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
8239
8277
|
}
|
|
8240
8278
|
}]), r;
|
|
8241
|
-
})(
|
|
8279
|
+
})(id);
|
|
8242
8280
|
_(xi, "defaultPreset", null);
|
|
8243
8281
|
_(xi, "XgVideoProxy", null);
|
|
8244
8282
|
xi.instManager = fu.getInstance();
|
|
@@ -8281,13 +8319,13 @@ var lt = /* @__PURE__ */ (function(a) {
|
|
|
8281
8319
|
}
|
|
8282
8320
|
}]), r;
|
|
8283
8321
|
})(Y);
|
|
8284
|
-
function
|
|
8322
|
+
function Cd() {
|
|
8285
8323
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
8286
8324
|
<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>
|
|
8287
8325
|
</svg>
|
|
8288
8326
|
`, "image/svg+xml").firstChild;
|
|
8289
8327
|
}
|
|
8290
|
-
function
|
|
8328
|
+
function Td() {
|
|
8291
8329
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
8292
8330
|
<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>
|
|
8293
8331
|
</svg>
|
|
@@ -8347,11 +8385,11 @@ var Zr = /* @__PURE__ */ (function(a) {
|
|
|
8347
8385
|
value: function() {
|
|
8348
8386
|
return {
|
|
8349
8387
|
cssFullscreen: {
|
|
8350
|
-
icon:
|
|
8388
|
+
icon: Cd,
|
|
8351
8389
|
class: "xg-get-cssfull"
|
|
8352
8390
|
},
|
|
8353
8391
|
exitCssFullscreen: {
|
|
8354
|
-
icon:
|
|
8392
|
+
icon: Td,
|
|
8355
8393
|
class: "xg-exit-cssfull"
|
|
8356
8394
|
}
|
|
8357
8395
|
};
|
|
@@ -8380,7 +8418,7 @@ var Zr = /* @__PURE__ */ (function(a) {
|
|
|
8380
8418
|
key: "defaultConfig",
|
|
8381
8419
|
get: function() {
|
|
8382
8420
|
return {
|
|
8383
|
-
position:
|
|
8421
|
+
position: ee.CONTROLS_RIGHT,
|
|
8384
8422
|
index: 1,
|
|
8385
8423
|
disable: !1,
|
|
8386
8424
|
target: null
|
|
@@ -8388,14 +8426,14 @@ var Zr = /* @__PURE__ */ (function(a) {
|
|
|
8388
8426
|
}
|
|
8389
8427
|
}]), r;
|
|
8390
8428
|
})(lt);
|
|
8391
|
-
function
|
|
8429
|
+
function wd() {
|
|
8392
8430
|
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">
|
|
8393
8431
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8394
8432
|
<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>
|
|
8395
8433
|
</g>
|
|
8396
8434
|
</svg>`, "image/svg+xml").firstChild;
|
|
8397
8435
|
}
|
|
8398
|
-
var
|
|
8436
|
+
var Sd = /* @__PURE__ */ (function(a) {
|
|
8399
8437
|
M(r, a);
|
|
8400
8438
|
var s = N(r);
|
|
8401
8439
|
function r() {
|
|
@@ -8414,7 +8452,7 @@ var Td = /* @__PURE__ */ (function(a) {
|
|
|
8414
8452
|
value: function() {
|
|
8415
8453
|
return {
|
|
8416
8454
|
screenBack: {
|
|
8417
|
-
icon:
|
|
8455
|
+
icon: wd,
|
|
8418
8456
|
class: "xg-fullscreen-back"
|
|
8419
8457
|
}
|
|
8420
8458
|
};
|
|
@@ -8450,19 +8488,19 @@ var Td = /* @__PURE__ */ (function(a) {
|
|
|
8450
8488
|
key: "defaultConfig",
|
|
8451
8489
|
get: function() {
|
|
8452
8490
|
return {
|
|
8453
|
-
position:
|
|
8491
|
+
position: ee.ROOT_TOP,
|
|
8454
8492
|
index: 0
|
|
8455
8493
|
};
|
|
8456
8494
|
}
|
|
8457
8495
|
}]), r;
|
|
8458
8496
|
})(Y);
|
|
8459
|
-
function
|
|
8497
|
+
function Ed() {
|
|
8460
8498
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8461
8499
|
<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>
|
|
8462
8500
|
</svg>
|
|
8463
8501
|
`, "image/svg+xml").firstChild;
|
|
8464
8502
|
}
|
|
8465
|
-
function
|
|
8503
|
+
function xd() {
|
|
8466
8504
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8467
8505
|
<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>
|
|
8468
8506
|
</svg>
|
|
@@ -8499,11 +8537,11 @@ var hu = /* @__PURE__ */ (function(a) {
|
|
|
8499
8537
|
to: !c
|
|
8500
8538
|
});
|
|
8501
8539
|
}
|
|
8502
|
-
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(
|
|
8540
|
+
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(Fe, function(l) {
|
|
8503
8541
|
var u = e.find(".xg-tips");
|
|
8504
8542
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8505
8543
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8506
|
-
plugin:
|
|
8544
|
+
plugin: Sd,
|
|
8507
8545
|
options: {
|
|
8508
8546
|
config: {
|
|
8509
8547
|
onClick: function(u) {
|
|
@@ -8519,11 +8557,11 @@ var hu = /* @__PURE__ */ (function(a) {
|
|
|
8519
8557
|
value: function() {
|
|
8520
8558
|
return {
|
|
8521
8559
|
fullscreen: {
|
|
8522
|
-
icon:
|
|
8560
|
+
icon: Ed,
|
|
8523
8561
|
class: "xg-get-fullscreen"
|
|
8524
8562
|
},
|
|
8525
8563
|
exitFullscreen: {
|
|
8526
|
-
icon:
|
|
8564
|
+
icon: xd,
|
|
8527
8565
|
class: "xg-exit-fullscreen"
|
|
8528
8566
|
}
|
|
8529
8567
|
};
|
|
@@ -8591,7 +8629,7 @@ var hu = /* @__PURE__ */ (function(a) {
|
|
|
8591
8629
|
key: "defaultConfig",
|
|
8592
8630
|
get: function() {
|
|
8593
8631
|
return {
|
|
8594
|
-
position:
|
|
8632
|
+
position: ee.CONTROLS_RIGHT,
|
|
8595
8633
|
index: 0,
|
|
8596
8634
|
useCssFullscreen: !1,
|
|
8597
8635
|
rotateFullscreen: !1,
|
|
@@ -8646,7 +8684,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
8646
8684
|
key: "listenEvents",
|
|
8647
8685
|
value: function() {
|
|
8648
8686
|
var e = this, i = this.player;
|
|
8649
|
-
this.on([
|
|
8687
|
+
this.on([Ce, Ct, Ut, ot], function() {
|
|
8650
8688
|
e.animate(i.paused);
|
|
8651
8689
|
});
|
|
8652
8690
|
}
|
|
@@ -8702,13 +8740,13 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
8702
8740
|
key: "defaultConfig",
|
|
8703
8741
|
get: function() {
|
|
8704
8742
|
return {
|
|
8705
|
-
position:
|
|
8743
|
+
position: ee.CONTROLS_LEFT,
|
|
8706
8744
|
index: 0,
|
|
8707
8745
|
disable: !1
|
|
8708
8746
|
};
|
|
8709
8747
|
}
|
|
8710
8748
|
}]), r;
|
|
8711
|
-
})(lt),
|
|
8749
|
+
})(lt), Id = [{
|
|
8712
8750
|
tag: "xg-cache",
|
|
8713
8751
|
className: "xgplayer-progress-cache",
|
|
8714
8752
|
styleKey: "cachedColor"
|
|
@@ -8716,7 +8754,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
8716
8754
|
tag: "xg-played",
|
|
8717
8755
|
className: "xgplayer-progress-played",
|
|
8718
8756
|
styleKey: "playedColor"
|
|
8719
|
-
}],
|
|
8757
|
+
}], Pd = /* @__PURE__ */ (function() {
|
|
8720
8758
|
function a(s) {
|
|
8721
8759
|
D(this, a), this.fragments = s.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8722
8760
|
percent: 1
|
|
@@ -8903,7 +8941,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
8903
8941
|
var l = h.createDom("xg-inner", "", {
|
|
8904
8942
|
style: t ? "background:".concat(t, "; flex: ").concat(o.percent) : "flex: ".concat(o.percent)
|
|
8905
8943
|
}, "".concat(o.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8906
|
-
return r.root.appendChild(l),
|
|
8944
|
+
return r.root.appendChild(l), Id.forEach(function(u) {
|
|
8907
8945
|
l.appendChild(h.createDom(u.tag, "", {
|
|
8908
8946
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8909
8947
|
}, u.className));
|
|
@@ -9051,7 +9089,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
9051
9089
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
9052
9090
|
}
|
|
9053
9091
|
});
|
|
9054
|
-
this.innerList ? this.innerList.reset(o) : (this.innerList = new
|
|
9092
|
+
this.innerList ? this.innerList.reset(o) : (this.innerList = new Pd(o), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
9055
9093
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
9056
9094
|
}));
|
|
9057
9095
|
}
|
|
@@ -9085,11 +9123,11 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
9085
9123
|
key: "listenEvents",
|
|
9086
9124
|
value: function() {
|
|
9087
9125
|
var e = this;
|
|
9088
|
-
this.on(
|
|
9126
|
+
this.on(je, function() {
|
|
9089
9127
|
e.onMouseLeave();
|
|
9090
9128
|
}), this.on(be, function() {
|
|
9091
9129
|
e.onTimeupdate();
|
|
9092
|
-
}), this.on(
|
|
9130
|
+
}), this.on(He, function() {
|
|
9093
9131
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
9094
9132
|
}), this.on(Wl, function() {
|
|
9095
9133
|
e.onCacheUpdate();
|
|
@@ -9309,7 +9347,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
9309
9347
|
key: "defaultConfig",
|
|
9310
9348
|
get: function() {
|
|
9311
9349
|
return {
|
|
9312
|
-
position:
|
|
9350
|
+
position: ee.CONTROLS_CENTER,
|
|
9313
9351
|
index: 0,
|
|
9314
9352
|
disable: !1,
|
|
9315
9353
|
isDraggingSeek: !0,
|
|
@@ -9371,7 +9409,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
9371
9409
|
key: "listenEvents",
|
|
9372
9410
|
value: function() {
|
|
9373
9411
|
var e = this;
|
|
9374
|
-
this.on([
|
|
9412
|
+
this.on([je, He, be], function(i) {
|
|
9375
9413
|
i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
9376
9414
|
}), this.on(st, function() {
|
|
9377
9415
|
e.onTimeUpdate(!0);
|
|
@@ -9459,7 +9497,7 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
9459
9497
|
var e = this, i = this.player, n = function() {
|
|
9460
9498
|
e.isActiving = !1;
|
|
9461
9499
|
};
|
|
9462
|
-
this.off(
|
|
9500
|
+
this.off(He, n), i.isSeeking && i.media.seeking ? this.once(He, n) : this.isActiving = !1;
|
|
9463
9501
|
}
|
|
9464
9502
|
}, {
|
|
9465
9503
|
key: "destroy",
|
|
@@ -9487,28 +9525,28 @@ var du = /* @__PURE__ */ (function(a) {
|
|
|
9487
9525
|
key: "defaultConfig",
|
|
9488
9526
|
get: function() {
|
|
9489
9527
|
return {
|
|
9490
|
-
position:
|
|
9528
|
+
position: ee.CONTROLS_LEFT,
|
|
9491
9529
|
index: 2,
|
|
9492
9530
|
disable: !1
|
|
9493
9531
|
};
|
|
9494
9532
|
}
|
|
9495
9533
|
}]), r;
|
|
9496
9534
|
})(Y);
|
|
9497
|
-
function
|
|
9535
|
+
function Ad() {
|
|
9498
9536
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9499
9537
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9500
9538
|
<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>
|
|
9501
9539
|
</svg>
|
|
9502
9540
|
`, "image/svg+xml").firstChild;
|
|
9503
9541
|
}
|
|
9504
|
-
function
|
|
9542
|
+
function Ld() {
|
|
9505
9543
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9506
9544
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9507
9545
|
<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>
|
|
9508
9546
|
</svg>
|
|
9509
9547
|
`, "image/svg+xml").firstChild;
|
|
9510
9548
|
}
|
|
9511
|
-
function
|
|
9549
|
+
function Rd() {
|
|
9512
9550
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9513
9551
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9514
9552
|
<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>
|
|
@@ -9563,15 +9601,15 @@ var vu = /* @__PURE__ */ (function(a) {
|
|
|
9563
9601
|
value: function() {
|
|
9564
9602
|
return {
|
|
9565
9603
|
volumeSmall: {
|
|
9566
|
-
icon:
|
|
9604
|
+
icon: Ld,
|
|
9567
9605
|
class: "xg-volume-small"
|
|
9568
9606
|
},
|
|
9569
9607
|
volumeLarge: {
|
|
9570
|
-
icon:
|
|
9608
|
+
icon: Ad,
|
|
9571
9609
|
class: "xg-volume"
|
|
9572
9610
|
},
|
|
9573
9611
|
volumeMuted: {
|
|
9574
|
-
icon:
|
|
9612
|
+
icon: Rd,
|
|
9575
9613
|
class: "xg-volume-mute"
|
|
9576
9614
|
}
|
|
9577
9615
|
};
|
|
@@ -9593,7 +9631,7 @@ var vu = /* @__PURE__ */ (function(a) {
|
|
|
9593
9631
|
pre: function(u) {
|
|
9594
9632
|
u.preventDefault(), u.stopPropagation();
|
|
9595
9633
|
}
|
|
9596
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), j.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(ql, this.onVolumeChange), this.once(
|
|
9634
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), j.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(ql, this.onVolumeChange), this.once(Ue, this.onVolumeChange), h.typeOf(o) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9597
9635
|
}
|
|
9598
9636
|
}
|
|
9599
9637
|
}, {
|
|
@@ -9700,7 +9738,7 @@ var vu = /* @__PURE__ */ (function(a) {
|
|
|
9700
9738
|
key: "defaultConfig",
|
|
9701
9739
|
get: function() {
|
|
9702
9740
|
return {
|
|
9703
|
-
position:
|
|
9741
|
+
position: ee.CONTROLS_RIGHT,
|
|
9704
9742
|
index: 1,
|
|
9705
9743
|
disable: !1,
|
|
9706
9744
|
showValueLabel: !1,
|
|
@@ -9713,7 +9751,7 @@ var vu = /* @__PURE__ */ (function(a) {
|
|
|
9713
9751
|
function he() {
|
|
9714
9752
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
9715
9753
|
}
|
|
9716
|
-
var
|
|
9754
|
+
var We = {
|
|
9717
9755
|
LOAD_START: "loadstart",
|
|
9718
9756
|
LOADED_DATA: "loadeddata",
|
|
9719
9757
|
FIRST_FRAME: "firstFrame",
|
|
@@ -9721,7 +9759,7 @@ var Ge = {
|
|
|
9721
9759
|
WAIT_END: "waitingEnd",
|
|
9722
9760
|
SEEK_START: "seekStart",
|
|
9723
9761
|
SEEK_END: "seekEnd"
|
|
9724
|
-
},
|
|
9762
|
+
}, Dd = /* @__PURE__ */ (function(a) {
|
|
9725
9763
|
M(r, a);
|
|
9726
9764
|
var s = N(r);
|
|
9727
9765
|
function r() {
|
|
@@ -9742,13 +9780,13 @@ var Ge = {
|
|
|
9742
9780
|
isLs: !1
|
|
9743
9781
|
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = he(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && h.clearTimeout(y(t), t._waitTimer), t._waittTimer && h.clearTimeout(y(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
|
|
9744
9782
|
}), _(y(t), "_onSeeking", function() {
|
|
9745
|
-
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = he(), t.emitLog(
|
|
9783
|
+
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = he(), t.emitLog(We.SEEK_START, {
|
|
9746
9784
|
start: he()
|
|
9747
9785
|
}));
|
|
9748
9786
|
}), _(y(t), "_onSeeked", function() {
|
|
9749
9787
|
t.suspendSeekingStatus("seeked");
|
|
9750
9788
|
}), _(y(t), "_onWaitingLoadStart", function() {
|
|
9751
|
-
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = he(), t.fixedWaitingStart = he(), t._waitType = 1, t.emitLog(
|
|
9789
|
+
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = he(), t.fixedWaitingStart = he(), t._waitType = 1, t.emitLog(We.WAIT_START, {
|
|
9752
9790
|
fixedStart: t.fixedWaitingStart,
|
|
9753
9791
|
start: t.waitingStart,
|
|
9754
9792
|
type: 1,
|
|
@@ -9756,7 +9794,7 @@ var Ge = {
|
|
|
9756
9794
|
}));
|
|
9757
9795
|
}), _(y(t), "_onWaiting", function() {
|
|
9758
9796
|
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = he(), t._waitTimer = h.setTimeout(y(t), function() {
|
|
9759
|
-
t._isWaiting && (t.waitingStart = he(), h.clearTimeout(y(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(
|
|
9797
|
+
t._isWaiting && (t.waitingStart = he(), h.clearTimeout(y(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(We.WAIT_START, {
|
|
9760
9798
|
fixedStart: t.fixedWaitingStart,
|
|
9761
9799
|
start: t.waitingStart,
|
|
9762
9800
|
type: t._waitType,
|
|
@@ -9775,16 +9813,16 @@ var Ge = {
|
|
|
9775
9813
|
var e = this;
|
|
9776
9814
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = he(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ga, function() {
|
|
9777
9815
|
var i = e._state, n = i.autoplayStart, o = i.isFFSend;
|
|
9778
|
-
e.startCostTime = he() - e.newPointTime, q.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(o, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !o && (!i.isLs && e.emitLog(
|
|
9779
|
-
}), this.on(
|
|
9816
|
+
e.startCostTime = he() - e.newPointTime, q.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(o, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !o && (!i.isLs && e.emitLog(We.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = he(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
9817
|
+
}), this.on(Ue, function() {
|
|
9780
9818
|
e.vt = he(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
9781
9819
|
var i = e._state, n = i.isTimeUpdate, o = i.isFFSend, l = i.autoplayStart;
|
|
9782
|
-
q.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"), o || e.emitLog(
|
|
9783
|
-
}), this.on(Ti, this._onSeeking), this.on(
|
|
9820
|
+
q.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"), o || e.emitLog(We.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
9821
|
+
}), this.on(Ti, this._onSeeking), this.on(He, this._onSeeked), this.on(ya, function() {
|
|
9784
9822
|
e.endState("destroy");
|
|
9785
9823
|
}), this.on(Si, function() {
|
|
9786
9824
|
e.endState("urlChange"), q.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
9787
|
-
}), this.on([Ci,
|
|
9825
|
+
}), this.on([Ci, Be], this._onPlaying), this.on(jt, this._onWaiting), this.on(Ut, this._onError), this.on(Ei, function() {
|
|
9788
9826
|
q.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
9789
9827
|
});
|
|
9790
9828
|
}
|
|
@@ -9798,7 +9836,7 @@ var Ge = {
|
|
|
9798
9836
|
value: function(e) {
|
|
9799
9837
|
this.s = he();
|
|
9800
9838
|
var i = this._state, n = i.isFFLoading, o = i.isFFSend;
|
|
9801
|
-
q.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!o)), this.vt > 0 && n && !o && (q.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(
|
|
9839
|
+
q.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!o)), this.vt > 0 && n && !o && (q.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(We.FIRST_FRAME, {
|
|
9802
9840
|
fvt: this.fvt,
|
|
9803
9841
|
costTime: this.fvt,
|
|
9804
9842
|
vt: this.vt,
|
|
@@ -9824,7 +9862,7 @@ var Ge = {
|
|
|
9824
9862
|
value: function(e) {
|
|
9825
9863
|
if (this.seekingStart) {
|
|
9826
9864
|
var i = he(), n = i - this.seekingStart;
|
|
9827
|
-
this.seekingStart = 0, this.emitLog(
|
|
9865
|
+
this.seekingStart = 0, this.emitLog(We.SEEK_END, {
|
|
9828
9866
|
end: i,
|
|
9829
9867
|
costTime: n,
|
|
9830
9868
|
endType: e
|
|
@@ -9836,7 +9874,7 @@ var Ge = {
|
|
|
9836
9874
|
value: function(e) {
|
|
9837
9875
|
if (this._waitTimer && (h.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (h.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
|
|
9838
9876
|
var i = he(), n = i - this.waitingStart, o = i - this.fixedWaitingStart, l = this.config.waitTimeout;
|
|
9839
|
-
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(
|
|
9877
|
+
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(We.WAIT_END, {
|
|
9840
9878
|
fixedCostTime: o > l ? l : o,
|
|
9841
9879
|
costTime: n > l ? l : n,
|
|
9842
9880
|
type: e === "loadeddata" ? 1 : this._waitType,
|
|
@@ -9872,13 +9910,13 @@ var Ge = {
|
|
|
9872
9910
|
}
|
|
9873
9911
|
}]), r;
|
|
9874
9912
|
})(Y);
|
|
9875
|
-
function
|
|
9913
|
+
function Od() {
|
|
9876
9914
|
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">
|
|
9877
9915
|
<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>
|
|
9878
9916
|
</svg>
|
|
9879
9917
|
`, "image/svg+xml").firstChild;
|
|
9880
9918
|
}
|
|
9881
|
-
var
|
|
9919
|
+
var Fd = /* @__PURE__ */ (function(a) {
|
|
9882
9920
|
M(r, a);
|
|
9883
9921
|
var s = N(r);
|
|
9884
9922
|
function r() {
|
|
@@ -9888,7 +9926,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
9888
9926
|
key: "registerIcons",
|
|
9889
9927
|
value: function() {
|
|
9890
9928
|
return {
|
|
9891
|
-
replay:
|
|
9929
|
+
replay: Od
|
|
9892
9930
|
};
|
|
9893
9931
|
}
|
|
9894
9932
|
}, {
|
|
@@ -9912,7 +9950,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
9912
9950
|
i.setAttribute("transform", n);
|
|
9913
9951
|
}
|
|
9914
9952
|
}
|
|
9915
|
-
}), this.on(
|
|
9953
|
+
}), this.on(Ce, function() {
|
|
9916
9954
|
e.hide();
|
|
9917
9955
|
});
|
|
9918
9956
|
}
|
|
@@ -9961,7 +9999,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
9961
9999
|
};
|
|
9962
10000
|
}
|
|
9963
10001
|
}]), r;
|
|
9964
|
-
})(Y),
|
|
10002
|
+
})(Y), Md = /* @__PURE__ */ (function(a) {
|
|
9965
10003
|
M(r, a);
|
|
9966
10004
|
var s = N(r);
|
|
9967
10005
|
function r() {
|
|
@@ -10004,7 +10042,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
10004
10042
|
e.show(), e.config.useVideoPoster || h.addClass(e.root, "xg-showplay"), e.once(be, function() {
|
|
10005
10043
|
e.onTimeUpdate();
|
|
10006
10044
|
});
|
|
10007
|
-
})) : this.on(
|
|
10045
|
+
})) : this.on(Ce, function() {
|
|
10008
10046
|
e.hide();
|
|
10009
10047
|
});
|
|
10010
10048
|
}
|
|
@@ -10079,7 +10117,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
10079
10117
|
}
|
|
10080
10118
|
}]), r;
|
|
10081
10119
|
})(Y), Pe = {};
|
|
10082
|
-
function
|
|
10120
|
+
function Nd(a, s) {
|
|
10083
10121
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
10084
10122
|
start: null,
|
|
10085
10123
|
end: null
|
|
@@ -10097,7 +10135,7 @@ function nl(a) {
|
|
|
10097
10135
|
window.clearTimeout(Pe[s].id), delete Pe[s];
|
|
10098
10136
|
});
|
|
10099
10137
|
}
|
|
10100
|
-
var
|
|
10138
|
+
var Bd = /* @__PURE__ */ (function(a) {
|
|
10101
10139
|
M(r, a);
|
|
10102
10140
|
var s = N(r);
|
|
10103
10141
|
function r(t) {
|
|
@@ -10128,7 +10166,7 @@ var Md = /* @__PURE__ */ (function(a) {
|
|
|
10128
10166
|
}), this.on(rt, this.onAutoplayStart), this.on(ma, function() {
|
|
10129
10167
|
var o = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
10130
10168
|
e.setAttr("data-state", "play"), h.removeClass(e.root, o), e.show();
|
|
10131
|
-
}), this.on(
|
|
10169
|
+
}), this.on(Ce, function() {
|
|
10132
10170
|
e.toggleTo("play");
|
|
10133
10171
|
}), this.on(Ct, function() {
|
|
10134
10172
|
e.toggleTo("pause");
|
|
@@ -10201,7 +10239,7 @@ var Md = /* @__PURE__ */ (function(a) {
|
|
|
10201
10239
|
key: "animate",
|
|
10202
10240
|
value: function(e) {
|
|
10203
10241
|
var i = this;
|
|
10204
|
-
this._animateId =
|
|
10242
|
+
this._animateId = Nd("pauseplay", 400, {
|
|
10205
10243
|
start: function() {
|
|
10206
10244
|
h.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
10207
10245
|
},
|
|
@@ -10289,7 +10327,7 @@ var Md = /* @__PURE__ */ (function(a) {
|
|
|
10289
10327
|
};
|
|
10290
10328
|
}
|
|
10291
10329
|
}]), r;
|
|
10292
|
-
})(Y),
|
|
10330
|
+
})(Y), Hd = /* @__PURE__ */ (function(a) {
|
|
10293
10331
|
M(r, a);
|
|
10294
10332
|
var s = N(r);
|
|
10295
10333
|
function r() {
|
|
@@ -10368,7 +10406,7 @@ var Md = /* @__PURE__ */ (function(a) {
|
|
|
10368
10406
|
key: "defaultConfig",
|
|
10369
10407
|
get: function() {
|
|
10370
10408
|
return {
|
|
10371
|
-
position:
|
|
10409
|
+
position: ee.CONTROLS_RIGHT,
|
|
10372
10410
|
index: 10
|
|
10373
10411
|
};
|
|
10374
10412
|
}
|
|
@@ -10379,7 +10417,7 @@ function al(a) {
|
|
|
10379
10417
|
return r && s;
|
|
10380
10418
|
}
|
|
10381
10419
|
var Ta = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mu = Ta.length;
|
|
10382
|
-
function
|
|
10420
|
+
function Ud() {
|
|
10383
10421
|
for (var a = {
|
|
10384
10422
|
width: 0,
|
|
10385
10423
|
height: 0,
|
|
@@ -10393,15 +10431,15 @@ function Bd() {
|
|
|
10393
10431
|
}
|
|
10394
10432
|
return a;
|
|
10395
10433
|
}
|
|
10396
|
-
function
|
|
10434
|
+
function jd(a) {
|
|
10397
10435
|
var s = window.getComputedStyle(a);
|
|
10398
10436
|
return s;
|
|
10399
10437
|
}
|
|
10400
10438
|
function sl(a) {
|
|
10401
10439
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || fe(a) !== "object" || !a.nodeType)) {
|
|
10402
|
-
var s =
|
|
10440
|
+
var s = jd(a);
|
|
10403
10441
|
if (s.display === "none")
|
|
10404
|
-
return
|
|
10442
|
+
return Ud();
|
|
10405
10443
|
var r = {};
|
|
10406
10444
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
10407
10445
|
for (var t = r.isBorderBox = s.boxSizing === "border-box", e = 0; e < mu; e++) {
|
|
@@ -10429,7 +10467,7 @@ var Hr = {
|
|
|
10429
10467
|
mousedown: ["mousemove", "mouseup"],
|
|
10430
10468
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
10431
10469
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
10432
|
-
},
|
|
10470
|
+
}, zd = /* @__PURE__ */ (function(a) {
|
|
10433
10471
|
M(r, a);
|
|
10434
10472
|
var s = N(r);
|
|
10435
10473
|
function r(t) {
|
|
@@ -10639,7 +10677,7 @@ var Hr = {
|
|
|
10639
10677
|
return parseInt(e, 10);
|
|
10640
10678
|
}
|
|
10641
10679
|
}]), r;
|
|
10642
|
-
})(zl),
|
|
10680
|
+
})(zl), Vd = /* @__PURE__ */ (function(a) {
|
|
10643
10681
|
M(r, a);
|
|
10644
10682
|
var s = N(r);
|
|
10645
10683
|
function r(t) {
|
|
@@ -10675,7 +10713,7 @@ var Hr = {
|
|
|
10675
10713
|
var e = this;
|
|
10676
10714
|
this.initIcons(), this.on(Ct, function() {
|
|
10677
10715
|
e.setAttr("data-state", "pause");
|
|
10678
|
-
}), this.on(
|
|
10716
|
+
}), this.on(Ce, function() {
|
|
10679
10717
|
e.setAttr("data-state", "play");
|
|
10680
10718
|
});
|
|
10681
10719
|
}
|
|
@@ -10695,7 +10733,7 @@ var Hr = {
|
|
|
10695
10733
|
i.controls.registerPlugin(rl, o, rl.pluginName);
|
|
10696
10734
|
}
|
|
10697
10735
|
var l = h.checkTouchSupport() ? "touchend" : "click";
|
|
10698
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
10736
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new zd(this.player.root, {
|
|
10699
10737
|
handle: this.root
|
|
10700
10738
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
10701
10739
|
}
|
|
@@ -10839,7 +10877,7 @@ var Hr = {
|
|
|
10839
10877
|
}), _(y(t), "onVideoClick", function(o) {
|
|
10840
10878
|
var l = y(t), u = l.player, c = l.playerConfig;
|
|
10841
10879
|
o.target && c.closeVideoClick || (o.target === u.root || o.target === u.media || o.target === u.innerContainer || o.target === u.media.__canvas) && (o.preventDefault(), c.closeVideoStopPropagation || o.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
10842
|
-
t._clickCount && (t._clickCount--,
|
|
10880
|
+
t._clickCount && (t._clickCount--, Se(y(t), Ur[0], function(f, d) {
|
|
10843
10881
|
t.switchPlayPause(d.e);
|
|
10844
10882
|
}, {
|
|
10845
10883
|
e: o,
|
|
@@ -10853,7 +10891,7 @@ var Hr = {
|
|
|
10853
10891
|
t._clickCount = 0;
|
|
10854
10892
|
return;
|
|
10855
10893
|
}
|
|
10856
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), o.preventDefault(), o.stopPropagation(),
|
|
10894
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), o.preventDefault(), o.stopPropagation(), Se(y(t), Ur[1], function(f, d) {
|
|
10857
10895
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
10858
10896
|
props: "fullscreen",
|
|
10859
10897
|
from: u.fullscreen,
|
|
@@ -10924,7 +10962,7 @@ var Hr = {
|
|
|
10924
10962
|
return {};
|
|
10925
10963
|
}
|
|
10926
10964
|
}]), r;
|
|
10927
|
-
})(Xe),
|
|
10965
|
+
})(Xe), $e = {
|
|
10928
10966
|
PRESS: "press",
|
|
10929
10967
|
PRESS_END: "pressend",
|
|
10930
10968
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -10932,12 +10970,12 @@ var Hr = {
|
|
|
10932
10970
|
TOUCH_MOVE: "touchmove",
|
|
10933
10971
|
TOUCH_START: "touchstart",
|
|
10934
10972
|
TOUCH_END: "touchend"
|
|
10935
|
-
},
|
|
10973
|
+
}, qd = {
|
|
10936
10974
|
start: "touchstart",
|
|
10937
10975
|
end: "touchend",
|
|
10938
10976
|
move: "touchmove",
|
|
10939
10977
|
cancel: "touchcancel"
|
|
10940
|
-
},
|
|
10978
|
+
}, Gd = {
|
|
10941
10979
|
start: "mousedown",
|
|
10942
10980
|
end: "mouseup",
|
|
10943
10981
|
move: "mousemove",
|
|
@@ -10946,7 +10984,7 @@ var Hr = {
|
|
|
10946
10984
|
function ll(a) {
|
|
10947
10985
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
10948
10986
|
}
|
|
10949
|
-
function
|
|
10987
|
+
function Wd() {
|
|
10950
10988
|
return {
|
|
10951
10989
|
pressDelay: 600,
|
|
10952
10990
|
dbClickDelay: 200,
|
|
@@ -10956,30 +10994,30 @@ function qd() {
|
|
|
10956
10994
|
needPreventDefault: !0
|
|
10957
10995
|
};
|
|
10958
10996
|
}
|
|
10959
|
-
var
|
|
10997
|
+
var $d = /* @__PURE__ */ (function() {
|
|
10960
10998
|
function a(s) {
|
|
10961
10999
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
10962
11000
|
eventType: "touch"
|
|
10963
11001
|
};
|
|
10964
11002
|
D(this, a), _(this, "onTouchStart", function(e) {
|
|
10965
11003
|
var i = r._pos, n = r.root, o = ll(e.touches);
|
|
10966
|
-
i.x = o ? parseInt(o.pageX, 10) : e.pageX, i.y = o ? parseInt(o.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(
|
|
11004
|
+
i.x = o ? parseInt(o.pageX, 10) : e.pageX, i.y = o ? parseInt(o.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger($e.TOUCH_START, e);
|
|
10967
11005
|
}), _(this, "onTouchCancel", function(e) {
|
|
10968
11006
|
r.onTouchEnd(e);
|
|
10969
11007
|
}), _(this, "onTouchEnd", function(e) {
|
|
10970
11008
|
var i = r._pos, n = r.root;
|
|
10971
|
-
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(
|
|
11009
|
+
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger($e.PRESS_END, e), r.trigger($e.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
10972
11010
|
}), _(this, "onTouchMove", function(e) {
|
|
10973
11011
|
var i = r._pos, n = r.config, o = ll(e.touches), l = o ? parseInt(o.pageX, 10) : e.pageX, u = o ? parseInt(o.pageY, 10) : e.pageX, c = l - i.x, f = u - i.y;
|
|
10974
|
-
Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(
|
|
11012
|
+
Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger($e.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger($e.TOUCH_MOVE, e));
|
|
10975
11013
|
}), this._pos = {
|
|
10976
11014
|
moving: !1,
|
|
10977
11015
|
start: !1,
|
|
10978
11016
|
x: 0,
|
|
10979
11017
|
y: 0
|
|
10980
|
-
}, this.config =
|
|
11018
|
+
}, this.config = Wd(), Object.keys(t).map(function(e) {
|
|
10981
11019
|
r.config[e] = t[e];
|
|
10982
|
-
}), this.root = s, this.events = t.eventType === "mouse" ?
|
|
11020
|
+
}), this.root = s, this.events = t.eventType === "mouse" ? Gd : qd, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
10983
11021
|
}
|
|
10984
11022
|
return O(a, [{
|
|
10985
11023
|
key: "_initEvent",
|
|
@@ -10991,7 +11029,7 @@ var Gd = /* @__PURE__ */ (function() {
|
|
|
10991
11029
|
value: function(r) {
|
|
10992
11030
|
var t = this, e = this.config;
|
|
10993
11031
|
this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
|
|
10994
|
-
t.trigger(
|
|
11032
|
+
t.trigger($e.PRESS, r), t._pos.press = !0, t.__clearPress();
|
|
10995
11033
|
}, e.pressDelay);
|
|
10996
11034
|
}
|
|
10997
11035
|
}, {
|
|
@@ -11004,11 +11042,11 @@ var Gd = /* @__PURE__ */ (function() {
|
|
|
11004
11042
|
value: function(r) {
|
|
11005
11043
|
var t = this, e = this.config;
|
|
11006
11044
|
if (this.dbIntrvalId) {
|
|
11007
|
-
this.__clearDb(), this.trigger(
|
|
11045
|
+
this.__clearDb(), this.trigger($e.DOUBlE_CLICK, r);
|
|
11008
11046
|
return;
|
|
11009
11047
|
}
|
|
11010
11048
|
this.dbIntrvalId = setTimeout(function() {
|
|
11011
|
-
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(
|
|
11049
|
+
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger($e.CLICK, r);
|
|
11012
11050
|
}, e.dbClickDelay);
|
|
11013
11051
|
}
|
|
11014
11052
|
}, {
|
|
@@ -11058,7 +11096,7 @@ var Gd = /* @__PURE__ */ (function() {
|
|
|
11058
11096
|
}
|
|
11059
11097
|
}]), a;
|
|
11060
11098
|
})();
|
|
11061
|
-
function
|
|
11099
|
+
function Kd() {
|
|
11062
11100
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
11063
11101
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
11064
11102
|
<path opacity="0.54"
|
|
@@ -11071,7 +11109,7 @@ var dt = {
|
|
|
11071
11109
|
AUTO: "auto",
|
|
11072
11110
|
SEEKING: "seeking",
|
|
11073
11111
|
PLAYBACK: "playbackrate"
|
|
11074
|
-
}, zr = ["videoClick", "videoDbClick"],
|
|
11112
|
+
}, zr = ["videoClick", "videoDbClick"], Yd = /* @__PURE__ */ (function(a) {
|
|
11075
11113
|
M(r, a);
|
|
11076
11114
|
var s = N(r);
|
|
11077
11115
|
function r(t) {
|
|
@@ -11145,7 +11183,7 @@ var dt = {
|
|
|
11145
11183
|
value: function() {
|
|
11146
11184
|
return {
|
|
11147
11185
|
seekTipIcon: {
|
|
11148
|
-
icon:
|
|
11186
|
+
icon: Kd,
|
|
11149
11187
|
class: "xg-seek-pre"
|
|
11150
11188
|
}
|
|
11151
11189
|
};
|
|
@@ -11160,17 +11198,17 @@ var dt = {
|
|
|
11160
11198
|
var i = this.playerConfig, n = this.config, o = this.player;
|
|
11161
11199
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), h.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = h.createDom("xg-mask", "", {}, "xgmask"), o.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
11162
11200
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
11163
|
-
this.touch = new
|
|
11201
|
+
this.touch = new $d(this.root, {
|
|
11164
11202
|
eventType: l,
|
|
11165
11203
|
needPreventDefault: !this.config.disableGesture
|
|
11166
11204
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
11167
11205
|
d.preventDefault();
|
|
11168
11206
|
}), o.root.addEventListener("touchmove", this.onRootTouchMove, !0), o.root.addEventListener("touchend", this.onRootTouchEnd, !0), o.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
11169
11207
|
var u = this.player.controls;
|
|
11170
|
-
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(
|
|
11208
|
+
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(je, function() {
|
|
11171
11209
|
var d = e.player, p = e.config;
|
|
11172
11210
|
d.duration > 0 && d.duration * 1e3 < p.moveDuration && (p.moveDuration = d.duration * 1e3);
|
|
11173
|
-
}), this.on([
|
|
11211
|
+
}), this.on([Be, st], function() {
|
|
11174
11212
|
var d = e.pos, p = d.time, g = d.isStart;
|
|
11175
11213
|
!g && p > 0 && (e.pos.time = 0);
|
|
11176
11214
|
});
|
|
@@ -11337,7 +11375,7 @@ var dt = {
|
|
|
11337
11375
|
key: "onClick",
|
|
11338
11376
|
value: function(e) {
|
|
11339
11377
|
var i = this, n = this.player;
|
|
11340
|
-
|
|
11378
|
+
Se(this, zr[0], function(o, l) {
|
|
11341
11379
|
i.clickHandler(l.e);
|
|
11342
11380
|
}, {
|
|
11343
11381
|
e,
|
|
@@ -11348,7 +11386,7 @@ var dt = {
|
|
|
11348
11386
|
key: "onDbClick",
|
|
11349
11387
|
value: function(e) {
|
|
11350
11388
|
var i = this, n = this.player;
|
|
11351
|
-
|
|
11389
|
+
Se(this, zr[1], function(o, l) {
|
|
11352
11390
|
i.dbClickHandler(l.e);
|
|
11353
11391
|
}, {
|
|
11354
11392
|
e,
|
|
@@ -11505,7 +11543,7 @@ var dt = {
|
|
|
11505
11543
|
}
|
|
11506
11544
|
}]), r;
|
|
11507
11545
|
})(Y);
|
|
11508
|
-
function
|
|
11546
|
+
function Xd(a) {
|
|
11509
11547
|
a.preventDefault(), a.returnValue = !1;
|
|
11510
11548
|
}
|
|
11511
11549
|
function ul(a) {
|
|
@@ -11754,7 +11792,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
11754
11792
|
isPress: n
|
|
11755
11793
|
}, this.keyCodeMap[o[l]]));
|
|
11756
11794
|
}
|
|
11757
|
-
|
|
11795
|
+
Xd(i), i.stopPropagation();
|
|
11758
11796
|
break;
|
|
11759
11797
|
}
|
|
11760
11798
|
}
|
|
@@ -11796,13 +11834,13 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
11796
11834
|
}
|
|
11797
11835
|
}]), r;
|
|
11798
11836
|
})(Xe);
|
|
11799
|
-
function
|
|
11837
|
+
function Jd() {
|
|
11800
11838
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
11801
11839
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
11802
11840
|
</svg>
|
|
11803
11841
|
`, "image/svg+xml").firstChild;
|
|
11804
11842
|
}
|
|
11805
|
-
var
|
|
11843
|
+
var Zd = /* @__PURE__ */ (function(a) {
|
|
11806
11844
|
M(r, a);
|
|
11807
11845
|
var s = N(r);
|
|
11808
11846
|
function r() {
|
|
@@ -11812,7 +11850,7 @@ var Xd = /* @__PURE__ */ (function(a) {
|
|
|
11812
11850
|
key: "registerIcons",
|
|
11813
11851
|
value: function() {
|
|
11814
11852
|
return {
|
|
11815
|
-
loadingIcon:
|
|
11853
|
+
loadingIcon: Jd
|
|
11816
11854
|
};
|
|
11817
11855
|
}
|
|
11818
11856
|
}, {
|
|
@@ -11837,11 +11875,11 @@ var Xd = /* @__PURE__ */ (function(a) {
|
|
|
11837
11875
|
key: "defaultConfig",
|
|
11838
11876
|
get: function() {
|
|
11839
11877
|
return {
|
|
11840
|
-
position:
|
|
11878
|
+
position: ee.ROOT
|
|
11841
11879
|
};
|
|
11842
11880
|
}
|
|
11843
11881
|
}]), r;
|
|
11844
|
-
})(Y),
|
|
11882
|
+
})(Y), Qd = /* @__PURE__ */ (function(a) {
|
|
11845
11883
|
M(r, a);
|
|
11846
11884
|
var s = N(r);
|
|
11847
11885
|
function r() {
|
|
@@ -11897,7 +11935,7 @@ var Xd = /* @__PURE__ */ (function(a) {
|
|
|
11897
11935
|
return O(r, [{
|
|
11898
11936
|
key: "afterCreate",
|
|
11899
11937
|
value: function() {
|
|
11900
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
11938
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(je, this._onDurationChange), this.on(Ue, this._onLoadedData), this.on(be, this._onTimeupdate), this.on(Ti, this._onSeeking), this.on(Ce, this._onPlay);
|
|
11901
11939
|
}
|
|
11902
11940
|
}, {
|
|
11903
11941
|
key: "setConfig",
|
|
@@ -11979,7 +12017,7 @@ var Xd = /* @__PURE__ */ (function(a) {
|
|
|
11979
12017
|
}
|
|
11980
12018
|
}]), r;
|
|
11981
12019
|
})(Xe);
|
|
11982
|
-
function
|
|
12020
|
+
function eg() {
|
|
11983
12021
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
11984
12022
|
<g>
|
|
11985
12023
|
<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"/>
|
|
@@ -11993,7 +12031,7 @@ function Zd() {
|
|
|
11993
12031
|
</svg>
|
|
11994
12032
|
`, "image/svg+xml").firstChild;
|
|
11995
12033
|
}
|
|
11996
|
-
var
|
|
12034
|
+
var tg = /* @__PURE__ */ (function(a) {
|
|
11997
12035
|
M(r, a);
|
|
11998
12036
|
var s = N(r);
|
|
11999
12037
|
function r(t) {
|
|
@@ -12056,7 +12094,7 @@ var Qd = /* @__PURE__ */ (function(a) {
|
|
|
12056
12094
|
key: "registerIcons",
|
|
12057
12095
|
value: function() {
|
|
12058
12096
|
return {
|
|
12059
|
-
rotate:
|
|
12097
|
+
rotate: eg
|
|
12060
12098
|
};
|
|
12061
12099
|
}
|
|
12062
12100
|
}, {
|
|
@@ -12079,7 +12117,7 @@ var Qd = /* @__PURE__ */ (function(a) {
|
|
|
12079
12117
|
key: "defaultConfig",
|
|
12080
12118
|
get: function() {
|
|
12081
12119
|
return {
|
|
12082
|
-
position:
|
|
12120
|
+
position: ee.CONTROLS_RIGHT,
|
|
12083
12121
|
index: 6,
|
|
12084
12122
|
innerRotate: !0,
|
|
12085
12123
|
clockwise: !1,
|
|
@@ -12089,14 +12127,14 @@ var Qd = /* @__PURE__ */ (function(a) {
|
|
|
12089
12127
|
}
|
|
12090
12128
|
}]), r;
|
|
12091
12129
|
})(lt);
|
|
12092
|
-
function
|
|
12130
|
+
function ig() {
|
|
12093
12131
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12094
12132
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
12095
12133
|
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"
|
|
12096
12134
|
fill="white" />
|
|
12097
12135
|
</svg>`, "image/svg+xml").firstChild;
|
|
12098
12136
|
}
|
|
12099
|
-
function
|
|
12137
|
+
function ng() {
|
|
12100
12138
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12101
12139
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
12102
12140
|
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"
|
|
@@ -12110,7 +12148,7 @@ var gt = {
|
|
|
12110
12148
|
PIP: "picture-in-picture",
|
|
12111
12149
|
INLINE: "inline",
|
|
12112
12150
|
FULLSCREEN: "fullscreen"
|
|
12113
|
-
},
|
|
12151
|
+
}, rg = /* @__PURE__ */ (function(a) {
|
|
12114
12152
|
M(r, a);
|
|
12115
12153
|
var s = N(r);
|
|
12116
12154
|
function r() {
|
|
@@ -12150,11 +12188,11 @@ var gt = {
|
|
|
12150
12188
|
value: function() {
|
|
12151
12189
|
return {
|
|
12152
12190
|
pipIcon: {
|
|
12153
|
-
icon:
|
|
12191
|
+
icon: ig,
|
|
12154
12192
|
class: "xg-get-pip"
|
|
12155
12193
|
},
|
|
12156
12194
|
pipIconExit: {
|
|
12157
|
-
icon:
|
|
12195
|
+
icon: ng,
|
|
12158
12196
|
class: "xg-exit-pip"
|
|
12159
12197
|
}
|
|
12160
12198
|
};
|
|
@@ -12294,7 +12332,7 @@ var gt = {
|
|
|
12294
12332
|
key: "defaultConfig",
|
|
12295
12333
|
get: function() {
|
|
12296
12334
|
return {
|
|
12297
|
-
position:
|
|
12335
|
+
position: ee.CONTROLS_RIGHT,
|
|
12298
12336
|
index: 6,
|
|
12299
12337
|
showIcon: !1,
|
|
12300
12338
|
preferDocument: !1,
|
|
@@ -12311,13 +12349,13 @@ var gt = {
|
|
|
12311
12349
|
}
|
|
12312
12350
|
}]), r;
|
|
12313
12351
|
})(lt);
|
|
12314
|
-
function
|
|
12352
|
+
function ag() {
|
|
12315
12353
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
12316
12354
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
12317
12355
|
</svg>
|
|
12318
12356
|
`, "image/svg+xml").firstChild;
|
|
12319
12357
|
}
|
|
12320
|
-
var
|
|
12358
|
+
var sg = /* @__PURE__ */ (function(a) {
|
|
12321
12359
|
M(r, a);
|
|
12322
12360
|
var s = N(r);
|
|
12323
12361
|
function r(t) {
|
|
@@ -12336,7 +12374,7 @@ var rg = /* @__PURE__ */ (function(a) {
|
|
|
12336
12374
|
key: "registerIcons",
|
|
12337
12375
|
value: function() {
|
|
12338
12376
|
return {
|
|
12339
|
-
playNext:
|
|
12377
|
+
playNext: ag
|
|
12340
12378
|
};
|
|
12341
12379
|
}
|
|
12342
12380
|
}, {
|
|
@@ -12378,7 +12416,7 @@ var rg = /* @__PURE__ */ (function(a) {
|
|
|
12378
12416
|
key: "defaultConfig",
|
|
12379
12417
|
get: function() {
|
|
12380
12418
|
return {
|
|
12381
|
-
position:
|
|
12419
|
+
position: ee.CONTROLS_LEFT,
|
|
12382
12420
|
index: 1,
|
|
12383
12421
|
url: null,
|
|
12384
12422
|
urlList: []
|
|
@@ -12386,7 +12424,7 @@ var rg = /* @__PURE__ */ (function(a) {
|
|
|
12386
12424
|
}
|
|
12387
12425
|
}]), r;
|
|
12388
12426
|
})(Y);
|
|
12389
|
-
function
|
|
12427
|
+
function og() {
|
|
12390
12428
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
12391
12429
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
12392
12430
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -12446,7 +12484,7 @@ var me = {
|
|
|
12446
12484
|
r[t] = s.charCodeAt(t);
|
|
12447
12485
|
return r;
|
|
12448
12486
|
}
|
|
12449
|
-
},
|
|
12487
|
+
}, Oe = {
|
|
12450
12488
|
downloadWithAnchor: function(s, r) {
|
|
12451
12489
|
var t = document.createElement("a");
|
|
12452
12490
|
t.href = s, t.setAttribute("download", r), t.className = "download-js-link", t.innerHTML = "downloading...", t.style.display = "none";
|
|
@@ -12464,7 +12502,7 @@ var me = {
|
|
|
12464
12502
|
var t = new FileReader();
|
|
12465
12503
|
return t.onload = function(i) {
|
|
12466
12504
|
var n = i.target.result;
|
|
12467
|
-
|
|
12505
|
+
Oe.downloadWithSafari(n, r);
|
|
12468
12506
|
}, t.readAsDataURL(s), !0;
|
|
12469
12507
|
}
|
|
12470
12508
|
if (nt.isDataURL(s) && (s = "data:" + s.replace(/^data:([\w\/\-\+]+)/, me.mimeType)), !window.open(s)) {
|
|
@@ -12480,7 +12518,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
12480
12518
|
var t = new FileReader();
|
|
12481
12519
|
return t.onload = function(i) {
|
|
12482
12520
|
var n = i.target.result;
|
|
12483
|
-
|
|
12521
|
+
Oe.downloadWithIframe(n, r);
|
|
12484
12522
|
}, t.readAsDataURL(s), !0;
|
|
12485
12523
|
}
|
|
12486
12524
|
var e = document.createElement("iframe");
|
|
@@ -12496,7 +12534,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
12496
12534
|
setHeaders: function(s) {
|
|
12497
12535
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12498
12536
|
Object.entries(r).forEach(function(t) {
|
|
12499
|
-
var e =
|
|
12537
|
+
var e = xh(t, 2), i = e[0], n = e[1];
|
|
12500
12538
|
s.setRequestHeader(i, n);
|
|
12501
12539
|
});
|
|
12502
12540
|
},
|
|
@@ -12534,7 +12572,7 @@ function yu(a, s, r) {
|
|
|
12534
12572
|
var c = nt.dataURLToBlob(a);
|
|
12535
12573
|
return i = c.type || i, yu(c, e, i);
|
|
12536
12574
|
} else
|
|
12537
|
-
return xt.isIEWithMsSaveBlob() ? navigator.msSaveBlob(nt.dataURLToBlob(a), e) :
|
|
12575
|
+
return xt.isIEWithMsSaveBlob() ? navigator.msSaveBlob(nt.dataURLToBlob(a), e) : Oe.downloadWithAnchor(a, e);
|
|
12538
12576
|
if (typeof a == "string" && nt.hasNonASCII(a)) {
|
|
12539
12577
|
var f = nt.stringToUint8Array(a), d = window.Blob || window.MozBlob || window.WebKitBlob || function(k, R) {
|
|
12540
12578
|
return k;
|
|
@@ -12558,28 +12596,28 @@ function yu(a, s, r) {
|
|
|
12558
12596
|
return navigator.msSaveBlob(p, e);
|
|
12559
12597
|
if (xt.supportsObjectURL()) {
|
|
12560
12598
|
var m = URL.createObjectURL(p);
|
|
12561
|
-
return
|
|
12599
|
+
return Oe.downloadWithAnchor(m, e);
|
|
12562
12600
|
}
|
|
12563
12601
|
if (xt.isSafari())
|
|
12564
|
-
return
|
|
12602
|
+
return Oe.downloadWithSafari(p, e);
|
|
12565
12603
|
if (typeof p == "string" || p.constructor === String)
|
|
12566
12604
|
try {
|
|
12567
12605
|
var v = "data:" + i + ";base64," + btoa(p);
|
|
12568
|
-
return
|
|
12606
|
+
return Oe.downloadWithAnchor(v, e);
|
|
12569
12607
|
} catch {
|
|
12570
12608
|
var C = "data:" + i + "," + encodeURIComponent(p);
|
|
12571
|
-
return
|
|
12609
|
+
return Oe.downloadWithAnchor(C, e);
|
|
12572
12610
|
}
|
|
12573
12611
|
var b = new FileReader();
|
|
12574
12612
|
return b.onload = function(k) {
|
|
12575
|
-
|
|
12576
|
-
}, b.readAsDataURL(p),
|
|
12613
|
+
Oe.downloadWithAnchor(k.target.result, e);
|
|
12614
|
+
}, b.readAsDataURL(p), Oe.downloadWithIframe(p, e);
|
|
12577
12615
|
}
|
|
12578
|
-
function
|
|
12616
|
+
function lg(a) {
|
|
12579
12617
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = te(te({}, me), s), t = r.fileName || a.split("/").pop().split("?")[0] || "download";
|
|
12580
12618
|
return di.downloadFromURL(a, t, r);
|
|
12581
12619
|
}
|
|
12582
|
-
var
|
|
12620
|
+
var ug = /* @__PURE__ */ (function(a) {
|
|
12583
12621
|
M(r, a);
|
|
12584
12622
|
var s = N(r);
|
|
12585
12623
|
function r(t) {
|
|
@@ -12590,7 +12628,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
12590
12628
|
var n = e.playerConfig.url, o = "";
|
|
12591
12629
|
h.typeOf(n) === "String" ? o = n : h.typeOf(n) === "Array" && n.length > 0 && (o = n[0].src);
|
|
12592
12630
|
var l = e.getAbsoluteURL(o);
|
|
12593
|
-
|
|
12631
|
+
lg(l, Object.assign({}, e.config.saveAsOptions || {})), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
12594
12632
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
12595
12633
|
}, 300);
|
|
12596
12634
|
}
|
|
@@ -12609,7 +12647,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
12609
12647
|
key: "registerIcons",
|
|
12610
12648
|
value: function() {
|
|
12611
12649
|
return {
|
|
12612
|
-
download:
|
|
12650
|
+
download: og
|
|
12613
12651
|
};
|
|
12614
12652
|
}
|
|
12615
12653
|
}, {
|
|
@@ -12645,14 +12683,14 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
12645
12683
|
key: "defaultConfig",
|
|
12646
12684
|
get: function() {
|
|
12647
12685
|
return {
|
|
12648
|
-
position:
|
|
12686
|
+
position: ee.CONTROLS_RIGHT,
|
|
12649
12687
|
index: 3,
|
|
12650
12688
|
disable: !0,
|
|
12651
12689
|
saveAsOptions: {}
|
|
12652
12690
|
};
|
|
12653
12691
|
}
|
|
12654
12692
|
}]), r;
|
|
12655
|
-
})(lt),
|
|
12693
|
+
})(lt), cg = /* @__PURE__ */ (function(a) {
|
|
12656
12694
|
M(r, a);
|
|
12657
12695
|
var s = N(r);
|
|
12658
12696
|
function r() {
|
|
@@ -12764,7 +12802,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
12764
12802
|
key: "defaultConfig",
|
|
12765
12803
|
get: function() {
|
|
12766
12804
|
return {
|
|
12767
|
-
position:
|
|
12805
|
+
position: ee.CONTROLS_RIGHT,
|
|
12768
12806
|
index: 5,
|
|
12769
12807
|
quality: 0.92,
|
|
12770
12808
|
type: "image/png",
|
|
@@ -12778,7 +12816,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
12778
12816
|
};
|
|
12779
12817
|
}
|
|
12780
12818
|
}]), r;
|
|
12781
|
-
})(lt),
|
|
12819
|
+
})(lt), fg = /* @__PURE__ */ (function() {
|
|
12782
12820
|
function a(s) {
|
|
12783
12821
|
D(this, a), this.config = s.config, this.parent = s.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), s.root.appendChild(this.root);
|
|
12784
12822
|
var r = this.config.maxHeight;
|
|
@@ -12858,8 +12896,8 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
12858
12896
|
CLICK: "click",
|
|
12859
12897
|
HOVER: "hover"
|
|
12860
12898
|
};
|
|
12861
|
-
function
|
|
12862
|
-
return a === Ie.SIDE ? s ===
|
|
12899
|
+
function hg(a, s) {
|
|
12900
|
+
return a === Ie.SIDE ? s === ee.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
12863
12901
|
}
|
|
12864
12902
|
var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
12865
12903
|
M(r, a);
|
|
@@ -12893,9 +12931,9 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
12893
12931
|
key: "afterCreate",
|
|
12894
12932
|
value: function() {
|
|
12895
12933
|
var e = this, i = this.config;
|
|
12896
|
-
this.initIcons(), et = et || this.domEventType === "touch", et && j.device === "mobile" && i.listType === Ie.DEFAULT && (i.listType = Ie.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Ye,
|
|
12934
|
+
this.initIcons(), et = et || this.domEventType === "touch", et && j.device === "mobile" && i.listType === Ie.DEFAULT && (i.listType = Ie.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Ye, Fe], function() {
|
|
12897
12935
|
e._resizeList();
|
|
12898
|
-
}), this.once(
|
|
12936
|
+
}), this.once(Be, function() {
|
|
12899
12937
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
12900
12938
|
}), et && this.on(pa, function() {
|
|
12901
12939
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
@@ -12972,7 +13010,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
12972
13010
|
var c = {
|
|
12973
13011
|
config: {
|
|
12974
13012
|
data: e || [],
|
|
12975
|
-
className:
|
|
13013
|
+
className: hg(o.listType, o.position),
|
|
12976
13014
|
onItemClick: function(m, v) {
|
|
12977
13015
|
n.onItemClick(m, v);
|
|
12978
13016
|
},
|
|
@@ -12982,7 +13020,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
12982
13020
|
};
|
|
12983
13021
|
if (this.config.isShowIcon) {
|
|
12984
13022
|
var f = this.player.root.getBoundingClientRect(), d = f.height, p = o.listType === Ie.MIDDLE ? d - 50 : d;
|
|
12985
|
-
p && o.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
13023
|
+
p && o.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new fg(c), this.changeCurrentText(), this.show();
|
|
12986
13024
|
}
|
|
12987
13025
|
this._resizeList();
|
|
12988
13026
|
}
|
|
@@ -13020,7 +13058,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13020
13058
|
key: "defaultConfig",
|
|
13021
13059
|
get: function() {
|
|
13022
13060
|
return {
|
|
13023
|
-
position:
|
|
13061
|
+
position: ee.CONTROLS_RIGHT,
|
|
13024
13062
|
index: 100,
|
|
13025
13063
|
list: [],
|
|
13026
13064
|
listType: "default",
|
|
@@ -13033,7 +13071,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13033
13071
|
};
|
|
13034
13072
|
}
|
|
13035
13073
|
}]), r;
|
|
13036
|
-
})(Y),
|
|
13074
|
+
})(Y), dg = /* @__PURE__ */ (function(a) {
|
|
13037
13075
|
M(r, a);
|
|
13038
13076
|
var s = N(r);
|
|
13039
13077
|
function r(t) {
|
|
@@ -13123,7 +13161,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13123
13161
|
key: "defaultConfig",
|
|
13124
13162
|
get: function() {
|
|
13125
13163
|
return te(te({}, gi.defaultConfig), {}, {
|
|
13126
|
-
position:
|
|
13164
|
+
position: ee.CONTROLS_RIGHT,
|
|
13127
13165
|
index: 3,
|
|
13128
13166
|
list: [],
|
|
13129
13167
|
defaultDefinition: "",
|
|
@@ -13134,7 +13172,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13134
13172
|
});
|
|
13135
13173
|
}
|
|
13136
13174
|
}]), r;
|
|
13137
|
-
})(gi),
|
|
13175
|
+
})(gi), gg = /* @__PURE__ */ (function(a) {
|
|
13138
13176
|
M(r, a);
|
|
13139
13177
|
var s = N(r);
|
|
13140
13178
|
function r(t) {
|
|
@@ -13217,7 +13255,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13217
13255
|
key: "defaultConfig",
|
|
13218
13256
|
get: function() {
|
|
13219
13257
|
return te(te({}, gi.defaultConfig), {}, {
|
|
13220
|
-
position:
|
|
13258
|
+
position: ee.CONTROLS_RIGHT,
|
|
13221
13259
|
index: 4,
|
|
13222
13260
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
13223
13261
|
className: "xgplayer-playbackrate",
|
|
@@ -13226,7 +13264,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13226
13264
|
});
|
|
13227
13265
|
}
|
|
13228
13266
|
}]), r;
|
|
13229
|
-
})(gi),
|
|
13267
|
+
})(gi), pg = /* @__PURE__ */ (function(a) {
|
|
13230
13268
|
M(r, a);
|
|
13231
13269
|
var s = N(r);
|
|
13232
13270
|
function r() {
|
|
@@ -13287,7 +13325,7 @@ var et = j.device === "mobile", gi = /* @__PURE__ */ (function(a) {
|
|
|
13287
13325
|
return "error";
|
|
13288
13326
|
}
|
|
13289
13327
|
}]), r;
|
|
13290
|
-
})(Y),
|
|
13328
|
+
})(Y), vg = /* @__PURE__ */ (function(a) {
|
|
13291
13329
|
M(r, a);
|
|
13292
13330
|
var s = N(r);
|
|
13293
13331
|
function r() {
|
|
@@ -13517,7 +13555,7 @@ var hl = {
|
|
|
13517
13555
|
return r.find('xg-spot[data-id="'.concat(s, '"]'));
|
|
13518
13556
|
}
|
|
13519
13557
|
};
|
|
13520
|
-
function
|
|
13558
|
+
function mg(a) {
|
|
13521
13559
|
var s = a.config, r = a.player;
|
|
13522
13560
|
Object.keys(hl).map(function(e) {
|
|
13523
13561
|
a[e] = hl[e].bind(a);
|
|
@@ -13528,7 +13566,7 @@ function pg(a) {
|
|
|
13528
13566
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
13529
13567
|
left: r.sizeInfo.left,
|
|
13530
13568
|
width: r.sizeInfo.width
|
|
13531
|
-
}, a.on(
|
|
13569
|
+
}, a.on(je, function() {
|
|
13532
13570
|
a.ispotsInit ? a.updateDuration() : a.initDots();
|
|
13533
13571
|
}), a.on(Ye, function() {
|
|
13534
13572
|
a.positionDots();
|
|
@@ -13541,7 +13579,7 @@ var vt = {
|
|
|
13541
13579
|
click: "onProgressClick",
|
|
13542
13580
|
mouseover: "onProgressMouseOver",
|
|
13543
13581
|
mouseenter: "onProgressMouseOver"
|
|
13544
|
-
},
|
|
13582
|
+
}, yg = /* @__PURE__ */ (function(a) {
|
|
13545
13583
|
M(r, a);
|
|
13546
13584
|
var s = N(r);
|
|
13547
13585
|
function r(t) {
|
|
@@ -13592,7 +13630,7 @@ var vt = {
|
|
|
13592
13630
|
n.seekTime && e.player.seek(n.seekTime);
|
|
13593
13631
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
13594
13632
|
e.setTimeContent(h.format(i));
|
|
13595
|
-
}),
|
|
13633
|
+
}), mg(this), this.on(je, function() {
|
|
13596
13634
|
e.show();
|
|
13597
13635
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
13598
13636
|
}
|
|
@@ -13816,7 +13854,7 @@ var vt = {
|
|
|
13816
13854
|
};
|
|
13817
13855
|
}
|
|
13818
13856
|
}]), r;
|
|
13819
|
-
})(Y),
|
|
13857
|
+
})(Y), _g = /* @__PURE__ */ (function(a) {
|
|
13820
13858
|
M(r, a);
|
|
13821
13859
|
var s = N(r);
|
|
13822
13860
|
function r(t) {
|
|
@@ -13827,7 +13865,7 @@ var vt = {
|
|
|
13827
13865
|
key: "afterCreate",
|
|
13828
13866
|
value: function() {
|
|
13829
13867
|
var e = this;
|
|
13830
|
-
this.usable && this.initThumbnail(), this.on([
|
|
13868
|
+
this.usable && this.initThumbnail(), this.on([je], function() {
|
|
13831
13869
|
var i = e.config, n = i.pic_num, o = i.interval;
|
|
13832
13870
|
e.usable && (e.interval = o > 0 ? o : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
13833
13871
|
});
|
|
@@ -13953,7 +13991,7 @@ var vt = {
|
|
|
13953
13991
|
function Vr(a) {
|
|
13954
13992
|
return a ? "background:".concat(a, ";") : "";
|
|
13955
13993
|
}
|
|
13956
|
-
var
|
|
13994
|
+
var bg = /* @__PURE__ */ (function(a) {
|
|
13957
13995
|
M(r, a);
|
|
13958
13996
|
var s = N(r);
|
|
13959
13997
|
function r() {
|
|
@@ -14040,14 +14078,14 @@ var yg = /* @__PURE__ */ (function(a) {
|
|
|
14040
14078
|
FIRST_FRAME: "firstframe",
|
|
14041
14079
|
POSTER: "poster"
|
|
14042
14080
|
};
|
|
14043
|
-
function
|
|
14081
|
+
function kg() {
|
|
14044
14082
|
try {
|
|
14045
14083
|
return parseInt(window.performance.now(), 10);
|
|
14046
14084
|
} catch {
|
|
14047
14085
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
14048
14086
|
}
|
|
14049
14087
|
}
|
|
14050
|
-
function
|
|
14088
|
+
function Cg() {
|
|
14051
14089
|
try {
|
|
14052
14090
|
var a = document.createElement("canvas").getContext;
|
|
14053
14091
|
return !!a;
|
|
@@ -14055,7 +14093,7 @@ function bg() {
|
|
|
14055
14093
|
return !1;
|
|
14056
14094
|
}
|
|
14057
14095
|
}
|
|
14058
|
-
var ti = null,
|
|
14096
|
+
var ti = null, Tg = /* @__PURE__ */ (function(a) {
|
|
14059
14097
|
M(r, a);
|
|
14060
14098
|
var s = N(r);
|
|
14061
14099
|
function r() {
|
|
@@ -14076,7 +14114,7 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14076
14114
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
14077
14115
|
}
|
|
14078
14116
|
}), _(y(t), "start", function(o, l) {
|
|
14079
|
-
var u = t.player.video, c =
|
|
14117
|
+
var u = t.player.video, c = kg(), f = t.checkVideoIsSupport(u);
|
|
14080
14118
|
!f || !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 === mt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(y(t), t.start, l) : h.requestAnimationFrame(t.start));
|
|
14081
14119
|
}), _(y(t), "stop", function() {
|
|
14082
14120
|
t.frameId && (t._loopType === "timer" ? h.clearTimeout(y(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -14100,12 +14138,12 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14100
14138
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
14101
14139
|
}), o !== mt.POSTER && (o !== mt.FIRST_FRAME && (this.on(ot, function() {
|
|
14102
14140
|
e.stop();
|
|
14103
|
-
}), this.on(
|
|
14141
|
+
}), this.on(Ce, function() {
|
|
14104
14142
|
var u = e.config.startInterval;
|
|
14105
14143
|
e._checkIfCanStart() && e.start(0, u);
|
|
14106
14144
|
}), this.on(Ct, function() {
|
|
14107
14145
|
e.stop();
|
|
14108
|
-
})), this.on(
|
|
14146
|
+
})), this.on(Ue, this.onLoadedData), this.on(ga, function() {
|
|
14109
14147
|
e._isLoaded = !1, e.stop();
|
|
14110
14148
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
14111
14149
|
}
|
|
@@ -14249,7 +14287,7 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14249
14287
|
}, {
|
|
14250
14288
|
key: "isSupport",
|
|
14251
14289
|
get: function() {
|
|
14252
|
-
return typeof ti == "boolean" || (ti =
|
|
14290
|
+
return typeof ti == "boolean" || (ti = Cg()), ti;
|
|
14253
14291
|
}
|
|
14254
14292
|
}, {
|
|
14255
14293
|
key: "supportCanvasFilter",
|
|
@@ -14257,7 +14295,7 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14257
14295
|
return !(j.browser === "safari" || j.browser === "firefox");
|
|
14258
14296
|
}
|
|
14259
14297
|
}]), r;
|
|
14260
|
-
})(Y),
|
|
14298
|
+
})(Y), wg = {
|
|
14261
14299
|
LANG: "zh-cn",
|
|
14262
14300
|
TEXT: {
|
|
14263
14301
|
ERROR_TYPES: {
|
|
@@ -14333,7 +14371,7 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14333
14371
|
FORWARD: "快进中",
|
|
14334
14372
|
LIVE_TIP: "直播"
|
|
14335
14373
|
}
|
|
14336
|
-
}, It = "info", qr = au,
|
|
14374
|
+
}, It = "info", qr = au, Sg = /* @__PURE__ */ (function(a) {
|
|
14337
14375
|
M(r, a);
|
|
14338
14376
|
var s = N(r);
|
|
14339
14377
|
function r() {
|
|
@@ -14518,7 +14556,7 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14518
14556
|
key: "afterCreate",
|
|
14519
14557
|
value: function() {
|
|
14520
14558
|
var e = this, i = this.config.useGapJump;
|
|
14521
|
-
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(jt, this.onGapJump), this.on(
|
|
14559
|
+
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(jt, this.onGapJump), this.on(Ce, function() {
|
|
14522
14560
|
e.hasPlayed = !0;
|
|
14523
14561
|
}), this.on(Ti, function() {
|
|
14524
14562
|
e.seekingEventReceived = !0;
|
|
@@ -14567,7 +14605,7 @@ var ti = null, kg = /* @__PURE__ */ (function(a) {
|
|
|
14567
14605
|
}]), r;
|
|
14568
14606
|
})(Y);
|
|
14569
14607
|
bu.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
14570
|
-
var
|
|
14608
|
+
var Eg = /* @__PURE__ */ (function(a) {
|
|
14571
14609
|
M(r, a);
|
|
14572
14610
|
var s = N(r);
|
|
14573
14611
|
function r() {
|
|
@@ -14591,9 +14629,9 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14591
14629
|
key: "afterCreate",
|
|
14592
14630
|
value: function() {
|
|
14593
14631
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, o = i.jumpSize;
|
|
14594
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(jt, this.onWaiting), this.on([Ci,
|
|
14632
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(jt, this.onWaiting), this.on([Ci, Be], function() {
|
|
14595
14633
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
14596
|
-
}), this.on(
|
|
14634
|
+
}), this.on(Ce, function() {
|
|
14597
14635
|
e.hasPlayed = !0;
|
|
14598
14636
|
}));
|
|
14599
14637
|
}
|
|
@@ -14613,7 +14651,7 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14613
14651
|
};
|
|
14614
14652
|
}
|
|
14615
14653
|
}]), r;
|
|
14616
|
-
})(Y), yt = "cdn", ii = ["cdn"],
|
|
14654
|
+
})(Y), yt = "cdn", ii = ["cdn"], xg = /* @__PURE__ */ (function(a) {
|
|
14617
14655
|
M(r, a);
|
|
14618
14656
|
var s = N(r);
|
|
14619
14657
|
function r() {
|
|
@@ -14689,7 +14727,7 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14689
14727
|
key: "afterCreate",
|
|
14690
14728
|
value: function() {
|
|
14691
14729
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
14692
|
-
(n == null ? void 0 : n.length) > 0 && ii.push.apply(ii, Ee(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([
|
|
14730
|
+
(n == null ? void 0 : n.length) > 0 && ii.push.apply(ii, Ee(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ue, ai], this.startTimer);
|
|
14693
14731
|
}
|
|
14694
14732
|
}, {
|
|
14695
14733
|
key: "getSpeedName",
|
|
@@ -14716,7 +14754,7 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14716
14754
|
key: "destroy",
|
|
14717
14755
|
value: function() {
|
|
14718
14756
|
var e = this;
|
|
14719
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([
|
|
14757
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ue, ai], this.startTimer), ii.forEach(function(i) {
|
|
14720
14758
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
14721
14759
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
14722
14760
|
}
|
|
@@ -14739,7 +14777,7 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14739
14777
|
};
|
|
14740
14778
|
}
|
|
14741
14779
|
}]), r;
|
|
14742
|
-
})(Y),
|
|
14780
|
+
})(Y), Ig = /* @__PURE__ */ (function(a) {
|
|
14743
14781
|
M(r, a);
|
|
14744
14782
|
var s = N(r);
|
|
14745
14783
|
function r() {
|
|
@@ -14751,7 +14789,7 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14751
14789
|
var e = this, i = this.player, n = this.config, o = i.media || i.video;
|
|
14752
14790
|
if (this.timer = null, this._lastDecodedFrames = 0, this._currentStuckCount = 0, this._lastCheckPoint = null, this._payload = [], !n.disabled) {
|
|
14753
14791
|
var l = o.getVideoPlaybackQuality;
|
|
14754
|
-
l && (this.on(
|
|
14792
|
+
l && (this.on(Ce, function() {
|
|
14755
14793
|
e._startTick();
|
|
14756
14794
|
}), this.on(Ct, function() {
|
|
14757
14795
|
e._stopTick();
|
|
@@ -14849,24 +14887,24 @@ var wg = /* @__PURE__ */ (function(a) {
|
|
|
14849
14887
|
}
|
|
14850
14888
|
}]), r;
|
|
14851
14889
|
})(Y);
|
|
14852
|
-
bt.use(
|
|
14853
|
-
var
|
|
14890
|
+
bt.use(wg);
|
|
14891
|
+
var Pg = /* @__PURE__ */ O(function a(s, r) {
|
|
14854
14892
|
var t, e, i;
|
|
14855
14893
|
D(this, a);
|
|
14856
|
-
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, l = o ? [] : [
|
|
14857
|
-
this.plugins = [
|
|
14894
|
+
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, l = o ? [] : [Qd, gu, bg, yg, pu], u = [].concat(l, [du, hu, tg, sg, dg, gg, ug, cg, vu, rg]), c = [Fd, Md, Bd, Zd, Hd, pg, vg, _g, Vd];
|
|
14895
|
+
this.plugins = [Sg, Dd].concat(Ee(u), c, [bu, Eg]);
|
|
14858
14896
|
var f = n ? "mobile" : j.device;
|
|
14859
14897
|
switch (f) {
|
|
14860
14898
|
case "pc":
|
|
14861
|
-
(t = this.plugins).push.apply(t, [cl, jr, Zr,
|
|
14899
|
+
(t = this.plugins).push.apply(t, [cl, jr, Zr, xg, Ig]);
|
|
14862
14900
|
break;
|
|
14863
14901
|
case "mobile":
|
|
14864
|
-
(e = this.plugins).push.apply(e, [
|
|
14902
|
+
(e = this.plugins).push.apply(e, [Yd]);
|
|
14865
14903
|
break;
|
|
14866
14904
|
default:
|
|
14867
14905
|
(i = this.plugins).push.apply(i, [cl, jr, Zr]);
|
|
14868
14906
|
}
|
|
14869
|
-
(j.os.isIpad || f === "pc") && this.plugins.push(
|
|
14907
|
+
(j.os.isIpad || f === "pc") && this.plugins.push(Tg), j.os.isIpad && this.plugins.push(jr), this.ignores = [], this.i18n = [];
|
|
14870
14908
|
}), ue = /* @__PURE__ */ (function(a) {
|
|
14871
14909
|
M(r, a);
|
|
14872
14910
|
var s = N(r);
|
|
@@ -14875,11 +14913,11 @@ var xg = /* @__PURE__ */ O(function a(s, r) {
|
|
|
14875
14913
|
}
|
|
14876
14914
|
return O(r);
|
|
14877
14915
|
})(xi);
|
|
14878
|
-
_(ue, "defaultPreset",
|
|
14916
|
+
_(ue, "defaultPreset", Pg);
|
|
14879
14917
|
_(ue, "Util", h);
|
|
14880
14918
|
_(ue, "Sniffer", j);
|
|
14881
14919
|
_(ue, "Errors", ri);
|
|
14882
|
-
_(ue, "Events",
|
|
14920
|
+
_(ue, "Events", ed);
|
|
14883
14921
|
_(ue, "Plugin", Y);
|
|
14884
14922
|
_(ue, "BasePlugin", Xe);
|
|
14885
14923
|
_(ue, "I18N", bt);
|
|
@@ -14891,7 +14929,7 @@ _(ue, "Progress", gu);
|
|
|
14891
14929
|
_(ue, "FullscreenIcon", hu);
|
|
14892
14930
|
_(ue, "CssFullscreenIcon", Zr);
|
|
14893
14931
|
_(ue, "VolumeIcon", vu);
|
|
14894
|
-
const
|
|
14932
|
+
const Ag = ["id"], Lg = /* @__PURE__ */ ke({
|
|
14895
14933
|
name: "ElImageViewer",
|
|
14896
14934
|
__name: "Player",
|
|
14897
14935
|
props: /* @__PURE__ */ Ft({
|
|
@@ -14920,7 +14958,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
14920
14958
|
}, ["update:modelValue"]),
|
|
14921
14959
|
setup(a, { emit: s }) {
|
|
14922
14960
|
let r = null;
|
|
14923
|
-
const t = a, { cLoadUrl: e } = ea(t), i =
|
|
14961
|
+
const t = a, { cLoadUrl: e } = ea(t), i = Q(() => kt(e.value, t.url)), n = {
|
|
14924
14962
|
width: "100%",
|
|
14925
14963
|
height: "100%",
|
|
14926
14964
|
// 是否自动播放
|
|
@@ -14938,7 +14976,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
14938
14976
|
poster: "",
|
|
14939
14977
|
lang: "zh-CN",
|
|
14940
14978
|
screenShot: !0
|
|
14941
|
-
}, o =
|
|
14979
|
+
}, o = Q(() => ({
|
|
14942
14980
|
...n,
|
|
14943
14981
|
...t.config
|
|
14944
14982
|
})), l = s, u = Qr(a, "modelValue"), c = yl(), f = _l("image-viewer");
|
|
@@ -14955,7 +14993,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
14955
14993
|
});
|
|
14956
14994
|
}), (p, g) => {
|
|
14957
14995
|
const m = Mt("el-icon");
|
|
14958
|
-
return u.value ? (T(),
|
|
14996
|
+
return u.value ? (T(), oe(vl, {
|
|
14959
14997
|
key: 0,
|
|
14960
14998
|
to: "body"
|
|
14961
14999
|
}, [
|
|
@@ -14970,7 +15008,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
14970
15008
|
ref: "wrapper",
|
|
14971
15009
|
tabindex: -1,
|
|
14972
15010
|
class: ie(I(f).e("wrapper")),
|
|
14973
|
-
style:
|
|
15011
|
+
style: le({ zIndex: a.zIndex })
|
|
14974
15012
|
},
|
|
14975
15013
|
[
|
|
14976
15014
|
w(
|
|
@@ -14989,7 +15027,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
14989
15027
|
class: ie(I(f).e("canvas"))
|
|
14990
15028
|
},
|
|
14991
15029
|
[
|
|
14992
|
-
w("div", { id: I(c) }, null, 8,
|
|
15030
|
+
w("div", { id: I(c) }, null, 8, Ag),
|
|
14993
15031
|
P(" CLOSE "),
|
|
14994
15032
|
w(
|
|
14995
15033
|
"span",
|
|
@@ -15013,7 +15051,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15013
15051
|
2
|
|
15014
15052
|
/* CLASS */
|
|
15015
15053
|
),
|
|
15016
|
-
|
|
15054
|
+
Ne(p.$slots, "default", {}, void 0, !0)
|
|
15017
15055
|
],
|
|
15018
15056
|
6
|
|
15019
15057
|
/* CLASS, STYLE */
|
|
@@ -15025,46 +15063,46 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15025
15063
|
])) : P("v-if", !0);
|
|
15026
15064
|
};
|
|
15027
15065
|
}
|
|
15028
|
-
}),
|
|
15066
|
+
}), Rg = /* @__PURE__ */ pi(Lg, [["__scopeId", "data-v-b301aa7d"]]), Dg = Ae(Rg), Og = {
|
|
15029
15067
|
class: "approveProcess",
|
|
15030
15068
|
id: "approveProcess"
|
|
15031
|
-
},
|
|
15069
|
+
}, Fg = ["id"], Mg = { class: "topBlock" }, Ng = { class: "left" }, Bg = { class: "nodeBg" }, Hg = ["src"], Ug = { class: "right" }, jg = { class: "topInfo" }, zg = { key: 0 }, Vg = {
|
|
15032
15070
|
key: 0,
|
|
15033
15071
|
class: "main-text"
|
|
15034
|
-
},
|
|
15072
|
+
}, qg = { class: "name" }, Gg = { key: 0 }, Wg = { key: 0 }, $g = { key: 1 }, Kg = { key: 0 }, Yg = { key: 0 }, Xg = { key: 1 }, Jg = { key: 1 }, Zg = { class: "name" }, Qg = { key: 0 }, ep = { style: { color: "#000" } }, tp = {
|
|
15035
15073
|
class: "blue",
|
|
15036
15074
|
style: { "margin-left": "5px", "font-size": "12px" }
|
|
15037
|
-
},
|
|
15075
|
+
}, ip = { key: 1 }, np = {
|
|
15038
15076
|
key: 0,
|
|
15039
15077
|
class: "blue",
|
|
15040
15078
|
style: { "font-size": "12px" }
|
|
15041
|
-
},
|
|
15079
|
+
}, rp = { key: 1 }, ap = {
|
|
15042
15080
|
key: 0,
|
|
15043
15081
|
class: "blue",
|
|
15044
15082
|
style: { "font-size": "12px" }
|
|
15045
|
-
},
|
|
15083
|
+
}, sp = {
|
|
15046
15084
|
key: 1,
|
|
15047
15085
|
class: "blue",
|
|
15048
15086
|
style: { "font-size": "12px" }
|
|
15049
|
-
},
|
|
15087
|
+
}, op = { class: "time" }, lp = { key: 0 }, up = { key: 1 }, cp = ["onClick"], fp = ["onClick"], hp = {
|
|
15050
15088
|
key: 0,
|
|
15051
15089
|
class: "opinion"
|
|
15052
|
-
},
|
|
15090
|
+
}, dp = { key: 0 }, gp = { key: 1 }, pp = { style: { color: "var(--el-text-color-primary)", "margin-left": "8px" } }, vp = {
|
|
15053
15091
|
key: 2,
|
|
15054
15092
|
class: "annexImage"
|
|
15055
|
-
},
|
|
15093
|
+
}, mp = {
|
|
15056
15094
|
key: 3,
|
|
15057
15095
|
class: "approveList"
|
|
15058
|
-
},
|
|
15096
|
+
}, yp = { class: "nodeBg-list" }, _p = ["src"], bp = { key: 1 }, kp = {
|
|
15059
15097
|
key: 2,
|
|
15060
15098
|
class: "ikapprove ikapprove-duihao2 green read"
|
|
15061
|
-
},
|
|
15099
|
+
}, Cp = ["title"], Tp = {
|
|
15062
15100
|
key: 0,
|
|
15063
15101
|
class: "branch"
|
|
15064
|
-
},
|
|
15102
|
+
}, wp = { class: "branch-card" }, Sp = { class: "branch-name" }, Ep = {
|
|
15065
15103
|
name: "IkingApprovalProcessDetail"
|
|
15066
|
-
},
|
|
15067
|
-
...
|
|
15104
|
+
}, xp = /* @__PURE__ */ ke({
|
|
15105
|
+
...Ep,
|
|
15068
15106
|
props: {
|
|
15069
15107
|
// 是否本地打开
|
|
15070
15108
|
local: {
|
|
@@ -15198,20 +15236,20 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15198
15236
|
}, u = (c) => kt(t.value, c);
|
|
15199
15237
|
return (c, f) => {
|
|
15200
15238
|
const d = Mt("el-image"), p = Mt("IkingApprovalProcessDetail");
|
|
15201
|
-
return T(), x("div",
|
|
15239
|
+
return T(), x("div", Og, [
|
|
15202
15240
|
(T(!0), x(
|
|
15203
15241
|
se,
|
|
15204
15242
|
null,
|
|
15205
|
-
|
|
15243
|
+
Me(e.listData, (g, m) => {
|
|
15206
15244
|
var v, C, b, k, R, E, L, z, G, V;
|
|
15207
15245
|
return T(), x("div", {
|
|
15208
15246
|
class: "approveBlock",
|
|
15209
15247
|
id: g[e.defaultFile.nodeId],
|
|
15210
15248
|
key: g[e.defaultFile.nodeId]
|
|
15211
15249
|
}, [
|
|
15212
|
-
w("div",
|
|
15213
|
-
w("div",
|
|
15214
|
-
w("span",
|
|
15250
|
+
w("div", Mg, [
|
|
15251
|
+
w("div", Ng, [
|
|
15252
|
+
w("span", Bg, [
|
|
15215
15253
|
P(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),
|
|
15216
15254
|
((v = g[e.defaultFile.approvePersonList]) == null ? void 0 : v.length) == 1 && g[e.defaultFile.approvePersonList][0].userAvatar ? (T(), x("img", {
|
|
15217
15255
|
key: 0,
|
|
@@ -15220,7 +15258,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15220
15258
|
g[e.defaultFile.approvePersonList][0].userAvatar
|
|
15221
15259
|
),
|
|
15222
15260
|
alt: ""
|
|
15223
|
-
}, null, 8,
|
|
15261
|
+
}, null, 8, Hg)) : (T(), x(
|
|
15224
15262
|
se,
|
|
15225
15263
|
{ key: 1 },
|
|
15226
15264
|
[
|
|
@@ -15258,27 +15296,27 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15258
15296
|
)
|
|
15259
15297
|
])
|
|
15260
15298
|
]),
|
|
15261
|
-
w("div",
|
|
15262
|
-
w("div",
|
|
15299
|
+
w("div", Ug, [
|
|
15300
|
+
w("div", jg, [
|
|
15263
15301
|
w("div", null, [
|
|
15264
15302
|
P(" 不是抄送节点 "),
|
|
15265
|
-
e.nodeType.抄送节点 !== g[e.defaultFile.nodeType] ? (T(), x("div",
|
|
15303
|
+
e.nodeType.抄送节点 !== g[e.defaultFile.nodeType] ? (T(), x("div", zg, [
|
|
15266
15304
|
P(" 撤销,评论不显示节点名称 "),
|
|
15267
15305
|
g[e.defaultFile.approveStatus] != e.statusOption.撤销 && g[e.defaultFile.approveStatus] != e.statusOption.评论 && g[e.defaultFile.nodeType] !== e.nodeType.并行分支 ? (T(), x(
|
|
15268
15306
|
"div",
|
|
15269
|
-
|
|
15307
|
+
Vg,
|
|
15270
15308
|
J(g[e.defaultFile.nodeTypeName]),
|
|
15271
15309
|
1
|
|
15272
15310
|
/* TEXT */
|
|
15273
15311
|
)) : P("v-if", !0),
|
|
15274
15312
|
P(" 名字+审批状态 "),
|
|
15275
|
-
w("div",
|
|
15313
|
+
w("div", qg, [
|
|
15276
15314
|
P(" 已审批节点文本 "),
|
|
15277
|
-
g[e.defaultFile.lineType] == "solid" ? (T(), x("div",
|
|
15315
|
+
g[e.defaultFile.lineType] == "solid" ? (T(), x("div", Gg, [
|
|
15278
15316
|
w(
|
|
15279
15317
|
"span",
|
|
15280
15318
|
{
|
|
15281
|
-
style:
|
|
15319
|
+
style: le({
|
|
15282
15320
|
color: g[e.defaultFile.approveStatus] == e.statusOption.评论 ? "#000" : ""
|
|
15283
15321
|
})
|
|
15284
15322
|
},
|
|
@@ -15289,13 +15327,13 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15289
15327
|
P(" 发起,退回不显示状态 "),
|
|
15290
15328
|
g[e.defaultFile.approveStatusName] && g[e.defaultFile.approveStatus] != e.statusOption.发起 && g[e.defaultFile.approveStatus] != e.statusOption.退回 ? (T(), x(
|
|
15291
15329
|
"span",
|
|
15292
|
-
|
|
15330
|
+
Wg,
|
|
15293
15331
|
J(g[e.defaultFile.approveStatus] == e.statusOption.评论 ? " 添加了评论" : g != null && g.nodeActionAliasName ? `(已${g.nodeActionAliasName})` : `(${g[e.defaultFile.approveStatusName]})`),
|
|
15294
15332
|
1
|
|
15295
15333
|
/* TEXT */
|
|
15296
15334
|
)) : P("v-if", !0),
|
|
15297
15335
|
P(" 退回状态显示 "),
|
|
15298
|
-
g[e.defaultFile.approveStatus] == e.statusOption.退回 ? (T(), x("span",
|
|
15336
|
+
g[e.defaultFile.approveStatus] == e.statusOption.退回 ? (T(), x("span", $g, [
|
|
15299
15337
|
f[0] || (f[0] = w(
|
|
15300
15338
|
"span",
|
|
15301
15339
|
{
|
|
@@ -15318,7 +15356,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15318
15356
|
[
|
|
15319
15357
|
P(" 待审批节点 "),
|
|
15320
15358
|
w("div", null, [
|
|
15321
|
-
((C = g[e.defaultFile.approvePersonList]) == null ? void 0 : C.length) == 1 ? (T(), x("span",
|
|
15359
|
+
((C = g[e.defaultFile.approvePersonList]) == null ? void 0 : C.length) == 1 ? (T(), x("span", Kg, [
|
|
15322
15360
|
_t(
|
|
15323
15361
|
J(g[e.defaultFile.originator]) + " ",
|
|
15324
15362
|
1
|
|
@@ -15326,14 +15364,14 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15326
15364
|
),
|
|
15327
15365
|
g[e.defaultFile.approveStatus] == e.statusOption.等待 ? (T(), x(
|
|
15328
15366
|
"span",
|
|
15329
|
-
|
|
15367
|
+
Yg,
|
|
15330
15368
|
J(g != null && g.nodeActionAliasName ? `(已${g.nodeActionAliasName})` : `(${g[e.defaultFile.approveStatusName]})`),
|
|
15331
15369
|
1
|
|
15332
15370
|
/* TEXT */
|
|
15333
15371
|
)) : P("v-if", !0)
|
|
15334
15372
|
])) : g[e.defaultFile.approvePersonList] ? (T(), x(
|
|
15335
15373
|
"span",
|
|
15336
|
-
|
|
15374
|
+
Xg,
|
|
15337
15375
|
J(`${(b = g[e.defaultFile.approvePersonList]) == null ? void 0 : b.length}人${g[e.defaultFile.approveTypeName]}`),
|
|
15338
15376
|
1
|
|
15339
15377
|
/* TEXT */
|
|
@@ -15344,7 +15382,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15344
15382
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
15345
15383
|
))
|
|
15346
15384
|
])
|
|
15347
|
-
])) : (T(), x("div",
|
|
15385
|
+
])) : (T(), x("div", Jg, [
|
|
15348
15386
|
f[2] || (f[2] = w(
|
|
15349
15387
|
"div",
|
|
15350
15388
|
{ class: "main-text" },
|
|
@@ -15352,9 +15390,9 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15352
15390
|
-1
|
|
15353
15391
|
/* CACHED */
|
|
15354
15392
|
)),
|
|
15355
|
-
w("div",
|
|
15393
|
+
w("div", Zg, [
|
|
15356
15394
|
P(" 抄送一人时 "),
|
|
15357
|
-
((k = g[e.defaultFile.approvePersonList]) == null ? void 0 : k.length) == 1 ? (T(), x("span",
|
|
15395
|
+
((k = g[e.defaultFile.approvePersonList]) == null ? void 0 : k.length) == 1 ? (T(), x("span", Qg, [
|
|
15358
15396
|
w("span", null, [
|
|
15359
15397
|
f[1] || (f[1] = _t(
|
|
15360
15398
|
"已抄送给 ",
|
|
@@ -15363,7 +15401,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15363
15401
|
)),
|
|
15364
15402
|
w(
|
|
15365
15403
|
"span",
|
|
15366
|
-
|
|
15404
|
+
ep,
|
|
15367
15405
|
J(g[e.defaultFile.approvePersonList][0].userName),
|
|
15368
15406
|
1
|
|
15369
15407
|
/* TEXT */
|
|
@@ -15371,24 +15409,24 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15371
15409
|
]),
|
|
15372
15410
|
w(
|
|
15373
15411
|
"span",
|
|
15374
|
-
|
|
15412
|
+
tp,
|
|
15375
15413
|
J(g[e.defaultFile.approvePersonList][0].status === "END" ? "已读" : "未读"),
|
|
15376
15414
|
1
|
|
15377
15415
|
/* TEXT */
|
|
15378
15416
|
)
|
|
15379
15417
|
])) : P("v-if", !0),
|
|
15380
15418
|
P(" 抄送多人时 "),
|
|
15381
|
-
((R = g[e.defaultFile.approvePersonList]) == null ? void 0 : R.length) > 1 ? (T(), x("span",
|
|
15419
|
+
((R = g[e.defaultFile.approvePersonList]) == null ? void 0 : R.length) > 1 ? (T(), x("span", ip, [
|
|
15382
15420
|
_t(
|
|
15383
15421
|
J(`已抄送${(E = g[e.defaultFile.approvePersonList]) == null ? void 0 : E.length}人`) + " ",
|
|
15384
15422
|
1
|
|
15385
15423
|
/* TEXT */
|
|
15386
15424
|
),
|
|
15387
|
-
g[e.defaultFile.allRead] ? (T(), x("span",
|
|
15388
|
-
g[e.defaultFile.read] ? P("v-if", !0) : (T(), x("span",
|
|
15425
|
+
g[e.defaultFile.allRead] ? (T(), x("span", np, " 全部已读 ")) : (T(), x("span", rp, [
|
|
15426
|
+
g[e.defaultFile.read] ? P("v-if", !0) : (T(), x("span", ap, " 全部未读 ")),
|
|
15389
15427
|
g[e.defaultFile.read] ? (T(), x(
|
|
15390
15428
|
"span",
|
|
15391
|
-
|
|
15429
|
+
sp,
|
|
15392
15430
|
J(g[e.defaultFile.read]) + "人已读 ",
|
|
15393
15431
|
1
|
|
15394
15432
|
/* TEXT */
|
|
@@ -15398,11 +15436,11 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15398
15436
|
])
|
|
15399
15437
|
]))
|
|
15400
15438
|
]),
|
|
15401
|
-
w("div",
|
|
15439
|
+
w("div", op, [
|
|
15402
15440
|
P(" 不是抄送节点,展示时间 "),
|
|
15403
15441
|
g[e.defaultFile.nodeType] != e.nodeType.抄送节点 && g[e.defaultFile.approveStatus] !== e.statusOption.等待 ? (T(), x(
|
|
15404
15442
|
"span",
|
|
15405
|
-
|
|
15443
|
+
lp,
|
|
15406
15444
|
J(I(Fu).toDateTime(
|
|
15407
15445
|
g[e.defaultFile.operationTime],
|
|
15408
15446
|
"MM/DD HH:mm"
|
|
@@ -15411,16 +15449,16 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15411
15449
|
/* TEXT */
|
|
15412
15450
|
)) : P("v-if", !0),
|
|
15413
15451
|
P(" 是抄送节点,并且抄送人员大于1时,展示图标 "),
|
|
15414
|
-
g[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((L = g[e.defaultFile.approvePersonList]) == null ? void 0 : L.length) > 1 ? (T(), x("span",
|
|
15452
|
+
g[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((L = g[e.defaultFile.approvePersonList]) == null ? void 0 : L.length) > 1 ? (T(), x("span", up, [
|
|
15415
15453
|
g != null && g.show ? (T(), x("i", {
|
|
15416
15454
|
key: 0,
|
|
15417
15455
|
class: "ikapprove ikapprove-a-putongjiantouzhankai",
|
|
15418
15456
|
onClick: (A) => l(g, "grid")
|
|
15419
|
-
}, null, 8,
|
|
15457
|
+
}, null, 8, cp)) : (T(), x("i", {
|
|
15420
15458
|
key: 1,
|
|
15421
15459
|
onClick: (A) => l(g, "none"),
|
|
15422
15460
|
class: "ikapprove ikapprove-a-putongjiantoushouqi"
|
|
15423
|
-
}, null, 8,
|
|
15461
|
+
}, null, 8, fp))
|
|
15424
15462
|
])) : P("v-if", !0)
|
|
15425
15463
|
])
|
|
15426
15464
|
])
|
|
@@ -15430,21 +15468,21 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15430
15468
|
"div",
|
|
15431
15469
|
{
|
|
15432
15470
|
class: "bottomBlock",
|
|
15433
|
-
style:
|
|
15471
|
+
style: le({
|
|
15434
15472
|
borderLeft: m == e.listData.length - 1 ? "" : `2px ${g[e.defaultFile.lineType] || "dashed"} var(--el-border-color)`
|
|
15435
15473
|
})
|
|
15436
15474
|
},
|
|
15437
15475
|
[
|
|
15438
15476
|
P(" 审批意见 "),
|
|
15439
|
-
g[e.defaultFile.approveOpinion] || g[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), x("div",
|
|
15477
|
+
g[e.defaultFile.approveOpinion] || g[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), x("div", hp, [
|
|
15440
15478
|
g[e.defaultFile.approveOpinion] ? (T(), x(
|
|
15441
15479
|
"span",
|
|
15442
|
-
|
|
15480
|
+
dp,
|
|
15443
15481
|
J(g[e.defaultFile.approveOpinion]),
|
|
15444
15482
|
1
|
|
15445
15483
|
/* TEXT */
|
|
15446
15484
|
)) : P("v-if", !0),
|
|
15447
|
-
g[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), x("span",
|
|
15485
|
+
g[e.defaultFile.approveStatus] == e.statusOption.加签 ? (T(), x("span", gp, [
|
|
15448
15486
|
f[3] || (f[3] = w(
|
|
15449
15487
|
"span",
|
|
15450
15488
|
{ class: "ik-text-primary" },
|
|
@@ -15455,9 +15493,9 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15455
15493
|
(T(!0), x(
|
|
15456
15494
|
se,
|
|
15457
15495
|
null,
|
|
15458
|
-
|
|
15496
|
+
Me(g[e.defaultFile.countersignPer], (A, F) => (T(), x(
|
|
15459
15497
|
"span",
|
|
15460
|
-
|
|
15498
|
+
pp,
|
|
15461
15499
|
J(A == null ? void 0 : A.userName) + J(F < g[e.defaultFile.countersignPer].length - 1 ? "、" : ""),
|
|
15462
15500
|
1
|
|
15463
15501
|
/* TEXT */
|
|
@@ -15468,16 +15506,16 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15468
15506
|
])) : P("v-if", !0)
|
|
15469
15507
|
])) : P("v-if", !0),
|
|
15470
15508
|
P(" 附件 "),
|
|
15471
|
-
(z = g[e.defaultFile.attachment]) != null && z.length ? (T(),
|
|
15509
|
+
(z = g[e.defaultFile.attachment]) != null && z.length ? (T(), oe(I(Cc), {
|
|
15472
15510
|
key: 1,
|
|
15473
15511
|
list: g[e.defaultFile.attachment]
|
|
15474
15512
|
}, null, 8, ["list"])) : P("v-if", !0),
|
|
15475
15513
|
P(" 附件图片 "),
|
|
15476
|
-
(G = g[e.defaultFile.attachmentImg]) != null && G.length ? (T(), x("div",
|
|
15514
|
+
(G = g[e.defaultFile.attachmentImg]) != null && G.length ? (T(), x("div", vp, [
|
|
15477
15515
|
(T(!0), x(
|
|
15478
15516
|
se,
|
|
15479
15517
|
null,
|
|
15480
|
-
|
|
15518
|
+
Me(g[e.defaultFile.attachmentImg], (A, F) => (T(), x("div", {
|
|
15481
15519
|
class: "image",
|
|
15482
15520
|
key: F
|
|
15483
15521
|
}, [
|
|
@@ -15496,35 +15534,35 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15496
15534
|
))
|
|
15497
15535
|
])) : P("v-if", !0),
|
|
15498
15536
|
P(" 抄送节点或是等待审批状态并且列表长度大于1 "),
|
|
15499
|
-
(g[e.defaultFile.nodeType] == e.nodeType.抄送节点 || g[e.defaultFile.approveStatus] == e.statusOption.等待) && ((V = g[e.defaultFile.approvePersonList]) == null ? void 0 : V.length) > 1 ? (T(), x("div",
|
|
15537
|
+
(g[e.defaultFile.nodeType] == e.nodeType.抄送节点 || g[e.defaultFile.approveStatus] == e.statusOption.等待) && ((V = g[e.defaultFile.approvePersonList]) == null ? void 0 : V.length) > 1 ? (T(), x("div", mp, [
|
|
15500
15538
|
(T(!0), x(
|
|
15501
15539
|
se,
|
|
15502
15540
|
null,
|
|
15503
|
-
|
|
15541
|
+
Me(g[e.defaultFile.approvePersonList], (A) => {
|
|
15504
15542
|
var F;
|
|
15505
15543
|
return T(), x("div", {
|
|
15506
15544
|
class: "perBlock",
|
|
15507
15545
|
key: A.userName
|
|
15508
15546
|
}, [
|
|
15509
|
-
w("span",
|
|
15547
|
+
w("span", yp, [
|
|
15510
15548
|
A.userAvatar ? (T(), x("img", {
|
|
15511
15549
|
key: 0,
|
|
15512
15550
|
style: { width: "100%", height: "100%", "border-radius": "50%" },
|
|
15513
15551
|
src: u(A.userAvatar),
|
|
15514
15552
|
alt: ""
|
|
15515
|
-
}, null, 8,
|
|
15553
|
+
}, null, 8, _p)) : (T(), x(
|
|
15516
15554
|
"span",
|
|
15517
|
-
|
|
15555
|
+
bp,
|
|
15518
15556
|
J((F = A.userName) == null ? void 0 : F.slice(-2)),
|
|
15519
15557
|
1
|
|
15520
15558
|
/* TEXT */
|
|
15521
15559
|
)),
|
|
15522
|
-
A.status === "END" ? (T(), x("i",
|
|
15560
|
+
A.status === "END" ? (T(), x("i", kp)) : P("v-if", !0)
|
|
15523
15561
|
]),
|
|
15524
15562
|
w("div", {
|
|
15525
15563
|
class: "main-text",
|
|
15526
15564
|
title: A.userName
|
|
15527
|
-
}, J(A.userName), 9,
|
|
15565
|
+
}, J(A.userName), 9, Cp)
|
|
15528
15566
|
]);
|
|
15529
15567
|
}),
|
|
15530
15568
|
128
|
|
@@ -15535,14 +15573,14 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15535
15573
|
4
|
|
15536
15574
|
/* STYLE */
|
|
15537
15575
|
),
|
|
15538
|
-
g[e.defaultFile.nodeType] === e.nodeType.并行分支 ? (T(), x("div",
|
|
15576
|
+
g[e.defaultFile.nodeType] === e.nodeType.并行分支 ? (T(), x("div", Tp, [
|
|
15539
15577
|
(T(!0), x(
|
|
15540
15578
|
se,
|
|
15541
15579
|
null,
|
|
15542
|
-
|
|
15580
|
+
Me(g[e.defaultFile.parallelInstances], (A) => (T(), x("div", wp, [
|
|
15543
15581
|
w(
|
|
15544
15582
|
"div",
|
|
15545
|
-
|
|
15583
|
+
Sp,
|
|
15546
15584
|
J(A.name),
|
|
15547
15585
|
1
|
|
15548
15586
|
/* TEXT */
|
|
@@ -15555,7 +15593,7 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15555
15593
|
/* UNKEYED_FRAGMENT */
|
|
15556
15594
|
))
|
|
15557
15595
|
])) : P("v-if", !0)
|
|
15558
|
-
], 8,
|
|
15596
|
+
], 8, Fg);
|
|
15559
15597
|
}),
|
|
15560
15598
|
128
|
|
15561
15599
|
/* KEYED_FRAGMENT */
|
|
@@ -15563,8 +15601,8 @@ const Ig = ["id"], Pg = /* @__PURE__ */ Se({
|
|
|
15563
15601
|
]);
|
|
15564
15602
|
};
|
|
15565
15603
|
}
|
|
15566
|
-
}),
|
|
15604
|
+
}), Ip = /* @__PURE__ */ pi(xp, [["__scopeId", "data-v-dbdbb339"]]), Mp = Ae(Ip);
|
|
15567
15605
|
export {
|
|
15568
|
-
|
|
15569
|
-
|
|
15606
|
+
Mp as IkApprovalProcessDetail,
|
|
15607
|
+
Mp as default
|
|
15570
15608
|
};
|