iking-web-ui-pro 0.2.22 → 0.2.25

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.
Files changed (72) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +77 -82
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +727 -745
  5. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKSearch/ik.index.es.js +41 -33
  8. package/dist/IKSearch/ik.index.umd.js +1 -1
  9. package/dist/IKSearch/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcess/ik.index.es.js +167 -159
  14. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcess/style.css +1 -1
  16. package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
  17. package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
  18. package/dist/IkApprovalProcessDetail/style.css +1 -1
  19. package/dist/IkBaseDialog/ik.index.es.js +112 -130
  20. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  21. package/dist/IkBaseDialog/style.css +1 -1
  22. package/dist/IkBtnSetting/ik.index.es.js +237 -242
  23. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  24. package/dist/IkBtnSetting/style.css +1 -1
  25. package/dist/IkCalendar/ik.index.es.js +73 -65
  26. package/dist/IkCalendar/ik.index.umd.js +1 -1
  27. package/dist/IkCalendar/style.css +1 -1
  28. package/dist/IkCollapseCard/ik.index.es.js +78 -83
  29. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  30. package/dist/IkCollapseCard/style.css +1 -1
  31. package/dist/IkDescription/ik.index.es.js +902 -920
  32. package/dist/IkDescription/ik.index.umd.js +45 -45
  33. package/dist/IkDescription/style.css +1 -1
  34. package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
  35. package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
  36. package/dist/IkDetailPreviewFiles/style.css +1 -1
  37. package/dist/IkIconPicker/ik.index.es.js +135 -140
  38. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  39. package/dist/IkIconPicker/style.css +1 -1
  40. package/dist/IkMonacoEditor/ik.index.es.js +378 -383
  41. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  42. package/dist/IkMonacoEditor/style.css +1 -1
  43. package/dist/IkPageFull/ik.index.es.js +1305 -1302
  44. package/dist/IkPageFull/ik.index.umd.js +2 -2
  45. package/dist/IkPageFull/style.css +1 -1
  46. package/dist/IkPickerUser/ik.index.es.js +41 -33
  47. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  48. package/dist/IkPickerUser/style.css +1 -1
  49. package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
  50. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  51. package/dist/IkPreviewFileDialog/style.css +1 -1
  52. package/dist/IkSchedule/ik.index.es.js +2955 -2960
  53. package/dist/IkSchedule/ik.index.umd.js +1 -1
  54. package/dist/IkSchedule/style.css +1 -1
  55. package/dist/IkSideText/ik.index.es.js +106 -111
  56. package/dist/IkSideText/ik.index.umd.js +1 -1
  57. package/dist/IkSideText/style.css +1 -1
  58. package/dist/IkSvgIcon/ik.index.es.js +69 -74
  59. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  60. package/dist/IkSvgIcon/style.css +1 -1
  61. package/dist/IkUploadFile/ik.index.es.js +761 -779
  62. package/dist/IkUploadFile/ik.index.umd.js +45 -45
  63. package/dist/IkUploadFile/style.css +1 -1
  64. package/dist/IkUploadImage/ik.index.es.js +218 -223
  65. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  66. package/dist/IkUploadImage/style.css +1 -1
  67. package/dist/index.es.js +7089 -7099
  68. package/dist/index.umd.js +89 -89
  69. package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
  70. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
  71. package/dist/style.css +1 -1
  72. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as oe, computed as X, openBlock as x, createElementBlock as D, createElementVNode as S, inject as qe, ref as ye, resolveComponent as Ne, Fragment as Oe, renderList as ut, normalizeStyle as ee, toDisplayString as Te, normalizeClass as te, createVNode as G, unref as z, withModifiers as Qe, renderSlot as Fe, createBlock as Ee, withCtx as de, createCommentVNode as se, mergeModels as ct, useModel as Yt, reactive as Cn, watch as Xt, nextTick as zi, createTextVNode as Ut, h as wn, mergeProps as bn, createSlots as Tn, Teleport as En, Transition as Sn, pushScopeId as xn, popScopeId as In } from "vue";
1
+ import { defineComponent as oe, computed as X, openBlock as x, createElementBlock as R, createElementVNode as S, inject as qe, ref as me, resolveComponent as Ne, Fragment as Oe, renderList as lt, normalizeStyle as ee, toDisplayString as Te, normalizeClass as te, createVNode as G, unref as z, withModifiers as ui, renderSlot as Fe, createBlock as Ee, withCtx as de, createCommentVNode as se, mergeModels as ut, useModel as Kt, reactive as Cn, watch as Yt, nextTick as zi, createTextVNode as Ht, h as wn, mergeProps as bn, createSlots as Tn, Teleport as En, Transition as Sn, pushScopeId as xn, popScopeId as In } from "vue";
2
2
  import { paramType as Pn, ikFile as An, buildUUID as Vi, ikColor as Ln, ikUrl as Dn } from "iking-utils-pro";
3
3
  import { useNamespace as Rn } from "element-plus";
4
4
  const Ie = (a, o) => {
@@ -9,7 +9,7 @@ const Ie = (a, o) => {
9
9
  for (const [r, t] of Object.entries(o))
10
10
  a[r] = t;
11
11
  return a;
12
- }, zt = (a, o) => {
12
+ }, Ut = (a, o) => {
13
13
  var i, n, s, l;
14
14
  const r = (i = a == null ? void 0 : a.response) != null && i.data ? ci((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || ci(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
15
15
  sheet: "excel",
@@ -619,8 +619,8 @@ const Ie = (a, o) => {
619
619
  }
620
620
  },
621
621
  setup(a) {
622
- const o = a, r = X(() => o.file ? zt(o.file, o.fields) : o.type);
623
- return (t, e) => r.value === "image" ? (x(), D("svg", Mn, zn)) : r.value === "zip" ? (x(), D("svg", Vn, Gn)) : r.value === "ppt" ? (x(), D("svg", $n, Xn)) : r.value === "word" ? (x(), D("svg", qn, Qn)) : r.value === "pdf" ? (x(), D("svg", er, nr)) : r.value === "txt" ? (x(), D("svg", rr, ar)) : r.value === "audio" ? (x(), D("svg", lr, fr)) : r.value === "video" ? (x(), D("svg", hr, pr)) : r.value === "excel" ? (x(), D("svg", vr, kr)) : r.value === "exe" ? (x(), D("svg", Cr, Sr)) : r.value === "json" ? (x(), D("svg", xr, Lr)) : (x(), D("svg", Dr, Mr));
622
+ const o = a, r = X(() => o.file ? Ut(o.file, o.fields) : o.type);
623
+ return (t, e) => r.value === "image" ? (x(), R("svg", Mn, zn)) : r.value === "zip" ? (x(), R("svg", Vn, Gn)) : r.value === "ppt" ? (x(), R("svg", $n, Xn)) : r.value === "word" ? (x(), R("svg", qn, Qn)) : r.value === "pdf" ? (x(), R("svg", er, nr)) : r.value === "txt" ? (x(), R("svg", rr, ar)) : r.value === "audio" ? (x(), R("svg", lr, fr)) : r.value === "video" ? (x(), R("svg", hr, pr)) : r.value === "excel" ? (x(), R("svg", vr, kr)) : r.value === "exe" ? (x(), R("svg", Cr, Sr)) : r.value === "json" ? (x(), R("svg", xr, Lr)) : (x(), R("svg", Dr, Mr));
624
624
  }
625
625
  }), Br = Ie(Nr);
626
626
  /*! Element Plus Icons Vue v2.3.1 */
@@ -628,7 +628,7 @@ var Hr = /* @__PURE__ */ oe({
628
628
  name: "Close",
629
629
  __name: "close",
630
630
  setup(a) {
631
- return (o, r) => (x(), D("svg", {
631
+ return (o, r) => (x(), R("svg", {
632
632
  xmlns: "http://www.w3.org/2000/svg",
633
633
  viewBox: "0 0 1024 1024"
634
634
  }, [
@@ -639,7 +639,7 @@ var Hr = /* @__PURE__ */ oe({
639
639
  ]));
640
640
  }
641
641
  }), Ur = Hr;
642
- const it = (a, o) => {
642
+ const tt = (a, o) => {
643
643
  const r = a.__vccOpts || a;
644
644
  for (const [t, e] of o)
645
645
  r[t] = e;
@@ -652,7 +652,7 @@ const it = (a, o) => {
652
652
  const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
653
653
  let e = a / Math.pow(1024, t);
654
654
  return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
655
- }, et = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "";
655
+ }, Qe = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "";
656
656
  const Vr = (a) => {
657
657
  const o = qe("loadUrl"), r = X(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = qe("uploadUrl"), e = X(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = qe("token"), n = X(() => a.token || (i == null ? void 0 : i.value)), s = qe("onlyofficeConfig"), l = X(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = qe("userInfo"), c = X(() => a.userInfo || (u == null ? void 0 : u.value));
658
658
  return {
@@ -743,19 +743,19 @@ const Vr = (a) => {
743
743
  suffix: "suffix",
744
744
  size: "size",
745
745
  ...o.field
746
- })), i = ye({}), n = ye(!1), s = (f) => {
746
+ })), i = me({}), n = me(!1), s = (f) => {
747
747
  var d, g;
748
748
  i.value = {
749
749
  ...f,
750
750
  name: f.name,
751
- url: et(
751
+ url: Qe(
752
752
  r.value,
753
753
  f.url || ((g = (d = f == null ? void 0 : f.response) == null ? void 0 : d.data) == null ? void 0 : g.id) || (f == null ? void 0 : f.id)
754
754
  )
755
755
  }, n.value = !0;
756
756
  }, l = (f) => {
757
757
  An.downloadFile(
758
- et(
758
+ Qe(
759
759
  r.value,
760
760
  f[e.value.url] || f.attachmentId || f.id
761
761
  ),
@@ -770,18 +770,18 @@ const Vr = (a) => {
770
770
  return (f, d) => {
771
771
  var p, m, y;
772
772
  const g = Ne("tmplate");
773
- return x(), D(
773
+ return x(), R(
774
774
  Oe,
775
775
  null,
776
776
  [
777
- (p = a.list) != null && p.length ? (x(), D(
777
+ (p = a.list) != null && p.length ? (x(), R(
778
778
  Oe,
779
779
  { key: 0 },
780
780
  [
781
- a.simple ? (x(!0), D(
781
+ a.simple ? (x(!0), R(
782
782
  Oe,
783
783
  { key: 0 },
784
- ut(c.value, (k, b) => (x(), D("div", {
784
+ lt(c.value, (k, b) => (x(), R("div", {
785
785
  class: "iking-privew-annex simple",
786
786
  onClick: (w) => s(k),
787
787
  style: ee({ width: u.value })
@@ -799,13 +799,13 @@ const Vr = (a) => {
799
799
  class: te(["flex flex-center", { "hover-show": a.iconHoverShow }])
800
800
  },
801
801
  [
802
- G(z(ve), {
802
+ G(z(be), {
803
803
  name: "iksvg_daochu",
804
- onClick: Qe((w) => l(k), ["stop"]),
804
+ onClick: ui((w) => l(k), ["stop"]),
805
805
  size: 20,
806
806
  active: ""
807
807
  }, null, 8, ["onClick"]),
808
- G(z(ve), {
808
+ G(z(be), {
809
809
  name: "iksvg_yulan",
810
810
  size: 20,
811
811
  active: ""
@@ -822,12 +822,12 @@ const Vr = (a) => {
822
822
  /* UNKEYED_FRAGMENT */
823
823
  )) : (x(), Ee(g, { key: 1 }, {
824
824
  default: de(() => [
825
- (x(!0), D(
825
+ (x(!0), R(
826
826
  Oe,
827
827
  null,
828
- ut(c.value, (k, b) => {
828
+ lt(c.value, (k, b) => {
829
829
  var w;
830
- return x(), D(
830
+ return x(), R(
831
831
  "div",
832
832
  {
833
833
  class: te(["iking-privew-annex", { "is-bg": a.showBg }]),
@@ -870,14 +870,14 @@ const Vr = (a) => {
870
870
  class: te(["flex flex-center", { "hover-show": a.iconHoverShow }])
871
871
  },
872
872
  [
873
- G(z(ve), {
873
+ G(z(be), {
874
874
  name: "iksvg_daochu",
875
- onClick: Qe((B) => l(k), ["stop"]),
875
+ onClick: ui((B) => l(k), ["stop"]),
876
876
  bg: a.showBg,
877
877
  size: a.showBg ? "default" : 20,
878
878
  title: "下载"
879
879
  }, null, 8, ["onClick", "bg", "size"]),
880
- G(z(ve), {
880
+ G(z(be), {
881
881
  name: "iksvg_yulan",
882
882
  bg: a.showBg,
883
883
  size: a.showBg ? "default" : 20,
@@ -925,7 +925,7 @@ const Vr = (a) => {
925
925
  });
926
926
  const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
927
927
  __name: "IkPreviewFileDialog",
928
- props: /* @__PURE__ */ ct({
928
+ props: /* @__PURE__ */ ut({
929
929
  file: {
930
930
  type: Object,
931
931
  default: () => []
@@ -960,13 +960,13 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
960
960
  }),
961
961
  emits: ["update:show"],
962
962
  setup(a) {
963
- const o = a, r = Yt(a, "show"), t = X(() => ({
963
+ const o = a, r = Kt(a, "show"), t = X(() => ({
964
964
  name: "name",
965
965
  url: "url",
966
966
  suffix: "suffix",
967
967
  size: "fileSize",
968
968
  ...o.field
969
- })), e = ye(null), i = ye(null), n = Cn({
969
+ })), e = me(null), i = me(null), n = Cn({
970
970
  image: !1,
971
971
  office: !1,
972
972
  video: !1
@@ -977,11 +977,11 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
977
977
  if (i.value = {
978
978
  ...u,
979
979
  name: u[t.value.name],
980
- url: et(o.loadUrl, b)
981
- }, u && zt(u, t.value) === "image") {
980
+ url: Qe(o.loadUrl, b)
981
+ }, u && Ut(u, t.value) === "image") {
982
982
  n.image = !0;
983
983
  return;
984
- } else if (u && zt(u, t.value) === "video") {
984
+ } else if (u && Ut(u, t.value) === "video") {
985
985
  n.video = !0;
986
986
  return;
987
987
  } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(w)) {
@@ -999,7 +999,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
999
999
  document: {
1000
1000
  key: Vi(),
1001
1001
  title: B,
1002
- url: et(o.loadUrl, b),
1002
+ url: Qe(o.loadUrl, b),
1003
1003
  fileType: w,
1004
1004
  ...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
1005
1005
  },
@@ -1011,7 +1011,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
1011
1011
  console.info("预览错误: ", k);
1012
1012
  }
1013
1013
  };
1014
- Xt([r, o.file], ([u, c]) => {
1014
+ Yt([r, o.file], ([u, c]) => {
1015
1015
  u && zi(() => {
1016
1016
  s(o.file);
1017
1017
  });
@@ -1022,7 +1022,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
1022
1022
  return (u, c) => {
1023
1023
  var d, g, p;
1024
1024
  const f = Ne("el-image-viewer");
1025
- return r.value ? (x(), D(
1025
+ return r.value ? (x(), R(
1026
1026
  Oe,
1027
1027
  { key: 0 },
1028
1028
  [
@@ -1035,12 +1035,12 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
1035
1035
  }, null, 8, ["url-list"])) : se("v-if", !0),
1036
1036
  se(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1037
1037
  se(" 文档类 "),
1038
- G(z(Ha), {
1038
+ G(z(Ba), {
1039
1039
  modelValue: n.video,
1040
1040
  "onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
1041
1041
  url: (p = i.value) == null ? void 0 : p.url
1042
1042
  }, null, 8, ["modelValue", "url"]),
1043
- G(z(ds), {
1043
+ G(z(hs), {
1044
1044
  modelValue: n.office,
1045
1045
  "onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
1046
1046
  draggable: "",
@@ -1058,7 +1058,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
1058
1058
  default: de(() => {
1059
1059
  var m;
1060
1060
  return [
1061
- G(z(ws), {
1061
+ G(z(Cs), {
1062
1062
  "config-options": e.value,
1063
1063
  "document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
1064
1064
  }, null, 8, ["config-options", "document-server-url"])
@@ -1111,89 +1111,86 @@ const Jr = Ie(Zr), Qr = {
1111
1111
  warning: { type: Boolean },
1112
1112
  width: {}
1113
1113
  },
1114
- emits: ["click"],
1115
- setup(a, { emit: o }) {
1116
- const r = a, t = X(() => r), e = X(() => {
1117
- const { name: l } = t.value;
1118
- return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
1119
- }), i = X(() => {
1120
- const l = [];
1121
- if (t.value.flip)
1122
- switch (t.value.flip) {
1114
+ setup(a) {
1115
+ const o = a, r = X(() => o), t = X(() => {
1116
+ const { name: i } = r.value;
1117
+ return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
1118
+ }), e = X(() => {
1119
+ const i = [];
1120
+ if (r.value.flip)
1121
+ switch (r.value.flip) {
1123
1122
  case "horizontal":
1124
- l.push("rotateY(180deg)");
1123
+ i.push("rotateY(180deg)");
1125
1124
  break;
1126
1125
  case "vertical":
1127
- l.push("rotateX(180deg)");
1126
+ i.push("rotateX(180deg)");
1128
1127
  break;
1129
1128
  case "both":
1130
- l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
1129
+ i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
1131
1130
  break;
1132
1131
  }
1133
- t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
1134
- const u = {
1135
- ...t.value.color && { color: t.value.color },
1136
- ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
1137
- ...l.length && { transform: l.join(" ") },
1138
- padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
1139
- ...t.value.color && e.value !== "iksig" ? {
1140
- "--ik-color-icon-dark": t.value.color,
1141
- "--ik-color-icon-light": t.value.colorLight || Ln.setOpacity(t.value.color, t.value.opacity)
1132
+ r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
1133
+ const n = {
1134
+ pointerEvents: r.value.disabled ? "none" : "auto",
1135
+ ...r.value.color && { color: r.value.color },
1136
+ ...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
1137
+ ...i.length && { transform: i.join(" ") },
1138
+ padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
1139
+ ...r.value.color && t.value !== "iksig" ? {
1140
+ "--ik-color-icon-dark": r.value.color,
1141
+ "--ik-color-icon-light": r.value.colorLight || Ln.setOpacity(r.value.color, r.value.opacity)
1142
1142
  } : {}
1143
1143
  };
1144
- return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
1145
- }), n = o, s = (l) => {
1146
- t.value.disabled || n("click", l);
1147
- };
1148
- return (l, u) => {
1149
- const c = Ne("el-tooltip"), f = Ne("el-button");
1150
- return t.value.tableIconType === "icon" || !t.value.tableIconType ? (x(), D("span", Qr, [
1151
- t.value.notip || !t.value.title ? (x(), D(
1144
+ return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
1145
+ });
1146
+ return (i, n) => {
1147
+ const s = Ne("el-tooltip"), l = Ne("el-button");
1148
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (x(), R("span", Qr, [
1149
+ r.value.notip || !r.value.title ? (x(), R(
1152
1150
  "i",
1153
1151
  {
1154
1152
  key: 0,
1155
- onClick: Qe(s, ["stop"]),
1156
1153
  class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1157
- [l.name]: e.value === "unocss",
1158
- "show-bg": t.value.showBg || t.value.bg,
1159
- default: t.value.size === "default",
1160
- small: t.value.size === "small",
1161
- big: t.value.size === "big",
1162
- warning: t.value.warning || t.value.type === "warning",
1163
- primary: t.value.primary || t.value.type === "primary",
1164
- success: l.success || t.value.type === "success",
1165
- error: t.value.error || t.value.type === "error",
1166
- active: t.value.active,
1167
- disabled: t.value.disabled
1154
+ [i.name]: t.value === "unocss",
1155
+ "show-bg": r.value.showBg || r.value.bg,
1156
+ default: r.value.size === "default",
1157
+ small: r.value.size === "small",
1158
+ big: r.value.size === "big",
1159
+ warning: r.value.warning || r.value.type === "warning",
1160
+ primary: r.value.primary || r.value.type === "primary",
1161
+ success: i.success || r.value.type === "success",
1162
+ error: r.value.error || r.value.type === "error",
1163
+ active: r.value.active,
1164
+ disabled: r.value.disabled
1168
1165
  }]),
1169
- style: ee(i.value)
1166
+ style: ee(e.value)
1170
1167
  },
1171
1168
  [
1172
1169
  se(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1173
- e.value === "iksig" ? (x(), D(
1170
+ t.value === "iksig" ? (x(), R(
1174
1171
  "i",
1175
1172
  {
1176
1173
  key: 0,
1177
- class: te(`iksig ${t.value.name}`),
1178
- style: ee(i.value)
1174
+ class: te(`iksig ${r.value.name}`),
1175
+ style: ee(e.value)
1179
1176
  },
1180
1177
  null,
1181
1178
  6
1182
1179
  /* CLASS, STYLE */
1183
- )) : e.value === "svg" ? (x(), D("svg", es, [
1180
+ )) : t.value === "svg" ? (x(), R("svg", es, [
1184
1181
  S("use", {
1185
- "xlink:href": `#${t.value.name}`
1182
+ "xlink:href": `#${r.value.name}`
1186
1183
  }, null, 8, ts)
1187
- ])) : e.value === "img" ? (x(), D("img", {
1184
+ ])) : t.value === "img" ? (x(), R("img", {
1188
1185
  key: 2,
1189
- src: t.value.name,
1186
+ src: r.value.name,
1190
1187
  class: "h-[1em] w-[1em]"
1191
- }, null, 8, is)) : (x(), D(
1188
+ }, null, 8, is)) : (x(), R(
1192
1189
  "i",
1193
1190
  {
1194
1191
  key: 3,
1195
- class: te(t.value.name),
1196
- style: ee(i.value)
1192
+ class: te(r.value.name),
1193
+ style: ee(e.value)
1197
1194
  },
1198
1195
  null,
1199
1196
  6
@@ -1202,9 +1199,9 @@ const Jr = Ie(Zr), Qr = {
1202
1199
  ],
1203
1200
  6
1204
1201
  /* CLASS, STYLE */
1205
- )) : (x(), Ee(c, {
1202
+ )) : (x(), Ee(s, {
1206
1203
  key: 1,
1207
- content: t.value.title,
1204
+ content: r.value.title,
1208
1205
  placement: "top"
1209
1206
  }, {
1210
1207
  default: de(() => [
@@ -1212,45 +1209,44 @@ const Jr = Ie(Zr), Qr = {
1212
1209
  "i",
1213
1210
  {
1214
1211
  class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1215
- [l.name]: e.value === "unocss",
1216
- "show-bg": t.value.showBg || t.value.bg,
1217
- default: t.value.size === "default",
1218
- small: t.value.size === "small",
1219
- big: t.value.size === "big",
1220
- warning: t.value.warning || t.value.type === "warning",
1221
- primary: l.primary || t.value.type === "primary",
1222
- success: l.success || t.value.type === "success",
1223
- error: t.value.error || t.value.type === "error",
1224
- active: t.value.active
1212
+ [i.name]: t.value === "unocss",
1213
+ "show-bg": r.value.showBg || r.value.bg,
1214
+ default: r.value.size === "default",
1215
+ small: r.value.size === "small",
1216
+ big: r.value.size === "big",
1217
+ warning: r.value.warning || r.value.type === "warning",
1218
+ primary: i.primary || r.value.type === "primary",
1219
+ success: i.success || r.value.type === "success",
1220
+ error: r.value.error || r.value.type === "error",
1221
+ active: r.value.active
1225
1222
  }]),
1226
- onClick: Qe(s, ["stop"]),
1227
- style: ee(i.value)
1223
+ style: ee(e.value)
1228
1224
  },
1229
1225
  [
1230
- e.value === "iksig" ? (x(), D(
1226
+ t.value === "iksig" ? (x(), R(
1231
1227
  "i",
1232
1228
  {
1233
1229
  key: 0,
1234
- class: te(`iksig ${t.value.name}`),
1235
- style: ee(i.value)
1230
+ class: te(`iksig ${r.value.name}`),
1231
+ style: ee(e.value)
1236
1232
  },
1237
1233
  null,
1238
1234
  6
1239
1235
  /* CLASS, STYLE */
1240
- )) : e.value === "svg" ? (x(), D("svg", ns, [
1236
+ )) : t.value === "svg" ? (x(), R("svg", ns, [
1241
1237
  S("use", {
1242
- "xlink:href": `#${t.value.name}`
1238
+ "xlink:href": `#${r.value.name}`
1243
1239
  }, null, 8, rs)
1244
- ])) : e.value === "img" ? (x(), D("img", {
1240
+ ])) : t.value === "img" ? (x(), R("img", {
1245
1241
  key: 2,
1246
- src: t.value.name,
1242
+ src: r.value.name,
1247
1243
  class: "h-[1em] w-[1em]"
1248
- }, null, 8, ss)) : (x(), D(
1244
+ }, null, 8, ss)) : (x(), R(
1249
1245
  "i",
1250
1246
  {
1251
1247
  key: 3,
1252
- class: te(t.value.name),
1253
- style: ee(i.value)
1248
+ class: te(r.value.name),
1249
+ style: ee(e.value)
1254
1250
  },
1255
1251
  null,
1256
1252
  6
@@ -1264,14 +1260,13 @@ const Jr = Ie(Zr), Qr = {
1264
1260
  _: 1
1265
1261
  /* STABLE */
1266
1262
  }, 8, ["content"]))
1267
- ])) : (x(), Ee(f, {
1263
+ ])) : (x(), Ee(l, {
1268
1264
  key: 1,
1269
- type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
1270
- onClick: Qe(s, ["stop"])
1265
+ type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
1271
1266
  }, {
1272
1267
  default: de(() => [
1273
- Ut(
1274
- Te(t.value.title),
1268
+ Ht(
1269
+ Te(r.value.title),
1275
1270
  1
1276
1271
  /* TEXT */
1277
1272
  )
@@ -1282,10 +1277,7 @@ const Jr = Ie(Zr), Qr = {
1282
1277
  };
1283
1278
  }
1284
1279
  });
1285
- const as = /* @__PURE__ */ it(os, [["__scopeId", "data-v-4a1004b9"]]), ve = Ie(as), ls = {
1286
- key: 0,
1287
- class: "exit-main-page-maximize"
1288
- }, us = /* @__PURE__ */ oe({
1280
+ const as = /* @__PURE__ */ tt(os, [["__scopeId", "data-v-52806adf"]]), be = Ie(as), ls = /* @__PURE__ */ oe({
1289
1281
  __name: "CloseIcon",
1290
1282
  props: {
1291
1283
  showBg: {
@@ -1298,27 +1290,17 @@ const as = /* @__PURE__ */ it(os, [["__scopeId", "data-v-4a1004b9"]]), ve = Ie(a
1298
1290
  }
1299
1291
  },
1300
1292
  setup(a) {
1301
- return (o, r) => (x(), D("div", null, [
1302
- a.showBg && a.fullscreen ? (x(), D("div", ls, [
1303
- G(z(ve), {
1304
- name: "iksvg_guanbidanchuang",
1305
- title: "关闭",
1306
- size: 20,
1307
- error: ""
1308
- })
1309
- ])) : (x(), Ee(z(ve), {
1310
- key: 1,
1311
- error: "",
1312
- name: "iksvg_guanbidanchuang",
1313
- title: "关闭",
1314
- size: 20
1315
- }))
1316
- ]));
1293
+ return (o, r) => (x(), Ee(z(be), {
1294
+ error: "",
1295
+ name: "iksvg_guanbidanchuang",
1296
+ title: "关闭",
1297
+ size: 20
1298
+ }));
1317
1299
  }
1318
1300
  });
1319
- const cs = /* @__PURE__ */ it(us, [["__scopeId", "data-v-79f49df8"]]), fs = { class: "base-header" }, hs = /* @__PURE__ */ oe({
1301
+ const us = /* @__PURE__ */ tt(ls, [["__scopeId", "data-v-e27fb022"]]), cs = { class: "base-header" }, fs = /* @__PURE__ */ oe({
1320
1302
  __name: "IkBaseDialog",
1321
- props: /* @__PURE__ */ ct({
1303
+ props: /* @__PURE__ */ ut({
1322
1304
  title: { default: "" },
1323
1305
  cancelText: { default: "取消" },
1324
1306
  confirmText: { default: "确认" },
@@ -1337,11 +1319,11 @@ const cs = /* @__PURE__ */ it(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1337
1319
  }),
1338
1320
  emits: ["update:modelValue"],
1339
1321
  setup(a) {
1340
- const o = a, r = Yt(a, "modelValue"), t = ye(o.fullscreen), e = () => {
1322
+ const o = a, r = Kt(a, "modelValue"), t = me(o.fullscreen), e = () => {
1341
1323
  t.value = !t.value;
1342
1324
  }, i = oe({
1343
1325
  setup() {
1344
- return () => wn(cs, {
1326
+ return () => wn(us, {
1345
1327
  showBg: o.showCloseBg,
1346
1328
  fullscreen: o.fullscreen
1347
1329
  });
@@ -1360,7 +1342,7 @@ const cs = /* @__PURE__ */ it(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1360
1342
  }), Tn({
1361
1343
  icon: de(() => [
1362
1344
  Fe(n.$slots, "title", {}, () => [
1363
- Ut(
1345
+ Ht(
1364
1346
  Te(n.title),
1365
1347
  1
1366
1348
  /* TEXT */
@@ -1368,16 +1350,16 @@ const cs = /* @__PURE__ */ it(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1368
1350
  ])
1369
1351
  ]),
1370
1352
  header: de(() => [
1371
- S("div", fs, [
1353
+ S("div", cs, [
1372
1354
  Fe(n.$slots, "header", {}, () => [
1373
- Ut(
1355
+ Ht(
1374
1356
  Te(n.title),
1375
1357
  1
1376
1358
  /* TEXT */
1377
1359
  )
1378
1360
  ])
1379
1361
  ]),
1380
- n.$attrs.showClose ? (x(), Ee(z(ve), {
1362
+ n.$attrs.showClose ? (x(), Ee(z(be), {
1381
1363
  key: 0,
1382
1364
  onClick: e,
1383
1365
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -1402,12 +1384,12 @@ const cs = /* @__PURE__ */ it(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1402
1384
  };
1403
1385
  }
1404
1386
  });
1405
- const ds = Ie(hs);
1406
- var gs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1407
- function qt(a) {
1387
+ const hs = Ie(fs);
1388
+ var ds = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1389
+ function Xt(a) {
1408
1390
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1409
1391
  }
1410
- function ps(a, o, r, t) {
1392
+ function gs(a, o, r, t) {
1411
1393
  function e(i) {
1412
1394
  return i instanceof r ? i : new r(function(n) {
1413
1395
  n(i);
@@ -1434,7 +1416,7 @@ function ps(a, o, r, t) {
1434
1416
  u((t = t.apply(a, o || [])).next());
1435
1417
  });
1436
1418
  }
1437
- function vs(a, o) {
1419
+ function ps(a, o) {
1438
1420
  var r = { label: 0, sent: function() {
1439
1421
  if (i[0] & 1)
1440
1422
  throw i[1];
@@ -1499,9 +1481,9 @@ function vs(a, o) {
1499
1481
  return { value: u[0] ? u[1] : void 0, done: !0 };
1500
1482
  }
1501
1483
  }
1502
- var ms = function(a, o) {
1503
- return ps(void 0, void 0, void 0, function() {
1504
- return vs(this, function(r) {
1484
+ var vs = function(a, o) {
1485
+ return gs(void 0, void 0, void 0, function() {
1486
+ return ps(this, function(r) {
1505
1487
  return [2, new Promise(function(t, e) {
1506
1488
  try {
1507
1489
  if (window.DocsAPI)
@@ -1534,7 +1516,7 @@ var ms = function(a, o) {
1534
1516
  }, e.onerror = function(i) {
1535
1517
  e.removeAttribute("loading"), t(i);
1536
1518
  }, e.setAttribute("loading", ""), e;
1537
- }, Zt = oe({
1519
+ }, qt = oe({
1538
1520
  name: "DocumentEditor",
1539
1521
  props: {
1540
1522
  id: {
@@ -1589,7 +1571,7 @@ var ms = function(a, o) {
1589
1571
  var a = this, o = this.documentServerUrl;
1590
1572
  o.endsWith("/") || (o += "/");
1591
1573
  var r = "".concat(o, "web-apps/apps/api/documents/api.js");
1592
- ms(r, "onlyoffice-api-script").then(function() {
1574
+ vs(r, "onlyoffice-api-script").then(function() {
1593
1575
  return a.onLoad();
1594
1576
  }).catch(function() {
1595
1577
  a.onError(-2);
@@ -1703,13 +1685,13 @@ var ms = function(a, o) {
1703
1685
  }
1704
1686
  }
1705
1687
  });
1706
- const ys = ["id"];
1707
- function _s(a, o, r, t, e, i) {
1708
- return x(), D("div", { id: a.id }, null, 8, ys);
1688
+ const ms = ["id"];
1689
+ function ys(a, o, r, t, e, i) {
1690
+ return x(), R("div", { id: a.id }, null, 8, ms);
1709
1691
  }
1710
- Zt.render = _s;
1711
- Zt.__file = "src/components/DocumentEditor.vue";
1712
- const ks = /* @__PURE__ */ oe({
1692
+ qt.render = ys;
1693
+ qt.__file = "src/components/DocumentEditor.vue";
1694
+ const _s = /* @__PURE__ */ oe({
1713
1695
  __name: "IkOnlyOffice",
1714
1696
  props: {
1715
1697
  // 文件服务器的服务的地址
@@ -1730,7 +1712,7 @@ const ks = /* @__PURE__ */ oe({
1730
1712
  }
1731
1713
  },
1732
1714
  setup(a) {
1733
- const o = a, r = ye({
1715
+ const o = a, r = me({
1734
1716
  width: "100%",
1735
1717
  height: "100%",
1736
1718
  ...o.configOptions || {},
@@ -1738,13 +1720,13 @@ const ks = /* @__PURE__ */ oe({
1738
1720
  }), t = () => {
1739
1721
  console.info("文档加载完成", o.configOptions);
1740
1722
  };
1741
- return (e, i) => (x(), D(
1723
+ return (e, i) => (x(), R(
1742
1724
  "div",
1743
1725
  {
1744
1726
  style: ee({ height: o.officeHeight })
1745
1727
  },
1746
1728
  [
1747
- G(z(Zt), {
1729
+ G(z(qt), {
1748
1730
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1749
1731
  ref: "editorRef",
1750
1732
  "document-server-url": a.documentServerUrl,
@@ -1757,7 +1739,7 @@ const ks = /* @__PURE__ */ oe({
1757
1739
  ));
1758
1740
  }
1759
1741
  });
1760
- const Cs = /* @__PURE__ */ it(ks, [["__scopeId", "data-v-98d51ef9"]]), ws = Ie(Cs);
1742
+ const ks = /* @__PURE__ */ tt(_s, [["__scopeId", "data-v-98d51ef9"]]), Cs = Ie(ks);
1761
1743
  function hi(a, o) {
1762
1744
  var r = Object.keys(a);
1763
1745
  if (Object.getOwnPropertySymbols) {
@@ -1821,19 +1803,19 @@ function I(a, o) {
1821
1803
  }
1822
1804
  }), Object.defineProperty(a, "prototype", {
1823
1805
  writable: !1
1824
- }), o && Vt(a, o);
1806
+ }), o && zt(a, o);
1825
1807
  }
1826
1808
  function A(a) {
1827
1809
  return A = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1828
1810
  return r.__proto__ || Object.getPrototypeOf(r);
1829
1811
  }, A(a);
1830
1812
  }
1831
- function Vt(a, o) {
1832
- return Vt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1813
+ function zt(a, o) {
1814
+ return zt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1833
1815
  return t.__proto__ = e, t;
1834
- }, Vt(a, o);
1816
+ }, zt(a, o);
1835
1817
  }
1836
- function bs() {
1818
+ function ws() {
1837
1819
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1838
1820
  return !1;
1839
1821
  if (typeof Proxy == "function")
@@ -1850,7 +1832,7 @@ function v(a) {
1850
1832
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1851
1833
  return a;
1852
1834
  }
1853
- function Jt(a, o) {
1835
+ function Zt(a, o) {
1854
1836
  if (o && (typeof o == "object" || typeof o == "function"))
1855
1837
  return o;
1856
1838
  if (o !== void 0)
@@ -1858,7 +1840,7 @@ function Jt(a, o) {
1858
1840
  return v(a);
1859
1841
  }
1860
1842
  function P(a) {
1861
- var o = bs();
1843
+ var o = ws();
1862
1844
  return function() {
1863
1845
  var t = A(a), e;
1864
1846
  if (o) {
@@ -1866,17 +1848,17 @@ function P(a) {
1866
1848
  e = Reflect.construct(t, arguments, i);
1867
1849
  } else
1868
1850
  e = t.apply(this, arguments);
1869
- return Jt(this, e);
1851
+ return Zt(this, e);
1870
1852
  };
1871
1853
  }
1872
- function Ts(a, o) {
1854
+ function bs(a, o) {
1873
1855
  for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = A(a), a !== null); )
1874
1856
  ;
1875
1857
  return a;
1876
1858
  }
1877
1859
  function L() {
1878
1860
  return typeof Reflect < "u" && Reflect.get ? L = Reflect.get.bind() : L = function(o, r, t) {
1879
- var e = Ts(o, r);
1861
+ var e = bs(o, r);
1880
1862
  if (e) {
1881
1863
  var i = Object.getOwnPropertyDescriptor(e, r);
1882
1864
  return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
@@ -1884,38 +1866,38 @@ function L() {
1884
1866
  }, L.apply(this, arguments);
1885
1867
  }
1886
1868
  function ue(a) {
1887
- return Es(a) || Ss(a) || xs(a) || Is();
1869
+ return Ts(a) || Es(a) || Ss(a) || xs();
1888
1870
  }
1889
- function Es(a) {
1871
+ function Ts(a) {
1890
1872
  if (Array.isArray(a))
1891
- return jt(a);
1873
+ return Vt(a);
1892
1874
  }
1893
- function Ss(a) {
1875
+ function Es(a) {
1894
1876
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
1895
1877
  return Array.from(a);
1896
1878
  }
1897
- function xs(a, o) {
1879
+ function Ss(a, o) {
1898
1880
  if (a) {
1899
1881
  if (typeof a == "string")
1900
- return jt(a, o);
1882
+ return Vt(a, o);
1901
1883
  var r = Object.prototype.toString.call(a).slice(8, -1);
1902
1884
  if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
1903
1885
  return Array.from(a);
1904
1886
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
1905
- return jt(a, o);
1887
+ return Vt(a, o);
1906
1888
  }
1907
1889
  }
1908
- function jt(a, o) {
1890
+ function Vt(a, o) {
1909
1891
  (o == null || o > a.length) && (o = a.length);
1910
1892
  for (var r = 0, t = new Array(o); r < o; r++)
1911
1893
  t[r] = a[r];
1912
1894
  return t;
1913
1895
  }
1914
- function Is() {
1896
+ function xs() {
1915
1897
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1916
1898
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1917
1899
  }
1918
- function Ps(a, o) {
1900
+ function Is(a, o) {
1919
1901
  if (typeof a != "object" || a === null)
1920
1902
  return a;
1921
1903
  var r = a[Symbol.toPrimitive];
@@ -1928,7 +1910,7 @@ function Ps(a, o) {
1928
1910
  return (o === "string" ? String : Number)(a);
1929
1911
  }
1930
1912
  function Wi(a) {
1931
- var o = Ps(a, "string");
1913
+ var o = Is(a, "string");
1932
1914
  return typeof o == "symbol" ? o : String(o);
1933
1915
  }
1934
1916
  var Gi = { exports: {} };
@@ -2043,38 +2025,38 @@ var Gi = { exports: {} };
2043
2025
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
2044
2026
  })(Gi);
2045
2027
  var $i = Gi.exports;
2046
- const Ki = /* @__PURE__ */ qt($i);
2047
- var As = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, St = {
2028
+ const Ki = /* @__PURE__ */ Xt($i);
2029
+ var Ps = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Et = {
2048
2030
  info: "color: #525252; background-color: #90ee90;",
2049
2031
  error: "color: #525252; background-color: red;",
2050
2032
  warn: "color: #525252; background-color: yellow; "
2051
- }, xt = "%c[xgplayer]", F = {
2033
+ }, St = "%c[xgplayer]", F = {
2052
2034
  config: {
2053
- debug: As ? 3 : 0
2035
+ debug: Ps ? 3 : 0
2054
2036
  },
2055
2037
  logInfo: function(o) {
2056
2038
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
2057
2039
  e[i - 1] = arguments[i];
2058
- this.config.debug >= 3 && (r = console).log.apply(r, [xt, St.info, o].concat(e));
2040
+ this.config.debug >= 3 && (r = console).log.apply(r, [St, Et.info, o].concat(e));
2059
2041
  },
2060
2042
  logWarn: function(o) {
2061
2043
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
2062
2044
  e[i - 1] = arguments[i];
2063
- this.config.debug >= 1 && (r = console).warn.apply(r, [xt, St.warn, o].concat(e));
2045
+ this.config.debug >= 1 && (r = console).warn.apply(r, [St, Et.warn, o].concat(e));
2064
2046
  },
2065
2047
  logError: function(o) {
2066
2048
  var r;
2067
2049
  if (!(this.config.debug < 1)) {
2068
2050
  for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
2069
2051
  i[n - 1] = arguments[n];
2070
- (r = console)[t].apply(r, [xt, St.error, o].concat(i));
2052
+ (r = console)[t].apply(r, [St, Et.error, o].concat(i));
2071
2053
  }
2072
2054
  }
2073
2055
  };
2074
- function Ls(a) {
2056
+ function As(a) {
2075
2057
  a.logInfo = F.logInfo.bind(a), a.logWarn = F.logWarn.bind(a), a.logError = F.logError.bind(a);
2076
2058
  }
2077
- var Ds = /* @__PURE__ */ function() {
2059
+ var Ls = /* @__PURE__ */ function() {
2078
2060
  function a(o) {
2079
2061
  T(this, a), this.bufferedList = o;
2080
2062
  }
@@ -2320,7 +2302,7 @@ h.setStyleFromCsstext = function(a, o) {
2320
2302
  a.style[t] = o[t];
2321
2303
  });
2322
2304
  };
2323
- function Rs(a, o) {
2305
+ function Ds(a, o) {
2324
2306
  for (var r = 0, t = o.length; r < t; r++)
2325
2307
  if (a.indexOf(o[r]) > -1)
2326
2308
  return !0;
@@ -2334,7 +2316,7 @@ h.filterStyleFromText = function(a) {
2334
2316
  return t.map(function(n) {
2335
2317
  if (n) {
2336
2318
  var s = n.split(":");
2337
- s.length > 1 && (Rs(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2319
+ s.length > 1 && (Ds(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2338
2320
  }
2339
2321
  }), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
2340
2322
  a.style[n] = i[n];
@@ -2399,7 +2381,7 @@ h.getBuffered2 = function(a) {
2399
2381
  }
2400
2382
  else
2401
2383
  e = r;
2402
- return new Ds(e);
2384
+ return new Ls(e);
2403
2385
  };
2404
2386
  h.getEventPos = function(a) {
2405
2387
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -2523,7 +2505,7 @@ function Yi(a) {
2523
2505
  var o = q(a);
2524
2506
  return a !== null && (o === "object" || o === "function");
2525
2507
  }
2526
- function Os(a, o, r) {
2508
+ function Rs(a, o, r) {
2527
2509
  var t, e, i, n, s, l, u = 0, c = !1, f = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
2528
2510
  if (typeof a != "function")
2529
2511
  throw new TypeError("Expected a function");
@@ -2563,7 +2545,7 @@ function Os(a, o, r) {
2563
2545
  function V() {
2564
2546
  s !== void 0 && y(s), u = 0, t = l = e = s = void 0;
2565
2547
  }
2566
- function R() {
2548
+ function D() {
2567
2549
  return s === void 0 ? n : M(Date.now());
2568
2550
  }
2569
2551
  function Z() {
@@ -2580,23 +2562,23 @@ function Os(a, o, r) {
2580
2562
  }
2581
2563
  return s === void 0 && (s = m(B, o)), n;
2582
2564
  }
2583
- return $.cancel = V, $.flush = R, $.pending = Z, $;
2565
+ return $.cancel = V, $.flush = D, $.pending = Z, $;
2584
2566
  }
2585
- function Fs(a, o, r) {
2567
+ function Os(a, o, r) {
2586
2568
  var t = !0, e = !0;
2587
2569
  if (typeof a != "function")
2588
2570
  throw new TypeError("Expected a function");
2589
- return Yi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Os(a, o, {
2571
+ return Yi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Rs(a, o, {
2590
2572
  leading: t,
2591
2573
  trailing: e,
2592
2574
  maxWait: o
2593
2575
  });
2594
2576
  }
2595
- function Ms() {
2577
+ function Fs() {
2596
2578
  var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
2597
2579
  return a === "zh-cn" && (a = "zh"), a;
2598
2580
  }
2599
- function Ns(a, o, r) {
2581
+ function Ms(a, o, r) {
2600
2582
  if (a) {
2601
2583
  var t = a.getAttribute(r);
2602
2584
  return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
@@ -2605,7 +2587,7 @@ function Ns(a, o, r) {
2605
2587
  var gi = {
2606
2588
  android: /(Android)\s([\d.]+)/,
2607
2589
  ios: /(Version)\/([\d.]+)/
2608
- }, Bs = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], O = {
2590
+ }, Ns = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], O = {
2609
2591
  get device() {
2610
2592
  var a = O.os;
2611
2593
  return a.isPc ? "pc" : "mobile";
@@ -2668,7 +2650,7 @@ var gi = {
2668
2650
  if (this.supportResult)
2669
2651
  return this.supportResult;
2670
2652
  var r = document.createElement("video");
2671
- return typeof r.canPlayType == "function" && Bs.map(function(t) {
2653
+ return typeof r.canPlayType == "function" && Ns.map(function(t) {
2672
2654
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
2673
2655
  }), this.supportResult = o, r = null, o;
2674
2656
  },
@@ -2707,7 +2689,7 @@ var gi = {
2707
2689
  return Promise.resolve(r);
2708
2690
  }
2709
2691
  }
2710
- }, Wt = "3.0.18", pi = {
2692
+ }, jt = "3.0.18", pi = {
2711
2693
  1: "media",
2712
2694
  2: "media",
2713
2695
  3: "media",
@@ -2721,7 +2703,7 @@ var gi = {
2721
2703
  4: 5104,
2722
2704
  5: 5105,
2723
2705
  6: 5106
2724
- }, ft = /* @__PURE__ */ E(
2706
+ }, ct = /* @__PURE__ */ E(
2725
2707
  function a(o) {
2726
2708
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2727
2709
  errorType: "",
@@ -2737,7 +2719,7 @@ var gi = {
2737
2719
  var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, f = c.readyState, d = c.networkState, g = r.errorCode || e.code;
2738
2720
  vi[g] && (g = vi[g]);
2739
2721
  var p = {
2740
- playerVersion: Wt,
2722
+ playerVersion: jt,
2741
2723
  currentTime: n,
2742
2724
  duration: i,
2743
2725
  ended: s,
@@ -2756,85 +2738,85 @@ var gi = {
2756
2738
  }), p;
2757
2739
  } else if (arguments.length > 1) {
2758
2740
  for (var m = {
2759
- playerVersion: Wt,
2741
+ playerVersion: jt,
2760
2742
  domain: document.domain
2761
2743
  }, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
2762
2744
  m[y[k]] = arguments[k];
2763
2745
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
2764
2746
  }
2765
2747
  }
2766
- ), re = "play", Qt = "playing", Be = "ended", Xe = "pause", nt = "error", Ct = "seeking", _e = "seeked", ne = "timeupdate", rt = "waiting", me = "canplay", Hs = "canplaythrough", Pe = "durationchange", Xi = "volumechange", ke = "loadeddata", Us = "loadedmetadata", qi = "ratechange", Zi = "progress", ei = "loadstart", He = "emptied", zs = "stalled", Vs = "suspend", js = "abort", Ws = "bufferedChange", ti = "focus", Ji = "blur", ii = "ready", Qi = "urlNull", Me = "autoplay_started", ni = "autoplay_was_prevented", wt = "complete", ht = "replay", ri = "destroy", bt = "urlchange", Gt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", dt = "cssFullscreen_change", gt = "mini_state_change", si = "definition_change", Gs = "before_definition_change", $t = "after_definition_change", $s = "SEI_PARSED", Ks = "retry", Se = "video_resize", Kt = "pip_change", rn = "rotate", sn = "screenShot", pt = "playnext", on = "shortcut", an = "xglog", vt = "user_action", Tt = "reset", ln = "source_error", un = "source_success", Ys = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
2748
+ ), re = "play", Jt = "playing", Be = "ended", Xe = "pause", it = "error", kt = "seeking", ye = "seeked", ne = "timeupdate", nt = "waiting", ve = "canplay", Bs = "canplaythrough", Pe = "durationchange", Xi = "volumechange", _e = "loadeddata", Hs = "loadedmetadata", qi = "ratechange", Zi = "progress", Qt = "loadstart", He = "emptied", Us = "stalled", zs = "suspend", Vs = "abort", js = "bufferedChange", ei = "focus", Ji = "blur", ti = "ready", Qi = "urlNull", Me = "autoplay_started", ii = "autoplay_was_prevented", Ct = "complete", ft = "replay", ni = "destroy", wt = "urlchange", Wt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ht = "cssFullscreen_change", dt = "mini_state_change", ri = "definition_change", Ws = "before_definition_change", Gt = "after_definition_change", Gs = "SEI_PARSED", $s = "retry", Se = "video_resize", $t = "pip_change", rn = "rotate", sn = "screenShot", gt = "playnext", on = "shortcut", an = "xglog", pt = "user_action", bt = "reset", ln = "source_error", un = "source_success", Ks = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
2767
2749
  STATS_INFO: "stats_info",
2768
2750
  STATS_DOWNLOAD: "stats_download",
2769
2751
  STATS_RESET: "stats_reset"
2770
2752
  }, hn = "fps_stuck";
2771
- const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2753
+ const Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2772
2754
  __proto__: null,
2773
- ABORT: js,
2774
- AFTER_DEFINITION_CHANGE: $t,
2775
- AUTOPLAY_PREVENTED: ni,
2755
+ ABORT: Vs,
2756
+ AFTER_DEFINITION_CHANGE: Gt,
2757
+ AUTOPLAY_PREVENTED: ii,
2776
2758
  AUTOPLAY_STARTED: Me,
2777
- BEFORE_DEFINITION_CHANGE: Gs,
2778
- BUFFER_CHANGE: Ws,
2779
- CANPLAY: me,
2780
- CANPLAY_THROUGH: Hs,
2781
- COMPLETE: wt,
2782
- CSS_FULLSCREEN_CHANGE: dt,
2783
- DEFINITION_CHANGE: si,
2784
- DESTROY: ri,
2785
- DOWNLOAD_SPEED_CHANGE: Gt,
2759
+ BEFORE_DEFINITION_CHANGE: Ws,
2760
+ BUFFER_CHANGE: js,
2761
+ CANPLAY: ve,
2762
+ CANPLAY_THROUGH: Bs,
2763
+ COMPLETE: Ct,
2764
+ CSS_FULLSCREEN_CHANGE: ht,
2765
+ DEFINITION_CHANGE: ri,
2766
+ DESTROY: ni,
2767
+ DOWNLOAD_SPEED_CHANGE: Wt,
2786
2768
  DURATION_CHANGE: Pe,
2787
2769
  EMPTIED: He,
2788
2770
  ENDED: Be,
2789
2771
  ENTER_PLAYER: tn,
2790
- ERROR: nt,
2772
+ ERROR: it,
2791
2773
  FPS_STUCK: hn,
2792
2774
  FULLSCREEN_CHANGE: ge,
2793
2775
  LEAVE_PLAYER: en,
2794
- LOADED_DATA: ke,
2795
- LOADED_METADATA: Us,
2776
+ LOADED_DATA: _e,
2777
+ LOADED_METADATA: Hs,
2796
2778
  LOADING: nn,
2797
- LOAD_START: ei,
2798
- MINI_STATE_CHANGE: gt,
2779
+ LOAD_START: Qt,
2780
+ MINI_STATE_CHANGE: dt,
2799
2781
  PAUSE: Xe,
2800
- PIP_CHANGE: Kt,
2782
+ PIP_CHANGE: $t,
2801
2783
  PLAY: re,
2802
2784
  PLAYER_BLUR: Ji,
2803
- PLAYER_FOCUS: ti,
2804
- PLAYING: Qt,
2805
- PLAYNEXT: pt,
2785
+ PLAYER_FOCUS: ei,
2786
+ PLAYING: Jt,
2787
+ PLAYNEXT: gt,
2806
2788
  PROGRESS: Zi,
2807
2789
  RATE_CHANGE: qi,
2808
- READY: ii,
2809
- REPLAY: ht,
2810
- RESET: Tt,
2811
- RETRY: Ks,
2790
+ READY: ti,
2791
+ REPLAY: ft,
2792
+ RESET: bt,
2793
+ RETRY: $s,
2812
2794
  ROTATE: rn,
2813
2795
  SCREEN_SHOT: sn,
2814
- SEEKED: _e,
2815
- SEEKING: Ct,
2816
- SEI_PARSED: $s,
2796
+ SEEKED: ye,
2797
+ SEEKING: kt,
2798
+ SEI_PARSED: Gs,
2817
2799
  SHORTCUT: on,
2818
2800
  SOURCE_ERROR: ln,
2819
2801
  SOURCE_SUCCESS: un,
2820
- STALLED: zs,
2802
+ STALLED: Us,
2821
2803
  STATS_EVENTS: fn,
2822
- SUSPEND: Vs,
2823
- SWITCH_SUBTITLE: Ys,
2804
+ SUSPEND: zs,
2805
+ SWITCH_SUBTITLE: Ks,
2824
2806
  TIME_UPDATE: ne,
2825
- URL_CHANGE: bt,
2807
+ URL_CHANGE: wt,
2826
2808
  URL_NULL: Qi,
2827
- USER_ACTION: vt,
2809
+ USER_ACTION: pt,
2828
2810
  VIDEO_EVENTS: cn,
2829
2811
  VIDEO_RESIZE: Se,
2830
2812
  VOLUME_CHANGE: Xi,
2831
- WAITING: rt,
2813
+ WAITING: nt,
2832
2814
  XGLOG: an
2833
2815
  }, Symbol.toStringTag, { value: "Module" }));
2834
- function It(a, o) {
2816
+ function xt(a, o) {
2835
2817
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
2836
2818
  }
2837
- function qs(a, o) {
2819
+ function Xs(a, o) {
2838
2820
  return function(r, t) {
2839
2821
  var e = {
2840
2822
  player: o,
@@ -2859,17 +2841,17 @@ function qs(a, o) {
2859
2841
  o._rate = o.media && o.media.playbackRate;
2860
2842
  }
2861
2843
  if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
2862
- var n = It.bind(o, a, e);
2844
+ var n = xt.bind(o, a, e);
2863
2845
  try {
2864
2846
  o.mediaEventMiddleware[a].call(o, e, n);
2865
2847
  } catch (s) {
2866
- throw It.call(o, a, e), s;
2848
+ throw xt.call(o, a, e), s;
2867
2849
  }
2868
2850
  } else
2869
- It.call(o, a, e);
2851
+ xt.call(o, a, e);
2870
2852
  };
2871
2853
  }
2872
- var Zs = /* @__PURE__ */ function(a) {
2854
+ var qs = /* @__PURE__ */ function(a) {
2873
2855
  I(r, a);
2874
2856
  var o = P(r);
2875
2857
  function r(t) {
@@ -2913,7 +2895,7 @@ var Zs = /* @__PURE__ */ function(a) {
2913
2895
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
2914
2896
  this._evHandlers || (this._evHandlers = cn.map(function(n) {
2915
2897
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
2916
- return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, qs(n, e));
2898
+ return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Xs(n, e));
2917
2899
  })), this._evHandlers.forEach(function(n) {
2918
2900
  var s = Object.keys(n)[0];
2919
2901
  i.addEventListener(s, n[s], !1);
@@ -2965,7 +2947,7 @@ var Zs = /* @__PURE__ */ function(a) {
2965
2947
  l ? l.error(f, g) : n.errorHandler("error", g);
2966
2948
  }
2967
2949
  var p = pi[4];
2968
- n.emit(ln, new ft(n, {
2950
+ n.emit(ln, new ct(n, {
2969
2951
  errorType: p,
2970
2952
  errorCode: 4,
2971
2953
  errorMessage: "sources_load_error",
@@ -3002,7 +2984,7 @@ var Zs = /* @__PURE__ */ function(a) {
3002
2984
  this.media.currentSrc || (l = "empty_src", n = {
3003
2985
  code: 6,
3004
2986
  message: l
3005
- }), this.emit(e, new ft(this, {
2987
+ }), this.emit(e, new ct(this, {
3006
2988
  errorType: s,
3007
2989
  errorCode: n.code,
3008
2990
  errorMessage: n.message || "",
@@ -3223,7 +3205,7 @@ var Zs = /* @__PURE__ */ function(a) {
3223
3205
  },
3224
3206
  set: function(e) {
3225
3207
  if (this.media) {
3226
- if (this.emit(bt, e), this.emit(rt), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3208
+ if (this.emit(wt, e), this.emit(nt), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3227
3209
  this.onWaiting();
3228
3210
  return;
3229
3211
  }
@@ -3287,7 +3269,7 @@ var Zs = /* @__PURE__ */ function(a) {
3287
3269
  L(A(r.prototype), "removeAllListeners", this).call(this);
3288
3270
  }
3289
3271
  }]), r;
3290
- }(Ki), Js = /* @__PURE__ */ function() {
3272
+ }(Ki), Zs = /* @__PURE__ */ function() {
3291
3273
  function a() {
3292
3274
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3293
3275
  name: "xgplayer",
@@ -3366,7 +3348,7 @@ var Zs = /* @__PURE__ */ function(a) {
3366
3348
  }
3367
3349
  }]), a;
3368
3350
  }(), mi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], yi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], _i = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Re = "data-xgplayerid";
3369
- function st(a, o, r) {
3351
+ function rt(a, o, r) {
3370
3352
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3371
3353
  e[i - 3] = arguments[i];
3372
3354
  var n = o.call.apply(o, [a].concat(e));
@@ -3376,7 +3358,7 @@ function st(a, o, r) {
3376
3358
  r.call.apply(r, [a].concat(l));
3377
3359
  }) : r.call.apply(r, [a].concat(e)));
3378
3360
  }
3379
- function mt(a, o) {
3361
+ function vt(a, o) {
3380
3362
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3381
3363
  pre: null,
3382
3364
  next: null
@@ -3394,23 +3376,23 @@ function mt(a, o) {
3394
3376
  try {
3395
3377
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
3396
3378
  s ? s.then ? s.then(function(l) {
3397
- l !== !1 && st.apply(void 0, [e, o, r.next].concat(ue(t)));
3379
+ l !== !1 && rt.apply(void 0, [e, o, r.next].concat(ue(t)));
3398
3380
  }).catch(function(l) {
3399
3381
  throw l;
3400
- }) : st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3382
+ }) : rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3401
3383
  } catch (l) {
3402
3384
  throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
3403
3385
  }
3404
3386
  else
3405
- st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3387
+ rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3406
3388
  }).bind(this);
3407
3389
  }
3408
- function yt(a, o) {
3390
+ function mt(a, o) {
3409
3391
  var r = this.__hooks;
3410
3392
  if (r)
3411
3393
  return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
3412
3394
  }
3413
- function _t(a, o) {
3395
+ function yt(a, o) {
3414
3396
  var r = this.__hooks;
3415
3397
  r && delete r[a];
3416
3398
  }
@@ -3463,7 +3445,7 @@ function pe(a, o, r) {
3463
3445
  } else
3464
3446
  return r.call.apply(r, [a, a].concat(e));
3465
3447
  }
3466
- function Pt(a, o) {
3448
+ function It(a, o) {
3467
3449
  F.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3468
3450
  }
3469
3451
  var xe = /* @__PURE__ */ function() {
@@ -3530,7 +3512,7 @@ var xe = /* @__PURE__ */ function() {
3530
3512
  value: function(r, t) {
3531
3513
  var e = this;
3532
3514
  if (!r || !t || !this.player) {
3533
- Pt(this.pluginName, "plugin.on(event, callback)");
3515
+ It(this.pluginName, "plugin.on(event, callback)");
3534
3516
  return;
3535
3517
  }
3536
3518
  typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3542,7 +3524,7 @@ var xe = /* @__PURE__ */ function() {
3542
3524
  value: function(r, t) {
3543
3525
  var e = this;
3544
3526
  if (!r || !t || !this.player) {
3545
- Pt(this.pluginName, "plugin.once(event, callback)");
3527
+ It(this.pluginName, "plugin.once(event, callback)");
3546
3528
  return;
3547
3529
  }
3548
3530
  typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3554,7 +3536,7 @@ var xe = /* @__PURE__ */ function() {
3554
3536
  value: function(r, t) {
3555
3537
  var e = this;
3556
3538
  if (!r || !t || !this.player) {
3557
- Pt(this.pluginName, "plugin.off(event, callback)");
3539
+ It(this.pluginName, "plugin.off(event, callback)");
3558
3540
  return;
3559
3541
  }
3560
3542
  typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3595,21 +3577,21 @@ var xe = /* @__PURE__ */ function() {
3595
3577
  }, {
3596
3578
  key: "hook",
3597
3579
  value: function(r, t) {
3598
- return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
3580
+ return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
3599
3581
  }
3600
3582
  }, {
3601
3583
  key: "useHooks",
3602
3584
  value: function(r, t) {
3603
3585
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
3604
3586
  i[n - 2] = arguments[n];
3605
- return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
3587
+ return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
3606
3588
  }
3607
3589
  }, {
3608
3590
  key: "removeHooks",
3609
3591
  value: function(r, t) {
3610
3592
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
3611
3593
  i[n - 2] = arguments[n];
3612
- return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
3594
+ return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
3613
3595
  }
3614
3596
  }, {
3615
3597
  key: "registerPlugin",
@@ -3651,40 +3633,40 @@ var xe = /* @__PURE__ */ function() {
3651
3633
  return "pluginName";
3652
3634
  }
3653
3635
  }]), a;
3654
- }(), Qs = 9;
3636
+ }(), Js = 9;
3655
3637
  if (typeof Element < "u" && !Element.prototype.matches) {
3656
3638
  var ze = Element.prototype;
3657
3639
  ze.matches = ze.matchesSelector || ze.mozMatchesSelector || ze.msMatchesSelector || ze.oMatchesSelector || ze.webkitMatchesSelector;
3658
3640
  }
3659
- function eo(a, o) {
3660
- for (; a && a.nodeType !== Qs; ) {
3641
+ function Qs(a, o) {
3642
+ for (; a && a.nodeType !== Js; ) {
3661
3643
  if (typeof a.matches == "function" && a.matches(o))
3662
3644
  return a;
3663
3645
  a = a.parentNode;
3664
3646
  }
3665
3647
  }
3666
- var to = eo, io = to;
3667
- function At(a, o, r, t, e) {
3668
- var i = ro.apply(this, arguments);
3648
+ var eo = Qs, to = eo;
3649
+ function Pt(a, o, r, t, e) {
3650
+ var i = no.apply(this, arguments);
3669
3651
  return a.addEventListener(r, i, e), {
3670
3652
  destroy: function() {
3671
3653
  a.removeEventListener(r, i, e);
3672
3654
  }
3673
3655
  };
3674
3656
  }
3675
- function no(a, o, r, t, e) {
3676
- return typeof a.addEventListener == "function" ? At.apply(null, arguments) : typeof r == "function" ? At.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
3677
- return At(i, o, r, t, e);
3657
+ function io(a, o, r, t, e) {
3658
+ return typeof a.addEventListener == "function" ? Pt.apply(null, arguments) : typeof r == "function" ? Pt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
3659
+ return Pt(i, o, r, t, e);
3678
3660
  }));
3679
3661
  }
3680
- function ro(a, o, r, t) {
3662
+ function no(a, o, r, t) {
3681
3663
  return function(e) {
3682
- e.delegateTarget = io(e.target, o), e.delegateTarget && t.call(a, e);
3664
+ e.delegateTarget = to(e.target, o), e.delegateTarget && t.call(a, e);
3683
3665
  };
3684
3666
  }
3685
- var so = no;
3686
- const wi = /* @__PURE__ */ qt(so);
3687
- var oo = {
3667
+ var ro = io;
3668
+ const wi = /* @__PURE__ */ Xt(ro);
3669
+ var so = {
3688
3670
  CONTROLS: "controls",
3689
3671
  ROOT: "root"
3690
3672
  }, j = {
@@ -3701,13 +3683,13 @@ var oo = {
3701
3683
  ICON_DISABLE: "xg-icon-disable",
3702
3684
  ICON_HIDE: "xg-icon-hide"
3703
3685
  };
3704
- function Lt(a) {
3686
+ function At(a) {
3705
3687
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
3706
3688
  }
3707
- function ao(a, o) {
3689
+ function oo(a, o) {
3708
3690
  return q(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
3709
3691
  }
3710
- function lo(a, o) {
3692
+ function ao(a, o) {
3711
3693
  return q(a) === "object" && a.attr && q(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
3712
3694
  o[r] = a.attr[r];
3713
3695
  }), o;
@@ -3718,8 +3700,8 @@ function Ti(a, o) {
3718
3700
  return h.addClass(a, r), Object.keys(t).map(function(n) {
3719
3701
  a.setAttribute(n, t[n]);
3720
3702
  }), a;
3721
- if (Lt(a) || Lt(a.url))
3722
- return t.src = Lt(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
3703
+ if (At(a) || At(a.url))
3704
+ return t.src = At(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
3723
3705
  if (typeof a == "function")
3724
3706
  try {
3725
3707
  return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
@@ -3730,14 +3712,14 @@ function Ti(a, o) {
3730
3712
  }
3731
3713
  return typeof a == "string" ? h.createDomFromHtml(a, t, r) : (F.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
3732
3714
  }
3733
- function uo(a, o) {
3715
+ function lo(a, o) {
3734
3716
  var r = o.config.icons || o.playerConfig.icons;
3735
3717
  Object.keys(a).map(function(t) {
3736
3718
  var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
3737
- r && r[t] && (i = ao(r[t], i), n = lo(r[t], n), s = Ti(r[t], t, i, n, o.pluginName)), !s && e && (s = Ti(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
3719
+ r && r[t] && (i = oo(r[t], i), n = ao(r[t], n), s = Ti(r[t], t, i, n, o.pluginName)), !s && e && (s = Ti(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
3738
3720
  });
3739
3721
  }
3740
- function co(a, o) {
3722
+ function uo(a, o) {
3741
3723
  Object.keys(a).map(function(r) {
3742
3724
  Object.defineProperty(o.langText, r, {
3743
3725
  get: function() {
@@ -3761,9 +3743,9 @@ var U = /* @__PURE__ */ function(a) {
3761
3743
  var i = e.root, n = null;
3762
3744
  this.icons = {}, this.root = null, this.parent = null;
3763
3745
  var s = this.registerIcons() || {};
3764
- uo(s, this), this.langText = {};
3746
+ lo(s, this), this.langText = {};
3765
3747
  var l = this.registerLanguageTexts() || {};
3766
- co(l, this);
3748
+ uo(l, this);
3767
3749
  var u = "";
3768
3750
  try {
3769
3751
  u = this.render();
@@ -4032,7 +4014,7 @@ var U = /* @__PURE__ */ function(a) {
4032
4014
  }, {
4033
4015
  key: "ROOT_TYPES",
4034
4016
  get: function() {
4035
- return oo;
4017
+ return so;
4036
4018
  }
4037
4019
  }, {
4038
4020
  key: "POSITIONS",
@@ -4040,7 +4022,7 @@ var U = /* @__PURE__ */ function(a) {
4040
4022
  return j;
4041
4023
  }
4042
4024
  }]), r;
4043
- }(xe), fo = /* @__PURE__ */ function() {
4025
+ }(xe), co = /* @__PURE__ */ function() {
4044
4026
  function a() {
4045
4027
  var o = this;
4046
4028
  if (T(this, a), _(this, "__trigger", function(r) {
@@ -4050,7 +4032,7 @@ var U = /* @__PURE__ */ function(a) {
4050
4032
  o.__runHandler(r[e].target);
4051
4033
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
4052
4034
  try {
4053
- this.observer = new window.ResizeObserver(Fs(this.__trigger, 100, {
4035
+ this.observer = new window.ResizeObserver(Os(this.__trigger, 100, {
4054
4036
  trailing: !0
4055
4037
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
4056
4038
  } catch (r) {
@@ -4105,17 +4087,17 @@ var U = /* @__PURE__ */ function(a) {
4105
4087
  }
4106
4088
  }]), a;
4107
4089
  }(), Je = null;
4108
- function ho(a, o) {
4109
- return Je || (Je = new fo()), Je.addObserver(a, o), Je;
4090
+ function fo(a, o) {
4091
+ return Je || (Je = new co()), Je.addObserver(a, o), Je;
4110
4092
  }
4111
- function go(a, o) {
4093
+ function ho(a, o) {
4112
4094
  Je.unObserver(a, o);
4113
4095
  }
4114
4096
  var K = {
4115
4097
  pluginGroup: {},
4116
4098
  init: function(o) {
4117
4099
  var r = o._pluginInfoId;
4118
- r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && ho(o.root, function() {
4100
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && fo(o.root, function() {
4119
4101
  o.resize();
4120
4102
  }), this.pluginGroup[r] = {
4121
4103
  _originalOptions: o.config || {},
@@ -4301,7 +4283,7 @@ var K = {
4301
4283
  destroy: function(o) {
4302
4284
  var r = o._pluginInfoId;
4303
4285
  if (this.pluginGroup[r]) {
4304
- go(o.root);
4286
+ ho(o.root);
4305
4287
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
4306
4288
  var n = i[e];
4307
4289
  this.unRegister(r, n);
@@ -4387,7 +4369,7 @@ function Ei() {
4387
4369
  ignores: [],
4388
4370
  whitelist: [],
4389
4371
  inactive: 3e3,
4390
- lang: Ms(),
4372
+ lang: Fs(),
4391
4373
  controls: !0,
4392
4374
  marginControls: !1,
4393
4375
  fullscreenTarget: null,
@@ -4423,7 +4405,7 @@ function Ei() {
4423
4405
  }
4424
4406
  };
4425
4407
  }
4426
- var po = function(o, r) {
4408
+ var go = function(o, r) {
4427
4409
  var t, e, i;
4428
4410
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
4429
4411
  var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, f = n.icons, d = f === void 0 ? {} : f, g = n.i18n, p = g === void 0 ? [] : g;
@@ -4432,7 +4414,7 @@ var po = function(o, r) {
4432
4414
  });
4433
4415
  var m = o.config.i18n || [];
4434
4416
  p.push.apply(p, ue(m)), o.config.i18n = p;
4435
- }, vo = /* @__PURE__ */ function(a) {
4417
+ }, po = /* @__PURE__ */ function(a) {
4436
4418
  I(r, a);
4437
4419
  var o = P(r);
4438
4420
  function r() {
@@ -4466,7 +4448,7 @@ var po = function(o, r) {
4466
4448
  };
4467
4449
  Object.keys(u).map(function(f) {
4468
4450
  e.root.style[f] = u[f];
4469
- }), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(gt, function(f) {
4451
+ }), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(dt, function(f) {
4470
4452
  f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
4471
4453
  });
4472
4454
  var c = this.playerConfig.isMobileSimulateMode;
@@ -4593,7 +4575,7 @@ var po = function(o, r) {
4593
4575
  };
4594
4576
  }
4595
4577
  }]), r;
4596
- }(U), mo = {
4578
+ }(U), vo = {
4597
4579
  LANG: "en",
4598
4580
  TEXT: {
4599
4581
  ERROR_TYPES: {
@@ -4673,14 +4655,14 @@ var po = function(o, r) {
4673
4655
  langKeys: [],
4674
4656
  textKeys: []
4675
4657
  };
4676
- function tt(a, o) {
4658
+ function et(a, o) {
4677
4659
  return Object.keys(o).forEach(function(r) {
4678
4660
  var t = h.typeOf(o[r]), e = h.typeOf(a[r]);
4679
4661
  if (t === "Array") {
4680
4662
  var i;
4681
4663
  e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ue(o[r]));
4682
4664
  } else
4683
- t === "Object" ? (e !== "Object" && (a[r] = {}), tt(a[r], o[r])) : a[r] = o[r];
4665
+ t === "Object" ? (e !== "Object" && (a[r] = {}), et(a[r], o[r])) : a[r] = o[r];
4684
4666
  }), a;
4685
4667
  }
4686
4668
  function pn() {
@@ -4688,7 +4670,7 @@ function pn() {
4688
4670
  ie.textKeys[a] = a;
4689
4671
  });
4690
4672
  }
4691
- function yo(a, o) {
4673
+ function mo(a, o) {
4692
4674
  var r = [];
4693
4675
  if (o || (o = ie), !!o.lang) {
4694
4676
  h.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
@@ -4700,27 +4682,27 @@ function yo(a, o) {
4700
4682
  }) : r = a;
4701
4683
  var t = o, e = t.lang;
4702
4684
  r.map(function(i) {
4703
- i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? tt(e[i.LANG] || {}, i.TEXT || {}) : oi(i, o);
4685
+ i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? et(e[i.LANG] || {}, i.TEXT || {}) : si(i, o);
4704
4686
  }), pn();
4705
4687
  }
4706
4688
  }
4707
- function oi(a, o) {
4689
+ function si(a, o) {
4708
4690
  var r = a.LANG;
4709
4691
  if (o || (o = ie), !!o.lang) {
4710
4692
  var t = a.TEXT || {};
4711
- r === "zh" && (r = "zh-cn"), o.lang[r] ? tt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4693
+ r === "zh" && (r = "zh-cn"), o.lang[r] ? et(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4712
4694
  }
4713
4695
  }
4714
- function _o(a) {
4696
+ function yo(a) {
4715
4697
  var o, r = {
4716
4698
  lang: {},
4717
4699
  langKeys: [],
4718
4700
  textKeys: {},
4719
4701
  pId: a
4720
4702
  };
4721
- return tt(r.lang, ie.lang), (o = r.langKeys).push.apply(o, ue(ie.langKeys)), tt(r.textKeys, ie.textKeys), r;
4703
+ return et(r.lang, ie.lang), (o = r.langKeys).push.apply(o, ue(ie.langKeys)), et(r.textKeys, ie.textKeys), r;
4722
4704
  }
4723
- oi(mo);
4705
+ si(vo);
4724
4706
  var Ye = {
4725
4707
  get textKeys() {
4726
4708
  return ie.textKeys;
@@ -4734,9 +4716,9 @@ var Ye = {
4734
4716
  a[o] = ie.lang[o];
4735
4717
  }), ie.lang["zh-cn"] && (a.zh = ie.lang["zh-cn"] || {}), a;
4736
4718
  },
4737
- extend: yo,
4738
- use: oi,
4739
- init: _o
4719
+ extend: mo,
4720
+ use: si,
4721
+ init: yo
4740
4722
  }, N = {
4741
4723
  INITIAL: 1,
4742
4724
  READY: 2,
@@ -4746,7 +4728,7 @@ var Ye = {
4746
4728
  RUNNING: 6,
4747
4729
  ENDED: 7,
4748
4730
  DESTROYED: 8
4749
- }, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], J = {}, Dt = null, vn = /* @__PURE__ */ function(a) {
4731
+ }, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], J = {}, Lt = null, vn = /* @__PURE__ */ function(a) {
4750
4732
  I(r, a);
4751
4733
  var o = P(r);
4752
4734
  function r() {
@@ -4829,11 +4811,11 @@ var Ye = {
4829
4811
  }], [{
4830
4812
  key: "getInstance",
4831
4813
  value: function() {
4832
- return Dt || (Dt = new r()), Dt;
4814
+ return Lt || (Lt = new r()), Lt;
4833
4815
  }
4834
4816
  }]), r;
4835
4817
  }($i.EventEmitter);
4836
- function ko(a) {
4818
+ function _o(a) {
4837
4819
  for (var o = Object.keys(J), r = 0; r < o.length; r++) {
4838
4820
  var t = J[o[r]];
4839
4821
  if (t.root === a)
@@ -4841,7 +4823,7 @@ function ko(a) {
4841
4823
  }
4842
4824
  return null;
4843
4825
  }
4844
- var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /* @__PURE__ */ function(a) {
4826
+ var ko = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, ke = null, Tt = /* @__PURE__ */ function(a) {
4845
4827
  I(r, a);
4846
4828
  var o = P(r);
4847
4829
  function r(t) {
@@ -4851,7 +4833,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4851
4833
  e = o.call(this, i), _(v(e), "canPlayFunc", function() {
4852
4834
  if (e.config) {
4853
4835
  var p = e.config, m = p.autoplay, y = p.defaultPlaybackRate;
4854
- F.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(me, e.canPlayFunc), e.removeClass(C.ENTER);
4836
+ F.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(ve, e.canPlayFunc), e.removeClass(C.ENTER);
4855
4837
  }
4856
4838
  }), _(v(e), "onFullscreenChange", function(p, m) {
4857
4839
  var y = function() {
@@ -4859,7 +4841,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4859
4841
  e.resize();
4860
4842
  }, 100);
4861
4843
  }, k = h.getFullScreenEl();
4862
- e._fullActionFrom ? e._fullActionFrom = "" : e.emit(vt, {
4844
+ e._fullActionFrom ? e._fullActionFrom = "" : e.emit(pt, {
4863
4845
  eventType: "system",
4864
4846
  action: "switch_fullscreen",
4865
4847
  pluginName: "player",
@@ -4871,7 +4853,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4871
4853
  to: !1
4872
4854
  }]
4873
4855
  });
4874
- var b = Ns(k, e.playerId, Re);
4856
+ var b = Ms(k, e.playerId, Re);
4875
4857
  if (m || k && (k === e._fullscreenEl || b))
4876
4858
  y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4877
4859
  else if (e.fullscreen) {
@@ -4891,7 +4873,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4891
4873
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
4892
4874
  }), _(v(e), "_onWebkitendfullscreen", function(p) {
4893
4875
  e.onFullscreenChange(p, !1);
4894
- }), dn(v(e), Co), e.config = i, e._pluginInfoId = h.generateSessionId(), Ls(v(e));
4876
+ }), dn(v(e), ko), e.config = i, e._pluginInfoId = h.generateSessionId(), As(v(e));
4895
4877
  var n = e.constructor.defaultPreset;
4896
4878
  if (e.config.presets.length) {
4897
4879
  var s = e.config.presets.indexOf("default");
@@ -4920,12 +4902,12 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4920
4902
  }, e._offsetInfo = {
4921
4903
  currentTime: -1,
4922
4904
  duration: 0
4923
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ye.init(e._pluginInfoId), O.os.isAndroid && O.osVersion > 0 && O.osVersion < 6 && (e.config.autoplay = !1), e.database = new Js(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4905
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ye.init(e._pluginInfoId), O.os.isAndroid && O.osVersion > 0 && O.osVersion < 6 && (e.config.autoplay = !1), e.database = new Zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4924
4906
  isActiveLocked: !1
4925
- }, e.instManager = Ce;
4907
+ }, e.instManager = ke;
4926
4908
  var l = e._initDOM();
4927
4909
  if (!l)
4928
- return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Jt(e);
4910
+ return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Zt(e);
4929
4911
  var u = e.config, c = u.definition, f = c === void 0 ? {} : c, d = u.url;
4930
4912
  if (!d && f.list && f.list.length > 0) {
4931
4913
  var g = f.list.find(function(p) {
@@ -4934,7 +4916,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4934
4916
  g || (f.defaultDefinition = f.list[0].definition, g = f.list[0]), e.config.url = g.url, e.curDefinition = g;
4935
4917
  }
4936
4918
  return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), h.setTimeout(v(e), function() {
4937
- e.emit(ii);
4919
+ e.emit(ti);
4938
4920
  }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
4939
4921
  }
4940
4922
  return E(r, [{
@@ -4946,14 +4928,14 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4946
4928
  if (n && n.nodeType === 1)
4947
4929
  this.root = n;
4948
4930
  else
4949
- return this.emit(nt, new ft("use", this.config.vid, {
4931
+ return this.emit(it, new ct("use", this.config.vid, {
4950
4932
  line: 32,
4951
4933
  handle: "Constructor",
4952
4934
  msg: "container id can't be empty"
4953
4935
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4954
4936
  }
4955
- var s = ko(this.root);
4956
- s && (F.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Re, this.playerId), (e = Ce) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
4937
+ var s = _o(this.root);
4938
+ s && (F.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Re, this.playerId), (e = ke) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
4957
4939
  var l = this.constructor.XgVideoProxy;
4958
4940
  if (l && this.mediaConfig.mediaType === l.mediaType) {
4959
4941
  var u = this.innerContainer || this.root;
@@ -4962,7 +4944,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4962
4944
  this.attachVideoEvents(c), this.media = c;
4963
4945
  }
4964
4946
  if (this.media.setAttribute(Re, this.playerId), this.config.controls) {
4965
- var f = this.config.controls.root || null, d = K.register(this, vo, {
4947
+ var f = this.config.controls.root || null, d = K.register(this, po, {
4966
4948
  root: f
4967
4949
  });
4968
4950
  this.controls = d;
@@ -4977,12 +4959,12 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
4977
4959
  "max-width": "100%",
4978
4960
  "padding-top": "".concat(y * 100 / m, "%")
4979
4961
  };
4980
- Object.keys(k).forEach(function(R) {
4981
- i.root.style[R] = k[R];
4962
+ Object.keys(k).forEach(function(D) {
4963
+ i.root.style[D] = k[D];
4982
4964
  });
4983
4965
  } else
4984
- ["width", "height"].forEach(function(R) {
4985
- i.config[R] && (typeof i.config[R] != "number" ? i.root.style[R] = i.config[R] : i.root.style[R] = "".concat(i.config[R], "px"));
4966
+ ["width", "height"].forEach(function(D) {
4967
+ i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
4986
4968
  });
4987
4969
  var b = this.root.getBoundingClientRect(), w = b.width, B = b.height, M = b.left, V = b.top;
4988
4970
  return this.sizeInfo.width = w, this.sizeInfo.height = B, this.sizeInfo.left = M, this.sizeInfo.top = V, !0;
@@ -5002,7 +4984,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5002
4984
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
5003
4985
  }), mi.forEach(function(i) {
5004
4986
  document && document.addEventListener(i, e.onFullscreenChange);
5005
- }), O.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ke, this.resize), this.playFunc = function() {
4987
+ }), O.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(_e, this.resize), this.playFunc = function() {
5006
4988
  e.config.closeFocusVideoFocus || e.media.focus();
5007
4989
  }, this.once(re, this.playFunc);
5008
4990
  }
@@ -5012,7 +4994,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5012
4994
  var e = this;
5013
4995
  this.root.removeEventListener("mousemove", this.mousemoveFunc), mi.forEach(function(i) {
5014
4996
  document.removeEventListener(i, e.onFullscreenChange);
5015
- }), this.playFunc && this.off(re, this.playFunc), this.off(me, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4997
+ }), this.playFunc && this.off(re, this.playFunc), this.off(ve, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
5016
4998
  }
5017
4999
  }, {
5018
5000
  key: "_clearUserTimer",
@@ -5030,8 +5012,8 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5030
5012
  var s = this.media.readyState;
5031
5013
  F.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (O.os.isIpad || O.os.isPhone) && this.mediaPlay());
5032
5014
  var l = this.config.startTime;
5033
- this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(me, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), h.setTimeout(this, function() {
5034
- i.emit(wt);
5015
+ this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), h.setTimeout(this, function() {
5016
+ i.emit(Ct);
5035
5017
  }, 0);
5036
5018
  }
5037
5019
  }
@@ -5070,7 +5052,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5070
5052
  value: function() {
5071
5053
  var e = this;
5072
5054
  this.config.presets.forEach(function(i) {
5073
- po(e, i);
5055
+ go(e, i);
5074
5056
  });
5075
5057
  }
5076
5058
  }, {
@@ -5226,7 +5208,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5226
5208
  return;
5227
5209
  }
5228
5210
  n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
5229
- e._errorTimer = null, e.emit(ni), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(N.NOTALLOW);
5211
+ e._errorTimer = null, e.emit(ii), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(N.NOTALLOW);
5230
5212
  }, 0));
5231
5213
  }) : (F.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Me))), i;
5232
5214
  }
@@ -5262,7 +5244,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5262
5244
  var n = this;
5263
5245
  if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
5264
5246
  var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
5265
- e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(_e, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5247
+ e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(ye, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5266
5248
  switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
5267
5249
  case "play":
5268
5250
  n.play();
@@ -5274,7 +5256,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5274
5256
  n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
5275
5257
  }
5276
5258
  n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
5277
- }, this.once(_e, this._onceSeekCanplay), this.state < N.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5259
+ }, this.once(ye, this._onceSeekCanplay), this.state < N.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5278
5260
  }
5279
5261
  }
5280
5262
  }, {
@@ -5291,7 +5273,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5291
5273
  var n = this, s = this.config.definition;
5292
5274
  if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
5293
5275
  (e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
5294
- }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(si, {
5276
+ }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ri, {
5295
5277
  from: i,
5296
5278
  to: e
5297
5279
  }), !this.hasStart) {
@@ -5302,11 +5284,11 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5302
5284
  seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
5303
5285
  }, e));
5304
5286
  l && l.then ? l.then(function() {
5305
- n.emit($t, {
5287
+ n.emit(Gt, {
5306
5288
  from: i,
5307
5289
  to: e
5308
5290
  });
5309
- }) : this.emit($t, {
5291
+ }) : this.emit(Gt, {
5310
5292
  from: i,
5311
5293
  to: e
5312
5294
  });
@@ -5316,7 +5298,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5316
5298
  value: function() {
5317
5299
  this.load(), this.reloadFunc = function() {
5318
5300
  this.play();
5319
- }, this.once(ke, this.reloadFunc);
5301
+ }, this.once(_e, this.reloadFunc);
5320
5302
  }
5321
5303
  }, {
5322
5304
  key: "resetState",
@@ -5324,7 +5306,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5324
5306
  var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, f = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, f, d, g];
5325
5307
  this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
5326
5308
  e.removeClass(m);
5327
- }), this.addClass(C.NO_START), this.emit(Tt);
5309
+ }), this.addClass(C.NO_START), this.emit(bt);
5328
5310
  }
5329
5311
  }, {
5330
5312
  key: "reset",
@@ -5346,7 +5328,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5346
5328
  value: function() {
5347
5329
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5348
5330
  if (!(!s || !l)) {
5349
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Re), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ri), (e = Ce) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), L(A(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5331
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Re), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ni), (e = ke) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), L(A(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5350
5332
  for (var u = n.children, c = 0; c < u.length; c++)
5351
5333
  n.removeChild(u[c]);
5352
5334
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5365,12 +5347,12 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5365
5347
  value: function() {
5366
5348
  var e = this;
5367
5349
  this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, pe(this, "replay", function() {
5368
- e.once(_e, function() {
5350
+ e.once(ye, function() {
5369
5351
  var i = e.mediaPlay();
5370
5352
  i && i.catch && i.catch(function(n) {
5371
5353
  console.log(n);
5372
5354
  });
5373
- }), e.emit(ht), e.onPlay();
5355
+ }), e.emit(ft), e.onPlay();
5374
5356
  });
5375
5357
  }
5376
5358
  }, {
@@ -5381,7 +5363,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5381
5363
  var i = e.currentTime, n = e.config.url, s = h.isMSE(e.media) ? {
5382
5364
  url: n
5383
5365
  } : e._preProcessUrl(n);
5384
- e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(me, function() {
5366
+ e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(ve, function() {
5385
5367
  e.mediaPlay();
5386
5368
  });
5387
5369
  });
@@ -5449,7 +5431,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5449
5431
  var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
5450
5432
  this.changeFullStyle(this.root, e, i);
5451
5433
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
5452
- l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(dt, !0);
5434
+ l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ht, !0);
5453
5435
  }
5454
5436
  }, {
5455
5437
  key: "exitCssFullscreen",
@@ -5461,7 +5443,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5461
5443
  var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
5462
5444
  s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ge, !1)) : this.removeClass(e);
5463
5445
  }
5464
- this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(dt, !1);
5446
+ this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(ht, !1);
5465
5447
  }
5466
5448
  }, {
5467
5449
  key: "getRotateFullscreen",
@@ -5493,7 +5475,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5493
5475
  this.onFocus(e);
5494
5476
  return;
5495
5477
  }
5496
- this.emit(ti, W({
5478
+ this.emit(ei, W({
5497
5479
  paused: this.paused,
5498
5480
  ended: this.ended
5499
5481
  }, e));
@@ -5626,7 +5608,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5626
5608
  value: function(e, i, n) {
5627
5609
  if (!(!this.media || !i || !e)) {
5628
5610
  var s = h.typeOf(e) === "String" ? e : e.type || "";
5629
- n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(vt, W({
5611
+ n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(pt, W({
5630
5612
  eventType: s,
5631
5613
  action: i,
5632
5614
  currentTime: this.currentTime,
@@ -5676,8 +5658,8 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5676
5658
  var V = w - b;
5677
5659
  g = -V / 2 / M * 100, f.x = m === 3 ? g + i / 2 : g - i / 2, d = V / 2 / B * 100, f.y = m === 3 ? d + n / 2 : d - n / 2, f.scale = p, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(B, "px");
5678
5660
  }
5679
- var R = h.getTransformStyle(f, this.media.style.transform || this.media.style.webkitTransform);
5680
- this.media.style.transform = R, this.media.style.webkitTransform = R;
5661
+ var D = h.getTransformStyle(f, this.media.style.transform || this.media.style.webkitTransform);
5662
+ this.media.style.transform = D, this.media.style.webkitTransform = D;
5681
5663
  }
5682
5664
  }
5683
5665
  }
@@ -5712,7 +5694,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5712
5694
  value: function(e) {
5713
5695
  var i = this;
5714
5696
  this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, pe(this, "playnext", function() {
5715
- i.start(), i.emit(pt, e);
5697
+ i.start(), i.emit(gt, e);
5716
5698
  });
5717
5699
  }
5718
5700
  }, {
@@ -5850,7 +5832,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5850
5832
  }, {
5851
5833
  key: "version",
5852
5834
  get: function() {
5853
- return Wt;
5835
+ return jt;
5854
5836
  }
5855
5837
  }, {
5856
5838
  key: "playerId",
@@ -5951,17 +5933,17 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5951
5933
  }, {
5952
5934
  key: "hook",
5953
5935
  value: function(e, i) {
5954
- return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
5936
+ return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
5955
5937
  }
5956
5938
  }, {
5957
5939
  key: "useHooks",
5958
5940
  value: function(e, i) {
5959
- return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
5941
+ return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
5960
5942
  }
5961
5943
  }, {
5962
5944
  key: "removeHooks",
5963
5945
  value: function(e, i) {
5964
- return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
5946
+ return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
5965
5947
  }
5966
5948
  }, {
5967
5949
  key: "usePluginHooks",
@@ -5981,7 +5963,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5981
5963
  key: "setUserActive",
5982
5964
  value: function(e, i) {
5983
5965
  var n;
5984
- typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Ce) === null || n === void 0 || n.setActive(this.playerId, e);
5966
+ typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = ke) === null || n === void 0 || n.setActive(this.playerId, e);
5985
5967
  }
5986
5968
  }], [{
5987
5969
  key: "debugger",
@@ -5994,22 +5976,22 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
5994
5976
  }, {
5995
5977
  key: "instManager",
5996
5978
  get: function() {
5997
- return Ce;
5979
+ return ke;
5998
5980
  },
5999
5981
  set: function(e) {
6000
- Ce = e;
5982
+ ke = e;
6001
5983
  }
6002
5984
  }, {
6003
5985
  key: "getCurrentUserActivePlayerId",
6004
5986
  value: function() {
6005
5987
  var e;
6006
- return (e = Ce) === null || e === void 0 ? void 0 : e.getActiveId();
5988
+ return (e = ke) === null || e === void 0 ? void 0 : e.getActiveId();
6007
5989
  }
6008
5990
  }, {
6009
5991
  key: "setCurrentUserActive",
6010
5992
  value: function(e, i) {
6011
5993
  var n;
6012
- (n = Ce) === null || n === void 0 || n.setActive(e, i);
5994
+ (n = ke) === null || n === void 0 || n.setActive(e, i);
6013
5995
  }
6014
5996
  }, {
6015
5997
  key: "isHevcSupported",
@@ -6032,14 +6014,14 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /
6032
6014
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
6033
6015
  }
6034
6016
  }]), r;
6035
- }(Zs);
6036
- _(Et, "defaultPreset", null);
6037
- _(Et, "XgVideoProxy", null);
6038
- Et.instManager = vn.getInstance();
6017
+ }(qs);
6018
+ _(Tt, "defaultPreset", null);
6019
+ _(Tt, "XgVideoProxy", null);
6020
+ Tt.instManager = vn.getInstance();
6039
6021
  function Y() {
6040
6022
  return (/* @__PURE__ */ new Date()).getTime();
6041
6023
  }
6042
- var we = {
6024
+ var Ce = {
6043
6025
  LOAD_START: "loadstart",
6044
6026
  LOADED_DATA: "loadeddata",
6045
6027
  FIRST_FRAME: "firstFrame",
@@ -6047,7 +6029,7 @@ var we = {
6047
6029
  WAIT_END: "waitingEnd",
6048
6030
  SEEK_START: "seekStart",
6049
6031
  SEEK_END: "seekEnd"
6050
- }, wo = /* @__PURE__ */ function(a) {
6032
+ }, Co = /* @__PURE__ */ function(a) {
6051
6033
  I(r, a);
6052
6034
  var o = P(r);
6053
6035
  function r() {
@@ -6068,13 +6050,13 @@ var we = {
6068
6050
  isLs: !1
6069
6051
  }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = Y(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && h.clearTimeout(v(t), t._waitTimer), t._waittTimer && h.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
6070
6052
  }), _(v(t), "_onSeeking", function() {
6071
- t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = Y(), t.emitLog(we.SEEK_START, {
6053
+ t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = Y(), t.emitLog(Ce.SEEK_START, {
6072
6054
  start: Y()
6073
6055
  }));
6074
6056
  }), _(v(t), "_onSeeked", function() {
6075
6057
  t.suspendSeekingStatus("seeked");
6076
6058
  }), _(v(t), "_onWaitingLoadStart", function() {
6077
- t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = Y(), t.fixedWaitingStart = Y(), t._waitType = 1, t.emitLog(we.WAIT_START, {
6059
+ t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = Y(), t.fixedWaitingStart = Y(), t._waitType = 1, t.emitLog(Ce.WAIT_START, {
6078
6060
  fixedStart: t.fixedWaitingStart,
6079
6061
  start: t.waitingStart,
6080
6062
  type: 1,
@@ -6082,7 +6064,7 @@ var we = {
6082
6064
  }));
6083
6065
  }), _(v(t), "_onWaiting", function() {
6084
6066
  t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = Y(), t._waitTimer = h.setTimeout(v(t), function() {
6085
- t._isWaiting && (t.waitingStart = Y(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(we.WAIT_START, {
6067
+ t._isWaiting && (t.waitingStart = Y(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Ce.WAIT_START, {
6086
6068
  fixedStart: t.fixedWaitingStart,
6087
6069
  start: t.waitingStart,
6088
6070
  type: t._waitType,
@@ -6099,18 +6081,18 @@ var we = {
6099
6081
  key: "afterCreate",
6100
6082
  value: function() {
6101
6083
  var e = this;
6102
- this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ei, function() {
6084
+ this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Qt, function() {
6103
6085
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
6104
- e.startCostTime = Y() - e.newPointTime, F.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6105
- }), this.on(ke, function() {
6086
+ e.startCostTime = Y() - e.newPointTime, F.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ce.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6087
+ }), this.on(_e, function() {
6106
6088
  e.vt = Y(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
6107
6089
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
6108
- F.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6109
- }), this.on(Ct, this._onSeeking), this.on(_e, this._onSeeked), this.on(ri, function() {
6090
+ F.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ce.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6091
+ }), this.on(kt, this._onSeeking), this.on(ye, this._onSeeked), this.on(ni, function() {
6110
6092
  e.endState("destroy");
6111
- }), this.on(bt, function() {
6093
+ }), this.on(wt, function() {
6112
6094
  e.endState("urlChange"), F.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
6113
- }), this.on([Qt, me], this._onPlaying), this.on(rt, this._onWaiting), this.on(nt, this._onError), this.on(Tt, function() {
6095
+ }), this.on([Jt, ve], this._onPlaying), this.on(nt, this._onWaiting), this.on(it, this._onError), this.on(bt, function() {
6114
6096
  F.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
6115
6097
  });
6116
6098
  }
@@ -6124,7 +6106,7 @@ var we = {
6124
6106
  value: function(e) {
6125
6107
  this.s = Y();
6126
6108
  var i = this._state, n = i.isFFLoading, s = i.isFFSend;
6127
- F.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (F.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(we.FIRST_FRAME, {
6109
+ F.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (F.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ce.FIRST_FRAME, {
6128
6110
  fvt: this.fvt,
6129
6111
  costTime: this.fvt,
6130
6112
  vt: this.vt,
@@ -6150,7 +6132,7 @@ var we = {
6150
6132
  value: function(e) {
6151
6133
  if (this.seekingStart) {
6152
6134
  var i = Y(), n = i - this.seekingStart;
6153
- this.seekingStart = 0, this.emitLog(we.SEEK_END, {
6135
+ this.seekingStart = 0, this.emitLog(Ce.SEEK_END, {
6154
6136
  end: i,
6155
6137
  costTime: n,
6156
6138
  endType: e
@@ -6162,7 +6144,7 @@ var we = {
6162
6144
  value: function(e) {
6163
6145
  if (this._waitTimer && (h.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (h.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
6164
6146
  var i = Y(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
6165
- this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(we.WAIT_END, {
6147
+ this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Ce.WAIT_END, {
6166
6148
  fixedCostTime: s > l ? l : s,
6167
6149
  costTime: n > l ? l : n,
6168
6150
  type: e === "loadeddata" ? 1 : this._waitType,
@@ -6198,13 +6180,13 @@ var we = {
6198
6180
  }
6199
6181
  }]), r;
6200
6182
  }(U);
6201
- function bo() {
6183
+ function wo() {
6202
6184
  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">
6203
6185
  <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>
6204
6186
  </svg>
6205
6187
  `, "image/svg+xml").firstChild;
6206
6188
  }
6207
- var To = /* @__PURE__ */ function(a) {
6189
+ var bo = /* @__PURE__ */ function(a) {
6208
6190
  I(r, a);
6209
6191
  var o = P(r);
6210
6192
  function r() {
@@ -6214,7 +6196,7 @@ var To = /* @__PURE__ */ function(a) {
6214
6196
  key: "registerIcons",
6215
6197
  value: function() {
6216
6198
  return {
6217
- replay: bo
6199
+ replay: wo
6218
6200
  };
6219
6201
  }
6220
6202
  }, {
@@ -6287,7 +6269,7 @@ var To = /* @__PURE__ */ function(a) {
6287
6269
  };
6288
6270
  }
6289
6271
  }]), r;
6290
- }(U), Eo = /* @__PURE__ */ function(a) {
6272
+ }(U), To = /* @__PURE__ */ function(a) {
6291
6273
  I(r, a);
6292
6274
  var o = P(r);
6293
6275
  function r() {
@@ -6324,7 +6306,7 @@ var To = /* @__PURE__ */ function(a) {
6324
6306
  e.isEndedShow && h.removeClass(e.root, "hide");
6325
6307
  }), this.config.hideCanplay ? (this.once(ne, function() {
6326
6308
  e.onTimeUpdate();
6327
- }), this.on(bt, function() {
6309
+ }), this.on(wt, function() {
6328
6310
  h.removeClass(e.root, "hide"), h.addClass(e.root, "xg-showplay"), e.once(ne, function() {
6329
6311
  e.onTimeUpdate();
6330
6312
  });
@@ -6399,20 +6381,20 @@ var To = /* @__PURE__ */ function(a) {
6399
6381
  }
6400
6382
  }]), r;
6401
6383
  }(U);
6402
- function ai() {
6384
+ function oi() {
6403
6385
  return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6404
6386
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
6405
6387
  </svg>
6406
6388
  `, "image/svg+xml").firstChild;
6407
6389
  }
6408
- function li() {
6390
+ function ai() {
6409
6391
  return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6410
6392
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
6411
6393
  </svg>
6412
6394
  `, "image/svg+xml").firstChild;
6413
6395
  }
6414
6396
  var he = {};
6415
- function So(a, o) {
6397
+ function Eo(a, o) {
6416
6398
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6417
6399
  start: null,
6418
6400
  end: null
@@ -6430,7 +6412,7 @@ function Pi(a) {
6430
6412
  window.clearTimeout(he[o].id), delete he[o];
6431
6413
  });
6432
6414
  }
6433
- var xo = /* @__PURE__ */ function(a) {
6415
+ var So = /* @__PURE__ */ function(a) {
6434
6416
  I(r, a);
6435
6417
  var o = P(r);
6436
6418
  function r(t) {
@@ -6450,16 +6432,16 @@ var xo = /* @__PURE__ */ function(a) {
6450
6432
  key: "afterCreate",
6451
6433
  value: function() {
6452
6434
  var e = this, i = this.player, n = this.playerConfig;
6453
- this.initIcons(), this.once(ii, function() {
6435
+ this.initIcons(), this.once(ti, function() {
6454
6436
  n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
6455
- }), this.on(Me, this.onAutoplayStart), n.autoplay || this.show(), this.on(ni, function() {
6437
+ }), this.on(Me, this.onAutoplayStart), n.autoplay || this.show(), this.on(ii, function() {
6456
6438
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
6457
6439
  e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
6458
6440
  }), this.on(re, function() {
6459
6441
  e.onPlayPause("play");
6460
6442
  }), this.on(Xe, function() {
6461
6443
  e.onPlayPause("pause");
6462
- }), this.on(Tt, function() {
6444
+ }), this.on(bt, function() {
6463
6445
  e.onPlayerReset();
6464
6446
  }), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
6465
6447
  pre: function(l) {
@@ -6478,11 +6460,11 @@ var xo = /* @__PURE__ */ function(a) {
6478
6460
  value: function() {
6479
6461
  return {
6480
6462
  startPlay: {
6481
- icon: ai,
6463
+ icon: oi,
6482
6464
  class: "xg-icon-play"
6483
6465
  },
6484
6466
  startPause: {
6485
- icon: li,
6467
+ icon: ai,
6486
6468
  class: "xg-icon-pause"
6487
6469
  }
6488
6470
  };
@@ -6522,7 +6504,7 @@ var xo = /* @__PURE__ */ function(a) {
6522
6504
  key: "animate",
6523
6505
  value: function(e) {
6524
6506
  var i = this;
6525
- this._animateId = So("pauseplay", 400, {
6507
+ this._animateId = Eo("pauseplay", 400, {
6526
6508
  start: function() {
6527
6509
  h.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
6528
6510
  },
@@ -6605,7 +6587,7 @@ var xo = /* @__PURE__ */ function(a) {
6605
6587
  };
6606
6588
  }
6607
6589
  }]), r;
6608
- }(U), Io = /* @__PURE__ */ function(a) {
6590
+ }(U), xo = /* @__PURE__ */ function(a) {
6609
6591
  I(r, a);
6610
6592
  var o = P(r);
6611
6593
  function r() {
@@ -6704,8 +6686,8 @@ function Li(a) {
6704
6686
  var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
6705
6687
  return r && o;
6706
6688
  }
6707
- var ui = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = ui.length;
6708
- function Po() {
6689
+ var li = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = li.length;
6690
+ function Io() {
6709
6691
  for (var a = {
6710
6692
  width: 0,
6711
6693
  height: 0,
@@ -6714,24 +6696,24 @@ function Po() {
6714
6696
  outerWidth: 0,
6715
6697
  outerHeight: 0
6716
6698
  }, o = 0; o < mn; o++) {
6717
- var r = ui[o];
6699
+ var r = li[o];
6718
6700
  a[r] = 0;
6719
6701
  }
6720
6702
  return a;
6721
6703
  }
6722
- function Ao(a) {
6704
+ function Po(a) {
6723
6705
  var o = window.getComputedStyle(a);
6724
6706
  return o;
6725
6707
  }
6726
6708
  function Di(a) {
6727
6709
  if (typeof a == "string" && (a = document.querySelector(a)), !(!a || q(a) !== "object" || !a.nodeType)) {
6728
- var o = Ao(a);
6710
+ var o = Po(a);
6729
6711
  if (o.display === "none")
6730
- return Po();
6712
+ return Io();
6731
6713
  var r = {};
6732
6714
  r.width = a.offsetWidth, r.height = a.offsetHeight;
6733
6715
  for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < mn; e++) {
6734
- var i = ui[e], n = o[i], s = parseFloat(n);
6716
+ var i = li[e], n = o[i], s = parseFloat(n);
6735
6717
  r[i] = Number.isNaN(s) ? 0 : s;
6736
6718
  }
6737
6719
  var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, f = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Li(o.width);
@@ -6740,14 +6722,14 @@ function Di(a) {
6740
6722
  return y !== !1 && (r.height = y + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + f, r;
6741
6723
  }
6742
6724
  }
6743
- function Rt(a, o) {
6725
+ function Dt(a, o) {
6744
6726
  for (var r = 0; r < a.length; r++) {
6745
6727
  var t = a[r];
6746
6728
  if (t.identifier === o)
6747
6729
  return t;
6748
6730
  }
6749
6731
  }
6750
- var Ot = {
6732
+ var Rt = {
6751
6733
  START: "dragStart",
6752
6734
  MOVE: "dragMove",
6753
6735
  ENDED: "dragEnded"
@@ -6755,7 +6737,7 @@ var Ot = {
6755
6737
  mousedown: ["mousemove", "mouseup"],
6756
6738
  touchstart: ["touchmove", "touchend", "touchcancel"],
6757
6739
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
6758
- }, Lo = /* @__PURE__ */ function(a) {
6740
+ }, Ao = /* @__PURE__ */ function(a) {
6759
6741
  I(r, a);
6760
6742
  var o = P(r);
6761
6743
  function r(t) {
@@ -6766,7 +6748,7 @@ var Ot = {
6766
6748
  }, e.startPos = {
6767
6749
  x: 0,
6768
6750
  y: 0
6769
- }, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? Jt(e) : (e._bindStartEvent(), e);
6751
+ }, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? Zt(e) : (e._bindStartEvent(), e);
6770
6752
  }
6771
6753
  return E(r, [{
6772
6754
  key: "_bindStartEvent",
@@ -6858,19 +6840,19 @@ var Ot = {
6858
6840
  }, {
6859
6841
  key: "ontouchmove",
6860
6842
  value: function(e) {
6861
- var i = Rt(e.changedTouches, this.touchIdentifier);
6843
+ var i = Dt(e.changedTouches, this.touchIdentifier);
6862
6844
  i && this.dragMove(e, i);
6863
6845
  }
6864
6846
  }, {
6865
6847
  key: "ontouchend",
6866
6848
  value: function(e) {
6867
- var i = Rt(e.changedTouches, this.touchIdentifier);
6849
+ var i = Dt(e.changedTouches, this.touchIdentifier);
6868
6850
  i && this.dragEnd(e, i), e.preventDefault();
6869
6851
  }
6870
6852
  }, {
6871
6853
  key: "ontouchcancel",
6872
6854
  value: function(e) {
6873
- var i = Rt(e.changedTouches, this.touchIdentifier);
6855
+ var i = Dt(e.changedTouches, this.touchIdentifier);
6874
6856
  i && this.dragCancel(e, i);
6875
6857
  }
6876
6858
  }, {
@@ -6885,12 +6867,12 @@ var Ot = {
6885
6867
  }, {
6886
6868
  key: "dragRealStart",
6887
6869
  value: function(e, i) {
6888
- this.isDragging = !0, this.animate(), this.emit(Ot.START, this.startPos);
6870
+ this.isDragging = !0, this.animate(), this.emit(Rt.START, this.startPos);
6889
6871
  }
6890
6872
  }, {
6891
6873
  key: "dragEnd",
6892
6874
  value: function(e, i) {
6893
- this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Ot.ENDED)), this.presetInfo());
6875
+ this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Rt.ENDED)), this.presetInfo());
6894
6876
  }
6895
6877
  }, {
6896
6878
  key: "_dragPointerMove",
@@ -6906,7 +6888,7 @@ var Ot = {
6906
6888
  value: function(e, i) {
6907
6889
  if (e = e || window.event, !!this.isDown) {
6908
6890
  var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, f = u.y;
6909
- c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(Ot.MOVE, this.position);
6891
+ c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(Rt.MOVE, this.position);
6910
6892
  }
6911
6893
  }
6912
6894
  }, {
@@ -6965,7 +6947,7 @@ var Ot = {
6965
6947
  return parseInt(e, 10);
6966
6948
  }
6967
6949
  }]), r;
6968
- }(Ki), Do = /* @__PURE__ */ function(a) {
6950
+ }(Ki), Lo = /* @__PURE__ */ function(a) {
6969
6951
  I(r, a);
6970
6952
  var o = P(r);
6971
6953
  function r(t) {
@@ -7021,7 +7003,7 @@ var Ot = {
7021
7003
  i.controls.registerPlugin(Ai, s, Ai.pluginName);
7022
7004
  }
7023
7005
  var l = h.checkTouchSupport() ? "touchend" : "click";
7024
- this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Lo(this.player.root, {
7006
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Ao(this.player.root, {
7025
7007
  handle: this.root
7026
7008
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
7027
7009
  }
@@ -7031,11 +7013,11 @@ var Ot = {
7031
7013
  value: function() {
7032
7014
  return {
7033
7015
  play: {
7034
- icon: ai,
7016
+ icon: oi,
7035
7017
  class: "xg-icon-play"
7036
7018
  },
7037
7019
  pause: {
7038
- icon: li,
7020
+ icon: ai,
7039
7021
  class: "xg-icon-pause"
7040
7022
  }
7041
7023
  };
@@ -7054,7 +7036,7 @@ var Ot = {
7054
7036
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7055
7037
  this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
7056
7038
  e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
7057
- }), n.fluid && (s.style["padding-top"] = ""), this.emit(gt, !0), i.isMini = this.isMini = !0;
7039
+ }), n.fluid && (s.style["padding-top"] = ""), this.emit(dt, !0), i.isMini = this.isMini = !0;
7058
7040
  }
7059
7041
  }
7060
7042
  }, {
@@ -7066,7 +7048,7 @@ var Ot = {
7066
7048
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7067
7049
  h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
7068
7050
  s.style[l] = e.lastStyle[l];
7069
- }), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(gt, !1), this.isMini = i.isMini = !1;
7051
+ }), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(dt, !1), this.isMini = i.isMini = !1;
7070
7052
  }
7071
7053
  }, {
7072
7054
  key: "destroy",
@@ -7115,11 +7097,11 @@ var Ot = {
7115
7097
  };
7116
7098
  }
7117
7099
  }]), r;
7118
- }(U), ot = {
7100
+ }(U), st = {
7119
7101
  mouseenter: "onMouseEnter",
7120
7102
  mouseleave: "onMouseLeave",
7121
7103
  mousemove: "onMouseMove"
7122
- }, Ft = ["videoClick", "videoDbClick"], Mt = /* @__PURE__ */ function(a) {
7104
+ }, Ot = ["videoClick", "videoDbClick"], Ft = /* @__PURE__ */ function(a) {
7123
7105
  I(r, a);
7124
7106
  var o = P(r);
7125
7107
  function r() {
@@ -7148,7 +7130,7 @@ var Ot = {
7148
7130
  }), _(v(t), "onVideoClick", function(s) {
7149
7131
  var l = v(t), u = l.player, c = l.playerConfig;
7150
7132
  s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
7151
- t._clickCount && (t._clickCount--, pe(v(t), Ft[0], function(f, d) {
7133
+ t._clickCount && (t._clickCount--, pe(v(t), Ot[0], function(f, d) {
7152
7134
  t.switchPlayPause(d.e);
7153
7135
  }, {
7154
7136
  e: s,
@@ -7162,7 +7144,7 @@ var Ot = {
7162
7144
  t._clickCount = 0;
7163
7145
  return;
7164
7146
  }
7165
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Ft[1], function(f, d) {
7147
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Ot[1], function(f, d) {
7166
7148
  t.emitUserAction(d.e, "switch_fullscreen", {
7167
7149
  props: "fullscreen",
7168
7150
  from: u.fullscreen,
@@ -7179,7 +7161,7 @@ var Ot = {
7179
7161
  key: "afterCreate",
7180
7162
  value: function() {
7181
7163
  var e = this;
7182
- this._clickCount = 0, Ft.map(function(n) {
7164
+ this._clickCount = 0, Ot.map(function(n) {
7183
7165
  e.__hooks[n] = null;
7184
7166
  });
7185
7167
  var i = this.playerConfig.isMobileSimulateMode;
@@ -7189,8 +7171,8 @@ var Ot = {
7189
7171
  key: "initEvents",
7190
7172
  value: function() {
7191
7173
  var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
7192
- s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(ot).map(function(u) {
7193
- s.addEventListener(u, e[ot[u]], !1);
7174
+ s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(st).map(function(u) {
7175
+ s.addEventListener(u, e[st[u]], !1);
7194
7176
  }), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
7195
7177
  }
7196
7178
  }, {
@@ -7212,8 +7194,8 @@ var Ot = {
7212
7194
  key: "destroy",
7213
7195
  value: function() {
7214
7196
  var e = this, i = this.player, n = i.video, s = i.root;
7215
- this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(ot).map(function(l) {
7216
- s.removeEventListener(l, e[ot[l]], !1);
7197
+ this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(st).map(function(l) {
7198
+ s.removeEventListener(l, e[st[l]], !1);
7217
7199
  });
7218
7200
  }
7219
7201
  }], [{
@@ -7227,7 +7209,7 @@ var Ot = {
7227
7209
  return {};
7228
7210
  }
7229
7211
  }]), r;
7230
- }(xe), be = {
7212
+ }(xe), we = {
7231
7213
  PRESS: "press",
7232
7214
  PRESS_END: "pressend",
7233
7215
  DOUBlE_CLICK: "doubleclick",
@@ -7235,12 +7217,12 @@ var Ot = {
7235
7217
  TOUCH_MOVE: "touchmove",
7236
7218
  TOUCH_START: "touchstart",
7237
7219
  TOUCH_END: "touchend"
7238
- }, Ro = {
7220
+ }, Do = {
7239
7221
  start: "touchstart",
7240
7222
  end: "touchend",
7241
7223
  move: "touchmove",
7242
7224
  cancel: "touchcancel"
7243
- }, Oo = {
7225
+ }, Ro = {
7244
7226
  start: "mousedown",
7245
7227
  end: "mouseup",
7246
7228
  move: "mousemove",
@@ -7249,7 +7231,7 @@ var Ot = {
7249
7231
  function Oi(a) {
7250
7232
  return a && a.length > 0 ? a[a.length - 1] : null;
7251
7233
  }
7252
- function Fo() {
7234
+ function Oo() {
7253
7235
  return {
7254
7236
  pressDelay: 600,
7255
7237
  dbClickDelay: 200,
@@ -7259,30 +7241,30 @@ function Fo() {
7259
7241
  needPreventDefault: !0
7260
7242
  };
7261
7243
  }
7262
- var Mo = /* @__PURE__ */ function() {
7244
+ var Fo = /* @__PURE__ */ function() {
7263
7245
  function a(o) {
7264
7246
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7265
7247
  eventType: "touch"
7266
7248
  };
7267
7249
  T(this, a), _(this, "onTouchStart", function(e) {
7268
7250
  var i = r._pos, n = r.root, s = Oi(e.touches);
7269
- i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.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(be.TOUCH_START, e);
7251
+ i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.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);
7270
7252
  }), _(this, "onTouchCancel", function(e) {
7271
7253
  r.onTouchEnd(e);
7272
7254
  }), _(this, "onTouchEnd", function(e) {
7273
7255
  var i = r._pos, n = r.root;
7274
- 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(be.PRESS_END, e), r.trigger(be.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7256
+ 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;
7275
7257
  }), _(this, "onTouchMove", function(e) {
7276
7258
  var i = r._pos, n = r.config, s = Oi(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, f = u - i.y;
7277
- Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(be.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(be.TOUCH_MOVE, e));
7259
+ Math.abs(f) < 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));
7278
7260
  }), this._pos = {
7279
7261
  moving: !1,
7280
7262
  start: !1,
7281
7263
  x: 0,
7282
7264
  y: 0
7283
- }, this.config = Fo(), Object.keys(t).map(function(e) {
7265
+ }, this.config = Oo(), Object.keys(t).map(function(e) {
7284
7266
  r.config[e] = t[e];
7285
- }), this.root = o, this.events = t.eventType === "mouse" ? Oo : Ro, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7267
+ }), this.root = o, this.events = t.eventType === "mouse" ? Ro : Do, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7286
7268
  }
7287
7269
  return E(a, [{
7288
7270
  key: "_initEvent",
@@ -7294,7 +7276,7 @@ var Mo = /* @__PURE__ */ function() {
7294
7276
  value: function(r) {
7295
7277
  var t = this, e = this.config;
7296
7278
  this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
7297
- t.trigger(be.PRESS, r), t._pos.press = !0, t.__clearPress();
7279
+ t.trigger(we.PRESS, r), t._pos.press = !0, t.__clearPress();
7298
7280
  }, e.pressDelay);
7299
7281
  }
7300
7282
  }, {
@@ -7307,11 +7289,11 @@ var Mo = /* @__PURE__ */ function() {
7307
7289
  value: function(r) {
7308
7290
  var t = this, e = this.config;
7309
7291
  if (this.dbIntrvalId) {
7310
- this.__clearDb(), this.trigger(be.DOUBlE_CLICK, r);
7292
+ this.__clearDb(), this.trigger(we.DOUBlE_CLICK, r);
7311
7293
  return;
7312
7294
  }
7313
7295
  this.dbIntrvalId = setTimeout(function() {
7314
- t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(be.CLICK, r);
7296
+ t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(we.CLICK, r);
7315
7297
  }, e.dbClickDelay);
7316
7298
  }
7317
7299
  }, {
@@ -7361,7 +7343,7 @@ var Mo = /* @__PURE__ */ function() {
7361
7343
  }
7362
7344
  }]), a;
7363
7345
  }();
7364
- function No() {
7346
+ function Mo() {
7365
7347
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
7366
7348
  xmlns:xlink="http://www.w3.org/1999/xlink">
7367
7349
  <path opacity="0.54"
@@ -7375,7 +7357,7 @@ var Ve = {
7375
7357
  SEEKING: "seeking",
7376
7358
  PLAYBACK: "playbackrate",
7377
7359
  LIGHT: ""
7378
- }, Nt = ["videoClick", "videoDbClick"], Bo = /* @__PURE__ */ function(a) {
7360
+ }, Mt = ["videoClick", "videoDbClick"], No = /* @__PURE__ */ function(a) {
7379
7361
  I(r, a);
7380
7362
  var o = P(r);
7381
7363
  function r(t) {
@@ -7447,7 +7429,7 @@ var Ve = {
7447
7429
  value: function() {
7448
7430
  return {
7449
7431
  seekTipIcon: {
7450
- icon: No,
7432
+ icon: Mo,
7451
7433
  class: "xg-seek-pre"
7452
7434
  }
7453
7435
  };
@@ -7456,13 +7438,13 @@ var Ve = {
7456
7438
  key: "afterCreate",
7457
7439
  value: function() {
7458
7440
  var e = this;
7459
- Nt.map(function(d) {
7441
+ Mt.map(function(d) {
7460
7442
  e.__hooks[d] = null;
7461
7443
  });
7462
7444
  var i = this.playerConfig, n = this.config, s = this.player;
7463
7445
  i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), h.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = h.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
7464
7446
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
7465
- this.touch = new Mo(this.root, {
7447
+ this.touch = new Fo(this.root, {
7466
7448
  eventType: l,
7467
7449
  needPreventDefault: !this.config.disableGesture
7468
7450
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -7472,7 +7454,7 @@ var Ve = {
7472
7454
  u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Pe, function() {
7473
7455
  var d = e.player, g = e.config;
7474
7456
  d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
7475
- }), this.on([me, Be], function() {
7457
+ }), this.on([ve, Be], function() {
7476
7458
  var d = e.pos, g = d.time, p = d.isStart;
7477
7459
  !p && g > 0 && (e.pos.time = 0);
7478
7460
  });
@@ -7639,7 +7621,7 @@ var Ve = {
7639
7621
  key: "onClick",
7640
7622
  value: function(e) {
7641
7623
  var i = this, n = this.player;
7642
- pe(this, Nt[0], function(s, l) {
7624
+ pe(this, Mt[0], function(s, l) {
7643
7625
  i.clickHandler(l.e);
7644
7626
  }, {
7645
7627
  e,
@@ -7650,7 +7632,7 @@ var Ve = {
7650
7632
  key: "onDbClick",
7651
7633
  value: function(e) {
7652
7634
  var i = this, n = this.player;
7653
- pe(this, Nt[1], function(s, l) {
7635
+ pe(this, Mt[1], function(s, l) {
7654
7636
  i.dbClickHandler(l.e);
7655
7637
  }, {
7656
7638
  e,
@@ -7804,7 +7786,7 @@ var Ve = {
7804
7786
  }
7805
7787
  }]), r;
7806
7788
  }(U);
7807
- function Ho(a) {
7789
+ function Bo(a) {
7808
7790
  a.preventDefault(), a.returnValue = !1;
7809
7791
  }
7810
7792
  function Fi(a) {
@@ -8053,7 +8035,7 @@ var Mi = /* @__PURE__ */ function(a) {
8053
8035
  isPress: n
8054
8036
  }, this.keyCodeMap[s[l]]));
8055
8037
  }
8056
- Ho(i), i.stopPropagation();
8038
+ Bo(i), i.stopPropagation();
8057
8039
  break;
8058
8040
  }
8059
8041
  }
@@ -8095,13 +8077,13 @@ var Mi = /* @__PURE__ */ function(a) {
8095
8077
  }
8096
8078
  }]), r;
8097
8079
  }(xe);
8098
- function Uo() {
8080
+ function Ho() {
8099
8081
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
8100
8082
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
8101
8083
  </svg>
8102
8084
  `, "image/svg+xml").firstChild;
8103
8085
  }
8104
- var zo = /* @__PURE__ */ function(a) {
8086
+ var Uo = /* @__PURE__ */ function(a) {
8105
8087
  I(r, a);
8106
8088
  var o = P(r);
8107
8089
  function r() {
@@ -8111,7 +8093,7 @@ var zo = /* @__PURE__ */ function(a) {
8111
8093
  key: "registerIcons",
8112
8094
  value: function() {
8113
8095
  return {
8114
- loadingIcon: Uo
8096
+ loadingIcon: Ho
8115
8097
  };
8116
8098
  }
8117
8099
  }, {
@@ -8140,7 +8122,7 @@ var zo = /* @__PURE__ */ function(a) {
8140
8122
  };
8141
8123
  }
8142
8124
  }]), r;
8143
- }(U), Vo = [{
8125
+ }(U), zo = [{
8144
8126
  tag: "xg-cache",
8145
8127
  className: "xgplayer-progress-cache",
8146
8128
  styleKey: "cachedColor"
@@ -8148,7 +8130,7 @@ var zo = /* @__PURE__ */ function(a) {
8148
8130
  tag: "xg-played",
8149
8131
  className: "xgplayer-progress-played",
8150
8132
  styleKey: "playedColor"
8151
- }], jo = /* @__PURE__ */ function() {
8133
+ }], Vo = /* @__PURE__ */ function() {
8152
8134
  function a(o) {
8153
8135
  T(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
8154
8136
  percent: 1
@@ -8335,7 +8317,7 @@ var zo = /* @__PURE__ */ function(a) {
8335
8317
  var l = h.createDom("xg-inner", "", {
8336
8318
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
8337
8319
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
8338
- return r.root.appendChild(l), Vo.forEach(function(u) {
8320
+ return r.root.appendChild(l), zo.forEach(function(u) {
8339
8321
  l.appendChild(h.createDom(u.tag, "", {
8340
8322
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
8341
8323
  }, u.className));
@@ -8351,7 +8333,7 @@ var zo = /* @__PURE__ */ function(a) {
8351
8333
  }(), Ni = {
8352
8334
  POINT: "inner-focus-point",
8353
8335
  HIGHLIGHT: "inner-focus-highlight"
8354
- }, Wo = /* @__PURE__ */ function(a) {
8336
+ }, jo = /* @__PURE__ */ function(a) {
8355
8337
  I(r, a);
8356
8338
  var o = P(r);
8357
8339
  function r(t) {
@@ -8481,7 +8463,7 @@ var zo = /* @__PURE__ */ function(a) {
8481
8463
  e.emitUserAction("fragment_focus", "fragment_focus", u);
8482
8464
  }
8483
8465
  });
8484
- this.innerList ? this.innerList.reset(s) : (this.innerList = new jo(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8466
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new Vo(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8485
8467
  e[l] = e.innerList[l].bind(e.innerList);
8486
8468
  }));
8487
8469
  }
@@ -8513,7 +8495,7 @@ var zo = /* @__PURE__ */ function(a) {
8513
8495
  e.onMouseLeave();
8514
8496
  }), this.on(ne, function() {
8515
8497
  e.onTimeupdate();
8516
- }), this.on(_e, function() {
8498
+ }), this.on(ye, function() {
8517
8499
  e.onTimeupdate(), e.onCacheUpdate();
8518
8500
  }), this.on(Zi, function() {
8519
8501
  e.onCacheUpdate();
@@ -8791,7 +8773,7 @@ var zo = /* @__PURE__ */ function(a) {
8791
8773
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
8792
8774
  }
8793
8775
  }]), r;
8794
- }(U), Go = /* @__PURE__ */ function(a) {
8776
+ }(U), Wo = /* @__PURE__ */ function(a) {
8795
8777
  I(r, a);
8796
8778
  var o = P(r);
8797
8779
  function r() {
@@ -8803,7 +8785,7 @@ var zo = /* @__PURE__ */ function(a) {
8803
8785
  var e = this;
8804
8786
  L(A(r.prototype), "afterCreate", this).call(this);
8805
8787
  var i = this.player, n = this.config;
8806
- n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Xe, nt, He], function() {
8788
+ n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Xe, it, He], function() {
8807
8789
  e.animate(i.paused);
8808
8790
  }), this.on(re, function() {
8809
8791
  e.animate(i.paused);
@@ -8814,11 +8796,11 @@ var zo = /* @__PURE__ */ function(a) {
8814
8796
  value: function() {
8815
8797
  return {
8816
8798
  play: {
8817
- icon: ai,
8799
+ icon: oi,
8818
8800
  class: "xg-icon-play"
8819
8801
  },
8820
8802
  pause: {
8821
- icon: li,
8803
+ icon: ai,
8822
8804
  class: "xg-icon-pause"
8823
8805
  }
8824
8806
  };
@@ -8879,14 +8861,14 @@ var zo = /* @__PURE__ */ function(a) {
8879
8861
  }
8880
8862
  }]), r;
8881
8863
  }(Ue);
8882
- function $o() {
8864
+ function Go() {
8883
8865
  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">
8884
8866
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8885
8867
  <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>
8886
8868
  </g>
8887
8869
  </svg>`, "image/svg+xml").firstChild;
8888
8870
  }
8889
- var Ko = /* @__PURE__ */ function(a) {
8871
+ var $o = /* @__PURE__ */ function(a) {
8890
8872
  I(r, a);
8891
8873
  var o = P(r);
8892
8874
  function r() {
@@ -8905,7 +8887,7 @@ var Ko = /* @__PURE__ */ function(a) {
8905
8887
  value: function() {
8906
8888
  return {
8907
8889
  screenBack: {
8908
- icon: $o,
8890
+ icon: Go,
8909
8891
  class: "xg-fullscreen-back"
8910
8892
  }
8911
8893
  };
@@ -8947,19 +8929,19 @@ var Ko = /* @__PURE__ */ function(a) {
8947
8929
  }
8948
8930
  }]), r;
8949
8931
  }(U);
8950
- function Yo() {
8932
+ function Ko() {
8951
8933
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8952
8934
  <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>
8953
8935
  </svg>
8954
8936
  `, "image/svg+xml").firstChild;
8955
8937
  }
8956
- function Xo() {
8938
+ function Yo() {
8957
8939
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8958
8940
  <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>
8959
8941
  </svg>
8960
8942
  `, "image/svg+xml").firstChild;
8961
8943
  }
8962
- var qo = /* @__PURE__ */ function(a) {
8944
+ var Xo = /* @__PURE__ */ function(a) {
8963
8945
  I(r, a);
8964
8946
  var o = P(r);
8965
8947
  function r() {
@@ -8994,7 +8976,7 @@ var qo = /* @__PURE__ */ function(a) {
8994
8976
  var u = e.find(".xg-tips");
8995
8977
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
8996
8978
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
8997
- plugin: Ko,
8979
+ plugin: $o,
8998
8980
  options: {
8999
8981
  config: {
9000
8982
  onClick: function(u) {
@@ -9010,11 +8992,11 @@ var qo = /* @__PURE__ */ function(a) {
9010
8992
  value: function() {
9011
8993
  return {
9012
8994
  fullscreen: {
9013
- icon: Yo,
8995
+ icon: Ko,
9014
8996
  class: "xg-get-fullscreen"
9015
8997
  },
9016
8998
  exitFullscreen: {
9017
- icon: Xo,
8999
+ icon: Yo,
9018
9000
  class: "xg-exit-fullscreen"
9019
9001
  }
9020
9002
  };
@@ -9095,7 +9077,7 @@ var qo = /* @__PURE__ */ function(a) {
9095
9077
  };
9096
9078
  }
9097
9079
  }]), r;
9098
- }(Ue), Zo = /* @__PURE__ */ function(a) {
9080
+ }(Ue), qo = /* @__PURE__ */ function(a) {
9099
9081
  I(r, a);
9100
9082
  var o = P(r);
9101
9083
  function r(t) {
@@ -9123,7 +9105,7 @@ var qo = /* @__PURE__ */ function(a) {
9123
9105
  key: "afterCreate",
9124
9106
  value: function() {
9125
9107
  var e = this, i = this.player.controls.config.mode;
9126
- this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Pe, _e, ne], function(n) {
9108
+ this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Pe, ye, ne], function(n) {
9127
9109
  n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
9128
9110
  }), this.on(Be, function() {
9129
9111
  e.onTimeUpdate(!0);
@@ -9211,7 +9193,7 @@ var qo = /* @__PURE__ */ function(a) {
9211
9193
  var e = this, i = this.player, n = function() {
9212
9194
  e.isActiving = !1;
9213
9195
  };
9214
- this.off(_e, n), i.isSeeking && i.media.seeking ? this.once(_e, n) : this.isActiving = !1;
9196
+ this.off(ye, n), i.isSeeking && i.media.seeking ? this.once(ye, n) : this.isActiving = !1;
9215
9197
  }
9216
9198
  }, {
9217
9199
  key: "destroy",
@@ -9245,7 +9227,7 @@ var qo = /* @__PURE__ */ function(a) {
9245
9227
  };
9246
9228
  }
9247
9229
  }]), r;
9248
- }(U), Jo = /* @__PURE__ */ function(a) {
9230
+ }(U), Zo = /* @__PURE__ */ function(a) {
9249
9231
  I(r, a);
9250
9232
  var o = P(r);
9251
9233
  function r() {
@@ -9301,7 +9283,7 @@ var qo = /* @__PURE__ */ function(a) {
9301
9283
  return E(r, [{
9302
9284
  key: "afterCreate",
9303
9285
  value: function() {
9304
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Pe, this._onDurationChange), this.on(ke, this._onLoadedData), this.on(ne, this._onTimeupdate), this.on(Ct, this._onSeeking), this.on(re, this._onPlay);
9286
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Pe, this._onDurationChange), this.on(_e, this._onLoadedData), this.on(ne, this._onTimeupdate), this.on(kt, this._onSeeking), this.on(re, this._onPlay);
9305
9287
  }
9306
9288
  }, {
9307
9289
  key: "setConfig",
@@ -9383,28 +9365,28 @@ var qo = /* @__PURE__ */ function(a) {
9383
9365
  }
9384
9366
  }]), r;
9385
9367
  }(xe);
9386
- function Qo() {
9368
+ function Jo() {
9387
9369
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9388
9370
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9389
9371
  <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>
9390
9372
  </svg>
9391
9373
  `, "image/svg+xml").firstChild;
9392
9374
  }
9393
- function ea() {
9375
+ function Qo() {
9394
9376
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9395
9377
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9396
9378
  <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>
9397
9379
  </svg>
9398
9380
  `, "image/svg+xml").firstChild;
9399
9381
  }
9400
- function ta() {
9382
+ function ea() {
9401
9383
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9402
9384
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9403
9385
  <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>
9404
9386
  </svg>
9405
9387
  `, "image/svg+xml").firstChild;
9406
9388
  }
9407
- var ia = /* @__PURE__ */ function(a) {
9389
+ var ta = /* @__PURE__ */ function(a) {
9408
9390
  I(r, a);
9409
9391
  var o = P(r);
9410
9392
  function r() {
@@ -9452,15 +9434,15 @@ var ia = /* @__PURE__ */ function(a) {
9452
9434
  value: function() {
9453
9435
  return {
9454
9436
  volumeSmall: {
9455
- icon: ea,
9437
+ icon: Qo,
9456
9438
  class: "xg-volume-small"
9457
9439
  },
9458
9440
  volumeLarge: {
9459
- icon: Qo,
9441
+ icon: Jo,
9460
9442
  class: "xg-volume"
9461
9443
  },
9462
9444
  volumeMuted: {
9463
- icon: ta,
9445
+ icon: ea,
9464
9446
  class: "xg-volume-mute"
9465
9447
  }
9466
9448
  };
@@ -9482,7 +9464,7 @@ var ia = /* @__PURE__ */ function(a) {
9482
9464
  pre: function(u) {
9483
9465
  u.preventDefault(), u.stopPropagation();
9484
9466
  }
9485
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), O.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(Xi, this.onVolumeChange), this.once(ke, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9467
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), O.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(Xi, this.onVolumeChange), this.once(_e, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9486
9468
  }
9487
9469
  }
9488
9470
  }, {
@@ -9599,7 +9581,7 @@ var ia = /* @__PURE__ */ function(a) {
9599
9581
  }
9600
9582
  }]), r;
9601
9583
  }(U);
9602
- function na() {
9584
+ function ia() {
9603
9585
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
9604
9586
  <g clip-path="url(#clip0)">
9605
9587
  <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"/>
@@ -9613,7 +9595,7 @@ function na() {
9613
9595
  </svg>
9614
9596
  `, "image/svg+xml").firstChild;
9615
9597
  }
9616
- var ra = /* @__PURE__ */ function(a) {
9598
+ var na = /* @__PURE__ */ function(a) {
9617
9599
  I(r, a);
9618
9600
  var o = P(r);
9619
9601
  function r(t) {
@@ -9676,7 +9658,7 @@ var ra = /* @__PURE__ */ function(a) {
9676
9658
  key: "registerIcons",
9677
9659
  value: function() {
9678
9660
  return {
9679
- rotate: na
9661
+ rotate: ia
9680
9662
  };
9681
9663
  }
9682
9664
  }, {
@@ -9709,14 +9691,14 @@ var ra = /* @__PURE__ */ function(a) {
9709
9691
  }
9710
9692
  }]), r;
9711
9693
  }(Ue);
9712
- function sa() {
9694
+ function ra() {
9713
9695
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9714
9696
  <path fill-rule="evenodd" clip-rule="evenodd"
9715
9697
  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"
9716
9698
  fill="white" />
9717
9699
  </svg>`, "image/svg+xml").firstChild;
9718
9700
  }
9719
- function oa() {
9701
+ function sa() {
9720
9702
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9721
9703
  <path fill-rule="evenodd" clip-rule="evenodd"
9722
9704
  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"
@@ -9730,7 +9712,7 @@ var je = {
9730
9712
  PIP: "picture-in-picture",
9731
9713
  INLINE: "inline",
9732
9714
  FULLSCREEN: "fullscreen"
9733
- }, aa = /* @__PURE__ */ function(a) {
9715
+ }, oa = /* @__PURE__ */ function(a) {
9734
9716
  I(r, a);
9735
9717
  var o = P(r);
9736
9718
  function r() {
@@ -9761,7 +9743,7 @@ var je = {
9761
9743
  key: "afterCreate",
9762
9744
  value: function() {
9763
9745
  var e = this;
9764
- this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = je.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(wt, function() {
9746
+ this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = je.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ct, function() {
9765
9747
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
9766
9748
  }));
9767
9749
  }
@@ -9770,11 +9752,11 @@ var je = {
9770
9752
  value: function() {
9771
9753
  return {
9772
9754
  pipIcon: {
9773
- icon: sa,
9755
+ icon: ra,
9774
9756
  class: "xg-get-pip"
9775
9757
  },
9776
9758
  pipIconExit: {
9777
- icon: oa,
9759
+ icon: sa,
9778
9760
  class: "xg-exit-pip"
9779
9761
  }
9780
9762
  };
@@ -9793,9 +9775,9 @@ var je = {
9793
9775
  var n = i.paused;
9794
9776
  h.setTimeout(e, function() {
9795
9777
  !n && i.mediaPlay();
9796
- }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Kt, !1);
9778
+ }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit($t, !1);
9797
9779
  }, this.enterPIPCallback = function(n) {
9798
- i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9780
+ i.emit($t, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9799
9781
  }, this.onWebkitpresentationmodechanged = function(n) {
9800
9782
  var s = i.media.webkitPresentationMode;
9801
9783
  e.pMode === je.FULLSCREEN && s !== je.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === je.PIP ? e.enterPIPCallback(n) : s === je.INLINE && e.leavePIPCallback(n);
@@ -9933,20 +9915,20 @@ var je = {
9933
9915
  }
9934
9916
  }]), r;
9935
9917
  }(Ue);
9936
- function la() {
9918
+ function aa() {
9937
9919
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
9938
9920
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
9939
9921
  </svg>
9940
9922
  `, "image/svg+xml").firstChild;
9941
9923
  }
9942
- var ua = /* @__PURE__ */ function(a) {
9924
+ var la = /* @__PURE__ */ function(a) {
9943
9925
  I(r, a);
9944
9926
  var o = P(r);
9945
9927
  function r(t) {
9946
9928
  var e;
9947
9929
  return T(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
9948
9930
  var n = v(e), s = n.player;
9949
- i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(pt, e.idx + 1)) : (e.nextHandler(), s.emit(pt));
9931
+ i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(gt, e.idx + 1)) : (e.nextHandler(), s.emit(gt));
9950
9932
  }), e.idx = -1, e;
9951
9933
  }
9952
9934
  return E(r, [{
@@ -9958,7 +9940,7 @@ var ua = /* @__PURE__ */ function(a) {
9958
9940
  key: "registerIcons",
9959
9941
  value: function() {
9960
9942
  return {
9961
- playNext: la
9943
+ playNext: aa
9962
9944
  };
9963
9945
  }
9964
9946
  }, {
@@ -10011,15 +9993,15 @@ var ua = /* @__PURE__ */ function(a) {
10011
9993
  (function(a, o) {
10012
9994
  (function(r, t) {
10013
9995
  a.exports = t();
10014
- })(gs, function() {
9996
+ })(ds, function() {
10015
9997
  return function r(t, e, i) {
10016
- var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, f = document.createElement("a"), d = function(R) {
10017
- return String(R);
9998
+ var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, f = document.createElement("a"), d = function(D) {
9999
+ return String(D);
10018
10000
  }, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", m, y;
10019
10001
  if (g = g.call ? g.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (p = c.split("/").pop().split("?")[0], f.href = c, f.href.indexOf(c) !== -1)) {
10020
10002
  var k = new XMLHttpRequest();
10021
- return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(R) {
10022
- r(R.target.response, p, s);
10003
+ return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(D) {
10004
+ r(D.target.response, p, s);
10023
10005
  }, setTimeout(function() {
10024
10006
  k.send();
10025
10007
  }, 0), k;
@@ -10039,25 +10021,25 @@ var ua = /* @__PURE__ */ function(a) {
10039
10021
  u = new g([w], { type: l });
10040
10022
  }
10041
10023
  m = u instanceof g ? u : new g([u], { type: l });
10042
- function M(R) {
10043
- var Z = R.split(/[:;,]/), $ = Z[1], H = Z[2] == "base64" ? atob : decodeURIComponent, Q = H(Z.pop()), ae = Q.length, le = 0, Le = new Uint8Array(ae);
10024
+ function M(D) {
10025
+ var Z = D.split(/[:;,]/), $ = Z[1], H = Z[2] == "base64" ? atob : decodeURIComponent, Q = H(Z.pop()), ae = Q.length, le = 0, Le = new Uint8Array(ae);
10044
10026
  for (le; le < ae; ++le)
10045
10027
  Le[le] = Q.charCodeAt(le);
10046
10028
  return new g([Le], { type: $ });
10047
10029
  }
10048
- function V(R, Z) {
10030
+ function V(D, Z) {
10049
10031
  if ("download" in f)
10050
- return f.href = R, f.setAttribute("download", p), f.className = "download-js-link", f.innerHTML = "downloading...", f.style.display = "none", document.body.appendChild(f), setTimeout(function() {
10032
+ return f.href = D, f.setAttribute("download", p), f.className = "download-js-link", f.innerHTML = "downloading...", f.style.display = "none", document.body.appendChild(f), setTimeout(function() {
10051
10033
  f.click(), document.body.removeChild(f), Z === !0 && setTimeout(function() {
10052
10034
  n.URL.revokeObjectURL(f.href);
10053
10035
  }, 250);
10054
10036
  }, 66), !0;
10055
10037
  if (/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))
10056
- return /^data:/.test(R) && (R = "data:" + R.replace(/^data:([\w\/\-\+]+)/, s)), window.open(R) || confirm(`Displaying New Document
10038
+ return /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), window.open(D) || confirm(`Displaying New Document
10057
10039
 
10058
- Use Save As... to download, then click back to return to this page.`) && (location.href = R), !0;
10040
+ Use Save As... to download, then click back to return to this page.`) && (location.href = D), !0;
10059
10041
  var $ = document.createElement("iframe");
10060
- document.body.appendChild($), !Z && /^data:/.test(R) && (R = "data:" + R.replace(/^data:([\w\/\-\+]+)/, s)), $.src = R, setTimeout(function() {
10042
+ document.body.appendChild($), !Z && /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), $.src = D, setTimeout(function() {
10061
10043
  document.body.removeChild($);
10062
10044
  }, 333);
10063
10045
  }
@@ -10072,7 +10054,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
10072
10054
  } catch {
10073
10055
  return V("data:" + l + "," + encodeURIComponent(m));
10074
10056
  }
10075
- y = new FileReader(), y.onload = function(R) {
10057
+ y = new FileReader(), y.onload = function(D) {
10076
10058
  V(this.result);
10077
10059
  }, y.readAsDataURL(m);
10078
10060
  }
@@ -10080,9 +10062,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
10080
10062
  };
10081
10063
  });
10082
10064
  })(yn);
10083
- var ca = yn.exports;
10084
- const fa = /* @__PURE__ */ qt(ca);
10085
- function ha() {
10065
+ var ua = yn.exports;
10066
+ const ca = /* @__PURE__ */ Xt(ua);
10067
+ function fa() {
10086
10068
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
10087
10069
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10088
10070
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -10099,7 +10081,7 @@ function ha() {
10099
10081
  </svg>
10100
10082
  `, "image/svg+xml").firstChild;
10101
10083
  }
10102
- var da = /* @__PURE__ */ function(a) {
10084
+ var ha = /* @__PURE__ */ function(a) {
10103
10085
  I(r, a);
10104
10086
  var o = P(r);
10105
10087
  function r(t) {
@@ -10110,7 +10092,7 @@ var da = /* @__PURE__ */ function(a) {
10110
10092
  var n = e.playerConfig.url, s = "";
10111
10093
  h.typeOf(n) === "String" ? s = n : h.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
10112
10094
  var l = e.getAbsoluteURL(s);
10113
- fa(l), e.isLock = !0, e.timer = window.setTimeout(function() {
10095
+ ca(l), e.isLock = !0, e.timer = window.setTimeout(function() {
10114
10096
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
10115
10097
  }, 300);
10116
10098
  }
@@ -10129,7 +10111,7 @@ var da = /* @__PURE__ */ function(a) {
10129
10111
  key: "registerIcons",
10130
10112
  value: function() {
10131
10113
  return {
10132
- download: ha
10114
+ download: fa
10133
10115
  };
10134
10116
  }
10135
10117
  }, {
@@ -10171,7 +10153,7 @@ var da = /* @__PURE__ */ function(a) {
10171
10153
  };
10172
10154
  }
10173
10155
  }]), r;
10174
- }(Ue), ga = /* @__PURE__ */ function(a) {
10156
+ }(Ue), da = /* @__PURE__ */ function(a) {
10175
10157
  I(r, a);
10176
10158
  var o = P(r);
10177
10159
  function r() {
@@ -10242,8 +10224,8 @@ var da = /* @__PURE__ */ function(a) {
10242
10224
  p = u.media.canvas;
10243
10225
  else {
10244
10226
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
10245
- var y = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, b = 0, w = 0, B = u.media.videoWidth, M = u.media.videoHeight, V, R, Z, $;
10246
- y > k ? (Z = p.width, $ = p.width / y, V = 0, R = Math.round((p.height - $) / 2)) : y === k ? (Z = p.width, $ = p.height, V = 0, R = 0) : y < k && (Z = p.height * y, $ = p.height, V = Math.round((p.width - Z) / 2), R = 0), m.drawImage(u.media, b, w, B, M, V, R, Z, $);
10227
+ var y = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, b = 0, w = 0, B = u.media.videoWidth, M = u.media.videoHeight, V, D, Z, $;
10228
+ y > k ? (Z = p.width, $ = p.width / y, V = 0, D = Math.round((p.height - $) / 2)) : y === k ? (Z = p.width, $ = p.height, V = 0, D = 0) : y < k && (Z = p.height * y, $ = p.height, V = Math.round((p.width - Z) / 2), D = 0), m.drawImage(u.media, b, w, B, M, V, D, Z, $);
10247
10229
  }
10248
10230
  var H = p.toDataURL(f, c).replace(f, "image/octet-stream");
10249
10231
  H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
@@ -10297,7 +10279,7 @@ var da = /* @__PURE__ */ function(a) {
10297
10279
  };
10298
10280
  }
10299
10281
  }]), r;
10300
- }(Ue), pa = /* @__PURE__ */ function() {
10282
+ }(Ue), ga = /* @__PURE__ */ function() {
10301
10283
  function a(o) {
10302
10284
  T(this, a), this.config = o.config, this.parent = o.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
10303
10285
  var r = this.config.maxHeight;
@@ -10377,10 +10359,10 @@ var da = /* @__PURE__ */ function(a) {
10377
10359
  CLICK: "click",
10378
10360
  HOVER: "hover"
10379
10361
  };
10380
- function va(a, o) {
10362
+ function pa(a, o) {
10381
10363
  return a === fe.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10382
10364
  }
10383
- var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10365
+ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10384
10366
  I(r, a);
10385
10367
  var o = P(r);
10386
10368
  function r(t) {
@@ -10414,9 +10396,9 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10414
10396
  var e = this, i = this.config;
10415
10397
  this.initIcons(), De = De || this.domEventType === "touch", De && O.device === "mobile" && i.listType === fe.DEFAULT && (i.listType = fe.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Se, ge], function() {
10416
10398
  e._resizeList();
10417
- }), this.once(me, function() {
10399
+ }), this.once(ve, function() {
10418
10400
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
10419
- }), De && this.on(ti, function() {
10401
+ }), De && this.on(ei, function() {
10420
10402
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
10421
10403
  }), De ? (i.toggleMode = We.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === We.CLICK ? "click" : "mouseenter", i.toggleMode === We.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
10422
10404
  }
@@ -10491,7 +10473,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10491
10473
  var c = {
10492
10474
  config: {
10493
10475
  data: e || [],
10494
- className: va(s.listType, s.position),
10476
+ className: pa(s.listType, s.position),
10495
10477
  onItemClick: function(m, y) {
10496
10478
  n.onItemClick(m, y);
10497
10479
  },
@@ -10501,7 +10483,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10501
10483
  };
10502
10484
  if (this.config.isShowIcon) {
10503
10485
  var f = this.player.root.getBoundingClientRect(), d = f.height, g = s.listType === fe.MIDDLE ? d - 50 : d;
10504
- g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new pa(c), this.changeCurrentText(), this.show();
10486
+ g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new ga(c), this.changeCurrentText(), this.show();
10505
10487
  }
10506
10488
  this._resizeList();
10507
10489
  }
@@ -10552,7 +10534,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10552
10534
  };
10553
10535
  }
10554
10536
  }]), r;
10555
- }(U), ma = /* @__PURE__ */ function(a) {
10537
+ }(U), va = /* @__PURE__ */ function(a) {
10556
10538
  I(r, a);
10557
10539
  var o = P(r);
10558
10540
  function r(t) {
@@ -10573,7 +10555,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10573
10555
  var e = this;
10574
10556
  L(A(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
10575
10557
  e.changeDefinitionList(i);
10576
- }), this.on(si, function(i) {
10558
+ }), this.on(ri, function(i) {
10577
10559
  e.renderItemList(e.config.list, i.to);
10578
10560
  }), this.player.definitionList.length < 2 && this.hide();
10579
10561
  }
@@ -10641,7 +10623,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10641
10623
  }, {
10642
10624
  key: "defaultConfig",
10643
10625
  get: function() {
10644
- return W(W({}, kt.defaultConfig), {}, {
10626
+ return W(W({}, _t.defaultConfig), {}, {
10645
10627
  position: j.CONTROLS_RIGHT,
10646
10628
  index: 3,
10647
10629
  list: [],
@@ -10653,7 +10635,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10653
10635
  });
10654
10636
  }
10655
10637
  }]), r;
10656
- }(kt), ya = /* @__PURE__ */ function(a) {
10638
+ }(_t), ma = /* @__PURE__ */ function(a) {
10657
10639
  I(r, a);
10658
10640
  var o = P(r);
10659
10641
  function r(t) {
@@ -10735,7 +10717,7 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10735
10717
  }, {
10736
10718
  key: "defaultConfig",
10737
10719
  get: function() {
10738
- return W(W({}, kt.defaultConfig), {}, {
10720
+ return W(W({}, _t.defaultConfig), {}, {
10739
10721
  position: j.CONTROLS_RIGHT,
10740
10722
  index: 4,
10741
10723
  list: [2, 1.5, 1, 0.75, 0.5],
@@ -10745,14 +10727,14 @@ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10745
10727
  });
10746
10728
  }
10747
10729
  }]), r;
10748
- }(kt);
10749
- function _a() {
10730
+ }(_t);
10731
+ function ya() {
10750
10732
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10751
10733
  <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>
10752
10734
  </svg>
10753
10735
  `, "image/svg+xml").firstChild;
10754
10736
  }
10755
- function ka() {
10737
+ function _a() {
10756
10738
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10757
10739
  <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>
10758
10740
  </svg>
@@ -10773,7 +10755,7 @@ var Bi = /* @__PURE__ */ function(a) {
10773
10755
  key: "afterCreate",
10774
10756
  value: function() {
10775
10757
  var e = this;
10776
- L(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(dt, function(i) {
10758
+ L(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ht, function(i) {
10777
10759
  e.animate(i);
10778
10760
  }), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
10779
10761
  pre: function(n) {
@@ -10812,11 +10794,11 @@ var Bi = /* @__PURE__ */ function(a) {
10812
10794
  value: function() {
10813
10795
  return {
10814
10796
  cssFullscreen: {
10815
- icon: _a,
10797
+ icon: ya,
10816
10798
  class: "xg-get-cssfull"
10817
10799
  },
10818
10800
  exitCssFullscreen: {
10819
- icon: ka,
10801
+ icon: _a,
10820
10802
  class: "xg-exit-cssfull"
10821
10803
  }
10822
10804
  };
@@ -10852,7 +10834,7 @@ var Bi = /* @__PURE__ */ function(a) {
10852
10834
  };
10853
10835
  }
10854
10836
  }]), r;
10855
- }(Ue), Ca = /* @__PURE__ */ function(a) {
10837
+ }(Ue), ka = /* @__PURE__ */ function(a) {
10856
10838
  I(r, a);
10857
10839
  var o = P(r);
10858
10840
  function r() {
@@ -10866,7 +10848,7 @@ var Bi = /* @__PURE__ */ function(a) {
10866
10848
  pre: function(n) {
10867
10849
  n.preventDefault(), n.stopPropagation();
10868
10850
  }
10869
- }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(nt, function(i) {
10851
+ }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(it, function(i) {
10870
10852
  e.onError(i);
10871
10853
  });
10872
10854
  }
@@ -10913,7 +10895,7 @@ var Bi = /* @__PURE__ */ function(a) {
10913
10895
  return "error";
10914
10896
  }
10915
10897
  }]), r;
10916
- }(U), wa = /* @__PURE__ */ function(a) {
10898
+ }(U), Ca = /* @__PURE__ */ function(a) {
10917
10899
  I(r, a);
10918
10900
  var o = P(r);
10919
10901
  function r() {
@@ -11143,7 +11125,7 @@ var Ui = {
11143
11125
  return r.find('xg-spot[data-id="'.concat(o, '"]'));
11144
11126
  }
11145
11127
  };
11146
- function ba(a) {
11128
+ function wa(a) {
11147
11129
  var o = a.config, r = a.player;
11148
11130
  Object.keys(Ui).map(function(e) {
11149
11131
  a[e] = Ui[e].bind(a);
@@ -11167,7 +11149,7 @@ var Ge = {
11167
11149
  click: "onProgressClick",
11168
11150
  mouseover: "onProgressMouseOver",
11169
11151
  mouseenter: "onProgressMouseOver"
11170
- }, Ta = /* @__PURE__ */ function(a) {
11152
+ }, ba = /* @__PURE__ */ function(a) {
11171
11153
  I(r, a);
11172
11154
  var o = P(r);
11173
11155
  function r(t) {
@@ -11218,7 +11200,7 @@ var Ge = {
11218
11200
  n.seekTime && e.player.seek(n.seekTime);
11219
11201
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
11220
11202
  e.setTimeContent(h.format(i));
11221
- }), ba(this), this.on(Pe, function() {
11203
+ }), wa(this), this.on(Pe, function() {
11222
11204
  e.show();
11223
11205
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
11224
11206
  }
@@ -11442,7 +11424,7 @@ var Ge = {
11442
11424
  };
11443
11425
  }
11444
11426
  }]), r;
11445
- }(U), Ea = /* @__PURE__ */ function(a) {
11427
+ }(U), Ta = /* @__PURE__ */ function(a) {
11446
11428
  I(r, a);
11447
11429
  var o = P(r);
11448
11430
  function r(t) {
@@ -11577,10 +11559,10 @@ var Ge = {
11577
11559
  }
11578
11560
  }]), r;
11579
11561
  }(U);
11580
- function Bt(a) {
11562
+ function Nt(a) {
11581
11563
  return a ? "background:".concat(a, ";") : "";
11582
11564
  }
11583
- var Sa = /* @__PURE__ */ function(a) {
11565
+ var Ea = /* @__PURE__ */ function(a) {
11584
11566
  I(r, a);
11585
11567
  var o = P(r);
11586
11568
  function r() {
@@ -11637,9 +11619,9 @@ var Sa = /* @__PURE__ */ function(a) {
11637
11619
  var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
11638
11620
  if (n) {
11639
11621
  var s = this.config, l = s.mode, u = s.height, c = {
11640
- cached: Bt(i.cachedColor),
11641
- played: Bt(i.playedColor),
11642
- progress: Bt(i.progressColor),
11622
+ cached: Nt(i.cachedColor),
11623
+ played: Nt(i.playedColor),
11624
+ progress: Nt(i.progressColor),
11643
11625
  height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
11644
11626
  }, f = l === "show" ? "xg-mini-progress-show" : "";
11645
11627
  return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
@@ -11668,14 +11650,14 @@ var Sa = /* @__PURE__ */ function(a) {
11668
11650
  FRAME_RATE: "framerate",
11669
11651
  POSTER: "poster"
11670
11652
  };
11671
- function xa() {
11653
+ function Sa() {
11672
11654
  try {
11673
11655
  return parseInt(window.performance.now(), 10);
11674
11656
  } catch {
11675
11657
  return (/* @__PURE__ */ new Date()).getTime();
11676
11658
  }
11677
11659
  }
11678
- function Ia() {
11660
+ function xa() {
11679
11661
  try {
11680
11662
  var a = document.createElement("canvas").getContext;
11681
11663
  return !!a;
@@ -11683,7 +11665,7 @@ function Ia() {
11683
11665
  return !1;
11684
11666
  }
11685
11667
  }
11686
- var at = null, Pa = /* @__PURE__ */ function(a) {
11668
+ var ot = null, Ia = /* @__PURE__ */ function(a) {
11687
11669
  I(r, a);
11688
11670
  var o = P(r);
11689
11671
  function r() {
@@ -11704,7 +11686,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11704
11686
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
11705
11687
  }
11706
11688
  }), _(v(t), "start", function(s, l) {
11707
- var u = t.player.video, c = xa(), f = t.checkVideoIsSupport(u);
11689
+ var u = t.player.video, c = Sa(), f = t.checkVideoIsSupport(u);
11708
11690
  !f || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === $e.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(v(t), t.start, l) : h.requestAnimationFrame(t.start));
11709
11691
  }), _(v(t), "stop", function() {
11710
11692
  t.frameId && (t._loopType === "timer" ? h.clearTimeout(v(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
@@ -11724,7 +11706,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11724
11706
  x: 0,
11725
11707
  y: 0,
11726
11708
  pi: 0
11727
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== $e.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(wt, function() {
11709
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== $e.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Ct, function() {
11728
11710
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
11729
11711
  }), s !== $e.POSTER && (s !== $e.FIRST_FRAME && (this.on(He, function() {
11730
11712
  e.stop();
@@ -11733,7 +11715,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11733
11715
  e._checkIfCanStart() && e.start(0, u);
11734
11716
  }), this.on(Xe, function() {
11735
11717
  e.stop();
11736
- })), this.on(ke, this.onLoadedData), this.on(ei, function() {
11718
+ })), this.on(_e, this.onLoadedData), this.on(Qt, function() {
11737
11719
  e._isLoaded = !1, e.stop();
11738
11720
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
11739
11721
  }
@@ -11877,7 +11859,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11877
11859
  }, {
11878
11860
  key: "isSupport",
11879
11861
  get: function() {
11880
- return typeof at == "boolean" || (at = Ia()), at;
11862
+ return typeof ot == "boolean" || (ot = xa()), ot;
11881
11863
  }
11882
11864
  }, {
11883
11865
  key: "supportCanvasFilter",
@@ -11885,7 +11867,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11885
11867
  return !(O.browser === "safari" || O.browser === "firefox");
11886
11868
  }
11887
11869
  }]), r;
11888
- }(U), Aa = {
11870
+ }(U), Pa = {
11889
11871
  LANG: "zh-cn",
11890
11872
  TEXT: {
11891
11873
  ERROR_TYPES: {
@@ -11960,7 +11942,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11960
11942
  FORWARD: "快进中",
11961
11943
  LIVE_TIP: "直播"
11962
11944
  }
11963
- }, Ze = "info", Ht = fn, La = /* @__PURE__ */ function(a) {
11945
+ }, Ze = "info", Bt = fn, Aa = /* @__PURE__ */ function(a) {
11964
11946
  I(r, a);
11965
11947
  var o = P(r);
11966
11948
  function r() {
@@ -11999,7 +11981,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
11999
11981
  }, {
12000
11982
  key: "afterCreate",
12001
11983
  value: function() {
12002
- this.reset(), this.on(vt, this._recordUserActions), this.on(Ht.STATS_INFO, this._recordInfo), this.on(Ht.STATS_DOWNLOAD, this._downloadStats), this.on(Ht.STATS_RESET, this._onReset);
11984
+ this.reset(), this.on(pt, this._recordUserActions), this.on(Bt.STATS_INFO, this._recordInfo), this.on(Bt.STATS_DOWNLOAD, this._downloadStats), this.on(Bt.STATS_RESET, this._onReset);
12003
11985
  }
12004
11986
  }, {
12005
11987
  key: "destroy",
@@ -12145,9 +12127,9 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
12145
12127
  key: "afterCreate",
12146
12128
  value: function() {
12147
12129
  var e = this, i = this.config.useGapJump;
12148
- i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(rt, this.onGapJump), this.on(re, function() {
12130
+ i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(nt, this.onGapJump), this.on(re, function() {
12149
12131
  e.hasPlayed = !0;
12150
- }), this.on(Ct, function() {
12132
+ }), this.on(kt, function() {
12151
12133
  e.seekingEventReceived = !0;
12152
12134
  }));
12153
12135
  }
@@ -12194,7 +12176,7 @@ var at = null, Pa = /* @__PURE__ */ function(a) {
12194
12176
  }]), r;
12195
12177
  }(U);
12196
12178
  kn.BROWSER_GAP_TOLERANCE = 1e-3;
12197
- var Da = /* @__PURE__ */ function(a) {
12179
+ var La = /* @__PURE__ */ function(a) {
12198
12180
  I(r, a);
12199
12181
  var o = P(r);
12200
12182
  function r() {
@@ -12218,7 +12200,7 @@ var Da = /* @__PURE__ */ function(a) {
12218
12200
  key: "afterCreate",
12219
12201
  value: function() {
12220
12202
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
12221
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(rt, this.onWaiting), this.on([Qt, me], function() {
12203
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(nt, this.onWaiting), this.on([Jt, ve], function() {
12222
12204
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
12223
12205
  }), this.on(re, function() {
12224
12206
  e.hasPlayed = !0;
@@ -12240,7 +12222,7 @@ var Da = /* @__PURE__ */ function(a) {
12240
12222
  };
12241
12223
  }
12242
12224
  }]), r;
12243
- }(U), Ke = "cdn", lt = ["cdn"], Ra = /* @__PURE__ */ function(a) {
12225
+ }(U), Ke = "cdn", at = ["cdn"], Da = /* @__PURE__ */ function(a) {
12244
12226
  I(r, a);
12245
12227
  var o = P(r);
12246
12228
  function r() {
@@ -12259,7 +12241,7 @@ var Da = /* @__PURE__ */ function(a) {
12259
12241
  }), _(v(t), "startTimer", function() {
12260
12242
  h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
12261
12243
  }), _(v(t), "initSpeedList", function() {
12262
- t.speedListCache = {}, lt.forEach(function(s) {
12244
+ t.speedListCache = {}, at.forEach(function(s) {
12263
12245
  t.speedListCache[s] = [];
12264
12246
  });
12265
12247
  }), _(v(t), "_onRealSpeedChange", function(s) {
@@ -12299,13 +12281,13 @@ var Da = /* @__PURE__ */ function(a) {
12299
12281
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ke, l = t.getSpeed(s), u = v(t), c = u.player;
12300
12282
  if (c)
12301
12283
  if (s === Ke)
12302
- (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Gt, {
12284
+ (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Wt, {
12303
12285
  speed: l,
12304
12286
  realTimeSpeed: c.realTimeSpeed
12305
12287
  }));
12306
12288
  else {
12307
12289
  var f = t.getSpeedName("avg", s);
12308
- (!c[f] || l !== c[f]) && (c[f] = l, c.emit(Gt, {
12290
+ (!c[f] || l !== c[f]) && (c[f] = l, c.emit(Wt, {
12309
12291
  speed: l,
12310
12292
  realTimeSpeed: c.realTimeSpeed
12311
12293
  }));
@@ -12316,7 +12298,7 @@ var Da = /* @__PURE__ */ function(a) {
12316
12298
  key: "afterCreate",
12317
12299
  value: function() {
12318
12300
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12319
- (n == null ? void 0 : n.length) > 0 && lt.push.apply(lt, ue(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ke, ht], this.startTimer);
12301
+ (n == null ? void 0 : n.length) > 0 && at.push.apply(at, ue(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([_e, ft], this.startTimer);
12320
12302
  }
12321
12303
  }, {
12322
12304
  key: "getSpeedName",
@@ -12343,7 +12325,7 @@ var Da = /* @__PURE__ */ function(a) {
12343
12325
  key: "destroy",
12344
12326
  value: function() {
12345
12327
  var e = this;
12346
- this.off("real_time_speed", this._onRealSpeedChange), this.off([ke, ht], this.startTimer), lt.forEach(function(i) {
12328
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([_e, ft], this.startTimer), at.forEach(function(i) {
12347
12329
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
12348
12330
  }), 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);
12349
12331
  }
@@ -12366,7 +12348,7 @@ var Da = /* @__PURE__ */ function(a) {
12366
12348
  };
12367
12349
  }
12368
12350
  }]), r;
12369
- }(U), Oa = /* @__PURE__ */ function(a) {
12351
+ }(U), Ra = /* @__PURE__ */ function(a) {
12370
12352
  I(r, a);
12371
12353
  var o = P(r);
12372
12354
  function r() {
@@ -12476,24 +12458,24 @@ var Da = /* @__PURE__ */ function(a) {
12476
12458
  }
12477
12459
  }]), r;
12478
12460
  }(U);
12479
- Ye.use(Aa);
12480
- var Fa = /* @__PURE__ */ E(function a(o, r) {
12461
+ Ye.use(Pa);
12462
+ var Oa = /* @__PURE__ */ E(function a(o, r) {
12481
12463
  var t, e, i;
12482
12464
  T(this, a);
12483
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Jo, Wo, Sa, Ta, Zo], u = [].concat(l, [Go, qo, ra, ua, ma, ya, da, ga, ia, aa]), c = [To, Eo, xo, zo, Io, Ca, wa, Ea, Do];
12484
- this.plugins = [La, wo].concat(ue(u), c, [kn, Da]);
12465
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Zo, jo, Ea, ba, qo], u = [].concat(l, [Wo, Xo, na, la, va, ma, ha, da, ta, oa]), c = [bo, To, So, Uo, xo, ka, Ca, Ta, Lo];
12466
+ this.plugins = [Aa, Co].concat(ue(u), c, [kn, La]);
12485
12467
  var f = n ? "mobile" : O.device;
12486
12468
  switch (f) {
12487
12469
  case "pc":
12488
- (t = this.plugins).push.apply(t, [Mi, Mt, Bi, Ra, Oa]);
12470
+ (t = this.plugins).push.apply(t, [Mi, Ft, Bi, Da, Ra]);
12489
12471
  break;
12490
12472
  case "mobile":
12491
- (e = this.plugins).push.apply(e, [Bo]);
12473
+ (e = this.plugins).push.apply(e, [No]);
12492
12474
  break;
12493
12475
  default:
12494
- (i = this.plugins).push.apply(i, [Mi, Mt, Bi]);
12476
+ (i = this.plugins).push.apply(i, [Mi, Ft, Bi]);
12495
12477
  }
12496
- (O.os.isIpad || f === "pc") && this.plugins.push(Pa), O.os.isIpad && this.plugins.push(Mt), this.ignores = [], this.i18n = [];
12478
+ (O.os.isIpad || f === "pc") && this.plugins.push(Ia), O.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
12497
12479
  }), ce = /* @__PURE__ */ function(a) {
12498
12480
  I(r, a);
12499
12481
  var o = P(r);
@@ -12501,21 +12483,21 @@ var Fa = /* @__PURE__ */ E(function a(o, r) {
12501
12483
  return T(this, r), o.apply(this, arguments);
12502
12484
  }
12503
12485
  return E(r);
12504
- }(Et);
12505
- _(ce, "defaultPreset", Fa);
12486
+ }(Tt);
12487
+ _(ce, "defaultPreset", Oa);
12506
12488
  _(ce, "Util", h);
12507
12489
  _(ce, "Sniffer", O);
12508
- _(ce, "Errors", ft);
12509
- _(ce, "Events", Xs);
12490
+ _(ce, "Errors", ct);
12491
+ _(ce, "Events", Ys);
12510
12492
  _(ce, "Plugin", U);
12511
12493
  _(ce, "BasePlugin", xe);
12512
12494
  _(ce, "I18N", Ye);
12513
12495
  _(ce, "STATE_CLASS", C);
12514
12496
  _(ce, "InstManager", vn);
12515
- const Ma = ["id"], Na = /* @__PURE__ */ oe({
12497
+ const Fa = ["id"], Ma = /* @__PURE__ */ oe({
12516
12498
  name: "ElImageViewer",
12517
12499
  __name: "Player",
12518
- props: /* @__PURE__ */ ct({
12500
+ props: /* @__PURE__ */ ut({
12519
12501
  url: {
12520
12502
  type: String,
12521
12503
  default: ""
@@ -12536,12 +12518,12 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12536
12518
  },
12537
12519
  modelModifiers: {}
12538
12520
  }),
12539
- emits: /* @__PURE__ */ ct({
12521
+ emits: /* @__PURE__ */ ut({
12540
12522
  close: () => !0
12541
12523
  }, ["update:modelValue"]),
12542
12524
  setup(a, { emit: o }) {
12543
12525
  let r = null;
12544
- const t = a, { cLoadUrl: e } = ji(t), i = X(() => et(e.value, t.url)), n = {
12526
+ const t = a, { cLoadUrl: e } = ji(t), i = X(() => Qe(e.value, t.url)), n = {
12545
12527
  width: "100%",
12546
12528
  height: "100%",
12547
12529
  // 是否自动播放
@@ -12562,11 +12544,11 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12562
12544
  }, s = X(() => ({
12563
12545
  ...n,
12564
12546
  ...t.config
12565
- })), l = o, u = Yt(a, "modelValue"), c = Vi(), f = Rn("image-viewer");
12547
+ })), l = o, u = Kt(a, "modelValue"), c = Vi(), f = Rn("image-viewer");
12566
12548
  function d() {
12567
12549
  l("close"), u.value = !1, r.destroy();
12568
12550
  }
12569
- return Xt(() => u.value, (g) => {
12551
+ return Yt(() => u.value, (g) => {
12570
12552
  g && zi(() => {
12571
12553
  r = new ce({
12572
12554
  id: c,
@@ -12610,7 +12592,7 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12610
12592
  class: te(z(f).e("canvas"))
12611
12593
  },
12612
12594
  [
12613
- S("div", { id: z(c) }, null, 8, Ma),
12595
+ S("div", { id: z(c) }, null, 8, Fa),
12614
12596
  se(" CLOSE "),
12615
12597
  S(
12616
12598
  "span",
@@ -12647,22 +12629,22 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12647
12629
  };
12648
12630
  }
12649
12631
  });
12650
- const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(Ba), Ua = (a) => (xn("data-v-6a92bbab"), a = a(), In(), a), za = {
12632
+ const Na = /* @__PURE__ */ tt(Ma, [["__scopeId", "data-v-b301aa7d"]]), Ba = Ie(Na), Ha = (a) => (xn("data-v-6a92bbab"), a = a(), In(), a), Ua = {
12651
12633
  key: 0,
12652
12634
  class: "preview-files"
12653
- }, Va = {
12635
+ }, za = {
12654
12636
  class: "flex",
12655
12637
  style: { width: "80%", "align-items": "center" }
12656
- }, ja = ["onClick"], Wa = ["title"], Ga = { style: { color: "#b8c6d9" } }, $a = ["onClick"], Ka = /* @__PURE__ */ Ua(() => /* @__PURE__ */ S(
12638
+ }, Va = ["onClick"], ja = ["title"], Wa = { style: { color: "#b8c6d9" } }, Ga = ["onClick"], $a = /* @__PURE__ */ Ha(() => /* @__PURE__ */ S(
12657
12639
  "span",
12658
12640
  null,
12659
12641
  "预览",
12660
12642
  -1
12661
12643
  /* HOISTED */
12662
- )), Ya = {
12644
+ )), Ka = {
12663
12645
  key: 1,
12664
12646
  class: "flex preview-img"
12665
- }, Xa = /* @__PURE__ */ oe({
12647
+ }, Ya = /* @__PURE__ */ oe({
12666
12648
  __name: "IkDetailPreviewFiles",
12667
12649
  props: {
12668
12650
  // 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
@@ -12692,15 +12674,15 @@ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12692
12674
  }
12693
12675
  },
12694
12676
  setup(a) {
12695
- const o = a, r = ye(o.fileList);
12696
- Xt(
12677
+ const o = a, r = me(o.fileList);
12678
+ Yt(
12697
12679
  () => o.fileList,
12698
12680
  (u) => {
12699
12681
  u && (r.value = u);
12700
12682
  },
12701
12683
  { immediate: !0 }
12702
12684
  );
12703
- const t = ye(!1), e = ye({}), i = (u) => {
12685
+ const t = me(!1), e = me({}), i = (u) => {
12704
12686
  e.value = {
12705
12687
  url: u.url,
12706
12688
  name: u.name
@@ -12719,12 +12701,12 @@ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12719
12701
  return (u, c) => {
12720
12702
  var d, g;
12721
12703
  const f = Ne("el-image");
12722
- return x(), D("div", null, [
12723
- o.fileType === "file" ? (x(), D("div", za, [
12724
- (x(!0), D(
12704
+ return x(), R("div", null, [
12705
+ o.fileType === "file" ? (x(), R("div", Ua, [
12706
+ (x(!0), R(
12725
12707
  Oe,
12726
12708
  null,
12727
- ut(r.value, (p, m) => (x(), D(
12709
+ lt(r.value, (p, m) => (x(), R(
12728
12710
  "div",
12729
12711
  {
12730
12712
  key: m,
@@ -12735,8 +12717,8 @@ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12735
12717
  })
12736
12718
  },
12737
12719
  [
12738
- S("div", Va, [
12739
- G(z(ve), {
12720
+ S("div", za, [
12721
+ G(z(be), {
12740
12722
  name: n(p),
12741
12723
  style: ee(`color:${s(p)}`),
12742
12724
  size: 36
@@ -12747,23 +12729,23 @@ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12747
12729
  }, [
12748
12730
  S("p", {
12749
12731
  title: p.name
12750
- }, Te(p.name), 9, Wa),
12732
+ }, Te(p.name), 9, ja),
12751
12733
  S(
12752
12734
  "p",
12753
- Ga,
12735
+ Wa,
12754
12736
  Te((p.size / 1024).toFixed(2)) + "KB",
12755
12737
  1
12756
12738
  /* TEXT */
12757
12739
  )
12758
- ], 8, ja)
12740
+ ], 8, Va)
12759
12741
  ]),
12760
12742
  S("div", {
12761
12743
  class: "file-preview",
12762
12744
  onClick: (y) => i(p)
12763
12745
  }, [
12764
- G(z(ve), { name: "iksvg_yulan" }),
12765
- Ka
12766
- ], 8, $a)
12746
+ G(z(be), { name: "iksvg_yulan" }),
12747
+ $a
12748
+ ], 8, Ga)
12767
12749
  ],
12768
12750
  4
12769
12751
  /* STYLE */
@@ -12772,11 +12754,11 @@ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12772
12754
  /* KEYED_FRAGMENT */
12773
12755
  ))
12774
12756
  ])) : se("v-if", !0),
12775
- o.fileType === "img" ? (x(), D("div", Ya, [
12776
- (x(!0), D(
12757
+ o.fileType === "img" ? (x(), R("div", Ka, [
12758
+ (x(!0), R(
12777
12759
  Oe,
12778
12760
  null,
12779
- ut(r.value, (p, m) => (x(), D("div", {
12761
+ lt(r.value, (p, m) => (x(), R("div", {
12780
12762
  key: m,
12781
12763
  class: "preview-img"
12782
12764
  }, [
@@ -12803,8 +12785,8 @@ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12803
12785
  };
12804
12786
  }
12805
12787
  });
12806
- const qa = /* @__PURE__ */ it(Xa, [["__scopeId", "data-v-6a92bbab"]]), el = Ie(qa);
12788
+ const Xa = /* @__PURE__ */ tt(Ya, [["__scopeId", "data-v-6a92bbab"]]), Qa = Ie(Xa);
12807
12789
  export {
12808
- el as IKDetailPreviewFiles,
12809
- el as default
12790
+ Qa as IKDetailPreviewFiles,
12791
+ Qa as default
12810
12792
  };