ik-next-ui 0.0.13 → 0.0.15
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 +610 -572
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +805 -767
- package/dist/IkIconPicker/ik-next-ui.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +180 -142
- package/dist/IkImageUploadEditor/ik.index.es.js +1084 -1084
- 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 +880 -839
- 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 +13 -19
- package/dist/build/version.json.d.ts +1 -1
- package/dist/ik-next-ui.css +2 -2
- package/dist/index.es.js +10093 -10097
- package/dist/index.umd.js +103 -103
- package/dist/src/components/IkDragList/index.d.ts +3 -3
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
- package/dist/src/components/IkImage/index.d.ts +15 -15
- package/dist/src/components/IkImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/index.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
- package/dist/src/components/IkSideText/index.d.ts +1 -1
- package/dist/src/components/IkTooltip/index.d.ts +3 -3
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkTree/IkTree.vue.d.ts +2532 -788
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +1 -0
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +12 -17
- package/dist/src/components/Provider/index.d.ts +30 -77
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
- package/dist/src/iking-ui/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/components/IkBtnContent/index.d.ts +0 -34
- package/dist/src/components/IkBtnContent/src/index.d.ts +0 -36
- package/dist/src/components/IkTree/index.d.ts +0 -12403
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as we, computed as J, openBlock as I, createElementBlock as H, createElementVNode as S, inject as wt, useModel as Yr, ref as pe, reactive as Tl, watch as ei, nextTick as Xr, Fragment as Te, createBlock as ae, unref as E, createCommentVNode as X, createVNode as Y, withCtx as ie, toDisplayString as Pe, mergeModels as At, resolveComponent as Zr, renderSlot as Me, normalizeStyle as ce, normalizeClass as ne, h as Sl, mergeProps as El, createSlots as xl, createTextVNode as Ea, markRaw as xa, effectScope as Il, shallowRef as Pl, onMounted as Al, Teleport as hu, Transition as du, withModifiers as et, resolveDynamicComponent as Rl, renderList as Jt, withDirectives as Ll, vShow as Dl } from "vue";
|
|
2
2
|
import { buildUUID as gu, paramType as jr, _ as Ti, ikFile as Ol } from "iking-utils-pro";
|
|
3
3
|
import { Icon as Ia } from "@iconify/vue";
|
|
4
4
|
import { UseImage as Pa } from "@vueuse/components";
|
|
5
5
|
import { useEventListener as Wt } from "@vueuse/core";
|
|
6
|
-
import { useLocale as Ml, useNamespace as vu, useZIndex as Fl, ElIcon as
|
|
6
|
+
import { useLocale as Ml, useNamespace as vu, useZIndex as Fl, ElIcon as Ve, EVENT_CODE as ft } from "element-plus";
|
|
7
7
|
import { ScaleToOriginal as Nl, FullScreen as Bl, Close as pu, ArrowLeft as Hl, ArrowRight as Ul, ZoomOut as jl, ZoomIn as zl, RefreshLeft as Vl, RefreshRight as ql } from "@element-plus/icons-vue";
|
|
8
|
-
const
|
|
8
|
+
const He = (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 Qt = (a, s) => {
|
|
|
257
257
|
"p-id": "7515",
|
|
258
258
|
width: "200",
|
|
259
259
|
height: "200"
|
|
260
|
-
}, ac = /* @__PURE__ */
|
|
260
|
+
}, ac = /* @__PURE__ */ we({
|
|
261
261
|
__name: "IkFileIcon",
|
|
262
262
|
props: {
|
|
263
263
|
type: {
|
|
@@ -278,7 +278,7 @@ const Qt = (a, s) => {
|
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
280
|
setup(a) {
|
|
281
|
-
const s = a, r =
|
|
281
|
+
const s = a, r = J(() => s.file ? Qt(s.file, s.fields) : s.type);
|
|
282
282
|
return (t, e) => r.value === "image" ? (I(), H("svg", Kl, [...e[0] || (e[0] = [
|
|
283
283
|
S(
|
|
284
284
|
"path",
|
|
@@ -637,7 +637,7 @@ const Qt = (a, s) => {
|
|
|
637
637
|
)
|
|
638
638
|
])]));
|
|
639
639
|
}
|
|
640
|
-
}), Ra =
|
|
640
|
+
}), Ra = He(ac), Jr = (a, s) => {
|
|
641
641
|
const r = a.__vccOpts || a;
|
|
642
642
|
for (const [t, e] of s)
|
|
643
643
|
r[t] = e;
|
|
@@ -708,7 +708,7 @@ const Qt = (a, s) => {
|
|
|
708
708
|
"flv",
|
|
709
709
|
"tls"
|
|
710
710
|
], yu = (a) => {
|
|
711
|
-
const s = wt("loadUrl"), r =
|
|
711
|
+
const s = wt("loadUrl"), r = J(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = wt("uploadUrl"), e = J(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = wt("token"), n = J(() => a.token || (i == null ? void 0 : i.value)), o = wt("onlyofficeConfig"), u = J(() => a.onlyofficeConfig || (o == null ? void 0 : o.value)), l = wt("userInfo"), c = J(() => a.userInfo || (l == null ? void 0 : l.value)), h = [...La, ...La.map((d) => d.toLocaleUpperCase())];
|
|
712
712
|
return {
|
|
713
713
|
cLoadUrl: r,
|
|
714
714
|
cUploadUrl: e,
|
|
@@ -720,7 +720,7 @@ const Qt = (a, s) => {
|
|
|
720
720
|
Authorization: n.value
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
|
-
}, sc = { class: "head-logo" }, oc = ["src"], uc = { class: "text-preview-container" }, lc = { class: "text-preview-header" }, cc = { class: "file-name" }, fc = { class: "text-preview-content" }, hc = /* @__PURE__ */
|
|
723
|
+
}, sc = { class: "head-logo" }, oc = ["src"], uc = { class: "text-preview-container" }, lc = { class: "text-preview-header" }, cc = { class: "file-name" }, fc = { class: "text-preview-content" }, hc = /* @__PURE__ */ we({
|
|
724
724
|
__name: "IkPreviewFileDialog",
|
|
725
725
|
props: /* @__PURE__ */ At({
|
|
726
726
|
file: {
|
|
@@ -757,7 +757,7 @@ const Qt = (a, s) => {
|
|
|
757
757
|
}),
|
|
758
758
|
emits: /* @__PURE__ */ At(["close"], ["update:show"]),
|
|
759
759
|
setup(a, { emit: s }) {
|
|
760
|
-
const r = a, t = s, e = Yr(a, "show"), i =
|
|
760
|
+
const r = a, t = s, e = Yr(a, "show"), i = J(() => ({
|
|
761
761
|
name: "name",
|
|
762
762
|
url: "url",
|
|
763
763
|
suffix: "suffix",
|
|
@@ -837,10 +837,10 @@ const Qt = (a, s) => {
|
|
|
837
837
|
return (v, m) => {
|
|
838
838
|
var p, k, b;
|
|
839
839
|
return e.value ? (I(), H(
|
|
840
|
-
|
|
840
|
+
Te,
|
|
841
841
|
{ key: 0 },
|
|
842
842
|
[
|
|
843
|
-
(p = o.value) != null && p.url && l.image ? (I(),
|
|
843
|
+
(p = o.value) != null && p.url && l.image ? (I(), ae(E(sh), {
|
|
844
844
|
key: 0,
|
|
845
845
|
onClose: m[0] || (m[0] = (C) => d()),
|
|
846
846
|
ref: "previewImgRef",
|
|
@@ -850,7 +850,7 @@ const Qt = (a, s) => {
|
|
|
850
850
|
}, null, 8, ["url-list"])) : X("v-if", !0),
|
|
851
851
|
X(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
852
852
|
X(" 文档类 "),
|
|
853
|
-
Y(E(
|
|
853
|
+
Y(E(pg), {
|
|
854
854
|
modelValue: l.video,
|
|
855
855
|
"onUpdate:modelValue": m[1] || (m[1] = (C) => l.video = C),
|
|
856
856
|
url: (b = o.value) == null ? void 0 : b.url,
|
|
@@ -871,7 +871,7 @@ const Qt = (a, s) => {
|
|
|
871
871
|
onClose: d,
|
|
872
872
|
"modal-class": "ik-only-preview-dialog"
|
|
873
873
|
}, {
|
|
874
|
-
default:
|
|
874
|
+
default: ie(() => {
|
|
875
875
|
var C, R, T;
|
|
876
876
|
return [
|
|
877
877
|
S("div", sc, [
|
|
@@ -881,7 +881,7 @@ const Qt = (a, s) => {
|
|
|
881
881
|
alt: ""
|
|
882
882
|
}, null, 8, oc)
|
|
883
883
|
]),
|
|
884
|
-
Y(E(
|
|
884
|
+
Y(E(th), {
|
|
885
885
|
"config-options": n.value,
|
|
886
886
|
"document-server-url": ((T = a.onlyOfficeConfig) == null ? void 0 : T.serverUrl) || a.onlyofficeServer
|
|
887
887
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -906,7 +906,7 @@ const Qt = (a, s) => {
|
|
|
906
906
|
onClose: d,
|
|
907
907
|
"modal-class": "ik-text-preview-dialog"
|
|
908
908
|
}, {
|
|
909
|
-
default:
|
|
909
|
+
default: ie(() => {
|
|
910
910
|
var C;
|
|
911
911
|
return [
|
|
912
912
|
S("div", uc, [
|
|
@@ -938,15 +938,54 @@ const Qt = (a, s) => {
|
|
|
938
938
|
)) : X("v-if", !0);
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
|
-
}), dc =
|
|
941
|
+
}), dc = He(hc);
|
|
942
942
|
function _u(a) {
|
|
943
943
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
944
944
|
}
|
|
945
|
-
const gc = {
|
|
945
|
+
const gc = /* @__PURE__ */ we({
|
|
946
|
+
__name: "index",
|
|
947
|
+
props: {
|
|
948
|
+
effect: {
|
|
949
|
+
type: String,
|
|
950
|
+
default: "dark"
|
|
951
|
+
},
|
|
952
|
+
content: {
|
|
953
|
+
type: String,
|
|
954
|
+
default: ""
|
|
955
|
+
},
|
|
956
|
+
text: {
|
|
957
|
+
type: String,
|
|
958
|
+
default: ""
|
|
959
|
+
},
|
|
960
|
+
placement: {
|
|
961
|
+
type: String,
|
|
962
|
+
default: "top"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
setup(a) {
|
|
966
|
+
const s = a, r = J(() => s.effect);
|
|
967
|
+
return (t, e) => {
|
|
968
|
+
const i = Zr("el-tooltip");
|
|
969
|
+
return I(), ae(i, {
|
|
970
|
+
class: "gl-tooltip",
|
|
971
|
+
effect: r.value,
|
|
972
|
+
content: a.text || a.content,
|
|
973
|
+
placement: a.placement,
|
|
974
|
+
enterable: !1
|
|
975
|
+
}, {
|
|
976
|
+
default: ie(() => [
|
|
977
|
+
Me(t.$slots, "default")
|
|
978
|
+
]),
|
|
979
|
+
_: 3
|
|
980
|
+
/* FORWARDED */
|
|
981
|
+
}, 8, ["effect", "content", "placement"]);
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
}), vc = He(gc), pc = {
|
|
946
985
|
key: 2,
|
|
947
986
|
class: "shrink-0 size-inherit",
|
|
948
987
|
"aria-hidden": "true"
|
|
949
|
-
},
|
|
988
|
+
}, mc = ["xlink:href"], yc = ["xlink:href"], _c = ["size"], bc = ["xlink:href"], Cc = ["xlink:href"], kc = /* @__PURE__ */ we({
|
|
950
989
|
name: "IkSvgIcon",
|
|
951
990
|
__name: "index",
|
|
952
991
|
props: {
|
|
@@ -969,7 +1008,7 @@ const gc = {
|
|
|
969
1008
|
},
|
|
970
1009
|
emits: ["click"],
|
|
971
1010
|
setup(a, { emit: s }) {
|
|
972
|
-
const r = a, t = s, e =
|
|
1011
|
+
const r = a, t = s, e = J(() => r.danger ? "danger" : r.error ? "error" : r.type), i = J(() => {
|
|
973
1012
|
if (!r.name)
|
|
974
1013
|
return;
|
|
975
1014
|
const d = (g) => /^\.{1,2}\//.test(g) || g.startsWith("/") || g.includes("/");
|
|
@@ -982,14 +1021,14 @@ const gc = {
|
|
|
982
1021
|
function o() {
|
|
983
1022
|
return r.size ? n[r.size] || r.size : 18;
|
|
984
1023
|
}
|
|
985
|
-
const u =
|
|
1024
|
+
const u = J(() => {
|
|
986
1025
|
const d = o(), g = typeof d == "number" ? `${d}px` : d;
|
|
987
1026
|
return {
|
|
988
1027
|
width: g,
|
|
989
1028
|
height: g,
|
|
990
1029
|
fontSize: g
|
|
991
1030
|
};
|
|
992
|
-
}), l =
|
|
1031
|
+
}), l = J(() => {
|
|
993
1032
|
const g = `${Number.parseInt(o()) + 8}px`;
|
|
994
1033
|
return {
|
|
995
1034
|
width: g,
|
|
@@ -999,7 +1038,7 @@ const gc = {
|
|
|
999
1038
|
function c(d) {
|
|
1000
1039
|
r.onClick ? r.onClick(d) : t("click", d);
|
|
1001
1040
|
}
|
|
1002
|
-
const h =
|
|
1041
|
+
const h = J(() => {
|
|
1003
1042
|
if (i.value !== "two-color-svg")
|
|
1004
1043
|
return {};
|
|
1005
1044
|
const d = {};
|
|
@@ -1020,12 +1059,11 @@ const gc = {
|
|
|
1020
1059
|
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;
|
|
1021
1060
|
});
|
|
1022
1061
|
return (d, g) => {
|
|
1023
|
-
var
|
|
1024
|
-
const v = Zr("IkTooltip");
|
|
1062
|
+
var v;
|
|
1025
1063
|
return I(), H(
|
|
1026
1064
|
"i",
|
|
1027
1065
|
{
|
|
1028
|
-
class:
|
|
1066
|
+
class: ne(E(mu)(
|
|
1029
1067
|
"ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
|
|
1030
1068
|
r.class,
|
|
1031
1069
|
a.showBg ? "bg" : "",
|
|
@@ -1039,31 +1077,31 @@ const gc = {
|
|
|
1039
1077
|
onClick: c
|
|
1040
1078
|
},
|
|
1041
1079
|
[
|
|
1042
|
-
a.title ? (I(),
|
|
1080
|
+
a.title ? (I(), ae(E(vc), {
|
|
1043
1081
|
key: 0,
|
|
1044
1082
|
text: a.title
|
|
1045
1083
|
}, {
|
|
1046
|
-
default:
|
|
1047
|
-
var
|
|
1084
|
+
default: ie(() => {
|
|
1085
|
+
var m;
|
|
1048
1086
|
return [
|
|
1049
1087
|
i.value === "unocss" ? (I(), H(
|
|
1050
1088
|
"i",
|
|
1051
1089
|
{
|
|
1052
1090
|
key: 0,
|
|
1053
|
-
class:
|
|
1091
|
+
class: ne(["iconfont shrink-0 size-inherit", `${a.name} ${(m = a.name) == null ? void 0 : m.split("_")[0]}`]),
|
|
1054
1092
|
style: ce({ ...h.value, ...a.showBg ? u.value : {} })
|
|
1055
1093
|
},
|
|
1056
1094
|
null,
|
|
1057
1095
|
6
|
|
1058
1096
|
/* CLASS, STYLE */
|
|
1059
|
-
)) : i.value === "iconify" ? (I(),
|
|
1097
|
+
)) : i.value === "iconify" ? (I(), ae(E(Ia), {
|
|
1060
1098
|
key: 1,
|
|
1061
1099
|
icon: a.name,
|
|
1062
1100
|
class: "shrink-0 size-inherit"
|
|
1063
|
-
}, null, 8, ["icon"])) : i.value === "svg" ? (I(), H("svg",
|
|
1101
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (I(), H("svg", pc, [
|
|
1064
1102
|
S("use", {
|
|
1065
1103
|
"xlink:href": `#icon-${a.name}`
|
|
1066
|
-
}, null, 8,
|
|
1104
|
+
}, null, 8, mc)
|
|
1067
1105
|
])) : i.value === "two-color-svg" ? (I(), H(
|
|
1068
1106
|
"svg",
|
|
1069
1107
|
{
|
|
@@ -1075,16 +1113,16 @@ const gc = {
|
|
|
1075
1113
|
[
|
|
1076
1114
|
S("use", {
|
|
1077
1115
|
"xlink:href": `#${a.name}`
|
|
1078
|
-
}, null, 8,
|
|
1116
|
+
}, null, 8, yc)
|
|
1079
1117
|
],
|
|
1080
1118
|
4
|
|
1081
1119
|
/* STYLE */
|
|
1082
|
-
)) : i.value === "img" ? (I(),
|
|
1120
|
+
)) : i.value === "img" ? (I(), ae(E(Pa), {
|
|
1083
1121
|
key: 4,
|
|
1084
1122
|
src: a.name,
|
|
1085
1123
|
class: "shrink-0"
|
|
1086
1124
|
}, {
|
|
1087
|
-
loading:
|
|
1125
|
+
loading: ie(() => [...g[0] || (g[0] = [
|
|
1088
1126
|
S(
|
|
1089
1127
|
"i",
|
|
1090
1128
|
{ class: "i-line-md:loading-loop size-inherit" },
|
|
@@ -1093,7 +1131,7 @@ const gc = {
|
|
|
1093
1131
|
/* CACHED */
|
|
1094
1132
|
)
|
|
1095
1133
|
])]),
|
|
1096
|
-
error:
|
|
1134
|
+
error: ie(() => [...g[1] || (g[1] = [
|
|
1097
1135
|
S(
|
|
1098
1136
|
"i",
|
|
1099
1137
|
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
@@ -1110,20 +1148,20 @@ const gc = {
|
|
|
1110
1148
|
_: 1
|
|
1111
1149
|
/* STABLE */
|
|
1112
1150
|
}, 8, ["text"])) : (I(), H(
|
|
1113
|
-
|
|
1151
|
+
Te,
|
|
1114
1152
|
{ key: 1 },
|
|
1115
1153
|
[
|
|
1116
1154
|
i.value === "unocss" ? (I(), H(
|
|
1117
1155
|
"i",
|
|
1118
1156
|
{
|
|
1119
1157
|
key: 0,
|
|
1120
|
-
class:
|
|
1158
|
+
class: ne(["iconfont shrink-0 size-inherit", `${a.name} ${(v = a.name) == null ? void 0 : v.split("_")[0]}`]),
|
|
1121
1159
|
style: ce({ ...h.value, ...a.showBg ? u.value : {} })
|
|
1122
1160
|
},
|
|
1123
1161
|
null,
|
|
1124
1162
|
6
|
|
1125
1163
|
/* CLASS, STYLE */
|
|
1126
|
-
)) : i.value === "iconify" ? (I(),
|
|
1164
|
+
)) : i.value === "iconify" ? (I(), ae(E(Ia), {
|
|
1127
1165
|
key: 1,
|
|
1128
1166
|
icon: a.name,
|
|
1129
1167
|
class: "shrink-0 size-inherit"
|
|
@@ -1135,8 +1173,8 @@ const gc = {
|
|
|
1135
1173
|
}, [
|
|
1136
1174
|
S("use", {
|
|
1137
1175
|
"xlink:href": `#icon-${a.name}`
|
|
1138
|
-
}, null, 8,
|
|
1139
|
-
], 8,
|
|
1176
|
+
}, null, 8, bc)
|
|
1177
|
+
], 8, _c)) : i.value === "two-color-svg" ? (I(), H(
|
|
1140
1178
|
"svg",
|
|
1141
1179
|
{
|
|
1142
1180
|
key: 3,
|
|
@@ -1147,16 +1185,16 @@ const gc = {
|
|
|
1147
1185
|
[
|
|
1148
1186
|
S("use", {
|
|
1149
1187
|
"xlink:href": `#${a.name}`
|
|
1150
|
-
}, null, 8,
|
|
1188
|
+
}, null, 8, Cc)
|
|
1151
1189
|
],
|
|
1152
1190
|
4
|
|
1153
1191
|
/* STYLE */
|
|
1154
|
-
)) : i.value === "img" ? (I(),
|
|
1192
|
+
)) : i.value === "img" ? (I(), ae(E(Pa), {
|
|
1155
1193
|
key: 4,
|
|
1156
1194
|
src: a.name,
|
|
1157
1195
|
class: "shrink-0"
|
|
1158
1196
|
}, {
|
|
1159
|
-
loading:
|
|
1197
|
+
loading: ie(() => [...g[2] || (g[2] = [
|
|
1160
1198
|
S(
|
|
1161
1199
|
"i",
|
|
1162
1200
|
{ class: "i-line-md:loading-loop size-inherit" },
|
|
@@ -1165,7 +1203,7 @@ const gc = {
|
|
|
1165
1203
|
/* CACHED */
|
|
1166
1204
|
)
|
|
1167
1205
|
])]),
|
|
1168
|
-
error:
|
|
1206
|
+
error: ie(() => [...g[3] || (g[3] = [
|
|
1169
1207
|
S(
|
|
1170
1208
|
"i",
|
|
1171
1209
|
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
@@ -1187,7 +1225,7 @@ const gc = {
|
|
|
1187
1225
|
);
|
|
1188
1226
|
};
|
|
1189
1227
|
}
|
|
1190
|
-
}),
|
|
1228
|
+
}), wc = /* @__PURE__ */ Jr(kc, [["__scopeId", "data-v-c202da9d"]]), tt = He(wc), Tc = /* @__PURE__ */ we({
|
|
1191
1229
|
__name: "CloseIcon",
|
|
1192
1230
|
props: {
|
|
1193
1231
|
showBg: {
|
|
@@ -1203,7 +1241,7 @@ const gc = {
|
|
|
1203
1241
|
return (s, r) => (I(), H(
|
|
1204
1242
|
"div",
|
|
1205
1243
|
{
|
|
1206
|
-
class:
|
|
1244
|
+
class: ne({ "exit-main-page-maximize": a.showBg && a.fullscreen })
|
|
1207
1245
|
},
|
|
1208
1246
|
[
|
|
1209
1247
|
Y(E(tt), {
|
|
@@ -1217,7 +1255,7 @@ const gc = {
|
|
|
1217
1255
|
/* CLASS */
|
|
1218
1256
|
));
|
|
1219
1257
|
}
|
|
1220
|
-
}),
|
|
1258
|
+
}), Sc = /* @__PURE__ */ Jr(Tc, [["__scopeId", "data-v-739899b1"]]), Ec = { class: "base-header" }, xc = /* @__PURE__ */ we({
|
|
1221
1259
|
__name: "IkBaseDialog",
|
|
1222
1260
|
props: /* @__PURE__ */ At({
|
|
1223
1261
|
title: { default: "" },
|
|
@@ -1239,9 +1277,9 @@ const gc = {
|
|
|
1239
1277
|
}),
|
|
1240
1278
|
emits: ["update:modelValue"],
|
|
1241
1279
|
setup(a) {
|
|
1242
|
-
const s = a, r = Yr(a, "modelValue"), t = pe(s.fullscreen), e =
|
|
1280
|
+
const s = a, r = Yr(a, "modelValue"), t = pe(s.fullscreen), e = we({
|
|
1243
1281
|
setup() {
|
|
1244
|
-
return () => Sl(
|
|
1282
|
+
return () => Sl(Sc, {
|
|
1245
1283
|
showBg: s.showCloseBg,
|
|
1246
1284
|
fullscreen: s.fullscreen
|
|
1247
1285
|
});
|
|
@@ -1249,7 +1287,7 @@ const gc = {
|
|
|
1249
1287
|
});
|
|
1250
1288
|
return (i, n) => {
|
|
1251
1289
|
const o = Zr("el-dialog");
|
|
1252
|
-
return I(),
|
|
1290
|
+
return I(), ae(o, El({
|
|
1253
1291
|
modelValue: r.value,
|
|
1254
1292
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => r.value = u),
|
|
1255
1293
|
"align-center": ""
|
|
@@ -1260,8 +1298,8 @@ const gc = {
|
|
|
1260
1298
|
fullscreen: t.value || s.fullscreen,
|
|
1261
1299
|
"modal-class": "baseDialog"
|
|
1262
1300
|
}), xl({
|
|
1263
|
-
icon:
|
|
1264
|
-
|
|
1301
|
+
icon: ie(() => [
|
|
1302
|
+
Me(i.$slots, "title", {}, () => [
|
|
1265
1303
|
Ea(
|
|
1266
1304
|
Pe(a.title),
|
|
1267
1305
|
1
|
|
@@ -1269,9 +1307,9 @@ const gc = {
|
|
|
1269
1307
|
)
|
|
1270
1308
|
])
|
|
1271
1309
|
]),
|
|
1272
|
-
header:
|
|
1273
|
-
S("div",
|
|
1274
|
-
|
|
1310
|
+
header: ie(() => [
|
|
1311
|
+
S("div", Ec, [
|
|
1312
|
+
Me(i.$slots, "header", {}, () => [
|
|
1275
1313
|
Ea(
|
|
1276
1314
|
Pe(a.title),
|
|
1277
1315
|
1
|
|
@@ -1280,24 +1318,24 @@ const gc = {
|
|
|
1280
1318
|
])
|
|
1281
1319
|
])
|
|
1282
1320
|
]),
|
|
1283
|
-
default:
|
|
1284
|
-
|
|
1321
|
+
default: ie(() => [
|
|
1322
|
+
Me(i.$slots, "default")
|
|
1285
1323
|
]),
|
|
1286
1324
|
_: 2
|
|
1287
1325
|
/* DYNAMIC */
|
|
1288
1326
|
}, [
|
|
1289
1327
|
i.$slots.footer ? {
|
|
1290
1328
|
name: "footer",
|
|
1291
|
-
fn:
|
|
1292
|
-
|
|
1329
|
+
fn: ie(() => [
|
|
1330
|
+
Me(i.$slots, "footer")
|
|
1293
1331
|
]),
|
|
1294
1332
|
key: "0"
|
|
1295
1333
|
} : void 0
|
|
1296
1334
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
1297
1335
|
};
|
|
1298
1336
|
}
|
|
1299
|
-
}), Da =
|
|
1300
|
-
function
|
|
1337
|
+
}), Da = He(xc);
|
|
1338
|
+
function Ic(a, s, r, t) {
|
|
1301
1339
|
function e(i) {
|
|
1302
1340
|
return i instanceof r ? i : new r(function(n) {
|
|
1303
1341
|
n(i);
|
|
@@ -1324,7 +1362,7 @@ function Ec(a, s, r, t) {
|
|
|
1324
1362
|
l((t = t.apply(a, [])).next());
|
|
1325
1363
|
});
|
|
1326
1364
|
}
|
|
1327
|
-
function
|
|
1365
|
+
function Pc(a, s) {
|
|
1328
1366
|
var r = { label: 0, sent: function() {
|
|
1329
1367
|
if (i[0] & 1) throw i[1];
|
|
1330
1368
|
return i[1];
|
|
@@ -1384,9 +1422,9 @@ function xc(a, s) {
|
|
|
1384
1422
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
1385
1423
|
}
|
|
1386
1424
|
}
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1389
|
-
return
|
|
1425
|
+
var Ac = function(a, s) {
|
|
1426
|
+
return Ic(void 0, void 0, void 0, function() {
|
|
1427
|
+
return Pc(this, function(r) {
|
|
1390
1428
|
return [2, new Promise(function(t, e) {
|
|
1391
1429
|
try {
|
|
1392
1430
|
if (window.DocsAPI)
|
|
@@ -1420,11 +1458,11 @@ var Ic = function(a, s) {
|
|
|
1420
1458
|
e.removeAttribute("loading"), t(i);
|
|
1421
1459
|
}, e.setAttribute("loading", ""), e;
|
|
1422
1460
|
}, Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1423
|
-
function
|
|
1461
|
+
function Rc(a) {
|
|
1424
1462
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1425
1463
|
}
|
|
1426
1464
|
var Ei, Ma;
|
|
1427
|
-
function
|
|
1465
|
+
function Lc() {
|
|
1428
1466
|
if (Ma) return Ei;
|
|
1429
1467
|
Ma = 1;
|
|
1430
1468
|
function a() {
|
|
@@ -1455,7 +1493,7 @@ function hi() {
|
|
|
1455
1493
|
return Ii = s, Ii;
|
|
1456
1494
|
}
|
|
1457
1495
|
var Pi, Ba;
|
|
1458
|
-
function
|
|
1496
|
+
function Dc() {
|
|
1459
1497
|
if (Ba) return Pi;
|
|
1460
1498
|
Ba = 1;
|
|
1461
1499
|
var a = hi(), s = Array.prototype, r = s.splice;
|
|
@@ -1469,7 +1507,7 @@ function Rc() {
|
|
|
1469
1507
|
return Pi = t, Pi;
|
|
1470
1508
|
}
|
|
1471
1509
|
var Ai, Ha;
|
|
1472
|
-
function
|
|
1510
|
+
function Oc() {
|
|
1473
1511
|
if (Ha) return Ai;
|
|
1474
1512
|
Ha = 1;
|
|
1475
1513
|
var a = hi();
|
|
@@ -1480,7 +1518,7 @@ function Lc() {
|
|
|
1480
1518
|
return Ai = s, Ai;
|
|
1481
1519
|
}
|
|
1482
1520
|
var Ri, Ua;
|
|
1483
|
-
function
|
|
1521
|
+
function Mc() {
|
|
1484
1522
|
if (Ua) return Ri;
|
|
1485
1523
|
Ua = 1;
|
|
1486
1524
|
var a = hi();
|
|
@@ -1490,7 +1528,7 @@ function Dc() {
|
|
|
1490
1528
|
return Ri = s, Ri;
|
|
1491
1529
|
}
|
|
1492
1530
|
var Li, ja;
|
|
1493
|
-
function
|
|
1531
|
+
function Fc() {
|
|
1494
1532
|
if (ja) return Li;
|
|
1495
1533
|
ja = 1;
|
|
1496
1534
|
var a = hi();
|
|
@@ -1504,7 +1542,7 @@ var Di, za;
|
|
|
1504
1542
|
function di() {
|
|
1505
1543
|
if (za) return Di;
|
|
1506
1544
|
za = 1;
|
|
1507
|
-
var a =
|
|
1545
|
+
var a = Lc(), s = Dc(), r = Oc(), t = Mc(), e = Fc();
|
|
1508
1546
|
function i(n) {
|
|
1509
1547
|
var o = -1, u = n == null ? 0 : n.length;
|
|
1510
1548
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1515,7 +1553,7 @@ function di() {
|
|
|
1515
1553
|
return i.prototype.clear = a, i.prototype.delete = s, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, Di = i, Di;
|
|
1516
1554
|
}
|
|
1517
1555
|
var Oi, Va;
|
|
1518
|
-
function
|
|
1556
|
+
function Nc() {
|
|
1519
1557
|
if (Va) return Oi;
|
|
1520
1558
|
Va = 1;
|
|
1521
1559
|
var a = di();
|
|
@@ -1525,7 +1563,7 @@ function Mc() {
|
|
|
1525
1563
|
return Oi = s, Oi;
|
|
1526
1564
|
}
|
|
1527
1565
|
var Mi, qa;
|
|
1528
|
-
function
|
|
1566
|
+
function Bc() {
|
|
1529
1567
|
if (qa) return Mi;
|
|
1530
1568
|
qa = 1;
|
|
1531
1569
|
function a(s) {
|
|
@@ -1535,7 +1573,7 @@ function Fc() {
|
|
|
1535
1573
|
return Mi = a, Mi;
|
|
1536
1574
|
}
|
|
1537
1575
|
var Fi, Ga;
|
|
1538
|
-
function
|
|
1576
|
+
function Hc() {
|
|
1539
1577
|
if (Ga) return Fi;
|
|
1540
1578
|
Ga = 1;
|
|
1541
1579
|
function a(s) {
|
|
@@ -1544,7 +1582,7 @@ function Nc() {
|
|
|
1544
1582
|
return Fi = a, Fi;
|
|
1545
1583
|
}
|
|
1546
1584
|
var Ni, Wa;
|
|
1547
|
-
function
|
|
1585
|
+
function Uc() {
|
|
1548
1586
|
if (Wa) return Ni;
|
|
1549
1587
|
Wa = 1;
|
|
1550
1588
|
function a(s) {
|
|
@@ -1574,7 +1612,7 @@ function Qr() {
|
|
|
1574
1612
|
return Ui = s, Ui;
|
|
1575
1613
|
}
|
|
1576
1614
|
var ji, Xa;
|
|
1577
|
-
function
|
|
1615
|
+
function jc() {
|
|
1578
1616
|
if (Xa) return ji;
|
|
1579
1617
|
Xa = 1;
|
|
1580
1618
|
var a = Qr(), s = Object.prototype, r = s.hasOwnProperty, t = s.toString, e = a ? a.toStringTag : void 0;
|
|
@@ -1591,7 +1629,7 @@ function Hc() {
|
|
|
1591
1629
|
return ji = i, ji;
|
|
1592
1630
|
}
|
|
1593
1631
|
var zi, Za;
|
|
1594
|
-
function
|
|
1632
|
+
function zc() {
|
|
1595
1633
|
if (Za) return zi;
|
|
1596
1634
|
Za = 1;
|
|
1597
1635
|
var a = Object.prototype, s = a.toString;
|
|
@@ -1604,7 +1642,7 @@ var Vi, Ja;
|
|
|
1604
1642
|
function gi() {
|
|
1605
1643
|
if (Ja) return Vi;
|
|
1606
1644
|
Ja = 1;
|
|
1607
|
-
var a = Qr(), s =
|
|
1645
|
+
var a = Qr(), s = jc(), r = zc(), t = "[object Null]", e = "[object Undefined]", i = a ? a.toStringTag : void 0;
|
|
1608
1646
|
function n(o) {
|
|
1609
1647
|
return o == null ? o === void 0 ? e : t : i && i in Object(o) ? s(o) : r(o);
|
|
1610
1648
|
}
|
|
@@ -1634,17 +1672,17 @@ function ku() {
|
|
|
1634
1672
|
return Gi = n, Gi;
|
|
1635
1673
|
}
|
|
1636
1674
|
var Wi, ts;
|
|
1637
|
-
function
|
|
1675
|
+
function Vc() {
|
|
1638
1676
|
if (ts) return Wi;
|
|
1639
1677
|
ts = 1;
|
|
1640
1678
|
var a = Ae(), s = a["__core-js_shared__"];
|
|
1641
1679
|
return Wi = s, Wi;
|
|
1642
1680
|
}
|
|
1643
1681
|
var Ki, is;
|
|
1644
|
-
function
|
|
1682
|
+
function qc() {
|
|
1645
1683
|
if (is) return Ki;
|
|
1646
1684
|
is = 1;
|
|
1647
|
-
var a =
|
|
1685
|
+
var a = Vc(), s = (function() {
|
|
1648
1686
|
var t = /[^.]+$/.exec(a && a.keys && a.keys.IE_PROTO || "");
|
|
1649
1687
|
return t ? "Symbol(src)_1." + t : "";
|
|
1650
1688
|
})();
|
|
@@ -1674,10 +1712,10 @@ function wu() {
|
|
|
1674
1712
|
return $i = r, $i;
|
|
1675
1713
|
}
|
|
1676
1714
|
var Yi, rs;
|
|
1677
|
-
function
|
|
1715
|
+
function Gc() {
|
|
1678
1716
|
if (rs) return Yi;
|
|
1679
1717
|
rs = 1;
|
|
1680
|
-
var a = ku(), s =
|
|
1718
|
+
var a = ku(), s = qc(), r = Dt(), t = wu(), e = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, n = Function.prototype, o = Object.prototype, u = n.toString, l = o.hasOwnProperty, c = RegExp(
|
|
1681
1719
|
"^" + u.call(l).replace(e, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1682
1720
|
);
|
|
1683
1721
|
function h(d) {
|
|
@@ -1689,7 +1727,7 @@ function Vc() {
|
|
|
1689
1727
|
return Yi = h, Yi;
|
|
1690
1728
|
}
|
|
1691
1729
|
var Xi, as;
|
|
1692
|
-
function
|
|
1730
|
+
function Wc() {
|
|
1693
1731
|
if (as) return Xi;
|
|
1694
1732
|
as = 1;
|
|
1695
1733
|
function a(s, r) {
|
|
@@ -1701,7 +1739,7 @@ var Zi, ss;
|
|
|
1701
1739
|
function rt() {
|
|
1702
1740
|
if (ss) return Zi;
|
|
1703
1741
|
ss = 1;
|
|
1704
|
-
var a =
|
|
1742
|
+
var a = Gc(), s = Wc();
|
|
1705
1743
|
function r(t, e) {
|
|
1706
1744
|
var i = s(t, e);
|
|
1707
1745
|
return a(i) ? i : void 0;
|
|
@@ -1723,7 +1761,7 @@ function vi() {
|
|
|
1723
1761
|
return Qi = s, Qi;
|
|
1724
1762
|
}
|
|
1725
1763
|
var en, ls;
|
|
1726
|
-
function
|
|
1764
|
+
function Kc() {
|
|
1727
1765
|
if (ls) return en;
|
|
1728
1766
|
ls = 1;
|
|
1729
1767
|
var a = vi();
|
|
@@ -1733,7 +1771,7 @@ function Gc() {
|
|
|
1733
1771
|
return en = s, en;
|
|
1734
1772
|
}
|
|
1735
1773
|
var tn, cs;
|
|
1736
|
-
function
|
|
1774
|
+
function $c() {
|
|
1737
1775
|
if (cs) return tn;
|
|
1738
1776
|
cs = 1;
|
|
1739
1777
|
function a(s) {
|
|
@@ -1743,7 +1781,7 @@ function Wc() {
|
|
|
1743
1781
|
return tn = a, tn;
|
|
1744
1782
|
}
|
|
1745
1783
|
var nn, fs;
|
|
1746
|
-
function
|
|
1784
|
+
function Yc() {
|
|
1747
1785
|
if (fs) return nn;
|
|
1748
1786
|
fs = 1;
|
|
1749
1787
|
var a = vi(), s = "__lodash_hash_undefined__", r = Object.prototype, t = r.hasOwnProperty;
|
|
@@ -1758,7 +1796,7 @@ function Kc() {
|
|
|
1758
1796
|
return nn = e, nn;
|
|
1759
1797
|
}
|
|
1760
1798
|
var rn, hs;
|
|
1761
|
-
function
|
|
1799
|
+
function Xc() {
|
|
1762
1800
|
if (hs) return rn;
|
|
1763
1801
|
hs = 1;
|
|
1764
1802
|
var a = vi(), s = Object.prototype, r = s.hasOwnProperty;
|
|
@@ -1769,7 +1807,7 @@ function $c() {
|
|
|
1769
1807
|
return rn = t, rn;
|
|
1770
1808
|
}
|
|
1771
1809
|
var an, ds;
|
|
1772
|
-
function
|
|
1810
|
+
function Zc() {
|
|
1773
1811
|
if (ds) return an;
|
|
1774
1812
|
ds = 1;
|
|
1775
1813
|
var a = vi(), s = "__lodash_hash_undefined__";
|
|
@@ -1780,10 +1818,10 @@ function Yc() {
|
|
|
1780
1818
|
return an = r, an;
|
|
1781
1819
|
}
|
|
1782
1820
|
var sn, gs;
|
|
1783
|
-
function
|
|
1821
|
+
function Jc() {
|
|
1784
1822
|
if (gs) return sn;
|
|
1785
1823
|
gs = 1;
|
|
1786
|
-
var a =
|
|
1824
|
+
var a = Kc(), s = $c(), r = Yc(), t = Xc(), e = Zc();
|
|
1787
1825
|
function i(n) {
|
|
1788
1826
|
var o = -1, u = n == null ? 0 : n.length;
|
|
1789
1827
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1794,10 +1832,10 @@ function Xc() {
|
|
|
1794
1832
|
return i.prototype.clear = a, i.prototype.delete = s, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, sn = i, sn;
|
|
1795
1833
|
}
|
|
1796
1834
|
var on, vs;
|
|
1797
|
-
function
|
|
1835
|
+
function Qc() {
|
|
1798
1836
|
if (vs) return on;
|
|
1799
1837
|
vs = 1;
|
|
1800
|
-
var a =
|
|
1838
|
+
var a = Jc(), s = di(), r = ea();
|
|
1801
1839
|
function t() {
|
|
1802
1840
|
this.size = 0, this.__data__ = {
|
|
1803
1841
|
hash: new a(),
|
|
@@ -1808,7 +1846,7 @@ function Zc() {
|
|
|
1808
1846
|
return on = t, on;
|
|
1809
1847
|
}
|
|
1810
1848
|
var un, ps;
|
|
1811
|
-
function
|
|
1849
|
+
function ef() {
|
|
1812
1850
|
if (ps) return un;
|
|
1813
1851
|
ps = 1;
|
|
1814
1852
|
function a(s) {
|
|
@@ -1821,7 +1859,7 @@ var ln, ms;
|
|
|
1821
1859
|
function pi() {
|
|
1822
1860
|
if (ms) return ln;
|
|
1823
1861
|
ms = 1;
|
|
1824
|
-
var a =
|
|
1862
|
+
var a = ef();
|
|
1825
1863
|
function s(r, t) {
|
|
1826
1864
|
var e = r.__data__;
|
|
1827
1865
|
return a(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
@@ -1829,7 +1867,7 @@ function pi() {
|
|
|
1829
1867
|
return ln = s, ln;
|
|
1830
1868
|
}
|
|
1831
1869
|
var cn, ys;
|
|
1832
|
-
function
|
|
1870
|
+
function tf() {
|
|
1833
1871
|
if (ys) return cn;
|
|
1834
1872
|
ys = 1;
|
|
1835
1873
|
var a = pi();
|
|
@@ -1840,7 +1878,7 @@ function Qc() {
|
|
|
1840
1878
|
return cn = s, cn;
|
|
1841
1879
|
}
|
|
1842
1880
|
var fn, _s;
|
|
1843
|
-
function
|
|
1881
|
+
function nf() {
|
|
1844
1882
|
if (_s) return fn;
|
|
1845
1883
|
_s = 1;
|
|
1846
1884
|
var a = pi();
|
|
@@ -1850,7 +1888,7 @@ function ef() {
|
|
|
1850
1888
|
return fn = s, fn;
|
|
1851
1889
|
}
|
|
1852
1890
|
var hn, bs;
|
|
1853
|
-
function
|
|
1891
|
+
function rf() {
|
|
1854
1892
|
if (bs) return hn;
|
|
1855
1893
|
bs = 1;
|
|
1856
1894
|
var a = pi();
|
|
@@ -1860,7 +1898,7 @@ function tf() {
|
|
|
1860
1898
|
return hn = s, hn;
|
|
1861
1899
|
}
|
|
1862
1900
|
var dn, Cs;
|
|
1863
|
-
function
|
|
1901
|
+
function af() {
|
|
1864
1902
|
if (Cs) return dn;
|
|
1865
1903
|
Cs = 1;
|
|
1866
1904
|
var a = pi();
|
|
@@ -1871,10 +1909,10 @@ function nf() {
|
|
|
1871
1909
|
return dn = s, dn;
|
|
1872
1910
|
}
|
|
1873
1911
|
var gn, ks;
|
|
1874
|
-
function
|
|
1912
|
+
function sf() {
|
|
1875
1913
|
if (ks) return gn;
|
|
1876
1914
|
ks = 1;
|
|
1877
|
-
var a =
|
|
1915
|
+
var a = Qc(), s = tf(), r = nf(), t = rf(), e = af();
|
|
1878
1916
|
function i(n) {
|
|
1879
1917
|
var o = -1, u = n == null ? 0 : n.length;
|
|
1880
1918
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1885,10 +1923,10 @@ function rf() {
|
|
|
1885
1923
|
return i.prototype.clear = a, i.prototype.delete = s, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, gn = i, gn;
|
|
1886
1924
|
}
|
|
1887
1925
|
var vn, ws;
|
|
1888
|
-
function
|
|
1926
|
+
function of() {
|
|
1889
1927
|
if (ws) return vn;
|
|
1890
1928
|
ws = 1;
|
|
1891
|
-
var a = di(), s = ea(), r =
|
|
1929
|
+
var a = di(), s = ea(), r = sf(), t = 200;
|
|
1892
1930
|
function e(i, n) {
|
|
1893
1931
|
var o = this.__data__;
|
|
1894
1932
|
if (o instanceof a) {
|
|
@@ -1902,10 +1940,10 @@ function af() {
|
|
|
1902
1940
|
return vn = e, vn;
|
|
1903
1941
|
}
|
|
1904
1942
|
var pn, Ts;
|
|
1905
|
-
function
|
|
1943
|
+
function uf() {
|
|
1906
1944
|
if (Ts) return pn;
|
|
1907
1945
|
Ts = 1;
|
|
1908
|
-
var a = di(), s =
|
|
1946
|
+
var a = di(), s = Nc(), r = Bc(), t = Hc(), e = Uc(), i = of();
|
|
1909
1947
|
function n(o) {
|
|
1910
1948
|
var u = this.__data__ = new a(o);
|
|
1911
1949
|
this.size = u.size;
|
|
@@ -1913,7 +1951,7 @@ function sf() {
|
|
|
1913
1951
|
return n.prototype.clear = s, n.prototype.delete = r, n.prototype.get = t, n.prototype.has = e, n.prototype.set = i, pn = n, pn;
|
|
1914
1952
|
}
|
|
1915
1953
|
var mn, Ss;
|
|
1916
|
-
function
|
|
1954
|
+
function lf() {
|
|
1917
1955
|
if (Ss) return mn;
|
|
1918
1956
|
Ss = 1;
|
|
1919
1957
|
function a(s, r) {
|
|
@@ -1924,7 +1962,7 @@ function of() {
|
|
|
1924
1962
|
return mn = a, mn;
|
|
1925
1963
|
}
|
|
1926
1964
|
var yn, Es;
|
|
1927
|
-
function
|
|
1965
|
+
function cf() {
|
|
1928
1966
|
if (Es) return yn;
|
|
1929
1967
|
Es = 1;
|
|
1930
1968
|
var a = rt(), s = (function() {
|
|
@@ -1940,7 +1978,7 @@ var _n, xs;
|
|
|
1940
1978
|
function Tu() {
|
|
1941
1979
|
if (xs) return _n;
|
|
1942
1980
|
xs = 1;
|
|
1943
|
-
var a =
|
|
1981
|
+
var a = cf();
|
|
1944
1982
|
function s(r, t, e) {
|
|
1945
1983
|
t == "__proto__" && a ? a(r, t, {
|
|
1946
1984
|
configurable: !0,
|
|
@@ -1979,7 +2017,7 @@ function mi() {
|
|
|
1979
2017
|
return Cn = r, Cn;
|
|
1980
2018
|
}
|
|
1981
2019
|
var kn, As;
|
|
1982
|
-
function
|
|
2020
|
+
function ff() {
|
|
1983
2021
|
if (As) return kn;
|
|
1984
2022
|
As = 1;
|
|
1985
2023
|
function a(s, r) {
|
|
@@ -1999,7 +2037,7 @@ function Ot() {
|
|
|
1999
2037
|
return wn = a, wn;
|
|
2000
2038
|
}
|
|
2001
2039
|
var Tn, Ls;
|
|
2002
|
-
function
|
|
2040
|
+
function hf() {
|
|
2003
2041
|
if (Ls) return Tn;
|
|
2004
2042
|
Ls = 1;
|
|
2005
2043
|
var a = gi(), s = Ot(), r = "[object Arguments]";
|
|
@@ -2009,10 +2047,10 @@ function cf() {
|
|
|
2009
2047
|
return Tn = t, Tn;
|
|
2010
2048
|
}
|
|
2011
2049
|
var Sn, Ds;
|
|
2012
|
-
function
|
|
2050
|
+
function df() {
|
|
2013
2051
|
if (Ds) return Sn;
|
|
2014
2052
|
Ds = 1;
|
|
2015
|
-
var a =
|
|
2053
|
+
var a = hf(), s = Ot(), r = Object.prototype, t = r.hasOwnProperty, e = r.propertyIsEnumerable, i = a(/* @__PURE__ */ (function() {
|
|
2016
2054
|
return arguments;
|
|
2017
2055
|
})()) ? a : function(n) {
|
|
2018
2056
|
return s(n) && t.call(n, "callee") && !e.call(n, "callee");
|
|
@@ -2027,7 +2065,7 @@ function ta() {
|
|
|
2027
2065
|
return En = a, En;
|
|
2028
2066
|
}
|
|
2029
2067
|
var Et = { exports: {} }, xn, Ms;
|
|
2030
|
-
function
|
|
2068
|
+
function gf() {
|
|
2031
2069
|
if (Ms) return xn;
|
|
2032
2070
|
Ms = 1;
|
|
2033
2071
|
function a() {
|
|
@@ -2039,12 +2077,12 @@ Et.exports;
|
|
|
2039
2077
|
var Fs;
|
|
2040
2078
|
function Eu() {
|
|
2041
2079
|
return Fs || (Fs = 1, (function(a, s) {
|
|
2042
|
-
var r = Ae(), t =
|
|
2080
|
+
var r = Ae(), t = gf(), e = s && !s.nodeType && s, i = e && !0 && a && !a.nodeType && a, n = i && i.exports === e, o = n ? r.Buffer : void 0, u = o ? o.isBuffer : void 0, l = u || t;
|
|
2043
2081
|
a.exports = l;
|
|
2044
2082
|
})(Et, Et.exports)), Et.exports;
|
|
2045
2083
|
}
|
|
2046
2084
|
var In, Ns;
|
|
2047
|
-
function
|
|
2085
|
+
function vf() {
|
|
2048
2086
|
if (Ns) return In;
|
|
2049
2087
|
Ns = 1;
|
|
2050
2088
|
var a = 9007199254740991, s = /^(?:0|[1-9]\d*)$/;
|
|
@@ -2065,7 +2103,7 @@ function xu() {
|
|
|
2065
2103
|
return Pn = s, Pn;
|
|
2066
2104
|
}
|
|
2067
2105
|
var An, Hs;
|
|
2068
|
-
function
|
|
2106
|
+
function pf() {
|
|
2069
2107
|
if (Hs) return An;
|
|
2070
2108
|
Hs = 1;
|
|
2071
2109
|
var a = gi(), s = xu(), r = Ot(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", h = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", k = "[object DataView]", b = "[object Float32Array]", C = "[object Float64Array]", R = "[object Int8Array]", T = "[object Int16Array]", x = "[object Int32Array]", j = "[object Uint8Array]", K = "[object Uint8ClampedArray]", z = "[object Uint16Array]", B = "[object Uint32Array]", M = {};
|
|
@@ -2102,17 +2140,17 @@ function na() {
|
|
|
2102
2140
|
})(xt, xt.exports)), xt.exports;
|
|
2103
2141
|
}
|
|
2104
2142
|
var Ln, zs;
|
|
2105
|
-
function
|
|
2143
|
+
function mf() {
|
|
2106
2144
|
if (zs) return Ln;
|
|
2107
2145
|
zs = 1;
|
|
2108
|
-
var a =
|
|
2146
|
+
var a = pf(), s = ia(), r = na(), t = r && r.isTypedArray, e = t ? s(t) : a;
|
|
2109
2147
|
return Ln = e, Ln;
|
|
2110
2148
|
}
|
|
2111
2149
|
var Dn, Vs;
|
|
2112
2150
|
function Iu() {
|
|
2113
2151
|
if (Vs) return Dn;
|
|
2114
2152
|
Vs = 1;
|
|
2115
|
-
var a =
|
|
2153
|
+
var a = ff(), s = df(), r = ta(), t = Eu(), e = vf(), i = mf(), n = Object.prototype, o = n.hasOwnProperty;
|
|
2116
2154
|
function u(l, c) {
|
|
2117
2155
|
var h = r(l), d = !h && s(l), g = !h && !d && t(l), v = !h && !d && !g && i(l), m = h || d || g || v, p = m ? a(l.length, String) : [], k = p.length;
|
|
2118
2156
|
for (var b in l)
|
|
@@ -2148,17 +2186,17 @@ function Pu() {
|
|
|
2148
2186
|
return Mn = a, Mn;
|
|
2149
2187
|
}
|
|
2150
2188
|
var Fn, Ws;
|
|
2151
|
-
function
|
|
2189
|
+
function yf() {
|
|
2152
2190
|
if (Ws) return Fn;
|
|
2153
2191
|
Ws = 1;
|
|
2154
2192
|
var a = Pu(), s = a(Object.keys, Object);
|
|
2155
2193
|
return Fn = s, Fn;
|
|
2156
2194
|
}
|
|
2157
2195
|
var Nn, Ks;
|
|
2158
|
-
function
|
|
2196
|
+
function _f() {
|
|
2159
2197
|
if (Ks) return Nn;
|
|
2160
2198
|
Ks = 1;
|
|
2161
|
-
var a = ra(), s =
|
|
2199
|
+
var a = ra(), s = yf(), r = Object.prototype, t = r.hasOwnProperty;
|
|
2162
2200
|
function e(i) {
|
|
2163
2201
|
if (!a(i))
|
|
2164
2202
|
return s(i);
|
|
@@ -2183,14 +2221,14 @@ var Hn, Ys;
|
|
|
2183
2221
|
function aa() {
|
|
2184
2222
|
if (Ys) return Hn;
|
|
2185
2223
|
Ys = 1;
|
|
2186
|
-
var a = Iu(), s =
|
|
2224
|
+
var a = Iu(), s = _f(), r = Au();
|
|
2187
2225
|
function t(e) {
|
|
2188
2226
|
return r(e) ? a(e) : s(e);
|
|
2189
2227
|
}
|
|
2190
2228
|
return Hn = t, Hn;
|
|
2191
2229
|
}
|
|
2192
2230
|
var Un, Xs;
|
|
2193
|
-
function
|
|
2231
|
+
function bf() {
|
|
2194
2232
|
if (Xs) return Un;
|
|
2195
2233
|
Xs = 1;
|
|
2196
2234
|
var a = mi(), s = aa();
|
|
@@ -2200,7 +2238,7 @@ function yf() {
|
|
|
2200
2238
|
return Un = r, Un;
|
|
2201
2239
|
}
|
|
2202
2240
|
var jn, Zs;
|
|
2203
|
-
function
|
|
2241
|
+
function Cf() {
|
|
2204
2242
|
if (Zs) return jn;
|
|
2205
2243
|
Zs = 1;
|
|
2206
2244
|
function a(s) {
|
|
@@ -2213,10 +2251,10 @@ function _f() {
|
|
|
2213
2251
|
return jn = a, jn;
|
|
2214
2252
|
}
|
|
2215
2253
|
var zn, Js;
|
|
2216
|
-
function
|
|
2254
|
+
function kf() {
|
|
2217
2255
|
if (Js) return zn;
|
|
2218
2256
|
Js = 1;
|
|
2219
|
-
var a = Dt(), s = ra(), r =
|
|
2257
|
+
var a = Dt(), s = ra(), r = Cf(), t = Object.prototype, e = t.hasOwnProperty;
|
|
2220
2258
|
function i(n) {
|
|
2221
2259
|
if (!a(n))
|
|
2222
2260
|
return r(n);
|
|
@@ -2231,14 +2269,14 @@ var Vn, Qs;
|
|
|
2231
2269
|
function sa() {
|
|
2232
2270
|
if (Qs) return Vn;
|
|
2233
2271
|
Qs = 1;
|
|
2234
|
-
var a = Iu(), s =
|
|
2272
|
+
var a = Iu(), s = kf(), r = Au();
|
|
2235
2273
|
function t(e) {
|
|
2236
2274
|
return r(e) ? a(e, !0) : s(e);
|
|
2237
2275
|
}
|
|
2238
2276
|
return Vn = t, Vn;
|
|
2239
2277
|
}
|
|
2240
2278
|
var qn, eo;
|
|
2241
|
-
function
|
|
2279
|
+
function wf() {
|
|
2242
2280
|
if (eo) return qn;
|
|
2243
2281
|
eo = 1;
|
|
2244
2282
|
var a = mi(), s = sa();
|
|
@@ -2250,7 +2288,7 @@ function Cf() {
|
|
|
2250
2288
|
var It = { exports: {} };
|
|
2251
2289
|
It.exports;
|
|
2252
2290
|
var to;
|
|
2253
|
-
function
|
|
2291
|
+
function Tf() {
|
|
2254
2292
|
return to || (to = 1, (function(a, s) {
|
|
2255
2293
|
var r = Ae(), 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;
|
|
2256
2294
|
function u(l, c) {
|
|
@@ -2263,7 +2301,7 @@ function kf() {
|
|
|
2263
2301
|
})(It, It.exports)), It.exports;
|
|
2264
2302
|
}
|
|
2265
2303
|
var Gn, io;
|
|
2266
|
-
function
|
|
2304
|
+
function Sf() {
|
|
2267
2305
|
if (io) return Gn;
|
|
2268
2306
|
io = 1;
|
|
2269
2307
|
function a(s, r) {
|
|
@@ -2275,7 +2313,7 @@ function wf() {
|
|
|
2275
2313
|
return Gn = a, Gn;
|
|
2276
2314
|
}
|
|
2277
2315
|
var Wn, no;
|
|
2278
|
-
function
|
|
2316
|
+
function Ef() {
|
|
2279
2317
|
if (no) return Wn;
|
|
2280
2318
|
no = 1;
|
|
2281
2319
|
function a(s, r) {
|
|
@@ -2300,7 +2338,7 @@ var $n, ao;
|
|
|
2300
2338
|
function oa() {
|
|
2301
2339
|
if (ao) return $n;
|
|
2302
2340
|
ao = 1;
|
|
2303
|
-
var a =
|
|
2341
|
+
var a = Ef(), s = Ru(), r = Object.prototype, t = r.propertyIsEnumerable, e = Object.getOwnPropertySymbols, i = e ? function(n) {
|
|
2304
2342
|
return n == null ? [] : (n = Object(n), a(e(n), function(o) {
|
|
2305
2343
|
return t.call(n, o);
|
|
2306
2344
|
}));
|
|
@@ -2308,7 +2346,7 @@ function oa() {
|
|
|
2308
2346
|
return $n = i, $n;
|
|
2309
2347
|
}
|
|
2310
2348
|
var Yn, so;
|
|
2311
|
-
function
|
|
2349
|
+
function xf() {
|
|
2312
2350
|
if (so) return Yn;
|
|
2313
2351
|
so = 1;
|
|
2314
2352
|
var a = mi(), s = oa();
|
|
@@ -2347,7 +2385,7 @@ function Ou() {
|
|
|
2347
2385
|
return Jn = i, Jn;
|
|
2348
2386
|
}
|
|
2349
2387
|
var Qn, co;
|
|
2350
|
-
function
|
|
2388
|
+
function If() {
|
|
2351
2389
|
if (co) return Qn;
|
|
2352
2390
|
co = 1;
|
|
2353
2391
|
var a = mi(), s = Ou();
|
|
@@ -2368,7 +2406,7 @@ function Mu() {
|
|
|
2368
2406
|
return er = r, er;
|
|
2369
2407
|
}
|
|
2370
2408
|
var tr, ho;
|
|
2371
|
-
function
|
|
2409
|
+
function Pf() {
|
|
2372
2410
|
if (ho) return tr;
|
|
2373
2411
|
ho = 1;
|
|
2374
2412
|
var a = Mu(), s = oa(), r = aa();
|
|
@@ -2378,7 +2416,7 @@ function xf() {
|
|
|
2378
2416
|
return tr = t, tr;
|
|
2379
2417
|
}
|
|
2380
2418
|
var ir, go;
|
|
2381
|
-
function
|
|
2419
|
+
function Af() {
|
|
2382
2420
|
if (go) return ir;
|
|
2383
2421
|
go = 1;
|
|
2384
2422
|
var a = Mu(), s = Ou(), r = sa();
|
|
@@ -2388,28 +2426,28 @@ function If() {
|
|
|
2388
2426
|
return ir = t, ir;
|
|
2389
2427
|
}
|
|
2390
2428
|
var nr, vo;
|
|
2391
|
-
function
|
|
2429
|
+
function Rf() {
|
|
2392
2430
|
if (vo) return nr;
|
|
2393
2431
|
vo = 1;
|
|
2394
2432
|
var a = rt(), s = Ae(), r = a(s, "DataView");
|
|
2395
2433
|
return nr = r, nr;
|
|
2396
2434
|
}
|
|
2397
2435
|
var rr, po;
|
|
2398
|
-
function
|
|
2436
|
+
function Lf() {
|
|
2399
2437
|
if (po) return rr;
|
|
2400
2438
|
po = 1;
|
|
2401
2439
|
var a = rt(), s = Ae(), r = a(s, "Promise");
|
|
2402
2440
|
return rr = r, rr;
|
|
2403
2441
|
}
|
|
2404
2442
|
var ar, mo;
|
|
2405
|
-
function
|
|
2443
|
+
function Df() {
|
|
2406
2444
|
if (mo) return ar;
|
|
2407
2445
|
mo = 1;
|
|
2408
2446
|
var a = rt(), s = Ae(), r = a(s, "Set");
|
|
2409
2447
|
return ar = r, ar;
|
|
2410
2448
|
}
|
|
2411
2449
|
var sr, yo;
|
|
2412
|
-
function
|
|
2450
|
+
function Of() {
|
|
2413
2451
|
if (yo) return sr;
|
|
2414
2452
|
yo = 1;
|
|
2415
2453
|
var a = rt(), s = Ae(), r = a(s, "WeakMap");
|
|
@@ -2419,7 +2457,7 @@ var or, _o;
|
|
|
2419
2457
|
function ua() {
|
|
2420
2458
|
if (_o) return or;
|
|
2421
2459
|
_o = 1;
|
|
2422
|
-
var a =
|
|
2460
|
+
var a = Rf(), s = ea(), r = Lf(), t = Df(), e = Of(), i = gi(), n = wu(), o = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", h = "[object WeakMap]", d = "[object DataView]", g = n(a), v = n(s), m = n(r), p = n(t), k = n(e), b = i;
|
|
2423
2461
|
return (a && b(new a(new ArrayBuffer(1))) != d || s && b(new s()) != o || r && b(r.resolve()) != l || t && b(new t()) != c || e && b(new e()) != h) && (b = function(C) {
|
|
2424
2462
|
var R = i(C), T = R == u ? C.constructor : void 0, x = T ? n(T) : "";
|
|
2425
2463
|
if (x)
|
|
@@ -2439,7 +2477,7 @@ function ua() {
|
|
|
2439
2477
|
}), or = b, or;
|
|
2440
2478
|
}
|
|
2441
2479
|
var ur, bo;
|
|
2442
|
-
function
|
|
2480
|
+
function Mf() {
|
|
2443
2481
|
if (bo) return ur;
|
|
2444
2482
|
bo = 1;
|
|
2445
2483
|
var a = Object.prototype, s = a.hasOwnProperty;
|
|
@@ -2450,7 +2488,7 @@ function Df() {
|
|
|
2450
2488
|
return ur = r, ur;
|
|
2451
2489
|
}
|
|
2452
2490
|
var lr, Co;
|
|
2453
|
-
function
|
|
2491
|
+
function Ff() {
|
|
2454
2492
|
if (Co) return lr;
|
|
2455
2493
|
Co = 1;
|
|
2456
2494
|
var a = Ae(), s = a.Uint8Array;
|
|
@@ -2460,7 +2498,7 @@ var cr, ko;
|
|
|
2460
2498
|
function la() {
|
|
2461
2499
|
if (ko) return cr;
|
|
2462
2500
|
ko = 1;
|
|
2463
|
-
var a =
|
|
2501
|
+
var a = Ff();
|
|
2464
2502
|
function s(r) {
|
|
2465
2503
|
var t = new r.constructor(r.byteLength);
|
|
2466
2504
|
return new a(t).set(new a(r)), t;
|
|
@@ -2468,7 +2506,7 @@ function la() {
|
|
|
2468
2506
|
return cr = s, cr;
|
|
2469
2507
|
}
|
|
2470
2508
|
var fr, wo;
|
|
2471
|
-
function
|
|
2509
|
+
function Nf() {
|
|
2472
2510
|
if (wo) return fr;
|
|
2473
2511
|
wo = 1;
|
|
2474
2512
|
var a = la();
|
|
@@ -2479,7 +2517,7 @@ function Mf() {
|
|
|
2479
2517
|
return fr = s, fr;
|
|
2480
2518
|
}
|
|
2481
2519
|
var hr, To;
|
|
2482
|
-
function
|
|
2520
|
+
function Bf() {
|
|
2483
2521
|
if (To) return hr;
|
|
2484
2522
|
To = 1;
|
|
2485
2523
|
var a = /\w*$/;
|
|
@@ -2490,7 +2528,7 @@ function Ff() {
|
|
|
2490
2528
|
return hr = s, hr;
|
|
2491
2529
|
}
|
|
2492
2530
|
var dr, So;
|
|
2493
|
-
function
|
|
2531
|
+
function Hf() {
|
|
2494
2532
|
if (So) return dr;
|
|
2495
2533
|
So = 1;
|
|
2496
2534
|
var a = Qr(), s = a ? a.prototype : void 0, r = s ? s.valueOf : void 0;
|
|
@@ -2500,7 +2538,7 @@ function Nf() {
|
|
|
2500
2538
|
return dr = t, dr;
|
|
2501
2539
|
}
|
|
2502
2540
|
var gr, Eo;
|
|
2503
|
-
function
|
|
2541
|
+
function Uf() {
|
|
2504
2542
|
if (Eo) return gr;
|
|
2505
2543
|
Eo = 1;
|
|
2506
2544
|
var a = la();
|
|
@@ -2511,10 +2549,10 @@ function Bf() {
|
|
|
2511
2549
|
return gr = s, gr;
|
|
2512
2550
|
}
|
|
2513
2551
|
var vr, xo;
|
|
2514
|
-
function
|
|
2552
|
+
function jf() {
|
|
2515
2553
|
if (xo) return vr;
|
|
2516
2554
|
xo = 1;
|
|
2517
|
-
var a = la(), s =
|
|
2555
|
+
var a = la(), s = Nf(), r = Bf(), t = Hf(), e = Uf(), i = "[object Boolean]", n = "[object Date]", o = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", h = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", k = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", R = "[object Uint8Array]", T = "[object Uint8ClampedArray]", x = "[object Uint16Array]", j = "[object Uint32Array]";
|
|
2518
2556
|
function K(z, B, M) {
|
|
2519
2557
|
var re = z.constructor;
|
|
2520
2558
|
switch (B) {
|
|
@@ -2551,7 +2589,7 @@ function Hf() {
|
|
|
2551
2589
|
return vr = K, vr;
|
|
2552
2590
|
}
|
|
2553
2591
|
var pr, Io;
|
|
2554
|
-
function
|
|
2592
|
+
function zf() {
|
|
2555
2593
|
if (Io) return pr;
|
|
2556
2594
|
Io = 1;
|
|
2557
2595
|
var a = Dt(), s = Object.create, r = /* @__PURE__ */ (function() {
|
|
@@ -2570,17 +2608,17 @@ function Uf() {
|
|
|
2570
2608
|
return pr = r, pr;
|
|
2571
2609
|
}
|
|
2572
2610
|
var mr, Po;
|
|
2573
|
-
function
|
|
2611
|
+
function Vf() {
|
|
2574
2612
|
if (Po) return mr;
|
|
2575
2613
|
Po = 1;
|
|
2576
|
-
var a =
|
|
2614
|
+
var a = zf(), s = Du(), r = ra();
|
|
2577
2615
|
function t(e) {
|
|
2578
2616
|
return typeof e.constructor == "function" && !r(e) ? a(s(e)) : {};
|
|
2579
2617
|
}
|
|
2580
2618
|
return mr = t, mr;
|
|
2581
2619
|
}
|
|
2582
2620
|
var yr, Ao;
|
|
2583
|
-
function
|
|
2621
|
+
function qf() {
|
|
2584
2622
|
if (Ao) return yr;
|
|
2585
2623
|
Ao = 1;
|
|
2586
2624
|
var a = ua(), s = Ot(), r = "[object Map]";
|
|
@@ -2590,14 +2628,14 @@ function zf() {
|
|
|
2590
2628
|
return yr = t, yr;
|
|
2591
2629
|
}
|
|
2592
2630
|
var _r, Ro;
|
|
2593
|
-
function
|
|
2631
|
+
function Gf() {
|
|
2594
2632
|
if (Ro) return _r;
|
|
2595
2633
|
Ro = 1;
|
|
2596
|
-
var a =
|
|
2634
|
+
var a = qf(), s = ia(), r = na(), t = r && r.isMap, e = t ? s(t) : a;
|
|
2597
2635
|
return _r = e, _r;
|
|
2598
2636
|
}
|
|
2599
2637
|
var br, Lo;
|
|
2600
|
-
function
|
|
2638
|
+
function Wf() {
|
|
2601
2639
|
if (Lo) return br;
|
|
2602
2640
|
Lo = 1;
|
|
2603
2641
|
var a = ua(), s = Ot(), r = "[object Set]";
|
|
@@ -2607,21 +2645,21 @@ function qf() {
|
|
|
2607
2645
|
return br = t, br;
|
|
2608
2646
|
}
|
|
2609
2647
|
var Cr, Do;
|
|
2610
|
-
function
|
|
2648
|
+
function Kf() {
|
|
2611
2649
|
if (Do) return Cr;
|
|
2612
2650
|
Do = 1;
|
|
2613
|
-
var a =
|
|
2651
|
+
var a = Wf(), s = ia(), r = na(), t = r && r.isSet, e = t ? s(t) : a;
|
|
2614
2652
|
return Cr = e, Cr;
|
|
2615
2653
|
}
|
|
2616
2654
|
var kr, Oo;
|
|
2617
|
-
function
|
|
2655
|
+
function $f() {
|
|
2618
2656
|
if (Oo) return kr;
|
|
2619
2657
|
Oo = 1;
|
|
2620
|
-
var a =
|
|
2658
|
+
var a = uf(), s = lf(), r = Su(), t = bf(), e = wf(), i = Tf(), n = Sf(), o = xf(), u = If(), l = Pf(), c = Af(), h = ua(), d = Mf(), g = jf(), v = Vf(), m = ta(), p = Eu(), k = Gf(), b = Dt(), C = Kf(), R = aa(), T = sa(), x = 1, j = 2, K = 4, z = "[object Arguments]", B = "[object Array]", M = "[object Boolean]", re = "[object Date]", de = "[object Error]", Re = "[object Function]", Nt = "[object GeneratorFunction]", Bt = "[object Map]", bt = "[object Number]", Ct = "[object Object]", Ht = "[object RegExp]", Le = "[object Set]", F = "[object String]", G = "[object Symbol]", te = "[object WeakMap]", ge = "[object ArrayBuffer]", be = "[object DataView]", Ce = "[object Float32Array]", Ee = "[object Float64Array]", Ze = "[object Int8Array]", Ut = "[object Int16Array]", jt = "[object Int32Array]", kt = "[object Uint8Array]", yl = "[object Uint8ClampedArray]", _l = "[object Uint16Array]", bl = "[object Uint32Array]", Z = {};
|
|
2621
2659
|
Z[z] = Z[B] = Z[ge] = Z[be] = Z[M] = Z[re] = Z[Ce] = Z[Ee] = Z[Ze] = Z[Ut] = Z[jt] = Z[Bt] = Z[bt] = Z[Ct] = Z[Ht] = Z[Le] = Z[F] = Z[G] = Z[kt] = Z[yl] = Z[_l] = Z[bl] = !0, Z[de] = Z[Re] = Z[te] = !1;
|
|
2622
|
-
function zt($, ut, lt, Cl, Vt,
|
|
2660
|
+
function zt($, ut, lt, Cl, Vt, je) {
|
|
2623
2661
|
var fe, qt = ut & x, Gt = ut & j, kl = ut & K;
|
|
2624
|
-
if (lt && (fe = Vt ? lt($, Cl, Vt,
|
|
2662
|
+
if (lt && (fe = Vt ? lt($, Cl, Vt, je) : lt($)), fe !== void 0)
|
|
2625
2663
|
return fe;
|
|
2626
2664
|
if (!b($))
|
|
2627
2665
|
return $;
|
|
@@ -2642,33 +2680,33 @@ function Wf() {
|
|
|
2642
2680
|
fe = g($, ct, qt);
|
|
2643
2681
|
}
|
|
2644
2682
|
}
|
|
2645
|
-
|
|
2646
|
-
var Ta =
|
|
2683
|
+
je || (je = new a());
|
|
2684
|
+
var Ta = je.get($);
|
|
2647
2685
|
if (Ta)
|
|
2648
2686
|
return Ta;
|
|
2649
|
-
|
|
2650
|
-
fe.add(zt(
|
|
2651
|
-
}) : k($) && $.forEach(function(
|
|
2652
|
-
fe.set(Je, zt(
|
|
2687
|
+
je.set($, fe), C($) ? $.forEach(function(ze) {
|
|
2688
|
+
fe.add(zt(ze, ut, lt, ze, $, je));
|
|
2689
|
+
}) : k($) && $.forEach(function(ze, Je) {
|
|
2690
|
+
fe.set(Je, zt(ze, ut, lt, Je, $, je));
|
|
2653
2691
|
});
|
|
2654
2692
|
var wl = kl ? Gt ? c : l : Gt ? T : R, Sa = ka ? void 0 : wl($);
|
|
2655
|
-
return s(Sa || $, function(
|
|
2656
|
-
Sa && (Je =
|
|
2693
|
+
return s(Sa || $, function(ze, Je) {
|
|
2694
|
+
Sa && (Je = ze, ze = $[Je]), r(fe, Je, zt(ze, ut, lt, Je, $, je));
|
|
2657
2695
|
}), fe;
|
|
2658
2696
|
}
|
|
2659
2697
|
return kr = zt, kr;
|
|
2660
2698
|
}
|
|
2661
2699
|
var wr, Mo;
|
|
2662
|
-
function
|
|
2700
|
+
function Yf() {
|
|
2663
2701
|
if (Mo) return wr;
|
|
2664
2702
|
Mo = 1;
|
|
2665
|
-
var a =
|
|
2703
|
+
var a = $f(), s = 1, r = 4;
|
|
2666
2704
|
function t(e) {
|
|
2667
2705
|
return a(e, s | r);
|
|
2668
2706
|
}
|
|
2669
2707
|
return wr = t, wr;
|
|
2670
2708
|
}
|
|
2671
|
-
var
|
|
2709
|
+
var Xf = Yf(), Zf = /* @__PURE__ */ Rc(Xf), ca = we({
|
|
2672
2710
|
name: "DocumentEditor",
|
|
2673
2711
|
props: {
|
|
2674
2712
|
id: {
|
|
@@ -2728,7 +2766,7 @@ var $f = Kf(), Yf = /* @__PURE__ */ Pc($f), ca = Se({
|
|
|
2728
2766
|
var a = this, s, r = this.documentServerUrl;
|
|
2729
2767
|
r.endsWith("/") || (r += "/");
|
|
2730
2768
|
var t = "".concat(r, "web-apps/apps/api/documents/api.js");
|
|
2731
|
-
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)),
|
|
2769
|
+
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)), Ac(t, "onlyoffice-api-script").then(function() {
|
|
2732
2770
|
return a.onLoad();
|
|
2733
2771
|
}).catch(function() {
|
|
2734
2772
|
a.onError(-2);
|
|
@@ -2777,7 +2815,7 @@ var $f = Kf(), Yf = /* @__PURE__ */ Pc($f), ca = Se({
|
|
|
2777
2815
|
return;
|
|
2778
2816
|
}
|
|
2779
2817
|
!((s = window == null ? void 0 : window.DocEditor) === null || s === void 0) && s.instances || (window.DocEditor = { instances: {} });
|
|
2780
|
-
var t =
|
|
2818
|
+
var t = Zf(this.config), e = {
|
|
2781
2819
|
documentType: this.documentType,
|
|
2782
2820
|
events: {
|
|
2783
2821
|
onAppReady: this.onAppReady,
|
|
@@ -2846,13 +2884,13 @@ var $f = Kf(), Yf = /* @__PURE__ */ Pc($f), ca = Se({
|
|
|
2846
2884
|
}
|
|
2847
2885
|
}
|
|
2848
2886
|
});
|
|
2849
|
-
const
|
|
2850
|
-
function
|
|
2851
|
-
return I(), H("div", { id: a.id }, null, 8,
|
|
2887
|
+
const Jf = ["id"];
|
|
2888
|
+
function Qf(a, s, r, t, e, i) {
|
|
2889
|
+
return I(), H("div", { id: a.id }, null, 8, Jf);
|
|
2852
2890
|
}
|
|
2853
|
-
ca.render =
|
|
2891
|
+
ca.render = Qf;
|
|
2854
2892
|
ca.__file = "src/components/DocumentEditor.vue";
|
|
2855
|
-
const
|
|
2893
|
+
const eh = /* @__PURE__ */ we({
|
|
2856
2894
|
__name: "IkOnlyOffice",
|
|
2857
2895
|
props: {
|
|
2858
2896
|
// 文件服务器的服务的地址
|
|
@@ -2899,7 +2937,7 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
2899
2937
|
/* STYLE */
|
|
2900
2938
|
));
|
|
2901
2939
|
}
|
|
2902
|
-
}),
|
|
2940
|
+
}), th = He(eh), ih = {
|
|
2903
2941
|
/**
|
|
2904
2942
|
* @description preview link list.
|
|
2905
2943
|
*/
|
|
@@ -2969,15 +3007,15 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
2969
3007
|
crossorigin: {
|
|
2970
3008
|
type: ["anonymous", "use-credentials", ""]
|
|
2971
3009
|
}
|
|
2972
|
-
},
|
|
3010
|
+
}, nh = {
|
|
2973
3011
|
close: () => !0,
|
|
2974
3012
|
switch: (a) => jr.isNumber(a),
|
|
2975
3013
|
rotate: (a) => jr.isNumber(a)
|
|
2976
|
-
},
|
|
3014
|
+
}, rh = ["src", "crossorigin"], ah = /* @__PURE__ */ we({
|
|
2977
3015
|
name: "ElImageViewer",
|
|
2978
3016
|
__name: "IkImageViewer",
|
|
2979
|
-
props:
|
|
2980
|
-
emits:
|
|
3017
|
+
props: ih,
|
|
3018
|
+
emits: nh,
|
|
2981
3019
|
setup(a, { expose: s, emit: r }) {
|
|
2982
3020
|
const t = (F) => Object.keys(F), e = {
|
|
2983
3021
|
CONTAIN: {
|
|
@@ -2994,18 +3032,18 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
2994
3032
|
offsetX: 0,
|
|
2995
3033
|
offsetY: 0,
|
|
2996
3034
|
enableTransition: !1
|
|
2997
|
-
}), k = pe(i.zIndex ?? l()), b =
|
|
3035
|
+
}), k = pe(i.zIndex ?? l()), b = J(() => {
|
|
2998
3036
|
const { urlList: F } = i;
|
|
2999
3037
|
return F.length <= 1;
|
|
3000
|
-
}), C =
|
|
3038
|
+
}), C = J(() => v.value === 0), R = J(() => v.value === i.urlList.length - 1), T = J(() => i.urlList[v.value]), x = J(() => [
|
|
3001
3039
|
u.e("btn"),
|
|
3002
3040
|
u.e("prev"),
|
|
3003
3041
|
u.is("disabled", !i.infinite && C.value)
|
|
3004
|
-
]), j =
|
|
3042
|
+
]), j = J(() => [
|
|
3005
3043
|
u.e("btn"),
|
|
3006
3044
|
u.e("next"),
|
|
3007
3045
|
u.is("disabled", !i.infinite && R.value)
|
|
3008
|
-
]), K =
|
|
3046
|
+
]), K = J(() => {
|
|
3009
3047
|
const { scale: F, deg: G, offsetX: te, offsetY: ge, enableTransition: be } = p.value;
|
|
3010
3048
|
let Ce = te / F, Ee = ge / F;
|
|
3011
3049
|
const Ze = G * Math.PI / 180, Ut = Math.cos(Ze), jt = Math.sin(Ze);
|
|
@@ -3148,26 +3186,26 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3148
3186
|
* @description manually switch image
|
|
3149
3187
|
*/
|
|
3150
3188
|
setActiveItem: bt
|
|
3151
|
-
}), (F, G) => (I(),
|
|
3189
|
+
}), (F, G) => (I(), ae(hu, { to: "body" }, [
|
|
3152
3190
|
Y(du, {
|
|
3153
3191
|
name: "viewer-fade",
|
|
3154
3192
|
appear: ""
|
|
3155
3193
|
}, {
|
|
3156
|
-
default:
|
|
3194
|
+
default: ie(() => [
|
|
3157
3195
|
S(
|
|
3158
3196
|
"div",
|
|
3159
3197
|
{
|
|
3160
3198
|
ref_key: "wrapper",
|
|
3161
3199
|
ref: c,
|
|
3162
3200
|
tabindex: -1,
|
|
3163
|
-
class:
|
|
3201
|
+
class: ne(E(u).e("wrapper")),
|
|
3164
3202
|
style: ce({ zIndex: k.value })
|
|
3165
3203
|
},
|
|
3166
3204
|
[
|
|
3167
3205
|
S(
|
|
3168
3206
|
"div",
|
|
3169
3207
|
{
|
|
3170
|
-
class:
|
|
3208
|
+
class: ne(E(u).e("mask")),
|
|
3171
3209
|
onClick: G[0] || (G[0] = et((te) => F.hideOnClickModal && z(), ["self"]))
|
|
3172
3210
|
},
|
|
3173
3211
|
null,
|
|
@@ -3178,12 +3216,12 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3178
3216
|
S(
|
|
3179
3217
|
"span",
|
|
3180
3218
|
{
|
|
3181
|
-
class:
|
|
3219
|
+
class: ne([E(u).e("btn"), E(u).e("close")]),
|
|
3182
3220
|
onClick: z
|
|
3183
3221
|
},
|
|
3184
3222
|
[
|
|
3185
|
-
Y(E(
|
|
3186
|
-
default:
|
|
3223
|
+
Y(E(Ve), null, {
|
|
3224
|
+
default: ie(() => [
|
|
3187
3225
|
Y(E(pu))
|
|
3188
3226
|
]),
|
|
3189
3227
|
_: 1
|
|
@@ -3195,18 +3233,18 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3195
3233
|
),
|
|
3196
3234
|
X(" ARROW "),
|
|
3197
3235
|
b.value ? X("v-if", !0) : (I(), H(
|
|
3198
|
-
|
|
3236
|
+
Te,
|
|
3199
3237
|
{ key: 0 },
|
|
3200
3238
|
[
|
|
3201
3239
|
S(
|
|
3202
3240
|
"span",
|
|
3203
3241
|
{
|
|
3204
|
-
class:
|
|
3242
|
+
class: ne(x.value),
|
|
3205
3243
|
onClick: Ct
|
|
3206
3244
|
},
|
|
3207
3245
|
[
|
|
3208
|
-
Y(E(
|
|
3209
|
-
default:
|
|
3246
|
+
Y(E(Ve), null, {
|
|
3247
|
+
default: ie(() => [
|
|
3210
3248
|
Y(E(Hl))
|
|
3211
3249
|
]),
|
|
3212
3250
|
_: 1
|
|
@@ -3219,12 +3257,12 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3219
3257
|
S(
|
|
3220
3258
|
"span",
|
|
3221
3259
|
{
|
|
3222
|
-
class:
|
|
3260
|
+
class: ne(j.value),
|
|
3223
3261
|
onClick: Ht
|
|
3224
3262
|
},
|
|
3225
3263
|
[
|
|
3226
|
-
Y(E(
|
|
3227
|
-
default:
|
|
3264
|
+
Y(E(Ve), null, {
|
|
3265
|
+
default: ie(() => [
|
|
3228
3266
|
Y(E(Ul))
|
|
3229
3267
|
]),
|
|
3230
3268
|
_: 1
|
|
@@ -3242,28 +3280,28 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3242
3280
|
S(
|
|
3243
3281
|
"div",
|
|
3244
3282
|
{
|
|
3245
|
-
class:
|
|
3283
|
+
class: ne([E(u).e("btn"), E(u).e("actions")])
|
|
3246
3284
|
},
|
|
3247
3285
|
[
|
|
3248
3286
|
S(
|
|
3249
3287
|
"div",
|
|
3250
3288
|
{
|
|
3251
|
-
class:
|
|
3289
|
+
class: ne(E(u).e("actions__inner"))
|
|
3252
3290
|
},
|
|
3253
3291
|
[
|
|
3254
|
-
Y(E(
|
|
3292
|
+
Y(E(Ve), {
|
|
3255
3293
|
onClick: G[1] || (G[1] = (te) => Le("zoomOut"))
|
|
3256
3294
|
}, {
|
|
3257
|
-
default:
|
|
3295
|
+
default: ie(() => [
|
|
3258
3296
|
Y(E(jl))
|
|
3259
3297
|
]),
|
|
3260
3298
|
_: 1
|
|
3261
3299
|
/* STABLE */
|
|
3262
3300
|
}),
|
|
3263
|
-
Y(E(
|
|
3301
|
+
Y(E(Ve), {
|
|
3264
3302
|
onClick: G[2] || (G[2] = (te) => Le("zoomIn"))
|
|
3265
3303
|
}, {
|
|
3266
|
-
default:
|
|
3304
|
+
default: ie(() => [
|
|
3267
3305
|
Y(E(zl))
|
|
3268
3306
|
]),
|
|
3269
3307
|
_: 1
|
|
@@ -3272,15 +3310,15 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3272
3310
|
S(
|
|
3273
3311
|
"i",
|
|
3274
3312
|
{
|
|
3275
|
-
class:
|
|
3313
|
+
class: ne(E(u).e("actions__divider"))
|
|
3276
3314
|
},
|
|
3277
3315
|
null,
|
|
3278
3316
|
2
|
|
3279
3317
|
/* CLASS */
|
|
3280
3318
|
),
|
|
3281
|
-
Y(E(
|
|
3282
|
-
default:
|
|
3283
|
-
(I(),
|
|
3319
|
+
Y(E(Ve), { onClick: Bt }, {
|
|
3320
|
+
default: ie(() => [
|
|
3321
|
+
(I(), ae(Rl(m.value.icon)))
|
|
3284
3322
|
]),
|
|
3285
3323
|
_: 1
|
|
3286
3324
|
/* STABLE */
|
|
@@ -3288,25 +3326,25 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3288
3326
|
S(
|
|
3289
3327
|
"i",
|
|
3290
3328
|
{
|
|
3291
|
-
class:
|
|
3329
|
+
class: ne(E(u).e("actions__divider"))
|
|
3292
3330
|
},
|
|
3293
3331
|
null,
|
|
3294
3332
|
2
|
|
3295
3333
|
/* CLASS */
|
|
3296
3334
|
),
|
|
3297
|
-
Y(E(
|
|
3335
|
+
Y(E(Ve), {
|
|
3298
3336
|
onClick: G[3] || (G[3] = (te) => Le("anticlockwise"))
|
|
3299
3337
|
}, {
|
|
3300
|
-
default:
|
|
3338
|
+
default: ie(() => [
|
|
3301
3339
|
Y(E(Vl))
|
|
3302
3340
|
]),
|
|
3303
3341
|
_: 1
|
|
3304
3342
|
/* STABLE */
|
|
3305
3343
|
}),
|
|
3306
|
-
Y(E(
|
|
3344
|
+
Y(E(Ve), {
|
|
3307
3345
|
onClick: G[4] || (G[4] = (te) => Le("clockwise"))
|
|
3308
3346
|
}, {
|
|
3309
|
-
default:
|
|
3347
|
+
default: ie(() => [
|
|
3310
3348
|
Y(E(ql))
|
|
3311
3349
|
]),
|
|
3312
3350
|
_: 1
|
|
@@ -3324,11 +3362,11 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3324
3362
|
S(
|
|
3325
3363
|
"div",
|
|
3326
3364
|
{
|
|
3327
|
-
class:
|
|
3365
|
+
class: ne(E(u).e("canvas"))
|
|
3328
3366
|
},
|
|
3329
3367
|
[
|
|
3330
3368
|
(I(!0), H(
|
|
3331
|
-
|
|
3369
|
+
Te,
|
|
3332
3370
|
null,
|
|
3333
3371
|
Jt(F.urlList, (te, ge) => Ll((I(), H("img", {
|
|
3334
3372
|
ref_for: !0,
|
|
@@ -3336,12 +3374,12 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3336
3374
|
key: te,
|
|
3337
3375
|
src: te,
|
|
3338
3376
|
style: ce(K.value),
|
|
3339
|
-
class:
|
|
3377
|
+
class: ne(E(u).e("img")),
|
|
3340
3378
|
crossorigin: F.crossorigin,
|
|
3341
3379
|
onLoad: re,
|
|
3342
3380
|
onError: de,
|
|
3343
3381
|
onMousedown: Re
|
|
3344
|
-
}, null, 46,
|
|
3382
|
+
}, null, 46, rh)), [
|
|
3345
3383
|
[Dl, ge === v.value]
|
|
3346
3384
|
])),
|
|
3347
3385
|
128
|
|
@@ -3351,7 +3389,7 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3351
3389
|
2
|
|
3352
3390
|
/* CLASS */
|
|
3353
3391
|
),
|
|
3354
|
-
|
|
3392
|
+
Me(F.$slots, "default")
|
|
3355
3393
|
],
|
|
3356
3394
|
6
|
|
3357
3395
|
/* CLASS, STYLE */
|
|
@@ -3362,8 +3400,8 @@ const Jf = /* @__PURE__ */ Se({
|
|
|
3362
3400
|
})
|
|
3363
3401
|
]));
|
|
3364
3402
|
}
|
|
3365
|
-
}),
|
|
3366
|
-
function
|
|
3403
|
+
}), sh = He(ah);
|
|
3404
|
+
function oh(a, s) {
|
|
3367
3405
|
var r = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
3368
3406
|
if (r != null) {
|
|
3369
3407
|
var t, e, i, n, o = [], u = !0, l = !1;
|
|
@@ -3459,7 +3497,7 @@ function zr(a, s) {
|
|
|
3459
3497
|
return t.__proto__ = e, t;
|
|
3460
3498
|
}, zr(a, s);
|
|
3461
3499
|
}
|
|
3462
|
-
function
|
|
3500
|
+
function uh() {
|
|
3463
3501
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
3464
3502
|
return !1;
|
|
3465
3503
|
if (typeof Proxy == "function")
|
|
@@ -3484,7 +3522,7 @@ function fa(a, s) {
|
|
|
3484
3522
|
return y(a);
|
|
3485
3523
|
}
|
|
3486
3524
|
function D(a) {
|
|
3487
|
-
var s =
|
|
3525
|
+
var s = uh();
|
|
3488
3526
|
return function() {
|
|
3489
3527
|
var t = O(a), e;
|
|
3490
3528
|
if (s) {
|
|
@@ -3495,35 +3533,35 @@ function D(a) {
|
|
|
3495
3533
|
return fa(this, e);
|
|
3496
3534
|
};
|
|
3497
3535
|
}
|
|
3498
|
-
function
|
|
3536
|
+
function lh(a, s) {
|
|
3499
3537
|
for (; !Object.prototype.hasOwnProperty.call(a, s) && (a = O(a), a !== null); )
|
|
3500
3538
|
;
|
|
3501
3539
|
return a;
|
|
3502
3540
|
}
|
|
3503
3541
|
function N() {
|
|
3504
3542
|
return typeof Reflect < "u" && Reflect.get ? N = Reflect.get.bind() : N = function(s, r, t) {
|
|
3505
|
-
var e =
|
|
3543
|
+
var e = lh(s, r);
|
|
3506
3544
|
if (e) {
|
|
3507
3545
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
3508
3546
|
return i.get ? i.get.call(arguments.length < 3 ? s : t) : i.value;
|
|
3509
3547
|
}
|
|
3510
3548
|
}, N.apply(this, arguments);
|
|
3511
3549
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3550
|
+
function ch(a, s) {
|
|
3551
|
+
return hh(a) || oh(a, s) || Fu(a, s) || vh();
|
|
3514
3552
|
}
|
|
3515
|
-
function
|
|
3516
|
-
return
|
|
3553
|
+
function Se(a) {
|
|
3554
|
+
return fh(a) || dh(a) || Fu(a) || gh();
|
|
3517
3555
|
}
|
|
3518
|
-
function
|
|
3556
|
+
function fh(a) {
|
|
3519
3557
|
if (Array.isArray(a))
|
|
3520
3558
|
return Vr(a);
|
|
3521
3559
|
}
|
|
3522
|
-
function
|
|
3560
|
+
function hh(a) {
|
|
3523
3561
|
if (Array.isArray(a))
|
|
3524
3562
|
return a;
|
|
3525
3563
|
}
|
|
3526
|
-
function
|
|
3564
|
+
function dh(a) {
|
|
3527
3565
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
3528
3566
|
return Array.from(a);
|
|
3529
3567
|
}
|
|
@@ -3544,15 +3582,15 @@ function Vr(a, s) {
|
|
|
3544
3582
|
t[r] = a[r];
|
|
3545
3583
|
return t;
|
|
3546
3584
|
}
|
|
3547
|
-
function
|
|
3585
|
+
function gh() {
|
|
3548
3586
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3549
3587
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3550
3588
|
}
|
|
3551
|
-
function
|
|
3589
|
+
function vh() {
|
|
3552
3590
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3553
3591
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3554
3592
|
}
|
|
3555
|
-
function
|
|
3593
|
+
function ph(a, s) {
|
|
3556
3594
|
if (typeof a != "object" || a === null)
|
|
3557
3595
|
return a;
|
|
3558
3596
|
var r = a[Symbol.toPrimitive];
|
|
@@ -3565,11 +3603,11 @@ function gh(a, s) {
|
|
|
3565
3603
|
return (s === "string" ? String : Number)(a);
|
|
3566
3604
|
}
|
|
3567
3605
|
function Nu(a) {
|
|
3568
|
-
var s =
|
|
3606
|
+
var s = ph(a, "string");
|
|
3569
3607
|
return typeof s == "symbol" ? s : String(s);
|
|
3570
3608
|
}
|
|
3571
3609
|
var Tr = { exports: {} }, Bo;
|
|
3572
|
-
function
|
|
3610
|
+
function mh() {
|
|
3573
3611
|
return Bo || (Bo = 1, (function(a) {
|
|
3574
3612
|
var s = Object.prototype.hasOwnProperty, r = "~";
|
|
3575
3613
|
function t() {
|
|
@@ -3675,15 +3713,15 @@ function vh() {
|
|
|
3675
3713
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, a.exports = o;
|
|
3676
3714
|
})(Tr)), Tr.exports;
|
|
3677
3715
|
}
|
|
3678
|
-
var Bu =
|
|
3716
|
+
var Bu = mh();
|
|
3679
3717
|
const Hu = /* @__PURE__ */ _u(Bu);
|
|
3680
|
-
var
|
|
3718
|
+
var yh = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Sr = {
|
|
3681
3719
|
info: "color: #525252; background-color: #90ee90;",
|
|
3682
3720
|
error: "color: #525252; background-color: red;",
|
|
3683
3721
|
warn: "color: #525252; background-color: yellow; "
|
|
3684
3722
|
}, Er = "%c[xgplayer]", V = {
|
|
3685
3723
|
config: {
|
|
3686
|
-
debug:
|
|
3724
|
+
debug: yh ? 3 : 0
|
|
3687
3725
|
},
|
|
3688
3726
|
logInfo: function(s) {
|
|
3689
3727
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -3704,10 +3742,10 @@ var ph = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
3704
3742
|
}
|
|
3705
3743
|
}
|
|
3706
3744
|
};
|
|
3707
|
-
function
|
|
3745
|
+
function _h(a) {
|
|
3708
3746
|
a.logInfo = V.logInfo.bind(a), a.logWarn = V.logWarn.bind(a), a.logError = V.logError.bind(a);
|
|
3709
3747
|
}
|
|
3710
|
-
var
|
|
3748
|
+
var bh = /* @__PURE__ */ (function() {
|
|
3711
3749
|
function a(s) {
|
|
3712
3750
|
P(this, a), this.bufferedList = s;
|
|
3713
3751
|
}
|
|
@@ -3842,7 +3880,7 @@ f.deepMerge = function(a, s) {
|
|
|
3842
3880
|
if (f.typeOf(s[r]) === "Array" && f.typeOf(a[r]) === "Array") {
|
|
3843
3881
|
if (f.typeOf(a[r]) === "Array") {
|
|
3844
3882
|
var t;
|
|
3845
|
-
(t = a[r]).push.apply(t,
|
|
3883
|
+
(t = a[r]).push.apply(t, Se(s[r]));
|
|
3846
3884
|
}
|
|
3847
3885
|
} else f.typeOf(a[r]) === f.typeOf(s[r]) && a[r] !== null && f.typeOf(a[r]) === "Object" && !(s[r] instanceof window.Node) ? f.deepMerge(a[r], s[r]) : s[r] !== null && (a[r] = s[r]);
|
|
3848
3886
|
}), a;
|
|
@@ -3952,7 +3990,7 @@ f.setStyleFromCsstext = function(a, s) {
|
|
|
3952
3990
|
a.style[t] = s[t];
|
|
3953
3991
|
});
|
|
3954
3992
|
};
|
|
3955
|
-
function
|
|
3993
|
+
function Ch(a, s) {
|
|
3956
3994
|
for (var r = 0, t = s.length; r < t; r++)
|
|
3957
3995
|
if (a.indexOf(s[r]) > -1)
|
|
3958
3996
|
return !0;
|
|
@@ -3966,7 +4004,7 @@ f.filterStyleFromText = function(a) {
|
|
|
3966
4004
|
return t.map(function(n) {
|
|
3967
4005
|
if (n) {
|
|
3968
4006
|
var o = n.split(":");
|
|
3969
|
-
o.length > 1 && (
|
|
4007
|
+
o.length > 1 && (Ch(o[0], s) ? e[o[0]] = o[1] : i[o[0]] = o[1]);
|
|
3970
4008
|
}
|
|
3971
4009
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
3972
4010
|
a.style[n] = i[n];
|
|
@@ -4031,7 +4069,7 @@ f.getBuffered2 = function(a) {
|
|
|
4031
4069
|
}
|
|
4032
4070
|
else
|
|
4033
4071
|
e = r;
|
|
4034
|
-
return new
|
|
4072
|
+
return new bh(e);
|
|
4035
4073
|
};
|
|
4036
4074
|
f.getEventPos = function(a) {
|
|
4037
4075
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -4155,7 +4193,7 @@ function Uu(a) {
|
|
|
4155
4193
|
var s = ue(a);
|
|
4156
4194
|
return a !== null && (s === "object" || s === "function");
|
|
4157
4195
|
}
|
|
4158
|
-
function
|
|
4196
|
+
function kh(a, s, r) {
|
|
4159
4197
|
var t, e, i, n, o, u, l = 0, c = !1, h = !1, d = !0, g = !s && s !== 0 && typeof window.requestAnimationFrame == "function";
|
|
4160
4198
|
if (typeof a != "function")
|
|
4161
4199
|
throw new TypeError("Expected a function");
|
|
@@ -4214,21 +4252,21 @@ function bh(a, s, r) {
|
|
|
4214
4252
|
}
|
|
4215
4253
|
return z.cancel = x, z.flush = j, z.pending = K, z;
|
|
4216
4254
|
}
|
|
4217
|
-
function
|
|
4255
|
+
function wh(a, s, r) {
|
|
4218
4256
|
var t = !0, e = !0;
|
|
4219
4257
|
if (typeof a != "function")
|
|
4220
4258
|
throw new TypeError("Expected a function");
|
|
4221
|
-
return Uu(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
4259
|
+
return Uu(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), kh(a, s, {
|
|
4222
4260
|
leading: t,
|
|
4223
4261
|
trailing: e,
|
|
4224
4262
|
maxWait: s
|
|
4225
4263
|
});
|
|
4226
4264
|
}
|
|
4227
|
-
function
|
|
4265
|
+
function Th() {
|
|
4228
4266
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
4229
4267
|
return a === "zh-cn" && (a = "zh"), a;
|
|
4230
4268
|
}
|
|
4231
|
-
function
|
|
4269
|
+
function Sh(a, s, r) {
|
|
4232
4270
|
if (a) {
|
|
4233
4271
|
var t = a.getAttribute(r);
|
|
4234
4272
|
return !!(t && t === s && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -4238,7 +4276,7 @@ var xr = {
|
|
|
4238
4276
|
android: /(Android)\s([\d.]+)/,
|
|
4239
4277
|
harmony: /(OpenHarmony|HarmonyOS)\s([\d.]+)/,
|
|
4240
4278
|
ios: /(Version)\/([\d.]+)/
|
|
4241
|
-
},
|
|
4279
|
+
}, Eh = ["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"], U = {
|
|
4242
4280
|
get device() {
|
|
4243
4281
|
var a = U.os;
|
|
4244
4282
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -4304,7 +4342,7 @@ var xr = {
|
|
|
4304
4342
|
if (this.supportResult)
|
|
4305
4343
|
return this.supportResult;
|
|
4306
4344
|
var r = document.createElement("video");
|
|
4307
|
-
return typeof r.canPlayType == "function" &&
|
|
4345
|
+
return typeof r.canPlayType == "function" && Eh.map(function(t) {
|
|
4308
4346
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (s.isSupport = !0, s.mime += "||".concat(t));
|
|
4309
4347
|
}), this.supportResult = s, r = null, s;
|
|
4310
4348
|
},
|
|
@@ -4399,27 +4437,27 @@ var xr = {
|
|
|
4399
4437
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
4400
4438
|
}
|
|
4401
4439
|
}
|
|
4402
|
-
), _e = "play", yi = "playing", at = "ended", _t = "pause", Mt = "error", _i = "seeking",
|
|
4440
|
+
), _e = "play", yi = "playing", at = "ended", _t = "pause", Mt = "error", _i = "seeking", Ne = "seeked", ye = "timeupdate", Ft = "waiting", Fe = "canplay", xh = "canplaythrough", Ue = "durationchange", ju = "volumechange", Be = "loadeddata", Ih = "loadedmetadata", zu = "ratechange", Vu = "progress", ha = "loadstart", st = "emptied", Ph = "stalled", Ah = "suspend", Rh = "abort", Lh = "bufferedChange", da = "focus", qu = "blur", ga = "ready", Gu = "urlNull", nt = "autoplay_started", va = "autoplay_was_prevented", bi = "complete", ii = "replay", pa = "destroy", Ci = "urlchange", Gr = "download_speed_change", Wu = "leaveplayer", Ku = "enterplayer", $u = "loading", Oe = "fullscreen_change", ni = "cssFullscreen_change", ri = "mini_state_change", ma = "definition_change", Dh = "before_definition_change", Wr = "after_definition_change", Oh = "SEI_PARSED", Mh = "retry", $e = "video_resize", Kr = "pip_change", Yu = "rotate", Xu = "screenShot", ai = "playnext", Zu = "shortcut", Ju = "xglog", si = "user_action", ki = "reset", Qu = "source_error", el = "source_success", Fh = "switch_subtitle", tl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], il = {
|
|
4403
4441
|
STATS_INFO: "stats_info",
|
|
4404
4442
|
STATS_DOWNLOAD: "stats_download",
|
|
4405
4443
|
STATS_RESET: "stats_reset"
|
|
4406
4444
|
}, nl = "fps_stuck";
|
|
4407
|
-
const
|
|
4445
|
+
const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4408
4446
|
__proto__: null,
|
|
4409
|
-
ABORT:
|
|
4447
|
+
ABORT: Rh,
|
|
4410
4448
|
AFTER_DEFINITION_CHANGE: Wr,
|
|
4411
4449
|
AUTOPLAY_PREVENTED: va,
|
|
4412
4450
|
AUTOPLAY_STARTED: nt,
|
|
4413
|
-
BEFORE_DEFINITION_CHANGE:
|
|
4414
|
-
BUFFER_CHANGE:
|
|
4415
|
-
CANPLAY:
|
|
4416
|
-
CANPLAY_THROUGH:
|
|
4451
|
+
BEFORE_DEFINITION_CHANGE: Dh,
|
|
4452
|
+
BUFFER_CHANGE: Lh,
|
|
4453
|
+
CANPLAY: Fe,
|
|
4454
|
+
CANPLAY_THROUGH: xh,
|
|
4417
4455
|
COMPLETE: bi,
|
|
4418
4456
|
CSS_FULLSCREEN_CHANGE: ni,
|
|
4419
4457
|
DEFINITION_CHANGE: ma,
|
|
4420
4458
|
DESTROY: pa,
|
|
4421
4459
|
DOWNLOAD_SPEED_CHANGE: Gr,
|
|
4422
|
-
DURATION_CHANGE:
|
|
4460
|
+
DURATION_CHANGE: Ue,
|
|
4423
4461
|
EMPTIED: st,
|
|
4424
4462
|
ENDED: at,
|
|
4425
4463
|
ENTER_PLAYER: Ku,
|
|
@@ -4427,8 +4465,8 @@ const Mh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4427
4465
|
FPS_STUCK: nl,
|
|
4428
4466
|
FULLSCREEN_CHANGE: Oe,
|
|
4429
4467
|
LEAVE_PLAYER: Wu,
|
|
4430
|
-
LOADED_DATA:
|
|
4431
|
-
LOADED_METADATA:
|
|
4468
|
+
LOADED_DATA: Be,
|
|
4469
|
+
LOADED_METADATA: Ih,
|
|
4432
4470
|
LOADING: $u,
|
|
4433
4471
|
LOAD_START: ha,
|
|
4434
4472
|
MINI_STATE_CHANGE: ri,
|
|
@@ -4444,25 +4482,25 @@ const Mh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4444
4482
|
READY: ga,
|
|
4445
4483
|
REPLAY: ii,
|
|
4446
4484
|
RESET: ki,
|
|
4447
|
-
RETRY:
|
|
4485
|
+
RETRY: Mh,
|
|
4448
4486
|
ROTATE: Yu,
|
|
4449
4487
|
SCREEN_SHOT: Xu,
|
|
4450
|
-
SEEKED:
|
|
4488
|
+
SEEKED: Ne,
|
|
4451
4489
|
SEEKING: _i,
|
|
4452
|
-
SEI_PARSED:
|
|
4490
|
+
SEI_PARSED: Oh,
|
|
4453
4491
|
SHORTCUT: Zu,
|
|
4454
4492
|
SOURCE_ERROR: Qu,
|
|
4455
4493
|
SOURCE_SUCCESS: el,
|
|
4456
|
-
STALLED:
|
|
4494
|
+
STALLED: Ph,
|
|
4457
4495
|
STATS_EVENTS: il,
|
|
4458
|
-
SUSPEND:
|
|
4459
|
-
SWITCH_SUBTITLE:
|
|
4496
|
+
SUSPEND: Ah,
|
|
4497
|
+
SWITCH_SUBTITLE: Fh,
|
|
4460
4498
|
TIME_UPDATE: ye,
|
|
4461
4499
|
URL_CHANGE: Ci,
|
|
4462
4500
|
URL_NULL: Gu,
|
|
4463
4501
|
USER_ACTION: si,
|
|
4464
4502
|
VIDEO_EVENTS: tl,
|
|
4465
|
-
VIDEO_RESIZE:
|
|
4503
|
+
VIDEO_RESIZE: $e,
|
|
4466
4504
|
VOLUME_CHANGE: ju,
|
|
4467
4505
|
WAITING: Ft,
|
|
4468
4506
|
XGLOG: Ju
|
|
@@ -4470,7 +4508,7 @@ const Mh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4470
4508
|
function Ir(a, s) {
|
|
4471
4509
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, s.error) : this.emit(a, s));
|
|
4472
4510
|
}
|
|
4473
|
-
function
|
|
4511
|
+
function Bh(a, s) {
|
|
4474
4512
|
return function(r, t) {
|
|
4475
4513
|
var e = {
|
|
4476
4514
|
player: s,
|
|
@@ -4505,7 +4543,7 @@ function Fh(a, s) {
|
|
|
4505
4543
|
Ir.call(s, a, e);
|
|
4506
4544
|
};
|
|
4507
4545
|
}
|
|
4508
|
-
var
|
|
4546
|
+
var Hh = /* @__PURE__ */ (function(a) {
|
|
4509
4547
|
L(r, a);
|
|
4510
4548
|
var s = D(r);
|
|
4511
4549
|
function r(t) {
|
|
@@ -4549,7 +4587,7 @@ var Nh = /* @__PURE__ */ (function(a) {
|
|
|
4549
4587
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
4550
4588
|
this._evHandlers || (this._evHandlers = tl.map(function(n) {
|
|
4551
4589
|
var o = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
4552
|
-
return typeof e[o] == "function" && e.on(n, e[o]), _({}, n,
|
|
4590
|
+
return typeof e[o] == "function" && e.on(n, e[o]), _({}, n, Bh(n, e));
|
|
4553
4591
|
})), this._evHandlers.forEach(function(n) {
|
|
4554
4592
|
var o = Object.keys(n)[0];
|
|
4555
4593
|
i.addEventListener(o, n[o], !1);
|
|
@@ -4923,7 +4961,7 @@ var Nh = /* @__PURE__ */ (function(a) {
|
|
|
4923
4961
|
N(O(r.prototype), "removeAllListeners", this).call(this);
|
|
4924
4962
|
}
|
|
4925
4963
|
}]), r;
|
|
4926
|
-
})(Hu),
|
|
4964
|
+
})(Hu), Uh = /* @__PURE__ */ (function() {
|
|
4927
4965
|
function a() {
|
|
4928
4966
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
4929
4967
|
name: "xgplayer",
|
|
@@ -5001,7 +5039,7 @@ var Nh = /* @__PURE__ */ (function(a) {
|
|
|
5001
5039
|
t.clear();
|
|
5002
5040
|
}
|
|
5003
5041
|
}]), a;
|
|
5004
|
-
})(), jo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], zo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Vo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"],
|
|
5042
|
+
})(), jo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], zo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Vo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ke = "data-xgplayerid";
|
|
5005
5043
|
function $t(a, s, r) {
|
|
5006
5044
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
5007
5045
|
e[i - 3] = arguments[i];
|
|
@@ -5030,7 +5068,7 @@ function oi(a, s) {
|
|
|
5030
5068
|
try {
|
|
5031
5069
|
var n = ke.apply(void 0, [this, a, s].concat(Array.prototype.slice.call(arguments)));
|
|
5032
5070
|
n ? n.then ? n.then(function(o) {
|
|
5033
|
-
o !== !1 && $t.apply(void 0, [e, s, r.next].concat(
|
|
5071
|
+
o !== !1 && $t.apply(void 0, [e, s, r.next].concat(Se(t)));
|
|
5034
5072
|
}).catch(function(o) {
|
|
5035
5073
|
throw o;
|
|
5036
5074
|
}) : $t.apply(void 0, [this, s, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && $t.apply(void 0, [this, s, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
@@ -5124,7 +5162,7 @@ function ke(a, s, r) {
|
|
|
5124
5162
|
function Pr(a, s) {
|
|
5125
5163
|
V.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(s));
|
|
5126
5164
|
}
|
|
5127
|
-
var
|
|
5165
|
+
var Ye = /* @__PURE__ */ (function() {
|
|
5128
5166
|
function a(s) {
|
|
5129
5167
|
P(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(s), al(this), this.__args = s, this.__events = {}, this.__onceEvents = {}, this.config = s.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(s);
|
|
5130
5168
|
}
|
|
@@ -5319,7 +5357,7 @@ var $e = /* @__PURE__ */ (function() {
|
|
|
5319
5357
|
}
|
|
5320
5358
|
}]), a;
|
|
5321
5359
|
})(), Ar, Wo;
|
|
5322
|
-
function
|
|
5360
|
+
function jh() {
|
|
5323
5361
|
if (Wo) return Ar;
|
|
5324
5362
|
Wo = 1;
|
|
5325
5363
|
var a = 9;
|
|
@@ -5337,10 +5375,10 @@ function Hh() {
|
|
|
5337
5375
|
return Ar = r, Ar;
|
|
5338
5376
|
}
|
|
5339
5377
|
var Rr, Ko;
|
|
5340
|
-
function
|
|
5378
|
+
function zh() {
|
|
5341
5379
|
if (Ko) return Rr;
|
|
5342
5380
|
Ko = 1;
|
|
5343
|
-
var a =
|
|
5381
|
+
var a = jh();
|
|
5344
5382
|
function s(e, i, n, o, u) {
|
|
5345
5383
|
var l = t.apply(this, arguments);
|
|
5346
5384
|
return e.addEventListener(n, l, u), {
|
|
@@ -5361,12 +5399,12 @@ function Uh() {
|
|
|
5361
5399
|
}
|
|
5362
5400
|
return Rr = r, Rr;
|
|
5363
5401
|
}
|
|
5364
|
-
var
|
|
5365
|
-
const $o = /* @__PURE__ */ _u(
|
|
5366
|
-
var
|
|
5402
|
+
var Vh = zh();
|
|
5403
|
+
const $o = /* @__PURE__ */ _u(Vh);
|
|
5404
|
+
var qh = {
|
|
5367
5405
|
CONTROLS: "controls",
|
|
5368
5406
|
ROOT: "root"
|
|
5369
|
-
},
|
|
5407
|
+
}, Q = {
|
|
5370
5408
|
ROOT: "root",
|
|
5371
5409
|
ROOT_LEFT: "rootLeft",
|
|
5372
5410
|
ROOT_RIGHT: "rootRight",
|
|
@@ -5382,10 +5420,10 @@ var zh = {
|
|
|
5382
5420
|
function Lr(a) {
|
|
5383
5421
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
5384
5422
|
}
|
|
5385
|
-
function
|
|
5423
|
+
function Gh(a, s) {
|
|
5386
5424
|
return ue(a) === "object" && a.class && typeof a.class == "string" ? "".concat(s, " ").concat(a.class) : s;
|
|
5387
5425
|
}
|
|
5388
|
-
function
|
|
5426
|
+
function Wh(a, s) {
|
|
5389
5427
|
return ue(a) === "object" && a.attr && ue(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
5390
5428
|
s[r] = a.attr[r];
|
|
5391
5429
|
}), s;
|
|
@@ -5408,14 +5446,14 @@ function Xo(a, s) {
|
|
|
5408
5446
|
}
|
|
5409
5447
|
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (V.logWarn("warn>>icons.".concat(s, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
5410
5448
|
}
|
|
5411
|
-
function
|
|
5449
|
+
function Kh(a, s) {
|
|
5412
5450
|
var r = s.config.icons || s.playerConfig.icons;
|
|
5413
5451
|
Object.keys(a).map(function(t) {
|
|
5414
5452
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, o = null;
|
|
5415
|
-
r && r[t] && (i =
|
|
5453
|
+
r && r[t] && (i = Gh(r[t], i), n = Wh(r[t], n), o = Xo(r[t], t, i, n, s.pluginName)), !o && e && (o = Xo(e.icon ? e.icon : e, n, i, {}, s.pluginName)), s.icons[t] = o;
|
|
5416
5454
|
});
|
|
5417
5455
|
}
|
|
5418
|
-
function
|
|
5456
|
+
function $h(a, s) {
|
|
5419
5457
|
Object.keys(a).map(function(r) {
|
|
5420
5458
|
Object.defineProperty(s.langText, r, {
|
|
5421
5459
|
get: function() {
|
|
@@ -5439,9 +5477,9 @@ var W = /* @__PURE__ */ (function(a) {
|
|
|
5439
5477
|
var i = e.root, n = null;
|
|
5440
5478
|
this.icons = {}, this.root = null, this.parent = null, this.extraEls = [];
|
|
5441
5479
|
var o = this.registerIcons() || {};
|
|
5442
|
-
|
|
5480
|
+
Kh(o, this), this.langText = {};
|
|
5443
5481
|
var u = this.registerLanguageTexts() || {};
|
|
5444
|
-
|
|
5482
|
+
$h(u, this);
|
|
5445
5483
|
var l = "";
|
|
5446
5484
|
try {
|
|
5447
5485
|
l = this.render();
|
|
@@ -5709,15 +5747,15 @@ var W = /* @__PURE__ */ (function(a) {
|
|
|
5709
5747
|
}, {
|
|
5710
5748
|
key: "ROOT_TYPES",
|
|
5711
5749
|
get: function() {
|
|
5712
|
-
return
|
|
5750
|
+
return qh;
|
|
5713
5751
|
}
|
|
5714
5752
|
}, {
|
|
5715
5753
|
key: "POSITIONS",
|
|
5716
5754
|
get: function() {
|
|
5717
|
-
return
|
|
5755
|
+
return Q;
|
|
5718
5756
|
}
|
|
5719
5757
|
}]), r;
|
|
5720
|
-
})(
|
|
5758
|
+
})(Ye), Yh = /* @__PURE__ */ (function() {
|
|
5721
5759
|
function a() {
|
|
5722
5760
|
var s = this;
|
|
5723
5761
|
if (P(this, a), _(this, "__trigger", function(r) {
|
|
@@ -5727,7 +5765,7 @@ var W = /* @__PURE__ */ (function(a) {
|
|
|
5727
5765
|
s.__runHandler(r[e].target);
|
|
5728
5766
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
5729
5767
|
try {
|
|
5730
|
-
this.observer = new window.ResizeObserver(
|
|
5768
|
+
this.observer = new window.ResizeObserver(wh(this.__trigger, 100, {
|
|
5731
5769
|
trailing: !0
|
|
5732
5770
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
5733
5771
|
} catch (r) {
|
|
@@ -5739,7 +5777,7 @@ var W = /* @__PURE__ */ (function(a) {
|
|
|
5739
5777
|
value: function(r, t) {
|
|
5740
5778
|
if (this.observer) {
|
|
5741
5779
|
this.observer.observe(r);
|
|
5742
|
-
for (var e = r.getAttribute(
|
|
5780
|
+
for (var e = r.getAttribute(Ke), i = this.__handlers, n = -1, o = 0; o < i.length; o++)
|
|
5743
5781
|
i[o] && r === i[o].target && (n = o);
|
|
5744
5782
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
5745
5783
|
target: r,
|
|
@@ -5784,18 +5822,18 @@ var W = /* @__PURE__ */ (function(a) {
|
|
|
5784
5822
|
}
|
|
5785
5823
|
}]), a;
|
|
5786
5824
|
})(), Pt = null;
|
|
5787
|
-
function
|
|
5788
|
-
return Pt || (Pt = new
|
|
5825
|
+
function Xh(a, s) {
|
|
5826
|
+
return Pt || (Pt = new Yh()), Pt.addObserver(a, s), Pt;
|
|
5789
5827
|
}
|
|
5790
|
-
function
|
|
5828
|
+
function Zh(a, s) {
|
|
5791
5829
|
var r;
|
|
5792
5830
|
(r = Pt) === null || r === void 0 || r.unObserver(a, s);
|
|
5793
5831
|
}
|
|
5794
|
-
var
|
|
5832
|
+
var oe = {
|
|
5795
5833
|
pluginGroup: {},
|
|
5796
5834
|
init: function(s) {
|
|
5797
5835
|
var r = s._pluginInfoId;
|
|
5798
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), s._pluginInfoId = r), !s.config.closeResizeObserver &&
|
|
5836
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), s._pluginInfoId = r), !s.config.closeResizeObserver && Xh(s.root, function() {
|
|
5799
5837
|
s.resize();
|
|
5800
5838
|
}), this.pluginGroup[r] = {
|
|
5801
5839
|
_originalOptions: s.config || {},
|
|
@@ -5981,7 +6019,7 @@ var se = {
|
|
|
5981
6019
|
destroy: function(s) {
|
|
5982
6020
|
var r = s._pluginInfoId;
|
|
5983
6021
|
if (this.pluginGroup[r]) {
|
|
5984
|
-
|
|
6022
|
+
Zh(s.root);
|
|
5985
6023
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
5986
6024
|
var n = i[e];
|
|
5987
6025
|
this.unRegister(r, n);
|
|
@@ -6067,7 +6105,7 @@ function Zo() {
|
|
|
6067
6105
|
ignores: [],
|
|
6068
6106
|
whitelist: [],
|
|
6069
6107
|
inactive: 3e3,
|
|
6070
|
-
lang:
|
|
6108
|
+
lang: Th(),
|
|
6071
6109
|
controls: !0,
|
|
6072
6110
|
marginControls: !1,
|
|
6073
6111
|
fullscreenTarget: null,
|
|
@@ -6103,16 +6141,16 @@ function Zo() {
|
|
|
6103
6141
|
}
|
|
6104
6142
|
};
|
|
6105
6143
|
}
|
|
6106
|
-
var
|
|
6144
|
+
var Jh = function(s, r) {
|
|
6107
6145
|
var t, e, i;
|
|
6108
6146
|
r.preset && r.options ? i = new r.preset(r.options, s.config) : i = new r({}, s.config);
|
|
6109
6147
|
var n = i, o = n.plugins, u = o === void 0 ? [] : o, l = n.ignores, c = l === void 0 ? [] : l, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, v = g === void 0 ? [] : g;
|
|
6110
|
-
s.config.plugins || (s.config.plugins = []), s.config.ignores || (s.config.ignores = []), (t = s.config.plugins).push.apply(t,
|
|
6148
|
+
s.config.plugins || (s.config.plugins = []), s.config.ignores || (s.config.ignores = []), (t = s.config.plugins).push.apply(t, Se(u)), (e = s.config.ignores).push.apply(e, Se(c)), Object.keys(d).map(function(p) {
|
|
6111
6149
|
s.config.icons[p] || (s.config.icons[p] = d[p]);
|
|
6112
6150
|
});
|
|
6113
6151
|
var m = s.config.i18n || [];
|
|
6114
|
-
v.push.apply(v,
|
|
6115
|
-
},
|
|
6152
|
+
v.push.apply(v, Se(m)), s.config.i18n = v;
|
|
6153
|
+
}, Qh = /* @__PURE__ */ (function(a) {
|
|
6116
6154
|
L(r, a);
|
|
6117
6155
|
var s = D(r);
|
|
6118
6156
|
function r() {
|
|
@@ -6208,16 +6246,16 @@ var Xh = function(s, r) {
|
|
|
6208
6246
|
if (!i.root) {
|
|
6209
6247
|
var u = i.position ? i.position : i.config && i.config.position ? i.config.position : o.position;
|
|
6210
6248
|
switch (u) {
|
|
6211
|
-
case
|
|
6249
|
+
case Q.CONTROLS_LEFT:
|
|
6212
6250
|
i.root = this.left;
|
|
6213
6251
|
break;
|
|
6214
|
-
case
|
|
6252
|
+
case Q.CONTROLS_RIGHT:
|
|
6215
6253
|
i.root = this.right;
|
|
6216
6254
|
break;
|
|
6217
|
-
case
|
|
6255
|
+
case Q.CONTROLS_CENTER:
|
|
6218
6256
|
i.root = this.center;
|
|
6219
6257
|
break;
|
|
6220
|
-
case
|
|
6258
|
+
case Q.CONTROLS:
|
|
6221
6259
|
i.root = this.root;
|
|
6222
6260
|
break;
|
|
6223
6261
|
default:
|
|
@@ -6273,7 +6311,7 @@ var Xh = function(s, r) {
|
|
|
6273
6311
|
};
|
|
6274
6312
|
}
|
|
6275
6313
|
}]), r;
|
|
6276
|
-
})(W),
|
|
6314
|
+
})(W), ed = {
|
|
6277
6315
|
LANG: "en",
|
|
6278
6316
|
TEXT: {
|
|
6279
6317
|
ERROR_TYPES: {
|
|
@@ -6359,7 +6397,7 @@ function Lt(a, s) {
|
|
|
6359
6397
|
var t = f.typeOf(s[r]), e = f.typeOf(a[r]);
|
|
6360
6398
|
if (t === "Array") {
|
|
6361
6399
|
var i;
|
|
6362
|
-
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i,
|
|
6400
|
+
e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, Se(s[r]));
|
|
6363
6401
|
} else t === "Object" ? (e !== "Object" && (a[r] = {}), Lt(a[r], s[r])) : a[r] = s[r];
|
|
6364
6402
|
}), a;
|
|
6365
6403
|
}
|
|
@@ -6368,7 +6406,7 @@ function ol() {
|
|
|
6368
6406
|
me.textKeys[a] = a;
|
|
6369
6407
|
});
|
|
6370
6408
|
}
|
|
6371
|
-
function
|
|
6409
|
+
function td(a, s) {
|
|
6372
6410
|
var r = [];
|
|
6373
6411
|
if (s || (s = me), !!s.lang) {
|
|
6374
6412
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -6391,16 +6429,16 @@ function ya(a, s) {
|
|
|
6391
6429
|
r === "zh" && (r = "zh-cn"), s.lang[r] ? Lt(s.lang[r], t) : (s.langKeys.push(r), s.lang[r] = t), ol();
|
|
6392
6430
|
}
|
|
6393
6431
|
}
|
|
6394
|
-
function
|
|
6432
|
+
function id(a) {
|
|
6395
6433
|
var s, r = {
|
|
6396
6434
|
lang: {},
|
|
6397
6435
|
langKeys: [],
|
|
6398
6436
|
textKeys: {},
|
|
6399
6437
|
pId: a
|
|
6400
6438
|
};
|
|
6401
|
-
return Lt(r.lang, me.lang), (s = r.langKeys).push.apply(s,
|
|
6439
|
+
return Lt(r.lang, me.lang), (s = r.langKeys).push.apply(s, Se(me.langKeys)), Lt(r.textKeys, me.textKeys), r;
|
|
6402
6440
|
}
|
|
6403
|
-
ya(
|
|
6441
|
+
ya(ed);
|
|
6404
6442
|
var yt = {
|
|
6405
6443
|
get textKeys() {
|
|
6406
6444
|
return me.textKeys;
|
|
@@ -6414,9 +6452,9 @@ var yt = {
|
|
|
6414
6452
|
a[s] = me.lang[s];
|
|
6415
6453
|
}), me.lang["zh-cn"] && (a.zh = me.lang["zh-cn"] || {}), a;
|
|
6416
6454
|
},
|
|
6417
|
-
extend:
|
|
6455
|
+
extend: td,
|
|
6418
6456
|
use: ya,
|
|
6419
|
-
init:
|
|
6457
|
+
init: id
|
|
6420
6458
|
}, q = {
|
|
6421
6459
|
INITIAL: 1,
|
|
6422
6460
|
READY: 2,
|
|
@@ -6512,7 +6550,7 @@ var yt = {
|
|
|
6512
6550
|
}
|
|
6513
6551
|
}]), r;
|
|
6514
6552
|
})(Bu.EventEmitter);
|
|
6515
|
-
function
|
|
6553
|
+
function nd(a) {
|
|
6516
6554
|
for (var s = Object.keys(he), r = 0; r < s.length; r++) {
|
|
6517
6555
|
var t = he[s[r]];
|
|
6518
6556
|
if (t.root === a)
|
|
@@ -6520,7 +6558,7 @@ function td(a) {
|
|
|
6520
6558
|
}
|
|
6521
6559
|
return null;
|
|
6522
6560
|
}
|
|
6523
|
-
var
|
|
6561
|
+
var rd = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, qe = null, wi = /* @__PURE__ */ (function(a) {
|
|
6524
6562
|
L(r, a);
|
|
6525
6563
|
var s = D(r);
|
|
6526
6564
|
function r(t) {
|
|
@@ -6530,7 +6568,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6530
6568
|
n = s.call(this, o), _(y(n), "canPlayFunc", function() {
|
|
6531
6569
|
if (n.config) {
|
|
6532
6570
|
var p = n.config, k = p.autoplay, b = p.defaultPlaybackRate;
|
|
6533
|
-
V.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = b, (k || n._useAutoplay) && n.mediaPlay(), n.off(
|
|
6571
|
+
V.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = b, (k || n._useAutoplay) && n.mediaPlay(), n.off(Fe, n.canPlayFunc), n.removeClass(w.ENTER);
|
|
6534
6572
|
}
|
|
6535
6573
|
}), _(y(n), "onFullscreenChange", function(p, k) {
|
|
6536
6574
|
var b = function() {
|
|
@@ -6550,7 +6588,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6550
6588
|
to: !1
|
|
6551
6589
|
}]
|
|
6552
6590
|
});
|
|
6553
|
-
var R =
|
|
6591
|
+
var R = Sh(C, n.playerId, Ke);
|
|
6554
6592
|
if (k || C && (C === n._fullscreenEl || R))
|
|
6555
6593
|
b(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, C, w.FULLSCREEN), n.emit(Oe, !0, n._fullScreenOffset), n.cssfullscreen && n.exitCssFullscreen();
|
|
6556
6594
|
else if (n.fullscreen) {
|
|
@@ -6570,7 +6608,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6570
6608
|
n._fullscreenEl = n.media, n.onFullscreenChange(p, !0);
|
|
6571
6609
|
}), _(y(n), "_onWebkitendfullscreen", function(p) {
|
|
6572
6610
|
n.onFullscreenChange(p, !1);
|
|
6573
|
-
}), al(y(n),
|
|
6611
|
+
}), al(y(n), rd), n.config = o, n._pluginInfoId = f.generateSessionId(), _h(y(n));
|
|
6574
6612
|
var u = n.constructor.defaultPreset;
|
|
6575
6613
|
if (n.config.presets.length) {
|
|
6576
6614
|
var l = n.config.presets.indexOf("default");
|
|
@@ -6598,9 +6636,9 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6598
6636
|
}, n._offsetInfo = {
|
|
6599
6637
|
currentTime: -1,
|
|
6600
6638
|
duration: 0
|
|
6601
|
-
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = yt.init(n._pluginInfoId), U.os.isAndroid && U.osVersion > 0 && U.osVersion < 6 && (n.config.autoplay = !1), n.database = new
|
|
6639
|
+
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = yt.init(n._pluginInfoId), U.os.isAndroid && U.osVersion > 0 && U.osVersion < 6 && (n.config.autoplay = !1), n.database = new Uh(), n.isUserActive = !1, n._onceSeekCanplay = null, n._isPauseBeforeSeek = 0, n.innerStates = {
|
|
6602
6640
|
isActiveLocked: !1
|
|
6603
|
-
}, n.instManager =
|
|
6641
|
+
}, n.instManager = qe;
|
|
6604
6642
|
var c = n._initDOM();
|
|
6605
6643
|
if (!c)
|
|
6606
6644
|
return console.error(new Error("can't find the dom which id is ".concat(n.config.id, " or this.config.el does not exist"))), fa(n);
|
|
@@ -6611,7 +6649,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6611
6649
|
});
|
|
6612
6650
|
m || (g.defaultDefinition = g.list[0].definition, m = g.list[0]), n.curDefinition = m, v || (n.config.url = m.url);
|
|
6613
6651
|
}
|
|
6614
|
-
return n._bindEvents(), n._registerPresets(), n._registerPlugins(),
|
|
6652
|
+
return n._bindEvents(), n._registerPresets(), n._registerPlugins(), oe.onPluginsReady(y(n)), n.getInitDefinition(), n.setState(q.READY), f.setTimeout(y(n), function() {
|
|
6615
6653
|
n.emit(ga);
|
|
6616
6654
|
}, 0), (e = (i = n).onReady) === null || e === void 0 || e.call(i), (n.config.videoInit || n.config.autoplay) && (!n.hasStart || n.state < q.ATTACHED) && n.start(), n;
|
|
6617
6655
|
}
|
|
@@ -6630,9 +6668,9 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6630
6668
|
msg: "container id can't be empty"
|
|
6631
6669
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
6632
6670
|
}
|
|
6633
|
-
var o =
|
|
6634
|
-
if (o && (V.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute(
|
|
6635
|
-
var u = this.config.controls.root || null, l =
|
|
6671
|
+
var o = nd(this.root);
|
|
6672
|
+
if (o && (V.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 = qe) === null || e === void 0 || e.add(this), oe.init(this), this._initBaseDoms(), this.config.controls) {
|
|
6673
|
+
var u = this.config.controls.root || null, l = oe.register(this, Qh, {
|
|
6636
6674
|
root: u
|
|
6637
6675
|
});
|
|
6638
6676
|
this.controls = l;
|
|
@@ -6672,7 +6710,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6672
6710
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
6673
6711
|
}), jo.forEach(function(i) {
|
|
6674
6712
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
6675
|
-
}), U.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(
|
|
6713
|
+
}), U.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Be, this.resize), this.playFunc = function() {
|
|
6676
6714
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
6677
6715
|
}, this.once(_e, this.playFunc);
|
|
6678
6716
|
}
|
|
@@ -6682,7 +6720,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6682
6720
|
var e = this;
|
|
6683
6721
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), jo.forEach(function(i) {
|
|
6684
6722
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
6685
|
-
}), this.playFunc && this.off(_e, this.playFunc), this.off(
|
|
6723
|
+
}), this.playFunc && this.off(_e, this.playFunc), this.off(Fe, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
6686
6724
|
}
|
|
6687
6725
|
}, {
|
|
6688
6726
|
key: "_clearUserTimer",
|
|
@@ -6700,7 +6738,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6700
6738
|
var u = this.media.readyState;
|
|
6701
6739
|
V.logInfo("_startInit readyState", u), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (U.os.isIpad || U.os.isPhone) && this.mediaPlay());
|
|
6702
6740
|
var l = this.config.startTime;
|
|
6703
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(
|
|
6741
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Fe, this.canPlayFunc), (!this.hasStart || this.state < q.ATTACHED) && oe.afterInit(this), this.hasStart = !0, this.setState(q.ATTACHED), f.setTimeout(this, function() {
|
|
6704
6742
|
i.emit(bi);
|
|
6705
6743
|
}, 0);
|
|
6706
6744
|
}
|
|
@@ -6721,7 +6759,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6721
6759
|
if (!i && c[d.toLowerCase()])
|
|
6722
6760
|
return;
|
|
6723
6761
|
if (h.lazy && h.loader) {
|
|
6724
|
-
var g =
|
|
6762
|
+
var g = oe.lazyRegister(e, h);
|
|
6725
6763
|
h.forceBeforeInit && (g.then(function() {
|
|
6726
6764
|
e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
|
|
6727
6765
|
}).catch(function(v) {
|
|
@@ -6740,7 +6778,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6740
6778
|
value: function() {
|
|
6741
6779
|
var e = this;
|
|
6742
6780
|
this.config.presets.forEach(function(i) {
|
|
6743
|
-
|
|
6781
|
+
Jh(e, i);
|
|
6744
6782
|
});
|
|
6745
6783
|
}
|
|
6746
6784
|
}, {
|
|
@@ -6748,13 +6786,13 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6748
6786
|
value: function(e) {
|
|
6749
6787
|
var i = null;
|
|
6750
6788
|
switch (e) {
|
|
6751
|
-
case
|
|
6789
|
+
case Q.ROOT_RIGHT:
|
|
6752
6790
|
this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
|
|
6753
6791
|
break;
|
|
6754
|
-
case
|
|
6792
|
+
case Q.ROOT_LEFT:
|
|
6755
6793
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
6756
6794
|
break;
|
|
6757
|
-
case
|
|
6795
|
+
case Q.ROOT_TOP:
|
|
6758
6796
|
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, w.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
6759
6797
|
break;
|
|
6760
6798
|
default:
|
|
@@ -6766,21 +6804,21 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6766
6804
|
}, {
|
|
6767
6805
|
key: "registerPlugin",
|
|
6768
6806
|
value: function(e, i) {
|
|
6769
|
-
var n =
|
|
6807
|
+
var n = oe.formatPluginInfo(e, i), o = n.PLUFGIN, u = n.options, l = this.config.plugins, c = oe.checkPluginIfExits(o.pluginName, l);
|
|
6770
6808
|
!c && l.push(o);
|
|
6771
|
-
var h =
|
|
6809
|
+
var h = oe.getRootByConfig(o.pluginName, this.config);
|
|
6772
6810
|
h.root && (u.root = h.root), h.position && (u.position = h.position);
|
|
6773
6811
|
var d = u.position ? u.position : u.config && u.config.position || o.defaultConfig && o.defaultConfig.position;
|
|
6774
6812
|
if (!u.root && typeof d == "string" && d.indexOf("controls") > -1) {
|
|
6775
6813
|
var g;
|
|
6776
6814
|
return (g = this.controls) === null || g === void 0 ? void 0 : g.registerPlugin(o, u, o.pluginName);
|
|
6777
6815
|
}
|
|
6778
|
-
return u.root || (u.root = this._getRootByPosition(d)),
|
|
6816
|
+
return u.root || (u.root = this._getRootByPosition(d)), oe.register(this, o, u);
|
|
6779
6817
|
}
|
|
6780
6818
|
}, {
|
|
6781
6819
|
key: "deregister",
|
|
6782
6820
|
value: function(e) {
|
|
6783
|
-
typeof e == "string" ?
|
|
6821
|
+
typeof e == "string" ? oe.unRegister(this, e) : e instanceof Ye && oe.unRegister(this, e.pluginName);
|
|
6784
6822
|
}
|
|
6785
6823
|
}, {
|
|
6786
6824
|
key: "unRegisterPlugin",
|
|
@@ -6792,7 +6830,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6792
6830
|
key: "removePluginFromConfig",
|
|
6793
6831
|
value: function(e) {
|
|
6794
6832
|
var i;
|
|
6795
|
-
if (typeof e == "string" ? i = e : e instanceof
|
|
6833
|
+
if (typeof e == "string" ? i = e : e instanceof Ye && (i = e.pluginName), !!i)
|
|
6796
6834
|
for (var n = this.config.plugins.length - 1; n > -1; n--) {
|
|
6797
6835
|
var o = this.config.plugins[n];
|
|
6798
6836
|
if (o.pluginName.toLowerCase() === i.toLowerCase()) {
|
|
@@ -6804,12 +6842,12 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6804
6842
|
}, {
|
|
6805
6843
|
key: "plugins",
|
|
6806
6844
|
get: function() {
|
|
6807
|
-
return
|
|
6845
|
+
return oe.getPlugins(this);
|
|
6808
6846
|
}
|
|
6809
6847
|
}, {
|
|
6810
6848
|
key: "getPlugin",
|
|
6811
6849
|
value: function(e) {
|
|
6812
|
-
var i =
|
|
6850
|
+
var i = oe.findPlugin(this, e);
|
|
6813
6851
|
return i && i.pluginName ? i : null;
|
|
6814
6852
|
}
|
|
6815
6853
|
}, {
|
|
@@ -6844,7 +6882,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6844
6882
|
var i = this;
|
|
6845
6883
|
if (!(this.state > q.ATTACHING)) {
|
|
6846
6884
|
var n = this._playSessionId;
|
|
6847
|
-
return f.isNotNull(n) && (this._playSessionId = void 0), !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(q.ATTACHING), this._registerPlugins(!1),
|
|
6885
|
+
return f.isNotNull(n) && (this._playSessionId = void 0), !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(q.ATTACHING), this._registerPlugins(!1), oe.beforeInit(this).then(function() {
|
|
6848
6886
|
if (i.config) {
|
|
6849
6887
|
e || (e = i.url || i.config.url);
|
|
6850
6888
|
var o = i.preProcessUrl(e), u = i._startInit(o.url, {
|
|
@@ -6940,7 +6978,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6940
6978
|
var n = this;
|
|
6941
6979
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
6942
6980
|
var o = this.config, u = o.isSeekedPlay, l = o.seekedStatus, c = i || (u ? "play" : l);
|
|
6943
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
6981
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Ne, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
6944
6982
|
switch (n.removeClass(w.ENTER), n.isSeeking = !1, c) {
|
|
6945
6983
|
case "play":
|
|
6946
6984
|
n.play();
|
|
@@ -6952,7 +6990,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6952
6990
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
6953
6991
|
}
|
|
6954
6992
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
6955
|
-
}, this.once(
|
|
6993
|
+
}, this.once(Ne, this._onceSeekCanplay), this.state < q.RUNNING ? (this.removeClass(w.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
6956
6994
|
}
|
|
6957
6995
|
}
|
|
6958
6996
|
}, {
|
|
@@ -6994,7 +7032,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
6994
7032
|
value: function() {
|
|
6995
7033
|
this.load(), this.reloadFunc = function() {
|
|
6996
7034
|
this.play();
|
|
6997
|
-
}, this.once(
|
|
7035
|
+
}, this.once(Be, this.reloadFunc);
|
|
6998
7036
|
}
|
|
6999
7037
|
}, {
|
|
7000
7038
|
key: "resetState",
|
|
@@ -7024,7 +7062,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7024
7062
|
value: function() {
|
|
7025
7063
|
var e, i = this, n = this.innerContainer, o = this.root, u = this.media;
|
|
7026
7064
|
if (!(!o || !u)) {
|
|
7027
|
-
if (this.hasStart = !1, this._useAutoplay = !1, o.removeAttribute(
|
|
7065
|
+
if (this.hasStart = !1, this._useAutoplay = !1, o.removeAttribute(Ke), u.removeAttribute(Ke), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(pa), (e = qe) === null || e === void 0 || e.remove(this), oe.destroy(this), sl(this), N(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
7028
7066
|
for (var l = n.children, c = 0; c < l.length; c++)
|
|
7029
7067
|
n.removeChild(l[c]);
|
|
7030
7068
|
!n && u instanceof window.Node && o.contains(u) && !this.config.remainMediaAfterDestroy && o.removeChild(u), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -7043,7 +7081,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7043
7081
|
value: function() {
|
|
7044
7082
|
var e = this;
|
|
7045
7083
|
this.removeClass(w.ENDED), this.currentTime = 0, this.isSeeking = !1, ke(this, "replay", function() {
|
|
7046
|
-
e.once(
|
|
7084
|
+
e.once(Ne, function() {
|
|
7047
7085
|
var i = e.mediaPlay();
|
|
7048
7086
|
i && i.catch && i.catch(function(n) {
|
|
7049
7087
|
console.log(n);
|
|
@@ -7059,7 +7097,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7059
7097
|
var i = e.currentTime, n = e.config.url, o = f.isMSE(e.media) ? {
|
|
7060
7098
|
url: n
|
|
7061
7099
|
} : e.preProcessUrl(n);
|
|
7062
|
-
e.src = o.url, !e.config.isLive && (e.currentTime = i), e.once(
|
|
7100
|
+
e.src = o.url, !e.config.isLive && (e.currentTime = i), e.once(Fe, function() {
|
|
7063
7101
|
e.mediaPlay();
|
|
7064
7102
|
});
|
|
7065
7103
|
});
|
|
@@ -7067,12 +7105,12 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7067
7105
|
}, {
|
|
7068
7106
|
key: "changeFullStyle",
|
|
7069
7107
|
value: function(e, i, n, o) {
|
|
7070
|
-
e && (o || (o = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, o), i.setAttribute(
|
|
7108
|
+
e && (o || (o = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, o), i.setAttribute(Ke, this.playerId)));
|
|
7071
7109
|
}
|
|
7072
7110
|
}, {
|
|
7073
7111
|
key: "recoverFullStyle",
|
|
7074
7112
|
value: function(e, i, n, o) {
|
|
7075
|
-
o || (o = w.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, o), i.removeAttribute(
|
|
7113
|
+
o || (o = w.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, o), i.removeAttribute(Ke));
|
|
7076
7114
|
}
|
|
7077
7115
|
}, {
|
|
7078
7116
|
key: "getFullscreen",
|
|
@@ -7238,7 +7276,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7238
7276
|
key: "onLoadeddata",
|
|
7239
7277
|
value: function() {
|
|
7240
7278
|
var e = this;
|
|
7241
|
-
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(
|
|
7279
|
+
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(Ue, function() {
|
|
7242
7280
|
e._seekToStartTime();
|
|
7243
7281
|
}));
|
|
7244
7282
|
}
|
|
@@ -7427,7 +7465,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7427
7465
|
cWidth: k,
|
|
7428
7466
|
cHeight: b + d
|
|
7429
7467
|
};
|
|
7430
|
-
this.resizePosition(), this.emit(
|
|
7468
|
+
this.resizePosition(), this.emit($e, R);
|
|
7431
7469
|
}
|
|
7432
7470
|
}
|
|
7433
7471
|
}
|
|
@@ -7530,7 +7568,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7530
7568
|
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(yt.langKeys.join(), "] "));
|
|
7531
7569
|
return;
|
|
7532
7570
|
}
|
|
7533
|
-
this.config.lang = e,
|
|
7571
|
+
this.config.lang = e, oe.setLang(e, this);
|
|
7534
7572
|
}
|
|
7535
7573
|
}, {
|
|
7536
7574
|
key: "i18n",
|
|
@@ -7684,7 +7722,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7684
7722
|
key: "setUserActive",
|
|
7685
7723
|
value: function(e, i) {
|
|
7686
7724
|
var n;
|
|
7687
|
-
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n =
|
|
7725
|
+
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n = qe) === null || n === void 0 || n.setActive(this.playerId, e);
|
|
7688
7726
|
}
|
|
7689
7727
|
}], [{
|
|
7690
7728
|
key: "debugger",
|
|
@@ -7697,22 +7735,22 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7697
7735
|
}, {
|
|
7698
7736
|
key: "instManager",
|
|
7699
7737
|
get: function() {
|
|
7700
|
-
return
|
|
7738
|
+
return qe;
|
|
7701
7739
|
},
|
|
7702
7740
|
set: function(e) {
|
|
7703
|
-
|
|
7741
|
+
qe = e;
|
|
7704
7742
|
}
|
|
7705
7743
|
}, {
|
|
7706
7744
|
key: "getCurrentUserActivePlayerId",
|
|
7707
7745
|
value: function() {
|
|
7708
7746
|
var e;
|
|
7709
|
-
return (e =
|
|
7747
|
+
return (e = qe) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
7710
7748
|
}
|
|
7711
7749
|
}, {
|
|
7712
7750
|
key: "setCurrentUserActive",
|
|
7713
7751
|
value: function(e, i) {
|
|
7714
7752
|
var n;
|
|
7715
|
-
(n =
|
|
7753
|
+
(n = qe) === null || n === void 0 || n.setActive(e, i);
|
|
7716
7754
|
}
|
|
7717
7755
|
}, {
|
|
7718
7756
|
key: "isHevcSupported",
|
|
@@ -7735,7 +7773,7 @@ var id = ["play", "pause", "replay", "retry"], Qo = 0, eu = 0, ze = null, wi = /
|
|
|
7735
7773
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
7736
7774
|
}
|
|
7737
7775
|
}]), r;
|
|
7738
|
-
})(
|
|
7776
|
+
})(Hh);
|
|
7739
7777
|
_(wi, "defaultPreset", null);
|
|
7740
7778
|
_(wi, "XgVideoProxy", null);
|
|
7741
7779
|
wi.instManager = ul.getInstance();
|
|
@@ -7778,13 +7816,13 @@ var ot = /* @__PURE__ */ (function(a) {
|
|
|
7778
7816
|
}
|
|
7779
7817
|
}]), r;
|
|
7780
7818
|
})(W);
|
|
7781
|
-
function
|
|
7819
|
+
function ad() {
|
|
7782
7820
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
7783
7821
|
<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>
|
|
7784
7822
|
</svg>
|
|
7785
7823
|
`, "image/svg+xml").firstChild;
|
|
7786
7824
|
}
|
|
7787
|
-
function
|
|
7825
|
+
function sd() {
|
|
7788
7826
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
7789
7827
|
<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>
|
|
7790
7828
|
</svg>
|
|
@@ -7844,11 +7882,11 @@ var $r = /* @__PURE__ */ (function(a) {
|
|
|
7844
7882
|
value: function() {
|
|
7845
7883
|
return {
|
|
7846
7884
|
cssFullscreen: {
|
|
7847
|
-
icon:
|
|
7885
|
+
icon: ad,
|
|
7848
7886
|
class: "xg-get-cssfull"
|
|
7849
7887
|
},
|
|
7850
7888
|
exitCssFullscreen: {
|
|
7851
|
-
icon:
|
|
7889
|
+
icon: sd,
|
|
7852
7890
|
class: "xg-exit-cssfull"
|
|
7853
7891
|
}
|
|
7854
7892
|
};
|
|
@@ -7877,7 +7915,7 @@ var $r = /* @__PURE__ */ (function(a) {
|
|
|
7877
7915
|
key: "defaultConfig",
|
|
7878
7916
|
get: function() {
|
|
7879
7917
|
return {
|
|
7880
|
-
position:
|
|
7918
|
+
position: Q.CONTROLS_RIGHT,
|
|
7881
7919
|
index: 1,
|
|
7882
7920
|
disable: !1,
|
|
7883
7921
|
target: null
|
|
@@ -7885,14 +7923,14 @@ var $r = /* @__PURE__ */ (function(a) {
|
|
|
7885
7923
|
}
|
|
7886
7924
|
}]), r;
|
|
7887
7925
|
})(ot);
|
|
7888
|
-
function
|
|
7926
|
+
function od() {
|
|
7889
7927
|
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">
|
|
7890
7928
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
7891
7929
|
<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>
|
|
7892
7930
|
</g>
|
|
7893
7931
|
</svg>`, "image/svg+xml").firstChild;
|
|
7894
7932
|
}
|
|
7895
|
-
var
|
|
7933
|
+
var ud = /* @__PURE__ */ (function(a) {
|
|
7896
7934
|
L(r, a);
|
|
7897
7935
|
var s = D(r);
|
|
7898
7936
|
function r() {
|
|
@@ -7911,7 +7949,7 @@ var sd = /* @__PURE__ */ (function(a) {
|
|
|
7911
7949
|
value: function() {
|
|
7912
7950
|
return {
|
|
7913
7951
|
screenBack: {
|
|
7914
|
-
icon:
|
|
7952
|
+
icon: od,
|
|
7915
7953
|
class: "xg-fullscreen-back"
|
|
7916
7954
|
}
|
|
7917
7955
|
};
|
|
@@ -7947,19 +7985,19 @@ var sd = /* @__PURE__ */ (function(a) {
|
|
|
7947
7985
|
key: "defaultConfig",
|
|
7948
7986
|
get: function() {
|
|
7949
7987
|
return {
|
|
7950
|
-
position:
|
|
7988
|
+
position: Q.ROOT_TOP,
|
|
7951
7989
|
index: 0
|
|
7952
7990
|
};
|
|
7953
7991
|
}
|
|
7954
7992
|
}]), r;
|
|
7955
7993
|
})(W);
|
|
7956
|
-
function
|
|
7994
|
+
function ld() {
|
|
7957
7995
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
7958
7996
|
<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>
|
|
7959
7997
|
</svg>
|
|
7960
7998
|
`, "image/svg+xml").firstChild;
|
|
7961
7999
|
}
|
|
7962
|
-
function
|
|
8000
|
+
function cd() {
|
|
7963
8001
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
7964
8002
|
<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>
|
|
7965
8003
|
</svg>
|
|
@@ -8000,7 +8038,7 @@ var ll = /* @__PURE__ */ (function(a) {
|
|
|
8000
8038
|
var l = e.find(".xg-tips");
|
|
8001
8039
|
l && e.changeLangTextKey(l, u ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(u);
|
|
8002
8040
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8003
|
-
plugin:
|
|
8041
|
+
plugin: ud,
|
|
8004
8042
|
options: {
|
|
8005
8043
|
config: {
|
|
8006
8044
|
onClick: function(l) {
|
|
@@ -8016,11 +8054,11 @@ var ll = /* @__PURE__ */ (function(a) {
|
|
|
8016
8054
|
value: function() {
|
|
8017
8055
|
return {
|
|
8018
8056
|
fullscreen: {
|
|
8019
|
-
icon:
|
|
8057
|
+
icon: ld,
|
|
8020
8058
|
class: "xg-get-fullscreen"
|
|
8021
8059
|
},
|
|
8022
8060
|
exitFullscreen: {
|
|
8023
|
-
icon:
|
|
8061
|
+
icon: cd,
|
|
8024
8062
|
class: "xg-exit-fullscreen"
|
|
8025
8063
|
}
|
|
8026
8064
|
};
|
|
@@ -8088,7 +8126,7 @@ var ll = /* @__PURE__ */ (function(a) {
|
|
|
8088
8126
|
key: "defaultConfig",
|
|
8089
8127
|
get: function() {
|
|
8090
8128
|
return {
|
|
8091
|
-
position:
|
|
8129
|
+
position: Q.CONTROLS_RIGHT,
|
|
8092
8130
|
index: 0,
|
|
8093
8131
|
useCssFullscreen: !1,
|
|
8094
8132
|
rotateFullscreen: !1,
|
|
@@ -8199,13 +8237,13 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8199
8237
|
key: "defaultConfig",
|
|
8200
8238
|
get: function() {
|
|
8201
8239
|
return {
|
|
8202
|
-
position:
|
|
8240
|
+
position: Q.CONTROLS_LEFT,
|
|
8203
8241
|
index: 0,
|
|
8204
8242
|
disable: !1
|
|
8205
8243
|
};
|
|
8206
8244
|
}
|
|
8207
8245
|
}]), r;
|
|
8208
|
-
})(ot),
|
|
8246
|
+
})(ot), fd = [{
|
|
8209
8247
|
tag: "xg-cache",
|
|
8210
8248
|
className: "xgplayer-progress-cache",
|
|
8211
8249
|
styleKey: "cachedColor"
|
|
@@ -8213,7 +8251,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8213
8251
|
tag: "xg-played",
|
|
8214
8252
|
className: "xgplayer-progress-played",
|
|
8215
8253
|
styleKey: "playedColor"
|
|
8216
|
-
}],
|
|
8254
|
+
}], hd = /* @__PURE__ */ (function() {
|
|
8217
8255
|
function a(s) {
|
|
8218
8256
|
P(this, a), this.fragments = s.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8219
8257
|
percent: 1
|
|
@@ -8400,7 +8438,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8400
8438
|
var u = f.createDom("xg-inner", "", {
|
|
8401
8439
|
style: t ? "background:".concat(t, "; flex: ").concat(o.percent) : "flex: ".concat(o.percent)
|
|
8402
8440
|
}, "".concat(o.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8403
|
-
return r.root.appendChild(u),
|
|
8441
|
+
return r.root.appendChild(u), fd.forEach(function(l) {
|
|
8404
8442
|
u.appendChild(f.createDom(l.tag, "", {
|
|
8405
8443
|
style: l.styleKey ? "background: ".concat(r.style[l.styleKey], "; width:0;") : "width:0;"
|
|
8406
8444
|
}, l.className));
|
|
@@ -8548,7 +8586,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8548
8586
|
e.emitUserAction("fragment_focus", "fragment_focus", l);
|
|
8549
8587
|
}
|
|
8550
8588
|
});
|
|
8551
|
-
this.innerList ? this.innerList.reset(o) : (this.innerList = new
|
|
8589
|
+
this.innerList ? this.innerList.reset(o) : (this.innerList = new hd(o), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(u) {
|
|
8552
8590
|
e[u] = e.innerList[u].bind(e.innerList);
|
|
8553
8591
|
}));
|
|
8554
8592
|
}
|
|
@@ -8582,11 +8620,11 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8582
8620
|
key: "listenEvents",
|
|
8583
8621
|
value: function() {
|
|
8584
8622
|
var e = this;
|
|
8585
|
-
this.on(
|
|
8623
|
+
this.on(Ue, function() {
|
|
8586
8624
|
e.onMouseLeave();
|
|
8587
8625
|
}), this.on(ye, function() {
|
|
8588
8626
|
e.onTimeupdate();
|
|
8589
|
-
}), this.on(
|
|
8627
|
+
}), this.on(Ne, function() {
|
|
8590
8628
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
8591
8629
|
}), this.on(Vu, function() {
|
|
8592
8630
|
e.onCacheUpdate();
|
|
@@ -8594,7 +8632,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8594
8632
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8595
8633
|
}), this.on(st, function() {
|
|
8596
8634
|
e.onReset();
|
|
8597
|
-
}), this.on(
|
|
8635
|
+
}), this.on($e, function() {
|
|
8598
8636
|
e.onVideoResize();
|
|
8599
8637
|
});
|
|
8600
8638
|
}
|
|
@@ -8806,7 +8844,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8806
8844
|
key: "defaultConfig",
|
|
8807
8845
|
get: function() {
|
|
8808
8846
|
return {
|
|
8809
|
-
position:
|
|
8847
|
+
position: Q.CONTROLS_CENTER,
|
|
8810
8848
|
index: 0,
|
|
8811
8849
|
disable: !1,
|
|
8812
8850
|
isDraggingSeek: !0,
|
|
@@ -8868,7 +8906,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8868
8906
|
key: "listenEvents",
|
|
8869
8907
|
value: function() {
|
|
8870
8908
|
var e = this;
|
|
8871
|
-
this.on([
|
|
8909
|
+
this.on([Ue, Ne, ye], function(i) {
|
|
8872
8910
|
i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8873
8911
|
}), this.on(at, function() {
|
|
8874
8912
|
e.onTimeUpdate(!0);
|
|
@@ -8956,7 +8994,7 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8956
8994
|
var e = this, i = this.player, n = function() {
|
|
8957
8995
|
e.isActiving = !1;
|
|
8958
8996
|
};
|
|
8959
|
-
this.off(
|
|
8997
|
+
this.off(Ne, n), i.isSeeking && i.media.seeking ? this.once(Ne, n) : this.isActiving = !1;
|
|
8960
8998
|
}
|
|
8961
8999
|
}, {
|
|
8962
9000
|
key: "destroy",
|
|
@@ -8984,28 +9022,28 @@ var cl = /* @__PURE__ */ (function(a) {
|
|
|
8984
9022
|
key: "defaultConfig",
|
|
8985
9023
|
get: function() {
|
|
8986
9024
|
return {
|
|
8987
|
-
position:
|
|
9025
|
+
position: Q.CONTROLS_LEFT,
|
|
8988
9026
|
index: 2,
|
|
8989
9027
|
disable: !1
|
|
8990
9028
|
};
|
|
8991
9029
|
}
|
|
8992
9030
|
}]), r;
|
|
8993
9031
|
})(W);
|
|
8994
|
-
function
|
|
9032
|
+
function dd() {
|
|
8995
9033
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8996
9034
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8997
9035
|
<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>
|
|
8998
9036
|
</svg>
|
|
8999
9037
|
`, "image/svg+xml").firstChild;
|
|
9000
9038
|
}
|
|
9001
|
-
function
|
|
9039
|
+
function gd() {
|
|
9002
9040
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9003
9041
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9004
9042
|
<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>
|
|
9005
9043
|
</svg>
|
|
9006
9044
|
`, "image/svg+xml").firstChild;
|
|
9007
9045
|
}
|
|
9008
|
-
function
|
|
9046
|
+
function vd() {
|
|
9009
9047
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9010
9048
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9011
9049
|
<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>
|
|
@@ -9060,15 +9098,15 @@ var dl = /* @__PURE__ */ (function(a) {
|
|
|
9060
9098
|
value: function() {
|
|
9061
9099
|
return {
|
|
9062
9100
|
volumeSmall: {
|
|
9063
|
-
icon:
|
|
9101
|
+
icon: gd,
|
|
9064
9102
|
class: "xg-volume-small"
|
|
9065
9103
|
},
|
|
9066
9104
|
volumeLarge: {
|
|
9067
|
-
icon:
|
|
9105
|
+
icon: dd,
|
|
9068
9106
|
class: "xg-volume"
|
|
9069
9107
|
},
|
|
9070
9108
|
volumeMuted: {
|
|
9071
|
-
icon:
|
|
9109
|
+
icon: vd,
|
|
9072
9110
|
class: "xg-volume-mute"
|
|
9073
9111
|
}
|
|
9074
9112
|
};
|
|
@@ -9090,7 +9128,7 @@ var dl = /* @__PURE__ */ (function(a) {
|
|
|
9090
9128
|
pre: function(l) {
|
|
9091
9129
|
l.preventDefault(), l.stopPropagation();
|
|
9092
9130
|
}
|
|
9093
|
-
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), U.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(ju, this.onVolumeChange), this.once(
|
|
9131
|
+
}), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), U.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(ju, this.onVolumeChange), this.once(Be, this.onVolumeChange), f.typeOf(o) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
9094
9132
|
}
|
|
9095
9133
|
}
|
|
9096
9134
|
}, {
|
|
@@ -9197,7 +9235,7 @@ var dl = /* @__PURE__ */ (function(a) {
|
|
|
9197
9235
|
key: "defaultConfig",
|
|
9198
9236
|
get: function() {
|
|
9199
9237
|
return {
|
|
9200
|
-
position:
|
|
9238
|
+
position: Q.CONTROLS_RIGHT,
|
|
9201
9239
|
index: 1,
|
|
9202
9240
|
disable: !1,
|
|
9203
9241
|
showValueLabel: !1,
|
|
@@ -9210,7 +9248,7 @@ var dl = /* @__PURE__ */ (function(a) {
|
|
|
9210
9248
|
function le() {
|
|
9211
9249
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
9212
9250
|
}
|
|
9213
|
-
var
|
|
9251
|
+
var Ge = {
|
|
9214
9252
|
LOAD_START: "loadstart",
|
|
9215
9253
|
LOADED_DATA: "loadeddata",
|
|
9216
9254
|
FIRST_FRAME: "firstFrame",
|
|
@@ -9218,7 +9256,7 @@ var Ve = {
|
|
|
9218
9256
|
WAIT_END: "waitingEnd",
|
|
9219
9257
|
SEEK_START: "seekStart",
|
|
9220
9258
|
SEEK_END: "seekEnd"
|
|
9221
|
-
},
|
|
9259
|
+
}, pd = /* @__PURE__ */ (function(a) {
|
|
9222
9260
|
L(r, a);
|
|
9223
9261
|
var s = D(r);
|
|
9224
9262
|
function r() {
|
|
@@ -9239,13 +9277,13 @@ var Ve = {
|
|
|
9239
9277
|
isLs: !1
|
|
9240
9278
|
}, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = le(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(y(t), t._waitTimer), t._waittTimer && f.clearTimeout(y(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
|
|
9241
9279
|
}), _(y(t), "_onSeeking", function() {
|
|
9242
|
-
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = le(), t.emitLog(
|
|
9280
|
+
t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = le(), t.emitLog(Ge.SEEK_START, {
|
|
9243
9281
|
start: le()
|
|
9244
9282
|
}));
|
|
9245
9283
|
}), _(y(t), "_onSeeked", function() {
|
|
9246
9284
|
t.suspendSeekingStatus("seeked");
|
|
9247
9285
|
}), _(y(t), "_onWaitingLoadStart", function() {
|
|
9248
|
-
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = le(), t.fixedWaitingStart = le(), t._waitType = 1, t.emitLog(
|
|
9286
|
+
t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = le(), t.fixedWaitingStart = le(), t._waitType = 1, t.emitLog(Ge.WAIT_START, {
|
|
9249
9287
|
fixedStart: t.fixedWaitingStart,
|
|
9250
9288
|
start: t.waitingStart,
|
|
9251
9289
|
type: 1,
|
|
@@ -9253,7 +9291,7 @@ var Ve = {
|
|
|
9253
9291
|
}));
|
|
9254
9292
|
}), _(y(t), "_onWaiting", function() {
|
|
9255
9293
|
t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = le(), t._waitTimer = f.setTimeout(y(t), function() {
|
|
9256
|
-
t._isWaiting && (t.waitingStart = le(), f.clearTimeout(y(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(
|
|
9294
|
+
t._isWaiting && (t.waitingStart = le(), f.clearTimeout(y(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Ge.WAIT_START, {
|
|
9257
9295
|
fixedStart: t.fixedWaitingStart,
|
|
9258
9296
|
start: t.waitingStart,
|
|
9259
9297
|
type: t._waitType,
|
|
@@ -9272,16 +9310,16 @@ var Ve = {
|
|
|
9272
9310
|
var e = this;
|
|
9273
9311
|
this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = le(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ha, function() {
|
|
9274
9312
|
var i = e._state, n = i.autoplayStart, o = i.isFFSend;
|
|
9275
|
-
e.startCostTime = le() - e.newPointTime, V.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(
|
|
9276
|
-
}), this.on(
|
|
9313
|
+
e.startCostTime = le() - e.newPointTime, V.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(Ge.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = le(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
|
|
9314
|
+
}), this.on(Be, function() {
|
|
9277
9315
|
e.vt = le(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
9278
9316
|
var i = e._state, n = i.isTimeUpdate, o = i.isFFSend, u = i.autoplayStart;
|
|
9279
|
-
V.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || u) && e._sendFF("loadedData"), o || e.emitLog(
|
|
9280
|
-
}), this.on(_i, this._onSeeking), this.on(
|
|
9317
|
+
V.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || u) && e._sendFF("loadedData"), o || e.emitLog(Ge.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
9318
|
+
}), this.on(_i, this._onSeeking), this.on(Ne, this._onSeeked), this.on(pa, function() {
|
|
9281
9319
|
e.endState("destroy");
|
|
9282
9320
|
}), this.on(Ci, function() {
|
|
9283
9321
|
e.endState("urlChange"), V.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
9284
|
-
}), this.on([yi,
|
|
9322
|
+
}), this.on([yi, Fe], this._onPlaying), this.on(Ft, this._onWaiting), this.on(Mt, this._onError), this.on(ki, function() {
|
|
9285
9323
|
V.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
9286
9324
|
});
|
|
9287
9325
|
}
|
|
@@ -9295,7 +9333,7 @@ var Ve = {
|
|
|
9295
9333
|
value: function(e) {
|
|
9296
9334
|
this.s = le();
|
|
9297
9335
|
var i = this._state, n = i.isFFLoading, o = i.isFFSend;
|
|
9298
|
-
V.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!o)), this.vt > 0 && n && !o && (V.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(
|
|
9336
|
+
V.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!o)), this.vt > 0 && n && !o && (V.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ge.FIRST_FRAME, {
|
|
9299
9337
|
fvt: this.fvt,
|
|
9300
9338
|
costTime: this.fvt,
|
|
9301
9339
|
vt: this.vt,
|
|
@@ -9321,7 +9359,7 @@ var Ve = {
|
|
|
9321
9359
|
value: function(e) {
|
|
9322
9360
|
if (this.seekingStart) {
|
|
9323
9361
|
var i = le(), n = i - this.seekingStart;
|
|
9324
|
-
this.seekingStart = 0, this.emitLog(
|
|
9362
|
+
this.seekingStart = 0, this.emitLog(Ge.SEEK_END, {
|
|
9325
9363
|
end: i,
|
|
9326
9364
|
costTime: n,
|
|
9327
9365
|
endType: e
|
|
@@ -9333,7 +9371,7 @@ var Ve = {
|
|
|
9333
9371
|
value: function(e) {
|
|
9334
9372
|
if (this._waitTimer && (f.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (f.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
|
|
9335
9373
|
var i = le(), n = i - this.waitingStart, o = i - this.fixedWaitingStart, u = this.config.waitTimeout;
|
|
9336
|
-
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(
|
|
9374
|
+
this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Ge.WAIT_END, {
|
|
9337
9375
|
fixedCostTime: o > u ? u : o,
|
|
9338
9376
|
costTime: n > u ? u : n,
|
|
9339
9377
|
type: e === "loadeddata" ? 1 : this._waitType,
|
|
@@ -9369,13 +9407,13 @@ var Ve = {
|
|
|
9369
9407
|
}
|
|
9370
9408
|
}]), r;
|
|
9371
9409
|
})(W);
|
|
9372
|
-
function
|
|
9410
|
+
function md() {
|
|
9373
9411
|
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">
|
|
9374
9412
|
<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>
|
|
9375
9413
|
</svg>
|
|
9376
9414
|
`, "image/svg+xml").firstChild;
|
|
9377
9415
|
}
|
|
9378
|
-
var
|
|
9416
|
+
var yd = /* @__PURE__ */ (function(a) {
|
|
9379
9417
|
L(r, a);
|
|
9380
9418
|
var s = D(r);
|
|
9381
9419
|
function r() {
|
|
@@ -9385,7 +9423,7 @@ var pd = /* @__PURE__ */ (function(a) {
|
|
|
9385
9423
|
key: "registerIcons",
|
|
9386
9424
|
value: function() {
|
|
9387
9425
|
return {
|
|
9388
|
-
replay:
|
|
9426
|
+
replay: md
|
|
9389
9427
|
};
|
|
9390
9428
|
}
|
|
9391
9429
|
}, {
|
|
@@ -9458,7 +9496,7 @@ var pd = /* @__PURE__ */ (function(a) {
|
|
|
9458
9496
|
};
|
|
9459
9497
|
}
|
|
9460
9498
|
}]), r;
|
|
9461
|
-
})(W),
|
|
9499
|
+
})(W), _d = /* @__PURE__ */ (function(a) {
|
|
9462
9500
|
L(r, a);
|
|
9463
9501
|
var s = D(r);
|
|
9464
9502
|
function r() {
|
|
@@ -9576,7 +9614,7 @@ var pd = /* @__PURE__ */ (function(a) {
|
|
|
9576
9614
|
}
|
|
9577
9615
|
}]), r;
|
|
9578
9616
|
})(W), Ie = {};
|
|
9579
|
-
function
|
|
9617
|
+
function bd(a, s) {
|
|
9580
9618
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
9581
9619
|
start: null,
|
|
9582
9620
|
end: null
|
|
@@ -9594,7 +9632,7 @@ function iu(a) {
|
|
|
9594
9632
|
window.clearTimeout(Ie[s].id), delete Ie[s];
|
|
9595
9633
|
});
|
|
9596
9634
|
}
|
|
9597
|
-
var
|
|
9635
|
+
var Cd = /* @__PURE__ */ (function(a) {
|
|
9598
9636
|
L(r, a);
|
|
9599
9637
|
var s = D(r);
|
|
9600
9638
|
function r(t) {
|
|
@@ -9698,7 +9736,7 @@ var _d = /* @__PURE__ */ (function(a) {
|
|
|
9698
9736
|
key: "animate",
|
|
9699
9737
|
value: function(e) {
|
|
9700
9738
|
var i = this;
|
|
9701
|
-
this._animateId =
|
|
9739
|
+
this._animateId = bd("pauseplay", 400, {
|
|
9702
9740
|
start: function() {
|
|
9703
9741
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
9704
9742
|
},
|
|
@@ -9786,7 +9824,7 @@ var _d = /* @__PURE__ */ (function(a) {
|
|
|
9786
9824
|
};
|
|
9787
9825
|
}
|
|
9788
9826
|
}]), r;
|
|
9789
|
-
})(W),
|
|
9827
|
+
})(W), kd = /* @__PURE__ */ (function(a) {
|
|
9790
9828
|
L(r, a);
|
|
9791
9829
|
var s = D(r);
|
|
9792
9830
|
function r() {
|
|
@@ -9865,7 +9903,7 @@ var _d = /* @__PURE__ */ (function(a) {
|
|
|
9865
9903
|
key: "defaultConfig",
|
|
9866
9904
|
get: function() {
|
|
9867
9905
|
return {
|
|
9868
|
-
position:
|
|
9906
|
+
position: Q.CONTROLS_RIGHT,
|
|
9869
9907
|
index: 10
|
|
9870
9908
|
};
|
|
9871
9909
|
}
|
|
@@ -9876,7 +9914,7 @@ function ru(a) {
|
|
|
9876
9914
|
return r && s;
|
|
9877
9915
|
}
|
|
9878
9916
|
var Ca = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], gl = Ca.length;
|
|
9879
|
-
function
|
|
9917
|
+
function wd() {
|
|
9880
9918
|
for (var a = {
|
|
9881
9919
|
width: 0,
|
|
9882
9920
|
height: 0,
|
|
@@ -9890,15 +9928,15 @@ function Cd() {
|
|
|
9890
9928
|
}
|
|
9891
9929
|
return a;
|
|
9892
9930
|
}
|
|
9893
|
-
function
|
|
9931
|
+
function Td(a) {
|
|
9894
9932
|
var s = window.getComputedStyle(a);
|
|
9895
9933
|
return s;
|
|
9896
9934
|
}
|
|
9897
9935
|
function au(a) {
|
|
9898
9936
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || ue(a) !== "object" || !a.nodeType)) {
|
|
9899
|
-
var s =
|
|
9937
|
+
var s = Td(a);
|
|
9900
9938
|
if (s.display === "none")
|
|
9901
|
-
return
|
|
9939
|
+
return wd();
|
|
9902
9940
|
var r = {};
|
|
9903
9941
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
9904
9942
|
for (var t = r.isBorderBox = s.boxSizing === "border-box", e = 0; e < gl; e++) {
|
|
@@ -9926,7 +9964,7 @@ var Mr = {
|
|
|
9926
9964
|
mousedown: ["mousemove", "mouseup"],
|
|
9927
9965
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
9928
9966
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
9929
|
-
},
|
|
9967
|
+
}, Sd = /* @__PURE__ */ (function(a) {
|
|
9930
9968
|
L(r, a);
|
|
9931
9969
|
var s = D(r);
|
|
9932
9970
|
function r(t) {
|
|
@@ -10136,7 +10174,7 @@ var Mr = {
|
|
|
10136
10174
|
return parseInt(e, 10);
|
|
10137
10175
|
}
|
|
10138
10176
|
}]), r;
|
|
10139
|
-
})(Hu),
|
|
10177
|
+
})(Hu), Ed = /* @__PURE__ */ (function(a) {
|
|
10140
10178
|
L(r, a);
|
|
10141
10179
|
var s = D(r);
|
|
10142
10180
|
function r(t) {
|
|
@@ -10192,7 +10230,7 @@ var Mr = {
|
|
|
10192
10230
|
i.controls.registerPlugin(nu, o, nu.pluginName);
|
|
10193
10231
|
}
|
|
10194
10232
|
var u = f.checkTouchSupport() ? "touchend" : "click";
|
|
10195
|
-
this.bind(".mini-cancel-btn", u, this.onCancelClick), this.bind(".play-icon", u, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
10233
|
+
this.bind(".mini-cancel-btn", u, this.onCancelClick), this.bind(".play-icon", u, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Sd(this.player.root, {
|
|
10196
10234
|
handle: this.root
|
|
10197
10235
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
10198
10236
|
}
|
|
@@ -10421,7 +10459,7 @@ var Mr = {
|
|
|
10421
10459
|
return {};
|
|
10422
10460
|
}
|
|
10423
10461
|
}]), r;
|
|
10424
|
-
})(
|
|
10462
|
+
})(Ye), We = {
|
|
10425
10463
|
PRESS: "press",
|
|
10426
10464
|
PRESS_END: "pressend",
|
|
10427
10465
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -10429,12 +10467,12 @@ var Mr = {
|
|
|
10429
10467
|
TOUCH_MOVE: "touchmove",
|
|
10430
10468
|
TOUCH_START: "touchstart",
|
|
10431
10469
|
TOUCH_END: "touchend"
|
|
10432
|
-
},
|
|
10470
|
+
}, xd = {
|
|
10433
10471
|
start: "touchstart",
|
|
10434
10472
|
end: "touchend",
|
|
10435
10473
|
move: "touchmove",
|
|
10436
10474
|
cancel: "touchcancel"
|
|
10437
|
-
},
|
|
10475
|
+
}, Id = {
|
|
10438
10476
|
start: "mousedown",
|
|
10439
10477
|
end: "mouseup",
|
|
10440
10478
|
move: "mousemove",
|
|
@@ -10443,7 +10481,7 @@ var Mr = {
|
|
|
10443
10481
|
function ou(a) {
|
|
10444
10482
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
10445
10483
|
}
|
|
10446
|
-
function
|
|
10484
|
+
function Pd() {
|
|
10447
10485
|
return {
|
|
10448
10486
|
pressDelay: 600,
|
|
10449
10487
|
dbClickDelay: 200,
|
|
@@ -10453,30 +10491,30 @@ function xd() {
|
|
|
10453
10491
|
needPreventDefault: !0
|
|
10454
10492
|
};
|
|
10455
10493
|
}
|
|
10456
|
-
var
|
|
10494
|
+
var Ad = /* @__PURE__ */ (function() {
|
|
10457
10495
|
function a(s) {
|
|
10458
10496
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
10459
10497
|
eventType: "touch"
|
|
10460
10498
|
};
|
|
10461
10499
|
P(this, a), _(this, "onTouchStart", function(e) {
|
|
10462
10500
|
var i = r._pos, n = r.root, o = ou(e.touches);
|
|
10463
|
-
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(
|
|
10501
|
+
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(We.TOUCH_START, e);
|
|
10464
10502
|
}), _(this, "onTouchCancel", function(e) {
|
|
10465
10503
|
r.onTouchEnd(e);
|
|
10466
10504
|
}), _(this, "onTouchEnd", function(e) {
|
|
10467
10505
|
var i = r._pos, n = r.root;
|
|
10468
|
-
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(
|
|
10506
|
+
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(We.PRESS_END, e), r.trigger(We.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
10469
10507
|
}), _(this, "onTouchMove", function(e) {
|
|
10470
10508
|
var i = r._pos, n = r.config, o = ou(e.touches), u = o ? parseInt(o.pageX, 10) : e.pageX, l = o ? parseInt(o.pageY, 10) : e.pageX, c = u - i.x, h = l - i.y;
|
|
10471
|
-
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(
|
|
10509
|
+
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(We.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(We.TOUCH_MOVE, e));
|
|
10472
10510
|
}), this._pos = {
|
|
10473
10511
|
moving: !1,
|
|
10474
10512
|
start: !1,
|
|
10475
10513
|
x: 0,
|
|
10476
10514
|
y: 0
|
|
10477
|
-
}, this.config =
|
|
10515
|
+
}, this.config = Pd(), Object.keys(t).map(function(e) {
|
|
10478
10516
|
r.config[e] = t[e];
|
|
10479
|
-
}), this.root = s, this.events = t.eventType === "mouse" ?
|
|
10517
|
+
}), this.root = s, this.events = t.eventType === "mouse" ? Id : xd, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
10480
10518
|
}
|
|
10481
10519
|
return A(a, [{
|
|
10482
10520
|
key: "_initEvent",
|
|
@@ -10488,7 +10526,7 @@ var Id = /* @__PURE__ */ (function() {
|
|
|
10488
10526
|
value: function(r) {
|
|
10489
10527
|
var t = this, e = this.config;
|
|
10490
10528
|
this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
|
|
10491
|
-
t.trigger(
|
|
10529
|
+
t.trigger(We.PRESS, r), t._pos.press = !0, t.__clearPress();
|
|
10492
10530
|
}, e.pressDelay);
|
|
10493
10531
|
}
|
|
10494
10532
|
}, {
|
|
@@ -10501,11 +10539,11 @@ var Id = /* @__PURE__ */ (function() {
|
|
|
10501
10539
|
value: function(r) {
|
|
10502
10540
|
var t = this, e = this.config;
|
|
10503
10541
|
if (this.dbIntrvalId) {
|
|
10504
|
-
this.__clearDb(), this.trigger(
|
|
10542
|
+
this.__clearDb(), this.trigger(We.DOUBlE_CLICK, r);
|
|
10505
10543
|
return;
|
|
10506
10544
|
}
|
|
10507
10545
|
this.dbIntrvalId = setTimeout(function() {
|
|
10508
|
-
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(
|
|
10546
|
+
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(We.CLICK, r);
|
|
10509
10547
|
}, e.dbClickDelay);
|
|
10510
10548
|
}
|
|
10511
10549
|
}, {
|
|
@@ -10555,7 +10593,7 @@ var Id = /* @__PURE__ */ (function() {
|
|
|
10555
10593
|
}
|
|
10556
10594
|
}]), a;
|
|
10557
10595
|
})();
|
|
10558
|
-
function
|
|
10596
|
+
function Rd() {
|
|
10559
10597
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
10560
10598
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
10561
10599
|
<path opacity="0.54"
|
|
@@ -10568,7 +10606,7 @@ var ht = {
|
|
|
10568
10606
|
AUTO: "auto",
|
|
10569
10607
|
SEEKING: "seeking",
|
|
10570
10608
|
PLAYBACK: "playbackrate"
|
|
10571
|
-
}, Br = ["videoClick", "videoDbClick"],
|
|
10609
|
+
}, Br = ["videoClick", "videoDbClick"], Ld = /* @__PURE__ */ (function(a) {
|
|
10572
10610
|
L(r, a);
|
|
10573
10611
|
var s = D(r);
|
|
10574
10612
|
function r(t) {
|
|
@@ -10642,7 +10680,7 @@ var ht = {
|
|
|
10642
10680
|
value: function() {
|
|
10643
10681
|
return {
|
|
10644
10682
|
seekTipIcon: {
|
|
10645
|
-
icon:
|
|
10683
|
+
icon: Rd,
|
|
10646
10684
|
class: "xg-seek-pre"
|
|
10647
10685
|
}
|
|
10648
10686
|
};
|
|
@@ -10657,17 +10695,17 @@ var ht = {
|
|
|
10657
10695
|
var i = this.playerConfig, n = this.config, o = this.player;
|
|
10658
10696
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), o.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
10659
10697
|
var u = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
10660
|
-
this.touch = new
|
|
10698
|
+
this.touch = new Ad(this.root, {
|
|
10661
10699
|
eventType: u,
|
|
10662
10700
|
needPreventDefault: !this.config.disableGesture
|
|
10663
10701
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
10664
10702
|
d.preventDefault();
|
|
10665
10703
|
}), o.root.addEventListener("touchmove", this.onRootTouchMove, !0), o.root.addEventListener("touchend", this.onRootTouchEnd, !0), o.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
10666
10704
|
var l = this.player.controls;
|
|
10667
|
-
l && l.center && (l.center.addEventListener("touchmove", this.onRootTouchMove, !0), l.center.addEventListener("touchend", this.onRootTouchEnd, !0), l.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(
|
|
10705
|
+
l && l.center && (l.center.addEventListener("touchmove", this.onRootTouchMove, !0), l.center.addEventListener("touchend", this.onRootTouchEnd, !0), l.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Ue, function() {
|
|
10668
10706
|
var d = e.player, g = e.config;
|
|
10669
10707
|
d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
10670
|
-
}), this.on([
|
|
10708
|
+
}), this.on([Fe, at], function() {
|
|
10671
10709
|
var d = e.pos, g = d.time, v = d.isStart;
|
|
10672
10710
|
!v && g > 0 && (e.pos.time = 0);
|
|
10673
10711
|
});
|
|
@@ -11002,7 +11040,7 @@ var ht = {
|
|
|
11002
11040
|
}
|
|
11003
11041
|
}]), r;
|
|
11004
11042
|
})(W);
|
|
11005
|
-
function
|
|
11043
|
+
function Dd(a) {
|
|
11006
11044
|
a.preventDefault(), a.returnValue = !1;
|
|
11007
11045
|
}
|
|
11008
11046
|
function uu(a) {
|
|
@@ -11251,7 +11289,7 @@ var lu = /* @__PURE__ */ (function(a) {
|
|
|
11251
11289
|
isPress: n
|
|
11252
11290
|
}, this.keyCodeMap[o[u]]));
|
|
11253
11291
|
}
|
|
11254
|
-
|
|
11292
|
+
Dd(i), i.stopPropagation();
|
|
11255
11293
|
break;
|
|
11256
11294
|
}
|
|
11257
11295
|
}
|
|
@@ -11292,14 +11330,14 @@ var lu = /* @__PURE__ */ (function(a) {
|
|
|
11292
11330
|
};
|
|
11293
11331
|
}
|
|
11294
11332
|
}]), r;
|
|
11295
|
-
})(
|
|
11296
|
-
function
|
|
11333
|
+
})(Ye);
|
|
11334
|
+
function Od() {
|
|
11297
11335
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
11298
11336
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
11299
11337
|
</svg>
|
|
11300
11338
|
`, "image/svg+xml").firstChild;
|
|
11301
11339
|
}
|
|
11302
|
-
var
|
|
11340
|
+
var Md = /* @__PURE__ */ (function(a) {
|
|
11303
11341
|
L(r, a);
|
|
11304
11342
|
var s = D(r);
|
|
11305
11343
|
function r() {
|
|
@@ -11309,7 +11347,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
11309
11347
|
key: "registerIcons",
|
|
11310
11348
|
value: function() {
|
|
11311
11349
|
return {
|
|
11312
|
-
loadingIcon:
|
|
11350
|
+
loadingIcon: Od
|
|
11313
11351
|
};
|
|
11314
11352
|
}
|
|
11315
11353
|
}, {
|
|
@@ -11334,11 +11372,11 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
11334
11372
|
key: "defaultConfig",
|
|
11335
11373
|
get: function() {
|
|
11336
11374
|
return {
|
|
11337
|
-
position:
|
|
11375
|
+
position: Q.ROOT
|
|
11338
11376
|
};
|
|
11339
11377
|
}
|
|
11340
11378
|
}]), r;
|
|
11341
|
-
})(W),
|
|
11379
|
+
})(W), Fd = /* @__PURE__ */ (function(a) {
|
|
11342
11380
|
L(r, a);
|
|
11343
11381
|
var s = D(r);
|
|
11344
11382
|
function r() {
|
|
@@ -11394,7 +11432,7 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
11394
11432
|
return A(r, [{
|
|
11395
11433
|
key: "afterCreate",
|
|
11396
11434
|
value: function() {
|
|
11397
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
11435
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ue, this._onDurationChange), this.on(Be, this._onLoadedData), this.on(ye, this._onTimeupdate), this.on(_i, this._onSeeking), this.on(_e, this._onPlay);
|
|
11398
11436
|
}
|
|
11399
11437
|
}, {
|
|
11400
11438
|
key: "setConfig",
|
|
@@ -11475,8 +11513,8 @@ var Dd = /* @__PURE__ */ (function(a) {
|
|
|
11475
11513
|
};
|
|
11476
11514
|
}
|
|
11477
11515
|
}]), r;
|
|
11478
|
-
})(
|
|
11479
|
-
function
|
|
11516
|
+
})(Ye);
|
|
11517
|
+
function Nd() {
|
|
11480
11518
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
11481
11519
|
<g>
|
|
11482
11520
|
<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"/>
|
|
@@ -11490,7 +11528,7 @@ function Md() {
|
|
|
11490
11528
|
</svg>
|
|
11491
11529
|
`, "image/svg+xml").firstChild;
|
|
11492
11530
|
}
|
|
11493
|
-
var
|
|
11531
|
+
var Bd = /* @__PURE__ */ (function(a) {
|
|
11494
11532
|
L(r, a);
|
|
11495
11533
|
var s = D(r);
|
|
11496
11534
|
function r(t) {
|
|
@@ -11502,7 +11540,7 @@ var Fd = /* @__PURE__ */ (function(a) {
|
|
|
11502
11540
|
value: function() {
|
|
11503
11541
|
var e = this;
|
|
11504
11542
|
if (!this.config.disable) {
|
|
11505
|
-
N(O(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(
|
|
11543
|
+
N(O(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on($e, function() {
|
|
11506
11544
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
11507
11545
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
11508
11546
|
}, 100);
|
|
@@ -11553,7 +11591,7 @@ var Fd = /* @__PURE__ */ (function(a) {
|
|
|
11553
11591
|
key: "registerIcons",
|
|
11554
11592
|
value: function() {
|
|
11555
11593
|
return {
|
|
11556
|
-
rotate:
|
|
11594
|
+
rotate: Nd
|
|
11557
11595
|
};
|
|
11558
11596
|
}
|
|
11559
11597
|
}, {
|
|
@@ -11576,7 +11614,7 @@ var Fd = /* @__PURE__ */ (function(a) {
|
|
|
11576
11614
|
key: "defaultConfig",
|
|
11577
11615
|
get: function() {
|
|
11578
11616
|
return {
|
|
11579
|
-
position:
|
|
11617
|
+
position: Q.CONTROLS_RIGHT,
|
|
11580
11618
|
index: 6,
|
|
11581
11619
|
innerRotate: !0,
|
|
11582
11620
|
clockwise: !1,
|
|
@@ -11586,14 +11624,14 @@ var Fd = /* @__PURE__ */ (function(a) {
|
|
|
11586
11624
|
}
|
|
11587
11625
|
}]), r;
|
|
11588
11626
|
})(ot);
|
|
11589
|
-
function
|
|
11627
|
+
function Hd() {
|
|
11590
11628
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11591
11629
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
11592
11630
|
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"
|
|
11593
11631
|
fill="white" />
|
|
11594
11632
|
</svg>`, "image/svg+xml").firstChild;
|
|
11595
11633
|
}
|
|
11596
|
-
function
|
|
11634
|
+
function Ud() {
|
|
11597
11635
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11598
11636
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
11599
11637
|
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"
|
|
@@ -11607,7 +11645,7 @@ var dt = {
|
|
|
11607
11645
|
PIP: "picture-in-picture",
|
|
11608
11646
|
INLINE: "inline",
|
|
11609
11647
|
FULLSCREEN: "fullscreen"
|
|
11610
|
-
},
|
|
11648
|
+
}, jd = /* @__PURE__ */ (function(a) {
|
|
11611
11649
|
L(r, a);
|
|
11612
11650
|
var s = D(r);
|
|
11613
11651
|
function r() {
|
|
@@ -11647,11 +11685,11 @@ var dt = {
|
|
|
11647
11685
|
value: function() {
|
|
11648
11686
|
return {
|
|
11649
11687
|
pipIcon: {
|
|
11650
|
-
icon:
|
|
11688
|
+
icon: Hd,
|
|
11651
11689
|
class: "xg-get-pip"
|
|
11652
11690
|
},
|
|
11653
11691
|
pipIconExit: {
|
|
11654
|
-
icon:
|
|
11692
|
+
icon: Ud,
|
|
11655
11693
|
class: "xg-exit-pip"
|
|
11656
11694
|
}
|
|
11657
11695
|
};
|
|
@@ -11681,9 +11719,9 @@ var dt = {
|
|
|
11681
11719
|
}, {
|
|
11682
11720
|
key: "copyStyleIntoPiPWindow",
|
|
11683
11721
|
value: function(e) {
|
|
11684
|
-
var i =
|
|
11722
|
+
var i = Se(document.styleSheets).map(function(o) {
|
|
11685
11723
|
try {
|
|
11686
|
-
return
|
|
11724
|
+
return Se(o.cssRules).map(function(l) {
|
|
11687
11725
|
return l.cssText;
|
|
11688
11726
|
}).join("");
|
|
11689
11727
|
} catch {
|
|
@@ -11791,7 +11829,7 @@ var dt = {
|
|
|
11791
11829
|
key: "defaultConfig",
|
|
11792
11830
|
get: function() {
|
|
11793
11831
|
return {
|
|
11794
|
-
position:
|
|
11832
|
+
position: Q.CONTROLS_RIGHT,
|
|
11795
11833
|
index: 6,
|
|
11796
11834
|
showIcon: !1,
|
|
11797
11835
|
preferDocument: !1,
|
|
@@ -11808,13 +11846,13 @@ var dt = {
|
|
|
11808
11846
|
}
|
|
11809
11847
|
}]), r;
|
|
11810
11848
|
})(ot);
|
|
11811
|
-
function
|
|
11849
|
+
function zd() {
|
|
11812
11850
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
11813
11851
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
11814
11852
|
</svg>
|
|
11815
11853
|
`, "image/svg+xml").firstChild;
|
|
11816
11854
|
}
|
|
11817
|
-
var
|
|
11855
|
+
var Vd = /* @__PURE__ */ (function(a) {
|
|
11818
11856
|
L(r, a);
|
|
11819
11857
|
var s = D(r);
|
|
11820
11858
|
function r(t) {
|
|
@@ -11833,7 +11871,7 @@ var jd = /* @__PURE__ */ (function(a) {
|
|
|
11833
11871
|
key: "registerIcons",
|
|
11834
11872
|
value: function() {
|
|
11835
11873
|
return {
|
|
11836
|
-
playNext:
|
|
11874
|
+
playNext: zd
|
|
11837
11875
|
};
|
|
11838
11876
|
}
|
|
11839
11877
|
}, {
|
|
@@ -11875,7 +11913,7 @@ var jd = /* @__PURE__ */ (function(a) {
|
|
|
11875
11913
|
key: "defaultConfig",
|
|
11876
11914
|
get: function() {
|
|
11877
11915
|
return {
|
|
11878
|
-
position:
|
|
11916
|
+
position: Q.CONTROLS_LEFT,
|
|
11879
11917
|
index: 1,
|
|
11880
11918
|
url: null,
|
|
11881
11919
|
urlList: []
|
|
@@ -11883,7 +11921,7 @@ var jd = /* @__PURE__ */ (function(a) {
|
|
|
11883
11921
|
}
|
|
11884
11922
|
}]), r;
|
|
11885
11923
|
})(W);
|
|
11886
|
-
function
|
|
11924
|
+
function qd() {
|
|
11887
11925
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
11888
11926
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11889
11927
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -11993,7 +12031,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
11993
12031
|
setHeaders: function(s) {
|
|
11994
12032
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11995
12033
|
Object.entries(r).forEach(function(t) {
|
|
11996
|
-
var e =
|
|
12034
|
+
var e = ch(t, 2), i = e[0], n = e[1];
|
|
11997
12035
|
s.setRequestHeader(i, n);
|
|
11998
12036
|
});
|
|
11999
12037
|
},
|
|
@@ -12072,11 +12110,11 @@ function vl(a, s, r) {
|
|
|
12072
12110
|
De.downloadWithAnchor(C.target.result, e);
|
|
12073
12111
|
}, b.readAsDataURL(g), De.downloadWithIframe(g, e);
|
|
12074
12112
|
}
|
|
12075
|
-
function
|
|
12113
|
+
function Gd(a) {
|
|
12076
12114
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = ee(ee({}, ve), s), t = r.fileName || a.split("/").pop().split("?")[0] || "download";
|
|
12077
12115
|
return ci.downloadFromURL(a, t, r);
|
|
12078
12116
|
}
|
|
12079
|
-
var
|
|
12117
|
+
var Wd = /* @__PURE__ */ (function(a) {
|
|
12080
12118
|
L(r, a);
|
|
12081
12119
|
var s = D(r);
|
|
12082
12120
|
function r(t) {
|
|
@@ -12087,7 +12125,7 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12087
12125
|
var n = e.playerConfig.url, o = "";
|
|
12088
12126
|
f.typeOf(n) === "String" ? o = n : f.typeOf(n) === "Array" && n.length > 0 && (o = n[0].src);
|
|
12089
12127
|
var u = e.getAbsoluteURL(o);
|
|
12090
|
-
|
|
12128
|
+
Gd(u, Object.assign({}, e.config.saveAsOptions || {})), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
12091
12129
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
12092
12130
|
}, 300);
|
|
12093
12131
|
}
|
|
@@ -12106,7 +12144,7 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12106
12144
|
key: "registerIcons",
|
|
12107
12145
|
value: function() {
|
|
12108
12146
|
return {
|
|
12109
|
-
download:
|
|
12147
|
+
download: qd
|
|
12110
12148
|
};
|
|
12111
12149
|
}
|
|
12112
12150
|
}, {
|
|
@@ -12142,14 +12180,14 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12142
12180
|
key: "defaultConfig",
|
|
12143
12181
|
get: function() {
|
|
12144
12182
|
return {
|
|
12145
|
-
position:
|
|
12183
|
+
position: Q.CONTROLS_RIGHT,
|
|
12146
12184
|
index: 3,
|
|
12147
12185
|
disable: !0,
|
|
12148
12186
|
saveAsOptions: {}
|
|
12149
12187
|
};
|
|
12150
12188
|
}
|
|
12151
12189
|
}]), r;
|
|
12152
|
-
})(ot),
|
|
12190
|
+
})(ot), Kd = /* @__PURE__ */ (function(a) {
|
|
12153
12191
|
L(r, a);
|
|
12154
12192
|
var s = D(r);
|
|
12155
12193
|
function r() {
|
|
@@ -12167,7 +12205,7 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12167
12205
|
var e = this.config;
|
|
12168
12206
|
this.initSize = function(i) {
|
|
12169
12207
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
12170
|
-
}, this.once(
|
|
12208
|
+
}, this.once($e, this.initSize);
|
|
12171
12209
|
}
|
|
12172
12210
|
}, {
|
|
12173
12211
|
key: "onPluginsReady",
|
|
@@ -12237,7 +12275,7 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12237
12275
|
}, {
|
|
12238
12276
|
key: "destroy",
|
|
12239
12277
|
value: function() {
|
|
12240
|
-
N(O(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(
|
|
12278
|
+
N(O(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off($e, this.initSize);
|
|
12241
12279
|
}
|
|
12242
12280
|
}, {
|
|
12243
12281
|
key: "render",
|
|
@@ -12261,7 +12299,7 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12261
12299
|
key: "defaultConfig",
|
|
12262
12300
|
get: function() {
|
|
12263
12301
|
return {
|
|
12264
|
-
position:
|
|
12302
|
+
position: Q.CONTROLS_RIGHT,
|
|
12265
12303
|
index: 5,
|
|
12266
12304
|
quality: 0.92,
|
|
12267
12305
|
type: "image/png",
|
|
@@ -12275,7 +12313,7 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12275
12313
|
};
|
|
12276
12314
|
}
|
|
12277
12315
|
}]), r;
|
|
12278
|
-
})(ot),
|
|
12316
|
+
})(ot), $d = /* @__PURE__ */ (function() {
|
|
12279
12317
|
function a(s) {
|
|
12280
12318
|
P(this, a), this.config = s.config, this.parent = s.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), s.root.appendChild(this.root);
|
|
12281
12319
|
var r = this.config.maxHeight;
|
|
@@ -12355,8 +12393,8 @@ var qd = /* @__PURE__ */ (function(a) {
|
|
|
12355
12393
|
CLICK: "click",
|
|
12356
12394
|
HOVER: "hover"
|
|
12357
12395
|
};
|
|
12358
|
-
function
|
|
12359
|
-
return a === xe.SIDE ? s ===
|
|
12396
|
+
function Yd(a, s) {
|
|
12397
|
+
return a === xe.SIDE ? s === Q.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
12360
12398
|
}
|
|
12361
12399
|
var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
12362
12400
|
L(r, a);
|
|
@@ -12390,9 +12428,9 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12390
12428
|
key: "afterCreate",
|
|
12391
12429
|
value: function() {
|
|
12392
12430
|
var e = this, i = this.config;
|
|
12393
|
-
this.initIcons(), Qe = Qe || this.domEventType === "touch", Qe && U.device === "mobile" && i.listType === xe.DEFAULT && (i.listType = xe.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([
|
|
12431
|
+
this.initIcons(), Qe = Qe || this.domEventType === "touch", Qe && U.device === "mobile" && i.listType === xe.DEFAULT && (i.listType = xe.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([$e, Oe], function() {
|
|
12394
12432
|
e._resizeList();
|
|
12395
|
-
}), this.once(
|
|
12433
|
+
}), this.once(Fe, function() {
|
|
12396
12434
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
12397
12435
|
}), Qe && this.on(da, function() {
|
|
12398
12436
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
@@ -12469,7 +12507,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12469
12507
|
var c = {
|
|
12470
12508
|
config: {
|
|
12471
12509
|
data: e || [],
|
|
12472
|
-
className:
|
|
12510
|
+
className: Yd(o.listType, o.position),
|
|
12473
12511
|
onItemClick: function(m, p) {
|
|
12474
12512
|
n.onItemClick(m, p);
|
|
12475
12513
|
},
|
|
@@ -12479,7 +12517,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12479
12517
|
};
|
|
12480
12518
|
if (this.config.isShowIcon) {
|
|
12481
12519
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = o.listType === xe.MIDDLE ? d - 50 : d;
|
|
12482
|
-
g && o.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
12520
|
+
g && o.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new $d(c), this.changeCurrentText(), this.show();
|
|
12483
12521
|
}
|
|
12484
12522
|
this._resizeList();
|
|
12485
12523
|
}
|
|
@@ -12517,7 +12555,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12517
12555
|
key: "defaultConfig",
|
|
12518
12556
|
get: function() {
|
|
12519
12557
|
return {
|
|
12520
|
-
position:
|
|
12558
|
+
position: Q.CONTROLS_RIGHT,
|
|
12521
12559
|
index: 100,
|
|
12522
12560
|
list: [],
|
|
12523
12561
|
listType: "default",
|
|
@@ -12530,7 +12568,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12530
12568
|
};
|
|
12531
12569
|
}
|
|
12532
12570
|
}]), r;
|
|
12533
|
-
})(W),
|
|
12571
|
+
})(W), Xd = /* @__PURE__ */ (function(a) {
|
|
12534
12572
|
L(r, a);
|
|
12535
12573
|
var s = D(r);
|
|
12536
12574
|
function r(t) {
|
|
@@ -12620,7 +12658,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12620
12658
|
key: "defaultConfig",
|
|
12621
12659
|
get: function() {
|
|
12622
12660
|
return ee(ee({}, fi.defaultConfig), {}, {
|
|
12623
|
-
position:
|
|
12661
|
+
position: Q.CONTROLS_RIGHT,
|
|
12624
12662
|
index: 3,
|
|
12625
12663
|
list: [],
|
|
12626
12664
|
defaultDefinition: "",
|
|
@@ -12631,7 +12669,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12631
12669
|
});
|
|
12632
12670
|
}
|
|
12633
12671
|
}]), r;
|
|
12634
|
-
})(fi),
|
|
12672
|
+
})(fi), Zd = /* @__PURE__ */ (function(a) {
|
|
12635
12673
|
L(r, a);
|
|
12636
12674
|
var s = D(r);
|
|
12637
12675
|
function r(t) {
|
|
@@ -12714,7 +12752,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12714
12752
|
key: "defaultConfig",
|
|
12715
12753
|
get: function() {
|
|
12716
12754
|
return ee(ee({}, fi.defaultConfig), {}, {
|
|
12717
|
-
position:
|
|
12755
|
+
position: Q.CONTROLS_RIGHT,
|
|
12718
12756
|
index: 4,
|
|
12719
12757
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
12720
12758
|
className: "xgplayer-playbackrate",
|
|
@@ -12723,7 +12761,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12723
12761
|
});
|
|
12724
12762
|
}
|
|
12725
12763
|
}]), r;
|
|
12726
|
-
})(fi),
|
|
12764
|
+
})(fi), Jd = /* @__PURE__ */ (function(a) {
|
|
12727
12765
|
L(r, a);
|
|
12728
12766
|
var s = D(r);
|
|
12729
12767
|
function r() {
|
|
@@ -12784,7 +12822,7 @@ var Qe = U.device === "mobile", fi = /* @__PURE__ */ (function(a) {
|
|
|
12784
12822
|
return "error";
|
|
12785
12823
|
}
|
|
12786
12824
|
}]), r;
|
|
12787
|
-
})(W),
|
|
12825
|
+
})(W), Qd = /* @__PURE__ */ (function(a) {
|
|
12788
12826
|
L(r, a);
|
|
12789
12827
|
var s = D(r);
|
|
12790
12828
|
function r() {
|
|
@@ -13014,7 +13052,7 @@ var fu = {
|
|
|
13014
13052
|
return r.find('xg-spot[data-id="'.concat(s, '"]'));
|
|
13015
13053
|
}
|
|
13016
13054
|
};
|
|
13017
|
-
function
|
|
13055
|
+
function eg(a) {
|
|
13018
13056
|
var s = a.config, r = a.player;
|
|
13019
13057
|
Object.keys(fu).map(function(e) {
|
|
13020
13058
|
a[e] = fu[e].bind(a);
|
|
@@ -13025,9 +13063,9 @@ function Jd(a) {
|
|
|
13025
13063
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
13026
13064
|
left: r.sizeInfo.left,
|
|
13027
13065
|
width: r.sizeInfo.width
|
|
13028
|
-
}, a.on(
|
|
13066
|
+
}, a.on(Ue, function() {
|
|
13029
13067
|
a.ispotsInit ? a.updateDuration() : a.initDots();
|
|
13030
|
-
}), a.on(
|
|
13068
|
+
}), a.on($e, function() {
|
|
13031
13069
|
a.positionDots();
|
|
13032
13070
|
});
|
|
13033
13071
|
}
|
|
@@ -13038,7 +13076,7 @@ var vt = {
|
|
|
13038
13076
|
click: "onProgressClick",
|
|
13039
13077
|
mouseover: "onProgressMouseOver",
|
|
13040
13078
|
mouseenter: "onProgressMouseOver"
|
|
13041
|
-
},
|
|
13079
|
+
}, tg = /* @__PURE__ */ (function(a) {
|
|
13042
13080
|
L(r, a);
|
|
13043
13081
|
var s = D(r);
|
|
13044
13082
|
function r(t) {
|
|
@@ -13089,7 +13127,7 @@ var vt = {
|
|
|
13089
13127
|
n.seekTime && e.player.seek(n.seekTime);
|
|
13090
13128
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
13091
13129
|
e.setTimeContent(f.format(i));
|
|
13092
|
-
}),
|
|
13130
|
+
}), eg(this), this.on(Ue, function() {
|
|
13093
13131
|
e.show();
|
|
13094
13132
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
13095
13133
|
}
|
|
@@ -13313,7 +13351,7 @@ var vt = {
|
|
|
13313
13351
|
};
|
|
13314
13352
|
}
|
|
13315
13353
|
}]), r;
|
|
13316
|
-
})(W),
|
|
13354
|
+
})(W), ig = /* @__PURE__ */ (function(a) {
|
|
13317
13355
|
L(r, a);
|
|
13318
13356
|
var s = D(r);
|
|
13319
13357
|
function r(t) {
|
|
@@ -13324,7 +13362,7 @@ var vt = {
|
|
|
13324
13362
|
key: "afterCreate",
|
|
13325
13363
|
value: function() {
|
|
13326
13364
|
var e = this;
|
|
13327
|
-
this.usable && this.initThumbnail(), this.on([
|
|
13365
|
+
this.usable && this.initThumbnail(), this.on([Ue], function() {
|
|
13328
13366
|
var i = e.config, n = i.pic_num, o = i.interval;
|
|
13329
13367
|
e.usable && (e.interval = o > 0 ? o : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
13330
13368
|
});
|
|
@@ -13450,7 +13488,7 @@ var vt = {
|
|
|
13450
13488
|
function Hr(a) {
|
|
13451
13489
|
return a ? "background:".concat(a, ";") : "";
|
|
13452
13490
|
}
|
|
13453
|
-
var
|
|
13491
|
+
var ng = /* @__PURE__ */ (function(a) {
|
|
13454
13492
|
L(r, a);
|
|
13455
13493
|
var s = D(r);
|
|
13456
13494
|
function r() {
|
|
@@ -13537,14 +13575,14 @@ var tg = /* @__PURE__ */ (function(a) {
|
|
|
13537
13575
|
FIRST_FRAME: "firstframe",
|
|
13538
13576
|
POSTER: "poster"
|
|
13539
13577
|
};
|
|
13540
|
-
function
|
|
13578
|
+
function rg() {
|
|
13541
13579
|
try {
|
|
13542
13580
|
return parseInt(window.performance.now(), 10);
|
|
13543
13581
|
} catch {
|
|
13544
13582
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
13545
13583
|
}
|
|
13546
13584
|
}
|
|
13547
|
-
function
|
|
13585
|
+
function ag() {
|
|
13548
13586
|
try {
|
|
13549
13587
|
var a = document.createElement("canvas").getContext;
|
|
13550
13588
|
return !!a;
|
|
@@ -13552,7 +13590,7 @@ function ng() {
|
|
|
13552
13590
|
return !1;
|
|
13553
13591
|
}
|
|
13554
13592
|
}
|
|
13555
|
-
var Xt = null,
|
|
13593
|
+
var Xt = null, sg = /* @__PURE__ */ (function(a) {
|
|
13556
13594
|
L(r, a);
|
|
13557
13595
|
var s = D(r);
|
|
13558
13596
|
function r() {
|
|
@@ -13573,7 +13611,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
13573
13611
|
!t.player.paused && t._checkIfCanStart() && t.start(0, u);
|
|
13574
13612
|
}
|
|
13575
13613
|
}), _(y(t), "start", function(o, u) {
|
|
13576
|
-
var l = t.player.video, c =
|
|
13614
|
+
var l = t.player.video, c = rg(), h = t.checkVideoIsSupport(l);
|
|
13577
13615
|
!h || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode === pt.REAL_TIME || c - t.preTime >= u) && (l && l.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(y(t), t.start, u) : f.requestAnimationFrame(t.start));
|
|
13578
13616
|
}), _(y(t), "stop", function() {
|
|
13579
13617
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(y(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -13602,7 +13640,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
13602
13640
|
e._checkIfCanStart() && e.start(0, l);
|
|
13603
13641
|
}), this.on(_t, function() {
|
|
13604
13642
|
e.stop();
|
|
13605
|
-
})), this.on(
|
|
13643
|
+
})), this.on(Be, this.onLoadedData), this.on(ha, function() {
|
|
13606
13644
|
e._isLoaded = !1, e.stop();
|
|
13607
13645
|
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
13608
13646
|
}
|
|
@@ -13746,7 +13784,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
13746
13784
|
}, {
|
|
13747
13785
|
key: "isSupport",
|
|
13748
13786
|
get: function() {
|
|
13749
|
-
return typeof Xt == "boolean" || (Xt =
|
|
13787
|
+
return typeof Xt == "boolean" || (Xt = ag()), Xt;
|
|
13750
13788
|
}
|
|
13751
13789
|
}, {
|
|
13752
13790
|
key: "supportCanvasFilter",
|
|
@@ -13754,7 +13792,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
13754
13792
|
return !(U.browser === "safari" || U.browser === "firefox");
|
|
13755
13793
|
}
|
|
13756
13794
|
}]), r;
|
|
13757
|
-
})(W),
|
|
13795
|
+
})(W), og = {
|
|
13758
13796
|
LANG: "zh-cn",
|
|
13759
13797
|
TEXT: {
|
|
13760
13798
|
ERROR_TYPES: {
|
|
@@ -13830,7 +13868,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
13830
13868
|
FORWARD: "快进中",
|
|
13831
13869
|
LIVE_TIP: "直播"
|
|
13832
13870
|
}
|
|
13833
|
-
}, St = "info", Ur = il,
|
|
13871
|
+
}, St = "info", Ur = il, ug = /* @__PURE__ */ (function(a) {
|
|
13834
13872
|
L(r, a);
|
|
13835
13873
|
var s = D(r);
|
|
13836
13874
|
function r() {
|
|
@@ -13974,7 +14012,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
13974
14012
|
return {};
|
|
13975
14013
|
}
|
|
13976
14014
|
}]), r;
|
|
13977
|
-
})(
|
|
14015
|
+
})(Ye), ml = /* @__PURE__ */ (function(a) {
|
|
13978
14016
|
L(r, a);
|
|
13979
14017
|
var s = D(r);
|
|
13980
14018
|
function r() {
|
|
@@ -14064,7 +14102,7 @@ var Xt = null, rg = /* @__PURE__ */ (function(a) {
|
|
|
14064
14102
|
}]), r;
|
|
14065
14103
|
})(W);
|
|
14066
14104
|
ml.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
14067
|
-
var
|
|
14105
|
+
var lg = /* @__PURE__ */ (function(a) {
|
|
14068
14106
|
L(r, a);
|
|
14069
14107
|
var s = D(r);
|
|
14070
14108
|
function r() {
|
|
@@ -14088,7 +14126,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
14088
14126
|
key: "afterCreate",
|
|
14089
14127
|
value: function() {
|
|
14090
14128
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, o = i.jumpSize;
|
|
14091
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Ft, this.onWaiting), this.on([yi,
|
|
14129
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Ft, this.onWaiting), this.on([yi, Fe], function() {
|
|
14092
14130
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
14093
14131
|
}), this.on(_e, function() {
|
|
14094
14132
|
e.hasPlayed = !0;
|
|
@@ -14110,7 +14148,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
14110
14148
|
};
|
|
14111
14149
|
}
|
|
14112
14150
|
}]), r;
|
|
14113
|
-
})(W), mt = "cdn", Zt = ["cdn"],
|
|
14151
|
+
})(W), mt = "cdn", Zt = ["cdn"], cg = /* @__PURE__ */ (function(a) {
|
|
14114
14152
|
L(r, a);
|
|
14115
14153
|
var s = D(r);
|
|
14116
14154
|
function r() {
|
|
@@ -14186,7 +14224,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
14186
14224
|
key: "afterCreate",
|
|
14187
14225
|
value: function() {
|
|
14188
14226
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
14189
|
-
(n == null ? void 0 : n.length) > 0 && Zt.push.apply(Zt,
|
|
14227
|
+
(n == null ? void 0 : n.length) > 0 && Zt.push.apply(Zt, Se(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Be, ii], this.startTimer);
|
|
14190
14228
|
}
|
|
14191
14229
|
}, {
|
|
14192
14230
|
key: "getSpeedName",
|
|
@@ -14213,7 +14251,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
14213
14251
|
key: "destroy",
|
|
14214
14252
|
value: function() {
|
|
14215
14253
|
var e = this;
|
|
14216
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([
|
|
14254
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Be, ii], this.startTimer), Zt.forEach(function(i) {
|
|
14217
14255
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
14218
14256
|
}), 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);
|
|
14219
14257
|
}
|
|
@@ -14236,7 +14274,7 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
14236
14274
|
};
|
|
14237
14275
|
}
|
|
14238
14276
|
}]), r;
|
|
14239
|
-
})(W),
|
|
14277
|
+
})(W), fg = /* @__PURE__ */ (function(a) {
|
|
14240
14278
|
L(r, a);
|
|
14241
14279
|
var s = D(r);
|
|
14242
14280
|
function r() {
|
|
@@ -14346,25 +14384,25 @@ var og = /* @__PURE__ */ (function(a) {
|
|
|
14346
14384
|
}
|
|
14347
14385
|
}]), r;
|
|
14348
14386
|
})(W);
|
|
14349
|
-
yt.use(
|
|
14350
|
-
var
|
|
14387
|
+
yt.use(og);
|
|
14388
|
+
var hg = /* @__PURE__ */ A(function a(s, r) {
|
|
14351
14389
|
var t, e, i;
|
|
14352
14390
|
P(this, a);
|
|
14353
|
-
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, u = o ? [] : [
|
|
14354
|
-
this.plugins = [
|
|
14391
|
+
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, u = o ? [] : [Fd, fl, ng, tg, hl], l = [].concat(u, [cl, ll, Bd, Vd, Xd, Zd, Wd, Kd, dl, jd]), c = [yd, _d, Cd, Md, kd, Jd, Qd, ig, Ed];
|
|
14392
|
+
this.plugins = [ug, pd].concat(Se(l), c, [ml, lg]);
|
|
14355
14393
|
var h = n ? "mobile" : U.device;
|
|
14356
14394
|
switch (h) {
|
|
14357
14395
|
case "pc":
|
|
14358
|
-
(t = this.plugins).push.apply(t, [lu, Nr, $r,
|
|
14396
|
+
(t = this.plugins).push.apply(t, [lu, Nr, $r, cg, fg]);
|
|
14359
14397
|
break;
|
|
14360
14398
|
case "mobile":
|
|
14361
|
-
(e = this.plugins).push.apply(e, [
|
|
14399
|
+
(e = this.plugins).push.apply(e, [Ld]);
|
|
14362
14400
|
break;
|
|
14363
14401
|
default:
|
|
14364
14402
|
(i = this.plugins).push.apply(i, [lu, Nr, $r]);
|
|
14365
14403
|
}
|
|
14366
|
-
(U.os.isIpad || h === "pc") && this.plugins.push(
|
|
14367
|
-
}),
|
|
14404
|
+
(U.os.isIpad || h === "pc") && this.plugins.push(sg), U.os.isIpad && this.plugins.push(Nr), this.ignores = [], this.i18n = [];
|
|
14405
|
+
}), se = /* @__PURE__ */ (function(a) {
|
|
14368
14406
|
L(r, a);
|
|
14369
14407
|
var s = D(r);
|
|
14370
14408
|
function r() {
|
|
@@ -14372,23 +14410,23 @@ var cg = /* @__PURE__ */ A(function a(s, r) {
|
|
|
14372
14410
|
}
|
|
14373
14411
|
return A(r);
|
|
14374
14412
|
})(wi);
|
|
14375
|
-
_(
|
|
14376
|
-
_(
|
|
14377
|
-
_(
|
|
14378
|
-
_(
|
|
14379
|
-
_(
|
|
14380
|
-
_(
|
|
14381
|
-
_(
|
|
14382
|
-
_(
|
|
14383
|
-
_(
|
|
14384
|
-
_(
|
|
14385
|
-
_(
|
|
14386
|
-
_(
|
|
14387
|
-
_(
|
|
14388
|
-
_(
|
|
14389
|
-
_(
|
|
14390
|
-
_(
|
|
14391
|
-
const
|
|
14413
|
+
_(se, "defaultPreset", hg);
|
|
14414
|
+
_(se, "Util", f);
|
|
14415
|
+
_(se, "Sniffer", U);
|
|
14416
|
+
_(se, "Errors", ti);
|
|
14417
|
+
_(se, "Events", Nh);
|
|
14418
|
+
_(se, "Plugin", W);
|
|
14419
|
+
_(se, "BasePlugin", Ye);
|
|
14420
|
+
_(se, "I18N", yt);
|
|
14421
|
+
_(se, "STATE_CLASS", w);
|
|
14422
|
+
_(se, "InstManager", ul);
|
|
14423
|
+
_(se, "PlayIcon", cl);
|
|
14424
|
+
_(se, "TimeIcon", hl);
|
|
14425
|
+
_(se, "Progress", fl);
|
|
14426
|
+
_(se, "FullscreenIcon", ll);
|
|
14427
|
+
_(se, "CssFullscreenIcon", $r);
|
|
14428
|
+
_(se, "VolumeIcon", dl);
|
|
14429
|
+
const dg = ["id"], gg = /* @__PURE__ */ we({
|
|
14392
14430
|
name: "ElImageViewer",
|
|
14393
14431
|
__name: "Player",
|
|
14394
14432
|
props: /* @__PURE__ */ At({
|
|
@@ -14417,7 +14455,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14417
14455
|
}, ["update:modelValue"]),
|
|
14418
14456
|
setup(a, { emit: s }) {
|
|
14419
14457
|
let r = null;
|
|
14420
|
-
const t = a, { cLoadUrl: e } = yu(t), i =
|
|
14458
|
+
const t = a, { cLoadUrl: e } = yu(t), i = J(() => Rt(e.value, t.url)), n = {
|
|
14421
14459
|
width: "100%",
|
|
14422
14460
|
height: "100%",
|
|
14423
14461
|
// 是否自动播放
|
|
@@ -14435,7 +14473,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14435
14473
|
poster: "",
|
|
14436
14474
|
lang: "zh-CN",
|
|
14437
14475
|
screenShot: !0
|
|
14438
|
-
}, o =
|
|
14476
|
+
}, o = J(() => ({
|
|
14439
14477
|
...n,
|
|
14440
14478
|
...t.config
|
|
14441
14479
|
})), u = s, l = Yr(a, "modelValue"), c = gu(), h = vu("image-viewer");
|
|
@@ -14444,7 +14482,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14444
14482
|
}
|
|
14445
14483
|
return ei(() => l.value, (g) => {
|
|
14446
14484
|
g && Xr(() => {
|
|
14447
|
-
r = new
|
|
14485
|
+
r = new se({
|
|
14448
14486
|
id: c,
|
|
14449
14487
|
url: i.value,
|
|
14450
14488
|
...o.value
|
|
@@ -14452,7 +14490,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14452
14490
|
});
|
|
14453
14491
|
}), (g, v) => {
|
|
14454
14492
|
const m = Zr("el-icon");
|
|
14455
|
-
return l.value ? (I(),
|
|
14493
|
+
return l.value ? (I(), ae(hu, {
|
|
14456
14494
|
key: 0,
|
|
14457
14495
|
to: "body"
|
|
14458
14496
|
}, [
|
|
@@ -14460,20 +14498,20 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14460
14498
|
name: "viewer-fade",
|
|
14461
14499
|
appear: ""
|
|
14462
14500
|
}, {
|
|
14463
|
-
default:
|
|
14501
|
+
default: ie(() => [
|
|
14464
14502
|
S(
|
|
14465
14503
|
"div",
|
|
14466
14504
|
{
|
|
14467
14505
|
ref: "wrapper",
|
|
14468
14506
|
tabindex: -1,
|
|
14469
|
-
class:
|
|
14507
|
+
class: ne(E(h).e("wrapper")),
|
|
14470
14508
|
style: ce({ zIndex: a.zIndex })
|
|
14471
14509
|
},
|
|
14472
14510
|
[
|
|
14473
14511
|
S(
|
|
14474
14512
|
"div",
|
|
14475
14513
|
{
|
|
14476
|
-
class:
|
|
14514
|
+
class: ne(E(h).e("mask"))
|
|
14477
14515
|
},
|
|
14478
14516
|
null,
|
|
14479
14517
|
2
|
|
@@ -14483,20 +14521,20 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14483
14521
|
S(
|
|
14484
14522
|
"div",
|
|
14485
14523
|
{
|
|
14486
|
-
class:
|
|
14524
|
+
class: ne(E(h).e("canvas"))
|
|
14487
14525
|
},
|
|
14488
14526
|
[
|
|
14489
|
-
S("div", { id: E(c) }, null, 8,
|
|
14527
|
+
S("div", { id: E(c) }, null, 8, dg),
|
|
14490
14528
|
X(" CLOSE "),
|
|
14491
14529
|
S(
|
|
14492
14530
|
"span",
|
|
14493
14531
|
{
|
|
14494
|
-
class:
|
|
14532
|
+
class: ne([E(h).e("btn"), E(h).e("close")]),
|
|
14495
14533
|
onClick: d
|
|
14496
14534
|
},
|
|
14497
14535
|
[
|
|
14498
14536
|
Y(m, { onClick: d }, {
|
|
14499
|
-
default:
|
|
14537
|
+
default: ie(() => [
|
|
14500
14538
|
Y(E(pu))
|
|
14501
14539
|
]),
|
|
14502
14540
|
_: 1
|
|
@@ -14510,7 +14548,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14510
14548
|
2
|
|
14511
14549
|
/* CLASS */
|
|
14512
14550
|
),
|
|
14513
|
-
|
|
14551
|
+
Me(g.$slots, "default", {}, void 0, !0)
|
|
14514
14552
|
],
|
|
14515
14553
|
6
|
|
14516
14554
|
/* CLASS, STYLE */
|
|
@@ -14522,18 +14560,18 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14522
14560
|
])) : X("v-if", !0);
|
|
14523
14561
|
};
|
|
14524
14562
|
}
|
|
14525
|
-
}),
|
|
14563
|
+
}), vg = /* @__PURE__ */ Jr(gg, [["__scopeId", "data-v-b301aa7d"]]), pg = He(vg), mg = ["onClick"], yg = {
|
|
14526
14564
|
class: "flex align-center",
|
|
14527
14565
|
style: { width: "100%" }
|
|
14528
|
-
},
|
|
14566
|
+
}, _g = { class: "fileName simple" }, bg = {
|
|
14529
14567
|
key: 0,
|
|
14530
14568
|
class: "size",
|
|
14531
14569
|
style: { "padding-right": "20px", "white-space": "nowrap" }
|
|
14532
|
-
},
|
|
14570
|
+
}, Cg = ["onClick"], kg = { class: "file-list" }, wg = { class: "fileName simple" }, Tg = {
|
|
14533
14571
|
key: 0,
|
|
14534
14572
|
class: "size",
|
|
14535
14573
|
style: { "padding-right": "20px", "white-space": "nowrap" }
|
|
14536
|
-
},
|
|
14574
|
+
}, Sg = ["onClick"], Eg = { class: "text" }, xg = { class: "fileName" }, Ig = { class: "size" }, Pg = /* @__PURE__ */ we({
|
|
14537
14575
|
__name: "IkPreviewFile",
|
|
14538
14576
|
props: {
|
|
14539
14577
|
list: {
|
|
@@ -14634,7 +14672,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14634
14672
|
},
|
|
14635
14673
|
emits: ["handPreview", "download", "close"],
|
|
14636
14674
|
setup(a, { emit: s }) {
|
|
14637
|
-
const r = a, t =
|
|
14675
|
+
const r = a, t = J(() => r.simple ? "simple" : r.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: n } = yu(r), o = s, u = J(() => ({
|
|
14638
14676
|
name: "name",
|
|
14639
14677
|
url: "url",
|
|
14640
14678
|
suffix: "suffix",
|
|
@@ -14660,7 +14698,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14660
14698
|
);
|
|
14661
14699
|
}, g = (p) => {
|
|
14662
14700
|
o("close", p);
|
|
14663
|
-
}, v =
|
|
14701
|
+
}, v = J(() => jr.isNumber(r.width) ? `${r.width}px` : r.width), m = J(() => r.list.map((p) => {
|
|
14664
14702
|
var b;
|
|
14665
14703
|
const k = p[u.value.name] || p.attachmentName;
|
|
14666
14704
|
return {
|
|
@@ -14673,16 +14711,16 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14673
14711
|
return (p, k) => {
|
|
14674
14712
|
var b, C, R;
|
|
14675
14713
|
return I(), H(
|
|
14676
|
-
|
|
14714
|
+
Te,
|
|
14677
14715
|
null,
|
|
14678
14716
|
[
|
|
14679
14717
|
(b = a.list) != null && b.length ? (I(), H(
|
|
14680
|
-
|
|
14718
|
+
Te,
|
|
14681
14719
|
{ key: 0 },
|
|
14682
14720
|
[
|
|
14683
14721
|
X(" 简单模式 "),
|
|
14684
14722
|
t.value === "simple" ? (I(!0), H(
|
|
14685
|
-
|
|
14723
|
+
Te,
|
|
14686
14724
|
{ key: 0 },
|
|
14687
14725
|
Jt(m.value, (T, x) => (I(), H("div", {
|
|
14688
14726
|
class: "iking-privew-annex simple",
|
|
@@ -14690,17 +14728,17 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14690
14728
|
onClick: (j) => h(T),
|
|
14691
14729
|
style: ce({ width: v.value })
|
|
14692
14730
|
}, [
|
|
14693
|
-
S("div",
|
|
14731
|
+
S("div", yg, [
|
|
14694
14732
|
S(
|
|
14695
14733
|
"div",
|
|
14696
|
-
|
|
14734
|
+
_g,
|
|
14697
14735
|
Pe(T.name),
|
|
14698
14736
|
1
|
|
14699
14737
|
/* TEXT */
|
|
14700
14738
|
),
|
|
14701
14739
|
a.showFileSize ? (I(), H(
|
|
14702
14740
|
"div",
|
|
14703
|
-
|
|
14741
|
+
bg,
|
|
14704
14742
|
Pe(T.size ? `(${E(Si)(T.size)})` : ""),
|
|
14705
14743
|
1
|
|
14706
14744
|
/* TEXT */
|
|
@@ -14709,38 +14747,38 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14709
14747
|
S(
|
|
14710
14748
|
"div",
|
|
14711
14749
|
{
|
|
14712
|
-
class:
|
|
14750
|
+
class: ne(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
14713
14751
|
},
|
|
14714
14752
|
[
|
|
14715
|
-
a.showDownloadBtn ? (I(),
|
|
14753
|
+
a.showDownloadBtn ? (I(), ae(E(tt), {
|
|
14716
14754
|
key: 0,
|
|
14717
14755
|
name: "iksvg_daochu",
|
|
14718
14756
|
onClick: et((j) => d(T), ["stop"]),
|
|
14719
14757
|
size: 20
|
|
14720
14758
|
}, null, 8, ["onClick"])) : X("v-if", !0),
|
|
14721
|
-
E(n).includes(T.suffix) && a.showPreviewBtn ? (I(),
|
|
14759
|
+
E(n).includes(T.suffix) && a.showPreviewBtn ? (I(), ae(E(tt), {
|
|
14722
14760
|
key: 1,
|
|
14723
14761
|
name: "iksvg_yulan",
|
|
14724
14762
|
size: 20,
|
|
14725
14763
|
onClick: et((j) => h(T), ["stop"])
|
|
14726
14764
|
}, null, 8, ["onClick"])) : X("v-if", !0),
|
|
14727
|
-
|
|
14765
|
+
Me(p.$slots, "operation", {
|
|
14728
14766
|
data: { ...T, findex: x }
|
|
14729
14767
|
})
|
|
14730
14768
|
],
|
|
14731
14769
|
2
|
|
14732
14770
|
/* CLASS */
|
|
14733
14771
|
)
|
|
14734
|
-
], 12,
|
|
14772
|
+
], 12, mg))),
|
|
14735
14773
|
128
|
|
14736
14774
|
/* KEYED_FRAGMENT */
|
|
14737
14775
|
)) : t.value === "simple-icon" ? (I(), H(
|
|
14738
|
-
|
|
14776
|
+
Te,
|
|
14739
14777
|
{ key: 1 },
|
|
14740
14778
|
[
|
|
14741
14779
|
X(" 简单图标模式 "),
|
|
14742
14780
|
(I(!0), H(
|
|
14743
|
-
|
|
14781
|
+
Te,
|
|
14744
14782
|
null,
|
|
14745
14783
|
Jt(m.value, (T, x) => (I(), H("div", {
|
|
14746
14784
|
class: "iking-privew-annex simple-icon",
|
|
@@ -14748,7 +14786,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14748
14786
|
onClick: (j) => h(T),
|
|
14749
14787
|
style: ce({ width: v.value })
|
|
14750
14788
|
}, [
|
|
14751
|
-
S("div",
|
|
14789
|
+
S("div", kg, [
|
|
14752
14790
|
X(" 若为默认40,则simple-icon设置为20,否则设置为iconSize "),
|
|
14753
14791
|
Y(E(Ra), {
|
|
14754
14792
|
file: T,
|
|
@@ -14768,14 +14806,14 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14768
14806
|
[
|
|
14769
14807
|
S(
|
|
14770
14808
|
"p",
|
|
14771
|
-
|
|
14809
|
+
wg,
|
|
14772
14810
|
Pe(T.name),
|
|
14773
14811
|
1
|
|
14774
14812
|
/* TEXT */
|
|
14775
14813
|
),
|
|
14776
14814
|
a.showFileSize ? (I(), H(
|
|
14777
14815
|
"p",
|
|
14778
|
-
|
|
14816
|
+
Tg,
|
|
14779
14817
|
Pe(T.size ? `(${E(Si)(T.size)})` : ""),
|
|
14780
14818
|
1
|
|
14781
14819
|
/* TEXT */
|
|
@@ -14785,21 +14823,21 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14785
14823
|
/* STYLE */
|
|
14786
14824
|
)
|
|
14787
14825
|
]),
|
|
14788
|
-
a.showDownloadBtn ? (I(),
|
|
14826
|
+
a.showDownloadBtn ? (I(), ae(E(tt), {
|
|
14789
14827
|
key: 0,
|
|
14790
14828
|
name: "iksvg_daochu",
|
|
14791
14829
|
size: 20,
|
|
14792
14830
|
title: "下载",
|
|
14793
14831
|
onClick: et((j) => d(T), ["stop"])
|
|
14794
14832
|
}, null, 8, ["onClick"])) : X("v-if", !0),
|
|
14795
|
-
E(n).includes(T.suffix) && a.showPreviewBtn ? (I(),
|
|
14833
|
+
E(n).includes(T.suffix) && a.showPreviewBtn ? (I(), ae(E(tt), {
|
|
14796
14834
|
key: 1,
|
|
14797
14835
|
name: "iksvg_yulan",
|
|
14798
14836
|
size: 20,
|
|
14799
14837
|
onClick: et((j) => h(T), ["stop"]),
|
|
14800
14838
|
title: "预览"
|
|
14801
14839
|
}, null, 8, ["onClick"])) : X("v-if", !0)
|
|
14802
|
-
], 12,
|
|
14840
|
+
], 12, Cg))),
|
|
14803
14841
|
128
|
|
14804
14842
|
/* KEYED_FRAGMENT */
|
|
14805
14843
|
))
|
|
@@ -14807,19 +14845,19 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14807
14845
|
64
|
|
14808
14846
|
/* STABLE_FRAGMENT */
|
|
14809
14847
|
)) : (I(), H(
|
|
14810
|
-
|
|
14848
|
+
Te,
|
|
14811
14849
|
{ key: 2 },
|
|
14812
14850
|
[
|
|
14813
14851
|
X(" 默认模式 "),
|
|
14814
14852
|
(I(!0), H(
|
|
14815
|
-
|
|
14853
|
+
Te,
|
|
14816
14854
|
null,
|
|
14817
14855
|
Jt(m.value, (T, x) => {
|
|
14818
14856
|
var j;
|
|
14819
14857
|
return I(), H(
|
|
14820
14858
|
"div",
|
|
14821
14859
|
{
|
|
14822
|
-
class:
|
|
14860
|
+
class: ne(["iking-privew-annex", { "is-bg": a.showBg }]),
|
|
14823
14861
|
key: x,
|
|
14824
14862
|
style: ce({
|
|
14825
14863
|
marginBottom: x == ((j = a.list) == null ? void 0 : j.length) - 1 ? "0" : "10px",
|
|
@@ -14837,17 +14875,17 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14837
14875
|
class: "ikui-w-auto",
|
|
14838
14876
|
fields: u.value
|
|
14839
14877
|
}, null, 8, ["file", "style", "fields"]),
|
|
14840
|
-
S("div",
|
|
14878
|
+
S("div", Eg, [
|
|
14841
14879
|
S(
|
|
14842
14880
|
"div",
|
|
14843
|
-
|
|
14881
|
+
xg,
|
|
14844
14882
|
Pe(T.name),
|
|
14845
14883
|
1
|
|
14846
14884
|
/* TEXT */
|
|
14847
14885
|
),
|
|
14848
14886
|
S(
|
|
14849
14887
|
"div",
|
|
14850
|
-
|
|
14888
|
+
Ig,
|
|
14851
14889
|
Pe(E(Si)(T.size)),
|
|
14852
14890
|
1
|
|
14853
14891
|
/* TEXT */
|
|
@@ -14856,10 +14894,10 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14856
14894
|
S(
|
|
14857
14895
|
"div",
|
|
14858
14896
|
{
|
|
14859
|
-
class:
|
|
14897
|
+
class: ne(["flex flex-center", { "hover-show": a.iconHoverShow }])
|
|
14860
14898
|
},
|
|
14861
14899
|
[
|
|
14862
|
-
a.showDownloadBtn ? (I(),
|
|
14900
|
+
a.showDownloadBtn ? (I(), ae(E(tt), {
|
|
14863
14901
|
key: 0,
|
|
14864
14902
|
name: "iksvg_daochu",
|
|
14865
14903
|
onClick: et((K) => d(T), ["stop"]),
|
|
@@ -14867,7 +14905,7 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14867
14905
|
size: a.showBg ? "default" : 20,
|
|
14868
14906
|
title: "下载"
|
|
14869
14907
|
}, null, 8, ["onClick", "bg", "size"])) : X("v-if", !0),
|
|
14870
|
-
E(n).includes(T.suffix) && a.showPreviewBtn ? (I(),
|
|
14908
|
+
E(n).includes(T.suffix) && a.showPreviewBtn ? (I(), ae(E(tt), {
|
|
14871
14909
|
key: 1,
|
|
14872
14910
|
name: "iksvg_yulan",
|
|
14873
14911
|
bg: a.showBg,
|
|
@@ -14875,14 +14913,14 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14875
14913
|
title: "预览",
|
|
14876
14914
|
onClick: et((K) => h(T), ["stop"])
|
|
14877
14915
|
}, null, 8, ["bg", "size", "onClick"])) : X("v-if", !0),
|
|
14878
|
-
|
|
14916
|
+
Me(p.$slots, "operation", {
|
|
14879
14917
|
data: { ...T, findex: x }
|
|
14880
14918
|
})
|
|
14881
14919
|
],
|
|
14882
14920
|
2
|
|
14883
14921
|
/* CLASS */
|
|
14884
14922
|
)
|
|
14885
|
-
], 8,
|
|
14923
|
+
], 8, Sg)
|
|
14886
14924
|
],
|
|
14887
14925
|
6
|
|
14888
14926
|
/* CLASS, STYLE */
|
|
@@ -14915,8 +14953,8 @@ const fg = ["id"], hg = /* @__PURE__ */ Se({
|
|
|
14915
14953
|
);
|
|
14916
14954
|
};
|
|
14917
14955
|
}
|
|
14918
|
-
}),
|
|
14956
|
+
}), Ng = He(Pg);
|
|
14919
14957
|
export {
|
|
14920
|
-
|
|
14921
|
-
|
|
14958
|
+
Ng as IkPreviewFile,
|
|
14959
|
+
Ng as default
|
|
14922
14960
|
};
|